blockly 12.4.1 → 12.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blockly.min.js +69 -66
- package/blockly_compressed.js +69 -66
- package/blockly_compressed.js.map +1 -1
- package/core/block_svg.d.ts +4 -0
- package/core/contextmenu.d.ts +5 -0
- package/core/shortcut_items.d.ts +6 -1
- package/core/utils/keycodes.d.ts +2 -1
- package/package.json +5 -3
package/core/block_svg.d.ts
CHANGED
|
@@ -336,6 +336,10 @@ export declare class BlockSvg extends Block implements IBoundedElement, IContext
|
|
|
336
336
|
* @returns The root SVG node (probably a group).
|
|
337
337
|
*/
|
|
338
338
|
getSvgRoot(): SVGGElement;
|
|
339
|
+
/**
|
|
340
|
+
* Returns the closest live block to this one, if any.
|
|
341
|
+
*/
|
|
342
|
+
private getNearestNeighbour;
|
|
339
343
|
/**
|
|
340
344
|
* Dispose of this block.
|
|
341
345
|
*
|
package/core/contextmenu.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import type { Block } from './block.js';
|
|
7
7
|
import type { BlockSvg } from './block_svg.js';
|
|
8
8
|
import type { ContextMenuOption, LegacyContextMenuOption } from './contextmenu_registry.js';
|
|
9
|
+
import { Menu } from './menu.js';
|
|
9
10
|
import * as serializationBlocks from './serialization/blocks.js';
|
|
10
11
|
import { Coordinate } from './utils/coordinate.js';
|
|
11
12
|
import type { WorkspaceSvg } from './workspace_svg.js';
|
|
@@ -50,4 +51,8 @@ export declare function dispose(): void;
|
|
|
50
51
|
* @returns Function that creates a block.
|
|
51
52
|
*/
|
|
52
53
|
export declare function callbackFactory(block: Block, state: Element | serializationBlocks.State): () => BlockSvg;
|
|
54
|
+
/**
|
|
55
|
+
* Returns the contextual menu if it is currently being shown.
|
|
56
|
+
*/
|
|
57
|
+
export declare function getMenu(): Menu | null;
|
|
53
58
|
//# sourceMappingURL=contextmenu.d.ts.map
|
package/core/shortcut_items.d.ts
CHANGED
|
@@ -13,7 +13,8 @@ export declare enum names {
|
|
|
13
13
|
CUT = "cut",
|
|
14
14
|
PASTE = "paste",
|
|
15
15
|
UNDO = "undo",
|
|
16
|
-
REDO = "redo"
|
|
16
|
+
REDO = "redo",
|
|
17
|
+
MENU = "menu"
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* Keyboard shortcut to hide chaff on escape.
|
|
@@ -44,6 +45,10 @@ export declare function registerUndo(): void;
|
|
|
44
45
|
* or alt+shift+z.
|
|
45
46
|
*/
|
|
46
47
|
export declare function registerRedo(): void;
|
|
48
|
+
/**
|
|
49
|
+
* Keyboard shortcut to show the context menu on ctrl/cmd+Enter.
|
|
50
|
+
*/
|
|
51
|
+
export declare function registerShowContextMenu(): void;
|
|
47
52
|
/**
|
|
48
53
|
* Registers all default keyboard shortcut item. This should be called once per
|
|
49
54
|
* instance of KeyboardShortcutRegistry.
|
package/core/utils/keycodes.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blockly",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.5.0",
|
|
4
4
|
"description": "Blockly is a library for building visual programming editors.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blockly"
|
|
7
7
|
],
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/
|
|
10
|
+
"url": "git+https://github.com/RaspberryPiFoundation/blockly.git"
|
|
11
11
|
},
|
|
12
12
|
"bugs": {
|
|
13
|
-
"url": "https://github.com/
|
|
13
|
+
"url": "https://github.com/RaspberryPiFoundation/blockly/issues"
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://developers.google.com/blockly/",
|
|
16
16
|
"author": {
|
|
@@ -79,6 +79,8 @@
|
|
|
79
79
|
"async-done": "^2.0.0",
|
|
80
80
|
"chai": "^6.0.1",
|
|
81
81
|
"concurrently": "^9.0.1",
|
|
82
|
+
"conventional-changelog-conventionalcommits": "^7.0.2",
|
|
83
|
+
"conventional-recommended-bump": "^9.0.0",
|
|
82
84
|
"eslint": "^9.15.0",
|
|
83
85
|
"eslint-config-google": "^0.14.0",
|
|
84
86
|
"eslint-config-prettier": "^10.1.1",
|