@wordpress/editor 14.46.0 → 14.48.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 +13 -0
- package/build/components/collab-sidebar/add-note.cjs +6 -0
- package/build/components/collab-sidebar/add-note.cjs.map +2 -2
- package/build/components/collab-sidebar/hooks.cjs +36 -24
- package/build/components/collab-sidebar/hooks.cjs.map +2 -2
- package/build/components/collab-sidebar/index.cjs +19 -10
- package/build/components/collab-sidebar/index.cjs.map +2 -2
- package/build/components/collab-sidebar/note-byline.cjs +16 -9
- package/build/components/collab-sidebar/note-byline.cjs.map +2 -2
- package/build/components/collab-sidebar/notes.cjs +20 -11
- package/build/components/collab-sidebar/notes.cjs.map +2 -2
- package/build/components/collab-sidebar/utils.cjs +42 -2
- package/build/components/collab-sidebar/utils.cjs.map +2 -2
- package/build/components/collaborators-overlay/compute-selection.cjs +39 -15
- package/build/components/collaborators-overlay/compute-selection.cjs.map +3 -3
- package/build/components/collaborators-overlay/use-block-highlighting.cjs +10 -2
- package/build/components/collaborators-overlay/use-block-highlighting.cjs.map +3 -3
- package/build/components/collaborators-overlay/use-render-cursors.cjs +15 -7
- package/build/components/collaborators-overlay/use-render-cursors.cjs.map +3 -3
- package/build/components/collaborators-presence/avatar/component.cjs +5 -1
- package/build/components/collaborators-presence/avatar/component.cjs.map +3 -3
- package/build/components/collaborators-presence/use-collaborator-notifications.cjs +6 -3
- package/build/components/collaborators-presence/use-collaborator-notifications.cjs.map +2 -2
- package/build/components/editor-interface/index.cjs +17 -16
- package/build/components/editor-interface/index.cjs.map +3 -3
- package/build/components/editor-notices/index.cjs +6 -1
- package/build/components/editor-notices/index.cjs.map +3 -3
- package/build/components/global-styles/hooks.cjs +12 -1
- package/build/components/global-styles/hooks.cjs.map +2 -2
- package/build/components/header/index.cjs +11 -6
- package/build/components/header/index.cjs.map +2 -2
- package/build/components/media/media-editor-modal.cjs +14 -1
- package/build/components/media/media-editor-modal.cjs.map +2 -2
- package/build/components/post-card-panel/index.cjs +7 -1
- package/build/components/post-card-panel/index.cjs.map +3 -3
- package/build/components/post-last-revision/index.cjs +28 -8
- package/build/components/post-last-revision/index.cjs.map +2 -2
- package/build/components/post-locked-modal/index.cjs +9 -6
- package/build/components/post-locked-modal/index.cjs.map +2 -2
- package/build/components/post-publish-button/label.cjs +0 -7
- package/build/components/post-publish-button/label.cjs.map +2 -2
- package/build/components/post-publish-panel/prepublish.cjs +8 -1
- package/build/components/post-publish-panel/prepublish.cjs.map +3 -3
- package/build/components/post-revisions-panel/index.cjs +7 -0
- package/build/components/post-revisions-panel/index.cjs.map +2 -2
- package/build/components/post-revisions-preview/diff-markers.cjs +21 -13
- package/build/components/post-revisions-preview/diff-markers.cjs.map +2 -2
- package/build/components/post-revisions-preview/revisions-canvas.cjs +7 -1
- package/build/components/post-revisions-preview/revisions-canvas.cjs.map +2 -2
- package/build/components/post-taxonomies/check.cjs +1 -2
- package/build/components/post-taxonomies/check.cjs.map +2 -2
- package/build/components/post-taxonomies/index.cjs +1 -2
- package/build/components/post-taxonomies/index.cjs.map +2 -2
- package/build/components/preferences-modal/index.cjs +1 -1
- package/build/components/preferences-modal/index.cjs.map +2 -2
- package/build/components/preview-dropdown/index.cjs.map +3 -3
- package/build/components/provider/index.cjs +5 -21
- package/build/components/provider/index.cjs.map +3 -3
- package/build/components/provider/use-block-editor-settings.cjs +16 -9
- package/build/components/provider/use-block-editor-settings.cjs.map +3 -3
- package/build/components/resizable-editor/resize-handle.cjs +24 -16
- package/build/components/resizable-editor/resize-handle.cjs.map +2 -2
- package/build/components/sidebar/header.cjs +16 -21
- package/build/components/sidebar/header.cjs.map +3 -3
- package/build/components/sidebar/index.cjs +2 -6
- package/build/components/sidebar/index.cjs.map +2 -2
- package/build/components/start-page-options/index.cjs +14 -4
- package/build/components/start-page-options/index.cjs.map +2 -2
- package/build/components/start-template-options/index.cjs +8 -6
- package/build/components/start-template-options/index.cjs.map +2 -2
- package/build/components/styles-canvas/style-book.cjs +59 -2
- package/build/components/styles-canvas/style-book.cjs.map +2 -2
- package/build/components/sync-connection-error-modal/index.cjs +10 -7
- package/build/components/sync-connection-error-modal/index.cjs.map +3 -3
- package/build/components/template-actions-panel/block-theme-content.cjs +21 -12
- package/build/components/template-actions-panel/block-theme-content.cjs.map +2 -2
- package/build/dataviews/store/private-actions.cjs.map +2 -2
- package/build/store/private-actions.cjs +17 -1
- package/build/store/private-actions.cjs.map +3 -3
- package/build/store/private-selectors.cjs +18 -0
- package/build/store/private-selectors.cjs.map +2 -2
- package/build/store/selectors.cjs +0 -17
- package/build/store/selectors.cjs.map +2 -2
- package/build/{components/media → utils/media-delete}/index.cjs +12 -13
- package/build/utils/media-delete/index.cjs.map +7 -0
- package/build/utils/media-finalize/index.cjs +3 -1
- package/build/utils/media-finalize/index.cjs.map +2 -2
- package/build/utils/sync-error-messages.cjs +9 -0
- package/build/utils/sync-error-messages.cjs.map +2 -2
- package/build-module/components/collab-sidebar/add-note.mjs +6 -0
- package/build-module/components/collab-sidebar/add-note.mjs.map +2 -2
- package/build-module/components/collab-sidebar/hooks.mjs +42 -25
- package/build-module/components/collab-sidebar/hooks.mjs.map +2 -2
- package/build-module/components/collab-sidebar/index.mjs +19 -10
- package/build-module/components/collab-sidebar/index.mjs.map +2 -2
- package/build-module/components/collab-sidebar/note-byline.mjs +17 -10
- package/build-module/components/collab-sidebar/note-byline.mjs.map +2 -2
- package/build-module/components/collab-sidebar/notes.mjs +26 -13
- package/build-module/components/collab-sidebar/notes.mjs.map +2 -2
- package/build-module/components/collab-sidebar/utils.mjs +38 -2
- package/build-module/components/collab-sidebar/utils.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/compute-selection.mjs +36 -12
- package/build-module/components/collaborators-overlay/compute-selection.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/use-block-highlighting.mjs +10 -3
- package/build-module/components/collaborators-overlay/use-block-highlighting.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/use-render-cursors.mjs +11 -6
- package/build-module/components/collaborators-overlay/use-render-cursors.mjs.map +2 -2
- package/build-module/components/collaborators-presence/avatar/component.mjs +7 -3
- package/build-module/components/collaborators-presence/avatar/component.mjs.map +2 -2
- package/build-module/components/collaborators-presence/use-collaborator-notifications.mjs +6 -3
- package/build-module/components/collaborators-presence/use-collaborator-notifications.mjs.map +2 -2
- package/build-module/components/editor-interface/index.mjs +22 -17
- package/build-module/components/editor-interface/index.mjs.map +2 -2
- package/build-module/components/editor-notices/index.mjs +6 -1
- package/build-module/components/editor-notices/index.mjs.map +2 -2
- package/build-module/components/global-styles/hooks.mjs +12 -1
- package/build-module/components/global-styles/hooks.mjs.map +2 -2
- package/build-module/components/header/index.mjs +11 -6
- package/build-module/components/header/index.mjs.map +2 -2
- package/build-module/components/media/media-editor-modal.mjs +14 -1
- package/build-module/components/media/media-editor-modal.mjs.map +2 -2
- package/build-module/components/post-card-panel/index.mjs +8 -2
- package/build-module/components/post-card-panel/index.mjs.map +2 -2
- package/build-module/components/post-last-revision/index.mjs +29 -9
- package/build-module/components/post-last-revision/index.mjs.map +2 -2
- package/build-module/components/post-locked-modal/index.mjs +9 -6
- package/build-module/components/post-locked-modal/index.mjs.map +2 -2
- package/build-module/components/post-publish-button/label.mjs +0 -7
- package/build-module/components/post-publish-button/label.mjs.map +2 -2
- package/build-module/components/post-publish-panel/prepublish.mjs +9 -2
- package/build-module/components/post-publish-panel/prepublish.mjs.map +2 -2
- package/build-module/components/post-revisions-panel/index.mjs +7 -0
- package/build-module/components/post-revisions-panel/index.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/diff-markers.mjs +22 -14
- package/build-module/components/post-revisions-preview/diff-markers.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/revisions-canvas.mjs +7 -1
- package/build-module/components/post-revisions-preview/revisions-canvas.mjs.map +2 -2
- package/build-module/components/post-taxonomies/check.mjs +1 -2
- package/build-module/components/post-taxonomies/check.mjs.map +2 -2
- package/build-module/components/post-taxonomies/index.mjs +1 -2
- package/build-module/components/post-taxonomies/index.mjs.map +2 -2
- package/build-module/components/preferences-modal/index.mjs +1 -1
- package/build-module/components/preferences-modal/index.mjs.map +2 -2
- package/build-module/components/preview-dropdown/index.mjs +2 -2
- package/build-module/components/preview-dropdown/index.mjs.map +2 -2
- package/build-module/components/provider/index.mjs +6 -22
- package/build-module/components/provider/index.mjs.map +2 -2
- package/build-module/components/provider/use-block-editor-settings.mjs +16 -9
- package/build-module/components/provider/use-block-editor-settings.mjs.map +2 -2
- package/build-module/components/resizable-editor/resize-handle.mjs +26 -18
- package/build-module/components/resizable-editor/resize-handle.mjs.map +2 -2
- package/build-module/components/sidebar/header.mjs +11 -16
- package/build-module/components/sidebar/header.mjs.map +2 -2
- package/build-module/components/sidebar/index.mjs +2 -7
- package/build-module/components/sidebar/index.mjs.map +2 -2
- package/build-module/components/start-page-options/index.mjs +14 -4
- package/build-module/components/start-page-options/index.mjs.map +2 -2
- package/build-module/components/start-template-options/index.mjs +8 -6
- package/build-module/components/start-template-options/index.mjs.map +2 -2
- package/build-module/components/styles-canvas/style-book.mjs +60 -3
- package/build-module/components/styles-canvas/style-book.mjs.map +2 -2
- package/build-module/components/sync-connection-error-modal/index.mjs +14 -8
- package/build-module/components/sync-connection-error-modal/index.mjs.map +2 -2
- package/build-module/components/template-actions-panel/block-theme-content.mjs +21 -13
- package/build-module/components/template-actions-panel/block-theme-content.mjs.map +2 -2
- package/build-module/dataviews/store/private-actions.mjs.map +2 -2
- package/build-module/store/private-actions.mjs +16 -1
- package/build-module/store/private-actions.mjs.map +2 -2
- package/build-module/store/private-selectors.mjs +18 -0
- package/build-module/store/private-selectors.mjs.map +2 -2
- package/build-module/store/selectors.mjs +0 -16
- package/build-module/store/selectors.mjs.map +2 -2
- package/build-module/utils/media-delete/index.mjs +12 -0
- package/build-module/utils/media-delete/index.mjs.map +7 -0
- package/build-module/utils/media-finalize/index.mjs +3 -1
- package/build-module/utils/media-finalize/index.mjs.map +2 -2
- package/build-module/utils/sync-error-messages.mjs +8 -0
- package/build-module/utils/sync-error-messages.mjs.map +2 -2
- package/build-style/style-rtl.css +521 -445
- package/build-style/style.css +521 -445
- package/build-types/components/collab-sidebar/add-note.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/hooks.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/index.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/note-byline.d.ts +3 -0
- package/build-types/components/collab-sidebar/note-byline.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/notes.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/utils.d.ts +33 -0
- package/build-types/components/collab-sidebar/utils.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/compute-selection.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/use-block-highlighting.d.ts +3 -0
- 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/collaborators-presence/use-collaborator-notifications.d.ts.map +1 -1
- package/build-types/components/editor-interface/index.d.ts.map +1 -1
- package/build-types/components/editor-notices/index.d.ts.map +1 -1
- package/build-types/components/global-styles/hooks.d.ts.map +1 -1
- package/build-types/components/media/media-editor-modal.d.ts +6 -2
- package/build-types/components/media/media-editor-modal.d.ts.map +1 -1
- package/build-types/components/post-card-panel/index.d.ts.map +1 -1
- package/build-types/components/post-last-revision/index.d.ts.map +1 -1
- package/build-types/components/post-locked-modal/index.d.ts.map +1 -1
- package/build-types/components/post-publish-button/label.d.ts.map +1 -1
- package/build-types/components/post-publish-panel/prepublish.d.ts.map +1 -1
- package/build-types/components/post-revisions-panel/index.d.ts +1 -1
- package/build-types/components/post-revisions-panel/index.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-preview/revisions-canvas.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/check.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/index.d.ts.map +1 -1
- package/build-types/components/provider/index.d.ts.map +1 -1
- package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -1
- package/build-types/components/resizable-editor/resize-handle.d.ts.map +1 -1
- package/build-types/components/sidebar/index.d.ts.map +1 -1
- package/build-types/components/start-page-options/index.d.ts.map +1 -1
- package/build-types/components/start-template-options/index.d.ts.map +1 -1
- package/build-types/components/styles-canvas/style-book.d.ts.map +1 -1
- package/build-types/components/sync-connection-error-modal/index.d.ts.map +1 -1
- package/build-types/components/template-actions-panel/block-theme-content.d.ts.map +1 -1
- package/build-types/dataviews/store/private-actions.d.ts +0 -1
- package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
- package/build-types/store/private-actions.d.ts +15 -0
- package/build-types/store/private-actions.d.ts.map +1 -1
- package/build-types/store/private-selectors.d.ts +10 -0
- package/build-types/store/private-selectors.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts +0 -10
- 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-delete/index.d.ts +2 -0
- package/build-types/utils/media-delete/index.d.ts.map +1 -0
- package/build-types/utils/media-finalize/index.d.ts +1 -1
- package/build-types/utils/media-finalize/index.d.ts.map +1 -1
- package/build-types/utils/sync-error-messages.d.ts +1 -0
- package/build-types/utils/sync-error-messages.d.ts.map +1 -1
- package/package.json +46 -46
- package/src/components/collab-sidebar/add-note.js +9 -0
- package/src/components/collab-sidebar/hooks.js +53 -29
- package/src/components/collab-sidebar/index.js +28 -14
- package/src/components/collab-sidebar/note-byline.js +15 -10
- package/src/components/collab-sidebar/notes.js +36 -14
- package/src/components/collab-sidebar/test/utils.js +375 -1
- package/src/components/collab-sidebar/utils.js +70 -1
- package/src/components/collaborators-overlay/compute-selection.ts +67 -19
- package/src/components/collaborators-overlay/use-block-highlighting.ts +14 -1
- package/src/components/collaborators-overlay/use-render-cursors.ts +15 -4
- package/src/components/collaborators-presence/avatar/component.tsx +10 -3
- package/src/components/collaborators-presence/avatar/test/index.tsx +50 -18
- package/src/components/collaborators-presence/styles/collaborators-presence.scss +4 -1
- package/src/components/collaborators-presence/test/use-collaborator-notifications.ts +2 -1
- package/src/components/collaborators-presence/use-collaborator-notifications.ts +6 -4
- package/src/components/editor-help/help-topic-row.native.js +2 -2
- package/src/components/editor-interface/index.js +22 -23
- package/src/components/editor-interface/style.scss +4 -0
- package/src/components/editor-notices/index.js +7 -1
- package/src/components/error-boundary/index.native.js +2 -2
- package/src/components/global-styles/hooks.js +26 -0
- package/src/components/global-styles-sidebar/style.scss +0 -9
- package/src/components/header/index.js +12 -12
- package/src/components/media/media-editor-modal.js +20 -2
- package/src/components/offline-status/index.native.js +2 -2
- package/src/components/post-card-panel/index.js +5 -2
- package/src/components/post-last-revision/index.js +37 -9
- package/src/components/post-last-revision/style.scss +0 -3
- package/src/components/post-locked-modal/index.js +8 -5
- package/src/components/post-panel-row/style.scss +1 -0
- package/src/components/post-publish-button/label.js +0 -11
- package/src/components/post-publish-panel/prepublish.js +6 -2
- package/src/components/post-revisions-panel/index.js +8 -0
- package/src/components/post-revisions-preview/diff-markers.js +17 -11
- package/src/components/post-revisions-preview/revisions-canvas.js +7 -1
- package/src/components/post-revisions-preview/style.scss +4 -4
- package/src/components/post-taxonomies/check.js +1 -2
- package/src/components/post-taxonomies/index.js +1 -2
- package/src/components/preferences-modal/index.js +1 -1
- package/src/components/preview-dropdown/index.js +2 -2
- package/src/components/provider/index.js +10 -31
- package/src/components/provider/use-block-editor-settings.js +19 -12
- package/src/components/resizable-editor/resize-handle.js +22 -16
- package/src/components/sidebar/header.js +18 -28
- package/src/components/sidebar/index.js +5 -14
- package/src/components/start-page-options/index.js +19 -4
- package/src/components/start-template-options/index.js +13 -6
- package/src/components/styles-canvas/style-book.js +75 -13
- package/src/components/sync-connection-error-modal/index.tsx +25 -11
- package/src/components/template-actions-panel/block-theme-content.js +19 -13
- package/src/components/text-editor/style.scss +2 -2
- package/src/dataviews/store/private-actions.ts +0 -1
- package/src/store/private-actions.js +27 -0
- package/src/store/private-selectors.js +26 -0
- package/src/store/selectors.js +0 -24
- package/src/store/test/actions.js +34 -0
- package/src/utils/media-delete/index.js +11 -0
- package/src/utils/media-finalize/index.js +6 -1
- package/src/utils/media-finalize/test/index.js +32 -2
- package/src/utils/sync-error-messages.ts +8 -0
- package/src/utils/test/sync-error-messages.js +1 -0
- package/build/components/global-styles-provider/index.cjs +0 -181
- package/build/components/global-styles-provider/index.cjs.map +0 -7
- package/build/components/media/index.cjs.map +0 -7
- package/build/components/media/metadata-panel.cjs +0 -96
- package/build/components/media/metadata-panel.cjs.map +0 -7
- package/build/components/media/preview.cjs +0 -39
- package/build/components/media/preview.cjs.map +0 -7
- package/build-module/components/global-styles-provider/index.mjs +0 -156
- package/build-module/components/global-styles-provider/index.mjs.map +0 -7
- package/build-module/components/media/index.mjs +0 -8
- package/build-module/components/media/index.mjs.map +0 -7
- package/build-module/components/media/metadata-panel.mjs +0 -65
- package/build-module/components/media/metadata-panel.mjs.map +0 -7
- package/build-module/components/media/preview.mjs +0 -21
- package/build-module/components/media/preview.mjs.map +0 -7
- package/build-types/components/global-styles-provider/index.d.ts +0 -16
- package/build-types/components/global-styles-provider/index.d.ts.map +0 -1
- package/build-types/components/media/index.d.ts +0 -3
- package/build-types/components/media/index.d.ts.map +0 -1
- package/build-types/components/media/metadata-panel.d.ts +0 -12
- package/build-types/components/media/metadata-panel.d.ts.map +0 -1
- package/build-types/components/media/preview.d.ts +0 -9
- package/build-types/components/media/preview.d.ts.map +0 -1
- package/src/components/global-styles-provider/index.js +0 -207
- package/src/components/media/index.js +0 -2
- package/src/components/media/metadata-panel.js +0 -77
- package/src/components/media/preview.js +0 -35
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-note.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/add-note.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-note.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/add-note.js"],"names":[],"mappings":"AAuBA,wBAAgB,OAAO,CAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE;;;;CAAA,sCAuE1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/hooks.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/hooks.js"],"names":[],"mappings":"AAqCA,wBAAgB,cAAc,CAAE,MAAM,KAAA;;;EA4GrC;AAED,wBAAgB,cAAc;;;;;;;;;;;EAsK7B;AAED,wBAAgB,wBAAwB,CAAE,OAAO,UAAQ,QA4BxD;AAED,wBAAgB,gBAAgB,CAAE,EACjC,OAAO,EACP,cAAc,EACd,UAAU,EACV,UAAU,EACV;;;;;CAAA;;;;EA0DA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/index.js"],"names":[],"mappings":"AAiNA,MAAM,CAAC,OAAO,UAAU,qBAAqB,uCA0B5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"note-byline.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/note-byline.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"note-byline.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/note-byline.js"],"names":[],"mappings":"AAAA;;GAEG;AAmBH,wBAAgB,UAAU,CAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE;;;;;CAAA,+BA6FzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notes.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/notes.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notes.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/notes.js"],"names":[],"mappings":"AA4BA,wBAAgB,KAAK,CAAE,EAAE,KAAK,EAAE,UAAU,EAAE,UAAkB,EAAE,MAAM,EAAE;;;;;CAAA,+BAgRvE"}
|
|
@@ -20,6 +20,39 @@ export declare function getAvatarBorderColor(userId: number): string;
|
|
|
20
20
|
* @return {string} - The generated note excerpt.
|
|
21
21
|
*/
|
|
22
22
|
export declare function getNoteExcerpt(text: string, excerptLength?: number): string;
|
|
23
|
+
/**
|
|
24
|
+
* Normalizes noteId metadata to always return an array of unique numeric ids,
|
|
25
|
+
* preserving insertion order. Handles both scalar (legacy, possibly
|
|
26
|
+
* string-typed) and array (new) values.
|
|
27
|
+
*
|
|
28
|
+
* @param {Object} metadata Block metadata object
|
|
29
|
+
* @return {number[]} Array of note IDs (may be empty)
|
|
30
|
+
*/
|
|
31
|
+
export declare function getNoteIdsFromMetadata(metadata: Object): number[];
|
|
32
|
+
/**
|
|
33
|
+
* Adds a note ID to the metadata.
|
|
34
|
+
* Converts scalar to array if needed, otherwise appends.
|
|
35
|
+
*
|
|
36
|
+
* @param {Object} metadata Existing block metadata
|
|
37
|
+
* @param {number} noteId Note ID to add
|
|
38
|
+
* @return {Object} Updated metadata object
|
|
39
|
+
*/
|
|
40
|
+
export declare function addNoteIdToMetadata(metadata: Object, noteId: number): Object;
|
|
41
|
+
/**
|
|
42
|
+
* Picks the most relevant thread from a list: first unresolved, else first.
|
|
43
|
+
*
|
|
44
|
+
* @param {Array} threads Ordered list of thread objects.
|
|
45
|
+
* @return {Object|null} Selected thread or null when the list is empty.
|
|
46
|
+
*/
|
|
47
|
+
export declare function pickPrimaryNote(threads: any[]): Object | null;
|
|
48
|
+
/**
|
|
49
|
+
* Removes a note ID from the metadata.
|
|
50
|
+
*
|
|
51
|
+
* @param {Object} metadata Existing block metadata
|
|
52
|
+
* @param {number} noteId Note ID to remove
|
|
53
|
+
* @return {Object} Updated metadata object
|
|
54
|
+
*/
|
|
55
|
+
export declare function removeNoteIdFromMetadata(metadata: Object, noteId: number): Object;
|
|
23
56
|
/**
|
|
24
57
|
* Calculate final top positions for all floating note threads in the
|
|
25
58
|
* editor's content coordinate space. Adjusts positions to prevent overlapping
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/utils.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAE,GAAG,EAH7B,MAG6B,GAF5B,MAAM,CAIjB;AAoBD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAE,MAAM,EAHjC,MAGiC,GAFhC,MAAM,CAIjB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAE,IAAI,EAJzB,MAIyB,EAAE,aAAa,GAHxC,MAG6C,GAF5C,MAAM,CA0CjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAE,EACvC,OAAO,EACP,cAAc,EACd,UAAU,EACV,OAAO,EACP,SAAa,EACb,EAbE;IAAwC,OAAO,QAC/C;IAAwC,cAAc,EAA9C,MAAM,GAAC,MAAM,GAAC,SAAS,CAC/B;IAAwC,UAAU,0BAClD;IAAwC,OAAO,yBAC/C;IAAwC,SAAS,EAAzC,MAAM,CACd;CAQF,GARW;IAAE,SAAS,yBAAuB;CAAE,CA8F/C;AAkDD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAE,MAAM,EAJ5B,MAI4B,EAAE,SAAS,EAHvC,kBAGuC,EAAE,kBAAkB,EAF3D,MAE2D,iBAUrE;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAE,MAAM,EAHrC,MAGqC,EAAE,SAAS,EAFhD,kBAEgD,iBAI1D"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","s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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute-selection.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/compute-selection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"compute-selection.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/compute-selection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEX,iBAAiB,EACjB,MAAM,sBAAsB,CAAC;AAU9B,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAMtE,wEAAwE;AACxE,UAAU,cAAc;IACvB,cAAc,EAAE,QAAQ,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;CACrB;AAgBD,2EAA2E;AAC3E,MAAM,WAAW,eAAe;IAC/B,MAAM,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CACjC;AAwCD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACrC,SAAS,EAAE,GAAG,EACd,KAAK,EAAE,iBAAiB,EACxB,GAAG,EAAE,iBAAiB,GAAG,SAAS,EAClC,cAAc,EAAE,cAAc,GAC5B,eAAe,CAiBjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-block-highlighting.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-block-highlighting.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-block-highlighting.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-block-highlighting.ts"],"names":[],"mappings":"AAAA;;GAEG;AA0BH,MAAM,WAAW,kBAAkB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CACnC,cAAc,EAAE,WAAW,GAAG,IAAI,EAClC,mBAAmB,EAAE,QAAQ,GAAG,IAAI,EACpC,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,OAAO,EAAE,MAAM,GACb;IACF,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,4BAA4B,EAAE,MAAM,MAAM,IAAI,CAAC;CAC/C,CAoKA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-render-cursors.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-render-cursors.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"use-render-cursors.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-render-cursors.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AASxD,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,MAAM,WAAW,UAAU;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC/B,cAAc,EAAE,WAAW,GAAG,IAAI,EAClC,mBAAmB,EAAE,QAAQ,GAAG,IAAI,EACpC,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,OAAO,EAAE,MAAM,GACb;IAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,yBAAyB,EAAE,MAAM,MAAM,IAAI,CAAA;CAAE,CAwIxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/components/collaborators-presence/avatar/component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/components/collaborators-presence/avatar/component.tsx"],"names":[],"mappings":"AAiBA;;GAEG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAO3C,iBAAS,MAAM,CAAE,EAChB,SAAS,EACT,GAAG,EACH,IAAI,EACJ,KAAK,EACL,OAAO,EACP,IAAgB,EAChB,WAAW,EACX,MAAc,EACd,eAAe,EACf,KAAK,EACL,GAAG,KAAK,EACR,EAAE,WAAW,GACb,IAAI,CAAE,KAAK,CAAC,cAAc,CAAE,cAAc,CAAE,EAAE,MAAM,WAAW,CAAE,+BAuFjE;eAEc,MAAM"}
|
package/build-types/components/collaborators-presence/use-collaborator-notifications.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-collaborator-notifications.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-presence/use-collaborator-notifications.ts"],"names":[],"mappings":"AA2DA;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC3C,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACrB,IAAI,
|
|
1
|
+
{"version":3,"file":"use-collaborator-notifications.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-presence/use-collaborator-notifications.ts"],"names":[],"mappings":"AA2DA;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC3C,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACrB,IAAI,CAqIN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor-interface/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor-interface/index.js"],"names":[],"mappings":"AAoEA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAE,EACxC,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EACtB,WAAW,EACX;;;;;;;;;;;CAAA,+BA+MA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor-notices/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor-notices/index.js"],"names":[],"mappings":"AAaA;;GAEG;AACH,wBAAgB,aAAa,gCAmB5B;eAEc,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles/hooks.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles/hooks.js"],"names":[],"mappings":"AA0LA;;;;;GAKG;AACH,wBAAgB,eAAe,WAmB9B;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAE,IAAI,EAJnB,MAImB,EAAE,SAAS,AAHtC,CACA,EADQ,MAAM,YAGwB,GAF7B,GAAC,CAQZ;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAE,IAAI,EAJrB,MAIqB,EAAE,SAAS,AAHxC,CACA,EADQ,MAAM,YAG0B,GAF/B,GAAC,CAQZ"}
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
* into the modal, since `@wordpress/media-editor` cannot depend on
|
|
6
6
|
* `@wordpress/editor`.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* Defers the attachment fields and settings reads until the modal
|
|
9
|
+
* actually opens, so editor startup doesn't pay for them on every
|
|
10
|
+
* page load.
|
|
11
|
+
*
|
|
12
|
+
* @return {Element|null} The MediaEditorModal component wired with attachment fields, or null when closed.
|
|
9
13
|
*/
|
|
10
|
-
export default function MediaEditorModalMount(): Element;
|
|
14
|
+
export default function MediaEditorModalMount(): Element | null;
|
|
11
15
|
//# sourceMappingURL=media-editor-modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-editor-modal.d.ts","sourceRoot":"","sources":["../../../src/components/media/media-editor-modal.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"media-editor-modal.d.ts","sourceRoot":"","sources":["../../../src/components/media/media-editor-modal.js"],"names":[],"mappings":"AA8CA;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,IAFjC,UAAQ,IAAI,CAWvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-card-panel/index.js"],"names":[],"mappings":"AAgCA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAE,EACtC,QAAQ,EACR,MAAM,EACN,WAAmB,EACnB,iBAAiB,EACjB,OAAO,EACP,EAbE;IAAgC,QAAQ,AAAxC,CACA,EADQ,MAAM,CACd;IAAgC,MAAM,AAAtC,CACA,EADQ,MAAM,GAAC,MAAM,EAAE,CACvB;IAAgC,WAAW,AAA3C,CACA,EADQ,OAAO,CACf;IAAgC,iBAAiB,AAAjD,CACA,WAAA;IAAgC,OAAO,AAAvC,CACA,WAAA;CAQF,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-card-panel/index.js"],"names":[],"mappings":"AAgCA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAE,EACtC,QAAQ,EACR,MAAM,EACN,WAAmB,EACnB,iBAAiB,EACjB,OAAO,EACP,EAbE;IAAgC,QAAQ,AAAxC,CACA,EADQ,MAAM,CACd;IAAgC,MAAM,AAAtC,CACA,EADQ,MAAM,GAAC,MAAM,EAAE,CACvB;IAAgC,WAAW,AAA3C,CACA,EADQ,OAAO,CACf;IAAgC,iBAAiB,AAAjD,CACA,WAAA;IAAgC,OAAO,AAAvC,CACA,WAAA;CAQF,6BA+HA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-last-revision/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-last-revision/index.js"],"names":[],"mappings":"AAiCA;;;;GAIG;AACH,iBAAS,gBAAgB,8BA6BxB;AAED,wBAAgB,uBAAuB,gCAmCtC;eAEc,gBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-locked-modal/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-locked-modal/index.js"],"names":[],"mappings":"AA+DA,iBAAS,eAAe,uCAsQvB;AAED;;;;;GAKG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-button/label.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-button/label.js"],"names":[],"mappings":"AAYA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,IAF9B,MAAM,CAwEjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepublish.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-panel/prepublish.js"],"names":[],"mappings":"AAwBA,iBAAS,0BAA0B,CAAE,EAAE,QAAQ,EAAE;;CAAA,+
|
|
1
|
+
{"version":3,"file":"prepublish.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-panel/prepublish.js"],"names":[],"mappings":"AAwBA,iBAAS,0BAA0B,CAAE,EAAE,QAAQ,EAAE;;CAAA,+BA6HhD;eAEc,0BAA0B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function PostRevisionsPanel(): import("react").JSX.Element;
|
|
1
|
+
export default function PostRevisionsPanel(): import("react").JSX.Element | null;
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-panel/index.js"],"names":[],"mappings":"AAkJA,MAAM,CAAC,OAAO,UAAU,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-panel/index.js"],"names":[],"mappings":"AAkJA,MAAM,CAAC,OAAO,UAAU,kBAAkB,uCAczC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff-markers.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/diff-markers.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"diff-markers.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/diff-markers.js"],"names":[],"mappings":"AAwHA;;;;;;GAMG;AACH,wBAAgB,cAAc,UA0C7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revisions-canvas.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/revisions-canvas.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"revisions-canvas.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/revisions-canvas.js"],"names":[],"mappings":"AAoJA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,gCA8BtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/check.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAE,EAAE,QAAQ,EAAE,EAJtD;IAA+B,QAAQ,4BAEvC;CAEsD,
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/check.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAE,EAAE,QAAQ,EAAE,EAJtD;IAA+B,QAAQ,4BAEvC;CAEsD,6BAgBxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/index.js"],"names":[],"mappings":"AAgBA,wBAAgB,cAAc,CAAE,EAAE,eAA0B,EAAE;;CAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/index.js"],"names":[],"mappings":"AAgBA,wBAAgB,cAAc,CAAE,EAAE,eAA0B,EAAE;;CAAA,iCA+B7D;AAED;;;;;;;GAOG;eACY,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AA8IA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,0BAA0B,oEAkStC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,cAAc,CAAE,KAAK,EArBlC;IAAgC,IAAI,AAApC,CACA,SAAA;IAAgC,kBAAkB,AAAlD,CAEA,SAAA;IAAgC,QAAQ,AAAxC,CAEA,SAAA;IAAgC,QAAQ,AAAxC,CAGA,4BAAA;CAakC,6BASpC;eAEc,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-block-editor-settings.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-block-editor-settings.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-block-editor-settings.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-block-editor-settings.js"],"names":[],"mappings":"AA0HA;;;;;;;;;GASG;AACH,iBAAS,sBAAsB,CAAE,QAAQ,QAAA,EAAE,QAAQ,EANxC,MAMwC,EAAE,MAAM,EALhD,MAKgD,EAAE,aAAa,EAJ/D,MAI+D,UAwUzE;eAEc,sBAAsB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resize-handle.d.ts","sourceRoot":"","sources":["../../../src/components/resizable-editor/resize-handle.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resize-handle.d.ts","sourceRoot":"","sources":["../../../src/components/resizable-editor/resize-handle.js"],"names":[],"mappings":"AAWA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,EAAE,SAAS,EAAE,aAAa,EAAE;;;CAAA,+BA0DjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/index.js"],"names":[],"mappings":"AAmKA,QAAA,MAAM,OAAO;;;iCAkEZ,CAAC;eAEa,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/start-page-options/index.js"],"names":[],"mappings":"AA0BA,wBAAgB,gBAAgB,QA0C/B;AA4ED,MAAM,CAAC,OAAO,UAAU,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/start-page-options/index.js"],"names":[],"mappings":"AA0BA,wBAAgB,gBAAgB,QA0C/B;AA4ED,MAAM,CAAC,OAAO,UAAU,gBAAgB,uCA6DvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/start-template-options/index.js"],"names":[],"mappings":"AAuKA,MAAM,CAAC,OAAO,UAAU,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/start-template-options/index.js"],"names":[],"mappings":"AAuKA,MAAM,CAAC,OAAO,UAAU,oBAAoB,uCA2D3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style-book.d.ts","sourceRoot":"","sources":["../../../src/components/styles-canvas/style-book.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"style-book.d.ts","sourceRoot":"","sources":["../../../src/components/styles-canvas/style-book.js"],"names":[],"mappings":";UA6FW,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sync-connection-error-modal/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sync-connection-error-modal/index.tsx"],"names":[],"mappings":"AAyCA;;;;;GAKG;AACH,wBAAgB,wBAAwB,uCA2NvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-theme-content.d.ts","sourceRoot":"","sources":["../../../src/components/template-actions-panel/block-theme-content.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"block-theme-content.d.ts","sourceRoot":"","sources":["../../../src/components/template-actions-panel/block-theme-content.js"],"names":[],"mappings":"AAgCA,MAAM,CAAC,OAAO,UAAU,2BAA2B,uCAyKlD"}
|
|
@@ -2,7 +2,6 @@ import type { Action, Field } from '@wordpress/dataviews';
|
|
|
2
2
|
declare global {
|
|
3
3
|
interface Window {
|
|
4
4
|
__experimentalTemplateActivate?: boolean;
|
|
5
|
-
__experimentalMediaEditor?: boolean;
|
|
6
5
|
}
|
|
7
6
|
}
|
|
8
7
|
export declare function registerEntityAction<Item>(kind: string, name: string, config: Action<Item>): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AA4D1D,OAAO,CAAC,MAAM,CAAC,CAAC;IACf,UAAU,MAAM;QACf,8BAA8B,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AA4D1D,OAAO,CAAC,MAAM,CAAC,CAAC;IACf,UAAU,MAAM;QACf,8BAA8B,CAAC,EAAE,OAAO,CAAC;KACzC;CACD;AAgBD,wBAAgB,oBAAoB,CAAE,IAAI,EACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,CAAE,IAAI,CAAE;UAGf,wBAAwB;;;;EAK/B;AAED,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;UAGT,0BAA0B;;;;EAKjC;AAED,wBAAgB,mBAAmB,CAAE,IAAI,EACxC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,CAAE,IAAI,CAAE;UAGd,uBAAuB;;;;EAK9B;AAED,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM;UAGR,yBAAyB;;;;EAKhC;AAED,wBAAgB,UAAU,CAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;UAE9C,cAAc;;;EAIrB;AA2BD,eAAO,MAAM,sBAAsB,aACtB,MAAM,oBACI;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,kBA2JtC,CAAC"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
export * from '../dataviews/store/private-actions';
|
|
2
|
+
/**
|
|
3
|
+
* Updates the editor preview device in response to a block-editor viewport
|
|
4
|
+
* state signal.
|
|
5
|
+
*
|
|
6
|
+
* @param {Object} options Viewport state change options.
|
|
7
|
+
* @param {string} options.viewport Selected viewport state.
|
|
8
|
+
* @param {boolean} options.showStateOnCanvas Whether canvas preview is enabled.
|
|
9
|
+
*/
|
|
10
|
+
export declare const updateDeviceTypeForViewportState: ({ viewport, showStateOnCanvas }?: {
|
|
11
|
+
viewport: string;
|
|
12
|
+
showStateOnCanvas: boolean;
|
|
13
|
+
}) => ({ dispatch, registry }: {
|
|
14
|
+
dispatch: any;
|
|
15
|
+
registry: any;
|
|
16
|
+
}) => void;
|
|
2
17
|
/**
|
|
3
18
|
* Returns an action object used to set which template is currently being used/edited.
|
|
4
19
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAoBA,cAAc,oCAAoC,CAAC;AAOnD;;;;;;;GAOG;AACH,eAAO,MAAM,gCAAgC,qCAH1C;IAAyB,QAAQ,EAAzB,MAAM,CACd;IAAyB,iBAAiB,EAAlC,OAAO,CACjB;CAAA;;;UAYC,CAAC;AAEH;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAE,EAAE,EAJ7B,MAI6B,UAKvC;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,aAFf,MAAM,OAAA;;;;kBAqChB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,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KM,EAAE,OAAO,GAHxC;IAAyC,KAAK,AAA9C,CACA,EADQ,OAAO,CACf;CAE2D,UAM7D"}
|
|
@@ -164,4 +164,14 @@ export declare const getPreviousRevision: {
|
|
|
164
164
|
isRegistrySelector?: boolean;
|
|
165
165
|
registry?: any;
|
|
166
166
|
};
|
|
167
|
+
/**
|
|
168
|
+
* Returns whether the collaboration is enabled for the current post.
|
|
169
|
+
*
|
|
170
|
+
* @return {boolean} Whether collaboration is enabled.
|
|
171
|
+
*/
|
|
172
|
+
export declare const isCollaborationEnabledForCurrentPost: {
|
|
173
|
+
(state: any): boolean;
|
|
174
|
+
isRegistrySelector?: boolean;
|
|
175
|
+
registry?: any;
|
|
176
|
+
};
|
|
167
177
|
//# sourceMappingURL=private-selectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAiDA;;;;;;GAMG;AACH,eAAO,MAAM,WAAW;;;;CAqEvB,CAAC;AAEF,wBAAgB,oBAAoB,CAAE,KAAK,KAAA,OAE1C;AACD,wBAAgB,2BAA2B,CAAE,KAAK,KAAA,OAEjD;AAQD,eAAO,MAAM,WAAW;;;;CAqCvB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB;;;;CA2B9B,CAAC;AAEF,wBAAgB,gBAAgB,CAAE,KAAK,KAAA,EAAE,GAAG,IAAI,OAAA,gDAE/C;AAED,wBAAgB,aAAa,CAAE,KAAK,KAAA,EAAE,GAAG,IAAI,OAAA,WAE5C;AAED,wBAAgB,eAAe,CAAE,KAAK,KAAA,EAAE,GAAG,IAAI,OAAA,+CAE9C;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB;;;;CAiC/B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB;;;;CAkDnC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,aAAa,CAAE,KAAK,QAAA,GAFxB,MAAM,CAIjB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAE,KAAK,QAAA,GAF3B,OAAO,CAIlB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAE,KAAK,QAAA,GAF1B,MAAM,CAIjB;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAE,WAAW,EAJzC,MAIyC,EAAE,IAAI,EAH/C,MAG+C,UAqBzD;AAID,wBAAgB,mBAAmB,WAElC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;CAwB5B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,eAAe,CAAE,KAAK,QAAA,GAF1B,OAAO,CAIlB;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAE,KAAK,QAAA,GAFhC,OAAO,CAIlB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAE,KAAK,QAAA,GAF/B,MAAM,GAAC,IAAI,CAItB;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;CA+B9B,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAE,KAAK,QAAA,GAF1B,SAAS,GAAC,MAAM,GAAC,KAAK,CAIjC;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAE,KAAK,QAAA,GAFxB,OAAO,CAIlB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;CAsD/B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oCAAoC;;;;CAiBhD,CAAC"}
|
|
@@ -1201,14 +1201,4 @@ export declare const getPostTypeLabel: {
|
|
|
1201
1201
|
* @return {boolean} Whether the publish sidebar is open.
|
|
1202
1202
|
*/
|
|
1203
1203
|
export declare function isPublishSidebarOpened(state: Object): boolean;
|
|
1204
|
-
/**
|
|
1205
|
-
* Returns whether the collaboration is enabled for the current post.
|
|
1206
|
-
*
|
|
1207
|
-
* @return {boolean} Whether collaboration is enabled.
|
|
1208
|
-
*/
|
|
1209
|
-
export declare const isCollaborationEnabledForCurrentPost: {
|
|
1210
|
-
(state: any): boolean;
|
|
1211
|
-
isRegistrySelector?: boolean;
|
|
1212
|
-
registry?: any;
|
|
1213
|
-
};
|
|
1214
1204
|
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/selectors.js"],"names":[],"mappings":"AA0CA;;;;;;GAMG;AACH,eAAO,MAAM,aAAa;;;;CAEvB,CAAC;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa;;;;CAEvB,CAAC;AAEJ;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAE,KAAK,QAAA,GAF1B,OAAO,CAIlB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAE,KAAK,QAAA,GAF5B,OAAO,CAKlB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB;;;;CAa7B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB;;;;CAYnC,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAE,KAAK,QAAA,GAFzB,OAAO,CAIlB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;CAmB1B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAE,KAAK,EAT9B,MAS8B,GAF7B,MAAM,CAIjB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAE,KAAK,QAAA,GAF1B,CAAC,MAAM,GAAC,MAAM,CAAC,OAAA,CAI3B;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAE,KAAK,QAAA,GAF9B,MAAM,OAAA,CAIlB;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAAE,KA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on.d.ts","sourceRoot":"","sources":["../../src/utils/get-template-part-icon.js"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAE,cAAc,EAJxC,MAIwC,
|
|
1
|
+
{"version":3,"file":"get-template-part-icon.d.ts","sourceRoot":"","sources":["../../src/utils/get-template-part-icon.js"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAE,cAAc,EAJxC,MAIwC,UAWlD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/media-delete/index.js"],"names":[],"mappings":"AAKA,wBAA8B,WAAW,CAAE,EAAE,KAAA,iBAK5C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function mediaFinalize(id: any, subSizes?: any[]): Promise<
|
|
1
|
+
export default function mediaFinalize(id: any, subSizes?: any[]): Promise<import("@wordpress/media-utils").Attachment | undefined>;
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/media-finalize/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/media-finalize/index.js"],"names":[],"mappings":"AAMA,wBAA8B,aAAa,CAAE,EAAE,KAAA,EAAE,QAAQ,QAAK,oEAU7D"}
|
|
@@ -6,6 +6,7 @@ export declare const AUTHENTICATION_FAILED = "authentication-failed";
|
|
|
6
6
|
export declare const CONNECTION_EXPIRED = "connection-expired";
|
|
7
7
|
export declare const CONNECTION_LIMIT_EXCEEDED = "connection-limit-exceeded";
|
|
8
8
|
export declare const DOCUMENT_SIZE_LIMIT_EXCEEDED = "document-size-limit-exceeded";
|
|
9
|
+
export declare const PROTOCOL_MISMATCH = "protocol-mismatch";
|
|
9
10
|
export declare const UNKNOWN_ERROR = "unknown-error";
|
|
10
11
|
interface ConnectionErrorMessages {
|
|
11
12
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-error-messages.d.ts","sourceRoot":"","sources":["../../src/utils/sync-error-messages.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAK5D,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAE7C,UAAU,uBAAuB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACd;
|
|
1
|
+
{"version":3,"file":"sync-error-messages.d.ts","sourceRoot":"","sources":["../../src/utils/sync-error-messages.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAK5D,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAE7C,UAAU,uBAAuB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACd;AA6CD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,CAAC,EAAE,eAAe,GACrB,uBAAuB,CAMzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/editor",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.48.0",
|
|
4
4
|
"description": "Enhanced block editor for WordPress posts.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -60,50 +60,50 @@
|
|
|
60
60
|
"build-module/bindings/**"
|
|
61
61
|
],
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@wordpress/a11y": "^4.
|
|
64
|
-
"@wordpress/api-fetch": "^7.
|
|
65
|
-
"@wordpress/base-styles": "^
|
|
66
|
-
"@wordpress/blob": "^4.
|
|
67
|
-
"@wordpress/block-editor": "^15.
|
|
68
|
-
"@wordpress/block-serialization-default-parser": "^5.
|
|
69
|
-
"@wordpress/blocks": "^15.
|
|
70
|
-
"@wordpress/commands": "^1.
|
|
71
|
-
"@wordpress/components": "^
|
|
72
|
-
"@wordpress/compose": "^
|
|
73
|
-
"@wordpress/core-data": "^7.
|
|
74
|
-
"@wordpress/data": "^10.
|
|
75
|
-
"@wordpress/dataviews": "^
|
|
76
|
-
"@wordpress/date": "^5.
|
|
77
|
-
"@wordpress/deprecated": "^4.
|
|
78
|
-
"@wordpress/dom": "^4.
|
|
79
|
-
"@wordpress/element": "^
|
|
80
|
-
"@wordpress/fields": "^0.
|
|
81
|
-
"@wordpress/global-styles-engine": "^1.
|
|
82
|
-
"@wordpress/global-styles-ui": "^1.
|
|
83
|
-
"@wordpress/hooks": "^4.
|
|
84
|
-
"@wordpress/html-entities": "^4.
|
|
85
|
-
"@wordpress/i18n": "^6.
|
|
86
|
-
"@wordpress/icons": "^13.
|
|
87
|
-
"@wordpress/interface": "^9.
|
|
88
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
89
|
-
"@wordpress/keycodes": "^4.
|
|
90
|
-
"@wordpress/media-editor": "^0.
|
|
91
|
-
"@wordpress/media-fields": "^0.
|
|
92
|
-
"@wordpress/media-utils": "^5.
|
|
93
|
-
"@wordpress/notices": "^5.
|
|
94
|
-
"@wordpress/patterns": "^2.
|
|
95
|
-
"@wordpress/plugins": "^7.
|
|
96
|
-
"@wordpress/preferences": "^4.
|
|
97
|
-
"@wordpress/private-apis": "^1.
|
|
98
|
-
"@wordpress/reusable-blocks": "^5.
|
|
99
|
-
"@wordpress/rich-text": "^7.
|
|
100
|
-
"@wordpress/server-side-render": "^6.
|
|
101
|
-
"@wordpress/ui": "^0.
|
|
102
|
-
"@wordpress/upload-media": "^0.
|
|
103
|
-
"@wordpress/url": "^4.
|
|
104
|
-
"@wordpress/views": "^1.
|
|
105
|
-
"@wordpress/warning": "^3.
|
|
106
|
-
"@wordpress/wordcount": "^4.
|
|
63
|
+
"@wordpress/a11y": "^4.48.0",
|
|
64
|
+
"@wordpress/api-fetch": "^7.48.0",
|
|
65
|
+
"@wordpress/base-styles": "^9.1.0",
|
|
66
|
+
"@wordpress/blob": "^4.48.0",
|
|
67
|
+
"@wordpress/block-editor": "^15.21.0",
|
|
68
|
+
"@wordpress/block-serialization-default-parser": "^5.48.0",
|
|
69
|
+
"@wordpress/blocks": "^15.21.0",
|
|
70
|
+
"@wordpress/commands": "^1.48.0",
|
|
71
|
+
"@wordpress/components": "^35.0.0",
|
|
72
|
+
"@wordpress/compose": "^8.1.0",
|
|
73
|
+
"@wordpress/core-data": "^7.48.0",
|
|
74
|
+
"@wordpress/data": "^10.48.0",
|
|
75
|
+
"@wordpress/dataviews": "^16.0.0",
|
|
76
|
+
"@wordpress/date": "^5.48.0",
|
|
77
|
+
"@wordpress/deprecated": "^4.48.0",
|
|
78
|
+
"@wordpress/dom": "^4.48.0",
|
|
79
|
+
"@wordpress/element": "^8.0.0",
|
|
80
|
+
"@wordpress/fields": "^0.40.0",
|
|
81
|
+
"@wordpress/global-styles-engine": "^1.15.0",
|
|
82
|
+
"@wordpress/global-styles-ui": "^1.15.0",
|
|
83
|
+
"@wordpress/hooks": "^4.48.0",
|
|
84
|
+
"@wordpress/html-entities": "^4.48.0",
|
|
85
|
+
"@wordpress/i18n": "^6.21.0",
|
|
86
|
+
"@wordpress/icons": "^13.3.0",
|
|
87
|
+
"@wordpress/interface": "^9.33.0",
|
|
88
|
+
"@wordpress/keyboard-shortcuts": "^5.48.0",
|
|
89
|
+
"@wordpress/keycodes": "^4.48.0",
|
|
90
|
+
"@wordpress/media-editor": "^0.11.0",
|
|
91
|
+
"@wordpress/media-fields": "^0.13.0",
|
|
92
|
+
"@wordpress/media-utils": "^5.48.0",
|
|
93
|
+
"@wordpress/notices": "^5.48.0",
|
|
94
|
+
"@wordpress/patterns": "^2.48.0",
|
|
95
|
+
"@wordpress/plugins": "^7.48.0",
|
|
96
|
+
"@wordpress/preferences": "^4.48.0",
|
|
97
|
+
"@wordpress/private-apis": "^1.48.0",
|
|
98
|
+
"@wordpress/reusable-blocks": "^5.48.0",
|
|
99
|
+
"@wordpress/rich-text": "^7.48.0",
|
|
100
|
+
"@wordpress/server-side-render": "^6.24.0",
|
|
101
|
+
"@wordpress/ui": "^0.15.0",
|
|
102
|
+
"@wordpress/upload-media": "^0.33.0",
|
|
103
|
+
"@wordpress/url": "^4.48.0",
|
|
104
|
+
"@wordpress/views": "^1.15.0",
|
|
105
|
+
"@wordpress/warning": "^3.48.0",
|
|
106
|
+
"@wordpress/wordcount": "^4.48.0",
|
|
107
107
|
"change-case": "^4.1.2",
|
|
108
108
|
"client-zip": "^2.4.5",
|
|
109
109
|
"clsx": "^2.1.1",
|
|
@@ -126,5 +126,5 @@
|
|
|
126
126
|
"publishConfig": {
|
|
127
127
|
"access": "public"
|
|
128
128
|
},
|
|
129
|
-
"gitHead": "
|
|
129
|
+
"gitHead": "e7856693aeb4e2522d13608cd32c994e4a97cb9c"
|
|
130
130
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
4
|
import { __ } from '@wordpress/i18n';
|
|
5
|
+
import { useRef } from '@wordpress/element';
|
|
5
6
|
import { useSelect, useDispatch } from '@wordpress/data';
|
|
6
7
|
import {
|
|
7
8
|
store as blockEditorStore,
|
|
@@ -34,6 +35,7 @@ export function AddNote( { onSubmit, sidebarRef, floating } ) {
|
|
|
34
35
|
const blockElement = useBlockElement( clientId );
|
|
35
36
|
const { toggleBlockSpotlight } = unlock( useDispatch( blockEditorStore ) );
|
|
36
37
|
const { selectNote } = unlock( useDispatch( editorStore ) );
|
|
38
|
+
const isSubmittingRef = useRef( false );
|
|
37
39
|
|
|
38
40
|
const unselectNote = () => {
|
|
39
41
|
selectNote( undefined );
|
|
@@ -61,6 +63,12 @@ export function AddNote( { onSubmit, sidebarRef, floating } ) {
|
|
|
61
63
|
if ( ! document.hasFocus() ) {
|
|
62
64
|
return;
|
|
63
65
|
}
|
|
66
|
+
// Prevent blur from closing the form while the async submit
|
|
67
|
+
// is in progress. Clicking "Add note" moves focus away,
|
|
68
|
+
// triggering blur before onSubmit completes.
|
|
69
|
+
if ( isSubmittingRef.current ) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
64
72
|
if ( event.currentTarget.contains( event.relatedTarget ) ) {
|
|
65
73
|
return;
|
|
66
74
|
}
|
|
@@ -71,6 +79,7 @@ export function AddNote( { onSubmit, sidebarRef, floating } ) {
|
|
|
71
79
|
<NoteCard>
|
|
72
80
|
<NoteForm
|
|
73
81
|
onSubmit={ async ( inputComment ) => {
|
|
82
|
+
isSubmittingRef.current = true;
|
|
74
83
|
const { id } = await onSubmit( {
|
|
75
84
|
content: inputComment,
|
|
76
85
|
} );
|