blockly 12.4.1 → 12.5.1

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.
@@ -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
  *
@@ -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
@@ -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.
@@ -131,6 +131,7 @@ export declare enum KeyCodes {
131
131
  MAC_WK_CMD_RIGHT = 93,// WebKit Right Command key fired, different from META
132
132
  WIN_IME = 229,
133
133
  VK_NONAME = 252,
134
- PHANTOM = 255
134
+ PHANTOM = 255,
135
+ CTRL_CMD
135
136
  }
136
137
  //# sourceMappingURL=keycodes.d.ts.map
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "blockly",
3
- "version": "12.4.1",
3
+ "version": "12.5.1",
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/google/blockly.git"
10
+ "url": "git+https://github.com/RaspberryPiFoundation/blockly.git"
11
11
  },
12
12
  "bugs": {
13
- "url": "https://github.com/google/blockly/issues"
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",