From 5078dcbc6d4d48422313732e87191b29569b5eed Mon Sep 17 00:00:00 2001 From: Christopher Allen Date: Wed, 23 Feb 2022 21:25:52 +0000 Subject: [PATCH] refactor(blocks)!: Rename Blockly.blocks.* modules to Blockly.libraryBlocks.* (#5953) ...and rename Blockly.blocks.all (blocks/all.js) to Blockly.libraryBlocks (blocks/blocks.js BREAKING CHANGE: (only) because the exports object from the `blocks_compressed.js` chunk will be accessed as `Blockly.libraryBlocks` instead of `Blockly.blocks.all` when the chunk is loaded in a browser via a ` diff --git a/tests/mocha/index.html b/tests/mocha/index.html index b054c4af8bb..7d734de531f 100644 --- a/tests/mocha/index.html +++ b/tests/mocha/index.html @@ -43,15 +43,15 @@ goog.require('Blockly.PHP.texts'); goog.require('Blockly.Python'); goog.require('Blockly.Python.texts'); - goog.require('Blockly.blocks.colour'); - goog.require('Blockly.blocks.logic'); - goog.require('Blockly.blocks.lists'); - goog.require('Blockly.blocks.loops'); - goog.require('Blockly.blocks.math'); - goog.require('Blockly.blocks.procedures'); - goog.require('Blockly.blocks.texts'); - goog.require('Blockly.blocks.variables'); - goog.require('Blockly.blocks.variablesDynamic'); + goog.require('Blockly.libraryBlocks.colour'); + goog.require('Blockly.libraryBlocks.logic'); + goog.require('Blockly.libraryBlocks.lists'); + goog.require('Blockly.libraryBlocks.loops'); + goog.require('Blockly.libraryBlocks.math'); + goog.require('Blockly.libraryBlocks.procedures'); + goog.require('Blockly.libraryBlocks.texts'); + goog.require('Blockly.libraryBlocks.variables'); + goog.require('Blockly.libraryBlocks.variablesDynamic'); // Run tests. goog.require('Blockly.test.astNode'); diff --git a/tests/playgrounds/advanced_playground.html b/tests/playgrounds/advanced_playground.html index e5279d74c9a..d322bc0e00f 100644 --- a/tests/playgrounds/advanced_playground.html +++ b/tests/playgrounds/advanced_playground.html @@ -18,12 +18,12 @@ // Other. goog.require('Blockly.WorkspaceCommentSvg'); +goog.require('Blockly.libraryBlocks'); goog.require('Blockly.Dart.all'); goog.require('Blockly.JavaScript.all'); goog.require('Blockly.Lua.all'); goog.require('Blockly.PHP.all'); goog.require('Blockly.Python.all'); -goog.require('Blockly.blocks.all'); `); document.write(``); } else { document.write( ``); + document.write(``); document.write(``); document.write(``); document.write(``); document.write(``); document.write(``); - document.write(``); document.write(``); } })(); diff --git a/tests/playgrounds/prepare.js b/tests/playgrounds/prepare.js index a077cc53328..8b9d534cb8c 100644 --- a/tests/playgrounds/prepare.js +++ b/tests/playgrounds/prepare.js @@ -55,7 +55,7 @@ goog.bootstrap( [ 'Blockly', - 'Blockly.blocks.all', + 'Blockly.libraryBlocks', 'Blockly.Dart.all', 'Blockly.JavaScript.all', 'Blockly.Lua.all', @@ -74,12 +74,12 @@ // Load blockly_compressed.js et al. using '); + document.write(''); + document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); - document.write(''); - document.write(''); } })();