@wordpress/media-fields 0.20.1-next.v.202609171837.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,14 @@
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
+
11
+ ## 0.21.0 (2026-09-23)
12
+
5
13
  ## 0.20.0 (2026-09-10)
6
14
 
7
15
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/media-fields",
3
- "version": "0.20.1-next.v.202609171837.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",
@@ -21,8 +21,7 @@
21
21
  "url": "https://github.com/WordPress/gutenberg/issues"
22
22
  },
23
23
  "engines": {
24
- "node": ">=18.12.0",
25
- "npm": ">=8.19.2"
24
+ "node": ">=18.12.0"
26
25
  },
27
26
  "files": [
28
27
  "src",
@@ -48,36 +47,41 @@
48
47
  "src/**/*.scss"
49
48
  ],
50
49
  "dependencies": {
51
- "@wordpress/base-styles": "^13.2.1-next.v.202609171837.0",
52
- "@wordpress/components": "^41.0.1-next.v.202609171837.0",
53
- "@wordpress/compose": "^8.8.2-next.v.202609171837.0",
54
- "@wordpress/core-data": "^8.0.2-next.v.202609171837.0",
55
- "@wordpress/data": "^10.56.1-next.v.202609171837.0",
56
- "@wordpress/dataviews": "^19.0.2-next.v.202609171837.0",
57
- "@wordpress/element": "^8.7.1-next.v.202609171837.0",
58
- "@wordpress/i18n": "^6.28.1-next.v.202609171837.0",
59
- "@wordpress/icons": "^17.0.1-next.v.202609171837.0",
60
- "@wordpress/ui": "^0.23.1-next.v.202609171837.0",
61
- "@wordpress/url": "^4.55.1-next.v.202609171837.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",
62
61
  "clsx": "^2.1.1"
63
62
  },
64
63
  "devDependencies": {
65
- "@testing-library/dom": "^10.4.1",
64
+ "@testing-library/dom": "^10.4.2",
66
65
  "@testing-library/jest-dom": "^7.0.1",
67
66
  "@testing-library/react": "^16.3.3",
68
- "vitest": "^5.0.0"
67
+ "vitest": "^5.0.3"
69
68
  },
70
69
  "peerDependencies": {
71
70
  "@types/react": "^18 || ^19",
72
- "react": "^18 || ^19"
71
+ "@types/react-dom": "^18 || ^19",
72
+ "react": "^18 || ^19",
73
+ "react-dom": "^18 || ^19"
73
74
  },
74
75
  "peerDependenciesMeta": {
75
76
  "@types/react": {
76
77
  "optional": true
78
+ },
79
+ "@types/react-dom": {
80
+ "optional": true
77
81
  }
78
82
  },
79
83
  "publishConfig": {
80
84
  "access": "public"
81
85
  },
82
- "gitHead": "7fc9f6676debc888d2f071d17cb71837040d4b48"
86
+ "gitHead": "12441e2520c78b2254a792a8cba40c34110be060"
83
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: '',
@@ -18,7 +18,8 @@ import {
18
18
  } from '../index';
19
19
 
20
20
  export default {
21
- title: 'Fields/Media Fields',
21
+ id: 'fields-media-fields',
22
+ title: 'Design System/DataViews/Fields/Media Fields',
22
23
  component: DataForm,
23
24
  };
24
25
 
@@ -43,6 +44,7 @@ const sampleMediaItem: MediaItem = {
43
44
  },
44
45
  author: 1,
45
46
  featured_media: 0,
47
+ edit_root: 0,
46
48
  comment_status: 'open',
47
49
  ping_status: 'closed',
48
50
  template: '',
@@ -140,6 +142,7 @@ const sampleMediaItemZip: MediaItem = {
140
142
  },
141
143
  author: 1,
142
144
  featured_media: 0,
145
+ edit_root: 0,
143
146
  comment_status: 'open',
144
147
  ping_status: 'closed',
145
148
  template: '',
@@ -239,6 +242,7 @@ const sampleMediaItemBrokenImage: MediaItem = {
239
242
  },
240
243
  author: 1,
241
244
  featured_media: 0,
245
+ edit_root: 0,
242
246
  comment_status: 'open',
243
247
  ping_status: 'closed',
244
248
  template: '',