@wordpress/edit-site 4.3.5 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/build/components/block-editor/index.js +1 -1
  3. package/build/components/block-editor/index.js.map +1 -1
  4. package/build/components/global-styles/border-panel.js +100 -79
  5. package/build/components/global-styles/border-panel.js.map +1 -1
  6. package/build/components/global-styles/context-menu.js +3 -3
  7. package/build/components/global-styles/context-menu.js.map +1 -1
  8. package/build/components/global-styles/header.js +15 -11
  9. package/build/components/global-styles/header.js.map +1 -1
  10. package/build/components/global-styles/navigation-button.js +4 -4
  11. package/build/components/global-styles/navigation-button.js.map +1 -1
  12. package/build/components/global-styles/palette.js +1 -1
  13. package/build/components/global-styles/palette.js.map +1 -1
  14. package/build/components/global-styles/screen-block-list.js +1 -1
  15. package/build/components/global-styles/screen-block-list.js.map +1 -1
  16. package/build/components/global-styles/screen-colors.js +3 -3
  17. package/build/components/global-styles/screen-colors.js.map +1 -1
  18. package/build/components/global-styles/screen-root.js +13 -3
  19. package/build/components/global-styles/screen-root.js.map +1 -1
  20. package/build/components/global-styles/screen-typography.js +1 -1
  21. package/build/components/global-styles/screen-typography.js.map +1 -1
  22. package/build/components/global-styles/use-global-styles-output.js +18 -7
  23. package/build/components/global-styles/use-global-styles-output.js.map +1 -1
  24. package/build/components/secondary-sidebar/list-view-sidebar.js +1 -5
  25. package/build/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
  26. package/build/components/sidebar/index.js +1 -1
  27. package/build/components/sidebar/index.js.map +1 -1
  28. package/build/components/sidebar/navigation-menu-sidebar/index.js +4 -2
  29. package/build/components/sidebar/navigation-menu-sidebar/index.js.map +1 -1
  30. package/build/components/sidebar/navigation-menu-sidebar/navigation-menu.js +1 -5
  31. package/build/components/sidebar/navigation-menu-sidebar/navigation-menu.js.map +1 -1
  32. package/build/index.js +0 -1
  33. package/build/index.js.map +1 -1
  34. package/build-module/components/block-editor/index.js +2 -2
  35. package/build-module/components/block-editor/index.js.map +1 -1
  36. package/build-module/components/global-styles/border-panel.js +103 -80
  37. package/build-module/components/global-styles/border-panel.js.map +1 -1
  38. package/build-module/components/global-styles/context-menu.js +4 -4
  39. package/build-module/components/global-styles/context-menu.js.map +1 -1
  40. package/build-module/components/global-styles/header.js +16 -11
  41. package/build-module/components/global-styles/header.js.map +1 -1
  42. package/build-module/components/global-styles/navigation-button.js +3 -3
  43. package/build-module/components/global-styles/navigation-button.js.map +1 -1
  44. package/build-module/components/global-styles/palette.js +2 -2
  45. package/build-module/components/global-styles/palette.js.map +1 -1
  46. package/build-module/components/global-styles/screen-block-list.js +2 -2
  47. package/build-module/components/global-styles/screen-block-list.js.map +1 -1
  48. package/build-module/components/global-styles/screen-colors.js +4 -4
  49. package/build-module/components/global-styles/screen-colors.js.map +1 -1
  50. package/build-module/components/global-styles/screen-root.js +15 -5
  51. package/build-module/components/global-styles/screen-root.js.map +1 -1
  52. package/build-module/components/global-styles/screen-typography.js +2 -2
  53. package/build-module/components/global-styles/screen-typography.js.map +1 -1
  54. package/build-module/components/global-styles/use-global-styles-output.js +17 -7
  55. package/build-module/components/global-styles/use-global-styles-output.js.map +1 -1
  56. package/build-module/components/secondary-sidebar/list-view-sidebar.js +1 -5
  57. package/build-module/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
  58. package/build-module/components/sidebar/index.js +3 -3
  59. package/build-module/components/sidebar/index.js.map +1 -1
  60. package/build-module/components/sidebar/navigation-menu-sidebar/index.js +4 -2
  61. package/build-module/components/sidebar/navigation-menu-sidebar/index.js.map +1 -1
  62. package/build-module/components/sidebar/navigation-menu-sidebar/navigation-menu.js +1 -5
  63. package/build-module/components/sidebar/navigation-menu-sidebar/navigation-menu.js.map +1 -1
  64. package/build-module/index.js +0 -1
  65. package/build-module/index.js.map +1 -1
  66. package/build-style/style-rtl.css +58 -29
  67. package/build-style/style.css +58 -29
  68. package/package.json +29 -29
  69. package/src/components/block-editor/index.js +2 -2
  70. package/src/components/global-styles/border-panel.js +112 -109
  71. package/src/components/global-styles/context-menu.js +7 -7
  72. package/src/components/global-styles/header.js +20 -17
  73. package/src/components/global-styles/navigation-button.js +3 -3
  74. package/src/components/global-styles/palette.js +3 -3
  75. package/src/components/global-styles/screen-block-list.js +3 -3
  76. package/src/components/global-styles/screen-colors.js +7 -7
  77. package/src/components/global-styles/screen-root.js +34 -24
  78. package/src/components/global-styles/screen-typography.js +3 -3
  79. package/src/components/global-styles/test/use-global-styles-output.js +1 -0
  80. package/src/components/global-styles/use-global-styles-output.js +30 -7
  81. package/src/components/header/style.scss +14 -29
  82. package/src/components/secondary-sidebar/list-view-sidebar.js +1 -5
  83. package/src/components/sidebar/index.js +2 -2
  84. package/src/components/sidebar/navigation-menu-sidebar/index.js +4 -1
  85. package/src/components/sidebar/navigation-menu-sidebar/navigation-menu.js +1 -7
  86. package/src/components/sidebar/style.scss +56 -0
  87. package/src/index.js +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar/navigation-menu-sidebar/index.js"],"names":["FlexBlock","Flex","__","navigation","DefaultSidebar","NavigationInspector","NavigationMenuSidebar"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,SAAT,EAAoBC,IAApB,QAAgC,uBAAhC;AACA,SAASC,EAAT,QAAmB,iBAAnB;AACA,SAASC,UAAT,QAA2B,kBAA3B;AAEA;AACA;AACA;;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,mBAAP,MAAgC,wBAAhC;AAEA,eAAe,SAASC,qBAAT,GAAiC;AAC/C,SACC,cAAC,cAAD;AACC,IAAA,SAAS,EAAC,mCADX;AAEC,IAAA,UAAU,EAAC,2BAFZ;AAGC,IAAA,KAAK,EAAGJ,EAAE,CAAE,kBAAF,CAHX;AAIC,IAAA,IAAI,EAAGC,UAJR;AAKC,IAAA,UAAU,EAAGD,EAAE,CAAE,+BAAF,CALhB;AAMC,IAAA,cAAc,EAAC,0CANhB;AAOC,IAAA,MAAM,EACL,cAAC,IAAD,QACC,cAAC,SAAD,QACC,8BAAUA,EAAE,CAAE,kBAAF,CAAZ,CADD,CADD;AARF,KAeC,cAAC,mBAAD,OAfD,CADD;AAmBA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { FlexBlock, Flex } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { navigation } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport DefaultSidebar from '../default-sidebar';\nimport NavigationInspector from './navigation-inspector';\n\nexport default function NavigationMenuSidebar() {\n\treturn (\n\t\t<DefaultSidebar\n\t\t\tclassName=\"edit-site-navigation-menu-sidebar\"\n\t\t\tidentifier=\"edit-site/navigation-menu\"\n\t\t\ttitle={ __( 'Navigation Menus' ) }\n\t\t\ticon={ navigation }\n\t\t\tcloseLabel={ __( 'Close navigation menu sidebar' ) }\n\t\t\tpanelClassName=\"edit-site-navigation-menu-sidebar__panel\"\n\t\t\theader={\n\t\t\t\t<Flex>\n\t\t\t\t\t<FlexBlock>\n\t\t\t\t\t\t<strong>{ __( 'Navigation Menus' ) }</strong>\n\t\t\t\t\t</FlexBlock>\n\t\t\t\t</Flex>\n\t\t\t}\n\t\t>\n\t\t\t<NavigationInspector />\n\t\t</DefaultSidebar>\n\t);\n}\n"]}
1
+ {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar/navigation-menu-sidebar/index.js"],"names":["FlexBlock","Flex","__","navigation","DefaultSidebar","NavigationInspector","NavigationMenuSidebar"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,SAAT,EAAoBC,IAApB,QAAgC,uBAAhC;AACA,SAASC,EAAT,QAAmB,iBAAnB;AACA,SAASC,UAAT,QAA2B,kBAA3B;AAEA;AACA;AACA;;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,mBAAP,MAAgC,wBAAhC;AAEA,eAAe,SAASC,qBAAT,GAAiC;AAC/C,SACC,cAAC,cAAD;AACC,IAAA,SAAS,EAAC,mCADX;AAEC,IAAA,UAAU,EAAC,2BAFZ;AAGC,IAAA,KAAK,EAAGJ,EAAE,CAAE,YAAF,CAHX;AAIC,IAAA,IAAI,EAAGC,UAJR;AAKC,IAAA,UAAU,EAAGD,EAAE,CAAE,+BAAF,CALhB;AAMC,IAAA,cAAc,EAAC,0CANhB;AAOC,IAAA,MAAM,EACL,cAAC,IAAD,QACC,cAAC,SAAD,QACC,8BAAUA,EAAE,CAAE,kBAAF,CAAZ,CADD,EAEC;AAAM,MAAA,SAAS,EAAC;AAAhB,OACGA,EAAE,CAAE,MAAF,CADL,CAFD,CADD;AARF,KAkBC,cAAC,mBAAD,OAlBD,CADD;AAsBA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { FlexBlock, Flex } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { navigation } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport DefaultSidebar from '../default-sidebar';\nimport NavigationInspector from './navigation-inspector';\n\nexport default function NavigationMenuSidebar() {\n\treturn (\n\t\t<DefaultSidebar\n\t\t\tclassName=\"edit-site-navigation-menu-sidebar\"\n\t\t\tidentifier=\"edit-site/navigation-menu\"\n\t\t\ttitle={ __( 'Navigation' ) }\n\t\t\ticon={ navigation }\n\t\t\tcloseLabel={ __( 'Close navigation menu sidebar' ) }\n\t\t\tpanelClassName=\"edit-site-navigation-menu-sidebar__panel\"\n\t\t\theader={\n\t\t\t\t<Flex>\n\t\t\t\t\t<FlexBlock>\n\t\t\t\t\t\t<strong>{ __( 'Navigation Menus' ) }</strong>\n\t\t\t\t\t\t<span className=\"edit-site-navigation-sidebar__beta\">\n\t\t\t\t\t\t\t{ __( 'Beta' ) }\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</FlexBlock>\n\t\t\t\t</Flex>\n\t\t\t}\n\t\t>\n\t\t\t<NavigationInspector />\n\t\t</DefaultSidebar>\n\t);\n}\n"]}
@@ -35,11 +35,7 @@ export default function NavigationMenu(_ref) {
35
35
  });
36
36
  }, [updateBlockListSettings, innerBlocks]);
37
37
  return createElement(Fragment, null, createElement(ListView, {
38
- id: id,
39
- showNestedBlocks: true,
40
- expandNested: false,
41
- __experimentalFeatures: true,
42
- __experimentalPersistentListViewFeatures: true
38
+ id: id
43
39
  }));
44
40
  }
45
41
  //# sourceMappingURL=navigation-menu.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar/navigation-menu-sidebar/navigation-menu.js"],"names":["__experimentalListView","ListView","store","blockEditorStore","useEffect","useDispatch","ALLOWED_BLOCKS","NavigationMenu","innerBlocks","id","updateBlockListSettings","allowedBlocks","forEach","block","name","clientId"],"mappings":";;AAAA;AACA;AACA;AACA,SACCA,sBAAsB,IAAIC,QAD3B,EAECC,KAAK,IAAIC,gBAFV,QAGO,yBAHP;AAIA,SAASC,SAAT,QAA0B,oBAA1B;AACA,SAASC,WAAT,QAA4B,iBAA5B;AAEA,MAAMC,cAAc,GAAG;AACtB,qBAAmB,CAClB,sBADkB,EAElB,aAFkB,EAGlB,mBAHkB,EAIlB,gBAJkB,EAKlB,aALkB,EAMlB,gBANkB,EAOlB,iBAPkB,EAQlB,gBARkB,EASlB,yBATkB,CADG;AAYtB,uBAAqB,CAAE,kBAAF,CAZC;AAatB,6BAA2B,CAC1B,sBAD0B,EAE1B,yBAF0B,CAbL;AAiBtB,0BAAwB,CACvB,sBADuB,EAEvB,yBAFuB;AAjBF,CAAvB;AAuBA,eAAe,SAASC,cAAT,OAA+C;AAAA,MAAtB;AAAEC,IAAAA,WAAF;AAAeC,IAAAA;AAAf,GAAsB;AAC7D,QAAM;AAAEC,IAAAA;AAAF,MAA8BL,WAAW,CAAEF,gBAAF,CAA/C,CAD6D,CAG7D;AACA;;AACAC,EAAAA,SAAS,CAAE,MAAM;AAChBM,IAAAA,uBAAuB,CAAE,EAAF,EAAM;AAC5BC,MAAAA,aAAa,EAAEL,cAAc,CAAE,iBAAF;AADD,KAAN,CAAvB;AAGAE,IAAAA,WAAW,CAACI,OAAZ,CAAuBC,KAAF,IAAa;AACjC,UAAKP,cAAc,CAAEO,KAAK,CAACC,IAAR,CAAnB,EAAoC;AACnCJ,QAAAA,uBAAuB,CAAEG,KAAK,CAACE,QAAR,EAAkB;AACxCJ,UAAAA,aAAa,EAAEL,cAAc,CAAEO,KAAK,CAACC,IAAR;AADW,SAAlB,CAAvB;AAGA;AACD,KAND;AAOA,GAXQ,EAWN,CAAEJ,uBAAF,EAA2BF,WAA3B,CAXM,CAAT;AAYA,SACC,8BACC,cAAC,QAAD;AACC,IAAA,EAAE,EAAGC,EADN;AAEC,IAAA,gBAAgB,MAFjB;AAGC,IAAA,YAAY,EAAG,KAHhB;AAIC,IAAA,sBAAsB,MAJvB;AAKC,IAAA,wCAAwC;AALzC,IADD,CADD;AAWA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\t__experimentalListView as ListView,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport { useEffect } from '@wordpress/element';\nimport { useDispatch } from '@wordpress/data';\n\nconst ALLOWED_BLOCKS = {\n\t'core/navigation': [\n\t\t'core/navigation-link',\n\t\t'core/search',\n\t\t'core/social-links',\n\t\t'core/page-list',\n\t\t'core/spacer',\n\t\t'core/home-link',\n\t\t'core/site-title',\n\t\t'core/site-logo',\n\t\t'core/navigation-submenu',\n\t],\n\t'core/social-links': [ 'core/social-link' ],\n\t'core/navigation-submenu': [\n\t\t'core/navigation-link',\n\t\t'core/navigation-submenu',\n\t],\n\t'core/navigation-link': [\n\t\t'core/navigation-link',\n\t\t'core/navigation-submenu',\n\t],\n};\n\nexport default function NavigationMenu( { innerBlocks, id } ) {\n\tconst { updateBlockListSettings } = useDispatch( blockEditorStore );\n\n\t//TODO: Block settings are normally updated as a side effect of rendering InnerBlocks in BlockList\n\t//Think through a better way of doing this, possible with adding allowed blocks to block library metadata\n\tuseEffect( () => {\n\t\tupdateBlockListSettings( '', {\n\t\t\tallowedBlocks: ALLOWED_BLOCKS[ 'core/navigation' ],\n\t\t} );\n\t\tinnerBlocks.forEach( ( block ) => {\n\t\t\tif ( ALLOWED_BLOCKS[ block.name ] ) {\n\t\t\t\tupdateBlockListSettings( block.clientId, {\n\t\t\t\t\tallowedBlocks: ALLOWED_BLOCKS[ block.name ],\n\t\t\t\t} );\n\t\t\t}\n\t\t} );\n\t}, [ updateBlockListSettings, innerBlocks ] );\n\treturn (\n\t\t<>\n\t\t\t<ListView\n\t\t\t\tid={ id }\n\t\t\t\tshowNestedBlocks\n\t\t\t\texpandNested={ false }\n\t\t\t\t__experimentalFeatures\n\t\t\t\t__experimentalPersistentListViewFeatures\n\t\t\t/>\n\t\t</>\n\t);\n}\n"]}
1
+ {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar/navigation-menu-sidebar/navigation-menu.js"],"names":["__experimentalListView","ListView","store","blockEditorStore","useEffect","useDispatch","ALLOWED_BLOCKS","NavigationMenu","innerBlocks","id","updateBlockListSettings","allowedBlocks","forEach","block","name","clientId"],"mappings":";;AAAA;AACA;AACA;AACA,SACCA,sBAAsB,IAAIC,QAD3B,EAECC,KAAK,IAAIC,gBAFV,QAGO,yBAHP;AAIA,SAASC,SAAT,QAA0B,oBAA1B;AACA,SAASC,WAAT,QAA4B,iBAA5B;AAEA,MAAMC,cAAc,GAAG;AACtB,qBAAmB,CAClB,sBADkB,EAElB,aAFkB,EAGlB,mBAHkB,EAIlB,gBAJkB,EAKlB,aALkB,EAMlB,gBANkB,EAOlB,iBAPkB,EAQlB,gBARkB,EASlB,yBATkB,CADG;AAYtB,uBAAqB,CAAE,kBAAF,CAZC;AAatB,6BAA2B,CAC1B,sBAD0B,EAE1B,yBAF0B,CAbL;AAiBtB,0BAAwB,CACvB,sBADuB,EAEvB,yBAFuB;AAjBF,CAAvB;AAuBA,eAAe,SAASC,cAAT,OAA+C;AAAA,MAAtB;AAAEC,IAAAA,WAAF;AAAeC,IAAAA;AAAf,GAAsB;AAC7D,QAAM;AAAEC,IAAAA;AAAF,MAA8BL,WAAW,CAAEF,gBAAF,CAA/C,CAD6D,CAG7D;AACA;;AACAC,EAAAA,SAAS,CAAE,MAAM;AAChBM,IAAAA,uBAAuB,CAAE,EAAF,EAAM;AAC5BC,MAAAA,aAAa,EAAEL,cAAc,CAAE,iBAAF;AADD,KAAN,CAAvB;AAGAE,IAAAA,WAAW,CAACI,OAAZ,CAAuBC,KAAF,IAAa;AACjC,UAAKP,cAAc,CAAEO,KAAK,CAACC,IAAR,CAAnB,EAAoC;AACnCJ,QAAAA,uBAAuB,CAAEG,KAAK,CAACE,QAAR,EAAkB;AACxCJ,UAAAA,aAAa,EAAEL,cAAc,CAAEO,KAAK,CAACC,IAAR;AADW,SAAlB,CAAvB;AAGA;AACD,KAND;AAOA,GAXQ,EAWN,CAAEJ,uBAAF,EAA2BF,WAA3B,CAXM,CAAT;AAYA,SACC,8BACC,cAAC,QAAD;AAAU,IAAA,EAAE,EAAGC;AAAf,IADD,CADD;AAKA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\t__experimentalListView as ListView,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport { useEffect } from '@wordpress/element';\nimport { useDispatch } from '@wordpress/data';\n\nconst ALLOWED_BLOCKS = {\n\t'core/navigation': [\n\t\t'core/navigation-link',\n\t\t'core/search',\n\t\t'core/social-links',\n\t\t'core/page-list',\n\t\t'core/spacer',\n\t\t'core/home-link',\n\t\t'core/site-title',\n\t\t'core/site-logo',\n\t\t'core/navigation-submenu',\n\t],\n\t'core/social-links': [ 'core/social-link' ],\n\t'core/navigation-submenu': [\n\t\t'core/navigation-link',\n\t\t'core/navigation-submenu',\n\t],\n\t'core/navigation-link': [\n\t\t'core/navigation-link',\n\t\t'core/navigation-submenu',\n\t],\n};\n\nexport default function NavigationMenu( { innerBlocks, id } ) {\n\tconst { updateBlockListSettings } = useDispatch( blockEditorStore );\n\n\t//TODO: Block settings are normally updated as a side effect of rendering InnerBlocks in BlockList\n\t//Think through a better way of doing this, possible with adding allowed blocks to block library metadata\n\tuseEffect( () => {\n\t\tupdateBlockListSettings( '', {\n\t\t\tallowedBlocks: ALLOWED_BLOCKS[ 'core/navigation' ],\n\t\t} );\n\t\tinnerBlocks.forEach( ( block ) => {\n\t\t\tif ( ALLOWED_BLOCKS[ block.name ] ) {\n\t\t\t\tupdateBlockListSettings( block.clientId, {\n\t\t\t\t\tallowedBlocks: ALLOWED_BLOCKS[ block.name ],\n\t\t\t\t} );\n\t\t\t}\n\t\t} );\n\t}, [ updateBlockListSettings, innerBlocks ] );\n\treturn (\n\t\t<>\n\t\t\t<ListView id={ id } />\n\t\t</>\n\t);\n}\n"]}
@@ -87,7 +87,6 @@ export function initializeEditor(id, settings) {
87
87
  settings.__experimentalFetchLinkSuggestions = (search, searchOptions) => fetchLinkSuggestions(search, searchOptions, settings);
88
88
 
89
89
  settings.__experimentalFetchRichUrlData = fetchUrlData;
90
- settings.__experimentalSpotlightEntityBlocks = ['core/template-part'];
91
90
  const target = document.getElementById(id);
92
91
 
93
92
  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","__experimentalSpotlightEntityBlocks","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,gBAAlB,QAA0C,wBAA1C;AACA,SAASC,EAAT,QAAmB,iBAAnB;AACA,SAASd,KAAK,IAAIe,aAAlB,QAAuC,qBAAvC;AACA,SAASC,YAAT,QAA6B,gBAA7B;AAEA;AACA;AACA;;AACA,OAAO,SAAP;AACA,SAAShB,KAAK,IAAIiB,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;AACxClB,IAAAA,MAAM,CACL,cAAC,oBAAD;AACC,MAAA,OAAO,EAAGQ,EAAE,CACX,iEADW,CADb;AAIC,MAAA,aAAa,EAAC;AAJf,MADK,EAOLQ,MAPK,CAAN;AASA;AACA,GAbqD,CAetD;;;AACAf,EAAAA,sBAAsB,CAAEe,MAAF,CAAtB;AACA,QAAMG,MAAM,GAAGJ,kBAAkB,CAACK,IAAnB,CAAyB,IAAzB,EAA+BJ,MAA/B,EAAuCC,QAAvC,CAAf,CAjBsD,CAmBtD;AACA;;AACA;AACCnB,IAAAA,QAAQ,CAAES,gBAAF,CAAR,CAA6Bc,WAA7B,CAA0C,gBAA1C,EAA4D;AAC3DC,MAAAA,UAAU,EAAE,QAD+C;AAE3DC,MAAAA,YAAY,EAAE,KAF6C;AAG3DC,MAAAA,SAAS,EAAE,KAHgD;AAI3DC,MAAAA,oBAAoB,EAAE,KAJqC;AAK3DC,MAAAA,YAAY,EAAE,IAL6C;AAM3DC,MAAAA,kBAAkB,EAAE;AANuC,KAA5D;AASA7B,IAAAA,QAAQ,CAAEa,aAAF,CAAR,CAA0BiB,cAA1B,CAA0CX,QAA1C,EAVD,CAYC;AACA;AACA;AACA;;AACAnB,IAAAA,QAAQ,CAAEQ,WAAF,CAAR,CAAwBuB,oBAAxB,CAA8C;AAC7CC,MAAAA,oBAAoB,EAAEb,QAAQ,CAACa,oBADc;AAE7CC,MAAAA,wBAAwB,EAAEd,QAAQ,CAACc;AAFU,KAA9C;AAKA,UAAMC,mBAAmB,GAAGnB,aAAa,CACxCH,YAAY,CAAEuB,MAAM,CAACC,QAAP,CAAgBC,IAAlB,CAD4B,CAAzC;;AAIA,QAAKH,mBAAL,EAA2B;AAC1B;AACA;AACAlC,MAAAA,QAAQ,CAAEa,aAAF,CAAR,CAA0ByB,0BAA1B,CACCrC,MAAM,CAAEU,aAAF,CAAN,CAAwB4B,eAAxB,CAAyC,QAAzC,CADD;AAGA;AACD;AAEDrC,EAAAA,MAAM,CAAE,cAAC,WAAD;AAAa,IAAA,MAAM,EAAGmB;AAAtB,IAAF,EAAqCH,MAArC,CAAN;AACA;AAED;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASsB,gBAAT,CAA2BC,EAA3B,EAA+BtB,QAA/B,EAA0C;AAChDA,EAAAA,QAAQ,CAACf,kCAAT,GAA8C,CAAEsC,MAAF,EAAUC,aAAV,KAC7CtC,oBAAoB,CAAEqC,MAAF,EAAUC,aAAV,EAAyBxB,QAAzB,CADrB;;AAEAA,EAAAA,QAAQ,CAACyB,8BAAT,GAA0CrC,YAA1C;AACAY,EAAAA,QAAQ,CAAC0B,mCAAT,GAA+C,CAAE,oBAAF,CAA/C;AAEA,QAAM3B,MAAM,GAAG4B,QAAQ,CAACC,cAAT,CAAyBN,EAAzB,CAAf;;AAEAzC,EAAAA,QAAQ,CAAEH,WAAF,CAAR,CAAwBmD,qCAAxB;;AACAlD,EAAAA,kBAAkB;;AAClB,MAAKmD,OAAO,CAACC,GAAR,CAAYC,mBAAjB,EAAuC;AACtCpD,IAAAA,4CAA4C,CAAE;AAC7CqD,MAAAA,eAAe,EAAE;AAD4B,KAAF,CAA5C;AAGA;;AAEDnC,EAAAA,kBAAkB,CAAEC,MAAF,EAAUC,QAAV,CAAlB;AACA;AAED,SAASkC,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 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} );\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\tsettings.__experimentalSpotlightEntityBlocks = [ 'core/template-part' ];\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"]}
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","document","getElementById","__experimentalReapplyBlockTypeFilters","process","env","IS_GUTENBERG_PLUGIN","enableFSEBlocks","default","__experimentalMainDashboardButton","__experimentalNavigationToggle","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__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 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} );\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"]}
@@ -430,6 +430,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
430
430
 
431
431
  .interface-pinned-items {
432
432
  display: flex;
433
+ gap: 4px;
434
+ margin-left: -4px;
433
435
  }
434
436
  .interface-pinned-items .components-button:not(:first-child) {
435
437
  display: none;
@@ -440,7 +442,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
440
442
  }
441
443
  }
442
444
  .interface-pinned-items .components-button {
443
- margin-right: 4px;
445
+ margin: 0;
444
446
  }
445
447
  .interface-pinned-items .components-button svg {
446
448
  max-width: 24px;
@@ -900,42 +902,30 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
900
902
  }
901
903
 
902
904
  /**
903
- * Buttons in the Toolbar
905
+ * Buttons on the right side
904
906
  */
905
907
  .edit-site-header__actions {
906
908
  display: inline-flex;
907
909
  align-items: center;
908
910
  padding-left: 4px;
911
+ gap: 4px;
909
912
  }
910
- .edit-site-header__actions .interface-pinned-items {
911
- display: none;
912
- }
913
- @media (min-width: 782px) {
914
- .edit-site-header__actions .interface-pinned-items {
915
- display: inline-flex;
913
+ @media (min-width: 600px) {
914
+ .edit-site-header__actions {
915
+ padding-left: 10px;
916
916
  }
917
917
  }
918
- .edit-site-header__actions .editor-post-saved-state,
919
- .edit-site-header__actions .components-button.components-button {
920
- margin-left: 4px;
921
- }
922
918
  @media (min-width: 600px) {
923
- .edit-site-header__actions .editor-post-saved-state,
924
- .edit-site-header__actions .components-button.components-button {
925
- margin-left: 12px;
919
+ .edit-site-header__actions {
920
+ gap: 8px;
926
921
  }
927
922
  }
928
- .edit-site-header__actions .editor-post-saved-state,
929
- .edit-site-header__actions .components-button.is-tertiary {
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;
923
+ .edit-site-header__actions .interface-pinned-items {
924
+ display: none;
935
925
  }
936
- @media (min-width: 600px) {
937
- .edit-site-header__actions {
938
- padding-left: 16px;
926
+ @media (min-width: 782px) {
927
+ .edit-site-header__actions .interface-pinned-items {
928
+ display: inline-flex;
939
929
  }
940
930
  }
941
931
 
@@ -974,10 +964,6 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
974
964
  .show-icon-labels .edit-site-header .edit-site-save-button__button {
975
965
  padding-right: 6px;
976
966
  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
967
  }
982
968
  .show-icon-labels .edit-site-header .edit-site-header-toolbar__inserter-toggle.edit-site-header-toolbar__inserter-toggle,
983
969
  .show-icon-labels .edit-site-header .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info {
@@ -1542,6 +1528,7 @@ body.is-fullscreen-mode .edit-site-list-header {
1542
1528
  padding: 16px;
1543
1529
  }
1544
1530
 
1531
+ .edit-site-navigation-sidebar__beta,
1545
1532
  .edit-site-global-styles-sidebar__beta {
1546
1533
  display: inline-flex;
1547
1534
  margin-right: 8px;
@@ -1555,6 +1542,48 @@ body.is-fullscreen-mode .edit-site-list-header {
1555
1542
  line-height: 1;
1556
1543
  }
1557
1544
 
1545
+ .edit-site-global-styles-sidebar__border-box-control__popover .components-popover__content,
1546
+ .edit-site-global-styles-sidebar__border-box-control__popover-top .components-popover__content,
1547
+ .edit-site-global-styles-sidebar__border-box-control__popover-right .components-popover__content,
1548
+ .edit-site-global-styles-sidebar__border-box-control__popover-bottom .components-popover__content,
1549
+ .edit-site-global-styles-sidebar__border-box-control__popover-left .components-popover__content {
1550
+ width: 282px;
1551
+ }
1552
+
1553
+ @media (min-width: 782px) {
1554
+ .edit-site-global-styles-sidebar__border-box-control__popover .components-popover__content,
1555
+ .edit-site-global-styles-sidebar__border-box-control__popover-left .components-popover__content {
1556
+ margin-left: 52px !important;
1557
+ }
1558
+
1559
+ .edit-site-global-styles-sidebar__border-box-control__popover-top .components-popover__content,
1560
+ .edit-site-global-styles-sidebar__border-box-control__popover-bottom .components-popover__content {
1561
+ margin-left: 107px !important;
1562
+ }
1563
+
1564
+ .edit-site-global-styles-sidebar__border-box-control__popover-right .components-popover__content {
1565
+ margin-left: 162px !important;
1566
+ }
1567
+
1568
+ .edit-site-global-styles-sidebar__border-box-control__popover.is-from-top .components-popover__content,
1569
+ .edit-site-global-styles-sidebar__border-box-control__popover-top.is-from-top .components-popover__content,
1570
+ .edit-site-global-styles-sidebar__border-box-control__popover-right.is-from-top .components-popover__content,
1571
+ .edit-site-global-styles-sidebar__border-box-control__popover-bottom.is-from-top .components-popover__content,
1572
+ .edit-site-global-styles-sidebar__border-box-control__popover-left.is-from-top .components-popover__content {
1573
+ margin-top: -52px !important;
1574
+ }
1575
+ .edit-site-global-styles-sidebar__border-box-control__popover.is-from-bottom .components-popover__content,
1576
+ .edit-site-global-styles-sidebar__border-box-control__popover-top.is-from-bottom .components-popover__content,
1577
+ .edit-site-global-styles-sidebar__border-box-control__popover-right.is-from-bottom .components-popover__content,
1578
+ .edit-site-global-styles-sidebar__border-box-control__popover-bottom.is-from-bottom .components-popover__content,
1579
+ .edit-site-global-styles-sidebar__border-box-control__popover-left.is-from-bottom .components-popover__content {
1580
+ margin-bottom: -52px !important;
1581
+ }
1582
+ }
1583
+ .edit-site-global-styles-sidebar hr {
1584
+ margin: 0;
1585
+ }
1586
+
1558
1587
  .components-panel__header.edit-site-sidebar__panel-tabs {
1559
1588
  justify-content: flex-start;
1560
1589
  padding-right: 0;
@@ -430,6 +430,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
430
430
 
431
431
  .interface-pinned-items {
432
432
  display: flex;
433
+ gap: 4px;
434
+ margin-right: -4px;
433
435
  }
434
436
  .interface-pinned-items .components-button:not(:first-child) {
435
437
  display: none;
@@ -440,7 +442,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
440
442
  }
441
443
  }
442
444
  .interface-pinned-items .components-button {
443
- margin-left: 4px;
445
+ margin: 0;
444
446
  }
445
447
  .interface-pinned-items .components-button svg {
446
448
  max-width: 24px;
@@ -900,42 +902,30 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
900
902
  }
901
903
 
902
904
  /**
903
- * Buttons in the Toolbar
905
+ * Buttons on the right side
904
906
  */
905
907
  .edit-site-header__actions {
906
908
  display: inline-flex;
907
909
  align-items: center;
908
910
  padding-right: 4px;
911
+ gap: 4px;
909
912
  }
910
- .edit-site-header__actions .interface-pinned-items {
911
- display: none;
912
- }
913
- @media (min-width: 782px) {
914
- .edit-site-header__actions .interface-pinned-items {
915
- display: inline-flex;
913
+ @media (min-width: 600px) {
914
+ .edit-site-header__actions {
915
+ padding-right: 10px;
916
916
  }
917
917
  }
918
- .edit-site-header__actions .editor-post-saved-state,
919
- .edit-site-header__actions .components-button.components-button {
920
- margin-right: 4px;
921
- }
922
918
  @media (min-width: 600px) {
923
- .edit-site-header__actions .editor-post-saved-state,
924
- .edit-site-header__actions .components-button.components-button {
925
- margin-right: 12px;
919
+ .edit-site-header__actions {
920
+ gap: 8px;
926
921
  }
927
922
  }
928
- .edit-site-header__actions .editor-post-saved-state,
929
- .edit-site-header__actions .components-button.is-tertiary {
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;
923
+ .edit-site-header__actions .interface-pinned-items {
924
+ display: none;
935
925
  }
936
- @media (min-width: 600px) {
937
- .edit-site-header__actions {
938
- padding-right: 16px;
926
+ @media (min-width: 782px) {
927
+ .edit-site-header__actions .interface-pinned-items {
928
+ display: inline-flex;
939
929
  }
940
930
  }
941
931
 
@@ -974,10 +964,6 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
974
964
  .show-icon-labels .edit-site-header .edit-site-save-button__button {
975
965
  padding-left: 6px;
976
966
  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
967
  }
982
968
  .show-icon-labels .edit-site-header .edit-site-header-toolbar__inserter-toggle.edit-site-header-toolbar__inserter-toggle,
983
969
  .show-icon-labels .edit-site-header .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info {
@@ -1542,6 +1528,7 @@ body.is-fullscreen-mode .edit-site-list-header {
1542
1528
  padding: 16px;
1543
1529
  }
1544
1530
 
1531
+ .edit-site-navigation-sidebar__beta,
1545
1532
  .edit-site-global-styles-sidebar__beta {
1546
1533
  display: inline-flex;
1547
1534
  margin-left: 8px;
@@ -1555,6 +1542,48 @@ body.is-fullscreen-mode .edit-site-list-header {
1555
1542
  line-height: 1;
1556
1543
  }
1557
1544
 
1545
+ .edit-site-global-styles-sidebar__border-box-control__popover .components-popover__content,
1546
+ .edit-site-global-styles-sidebar__border-box-control__popover-top .components-popover__content,
1547
+ .edit-site-global-styles-sidebar__border-box-control__popover-right .components-popover__content,
1548
+ .edit-site-global-styles-sidebar__border-box-control__popover-bottom .components-popover__content,
1549
+ .edit-site-global-styles-sidebar__border-box-control__popover-left .components-popover__content {
1550
+ width: 282px;
1551
+ }
1552
+
1553
+ @media (min-width: 782px) {
1554
+ .edit-site-global-styles-sidebar__border-box-control__popover .components-popover__content,
1555
+ .edit-site-global-styles-sidebar__border-box-control__popover-left .components-popover__content {
1556
+ margin-right: 52px !important;
1557
+ }
1558
+
1559
+ .edit-site-global-styles-sidebar__border-box-control__popover-top .components-popover__content,
1560
+ .edit-site-global-styles-sidebar__border-box-control__popover-bottom .components-popover__content {
1561
+ margin-right: 107px !important;
1562
+ }
1563
+
1564
+ .edit-site-global-styles-sidebar__border-box-control__popover-right .components-popover__content {
1565
+ margin-right: 162px !important;
1566
+ }
1567
+
1568
+ .edit-site-global-styles-sidebar__border-box-control__popover.is-from-top .components-popover__content,
1569
+ .edit-site-global-styles-sidebar__border-box-control__popover-top.is-from-top .components-popover__content,
1570
+ .edit-site-global-styles-sidebar__border-box-control__popover-right.is-from-top .components-popover__content,
1571
+ .edit-site-global-styles-sidebar__border-box-control__popover-bottom.is-from-top .components-popover__content,
1572
+ .edit-site-global-styles-sidebar__border-box-control__popover-left.is-from-top .components-popover__content {
1573
+ margin-top: -52px !important;
1574
+ }
1575
+ .edit-site-global-styles-sidebar__border-box-control__popover.is-from-bottom .components-popover__content,
1576
+ .edit-site-global-styles-sidebar__border-box-control__popover-top.is-from-bottom .components-popover__content,
1577
+ .edit-site-global-styles-sidebar__border-box-control__popover-right.is-from-bottom .components-popover__content,
1578
+ .edit-site-global-styles-sidebar__border-box-control__popover-bottom.is-from-bottom .components-popover__content,
1579
+ .edit-site-global-styles-sidebar__border-box-control__popover-left.is-from-bottom .components-popover__content {
1580
+ margin-bottom: -52px !important;
1581
+ }
1582
+ }
1583
+ .edit-site-global-styles-sidebar hr {
1584
+ margin: 0;
1585
+ }
1586
+
1558
1587
  .components-panel__header.edit-site-sidebar__panel-tabs {
1559
1588
  justify-content: flex-start;
1560
1589
  padding-left: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "4.3.5",
3
+ "version": "4.5.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,33 +27,33 @@
27
27
  "react-native": "src/index",
28
28
  "dependencies": {
29
29
  "@babel/runtime": "^7.16.0",
30
- "@wordpress/a11y": "^3.6.1",
31
- "@wordpress/api-fetch": "^6.3.1",
32
- "@wordpress/block-editor": "^8.5.4",
33
- "@wordpress/block-library": "^7.3.5",
34
- "@wordpress/blocks": "^11.5.3",
35
- "@wordpress/components": "^19.8.3",
36
- "@wordpress/compose": "^5.4.1",
37
- "@wordpress/core-data": "^4.4.4",
38
- "@wordpress/data": "^6.6.1",
39
- "@wordpress/deprecated": "^3.6.1",
40
- "@wordpress/editor": "^12.5.4",
41
- "@wordpress/element": "^4.4.1",
42
- "@wordpress/hooks": "^3.6.1",
43
- "@wordpress/html-entities": "^3.6.1",
44
- "@wordpress/i18n": "^4.6.1",
45
- "@wordpress/icons": "^8.2.2",
46
- "@wordpress/interface": "^4.5.3",
47
- "@wordpress/keyboard-shortcuts": "^3.4.1",
48
- "@wordpress/keycodes": "^3.6.1",
49
- "@wordpress/media-utils": "^3.4.1",
50
- "@wordpress/notices": "^3.6.1",
51
- "@wordpress/plugins": "^4.4.2",
52
- "@wordpress/preferences": "^1.2.3",
53
- "@wordpress/reusable-blocks": "^3.4.4",
54
- "@wordpress/style-engine": "^0.5.1",
55
- "@wordpress/url": "^3.7.1",
56
- "@wordpress/viewport": "^4.4.1",
30
+ "@wordpress/a11y": "^3.8.0",
31
+ "@wordpress/api-fetch": "^6.5.0",
32
+ "@wordpress/block-editor": "^9.0.0",
33
+ "@wordpress/block-library": "^7.5.0",
34
+ "@wordpress/blocks": "^11.7.0",
35
+ "@wordpress/components": "^19.10.0",
36
+ "@wordpress/compose": "^5.6.0",
37
+ "@wordpress/core-data": "^4.6.0",
38
+ "@wordpress/data": "^6.8.0",
39
+ "@wordpress/deprecated": "^3.8.0",
40
+ "@wordpress/editor": "^12.7.0",
41
+ "@wordpress/element": "^4.6.0",
42
+ "@wordpress/hooks": "^3.8.0",
43
+ "@wordpress/html-entities": "^3.8.0",
44
+ "@wordpress/i18n": "^4.8.0",
45
+ "@wordpress/icons": "^8.4.0",
46
+ "@wordpress/interface": "^4.7.0",
47
+ "@wordpress/keyboard-shortcuts": "^3.6.0",
48
+ "@wordpress/keycodes": "^3.8.0",
49
+ "@wordpress/media-utils": "^3.6.0",
50
+ "@wordpress/notices": "^3.8.0",
51
+ "@wordpress/plugins": "^4.6.0",
52
+ "@wordpress/preferences": "^2.0.0",
53
+ "@wordpress/reusable-blocks": "^3.6.0",
54
+ "@wordpress/style-engine": "^0.7.0",
55
+ "@wordpress/url": "^3.9.0",
56
+ "@wordpress/viewport": "^4.6.0",
57
57
  "classnames": "^2.3.1",
58
58
  "downloadjs": "^1.4.7",
59
59
  "history": "^5.1.0",
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "7efc8349abd18322bd93f318269ed2eaba25bcd8"
71
+ "gitHead": "4631d515033397fcfeda77e5755960253caef9bf"
72
72
  }
@@ -7,7 +7,7 @@ import classnames from 'classnames';
7
7
  * WordPress dependencies
8
8
  */
9
9
  import { useSelect, useDispatch } from '@wordpress/data';
10
- import { useCallback, useRef } from '@wordpress/element';
10
+ import { useCallback, useRef, Fragment } from '@wordpress/element';
11
11
  import { useEntityBlockEditor, store as coreStore } from '@wordpress/core-data';
12
12
  import {
13
13
  BlockList,
@@ -127,7 +127,7 @@ export default function BlockEditor( { setIsInserterOpen } ) {
127
127
  // Conditionally include NavMenu sidebar in Plugin only.
128
128
  // Optimise for dead code elimination.
129
129
  // See https://github.com/WordPress/gutenberg/blob/trunk/docs/how-to-guides/feature-flags.md#dead-code-elimination.
130
- let MaybeNavMenuSidebarToggle = 'Fragment';
130
+ let MaybeNavMenuSidebarToggle = Fragment;
131
131
 
132
132
  if ( process.env.IS_GUTENBERG_PLUGIN ) {
133
133
  MaybeNavMenuSidebarToggle = NavMenuSidebarToggle;