@wordpress/customize-widgets 4.28.5 → 4.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 4.30.0 (2024-03-06)
6
+
7
+ ## 4.29.0 (2024-02-21)
8
+
5
9
  ## 4.28.0 (2024-02-09)
6
10
 
7
11
  ## 4.27.0 (2024-01-24)
@@ -12,7 +12,6 @@ var _i18n = require("@wordpress/i18n");
12
12
  var _icons = require("@wordpress/icons");
13
13
  var _keycodes = require("@wordpress/keycodes");
14
14
  var _keyboardShortcuts = require("@wordpress/keyboard-shortcuts");
15
- var _interface = require("@wordpress/interface");
16
15
  var _preferences = require("@wordpress/preferences");
17
16
  var _keyboardShortcutHelpModal = _interopRequireDefault(require("../keyboard-shortcut-help-modal"));
18
17
  /**
@@ -27,8 +26,17 @@ function MoreMenu() {
27
26
  const [isKeyboardShortcutsModalActive, setIsKeyboardShortcutsModalVisible] = (0, _element.useState)(false);
28
27
  const toggleKeyboardShortcutsModal = () => setIsKeyboardShortcutsModalVisible(!isKeyboardShortcutsModalActive);
29
28
  (0, _keyboardShortcuts.useShortcut)('core/customize-widgets/keyboard-shortcuts', toggleKeyboardShortcutsModal);
30
- return (0, _react.createElement)(_react.Fragment, null, (0, _react.createElement)(_interface.MoreMenuDropdown, {
31
- as: _components.ToolbarDropdownMenu
29
+ return (0, _react.createElement)(_react.Fragment, null, (0, _react.createElement)(_components.ToolbarDropdownMenu, {
30
+ icon: _icons.moreVertical,
31
+ label: (0, _i18n.__)('Options'),
32
+ popoverProps: {
33
+ placement: 'bottom-end',
34
+ className: 'more-menu-dropdown__content'
35
+ },
36
+ toggleProps: {
37
+ tooltipPosition: 'bottom',
38
+ size: 'compact'
39
+ }
32
40
  }, () => (0, _react.createElement)(_react.Fragment, null, (0, _react.createElement)(_components.MenuGroup, {
33
41
  label: (0, _i18n._x)('View', 'noun')
34
42
  }, (0, _react.createElement)(_preferences.PreferenceToggleMenuItem, {
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","_element","_i18n","_icons","_keycodes","_keyboardShortcuts","_interface","_preferences","_keyboardShortcutHelpModal","_interopRequireDefault","MoreMenu","isKeyboardShortcutsModalActive","setIsKeyboardShortcutsModalVisible","useState","toggleKeyboardShortcutsModal","useShortcut","_react","createElement","Fragment","MoreMenuDropdown","as","ToolbarDropdownMenu","MenuGroup","label","_x","PreferenceToggleMenuItem","scope","name","__","info","messageActivated","messageDeactivated","MenuItem","onClick","shortcut","displayShortcut","access","role","icon","external","href","target","rel","VisuallyHidden","default","isModalActive","toggleModal"],"sources":["@wordpress/customize-widgets/src/components/more-menu/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tMenuGroup,\n\tMenuItem,\n\tToolbarDropdownMenu,\n\tVisuallyHidden,\n} from '@wordpress/components';\nimport { useState } from '@wordpress/element';\nimport { __, _x } from '@wordpress/i18n';\nimport { external } from '@wordpress/icons';\nimport { displayShortcut } from '@wordpress/keycodes';\nimport { useShortcut } from '@wordpress/keyboard-shortcuts';\nimport { MoreMenuDropdown } from '@wordpress/interface';\nimport { PreferenceToggleMenuItem } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport KeyboardShortcutHelpModal from '../keyboard-shortcut-help-modal';\n\nexport default function MoreMenu() {\n\tconst [\n\t\tisKeyboardShortcutsModalActive,\n\t\tsetIsKeyboardShortcutsModalVisible,\n\t] = useState( false );\n\tconst toggleKeyboardShortcutsModal = () =>\n\t\tsetIsKeyboardShortcutsModalVisible( ! isKeyboardShortcutsModalActive );\n\n\tuseShortcut(\n\t\t'core/customize-widgets/keyboard-shortcuts',\n\t\ttoggleKeyboardShortcutsModal\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t<MoreMenuDropdown as={ ToolbarDropdownMenu }>\n\t\t\t\t{ () => (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<MenuGroup label={ _x( 'View', 'noun' ) }>\n\t\t\t\t\t\t\t<PreferenceToggleMenuItem\n\t\t\t\t\t\t\t\tscope=\"core/customize-widgets\"\n\t\t\t\t\t\t\t\tname=\"fixedToolbar\"\n\t\t\t\t\t\t\t\tlabel={ __( 'Top toolbar' ) }\n\t\t\t\t\t\t\t\tinfo={ __(\n\t\t\t\t\t\t\t\t\t'Access all block and document tools in a single place'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tmessageActivated={ __(\n\t\t\t\t\t\t\t\t\t'Top toolbar activated'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tmessageDeactivated={ __(\n\t\t\t\t\t\t\t\t\t'Top toolbar deactivated'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t\t<MenuGroup label={ __( 'Tools' ) }>\n\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\tsetIsKeyboardShortcutsModalVisible( true );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tshortcut={ displayShortcut.access( 'h' ) }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Keyboard shortcuts' ) }\n\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t<PreferenceToggleMenuItem\n\t\t\t\t\t\t\t\tscope=\"core/customize-widgets\"\n\t\t\t\t\t\t\t\tname=\"welcomeGuide\"\n\t\t\t\t\t\t\t\tlabel={ __( 'Welcome Guide' ) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\trole=\"menuitem\"\n\t\t\t\t\t\t\t\ticon={ external }\n\t\t\t\t\t\t\t\thref={ __(\n\t\t\t\t\t\t\t\t\t'https://wordpress.org/documentation/article/block-based-widgets-editor/'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Help' ) }\n\t\t\t\t\t\t\t\t<VisuallyHidden as=\"span\">\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t/* translators: accessibility text */\n\t\t\t\t\t\t\t\t\t\t__( '(opens in a new tab)' )\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</VisuallyHidden>\n\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t\t<MenuGroup label={ __( 'Preferences' ) }>\n\t\t\t\t\t\t\t<PreferenceToggleMenuItem\n\t\t\t\t\t\t\t\tscope=\"core/customize-widgets\"\n\t\t\t\t\t\t\t\tname=\"keepCaretInsideBlock\"\n\t\t\t\t\t\t\t\tlabel={ __(\n\t\t\t\t\t\t\t\t\t'Contain text cursor inside block'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tinfo={ __(\n\t\t\t\t\t\t\t\t\t'Aids screen readers by stopping text caret from leaving blocks.'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tmessageActivated={ __(\n\t\t\t\t\t\t\t\t\t'Contain text cursor inside block activated'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tmessageDeactivated={ __(\n\t\t\t\t\t\t\t\t\t'Contain text cursor inside block deactivated'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t</MoreMenuDropdown>\n\t\t\t<KeyboardShortcutHelpModal\n\t\t\t\tisModalActive={ isKeyboardShortcutsModalActive }\n\t\t\t\ttoggleModal={ toggleKeyboardShortcutsModal }\n\t\t\t/>\n\t\t</>\n\t);\n}\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA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C,IAAI,EAAG,IAAAD,QAAE,EACR,iEACD,CAAG;IACHE,gBAAgB,EAAG,IAAAF,QAAE,EACpB,4CACD,CAAG;IACHG,kBAAkB,EAAG,IAAAH,QAAE,EACtB,8CACD;EAAG,CACH,CACS,CACV,CAEc,CAAC,EACnB,IAAAZ,MAAA,CAAAC,aAAA,EAACT,0BAAA,CAAAoC,OAAyB;IACzBC,aAAa,EAAGlC,8BAAgC;IAChDmC,WAAW,EAAGhC;EAA8B,CAC5C,CACA,CAAC;AAEL"}
1
+ {"version":3,"names":["_components","require","_element","_i18n","_icons","_keycodes","_keyboardShortcuts","_preferences","_keyboardShortcutHelpModal","_interopRequireDefault","MoreMenu","isKeyboardShortcutsModalActive","setIsKeyboardShortcutsModalVisible","useState","toggleKeyboardShortcutsModal","useShortcut","_react","createElement","Fragment","ToolbarDropdownMenu","icon","moreVertical","label","__","popoverProps","placement","className","toggleProps","tooltipPosition","size","MenuGroup","_x","PreferenceToggleMenuItem","scope","name","info","messageActivated","messageDeactivated","MenuItem","onClick","shortcut","displayShortcut","access","role","external","href","target","rel","VisuallyHidden","as","default","isModalActive","toggleModal"],"sources":["@wordpress/customize-widgets/src/components/more-menu/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tMenuGroup,\n\tMenuItem,\n\tToolbarDropdownMenu,\n\tVisuallyHidden,\n} from '@wordpress/components';\nimport { useState } from '@wordpress/element';\nimport { __, _x } from '@wordpress/i18n';\nimport { external, moreVertical } from '@wordpress/icons';\nimport { displayShortcut } from '@wordpress/keycodes';\nimport { useShortcut } from '@wordpress/keyboard-shortcuts';\nimport { PreferenceToggleMenuItem } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport KeyboardShortcutHelpModal from '../keyboard-shortcut-help-modal';\n\nexport default function MoreMenu() {\n\tconst [\n\t\tisKeyboardShortcutsModalActive,\n\t\tsetIsKeyboardShortcutsModalVisible,\n\t] = useState( false );\n\tconst toggleKeyboardShortcutsModal = () =>\n\t\tsetIsKeyboardShortcutsModalVisible( ! isKeyboardShortcutsModalActive );\n\n\tuseShortcut(\n\t\t'core/customize-widgets/keyboard-shortcuts',\n\t\ttoggleKeyboardShortcutsModal\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t<ToolbarDropdownMenu\n\t\t\t\ticon={ moreVertical }\n\t\t\t\tlabel={ __( 'Options' ) }\n\t\t\t\tpopoverProps={ {\n\t\t\t\t\tplacement: 'bottom-end',\n\t\t\t\t\tclassName: 'more-menu-dropdown__content',\n\t\t\t\t} }\n\t\t\t\ttoggleProps={ {\n\t\t\t\t\ttooltipPosition: 'bottom',\n\t\t\t\t\tsize: 'compact',\n\t\t\t\t} }\n\t\t\t>\n\t\t\t\t{ () => (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<MenuGroup label={ _x( 'View', 'noun' ) }>\n\t\t\t\t\t\t\t<PreferenceToggleMenuItem\n\t\t\t\t\t\t\t\tscope=\"core/customize-widgets\"\n\t\t\t\t\t\t\t\tname=\"fixedToolbar\"\n\t\t\t\t\t\t\t\tlabel={ __( 'Top toolbar' ) }\n\t\t\t\t\t\t\t\tinfo={ __(\n\t\t\t\t\t\t\t\t\t'Access all block and document tools in a single place'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tmessageActivated={ __(\n\t\t\t\t\t\t\t\t\t'Top toolbar activated'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tmessageDeactivated={ __(\n\t\t\t\t\t\t\t\t\t'Top toolbar deactivated'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t\t<MenuGroup label={ __( 'Tools' ) }>\n\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\tsetIsKeyboardShortcutsModalVisible( true );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tshortcut={ displayShortcut.access( 'h' ) }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Keyboard shortcuts' ) }\n\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t<PreferenceToggleMenuItem\n\t\t\t\t\t\t\t\tscope=\"core/customize-widgets\"\n\t\t\t\t\t\t\t\tname=\"welcomeGuide\"\n\t\t\t\t\t\t\t\tlabel={ __( 'Welcome Guide' ) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\trole=\"menuitem\"\n\t\t\t\t\t\t\t\ticon={ external }\n\t\t\t\t\t\t\t\thref={ __(\n\t\t\t\t\t\t\t\t\t'https://wordpress.org/documentation/article/block-based-widgets-editor/'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Help' ) }\n\t\t\t\t\t\t\t\t<VisuallyHidden as=\"span\">\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t/* translators: accessibility text */\n\t\t\t\t\t\t\t\t\t\t__( '(opens in a new tab)' )\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</VisuallyHidden>\n\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t\t<MenuGroup label={ __( 'Preferences' ) }>\n\t\t\t\t\t\t\t<PreferenceToggleMenuItem\n\t\t\t\t\t\t\t\tscope=\"core/customize-widgets\"\n\t\t\t\t\t\t\t\tname=\"keepCaretInsideBlock\"\n\t\t\t\t\t\t\t\tlabel={ __(\n\t\t\t\t\t\t\t\t\t'Contain text cursor inside block'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tinfo={ __(\n\t\t\t\t\t\t\t\t\t'Aids screen readers by stopping text caret from leaving blocks.'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tmessageActivated={ __(\n\t\t\t\t\t\t\t\t\t'Contain text cursor inside block activated'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tmessageDeactivated={ __(\n\t\t\t\t\t\t\t\t\t'Contain text cursor inside block deactivated'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t</ToolbarDropdownMenu>\n\t\t\t<KeyboardShortcutHelpModal\n\t\t\t\tisModalActive={ isKeyboardShortcutsModalActive }\n\t\t\t\ttoggleModal={ toggleKeyboardShortcutsModal }\n\t\t\t/>\n\t\t</>\n\t);\n}\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AAMA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAKA,IAAAO,0BAAA,GAAAC,sBAAA,CAAAR,OAAA;AAnBA;AACA;AACA;;AAcA;AACA;AACA;;AAGe,SAASS,QAAQA,CAAA,EAAG;EAClC,MAAM,CACLC,8BAA8B,EAC9BC,kCAAkC,CAClC,GAAG,IAAAC,iBAAQ,EAAE,KAAM,CAAC;EACrB,MAAMC,4BAA4B,GAAGA,CAAA,KACpCF,kCAAkC,CAAE,CAAED,8BAA+B,CAAC;EAEvE,IAAAI,8BAAW,EACV,2CAA2C,EAC3CD,4BACD,CAAC;EAED,OACC,IAAAE,MAAA,CAAAC,aAAA,EAAAD,MAAA,CAAAE,QAAA,QACC,IAAAF,MAAA,CAAAC,aAAA,EAACjB,WAAA,CAAAmB,mBAAmB;IACnBC,IAAI,EAAGC,mBAAc;IACrBC,KAAK,EAAG,IAAAC,QAAE,EAAE,SAAU,CAAG;IAC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A,EAACjB,WAAA,CAAAsC,QAAQ;IACRK,IAAI,EAAC,UAAU;IACfvB,IAAI,EAAGwB,eAAU;IACjBC,IAAI,EAAG,IAAAtB,QAAE,EACR,yEACD,CAAG;IACHuB,MAAM,EAAC,QAAQ;IACfC,GAAG,EAAC;EAAqB,GAEvB,IAAAxB,QAAE,EAAE,MAAO,CAAC,EACd,IAAAP,MAAA,CAAAC,aAAA,EAACjB,WAAA,CAAAgD,cAAc;IAACC,EAAE,EAAC;EAAM,GAEvB;EACA,IAAA1B,QAAE,EAAE,sBAAuB,CAEb,CACP,CACA,CAAC,EACZ,IAAAP,MAAA,CAAAC,aAAA,EAACjB,WAAA,CAAA8B,SAAS;IAACR,KAAK,EAAG,IAAAC,QAAE,EAAE,aAAc;EAAG,GACvC,IAAAP,MAAA,CAAAC,aAAA,EAACV,YAAA,CAAAyB,wBAAwB;IACxBC,KAAK,EAAC,wBAAwB;IAC9BC,IAAI,EAAC,sBAAsB;IAC3BZ,KAAK,EAAG,IAAAC,QAAE,EACT,kCACD,CAAG;IACHY,IAAI,EAAG,IAAAZ,QAAE,EACR,iEACD,CAAG;IACHa,gBAAgB,EAAG,IAAAb,QAAE,EACpB,4CACD,CAAG;IACHc,kBAAkB,EAAG,IAAAd,QAAE,EACtB,8CACD;EAAG,CACH,CACS,CACV,CAEiB,CAAC,EACtB,IAAAP,MAAA,CAAAC,aAAA,EAACT,0BAAA,CAAA0C,OAAyB;IACzBC,aAAa,EAAGxC,8BAAgC;IAChDyC,WAAW,EAAGtC;EAA8B,CAC5C,CACA,CAAC;AAEL"}
@@ -5,10 +5,9 @@ import { createElement, Fragment } from "react";
5
5
  import { MenuGroup, MenuItem, ToolbarDropdownMenu, VisuallyHidden } from '@wordpress/components';
6
6
  import { useState } from '@wordpress/element';
7
7
  import { __, _x } from '@wordpress/i18n';
8
- import { external } from '@wordpress/icons';
8
+ import { external, moreVertical } from '@wordpress/icons';
9
9
  import { displayShortcut } from '@wordpress/keycodes';
10
10
  import { useShortcut } from '@wordpress/keyboard-shortcuts';
11
- import { MoreMenuDropdown } from '@wordpress/interface';
12
11
  import { PreferenceToggleMenuItem } from '@wordpress/preferences';
13
12
 
14
13
  /**
@@ -19,8 +18,17 @@ export default function MoreMenu() {
19
18
  const [isKeyboardShortcutsModalActive, setIsKeyboardShortcutsModalVisible] = useState(false);
20
19
  const toggleKeyboardShortcutsModal = () => setIsKeyboardShortcutsModalVisible(!isKeyboardShortcutsModalActive);
21
20
  useShortcut('core/customize-widgets/keyboard-shortcuts', toggleKeyboardShortcutsModal);
22
- return createElement(Fragment, null, createElement(MoreMenuDropdown, {
23
- as: ToolbarDropdownMenu
21
+ return createElement(Fragment, null, createElement(ToolbarDropdownMenu, {
22
+ icon: moreVertical,
23
+ label: __('Options'),
24
+ popoverProps: {
25
+ placement: 'bottom-end',
26
+ className: 'more-menu-dropdown__content'
27
+ },
28
+ toggleProps: {
29
+ tooltipPosition: 'bottom',
30
+ size: 'compact'
31
+ }
24
32
  }, () => createElement(Fragment, null, createElement(MenuGroup, {
25
33
  label: _x('View', 'noun')
26
34
  }, createElement(PreferenceToggleMenuItem, {
@@ -1 +1 @@
1
- {"version":3,"names":["MenuGroup","MenuItem","ToolbarDropdownMenu","VisuallyHidden","useState","__","_x","external","displayShortcut","useShortcut","MoreMenuDropdown","PreferenceToggleMenuItem","KeyboardShortcutHelpModal","MoreMenu","isKeyboardShortcutsModalActive","setIsKeyboardShortcutsModalVisible","toggleKeyboardShortcutsModal","createElement","Fragment","as","label","scope","name","info","messageActivated","messageDeactivated","onClick","shortcut","access","role","icon","href","target","rel","isModalActive","toggleModal"],"sources":["@wordpress/customize-widgets/src/components/more-menu/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tMenuGroup,\n\tMenuItem,\n\tToolbarDropdownMenu,\n\tVisuallyHidden,\n} from '@wordpress/components';\nimport { useState } from '@wordpress/element';\nimport { __, _x } from '@wordpress/i18n';\nimport { external } from '@wordpress/icons';\nimport { displayShortcut } from '@wordpress/keycodes';\nimport { useShortcut } from '@wordpress/keyboard-shortcuts';\nimport { MoreMenuDropdown } from '@wordpress/interface';\nimport { PreferenceToggleMenuItem } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport KeyboardShortcutHelpModal from '../keyboard-shortcut-help-modal';\n\nexport default function MoreMenu() {\n\tconst [\n\t\tisKeyboardShortcutsModalActive,\n\t\tsetIsKeyboardShortcutsModalVisible,\n\t] = useState( false );\n\tconst toggleKeyboardShortcutsModal = () =>\n\t\tsetIsKeyboardShortcutsModalVisible( ! isKeyboardShortcutsModalActive );\n\n\tuseShortcut(\n\t\t'core/customize-widgets/keyboard-shortcuts',\n\t\ttoggleKeyboardShortcutsModal\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t<MoreMenuDropdown as={ ToolbarDropdownMenu }>\n\t\t\t\t{ () => (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<MenuGroup label={ _x( 'View', 'noun' ) }>\n\t\t\t\t\t\t\t<PreferenceToggleMenuItem\n\t\t\t\t\t\t\t\tscope=\"core/customize-widgets\"\n\t\t\t\t\t\t\t\tname=\"fixedToolbar\"\n\t\t\t\t\t\t\t\tlabel={ __( 'Top toolbar' ) }\n\t\t\t\t\t\t\t\tinfo={ __(\n\t\t\t\t\t\t\t\t\t'Access all block and document tools in a single place'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tmessageActivated={ __(\n\t\t\t\t\t\t\t\t\t'Top toolbar activated'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tmessageDeactivated={ __(\n\t\t\t\t\t\t\t\t\t'Top toolbar deactivated'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t\t<MenuGroup label={ __( 'Tools' ) }>\n\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\tsetIsKeyboardShortcutsModalVisible( true );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tshortcut={ displayShortcut.access( 'h' ) }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Keyboard shortcuts' ) }\n\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t<PreferenceToggleMenuItem\n\t\t\t\t\t\t\t\tscope=\"core/customize-widgets\"\n\t\t\t\t\t\t\t\tname=\"welcomeGuide\"\n\t\t\t\t\t\t\t\tlabel={ __( 'Welcome Guide' ) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\trole=\"menuitem\"\n\t\t\t\t\t\t\t\ticon={ external }\n\t\t\t\t\t\t\t\thref={ __(\n\t\t\t\t\t\t\t\t\t'https://wordpress.org/documentation/article/block-based-widgets-editor/'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Help' ) }\n\t\t\t\t\t\t\t\t<VisuallyHidden as=\"span\">\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t/* translators: accessibility text */\n\t\t\t\t\t\t\t\t\t\t__( '(opens in a new tab)' )\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</VisuallyHidden>\n\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t\t<MenuGroup label={ __( 'Preferences' ) }>\n\t\t\t\t\t\t\t<PreferenceToggleMenuItem\n\t\t\t\t\t\t\t\tscope=\"core/customize-widgets\"\n\t\t\t\t\t\t\t\tname=\"keepCaretInsideBlock\"\n\t\t\t\t\t\t\t\tlabel={ __(\n\t\t\t\t\t\t\t\t\t'Contain text cursor inside block'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tinfo={ __(\n\t\t\t\t\t\t\t\t\t'Aids screen readers by stopping text caret from leaving blocks.'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tmessageActivated={ __(\n\t\t\t\t\t\t\t\t\t'Contain text cursor inside block activated'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tmessageDeactivated={ __(\n\t\t\t\t\t\t\t\t\t'Contain text cursor inside block deactivated'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t</MoreMenuDropdown>\n\t\t\t<KeyboardShortcutHelpModal\n\t\t\t\tisModalActive={ isKeyboardShortcutsModalActive }\n\t\t\t\ttoggleModal={ toggleKeyboardShortcutsModal }\n\t\t\t/>\n\t\t</>\n\t);\n}\n"],"mappings":";AAAA;AACA;AACA;AACA,SACCA,SAAS,EACTC,QAAQ,EACRC,mBAAmB,EACnBC,cAAc,QACR,uBAAuB;AAC9B,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,EAAE,EAAEC,EAAE,QAAQ,iBAAiB;AACxC,SAASC,QAAQ,QAAQ,kBAAkB;AAC3C,SAASC,eAAe,QAAQ,qBAAqB;AACrD,SAASC,WAAW,QAAQ,+BAA+B;AAC3D,SAASC,gBAAgB,QAAQ,sBAAsB;AACvD,SAASC,wBAAwB,QAAQ,wBAAwB;;AAEjE;AACA;AACA;AACA,OAAOC,yBAAyB,MAAM,iCAAiC;AAEvE,eAAe,SAASC,QAAQA,CAAA,EAAG;EAClC,MAAM,CACLC,8BAA8B,EAC9BC,kCAAkC,CAClC,GAAGX,QAAQ,CAAE,KAAM,CAAC;EACrB,MAAMY,4BAA4B,GAAGA,CAAA,KACpCD,kCAAkC,CAAE,CAAED,8BAA+B,CAAC;EAEvEL,WAAW,CACV,2CAA2C,EAC3CO,4BACD,CAAC;EAED,OACCC,aAAA,CAAAC,QAAA,QACCD,aAAA,CAACP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AG,GACvCY,aAAA,CAACN,wBAAwB;IACxBU,KAAK,EAAC,wBAAwB;IAC9BC,IAAI,EAAC,sBAAsB;IAC3BF,KAAK,EAAGf,EAAE,CACT,kCACD,CAAG;IACHkB,IAAI,EAAGlB,EAAE,CACR,iEACD,CAAG;IACHmB,gBAAgB,EAAGnB,EAAE,CACpB,4CACD,CAAG;IACHoB,kBAAkB,EAAGpB,EAAE,CACtB,8CACD;EAAG,CACH,CACS,CACV,CAEc,CAAC,EACnBY,aAAA,CAACL,yBAAyB;IACzBsB,aAAa,EAAGpB,8BAAgC;IAChDqB,WAAW,EAAGnB;EAA8B,CAC5C,CACA,CAAC;AAEL"}
1
+ {"version":3,"names":["MenuGroup","MenuItem","ToolbarDropdownMenu","VisuallyHidden","useState","__","_x","external","moreVertical","displayShortcut","useShortcut","PreferenceToggleMenuItem","KeyboardShortcutHelpModal","MoreMenu","isKeyboardShortcutsModalActive","setIsKeyboardShortcutsModalVisible","toggleKeyboardShortcutsModal","createElement","Fragment","icon","label","popoverProps","placement","className","toggleProps","tooltipPosition","size","scope","name","info","messageActivated","messageDeactivated","onClick","shortcut","access","role","href","target","rel","as","isModalActive","toggleModal"],"sources":["@wordpress/customize-widgets/src/components/more-menu/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tMenuGroup,\n\tMenuItem,\n\tToolbarDropdownMenu,\n\tVisuallyHidden,\n} from '@wordpress/components';\nimport { useState } from '@wordpress/element';\nimport { __, _x } from '@wordpress/i18n';\nimport { external, moreVertical } from '@wordpress/icons';\nimport { displayShortcut } from '@wordpress/keycodes';\nimport { useShortcut } from '@wordpress/keyboard-shortcuts';\nimport { PreferenceToggleMenuItem } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport KeyboardShortcutHelpModal from '../keyboard-shortcut-help-modal';\n\nexport default function MoreMenu() {\n\tconst [\n\t\tisKeyboardShortcutsModalActive,\n\t\tsetIsKeyboardShortcutsModalVisible,\n\t] = useState( false );\n\tconst toggleKeyboardShortcutsModal = () =>\n\t\tsetIsKeyboardShortcutsModalVisible( ! isKeyboardShortcutsModalActive );\n\n\tuseShortcut(\n\t\t'core/customize-widgets/keyboard-shortcuts',\n\t\ttoggleKeyboardShortcutsModal\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t<ToolbarDropdownMenu\n\t\t\t\ticon={ moreVertical }\n\t\t\t\tlabel={ __( 'Options' ) }\n\t\t\t\tpopoverProps={ {\n\t\t\t\t\tplacement: 'bottom-end',\n\t\t\t\t\tclassName: 'more-menu-dropdown__content',\n\t\t\t\t} }\n\t\t\t\ttoggleProps={ {\n\t\t\t\t\ttooltipPosition: 'bottom',\n\t\t\t\t\tsize: 'compact',\n\t\t\t\t} }\n\t\t\t>\n\t\t\t\t{ () => (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<MenuGroup label={ _x( 'View', 'noun' ) }>\n\t\t\t\t\t\t\t<PreferenceToggleMenuItem\n\t\t\t\t\t\t\t\tscope=\"core/customize-widgets\"\n\t\t\t\t\t\t\t\tname=\"fixedToolbar\"\n\t\t\t\t\t\t\t\tlabel={ __( 'Top toolbar' ) }\n\t\t\t\t\t\t\t\tinfo={ __(\n\t\t\t\t\t\t\t\t\t'Access all block and document tools in a single place'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tmessageActivated={ __(\n\t\t\t\t\t\t\t\t\t'Top toolbar activated'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tmessageDeactivated={ __(\n\t\t\t\t\t\t\t\t\t'Top toolbar deactivated'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t\t<MenuGroup label={ __( 'Tools' ) }>\n\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\tsetIsKeyboardShortcutsModalVisible( true );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tshortcut={ displayShortcut.access( 'h' ) }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Keyboard shortcuts' ) }\n\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t<PreferenceToggleMenuItem\n\t\t\t\t\t\t\t\tscope=\"core/customize-widgets\"\n\t\t\t\t\t\t\t\tname=\"welcomeGuide\"\n\t\t\t\t\t\t\t\tlabel={ __( 'Welcome Guide' ) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\trole=\"menuitem\"\n\t\t\t\t\t\t\t\ticon={ external }\n\t\t\t\t\t\t\t\thref={ __(\n\t\t\t\t\t\t\t\t\t'https://wordpress.org/documentation/article/block-based-widgets-editor/'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Help' ) }\n\t\t\t\t\t\t\t\t<VisuallyHidden as=\"span\">\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t/* translators: accessibility text */\n\t\t\t\t\t\t\t\t\t\t__( '(opens in a new tab)' )\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</VisuallyHidden>\n\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t\t<MenuGroup label={ __( 'Preferences' ) }>\n\t\t\t\t\t\t\t<PreferenceToggleMenuItem\n\t\t\t\t\t\t\t\tscope=\"core/customize-widgets\"\n\t\t\t\t\t\t\t\tname=\"keepCaretInsideBlock\"\n\t\t\t\t\t\t\t\tlabel={ __(\n\t\t\t\t\t\t\t\t\t'Contain text cursor inside block'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tinfo={ __(\n\t\t\t\t\t\t\t\t\t'Aids screen readers by stopping text caret from leaving blocks.'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tmessageActivated={ __(\n\t\t\t\t\t\t\t\t\t'Contain text cursor inside block activated'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tmessageDeactivated={ __(\n\t\t\t\t\t\t\t\t\t'Contain text cursor inside block deactivated'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t</ToolbarDropdownMenu>\n\t\t\t<KeyboardShortcutHelpModal\n\t\t\t\tisModalActive={ isKeyboardShortcutsModalActive }\n\t\t\t\ttoggleModal={ toggleKeyboardShortcutsModal }\n\t\t\t/>\n\t\t</>\n\t);\n}\n"],"mappings":";AAAA;AACA;AACA;AACA,SACCA,SAAS,EACTC,QAAQ,EACRC,mBAAmB,EACnBC,cAAc,QACR,uBAAuB;AAC9B,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,EAAE,EAAEC,EAAE,QAAQ,iBAAiB;AACxC,SAASC,QAAQ,EAAEC,YAAY,QAAQ,kBAAkB;AACzD,SAASC,eAAe,QAAQ,qBAAqB;AACrD,SAASC,WAAW,QAAQ,+BAA+B;AAC3D,SAASC,wBAAwB,QAAQ,wBAAwB;;AAEjE;AACA;AACA;AACA,OAAOC,yBAAyB,MAAM,iCAAiC;AAEvE,eAAe,SAASC,QAAQA,CAAA,EAAG;EAClC,MAAM,CACLC,8BAA8B,EAC9BC,kCAAkC,CAClC,GAAGX,QAAQ,CAAE,KAAM,CAAC;EACrB,MAAMY,4BAA4B,GAAGA,CAAA,KACpCD,kCAAkC,CAAE,CAAED,8BAA+B,CAAC;EAEvEJ,WAAW,CACV,2CAA2C,EAC3CM,4BACD,CAAC;EAED,OACCC,aAAA,CAAAC,QAAA,QACCD,aAAA,CAACf,mBAAmB;IACnBiB,IAAI,EAAGX,YAAc;IACrBY,KAAK,EAAGf,EAAE,CAAE,SAAU,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,GAEvB;EACAlC,EAAE,CAAE,sBAAuB,CAEb,CACP,CACA,CAAC,EACZY,aAAA,CAACjB,SAAS;IAACoB,KAAK,EAAGf,EAAE,CAAE,aAAc;EAAG,GACvCY,aAAA,CAACN,wBAAwB;IACxBgB,KAAK,EAAC,wBAAwB;IAC9BC,IAAI,EAAC,sBAAsB;IAC3BR,KAAK,EAAGf,EAAE,CACT,kCACD,CAAG;IACHwB,IAAI,EAAGxB,EAAE,CACR,iEACD,CAAG;IACHyB,gBAAgB,EAAGzB,EAAE,CACpB,4CACD,CAAG;IACH0B,kBAAkB,EAAG1B,EAAE,CACtB,8CACD;EAAG,CACH,CACS,CACV,CAEiB,CAAC,EACtBY,aAAA,CAACL,yBAAyB;IACzB4B,aAAa,EAAG1B,8BAAgC;IAChD2B,WAAW,EAAGzB;EAA8B,CAC5C,CACA,CAAC;AAEL"}
@@ -244,6 +244,10 @@
244
244
  margin: 0 0.2rem 0 0;
245
245
  }
246
246
 
247
+ .components-popover.more-menu-dropdown__content {
248
+ z-index: 99998;
249
+ }
250
+
247
251
  .customize-control-sidebar_block_editor .block-editor-block-list__block-popover {
248
252
  position: fixed !important;
249
253
  z-index: 7;
@@ -244,6 +244,10 @@
244
244
  margin: 0 0 0 0.2rem;
245
245
  }
246
246
 
247
+ .components-popover.more-menu-dropdown__content {
248
+ z-index: 99998;
249
+ }
250
+
247
251
  .customize-control-sidebar_block_editor .block-editor-block-list__block-popover {
248
252
  position: fixed !important;
249
253
  z-index: 7;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/customize-widgets",
3
- "version": "4.28.5",
3
+ "version": "4.30.0",
4
4
  "description": "Widgets blocks in Customizer Module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -24,26 +24,26 @@
24
24
  "react-native": "src/index",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.16.0",
27
- "@wordpress/block-editor": "^12.19.5",
28
- "@wordpress/block-library": "^8.28.5",
29
- "@wordpress/blocks": "^12.28.5",
30
- "@wordpress/components": "^26.0.4",
31
- "@wordpress/compose": "^6.28.1",
32
- "@wordpress/core-data": "^6.28.5",
33
- "@wordpress/data": "^9.21.1",
34
- "@wordpress/dom": "^3.51.1",
35
- "@wordpress/element": "^5.28.1",
36
- "@wordpress/hooks": "^3.51.1",
37
- "@wordpress/i18n": "^4.51.1",
38
- "@wordpress/icons": "^9.42.3",
39
- "@wordpress/interface": "^5.28.4",
40
- "@wordpress/is-shallow-equal": "^4.51.1",
41
- "@wordpress/keyboard-shortcuts": "^4.28.1",
42
- "@wordpress/keycodes": "^3.51.1",
43
- "@wordpress/media-utils": "^4.42.1",
44
- "@wordpress/preferences": "^3.28.4",
45
- "@wordpress/private-apis": "^0.33.1",
46
- "@wordpress/widgets": "^3.28.5",
27
+ "@wordpress/block-editor": "^12.21.0",
28
+ "@wordpress/block-library": "^8.30.0",
29
+ "@wordpress/blocks": "^12.30.0",
30
+ "@wordpress/components": "^27.1.0",
31
+ "@wordpress/compose": "^6.30.0",
32
+ "@wordpress/core-data": "^6.30.0",
33
+ "@wordpress/data": "^9.23.0",
34
+ "@wordpress/dom": "^3.53.0",
35
+ "@wordpress/element": "^5.30.0",
36
+ "@wordpress/hooks": "^3.53.0",
37
+ "@wordpress/i18n": "^4.53.0",
38
+ "@wordpress/icons": "^9.44.0",
39
+ "@wordpress/interface": "^5.30.0",
40
+ "@wordpress/is-shallow-equal": "^4.53.0",
41
+ "@wordpress/keyboard-shortcuts": "^4.30.0",
42
+ "@wordpress/keycodes": "^3.53.0",
43
+ "@wordpress/media-utils": "^4.44.0",
44
+ "@wordpress/preferences": "^3.30.0",
45
+ "@wordpress/private-apis": "^0.35.0",
46
+ "@wordpress/widgets": "^3.30.0",
47
47
  "classnames": "^2.3.1",
48
48
  "fast-deep-equal": "^3.1.3"
49
49
  },
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "4927ea437069f9aed12f696df294a79bd8e12fd5"
57
+ "gitHead": "ac3c3e465a083081a86a4da6ee6fb817b41e5130"
58
58
  }
@@ -1,15 +1,17 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { render } from '@testing-library/react';
5
+
1
6
  /**
2
7
  * WordPress dependencies
3
8
  */
4
9
  import * as wpHooks from '@wordpress/hooks';
10
+
5
11
  /**
6
12
  * Internal dependencies
7
13
  */
8
- import ErrorBoundary from '../error-boundary';
9
- /**
10
- * External dependencies
11
- */
12
- import { render } from '@testing-library/react';
14
+ import ErrorBoundary from '../index';
13
15
 
14
16
  const theError = new Error( 'Kaboom' );
15
17
 
@@ -9,10 +9,9 @@ import {
9
9
  } from '@wordpress/components';
10
10
  import { useState } from '@wordpress/element';
11
11
  import { __, _x } from '@wordpress/i18n';
12
- import { external } from '@wordpress/icons';
12
+ import { external, moreVertical } from '@wordpress/icons';
13
13
  import { displayShortcut } from '@wordpress/keycodes';
14
14
  import { useShortcut } from '@wordpress/keyboard-shortcuts';
15
- import { MoreMenuDropdown } from '@wordpress/interface';
16
15
  import { PreferenceToggleMenuItem } from '@wordpress/preferences';
17
16
 
18
17
  /**
@@ -35,7 +34,18 @@ export default function MoreMenu() {
35
34
 
36
35
  return (
37
36
  <>
38
- <MoreMenuDropdown as={ ToolbarDropdownMenu }>
37
+ <ToolbarDropdownMenu
38
+ icon={ moreVertical }
39
+ label={ __( 'Options' ) }
40
+ popoverProps={ {
41
+ placement: 'bottom-end',
42
+ className: 'more-menu-dropdown__content',
43
+ } }
44
+ toggleProps={ {
45
+ tooltipPosition: 'bottom',
46
+ size: 'compact',
47
+ } }
48
+ >
39
49
  { () => (
40
50
  <>
41
51
  <MenuGroup label={ _x( 'View', 'noun' ) }>
@@ -106,7 +116,7 @@ export default function MoreMenu() {
106
116
  </MenuGroup>
107
117
  </>
108
118
  ) }
109
- </MoreMenuDropdown>
119
+ </ToolbarDropdownMenu>
110
120
  <KeyboardShortcutHelpModal
111
121
  isModalActive={ isKeyboardShortcutsModalActive }
112
122
  toggleModal={ toggleKeyboardShortcutsModal }
@@ -0,0 +1,3 @@
1
+ .components-popover.more-menu-dropdown__content {
2
+ z-index: z-index(".components-popover.more-menu__content");
3
+ }
package/src/style.scss CHANGED
@@ -2,6 +2,7 @@
2
2
  @import "./components/header/style.scss";
3
3
  @import "./components/inserter/style.scss";
4
4
  @import "./components/keyboard-shortcut-help-modal/style.scss";
5
+ @import "./components/more-menu/style.scss";
5
6
  @import "./components/sidebar-block-editor/style.scss";
6
7
  @import "./components/welcome-guide/style.scss";
7
8
  @import "./controls/style.scss";