[blockly] Remove cross-tab-copy-paste plugin (#2419)

It conflicts with the multi-select plugin and the same functionality is provided by the multi-select plugin

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
pull/2430/head
Jimmy Tanagra 2024-02-27 18:49:58 +10:00 committed by Florian Hotze
parent 5997c28655
commit 4ee3e54e20
3 changed files with 0 additions and 34 deletions

View File

@ -10,7 +10,6 @@
"license": "EPL-2.0",
"dependencies": {
"@blockly/field-slider": "^6.1.4",
"@blockly/plugin-cross-tab-copy-paste": "^5.0.5",
"@blockly/plugin-workspace-search": "^8.1.2",
"@blockly/shadow-block-converter": "^5.0.0",
"@blockly/theme-dark": "^6.0.5",
@ -1977,17 +1976,6 @@
"blockly": "^10.0.0"
}
},
"node_modules/@blockly/plugin-cross-tab-copy-paste": {
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/@blockly/plugin-cross-tab-copy-paste/-/plugin-cross-tab-copy-paste-5.0.5.tgz",
"integrity": "sha512-fI+jffxuougKtSPxd0vR5GR6xlEshxHKiYEWe0SO+AYGqGh5CFbK3x/mRhCzLQddZ0JhWnrALQjh8R3i2e/Apw==",
"engines": {
"node": ">=8.17.0"
},
"peerDependencies": {
"blockly": "^10.2.0"
}
},
"node_modules/@blockly/plugin-workspace-search": {
"version": "8.1.2",
"resolved": "https://registry.npmjs.org/@blockly/plugin-workspace-search/-/plugin-workspace-search-8.1.2.tgz",
@ -23624,12 +23612,6 @@
"integrity": "sha512-aa+jqMeXUpnckTjUv870OtEP+IppDFoVoEFzUPUH7mhMyFElRR/0ZHvbSI17TzIGd8Vdf7+WWzwYsjV4rbv2+A==",
"requires": {}
},
"@blockly/plugin-cross-tab-copy-paste": {
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/@blockly/plugin-cross-tab-copy-paste/-/plugin-cross-tab-copy-paste-5.0.5.tgz",
"integrity": "sha512-fI+jffxuougKtSPxd0vR5GR6xlEshxHKiYEWe0SO+AYGqGh5CFbK3x/mRhCzLQddZ0JhWnrALQjh8R3i2e/Apw==",
"requires": {}
},
"@blockly/plugin-workspace-search": {
"version": "8.1.2",
"resolved": "https://registry.npmjs.org/@blockly/plugin-workspace-search/-/plugin-workspace-search-8.1.2.tgz",

View File

@ -63,7 +63,6 @@
],
"dependencies": {
"@blockly/field-slider": "^6.1.4",
"@blockly/plugin-cross-tab-copy-paste": "^5.0.5",
"@blockly/plugin-workspace-search": "^8.1.2",
"@blockly/shadow-block-converter": "^5.0.0",
"@blockly/theme-dark": "^6.0.5",

View File

@ -1089,7 +1089,6 @@ import Blockly from 'blockly'
import { WorkspaceSearch } from '@blockly/plugin-workspace-search'
import { javascriptGenerator } from 'blockly/javascript.js'
import DarkTheme from '@blockly/theme-dark'
import { CrossTabCopyPaste } from '@blockly/plugin-cross-tab-copy-paste'
import { ZoomToFitControl } from '@blockly/zoom-to-fit'
import { shadowBlockConversionChangeListener } from '@blockly/shadow-block-converter'
@ -1227,20 +1226,6 @@ export default {
const zoomToFit = new ZoomToFitControl(this.workspace)
zoomToFit.init()
if (!Blockly.ContextMenuRegistry.registry.getItem('blockCopyToStorage')) {
const copyAndPasteOptions = {
contextMenu: true,
shortcut: true
}
const copyAndPastePlugin = new CrossTabCopyPaste()
copyAndPastePlugin.init(copyAndPasteOptions, () => {
console.log('There has been a block type error during copying and pasting')
})
Blockly.Msg['CROSS_TAB_COPY'] = 'Cross-Rule-Copy'
Blockly.Msg['CROSS_TAB_PASTE'] = 'Cross-Rule-Paste'
}
this.registerLibraryCallbacks(libraryDefinitions)
const xml = Blockly.utils.xml.textToDom(this.blocks)
Blockly.Xml.domToWorkspace(xml, this.workspace)