blockly 8.0.2 → 8.0.3
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.d.ts +2 -2
- package/blockly.min.js +1 -1
- package/blockly_compressed.js +1 -1
- package/blocks.d.ts +11 -2
- package/core.d.ts +1 -2
- package/dart.d.ts +1 -1
- package/index.d.ts +3 -5
- package/javascript.d.ts +1 -1
- package/lua.d.ts +1 -1
- package/package.json +1 -1
- package/php.d.ts +1 -1
- package/python.d.ts +1 -1
package/blockly.d.ts
CHANGED
|
@@ -531,13 +531,13 @@ declare module "core/blocks" {
|
|
|
531
531
|
* A block definition. For now this very lose, but it can potentially
|
|
532
532
|
* be refined e.g. by replacing this typedef with a class definition.
|
|
533
533
|
*/
|
|
534
|
-
export type BlockDefinition =
|
|
534
|
+
export type BlockDefinition = any;
|
|
535
535
|
/**
|
|
536
536
|
* A block definition. For now this very lose, but it can potentially
|
|
537
537
|
* be refined e.g. by replacing this typedef with a class definition.
|
|
538
538
|
* @typedef {!Object}
|
|
539
539
|
*/
|
|
540
|
-
export let BlockDefinition: any;
|
|
540
|
+
// export let BlockDefinition: any;
|
|
541
541
|
/**
|
|
542
542
|
* A mapping of block type names to block prototype objects.
|
|
543
543
|
* @type {!Object<string,!BlockDefinition>}
|
package/blockly.min.js
CHANGED
|
@@ -1972,7 +1972,7 @@ $.module$exports$Blockly$Procedures.mutatorOpenListener=function(a){if(a.type===
|
|
|
1972
1972
|
var module$contents$Blockly$Procedures_mutatorChangeListener=function(a){if(a.type===module$exports$Blockly$Events$utils.CREATE||a.type===module$exports$Blockly$Events$utils.DELETE||a.type===module$exports$Blockly$Events$utils.CHANGE)a=module$exports$Blockly$Workspace.Workspace.getById(a.workspaceId),module$contents$Blockly$Procedures_updateMutatorFlyout(a)};
|
|
1973
1973
|
$.module$exports$Blockly$Procedures.getCallers=function(a,b){var c=[];b=b.getAllBlocks(!1);for(var d=0;d<b.length;d++){var e=b[d];e.getProcedureCall&&(e=e.getProcedureCall())&&$.module$exports$Blockly$Names.Names.equals(e,a)&&c.push(b[d])}return c};
|
|
1974
1974
|
$.module$exports$Blockly$Procedures.mutateCallers=function(a){var b=(0,module$exports$Blockly$Events$utils.getRecordUndo)(),c=a.getProcedureDef()[0],d=a.mutationToDom(!0);a=(0,$.module$exports$Blockly$Procedures.getCallers)(c,a.workspace);c=0;for(var e;e=a[c];c++){var f=e.mutationToDom();f=f&&(0,$.module$exports$Blockly$Xml.domToText)(f);e.domToMutation(d);var g=e.mutationToDom();g=g&&(0,$.module$exports$Blockly$Xml.domToText)(g);f!==g&&((0,module$exports$Blockly$Events$utils.setRecordUndo)(!1),(0,module$exports$Blockly$Events$utils.fire)(new ((0,module$exports$Blockly$Events$utils.get)(module$exports$Blockly$Events$utils.CHANGE))(e,
|
|
1975
|
-
"mutation",null,f,g)),(0,module$exports$Blockly$Events$utils.setRecordUndo)(b))}};$.module$exports$Blockly$Procedures.getDefinition=function(a,b){b=b.getAllBlocks(!1);for(var c=0;c<b.length;c++){var d=b[c];if(d.getProcedureDef&&(d=d.getProcedureDef())&&$.module$exports$Blockly$Names.Names.equals(d[0],a))return b[c]}return null};$.Blockly={VERSION:"8.0.
|
|
1975
|
+
"mutation",null,f,g)),(0,module$exports$Blockly$Events$utils.setRecordUndo)(b))}};$.module$exports$Blockly$Procedures.getDefinition=function(a,b){b=b.getAllBlocks(!1);for(var c=0;c<b.length;c++){var d=b[c];if(d.getProcedureDef&&(d=d.getProcedureDef())&&$.module$exports$Blockly$Names.Names.equals(d[0],a))return b[c]}return null};$.Blockly={VERSION:"8.0.3"};$.Blockly.ALIGN_LEFT=$.module$exports$Blockly$Input.Align.LEFT;$.Blockly.ALIGN_CENTRE=$.module$exports$Blockly$Input.Align.CENTRE;$.Blockly.ALIGN_RIGHT=$.module$exports$Blockly$Input.Align.RIGHT;$.Blockly.INPUT_VALUE=$.module$exports$Blockly$ConnectionType.ConnectionType.INPUT_VALUE;$.Blockly.OUTPUT_VALUE=$.module$exports$Blockly$ConnectionType.ConnectionType.OUTPUT_VALUE;$.Blockly.NEXT_STATEMENT=$.module$exports$Blockly$ConnectionType.ConnectionType.NEXT_STATEMENT;
|
|
1976
1976
|
$.Blockly.PREVIOUS_STATEMENT=$.module$exports$Blockly$ConnectionType.ConnectionType.PREVIOUS_STATEMENT;$.Blockly.DUMMY_INPUT=$.module$exports$Blockly$inputTypes.inputTypes.DUMMY;$.Blockly.TOOLBOX_AT_TOP=module$exports$Blockly$utils$toolbox.Position.TOP;$.Blockly.TOOLBOX_AT_BOTTOM=module$exports$Blockly$utils$toolbox.Position.BOTTOM;$.Blockly.TOOLBOX_AT_LEFT=module$exports$Blockly$utils$toolbox.Position.LEFT;$.Blockly.TOOLBOX_AT_RIGHT=module$exports$Blockly$utils$toolbox.Position.RIGHT;
|
|
1977
1977
|
$.Blockly.svgResize=$.module$exports$Blockly$common.svgResize;var module$contents$Blockly_hideChaff=function(a){(0,$.module$exports$Blockly$common.getMainWorkspace)().hideChaff(a)};$.Blockly.hideChaff=module$contents$Blockly_hideChaff;$.Blockly.getMainWorkspace=$.module$exports$Blockly$common.getMainWorkspace;$.Blockly.defineBlocksWithJsonArray=$.module$exports$Blockly$common.defineBlocksWithJsonArray;$.Blockly.setParentContainer=$.module$exports$Blockly$common.setParentContainer;
|
|
1978
1978
|
Object.defineProperties($.Blockly,{alert:{set:function(a){(0,module$exports$Blockly$utils$deprecation.warn)("Blockly.alert","December 2021","December 2022");(0,module$exports$Blockly$dialog.setAlert)(a)},get:function(){(0,module$exports$Blockly$utils$deprecation.warn)("Blockly.alert","December 2021","December 2022","Blockly.dialog.alert()");return module$exports$Blockly$dialog.alert}},confirm:{set:function(a){(0,module$exports$Blockly$utils$deprecation.warn)("Blockly.confirm","December 2021","December 2022");
|
package/blockly_compressed.js
CHANGED
|
@@ -1972,7 +1972,7 @@ $.module$exports$Blockly$Procedures.mutatorOpenListener=function(a){if(a.type===
|
|
|
1972
1972
|
var module$contents$Blockly$Procedures_mutatorChangeListener=function(a){if(a.type===module$exports$Blockly$Events$utils.CREATE||a.type===module$exports$Blockly$Events$utils.DELETE||a.type===module$exports$Blockly$Events$utils.CHANGE)a=module$exports$Blockly$Workspace.Workspace.getById(a.workspaceId),module$contents$Blockly$Procedures_updateMutatorFlyout(a)};
|
|
1973
1973
|
$.module$exports$Blockly$Procedures.getCallers=function(a,b){var c=[];b=b.getAllBlocks(!1);for(var d=0;d<b.length;d++){var e=b[d];e.getProcedureCall&&(e=e.getProcedureCall())&&$.module$exports$Blockly$Names.Names.equals(e,a)&&c.push(b[d])}return c};
|
|
1974
1974
|
$.module$exports$Blockly$Procedures.mutateCallers=function(a){var b=(0,module$exports$Blockly$Events$utils.getRecordUndo)(),c=a.getProcedureDef()[0],d=a.mutationToDom(!0);a=(0,$.module$exports$Blockly$Procedures.getCallers)(c,a.workspace);c=0;for(var e;e=a[c];c++){var f=e.mutationToDom();f=f&&(0,$.module$exports$Blockly$Xml.domToText)(f);e.domToMutation(d);var g=e.mutationToDom();g=g&&(0,$.module$exports$Blockly$Xml.domToText)(g);f!==g&&((0,module$exports$Blockly$Events$utils.setRecordUndo)(!1),(0,module$exports$Blockly$Events$utils.fire)(new ((0,module$exports$Blockly$Events$utils.get)(module$exports$Blockly$Events$utils.CHANGE))(e,
|
|
1975
|
-
"mutation",null,f,g)),(0,module$exports$Blockly$Events$utils.setRecordUndo)(b))}};$.module$exports$Blockly$Procedures.getDefinition=function(a,b){b=b.getAllBlocks(!1);for(var c=0;c<b.length;c++){var d=b[c];if(d.getProcedureDef&&(d=d.getProcedureDef())&&$.module$exports$Blockly$Names.Names.equals(d[0],a))return b[c]}return null};$.Blockly={VERSION:"8.0.
|
|
1975
|
+
"mutation",null,f,g)),(0,module$exports$Blockly$Events$utils.setRecordUndo)(b))}};$.module$exports$Blockly$Procedures.getDefinition=function(a,b){b=b.getAllBlocks(!1);for(var c=0;c<b.length;c++){var d=b[c];if(d.getProcedureDef&&(d=d.getProcedureDef())&&$.module$exports$Blockly$Names.Names.equals(d[0],a))return b[c]}return null};$.Blockly={VERSION:"8.0.3"};$.Blockly.ALIGN_LEFT=$.module$exports$Blockly$Input.Align.LEFT;$.Blockly.ALIGN_CENTRE=$.module$exports$Blockly$Input.Align.CENTRE;$.Blockly.ALIGN_RIGHT=$.module$exports$Blockly$Input.Align.RIGHT;$.Blockly.INPUT_VALUE=$.module$exports$Blockly$ConnectionType.ConnectionType.INPUT_VALUE;$.Blockly.OUTPUT_VALUE=$.module$exports$Blockly$ConnectionType.ConnectionType.OUTPUT_VALUE;$.Blockly.NEXT_STATEMENT=$.module$exports$Blockly$ConnectionType.ConnectionType.NEXT_STATEMENT;
|
|
1976
1976
|
$.Blockly.PREVIOUS_STATEMENT=$.module$exports$Blockly$ConnectionType.ConnectionType.PREVIOUS_STATEMENT;$.Blockly.DUMMY_INPUT=$.module$exports$Blockly$inputTypes.inputTypes.DUMMY;$.Blockly.TOOLBOX_AT_TOP=module$exports$Blockly$utils$toolbox.Position.TOP;$.Blockly.TOOLBOX_AT_BOTTOM=module$exports$Blockly$utils$toolbox.Position.BOTTOM;$.Blockly.TOOLBOX_AT_LEFT=module$exports$Blockly$utils$toolbox.Position.LEFT;$.Blockly.TOOLBOX_AT_RIGHT=module$exports$Blockly$utils$toolbox.Position.RIGHT;
|
|
1977
1977
|
$.Blockly.svgResize=$.module$exports$Blockly$common.svgResize;var module$contents$Blockly_hideChaff=function(a){(0,$.module$exports$Blockly$common.getMainWorkspace)().hideChaff(a)};$.Blockly.hideChaff=module$contents$Blockly_hideChaff;$.Blockly.getMainWorkspace=$.module$exports$Blockly$common.getMainWorkspace;$.Blockly.defineBlocksWithJsonArray=$.module$exports$Blockly$common.defineBlocksWithJsonArray;$.Blockly.setParentContainer=$.module$exports$Blockly$common.setParentContainer;
|
|
1978
1978
|
Object.defineProperties($.Blockly,{alert:{set:function(a){(0,module$exports$Blockly$utils$deprecation.warn)("Blockly.alert","December 2021","December 2022");(0,module$exports$Blockly$dialog.setAlert)(a)},get:function(){(0,module$exports$Blockly$utils$deprecation.warn)("Blockly.alert","December 2021","December 2022","Blockly.dialog.alert()");return module$exports$Blockly$dialog.alert}},confirm:{set:function(a){(0,module$exports$Blockly$utils$deprecation.warn)("Blockly.confirm","December 2021","December 2022");
|
package/blocks.d.ts
CHANGED
|
@@ -11,5 +11,14 @@
|
|
|
11
11
|
|
|
12
12
|
/// <reference path="core.d.ts" />
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
export
|
|
14
|
+
export const colour: any;
|
|
15
|
+
export const lists: any;
|
|
16
|
+
export const logic: any;
|
|
17
|
+
export const loops: any;
|
|
18
|
+
export const math: any;
|
|
19
|
+
export const procedures: any;
|
|
20
|
+
export const texts: any;
|
|
21
|
+
export const variables: any;
|
|
22
|
+
export const variablesDynamic: any;
|
|
23
|
+
|
|
24
|
+
export const blocks: any;
|
package/core.d.ts
CHANGED
package/dart.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -14,9 +14,7 @@
|
|
|
14
14
|
/// <reference path="javascript.d.ts" />
|
|
15
15
|
/// <reference path="msg/msg.d.ts" />
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
export * from './core';
|
|
18
|
+
export * as libraryBlocks from './blocks';
|
|
19
|
+
export const JavaScript: any;
|
|
20
20
|
import './msg/msg';
|
|
21
|
-
|
|
22
|
-
export = Blockly;
|
package/javascript.d.ts
CHANGED
package/lua.d.ts
CHANGED
package/package.json
CHANGED
package/php.d.ts
CHANGED
package/python.d.ts
CHANGED