chore: move remaining functions out of utils.js (#5714)

* chore: move arrayRemove to a new utils.array namespace

* chore: move getBlockTypeCounts out of utils.js

* chore: remove last functions from utils.js

* chore: reorder imports

* chore: add re-export for runAfterPageLoad
This commit is contained in:
Rachel Fenichel
2021-11-15 18:12:45 -08:00
committed by GitHub
parent 969fcac455
commit 075385c87c
15 changed files with 174 additions and 96 deletions

View File

@@ -230,7 +230,12 @@ const renamings = {
parseBlockColour: {module: 'Blockly.utils.parsing'},
checkMessageReferences: {module: 'Blockly.utils.parsing'},
replaceMessageReferences: {module: 'Blockly.utils.parsing'},
tokenizeInterpolation: {module: 'Blockly.utils.parsing'}
tokenizeInterpolation: {module: 'Blockly.utils.parsing'},
arrayRemove: {module: 'Blockly.utils.array', export: 'removeElem'},
getBlockTypeCounts:
{module: 'Blockly.common', export: 'getBlockTypeCounts'},
runAfterPageLoad:
{module: 'Blockly.Extensions', export: 'runAfterPageLoad'}
}
}
}