@wordpress/editor 14.40.2-next.v.202602271551.0 → 14.40.2
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 +6 -0
- package/build/components/collab-sidebar/add-comment.cjs +0 -3
- package/build/components/collab-sidebar/add-comment.cjs.map +2 -2
- package/build/components/collab-sidebar/comments.cjs +0 -3
- package/build/components/collab-sidebar/comments.cjs.map +2 -2
- package/build/components/collab-sidebar/index.cjs +7 -4
- package/build/components/collab-sidebar/index.cjs.map +2 -2
- package/build/components/collab-sidebar/utils.cjs +13 -15
- package/build/components/collab-sidebar/utils.cjs.map +2 -2
- package/build/components/collaborators-overlay/avatar-iframe-styles.cjs +141 -0
- package/build/components/collaborators-overlay/avatar-iframe-styles.cjs.map +7 -0
- package/build/components/collaborators-overlay/collaborator-styles.cjs +38 -2
- package/build/components/collaborators-overlay/collaborator-styles.cjs.map +2 -2
- package/build/components/collaborators-overlay/compute-selection.cjs +185 -0
- package/build/components/collaborators-overlay/compute-selection.cjs.map +7 -0
- package/build/components/collaborators-overlay/cursor-dom-utils.cjs +243 -0
- package/build/components/collaborators-overlay/cursor-dom-utils.cjs.map +7 -0
- package/build/components/collaborators-overlay/cursor-registry.cjs +86 -0
- package/build/components/collaborators-overlay/cursor-registry.cjs.map +7 -0
- package/build/components/collaborators-overlay/index.cjs +7 -2
- package/build/components/collaborators-overlay/index.cjs.map +2 -2
- package/build/components/collaborators-overlay/overlay-iframe-styles.cjs +148 -0
- package/build/components/collaborators-overlay/overlay-iframe-styles.cjs.map +7 -0
- package/build/components/collaborators-overlay/overlay.cjs +141 -229
- package/build/components/collaborators-overlay/overlay.cjs.map +3 -3
- package/build/components/collaborators-overlay/timing-utils.cjs +46 -0
- package/build/components/collaborators-overlay/timing-utils.cjs.map +7 -0
- package/build/components/collaborators-overlay/use-block-highlighting.cjs +91 -42
- package/build/components/collaborators-overlay/use-block-highlighting.cjs.map +2 -2
- package/build/components/collaborators-overlay/use-debounced-recompute.cjs +49 -0
- package/build/components/collaborators-overlay/use-debounced-recompute.cjs.map +7 -0
- package/build/components/collaborators-overlay/use-render-cursors.cjs +82 -172
- package/build/components/collaborators-overlay/use-render-cursors.cjs.map +3 -3
- package/build/components/collaborators-presence/avatar/component.cjs +121 -0
- package/build/components/collaborators-presence/avatar/component.cjs.map +7 -0
- package/build/components/collaborators-presence/avatar/index.cjs +37 -0
- package/build/components/collaborators-presence/avatar/index.cjs.map +7 -0
- package/build/components/collaborators-presence/avatar/types.cjs +19 -0
- package/build/components/collaborators-presence/avatar/types.cjs.map +7 -0
- package/build/components/collaborators-presence/avatar/use-image-loading-status.cjs +44 -0
- package/build/components/collaborators-presence/avatar/use-image-loading-status.cjs.map +7 -0
- package/build/components/collaborators-presence/avatar-group/component.cjs +78 -0
- package/build/components/collaborators-presence/avatar-group/component.cjs.map +7 -0
- package/build/components/collaborators-presence/avatar-group/index.cjs +37 -0
- package/build/components/collaborators-presence/avatar-group/index.cjs.map +7 -0
- package/build/components/collaborators-presence/avatar-group/types.cjs +19 -0
- package/build/components/collaborators-presence/avatar-group/types.cjs.map +7 -0
- package/build/components/collaborators-presence/index.cjs +66 -19
- package/build/components/collaborators-presence/index.cjs.map +3 -3
- package/build/components/collaborators-presence/list.cjs +60 -38
- package/build/components/collaborators-presence/list.cjs.map +3 -3
- package/build/components/collaborators-presence/use-collaborator-notifications.cjs +149 -0
- package/build/components/collaborators-presence/use-collaborator-notifications.cjs.map +7 -0
- package/build/components/editor-interface/index.cjs +11 -6
- package/build/components/editor-interface/index.cjs.map +2 -2
- package/build/components/inserter-sidebar/index.cjs +2 -1
- package/build/components/inserter-sidebar/index.cjs.map +2 -2
- package/build/components/more-menu/copy-content-menu-item.cjs +19 -2
- package/build/components/more-menu/copy-content-menu-item.cjs.map +3 -3
- package/build/components/post-last-revision/index.cjs +27 -6
- package/build/components/post-last-revision/index.cjs.map +2 -2
- package/build/components/post-locked-modal/index.cjs +49 -17
- package/build/components/post-locked-modal/index.cjs.map +3 -3
- package/build/components/post-revisions-preview/block-diff.cjs +130 -34
- package/build/components/post-revisions-preview/block-diff.cjs.map +2 -2
- package/build/components/post-revisions-preview/diff-markers.cjs +6 -5
- package/build/components/post-revisions-preview/diff-markers.cjs.map +2 -2
- package/build/components/post-revisions-preview/revisions-canvas.cjs +16 -60
- package/build/components/post-revisions-preview/revisions-canvas.cjs.map +3 -3
- package/build/components/post-revisions-preview/revisions-slider.cjs +102 -39
- package/build/components/post-revisions-preview/revisions-slider.cjs.map +3 -3
- package/build/components/post-text-editor/index.cjs +20 -5
- package/build/components/post-text-editor/index.cjs.map +3 -3
- package/build/components/preferences-modal/index.cjs +36 -4
- package/build/components/preferences-modal/index.cjs.map +2 -2
- package/build/components/provider/disable-non-page-content-blocks.cjs +31 -28
- package/build/components/provider/disable-non-page-content-blocks.cjs.map +3 -3
- package/build/components/provider/index.cjs +17 -5
- package/build/components/provider/index.cjs.map +2 -2
- package/build/components/provider/use-block-editor-settings.cjs +20 -4
- package/build/components/provider/use-block-editor-settings.cjs.map +3 -3
- package/build/components/provider/{use-post-content-blocks.cjs → use-post-content-block-types.cjs} +8 -19
- package/build/components/provider/use-post-content-block-types.cjs.map +7 -0
- package/build/components/provider/use-revision-blocks.cjs +106 -0
- package/build/components/provider/use-revision-blocks.cjs.map +7 -0
- package/build/components/revision-block-diff/index.cjs +61 -0
- package/build/components/revision-block-diff/index.cjs.map +7 -0
- package/build/components/revision-diff-panel/index.cjs +68 -0
- package/build/components/revision-diff-panel/index.cjs.map +7 -0
- package/build/components/revision-fields-diff/index.cjs +96 -0
- package/build/components/revision-fields-diff/index.cjs.map +7 -0
- package/build/components/sidebar/header.cjs +1 -1
- package/build/components/sidebar/header.cjs.map +2 -2
- package/build/components/sidebar/index.cjs +7 -1
- package/build/components/sidebar/index.cjs.map +3 -3
- package/build/components/style-book/index.cjs +4 -3
- package/build/components/style-book/index.cjs.map +2 -2
- package/build/components/sync-connection-error-modal/index.cjs +187 -0
- package/build/components/sync-connection-error-modal/index.cjs.map +7 -0
- package/build/components/sync-connection-error-modal/use-retry-countdown.cjs +84 -0
- package/build/components/sync-connection-error-modal/use-retry-countdown.cjs.map +7 -0
- package/build/components/template-content-panel/index.cjs +35 -31
- package/build/components/template-content-panel/index.cjs.map +3 -3
- package/build/components/template-part-menu-items/convert-to-regular.cjs +54 -11
- package/build/components/template-part-menu-items/convert-to-regular.cjs.map +3 -3
- package/build/components/visual-editor/index.cjs +6 -15
- package/build/components/visual-editor/index.cjs.map +2 -2
- package/build/store/private-actions.cjs +46 -2
- package/build/store/private-actions.cjs.map +2 -2
- package/build/store/private-selectors.cjs +154 -29
- package/build/store/private-selectors.cjs.map +2 -2
- package/build/store/reducer.cjs +27 -0
- package/build/store/reducer.cjs.map +2 -2
- package/build/store/selectors.cjs +0 -14
- package/build/store/selectors.cjs.map +2 -2
- package/build/utils/media-finalize/index.cjs +43 -0
- package/build/utils/media-finalize/index.cjs.map +7 -0
- package/build/utils/media-upload/on-success.cjs +46 -0
- package/build/utils/media-upload/on-success.cjs.map +7 -0
- package/build/utils/sync-error-messages.cjs +32 -15
- package/build/utils/sync-error-messages.cjs.map +3 -3
- package/build-module/components/collab-sidebar/add-comment.mjs +0 -3
- package/build-module/components/collab-sidebar/add-comment.mjs.map +2 -2
- package/build-module/components/collab-sidebar/comments.mjs +0 -3
- package/build-module/components/collab-sidebar/comments.mjs.map +2 -2
- package/build-module/components/collab-sidebar/index.mjs +7 -4
- package/build-module/components/collab-sidebar/index.mjs.map +2 -2
- package/build-module/components/collab-sidebar/utils.mjs +13 -15
- package/build-module/components/collab-sidebar/utils.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/avatar-iframe-styles.mjs +128 -0
- package/build-module/components/collaborators-overlay/avatar-iframe-styles.mjs.map +7 -0
- package/build-module/components/collaborators-overlay/collaborator-styles.mjs +25 -1
- package/build-module/components/collaborators-overlay/collaborator-styles.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/compute-selection.mjs +166 -0
- package/build-module/components/collaborators-overlay/compute-selection.mjs.map +7 -0
- package/build-module/components/collaborators-overlay/cursor-dom-utils.mjs +213 -0
- package/build-module/components/collaborators-overlay/cursor-dom-utils.mjs.map +7 -0
- package/build-module/components/collaborators-overlay/cursor-registry.mjs +61 -0
- package/build-module/components/collaborators-overlay/cursor-registry.mjs.map +7 -0
- package/build-module/components/collaborators-overlay/index.mjs +7 -2
- package/build-module/components/collaborators-overlay/index.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/overlay-iframe-styles.mjs +130 -0
- package/build-module/components/collaborators-overlay/overlay-iframe-styles.mjs.map +7 -0
- package/build-module/components/collaborators-overlay/overlay.mjs +132 -230
- package/build-module/components/collaborators-overlay/overlay.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/timing-utils.mjs +21 -0
- package/build-module/components/collaborators-overlay/timing-utils.mjs.map +7 -0
- package/build-module/components/collaborators-overlay/use-block-highlighting.mjs +93 -45
- package/build-module/components/collaborators-overlay/use-block-highlighting.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/use-debounced-recompute.mjs +24 -0
- package/build-module/components/collaborators-overlay/use-debounced-recompute.mjs.map +7 -0
- package/build-module/components/collaborators-overlay/use-render-cursors.mjs +83 -176
- package/build-module/components/collaborators-overlay/use-render-cursors.mjs.map +2 -2
- package/build-module/components/collaborators-presence/avatar/component.mjs +90 -0
- package/build-module/components/collaborators-presence/avatar/component.mjs.map +7 -0
- package/build-module/components/collaborators-presence/avatar/index.mjs +6 -0
- package/build-module/components/collaborators-presence/avatar/index.mjs.map +7 -0
- package/build-module/components/collaborators-presence/avatar/types.mjs +1 -0
- package/build-module/components/collaborators-presence/avatar/types.mjs.map +7 -0
- package/build-module/components/collaborators-presence/avatar/use-image-loading-status.mjs +19 -0
- package/build-module/components/collaborators-presence/avatar/use-image-loading-status.mjs.map +7 -0
- package/build-module/components/collaborators-presence/avatar-group/component.mjs +47 -0
- package/build-module/components/collaborators-presence/avatar-group/component.mjs.map +7 -0
- package/build-module/components/collaborators-presence/avatar-group/index.mjs +6 -0
- package/build-module/components/collaborators-presence/avatar-group/index.mjs.map +7 -0
- package/build-module/components/collaborators-presence/avatar-group/types.mjs +1 -0
- package/build-module/components/collaborators-presence/avatar-group/types.mjs.map +7 -0
- package/build-module/components/collaborators-presence/index.mjs +57 -23
- package/build-module/components/collaborators-presence/index.mjs.map +2 -2
- package/build-module/components/collaborators-presence/list.mjs +52 -44
- package/build-module/components/collaborators-presence/list.mjs.map +2 -2
- package/build-module/components/collaborators-presence/use-collaborator-notifications.mjs +126 -0
- package/build-module/components/collaborators-presence/use-collaborator-notifications.mjs.map +7 -0
- package/build-module/components/editor-interface/index.mjs +12 -7
- package/build-module/components/editor-interface/index.mjs.map +2 -2
- package/build-module/components/inserter-sidebar/index.mjs +2 -1
- package/build-module/components/inserter-sidebar/index.mjs.map +2 -2
- package/build-module/components/more-menu/copy-content-menu-item.mjs +19 -2
- package/build-module/components/more-menu/copy-content-menu-item.mjs.map +2 -2
- package/build-module/components/post-last-revision/index.mjs +27 -6
- package/build-module/components/post-last-revision/index.mjs.map +2 -2
- package/build-module/components/post-locked-modal/index.mjs +49 -17
- package/build-module/components/post-locked-modal/index.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/block-diff.mjs +130 -34
- package/build-module/components/post-revisions-preview/block-diff.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/diff-markers.mjs +6 -5
- package/build-module/components/post-revisions-preview/diff-markers.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/revisions-canvas.mjs +18 -65
- package/build-module/components/post-revisions-preview/revisions-canvas.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/revisions-slider.mjs +110 -42
- package/build-module/components/post-revisions-preview/revisions-slider.mjs.map +2 -2
- package/build-module/components/post-text-editor/index.mjs +20 -5
- package/build-module/components/post-text-editor/index.mjs.map +2 -2
- package/build-module/components/preferences-modal/index.mjs +36 -4
- package/build-module/components/preferences-modal/index.mjs.map +2 -2
- package/build-module/components/provider/disable-non-page-content-blocks.mjs +31 -28
- package/build-module/components/provider/disable-non-page-content-blocks.mjs.map +2 -2
- package/build-module/components/provider/index.mjs +17 -5
- package/build-module/components/provider/index.mjs.map +2 -2
- package/build-module/components/provider/use-block-editor-settings.mjs +20 -4
- package/build-module/components/provider/use-block-editor-settings.mjs.map +2 -2
- package/build-module/components/provider/use-post-content-block-types.mjs +23 -0
- package/build-module/components/provider/use-post-content-block-types.mjs.map +7 -0
- package/build-module/components/provider/use-revision-blocks.mjs +81 -0
- package/build-module/components/provider/use-revision-blocks.mjs.map +7 -0
- package/build-module/components/revision-block-diff/index.mjs +30 -0
- package/build-module/components/revision-block-diff/index.mjs.map +7 -0
- package/build-module/components/revision-diff-panel/index.mjs +37 -0
- package/build-module/components/revision-diff-panel/index.mjs.map +7 -0
- package/build-module/components/revision-fields-diff/index.mjs +65 -0
- package/build-module/components/revision-fields-diff/index.mjs.map +7 -0
- package/build-module/components/sidebar/header.mjs +1 -1
- package/build-module/components/sidebar/header.mjs.map +2 -2
- package/build-module/components/sidebar/index.mjs +7 -1
- package/build-module/components/sidebar/index.mjs.map +2 -2
- package/build-module/components/style-book/index.mjs +4 -3
- package/build-module/components/style-book/index.mjs.map +2 -2
- package/build-module/components/sync-connection-error-modal/index.mjs +170 -0
- package/build-module/components/sync-connection-error-modal/index.mjs.map +7 -0
- package/build-module/components/sync-connection-error-modal/use-retry-countdown.mjs +59 -0
- package/build-module/components/sync-connection-error-modal/use-retry-countdown.mjs.map +7 -0
- package/build-module/components/template-content-panel/index.mjs +25 -31
- package/build-module/components/template-content-panel/index.mjs.map +2 -2
- package/build-module/components/template-part-menu-items/convert-to-regular.mjs +60 -14
- package/build-module/components/template-part-menu-items/convert-to-regular.mjs.map +2 -2
- package/build-module/components/visual-editor/index.mjs +6 -15
- package/build-module/components/visual-editor/index.mjs.map +2 -2
- package/build-module/store/private-actions.mjs +44 -2
- package/build-module/store/private-actions.mjs.map +2 -2
- package/build-module/store/private-selectors.mjs +153 -29
- package/build-module/store/private-selectors.mjs.map +2 -2
- package/build-module/store/reducer.mjs +25 -0
- package/build-module/store/reducer.mjs.map +2 -2
- package/build-module/store/selectors.mjs +0 -13
- package/build-module/store/selectors.mjs.map +2 -2
- package/build-module/utils/media-finalize/index.mjs +12 -0
- package/build-module/utils/media-finalize/index.mjs.map +7 -0
- package/build-module/utils/media-upload/on-success.mjs +25 -0
- package/build-module/utils/media-upload/on-success.mjs.map +7 -0
- package/build-module/utils/sync-error-messages.mjs +27 -15
- package/build-module/utils/sync-error-messages.mjs.map +3 -3
- package/build-style/style-rtl.css +296 -121
- package/build-style/style.css +296 -121
- package/build-types/components/autocompleters/link.d.ts +8 -0
- package/build-types/components/autocompleters/link.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/add-comment.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/add-note-menu-item.d.ts +5 -0
- package/build-types/components/collab-sidebar/add-note-menu-item.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/add-note.d.ts +6 -0
- package/build-types/components/collab-sidebar/add-note.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/board-store.d.ts +9 -0
- package/build-types/components/collab-sidebar/board-store.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/floating-container.d.ts +8 -0
- package/build-types/components/collab-sidebar/floating-container.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/index.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/note-byline.d.ts +10 -0
- package/build-types/components/collab-sidebar/note-byline.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/note-card.d.ts +8 -0
- package/build-types/components/collab-sidebar/note-card.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/note-form.d.ts +7 -0
- package/build-types/components/collab-sidebar/note-form.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/note-indicator-toolbar.d.ts +5 -0
- package/build-types/components/collab-sidebar/note-indicator-toolbar.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/note-thread.d.ts +11 -0
- package/build-types/components/collab-sidebar/note-thread.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/note.d.ts +9 -0
- package/build-types/components/collab-sidebar/note.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/notes.d.ts +7 -0
- package/build-types/components/collab-sidebar/notes.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/utils.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/avatar-iframe-styles.d.ts +11 -0
- package/build-types/components/collaborators-overlay/avatar-iframe-styles.d.ts.map +1 -0
- package/build-types/components/collaborators-overlay/collaborator-styles.d.ts +17 -2
- package/build-types/components/collaborators-overlay/collaborator-styles.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/compute-selection.d.ts +24 -0
- package/build-types/components/collaborators-overlay/compute-selection.d.ts.map +1 -0
- package/build-types/components/collaborators-overlay/cursor-dom-utils.d.ts +72 -0
- package/build-types/components/collaborators-overlay/cursor-dom-utils.d.ts.map +1 -0
- package/build-types/components/collaborators-overlay/cursor-registry.d.ts +36 -0
- package/build-types/components/collaborators-overlay/cursor-registry.d.ts.map +1 -0
- package/build-types/components/collaborators-overlay/index.d.ts +7 -4
- package/build-types/components/collaborators-overlay/index.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/overlay-iframe-styles.d.ts +6 -0
- package/build-types/components/collaborators-overlay/overlay-iframe-styles.d.ts.map +1 -0
- package/build-types/components/collaborators-overlay/overlay.d.ts +4 -1
- package/build-types/components/collaborators-overlay/overlay.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/timing-utils.d.ts +11 -0
- package/build-types/components/collaborators-overlay/timing-utils.d.ts.map +1 -0
- package/build-types/components/collaborators-overlay/use-block-highlighting.d.ts +21 -5
- package/build-types/components/collaborators-overlay/use-block-highlighting.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/use-debounced-recompute.d.ts +10 -0
- package/build-types/components/collaborators-overlay/use-debounced-recompute.d.ts.map +1 -0
- package/build-types/components/collaborators-overlay/use-render-cursors.d.ts +6 -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 +7 -0
- package/build-types/components/collaborators-presence/avatar/component.d.ts.map +1 -0
- package/build-types/components/collaborators-presence/avatar/index.d.ts +3 -0
- package/build-types/components/collaborators-presence/avatar/index.d.ts.map +1 -0
- package/build-types/components/collaborators-presence/avatar/types.d.ts +66 -0
- package/build-types/components/collaborators-presence/avatar/types.d.ts.map +1 -0
- package/build-types/components/collaborators-presence/avatar/use-image-loading-status.d.ts +17 -0
- package/build-types/components/collaborators-presence/avatar/use-image-loading-status.d.ts.map +1 -0
- package/build-types/components/collaborators-presence/avatar-group/component.d.ts +7 -0
- package/build-types/components/collaborators-presence/avatar-group/component.d.ts.map +1 -0
- package/build-types/components/collaborators-presence/avatar-group/index.d.ts +3 -0
- package/build-types/components/collaborators-presence/avatar-group/index.d.ts.map +1 -0
- package/build-types/components/collaborators-presence/avatar-group/types.d.ts +14 -0
- package/build-types/components/collaborators-presence/avatar-group/types.d.ts.map +1 -0
- package/build-types/components/collaborators-presence/index.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/list.d.ts +6 -2
- package/build-types/components/collaborators-presence/list.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/use-collaborator-notifications.d.ts +9 -0
- package/build-types/components/collaborators-presence/use-collaborator-notifications.d.ts.map +1 -0
- package/build-types/components/editor-interface/index.d.ts.map +1 -1
- package/build-types/components/inserter-sidebar/index.d.ts.map +1 -1
- package/build-types/components/media/media-editor-modal.d.ts +15 -0
- package/build-types/components/media/media-editor-modal.d.ts.map +1 -0
- package/build-types/components/more-menu/copy-content-menu-item.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-revisions-panel/index.d.ts +2 -0
- package/build-types/components/post-revisions-panel/index.d.ts.map +1 -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-preview/revisions-canvas.d.ts +2 -5
- package/build-types/components/post-revisions-preview/revisions-canvas.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/revisions-slider.d.ts +1 -1
- package/build-types/components/post-revisions-preview/revisions-slider.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/disable-non-page-content-blocks.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/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/provider/use-post-content-block-types.d.ts +9 -0
- package/build-types/components/provider/use-post-content-block-types.d.ts.map +1 -0
- package/build-types/components/provider/use-revision-blocks.d.ts +10 -0
- package/build-types/components/provider/use-revision-blocks.d.ts.map +1 -0
- package/build-types/components/revision-block-diff/index.d.ts +6 -0
- package/build-types/components/revision-block-diff/index.d.ts.map +1 -0
- package/build-types/components/revision-diff-panel/index.d.ts +14 -0
- package/build-types/components/revision-diff-panel/index.d.ts.map +1 -0
- package/build-types/components/revision-fields-diff/index.d.ts +6 -0
- package/build-types/components/revision-fields-diff/index.d.ts.map +1 -0
- package/build-types/components/sidebar/dataform-post-summary.d.ts +4 -0
- package/build-types/components/sidebar/dataform-post-summary.d.ts.map +1 -0
- package/build-types/components/sidebar/index.d.ts.map +1 -1
- package/build-types/components/sidebar/post-revision-summary.d.ts +2 -0
- package/build-types/components/sidebar/post-revision-summary.d.ts.map +1 -0
- package/build-types/components/style-book/index.d.ts +2 -1
- package/build-types/components/style-book/index.d.ts.map +1 -1
- package/build-types/components/sync-connection-error-modal/index.d.ts +8 -0
- package/build-types/components/sync-connection-error-modal/index.d.ts.map +1 -0
- package/build-types/components/sync-connection-error-modal/use-retry-countdown.d.ts +11 -0
- package/build-types/components/sync-connection-error-modal/use-retry-countdown.d.ts.map +1 -0
- package/build-types/components/template-actions-panel/block-theme-content.d.ts +2 -0
- package/build-types/components/template-actions-panel/block-theme-content.d.ts.map +1 -0
- package/build-types/components/template-actions-panel/classic-theme-content.d.ts +2 -0
- package/build-types/components/template-actions-panel/classic-theme-content.d.ts.map +1 -0
- package/build-types/components/template-actions-panel/index.d.ts +2 -0
- package/build-types/components/template-actions-panel/index.d.ts.map +1 -0
- package/build-types/components/template-content-panel/index.d.ts.map +1 -1
- package/build-types/components/template-part-menu-items/convert-to-regular.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/components/visual-editor/index.d.ts.map +1 -1
- package/build-types/store/private-actions.d.ts +12 -0
- package/build-types/store/private-actions.d.ts.map +1 -1
- package/build-types/store/private-selectors.d.ts +45 -0
- package/build-types/store/private-selectors.d.ts.map +1 -1
- package/build-types/store/reducer.d.ts +21 -0
- package/build-types/store/reducer.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/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 +2 -0
- package/build-types/utils/media-finalize/index.d.ts.map +1 -0
- package/build-types/utils/media-upload/on-success.d.ts +9 -0
- package/build-types/utils/media-upload/on-success.d.ts.map +1 -0
- package/build-types/utils/sync-error-messages.d.ts +17 -3
- package/build-types/utils/sync-error-messages.d.ts.map +1 -1
- package/package.json +45 -44
- package/src/components/collab-sidebar/add-comment.js +0 -4
- package/src/components/collab-sidebar/comments.js +0 -5
- package/src/components/collab-sidebar/index.js +7 -4
- package/src/components/collab-sidebar/utils.js +9 -10
- package/src/components/collaborators-overlay/avatar-iframe-styles.ts +134 -0
- package/src/components/collaborators-overlay/collaborator-styles.ts +43 -2
- package/src/components/collaborators-overlay/compute-selection.ts +315 -0
- package/src/components/collaborators-overlay/cursor-dom-utils.ts +382 -0
- package/src/components/collaborators-overlay/cursor-registry.ts +96 -0
- package/src/components/collaborators-overlay/index.tsx +12 -4
- package/src/components/collaborators-overlay/overlay-iframe-styles.ts +131 -0
- package/src/components/collaborators-overlay/overlay.tsx +145 -223
- package/src/components/collaborators-overlay/timing-utils.ts +30 -0
- package/src/components/collaborators-overlay/use-block-highlighting.ts +152 -64
- package/src/components/collaborators-overlay/use-debounced-recompute.ts +32 -0
- package/src/components/collaborators-overlay/use-render-cursors.ts +120 -282
- package/src/components/collaborators-presence/avatar/component.tsx +123 -0
- package/src/components/collaborators-presence/avatar/index.ts +2 -0
- package/src/components/collaborators-presence/avatar/styles.scss +184 -0
- package/src/components/collaborators-presence/avatar/test/index.tsx +389 -0
- package/src/components/collaborators-presence/avatar/types.ts +66 -0
- package/src/components/collaborators-presence/avatar/use-image-loading-status.ts +36 -0
- package/src/components/collaborators-presence/avatar-group/component.tsx +55 -0
- package/src/components/collaborators-presence/avatar-group/index.ts +2 -0
- package/src/components/collaborators-presence/avatar-group/styles.scss +33 -0
- package/src/components/collaborators-presence/avatar-group/test/index.tsx +139 -0
- package/src/components/collaborators-presence/avatar-group/types.ts +13 -0
- package/src/components/collaborators-presence/index.tsx +43 -12
- package/src/components/collaborators-presence/list.tsx +68 -40
- package/src/components/collaborators-presence/styles/collaborators-list.scss +26 -19
- package/src/components/collaborators-presence/styles/collaborators-presence.scss +6 -2
- package/src/components/collaborators-presence/test/use-collaborator-notifications.ts +397 -0
- package/src/components/collaborators-presence/use-collaborator-notifications.ts +203 -0
- package/src/components/document-bar/style.scss +1 -1
- package/src/components/editor-interface/index.js +13 -6
- package/src/components/inserter-sidebar/index.js +4 -1
- package/src/components/more-menu/copy-content-menu-item.js +20 -2
- package/src/components/post-last-revision/index.js +35 -6
- package/src/components/post-last-revision/style.scss +0 -3
- package/src/components/post-locked-modal/index.js +69 -25
- package/src/components/post-panel-row/style.scss +1 -0
- package/src/components/post-revisions-preview/block-diff.js +224 -61
- package/src/components/post-revisions-preview/diff-markers.js +15 -12
- package/src/components/post-revisions-preview/revisions-canvas.js +23 -86
- package/src/components/post-revisions-preview/revisions-slider.js +136 -63
- package/src/components/post-revisions-preview/style.scss +3 -3
- package/src/components/post-revisions-preview/test/block-diff.js +202 -35
- package/src/components/post-text-editor/index.js +25 -6
- package/src/components/preferences-modal/index.js +37 -7
- package/src/components/provider/disable-non-page-content-blocks.js +42 -40
- package/src/components/provider/index.js +20 -2
- package/src/components/provider/use-block-editor-settings.js +21 -1
- package/src/components/provider/use-post-content-block-types.js +30 -0
- package/src/components/provider/use-revision-blocks.js +105 -0
- package/src/components/revision-block-diff/index.js +39 -0
- package/src/components/revision-diff-panel/index.js +59 -0
- package/src/components/revision-diff-panel/style.scss +13 -0
- package/src/components/revision-fields-diff/index.js +91 -0
- package/src/components/sidebar/header.js +1 -1
- package/src/components/sidebar/index.js +4 -0
- package/src/components/style-book/index.js +4 -2
- package/src/components/sync-connection-error-modal/index.tsx +253 -0
- package/src/components/sync-connection-error-modal/style.scss +14 -0
- package/src/components/sync-connection-error-modal/use-retry-countdown.ts +93 -0
- package/src/components/template-content-panel/index.js +30 -38
- package/src/components/template-part-menu-items/convert-to-regular.js +74 -12
- package/src/components/visual-editor/index.js +6 -23
- package/src/store/private-actions.js +70 -1
- package/src/store/private-selectors.js +215 -37
- package/src/store/reducer.js +41 -0
- package/src/store/selectors.js +0 -19
- package/src/style.scss +4 -1
- package/src/utils/media-finalize/index.js +11 -0
- package/src/utils/media-finalize/test/index.js +34 -0
- package/src/utils/media-upload/on-success.js +34 -0
- package/src/utils/sync-error-messages.ts +72 -0
- package/src/utils/test/sync-error-messages.js +34 -0
- package/build/components/provider/use-post-content-blocks.cjs.map +0 -7
- package/build/components/sync-connection-modal/index.cjs +0 -130
- package/build/components/sync-connection-modal/index.cjs.map +0 -7
- package/build-module/components/provider/use-post-content-blocks.mjs +0 -34
- package/build-module/components/provider/use-post-content-blocks.mjs.map +0 -7
- package/build-module/components/sync-connection-modal/index.mjs +0 -114
- package/build-module/components/sync-connection-modal/index.mjs.map +0 -7
- package/build-types/components/provider/use-post-content-blocks.d.ts +0 -2
- package/build-types/components/provider/use-post-content-blocks.d.ts.map +0 -1
- package/build-types/components/sync-connection-modal/index.d.ts +0 -8
- package/build-types/components/sync-connection-modal/index.d.ts.map +0 -1
- package/src/components/provider/use-post-content-blocks.js +0 -42
- package/src/components/sync-connection-modal/index.js +0 -140
- package/src/components/sync-connection-modal/style.scss +0 -11
- package/src/utils/sync-error-messages.js +0 -53
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/utils/sync-error-messages.
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Default error messages for known error codes.\n */\nconst ERROR_MESSAGES = {\n\t
|
|
5
|
-
"mappings": ";
|
|
3
|
+
"sources": ["../../src/utils/sync-error-messages.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { type ConnectionError } from '@wordpress/core-data';\nimport { __ } from '@wordpress/i18n';\n\n// These error codes are defined in the sync package:\n// packages/sync/src/errors.ts\nexport const AUTHENTICATION_FAILED = 'authentication-failed';\nexport const CONNECTION_EXPIRED = 'connection-expired';\nexport const CONNECTION_LIMIT_EXCEEDED = 'connection-limit-exceeded';\nexport const DOCUMENT_SIZE_LIMIT_EXCEEDED = 'document-size-limit-exceeded';\nexport const UNKNOWN_ERROR = 'unknown-error';\n\ninterface ConnectionErrorMessages {\n\tdescription: string;\n\ttitle: string;\n}\n\n/**\n * Default error messages for known error codes.\n */\nconst ERROR_MESSAGES: Record< string, ConnectionErrorMessages > = {\n\t[ AUTHENTICATION_FAILED ]: {\n\t\ttitle: __( 'Unable to connect' ),\n\t\tdescription: __(\n\t\t\t\"Real-time collaboration couldn't verify your permissions. \" +\n\t\t\t\t'Check that you have access to edit this post or contact your site administrator.'\n\t\t),\n\t},\n\t[ CONNECTION_EXPIRED ]: {\n\t\ttitle: __( 'Connection expired' ),\n\t\tdescription: __(\n\t\t\t'Your connection to real-time collaboration has timed out. ' +\n\t\t\t\t'Editing is paused to prevent conflicts with other editors.'\n\t\t),\n\t},\n\t[ CONNECTION_LIMIT_EXCEEDED ]: {\n\t\ttitle: __( 'Too many editors connected' ),\n\t\tdescription: __(\n\t\t\t'Real-time collaboration has reached its connection limit. ' +\n\t\t\t\t'Try again later or contact your site administrator.'\n\t\t),\n\t},\n\t// DOCUMENT_SIZE_LIMIT_EXCEEDED is not included here because it results in\n\t// collaboration being disabled entirely.\n\t[ UNKNOWN_ERROR ]: {\n\t\ttitle: __( 'Connection lost' ),\n\t\tdescription: __(\n\t\t\t'The connection to real-time collaboration was interrupted. ' +\n\t\t\t\t'Editing is paused to prevent conflicts with other editors.'\n\t\t),\n\t},\n};\n\n/**\n * Get user-facing title and description from a sync connection error.\n *\n * Provides default messages based on error.code.\n *\n * @param error - Connection error.\n * @return Object with title, description, and canRetry flag.\n */\nexport function getSyncErrorMessages(\n\terror?: ConnectionError\n): ConnectionErrorMessages {\n\tif ( error?.code && ERROR_MESSAGES[ error?.code ] ) {\n\t\treturn ERROR_MESSAGES[ error.code ];\n\t}\n\n\treturn ERROR_MESSAGES[ UNKNOWN_ERROR ];\n}\n"],
|
|
5
|
+
"mappings": ";AAIA,SAAS,UAAU;AAIZ,IAAM,wBAAwB;AAC9B,IAAM,qBAAqB;AAC3B,IAAM,4BAA4B;AAClC,IAAM,+BAA+B;AACrC,IAAM,gBAAgB;AAU7B,IAAM,iBAA4D;AAAA,EACjE,CAAE,qBAAsB,GAAG;AAAA,IAC1B,OAAO,GAAI,mBAAoB;AAAA,IAC/B,aAAa;AAAA,MACZ;AAAA,IAED;AAAA,EACD;AAAA,EACA,CAAE,kBAAmB,GAAG;AAAA,IACvB,OAAO,GAAI,oBAAqB;AAAA,IAChC,aAAa;AAAA,MACZ;AAAA,IAED;AAAA,EACD;AAAA,EACA,CAAE,yBAA0B,GAAG;AAAA,IAC9B,OAAO,GAAI,4BAA6B;AAAA,IACxC,aAAa;AAAA,MACZ;AAAA,IAED;AAAA,EACD;AAAA;AAAA;AAAA,EAGA,CAAE,aAAc,GAAG;AAAA,IAClB,OAAO,GAAI,iBAAkB;AAAA,IAC7B,aAAa;AAAA,MACZ;AAAA,IAED;AAAA,EACD;AACD;AAUO,SAAS,qBACf,OAC0B;AAC1B,MAAK,OAAO,QAAQ,eAAgB,OAAO,IAAK,GAAI;AACnD,WAAO,eAAgB,MAAM,IAAK;AAAA,EACnC;AAEA,SAAO,eAAgB,aAAc;AACtC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -107,100 +107,11 @@
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
/**
|
|
111
|
-
* Colors
|
|
112
|
-
*/
|
|
113
|
-
/**
|
|
114
|
-
* SCSS Variables.
|
|
115
|
-
*
|
|
116
|
-
* Please use variables from this sheet to ensure consistency across the UI.
|
|
117
|
-
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
118
|
-
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
119
|
-
*/
|
|
120
|
-
/**
|
|
121
|
-
* Fonts & basic variables.
|
|
122
|
-
*/
|
|
123
|
-
/**
|
|
124
|
-
* Typography
|
|
125
|
-
*/
|
|
126
|
-
/**
|
|
127
|
-
* Grid System.
|
|
128
|
-
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
129
|
-
*/
|
|
130
|
-
/**
|
|
131
|
-
* Radius scale.
|
|
132
|
-
*/
|
|
133
|
-
/**
|
|
134
|
-
* Elevation scale.
|
|
135
|
-
*/
|
|
136
|
-
/**
|
|
137
|
-
* Dimensions.
|
|
138
|
-
*/
|
|
139
|
-
/**
|
|
140
|
-
* Mobile specific styles
|
|
141
|
-
*/
|
|
142
|
-
/**
|
|
143
|
-
* Editor styles.
|
|
144
|
-
*/
|
|
145
|
-
/**
|
|
146
|
-
* Block & Editor UI.
|
|
147
|
-
*/
|
|
148
|
-
/**
|
|
149
|
-
* Block paddings.
|
|
150
|
-
*/
|
|
151
|
-
/**
|
|
152
|
-
* React Native specific.
|
|
153
|
-
* These variables do not appear to be used anywhere else.
|
|
154
|
-
*/
|
|
155
|
-
/**
|
|
156
|
-
* Typography
|
|
157
|
-
*/
|
|
158
|
-
/**
|
|
159
|
-
* Breakpoints & Media Queries
|
|
160
|
-
*/
|
|
161
|
-
/**
|
|
162
|
-
* Converts a hex value into the rgb equivalent.
|
|
163
|
-
*
|
|
164
|
-
* @param {string} hex - the hexadecimal value to convert
|
|
165
|
-
* @return {string} comma separated rgb values
|
|
166
|
-
*/
|
|
167
|
-
/**
|
|
168
|
-
* Long content fade mixin
|
|
169
|
-
*
|
|
170
|
-
* Creates a fading overlay to signify that the content is longer
|
|
171
|
-
* than the space allows.
|
|
172
|
-
*/
|
|
173
|
-
/**
|
|
174
|
-
* Breakpoint mixins
|
|
175
|
-
*/
|
|
176
|
-
/**
|
|
177
|
-
* Focus styles.
|
|
178
|
-
*/
|
|
179
|
-
/**
|
|
180
|
-
* Applies editor left position to the selector passed as argument
|
|
181
|
-
*/
|
|
182
|
-
/**
|
|
183
|
-
* Styles that are reused verbatim in a few places
|
|
184
|
-
*/
|
|
185
|
-
/**
|
|
186
|
-
* Allows users to opt-out of animations via OS-level preferences.
|
|
187
|
-
*/
|
|
188
|
-
/**
|
|
189
|
-
* Reset default styles for JavaScript UI based pages.
|
|
190
|
-
* This is a WP-admin agnostic reset
|
|
191
|
-
*/
|
|
192
|
-
/**
|
|
193
|
-
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
194
|
-
*/
|
|
195
|
-
/**
|
|
196
|
-
* Creates a checkerboard pattern background to indicate transparency.
|
|
197
|
-
* @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
|
|
198
|
-
*/
|
|
199
110
|
.admin-ui-page {
|
|
200
111
|
display: flex;
|
|
201
112
|
height: 100%;
|
|
202
|
-
background-color: #
|
|
203
|
-
color: #
|
|
113
|
+
background-color: var(--wpds-color-bg-surface-neutral-strong, #ffffff);
|
|
114
|
+
color: var(--wpds-color-fg-content-neutral, #1e1e1e);
|
|
204
115
|
position: relative;
|
|
205
116
|
z-index: 1;
|
|
206
117
|
flex-flow: column;
|
|
@@ -208,25 +119,34 @@
|
|
|
208
119
|
}
|
|
209
120
|
|
|
210
121
|
.admin-ui-page__header {
|
|
211
|
-
padding: 16px 24px;
|
|
212
|
-
border-bottom: 1px solid #
|
|
213
|
-
background: #
|
|
122
|
+
padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px);
|
|
123
|
+
border-bottom: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-surface-neutral-weak, #e0e0e0);
|
|
124
|
+
background: var(--wpds-color-bg-surface-neutral-strong, #ffffff);
|
|
214
125
|
position: sticky;
|
|
215
126
|
top: 0;
|
|
216
127
|
z-index: 1;
|
|
217
128
|
}
|
|
218
129
|
|
|
130
|
+
.admin-ui-page__header-title {
|
|
131
|
+
font-family: var(--wpds-font-family-heading, -apple-system, system-ui, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif);
|
|
132
|
+
font-size: var(--wpds-font-size-xl, 20px);
|
|
133
|
+
font-weight: var(--wpds-font-weight-medium, 499);
|
|
134
|
+
line-height: var(--wpds-font-line-height-xl, 32px);
|
|
135
|
+
margin: 0;
|
|
136
|
+
overflow: hidden;
|
|
137
|
+
text-overflow: ellipsis;
|
|
138
|
+
white-space: nowrap;
|
|
139
|
+
}
|
|
140
|
+
|
|
219
141
|
.admin-ui-page__sidebar-toggle-slot:empty {
|
|
220
142
|
display: none;
|
|
221
143
|
}
|
|
222
144
|
|
|
223
145
|
.admin-ui-page__header-subtitle {
|
|
224
|
-
padding-block-end:
|
|
225
|
-
color: #
|
|
226
|
-
font-
|
|
227
|
-
|
|
228
|
-
font-size: 13px;
|
|
229
|
-
line-height: 20px;
|
|
146
|
+
padding-block-end: var(--wpds-dimension-padding-xs, 4px);
|
|
147
|
+
color: var(--wpds-color-fg-content-neutral-weak, #6d6d6d);
|
|
148
|
+
font-size: var(--wpds-font-size-md, 13px);
|
|
149
|
+
line-height: var(--wpds-font-line-height-md, 24px);
|
|
230
150
|
margin: 0;
|
|
231
151
|
}
|
|
232
152
|
|
|
@@ -238,12 +158,12 @@
|
|
|
238
158
|
}
|
|
239
159
|
|
|
240
160
|
.admin-ui-page__content.has-padding {
|
|
241
|
-
padding: 16px 24px;
|
|
161
|
+
padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px);
|
|
242
162
|
}
|
|
243
163
|
|
|
244
164
|
.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon {
|
|
245
165
|
width: auto;
|
|
246
|
-
padding: 0
|
|
166
|
+
padding: 0 var(--wpds-dimension-padding-xs, 4px);
|
|
247
167
|
}
|
|
248
168
|
|
|
249
169
|
.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg {
|
|
@@ -252,9 +172,54 @@
|
|
|
252
172
|
|
|
253
173
|
.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon::after {
|
|
254
174
|
content: attr(aria-label);
|
|
255
|
-
font-size: 12px;
|
|
175
|
+
font-size: var(--wpds-font-size-sm, 12px);
|
|
256
176
|
}
|
|
257
177
|
|
|
178
|
+
/**
|
|
179
|
+
* SCSS Variables.
|
|
180
|
+
*
|
|
181
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
182
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
183
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
184
|
+
*/
|
|
185
|
+
/**
|
|
186
|
+
* Colors
|
|
187
|
+
*/
|
|
188
|
+
/**
|
|
189
|
+
* Fonts & basic variables.
|
|
190
|
+
*/
|
|
191
|
+
/**
|
|
192
|
+
* Typography
|
|
193
|
+
*/
|
|
194
|
+
/**
|
|
195
|
+
* Grid System.
|
|
196
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
197
|
+
*/
|
|
198
|
+
/**
|
|
199
|
+
* Radius scale.
|
|
200
|
+
*/
|
|
201
|
+
/**
|
|
202
|
+
* Elevation scale.
|
|
203
|
+
*/
|
|
204
|
+
/**
|
|
205
|
+
* Dimensions.
|
|
206
|
+
*/
|
|
207
|
+
/**
|
|
208
|
+
* Mobile specific styles
|
|
209
|
+
*/
|
|
210
|
+
/**
|
|
211
|
+
* Editor styles.
|
|
212
|
+
*/
|
|
213
|
+
/**
|
|
214
|
+
* Block & Editor UI.
|
|
215
|
+
*/
|
|
216
|
+
/**
|
|
217
|
+
* Block paddings.
|
|
218
|
+
*/
|
|
219
|
+
/**
|
|
220
|
+
* React Native specific.
|
|
221
|
+
* These variables do not appear to be used anywhere else.
|
|
222
|
+
*/
|
|
258
223
|
.admin-ui-breadcrumbs__list {
|
|
259
224
|
list-style: none;
|
|
260
225
|
padding: 0;
|
|
@@ -1182,6 +1147,7 @@ button.font-library__upload-area {
|
|
|
1182
1147
|
background: #fff;
|
|
1183
1148
|
padding: 12px;
|
|
1184
1149
|
border-top: 1px solid #ddd;
|
|
1150
|
+
box-sizing: border-box;
|
|
1185
1151
|
}
|
|
1186
1152
|
|
|
1187
1153
|
.global-styles-ui-variations_item {
|
|
@@ -3173,6 +3139,7 @@ div.dataviews-view-list {
|
|
|
3173
3139
|
|
|
3174
3140
|
.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end {
|
|
3175
3141
|
justify-content: flex-end;
|
|
3142
|
+
font-variant-numeric: tabular-nums;
|
|
3176
3143
|
}
|
|
3177
3144
|
|
|
3178
3145
|
.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center {
|
|
@@ -3285,7 +3252,7 @@ div.dataviews-view-list {
|
|
|
3285
3252
|
}
|
|
3286
3253
|
|
|
3287
3254
|
/* Column width intents via colgroup: make non-primary columns shrink-to-fit */
|
|
3288
|
-
.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data)
|
|
3255
|
+
.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data) {
|
|
3289
3256
|
width: 1%;
|
|
3290
3257
|
}
|
|
3291
3258
|
|
|
@@ -3967,7 +3934,6 @@ div.dataviews-view-list {
|
|
|
3967
3934
|
display: flex;
|
|
3968
3935
|
flex-direction: row;
|
|
3969
3936
|
gap: 16px;
|
|
3970
|
-
align-items: center;
|
|
3971
3937
|
}
|
|
3972
3938
|
|
|
3973
3939
|
.dataforms-layouts-details__summary-content {
|
|
@@ -4360,6 +4326,204 @@ div.dataviews-view-list {
|
|
|
4360
4326
|
font-size: 12px;
|
|
4361
4327
|
}
|
|
4362
4328
|
|
|
4329
|
+
.editor-avatar {
|
|
4330
|
+
position: relative;
|
|
4331
|
+
display: inline-flex;
|
|
4332
|
+
align-items: center;
|
|
4333
|
+
border-radius: 9999px;
|
|
4334
|
+
flex-shrink: 0;
|
|
4335
|
+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) #fff, 0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01);
|
|
4336
|
+
}
|
|
4337
|
+
|
|
4338
|
+
.editor-avatar__image {
|
|
4339
|
+
box-sizing: border-box;
|
|
4340
|
+
position: relative;
|
|
4341
|
+
width: 32px;
|
|
4342
|
+
height: 32px;
|
|
4343
|
+
border-radius: 9999px;
|
|
4344
|
+
border: 0;
|
|
4345
|
+
background-color: var(--wp-admin-theme-color, #3858e9);
|
|
4346
|
+
overflow: hidden;
|
|
4347
|
+
overflow: clip;
|
|
4348
|
+
flex-shrink: 0;
|
|
4349
|
+
font-size: 0;
|
|
4350
|
+
color: #fff;
|
|
4351
|
+
}
|
|
4352
|
+
.is-small > .editor-avatar__image {
|
|
4353
|
+
width: 24px;
|
|
4354
|
+
height: 24px;
|
|
4355
|
+
}
|
|
4356
|
+
.has-avatar-border-color > .editor-avatar__image {
|
|
4357
|
+
border: var(--wp-admin-border-width-focus) solid var(--editor-avatar-outline-color);
|
|
4358
|
+
background-clip: padding-box;
|
|
4359
|
+
}
|
|
4360
|
+
.has-avatar-border-color > .editor-avatar__image::after {
|
|
4361
|
+
content: "";
|
|
4362
|
+
position: absolute;
|
|
4363
|
+
inset: 0;
|
|
4364
|
+
border-radius: inherit;
|
|
4365
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus, 2px) #fff;
|
|
4366
|
+
pointer-events: none;
|
|
4367
|
+
z-index: 1;
|
|
4368
|
+
}
|
|
4369
|
+
|
|
4370
|
+
.editor-avatar__img {
|
|
4371
|
+
position: absolute;
|
|
4372
|
+
inset: 0;
|
|
4373
|
+
width: 100%;
|
|
4374
|
+
height: 100%;
|
|
4375
|
+
object-fit: cover;
|
|
4376
|
+
border-radius: inherit;
|
|
4377
|
+
opacity: 0;
|
|
4378
|
+
}
|
|
4379
|
+
.has-src > .editor-avatar__image > .editor-avatar__img {
|
|
4380
|
+
opacity: 1;
|
|
4381
|
+
}
|
|
4382
|
+
|
|
4383
|
+
.editor-avatar:not(.has-src) > .editor-avatar__image {
|
|
4384
|
+
display: flex;
|
|
4385
|
+
align-items: center;
|
|
4386
|
+
justify-content: center;
|
|
4387
|
+
font-size: 11px;
|
|
4388
|
+
font-weight: 499;
|
|
4389
|
+
border: 0;
|
|
4390
|
+
background-clip: border-box;
|
|
4391
|
+
}
|
|
4392
|
+
.editor-avatar:not(.has-src) > .editor-avatar__image::after {
|
|
4393
|
+
content: none;
|
|
4394
|
+
}
|
|
4395
|
+
|
|
4396
|
+
.editor-avatar:not(.has-src).has-avatar-border-color > .editor-avatar__image {
|
|
4397
|
+
background-color: var(--editor-avatar-outline-color);
|
|
4398
|
+
}
|
|
4399
|
+
|
|
4400
|
+
.editor-avatar__name {
|
|
4401
|
+
font-size: 13px;
|
|
4402
|
+
font-weight: 499;
|
|
4403
|
+
line-height: 20px;
|
|
4404
|
+
color: var(--editor-avatar-name-color, #fff);
|
|
4405
|
+
min-width: 0;
|
|
4406
|
+
padding-bottom: 2px;
|
|
4407
|
+
overflow: hidden;
|
|
4408
|
+
opacity: 0;
|
|
4409
|
+
white-space: nowrap;
|
|
4410
|
+
transition: opacity 0.15s cubic-bezier(0.15, 0, 0.15, 1);
|
|
4411
|
+
}
|
|
4412
|
+
|
|
4413
|
+
.editor-avatar.is-badge {
|
|
4414
|
+
display: inline-grid;
|
|
4415
|
+
grid-template-columns: min-content 0fr;
|
|
4416
|
+
column-gap: 0;
|
|
4417
|
+
padding-inline-end: 0;
|
|
4418
|
+
background-color: var(--wp-admin-theme-color, #3858e9);
|
|
4419
|
+
transition: grid-template-columns 0.3s cubic-bezier(0.15, 0, 0.15, 1), column-gap 0.3s cubic-bezier(0.15, 0, 0.15, 1), padding-inline-end 0.3s cubic-bezier(0.15, 0, 0.15, 1);
|
|
4420
|
+
}
|
|
4421
|
+
.editor-avatar.is-badge:hover {
|
|
4422
|
+
grid-template-columns: min-content 1fr;
|
|
4423
|
+
column-gap: 4px;
|
|
4424
|
+
padding-inline-end: 8px;
|
|
4425
|
+
transition-timing-function: cubic-bezier(0.85, 0, 0.85, 1);
|
|
4426
|
+
}
|
|
4427
|
+
.editor-avatar.is-badge:hover .editor-avatar__name {
|
|
4428
|
+
opacity: 1;
|
|
4429
|
+
transition-timing-function: cubic-bezier(0.85, 0, 0.85, 1);
|
|
4430
|
+
}
|
|
4431
|
+
|
|
4432
|
+
.editor-avatar.is-badge.has-avatar-border-color {
|
|
4433
|
+
background-color: var(--editor-avatar-outline-color);
|
|
4434
|
+
}
|
|
4435
|
+
|
|
4436
|
+
.editor-avatar.is-dimmed > .editor-avatar__image {
|
|
4437
|
+
opacity: 0.5;
|
|
4438
|
+
background-color: #757575;
|
|
4439
|
+
}
|
|
4440
|
+
|
|
4441
|
+
.editor-avatar.is-dimmed.has-avatar-border-color > .editor-avatar__image {
|
|
4442
|
+
border-color: #757575;
|
|
4443
|
+
}
|
|
4444
|
+
|
|
4445
|
+
.editor-avatar.is-dimmed .editor-avatar__img {
|
|
4446
|
+
filter: grayscale(1);
|
|
4447
|
+
}
|
|
4448
|
+
|
|
4449
|
+
.editor-avatar__status-indicator {
|
|
4450
|
+
position: absolute;
|
|
4451
|
+
top: 0;
|
|
4452
|
+
right: 0;
|
|
4453
|
+
width: 32px;
|
|
4454
|
+
height: 32px;
|
|
4455
|
+
display: flex;
|
|
4456
|
+
align-items: center;
|
|
4457
|
+
justify-content: center;
|
|
4458
|
+
z-index: 1;
|
|
4459
|
+
color: #1e1e1e;
|
|
4460
|
+
fill: #1e1e1e;
|
|
4461
|
+
}
|
|
4462
|
+
.is-small > .editor-avatar__status-indicator {
|
|
4463
|
+
width: 24px;
|
|
4464
|
+
height: 24px;
|
|
4465
|
+
}
|
|
4466
|
+
.editor-avatar__status-indicator svg {
|
|
4467
|
+
width: 75%;
|
|
4468
|
+
height: 75%;
|
|
4469
|
+
}
|
|
4470
|
+
|
|
4471
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4472
|
+
.editor-avatar.is-badge,
|
|
4473
|
+
.editor-avatar__name {
|
|
4474
|
+
transition: none;
|
|
4475
|
+
}
|
|
4476
|
+
}
|
|
4477
|
+
.editor-avatar-group {
|
|
4478
|
+
display: flex;
|
|
4479
|
+
align-items: center;
|
|
4480
|
+
}
|
|
4481
|
+
.editor-avatar-group > .editor-avatar + .editor-avatar {
|
|
4482
|
+
margin-inline-start: -8px;
|
|
4483
|
+
}
|
|
4484
|
+
.editor-avatar-group > .editor-avatar {
|
|
4485
|
+
position: relative;
|
|
4486
|
+
}
|
|
4487
|
+
.editor-avatar-group > .editor-avatar:nth-child(1) {
|
|
4488
|
+
z-index: 10;
|
|
4489
|
+
}
|
|
4490
|
+
.editor-avatar-group > .editor-avatar:nth-child(2) {
|
|
4491
|
+
z-index: 9;
|
|
4492
|
+
}
|
|
4493
|
+
.editor-avatar-group > .editor-avatar:nth-child(3) {
|
|
4494
|
+
z-index: 8;
|
|
4495
|
+
}
|
|
4496
|
+
.editor-avatar-group > .editor-avatar:nth-child(4) {
|
|
4497
|
+
z-index: 7;
|
|
4498
|
+
}
|
|
4499
|
+
.editor-avatar-group > .editor-avatar:nth-child(5) {
|
|
4500
|
+
z-index: 6;
|
|
4501
|
+
}
|
|
4502
|
+
.editor-avatar-group > .editor-avatar:nth-child(6) {
|
|
4503
|
+
z-index: 5;
|
|
4504
|
+
}
|
|
4505
|
+
.editor-avatar-group > .editor-avatar:nth-child(7) {
|
|
4506
|
+
z-index: 4;
|
|
4507
|
+
}
|
|
4508
|
+
.editor-avatar-group > .editor-avatar:nth-child(8) {
|
|
4509
|
+
z-index: 3;
|
|
4510
|
+
}
|
|
4511
|
+
.editor-avatar-group > .editor-avatar:nth-child(9) {
|
|
4512
|
+
z-index: 2;
|
|
4513
|
+
}
|
|
4514
|
+
.editor-avatar-group > .editor-avatar:nth-child(10) {
|
|
4515
|
+
z-index: 1;
|
|
4516
|
+
}
|
|
4517
|
+
|
|
4518
|
+
.editor-avatar-group__overflow {
|
|
4519
|
+
margin-inline-start: 4px;
|
|
4520
|
+
margin-inline-end: 4px;
|
|
4521
|
+
font-size: 12px;
|
|
4522
|
+
line-height: 20px;
|
|
4523
|
+
color: #1e1e1e;
|
|
4524
|
+
white-space: nowrap;
|
|
4525
|
+
}
|
|
4526
|
+
|
|
4363
4527
|
.editor-collapsible-block-toolbar {
|
|
4364
4528
|
overflow: hidden;
|
|
4365
4529
|
display: flex;
|
|
@@ -4460,7 +4624,7 @@ div.dataviews-view-list {
|
|
|
4460
4624
|
}
|
|
4461
4625
|
@media not (prefers-reduced-motion) {
|
|
4462
4626
|
.editor-document-bar .components-button {
|
|
4463
|
-
transition:
|
|
4627
|
+
transition: background-color 0.1s ease-out;
|
|
4464
4628
|
}
|
|
4465
4629
|
}
|
|
4466
4630
|
.editor-document-bar .components-button:hover {
|
|
@@ -5571,10 +5735,6 @@ div.dataviews-view-list {
|
|
|
5571
5735
|
padding: 16px;
|
|
5572
5736
|
}
|
|
5573
5737
|
|
|
5574
|
-
.editor-private-post-last-revision__button {
|
|
5575
|
-
display: inline-block;
|
|
5576
|
-
}
|
|
5577
|
-
|
|
5578
5738
|
.editor-post-locked-modal__buttons {
|
|
5579
5739
|
margin-top: 24px;
|
|
5580
5740
|
}
|
|
@@ -5601,6 +5761,7 @@ div.dataviews-view-list {
|
|
|
5601
5761
|
padding: 6px 0;
|
|
5602
5762
|
line-height: 20px;
|
|
5603
5763
|
hyphens: auto;
|
|
5764
|
+
word-break: break-word;
|
|
5604
5765
|
}
|
|
5605
5766
|
|
|
5606
5767
|
.editor-post-panel__row-control {
|
|
@@ -5884,7 +6045,7 @@ div.dataviews-view-list {
|
|
|
5884
6045
|
.revision-diff-markers {
|
|
5885
6046
|
position: relative;
|
|
5886
6047
|
flex-shrink: 0;
|
|
5887
|
-
width:
|
|
6048
|
+
width: max(16px, 1rem);
|
|
5888
6049
|
background: rgba(0, 0, 0, 0.05);
|
|
5889
6050
|
}
|
|
5890
6051
|
.revision-diff-markers .revision-diff-marker {
|
|
@@ -5900,10 +6061,10 @@ div.dataviews-view-list {
|
|
|
5900
6061
|
background: #00a32a;
|
|
5901
6062
|
}
|
|
5902
6063
|
.revision-diff-markers .revision-diff-marker.is-removed {
|
|
5903
|
-
background: #d63638;
|
|
6064
|
+
background: repeating-linear-gradient(-45deg, #d63638, #d63638 3px, rgba(214, 54, 56, 0.45) 3px, rgba(214, 54, 56, 0.45) 6px);
|
|
5904
6065
|
}
|
|
5905
6066
|
.revision-diff-markers .revision-diff-marker.is-modified {
|
|
5906
|
-
background: #dba617;
|
|
6067
|
+
background: repeating-linear-gradient(45deg, #dba617, #dba617 3px, rgba(219, 166, 23, 0.45) 3px, rgba(219, 166, 23, 0.45) 6px);
|
|
5907
6068
|
}
|
|
5908
6069
|
.revision-diff-markers .revision-diff-marker:hover {
|
|
5909
6070
|
opacity: 0.7;
|
|
@@ -5913,6 +6074,20 @@ div.dataviews-view-list {
|
|
|
5913
6074
|
outline-offset: -2px;
|
|
5914
6075
|
}
|
|
5915
6076
|
|
|
6077
|
+
.editor-revision-fields-diff__value {
|
|
6078
|
+
word-break: break-word;
|
|
6079
|
+
}
|
|
6080
|
+
|
|
6081
|
+
.editor-revision-fields-diff__added {
|
|
6082
|
+
background-color: color-mix(in srgb, currentColor 5%, #00a32a 15%);
|
|
6083
|
+
text-decoration: none;
|
|
6084
|
+
}
|
|
6085
|
+
|
|
6086
|
+
.editor-revision-fields-diff__removed {
|
|
6087
|
+
text-decoration: line-through;
|
|
6088
|
+
color: #d63638;
|
|
6089
|
+
}
|
|
6090
|
+
|
|
5916
6091
|
.editor-post-saved-state {
|
|
5917
6092
|
display: flex;
|
|
5918
6093
|
align-items: center;
|
|
@@ -6027,16 +6202,16 @@ div.dataviews-view-list {
|
|
|
6027
6202
|
margin-left: 8px;
|
|
6028
6203
|
}
|
|
6029
6204
|
|
|
6030
|
-
.editor-sync-connection-
|
|
6031
|
-
|
|
6032
|
-
display: flex;
|
|
6033
|
-
margin: auto;
|
|
6034
|
-
max-width: 30rem;
|
|
6205
|
+
.editor-sync-connection-error-modal {
|
|
6206
|
+
z-index: 1000001;
|
|
6035
6207
|
}
|
|
6036
6208
|
|
|
6037
|
-
.editor-sync-connection-
|
|
6038
|
-
|
|
6039
|
-
|
|
6209
|
+
.editor-sync-connection-error-modal p {
|
|
6210
|
+
margin: 0;
|
|
6211
|
+
}
|
|
6212
|
+
|
|
6213
|
+
.editor-sync-connection-error-modal__retry-countdown {
|
|
6214
|
+
color: #757575;
|
|
6040
6215
|
}
|
|
6041
6216
|
|
|
6042
6217
|
.editor-post-template__swap-template-modal {
|