From a63765f5d688ffdddda254426ea7cccb9f09aaa5 Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Wed, 24 Jan 2024 08:02:36 -0500 Subject: [PATCH 01/11] Add copySmall icon --- packages/icons/src/index.js | 1 + packages/icons/src/library/copy-small.js | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 packages/icons/src/library/copy-small.js diff --git a/packages/icons/src/index.js b/packages/icons/src/index.js index d743299d35a24..aa7a8ee90778c 100644 --- a/packages/icons/src/index.js +++ b/packages/icons/src/index.js @@ -52,6 +52,7 @@ export { default as color } from './library/color'; export { default as column } from './library/column'; export { default as columns } from './library/columns'; export { default as copy } from './library/copy'; +export { default as copySmall } from './library/copy-small'; export { default as comment } from './library/comment'; export { default as commentAuthorAvatar } from './library/comment-author-avatar'; export { default as commentAuthorName } from './library/comment-author-name'; diff --git a/packages/icons/src/library/copy-small.js b/packages/icons/src/library/copy-small.js new file mode 100644 index 0000000000000..07f6bff15d59b --- /dev/null +++ b/packages/icons/src/library/copy-small.js @@ -0,0 +1,16 @@ +/** + * WordPress dependencies + */ +import { SVG, Path } from '@wordpress/primitives'; + +const copySmall = ( + + + +); + +export default copySmall; From 9c69dd600523b3ded81f73c71e6e7e304aec6f6c Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Wed, 24 Jan 2024 08:03:47 -0500 Subject: [PATCH 02/11] Remove additionalControls + consistent labels --- .../src/components/link-control/link-preview.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/block-editor/src/components/link-control/link-preview.js b/packages/block-editor/src/components/link-control/link-preview.js index 17cc851c503a1..3f317429c08e5 100644 --- a/packages/block-editor/src/components/link-control/link-preview.js +++ b/packages/block-editor/src/components/link-control/link-preview.js @@ -15,7 +15,7 @@ import { } from '@wordpress/components'; import { useCopyToClipboard } from '@wordpress/compose'; import { filterURLForDisplay, safeDecodeURI } from '@wordpress/url'; -import { Icon, globe, info, linkOff, edit, copy } from '@wordpress/icons'; +import { Icon, globe, info, linkOff, edit, copySmall } from '@wordpress/icons'; import { __unstableStripHTML as stripHTML } from '@wordpress/dom'; import { useDispatch } from '@wordpress/data'; import { store as noticesStore } from '@wordpress/notices'; @@ -33,7 +33,6 @@ export default function LinkPreview( { hasRichPreviews = false, hasUnlinkControl = false, onRemove, - additionalControls, } ) { // Avoid fetching if rich previews are not desired. const showRichPreviews = hasRichPreviews ? value?.url : null; @@ -127,7 +126,7 @@ export default function LinkPreview( {