@wordpress/editor 14.41.1-next.v.202603102151.0 → 14.42.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 +6 -0
- package/build/components/collaborators-overlay/avatar-iframe-styles.cjs +12 -4
- package/build/components/collaborators-overlay/avatar-iframe-styles.cjs.map +2 -2
- package/build/components/collaborators-overlay/compute-selection.cjs +181 -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/overlay-iframe-styles.cjs +6 -0
- package/build/components/collaborators-overlay/overlay-iframe-styles.cjs.map +2 -2
- package/build/components/collaborators-overlay/overlay.cjs +61 -37
- package/build/components/collaborators-overlay/overlay.cjs.map +2 -2
- 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 +5 -6
- package/build/components/collaborators-overlay/use-block-highlighting.cjs.map +2 -2
- package/build/components/collaborators-overlay/use-render-cursors.cjs +50 -140
- package/build/components/collaborators-overlay/use-render-cursors.cjs.map +3 -3
- package/build/components/collaborators-presence/index.cjs +38 -12
- package/build/components/collaborators-presence/index.cjs.map +2 -2
- package/build/components/collaborators-presence/list.cjs +27 -24
- package/build/components/collaborators-presence/list.cjs.map +2 -2
- package/build/components/collaborators-presence/use-collaborator-notifications.cjs +79 -107
- package/build/components/collaborators-presence/use-collaborator-notifications.cjs.map +3 -3
- package/build/components/editor-interface/index.cjs +9 -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/page-attributes/parent.cjs +1 -1
- package/build/components/page-attributes/parent.cjs.map +2 -2
- package/build/components/post-locked-modal/index.cjs +16 -3
- package/build/components/post-locked-modal/index.cjs.map +2 -2
- package/build/components/post-revisions-preview/block-diff.cjs +39 -11
- package/build/components/post-revisions-preview/block-diff.cjs.map +2 -2
- package/build/components/post-revisions-preview/diff-markers.cjs +2 -2
- package/build/components/post-revisions-preview/diff-markers.cjs.map +2 -2
- package/build/components/post-revisions-preview/revisions-canvas.cjs +12 -75
- package/build/components/post-revisions-preview/revisions-canvas.cjs.map +3 -3
- package/build/components/post-revisions-preview/revisions-slider.cjs +5 -1
- package/build/components/post-revisions-preview/revisions-slider.cjs.map +2 -2
- package/build/components/post-template/block-theme.cjs +7 -4
- package/build/components/post-template/block-theme.cjs.map +2 -2
- package/build/components/post-template/hooks.cjs +39 -2
- package/build/components/post-template/hooks.cjs.map +2 -2
- package/build/components/post-template/panel.cjs +5 -42
- package/build/components/post-template/panel.cjs.map +3 -3
- package/build/components/preferences-modal/index.cjs +24 -0
- 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 +19 -5
- 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 +84 -0
- package/build/components/revision-block-diff/index.cjs.map +7 -0
- package/build/components/sidebar/dataform-post-summary.cjs +36 -6
- package/build/components/sidebar/dataform-post-summary.cjs.map +2 -2
- package/build/components/sidebar/header.cjs +1 -1
- package/build/components/sidebar/header.cjs.map +2 -2
- package/build/components/sidebar/index.cjs +5 -1
- package/build/components/sidebar/index.cjs.map +3 -3
- package/build/components/{sync-connection-modal → sync-connection-error-modal}/index.cjs +90 -78
- package/build/components/sync-connection-error-modal/index.cjs.map +7 -0
- package/build/components/{sync-connection-modal → sync-connection-error-modal}/use-retry-countdown.cjs +14 -27
- 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/visual-editor/index.cjs +2 -2
- package/build/components/visual-editor/index.cjs.map +2 -2
- package/build/store/actions.cjs +1 -3
- package/build/store/actions.cjs.map +2 -2
- package/build/store/private-actions.cjs +11 -2
- package/build/store/private-actions.cjs.map +2 -2
- package/build/store/private-selectors.cjs +52 -13
- package/build/store/private-selectors.cjs.map +2 -2
- package/build/store/reducer.cjs +12 -0
- package/build/store/reducer.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/sync-error-messages.cjs +29 -16
- package/build/utils/sync-error-messages.cjs.map +3 -3
- package/build-module/components/collaborators-overlay/avatar-iframe-styles.mjs +12 -4
- package/build-module/components/collaborators-overlay/avatar-iframe-styles.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/compute-selection.mjs +162 -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/overlay-iframe-styles.mjs +6 -0
- package/build-module/components/collaborators-overlay/overlay-iframe-styles.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/overlay.mjs +61 -37
- 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 +5 -6
- package/build-module/components/collaborators-overlay/use-block-highlighting.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/use-render-cursors.mjs +50 -140
- package/build-module/components/collaborators-overlay/use-render-cursors.mjs.map +2 -2
- package/build-module/components/collaborators-presence/index.mjs +39 -13
- package/build-module/components/collaborators-presence/index.mjs.map +2 -2
- package/build-module/components/collaborators-presence/list.mjs +27 -24
- package/build-module/components/collaborators-presence/list.mjs.map +2 -2
- package/build-module/components/collaborators-presence/use-collaborator-notifications.mjs +80 -108
- package/build-module/components/collaborators-presence/use-collaborator-notifications.mjs.map +2 -2
- package/build-module/components/editor-interface/index.mjs +10 -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/page-attributes/parent.mjs +1 -1
- package/build-module/components/page-attributes/parent.mjs.map +2 -2
- package/build-module/components/post-locked-modal/index.mjs +16 -3
- package/build-module/components/post-locked-modal/index.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/block-diff.mjs +39 -11
- package/build-module/components/post-revisions-preview/block-diff.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/diff-markers.mjs +2 -2
- package/build-module/components/post-revisions-preview/diff-markers.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/revisions-canvas.mjs +14 -80
- package/build-module/components/post-revisions-preview/revisions-canvas.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/revisions-slider.mjs +5 -1
- package/build-module/components/post-revisions-preview/revisions-slider.mjs.map +2 -2
- package/build-module/components/post-template/block-theme.mjs +7 -4
- package/build-module/components/post-template/block-theme.mjs.map +2 -2
- package/build-module/components/post-template/hooks.mjs +37 -1
- package/build-module/components/post-template/hooks.mjs.map +2 -2
- package/build-module/components/post-template/panel.mjs +5 -42
- package/build-module/components/post-template/panel.mjs.map +2 -2
- package/build-module/components/preferences-modal/index.mjs +24 -0
- 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 +19 -5
- 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 +53 -0
- package/build-module/components/revision-block-diff/index.mjs.map +7 -0
- package/build-module/components/sidebar/dataform-post-summary.mjs +36 -6
- package/build-module/components/sidebar/dataform-post-summary.mjs.map +2 -2
- 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 +5 -1
- package/build-module/components/sidebar/index.mjs.map +2 -2
- package/build-module/components/sync-connection-error-modal/index.mjs +177 -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 +36 -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/visual-editor/index.mjs +2 -2
- package/build-module/components/visual-editor/index.mjs.map +2 -2
- package/build-module/store/actions.mjs +1 -3
- package/build-module/store/actions.mjs.map +2 -2
- package/build-module/store/private-actions.mjs +10 -2
- package/build-module/store/private-actions.mjs.map +2 -2
- package/build-module/store/private-selectors.mjs +50 -12
- package/build-module/store/private-selectors.mjs.map +2 -2
- package/build-module/store/reducer.mjs +11 -0
- package/build-module/store/reducer.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/sync-error-messages.mjs +24 -16
- package/build-module/utils/sync-error-messages.mjs.map +3 -3
- package/build-style/style-rtl.css +95 -16
- package/build-style/style.css +95 -16
- package/build-types/components/collaborators-overlay/avatar-iframe-styles.d.ts +1 -1
- package/build-types/components/collaborators-overlay/avatar-iframe-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/overlay-iframe-styles.d.ts +1 -1
- package/build-types/components/collaborators-overlay/overlay-iframe-styles.d.ts.map +1 -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.map +1 -1
- package/build-types/components/collaborators-overlay/use-render-cursors.d.ts +4 -0
- package/build-types/components/collaborators-overlay/use-render-cursors.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/index.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/list.d.ts +2 -1
- package/build-types/components/collaborators-presence/list.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/inserter-sidebar/index.d.ts.map +1 -1
- package/build-types/components/post-locked-modal/index.d.ts +2 -2
- package/build-types/components/post-locked-modal/index.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/block-diff.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.map +1 -1
- package/build-types/components/post-template/block-theme.d.ts +1 -3
- package/build-types/components/post-template/block-theme.d.ts.map +1 -1
- package/build-types/components/post-template/hooks.d.ts +1 -0
- package/build-types/components/post-template/hooks.d.ts.map +1 -1
- package/build-types/components/post-template/panel.d.ts.map +1 -1
- 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-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/sidebar/dataform-post-summary.d.ts.map +1 -1
- package/build-types/components/sidebar/index.d.ts.map +1 -1
- package/build-types/components/sync-connection-error-modal/index.d.ts +22 -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-content-panel/index.d.ts.map +1 -1
- package/build-types/store/actions.d.ts.map +1 -1
- package/build-types/store/private-actions.d.ts +7 -0
- package/build-types/store/private-actions.d.ts.map +1 -1
- package/build-types/store/private-selectors.d.ts +7 -0
- package/build-types/store/private-selectors.d.ts.map +1 -1
- package/build-types/store/reducer.d.ts +14 -3
- package/build-types/store/reducer.d.ts.map +1 -1
- 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/sync-error-messages.d.ts +17 -3
- package/build-types/utils/sync-error-messages.d.ts.map +1 -1
- package/package.json +44 -44
- package/src/components/collaborators-overlay/avatar-iframe-styles.ts +12 -4
- package/src/components/collaborators-overlay/compute-selection.ts +307 -0
- package/src/components/collaborators-overlay/cursor-dom-utils.ts +382 -0
- package/src/components/collaborators-overlay/overlay-iframe-styles.ts +6 -0
- package/src/components/collaborators-overlay/overlay.tsx +59 -27
- package/src/components/collaborators-overlay/timing-utils.ts +30 -0
- package/src/components/collaborators-overlay/use-block-highlighting.ts +11 -10
- package/src/components/collaborators-overlay/use-render-cursors.ts +70 -242
- package/src/components/collaborators-presence/avatar/styles.scss +20 -4
- package/src/components/collaborators-presence/index.tsx +30 -5
- package/src/components/collaborators-presence/list.tsx +38 -24
- package/src/components/collaborators-presence/test/use-collaborator-notifications.ts +188 -246
- package/src/components/collaborators-presence/use-collaborator-notifications.ts +109 -166
- package/src/components/document-bar/style.scss +1 -1
- package/src/components/editor-interface/index.js +8 -6
- package/src/components/inserter-sidebar/index.js +4 -1
- package/src/components/page-attributes/parent.js +1 -1
- package/src/components/post-locked-modal/index.js +21 -3
- package/src/components/post-revisions-preview/block-diff.js +59 -20
- package/src/components/post-revisions-preview/diff-markers.js +2 -2
- package/src/components/post-revisions-preview/revisions-canvas.js +20 -98
- package/src/components/post-revisions-preview/revisions-slider.js +6 -1
- package/src/components/post-revisions-preview/test/block-diff.js +69 -31
- package/src/components/post-template/block-theme.js +4 -1
- package/src/components/post-template/hooks.js +42 -0
- package/src/components/post-template/panel.js +5 -59
- package/src/components/preferences-modal/index.js +18 -0
- 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 -8
- 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 +74 -0
- package/src/components/revision-block-diff/style.scss +13 -0
- package/src/components/sidebar/dataform-post-summary.js +61 -16
- package/src/components/sidebar/header.js +1 -1
- package/src/components/sidebar/index.js +2 -0
- package/src/components/sync-connection-error-modal/index.tsx +265 -0
- package/src/components/sync-connection-error-modal/style.scss +14 -0
- package/src/components/sync-connection-error-modal/use-retry-countdown.ts +57 -0
- package/src/components/template-content-panel/index.js +30 -38
- package/src/components/visual-editor/index.js +2 -2
- package/src/store/actions.js +1 -4
- package/src/store/private-actions.js +21 -2
- package/src/store/private-selectors.js +75 -10
- package/src/store/reducer.js +19 -0
- package/src/style.scss +2 -1
- package/src/utils/media-finalize/index.js +11 -0
- package/src/utils/media-finalize/test/index.js +34 -0
- package/src/utils/sync-error-messages.ts +72 -0
- package/src/utils/test/sync-error-messages.js +9 -32
- package/build/components/provider/use-post-content-blocks.cjs.map +0 -7
- package/build/components/sync-connection-modal/index.cjs.map +0 -7
- package/build/components/sync-connection-modal/use-retry-countdown.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 -167
- package/build-module/components/sync-connection-modal/index.mjs.map +0 -7
- package/build-module/components/sync-connection-modal/use-retry-countdown.mjs +0 -49
- package/build-module/components/sync-connection-modal/use-retry-countdown.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/build-types/components/sync-connection-modal/use-retry-countdown.d.ts +0 -9
- package/build-types/components/sync-connection-modal/use-retry-countdown.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 -200
- package/src/components/sync-connection-modal/style.scss +0 -9
- package/src/components/sync-connection-modal/use-retry-countdown.js +0 -70
- package/src/utils/sync-error-messages.js +0 -58
package/build-style/style.css
CHANGED
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.admin-ui-page__header {
|
|
122
|
-
padding: var(--wpds-dimension-padding-
|
|
122
|
+
padding: var(--wpds-dimension-padding-md, 12px) var(--wpds-dimension-padding-2xl, 24px);
|
|
123
123
|
border-bottom: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-surface-neutral-weak, #e0e0e0);
|
|
124
124
|
background: var(--wpds-color-bg-surface-neutral-strong, #ffffff);
|
|
125
125
|
position: sticky;
|
|
@@ -129,9 +129,9 @@
|
|
|
129
129
|
|
|
130
130
|
.admin-ui-page__header-title {
|
|
131
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-
|
|
132
|
+
font-size: var(--wpds-font-size-lg, 15px);
|
|
133
133
|
font-weight: var(--wpds-font-weight-medium, 499);
|
|
134
|
-
line-height: var(--wpds-font-line-height-
|
|
134
|
+
line-height: var(--wpds-font-line-height-lg, 28px);
|
|
135
135
|
margin: 0;
|
|
136
136
|
overflow: hidden;
|
|
137
137
|
text-overflow: ellipsis;
|
|
@@ -221,13 +221,15 @@
|
|
|
221
221
|
* These variables do not appear to be used anywhere else.
|
|
222
222
|
*/
|
|
223
223
|
.admin-ui-breadcrumbs__list {
|
|
224
|
+
font-family: var(--wpds-font-family-heading, -apple-system, system-ui, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif);
|
|
225
|
+
font-size: var(--wpds-font-size-lg, 15px);
|
|
226
|
+
font-weight: var(--wpds-font-weight-medium, 499);
|
|
227
|
+
line-height: var(--wpds-font-line-height-lg, 28px);
|
|
224
228
|
list-style: none;
|
|
225
229
|
padding: 0;
|
|
226
230
|
margin: 0;
|
|
227
231
|
gap: 0;
|
|
228
|
-
font-size: 15px;
|
|
229
232
|
min-height: 32px;
|
|
230
|
-
font-weight: 500;
|
|
231
233
|
}
|
|
232
234
|
|
|
233
235
|
.admin-ui-breadcrumbs__list li:not(:last-child)::after {
|
|
@@ -1536,7 +1538,6 @@ button.font-library__upload-area {
|
|
|
1536
1538
|
.dataviews-wrapper,
|
|
1537
1539
|
.dataviews-picker-wrapper {
|
|
1538
1540
|
height: 100%;
|
|
1539
|
-
overflow: auto;
|
|
1540
1541
|
box-sizing: border-box;
|
|
1541
1542
|
scroll-padding-bottom: 64px;
|
|
1542
1543
|
/* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
|
|
@@ -1685,6 +1686,15 @@ button.font-library__upload-area {
|
|
|
1685
1686
|
min-height: 32px;
|
|
1686
1687
|
}
|
|
1687
1688
|
|
|
1689
|
+
.dataviews-layout__container {
|
|
1690
|
+
flex: 1;
|
|
1691
|
+
min-height: 0;
|
|
1692
|
+
overflow: auto;
|
|
1693
|
+
display: flex;
|
|
1694
|
+
flex-direction: column;
|
|
1695
|
+
background-color: inherit;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1688
1698
|
.dataviews-filters__button {
|
|
1689
1699
|
position: relative;
|
|
1690
1700
|
}
|
|
@@ -2425,7 +2435,7 @@ button.font-library__upload-area {
|
|
|
2425
2435
|
.dataviews-view-grid-items {
|
|
2426
2436
|
margin-bottom: auto;
|
|
2427
2437
|
display: grid;
|
|
2428
|
-
gap:
|
|
2438
|
+
gap: 24px;
|
|
2429
2439
|
grid-template-rows: max-content;
|
|
2430
2440
|
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
|
|
2431
2441
|
padding: 0 24px 24px;
|
|
@@ -2437,11 +2447,19 @@ button.font-library__upload-area {
|
|
|
2437
2447
|
transition: padding ease-out 0.1s;
|
|
2438
2448
|
}
|
|
2439
2449
|
}
|
|
2450
|
+
.dataviews-view-grid-items.has-compact-density {
|
|
2451
|
+
gap: 16px;
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
.dataviews-view-grid-items.has-comfortable-density {
|
|
2455
|
+
gap: 32px;
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2440
2458
|
.dataviews-view-grid {
|
|
2441
2459
|
padding: 0 24px 24px;
|
|
2442
2460
|
display: flex;
|
|
2443
2461
|
flex-direction: column;
|
|
2444
|
-
gap:
|
|
2462
|
+
gap: 24px;
|
|
2445
2463
|
container-type: inline-size;
|
|
2446
2464
|
margin-bottom: auto;
|
|
2447
2465
|
}
|
|
@@ -2451,9 +2469,25 @@ button.font-library__upload-area {
|
|
|
2451
2469
|
transition: padding ease-out 0.1s;
|
|
2452
2470
|
}
|
|
2453
2471
|
}
|
|
2472
|
+
.dataviews-view-grid.has-compact-density {
|
|
2473
|
+
gap: 16px;
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2476
|
+
.dataviews-view-grid.has-compact-density .dataviews-view-grid__row {
|
|
2477
|
+
gap: 16px;
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
.dataviews-view-grid.has-comfortable-density {
|
|
2481
|
+
gap: 32px;
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2484
|
+
.dataviews-view-grid.has-comfortable-density .dataviews-view-grid__row {
|
|
2485
|
+
gap: 32px;
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2454
2488
|
.dataviews-view-grid .dataviews-view-grid__row {
|
|
2455
2489
|
display: grid;
|
|
2456
|
-
gap:
|
|
2490
|
+
gap: 24px;
|
|
2457
2491
|
}
|
|
2458
2492
|
|
|
2459
2493
|
.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell {
|
|
@@ -3089,6 +3123,17 @@ div.dataviews-view-list {
|
|
|
3089
3123
|
background-color: inherit;
|
|
3090
3124
|
}
|
|
3091
3125
|
|
|
3126
|
+
.dataviews-view-table thead.dataviews-view-table__thead--stuck::after {
|
|
3127
|
+
display: block;
|
|
3128
|
+
content: "";
|
|
3129
|
+
position: absolute;
|
|
3130
|
+
bottom: 0;
|
|
3131
|
+
left: 0;
|
|
3132
|
+
right: 0;
|
|
3133
|
+
height: 1px;
|
|
3134
|
+
background-color: #f0f0f0;
|
|
3135
|
+
}
|
|
3136
|
+
|
|
3092
3137
|
.dataviews-view-table thead tr {
|
|
3093
3138
|
border: 0;
|
|
3094
3139
|
}
|
|
@@ -3260,6 +3305,14 @@ div.dataviews-view-list {
|
|
|
3260
3305
|
animation: dataviews-pulse 1s ease-in-out infinite;
|
|
3261
3306
|
}
|
|
3262
3307
|
}
|
|
3308
|
+
.dataviews-view-picker-grid.has-compact-density .dataviews-view-grid-items {
|
|
3309
|
+
gap: 16px;
|
|
3310
|
+
}
|
|
3311
|
+
|
|
3312
|
+
.dataviews-view-picker-grid.has-comfortable-density .dataviews-view-grid-items {
|
|
3313
|
+
gap: 32px;
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3263
3316
|
.dataviews-view-picker-grid .dataviews-view-picker-grid__card {
|
|
3264
3317
|
height: 100%;
|
|
3265
3318
|
justify-content: flex-start;
|
|
@@ -4905,8 +4958,6 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
4905
4958
|
display: inline-flex;
|
|
4906
4959
|
align-items: center;
|
|
4907
4960
|
border-radius: 9999px;
|
|
4908
|
-
overflow: hidden;
|
|
4909
|
-
overflow: clip;
|
|
4910
4961
|
flex-shrink: 0;
|
|
4911
4962
|
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);
|
|
4912
4963
|
}
|
|
@@ -4931,9 +4982,17 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
4931
4982
|
}
|
|
4932
4983
|
.has-avatar-border-color > .editor-avatar__image {
|
|
4933
4984
|
border: var(--wp-admin-border-width-focus) solid var(--editor-avatar-outline-color);
|
|
4934
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) #fff;
|
|
4935
4985
|
background-clip: padding-box;
|
|
4936
4986
|
}
|
|
4987
|
+
.has-avatar-border-color > .editor-avatar__image::after {
|
|
4988
|
+
content: "";
|
|
4989
|
+
position: absolute;
|
|
4990
|
+
inset: 0;
|
|
4991
|
+
border-radius: inherit;
|
|
4992
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus, 2px) #fff;
|
|
4993
|
+
pointer-events: none;
|
|
4994
|
+
z-index: 1;
|
|
4995
|
+
}
|
|
4937
4996
|
|
|
4938
4997
|
.editor-avatar__img {
|
|
4939
4998
|
position: absolute;
|
|
@@ -4955,9 +5014,11 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
4955
5014
|
font-size: 11px;
|
|
4956
5015
|
font-weight: 499;
|
|
4957
5016
|
border: 0;
|
|
4958
|
-
box-shadow: none;
|
|
4959
5017
|
background-clip: border-box;
|
|
4960
5018
|
}
|
|
5019
|
+
.editor-avatar:not(.has-src) > .editor-avatar__image::after {
|
|
5020
|
+
content: none;
|
|
5021
|
+
}
|
|
4961
5022
|
|
|
4962
5023
|
.editor-avatar:not(.has-src).has-avatar-border-color > .editor-avatar__image {
|
|
4963
5024
|
background-color: var(--editor-avatar-outline-color);
|
|
@@ -5190,7 +5251,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
5190
5251
|
}
|
|
5191
5252
|
@media not (prefers-reduced-motion) {
|
|
5192
5253
|
.editor-document-bar .components-button {
|
|
5193
|
-
transition:
|
|
5254
|
+
transition: background-color 0.1s ease-out;
|
|
5194
5255
|
}
|
|
5195
5256
|
}
|
|
5196
5257
|
.editor-document-bar .components-button:hover {
|
|
@@ -6645,6 +6706,20 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
6645
6706
|
outline-offset: -2px;
|
|
6646
6707
|
}
|
|
6647
6708
|
|
|
6709
|
+
.editor-revision-fields-diff__value {
|
|
6710
|
+
word-break: break-word;
|
|
6711
|
+
}
|
|
6712
|
+
|
|
6713
|
+
.editor-revision-fields-diff__added {
|
|
6714
|
+
background-color: color-mix(in srgb, currentColor 5%, #00a32a 15%);
|
|
6715
|
+
text-decoration: none;
|
|
6716
|
+
}
|
|
6717
|
+
|
|
6718
|
+
.editor-revision-fields-diff__removed {
|
|
6719
|
+
text-decoration: line-through;
|
|
6720
|
+
color: #d63638;
|
|
6721
|
+
}
|
|
6722
|
+
|
|
6648
6723
|
.editor-post-saved-state {
|
|
6649
6724
|
display: flex;
|
|
6650
6725
|
align-items: center;
|
|
@@ -6759,11 +6834,15 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
6759
6834
|
margin-right: 8px;
|
|
6760
6835
|
}
|
|
6761
6836
|
|
|
6762
|
-
.editor-sync-connection-modal
|
|
6837
|
+
.editor-sync-connection-error-modal {
|
|
6838
|
+
z-index: 1000001;
|
|
6839
|
+
}
|
|
6840
|
+
|
|
6841
|
+
.editor-sync-connection-error-modal p {
|
|
6763
6842
|
margin: 0;
|
|
6764
6843
|
}
|
|
6765
6844
|
|
|
6766
|
-
.editor-sync-connection-modal__retry-countdown {
|
|
6845
|
+
.editor-sync-connection-error-modal__retry-countdown {
|
|
6767
6846
|
color: #757575;
|
|
6768
6847
|
}
|
|
6769
6848
|
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* Dimmed and status-indicator styles are intentionally omitted — they are not
|
|
8
8
|
* used in the overlay. Keep in sync when editing the SCSS source.
|
|
9
9
|
*/
|
|
10
|
-
export declare const AVATAR_IFRAME_STYLES = "\n.editor-avatar {\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tborder-radius: 9999px;\n\
|
|
10
|
+
export declare const AVATAR_IFRAME_STYLES = "\n.editor-avatar {\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tborder-radius: 9999px;\n\tflex-shrink: 0;\n\tbox-shadow: 0 0 0 var(--wp-admin-border-width-focus, 2px) #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);\n}\n.editor-avatar__image {\n\tbox-sizing: border-box;\n\tposition: relative;\n\twidth: 32px;\n\theight: 32px;\n\tborder-radius: 9999px;\n\tborder: 0;\n\tbackground-color: var(--wp-admin-theme-color, #3858e9);\n\toverflow: hidden;\n\toverflow: clip;\n\tflex-shrink: 0;\n\tfont-size: 0;\n\tcolor: #fff;\n}\n.is-small > .editor-avatar__image {\n\twidth: 24px;\n\theight: 24px;\n}\n.has-avatar-border-color > .editor-avatar__image {\n\tborder: var(--wp-admin-border-width-focus, 2px) solid var(--editor-avatar-outline-color);\n\tbackground-clip: padding-box;\n}\n.has-avatar-border-color > .editor-avatar__image::after {\n\tcontent: \"\";\n\tposition: absolute;\n\tinset: 0;\n\tborder-radius: inherit;\n\tbox-shadow: inset 0 0 0 var(--wp-admin-border-width-focus, 2px) #fff;\n\tpointer-events: none;\n\tz-index: 1;\n}\n.editor-avatar__img {\n\tposition: absolute;\n\tinset: 0;\n\twidth: 100%;\n\theight: 100%;\n\tobject-fit: cover;\n\tborder-radius: inherit;\n\topacity: 0;\n}\n.has-src > .editor-avatar__image > .editor-avatar__img {\n\topacity: 1;\n}\n.editor-avatar:not(.has-src) > .editor-avatar__image {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tfont-size: 11px;\n\tfont-weight: 499;\n\tborder: 0;\n\tbackground-clip: border-box;\n}\n.editor-avatar:not(.has-src) > .editor-avatar__image::after {\n\tcontent: none;\n}\n.editor-avatar:not(.has-src).has-avatar-border-color > .editor-avatar__image {\n\tbackground-color: var(--editor-avatar-outline-color);\n}\n.editor-avatar__name {\n\tfont-size: 13px;\n\tfont-weight: 499;\n\tline-height: 20px;\n\tcolor: var(--editor-avatar-name-color, #fff);\n\tmin-width: 0;\n\tpadding-bottom: 2px; /* $grid-unit-05 / 2 */\n\toverflow: hidden;\n\topacity: 0;\n\twhite-space: nowrap;\n\ttransition: opacity 0.15s cubic-bezier(0.15, 0, 0.15, 1);\n}\n.editor-avatar.is-badge {\n\tdisplay: inline-grid;\n\tgrid-template-columns: min-content 0fr;\n\tcolumn-gap: 0;\n\tpadding-inline-end: 0;\n\tbackground-color: var(--wp-admin-theme-color, #3858e9);\n\ttransition:\n\t\tgrid-template-columns 0.3s cubic-bezier(0.15, 0, 0.15, 1),\n\t\tcolumn-gap 0.3s cubic-bezier(0.15, 0, 0.15, 1),\n\t\tpadding-inline-end 0.3s cubic-bezier(0.15, 0, 0.15, 1);\n}\n.editor-avatar.is-badge:hover {\n\tgrid-template-columns: min-content 1fr;\n\tcolumn-gap: 4px;\n\tpadding-inline-end: 8px;\n\ttransition-timing-function: cubic-bezier(0.85, 0, 0.85, 1);\n}\n.editor-avatar.is-badge:hover .editor-avatar__name {\n\topacity: 1;\n\ttransition-timing-function: cubic-bezier(0.85, 0, 0.85, 1);\n}\n.editor-avatar.is-badge.has-avatar-border-color {\n\tbackground-color: var(--editor-avatar-outline-color);\n}\n@media (prefers-reduced-motion: reduce) {\n\t.editor-avatar.is-badge,\n\t.editor-avatar__name {\n\t\ttransition: none;\n\t}\n}\n";
|
|
11
11
|
//# sourceMappingURL=avatar-iframe-styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar-iframe-styles.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/avatar-iframe-styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAgBH,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"avatar-iframe-styles.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/avatar-iframe-styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAgBH,eAAO,MAAM,oBAAoB,kiGA6GhC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ResolvedSelection } from '@wordpress/core-data';
|
|
2
|
+
import type { CursorCoords, SelectionRect } from './cursor-dom-utils';
|
|
3
|
+
/** Common parameters passed to cursor/selection computation helpers. */
|
|
4
|
+
interface OverlayContext {
|
|
5
|
+
editorDocument: Document;
|
|
6
|
+
overlayRect: DOMRect;
|
|
7
|
+
}
|
|
8
|
+
/** Result of computing visual cursor/selection state for a single user. */
|
|
9
|
+
export interface SelectionVisual {
|
|
10
|
+
coords?: CursorCoords | null;
|
|
11
|
+
selectionRects?: SelectionRect[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Compute cursor coords and optional selection rects for a single user's selection.
|
|
15
|
+
*
|
|
16
|
+
* @param selection - The selection state from the awareness layer.
|
|
17
|
+
* @param start - Start position (block clientId + text index).
|
|
18
|
+
* @param end - End position (only for range selections).
|
|
19
|
+
* @param overlayContext - Shared editor document / overlay references.
|
|
20
|
+
* @return Cursor coordinates and optional selection rectangles.
|
|
21
|
+
*/
|
|
22
|
+
export declare function computeSelectionVisual(selection: any, start: ResolvedSelection, end: ResolvedSelection | undefined, overlayContext: OverlayContext): SelectionVisual;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=compute-selection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-selection.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/compute-selection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAS9D,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEtE,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;AAED;;;;;;;;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"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export interface SelectionRect {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
export interface CursorCoords {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
height: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Given a selection, returns the coordinates of the cursor in the block.
|
|
14
|
+
*
|
|
15
|
+
* @param absolutePositionIndex - The absolute position index
|
|
16
|
+
* @param blockElement - The block element (or null if deleted)
|
|
17
|
+
* @param editorDocument - The editor document
|
|
18
|
+
* @param overlayRect - Pre-computed bounding rect of the overlay element
|
|
19
|
+
* @return The position of the cursor
|
|
20
|
+
*/
|
|
21
|
+
export declare const getCursorPosition: (absolutePositionIndex: number | null, blockElement: HTMLElement | null, editorDocument: Document, overlayRect: DOMRect) => CursorCoords | null;
|
|
22
|
+
/**
|
|
23
|
+
* Computes selection highlight rectangles for a text range within a single block.
|
|
24
|
+
*
|
|
25
|
+
* @param blockElement - The block element
|
|
26
|
+
* @param startOffset - Start character offset within the block
|
|
27
|
+
* @param endOffset - End character offset within the block
|
|
28
|
+
* @param editorDocument - The editor document
|
|
29
|
+
* @param overlayRect - Pre-computed bounding rect of the overlay element
|
|
30
|
+
* @return Array of selection rectangles relative to the overlay, or null on failure
|
|
31
|
+
*/
|
|
32
|
+
export declare const getSelectionRects: (blockElement: HTMLElement, startOffset: number, endOffset: number, editorDocument: Document, overlayRect: DOMRect) => SelectionRect[] | null;
|
|
33
|
+
/**
|
|
34
|
+
* Computes selection highlight rectangles for the full content of a block.
|
|
35
|
+
* Used for intermediate blocks in a multi-block selection.
|
|
36
|
+
*
|
|
37
|
+
* @param blockElement - The block element
|
|
38
|
+
* @param editorDocument - The editor document
|
|
39
|
+
* @param overlayRect - Pre-computed bounding rect of the overlay element
|
|
40
|
+
* @return Array of selection rectangles relative to the overlay
|
|
41
|
+
*/
|
|
42
|
+
export declare const getFullBlockSelectionRects: (blockElement: HTMLElement, editorDocument: Document, overlayRect: DOMRect) => SelectionRect[];
|
|
43
|
+
/**
|
|
44
|
+
* Finds all block elements between two blocks in DOM order (exclusive of start and end).
|
|
45
|
+
*
|
|
46
|
+
* @param startBlockId - The clientId of the start block
|
|
47
|
+
* @param endBlockId - The clientId of the end block
|
|
48
|
+
* @param editorDocument - The editor document
|
|
49
|
+
* @return Array of intermediate block HTMLElements in document order
|
|
50
|
+
*/
|
|
51
|
+
export declare const getBlocksBetween: (startBlockId: string, endBlockId: string, editorDocument: Document) => HTMLElement[];
|
|
52
|
+
/**
|
|
53
|
+
* Given a block element and a character offset, returns an exact inner node and offset for use in a range.
|
|
54
|
+
*
|
|
55
|
+
* @param blockElement - The block element
|
|
56
|
+
* @param offset - The character offset
|
|
57
|
+
* @param editorDocument - The editor document
|
|
58
|
+
* @return The node and offset of the character at the offset
|
|
59
|
+
*/
|
|
60
|
+
export declare const findInnerBlockOffset: (blockElement: HTMLElement, offset: number, editorDocument: Document) => {
|
|
61
|
+
node: Node;
|
|
62
|
+
offset: number;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Check if node `a` precedes node `b` in document order.
|
|
66
|
+
*
|
|
67
|
+
* @param a - First node.
|
|
68
|
+
* @param b - Second node.
|
|
69
|
+
* @return True if `a` comes before `b`.
|
|
70
|
+
*/
|
|
71
|
+
export declare const isNodeBefore: (a: Node, b: Node) => boolean;
|
|
72
|
+
//# sourceMappingURL=cursor-dom-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cursor-dom-utils.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/cursor-dom-utils.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC7B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;CACf;AAID;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAC7B,uBAAuB,MAAM,GAAG,IAAI,EACpC,cAAc,WAAW,GAAG,IAAI,EAChC,gBAAgB,QAAQ,EACxB,aAAa,OAAO,KAClB,YAAY,GAAG,IAajB,CAAC;AAqEF;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,GAC7B,cAAc,WAAW,EACzB,aAAa,MAAM,EACnB,WAAW,MAAM,EACjB,gBAAgB,QAAQ,EACxB,aAAa,OAAO,KAClB,aAAa,EAAE,GAAG,IA2DpB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,GACtC,cAAc,WAAW,EACzB,gBAAgB,QAAQ,EACxB,aAAa,OAAO,KAClB,aAAa,EAgCf,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAC5B,cAAc,MAAM,EACpB,YAAY,MAAM,EAClB,gBAAgB,QAAQ,KACtB,WAAW,EA+Bb,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAChC,cAAc,WAAW,EACzB,QAAQ,MAAM,EACd,gBAAgB,QAAQ;;;CAgFxB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GAAK,GAAG,IAAI,EAAE,GAAG,IAAI,KAAI,OACkB,CAAC"}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* CSS for the collaborators overlay — cursor indicators, block highlights,
|
|
3
3
|
* and positioning of Avatar labels inside the editor canvas iframe.
|
|
4
4
|
*/
|
|
5
|
-
export declare const OVERLAY_IFRAME_STYLES = "\n.block-canvas-cover {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tpointer-events: none;\n\tz-index: 20000;\n}\n.block-canvas-cover .collaborators-overlay-full {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n}\n.block-canvas-cover .collaborators-overlay-fixed {\n\tposition: fixed;\n\twidth: 100%;\n\theight: 100%;\n}\n.collaborators-overlay-user {\n\tposition: absolute;\n}\n/* Cursor lines render below avatar labels across all users. The parent\n .collaborators-overlay-user has no z-index so it does not create a\n stacking context \u2014 children participate in the shared overlay context. */\n.collaborators-overlay-user-cursor {\n\tposition: absolute;\n\tz-index: 0;\n\twidth: 2px;\n\tborder-radius: 1px;\n\toutline: 1px solid #fff;\n\tbox-shadow: 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);\n\tanimation: collaborators-overlay-cursor-blink 1s infinite;\n}\n\n/* Overlay-specific positioning applied to the Avatar cursor label. */\n.collaborators-overlay-user-label.editor-avatar {\n\tposition: absolute;\n\tz-index: 1;\n\ttransform: translate(-11px, -100%);\n\tmargin-top: -4px;\n\tpointer-events: auto;\n\toverflow: visible;\n\twidth: max-content;\n}\n/* Avatar positioned above a highlighted block as a label. */\n.collaborators-overlay-block-label.editor-avatar {\n\tposition: absolute;\n\tz-index: 1;\n\ttransform: translateY(calc(-100% - 8px));\n\tpointer-events: auto;\n\toverflow: visible;\n\twidth: max-content;\n}\n\n@keyframes collaborators-overlay-cursor-blink {\n\t0%, 45% { opacity: 1; }\n\t55%, 95% { opacity: 0; }\n\t100% { opacity: 1; }\n}\n.collaborators-overlay-cursor-highlighted .collaborators-overlay-user-cursor {\n\tanimation: collaborators-overlay-cursor-highlight 0.6s ease-in-out 3;\n}\n.collaborators-overlay-cursor-highlighted .collaborators-overlay-user-label {\n\tanimation: collaborators-overlay-label-highlight 0.6s ease-in-out 3;\n}\n@keyframes collaborators-overlay-cursor-highlight {\n\t0%, 100% {\n\t\ttransform: scale(1);\n\t\tfilter: drop-shadow(0 0 0 transparent);\n\t}\n\t50% {\n\t\ttransform: scale(1.2);\n\t\tfilter: drop-shadow(0 0 8px currentColor);\n\t}\n}\n@keyframes collaborators-overlay-label-highlight {\n\t0%, 100% {\n\t\ttransform: translate(-11px, -100%) scale(1);\n\t\tfilter: drop-shadow(0 0 0 transparent);\n\t}\n\t50% {\n\t\ttransform: translate(-11px, -100%) scale(1.1);\n\t\tfilter: drop-shadow(0 0 6px currentColor);\n\t}\n}\n.block-editor-block-list__block.is-collaborator-selected:not(:focus)::after {\n\tcontent: \"\";\n\tposition: absolute;\n\tpointer-events: none;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n\toutline-color: var(--collaborator-outline-color);\n\toutline-style: solid;\n\toutline-width: calc(var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1));\n\toutline-offset: calc(-1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1));\n\tbox-shadow: inset 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + 1px) #fff, 0 0 0 1px #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);\n\tz-index: 1;\n}\n@media (prefers-reduced-motion: reduce) {\n\t.collaborators-overlay-user-label,\n\t.collaborators-overlay-user-cursor {\n\t\tanimation: none;\n\t}\n}\n";
|
|
5
|
+
export declare const OVERLAY_IFRAME_STYLES = "\n.block-canvas-cover {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tpointer-events: none;\n\tz-index: 20000;\n}\n.block-canvas-cover .collaborators-overlay-full {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n}\n.block-canvas-cover .collaborators-overlay-fixed {\n\tposition: fixed;\n\twidth: 100%;\n\theight: 100%;\n}\n.collaborators-overlay-user {\n\tposition: absolute;\n}\n/* Cursor lines render below avatar labels across all users. The parent\n .collaborators-overlay-user has no z-index so it does not create a\n stacking context \u2014 children participate in the shared overlay context. */\n.collaborators-overlay-user-cursor {\n\tposition: absolute;\n\tz-index: 0;\n\twidth: 2px;\n\tborder-radius: 1px;\n\toutline: 1px solid #fff;\n\tbox-shadow: 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);\n\tanimation: collaborators-overlay-cursor-blink 1s infinite;\n}\n.collaborators-overlay-selection-rect {\n\tposition: absolute;\n\topacity: 0.15;\n\tpointer-events: none;\n\tborder-radius: 2px;\n}\n\n/* Overlay-specific positioning applied to the Avatar cursor label. */\n.collaborators-overlay-user-label.editor-avatar {\n\tposition: absolute;\n\tz-index: 1;\n\ttransform: translate(-11px, -100%);\n\tmargin-top: -4px;\n\tpointer-events: auto;\n\toverflow: visible;\n\twidth: max-content;\n}\n/* Avatar positioned above a highlighted block as a label. */\n.collaborators-overlay-block-label.editor-avatar {\n\tposition: absolute;\n\tz-index: 1;\n\ttransform: translateY(calc(-100% - 8px));\n\tpointer-events: auto;\n\toverflow: visible;\n\twidth: max-content;\n}\n\n@keyframes collaborators-overlay-cursor-blink {\n\t0%, 45% { opacity: 1; }\n\t55%, 95% { opacity: 0; }\n\t100% { opacity: 1; }\n}\n.collaborators-overlay-cursor-highlighted .collaborators-overlay-user-cursor {\n\tanimation: collaborators-overlay-cursor-highlight 0.6s ease-in-out 3;\n}\n.collaborators-overlay-cursor-highlighted .collaborators-overlay-user-label {\n\tanimation: collaborators-overlay-label-highlight 0.6s ease-in-out 3;\n}\n@keyframes collaborators-overlay-cursor-highlight {\n\t0%, 100% {\n\t\ttransform: scale(1);\n\t\tfilter: drop-shadow(0 0 0 transparent);\n\t}\n\t50% {\n\t\ttransform: scale(1.2);\n\t\tfilter: drop-shadow(0 0 8px currentColor);\n\t}\n}\n@keyframes collaborators-overlay-label-highlight {\n\t0%, 100% {\n\t\ttransform: translate(-11px, -100%) scale(1);\n\t\tfilter: drop-shadow(0 0 0 transparent);\n\t}\n\t50% {\n\t\ttransform: translate(-11px, -100%) scale(1.1);\n\t\tfilter: drop-shadow(0 0 6px currentColor);\n\t}\n}\n.block-editor-block-list__block.is-collaborator-selected:not(:focus)::after {\n\tcontent: \"\";\n\tposition: absolute;\n\tpointer-events: none;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n\toutline-color: var(--collaborator-outline-color);\n\toutline-style: solid;\n\toutline-width: calc(var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1));\n\toutline-offset: calc(-1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1));\n\tbox-shadow: inset 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + 1px) #fff, 0 0 0 1px #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);\n\tz-index: 1;\n}\n@media (prefers-reduced-motion: reduce) {\n\t.collaborators-overlay-user-label,\n\t.collaborators-overlay-user-cursor {\n\t\tanimation: none;\n\t}\n}\n";
|
|
6
6
|
//# sourceMappingURL=overlay-iframe-styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay-iframe-styles.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/overlay-iframe-styles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"overlay-iframe-styles.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/overlay-iframe-styles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,eAAO,MAAM,qBAAqB,8/GAoHjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/overlay.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/overlay.tsx"],"names":[],"mappings":"AAoBA,UAAU,YAAY;IACrB,mBAAmB,CAAC,EAAE,QAAQ,CAAC;IAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAE,EACxB,mBAAmB,EACnB,MAAM,EACN,QAAQ,GACR,EAAE,YAAY,+BA0Hd"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Like setInterval but chains setTimeout calls, so the delay is measured from
|
|
3
|
+
* the end of one run to the start of the next. This prevents callbacks from
|
|
4
|
+
* stacking up when the main thread is busy.
|
|
5
|
+
*
|
|
6
|
+
* @param callback The function to call repeatedly.
|
|
7
|
+
* @param delayMs Milliseconds between runs.
|
|
8
|
+
* @return A cleanup function that stops the timer.
|
|
9
|
+
*/
|
|
10
|
+
export declare function setDelayedInterval(callback: () => void, delayMs: number): () => void;
|
|
11
|
+
//# sourceMappingURL=timing-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timing-utils.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/timing-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAE,QAAQ,EAAE,MAAM,IAAI,EAAE,OAAO,EAAE,MAAM,cAoBxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-block-highlighting.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-block-highlighting.ts"],"names":[],"mappings":"AAqBA,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,
|
|
1
|
+
{"version":3,"file":"use-block-highlighting.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-block-highlighting.ts"],"names":[],"mappings":"AAqBA,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,CA8JA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { SelectionRect } from './cursor-dom-utils';
|
|
2
|
+
export type { SelectionRect };
|
|
1
3
|
export interface CursorData {
|
|
2
4
|
userName: string;
|
|
3
5
|
clientId: number;
|
|
@@ -6,6 +8,8 @@ export interface CursorData {
|
|
|
6
8
|
x: number;
|
|
7
9
|
y: number;
|
|
8
10
|
height: number;
|
|
11
|
+
isMe?: boolean;
|
|
12
|
+
selectionRects?: SelectionRect[];
|
|
9
13
|
}
|
|
10
14
|
/**
|
|
11
15
|
* Custom hook that computes cursor positions for each remote user in the editor.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-render-cursors.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-render-cursors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-render-cursors.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-render-cursors.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAKxD,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,CAiIxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-presence/index.tsx"],"names":[],"mappings":"AAeA,OAAO,sCAAsC,CAAC;AAK9C,UAAU,0BAA0B;IACnC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAE,EACtC,MAAM,EACN,QAAQ,GACR,EAAE,0BAA0B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-presence/index.tsx"],"names":[],"mappings":"AAeA,OAAO,sCAAsC,CAAC;AAK9C,UAAU,0BAA0B;IACnC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAE,EACtC,MAAM,EACN,QAAQ,GACR,EAAE,0BAA0B,sCA+F5B"}
|
|
@@ -7,7 +7,8 @@ interface CollaboratorsListProps {
|
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Renders a list showing all active collaborators with their details.
|
|
10
|
-
*
|
|
10
|
+
* When the showCollaborationCursor preference is enabled, the current user
|
|
11
|
+
* is included and expected to be first in the list.
|
|
11
12
|
* @param props Component props
|
|
12
13
|
* @param props.activeCollaborators List of active collaborators
|
|
13
14
|
* @param props.popoverAnchor Anchor element for the popover
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-presence/list.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAMrE,OAAO,kCAAkC,CAAC;AAE1C,UAAU,sBAAsB;IAC/B,mBAAmB,EAAE,wBAAwB,EAAE,CAAC;IAChD,aAAa,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACnC,mBAAmB,EAAE,CAAE,SAAS,EAAE,OAAO,KAAM,IAAI,CAAC;CACpD;AAED
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-presence/list.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAMrE,OAAO,kCAAkC,CAAC;AAE1C,UAAU,sBAAsB;IAC/B,mBAAmB,EAAE,wBAAwB,EAAE,CAAC;IAChD,aAAa,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACnC,mBAAmB,EAAE,CAAE,SAAS,EAAE,OAAO,KAAM,IAAI,CAAC;CACpD;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAE,EAClC,mBAAmB,EACnB,aAAa,EACb,mBAAmB,GACnB,EAAE,sBAAsB,+BAmExB"}
|
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":"
|
|
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,CAmIN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor-interface/index.js"],"names":[],"mappings":"AA0DA;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor-interface/index.js"],"names":[],"mappings":"AA0DA;;;;;;;;;;;gCAqOC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/inserter-sidebar/index.js"],"names":[],"mappings":"AAsBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/inserter-sidebar/index.js"],"names":[],"mappings":"AAsBA,uEA0FC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: {
|
|
2
2
|
new (props: {
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
}): {
|
|
@@ -48,7 +48,7 @@ declare const _default: typeof PostLockedModal | {
|
|
|
48
48
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
49
49
|
}[];
|
|
50
50
|
contextType?: import("react").Context<any> | undefined;
|
|
51
|
-
};
|
|
51
|
+
} | typeof PostLockedModal;
|
|
52
52
|
export default _default;
|
|
53
53
|
declare function PostLockedModal(): import("react").JSX.Element | null;
|
|
54
54
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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":";;;;;;;;wJAsDgE,CAAA;4BAC7D,CAAD;;;;;;6BAQ+C,CAAC;yBAOzC,CAAC;+BAKF,CAAA;0BAIL,CAAF,2DAEkB,CAAC;0BAET,CAAC;iCAER,CAAC;iCACc,CAAC;wCAEiC,CAAC;2BAGnD,CAAH;kCAEmD,CAAC;;;;;;;wJAclB,CAAA;4BAER,CAAC;;;;;;6BAYyC,CAAC;yBAGlE,CAAF;+BAGG,CAAC;0BAIa,CAAC,2DAC2B,CAAC;0BAG1C,CAAJ;iCAEI,CAAJ;iCAC8B,CAAC;wCAIb,CAAC;2BAGH,CAAC;kCAQX,CAAC;;;;;AA7FR,uEAsQC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-diff.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/block-diff.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"block-diff.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/block-diff.js"],"names":[],"mappings":"AAglBA;;;;;;GAMG;AACH,oDAJW,MAAM,mBACN,MAAM,SAqBhB"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Canvas component that renders a post revision in read-only mode.
|
|
3
|
+
* Block preparation and settings are handled by the parent EditorProvider.
|
|
3
4
|
*
|
|
4
|
-
* @param {Object} props Component props.
|
|
5
|
-
* @param {boolean} props.showDiff Whether to show diff highlighting.
|
|
6
5
|
* @return {React.JSX.Element} The revisions canvas component.
|
|
7
6
|
*/
|
|
8
|
-
export default function RevisionsCanvas(
|
|
9
|
-
showDiff: boolean;
|
|
10
|
-
}): React.JSX.Element;
|
|
7
|
+
export default function RevisionsCanvas(): React.JSX.Element;
|
|
11
8
|
//# sourceMappingURL=revisions-canvas.d.ts.map
|
|
@@ -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":"AA8IA;;;;;GAKG;AACH,2CAFY,KAAK,CAAC,GAAG,CAAC,OAAO,CAgC5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revisions-slider.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/revisions-slider.js"],"names":[],"mappings":";AAgBA;;;;GAIG;AACH,oCAFY,KAAK,CAAC,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"revisions-slider.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/revisions-slider.js"],"names":[],"mappings":";AAgBA;;;;GAIG;AACH,oCAFY,KAAK,CAAC,GAAG,CAAC,OAAO,CA4G5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-theme.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/block-theme.js"],"names":[],"mappings":"AA2BA
|
|
1
|
+
{"version":3,"file":"block-theme.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/block-theme.js"],"names":[],"mappings":"AA2BA,gFA2LC"}
|
|
@@ -4,5 +4,6 @@ export function useEditedPostContext(): {
|
|
|
4
4
|
};
|
|
5
5
|
export function useAllowSwitchingTemplates(): boolean;
|
|
6
6
|
export function useAvailableTemplates(postType: any): false | (import("@wordpress/core-data").UnstableBase<any> | import("@wordpress/core-data").Attachment<any> | import("@wordpress/core-data").Comment<any> | import("@wordpress/core-data").FontCollection<any> | import("@wordpress/core-data").GlobalStylesRevision<any> | import("@wordpress/core-data").Icon<any> | import("@wordpress/core-data").MenuLocation<any> | import("@wordpress/core-data").NavMenu<any> | import("@wordpress/core-data").NavMenuItem<any> | import("@wordpress/core-data").Page<any> | import("@wordpress/core-data").Plugin<any> | import("@wordpress/core-data").Post<any> | import("@wordpress/core-data").PostStatusObject<any> | import("@wordpress/core-data").PostRevision<any> | import("@wordpress/core-data").Settings<any> | import("@wordpress/core-data").Sidebar<any> | import("@wordpress/core-data").Taxonomy<any> | import("@wordpress/core-data").Term<any> | import("@wordpress/core-data").Theme<any> | import("@wordpress/core-data").User<any> | import("@wordpress/core-data").Type<any> | import("@wordpress/core-data").Widget<any> | import("@wordpress/core-data").WidgetType<any> | import("@wordpress/core-data").WpFontFamily<any> | import("@wordpress/core-data").WpTemplate<any> | import("@wordpress/core-data").WpTemplatePart<any> | Partial<import("@wordpress/core-data").UnstableBase<any> | import("@wordpress/core-data").Attachment<any> | import("@wordpress/core-data").Comment<any> | import("@wordpress/core-data").FontCollection<any> | import("@wordpress/core-data").GlobalStylesRevision<any> | import("@wordpress/core-data").Icon<any> | import("@wordpress/core-data").MenuLocation<any> | import("@wordpress/core-data").NavMenu<any> | import("@wordpress/core-data").NavMenuItem<any> | import("@wordpress/core-data").Page<any> | import("@wordpress/core-data").Plugin<any> | import("@wordpress/core-data").Post<any> | import("@wordpress/core-data").PostStatusObject<any> | import("@wordpress/core-data").PostRevision<any> | import("@wordpress/core-data").Settings<any> | import("@wordpress/core-data").Sidebar<any> | import("@wordpress/core-data").Taxonomy<any> | import("@wordpress/core-data").Term<any> | import("@wordpress/core-data").Theme<any> | import("@wordpress/core-data").User<any> | import("@wordpress/core-data").Type<any> | import("@wordpress/core-data").Widget<any> | import("@wordpress/core-data").WidgetType<any> | import("@wordpress/core-data").WpFontFamily<any> | import("@wordpress/core-data").WpTemplate<any> | import("@wordpress/core-data").WpTemplatePart<any>>)[] | undefined;
|
|
7
|
+
export function usePostTemplatePanelMode(): "classic" | "block-theme" | null;
|
|
7
8
|
export function useCurrentTemplateSlug(): any;
|
|
8
9
|
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/hooks.js"],"names":[],"mappings":"AAYA;;;EAQC;AACD,sDA8BC;AAeD,+gFAeC;AAED,8CAuBC"}
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/hooks.js"],"names":[],"mappings":"AAYA;;;EAQC;AACD,sDA8BC;AAeD,+gFAeC;AAED,6EAwCC;AAED,8CAuBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/panel.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/panel.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,6CAFY,KAAK,CAAC,SAAS,CAW1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disable-non-page-content-blocks.d.ts","sourceRoot":"","sources":["../../../src/components/provider/disable-non-page-content-blocks.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"disable-non-page-content-blocks.d.ts","sourceRoot":"","sources":["../../../src/components/provider/disable-non-page-content-blocks.js"],"names":[],"mappings":"AAcA;;;GAGG;AACH,4DAiGC"}
|
|
@@ -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":"AA6dA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAgC,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ,GAAhC,KAAK,CAAC,SAAS;CAGvB,GAWS,KAAK,CAAC,SAAS,CAW1B;AAtXD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GAmTE"}
|
|
@@ -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":";AA+GA;;;;;;;;;GASG;AACH,kDAPW,MAAM,YACN,MAAM,UACN,MAAM,iBACN,MAAM,GAEL,MAAM,CAoUjB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the list of post content block types, including any added via the
|
|
3
|
+
* `editor.postContentBlockTypes` filter. The result is memoized so it can be
|
|
4
|
+
* used as a stable dependency in `useSelect` calls.
|
|
5
|
+
*
|
|
6
|
+
* @return {string[]} Block type names considered post content.
|
|
7
|
+
*/
|
|
8
|
+
export default function usePostContentBlockTypes(): string[];
|
|
9
|
+
//# sourceMappingURL=use-post-content-block-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-post-content-block-types.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-post-content-block-types.js"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,oDAFY,MAAM,EAAE,CAYnB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook that computes revision blocks when in revisions mode.
|
|
3
|
+
*
|
|
4
|
+
* Returns `null` when not in revisions mode, `[]` when loading,
|
|
5
|
+
* or the computed blocks array when ready.
|
|
6
|
+
*
|
|
7
|
+
* @return {Array|null} The revision blocks, or null if not in revisions mode.
|
|
8
|
+
*/
|
|
9
|
+
export function useRevisionBlocks(): any[] | null;
|
|
10
|
+
//# sourceMappingURL=use-revision-blocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-revision-blocks.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-revision-blocks.js"],"names":[],"mappings":"AAeA;;;;;;;GAOG;AACH,qCAFY,QAAM,IAAI,CAmFrB"}
|