blockly 11.0.0-beta.1 → 11.0.0-beta.2
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 +436 -444
- package/blockly_compressed.js +426 -434
- package/blockly_compressed.js.map +1 -1
- package/blocks_compressed.js +10 -10
- package/blocks_compressed.js.map +1 -1
- package/core/block.d.ts +8 -1
- package/core/block_dragger.d.ts +0 -12
- package/core/block_svg.d.ts +5 -32
- package/core/blockly.d.ts +0 -31
- package/core/clipboard.d.ts +0 -19
- package/core/gesture.d.ts +2 -0
- package/core/icons/comment_icon.d.ts +2 -2
- package/core/icons/icon.d.ts +0 -6
- package/core/icons/mutator_icon.d.ts +1 -16
- package/core/icons/warning_icon.d.ts +1 -1
- package/core/inputs/input.d.ts +10 -19
- package/core/interfaces/i_has_bubble.d.ts +1 -1
- package/core/interfaces/i_parameter_model.d.ts +7 -0
- package/core/interfaces/i_procedure_model.d.ts +7 -0
- package/core/options.d.ts +1 -0
- package/core/renderers/common/drawer.d.ts +0 -7
- package/core/renderers/measurables/icon.d.ts +0 -5
- package/core/serialization/procedures.d.ts +28 -34
- package/core/utils/dom.d.ts +0 -9
- package/core/utils/string.d.ts +0 -10
- package/core/workspace_svg.d.ts +0 -27
- package/package.json +5 -2
- package/core/renderers/minimalist/constants.d.ts +0 -21
- package/core/renderers/minimalist/drawer.d.ts +0 -26
- package/core/renderers/minimalist/info.d.ts +0 -35
- package/core/renderers/minimalist/minimalist.d.ts +0 -12
- package/core/renderers/minimalist/renderer.d.ts +0 -48
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blockly",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.2",
|
|
4
4
|
"description": "Blockly is a library for building visual programming editors.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blockly"
|
|
@@ -67,6 +67,9 @@
|
|
|
67
67
|
"yargs": "^17.2.1"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"jsdom": "
|
|
70
|
+
"jsdom": "23.0.0"
|
|
71
|
+
},
|
|
72
|
+
"engines": {
|
|
73
|
+
"node": ">=18"
|
|
71
74
|
}
|
|
72
75
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { ConstantProvider as BaseConstantProvider } from '../common/constants.js';
|
|
7
|
-
/**
|
|
8
|
-
* An object that provides constants for rendering blocks in the minimalist
|
|
9
|
-
* renderer.
|
|
10
|
-
*
|
|
11
|
-
* @deprecated Use Blockly.blockRendering.ConstantProvider instead.
|
|
12
|
-
* To be removed in v11.
|
|
13
|
-
*/
|
|
14
|
-
export declare class ConstantProvider extends BaseConstantProvider {
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated Use Blockly.blockRendering.ConstantProvider instead.
|
|
17
|
-
* To be removed in v11.
|
|
18
|
-
*/
|
|
19
|
-
constructor();
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import type { BlockSvg } from '../../block_svg.js';
|
|
7
|
-
import { Drawer as BaseDrawer } from '../common/drawer.js';
|
|
8
|
-
import type { RenderInfo } from './info.js';
|
|
9
|
-
/**
|
|
10
|
-
* An object that draws a block based on the given rendering information.
|
|
11
|
-
*
|
|
12
|
-
* @deprecated Use Blockly.blockRendering.Drawer instead.
|
|
13
|
-
* To be removed in v11.
|
|
14
|
-
*/
|
|
15
|
-
export declare class Drawer extends BaseDrawer {
|
|
16
|
-
/**
|
|
17
|
-
* @param block The block to render.
|
|
18
|
-
* @param info An object containing all information needed to render this
|
|
19
|
-
* block.
|
|
20
|
-
*
|
|
21
|
-
* @deprecated Use Blockly.blockRendering.Drawer instead.
|
|
22
|
-
* To be removed in v11.
|
|
23
|
-
*/
|
|
24
|
-
constructor(block: BlockSvg, info: RenderInfo);
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=drawer.d.ts.map
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import type { BlockSvg } from '../../block_svg.js';
|
|
7
|
-
import { RenderInfo as BaseRenderInfo } from '../common/info.js';
|
|
8
|
-
import type { Renderer } from './renderer.js';
|
|
9
|
-
/**
|
|
10
|
-
* An object containing all sizing information needed to draw this block.
|
|
11
|
-
*
|
|
12
|
-
* This measure pass does not propagate changes to the block (although fields
|
|
13
|
-
* may choose to rerender when getSize() is called). However, calling it
|
|
14
|
-
* repeatedly may be expensive.
|
|
15
|
-
*
|
|
16
|
-
* @deprecated Use Blockly.blockRendering.RenderInfo instead. To be removed
|
|
17
|
-
* in v11.
|
|
18
|
-
*/
|
|
19
|
-
export declare class RenderInfo extends BaseRenderInfo {
|
|
20
|
-
protected renderer_: Renderer;
|
|
21
|
-
/**
|
|
22
|
-
* @param renderer The renderer in use.
|
|
23
|
-
* @param block The block to measure.
|
|
24
|
-
* @deprecated Use Blockly.blockRendering.RenderInfo instead. To be removed
|
|
25
|
-
* in v11.
|
|
26
|
-
*/
|
|
27
|
-
constructor(renderer: Renderer, block: BlockSvg);
|
|
28
|
-
/**
|
|
29
|
-
* Get the block renderer in use.
|
|
30
|
-
*
|
|
31
|
-
* @returns The block renderer in use.
|
|
32
|
-
*/
|
|
33
|
-
getRenderer(): Renderer;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=info.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** @file Re-exports of Blockly.minimalist.* modules. */
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2021 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
-
*/
|
|
7
|
-
import { ConstantProvider } from './constants.js';
|
|
8
|
-
import { Drawer } from './drawer.js';
|
|
9
|
-
import { RenderInfo } from './info.js';
|
|
10
|
-
import { Renderer } from './renderer.js';
|
|
11
|
-
export { ConstantProvider, Drawer, Renderer, RenderInfo };
|
|
12
|
-
//# sourceMappingURL=minimalist.d.ts.map
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import type { BlockSvg } from '../../block_svg.js';
|
|
7
|
-
import type { RenderInfo as BaseRenderInfo } from '../common/info.js';
|
|
8
|
-
import { Renderer as BaseRenderer } from '../common/renderer.js';
|
|
9
|
-
import { ConstantProvider } from './constants.js';
|
|
10
|
-
import { Drawer } from './drawer.js';
|
|
11
|
-
import { RenderInfo } from './info.js';
|
|
12
|
-
/**
|
|
13
|
-
* The minimalist renderer.
|
|
14
|
-
*
|
|
15
|
-
* @deprecated Use Blockly.blockRendering.Renderer instead. To be removed
|
|
16
|
-
* in v11.
|
|
17
|
-
*/
|
|
18
|
-
export declare class Renderer extends BaseRenderer {
|
|
19
|
-
/**
|
|
20
|
-
* @param name The renderer name.
|
|
21
|
-
* @deprecated Use Blockly.blockRendering.Renderer instead. To be removed
|
|
22
|
-
* in v11.
|
|
23
|
-
*/
|
|
24
|
-
constructor(name: string);
|
|
25
|
-
/**
|
|
26
|
-
* Create a new instance of the renderer's constant provider.
|
|
27
|
-
*
|
|
28
|
-
* @returns The constant provider.
|
|
29
|
-
*/
|
|
30
|
-
protected makeConstants_(): ConstantProvider;
|
|
31
|
-
/**
|
|
32
|
-
* Create a new instance of the renderer's render info object.
|
|
33
|
-
*
|
|
34
|
-
* @param block The block to measure.
|
|
35
|
-
* @returns The render info object.
|
|
36
|
-
*/
|
|
37
|
-
protected makeRenderInfo_(block: BlockSvg): RenderInfo;
|
|
38
|
-
/**
|
|
39
|
-
* Create a new instance of the renderer's drawer.
|
|
40
|
-
*
|
|
41
|
-
* @param block The block to render.
|
|
42
|
-
* @param info An object containing all information needed to render this
|
|
43
|
-
* block.
|
|
44
|
-
* @returns The drawer.
|
|
45
|
-
*/
|
|
46
|
-
protected makeDrawer_(block: BlockSvg, info: BaseRenderInfo): Drawer;
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=renderer.d.ts.map
|