@wordpress/edit-widgets 6.31.1-next.f56bd8138.0 → 6.32.1-next.47f435fc9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/blocks/widget-area/block.json +26 -0
  3. package/build/blocks/widget-area/edit/index.js +94 -87
  4. package/build/blocks/widget-area/edit/index.js.map +7 -1
  5. package/build/blocks/widget-area/edit/inner-blocks.js +68 -50
  6. package/build/blocks/widget-area/edit/inner-blocks.js.map +7 -1
  7. package/build/blocks/widget-area/edit/use-is-dragging-within.js +34 -40
  8. package/build/blocks/widget-area/edit/use-is-dragging-within.js.map +7 -1
  9. package/build/blocks/widget-area/index.js +49 -52
  10. package/build/blocks/widget-area/index.js.map +7 -1
  11. package/build/components/error-boundary/index.js +49 -51
  12. package/build/components/error-boundary/index.js.map +7 -1
  13. package/build/components/header/document-tools/index.js +104 -74
  14. package/build/components/header/document-tools/index.js.map +7 -1
  15. package/build/components/header/index.js +81 -62
  16. package/build/components/header/index.js.map +7 -1
  17. package/build/components/header/undo-redo/redo.js +50 -38
  18. package/build/components/header/undo-redo/redo.js.map +7 -1
  19. package/build/components/header/undo-redo/undo.js +49 -37
  20. package/build/components/header/undo-redo/undo.js.map +7 -1
  21. package/build/components/keyboard-shortcut-help-modal/config.js +74 -71
  22. package/build/components/keyboard-shortcut-help-modal/config.js.map +7 -1
  23. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +61 -44
  24. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +7 -1
  25. package/build/components/keyboard-shortcut-help-modal/index.js +154 -103
  26. package/build/components/keyboard-shortcut-help-modal/index.js.map +7 -1
  27. package/build/components/keyboard-shortcut-help-modal/shortcut.js +74 -56
  28. package/build/components/keyboard-shortcut-help-modal/shortcut.js.map +7 -1
  29. package/build/components/keyboard-shortcuts/index.js +89 -82
  30. package/build/components/keyboard-shortcuts/index.js.map +7 -1
  31. package/build/components/layout/index.js +75 -49
  32. package/build/components/layout/index.js.map +7 -1
  33. package/build/components/layout/interface.js +89 -75
  34. package/build/components/layout/interface.js.map +7 -1
  35. package/build/components/layout/unsaved-changes-warning.js +35 -42
  36. package/build/components/layout/unsaved-changes-warning.js.map +7 -1
  37. package/build/components/more-menu/index.js +189 -108
  38. package/build/components/more-menu/index.js.map +7 -1
  39. package/build/components/more-menu/tools-more-menu-group.js +29 -23
  40. package/build/components/more-menu/tools-more-menu-group.js.map +7 -1
  41. package/build/components/notices/index.js +62 -48
  42. package/build/components/notices/index.js.map +7 -1
  43. package/build/components/save-button/index.js +55 -47
  44. package/build/components/save-button/index.js.map +7 -1
  45. package/build/components/secondary-sidebar/index.js +41 -34
  46. package/build/components/secondary-sidebar/index.js.map +7 -1
  47. package/build/components/secondary-sidebar/inserter-sidebar.js +55 -46
  48. package/build/components/secondary-sidebar/inserter-sidebar.js.map +7 -1
  49. package/build/components/secondary-sidebar/list-view-sidebar.js +76 -67
  50. package/build/components/secondary-sidebar/list-view-sidebar.js.map +7 -1
  51. package/build/components/sidebar/index.js +149 -138
  52. package/build/components/sidebar/index.js.map +7 -1
  53. package/build/components/sidebar/widget-areas.js +73 -57
  54. package/build/components/sidebar/widget-areas.js.map +7 -1
  55. package/build/components/welcome-guide/index.js +182 -137
  56. package/build/components/welcome-guide/index.js.map +7 -1
  57. package/build/components/widget-areas-block-editor-content/index.js +64 -43
  58. package/build/components/widget-areas-block-editor-content/index.js.map +7 -1
  59. package/build/components/widget-areas-block-editor-provider/index.js +115 -92
  60. package/build/components/widget-areas-block-editor-provider/index.js.map +7 -1
  61. package/build/constants.js +30 -8
  62. package/build/constants.js.map +7 -1
  63. package/build/filters/index.js +3 -5
  64. package/build/filters/index.js.map +7 -1
  65. package/build/filters/move-to-widget-area.js +52 -59
  66. package/build/filters/move-to-widget-area.js.map +7 -1
  67. package/build/filters/replace-media-upload.js +9 -11
  68. package/build/filters/replace-media-upload.js.map +7 -1
  69. package/build/hooks/use-last-selected-widget-area.js +38 -44
  70. package/build/hooks/use-last-selected-widget-area.js.map +7 -1
  71. package/build/hooks/use-widget-library-insertion-point.js +60 -55
  72. package/build/hooks/use-widget-library-insertion-point.js.map +7 -1
  73. package/build/index.js +86 -93
  74. package/build/index.js.map +7 -1
  75. package/build/lock-unlock.js +31 -15
  76. package/build/lock-unlock.js.map +7 -1
  77. package/build/store/actions.js +181 -313
  78. package/build/store/actions.js.map +7 -1
  79. package/build/store/constants.js +27 -10
  80. package/build/store/constants.js.map +7 -1
  81. package/build/store/index.js +51 -51
  82. package/build/store/index.js.map +7 -1
  83. package/build/store/private-selectors.js +28 -7
  84. package/build/store/private-selectors.js.map +7 -1
  85. package/build/store/reducer.js +65 -118
  86. package/build/store/reducer.js.map +7 -1
  87. package/build/store/resolvers.js +64 -63
  88. package/build/store/resolvers.js.map +7 -1
  89. package/build/store/selectors.js +194 -231
  90. package/build/store/selectors.js.map +7 -1
  91. package/build/store/transformers.js +47 -41
  92. package/build/store/transformers.js.map +7 -1
  93. package/build/store/utils.js +47 -70
  94. package/build/store/utils.js.map +7 -1
  95. package/build-module/blocks/widget-area/block.json +26 -0
  96. package/build-module/blocks/widget-area/edit/index.js +63 -75
  97. package/build-module/blocks/widget-area/edit/index.js.map +7 -1
  98. package/build-module/blocks/widget-area/edit/inner-blocks.js +38 -41
  99. package/build-module/blocks/widget-area/edit/inner-blocks.js.map +7 -1
  100. package/build-module/blocks/widget-area/edit/use-is-dragging-within.js +14 -33
  101. package/build-module/blocks/widget-area/edit/use-is-dragging-within.js.map +7 -1
  102. package/build-module/blocks/widget-area/index.js +14 -46
  103. package/build-module/blocks/widget-area/index.js.map +7 -1
  104. package/build-module/components/error-boundary/index.js +30 -43
  105. package/build-module/components/error-boundary/index.js.map +7 -1
  106. package/build-module/components/header/document-tools/index.js +75 -66
  107. package/build-module/components/header/document-tools/index.js.map +7 -1
  108. package/build-module/components/header/index.js +52 -54
  109. package/build-module/components/header/index.js.map +7 -1
  110. package/build-module/components/header/undo-redo/redo.js +32 -32
  111. package/build-module/components/header/undo-redo/redo.js.map +7 -1
  112. package/build-module/components/header/undo-redo/undo.js +31 -31
  113. package/build-module/components/header/undo-redo/undo.js.map +7 -1
  114. package/build-module/components/keyboard-shortcut-help-modal/config.js +62 -75
  115. package/build-module/components/keyboard-shortcut-help-modal/config.js.map +7 -1
  116. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +33 -37
  117. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +7 -1
  118. package/build-module/components/keyboard-shortcut-help-modal/index.js +130 -97
  119. package/build-module/components/keyboard-shortcut-help-modal/index.js.map +7 -1
  120. package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +56 -50
  121. package/build-module/components/keyboard-shortcut-help-modal/shortcut.js.map +7 -1
  122. package/build-module/components/keyboard-shortcuts/index.js +73 -75
  123. package/build-module/components/keyboard-shortcuts/index.js.map +7 -1
  124. package/build-module/components/layout/index.js +46 -41
  125. package/build-module/components/layout/index.js.map +7 -1
  126. package/build-module/components/layout/interface.js +63 -66
  127. package/build-module/components/layout/interface.js.map +7 -1
  128. package/build-module/components/layout/unsaved-changes-warning.js +17 -37
  129. package/build-module/components/layout/unsaved-changes-warning.js.map +7 -1
  130. package/build-module/components/more-menu/index.js +167 -102
  131. package/build-module/components/more-menu/index.js.map +7 -1
  132. package/build-module/components/more-menu/tools-more-menu-group.js +11 -17
  133. package/build-module/components/more-menu/tools-more-menu-group.js.map +7 -1
  134. package/build-module/components/notices/index.js +43 -42
  135. package/build-module/components/notices/index.js.map +7 -1
  136. package/build-module/components/save-button/index.js +37 -41
  137. package/build-module/components/save-button/index.js.map +7 -1
  138. package/build-module/components/secondary-sidebar/index.js +14 -27
  139. package/build-module/components/secondary-sidebar/index.js.map +7 -1
  140. package/build-module/components/secondary-sidebar/inserter-sidebar.js +26 -38
  141. package/build-module/components/secondary-sidebar/inserter-sidebar.js.map +7 -1
  142. package/build-module/components/secondary-sidebar/list-view-sidebar.js +57 -60
  143. package/build-module/components/secondary-sidebar/list-view-sidebar.js.map +7 -1
  144. package/build-module/components/sidebar/index.js +129 -127
  145. package/build-module/components/sidebar/index.js.map +7 -1
  146. package/build-module/components/sidebar/widget-areas.js +53 -49
  147. package/build-module/components/sidebar/widget-areas.js.map +7 -1
  148. package/build-module/components/welcome-guide/index.js +165 -132
  149. package/build-module/components/welcome-guide/index.js.map +7 -1
  150. package/build-module/components/widget-areas-block-editor-content/index.js +43 -36
  151. package/build-module/components/widget-areas-block-editor-content/index.js.map +7 -1
  152. package/build-module/components/widget-areas-block-editor-provider/index.js +85 -83
  153. package/build-module/components/widget-areas-block-editor-provider/index.js.map +7 -1
  154. package/build-module/constants.js +7 -3
  155. package/build-module/constants.js.map +7 -1
  156. package/build-module/filters/index.js +3 -6
  157. package/build-module/filters/index.js.map +7 -1
  158. package/build-module/filters/move-to-widget-area.js +52 -57
  159. package/build-module/filters/move-to-widget-area.js.map +7 -1
  160. package/build-module/filters/replace-media-upload.js +8 -7
  161. package/build-module/filters/replace-media-upload.js.map +7 -1
  162. package/build-module/hooks/use-last-selected-widget-area.js +20 -39
  163. package/build-module/hooks/use-last-selected-widget-area.js.map +7 -1
  164. package/build-module/hooks/use-widget-library-insertion-point.js +42 -49
  165. package/build-module/hooks/use-widget-library-insertion-point.js.map +7 -1
  166. package/build-module/index.js +60 -72
  167. package/build-module/index.js.map +7 -1
  168. package/build-module/lock-unlock.js +8 -7
  169. package/build-module/lock-unlock.js.map +7 -1
  170. package/build-module/store/actions.js +153 -293
  171. package/build-module/store/actions.js.map +7 -1
  172. package/build-module/store/constants.js +5 -5
  173. package/build-module/store/constants.js.map +7 -1
  174. package/build-module/store/index.js +16 -40
  175. package/build-module/store/index.js.map +7 -1
  176. package/build-module/store/private-selectors.js +7 -3
  177. package/build-module/store/private-selectors.js.map +7 -1
  178. package/build-module/store/reducer.js +42 -111
  179. package/build-module/store/reducer.js.map +7 -1
  180. package/build-module/store/resolvers.js +43 -51
  181. package/build-module/store/resolvers.js.map +7 -1
  182. package/build-module/store/selectors.js +171 -224
  183. package/build-module/store/selectors.js.map +7 -1
  184. package/build-module/store/transformers.js +23 -34
  185. package/build-module/store/transformers.js.map +7 -1
  186. package/build-module/store/utils.js +22 -63
  187. package/build-module/store/utils.js.map +7 -1
  188. package/build-style/style-rtl.css +216 -88
  189. package/build-style/style.css +216 -88
  190. package/package.json +36 -29
  191. package/src/blocks/widget-area/editor.scss +3 -0
  192. package/src/components/customizer-edit-widgets-initializer/style.scss +3 -0
  193. package/src/components/error-boundary/style.scss +2 -0
  194. package/src/components/header/style.scss +5 -0
  195. package/src/components/keyboard-shortcut-help-modal/style.scss +2 -0
  196. package/src/components/layout/style.scss +3 -0
  197. package/src/components/more-menu/style.scss +2 -0
  198. package/src/components/notices/style.scss +3 -0
  199. package/src/components/secondary-sidebar/style.scss +4 -0
  200. package/src/components/sidebar/style.scss +2 -0
  201. package/src/components/welcome-guide/style.scss +2 -0
  202. package/src/components/widget-areas-block-editor-content/style.scss +2 -0
  203. package/src/style.scss +16 -13
@@ -1,69 +1,88 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var header_exports = {};
29
+ __export(header_exports, {
30
+ default: () => header_default
6
31
  });
7
- exports.default = void 0;
8
- var _blockEditor = require("@wordpress/block-editor");
9
- var _data = require("@wordpress/data");
10
- var _element = require("@wordpress/element");
11
- var _i18n = require("@wordpress/i18n");
12
- var _components = require("@wordpress/components");
13
- var _interface = require("@wordpress/interface");
14
- var _compose = require("@wordpress/compose");
15
- var _preferences = require("@wordpress/preferences");
16
- var _documentTools = _interopRequireDefault(require("./document-tools"));
17
- var _saveButton = _interopRequireDefault(require("../save-button"));
18
- var _moreMenu = _interopRequireDefault(require("../more-menu"));
19
- var _jsxRuntime = require("react/jsx-runtime");
20
- /**
21
- * WordPress dependencies
22
- */
23
-
24
- /**
25
- * Internal dependencies
26
- */
27
-
32
+ module.exports = __toCommonJS(header_exports);
33
+ var import_jsx_runtime = require("react/jsx-runtime");
34
+ var import_block_editor = require("@wordpress/block-editor");
35
+ var import_data = require("@wordpress/data");
36
+ var import_element = require("@wordpress/element");
37
+ var import_i18n = require("@wordpress/i18n");
38
+ var import_components = require("@wordpress/components");
39
+ var import_interface = require("@wordpress/interface");
40
+ var import_compose = require("@wordpress/compose");
41
+ var import_preferences = require("@wordpress/preferences");
42
+ var import_document_tools = __toESM(require("./document-tools"));
43
+ var import_save_button = __toESM(require("../save-button"));
44
+ var import_more_menu = __toESM(require("../more-menu"));
28
45
  function Header() {
29
- const isLargeViewport = (0, _compose.useViewportMatch)('medium');
30
- const blockToolbarRef = (0, _element.useRef)();
31
- const {
32
- hasFixedToolbar
33
- } = (0, _data.useSelect)(select => ({
34
- hasFixedToolbar: !!select(_preferences.store).get('core/edit-widgets', 'fixedToolbar')
35
- }), []);
36
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
37
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
38
- className: "edit-widgets-header",
39
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
40
- className: "edit-widgets-header__navigable-toolbar-wrapper",
41
- children: [isLargeViewport && /*#__PURE__*/(0, _jsxRuntime.jsx)("h1", {
42
- className: "edit-widgets-header__title",
43
- children: (0, _i18n.__)('Widgets')
44
- }), !isLargeViewport && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.VisuallyHidden, {
46
+ const isLargeViewport = (0, import_compose.useViewportMatch)("medium");
47
+ const blockToolbarRef = (0, import_element.useRef)();
48
+ const { hasFixedToolbar } = (0, import_data.useSelect)(
49
+ (select) => ({
50
+ hasFixedToolbar: !!select(import_preferences.store).get(
51
+ "core/edit-widgets",
52
+ "fixedToolbar"
53
+ )
54
+ }),
55
+ []
56
+ );
57
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "edit-widgets-header", children: [
58
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "edit-widgets-header__navigable-toolbar-wrapper", children: [
59
+ isLargeViewport && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "edit-widgets-header__title", children: (0, import_i18n.__)("Widgets") }),
60
+ !isLargeViewport && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
61
+ import_components.VisuallyHidden,
62
+ {
45
63
  as: "h1",
46
64
  className: "edit-widgets-header__title",
47
- children: (0, _i18n.__)('Widgets')
48
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_documentTools.default, {}), hasFixedToolbar && isLargeViewport && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
49
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
50
- className: "selected-block-tools-wrapper",
51
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.BlockToolbar, {
52
- hideDragHandle: true
53
- })
54
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Popover.Slot, {
65
+ children: (0, import_i18n.__)("Widgets")
66
+ }
67
+ ),
68
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_document_tools.default, {}),
69
+ hasFixedToolbar && isLargeViewport && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
70
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "selected-block-tools-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_block_editor.BlockToolbar, { hideDragHandle: true }) }),
71
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
72
+ import_components.Popover.Slot,
73
+ {
55
74
  ref: blockToolbarRef,
56
75
  name: "block-toolbar"
57
- })]
58
- })]
59
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
60
- className: "edit-widgets-header__actions",
61
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_interface.PinnedItems.Slot, {
62
- scope: "core/edit-widgets"
63
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_saveButton.default, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_moreMenu.default, {})]
64
- })]
65
- })
66
- });
76
+ }
77
+ )
78
+ ] })
79
+ ] }),
80
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "edit-widgets-header__actions", children: [
81
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_interface.PinnedItems.Slot, { scope: "core/edit-widgets" }),
82
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_save_button.default, {}),
83
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_more_menu.default, {})
84
+ ] })
85
+ ] }) });
67
86
  }
68
- var _default = exports.default = Header;
69
- //# sourceMappingURL=index.js.map
87
+ var header_default = Header;
88
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
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,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Ab,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,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":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/header/index.js"],
4
+ "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"],
5
+ "mappings": ";;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
+ "names": ["preferencesStore", "DocumentTools", "SaveButton", "MoreMenu"]
7
+ }
@@ -1,41 +1,53 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var redo_exports = {};
19
+ __export(redo_exports, {
20
+ default: () => redo_default
5
21
  });
6
- exports.default = void 0;
7
- var _i18n = require("@wordpress/i18n");
8
- var _components = require("@wordpress/components");
9
- var _data = require("@wordpress/data");
10
- var _icons = require("@wordpress/icons");
11
- var _keycodes = require("@wordpress/keycodes");
12
- var _coreData = require("@wordpress/core-data");
13
- var _element = require("@wordpress/element");
14
- var _jsxRuntime = require("react/jsx-runtime");
15
- /**
16
- * WordPress dependencies
17
- */
18
-
22
+ module.exports = __toCommonJS(redo_exports);
23
+ var import_jsx_runtime = require("react/jsx-runtime");
24
+ var import_i18n = require("@wordpress/i18n");
25
+ var import_components = require("@wordpress/components");
26
+ var import_data = require("@wordpress/data");
27
+ var import_icons = require("@wordpress/icons");
28
+ var import_keycodes = require("@wordpress/keycodes");
29
+ var import_core_data = require("@wordpress/core-data");
30
+ var import_element = require("@wordpress/element");
19
31
  function RedoButton(props, ref) {
20
- const shortcut = (0, _keycodes.isAppleOS)() ? _keycodes.displayShortcut.primaryShift('z') : _keycodes.displayShortcut.primary('y');
21
- const hasRedo = (0, _data.useSelect)(select => select(_coreData.store).hasRedo(), []);
22
- const {
23
- redo
24
- } = (0, _data.useDispatch)(_coreData.store);
25
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
26
- ...props,
27
- ref: ref,
28
- icon: !(0, _i18n.isRTL)() ? _icons.redo : _icons.undo,
29
- label: (0, _i18n.__)('Redo'),
30
- shortcut: shortcut
31
- // If there are no undo levels we don't want to actually disable this
32
- // button, because it will remove focus for keyboard users.
33
- // See: https://github.com/WordPress/gutenberg/issues/3486
34
- ,
35
- "aria-disabled": !hasRedo,
36
- onClick: hasRedo ? redo : undefined,
37
- size: "compact"
38
- });
32
+ const shortcut = (0, import_keycodes.isAppleOS)() ? import_keycodes.displayShortcut.primaryShift("z") : import_keycodes.displayShortcut.primary("y");
33
+ const hasRedo = (0, import_data.useSelect)(
34
+ (select) => select(import_core_data.store).hasRedo(),
35
+ []
36
+ );
37
+ const { redo } = (0, import_data.useDispatch)(import_core_data.store);
38
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
39
+ import_components.Button,
40
+ {
41
+ ...props,
42
+ ref,
43
+ icon: !(0, import_i18n.isRTL)() ? import_icons.redo : import_icons.undo,
44
+ label: (0, import_i18n.__)("Redo"),
45
+ shortcut,
46
+ "aria-disabled": !hasRedo,
47
+ onClick: hasRedo ? redo : void 0,
48
+ size: "compact"
49
+ }
50
+ );
39
51
  }
40
- var _default = exports.default = (0, _element.forwardRef)(RedoButton);
41
- //# sourceMappingURL=redo.js.map
52
+ var redo_default = (0, import_element.forwardRef)(RedoButton);
53
+ //# sourceMappingURL=redo.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["_i18n","require","_components","_data","_icons","_keycodes","_coreData","_element","_jsxRuntime","RedoButton","props","ref","shortcut","isAppleOS","displayShortcut","primaryShift","primary","hasRedo","useSelect","select","coreStore","redo","useDispatch","jsx","Button","icon","isRTL","redoIcon","undoIcon","label","__","onClick","undefined","size","_default","exports","default","forwardRef"],"sources":["@wordpress/edit-widgets/src/components/header/undo-redo/redo.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __, isRTL } from '@wordpress/i18n';\nimport { Button } from '@wordpress/components';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { redo as redoIcon, undo as undoIcon } from '@wordpress/icons';\nimport { displayShortcut, isAppleOS } from '@wordpress/keycodes';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { forwardRef } from '@wordpress/element';\n\nfunction RedoButton( props, ref ) {\n\tconst shortcut = isAppleOS()\n\t\t? displayShortcut.primaryShift( 'z' )\n\t\t: displayShortcut.primary( 'y' );\n\n\tconst hasRedo = useSelect(\n\t\t( select ) => select( coreStore ).hasRedo(),\n\t\t[]\n\t);\n\tconst { redo } = useDispatch( coreStore );\n\treturn (\n\t\t<Button\n\t\t\t{ ...props }\n\t\t\tref={ ref }\n\t\t\ticon={ ! isRTL() ? redoIcon : undoIcon }\n\t\t\tlabel={ __( 'Redo' ) }\n\t\t\tshortcut={ shortcut }\n\t\t\t// If there are no undo levels we don't want to actually disable this\n\t\t\t// button, because it will remove focus for keyboard users.\n\t\t\t// See: https://github.com/WordPress/gutenberg/issues/3486\n\t\t\taria-disabled={ ! hasRedo }\n\t\t\tonClick={ hasRedo ? redo : undefined }\n\t\t\tsize=\"compact\"\n\t\t/>\n\t);\n}\n\nexport default forwardRef( RedoButton );\n"],"mappings":";;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AAAgD,IAAAO,WAAA,GAAAP,OAAA;AAThD;AACA;AACA;;AASA,SAASQ,UAAUA,CAAEC,KAAK,EAAEC,GAAG,EAAG;EACjC,MAAMC,QAAQ,GAAG,IAAAC,mBAAS,EAAC,CAAC,GACzBC,yBAAe,CAACC,YAAY,CAAE,GAAI,CAAC,GACnCD,yBAAe,CAACE,OAAO,CAAE,GAAI,CAAC;EAEjC,MAAMC,OAAO,GAAG,IAAAC,eAAS,EACtBC,MAAM,IAAMA,MAAM,CAAEC,eAAU,CAAC,CAACH,OAAO,CAAC,CAAC,EAC3C,EACD,CAAC;EACD,MAAM;IAAEI;EAAK,CAAC,GAAG,IAAAC,iBAAW,EAAEF,eAAU,CAAC;EACzC,oBACC,IAAAZ,WAAA,CAAAe,GAAA,EAACrB,WAAA,CAAAsB,MAAM;IAAA,GACDd,KAAK;IACVC,GAAG,EAAGA,GAAK;IACXc,IAAI,EAAG,CAAE,IAAAC,WAAK,EAAC,CAAC,GAAGC,WAAQ,GAAGC,WAAU;IACxCC,KAAK,EAAG,IAAAC,QAAE,EAAE,MAAO,CAAG;IACtBlB,QAAQ,EAAGA;IACX;IACA;IACA;IAAA;IACA,iBAAgB,CAAEK,OAAS;IAC3Bc,OAAO,EAAGd,OAAO,GAAGI,IAAI,GAAGW,SAAW;IACtCC,IAAI,EAAC;EAAS,CACd,CAAC;AAEJ;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEc,IAAAC,mBAAU,EAAE5B,UAAW,CAAC","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/components/header/undo-redo/redo.js"],
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __, isRTL } from '@wordpress/i18n';\nimport { Button } from '@wordpress/components';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { redo as redoIcon, undo as undoIcon } from '@wordpress/icons';\nimport { displayShortcut, isAppleOS } from '@wordpress/keycodes';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { forwardRef } from '@wordpress/element';\n\nfunction RedoButton( props, ref ) {\n\tconst shortcut = isAppleOS()\n\t\t? displayShortcut.primaryShift( 'z' )\n\t\t: displayShortcut.primary( 'y' );\n\n\tconst hasRedo = useSelect(\n\t\t( select ) => select( coreStore ).hasRedo(),\n\t\t[]\n\t);\n\tconst { redo } = useDispatch( coreStore );\n\treturn (\n\t\t<Button\n\t\t\t{ ...props }\n\t\t\tref={ ref }\n\t\t\ticon={ ! isRTL() ? redoIcon : undoIcon }\n\t\t\tlabel={ __( 'Redo' ) }\n\t\t\tshortcut={ shortcut }\n\t\t\t// If there are no undo levels we don't want to actually disable this\n\t\t\t// button, because it will remove focus for keyboard users.\n\t\t\t// See: https://github.com/WordPress/gutenberg/issues/3486\n\t\t\taria-disabled={ ! hasRedo }\n\t\t\tonClick={ hasRedo ? redo : undefined }\n\t\t\tsize=\"compact\"\n\t\t/>\n\t);\n}\n\nexport default forwardRef( RedoButton );\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBE;AAnBF,kBAA0B;AAC1B,wBAAuB;AACvB,kBAAuC;AACvC,mBAAmD;AACnD,sBAA2C;AAC3C,uBAAmC;AACnC,qBAA2B;AAE3B,SAAS,WAAY,OAAO,KAAM;AACjC,QAAM,eAAW,2BAAU,IACxB,gCAAgB,aAAc,GAAI,IAClC,gCAAgB,QAAS,GAAI;AAEhC,QAAM,cAAU;AAAA,IACf,CAAE,WAAY,OAAQ,iBAAAA,KAAU,EAAE,QAAQ;AAAA,IAC1C,CAAC;AAAA,EACF;AACA,QAAM,EAAE,KAAK,QAAI,yBAAa,iBAAAA,KAAU;AACxC,SACC;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACL;AAAA,MACA,MAAO,KAAE,mBAAM,IAAI,aAAAC,OAAW,aAAAC;AAAA,MAC9B,WAAQ,gBAAI,MAAO;AAAA,MACnB;AAAA,MAIA,iBAAgB,CAAE;AAAA,MAClB,SAAU,UAAU,OAAO;AAAA,MAC3B,MAAK;AAAA;AAAA,EACN;AAEF;AAEA,IAAO,mBAAQ,2BAAY,UAAW;",
6
+ "names": ["coreStore", "redoIcon", "undoIcon"]
7
+ }
@@ -1,40 +1,52 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var undo_exports = {};
19
+ __export(undo_exports, {
20
+ default: () => undo_default
5
21
  });
6
- exports.default = void 0;
7
- var _i18n = require("@wordpress/i18n");
8
- var _components = require("@wordpress/components");
9
- var _data = require("@wordpress/data");
10
- var _icons = require("@wordpress/icons");
11
- var _keycodes = require("@wordpress/keycodes");
12
- var _coreData = require("@wordpress/core-data");
13
- var _element = require("@wordpress/element");
14
- var _jsxRuntime = require("react/jsx-runtime");
15
- /**
16
- * WordPress dependencies
17
- */
18
-
22
+ module.exports = __toCommonJS(undo_exports);
23
+ var import_jsx_runtime = require("react/jsx-runtime");
24
+ var import_i18n = require("@wordpress/i18n");
25
+ var import_components = require("@wordpress/components");
26
+ var import_data = require("@wordpress/data");
27
+ var import_icons = require("@wordpress/icons");
28
+ var import_keycodes = require("@wordpress/keycodes");
29
+ var import_core_data = require("@wordpress/core-data");
30
+ var import_element = require("@wordpress/element");
19
31
  function UndoButton(props, ref) {
20
- const hasUndo = (0, _data.useSelect)(select => select(_coreData.store).hasUndo(), []);
21
- const {
22
- undo
23
- } = (0, _data.useDispatch)(_coreData.store);
24
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
25
- ...props,
26
- ref: ref,
27
- icon: !(0, _i18n.isRTL)() ? _icons.undo : _icons.redo,
28
- label: (0, _i18n.__)('Undo'),
29
- shortcut: _keycodes.displayShortcut.primary('z')
30
- // If there are no undo levels we don't want to actually disable this
31
- // button, because it will remove focus for keyboard users.
32
- // See: https://github.com/WordPress/gutenberg/issues/3486
33
- ,
34
- "aria-disabled": !hasUndo,
35
- onClick: hasUndo ? undo : undefined,
36
- size: "compact"
37
- });
32
+ const hasUndo = (0, import_data.useSelect)(
33
+ (select) => select(import_core_data.store).hasUndo(),
34
+ []
35
+ );
36
+ const { undo } = (0, import_data.useDispatch)(import_core_data.store);
37
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
38
+ import_components.Button,
39
+ {
40
+ ...props,
41
+ ref,
42
+ icon: !(0, import_i18n.isRTL)() ? import_icons.undo : import_icons.redo,
43
+ label: (0, import_i18n.__)("Undo"),
44
+ shortcut: import_keycodes.displayShortcut.primary("z"),
45
+ "aria-disabled": !hasUndo,
46
+ onClick: hasUndo ? undo : void 0,
47
+ size: "compact"
48
+ }
49
+ );
38
50
  }
39
- var _default = exports.default = (0, _element.forwardRef)(UndoButton);
40
- //# sourceMappingURL=undo.js.map
51
+ var undo_default = (0, import_element.forwardRef)(UndoButton);
52
+ //# sourceMappingURL=undo.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["_i18n","require","_components","_data","_icons","_keycodes","_coreData","_element","_jsxRuntime","UndoButton","props","ref","hasUndo","useSelect","select","coreStore","undo","useDispatch","jsx","Button","icon","isRTL","undoIcon","redoIcon","label","__","shortcut","displayShortcut","primary","onClick","undefined","size","_default","exports","default","forwardRef"],"sources":["@wordpress/edit-widgets/src/components/header/undo-redo/undo.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __, isRTL } from '@wordpress/i18n';\nimport { Button } from '@wordpress/components';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { undo as undoIcon, redo as redoIcon } from '@wordpress/icons';\nimport { displayShortcut } from '@wordpress/keycodes';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { forwardRef } from '@wordpress/element';\n\nfunction UndoButton( props, ref ) {\n\tconst hasUndo = useSelect(\n\t\t( select ) => select( coreStore ).hasUndo(),\n\t\t[]\n\t);\n\tconst { undo } = useDispatch( coreStore );\n\treturn (\n\t\t<Button\n\t\t\t{ ...props }\n\t\t\tref={ ref }\n\t\t\ticon={ ! isRTL() ? undoIcon : redoIcon }\n\t\t\tlabel={ __( 'Undo' ) }\n\t\t\tshortcut={ displayShortcut.primary( 'z' ) }\n\t\t\t// If there are no undo levels we don't want to actually disable this\n\t\t\t// button, because it will remove focus for keyboard users.\n\t\t\t// See: https://github.com/WordPress/gutenberg/issues/3486\n\t\t\taria-disabled={ ! hasUndo }\n\t\t\tonClick={ hasUndo ? undo : undefined }\n\t\t\tsize=\"compact\"\n\t\t/>\n\t);\n}\n\nexport default forwardRef( UndoButton );\n"],"mappings":";;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AAAgD,IAAAO,WAAA,GAAAP,OAAA;AAThD;AACA;AACA;;AASA,SAASQ,UAAUA,CAAEC,KAAK,EAAEC,GAAG,EAAG;EACjC,MAAMC,OAAO,GAAG,IAAAC,eAAS,EACtBC,MAAM,IAAMA,MAAM,CAAEC,eAAU,CAAC,CAACH,OAAO,CAAC,CAAC,EAC3C,EACD,CAAC;EACD,MAAM;IAAEI;EAAK,CAAC,GAAG,IAAAC,iBAAW,EAAEF,eAAU,CAAC;EACzC,oBACC,IAAAP,WAAA,CAAAU,GAAA,EAAChB,WAAA,CAAAiB,MAAM;IAAA,GACDT,KAAK;IACVC,GAAG,EAAGA,GAAK;IACXS,IAAI,EAAG,CAAE,IAAAC,WAAK,EAAC,CAAC,GAAGC,WAAQ,GAAGC,WAAU;IACxCC,KAAK,EAAG,IAAAC,QAAE,EAAE,MAAO,CAAG;IACtBC,QAAQ,EAAGC,yBAAe,CAACC,OAAO,CAAE,GAAI;IACxC;IACA;IACA;IAAA;IACA,iBAAgB,CAAEhB,OAAS;IAC3BiB,OAAO,EAAGjB,OAAO,GAAGI,IAAI,GAAGc,SAAW;IACtCC,IAAI,EAAC;EAAS,CACd,CAAC;AAEJ;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEc,IAAAC,mBAAU,EAAE1B,UAAW,CAAC","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/components/header/undo-redo/undo.js"],
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __, isRTL } from '@wordpress/i18n';\nimport { Button } from '@wordpress/components';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { undo as undoIcon, redo as redoIcon } from '@wordpress/icons';\nimport { displayShortcut } from '@wordpress/keycodes';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { forwardRef } from '@wordpress/element';\n\nfunction UndoButton( props, ref ) {\n\tconst hasUndo = useSelect(\n\t\t( select ) => select( coreStore ).hasUndo(),\n\t\t[]\n\t);\n\tconst { undo } = useDispatch( coreStore );\n\treturn (\n\t\t<Button\n\t\t\t{ ...props }\n\t\t\tref={ ref }\n\t\t\ticon={ ! isRTL() ? undoIcon : redoIcon }\n\t\t\tlabel={ __( 'Undo' ) }\n\t\t\tshortcut={ displayShortcut.primary( 'z' ) }\n\t\t\t// If there are no undo levels we don't want to actually disable this\n\t\t\t// button, because it will remove focus for keyboard users.\n\t\t\t// See: https://github.com/WordPress/gutenberg/issues/3486\n\t\t\taria-disabled={ ! hasUndo }\n\t\t\tonClick={ hasUndo ? undo : undefined }\n\t\t\tsize=\"compact\"\n\t\t/>\n\t);\n}\n\nexport default forwardRef( UndoButton );\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBE;AAfF,kBAA0B;AAC1B,wBAAuB;AACvB,kBAAuC;AACvC,mBAAmD;AACnD,sBAAgC;AAChC,uBAAmC;AACnC,qBAA2B;AAE3B,SAAS,WAAY,OAAO,KAAM;AACjC,QAAM,cAAU;AAAA,IACf,CAAE,WAAY,OAAQ,iBAAAA,KAAU,EAAE,QAAQ;AAAA,IAC1C,CAAC;AAAA,EACF;AACA,QAAM,EAAE,KAAK,QAAI,yBAAa,iBAAAA,KAAU;AACxC,SACC;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACL;AAAA,MACA,MAAO,KAAE,mBAAM,IAAI,aAAAC,OAAW,aAAAC;AAAA,MAC9B,WAAQ,gBAAI,MAAO;AAAA,MACnB,UAAW,gCAAgB,QAAS,GAAI;AAAA,MAIxC,iBAAgB,CAAE;AAAA,MAClB,SAAU,UAAU,OAAO;AAAA,MAC3B,MAAK;AAAA;AAAA,EACN;AAEF;AAEA,IAAO,mBAAQ,2BAAY,UAAW;",
6
+ "names": ["coreStore", "undoIcon", "redoIcon"]
7
+ }
@@ -1,82 +1,85 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var config_exports = {};
19
+ __export(config_exports, {
20
+ textFormattingShortcuts: () => textFormattingShortcuts
5
21
  });
6
- exports.textFormattingShortcuts = void 0;
7
- var _i18n = require("@wordpress/i18n");
8
- /**
9
- * WordPress dependencies
10
- */
11
-
12
- const textFormattingShortcuts = exports.textFormattingShortcuts = [{
13
- keyCombination: {
14
- modifier: 'primary',
15
- character: 'b'
22
+ module.exports = __toCommonJS(config_exports);
23
+ var import_i18n = require("@wordpress/i18n");
24
+ const textFormattingShortcuts = [
25
+ {
26
+ keyCombination: { modifier: "primary", character: "b" },
27
+ description: (0, import_i18n.__)("Make the selected text bold.")
16
28
  },
17
- description: (0, _i18n.__)('Make the selected text bold.')
18
- }, {
19
- keyCombination: {
20
- modifier: 'primary',
21
- character: 'i'
29
+ {
30
+ keyCombination: { modifier: "primary", character: "i" },
31
+ description: (0, import_i18n.__)("Make the selected text italic.")
22
32
  },
23
- description: (0, _i18n.__)('Make the selected text italic.')
24
- }, {
25
- keyCombination: {
26
- modifier: 'primary',
27
- character: 'k'
33
+ {
34
+ keyCombination: { modifier: "primary", character: "k" },
35
+ description: (0, import_i18n.__)("Convert the selected text into a link.")
28
36
  },
29
- description: (0, _i18n.__)('Convert the selected text into a link.')
30
- }, {
31
- keyCombination: {
32
- modifier: 'primaryShift',
33
- character: 'k'
37
+ {
38
+ keyCombination: { modifier: "primaryShift", character: "k" },
39
+ description: (0, import_i18n.__)("Remove a link.")
34
40
  },
35
- description: (0, _i18n.__)('Remove a link.')
36
- }, {
37
- keyCombination: {
38
- character: '[['
41
+ {
42
+ keyCombination: { character: "[[" },
43
+ description: (0, import_i18n.__)("Insert a link to a post or page.")
39
44
  },
40
- description: (0, _i18n.__)('Insert a link to a post or page.')
41
- }, {
42
- keyCombination: {
43
- modifier: 'primary',
44
- character: 'u'
45
+ {
46
+ keyCombination: { modifier: "primary", character: "u" },
47
+ description: (0, import_i18n.__)("Underline the selected text.")
45
48
  },
46
- description: (0, _i18n.__)('Underline the selected text.')
47
- }, {
48
- keyCombination: {
49
- modifier: 'access',
50
- character: 'd'
49
+ {
50
+ keyCombination: { modifier: "access", character: "d" },
51
+ description: (0, import_i18n.__)("Strikethrough the selected text.")
51
52
  },
52
- description: (0, _i18n.__)('Strikethrough the selected text.')
53
- }, {
54
- keyCombination: {
55
- modifier: 'access',
56
- character: 'x'
53
+ {
54
+ keyCombination: { modifier: "access", character: "x" },
55
+ description: (0, import_i18n.__)("Make the selected text inline code.")
57
56
  },
58
- description: (0, _i18n.__)('Make the selected text inline code.')
59
- }, {
60
- keyCombination: {
61
- modifier: 'access',
62
- character: '0'
57
+ {
58
+ keyCombination: {
59
+ modifier: "access",
60
+ character: "0"
61
+ },
62
+ aliases: [
63
+ {
64
+ modifier: "access",
65
+ character: "7"
66
+ }
67
+ ],
68
+ description: (0, import_i18n.__)("Convert the current heading to a paragraph.")
63
69
  },
64
- aliases: [{
65
- modifier: 'access',
66
- character: '7'
67
- }],
68
- description: (0, _i18n.__)('Convert the current heading to a paragraph.')
69
- }, {
70
- keyCombination: {
71
- modifier: 'access',
72
- character: '1-6'
70
+ {
71
+ keyCombination: { modifier: "access", character: "1-6" },
72
+ description: (0, import_i18n.__)(
73
+ "Convert the current paragraph or heading to a heading of level 1 to 6."
74
+ )
73
75
  },
74
- description: (0, _i18n.__)('Convert the current paragraph or heading to a heading of level 1 to 6.')
75
- }, {
76
- keyCombination: {
77
- modifier: 'primaryShift',
78
- character: 'SPACE'
79
- },
80
- description: (0, _i18n.__)('Add non breaking space.')
81
- }];
82
- //# sourceMappingURL=config.js.map
76
+ {
77
+ keyCombination: { modifier: "primaryShift", character: "SPACE" },
78
+ description: (0, import_i18n.__)("Add non breaking space.")
79
+ }
80
+ ];
81
+ // Annotate the CommonJS export names for ESM import in node:
82
+ 0 && (module.exports = {
83
+ textFormattingShortcuts
84
+ });
85
+ //# sourceMappingURL=config.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["_i18n","require","textFormattingShortcuts","exports","keyCombination","modifier","character","description","__","aliases"],"sources":["@wordpress/edit-widgets/src/components/keyboard-shortcut-help-modal/config.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\nexport const textFormattingShortcuts = [\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'b' },\n\t\tdescription: __( 'Make the selected text bold.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'i' },\n\t\tdescription: __( 'Make the selected text italic.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'k' },\n\t\tdescription: __( 'Convert the selected text into a link.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primaryShift', character: 'k' },\n\t\tdescription: __( 'Remove a link.' ),\n\t},\n\t{\n\t\tkeyCombination: { character: '[[' },\n\t\tdescription: __( 'Insert a link to a post or page.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'u' },\n\t\tdescription: __( 'Underline the selected text.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'access', character: 'd' },\n\t\tdescription: __( 'Strikethrough the selected text.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'access', character: 'x' },\n\t\tdescription: __( 'Make the selected text inline code.' ),\n\t},\n\t{\n\t\tkeyCombination: {\n\t\t\tmodifier: 'access',\n\t\t\tcharacter: '0',\n\t\t},\n\t\taliases: [\n\t\t\t{\n\t\t\t\tmodifier: 'access',\n\t\t\t\tcharacter: '7',\n\t\t\t},\n\t\t],\n\t\tdescription: __( 'Convert the current heading to a paragraph.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'access', character: '1-6' },\n\t\tdescription: __(\n\t\t\t'Convert the current paragraph or heading to a heading of level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AQ,EAAE,QAAQ;IAAEC,SAAS,EAAE;EAAI,CAAC;EACtDC,WAAW,EAAE,IAAAC,QAAE,EAAE,qCAAsC;AACxD,CAAC,EACD;EACCJ,cAAc,EAAE;IACfC,QAAQ,EAAE,QAAQ;IAClBC,SAAS,EAAE;EACZ,CAAC;EACDG,OAAO,EAAE,CACR;IACCJ,QAAQ,EAAE,QAAQ;IAClBC,SAAS,EAAE;EACZ,CAAC,CACD;EACDC,WAAW,EAAE,IAAAC,QAAE,EAAE,6CAA8C;AAChE,CAAC,EACD;EACCJ,cAAc,EAAE;IAAEC,QAAQ,EAAE,QAAQ;IAAEC,SAAS,EAAE;EAAM,CAAC;EACxDC,WAAW,EAAE,IAAAC,QAAE,EACd,wEACD;AACD,CAAC,EACD;EACCJ,cAAc,EAAE;IAAEC,QAAQ,EAAE,cAAc;IAAEC,SAAS,EAAE;EAAQ,CAAC;EAChEC,WAAW,EAAE,IAAAC,QAAE,EAAE,yBAA0B;AAC5C,CAAC,CACD","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/keyboard-shortcut-help-modal/config.js"],
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\nexport const textFormattingShortcuts = [\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'b' },\n\t\tdescription: __( 'Make the selected text bold.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'i' },\n\t\tdescription: __( 'Make the selected text italic.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'k' },\n\t\tdescription: __( 'Convert the selected text into a link.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primaryShift', character: 'k' },\n\t\tdescription: __( 'Remove a link.' ),\n\t},\n\t{\n\t\tkeyCombination: { character: '[[' },\n\t\tdescription: __( 'Insert a link to a post or page.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'u' },\n\t\tdescription: __( 'Underline the selected text.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'access', character: 'd' },\n\t\tdescription: __( 'Strikethrough the selected text.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'access', character: 'x' },\n\t\tdescription: __( 'Make the selected text inline code.' ),\n\t},\n\t{\n\t\tkeyCombination: {\n\t\t\tmodifier: 'access',\n\t\t\tcharacter: '0',\n\t\t},\n\t\taliases: [\n\t\t\t{\n\t\t\t\tmodifier: 'access',\n\t\t\t\tcharacter: '7',\n\t\t\t},\n\t\t],\n\t\tdescription: __( 'Convert the current heading to a paragraph.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'access', character: '1-6' },\n\t\tdescription: __(\n\t\t\t'Convert the current paragraph or heading to a heading of level 1 to 6.'\n\t\t),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primaryShift', character: 'SPACE' },\n\t\tdescription: __( 'Add non breaking space.' ),\n\t},\n];\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAmB;AAEZ,MAAM,0BAA0B;AAAA,EACtC;AAAA,IACC,gBAAgB,EAAE,UAAU,WAAW,WAAW,IAAI;AAAA,IACtD,iBAAa,gBAAI,8BAA+B;AAAA,EACjD;AAAA,EACA;AAAA,IACC,gBAAgB,EAAE,UAAU,WAAW,WAAW,IAAI;AAAA,IACtD,iBAAa,gBAAI,gCAAiC;AAAA,EACnD;AAAA,EACA;AAAA,IACC,gBAAgB,EAAE,UAAU,WAAW,WAAW,IAAI;AAAA,IACtD,iBAAa,gBAAI,wCAAyC;AAAA,EAC3D;AAAA,EACA;AAAA,IACC,gBAAgB,EAAE,UAAU,gBAAgB,WAAW,IAAI;AAAA,IAC3D,iBAAa,gBAAI,gBAAiB;AAAA,EACnC;AAAA,EACA;AAAA,IACC,gBAAgB,EAAE,WAAW,KAAK;AAAA,IAClC,iBAAa,gBAAI,kCAAmC;AAAA,EACrD;AAAA,EACA;AAAA,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