@wordpress/media-fields 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.22.0 (2026-10-07)
6
+
7
+ ### Bug Fixes
8
+
9
+ - Declare `react-dom` and `@types/react-dom` as peer dependencies, forwarding the peers of `@wordpress/element`, so strict package managers such as Yarn PnP can resolve them ([#83765](https://github.com/WordPress/gutenberg/pull/83765)).
10
+
5
11
  ## 0.21.0 (2026-09-23)
6
12
 
7
13
  ## 0.20.0 (2026-09-10)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/media-fields",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "Reusable field definitions for displaying and editing media attachment properties in WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -47,36 +47,41 @@
47
47
  "src/**/*.scss"
48
48
  ],
49
49
  "dependencies": {
50
- "@wordpress/base-styles": "^13.2.0",
51
- "@wordpress/components": "^41.0.0",
52
- "@wordpress/compose": "^8.9.0",
53
- "@wordpress/core-data": "^8.1.0",
54
- "@wordpress/data": "^10.56.0",
55
- "@wordpress/dataviews": "^19.1.0",
56
- "@wordpress/element": "^8.8.0",
57
- "@wordpress/i18n": "^6.29.0",
58
- "@wordpress/icons": "^17.0.0",
59
- "@wordpress/ui": "^0.23.0",
60
- "@wordpress/url": "^4.56.0",
50
+ "@wordpress/base-styles": "^13.3.0",
51
+ "@wordpress/components": "^42.0.0",
52
+ "@wordpress/compose": "^8.10.0",
53
+ "@wordpress/core-data": "^8.2.0",
54
+ "@wordpress/data": "^10.57.0",
55
+ "@wordpress/dataviews": "^20.0.0",
56
+ "@wordpress/element": "^9.0.0",
57
+ "@wordpress/i18n": "^6.30.0",
58
+ "@wordpress/icons": "^18.0.0",
59
+ "@wordpress/ui": "^0.24.0",
60
+ "@wordpress/url": "^4.57.0",
61
61
  "clsx": "^2.1.1"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@testing-library/dom": "^10.4.2",
65
65
  "@testing-library/jest-dom": "^7.0.1",
66
66
  "@testing-library/react": "^16.3.3",
67
- "vitest": "^5.0.0"
67
+ "vitest": "^5.0.3"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "@types/react": "^18 || ^19",
71
- "react": "^18 || ^19"
71
+ "@types/react-dom": "^18 || ^19",
72
+ "react": "^18 || ^19",
73
+ "react-dom": "^18 || ^19"
72
74
  },
73
75
  "peerDependenciesMeta": {
74
76
  "@types/react": {
75
77
  "optional": true
78
+ },
79
+ "@types/react-dom": {
80
+ "optional": true
76
81
  }
77
82
  },
78
83
  "publishConfig": {
79
84
  "access": "public"
80
85
  },
81
- "gitHead": "56d8058eda6e30c4cc8bfc37818fa6ed972f7dc2"
86
+ "gitHead": "12441e2520c78b2254a792a8cba40c34110be060"
82
87
  }
@@ -20,6 +20,7 @@ const baseMedia: Media = {
20
20
  title: { raw: 'Test Image', rendered: 'Test Image' },
21
21
  author: 1,
22
22
  featured_media: 0,
23
+ edit_root: 0,
23
24
  comment_status: 'open',
24
25
  ping_status: 'closed',
25
26
  template: '',
@@ -44,6 +44,7 @@ const sampleMediaItem: MediaItem = {
44
44
  },
45
45
  author: 1,
46
46
  featured_media: 0,
47
+ edit_root: 0,
47
48
  comment_status: 'open',
48
49
  ping_status: 'closed',
49
50
  template: '',
@@ -141,6 +142,7 @@ const sampleMediaItemZip: MediaItem = {
141
142
  },
142
143
  author: 1,
143
144
  featured_media: 0,
145
+ edit_root: 0,
144
146
  comment_status: 'open',
145
147
  ping_status: 'closed',
146
148
  template: '',
@@ -240,6 +242,7 @@ const sampleMediaItemBrokenImage: MediaItem = {
240
242
  },
241
243
  author: 1,
242
244
  featured_media: 0,
245
+ edit_root: 0,
243
246
  comment_status: 'open',
244
247
  ping_status: 'closed',
245
248
  template: '',