@wordpress/editor 14.42.0 → 14.43.1-next.v.202604091042.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 +2 -0
- package/README.md +8 -0
- package/build/components/autocompleters/index.cjs +3 -0
- package/build/components/autocompleters/index.cjs.map +2 -2
- package/build/components/autocompleters/link.cjs +71 -0
- package/build/components/autocompleters/link.cjs.map +7 -0
- package/build/components/collaborators-overlay/cursor-dom-utils.cjs +1 -1
- package/build/components/collaborators-overlay/cursor-dom-utils.cjs.map +2 -2
- 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 +1 -1
- package/build/components/collaborators-overlay/overlay-iframe-styles.cjs.map +2 -2
- package/build/components/collaborators-overlay/overlay.cjs +31 -1
- package/build/components/collaborators-overlay/overlay.cjs.map +2 -2
- package/build/components/collaborators-overlay/timing-utils.cjs +1 -1
- package/build/components/collaborators-overlay/timing-utils.cjs.map +2 -2
- package/build/components/collaborators-overlay/use-render-cursors.cjs.map +2 -2
- package/build/components/collaborators-presence/index.cjs +14 -4
- package/build/components/collaborators-presence/index.cjs.map +2 -2
- package/build/components/collaborators-presence/list.cjs +20 -4
- package/build/components/collaborators-presence/list.cjs.map +2 -2
- package/build/components/error-boundary/index.cjs +1 -1
- package/build/components/error-boundary/index.cjs.map +2 -2
- package/build/components/post-card-panel/index.cjs +4 -15
- package/build/components/post-card-panel/index.cjs.map +2 -2
- package/build/components/post-content-information/index.cjs +10 -13
- package/build/components/post-content-information/index.cjs.map +2 -2
- package/build/components/post-revisions-panel/index.cjs +164 -0
- package/build/components/post-revisions-panel/index.cjs.map +7 -0
- package/build/components/post-revisions-preview/revisions-slider.cjs +23 -12
- package/build/components/post-revisions-preview/revisions-slider.cjs.map +2 -2
- package/build/components/post-template/create-new-template-modal.cjs +39 -46
- package/build/components/post-template/create-new-template-modal.cjs.map +2 -2
- package/build/components/post-template/hooks.cjs +52 -6
- package/build/components/post-template/hooks.cjs.map +2 -2
- package/build/components/post-template/swap-template-button.cjs +31 -20
- package/build/components/post-template/swap-template-button.cjs.map +2 -2
- package/build/components/post-title/index.cjs +2 -2
- package/build/components/post-title/index.cjs.map +2 -2
- package/build/components/preferences-modal/index.cjs +35 -27
- package/build/components/preferences-modal/index.cjs.map +2 -2
- package/build/components/revision-block-diff/index.cjs +9 -32
- package/build/components/revision-block-diff/index.cjs.map +3 -3
- 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/dataform-post-summary.cjs +8 -53
- package/build/components/sidebar/dataform-post-summary.cjs.map +2 -2
- package/build/components/sidebar/index.cjs +25 -22
- package/build/components/sidebar/index.cjs.map +3 -3
- package/build/components/sidebar/post-revision-summary.cjs +74 -0
- package/build/components/sidebar/post-revision-summary.cjs.map +7 -0
- package/build/components/sidebar/post-summary.cjs +35 -42
- package/build/components/sidebar/post-summary.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/styles-canvas/revisions.cjs +2 -2
- package/build/components/styles-canvas/revisions.cjs.map +1 -1
- package/build/components/sync-connection-error-modal/index.cjs +58 -75
- package/build/components/sync-connection-error-modal/index.cjs.map +3 -3
- package/build/components/sync-connection-error-modal/use-retry-countdown.cjs +32 -9
- package/build/components/sync-connection-error-modal/use-retry-countdown.cjs.map +2 -2
- package/build/components/template-actions-panel/block-theme-content.cjs +188 -0
- package/build/components/template-actions-panel/block-theme-content.cjs.map +7 -0
- package/build/components/template-actions-panel/classic-theme-content.cjs +159 -0
- package/build/components/template-actions-panel/classic-theme-content.cjs.map +7 -0
- package/build/components/template-actions-panel/index.cjs +59 -0
- package/build/components/template-actions-panel/index.cjs.map +7 -0
- package/build/dataviews/store/private-actions.cjs +2 -0
- package/build/dataviews/store/private-actions.cjs.map +2 -2
- package/build/hooks/default-autocompleters.cjs +1 -1
- package/build/hooks/default-autocompleters.cjs.map +2 -2
- package/build/store/private-actions.cjs +15 -1
- package/build/store/private-actions.cjs.map +2 -2
- package/build/store/private-selectors.cjs +42 -19
- package/build/store/private-selectors.cjs.map +2 -2
- package/build/store/reducer.cjs +1 -1
- package/build/store/reducer.cjs.map +2 -2
- package/build-module/components/autocompleters/index.mjs +4 -2
- package/build-module/components/autocompleters/index.mjs.map +2 -2
- package/build-module/components/autocompleters/link.mjs +40 -0
- package/build-module/components/autocompleters/link.mjs.map +7 -0
- package/build-module/components/collaborators-overlay/cursor-dom-utils.mjs +1 -1
- package/build-module/components/collaborators-overlay/cursor-dom-utils.mjs.map +2 -2
- 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 +1 -1
- package/build-module/components/collaborators-overlay/overlay-iframe-styles.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/overlay.mjs +32 -2
- package/build-module/components/collaborators-overlay/overlay.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/timing-utils.mjs +1 -1
- package/build-module/components/collaborators-overlay/timing-utils.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/use-render-cursors.mjs.map +2 -2
- package/build-module/components/collaborators-presence/index.mjs +14 -4
- package/build-module/components/collaborators-presence/index.mjs.map +2 -2
- package/build-module/components/collaborators-presence/list.mjs +20 -4
- package/build-module/components/collaborators-presence/list.mjs.map +2 -2
- package/build-module/components/error-boundary/index.mjs +1 -1
- package/build-module/components/error-boundary/index.mjs.map +2 -2
- package/build-module/components/post-card-panel/index.mjs +6 -17
- package/build-module/components/post-card-panel/index.mjs.map +2 -2
- package/build-module/components/post-content-information/index.mjs +6 -13
- package/build-module/components/post-content-information/index.mjs.map +2 -2
- package/build-module/components/post-revisions-panel/index.mjs +139 -0
- package/build-module/components/post-revisions-panel/index.mjs.map +7 -0
- package/build-module/components/post-revisions-preview/revisions-slider.mjs +23 -12
- package/build-module/components/post-revisions-preview/revisions-slider.mjs.map +2 -2
- package/build-module/components/post-template/create-new-template-modal.mjs +39 -46
- package/build-module/components/post-template/create-new-template-modal.mjs.map +2 -2
- package/build-module/components/post-template/hooks.mjs +53 -7
- package/build-module/components/post-template/hooks.mjs.map +2 -2
- package/build-module/components/post-template/swap-template-button.mjs +27 -20
- package/build-module/components/post-template/swap-template-button.mjs.map +2 -2
- package/build-module/components/post-title/index.mjs +2 -2
- package/build-module/components/post-title/index.mjs.map +2 -2
- package/build-module/components/preferences-modal/index.mjs +35 -27
- package/build-module/components/preferences-modal/index.mjs.map +2 -2
- package/build-module/components/revision-block-diff/index.mjs +9 -32
- package/build-module/components/revision-block-diff/index.mjs.map +2 -2
- 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/dataform-post-summary.mjs +8 -53
- package/build-module/components/sidebar/dataform-post-summary.mjs.map +2 -2
- package/build-module/components/sidebar/index.mjs +25 -22
- package/build-module/components/sidebar/index.mjs.map +2 -2
- package/build-module/components/sidebar/post-revision-summary.mjs +43 -0
- package/build-module/components/sidebar/post-revision-summary.mjs.map +7 -0
- package/build-module/components/sidebar/post-summary.mjs +31 -42
- package/build-module/components/sidebar/post-summary.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/styles-canvas/revisions.mjs +2 -2
- package/build-module/components/styles-canvas/revisions.mjs.map +1 -1
- package/build-module/components/sync-connection-error-modal/index.mjs +58 -76
- package/build-module/components/sync-connection-error-modal/index.mjs.map +2 -2
- package/build-module/components/sync-connection-error-modal/use-retry-countdown.mjs +33 -10
- package/build-module/components/sync-connection-error-modal/use-retry-countdown.mjs.map +2 -2
- package/build-module/components/template-actions-panel/block-theme-content.mjs +167 -0
- package/build-module/components/template-actions-panel/block-theme-content.mjs.map +7 -0
- package/build-module/components/template-actions-panel/classic-theme-content.mjs +138 -0
- package/build-module/components/template-actions-panel/classic-theme-content.mjs.map +7 -0
- package/build-module/components/template-actions-panel/index.mjs +28 -0
- package/build-module/components/template-actions-panel/index.mjs.map +7 -0
- package/build-module/dataviews/store/private-actions.mjs +5 -1
- package/build-module/dataviews/store/private-actions.mjs.map +2 -2
- package/build-module/hooks/default-autocompleters.mjs +2 -2
- package/build-module/hooks/default-autocompleters.mjs.map +2 -2
- package/build-module/store/private-actions.mjs +15 -1
- package/build-module/store/private-actions.mjs.map +2 -2
- package/build-module/store/private-selectors.mjs +42 -19
- package/build-module/store/private-selectors.mjs.map +2 -2
- package/build-module/store/reducer.mjs +1 -1
- package/build-module/store/reducer.mjs.map +2 -2
- package/build-style/style-rtl.css +124 -44
- package/build-style/style.css +124 -44
- package/build-types/bindings/post-data.d.ts +3 -3
- package/build-types/bindings/term-data.d.ts +14 -14
- package/build-types/components/autocompleters/index.d.ts +1 -0
- package/build-types/components/autocompleters/link.d.ts +12 -0
- package/build-types/components/autocompleters/link.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 +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 +4 -1
- package/build-types/components/collaborators-overlay/overlay.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/use-render-cursors.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/index.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/list.d.ts +4 -1
- package/build-types/components/collaborators-presence/list.d.ts.map +1 -1
- package/build-types/components/keyboard-shortcut-help-modal/config.d.ts +11 -11
- package/build-types/components/post-actions/set-as-homepage.d.ts +1 -1
- package/build-types/components/post-actions/set-as-posts-page.d.ts +1 -1
- package/build-types/components/post-card-panel/index.d.ts.map +1 -1
- package/build-types/components/post-content-information/index.d.ts +4 -1
- package/build-types/components/post-content-information/index.d.ts.map +1 -1
- package/build-types/components/post-format/index.d.ts +10 -10
- package/build-types/components/post-locked-modal/index.d.ts +2 -2
- 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/revisions-slider.d.ts.map +1 -1
- package/build-types/components/post-status/index.d.ts +10 -10
- package/build-types/components/post-template/create-new-template-modal.d.ts.map +1 -1
- package/build-types/components/post-template/hooks.d.ts +1 -1
- package/build-types/components/post-template/hooks.d.ts.map +1 -1
- package/build-types/components/post-template/swap-template-button.d.ts +4 -0
- package/build-types/components/post-template/swap-template-button.d.ts.map +1 -1
- package/build-types/components/post-visibility/utils.d.ts +6 -6
- package/build-types/components/revision-block-diff/index.d.ts.map +1 -1
- 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.map +1 -1
- 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/sidebar/post-summary.d.ts +3 -0
- package/build-types/components/sidebar/post-summary.d.ts.map +1 -1
- 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 +0 -14
- package/build-types/components/sync-connection-error-modal/index.d.ts.map +1 -1
- package/build-types/components/sync-connection-error-modal/use-retry-countdown.d.ts.map +1 -1
- 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/dataviews/store/private-actions.d.ts.map +1 -1
- package/build-types/store/private-actions.d.ts.map +1 -1
- package/build-types/store/private-selectors.d.ts.map +1 -1
- package/build-types/store/reducer.d.ts +10 -10
- package/build-types/store/reducer.d.ts.map +1 -1
- package/build-types/utils/pageTypeBadge.d.ts +1 -1
- package/build-types/utils/pageTypeBadge.d.ts.map +1 -1
- package/package.json +45 -44
- package/src/components/autocompleters/index.js +1 -0
- package/src/components/autocompleters/link.js +47 -0
- package/src/components/autocompleters/style.scss +6 -0
- package/src/components/collaborators-overlay/cursor-dom-utils.ts +1 -1
- 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 +1 -1
- package/src/components/collaborators-overlay/overlay.tsx +45 -1
- package/src/components/collaborators-overlay/timing-utils.ts +1 -1
- package/src/components/collaborators-overlay/use-render-cursors.ts +4 -2
- package/src/components/collaborators-presence/index.tsx +9 -1
- package/src/components/collaborators-presence/list.tsx +25 -1
- package/src/components/error-boundary/index.js +1 -1
- package/src/components/error-boundary/index.native.js +1 -1
- package/src/components/post-card-panel/index.js +7 -21
- package/src/components/post-content-information/index.js +5 -16
- package/src/components/post-revisions-panel/index.js +151 -0
- package/src/components/post-revisions-panel/style.scss +16 -0
- package/src/components/post-revisions-preview/revisions-slider.js +23 -19
- package/src/components/post-template/create-new-template-modal.js +1 -4
- package/src/components/post-template/hooks.js +65 -9
- package/src/components/post-template/style.scss +0 -6
- package/src/components/post-template/swap-template-button.js +30 -21
- package/src/components/post-title/index.js +3 -3
- package/src/components/preferences-modal/index.js +37 -25
- package/src/components/revision-block-diff/index.js +8 -43
- package/src/components/revision-diff-panel/index.js +59 -0
- package/src/components/revision-fields-diff/index.js +91 -0
- package/src/components/sidebar/dataform-post-summary.js +8 -55
- package/src/components/sidebar/index.js +33 -22
- package/src/components/sidebar/post-revision-summary.js +50 -0
- package/src/components/sidebar/post-summary.js +22 -40
- package/src/components/sidebar/style.scss +7 -0
- package/src/components/style-book/index.js +4 -2
- package/src/components/styles-canvas/revisions.js +2 -2
- package/src/components/sync-connection-error-modal/index.tsx +128 -155
- package/src/components/sync-connection-error-modal/use-retry-countdown.ts +46 -10
- package/src/components/template-actions-panel/block-theme-content.js +196 -0
- package/src/components/template-actions-panel/classic-theme-content.js +170 -0
- package/src/components/template-actions-panel/index.js +32 -0
- package/src/components/template-actions-panel/style.scss +39 -0
- package/src/dataviews/store/private-actions.ts +6 -0
- package/src/hooks/default-autocompleters.js +2 -2
- package/src/hooks/test/default-autocompleters.js +2 -2
- package/src/store/private-actions.js +18 -2
- package/src/store/private-selectors.js +43 -22
- package/src/store/reducer.js +9 -8
- package/src/style.scss +3 -1
- /package/src/components/{revision-block-diff → revision-diff-panel}/style.scss +0 -0
package/build-style/style.css
CHANGED
|
@@ -1149,6 +1149,7 @@ button.font-library__upload-area {
|
|
|
1149
1149
|
background: #fff;
|
|
1150
1150
|
padding: 12px;
|
|
1151
1151
|
border-top: 1px solid #ddd;
|
|
1152
|
+
box-sizing: border-box;
|
|
1152
1153
|
}
|
|
1153
1154
|
|
|
1154
1155
|
.global-styles-ui-variations_item {
|
|
@@ -1668,13 +1669,11 @@ button.font-library__upload-area {
|
|
|
1668
1669
|
border-radius: 2px;
|
|
1669
1670
|
}
|
|
1670
1671
|
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
padding: 8px 0 0;
|
|
1677
|
-
overflow: hidden;
|
|
1672
|
+
.dataviews__view-actions--infinite-scroll {
|
|
1673
|
+
position: sticky;
|
|
1674
|
+
top: 0;
|
|
1675
|
+
z-index: 2;
|
|
1676
|
+
background-color: #fff;
|
|
1678
1677
|
}
|
|
1679
1678
|
|
|
1680
1679
|
.dataviews-bulk-actions-footer__item-count {
|
|
@@ -2508,45 +2507,55 @@ button.font-library__upload-area {
|
|
|
2508
2507
|
outline: 2px solid transparent;
|
|
2509
2508
|
}
|
|
2510
2509
|
|
|
2511
|
-
.dataviews-view-grid .dataviews-view-grid__card
|
|
2510
|
+
.dataviews-view-grid .dataviews-view-grid__card,
|
|
2511
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card {
|
|
2512
2512
|
height: 100%;
|
|
2513
2513
|
justify-content: flex-start;
|
|
2514
2514
|
position: relative;
|
|
2515
2515
|
}
|
|
2516
2516
|
|
|
2517
|
-
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title
|
|
2517
|
+
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title,
|
|
2518
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title {
|
|
2518
2519
|
padding: 8px 0 4px;
|
|
2519
2520
|
}
|
|
2520
2521
|
|
|
2521
|
-
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field
|
|
2522
|
+
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field,
|
|
2523
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field {
|
|
2522
2524
|
min-height: 24px;
|
|
2523
2525
|
overflow: hidden;
|
|
2524
2526
|
align-content: center;
|
|
2525
2527
|
text-align: start;
|
|
2526
2528
|
}
|
|
2527
2529
|
|
|
2528
|
-
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable
|
|
2530
|
+
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable,
|
|
2531
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable {
|
|
2529
2532
|
width: fit-content;
|
|
2530
2533
|
}
|
|
2531
2534
|
|
|
2532
|
-
.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value
|
|
2535
|
+
.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,
|
|
2536
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value {
|
|
2533
2537
|
color: #1e1e1e;
|
|
2534
2538
|
}
|
|
2535
2539
|
|
|
2536
2540
|
.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after,
|
|
2537
|
-
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus::after
|
|
2541
|
+
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus::after,
|
|
2542
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after,
|
|
2543
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__media:focus::after {
|
|
2538
2544
|
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08);
|
|
2539
2545
|
}
|
|
2540
2546
|
|
|
2541
|
-
.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after
|
|
2547
|
+
.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after,
|
|
2548
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after {
|
|
2542
2549
|
box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color);
|
|
2543
2550
|
}
|
|
2544
2551
|
|
|
2545
|
-
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus::after
|
|
2552
|
+
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus::after,
|
|
2553
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__media:focus::after {
|
|
2546
2554
|
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2547
2555
|
}
|
|
2548
2556
|
|
|
2549
|
-
.dataviews-view-grid .dataviews-view-grid__media
|
|
2557
|
+
.dataviews-view-grid .dataviews-view-grid__media,
|
|
2558
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media {
|
|
2550
2559
|
width: 100%;
|
|
2551
2560
|
aspect-ratio: 1/1;
|
|
2552
2561
|
background-color: #fff;
|
|
@@ -2555,17 +2564,20 @@ button.font-library__upload-area {
|
|
|
2555
2564
|
position: relative;
|
|
2556
2565
|
}
|
|
2557
2566
|
|
|
2558
|
-
.dataviews-view-grid .dataviews-view-grid__media.dataviews-view-grid__media--placeholder
|
|
2567
|
+
.dataviews-view-grid .dataviews-view-grid__media.dataviews-view-grid__media--placeholder,
|
|
2568
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media.dataviews-view-grid__media--placeholder {
|
|
2559
2569
|
aspect-ratio: 3/1;
|
|
2560
2570
|
}
|
|
2561
2571
|
|
|
2562
|
-
.dataviews-view-grid .dataviews-view-grid__media img
|
|
2572
|
+
.dataviews-view-grid .dataviews-view-grid__media img,
|
|
2573
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media img {
|
|
2563
2574
|
object-fit: cover;
|
|
2564
2575
|
width: 100%;
|
|
2565
2576
|
height: 100%;
|
|
2566
2577
|
}
|
|
2567
2578
|
|
|
2568
|
-
.dataviews-view-grid .dataviews-view-grid__media::after
|
|
2579
|
+
.dataviews-view-grid .dataviews-view-grid__media::after,
|
|
2580
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media::after {
|
|
2569
2581
|
content: "";
|
|
2570
2582
|
position: absolute;
|
|
2571
2583
|
top: 0;
|
|
@@ -2577,7 +2589,8 @@ button.font-library__upload-area {
|
|
|
2577
2589
|
pointer-events: none;
|
|
2578
2590
|
}
|
|
2579
2591
|
|
|
2580
|
-
.dataviews-view-grid .dataviews-view-grid__media .dataviews-view-grid__media-placeholder
|
|
2592
|
+
.dataviews-view-grid .dataviews-view-grid__media .dataviews-view-grid__media-placeholder,
|
|
2593
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media .dataviews-view-grid__media-placeholder {
|
|
2581
2594
|
width: 100%;
|
|
2582
2595
|
height: 100%;
|
|
2583
2596
|
display: block;
|
|
@@ -2586,28 +2599,33 @@ button.font-library__upload-area {
|
|
|
2586
2599
|
background: #f0f0f0;
|
|
2587
2600
|
}
|
|
2588
2601
|
|
|
2589
|
-
.dataviews-view-grid .dataviews-view-grid__fields
|
|
2602
|
+
.dataviews-view-grid .dataviews-view-grid__fields,
|
|
2603
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields {
|
|
2590
2604
|
position: relative;
|
|
2591
2605
|
font-size: 12px;
|
|
2592
2606
|
line-height: 16px;
|
|
2593
2607
|
}
|
|
2594
2608
|
|
|
2595
|
-
.dataviews-view-grid .dataviews-view-grid__fields:not(:empty)
|
|
2609
|
+
.dataviews-view-grid .dataviews-view-grid__fields:not(:empty),
|
|
2610
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields:not(:empty) {
|
|
2596
2611
|
padding: 0 0 12px;
|
|
2597
2612
|
}
|
|
2598
2613
|
|
|
2599
|
-
.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty)
|
|
2614
|
+
.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty),
|
|
2615
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty) {
|
|
2600
2616
|
min-height: 24px;
|
|
2601
2617
|
line-height: 20px;
|
|
2602
2618
|
padding-top: 2px;
|
|
2603
2619
|
}
|
|
2604
2620
|
|
|
2605
|
-
.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field
|
|
2621
|
+
.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field,
|
|
2622
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field {
|
|
2606
2623
|
min-height: 24px;
|
|
2607
2624
|
align-items: center;
|
|
2608
2625
|
}
|
|
2609
2626
|
|
|
2610
|
-
.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name
|
|
2627
|
+
.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name,
|
|
2628
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name {
|
|
2611
2629
|
width: 35%;
|
|
2612
2630
|
color: #757575;
|
|
2613
2631
|
overflow: hidden;
|
|
@@ -2615,28 +2633,33 @@ button.font-library__upload-area {
|
|
|
2615
2633
|
white-space: nowrap;
|
|
2616
2634
|
}
|
|
2617
2635
|
|
|
2618
|
-
.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value
|
|
2636
|
+
.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,
|
|
2637
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value {
|
|
2619
2638
|
width: 65%;
|
|
2620
2639
|
overflow: hidden;
|
|
2621
2640
|
text-overflow: ellipsis;
|
|
2622
2641
|
white-space: nowrap;
|
|
2623
2642
|
}
|
|
2624
2643
|
|
|
2625
|
-
.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty)))
|
|
2644
|
+
.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))),
|
|
2645
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))) {
|
|
2626
2646
|
display: none;
|
|
2627
2647
|
}
|
|
2628
2648
|
|
|
2629
|
-
.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty)
|
|
2649
|
+
.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty),
|
|
2650
|
+
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__badge-fields:not(:empty) {
|
|
2630
2651
|
padding-bottom: 12px;
|
|
2631
2652
|
}
|
|
2632
2653
|
|
|
2633
|
-
.dataviews-view-grid.is-refreshing
|
|
2654
|
+
.dataviews-view-grid.is-refreshing,
|
|
2655
|
+
.dataviews-view-grid-infinite-scroll.is-refreshing {
|
|
2634
2656
|
opacity: 0.5;
|
|
2635
2657
|
pointer-events: none;
|
|
2636
2658
|
}
|
|
2637
2659
|
|
|
2638
2660
|
@media not (prefers-reduced-motion) {
|
|
2639
|
-
.dataviews-view-grid.is-refreshing
|
|
2661
|
+
.dataviews-view-grid.is-refreshing,
|
|
2662
|
+
.dataviews-view-grid-infinite-scroll.is-refreshing {
|
|
2640
2663
|
opacity: 1;
|
|
2641
2664
|
animation: dataviews-pulse 1s ease-in-out infinite;
|
|
2642
2665
|
}
|
|
@@ -3512,7 +3535,7 @@ div.dataviews-view-list {
|
|
|
3512
3535
|
|
|
3513
3536
|
.dataviews-view-activity {
|
|
3514
3537
|
margin: 0 0 auto;
|
|
3515
|
-
padding:
|
|
3538
|
+
padding: 0 24px;
|
|
3516
3539
|
}
|
|
3517
3540
|
|
|
3518
3541
|
.dataviews-view-activity .dataviews-view-activity__group-header {
|
|
@@ -3609,7 +3632,7 @@ div.dataviews-view-list {
|
|
|
3609
3632
|
}
|
|
3610
3633
|
|
|
3611
3634
|
.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type {
|
|
3612
|
-
width:
|
|
3635
|
+
width: 12px;
|
|
3613
3636
|
}
|
|
3614
3637
|
|
|
3615
3638
|
.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type::before {
|
|
@@ -3959,17 +3982,18 @@ div.dataviews-view-list {
|
|
|
3959
3982
|
align-items: center;
|
|
3960
3983
|
}
|
|
3961
3984
|
|
|
3962
|
-
.dataforms-layouts-card__field-header-label {
|
|
3963
|
-
font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
3964
|
-
font-weight: 499;
|
|
3965
|
-
font-size: 15px;
|
|
3966
|
-
line-height: 20px;
|
|
3967
|
-
}
|
|
3968
|
-
|
|
3969
3985
|
.dataforms-layouts-card__field {
|
|
3970
3986
|
width: 100%;
|
|
3971
3987
|
}
|
|
3972
3988
|
|
|
3989
|
+
.dataforms-layouts-card__field-header-content {
|
|
3990
|
+
min-height: 24px;
|
|
3991
|
+
}
|
|
3992
|
+
|
|
3993
|
+
.dataforms-layouts-card__field-header-content-description {
|
|
3994
|
+
display: contents;
|
|
3995
|
+
}
|
|
3996
|
+
|
|
3973
3997
|
.dataforms-layouts-card__field-description {
|
|
3974
3998
|
color: #757575;
|
|
3975
3999
|
display: block;
|
|
@@ -4206,6 +4230,11 @@ fieldset.fields__media-edit .components-base-control__label {
|
|
|
4206
4230
|
color: #1e1e1e;
|
|
4207
4231
|
}
|
|
4208
4232
|
|
|
4233
|
+
fieldset.fields__media-edit .fields__media-edit-description {
|
|
4234
|
+
font-size: 12px;
|
|
4235
|
+
line-height: 1.5;
|
|
4236
|
+
}
|
|
4237
|
+
|
|
4209
4238
|
fieldset.fields__media-edit {
|
|
4210
4239
|
/* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
|
|
4211
4240
|
container-type: inline-size;
|
|
@@ -4723,6 +4752,11 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
4723
4752
|
margin-top: 8px;
|
|
4724
4753
|
}
|
|
4725
4754
|
|
|
4755
|
+
.editor-autocompleters__link {
|
|
4756
|
+
white-space: nowrap;
|
|
4757
|
+
gap: 8px;
|
|
4758
|
+
}
|
|
4759
|
+
|
|
4726
4760
|
.editor-autocompleters__user .editor-autocompleters__no-avatar::before {
|
|
4727
4761
|
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- dashicons don't need a generic family keyword. */
|
|
4728
4762
|
font: normal 20px/1 dashicons;
|
|
@@ -6646,6 +6680,20 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
6646
6680
|
transform: translateX(0%);
|
|
6647
6681
|
}
|
|
6648
6682
|
}
|
|
6683
|
+
.editor-post-revisions-panel .editor-post-revisions-panel__view-all {
|
|
6684
|
+
justify-content: center;
|
|
6685
|
+
}
|
|
6686
|
+
.editor-post-revisions-panel .editor-post-revisions-panel__revision-date {
|
|
6687
|
+
text-transform: uppercase;
|
|
6688
|
+
font-weight: 600;
|
|
6689
|
+
font-size: 12px;
|
|
6690
|
+
}
|
|
6691
|
+
|
|
6692
|
+
.editor-post-revisions-panel__revisions-count {
|
|
6693
|
+
margin-top: -4.5px;
|
|
6694
|
+
margin-bottom: -4.5px;
|
|
6695
|
+
}
|
|
6696
|
+
|
|
6649
6697
|
.editor-revisions-header__slider {
|
|
6650
6698
|
width: 100%;
|
|
6651
6699
|
}
|
|
@@ -6891,14 +6939,41 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
6891
6939
|
color: inherit;
|
|
6892
6940
|
}
|
|
6893
6941
|
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6942
|
+
.editor-post-template__classic-theme-dropdown {
|
|
6943
|
+
padding: 8px;
|
|
6944
|
+
}
|
|
6945
|
+
|
|
6946
|
+
.editor-template-actions-panel__preview .block-editor-block-preview__container {
|
|
6947
|
+
display: flex;
|
|
6948
|
+
aspect-ratio: 4/3;
|
|
6949
|
+
overflow: hidden;
|
|
6950
|
+
border-radius: 4px;
|
|
6951
|
+
}
|
|
6952
|
+
.editor-template-actions-panel__preview .block-editor-block-preview__container::after {
|
|
6953
|
+
outline: 1px solid rgba(0, 0, 0, 0.1);
|
|
6954
|
+
outline-offset: -1px;
|
|
6955
|
+
border-radius: 4px;
|
|
6956
|
+
}
|
|
6957
|
+
@media not (prefers-reduced-motion) {
|
|
6958
|
+
.editor-template-actions-panel__preview .block-editor-block-preview__container::after {
|
|
6959
|
+
transition: outline 0.1s linear;
|
|
6897
6960
|
}
|
|
6898
6961
|
}
|
|
6962
|
+
.editor-template-actions-panel__preview[role=button] {
|
|
6963
|
+
cursor: pointer;
|
|
6964
|
+
}
|
|
6965
|
+
.editor-template-actions-panel__preview[role=button]:hover .block-editor-block-preview__container::after {
|
|
6966
|
+
outline-color: rgba(0, 0, 0, 0.3);
|
|
6967
|
+
}
|
|
6968
|
+
.editor-template-actions-panel__preview[role=button]:focus-visible .block-editor-block-preview__container::after {
|
|
6969
|
+
outline-color: var(--wp-admin-theme-color);
|
|
6970
|
+
outline-width: var(--wp-admin-border-width-focus);
|
|
6971
|
+
outline-offset: calc(-1 * var(--wp-admin-border-width-focus));
|
|
6972
|
+
}
|
|
6899
6973
|
|
|
6900
|
-
.editor-
|
|
6901
|
-
|
|
6974
|
+
.editor-template-actions-panel__action {
|
|
6975
|
+
flex: 1;
|
|
6976
|
+
justify-content: center;
|
|
6902
6977
|
}
|
|
6903
6978
|
|
|
6904
6979
|
textarea.editor-post-text-editor {
|
|
@@ -7210,6 +7285,11 @@ textarea.editor-post-text-editor::placeholder {
|
|
|
7210
7285
|
font-size: 13px;
|
|
7211
7286
|
}
|
|
7212
7287
|
|
|
7288
|
+
.fields-controls__password {
|
|
7289
|
+
border-top: 1px solid #e0e0e0;
|
|
7290
|
+
padding-top: 16px;
|
|
7291
|
+
}
|
|
7292
|
+
|
|
7213
7293
|
.editor-site-discussion-dropdown__content .components-popover__content {
|
|
7214
7294
|
min-width: 320px;
|
|
7215
7295
|
padding: 16px;
|
|
@@ -21,19 +21,19 @@ declare const _default: {
|
|
|
21
21
|
context: any;
|
|
22
22
|
select: any;
|
|
23
23
|
}): ({
|
|
24
|
-
label: import("@wordpress/i18n").
|
|
24
|
+
label: import("@wordpress/i18n").TransformedText<"Post Date">;
|
|
25
25
|
args: {
|
|
26
26
|
field: string;
|
|
27
27
|
};
|
|
28
28
|
type: string;
|
|
29
29
|
} | {
|
|
30
|
-
label: import("@wordpress/i18n").
|
|
30
|
+
label: import("@wordpress/i18n").TransformedText<"Post Modified Date">;
|
|
31
31
|
args: {
|
|
32
32
|
field: string;
|
|
33
33
|
};
|
|
34
34
|
type: string;
|
|
35
35
|
} | {
|
|
36
|
-
label: import("@wordpress/i18n").
|
|
36
|
+
label: import("@wordpress/i18n").TransformedText<"Post Link">;
|
|
37
37
|
args: {
|
|
38
38
|
field: string;
|
|
39
39
|
};
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
export const termDataFields: ({
|
|
2
|
-
label: import("@wordpress/i18n").
|
|
2
|
+
label: import("@wordpress/i18n").TransformedText<"Term ID">;
|
|
3
3
|
args: {
|
|
4
4
|
field: string;
|
|
5
5
|
};
|
|
6
6
|
type: string;
|
|
7
7
|
} | {
|
|
8
|
-
label: import("@wordpress/i18n").
|
|
8
|
+
label: import("@wordpress/i18n").TransformedText<"Name">;
|
|
9
9
|
args: {
|
|
10
10
|
field: string;
|
|
11
11
|
};
|
|
12
12
|
type: string;
|
|
13
13
|
} | {
|
|
14
|
-
label: import("@wordpress/i18n").
|
|
14
|
+
label: import("@wordpress/i18n").TransformedText<"Slug">;
|
|
15
15
|
args: {
|
|
16
16
|
field: string;
|
|
17
17
|
};
|
|
18
18
|
type: string;
|
|
19
19
|
} | {
|
|
20
|
-
label: import("@wordpress/i18n").
|
|
20
|
+
label: import("@wordpress/i18n").TransformedText<"Link">;
|
|
21
21
|
args: {
|
|
22
22
|
field: string;
|
|
23
23
|
};
|
|
24
24
|
type: string;
|
|
25
25
|
} | {
|
|
26
|
-
label: import("@wordpress/i18n").
|
|
26
|
+
label: import("@wordpress/i18n").TransformedText<"Description">;
|
|
27
27
|
args: {
|
|
28
28
|
field: string;
|
|
29
29
|
};
|
|
30
30
|
type: string;
|
|
31
31
|
} | {
|
|
32
|
-
label: import("@wordpress/i18n").
|
|
32
|
+
label: import("@wordpress/i18n").TransformedText<"Parent ID">;
|
|
33
33
|
args: {
|
|
34
34
|
field: string;
|
|
35
35
|
};
|
|
36
36
|
type: string;
|
|
37
37
|
} | {
|
|
38
|
-
label: import("@wordpress/i18n").
|
|
38
|
+
label: import("@wordpress/i18n").TransformedText<"Count">;
|
|
39
39
|
args: {
|
|
40
40
|
field: string;
|
|
41
41
|
};
|
|
@@ -63,43 +63,43 @@ declare const _default: {
|
|
|
63
63
|
context: any;
|
|
64
64
|
select: any;
|
|
65
65
|
}): ({
|
|
66
|
-
label: import("@wordpress/i18n").
|
|
66
|
+
label: import("@wordpress/i18n").TransformedText<"Term ID">;
|
|
67
67
|
args: {
|
|
68
68
|
field: string;
|
|
69
69
|
};
|
|
70
70
|
type: string;
|
|
71
71
|
} | {
|
|
72
|
-
label: import("@wordpress/i18n").
|
|
72
|
+
label: import("@wordpress/i18n").TransformedText<"Name">;
|
|
73
73
|
args: {
|
|
74
74
|
field: string;
|
|
75
75
|
};
|
|
76
76
|
type: string;
|
|
77
77
|
} | {
|
|
78
|
-
label: import("@wordpress/i18n").
|
|
78
|
+
label: import("@wordpress/i18n").TransformedText<"Slug">;
|
|
79
79
|
args: {
|
|
80
80
|
field: string;
|
|
81
81
|
};
|
|
82
82
|
type: string;
|
|
83
83
|
} | {
|
|
84
|
-
label: import("@wordpress/i18n").
|
|
84
|
+
label: import("@wordpress/i18n").TransformedText<"Link">;
|
|
85
85
|
args: {
|
|
86
86
|
field: string;
|
|
87
87
|
};
|
|
88
88
|
type: string;
|
|
89
89
|
} | {
|
|
90
|
-
label: import("@wordpress/i18n").
|
|
90
|
+
label: import("@wordpress/i18n").TransformedText<"Description">;
|
|
91
91
|
args: {
|
|
92
92
|
field: string;
|
|
93
93
|
};
|
|
94
94
|
type: string;
|
|
95
95
|
} | {
|
|
96
|
-
label: import("@wordpress/i18n").
|
|
96
|
+
label: import("@wordpress/i18n").TransformedText<"Parent ID">;
|
|
97
97
|
args: {
|
|
98
98
|
field: string;
|
|
99
99
|
};
|
|
100
100
|
type: string;
|
|
101
101
|
} | {
|
|
102
|
-
label: import("@wordpress/i18n").
|
|
102
|
+
label: import("@wordpress/i18n").TransformedText<"Count">;
|
|
103
103
|
args: {
|
|
104
104
|
field: string;
|
|
105
105
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
className: string;
|
|
4
|
+
triggerPrefix: string;
|
|
5
|
+
isDebounced: boolean;
|
|
6
|
+
options(filterValue: any): Promise<any>;
|
|
7
|
+
getOptionKeywords(item: any): any[];
|
|
8
|
+
getOptionLabel(item: any): import("react").JSX.Element;
|
|
9
|
+
getOptionCompletion(item: any): import("react").JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/components/autocompleters/link.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
interface ScrollToCursorOptions {
|
|
2
|
+
behavior?: ScrollBehavior;
|
|
3
|
+
block?: ScrollLogicalPosition;
|
|
4
|
+
inline?: ScrollLogicalPosition;
|
|
5
|
+
highlightDuration?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function createCursorRegistry(): {
|
|
8
|
+
/**
|
|
9
|
+
* Register a cursor element when it's created.
|
|
10
|
+
*
|
|
11
|
+
* @param clientId - The clientId of the cursor to register.
|
|
12
|
+
* @param element - The cursor element to register.
|
|
13
|
+
*/
|
|
14
|
+
registerCursor(clientId: number, element: HTMLElement): void;
|
|
15
|
+
/**
|
|
16
|
+
* Unregister a cursor element when it's removed.
|
|
17
|
+
*
|
|
18
|
+
* @param clientId - The clientId of the cursor to unregister.
|
|
19
|
+
*/
|
|
20
|
+
unregisterCursor(clientId: number): void;
|
|
21
|
+
/**
|
|
22
|
+
* Scroll to a cursor by clientId.
|
|
23
|
+
*
|
|
24
|
+
* @param clientId - The clientId of the cursor to scroll to.
|
|
25
|
+
* @param options - The options for the scroll.
|
|
26
|
+
* @return true if cursor was found and scrolled to, false otherwise.
|
|
27
|
+
*/
|
|
28
|
+
scrollToCursor(clientId: number, options?: ScrollToCursorOptions): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Clear the registry.
|
|
31
|
+
*/
|
|
32
|
+
removeAll(): void;
|
|
33
|
+
};
|
|
34
|
+
export type CursorRegistry = ReturnType<typeof createCursorRegistry>;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=cursor-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cursor-registry.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/cursor-registry.ts"],"names":[],"mappings":"AAAA,UAAU,qBAAqB;IAC9B,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B;AA4BD,wBAAgB,oBAAoB;IAIlC;;;;;OAKG;6BACuB,MAAM,WAAW,WAAW,GAAI,IAAI;IAI9D;;;;OAIG;+BACyB,MAAM,GAAI,IAAI;IAI1C;;;;;;OAMG;6BAEQ,MAAM,YACN,qBAAqB,GAC7B,OAAO;IAoBV;;OAEG;iBACU,IAAI;EAIlB;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,CAAE,OAAO,oBAAoB,CAAE,CAAC"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import { type CursorRegistry } from './cursor-registry';
|
|
1
2
|
interface Props {
|
|
2
3
|
postId: number | null;
|
|
3
4
|
postType: string | null;
|
|
5
|
+
cursorRegistry?: CursorRegistry;
|
|
4
6
|
}
|
|
5
7
|
/**
|
|
6
8
|
* Collaborators Overlay component
|
|
7
|
-
* @param props
|
|
8
|
-
* @param props.postId
|
|
9
|
-
* @param props.postType
|
|
9
|
+
* @param props - The props for the CollaboratorsOverlay component
|
|
10
|
+
* @param props.postId - The ID of the post
|
|
11
|
+
* @param props.postType - The type of the post
|
|
12
|
+
* @param props.cursorRegistry - The shared cursor registry
|
|
10
13
|
* @return The CollaboratorsOverlay component
|
|
11
14
|
*/
|
|
12
|
-
export declare function CollaboratorsOverlay({ postId, postType }: Props): import("react").JSX.Element;
|
|
15
|
+
export declare function CollaboratorsOverlay({ postId, postType, cursorRegistry, }: Props): import("react").JSX.Element;
|
|
13
16
|
export {};
|
|
14
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/index.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAIxD,UAAU,KAAK;IACd,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,cAAc,CAAC,EAAE,cAAc,CAAC;CAChC;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAE,EACrC,MAAM,EACN,QAAQ,EACR,cAAc,GACd,EAAE,KAAK,+BAiBP"}
|
|
@@ -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.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
|
|
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) / var(--wp-block-editor-iframe-zoom-out-scale, 1)) + 0.5px) rgba(#fff, 0.7);\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,86GAoHjC,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { type CursorRegistry } from './cursor-registry';
|
|
1
2
|
interface OverlayProps {
|
|
2
3
|
blockEditorDocument?: Document;
|
|
3
4
|
postId: number | null;
|
|
4
5
|
postType: string | null;
|
|
6
|
+
cursorRegistry?: CursorRegistry;
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
9
|
* This component is responsible for rendering the overlay components within the editor iframe.
|
|
@@ -10,8 +12,9 @@ interface OverlayProps {
|
|
|
10
12
|
* @param props.blockEditorDocument - The block editor document.
|
|
11
13
|
* @param props.postId - The ID of the post.
|
|
12
14
|
* @param props.postType - The type of the post.
|
|
15
|
+
* @param props.cursorRegistry - The shared cursor registry.
|
|
13
16
|
* @return The Overlay component.
|
|
14
17
|
*/
|
|
15
|
-
export declare function Overlay({ blockEditorDocument, postId, postType, }: OverlayProps): import("react").JSX.Element;
|
|
18
|
+
export declare function Overlay({ blockEditorDocument, postId, postType, cursorRegistry, }: OverlayProps): import("react").JSX.Element;
|
|
16
19
|
export {};
|
|
17
20
|
//# sourceMappingURL=overlay.d.ts.map
|
|
@@ -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":"AAUA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAWxD,UAAU,YAAY;IACrB,mBAAmB,CAAC,EAAE,QAAQ,CAAC;IAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,cAAc,CAAC,EAAE,cAAc,CAAC;CAChC;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAE,EACxB,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACR,cAAc,GACd,EAAE,YAAY,+BAkKd"}
|
|
@@ -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":"AAiBA,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":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-presence/index.tsx"],"names":[],"mappings":"AAgBA,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,sCAsG5B"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type PostEditorAwarenessState } from '@wordpress/core-data';
|
|
2
|
+
import { type CursorRegistry } from '../collaborators-overlay/cursor-registry';
|
|
2
3
|
import './styles/collaborators-list.scss';
|
|
3
4
|
interface CollaboratorsListProps {
|
|
4
5
|
activeCollaborators: PostEditorAwarenessState[];
|
|
5
6
|
popoverAnchor?: HTMLElement | null;
|
|
6
7
|
setIsPopoverVisible: (isVisible: boolean) => void;
|
|
8
|
+
cursorRegistry: CursorRegistry;
|
|
7
9
|
}
|
|
8
10
|
/**
|
|
9
11
|
* Renders a list showing all active collaborators with their details.
|
|
@@ -13,7 +15,8 @@ interface CollaboratorsListProps {
|
|
|
13
15
|
* @param props.activeCollaborators List of active collaborators
|
|
14
16
|
* @param props.popoverAnchor Anchor element for the popover
|
|
15
17
|
* @param props.setIsPopoverVisible Callback to set the visibility of the popover
|
|
18
|
+
* @param props.cursorRegistry Shared registry for scroll-to-cursor support
|
|
16
19
|
*/
|
|
17
|
-
export declare function CollaboratorsList({ activeCollaborators, popoverAnchor, setIsPopoverVisible, }: CollaboratorsListProps): import("react").JSX.Element;
|
|
20
|
+
export declare function CollaboratorsList({ activeCollaborators, popoverAnchor, setIsPopoverVisible, cursorRegistry, }: CollaboratorsListProps): import("react").JSX.Element;
|
|
18
21
|
export {};
|
|
19
22
|
//# sourceMappingURL=list.d.ts.map
|