@wordpress/edit-site 4.4.0 → 4.7.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 +6 -0
- package/build/components/add-new-template/new-template.js +24 -22
- package/build/components/add-new-template/new-template.js.map +1 -1
- package/build/components/block-editor/index.js +29 -23
- package/build/components/block-editor/index.js.map +1 -1
- package/build/components/code-editor/code-editor-text-area.js +11 -9
- package/build/components/code-editor/code-editor-text-area.js.map +1 -1
- package/build/components/global-styles/border-panel.js +2 -7
- package/build/components/global-styles/border-panel.js.map +1 -1
- package/build/components/global-styles/context-menu.js +3 -3
- package/build/components/global-styles/context-menu.js.map +1 -1
- package/build/components/global-styles/header.js +15 -11
- package/build/components/global-styles/header.js.map +1 -1
- package/build/components/global-styles/hooks.js +2 -2
- package/build/components/global-styles/hooks.js.map +1 -1
- package/build/components/global-styles/navigation-button.js +4 -4
- package/build/components/global-styles/navigation-button.js.map +1 -1
- package/build/components/global-styles/palette.js +1 -1
- package/build/components/global-styles/palette.js.map +1 -1
- package/build/components/global-styles/preview.js +13 -2
- package/build/components/global-styles/preview.js.map +1 -1
- package/build/components/global-styles/screen-block-list.js +1 -1
- package/build/components/global-styles/screen-block-list.js.map +1 -1
- package/build/components/global-styles/screen-colors.js +3 -3
- package/build/components/global-styles/screen-colors.js.map +1 -1
- package/build/components/global-styles/screen-root.js +13 -3
- package/build/components/global-styles/screen-root.js.map +1 -1
- package/build/components/global-styles/screen-typography.js +1 -1
- package/build/components/global-styles/screen-typography.js.map +1 -1
- package/build/components/global-styles/use-global-styles-output.js +1 -7
- package/build/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build/components/list/table.js +1 -1
- package/build/components/list/table.js.map +1 -1
- package/build/components/navigation-sidebar/navigation-panel/constants.js +2 -2
- package/build/components/navigation-sidebar/navigation-panel/constants.js.map +1 -1
- package/build/components/preferences-modal/index.js +5 -1
- package/build/components/preferences-modal/index.js.map +1 -1
- package/build/components/routes/use-title.js +3 -1
- package/build/components/routes/use-title.js.map +1 -1
- package/build/components/secondary-sidebar/list-view-sidebar.js +1 -5
- package/build/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
- package/build/components/sidebar/global-styles-sidebar.js +2 -4
- package/build/components/sidebar/global-styles-sidebar.js.map +1 -1
- package/build/components/sidebar/index.js +1 -1
- package/build/components/sidebar/index.js.map +1 -1
- package/build/components/sidebar/navigation-menu-sidebar/navigation-menu.js +1 -5
- package/build/components/sidebar/navigation-menu-sidebar/navigation-menu.js.map +1 -1
- package/build/components/template-details/index.js +4 -2
- package/build/components/template-details/index.js.map +1 -1
- package/build/index.js +11 -3
- package/build/index.js.map +1 -1
- package/build-module/components/add-new-template/new-template.js +24 -23
- package/build-module/components/add-new-template/new-template.js.map +1 -1
- package/build-module/components/block-editor/index.js +29 -24
- package/build-module/components/block-editor/index.js.map +1 -1
- package/build-module/components/code-editor/code-editor-text-area.js +12 -10
- package/build-module/components/code-editor/code-editor-text-area.js.map +1 -1
- package/build-module/components/global-styles/border-panel.js +2 -7
- package/build-module/components/global-styles/border-panel.js.map +1 -1
- package/build-module/components/global-styles/context-menu.js +4 -4
- package/build-module/components/global-styles/context-menu.js.map +1 -1
- package/build-module/components/global-styles/header.js +16 -11
- package/build-module/components/global-styles/header.js.map +1 -1
- package/build-module/components/global-styles/hooks.js +2 -2
- package/build-module/components/global-styles/hooks.js.map +1 -1
- package/build-module/components/global-styles/navigation-button.js +3 -3
- package/build-module/components/global-styles/navigation-button.js.map +1 -1
- package/build-module/components/global-styles/palette.js +2 -2
- package/build-module/components/global-styles/palette.js.map +1 -1
- package/build-module/components/global-styles/preview.js +14 -3
- package/build-module/components/global-styles/preview.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-colors.js +4 -4
- package/build-module/components/global-styles/screen-colors.js.map +1 -1
- package/build-module/components/global-styles/screen-root.js +15 -5
- package/build-module/components/global-styles/screen-root.js.map +1 -1
- package/build-module/components/global-styles/screen-typography.js +2 -2
- package/build-module/components/global-styles/screen-typography.js.map +1 -1
- package/build-module/components/global-styles/use-global-styles-output.js +1 -7
- package/build-module/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build-module/components/list/table.js +1 -1
- package/build-module/components/list/table.js.map +1 -1
- package/build-module/components/navigation-sidebar/navigation-panel/constants.js +2 -2
- package/build-module/components/navigation-sidebar/navigation-panel/constants.js.map +1 -1
- package/build-module/components/preferences-modal/index.js +5 -1
- package/build-module/components/preferences-modal/index.js.map +1 -1
- package/build-module/components/routes/use-title.js +2 -1
- package/build-module/components/routes/use-title.js.map +1 -1
- package/build-module/components/secondary-sidebar/list-view-sidebar.js +1 -5
- package/build-module/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
- package/build-module/components/sidebar/global-styles-sidebar.js +2 -4
- package/build-module/components/sidebar/global-styles-sidebar.js.map +1 -1
- package/build-module/components/sidebar/index.js +3 -3
- package/build-module/components/sidebar/index.js.map +1 -1
- package/build-module/components/sidebar/navigation-menu-sidebar/navigation-menu.js +1 -5
- package/build-module/components/sidebar/navigation-menu-sidebar/navigation-menu.js.map +1 -1
- package/build-module/components/template-details/index.js +4 -2
- package/build-module/components/template-details/index.js.map +1 -1
- package/build-module/index.js +10 -3
- package/build-module/index.js.map +1 -1
- package/build-style/style-rtl.css +22 -71
- package/build-style/style.css +22 -71
- package/package.json +30 -30
- package/src/components/add-new-template/new-template.js +22 -17
- package/src/components/block-editor/index.js +59 -38
- package/src/components/code-editor/code-editor-text-area.js +12 -7
- package/src/components/global-styles/border-panel.js +2 -12
- package/src/components/global-styles/context-menu.js +7 -7
- package/src/components/global-styles/header.js +20 -17
- package/src/components/global-styles/hooks.js +1 -1
- package/src/components/global-styles/navigation-button.js +3 -3
- package/src/components/global-styles/palette.js +3 -3
- package/src/components/global-styles/preview.js +17 -2
- package/src/components/global-styles/screen-block-list.js +3 -3
- package/src/components/global-styles/screen-colors.js +7 -7
- package/src/components/global-styles/screen-root.js +34 -24
- package/src/components/global-styles/screen-typography.js +3 -3
- package/src/components/global-styles/use-global-styles-output.js +1 -4
- package/src/components/header/document-actions/style.scss +1 -1
- package/src/components/header/style.scss +14 -29
- package/src/components/list/style.scss +1 -0
- package/src/components/list/table.js +1 -4
- package/src/components/navigation-sidebar/navigation-panel/constants.js +2 -2
- package/src/components/preferences-modal/index.js +8 -1
- package/src/components/routes/use-title.js +3 -2
- package/src/components/secondary-sidebar/list-view-sidebar.js +1 -5
- package/src/components/sidebar/global-styles-sidebar.js +1 -1
- package/src/components/sidebar/index.js +4 -2
- package/src/components/sidebar/navigation-menu-sidebar/navigation-menu.js +1 -7
- package/src/components/sidebar/navigation-menu-sidebar/style.scss +0 -1
- package/src/components/sidebar/style.scss +4 -47
- package/src/components/template-details/index.js +4 -1
- package/src/index.js +17 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/edit-site/src/components/template-details/index.js"],"names":["useMemo","sprintf","__","Button","MenuGroup","MenuItem","__experimentalHeading","Heading","__experimentalText","Text","useDispatch","useSelect","store","editorStore","isTemplateRevertable","MENU_TEMPLATES","TEMPLATE_PARTS_SUB_MENUS","editSiteStore","TemplateAreas","EditTemplateTitle","useLink","TemplateDetails","template","onClose","title","description","select","__experimentalGetTemplateInfo","revertTemplate","templateSubMenu","type","menu","find","area","browseAllLinkProps","postType","postId","undefined","
|
|
1
|
+
{"version":3,"sources":["@wordpress/edit-site/src/components/template-details/index.js"],"names":["useMemo","sprintf","__","Button","MenuGroup","MenuItem","__experimentalHeading","Heading","__experimentalText","Text","useDispatch","useSelect","store","editorStore","isTemplateRevertable","MENU_TEMPLATES","TEMPLATE_PARTS_SUB_MENUS","editSiteStore","TemplateAreas","EditTemplateTitle","useLink","TemplateDetails","template","onClose","title","description","select","__experimentalGetTemplateInfo","revertTemplate","templateSubMenu","type","menu","find","area","browseAllLinkProps","postType","postId","undefined","canEditTitle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FV;AAGC,IAAA,OAAO,EAAGuC;AAHX,KAKGvC,EAAE,CAAE,sBAAF,CALL,CADD,CA5BF,EAuCC,cAAC,MAAD;AACC,IAAA,SAAS,EAAC;AADX,KAEMgC,kBAFN,GAIGjC,OAAO;AACR;AACAC,EAAAA,EAAE,CAAE,eAAF,CAFM,EAGR2B,eAAe,CAACL,KAHR,CAJV,CAvCD,CADD;AAoDA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useMemo } from '@wordpress/element';\nimport { sprintf, __ } from '@wordpress/i18n';\nimport {\n\tButton,\n\tMenuGroup,\n\tMenuItem,\n\t__experimentalHeading as Heading,\n\t__experimentalText as Text,\n} from '@wordpress/components';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { store as editorStore } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport isTemplateRevertable from '../../utils/is-template-revertable';\nimport {\n\tMENU_TEMPLATES,\n\tTEMPLATE_PARTS_SUB_MENUS,\n} from '../navigation-sidebar/navigation-panel/constants';\nimport { store as editSiteStore } from '../../store';\nimport TemplateAreas from './template-areas';\nimport EditTemplateTitle from './edit-template-title';\nimport { useLink } from '../routes/link';\n\nexport default function TemplateDetails( { template, onClose } ) {\n\tconst { title, description } = useSelect(\n\t\t( select ) =>\n\t\t\tselect( editorStore ).__experimentalGetTemplateInfo( template ),\n\t\t[]\n\t);\n\tconst { revertTemplate } = useDispatch( editSiteStore );\n\n\tconst templateSubMenu = useMemo( () => {\n\t\tif ( template?.type === 'wp_template' ) {\n\t\t\treturn { title: __( 'templates' ), menu: MENU_TEMPLATES };\n\t\t}\n\n\t\treturn TEMPLATE_PARTS_SUB_MENUS.find(\n\t\t\t( { area } ) => area === template?.area\n\t\t);\n\t}, [ template ] );\n\n\tconst browseAllLinkProps = useLink( {\n\t\t// TODO: We should update this to filter by template part's areas as well.\n\t\tpostType: template.type,\n\t\tpostId: undefined,\n\t} );\n\n\t// Only user-created and non-default templates can change the name.\n\tconst canEditTitle = template.is_custom && ! template.has_theme_file;\n\n\tif ( ! template ) {\n\t\treturn null;\n\t}\n\n\tconst revert = () => {\n\t\trevertTemplate( template );\n\t\tonClose();\n\t};\n\n\treturn (\n\t\t<div className=\"edit-site-template-details\">\n\t\t\t<div className=\"edit-site-template-details__group\">\n\t\t\t\t{ canEditTitle ? (\n\t\t\t\t\t<EditTemplateTitle template={ template } />\n\t\t\t\t) : (\n\t\t\t\t\t<Heading\n\t\t\t\t\t\tlevel={ 4 }\n\t\t\t\t\t\tweight={ 600 }\n\t\t\t\t\t\tclassName=\"edit-site-template-details__title\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{ title }\n\t\t\t\t\t</Heading>\n\t\t\t\t) }\n\n\t\t\t\t{ description && (\n\t\t\t\t\t<Text\n\t\t\t\t\t\tsize=\"body\"\n\t\t\t\t\t\tclassName=\"edit-site-template-details__description\"\n\t\t\t\t\t\tas=\"p\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{ description }\n\t\t\t\t\t</Text>\n\t\t\t\t) }\n\t\t\t</div>\n\n\t\t\t<TemplateAreas closeTemplateDetailsDropdown={ onClose } />\n\n\t\t\t{ isTemplateRevertable( template ) && (\n\t\t\t\t<MenuGroup className=\"edit-site-template-details__group edit-site-template-details__revert\">\n\t\t\t\t\t<MenuItem\n\t\t\t\t\t\tclassName=\"edit-site-template-details__revert-button\"\n\t\t\t\t\t\tinfo={ __( 'Restore template to default state' ) }\n\t\t\t\t\t\tonClick={ revert }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Clear customizations' ) }\n\t\t\t\t\t</MenuItem>\n\t\t\t\t</MenuGroup>\n\t\t\t) }\n\n\t\t\t<Button\n\t\t\t\tclassName=\"edit-site-template-details__show-all-button\"\n\t\t\t\t{ ...browseAllLinkProps }\n\t\t\t>\n\t\t\t\t{ sprintf(\n\t\t\t\t\t/* translators: the template part's area name (\"Headers\", \"Sidebars\") or \"templates\". */\n\t\t\t\t\t__( 'Browse all %s' ),\n\t\t\t\t\ttemplateSubMenu.title\n\t\t\t\t) }\n\t\t\t</Button>\n\t\t</div>\n\t);\n}\n"]}
|
package/build-module/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import { dispatch, select } from '@wordpress/data';
|
|
|
9
9
|
import { render, unmountComponentAtNode } from '@wordpress/element';
|
|
10
10
|
import { __experimentalFetchLinkSuggestions as fetchLinkSuggestions, __experimentalFetchUrlData as fetchUrlData } from '@wordpress/core-data';
|
|
11
11
|
import { store as editorStore } from '@wordpress/editor';
|
|
12
|
+
import { store as interfaceStore } from '@wordpress/interface';
|
|
12
13
|
import { store as preferencesStore } from '@wordpress/preferences';
|
|
13
14
|
import { __ } from '@wordpress/i18n';
|
|
14
15
|
import { store as viewportStore } from '@wordpress/viewport';
|
|
@@ -53,8 +54,15 @@ export function reinitializeEditor(target, settings) {
|
|
|
53
54
|
focusMode: false,
|
|
54
55
|
keepCaretInsideBlock: false,
|
|
55
56
|
welcomeGuide: true,
|
|
56
|
-
welcomeGuideStyles: true
|
|
57
|
-
|
|
57
|
+
welcomeGuideStyles: true,
|
|
58
|
+
shouldListViewOpenByDefault: false
|
|
59
|
+
}); // Check if the block list view should be open by default.
|
|
60
|
+
|
|
61
|
+
if (select(preferencesStore).get('core/edit-site', 'showListViewByDefault')) {
|
|
62
|
+
dispatch(editSiteStore).setIsListViewOpened(true);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
dispatch(interfaceStore).setDefaultComplementaryArea('core/edit-site', 'edit-site/template');
|
|
58
66
|
dispatch(editSiteStore).updateSettings(settings); // Keep the defaultTemplateTypes in the core/editor settings too,
|
|
59
67
|
// so that they can be selected with core/editor selectors in any editor.
|
|
60
68
|
// This is needed because edit-site doesn't initialize with EditorProvider,
|
|
@@ -87,7 +95,6 @@ export function initializeEditor(id, settings) {
|
|
|
87
95
|
settings.__experimentalFetchLinkSuggestions = (search, searchOptions) => fetchLinkSuggestions(search, searchOptions, settings);
|
|
88
96
|
|
|
89
97
|
settings.__experimentalFetchRichUrlData = fetchUrlData;
|
|
90
|
-
settings.__experimentalSpotlightEntityBlocks = ['core/template-part'];
|
|
91
98
|
const target = document.getElementById(id);
|
|
92
99
|
|
|
93
100
|
dispatch(blocksStore).__experimentalReapplyBlockTypeFilters();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/edit-site/src/index.js"],"names":["store","blocksStore","registerCoreBlocks","__experimentalRegisterExperimentalCoreBlocks","dispatch","select","render","unmountComponentAtNode","__experimentalFetchLinkSuggestions","fetchLinkSuggestions","__experimentalFetchUrlData","fetchUrlData","editorStore","preferencesStore","__","viewportStore","getQueryArgs","editSiteStore","EditSiteApp","getIsListPage","ErrorBoundaryWarning","reinitializeEditor","target","settings","__unstableHomeTemplate","reboot","bind","setDefaults","editorMode","fixedToolbar","focusMode","keepCaretInsideBlock","welcomeGuide","welcomeGuideStyles","updateSettings","updateEditorSettings","defaultTemplateTypes","defaultTemplatePartAreas","isLandingOnListPage","window","location","href","setIsNavigationPanelOpened","isViewportMatch","initializeEditor","id","search","searchOptions","__experimentalFetchRichUrlData","
|
|
1
|
+
{"version":3,"sources":["@wordpress/edit-site/src/index.js"],"names":["store","blocksStore","registerCoreBlocks","__experimentalRegisterExperimentalCoreBlocks","dispatch","select","render","unmountComponentAtNode","__experimentalFetchLinkSuggestions","fetchLinkSuggestions","__experimentalFetchUrlData","fetchUrlData","editorStore","interfaceStore","preferencesStore","__","viewportStore","getQueryArgs","editSiteStore","EditSiteApp","getIsListPage","ErrorBoundaryWarning","reinitializeEditor","target","settings","__unstableHomeTemplate","reboot","bind","setDefaults","editorMode","fixedToolbar","focusMode","keepCaretInsideBlock","welcomeGuide","welcomeGuideStyles","shouldListViewOpenByDefault","get","setIsListViewOpened","setDefaultComplementaryArea","updateSettings","updateEditorSettings","defaultTemplateTypes","defaultTemplatePartAreas","isLandingOnListPage","window","location","href","setIsNavigationPanelOpened","isViewportMatch","initializeEditor","id","search","searchOptions","__experimentalFetchRichUrlData","document","getElementById","__experimentalReapplyBlockTypeFilters","process","env","IS_GUTENBERG_PLUGIN","enableFSEBlocks","default","__experimentalMainDashboardButton","__experimentalNavigationToggle","PluginSidebar","PluginSidebarMoreMenuItem","PluginMoreMenuItem"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,KAAK,IAAIC,WAAlB,QAAqC,mBAArC;AACA,SACCC,kBADD,EAECC,4CAFD,QAGO,0BAHP;AAIA,SAASC,QAAT,EAAmBC,MAAnB,QAAiC,iBAAjC;AACA,SAASC,MAAT,EAAiBC,sBAAjB,QAA+C,oBAA/C;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,SAASC,EAAT,QAAmB,iBAAnB;AACA,SAASf,KAAK,IAAIgB,aAAlB,QAAuC,qBAAvC;AACA,SAASC,YAAT,QAA6B,gBAA7B;AAEA;AACA;AACA;;AACA,OAAO,SAAP;AACA,SAASjB,KAAK,IAAIkB,aAAlB,QAAuC,SAAvC;AACA,OAAOC,WAAP,MAAwB,kBAAxB;AACA,OAAOC,aAAP,MAA0B,0BAA1B;AACA,OAAOC,oBAAP,MAAiC,qCAAjC;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASC,kBAAT,CAA6BC,MAA7B,EAAqCC,QAArC,EAAgD;AACtD;AACA,MAAK,CAAEA,QAAQ,CAACC,sBAAhB,EAAyC;AACxCnB,IAAAA,MAAM,CACL,cAAC,oBAAD;AACC,MAAA,OAAO,EAAGS,EAAE,CACX,iEADW,CADb;AAIC,MAAA,aAAa,EAAC;AAJf,MADK,EAOLQ,MAPK,CAAN;AASA;AACA,GAbqD,CAetD;;;AACAhB,EAAAA,sBAAsB,CAAEgB,MAAF,CAA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MAAM,CAAEW,aAAF,CAAN,CAAwBgC,eAAxB,CAAyC,QAAzC,CADD;AAGA;AACD;AAED1C,EAAAA,MAAM,CAAE,cAAC,WAAD;AAAa,IAAA,MAAM,EAAGoB;AAAtB,IAAF,EAAqCH,MAArC,CAAN;AACA;AAED;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAAS0B,gBAAT,CAA2BC,EAA3B,EAA+B1B,QAA/B,EAA0C;AAChDA,EAAAA,QAAQ,CAAChB,kCAAT,GAA8C,CAAE2C,MAAF,EAAUC,aAAV,KAC7C3C,oBAAoB,CAAE0C,MAAF,EAAUC,aAAV,EAAyB5B,QAAzB,CADrB;;AAEAA,EAAAA,QAAQ,CAAC6B,8BAAT,GAA0C1C,YAA1C;AAEA,QAAMY,MAAM,GAAG+B,QAAQ,CAACC,cAAT,CAAyBL,EAAzB,CAAf;;AAEA9C,EAAAA,QAAQ,CAAEH,WAAF,CAAR,CAAwBuD,qCAAxB;;AACAtD,EAAAA,kBAAkB;;AAClB,MAAKuD,OAAO,CAACC,GAAR,CAAYC,mBAAjB,EAAuC;AACtCxD,IAAAA,4CAA4C,CAAE;AAC7CyD,MAAAA,eAAe,EAAE;AAD4B,KAAF,CAA5C;AAGA;;AAEDtC,EAAAA,kBAAkB,CAAEC,MAAF,EAAUC,QAAV,CAAlB;AACA;AAED,SAASqC,OAAO,IAAIC,iCAApB,QAA6D,oCAA7D;AACA,SAASD,OAAO,IAAIE,8BAApB,QAA0D,mDAA1D;AACA,SAASF,OAAO,IAAIG,aAApB,QAAyC,qCAAzC;AACA,SAASH,OAAO,IAAII,yBAApB,QAAqD,mDAArD;AACA,SAASJ,OAAO,IAAIK,kBAApB,QAA8C,2CAA9C","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { store as blocksStore } from '@wordpress/blocks';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport { dispatch, select } from '@wordpress/data';\nimport { render, unmountComponentAtNode } 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 { __ } from '@wordpress/i18n';\nimport { store as viewportStore } from '@wordpress/viewport';\nimport { getQueryArgs } from '@wordpress/url';\n\n/**\n * Internal dependencies\n */\nimport './hooks';\nimport { store as editSiteStore } from './store';\nimport EditSiteApp from './components/app';\nimport getIsListPage from './utils/get-is-list-page';\nimport ErrorBoundaryWarning from './components/error-boundary/warning';\n\n/**\n * Reinitializes the editor after the user chooses to reboot the editor after\n * an unhandled error occurs, replacing previously mounted editor element using\n * an initial state from prior to the crash.\n *\n * @param {Element} target DOM node in which editor is rendered.\n * @param {?Object} settings Editor settings object.\n */\nexport function reinitializeEditor( target, settings ) {\n\t// Display warning if editor wasn't able to resolve homepage template.\n\tif ( ! settings.__unstableHomeTemplate ) {\n\t\trender(\n\t\t\t<ErrorBoundaryWarning\n\t\t\t\tmessage={ __(\n\t\t\t\t\t'The editor is unable to find a block template for the homepage.'\n\t\t\t\t) }\n\t\t\t\tdashboardLink=\"index.php\"\n\t\t\t/>,\n\t\t\ttarget\n\t\t);\n\t\treturn;\n\t}\n\n\t// This will be a no-op if the target doesn't have any React nodes.\n\tunmountComponentAtNode( target );\n\tconst reboot = reinitializeEditor.bind( null, target, settings );\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\t{\n\t\tdispatch( preferencesStore ).setDefaults( 'core/edit-site', {\n\t\t\teditorMode: 'visual',\n\t\t\tfixedToolbar: false,\n\t\t\tfocusMode: false,\n\t\t\tkeepCaretInsideBlock: false,\n\t\t\twelcomeGuide: true,\n\t\t\twelcomeGuideStyles: true,\n\t\t\tshouldListViewOpenByDefault: false,\n\t\t} );\n\n\t\t// Check if the block list view should be open by default.\n\t\tif (\n\t\t\tselect( preferencesStore ).get(\n\t\t\t\t'core/edit-site',\n\t\t\t\t'showListViewByDefault'\n\t\t\t)\n\t\t) {\n\t\t\tdispatch( editSiteStore ).setIsListViewOpened( true );\n\t\t}\n\n\t\tdispatch( interfaceStore ).setDefaultComplementaryArea(\n\t\t\t'core/edit-site',\n\t\t\t'edit-site/template'\n\t\t);\n\n\t\tdispatch( editSiteStore ).updateSettings( settings );\n\n\t\t// Keep the defaultTemplateTypes in the core/editor settings too,\n\t\t// so that they can be selected with core/editor selectors in any editor.\n\t\t// This is needed because edit-site doesn't initialize with EditorProvider,\n\t\t// which internally uses updateEditorSettings as well.\n\t\tdispatch( editorStore ).updateEditorSettings( {\n\t\t\tdefaultTemplateTypes: settings.defaultTemplateTypes,\n\t\t\tdefaultTemplatePartAreas: settings.defaultTemplatePartAreas,\n\t\t} );\n\n\t\tconst isLandingOnListPage = getIsListPage(\n\t\t\tgetQueryArgs( window.location.href )\n\t\t);\n\n\t\tif ( isLandingOnListPage ) {\n\t\t\t// Default the navigation panel to be opened when we're in a bigger\n\t\t\t// screen and land in the list screen.\n\t\t\tdispatch( editSiteStore ).setIsNavigationPanelOpened(\n\t\t\t\tselect( viewportStore ).isViewportMatch( 'medium' )\n\t\t\t);\n\t\t}\n\t}\n\n\trender( <EditSiteApp reboot={ reboot } />, target );\n}\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\tsettings.__experimentalFetchLinkSuggestions = ( search, searchOptions ) =>\n\t\tfetchLinkSuggestions( search, searchOptions, settings );\n\tsettings.__experimentalFetchRichUrlData = fetchUrlData;\n\n\tconst target = document.getElementById( id );\n\n\tdispatch( blocksStore ).__experimentalReapplyBlockTypeFilters();\n\tregisterCoreBlocks();\n\tif ( process.env.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: true,\n\t\t} );\n\t}\n\n\treinitializeEditor( target, settings );\n}\n\nexport { default as __experimentalMainDashboardButton } from './components/main-dashboard-button';\nexport { default as __experimentalNavigationToggle } from './components/navigation-sidebar/navigation-toggle';\nexport { default as PluginSidebar } from './components/sidebar/plugin-sidebar';\nexport { default as PluginSidebarMoreMenuItem } from './components/header/plugin-sidebar-more-menu-item';\nexport { default as PluginMoreMenuItem } from './components/header/plugin-more-menu-item';\n"]}
|
|
@@ -416,7 +416,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
416
416
|
}
|
|
417
417
|
@media (min-width: 480px) {
|
|
418
418
|
.interface-more-menu-dropdown__content .components-popover__content {
|
|
419
|
-
width: auto;
|
|
420
419
|
max-width: 480px;
|
|
421
420
|
}
|
|
422
421
|
}
|
|
@@ -430,6 +429,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
430
429
|
|
|
431
430
|
.interface-pinned-items {
|
|
432
431
|
display: flex;
|
|
432
|
+
gap: 4px;
|
|
433
|
+
margin-left: -4px;
|
|
433
434
|
}
|
|
434
435
|
.interface-pinned-items .components-button:not(:first-child) {
|
|
435
436
|
display: none;
|
|
@@ -440,7 +441,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
440
441
|
}
|
|
441
442
|
}
|
|
442
443
|
.interface-pinned-items .components-button {
|
|
443
|
-
margin
|
|
444
|
+
margin: 0;
|
|
444
445
|
}
|
|
445
446
|
.interface-pinned-items .components-button svg {
|
|
446
447
|
max-width: 24px;
|
|
@@ -900,42 +901,30 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
900
901
|
}
|
|
901
902
|
|
|
902
903
|
/**
|
|
903
|
-
* Buttons
|
|
904
|
+
* Buttons on the right side
|
|
904
905
|
*/
|
|
905
906
|
.edit-site-header__actions {
|
|
906
907
|
display: inline-flex;
|
|
907
908
|
align-items: center;
|
|
908
909
|
padding-left: 4px;
|
|
910
|
+
gap: 4px;
|
|
909
911
|
}
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
@media (min-width: 782px) {
|
|
914
|
-
.edit-site-header__actions .interface-pinned-items {
|
|
915
|
-
display: inline-flex;
|
|
912
|
+
@media (min-width: 600px) {
|
|
913
|
+
.edit-site-header__actions {
|
|
914
|
+
padding-left: 10px;
|
|
916
915
|
}
|
|
917
916
|
}
|
|
918
|
-
.edit-site-header__actions .editor-post-saved-state,
|
|
919
|
-
.edit-site-header__actions .components-button.components-button {
|
|
920
|
-
margin-left: 4px;
|
|
921
|
-
}
|
|
922
917
|
@media (min-width: 600px) {
|
|
923
|
-
.edit-site-header__actions
|
|
924
|
-
|
|
925
|
-
margin-left: 12px;
|
|
918
|
+
.edit-site-header__actions {
|
|
919
|
+
gap: 8px;
|
|
926
920
|
}
|
|
927
921
|
}
|
|
928
|
-
.edit-site-header__actions .
|
|
929
|
-
|
|
930
|
-
padding: 0 6px;
|
|
931
|
-
}
|
|
932
|
-
.edit-site-header__actions .edit-site-more-menu .components-button,
|
|
933
|
-
.edit-site-header__actions .interface-pinned-items .components-button {
|
|
934
|
-
margin-left: 0;
|
|
922
|
+
.edit-site-header__actions .interface-pinned-items {
|
|
923
|
+
display: none;
|
|
935
924
|
}
|
|
936
|
-
@media (min-width:
|
|
937
|
-
.edit-site-header__actions {
|
|
938
|
-
|
|
925
|
+
@media (min-width: 782px) {
|
|
926
|
+
.edit-site-header__actions .interface-pinned-items {
|
|
927
|
+
display: inline-flex;
|
|
939
928
|
}
|
|
940
929
|
}
|
|
941
930
|
|
|
@@ -974,10 +963,6 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
974
963
|
.show-icon-labels .edit-site-header .edit-site-save-button__button {
|
|
975
964
|
padding-right: 6px;
|
|
976
965
|
padding-left: 6px;
|
|
977
|
-
margin-left: 4px;
|
|
978
|
-
}
|
|
979
|
-
.show-icon-labels .edit-site-header .block-editor-post-preview__button-toggle {
|
|
980
|
-
margin-left: 4px;
|
|
981
966
|
}
|
|
982
967
|
.show-icon-labels .edit-site-header .edit-site-header-toolbar__inserter-toggle.edit-site-header-toolbar__inserter-toggle,
|
|
983
968
|
.show-icon-labels .edit-site-header .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info {
|
|
@@ -1045,7 +1030,7 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
1045
1030
|
margin-right: 6px;
|
|
1046
1031
|
}
|
|
1047
1032
|
|
|
1048
|
-
.edit-site-document-actions__info-dropdown > .components-popover__content
|
|
1033
|
+
.edit-site-document-actions__info-dropdown > .components-popover__content {
|
|
1049
1034
|
padding: 0;
|
|
1050
1035
|
min-width: 240px;
|
|
1051
1036
|
}
|
|
@@ -1368,6 +1353,7 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1368
1353
|
}
|
|
1369
1354
|
.edit-site-list-table tr .edit-site-list-table-column:nth-child(2) {
|
|
1370
1355
|
width: calc(40% - 18px);
|
|
1356
|
+
word-break: break-word;
|
|
1371
1357
|
}
|
|
1372
1358
|
.edit-site-list-table tr .edit-site-list-table-column:nth-child(3) {
|
|
1373
1359
|
min-width: 36px;
|
|
@@ -1556,44 +1542,10 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1556
1542
|
line-height: 1;
|
|
1557
1543
|
}
|
|
1558
1544
|
|
|
1559
|
-
.edit-site-global-styles-
|
|
1560
|
-
|
|
1561
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-right .components-popover__content,
|
|
1562
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-bottom .components-popover__content,
|
|
1563
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-left .components-popover__content {
|
|
1564
|
-
width: 282px;
|
|
1545
|
+
.edit-site-global-styles-sidebar hr {
|
|
1546
|
+
margin: 0;
|
|
1565
1547
|
}
|
|
1566
1548
|
|
|
1567
|
-
@media (min-width: 782px) {
|
|
1568
|
-
.edit-site-global-styles-sidebar__border-box-control__popover .components-popover__content,
|
|
1569
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-left .components-popover__content {
|
|
1570
|
-
margin-left: 52px !important;
|
|
1571
|
-
}
|
|
1572
|
-
|
|
1573
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-top .components-popover__content,
|
|
1574
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-bottom .components-popover__content {
|
|
1575
|
-
margin-left: 107px !important;
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-right .components-popover__content {
|
|
1579
|
-
margin-left: 162px !important;
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
.edit-site-global-styles-sidebar__border-box-control__popover.is-from-top .components-popover__content,
|
|
1583
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-top.is-from-top .components-popover__content,
|
|
1584
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-right.is-from-top .components-popover__content,
|
|
1585
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-bottom.is-from-top .components-popover__content,
|
|
1586
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-left.is-from-top .components-popover__content {
|
|
1587
|
-
margin-top: -52px !important;
|
|
1588
|
-
}
|
|
1589
|
-
.edit-site-global-styles-sidebar__border-box-control__popover.is-from-bottom .components-popover__content,
|
|
1590
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-top.is-from-bottom .components-popover__content,
|
|
1591
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-right.is-from-bottom .components-popover__content,
|
|
1592
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-bottom.is-from-bottom .components-popover__content,
|
|
1593
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-left.is-from-bottom .components-popover__content {
|
|
1594
|
-
margin-bottom: -52px !important;
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
1549
|
.components-panel__header.edit-site-sidebar__panel-tabs {
|
|
1598
1550
|
justify-content: flex-start;
|
|
1599
1551
|
padding-right: 0;
|
|
@@ -1642,7 +1594,7 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1642
1594
|
visibility: hidden;
|
|
1643
1595
|
}
|
|
1644
1596
|
.components-button.edit-site-sidebar__panel-tab.is-active {
|
|
1645
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) transparent, inset 0 -
|
|
1597
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) transparent, inset 0 -1.5px 0 0 var(--wp-admin-theme-color);
|
|
1646
1598
|
position: relative;
|
|
1647
1599
|
z-index: 1;
|
|
1648
1600
|
}
|
|
@@ -1653,7 +1605,7 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1653
1605
|
bottom: 1px;
|
|
1654
1606
|
left: 0;
|
|
1655
1607
|
right: 0;
|
|
1656
|
-
border-bottom:
|
|
1608
|
+
border-bottom: 1.5px solid transparent;
|
|
1657
1609
|
}
|
|
1658
1610
|
.components-button.edit-site-sidebar__panel-tab:focus {
|
|
1659
1611
|
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
@@ -1661,7 +1613,7 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1661
1613
|
z-index: 1;
|
|
1662
1614
|
}
|
|
1663
1615
|
.components-button.edit-site-sidebar__panel-tab.is-active:focus {
|
|
1664
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 -
|
|
1616
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 -1.5px 0 0 var(--wp-admin-theme-color);
|
|
1665
1617
|
}
|
|
1666
1618
|
|
|
1667
1619
|
@keyframes loadingpulse {
|
|
@@ -1679,7 +1631,6 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1679
1631
|
padding: 16px;
|
|
1680
1632
|
}
|
|
1681
1633
|
.edit-site-navigation-inspector .block-editor-list-view-leaf .block-editor-list-view-block-contents {
|
|
1682
|
-
align-items: flex-start;
|
|
1683
1634
|
white-space: normal;
|
|
1684
1635
|
}
|
|
1685
1636
|
.edit-site-navigation-inspector .block-editor-list-view-block__title {
|
package/build-style/style.css
CHANGED
|
@@ -416,7 +416,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
416
416
|
}
|
|
417
417
|
@media (min-width: 480px) {
|
|
418
418
|
.interface-more-menu-dropdown__content .components-popover__content {
|
|
419
|
-
width: auto;
|
|
420
419
|
max-width: 480px;
|
|
421
420
|
}
|
|
422
421
|
}
|
|
@@ -430,6 +429,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
430
429
|
|
|
431
430
|
.interface-pinned-items {
|
|
432
431
|
display: flex;
|
|
432
|
+
gap: 4px;
|
|
433
|
+
margin-right: -4px;
|
|
433
434
|
}
|
|
434
435
|
.interface-pinned-items .components-button:not(:first-child) {
|
|
435
436
|
display: none;
|
|
@@ -440,7 +441,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
440
441
|
}
|
|
441
442
|
}
|
|
442
443
|
.interface-pinned-items .components-button {
|
|
443
|
-
margin
|
|
444
|
+
margin: 0;
|
|
444
445
|
}
|
|
445
446
|
.interface-pinned-items .components-button svg {
|
|
446
447
|
max-width: 24px;
|
|
@@ -900,42 +901,30 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
900
901
|
}
|
|
901
902
|
|
|
902
903
|
/**
|
|
903
|
-
* Buttons
|
|
904
|
+
* Buttons on the right side
|
|
904
905
|
*/
|
|
905
906
|
.edit-site-header__actions {
|
|
906
907
|
display: inline-flex;
|
|
907
908
|
align-items: center;
|
|
908
909
|
padding-right: 4px;
|
|
910
|
+
gap: 4px;
|
|
909
911
|
}
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
@media (min-width: 782px) {
|
|
914
|
-
.edit-site-header__actions .interface-pinned-items {
|
|
915
|
-
display: inline-flex;
|
|
912
|
+
@media (min-width: 600px) {
|
|
913
|
+
.edit-site-header__actions {
|
|
914
|
+
padding-right: 10px;
|
|
916
915
|
}
|
|
917
916
|
}
|
|
918
|
-
.edit-site-header__actions .editor-post-saved-state,
|
|
919
|
-
.edit-site-header__actions .components-button.components-button {
|
|
920
|
-
margin-right: 4px;
|
|
921
|
-
}
|
|
922
917
|
@media (min-width: 600px) {
|
|
923
|
-
.edit-site-header__actions
|
|
924
|
-
|
|
925
|
-
margin-right: 12px;
|
|
918
|
+
.edit-site-header__actions {
|
|
919
|
+
gap: 8px;
|
|
926
920
|
}
|
|
927
921
|
}
|
|
928
|
-
.edit-site-header__actions .
|
|
929
|
-
|
|
930
|
-
padding: 0 6px;
|
|
931
|
-
}
|
|
932
|
-
.edit-site-header__actions .edit-site-more-menu .components-button,
|
|
933
|
-
.edit-site-header__actions .interface-pinned-items .components-button {
|
|
934
|
-
margin-right: 0;
|
|
922
|
+
.edit-site-header__actions .interface-pinned-items {
|
|
923
|
+
display: none;
|
|
935
924
|
}
|
|
936
|
-
@media (min-width:
|
|
937
|
-
.edit-site-header__actions {
|
|
938
|
-
|
|
925
|
+
@media (min-width: 782px) {
|
|
926
|
+
.edit-site-header__actions .interface-pinned-items {
|
|
927
|
+
display: inline-flex;
|
|
939
928
|
}
|
|
940
929
|
}
|
|
941
930
|
|
|
@@ -974,10 +963,6 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
974
963
|
.show-icon-labels .edit-site-header .edit-site-save-button__button {
|
|
975
964
|
padding-left: 6px;
|
|
976
965
|
padding-right: 6px;
|
|
977
|
-
margin-right: 4px;
|
|
978
|
-
}
|
|
979
|
-
.show-icon-labels .edit-site-header .block-editor-post-preview__button-toggle {
|
|
980
|
-
margin-right: 4px;
|
|
981
966
|
}
|
|
982
967
|
.show-icon-labels .edit-site-header .edit-site-header-toolbar__inserter-toggle.edit-site-header-toolbar__inserter-toggle,
|
|
983
968
|
.show-icon-labels .edit-site-header .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info {
|
|
@@ -1045,7 +1030,7 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
1045
1030
|
margin-left: 6px;
|
|
1046
1031
|
}
|
|
1047
1032
|
|
|
1048
|
-
.edit-site-document-actions__info-dropdown > .components-popover__content
|
|
1033
|
+
.edit-site-document-actions__info-dropdown > .components-popover__content {
|
|
1049
1034
|
padding: 0;
|
|
1050
1035
|
min-width: 240px;
|
|
1051
1036
|
}
|
|
@@ -1368,6 +1353,7 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1368
1353
|
}
|
|
1369
1354
|
.edit-site-list-table tr .edit-site-list-table-column:nth-child(2) {
|
|
1370
1355
|
width: calc(40% - 18px);
|
|
1356
|
+
word-break: break-word;
|
|
1371
1357
|
}
|
|
1372
1358
|
.edit-site-list-table tr .edit-site-list-table-column:nth-child(3) {
|
|
1373
1359
|
min-width: 36px;
|
|
@@ -1556,44 +1542,10 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1556
1542
|
line-height: 1;
|
|
1557
1543
|
}
|
|
1558
1544
|
|
|
1559
|
-
.edit-site-global-styles-
|
|
1560
|
-
|
|
1561
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-right .components-popover__content,
|
|
1562
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-bottom .components-popover__content,
|
|
1563
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-left .components-popover__content {
|
|
1564
|
-
width: 282px;
|
|
1545
|
+
.edit-site-global-styles-sidebar hr {
|
|
1546
|
+
margin: 0;
|
|
1565
1547
|
}
|
|
1566
1548
|
|
|
1567
|
-
@media (min-width: 782px) {
|
|
1568
|
-
.edit-site-global-styles-sidebar__border-box-control__popover .components-popover__content,
|
|
1569
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-left .components-popover__content {
|
|
1570
|
-
margin-right: 52px !important;
|
|
1571
|
-
}
|
|
1572
|
-
|
|
1573
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-top .components-popover__content,
|
|
1574
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-bottom .components-popover__content {
|
|
1575
|
-
margin-right: 107px !important;
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-right .components-popover__content {
|
|
1579
|
-
margin-right: 162px !important;
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
.edit-site-global-styles-sidebar__border-box-control__popover.is-from-top .components-popover__content,
|
|
1583
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-top.is-from-top .components-popover__content,
|
|
1584
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-right.is-from-top .components-popover__content,
|
|
1585
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-bottom.is-from-top .components-popover__content,
|
|
1586
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-left.is-from-top .components-popover__content {
|
|
1587
|
-
margin-top: -52px !important;
|
|
1588
|
-
}
|
|
1589
|
-
.edit-site-global-styles-sidebar__border-box-control__popover.is-from-bottom .components-popover__content,
|
|
1590
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-top.is-from-bottom .components-popover__content,
|
|
1591
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-right.is-from-bottom .components-popover__content,
|
|
1592
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-bottom.is-from-bottom .components-popover__content,
|
|
1593
|
-
.edit-site-global-styles-sidebar__border-box-control__popover-left.is-from-bottom .components-popover__content {
|
|
1594
|
-
margin-bottom: -52px !important;
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
1549
|
.components-panel__header.edit-site-sidebar__panel-tabs {
|
|
1598
1550
|
justify-content: flex-start;
|
|
1599
1551
|
padding-left: 0;
|
|
@@ -1642,7 +1594,7 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1642
1594
|
visibility: hidden;
|
|
1643
1595
|
}
|
|
1644
1596
|
.components-button.edit-site-sidebar__panel-tab.is-active {
|
|
1645
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) transparent, inset 0 -
|
|
1597
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) transparent, inset 0 -1.5px 0 0 var(--wp-admin-theme-color);
|
|
1646
1598
|
position: relative;
|
|
1647
1599
|
z-index: 1;
|
|
1648
1600
|
}
|
|
@@ -1653,7 +1605,7 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1653
1605
|
bottom: 1px;
|
|
1654
1606
|
right: 0;
|
|
1655
1607
|
left: 0;
|
|
1656
|
-
border-bottom:
|
|
1608
|
+
border-bottom: 1.5px solid transparent;
|
|
1657
1609
|
}
|
|
1658
1610
|
.components-button.edit-site-sidebar__panel-tab:focus {
|
|
1659
1611
|
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
@@ -1661,7 +1613,7 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1661
1613
|
z-index: 1;
|
|
1662
1614
|
}
|
|
1663
1615
|
.components-button.edit-site-sidebar__panel-tab.is-active:focus {
|
|
1664
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 -
|
|
1616
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 -1.5px 0 0 var(--wp-admin-theme-color);
|
|
1665
1617
|
}
|
|
1666
1618
|
|
|
1667
1619
|
@keyframes loadingpulse {
|
|
@@ -1679,7 +1631,6 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1679
1631
|
padding: 16px;
|
|
1680
1632
|
}
|
|
1681
1633
|
.edit-site-navigation-inspector .block-editor-list-view-leaf .block-editor-list-view-block-contents {
|
|
1682
|
-
align-items: flex-start;
|
|
1683
1634
|
white-space: normal;
|
|
1684
1635
|
}
|
|
1685
1636
|
.edit-site-navigation-inspector .block-editor-list-view-block__title {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"description": "Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -27,39 +27,39 @@
|
|
|
27
27
|
"react-native": "src/index",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@babel/runtime": "^7.16.0",
|
|
30
|
-
"@wordpress/a11y": "^3.
|
|
31
|
-
"@wordpress/api-fetch": "^6.
|
|
32
|
-
"@wordpress/block-editor": "^
|
|
33
|
-
"@wordpress/block-library": "^7.
|
|
34
|
-
"@wordpress/blocks": "^11.
|
|
35
|
-
"@wordpress/components": "^19.
|
|
36
|
-
"@wordpress/compose": "^5.
|
|
37
|
-
"@wordpress/core-data": "^4.
|
|
38
|
-
"@wordpress/data": "^6.
|
|
39
|
-
"@wordpress/deprecated": "^3.
|
|
40
|
-
"@wordpress/editor": "^12.
|
|
41
|
-
"@wordpress/element": "^4.
|
|
42
|
-
"@wordpress/hooks": "^3.
|
|
43
|
-
"@wordpress/html-entities": "^3.
|
|
44
|
-
"@wordpress/i18n": "^4.
|
|
45
|
-
"@wordpress/icons": "^
|
|
46
|
-
"@wordpress/interface": "^4.
|
|
47
|
-
"@wordpress/keyboard-shortcuts": "^3.
|
|
48
|
-
"@wordpress/keycodes": "^3.
|
|
49
|
-
"@wordpress/media-utils": "^
|
|
50
|
-
"@wordpress/notices": "^3.
|
|
51
|
-
"@wordpress/plugins": "^4.
|
|
52
|
-
"@wordpress/preferences": "^
|
|
53
|
-
"@wordpress/reusable-blocks": "^3.
|
|
54
|
-
"@wordpress/style-engine": "^0.
|
|
55
|
-
"@wordpress/url": "^3.
|
|
56
|
-
"@wordpress/viewport": "^4.
|
|
30
|
+
"@wordpress/a11y": "^3.10.0",
|
|
31
|
+
"@wordpress/api-fetch": "^6.7.0",
|
|
32
|
+
"@wordpress/block-editor": "^9.2.0",
|
|
33
|
+
"@wordpress/block-library": "^7.7.0",
|
|
34
|
+
"@wordpress/blocks": "^11.9.0",
|
|
35
|
+
"@wordpress/components": "^19.12.0",
|
|
36
|
+
"@wordpress/compose": "^5.8.0",
|
|
37
|
+
"@wordpress/core-data": "^4.8.0",
|
|
38
|
+
"@wordpress/data": "^6.10.0",
|
|
39
|
+
"@wordpress/deprecated": "^3.10.0",
|
|
40
|
+
"@wordpress/editor": "^12.9.0",
|
|
41
|
+
"@wordpress/element": "^4.8.0",
|
|
42
|
+
"@wordpress/hooks": "^3.10.0",
|
|
43
|
+
"@wordpress/html-entities": "^3.10.0",
|
|
44
|
+
"@wordpress/i18n": "^4.10.0",
|
|
45
|
+
"@wordpress/icons": "^9.1.0",
|
|
46
|
+
"@wordpress/interface": "^4.9.0",
|
|
47
|
+
"@wordpress/keyboard-shortcuts": "^3.8.0",
|
|
48
|
+
"@wordpress/keycodes": "^3.10.0",
|
|
49
|
+
"@wordpress/media-utils": "^4.1.0",
|
|
50
|
+
"@wordpress/notices": "^3.10.0",
|
|
51
|
+
"@wordpress/plugins": "^4.8.0",
|
|
52
|
+
"@wordpress/preferences": "^2.2.0",
|
|
53
|
+
"@wordpress/reusable-blocks": "^3.8.0",
|
|
54
|
+
"@wordpress/style-engine": "^0.9.0",
|
|
55
|
+
"@wordpress/url": "^3.11.0",
|
|
56
|
+
"@wordpress/viewport": "^4.8.0",
|
|
57
57
|
"classnames": "^2.3.1",
|
|
58
58
|
"downloadjs": "^1.4.7",
|
|
59
59
|
"history": "^5.1.0",
|
|
60
60
|
"lodash": "^4.17.21",
|
|
61
61
|
"react-autosize-textarea": "^7.1.0",
|
|
62
|
-
"rememo": "^
|
|
62
|
+
"rememo": "^4.0.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"react": "^17.0.0",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "a3e0b62091e8a8bdf5e2518e42d60d7098af48cc"
|
|
72
72
|
}
|