blockly 11.0.0-beta.5 → 11.0.0-beta.7
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 +722 -763
- package/blockly_compressed.js +676 -680
- package/blockly_compressed.js.map +1 -1
- package/blocks_compressed.js +27 -29
- package/blocks_compressed.js.map +1 -1
- package/core/block.d.ts +12 -6
- package/core/block_svg.d.ts +28 -42
- package/core/blockly.d.ts +11 -51
- package/core/bubbles/bubble.d.ts +17 -2
- package/core/bubbles/mini_workspace_bubble.d.ts +1 -1
- package/core/bubbles/text_bubble.d.ts +1 -1
- package/core/bubbles/textinput_bubble.d.ts +1 -1
- package/core/clipboard.d.ts +0 -19
- package/core/comments/comment_view.d.ts +207 -0
- package/core/comments/rendered_workspace_comment.d.ts +75 -0
- package/core/comments/workspace_comment.d.ts +107 -0
- package/core/comments.d.ts +9 -0
- package/core/connection.d.ts +1 -1
- package/core/delete_area.d.ts +1 -2
- package/core/dragging/block_drag_strategy.d.ts +105 -0
- package/core/dragging/bubble_drag_strategy.d.ts +20 -0
- package/core/dragging/comment_drag_strategy.d.ts +20 -0
- package/core/dragging/dragger.d.ts +47 -0
- package/core/events/events.d.ts +3 -0
- package/core/events/events_click.d.ts +1 -1
- package/core/events/events_comment_base.d.ts +6 -1
- package/core/events/events_comment_change.d.ts +1 -1
- package/core/events/events_comment_collapse.d.ts +39 -0
- package/core/events/events_comment_create.d.ts +5 -1
- package/core/events/events_comment_delete.d.ts +5 -1
- package/core/events/events_comment_move.d.ts +17 -1
- package/core/events/utils.d.ts +2 -0
- package/core/field_dropdown.d.ts +1 -0
- package/core/field_image.d.ts +1 -1
- package/core/flyout_base.d.ts +17 -1
- package/core/flyout_button.d.ts +26 -1
- package/core/generator.d.ts +1 -1
- package/core/gesture.d.ts +25 -54
- package/core/grid.d.ts +9 -9
- package/core/icons/comment_icon.d.ts +8 -3
- package/core/icons/icon.d.ts +0 -6
- package/core/icons/icon_types.d.ts +2 -2
- 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/{connection_previewers/insertion_marker_previewer.d.ts → insertion_marker_previewer.d.ts} +3 -3
- package/core/interfaces/i_comment_icon.d.ts +21 -0
- package/core/interfaces/i_deletable.d.ts +6 -0
- package/core/interfaces/i_delete_area.d.ts +1 -2
- package/core/interfaces/i_draggable.d.ts +47 -3
- package/core/interfaces/i_dragger.d.ts +32 -0
- 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/interfaces/i_selectable.d.ts +5 -3
- package/core/internal_constants.d.ts +0 -7
- package/core/keyboard_nav/ast_node.d.ts +21 -2
- package/core/options.d.ts +1 -0
- package/core/registry.d.ts +2 -2
- package/core/renderers/common/drawer.d.ts +0 -7
- package/core/renderers/common/marker_svg.d.ts +7 -0
- package/core/renderers/measurables/icon.d.ts +0 -5
- package/core/serialization/priorities.d.ts +2 -0
- package/core/serialization/procedures.d.ts +28 -26
- package/core/serialization/workspace_comments.d.ts +45 -0
- package/core/serialization.d.ts +2 -1
- package/core/toolbox/toolbox.d.ts +1 -2
- package/core/utils/dom.d.ts +0 -9
- package/core/utils/keycodes.d.ts +32 -32
- package/core/utils/size.d.ts +10 -0
- package/core/utils/string.d.ts +0 -10
- package/core/workspace_comment_svg.d.ts +1 -2
- package/core/workspace_svg.d.ts +0 -27
- package/core/xml.d.ts +9 -3
- package/core-node.js +31 -0
- package/dart.d.ts +1 -24
- package/dart_compressed.js +22 -72
- package/dart_compressed.js.map +1 -1
- package/generators/dart/dart_generator.d.ts +17 -17
- package/generators/dart/text.d.ts +0 -1
- package/generators/javascript/javascript_generator.d.ts +34 -35
- package/generators/javascript/text.d.ts +0 -1
- package/generators/lua/lua_generator.d.ts +10 -10
- package/generators/lua/text.d.ts +0 -1
- package/generators/php/php_generator.d.ts +36 -36
- package/generators/php/text.d.ts +0 -1
- package/generators/python/python_generator.d.ts +20 -21
- package/generators/python/text.d.ts +0 -1
- package/index.js +19 -7
- package/javascript.d.ts +1 -41
- package/javascript_compressed.js +19 -54
- package/javascript_compressed.js.map +1 -1
- package/lua.d.ts +1 -18
- package/lua_compressed.js +24 -47
- package/lua_compressed.js.map +1 -1
- package/media/delete-icon.svg +1 -0
- package/media/foldout-icon.svg +1 -0
- package/media/resize-handle.svg +3 -0
- package/msg/ce.d.ts +8 -0
- package/msg/dtp.d.ts +8 -0
- package/msg/hsb.d.ts +8 -0
- package/msg/tdd.d.ts +8 -0
- package/package.json +46 -12
- package/php.d.ts +1 -43
- package/php_compressed.js +13 -46
- package/php_compressed.js.map +1 -1
- package/python.d.ts +1 -27
- package/python_compressed.js +21 -40
- package/python_compressed.js.map +1 -1
- package/blockly.js +0 -22
- package/blocks.js +0 -22
- package/browser.js +0 -30
- package/core/block_dragger.d.ts +0 -212
- package/core/bubble_dragger.d.ts +0 -77
- package/core/field_angle.d.ts +0 -208
- package/core/field_colour.d.ts +0 -243
- package/core/field_multilineinput.d.ts +0 -182
- package/core/interfaces/i_block_dragger.d.ts +0 -47
- 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/core-browser.js +0 -26
- package/core.js +0 -26
- package/dart.js +0 -22
- package/generators/dart/colour.d.ts +0 -16
- package/generators/javascript/colour.d.ts +0 -16
- package/generators/lua/colour.d.ts +0 -16
- package/generators/php/colour.d.ts +0 -16
- package/generators/python/colour.d.ts +0 -16
- package/javascript.js +0 -23
- package/lua.js +0 -22
- package/msg/constants.d.ts +0 -14
- package/msg/qqq.d.ts +0 -14
- package/msg/synonyms.d.ts +0 -14
- package/node.js +0 -21
- package/php.js +0 -22
- package/python.js +0 -23
package/dart.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
;(function(root, factory) {
|
|
3
|
-
if (typeof define === 'function' && define.amd) { // AMD
|
|
4
|
-
define(['./core', './dart_compressed.js'], factory);
|
|
5
|
-
} else if (typeof exports === 'object') { // Node.js
|
|
6
|
-
module.exports = factory(require('./core'), require('./dart_compressed.js'));
|
|
7
|
-
} else { // Browser
|
|
8
|
-
root.BlocklyDart = factory(root.Blockly, root.BlocklyDart);
|
|
9
|
-
}
|
|
10
|
-
}(this, function(Blockly, BlocklyDart) {
|
|
11
|
-
/**
|
|
12
|
-
* @license
|
|
13
|
-
* Copyright 2020 Google LLC
|
|
14
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @fileoverview Dart generator module; just a wrapper for dart_compressed.js.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
return BlocklyDart;
|
|
22
|
-
}));
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2014 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* @file Generating Dart for colour blocks.
|
|
8
|
-
*/
|
|
9
|
-
import type { Block } from '../../core/block.js';
|
|
10
|
-
import type { DartGenerator } from './dart_generator.js';
|
|
11
|
-
import { Order } from './dart_generator.js';
|
|
12
|
-
export declare function colour_picker(block: Block, generator: DartGenerator): [string, Order];
|
|
13
|
-
export declare function colour_random(block: Block, generator: DartGenerator): [string, Order];
|
|
14
|
-
export declare function colour_rgb(block: Block, generator: DartGenerator): [string, Order];
|
|
15
|
-
export declare function colour_blend(block: Block, generator: DartGenerator): [string, Order];
|
|
16
|
-
//# sourceMappingURL=colour.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2012 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* @file Generating JavaScript for colour blocks.
|
|
8
|
-
*/
|
|
9
|
-
import type { Block } from '../../core/block.js';
|
|
10
|
-
import type { JavascriptGenerator } from './javascript_generator.js';
|
|
11
|
-
import { Order } from './javascript_generator.js';
|
|
12
|
-
export declare function colour_picker(block: Block, generator: JavascriptGenerator): [string, Order];
|
|
13
|
-
export declare function colour_random(block: Block, generator: JavascriptGenerator): [string, Order];
|
|
14
|
-
export declare function colour_rgb(block: Block, generator: JavascriptGenerator): [string, Order];
|
|
15
|
-
export declare function colour_blend(block: Block, generator: JavascriptGenerator): [string, Order];
|
|
16
|
-
//# sourceMappingURL=colour.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2016 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* @file Generating Lua for colour blocks.
|
|
8
|
-
*/
|
|
9
|
-
import type { Block } from '../../core/block.js';
|
|
10
|
-
import type { LuaGenerator } from './lua_generator.js';
|
|
11
|
-
import { Order } from './lua_generator.js';
|
|
12
|
-
export declare function colour_picker(block: Block, generator: LuaGenerator): [string, Order];
|
|
13
|
-
export declare function colour_random(block: Block, generator: LuaGenerator): [string, Order];
|
|
14
|
-
export declare function colour_rgb(block: Block, generator: LuaGenerator): [string, Order];
|
|
15
|
-
export declare function colour_blend(block: Block, generator: LuaGenerator): [string, Order];
|
|
16
|
-
//# sourceMappingURL=colour.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2015 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* @file Generating PHP for colour blocks.
|
|
8
|
-
*/
|
|
9
|
-
import type { Block } from '../../core/block.js';
|
|
10
|
-
import { Order } from './php_generator.js';
|
|
11
|
-
import type { PhpGenerator } from './php_generator.js';
|
|
12
|
-
export declare function colour_picker(block: Block, generator: PhpGenerator): [string, Order];
|
|
13
|
-
export declare function colour_random(block: Block, generator: PhpGenerator): [string, Order];
|
|
14
|
-
export declare function colour_rgb(block: Block, generator: PhpGenerator): [string, Order];
|
|
15
|
-
export declare function colour_blend(block: Block, generator: PhpGenerator): [string, Order];
|
|
16
|
-
//# sourceMappingURL=colour.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2012 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* @file Generating Python for colour blocks.
|
|
8
|
-
*/
|
|
9
|
-
import type { Block } from '../../core/block.js';
|
|
10
|
-
import type { PythonGenerator } from './python_generator.js';
|
|
11
|
-
import { Order } from './python_generator.js';
|
|
12
|
-
export declare function colour_picker(block: Block, generator: PythonGenerator): [string, Order];
|
|
13
|
-
export declare function colour_random(block: Block, generator: PythonGenerator): [string, Order];
|
|
14
|
-
export declare function colour_rgb(block: Block, generator: PythonGenerator): [string, Order];
|
|
15
|
-
export declare function colour_blend(block: Block, generator: PythonGenerator): [string, Order];
|
|
16
|
-
//# sourceMappingURL=colour.d.ts.map
|
package/javascript.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
;(function(root, factory) {
|
|
3
|
-
if (typeof define === 'function' && define.amd) { // AMD
|
|
4
|
-
define(['./core', './javascript_compressed.js'], factory);
|
|
5
|
-
} else if (typeof exports === 'object') { // Node.js
|
|
6
|
-
module.exports = factory(require('./core'), require('./javascript_compressed.js'));
|
|
7
|
-
} else { // Browser
|
|
8
|
-
root.BlocklyJavaScript = factory(root.Blockly, root.BlocklyJavaScript);
|
|
9
|
-
}
|
|
10
|
-
}(this, function(Blockly, BlocklyJavaScript) {
|
|
11
|
-
/**
|
|
12
|
-
* @license
|
|
13
|
-
* Copyright 2020 Google LLC
|
|
14
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @fileoverview JavaScript Generator module; just a wrapper for
|
|
19
|
-
* javascript_compressed.js.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
return BlocklyJavaScript;
|
|
23
|
-
}));
|
package/lua.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
;(function(root, factory) {
|
|
3
|
-
if (typeof define === 'function' && define.amd) { // AMD
|
|
4
|
-
define(['./core', './lua_compressed.js'], factory);
|
|
5
|
-
} else if (typeof exports === 'object') { // Node.js
|
|
6
|
-
module.exports = factory(require('./core'), require('./lua_compressed.js'));
|
|
7
|
-
} else { // Browser
|
|
8
|
-
root.BlocklyLua = factory(root.Blockly, root.BlocklyLua);
|
|
9
|
-
}
|
|
10
|
-
}(this, function(Blockly, BlocklyLua) {
|
|
11
|
-
/**
|
|
12
|
-
* @license
|
|
13
|
-
* Copyright 2020 Google LLC
|
|
14
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @fileoverview Lua generator module; just a wrapper for lua_compressed.js.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
return BlocklyLua;
|
|
22
|
-
}));
|
package/msg/constants.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2020 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Type definitions for the Blockly constants locale.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/// <reference path="msg.d.ts" />
|
|
12
|
-
|
|
13
|
-
import BlocklyMsg = Blockly.Msg;
|
|
14
|
-
export = BlocklyMsg;
|
package/msg/qqq.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2020 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Type definitions for the Blockly qqq locale.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/// <reference path="msg.d.ts" />
|
|
12
|
-
|
|
13
|
-
import BlocklyMsg = Blockly.Msg;
|
|
14
|
-
export = BlocklyMsg;
|
package/msg/synonyms.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2020 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Type definitions for the Blockly synonyms locale.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/// <reference path="msg.d.ts" />
|
|
12
|
-
|
|
13
|
-
import BlocklyMsg = Blockly.Msg;
|
|
14
|
-
export = BlocklyMsg;
|
package/node.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
(function (Blockly, En, BlocklyBlocks, BlocklyJS, BlocklyPython, BlocklyPHP, BlocklyLua, BlocklyDart){
|
|
3
|
-
/**
|
|
4
|
-
* @license
|
|
5
|
-
* Copyright 2019 Google LLC
|
|
6
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @fileoverview Blockly module for Node. It includes Blockly core,
|
|
11
|
-
* built-in blocks, all the generators and the English locale.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/* eslint-disable */
|
|
15
|
-
'use strict';
|
|
16
|
-
|
|
17
|
-
// Include the EN Locale by default.
|
|
18
|
-
Blockly.setLocale(En);
|
|
19
|
-
|
|
20
|
-
module.exports = Blockly;
|
|
21
|
-
})(require('./core'), require('./msg/en'), require('./blocks'), require('./javascript'), require('./python'), require('./php'), require('./lua'), require('./dart'));
|
package/php.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
;(function(root, factory) {
|
|
3
|
-
if (typeof define === 'function' && define.amd) { // AMD
|
|
4
|
-
define(['./core', './php_compressed.js'], factory);
|
|
5
|
-
} else if (typeof exports === 'object') { // Node.js
|
|
6
|
-
module.exports = factory(require('./core'), require('./php_compressed.js'));
|
|
7
|
-
} else { // Browser
|
|
8
|
-
root.BlocklyPHP = factory(root.Blockly, root.BlocklyPHP);
|
|
9
|
-
}
|
|
10
|
-
}(this, function(Blockly, BlocklyPHP) {
|
|
11
|
-
/**
|
|
12
|
-
* @license
|
|
13
|
-
* Copyright 2020 Google LLC
|
|
14
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @fileoverview PHP generator module; just a wrapper for php_compressed.js.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
return BlocklyPHP;
|
|
22
|
-
}));
|
package/python.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
;(function(root, factory) {
|
|
3
|
-
if (typeof define === 'function' && define.amd) { // AMD
|
|
4
|
-
define(['./core', './python_compressed.js'], factory);
|
|
5
|
-
} else if (typeof exports === 'object') { // Node.js
|
|
6
|
-
module.exports = factory(require('./core'), require('./python_compressed.js'));
|
|
7
|
-
} else { // Browser
|
|
8
|
-
root.BlocklyPython = factory(root.Blockly, root.BlocklyPython);
|
|
9
|
-
}
|
|
10
|
-
}(this, function(Blockly, BlocklyPython) {
|
|
11
|
-
/**
|
|
12
|
-
* @license
|
|
13
|
-
* Copyright 2020 Google LLC
|
|
14
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @fileoverview Python generator module; just a wrapper for
|
|
19
|
-
* python_compressed.js.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
return BlocklyPython;
|
|
23
|
-
}));
|