diff --git a/package-lock.json b/package-lock.json index e05699d5ce92a9..32b6636a8ec71c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24704,9 +24704,9 @@ "dev": true }, "node_modules/clipboard": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.11.tgz", - "integrity": "sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==", + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.8.tgz", + "integrity": "sha512-Y6WO0unAIQp5bLmk1zdThRhgJt/x3ks6f30s3oE3H1mgIEU33XyQjEf8gsf6DxC7NPX8Y1SsNWjUjL/ywLnnbQ==", "dependencies": { "good-listener": "^1.2.2", "select": "^1.1.2", @@ -54560,7 +54560,6 @@ "@wordpress/wordcount": "file:../wordcount", "change-case": "^4.1.2", "classnames": "^2.3.1", - "clipboard": "2.0.11", "colord": "^2.7.0", "deepmerge": "^4.3.0", "diff": "^4.0.2", @@ -54825,7 +54824,7 @@ "@wordpress/keycodes": "file:../keycodes", "@wordpress/priority-queue": "file:../priority-queue", "change-case": "^4.1.2", - "clipboard": "^2.0.11", + "clipboard": "^2.0.8", "mousetrap": "^1.6.5", "use-memo-one": "^1.1.1" }, @@ -67251,7 +67250,6 @@ "@wordpress/wordcount": "file:../wordcount", "change-case": "^4.1.2", "classnames": "^2.3.1", - "clipboard": "2.0.11", "colord": "^2.7.0", "deepmerge": "^4.3.0", "diff": "^4.0.2", @@ -67456,7 +67454,7 @@ "@wordpress/keycodes": "file:../keycodes", "@wordpress/priority-queue": "file:../priority-queue", "change-case": "^4.1.2", - "clipboard": "^2.0.11", + "clipboard": "^2.0.8", "mousetrap": "^1.6.5", "use-memo-one": "^1.1.1" } @@ -77344,9 +77342,9 @@ "dev": true }, "clipboard": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.11.tgz", - "integrity": "sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==", + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.8.tgz", + "integrity": "sha512-Y6WO0unAIQp5bLmk1zdThRhgJt/x3ks6f30s3oE3H1mgIEU33XyQjEf8gsf6DxC7NPX8Y1SsNWjUjL/ywLnnbQ==", "requires": { "good-listener": "^1.2.2", "select": "^1.1.2", diff --git a/packages/block-editor/package.json b/packages/block-editor/package.json index 6bc6baf1c3a628..69dcb602dad1c3 100644 --- a/packages/block-editor/package.json +++ b/packages/block-editor/package.json @@ -67,7 +67,6 @@ "@wordpress/wordcount": "file:../wordcount", "change-case": "^4.1.2", "classnames": "^2.3.1", - "clipboard": "2.0.11", "colord": "^2.7.0", "deepmerge": "^4.3.0", "diff": "^4.0.2", diff --git a/packages/block-editor/src/components/use-block-commands/index.js b/packages/block-editor/src/components/use-block-commands/index.js index 8e70ea572ff7e5..949f1527e3fb34 100644 --- a/packages/block-editor/src/components/use-block-commands/index.js +++ b/packages/block-editor/src/components/use-block-commands/index.js @@ -1,8 +1,3 @@ -/** - * External dependencies - */ -import Clipboard from 'clipboard'; - /** * WordPress dependencies */ @@ -10,7 +5,6 @@ import { __, sprintf } from '@wordpress/i18n'; import { hasBlockSupport, store as blocksStore, - serialize, switchToBlockType, isTemplatePart, } from '@wordpress/blocks'; @@ -245,7 +239,6 @@ const useActionsCommands = () => { replaceBlocks( clientIds, innerBlocks ); }; const onCopy = () => { - Clipboard.copy( serialize( blocks ) ); const selectedBlockClientIds = blocks.map( ( { clientId } ) => clientId ); diff --git a/packages/compose/package.json b/packages/compose/package.json index 162c7a95339754..625afc1ecb9fca 100644 --- a/packages/compose/package.json +++ b/packages/compose/package.json @@ -38,7 +38,7 @@ "@wordpress/keycodes": "file:../keycodes", "@wordpress/priority-queue": "file:../priority-queue", "change-case": "^4.1.2", - "clipboard": "^2.0.11", + "clipboard": "^2.0.8", "mousetrap": "^1.6.5", "use-memo-one": "^1.1.1" },