@wordpress/customize-widgets 6.2.0 → 6.3.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 (147) hide show
  1. package/build/components/block-appender/index.cjs.map +1 -1
  2. package/build/components/customize-widgets/index.cjs +13 -11
  3. package/build/components/customize-widgets/index.cjs.map +1 -1
  4. package/build/components/customize-widgets/use-clear-selected-block.cjs.map +1 -1
  5. package/build/components/error-boundary/index.cjs.map +1 -1
  6. package/build/components/focus-control/index.cjs.map +1 -1
  7. package/build/components/focus-control/use-blocks-focus-control.cjs.map +1 -1
  8. package/build/components/header/index.cjs +23 -16
  9. package/build/components/header/index.cjs.map +1 -1
  10. package/build/components/inserter/use-inserter.cjs.map +1 -1
  11. package/build/components/keyboard-shortcut-help-modal/config.cjs +5 -0
  12. package/build/components/keyboard-shortcut-help-modal/config.cjs.map +1 -1
  13. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.cjs +9 -7
  14. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.cjs.map +1 -1
  15. package/build/components/keyboard-shortcut-help-modal/index.cjs +12 -11
  16. package/build/components/keyboard-shortcut-help-modal/index.cjs.map +1 -1
  17. package/build/components/keyboard-shortcut-help-modal/shortcut.cjs +34 -13
  18. package/build/components/keyboard-shortcut-help-modal/shortcut.cjs.map +1 -1
  19. package/build/components/keyboard-shortcuts/index.cjs.map +1 -1
  20. package/build/components/more-menu/index.cjs +14 -9
  21. package/build/components/more-menu/index.cjs.map +1 -1
  22. package/build/components/sidebar-block-editor/index.cjs +15 -13
  23. package/build/components/sidebar-block-editor/index.cjs.map +1 -1
  24. package/build/components/sidebar-block-editor/sidebar-adapter.cjs.map +1 -1
  25. package/build/components/sidebar-block-editor/sidebar-editor-provider.cjs +10 -8
  26. package/build/components/sidebar-block-editor/sidebar-editor-provider.cjs.map +1 -1
  27. package/build/components/sidebar-block-editor/use-sidebar-block-editor.cjs +9 -7
  28. package/build/components/sidebar-block-editor/use-sidebar-block-editor.cjs.map +1 -1
  29. package/build/controls/inserter-outer-section.cjs +2 -2
  30. package/build/controls/inserter-outer-section.cjs.map +1 -1
  31. package/build/controls/sidebar-control.cjs +10 -8
  32. package/build/controls/sidebar-control.cjs.map +1 -1
  33. package/build/controls/sidebar-section.cjs +8 -6
  34. package/build/controls/sidebar-section.cjs.map +1 -1
  35. package/build/index.cjs +12 -11
  36. package/build/index.cjs.map +1 -1
  37. package/build/store/index.cjs +11 -9
  38. package/build/store/index.cjs.map +1 -1
  39. package/build/utils.cjs.map +1 -1
  40. package/build-module/components/focus-control/use-blocks-focus-control.mjs.map +1 -1
  41. package/build-module/components/header/index.mjs +12 -7
  42. package/build-module/components/header/index.mjs.map +1 -1
  43. package/build-module/components/keyboard-shortcut-help-modal/config.mjs +5 -0
  44. package/build-module/components/keyboard-shortcut-help-modal/config.mjs.map +1 -1
  45. package/build-module/components/keyboard-shortcut-help-modal/index.mjs +1 -2
  46. package/build-module/components/keyboard-shortcut-help-modal/index.mjs.map +1 -1
  47. package/build-module/components/keyboard-shortcut-help-modal/shortcut.mjs +34 -13
  48. package/build-module/components/keyboard-shortcut-help-modal/shortcut.mjs.map +1 -1
  49. package/build-module/components/more-menu/index.mjs +6 -3
  50. package/build-module/components/more-menu/index.mjs.map +1 -1
  51. package/build-module/components/sidebar-block-editor/sidebar-adapter.mjs.map +1 -1
  52. package/build-module/controls/inserter-outer-section.mjs +3 -3
  53. package/build-module/controls/inserter-outer-section.mjs.map +1 -1
  54. package/build-module/index.mjs +1 -2
  55. package/build-module/index.mjs.map +1 -1
  56. package/build-module/utils.mjs.map +1 -1
  57. package/build-style/style-rtl.css +30 -29
  58. package/build-style/style.css +30 -29
  59. package/build-types/components/block-appender/index.d.ts +2 -0
  60. package/build-types/components/block-appender/index.d.ts.map +1 -0
  61. package/build-types/components/block-inspector-button/index.d.ts +7 -0
  62. package/build-types/components/block-inspector-button/index.d.ts.map +1 -0
  63. package/build-types/components/customize-widgets/index.d.ts +6 -0
  64. package/build-types/components/customize-widgets/index.d.ts.map +1 -0
  65. package/build-types/components/customize-widgets/use-clear-selected-block.d.ts +18 -0
  66. package/build-types/components/customize-widgets/use-clear-selected-block.d.ts.map +1 -0
  67. package/build-types/components/error-boundary/index.d.ts +14 -0
  68. package/build-types/components/error-boundary/index.d.ts.map +1 -0
  69. package/build-types/components/focus-control/index.d.ts +7 -0
  70. package/build-types/components/focus-control/index.d.ts.map +1 -0
  71. package/build-types/components/focus-control/use-blocks-focus-control.d.ts +2 -0
  72. package/build-types/components/focus-control/use-blocks-focus-control.d.ts.map +1 -0
  73. package/build-types/components/header/index.d.ts +9 -0
  74. package/build-types/components/header/index.d.ts.map +1 -0
  75. package/build-types/components/inserter/index.d.ts +5 -0
  76. package/build-types/components/inserter/index.d.ts.map +1 -0
  77. package/build-types/components/inserter/use-inserter.d.ts +2 -0
  78. package/build-types/components/inserter/use-inserter.d.ts.map +1 -0
  79. package/build-types/components/keyboard-shortcut-help-modal/config.d.ts +3 -0
  80. package/build-types/components/keyboard-shortcut-help-modal/config.d.ts.map +1 -0
  81. package/build-types/components/keyboard-shortcut-help-modal/dynamic-shortcut.d.ts +5 -0
  82. package/build-types/components/keyboard-shortcut-help-modal/dynamic-shortcut.d.ts.map +1 -0
  83. package/build-types/components/keyboard-shortcut-help-modal/index.d.ts +5 -0
  84. package/build-types/components/keyboard-shortcut-help-modal/index.d.ts.map +1 -0
  85. package/build-types/components/keyboard-shortcut-help-modal/shortcut.d.ts +25 -0
  86. package/build-types/components/keyboard-shortcut-help-modal/shortcut.d.ts.map +1 -0
  87. package/build-types/components/keyboard-shortcuts/index.d.ts +11 -0
  88. package/build-types/components/keyboard-shortcuts/index.d.ts.map +1 -0
  89. package/build-types/components/more-menu/index.d.ts +2 -0
  90. package/build-types/components/more-menu/index.d.ts.map +1 -0
  91. package/build-types/components/sidebar-block-editor/index.d.ts +7 -0
  92. package/build-types/components/sidebar-block-editor/index.d.ts.map +1 -0
  93. package/build-types/components/sidebar-block-editor/sidebar-adapter.d.ts +37 -0
  94. package/build-types/components/sidebar-block-editor/sidebar-adapter.d.ts.map +1 -0
  95. package/build-types/components/sidebar-block-editor/sidebar-editor-provider.d.ts +6 -0
  96. package/build-types/components/sidebar-block-editor/sidebar-editor-provider.d.ts.map +1 -0
  97. package/build-types/components/sidebar-block-editor/use-sidebar-block-editor.d.ts +2 -0
  98. package/build-types/components/sidebar-block-editor/use-sidebar-block-editor.d.ts.map +1 -0
  99. package/build-types/components/sidebar-controls/index.d.ts +9 -0
  100. package/build-types/components/sidebar-controls/index.d.ts.map +1 -0
  101. package/build-types/components/welcome-guide/index.d.ts +4 -0
  102. package/build-types/components/welcome-guide/index.d.ts.map +1 -0
  103. package/build-types/controls/inserter-outer-section.d.ts +9 -0
  104. package/build-types/controls/inserter-outer-section.d.ts.map +1 -0
  105. package/build-types/controls/inspector-section.d.ts +17 -0
  106. package/build-types/controls/inspector-section.d.ts.map +1 -0
  107. package/build-types/controls/sidebar-control.d.ts +19 -0
  108. package/build-types/controls/sidebar-control.d.ts.map +1 -0
  109. package/build-types/controls/sidebar-section.d.ts +22 -0
  110. package/build-types/controls/sidebar-section.d.ts.map +1 -0
  111. package/build-types/filters/index.d.ts +4 -0
  112. package/build-types/filters/index.d.ts.map +1 -0
  113. package/build-types/filters/move-to-sidebar.d.ts +2 -0
  114. package/build-types/filters/move-to-sidebar.d.ts.map +1 -0
  115. package/build-types/filters/replace-media-upload.d.ts +2 -0
  116. package/build-types/filters/replace-media-upload.d.ts.map +1 -0
  117. package/build-types/filters/wide-widget-display.d.ts +2 -0
  118. package/build-types/filters/wide-widget-display.d.ts.map +1 -0
  119. package/build-types/index.d.ts +10 -0
  120. package/build-types/index.d.ts.map +1 -0
  121. package/build-types/lock-unlock.d.ts +2 -0
  122. package/build-types/lock-unlock.d.ts.map +1 -0
  123. package/build-types/store/actions.d.ts +39 -0
  124. package/build-types/store/actions.d.ts.map +1 -0
  125. package/build-types/store/constants.d.ts +5 -0
  126. package/build-types/store/constants.d.ts.map +1 -0
  127. package/build-types/store/index.d.ts +9 -0
  128. package/build-types/store/index.d.ts.map +1 -0
  129. package/build-types/store/reducer.d.ts +14 -0
  130. package/build-types/store/reducer.d.ts.map +1 -0
  131. package/build-types/store/selectors.d.ts +35 -0
  132. package/build-types/store/selectors.d.ts.map +1 -0
  133. package/build-types/utils.d.ts +32 -0
  134. package/build-types/utils.d.ts.map +1 -0
  135. package/package.json +28 -28
  136. package/src/components/header/index.jsx +1 -1
  137. package/src/components/header/style.scss +12 -9
  138. package/src/components/header/test/index.jsdom.test.tsx +5 -0
  139. package/src/components/inserter/style.scss +6 -4
  140. package/src/components/keyboard-shortcut-help-modal/config.js +3 -0
  141. package/src/components/keyboard-shortcut-help-modal/index.jsx +0 -2
  142. package/src/components/keyboard-shortcut-help-modal/shortcut.jsx +38 -25
  143. package/src/components/more-menu/index.jsx +3 -7
  144. package/src/components/sidebar-block-editor/style.scss +9 -0
  145. package/src/controls/inserter-outer-section.js +3 -3
  146. package/src/index.jsx +1 -4
  147. package/src/utils.js +0 -1
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"utils.mjs","names":[],"sources":["../src/utils.js"],"sourcesContent":["import { 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":";;;;;;;;;AASA,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"}
@@ -113,12 +113,12 @@
113
113
  }
114
114
 
115
115
  body.admin-color-fresh {
116
- --wp-admin-theme-color: #007cba;
117
- --wp-admin-theme-color--rgb: 0, 124, 186;
118
- --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5);
119
- --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5;
120
- --wp-admin-theme-color-darker-20: #005a87;
121
- --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
116
+ --wp-admin-theme-color: #006daa;
117
+ --wp-admin-theme-color--rgb: 0, 109, 170;
118
+ --wp-admin-theme-color-darker-10: rgb(0, 92.65, 144.5);
119
+ --wp-admin-theme-color-darker-10--rgb: 0, 92.65, 144.5;
120
+ --wp-admin-theme-color-darker-20: rgb(0, 76.3, 119);
121
+ --wp-admin-theme-color-darker-20--rgb: 0, 76.3, 119;
122
122
  --wp-admin-border-width-focus: 2px;
123
123
  }
124
124
  @media (min-resolution: 192dpi) {
@@ -172,7 +172,9 @@ body.admin-color-fresh {
172
172
  }
173
173
  .customize-widgets-header {
174
174
  display: flex;
175
- justify-content: flex-end;
175
+ align-items: center;
176
+ gap: 8px;
177
+ padding-inline-end: 12px;
176
178
  margin: -15px -12px 0 -12px;
177
179
  background: var(--wpds-color-background-surface-neutral, #fcfcfc);
178
180
  border-bottom: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
@@ -181,44 +183,36 @@ body.admin-color-fresh {
181
183
 
182
184
  .customize-widgets-header-toolbar {
183
185
  display: flex;
186
+ flex: 1;
184
187
  border: none;
185
- width: 100%;
186
188
  align-items: center;
187
189
  gap: 8px;
188
- padding: 0 12px;
190
+ padding-inline-start: 12px;
189
191
  }
190
- .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon,
191
- .customize-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon {
192
+ .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon {
192
193
  height: 32px;
193
194
  min-width: 32px;
194
195
  padding: 4px;
195
196
  }
196
- .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed,
197
- .customize-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed {
198
- background: var(--wpds-color-background-interactive-neutral-strong-active, #1e1e1e);
197
+ .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed {
198
+ background: var(--wpds-color-background-interactive-neutral-strong-active, #2e2e2e);
199
199
  }
200
- .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed:is(:disabled, [aria-disabled=true]),
201
- .customize-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed:is(:disabled, [aria-disabled=true]) {
200
+ .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed:is(:disabled, [aria-disabled=true]) {
202
201
  background: var(--wpds-color-background-interactive-neutral-strong-disabled, #e5e5e5);
203
202
  }
204
203
  @media (forced-colors: active) {
205
- .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed,
206
- .customize-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed {
207
- background: SelectedItem !important;
204
+ .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed {
205
+ background: Highlight !important;
208
206
  }
209
- .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed:disabled, .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed[aria-disabled=true],
210
- .customize-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed:disabled,
211
- .customize-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed[aria-disabled=true] {
207
+ .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed:disabled, .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed[aria-disabled=true] {
212
208
  background: GrayText !important;
213
209
  }
214
210
  }
215
- .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon:focus:not(:active),
216
- .customize-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon:focus:not(:active) {
211
+ .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon:focus:not(:active) {
217
212
  outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)));
218
213
  outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
219
214
  }
220
- .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon::before,
221
- .customize-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon::before {
215
+ .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon::before {
222
216
  display: none;
223
217
  }
224
218
  .customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon {
@@ -247,7 +241,8 @@ body.admin-color-fresh {
247
241
  }
248
242
 
249
243
  .customize-widgets-layout__inserter-panel {
250
- background: #fff;
244
+ background: var(--wpds-color-background-surface-neutral-strong, #fff);
245
+ color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
251
246
  }
252
247
 
253
248
  .customize-widgets-layout__inserter-panel-content .block-editor-inserter__menu.has-single-tab .block-editor-tabbed-sidebar__tablist-and-close-button {
@@ -261,14 +256,15 @@ body.admin-color-fresh {
261
256
  padding: 16px;
262
257
  height: 46px;
263
258
  box-sizing: border-box;
264
- border-bottom: 1px solid #ddd;
259
+ border-bottom: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
265
260
  }
266
261
  .customize-widgets-layout__inserter-panel-header .customize-widgets-layout__inserter-panel-header-title {
267
262
  margin: 0;
263
+ color: inherit;
268
264
  }
269
265
 
270
266
  .block-editor-inserter__quick-inserter .block-editor-inserter__panel-content {
271
- background: #fff;
267
+ background: var(--wpds-color-background-surface-neutral-strong, #fff);
272
268
  }
273
269
 
274
270
  .customize-widgets-keyboard-shortcut-help-modal__section {
@@ -322,6 +318,11 @@ body.admin-color-fresh {
322
318
  z-index: 99998;
323
319
  }
324
320
 
321
+ .customize-widgets-header + .block-editor-block-contextual-toolbar {
322
+ margin-inline: -12px;
323
+ width: auto;
324
+ }
325
+
325
326
  .customize-control-sidebar_block_editor .block-editor-block-list__block-popover {
326
327
  position: fixed !important;
327
328
  z-index: 7;
@@ -113,12 +113,12 @@
113
113
  }
114
114
 
115
115
  body.admin-color-fresh {
116
- --wp-admin-theme-color: #007cba;
117
- --wp-admin-theme-color--rgb: 0, 124, 186;
118
- --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5);
119
- --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5;
120
- --wp-admin-theme-color-darker-20: #005a87;
121
- --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
116
+ --wp-admin-theme-color: #006daa;
117
+ --wp-admin-theme-color--rgb: 0, 109, 170;
118
+ --wp-admin-theme-color-darker-10: rgb(0, 92.65, 144.5);
119
+ --wp-admin-theme-color-darker-10--rgb: 0, 92.65, 144.5;
120
+ --wp-admin-theme-color-darker-20: rgb(0, 76.3, 119);
121
+ --wp-admin-theme-color-darker-20--rgb: 0, 76.3, 119;
122
122
  --wp-admin-border-width-focus: 2px;
123
123
  }
124
124
  @media (min-resolution: 192dpi) {
@@ -172,7 +172,9 @@ body.admin-color-fresh {
172
172
  }
173
173
  .customize-widgets-header {
174
174
  display: flex;
175
- justify-content: flex-end;
175
+ align-items: center;
176
+ gap: 8px;
177
+ padding-inline-end: 12px;
176
178
  margin: -15px -12px 0 -12px;
177
179
  background: var(--wpds-color-background-surface-neutral, #fcfcfc);
178
180
  border-bottom: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
@@ -181,44 +183,36 @@ body.admin-color-fresh {
181
183
 
182
184
  .customize-widgets-header-toolbar {
183
185
  display: flex;
186
+ flex: 1;
184
187
  border: none;
185
- width: 100%;
186
188
  align-items: center;
187
189
  gap: 8px;
188
- padding: 0 12px;
190
+ padding-inline-start: 12px;
189
191
  }
190
- .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon,
191
- .customize-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon {
192
+ .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon {
192
193
  height: 32px;
193
194
  min-width: 32px;
194
195
  padding: 4px;
195
196
  }
196
- .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed,
197
- .customize-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed {
198
- background: var(--wpds-color-background-interactive-neutral-strong-active, #1e1e1e);
197
+ .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed {
198
+ background: var(--wpds-color-background-interactive-neutral-strong-active, #2e2e2e);
199
199
  }
200
- .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed:is(:disabled, [aria-disabled=true]),
201
- .customize-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed:is(:disabled, [aria-disabled=true]) {
200
+ .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed:is(:disabled, [aria-disabled=true]) {
202
201
  background: var(--wpds-color-background-interactive-neutral-strong-disabled, #e5e5e5);
203
202
  }
204
203
  @media (forced-colors: active) {
205
- .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed,
206
- .customize-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed {
207
- background: SelectedItem !important;
204
+ .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed {
205
+ background: Highlight !important;
208
206
  }
209
- .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed:disabled, .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed[aria-disabled=true],
210
- .customize-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed:disabled,
211
- .customize-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed[aria-disabled=true] {
207
+ .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed:disabled, .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed[aria-disabled=true] {
212
208
  background: GrayText !important;
213
209
  }
214
210
  }
215
- .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon:focus:not(:active),
216
- .customize-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon:focus:not(:active) {
211
+ .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon:focus:not(:active) {
217
212
  outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)));
218
213
  outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
219
214
  }
220
- .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon::before,
221
- .customize-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon::before {
215
+ .customize-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon::before {
222
216
  display: none;
223
217
  }
224
218
  .customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon {
@@ -247,7 +241,8 @@ body.admin-color-fresh {
247
241
  }
248
242
 
249
243
  .customize-widgets-layout__inserter-panel {
250
- background: #fff;
244
+ background: var(--wpds-color-background-surface-neutral-strong, #fff);
245
+ color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
251
246
  }
252
247
 
253
248
  .customize-widgets-layout__inserter-panel-content .block-editor-inserter__menu.has-single-tab .block-editor-tabbed-sidebar__tablist-and-close-button {
@@ -261,14 +256,15 @@ body.admin-color-fresh {
261
256
  padding: 16px;
262
257
  height: 46px;
263
258
  box-sizing: border-box;
264
- border-bottom: 1px solid #ddd;
259
+ border-bottom: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
265
260
  }
266
261
  .customize-widgets-layout__inserter-panel-header .customize-widgets-layout__inserter-panel-header-title {
267
262
  margin: 0;
263
+ color: inherit;
268
264
  }
269
265
 
270
266
  .block-editor-inserter__quick-inserter .block-editor-inserter__panel-content {
271
- background: #fff;
267
+ background: var(--wpds-color-background-surface-neutral-strong, #fff);
272
268
  }
273
269
 
274
270
  .customize-widgets-keyboard-shortcut-help-modal__section {
@@ -322,6 +318,11 @@ body.admin-color-fresh {
322
318
  z-index: 99998;
323
319
  }
324
320
 
321
+ .customize-widgets-header + .block-editor-block-contextual-toolbar {
322
+ margin-inline: -12px;
323
+ width: auto;
324
+ }
325
+
325
326
  .customize-control-sidebar_block_editor .block-editor-block-list__block-popover {
326
327
  position: fixed !important;
327
328
  z-index: 7;
@@ -0,0 +1,2 @@
1
+ export default function BlockAppender(props: any): import("react").JSX.Element;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/block-appender/index.jsx"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAE,KAAK,KAAA,+BAsB3C"}
@@ -0,0 +1,7 @@
1
+ declare function BlockInspectorButton({ inspector, closeMenu, ...props }: {
2
+ [x: string]: any;
3
+ closeMenu: any;
4
+ inspector: any;
5
+ }): import("react").JSX.Element;
6
+ export default BlockInspectorButton;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/block-inspector-button/index.jsx"],"names":[],"mappings":"AAMA,iBAAS,oBAAoB,CAAE,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE;;;;CAAA,+BA0BhE;eAEc,oBAAoB"}
@@ -0,0 +1,6 @@
1
+ export default function CustomizeWidgets({ api, sidebarControls, blockEditorSettings, }: {
2
+ api: any;
3
+ blockEditorSettings: any;
4
+ sidebarControls: any;
5
+ }): import("react").JSX.Element;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/customize-widgets/index.jsx"],"names":[],"mappings":"AAiBA,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAE,EACzC,GAAG,EACH,eAAe,EACf,mBAAmB,GACnB;;;;CAAA,+BAsEA"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * We can't just use <BlockSelectionClearer> because the customizer has
3
+ * many root nodes rather than just one in the post editor.
4
+ * We need to listen to the focus events in all those roots, and also in
5
+ * the preview iframe.
6
+ * This hook will clear the selected block when focusing outside the editor,
7
+ * with a few exceptions:
8
+ * 1. Focusing on popovers, including `@wordpress/ui` overlays.
9
+ * 2. Focusing on the inspector.
10
+ * 3. Focusing on any modals/dialogs.
11
+ * These cases are normally triggered by user interactions from the editor,
12
+ * not by explicitly focusing outside the editor, hence no need for clearing.
13
+ *
14
+ * @param {Object} sidebarControl The sidebar control instance.
15
+ * @param {Object} popoverRef The ref object of the popover node container.
16
+ */
17
+ export default function useClearSelectedBlock(sidebarControl: Object, popoverRef: Object): void;
18
+ //# sourceMappingURL=use-clear-selected-block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-clear-selected-block.d.ts","sourceRoot":"","sources":["../../../src/components/customize-widgets/use-clear-selected-block.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAE,cAAc,EAHlD,MAGkD,EAAE,UAAU,EAF9D,MAE8D,QA0DxE"}
@@ -0,0 +1,14 @@
1
+ import { Component } from '@wordpress/element';
2
+ export default class ErrorBoundary extends Component {
3
+ state: {
4
+ error: null;
5
+ componentStack: null;
6
+ };
7
+ constructor();
8
+ componentDidCatch(error: any, errorInfo: any): void;
9
+ static getDerivedStateFromError(error: any): {
10
+ error: any;
11
+ };
12
+ render(): any;
13
+ }
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/error-boundary/index.jsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AA6H/C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAS;IAI7C,KAAK;;;;IAHX,cAOC;IAED,iBAAiB,CAAE,KAAK,KAAA,EAAE,SAAS,KAAA,QAKlC;IAED,MAAM,CAAC,wBAAwB,CAAE,KAAK,KAAA;;MAErC;IAED,MAAM,QAoCL;CACD"}
@@ -0,0 +1,7 @@
1
+ export default function FocusControl({ api, sidebarControls, children }: {
2
+ api: any;
3
+ children: any;
4
+ sidebarControls: any;
5
+ }): import("react").JSX.Element;
6
+ export declare const useFocusControl: () => any;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/focus-control/index.jsx"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,EAAE,GAAG,EAAE,eAAe,EAAE,QAAQ,EAAE;;;;CAAA,+BAoEvE;AAED,eAAO,MAAM,eAAe,WAA0C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export default function useBlocksFocusControl(blocks: any): void;
2
+ //# sourceMappingURL=use-blocks-focus-control.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-blocks-focus-control.d.ts","sourceRoot":"","sources":["../../../src/components/focus-control/use-blocks-focus-control.js"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAE,MAAM,KAAA,QA6BpD"}
@@ -0,0 +1,9 @@
1
+ declare function Header({ sidebar, inserter, isInserterOpened, setIsInserterOpened, isFixedToolbarActive, }: {
2
+ inserter: any;
3
+ isFixedToolbarActive: any;
4
+ isInserterOpened: any;
5
+ setIsInserterOpened: any;
6
+ sidebar: any;
7
+ }): import("react").JSX.Element;
8
+ export default Header;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.jsx"],"names":[],"mappings":"AAUA,iBAAS,MAAM,CAAE,EAChB,OAAO,EACP,QAAQ,EACR,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,GACpB;;;;;;CAAA,+BAiFA;eAEc,MAAM"}
@@ -0,0 +1,5 @@
1
+ declare function Inserter({ setIsOpened }: {
2
+ setIsOpened: any;
3
+ }): import("react").JSX.Element;
4
+ export default Inserter;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/inserter/index.jsx"],"names":[],"mappings":"AAQA,iBAAS,QAAQ,CAAE,EAAE,WAAW,EAAE;;CAAA,+BA0CjC;eAEc,QAAQ"}
@@ -0,0 +1,2 @@
1
+ export default function useInserter(inserter: any): any[];
2
+ //# sourceMappingURL=use-inserter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-inserter.d.ts","sourceRoot":"","sources":["../../../src/components/inserter/use-inserter.js"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,QAAQ,KAAA,SA+B5C"}
@@ -0,0 +1,3 @@
1
+ /** @type {Array<import('react').ComponentProps<typeof import('./shortcut').default>>} */
2
+ export declare const textFormattingShortcuts: Array<import('react').ComponentProps<typeof import('./shortcut').default>>;
3
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/components/keyboard-shortcut-help-modal/config.js"],"names":[],"mappings":"AAEA,yFAAyF;AACzF,eAAO,MAAM,uBAAuB,EADzB,KAAK,CAAC,OAAO,OAAO,EAAE,cAAc,CAAC,cAAc,YAAY,EAAE,OAAO,CAAC,CA2DnF,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare function DynamicShortcut({ name }: {
2
+ name: any;
3
+ }): import("react").JSX.Element | null;
4
+ export default DynamicShortcut;
5
+ //# sourceMappingURL=dynamic-shortcut.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dynamic-shortcut.d.ts","sourceRoot":"","sources":["../../../src/components/keyboard-shortcut-help-modal/dynamic-shortcut.jsx"],"names":[],"mappings":"AAIA,iBAAS,eAAe,CAAE,EAAE,IAAI,EAAE;;CAAA,sCA6BjC;eAEc,eAAe"}
@@ -0,0 +1,5 @@
1
+ export default function KeyboardShortcutHelpModal({ isModalActive, toggleModal, }: {
2
+ isModalActive: any;
3
+ toggleModal: any;
4
+ }): import("react").JSX.Element | null;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/keyboard-shortcut-help-modal/index.jsx"],"names":[],"mappings":"AA6EA,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAE,EAClD,aAAa,EACb,WAAW,GACX;;;CAAA,sCA2DA"}
@@ -0,0 +1,25 @@
1
+ export type ShortcutKeyCombination = {
2
+ /**
3
+ * Shortcut key.
4
+ */
5
+ character: string;
6
+ /**
7
+ * Optional shortcut modifier.
8
+ */
9
+ modifier?: import('@wordpress/keycodes').WPKeycodeModifier | null;
10
+ };
11
+ /**
12
+ * @param {Object} props Component props.
13
+ * @param {string} props.description Description of the shortcut action.
14
+ * @param {ShortcutKeyCombination} props.keyCombination Primary shortcut.
15
+ * @param {ShortcutKeyCombination[]} [props.aliases] Alternative shortcuts.
16
+ * @param {string} [props.ariaLabel] Custom readable shortcut label.
17
+ */
18
+ declare function Shortcut({ description, keyCombination, aliases, ariaLabel }: {
19
+ description: string;
20
+ keyCombination: ShortcutKeyCombination;
21
+ aliases?: ShortcutKeyCombination[];
22
+ ariaLabel?: string;
23
+ }): import("react").JSX.Element;
24
+ export default Shortcut;
25
+ //# sourceMappingURL=shortcut.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shortcut.d.ts","sourceRoot":"","sources":["../../../src/components/keyboard-shortcut-help-modal/shortcut.jsx"],"names":[],"mappings":"AAKG,YAAkB,sBAAsB,GACxC;;;;IAAmE,SAAS,EAAjE,MAAM,CACjB;;;;IAAoE,QAAQ,AAA5E,CACF,EADa,OAAO,qBAAqB,EAAE,iBAAiB,GAAG,IAAI,CACnE;CAAA,CAAA;AAuCD;;;;;;GAMG;AACH,iBAAS,QAAQ,CAAE,EAAE,WAAW,EAAE,cAAc,EAAE,OAAY,EAAE,SAAS,EAAE,EALxE;IAAwC,WAAW,EAA3C,MAAM,CACd;IAAwC,cAAc,EAA9C,sBAAsB,CAC9B;IAAyC,OAAO,AAAhD,CACA,EADQ,sBAAsB,EAAE,CAChC;IAAyC,SAAS,AAAlD,CACF,EADU,MAAM,CAChB;CAC0E,+BAqB1E;eAEc,QAAQ"}
@@ -0,0 +1,11 @@
1
+ declare function KeyboardShortcuts({ undo, redo, save }: {
2
+ redo: any;
3
+ save: any;
4
+ undo: any;
5
+ }): null;
6
+ declare namespace KeyboardShortcuts {
7
+ export { KeyboardShortcutsRegister as Register };
8
+ }
9
+ declare function KeyboardShortcutsRegister(): null;
10
+ export default KeyboardShortcuts;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/keyboard-shortcuts/index.js"],"names":[],"mappings":"AAaA,iBAAS,iBAAiB,CAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;;;;CAAA,QAuB/C;kBAvBQ,iBAAiB;aAmFG,yBAAyB;;AA1DtD,iBAAS,yBAAyB,SAwDjC;eAGc,iBAAiB"}
@@ -0,0 +1,2 @@
1
+ export default function MoreMenu(): import("react").JSX.Element;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/more-menu/index.jsx"],"names":[],"mappings":"AAcA,MAAM,CAAC,OAAO,UAAU,QAAQ,gCA8G/B"}
@@ -0,0 +1,7 @@
1
+ export default function SidebarBlockEditor({ blockEditorSettings, sidebar, inserter, inspector, }: {
2
+ blockEditorSettings: any;
3
+ inserter: any;
4
+ inspector: any;
5
+ sidebar: any;
6
+ }): import("react").JSX.Element;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar-block-editor/index.jsx"],"names":[],"mappings":"AA0BA,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,EAC3C,mBAAmB,EACnB,OAAO,EACP,QAAQ,EACR,SAAS,GACT;;;;;CAAA,+BAkHA"}
@@ -0,0 +1,37 @@
1
+ export default class SidebarAdapter {
2
+ setting: any;
3
+ api: any;
4
+ locked: boolean;
5
+ widgetsCache: WeakMap<WeakKey, any>;
6
+ subscribers: Set<any>;
7
+ history: any[];
8
+ historyIndex: number;
9
+ historySubscribers: Set<any>;
10
+ _debounceSetHistory: Function;
11
+ constructor(setting: any, api: any);
12
+ subscribe(callback: any): () => void;
13
+ getWidgets(): any;
14
+ _emit(...args: any[]): void;
15
+ _getWidgetIds(): any;
16
+ _pushHistory(): void;
17
+ _replaceHistory(): void;
18
+ _handleSettingChange(): void;
19
+ _handleAllSettingsChange(setting: any): void;
20
+ _createWidget(widget: any): string;
21
+ _removeWidget(widget: any): void;
22
+ _updateWidget(widget: any): any;
23
+ getWidget(widgetId: any): any;
24
+ _updateWidgets(nextWidgets: any): any[];
25
+ setWidgets(nextWidgets: any): any[];
26
+ /**
27
+ * Undo/Redo related features
28
+ */
29
+ hasUndo(): boolean;
30
+ hasRedo(): boolean;
31
+ _seek(historyIndex: any): void;
32
+ undo(): void;
33
+ redo(): void;
34
+ subscribeHistory(listener: any): () => void;
35
+ save(): void;
36
+ }
37
+ //# sourceMappingURL=sidebar-adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-adapter.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar-block-editor/sidebar-adapter.js"],"names":[],"mappings":"AA6DA,MAAM,CAAC,OAAO,OAAO,cAAc;IAE5B,OAAO;IACP,GAAG;IAEH,MAAM;IACN,YAAY;IACZ,WAAW;IAEX,OAAO;IAKP,YAAY;IACZ,kBAAkB;IAElB,mBAAmB;IAhBzB,YAAa,OAAO,KAAA,EAAE,GAAG,KAAA,EA4BxB;IAED,SAAS,CAAE,QAAQ,KAAA,cAMlB;IAED,UAAU,QAET;IAED,KAAK,CAAE,GAAG,IAAI,OAAA,QAIb;IAED,aAAa,QAEZ;IAED,YAAY,SAUX;IAED,eAAe,SAId;IAED,oBAAoB,SAUnB;IAED,wBAAwB,CAAE,OAAO,KAAA,QAmBhC;IAED,aAAa,CAAE,MAAM,KAAA,UAqCpB;IAED,aAAa,CAAE,MAAM,KAAA,QAUpB;IAED,aAAa,CAAE,MAAM,KAAA,OAsBpB;IAED,SAAS,CAAE,QAAQ,KAAA,OA6BlB;IAED,cAAc,CAAE,WAAW,KAAA,SA6B1B;IAED,UAAU,CAAE,WAAW,KAAA,SAMtB;IAED;;OAEG;IACH,OAAO,YAEN;IAED,OAAO,YAEN;IAED,KAAK,CAAE,YAAY,KAAA,QAalB;IAED,IAAI,SAMH;IAED,IAAI,SAMH;IAED,gBAAgB,CAAE,QAAQ,KAAA,cAMzB;IAED,IAAI,SAEH;CACD"}
@@ -0,0 +1,6 @@
1
+ export default function SidebarEditorProvider({ sidebar, settings, children, }: {
2
+ children: any;
3
+ settings: any;
4
+ sidebar: any;
5
+ }): import("react").JSX.Element;
6
+ //# sourceMappingURL=sidebar-editor-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-editor-provider.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar-block-editor/sidebar-editor-provider.jsx"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAE,EAC9C,OAAO,EACP,QAAQ,EACR,QAAQ,GACR;;;;CAAA,+BAgBA"}
@@ -0,0 +1,2 @@
1
+ export default function useSidebarBlockEditor(sidebar: any): any[];
2
+ //# sourceMappingURL=use-sidebar-block-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-sidebar-block-editor.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar-block-editor/use-sidebar-block-editor.js"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAE,OAAO,KAAA,SA+GrD"}
@@ -0,0 +1,9 @@
1
+ export declare const SidebarControlsContext: import("react").Context<any>;
2
+ export default function SidebarControls({ sidebarControls, activeSidebarControl, children, }: {
3
+ activeSidebarControl: any;
4
+ children: any;
5
+ sidebarControls: any;
6
+ }): import("react").JSX.Element;
7
+ export declare function useSidebarControls(): any;
8
+ export declare function useActiveSidebarControl(): any;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar-controls/index.jsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,8BAAkB,CAAC;AAGtD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAE,EACxC,eAAe,EACf,oBAAoB,EACpB,QAAQ,GACR;;;;CAAA,+BAcA;AAED,wBAAgB,kBAAkB,QAIjC;AAED,wBAAgB,uBAAuB,QAItC"}
@@ -0,0 +1,4 @@
1
+ export default function WelcomeGuide({ sidebar }: {
2
+ sidebar: any;
3
+ }): import("react").JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/welcome-guide/index.jsx"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,EAAE,OAAO,EAAE;;CAAA,+BA4EhD"}
@@ -0,0 +1,9 @@
1
+ export default function getInserterOuterSection(): {
2
+ new (...args: any[]): {
3
+ activeElementBeforeExpanded: any;
4
+ isFromInternalAction: boolean;
5
+ open(): void;
6
+ close(): void;
7
+ };
8
+ };
9
+ //# sourceMappingURL=inserter-outer-section.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inserter-outer-section.d.ts","sourceRoot":"","sources":["../../src/controls/inserter-outer-section.js"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,uBAAuB;;;;;;;EA+H9C"}
@@ -0,0 +1,17 @@
1
+ export default function getInspectorSection(): {
2
+ new (id: any, options: any): {
3
+ parentSection: any;
4
+ returnFocusWhenClose: any;
5
+ _isOpen: boolean;
6
+ get isOpen(): boolean;
7
+ set isOpen(value: boolean);
8
+ ready(): void;
9
+ isContextuallyActive(): boolean;
10
+ onChangeExpanded(expanded: any, args: any): void;
11
+ open({ returnFocusWhenClose }?: {}): void;
12
+ close(): void;
13
+ collapse(options: any): void;
14
+ triggerActiveCallbacks(): void;
15
+ };
16
+ };
17
+ //# sourceMappingURL=inspector-section.d.ts.map