@wordpress/editor 14.41.0 → 14.41.1-next.v.202603102151.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.
Files changed (207) hide show
  1. package/build/components/collab-sidebar/index.cjs +7 -4
  2. package/build/components/collab-sidebar/index.cjs.map +2 -2
  3. package/build/components/collab-sidebar/utils.cjs +13 -15
  4. package/build/components/collab-sidebar/utils.cjs.map +2 -2
  5. package/build/components/collaborators-overlay/avatar-iframe-styles.cjs +133 -0
  6. package/build/components/collaborators-overlay/avatar-iframe-styles.cjs.map +7 -0
  7. package/build/components/collaborators-overlay/collaborator-styles.cjs +38 -2
  8. package/build/components/collaborators-overlay/collaborator-styles.cjs.map +2 -2
  9. package/build/components/collaborators-overlay/overlay-iframe-styles.cjs +142 -0
  10. package/build/components/collaborators-overlay/overlay-iframe-styles.cjs.map +7 -0
  11. package/build/components/collaborators-overlay/overlay.cjs +59 -201
  12. package/build/components/collaborators-overlay/overlay.cjs.map +3 -3
  13. package/build/components/collaborators-overlay/use-block-highlighting.cjs +91 -42
  14. package/build/components/collaborators-overlay/use-block-highlighting.cjs.map +2 -2
  15. package/build/components/collaborators-overlay/use-debounced-recompute.cjs +49 -0
  16. package/build/components/collaborators-overlay/use-debounced-recompute.cjs.map +7 -0
  17. package/build/components/collaborators-overlay/use-render-cursors.cjs +49 -50
  18. package/build/components/collaborators-overlay/use-render-cursors.cjs.map +2 -2
  19. package/build/components/collaborators-presence/avatar/component.cjs +121 -0
  20. package/build/components/collaborators-presence/avatar/component.cjs.map +7 -0
  21. package/build/components/collaborators-presence/avatar/index.cjs +37 -0
  22. package/build/components/collaborators-presence/avatar/index.cjs.map +7 -0
  23. package/build/components/collaborators-presence/avatar/types.cjs +19 -0
  24. package/build/components/collaborators-presence/avatar/types.cjs.map +7 -0
  25. package/build/components/collaborators-presence/avatar/use-image-loading-status.cjs +44 -0
  26. package/build/components/collaborators-presence/avatar/use-image-loading-status.cjs.map +7 -0
  27. package/build/components/collaborators-presence/avatar-group/component.cjs +78 -0
  28. package/build/components/collaborators-presence/avatar-group/component.cjs.map +7 -0
  29. package/build/components/collaborators-presence/avatar-group/index.cjs +37 -0
  30. package/build/components/collaborators-presence/avatar-group/index.cjs.map +7 -0
  31. package/build/components/collaborators-presence/avatar-group/types.cjs +19 -0
  32. package/build/components/collaborators-presence/avatar-group/types.cjs.map +7 -0
  33. package/build/components/collaborators-presence/index.cjs +17 -6
  34. package/build/components/collaborators-presence/index.cjs.map +3 -3
  35. package/build/components/collaborators-presence/list.cjs +20 -17
  36. package/build/components/collaborators-presence/list.cjs.map +3 -3
  37. package/build/components/entities-saved-states/hooks/use-is-dirty.cjs +14 -5
  38. package/build/components/entities-saved-states/hooks/use-is-dirty.cjs.map +2 -2
  39. package/build/components/global-styles/index.cjs +15 -24
  40. package/build/components/global-styles/index.cjs.map +3 -3
  41. package/build/components/global-styles-sidebar/index.cjs +6 -3
  42. package/build/components/global-styles-sidebar/index.cjs.map +2 -2
  43. package/build/components/page-attributes/parent.cjs +1 -0
  44. package/build/components/page-attributes/parent.cjs.map +2 -2
  45. package/build/components/post-revisions-preview/revisions-canvas.cjs +17 -4
  46. package/build/components/post-revisions-preview/revisions-canvas.cjs.map +2 -2
  47. package/build/components/post-url/panel.cjs +1 -0
  48. package/build/components/post-url/panel.cjs.map +2 -2
  49. package/build/components/provider/use-block-editor-settings.cjs +4 -1
  50. package/build/components/provider/use-block-editor-settings.cjs.map +3 -3
  51. package/build/components/sidebar/dataform-post-summary.cjs +167 -0
  52. package/build/components/sidebar/dataform-post-summary.cjs.map +7 -0
  53. package/build/components/sidebar/post-summary.cjs +11 -0
  54. package/build/components/sidebar/post-summary.cjs.map +3 -3
  55. package/build/components/visual-editor/index.cjs +1 -1
  56. package/build/components/visual-editor/index.cjs.map +2 -2
  57. package/build/dataviews/store/private-actions.cjs +4 -0
  58. package/build/dataviews/store/private-actions.cjs.map +2 -2
  59. package/build/utils/media-upload/on-success.cjs +46 -0
  60. package/build/utils/media-upload/on-success.cjs.map +7 -0
  61. package/build-module/components/collab-sidebar/index.mjs +7 -4
  62. package/build-module/components/collab-sidebar/index.mjs.map +2 -2
  63. package/build-module/components/collab-sidebar/utils.mjs +13 -15
  64. package/build-module/components/collab-sidebar/utils.mjs.map +2 -2
  65. package/build-module/components/collaborators-overlay/avatar-iframe-styles.mjs +120 -0
  66. package/build-module/components/collaborators-overlay/avatar-iframe-styles.mjs.map +7 -0
  67. package/build-module/components/collaborators-overlay/collaborator-styles.mjs +25 -1
  68. package/build-module/components/collaborators-overlay/collaborator-styles.mjs.map +2 -2
  69. package/build-module/components/collaborators-overlay/overlay-iframe-styles.mjs +124 -0
  70. package/build-module/components/collaborators-overlay/overlay-iframe-styles.mjs.map +7 -0
  71. package/build-module/components/collaborators-overlay/overlay.mjs +49 -201
  72. package/build-module/components/collaborators-overlay/overlay.mjs.map +2 -2
  73. package/build-module/components/collaborators-overlay/use-block-highlighting.mjs +92 -43
  74. package/build-module/components/collaborators-overlay/use-block-highlighting.mjs.map +2 -2
  75. package/build-module/components/collaborators-overlay/use-debounced-recompute.mjs +24 -0
  76. package/build-module/components/collaborators-overlay/use-debounced-recompute.mjs.map +7 -0
  77. package/build-module/components/collaborators-overlay/use-render-cursors.mjs +50 -51
  78. package/build-module/components/collaborators-overlay/use-render-cursors.mjs.map +2 -2
  79. package/build-module/components/collaborators-presence/avatar/component.mjs +90 -0
  80. package/build-module/components/collaborators-presence/avatar/component.mjs.map +7 -0
  81. package/build-module/components/collaborators-presence/avatar/index.mjs +6 -0
  82. package/build-module/components/collaborators-presence/avatar/index.mjs.map +7 -0
  83. package/build-module/components/collaborators-presence/avatar/types.mjs +1 -0
  84. package/build-module/components/collaborators-presence/avatar/types.mjs.map +7 -0
  85. package/build-module/components/collaborators-presence/avatar/use-image-loading-status.mjs +19 -0
  86. package/build-module/components/collaborators-presence/avatar/use-image-loading-status.mjs.map +7 -0
  87. package/build-module/components/collaborators-presence/avatar-group/component.mjs +47 -0
  88. package/build-module/components/collaborators-presence/avatar-group/component.mjs.map +7 -0
  89. package/build-module/components/collaborators-presence/avatar-group/index.mjs +6 -0
  90. package/build-module/components/collaborators-presence/avatar-group/index.mjs.map +7 -0
  91. package/build-module/components/collaborators-presence/avatar-group/types.mjs +1 -0
  92. package/build-module/components/collaborators-presence/avatar-group/types.mjs.map +7 -0
  93. package/build-module/components/collaborators-presence/index.mjs +7 -9
  94. package/build-module/components/collaborators-presence/index.mjs.map +2 -2
  95. package/build-module/components/collaborators-presence/list.mjs +11 -22
  96. package/build-module/components/collaborators-presence/list.mjs.map +2 -2
  97. package/build-module/components/entities-saved-states/hooks/use-is-dirty.mjs +14 -5
  98. package/build-module/components/entities-saved-states/hooks/use-is-dirty.mjs.map +2 -2
  99. package/build-module/components/global-styles/index.mjs +15 -24
  100. package/build-module/components/global-styles/index.mjs.map +2 -2
  101. package/build-module/components/global-styles-sidebar/index.mjs +6 -3
  102. package/build-module/components/global-styles-sidebar/index.mjs.map +2 -2
  103. package/build-module/components/page-attributes/parent.mjs +1 -0
  104. package/build-module/components/page-attributes/parent.mjs.map +2 -2
  105. package/build-module/components/post-revisions-preview/revisions-canvas.mjs +17 -4
  106. package/build-module/components/post-revisions-preview/revisions-canvas.mjs.map +2 -2
  107. package/build-module/components/post-url/panel.mjs +1 -0
  108. package/build-module/components/post-url/panel.mjs.map +2 -2
  109. package/build-module/components/provider/use-block-editor-settings.mjs +4 -1
  110. package/build-module/components/provider/use-block-editor-settings.mjs.map +2 -2
  111. package/build-module/components/sidebar/dataform-post-summary.mjs +136 -0
  112. package/build-module/components/sidebar/dataform-post-summary.mjs.map +7 -0
  113. package/build-module/components/sidebar/post-summary.mjs +11 -0
  114. package/build-module/components/sidebar/post-summary.mjs.map +2 -2
  115. package/build-module/components/visual-editor/index.mjs +1 -1
  116. package/build-module/components/visual-editor/index.mjs.map +2 -2
  117. package/build-module/dataviews/store/private-actions.mjs +8 -1
  118. package/build-module/dataviews/store/private-actions.mjs.map +2 -2
  119. package/build-module/utils/media-upload/on-success.mjs +25 -0
  120. package/build-module/utils/media-upload/on-success.mjs.map +7 -0
  121. package/build-style/style-rtl.css +876 -137
  122. package/build-style/style.css +876 -137
  123. package/build-types/components/collab-sidebar/index.d.ts.map +1 -1
  124. package/build-types/components/collab-sidebar/utils.d.ts.map +1 -1
  125. package/build-types/components/collaborators-overlay/avatar-iframe-styles.d.ts +11 -0
  126. package/build-types/components/collaborators-overlay/avatar-iframe-styles.d.ts.map +1 -0
  127. package/build-types/components/collaborators-overlay/collaborator-styles.d.ts +17 -2
  128. package/build-types/components/collaborators-overlay/collaborator-styles.d.ts.map +1 -1
  129. package/build-types/components/collaborators-overlay/overlay-iframe-styles.d.ts +6 -0
  130. package/build-types/components/collaborators-overlay/overlay-iframe-styles.d.ts.map +1 -0
  131. package/build-types/components/collaborators-overlay/overlay.d.ts.map +1 -1
  132. package/build-types/components/collaborators-overlay/use-block-highlighting.d.ts +21 -5
  133. package/build-types/components/collaborators-overlay/use-block-highlighting.d.ts.map +1 -1
  134. package/build-types/components/collaborators-overlay/use-debounced-recompute.d.ts +10 -0
  135. package/build-types/components/collaborators-overlay/use-debounced-recompute.d.ts.map +1 -0
  136. package/build-types/components/collaborators-overlay/use-render-cursors.d.ts +2 -1
  137. package/build-types/components/collaborators-overlay/use-render-cursors.d.ts.map +1 -1
  138. package/build-types/components/collaborators-presence/avatar/component.d.ts +7 -0
  139. package/build-types/components/collaborators-presence/avatar/component.d.ts.map +1 -0
  140. package/build-types/components/collaborators-presence/avatar/index.d.ts +3 -0
  141. package/build-types/components/collaborators-presence/avatar/index.d.ts.map +1 -0
  142. package/build-types/components/collaborators-presence/avatar/types.d.ts +66 -0
  143. package/build-types/components/collaborators-presence/avatar/types.d.ts.map +1 -0
  144. package/build-types/components/collaborators-presence/avatar/use-image-loading-status.d.ts +17 -0
  145. package/build-types/components/collaborators-presence/avatar/use-image-loading-status.d.ts.map +1 -0
  146. package/build-types/components/collaborators-presence/avatar-group/component.d.ts +7 -0
  147. package/build-types/components/collaborators-presence/avatar-group/component.d.ts.map +1 -0
  148. package/build-types/components/collaborators-presence/avatar-group/index.d.ts +3 -0
  149. package/build-types/components/collaborators-presence/avatar-group/index.d.ts.map +1 -0
  150. package/build-types/components/collaborators-presence/avatar-group/types.d.ts +14 -0
  151. package/build-types/components/collaborators-presence/avatar-group/types.d.ts.map +1 -0
  152. package/build-types/components/collaborators-presence/index.d.ts.map +1 -1
  153. package/build-types/components/collaborators-presence/list.d.ts.map +1 -1
  154. package/build-types/components/entities-saved-states/hooks/use-is-dirty.d.ts.map +1 -1
  155. package/build-types/components/global-styles/index.d.ts +2 -1
  156. package/build-types/components/global-styles/index.d.ts.map +1 -1
  157. package/build-types/components/global-styles-sidebar/index.d.ts.map +1 -1
  158. package/build-types/components/page-attributes/parent.d.ts.map +1 -1
  159. package/build-types/components/post-author/hook.d.ts +1 -1
  160. package/build-types/components/post-revisions-preview/revisions-canvas.d.ts.map +1 -1
  161. package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -1
  162. package/build-types/components/sidebar/dataform-post-summary.d.ts +4 -0
  163. package/build-types/components/sidebar/dataform-post-summary.d.ts.map +1 -0
  164. package/build-types/components/sidebar/post-summary.d.ts.map +1 -1
  165. package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
  166. package/build-types/utils/media-upload/on-success.d.ts +9 -0
  167. package/build-types/utils/media-upload/on-success.d.ts.map +1 -0
  168. package/package.json +45 -44
  169. package/src/components/collab-sidebar/index.js +7 -4
  170. package/src/components/collab-sidebar/utils.js +9 -10
  171. package/src/components/collaborators-overlay/avatar-iframe-styles.ts +126 -0
  172. package/src/components/collaborators-overlay/collaborator-styles.ts +43 -2
  173. package/src/components/collaborators-overlay/overlay-iframe-styles.ts +125 -0
  174. package/src/components/collaborators-overlay/overlay.tsx +54 -207
  175. package/src/components/collaborators-overlay/use-block-highlighting.ts +147 -64
  176. package/src/components/collaborators-overlay/use-debounced-recompute.ts +32 -0
  177. package/src/components/collaborators-overlay/use-render-cursors.ts +72 -66
  178. package/src/components/collaborators-presence/avatar/component.tsx +123 -0
  179. package/src/components/collaborators-presence/avatar/index.ts +2 -0
  180. package/src/components/collaborators-presence/avatar/styles.scss +168 -0
  181. package/src/components/collaborators-presence/avatar/test/index.tsx +389 -0
  182. package/src/components/collaborators-presence/avatar/types.ts +66 -0
  183. package/src/components/collaborators-presence/avatar/use-image-loading-status.ts +36 -0
  184. package/src/components/collaborators-presence/avatar-group/component.tsx +55 -0
  185. package/src/components/collaborators-presence/avatar-group/index.ts +2 -0
  186. package/src/components/collaborators-presence/avatar-group/styles.scss +33 -0
  187. package/src/components/collaborators-presence/avatar-group/test/index.tsx +139 -0
  188. package/src/components/collaborators-presence/avatar-group/types.ts +13 -0
  189. package/src/components/collaborators-presence/index.tsx +4 -6
  190. package/src/components/collaborators-presence/list.tsx +7 -17
  191. package/src/components/collaborators-presence/styles/collaborators-list.scss +26 -19
  192. package/src/components/collaborators-presence/styles/collaborators-presence.scss +6 -2
  193. package/src/components/entities-saved-states/hooks/use-is-dirty.js +14 -5
  194. package/src/components/global-styles/index.js +20 -27
  195. package/src/components/global-styles-sidebar/index.js +3 -0
  196. package/src/components/page-attributes/parent.js +1 -0
  197. package/src/components/post-publish-panel/test/__snapshots__/index.js.snap +2 -2
  198. package/src/components/post-revisions-preview/revisions-canvas.js +15 -6
  199. package/src/components/post-url/panel.js +1 -0
  200. package/src/components/post-url/style.scss +5 -0
  201. package/src/components/provider/use-block-editor-settings.js +5 -0
  202. package/src/components/sidebar/dataform-post-summary.js +149 -0
  203. package/src/components/sidebar/post-summary.js +15 -0
  204. package/src/components/visual-editor/index.js +1 -1
  205. package/src/dataviews/store/private-actions.ts +14 -0
  206. package/src/style.scss +3 -0
  207. package/src/utils/media-upload/on-success.js +34 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/index.js"],"names":[],"mappings":"AA6PA,oFAuBC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/index.js"],"names":[],"mappings":"AA6PA,oFA0BC"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/utils.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,2CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;GAEG;AACH,6BAAyB;AAiBzB;;;;;GAKG;AACH,6CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;;GAMG;AACH,wCAJW,MAAM,kBACN,MAAM,GACL,MAAM,CA0CjB;AAED;;;;;;;;;GASG;AACH,8CAJW,MAAM,aACL,WAAW,OAAA,sBACZ,MAAM,4BA0ChB"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/utils.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,2CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;GAEG;AACH,6BAAyB;AAgBzB;;;;;GAKG;AACH,6CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;;GAMG;AACH,wCAJW,MAAM,kBACN,MAAM,GACL,MAAM,CA0CjB;AAED;;;;;;;;;GASG;AACH,8CAJW,MAAM,aACL,WAAW,OAAA,sBACZ,MAAM,4BA0ChB"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Compiled CSS for the Avatar component, for injection into the editor canvas
3
+ * iframe where the editor package's SCSS is not available.
4
+ *
5
+ * Source: ../collaborators-presence/avatar/styles.scss
6
+ *
7
+ * Dimmed and status-indicator styles are intentionally omitted — they are not
8
+ * used in the overlay. Keep in sync when editing the SCSS source.
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\toverflow: hidden;\n\toverflow: clip;\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\tbox-shadow: inset 0 0 0 var(--wp-admin-border-width-focus, 2px) #fff;\n\tbackground-clip: padding-box;\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\tbox-shadow: none;\n\tbackground-clip: border-box;\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
+ //# sourceMappingURL=avatar-iframe-styles.d.ts.map
@@ -0,0 +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,o1FAqGhC,CAAC"}
@@ -1,6 +1,21 @@
1
1
  /**
2
- * Compiled CSS value of $elevation-x-small.
3
- * Keep in sync with @wordpress/base-styles/_variables.scss.
2
+ * Compiled values of `@wordpress/base-styles` design tokens, for use in
3
+ * CSS strings injected into the editor canvas iframe where Sass is not
4
+ * available.
5
+ *
6
+ * Keep in sync with `@wordpress/base-styles`.
4
7
  */
5
8
  export declare const ELEVATION_X_SMALL = "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)";
9
+ export declare const RADIUS_FULL = "9999px";
10
+ export declare const BUTTON_SIZE_COMPACT = "32px";
11
+ export declare const BUTTON_SIZE_SMALL = "24px";
12
+ export declare const GRID_UNIT_05 = "4px";
13
+ export declare const GRID_UNIT_10 = "8px";
14
+ export declare const BORDER_WIDTH = "1px";
15
+ export declare const BORDER_WIDTH_FOCUS_FALLBACK = "2px";
16
+ export declare const WHITE = "#fff";
17
+ export declare const FONT_SIZE_X_SMALL = "11px";
18
+ export declare const FONT_SIZE_MEDIUM = "13px";
19
+ export declare const FONT_WEIGHT_MEDIUM = "499";
20
+ export declare const FONT_LINE_HEIGHT_SMALL = "20px";
6
21
  //# sourceMappingURL=collaborator-styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collaborator-styles.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/collaborator-styles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,+HAC+F,CAAC"}
1
+ {"version":3,"file":"collaborator-styles.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/collaborator-styles.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,eAAO,MAAM,iBAAiB,+HAC+F,CAAC;AAG9H,eAAO,MAAM,WAAW,WAAW,CAAC;AAGpC,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAG1C,eAAO,MAAM,iBAAiB,SAAS,CAAC;AAGxC,eAAO,MAAM,YAAY,QAAQ,CAAC;AAGlC,eAAO,MAAM,YAAY,QAAQ,CAAC;AAGlC,eAAO,MAAM,YAAY,QAAQ,CAAC;AAGlC,eAAO,MAAM,2BAA2B,QAAQ,CAAC;AAGjD,eAAO,MAAM,KAAK,SAAS,CAAC;AAG5B,eAAO,MAAM,iBAAiB,SAAS,CAAC;AAGxC,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAGvC,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AAGxC,eAAO,MAAM,sBAAsB,SAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * CSS for the collaborators overlay — cursor indicators, block highlights,
3
+ * and positioning of Avatar labels inside the editor canvas iframe.
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";
6
+ //# sourceMappingURL=overlay-iframe-styles.d.ts.map
@@ -0,0 +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,y3GA8GjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/overlay.tsx"],"names":[],"mappings":"AAyMA,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,+BA8Dd"}
1
+ {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/overlay.tsx"],"names":[],"mappings":"AAaA,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,+BAiGd"}
@@ -1,8 +1,24 @@
1
+ export interface BlockHighlightData {
2
+ blockId: string;
3
+ userName: string;
4
+ avatarUrl?: string;
5
+ color: string;
6
+ x: number;
7
+ y: number;
8
+ }
1
9
  /**
2
- * Custom hook for highlighting selected blocks in the editor
3
- * @param blockEditorDocument - Ref to the block editor document, used to directly style block elements.
4
- * @param postId - The ID of the post
5
- * @param postType - The type of the post
10
+ * Custom hook for highlighting selected blocks in the editor and computing
11
+ * their positions for rendering avatar labels in the overlay.
12
+ *
13
+ * @param overlayElement - The overlay element used as position reference.
14
+ * @param blockEditorDocument - Ref to the block editor document.
15
+ * @param postId - The ID of the post.
16
+ * @param postType - The type of the post.
17
+ * @param delayMs - Milliseconds to wait before recomputing highlight positions.
18
+ * @return Highlight data for rendering and a delayed recompute function.
6
19
  */
7
- export declare function useBlockHighlighting(blockEditorDocument: Document | null, postId: number | null, postType: string | null): void;
20
+ export declare function useBlockHighlighting(overlayElement: HTMLElement | null, blockEditorDocument: Document | null, postId: number | null, postType: string | null, delayMs: number): {
21
+ highlights: BlockHighlightData[];
22
+ rerenderHighlightsAfterDelay: () => () => void;
23
+ };
8
24
  //# sourceMappingURL=use-block-highlighting.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-block-highlighting.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-block-highlighting.ts"],"names":[],"mappings":"AAkBA;;;;;GAKG;AACH,wBAAgB,oBAAoB,CACnC,mBAAmB,EAAE,QAAQ,GAAG,IAAI,EACpC,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,QAiGvB"}
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,CA6JA"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Returns a recompute token and a debounced callback that bumps it.
3
+ * Rapid successive calls cancel the previous pending timeout so only one
4
+ * recompute fires, `delayMs` after the last call.
5
+ *
6
+ * @param delayMs - Milliseconds to wait before bumping the recompute token.
7
+ * @return A tuple of [recomputeToken, rerenderAfterDelay].
8
+ */
9
+ export declare function useDebouncedRecompute(delayMs: number): [number, () => () => void];
10
+ //# sourceMappingURL=use-debounced-recompute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-debounced-recompute.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-debounced-recompute.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACpC,OAAO,EAAE,MAAM,GACb,CAAE,MAAM,EAAE,MAAM,MAAM,IAAI,CAAE,CAmB9B"}
@@ -14,9 +14,10 @@ export interface CursorData {
14
14
  * @param blockEditorDocument - The block editor document
15
15
  * @param postId - The ID of the post
16
16
  * @param postType - The type of the post
17
+ * @param delayMs - Milliseconds to wait before recomputing cursor positions.
17
18
  * @return An array of cursor data for rendering, and a function to trigger a delayed recompute.
18
19
  */
19
- export declare function useRenderCursors(overlayElement: HTMLElement | null, blockEditorDocument: Document | null, postId: number | null, postType: string | null): {
20
+ export declare function useRenderCursors(overlayElement: HTMLElement | null, blockEditorDocument: Document | null, postId: number | null, postType: string | null, delayMs: number): {
20
21
  cursors: CursorData[];
21
22
  rerenderCursorsAfterDelay: () => () => void;
22
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"use-render-cursors.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-render-cursors.ts"],"names":[],"mappings":"AAaA,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;CACf;AAED;;;;;;;;GAQG;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,GACrB;IAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,yBAAyB,EAAE,MAAM,MAAM,IAAI,CAAA;CAAE,CAwGxE"}
1
+ {"version":3,"file":"use-render-cursors.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-render-cursors.ts"],"names":[],"mappings":"AAcA,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;CACf;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,CA4GxE"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+ import type { AvatarProps } from './types';
5
+ declare function Avatar({ className, src, name, label, variant, size, borderColor, dimmed, statusIndicator, style, ...props }: AvatarProps & Omit<React.HTMLAttributes<HTMLDivElement>, keyof AvatarProps>): import("react").JSX.Element;
6
+ export default Avatar;
7
+ //# sourceMappingURL=component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/components/collaborators-presence/avatar/component.tsx"],"names":[],"mappings":"AAeA;;GAEG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAO3C,iBAAS,MAAM,CAAE,EAChB,SAAS,EACT,GAAG,EACH,IAAI,EACJ,KAAK,EACL,OAAO,EACP,IAAgB,EAChB,WAAW,EACX,MAAc,EACd,eAAe,EACf,KAAK,EACL,GAAG,KAAK,EACR,EAAE,WAAW,GACb,IAAI,CAAE,KAAK,CAAC,cAAc,CAAE,cAAc,CAAE,EAAE,MAAM,WAAW,CAAE,+BAkFjE;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default } from './component';
2
+ export type { AvatarProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/collaborators-presence/avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,66 @@
1
+ import type { IconType } from '@wordpress/components';
2
+ export type AvatarProps = {
3
+ /**
4
+ * URL of the avatar image.
5
+ *
6
+ * When not provided, initials derived from `name` are shown.
7
+ */
8
+ src?: string;
9
+ /**
10
+ * Name of the user. Used as an accessible label and to generate
11
+ * initials when no image is provided.
12
+ */
13
+ name?: string;
14
+ /**
15
+ * Visible text shown in the hover badge. When not provided, `name`
16
+ * is used instead. Use this to provide contextual labels like "You"
17
+ * without affecting the accessible name or initials.
18
+ */
19
+ label?: string;
20
+ /**
21
+ * Specifies the avatar's visual style treatment.
22
+ *
23
+ * - `'badge'`: Displays a hover-expand pill that reveals the user's
24
+ * name (or `label`) on hover. Requires `name` to be set.
25
+ *
26
+ * Leave undefined for the default circular avatar.
27
+ */
28
+ variant?: 'badge';
29
+ /**
30
+ * Size of the avatar.
31
+ *
32
+ * - `'default'`: For standalone avatars and list items where the
33
+ * avatar is a primary visual element (e.g. collaborator lists,
34
+ * user profiles).
35
+ * - `'small'`: For inline or compact contexts where space is
36
+ * limited (e.g. cursor labels, toolbars, badges alongside text).
37
+ *
38
+ * @default 'default'
39
+ */
40
+ size?: 'default' | 'small';
41
+ /**
42
+ * CSS color value for an accent border ring around the avatar.
43
+ *
44
+ * When not provided, no border is rendered and the hover badge
45
+ * uses the admin theme color as its background.
46
+ */
47
+ borderColor?: string;
48
+ /**
49
+ * Whether to dim the avatar to indicate an inactive or away state.
50
+ * When true, images are desaturated and faded, and initials are
51
+ * reduced in opacity.
52
+ *
53
+ * @default false
54
+ */
55
+ dimmed?: boolean;
56
+ /**
57
+ * An icon or custom component rendered as a centered overlay on the
58
+ * avatar image. Only visible when `dimmed` is true.
59
+ *
60
+ * Accepts any value supported by the `Icon` component: an icon from
61
+ * `@wordpress/icons`, a Dashicon name string, a component, or a
62
+ * JSX element.
63
+ */
64
+ statusIndicator?: IconType | null;
65
+ };
66
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/collaborators-presence/avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,MAAM,WAAW,GAAG;IACzB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC3B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;CAClC,CAAC"}
@@ -0,0 +1,17 @@
1
+ export type ImageLoadingStatus = 'idle' | 'loading' | 'loaded' | 'error';
2
+ /**
3
+ * Tracks the loading status of an image URL. Returns the current status and
4
+ * `onLoad`/`onError` callbacks to attach to the `<img>` element.
5
+ *
6
+ * Unlike a side-channel `new Image()` preloader, this hook relies on the
7
+ * native `<img>` element's own events, which avoids cross-browser issues
8
+ * with Safari's privacy features blocking programmatic image requests.
9
+ *
10
+ * @param src - The image URL. When falsy, status is `'idle'`.
11
+ */
12
+ export declare function useImageLoadingStatus(src?: string): {
13
+ status: ImageLoadingStatus;
14
+ handleLoad: () => void;
15
+ handleError: () => void;
16
+ };
17
+ //# sourceMappingURL=use-image-loading-status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-image-loading-status.d.ts","sourceRoot":"","sources":["../../../../src/components/collaborators-presence/avatar/use-image-loading-status.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEzE;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAE,GAAG,CAAC,EAAE,MAAM;;;;EAkBlD"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+ import type { AvatarGroupProps } from './types';
5
+ declare function AvatarGroup({ className, max, children, ...props }: AvatarGroupProps & Omit<React.HTMLAttributes<HTMLDivElement>, keyof AvatarGroupProps>): import("react").JSX.Element;
6
+ export default AvatarGroup;
7
+ //# sourceMappingURL=component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/components/collaborators-presence/avatar-group/component.tsx"],"names":[],"mappings":"AAWA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,iBAAS,WAAW,CAAE,EACrB,SAAS,EACT,GAAO,EACP,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,gBAAgB,GAClB,IAAI,CAAE,KAAK,CAAC,cAAc,CAAE,cAAc,CAAE,EAAE,MAAM,gBAAgB,CAAE,+BA8BtE;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default } from './component';
2
+ export type { AvatarGroupProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/collaborators-presence/avatar-group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,14 @@
1
+ export type AvatarGroupProps = {
2
+ /**
3
+ * Maximum number of avatars to display before showing an
4
+ * overflow indicator.
5
+ *
6
+ * @default 3
7
+ */
8
+ max?: number;
9
+ /**
10
+ * Avatar elements to display in the group.
11
+ */
12
+ children: React.ReactNode;
13
+ };
14
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/collaborators-presence/avatar-group/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-presence/index.tsx"],"names":[],"mappings":"AAgBA,OAAO,sCAAsC,CAAC;AAM9C,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,sCAsE5B"}
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,sCAsE5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-presence/list.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAMrE,OAAO,kCAAkC,CAAC;AAI1C,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;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAE,EAClC,mBAAmB,EACnB,aAAa,EACb,mBAAmB,GACnB,EAAE,sBAAsB,+BA0DxB"}
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;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAE,EAClC,mBAAmB,EACnB,aAAa,EACb,mBAAmB,GACnB,EAAE,sBAAsB,+BAsDxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-is-dirty.d.ts","sourceRoot":"","sources":["../../../../src/components/entities-saved-states/hooks/use-is-dirty.js"],"names":[],"mappings":"AAgBO,8BANK,MAAM,CA6EjB"}
1
+ {"version":3,"file":"use-is-dirty.d.ts","sourceRoot":"","sources":["../../../../src/components/entities-saved-states/hooks/use-is-dirty.js"],"names":[],"mappings":"AAgBO,8BANK,MAAM,CAsFjB"}
@@ -1,6 +1,7 @@
1
- export default function GlobalStylesUIWrapper({ path, onPathChange }: {
1
+ export default function GlobalStylesUIWrapper({ path, onPathChange, settings, }: {
2
2
  path: any;
3
3
  onPathChange: any;
4
+ settings: any;
4
5
  }): import("react").JSX.Element | null;
5
6
  export { useGlobalStyles, useStyle, useSetting } from "./hooks";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles/index.js"],"names":[],"mappings":"AAyFA;;;uCAgCC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles/index.js"],"names":[],"mappings":"AA6EA;;;;uCAqCC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles-sidebar/index.js"],"names":[],"mappings":"AAuBA,2EAyJC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles-sidebar/index.js"],"names":[],"mappings":"AAuBA,2EA4JC"}
@@ -1 +1 @@
1
- {"version":3,"file":"parent.d.ts","sourceRoot":"","sources":["../../../src/components/page-attributes/parent.js"],"names":[],"mappings":"AAsDA;;;;;GAKG;AACH,wCAFY,KAAK,CAAC,SAAS,CAsJ1B;AAiCD,yDA4EC;AArRM,qEAYN"}
1
+ {"version":3,"file":"parent.d.ts","sourceRoot":"","sources":["../../../src/components/page-attributes/parent.js"],"names":[],"mappings":"AAsDA;;;;;GAKG;AACH,wCAFY,KAAK,CAAC,SAAS,CAsJ1B;AAkCD,yDA4EC;AAtRM,qEAYN"}
@@ -2,6 +2,6 @@ export function useAuthorsQuery(search: any): {
2
2
  authorId: any;
3
3
  authorOptions: any[];
4
4
  postAuthor: import("@wordpress/core-data").User<"edit"> | undefined;
5
- isLoading: any;
5
+ isLoading: boolean;
6
6
  };
7
7
  //# sourceMappingURL=hook.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":"AAsJA;;;;;;GAMG;AACH,sDAHG;IAAuB,QAAQ,EAAvB,OAAO;CACf,GAAS,KAAK,CAAC,GAAG,CAAC,OAAO,CA4F5B"}
1
+ {"version":3,"file":"revisions-canvas.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/revisions-canvas.js"],"names":[],"mappings":"AAuJA;;;;;;GAMG;AACH,sDAHG;IAAuB,QAAQ,EAAvB,OAAO;CACf,GAAS,KAAK,CAAC,GAAG,CAAC,OAAO,CAoG5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-block-editor-settings.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-block-editor-settings.js"],"names":[],"mappings":";AA2GA;;;;;;;;;GASG;AACH,kDAPW,MAAM,YACN,MAAM,UACN,MAAM,iBACN,MAAM,GAEL,MAAM,CAsTjB"}
1
+ {"version":3,"file":"use-block-editor-settings.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-block-editor-settings.js"],"names":[],"mappings":";AA6GA;;;;;;;;;GASG;AACH,kDAPW,MAAM,YACN,MAAM,UACN,MAAM,iBACN,MAAM,GAEL,MAAM,CAyTjB"}
@@ -0,0 +1,4 @@
1
+ export default function DataFormPostSummary({ onActionPerformed }: {
2
+ onActionPerformed: any;
3
+ }): import("react").JSX.Element;
4
+ //# sourceMappingURL=dataform-post-summary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataform-post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/dataform-post-summary.js"],"names":[],"mappings":"AAsEA;;gCA8EC"}
@@ -1 +1 @@
1
- {"version":3,"file":"post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/post-summary.js"],"names":[],"mappings":"AA6CA;;gCA2FC"}
1
+ {"version":3,"file":"post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/post-summary.js"],"names":[],"mappings":"AA8CA;;gCAYC"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAuD1D,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,8BAA8B,CAAC,EAAE,OAAO,CAAC;QACzC,yBAAyB,CAAC,EAAE,OAAO,CAAC;KACpC;CACD;AAgBD,wBAAgB,oBAAoB,CAAE,IAAI,EACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,CAAE,IAAI,CAAE;;;;;EAQtB;AAED,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;;;;;EAQhB;AAED,wBAAgB,mBAAmB,CAAE,IAAI,EACxC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,CAAE,IAAI,CAAE;;;;;EAQrB;AAED,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM;;;;;EAQf;AAED,wBAAgB,UAAU,CAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;EAMrD;AA2BD,eAAO,MAAM,sBAAsB,GAChC,UAAU,MAAM,MACV,cAAc;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,kBA4ItC,CAAC"}
1
+ {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AA0D1D,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,8BAA8B,CAAC,EAAE,OAAO,CAAC;QACzC,yBAAyB,CAAC,EAAE,OAAO,CAAC;KACpC;CACD;AAgBD,wBAAgB,oBAAoB,CAAE,IAAI,EACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,CAAE,IAAI,CAAE;;;;;EAQtB;AAED,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;;;;;EAQhB;AAED,wBAAgB,mBAAmB,CAAE,IAAI,EACxC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,CAAE,IAAI,CAAE;;;;;EAQrB;AAED,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM;;;;;EAQf;AAED,wBAAgB,UAAU,CAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;EAMrD;AA2BD,eAAO,MAAM,sBAAsB,GAChC,UAAU,MAAM,MACV,cAAc;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,kBAuJtC,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Invalidates core-data entity records for uploaded attachments so that
3
+ * blocks re-fetch updated data (e.g. `media_details.sizes` after
4
+ * thumbnails have been generated via client-side media processing).
5
+ *
6
+ * @param {Object[]} attachments Array of attachment objects from the upload queue.
7
+ */
8
+ export default function mediaUploadOnSuccess(attachments: Object[]): void;
9
+ //# sourceMappingURL=on-success.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"on-success.d.ts","sourceRoot":"","sources":["../../../src/utils/media-upload/on-success.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,0DAFW,MAAM,EAAE,QAsBlB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/editor",
3
- "version": "14.41.0",
3
+ "version": "14.41.1-next.v.202603102151.0+59e17f9ec",
4
4
  "description": "Enhanced block editor for WordPress posts.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -61,51 +61,52 @@
61
61
  ],
62
62
  "dependencies": {
63
63
  "@floating-ui/react-dom": "2.0.8",
64
- "@wordpress/a11y": "^4.41.0",
65
- "@wordpress/api-fetch": "^7.41.0",
66
- "@wordpress/base-styles": "^6.17.0",
67
- "@wordpress/blob": "^4.41.0",
68
- "@wordpress/block-editor": "^15.14.0",
69
- "@wordpress/block-serialization-default-parser": "^5.41.0",
70
- "@wordpress/blocks": "^15.14.0",
71
- "@wordpress/commands": "^1.41.0",
72
- "@wordpress/components": "^32.3.0",
73
- "@wordpress/compose": "^7.41.0",
74
- "@wordpress/core-data": "^7.41.0",
75
- "@wordpress/data": "^10.41.0",
76
- "@wordpress/dataviews": "^13.0.0",
77
- "@wordpress/date": "^5.41.0",
78
- "@wordpress/deprecated": "^4.41.0",
79
- "@wordpress/dom": "^4.41.0",
80
- "@wordpress/element": "^6.41.0",
81
- "@wordpress/fields": "^0.33.0",
82
- "@wordpress/global-styles-engine": "^1.8.0",
83
- "@wordpress/global-styles-ui": "^1.8.0",
84
- "@wordpress/hooks": "^4.41.0",
85
- "@wordpress/html-entities": "^4.41.0",
86
- "@wordpress/i18n": "^6.14.0",
87
- "@wordpress/icons": "^11.8.0",
88
- "@wordpress/interface": "^9.26.0",
89
- "@wordpress/keyboard-shortcuts": "^5.41.0",
90
- "@wordpress/keycodes": "^4.41.0",
91
- "@wordpress/media-editor": "^0.4.0",
92
- "@wordpress/media-fields": "^0.6.0",
93
- "@wordpress/media-utils": "^5.41.0",
94
- "@wordpress/notices": "^5.41.0",
95
- "@wordpress/patterns": "^2.41.0",
96
- "@wordpress/plugins": "^7.41.0",
97
- "@wordpress/preferences": "^4.41.0",
98
- "@wordpress/private-apis": "^1.41.0",
99
- "@wordpress/reusable-blocks": "^5.41.0",
100
- "@wordpress/rich-text": "^7.41.0",
101
- "@wordpress/server-side-render": "^6.17.0",
102
- "@wordpress/upload-media": "^0.26.0",
103
- "@wordpress/url": "^4.41.0",
104
- "@wordpress/warning": "^3.41.0",
105
- "@wordpress/wordcount": "^4.41.0",
64
+ "@wordpress/a11y": "^4.41.1-next.v.202603102151.0+59e17f9ec",
65
+ "@wordpress/api-fetch": "^7.41.1-next.v.202603102151.0+59e17f9ec",
66
+ "@wordpress/base-styles": "^6.17.1-next.v.202603102151.0+59e17f9ec",
67
+ "@wordpress/blob": "^4.41.1-next.v.202603102151.0+59e17f9ec",
68
+ "@wordpress/block-editor": "^15.14.1-next.v.202603102151.0+59e17f9ec",
69
+ "@wordpress/block-serialization-default-parser": "^5.41.1-next.v.202603102151.0+59e17f9ec",
70
+ "@wordpress/blocks": "^15.14.1-next.v.202603102151.0+59e17f9ec",
71
+ "@wordpress/commands": "^1.41.1-next.v.202603102151.0+59e17f9ec",
72
+ "@wordpress/components": "^32.4.1-next.v.202603102151.0+59e17f9ec",
73
+ "@wordpress/compose": "^7.41.1-next.v.202603102151.0+59e17f9ec",
74
+ "@wordpress/core-data": "^7.41.2-next.v.202603102151.0+59e17f9ec",
75
+ "@wordpress/data": "^10.41.1-next.v.202603102151.0+59e17f9ec",
76
+ "@wordpress/dataviews": "^13.1.1-next.v.202603102151.0+59e17f9ec",
77
+ "@wordpress/date": "^5.41.1-next.v.202603102151.0+59e17f9ec",
78
+ "@wordpress/deprecated": "^4.41.1-next.v.202603102151.0+59e17f9ec",
79
+ "@wordpress/dom": "^4.41.1-next.v.202603102151.0+59e17f9ec",
80
+ "@wordpress/element": "^6.41.1-next.v.202603102151.0+59e17f9ec",
81
+ "@wordpress/fields": "^0.33.1-next.v.202603102151.0+59e17f9ec",
82
+ "@wordpress/global-styles-engine": "^1.8.1-next.v.202603102151.0+59e17f9ec",
83
+ "@wordpress/global-styles-ui": "^1.8.1-next.v.202603102151.0+59e17f9ec",
84
+ "@wordpress/hooks": "^4.41.1-next.v.202603102151.0+59e17f9ec",
85
+ "@wordpress/html-entities": "^4.41.1-next.v.202603102151.0+59e17f9ec",
86
+ "@wordpress/i18n": "^6.14.1-next.v.202603102151.0+59e17f9ec",
87
+ "@wordpress/icons": "^12.0.1-next.v.202603102151.0+59e17f9ec",
88
+ "@wordpress/interface": "^9.26.1-next.v.202603102151.0+59e17f9ec",
89
+ "@wordpress/keyboard-shortcuts": "^5.41.1-next.v.202603102151.0+59e17f9ec",
90
+ "@wordpress/keycodes": "^4.41.1-next.v.202603102151.0+59e17f9ec",
91
+ "@wordpress/media-editor": "^0.4.1-next.v.202603102151.0+59e17f9ec",
92
+ "@wordpress/media-fields": "^0.6.1-next.v.202603102151.0+59e17f9ec",
93
+ "@wordpress/media-utils": "^5.41.1-next.v.202603102151.0+59e17f9ec",
94
+ "@wordpress/notices": "^5.41.1-next.v.202603102151.0+59e17f9ec",
95
+ "@wordpress/patterns": "^2.41.1-next.v.202603102151.0+59e17f9ec",
96
+ "@wordpress/plugins": "^7.41.1-next.v.202603102151.0+59e17f9ec",
97
+ "@wordpress/preferences": "^4.41.1-next.v.202603102151.0+59e17f9ec",
98
+ "@wordpress/private-apis": "^1.41.1-next.v.202603102151.0+59e17f9ec",
99
+ "@wordpress/reusable-blocks": "^5.41.1-next.v.202603102151.0+59e17f9ec",
100
+ "@wordpress/rich-text": "^7.41.1-next.v.202603102151.0+59e17f9ec",
101
+ "@wordpress/server-side-render": "^6.17.1-next.v.202603102151.0+59e17f9ec",
102
+ "@wordpress/upload-media": "^0.26.1-next.v.202603102151.0+59e17f9ec",
103
+ "@wordpress/url": "^4.41.1-next.v.202603102151.0+59e17f9ec",
104
+ "@wordpress/warning": "^3.41.1-next.v.202603102151.0+59e17f9ec",
105
+ "@wordpress/wordcount": "^4.41.1-next.v.202603102151.0+59e17f9ec",
106
106
  "change-case": "^4.1.2",
107
107
  "client-zip": "^2.4.5",
108
108
  "clsx": "^2.1.1",
109
+ "colord": "^2.7.0",
109
110
  "date-fns": "^3.6.0",
110
111
  "diff": "^4.0.2",
111
112
  "fast-deep-equal": "^3.1.3",
@@ -124,5 +125,5 @@
124
125
  "publishConfig": {
125
126
  "access": "public"
126
127
  },
127
- "gitHead": "8bfc179b9aed74c0a6dd6e8edf7a49e40e4f87cc"
128
+ "gitHead": "86db21e727d89e8f0dbba9300d2f97fd22b08693"
128
129
  }
@@ -252,11 +252,14 @@ function NotesSidebar( { postId } ) {
252
252
  }
253
253
 
254
254
  export default function NotesSidebarContainer() {
255
- const { postId, editorMode } = useSelect( ( select ) => {
256
- const { getCurrentPostId, getEditorMode } = select( editorStore );
255
+ const { postId, editorMode, revisionsMode } = useSelect( ( select ) => {
256
+ const { getCurrentPostId, getEditorMode, isRevisionsMode } = unlock(
257
+ select( editorStore )
258
+ );
257
259
  return {
258
260
  postId: getCurrentPostId(),
259
261
  editorMode: getEditorMode(),
262
+ revisionsMode: isRevisionsMode(),
260
263
  };
261
264
  }, [] );
262
265
 
@@ -264,8 +267,8 @@ export default function NotesSidebarContainer() {
264
267
  return null;
265
268
  }
266
269
 
267
- // Hide Notes sidebar in Code Editor mode since block-level commenting.
268
- if ( editorMode === 'text' ) {
270
+ // Hide Notes sidebar for Code Editor and in-editor revision mode.
271
+ if ( editorMode === 'text' || revisionsMode ) {
269
272
  return null;
270
273
  }
271
274
 
@@ -19,18 +19,17 @@ export function sanitizeCommentString( str ) {
19
19
  export function noop() {}
20
20
 
21
21
  /**
22
- * These colors are picked from the WordPress.org design library.
23
- * @see https://www.figma.com/design/HOJTpCFfa3tR0EccUlu0CM/WordPress.org-Design-Library?node-id=1-2193&t=M6WdRvTpt0mh8n6T-1
22
+ * Avatar border colors chosen to be visually distinct from each other and from
23
+ * the editor's semantic UI colors (Delta E > 10 between all pairs).
24
24
  */
25
25
  const AVATAR_BORDER_COLORS = [
26
- '#3858E9', // Blueberry
27
- '#9fB1FF', // Blueberry 2
28
- '#1D35B4', // Dark Blueberry
29
- '#1A1919', // Charcoal 0
30
- '#E26F56', // Pomegranate
31
- '#33F078', // Acid Green
32
- '#FFF972', // Lemon
33
- '#7A00DF', // Purple
26
+ '#C36EFF', // Purple
27
+ '#FF51A8', // Pink
28
+ '#E4780A', // Orange
29
+ '#FF35EE', // Magenta
30
+ '#879F11', // Olive
31
+ '#46A494', // Teal
32
+ '#00A2C3', // Cyan
34
33
  ];
35
34
 
36
35
  /**