@wordpress/edit-site 5.5.0 → 5.6.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 +2 -0
- package/build/components/add-new-template/new-template.js +16 -10
- package/build/components/add-new-template/new-template.js.map +1 -1
- package/build/components/app/index.js +4 -2
- package/build/components/app/index.js.map +1 -1
- package/build/components/block-editor/editor-canvas.js +2 -1
- package/build/components/block-editor/editor-canvas.js.map +1 -1
- package/build/components/editor/index.js +2 -4
- package/build/components/editor/index.js.map +1 -1
- package/build/components/global-styles/border-panel.js +20 -159
- package/build/components/global-styles/border-panel.js.map +1 -1
- package/build/components/global-styles/context-menu.js +2 -3
- package/build/components/global-styles/context-menu.js.map +1 -1
- package/build/components/global-styles/hooks.js +11 -26
- package/build/components/global-styles/hooks.js.map +1 -1
- package/build/components/global-styles/screen-block-list.js +2 -3
- package/build/components/global-styles/screen-block-list.js.map +1 -1
- package/build/components/global-styles/screen-border.js +13 -5
- package/build/components/global-styles/screen-border.js.map +1 -1
- package/build/components/global-styles/screen-root.js +2 -1
- package/build/components/global-styles/screen-root.js.map +1 -1
- package/build/components/global-styles/screen-style-variations.js +2 -1
- package/build/components/global-styles/screen-style-variations.js.map +1 -1
- package/build/components/layout/index.js +7 -0
- package/build/components/layout/index.js.map +1 -1
- package/build/components/list/added-by.js +128 -136
- package/build/components/list/added-by.js.map +1 -1
- package/build/components/list/index.js +2 -1
- package/build/components/list/index.js.map +1 -1
- package/build/components/list/table.js +6 -5
- package/build/components/list/table.js.map +1 -1
- package/build/components/routes/link.js +4 -1
- package/build/components/routes/link.js.map +1 -1
- package/build/components/save-button/index.js +2 -5
- package/build/components/save-button/index.js.map +1 -1
- package/build/components/save-hub/index.js +82 -0
- package/build/components/save-hub/index.js.map +1 -0
- package/build/components/sidebar/index.js +2 -4
- package/build/components/sidebar/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen/index.js +5 -2
- package/build/components/sidebar-navigation-screen/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-main/index.js +13 -13
- package/build/components/sidebar-navigation-screen-main/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-item/index.js +9 -14
- package/build/components/sidebar-navigation-screen-navigation-item/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menus/index.js +87 -10
- package/build/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menus/loader.js +19 -0
- package/build/components/sidebar-navigation-screen-navigation-menus/loader.js.map +1 -0
- package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +77 -0
- package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +1 -0
- package/build/components/sidebar-navigation-screen-template/index.js +59 -10
- package/build/components/sidebar-navigation-screen-template/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-templates/index.js +5 -2
- package/build/components/sidebar-navigation-screen-templates/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-templates-browse/index.js +6 -3
- package/build/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
- package/build/components/site-hub/index.js +3 -1
- package/build/components/site-hub/index.js.map +1 -1
- package/build/components/style-book/index.js +134 -19
- package/build/components/style-book/index.js.map +1 -1
- package/build/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +24 -8
- package/build/components/sync-state-with-url/use-sync-canvas-mode-with-url.js.map +1 -1
- package/build/components/sync-state-with-url/use-sync-path-with-url.js +9 -7
- package/build/components/sync-state-with-url/use-sync-path-with-url.js.map +1 -1
- package/build/components/template-details/index.js +0 -3
- package/build/components/template-details/index.js.map +1 -1
- package/build/components/template-part-converter/convert-to-regular.js +8 -12
- package/build/components/template-part-converter/convert-to-regular.js.map +1 -1
- package/build/components/template-part-converter/convert-to-template-part.js +2 -2
- package/build/components/template-part-converter/convert-to-template-part.js.map +1 -1
- package/build/components/template-part-converter/index.js +19 -14
- package/build/components/template-part-converter/index.js.map +1 -1
- package/build/components/use-edited-entity-record/index.js +6 -6
- package/build/components/use-edited-entity-record/index.js.map +1 -1
- package/build/index.js +3 -0
- package/build/index.js.map +1 -1
- package/build/utils/history.js +8 -2
- package/build/utils/history.js.map +1 -1
- package/build-module/components/add-new-template/new-template.js +18 -11
- package/build-module/components/add-new-template/new-template.js.map +1 -1
- package/build-module/components/app/index.js +3 -2
- package/build-module/components/app/index.js.map +1 -1
- package/build-module/components/block-editor/editor-canvas.js +2 -1
- package/build-module/components/block-editor/editor-canvas.js.map +1 -1
- package/build-module/components/editor/index.js +2 -3
- package/build-module/components/editor/index.js.map +1 -1
- package/build-module/components/global-styles/border-panel.js +21 -157
- package/build-module/components/global-styles/border-panel.js.map +1 -1
- package/build-module/components/global-styles/context-menu.js +2 -2
- package/build-module/components/global-styles/context-menu.js.map +1 -1
- package/build-module/components/global-styles/hooks.js +11 -26
- package/build-module/components/global-styles/hooks.js.map +1 -1
- package/build-module/components/global-styles/screen-block-list.js +2 -2
- package/build-module/components/global-styles/screen-block-list.js.map +1 -1
- package/build-module/components/global-styles/screen-border.js +11 -2
- package/build-module/components/global-styles/screen-border.js.map +1 -1
- package/build-module/components/global-styles/screen-root.js +2 -1
- package/build-module/components/global-styles/screen-root.js.map +1 -1
- package/build-module/components/global-styles/screen-style-variations.js +2 -1
- package/build-module/components/global-styles/screen-style-variations.js.map +1 -1
- package/build-module/components/layout/index.js +7 -0
- package/build-module/components/layout/index.js.map +1 -1
- package/build-module/components/list/added-by.js +126 -137
- package/build-module/components/list/added-by.js.map +1 -1
- package/build-module/components/list/index.js +2 -1
- package/build-module/components/list/index.js.map +1 -1
- package/build-module/components/list/table.js +6 -5
- package/build-module/components/list/table.js.map +1 -1
- package/build-module/components/routes/link.js +5 -2
- package/build-module/components/routes/link.js.map +1 -1
- package/build-module/components/save-button/index.js +2 -5
- package/build-module/components/save-button/index.js.map +1 -1
- package/build-module/components/save-hub/index.js +68 -0
- package/build-module/components/save-hub/index.js.map +1 -0
- package/build-module/components/sidebar/index.js +2 -4
- package/build-module/components/sidebar/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen/index.js +5 -2
- package/build-module/components/sidebar-navigation-screen/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-main/index.js +13 -13
- package/build-module/components/sidebar-navigation-screen-main/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-item/index.js +13 -18
- package/build-module/components/sidebar-navigation-screen-navigation-item/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js +81 -10
- package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menus/loader.js +11 -0
- package/build-module/components/sidebar-navigation-screen-navigation-menus/loader.js.map +1 -0
- package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +66 -0
- package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +1 -0
- package/build-module/components/sidebar-navigation-screen-template/index.js +60 -13
- package/build-module/components/sidebar-navigation-screen-template/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-templates/index.js +5 -2
- package/build-module/components/sidebar-navigation-screen-templates/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-templates-browse/index.js +6 -3
- package/build-module/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
- package/build-module/components/site-hub/index.js +3 -1
- package/build-module/components/site-hub/index.js.map +1 -1
- package/build-module/components/style-book/index.js +135 -22
- package/build-module/components/style-book/index.js.map +1 -1
- package/build-module/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +24 -8
- package/build-module/components/sync-state-with-url/use-sync-canvas-mode-with-url.js.map +1 -1
- package/build-module/components/sync-state-with-url/use-sync-path-with-url.js +9 -7
- package/build-module/components/sync-state-with-url/use-sync-path-with-url.js.map +1 -1
- package/build-module/components/template-details/index.js +0 -3
- package/build-module/components/template-details/index.js.map +1 -1
- package/build-module/components/template-part-converter/convert-to-regular.js +9 -13
- package/build-module/components/template-part-converter/convert-to-regular.js.map +1 -1
- package/build-module/components/template-part-converter/convert-to-template-part.js +3 -3
- package/build-module/components/template-part-converter/convert-to-template-part.js.map +1 -1
- package/build-module/components/template-part-converter/index.js +20 -15
- package/build-module/components/template-part-converter/index.js.map +1 -1
- package/build-module/components/use-edited-entity-record/index.js +6 -6
- package/build-module/components/use-edited-entity-record/index.js.map +1 -1
- package/build-module/index.js +4 -1
- package/build-module/index.js.map +1 -1
- package/build-module/utils/history.js +9 -3
- package/build-module/utils/history.js.map +1 -1
- package/build-style/style-rtl.css +168 -111
- package/build-style/style.css +168 -111
- package/package.json +31 -31
- package/src/components/add-new-template/new-template.js +57 -32
- package/src/components/add-new-template/style.scss +12 -1
- package/src/components/app/index.js +9 -6
- package/src/components/block-editor/editor-canvas.js +2 -1
- package/src/components/editor/index.js +61 -65
- package/src/components/global-styles/border-panel.js +24 -199
- package/src/components/global-styles/context-menu.js +2 -2
- package/src/components/global-styles/hooks.js +12 -36
- package/src/components/global-styles/screen-block-list.js +2 -2
- package/src/components/global-styles/screen-border.js +9 -2
- package/src/components/global-styles/screen-root.js +1 -1
- package/src/components/global-styles/screen-style-variations.js +5 -1
- package/src/components/global-styles/style.scss +10 -0
- package/src/components/layout/index.js +15 -0
- package/src/components/layout/style.scss +1 -3
- package/src/components/list/added-by.js +144 -140
- package/src/components/list/index.js +3 -1
- package/src/components/list/table.js +7 -4
- package/src/components/routes/link.js +9 -2
- package/src/components/save-button/index.js +2 -2
- package/src/components/save-hub/index.js +78 -0
- package/src/components/save-hub/style.scss +15 -0
- package/src/components/sidebar/index.js +2 -3
- package/src/components/sidebar/style.scss +4 -3
- package/src/components/sidebar-button/style.scss +2 -1
- package/src/components/sidebar-navigation-item/style.scss +1 -23
- package/src/components/sidebar-navigation-screen/index.js +6 -0
- package/src/components/sidebar-navigation-screen/style.scss +15 -0
- package/src/components/sidebar-navigation-screen-main/index.js +21 -8
- package/src/components/sidebar-navigation-screen-navigation-item/index.js +30 -21
- package/src/components/sidebar-navigation-screen-navigation-menus/index.js +92 -9
- package/src/components/sidebar-navigation-screen-navigation-menus/loader.js +9 -0
- package/src/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +78 -0
- package/src/components/sidebar-navigation-screen-navigation-menus/style.scss +108 -1
- package/src/components/sidebar-navigation-screen-template/index.js +82 -11
- package/src/components/sidebar-navigation-screen-template/style.scss +25 -0
- package/src/components/sidebar-navigation-screen-templates/index.js +7 -0
- package/src/components/sidebar-navigation-screen-templates-browse/index.js +12 -1
- package/src/components/site-hub/index.js +5 -1
- package/src/components/site-hub/style.scss +5 -1
- package/src/components/style-book/index.js +209 -54
- package/src/components/style-book/style.scss +1 -45
- package/src/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +38 -8
- package/src/components/sync-state-with-url/use-sync-path-with-url.js +12 -7
- package/src/components/template-details/index.js +0 -3
- package/src/components/template-part-converter/convert-to-regular.js +10 -17
- package/src/components/template-part-converter/convert-to-template-part.js +9 -16
- package/src/components/template-part-converter/index.js +28 -12
- package/src/components/use-edited-entity-record/index.js +26 -18
- package/src/index.js +5 -1
- package/src/store/test/actions.js +0 -2
- package/src/style.scss +2 -1
- package/src/utils/history.js +13 -9
- package/build/components/navigation-inspector/index.js +0 -161
- package/build/components/navigation-inspector/index.js.map +0 -1
- package/build/components/navigation-inspector/navigation-menu.js +0 -79
- package/build/components/navigation-inspector/navigation-menu.js.map +0 -1
- package/build-module/components/navigation-inspector/index.js +0 -146
- package/build-module/components/navigation-inspector/index.js.map +0 -1
- package/build-module/components/navigation-inspector/navigation-menu.js +0 -69
- package/build-module/components/navigation-inspector/navigation-menu.js.map +0 -1
- package/src/components/navigation-inspector/index.js +0 -191
- package/src/components/navigation-inspector/navigation-menu.js +0 -84
- package/src/components/navigation-inspector/style.scss +0 -46
|
@@ -4,7 +4,7 @@ import { createElement } from "@wordpress/element";
|
|
|
4
4
|
* WordPress dependencies
|
|
5
5
|
*/
|
|
6
6
|
import { useSelect } from '@wordpress/data';
|
|
7
|
-
import { store as blockEditorStore } from '@wordpress/block-editor';
|
|
7
|
+
import { BlockSettingsMenuControls, store as blockEditorStore } from '@wordpress/block-editor';
|
|
8
8
|
/**
|
|
9
9
|
* Internal dependencies
|
|
10
10
|
*/
|
|
@@ -12,26 +12,31 @@ import { store as blockEditorStore } from '@wordpress/block-editor';
|
|
|
12
12
|
import ConvertToRegularBlocks from './convert-to-regular';
|
|
13
13
|
import ConvertToTemplatePart from './convert-to-template-part';
|
|
14
14
|
export default function TemplatePartConverter() {
|
|
15
|
+
return createElement(BlockSettingsMenuControls, null, _ref => {
|
|
16
|
+
let {
|
|
17
|
+
selectedClientIds,
|
|
18
|
+
onClose
|
|
19
|
+
} = _ref;
|
|
20
|
+
return createElement(TemplatePartConverterMenuItem, {
|
|
21
|
+
clientIds: selectedClientIds,
|
|
22
|
+
onClose: onClose
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function TemplatePartConverterMenuItem(_ref2) {
|
|
15
28
|
var _blocks$;
|
|
16
29
|
|
|
17
|
-
|
|
30
|
+
let {
|
|
18
31
|
clientIds,
|
|
19
|
-
|
|
20
|
-
} =
|
|
21
|
-
|
|
22
|
-
getSelectedBlockClientIds,
|
|
23
|
-
getBlocksByClientId
|
|
24
|
-
} = select(blockEditorStore);
|
|
25
|
-
const selectedBlockClientIds = getSelectedBlockClientIds();
|
|
26
|
-
return {
|
|
27
|
-
clientIds: selectedBlockClientIds,
|
|
28
|
-
blocks: getBlocksByClientId(selectedBlockClientIds)
|
|
29
|
-
};
|
|
30
|
-
}, []); // Allow converting a single template part to standard blocks.
|
|
32
|
+
onClose
|
|
33
|
+
} = _ref2;
|
|
34
|
+
const blocks = useSelect(select => select(blockEditorStore).getBlocksByClientId(clientIds), [clientIds]); // Allow converting a single template part to standard blocks.
|
|
31
35
|
|
|
32
36
|
if (blocks.length === 1 && ((_blocks$ = blocks[0]) === null || _blocks$ === void 0 ? void 0 : _blocks$.name) === 'core/template-part') {
|
|
33
37
|
return createElement(ConvertToRegularBlocks, {
|
|
34
|
-
clientId: clientIds[0]
|
|
38
|
+
clientId: clientIds[0],
|
|
39
|
+
onClose: onClose
|
|
35
40
|
});
|
|
36
41
|
}
|
|
37
42
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/edit-site/src/components/template-part-converter/index.js"],"names":["useSelect","store","blockEditorStore","ConvertToRegularBlocks","ConvertToTemplatePart","TemplatePartConverter","
|
|
1
|
+
{"version":3,"sources":["@wordpress/edit-site/src/components/template-part-converter/index.js"],"names":["useSelect","BlockSettingsMenuControls","store","blockEditorStore","ConvertToRegularBlocks","ConvertToTemplatePart","TemplatePartConverter","selectedClientIds","onClose","TemplatePartConverterMenuItem","clientIds","blocks","select","getBlocksByClientId","length","name"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,SAAT,QAA0B,iBAA1B;AACA,SACCC,yBADD,EAECC,KAAK,IAAIC,gBAFV,QAGO,yBAHP;AAKA;AACA;AACA;;AACA,OAAOC,sBAAP,MAAmC,sBAAnC;AACA,OAAOC,qBAAP,MAAkC,4BAAlC;AAEA,eAAe,SAASC,qBAAT,GAAiC;AAC/C,SACC,cAAC,yBAAD,QACG;AAAA,QAAE;AAAEC,MAAAA,iBAAF;AAAqBC,MAAAA;AAArB,KAAF;AAAA,WACD,cAAC,6BAAD;AACC,MAAA,SAAS,EAAGD,iBADb;AAEC,MAAA,OAAO,EAAGC;AAFX,MADC;AAAA,GADH,CADD;AAUA;;AAED,SAASC,6BAAT,QAAiE;AAAA;;AAAA,MAAzB;AAAEC,IAAAA,SAAF;AAAaF,IAAAA;AAAb,GAAyB;AAChE,QAAMG,MAAM,GAAGX,SAAS,CACrBY,MAAF,IACCA,MAAM,CAAET,gBAAF,CAAN,CAA2BU,mBAA3B,CAAgDH,SAAhD,CAFsB,EAGvB,CAAEA,SAAF,CAHuB,CAAxB,CADgE,CAOhE;;AACA,MAAKC,MAAM,CAACG,MAAP,KAAkB,CAAlB,IAAuB,aAAAH,MAAM,CAAE,CAAF,CAAN,sDAAaI,IAAb,MAAsB,oBAAlD,EAAyE;AACxE,WACC,cAAC,sBAAD;AACC,MAAA,QAAQ,EAAGL,SAAS,CAAE,CAAF,CADrB;AAEC,MAAA,OAAO,EAAGF;AAFX,MADD;AAMA;;AACD,SAAO,cAAC,qBAAD;AAAuB,IAAA,SAAS,EAAGE,SAAnC;AAA+C,IAAA,MAAM,EAAGC;AAAxD,IAAP;AACA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport {\n\tBlockSettingsMenuControls,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport ConvertToRegularBlocks from './convert-to-regular';\nimport ConvertToTemplatePart from './convert-to-template-part';\n\nexport default function TemplatePartConverter() {\n\treturn (\n\t\t<BlockSettingsMenuControls>\n\t\t\t{ ( { selectedClientIds, onClose } ) => (\n\t\t\t\t<TemplatePartConverterMenuItem\n\t\t\t\t\tclientIds={ selectedClientIds }\n\t\t\t\t\tonClose={ onClose }\n\t\t\t\t/>\n\t\t\t) }\n\t\t</BlockSettingsMenuControls>\n\t);\n}\n\nfunction TemplatePartConverterMenuItem( { clientIds, onClose } ) {\n\tconst blocks = useSelect(\n\t\t( select ) =>\n\t\t\tselect( blockEditorStore ).getBlocksByClientId( clientIds ),\n\t\t[ clientIds ]\n\t);\n\n\t// Allow converting a single template part to standard blocks.\n\tif ( blocks.length === 1 && blocks[ 0 ]?.name === 'core/template-part' ) {\n\t\treturn (\n\t\t\t<ConvertToRegularBlocks\n\t\t\t\tclientId={ clientIds[ 0 ] }\n\t\t\t\tonClose={ onClose }\n\t\t\t/>\n\t\t);\n\t}\n\treturn <ConvertToTemplatePart clientIds={ clientIds } blocks={ blocks } />;\n}\n"]}
|
|
@@ -10,7 +10,7 @@ import { decodeEntities } from '@wordpress/html-entities';
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
import { store as editSiteStore } from '../../store';
|
|
13
|
-
export default function useEditedEntityRecord() {
|
|
13
|
+
export default function useEditedEntityRecord(postType, postId) {
|
|
14
14
|
const {
|
|
15
15
|
record,
|
|
16
16
|
title,
|
|
@@ -27,12 +27,12 @@ export default function useEditedEntityRecord() {
|
|
|
27
27
|
const {
|
|
28
28
|
__experimentalGetTemplateInfo: getTemplateInfo
|
|
29
29
|
} = select(editorStore);
|
|
30
|
-
const
|
|
31
|
-
const
|
|
30
|
+
const usedPostType = postType !== null && postType !== void 0 ? postType : getEditedPostType();
|
|
31
|
+
const usedPostId = postId !== null && postId !== void 0 ? postId : getEditedPostId();
|
|
32
32
|
|
|
33
|
-
const _record = getEditedEntityRecord('postType',
|
|
33
|
+
const _record = getEditedEntityRecord('postType', usedPostType, usedPostId);
|
|
34
34
|
|
|
35
|
-
const _isLoaded = !!
|
|
35
|
+
const _isLoaded = !!usedPostId;
|
|
36
36
|
|
|
37
37
|
const templateInfo = getTemplateInfo(_record);
|
|
38
38
|
return {
|
|
@@ -41,7 +41,7 @@ export default function useEditedEntityRecord() {
|
|
|
41
41
|
description: templateInfo.description,
|
|
42
42
|
isLoaded: _isLoaded
|
|
43
43
|
};
|
|
44
|
-
}, []);
|
|
44
|
+
}, [postType, postId]);
|
|
45
45
|
return {
|
|
46
46
|
isLoaded,
|
|
47
47
|
record,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/edit-site/src/components/use-edited-entity-record/index.js"],"names":["useSelect","store","coreStore","editorStore","decodeEntities","editSiteStore","useEditedEntityRecord","record","title","description","isLoaded","select","getEditedPostType","getEditedPostId","getEditedEntityRecord","__experimentalGetTemplateInfo","getTemplateInfo","
|
|
1
|
+
{"version":3,"sources":["@wordpress/edit-site/src/components/use-edited-entity-record/index.js"],"names":["useSelect","store","coreStore","editorStore","decodeEntities","editSiteStore","useEditedEntityRecord","postType","postId","record","title","description","isLoaded","select","getEditedPostType","getEditedPostId","getEditedEntityRecord","__experimentalGetTemplateInfo","getTemplateInfo","usedPostType","usedPostId","_record","_isLoaded","templateInfo","getTitle","getDescription"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,SAAT,QAA0B,iBAA1B;AACA,SAASC,KAAK,IAAIC,SAAlB,QAAmC,sBAAnC;AACA,SAASD,KAAK,IAAIE,WAAlB,QAAqC,mBAArC;AACA,SAASC,cAAT,QAA+B,0BAA/B;AAEA;AACA;AACA;;AACA,SAASH,KAAK,IAAII,aAAlB,QAAuC,aAAvC;AAEA,eAAe,SAASC,qBAAT,CAAgCC,QAAhC,EAA0CC,MAA1C,EAAmD;AACjE,QAAM;AAAEC,IAAAA,MAAF;AAAUC,IAAAA,KAAV;AAAiBC,IAAAA,WAAjB;AAA8BC,IAAAA;AAA9B,MAA2CZ,SAAS,CACvDa,MAAF,IAAc;AACb,UAAM;AAAEC,MAAAA,iBAAF;AAAqBC,MAAAA;AAArB,QACLF,MAAM,CAAER,aAAF,CADP;AAEA,UAAM;AAAEW,MAAAA;AAAF,QAA4BH,MAAM,CAAEX,SAAF,CAAxC;AACA,UAAM;AAAEe,MAAAA,6BAA6B,EAAEC;AAAjC,QACLL,MAAM,CAAEV,WAAF,CADP;AAEA,UAAMgB,YAAY,GAAGZ,QAAH,aAAGA,QAAH,cAAGA,QAAH,GAAeO,iBAAiB,EAAlD;AACA,UAAMM,UAAU,GAAGZ,MAAH,aAAGA,MAAH,cAAGA,MAAH,GAAaO,eAAe,EAA5C;;AACA,UAAMM,OAAO,GAAGL,qBAAqB,CACpC,UADoC,EAEpCG,YAFoC,EAGpCC,UAHoC,CAArC;;AAKA,UAAME,SAAS,GAAG,CAAC,CAAEF,UAArB;;AACA,UAAMG,YAAY,GAAGL,eAAe,CAAEG,OAAF,CAApC;AAEA,WAAO;AACNZ,MAAAA,MAAM,EAAEY,OADF;AAENX,MAAAA,KAAK,EAAEa,YAAY,CAACb,KAFd;AAGNC,MAAAA,WAAW,EAAEY,YAAY,CAACZ,WAHpB;AAINC,MAAAA,QAAQ,EAAEU;AAJJ,KAAP;AAMA,GAvBwD,EAwBzD,CAAEf,QAAF,EAAYC,MAAZ,CAxByD,CAA1D;AA2BA,SAAO;AACNI,IAAAA,QADM;AAENH,IAAAA,MAFM;AAGNe,IAAAA,QAAQ,EAAE,MAAQd,KAAK,GAAGN,cAAc,CAAEM,KAAF,CAAjB,GAA6B,IAH9C;AAINe,IAAAA,cAAc,EAAE,MACfd,WAAW,GAAGP,cAAc,CAAEO,WAAF,CAAjB,GAAmC;AALzC,GAAP;AAOA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { store as editorStore } from '@wordpress/editor';\nimport { decodeEntities } from '@wordpress/html-entities';\n\n/**\n * Internal dependencies\n */\nimport { store as editSiteStore } from '../../store';\n\nexport default function useEditedEntityRecord( postType, postId ) {\n\tconst { record, title, description, isLoaded } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getEditedPostType, getEditedPostId } =\n\t\t\t\tselect( editSiteStore );\n\t\t\tconst { getEditedEntityRecord } = select( coreStore );\n\t\t\tconst { __experimentalGetTemplateInfo: getTemplateInfo } =\n\t\t\t\tselect( editorStore );\n\t\t\tconst usedPostType = postType ?? getEditedPostType();\n\t\t\tconst usedPostId = postId ?? getEditedPostId();\n\t\t\tconst _record = getEditedEntityRecord(\n\t\t\t\t'postType',\n\t\t\t\tusedPostType,\n\t\t\t\tusedPostId\n\t\t\t);\n\t\t\tconst _isLoaded = !! usedPostId;\n\t\t\tconst templateInfo = getTemplateInfo( _record );\n\n\t\t\treturn {\n\t\t\t\trecord: _record,\n\t\t\t\ttitle: templateInfo.title,\n\t\t\t\tdescription: templateInfo.description,\n\t\t\t\tisLoaded: _isLoaded,\n\t\t\t};\n\t\t},\n\t\t[ postType, postId ]\n\t);\n\n\treturn {\n\t\tisLoaded,\n\t\trecord,\n\t\tgetTitle: () => ( title ? decodeEntities( title ) : null ),\n\t\tgetDescription: () =>\n\t\t\tdescription ? decodeEntities( description ) : null,\n\t};\n}\n"]}
|
package/build-module/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import { __experimentalFetchLinkSuggestions as fetchLinkSuggestions, __experimen
|
|
|
12
12
|
import { store as editorStore } from '@wordpress/editor';
|
|
13
13
|
import { store as interfaceStore } from '@wordpress/interface';
|
|
14
14
|
import { store as preferencesStore } from '@wordpress/preferences';
|
|
15
|
-
import { registerLegacyWidgetBlock } from '@wordpress/widgets';
|
|
15
|
+
import { registerLegacyWidgetBlock, registerWidgetGroupBlock } from '@wordpress/widgets';
|
|
16
16
|
/**
|
|
17
17
|
* Internal dependencies
|
|
18
18
|
*/
|
|
@@ -49,6 +49,9 @@ export function initializeEditor(id, settings) {
|
|
|
49
49
|
registerLegacyWidgetBlock({
|
|
50
50
|
inserter: false
|
|
51
51
|
});
|
|
52
|
+
registerWidgetGroupBlock({
|
|
53
|
+
inserter: false
|
|
54
|
+
});
|
|
52
55
|
|
|
53
56
|
if (process.env.IS_GUTENBERG_PLUGIN) {
|
|
54
57
|
__experimentalRegisterExperimentalCoreBlocks({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/edit-site/src/index.js"],"names":["store","blocksStore","registerCoreBlocks","__experimentalGetCoreBlocks","__experimentalRegisterExperimentalCoreBlocks","dispatch","deprecated","createRoot","__experimentalFetchLinkSuggestions","fetchLinkSuggestions","__experimentalFetchUrlData","fetchUrlData","editorStore","interfaceStore","preferencesStore","registerLegacyWidgetBlock","editSiteStore","App","initializeEditor","id","settings","target","document","getElementById","root","search","searchOptions","__experimentalFetchRichUrlData","__experimentalReapplyBlockTypeFilters","coreBlocks","filter","name","setFreeformFallbackBlockName","inserter","process","env","IS_GUTENBERG_PLUGIN","enableFSEBlocks","setDefaults","editorMode","fixedToolbar","focusMode","keepCaretInsideBlock","welcomeGuide","welcomeGuideStyles","showListViewByDefault","setDefaultComplementaryArea","updateSettings","updateEditorSettings","defaultTemplateTypes","defaultTemplatePartAreas","window","addEventListener","e","preventDefault","render","reinitializeEditor","since","version","default","PluginSidebar","PluginSidebarMoreMenuItem","PluginMoreMenuItem"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,KAAK,IAAIC,WAAlB,QAAqC,mBAArC;AACA,SACCC,kBADD,EAECC,2BAFD,EAGCC,4CAHD,QAIO,0BAJP;AAKA,SAASC,QAAT,QAAyB,iBAAzB;AACA,OAAOC,UAAP,MAAuB,uBAAvB;AACA,SAASC,UAAT,QAA2B,oBAA3B;AACA,SACCC,kCAAkC,IAAIC,oBADvC,EAECC,0BAA0B,IAAIC,YAF/B,QAGO,sBAHP;AAIA,SAASX,KAAK,IAAIY,WAAlB,QAAqC,mBAArC;AACA,SAASZ,KAAK,IAAIa,cAAlB,QAAwC,sBAAxC;AACA,SAASb,KAAK,IAAIc,gBAAlB,QAA0C,wBAA1C;AACA,
|
|
1
|
+
{"version":3,"sources":["@wordpress/edit-site/src/index.js"],"names":["store","blocksStore","registerCoreBlocks","__experimentalGetCoreBlocks","__experimentalRegisterExperimentalCoreBlocks","dispatch","deprecated","createRoot","__experimentalFetchLinkSuggestions","fetchLinkSuggestions","__experimentalFetchUrlData","fetchUrlData","editorStore","interfaceStore","preferencesStore","registerLegacyWidgetBlock","registerWidgetGroupBlock","editSiteStore","App","initializeEditor","id","settings","target","document","getElementById","root","search","searchOptions","__experimentalFetchRichUrlData","__experimentalReapplyBlockTypeFilters","coreBlocks","filter","name","setFreeformFallbackBlockName","inserter","process","env","IS_GUTENBERG_PLUGIN","enableFSEBlocks","setDefaults","editorMode","fixedToolbar","focusMode","keepCaretInsideBlock","welcomeGuide","welcomeGuideStyles","showListViewByDefault","setDefaultComplementaryArea","updateSettings","updateEditorSettings","defaultTemplateTypes","defaultTemplatePartAreas","window","addEventListener","e","preventDefault","render","reinitializeEditor","since","version","default","PluginSidebar","PluginSidebarMoreMenuItem","PluginMoreMenuItem"],"mappings":"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","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { store as blocksStore } from '@wordpress/blocks';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalGetCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport { dispatch } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { createRoot } from '@wordpress/element';\nimport {\n\t__experimentalFetchLinkSuggestions as fetchLinkSuggestions,\n\t__experimentalFetchUrlData as fetchUrlData,\n} from '@wordpress/core-data';\nimport { store as editorStore } from '@wordpress/editor';\nimport { store as interfaceStore } from '@wordpress/interface';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\n\n/**\n * Internal dependencies\n */\nimport './hooks';\nimport { store as editSiteStore } from './store';\nimport App from './components/app';\n\n/**\n * Initializes the site editor screen.\n *\n * @param {string} id ID of the root element to render the screen in.\n * @param {Object} settings Editor settings.\n */\nexport function initializeEditor( id, settings ) {\n\tconst target = document.getElementById( id );\n\tconst root = createRoot( target );\n\n\tsettings.__experimentalFetchLinkSuggestions = ( search, searchOptions ) =>\n\t\tfetchLinkSuggestions( search, searchOptions, settings );\n\tsettings.__experimentalFetchRichUrlData = fetchUrlData;\n\n\tdispatch( blocksStore ).__experimentalReapplyBlockTypeFilters();\n\tconst coreBlocks = __experimentalGetCoreBlocks().filter(\n\t\t( { name } ) => name !== 'core/freeform'\n\t);\n\tregisterCoreBlocks( coreBlocks );\n\tdispatch( blocksStore ).setFreeformFallbackBlockName( 'core/html' );\n\tregisterLegacyWidgetBlock( { inserter: false } );\n\tregisterWidgetGroupBlock( { inserter: false } );\n\tif ( process.env.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: true,\n\t\t} );\n\t}\n\n\t// We dispatch actions and update the store synchronously before rendering\n\t// so that we won't trigger unnecessary re-renders with useEffect.\n\tdispatch( preferencesStore ).setDefaults( 'core/edit-site', {\n\t\teditorMode: 'visual',\n\t\tfixedToolbar: false,\n\t\tfocusMode: false,\n\t\tkeepCaretInsideBlock: false,\n\t\twelcomeGuide: true,\n\t\twelcomeGuideStyles: true,\n\t\tshowListViewByDefault: false,\n\t} );\n\n\tdispatch( interfaceStore ).setDefaultComplementaryArea(\n\t\t'core/edit-site',\n\t\t'edit-site/template'\n\t);\n\n\tdispatch( editSiteStore ).updateSettings( settings );\n\n\t// Keep the defaultTemplateTypes in the core/editor settings too,\n\t// so that they can be selected with core/editor selectors in any editor.\n\t// This is needed because edit-site doesn't initialize with EditorProvider,\n\t// which internally uses updateEditorSettings as well.\n\tdispatch( editorStore ).updateEditorSettings( {\n\t\tdefaultTemplateTypes: settings.defaultTemplateTypes,\n\t\tdefaultTemplatePartAreas: settings.defaultTemplatePartAreas,\n\t} );\n\n\t// Prevent the default browser action for files dropped outside of dropzones.\n\twindow.addEventListener( 'dragover', ( e ) => e.preventDefault(), false );\n\twindow.addEventListener( 'drop', ( e ) => e.preventDefault(), false );\n\n\troot.render( <App /> );\n\n\treturn root;\n}\n\nexport function reinitializeEditor() {\n\tdeprecated( 'wp.editSite.reinitializeEditor', {\n\t\tsince: '6.2',\n\t\tversion: '6.3',\n\t} );\n}\n\nexport { default as PluginSidebar } from './components/sidebar-edit-mode/plugin-sidebar';\nexport { default as PluginSidebarMoreMenuItem } from './components/header-edit-mode/plugin-sidebar-more-menu-item';\nexport { default as PluginMoreMenuItem } from './components/header-edit-mode/plugin-more-menu-item';\n"]}
|
|
@@ -6,17 +6,23 @@ import { createBrowserHistory } from 'history';
|
|
|
6
6
|
* WordPress dependencies
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { addQueryArgs } from '@wordpress/url';
|
|
9
|
+
import { addQueryArgs, getQueryArgs, removeQueryArgs } from '@wordpress/url';
|
|
10
10
|
const history = createBrowserHistory();
|
|
11
11
|
const originalHistoryPush = history.push;
|
|
12
12
|
const originalHistoryReplace = history.replace;
|
|
13
13
|
|
|
14
14
|
function push(params, state) {
|
|
15
|
-
|
|
15
|
+
const currentArgs = getQueryArgs(window.location.href);
|
|
16
|
+
const currentUrlWithoutArgs = removeQueryArgs(window.location.href, ...Object.keys(currentArgs));
|
|
17
|
+
const newUrl = addQueryArgs(currentUrlWithoutArgs, params);
|
|
18
|
+
return originalHistoryPush.call(history, newUrl, state);
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
function replace(params, state) {
|
|
19
|
-
|
|
22
|
+
const currentArgs = getQueryArgs(window.location.href);
|
|
23
|
+
const currentUrlWithoutArgs = removeQueryArgs(window.location.href, ...Object.keys(currentArgs));
|
|
24
|
+
const newUrl = addQueryArgs(currentUrlWithoutArgs, params);
|
|
25
|
+
return originalHistoryReplace.call(history, newUrl, state);
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
history.push = push;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/edit-site/src/utils/history.js"],"names":["createBrowserHistory","addQueryArgs","history","originalHistoryPush","push","originalHistoryReplace","replace","params","state","
|
|
1
|
+
{"version":3,"sources":["@wordpress/edit-site/src/utils/history.js"],"names":["createBrowserHistory","addQueryArgs","getQueryArgs","removeQueryArgs","history","originalHistoryPush","push","originalHistoryReplace","replace","params","state","currentArgs","window","location","href","currentUrlWithoutArgs","Object","keys","newUrl","call"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,oBAAT,QAAqC,SAArC;AAEA;AACA;AACA;;AACA,SAASC,YAAT,EAAuBC,YAAvB,EAAqCC,eAArC,QAA4D,gBAA5D;AAEA,MAAMC,OAAO,GAAGJ,oBAAoB,EAApC;AAEA,MAAMK,mBAAmB,GAAGD,OAAO,CAACE,IAApC;AACA,MAAMC,sBAAsB,GAAGH,OAAO,CAACI,OAAvC;;AAEA,SAASF,IAAT,CAAeG,MAAf,EAAuBC,KAAvB,EAA+B;AAC9B,QAAMC,WAAW,GAAGT,YAAY,CAAEU,MAAM,CAACC,QAAP,CAAgBC,IAAlB,CAAhC;AACA,QAAMC,qBAAqB,GAAGZ,eAAe,CAC5CS,MAAM,CAACC,QAAP,CAAgBC,IAD4B,EAE5C,GAAGE,MAAM,CAACC,IAAP,CAAaN,WAAb,CAFyC,CAA7C;AAIA,QAAMO,MAAM,GAAGjB,YAAY,CAAEc,qBAAF,EAAyBN,MAAzB,CAA3B;AACA,SAAOJ,mBAAmB,CAACc,IAApB,CAA0Bf,OAA1B,EAAmCc,MAAnC,EAA2CR,KAA3C,CAAP;AACA;;AAED,SAASF,OAAT,CAAkBC,MAAlB,EAA0BC,KAA1B,EAAkC;AACjC,QAAMC,WAAW,GAAGT,YAAY,CAAEU,MAAM,CAACC,QAAP,CAAgBC,IAAlB,CAAhC;AACA,QAAMC,qBAAqB,GAAGZ,eAAe,CAC5CS,MAAM,CAACC,QAAP,CAAgBC,IAD4B,EAE5C,GAAGE,MAAM,CAACC,IAAP,CAAaN,WAAb,CAFyC,CAA7C;AAIA,QAAMO,MAAM,GAAGjB,YAAY,CAAEc,qBAAF,EAAyBN,MAAzB,CAA3B;AACA,SAAOF,sBAAsB,CAACY,IAAvB,CAA6Bf,OAA7B,EAAsCc,MAAtC,EAA8CR,KAA9C,CAAP;AACA;;AAEDN,OAAO,CAACE,IAAR,GAAeA,IAAf;AACAF,OAAO,CAACI,OAAR,GAAkBA,OAAlB;AAEA,eAAeJ,OAAf","sourcesContent":["/**\n * External dependencies\n */\nimport { createBrowserHistory } from 'history';\n\n/**\n * WordPress dependencies\n */\nimport { addQueryArgs, getQueryArgs, removeQueryArgs } from '@wordpress/url';\n\nconst history = createBrowserHistory();\n\nconst originalHistoryPush = history.push;\nconst originalHistoryReplace = history.replace;\n\nfunction push( params, state ) {\n\tconst currentArgs = getQueryArgs( window.location.href );\n\tconst currentUrlWithoutArgs = removeQueryArgs(\n\t\twindow.location.href,\n\t\t...Object.keys( currentArgs )\n\t);\n\tconst newUrl = addQueryArgs( currentUrlWithoutArgs, params );\n\treturn originalHistoryPush.call( history, newUrl, state );\n}\n\nfunction replace( params, state ) {\n\tconst currentArgs = getQueryArgs( window.location.href );\n\tconst currentUrlWithoutArgs = removeQueryArgs(\n\t\twindow.location.href,\n\t\t...Object.keys( currentArgs )\n\t);\n\tconst newUrl = addQueryArgs( currentUrlWithoutArgs, params );\n\treturn originalHistoryReplace.call( history, newUrl, state );\n}\n\nhistory.push = push;\nhistory.replace = replace;\n\nexport default history;\n"]}
|
|
@@ -524,6 +524,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
524
524
|
}
|
|
525
525
|
.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled) {
|
|
526
526
|
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
527
|
+
outline: 2px solid transparent;
|
|
528
|
+
}
|
|
529
|
+
.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible::before {
|
|
530
|
+
content: none;
|
|
527
531
|
}
|
|
528
532
|
.interface-preferences__tabs .components-tab-panel__tab-content {
|
|
529
533
|
padding-right: 24px;
|
|
@@ -568,10 +572,19 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
568
572
|
}
|
|
569
573
|
|
|
570
574
|
@media (min-width: 600px) {
|
|
571
|
-
.edit-site-new-template-dropdown .edit-site-new-template-
|
|
575
|
+
.edit-site-new-template-dropdown .edit-site-new-template-dropdown__menu-groups {
|
|
572
576
|
min-width: 300px;
|
|
573
577
|
}
|
|
574
578
|
}
|
|
579
|
+
.edit-site-new-template-dropdown__menu-item-tooltip.components-tooltip .components-popover__content {
|
|
580
|
+
max-width: 320px;
|
|
581
|
+
padding: 8px 12px;
|
|
582
|
+
border-radius: 2px;
|
|
583
|
+
white-space: pre-wrap;
|
|
584
|
+
min-width: 0;
|
|
585
|
+
width: auto;
|
|
586
|
+
text-align: right;
|
|
587
|
+
}
|
|
575
588
|
|
|
576
589
|
.edit-site-custom-template-modal__contents > .components-button {
|
|
577
590
|
padding: 24px;
|
|
@@ -1167,6 +1180,16 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
1167
1180
|
width: 24px;
|
|
1168
1181
|
}
|
|
1169
1182
|
|
|
1183
|
+
.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,
|
|
1184
|
+
.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations {
|
|
1185
|
+
background: unset;
|
|
1186
|
+
color: inherit;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg {
|
|
1190
|
+
fill: currentColor;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1170
1193
|
.edit-site-header-edit-mode {
|
|
1171
1194
|
height: 60px;
|
|
1172
1195
|
align-items: center;
|
|
@@ -1571,46 +1594,6 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1571
1594
|
color: #757575;
|
|
1572
1595
|
}
|
|
1573
1596
|
|
|
1574
|
-
@keyframes loadingpulse {
|
|
1575
|
-
0% {
|
|
1576
|
-
opacity: 1;
|
|
1577
|
-
}
|
|
1578
|
-
50% {
|
|
1579
|
-
opacity: 0.5;
|
|
1580
|
-
}
|
|
1581
|
-
100% {
|
|
1582
|
-
opacity: 1;
|
|
1583
|
-
}
|
|
1584
|
-
}
|
|
1585
|
-
.edit-site-navigation-inspector .block-editor-list-view-leaf .block-editor-list-view-block-contents {
|
|
1586
|
-
white-space: normal;
|
|
1587
|
-
}
|
|
1588
|
-
.edit-site-navigation-inspector .block-editor-list-view-block__title {
|
|
1589
|
-
margin-top: 3px;
|
|
1590
|
-
}
|
|
1591
|
-
.edit-site-navigation-inspector .block-editor-list-view-block__menu-cell {
|
|
1592
|
-
padding-left: 0;
|
|
1593
|
-
}
|
|
1594
|
-
.edit-site-navigation-inspector .edit-site-navigation-inspector__select-menu {
|
|
1595
|
-
margin-bottom: 8px;
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
.edit-site-navigation-inspector__placeholder {
|
|
1599
|
-
padding: 8px;
|
|
1600
|
-
margin: 8px;
|
|
1601
|
-
background-color: #f0f0f0;
|
|
1602
|
-
animation: loadingpulse 1s linear infinite;
|
|
1603
|
-
animation-delay: 0.5s;
|
|
1604
|
-
}
|
|
1605
|
-
.edit-site-navigation-inspector__placeholder.is-child {
|
|
1606
|
-
margin-right: 24px;
|
|
1607
|
-
width: 50%;
|
|
1608
|
-
}
|
|
1609
|
-
|
|
1610
|
-
.edit-site-navigation-inspector__empty-msg {
|
|
1611
|
-
padding: 0 8px;
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
1597
|
.edit-site-sidebar-edit-mode {
|
|
1615
1598
|
width: 280px;
|
|
1616
1599
|
}
|
|
@@ -2253,9 +2236,9 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2253
2236
|
}
|
|
2254
2237
|
|
|
2255
2238
|
.edit-site-layout__content {
|
|
2239
|
+
height: 100%;
|
|
2256
2240
|
flex-grow: 1;
|
|
2257
2241
|
display: flex;
|
|
2258
|
-
overflow: hidden;
|
|
2259
2242
|
}
|
|
2260
2243
|
|
|
2261
2244
|
.edit-site-layout__sidebar {
|
|
@@ -2403,6 +2386,20 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2403
2386
|
}
|
|
2404
2387
|
}
|
|
2405
2388
|
|
|
2389
|
+
.edit-site-save-hub {
|
|
2390
|
+
color: #949494;
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2393
|
+
.edit-site-save-hub__button {
|
|
2394
|
+
color: inherit;
|
|
2395
|
+
}
|
|
2396
|
+
.edit-site-save-hub__button[aria-disabled=true] {
|
|
2397
|
+
opacity: 1;
|
|
2398
|
+
}
|
|
2399
|
+
.edit-site-save-hub__button[aria-disabled=true]:hover {
|
|
2400
|
+
color: inherit;
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2406
2403
|
@media (min-width: 600px) {
|
|
2407
2404
|
.edit-site-save-panel__modal {
|
|
2408
2405
|
width: 600px;
|
|
@@ -2412,25 +2409,27 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2412
2409
|
.edit-site-sidebar__content {
|
|
2413
2410
|
flex-grow: 1;
|
|
2414
2411
|
overflow-y: auto;
|
|
2412
|
+
}
|
|
2413
|
+
.edit-site-sidebar__content .components-navigator-screen {
|
|
2415
2414
|
visibility: hidden;
|
|
2416
2415
|
scrollbar-color: #757575 #1e1e1e;
|
|
2417
2416
|
scrollbar-width: thin;
|
|
2418
2417
|
scrollbar-gutter: stable;
|
|
2419
2418
|
}
|
|
2420
|
-
.edit-site-sidebar__content::-webkit-scrollbar {
|
|
2419
|
+
.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar {
|
|
2421
2420
|
width: 12px;
|
|
2422
2421
|
height: 12px;
|
|
2423
2422
|
}
|
|
2424
|
-
.edit-site-sidebar__content::-webkit-scrollbar-track {
|
|
2423
|
+
.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-track {
|
|
2425
2424
|
background-color: #1e1e1e;
|
|
2426
2425
|
}
|
|
2427
|
-
.edit-site-sidebar__content::-webkit-scrollbar-thumb {
|
|
2426
|
+
.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-thumb {
|
|
2428
2427
|
background-color: #757575;
|
|
2429
2428
|
border-radius: 8px;
|
|
2430
2429
|
border: 3px solid transparent;
|
|
2431
2430
|
background-clip: padding-box;
|
|
2432
2431
|
}
|
|
2433
|
-
.edit-site-sidebar__content:hover, .edit-site-sidebar__content:focus, .edit-site-sidebar__content > * {
|
|
2432
|
+
.edit-site-sidebar__content .components-navigator-screen:hover, .edit-site-sidebar__content .components-navigator-screen:focus, .edit-site-sidebar__content .components-navigator-screen > * {
|
|
2434
2433
|
visibility: visible;
|
|
2435
2434
|
}
|
|
2436
2435
|
|
|
@@ -2439,8 +2438,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2439
2438
|
flex-shrink: 0;
|
|
2440
2439
|
margin: 0 24px;
|
|
2441
2440
|
padding: 24px 0;
|
|
2442
|
-
display: flex;
|
|
2443
|
-
justify-content: flex-end;
|
|
2444
2441
|
}
|
|
2445
2442
|
|
|
2446
2443
|
.edit-site-sidebar__content.edit-site-sidebar__content {
|
|
@@ -2463,40 +2460,24 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2463
2460
|
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
|
|
2464
2461
|
outline: 3px solid transparent;
|
|
2465
2462
|
}
|
|
2466
|
-
.edit-site-sidebar-button:hover, .edit-site-sidebar-button:focus-visible, .edit-site-sidebar-button:focus, .edit-site-sidebar-button:not([aria-disabled=true]):active {
|
|
2463
|
+
.edit-site-sidebar-button:hover, .edit-site-sidebar-button:focus-visible, .edit-site-sidebar-button:focus, .edit-site-sidebar-button:not([aria-disabled=true]):active, .edit-site-sidebar-button[aria-expanded=true] {
|
|
2467
2464
|
color: #fff;
|
|
2468
2465
|
}
|
|
2469
2466
|
|
|
2470
2467
|
.edit-site-sidebar-navigation-item.components-item {
|
|
2471
2468
|
color: #949494;
|
|
2472
|
-
|
|
2469
|
+
margin: 0 4px;
|
|
2473
2470
|
}
|
|
2474
2471
|
.edit-site-sidebar-navigation-item.components-item:hover, .edit-site-sidebar-navigation-item.components-item:focus, .edit-site-sidebar-navigation-item.components-item[aria-current] {
|
|
2475
2472
|
color: #fff;
|
|
2476
2473
|
background: #2f2f2f;
|
|
2477
|
-
border-width: 1.5px;
|
|
2478
2474
|
}
|
|
2479
2475
|
.edit-site-sidebar-navigation-item.components-item[aria-current] {
|
|
2480
2476
|
background: var(--wp-admin-theme-color);
|
|
2481
2477
|
}
|
|
2482
2478
|
|
|
2483
|
-
.edit-site-sidebar-navigation-screen__content .edit-site-navigation-inspector .components-button {
|
|
2484
|
-
color: #949494;
|
|
2485
|
-
}
|
|
2486
|
-
.edit-site-sidebar-navigation-screen__content .edit-site-navigation-inspector .components-button:hover, .edit-site-sidebar-navigation-screen__content .edit-site-navigation-inspector .components-button:focus, .edit-site-sidebar-navigation-screen__content .edit-site-navigation-inspector .components-button[aria-current] {
|
|
2487
|
-
color: #fff;
|
|
2488
|
-
}
|
|
2489
|
-
|
|
2490
|
-
.edit-site-sidebar-navigation-screen__content .edit-site-navigation-inspector .offcanvas-editor-list-view-leaf:hover, .edit-site-sidebar-navigation-screen__content .edit-site-navigation-inspector .offcanvas-editor-list-view-leaf:focus, .edit-site-sidebar-navigation-screen__content .edit-site-navigation-inspector .offcanvas-editor-list-view-leaf[aria-current] {
|
|
2491
|
-
background: #2f2f2f;
|
|
2492
|
-
}
|
|
2493
|
-
.edit-site-sidebar-navigation-screen__content .edit-site-navigation-inspector .offcanvas-editor-list-view-leaf .block-editor-list-view-block__menu {
|
|
2494
|
-
margin-right: -8px;
|
|
2495
|
-
}
|
|
2496
|
-
|
|
2497
2479
|
.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button {
|
|
2498
2480
|
cursor: grab;
|
|
2499
|
-
width: calc(100% - 2px);
|
|
2500
2481
|
padding: 8px;
|
|
2501
2482
|
}
|
|
2502
2483
|
|
|
@@ -2512,6 +2493,18 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2512
2493
|
color: #949494;
|
|
2513
2494
|
}
|
|
2514
2495
|
|
|
2496
|
+
.edit-site-sidebar-navigation-screen__page-link {
|
|
2497
|
+
color: #949494;
|
|
2498
|
+
margin-right: 16px;
|
|
2499
|
+
display: inline-block;
|
|
2500
|
+
}
|
|
2501
|
+
.edit-site-sidebar-navigation-screen__page-link:hover, .edit-site-sidebar-navigation-screen__page-link:focus {
|
|
2502
|
+
color: #fff;
|
|
2503
|
+
}
|
|
2504
|
+
.edit-site-sidebar-navigation-screen__page-link .components-external-link__icon {
|
|
2505
|
+
margin-right: 4px;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2515
2508
|
.edit-site-sidebar-navigation-screen__title-icon {
|
|
2516
2509
|
position: sticky;
|
|
2517
2510
|
top: 0;
|
|
@@ -2532,6 +2525,28 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2532
2525
|
margin: 0;
|
|
2533
2526
|
}
|
|
2534
2527
|
|
|
2528
|
+
.edit-site-sidebar-navigation-screen-template__added-by-description {
|
|
2529
|
+
display: flex;
|
|
2530
|
+
align-items: center;
|
|
2531
|
+
justify-content: space-between;
|
|
2532
|
+
margin-top: 24px;
|
|
2533
|
+
}
|
|
2534
|
+
.edit-site-sidebar-navigation-screen-template__added-by-description-author {
|
|
2535
|
+
display: inline-flex;
|
|
2536
|
+
align-items: center;
|
|
2537
|
+
}
|
|
2538
|
+
.edit-site-sidebar-navigation-screen-template__added-by-description-author img {
|
|
2539
|
+
border-radius: 12px;
|
|
2540
|
+
}
|
|
2541
|
+
.edit-site-sidebar-navigation-screen-template__added-by-description-author svg {
|
|
2542
|
+
fill: #949494;
|
|
2543
|
+
}
|
|
2544
|
+
.edit-site-sidebar-navigation-screen-template__added-by-description-author-icon {
|
|
2545
|
+
width: 24px;
|
|
2546
|
+
height: 24px;
|
|
2547
|
+
margin-left: 8px;
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2535
2550
|
.edit-site-sidebar-navigation-screen-templates__see-all {
|
|
2536
2551
|
/* Overrides the margin that comes from the Item component */
|
|
2537
2552
|
margin-top: 16px !important;
|
|
@@ -2550,7 +2565,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2550
2565
|
|
|
2551
2566
|
.edit-site-site-hub__view-mode-toggle-container {
|
|
2552
2567
|
height: 60px;
|
|
2553
|
-
width:
|
|
2568
|
+
width: 60px;
|
|
2554
2569
|
flex-shrink: 0;
|
|
2555
2570
|
background: #1e1e1e;
|
|
2556
2571
|
}
|
|
@@ -2565,12 +2580,95 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2565
2580
|
overflow: hidden;
|
|
2566
2581
|
}
|
|
2567
2582
|
|
|
2568
|
-
.edit-site-
|
|
2583
|
+
.edit-site-site-hub__site-title {
|
|
2584
|
+
margin-right: 4px;
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
.edit-site-sidebar-navigation-screen__description {
|
|
2588
|
+
margin: 0 16px 32px 0;
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__placeholder {
|
|
2592
|
+
padding: 8px;
|
|
2593
|
+
margin: 8px;
|
|
2594
|
+
background-color: #f0f0f0;
|
|
2595
|
+
animation: loadingpulse 1s linear infinite;
|
|
2596
|
+
animation-delay: 0.5s;
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
@keyframes loadingpulse {
|
|
2600
|
+
0% {
|
|
2601
|
+
opacity: 1;
|
|
2602
|
+
}
|
|
2603
|
+
50% {
|
|
2604
|
+
opacity: 0.5;
|
|
2605
|
+
}
|
|
2606
|
+
100% {
|
|
2607
|
+
opacity: 1;
|
|
2608
|
+
}
|
|
2609
|
+
}
|
|
2610
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf {
|
|
2569
2611
|
max-width: calc(100% - 4px);
|
|
2612
|
+
border-radius: 2px;
|
|
2613
|
+
}
|
|
2614
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:hover, .edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:focus, .edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf[aria-current] {
|
|
2615
|
+
background: #2f2f2f;
|
|
2616
|
+
}
|
|
2617
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block__menu {
|
|
2618
|
+
margin-right: -8px;
|
|
2619
|
+
}
|
|
2620
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected > td {
|
|
2621
|
+
background: transparent;
|
|
2622
|
+
}
|
|
2623
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents {
|
|
2624
|
+
color: inherit;
|
|
2625
|
+
}
|
|
2626
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:not(:hover) .block-editor-list-view-block__menu {
|
|
2627
|
+
opacity: 0;
|
|
2628
|
+
}
|
|
2629
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover, .edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus {
|
|
2630
|
+
color: #fff;
|
|
2631
|
+
}
|
|
2632
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover .block-editor-list-view-block__menu-cell, .edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus .block-editor-list-view-block__menu-cell {
|
|
2633
|
+
opacity: 1;
|
|
2634
|
+
}
|
|
2635
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu {
|
|
2636
|
+
opacity: 1;
|
|
2637
|
+
}
|
|
2638
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus {
|
|
2639
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2640
|
+
}
|
|
2641
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block-contents:focus::after {
|
|
2642
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2643
|
+
}
|
|
2644
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch) {
|
|
2645
|
+
background: transparent;
|
|
2570
2646
|
}
|
|
2571
|
-
.edit-site-sidebar-navigation-screen-navigation-
|
|
2647
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch):hover {
|
|
2648
|
+
background: #2f2f2f;
|
|
2649
|
+
}
|
|
2650
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell {
|
|
2572
2651
|
width: 100%;
|
|
2573
2652
|
}
|
|
2653
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents {
|
|
2654
|
+
white-space: normal;
|
|
2655
|
+
}
|
|
2656
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title {
|
|
2657
|
+
margin-top: 3px;
|
|
2658
|
+
}
|
|
2659
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell {
|
|
2660
|
+
padding-left: 0;
|
|
2661
|
+
}
|
|
2662
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button {
|
|
2663
|
+
color: #949494;
|
|
2664
|
+
}
|
|
2665
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:hover, .edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:focus, .edit-site-sidebar-navigation-screen-navigation-menus__content .components-button[aria-current] {
|
|
2666
|
+
color: #fff;
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .popover-slot .wp-block-navigation-submenu {
|
|
2670
|
+
display: none;
|
|
2671
|
+
}
|
|
2574
2672
|
|
|
2575
2673
|
.edit-site-site-icon__icon {
|
|
2576
2674
|
fill: currentColor;
|
|
@@ -2610,53 +2708,12 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2610
2708
|
bottom: 0;
|
|
2611
2709
|
right: 0;
|
|
2612
2710
|
overflow: auto;
|
|
2613
|
-
padding:
|
|
2711
|
+
padding: 0;
|
|
2614
2712
|
position: absolute;
|
|
2615
2713
|
left: 0;
|
|
2616
2714
|
top: 48px;
|
|
2617
2715
|
}
|
|
2618
2716
|
|
|
2619
|
-
.edit-site-style-book__examples {
|
|
2620
|
-
max-width: 900px;
|
|
2621
|
-
margin: 0 auto;
|
|
2622
|
-
}
|
|
2623
|
-
|
|
2624
|
-
.edit-site-style-book__example {
|
|
2625
|
-
background: none;
|
|
2626
|
-
border-radius: 2px;
|
|
2627
|
-
border: none;
|
|
2628
|
-
color: inherit;
|
|
2629
|
-
cursor: pointer;
|
|
2630
|
-
display: flex;
|
|
2631
|
-
flex-direction: column;
|
|
2632
|
-
gap: 40px;
|
|
2633
|
-
margin-bottom: 40px;
|
|
2634
|
-
padding: 16px;
|
|
2635
|
-
width: 100%;
|
|
2636
|
-
}
|
|
2637
|
-
.edit-site-style-book__example.is-selected {
|
|
2638
|
-
box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
|
|
2639
|
-
}
|
|
2640
|
-
.edit-site-style-book.is-wide .edit-site-style-book__example {
|
|
2641
|
-
flex-direction: row;
|
|
2642
|
-
}
|
|
2643
|
-
|
|
2644
|
-
.edit-site-style-book__example-title {
|
|
2645
|
-
font-size: 11px;
|
|
2646
|
-
font-weight: 500;
|
|
2647
|
-
margin: 0;
|
|
2648
|
-
text-align: right;
|
|
2649
|
-
text-transform: uppercase;
|
|
2650
|
-
}
|
|
2651
|
-
.edit-site-style-book.is-wide .edit-site-style-book__example-title {
|
|
2652
|
-
text-align: left;
|
|
2653
|
-
width: 120px;
|
|
2654
|
-
}
|
|
2655
|
-
|
|
2656
|
-
.edit-site-style-book__example-preview {
|
|
2657
|
-
width: 100%;
|
|
2658
|
-
}
|
|
2659
|
-
|
|
2660
2717
|
.edit-site-push-changes-to-global-styles-control .components-button {
|
|
2661
2718
|
justify-content: center;
|
|
2662
2719
|
width: 100%;
|