174 __webpack_require__.r(actions_namespaceObject); |
172 __webpack_require__.r(actions_namespaceObject); |
175 __webpack_require__.d(actions_namespaceObject, { |
173 __webpack_require__.d(actions_namespaceObject, { |
176 setIsInserterOpened: () => (setIsInserterOpened) |
174 setIsInserterOpened: () => (setIsInserterOpened) |
177 }); |
175 }); |
178 |
176 |
179 ;// CONCATENATED MODULE: external ["wp","element"] |
177 ;// external ["wp","element"] |
180 const external_wp_element_namespaceObject = window["wp"]["element"]; |
178 const external_wp_element_namespaceObject = window["wp"]["element"]; |
181 ;// CONCATENATED MODULE: external ["wp","blockLibrary"] |
179 ;// external ["wp","blockLibrary"] |
182 const external_wp_blockLibrary_namespaceObject = window["wp"]["blockLibrary"]; |
180 const external_wp_blockLibrary_namespaceObject = window["wp"]["blockLibrary"]; |
183 ;// CONCATENATED MODULE: external ["wp","widgets"] |
181 ;// external ["wp","widgets"] |
184 const external_wp_widgets_namespaceObject = window["wp"]["widgets"]; |
182 const external_wp_widgets_namespaceObject = window["wp"]["widgets"]; |
185 ;// CONCATENATED MODULE: external ["wp","blocks"] |
183 ;// external ["wp","blocks"] |
186 const external_wp_blocks_namespaceObject = window["wp"]["blocks"]; |
184 const external_wp_blocks_namespaceObject = window["wp"]["blocks"]; |
187 ;// CONCATENATED MODULE: external ["wp","data"] |
185 ;// external ["wp","data"] |
188 const external_wp_data_namespaceObject = window["wp"]["data"]; |
186 const external_wp_data_namespaceObject = window["wp"]["data"]; |
189 ;// CONCATENATED MODULE: external ["wp","preferences"] |
187 ;// external ["wp","preferences"] |
190 const external_wp_preferences_namespaceObject = window["wp"]["preferences"]; |
188 const external_wp_preferences_namespaceObject = window["wp"]["preferences"]; |
191 ;// CONCATENATED MODULE: external ["wp","components"] |
189 ;// external ["wp","components"] |
192 const external_wp_components_namespaceObject = window["wp"]["components"]; |
190 const external_wp_components_namespaceObject = window["wp"]["components"]; |
193 ;// CONCATENATED MODULE: external ["wp","i18n"] |
191 ;// external ["wp","i18n"] |
194 const external_wp_i18n_namespaceObject = window["wp"]["i18n"]; |
192 const external_wp_i18n_namespaceObject = window["wp"]["i18n"]; |
195 ;// CONCATENATED MODULE: external ["wp","blockEditor"] |
193 ;// external ["wp","blockEditor"] |
196 const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"]; |
194 const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"]; |
197 ;// CONCATENATED MODULE: external ["wp","compose"] |
195 ;// external ["wp","compose"] |
198 const external_wp_compose_namespaceObject = window["wp"]["compose"]; |
196 const external_wp_compose_namespaceObject = window["wp"]["compose"]; |
199 ;// CONCATENATED MODULE: external ["wp","hooks"] |
197 ;// external ["wp","hooks"] |
200 const external_wp_hooks_namespaceObject = window["wp"]["hooks"]; |
198 const external_wp_hooks_namespaceObject = window["wp"]["hooks"]; |
201 ;// CONCATENATED MODULE: external "ReactJSXRuntime" |
199 ;// external "ReactJSXRuntime" |
202 const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"]; |
200 const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"]; |
203 ;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/error-boundary/index.js |
201 ;// ./node_modules/@wordpress/customize-widgets/build-module/components/error-boundary/index.js |
204 /** |
202 /** |
205 * WordPress dependencies |
203 * WordPress dependencies |
206 */ |
204 */ |
207 |
205 |
208 |
206 |
251 children: (0,external_wp_i18n_namespaceObject.__)('The editor has encountered an unexpected error.') |
250 children: (0,external_wp_i18n_namespaceObject.__)('The editor has encountered an unexpected error.') |
252 }); |
251 }); |
253 } |
252 } |
254 } |
253 } |
255 |
254 |
256 ;// CONCATENATED MODULE: external ["wp","coreData"] |
255 ;// external ["wp","coreData"] |
257 const external_wp_coreData_namespaceObject = window["wp"]["coreData"]; |
256 const external_wp_coreData_namespaceObject = window["wp"]["coreData"]; |
258 ;// CONCATENATED MODULE: external ["wp","mediaUtils"] |
257 ;// external ["wp","mediaUtils"] |
259 const external_wp_mediaUtils_namespaceObject = window["wp"]["mediaUtils"]; |
258 const external_wp_mediaUtils_namespaceObject = window["wp"]["mediaUtils"]; |
260 ;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/block-inspector-button/index.js |
259 ;// ./node_modules/@wordpress/customize-widgets/build-module/components/block-inspector-button/index.js |
261 /** |
260 /** |
262 * WordPress dependencies |
261 * WordPress dependencies |
263 */ |
262 */ |
264 |
263 |
265 |
264 |
287 children: (0,external_wp_i18n_namespaceObject.__)('Show more settings') |
286 children: (0,external_wp_i18n_namespaceObject.__)('Show more settings') |
288 }); |
287 }); |
289 } |
288 } |
290 /* harmony default export */ const block_inspector_button = (BlockInspectorButton); |
289 /* harmony default export */ const block_inspector_button = (BlockInspectorButton); |
291 |
290 |
292 ;// CONCATENATED MODULE: ./node_modules/clsx/dist/clsx.mjs |
291 ;// ./node_modules/clsx/dist/clsx.mjs |
293 function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx); |
292 function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx); |
294 ;// CONCATENATED MODULE: external ["wp","keycodes"] |
293 ;// external ["wp","keycodes"] |
295 const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"]; |
294 const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"]; |
296 ;// CONCATENATED MODULE: external ["wp","primitives"] |
295 ;// external ["wp","primitives"] |
297 const external_wp_primitives_namespaceObject = window["wp"]["primitives"]; |
296 const external_wp_primitives_namespaceObject = window["wp"]["primitives"]; |
298 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/undo.js |
297 ;// ./node_modules/@wordpress/icons/build-module/library/undo.js |
299 /** |
298 /** |
300 * WordPress dependencies |
299 * WordPress dependencies |
301 */ |
300 */ |
302 |
301 |
303 |
302 |
545 children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", { |
543 children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", { |
546 id: inserterTitleId, |
544 id: inserterTitleId, |
547 className: "customize-widgets-layout__inserter-panel-header-title", |
545 className: "customize-widgets-layout__inserter-panel-header-title", |
548 children: (0,external_wp_i18n_namespaceObject.__)('Add a block') |
546 children: (0,external_wp_i18n_namespaceObject.__)('Add a block') |
549 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, { |
547 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, { |
550 className: "customize-widgets-layout__inserter-panel-header-close-button", |
548 size: "small", |
551 icon: close_small, |
549 icon: close_small, |
552 onClick: () => setIsOpened(false), |
550 onClick: () => setIsOpened(false), |
553 "aria-label": (0,external_wp_i18n_namespaceObject.__)('Close inserter') |
551 "aria-label": (0,external_wp_i18n_namespaceObject.__)('Close inserter') |
554 })] |
552 })] |
555 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { |
553 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { |
593 d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z" |
591 d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z" |
594 }) |
592 }) |
595 }); |
593 }); |
596 /* harmony default export */ const library_external = (external); |
594 /* harmony default export */ const library_external = (external); |
597 |
595 |
598 ;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"] |
596 ;// external ["wp","keyboardShortcuts"] |
599 const external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"]; |
597 const external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"]; |
600 ;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/keyboard-shortcut-help-modal/config.js |
598 ;// ./node_modules/@wordpress/customize-widgets/build-module/components/keyboard-shortcut-help-modal/config.js |
601 /** |
599 /** |
602 * WordPress dependencies |
600 * WordPress dependencies |
603 */ |
601 */ |
604 |
602 |
605 const textFormattingShortcuts = [{ |
603 const textFormattingShortcuts = [{ |
1028 "aria-label": (0,external_wp_i18n_namespaceObject.__)('Document tools'), |
1019 "aria-label": (0,external_wp_i18n_namespaceObject.__)('Document tools'), |
1029 children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, { |
1020 children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, { |
1030 icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? library_undo : library_redo |
1021 icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? library_undo : library_redo |
1031 /* translators: button label text should, if possible, be under 16 characters. */, |
1022 /* translators: button label text should, if possible, be under 16 characters. */, |
1032 label: (0,external_wp_i18n_namespaceObject.__)('Undo'), |
1023 label: (0,external_wp_i18n_namespaceObject.__)('Undo'), |
1033 shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('z') |
1024 shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('z'), |
1034 // If there are no undo levels we don't want to actually disable this |
1025 disabled: !hasUndo, |
1035 // button, because it will remove focus for keyboard users. |
|
1036 // See: https://github.com/WordPress/gutenberg/issues/3486 |
|
1037 , |
|
1038 "aria-disabled": !hasUndo, |
|
1039 onClick: sidebar.undo, |
1026 onClick: sidebar.undo, |
1040 className: "customize-widgets-editor-history-button undo-button" |
1027 className: "customize-widgets-editor-history-button undo-button" |
1041 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, { |
1028 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, { |
1042 icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? library_redo : library_undo |
1029 icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? library_redo : library_undo |
1043 /* translators: button label text should, if possible, be under 16 characters. */, |
1030 /* translators: button label text should, if possible, be under 16 characters. */, |
1044 label: (0,external_wp_i18n_namespaceObject.__)('Redo'), |
1031 label: (0,external_wp_i18n_namespaceObject.__)('Redo'), |
1045 shortcut: shortcut |
1032 shortcut: shortcut, |
1046 // If there are no undo levels we don't want to actually disable this |
1033 disabled: !hasRedo, |
1047 // button, because it will remove focus for keyboard users. |
|
1048 // See: https://github.com/WordPress/gutenberg/issues/3486 |
|
1049 , |
|
1050 "aria-disabled": !hasRedo, |
|
1051 onClick: sidebar.redo, |
1034 onClick: sidebar.redo, |
1052 className: "customize-widgets-editor-history-button redo-button" |
1035 className: "customize-widgets-editor-history-button redo-button" |
1053 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, { |
1036 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, { |
1054 className: "customize-widgets-header-toolbar__inserter-toggle", |
1037 className: "customize-widgets-header-toolbar__inserter-toggle", |
1055 isPressed: isInserterOpened, |
1038 isPressed: isInserterOpened, |
1059 onClick: () => { |
1042 onClick: () => { |
1060 setIsInserterOpened(isOpen => !isOpen); |
1043 setIsInserterOpened(isOpen => !isOpen); |
1061 } |
1044 } |
1062 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MoreMenu, {})] |
1045 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MoreMenu, {})] |
1063 }) |
1046 }) |
1064 }), (0,external_wp_element_namespaceObject.createPortal)( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(components_inserter, { |
1047 }), (0,external_wp_element_namespaceObject.createPortal)(/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(components_inserter, { |
1065 setIsOpened: setIsInserterOpened |
1048 setIsOpened: setIsInserterOpened |
1066 }), inserter.contentContainer[0])] |
1049 }), inserter.contentContainer[0])] |
1067 }); |
1050 }); |
1068 } |
1051 } |
1069 /* harmony default export */ const header = (Header); |
1052 /* harmony default export */ const header = (Header); |
1070 |
1053 |
1071 ;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/inserter/use-inserter.js |
1054 ;// ./node_modules/@wordpress/customize-widgets/build-module/components/inserter/use-inserter.js |
1072 /** |
1055 /** |
1073 * WordPress dependencies |
1056 * WordPress dependencies |
1074 */ |
1057 */ |
1075 |
1058 |
1076 |
1059 |
1101 } |
1084 } |
1102 |
1085 |
1103 // EXTERNAL MODULE: ./node_modules/fast-deep-equal/es6/index.js |
1086 // EXTERNAL MODULE: ./node_modules/fast-deep-equal/es6/index.js |
1104 var es6 = __webpack_require__(7734); |
1087 var es6 = __webpack_require__(7734); |
1105 var es6_default = /*#__PURE__*/__webpack_require__.n(es6); |
1088 var es6_default = /*#__PURE__*/__webpack_require__.n(es6); |
1106 ;// CONCATENATED MODULE: external ["wp","isShallowEqual"] |
1089 ;// external ["wp","isShallowEqual"] |
1107 const external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"]; |
1090 const external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"]; |
1108 var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject); |
1091 var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject); |
1109 ;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/utils.js |
1092 ;// ./node_modules/@wordpress/customize-widgets/build-module/utils.js |
1110 // @ts-check |
1093 // @ts-check |
1111 /** |
1094 /** |
1112 * WordPress dependencies |
1095 * WordPress dependencies |
1113 */ |
1096 */ |
1114 |
1097 |
1433 } |
1416 } |
1434 } |
1417 } |
1435 }, [focusedWidgetIdRef, selectBlock]); |
1418 }, [focusedWidgetIdRef, selectBlock]); |
1436 } |
1419 } |
1437 |
1420 |
1438 ;// CONCATENATED MODULE: external ["wp","privateApis"] |
1421 ;// external ["wp","privateApis"] |
1439 const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"]; |
1422 const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"]; |
1440 ;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/lock-unlock.js |
1423 ;// ./node_modules/@wordpress/customize-widgets/build-module/lock-unlock.js |
1441 /** |
1424 /** |
1442 * WordPress dependencies |
1425 * WordPress dependencies |
1443 */ |
1426 */ |
1444 |
1427 |
1445 const { |
1428 const { |
1446 lock, |
1429 lock, |
1447 unlock |
1430 unlock |
1448 } = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/customize-widgets'); |
1431 } = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/customize-widgets'); |
1449 |
1432 |
1450 ;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/sidebar-block-editor/sidebar-editor-provider.js |
1433 ;// ./node_modules/@wordpress/customize-widgets/build-module/components/sidebar-block-editor/sidebar-editor-provider.js |
1451 /** |
1434 /** |
1452 * WordPress dependencies |
1435 * WordPress dependencies |
1453 */ |
1436 */ |
1454 |
1437 |
1455 |
1438 |
1518 children: (0,external_wp_i18n_namespaceObject.__)('Welcome to block Widgets') |
1500 children: (0,external_wp_i18n_namespaceObject.__)('Welcome to block Widgets') |
1519 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", { |
1501 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", { |
1520 className: "customize-widgets-welcome-guide__text", |
1502 className: "customize-widgets-welcome-guide__text", |
1521 children: isEntirelyBlockWidgets ? (0,external_wp_i18n_namespaceObject.__)('Your theme provides different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.') : (0,external_wp_i18n_namespaceObject.__)('You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.') |
1503 children: isEntirelyBlockWidgets ? (0,external_wp_i18n_namespaceObject.__)('Your theme provides different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.') : (0,external_wp_i18n_namespaceObject.__)('You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.') |
1522 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, { |
1504 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, { |
1523 className: "customize-widgets-welcome-guide__button", |
1505 size: "compact", |
1524 variant: "primary", |
1506 variant: "primary", |
1525 onClick: () => toggle('core/customize-widgets', 'welcomeGuide'), |
1507 onClick: () => toggle('core/customize-widgets', 'welcomeGuide'), |
1526 children: (0,external_wp_i18n_namespaceObject.__)('Got it') |
1508 children: (0,external_wp_i18n_namespaceObject.__)('Got it') |
1527 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("hr", { |
1509 }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("hr", { |
1528 className: "customize-widgets-welcome-guide__separator" |
1510 className: "customize-widgets-welcome-guide__separator" |
1702 var _select$canUser; |
1682 var _select$canUser; |
1703 const { |
1683 const { |
1704 get |
1684 get |
1705 } = select(external_wp_preferences_namespaceObject.store); |
1685 } = select(external_wp_preferences_namespaceObject.store); |
1706 return { |
1686 return { |
1707 hasUploadPermissions: (_select$canUser = select(external_wp_coreData_namespaceObject.store).canUser('create', 'media')) !== null && _select$canUser !== void 0 ? _select$canUser : true, |
1687 hasUploadPermissions: (_select$canUser = select(external_wp_coreData_namespaceObject.store).canUser('create', { |
|
1688 kind: 'root', |
|
1689 name: 'media' |
|
1690 })) !== null && _select$canUser !== void 0 ? _select$canUser : true, |
1708 isFixedToolbarActive: !!get('core/customize-widgets', 'fixedToolbar'), |
1691 isFixedToolbarActive: !!get('core/customize-widgets', 'fixedToolbar'), |
1709 keepCaretInsideBlock: !!get('core/customize-widgets', 'keepCaretInsideBlock'), |
1692 keepCaretInsideBlock: !!get('core/customize-widgets', 'keepCaretInsideBlock'), |
1710 isWelcomeGuideActive: !!get('core/customize-widgets', 'welcomeGuide') |
1693 isWelcomeGuideActive: !!get('core/customize-widgets', 'welcomeGuide') |
1711 }; |
1694 }; |
1712 }, []); |
1695 }, []); |
1730 ...blockEditorSettings, |
1713 ...blockEditorSettings, |
1731 __experimentalSetIsInserterOpened: setIsInserterOpened, |
1714 __experimentalSetIsInserterOpened: setIsInserterOpened, |
1732 mediaUpload: mediaUploadBlockEditor, |
1715 mediaUpload: mediaUploadBlockEditor, |
1733 hasFixedToolbar: isFixedToolbarActive || !isMediumViewport, |
1716 hasFixedToolbar: isFixedToolbarActive || !isMediumViewport, |
1734 keepCaretInsideBlock, |
1717 keepCaretInsideBlock, |
|
1718 editorTool: 'edit', |
1735 __unstableHasCustomAppender: true |
1719 __unstableHasCustomAppender: true |
1736 }; |
1720 }; |
1737 }, [hasUploadPermissions, blockEditorSettings, isFixedToolbarActive, isMediumViewport, keepCaretInsideBlock, setIsInserterOpened]); |
1721 }, [hasUploadPermissions, blockEditorSettings, isFixedToolbarActive, isMediumViewport, keepCaretInsideBlock, setIsInserterOpened]); |
1738 if (isWelcomeGuideActive) { |
1722 if (isWelcomeGuideActive) { |
1739 return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuide, { |
1723 return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuide, { |
1920 })); |
1903 })); |
1921 return () => { |
1904 return () => { |
1922 unsubscribers.forEach(unsubscriber => unsubscriber()); |
1905 unsubscribers.forEach(unsubscriber => unsubscriber()); |
1923 }; |
1906 }; |
1924 }, [sidebarControls]); |
1907 }, [sidebarControls]); |
1925 const activeSidebar = activeSidebarControl && (0,external_wp_element_namespaceObject.createPortal)( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ErrorBoundary, { |
1908 const activeSidebar = activeSidebarControl && (0,external_wp_element_namespaceObject.createPortal)(/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ErrorBoundary, { |
1926 children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarBlockEditor, { |
1909 children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarBlockEditor, { |
1927 blockEditorSettings: blockEditorSettings, |
1910 blockEditorSettings: blockEditorSettings, |
1928 sidebar: activeSidebarControl.sidebarAdapter, |
1911 sidebar: activeSidebarControl.sidebarAdapter, |
1929 inserter: activeSidebarControl.inserter, |
1912 inserter: activeSidebarControl.inserter, |
1930 inspector: activeSidebarControl.inspector |
1913 inspector: activeSidebarControl.inspector |
1931 }, activeSidebarControl.id) |
1914 }, activeSidebarControl.id) |
1932 }), activeSidebarControl.container[0]); |
1915 }), activeSidebarControl.container[0]); |
1933 |
1916 |
1934 // We have to portal this to the parent of both the editor and the inspector, |
1917 // We have to portal this to the parent of both the editor and the inspector, |
1935 // so that the popovers will appear above both of them. |
1918 // so that the popovers will appear above both of them. |
1936 const popover = parentContainer && (0,external_wp_element_namespaceObject.createPortal)( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { |
1919 const popover = parentContainer && (0,external_wp_element_namespaceObject.createPortal)(/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { |
1937 className: "customize-widgets-popover", |
1920 className: "customize-widgets-popover", |
1938 ref: popoverRef, |
1921 ref: popoverRef, |
1939 children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover.Slot, {}) |
1922 children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover.Slot, {}) |
1940 }), parentContainer); |
1923 }), parentContainer); |
1941 return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SlotFillProvider, { |
1924 return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SlotFillProvider, { |
2609 focusWidget(widgetId); |
2590 focusWidget(widgetId); |
2610 } |
2591 } |
2611 return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { |
2592 return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { |
2612 children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEdit, { |
2593 children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEdit, { |
2613 ...props |
2594 ...props |
2614 }), hasMultipleSidebars && canInsertBlockInSidebar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, { |
2595 }, "edit"), hasMultipleSidebars && canInsertBlockInSidebar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, { |
2615 children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_widgets_namespaceObject.MoveToWidgetArea, { |
2596 children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_widgets_namespaceObject.MoveToWidgetArea, { |
2616 widgetAreas: sidebarControls.map(sidebarControl => ({ |
2597 widgetAreas: sidebarControls.map(sidebarControl => ({ |
2617 id: sidebarControl.id, |
2598 id: sidebarControl.id, |
2618 name: sidebarControl.params.label, |
2599 name: sidebarControl.params.label, |
2619 description: sidebarControl.params.description |
2600 description: sidebarControl.params.description |
2624 })] |
2605 })] |
2625 }); |
2606 }); |
2626 }, 'withMoveToSidebarToolbarItem'); |
2607 }, 'withMoveToSidebarToolbarItem'); |
2627 (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/customize-widgets/block-edit', withMoveToSidebarToolbarItem); |
2608 (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/customize-widgets/block-edit', withMoveToSidebarToolbarItem); |
2628 |
2609 |
2629 ;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/filters/replace-media-upload.js |
2610 ;// ./node_modules/@wordpress/customize-widgets/build-module/filters/replace-media-upload.js |
2630 /** |
2611 /** |
2631 * WordPress dependencies |
2612 * WordPress dependencies |
2632 */ |
2613 */ |
2633 |
2614 |
2634 |
2615 |
2635 const replaceMediaUpload = () => external_wp_mediaUtils_namespaceObject.MediaUpload; |
2616 const replaceMediaUpload = () => external_wp_mediaUtils_namespaceObject.MediaUpload; |
2636 (0,external_wp_hooks_namespaceObject.addFilter)('editor.MediaUpload', 'core/edit-widgets/replace-media-upload', replaceMediaUpload); |
2617 (0,external_wp_hooks_namespaceObject.addFilter)('editor.MediaUpload', 'core/edit-widgets/replace-media-upload', replaceMediaUpload); |
2637 |
2618 |
2638 ;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/filters/wide-widget-display.js |
2619 ;// ./node_modules/@wordpress/customize-widgets/build-module/filters/wide-widget-display.js |
2639 /** |
2620 /** |
2640 * WordPress dependencies |
2621 * WordPress dependencies |
2641 */ |
2622 */ |
2642 |
2623 |
2643 |
2624 |
2652 } = props.attributes; |
2633 } = props.attributes; |
2653 const isWide = (_wp$customize$Widgets = wide_widget_display_wp.customize.Widgets.data.availableWidgets.find(widget => widget.id_base === idBase)?.is_wide) !== null && _wp$customize$Widgets !== void 0 ? _wp$customize$Widgets : false; |
2634 const isWide = (_wp$customize$Widgets = wide_widget_display_wp.customize.Widgets.data.availableWidgets.find(widget => widget.id_base === idBase)?.is_wide) !== null && _wp$customize$Widgets !== void 0 ? _wp$customize$Widgets : false; |
2654 return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEdit, { |
2635 return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEdit, { |
2655 ...props, |
2636 ...props, |
2656 isWide: isWide |
2637 isWide: isWide |
2657 }); |
2638 }, "edit"); |
2658 }, 'withWideWidgetDisplay'); |
2639 }, 'withWideWidgetDisplay'); |
2659 (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/customize-widgets/wide-widget-display', withWideWidgetDisplay); |
2640 (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/customize-widgets/wide-widget-display', withWideWidgetDisplay); |
2660 |
2641 |
2661 ;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/filters/index.js |
2642 ;// ./node_modules/@wordpress/customize-widgets/build-module/filters/index.js |
2662 /** |
2643 /** |
2663 * Internal dependencies |
2644 * Internal dependencies |
2664 */ |
2645 */ |
2665 |
2646 |
2666 |
2647 |
2667 |
2648 |
2668 |
2649 |
2669 ;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/index.js |
2650 ;// ./node_modules/@wordpress/customize-widgets/build-module/index.js |
2670 /** |
2651 /** |
2671 * WordPress dependencies |
2652 * WordPress dependencies |
2672 */ |
2653 */ |
2673 |
2654 |
2674 |
2655 |
2727 build_module_wp.customize.control.each(control => { |
2708 build_module_wp.customize.control.each(control => { |
2728 if (control instanceof SidebarControl) { |
2709 if (control instanceof SidebarControl) { |
2729 sidebarControls.push(control); |
2710 sidebarControls.push(control); |
2730 } |
2711 } |
2731 }); |
2712 }); |
2732 (0,external_wp_element_namespaceObject.createRoot)(container).render( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomizeWidgets, { |
2713 (0,external_wp_element_namespaceObject.createRoot)(container).render(/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.StrictMode, { |
2733 api: build_module_wp.customize, |
2714 children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomizeWidgets, { |
2734 sidebarControls: sidebarControls, |
2715 api: build_module_wp.customize, |
2735 blockEditorSettings: blockEditorSettings |
2716 sidebarControls: sidebarControls, |
|
2717 blockEditorSettings: blockEditorSettings |
|
2718 }) |
2736 })); |
2719 })); |
2737 }); |
2720 }); |
2738 } |
2721 } |
2739 |
2722 |
2740 |
|
2741 })(); |
|
2742 |
2723 |
2743 (window.wp = window.wp || {}).customizeWidgets = __webpack_exports__; |
2724 (window.wp = window.wp || {}).customizeWidgets = __webpack_exports__; |
2744 /******/ })() |
2725 /******/ })() |
2745 ; |
2726 ; |