Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/plugins/block-plus-minus/src/field_minus.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
/**
* @fileoverview A function that creates a minus button used for mutation.
*/
'use strict';

import * as Blockly from 'blockly/core';
import {getExtraBlockState} from './serialization_helper.js';
Expand Down
1 change: 0 additions & 1 deletion packages/plugins/block-plus-minus/src/field_plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
/**
* @fileoverview A field for a plus button used for mutation.
*/
'use strict';

import * as Blockly from 'blockly/core';
import {getExtraBlockState} from './serialization_helper.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
'use strict';

import {assert} from 'chai';
import sinon from 'sinon';
Expand Down
2 changes: 2 additions & 0 deletions packages/plugins/field-multilineinput/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
"@blockly/dev-scripts": "^13.4.0",
"@blockly/dev-tools": "^13.4.0",
"chai": "^6.3.0",
"jsdom": "^30.1.3",
"jsdom-global": "^3.0.2",
"sinon": "^22.1.0",
"typescript": "^6.0.3"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ suite('FieldMultilineInput', function () {
this.jsdomCleanup = jsdomGlobal(
'<!DOCTYPE html><div id="blocklyDiv"></div>',
);
this.getContextStub = sinon
.stub(window.HTMLCanvasElement.prototype, 'getContext')
.returns({measureText: () => ({width: 0})});

// See https://github.com/RaspberryPiFoundation/blockly-samples/issues/2528.
global.SVGElement = window.SVGElement;
// Blockly's focus handling constructs FocusEvent, which jsdom exposes on
Expand Down
1 change: 1 addition & 0 deletions packages/plugins/modal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"devDependencies": {
"@blockly/dev-scripts": "^13.4.0",
"@blockly/dev-tools": "^13.4.0",
"chai": "^6.3.0",
"jsdom": "^30.1.3",
"jsdom-global": "3.0.2",
"mocha": "^12.0.3",
Expand Down
6 changes: 0 additions & 6 deletions packages/plugins/typed-variable-modal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ import * as Blockly from 'blockly';
import {TypedVariableModal} from '@blockly/plugin-typed-variable-modal';
```

or

```js
<script src="https://unpkg.com/@blockly/plugin-typed-variable-modal"></script>
```

#### Setup

Create your workspace.
Expand Down
1 change: 1 addition & 0 deletions packages/plugins/typed-variable-modal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"devDependencies": {
"@blockly/dev-scripts": "^13.4.0",
"@blockly/dev-tools": "^13.4.0",
"chai": "^6.3.0",
"jsdom": "^30.1.3",
"jsdom-global": "3.0.2",
"mocha": "^12.0.3",
Expand Down
2 changes: 2 additions & 0 deletions packages/plugins/workspace-minimap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
"@blockly/dev-scripts": "^13.4.0",
"@blockly/dev-tools": "^13.4.0",
"chai": "^6.3.0",
"jsdom": "^30.1.3",
"jsdom-global": "^3.0.2",
"typescript": "^6.0.3"
},
"peerDependencies": {
Expand Down
6 changes: 0 additions & 6 deletions packages/plugins/workspace-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ const workspaceSearch = new WorkspaceSearch(workspace);
workspaceSearch.init();
```

### Script Tag

```js
<script src="./node_modules/@blockly/plugin-workspace-search/dist/index.js"></script>
```

To open workspace search use either command + f or control + f. To close the search bar, press Escape or click the 'x' in the top right corner. Escape focuses the current matching block, or the workspace if there is no match.

## API
Expand Down
Loading