@wordpress/edit-widgets 5.34.0 → 6.0.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.
- package/CHANGELOG.md +15 -2
- package/build/blocks/widget-area/edit/index.js +33 -30
- package/build/blocks/widget-area/edit/index.js.map +1 -1
- package/build/blocks/widget-area/edit/inner-blocks.js +8 -7
- package/build/blocks/widget-area/edit/inner-blocks.js.map +1 -1
- package/build/components/error-boundary/index.js +14 -12
- package/build/components/error-boundary/index.js.map +1 -1
- package/build/components/header/document-tools/index.js +40 -60
- package/build/components/header/document-tools/index.js.map +1 -1
- package/build/components/header/index.js +32 -22
- package/build/components/header/index.js.map +1 -1
- package/build/components/header/undo-redo/redo.js +2 -2
- package/build/components/header/undo-redo/redo.js.map +1 -1
- package/build/components/header/undo-redo/undo.js +2 -2
- package/build/components/header/undo-redo/undo.js.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +2 -2
- package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/index.js +54 -49
- package/build/components/keyboard-shortcut-help-modal/index.js.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/shortcut.js +30 -26
- package/build/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
- package/build/components/layout/index.js +11 -8
- package/build/components/layout/index.js.map +1 -1
- package/build/components/layout/interface.js +16 -13
- package/build/components/layout/interface.js.map +1 -1
- package/build/components/more-menu/index.js +81 -70
- package/build/components/more-menu/index.js.map +1 -1
- package/build/components/more-menu/tools-more-menu-group.js +5 -4
- package/build/components/more-menu/tools-more-menu-group.js.map +1 -1
- package/build/components/notices/index.js +15 -13
- package/build/components/notices/index.js.map +1 -1
- package/build/components/save-button/index.js +5 -4
- package/build/components/save-button/index.js.map +1 -1
- package/build/components/secondary-sidebar/index.js +3 -3
- package/build/components/secondary-sidebar/index.js.map +1 -1
- package/build/components/secondary-sidebar/inserter-sidebar.js +21 -18
- package/build/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
- package/build/components/secondary-sidebar/list-view-sidebar.js +21 -15
- package/build/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
- package/build/components/sidebar/index.js +49 -37
- package/build/components/sidebar/index.js.map +1 -1
- package/build/components/sidebar/widget-areas.js +29 -22
- package/build/components/sidebar/widget-areas.js.map +1 -1
- package/build/components/welcome-guide/index.js +80 -53
- package/build/components/welcome-guide/index.js.map +1 -1
- package/build/components/widget-areas-block-editor-content/index.js +18 -11
- package/build/components/widget-areas-block-editor-content/index.js.map +1 -1
- package/build/components/widget-areas-block-editor-provider/index.js +14 -11
- package/build/components/widget-areas-block-editor-provider/index.js.map +1 -1
- package/build/filters/move-to-widget-area.js +14 -10
- package/build/filters/move-to-widget-area.js.map +1 -1
- package/build/index.js +3 -3
- package/build/index.js.map +1 -1
- package/build/store/private-selectors.js +4 -0
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/reducer.js +16 -0
- package/build/store/reducer.js.map +1 -1
- package/build-module/blocks/widget-area/edit/index.js +32 -28
- package/build-module/blocks/widget-area/edit/index.js.map +1 -1
- package/build-module/blocks/widget-area/edit/inner-blocks.js +8 -7
- package/build-module/blocks/widget-area/edit/inner-blocks.js.map +1 -1
- package/build-module/components/error-boundary/index.js +14 -12
- package/build-module/components/error-boundary/index.js.map +1 -1
- package/build-module/components/header/document-tools/index.js +44 -62
- package/build-module/components/header/document-tools/index.js.map +1 -1
- package/build-module/components/header/index.js +34 -22
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/header/undo-redo/redo.js +2 -2
- package/build-module/components/header/undo-redo/redo.js.map +1 -1
- package/build-module/components/header/undo-redo/undo.js +2 -2
- package/build-module/components/header/undo-redo/undo.js.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +2 -2
- package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/index.js +55 -49
- package/build-module/components/keyboard-shortcut-help-modal/index.js.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +32 -26
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
- package/build-module/components/layout/index.js +12 -8
- package/build-module/components/layout/index.js.map +1 -1
- package/build-module/components/layout/interface.js +17 -13
- package/build-module/components/layout/interface.js.map +1 -1
- package/build-module/components/more-menu/index.js +83 -70
- package/build-module/components/more-menu/index.js.map +1 -1
- package/build-module/components/more-menu/tools-more-menu-group.js +5 -4
- package/build-module/components/more-menu/tools-more-menu-group.js.map +1 -1
- package/build-module/components/notices/index.js +17 -13
- package/build-module/components/notices/index.js.map +1 -1
- package/build-module/components/save-button/index.js +5 -4
- package/build-module/components/save-button/index.js.map +1 -1
- package/build-module/components/secondary-sidebar/index.js +3 -3
- package/build-module/components/secondary-sidebar/index.js.map +1 -1
- package/build-module/components/secondary-sidebar/inserter-sidebar.js +22 -18
- package/build-module/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
- package/build-module/components/secondary-sidebar/list-view-sidebar.js +22 -15
- package/build-module/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
- package/build-module/components/sidebar/index.js +50 -37
- package/build-module/components/sidebar/index.js.map +1 -1
- package/build-module/components/sidebar/widget-areas.js +30 -22
- package/build-module/components/sidebar/widget-areas.js.map +1 -1
- package/build-module/components/welcome-guide/index.js +82 -53
- package/build-module/components/welcome-guide/index.js.map +1 -1
- package/build-module/components/widget-areas-block-editor-content/index.js +19 -11
- package/build-module/components/widget-areas-block-editor-content/index.js.map +1 -1
- package/build-module/components/widget-areas-block-editor-provider/index.js +15 -11
- package/build-module/components/widget-areas-block-editor-provider/index.js.map +1 -1
- package/build-module/filters/move-to-widget-area.js +16 -10
- package/build-module/filters/move-to-widget-area.js.map +1 -1
- package/build-module/index.js +3 -3
- package/build-module/index.js.map +1 -1
- package/build-module/store/private-selectors.js +3 -0
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/reducer.js +15 -0
- package/build-module/store/reducer.js.map +1 -1
- package/build-style/style-rtl.css +15 -14
- package/build-style/style.css +15 -14
- package/package.json +31 -30
- package/src/blocks/widget-area/edit/inner-blocks.js +2 -2
- package/src/components/header/document-tools/index.js +30 -50
- package/src/components/keyboard-shortcut-help-modal/index.js +2 -2
- package/src/components/layout/style.scss +1 -1
- package/src/index.js +1 -1
- package/src/store/private-selectors.js +4 -0
- package/src/store/reducer.js +13 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createElement } from "react";
|
|
2
1
|
/**
|
|
3
2
|
* WordPress dependencies
|
|
4
3
|
*/
|
|
@@ -22,6 +21,8 @@ import useLastSelectedWidgetArea from '../../hooks/use-last-selected-widget-area
|
|
|
22
21
|
import { store as editWidgetsStore } from '../../store';
|
|
23
22
|
import { ALLOW_REUSABLE_BLOCKS } from '../../constants';
|
|
24
23
|
import { unlock } from '../../lock-unlock';
|
|
24
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
26
|
const {
|
|
26
27
|
ExperimentalBlockEditorProvider
|
|
27
28
|
} = unlock(blockEditorPrivateApis);
|
|
@@ -96,15 +97,18 @@ export default function WidgetAreasBlockEditorProvider({
|
|
|
96
97
|
const [blocks, onInput, onChange] = useEntityBlockEditor(KIND, POST_TYPE, {
|
|
97
98
|
id: buildWidgetAreasPostId()
|
|
98
99
|
});
|
|
99
|
-
return
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
100
|
+
return /*#__PURE__*/_jsxs(SlotFillProvider, {
|
|
101
|
+
children: [/*#__PURE__*/_jsx(KeyboardShortcuts.Register, {}), /*#__PURE__*/_jsx(BlockKeyboardShortcuts, {}), /*#__PURE__*/_jsxs(ExperimentalBlockEditorProvider, {
|
|
102
|
+
value: blocks,
|
|
103
|
+
onInput: onInput,
|
|
104
|
+
onChange: onChange,
|
|
105
|
+
settings: settings,
|
|
106
|
+
useSubRegistry: false,
|
|
107
|
+
...props,
|
|
108
|
+
children: [children, /*#__PURE__*/_jsx(PatternsMenuItems, {
|
|
109
|
+
rootClientId: widgetAreaId
|
|
110
|
+
})]
|
|
111
|
+
})]
|
|
112
|
+
});
|
|
109
113
|
}
|
|
110
114
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SlotFillProvider","useViewportMatch","uploadMedia","useDispatch","useSelect","useEntityBlockEditor","store","coreStore","useResourcePermissions","useMemo","privateApis","blockEditorPrivateApis","editPatternsPrivateApis","preferencesStore","blockLibraryPrivateApis","KeyboardShortcuts","buildWidgetAreasPostId","KIND","POST_TYPE","useLastSelectedWidgetArea","editWidgetsStore","ALLOW_REUSABLE_BLOCKS","unlock","ExperimentalBlockEditorProvider","PatternsMenuItems","BlockKeyboardShortcuts","WidgetAreasBlockEditorProvider","blockEditorSettings","children","props","mediaPermissions","isLargeViewport","reusableBlocks","isFixedToolbarActive","keepCaretInsideBlock","pageOnFront","pageForPosts","select","canUser","getEntityRecord","getEntityRecords","siteSettings","undefined","widgetAreas","getWidgetAreas","widgets","getWidgets","get","page_on_front","page_for_posts","setIsInserterOpened","settings","mediaUploadBlockEditor","canCreate","onError","argumentsObject","wpAllowedMimeTypes","allowedMimeTypes","message","__experimentalReusableBlocks","hasFixedToolbar","mediaUpload","templateLock","__experimentalSetIsInserterOpened","widgetAreaId","blocks","onInput","onChange","id","
|
|
1
|
+
{"version":3,"names":["SlotFillProvider","useViewportMatch","uploadMedia","useDispatch","useSelect","useEntityBlockEditor","store","coreStore","useResourcePermissions","useMemo","privateApis","blockEditorPrivateApis","editPatternsPrivateApis","preferencesStore","blockLibraryPrivateApis","KeyboardShortcuts","buildWidgetAreasPostId","KIND","POST_TYPE","useLastSelectedWidgetArea","editWidgetsStore","ALLOW_REUSABLE_BLOCKS","unlock","jsx","_jsx","jsxs","_jsxs","ExperimentalBlockEditorProvider","PatternsMenuItems","BlockKeyboardShortcuts","WidgetAreasBlockEditorProvider","blockEditorSettings","children","props","mediaPermissions","isLargeViewport","reusableBlocks","isFixedToolbarActive","keepCaretInsideBlock","pageOnFront","pageForPosts","select","canUser","getEntityRecord","getEntityRecords","siteSettings","undefined","widgetAreas","getWidgetAreas","widgets","getWidgets","get","page_on_front","page_for_posts","setIsInserterOpened","settings","mediaUploadBlockEditor","canCreate","onError","argumentsObject","wpAllowedMimeTypes","allowedMimeTypes","message","__experimentalReusableBlocks","hasFixedToolbar","mediaUpload","templateLock","__experimentalSetIsInserterOpened","widgetAreaId","blocks","onInput","onChange","id","Register","value","useSubRegistry","rootClientId"],"sources":["@wordpress/edit-widgets/src/components/widget-areas-block-editor-provider/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { SlotFillProvider } from '@wordpress/components';\nimport { useViewportMatch } from '@wordpress/compose';\nimport { uploadMedia } from '@wordpress/media-utils';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport {\n\tuseEntityBlockEditor,\n\tstore as coreStore,\n\tuseResourcePermissions,\n} from '@wordpress/core-data';\nimport { useMemo } from '@wordpress/element';\nimport { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';\nimport { privateApis as editPatternsPrivateApis } from '@wordpress/patterns';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { privateApis as blockLibraryPrivateApis } from '@wordpress/block-library';\n\n/**\n * Internal dependencies\n */\nimport KeyboardShortcuts from '../keyboard-shortcuts';\nimport { buildWidgetAreasPostId, KIND, POST_TYPE } from '../../store/utils';\nimport useLastSelectedWidgetArea from '../../hooks/use-last-selected-widget-area';\nimport { store as editWidgetsStore } from '../../store';\nimport { ALLOW_REUSABLE_BLOCKS } from '../../constants';\nimport { unlock } from '../../lock-unlock';\n\nconst { ExperimentalBlockEditorProvider } = unlock( blockEditorPrivateApis );\nconst { PatternsMenuItems } = unlock( editPatternsPrivateApis );\nconst { BlockKeyboardShortcuts } = unlock( blockLibraryPrivateApis );\n\nexport default function WidgetAreasBlockEditorProvider( {\n\tblockEditorSettings,\n\tchildren,\n\t...props\n} ) {\n\tconst mediaPermissions = useResourcePermissions( 'media' );\n\tconst isLargeViewport = useViewportMatch( 'medium' );\n\tconst {\n\t\treusableBlocks,\n\t\tisFixedToolbarActive,\n\t\tkeepCaretInsideBlock,\n\t\tpageOnFront,\n\t\tpageForPosts,\n\t} = useSelect( ( select ) => {\n\t\tconst { canUser, getEntityRecord, getEntityRecords } =\n\t\t\tselect( coreStore );\n\t\tconst siteSettings = canUser( 'read', 'settings' )\n\t\t\t? getEntityRecord( 'root', 'site' )\n\t\t\t: undefined;\n\t\treturn {\n\t\t\twidgetAreas: select( editWidgetsStore ).getWidgetAreas(),\n\t\t\twidgets: select( editWidgetsStore ).getWidgets(),\n\t\t\treusableBlocks: ALLOW_REUSABLE_BLOCKS\n\t\t\t\t? getEntityRecords( 'postType', 'wp_block' )\n\t\t\t\t: [],\n\t\t\tisFixedToolbarActive: !! select( preferencesStore ).get(\n\t\t\t\t'core/edit-widgets',\n\t\t\t\t'fixedToolbar'\n\t\t\t),\n\t\t\tkeepCaretInsideBlock: !! select( preferencesStore ).get(\n\t\t\t\t'core/edit-widgets',\n\t\t\t\t'keepCaretInsideBlock'\n\t\t\t),\n\t\t\tpageOnFront: siteSettings?.page_on_front,\n\t\t\tpageForPosts: siteSettings?.page_for_posts,\n\t\t};\n\t}, [] );\n\tconst { setIsInserterOpened } = useDispatch( editWidgetsStore );\n\n\tconst settings = useMemo( () => {\n\t\tlet mediaUploadBlockEditor;\n\t\tif ( mediaPermissions.canCreate ) {\n\t\t\tmediaUploadBlockEditor = ( { onError, ...argumentsObject } ) => {\n\t\t\t\tuploadMedia( {\n\t\t\t\t\twpAllowedMimeTypes: blockEditorSettings.allowedMimeTypes,\n\t\t\t\t\tonError: ( { message } ) => onError( message ),\n\t\t\t\t\t...argumentsObject,\n\t\t\t\t} );\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\t...blockEditorSettings,\n\t\t\t__experimentalReusableBlocks: reusableBlocks,\n\t\t\thasFixedToolbar: isFixedToolbarActive || ! isLargeViewport,\n\t\t\tkeepCaretInsideBlock,\n\t\t\tmediaUpload: mediaUploadBlockEditor,\n\t\t\ttemplateLock: 'all',\n\t\t\t__experimentalSetIsInserterOpened: setIsInserterOpened,\n\t\t\tpageOnFront,\n\t\t\tpageForPosts,\n\t\t};\n\t}, [\n\t\tblockEditorSettings,\n\t\tisFixedToolbarActive,\n\t\tisLargeViewport,\n\t\tkeepCaretInsideBlock,\n\t\tmediaPermissions.canCreate,\n\t\treusableBlocks,\n\t\tsetIsInserterOpened,\n\t\tpageOnFront,\n\t\tpageForPosts,\n\t] );\n\n\tconst widgetAreaId = useLastSelectedWidgetArea();\n\n\tconst [ blocks, onInput, onChange ] = useEntityBlockEditor(\n\t\tKIND,\n\t\tPOST_TYPE,\n\t\t{ id: buildWidgetAreasPostId() }\n\t);\n\n\treturn (\n\t\t<SlotFillProvider>\n\t\t\t<KeyboardShortcuts.Register />\n\t\t\t<BlockKeyboardShortcuts />\n\t\t\t<ExperimentalBlockEditorProvider\n\t\t\t\tvalue={ blocks }\n\t\t\t\tonInput={ onInput }\n\t\t\t\tonChange={ onChange }\n\t\t\t\tsettings={ settings }\n\t\t\t\tuseSubRegistry={ false }\n\t\t\t\t{ ...props }\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t\t<PatternsMenuItems rootClientId={ widgetAreaId } />\n\t\t\t</ExperimentalBlockEditorProvider>\n\t\t</SlotFillProvider>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,gBAAgB,QAAQ,uBAAuB;AACxD,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,WAAW,QAAQ,wBAAwB;AACpD,SAASC,WAAW,EAAEC,SAAS,QAAQ,iBAAiB;AACxD,SACCC,oBAAoB,EACpBC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EAAE3B,cAAc;MAC5C4B,eAAe,EAAE3B,oBAAoB,IAAI,CAAEF,eAAe;MAC1DG,oBAAoB;MACpB2B,WAAW,EAAET,sBAAsB;MACnCU,YAAY,EAAE,KAAK;MACnBC,iCAAiC,EAAEb,mBAAmB;MACtDf,WAAW;MACXC;IACD,CAAC;EACF,CAAC,EAAE,CACFT,mBAAmB,EACnBM,oBAAoB,EACpBF,eAAe,EACfG,oBAAoB,EACpBJ,gBAAgB,CAACuB,SAAS,EAC1BrB,cAAc,EACdkB,mBAAmB,EACnBf,WAAW,EACXC,YAAY,CACX,CAAC;EAEH,MAAM4B,YAAY,GAAGjD,yBAAyB,CAAC,CAAC;EAEhD,MAAM,CAAEkD,MAAM,EAAEC,OAAO,EAAEC,QAAQ,CAAE,GAAGlE,oBAAoB,CACzDY,IAAI,EACJC,SAAS,EACT;IAAEsD,EAAE,EAAExD,sBAAsB,CAAC;EAAE,CAChC,CAAC;EAED,oBACCU,KAAA,CAAC1B,gBAAgB;IAAAgC,QAAA,gBAChBR,IAAA,CAACT,iBAAiB,CAAC0D,QAAQ,IAAE,CAAC,eAC9BjD,IAAA,CAACK,sBAAsB,IAAE,CAAC,eAC1BH,KAAA,CAACC,+BAA+B;MAC/B+C,KAAK,EAAGL,MAAQ;MAChBC,OAAO,EAAGA,OAAS;MACnBC,QAAQ,EAAGA,QAAU;MACrBhB,QAAQ,EAAGA,QAAU;MACrBoB,cAAc,EAAG,KAAO;MAAA,GACnB1C,KAAK;MAAAD,QAAA,GAERA,QAAQ,eACVR,IAAA,CAACI,iBAAiB;QAACgD,YAAY,EAAGR;MAAc,CAAE,CAAC;IAAA,CACnB,CAAC;EAAA,CACjB,CAAC;AAErB","ignoreList":[]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createElement, Fragment } from "react";
|
|
2
1
|
/**
|
|
3
2
|
* WordPress dependencies
|
|
4
3
|
*/
|
|
@@ -13,6 +12,9 @@ import { MoveToWidgetArea } from '@wordpress/widgets';
|
|
|
13
12
|
* Internal dependencies
|
|
14
13
|
*/
|
|
15
14
|
import { store as editWidgetsStore } from '../store';
|
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
18
|
const withMoveToWidgetAreaToolbarItem = createHigherOrderComponent(BlockEdit => props => {
|
|
17
19
|
const {
|
|
18
20
|
clientId,
|
|
@@ -40,15 +42,19 @@ const withMoveToWidgetAreaToolbarItem = createHigherOrderComponent(BlockEdit =>
|
|
|
40
42
|
} = useDispatch(editWidgetsStore);
|
|
41
43
|
const hasMultipleWidgetAreas = widgetAreas?.length > 1;
|
|
42
44
|
const isMoveToWidgetAreaVisible = blockName !== 'core/widget-area' && hasMultipleWidgetAreas && canInsertBlockInWidgetArea;
|
|
43
|
-
return
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
46
|
+
children: [/*#__PURE__*/_jsx(BlockEdit, {
|
|
47
|
+
...props
|
|
48
|
+
}), isMoveToWidgetAreaVisible && /*#__PURE__*/_jsx(BlockControls, {
|
|
49
|
+
children: /*#__PURE__*/_jsx(MoveToWidgetArea, {
|
|
50
|
+
widgetAreas: widgetAreas,
|
|
51
|
+
currentWidgetAreaId: currentWidgetAreaId,
|
|
52
|
+
onSelect: widgetAreaId => {
|
|
53
|
+
moveBlockToWidgetArea(props.clientId, widgetAreaId);
|
|
54
|
+
}
|
|
55
|
+
})
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
52
58
|
}, 'withMoveToWidgetAreaToolbarItem');
|
|
53
59
|
addFilter('editor.BlockEdit', 'core/edit-widgets/block-edit', withMoveToWidgetAreaToolbarItem);
|
|
54
60
|
//# sourceMappingURL=move-to-widget-area.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BlockControls","createHigherOrderComponent","useDispatch","useSelect","addFilter","MoveToWidgetArea","store","editWidgetsStore","withMoveToWidgetAreaToolbarItem","BlockEdit","props","clientId","name","blockName","widgetAreas","currentWidgetAreaId","canInsertBlockInWidgetArea","select","selectors","widgetAreaBlock","getParentWidgetAreaBlock","getWidgetAreas","attributes","id","moveBlockToWidgetArea","hasMultipleWidgetAreas","length","isMoveToWidgetAreaVisible","
|
|
1
|
+
{"version":3,"names":["BlockControls","createHigherOrderComponent","useDispatch","useSelect","addFilter","MoveToWidgetArea","store","editWidgetsStore","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","withMoveToWidgetAreaToolbarItem","BlockEdit","props","clientId","name","blockName","widgetAreas","currentWidgetAreaId","canInsertBlockInWidgetArea","select","selectors","widgetAreaBlock","getParentWidgetAreaBlock","getWidgetAreas","attributes","id","moveBlockToWidgetArea","hasMultipleWidgetAreas","length","isMoveToWidgetAreaVisible","children","onSelect","widgetAreaId"],"sources":["@wordpress/edit-widgets/src/filters/move-to-widget-area.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\n\nimport { BlockControls } from '@wordpress/block-editor';\nimport { createHigherOrderComponent } from '@wordpress/compose';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { addFilter } from '@wordpress/hooks';\nimport { MoveToWidgetArea } from '@wordpress/widgets';\n\n/**\n * Internal dependencies\n */\nimport { store as editWidgetsStore } from '../store';\n\nconst withMoveToWidgetAreaToolbarItem = createHigherOrderComponent(\n\t( BlockEdit ) => ( props ) => {\n\t\tconst { clientId, name: blockName } = props;\n\t\tconst { widgetAreas, currentWidgetAreaId, canInsertBlockInWidgetArea } =\n\t\t\tuseSelect(\n\t\t\t\t( select ) => {\n\t\t\t\t\t// Component won't display for a widget area, so don't run selectors.\n\t\t\t\t\tif ( blockName === 'core/widget-area' ) {\n\t\t\t\t\t\treturn {};\n\t\t\t\t\t}\n\n\t\t\t\t\tconst selectors = select( editWidgetsStore );\n\n\t\t\t\t\tconst widgetAreaBlock =\n\t\t\t\t\t\tselectors.getParentWidgetAreaBlock( clientId );\n\n\t\t\t\t\treturn {\n\t\t\t\t\t\twidgetAreas: selectors.getWidgetAreas(),\n\t\t\t\t\t\tcurrentWidgetAreaId: widgetAreaBlock?.attributes?.id,\n\t\t\t\t\t\tcanInsertBlockInWidgetArea:\n\t\t\t\t\t\t\tselectors.canInsertBlockInWidgetArea( blockName ),\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t\t[ clientId, blockName ]\n\t\t\t);\n\n\t\tconst { moveBlockToWidgetArea } = useDispatch( editWidgetsStore );\n\t\tconst hasMultipleWidgetAreas = widgetAreas?.length > 1;\n\t\tconst isMoveToWidgetAreaVisible =\n\t\t\tblockName !== 'core/widget-area' &&\n\t\t\thasMultipleWidgetAreas &&\n\t\t\tcanInsertBlockInWidgetArea;\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<BlockEdit { ...props } />\n\t\t\t\t{ isMoveToWidgetAreaVisible && (\n\t\t\t\t\t<BlockControls>\n\t\t\t\t\t\t<MoveToWidgetArea\n\t\t\t\t\t\t\twidgetAreas={ widgetAreas }\n\t\t\t\t\t\t\tcurrentWidgetAreaId={ currentWidgetAreaId }\n\t\t\t\t\t\t\tonSelect={ ( widgetAreaId ) => {\n\t\t\t\t\t\t\t\tmoveBlockToWidgetArea(\n\t\t\t\t\t\t\t\t\tprops.clientId,\n\t\t\t\t\t\t\t\t\twidgetAreaId\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</BlockControls>\n\t\t\t\t) }\n\t\t\t</>\n\t\t);\n\t},\n\t'withMoveToWidgetAreaToolbarItem'\n);\n\naddFilter(\n\t'editor.BlockEdit',\n\t'core/edit-widgets/block-edit',\n\twithMoveToWidgetAreaToolbarItem\n);\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,aAAa,QAAQ,yB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A,CAAAF,SAAA;IAAAuB,QAAA,gBACCzB,IAAA,CAACM,SAAS;MAAA,GAAMC;IAAK,CAAI,CAAC,EACxBiB,yBAAyB,iBAC1BxB,IAAA,CAACT,aAAa;MAAAkC,QAAA,eACbzB,IAAA,CAACJ,gBAAgB;QAChBe,WAAW,EAAGA,WAAa;QAC3BC,mBAAmB,EAAGA,mBAAqB;QAC3Cc,QAAQ,EAAKC,YAAY,IAAM;UAC9BN,qBAAqB,CACpBd,KAAK,CAACC,QAAQ,EACdmB,YACD,CAAC;QACF;MAAG,CACH;IAAC,CACY,CACf;EAAA,CACA,CAAC;AAEL,CAAC,EACD,iCACD,CAAC;AAEDhC,SAAS,CACR,kBAAkB,EAClB,8BAA8B,EAC9BU,+BACD,CAAC","ignoreList":[]}
|
package/build-module/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createElement } from "react";
|
|
2
1
|
/**
|
|
3
2
|
* WordPress dependencies
|
|
4
3
|
*/
|
|
@@ -21,6 +20,7 @@ import './filters';
|
|
|
21
20
|
import * as widgetArea from './blocks/widget-area';
|
|
22
21
|
import Layout from './components/layout';
|
|
23
22
|
import { ALLOW_REUSABLE_BLOCKS, ENABLE_EXPERIMENTAL_FSE_BLOCKS } from './constants';
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
const disabledBlocks = ['core/more', 'core/freeform', 'core/template-part', ...(ALLOW_REUSABLE_BLOCKS ? [] : ['core/block'])];
|
|
25
25
|
|
|
26
26
|
/**
|
|
@@ -44,7 +44,7 @@ export function initializeEditor(id, settings) {
|
|
|
44
44
|
dispatch(blocksStore).reapplyBlockTypeFilters();
|
|
45
45
|
registerCoreBlocks(coreBlocks);
|
|
46
46
|
registerLegacyWidgetBlock();
|
|
47
|
-
if (
|
|
47
|
+
if (globalThis.IS_GUTENBERG_PLUGIN) {
|
|
48
48
|
__experimentalRegisterExperimentalCoreBlocks({
|
|
49
49
|
enableFSEBlocks: ENABLE_EXPERIMENTAL_FSE_BLOCKS
|
|
50
50
|
});
|
|
@@ -59,7 +59,7 @@ export function initializeEditor(id, settings) {
|
|
|
59
59
|
// do this will result in errors in the default block parser.
|
|
60
60
|
// see: https://github.com/WordPress/gutenberg/issues/33097
|
|
61
61
|
setFreeformContentHandlerName('core/html');
|
|
62
|
-
root.render(
|
|
62
|
+
root.render( /*#__PURE__*/_jsx(Layout, {
|
|
63
63
|
blockEditorSettings: settings
|
|
64
64
|
}));
|
|
65
65
|
return root;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["registerBlockType","unstable__bootstrapServerSideBlockDefinitions","setFreeformContentHandlerName","store","blocksStore","dispatch","deprecated","createRoot","registerCoreBlocks","__experimentalGetCoreBlocks","__experimentalRegisterExperimentalCoreBlocks","__experimentalFetchLinkSuggestions","fetchLinkSuggestions","registerLegacyWidgetBlock","registerLegacyWidgetVariations","registerWidgetGroupBlock","preferencesStore","widgetArea","Layout","ALLOW_REUSABLE_BLOCKS","ENABLE_EXPERIMENTAL_FSE_BLOCKS","disabledBlocks","initializeEditor","id","settings","target","document","getElementById","root","coreBlocks","filter","block","includes","name","startsWith","setDefaults","fixedToolbar","welcomeGuide","showBlockBreadcrumbs","themeStyles","reapplyBlockTypeFilters","
|
|
1
|
+
{"version":3,"names":["registerBlockType","unstable__bootstrapServerSideBlockDefinitions","setFreeformContentHandlerName","store","blocksStore","dispatch","deprecated","createRoot","registerCoreBlocks","__experimentalGetCoreBlocks","__experimentalRegisterExperimentalCoreBlocks","__experimentalFetchLinkSuggestions","fetchLinkSuggestions","registerLegacyWidgetBlock","registerLegacyWidgetVariations","registerWidgetGroupBlock","preferencesStore","widgetArea","Layout","ALLOW_REUSABLE_BLOCKS","ENABLE_EXPERIMENTAL_FSE_BLOCKS","jsx","_jsx","disabledBlocks","initializeEditor","id","settings","target","document","getElementById","root","coreBlocks","filter","block","includes","name","startsWith","setDefaults","fixedToolbar","welcomeGuide","showBlockBreadcrumbs","themeStyles","reapplyBlockTypeFilters","globalThis","IS_GUTENBERG_PLUGIN","enableFSEBlocks","registerBlock","search","searchOptions","render","blockEditorSettings","initialize","reinitializeEditor","since","version","metadata"],"sources":["@wordpress/edit-widgets/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tregisterBlockType,\n\tunstable__bootstrapServerSideBlockDefinitions, // eslint-disable-line camelcase\n\tsetFreeformContentHandlerName,\n\tstore as blocksStore,\n} from '@wordpress/blocks';\nimport { dispatch } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { createRoot } from '@wordpress/element';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalGetCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport { __experimentalFetchLinkSuggestions as fetchLinkSuggestions } from '@wordpress/core-data';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterLegacyWidgetVariations,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport './store';\nimport './filters';\nimport * as widgetArea from './blocks/widget-area';\n\nimport Layout from './components/layout';\nimport {\n\tALLOW_REUSABLE_BLOCKS,\n\tENABLE_EXPERIMENTAL_FSE_BLOCKS,\n} from './constants';\n\nconst disabledBlocks = [\n\t'core/more',\n\t'core/freeform',\n\t'core/template-part',\n\t...( ALLOW_REUSABLE_BLOCKS ? [] : [ 'core/block' ] ),\n];\n\n/**\n * Initializes the block editor in the widgets screen.\n *\n * @param {string} id ID of the root element to render the screen in.\n * @param {Object} settings Block editor settings.\n */\nexport function initializeEditor( id, settings ) {\n\tconst target = document.getElementById( id );\n\tconst root = createRoot( target );\n\n\tconst coreBlocks = __experimentalGetCoreBlocks().filter( ( block ) => {\n\t\treturn ! (\n\t\t\tdisabledBlocks.includes( block.name ) ||\n\t\t\tblock.name.startsWith( 'core/post' ) ||\n\t\t\tblock.name.startsWith( 'core/query' ) ||\n\t\t\tblock.name.startsWith( 'core/site' ) ||\n\t\t\tblock.name.startsWith( 'core/navigation' )\n\t\t);\n\t} );\n\n\tdispatch( preferencesStore ).setDefaults( 'core/edit-widgets', {\n\t\tfixedToolbar: false,\n\t\twelcomeGuide: true,\n\t\tshowBlockBreadcrumbs: true,\n\t\tthemeStyles: true,\n\t} );\n\n\tdispatch( blocksStore ).reapplyBlockTypeFilters();\n\tregisterCoreBlocks( coreBlocks );\n\tregisterLegacyWidgetBlock();\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: ENABLE_EXPERIMENTAL_FSE_BLOCKS,\n\t\t} );\n\t}\n\tregisterLegacyWidgetVariations( settings );\n\tregisterBlock( widgetArea );\n\tregisterWidgetGroupBlock();\n\n\tsettings.__experimentalFetchLinkSuggestions = ( search, searchOptions ) =>\n\t\tfetchLinkSuggestions( search, searchOptions, settings );\n\n\t// As we are unregistering `core/freeform` to avoid the Classic block, we must\n\t// replace it with something as the default freeform content handler. Failure to\n\t// do this will result in errors in the default block parser.\n\t// see: https://github.com/WordPress/gutenberg/issues/33097\n\tsetFreeformContentHandlerName( 'core/html' );\n\n\troot.render( <Layout blockEditorSettings={ settings } /> );\n\n\treturn root;\n}\n\n/**\n * Compatibility export under the old `initialize` name.\n */\nexport const initialize = initializeEditor;\n\nexport function reinitializeEditor() {\n\tdeprecated( 'wp.editWidgets.reinitializeEditor', {\n\t\tsince: '6.2',\n\t\tversion: '6.3',\n\t} );\n}\n\n/**\n * Function to register an individual block.\n *\n * @param {Object} block The block to be registered.\n */\nconst registerBlock = ( block ) => {\n\tif ( ! block ) {\n\t\treturn;\n\t}\n\tconst { metadata, settings, name } = block;\n\tif ( metadata ) {\n\t\tunstable__bootstrapServerSideBlockDefinitions( { [ name ]: metadata } );\n\t}\n\tregisterBlockType( name, settings );\n};\n\nexport { store } from './store';\n"],"mappings":"AAAA;AACA;AACA;AACA,SACC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,aAAa,GAAKb,KAAK,IAAM;EAClC,IAAK,CAAEA,KAAK,EAAG;IACd;EACD;EACA,MAAM;IAAEsB,QAAQ;IAAE7B,QAAQ;IAAES;EAAK,CAAC,GAAGF,KAAK;EAC1C,IAAKsB,QAAQ,EAAG;IACftD,6CAA6C,CAAE;MAAE,CAAEkC,IAAI,GAAIoB;IAAS,CAAE,CAAC;EACxE;EACAvD,iBAAiB,CAAEmC,IAAI,EAAET,QAAS,CAAC;AACpC,CAAC;AAED,SAASvB,KAAK,QAAQ,SAAS","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getListViewToggleRef","state","listViewToggleRef"],"sources":["@wordpress/edit-widgets/src/store/private-selectors.js"],"sourcesContent":["export function getListViewToggleRef( state ) {\n\treturn state.listViewToggleRef;\n}\n"],"mappings":"AAAA,OAAO,SAASA,oBAAoBA,CAAEC,KAAK,EAAG;EAC7C,OAAOA,KAAK,CAACC,iBAAiB;AAC/B","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["getListViewToggleRef","state","listViewToggleRef","getInserterSidebarToggleRef","inserterSidebarToggleRef"],"sources":["@wordpress/edit-widgets/src/store/private-selectors.js"],"sourcesContent":["export function getListViewToggleRef( state ) {\n\treturn state.listViewToggleRef;\n}\n\nexport function getInserterSidebarToggleRef( state ) {\n\treturn state.inserterSidebarToggleRef;\n}\n"],"mappings":"AAAA,OAAO,SAASA,oBAAoBA,CAAEC,KAAK,EAAG;EAC7C,OAAOA,KAAK,CAACC,iBAAiB;AAC/B;AAEA,OAAO,SAASC,2BAA2BA,CAAEF,KAAK,EAAG;EACpD,OAAOA,KAAK,CAACG,wBAAwB;AACtC","ignoreList":[]}
|
|
@@ -88,9 +88,24 @@ export function listViewToggleRef(state = {
|
|
|
88
88
|
}) {
|
|
89
89
|
return state;
|
|
90
90
|
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* This reducer does nothing aside initializing a ref to the inserter sidebar toggle.
|
|
94
|
+
* We will have a unique ref per "editor" instance.
|
|
95
|
+
*
|
|
96
|
+
* @param {Object} state
|
|
97
|
+
* @return {Object} Reference to the inserter sidebar toggle button.
|
|
98
|
+
*/
|
|
99
|
+
export function inserterSidebarToggleRef(state = {
|
|
100
|
+
current: null
|
|
101
|
+
}) {
|
|
102
|
+
return state;
|
|
103
|
+
}
|
|
91
104
|
export default combineReducers({
|
|
92
105
|
blockInserterPanel,
|
|
106
|
+
inserterSidebarToggleRef,
|
|
93
107
|
listViewPanel,
|
|
108
|
+
listViewToggleRef,
|
|
94
109
|
widgetAreasOpenState
|
|
95
110
|
});
|
|
96
111
|
//# sourceMappingURL=reducer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["combineReducers","widgetAreasOpenState","state","action","type","clientId","isOpen","blockInserterPanel","value","listViewPanel","listViewToggleRef","current"],"sources":["@wordpress/edit-widgets/src/store/reducer.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { combineReducers } from '@wordpress/data';\n\n/**\n * Controls the open state of the widget areas.\n *\n * @param {Object} state Redux state.\n * @param {Object} action Redux action.\n *\n * @return {Array} Updated state.\n */\nexport function widgetAreasOpenState( state = {}, action ) {\n\tconst { type } = action;\n\tswitch ( type ) {\n\t\tcase 'SET_WIDGET_AREAS_OPEN_STATE': {\n\t\t\treturn action.widgetAreasOpenState;\n\t\t}\n\t\tcase 'SET_IS_WIDGET_AREA_OPEN': {\n\t\t\tconst { clientId, isOpen } = action;\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ clientId ]: isOpen,\n\t\t\t};\n\t\t}\n\t\tdefault: {\n\t\t\treturn state;\n\t\t}\n\t}\n}\n\n/**\n * Reducer to set the block inserter panel open or closed.\n *\n * Note: this reducer interacts with the list view panel reducer\n * to make sure that only one of the two panels is open at the same time.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n */\nexport function blockInserterPanel( state = false, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'SET_IS_LIST_VIEW_OPENED':\n\t\t\treturn action.isOpen ? false : state;\n\t\tcase 'SET_IS_INSERTER_OPENED':\n\t\t\treturn action.value;\n\t}\n\treturn state;\n}\n\n/**\n * Reducer to set the list view panel open or closed.\n *\n * Note: this reducer interacts with the inserter panel reducer\n * to make sure that only one of the two panels is open at the same time.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n */\nexport function listViewPanel( state = false, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'SET_IS_INSERTER_OPENED':\n\t\t\treturn action.value ? false : state;\n\t\tcase 'SET_IS_LIST_VIEW_OPENED':\n\t\t\treturn action.isOpen;\n\t}\n\treturn state;\n}\n\n/**\n * This reducer does nothing aside initializing a ref to the list view toggle.\n * We will have a unique ref per \"editor\" instance.\n *\n * @param {Object} state\n * @return {Object} Reference to the list view toggle button.\n */\nexport function listViewToggleRef( state = { current: null } ) {\n\treturn state;\n}\n\nexport default combineReducers( {\n\tblockInserterPanel,\n\tlistViewPanel,\n\twidgetAreasOpenState,\n} );\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,eAAe,QAAQ,iBAAiB;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,oBAAoBA,CAAEC,KAAK,GAAG,CAAC,CAAC,EAAEC,MAAM,EAAG;EAC1D,MAAM;IAAEC;EAAK,CAAC,GAAGD,MAAM;EACvB,QAASC,IAAI;IACZ,KAAK,6BAA6B;MAAE;QACnC,OAAOD,MAAM,CAACF,oBAAoB;MACnC;IACA,KAAK,yBAAyB;MAAE;QAC/B,MAAM;UAAEI,QAAQ;UAAEC;QAAO,CAAC,GAAGH,MAAM;QACnC,OAAO;UACN,GAAGD,KAAK;UACR,CAAEG,QAAQ,GAAIC;QACf,CAAC;MACF;IACA;MAAS;QACR,OAAOJ,KAAK;MACb;EACD;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASK,kBAAkBA,CAAEL,KAAK,GAAG,KAAK,EAAEC,MAAM,EAAG;EAC3D,QAASA,MAAM,CAACC,IAAI;IACnB,KAAK,yBAAyB;MAC7B,OAAOD,MAAM,CAACG,MAAM,GAAG,KAAK,GAAGJ,KAAK;IACrC,KAAK,wBAAwB;MAC5B,OAAOC,MAAM,CAACK,KAAK;EACrB;EACA,OAAON,KAAK;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASO,aAAaA,CAAEP,KAAK,GAAG,KAAK,EAAEC,MAAM,EAAG;EACtD,QAASA,MAAM,CAACC,IAAI;IACnB,KAAK,wBAAwB;MAC5B,OAAOD,MAAM,CAACK,KAAK,GAAG,KAAK,GAAGN,KAAK;IACpC,KAAK,yBAAyB;MAC7B,OAAOC,MAAM,CAACG,MAAM;EACtB;EACA,OAAOJ,KAAK;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASQ,iBAAiBA,CAAER,KAAK,GAAG;EAAES,OAAO,EAAE;AAAK,CAAC,EAAG;EAC9D,OAAOT,KAAK;AACb;AAEA,eAAeF,eAAe,CAAE;EAC/BO,kBAAkB;
|
|
1
|
+
{"version":3,"names":["combineReducers","widgetAreasOpenState","state","action","type","clientId","isOpen","blockInserterPanel","value","listViewPanel","listViewToggleRef","current","inserterSidebarToggleRef"],"sources":["@wordpress/edit-widgets/src/store/reducer.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { combineReducers } from '@wordpress/data';\n\n/**\n * Controls the open state of the widget areas.\n *\n * @param {Object} state Redux state.\n * @param {Object} action Redux action.\n *\n * @return {Array} Updated state.\n */\nexport function widgetAreasOpenState( state = {}, action ) {\n\tconst { type } = action;\n\tswitch ( type ) {\n\t\tcase 'SET_WIDGET_AREAS_OPEN_STATE': {\n\t\t\treturn action.widgetAreasOpenState;\n\t\t}\n\t\tcase 'SET_IS_WIDGET_AREA_OPEN': {\n\t\t\tconst { clientId, isOpen } = action;\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ clientId ]: isOpen,\n\t\t\t};\n\t\t}\n\t\tdefault: {\n\t\t\treturn state;\n\t\t}\n\t}\n}\n\n/**\n * Reducer to set the block inserter panel open or closed.\n *\n * Note: this reducer interacts with the list view panel reducer\n * to make sure that only one of the two panels is open at the same time.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n */\nexport function blockInserterPanel( state = false, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'SET_IS_LIST_VIEW_OPENED':\n\t\t\treturn action.isOpen ? false : state;\n\t\tcase 'SET_IS_INSERTER_OPENED':\n\t\t\treturn action.value;\n\t}\n\treturn state;\n}\n\n/**\n * Reducer to set the list view panel open or closed.\n *\n * Note: this reducer interacts with the inserter panel reducer\n * to make sure that only one of the two panels is open at the same time.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n */\nexport function listViewPanel( state = false, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'SET_IS_INSERTER_OPENED':\n\t\t\treturn action.value ? false : state;\n\t\tcase 'SET_IS_LIST_VIEW_OPENED':\n\t\t\treturn action.isOpen;\n\t}\n\treturn state;\n}\n\n/**\n * This reducer does nothing aside initializing a ref to the list view toggle.\n * We will have a unique ref per \"editor\" instance.\n *\n * @param {Object} state\n * @return {Object} Reference to the list view toggle button.\n */\nexport function listViewToggleRef( state = { current: null } ) {\n\treturn state;\n}\n\n/**\n * This reducer does nothing aside initializing a ref to the inserter sidebar toggle.\n * We will have a unique ref per \"editor\" instance.\n *\n * @param {Object} state\n * @return {Object} Reference to the inserter sidebar toggle button.\n */\nexport function inserterSidebarToggleRef( state = { current: null } ) {\n\treturn state;\n}\n\nexport default combineReducers( {\n\tblockInserterPanel,\n\tinserterSidebarToggleRef,\n\tlistViewPanel,\n\tlistViewToggleRef,\n\twidgetAreasOpenState,\n} );\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,eAAe,QAAQ,iBAAiB;;AAEjD;AACA;A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A,OAAO,SAASU,wBAAwBA,CAAEV,KAAK,GAAG;EAAES,OAAO,EAAE;AAAK,CAAC,EAAG;EACrE,OAAOT,KAAK;AACb;AAEA,eAAeF,eAAe,CAAE;EAC/BO,kBAAkB;EAClBK,wBAAwB;EACxBH,aAAa;EACbC,iBAAiB;EACjBT;AACD,CAAE,CAAC","ignoreList":[]}
|
|
@@ -123,7 +123,8 @@
|
|
|
123
123
|
|
|
124
124
|
.interface-complementary-area-header {
|
|
125
125
|
background: #fff;
|
|
126
|
-
padding-left:
|
|
126
|
+
padding-left: 12px;
|
|
127
|
+
gap: 8px;
|
|
127
128
|
}
|
|
128
129
|
.interface-complementary-area-header .interface-complementary-area-header__title {
|
|
129
130
|
margin: 0;
|
|
@@ -141,12 +142,6 @@
|
|
|
141
142
|
}
|
|
142
143
|
}
|
|
143
144
|
|
|
144
|
-
@media (min-width: 782px) {
|
|
145
|
-
.components-panel__header + .interface-complementary-area-header {
|
|
146
|
-
margin-top: 0;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
145
|
.interface-complementary-area {
|
|
151
146
|
background: #fff;
|
|
152
147
|
color: #1e1e1e;
|
|
@@ -173,11 +168,11 @@
|
|
|
173
168
|
top: 0;
|
|
174
169
|
z-index: 1;
|
|
175
170
|
}
|
|
176
|
-
.interface-complementary-area .components-panel__header.
|
|
171
|
+
.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs {
|
|
177
172
|
top: 48px;
|
|
178
173
|
}
|
|
179
174
|
@media (min-width: 782px) {
|
|
180
|
-
.interface-complementary-area .components-panel__header.
|
|
175
|
+
.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs {
|
|
181
176
|
top: 0;
|
|
182
177
|
}
|
|
183
178
|
}
|
|
@@ -186,6 +181,7 @@
|
|
|
186
181
|
}
|
|
187
182
|
.interface-complementary-area h2 {
|
|
188
183
|
font-size: 13px;
|
|
184
|
+
font-weight: 500;
|
|
189
185
|
color: #1e1e1e;
|
|
190
186
|
margin-bottom: 1.5em;
|
|
191
187
|
}
|
|
@@ -241,7 +237,7 @@ html.interface-interface-skeleton__html-container {
|
|
|
241
237
|
width: 100%;
|
|
242
238
|
}
|
|
243
239
|
@media (min-width: 782px) {
|
|
244
|
-
html.interface-interface-skeleton__html-container {
|
|
240
|
+
html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)) {
|
|
245
241
|
position: initial;
|
|
246
242
|
width: initial;
|
|
247
243
|
}
|
|
@@ -362,29 +358,34 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
362
358
|
}
|
|
363
359
|
|
|
364
360
|
.interface-interface-skeleton__sidebar {
|
|
361
|
+
border-top: 1px solid #e0e0e0;
|
|
365
362
|
overflow: hidden;
|
|
366
363
|
}
|
|
367
364
|
@media (min-width: 782px) {
|
|
368
365
|
.interface-interface-skeleton__sidebar {
|
|
369
|
-
|
|
366
|
+
box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.133);
|
|
367
|
+
outline: 1px solid transparent;
|
|
370
368
|
}
|
|
371
369
|
}
|
|
372
370
|
|
|
373
371
|
.interface-interface-skeleton__secondary-sidebar {
|
|
372
|
+
border-top: 1px solid #e0e0e0;
|
|
374
373
|
left: 0;
|
|
375
374
|
}
|
|
376
375
|
@media (min-width: 782px) {
|
|
377
376
|
.interface-interface-skeleton__secondary-sidebar {
|
|
378
|
-
|
|
377
|
+
box-shadow: -1px 1px 0 0 rgba(0, 0, 0, 0.133);
|
|
378
|
+
outline: 1px solid transparent;
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
.interface-interface-skeleton__header {
|
|
383
383
|
flex-shrink: 0;
|
|
384
384
|
height: auto;
|
|
385
|
-
|
|
385
|
+
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.133);
|
|
386
386
|
z-index: 30;
|
|
387
387
|
color: #1e1e1e;
|
|
388
|
+
outline: 1px solid transparent;
|
|
388
389
|
}
|
|
389
390
|
|
|
390
391
|
.interface-interface-skeleton__footer {
|
|
@@ -797,7 +798,7 @@ body.is-fullscreen-mode .edit-widgets-notices__snackbar {
|
|
|
797
798
|
.edit-widgets-layout__inserter-panel-content {
|
|
798
799
|
height: calc(100% - 36px - 8px);
|
|
799
800
|
}
|
|
800
|
-
.edit-widgets-layout__inserter-panel-content .block-editor-
|
|
801
|
+
.edit-widgets-layout__inserter-panel-content .block-editor-inserter__tablist-and-close {
|
|
801
802
|
display: none;
|
|
802
803
|
}
|
|
803
804
|
@media (min-width: 782px) {
|
package/build-style/style.css
CHANGED
|
@@ -123,7 +123,8 @@
|
|
|
123
123
|
|
|
124
124
|
.interface-complementary-area-header {
|
|
125
125
|
background: #fff;
|
|
126
|
-
padding-right:
|
|
126
|
+
padding-right: 12px;
|
|
127
|
+
gap: 8px;
|
|
127
128
|
}
|
|
128
129
|
.interface-complementary-area-header .interface-complementary-area-header__title {
|
|
129
130
|
margin: 0;
|
|
@@ -141,12 +142,6 @@
|
|
|
141
142
|
}
|
|
142
143
|
}
|
|
143
144
|
|
|
144
|
-
@media (min-width: 782px) {
|
|
145
|
-
.components-panel__header + .interface-complementary-area-header {
|
|
146
|
-
margin-top: 0;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
145
|
.interface-complementary-area {
|
|
151
146
|
background: #fff;
|
|
152
147
|
color: #1e1e1e;
|
|
@@ -173,11 +168,11 @@
|
|
|
173
168
|
top: 0;
|
|
174
169
|
z-index: 1;
|
|
175
170
|
}
|
|
176
|
-
.interface-complementary-area .components-panel__header.
|
|
171
|
+
.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs {
|
|
177
172
|
top: 48px;
|
|
178
173
|
}
|
|
179
174
|
@media (min-width: 782px) {
|
|
180
|
-
.interface-complementary-area .components-panel__header.
|
|
175
|
+
.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs {
|
|
181
176
|
top: 0;
|
|
182
177
|
}
|
|
183
178
|
}
|
|
@@ -186,6 +181,7 @@
|
|
|
186
181
|
}
|
|
187
182
|
.interface-complementary-area h2 {
|
|
188
183
|
font-size: 13px;
|
|
184
|
+
font-weight: 500;
|
|
189
185
|
color: #1e1e1e;
|
|
190
186
|
margin-bottom: 1.5em;
|
|
191
187
|
}
|
|
@@ -241,7 +237,7 @@ html.interface-interface-skeleton__html-container {
|
|
|
241
237
|
width: 100%;
|
|
242
238
|
}
|
|
243
239
|
@media (min-width: 782px) {
|
|
244
|
-
html.interface-interface-skeleton__html-container {
|
|
240
|
+
html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)) {
|
|
245
241
|
position: initial;
|
|
246
242
|
width: initial;
|
|
247
243
|
}
|
|
@@ -362,29 +358,34 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
362
358
|
}
|
|
363
359
|
|
|
364
360
|
.interface-interface-skeleton__sidebar {
|
|
361
|
+
border-top: 1px solid #e0e0e0;
|
|
365
362
|
overflow: hidden;
|
|
366
363
|
}
|
|
367
364
|
@media (min-width: 782px) {
|
|
368
365
|
.interface-interface-skeleton__sidebar {
|
|
369
|
-
|
|
366
|
+
box-shadow: -1px 1px 0 0 rgba(0, 0, 0, 0.133);
|
|
367
|
+
outline: 1px solid transparent;
|
|
370
368
|
}
|
|
371
369
|
}
|
|
372
370
|
|
|
373
371
|
.interface-interface-skeleton__secondary-sidebar {
|
|
372
|
+
border-top: 1px solid #e0e0e0;
|
|
374
373
|
right: 0;
|
|
375
374
|
}
|
|
376
375
|
@media (min-width: 782px) {
|
|
377
376
|
.interface-interface-skeleton__secondary-sidebar {
|
|
378
|
-
|
|
377
|
+
box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.133);
|
|
378
|
+
outline: 1px solid transparent;
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
.interface-interface-skeleton__header {
|
|
383
383
|
flex-shrink: 0;
|
|
384
384
|
height: auto;
|
|
385
|
-
|
|
385
|
+
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.133);
|
|
386
386
|
z-index: 30;
|
|
387
387
|
color: #1e1e1e;
|
|
388
|
+
outline: 1px solid transparent;
|
|
388
389
|
}
|
|
389
390
|
|
|
390
391
|
.interface-interface-skeleton__footer {
|
|
@@ -797,7 +798,7 @@ body.is-fullscreen-mode .edit-widgets-notices__snackbar {
|
|
|
797
798
|
.edit-widgets-layout__inserter-panel-content {
|
|
798
799
|
height: calc(100% - 36px - 8px);
|
|
799
800
|
}
|
|
800
|
-
.edit-widgets-layout__inserter-panel-content .block-editor-
|
|
801
|
+
.edit-widgets-layout__inserter-panel-content .block-editor-inserter__tablist-and-close {
|
|
801
802
|
display: none;
|
|
802
803
|
}
|
|
803
804
|
@media (min-width: 782px) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-widgets",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Widgets Page module for WordPress..",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -20,40 +20,41 @@
|
|
|
20
20
|
"url": "https://github.com/WordPress/gutenberg/issues"
|
|
21
21
|
},
|
|
22
22
|
"engines": {
|
|
23
|
-
"node": ">=12"
|
|
23
|
+
"node": ">=18.12.0",
|
|
24
|
+
"npm": ">=8.19.2"
|
|
24
25
|
},
|
|
25
26
|
"main": "build/index.js",
|
|
26
27
|
"module": "build-module/index.js",
|
|
27
28
|
"react-native": "src/index",
|
|
28
29
|
"dependencies": {
|
|
29
30
|
"@babel/runtime": "^7.16.0",
|
|
30
|
-
"@wordpress/api-fetch": "^
|
|
31
|
-
"@wordpress/block-editor": "^
|
|
32
|
-
"@wordpress/block-library": "^
|
|
33
|
-
"@wordpress/blocks": "^
|
|
34
|
-
"@wordpress/components": "^
|
|
35
|
-
"@wordpress/compose": "^
|
|
36
|
-
"@wordpress/core-data": "^
|
|
37
|
-
"@wordpress/data": "^
|
|
38
|
-
"@wordpress/deprecated": "^
|
|
39
|
-
"@wordpress/dom": "^
|
|
40
|
-
"@wordpress/element": "^
|
|
41
|
-
"@wordpress/hooks": "^
|
|
42
|
-
"@wordpress/i18n": "^
|
|
43
|
-
"@wordpress/icons": "^
|
|
44
|
-
"@wordpress/interface": "^
|
|
45
|
-
"@wordpress/keyboard-shortcuts": "^
|
|
46
|
-
"@wordpress/keycodes": "^
|
|
47
|
-
"@wordpress/media-utils": "^
|
|
48
|
-
"@wordpress/notices": "^
|
|
49
|
-
"@wordpress/patterns": "^
|
|
50
|
-
"@wordpress/plugins": "^
|
|
51
|
-
"@wordpress/preferences": "^
|
|
52
|
-
"@wordpress/private-apis": "^0.
|
|
53
|
-
"@wordpress/reusable-blocks": "^
|
|
54
|
-
"@wordpress/url": "^
|
|
55
|
-
"@wordpress/widgets": "^
|
|
56
|
-
"
|
|
31
|
+
"@wordpress/api-fetch": "^7.0.0",
|
|
32
|
+
"@wordpress/block-editor": "^13.0.0",
|
|
33
|
+
"@wordpress/block-library": "^9.0.0",
|
|
34
|
+
"@wordpress/blocks": "^13.0.0",
|
|
35
|
+
"@wordpress/components": "^28.0.0",
|
|
36
|
+
"@wordpress/compose": "^7.0.0",
|
|
37
|
+
"@wordpress/core-data": "^7.0.0",
|
|
38
|
+
"@wordpress/data": "^10.0.0",
|
|
39
|
+
"@wordpress/deprecated": "^4.0.0",
|
|
40
|
+
"@wordpress/dom": "^4.0.0",
|
|
41
|
+
"@wordpress/element": "^6.0.0",
|
|
42
|
+
"@wordpress/hooks": "^4.0.0",
|
|
43
|
+
"@wordpress/i18n": "^5.0.0",
|
|
44
|
+
"@wordpress/icons": "^10.0.0",
|
|
45
|
+
"@wordpress/interface": "^6.0.0",
|
|
46
|
+
"@wordpress/keyboard-shortcuts": "^5.0.0",
|
|
47
|
+
"@wordpress/keycodes": "^4.0.0",
|
|
48
|
+
"@wordpress/media-utils": "^5.0.0",
|
|
49
|
+
"@wordpress/notices": "^5.0.0",
|
|
50
|
+
"@wordpress/patterns": "^2.0.0",
|
|
51
|
+
"@wordpress/plugins": "^7.0.0",
|
|
52
|
+
"@wordpress/preferences": "^4.0.0",
|
|
53
|
+
"@wordpress/private-apis": "^1.0.0",
|
|
54
|
+
"@wordpress/reusable-blocks": "^5.0.0",
|
|
55
|
+
"@wordpress/url": "^4.0.0",
|
|
56
|
+
"@wordpress/widgets": "^4.0.0",
|
|
57
|
+
"clsx": "^2.1.1"
|
|
57
58
|
},
|
|
58
59
|
"peerDependencies": {
|
|
59
60
|
"react": "^18.0.0",
|
|
@@ -62,5 +63,5 @@
|
|
|
62
63
|
"publishConfig": {
|
|
63
64
|
"access": "public"
|
|
64
65
|
},
|
|
65
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "2f30cddff15723ac7017fd009fc5913b7b419400"
|
|
66
67
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import clsx from 'clsx';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
@@ -38,7 +38,7 @@ export default function WidgetAreaInnerBlocks( { id } ) {
|
|
|
38
38
|
return (
|
|
39
39
|
<div
|
|
40
40
|
data-widget-area-id={ id }
|
|
41
|
-
className={
|
|
41
|
+
className={ clsx(
|
|
42
42
|
'wp-block-widget-area__inner-blocks block-editor-inner-blocks editor-styles-wrapper',
|
|
43
43
|
{
|
|
44
44
|
'wp-block-widget-area__highlight-drop-zone':
|