@wordpress/editor 14.48.0 → 14.48.2-next.v.202606191442.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -1
- package/build/bindings/pattern-overrides.cjs +1 -1
- package/build/bindings/pattern-overrides.cjs.map +2 -2
- package/build/components/block-removal-warnings/index.cjs +0 -3
- package/build/components/block-removal-warnings/index.cjs.map +2 -2
- package/build/components/collab-sidebar/note-byline.cjs +1 -1
- package/build/components/collab-sidebar/note-byline.cjs.map +2 -2
- package/build/components/collab-sidebar/note-indicator-toolbar.cjs +49 -43
- package/build/components/collab-sidebar/note-indicator-toolbar.cjs.map +3 -3
- package/build/components/collab-sidebar/note.cjs +49 -17
- package/build/components/collab-sidebar/note.cjs.map +3 -3
- package/build/components/collab-sidebar/notes.cjs.map +1 -1
- package/build/components/collab-sidebar/utils.cjs +1 -1
- package/build/components/collab-sidebar/utils.cjs.map +2 -2
- package/build/components/collaborators-overlay/avatar-iframe-styles.cjs.map +1 -1
- package/build/components/collaborators-overlay/collaborator-styles.cjs.map +1 -1
- package/build/components/collaborators-overlay/compute-selection.cjs.map +1 -1
- package/build/components/collaborators-overlay/overlay-iframe-styles.cjs +1 -1
- package/build/components/collaborators-overlay/overlay-iframe-styles.cjs.map +1 -1
- package/build/components/collaborators-overlay/use-block-highlighting.cjs +1 -8
- package/build/components/collaborators-overlay/use-block-highlighting.cjs.map +3 -3
- package/build/components/collaborators-overlay/use-render-cursors.cjs +1 -7
- package/build/components/collaborators-overlay/use-render-cursors.cjs.map +3 -3
- package/build/components/collaborators-presence/avatar/component.cjs.map +2 -2
- package/build/components/collaborators-presence/avatar/use-image-loading-status.cjs.map +1 -1
- package/build/components/document-bar/index.cjs +7 -5
- package/build/components/document-bar/index.cjs.map +2 -2
- package/build/components/global-keyboard-shortcuts/index.cjs +3 -2
- package/build/components/global-keyboard-shortcuts/index.cjs.map +2 -2
- package/build/components/global-styles-sidebar/welcome-guide.cjs +3 -3
- package/build/components/global-styles-sidebar/welcome-guide.cjs.map +1 -1
- package/build/components/local-autosave-monitor/index.cjs +14 -15
- package/build/components/local-autosave-monitor/index.cjs.map +2 -2
- package/build/components/more-menu/view-more-menu-group.cjs +1 -2
- package/build/components/more-menu/view-more-menu-group.cjs.map +2 -2
- package/build/components/page-attributes/parent.cjs +2 -1
- package/build/components/page-attributes/parent.cjs.map +2 -2
- package/build/components/post-card-panel/index.cjs +1 -1
- package/build/components/post-card-panel/index.cjs.map +2 -2
- package/build/components/post-excerpt/panel.cjs +1 -1
- package/build/components/post-excerpt/panel.cjs.map +2 -2
- package/build/components/post-locked-modal/index.cjs +3 -3
- package/build/components/post-locked-modal/index.cjs.map +1 -1
- package/build/components/post-preview-button/index.cjs +2 -2
- package/build/components/post-preview-button/index.cjs.map +2 -2
- package/build/components/post-publish-button/index.cjs +115 -157
- package/build/components/post-publish-button/index.cjs.map +3 -3
- package/build/components/post-publish-button/label.cjs +2 -2
- package/build/components/post-publish-button/label.cjs.map +2 -2
- package/build/components/post-publish-panel/index.cjs.map +1 -1
- package/build/components/post-publish-panel/postpublish.cjs +1 -1
- package/build/components/post-publish-panel/postpublish.cjs.map +2 -2
- package/build/components/post-revisions-preview/block-diff.cjs +21 -9
- package/build/components/post-revisions-preview/block-diff.cjs.map +2 -2
- package/build/components/post-revisions-preview/diff-markers.cjs.map +2 -2
- package/build/components/post-revisions-preview/preserve-client-ids.cjs +2 -2
- package/build/components/post-revisions-preview/preserve-client-ids.cjs.map +2 -2
- package/build/components/post-revisions-preview/revisions-slider.cjs +1 -1
- package/build/components/post-revisions-preview/revisions-slider.cjs.map +2 -2
- package/build/components/post-revisions-timeline/index.cjs +173 -0
- package/build/components/post-revisions-timeline/index.cjs.map +7 -0
- package/build/components/post-saved-state/index.cjs +17 -26
- package/build/components/post-saved-state/index.cjs.map +2 -2
- package/build/components/post-schedule/label.cjs +5 -5
- package/build/components/post-schedule/label.cjs.map +1 -1
- package/build/components/post-taxonomies/flat-term-selector.cjs +2 -1
- package/build/components/post-taxonomies/flat-term-selector.cjs.map +3 -3
- package/build/components/post-taxonomies/hierarchical-term-selector.cjs +1 -1
- package/build/components/post-taxonomies/hierarchical-term-selector.cjs.map +2 -2
- package/build/components/post-text-editor/index.cjs +51 -0
- package/build/components/post-text-editor/index.cjs.map +2 -2
- package/build/components/post-text-editor/utils.cjs +150 -0
- package/build/components/post-text-editor/utils.cjs.map +7 -0
- package/build/components/post-url/index.cjs +1 -1
- package/build/components/post-url/index.cjs.map +2 -2
- package/build/components/post-view-link/index.cjs +1 -1
- package/build/components/post-view-link/index.cjs.map +2 -2
- package/build/components/provider/disable-non-page-content-blocks.cjs.map +1 -1
- package/build/components/provider/index.cjs +3 -1
- package/build/components/provider/index.cjs.map +3 -3
- package/build/components/provider/use-network-reconnect.cjs +51 -0
- package/build/components/provider/use-network-reconnect.cjs.map +7 -0
- package/build/components/resizable-editor/resize-handle.cjs.map +2 -2
- package/build/components/revision-diff-panel/index.cjs +7 -2
- package/build/components/revision-diff-panel/index.cjs.map +2 -2
- package/build/components/revision-fields-diff/index.cjs +8 -4
- package/build/components/revision-fields-diff/index.cjs.map +2 -2
- package/build/components/sidebar/dataform-post-summary.cjs +125 -20
- package/build/components/sidebar/dataform-post-summary.cjs.map +3 -3
- package/build/components/sidebar/index.cjs +2 -15
- package/build/components/sidebar/index.cjs.map +3 -3
- package/build/components/sidebar/post-revision-summary.cjs +11 -17
- package/build/components/sidebar/post-revision-summary.cjs.map +3 -3
- package/build/components/sidebar/post-summary.cjs +1 -1
- package/build/components/sidebar/post-summary.cjs.map +2 -2
- package/build/components/style-book/examples.cjs +1 -1
- package/build/components/style-book/examples.cjs.map +1 -1
- package/build/components/style-book/index.cjs +1 -1
- package/build/components/style-book/index.cjs.map +2 -2
- package/build/components/sync-connection-error-modal/index.cjs +3 -3
- package/build/components/sync-connection-error-modal/index.cjs.map +1 -1
- package/build/components/template-actions-panel/block-theme-content.cjs +7 -1
- package/build/components/template-actions-panel/block-theme-content.cjs.map +2 -2
- package/build/components/template-actions-panel/index.cjs +0 -9
- package/build/components/template-actions-panel/index.cjs.map +3 -3
- package/build/components/template-validation-notice/index.cjs +1 -1
- package/build/components/template-validation-notice/index.cjs.map +1 -1
- package/build/components/upload-progress-snackbar/index.cjs +161 -0
- package/build/components/upload-progress-snackbar/index.cjs.map +7 -0
- package/build/components/upload-progress-snackbar/tracker.cjs +90 -0
- package/build/components/upload-progress-snackbar/tracker.cjs.map +7 -0
- package/build/components/visual-editor/edit-template-blocks-notification.cjs +1 -1
- package/build/components/visual-editor/edit-template-blocks-notification.cjs.map +1 -1
- package/build/{components/revision-author-panel → dataviews/fields/revisions}/index.cjs +18 -26
- package/build/dataviews/fields/revisions/index.cjs.map +7 -0
- package/build/dataviews/fields/revisions/revisions-view.cjs +74 -0
- package/build/dataviews/fields/revisions/revisions-view.cjs.map +7 -0
- package/build/dataviews/store/private-actions.cjs +14 -4
- package/build/dataviews/store/private-actions.cjs.map +3 -3
- package/build/hooks/push-changes-to-global-styles/index.cjs +1 -1
- package/build/hooks/push-changes-to-global-styles/index.cjs.map +1 -1
- package/build/private-apis.cjs +2 -0
- package/build/private-apis.cjs.map +3 -3
- package/build/store/actions.cjs +1 -1
- package/build/store/actions.cjs.map +2 -2
- package/build/store/private-selectors.cjs +6 -1
- package/build/store/private-selectors.cjs.map +2 -2
- package/build/store/selectors.cjs +1 -2
- package/build/store/selectors.cjs.map +2 -2
- package/build/utils/media-upload/index.cjs +16 -0
- package/build/utils/media-upload/index.cjs.map +3 -3
- package/build/utils/set-nested-value.cjs.map +1 -1
- package/build-module/bindings/pattern-overrides.mjs +1 -1
- package/build-module/bindings/pattern-overrides.mjs.map +2 -2
- package/build-module/components/block-removal-warnings/index.mjs +0 -3
- package/build-module/components/block-removal-warnings/index.mjs.map +2 -2
- package/build-module/components/collab-sidebar/note-byline.mjs +1 -1
- package/build-module/components/collab-sidebar/note-byline.mjs.map +2 -2
- package/build-module/components/collab-sidebar/note-indicator-toolbar.mjs +53 -44
- package/build-module/components/collab-sidebar/note-indicator-toolbar.mjs.map +2 -2
- package/build-module/components/collab-sidebar/note.mjs +50 -18
- package/build-module/components/collab-sidebar/note.mjs.map +2 -2
- package/build-module/components/collab-sidebar/notes.mjs.map +1 -1
- package/build-module/components/collab-sidebar/utils.mjs +1 -1
- package/build-module/components/collab-sidebar/utils.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/avatar-iframe-styles.mjs.map +1 -1
- package/build-module/components/collaborators-overlay/collaborator-styles.mjs.map +1 -1
- package/build-module/components/collaborators-overlay/compute-selection.mjs.map +1 -1
- package/build-module/components/collaborators-overlay/overlay-iframe-styles.mjs +1 -1
- package/build-module/components/collaborators-overlay/overlay-iframe-styles.mjs.map +1 -1
- package/build-module/components/collaborators-overlay/use-block-highlighting.mjs +1 -8
- package/build-module/components/collaborators-overlay/use-block-highlighting.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/use-render-cursors.mjs +1 -7
- package/build-module/components/collaborators-overlay/use-render-cursors.mjs.map +2 -2
- package/build-module/components/collaborators-presence/avatar/component.mjs.map +2 -2
- package/build-module/components/collaborators-presence/avatar/use-image-loading-status.mjs.map +1 -1
- package/build-module/components/document-bar/index.mjs +7 -5
- package/build-module/components/document-bar/index.mjs.map +2 -2
- package/build-module/components/global-keyboard-shortcuts/index.mjs +3 -2
- package/build-module/components/global-keyboard-shortcuts/index.mjs.map +2 -2
- package/build-module/components/global-styles-sidebar/welcome-guide.mjs +3 -3
- package/build-module/components/global-styles-sidebar/welcome-guide.mjs.map +1 -1
- package/build-module/components/local-autosave-monitor/index.mjs +15 -16
- package/build-module/components/local-autosave-monitor/index.mjs.map +2 -2
- package/build-module/components/more-menu/view-more-menu-group.mjs +1 -2
- package/build-module/components/more-menu/view-more-menu-group.mjs.map +2 -2
- package/build-module/components/page-attributes/parent.mjs +2 -1
- package/build-module/components/page-attributes/parent.mjs.map +2 -2
- package/build-module/components/post-card-panel/index.mjs +1 -1
- package/build-module/components/post-card-panel/index.mjs.map +2 -2
- package/build-module/components/post-excerpt/panel.mjs +1 -1
- package/build-module/components/post-excerpt/panel.mjs.map +2 -2
- package/build-module/components/post-locked-modal/index.mjs +3 -3
- package/build-module/components/post-locked-modal/index.mjs.map +1 -1
- package/build-module/components/post-preview-button/index.mjs +2 -2
- package/build-module/components/post-preview-button/index.mjs.map +2 -2
- package/build-module/components/post-publish-button/index.mjs +117 -159
- package/build-module/components/post-publish-button/index.mjs.map +2 -2
- package/build-module/components/post-publish-button/label.mjs +2 -2
- package/build-module/components/post-publish-button/label.mjs.map +2 -2
- package/build-module/components/post-publish-panel/index.mjs.map +1 -1
- package/build-module/components/post-publish-panel/postpublish.mjs +1 -1
- package/build-module/components/post-publish-panel/postpublish.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/block-diff.mjs +20 -8
- package/build-module/components/post-revisions-preview/block-diff.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/diff-markers.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/preserve-client-ids.mjs +1 -1
- package/build-module/components/post-revisions-preview/preserve-client-ids.mjs.map +1 -1
- package/build-module/components/post-revisions-preview/revisions-slider.mjs +1 -1
- package/build-module/components/post-revisions-preview/revisions-slider.mjs.map +2 -2
- package/build-module/components/post-revisions-timeline/index.mjs +152 -0
- package/build-module/components/post-revisions-timeline/index.mjs.map +7 -0
- package/build-module/components/post-saved-state/index.mjs +17 -26
- package/build-module/components/post-saved-state/index.mjs.map +2 -2
- package/build-module/components/post-schedule/label.mjs +5 -5
- package/build-module/components/post-schedule/label.mjs.map +1 -1
- package/build-module/components/post-taxonomies/flat-term-selector.mjs +3 -6
- package/build-module/components/post-taxonomies/flat-term-selector.mjs.map +2 -2
- package/build-module/components/post-taxonomies/hierarchical-term-selector.mjs +1 -1
- package/build-module/components/post-taxonomies/hierarchical-term-selector.mjs.map +2 -2
- package/build-module/components/post-text-editor/index.mjs +51 -0
- package/build-module/components/post-text-editor/index.mjs.map +2 -2
- package/build-module/components/post-text-editor/utils.mjs +123 -0
- package/build-module/components/post-text-editor/utils.mjs.map +7 -0
- package/build-module/components/post-url/index.mjs +1 -1
- package/build-module/components/post-url/index.mjs.map +2 -2
- package/build-module/components/post-view-link/index.mjs +1 -1
- package/build-module/components/post-view-link/index.mjs.map +2 -2
- package/build-module/components/provider/disable-non-page-content-blocks.mjs.map +1 -1
- package/build-module/components/provider/index.mjs +3 -1
- package/build-module/components/provider/index.mjs.map +2 -2
- package/build-module/components/provider/use-network-reconnect.mjs +30 -0
- package/build-module/components/provider/use-network-reconnect.mjs.map +7 -0
- package/build-module/components/resizable-editor/resize-handle.mjs.map +2 -2
- package/build-module/components/revision-diff-panel/index.mjs +7 -2
- package/build-module/components/revision-diff-panel/index.mjs.map +2 -2
- package/build-module/components/revision-fields-diff/index.mjs +8 -4
- package/build-module/components/revision-fields-diff/index.mjs.map +2 -2
- package/build-module/components/sidebar/dataform-post-summary.mjs +125 -20
- package/build-module/components/sidebar/dataform-post-summary.mjs.map +2 -2
- package/build-module/components/sidebar/index.mjs +3 -22
- package/build-module/components/sidebar/index.mjs.map +2 -2
- package/build-module/components/sidebar/post-revision-summary.mjs +11 -17
- package/build-module/components/sidebar/post-revision-summary.mjs.map +2 -2
- package/build-module/components/sidebar/post-summary.mjs +1 -1
- package/build-module/components/sidebar/post-summary.mjs.map +2 -2
- package/build-module/components/style-book/examples.mjs +1 -1
- package/build-module/components/style-book/examples.mjs.map +1 -1
- package/build-module/components/style-book/index.mjs +1 -1
- package/build-module/components/style-book/index.mjs.map +2 -2
- package/build-module/components/sync-connection-error-modal/index.mjs +3 -3
- package/build-module/components/sync-connection-error-modal/index.mjs.map +1 -1
- package/build-module/components/template-actions-panel/block-theme-content.mjs +7 -1
- package/build-module/components/template-actions-panel/block-theme-content.mjs.map +2 -2
- package/build-module/components/template-actions-panel/index.mjs +0 -9
- package/build-module/components/template-actions-panel/index.mjs.map +2 -2
- package/build-module/components/template-validation-notice/index.mjs +1 -1
- package/build-module/components/template-validation-notice/index.mjs.map +1 -1
- package/build-module/components/upload-progress-snackbar/index.mjs +135 -0
- package/build-module/components/upload-progress-snackbar/index.mjs.map +7 -0
- package/build-module/components/upload-progress-snackbar/tracker.mjs +61 -0
- package/build-module/components/upload-progress-snackbar/tracker.mjs.map +7 -0
- package/build-module/components/visual-editor/edit-template-blocks-notification.mjs +1 -1
- package/build-module/components/visual-editor/edit-template-blocks-notification.mjs.map +1 -1
- package/build-module/dataviews/fields/revisions/index.mjs +20 -0
- package/build-module/dataviews/fields/revisions/index.mjs.map +7 -0
- package/build-module/dataviews/fields/revisions/revisions-view.mjs +53 -0
- package/build-module/dataviews/fields/revisions/revisions-view.mjs.map +7 -0
- package/build-module/dataviews/store/private-actions.mjs +23 -7
- package/build-module/dataviews/store/private-actions.mjs.map +2 -2
- package/build-module/hooks/push-changes-to-global-styles/index.mjs +1 -1
- package/build-module/hooks/push-changes-to-global-styles/index.mjs.map +1 -1
- package/build-module/private-apis.mjs +2 -0
- package/build-module/private-apis.mjs.map +2 -2
- package/build-module/store/actions.mjs +1 -1
- package/build-module/store/actions.mjs.map +2 -2
- package/build-module/store/private-selectors.mjs +7 -1
- package/build-module/store/private-selectors.mjs.map +2 -2
- package/build-module/store/selectors.mjs +1 -2
- package/build-module/store/selectors.mjs.map +2 -2
- package/build-module/utils/media-upload/index.mjs +19 -0
- package/build-module/utils/media-upload/index.mjs.map +2 -2
- package/build-module/utils/set-nested-value.mjs.map +1 -1
- package/build-style/style-rtl.css +707 -270
- package/build-style/style.css +707 -270
- package/build-types/components/block-removal-warnings/index.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/note-byline.d.ts +0 -3
- package/build-types/components/collab-sidebar/note-byline.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/note-indicator-toolbar.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/note.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/use-block-highlighting.d.ts +0 -3
- package/build-types/components/collaborators-overlay/use-block-highlighting.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/use-render-cursors.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/avatar/component.d.ts.map +1 -1
- package/build-types/components/document-bar/index.d.ts.map +1 -1
- package/build-types/components/global-keyboard-shortcuts/index.d.ts.map +1 -1
- package/build-types/components/local-autosave-monitor/index.d.ts.map +1 -1
- package/build-types/components/more-menu/view-more-menu-group.d.ts.map +1 -1
- package/build-types/components/page-attributes/parent.d.ts.map +1 -1
- package/build-types/components/post-publish-button/index.d.ts +9 -9
- package/build-types/components/post-publish-button/index.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/block-diff.d.ts +3 -0
- package/build-types/components/post-revisions-preview/block-diff.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/diff-markers.d.ts.map +1 -1
- package/build-types/components/post-revisions-timeline/index.d.ts +2 -0
- package/build-types/components/post-revisions-timeline/index.d.ts.map +1 -0
- package/build-types/components/post-saved-state/index.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts.map +1 -1
- package/build-types/components/post-text-editor/index.d.ts.map +1 -1
- package/build-types/components/post-text-editor/utils.d.ts +29 -0
- package/build-types/components/post-text-editor/utils.d.ts.map +1 -0
- package/build-types/components/provider/index.d.ts.map +1 -1
- package/build-types/components/provider/use-network-reconnect.d.ts +8 -0
- package/build-types/components/provider/use-network-reconnect.d.ts.map +1 -0
- package/build-types/components/resizable-editor/resize-handle.d.ts.map +1 -1
- package/build-types/components/revision-diff-panel/index.d.ts +3 -1
- package/build-types/components/revision-diff-panel/index.d.ts.map +1 -1
- package/build-types/components/revision-fields-diff/index.d.ts +3 -0
- package/build-types/components/revision-fields-diff/index.d.ts.map +1 -1
- package/build-types/components/sidebar/dataform-post-summary.d.ts.map +1 -1
- package/build-types/components/sidebar/index.d.ts.map +1 -1
- package/build-types/components/sidebar/post-revision-summary.d.ts.map +1 -1
- package/build-types/components/template-actions-panel/block-theme-content.d.ts.map +1 -1
- package/build-types/components/template-actions-panel/index.d.ts.map +1 -1
- package/build-types/components/upload-progress-snackbar/index.d.ts +19 -0
- package/build-types/components/upload-progress-snackbar/index.d.ts.map +1 -0
- package/build-types/components/upload-progress-snackbar/stories/index.story.d.ts +28 -0
- package/build-types/components/upload-progress-snackbar/stories/index.story.d.ts.map +1 -0
- package/build-types/components/upload-progress-snackbar/tracker.d.ts +41 -0
- package/build-types/components/upload-progress-snackbar/tracker.d.ts.map +1 -0
- package/build-types/dataviews/fields/revisions/index.d.ts +8 -0
- package/build-types/dataviews/fields/revisions/index.d.ts.map +1 -0
- package/build-types/dataviews/fields/revisions/revisions-view.d.ts +2 -0
- package/build-types/dataviews/fields/revisions/revisions-view.d.ts.map +1 -0
- package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
- package/build-types/private-apis.d.ts.map +1 -1
- package/build-types/store/private-selectors.d.ts +1 -1
- package/build-types/store/private-selectors.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts +1 -1
- package/build-types/store/selectors.d.ts.map +1 -1
- package/build-types/utils/get-template-part-icon.d.ts.map +1 -1
- package/build-types/utils/media-upload/index.d.ts.map +1 -1
- package/package.json +59 -50
- package/src/bindings/pattern-overrides.js +1 -1
- package/src/bindings/test/pattern-overrides.js +65 -0
- package/src/components/README.md +1 -1
- package/src/components/block-removal-warnings/index.js +0 -7
- package/src/components/collab-sidebar/note-byline.js +0 -1
- package/src/components/collab-sidebar/note-indicator-toolbar.js +73 -60
- package/src/components/collab-sidebar/note.js +64 -29
- package/src/components/collab-sidebar/style.scss +20 -0
- package/src/components/collaborators-overlay/use-block-highlighting.ts +0 -9
- package/src/components/collaborators-overlay/use-render-cursors.ts +0 -8
- package/src/components/collaborators-presence/avatar/component.tsx +0 -1
- package/src/components/collaborators-presence/avatar/test/index.tsx +8 -4
- package/src/components/document-bar/index.js +8 -3
- package/src/components/document-bar/style.scss +4 -2
- package/src/components/global-keyboard-shortcuts/index.js +2 -1
- package/src/components/local-autosave-monitor/index.js +23 -21
- package/src/components/more-menu/view-more-menu-group.js +1 -2
- package/src/components/page-attributes/parent.js +1 -0
- package/src/components/post-card-panel/index.js +1 -1
- package/src/components/post-publish-button/index.js +146 -192
- package/src/components/post-publish-button/test/index.js +149 -113
- package/src/components/post-revisions-preview/block-diff.js +63 -19
- package/src/components/post-revisions-preview/diff-markers.js +0 -1
- package/src/components/post-revisions-preview/preserve-client-ids.js +1 -1
- package/src/components/post-revisions-preview/test/block-diff.js +109 -6
- package/src/components/post-revisions-timeline/index.js +186 -0
- package/src/components/post-revisions-timeline/style.scss +43 -0
- package/src/components/post-saved-state/index.js +23 -26
- package/src/components/post-saved-state/test/index.js +18 -0
- package/src/components/post-taxonomies/flat-term-selector.js +4 -7
- package/src/components/post-text-editor/index.js +65 -0
- package/src/components/post-text-editor/test/utils.js +210 -0
- package/src/components/post-text-editor/utils.js +204 -0
- package/src/components/post-type-support-check/test/index.js +11 -0
- package/src/components/post-url/index.js +1 -1
- package/src/components/post-view-link/index.js +1 -1
- package/src/components/post-view-link/test/index.js +71 -0
- package/src/components/provider/index.js +6 -1
- package/src/components/provider/test/use-network-reconnect.js +137 -0
- package/src/components/provider/use-network-reconnect.js +44 -0
- package/src/components/resizable-editor/resize-handle.js +0 -1
- package/src/components/revision-diff-panel/index.js +8 -2
- package/src/components/revision-fields-diff/index.js +19 -3
- package/src/components/sidebar/dataform-post-summary.js +196 -25
- package/src/components/sidebar/index.js +4 -23
- package/src/components/sidebar/post-revision-summary.js +8 -15
- package/src/components/sidebar/post-summary.js +1 -1
- package/src/components/style-book/index.js +1 -1
- package/src/components/template-actions-panel/block-theme-content.js +10 -2
- package/src/components/template-actions-panel/index.js +0 -15
- package/src/components/upload-progress-snackbar/README.md +26 -0
- package/src/components/upload-progress-snackbar/index.js +216 -0
- package/src/components/upload-progress-snackbar/stories/index.story.tsx +85 -0
- package/src/components/upload-progress-snackbar/style.scss +30 -0
- package/src/components/upload-progress-snackbar/test/index.js +199 -0
- package/src/components/upload-progress-snackbar/tracker.js +105 -0
- package/src/dataviews/fields/revisions/index.tsx +28 -0
- package/src/dataviews/fields/revisions/revisions-view.tsx +59 -0
- package/src/dataviews/store/private-actions.ts +27 -6
- package/src/private-apis.js +2 -0
- package/src/store/private-selectors.js +11 -1
- package/src/store/selectors.js +1 -3
- package/src/store/test/private-selectors.js +69 -0
- package/src/style.scss +2 -1
- package/src/utils/media-upload/index.js +27 -0
- package/build/components/post-revisions-panel/index.cjs +0 -173
- package/build/components/post-revisions-panel/index.cjs.map +0 -7
- package/build/components/revision-author-panel/index.cjs.map +0 -7
- package/build/components/revision-created-panel/index.cjs +0 -47
- package/build/components/revision-created-panel/index.cjs.map +0 -7
- package/build-module/components/post-revisions-panel/index.mjs +0 -148
- package/build-module/components/post-revisions-panel/index.mjs.map +0 -7
- package/build-module/components/revision-author-panel/index.mjs +0 -28
- package/build-module/components/revision-author-panel/index.mjs.map +0 -7
- package/build-module/components/revision-created-panel/index.mjs +0 -26
- package/build-module/components/revision-created-panel/index.mjs.map +0 -7
- package/build-types/components/post-revisions-panel/index.d.ts +0 -2
- package/build-types/components/post-revisions-panel/index.d.ts.map +0 -1
- package/build-types/components/revision-author-panel/index.d.ts +0 -2
- package/build-types/components/revision-author-panel/index.d.ts.map +0 -1
- package/build-types/components/revision-created-panel/index.d.ts +0 -2
- package/build-types/components/revision-created-panel/index.d.ts.map +0 -1
- package/src/components/commands/index.native.js +0 -2
- package/src/components/deprecated.native.js +0 -47
- package/src/components/editor-help/add-blocks.native.js +0 -40
- package/src/components/editor-help/customize-blocks.native.js +0 -40
- package/src/components/editor-help/help-detail-navigation-screen.native.js +0 -67
- package/src/components/editor-help/help-get-support-button.native.js +0 -38
- package/src/components/editor-help/help-section-title.native.js +0 -29
- package/src/components/editor-help/help-topic-row.native.js +0 -33
- package/src/components/editor-help/icon-move-blocks.native.js +0 -10
- package/src/components/editor-help/images/add-dark.png +0 -0
- package/src/components/editor-help/images/add-dark@2x.png +0 -0
- package/src/components/editor-help/images/add-dark@3x.png +0 -0
- package/src/components/editor-help/images/add-light.png +0 -0
- package/src/components/editor-help/images/add-light@2x.png +0 -0
- package/src/components/editor-help/images/add-light@3x.png +0 -0
- package/src/components/editor-help/images/block-layout-collage.png +0 -0
- package/src/components/editor-help/images/block-layout-collage@2x.png +0 -0
- package/src/components/editor-help/images/block-layout-collage@3x.png +0 -0
- package/src/components/editor-help/images/build-layouts-dark.png +0 -0
- package/src/components/editor-help/images/build-layouts-dark@2x.png +0 -0
- package/src/components/editor-help/images/build-layouts-dark@3x.png +0 -0
- package/src/components/editor-help/images/build-layouts-light.png +0 -0
- package/src/components/editor-help/images/build-layouts-light@2x.png +0 -0
- package/src/components/editor-help/images/build-layouts-light@3x.png +0 -0
- package/src/components/editor-help/images/drag-and-drop-dark.png +0 -0
- package/src/components/editor-help/images/drag-and-drop-dark@2x.png +0 -0
- package/src/components/editor-help/images/drag-and-drop-dark@3x.png +0 -0
- package/src/components/editor-help/images/drag-and-drop-light.png +0 -0
- package/src/components/editor-help/images/drag-and-drop-light@2x.png +0 -0
- package/src/components/editor-help/images/drag-and-drop-light@3x.png +0 -0
- package/src/components/editor-help/images/edit-media-dark.png +0 -0
- package/src/components/editor-help/images/edit-media-dark@2x.png +0 -0
- package/src/components/editor-help/images/edit-media-dark@3x.png +0 -0
- package/src/components/editor-help/images/edit-media-light.png +0 -0
- package/src/components/editor-help/images/edit-media-light@2x.png +0 -0
- package/src/components/editor-help/images/edit-media-light@3x.png +0 -0
- package/src/components/editor-help/images/embed-media-dark.png +0 -0
- package/src/components/editor-help/images/embed-media-dark@2x.png +0 -0
- package/src/components/editor-help/images/embed-media-dark@3x.png +0 -0
- package/src/components/editor-help/images/embed-media-light.png +0 -0
- package/src/components/editor-help/images/embed-media-light@2x.png +0 -0
- package/src/components/editor-help/images/embed-media-light@3x.png +0 -0
- package/src/components/editor-help/images/move-dark.png +0 -0
- package/src/components/editor-help/images/move-dark@2x.png +0 -0
- package/src/components/editor-help/images/move-dark@3x.png +0 -0
- package/src/components/editor-help/images/move-light.png +0 -0
- package/src/components/editor-help/images/move-light@2x.png +0 -0
- package/src/components/editor-help/images/move-light@3x.png +0 -0
- package/src/components/editor-help/images/options-dark.png +0 -0
- package/src/components/editor-help/images/options-dark@2x.png +0 -0
- package/src/components/editor-help/images/options-dark@3x.png +0 -0
- package/src/components/editor-help/images/options-light.png +0 -0
- package/src/components/editor-help/images/options-light@2x.png +0 -0
- package/src/components/editor-help/images/options-light@3x.png +0 -0
- package/src/components/editor-help/images/rich-text-dark.png +0 -0
- package/src/components/editor-help/images/rich-text-dark@2x.png +0 -0
- package/src/components/editor-help/images/rich-text-dark@3x.png +0 -0
- package/src/components/editor-help/images/rich-text-light.png +0 -0
- package/src/components/editor-help/images/rich-text-light@2x.png +0 -0
- package/src/components/editor-help/images/rich-text-light@3x.png +0 -0
- package/src/components/editor-help/images/settings-dark.png +0 -0
- package/src/components/editor-help/images/settings-dark@2x.png +0 -0
- package/src/components/editor-help/images/settings-dark@3x.png +0 -0
- package/src/components/editor-help/images/settings-light.png +0 -0
- package/src/components/editor-help/images/settings-light@2x.png +0 -0
- package/src/components/editor-help/images/settings-light@3x.png +0 -0
- package/src/components/editor-help/index.native.js +0 -208
- package/src/components/editor-help/intro-to-blocks.native.js +0 -91
- package/src/components/editor-help/move-blocks.native.js +0 -55
- package/src/components/editor-help/remove-blocks.native.js +0 -35
- package/src/components/editor-help/style.android.scss +0 -6
- package/src/components/editor-help/style.ios.scss +0 -6
- package/src/components/editor-help/style.scss +0 -123
- package/src/components/editor-help/test/index.native.js +0 -81
- package/src/components/editor-help/view-sections.native.js +0 -79
- package/src/components/error-boundary/index.native.js +0 -192
- package/src/components/error-boundary/style.native.scss +0 -116
- package/src/components/index.native.js +0 -15
- package/src/components/offline-status/index.native.js +0 -99
- package/src/components/offline-status/style.native.scss +0 -28
- package/src/components/offline-status/test/index.native.js +0 -108
- package/src/components/post-revisions-panel/index.js +0 -161
- package/src/components/post-revisions-panel/style.scss +0 -16
- package/src/components/post-title/index.native.js +0 -282
- package/src/components/post-title/style.native.scss +0 -13
- package/src/components/post-title/test/__snapshots__/index.native.js.snap +0 -25
- package/src/components/post-title/test/index.native.js +0 -78
- package/src/components/provider/index.native.js +0 -497
- package/src/components/provider/use-block-editor-settings.native.js +0 -48
- package/src/components/revision-author-panel/index.js +0 -36
- package/src/components/revision-created-panel/index.js +0 -36
- package/src/components/template-part-menu-items/index.native.js +0 -3
- package/src/hooks/index.native.js +0 -0
- package/src/index.native.js +0 -16
- package/src/private-apis.native.js +0 -33
- package/src/store/actions.native.js +0 -27
- package/src/store/reducer.native.js +0 -94
- package/src/store/selectors.native.js +0 -57
- package/src/store/test/actions.native.js +0 -16
- package/src/store/test/reducer.native.js +0 -36
- package/src/store/test/selectors.native.js +0 -28
- package/src/utils/index.native.js +0 -6
- package/src/utils/media-sideload/index.native.js +0 -1
- package/src/utils/media-upload/index.native.js +0 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { SafeAreaView, ScrollView, StyleSheet, View } from 'react-native';
|
|
5
|
-
import { TransitionPresets } from '@react-navigation/stack';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* WordPress dependencies
|
|
9
|
-
*/
|
|
10
|
-
import {
|
|
11
|
-
BottomSheet,
|
|
12
|
-
BottomSheetConsumer,
|
|
13
|
-
PanelBody,
|
|
14
|
-
} from '@wordpress/components';
|
|
15
|
-
import { __ } from '@wordpress/i18n';
|
|
16
|
-
import { helpFilled, plusCircleFilled, trash, cog } from '@wordpress/icons';
|
|
17
|
-
import { useSelect } from '@wordpress/data';
|
|
18
|
-
import { store as editorStore } from '@wordpress/editor';
|
|
19
|
-
import {
|
|
20
|
-
requestContactCustomerSupport,
|
|
21
|
-
requestGotoCustomerSupportOptions,
|
|
22
|
-
} from '@wordpress/react-native-bridge';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Internal dependencies
|
|
26
|
-
*/
|
|
27
|
-
import styles from './style.scss';
|
|
28
|
-
import HelpDetailNavigationScreen from './help-detail-navigation-screen';
|
|
29
|
-
import HelpTopicRow from './help-topic-row';
|
|
30
|
-
import HelpGetSupportButton from './help-get-support-button';
|
|
31
|
-
import IntroToBlocks from './intro-to-blocks';
|
|
32
|
-
import AddBlocks from './add-blocks';
|
|
33
|
-
import MoveBlocks from './move-blocks';
|
|
34
|
-
import RemoveBlocks from './remove-blocks';
|
|
35
|
-
import CustomizeBlocks from './customize-blocks';
|
|
36
|
-
import moveBlocksIcon from './icon-move-blocks';
|
|
37
|
-
import HelpSectionTitle from './help-section-title';
|
|
38
|
-
|
|
39
|
-
const HELP_TOPICS = [
|
|
40
|
-
{
|
|
41
|
-
label: __( 'What is a block?' ),
|
|
42
|
-
slug: 'what-is-a-block',
|
|
43
|
-
icon: helpFilled,
|
|
44
|
-
view: <IntroToBlocks />,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
label: __( 'Add blocks' ),
|
|
48
|
-
slug: 'add-blocks',
|
|
49
|
-
icon: plusCircleFilled,
|
|
50
|
-
view: <AddBlocks />,
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
label: __( 'Move blocks' ),
|
|
54
|
-
slug: 'move-blocks',
|
|
55
|
-
icon: moveBlocksIcon,
|
|
56
|
-
view: <MoveBlocks />,
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
label: __( 'Remove blocks' ),
|
|
60
|
-
slug: 'remove-blocks',
|
|
61
|
-
icon: trash,
|
|
62
|
-
view: <RemoveBlocks />,
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
label: __( 'Customize blocks' ),
|
|
66
|
-
slug: 'customize-blocks',
|
|
67
|
-
icon: cog,
|
|
68
|
-
view: <CustomizeBlocks />,
|
|
69
|
-
},
|
|
70
|
-
];
|
|
71
|
-
|
|
72
|
-
function EditorHelpTopics( { close, isVisible, onClose, showSupport } ) {
|
|
73
|
-
const { postType } = useSelect( ( select ) => ( {
|
|
74
|
-
postType: select( editorStore ).getEditedPostAttribute( 'type' ),
|
|
75
|
-
} ) );
|
|
76
|
-
|
|
77
|
-
const title =
|
|
78
|
-
postType === 'page'
|
|
79
|
-
? __( 'How to edit your page' )
|
|
80
|
-
: __( 'How to edit your post' );
|
|
81
|
-
|
|
82
|
-
const supportSection = (
|
|
83
|
-
<>
|
|
84
|
-
<HelpSectionTitle>{ __( 'Get support' ) }</HelpSectionTitle>
|
|
85
|
-
<HelpGetSupportButton
|
|
86
|
-
title={ __( 'Contact support' ) }
|
|
87
|
-
onPress={ requestContactCustomerSupport }
|
|
88
|
-
/>
|
|
89
|
-
<HelpGetSupportButton
|
|
90
|
-
title={ __( 'More support options' ) }
|
|
91
|
-
onPress={ requestGotoCustomerSupportOptions }
|
|
92
|
-
/>
|
|
93
|
-
</>
|
|
94
|
-
);
|
|
95
|
-
|
|
96
|
-
return (
|
|
97
|
-
<BottomSheet
|
|
98
|
-
isVisible={ isVisible }
|
|
99
|
-
onClose={ onClose }
|
|
100
|
-
hideHeader
|
|
101
|
-
hasNavigation
|
|
102
|
-
contentStyle={ styles.contentContainer }
|
|
103
|
-
testID="editor-help-modal"
|
|
104
|
-
>
|
|
105
|
-
<SafeAreaView style={ styles.safeAreaContainer }>
|
|
106
|
-
<BottomSheet.NavigationContainer
|
|
107
|
-
animate
|
|
108
|
-
main
|
|
109
|
-
style={ styles.navigationContainer }
|
|
110
|
-
>
|
|
111
|
-
<BottomSheet.NavigationScreen
|
|
112
|
-
isScrollable
|
|
113
|
-
fullScreen
|
|
114
|
-
name="help-topics"
|
|
115
|
-
>
|
|
116
|
-
<View style={ styles.container }>
|
|
117
|
-
<BottomSheet.NavBar>
|
|
118
|
-
<BottomSheet.NavBar.DismissButton
|
|
119
|
-
onPress={ close }
|
|
120
|
-
iosText={ __( 'Close' ) }
|
|
121
|
-
/>
|
|
122
|
-
<BottomSheet.NavBar.Heading>
|
|
123
|
-
{ title }
|
|
124
|
-
</BottomSheet.NavBar.Heading>
|
|
125
|
-
</BottomSheet.NavBar>
|
|
126
|
-
<BottomSheetConsumer>
|
|
127
|
-
{ ( { listProps } ) => {
|
|
128
|
-
const contentContainerStyle =
|
|
129
|
-
StyleSheet.flatten(
|
|
130
|
-
listProps.contentContainerStyle
|
|
131
|
-
);
|
|
132
|
-
return (
|
|
133
|
-
<ScrollView
|
|
134
|
-
{ ...listProps }
|
|
135
|
-
contentContainerStyle={ {
|
|
136
|
-
...contentContainerStyle,
|
|
137
|
-
paddingBottom: Math.max(
|
|
138
|
-
listProps.safeAreaBottomInset,
|
|
139
|
-
contentContainerStyle.paddingBottom
|
|
140
|
-
),
|
|
141
|
-
/**
|
|
142
|
-
* Remove margin set via `hideHeader`. Combining a header
|
|
143
|
-
* and navigation in this bottom sheet is at odds with the
|
|
144
|
-
* current `BottomSheet` implementation.
|
|
145
|
-
*/
|
|
146
|
-
marginTop: 0,
|
|
147
|
-
} }
|
|
148
|
-
>
|
|
149
|
-
<PanelBody>
|
|
150
|
-
<HelpSectionTitle>
|
|
151
|
-
{ __( 'The basics' ) }
|
|
152
|
-
</HelpSectionTitle>
|
|
153
|
-
{ /* Print out help topics. */ }
|
|
154
|
-
{ HELP_TOPICS.map(
|
|
155
|
-
(
|
|
156
|
-
{ label, icon, slug },
|
|
157
|
-
index
|
|
158
|
-
) => {
|
|
159
|
-
const isLastItem =
|
|
160
|
-
index ===
|
|
161
|
-
HELP_TOPICS.length -
|
|
162
|
-
1;
|
|
163
|
-
return (
|
|
164
|
-
<HelpTopicRow
|
|
165
|
-
key={ slug }
|
|
166
|
-
label={ label }
|
|
167
|
-
icon={ icon }
|
|
168
|
-
screenName={
|
|
169
|
-
slug
|
|
170
|
-
}
|
|
171
|
-
isLastItem={
|
|
172
|
-
isLastItem
|
|
173
|
-
}
|
|
174
|
-
/>
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
) }
|
|
178
|
-
{ showSupport &&
|
|
179
|
-
supportSection }
|
|
180
|
-
</PanelBody>
|
|
181
|
-
</ScrollView>
|
|
182
|
-
);
|
|
183
|
-
} }
|
|
184
|
-
</BottomSheetConsumer>
|
|
185
|
-
</View>
|
|
186
|
-
</BottomSheet.NavigationScreen>
|
|
187
|
-
{ /* Print out help detail screens. */ }
|
|
188
|
-
{ HELP_TOPICS.map( ( { view, label, slug } ) => {
|
|
189
|
-
return (
|
|
190
|
-
<HelpDetailNavigationScreen
|
|
191
|
-
key={ slug }
|
|
192
|
-
name={ slug }
|
|
193
|
-
content={ view }
|
|
194
|
-
label={ label }
|
|
195
|
-
options={ {
|
|
196
|
-
gestureEnabled: false,
|
|
197
|
-
...TransitionPresets.DefaultTransition,
|
|
198
|
-
} }
|
|
199
|
-
/>
|
|
200
|
-
);
|
|
201
|
-
} ) }
|
|
202
|
-
</BottomSheet.NavigationContainer>
|
|
203
|
-
</SafeAreaView>
|
|
204
|
-
</BottomSheet>
|
|
205
|
-
);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export default EditorHelpTopics;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { View, Text } from 'react-native';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* WordPress dependencies
|
|
8
|
-
*/
|
|
9
|
-
import { __ } from '@wordpress/i18n';
|
|
10
|
-
import { usePreferredColorSchemeStyle } from '@wordpress/compose';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Internal dependencies
|
|
14
|
-
*/
|
|
15
|
-
import styles from './style.scss';
|
|
16
|
-
import {
|
|
17
|
-
HelpDetailBodyText,
|
|
18
|
-
HelpDetailSectionHeadingText,
|
|
19
|
-
HelpDetailImage,
|
|
20
|
-
} from './view-sections';
|
|
21
|
-
|
|
22
|
-
const IntroToBlocks = () => {
|
|
23
|
-
const titleStyle = usePreferredColorSchemeStyle(
|
|
24
|
-
styles.helpDetailTitle,
|
|
25
|
-
styles.helpDetailTitleDark
|
|
26
|
-
);
|
|
27
|
-
return (
|
|
28
|
-
<>
|
|
29
|
-
<HelpDetailImage
|
|
30
|
-
source={ require( './images/block-layout-collage.png' ) }
|
|
31
|
-
/>
|
|
32
|
-
<View style={ styles.helpDetailContainer }>
|
|
33
|
-
<Text
|
|
34
|
-
accessibilityRole="header"
|
|
35
|
-
selectable
|
|
36
|
-
style={ titleStyle }
|
|
37
|
-
>
|
|
38
|
-
{ __( 'Welcome to the world of blocks' ) }
|
|
39
|
-
</Text>
|
|
40
|
-
<HelpDetailBodyText
|
|
41
|
-
text={ __(
|
|
42
|
-
'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.'
|
|
43
|
-
) }
|
|
44
|
-
/>
|
|
45
|
-
<HelpDetailSectionHeadingText
|
|
46
|
-
text={ __( 'Rich text editing' ) }
|
|
47
|
-
/>
|
|
48
|
-
<HelpDetailBodyText
|
|
49
|
-
text={ __(
|
|
50
|
-
'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.'
|
|
51
|
-
) }
|
|
52
|
-
/>
|
|
53
|
-
<HelpDetailImage
|
|
54
|
-
accessible
|
|
55
|
-
accessibilityLabel={ __(
|
|
56
|
-
'Text formatting controls are located within the toolbar positioned above the keyboard while editing a text block'
|
|
57
|
-
) }
|
|
58
|
-
source={ require( './images/rich-text-light.png' ) }
|
|
59
|
-
sourceDarkMode={ require( './images/rich-text-dark.png' ) }
|
|
60
|
-
/>
|
|
61
|
-
<HelpDetailSectionHeadingText text={ __( 'Embed media' ) } />
|
|
62
|
-
<HelpDetailBodyText
|
|
63
|
-
text={ __(
|
|
64
|
-
'Make your content stand out by adding images, gifs, videos, and embedded media to your pages.'
|
|
65
|
-
) }
|
|
66
|
-
/>
|
|
67
|
-
<HelpDetailImage
|
|
68
|
-
source={ require( './images/embed-media-light.png' ) }
|
|
69
|
-
sourceDarkMode={ require( './images/embed-media-dark.png' ) }
|
|
70
|
-
/>
|
|
71
|
-
<HelpDetailSectionHeadingText text={ __( 'Build layouts' ) } />
|
|
72
|
-
<HelpDetailBodyText
|
|
73
|
-
text={ __(
|
|
74
|
-
'Arrange your content into columns, add Call to action buttons, and overlay images with text.'
|
|
75
|
-
) }
|
|
76
|
-
/>
|
|
77
|
-
<HelpDetailImage
|
|
78
|
-
source={ require( './images/build-layouts-light.png' ) }
|
|
79
|
-
sourceDarkMode={ require( './images/build-layouts-dark.png' ) }
|
|
80
|
-
/>
|
|
81
|
-
<HelpDetailBodyText
|
|
82
|
-
text={ __(
|
|
83
|
-
'Give it a try by adding a few blocks to your post or page!'
|
|
84
|
-
) }
|
|
85
|
-
/>
|
|
86
|
-
</View>
|
|
87
|
-
</>
|
|
88
|
-
);
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
export default IntroToBlocks;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { View } from 'react-native';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* WordPress dependencies
|
|
8
|
-
*/
|
|
9
|
-
import { __ } from '@wordpress/i18n';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Internal dependencies
|
|
13
|
-
*/
|
|
14
|
-
import styles from './style.scss';
|
|
15
|
-
import {
|
|
16
|
-
HelpDetailBodyText,
|
|
17
|
-
HelpDetailImage,
|
|
18
|
-
HelpDetailSectionHeadingText,
|
|
19
|
-
} from './view-sections';
|
|
20
|
-
|
|
21
|
-
const MoveBlocks = () => {
|
|
22
|
-
return (
|
|
23
|
-
<>
|
|
24
|
-
<HelpDetailImage
|
|
25
|
-
source={ require( './images/drag-and-drop-light.png' ) }
|
|
26
|
-
sourceDarkMode={ require( './images/drag-and-drop-dark.png' ) }
|
|
27
|
-
/>
|
|
28
|
-
<View style={ styles.helpDetailContainer }>
|
|
29
|
-
<HelpDetailSectionHeadingText
|
|
30
|
-
text={ __( 'Drag & drop' ) }
|
|
31
|
-
badge={ __( 'NEW' ) }
|
|
32
|
-
/>
|
|
33
|
-
<HelpDetailBodyText
|
|
34
|
-
text={ __(
|
|
35
|
-
'Drag & drop makes rearranging blocks a breeze. Press and hold on a block, then drag it to its new location and release.'
|
|
36
|
-
) }
|
|
37
|
-
/>
|
|
38
|
-
</View>
|
|
39
|
-
<HelpDetailImage
|
|
40
|
-
source={ require( './images/move-light.png' ) }
|
|
41
|
-
sourceDarkMode={ require( './images/move-dark.png' ) }
|
|
42
|
-
/>
|
|
43
|
-
<View style={ styles.helpDetailContainer }>
|
|
44
|
-
<HelpDetailSectionHeadingText text={ __( 'Arrow buttons' ) } />
|
|
45
|
-
<HelpDetailBodyText
|
|
46
|
-
text={ __(
|
|
47
|
-
'You can also 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 up or down.'
|
|
48
|
-
) }
|
|
49
|
-
/>
|
|
50
|
-
</View>
|
|
51
|
-
</>
|
|
52
|
-
);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export default MoveBlocks;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { View } from 'react-native';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* WordPress dependencies
|
|
8
|
-
*/
|
|
9
|
-
import { __ } from '@wordpress/i18n';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Internal dependencies
|
|
13
|
-
*/
|
|
14
|
-
import styles from './style.scss';
|
|
15
|
-
import { HelpDetailBodyText, HelpDetailImage } from './view-sections';
|
|
16
|
-
|
|
17
|
-
const RemoveBlocks = () => {
|
|
18
|
-
return (
|
|
19
|
-
<>
|
|
20
|
-
<HelpDetailImage
|
|
21
|
-
source={ require( './images/options-light.png' ) }
|
|
22
|
-
sourceDarkMode={ require( './images/options-dark.png' ) }
|
|
23
|
-
/>
|
|
24
|
-
<View style={ styles.helpDetailContainer }>
|
|
25
|
-
<HelpDetailBodyText
|
|
26
|
-
text={ __(
|
|
27
|
-
'To remove a block, select the block and click the three dots in the bottom right of the block to view the settings. From there, choose the option to remove the block.'
|
|
28
|
-
) }
|
|
29
|
-
/>
|
|
30
|
-
</View>
|
|
31
|
-
</>
|
|
32
|
-
);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export default RemoveBlocks;
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
@use "@wordpress/base-styles/colors" as *;
|
|
2
|
-
@use "@wordpress/base-styles/variables" as *;
|
|
3
|
-
|
|
4
|
-
.button {
|
|
5
|
-
margin: $grid-unit-10 $grid-unit-05;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
border: $border-width solid $gray-300;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.buttonDark {
|
|
12
|
-
border-color: $gray-700;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.buttonText {
|
|
16
|
-
font-weight: 600;
|
|
17
|
-
font-size: 16px;
|
|
18
|
-
color: $light-primary;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.buttonTextDark {
|
|
22
|
-
color: $dark-primary;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.safeAreaContainer {
|
|
26
|
-
flex: 1;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.navigationContainer {
|
|
30
|
-
flex: 1;
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.container {
|
|
35
|
-
height: 100%;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.contentContainer {
|
|
39
|
-
padding: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.helpSectionTitleContainer {
|
|
43
|
-
margin-top: 24px;
|
|
44
|
-
margin-bottom: 16px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.helpSectionTitle {
|
|
48
|
-
color: $light-primary;
|
|
49
|
-
font-weight: 600;
|
|
50
|
-
font-size: 16px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.helpSectionTitleDark {
|
|
54
|
-
color: $dark-secondary;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.helpDetailContainer {
|
|
58
|
-
padding: 0 16px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.helpDetailImage {
|
|
62
|
-
background-color: $gray-light;
|
|
63
|
-
margin-bottom: 16px;
|
|
64
|
-
width: 100%;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.helpDetailImageDark {
|
|
68
|
-
background-color: $gray-dark;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.helpDetailTitle,
|
|
72
|
-
.helpDetailSectionHeading,
|
|
73
|
-
.helpDetailBody {
|
|
74
|
-
margin-bottom: 16px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.helpDetailTitle {
|
|
78
|
-
color: $light-primary;
|
|
79
|
-
font-weight: 600;
|
|
80
|
-
font-size: 28px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.helpDetailTitleDark {
|
|
84
|
-
color: $dark-primary;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.helpDetailSectionHeading {
|
|
88
|
-
flex-direction: row;
|
|
89
|
-
align-items: center;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.helpDetailSectionHeadingText {
|
|
93
|
-
color: $light-primary;
|
|
94
|
-
font-weight: 700;
|
|
95
|
-
font-size: 16px;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.helpDetailSectionHeadingTextDark {
|
|
99
|
-
color: $dark-primary;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.helpDetailBody {
|
|
103
|
-
color: $light-secondary;
|
|
104
|
-
font-size: 16px;
|
|
105
|
-
line-height: 24px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.helpDetailBodyDark {
|
|
109
|
-
color: $dark-secondary;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.helpDetailBadgeContainer {
|
|
113
|
-
padding: 2px 6px;
|
|
114
|
-
margin-right: 8px;
|
|
115
|
-
border-radius: 6px;
|
|
116
|
-
background-color: #c9356e;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.helpDetailBadgeText {
|
|
120
|
-
color: $white;
|
|
121
|
-
font-weight: $font-weight-medium;
|
|
122
|
-
font-size: 12px;
|
|
123
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { fireEvent, render, waitForElementToBeRemoved } from 'test/helpers';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Internal dependencies
|
|
8
|
-
*/
|
|
9
|
-
import EditorHelp from '../index';
|
|
10
|
-
|
|
11
|
-
it( 'lists help topics', async () => {
|
|
12
|
-
const screen = render( <EditorHelp isVisible /> );
|
|
13
|
-
const helpTopic = await screen.findByText( 'Customize blocks' );
|
|
14
|
-
|
|
15
|
-
expect( helpTopic ).toBeTruthy();
|
|
16
|
-
} );
|
|
17
|
-
|
|
18
|
-
it( 'navigates to help topic detail screen', async () => {
|
|
19
|
-
const screen = render( <EditorHelp isVisible /> );
|
|
20
|
-
const helpTopic = await screen.findByText( 'Customize blocks' );
|
|
21
|
-
fireEvent.press( helpTopic );
|
|
22
|
-
|
|
23
|
-
expect(
|
|
24
|
-
screen.getByText(
|
|
25
|
-
'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.'
|
|
26
|
-
)
|
|
27
|
-
).toBeTruthy();
|
|
28
|
-
} );
|
|
29
|
-
|
|
30
|
-
it( 'navigates back from help topic detail screen', async () => {
|
|
31
|
-
const screen = render( <EditorHelp isVisible /> );
|
|
32
|
-
const helpTopic = await screen.findByText( 'Customize blocks' );
|
|
33
|
-
fireEvent.press( helpTopic );
|
|
34
|
-
|
|
35
|
-
const backButton = screen.getAllByLabelText( 'Go back' );
|
|
36
|
-
fireEvent.press( backButton[ backButton.length - 1 ] );
|
|
37
|
-
|
|
38
|
-
const text =
|
|
39
|
-
'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.';
|
|
40
|
-
await waitForElementToBeRemoved( () =>
|
|
41
|
-
screen.getByText( text, { hidden: true } )
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
expect( screen.queryByText( text ) ).toBeNull();
|
|
45
|
-
} );
|
|
46
|
-
|
|
47
|
-
it( 'dismisses when close button is pressed', async () => {
|
|
48
|
-
const closeMock = jest.fn();
|
|
49
|
-
const screen = render( <EditorHelp isVisible close={ closeMock } /> );
|
|
50
|
-
const closeButton = await screen.findByLabelText( 'Go back' );
|
|
51
|
-
fireEvent.press( closeButton );
|
|
52
|
-
|
|
53
|
-
expect( closeMock ).toHaveBeenCalled();
|
|
54
|
-
} );
|
|
55
|
-
|
|
56
|
-
it( 'dismisses when parent modal backdrop is pressed', async () => {
|
|
57
|
-
const onCloseMock = jest.fn();
|
|
58
|
-
const screen = render( <EditorHelp isVisible onClose={ onCloseMock } /> );
|
|
59
|
-
const modal = await screen.findByTestId( 'editor-help-modal' );
|
|
60
|
-
fireEvent( modal, 'backdropPress' );
|
|
61
|
-
|
|
62
|
-
expect( onCloseMock ).toHaveBeenCalled();
|
|
63
|
-
} );
|
|
64
|
-
|
|
65
|
-
it( 'dismisses when parent modal backdrop is swiped', async () => {
|
|
66
|
-
const onCloseMock = jest.fn();
|
|
67
|
-
const screen = render( <EditorHelp isVisible onClose={ onCloseMock } /> );
|
|
68
|
-
const modal = await screen.findByTestId( 'editor-help-modal' );
|
|
69
|
-
fireEvent( modal, 'swipeComplete' );
|
|
70
|
-
|
|
71
|
-
expect( onCloseMock ).toHaveBeenCalled();
|
|
72
|
-
} );
|
|
73
|
-
|
|
74
|
-
it( 'dismisses when hardware back button is pressed', async () => {
|
|
75
|
-
const onCloseMock = jest.fn();
|
|
76
|
-
const screen = render( <EditorHelp isVisible onClose={ onCloseMock } /> );
|
|
77
|
-
const modal = await screen.findByTestId( 'editor-help-modal' );
|
|
78
|
-
fireEvent( modal, 'backButtonPress' );
|
|
79
|
-
|
|
80
|
-
expect( onCloseMock ).toHaveBeenCalled();
|
|
81
|
-
} );
|