blockly 11.0.0-beta.10 → 11.0.0-beta.11

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.
@@ -8,6 +8,7 @@ import { DeleteArea } from './delete_area.js';
8
8
  import { FlyoutButton } from './flyout_button.js';
9
9
  import type { IFlyout } from './interfaces/i_flyout.js';
10
10
  import type { Options } from './options.js';
11
+ import * as blocks from './serialization/blocks.js';
11
12
  import { Coordinate } from './utils/coordinate.js';
12
13
  import { Svg } from './utils/svg.js';
13
14
  import * as toolbox from './utils/toolbox.js';
@@ -505,6 +506,13 @@ export declare abstract class Flyout extends DeleteArea implements IAutoHideable
505
506
  * @returns The new block in the main workspace.
506
507
  */
507
508
  private placeNewBlock;
509
+ /**
510
+ * Serialize a block to JSON.
511
+ *
512
+ * @param block The block to serialize.
513
+ * @returns A serialized representation of the block.
514
+ */
515
+ protected serializeBlock(block: BlockSvg): blocks.State;
508
516
  /**
509
517
  * Positions a block on the target workspace.
510
518
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blockly",
3
- "version": "11.0.0-beta.10",
3
+ "version": "11.0.0-beta.11",
4
4
  "description": "Blockly is a library for building visual programming editors.",
5
5
  "keywords": [
6
6
  "blockly"