@wordpress/customize-widgets 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 (157) hide show
  1. package/build/components/block-appender/index.cjs +24 -41
  2. package/build/components/block-appender/index.cjs.map +1 -7
  3. package/build/components/block-inspector-button/index.cjs +24 -52
  4. package/build/components/block-inspector-button/index.cjs.map +1 -7
  5. package/build/components/customize-widgets/index.cjs +76 -95
  6. package/build/components/customize-widgets/index.cjs.map +1 -7
  7. package/build/components/customize-widgets/use-clear-selected-block.cjs +58 -67
  8. package/build/components/customize-widgets/use-clear-selected-block.cjs.map +1 -7
  9. package/build/components/error-boundary/index.cjs +115 -155
  10. package/build/components/error-boundary/index.cjs.map +1 -7
  11. package/build/components/focus-control/index.cjs +44 -84
  12. package/build/components/focus-control/index.cjs.map +1 -7
  13. package/build/components/focus-control/use-blocks-focus-control.cjs +28 -49
  14. package/build/components/focus-control/use-blocks-focus-control.cjs.map +1 -7
  15. package/build/components/header/index.cjs +84 -122
  16. package/build/components/header/index.cjs.map +1 -7
  17. package/build/components/inserter/index.cjs +43 -78
  18. package/build/components/inserter/index.cjs.map +1 -7
  19. package/build/components/inserter/use-inserter.cjs +22 -54
  20. package/build/components/inserter/use-inserter.cjs.map +1 -7
  21. package/build/components/keyboard-shortcut-help-modal/config.cjs +88 -85
  22. package/build/components/keyboard-shortcut-help-modal/config.cjs.map +1 -7
  23. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.cjs +40 -57
  24. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.cjs.map +1 -7
  25. package/build/components/keyboard-shortcut-help-modal/index.cjs +103 -165
  26. package/build/components/keyboard-shortcut-help-modal/index.cjs.map +1 -7
  27. package/build/components/keyboard-shortcut-help-modal/shortcut.cjs +37 -76
  28. package/build/components/keyboard-shortcut-help-modal/shortcut.cjs.map +1 -7
  29. package/build/components/keyboard-shortcuts/index.cjs +70 -100
  30. package/build/components/keyboard-shortcuts/index.cjs.map +1 -7
  31. package/build/components/more-menu/index.cjs +103 -151
  32. package/build/components/more-menu/index.cjs.map +1 -7
  33. package/build/components/sidebar-block-editor/index.cjs +122 -155
  34. package/build/components/sidebar-block-editor/index.cjs.map +1 -7
  35. package/build/components/sidebar-block-editor/sidebar-adapter.cjs +207 -270
  36. package/build/components/sidebar-block-editor/sidebar-adapter.cjs.map +1 -7
  37. package/build/components/sidebar-block-editor/sidebar-editor-provider.cjs +40 -50
  38. package/build/components/sidebar-block-editor/sidebar-editor-provider.cjs.map +1 -7
  39. package/build/components/sidebar-block-editor/use-sidebar-block-editor.cjs +75 -110
  40. package/build/components/sidebar-block-editor/use-sidebar-block-editor.cjs.map +1 -7
  41. package/build/components/sidebar-controls/index.cjs +27 -53
  42. package/build/components/sidebar-controls/index.cjs.map +1 -7
  43. package/build/components/welcome-guide/index.cjs +70 -94
  44. package/build/components/welcome-guide/index.cjs.map +1 -7
  45. package/build/controls/inserter-outer-section.cjs +68 -110
  46. package/build/controls/inserter-outer-section.cjs.map +1 -7
  47. package/build/controls/inspector-section.cjs +57 -90
  48. package/build/controls/inspector-section.cjs.map +1 -7
  49. package/build/controls/sidebar-control.cjs +55 -69
  50. package/build/controls/sidebar-control.cjs.map +1 -7
  51. package/build/controls/sidebar-section.cjs +79 -103
  52. package/build/controls/sidebar-section.cjs.map +1 -7
  53. package/build/filters/index.cjs +8 -5
  54. package/build/filters/move-to-sidebar.cjs +62 -78
  55. package/build/filters/move-to-sidebar.cjs.map +1 -7
  56. package/build/filters/replace-media-upload.cjs +11 -9
  57. package/build/filters/replace-media-upload.cjs.map +1 -7
  58. package/build/filters/wide-widget-display.cjs +20 -20
  59. package/build/filters/wide-widget-display.cjs.map +1 -7
  60. package/build/index.cjs +84 -91
  61. package/build/index.cjs.map +1 -7
  62. package/build/lock-unlock.cjs +10 -35
  63. package/build/lock-unlock.cjs.map +1 -7
  64. package/build/store/actions.cjs +49 -32
  65. package/build/store/actions.cjs.map +1 -7
  66. package/build/store/constants.cjs +12 -29
  67. package/build/store/constants.cjs.map +1 -7
  68. package/build/store/index.cjs +49 -41
  69. package/build/store/index.cjs.map +1 -7
  70. package/build/store/reducer.cjs +20 -33
  71. package/build/store/reducer.cjs.map +1 -7
  72. package/build/store/selectors.cjs +47 -38
  73. package/build/store/selectors.cjs.map +1 -7
  74. package/build/utils.cjs +81 -108
  75. package/build/utils.cjs.map +1 -7
  76. package/build-module/components/block-appender/index.mjs +18 -23
  77. package/build-module/components/block-appender/index.mjs.map +1 -7
  78. package/build-module/components/block-inspector-button/index.mjs +15 -28
  79. package/build-module/components/block-inspector-button/index.mjs.map +1 -7
  80. package/build-module/components/customize-widgets/index.mjs +46 -72
  81. package/build-module/components/customize-widgets/index.mjs.map +1 -7
  82. package/build-module/components/customize-widgets/use-clear-selected-block.mjs +52 -46
  83. package/build-module/components/customize-widgets/use-clear-selected-block.mjs.map +1 -7
  84. package/build-module/components/error-boundary/index.mjs +103 -128
  85. package/build-module/components/error-boundary/index.mjs.map +1 -7
  86. package/build-module/components/focus-control/index.mjs +37 -66
  87. package/build-module/components/focus-control/index.mjs.map +1 -7
  88. package/build-module/components/focus-control/use-blocks-focus-control.mjs +21 -27
  89. package/build-module/components/focus-control/use-blocks-focus-control.mjs.map +1 -7
  90. package/build-module/components/header/index.mjs +55 -92
  91. package/build-module/components/header/index.mjs.map +1 -7
  92. package/build-module/components/inserter/index.mjs +33 -53
  93. package/build-module/components/inserter/index.mjs.map +1 -7
  94. package/build-module/components/inserter/use-inserter.mjs +17 -34
  95. package/build-module/components/inserter/use-inserter.mjs.map +1 -7
  96. package/build-module/components/keyboard-shortcut-help-modal/config.mjs +83 -61
  97. package/build-module/components/keyboard-shortcut-help-modal/config.mjs.map +1 -7
  98. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.mjs +19 -33
  99. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.mjs.map +1 -7
  100. package/build-module/components/keyboard-shortcut-help-modal/index.mjs +75 -139
  101. package/build-module/components/keyboard-shortcut-help-modal/index.mjs.map +1 -7
  102. package/build-module/components/keyboard-shortcut-help-modal/shortcut.mjs +31 -55
  103. package/build-module/components/keyboard-shortcut-help-modal/shortcut.mjs.map +1 -7
  104. package/build-module/components/keyboard-shortcuts/index.mjs +62 -79
  105. package/build-module/components/keyboard-shortcuts/index.mjs.map +1 -7
  106. package/build-module/components/more-menu/index.mjs +76 -128
  107. package/build-module/components/more-menu/index.mjs.map +1 -7
  108. package/build-module/components/sidebar-block-editor/index.mjs +86 -128
  109. package/build-module/components/sidebar-block-editor/index.mjs.map +1 -7
  110. package/build-module/components/sidebar-block-editor/sidebar-adapter.mjs +202 -250
  111. package/build-module/components/sidebar-block-editor/sidebar-adapter.mjs.map +1 -7
  112. package/build-module/components/sidebar-block-editor/sidebar-editor-provider.mjs +17 -25
  113. package/build-module/components/sidebar-block-editor/sidebar-editor-provider.mjs.map +1 -7
  114. package/build-module/components/sidebar-block-editor/use-sidebar-block-editor.mjs +54 -86
  115. package/build-module/components/sidebar-block-editor/use-sidebar-block-editor.mjs.map +1 -7
  116. package/build-module/components/sidebar-controls/index.mjs +19 -27
  117. package/build-module/components/sidebar-controls/index.mjs.map +1 -7
  118. package/build-module/components/welcome-guide/index.mjs +62 -71
  119. package/build-module/components/welcome-guide/index.mjs.map +1 -7
  120. package/build-module/controls/inserter-outer-section.mjs +61 -88
  121. package/build-module/controls/inserter-outer-section.mjs.map +1 -7
  122. package/build-module/controls/inspector-section.mjs +52 -70
  123. package/build-module/controls/inspector-section.mjs.map +1 -7
  124. package/build-module/controls/sidebar-control.mjs +33 -45
  125. package/build-module/controls/sidebar-control.mjs.map +1 -7
  126. package/build-module/controls/sidebar-section.mjs +59 -80
  127. package/build-module/controls/sidebar-section.mjs.map +1 -7
  128. package/build-module/filters/index.mjs +0 -2
  129. package/build-module/filters/move-to-sidebar.mjs +52 -79
  130. package/build-module/filters/move-to-sidebar.mjs.map +1 -7
  131. package/build-module/filters/replace-media-upload.mjs +5 -8
  132. package/build-module/filters/replace-media-upload.mjs.map +1 -7
  133. package/build-module/filters/wide-widget-display.mjs +13 -18
  134. package/build-module/filters/wide-widget-display.mjs.map +1 -7
  135. package/build-module/index.mjs +53 -71
  136. package/build-module/index.mjs.map +1 -7
  137. package/build-module/lock-unlock.mjs +5 -10
  138. package/build-module/lock-unlock.mjs.map +1 -7
  139. package/build-module/store/actions.mjs +44 -8
  140. package/build-module/store/actions.mjs.map +1 -7
  141. package/build-module/store/constants.mjs +7 -5
  142. package/build-module/store/constants.mjs.map +1 -7
  143. package/build-module/store/index.mjs +15 -11
  144. package/build-module/store/index.mjs.map +1 -7
  145. package/build-module/store/reducer.mjs +15 -13
  146. package/build-module/store/reducer.mjs.map +1 -7
  147. package/build-module/store/selectors.mjs +41 -13
  148. package/build-module/store/selectors.mjs.map +1 -7
  149. package/build-module/utils.mjs +74 -82
  150. package/build-module/utils.mjs.map +1 -7
  151. package/package.json +30 -31
  152. package/src/components/customize-widgets/index.jsx +5 -2
  153. package/src/components/customize-widgets/use-clear-selected-block.js +2 -1
  154. package/src/components/welcome-guide/index.jsx +6 -2
  155. package/CHANGELOG.md +0 -289
  156. package/build/filters/index.cjs.map +0 -7
  157. package/build-module/filters/index.mjs.map +0 -7
@@ -1,89 +1,81 @@
1
- // packages/customize-widgets/src/utils.js
2
- import { serialize, parse, createBlock } from "@wordpress/blocks";
1
+ import { createBlock, parse, serialize } from "@wordpress/blocks";
3
2
  import { addWidgetIdToBlock } from "@wordpress/widgets";
3
+ // packages/customize-widgets/src/utils.js
4
+ /**
5
+ * Convert settingId to widgetId.
6
+ *
7
+ * @param {string} settingId The setting id.
8
+ * @return {string} The widget id.
9
+ */
4
10
  function settingIdToWidgetId(settingId) {
5
- const matches = settingId.match(/^widget_(.+)(?:\[(\d+)\])$/);
6
- if (matches) {
7
- const idBase = matches[1];
8
- const number = parseInt(matches[2], 10);
9
- return `${idBase}-${number}`;
10
- }
11
- return settingId;
11
+ const matches = settingId.match(/^widget_(.+)(?:\[(\d+)\])$/);
12
+ if (matches) return `${matches[1]}-${parseInt(matches[2], 10)}`;
13
+ return settingId;
12
14
  }
15
+ /**
16
+ * Transform a block to a customizable widget.
17
+ *
18
+ * @param {WPBlock} block The block to be transformed from.
19
+ * @param {Object} existingWidget The widget to be extended from.
20
+ * @return {Object} The transformed widget.
21
+ */
13
22
  function blockToWidget(block, existingWidget = null) {
14
- let widget;
15
- const isValidLegacyWidgetBlock = block.name === "core/legacy-widget" && (block.attributes.id || block.attributes.instance);
16
- if (isValidLegacyWidgetBlock) {
17
- if (block.attributes.id) {
18
- widget = {
19
- id: block.attributes.id
20
- };
21
- } else {
22
- const { encoded, hash, raw, ...rest } = block.attributes.instance;
23
- widget = {
24
- idBase: block.attributes.idBase,
25
- instance: {
26
- ...existingWidget?.instance,
27
- // Required only for the customizer.
28
- is_widget_customizer_js_value: true,
29
- encoded_serialized_instance: encoded,
30
- instance_hash_key: hash,
31
- raw_instance: raw,
32
- ...rest
33
- }
34
- };
35
- }
36
- } else {
37
- const instance = {
38
- content: serialize(block)
39
- };
40
- widget = {
41
- idBase: "block",
42
- widgetClass: "WP_Widget_Block",
43
- instance: {
44
- raw_instance: instance
45
- }
46
- };
47
- }
48
- const { form, rendered, ...restExistingWidget } = existingWidget || {};
49
- return {
50
- ...restExistingWidget,
51
- ...widget
52
- };
23
+ let widget;
24
+ if (block.name === "core/legacy-widget" && (block.attributes.id || block.attributes.instance)) {
25
+ if (block.attributes.id) widget = { id: block.attributes.id };
26
+ else {
27
+ const { encoded, hash, raw, ...rest } = block.attributes.instance;
28
+ widget = {
29
+ idBase: block.attributes.idBase,
30
+ instance: {
31
+ ...existingWidget?.instance,
32
+ is_widget_customizer_js_value: true,
33
+ encoded_serialized_instance: encoded,
34
+ instance_hash_key: hash,
35
+ raw_instance: raw,
36
+ ...rest
37
+ }
38
+ };
39
+ }
40
+ } else widget = {
41
+ idBase: "block",
42
+ widgetClass: "WP_Widget_Block",
43
+ instance: { raw_instance: { content: serialize(block) } }
44
+ };
45
+ const { form, rendered, ...restExistingWidget } = existingWidget || {};
46
+ return {
47
+ ...restExistingWidget,
48
+ ...widget
49
+ };
53
50
  }
51
+ /**
52
+ * Transform a widget to a block.
53
+ *
54
+ * @param {Object} widget The widget to be transformed from.
55
+ * @param {string} widget.id The widget id.
56
+ * @param {string} widget.idBase The id base of the widget.
57
+ * @param {number} widget.number The number/index of the widget.
58
+ * @param {Object} widget.instance The instance of the widget.
59
+ * @return {WPBlock} The transformed block.
60
+ */
54
61
  function widgetToBlock({ id, idBase, number, instance }) {
55
- let block;
56
- const {
57
- encoded_serialized_instance: encoded,
58
- instance_hash_key: hash,
59
- raw_instance: raw,
60
- ...rest
61
- } = instance;
62
- if (idBase === "block") {
63
- const parsedBlocks = parse(raw.content ?? "", {
64
- __unstableSkipAutop: true
65
- });
66
- block = parsedBlocks.length ? parsedBlocks[0] : createBlock("core/paragraph", {});
67
- } else if (number) {
68
- block = createBlock("core/legacy-widget", {
69
- idBase,
70
- instance: {
71
- encoded,
72
- hash,
73
- raw,
74
- ...rest
75
- }
76
- });
77
- } else {
78
- block = createBlock("core/legacy-widget", {
79
- id
80
- });
81
- }
82
- return addWidgetIdToBlock(block, id);
62
+ let block;
63
+ const { encoded_serialized_instance: encoded, instance_hash_key: hash, raw_instance: raw, ...rest } = instance;
64
+ if (idBase === "block") {
65
+ const parsedBlocks = parse(raw.content ?? "", { __unstableSkipAutop: true });
66
+ block = parsedBlocks.length ? parsedBlocks[0] : createBlock("core/paragraph", {});
67
+ } else if (number) block = createBlock("core/legacy-widget", {
68
+ idBase,
69
+ instance: {
70
+ encoded,
71
+ hash,
72
+ raw,
73
+ ...rest
74
+ }
75
+ });
76
+ else block = createBlock("core/legacy-widget", { id });
77
+ return addWidgetIdToBlock(block, id);
83
78
  }
84
- export {
85
- blockToWidget,
86
- settingIdToWidgetId,
87
- widgetToBlock
88
- };
89
- //# sourceMappingURL=utils.mjs.map
79
+ export { blockToWidget, settingIdToWidgetId, widgetToBlock };
80
+
81
+ //# sourceMappingURL=utils.mjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/utils.js"],
4
- "sourcesContent": ["// @ts-check\nimport { serialize, parse, createBlock } from '@wordpress/blocks';\nimport { addWidgetIdToBlock } from '@wordpress/widgets';\n\n/**\n * Convert settingId to widgetId.\n *\n * @param {string} settingId The setting id.\n * @return {string} The widget id.\n */\nexport function settingIdToWidgetId( settingId ) {\n\tconst matches = settingId.match( /^widget_(.+)(?:\\[(\\d+)\\])$/ );\n\n\tif ( matches ) {\n\t\tconst idBase = matches[ 1 ];\n\t\tconst number = parseInt( matches[ 2 ], 10 );\n\n\t\treturn `${ idBase }-${ number }`;\n\t}\n\n\treturn settingId;\n}\n\n/**\n * Transform a block to a customizable widget.\n *\n * @param {WPBlock} block The block to be transformed from.\n * @param {Object} existingWidget The widget to be extended from.\n * @return {Object} The transformed widget.\n */\nexport function blockToWidget( block, existingWidget = null ) {\n\tlet widget;\n\n\tconst isValidLegacyWidgetBlock =\n\t\tblock.name === 'core/legacy-widget' &&\n\t\t( block.attributes.id || block.attributes.instance );\n\n\tif ( isValidLegacyWidgetBlock ) {\n\t\tif ( block.attributes.id ) {\n\t\t\t// Widget that does not extend WP_Widget.\n\t\t\twidget = {\n\t\t\t\tid: block.attributes.id,\n\t\t\t};\n\t\t} else {\n\t\t\tconst { encoded, hash, raw, ...rest } = block.attributes.instance;\n\n\t\t\t// Widget that extends WP_Widget.\n\t\t\twidget = {\n\t\t\t\tidBase: block.attributes.idBase,\n\t\t\t\tinstance: {\n\t\t\t\t\t...existingWidget?.instance,\n\t\t\t\t\t// Required only for the customizer.\n\t\t\t\t\tis_widget_customizer_js_value: true,\n\t\t\t\t\tencoded_serialized_instance: encoded,\n\t\t\t\t\tinstance_hash_key: hash,\n\t\t\t\t\traw_instance: raw,\n\t\t\t\t\t...rest,\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\t} else {\n\t\tconst instance = {\n\t\t\tcontent: serialize( block ),\n\t\t};\n\t\twidget = {\n\t\t\tidBase: 'block',\n\t\t\twidgetClass: 'WP_Widget_Block',\n\t\t\tinstance: {\n\t\t\t\traw_instance: instance,\n\t\t\t},\n\t\t};\n\t}\n\n\tconst { form, rendered, ...restExistingWidget } = existingWidget || {};\n\n\treturn {\n\t\t...restExistingWidget,\n\t\t...widget,\n\t};\n}\n\n/**\n * Transform a widget to a block.\n *\n * @param {Object} widget The widget to be transformed from.\n * @param {string} widget.id The widget id.\n * @param {string} widget.idBase The id base of the widget.\n * @param {number} widget.number The number/index of the widget.\n * @param {Object} widget.instance The instance of the widget.\n * @return {WPBlock} The transformed block.\n */\nexport function widgetToBlock( { id, idBase, number, instance } ) {\n\tlet block;\n\n\tconst {\n\t\tencoded_serialized_instance: encoded,\n\t\tinstance_hash_key: hash,\n\t\traw_instance: raw,\n\t\t...rest\n\t} = instance;\n\n\tif ( idBase === 'block' ) {\n\t\tconst parsedBlocks = parse( raw.content ?? '', {\n\t\t\t__unstableSkipAutop: true,\n\t\t} );\n\t\tblock = parsedBlocks.length\n\t\t\t? parsedBlocks[ 0 ]\n\t\t\t: createBlock( 'core/paragraph', {} );\n\t} else if ( number ) {\n\t\t// Widget that extends WP_Widget.\n\t\tblock = createBlock( 'core/legacy-widget', {\n\t\t\tidBase,\n\t\t\tinstance: {\n\t\t\t\tencoded,\n\t\t\t\thash,\n\t\t\t\traw,\n\t\t\t\t...rest,\n\t\t\t},\n\t\t} );\n\t} else {\n\t\t// Widget that does not extend WP_Widget.\n\t\tblock = createBlock( 'core/legacy-widget', {\n\t\t\tid,\n\t\t} );\n\t}\n\n\treturn addWidgetIdToBlock( block, id );\n}\n"],
5
- "mappings": ";AACA,SAAS,WAAW,OAAO,mBAAmB;AAC9C,SAAS,0BAA0B;AAQ5B,SAAS,oBAAqB,WAAY;AAChD,QAAM,UAAU,UAAU,MAAO,4BAA6B;AAE9D,MAAK,SAAU;AACd,UAAM,SAAS,QAAS,CAAE;AAC1B,UAAM,SAAS,SAAU,QAAS,CAAE,GAAG,EAAG;AAE1C,WAAO,GAAI,MAAO,IAAK,MAAO;AAAA,EAC/B;AAEA,SAAO;AACR;AASO,SAAS,cAAe,OAAO,iBAAiB,MAAO;AAC7D,MAAI;AAEJ,QAAM,2BACL,MAAM,SAAS,yBACb,MAAM,WAAW,MAAM,MAAM,WAAW;AAE3C,MAAK,0BAA2B;AAC/B,QAAK,MAAM,WAAW,IAAK;AAE1B,eAAS;AAAA,QACR,IAAI,MAAM,WAAW;AAAA,MACtB;AAAA,IACD,OAAO;AACN,YAAM,EAAE,SAAS,MAAM,KAAK,GAAG,KAAK,IAAI,MAAM,WAAW;AAGzD,eAAS;AAAA,QACR,QAAQ,MAAM,WAAW;AAAA,QACzB,UAAU;AAAA,UACT,GAAG,gBAAgB;AAAA;AAAA,UAEnB,+BAA+B;AAAA,UAC/B,6BAA6B;AAAA,UAC7B,mBAAmB;AAAA,UACnB,cAAc;AAAA,UACd,GAAG;AAAA,QACJ;AAAA,MACD;AAAA,IACD;AAAA,EACD,OAAO;AACN,UAAM,WAAW;AAAA,MAChB,SAAS,UAAW,KAAM;AAAA,IAC3B;AACA,aAAS;AAAA,MACR,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,UAAU;AAAA,QACT,cAAc;AAAA,MACf;AAAA,IACD;AAAA,EACD;AAEA,QAAM,EAAE,MAAM,UAAU,GAAG,mBAAmB,IAAI,kBAAkB,CAAC;AAErE,SAAO;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,EACJ;AACD;AAYO,SAAS,cAAe,EAAE,IAAI,QAAQ,QAAQ,SAAS,GAAI;AACjE,MAAI;AAEJ,QAAM;AAAA,IACL,6BAA6B;AAAA,IAC7B,mBAAmB;AAAA,IACnB,cAAc;AAAA,IACd,GAAG;AAAA,EACJ,IAAI;AAEJ,MAAK,WAAW,SAAU;AACzB,UAAM,eAAe,MAAO,IAAI,WAAW,IAAI;AAAA,MAC9C,qBAAqB;AAAA,IACtB,CAAE;AACF,YAAQ,aAAa,SAClB,aAAc,CAAE,IAChB,YAAa,kBAAkB,CAAC,CAAE;AAAA,EACtC,WAAY,QAAS;AAEpB,YAAQ,YAAa,sBAAsB;AAAA,MAC1C;AAAA,MACA,UAAU;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA,GAAG;AAAA,MACJ;AAAA,IACD,CAAE;AAAA,EACH,OAAO;AAEN,YAAQ,YAAa,sBAAsB;AAAA,MAC1C;AAAA,IACD,CAAE;AAAA,EACH;AAEA,SAAO,mBAAoB,OAAO,EAAG;AACtC;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"utils.mjs","names":[],"sources":["../src/utils.js"],"sourcesContent":["// @ts-check\nimport { serialize, parse, createBlock } from '@wordpress/blocks';\nimport { addWidgetIdToBlock } from '@wordpress/widgets';\n\n/**\n * Convert settingId to widgetId.\n *\n * @param {string} settingId The setting id.\n * @return {string} The widget id.\n */\nexport function settingIdToWidgetId( settingId ) {\n\tconst matches = settingId.match( /^widget_(.+)(?:\\[(\\d+)\\])$/ );\n\n\tif ( matches ) {\n\t\tconst idBase = matches[ 1 ];\n\t\tconst number = parseInt( matches[ 2 ], 10 );\n\n\t\treturn `${ idBase }-${ number }`;\n\t}\n\n\treturn settingId;\n}\n\n/**\n * Transform a block to a customizable widget.\n *\n * @param {WPBlock} block The block to be transformed from.\n * @param {Object} existingWidget The widget to be extended from.\n * @return {Object} The transformed widget.\n */\nexport function blockToWidget( block, existingWidget = null ) {\n\tlet widget;\n\n\tconst isValidLegacyWidgetBlock =\n\t\tblock.name === 'core/legacy-widget' &&\n\t\t( block.attributes.id || block.attributes.instance );\n\n\tif ( isValidLegacyWidgetBlock ) {\n\t\tif ( block.attributes.id ) {\n\t\t\t// Widget that does not extend WP_Widget.\n\t\t\twidget = {\n\t\t\t\tid: block.attributes.id,\n\t\t\t};\n\t\t} else {\n\t\t\tconst { encoded, hash, raw, ...rest } = block.attributes.instance;\n\n\t\t\t// Widget that extends WP_Widget.\n\t\t\twidget = {\n\t\t\t\tidBase: block.attributes.idBase,\n\t\t\t\tinstance: {\n\t\t\t\t\t...existingWidget?.instance,\n\t\t\t\t\t// Required only for the customizer.\n\t\t\t\t\tis_widget_customizer_js_value: true,\n\t\t\t\t\tencoded_serialized_instance: encoded,\n\t\t\t\t\tinstance_hash_key: hash,\n\t\t\t\t\traw_instance: raw,\n\t\t\t\t\t...rest,\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\t} else {\n\t\tconst instance = {\n\t\t\tcontent: serialize( block ),\n\t\t};\n\t\twidget = {\n\t\t\tidBase: 'block',\n\t\t\twidgetClass: 'WP_Widget_Block',\n\t\t\tinstance: {\n\t\t\t\traw_instance: instance,\n\t\t\t},\n\t\t};\n\t}\n\n\tconst { form, rendered, ...restExistingWidget } = existingWidget || {};\n\n\treturn {\n\t\t...restExistingWidget,\n\t\t...widget,\n\t};\n}\n\n/**\n * Transform a widget to a block.\n *\n * @param {Object} widget The widget to be transformed from.\n * @param {string} widget.id The widget id.\n * @param {string} widget.idBase The id base of the widget.\n * @param {number} widget.number The number/index of the widget.\n * @param {Object} widget.instance The instance of the widget.\n * @return {WPBlock} The transformed block.\n */\nexport function widgetToBlock( { id, idBase, number, instance } ) {\n\tlet block;\n\n\tconst {\n\t\tencoded_serialized_instance: encoded,\n\t\tinstance_hash_key: hash,\n\t\traw_instance: raw,\n\t\t...rest\n\t} = instance;\n\n\tif ( idBase === 'block' ) {\n\t\tconst parsedBlocks = parse( raw.content ?? '', {\n\t\t\t__unstableSkipAutop: true,\n\t\t} );\n\t\tblock = parsedBlocks.length\n\t\t\t? parsedBlocks[ 0 ]\n\t\t\t: createBlock( 'core/paragraph', {} );\n\t} else if ( number ) {\n\t\t// Widget that extends WP_Widget.\n\t\tblock = createBlock( 'core/legacy-widget', {\n\t\t\tidBase,\n\t\t\tinstance: {\n\t\t\t\tencoded,\n\t\t\t\thash,\n\t\t\t\traw,\n\t\t\t\t...rest,\n\t\t\t},\n\t\t} );\n\t} else {\n\t\t// Widget that does not extend WP_Widget.\n\t\tblock = createBlock( 'core/legacy-widget', {\n\t\t\tid,\n\t\t} );\n\t}\n\n\treturn addWidgetIdToBlock( block, id );\n}\n"],"mappings":";;;;;;;;;AAUA,SAAgB,oBAAqB,WAAY;CAChD,MAAM,UAAU,UAAU,MAAO,4BAA6B;CAE9D,IAAK,SAIJ,OAAO,GAHQ,QAAS,GAGL,GAFJ,SAAU,QAAS,IAAK,EAEX;CAG7B,OAAO;AACR;;;;;;;;AASA,SAAgB,cAAe,OAAO,iBAAiB,MAAO;CAC7D,IAAI;CAMJ,IAHC,MAAM,SAAS,yBACb,MAAM,WAAW,MAAM,MAAM,WAAW,WAEX;EAC/B,IAAK,MAAM,WAAW,IAErB,SAAS,EACR,IAAI,MAAM,WAAW,GACtB;OACM;GACN,MAAM,EAAE,SAAS,MAAM,KAAK,GAAG,SAAS,MAAM,WAAW;GAGzD,SAAS;IACR,QAAQ,MAAM,WAAW;IACzB,UAAU;KACT,GAAG,gBAAgB;KAEnB,+BAA+B;KAC/B,6BAA6B;KAC7B,mBAAmB;KACnB,cAAc;KACd,GAAG;IACJ;GACD;EACD;CACD,OAIC,SAAS;EACR,QAAQ;EACR,aAAa;EACb,UAAU,EACT,cAAc,EANf,SAAS,UAAW,KAAM,EAMJ,EACtB;CACD;CAGD,MAAM,EAAE,MAAM,UAAU,GAAG,uBAAuB,kBAAkB,CAAC;CAErE,OAAO;EACN,GAAG;EACH,GAAG;CACJ;AACD;;;;;;;;;;;AAYA,SAAgB,cAAe,EAAE,IAAI,QAAQ,QAAQ,YAAa;CACjE,IAAI;CAEJ,MAAM,EACL,6BAA6B,SAC7B,mBAAmB,MACnB,cAAc,KACd,GAAG,SACA;CAEJ,IAAK,WAAW,SAAU;EACzB,MAAM,eAAe,MAAO,IAAI,WAAW,IAAI,EAC9C,qBAAqB,KACtB,CAAE;EACF,QAAQ,aAAa,SAClB,aAAc,KACd,YAAa,kBAAkB,CAAC,CAAE;CACtC,OAAO,IAAK,QAEX,QAAQ,YAAa,sBAAsB;EAC1C;EACA,UAAU;GACT;GACA;GACA;GACA,GAAG;EACJ;CACD,CAAE;MAGF,QAAQ,YAAa,sBAAsB,EAC1C,GACD,CAAE;CAGH,OAAO,mBAAoB,OAAO,EAAG;AACtC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/customize-widgets",
3
- "version": "5.57.0",
3
+ "version": "6.1.0",
4
4
  "description": "Widgets blocks in Customizer Module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -17,15 +17,14 @@
17
17
  "url": "https://github.com/WordPress/gutenberg/issues"
18
18
  },
19
19
  "engines": {
20
- "node": ">=18.12.0"
20
+ "node": ">=22.13.0"
21
21
  },
22
22
  "files": [
23
23
  "src",
24
24
  "build",
25
25
  "build-module",
26
26
  "build-style",
27
- "build-types",
28
- "*.md"
27
+ "build-types"
29
28
  ],
30
29
  "main": "build/index.cjs",
31
30
  "module": "build-module/index.mjs",
@@ -38,38 +37,38 @@
38
37
  },
39
38
  "wpScript": true,
40
39
  "dependencies": {
41
- "@wordpress/a11y": "^4.57.0",
42
- "@wordpress/admin-ui": "^2.12.0",
43
- "@wordpress/base-styles": "^13.3.0",
44
- "@wordpress/block-editor": "^18.1.0",
45
- "@wordpress/block-library": "^11.2.0",
46
- "@wordpress/blocks": "^16.2.0",
47
- "@wordpress/components": "^42.0.0",
48
- "@wordpress/compose": "^8.10.0",
49
- "@wordpress/core-data": "^8.2.0",
50
- "@wordpress/data": "^10.57.0",
51
- "@wordpress/dom": "^4.57.0",
52
- "@wordpress/element": "^9.0.0",
53
- "@wordpress/hooks": "^4.57.0",
54
- "@wordpress/i18n": "^6.30.0",
55
- "@wordpress/icons": "^18.0.0",
56
- "@wordpress/is-shallow-equal": "^5.57.0",
57
- "@wordpress/keyboard-shortcuts": "^5.57.0",
58
- "@wordpress/keycodes": "^4.57.0",
59
- "@wordpress/media-utils": "^5.57.0",
60
- "@wordpress/preferences": "^4.57.0",
61
- "@wordpress/private-apis": "^2.0.0",
62
- "@wordpress/theme": "^2.3.0",
63
- "@wordpress/ui": "^0.24.0",
64
- "@wordpress/widgets": "^4.57.0",
40
+ "@wordpress/a11y": "^5.1.0",
41
+ "@wordpress/admin-ui": "^3.1.0",
42
+ "@wordpress/base-styles": "^15.0.0",
43
+ "@wordpress/block-editor": "^20.0.0",
44
+ "@wordpress/block-library": "^12.1.0",
45
+ "@wordpress/blocks": "^17.1.0",
46
+ "@wordpress/components": "^44.0.0",
47
+ "@wordpress/compose": "^9.1.0",
48
+ "@wordpress/core-data": "^9.1.0",
49
+ "@wordpress/data": "^11.1.0",
50
+ "@wordpress/dom": "^5.1.0",
51
+ "@wordpress/element": "^10.1.0",
52
+ "@wordpress/hooks": "^5.1.0",
53
+ "@wordpress/i18n": "^7.1.0",
54
+ "@wordpress/icons": "^20.0.0",
55
+ "@wordpress/is-shallow-equal": "^6.1.0",
56
+ "@wordpress/keyboard-shortcuts": "^6.1.0",
57
+ "@wordpress/keycodes": "^5.1.0",
58
+ "@wordpress/media-utils": "^6.1.0",
59
+ "@wordpress/preferences": "^5.1.0",
60
+ "@wordpress/private-apis": "^3.1.0",
61
+ "@wordpress/theme": "^4.0.0",
62
+ "@wordpress/ui": "^0.26.0",
63
+ "@wordpress/widgets": "^5.1.0",
65
64
  "clsx": "^2.1.1",
66
65
  "fast-deep-equal": "^3.1.3"
67
66
  },
68
67
  "devDependencies": {
69
68
  "@testing-library/dom": "^10.4.2",
70
69
  "@testing-library/react": "^16.3.3",
71
- "@testing-library/user-event": "^14.6.1",
72
- "vitest": "^5.0.3"
70
+ "@testing-library/user-event": "^14.6.8",
71
+ "vitest": "^5.0.5"
73
72
  },
74
73
  "peerDependencies": {
75
74
  "react": "^18 || ^19",
@@ -78,5 +77,5 @@
78
77
  "publishConfig": {
79
78
  "access": "public"
80
79
  },
81
- "gitHead": "12441e2520c78b2254a792a8cba40c34110be060"
80
+ "gitHead": "9b70363b9f93cff0583a1f3153738d383cf5a49e"
82
81
  }
@@ -6,8 +6,9 @@ import {
6
6
  createPortal,
7
7
  useMemo,
8
8
  } from '@wordpress/element';
9
- import { SlotFillProvider, Popover } from '@wordpress/components';
9
+ import { SlotFillProvider, Popover as WCPopover } from '@wordpress/components';
10
10
  import { ThemeProvider } from '@wordpress/theme';
11
+ import { useEnableWpCompatOverlaySlot } from '@wordpress/ui';
11
12
  import ErrorBoundary from '../error-boundary';
12
13
  import SidebarBlockEditor from '../sidebar-block-editor';
13
14
  import FocusControl from '../focus-control';
@@ -26,6 +27,8 @@ export default function CustomizeWidgets( {
26
27
  const popoverRef = useRef();
27
28
  const adminPrimary = useMemo( () => getAdminThemeColors().primary, [] );
28
29
 
30
+ // `useClearSelectedBlock` relies on the slot marker to spot overlays.
31
+ useEnableWpCompatOverlaySlot();
29
32
  useClearSelectedBlock( activeSidebarControl, popoverRef );
30
33
 
31
34
  useEffect( () => {
@@ -63,7 +66,7 @@ export default function CustomizeWidgets( {
63
66
  parentContainer &&
64
67
  createPortal(
65
68
  <div className="customize-widgets-popover" ref={ popoverRef }>
66
- <Popover.Slot />
69
+ <WCPopover.Slot />
67
70
  </div>,
68
71
  parentContainer
69
72
  );
@@ -9,7 +9,7 @@ import { store as blockEditorStore } from '@wordpress/block-editor';
9
9
  * the preview iframe.
10
10
  * This hook will clear the selected block when focusing outside the editor,
11
11
  * with a few exceptions:
12
- * 1. Focusing on popovers.
12
+ * 1. Focusing on popovers, including `@wordpress/ui` overlays.
13
13
  * 2. Focusing on the inspector.
14
14
  * 3. Focusing on any modals/dialogs.
15
15
  * These cases are normally triggered by user interactions from the editor,
@@ -40,6 +40,7 @@ export default function useClearSelectedBlock( sidebarControl, popoverRef ) {
40
40
  // 3. It should also not exist in the container, the popover, nor the dialog.
41
41
  ! container.contains( element ) &&
42
42
  ! popoverRef.current.contains( element ) &&
43
+ ! element.closest( '[data-wp-compat-overlay-slot]' ) &&
43
44
  ! element.closest( '[role="dialog"]' ) &&
44
45
  // 4. The inspector should not be opened.
45
46
  ! inspector.expanded()
@@ -4,7 +4,7 @@ import { useDispatch } from '@wordpress/data';
4
4
  import { store as preferencesStore } from '@wordpress/preferences';
5
5
 
6
6
  export default function WelcomeGuide( { sidebar } ) {
7
- const { toggle } = useDispatch( preferencesStore );
7
+ const { set: setPreference } = useDispatch( preferencesStore );
8
8
 
9
9
  const isEntirelyBlockWidgets = sidebar
10
10
  .getWidgets()
@@ -43,7 +43,11 @@ export default function WelcomeGuide( { sidebar } ) {
43
43
  size="compact"
44
44
  variant="primary"
45
45
  onClick={ () =>
46
- toggle( 'core/customize-widgets', 'welcomeGuide' )
46
+ setPreference(
47
+ 'core/customize-widgets',
48
+ 'welcomeGuide',
49
+ false
50
+ )
47
51
  }
48
52
  >
49
53
  { __( 'Got it' ) }
package/CHANGELOG.md DELETED
@@ -1,289 +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
- ### Bug Fixes
8
-
9
- - Error boundary: Explicitly announce the error title and description, excluding action labels ([#82737](https://github.com/WordPress/gutenberg/pull/82737)).
10
-
11
- ## 5.56.0 (2026-09-23)
12
-
13
- ### Bug Fixes
14
-
15
- - Open the Welcome Guide from a plain menu item instead of a preference toggle, so the Options menu no longer announces "Preference activated - Welcome Guide" ([#82395](https://github.com/WordPress/gutenberg/pull/82395)).
16
- - Use `aria-disabled` for the Undo and Redo buttons of the document tools so they stay focusable when there is nothing to undo or redo, and make the focus style of all the document tools buttons visible ([#82412](https://github.com/WordPress/gutenberg/pull/82412)).
17
-
18
- ## 5.55.0 (2026-09-10)
19
-
20
- ### Enhancements
21
-
22
- - Error boundary: Surface debugging details ([#82099](https://github.com/WordPress/gutenberg/pull/82099)).
23
-
24
- ### Internal
25
-
26
- - Stop passing the unused `editorTool` block editor setting; the selector that read it was removed with the Write/Design tool in [#72193](https://github.com/WordPress/gutenberg/pull/72193) ([#82677](https://github.com/WordPress/gutenberg/pull/82677)).
27
- - Remove unused dependency `@wordpress/interface` ([#82103](https://github.com/WordPress/gutenberg/pull/82103)).
28
- - Use the `.jsx` extension for JavaScript source files that contain JSX ([#80990](https://github.com/WordPress/gutenberg/pull/80990)).
29
-
30
- ## 5.54.0 (2026-08-26)
31
-
32
- ## 5.53.0 (2026-08-12)
33
-
34
- ### Enhancements
35
-
36
- - Wrap the Customizer widgets editor in `ThemeProvider`, seeded with the active admin color scheme primary color ([#81174](https://github.com/WordPress/gutenberg/pull/81174)).
37
-
38
- ## 5.52.0 (2026-07-29)
39
-
40
- ## 5.51.0 (2026-07-14)
41
-
42
- ### Enhancements
43
-
44
- - 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)).
45
-
46
- ## 5.50.0 (2026-07-01)
47
-
48
- ## 5.49.0 (2026-06-24)
49
-
50
- ## 5.48.1 (2026-06-16)
51
-
52
- ## 5.48.0 (2026-06-10)
53
-
54
- ## 5.47.0 (2026-05-27)
55
-
56
- ## 5.46.0 (2026-05-14)
57
-
58
- ## 5.45.0 (2026-04-29)
59
-
60
- ## 5.44.0 (2026-04-15)
61
-
62
- ## 5.43.0 (2026-04-01)
63
-
64
- ## 5.42.0 (2026-03-18)
65
-
66
- ## 5.41.0 (2026-03-04)
67
-
68
- ## 5.40.0 (2026-02-18)
69
-
70
- ## 5.39.0 (2026-01-29)
71
-
72
- ## 5.38.0 (2026-01-16)
73
-
74
- ## 5.36.0 (2025-11-26)
75
-
76
- ## 5.35.0 (2025-11-12)
77
-
78
- ## 5.34.0 (2025-10-29)
79
-
80
- ## 5.33.0 (2025-10-17)
81
-
82
- ## 5.32.0 (2025-10-01)
83
-
84
- ## 5.31.0 (2025-09-17)
85
-
86
- ## 5.30.0 (2025-09-03)
87
-
88
- ## 5.29.0 (2025-08-20)
89
-
90
- ## 5.28.0 (2025-08-07)
91
-
92
- ## 5.27.0 (2025-07-23)
93
-
94
- ## 5.26.0 (2025-06-25)
95
-
96
- ## 5.25.0 (2025-06-04)
97
-
98
- ## 5.24.0 (2025-05-22)
99
-
100
- ## 5.23.0 (2025-05-07)
101
-
102
- ## 5.22.0 (2025-04-11)
103
-
104
- ## 5.21.0 (2025-03-27)
105
-
106
- ## 5.20.0 (2025-03-13)
107
-
108
- ## 5.19.0 (2025-02-28)
109
-
110
- ## 5.18.0 (2025-02-12)
111
-
112
- ## 5.17.0 (2025-01-29)
113
-
114
- ## 5.16.0 (2025-01-15)
115
-
116
- ## 5.15.0 (2025-01-02)
117
-
118
- ## 5.14.0 (2024-12-11)
119
-
120
- ## 5.13.0 (2024-11-27)
121
-
122
- ## 5.12.0 (2024-11-16)
123
-
124
- ## 5.11.0 (2024-10-30)
125
-
126
- ## 5.10.0 (2024-10-16)
127
-
128
- ## 5.9.0 (2024-10-03)
129
-
130
- ## 5.8.0 (2024-09-19)
131
-
132
- ## 5.7.0 (2024-09-05)
133
-
134
- ## 5.6.0 (2024-08-21)
135
-
136
- ## 5.5.0 (2024-08-07)
137
-
138
- ## 5.4.0 (2024-07-24)
139
-
140
- ## 5.3.0 (2024-07-10)
141
-
142
- ## 5.2.0 (2024-06-26)
143
-
144
- ## 5.1.0 (2024-06-15)
145
-
146
- ## 5.0.0 (2024-05-31)
147
-
148
- ### Breaking Changes
149
-
150
- - Variables like `process.env.IS_GUTENBERG_PLUGIN` have been replaced by `globalThis.IS_GUTENBERG_PLUGIN`. Build systems using `process.env` should be updated ([#61486](https://github.com/WordPress/gutenberg/pull/61486)).
151
- - 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).
152
-
153
- ## 4.35.0 (2024-05-16)
154
-
155
- ## 4.34.0 (2024-05-02)
156
-
157
- ## 4.33.0 (2024-04-19)
158
-
159
- ## 4.32.0 (2024-04-03)
160
-
161
- ## 4.31.0 (2024-03-21)
162
-
163
- ## 4.30.0 (2024-03-06)
164
-
165
- ## 4.29.0 (2024-02-21)
166
-
167
- ## 4.28.0 (2024-02-09)
168
-
169
- ## 4.27.0 (2024-01-24)
170
-
171
- ## 4.26.0 (2024-01-10)
172
-
173
- ## 4.25.0 (2023-12-13)
174
-
175
- ## 4.24.0 (2023-11-29)
176
-
177
- ## 4.23.0 (2023-11-16)
178
-
179
- ## 4.22.0 (2023-11-02)
180
-
181
- ## 4.21.0 (2023-10-18)
182
-
183
- ## 4.20.0 (2023-10-05)
184
-
185
- ## 4.19.0 (2023-09-20)
186
-
187
- ## 4.18.0 (2023-08-31)
188
-
189
- ## 4.17.0 (2023-08-16)
190
-
191
- ## 4.16.0 (2023-08-10)
192
-
193
- ## 4.15.0 (2023-07-20)
194
-
195
- ## 4.14.0 (2023-07-05)
196
-
197
- ## 4.13.0 (2023-06-23)
198
-
199
- ## 4.12.0 (2023-06-07)
200
-
201
- ## 4.11.0 (2023-05-24)
202
-
203
- ## 4.10.0 (2023-05-10)
204
-
205
- ## 4.9.0 (2023-04-26)
206
-
207
- ## 4.8.0 (2023-04-12)
208
-
209
- ## 4.7.0 (2023-03-29)
210
-
211
- ## 4.6.0 (2023-03-15)
212
-
213
- ## 4.5.0 (2023-03-01)
214
-
215
- ## 4.4.0 (2023-02-15)
216
-
217
- ## 4.3.0 (2023-02-01)
218
-
219
- ## 4.2.0 (2023-01-11)
220
-
221
- ## 4.1.0 (2023-01-02)
222
-
223
- ## 4.0.0 (2022-12-14)
224
-
225
- ### Breaking Changes
226
-
227
- - Updated dependencies to require React 18 ([45235](https://github.com/WordPress/gutenberg/pull/45235))
228
-
229
- ## 3.19.0 (2022-11-16)
230
-
231
- ## 3.18.0 (2022-11-02)
232
-
233
- ## 3.17.0 (2022-10-19)
234
-
235
- ## 3.16.0 (2022-10-05)
236
-
237
- ## 3.15.0 (2022-09-21)
238
-
239
- ## 3.14.0 (2022-09-13)
240
-
241
- ## 3.13.0 (2022-08-24)
242
-
243
- ## 3.12.0 (2022-08-10)
244
-
245
- ## 3.11.0 (2022-07-27)
246
-
247
- ## 3.10.0 (2022-07-13)
248
-
249
- ## 3.9.0 (2022-06-29)
250
-
251
- ## 3.8.0 (2022-06-15)
252
-
253
- ## 3.7.0 (2022-06-01)
254
-
255
- ## 3.6.0 (2022-05-18)
256
-
257
- ## 3.5.0 (2022-05-04)
258
-
259
- ## 3.4.0 (2022-04-21)
260
-
261
- ## 3.3.0 (2022-04-08)
262
-
263
- ## 3.2.0 (2022-03-23)
264
-
265
- ## 3.1.0 (2022-03-11)
266
-
267
- ## 3.0.0 (2022-02-10)
268
-
269
- ### Breaking Changes
270
-
271
- - The `GUTENBERG_PHASE` environment variable has been renamed to `IS_GUTENBERG_PLUGIN` and is now a boolean ([#38202](https://github.com/WordPress/gutenberg/pull/38202)).
272
-
273
- ### Bug Fixes
274
-
275
- - Removed unused `@wordpress/a11y` dependency ([#38388](https://github.com/WordPress/gutenberg/pull/38388)).
276
-
277
- ## 2.1.0 (2022-01-27)
278
-
279
- ## 2.0.0 (2021-07-29)
280
-
281
- ### Breaking Changes
282
-
283
- - 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).
284
-
285
- ## 1.1.0 (2021-07-21)
286
-
287
- ## 1.0.0 (2021-05-24)
288
-
289
- - Initial release of the package.
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/filters/index.js"],
4
- "sourcesContent": ["import './move-to-sidebar';\nimport './replace-media-upload';\nimport './wide-widget-display';\n"],
5
- "mappings": ";AAAA,6BAAO;AACP,kCAAO;AACP,iCAAO;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/filters/index.js"],
4
- "sourcesContent": ["import './move-to-sidebar';\nimport './replace-media-upload';\nimport './wide-widget-display';\n"],
5
- "mappings": ";AAAA,OAAO;AACP,OAAO;AACP,OAAO;",
6
- "names": []
7
- }