@wordpress/edit-widgets 6.7.0 → 6.7.1-next.1f6eadc42.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.
@@ -58,9 +58,9 @@ function Header() {
58
58
  })]
59
59
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
60
60
  className: "edit-widgets-header__actions",
61
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_saveButton.default, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_interface.PinnedItems.Slot, {
61
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_interface.PinnedItems.Slot, {
62
62
  scope: "core/edit-widgets"
63
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_moreMenu.default, {})]
63
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_saveButton.default, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_moreMenu.default, {})]
64
64
  })]
65
65
  })
66
66
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_blockEditor","require","_data","_element","_i18n","_components","_interface","_compose","_preferences","_documentTools","_interopRequireDefault","_saveButton","_moreMenu","_jsxRuntime","Header","isLargeViewport","useViewportMatch","blockToolbarRef","useRef","hasFixedToolbar","useSelect","select","preferencesStore","get","jsx","Fragment","children","jsxs","className","__","VisuallyHidden","as","default","BlockToolbar","hideDragHandle","Popover","Slot","ref","name","PinnedItems","scope","_default","exports"],"sources":["@wordpress/edit-widgets/src/components/header/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { BlockToolbar } from '@wordpress/block-editor';\nimport { useSelect } from '@wordpress/data';\nimport { useRef } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport { Popover, VisuallyHidden } from '@wordpress/components';\nimport { PinnedItems } from '@wordpress/interface';\nimport { useViewportMatch } from '@wordpress/compose';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport DocumentTools from './document-tools';\nimport SaveButton from '../save-button';\nimport MoreMenu from '../more-menu';\n\nfunction Header() {\n\tconst isLargeViewport = useViewportMatch( 'medium' );\n\tconst blockToolbarRef = useRef();\n\tconst { hasFixedToolbar } = useSelect(\n\t\t( select ) => ( {\n\t\t\thasFixedToolbar: !! select( preferencesStore ).get(\n\t\t\t\t'core/edit-widgets',\n\t\t\t\t'fixedToolbar'\n\t\t\t),\n\t\t} ),\n\t\t[]\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t<div className=\"edit-widgets-header\">\n\t\t\t\t<div className=\"edit-widgets-header__navigable-toolbar-wrapper\">\n\t\t\t\t\t{ isLargeViewport && (\n\t\t\t\t\t\t<h1 className=\"edit-widgets-header__title\">\n\t\t\t\t\t\t\t{ __( 'Widgets' ) }\n\t\t\t\t\t\t</h1>\n\t\t\t\t\t) }\n\t\t\t\t\t{ ! isLargeViewport && (\n\t\t\t\t\t\t<VisuallyHidden\n\t\t\t\t\t\t\tas=\"h1\"\n\t\t\t\t\t\t\tclassName=\"edit-widgets-header__title\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Widgets' ) }\n\t\t\t\t\t\t</VisuallyHidden>\n\t\t\t\t\t) }\n\t\t\t\t\t<DocumentTools />\n\t\t\t\t\t{ hasFixedToolbar && isLargeViewport && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<div className=\"selected-block-tools-wrapper\">\n\t\t\t\t\t\t\t\t<BlockToolbar hideDragHandle />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<Popover.Slot\n\t\t\t\t\t\t\t\tref={ blockToolbarRef }\n\t\t\t\t\t\t\t\tname=\"block-toolbar\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</>\n\t\t\t\t\t) }\n\t\t\t\t</div>\n\t\t\t\t<div className=\"edit-widgets-header__actions\">\n\t\t\t\t\t<SaveButton />\n\t\t\t\t\t<PinnedItems.Slot scope=\"core/edit-widgets\" />\n\t\t\t\t\t<MoreMenu />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,CACd,CACJ,EACC,CAAEd,eAAe,iBAClB,IAAAF,WAAA,CAAAW,GAAA,EAACnB,WAAA,CAAAyB,cAAc;UACdC,EAAE,EAAC,IAAI;UACPH,SAAS,EAAC,4BAA4B;UAAAF,QAAA,EAEpC,IAAAG,QAAE,EAAE,SAAU;QAAC,CACF,CAChB,eACD,IAAAhB,WAAA,CAAAW,GAAA,EAACf,cAAA,CAAAuB,OAAa,IAAE,CAAC,EACfb,eAAe,IAAIJ,eAAe,iBACnC,IAAAF,WAAA,CAAAc,IAAA,EAAAd,WAAA,CAAAY,QAAA;UAAAC,QAAA,gBACC,IAAAb,WAAA,CAAAW,GAAA;YAAKI,SAAS,EAAC,8BAA8B;YAAAF,QAAA,eAC5C,IAAAb,WAAA,CAAAW,GAAA,EAACxB,YAAA,CAAAiC,YAAY;cAACC,cAAc;YAAA,CAAE;UAAC,CAC3B,CAAC,eACN,IAAArB,WAAA,CAAAW,GAAA,EAACnB,WAAA,CAAA8B,OAAO,CAACC,IAAI;YACZC,GAAG,EAAGpB,eAAiB;YACvBqB,IAAI,EAAC;UAAe,CACpB,CAAC;QAAA,CACD,CACF;MAAA,CACG,CAAC,eACN,IAAAzB,WAAA,CAAAc,IAAA;QAAKC,SAAS,EAAC,8BAA8B;QAAAF,QAAA,gBAC5C,IAAAb,WAAA,CAAAW,GAAA,EAACb,WAAA,CAAAqB,OAAU,IAAE,CAAC,eACd,IAAAnB,WAAA,CAAAW,GAAA,EAAClB,UAAA,CAAAiC,WAAW,CAACH,IAAI;UAACI,KAAK,EAAC;QAAmB,CAAE,CAAC,eAC9C,IAAA3B,WAAA,CAAAW,GAAA,EAACZ,SAAA,CAAAoB,OAAQ,IAAE,CAAC;MAAA,CACR,CAAC;IAAA,CACF;EAAC,CACL,CAAC;AAEL;AAAC,IAAAS,QAAA,GAAAC,OAAA,CAAAV,OAAA,GAEclB,MAAM","ignoreList":[]}
1
+ {"version":3,"names":["_blockEditor","require","_data","_element","_i18n","_components","_interface","_compose","_preferences","_documentTools","_interopRequireDefault","_saveButton","_moreMenu","_jsxRuntime","Header","isLargeViewport","useViewportMatch","blockToolbarRef","useRef","hasFixedToolbar","useSelect","select","preferencesStore","get","jsx","Fragment","children","jsxs","className","__","VisuallyHidden","as","default","BlockToolbar","hideDragHandle","Popover","Slot","ref","name","PinnedItems","scope","_default","exports"],"sources":["@wordpress/edit-widgets/src/components/header/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { BlockToolbar } from '@wordpress/block-editor';\nimport { useSelect } from '@wordpress/data';\nimport { useRef } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport { Popover, VisuallyHidden } from '@wordpress/components';\nimport { PinnedItems } from '@wordpress/interface';\nimport { useViewportMatch } from '@wordpress/compose';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport DocumentTools from './document-tools';\nimport SaveButton from '../save-button';\nimport MoreMenu from '../more-menu';\n\nfunction Header() {\n\tconst isLargeViewport = useViewportMatch( 'medium' );\n\tconst blockToolbarRef = useRef();\n\tconst { hasFixedToolbar } = useSelect(\n\t\t( select ) => ( {\n\t\t\thasFixedToolbar: !! select( preferencesStore ).get(\n\t\t\t\t'core/edit-widgets',\n\t\t\t\t'fixedToolbar'\n\t\t\t),\n\t\t} ),\n\t\t[]\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t<div className=\"edit-widgets-header\">\n\t\t\t\t<div className=\"edit-widgets-header__navigable-toolbar-wrapper\">\n\t\t\t\t\t{ isLargeViewport && (\n\t\t\t\t\t\t<h1 className=\"edit-widgets-header__title\">\n\t\t\t\t\t\t\t{ __( 'Widgets' ) }\n\t\t\t\t\t\t</h1>\n\t\t\t\t\t) }\n\t\t\t\t\t{ ! isLargeViewport && (\n\t\t\t\t\t\t<VisuallyHidden\n\t\t\t\t\t\t\tas=\"h1\"\n\t\t\t\t\t\t\tclassName=\"edit-widgets-header__title\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Widgets' ) }\n\t\t\t\t\t\t</VisuallyHidden>\n\t\t\t\t\t) }\n\t\t\t\t\t<DocumentTools />\n\t\t\t\t\t{ hasFixedToolbar && isLargeViewport && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<div className=\"selected-block-tools-wrapper\">\n\t\t\t\t\t\t\t\t<BlockToolbar hideDragHandle />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<Popover.Slot\n\t\t\t\t\t\t\t\tref={ blockToolbarRef }\n\t\t\t\t\t\t\t\tname=\"block-toolbar\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</>\n\t\t\t\t\t) }\n\t\t\t\t</div>\n\t\t\t\t<div className=\"edit-widgets-header__actions\">\n\t\t\t\t\t<PinnedItems.Slot scope=\"core/edit-widgets\" />\n\t\t\t\t\t<SaveButton />\n\t\t\t\t\t<MoreMenu />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</>\n\t);\n}\n\nexport default Header;\n"],"mappings":";;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AAKA,IAAAQ,cAAA,GAAAC,sBAAA,CAAAT,OAAA;AACA,IAAAU,WAAA,GAAAD,sBAAA,CAAAT,OAAA;AACA,IAAAW,SAAA,GAAAF,sBAAA,CAAAT,OAAA;AAAoC,IAAAY,WAAA,GAAAZ,OAAA;AAjBpC;AACA;AACA;;AAUA;AACA;AACA;;AAKA,SAASa,MAAMA,CAAA,EAAG;EACjB,MAAMC,eAAe,GAAG,IAAAC,yBAAgB,EAAE,QAAS,CAAC;EACpD,MAAMC,eAAe,GAAG,IAAAC,eAAM,EAAC,C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CACpB,CAAC;QAAA,CACD,CACF;MAAA,CACG,CAAC,eACN,IAAAzB,WAAA,CAAAc,IAAA;QAAKC,SAAS,EAAC,8BAA8B;QAAAF,QAAA,gBAC5C,IAAAb,WAAA,CAAAW,GAAA,EAAClB,UAAA,CAAAiC,WAAW,CAACH,IAAI;UAACI,KAAK,EAAC;QAAmB,CAAE,CAAC,eAC9C,IAAA3B,WAAA,CAAAW,GAAA,EAACb,WAAA,CAAAqB,OAAU,IAAE,CAAC,eACd,IAAAnB,WAAA,CAAAW,GAAA,EAACZ,SAAA,CAAAoB,OAAQ,IAAE,CAAC;MAAA,CACR,CAAC;IAAA,CACF;EAAC,CACL,CAAC;AAEL;AAAC,IAAAS,QAAA,GAAAC,OAAA,CAAAV,OAAA,GAEclB,MAAM","ignoreList":[]}
@@ -52,9 +52,9 @@ function Header() {
52
52
  })]
53
53
  }), /*#__PURE__*/_jsxs("div", {
54
54
  className: "edit-widgets-header__actions",
55
- children: [/*#__PURE__*/_jsx(SaveButton, {}), /*#__PURE__*/_jsx(PinnedItems.Slot, {
55
+ children: [/*#__PURE__*/_jsx(PinnedItems.Slot, {
56
56
  scope: "core/edit-widgets"
57
- }), /*#__PURE__*/_jsx(MoreMenu, {})]
57
+ }), /*#__PURE__*/_jsx(SaveButton, {}), /*#__PURE__*/_jsx(MoreMenu, {})]
58
58
  })]
59
59
  })
60
60
  });
@@ -1 +1 @@
1
- {"version":3,"names":["BlockToolbar","useSelect","useRef","__","Popover","VisuallyHidden","PinnedItems","useViewportMatch","store","preferencesStore","DocumentTools","SaveButton","MoreMenu","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","Header","isLargeViewport","blockToolbarRef","hasFixedToolbar","select","get","children","className","as","hideDragHandle","Slot","ref","name","scope"],"sources":["@wordpress/edit-widgets/src/components/header/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { BlockToolbar } from '@wordpress/block-editor';\nimport { useSelect } from '@wordpress/data';\nimport { useRef } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport { Popover, VisuallyHidden } from '@wordpress/components';\nimport { PinnedItems } from '@wordpress/interface';\nimport { useViewportMatch } from '@wordpress/compose';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport DocumentTools from './document-tools';\nimport SaveButton from '../save-button';\nimport MoreMenu from '../more-menu';\n\nfunction Header() {\n\tconst isLargeViewport = useViewportMatch( 'medium' );\n\tconst blockToolbarRef = useRef();\n\tconst { hasFixedToolbar } = useSelect(\n\t\t( select ) => ( {\n\t\t\thasFixedToolbar: !! select( preferencesStore ).get(\n\t\t\t\t'core/edit-widgets',\n\t\t\t\t'fixedToolbar'\n\t\t\t),\n\t\t} ),\n\t\t[]\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t<div className=\"edit-widgets-header\">\n\t\t\t\t<div className=\"edit-widgets-header__navigable-toolbar-wrapper\">\n\t\t\t\t\t{ isLargeViewport && (\n\t\t\t\t\t\t<h1 className=\"edit-widgets-header__title\">\n\t\t\t\t\t\t\t{ __( 'Widgets' ) }\n\t\t\t\t\t\t</h1>\n\t\t\t\t\t) }\n\t\t\t\t\t{ ! isLargeViewport && (\n\t\t\t\t\t\t<VisuallyHidden\n\t\t\t\t\t\t\tas=\"h1\"\n\t\t\t\t\t\t\tclassName=\"edit-widgets-header__title\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Widgets' ) }\n\t\t\t\t\t\t</VisuallyHidden>\n\t\t\t\t\t) }\n\t\t\t\t\t<DocumentTools />\n\t\t\t\t\t{ hasFixedToolbar && isLargeViewport && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<div className=\"selected-block-tools-wrapper\">\n\t\t\t\t\t\t\t\t<BlockToolbar hideDragHandle />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<Popover.Slot\n\t\t\t\t\t\t\t\tref={ blockToolbarRef }\n\t\t\t\t\t\t\t\tname=\"block-toolbar\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</>\n\t\t\t\t\t) }\n\t\t\t\t</div>\n\t\t\t\t<div className=\"edit-widgets-header__actions\">\n\t\t\t\t\t<SaveButton />\n\t\t\t\t\t<PinnedItems.Slot scope=\"core/edit-widgets\" />\n\t\t\t\t\t<MoreMenu />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</>\n\t);\n}\n\nexport default Header;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,YAAY,QAAQ,yBAAyB;AACtD,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,MAAM,QAAQ,oBAAoB;AAC3C,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,OAAO,EAAEC,cAAc,QAAQ,uBAAuB;AAC/D,SAASC,WAAW,QAAQ,sBAAsB;AAClD,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,KAAK,IAAIC,gBAAgB,QAAQ,wBAAwB;;AAElE;AACA;AACA;AACA,OAAOC,aAAa,MAAM,kBAAkB;AAC5C,OAAOC,UAAU,MAAM,gBAAgB;AACvC,OAAOC,QAAQ,MAAM,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAEpC,SAASC,MAAMA,CAAA,EAAG;EACjB,MAAMC,eAAe,GAAGb,gBAAgB,CAAE,QAAS,CAAC;EACpD,MAAMc,eAAe,GAAGnB,MAAM,CAAC,CAAC;EAChC,MAAM;IAAEoB;EAAgB,CAAC,GAAGrB,SAAS,CAClCsB,MAAM,KAAQ;IACfD,eAAe,EAAE,CAAC,CAAEC,MAAM,CAAEd,gBAAiB,CAAC,CAACe,GAAG,CACjD,mBAAmB,EACnB,cACD;EACD,CAAC,CAAE,EACH,EACD,CAAC;EAED,oBACCV,IAAA,CAAAE,SAAA;IAAAS,QAAA,eACCP,KAAA;MAAKQ,SAAS,EAAC,qBAAqB;MAAAD,QAAA,gBACnCP,KAAA;QAAKQ,SAAS,EAAC,gDAAgD;QAAAD,QAAA,GAC5DL,eAAe,iBAChBN,IAAA;UAAIY,SAAS,EAAC,4BAA4B;UAAAD,QAAA,EACvCtB,EAAE,CAAE,SAAU;QAAC,CACd,CACJ,EACC,CAAEiB,eAAe,iBAClBN,IAAA,CAACT,cAAc;UACdsB,EAAE,EAAC,IAAI;UACPD,SAAS,EAAC,4BAA4B;UAAAD,QAAA,EAEpCtB,EAAE,CAAE,SAAU;QAAC,CACF,CAChB,eACDW,IAAA,CAACJ,aAAa,IAAE,CAAC,EACfY,eAAe,IAAIF,eAAe,iBACnCF,KAAA,CAAAF,SAAA;UAAAS,QAAA,gBACCX,IAAA;YAAKY,SAAS,EAAC,8BAA8B;YAAAD,QAAA,eAC5CX,IAAA,CAACd,YAAY;cAAC4B,cAAc;YAAA,CAAE;UAAC,CAC3B,CAAC,eACNd,IAAA,CAACV,OAAO,CAACyB,IAAI;YACZC,GAAG,EAAGT,eAAiB;YACvBU,IAAI,EAAC;UAAe,CACpB,CAAC;QAAA,CACD,CACF;MAAA,CACG,CAAC,eACNb,KAAA;QAAKQ,SAAS,EAAC,8BAA8B;QAAAD,QAAA,gBAC5CX,IAAA,CAACH,UAAU,IAAE,CAAC,eACdG,IAAA,CAACR,WAAW,CAACuB,IAAI;UAACG,KAAK,EAAC;QAAmB,CAAE,CAAC,eAC9ClB,IAAA,CAACF,QAAQ,IAAE,CAAC;MAAA,CACR,CAAC;IAAA,CACF;EAAC,CACL,CAAC;AAEL;AAEA,eAAeO,MAAM","ignoreList":[]}
1
+ {"version":3,"names":["BlockToolbar","useSelect","useRef","__","Popover","VisuallyHidden","PinnedItems","useViewportMatch","store","preferencesStore","DocumentTools","SaveButton","MoreMenu","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","Header","isLargeViewport","blockToolbarRef","hasFixedToolbar","select","get","children","className","as","hideDragHandle","Slot","ref","name","scope"],"sources":["@wordpress/edit-widgets/src/components/header/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { BlockToolbar } from '@wordpress/block-editor';\nimport { useSelect } from '@wordpress/data';\nimport { useRef } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport { Popover, VisuallyHidden } from '@wordpress/components';\nimport { PinnedItems } from '@wordpress/interface';\nimport { useViewportMatch } from '@wordpress/compose';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport DocumentTools from './document-tools';\nimport SaveButton from '../save-button';\nimport MoreMenu from '../more-menu';\n\nfunction Header() {\n\tconst isLargeViewport = useViewportMatch( 'medium' );\n\tconst blockToolbarRef = useRef();\n\tconst { hasFixedToolbar } = useSelect(\n\t\t( select ) => ( {\n\t\t\thasFixedToolbar: !! select( preferencesStore ).get(\n\t\t\t\t'core/edit-widgets',\n\t\t\t\t'fixedToolbar'\n\t\t\t),\n\t\t} ),\n\t\t[]\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t<div className=\"edit-widgets-header\">\n\t\t\t\t<div className=\"edit-widgets-header__navigable-toolbar-wrapper\">\n\t\t\t\t\t{ isLargeViewport && (\n\t\t\t\t\t\t<h1 className=\"edit-widgets-header__title\">\n\t\t\t\t\t\t\t{ __( 'Widgets' ) }\n\t\t\t\t\t\t</h1>\n\t\t\t\t\t) }\n\t\t\t\t\t{ ! isLargeViewport && (\n\t\t\t\t\t\t<VisuallyHidden\n\t\t\t\t\t\t\tas=\"h1\"\n\t\t\t\t\t\t\tclassName=\"edit-widgets-header__title\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Widgets' ) }\n\t\t\t\t\t\t</VisuallyHidden>\n\t\t\t\t\t) }\n\t\t\t\t\t<DocumentTools />\n\t\t\t\t\t{ hasFixedToolbar && isLargeViewport && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<div className=\"selected-block-tools-wrapper\">\n\t\t\t\t\t\t\t\t<BlockToolbar hideDragHandle />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<Popover.Slot\n\t\t\t\t\t\t\t\tref={ blockToolbarRef }\n\t\t\t\t\t\t\t\tname=\"block-toolbar\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</>\n\t\t\t\t\t) }\n\t\t\t\t</div>\n\t\t\t\t<div className=\"edit-widgets-header__actions\">\n\t\t\t\t\t<PinnedItems.Slot scope=\"core/edit-widgets\" />\n\t\t\t\t\t<SaveButton />\n\t\t\t\t\t<MoreMenu />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</>\n\t);\n}\n\nexport default Header;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,YAAY,QAAQ,yBAAyB;AACtD,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,MAAM,QAAQ,oBAAoB;AAC3C,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,OAAO,EAAEC,cAAc,QAAQ,uBAAuB;AAC/D,SAASC,WAAW,QAAQ,sBAAsB;AAClD,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,KAAK,IAAIC,gBAAgB,QAAQ,wBAAwB;;AAElE;AACA;AACA;AACA,OAAOC,aAAa,MAAM,kBAAkB;AAC5C,OAAOC,UAAU,MAAM,gBAAgB;AACvC,OAAOC,QAAQ,MAAM,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAEpC,SAASC,MAAMA,CAAA,EAAG;EACjB,MAAMC,eAAe,GAAGb,gBAAgB,CAAE,QAAS,CAAC;EACpD,MAAMc,eAAe,GAAGnB,MAAM,CAAC,CAAC;EAChC,MAAM;IAAEoB;EAAgB,CAAC,GAAGrB,SAAS,CAClCsB,MAAM,KAAQ;IACfD,eAAe,EAAE,CAAC,CAAEC,MAAM,CAAEd,gBAAiB,CAAC,CAACe,GAAG,CACjD,mBAAmB,EACnB,cACD;EACD,CAAC,CAAE,EACH,EACD,CAAC;EAED,oBACCV,IAAA,CAAAE,SAAA;IAAAS,QAAA,eACCP,KAAA;MAAKQ,SAAS,EAAC,qBAAqB;MAAAD,QAAA,gBACnCP,KAAA;QAAKQ,SAAS,EAAC,gDAAgD;QAAAD,QAAA,GAC5DL,eAAe,iBAChBN,IAAA;UAAIY,SAAS,EAAC,4BAA4B;UAAAD,QAAA,EACvCtB,EAAE,CAAE,SAAU;QAAC,CACd,CACJ,EACC,CAAEiB,eAAe,iBAClBN,IAAA,CAACT,cAAc;UACdsB,EAAE,EAAC,IAAI;UACPD,SAAS,EAAC,4BAA4B;UAAAD,QAAA,EAEpCtB,EAAE,CAAE,SAAU;QAAC,CACF,CAChB,eACDW,IAAA,CAACJ,aAAa,IAAE,CAAC,EACfY,eAAe,IAAIF,eAAe,iBACnCF,KAAA,CAAAF,SAAA;UAAAS,QAAA,gBACCX,IAAA;YAAKY,SAAS,EAAC,8BAA8B;YAAAD,QAAA,eAC5CX,IAAA,CAACd,YAAY;cAAC4B,cAAc;YAAA,CAAE;UAAC,CAC3B,CAAC,eACNd,IAAA,CAACV,OAAO,CAACyB,IAAI;YACZC,GAAG,EAAGT,eAAiB;YACvBU,IAAI,EAAC;UAAe,CACpB,CAAC;QAAA,CACD,CACF;MAAA,CACG,CAAC,eACNb,KAAA;QAAKQ,SAAS,EAAC,8BAA8B;QAAAD,QAAA,gBAC5CX,IAAA,CAACR,WAAW,CAACuB,IAAI;UAACG,KAAK,EAAC;QAAmB,CAAE,CAAC,eAC9ClB,IAAA,CAACH,UAAU,IAAE,CAAC,eACdG,IAAA,CAACF,QAAQ,IAAE,CAAC;MAAA,CACR,CAAC;IAAA,CACF;EAAC,CACL,CAAC;AAEL;AAEA,eAAeO,MAAM","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-widgets",
3
- "version": "6.7.0",
3
+ "version": "6.7.1-next.1f6eadc42.0",
4
4
  "description": "Widgets Page module for WordPress..",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -28,32 +28,32 @@
28
28
  "react-native": "src/index",
29
29
  "dependencies": {
30
30
  "@babel/runtime": "^7.16.0",
31
- "@wordpress/api-fetch": "^7.7.0",
32
- "@wordpress/block-editor": "^14.2.0",
33
- "@wordpress/block-library": "^9.7.0",
34
- "@wordpress/blocks": "^13.7.0",
35
- "@wordpress/components": "^28.7.0",
36
- "@wordpress/compose": "^7.7.0",
37
- "@wordpress/core-data": "^7.7.0",
38
- "@wordpress/data": "^10.7.0",
39
- "@wordpress/deprecated": "^4.7.0",
40
- "@wordpress/dom": "^4.7.0",
41
- "@wordpress/element": "^6.7.0",
42
- "@wordpress/hooks": "^4.7.0",
43
- "@wordpress/i18n": "^5.7.0",
44
- "@wordpress/icons": "^10.7.0",
45
- "@wordpress/interface": "^6.7.0",
46
- "@wordpress/keyboard-shortcuts": "^5.7.0",
47
- "@wordpress/keycodes": "^4.7.0",
48
- "@wordpress/media-utils": "^5.7.0",
49
- "@wordpress/notices": "^5.7.0",
50
- "@wordpress/patterns": "^2.7.0",
51
- "@wordpress/plugins": "^7.7.0",
52
- "@wordpress/preferences": "^4.7.0",
53
- "@wordpress/private-apis": "^1.7.0",
54
- "@wordpress/reusable-blocks": "^5.7.0",
55
- "@wordpress/url": "^4.7.0",
56
- "@wordpress/widgets": "^4.7.0",
31
+ "@wordpress/api-fetch": "^7.7.1-next.1f6eadc42.0",
32
+ "@wordpress/block-editor": "^14.2.1-next.1f6eadc42.0",
33
+ "@wordpress/block-library": "^9.7.1-next.1f6eadc42.0",
34
+ "@wordpress/blocks": "^13.7.1-next.1f6eadc42.0",
35
+ "@wordpress/components": "^28.8.1-next.1f6eadc42.0",
36
+ "@wordpress/compose": "^7.8.1-next.1f6eadc42.0",
37
+ "@wordpress/core-data": "^7.7.1-next.1f6eadc42.0",
38
+ "@wordpress/data": "^10.7.1-next.1f6eadc42.0",
39
+ "@wordpress/deprecated": "^4.7.1-next.1f6eadc42.0",
40
+ "@wordpress/dom": "^4.7.1-next.1f6eadc42.0",
41
+ "@wordpress/element": "^6.7.1-next.1f6eadc42.0",
42
+ "@wordpress/hooks": "^4.7.1-next.1f6eadc42.0",
43
+ "@wordpress/i18n": "^5.7.1-next.1f6eadc42.0",
44
+ "@wordpress/icons": "^10.7.1-next.1f6eadc42.0",
45
+ "@wordpress/interface": "^6.7.1-next.1f6eadc42.0",
46
+ "@wordpress/keyboard-shortcuts": "^5.7.1-next.1f6eadc42.0",
47
+ "@wordpress/keycodes": "^4.7.1-next.1f6eadc42.0",
48
+ "@wordpress/media-utils": "^5.8.1-next.1f6eadc42.0",
49
+ "@wordpress/notices": "^5.7.1-next.1f6eadc42.0",
50
+ "@wordpress/patterns": "^2.7.1-next.1f6eadc42.0",
51
+ "@wordpress/plugins": "^7.7.1-next.1f6eadc42.0",
52
+ "@wordpress/preferences": "^4.7.1-next.1f6eadc42.0",
53
+ "@wordpress/private-apis": "^1.7.1-next.1f6eadc42.0",
54
+ "@wordpress/reusable-blocks": "^5.7.1-next.1f6eadc42.0",
55
+ "@wordpress/url": "^4.7.1-next.1f6eadc42.0",
56
+ "@wordpress/widgets": "^4.7.1-next.1f6eadc42.0",
57
57
  "clsx": "^2.1.1"
58
58
  },
59
59
  "peerDependencies": {
@@ -63,5 +63,5 @@
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "c90d920de07c53dff82c5914635b56fafa503b7f"
66
+ "gitHead": "960a22b909c9fdbc90e7435b7ba8947b9218837a"
67
67
  }
@@ -61,8 +61,8 @@ function Header() {
61
61
  ) }
62
62
  </div>
63
63
  <div className="edit-widgets-header__actions">
64
- <SaveButton />
65
64
  <PinnedItems.Slot scope="core/edit-widgets" />
65
+ <SaveButton />
66
66
  <MoreMenu />
67
67
  </div>
68
68
  </div>