@wordpress/block-directory 5.57.0 → 6.1.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.
Files changed (109) hide show
  1. package/build/components/auto-block-uninstaller/index.cjs +26 -47
  2. package/build/components/auto-block-uninstaller/index.cjs.map +1 -7
  3. package/build/components/block-ratings/index.cjs +28 -34
  4. package/build/components/block-ratings/index.cjs.map +1 -7
  5. package/build/components/block-ratings/stars.cjs +35 -71
  6. package/build/components/block-ratings/stars.cjs.map +1 -7
  7. package/build/components/compact-list/index.cjs +45 -43
  8. package/build/components/compact-list/index.cjs.map +1 -7
  9. package/build/components/downloadable-block-icon/index.cjs +20 -29
  10. package/build/components/downloadable-block-icon/index.cjs.map +1 -7
  11. package/build/components/downloadable-block-list-item/index.cjs +95 -161
  12. package/build/components/downloadable-block-list-item/index.cjs.map +1 -7
  13. package/build/components/downloadable-block-notice/index.cjs +23 -46
  14. package/build/components/downloadable-block-notice/index.cjs.map +1 -7
  15. package/build/components/downloadable-blocks-list/index.cjs +50 -70
  16. package/build/components/downloadable-blocks-list/index.cjs.map +1 -7
  17. package/build/components/downloadable-blocks-panel/index.cjs +79 -119
  18. package/build/components/downloadable-blocks-panel/index.cjs.map +1 -7
  19. package/build/components/downloadable-blocks-panel/inserter-panel.cjs +37 -61
  20. package/build/components/downloadable-blocks-panel/inserter-panel.cjs.map +1 -7
  21. package/build/components/downloadable-blocks-panel/no-results.cjs +27 -39
  22. package/build/components/downloadable-blocks-panel/no-results.cjs.map +1 -7
  23. package/build/index.cjs +11 -29
  24. package/build/plugins/get-install-missing/index.cjs +80 -122
  25. package/build/plugins/get-install-missing/index.cjs.map +1 -7
  26. package/build/plugins/get-install-missing/install-button.cjs +33 -70
  27. package/build/plugins/get-install-missing/install-button.cjs.map +1 -7
  28. package/build/plugins/index.cjs +45 -45
  29. package/build/plugins/index.cjs.map +1 -7
  30. package/build/plugins/inserter-menu-downloadable-blocks-panel/index.cjs +40 -52
  31. package/build/plugins/inserter-menu-downloadable-blocks-panel/index.cjs.map +1 -7
  32. package/build/plugins/installed-blocks-pre-publish-panel/index.cjs +38 -62
  33. package/build/plugins/installed-blocks-pre-publish-panel/index.cjs.map +1 -7
  34. package/build/store/actions.cjs +233 -205
  35. package/build/store/actions.cjs.map +1 -7
  36. package/build/store/index.cjs +56 -45
  37. package/build/store/index.cjs.map +1 -7
  38. package/build/store/load-assets.cjs +62 -63
  39. package/build/store/load-assets.cjs.map +1 -7
  40. package/build/store/reducer.cjs +90 -101
  41. package/build/store/reducer.cjs.map +1 -7
  42. package/build/store/resolvers.cjs +34 -54
  43. package/build/store/resolvers.cjs.map +1 -7
  44. package/build/store/selectors.cjs +111 -107
  45. package/build/store/selectors.cjs.map +1 -7
  46. package/build/store/utils/get-plugin-url.cjs +19 -32
  47. package/build/store/utils/get-plugin-url.cjs.map +1 -7
  48. package/build-module/components/auto-block-uninstaller/index.mjs +19 -25
  49. package/build-module/components/auto-block-uninstaller/index.mjs.map +1 -7
  50. package/build-module/components/block-ratings/index.mjs +8 -8
  51. package/build-module/components/block-ratings/index.mjs.map +1 -7
  52. package/build-module/components/block-ratings/stars.mjs +28 -49
  53. package/build-module/components/block-ratings/stars.mjs.map +1 -7
  54. package/build-module/components/compact-list/index.mjs +24 -19
  55. package/build-module/components/compact-list/index.mjs.map +1 -7
  56. package/build-module/components/downloadable-block-icon/index.mjs +14 -8
  57. package/build-module/components/downloadable-block-icon/index.mjs.map +1 -7
  58. package/build-module/components/downloadable-block-list-item/index.mjs +64 -130
  59. package/build-module/components/downloadable-block-list-item/index.mjs.map +1 -7
  60. package/build-module/components/downloadable-block-notice/index.mjs +15 -20
  61. package/build-module/components/downloadable-block-notice/index.mjs.map +1 -7
  62. package/build-module/components/downloadable-blocks-list/index.mjs +26 -43
  63. package/build-module/components/downloadable-blocks-list/index.mjs.map +1 -7
  64. package/build-module/components/downloadable-blocks-panel/index.mjs +51 -90
  65. package/build-module/components/downloadable-blocks-panel/index.mjs.map +1 -7
  66. package/build-module/components/downloadable-blocks-panel/inserter-panel.mjs +29 -38
  67. package/build-module/components/downloadable-blocks-panel/inserter-panel.mjs.map +1 -7
  68. package/build-module/components/downloadable-blocks-panel/no-results.mjs +21 -18
  69. package/build-module/components/downloadable-blocks-panel/no-results.mjs.map +1 -7
  70. package/build-module/index.mjs +1 -6
  71. package/build-module/plugins/get-install-missing/index.mjs +55 -98
  72. package/build-module/plugins/get-install-missing/index.mjs.map +1 -7
  73. package/build-module/plugins/get-install-missing/install-button.mjs +25 -47
  74. package/build-module/plugins/get-install-missing/install-button.mjs.map +1 -7
  75. package/build-module/plugins/index.mjs +16 -23
  76. package/build-module/plugins/index.mjs.map +1 -7
  77. package/build-module/plugins/inserter-menu-downloadable-blocks-panel/index.mjs +17 -26
  78. package/build-module/plugins/inserter-menu-downloadable-blocks-panel/index.mjs.map +1 -7
  79. package/build-module/plugins/installed-blocks-pre-publish-panel/index.mjs +15 -36
  80. package/build-module/plugins/installed-blocks-pre-publish-panel/index.mjs.map +1 -7
  81. package/build-module/store/actions.mjs +201 -170
  82. package/build-module/store/actions.mjs.map +1 -7
  83. package/build-module/store/index.mjs +28 -13
  84. package/build-module/store/index.mjs.map +1 -7
  85. package/build-module/store/load-assets.mjs +42 -36
  86. package/build-module/store/load-assets.mjs.map +1 -7
  87. package/build-module/store/reducer.mjs +81 -74
  88. package/build-module/store/reducer.mjs.map +1 -7
  89. package/build-module/store/resolvers.mjs +13 -26
  90. package/build-module/store/resolvers.mjs.map +1 -7
  91. package/build-module/store/selectors.mjs +99 -76
  92. package/build-module/store/selectors.mjs.map +1 -7
  93. package/build-module/store/utils/get-plugin-url.mjs +14 -12
  94. package/build-module/store/utils/get-plugin-url.mjs.map +1 -7
  95. package/build-style/style-rtl.css +6 -12
  96. package/build-style/style.css +6 -12
  97. package/package.json +25 -27
  98. package/src/components/downloadable-block-list-item/index.jsx +2 -2
  99. package/src/components/downloadable-block-list-item/style.scss +6 -6
  100. package/src/components/downloadable-blocks-panel/index.jsx +2 -2
  101. package/src/components/downloadable-blocks-panel/no-results.jsx +15 -8
  102. package/CHANGELOG.md +0 -295
  103. package/build/index.cjs.map +0 -7
  104. package/build/lock-unlock.cjs +0 -36
  105. package/build/lock-unlock.cjs.map +0 -7
  106. package/build-module/index.mjs.map +0 -7
  107. package/build-module/lock-unlock.mjs +0 -11
  108. package/build-module/lock-unlock.mjs.map +0 -7
  109. package/src/lock-unlock.js +0 -7
package/CHANGELOG.md DELETED
@@ -1,295 +0,0 @@
1
- <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->
2
-
3
- ## Unreleased
4
-
5
- ## 5.57.0 (2026-10-07)
6
-
7
- ## 5.56.0 (2026-09-23)
8
-
9
- ## 5.55.0 (2026-09-10)
10
-
11
- ### Bug Fixes
12
-
13
- - `BlockRatings`: Preserve full, half, and empty star colors after the icons became stroke-based. ([#78808](https://github.com/WordPress/gutenberg/pull/78808))
14
-
15
- ### Internal
16
-
17
- - Use the `.jsx` extension for JavaScript source files that contain JSX ([#80990](https://github.com/WordPress/gutenberg/pull/80990)).
18
-
19
- ## 5.54.0 (2026-08-26)
20
-
21
- ## 5.53.0 (2026-08-12)
22
-
23
- ### Bug Fixes
24
-
25
- - Wrap the downloadable block item labels in `__()` so they can be translated ([#81237](https://github.com/WordPress/gutenberg/pull/81237)).
26
-
27
- ## 5.52.0 (2026-07-29)
28
-
29
- ## 5.51.0 (2026-07-14)
30
-
31
- ### Enhancements
32
-
33
- - Use the emphasis font-weight token for UI emphasis ([#80093](https://github.com/WordPress/gutenberg/pull/80093)).
34
- - Widen React peer dependency ranges to `^18 || ^19` to support both React 18 and React 19 environments ([#80024](https://github.com/WordPress/gutenberg/pull/80024)).
35
-
36
- ## 5.50.0 (2026-07-01)
37
-
38
- ## 5.49.0 (2026-06-24)
39
-
40
- ## 5.48.1 (2026-06-16)
41
-
42
- ## 5.48.0 (2026-06-10)
43
-
44
- ## 5.47.0 (2026-05-27)
45
-
46
- ## 5.46.0 (2026-05-14)
47
-
48
- ## 5.45.0 (2026-04-29)
49
-
50
- ## 5.44.0 (2026-04-15)
51
-
52
- ### Enhancements
53
-
54
- - Use `--wpds-cursor-control` for interactive cursor styling and replace all instances ([#77330](https://github.com/WordPress/gutenberg/pull/77330)).
55
-
56
- ## 5.43.0 (2026-04-01)
57
-
58
- ## 5.42.0 (2026-03-18)
59
-
60
- ## 5.41.0 (2026-03-04)
61
-
62
- ## 5.40.0 (2026-02-18)
63
-
64
- ## 5.39.0 (2026-01-29)
65
-
66
- ## 5.38.0 (2026-01-16)
67
-
68
- ## 5.36.0 (2025-11-26)
69
-
70
- ## 5.35.0 (2025-11-12)
71
-
72
- ## 5.34.0 (2025-10-29)
73
-
74
- ## 5.33.0 (2025-10-17)
75
-
76
- ## 5.32.0 (2025-10-01)
77
-
78
- ## 5.31.0 (2025-09-17)
79
-
80
- ## 5.30.0 (2025-09-03)
81
-
82
- ## 5.29.0 (2025-08-20)
83
-
84
- ## 5.28.0 (2025-08-07)
85
-
86
- ## 5.27.0 (2025-07-23)
87
-
88
- ## 5.26.0 (2025-06-25)
89
-
90
- ## 5.25.0 (2025-06-04)
91
-
92
- ## 5.24.0 (2025-05-22)
93
-
94
- ## 5.23.0 (2025-05-07)
95
-
96
- ## 5.22.0 (2025-04-11)
97
-
98
- ## 5.21.0 (2025-03-27)
99
-
100
- ## 5.20.0 (2025-03-13)
101
-
102
- ## 5.19.0 (2025-02-28)
103
-
104
- ## 5.18.0 (2025-02-12)
105
-
106
- ## 5.17.0 (2025-01-29)
107
-
108
- ## 5.16.0 (2025-01-15)
109
-
110
- ## 5.15.0 (2025-01-02)
111
-
112
- ## 5.14.0 (2024-12-11)
113
-
114
- ## 5.13.0 (2024-11-27)
115
-
116
- ## 5.12.0 (2024-11-16)
117
-
118
- ## 5.11.0 (2024-10-30)
119
-
120
- ## 5.10.0 (2024-10-16)
121
-
122
- ## 5.9.0 (2024-10-03)
123
-
124
- ## 5.8.0 (2024-09-19)
125
-
126
- ## 5.7.0 (2024-09-05)
127
-
128
- ## 5.6.0 (2024-08-21)
129
-
130
- ## 5.5.0 (2024-08-07)
131
-
132
- ## 5.4.0 (2024-07-24)
133
-
134
- ## 5.3.0 (2024-07-10)
135
-
136
- ## 5.2.0 (2024-06-26)
137
-
138
- ## 5.1.0 (2024-06-15)
139
-
140
- ## 5.0.0 (2024-05-31)
141
-
142
- ### Breaking Changes
143
-
144
- - Increase the minimum required Node.js version to v18.12.0 matching long-term support releases ([#31270](https://github.com/WordPress/gutenberg/pull/61930)). Learn more about [Node.js releases](https://nodejs.org/en/about/previous-releases).
145
-
146
- ## 4.35.0 (2024-05-16)
147
-
148
- ## 4.34.0 (2024-05-02)
149
-
150
- ## 4.33.0 (2024-04-19)
151
-
152
- ## 4.32.0 (2024-04-03)
153
-
154
- ## 4.31.0 (2024-03-21)
155
-
156
- ## 4.30.0 (2024-03-06)
157
-
158
- ## 4.29.0 (2024-02-21)
159
-
160
- ## 4.28.0 (2024-02-09)
161
-
162
- ## 4.27.0 (2024-01-24)
163
-
164
- ## 4.26.0 (2024-01-10)
165
-
166
- ## 4.25.0 (2023-12-13)
167
-
168
- ## 4.24.0 (2023-11-29)
169
-
170
- ## 4.23.0 (2023-11-16)
171
-
172
- ## 4.22.0 (2023-11-02)
173
-
174
- ## 4.21.0 (2023-10-18)
175
-
176
- ## 4.20.0 (2023-10-05)
177
-
178
- ## 4.19.0 (2023-09-20)
179
-
180
- ## 4.18.0 (2023-08-31)
181
-
182
- ## 4.17.0 (2023-08-16)
183
-
184
- ## 4.16.0 (2023-08-10)
185
-
186
- ## 4.15.0 (2023-07-20)
187
-
188
- ## 4.14.0 (2023-07-05)
189
-
190
- ## 4.13.0 (2023-06-23)
191
-
192
- ## 4.12.0 (2023-06-07)
193
-
194
- ## 4.11.0 (2023-05-24)
195
-
196
- ## 4.10.0 (2023-05-10)
197
-
198
- ## 4.9.0 (2023-04-26)
199
-
200
- ## 4.8.0 (2023-04-12)
201
-
202
- ## 4.7.0 (2023-03-29)
203
-
204
- ## 4.6.0 (2023-03-15)
205
-
206
- ## 4.5.0 (2023-03-01)
207
-
208
- ## 4.4.0 (2023-02-15)
209
-
210
- ## 4.3.0 (2023-02-01)
211
-
212
- ## 4.2.0 (2023-01-11)
213
-
214
- ## 4.1.0 (2023-01-02)
215
-
216
- ## 4.0.0 (2022-12-14)
217
-
218
- ### Breaking Changes
219
-
220
- - Updated dependencies to require React 18 ([45235](https://github.com/WordPress/gutenberg/pull/45235))
221
-
222
- ## 3.20.0 (2022-11-16)
223
-
224
- ## 3.19.0 (2022-11-02)
225
-
226
- ## 3.18.0 (2022-10-19)
227
-
228
- ## 3.17.0 (2022-10-05)
229
-
230
- ## 3.16.0 (2022-09-21)
231
-
232
- ## 3.15.0 (2022-09-13)
233
-
234
- ## 3.14.0 (2022-08-24)
235
-
236
- ## 3.13.0 (2022-08-10)
237
-
238
- ## 3.12.0 (2022-07-27)
239
-
240
- ## 3.11.0 (2022-07-13)
241
-
242
- ## 3.10.0 (2022-06-29)
243
-
244
- ## 3.9.0 (2022-06-15)
245
-
246
- ## 3.8.0 (2022-06-01)
247
-
248
- ## 3.7.0 (2022-05-18)
249
-
250
- ## 3.6.0 (2022-05-04)
251
-
252
- ## 3.5.0 (2022-04-21)
253
-
254
- ## 3.4.0 (2022-04-08)
255
-
256
- ## 3.3.0 (2022-03-23)
257
-
258
- ## 3.2.0 (2022-03-11)
259
-
260
- ## 3.1.1 (2022-02-10)
261
-
262
- ### Bug Fixes
263
-
264
- - Removed unused `@wordpress/url` dependency ([#38388](https://github.com/WordPress/gutenberg/pull/38388)).
265
-
266
- ## 3.1.0 (2022-01-27)
267
-
268
- ## 3.0.0 (2021-07-29)
269
-
270
- ### Breaking Changes
271
-
272
- - Upgraded React components to work with v17.0 ([#29118](https://github.com/WordPress/gutenberg/pull/29118)). There are no new features in React v17.0 as explained in the [blog post](https://reactjs.org/blog/2020/10/20/react-v17.html).
273
-
274
- ## 2.2.0 (2021-07-21)
275
-
276
- ## 2.1.0 (2021-05-20)
277
-
278
- ## 2.0.0 (2021-05-14)
279
-
280
- ### Breaking Changes
281
-
282
- - Drop support for Internet Explorer 11 ([#31110](https://github.com/WordPress/gutenberg/pull/31110)). Learn more at https://make.wordpress.org/core/2021/04/22/ie-11-support-phase-out-plan/.
283
- - Increase the minimum Node.js version to v12 matching Long Term Support releases ([#31270](https://github.com/WordPress/gutenberg/pull/31270)). Learn more at https://nodejs.org/en/about/releases/.
284
-
285
- ## 1.19.0 (2021-03-17)
286
-
287
- ## 1.18.0 (2020-12-17)
288
-
289
- ### New Features
290
-
291
- - Added a store definition `store` for the block directory namespace to use with `@wordpress/data` API ([#26655](https://github.com/WordPress/gutenberg/pull/26655)).
292
-
293
- ## 1.0.0 (2019-09-16)
294
-
295
- - Initial release.
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/index.js"],
4
- "sourcesContent": ["import './plugins';\n\nexport { store } from './store';\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAO;AAEP,mBAAsB;",
6
- "names": []
7
- }
@@ -1,36 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // packages/block-directory/src/lock-unlock.js
20
- var lock_unlock_exports = {};
21
- __export(lock_unlock_exports, {
22
- lock: () => lock,
23
- unlock: () => unlock
24
- });
25
- module.exports = __toCommonJS(lock_unlock_exports);
26
- var import_private_apis = require("@wordpress/private-apis");
27
- var { lock, unlock } = (0, import_private_apis.__dangerousOptInToUnstableAPIsOnlyForCoreModules)(
28
- "I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.",
29
- "@wordpress/block-directory"
30
- );
31
- // Annotate the CommonJS export names for ESM import in node:
32
- 0 && (module.exports = {
33
- lock,
34
- unlock
35
- });
36
- //# sourceMappingURL=lock-unlock.cjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/lock-unlock.js"],
4
- "sourcesContent": ["import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';\n\nexport const { lock, unlock } =\n\t__dangerousOptInToUnstableAPIsOnlyForCoreModules(\n\t\t'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.',\n\t\t'@wordpress/block-directory'\n\t);\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAiE;AAE1D,IAAM,EAAE,MAAM,OAAO,QAC3B;AAAA,EACC;AAAA,EACA;AACD;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/index.js"],
4
- "sourcesContent": ["import './plugins';\n\nexport { store } from './store';\n"],
5
- "mappings": ";AAAA,OAAO;AAEP,SAAS,aAAa;",
6
- "names": []
7
- }
@@ -1,11 +0,0 @@
1
- // packages/block-directory/src/lock-unlock.js
2
- import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from "@wordpress/private-apis";
3
- var { lock, unlock } = __dangerousOptInToUnstableAPIsOnlyForCoreModules(
4
- "I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.",
5
- "@wordpress/block-directory"
6
- );
7
- export {
8
- lock,
9
- unlock
10
- };
11
- //# sourceMappingURL=lock-unlock.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/lock-unlock.js"],
4
- "sourcesContent": ["import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';\n\nexport const { lock, unlock } =\n\t__dangerousOptInToUnstableAPIsOnlyForCoreModules(\n\t\t'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.',\n\t\t'@wordpress/block-directory'\n\t);\n"],
5
- "mappings": ";AAAA,SAAS,wDAAwD;AAE1D,IAAM,EAAE,MAAM,OAAO,IAC3B;AAAA,EACC;AAAA,EACA;AACD;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';
2
-
3
- export const { lock, unlock } =
4
- __dangerousOptInToUnstableAPIsOnlyForCoreModules(
5
- 'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.',
6
- '@wordpress/block-directory'
7
- );