@wordpress/editor 11.0.1-next.253d9b6e21.0 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +1 -1
  3. package/build/components/character-count/index.js +1 -1
  4. package/build/components/character-count/index.js.map +1 -1
  5. package/build/components/editor-help/add-blocks.native.js +6 -5
  6. package/build/components/editor-help/add-blocks.native.js.map +1 -1
  7. package/build/components/editor-help/customize-blocks.native.js +7 -6
  8. package/build/components/editor-help/customize-blocks.native.js.map +1 -1
  9. package/build/components/editor-help/help-detail-navigation-screen.native.js +29 -15
  10. package/build/components/editor-help/help-detail-navigation-screen.native.js.map +1 -1
  11. package/build/components/editor-help/help-get-support-button.native.js +46 -0
  12. package/build/components/editor-help/help-get-support-button.native.js.map +1 -0
  13. package/build/components/editor-help/help-topic-row.native.js +3 -2
  14. package/build/components/editor-help/help-topic-row.native.js.map +1 -1
  15. package/build/components/editor-help/index.native.js +83 -23
  16. package/build/components/editor-help/index.native.js.map +1 -1
  17. package/build/components/editor-help/intro-to-blocks.native.js +19 -9
  18. package/build/components/editor-help/intro-to-blocks.native.js.map +1 -1
  19. package/build/components/editor-help/move-blocks.native.js +6 -5
  20. package/build/components/editor-help/move-blocks.native.js.map +1 -1
  21. package/build/components/editor-help/remove-blocks.native.js +6 -5
  22. package/build/components/editor-help/remove-blocks.native.js.map +1 -1
  23. package/build/components/editor-help/view-sections.native.js +23 -5
  24. package/build/components/editor-help/view-sections.native.js.map +1 -1
  25. package/build/components/global-keyboard-shortcuts/save-shortcut.js +12 -14
  26. package/build/components/global-keyboard-shortcuts/save-shortcut.js.map +1 -1
  27. package/build/components/global-keyboard-shortcuts/visual-editor-shortcuts.js +0 -4
  28. package/build/components/global-keyboard-shortcuts/visual-editor-shortcuts.js.map +1 -1
  29. package/build/components/index.js +9 -0
  30. package/build/components/index.js.map +1 -1
  31. package/build/components/local-autosave-monitor/index.js +1 -2
  32. package/build/components/local-autosave-monitor/index.js.map +1 -1
  33. package/build/components/post-format/index.js +3 -1
  34. package/build/components/post-format/index.js.map +1 -1
  35. package/build/components/post-locked-modal/index.js +1 -1
  36. package/build/components/post-locked-modal/index.js.map +1 -1
  37. package/build/components/post-saved-state/index.js +37 -46
  38. package/build/components/post-saved-state/index.js.map +1 -1
  39. package/build/components/post-title/index.js +51 -25
  40. package/build/components/post-title/index.js.map +1 -1
  41. package/build/components/provider/index.native.js +18 -7
  42. package/build/components/provider/index.native.js.map +1 -1
  43. package/build/components/provider/use-block-editor-settings.js +32 -5
  44. package/build/components/provider/use-block-editor-settings.js.map +1 -1
  45. package/build/components/word-count/index.js +1 -1
  46. package/build/components/word-count/index.js.map +1 -1
  47. package/build/store/actions.js +13 -38
  48. package/build/store/actions.js.map +1 -1
  49. package/build/store/defaults.js +7 -2
  50. package/build/store/defaults.js.map +1 -1
  51. package/build/store/selectors.js +4 -93
  52. package/build/store/selectors.js.map +1 -1
  53. package/build/{store/utils → utils}/get-template-part-icon.js +0 -0
  54. package/build/utils/get-template-part-icon.js.map +1 -0
  55. package/build/utils/index.js +8 -0
  56. package/build/utils/index.js.map +1 -1
  57. package/build-module/components/character-count/index.js +1 -1
  58. package/build-module/components/character-count/index.js.map +1 -1
  59. package/build-module/components/editor-help/add-blocks.native.js +7 -6
  60. package/build-module/components/editor-help/add-blocks.native.js.map +1 -1
  61. package/build-module/components/editor-help/customize-blocks.native.js +8 -7
  62. package/build-module/components/editor-help/customize-blocks.native.js.map +1 -1
  63. package/build-module/components/editor-help/help-detail-navigation-screen.native.js +31 -18
  64. package/build-module/components/editor-help/help-detail-navigation-screen.native.js.map +1 -1
  65. package/build-module/components/editor-help/help-get-support-button.native.js +34 -0
  66. package/build-module/components/editor-help/help-get-support-button.native.js.map +1 -0
  67. package/build-module/components/editor-help/help-topic-row.native.js +3 -2
  68. package/build-module/components/editor-help/help-topic-row.native.js.map +1 -1
  69. package/build-module/components/editor-help/index.native.js +77 -25
  70. package/build-module/components/editor-help/index.native.js.map +1 -1
  71. package/build-module/components/editor-help/intro-to-blocks.native.js +19 -10
  72. package/build-module/components/editor-help/intro-to-blocks.native.js.map +1 -1
  73. package/build-module/components/editor-help/move-blocks.native.js +7 -6
  74. package/build-module/components/editor-help/move-blocks.native.js.map +1 -1
  75. package/build-module/components/editor-help/remove-blocks.native.js +7 -6
  76. package/build-module/components/editor-help/remove-blocks.native.js.map +1 -1
  77. package/build-module/components/editor-help/view-sections.native.js +22 -5
  78. package/build-module/components/editor-help/view-sections.native.js.map +1 -1
  79. package/build-module/components/global-keyboard-shortcuts/save-shortcut.js +12 -14
  80. package/build-module/components/global-keyboard-shortcuts/save-shortcut.js.map +1 -1
  81. package/build-module/components/global-keyboard-shortcuts/visual-editor-shortcuts.js +0 -4
  82. package/build-module/components/global-keyboard-shortcuts/visual-editor-shortcuts.js.map +1 -1
  83. package/build-module/components/index.js +1 -0
  84. package/build-module/components/index.js.map +1 -1
  85. package/build-module/components/local-autosave-monitor/index.js +1 -2
  86. package/build-module/components/local-autosave-monitor/index.js.map +1 -1
  87. package/build-module/components/post-format/index.js +4 -2
  88. package/build-module/components/post-format/index.js.map +1 -1
  89. package/build-module/components/post-locked-modal/index.js +1 -1
  90. package/build-module/components/post-locked-modal/index.js.map +1 -1
  91. package/build-module/components/post-saved-state/index.js +38 -46
  92. package/build-module/components/post-saved-state/index.js.map +1 -1
  93. package/build-module/components/post-title/index.js +51 -22
  94. package/build-module/components/post-title/index.js.map +1 -1
  95. package/build-module/components/provider/index.native.js +18 -7
  96. package/build-module/components/provider/index.native.js.map +1 -1
  97. package/build-module/components/provider/use-block-editor-settings.js +31 -5
  98. package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
  99. package/build-module/components/word-count/index.js +1 -1
  100. package/build-module/components/word-count/index.js.map +1 -1
  101. package/build-module/store/actions.js +13 -36
  102. package/build-module/store/actions.js.map +1 -1
  103. package/build-module/store/defaults.js +7 -2
  104. package/build-module/store/defaults.js.map +1 -1
  105. package/build-module/store/selectors.js +3 -85
  106. package/build-module/store/selectors.js.map +1 -1
  107. package/build-module/{store/utils → utils}/get-template-part-icon.js +0 -0
  108. package/build-module/utils/get-template-part-icon.js.map +1 -0
  109. package/build-module/utils/index.js +1 -0
  110. package/build-module/utils/index.js.map +1 -1
  111. package/build-style/style-rtl.css +9 -60
  112. package/build-style/style.css +9 -60
  113. package/package.json +30 -30
  114. package/src/components/character-count/index.js +3 -2
  115. package/src/components/editor-help/add-blocks.native.js +17 -12
  116. package/src/components/editor-help/customize-blocks.native.js +16 -13
  117. package/src/components/editor-help/help-detail-navigation-screen.native.js +45 -15
  118. package/src/components/editor-help/help-get-support-button.native.js +38 -0
  119. package/src/components/editor-help/help-topic-row.native.js +2 -2
  120. package/src/components/editor-help/images/add-dark.png +0 -0
  121. package/src/components/editor-help/images/add-dark@2x.png +0 -0
  122. package/src/components/editor-help/images/add-dark@3x.png +0 -0
  123. package/src/components/editor-help/images/add-light.png +0 -0
  124. package/src/components/editor-help/images/add-light@2x.png +0 -0
  125. package/src/components/editor-help/images/add-light@3x.png +0 -0
  126. package/src/components/editor-help/images/block-layout-collage.png +0 -0
  127. package/src/components/editor-help/images/block-layout-collage@2x.png +0 -0
  128. package/src/components/editor-help/images/block-layout-collage@3x.png +0 -0
  129. package/src/components/editor-help/images/build-layouts-dark.png +0 -0
  130. package/src/components/editor-help/images/build-layouts-dark@2x.png +0 -0
  131. package/src/components/editor-help/images/build-layouts-dark@3x.png +0 -0
  132. package/src/components/editor-help/images/build-layouts-light.png +0 -0
  133. package/src/components/editor-help/images/build-layouts-light@2x.png +0 -0
  134. package/src/components/editor-help/images/build-layouts-light@3x.png +0 -0
  135. package/src/components/editor-help/images/edit-media-dark.png +0 -0
  136. package/src/components/editor-help/images/edit-media-dark@2x.png +0 -0
  137. package/src/components/editor-help/images/edit-media-dark@3x.png +0 -0
  138. package/src/components/editor-help/images/edit-media-light.png +0 -0
  139. package/src/components/editor-help/images/edit-media-light@2x.png +0 -0
  140. package/src/components/editor-help/images/edit-media-light@3x.png +0 -0
  141. package/src/components/editor-help/images/embed-media-dark.png +0 -0
  142. package/src/components/editor-help/images/embed-media-dark@2x.png +0 -0
  143. package/src/components/editor-help/images/embed-media-dark@3x.png +0 -0
  144. package/src/components/editor-help/images/embed-media-light.png +0 -0
  145. package/src/components/editor-help/images/embed-media-light@2x.png +0 -0
  146. package/src/components/editor-help/images/embed-media-light@3x.png +0 -0
  147. package/src/components/editor-help/images/move-dark.png +0 -0
  148. package/src/components/editor-help/images/move-dark@2x.png +0 -0
  149. package/src/components/editor-help/images/move-dark@3x.png +0 -0
  150. package/src/components/editor-help/images/move-light.png +0 -0
  151. package/src/components/editor-help/images/move-light@2x.png +0 -0
  152. package/src/components/editor-help/images/move-light@3x.png +0 -0
  153. package/src/components/editor-help/images/options-dark.png +0 -0
  154. package/src/components/editor-help/images/options-dark@2x.png +0 -0
  155. package/src/components/editor-help/images/options-dark@3x.png +0 -0
  156. package/src/components/editor-help/images/options-light.png +0 -0
  157. package/src/components/editor-help/images/options-light@2x.png +0 -0
  158. package/src/components/editor-help/images/options-light@3x.png +0 -0
  159. package/src/components/editor-help/images/rich-text-dark.png +0 -0
  160. package/src/components/editor-help/images/rich-text-dark@2x.png +0 -0
  161. package/src/components/editor-help/images/rich-text-dark@3x.png +0 -0
  162. package/src/components/editor-help/images/rich-text-light.png +0 -0
  163. package/src/components/editor-help/images/rich-text-light@2x.png +0 -0
  164. package/src/components/editor-help/images/rich-text-light@3x.png +0 -0
  165. package/src/components/editor-help/images/settings-dark.png +0 -0
  166. package/src/components/editor-help/images/settings-dark@2x.png +0 -0
  167. package/src/components/editor-help/images/settings-dark@3x.png +0 -0
  168. package/src/components/editor-help/images/settings-light.png +0 -0
  169. package/src/components/editor-help/images/settings-light@2x.png +0 -0
  170. package/src/components/editor-help/images/settings-light@3x.png +0 -0
  171. package/src/components/editor-help/index.native.js +129 -35
  172. package/src/components/editor-help/intro-to-blocks.native.js +63 -43
  173. package/src/components/editor-help/move-blocks.native.js +12 -7
  174. package/src/components/editor-help/remove-blocks.native.js +11 -8
  175. package/src/components/editor-help/style.android.scss +6 -0
  176. package/src/components/editor-help/style.ios.scss +6 -0
  177. package/src/components/editor-help/style.scss +47 -34
  178. package/src/components/editor-help/test/index.native.js +80 -0
  179. package/src/components/editor-help/view-sections.native.js +47 -4
  180. package/src/components/global-keyboard-shortcuts/save-shortcut.js +34 -42
  181. package/src/components/global-keyboard-shortcuts/visual-editor-shortcuts.js +8 -16
  182. package/src/components/index.js +1 -0
  183. package/src/components/local-autosave-monitor/index.js +1 -3
  184. package/src/components/post-format/index.js +6 -2
  185. package/src/components/post-format/style.scss +1 -0
  186. package/src/components/post-locked-modal/index.js +1 -1
  187. package/src/components/post-saved-state/index.js +41 -55
  188. package/src/components/post-saved-state/style.scss +8 -1
  189. package/src/components/post-saved-state/test/__snapshots__/index.js.snap +20 -0
  190. package/src/components/post-saved-state/test/index.js +2 -2
  191. package/src/components/post-title/index.js +45 -30
  192. package/src/components/post-title/style.scss +1 -70
  193. package/src/components/provider/index.native.js +17 -5
  194. package/src/components/provider/use-block-editor-settings.js +25 -0
  195. package/src/components/word-count/index.js +3 -2
  196. package/src/store/actions.js +13 -41
  197. package/src/store/defaults.js +7 -2
  198. package/src/store/selectors.js +2 -112
  199. package/src/{store/utils → utils}/get-template-part-icon.js +0 -0
  200. package/src/utils/index.js +1 -0
  201. package/build/store/utils/get-template-part-icon.js.map +0 -1
  202. package/build-module/store/utils/get-template-part-icon.js.map +0 -1
  203. package/src/components/editor-help/images/add-blocks.png +0 -0
  204. package/src/components/editor-help/images/customize-blocks.png +0 -0
  205. package/src/components/editor-help/images/cut-copy-duplicate-blocks.png +0 -0
  206. package/src/components/editor-help/images/edit-or-replace-media.png +0 -0
  207. package/src/components/editor-help/images/intro-blocks-1.png +0 -0
  208. package/src/components/editor-help/images/intro-blocks-2.png +0 -0
  209. package/src/components/editor-help/images/intro-blocks-3.png +0 -0
  210. package/src/components/editor-help/images/intro-blocks-4.png +0 -0
  211. package/src/components/editor-help/images/move-blocks.png +0 -0
  212. package/src/components/editor-help/images/remove-blocks.png +0 -0
  213. package/src/components/editor-help/images/what-is-a-block.png +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 12.0.0 (2021-10-12)
6
+
7
+ ### Breaking changes
8
+
9
+ - Removed the deprecated `resetAutosave` action ([#34537](https://github.com/WordPress/gutenberg/pull/34537)).
10
+ - Removed the deprecated `getAutosave`, `hasAutosave` and `getBlockForSerialization` selectors ([#34537](https://github.com/WordPress/gutenberg/pull/34537)).
11
+
5
12
  ## 11.0.0 (2021-07-29)
6
13
 
7
14
  ### Breaking Change
package/README.md CHANGED
@@ -10,7 +10,7 @@ Install the module
10
10
  npm install @wordpress/editor --save
11
11
  ```
12
12
 
13
- _This package assumes that your code will run in an **ES2015+** environment. If you're using an environment that has limited or no support for ES2015+ such as IE browsers then using [core-js](https://github.com/zloirock/core-js) will add polyfills for these methods._
13
+ _This package assumes that your code will run in an **ES2015+** environment. If you're using an environment that has limited or no support for such language features and APIs, you should include [the polyfill shipped in `@wordpress/babel-preset-default`](https://github.com/WordPress/gutenberg/tree/HEAD/packages/babel-preset-default#polyfill) in your code._
14
14
 
15
15
  ## How it works
16
16
 
@@ -19,7 +19,7 @@ var _store = require("../../store");
19
19
  * Internal dependencies
20
20
  */
21
21
  function CharacterCount() {
22
- const content = (0, _data.useSelect)(select => select(_store.store).getEditedPostAttribute('content'));
22
+ const content = (0, _data.useSelect)(select => select(_store.store).getEditedPostAttribute('content'), []);
23
23
  return (0, _wordcount.count)(content, 'characters_including_spaces');
24
24
  }
25
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/editor/src/components/character-count/index.js"],"names":["CharacterCount","content","select","editorStore","getEditedPostAttribute"],"mappings":";;;;;;;AAGA;;AACA;;AAKA;;AATA;AACA;AACA;;AAIA;AACA;AACA;AAGe,SAASA,cAAT,GAA0B;AACxC,QAAMC,OAAO,GAAG,qBAAaC,MAAF,IAC1BA,MAAM,CAAEC,YAAF,CAAN,CAAsBC,sBAAtB,CAA8C,SAA9C,CADe,CAAhB;AAIA,SAAO,sBAAgBH,OAAhB,EAAyB,6BAAzB,CAAP;AACA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport { count as characterCount } from '@wordpress/wordcount';\n\n/**\n * Internal dependencies\n */\nimport { store as editorStore } from '../../store';\n\nexport default function CharacterCount() {\n\tconst content = useSelect( ( select ) =>\n\t\tselect( editorStore ).getEditedPostAttribute( 'content' )\n\t);\n\n\treturn characterCount( content, 'characters_including_spaces' );\n}\n"]}
1
+ {"version":3,"sources":["@wordpress/editor/src/components/character-count/index.js"],"names":["CharacterCount","content","select","editorStore","getEditedPostAttribute"],"mappings":";;;;;;;AAGA;;AACA;;AAKA;;AATA;AACA;AACA;;AAIA;AACA;AACA;AAGe,SAASA,cAAT,GAA0B;AACxC,QAAMC,OAAO,GAAG,qBACbC,MAAF,IAAcA,MAAM,CAAEC,YAAF,CAAN,CAAsBC,sBAAtB,CAA8C,SAA9C,CADC,EAEf,EAFe,CAAhB;AAKA,SAAO,sBAAgBH,OAAhB,EAAyB,6BAAzB,CAAP;AACA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport { count as characterCount } from '@wordpress/wordcount';\n\n/**\n * Internal dependencies\n */\nimport { store as editorStore } from '../../store';\n\nexport default function CharacterCount() {\n\tconst content = useSelect(\n\t\t( select ) => select( editorStore ).getEditedPostAttribute( 'content' ),\n\t\t[]\n\t);\n\n\treturn characterCount( content, 'characters_including_spaces' );\n}\n"]}
@@ -29,15 +29,16 @@ var _viewSections = require("./view-sections");
29
29
  * Internal dependencies
30
30
  */
31
31
  const AddBlocks = () => {
32
- return (0, _element.createElement)(_reactNative.View, {
32
+ return (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)(_viewSections.HelpDetailImage, {
33
+ source: require('./images/add-light.png'),
34
+ sourceDarkMode: require('./images/add-dark.png')
35
+ }), (0, _element.createElement)(_reactNative.View, {
33
36
  style: _style.default.helpDetailContainer
34
- }, (0, _element.createElement)(_viewSections.HelpDetailImage, {
35
- source: require('./images/add-blocks.png')
36
- }), (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
37
+ }, (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
37
38
  text: (0, _i18n.__)('Add a new block at any time by tapping on the + icon in the toolbar on the bottom left. ')
38
39
  }), (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
39
40
  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.')
40
- }));
41
+ })));
41
42
  };
42
43
 
43
44
  var _default = AddBlocks;
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/editor/src/components/editor-help/add-blocks.native.js"],"names":["AddBlocks","styles","helpDetailContainer","require"],"mappings":";;;;;;;;;;;AAGA;;AAKA;;AAKA;;AACA;;AAdA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;AAIA,MAAMA,SAAS,GAAG,MAAM;AACvB,SACC,4BAAC,iBAAD;AAAM,IAAA,KAAK,EAAGC,eAAOC;AAArB,KACC,4BAAC,6BAAD;AAAiB,IAAA,MAAM,EAAGC,OAAO,CAAE,yBAAF;AAAjC,IADD,EAEC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,0FADM;AADR,IAFD,EAOC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,0KADM;AADR,IAPD,CADD;AAeA,CAhBD;;eAkBeH,S","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<View style={ styles.helpDetailContainer }>\n\t\t\t<HelpDetailImage source={ require( './images/add-blocks.png' ) } />\n\t\t\t<HelpDetailBodyText\n\t\t\t\ttext={ __(\n\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) }\n\t\t\t/>\n\t\t\t<HelpDetailBodyText\n\t\t\t\ttext={ __(\n\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) }\n\t\t\t/>\n\t\t</View>\n\t);\n};\n\nexport default AddBlocks;\n"]}
1
+ {"version":3,"sources":["@wordpress/editor/src/components/editor-help/add-blocks.native.js"],"names":["AddBlocks","require","styles","helpDetailContainer"],"mappings":";;;;;;;;;;;AAGA;;AAKA;;AAKA;;AACA;;AAdA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;AAIA,MAAMA,SAAS,GAAG,MAAM;AACvB,SACC,qDACC,4BAAC,6BAAD;AACC,IAAA,MAAM,EAAGC,OAAO,CAAE,wBAAF,CADjB;AAEC,IAAA,cAAc,EAAGA,OAAO,CAAE,uBAAF;AAFzB,IADD,EAKC,4BAAC,iBAAD;AAAM,IAAA,KAAK,EAAGC,eAAOC;AAArB,KACC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,0FADM;AADR,IADD,EAMC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,0KADM;AADR,IAND,CALD,CADD;AAoBA,CArBD;;eAuBeH,S","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"]}
@@ -29,15 +29,16 @@ var _viewSections = require("./view-sections");
29
29
  * Internal dependencies
30
30
  */
31
31
  const CustomizeBlocks = () => {
32
- return (0, _element.createElement)(_reactNative.View, {
32
+ return (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)(_viewSections.HelpDetailImage, {
33
+ source: require('./images/settings-light.png'),
34
+ sourceDarkMode: require('./images/settings-dark.png')
35
+ }), (0, _element.createElement)(_reactNative.View, {
33
36
  style: _style.default.helpDetailContainer
34
- }, (0, _element.createElement)(_viewSections.HelpDetailImage, {
35
- source: require('./images/customize-blocks.png')
36
- }), (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
37
- text: (0, _i18n.__)('Each block has its own settings. To find them, click on a block. Its settings will appear on the toolbar at the bottom of the screen.')
37
+ }, (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
38
+ 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.')
38
39
  }), (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
39
40
  text: (0, _i18n.__)('Some blocks have additional settings. Tap the settings icon on the bottom right of the block to view more options.')
40
- }));
41
+ })));
41
42
  };
42
43
 
43
44
  var _default = CustomizeBlocks;
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/editor/src/components/editor-help/customize-blocks.native.js"],"names":["CustomizeBlocks","styles","helpDetailContainer","require"],"mappings":";;;;;;;;;;;AAGA;;AAKA;;AAKA;;AACA;;AAdA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;AAIA,MAAMA,eAAe,GAAG,MAAM;AAC7B,SACC,4BAAC,iBAAD;AAAM,IAAA,KAAK,EAAGC,eAAOC;AAArB,KACC,4BAAC,6BAAD;AACC,IAAA,MAAM,EAAGC,OAAO,CAAE,+BAAF;AADjB,IADD,EAIC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,uIADM;AADR,IAJD,EASC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,oHADM;AADR,IATD,CADD;AAiBA,CAlBD;;eAoBeH,e","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<View style={ styles.helpDetailContainer }>\n\t\t\t<HelpDetailImage\n\t\t\t\tsource={ require( './images/customize-blocks.png' ) }\n\t\t\t/>\n\t\t\t<HelpDetailBodyText\n\t\t\t\ttext={ __(\n\t\t\t\t\t'Each block has its own settings. To find them, click on a block. Its settings will appear on the toolbar at the bottom of the screen.'\n\t\t\t\t) }\n\t\t\t/>\n\t\t\t<HelpDetailBodyText\n\t\t\t\ttext={ __(\n\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) }\n\t\t\t/>\n\t\t</View>\n\t);\n};\n\nexport default CustomizeBlocks;\n"]}
1
+ {"version":3,"sources":["@wordpress/editor/src/components/editor-help/customize-blocks.native.js"],"names":["CustomizeBlocks","require","styles","helpDetailContainer"],"mappings":";;;;;;;;;;;AAGA;;AAKA;;AAKA;;AACA;;AAdA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;AAIA,MAAMA,eAAe,GAAG,MAAM;AAC7B,SACC,qDACC,4BAAC,6BAAD;AACC,IAAA,MAAM,EAAGC,OAAO,CAAE,6BAAF,CADjB;AAEC,IAAA,cAAc,EAAGA,OAAO,CAAE,4BAAF;AAFzB,IADD,EAKC,4BAAC,iBAAD;AAAM,IAAA,KAAK,EAAGC,eAAOC;AAArB,KACC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,qIADM;AADR,IADD,EAMC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,oHADM;AADR,IAND,CALD,CADD;AAoBA,CArBD;;eAuBeH,e","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"]}
@@ -9,13 +9,13 @@ exports.default = void 0;
9
9
 
10
10
  var _element = require("@wordpress/element");
11
11
 
12
- var _reactNative = require("react-native");
12
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
13
 
14
- var _components = require("@wordpress/components");
14
+ var _reactNative = require("react-native");
15
15
 
16
16
  var _native = require("@react-navigation/native");
17
17
 
18
- var _i18n = require("@wordpress/i18n");
18
+ var _components = require("@wordpress/components");
19
19
 
20
20
  var _style = _interopRequireDefault(require("./style.scss"));
21
21
 
@@ -31,23 +31,37 @@ var _style = _interopRequireDefault(require("./style.scss"));
31
31
  * Internal dependencies
32
32
  */
33
33
  const HelpDetailNavigationScreen = ({
34
- name,
35
- content
34
+ content,
35
+ label
36
36
  }) => {
37
37
  const navigation = (0, _native.useNavigation)();
38
+ const {
39
+ listProps
40
+ } = (0, _element.useContext)(_components.BottomSheetContext);
38
41
 
39
- const goBack = () => {
40
- navigation.goBack();
41
- };
42
+ const contentContainerStyle = _reactNative.StyleSheet.flatten(listProps.contentContainerStyle);
42
43
 
43
44
  return (0, _element.createElement)(_components.BottomSheet.NavigationScreen, {
44
- name: (0, _i18n.__)('What is a block?')
45
- }, (0, _element.createElement)(_components.BottomSheet.NavigationHeader, {
46
- screen: name,
47
- leftButtonOnPress: goBack
48
- }), (0, _element.createElement)(_reactNative.View, {
49
- style: _style.default.separator
50
- }), content);
45
+ isScrollable: true,
46
+ fullScreen: true
47
+ }, (0, _element.createElement)(_reactNative.View, {
48
+ style: _style.default.container
49
+ }, (0, _element.createElement)(_components.BottomSheet.NavBar, null, (0, _element.createElement)(_components.BottomSheet.NavBar.BackButton, {
50
+ onPress: navigation.goBack
51
+ }), (0, _element.createElement)(_components.BottomSheet.NavBar.Heading, null, label)), (0, _element.createElement)(_reactNative.ScrollView, (0, _extends2.default)({}, listProps, {
52
+ contentContainerStyle: { ...contentContainerStyle,
53
+ paddingBottom: Math.max(listProps.safeAreaBottomInset, contentContainerStyle.paddingBottom),
54
+
55
+ /**
56
+ * Remove margin set via `hideHeader`. Combining a header
57
+ * and navigation in this bottom sheet is at odds with the
58
+ * current `BottomSheet` implementation.
59
+ */
60
+ marginTop: 0
61
+ }
62
+ }), (0, _element.createElement)(_reactNative.TouchableWithoutFeedback, {
63
+ accessible: false
64
+ }, (0, _element.createElement)(_reactNative.View, null, content)))));
51
65
  };
52
66
 
53
67
  var _default = HelpDetailNavigationScreen;
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/editor/src/components/editor-help/help-detail-navigation-screen.native.js"],"names":["HelpDetailNavigationScreen","name","content","navigation","goBack","styles","separator"],"mappings":";;;;;;;;;;;AAGA;;AAKA;;AACA;;AACA;;AAKA;;AAfA;AACA;AACA;;AAGA;AACA;AACA;;AAKA;AACA;AACA;AAGA,MAAMA,0BAA0B,GAAG,CAAE;AAAEC,EAAAA,IAAF;AAAQC,EAAAA;AAAR,CAAF,KAAyB;AAC3D,QAAMC,UAAU,GAAG,4BAAnB;;AAEA,QAAMC,MAAM,GAAG,MAAM;AACpBD,IAAAA,UAAU,CAACC,MAAX;AACA,GAFD;;AAIA,SACC,4BAAC,uBAAD,CAAa,gBAAb;AAA8B,IAAA,IAAI,EAAG,cAAI,kBAAJ;AAArC,KACC,4BAAC,uBAAD,CAAa,gBAAb;AACC,IAAA,MAAM,EAAGH,IADV;AAEC,IAAA,iBAAiB,EAAGG;AAFrB,IADD,EAKC,4BAAC,iBAAD;AAAM,IAAA,KAAK,EAAGC,eAAOC;AAArB,IALD,EAMGJ,OANH,CADD;AAUA,CAjBD;;eAmBeF,0B","sourcesContent":["/**\n * External dependencies\n */\nimport { View } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { BottomSheet } from '@wordpress/components';\nimport { useNavigation } from '@react-navigation/native';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\n\nconst HelpDetailNavigationScreen = ( { name, content } ) => {\n\tconst navigation = useNavigation();\n\n\tconst goBack = () => {\n\t\tnavigation.goBack();\n\t};\n\n\treturn (\n\t\t<BottomSheet.NavigationScreen name={ __( 'What is a block?' ) }>\n\t\t\t<BottomSheet.NavigationHeader\n\t\t\t\tscreen={ name }\n\t\t\t\tleftButtonOnPress={ goBack }\n\t\t\t/>\n\t\t\t<View style={ styles.separator } />\n\t\t\t{ content }\n\t\t</BottomSheet.NavigationScreen>\n\t);\n};\n\nexport default HelpDetailNavigationScreen;\n"]}
1
+ {"version":3,"sources":["@wordpress/editor/src/components/editor-help/help-detail-navigation-screen.native.js"],"names":["HelpDetailNavigationScreen","content","label","navigation","listProps","BottomSheetContext","contentContainerStyle","StyleSheet","flatten","styles","container","goBack","paddingBottom","Math","max","safeAreaBottomInset","marginTop"],"mappings":";;;;;;;;;AAeA;;;;AAZA;;AAMA;;AAKA;;AAMA;;AApBA;AACA;AACA;;AASA;AACA;AACA;;AAIA;AACA;AACA;AAGA,MAAMA,0BAA0B,GAAG,CAAE;AAAEC,EAAAA,OAAF;AAAWC,EAAAA;AAAX,CAAF,KAA0B;AAC5D,QAAMC,UAAU,GAAG,4BAAnB;AAEA,QAAM;AAAEC,IAAAA;AAAF,MAAgB,yBAAYC,8BAAZ,CAAtB;;AACA,QAAMC,qBAAqB,GAAGC,wBAAWC,OAAX,CAC7BJ,SAAS,CAACE,qBADmB,CAA9B;;AAIA,SACC,4BAAC,uBAAD,CAAa,gBAAb;AAA8B,IAAA,YAAY,MAA1C;AAA2C,IAAA,UAAU;AAArD,KACC,4BAAC,iBAAD;AAAM,IAAA,KAAK,EAAGG,eAAOC;AAArB,KACC,4BAAC,uBAAD,CAAa,MAAb,QACC,4BAAC,uBAAD,CAAa,MAAb,CAAoB,UAApB;AACC,IAAA,OAAO,EAAGP,UAAU,CAACQ;AADtB,IADD,EAIC,4BAAC,uBAAD,CAAa,MAAb,CAAoB,OAApB,QACGT,KADH,CAJD,CADD,EASC,4BAAC,uBAAD,6BACME,SADN;AAEC,IAAA,qBAAqB,EAAG,EACvB,GAAGE,qBADoB;AAEvBM,MAAAA,aAAa,EAAEC,IAAI,CAACC,GAAL,CACdV,SAAS,CAACW,mBADI,EAEdT,qBAAqB,CAACM,aAFR,CAFQ;;AAMvB;AACN;AACA;AACA;AACA;AACMI,MAAAA,SAAS,EAAE;AAXY;AAFzB,MAgBC,4BAAC,qCAAD;AAA0B,IAAA,UAAU,EAAG;AAAvC,KACC,4BAAC,iBAAD,QAAQf,OAAR,CADD,CAhBD,CATD,CADD,CADD;AAkCA,CA1CD;;eA4CeD,0B","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"]}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _element = require("@wordpress/element");
11
+
12
+ var _reactNative = require("react-native");
13
+
14
+ var _compose = require("@wordpress/compose");
15
+
16
+ var _style = _interopRequireDefault(require("./style.scss"));
17
+
18
+ /**
19
+ * External dependencies
20
+ */
21
+
22
+ /**
23
+ * WordPress dependencies
24
+ */
25
+
26
+ /**
27
+ * Internal dependencies
28
+ */
29
+ const HelpGetSupportButton = ({
30
+ onPress,
31
+ title
32
+ }) => {
33
+ const buttonStyle = (0, _compose.usePreferredColorSchemeStyle)(_style.default.button, _style.default.buttonDark);
34
+ const textStyle = (0, _compose.usePreferredColorSchemeStyle)(_style.default.buttonText, _style.default.buttonTextDark);
35
+ return (0, _element.createElement)(_reactNative.Pressable, {
36
+ style: buttonStyle,
37
+ onPress: onPress,
38
+ accessibilityRole: 'button'
39
+ }, (0, _element.createElement)(_reactNative.Text, {
40
+ style: textStyle
41
+ }, title));
42
+ };
43
+
44
+ var _default = HelpGetSupportButton;
45
+ exports.default = _default;
46
+ //# sourceMappingURL=help-get-support-button.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["@wordpress/editor/src/components/editor-help/help-get-support-button.native.js"],"names":["HelpGetSupportButton","onPress","title","buttonStyle","styles","button","buttonDark","textStyle","buttonText","buttonTextDark"],"mappings":";;;;;;;;;;;AAGA;;AAKA;;AAKA;;AAbA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;AAGA,MAAMA,oBAAoB,GAAG,CAAE;AAAEC,EAAAA,OAAF;AAAWC,EAAAA;AAAX,CAAF,KAA0B;AACtD,QAAMC,WAAW,GAAG,2CACnBC,eAAOC,MADY,EAEnBD,eAAOE,UAFY,CAApB;AAKA,QAAMC,SAAS,GAAG,2CACjBH,eAAOI,UADU,EAEjBJ,eAAOK,cAFU,CAAlB;AAKA,SACC,4BAAC,sBAAD;AACC,IAAA,KAAK,EAAGN,WADT;AAEC,IAAA,OAAO,EAAGF,OAFX;AAGC,IAAA,iBAAiB,EAAG;AAHrB,KAKC,4BAAC,iBAAD;AAAM,IAAA,KAAK,EAAGM;AAAd,KAA4BL,KAA5B,CALD,CADD;AASA,CApBD;;eAsBeF,oB","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"]}
@@ -22,12 +22,13 @@ var _icons = require("@wordpress/icons");
22
22
  */
23
23
  const HelpTopicRow = ({
24
24
  label,
25
- icon
25
+ icon,
26
+ screenName
26
27
  }) => {
27
28
  const navigation = (0, _native.useNavigation)();
28
29
 
29
30
  const openSubSheet = () => {
30
- navigation.navigate(label);
31
+ navigation.navigate(screenName);
31
32
  };
32
33
 
33
34
  return (0, _element.createElement)(_components.TextControl, {
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/editor/src/components/editor-help/help-topic-row.native.js"],"names":["HelpTopicRow","label","icon","navigation","openSubSheet","navigate","chevronRight"],"mappings":";;;;;;;;;AAGA;;AAKA;;AACA;;AATA;AACA;AACA;;AAGA;AACA;AACA;AAIA,MAAMA,YAAY,GAAG,CAAE;AAAEC,EAAAA,KAAF;AAASC,EAAAA;AAAT,CAAF,KAAuB;AAC3C,QAAMC,UAAU,GAAG,4BAAnB;;AAEA,QAAMC,YAAY,GAAG,MAAM;AAC1BD,IAAAA,UAAU,CAACE,QAAX,CAAqBJ,KAArB;AACA,GAFD;;AAIA,SACC,4BAAC,uBAAD;AACC,IAAA,aAAa,EAAC,YADf;AAEC,IAAA,kBAAkB,MAFnB;AAGC,IAAA,SAAS,MAHV;AAIC,IAAA,OAAO,EAAGG,YAJX;AAKC,IAAA,KAAK,EAAGH,KALT;AAMC,IAAA,IAAI,EAAGC;AANR,KAQC,4BAAC,gBAAD;AAAM,IAAA,IAAI,EAAGI;AAAb,IARD,CADD;AAYA,CAnBD;;eAqBeN,Y","sourcesContent":["/**\n * External dependencies\n */\nimport { useNavigation } from '@react-navigation/native';\n\n/**\n * WordPress dependencies\n */\nimport { TextControl, Icon } from '@wordpress/components';\nimport { chevronRight } from '@wordpress/icons';\n\nconst HelpTopicRow = ( { label, icon } ) => {\n\tconst navigation = useNavigation();\n\n\tconst openSubSheet = () => {\n\t\tnavigation.navigate( label );\n\t};\n\n\treturn (\n\t\t<TextControl\n\t\t\tseparatorType=\"leftMargin\"\n\t\t\tcustomActionButton\n\t\t\tleftAlign\n\t\t\tonPress={ openSubSheet }\n\t\t\tlabel={ label }\n\t\t\ticon={ icon }\n\t\t>\n\t\t\t<Icon icon={ chevronRight } />\n\t\t</TextControl>\n\t);\n};\n\nexport default HelpTopicRow;\n"]}
1
+ {"version":3,"sources":["@wordpress/editor/src/components/editor-help/help-topic-row.native.js"],"names":["HelpTopicRow","label","icon","screenName","navigation","openSubSheet","navigate","chevronRight"],"mappings":";;;;;;;;;AAGA;;AAKA;;AACA;;AATA;AACA;AACA;;AAGA;AACA;AACA;AAIA,MAAMA,YAAY,GAAG,CAAE;AAAEC,EAAAA,KAAF;AAASC,EAAAA,IAAT;AAAeC,EAAAA;AAAf,CAAF,KAAmC;AACvD,QAAMC,UAAU,GAAG,4BAAnB;;AAEA,QAAMC,YAAY,GAAG,MAAM;AAC1BD,IAAAA,UAAU,CAACE,QAAX,CAAqBH,UAArB;AACA,GAFD;;AAIA,SACC,4BAAC,uBAAD;AACC,IAAA,aAAa,EAAC,YADf;AAEC,IAAA,kBAAkB,MAFnB;AAGC,IAAA,SAAS,MAHV;AAIC,IAAA,OAAO,EAAGE,YAJX;AAKC,IAAA,KAAK,EAAGJ,KALT;AAMC,IAAA,IAAI,EAAGC;AANR,KAQC,4BAAC,gBAAD;AAAM,IAAA,IAAI,EAAGK;AAAb,IARD,CADD;AAYA,CAnBD;;eAqBeP,Y","sourcesContent":["/**\n * External dependencies\n */\nimport { useNavigation } from '@react-navigation/native';\n\n/**\n * WordPress dependencies\n */\nimport { TextControl, Icon } from '@wordpress/components';\nimport { chevronRight } from '@wordpress/icons';\n\nconst HelpTopicRow = ( { label, icon, screenName } ) => {\n\tconst navigation = useNavigation();\n\n\tconst openSubSheet = () => {\n\t\tnavigation.navigate( screenName );\n\t};\n\n\treturn (\n\t\t<TextControl\n\t\t\tseparatorType=\"leftMargin\"\n\t\t\tcustomActionButton\n\t\t\tleftAlign\n\t\t\tonPress={ openSubSheet }\n\t\t\tlabel={ label }\n\t\t\ticon={ icon }\n\t\t>\n\t\t\t<Icon icon={ chevronRight } />\n\t\t</TextControl>\n\t);\n};\n\nexport default HelpTopicRow;\n"]}
@@ -9,15 +9,27 @@ exports.default = void 0;
9
9
 
10
10
  var _element = require("@wordpress/element");
11
11
 
12
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
+
14
+ var _lodash = require("lodash");
15
+
12
16
  var _reactNative = require("react-native");
13
17
 
18
+ var _stack = require("@react-navigation/stack");
19
+
14
20
  var _components = require("@wordpress/components");
15
21
 
16
22
  var _i18n = require("@wordpress/i18n");
17
23
 
24
+ var _icons = require("@wordpress/icons");
25
+
26
+ var _data = require("@wordpress/data");
27
+
28
+ var _editor = require("@wordpress/editor");
29
+
18
30
  var _compose = require("@wordpress/compose");
19
31
 
20
- var _icons = require("@wordpress/icons");
32
+ var _reactNativeBridge = require("@wordpress/react-native-bridge");
21
33
 
22
34
  var _style = _interopRequireDefault(require("./style.scss"));
23
35
 
@@ -25,6 +37,8 @@ var _helpDetailNavigationScreen = _interopRequireDefault(require("./help-detail-
25
37
 
26
38
  var _helpTopicRow = _interopRequireDefault(require("./help-topic-row"));
27
39
 
40
+ var _helpGetSupportButton = _interopRequireDefault(require("./help-get-support-button"));
41
+
28
42
  var _introToBlocks = _interopRequireDefault(require("./intro-to-blocks"));
29
43
 
30
44
  var _addBlocks = _interopRequireDefault(require("./add-blocks"));
@@ -69,42 +83,88 @@ const HELP_TOPICS = [{
69
83
  }];
70
84
 
71
85
  function EditorHelpTopics({
86
+ close,
72
87
  isVisible,
73
88
  onClose
74
89
  }) {
75
- const bottomSheetHeaderTitleStyle = (0, _compose.usePreferredColorSchemeStyle)(_style.default.bottomSheetHeaderTitle, _style.default.bottomSheetHeaderTitleDark);
90
+ const {
91
+ postType
92
+ } = (0, _data.useSelect)(select => ({
93
+ postType: select(_editor.store).getEditedPostAttribute('type')
94
+ }));
95
+ const sectionTitle = (0, _compose.usePreferredColorSchemeStyle)(_style.default.helpDetailSectionHeading, _style.default.helpDetailSectionHeadingDark);
96
+ const title = postType === 'page' ? (0, _i18n.__)('How to edit your page') : (0, _i18n.__)('How to edit your post');
76
97
  return (0, _element.createElement)(_components.BottomSheet, {
77
98
  isVisible: isVisible,
78
99
  onClose: onClose,
79
100
  hideHeader: true,
80
101
  hasNavigation: true,
81
- contentStyle: _style.default.contentContainer
102
+ contentStyle: _style.default.contentContainer,
103
+ testID: "editor-help-modal"
82
104
  }, (0, _element.createElement)(_components.BottomSheet.NavigationContainer, {
83
105
  animate: true,
84
106
  main: true
85
107
  }, (0, _element.createElement)(_components.BottomSheet.NavigationScreen, {
86
- name: (0, _i18n.__)('Topics')
108
+ isScrollable: true,
109
+ fullScreen: true,
110
+ name: "help-topics"
87
111
  }, (0, _element.createElement)(_reactNative.View, {
88
- style: _style.default.bottomSheetHeader
89
- }, (0, _element.createElement)(_reactNative.Text, {
90
- style: bottomSheetHeaderTitleStyle,
91
- maxFontSizeMultiplier: 3
92
- }, (0, _i18n.__)('How to edit your site'))), (0, _element.createElement)(_reactNative.View, {
93
- style: _style.default.separator
94
- }), (0, _element.createElement)(_components.PanelBody, {
95
- title: (0, _i18n.__)('The basics'),
96
- style: _style.default.sectionContainer
97
- }, HELP_TOPICS.map(topic => {
98
- return (0, _element.createElement)(_helpTopicRow.default, {
99
- key: topic.label,
100
- label: topic.label,
101
- icon: topic.icon
102
- });
103
- }))), HELP_TOPICS.map(topic => {
112
+ style: _style.default.container
113
+ }, (0, _element.createElement)(_components.BottomSheet.NavBar, null, (0, _element.createElement)(_components.BottomSheet.NavBar.DismissButton, {
114
+ onPress: close,
115
+ iosText: (0, _i18n.__)('Close')
116
+ }), (0, _element.createElement)(_components.BottomSheet.NavBar.Heading, null, title)), (0, _element.createElement)(_components.BottomSheetConsumer, null, ({
117
+ listProps
118
+ }) => {
119
+ const contentContainerStyle = _reactNative.StyleSheet.flatten(listProps.contentContainerStyle);
120
+
121
+ return (0, _element.createElement)(_reactNative.ScrollView, (0, _extends2.default)({}, listProps, {
122
+ contentContainerStyle: { ...contentContainerStyle,
123
+ paddingBottom: Math.max(listProps.safeAreaBottomInset, contentContainerStyle.paddingBottom),
124
+
125
+ /**
126
+ * Remove margin set via `hideHeader`. Combining a header
127
+ * and navigation in this bottom sheet is at odds with the
128
+ * current `BottomSheet` implementation.
129
+ */
130
+ marginTop: 0
131
+ }
132
+ }), (0, _element.createElement)(_components.PanelBody, null, (0, _element.createElement)(_reactNative.Text, {
133
+ style: sectionTitle
134
+ }, (0, _i18n.__)('The basics')), HELP_TOPICS.map(({
135
+ label,
136
+ icon
137
+ }) => {
138
+ const labelSlug = (0, _lodash.kebabCase)(label);
139
+ return (0, _element.createElement)(_helpTopicRow.default, {
140
+ key: labelSlug,
141
+ label: label,
142
+ icon: icon,
143
+ screenName: labelSlug
144
+ });
145
+ }), (0, _element.createElement)(_reactNative.Text, {
146
+ style: sectionTitle
147
+ }, (0, _i18n.__)('Get support')), (0, _element.createElement)(_helpGetSupportButton.default, {
148
+ title: (0, _i18n.__)('Contact support'),
149
+ onPress: _reactNativeBridge.requestContactCustomerSupport
150
+ }), (0, _element.createElement)(_helpGetSupportButton.default, {
151
+ title: (0, _i18n.__)('More support options'),
152
+ onPress: _reactNativeBridge.requestGotoCustomerSupportOptions
153
+ })));
154
+ }))), HELP_TOPICS.map(({
155
+ view,
156
+ label
157
+ }) => {
158
+ const labelSlug = (0, _lodash.kebabCase)(label);
104
159
  return (0, _element.createElement)(_helpDetailNavigationScreen.default, {
105
- key: topic.label,
106
- name: topic.label,
107
- content: topic.view
160
+ key: labelSlug,
161
+ name: labelSlug,
162
+ content: view,
163
+ label: label,
164
+ options: {
165
+ gestureEnabled: true,
166
+ ..._stack.TransitionPresets.DefaultTransition
167
+ }
108
168
  });
109
169
  })));
110
170
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/editor/src/components/editor-help/index.native.js"],"names":["HELP_TOPICS","label","icon","helpFilled","view","plusCircleFilled","alignJustifyAlt","trashFilled","cogAlt","EditorHelpTopics","isVisible","onClose","bottomSheetHeaderTitleStyle","styles","bottomSheetHeaderTitle","bottomSheetHeaderTitleDark","contentContainer","bottomSheetHeader","separator","sectionContainer","map","topic"],"mappings":";;;;;;;;;;;AAGA;;AAKA;;AACA;;AACA;;AACA;;AAWA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AA7BA;AACA;AACA;;AAGA;AACA;AACA;;AAYA;AACA;AACA;AAUA,MAAMA,WAAW,GAAG,CACnB;AACCC,EAAAA,KAAK,EAAE,cAAI,kBAAJ,CADR;AAECC,EAAAA,IAAI,EAAEC,iBAFP;AAGCC,EAAAA,IAAI,EAAE,4BAAC,sBAAD;AAHP,CADmB,EAMnB;AACCH,EAAAA,KAAK,EAAE,cAAI,YAAJ,CADR;AAECC,EAAAA,IAAI,EAAEG,uBAFP;AAGCD,EAAAA,IAAI,EAAE,4BAAC,kBAAD;AAHP,CANmB,EAWnB;AAAEH,EAAAA,KAAK,EAAE,cAAI,aAAJ,CAAT;AAA8BC,EAAAA,IAAI,EAAEI,sBAApC;AAAqDF,EAAAA,IAAI,EAAE,4BAAC,mBAAD;AAA3D,CAXmB,EAYnB;AAAEH,EAAAA,KAAK,EAAE,cAAI,eAAJ,CAAT;AAAgCC,EAAAA,IAAI,EAAEK,kBAAtC;AAAmDH,EAAAA,IAAI,EAAE,4BAAC,qBAAD;AAAzD,CAZmB,EAanB;AACCH,EAAAA,KAAK,EAAE,cAAI,kBAAJ,CADR;AAECC,EAAAA,IAAI,EAAEM,aAFP;AAGCJ,EAAAA,IAAI,EAAE,4BAAC,wBAAD;AAHP,CAbmB,CAApB;;AAoBA,SAASK,gBAAT,CAA2B;AAAEC,EAAAA,SAAF;AAAaC,EAAAA;AAAb,CAA3B,EAAoD;AACnD,QAAMC,2BAA2B,GAAG,2CACnCC,eAAOC,sBAD4B,EAEnCD,eAAOE,0BAF4B,CAApC;AAKA,SACC,4BAAC,uBAAD;AACC,IAAA,SAAS,EAAGL,SADb;AAEC,IAAA,OAAO,EAAGC,OAFX;AAGC,IAAA,UAAU,MAHX;AAIC,IAAA,aAAa,MAJd;AAKC,IAAA,YAAY,EAAGE,eAAOG;AALvB,KAOC,4BAAC,uBAAD,CAAa,mBAAb;AAAiC,IAAA,OAAO,MAAxC;AAAyC,IAAA,IAAI;AAA7C,KACC,4BAAC,uBAAD,CAAa,gBAAb;AAA8B,IAAA,IAAI,EAAG,cAAI,QAAJ;AAArC,KACC,4BAAC,iBAAD;AAAM,IAAA,KAAK,EAAGH,eAAOI;AAArB,KACC,4BAAC,iBAAD;AACC,IAAA,KAAK,EAAGL,2BADT;AAEC,IAAA,qBAAqB,EAAG;AAFzB,KAIG,cAAI,uBAAJ,CAJH,CADD,CADD,EASC,4BAAC,iBAAD;AAAM,IAAA,KAAK,EAAGC,eAAOK;AAArB,IATD,EAUC,4BAAC,qBAAD;AACC,IAAA,KAAK,EAAG,cAAI,YAAJ,CADT;AAEC,IAAA,KAAK,EAAGL,eAAOM;AAFhB,KAKGnB,WAAW,CAACoB,GAAZ,CAAmBC,KAAF,IAAa;AAC/B,WACC,4BAAC,qBAAD;AACC,MAAA,GAAG,EAAGA,KAAK,CAACpB,KADb;AAEC,MAAA,KAAK,EAAGoB,KAAK,CAACpB,KAFf;AAGC,MAAA,IAAI,EAAGoB,KAAK,CAACnB;AAHd,MADD;AAOA,GARC,CALH,CAVD,CADD,EA4BGF,WAAW,CAACoB,GAAZ,CAAmBC,KAAF,IAAa;AAC/B,WACC,4BAAC,mCAAD;AACC,MAAA,GAAG,EAAGA,KAAK,CAACpB,KADb;AAEC,MAAA,IAAI,EAAGoB,KAAK,CAACpB,KAFd;AAGC,MAAA,OAAO,EAAGoB,KAAK,CAACjB;AAHjB,MADD;AAOA,GARC,CA5BH,CAPD,CADD;AAgDA;;eAEcK,gB","sourcesContent":["/**\n * External dependencies\n */\nimport { View, Text } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { BottomSheet, PanelBody } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\nimport {\n\thelpFilled,\n\tplusCircleFilled,\n\talignJustifyAlt,\n\ttrashFilled,\n\tcogAlt,\n} from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\nimport HelpDetailNavigationScreen from './help-detail-navigation-screen';\nimport HelpTopicRow from './help-topic-row';\nimport IntroToBlocks from './intro-to-blocks';\nimport AddBlocks from './add-blocks';\nimport MoveBlocks from './move-blocks';\nimport RemoveBlocks from './remove-blocks';\nimport CustomizeBlocks from './customize-blocks';\n\nconst HELP_TOPICS = [\n\t{\n\t\tlabel: __( 'What is a block?' ),\n\t\ticon: helpFilled,\n\t\tview: <IntroToBlocks />,\n\t},\n\t{\n\t\tlabel: __( 'Add blocks' ),\n\t\ticon: plusCircleFilled,\n\t\tview: <AddBlocks />,\n\t},\n\t{ label: __( 'Move blocks' ), icon: alignJustifyAlt, view: <MoveBlocks /> },\n\t{ label: __( 'Remove blocks' ), icon: trashFilled, view: <RemoveBlocks /> },\n\t{\n\t\tlabel: __( 'Customize blocks' ),\n\t\ticon: cogAlt,\n\t\tview: <CustomizeBlocks />,\n\t},\n];\n\nfunction EditorHelpTopics( { isVisible, onClose } ) {\n\tconst bottomSheetHeaderTitleStyle = usePreferredColorSchemeStyle(\n\t\tstyles.bottomSheetHeaderTitle,\n\t\tstyles.bottomSheetHeaderTitleDark\n\t);\n\n\treturn (\n\t\t<BottomSheet\n\t\t\tisVisible={ isVisible }\n\t\t\tonClose={ onClose }\n\t\t\thideHeader\n\t\t\thasNavigation\n\t\t\tcontentStyle={ styles.contentContainer }\n\t\t>\n\t\t\t<BottomSheet.NavigationContainer animate main>\n\t\t\t\t<BottomSheet.NavigationScreen name={ __( 'Topics' ) }>\n\t\t\t\t\t<View style={ styles.bottomSheetHeader }>\n\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\tstyle={ bottomSheetHeaderTitleStyle }\n\t\t\t\t\t\t\tmaxFontSizeMultiplier={ 3 }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'How to edit your site' ) }\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t</View>\n\t\t\t\t\t<View style={ styles.separator } />\n\t\t\t\t\t<PanelBody\n\t\t\t\t\t\ttitle={ __( 'The basics' ) }\n\t\t\t\t\t\tstyle={ styles.sectionContainer }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ /* Print out help topics */ }\n\t\t\t\t\t\t{ HELP_TOPICS.map( ( topic ) => {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<HelpTopicRow\n\t\t\t\t\t\t\t\t\tkey={ topic.label }\n\t\t\t\t\t\t\t\t\tlabel={ topic.label }\n\t\t\t\t\t\t\t\t\ticon={ topic.icon }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} ) }\n\t\t\t\t\t</PanelBody>\n\t\t\t\t</BottomSheet.NavigationScreen>\n\t\t\t\t{ /* Print out help detail screens */ }\n\t\t\t\t{ HELP_TOPICS.map( ( topic ) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<HelpDetailNavigationScreen\n\t\t\t\t\t\t\tkey={ topic.label }\n\t\t\t\t\t\t\tname={ topic.label }\n\t\t\t\t\t\t\tcontent={ topic.view }\n\t\t\t\t\t\t/>\n\t\t\t\t\t);\n\t\t\t\t} ) }\n\t\t\t</BottomSheet.NavigationContainer>\n\t\t</BottomSheet>\n\t);\n}\n\nexport default EditorHelpTopics;\n"]}
1
+ {"version":3,"sources":["@wordpress/editor/src/components/editor-help/index.native.js"],"names":["HELP_TOPICS","label","icon","helpFilled","view","plusCircleFilled","alignJustifyAlt","trashFilled","cogAlt","EditorHelpTopics","close","isVisible","onClose","postType","select","editorStore","getEditedPostAttribute","sectionTitle","styles","helpDetailSectionHeading","helpDetailSectionHeadingDark","title","contentContainer","container","listProps","contentContainerStyle","StyleSheet","flatten","paddingBottom","Math","max","safeAreaBottomInset","marginTop","map","labelSlug","requestContactCustomerSupport","requestGotoCustomerSupportOptions","gestureEnabled","TransitionPresets","DefaultTransition"],"mappings":";;;;;;;;;;;;;AAGA;;AACA;;AACA;;AAKA;;AAKA;;AACA;;AAOA;;AACA;;AACA;;AACA;;AAQA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AA1CA;AACA;AACA;;AAKA;AACA;AACA;;AAsBA;AACA;AACA;AAWA,MAAMA,WAAW,GAAG,CACnB;AACCC,EAAAA,KAAK,EAAE,cAAI,kBAAJ,CADR;AAECC,EAAAA,IAAI,EAAEC,iBAFP;AAGCC,EAAAA,IAAI,EAAE,4BAAC,sBAAD;AAHP,CADmB,EAMnB;AACCH,EAAAA,KAAK,EAAE,cAAI,YAAJ,CADR;AAECC,EAAAA,IAAI,EAAEG,uBAFP;AAGCD,EAAAA,IAAI,EAAE,4BAAC,kBAAD;AAHP,CANmB,EAWnB;AAAEH,EAAAA,KAAK,EAAE,cAAI,aAAJ,CAAT;AAA8BC,EAAAA,IAAI,EAAEI,sBAApC;AAAqDF,EAAAA,IAAI,EAAE,4BAAC,mBAAD;AAA3D,CAXmB,EAYnB;AAAEH,EAAAA,KAAK,EAAE,cAAI,eAAJ,CAAT;AAAgCC,EAAAA,IAAI,EAAEK,kBAAtC;AAAmDH,EAAAA,IAAI,EAAE,4BAAC,qBAAD;AAAzD,CAZmB,EAanB;AACCH,EAAAA,KAAK,EAAE,cAAI,kBAAJ,CADR;AAECC,EAAAA,IAAI,EAAEM,aAFP;AAGCJ,EAAAA,IAAI,EAAE,4BAAC,wBAAD;AAHP,CAbmB,CAApB;;AAoBA,SAASK,gBAAT,CAA2B;AAAEC,EAAAA,KAAF;AAASC,EAAAA,SAAT;AAAoBC,EAAAA;AAApB,CAA3B,EAA2D;AAC1D,QAAM;AAAEC,IAAAA;AAAF,MAAe,qBAAaC,MAAF,KAAgB;AAC/CD,IAAAA,QAAQ,EAAEC,MAAM,CAAEC,aAAF,CAAN,CAAsBC,sBAAtB,CAA8C,MAA9C;AADqC,GAAhB,CAAX,CAArB;AAIA,QAAMC,YAAY,GAAG,2CACpBC,eAAOC,wBADa,EAEpBD,eAAOE,4BAFa,CAArB;AAKA,QAAMC,KAAK,GACVR,QAAQ,KAAK,MAAb,GACG,cAAI,uBAAJ,CADH,GAEG,cAAI,uBAAJ,CAHJ;AAKA,SACC,4BAAC,uBAAD;AACC,IAAA,SAAS,EAAGF,SADb;AAEC,IAAA,OAAO,EAAGC,OAFX;AAGC,IAAA,UAAU,MAHX;AAIC,IAAA,aAAa,MAJd;AAKC,IAAA,YAAY,EAAGM,eAAOI,gBALvB;AAMC,IAAA,MAAM,EAAC;AANR,KAQC,4BAAC,uBAAD,CAAa,mBAAb;AAAiC,IAAA,OAAO,MAAxC;AAAyC,IAAA,IAAI;AAA7C,KACC,4BAAC,uBAAD,CAAa,gBAAb;AACC,IAAA,YAAY,MADb;AAEC,IAAA,UAAU,MAFX;AAGC,IAAA,IAAI,EAAC;AAHN,KAKC,4BAAC,iBAAD;AAAM,IAAA,KAAK,EAAGJ,eAAOK;AAArB,KACC,4BAAC,uBAAD,CAAa,MAAb,QACC,4BAAC,uBAAD,CAAa,MAAb,CAAoB,aAApB;AACC,IAAA,OAAO,EAAGb,KADX;AAEC,IAAA,OAAO,EAAG,cAAI,OAAJ;AAFX,IADD,EAKC,4BAAC,uBAAD,CAAa,MAAb,CAAoB,OAApB,QACGW,KADH,CALD,CADD,EAUC,4BAAC,+BAAD,QACG,CAAE;AAAEG,IAAAA;AAAF,GAAF,KAAqB;AACtB,UAAMC,qBAAqB,GAAGC,wBAAWC,OAAX,CAC7BH,SAAS,CAACC,qBADmB,CAA9B;;AAGA,WACC,4BAAC,uBAAD,6BACMD,SADN;AAEC,MAAA,qBAAqB,EAAG,EACvB,GAAGC,qBADoB;AAEvBG,QAAAA,aAAa,EAAEC,IAAI,CAACC,GAAL,CACdN,SAAS,CAACO,mBADI,EAEdN,qBAAqB,CAACG,aAFR,CAFQ;;AAMvB;AACX;AACA;AACA;AACA;AACWI,QAAAA,SAAS,EAAE;AAXY;AAFzB,QAgBC,4BAAC,qBAAD,QACC,4BAAC,iBAAD;AAAM,MAAA,KAAK,EAAGf;AAAd,OACG,cAAI,YAAJ,CADH,CADD,EAKGjB,WAAW,CAACiC,GAAZ,CACD,CAAE;AAAEhC,MAAAA,KAAF;AAASC,MAAAA;AAAT,KAAF,KAAuB;AACtB,YAAMgC,SAAS,GAAG,uBACjBjC,KADiB,CAAlB;AAGA,aACC,4BAAC,qBAAD;AACC,QAAA,GAAG,EAAGiC,SADP;AAEC,QAAA,KAAK,EAAGjC,KAFT;AAGC,QAAA,IAAI,EAAGC,IAHR;AAIC,QAAA,UAAU,EACTgC;AALF,QADD;AAUA,KAfA,CALH,EAuBE,4BAAC,iBAAD;AAAM,MAAA,KAAK,EAAGjB;AAAd,OACG,cAAI,aAAJ,CADH,CAvBF,EA4BE,4BAAC,6BAAD;AACC,MAAA,KAAK,EAAG,cACP,iBADO,CADT;AAIC,MAAA,OAAO,EACNkB;AALF,MA5BF,EAsCE,4BAAC,6BAAD;AACC,MAAA,KAAK,EAAG,cACP,sBADO,CADT;AAIC,MAAA,OAAO,EACNC;AALF,MAtCF,CAhBD,CADD;AAmEA,GAxEF,CAVD,CALD,CADD,EA6FGpC,WAAW,CAACiC,GAAZ,CAAiB,CAAE;AAAE7B,IAAAA,IAAF;AAAQH,IAAAA;AAAR,GAAF,KAAuB;AACzC,UAAMiC,SAAS,GAAG,uBAAWjC,KAAX,CAAlB;AACA,WACC,4BAAC,mCAAD;AACC,MAAA,GAAG,EAAGiC,SADP;AAEC,MAAA,IAAI,EAAGA,SAFR;AAGC,MAAA,OAAO,EAAG9B,IAHX;AAIC,MAAA,KAAK,EAAGH,KAJT;AAKC,MAAA,OAAO,EAAG;AACToC,QAAAA,cAAc,EAAE,IADP;AAET,WAAGC,yBAAkBC;AAFZ;AALX,MADD;AAYA,GAdC,CA7FH,CARD,CADD;AAwHA;;eAEc9B,gB","sourcesContent":["/**\n * External dependencies\n */\nimport { kebabCase } from 'lodash';\nimport { Text, ScrollView, StyleSheet, View } from 'react-native';\nimport { TransitionPresets } from '@react-navigation/stack';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tBottomSheet,\n\tBottomSheetConsumer,\n\tPanelBody,\n} from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport {\n\thelpFilled,\n\tplusCircleFilled,\n\talignJustifyAlt,\n\ttrashFilled,\n\tcogAlt,\n} from '@wordpress/icons';\nimport { useSelect } from '@wordpress/data';\nimport { store as editorStore } from '@wordpress/editor';\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\nimport {\n\trequestContactCustomerSupport,\n\trequestGotoCustomerSupportOptions,\n} from '@wordpress/react-native-bridge';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\nimport HelpDetailNavigationScreen from './help-detail-navigation-screen';\nimport HelpTopicRow from './help-topic-row';\nimport HelpGetSupportButton from './help-get-support-button';\nimport IntroToBlocks from './intro-to-blocks';\nimport AddBlocks from './add-blocks';\nimport MoveBlocks from './move-blocks';\nimport RemoveBlocks from './remove-blocks';\nimport CustomizeBlocks from './customize-blocks';\n\nconst HELP_TOPICS = [\n\t{\n\t\tlabel: __( 'What is a block?' ),\n\t\ticon: helpFilled,\n\t\tview: <IntroToBlocks />,\n\t},\n\t{\n\t\tlabel: __( 'Add blocks' ),\n\t\ticon: plusCircleFilled,\n\t\tview: <AddBlocks />,\n\t},\n\t{ label: __( 'Move blocks' ), icon: alignJustifyAlt, view: <MoveBlocks /> },\n\t{ label: __( 'Remove blocks' ), icon: trashFilled, view: <RemoveBlocks /> },\n\t{\n\t\tlabel: __( 'Customize blocks' ),\n\t\ticon: cogAlt,\n\t\tview: <CustomizeBlocks />,\n\t},\n];\n\nfunction EditorHelpTopics( { close, isVisible, onClose } ) {\n\tconst { postType } = useSelect( ( select ) => ( {\n\t\tpostType: select( editorStore ).getEditedPostAttribute( 'type' ),\n\t} ) );\n\n\tconst sectionTitle = usePreferredColorSchemeStyle(\n\t\tstyles.helpDetailSectionHeading,\n\t\tstyles.helpDetailSectionHeadingDark\n\t);\n\n\tconst title =\n\t\tpostType === 'page'\n\t\t\t? __( 'How to edit your page' )\n\t\t\t: __( 'How to edit your post' );\n\n\treturn (\n\t\t<BottomSheet\n\t\t\tisVisible={ isVisible }\n\t\t\tonClose={ onClose }\n\t\t\thideHeader\n\t\t\thasNavigation\n\t\t\tcontentStyle={ styles.contentContainer }\n\t\t\ttestID=\"editor-help-modal\"\n\t\t>\n\t\t\t<BottomSheet.NavigationContainer animate main>\n\t\t\t\t<BottomSheet.NavigationScreen\n\t\t\t\t\tisScrollable\n\t\t\t\t\tfullScreen\n\t\t\t\t\tname=\"help-topics\"\n\t\t\t\t>\n\t\t\t\t\t<View style={ styles.container }>\n\t\t\t\t\t\t<BottomSheet.NavBar>\n\t\t\t\t\t\t\t<BottomSheet.NavBar.DismissButton\n\t\t\t\t\t\t\t\tonPress={ close }\n\t\t\t\t\t\t\t\tiosText={ __( 'Close' ) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<BottomSheet.NavBar.Heading>\n\t\t\t\t\t\t\t\t{ title }\n\t\t\t\t\t\t\t</BottomSheet.NavBar.Heading>\n\t\t\t\t\t\t</BottomSheet.NavBar>\n\t\t\t\t\t\t<BottomSheetConsumer>\n\t\t\t\t\t\t\t{ ( { listProps } ) => {\n\t\t\t\t\t\t\t\tconst contentContainerStyle = StyleSheet.flatten(\n\t\t\t\t\t\t\t\t\tlistProps.contentContainerStyle\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t<ScrollView\n\t\t\t\t\t\t\t\t\t\t{ ...listProps }\n\t\t\t\t\t\t\t\t\t\tcontentContainerStyle={ {\n\t\t\t\t\t\t\t\t\t\t\t...contentContainerStyle,\n\t\t\t\t\t\t\t\t\t\t\tpaddingBottom: Math.max(\n\t\t\t\t\t\t\t\t\t\t\t\tlistProps.safeAreaBottomInset,\n\t\t\t\t\t\t\t\t\t\t\t\tcontentContainerStyle.paddingBottom\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t\t\t\t\t * Remove margin set via `hideHeader`. Combining a header\n\t\t\t\t\t\t\t\t\t\t\t * and navigation in this bottom sheet is at odds with the\n\t\t\t\t\t\t\t\t\t\t\t * current `BottomSheet` implementation.\n\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\t\t\t\tmarginTop: 0,\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<PanelBody>\n\t\t\t\t\t\t\t\t\t\t\t<Text style={ sectionTitle }>\n\t\t\t\t\t\t\t\t\t\t\t\t{ __( 'The basics' ) }\n\t\t\t\t\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t\t\t\t\t\t{ /* Print out help topics */ }\n\t\t\t\t\t\t\t\t\t\t\t{ HELP_TOPICS.map(\n\t\t\t\t\t\t\t\t\t\t\t\t( { label, icon } ) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst labelSlug = kebabCase(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<HelpTopicRow\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tkey={ labelSlug }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel={ label }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={ icon }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tscreenName={\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabelSlug\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t<Text style={ sectionTitle }>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{ __( 'Get support' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t<HelpGetSupportButton\n\t\t\t\t\t\t\t\t\t\t\t\t\ttitle={ __(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Contact support'\n\t\t\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t\t\t\tonPress={\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trequestContactCustomerSupport\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t<HelpGetSupportButton\n\t\t\t\t\t\t\t\t\t\t\t\t\ttitle={ __(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'More support options'\n\t\t\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t\t\t\tonPress={\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trequestGotoCustomerSupportOptions\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t</PanelBody>\n\t\t\t\t\t\t\t\t\t</ScrollView>\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t</BottomSheetConsumer>\n\t\t\t\t\t</View>\n\t\t\t\t</BottomSheet.NavigationScreen>\n\t\t\t\t{ /* Print out help detail screens */ }\n\t\t\t\t{ HELP_TOPICS.map( ( { view, label } ) => {\n\t\t\t\t\tconst labelSlug = kebabCase( label );\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<HelpDetailNavigationScreen\n\t\t\t\t\t\t\tkey={ labelSlug }\n\t\t\t\t\t\t\tname={ labelSlug }\n\t\t\t\t\t\t\tcontent={ view }\n\t\t\t\t\t\t\tlabel={ label }\n\t\t\t\t\t\t\toptions={ {\n\t\t\t\t\t\t\t\tgestureEnabled: true,\n\t\t\t\t\t\t\t\t...TransitionPresets.DefaultTransition,\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t/>\n\t\t\t\t\t);\n\t\t\t\t} ) }\n\t\t\t</BottomSheet.NavigationContainer>\n\t\t</BottomSheet>\n\t);\n}\n\nexport default EditorHelpTopics;\n"]}
@@ -13,6 +13,8 @@ var _reactNative = require("react-native");
13
13
 
14
14
  var _i18n = require("@wordpress/i18n");
15
15
 
16
+ var _compose = require("@wordpress/compose");
17
+
16
18
  var _style = _interopRequireDefault(require("./style.scss"));
17
19
 
18
20
  var _viewSections = require("./view-sections");
@@ -29,12 +31,15 @@ var _viewSections = require("./view-sections");
29
31
  * Internal dependencies
30
32
  */
31
33
  const IntroToBlocks = () => {
32
- return (0, _element.createElement)(_reactNative.View, {
34
+ const titleStyle = (0, _compose.usePreferredColorSchemeStyle)(_style.default.helpDetailTitle, _style.default.helpDetailTitleDark);
35
+ return (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)(_viewSections.HelpDetailImage, {
36
+ source: require('./images/block-layout-collage.png')
37
+ }), (0, _element.createElement)(_reactNative.View, {
33
38
  style: _style.default.helpDetailContainer
34
- }, (0, _element.createElement)(_viewSections.HelpDetailImage, {
35
- source: require('./images/intro-blocks-1.png')
36
- }), (0, _element.createElement)(_reactNative.Text, {
37
- style: _style.default.helpDetailTitle
39
+ }, (0, _element.createElement)(_reactNative.Text, {
40
+ accessibilityRole: "header",
41
+ selectable: true,
42
+ style: titleStyle
38
43
  }, (0, _i18n.__)('Welcome to the world of blocks')), (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
39
44
  text: (0, _i18n.__)('Blocks are pieces of content that you can insert, rearrange, and style without needing to know how to code. Blocks are an easy and modern way for you to create beautiful layouts.')
40
45
  }), (0, _element.createElement)(_viewSections.HelpDetailSectionHeadingText, {
@@ -42,22 +47,27 @@ const IntroToBlocks = () => {
42
47
  }), (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
43
48
  text: (0, _i18n.__)('Blocks allow you to focus on writing your content, knowing that all the formatting tools you need are there to help you get your message across.')
44
49
  }), (0, _element.createElement)(_viewSections.HelpDetailImage, {
45
- source: require('./images/intro-blocks-2.png')
50
+ accessible: true,
51
+ accessibilityLabel: (0, _i18n.__)('Text formatting controls are located within the toolbar positioned above the keyboard while editing a text block'),
52
+ source: require('./images/rich-text-light.png'),
53
+ sourceDarkMode: require('./images/rich-text-dark.png')
46
54
  }), (0, _element.createElement)(_viewSections.HelpDetailSectionHeadingText, {
47
55
  text: (0, _i18n.__)('Embed media')
48
56
  }), (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
49
57
  text: (0, _i18n.__)('Make your content stand out by adding images, gifs, videos, and embedded media to your pages.')
50
58
  }), (0, _element.createElement)(_viewSections.HelpDetailImage, {
51
- source: require('./images/intro-blocks-3.png')
59
+ source: require('./images/embed-media-light.png'),
60
+ sourceDarkMode: require('./images/embed-media-dark.png')
52
61
  }), (0, _element.createElement)(_viewSections.HelpDetailSectionHeadingText, {
53
62
  text: (0, _i18n.__)('Build layouts')
54
63
  }), (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
55
64
  text: (0, _i18n.__)('Arrange your content into columns, add Call to Action buttons, and overlay images with text.')
56
65
  }), (0, _element.createElement)(_viewSections.HelpDetailImage, {
57
- source: require('./images/intro-blocks-4.png')
66
+ source: require('./images/build-layouts-light.png'),
67
+ sourceDarkMode: require('./images/build-layouts-dark.png')
58
68
  }), (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
59
69
  text: (0, _i18n.__)('Give it a try by adding a few blocks to your post or page!')
60
- }));
70
+ })));
61
71
  };
62
72
 
63
73
  var _default = IntroToBlocks;
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/editor/src/components/editor-help/intro-to-blocks.native.js"],"names":["IntroToBlocks","styles","helpDetailContainer","require","helpDetailTitle"],"mappings":";;;;;;;;;;;AAGA;;AAKA;;AAKA;;AACA;;AAdA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;AAQA,MAAMA,aAAa,GAAG,MAAM;AAC3B,SACC,4BAAC,iBAAD;AAAM,IAAA,KAAK,EAAGC,eAAOC;AAArB,KACC,4BAAC,6BAAD;AACC,IAAA,MAAM,EAAGC,OAAO,CAAE,6BAAF;AADjB,IADD,EAIC,4BAAC,iBAAD;AAAM,IAAA,KAAK,EAAGF,eAAOG;AAArB,KACG,cAAI,gCAAJ,CADH,CAJD,EAOC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,oLADM;AADR,IAPD,EAYC,4BAAC,0CAAD;AAA8B,IAAA,IAAI,EAAG,cAAI,mBAAJ;AAArC,IAZD,EAaC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,kJADM;AADR,IAbD,EAkBC,4BAAC,6BAAD;AACC,IAAA,MAAM,EAAGD,OAAO,CAAE,6BAAF;AADjB,IAlBD,EAqBC,4BAAC,0CAAD;AAA8B,IAAA,IAAI,EAAG,cAAI,aAAJ;AAArC,IArBD,EAsBC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,+FADM;AADR,IAtBD,EA2BC,4BAAC,6BAAD;AACC,IAAA,MAAM,EAAGA,OAAO,CAAE,6BAAF;AADjB,IA3BD,EA8BC,4BAAC,0CAAD;AAA8B,IAAA,IAAI,EAAG,cAAI,eAAJ;AAArC,IA9BD,EA+BC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,8FADM;AADR,IA/BD,EAoCC,4BAAC,6BAAD;AACC,IAAA,MAAM,EAAGA,OAAO,CAAE,6BAAF;AADjB,IApCD,EAuCC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,4DADM;AADR,IAvCD,CADD;AA+CA,CAhDD;;eAkDeH,a","sourcesContent":["/**\n * External dependencies\n */\nimport { View, Text } 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 {\n\tHelpDetailBodyText,\n\tHelpDetailSectionHeadingText,\n\tHelpDetailImage,\n} from './view-sections';\n\nconst IntroToBlocks = () => {\n\treturn (\n\t\t<View style={ styles.helpDetailContainer }>\n\t\t\t<HelpDetailImage\n\t\t\t\tsource={ require( './images/intro-blocks-1.png' ) }\n\t\t\t/>\n\t\t\t<Text style={ styles.helpDetailTitle }>\n\t\t\t\t{ __( 'Welcome to the world of blocks' ) }\n\t\t\t</Text>\n\t\t\t<HelpDetailBodyText\n\t\t\t\ttext={ __(\n\t\t\t\t\t'Blocks are pieces of content that you can insert, rearrange, and style without needing to know how to code. Blocks are an easy and modern way for you to create beautiful layouts.'\n\t\t\t\t) }\n\t\t\t/>\n\t\t\t<HelpDetailSectionHeadingText text={ __( 'Rich text editing' ) } />\n\t\t\t<HelpDetailBodyText\n\t\t\t\ttext={ __(\n\t\t\t\t\t'Blocks allow you to focus on writing your content, knowing that all the formatting tools you need are there to help you get your message across.'\n\t\t\t\t) }\n\t\t\t/>\n\t\t\t<HelpDetailImage\n\t\t\t\tsource={ require( './images/intro-blocks-2.png' ) }\n\t\t\t/>\n\t\t\t<HelpDetailSectionHeadingText text={ __( 'Embed media' ) } />\n\t\t\t<HelpDetailBodyText\n\t\t\t\ttext={ __(\n\t\t\t\t\t'Make your content stand out by adding images, gifs, videos, and embedded media to your pages.'\n\t\t\t\t) }\n\t\t\t/>\n\t\t\t<HelpDetailImage\n\t\t\t\tsource={ require( './images/intro-blocks-3.png' ) }\n\t\t\t/>\n\t\t\t<HelpDetailSectionHeadingText text={ __( 'Build layouts' ) } />\n\t\t\t<HelpDetailBodyText\n\t\t\t\ttext={ __(\n\t\t\t\t\t'Arrange your content into columns, add Call to Action buttons, and overlay images with text.'\n\t\t\t\t) }\n\t\t\t/>\n\t\t\t<HelpDetailImage\n\t\t\t\tsource={ require( './images/intro-blocks-4.png' ) }\n\t\t\t/>\n\t\t\t<HelpDetailBodyText\n\t\t\t\ttext={ __(\n\t\t\t\t\t'Give it a try by adding a few blocks to your post or page!'\n\t\t\t\t) }\n\t\t\t/>\n\t\t</View>\n\t);\n};\n\nexport default IntroToBlocks;\n"]}
1
+ {"version":3,"sources":["@wordpress/editor/src/components/editor-help/intro-to-blocks.native.js"],"names":["IntroToBlocks","titleStyle","styles","helpDetailTitle","helpDetailTitleDark","require","helpDetailContainer"],"mappings":";;;;;;;;;;;AAGA;;AAKA;;AACA;;AAKA;;AACA;;AAfA;AACA;AACA;;AAGA;AACA;AACA;;AAIA;AACA;AACA;AAQA,MAAMA,aAAa,GAAG,MAAM;AAC3B,QAAMC,UAAU,GAAG,2CAClBC,eAAOC,eADW,EAElBD,eAAOE,mBAFW,CAAnB;AAIA,SACC,qDACC,4BAAC,6BAAD;AACC,IAAA,MAAM,EAAGC,OAAO,CAAE,mCAAF;AADjB,IADD,EAIC,4BAAC,iBAAD;AAAM,IAAA,KAAK,EAAGH,eAAOI;AAArB,KACC,4BAAC,iBAAD;AACC,IAAA,iBAAiB,EAAC,QADnB;AAEC,IAAA,UAAU,MAFX;AAGC,IAAA,KAAK,EAAGL;AAHT,KAKG,cAAI,gCAAJ,CALH,CADD,EAQC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,oLADM;AADR,IARD,EAaC,4BAAC,0CAAD;AACC,IAAA,IAAI,EAAG,cAAI,mBAAJ;AADR,IAbD,EAgBC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,kJADM;AADR,IAhBD,EAqBC,4BAAC,6BAAD;AACC,IAAA,UAAU,EAAG,IADd;AAEC,IAAA,kBAAkB,EAAG,cACpB,kHADoB,CAFtB;AAKC,IAAA,MAAM,EAAGI,OAAO,CAAE,8BAAF,CALjB;AAMC,IAAA,cAAc,EAAGA,OAAO,CAAE,6BAAF;AANzB,IArBD,EA6BC,4BAAC,0CAAD;AAA8B,IAAA,IAAI,EAAG,cAAI,aAAJ;AAArC,IA7BD,EA8BC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,+FADM;AADR,IA9BD,EAmCC,4BAAC,6BAAD;AACC,IAAA,MAAM,EAAGA,OAAO,CAAE,gCAAF,CADjB;AAEC,IAAA,cAAc,EAAGA,OAAO,CAAE,+BAAF;AAFzB,IAnCD,EAuCC,4BAAC,0CAAD;AAA8B,IAAA,IAAI,EAAG,cAAI,eAAJ;AAArC,IAvCD,EAwCC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,8FADM;AADR,IAxCD,EA6CC,4BAAC,6BAAD;AACC,IAAA,MAAM,EAAGA,OAAO,CAAE,kCAAF,CADjB;AAEC,IAAA,cAAc,EAAGA,OAAO,CAAE,iCAAF;AAFzB,IA7CD,EAiDC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,4DADM;AADR,IAjDD,CAJD,CADD;AA8DA,CAnED;;eAqEeL,a","sourcesContent":["/**\n * External dependencies\n */\nimport { View, Text } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\nimport {\n\tHelpDetailBodyText,\n\tHelpDetailSectionHeadingText,\n\tHelpDetailImage,\n} from './view-sections';\n\nconst IntroToBlocks = () => {\n\tconst titleStyle = usePreferredColorSchemeStyle(\n\t\tstyles.helpDetailTitle,\n\t\tstyles.helpDetailTitleDark\n\t);\n\treturn (\n\t\t<>\n\t\t\t<HelpDetailImage\n\t\t\t\tsource={ require( './images/block-layout-collage.png' ) }\n\t\t\t/>\n\t\t\t<View style={ styles.helpDetailContainer }>\n\t\t\t\t<Text\n\t\t\t\t\taccessibilityRole=\"header\"\n\t\t\t\t\tselectable\n\t\t\t\t\tstyle={ titleStyle }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Welcome to the world of blocks' ) }\n\t\t\t\t</Text>\n\t\t\t\t<HelpDetailBodyText\n\t\t\t\t\ttext={ __(\n\t\t\t\t\t\t'Blocks are pieces of content that you can insert, rearrange, and style without needing to know how to code. Blocks are an easy and modern way for you to create beautiful layouts.'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t<HelpDetailSectionHeadingText\n\t\t\t\t\ttext={ __( 'Rich text editing' ) }\n\t\t\t\t/>\n\t\t\t\t<HelpDetailBodyText\n\t\t\t\t\ttext={ __(\n\t\t\t\t\t\t'Blocks allow you to focus on writing your content, knowing that all the formatting tools you need are there to help you get your message across.'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t<HelpDetailImage\n\t\t\t\t\taccessible={ true }\n\t\t\t\t\taccessibilityLabel={ __(\n\t\t\t\t\t\t'Text formatting controls are located within the toolbar positioned above the keyboard while editing a text block'\n\t\t\t\t\t) }\n\t\t\t\t\tsource={ require( './images/rich-text-light.png' ) }\n\t\t\t\t\tsourceDarkMode={ require( './images/rich-text-dark.png' ) }\n\t\t\t\t/>\n\t\t\t\t<HelpDetailSectionHeadingText text={ __( 'Embed media' ) } />\n\t\t\t\t<HelpDetailBodyText\n\t\t\t\t\ttext={ __(\n\t\t\t\t\t\t'Make your content stand out by adding images, gifs, videos, and embedded media to your pages.'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t<HelpDetailImage\n\t\t\t\t\tsource={ require( './images/embed-media-light.png' ) }\n\t\t\t\t\tsourceDarkMode={ require( './images/embed-media-dark.png' ) }\n\t\t\t\t/>\n\t\t\t\t<HelpDetailSectionHeadingText text={ __( 'Build layouts' ) } />\n\t\t\t\t<HelpDetailBodyText\n\t\t\t\t\ttext={ __(\n\t\t\t\t\t\t'Arrange your content into columns, add Call to Action buttons, and overlay images with text.'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t<HelpDetailImage\n\t\t\t\t\tsource={ require( './images/build-layouts-light.png' ) }\n\t\t\t\t\tsourceDarkMode={ require( './images/build-layouts-dark.png' ) }\n\t\t\t\t/>\n\t\t\t\t<HelpDetailBodyText\n\t\t\t\t\ttext={ __(\n\t\t\t\t\t\t'Give it a try by adding a few blocks to your post or page!'\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 IntroToBlocks;\n"]}
@@ -29,13 +29,14 @@ var _viewSections = require("./view-sections");
29
29
  * Internal dependencies
30
30
  */
31
31
  const MoveBlocks = () => {
32
- return (0, _element.createElement)(_reactNative.View, {
32
+ return (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)(_viewSections.HelpDetailImage, {
33
+ source: require('./images/move-light.png'),
34
+ sourceDarkMode: require('./images/move-dark.png')
35
+ }), (0, _element.createElement)(_reactNative.View, {
33
36
  style: _style.default.helpDetailContainer
34
- }, (0, _element.createElement)(_viewSections.HelpDetailImage, {
35
- source: require('./images/move-blocks.png')
36
- }), (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
37
+ }, (0, _element.createElement)(_viewSections.HelpDetailBodyText, {
37
38
  text: (0, _i18n.__)('You can rearrange blocks by tapping a block and then tapping the up and down arrows that appear on the bottom left side of the block to move it above or below other blocks.')
38
- }));
39
+ })));
39
40
  };
40
41
 
41
42
  var _default = MoveBlocks;
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/editor/src/components/editor-help/move-blocks.native.js"],"names":["MoveBlocks","styles","helpDetailContainer","require"],"mappings":";;;;;;;;;;;AAGA;;AAKA;;AAKA;;AACA;;AAdA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;AAIA,MAAMA,UAAU,GAAG,MAAM;AACxB,SACC,4BAAC,iBAAD;AAAM,IAAA,KAAK,EAAGC,eAAOC;AAArB,KACC,4BAAC,6BAAD;AAAiB,IAAA,MAAM,EAAGC,OAAO,CAAE,0BAAF;AAAjC,IADD,EAEC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,8KADM;AADR,IAFD,CADD;AAUA,CAXD;;eAaeH,U","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 MoveBlocks = () => {\n\treturn (\n\t\t<View style={ styles.helpDetailContainer }>\n\t\t\t<HelpDetailImage source={ require( './images/move-blocks.png' ) } />\n\t\t\t<HelpDetailBodyText\n\t\t\t\ttext={ __(\n\t\t\t\t\t'You can rearrange blocks by tapping a block and then tapping the up and down arrows that appear on the bottom left side of the block to move it above or below other blocks.'\n\t\t\t\t) }\n\t\t\t/>\n\t\t</View>\n\t);\n};\n\nexport default MoveBlocks;\n"]}
1
+ {"version":3,"sources":["@wordpress/editor/src/components/editor-help/move-blocks.native.js"],"names":["MoveBlocks","require","styles","helpDetailContainer"],"mappings":";;;;;;;;;;;AAGA;;AAKA;;AAKA;;AACA;;AAdA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;AAIA,MAAMA,UAAU,GAAG,MAAM;AACxB,SACC,qDACC,4BAAC,6BAAD;AACC,IAAA,MAAM,EAAGC,OAAO,CAAE,yBAAF,CADjB;AAEC,IAAA,cAAc,EAAGA,OAAO,CAAE,wBAAF;AAFzB,IADD,EAKC,4BAAC,iBAAD;AAAM,IAAA,KAAK,EAAGC,eAAOC;AAArB,KACC,4BAAC,gCAAD;AACC,IAAA,IAAI,EAAG,cACN,8KADM;AADR,IADD,CALD,CADD;AAeA,CAhBD;;eAkBeH,U","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 MoveBlocks = () => {\n\treturn (\n\t\t<>\n\t\t\t<HelpDetailImage\n\t\t\t\tsource={ require( './images/move-light.png' ) }\n\t\t\t\tsourceDarkMode={ require( './images/move-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'You can rearrange blocks by tapping a block and then tapping the up and down arrows that appear on the bottom left side of the block to move it above or below other blocks.'\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 MoveBlocks;\n"]}