@wordpress/edit-widgets 6.57.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -106,7 +106,13 @@ function Interface({ blockEditorSettings }) {
106
106
  blockEditorSettings
107
107
  }
108
108
  ) }),
109
- footer: hasBlockBreadCrumbsEnabled && !isMobileViewport && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "edit-widgets-layout__footer", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_block_editor.BlockBreadcrumb, { rootLabelText: (0, import_i18n.__)("Widgets") }) })
109
+ footer: hasBlockBreadCrumbsEnabled && !isMobileViewport && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "edit-widgets-layout__footer", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
110
+ import_block_editor.BlockBreadcrumb,
111
+ {
112
+ className: "edit-widgets-layout__breadcrumbs",
113
+ rootLabelText: (0, import_i18n.__)("Widgets")
114
+ }
115
+ ) })
110
116
  }
111
117
  );
112
118
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/layout/interface.jsx"],
4
- "sourcesContent": ["import { useViewportMatch } from '@wordpress/compose';\nimport { BlockBreadcrumb } from '@wordpress/block-editor';\nimport { useEffect } from '@wordpress/element';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport {\n\tInterfaceSkeleton,\n\tComplementaryArea,\n\tstore as interfaceStore,\n} from '@wordpress/interface';\nimport { __ } from '@wordpress/i18n';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport Header from '../header';\nimport WidgetAreasBlockEditorContent from '../widget-areas-block-editor-content';\nimport { store as editWidgetsStore } from '../../store';\nimport SecondarySidebar from '../secondary-sidebar';\n\nconst interfaceLabels = {\n\t/* translators: accessibility text for the widgets screen top bar landmark region. */\n\theader: __( 'Widgets top bar' ),\n\t/* translators: accessibility text for the widgets screen content landmark region. */\n\tbody: __( 'Widgets and blocks' ),\n\t/* translators: accessibility text for the widgets screen settings landmark region. */\n\tsidebar: __( 'Widgets settings' ),\n\t/* translators: accessibility text for the widgets screen footer landmark region. */\n\tfooter: __( 'Widgets footer' ),\n};\n\nfunction Interface( { blockEditorSettings } ) {\n\tconst isMobileViewport = useViewportMatch( 'medium', '<' );\n\tconst isHugeViewport = useViewportMatch( 'huge', '>=' );\n\tconst { setIsInserterOpened, setIsListViewOpened, closeGeneralSidebar } =\n\t\tuseDispatch( editWidgetsStore );\n\tconst {\n\t\thasBlockBreadCrumbsEnabled,\n\t\thasSidebarEnabled,\n\t\tisInserterOpened,\n\t\tisListViewOpened,\n\t} = useSelect(\n\t\t( select ) => ( {\n\t\t\thasSidebarEnabled: !! select(\n\t\t\t\tinterfaceStore\n\t\t\t).getActiveComplementaryArea( editWidgetsStore.name ),\n\t\t\tisInserterOpened: !! select( editWidgetsStore ).isInserterOpened(),\n\t\t\tisListViewOpened: !! select( editWidgetsStore ).isListViewOpened(),\n\t\t\thasBlockBreadCrumbsEnabled: !! select( preferencesStore ).get(\n\t\t\t\t'core/edit-widgets',\n\t\t\t\t'showBlockBreadcrumbs'\n\t\t\t),\n\t\t} ),\n\t\t[]\n\t);\n\n\t// Inserter and Sidebars are mutually exclusive\n\tuseEffect( () => {\n\t\tif ( hasSidebarEnabled && ! isHugeViewport ) {\n\t\t\tsetIsInserterOpened( false );\n\t\t\tsetIsListViewOpened( false );\n\t\t}\n\t}, [ hasSidebarEnabled, isHugeViewport ] );\n\n\tuseEffect( () => {\n\t\tif ( ( isInserterOpened || isListViewOpened ) && ! isHugeViewport ) {\n\t\t\tcloseGeneralSidebar();\n\t\t}\n\t}, [ isInserterOpened, isListViewOpened, isHugeViewport ] );\n\n\tconst secondarySidebarLabel = isListViewOpened\n\t\t? __( 'List View' )\n\t\t: __( 'Block Library' );\n\n\tconst hasSecondarySidebar = isListViewOpened || isInserterOpened;\n\n\treturn (\n\t\t<InterfaceSkeleton\n\t\t\tlabels={ {\n\t\t\t\t...interfaceLabels,\n\t\t\t\tsecondarySidebar: secondarySidebarLabel,\n\t\t\t} }\n\t\t\theader={ <Header /> }\n\t\t\tsecondarySidebar={ hasSecondarySidebar && <SecondarySidebar /> }\n\t\t\tsidebar={ <ComplementaryArea.Slot scope=\"core/edit-widgets\" /> }\n\t\t\tcontent={\n\t\t\t\t<>\n\t\t\t\t\t<WidgetAreasBlockEditorContent\n\t\t\t\t\t\tblockEditorSettings={ blockEditorSettings }\n\t\t\t\t\t/>\n\t\t\t\t</>\n\t\t\t}\n\t\t\tfooter={\n\t\t\t\thasBlockBreadCrumbsEnabled &&\n\t\t\t\t! isMobileViewport && (\n\t\t\t\t\t<div className=\"edit-widgets-layout__footer\">\n\t\t\t\t\t\t<BlockBreadcrumb rootLabelText={ __( 'Widgets' ) } />\n\t\t\t\t\t</div>\n\t\t\t\t)\n\t\t\t}\n\t\t/>\n\t);\n}\n\nexport default Interface;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAiC;AACjC,0BAAgC;AAChC,qBAA0B;AAC1B,kBAAuC;AACvC,uBAIO;AACP,kBAAmB;AACnB,yBAA0C;AAC1C,oBAAmB;AACnB,+CAA0C;AAC1C,mBAA0C;AAC1C,+BAA6B;AAgEjB;AA9DZ,IAAM,kBAAkB;AAAA;AAAA,EAEvB,YAAQ,gBAAI,iBAAkB;AAAA;AAAA,EAE9B,UAAM,gBAAI,oBAAqB;AAAA;AAAA,EAE/B,aAAS,gBAAI,kBAAmB;AAAA;AAAA,EAEhC,YAAQ,gBAAI,gBAAiB;AAC9B;AAEA,SAAS,UAAW,EAAE,oBAAoB,GAAI;AAC7C,QAAM,uBAAmB,iCAAkB,UAAU,GAAI;AACzD,QAAM,qBAAiB,iCAAkB,QAAQ,IAAK;AACtD,QAAM,EAAE,qBAAqB,qBAAqB,oBAAoB,QACrE,yBAAa,aAAAA,KAAiB;AAC/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4CAAC,SAAI,WAAU,+BACd,sDAAC,uCAAgB,mBAAgB,gBAAI,SAAU,GAAI,GACpD;AAAA;AAAA,EAGH;AAEF;AAEA,IAAO,oBAAQ;",
4
+ "sourcesContent": ["import { useViewportMatch } from '@wordpress/compose';\nimport { BlockBreadcrumb } from '@wordpress/block-editor';\nimport { useEffect } from '@wordpress/element';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport {\n\tInterfaceSkeleton,\n\tComplementaryArea,\n\tstore as interfaceStore,\n} from '@wordpress/interface';\nimport { __ } from '@wordpress/i18n';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport Header from '../header';\nimport WidgetAreasBlockEditorContent from '../widget-areas-block-editor-content';\nimport { store as editWidgetsStore } from '../../store';\nimport SecondarySidebar from '../secondary-sidebar';\n\nconst interfaceLabels = {\n\t/* translators: accessibility text for the widgets screen top bar landmark region. */\n\theader: __( 'Widgets top bar' ),\n\t/* translators: accessibility text for the widgets screen content landmark region. */\n\tbody: __( 'Widgets and blocks' ),\n\t/* translators: accessibility text for the widgets screen settings landmark region. */\n\tsidebar: __( 'Widgets settings' ),\n\t/* translators: accessibility text for the widgets screen footer landmark region. */\n\tfooter: __( 'Widgets footer' ),\n};\n\nfunction Interface( { blockEditorSettings } ) {\n\tconst isMobileViewport = useViewportMatch( 'medium', '<' );\n\tconst isHugeViewport = useViewportMatch( 'huge', '>=' );\n\tconst { setIsInserterOpened, setIsListViewOpened, closeGeneralSidebar } =\n\t\tuseDispatch( editWidgetsStore );\n\tconst {\n\t\thasBlockBreadCrumbsEnabled,\n\t\thasSidebarEnabled,\n\t\tisInserterOpened,\n\t\tisListViewOpened,\n\t} = useSelect(\n\t\t( select ) => ( {\n\t\t\thasSidebarEnabled: !! select(\n\t\t\t\tinterfaceStore\n\t\t\t).getActiveComplementaryArea( editWidgetsStore.name ),\n\t\t\tisInserterOpened: !! select( editWidgetsStore ).isInserterOpened(),\n\t\t\tisListViewOpened: !! select( editWidgetsStore ).isListViewOpened(),\n\t\t\thasBlockBreadCrumbsEnabled: !! select( preferencesStore ).get(\n\t\t\t\t'core/edit-widgets',\n\t\t\t\t'showBlockBreadcrumbs'\n\t\t\t),\n\t\t} ),\n\t\t[]\n\t);\n\n\t// Inserter and Sidebars are mutually exclusive\n\tuseEffect( () => {\n\t\tif ( hasSidebarEnabled && ! isHugeViewport ) {\n\t\t\tsetIsInserterOpened( false );\n\t\t\tsetIsListViewOpened( false );\n\t\t}\n\t}, [ hasSidebarEnabled, isHugeViewport ] );\n\n\tuseEffect( () => {\n\t\tif ( ( isInserterOpened || isListViewOpened ) && ! isHugeViewport ) {\n\t\t\tcloseGeneralSidebar();\n\t\t}\n\t}, [ isInserterOpened, isListViewOpened, isHugeViewport ] );\n\n\tconst secondarySidebarLabel = isListViewOpened\n\t\t? __( 'List View' )\n\t\t: __( 'Block Library' );\n\n\tconst hasSecondarySidebar = isListViewOpened || isInserterOpened;\n\n\treturn (\n\t\t<InterfaceSkeleton\n\t\t\tlabels={ {\n\t\t\t\t...interfaceLabels,\n\t\t\t\tsecondarySidebar: secondarySidebarLabel,\n\t\t\t} }\n\t\t\theader={ <Header /> }\n\t\t\tsecondarySidebar={ hasSecondarySidebar && <SecondarySidebar /> }\n\t\t\tsidebar={ <ComplementaryArea.Slot scope=\"core/edit-widgets\" /> }\n\t\t\tcontent={\n\t\t\t\t<>\n\t\t\t\t\t<WidgetAreasBlockEditorContent\n\t\t\t\t\t\tblockEditorSettings={ blockEditorSettings }\n\t\t\t\t\t/>\n\t\t\t\t</>\n\t\t\t}\n\t\t\tfooter={\n\t\t\t\thasBlockBreadCrumbsEnabled &&\n\t\t\t\t! isMobileViewport && (\n\t\t\t\t\t<div className=\"edit-widgets-layout__footer\">\n\t\t\t\t\t\t<BlockBreadcrumb\n\t\t\t\t\t\t\tclassName=\"edit-widgets-layout__breadcrumbs\"\n\t\t\t\t\t\t\trootLabelText={ __( 'Widgets' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\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;AAC3B,0BAAqB,KAAM;AAAA,IAC5B;AAAA,EACD,GAAG,CAAE,mBAAmB,cAAe,CAAE;AAEzC,gCAAW,MAAM;AAChB,SAAO,oBAAoB,qBAAsB,CAAE,gBAAiB;AACnE,0BAAoB;AAAA,IACrB;AAAA,EACD,GAAG,CAAE,kBAAkB,kBAAkB,cAAe,CAAE;AAE1D,QAAM,wBAAwB,uBAC3B,gBAAI,WAAY,QAChB,gBAAI,eAAgB;AAEvB,QAAM,sBAAsB,oBAAoB;AAEhD,SACC;AAAA,IAAC;AAAA;AAAA,MACA,QAAS;AAAA,QACR,GAAG;AAAA,QACH,kBAAkB;AAAA,MACnB;AAAA,MACA,QAAS,4CAAC,cAAAC,SAAA,EAAO;AAAA,MACjB,kBAAmB,uBAAuB,4CAAC,yBAAAC,SAAA,EAAiB;AAAA,MAC5D,SAAU,4CAAC,mCAAkB,MAAlB,EAAuB,OAAM,qBAAoB;AAAA,MAC5D,SACC,2EACC;AAAA,QAAC,yCAAAC;AAAA,QAAA;AAAA,UACA;AAAA;AAAA,MACD,GACD;AAAA,MAED,QACC,8BACA,CAAE,oBACD,4CAAC,SAAI,WAAU,+BACd;AAAA,QAAC;AAAA;AAAA,UACA,WAAU;AAAA,UACV,mBAAgB,gBAAI,SAAU;AAAA;AAAA,MAC/B,GACD;AAAA;AAAA,EAGH;AAEF;AAEA,IAAO,oBAAQ;",
6
6
  "names": ["editWidgetsStore", "interfaceStore", "preferencesStore", "Header", "SecondarySidebar", "WidgetAreasBlockEditorContent"]
7
7
  }
@@ -51,13 +51,14 @@ function WidgetAreasBlockEditorContent({
51
51
  []
52
52
  );
53
53
  const isLargeViewport = (0, import_compose.useViewportMatch)("medium");
54
+ const contentRef = (0, import_element.useRef)();
54
55
  const styles = (0, import_element.useMemo)(() => {
55
56
  return hasThemeStyles ? blockEditorSettings.styles : [];
56
57
  }, [blockEditorSettings, hasThemeStyles]);
57
58
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "edit-widgets-block-editor", children: [
58
59
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_notices.default, {}),
59
60
  !isLargeViewport && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_block_editor.BlockToolbar, { hideDragHandle: true }),
60
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_block_editor.BlockTools, { children: [
61
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_block_editor.BlockTools, { __unstableContentRef: contentRef, children: [
61
62
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_keyboard_shortcuts.default, {}),
62
63
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
63
64
  import_block_editor.__unstableEditorStyles,
@@ -66,7 +67,7 @@ function WidgetAreasBlockEditorContent({
66
67
  scope: ":where(.editor-styles-wrapper)"
67
68
  }
68
69
  ),
69
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_block_editor.BlockSelectionClearer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_block_editor.WritingFlow, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_block_editor.BlockList, { className: "edit-widgets-main-block-list" }) }) })
70
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_block_editor.BlockSelectionClearer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_block_editor.WritingFlow, { ref: contentRef, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_block_editor.BlockList, { className: "edit-widgets-main-block-list" }) }) })
70
71
  ] })
71
72
  ] });
72
73
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/widget-areas-block-editor-content/index.jsx"],
4
- "sourcesContent": ["import {\n\tBlockList,\n\tBlockToolbar,\n\tBlockTools,\n\tBlockSelectionClearer,\n\tWritingFlow,\n\t__unstableEditorStyles as EditorStyles,\n} from '@wordpress/block-editor';\nimport { useViewportMatch } from '@wordpress/compose';\nimport { useSelect } from '@wordpress/data';\nimport { useMemo } from '@wordpress/element';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport Notices from '../notices';\nimport KeyboardShortcuts from '../keyboard-shortcuts';\n\nexport default function WidgetAreasBlockEditorContent( {\n\tblockEditorSettings,\n} ) {\n\tconst hasThemeStyles = useSelect(\n\t\t( select ) =>\n\t\t\t!! select( preferencesStore ).get(\n\t\t\t\t'core/edit-widgets',\n\t\t\t\t'themeStyles'\n\t\t\t),\n\t\t[]\n\t);\n\tconst isLargeViewport = useViewportMatch( 'medium' );\n\n\tconst styles = useMemo( () => {\n\t\treturn hasThemeStyles ? blockEditorSettings.styles : [];\n\t}, [ blockEditorSettings, hasThemeStyles ] );\n\n\treturn (\n\t\t<div className=\"edit-widgets-block-editor\">\n\t\t\t<Notices />\n\t\t\t{ ! isLargeViewport && <BlockToolbar hideDragHandle /> }\n\t\t\t<BlockTools>\n\t\t\t\t<KeyboardShortcuts />\n\t\t\t\t<EditorStyles\n\t\t\t\t\tstyles={ styles }\n\t\t\t\t\tscope=\":where(.editor-styles-wrapper)\"\n\t\t\t\t/>\n\t\t\t\t<BlockSelectionClearer>\n\t\t\t\t\t<WritingFlow>\n\t\t\t\t\t\t<BlockList className=\"edit-widgets-main-block-list\" />\n\t\t\t\t\t</WritingFlow>\n\t\t\t\t</BlockSelectionClearer>\n\t\t\t</BlockTools>\n\t\t</div>\n\t);\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAOO;AACP,qBAAiC;AACjC,kBAA0B;AAC1B,qBAAwB;AACxB,yBAA0C;AAC1C,qBAAoB;AACpB,gCAA8B;AAqB3B;AAnBY,SAAR,8BAAgD;AAAA,EACtD;AACD,GAAI;AACH,QAAM,qBAAiB;AAAA,IACtB,CAAE,WACD,CAAC,CAAE,OAAQ,mBAAAA,KAAiB,EAAE;AAAA,MAC7B;AAAA,MACA;AAAA,IACD;AAAA,IACD,CAAC;AAAA,EACF;AACA,QAAM,sBAAkB,iCAAkB,QAAS;AAEnD,QAAM,aAAS,wBAAS,MAAM;AAC7B,WAAO,iBAAiB,oBAAoB,SAAS,CAAC;AAAA,EACvD,GAAG,CAAE,qBAAqB,cAAe,CAAE;AAE3C,SACC,6CAAC,SAAI,WAAU,6BACd;AAAA,gDAAC,eAAAC,SAAA,EAAQ;AAAA,IACP,CAAE,mBAAmB,4CAAC,oCAAa,gBAAc,MAAC;AAAA,IACpD,6CAAC,kCACA;AAAA,kDAAC,0BAAAC,SAAA,EAAkB;AAAA,MACnB;AAAA,QAAC,oBAAAC;AAAA,QAAA;AAAA,UACA;AAAA,UACA,OAAM;AAAA;AAAA,MACP;AAAA,MACA,4CAAC,6CACA,sDAAC,mCACA,sDAAC,iCAAU,WAAU,gCAA+B,GACrD,GACD;AAAA,OACD;AAAA,KACD;AAEF;",
4
+ "sourcesContent": ["import {\n\tBlockList,\n\tBlockToolbar,\n\tBlockTools,\n\tBlockSelectionClearer,\n\tWritingFlow,\n\t__unstableEditorStyles as EditorStyles,\n} from '@wordpress/block-editor';\nimport { useViewportMatch } from '@wordpress/compose';\nimport { useSelect } from '@wordpress/data';\nimport { useMemo, useRef } from '@wordpress/element';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport Notices from '../notices';\nimport KeyboardShortcuts from '../keyboard-shortcuts';\n\nexport default function WidgetAreasBlockEditorContent( {\n\tblockEditorSettings,\n} ) {\n\tconst hasThemeStyles = useSelect(\n\t\t( select ) =>\n\t\t\t!! select( preferencesStore ).get(\n\t\t\t\t'core/edit-widgets',\n\t\t\t\t'themeStyles'\n\t\t\t),\n\t\t[]\n\t);\n\tconst isLargeViewport = useViewportMatch( 'medium' );\n\tconst contentRef = useRef();\n\n\tconst styles = useMemo( () => {\n\t\treturn hasThemeStyles ? blockEditorSettings.styles : [];\n\t}, [ blockEditorSettings, hasThemeStyles ] );\n\n\treturn (\n\t\t<div className=\"edit-widgets-block-editor\">\n\t\t\t<Notices />\n\t\t\t{ ! isLargeViewport && <BlockToolbar hideDragHandle /> }\n\t\t\t<BlockTools __unstableContentRef={ contentRef }>\n\t\t\t\t<KeyboardShortcuts />\n\t\t\t\t<EditorStyles\n\t\t\t\t\tstyles={ styles }\n\t\t\t\t\tscope=\":where(.editor-styles-wrapper)\"\n\t\t\t\t/>\n\t\t\t\t<BlockSelectionClearer>\n\t\t\t\t\t<WritingFlow ref={ contentRef }>\n\t\t\t\t\t\t<BlockList className=\"edit-widgets-main-block-list\" />\n\t\t\t\t\t</WritingFlow>\n\t\t\t\t</BlockSelectionClearer>\n\t\t\t</BlockTools>\n\t\t</div>\n\t);\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAOO;AACP,qBAAiC;AACjC,kBAA0B;AAC1B,qBAAgC;AAChC,yBAA0C;AAC1C,qBAAoB;AACpB,gCAA8B;AAsB3B;AApBY,SAAR,8BAAgD;AAAA,EACtD;AACD,GAAI;AACH,QAAM,qBAAiB;AAAA,IACtB,CAAE,WACD,CAAC,CAAE,OAAQ,mBAAAA,KAAiB,EAAE;AAAA,MAC7B;AAAA,MACA;AAAA,IACD;AAAA,IACD,CAAC;AAAA,EACF;AACA,QAAM,sBAAkB,iCAAkB,QAAS;AACnD,QAAM,iBAAa,uBAAO;AAE1B,QAAM,aAAS,wBAAS,MAAM;AAC7B,WAAO,iBAAiB,oBAAoB,SAAS,CAAC;AAAA,EACvD,GAAG,CAAE,qBAAqB,cAAe,CAAE;AAE3C,SACC,6CAAC,SAAI,WAAU,6BACd;AAAA,gDAAC,eAAAC,SAAA,EAAQ;AAAA,IACP,CAAE,mBAAmB,4CAAC,oCAAa,gBAAc,MAAC;AAAA,IACpD,6CAAC,kCAAW,sBAAuB,YAClC;AAAA,kDAAC,0BAAAC,SAAA,EAAkB;AAAA,MACnB;AAAA,QAAC,oBAAAC;AAAA,QAAA;AAAA,UACA;AAAA,UACA,OAAM;AAAA;AAAA,MACP;AAAA,MACA,4CAAC,6CACA,sDAAC,mCAAY,KAAM,YAClB,sDAAC,iCAAU,WAAU,gCAA+B,GACrD,GACD;AAAA,OACD;AAAA,KACD;AAEF;",
6
6
  "names": ["preferencesStore", "Notices", "KeyboardShortcuts", "EditorStyles"]
7
7
  }
@@ -77,7 +77,13 @@ function Interface({ blockEditorSettings }) {
77
77
  blockEditorSettings
78
78
  }
79
79
  ) }),
80
- footer: hasBlockBreadCrumbsEnabled && !isMobileViewport && /* @__PURE__ */ jsx("div", { className: "edit-widgets-layout__footer", children: /* @__PURE__ */ jsx(BlockBreadcrumb, { rootLabelText: __("Widgets") }) })
80
+ footer: hasBlockBreadCrumbsEnabled && !isMobileViewport && /* @__PURE__ */ jsx("div", { className: "edit-widgets-layout__footer", children: /* @__PURE__ */ jsx(
81
+ BlockBreadcrumb,
82
+ {
83
+ className: "edit-widgets-layout__breadcrumbs",
84
+ rootLabelText: __("Widgets")
85
+ }
86
+ ) })
81
87
  }
82
88
  );
83
89
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/layout/interface.jsx"],
4
- "sourcesContent": ["import { useViewportMatch } from '@wordpress/compose';\nimport { BlockBreadcrumb } from '@wordpress/block-editor';\nimport { useEffect } from '@wordpress/element';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport {\n\tInterfaceSkeleton,\n\tComplementaryArea,\n\tstore as interfaceStore,\n} from '@wordpress/interface';\nimport { __ } from '@wordpress/i18n';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport Header from '../header';\nimport WidgetAreasBlockEditorContent from '../widget-areas-block-editor-content';\nimport { store as editWidgetsStore } from '../../store';\nimport SecondarySidebar from '../secondary-sidebar';\n\nconst interfaceLabels = {\n\t/* translators: accessibility text for the widgets screen top bar landmark region. */\n\theader: __( 'Widgets top bar' ),\n\t/* translators: accessibility text for the widgets screen content landmark region. */\n\tbody: __( 'Widgets and blocks' ),\n\t/* translators: accessibility text for the widgets screen settings landmark region. */\n\tsidebar: __( 'Widgets settings' ),\n\t/* translators: accessibility text for the widgets screen footer landmark region. */\n\tfooter: __( 'Widgets footer' ),\n};\n\nfunction Interface( { blockEditorSettings } ) {\n\tconst isMobileViewport = useViewportMatch( 'medium', '<' );\n\tconst isHugeViewport = useViewportMatch( 'huge', '>=' );\n\tconst { setIsInserterOpened, setIsListViewOpened, closeGeneralSidebar } =\n\t\tuseDispatch( editWidgetsStore );\n\tconst {\n\t\thasBlockBreadCrumbsEnabled,\n\t\thasSidebarEnabled,\n\t\tisInserterOpened,\n\t\tisListViewOpened,\n\t} = useSelect(\n\t\t( select ) => ( {\n\t\t\thasSidebarEnabled: !! select(\n\t\t\t\tinterfaceStore\n\t\t\t).getActiveComplementaryArea( editWidgetsStore.name ),\n\t\t\tisInserterOpened: !! select( editWidgetsStore ).isInserterOpened(),\n\t\t\tisListViewOpened: !! select( editWidgetsStore ).isListViewOpened(),\n\t\t\thasBlockBreadCrumbsEnabled: !! select( preferencesStore ).get(\n\t\t\t\t'core/edit-widgets',\n\t\t\t\t'showBlockBreadcrumbs'\n\t\t\t),\n\t\t} ),\n\t\t[]\n\t);\n\n\t// Inserter and Sidebars are mutually exclusive\n\tuseEffect( () => {\n\t\tif ( hasSidebarEnabled && ! isHugeViewport ) {\n\t\t\tsetIsInserterOpened( false );\n\t\t\tsetIsListViewOpened( false );\n\t\t}\n\t}, [ hasSidebarEnabled, isHugeViewport ] );\n\n\tuseEffect( () => {\n\t\tif ( ( isInserterOpened || isListViewOpened ) && ! isHugeViewport ) {\n\t\t\tcloseGeneralSidebar();\n\t\t}\n\t}, [ isInserterOpened, isListViewOpened, isHugeViewport ] );\n\n\tconst secondarySidebarLabel = isListViewOpened\n\t\t? __( 'List View' )\n\t\t: __( 'Block Library' );\n\n\tconst hasSecondarySidebar = isListViewOpened || isInserterOpened;\n\n\treturn (\n\t\t<InterfaceSkeleton\n\t\t\tlabels={ {\n\t\t\t\t...interfaceLabels,\n\t\t\t\tsecondarySidebar: secondarySidebarLabel,\n\t\t\t} }\n\t\t\theader={ <Header /> }\n\t\t\tsecondarySidebar={ hasSecondarySidebar && <SecondarySidebar /> }\n\t\t\tsidebar={ <ComplementaryArea.Slot scope=\"core/edit-widgets\" /> }\n\t\t\tcontent={\n\t\t\t\t<>\n\t\t\t\t\t<WidgetAreasBlockEditorContent\n\t\t\t\t\t\tblockEditorSettings={ blockEditorSettings }\n\t\t\t\t\t/>\n\t\t\t\t</>\n\t\t\t}\n\t\t\tfooter={\n\t\t\t\thasBlockBreadCrumbsEnabled &&\n\t\t\t\t! isMobileViewport && (\n\t\t\t\t\t<div className=\"edit-widgets-layout__footer\">\n\t\t\t\t\t\t<BlockBreadcrumb rootLabelText={ __( 'Widgets' ) } />\n\t\t\t\t\t</div>\n\t\t\t\t)\n\t\t\t}\n\t\t/>\n\t);\n}\n\nexport default Interface;\n"],
5
- "mappings": ";AAAA,SAAS,wBAAwB;AACjC,SAAS,uBAAuB;AAChC,SAAS,iBAAiB;AAC1B,SAAS,aAAa,iBAAiB;AACvC;AAAA,EACC;AAAA,EACA;AAAA,EACA,SAAS;AAAA,OACH;AACP,SAAS,UAAU;AACnB,SAAS,SAAS,wBAAwB;AAC1C,OAAO,YAAY;AACnB,OAAO,mCAAmC;AAC1C,SAAS,SAAS,wBAAwB;AAC1C,OAAO,sBAAsB;AAgEjB,SAIR,UAJQ;AA9DZ,IAAM,kBAAkB;AAAA;AAAA,EAEvB,QAAQ,GAAI,iBAAkB;AAAA;AAAA,EAE9B,MAAM,GAAI,oBAAqB;AAAA;AAAA,EAE/B,SAAS,GAAI,kBAAmB;AAAA;AAAA,EAEhC,QAAQ,GAAI,gBAAiB;AAC9B;AAEA,SAAS,UAAW,EAAE,oBAAoB,GAAI;AAC7C,QAAM,mBAAmB,iBAAkB,UAAU,GAAI;AACzD,QAAM,iBAAiB,iBAAkB,QAAQ,IAAK;AACtD,QAAM,EAAE,qBAAqB,qBAAqB,oBAAoB,IAC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AU,GAAI,GACpD;AAAA;AAAA,EAGH;AAEF;AAEA,IAAO,oBAAQ;",
4
+ "sourcesContent": ["import { useViewportMatch } from '@wordpress/compose';\nimport { BlockBreadcrumb } from '@wordpress/block-editor';\nimport { useEffect } from '@wordpress/element';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport {\n\tInterfaceSkeleton,\n\tComplementaryArea,\n\tstore as interfaceStore,\n} from '@wordpress/interface';\nimport { __ } from '@wordpress/i18n';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport Header from '../header';\nimport WidgetAreasBlockEditorContent from '../widget-areas-block-editor-content';\nimport { store as editWidgetsStore } from '../../store';\nimport SecondarySidebar from '../secondary-sidebar';\n\nconst interfaceLabels = {\n\t/* translators: accessibility text for the widgets screen top bar landmark region. */\n\theader: __( 'Widgets top bar' ),\n\t/* translators: accessibility text for the widgets screen content landmark region. */\n\tbody: __( 'Widgets and blocks' ),\n\t/* translators: accessibility text for the widgets screen settings landmark region. */\n\tsidebar: __( 'Widgets settings' ),\n\t/* translators: accessibility text for the widgets screen footer landmark region. */\n\tfooter: __( 'Widgets footer' ),\n};\n\nfunction Interface( { blockEditorSettings } ) {\n\tconst isMobileViewport = useViewportMatch( 'medium', '<' );\n\tconst isHugeViewport = useViewportMatch( 'huge', '>=' );\n\tconst { setIsInserterOpened, setIsListViewOpened, closeGeneralSidebar } =\n\t\tuseDispatch( editWidgetsStore );\n\tconst {\n\t\thasBlockBreadCrumbsEnabled,\n\t\thasSidebarEnabled,\n\t\tisInserterOpened,\n\t\tisListViewOpened,\n\t} = useSelect(\n\t\t( select ) => ( {\n\t\t\thasSidebarEnabled: !! select(\n\t\t\t\tinterfaceStore\n\t\t\t).getActiveComplementaryArea( editWidgetsStore.name ),\n\t\t\tisInserterOpened: !! select( editWidgetsStore ).isInserterOpened(),\n\t\t\tisListViewOpened: !! select( editWidgetsStore ).isListViewOpened(),\n\t\t\thasBlockBreadCrumbsEnabled: !! select( preferencesStore ).get(\n\t\t\t\t'core/edit-widgets',\n\t\t\t\t'showBlockBreadcrumbs'\n\t\t\t),\n\t\t} ),\n\t\t[]\n\t);\n\n\t// Inserter and Sidebars are mutually exclusive\n\tuseEffect( () => {\n\t\tif ( hasSidebarEnabled && ! isHugeViewport ) {\n\t\t\tsetIsInserterOpened( false );\n\t\t\tsetIsListViewOpened( false );\n\t\t}\n\t}, [ hasSidebarEnabled, isHugeViewport ] );\n\n\tuseEffect( () => {\n\t\tif ( ( isInserterOpened || isListViewOpened ) && ! isHugeViewport ) {\n\t\t\tcloseGeneralSidebar();\n\t\t}\n\t}, [ isInserterOpened, isListViewOpened, isHugeViewport ] );\n\n\tconst secondarySidebarLabel = isListViewOpened\n\t\t? __( 'List View' )\n\t\t: __( 'Block Library' );\n\n\tconst hasSecondarySidebar = isListViewOpened || isInserterOpened;\n\n\treturn (\n\t\t<InterfaceSkeleton\n\t\t\tlabels={ {\n\t\t\t\t...interfaceLabels,\n\t\t\t\tsecondarySidebar: secondarySidebarLabel,\n\t\t\t} }\n\t\t\theader={ <Header /> }\n\t\t\tsecondarySidebar={ hasSecondarySidebar && <SecondarySidebar /> }\n\t\t\tsidebar={ <ComplementaryArea.Slot scope=\"core/edit-widgets\" /> }\n\t\t\tcontent={\n\t\t\t\t<>\n\t\t\t\t\t<WidgetAreasBlockEditorContent\n\t\t\t\t\t\tblockEditorSettings={ blockEditorSettings }\n\t\t\t\t\t/>\n\t\t\t\t</>\n\t\t\t}\n\t\t\tfooter={\n\t\t\t\thasBlockBreadCrumbsEnabled &&\n\t\t\t\t! isMobileViewport && (\n\t\t\t\t\t<div className=\"edit-widgets-layout__footer\">\n\t\t\t\t\t\t<BlockBreadcrumb\n\t\t\t\t\t\t\tclassName=\"edit-widgets-layout__breadcrumbs\"\n\t\t\t\t\t\t\trootLabelText={ __( 'Widgets' ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t)\n\t\t\t}\n\t\t/>\n\t);\n}\n\nexport default Interface;\n"],
5
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,EACD,GAAG,CAAE,mBAAmB,cAAe,CAAE;AAEzC,YAAW,MAAM;AAChB,SAAO,oBAAoB,qBAAsB,CAAE,gBAAiB;AACnE,0BAAoB;AAAA,IACrB;AAAA,EACD,GAAG,CAAE,kBAAkB,kBAAkB,cAAe,CAAE;AAE1D,QAAM,wBAAwB,mBAC3B,GAAI,WAAY,IAChB,GAAI,eAAgB;AAEvB,QAAM,sBAAsB,oBAAoB;AAEhD,SACC;AAAA,IAAC;AAAA;AAAA,MACA,QAAS;AAAA,QACR,GAAG;AAAA,QACH,kBAAkB;AAAA,MACnB;AAAA,MACA,QAAS,oBAAC,UAAO;AAAA,MACjB,kBAAmB,uBAAuB,oBAAC,oBAAiB;AAAA,MAC5D,SAAU,oBAAC,kBAAkB,MAAlB,EAAuB,OAAM,qBAAoB;AAAA,MAC5D,SACC,gCACC;AAAA,QAAC;AAAA;AAAA,UACA;AAAA;AAAA,MACD,GACD;AAAA,MAED,QACC,8BACA,CAAE,oBACD,oBAAC,SAAI,WAAU,+BACd;AAAA,QAAC;AAAA;AAAA,UACA,WAAU;AAAA,UACV,eAAgB,GAAI,SAAU;AAAA;AAAA,MAC/B,GACD;AAAA;AAAA,EAGH;AAEF;AAEA,IAAO,oBAAQ;",
6
6
  "names": []
7
7
  }
@@ -9,7 +9,7 @@ import {
9
9
  } from "@wordpress/block-editor";
10
10
  import { useViewportMatch } from "@wordpress/compose";
11
11
  import { useSelect } from "@wordpress/data";
12
- import { useMemo } from "@wordpress/element";
12
+ import { useMemo, useRef } from "@wordpress/element";
13
13
  import { store as preferencesStore } from "@wordpress/preferences";
14
14
  import Notices from "../notices/index.mjs";
15
15
  import KeyboardShortcuts from "../keyboard-shortcuts/index.mjs";
@@ -25,13 +25,14 @@ function WidgetAreasBlockEditorContent({
25
25
  []
26
26
  );
27
27
  const isLargeViewport = useViewportMatch("medium");
28
+ const contentRef = useRef();
28
29
  const styles = useMemo(() => {
29
30
  return hasThemeStyles ? blockEditorSettings.styles : [];
30
31
  }, [blockEditorSettings, hasThemeStyles]);
31
32
  return /* @__PURE__ */ jsxs("div", { className: "edit-widgets-block-editor", children: [
32
33
  /* @__PURE__ */ jsx(Notices, {}),
33
34
  !isLargeViewport && /* @__PURE__ */ jsx(BlockToolbar, { hideDragHandle: true }),
34
- /* @__PURE__ */ jsxs(BlockTools, { children: [
35
+ /* @__PURE__ */ jsxs(BlockTools, { __unstableContentRef: contentRef, children: [
35
36
  /* @__PURE__ */ jsx(KeyboardShortcuts, {}),
36
37
  /* @__PURE__ */ jsx(
37
38
  EditorStyles,
@@ -40,7 +41,7 @@ function WidgetAreasBlockEditorContent({
40
41
  scope: ":where(.editor-styles-wrapper)"
41
42
  }
42
43
  ),
43
- /* @__PURE__ */ jsx(BlockSelectionClearer, { children: /* @__PURE__ */ jsx(WritingFlow, { children: /* @__PURE__ */ jsx(BlockList, { className: "edit-widgets-main-block-list" }) }) })
44
+ /* @__PURE__ */ jsx(BlockSelectionClearer, { children: /* @__PURE__ */ jsx(WritingFlow, { ref: contentRef, children: /* @__PURE__ */ jsx(BlockList, { className: "edit-widgets-main-block-list" }) }) })
44
45
  ] })
45
46
  ] });
46
47
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/widget-areas-block-editor-content/index.jsx"],
4
- "sourcesContent": ["import {\n\tBlockList,\n\tBlockToolbar,\n\tBlockTools,\n\tBlockSelectionClearer,\n\tWritingFlow,\n\t__unstableEditorStyles as EditorStyles,\n} from '@wordpress/block-editor';\nimport { useViewportMatch } from '@wordpress/compose';\nimport { useSelect } from '@wordpress/data';\nimport { useMemo } from '@wordpress/element';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport Notices from '../notices';\nimport KeyboardShortcuts from '../keyboard-shortcuts';\n\nexport default function WidgetAreasBlockEditorContent( {\n\tblockEditorSettings,\n} ) {\n\tconst hasThemeStyles = useSelect(\n\t\t( select ) =>\n\t\t\t!! select( preferencesStore ).get(\n\t\t\t\t'core/edit-widgets',\n\t\t\t\t'themeStyles'\n\t\t\t),\n\t\t[]\n\t);\n\tconst isLargeViewport = useViewportMatch( 'medium' );\n\n\tconst styles = useMemo( () => {\n\t\treturn hasThemeStyles ? blockEditorSettings.styles : [];\n\t}, [ blockEditorSettings, hasThemeStyles ] );\n\n\treturn (\n\t\t<div className=\"edit-widgets-block-editor\">\n\t\t\t<Notices />\n\t\t\t{ ! isLargeViewport && <BlockToolbar hideDragHandle /> }\n\t\t\t<BlockTools>\n\t\t\t\t<KeyboardShortcuts />\n\t\t\t\t<EditorStyles\n\t\t\t\t\tstyles={ styles }\n\t\t\t\t\tscope=\":where(.editor-styles-wrapper)\"\n\t\t\t\t/>\n\t\t\t\t<BlockSelectionClearer>\n\t\t\t\t\t<WritingFlow>\n\t\t\t\t\t\t<BlockList className=\"edit-widgets-main-block-list\" />\n\t\t\t\t\t</WritingFlow>\n\t\t\t\t</BlockSelectionClearer>\n\t\t\t</BlockTools>\n\t\t</div>\n\t);\n}\n"],
5
- "mappings": ";AAAA;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,0BAA0B;AAAA,OACpB;AACP,SAAS,wBAAwB;AACjC,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,SAAS,wBAAwB;AAC1C,OAAO,aAAa;AACpB,OAAO,uBAAuB;AAqB3B,cAEA,YAFA;AAnBY,SAAR,8BAAgD;AAAA,EACtD;AACD,GAAI;AACH,QAAM,iBAAiB;AAAA,IACtB,CAAE,WACD,CAAC,CAAE,OAAQ,gBAAiB,EAAE;AAAA,MAC7B;AAAA,MACA;AAAA,IACD;AAAA,IACD,CAAC;AAAA,EACF;AACA,QAAM,kBAAkB,iBAAkB,QAAS;AAEnD,QAAM,SAAS,QAAS,MAAM;AAC7B,WAAO,iBAAiB,oBAAoB,SAAS,CAAC;AAAA,EACvD,GAAG,CAAE,qBAAqB,cAAe,CAAE;AAE3C,SACC,qBAAC,SAAI,WAAU,6BACd;AAAA,wBAAC,WAAQ;AAAA,IACP,CAAE,mBAAmB,oBAAC,gBAAa,gBAAc,MAAC;AAAA,IACpD,qBAAC,cACA;AAAA,0BAAC,qBAAkB;AAAA,MACnB;AAAA,QAAC;AAAA;AAAA,UACA;AAAA,UACA,OAAM;AAAA;AAAA,MACP;AAAA,MACA,oBAAC,yBACA,8BAAC,eACA,8BAAC,aAAU,WAAU,gCAA+B,GACrD,GACD;AAAA,OACD;AAAA,KACD;AAEF;",
4
+ "sourcesContent": ["import {\n\tBlockList,\n\tBlockToolbar,\n\tBlockTools,\n\tBlockSelectionClearer,\n\tWritingFlow,\n\t__unstableEditorStyles as EditorStyles,\n} from '@wordpress/block-editor';\nimport { useViewportMatch } from '@wordpress/compose';\nimport { useSelect } from '@wordpress/data';\nimport { useMemo, useRef } from '@wordpress/element';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport Notices from '../notices';\nimport KeyboardShortcuts from '../keyboard-shortcuts';\n\nexport default function WidgetAreasBlockEditorContent( {\n\tblockEditorSettings,\n} ) {\n\tconst hasThemeStyles = useSelect(\n\t\t( select ) =>\n\t\t\t!! select( preferencesStore ).get(\n\t\t\t\t'core/edit-widgets',\n\t\t\t\t'themeStyles'\n\t\t\t),\n\t\t[]\n\t);\n\tconst isLargeViewport = useViewportMatch( 'medium' );\n\tconst contentRef = useRef();\n\n\tconst styles = useMemo( () => {\n\t\treturn hasThemeStyles ? blockEditorSettings.styles : [];\n\t}, [ blockEditorSettings, hasThemeStyles ] );\n\n\treturn (\n\t\t<div className=\"edit-widgets-block-editor\">\n\t\t\t<Notices />\n\t\t\t{ ! isLargeViewport && <BlockToolbar hideDragHandle /> }\n\t\t\t<BlockTools __unstableContentRef={ contentRef }>\n\t\t\t\t<KeyboardShortcuts />\n\t\t\t\t<EditorStyles\n\t\t\t\t\tstyles={ styles }\n\t\t\t\t\tscope=\":where(.editor-styles-wrapper)\"\n\t\t\t\t/>\n\t\t\t\t<BlockSelectionClearer>\n\t\t\t\t\t<WritingFlow ref={ contentRef }>\n\t\t\t\t\t\t<BlockList className=\"edit-widgets-main-block-list\" />\n\t\t\t\t\t</WritingFlow>\n\t\t\t\t</BlockSelectionClearer>\n\t\t\t</BlockTools>\n\t\t</div>\n\t);\n}\n"],
5
+ "mappings": ";AAAA;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,0BAA0B;AAAA,OACpB;AACP,SAAS,wBAAwB;AACjC,SAAS,iBAAiB;AAC1B,SAAS,SAAS,cAAc;AAChC,SAAS,SAAS,wBAAwB;AAC1C,OAAO,aAAa;AACpB,OAAO,uBAAuB;AAsB3B,cAEA,YAFA;AApBY,SAAR,8BAAgD;AAAA,EACtD;AACD,GAAI;AACH,QAAM,iBAAiB;AAAA,IACtB,CAAE,WACD,CAAC,CAAE,OAAQ,gBAAiB,EAAE;AAAA,MAC7B;AAAA,MACA;AAAA,IACD;AAAA,IACD,CAAC;AAAA,EACF;AACA,QAAM,kBAAkB,iBAAkB,QAAS;AACnD,QAAM,aAAa,OAAO;AAE1B,QAAM,SAAS,QAAS,MAAM;AAC7B,WAAO,iBAAiB,oBAAoB,SAAS,CAAC;AAAA,EACvD,GAAG,CAAE,qBAAqB,cAAe,CAAE;AAE3C,SACC,qBAAC,SAAI,WAAU,6BACd;AAAA,wBAAC,WAAQ;AAAA,IACP,CAAE,mBAAmB,oBAAC,gBAAa,gBAAc,MAAC;AAAA,IACpD,qBAAC,cAAW,sBAAuB,YAClC;AAAA,0BAAC,qBAAkB;AAAA,MACnB;AAAA,QAAC;AAAA;AAAA,UACA;AAAA,UACA,OAAM;AAAA;AAAA,MACP;AAAA,MACA,oBAAC,yBACA,8BAAC,eAAY,KAAM,YAClB,8BAAC,aAAU,WAAU,gCAA+B,GACrD,GACD;AAAA,OACD;AAAA,KACD;AAEF;",
6
6
  "names": []
7
7
  }
@@ -485,16 +485,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
485
485
  display: flex;
486
486
  }
487
487
  }
488
- .interface-interface-skeleton__footer .block-editor-block-breadcrumb {
489
- z-index: 30;
490
- display: flex;
491
- background: #fff;
492
- height: var(--wpds-dimension-size-md, 32px);
493
- align-items: center;
494
- font-size: 13px;
495
- padding: 0 18px;
496
- }
497
-
498
488
  .interface-interface-skeleton__actions {
499
489
  z-index: 100000;
500
490
  position: fixed !important;
@@ -835,15 +825,25 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
835
825
  }
836
826
 
837
827
  .edit-widgets-notices.notices-inline-notices-wrapper,
838
- .edit-widgets-notices .components-notice-list {
828
+ .edit-widgets-notices .notices-inline-notices__list {
839
829
  gap: 0;
840
830
  }
841
831
 
842
- .edit-widgets-notices .components-notice {
832
+ .edit-widgets-notices .notices-inline-notices__notice {
843
833
  border-top-width: 0;
844
834
  border-inline-width: 0;
845
835
  }
846
836
 
837
+ .edit-widgets-layout__footer {
838
+ flex: 1 1 auto;
839
+ min-width: 0;
840
+ }
841
+
842
+ .edit-widgets-layout__breadcrumbs {
843
+ height: var(--wpds-dimension-size-md, 32px);
844
+ padding: 0 18px;
845
+ }
846
+
847
847
  .edit-widgets-layout__inserter-panel {
848
848
  height: 100%;
849
849
  display: flex;
@@ -485,16 +485,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
485
485
  display: flex;
486
486
  }
487
487
  }
488
- .interface-interface-skeleton__footer .block-editor-block-breadcrumb {
489
- z-index: 30;
490
- display: flex;
491
- background: #fff;
492
- height: var(--wpds-dimension-size-md, 32px);
493
- align-items: center;
494
- font-size: 13px;
495
- padding: 0 18px;
496
- }
497
-
498
488
  .interface-interface-skeleton__actions {
499
489
  z-index: 100000;
500
490
  position: fixed !important;
@@ -835,15 +825,25 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
835
825
  }
836
826
 
837
827
  .edit-widgets-notices.notices-inline-notices-wrapper,
838
- .edit-widgets-notices .components-notice-list {
828
+ .edit-widgets-notices .notices-inline-notices__list {
839
829
  gap: 0;
840
830
  }
841
831
 
842
- .edit-widgets-notices .components-notice {
832
+ .edit-widgets-notices .notices-inline-notices__notice {
843
833
  border-top-width: 0;
844
834
  border-inline-width: 0;
845
835
  }
846
836
 
837
+ .edit-widgets-layout__footer {
838
+ flex: 1 1 auto;
839
+ min-width: 0;
840
+ }
841
+
842
+ .edit-widgets-layout__breadcrumbs {
843
+ height: var(--wpds-dimension-size-md, 32px);
844
+ padding: 0 18px;
845
+ }
846
+
847
847
  .edit-widgets-layout__inserter-panel {
848
848
  height: 100%;
849
849
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-widgets",
3
- "version": "6.57.0",
3
+ "version": "7.0.0",
4
4
  "description": "Widgets Page module for WordPress..",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -20,15 +20,14 @@
20
20
  "url": "https://github.com/WordPress/gutenberg/issues"
21
21
  },
22
22
  "engines": {
23
- "node": ">=18.12.0"
23
+ "node": ">=22.13.0"
24
24
  },
25
25
  "files": [
26
26
  "src",
27
27
  "build",
28
28
  "build-module",
29
29
  "build-style",
30
- "build-types",
31
- "*.md"
30
+ "build-types"
32
31
  ],
33
32
  "main": "build/index.cjs",
34
33
  "module": "build-module/index.mjs",
@@ -46,36 +45,36 @@
46
45
  ]
47
46
  },
48
47
  "dependencies": {
49
- "@wordpress/a11y": "^4.57.0",
50
- "@wordpress/admin-ui": "^2.12.0",
51
- "@wordpress/api-fetch": "^7.57.0",
52
- "@wordpress/base-styles": "^13.3.0",
53
- "@wordpress/block-editor": "^18.1.0",
54
- "@wordpress/block-library": "^11.2.0",
55
- "@wordpress/blocks": "^16.2.0",
56
- "@wordpress/components": "^42.0.0",
57
- "@wordpress/compose": "^8.10.0",
58
- "@wordpress/core-data": "^8.2.0",
59
- "@wordpress/data": "^10.57.0",
60
- "@wordpress/deprecated": "^4.57.0",
61
- "@wordpress/dom": "^4.57.0",
62
- "@wordpress/element": "^9.0.0",
63
- "@wordpress/hooks": "^4.57.0",
64
- "@wordpress/i18n": "^6.30.0",
65
- "@wordpress/icons": "^18.0.0",
66
- "@wordpress/interface": "^10.3.0",
67
- "@wordpress/keyboard-shortcuts": "^5.57.0",
68
- "@wordpress/keycodes": "^4.57.0",
69
- "@wordpress/media-utils": "^5.57.0",
70
- "@wordpress/notices": "^5.57.0",
71
- "@wordpress/patterns": "^2.57.0",
72
- "@wordpress/plugins": "^7.57.0",
73
- "@wordpress/preferences": "^4.57.0",
74
- "@wordpress/private-apis": "^2.0.0",
75
- "@wordpress/theme": "^2.3.0",
76
- "@wordpress/ui": "^0.24.0",
77
- "@wordpress/url": "^4.57.0",
78
- "@wordpress/widgets": "^4.57.0",
48
+ "@wordpress/a11y": "^5.0.0",
49
+ "@wordpress/admin-ui": "^3.0.0",
50
+ "@wordpress/api-fetch": "^8.0.0",
51
+ "@wordpress/base-styles": "^14.0.0",
52
+ "@wordpress/block-editor": "^19.0.0",
53
+ "@wordpress/block-library": "^12.0.0",
54
+ "@wordpress/blocks": "^17.0.0",
55
+ "@wordpress/components": "^43.0.0",
56
+ "@wordpress/compose": "^9.0.0",
57
+ "@wordpress/core-data": "^9.0.0",
58
+ "@wordpress/data": "^11.0.0",
59
+ "@wordpress/deprecated": "^5.0.0",
60
+ "@wordpress/dom": "^5.0.0",
61
+ "@wordpress/element": "^10.0.0",
62
+ "@wordpress/hooks": "^5.0.0",
63
+ "@wordpress/i18n": "^7.0.0",
64
+ "@wordpress/icons": "^19.0.0",
65
+ "@wordpress/interface": "^11.0.0",
66
+ "@wordpress/keyboard-shortcuts": "^6.0.0",
67
+ "@wordpress/keycodes": "^5.0.0",
68
+ "@wordpress/media-utils": "^6.0.0",
69
+ "@wordpress/notices": "^6.0.0",
70
+ "@wordpress/patterns": "^3.0.0",
71
+ "@wordpress/plugins": "^8.0.0",
72
+ "@wordpress/preferences": "^5.0.0",
73
+ "@wordpress/private-apis": "^3.0.0",
74
+ "@wordpress/theme": "^3.0.0",
75
+ "@wordpress/ui": "^0.25.0",
76
+ "@wordpress/url": "^5.0.0",
77
+ "@wordpress/widgets": "^5.0.0",
79
78
  "clsx": "^2.1.1"
80
79
  },
81
80
  "devDependencies": {
@@ -91,5 +90,5 @@
91
90
  "publishConfig": {
92
91
  "access": "public"
93
92
  },
94
- "gitHead": "12441e2520c78b2254a792a8cba40c34110be060"
93
+ "gitHead": "8d30f92cbbde3ddf781c8799443c649befbbcb88"
95
94
  }
@@ -90,7 +90,10 @@ function Interface( { blockEditorSettings } ) {
90
90
  hasBlockBreadCrumbsEnabled &&
91
91
  ! isMobileViewport && (
92
92
  <div className="edit-widgets-layout__footer">
93
- <BlockBreadcrumb rootLabelText={ __( 'Widgets' ) } />
93
+ <BlockBreadcrumb
94
+ className="edit-widgets-layout__breadcrumbs"
95
+ rootLabelText={ __( 'Widgets' ) }
96
+ />
94
97
  </div>
95
98
  )
96
99
  }
@@ -1,6 +1,17 @@
1
1
  @use "@wordpress/base-styles/mixins" as *;
2
2
  @use "@wordpress/base-styles/variables" as *;
3
3
 
4
+ .edit-widgets-layout__footer {
5
+ flex: 1 1 auto;
6
+ // Let the flex item shrink below the trail's content width so breadcrumbs can collapse.
7
+ min-width: 0;
8
+ }
9
+
10
+ .edit-widgets-layout__breadcrumbs {
11
+ height: var(--wpds-dimension-size-md);
12
+ padding: 0 ($grid-unit-15 + 6px);
13
+ }
14
+
4
15
  .edit-widgets-layout__inserter-panel {
5
16
  height: 100%;
6
17
  display: flex;
@@ -6,11 +6,11 @@
6
6
  }
7
7
 
8
8
  .edit-widgets-notices.notices-inline-notices-wrapper,
9
- .edit-widgets-notices .components-notice-list {
9
+ .edit-widgets-notices .notices-inline-notices__list {
10
10
  gap: 0;
11
11
  }
12
12
 
13
- .edit-widgets-notices .components-notice {
13
+ .edit-widgets-notices .notices-inline-notices__notice {
14
14
  border-top-width: 0;
15
15
  border-inline-width: 0;
16
16
  }
@@ -8,7 +8,7 @@ import {
8
8
  } from '@wordpress/block-editor';
9
9
  import { useViewportMatch } from '@wordpress/compose';
10
10
  import { useSelect } from '@wordpress/data';
11
- import { useMemo } from '@wordpress/element';
11
+ import { useMemo, useRef } from '@wordpress/element';
12
12
  import { store as preferencesStore } from '@wordpress/preferences';
13
13
  import Notices from '../notices';
14
14
  import KeyboardShortcuts from '../keyboard-shortcuts';
@@ -25,6 +25,7 @@ export default function WidgetAreasBlockEditorContent( {
25
25
  []
26
26
  );
27
27
  const isLargeViewport = useViewportMatch( 'medium' );
28
+ const contentRef = useRef();
28
29
 
29
30
  const styles = useMemo( () => {
30
31
  return hasThemeStyles ? blockEditorSettings.styles : [];
@@ -34,14 +35,14 @@ export default function WidgetAreasBlockEditorContent( {
34
35
  <div className="edit-widgets-block-editor">
35
36
  <Notices />
36
37
  { ! isLargeViewport && <BlockToolbar hideDragHandle /> }
37
- <BlockTools>
38
+ <BlockTools __unstableContentRef={ contentRef }>
38
39
  <KeyboardShortcuts />
39
40
  <EditorStyles
40
41
  styles={ styles }
41
42
  scope=":where(.editor-styles-wrapper)"
42
43
  />
43
44
  <BlockSelectionClearer>
44
- <WritingFlow>
45
+ <WritingFlow ref={ contentRef }>
45
46
  <BlockList className="edit-widgets-main-block-list" />
46
47
  </WritingFlow>
47
48
  </BlockSelectionClearer>
package/CHANGELOG.md DELETED
@@ -1,325 +0,0 @@
1
- <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->
2
-
3
- ## Unreleased
4
-
5
- ## 6.57.0 (2026-10-07)
6
-
7
- ### Bug Fixes
8
-
9
- - Error boundary: Explicitly announce the error title and description, excluding action labels ([#82737](https://github.com/WordPress/gutenberg/pull/82737)).
10
-
11
- ## 6.56.0 (2026-09-23)
12
-
13
- ### Bug Fixes
14
-
15
- - Open the Welcome Guide from a plain menu item instead of a preference toggle, so the Options menu no longer announces "Preference activated - Welcome Guide" ([#82395](https://github.com/WordPress/gutenberg/pull/82395)).
16
-
17
- ## 6.55.0 (2026-09-10)
18
-
19
- ### Enhancements
20
-
21
- - Error boundary: Surface debugging details ([#82099](https://github.com/WordPress/gutenberg/pull/82099)).
22
- - Widget areas: Use the `layout` icon instead of the default block icon ([#61028](https://github.com/WordPress/gutenberg/issues/61028)).
23
-
24
- ### Bug Fixes
25
-
26
- - `WelcomeGuide`: Keep the modal close icon white on hover now that it is stroke-based. ([#78812](https://github.com/WordPress/gutenberg/pull/78812))
27
- - Prevent an error in `canInsertBlockInWidgetArea` when no widget area blocks are present.
28
-
29
- ### Internal
30
-
31
- - Stop passing the unused `editorTool` block editor setting; the selector that read it was removed with the Write/Design tool in [#72193](https://github.com/WordPress/gutenberg/pull/72193) ([#82677](https://github.com/WordPress/gutenberg/pull/82677)).
32
- - Remove unused dependency `@wordpress/reusable-blocks` ([#82103](https://github.com/WordPress/gutenberg/pull/82103)).
33
- - Use the `.jsx` extension for JavaScript source files that contain JSX ([#80990](https://github.com/WordPress/gutenberg/pull/80990)).
34
-
35
- ## 6.54.0 (2026-08-26)
36
-
37
- ## 6.53.0 (2026-08-12)
38
-
39
- ### Enhancements
40
-
41
- - Wrap the widgets editor layout in `ThemeProvider`, seeded with the active admin color scheme primary color ([#81173](https://github.com/WordPress/gutenberg/pull/81173)).
42
-
43
- ### Bug Fixes
44
-
45
- - Header toolbar: Fix icon button focus styles to use the design system `outset-ring__focus` mixin ([#81176](https://github.com/WordPress/gutenberg/pull/81176)).
46
-
47
- ## 6.52.0 (2026-07-29)
48
-
49
- ## 6.51.0 (2026-07-14)
50
-
51
- ### Enhancements
52
-
53
- - Widen React peer dependency ranges to `^18 || ^19` to support both React 18 and React 19 environments ([#80024](https://github.com/WordPress/gutenberg/pull/80024)).
54
-
55
- ## 6.50.0 (2026-07-01)
56
-
57
- ## 6.49.0 (2026-06-24)
58
-
59
- ## 6.48.1 (2026-06-16)
60
-
61
- ## 6.48.0 (2026-06-10)
62
-
63
- ## 6.47.0 (2026-05-27)
64
-
65
- ## 6.46.0 (2026-05-14)
66
-
67
- ## 6.45.0 (2026-04-29)
68
-
69
- ## 6.44.0 (2026-04-15)
70
-
71
- ## 6.43.0 (2026-04-01)
72
-
73
- ## 6.42.0 (2026-03-18)
74
-
75
- ## 6.41.0 (2026-03-04)
76
-
77
- ## 6.40.0 (2026-02-18)
78
-
79
- ## 6.39.0 (2026-01-29)
80
-
81
- ## 6.38.0 (2026-01-16)
82
-
83
- ## 6.36.0 (2025-11-26)
84
-
85
- ### Internal
86
-
87
- - Updated the `welcome-guide` implementation to specify its own close-button hover color, matching previous behavior after changes in the `Guide` component.
88
-
89
- ## 6.35.0 (2025-11-12)
90
-
91
- ## 6.34.0 (2025-10-29)
92
-
93
- ## 6.33.0 (2025-10-17)
94
-
95
- ## 6.32.0 (2025-10-01)
96
-
97
- ## 6.31.0 (2025-09-17)
98
-
99
- ## 6.30.0 (2025-09-03)
100
-
101
- ## 6.29.0 (2025-08-20)
102
-
103
- ## 6.28.0 (2025-08-07)
104
-
105
- ## 6.27.0 (2025-07-23)
106
-
107
- ## 6.26.0 (2025-06-25)
108
-
109
- ## 6.25.0 (2025-06-04)
110
-
111
- ## 6.24.0 (2025-05-22)
112
-
113
- ## 6.23.0 (2025-05-07)
114
-
115
- ## 6.22.0 (2025-04-11)
116
-
117
- ## 6.21.0 (2025-03-27)
118
-
119
- ## 6.20.0 (2025-03-13)
120
-
121
- ## 6.19.0 (2025-02-28)
122
-
123
- ## 6.18.0 (2025-02-12)
124
-
125
- ## 6.17.0 (2025-01-29)
126
-
127
- ## 6.16.0 (2025-01-15)
128
-
129
- ## 6.15.0 (2025-01-02)
130
-
131
- ## 6.14.0 (2024-12-11)
132
-
133
- ## 6.13.0 (2024-11-27)
134
-
135
- ## 6.12.0 (2024-11-16)
136
-
137
- ## 6.11.0 (2024-10-30)
138
-
139
- ## 6.10.0 (2024-10-16)
140
-
141
- ## 6.9.0 (2024-10-03)
142
-
143
- ## 6.8.0 (2024-09-19)
144
-
145
- ## 6.7.0 (2024-09-05)
146
-
147
- ## 6.6.0 (2024-08-21)
148
-
149
- ## 6.5.0 (2024-08-07)
150
-
151
- ## 6.4.0 (2024-07-24)
152
-
153
- ## 6.3.0 (2024-07-10)
154
-
155
- ## 6.2.0 (2024-06-26)
156
-
157
- ## 6.1.0 (2024-06-15)
158
-
159
- ## 6.0.0 (2024-05-31)
160
-
161
- ### Breaking Changes
162
-
163
- - Variables like `process.env.IS_GUTENBERG_PLUGIN` have been replaced by `globalThis.IS_GUTENBERG_PLUGIN`. Build systems using `process.env` should be updated ([#61486](https://github.com/WordPress/gutenberg/pull/61486)).
164
- - Increase the minimum required Node.js version to v18.12.0 matching long-term support releases ([#31270](https://github.com/WordPress/gutenberg/pull/61930)). Learn more about [Node.js releases](https://nodejs.org/en/about/previous-releases).
165
-
166
- ## 5.35.0 (2024-05-16)
167
-
168
- ### Internal
169
-
170
- - Replaced `classnames` package with the faster and smaller `clsx` package ([#61138](https://github.com/WordPress/gutenberg/pull/61138)).
171
-
172
- ## 5.34.0 (2024-05-02)
173
-
174
- ## 5.33.0 (2024-04-19)
175
-
176
- ## 5.32.0 (2024-04-03)
177
-
178
- ## 5.31.0 (2024-03-21)
179
-
180
- ## 5.30.0 (2024-03-06)
181
-
182
- ## 5.29.0 (2024-02-21)
183
-
184
- ## 5.28.0 (2024-02-09)
185
-
186
- ## 5.27.0 (2024-01-24)
187
-
188
- ## 5.26.0 (2024-01-10)
189
-
190
- ## 5.25.0 (2023-12-13)
191
-
192
- ## 5.24.0 (2023-11-29)
193
-
194
- ## 5.23.0 (2023-11-16)
195
-
196
- ## 5.22.0 (2023-11-02)
197
-
198
- ## 5.21.0 (2023-10-18)
199
-
200
- ## 5.20.0 (2023-10-05)
201
-
202
- ## 5.19.0 (2023-09-20)
203
-
204
- ## 5.18.0 (2023-08-31)
205
-
206
- ## 5.17.0 (2023-08-16)
207
-
208
- ## 5.16.0 (2023-08-10)
209
-
210
- ## 5.15.0 (2023-07-20)
211
-
212
- ## 5.14.0 (2023-07-05)
213
-
214
- ## 5.13.0 (2023-06-23)
215
-
216
- ## 5.12.0 (2023-06-07)
217
-
218
- ## 5.11.0 (2023-05-24)
219
-
220
- ## 5.10.0 (2023-05-10)
221
-
222
- ## 5.9.0 (2023-04-26)
223
-
224
- ## 5.8.0 (2023-04-12)
225
-
226
- ## 5.7.0 (2023-03-29)
227
-
228
- ## 5.6.0 (2023-03-15)
229
-
230
- ## 5.5.0 (2023-03-01)
231
-
232
- ## 5.4.0 (2023-02-15)
233
-
234
- ## 5.3.0 (2023-02-01)
235
-
236
- ## 5.2.0 (2023-01-11)
237
-
238
- ## 5.1.0 (2023-01-02)
239
-
240
- ## 5.0.0 (2022-12-14)
241
-
242
- ### Breaking Changes
243
-
244
- - Updated dependencies to require React 18 ([45235](https://github.com/WordPress/gutenberg/pull/45235))
245
-
246
- ## 4.19.0 (2022-11-16)
247
-
248
- ## 4.18.0 (2022-11-02)
249
-
250
- ## 4.17.0 (2022-10-19)
251
-
252
- ## 4.16.0 (2022-10-05)
253
-
254
- ## 4.15.0 (2022-09-21)
255
-
256
- ## 4.14.0 (2022-09-13)
257
-
258
- ## 4.13.0 (2022-08-24)
259
-
260
- ## 4.12.0 (2022-08-10)
261
-
262
- ## 4.11.0 (2022-07-27)
263
-
264
- ## 4.10.0 (2022-07-13)
265
-
266
- ## 4.9.0 (2022-06-29)
267
-
268
- ## 4.8.0 (2022-06-15)
269
-
270
- ## 4.7.0 (2022-06-01)
271
-
272
- ## 4.6.0 (2022-05-18)
273
-
274
- ## 4.5.0 (2022-05-04)
275
-
276
- ## 4.4.0 (2022-04-21)
277
-
278
- ## 4.3.0 (2022-04-08)
279
-
280
- ## 4.2.0 (2022-03-23)
281
-
282
- ## 4.1.0 (2022-03-11)
283
-
284
- ## 4.0.0 (2022-02-10)
285
-
286
- ### Breaking Changes
287
-
288
- - The `GUTENBERG_PHASE` environment variable has been renamed to `IS_GUTENBERG_PLUGIN` and is now a boolean ([#38202](https://github.com/WordPress/gutenberg/pull/38202)).
289
-
290
- ### Bug Fixes
291
-
292
- - Removed unused `@wordpress/a11y`, `@wordpress/server-side-render`, `rememo` and `uuid` dependencies ([#38388](https://github.com/WordPress/gutenberg/pull/38388)).
293
-
294
- ## 3.2.0 (2022-01-27)
295
-
296
- ## 3.1.0 (2021-11-07)
297
-
298
- ### Enhancements
299
-
300
- - Enable persistent List View in the widget editor [#35706](https://github.com/WordPress/gutenberg/pull/35706).
301
-
302
- ## 3.0.0 (2021-07-29)
303
-
304
- ### Breaking Changes
305
-
306
- - Upgraded React components to work with v17.0 ([#29118](https://github.com/WordPress/gutenberg/pull/29118)). There are no new features in React v17.0 as explained in the [blog post](https://reactjs.org/blog/2020/10/20/react-v17.html).
307
-
308
- ## 2.2.0 (2021-07-21)
309
-
310
- ## 2.1.0 (2021-05-20)
311
-
312
- ## 2.0.0 (2021-05-14)
313
-
314
- ### Breaking Changes
315
-
316
- - Drop support for Internet Explorer 11 ([#31110](https://github.com/WordPress/gutenberg/pull/31110)). Learn more at <https://make.wordpress.org/core/2021/04/22/ie-11-support-phase-out-plan/>.
317
- - Increase the minimum Node.js version to v12 matching Long Term Support releases ([#31270](https://github.com/WordPress/gutenberg/pull/31270)). Learn more at <https://nodejs.org/en/about/releases/>.
318
-
319
- ## 1.3.0 (2021-03-17)
320
-
321
- ## 0.1.0 (2019-03-06)
322
-
323
- ### New Features
324
-
325
- - Initial version of the package.