diff --git a/packages/icons/CHANGELOG.md b/packages/icons/CHANGELOG.md index 65cba47ee39687..21b9a58b1f5efa 100644 --- a/packages/icons/CHANGELOG.md +++ b/packages/icons/CHANGELOG.md @@ -10,7 +10,7 @@ - Redraw a further 141 icons as stroke-based for variable stroke-width support, following the convention introduced in [#78808](https://github.com/WordPress/gutenberg/pull/78808), and refine the already stroke-based `image` drawing. Most retain their original footprint; the table icons, `capturePhoto` and `image` are slightly smaller by design. ([#82540](https://github.com/WordPress/gutenberg/pull/82540)) - `manifest.json`: The `public` property is now a tri-state. Omitting it keeps an icon in the JS library only; `true` ships it to WordPress Core and exposes it through the icons REST API, making it selectable in the Icon block; `false` ships it and registers it in the `core` collection for server-side use via `wp_get_icon()`, while hiding it from the REST API and the Icon block. ([#82634](https://github.com/WordPress/gutenberg/pull/82634)) -- The `wordpress` icon now ships to WordPress Core as a non-public icon: it is registered in the `core` collection and stays available to server-side code via `wp_get_icon( 'core/wordpress' )`, but is not exposed through the icons REST API and is not selectable in the Icon block. ([#82634](https://github.com/WordPress/gutenberg/pull/82634)) +- The `brush`, `dashboard`, `link`, `media`, `page`, `pin`, `plugins`, `sites`, `tool`, `update` and `wordpress` icons now ship to WordPress Core as non-public icons: they are registered in the `core` collection and stay available to server-side code via `wp_get_icon()`, but are not exposed through the icons REST API and are not selectable in the Icon block. ([#82634](https://github.com/WordPress/gutenberg/pull/82634), [#79451](https://github.com/WordPress/gutenberg/pull/79451)) ### Bug Fixes diff --git a/packages/icons/src/manifest.json b/packages/icons/src/manifest.json index 46dfc7abe9be02..f9f88bbd002921 100644 --- a/packages/icons/src/manifest.json +++ b/packages/icons/src/manifest.json @@ -181,7 +181,8 @@ { "slug": "brush", "label": "Brush", - "filePath": "library/brush.svg" + "filePath": "library/brush.svg", + "public": false }, { "slug": "bug", @@ -491,7 +492,8 @@ { "slug": "dashboard", "label": "Dashboard", - "filePath": "library/dashboard.svg" + "filePath": "library/dashboard.svg", + "public": false }, { "slug": "desktop", @@ -923,7 +925,8 @@ { "slug": "link", "label": "Link", - "filePath": "library/link.svg" + "filePath": "library/link.svg", + "public": false }, { "slug": "link-off", @@ -984,7 +987,8 @@ { "slug": "media", "label": "Media", - "filePath": "library/media.svg" + "filePath": "library/media.svg", + "public": false }, { "slug": "media-and-text", @@ -1069,7 +1073,8 @@ { "slug": "page", "label": "Page", - "filePath": "library/page.svg" + "filePath": "library/page.svg", + "public": false }, { "slug": "page-break", @@ -1123,7 +1128,8 @@ { "slug": "pin", "label": "Pin", - "filePath": "library/pin.svg" + "filePath": "library/pin.svg", + "public": false }, { "slug": "pin-small", @@ -1133,7 +1139,8 @@ { "slug": "plugins", "label": "Plugins", - "filePath": "library/plugins.svg" + "filePath": "library/plugins.svg", + "public": false }, { "slug": "play", @@ -1507,7 +1514,8 @@ { "slug": "sites", "label": "Sites", - "filePath": "library/sites.svg" + "filePath": "library/sites.svg", + "public": false }, { "slug": "square", @@ -1713,7 +1721,8 @@ { "slug": "tool", "label": "Tool", - "filePath": "library/tool.svg" + "filePath": "library/tool.svg", + "public": false }, { "slug": "trash", @@ -1758,7 +1767,8 @@ { "slug": "update", "label": "Update", - "filePath": "library/update.svg" + "filePath": "library/update.svg", + "public": false }, { "slug": "upload", diff --git a/packages/icons/src/manifest.php b/packages/icons/src/manifest.php index 35ac29b7e3976e..9e5caf0a4afe2f 100644 --- a/packages/icons/src/manifest.php +++ b/packages/icons/src/manifest.php @@ -61,6 +61,11 @@ 'label' => _x( 'Block Table', 'icon label', 'gutenberg' ), 'filePath' => 'library/block-table.svg', ), + 'brush' => array( + 'label' => _x( 'Brush', 'icon label', 'gutenberg' ), + 'filePath' => 'library/brush.svg', + 'public' => false, + ), 'calendar' => array( 'label' => _x( 'Calendar', 'icon label', 'gutenberg' ), 'filePath' => 'library/calendar.svg', @@ -141,6 +146,11 @@ 'label' => _x( 'Create', 'icon label', 'gutenberg' ), 'filePath' => 'library/create.svg', ), + 'dashboard' => array( + 'label' => _x( 'Dashboard', 'icon label', 'gutenberg' ), + 'filePath' => 'library/dashboard.svg', + 'public' => false, + ), 'desktop' => array( 'label' => _x( 'Desktop', 'icon label', 'gutenberg' ), 'filePath' => 'library/desktop.svg', @@ -209,10 +219,20 @@ 'label' => _x( 'Language', 'icon label', 'gutenberg' ), 'filePath' => 'library/language.svg', ), + 'link' => array( + 'label' => _x( 'Link', 'icon label', 'gutenberg' ), + 'filePath' => 'library/link.svg', + 'public' => false, + ), 'map-marker' => array( 'label' => _x( 'Map Marker', 'icon label', 'gutenberg' ), 'filePath' => 'library/map-marker.svg', ), + 'media' => array( + 'label' => _x( 'Media', 'icon label', 'gutenberg' ), + 'filePath' => 'library/media.svg', + 'public' => false, + ), 'menu' => array( 'label' => _x( 'Menu', 'icon label', 'gutenberg' ), 'filePath' => 'library/menu.svg', @@ -233,6 +253,11 @@ 'label' => _x( 'Next', 'icon label', 'gutenberg' ), 'filePath' => 'library/next.svg', ), + 'page' => array( + 'label' => _x( 'Page', 'icon label', 'gutenberg' ), + 'filePath' => 'library/page.svg', + 'public' => false, + ), 'paragraph' => array( 'label' => _x( 'Paragraph', 'icon label', 'gutenberg' ), 'filePath' => 'library/paragraph.svg', @@ -249,6 +274,16 @@ 'label' => _x( 'People', 'icon label', 'gutenberg' ), 'filePath' => 'library/people.svg', ), + 'pin' => array( + 'label' => _x( 'Pin', 'icon label', 'gutenberg' ), + 'filePath' => 'library/pin.svg', + 'public' => false, + ), + 'plugins' => array( + 'label' => _x( 'Plugins', 'icon label', 'gutenberg' ), + 'filePath' => 'library/plugins.svg', + 'public' => false, + ), 'plus' => array( 'label' => _x( 'Plus', 'icon label', 'gutenberg' ), 'filePath' => 'library/plus.svg', @@ -305,6 +340,11 @@ 'label' => _x( 'Shuffle', 'icon label', 'gutenberg' ), 'filePath' => 'library/shuffle.svg', ), + 'sites' => array( + 'label' => _x( 'Sites', 'icon label', 'gutenberg' ), + 'filePath' => 'library/sites.svg', + 'public' => false, + ), 'star-empty' => array( 'label' => _x( 'Star Empty', 'icon label', 'gutenberg' ), 'filePath' => 'library/star-empty.svg', @@ -349,6 +389,16 @@ 'label' => _x( 'Tip', 'icon label', 'gutenberg' ), 'filePath' => 'library/tip.svg', ), + 'tool' => array( + 'label' => _x( 'Tool', 'icon label', 'gutenberg' ), + 'filePath' => 'library/tool.svg', + 'public' => false, + ), + 'update' => array( + 'label' => _x( 'Update', 'icon label', 'gutenberg' ), + 'filePath' => 'library/update.svg', + 'public' => false, + ), 'upload' => array( 'label' => _x( 'Upload', 'icon label', 'gutenberg' ), 'filePath' => 'library/upload.svg',