@wordpress/editor 13.19.3 → 13.20.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 (274) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +6 -6
  3. package/build/components/autocompleters/user.js +5 -4
  4. package/build/components/autocompleters/user.js.map +1 -1
  5. package/build/components/deprecated.js +3 -2
  6. package/build/components/deprecated.js.map +1 -1
  7. package/build/components/document-outline/index.js +11 -11
  8. package/build/components/document-outline/index.js.map +1 -1
  9. package/build/components/document-outline/item.js +6 -6
  10. package/build/components/document-outline/item.js.map +1 -1
  11. package/build/components/editor-help/add-blocks.native.js +5 -5
  12. package/build/components/editor-help/add-blocks.native.js.map +1 -1
  13. package/build/components/editor-help/customize-blocks.native.js +5 -5
  14. package/build/components/editor-help/customize-blocks.native.js.map +1 -1
  15. package/build/components/editor-help/help-detail-navigation-screen.native.js +8 -7
  16. package/build/components/editor-help/help-detail-navigation-screen.native.js.map +1 -1
  17. package/build/components/editor-help/help-get-support-button.native.js +3 -3
  18. package/build/components/editor-help/help-get-support-button.native.js.map +1 -1
  19. package/build/components/editor-help/help-section-title.native.js +3 -3
  20. package/build/components/editor-help/help-section-title.native.js.map +1 -1
  21. package/build/components/editor-help/help-topic-row.native.js +3 -3
  22. package/build/components/editor-help/help-topic-row.native.js.map +1 -1
  23. package/build/components/editor-help/icon-move-blocks.native.js +3 -3
  24. package/build/components/editor-help/icon-move-blocks.native.js.map +1 -1
  25. package/build/components/editor-help/index.native.js +19 -19
  26. package/build/components/editor-help/index.native.js.map +1 -1
  27. package/build/components/editor-help/intro-to-blocks.native.js +15 -15
  28. package/build/components/editor-help/intro-to-blocks.native.js.map +1 -1
  29. package/build/components/editor-help/move-blocks.native.js +9 -9
  30. package/build/components/editor-help/move-blocks.native.js.map +1 -1
  31. package/build/components/editor-help/remove-blocks.native.js +4 -4
  32. package/build/components/editor-help/remove-blocks.native.js.map +1 -1
  33. package/build/components/editor-help/view-sections.native.js +8 -8
  34. package/build/components/editor-help/view-sections.native.js.map +1 -1
  35. package/build/components/editor-history/redo.js +3 -2
  36. package/build/components/editor-history/redo.js.map +1 -1
  37. package/build/components/editor-history/undo.js +3 -2
  38. package/build/components/editor-history/undo.js.map +1 -1
  39. package/build/components/editor-notices/index.js +4 -4
  40. package/build/components/editor-notices/index.js.map +1 -1
  41. package/build/components/editor-snackbars/index.js +2 -2
  42. package/build/components/editor-snackbars/index.js.map +1 -1
  43. package/build/components/entities-saved-states/entity-record-item.js +3 -3
  44. package/build/components/entities-saved-states/entity-record-item.js.map +1 -1
  45. package/build/components/entities-saved-states/entity-type-list.js +4 -4
  46. package/build/components/entities-saved-states/entity-type-list.js.map +1 -1
  47. package/build/components/entities-saved-states/index.js +10 -9
  48. package/build/components/entities-saved-states/index.js.map +1 -1
  49. package/build/components/error-boundary/index.js +5 -4
  50. package/build/components/error-boundary/index.js.map +1 -1
  51. package/build/components/global-keyboard-shortcuts/register-shortcuts.js +2 -1
  52. package/build/components/global-keyboard-shortcuts/register-shortcuts.js.map +1 -1
  53. package/build/components/local-autosave-monitor/index.js +2 -1
  54. package/build/components/local-autosave-monitor/index.js.map +1 -1
  55. package/build/components/page-attributes/order.js +5 -4
  56. package/build/components/page-attributes/order.js.map +1 -1
  57. package/build/components/page-attributes/parent.js +3 -2
  58. package/build/components/page-attributes/parent.js.map +1 -1
  59. package/build/components/post-author/check.js +2 -2
  60. package/build/components/post-author/check.js.map +1 -1
  61. package/build/components/post-author/combobox.js +3 -2
  62. package/build/components/post-author/combobox.js.map +1 -1
  63. package/build/components/post-author/index.js +3 -3
  64. package/build/components/post-author/index.js.map +1 -1
  65. package/build/components/post-author/select.js +3 -2
  66. package/build/components/post-author/select.js.map +1 -1
  67. package/build/components/post-comments/index.js +2 -2
  68. package/build/components/post-comments/index.js.map +1 -1
  69. package/build/components/post-excerpt/check.js +2 -2
  70. package/build/components/post-excerpt/check.js.map +1 -1
  71. package/build/components/post-excerpt/index.js +4 -4
  72. package/build/components/post-excerpt/index.js.map +1 -1
  73. package/build/components/post-featured-image/check.js +3 -3
  74. package/build/components/post-featured-image/check.js.map +1 -1
  75. package/build/components/post-featured-image/index.js +15 -14
  76. package/build/components/post-featured-image/index.js.map +1 -1
  77. package/build/components/post-format/check.js +2 -2
  78. package/build/components/post-format/check.js.map +1 -1
  79. package/build/components/post-format/index.js +5 -5
  80. package/build/components/post-format/index.js.map +1 -1
  81. package/build/components/post-last-revision/check.js +2 -2
  82. package/build/components/post-last-revision/check.js.map +1 -1
  83. package/build/components/post-last-revision/index.js +2 -2
  84. package/build/components/post-last-revision/index.js.map +1 -1
  85. package/build/components/post-locked-modal/index.js +14 -13
  86. package/build/components/post-locked-modal/index.js.map +1 -1
  87. package/build/components/post-pending-status/index.js +2 -2
  88. package/build/components/post-pending-status/index.js.map +1 -1
  89. package/build/components/post-pingbacks/index.js +2 -2
  90. package/build/components/post-pingbacks/index.js.map +1 -1
  91. package/build/components/post-preview-button/index.js +8 -7
  92. package/build/components/post-preview-button/index.js.map +1 -1
  93. package/build/components/post-publish-button/index.js +4 -3
  94. package/build/components/post-publish-button/index.js.map +1 -1
  95. package/build/components/post-publish-panel/index.js +13 -12
  96. package/build/components/post-publish-panel/index.js.map +1 -1
  97. package/build/components/post-publish-panel/maybe-category-panel.js +5 -4
  98. package/build/components/post-publish-panel/maybe-category-panel.js.map +1 -1
  99. package/build/components/post-publish-panel/maybe-post-format-panel.js +5 -5
  100. package/build/components/post-publish-panel/maybe-post-format-panel.js.map +1 -1
  101. package/build/components/post-publish-panel/maybe-tags-panel.js +6 -5
  102. package/build/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
  103. package/build/components/post-publish-panel/maybe-upload-media.js +9 -8
  104. package/build/components/post-publish-panel/maybe-upload-media.js.map +1 -1
  105. package/build/components/post-publish-panel/postpublish.js +15 -14
  106. package/build/components/post-publish-panel/postpublish.js.map +1 -1
  107. package/build/components/post-publish-panel/prepublish.js +15 -15
  108. package/build/components/post-publish-panel/prepublish.js.map +1 -1
  109. package/build/components/post-saved-state/index.js +5 -4
  110. package/build/components/post-saved-state/index.js.map +1 -1
  111. package/build/components/post-schedule/index.js +3 -2
  112. package/build/components/post-schedule/index.js.map +1 -1
  113. package/build/components/post-slug/check.js +2 -2
  114. package/build/components/post-slug/check.js.map +1 -1
  115. package/build/components/post-slug/index.js +3 -2
  116. package/build/components/post-slug/index.js.map +1 -1
  117. package/build/components/post-sticky/check.js +12 -14
  118. package/build/components/post-sticky/check.js.map +1 -1
  119. package/build/components/post-sticky/index.js +14 -24
  120. package/build/components/post-sticky/index.js.map +1 -1
  121. package/build/components/post-switch-to-draft-button/index.js +35 -43
  122. package/build/components/post-switch-to-draft-button/index.js.map +1 -1
  123. package/build/components/post-sync-status/index.js +10 -9
  124. package/build/components/post-sync-status/index.js.map +1 -1
  125. package/build/components/post-taxonomies/flat-term-selector.js +4 -3
  126. package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
  127. package/build/components/post-taxonomies/hierarchical-term-selector.js +15 -14
  128. package/build/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
  129. package/build/components/post-taxonomies/index.js +3 -2
  130. package/build/components/post-taxonomies/index.js.map +1 -1
  131. package/build/components/post-taxonomies/most-used-terms.js +6 -6
  132. package/build/components/post-taxonomies/most-used-terms.js.map +1 -1
  133. package/build/components/post-template/index.js +2 -2
  134. package/build/components/post-template/index.js.map +1 -1
  135. package/build/components/post-text-editor/index.js +4 -3
  136. package/build/components/post-text-editor/index.js.map +1 -1
  137. package/build/components/post-title/index.js +4 -3
  138. package/build/components/post-title/index.js.map +1 -1
  139. package/build/components/post-title/index.native.js +4 -3
  140. package/build/components/post-title/index.native.js.map +1 -1
  141. package/build/components/post-trash/index.js +14 -4
  142. package/build/components/post-trash/index.js.map +1 -1
  143. package/build/components/post-type-support-check/index.js +2 -2
  144. package/build/components/post-type-support-check/index.js.map +1 -1
  145. package/build/components/post-url/index.js +11 -10
  146. package/build/components/post-url/index.js.map +1 -1
  147. package/build/components/post-visibility/index.js +17 -16
  148. package/build/components/post-visibility/index.js.map +1 -1
  149. package/build/components/provider/index.js +7 -6
  150. package/build/components/provider/index.js.map +1 -1
  151. package/build/components/provider/index.native.js +4 -3
  152. package/build/components/provider/index.native.js.map +1 -1
  153. package/build/components/provider/with-registry-provider.js +4 -3
  154. package/build/components/provider/with-registry-provider.js.map +1 -1
  155. package/build/components/table-of-contents/index.js +5 -4
  156. package/build/components/table-of-contents/index.js.map +1 -1
  157. package/build/components/table-of-contents/panel.js +15 -15
  158. package/build/components/table-of-contents/panel.js.map +1 -1
  159. package/build/components/template-validation-notice/index.js +2 -2
  160. package/build/components/template-validation-notice/index.js.map +1 -1
  161. package/build/components/time-to-read/index.js +5 -4
  162. package/build/components/time-to-read/index.js.map +1 -1
  163. package/build/components/unsaved-changes-warning/index.js +1 -1
  164. package/build/components/unsaved-changes-warning/index.js.map +1 -1
  165. package/build/components/word-count/index.js +2 -2
  166. package/build/components/word-count/index.js.map +1 -1
  167. package/build/hooks/custom-sources-backwards-compatibility.js +3 -2
  168. package/build/hooks/custom-sources-backwards-compatibility.js.map +1 -1
  169. package/build-module/components/autocompleters/user.js +1 -1
  170. package/build-module/components/deprecated.js +1 -1
  171. package/build-module/components/document-outline/index.js +1 -1
  172. package/build-module/components/document-outline/item.js +1 -1
  173. package/build-module/components/editor-help/add-blocks.native.js +1 -1
  174. package/build-module/components/editor-help/customize-blocks.native.js +1 -1
  175. package/build-module/components/editor-help/help-detail-navigation-screen.native.js +1 -1
  176. package/build-module/components/editor-help/help-get-support-button.native.js +1 -1
  177. package/build-module/components/editor-help/help-section-title.native.js +1 -1
  178. package/build-module/components/editor-help/help-topic-row.native.js +1 -1
  179. package/build-module/components/editor-help/icon-move-blocks.native.js +1 -1
  180. package/build-module/components/editor-help/index.native.js +1 -1
  181. package/build-module/components/editor-help/intro-to-blocks.native.js +1 -1
  182. package/build-module/components/editor-help/move-blocks.native.js +1 -1
  183. package/build-module/components/editor-help/remove-blocks.native.js +1 -1
  184. package/build-module/components/editor-help/view-sections.native.js +1 -1
  185. package/build-module/components/editor-history/redo.js +1 -1
  186. package/build-module/components/editor-history/undo.js +1 -1
  187. package/build-module/components/editor-notices/index.js +1 -1
  188. package/build-module/components/editor-snackbars/index.js +1 -1
  189. package/build-module/components/entities-saved-states/entity-record-item.js +1 -1
  190. package/build-module/components/entities-saved-states/entity-type-list.js +1 -1
  191. package/build-module/components/entities-saved-states/index.js +1 -1
  192. package/build-module/components/error-boundary/index.js +1 -1
  193. package/build-module/components/global-keyboard-shortcuts/register-shortcuts.js +1 -1
  194. package/build-module/components/local-autosave-monitor/index.js +1 -1
  195. package/build-module/components/page-attributes/order.js +1 -1
  196. package/build-module/components/page-attributes/parent.js +1 -1
  197. package/build-module/components/post-author/check.js +1 -1
  198. package/build-module/components/post-author/combobox.js +1 -1
  199. package/build-module/components/post-author/index.js +1 -1
  200. package/build-module/components/post-author/select.js +1 -1
  201. package/build-module/components/post-comments/index.js +1 -1
  202. package/build-module/components/post-excerpt/check.js +1 -1
  203. package/build-module/components/post-excerpt/index.js +1 -1
  204. package/build-module/components/post-featured-image/check.js +1 -1
  205. package/build-module/components/post-featured-image/index.js +1 -1
  206. package/build-module/components/post-format/check.js +1 -1
  207. package/build-module/components/post-format/index.js +1 -1
  208. package/build-module/components/post-last-revision/check.js +1 -1
  209. package/build-module/components/post-last-revision/index.js +1 -1
  210. package/build-module/components/post-locked-modal/index.js +1 -1
  211. package/build-module/components/post-pending-status/index.js +1 -1
  212. package/build-module/components/post-pingbacks/index.js +1 -1
  213. package/build-module/components/post-preview-button/index.js +1 -1
  214. package/build-module/components/post-publish-button/index.js +1 -1
  215. package/build-module/components/post-publish-panel/index.js +1 -1
  216. package/build-module/components/post-publish-panel/maybe-category-panel.js +1 -1
  217. package/build-module/components/post-publish-panel/maybe-post-format-panel.js +1 -1
  218. package/build-module/components/post-publish-panel/maybe-tags-panel.js +1 -1
  219. package/build-module/components/post-publish-panel/maybe-upload-media.js +1 -1
  220. package/build-module/components/post-publish-panel/postpublish.js +1 -1
  221. package/build-module/components/post-publish-panel/prepublish.js +1 -1
  222. package/build-module/components/post-saved-state/index.js +2 -2
  223. package/build-module/components/post-saved-state/index.js.map +1 -1
  224. package/build-module/components/post-schedule/index.js +1 -1
  225. package/build-module/components/post-slug/check.js +1 -1
  226. package/build-module/components/post-slug/index.js +1 -1
  227. package/build-module/components/post-sticky/check.js +13 -13
  228. package/build-module/components/post-sticky/check.js.map +1 -1
  229. package/build-module/components/post-sticky/index.js +13 -21
  230. package/build-module/components/post-sticky/index.js.map +1 -1
  231. package/build-module/components/post-switch-to-draft-button/index.js +32 -40
  232. package/build-module/components/post-switch-to-draft-button/index.js.map +1 -1
  233. package/build-module/components/post-sync-status/index.js +1 -1
  234. package/build-module/components/post-taxonomies/flat-term-selector.js +1 -1
  235. package/build-module/components/post-taxonomies/hierarchical-term-selector.js +2 -2
  236. package/build-module/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
  237. package/build-module/components/post-taxonomies/index.js +1 -1
  238. package/build-module/components/post-taxonomies/most-used-terms.js +1 -1
  239. package/build-module/components/post-template/index.js +1 -1
  240. package/build-module/components/post-text-editor/index.js +1 -1
  241. package/build-module/components/post-title/index.js +1 -1
  242. package/build-module/components/post-title/index.native.js +1 -1
  243. package/build-module/components/post-trash/index.js +15 -5
  244. package/build-module/components/post-trash/index.js.map +1 -1
  245. package/build-module/components/post-type-support-check/index.js +2 -2
  246. package/build-module/components/post-type-support-check/index.js.map +1 -1
  247. package/build-module/components/post-url/index.js +1 -1
  248. package/build-module/components/post-visibility/index.js +1 -1
  249. package/build-module/components/provider/index.js +1 -1
  250. package/build-module/components/provider/index.native.js +1 -1
  251. package/build-module/components/provider/with-registry-provider.js +1 -1
  252. package/build-module/components/table-of-contents/index.js +1 -1
  253. package/build-module/components/table-of-contents/panel.js +1 -1
  254. package/build-module/components/template-validation-notice/index.js +1 -1
  255. package/build-module/components/time-to-read/index.js +1 -1
  256. package/build-module/components/unsaved-changes-warning/index.js +1 -1
  257. package/build-module/components/unsaved-changes-warning/index.js.map +1 -1
  258. package/build-module/components/word-count/index.js +1 -1
  259. package/build-module/hooks/custom-sources-backwards-compatibility.js +1 -1
  260. package/build-style/style-rtl.css +1 -1
  261. package/build-style/style.css +1 -1
  262. package/package.json +31 -31
  263. package/src/components/post-featured-image/README.md +3 -3
  264. package/src/components/post-saved-state/index.js +1 -1
  265. package/src/components/post-sticky/check.js +10 -13
  266. package/src/components/post-sticky/index.js +10 -20
  267. package/src/components/post-sticky/test/index.js +31 -16
  268. package/src/components/post-switch-to-draft-button/index.js +20 -35
  269. package/src/components/post-taxonomies/README.md +2 -2
  270. package/src/components/post-taxonomies/hierarchical-term-selector.js +1 -1
  271. package/src/components/post-trash/index.js +34 -11
  272. package/src/components/post-type-support-check/README.md +1 -1
  273. package/src/components/post-type-support-check/index.js +2 -2
  274. package/src/components/unsaved-changes-warning/index.js +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 13.20.0 (2023-10-05)
6
+
5
7
  ## 13.19.0 (2023-09-20)
6
8
 
7
9
  ## 13.18.0 (2023-08-31)
package/README.md CHANGED
@@ -37,8 +37,8 @@ When returned by your block's `edit` implementation, renders a toolbar of icon b
37
37
  Example:
38
38
 
39
39
  ```js
40
- ( function ( editor, element ) {
41
- var el = element.createElement,
40
+ ( function ( editor, React ) {
41
+ var el = React.createElement,
42
42
  BlockControls = editor.BlockControls,
43
43
  AlignmentToolbar = editor.AlignmentToolbar;
44
44
 
@@ -64,7 +64,7 @@ Example:
64
64
  ),
65
65
  ];
66
66
  }
67
- } )( window.wp.editor, window.wp.element );
67
+ } )( window.wp.editor, window.React );
68
68
  ```
69
69
 
70
70
  Note in this example that we render `AlignmentToolbar` as a child of the `BlockControls` element. This is another pre-configured component you can use to simplify block text alignment.
@@ -95,8 +95,8 @@ The following properties (non-exhaustive list) are made available:
95
95
  Example:
96
96
 
97
97
  ```js
98
- ( function ( editor, element ) {
99
- var el = element.createElement,
98
+ ( function ( editor, React ) {
99
+ var el = React.createElement,
100
100
  RichText = editor.RichText;
101
101
 
102
102
  function edit( props ) {
@@ -111,7 +111,7 @@ Example:
111
111
  }
112
112
 
113
113
  // blocks.registerBlockType( ..., { edit: edit, ... } );
114
- } )( window.wp.editor, window.wp.element );
114
+ } )( window.wp.editor, window.React );
115
115
  ```
116
116
 
117
117
  ## Contributing to this package
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  exports.getUserLabel = getUserLabel;
8
+ var _react = require("react");
8
9
  var _element = require("@wordpress/element");
9
10
  var _data = require("@wordpress/data");
10
11
  var _coreData = require("@wordpress/core-data");
@@ -15,16 +16,16 @@ var _coreData = require("@wordpress/core-data");
15
16
  /** @typedef {import('@wordpress/components').WPCompleter} WPCompleter */
16
17
 
17
18
  function getUserLabel(user) {
18
- const avatar = user.avatar_urls && user.avatar_urls[24] ? (0, _element.createElement)("img", {
19
+ const avatar = user.avatar_urls && user.avatar_urls[24] ? (0, _react.createElement)("img", {
19
20
  className: "editor-autocompleters__user-avatar",
20
21
  alt: "",
21
22
  src: user.avatar_urls[24]
22
- }) : (0, _element.createElement)("span", {
23
+ }) : (0, _react.createElement)("span", {
23
24
  className: "editor-autocompleters__no-avatar"
24
25
  });
25
- return (0, _element.createElement)(_element.Fragment, null, avatar, (0, _element.createElement)("span", {
26
+ return (0, _react.createElement)(_react.Fragment, null, avatar, (0, _react.createElement)("span", {
26
27
  className: "editor-autocompleters__user-name"
27
- }, user.name), (0, _element.createElement)("span", {
28
+ }, user.name), (0, _react.createElement)("span", {
28
29
  className: "editor-autocompleters__user-slug"
29
30
  }, user.slug));
30
31
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","_data","_coreData","getUserLabel","user","avatar","avatar_urls","createElement","className","alt","src","Fragment","name","slug","_default","triggerPrefix","useItems","filterValue","users","useSelect","select","getUsers","coreStore","context","search","encodeURIComponent","options","useMemo","map","key","value","label","getOptionCompletion","exports","default"],"sources":["@wordpress/editor/src/components/autocompleters/user.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useMemo } from '@wordpress/element';\nimport { useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\n\n/** @typedef {import('@wordpress/components').WPCompleter} WPCompleter */\n\nexport function getUserLabel( user ) {\n\tconst avatar =\n\t\tuser.avatar_urls && user.avatar_urls[ 24 ] ? (\n\t\t\t<img\n\t\t\t\tclassName=\"editor-autocompleters__user-avatar\"\n\t\t\t\talt=\"\"\n\t\t\t\tsrc={ user.avatar_urls[ 24 ] }\n\t\t\t/>\n\t\t) : (\n\t\t\t<span className=\"editor-autocompleters__no-avatar\"></span>\n\t\t);\n\n\treturn (\n\t\t<>\n\t\t\t{ avatar }\n\t\t\t<span className=\"editor-autocompleters__user-name\">\n\t\t\t\t{ user.name }\n\t\t\t</span>\n\t\t\t<span className=\"editor-autocompleters__user-slug\">\n\t\t\t\t{ user.slug }\n\t\t\t</span>\n\t\t</>\n\t);\n}\n\n/**\n * A user mentions completer.\n *\n * @type {WPCompleter}\n */\nexport default {\n\tname: 'users',\n\tclassName: 'editor-autocompleters__user',\n\ttriggerPrefix: '@',\n\n\tuseItems( filterValue ) {\n\t\tconst users = useSelect(\n\t\t\t( select ) => {\n\t\t\t\tconst { getUsers } = select( coreStore );\n\t\t\t\treturn getUsers( {\n\t\t\t\t\tcontext: 'view',\n\t\t\t\t\tsearch: encodeURIComponent( filterValue ),\n\t\t\t\t} );\n\t\t\t},\n\t\t\t[ filterValue ]\n\t\t);\n\n\t\tconst options = useMemo(\n\t\t\t() =>\n\t\t\t\tusers\n\t\t\t\t\t? users.map( ( user ) => ( {\n\t\t\t\t\t\t\tkey: `user-${ user.slug }`,\n\t\t\t\t\t\t\tvalue: user,\n\t\t\t\t\t\t\tlabel: getUserLabel( user ),\n\t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;QACfC,MAAM,EAAEC,kBAAkB,CAAER,WAAY;MACzC,CAAE,CAAC;IACJ,CAAC,EACD,CAAEA,WAAW,CACd,CAAC;IAED,MAAMS,OAAO,GAAG,IAAAC,gBAAO,EACtB,MACCT,KAAK,GACFA,KAAK,CAACU,GAAG,CAAIxB,IAAI,KAAQ;MACzByB,GAAG,EAAG,QAAQzB,IAAI,CAACS,IAAM,EAAC;MAC1BiB,KAAK,EAAE1B,IAAI;MACX2B,KAAK,EAAE5B,YAAY,CAAEC,IAAK;IAC1B,CAAC,CAAG,CAAC,GACL,EAAE,EACN,CAAEc,KAAK,CACR,CAAC;IAED,OAAO,CAAEQ,OAAO,CAAE;EACnB,CAAC;EAEDM,mBAAmBA,CAAE5B,IAAI,EAAG;IAC3B,OAAQ,IAAIA,IAAI,CAACS,IAAM,EAAC;EACzB;AACD,CAAC;AAAAoB,OAAA,CAAAC,OAAA,GAAApB,QAAA"}
1
+ {"version":3,"names":["_element","require","_data","_coreData","getUserLabel","user","avatar","avatar_urls","_react","createElement","className","alt","src","Fragment","name","slug","_default","triggerPrefix","useItems","filterValue","users","useSelect","select","getUsers","coreStore","context","search","encodeURIComponent","options","useMemo","map","key","value","label","getOptionCompletion","exports","default"],"sources":["@wordpress/editor/src/components/autocompleters/user.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useMemo } from '@wordpress/element';\nimport { useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\n\n/** @typedef {import('@wordpress/components').WPCompleter} WPCompleter */\n\nexport function getUserLabel( user ) {\n\tconst avatar =\n\t\tuser.avatar_urls && user.avatar_urls[ 24 ] ? (\n\t\t\t<img\n\t\t\t\tclassName=\"editor-autocompleters__user-avatar\"\n\t\t\t\talt=\"\"\n\t\t\t\tsrc={ user.avatar_urls[ 24 ] }\n\t\t\t/>\n\t\t) : (\n\t\t\t<span className=\"editor-autocompleters__no-avatar\"></span>\n\t\t);\n\n\treturn (\n\t\t<>\n\t\t\t{ avatar }\n\t\t\t<span className=\"editor-autocompleters__user-name\">\n\t\t\t\t{ user.name }\n\t\t\t</span>\n\t\t\t<span className=\"editor-autocompleters__user-slug\">\n\t\t\t\t{ user.slug }\n\t\t\t</span>\n\t\t</>\n\t);\n}\n\n/**\n * A user mentions completer.\n *\n * @type {WPCompleter}\n */\nexport default {\n\tname: 'users',\n\tclassName: 'editor-autocompleters__user',\n\ttriggerPrefix: '@',\n\n\tuseItems( filterValue ) {\n\t\tconst users = useSelect(\n\t\t\t( select ) => {\n\t\t\t\tconst { getUsers } = select( coreStore );\n\t\t\t\treturn getUsers( {\n\t\t\t\t\tcontext: 'view',\n\t\t\t\t\tsearch: encodeURIComponent( filterValue ),\n\t\t\t\t} );\n\t\t\t},\n\t\t\t[ filterValue ]\n\t\t);\n\n\t\tconst options = useMemo(\n\t\t\t() =>\n\t\t\t\tusers\n\t\t\t\t\t? users.map( ( user ) => ( {\n\t\t\t\t\t\t\tkey: `user-${ user.slug }`,\n\t\t\t\t\t\t\tvalue: user,\n\t\t\t\t\t\t\tlabel: getUserLabel( user ),\n\t\t\t\t\t } ) )\n\t\t\t\t\t: [],\n\t\t\t[ users ]\n\t\t);\n\n\t\treturn [ options ];\n\t},\n\n\tgetOptionCompletion( user ) {\n\t\treturn `@${ user.slug }`;\n\t},\n};\n"],"mappings":";;;;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AALA;AACA;AACA;;AAKA;;AAEO,SAASG,YAAYA,CAAEC,IAAI,EAAG;EACpC,MAAMC,MAAM,GACXD,IAAI,CAACE,WAAW,IAAIF,IAAI,CAACE,WAAW,CAAE,EAAE,CAAE,GACzC,IAAAC,MAAA,CAAAC,aAAA;IACCC,SAAS,EAAC,oCAAoC;IAC9CC,GAAG,EAAC,EAAE;IACNC,GAAG,EAAGP,IAAI,CAACE,WAAW,CAAE,EAAE;EAAI,CAC9B,CAAC,GAEF,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,QAAA"}
@@ -12,8 +12,9 @@ Object.defineProperty(exports, "ServerSideRender", {
12
12
  }
13
13
  });
14
14
  exports.withFontSizes = exports.withColors = exports.withColorContext = exports.getFontSizeClass = exports.getFontSize = exports.getColorObjectByColorValue = exports.getColorObjectByAttributeValues = exports.getColorClassName = exports.createCustomColorsHOC = exports.__unstableRichTextInputEvent = exports.WritingFlow = exports.Warning = exports.URLPopover = exports.URLInputButton = exports.URLInput = exports.SkipToSelectedBlock = void 0;
15
- var _element = require("@wordpress/element");
15
+ var _react = require("react");
16
16
  var _deprecated = _interopRequireDefault(require("@wordpress/deprecated"));
17
+ var _element = require("@wordpress/element");
17
18
  var _blockEditor = require("@wordpress/block-editor");
18
19
  var _serverSideRender = _interopRequireDefault(require("@wordpress/server-side-render"));
19
20
  // Block Creation Components.
@@ -28,7 +29,7 @@ function deprecateComponent(name, Wrapped, staticsToHoist = []) {
28
29
  alternative: 'wp.blockEditor.' + name,
29
30
  version: '6.2'
30
31
  });
31
- return (0, _element.createElement)(Wrapped, {
32
+ return (0, _react.createElement)(Wrapped, {
32
33
  ref: ref,
33
34
  ...props
34
35
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","_deprecated","_interopRequireDefault","_blockEditor","_serverSideRender","deprecateComponent","name","Wrapped","staticsToHoist","Component","forwardRef","props","ref","deprecated","since","alternative","version","createElement","forEach","staticName","deprecateFunction","func","args","RichText","RootRichText","exports","isEmpty","Autocomplete","RootAutocomplete","AlignmentToolbar","RootAlignmentToolbar","BlockAlignmentToolbar","RootBlockAlignmentToolbar","BlockControls","RootBlockControls","BlockEdit","RootBlockEdit","BlockEditorKeyboardShortcuts","RootBlockEditorKeyboardShortcuts","BlockFormatControls","RootBlockFormatControls","BlockIcon","RootBlockIcon","BlockInspector","RootBlockInspector","BlockList","RootBlockList","BlockMover","RootBlockMover","BlockNavigationDropdown","RootBlockNavigationDropdown","BlockSelectionClearer","RootBlockSelectionClearer","BlockSettingsMenu","RootBlockSettingsMenu","BlockTitle","RootBlockTitle","BlockToolbar","RootBlockToolbar","ColorPalette","RootColorPalette","ContrastChecker","RootContrastChecker","CopyHandler","RootCopyHandler","DefaultBlockAppender","RootDefaultBlockAppender","FontSizePicker","RootFontSizePicker","Inserter","RootInserter","InnerBlocks","RootInnerBlocks","InspectorAdvancedControls","RootInspectorAdvancedControls","InspectorControls","RootInspectorControls","PanelColorSettings","RootPanelColorSettings","PlainText","RootPlainText","RichTextShortcut","RootRichTextShortcut","RichTextToolbarButton","RootRichTextToolbarButton","__unstableRichTextInputEvent","__unstableRootRichTextInputEvent","MediaPlaceholder","RootMediaPlaceholder","MediaUpload","RootMediaUpload","MediaUploadCheck","RootMediaUploadCheck","MultiSelectScrollIntoView","RootMultiSelectScrollIntoView","NavigableToolbar","RootNavigableToolbar","ObserveTyping","RootObserveTyping","SkipToSelectedBlock","RootSkipToSelectedBlock","URLInput","RootURLInput","URLInputButton","RootURLInputButton","URLPopover","RootURLPopover","Warning","RootWarning","WritingFlow","RootWritingFlow","createCustomColorsHOC","rootCreateCustomColorsHOC","getColorClassName","rootGetColorClassName","getColorObjectByAttributeValues","rootGetColorObjectByAttributeValues","getColorObjectByColorValue","rootGetColorObjectByColorValue","getFontSize","rootGetFontSize","getFontSizeClass","rootGetFontSizeClass","withColorContext","rootWithColorContext","withColors","rootWithColors","withFontSizes","rootWithFontSizes"],"sources":["@wordpress/editor/src/components/deprecated.js"],"sourcesContent":["// Block Creation Components.\n/**\n * WordPress dependencies\n */\nimport deprecated from '@wordpress/deprecated';\nimport { forwardRef } from '@wordpress/element';\nimport {\n\tAutocomplete as RootAutocomplete,\n\tAlignmentToolbar as RootAlignmentToolbar,\n\tBlockAlignmentToolbar as RootBlockAlignmentToolbar,\n\tBlockControls as RootBlockControls,\n\tBlockEdit as RootBlockEdit,\n\tBlockEditorKeyboardShortcuts as RootBlockEditorKeyboardShortcuts,\n\tBlockFormatControls as RootBlockFormatControls,\n\tBlockIcon as RootBlockIcon,\n\tBlockInspector as RootBlockInspector,\n\tBlockList as RootBlockList,\n\tBlockMover as RootBlockMover,\n\tBlockNavigationDropdown as RootBlockNavigationDropdown,\n\tBlockSelectionClearer as RootBlockSelectionClearer,\n\tBlockSettingsMenu as RootBlockSettingsMenu,\n\tBlockTitle as RootBlockTitle,\n\tBlockToolbar as RootBlockToolbar,\n\tColorPalette as RootColorPalette,\n\tContrastChecker as RootContrastChecker,\n\tCopyHandler as RootCopyHandler,\n\tcreateCustomColorsHOC as rootCreateCustomColorsHOC,\n\tDefaultBlockAppender as RootDefaultBlockAppender,\n\tFontSizePicker as RootFontSizePicker,\n\tgetColorClassName as rootGetColorClassName,\n\tgetColorObjectByAttributeValues as rootGetColorObjectByAttributeValues,\n\tgetColorObjectByColorValue as rootGetColorObjectByColorValue,\n\tgetFontSize as rootGetFontSize,\n\tgetFontSizeClass as rootGetFontSizeClass,\n\tInserter as RootInserter,\n\tInnerBlocks as RootInnerBlocks,\n\tInspectorAdvancedControls as RootInspectorAdvancedControls,\n\tInspectorControls as RootInspectorControls,\n\tPanelColorSettings as RootPanelColorSettings,\n\tPlainText as RootPlainText,\n\tRichText as RootRichText,\n\tRichTextShortcut as RootRichTextShortcut,\n\tRichTextToolbarButton as RootRichTextToolbarButton,\n\t__unstableRichTextInputEvent as __unstableRootRichTextInputEvent,\n\tMediaPlaceholder as RootMediaPlaceholder,\n\tMediaUpload as RootMediaUpload,\n\tMediaUploadCheck as RootMediaUploadCheck,\n\tMultiSelectScrollIntoView as RootMultiSelectScrollIntoView,\n\tNavigableToolbar as RootNavigableToolbar,\n\tObserveTyping as RootObserveTyping,\n\tSkipToSelectedBlock as RootSkipToSelectedBlock,\n\tURLInput as RootURLInput,\n\tURLInputButton as RootURLInputButton,\n\tURLPopover as RootURLPopover,\n\tWarning as RootWarning,\n\tWritingFlow as RootWritingFlow,\n\twithColorContext as rootWithColorContext,\n\twithColors as rootWithColors,\n\twithFontSizes as rootWithFontSizes,\n} from '@wordpress/block-editor';\n\nexport { default as ServerSideRender } from '@wordpress/server-side-render';\n\nfunction deprecateComponent( name, Wrapped, staticsToHoist = [] ) {\n\tconst Component = forwardRef( ( props, ref ) => {\n\t\tdeprecated( 'wp.editor.' + name, {\n\t\t\tsince: '5.3',\n\t\t\talternative: 'wp.blockEditor.' + name,\n\t\t\tversion: '6.2',\n\t\t} );\n\n\t\treturn <Wrapped ref={ ref } { ...props } />;\n\t} );\n\n\tstaticsToHoist.forEach( ( staticName ) => {\n\t\tComponent[ staticName ] = deprecateComponent(\n\t\t\tname + '.' + staticName,\n\t\t\tWrapped[ staticName ]\n\t\t);\n\t} );\n\n\treturn Component;\n}\n\nfunction deprecateFunction( name, func ) {\n\treturn ( ...args ) => {\n\t\tdeprecated( 'wp.editor.' + name, {\n\t\t\tsince: '5.3',\n\t\t\talternative: 'wp.blockEditor.' + name,\n\t\t\tversion: '6.2',\n\t\t} );\n\n\t\treturn func( ...args );\n\t};\n}\n\nconst RichText = deprecateComponent( 'RichText', RootRichText, [ 'Content' ] );\nRichText.isEmpty = deprecateFunction(\n\t'RichText.isEmpty',\n\tRootRichText.isEmpty\n);\n\nexport { RichText };\nexport const Autocomplete = deprecateComponent(\n\t'Autocomplete',\n\tRootAutocomplete\n);\nexport const AlignmentToolbar = deprecateComponent(\n\t'AlignmentToolbar',\n\tRootAlignmentToolbar\n);\nexport const BlockAlignmentToolbar = deprecateComponent(\n\t'BlockAlignmentToolbar',\n\tRootBlockAlignmentToolbar\n);\nexport const BlockControls = deprecateComponent(\n\t'BlockControls',\n\tRootBlockControls,\n\t[ 'Slot' ]\n);\nexport const BlockEdit = deprecateComponent( 'BlockEdit', RootBlockEdit );\nexport const BlockEditorKeyboardShortcuts = deprecateComponent(\n\t'BlockEditorKeyboardShortcuts',\n\tRootBlockEditorKeyboardShortcuts\n);\nexport const BlockFormatControls = deprecateComponent(\n\t'BlockFormatControls',\n\tRootBlockFormatControls,\n\t[ 'Slot' ]\n);\nexport const BlockIcon = deprecateComponent( 'BlockIcon', RootBlockIcon );\nexport const BlockInspector = deprecateComponent(\n\t'BlockInspector',\n\tRootBlockInspector\n);\nexport const BlockList = deprecateComponent( 'BlockList', RootBlockList );\nexport const BlockMover = deprecateComponent( 'BlockMover', RootBlockMover );\nexport const BlockNavigationDropdown = deprecateComponent(\n\t'BlockNavigationDropdown',\n\tRootBlockNavigationDropdown\n);\nexport const BlockSelectionClearer = deprecateComponent(\n\t'BlockSelectionClearer',\n\tRootBlockSelectionClearer\n);\nexport const BlockSettingsMenu = deprecateComponent(\n\t'BlockSettingsMenu',\n\tRootBlockSettingsMenu\n);\nexport const BlockTitle = deprecateComponent( 'BlockTitle', RootBlockTitle );\nexport const BlockToolbar = deprecateComponent(\n\t'BlockToolbar',\n\tRootBlockToolbar\n);\nexport const ColorPalette = deprecateComponent(\n\t'ColorPalette',\n\tRootColorPalette\n);\nexport const ContrastChecker = deprecateComponent(\n\t'ContrastChecker',\n\tRootContrastChecker\n);\nexport const CopyHandler = deprecateComponent( 'CopyHandler', RootCopyHandler );\nexport const DefaultBlockAppender = deprecateComponent(\n\t'DefaultBlockAppender',\n\tRootDefaultBlockAppender\n);\nexport const FontSizePicker = deprecateComponent(\n\t'FontSizePicker',\n\tRootFontSizePicker\n);\nexport const Inserter = deprecateComponent( 'Inserter', RootInserter );\nexport const InnerBlocks = deprecateComponent( 'InnerBlocks', RootInnerBlocks, [\n\t'ButtonBlockAppender',\n\t'DefaultBlockAppender',\n\t'Content',\n] );\nexport const InspectorAdvancedControls = deprecateComponent(\n\t'InspectorAdvancedControls',\n\tRootInspectorAdvancedControls,\n\t[ 'Slot' ]\n);\nexport const InspectorControls = deprecateComponent(\n\t'InspectorControls',\n\tRootInspectorControls,\n\t[ 'Slot' ]\n);\nexport const PanelColorSettings = deprecateComponent(\n\t'PanelColorSettings',\n\tRootPanelColorSettings\n);\nexport const PlainText = deprecateComponent( 'PlainText', RootPlainText );\nexport const RichTextShortcut = deprecateComponent(\n\t'RichTextShortcut',\n\tRootRichTextShortcut\n);\nexport const RichTextToolbarButton = deprecateComponent(\n\t'RichTextToolbarButton',\n\tRootRichTextToolbarButton\n);\nexport const __unstableRichTextInputEvent = deprecateComponent(\n\t'__unstableRichTextInputEvent',\n\t__unstableRootRichTextInputEvent\n);\nexport const MediaPlaceholder = deprecateComponent(\n\t'MediaPlaceholder',\n\tRootMediaPlaceholder\n);\nexport const MediaUpload = deprecateComponent( 'MediaUpload', RootMediaUpload );\nexport const MediaUploadCheck = deprecateComponent(\n\t'MediaUploadCheck',\n\tRootMediaUploadCheck\n);\nexport const MultiSelectScrollIntoView = deprecateComponent(\n\t'MultiSelectScrollIntoView',\n\tRootMultiSelectScrollIntoView\n);\nexport const NavigableToolbar = deprecateComponent(\n\t'NavigableToolbar',\n\tRootNavigableToolbar\n);\nexport const ObserveTyping = deprecateComponent(\n\t'ObserveTyping',\n\tRootObserveTyping\n);\nexport const SkipToSelectedBlock = deprecateComponent(\n\t'SkipToSelectedBlock',\n\tRootSkipToSelectedBlock\n);\nexport const URLInput = deprecateComponent( 'URLInput', RootURLInput );\nexport const URLInputButton = deprecateComponent(\n\t'URLInputButton',\n\tRootURLInputButton\n);\nexport const URLPopover = deprecateComponent( 'URLPopover', RootURLPopover );\nexport const Warning = deprecateComponent( 'Warning', RootWarning );\nexport const WritingFlow = deprecateComponent( 'WritingFlow', RootWritingFlow );\n\nexport const createCustomColorsHOC = deprecateFunction(\n\t'createCustomColorsHOC',\n\trootCreateCustomColorsHOC\n);\nexport const getColorClassName = deprecateFunction(\n\t'getColorClassName',\n\trootGetColorClassName\n);\nexport const getColorObjectByAttributeValues = deprecateFunction(\n\t'getColorObjectByAttributeValues',\n\trootGetColorObjectByAttributeValues\n);\nexport const getColorObjectByColorValue = deprecateFunction(\n\t'getColorObjectByColorValue',\n\trootGetColorObjectByColorValue\n);\nexport const getFontSize = deprecateFunction( 'getFontSize', rootGetFontSize );\nexport const getFontSizeClass = deprecateFunction(\n\t'getFontSizeClass',\n\trootGetFontSizeClass\n);\nexport const withColorContext = deprecateFunction(\n\t'withColorContext',\n\trootWithColorContext\n);\nexport const withColors = deprecateFunction( 'withColors', rootWithColors );\nexport const withFontSizes = deprecateFunction(\n\t'withFontSizes',\n\trootWithFontSizes\n);\n"],"mappings":";;;;;;;;;;;;;;AAKA,IAAAA,QAAA,GAAAC,OAAA;AADA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAH,OAAA;AAuDA,IAAAI,iBAAA,GAAAF,sBAAA,CAAAF,OAAA;AA7DA;AACA;AACA;AACA;;AA4DA,SAASK,kBAAkBA,CAAEC,IAAI,EAAEC,OAAO,EAAEC,cAAc,GAAG,EAAE,EAAG;EACjE,MAAMC,SAAS,GAAG,IAAAC,mBAAU,EAAE,CAAEC,KAAK,EAAEC,GAAG,KAAM;IAC/C,IAAAC,mBAAU,EAAE,YAAY,GAAGP,IAAI,EAAE;MAChCQ,KAAK,EAAE,KAAK;MACZC,WAAW,EAAE,iBAAiB,GAAGT,IAAI;MACrCU,OAAO,EAAE;IACV,CAAE,CAAC;IAEH,OAAO,IAAAjB,QAAA,CAAAkB,aAAA,EAACV,OAAO;MAACK,GAAG,EAAGA,GAAK;MAAA,GAAMD;IAAK,CAAI,CAAC;EAC5C,CAAE,CAAC;EAEHH,cAAc,CAACU,OAAO,CAAIC,UAAU,IAAM;IACzCV,SAAS,CAAEU,UAAU,CAAE,GAAGd,kBAAkB,CAC3CC,IAAI,GAAG,GAAG,GAAGa,UAAU,EACvBZ,OAAO,CAAEY,UAAU,CACpB,CAAC;EACF,CAAE,CAAC;EAEH,OAAOV,SAAS;AACjB;AAEA,SAASW,iBAAiBA,CAAEd,IAAI,EAAEe,IAAI,EAAG;EACxC,OAAO,CAAE,GAAGC,IAAI,KAAM;IACrB,IAAAT,mBAAU,EAAE,YAAY,GAAGP,IAAI,EAAE;MAChCQ,KAAK,EAAE,KAAK;MACZC,WAAW,EAAE,iBAAiB,GAAGT,IAAI;MACrCU,OAAO,EAAE;IACV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aAAA"}
1
+ {"version":3,"names":["_deprecated","_interopRequireDefault","require","_element","_blockEditor","_serverSideRender","deprecateComponent","name","Wrapped","staticsToHoist","Component","forwardRef","props","ref","deprecated","since","alternative","version","_react","createElement","forEach","staticName","deprecateFunction","func","args","RichText","RootRichText","exports","isEmpty","Autocomplete","RootAutocomplete","AlignmentToolbar","RootAlignmentToolbar","BlockAlignmentToolbar","RootBlockAlignmentToolbar","BlockControls","RootBlockControls","BlockEdit","RootBlockEdit","BlockEditorKeyboardShortcuts","RootBlockEditorKeyboardShortcuts","BlockFormatControls","RootBlockFormatControls","BlockIcon","RootBlockIcon","BlockInspector","RootBlockInspector","BlockList","RootBlockList","BlockMover","RootBlockMover","BlockNavigationDropdown","RootBlockNavigationDropdown","BlockSelectionClearer","RootBlockSelectionClearer","BlockSettingsMenu","RootBlockSettingsMenu","BlockTitle","RootBlockTitle","BlockToolbar","RootBlockToolbar","ColorPalette","RootColorPalette","ContrastChecker","RootContrastChecker","CopyHandler","RootCopyHandler","DefaultBlockAppender","RootDefaultBlockAppender","FontSizePicker","RootFontSizePicker","Inserter","RootInserter","InnerBlocks","RootInnerBlocks","InspectorAdvancedControls","RootInspectorAdvancedControls","InspectorControls","RootInspectorControls","PanelColorSettings","RootPanelColorSettings","PlainText","RootPlainText","RichTextShortcut","RootRichTextShortcut","RichTextToolbarButton","RootRichTextToolbarButton","__unstableRichTextInputEvent","__unstableRootRichTextInputEvent","MediaPlaceholder","RootMediaPlaceholder","MediaUpload","RootMediaUpload","MediaUploadCheck","RootMediaUploadCheck","MultiSelectScrollIntoView","RootMultiSelectScrollIntoView","NavigableToolbar","RootNavigableToolbar","ObserveTyping","RootObserveTyping","SkipToSelectedBlock","RootSkipToSelectedBlock","URLInput","RootURLInput","URLInputButton","RootURLInputButton","URLPopover","RootURLPopover","Warning","RootWarning","WritingFlow","RootWritingFlow","createCustomColorsHOC","rootCreateCustomColorsHOC","getColorClassName","rootGetColorClassName","getColorObjectByAttributeValues","rootGetColorObjectByAttributeValues","getColorObjectByColorValue","rootGetColorObjectByColorValue","getFontSize","rootGetFontSize","getFontSizeClass","rootGetFontSizeClass","withColorContext","rootWithColorContext","withColors","rootWithColors","withFontSizes","rootWithFontSizes"],"sources":["@wordpress/editor/src/components/deprecated.js"],"sourcesContent":["// Block Creation Components.\n/**\n * WordPress dependencies\n */\nimport deprecated from '@wordpress/deprecated';\nimport { forwardRef } from '@wordpress/element';\nimport {\n\tAutocomplete as RootAutocomplete,\n\tAlignmentToolbar as RootAlignmentToolbar,\n\tBlockAlignmentToolbar as RootBlockAlignmentToolbar,\n\tBlockControls as RootBlockControls,\n\tBlockEdit as RootBlockEdit,\n\tBlockEditorKeyboardShortcuts as RootBlockEditorKeyboardShortcuts,\n\tBlockFormatControls as RootBlockFormatControls,\n\tBlockIcon as RootBlockIcon,\n\tBlockInspector as RootBlockInspector,\n\tBlockList as RootBlockList,\n\tBlockMover as RootBlockMover,\n\tBlockNavigationDropdown as RootBlockNavigationDropdown,\n\tBlockSelectionClearer as RootBlockSelectionClearer,\n\tBlockSettingsMenu as RootBlockSettingsMenu,\n\tBlockTitle as RootBlockTitle,\n\tBlockToolbar as RootBlockToolbar,\n\tColorPalette as RootColorPalette,\n\tContrastChecker as RootContrastChecker,\n\tCopyHandler as RootCopyHandler,\n\tcreateCustomColorsHOC as rootCreateCustomColorsHOC,\n\tDefaultBlockAppender as RootDefaultBlockAppender,\n\tFontSizePicker as RootFontSizePicker,\n\tgetColorClassName as rootGetColorClassName,\n\tgetColorObjectByAttributeValues as rootGetColorObjectByAttributeValues,\n\tgetColorObjectByColorValue as rootGetColorObjectByColorValue,\n\tgetFontSize as rootGetFontSize,\n\tgetFontSizeClass as rootGetFontSizeClass,\n\tInserter as RootInserter,\n\tInnerBlocks as RootInnerBlocks,\n\tInspectorAdvancedControls as RootInspectorAdvancedControls,\n\tInspectorControls as RootInspectorControls,\n\tPanelColorSettings as RootPanelColorSettings,\n\tPlainText as RootPlainText,\n\tRichText as RootRichText,\n\tRichTextShortcut as RootRichTextShortcut,\n\tRichTextToolbarButton as RootRichTextToolbarButton,\n\t__unstableRichTextInputEvent as __unstableRootRichTextInputEvent,\n\tMediaPlaceholder as RootMediaPlaceholder,\n\tMediaUpload as RootMediaUpload,\n\tMediaUploadCheck as RootMediaUploadCheck,\n\tMultiSelectScrollIntoView as RootMultiSelectScrollIntoView,\n\tNavigableToolbar as RootNavigableToolbar,\n\tObserveTyping as RootObserveTyping,\n\tSkipToSelectedBlock as RootSkipToSelectedBlock,\n\tURLInput as RootURLInput,\n\tURLInputButton as RootURLInputButton,\n\tURLPopover as RootURLPopover,\n\tWarning as RootWarning,\n\tWritingFlow as RootWritingFlow,\n\twithColorContext as rootWithColorContext,\n\twithColors as rootWithColors,\n\twithFontSizes as rootWithFontSizes,\n} from '@wordpress/block-editor';\n\nexport { default as ServerSideRender } from '@wordpress/server-side-render';\n\nfunction deprecateComponent( name, Wrapped, staticsToHoist = [] ) {\n\tconst Component = forwardRef( ( props, ref ) => {\n\t\tdeprecated( 'wp.editor.' + name, {\n\t\t\tsince: '5.3',\n\t\t\talternative: 'wp.blockEditor.' + name,\n\t\t\tversion: '6.2',\n\t\t} );\n\n\t\treturn <Wrapped ref={ ref } { ...props } />;\n\t} );\n\n\tstaticsToHoist.forEach( ( staticName ) => {\n\t\tComponent[ staticName ] = deprecateComponent(\n\t\t\tname + '.' + staticName,\n\t\t\tWrapped[ staticName ]\n\t\t);\n\t} );\n\n\treturn Component;\n}\n\nfunction deprecateFunction( name, func ) {\n\treturn ( ...args ) => {\n\t\tdeprecated( 'wp.editor.' + name, {\n\t\t\tsince: '5.3',\n\t\t\talternative: 'wp.blockEditor.' + name,\n\t\t\tversion: '6.2',\n\t\t} );\n\n\t\treturn func( ...args );\n\t};\n}\n\nconst RichText = deprecateComponent( 'RichText', RootRichText, [ 'Content' ] );\nRichText.isEmpty = deprecateFunction(\n\t'RichText.isEmpty',\n\tRootRichText.isEmpty\n);\n\nexport { RichText };\nexport const Autocomplete = deprecateComponent(\n\t'Autocomplete',\n\tRootAutocomplete\n);\nexport const AlignmentToolbar = deprecateComponent(\n\t'AlignmentToolbar',\n\tRootAlignmentToolbar\n);\nexport const BlockAlignmentToolbar = deprecateComponent(\n\t'BlockAlignmentToolbar',\n\tRootBlockAlignmentToolbar\n);\nexport const BlockControls = deprecateComponent(\n\t'BlockControls',\n\tRootBlockControls,\n\t[ 'Slot' ]\n);\nexport const BlockEdit = deprecateComponent( 'BlockEdit', RootBlockEdit );\nexport const BlockEditorKeyboardShortcuts = deprecateComponent(\n\t'BlockEditorKeyboardShortcuts',\n\tRootBlockEditorKeyboardShortcuts\n);\nexport const BlockFormatControls = deprecateComponent(\n\t'BlockFormatControls',\n\tRootBlockFormatControls,\n\t[ 'Slot' ]\n);\nexport const BlockIcon = deprecateComponent( 'BlockIcon', RootBlockIcon );\nexport const BlockInspector = deprecateComponent(\n\t'BlockInspector',\n\tRootBlockInspector\n);\nexport const BlockList = deprecateComponent( 'BlockList', RootBlockList );\nexport const BlockMover = deprecateComponent( 'BlockMover', RootBlockMover );\nexport const BlockNavigationDropdown = deprecateComponent(\n\t'BlockNavigationDropdown',\n\tRootBlockNavigationDropdown\n);\nexport const BlockSelectionClearer = deprecateComponent(\n\t'BlockSelectionClearer',\n\tRootBlockSelectionClearer\n);\nexport const BlockSettingsMenu = deprecateComponent(\n\t'BlockSettingsMenu',\n\tRootBlockSettingsMenu\n);\nexport const BlockTitle = deprecateComponent( 'BlockTitle', RootBlockTitle );\nexport const BlockToolbar = deprecateComponent(\n\t'BlockToolbar',\n\tRootBlockToolbar\n);\nexport const ColorPalette = deprecateComponent(\n\t'ColorPalette',\n\tRootColorPalette\n);\nexport const ContrastChecker = deprecateComponent(\n\t'ContrastChecker',\n\tRootContrastChecker\n);\nexport const CopyHandler = deprecateComponent( 'CopyHandler', RootCopyHandler );\nexport const DefaultBlockAppender = deprecateComponent(\n\t'DefaultBlockAppender',\n\tRootDefaultBlockAppender\n);\nexport const FontSizePicker = deprecateComponent(\n\t'FontSizePicker',\n\tRootFontSizePicker\n);\nexport const Inserter = deprecateComponent( 'Inserter', RootInserter );\nexport const InnerBlocks = deprecateComponent( 'InnerBlocks', RootInnerBlocks, [\n\t'ButtonBlockAppender',\n\t'DefaultBlockAppender',\n\t'Content',\n] );\nexport const InspectorAdvancedControls = deprecateComponent(\n\t'InspectorAdvancedControls',\n\tRootInspectorAdvancedControls,\n\t[ 'Slot' ]\n);\nexport const InspectorControls = deprecateComponent(\n\t'InspectorControls',\n\tRootInspectorControls,\n\t[ 'Slot' ]\n);\nexport const PanelColorSettings = deprecateComponent(\n\t'PanelColorSettings',\n\tRootPanelColorSettings\n);\nexport const PlainText = deprecateComponent( 'PlainText', RootPlainText );\nexport const RichTextShortcut = deprecateComponent(\n\t'RichTextShortcut',\n\tRootRichTextShortcut\n);\nexport const RichTextToolbarButton = deprecateComponent(\n\t'RichTextToolbarButton',\n\tRootRichTextToolbarButton\n);\nexport const __unstableRichTextInputEvent = deprecateComponent(\n\t'__unstableRichTextInputEvent',\n\t__unstableRootRichTextInputEvent\n);\nexport const MediaPlaceholder = deprecateComponent(\n\t'MediaPlaceholder',\n\tRootMediaPlaceholder\n);\nexport const MediaUpload = deprecateComponent( 'MediaUpload', RootMediaUpload );\nexport const MediaUploadCheck = deprecateComponent(\n\t'MediaUploadCheck',\n\tRootMediaUploadCheck\n);\nexport const MultiSelectScrollIntoView = deprecateComponent(\n\t'MultiSelectScrollIntoView',\n\tRootMultiSelectScrollIntoView\n);\nexport const NavigableToolbar = deprecateComponent(\n\t'NavigableToolbar',\n\tRootNavigableToolbar\n);\nexport const ObserveTyping = deprecateComponent(\n\t'ObserveTyping',\n\tRootObserveTyping\n);\nexport const SkipToSelectedBlock = deprecateComponent(\n\t'SkipToSelectedBlock',\n\tRootSkipToSelectedBlock\n);\nexport const URLInput = deprecateComponent( 'URLInput', RootURLInput );\nexport const URLInputButton = deprecateComponent(\n\t'URLInputButton',\n\tRootURLInputButton\n);\nexport const URLPopover = deprecateComponent( 'URLPopover', RootURLPopover );\nexport const Warning = deprecateComponent( 'Warning', RootWarning );\nexport const WritingFlow = deprecateComponent( 'WritingFlow', RootWritingFlow );\n\nexport const createCustomColorsHOC = deprecateFunction(\n\t'createCustomColorsHOC',\n\trootCreateCustomColorsHOC\n);\nexport const getColorClassName = deprecateFunction(\n\t'getColorClassName',\n\trootGetColorClassName\n);\nexport const getColorObjectByAttributeValues = deprecateFunction(\n\t'getColorObjectByAttributeValues',\n\trootGetColorObjectByAttributeValues\n);\nexport const getColorObjectByColorValue = deprecateFunction(\n\t'getColorObjectByColorValue',\n\trootGetColorObjectByColorValue\n);\nexport const getFontSize = deprecateFunction( 'getFontSize', rootGetFontSize );\nexport const getFontSizeClass = deprecateFunction(\n\t'getFontSizeClass',\n\trootGetFontSizeClass\n);\nexport const withColorContext = deprecateFunction(\n\t'withColorContext',\n\trootWithColorContext\n);\nexport const withColors = deprecateFunction( 'withColors', rootWithColors );\nexport const withFontSizes = deprecateFunction(\n\t'withFontSizes',\n\trootWithFontSizes\n);\n"],"mappings":";;;;;;;;;;;;;;;AAIA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAuDA,IAAAG,iBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AA7DA;AACA;AACA;AACA;;AA4DA,SAASI,kBAAkBA,CAAEC,IAAI,EAAEC,OAAO,EAAEC,cAAc,GAAG,EAAE,EAAG;EACjE,MAAMC,SAAS,GAAG,IAAAC,mBAAU,EAAE,CAAEC,KAAK,EAAEC,GAAG,KAAM;IAC/C,IAAAC,mBAAU,EAAE,YAAY,GAAGP,IAAI,EAAE;MAChCQ,KAAK,EAAE,KAAK;MACZC,WAAW,EAAE,iBAAiB,GAAGT,IAAI;MACrCU,OAAO,EAAE;IACV,CAAE,CAAC;IAEH,OAAO,IAAAC,MAAA,CAAAC,aAAA,EAACX,O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AAGnG,iBAAiB,CAAE,aAAa,EAAEoG,wBAAgB,CAAC;AAAC/F,OAAA,CAAA8F,WAAA,GAAAA,WAAA;AACxE,MAAME,gBAAgB,GAAGrG,iBAAiB,CAChD,kBAAkB,EAClBsG,6BACD,CAAC;AAACjG,OAAA,CAAAgG,gBAAA,GAAAA,gBAAA;AACK,MAAME,gBAAgB,GAAGvG,iBAAiB,CAChD,kBAAkB,EAClBwG,6BACD,CAAC;AAACnG,OAAA,CAAAkG,gBAAA,GAAAA,gBAAA;AACK,MAAME,UAAU,GAAGzG,iBAAiB,CAAE,YAAY,EAAE0G,uBAAe,CAAC;AAACrG,OAAA,CAAAoG,UAAA,GAAAA,UAAA;AACrE,MAAME,aAAa,GAAG3G,iBAAiB,CAC7C,eAAe,EACf4G,0BACD,CAAC;AAACvG,OAAA,CAAAsG,aAAA,GAAAA,aAAA"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = exports.DocumentOutline = void 0;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _i18n = require("@wordpress/i18n");
10
10
  var _compose = require("@wordpress/compose");
11
11
  var _data = require("@wordpress/data");
@@ -25,20 +25,20 @@ var _store = require("../../store");
25
25
  /**
26
26
  * Module constants
27
27
  */
28
- const emptyHeadingContent = (0, _element.createElement)("em", null, (0, _i18n.__)('(Empty heading)'));
29
- const incorrectLevelContent = [(0, _element.createElement)("br", {
28
+ const emptyHeadingContent = (0, _react.createElement)("em", null, (0, _i18n.__)('(Empty heading)'));
29
+ const incorrectLevelContent = [(0, _react.createElement)("br", {
30
30
  key: "incorrect-break"
31
- }), (0, _element.createElement)("em", {
31
+ }), (0, _react.createElement)("em", {
32
32
  key: "incorrect-message"
33
33
  }, (0, _i18n.__)('(Incorrect heading level)'))];
34
- const singleH1Headings = [(0, _element.createElement)("br", {
34
+ const singleH1Headings = [(0, _react.createElement)("br", {
35
35
  key: "incorrect-break-h1"
36
- }), (0, _element.createElement)("em", {
36
+ }), (0, _react.createElement)("em", {
37
37
  key: "incorrect-message-h1"
38
38
  }, (0, _i18n.__)('(Your theme may already use a H1 for the post title)'))];
39
- const multipleH1Headings = [(0, _element.createElement)("br", {
39
+ const multipleH1Headings = [(0, _react.createElement)("br", {
40
40
  key: "incorrect-break-multiple-h1"
41
- }), (0, _element.createElement)("em", {
41
+ }), (0, _react.createElement)("em", {
42
42
  key: "incorrect-message-multiple-h1"
43
43
  }, (0, _i18n.__)('(Multiple H1 headings are not recommended)'))];
44
44
 
@@ -88,9 +88,9 @@ const DocumentOutline = ({
88
88
  [heading.level]: (acc[heading.level] || 0) + 1
89
89
  }), {});
90
90
  const hasMultipleH1 = countByLevel[1] > 1;
91
- return (0, _element.createElement)("div", {
91
+ return (0, _react.createElement)("div", {
92
92
  className: "document-outline"
93
- }, (0, _element.createElement)("ul", null, hasTitle && (0, _element.createElement)(_item.default, {
93
+ }, (0, _react.createElement)("ul", null, hasTitle && (0, _react.createElement)(_item.default, {
94
94
  level: (0, _i18n.__)('Title'),
95
95
  isValid: true,
96
96
  onSelect: onSelect,
@@ -102,7 +102,7 @@ const DocumentOutline = ({
102
102
  const isIncorrectLevel = item.level > prevHeadingLevel + 1;
103
103
  const isValid = !item.isEmpty && !isIncorrectLevel && !!item.level && (item.level !== 1 || !hasMultipleH1 && !hasTitle);
104
104
  prevHeadingLevel = item.level;
105
- return (0, _element.createElement)(_item.default, {
105
+ return (0, _react.createElement)(_item.default, {
106
106
  key: index,
107
107
  level: `H${item.level}`,
108
108
  isValid: isValid,
@@ -1 +1 @@
1
- {"version":3,"names":["_i18n","require","_compose","_data","_richText","_blockEditor","_coreData","_item","_interopRequireDefault","_store","emptyHeadingContent","_element","createElement","__","incorrectLevelContent","key","singleH1Headings","multipleH1Headings","computeOutlineHeadings","blocks","flatMap","block","name","level","attributes","isEmpty","isEmptyHeading","innerBlocks","heading","content","length","DocumentOutline","title","onSelect","isTitleSupported","hasOutlineItemsDisabled","headings","selectBlock","useDispatch","blockEditorStore","prevHeadingLevel","titleNode","document","querySelector","hasTitle","countByLevel","reduce","acc","hasMultipleH1","className","default","isValid","href","id","isDisabled","map","item","index","isIncorrectLevel","clientId","getTextContent","create","html","exports","_default","compose","withSelect","select","_postType$supports$ti","getBlocks","getEditedPostAttribute","editorStore","getPostType","coreStore","postType","supports"],"sources":["@wordpress/editor/src/components/document-outline/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { compose } from '@wordpress/compose';\nimport { withSelect, useDispatch } from '@wordpress/data';\nimport { create, getTextContent } from '@wordpress/rich-text';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { store as coreStore } from '@wordpress/core-data';\n\n/**\n * Internal dependencies\n */\nimport DocumentOutlineItem from './item';\nimport { store as editorStore } from '../../store';\n\n/**\n * Module constants\n */\nconst emptyHeadingContent = <em>{ __( '(Empty heading)' ) }</em>;\nconst incorrectLevelContent = [\n\t<br key=\"incorrect-break\" />,\n\t<em key=\"incorrect-message\">{ __( '(Incorrect heading level)' ) }</em>,\n];\nconst singleH1Headings = [\n\t<br key=\"incorrect-break-h1\" />,\n\t<em key=\"incorrect-message-h1\">\n\t\t{ __( '(Your theme may already use a H1 for the post title)' ) }\n\t</em>,\n];\nconst multipleH1Headings = [\n\t<br key=\"incorrect-break-multiple-h1\" />,\n\t<em key=\"incorrect-message-multiple-h1\">\n\t\t{ __( '(Multiple H1 headings are not recommended)' ) }\n\t</em>,\n];\n\n/**\n * Returns an array of heading blocks enhanced with the following properties:\n * level - An integer with the heading level.\n * isEmpty - Flag indicating if the heading has no content.\n *\n * @param {?Array} blocks An array of blocks.\n *\n * @return {Array} An array of heading blocks enhanced with the properties described above.\n */\nconst computeOutlineHeadings = ( blocks = [] ) => {\n\treturn blocks.flatMap( ( block = {} ) => {\n\t\tif ( block.name === 'core/heading' ) {\n\t\t\treturn {\n\t\t\t\t...block,\n\t\t\t\tlevel: block.attributes.level,\n\t\t\t\tisEmpty: isEmptyHeading( block ),\n\t\t\t};\n\t\t}\n\t\treturn computeOutlineHeadings( block.innerBlocks );\n\t} );\n};\n\nconst isEmptyHeading = ( heading ) =>\n\t! heading.attributes.content || heading.attributes.content.length === 0;\n\nexport const DocumentOutline = ( {\n\tblocks = [],\n\ttitle,\n\tonSelect,\n\tisTitleSupported,\n\thasOutlineItemsDisabled,\n} ) => {\n\tconst headings = computeOutlineHeadings( blocks );\n\tconst { selectBlock } = useDispatch( blockEditorStore );\n\tif ( headings.length < 1 ) {\n\t\treturn null;\n\t}\n\n\tlet prevHeadingLevel = 1;\n\n\t// Not great but it's the simplest way to locate the title right now.\n\tconst titleNode = document.querySelector( '.editor-post-title__input' );\n\tconst hasTitle = isTitleSupported && title && titleNode;\n\tconst countByLevel = headings.reduce(\n\t\t( acc, heading ) => ( {\n\t\t\t...acc,\n\t\t\t[ heading.level ]: ( acc[ heading.level ] || 0 ) + 1,\n\t\t} ),\n\t\t{}\n\t);\n\tconst hasMultipleH1 = countByLevel[ 1 ] > 1;\n\n\treturn (\n\t\t<div className=\"document-outline\">\n\t\t\t<ul>\n\t\t\t\t{ hasTitle && (\n\t\t\t\t\t<DocumentOutlineItem\n\t\t\t\t\t\tlevel={ __( 'Title' ) }\n\t\t\t\t\t\tisValid\n\t\t\t\t\t\tonSelect={ onSelect }\n\t\t\t\t\t\thref={ `#${ titleNode.id }` }\n\t\t\t\t\t\tisDisabled={ hasOutlineItemsDisabled }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ title }\n\t\t\t\t\t</DocumentOutlineItem>\n\t\t\t\t) }\n\t\t\t\t{ headings.map( ( item, index ) => {\n\t\t\t\t\t// Headings remain the same, go up by one, or down by any amount.\n\t\t\t\t\t// Otherwise there are missing levels.\n\t\t\t\t\tconst isIncorrectLevel = item.level > prevHeadingLevel + 1;\n\n\t\t\t\t\tconst isValid =\n\t\t\t\t\t\t! item.isEmpty &&\n\t\t\t\t\t\t! isIncorrectLevel &&\n\t\t\t\t\t\t!! item.level &&\n\t\t\t\t\t\t( item.level !== 1 ||\n\t\t\t\t\t\t\t( ! hasMultipleH1 && ! hasTitle ) );\n\t\t\t\t\tprevHeadingLevel = item.level;\n\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<DocumentOutlineItem\n\t\t\t\t\t\t\tkey={ index }\n\t\t\t\t\t\t\tlevel={ `H${ item.level }` }\n\t\t\t\t\t\t\tisValid={ isValid }\n\t\t\t\t\t\t\tisDisabled={ hasOutlineItemsDisabled }\n\t\t\t\t\t\t\thref={ `#block-${ item.clientId }` }\n\t\t\t\t\t\t\tonSelect={ () => {\n\t\t\t\t\t\t\t\tselectBlock( item.clientId );\n\t\t\t\t\t\t\t\tonSelect?.();\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ item.isEmpty\n\t\t\t\t\t\t\t\t? emptyHeadingContent\n\t\t\t\t\t\t\t\t: getTextContent(\n\t\t\t\t\t\t\t\t\t\tcreate( {\n\t\t\t\t\t\t\t\t\t\t\thtml: item.attributes.content,\n\t\t\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t\t ) }\n\t\t\t\t\t\t\t{ isIncorrectLevel && incorrectLevelContent }\n\t\t\t\t\t\t\t{ item.level === 1 &&\n\t\t\t\t\t\t\t\thasMultipleH1 &&\n\t\t\t\t\t\t\t\tmultipleH1Headings }\n\t\t\t\t\t\t\t{ hasTitle &&\n\t\t\t\t\t\t\t\titem.level === 1 &&\n\t\t\t\t\t\t\t\t! hasMultipleH1 &&\n\t\t\t\t\t\t\t\tsingleH1Headings }\n\t\t\t\t\t\t</DocumentOutlineItem>\n\t\t\t\t\t);\n\t\t\t\t} ) }\n\t\t\t</ul>\n\t\t</div>\n\t);\n};\n\nexport default compose(\n\twithSelect( ( select ) => {\n\t\tconst { getBlocks } = select( blockEditorStore );\n\t\tconst { getEditedPostAttribute } = select( editorStore );\n\t\tconst { getPostType } = select( coreStore );\n\t\tconst postType = getPostType( getEditedPostAttribute( 'type' ) );\n\n\t\treturn {\n\t\t\ttitle: getEditedPostAttribute( 'title' ),\n\t\t\tblocks: getBlocks(),\n\t\t\tisTitleSupported: postType?.supports?.title ?? false,\n\t\t};\n\t} )\n)( DocumentOutline );\n"],"mappings":";;;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AAKA,IAAAM,KAAA,GAAAC,sBAAA,CAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AAdA;AACA;AACA;;AAQA;AACA;AACA;;AAIA;AACA;AACA;AACA,MAAMS,mBAAmB,GAAG,IAAAC,QAAA,CAAAC,aAAA,cAAM,IAAAC,QAAE,EAAE,iBAAkB,CAAO,CAAC;AAChE,MAAMC,qBAAqB,GAAG,CAC7B,IAAAH,QAAA,CAAAC,aAAA;EAAIG,GAAG,EAAC;AAAiB,CAAE,CAAC,EAC5B,IAAAJ,QAAA,CAAAC,aAAA;EAAIG,GAAG,EAAC;AAAmB,GAAG,IAAAF,QAAE,EAAE,2BAA4B,CAAO,CAAC,CACtE;AACD,MAAMG,gBAAgB,GAAG,CACxB,IAAAL,QAAA,CAAAC,aAAA;EAAIG,GAAG,EAAC;AAAoB,CAAE,CAAC,EAC/B,IAAAJ,QAAA,CAAAC,aAAA;EAAIG,GAAG,EAAC;AAAsB,GAC3B,IAAAF,QAAE,EAAE,sDAAuD,CAC1D,CAAC,CACL;AACD,MAAMI,kBAAkB,GAAG,CAC1B,IAAAN,QAAA,CAAAC,aAAA;EAAIG,GAAG,EAAC;AAA6B,CAAE,CAAC,EACxC,IAAAJ,QAAA,CAAAC,aAAA;EAAIG,GAAG,EAAC;AAA+B,GACpC,IAAAF,QAAE,EAAE,4CAA6C,CAChD,CAAC,CAC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_richText","_blockEditor","_coreData","_item","_interopRequireDefault","_store","emptyHeadingContent","_react","createElement","__","incorrectLevelContent","key","singleH1Headings","multipleH1Headings","computeOutlineHeadings","blocks","flatMap","block","name","level","attributes","isEmpty","isEmptyHeading","innerBlocks","heading","content","length","DocumentOutline","title","onSelect","isTitleSupported","hasOutlineItemsDisabled","headings","selectBlock","useDispatch","blockEditorStore","prevHeadingLevel","titleNode","document","querySelector","hasTitle","countByLevel","reduce","acc","hasMultipleH1","className","default","isValid","href","id","isDisabled","map","item","index","isIncorrectLevel","clientId","getTextContent","create","html","exports","_default","compose","withSelect","select","_postType$supports$ti","getBlocks","getEditedPostAttribute","editorStore","getPostType","coreStore","postType","supports"],"sources":["@wordpress/editor/src/components/document-outline/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { compose } from '@wordpress/compose';\nimport { withSelect, useDispatch } from '@wordpress/data';\nimport { create, getTextContent } from '@wordpress/rich-text';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { store as coreStore } from '@wordpress/core-data';\n\n/**\n * Internal dependencies\n */\nimport DocumentOutlineItem from './item';\nimport { store as editorStore } from '../../store';\n\n/**\n * Module constants\n */\nconst emptyHeadingContent = <em>{ __( '(Empty heading)' ) }</em>;\nconst incorrectLevelContent = [\n\t<br key=\"incorrect-break\" />,\n\t<em key=\"incorrect-message\">{ __( '(Incorrect heading level)' ) }</em>,\n];\nconst singleH1Headings = [\n\t<br key=\"incorrect-break-h1\" />,\n\t<em key=\"incorrect-message-h1\">\n\t\t{ __( '(Your theme may already use a H1 for the post title)' ) }\n\t</em>,\n];\nconst multipleH1Headings = [\n\t<br key=\"incorrect-break-multiple-h1\" />,\n\t<em key=\"incorrect-message-multiple-h1\">\n\t\t{ __( '(Multiple H1 headings are not recommended)' ) }\n\t</em>,\n];\n\n/**\n * Returns an array of heading blocks enhanced with the following properties:\n * level - An integer with the heading level.\n * isEmpty - Flag indicating if the heading has no content.\n *\n * @param {?Array} blocks An array of blocks.\n *\n * @return {Array} An array of heading blocks enhanced with the properties described above.\n */\nconst computeOutlineHeadings = ( blocks = [] ) => {\n\treturn blocks.flatMap( ( block = {} ) => {\n\t\tif ( block.name === 'core/heading' ) {\n\t\t\treturn {\n\t\t\t\t...block,\n\t\t\t\tlevel: block.attributes.level,\n\t\t\t\tisEmpty: isEmptyHeading( block ),\n\t\t\t};\n\t\t}\n\t\treturn computeOutlineHeadings( block.innerBlocks );\n\t} );\n};\n\nconst isEmptyHeading = ( heading ) =>\n\t! heading.attributes.content || heading.attributes.content.length === 0;\n\nexport const DocumentOutline = ( {\n\tblocks = [],\n\ttitle,\n\tonSelect,\n\tisTitleSupported,\n\thasOutlineItemsDisabled,\n} ) => {\n\tconst headings = computeOutlineHeadings( blocks );\n\tconst { selectBlock } = useDispatch( blockEditorStore );\n\tif ( headings.length < 1 ) {\n\t\treturn null;\n\t}\n\n\tlet prevHeadingLevel = 1;\n\n\t// Not great but it's the simplest way to locate the title right now.\n\tconst titleNode = document.querySelector( '.editor-post-title__input' );\n\tconst hasTitle = isTitleSupported && title && titleNode;\n\tconst countByLevel = headings.reduce(\n\t\t( acc, heading ) => ( {\n\t\t\t...acc,\n\t\t\t[ heading.level ]: ( acc[ heading.level ] || 0 ) + 1,\n\t\t} ),\n\t\t{}\n\t);\n\tconst hasMultipleH1 = countByLevel[ 1 ] > 1;\n\n\treturn (\n\t\t<div className=\"document-outline\">\n\t\t\t<ul>\n\t\t\t\t{ hasTitle && (\n\t\t\t\t\t<DocumentOutlineItem\n\t\t\t\t\t\tlevel={ __( 'Title' ) }\n\t\t\t\t\t\tisValid\n\t\t\t\t\t\tonSelect={ onSelect }\n\t\t\t\t\t\thref={ `#${ titleNode.id }` }\n\t\t\t\t\t\tisDisabled={ hasOutlineItemsDisabled }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ title }\n\t\t\t\t\t</DocumentOutlineItem>\n\t\t\t\t) }\n\t\t\t\t{ headings.map( ( item, index ) => {\n\t\t\t\t\t// Headings remain the same, go up by one, or down by any amount.\n\t\t\t\t\t// Otherwise there are missing levels.\n\t\t\t\t\tconst isIncorrectLevel = item.level > prevHeadingLevel + 1;\n\n\t\t\t\t\tconst isValid =\n\t\t\t\t\t\t! item.isEmpty &&\n\t\t\t\t\t\t! isIncorrectLevel &&\n\t\t\t\t\t\t!! item.level &&\n\t\t\t\t\t\t( item.level !== 1 ||\n\t\t\t\t\t\t\t( ! hasMultipleH1 && ! hasTitle ) );\n\t\t\t\t\tprevHeadingLevel = item.level;\n\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<DocumentOutlineItem\n\t\t\t\t\t\t\tkey={ index }\n\t\t\t\t\t\t\tlevel={ `H${ item.level }` }\n\t\t\t\t\t\t\tisValid={ isValid }\n\t\t\t\t\t\t\tisDisabled={ hasOutlineItemsDisabled }\n\t\t\t\t\t\t\thref={ `#block-${ item.clientId }` }\n\t\t\t\t\t\t\tonSelect={ () => {\n\t\t\t\t\t\t\t\tselectBlock( item.clientId );\n\t\t\t\t\t\t\t\tonSelect?.();\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ item.isEmpty\n\t\t\t\t\t\t\t\t? emptyHeadingContent\n\t\t\t\t\t\t\t\t: getTextContent(\n\t\t\t\t\t\t\t\t\t\tcreate( {\n\t\t\t\t\t\t\t\t\t\t\thtml: item.attributes.content,\n\t\t\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t\t ) }\n\t\t\t\t\t\t\t{ isIncorrectLevel && incorrectLevelContent }\n\t\t\t\t\t\t\t{ item.level === 1 &&\n\t\t\t\t\t\t\t\thasMultipleH1 &&\n\t\t\t\t\t\t\t\tmultipleH1Headings }\n\t\t\t\t\t\t\t{ hasTitle &&\n\t\t\t\t\t\t\t\titem.level === 1 &&\n\t\t\t\t\t\t\t\t! hasMultipleH1 &&\n\t\t\t\t\t\t\t\tsingleH1Headings }\n\t\t\t\t\t\t</DocumentOutlineItem>\n\t\t\t\t\t);\n\t\t\t\t} ) }\n\t\t\t</ul>\n\t\t</div>\n\t);\n};\n\nexport default compose(\n\twithSelect( ( select ) => {\n\t\tconst { getBlocks } = select( blockEditorStore );\n\t\tconst { getEditedPostAttribute } = select( editorStore );\n\t\tconst { getPostType } = select( coreStore );\n\t\tconst postType = getPostType( getEditedPostAttribute( 'type' ) );\n\n\t\treturn {\n\t\t\ttitle: getEditedPostAttribute( 'title' ),\n\t\t\tblocks: getBlocks(),\n\t\t\tisTitleSupported: postType?.supports?.title ?? false,\n\t\t};\n\t} )\n)( DocumentOutline );\n"],"mappings":";;;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AAKA,IAAAM,KAAA,GAAAC,sBAAA,CAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AAdA;AACA;AACA;;AAQA;AACA;AACA;;AAIA;AACA;AACA;AACA,MAAMS,mBAAmB,GAAG,IAAAC,MAAA,CAAAC,aAAA,cAAM,IAAAC,QAAE,EAAE,iBAAkB,CAAO,CAAC;AAChE,MAAMC,qBAAqB,GAAG,CAC7B,IAAAH,MAAA,CAAAC,aAAA;EAAIG,GAAG,EAAC;AAAiB,CAAE,CAAC,EAC5B,IAAAJ,MAAA,CAAAC,aAAA;EAAIG,GAAG,EAAC;AAAmB,GAAG,IAAAF,QAAE,EAAE,2BAA4B,CAAO,CAAC,CACtE;AACD,MAAMG,gBAAgB,GAAG,CACxB,IAAAL,MAAA,CAAAC,aAAA;EAAIG,GAAG,EAAC;AAAoB,CAAE,CAAC,EAC/B,IAAAJ,MAAA,CAAAC,aAAA;EAAIG,GAAG,EAAC;AAAsB,GAC3B,IAAAF,QAAE,EAAE,sDAAuD,CAC1D,CAAC,C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GAAEM,QAAQ,EAAEC,QAAQ,EAAE3C,KAAK,cAAAoC,qBAAA,cAAAA,qBAAA,GAAI;EAChD,CAAC;AACF,CAAE,CACH,CAAC,CAAErC,eAAgB,CAAC;AAAAgC,OAAA,CAAAb,OAAA,GAAAc,QAAA"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
10
  /**
11
11
  * External dependencies
@@ -17,20 +17,20 @@ const TableOfContentsItem = ({
17
17
  level,
18
18
  href,
19
19
  onSelect
20
- }) => (0, _element.createElement)("li", {
20
+ }) => (0, _react.createElement)("li", {
21
21
  className: (0, _classnames.default)('document-outline__item', `is-${level.toLowerCase()}`, {
22
22
  'is-invalid': !isValid
23
23
  })
24
- }, (0, _element.createElement)("a", {
24
+ }, (0, _react.createElement)("a", {
25
25
  href: href,
26
26
  className: "document-outline__button",
27
27
  onClick: onSelect
28
- }, (0, _element.createElement)("span", {
28
+ }, (0, _react.createElement)("span", {
29
29
  className: "document-outline__emdash",
30
30
  "aria-hidden": "true"
31
- }), (0, _element.createElement)("strong", {
31
+ }), (0, _react.createElement)("strong", {
32
32
  className: "document-outline__level"
33
- }, level), (0, _element.createElement)("span", {
33
+ }, level), (0, _react.createElement)("span", {
34
34
  className: "document-outline__item-content"
35
35
  }, children)));
36
36
  var _default = TableOfContentsItem;
@@ -1 +1 @@
1
- {"version":3,"names":["_classnames","_interopRequireDefault","require","TableOfContentsItem","children","isValid","level","href","onSelect","_element","createElement","className","classnames","toLowerCase","onClick","_default","exports","default"],"sources":["@wordpress/editor/src/components/document-outline/item.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\nconst TableOfContentsItem = ( {\n\tchildren,\n\tisValid,\n\tlevel,\n\thref,\n\tonSelect,\n} ) => (\n\t<li\n\t\tclassName={ classnames(\n\t\t\t'document-outline__item',\n\t\t\t`is-${ level.toLowerCase() }`,\n\t\t\t{\n\t\t\t\t'is-invalid': ! isValid,\n\t\t\t}\n\t\t) }\n\t>\n\t\t<a\n\t\t\thref={ href }\n\t\t\tclassName=\"document-outline__button\"\n\t\t\tonClick={ onSelect }\n\t\t>\n\t\t\t<span\n\t\t\t\tclassName=\"document-outline__emdash\"\n\t\t\t\taria-hidden=\"true\"\n\t\t\t></span>\n\t\t\t<strong className=\"document-outline__level\">{ level }</strong>\n\t\t\t<span className=\"document-outline__item-content\">{ children }</span>\n\t\t</a>\n\t</li>\n);\n\nexport default TableOfContentsItem;\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AAHA;AACA;AACA;;AAGA,MAAMC,mBAAmB,GAAGA,CAAE;EAC7BC,QAAQ;EACRC,OAAO;EACPC,KAAK;EACLC,IAAI;EACJC;AACD,CAAC,KACA,IAAAC,QAAA,CAAAC,aAAA;EACCC,SAAS,EAAG,IAAAC,mBAAU,EACrB,wBAAwB,EACvB,MAAMN,KAAK,CAACO,WAAW,CAAC,CAAG,EAAC,EAC7B;IACC,YAAY,EAAE,CAAER;EACjB,CACD;AAAG,GAEH,IAAAI,QAAA,CAAAC,aAAA;EACCH,IAAI,EAAGA,IAAM;EACbI,SAAS,EAAC,0BAA0B;EACpCG,OAAO,EAAGN;AAAU,GAEpB,IAAAC,QAAA,CAAAC,aAAA;EACCC,SAAS,EAAC,0BAA0B;EACpC,eAAY;AAAM,CACZ,CAAC,EACR,IAAAF,QAAA,CAAAC,aAAA;EAAQC,SAAS,EAAC;AAAyB,GAAGL,KAAe,CAAC,EAC9D,IAAAG,QAAA,CAAAC,aAAA;EAAMC,SAAS,EAAC;AAAgC,GAAGP,QAAgB,CACjE,CACA,CACJ;AAAC,IAAAW,QAAA,GAEaZ,mBAAmB;AAAAa,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_classnames","_interopRequireDefault","require","TableOfContentsItem","children","isValid","level","href","onSelect","_react","createElement","className","classnames","toLowerCase","onClick","_default","exports","default"],"sources":["@wordpress/editor/src/components/document-outline/item.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\nconst TableOfContentsItem = ( {\n\tchildren,\n\tisValid,\n\tlevel,\n\thref,\n\tonSelect,\n} ) => (\n\t<li\n\t\tclassName={ classnames(\n\t\t\t'document-outline__item',\n\t\t\t`is-${ level.toLowerCase() }`,\n\t\t\t{\n\t\t\t\t'is-invalid': ! isValid,\n\t\t\t}\n\t\t) }\n\t>\n\t\t<a\n\t\t\thref={ href }\n\t\t\tclassName=\"document-outline__button\"\n\t\t\tonClick={ onSelect }\n\t\t>\n\t\t\t<span\n\t\t\t\tclassName=\"document-outline__emdash\"\n\t\t\t\taria-hidden=\"true\"\n\t\t\t></span>\n\t\t\t<strong className=\"document-outline__level\">{ level }</strong>\n\t\t\t<span className=\"document-outline__item-content\">{ children }</span>\n\t\t</a>\n\t</li>\n);\n\nexport default TableOfContentsItem;\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AAHA;AACA;AACA;;AAGA,MAAMC,mBAAmB,GAAGA,CAAE;EAC7BC,QAAQ;EACRC,OAAO;EACPC,KAAK;EACLC,IAAI;EACJC;AACD,CAAC,KACA,IAAAC,MAAA,CAAAC,aAAA;EACCC,SAAS,EAAG,IAAAC,mBAAU,EACrB,wBAAwB,EACvB,MAAMN,KAAK,CAACO,WAAW,CAAC,CAAG,EAAC,EAC7B;IACC,YAAY,EAAE,CAAER;EACjB,CACD;AAAG,GAEH,IAAAI,MAAA,CAAAC,aAAA;EACCH,IAAI,EAAGA,IAAM;EACbI,SAAS,EAAC,0BAA0B;EACpCG,OAAO,EAAGN;AAAU,GAEpB,IAAAC,MAAA,CAAAC,aAAA;EACCC,SAAS,EAAC,0BAA0B;EACpC,eAAY;AAAM,CACZ,CAAC,EACR,IAAAF,MAAA,CAAAC,aAAA;EAAQC,SAAS,EAAC;AAAyB,GAAGL,KAAe,CAAC,EAC9D,IAAAG,MAAA,CAAAC,aAAA;EAAMC,SAAS,EAAC;AAAgC,GAAGP,QAAgB,CACjE,CACA,CACJ;AAAC,IAAAW,QAAA,GAEaZ,mBAAmB;AAAAa,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _reactNative = require("react-native");
10
10
  var _i18n = require("@wordpress/i18n");
11
11
  var _style = _interopRequireDefault(require("./style.scss"));
@@ -23,14 +23,14 @@ var _viewSections = require("./view-sections");
23
23
  */
24
24
 
25
25
  const AddBlocks = () => {
26
- return (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)(_viewSections.HelpDetailImage, {
26
+ return (0, _react.createElement)(_react.Fragment, null, (0, _react.createElement)(_viewSections.HelpDetailImage, {
27
27
  source: require('./images/add-light.png'),
28
28
  sourceDarkMode: require('./images/add-dark.png')
29
- }), (0, _element.createElement)(_reactNative.View, {
29
+ }), (0, _react.createElement)(_reactNative.View, {
30
30
  style: _style.default.helpDetailContainer
31
- }, (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
31
+ }, (0, _react.createElement)(_viewSections.HelpDetailBodyText, {
32
32
  text: (0, _i18n.__)('Add a new block at any time by tapping on the + icon in the toolbar on the bottom left.')
33
- }), (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
33
+ }), (0, _react.createElement)(_viewSections.HelpDetailBodyText, {
34
34
  text: (0, _i18n.__)('Once you become familiar with the names of different blocks, you can add a block by typing a forward slash followed by the block name — for example, /image or /heading.')
35
35
  })));
36
36
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_i18n","_style","_interopRequireDefault","_viewSections","AddBlocks","_element","createElement","Fragment","HelpDetailImage","source","sourceDarkMode","View","style","styles","helpDetailContainer","HelpDetailBodyText","text","__","_default","exports","default"],"sources":["@wordpress/editor/src/components/editor-help/add-blocks.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { View } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\nimport { HelpDetailBodyText, HelpDetailImage } from './view-sections';\n\nconst AddBlocks = () => {\n\treturn (\n\t\t<>\n\t\t\t<HelpDetailImage\n\t\t\t\tsource={ require( './images/add-light.png' ) }\n\t\t\t\tsourceDarkMode={ require( './images/add-dark.png' ) }\n\t\t\t/>\n\t\t\t<View style={ styles.helpDetailContainer }>\n\t\t\t\t<HelpDetailBodyText\n\t\t\t\t\ttext={ __(\n\t\t\t\t\t\t'Add a new block at any time by tapping on the + icon in the toolbar on the bottom left.'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t<HelpDetailBodyText\n\t\t\t\t\ttext={ __(\n\t\t\t\t\t\t'Once you become familiar with the names of different blocks, you can add a block by typing a forward slash followed by the block name — for example, /image or /heading.'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t</View>\n\t\t</>\n\t);\n};\n\nexport default AddBlocks;\n"],"mappings":";;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,KAAA,GAAAD,OAAA;AAKA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAdA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;;AAIA,MAAMK,SAAS,GAAGA,CAAA,KAAM;EACvB,OACC,IAAAC,QAAA,CAAAC,aAAA,EAAAD,QAAA,CAAAE,QAAA,QACC,IAAAF,QAAA,CAAAC,aAAA,EAACH,aAAA,CAAAK,eAAe;IACfC,MAAM,EAAGV,OAAO,CAAE,wBAAyB,CAAG;IAC9CW,cAAc,EAAGX,OAAO,CAAE,uBAAwB;EAAG,CACrD,CAAC,EACF,IAAAM,QAAA,CAAAC,aAAA,EAACR,YAAA,CAAAa,IAAI;IAACC,KAAK,EAAGC,cAAM,CAACC;EAAqB,GACzC,IAAAT,QAAA,CAAAC,aAAA,EAACH,aAAA,CAAAY,kBAAkB;IAClBC,IAAI,EAAG,IAAAC,QAAE,EACR,yFACD;EAAG,CACH,CAAC,EACF,IAAAZ,QAAA,CAAAC,aAAA,EAACH,aAAA,CAAAY,kBAAkB;IAClBC,IAAI,EAAG,IAAAC,QAAE,EACR,0KACD;EAAG,CACH,CACI,CACL,CAAC;AAEL,CAAC;AAAC,IAAAC,QAAA,GAEad,SAAS;AAAAe,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_reactNative","require","_i18n","_style","_interopRequireDefault","_viewSections","AddBlocks","_react","createElement","Fragment","HelpDetailImage","source","sourceDarkMode","View","style","styles","helpDetailContainer","HelpDetailBodyText","text","__","_default","exports","default"],"sources":["@wordpress/editor/src/components/editor-help/add-blocks.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { View } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\nimport { HelpDetailBodyText, HelpDetailImage } from './view-sections';\n\nconst AddBlocks = () => {\n\treturn (\n\t\t<>\n\t\t\t<HelpDetailImage\n\t\t\t\tsource={ require( './images/add-light.png' ) }\n\t\t\t\tsourceDarkMode={ require( './images/add-dark.png' ) }\n\t\t\t/>\n\t\t\t<View style={ styles.helpDetailContainer }>\n\t\t\t\t<HelpDetailBodyText\n\t\t\t\t\ttext={ __(\n\t\t\t\t\t\t'Add a new block at any time by tapping on the + icon in the toolbar on the bottom left.'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t<HelpDetailBodyText\n\t\t\t\t\ttext={ __(\n\t\t\t\t\t\t'Once you become familiar with the names of different blocks, you can add a block by typing a forward slash followed by the block name — for example, /image or /heading.'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t</View>\n\t\t</>\n\t);\n};\n\nexport default AddBlocks;\n"],"mappings":";;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,KAAA,GAAAD,OAAA;AAKA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAdA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;;AAIA,MAAMK,SAAS,GAAGA,CAAA,KAAM;EACvB,OACC,IAAAC,MAAA,CAAAC,aAAA,EAAAD,MAAA,CAAAE,QAAA,QACC,IAAAF,MAAA,CAAAC,aAAA,EAACH,aAAA,CAAAK,eAAe;IACfC,MAAM,EAAGV,OAAO,CAAE,wBAAyB,CAAG;IAC9CW,cAAc,EAAGX,OAAO,CAAE,uBAAwB;EAAG,CACrD,CAAC,EACF,IAAAM,MAAA,CAAAC,aAAA,EAACR,YAAA,CAAAa,IAAI;IAACC,KAAK,EAAGC,cAAM,CAACC;EAAqB,GACzC,IAAAT,MAAA,CAAAC,aAAA,EAACH,aAAA,CAAAY,kBAAkB;IAClBC,IAAI,EAAG,IAAAC,QAAE,EACR,yFACD;EAAG,CACH,CAAC,EACF,IAAAZ,MAAA,CAAAC,aAAA,EAACH,aAAA,CAAAY,kBAAkB;IAClBC,IAAI,EAAG,IAAAC,QAAE,EACR,0KACD;EAAG,CACH,CACI,CACL,CAAC;AAEL,CAAC;AAAC,IAAAC,QAAA,GAEad,SAAS;AAAAe,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _reactNative = require("react-native");
10
10
  var _i18n = require("@wordpress/i18n");
11
11
  var _style = _interopRequireDefault(require("./style.scss"));
@@ -23,14 +23,14 @@ var _viewSections = require("./view-sections");
23
23
  */
24
24
 
25
25
  const CustomizeBlocks = () => {
26
- return (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)(_viewSections.HelpDetailImage, {
26
+ return (0, _react.createElement)(_react.Fragment, null, (0, _react.createElement)(_viewSections.HelpDetailImage, {
27
27
  source: require('./images/settings-light.png'),
28
28
  sourceDarkMode: require('./images/settings-dark.png')
29
- }), (0, _element.createElement)(_reactNative.View, {
29
+ }), (0, _react.createElement)(_reactNative.View, {
30
30
  style: _style.default.helpDetailContainer
31
- }, (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
31
+ }, (0, _react.createElement)(_viewSections.HelpDetailBodyText, {
32
32
  text: (0, _i18n.__)('Each block has its own settings. To find them, tap on a block. Its settings will appear on the toolbar at the bottom of the screen.')
33
- }), (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
33
+ }), (0, _react.createElement)(_viewSections.HelpDetailBodyText, {
34
34
  text: (0, _i18n.__)('Some blocks have additional settings. Tap the settings icon on the bottom right of the block to view more options.')
35
35
  })));
36
36
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_i18n","_style","_interopRequireDefault","_viewSections","CustomizeBlocks","_element","createElement","Fragment","HelpDetailImage","source","sourceDarkMode","View","style","styles","helpDetailContainer","HelpDetailBodyText","text","__","_default","exports","default"],"sources":["@wordpress/editor/src/components/editor-help/customize-blocks.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { View } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\nimport { HelpDetailBodyText, HelpDetailImage } from './view-sections';\n\nconst CustomizeBlocks = () => {\n\treturn (\n\t\t<>\n\t\t\t<HelpDetailImage\n\t\t\t\tsource={ require( './images/settings-light.png' ) }\n\t\t\t\tsourceDarkMode={ require( './images/settings-dark.png' ) }\n\t\t\t/>\n\t\t\t<View style={ styles.helpDetailContainer }>\n\t\t\t\t<HelpDetailBodyText\n\t\t\t\t\ttext={ __(\n\t\t\t\t\t\t'Each block has its own settings. To find them, tap on a block. Its settings will appear on the toolbar at the bottom of the screen.'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t<HelpDetailBodyText\n\t\t\t\t\ttext={ __(\n\t\t\t\t\t\t'Some blocks have additional settings. Tap the settings icon on the bottom right of the block to view more options.'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t</View>\n\t\t</>\n\t);\n};\n\nexport default CustomizeBlocks;\n"],"mappings":";;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,KAAA,GAAAD,OAAA;AAKA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAdA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;;AAIA,MAAMK,eAAe,GAAGA,CAAA,KAAM;EAC7B,OACC,IAAAC,QAAA,CAAAC,aAAA,EAAAD,QAAA,CAAAE,QAAA,QACC,IAAAF,QAAA,CAAAC,aAAA,EAACH,aAAA,CAAAK,eAAe;IACfC,MAAM,EAAGV,OAAO,CAAE,6BAA8B,CAAG;IACnDW,cAAc,EAAGX,OAAO,CAAE,4BAA6B;EAAG,CAC1D,CAAC,EACF,IAAAM,QAAA,CAAAC,aAAA,EAACR,YAAA,CAAAa,IAAI;IAACC,KAAK,EAAGC,cAAM,CAACC;EAAqB,GACzC,IAAAT,QAAA,CAAAC,aAAA,EAACH,aAAA,CAAAY,kBAAkB;IAClBC,IAAI,EAAG,IAAAC,QAAE,EACR,qIACD;EAAG,CACH,CAAC,EACF,IAAAZ,QAAA,CAAAC,aAAA,EAACH,aAAA,CAAAY,kBAAkB;IAClBC,IAAI,EAAG,IAAAC,QAAE,EACR,oHACD;EAAG,CACH,CACI,CACL,CAAC;AAEL,CAAC;AAAC,IAAAC,QAAA,GAEad,eAAe;AAAAe,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_reactNative","require","_i18n","_style","_interopRequireDefault","_viewSections","CustomizeBlocks","_react","createElement","Fragment","HelpDetailImage","source","sourceDarkMode","View","style","styles","helpDetailContainer","HelpDetailBodyText","text","__","_default","exports","default"],"sources":["@wordpress/editor/src/components/editor-help/customize-blocks.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { View } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\nimport { HelpDetailBodyText, HelpDetailImage } from './view-sections';\n\nconst CustomizeBlocks = () => {\n\treturn (\n\t\t<>\n\t\t\t<HelpDetailImage\n\t\t\t\tsource={ require( './images/settings-light.png' ) }\n\t\t\t\tsourceDarkMode={ require( './images/settings-dark.png' ) }\n\t\t\t/>\n\t\t\t<View style={ styles.helpDetailContainer }>\n\t\t\t\t<HelpDetailBodyText\n\t\t\t\t\ttext={ __(\n\t\t\t\t\t\t'Each block has its own settings. To find them, tap on a block. Its settings will appear on the toolbar at the bottom of the screen.'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t<HelpDetailBodyText\n\t\t\t\t\ttext={ __(\n\t\t\t\t\t\t'Some blocks have additional settings. Tap the settings icon on the bottom right of the block to view more options.'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t</View>\n\t\t</>\n\t);\n};\n\nexport default CustomizeBlocks;\n"],"mappings":";;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,KAAA,GAAAD,OAAA;AAKA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAdA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;;AAIA,MAAMK,eAAe,GAAGA,CAAA,KAAM;EAC7B,OACC,IAAAC,MAAA,CAAAC,aAAA,EAAAD,MAAA,CAAAE,QAAA,QACC,IAAAF,MAAA,CAAAC,aAAA,EAACH,aAAA,CAAAK,eAAe;IACfC,MAAM,EAAGV,OAAO,CAAE,6BAA8B,CAAG;IACnDW,cAAc,EAAGX,OAAO,CAAE,4BAA6B;EAAG,CAC1D,CAAC,EACF,IAAAM,MAAA,CAAAC,aAAA,EAACR,YAAA,CAAAa,IAAI;IAACC,KAAK,EAAGC,cAAM,CAACC;EAAqB,GACzC,IAAAT,MAAA,CAAAC,aAAA,EAACH,aAAA,CAAAY,kBAAkB;IAClBC,IAAI,EAAG,IAAAC,QAAE,EACR,qIACD;EAAG,CACH,CAAC,EACF,IAAAZ,MAAA,CAAAC,aAAA,EAACH,aAAA,CAAAY,kBAAkB;IAClBC,IAAI,EAAG,IAAAC,QAAE,EACR,oHACD;EAAG,CACH,CACI,CACL,CAAC;AAEL,CAAC;AAAC,IAAAC,QAAA,GAEad,eAAe;AAAAe,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -5,10 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _reactNative = require("react-native");
10
10
  var _native = require("@react-navigation/native");
11
11
  var _components = require("@wordpress/components");
12
+ var _element = require("@wordpress/element");
12
13
  var _style = _interopRequireDefault(require("./style.scss"));
13
14
  /**
14
15
  * External dependencies
@@ -31,14 +32,14 @@ const HelpDetailNavigationScreen = ({
31
32
  listProps
32
33
  } = (0, _element.useContext)(_components.BottomSheetContext);
33
34
  const contentContainerStyle = _reactNative.StyleSheet.flatten(listProps.contentContainerStyle);
34
- return (0, _element.createElement)(_components.BottomSheet.NavigationScreen, {
35
+ return (0, _react.createElement)(_components.BottomSheet.NavigationScreen, {
35
36
  isScrollable: true,
36
37
  fullScreen: true
37
- }, (0, _element.createElement)(_reactNative.View, {
38
+ }, (0, _react.createElement)(_reactNative.View, {
38
39
  style: _style.default.container
39
- }, (0, _element.createElement)(_components.BottomSheet.NavBar, null, (0, _element.createElement)(_components.BottomSheet.NavBar.BackButton, {
40
+ }, (0, _react.createElement)(_components.BottomSheet.NavBar, null, (0, _react.createElement)(_components.BottomSheet.NavBar.BackButton, {
40
41
  onPress: navigation.goBack
41
- }), (0, _element.createElement)(_components.BottomSheet.NavBar.Heading, null, label)), (0, _element.createElement)(_reactNative.ScrollView, {
42
+ }), (0, _react.createElement)(_components.BottomSheet.NavBar.Heading, null, label)), (0, _react.createElement)(_reactNative.ScrollView, {
42
43
  ...listProps,
43
44
  contentContainerStyle: {
44
45
  ...contentContainerStyle,
@@ -50,9 +51,9 @@ const HelpDetailNavigationScreen = ({
50
51
  */
51
52
  marginTop: 0
52
53
  }
53
- }, (0, _element.createElement)(_reactNative.TouchableWithoutFeedback, {
54
+ }, (0, _react.createElement)(_reactNative.TouchableWithoutFeedback, {
54
55
  accessible: false
55
- }, (0, _element.createElement)(_reactNative.View, null, content)))));
56
+ }, (0, _react.createElement)(_reactNative.View, null, content)))));
56
57
  };
57
58
  var _default = HelpDetailNavigationScreen;
58
59
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","_reactNative","_native","_components","_style","_interopRequireDefault","HelpDetailNavigationScreen","content","label","navigation","useNavigation","listProps","useContext","BottomSheetContext","contentContainerStyle","StyleSheet","flatten","createElement","BottomSheet","NavigationScreen","isScrollable","fullScreen","View","style","styles","container","NavBar","BackButton","onPress","goBack","Heading","ScrollView","paddingBottom","Math","max","safeAreaBottomInset","marginTop","TouchableWithoutFeedback","accessible","_default","exports","default"],"sources":["@wordpress/editor/src/components/editor-help/help-detail-navigation-screen.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport {\n\tScrollView,\n\tStyleSheet,\n\tTouchableWithoutFeedback,\n\tView,\n} from 'react-native';\nimport { useNavigation } from '@react-navigation/native';\n\n/**\n * WordPress dependencies\n */\nimport { BottomSheet, BottomSheetContext } from '@wordpress/components';\nimport { useContext } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\n\nconst HelpDetailNavigationScreen = ( { content, label } ) => {\n\tconst navigation = useNavigation();\n\n\tconst { listProps } = useContext( BottomSheetContext );\n\tconst contentContainerStyle = StyleSheet.flatten(\n\t\tlistProps.contentContainerStyle\n\t);\n\n\treturn (\n\t\t<BottomSheet.NavigationScreen isScrollable fullScreen>\n\t\t\t<View style={ styles.container }>\n\t\t\t\t<BottomSheet.NavBar>\n\t\t\t\t\t<BottomSheet.NavBar.BackButton\n\t\t\t\t\t\tonPress={ navigation.goBack }\n\t\t\t\t\t/>\n\t\t\t\t\t<BottomSheet.NavBar.Heading>\n\t\t\t\t\t\t{ label }\n\t\t\t\t\t</BottomSheet.NavBar.Heading>\n\t\t\t\t</BottomSheet.NavBar>\n\t\t\t\t<ScrollView\n\t\t\t\t\t{ ...listProps }\n\t\t\t\t\tcontentContainerStyle={ {\n\t\t\t\t\t\t...contentContainerStyle,\n\t\t\t\t\t\tpaddingBottom: Math.max(\n\t\t\t\t\t\t\tlistProps.safeAreaBottomInset,\n\t\t\t\t\t\t\tcontentContainerStyle.paddingBottom\n\t\t\t\t\t\t),\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Remove margin set via `hideHeader`. Combining a header\n\t\t\t\t\t\t * and navigation in this bottom sheet is at odds with the\n\t\t\t\t\t\t * current `BottomSheet` implementation.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tmarginTop: 0,\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t<TouchableWithoutFeedback accessible={ false }>\n\t\t\t\t\t\t<View>{ content }</View>\n\t\t\t\t\t</TouchableWithoutFeedback>\n\t\t\t\t</ScrollView>\n\t\t\t</View>\n\t\t</BottomSheet.NavigationScreen>\n\t);\n};\n\nexport default HelpDetailNavigationScreen;\n"],"mappings":";;;;;;;AAeA,IAAAA,QAAA,GAAAC,OAAA;AAZA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,OAAA,GAAAF,OAAA;AAKA,IAAAG,WAAA,GAAAH,OAAA;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B,YAAA,CAAAoC,wBAAwB;IAACC,UAAU,EAAG;EAAO,GAC7C,IAAAvC,QAAA,CAAAkB,aAAA,EAAChB,YAAA,CAAAqB,IAAI,QAAGf,OAAe,CACE,CACf,CACP,CACuB,CAAC;AAEjC,CAAC;AAAC,IAAAgC,QAAA,GAEajC,0BAA0B;AAAAkC,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_reactNative","require","_native","_components","_element","_style","_interopRequireDefault","HelpDetailNavigationScreen","content","label","navigation","useNavigation","listProps","useContext","BottomSheetContext","contentContainerStyle","StyleSheet","flatten","_react","createElement","BottomSheet","NavigationScreen","isScrollable","fullScreen","View","style","styles","container","NavBar","BackButton","onPress","goBack","Heading","ScrollView","paddingBottom","Math","max","safeAreaBottomInset","marginTop","TouchableWithoutFeedback","accessible","_default","exports","default"],"sources":["@wordpress/editor/src/components/editor-help/help-detail-navigation-screen.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport {\n\tScrollView,\n\tStyleSheet,\n\tTouchableWithoutFeedback,\n\tView,\n} from 'react-native';\nimport { useNavigation } from '@react-navigation/native';\n\n/**\n * WordPress dependencies\n */\nimport { BottomSheet, BottomSheetContext } from '@wordpress/components';\nimport { useContext } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\n\nconst HelpDetailNavigationScreen = ( { content, label } ) => {\n\tconst navigation = useNavigation();\n\n\tconst { listProps } = useContext( BottomSheetContext );\n\tconst contentContainerStyle = StyleSheet.flatten(\n\t\tlistProps.contentContainerStyle\n\t);\n\n\treturn (\n\t\t<BottomSheet.NavigationScreen isScrollable fullScreen>\n\t\t\t<View style={ styles.container }>\n\t\t\t\t<BottomSheet.NavBar>\n\t\t\t\t\t<BottomSheet.NavBar.BackButton\n\t\t\t\t\t\tonPress={ navigation.goBack }\n\t\t\t\t\t/>\n\t\t\t\t\t<BottomSheet.NavBar.Heading>\n\t\t\t\t\t\t{ label }\n\t\t\t\t\t</BottomSheet.NavBar.Heading>\n\t\t\t\t</BottomSheet.NavBar>\n\t\t\t\t<ScrollView\n\t\t\t\t\t{ ...listProps }\n\t\t\t\t\tcontentContainerStyle={ {\n\t\t\t\t\t\t...contentContainerStyle,\n\t\t\t\t\t\tpaddingBottom: Math.max(\n\t\t\t\t\t\t\tlistProps.safeAreaBottomInset,\n\t\t\t\t\t\t\tcontentContainerStyle.paddingBottom\n\t\t\t\t\t\t),\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Remove margin set via `hideHeader`. Combining a header\n\t\t\t\t\t\t * and navigation in this bottom sheet is at odds with the\n\t\t\t\t\t\t * current `BottomSheet` implementation.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tmarginTop: 0,\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t<TouchableWithoutFeedback accessible={ false }>\n\t\t\t\t\t\t<View>{ content }</View>\n\t\t\t\t\t</TouchableWithoutFeedback>\n\t\t\t\t</ScrollView>\n\t\t\t</View>\n\t\t</BottomSheet.NavigationScreen>\n\t);\n};\n\nexport default HelpDetailNavigationScreen;\n"],"mappings":";;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAMA,IAAAC,OAAA,GAAAD,OAAA;AAKA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAKA,IAAAI,MAAA,GAAAC,sBAAA,CAAAL,OAAA;AApBA;AACA;AACA;;AASA;AACA;AACA;;AAIA;AACA;AACA;;AAGA,MAAMM,0BAA0B,GAAGA,CAAE;EAAEC,OAAO;EAAEC;AAAM,CAAC,KAAM;EAC5D,MAAMC,UAAU,GAAG,IAAAC,qBAAa,EAAC,CAAC;EAElC,MAAM;IAAEC;EAAU,CAAC,GAAG,IAAAC,mBAAU,EAAEC,8BAAmB,CAAC;EACtD,MAAMC,qBAAqB,GAAGC,uBAAU,CAACC,OAAO,CAC/CL,SAAS,CAACG,qBACX,CAAC;EAED,OACC,IAAAG,MAAA,CAAAC,aAAA,EAAChB,WAAA,CAAAiB,WAAW,CAACC,gBAAgB;IAACC,YAAY;IAACC,UAAU;EAAA,GACpD,IAAAL,MAAA,CAAAC,aAAA,EAACnB,YAAA,CAAAwB,IAAI;IAACC,KAAK,EAAGC,cAAM,CAACC;EAAW,GAC/B,IAAAT,MAAA,CAAAC,aAAA,EAAChB,WAAA,CAAAiB,WAAW,CAACQ,MAAM,QAClB,IAAAV,MAAA,CAAAC,aAAA,EAAChB,WAAA,CAAAiB,WAAW,CAACQ,MAAM,CAACC,UAAU;IAC7BC,OAAO,EAAGpB,UAAU,CAACqB;EAAQ,CAC7B,CAAC,EACF,IAAAb,MAAA,CAAAC,aAAA,EAAChB,WAAA,CAAAiB,WAAW,CAACQ,MAAM,CAACI,OAAO,QACxBvB,KACyB,CACT,CAAC,EACrB,IAAAS,MAAA,CAAAC,aAAA,EAACnB,YAAA,CAAAiC,UAAU;IAAA,GACLrB,SAAS;IACdG,qBAAqB,EAAG;MACvB,GAAGA,qBAAqB;MACxBmB,aAAa,EAAEC,IAAI,CAACC,GAAG,CACtBxB,SAAS,CAACyB,mBAAmB,EAC7BtB,qBAAqB,CAACmB,aACvB,CAAC;MACD;AACN;AACA;AACA;AACA;MACMI,SAAS,EAAE;IACZ;EAAG,GAEH,IAAApB,MAAA,CAAAC,aAAA,EAACnB,YAAA,CAAAuC,wBAAwB;IAACC,UAAU,EAAG;EAAO,GAC7C,IAAAtB,MAAA,CAAAC,aAAA,EAACnB,YAAA,CAAAwB,IAAI,QAAGhB,OAAe,CACE,CACf,CACP,CACuB,CAAC;AAEjC,CAAC;AAAC,IAAAiC,QAAA,GAEalC,0BAA0B;AAAAmC,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _reactNative = require("react-native");
10
10
  var _compose = require("@wordpress/compose");
11
11
  var _style = _interopRequireDefault(require("./style.scss"));
@@ -27,11 +27,11 @@ const HelpGetSupportButton = ({
27
27
  }) => {
28
28
  const buttonStyle = (0, _compose.usePreferredColorSchemeStyle)(_style.default.button, _style.default.buttonDark);
29
29
  const textStyle = (0, _compose.usePreferredColorSchemeStyle)(_style.default.buttonText, _style.default.buttonTextDark);
30
- return (0, _element.createElement)(_reactNative.Pressable, {
30
+ return (0, _react.createElement)(_reactNative.Pressable, {
31
31
  style: buttonStyle,
32
32
  onPress: onPress,
33
33
  accessibilityRole: 'button'
34
- }, (0, _element.createElement)(_reactNative.Text, {
34
+ }, (0, _react.createElement)(_reactNative.Text, {
35
35
  style: textStyle
36
36
  }, title));
37
37
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_compose","_style","_interopRequireDefault","HelpGetSupportButton","onPress","title","buttonStyle","usePreferredColorSchemeStyle","styles","button","buttonDark","textStyle","buttonText","buttonTextDark","_element","createElement","Pressable","style","accessibilityRole","Text","_default","exports","default"],"sources":["@wordpress/editor/src/components/editor-help/help-get-support-button.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { Pressable, Text } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\n\nconst HelpGetSupportButton = ( { onPress, title } ) => {\n\tconst buttonStyle = usePreferredColorSchemeStyle(\n\t\tstyles.button,\n\t\tstyles.buttonDark\n\t);\n\n\tconst textStyle = usePreferredColorSchemeStyle(\n\t\tstyles.buttonText,\n\t\tstyles.buttonTextDark\n\t);\n\n\treturn (\n\t\t<Pressable\n\t\t\tstyle={ buttonStyle }\n\t\t\tonPress={ onPress }\n\t\t\taccessibilityRole={ 'button' }\n\t\t>\n\t\t\t<Text style={ textStyle }>{ title }</Text>\n\t\t</Pressable>\n\t);\n};\n\nexport default HelpGetSupportButton;\n"],"mappings":";;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AAKA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AAbA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;;AAGA,MAAMI,oBAAoB,GAAGA,CAAE;EAAEC,OAAO;EAAEC;AAAM,CAAC,KAAM;EACtD,MAAMC,WAAW,GAAG,IAAAC,qCAA4B,EAC/CC,cAAM,CAACC,MAAM,EACbD,cAAM,CAACE,UACR,CAAC;EAED,MAAMC,SAAS,GAAG,IAAAJ,qCAA4B,EAC7CC,cAAM,CAACI,UAAU,EACjBJ,cAAM,CAACK,cACR,CAAC;EAED,OACC,IAAAC,QAAA,CAAAC,aAAA,EAACjB,YAAA,CAAAkB,SAAS;IACTC,KAAK,EAAGX,WAAa;IACrBF,OAAO,EAAGA,OAAS;IACnBc,iBAAiB,EAAG;EAAU,GAE9B,IAAAJ,QAAA,CAAAC,aAAA,EAACjB,YAAA,CAAAqB,IAAI;IAACF,KAAK,EAAGN;EAAW,GAAGN,KAAa,CAC/B,CAAC;AAEd,CAAC;AAAC,IAAAe,QAAA,GAEajB,oBAAoB;AAAAkB,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_reactNative","require","_compose","_style","_interopRequireDefault","HelpGetSupportButton","onPress","title","buttonStyle","usePreferredColorSchemeStyle","styles","button","buttonDark","textStyle","buttonText","buttonTextDark","_react","createElement","Pressable","style","accessibilityRole","Text","_default","exports","default"],"sources":["@wordpress/editor/src/components/editor-help/help-get-support-button.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { Pressable, Text } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\n\nconst HelpGetSupportButton = ( { onPress, title } ) => {\n\tconst buttonStyle = usePreferredColorSchemeStyle(\n\t\tstyles.button,\n\t\tstyles.buttonDark\n\t);\n\n\tconst textStyle = usePreferredColorSchemeStyle(\n\t\tstyles.buttonText,\n\t\tstyles.buttonTextDark\n\t);\n\n\treturn (\n\t\t<Pressable\n\t\t\tstyle={ buttonStyle }\n\t\t\tonPress={ onPress }\n\t\t\taccessibilityRole={ 'button' }\n\t\t>\n\t\t\t<Text style={ textStyle }>{ title }</Text>\n\t\t</Pressable>\n\t);\n};\n\nexport default HelpGetSupportButton;\n"],"mappings":";;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AAKA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AAbA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;;AAGA,MAAMI,oBAAoB,GAAGA,CAAE;EAAEC,OAAO;EAAEC;AAAM,CAAC,KAAM;EACtD,MAAMC,WAAW,GAAG,IAAAC,qCAA4B,EAC/CC,cAAM,CAACC,MAAM,EACbD,cAAM,CAACE,UACR,CAAC;EAED,MAAMC,SAAS,GAAG,IAAAJ,qCAA4B,EAC7CC,cAAM,CAACI,UAAU,EACjBJ,cAAM,CAACK,cACR,CAAC;EAED,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACjB,YAAA,CAAAkB,SAAS;IACTC,KAAK,EAAGX,WAAa;IACrBF,OAAO,EAAGA,OAAS;IACnBc,iBAAiB,EAAG;EAAU,GAE9B,IAAAJ,MAAA,CAAAC,aAAA,EAACjB,YAAA,CAAAqB,IAAI;IAACF,KAAK,EAAGN;EAAW,GAAGN,KAAa,CAC/B,CAAC;AAEd,CAAC;AAAC,IAAAe,QAAA,GAEajB,oBAAoB;AAAAkB,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _reactNative = require("react-native");
10
10
  var _compose = require("@wordpress/compose");
11
11
  var _style = _interopRequireDefault(require("./style.scss"));
@@ -25,9 +25,9 @@ const HelpSectionTitle = ({
25
25
  children
26
26
  }) => {
27
27
  const helpSectionTitle = (0, _compose.usePreferredColorSchemeStyle)(_style.default.helpSectionTitle, _style.default.helpSectionTitleDark);
28
- return (0, _element.createElement)(_reactNative.View, {
28
+ return (0, _react.createElement)(_reactNative.View, {
29
29
  style: _style.default.helpSectionTitleContainer
30
- }, (0, _element.createElement)(_reactNative.Text, {
30
+ }, (0, _react.createElement)(_reactNative.Text, {
31
31
  style: helpSectionTitle
32
32
  }, children));
33
33
  };