Disable image support on clipboard.

This commit is contained in:
Paulo Gustavo Veiga 2023-01-15 09:14:56 -08:00
parent 6d0c90118f
commit 47ee896e71
8 changed files with 69 additions and 166 deletions

View File

@ -29,12 +29,17 @@
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"html-webpack-plugin": "^5.3.2",
"husky": "^8.0.0",
"lerna": "^3.16.4",
"lint-staged": "^10.5.4",
"prettier": "^2.7.1",
"start-server-and-test": "^1.14.0",
"typescript": "^4.8.4",
"webpack": "^5.75.0"
"webpack": "^5.75.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^5.0.1",
"webpack-dev-server": "^4.11.1"
},
"workspaces": [
"packages/*"

View File

@ -20,7 +20,6 @@
"dev": "webpack --mode development --config webpack.dev.js"
},
"devDependencies": {
"core-js": "^3.15.2",
"webpack-cli": "^4.10.0"
"core-js": "^3.15.2"
}
}

View File

@ -27,7 +27,6 @@
"css-loader": "^6.7.1",
"cypress": "^12.3.0",
"cypress-image-snapshot": "^4.0.1",
"html-webpack-plugin": "^5.5.0",
"jest-transform-stub": "^2.0.0",
"react": "^18.2.0",
"style-loader": "^3.3.1",

View File

@ -49,18 +49,12 @@
"core-js": "^3.15.2",
"cypress": "^12.3.0",
"cypress-image-snapshot": "^4.0.1",
"html-webpack-plugin": "^5.3.2",
"jest-diff": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jest-webpack": "^0.5.1",
"mocha": "^9.1.3",
"nodemon": "^2.0.12",
"start-server-and-test": "^1.14.0",
"ts-jest": "^29.0.3",
"ts-loader": "^9.2.6",
"ts-node": "^10.4.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.11.1"
"ts-node": "^10.4.0"
}
}

View File

@ -379,7 +379,7 @@ class Designer extends Events {
}
async copyToClipboard(): Promise<void> {
const enableImageSupport = true;
const enableImageSupport = false;
let topics = this.getModel().filterSelectedTopics();
// eslint-disable-next-line @typescript-eslint/ban-ts-comment

View File

@ -27,12 +27,7 @@
},
"devDependencies": {
"cypress": "12.3.0",
"cypress-image-snapshot": "^4.0.1",
"html-webpack-plugin": "^5.3.2",
"nodemon": "^2.0.12",
"start-server-and-test": "^1.14.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.11.1"
"cypress-image-snapshot": "^4.0.1"
},
"dependencies": {
"@wisemapping/core-js": "^0.4.0",

View File

@ -28,10 +28,7 @@
"@welldone-software/why-did-you-render": "^7.0.1",
"copy-webpack-plugin": "^7.0.0",
"cypress": "^12.3.0",
"cypress-image-snapshot": "^4.0.1",
"html-webpack-plugin": "^5.1.0",
"start-server-and-test": "^1.12.0",
"webpack-bundle-analyzer": "^4.4.0"
"cypress-image-snapshot": "^4.0.1"
},
"dependencies": {
"@emotion/react": "^11.10.4",

202
yarn.lock
View File

@ -4680,36 +4680,36 @@ __metadata:
languageName: node
linkType: hard
"@webpack-cli/configtest@npm:^1.2.0":
version: 1.2.0
resolution: "@webpack-cli/configtest@npm:1.2.0"
"@webpack-cli/configtest@npm:^2.0.1":
version: 2.0.1
resolution: "@webpack-cli/configtest@npm:2.0.1"
peerDependencies:
webpack: 4.x.x || 5.x.x
webpack-cli: 4.x.x
checksum: a2726cd9ec601d2b57e5fc15e0ebf5200a8892065e735911269ac2038e62be4bfc176ea1f88c2c46ff09b4d05d4c10ae045e87b3679372483d47da625a327e28
webpack: 5.x.x
webpack-cli: 5.x.x
checksum: 15d0ca835f2e16ec99e9f295f07b676435b9e706d7700df0ad088692fea065e34772fc44b96a4f6a86178b9ca8cf1ff941fbce15269587cf0925d70b18928cea
languageName: node
linkType: hard
"@webpack-cli/info@npm:^1.5.0":
version: 1.5.0
resolution: "@webpack-cli/info@npm:1.5.0"
dependencies:
envinfo: ^7.7.3
"@webpack-cli/info@npm:^2.0.1":
version: 2.0.1
resolution: "@webpack-cli/info@npm:2.0.1"
peerDependencies:
webpack-cli: 4.x.x
checksum: 7f56fe037cd7d1fd5c7428588519fbf04a0cad33925ee4202ffbafd00f8ec1f2f67d991245e687d50e0f3e23f7b7814273d56cb9f7da4b05eed47c8d815c6296
webpack: 5.x.x
webpack-cli: 5.x.x
checksum: b8fba49fee10d297c2affb0b064c9a81e9038d75517c6728fb85f9fb254cae634e5d33e696dac5171e6944ae329d85fddac72f781c7d833f7e9dfe43151ce60d
languageName: node
linkType: hard
"@webpack-cli/serve@npm:^1.7.0":
version: 1.7.0
resolution: "@webpack-cli/serve@npm:1.7.0"
"@webpack-cli/serve@npm:^2.0.1":
version: 2.0.1
resolution: "@webpack-cli/serve@npm:2.0.1"
peerDependencies:
webpack-cli: 4.x.x
webpack: 5.x.x
webpack-cli: 5.x.x
peerDependenciesMeta:
webpack-dev-server:
optional: true
checksum: d475e8effa23eb7ff9a48b14d4de425989fd82f906ce71c210921cc3852327c22873be00c35e181a25a6bd03d424ae2b83e7f3b3f410ac7ee31b128ab4ac7713
checksum: 75c55f8398dd60e4821f81bec6e96287cebb3ab1837ef016779bc2f0c76a1d29c45b99e53daa99ba1fa156b5e2b61c19abf58098de20c2b58391b1f496ecc145
languageName: node
linkType: hard
@ -4729,7 +4729,6 @@ __metadata:
resolution: "@wisemapping/core-js@workspace:packages/core-js"
dependencies:
core-js: ^3.15.2
webpack-cli: ^4.10.0
languageName: unknown
linkType: soft
@ -4748,7 +4747,6 @@ __metadata:
cypress: ^12.3.0
cypress-image-snapshot: ^4.0.1
emoji-picker-react: ^4.4.7
html-webpack-plugin: ^5.5.0
jest-transform-stub: ^2.0.0
react: ^18.2.0
react-color: ^2.19.3
@ -4783,7 +4781,6 @@ __metadata:
cypress: ^12.3.0
cypress-image-snapshot: ^4.0.1
emoji-picker-react: ^4.4.3
html-webpack-plugin: ^5.3.2
jest: ^29.3.1
jest-diff: ^29.3.1
jest-environment-jsdom: ^29.3.1
@ -4791,14 +4788,9 @@ __metadata:
jquery: 3.6.0
lodash: ^4.17.21
mocha: ^9.1.3
nodemon: ^2.0.12
start-server-and-test: ^1.14.0
ts-jest: ^29.0.3
ts-loader: ^9.2.6
ts-node: ^10.4.0
webpack-bundle-analyzer: ^4.5.0
webpack-cli: ^4.10.0
webpack-dev-server: ^4.11.1
xml-formatter: ^2.6.1
languageName: unknown
linkType: soft
@ -4811,12 +4803,7 @@ __metadata:
core-js: ^3.15.2
cypress: 12.3.0
cypress-image-snapshot: ^4.0.1
html-webpack-plugin: ^5.3.2
jquery: ^3.6.0
nodemon: ^2.0.12
start-server-and-test: ^1.14.0
webpack-cli: ^4.10.0
webpack-dev-server: ^4.11.1
peerDependencies:
"@wisemapping/core-js": ^0.4.0
core-js: ^3.15.2
@ -4844,7 +4831,6 @@ __metadata:
cypress: ^12.3.0
cypress-image-snapshot: ^4.0.1
dayjs: ^1.10.7
html-webpack-plugin: ^5.1.0
react: ^18.2.0
react-dom: ^18.2.0
react-ga4: ^1.4.1
@ -4853,9 +4839,7 @@ __metadata:
react-query: ^3.39.1
react-redux: ^7.2.2
react-router-dom: ^6.4.3
start-server-and-test: ^1.12.0
styled-components: ^5.3.6
webpack-bundle-analyzer: ^4.4.0
languageName: unknown
linkType: soft
@ -6309,7 +6293,7 @@ __metadata:
languageName: node
linkType: hard
"chokidar@npm:3.5.3, chokidar@npm:^3.5.2, chokidar@npm:^3.5.3":
"chokidar@npm:3.5.3, chokidar@npm:^3.5.3":
version: 3.5.3
resolution: "chokidar@npm:3.5.3"
dependencies:
@ -6648,7 +6632,7 @@ __metadata:
languageName: node
linkType: hard
"commander@npm:^7.0.0, commander@npm:^7.2.0":
"commander@npm:^7.2.0":
version: 7.2.0
resolution: "commander@npm:7.2.0"
checksum: 53501cbeee61d5157546c0bef0fedb6cdfc763a882136284bed9a07225f09a14b82d2a84e7637edfd1a679fb35ed9502fd58ef1d091e6287f60d790147f68ddc
@ -6662,6 +6646,13 @@ __metadata:
languageName: node
linkType: hard
"commander@npm:^9.4.1":
version: 9.5.0
resolution: "commander@npm:9.5.0"
checksum: c7a3e27aa59e913b54a1bafd366b88650bc41d6651f0cbe258d4ff09d43d6a7394232a4dadd0bf518b3e696fdf595db1028a0d82c785b88bd61f8a440cecfade
languageName: node
linkType: hard
"common-tags@npm:^1.8.0":
version: 1.8.2
resolution: "common-tags@npm:1.8.2"
@ -9999,7 +9990,7 @@ __metadata:
languageName: node
linkType: hard
"html-webpack-plugin@npm:^5.1.0, html-webpack-plugin@npm:^5.3.2, html-webpack-plugin@npm:^5.5.0":
"html-webpack-plugin@npm:^5.3.2":
version: 5.5.0
resolution: "html-webpack-plugin@npm:5.5.0"
dependencies:
@ -10244,13 +10235,6 @@ __metadata:
languageName: node
linkType: hard
"ignore-by-default@npm:^1.0.1":
version: 1.0.1
resolution: "ignore-by-default@npm:1.0.1"
checksum: 441509147b3615e0365e407a3c18e189f78c07af08564176c680be1fabc94b6c789cad1342ad887175d4ecd5225de86f73d376cec8e06b42fd9b429505ffcf8a
languageName: node
linkType: hard
"ignore-walk@npm:^3.0.1":
version: 3.0.4
resolution: "ignore-walk@npm:3.0.4"
@ -10471,10 +10455,10 @@ __metadata:
languageName: node
linkType: hard
"interpret@npm:^2.2.0":
version: 2.2.0
resolution: "interpret@npm:2.2.0"
checksum: f51efef7cb8d02da16408ffa3504cd6053014c5aeb7bb8c223727e053e4235bf565e45d67028b0c8740d917c603807aa3c27d7bd2f21bf20b6417e2bb3e5fd6e
"interpret@npm:^3.1.1":
version: 3.1.1
resolution: "interpret@npm:3.1.1"
checksum: 35cebcf48c7351130437596d9ab8c8fe131ce4038da4561e6d665f25640e0034702a031cf7e3a5cea60ac7ac548bf17465e0571ede126f3d3a6933152171ac82
languageName: node
linkType: hard
@ -13358,26 +13342,6 @@ __metadata:
languageName: node
linkType: hard
"nodemon@npm:^2.0.12":
version: 2.0.20
resolution: "nodemon@npm:2.0.20"
dependencies:
chokidar: ^3.5.2
debug: ^3.2.7
ignore-by-default: ^1.0.1
minimatch: ^3.1.2
pstree.remy: ^1.1.8
semver: ^5.7.1
simple-update-notifier: ^1.0.7
supports-color: ^5.5.0
touch: ^3.1.0
undefsafe: ^2.0.5
bin:
nodemon: bin/nodemon.js
checksum: 9fe858682414fe703179f4fe36c86e71f40d2693b5345c09803d7b191816a6589c5df8f1f9873bffee92893880183b95a031c86340e46b364ef1b0b7f619edbf
languageName: node
linkType: hard
"nopt@npm:^4.0.1":
version: 4.0.3
resolution: "nopt@npm:4.0.3"
@ -13401,17 +13365,6 @@ __metadata:
languageName: node
linkType: hard
"nopt@npm:~1.0.10":
version: 1.0.10
resolution: "nopt@npm:1.0.10"
dependencies:
abbrev: 1
bin:
nopt: ./bin/nopt.js
checksum: f62575aceaa3be43f365bf37a596b89bbac2e796b001b6d2e2a85c2140a4e378ff919e2753ccba959c4fd344776fc88c29b393bc167fa939fb1513f126f4cd45
languageName: node
linkType: hard
"normalize-package-data@npm:^2.0.0, normalize-package-data@npm:^2.3.0, normalize-package-data@npm:^2.3.2, normalize-package-data@npm:^2.3.4, normalize-package-data@npm:^2.3.5, normalize-package-data@npm:^2.4.0, normalize-package-data@npm:^2.5.0":
version: 2.5.0
resolution: "normalize-package-data@npm:2.5.0"
@ -14696,13 +14649,6 @@ __metadata:
languageName: node
linkType: hard
"pstree.remy@npm:^1.1.8":
version: 1.1.8
resolution: "pstree.remy@npm:1.1.8"
checksum: 5cb53698d6bb34dfb278c8a26957964aecfff3e161af5fbf7cee00bbe9d8547c7aced4bd9cb193bce15fb56e9e4220fc02a5bf9c14345ffb13a36b858701ec2d
languageName: node
linkType: hard
"pump@npm:^2.0.0":
version: 2.0.1
resolution: "pump@npm:2.0.1"
@ -15200,12 +15146,12 @@ __metadata:
languageName: node
linkType: hard
"rechoir@npm:^0.7.0":
version: 0.7.1
resolution: "rechoir@npm:0.7.1"
"rechoir@npm:^0.8.0":
version: 0.8.0
resolution: "rechoir@npm:0.8.0"
dependencies:
resolve: ^1.9.0
checksum: 2a04aab4e28c05fcd6ee6768446bc8b859d8f108e71fc7f5bcbc5ef25e53330ce2c11d10f82a24591a2df4c49c4f61feabe1fd11f844c66feedd4cd7bb61146a
resolve: ^1.20.0
checksum: ad3caed8afdefbc33fbc30e6d22b86c35b3d51c2005546f4e79bcc03c074df804b3640ad18945e6bef9ed12caedc035655ec1082f64a5e94c849ff939dc0a788
languageName: node
linkType: hard
@ -15545,7 +15491,7 @@ __metadata:
languageName: node
linkType: hard
"resolve@npm:^1.10.0, resolve@npm:^1.14.2, resolve@npm:^1.19.0, resolve@npm:^1.20.0, resolve@npm:^1.22.0, resolve@npm:^1.9.0":
"resolve@npm:^1.10.0, resolve@npm:^1.14.2, resolve@npm:^1.19.0, resolve@npm:^1.20.0, resolve@npm:^1.22.0":
version: 1.22.1
resolution: "resolve@npm:1.22.1"
dependencies:
@ -15571,7 +15517,7 @@ __metadata:
languageName: node
linkType: hard
"resolve@patch:resolve@^1.10.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.14.2#~builtin<compat/resolve>, resolve@patch:resolve@^1.19.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.20.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.9.0#~builtin<compat/resolve>":
"resolve@patch:resolve@^1.10.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.14.2#~builtin<compat/resolve>, resolve@patch:resolve@^1.19.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.20.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.0#~builtin<compat/resolve>":
version: 1.22.1
resolution: "resolve@patch:resolve@npm%3A1.22.1#~builtin<compat/resolve>::version=1.22.1&hash=c3c19d"
dependencies:
@ -15858,15 +15804,6 @@ __metadata:
languageName: node
linkType: hard
"semver@npm:~7.0.0":
version: 7.0.0
resolution: "semver@npm:7.0.0"
bin:
semver: bin/semver.js
checksum: 272c11bf8d083274ef79fe40a81c55c184dff84dd58e3c325299d0927ba48cece1f020793d138382b85f89bab5002a35a5ba59a3a68a7eebbb597eb733838778
languageName: node
linkType: hard
"send@npm:0.18.0":
version: 0.18.0
resolution: "send@npm:0.18.0"
@ -16032,15 +15969,6 @@ __metadata:
languageName: node
linkType: hard
"simple-update-notifier@npm:^1.0.7":
version: 1.0.7
resolution: "simple-update-notifier@npm:1.0.7"
dependencies:
semver: ~7.0.0
checksum: aaadc1f158ad5101b363d1c7aed1f30fc1cac59a760aa31702633e0e6fe423348f07d0e78185aef0aad29130a7b7f0f188c21c7bc7353f897a0ea3682e051a70
languageName: node
linkType: hard
"sirv@npm:^1.0.7":
version: 1.0.19
resolution: "sirv@npm:1.0.19"
@ -16463,7 +16391,7 @@ __metadata:
languageName: node
linkType: hard
"start-server-and-test@npm:^1.12.0, start-server-and-test@npm:^1.14.0":
"start-server-and-test@npm:^1.14.0":
version: 1.14.0
resolution: "start-server-and-test@npm:1.14.0"
dependencies:
@ -17168,17 +17096,6 @@ __metadata:
languageName: node
linkType: hard
"touch@npm:^3.1.0":
version: 3.1.0
resolution: "touch@npm:3.1.0"
dependencies:
nopt: ~1.0.10
bin:
nodetouch: ./bin/nodetouch.js
checksum: e0be589cb5b0e6dbfce6e7e077d4a0d5f0aba558ef769c6d9c33f635e00d73d5be49da6f8631db302ee073919d82b5b7f56da2987feb28765c95a7673af68647
languageName: node
linkType: hard
"tough-cookie@npm:^4.1.2":
version: 4.1.2
resolution: "tough-cookie@npm:4.1.2"
@ -17532,13 +17449,6 @@ __metadata:
languageName: node
linkType: hard
"undefsafe@npm:^2.0.5":
version: 2.0.5
resolution: "undefsafe@npm:2.0.5"
checksum: f42ab3b5770fedd4ada175fc1b2eb775b78f609156f7c389106aafd231bfc210813ee49f54483d7191d7b76e483bc7f537b5d92d19ded27156baf57592eb02cc
languageName: node
linkType: hard
"unicode-canonical-property-names-ecmascript@npm:^2.0.0":
version: 2.0.0
resolution: "unicode-canonical-property-names-ecmascript@npm:2.0.0"
@ -17928,7 +17838,7 @@ __metadata:
languageName: node
linkType: hard
"webpack-bundle-analyzer@npm:^4.4.0, webpack-bundle-analyzer@npm:^4.5.0":
"webpack-bundle-analyzer@npm:^4.5.0":
version: 4.7.0
resolution: "webpack-bundle-analyzer@npm:4.7.0"
dependencies:
@ -17947,36 +17857,35 @@ __metadata:
languageName: node
linkType: hard
"webpack-cli@npm:^4.10.0":
version: 4.10.0
resolution: "webpack-cli@npm:4.10.0"
"webpack-cli@npm:^5.0.1":
version: 5.0.1
resolution: "webpack-cli@npm:5.0.1"
dependencies:
"@discoveryjs/json-ext": ^0.5.0
"@webpack-cli/configtest": ^1.2.0
"@webpack-cli/info": ^1.5.0
"@webpack-cli/serve": ^1.7.0
"@webpack-cli/configtest": ^2.0.1
"@webpack-cli/info": ^2.0.1
"@webpack-cli/serve": ^2.0.1
colorette: ^2.0.14
commander: ^7.0.0
commander: ^9.4.1
cross-spawn: ^7.0.3
envinfo: ^7.7.3
fastest-levenshtein: ^1.0.12
import-local: ^3.0.2
interpret: ^2.2.0
rechoir: ^0.7.0
interpret: ^3.1.1
rechoir: ^0.8.0
webpack-merge: ^5.7.3
peerDependencies:
webpack: 4.x.x || 5.x.x
webpack: 5.x.x
peerDependenciesMeta:
"@webpack-cli/generators":
optional: true
"@webpack-cli/migrate":
optional: true
webpack-bundle-analyzer:
optional: true
webpack-dev-server:
optional: true
bin:
webpack-cli: bin/cli.js
checksum: 2ff5355ac348e6b40f2630a203b981728834dca96d6d621be96249764b2d0fc01dd54edfcc37f02214d02935de2cf0eefd6ce689d970d154ef493f01ba922390
checksum: b1544eea669442e78c3dba9f79c0f8d0136759b8b2fe9cd32c0d410250fd719988ae037778ba88993215d44971169f2c268c0c934068be561711615f1951bd53
languageName: node
linkType: hard
@ -18281,12 +18190,17 @@ __metadata:
eslint-plugin-import: ^2.26.0
eslint-plugin-react: ^7.31.10
eslint-plugin-react-hooks: ^4.6.0
html-webpack-plugin: ^5.3.2
husky: ^8.0.0
lerna: ^3.16.4
lint-staged: ^10.5.4
prettier: ^2.7.1
start-server-and-test: ^1.14.0
typescript: ^4.8.4
webpack: ^5.75.0
webpack-bundle-analyzer: ^4.5.0
webpack-cli: ^5.0.1
webpack-dev-server: ^4.11.1
languageName: unknown
linkType: soft