Skip to content

Commit

Permalink
Update: Bundle upload media. (WordPress#68522)
Browse files Browse the repository at this point in the history
Co-authored-by: jorgefilipecosta <[email protected]>
Co-authored-by: jsnajdr <[email protected]>
  • Loading branch information
3 people authored Jan 7, 2025
1 parent dd70c03 commit ef7afef
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 4 deletions.
6 changes: 6 additions & 0 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1967,6 +1967,12 @@
"markdown_source": "../packages/undo-manager/README.md",
"parent": "packages"
},
{
"title": "@wordpress/upload-media",
"slug": "packages-upload-media",
"markdown_source": "../packages/upload-media/README.md",
"parent": "packages"
},
{
"title": "@wordpress/url",
"slug": "packages-url",
Expand Down
6 changes: 5 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/block-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion packages/block-editor/src/components/provider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions packages/block-editor/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
{ "path": "../style-engine" },
{ "path": "../token-list" },
{ "path": "../url" },
{ "path": "../upload-media" },
{ "path": "../warning" },
{ "path": "../wordcount" }
],
Expand Down
1 change: 1 addition & 0 deletions packages/dependency-extraction-webpack-plugin/lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const BUNDLED_PACKAGES = [
'@wordpress/interface',
'@wordpress/sync',
'@wordpress/undo-manager',
'@wordpress/upload-media',
'@wordpress/fields',
];

Expand Down
4 changes: 2 additions & 2 deletions packages/upload-media/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@wordpress/upload-media",
"version": "1.0.0-prerelease",
"private": true,
"version": "0.0.1",
"description": "Core media upload logic.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
Expand All @@ -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",
Expand Down
1 change: 1 addition & 0 deletions tools/webpack/packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const BUNDLED_PACKAGES = [
'@wordpress/interface',
'@wordpress/sync',
'@wordpress/undo-manager',
'@wordpress/upload-media',
'@wordpress/fields',
];

Expand Down

0 comments on commit ef7afef

Please sign in to comment.