@wordpress/customize-widgets 5.32.0 → 5.32.1-next.ff1cebbba.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 (164) hide show
  1. package/build/components/block-appender/index.js +33 -27
  2. package/build/components/block-appender/index.js.map +7 -1
  3. package/build/components/block-inspector-button/index.js +51 -36
  4. package/build/components/block-inspector-button/index.js.map +7 -1
  5. package/build/components/customize-widgets/index.js +83 -61
  6. package/build/components/customize-widgets/index.js.map +7 -1
  7. package/build/components/customize-widgets/use-clear-selected-block.js +56 -63
  8. package/build/components/customize-widgets/use-clear-selected-block.js.map +7 -1
  9. package/build/components/error-boundary/index.js +46 -45
  10. package/build/components/error-boundary/index.js.map +7 -1
  11. package/build/components/focus-control/index.js +69 -57
  12. package/build/components/focus-control/index.js.map +7 -1
  13. package/build/components/focus-control/use-blocks-focus-control.js +38 -31
  14. package/build/components/focus-control/use-blocks-focus-control.js.map +7 -1
  15. package/build/components/header/index.js +110 -71
  16. package/build/components/header/index.js.map +7 -1
  17. package/build/components/inserter/index.js +77 -53
  18. package/build/components/inserter/index.js.map +7 -1
  19. package/build/components/inserter/use-inserter.js +46 -29
  20. package/build/components/inserter/use-inserter.js.map +7 -1
  21. package/build/components/keyboard-shortcut-help-modal/config.js +74 -71
  22. package/build/components/keyboard-shortcut-help-modal/config.js.map +7 -1
  23. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +61 -44
  24. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +7 -1
  25. package/build/components/keyboard-shortcut-help-modal/index.js +155 -110
  26. package/build/components/keyboard-shortcut-help-modal/index.js.map +7 -1
  27. package/build/components/keyboard-shortcut-help-modal/shortcut.js +76 -56
  28. package/build/components/keyboard-shortcut-help-modal/shortcut.js.map +7 -1
  29. package/build/components/keyboard-shortcuts/index.js +60 -51
  30. package/build/components/keyboard-shortcuts/index.js.map +7 -1
  31. package/build/components/more-menu/index.js +151 -90
  32. package/build/components/more-menu/index.js.map +7 -1
  33. package/build/components/sidebar-block-editor/index.js +133 -105
  34. package/build/components/sidebar-block-editor/index.js.map +7 -1
  35. package/build/components/sidebar-block-editor/sidebar-adapter.js +73 -67
  36. package/build/components/sidebar-block-editor/sidebar-adapter.js.map +7 -1
  37. package/build/components/sidebar-block-editor/sidebar-editor-provider.js +51 -33
  38. package/build/components/sidebar-block-editor/sidebar-editor-provider.js.map +7 -1
  39. package/build/components/sidebar-block-editor/use-sidebar-block-editor.js +100 -79
  40. package/build/components/sidebar-block-editor/use-sidebar-block-editor.js.map +7 -1
  41. package/build/components/sidebar-controls/index.js +45 -31
  42. package/build/components/sidebar-controls/index.js.map +7 -1
  43. package/build/components/welcome-guide/index.js +86 -58
  44. package/build/components/welcome-guide/index.js.map +7 -1
  45. package/build/controls/inserter-outer-section.js +49 -58
  46. package/build/controls/inserter-outer-section.js.map +7 -1
  47. package/build/controls/inspector-section.js +30 -36
  48. package/build/controls/inspector-section.js.map +7 -1
  49. package/build/controls/sidebar-control.js +51 -30
  50. package/build/controls/sidebar-control.js.map +7 -1
  51. package/build/controls/sidebar-section.js +71 -39
  52. package/build/controls/sidebar-section.js.map +7 -1
  53. package/build/filters/index.js +4 -6
  54. package/build/filters/index.js.map +7 -1
  55. package/build/filters/move-to-sidebar.js +77 -79
  56. package/build/filters/move-to-sidebar.js.map +7 -1
  57. package/build/filters/replace-media-upload.js +9 -11
  58. package/build/filters/replace-media-upload.js.map +7 -1
  59. package/build/filters/wide-widget-display.js +20 -25
  60. package/build/filters/wide-widget-display.js.map +7 -1
  61. package/build/index.js +81 -70
  62. package/build/index.js.map +7 -1
  63. package/build/lock-unlock.js +31 -15
  64. package/build/lock-unlock.js.map +7 -1
  65. package/build/store/actions.js +27 -44
  66. package/build/store/actions.js.map +7 -1
  67. package/build/store/constants.js +27 -10
  68. package/build/store/constants.js.map +7 -1
  69. package/build/store/index.js +44 -40
  70. package/build/store/index.js.map +7 -1
  71. package/build/store/reducer.js +25 -19
  72. package/build/store/reducer.js.map +7 -1
  73. package/build/store/selectors.js +31 -44
  74. package/build/store/selectors.js.map +7 -1
  75. package/build/utils.js +45 -73
  76. package/build/utils.js.map +7 -1
  77. package/build-module/components/block-appender/index.js +17 -20
  78. package/build-module/components/block-appender/index.js.map +7 -1
  79. package/build-module/components/block-inspector-button/index.js +33 -30
  80. package/build-module/components/block-inspector-button/index.js.map +7 -1
  81. package/build-module/components/customize-widgets/index.js +52 -51
  82. package/build-module/components/customize-widgets/index.js.map +7 -1
  83. package/build-module/components/customize-widgets/use-clear-selected-block.js +38 -58
  84. package/build-module/components/customize-widgets/use-clear-selected-block.js.map +7 -1
  85. package/build-module/components/error-boundary/index.js +27 -37
  86. package/build-module/components/error-boundary/index.js.map +7 -1
  87. package/build-module/components/focus-control/index.js +50 -45
  88. package/build-module/components/focus-control/index.js.map +7 -1
  89. package/build-module/components/focus-control/use-blocks-focus-control.js +17 -22
  90. package/build-module/components/focus-control/use-blocks-focus-control.js.map +7 -1
  91. package/build-module/components/header/index.js +81 -63
  92. package/build-module/components/header/index.js.map +7 -1
  93. package/build-module/components/inserter/index.js +59 -47
  94. package/build-module/components/inserter/index.js.map +7 -1
  95. package/build-module/components/inserter/use-inserter.js +28 -23
  96. package/build-module/components/inserter/use-inserter.js.map +7 -1
  97. package/build-module/components/keyboard-shortcut-help-modal/config.js +62 -75
  98. package/build-module/components/keyboard-shortcut-help-modal/config.js.map +7 -1
  99. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +33 -37
  100. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +7 -1
  101. package/build-module/components/keyboard-shortcut-help-modal/index.js +130 -103
  102. package/build-module/components/keyboard-shortcut-help-modal/index.js.map +7 -1
  103. package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +58 -50
  104. package/build-module/components/keyboard-shortcut-help-modal/shortcut.js.map +7 -1
  105. package/build-module/components/keyboard-shortcuts/index.js +44 -44
  106. package/build-module/components/keyboard-shortcuts/index.js.map +7 -1
  107. package/build-module/components/more-menu/index.js +129 -84
  108. package/build-module/components/more-menu/index.js.map +7 -1
  109. package/build-module/components/sidebar-block-editor/index.js +109 -96
  110. package/build-module/components/sidebar-block-editor/index.js.map +7 -1
  111. package/build-module/components/sidebar-block-editor/sidebar-adapter.js +54 -59
  112. package/build-module/components/sidebar-block-editor/sidebar-adapter.js.map +7 -1
  113. package/build-module/components/sidebar-block-editor/sidebar-editor-provider.js +22 -25
  114. package/build-module/components/sidebar-block-editor/sidebar-editor-provider.js.map +7 -1
  115. package/build-module/components/sidebar-block-editor/use-sidebar-block-editor.js +70 -70
  116. package/build-module/components/sidebar-block-editor/use-sidebar-block-editor.js.map +7 -1
  117. package/build-module/components/sidebar-controls/index.js +24 -25
  118. package/build-module/components/sidebar-controls/index.js.map +7 -1
  119. package/build-module/components/welcome-guide/index.js +68 -52
  120. package/build-module/components/welcome-guide/index.js.map +7 -1
  121. package/build-module/controls/inserter-outer-section.js +31 -52
  122. package/build-module/controls/inserter-outer-section.js.map +7 -1
  123. package/build-module/controls/inspector-section.js +13 -32
  124. package/build-module/controls/inspector-section.js.map +7 -1
  125. package/build-module/controls/sidebar-control.js +22 -22
  126. package/build-module/controls/sidebar-control.js.map +7 -1
  127. package/build-module/controls/sidebar-section.js +43 -32
  128. package/build-module/controls/sidebar-section.js.map +7 -1
  129. package/build-module/filters/index.js +4 -7
  130. package/build-module/filters/index.js.map +7 -1
  131. package/build-module/filters/move-to-sidebar.js +83 -76
  132. package/build-module/filters/move-to-sidebar.js.map +7 -1
  133. package/build-module/filters/replace-media-upload.js +8 -7
  134. package/build-module/filters/replace-media-upload.js.map +7 -1
  135. package/build-module/filters/wide-widget-display.js +20 -22
  136. package/build-module/filters/wide-widget-display.js.map +7 -1
  137. package/build-module/index.js +53 -51
  138. package/build-module/index.js.map +7 -1
  139. package/build-module/lock-unlock.js +8 -7
  140. package/build-module/lock-unlock.js.map +7 -1
  141. package/build-module/store/actions.js +6 -40
  142. package/build-module/store/actions.js.map +7 -1
  143. package/build-module/store/constants.js +5 -5
  144. package/build-module/store/constants.js.map +7 -1
  145. package/build-module/store/index.js +10 -30
  146. package/build-module/store/index.js.map +7 -1
  147. package/build-module/store/reducer.js +7 -14
  148. package/build-module/store/reducer.js.map +7 -1
  149. package/build-module/store/selectors.js +10 -40
  150. package/build-module/store/selectors.js.map +7 -1
  151. package/build-module/utils.js +21 -66
  152. package/build-module/utils.js.map +7 -1
  153. package/build-style/style-rtl.css +14 -149
  154. package/build-style/style.css +14 -149
  155. package/package.json +30 -23
  156. package/src/components/block-inspector-button/style.scss +3 -0
  157. package/src/components/header/style.scss +5 -0
  158. package/src/components/inserter/style.scss +3 -0
  159. package/src/components/keyboard-shortcut-help-modal/style.scss +2 -0
  160. package/src/components/more-menu/style.scss +2 -0
  161. package/src/components/sidebar-block-editor/style.scss +2 -0
  162. package/src/components/welcome-guide/style.scss +2 -0
  163. package/src/controls/style.scss +2 -0
  164. package/src/style.scss +10 -8
@@ -1,17 +1,6 @@
1
- // @ts-check
2
- /**
3
- * WordPress dependencies
4
- */
5
- import { serialize, parse, createBlock } from '@wordpress/blocks';
6
- import { addWidgetIdToBlock } from '@wordpress/widgets';
7
-
8
- /**
9
- * Convert settingId to widgetId.
10
- *
11
- * @param {string} settingId The setting id.
12
- * @return {string} The widget id.
13
- */
14
- export function settingIdToWidgetId(settingId) {
1
+ import { serialize, parse, createBlock } from "@wordpress/blocks";
2
+ import { addWidgetIdToBlock } from "@wordpress/widgets";
3
+ function settingIdToWidgetId(settingId) {
15
4
  const matches = settingId.match(/^widget_(.+)(?:\[(\d+)\])$/);
16
5
  if (matches) {
17
6
  const idBase = matches[1];
@@ -20,32 +9,16 @@ export function settingIdToWidgetId(settingId) {
20
9
  }
21
10
  return settingId;
22
11
  }
23
-
24
- /**
25
- * Transform a block to a customizable widget.
26
- *
27
- * @param {WPBlock} block The block to be transformed from.
28
- * @param {Object} existingWidget The widget to be extended from.
29
- * @return {Object} The transformed widget.
30
- */
31
- export function blockToWidget(block, existingWidget = null) {
12
+ function blockToWidget(block, existingWidget = null) {
32
13
  let widget;
33
- const isValidLegacyWidgetBlock = block.name === 'core/legacy-widget' && (block.attributes.id || block.attributes.instance);
14
+ const isValidLegacyWidgetBlock = block.name === "core/legacy-widget" && (block.attributes.id || block.attributes.instance);
34
15
  if (isValidLegacyWidgetBlock) {
35
16
  if (block.attributes.id) {
36
- // Widget that does not extend WP_Widget.
37
17
  widget = {
38
18
  id: block.attributes.id
39
19
  };
40
20
  } else {
41
- const {
42
- encoded,
43
- hash,
44
- raw,
45
- ...rest
46
- } = block.attributes.instance;
47
-
48
- // Widget that extends WP_Widget.
21
+ const { encoded, hash, raw, ...rest } = block.attributes.instance;
49
22
  widget = {
50
23
  idBase: block.attributes.idBase,
51
24
  instance: {
@@ -64,40 +37,20 @@ export function blockToWidget(block, existingWidget = null) {
64
37
  content: serialize(block)
65
38
  };
66
39
  widget = {
67
- idBase: 'block',
68
- widgetClass: 'WP_Widget_Block',
40
+ idBase: "block",
41
+ widgetClass: "WP_Widget_Block",
69
42
  instance: {
70
43
  raw_instance: instance
71
44
  }
72
45
  };
73
46
  }
74
- const {
75
- form,
76
- rendered,
77
- ...restExistingWidget
78
- } = existingWidget || {};
47
+ const { form, rendered, ...restExistingWidget } = existingWidget || {};
79
48
  return {
80
49
  ...restExistingWidget,
81
50
  ...widget
82
51
  };
83
52
  }
84
-
85
- /**
86
- * Transform a widget to a block.
87
- *
88
- * @param {Object} widget The widget to be transformed from.
89
- * @param {string} widget.id The widget id.
90
- * @param {string} widget.idBase The id base of the widget.
91
- * @param {number} widget.number The number/index of the widget.
92
- * @param {Object} widget.instance The instance of the widget.
93
- * @return {WPBlock} The transformed block.
94
- */
95
- export function widgetToBlock({
96
- id,
97
- idBase,
98
- number,
99
- instance
100
- }) {
53
+ function widgetToBlock({ id, idBase, number, instance }) {
101
54
  let block;
102
55
  const {
103
56
  encoded_serialized_instance: encoded,
@@ -105,15 +58,13 @@ export function widgetToBlock({
105
58
  raw_instance: raw,
106
59
  ...rest
107
60
  } = instance;
108
- if (idBase === 'block') {
109
- var _raw$content;
110
- const parsedBlocks = parse((_raw$content = raw.content) !== null && _raw$content !== void 0 ? _raw$content : '', {
61
+ if (idBase === "block") {
62
+ const parsedBlocks = parse(raw.content ?? "", {
111
63
  __unstableSkipAutop: true
112
64
  });
113
- block = parsedBlocks.length ? parsedBlocks[0] : createBlock('core/paragraph', {});
65
+ block = parsedBlocks.length ? parsedBlocks[0] : createBlock("core/paragraph", {});
114
66
  } else if (number) {
115
- // Widget that extends WP_Widget.
116
- block = createBlock('core/legacy-widget', {
67
+ block = createBlock("core/legacy-widget", {
117
68
  idBase,
118
69
  instance: {
119
70
  encoded,
@@ -123,11 +74,15 @@ export function widgetToBlock({
123
74
  }
124
75
  });
125
76
  } else {
126
- // Widget that does not extend WP_Widget.
127
- block = createBlock('core/legacy-widget', {
77
+ block = createBlock("core/legacy-widget", {
128
78
  id
129
79
  });
130
80
  }
131
81
  return addWidgetIdToBlock(block, id);
132
82
  }
133
- //# sourceMappingURL=utils.js.map
83
+ export {
84
+ blockToWidget,
85
+ settingIdToWidgetId,
86
+ widgetToBlock
87
+ };
88
+ //# sourceMappingURL=utils.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["serialize","parse","createBlock","addWidgetIdToBlock","settingIdToWidgetId","settingId","matches","match","idBase","number","parseInt","blockToWidget","block","existingWidget","widget","isValidLegacyWidgetBlock","name","attributes","id","instance","encoded","hash","raw","rest","is_widget_customizer_js_value","encoded_serialized_instance","instance_hash_key","raw_instance","content","widgetClass","form","rendered","restExistingWidget","widgetToBlock","_raw$content","parsedBlocks","__unstableSkipAutop","length"],"sources":["@wordpress/customize-widgets/src/utils.js"],"sourcesContent":["// @ts-check\n/**\n * WordPress dependencies\n */\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":"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","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/utils.js"],
4
+ "sourcesContent": ["// @ts-check\n/**\n * WordPress dependencies\n */\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": "AAIA,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,57 +1,6 @@
1
- /**
2
- * Colors
3
- */
4
- /**
5
- * Breakpoints & Media Queries
6
- */
7
- /**
8
- * Colors
9
- */
10
- /**
11
- * SCSS Variables.
12
- *
13
- * Please use variables from this sheet to ensure consistency across the UI.
14
- * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
15
- * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
16
- */
17
- /**
18
- * Fonts & basic variables.
19
- */
20
1
  /**
21
2
  * Typography
22
3
  */
23
- /**
24
- * Grid System.
25
- * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
26
- */
27
- /**
28
- * Radius scale.
29
- */
30
- /**
31
- * Elevation scale.
32
- */
33
- /**
34
- * Dimensions.
35
- */
36
- /**
37
- * Mobile specific styles
38
- */
39
- /**
40
- * Editor styles.
41
- */
42
- /**
43
- * Block & Editor UI.
44
- */
45
- /**
46
- * Block paddings.
47
- */
48
- /**
49
- * React Native specific.
50
- * These variables do not appear to be used anywhere else.
51
- */
52
- /**
53
- * Colors
54
- */
55
4
  /**
56
5
  * SCSS Variables.
57
6
  *
@@ -59,91 +8,9 @@
59
8
  * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
60
9
  * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
61
10
  */
62
- /**
63
- * Fonts & basic variables.
64
- */
65
- /**
66
- * Typography
67
- */
68
- /**
69
- * Grid System.
70
- * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
71
- */
72
- /**
73
- * Radius scale.
74
- */
75
- /**
76
- * Elevation scale.
77
- */
78
- /**
79
- * Dimensions.
80
- */
81
- /**
82
- * Mobile specific styles
83
- */
84
- /**
85
- * Editor styles.
86
- */
87
- /**
88
- * Block & Editor UI.
89
- */
90
- /**
91
- * Block paddings.
92
- */
93
- /**
94
- * React Native specific.
95
- * These variables do not appear to be used anywhere else.
96
- */
97
- /**
98
- * Breakpoints & Media Queries
99
- */
100
- /**
101
- * Converts a hex value into the rgb equivalent.
102
- *
103
- * @param {string} hex - the hexadecimal value to convert
104
- * @return {string} comma separated rgb values
105
- */
106
- /**
107
- * Long content fade mixin
108
- *
109
- * Creates a fading overlay to signify that the content is longer
110
- * than the space allows.
111
- */
112
- /**
113
- * Typography
114
- */
115
- /**
116
- * Breakpoint mixins
117
- */
118
- /**
119
- * Focus styles.
120
- */
121
- /**
122
- * Applies editor left position to the selector passed as argument
123
- */
124
- /**
125
- * Styles that are reused verbatim in a few places
126
- */
127
- /**
128
- * Allows users to opt-out of animations via OS-level preferences.
129
- */
130
- /**
131
- * Reset default styles for JavaScript UI based pages.
132
- * This is a WP-admin agnostic reset
133
- */
134
- /**
135
- * Reset the WP Admin page styles for Gutenberg-like pages.
136
- */
137
11
  /**
138
12
  * Colors
139
13
  */
140
- /**
141
- * SCSS Variables.
142
- *
143
- * Please use variables from this sheet to ensure consistency across the UI.
144
- * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
145
- * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
146
- */
147
14
  /**
148
15
  * Fonts & basic variables.
149
16
  */
@@ -194,9 +61,6 @@
194
61
  * Creates a fading overlay to signify that the content is longer
195
62
  * than the space allows.
196
63
  */
197
- /**
198
- * Typography
199
- */
200
64
  /**
201
65
  * Breakpoint mixins
202
66
  */
@@ -223,10 +87,11 @@
223
87
  --wp-block-synced-color: #7a00df;
224
88
  --wp-block-synced-color--rgb: 122, 0, 223;
225
89
  --wp-bound-block-color: var(--wp-block-synced-color);
90
+ --wp-editor-canvas-background: #ddd;
226
91
  --wp-admin-theme-color: #007cba;
227
92
  --wp-admin-theme-color--rgb: 0, 124, 186;
228
- --wp-admin-theme-color-darker-10: #006ba1;
229
- --wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
93
+ --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5);
94
+ --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5;
230
95
  --wp-admin-theme-color-darker-20: #005a87;
231
96
  --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
232
97
  --wp-admin-border-width-focus: 2px;
@@ -255,14 +120,6 @@
255
120
  transform: translateX(100%);
256
121
  }
257
122
 
258
- .customize-widgets-header {
259
- display: flex;
260
- justify-content: flex-end;
261
- margin: -15px -12px 0 -12px;
262
- background: #f0f0f1;
263
- border-bottom: 1px solid #e0e0e0;
264
- z-index: 8;
265
- }
266
123
  @media (min-width: 600px) {
267
124
  .customize-widgets-header {
268
125
  margin-bottom: 44px;
@@ -271,6 +128,14 @@
271
128
  .customize-widgets-header.is-fixed-toolbar-active {
272
129
  margin-bottom: 0;
273
130
  }
131
+ .customize-widgets-header {
132
+ display: flex;
133
+ justify-content: flex-end;
134
+ margin: -15px -12px 0 -12px;
135
+ background: #f0f0f1;
136
+ border-bottom: 1px solid #e0e0e0;
137
+ z-index: 8;
138
+ }
274
139
 
275
140
  .customize-widgets-header-toolbar {
276
141
  display: flex;
@@ -425,14 +290,14 @@
425
290
  line-height: 1.4;
426
291
  }
427
292
 
293
+ #customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section.open {
294
+ overflow: unset;
295
+ }
428
296
  #customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section {
429
297
  min-height: 100%;
430
298
  background-color: #fff;
431
299
  padding-top: 12px !important;
432
300
  }
433
- #customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section.open {
434
- overflow: unset;
435
- }
436
301
  #customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section .customize-section-title {
437
302
  position: static !important;
438
303
  margin-top: -12px !important;
@@ -1,57 +1,6 @@
1
- /**
2
- * Colors
3
- */
4
- /**
5
- * Breakpoints & Media Queries
6
- */
7
- /**
8
- * Colors
9
- */
10
- /**
11
- * SCSS Variables.
12
- *
13
- * Please use variables from this sheet to ensure consistency across the UI.
14
- * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
15
- * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
16
- */
17
- /**
18
- * Fonts & basic variables.
19
- */
20
1
  /**
21
2
  * Typography
22
3
  */
23
- /**
24
- * Grid System.
25
- * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
26
- */
27
- /**
28
- * Radius scale.
29
- */
30
- /**
31
- * Elevation scale.
32
- */
33
- /**
34
- * Dimensions.
35
- */
36
- /**
37
- * Mobile specific styles
38
- */
39
- /**
40
- * Editor styles.
41
- */
42
- /**
43
- * Block & Editor UI.
44
- */
45
- /**
46
- * Block paddings.
47
- */
48
- /**
49
- * React Native specific.
50
- * These variables do not appear to be used anywhere else.
51
- */
52
- /**
53
- * Colors
54
- */
55
4
  /**
56
5
  * SCSS Variables.
57
6
  *
@@ -59,91 +8,9 @@
59
8
  * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
60
9
  * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
61
10
  */
62
- /**
63
- * Fonts & basic variables.
64
- */
65
- /**
66
- * Typography
67
- */
68
- /**
69
- * Grid System.
70
- * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
71
- */
72
- /**
73
- * Radius scale.
74
- */
75
- /**
76
- * Elevation scale.
77
- */
78
- /**
79
- * Dimensions.
80
- */
81
- /**
82
- * Mobile specific styles
83
- */
84
- /**
85
- * Editor styles.
86
- */
87
- /**
88
- * Block & Editor UI.
89
- */
90
- /**
91
- * Block paddings.
92
- */
93
- /**
94
- * React Native specific.
95
- * These variables do not appear to be used anywhere else.
96
- */
97
- /**
98
- * Breakpoints & Media Queries
99
- */
100
- /**
101
- * Converts a hex value into the rgb equivalent.
102
- *
103
- * @param {string} hex - the hexadecimal value to convert
104
- * @return {string} comma separated rgb values
105
- */
106
- /**
107
- * Long content fade mixin
108
- *
109
- * Creates a fading overlay to signify that the content is longer
110
- * than the space allows.
111
- */
112
- /**
113
- * Typography
114
- */
115
- /**
116
- * Breakpoint mixins
117
- */
118
- /**
119
- * Focus styles.
120
- */
121
- /**
122
- * Applies editor left position to the selector passed as argument
123
- */
124
- /**
125
- * Styles that are reused verbatim in a few places
126
- */
127
- /**
128
- * Allows users to opt-out of animations via OS-level preferences.
129
- */
130
- /**
131
- * Reset default styles for JavaScript UI based pages.
132
- * This is a WP-admin agnostic reset
133
- */
134
- /**
135
- * Reset the WP Admin page styles for Gutenberg-like pages.
136
- */
137
11
  /**
138
12
  * Colors
139
13
  */
140
- /**
141
- * SCSS Variables.
142
- *
143
- * Please use variables from this sheet to ensure consistency across the UI.
144
- * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
145
- * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
146
- */
147
14
  /**
148
15
  * Fonts & basic variables.
149
16
  */
@@ -194,9 +61,6 @@
194
61
  * Creates a fading overlay to signify that the content is longer
195
62
  * than the space allows.
196
63
  */
197
- /**
198
- * Typography
199
- */
200
64
  /**
201
65
  * Breakpoint mixins
202
66
  */
@@ -223,10 +87,11 @@
223
87
  --wp-block-synced-color: #7a00df;
224
88
  --wp-block-synced-color--rgb: 122, 0, 223;
225
89
  --wp-bound-block-color: var(--wp-block-synced-color);
90
+ --wp-editor-canvas-background: #ddd;
226
91
  --wp-admin-theme-color: #007cba;
227
92
  --wp-admin-theme-color--rgb: 0, 124, 186;
228
- --wp-admin-theme-color-darker-10: #006ba1;
229
- --wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
93
+ --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5);
94
+ --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5;
230
95
  --wp-admin-theme-color-darker-20: #005a87;
231
96
  --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
232
97
  --wp-admin-border-width-focus: 2px;
@@ -255,14 +120,6 @@
255
120
  transform: translateX(-100%);
256
121
  }
257
122
 
258
- .customize-widgets-header {
259
- display: flex;
260
- justify-content: flex-end;
261
- margin: -15px -12px 0 -12px;
262
- background: #f0f0f1;
263
- border-bottom: 1px solid #e0e0e0;
264
- z-index: 8;
265
- }
266
123
  @media (min-width: 600px) {
267
124
  .customize-widgets-header {
268
125
  margin-bottom: 44px;
@@ -271,6 +128,14 @@
271
128
  .customize-widgets-header.is-fixed-toolbar-active {
272
129
  margin-bottom: 0;
273
130
  }
131
+ .customize-widgets-header {
132
+ display: flex;
133
+ justify-content: flex-end;
134
+ margin: -15px -12px 0 -12px;
135
+ background: #f0f0f1;
136
+ border-bottom: 1px solid #e0e0e0;
137
+ z-index: 8;
138
+ }
274
139
 
275
140
  .customize-widgets-header-toolbar {
276
141
  display: flex;
@@ -425,14 +290,14 @@
425
290
  line-height: 1.4;
426
291
  }
427
292
 
293
+ #customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section.open {
294
+ overflow: unset;
295
+ }
428
296
  #customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section {
429
297
  min-height: 100%;
430
298
  background-color: #fff;
431
299
  padding-top: 12px !important;
432
300
  }
433
- #customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section.open {
434
- overflow: unset;
435
- }
436
301
  #customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section .customize-section-title {
437
302
  position: static !important;
438
303
  margin-top: -12px !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/customize-widgets",
3
- "version": "5.32.0",
3
+ "version": "5.32.1-next.ff1cebbba.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",
@@ -22,30 +22,37 @@
22
22
  },
23
23
  "main": "build/index.js",
24
24
  "module": "build-module/index.js",
25
+ "exports": {
26
+ ".": {
27
+ "import": "./build-module/index.js",
28
+ "default": "./build/index.js"
29
+ },
30
+ "./package.json": "./package.json"
31
+ },
25
32
  "react-native": "src/index",
26
33
  "wpScript": true,
27
34
  "dependencies": {
28
- "@babel/runtime": "7.25.7",
29
- "@wordpress/block-editor": "^15.5.0",
30
- "@wordpress/block-library": "^9.32.0",
31
- "@wordpress/blocks": "^15.5.0",
32
- "@wordpress/components": "^30.5.0",
33
- "@wordpress/compose": "^7.32.0",
34
- "@wordpress/core-data": "^7.32.0",
35
- "@wordpress/data": "^10.32.0",
36
- "@wordpress/dom": "^4.32.0",
37
- "@wordpress/element": "^6.32.0",
38
- "@wordpress/hooks": "^4.32.0",
39
- "@wordpress/i18n": "^6.5.0",
40
- "@wordpress/icons": "^10.32.0",
41
- "@wordpress/interface": "^9.17.0",
42
- "@wordpress/is-shallow-equal": "^5.32.0",
43
- "@wordpress/keyboard-shortcuts": "^5.32.0",
44
- "@wordpress/keycodes": "^4.32.0",
45
- "@wordpress/media-utils": "^5.32.0",
46
- "@wordpress/preferences": "^4.32.0",
47
- "@wordpress/private-apis": "^1.32.0",
48
- "@wordpress/widgets": "^4.32.0",
35
+ "@wordpress/base-styles": "^6.8.1-next.ff1cebbba.0",
36
+ "@wordpress/block-editor": "^15.5.1-next.ff1cebbba.0",
37
+ "@wordpress/block-library": "^9.33.1-next.ff1cebbba.0",
38
+ "@wordpress/blocks": "^15.5.1-next.ff1cebbba.0",
39
+ "@wordpress/components": "^30.6.1-next.ff1cebbba.0",
40
+ "@wordpress/compose": "^7.32.1-next.ff1cebbba.0",
41
+ "@wordpress/core-data": "^7.32.1-next.ff1cebbba.0",
42
+ "@wordpress/data": "^10.32.1-next.ff1cebbba.0",
43
+ "@wordpress/dom": "^4.32.1-next.ff1cebbba.0",
44
+ "@wordpress/element": "^6.32.1-next.ff1cebbba.0",
45
+ "@wordpress/hooks": "^4.32.1-next.ff1cebbba.0",
46
+ "@wordpress/i18n": "^6.5.1-next.ff1cebbba.0",
47
+ "@wordpress/icons": "^11.0.1-next.ff1cebbba.0",
48
+ "@wordpress/interface": "^9.17.1-next.ff1cebbba.0",
49
+ "@wordpress/is-shallow-equal": "^5.32.1-next.ff1cebbba.0",
50
+ "@wordpress/keyboard-shortcuts": "^5.32.1-next.ff1cebbba.0",
51
+ "@wordpress/keycodes": "^4.32.1-next.ff1cebbba.0",
52
+ "@wordpress/media-utils": "^5.32.1-next.ff1cebbba.0",
53
+ "@wordpress/preferences": "^4.32.1-next.ff1cebbba.0",
54
+ "@wordpress/private-apis": "^1.32.1-next.ff1cebbba.0",
55
+ "@wordpress/widgets": "^4.32.1-next.ff1cebbba.0",
49
56
  "clsx": "^2.1.1",
50
57
  "fast-deep-equal": "^3.1.3"
51
58
  },
@@ -56,5 +63,5 @@
56
63
  "publishConfig": {
57
64
  "access": "public"
58
65
  },
59
- "gitHead": "a030b4c0e0695239b942c7dc18511782b64f10ed"
66
+ "gitHead": "c5b659710aff01d40d2eb97b211eb2cec9c07d3b"
60
67
  }
@@ -1,3 +1,6 @@
1
+ @use "@wordpress/base-styles/colors" as *;
2
+ @use "@wordpress/base-styles/variables" as *;
3
+
1
4
  #customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector {
2
5
  background: $white;
3
6
  box-sizing: border-box;