diff --git a/package-lock.json b/package-lock.json index 2b2a7e2e7abcb1..2cc92d763c7768 100644 --- a/package-lock.json +++ b/package-lock.json @@ -50028,6 +50028,7 @@ "@wordpress/rich-text": "file:../rich-text", "@wordpress/style-engine": "file:../style-engine", "@wordpress/token-list": "file:../token-list", + "@wordpress/upload-media": "file:../upload-media", "@wordpress/url": "file:../url", "@wordpress/warning": "file:../warning", "@wordpress/wordcount": "file:../wordcount", @@ -50055,6 +50056,10 @@ "react-dom": "^18.0.0" } }, + "packages/block-editor/node_modules/@wordpress/upload-media": { + "resolved": "packages/token-list", + "link": true + }, "packages/block-editor/node_modules/postcss-urlrebase": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/postcss-urlrebase/-/postcss-urlrebase-1.4.0.tgz", diff --git a/packages/block-editor/package.json b/packages/block-editor/package.json index da1687b28d25b2..5794245dbbf12f 100644 --- a/packages/block-editor/package.json +++ b/packages/block-editor/package.json @@ -65,6 +65,7 @@ "@wordpress/rich-text": "file:../rich-text", "@wordpress/style-engine": "file:../style-engine", "@wordpress/token-list": "file:../token-list", + "@wordpress/upload-media": "file:../upload-media", "@wordpress/url": "file:../url", "@wordpress/warning": "file:../warning", "@wordpress/wordcount": "file:../wordcount", diff --git a/packages/block-editor/src/components/provider/index.js b/packages/block-editor/src/components/provider/index.js index 97aa0b95216870..4f3cb8867f1d43 100644 --- a/packages/block-editor/src/components/provider/index.js +++ b/packages/block-editor/src/components/provider/index.js @@ -4,7 +4,6 @@ import { useDispatch } from '@wordpress/data'; import { useEffect, useMemo } from '@wordpress/element'; import { SlotFillProvider } from '@wordpress/components'; -//eslint-disable-next-line import/no-extraneous-dependencies -- Experimental package, not published. import { MediaUploadProvider, store as uploadStore, diff --git a/packages/dependency-extraction-webpack-plugin/lib/util.js b/packages/dependency-extraction-webpack-plugin/lib/util.js index 49b16986cda814..b5c9f9057c2052 100644 --- a/packages/dependency-extraction-webpack-plugin/lib/util.js +++ b/packages/dependency-extraction-webpack-plugin/lib/util.js @@ -10,6 +10,7 @@ const BUNDLED_PACKAGES = [ '@wordpress/interface', '@wordpress/sync', '@wordpress/undo-manager', + '@wordpress/upload-media', '@wordpress/fields', ]; diff --git a/packages/upload-media/package.json b/packages/upload-media/package.json index 14ae4f77dc5cb9..8a4b058699058a 100644 --- a/packages/upload-media/package.json +++ b/packages/upload-media/package.json @@ -1,7 +1,6 @@ { "name": "@wordpress/upload-media", "version": "1.0.0-prerelease", - "private": true, "description": "Core media upload logic.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", @@ -26,6 +25,7 @@ "module": "build-module/index.js", "wpScript": true, "types": "build-types", + "sideEffects": false, "dependencies": { "@shopify/web-worker": "^6.4.0", "@wordpress/api-fetch": "file:../api-fetch", diff --git a/tools/webpack/packages.js b/tools/webpack/packages.js index 4459cc063d0016..c99c25ee0127ce 100644 --- a/tools/webpack/packages.js +++ b/tools/webpack/packages.js @@ -41,6 +41,7 @@ const BUNDLED_PACKAGES = [ '@wordpress/interface', '@wordpress/sync', '@wordpress/undo-manager', + '@wordpress/upload-media', '@wordpress/fields', ];