@wordpress/editor 14.49.1 → 14.51.1-next.v.202607070741.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 (262) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/components/collab-sidebar/format.cjs +83 -0
  3. package/build/components/collab-sidebar/format.cjs.map +7 -0
  4. package/build/components/collab-sidebar/hooks.cjs +117 -16
  5. package/build/components/collab-sidebar/hooks.cjs.map +2 -2
  6. package/build/components/collab-sidebar/index.cjs +18 -2
  7. package/build/components/collab-sidebar/index.cjs.map +2 -2
  8. package/build/components/collab-sidebar/note-highlight-styles.cjs +67 -0
  9. package/build/components/collab-sidebar/note-highlight-styles.cjs.map +7 -0
  10. package/build/components/collab-sidebar/utils.cjs +139 -0
  11. package/build/components/collab-sidebar/utils.cjs.map +2 -2
  12. package/build/components/collaborators-presence/use-collaborator-notifications.cjs +55 -30
  13. package/build/components/collaborators-presence/use-collaborator-notifications.cjs.map +2 -2
  14. package/build/components/commands/index.cjs +99 -3
  15. package/build/components/commands/index.cjs.map +2 -2
  16. package/build/components/document-bar/index.cjs +28 -34
  17. package/build/components/document-bar/index.cjs.map +2 -2
  18. package/build/components/entities-saved-states/index.cjs +1 -4
  19. package/build/components/entities-saved-states/index.cjs.map +2 -2
  20. package/build/components/header/index.cjs +1 -8
  21. package/build/components/header/index.cjs.map +2 -2
  22. package/build/components/media-categories/index.cjs +92 -6
  23. package/build/components/media-categories/index.cjs.map +2 -2
  24. package/build/components/page-attributes/parent.cjs +0 -1
  25. package/build/components/page-attributes/parent.cjs.map +2 -2
  26. package/build/components/post-author/combobox.cjs +0 -1
  27. package/build/components/post-author/combobox.cjs.map +2 -2
  28. package/build/components/post-author/select.cjs +0 -1
  29. package/build/components/post-author/select.cjs.map +2 -2
  30. package/build/components/post-preview-button/index.cjs +29 -2
  31. package/build/components/post-preview-button/index.cjs.map +2 -2
  32. package/build/components/post-publish-panel/maybe-upload-media.cjs +15 -26
  33. package/build/components/post-publish-panel/maybe-upload-media.cjs.map +3 -3
  34. package/build/components/post-revisions-preview/revisions-slider.cjs +3 -1
  35. package/build/components/post-revisions-preview/revisions-slider.cjs.map +2 -2
  36. package/build/components/post-taxonomies/flat-term-selector.cjs +0 -1
  37. package/build/components/post-taxonomies/flat-term-selector.cjs.map +2 -2
  38. package/build/components/post-taxonomies/hierarchical-term-selector.cjs +0 -2
  39. package/build/components/post-taxonomies/hierarchical-term-selector.cjs.map +2 -2
  40. package/build/components/post-template/classic-theme.cjs +0 -1
  41. package/build/components/post-template/classic-theme.cjs.map +2 -2
  42. package/build/components/preferences-modal/index.cjs +54 -28
  43. package/build/components/preferences-modal/index.cjs.map +2 -2
  44. package/build/components/preview-dropdown/index.cjs +38 -9
  45. package/build/components/preview-dropdown/index.cjs.map +3 -3
  46. package/build/components/provider/use-block-editor-settings.cjs +23 -9
  47. package/build/components/provider/use-block-editor-settings.cjs.map +3 -3
  48. package/build/components/resizable-editor/index.cjs +54 -9
  49. package/build/components/resizable-editor/index.cjs.map +3 -3
  50. package/build/components/sidebar/dataform-post-summary.cjs +5 -1
  51. package/build/components/sidebar/dataform-post-summary.cjs.map +3 -3
  52. package/build/components/sidebar/index.cjs +29 -38
  53. package/build/components/sidebar/index.cjs.map +3 -3
  54. package/build/components/sidebar/post-summary.cjs +0 -13
  55. package/build/components/sidebar/post-summary.cjs.map +3 -3
  56. package/build/components/visual-editor/index.cjs +15 -11
  57. package/build/components/visual-editor/index.cjs.map +3 -3
  58. package/build/dataviews/store/private-actions.cjs +24 -19
  59. package/build/dataviews/store/private-actions.cjs.map +2 -2
  60. package/build/store/actions.cjs +5 -3
  61. package/build/store/actions.cjs.map +2 -2
  62. package/build/store/constants.cjs +26 -0
  63. package/build/store/constants.cjs.map +2 -2
  64. package/build/store/private-actions.cjs +25 -18
  65. package/build/store/private-actions.cjs.map +3 -3
  66. package/build/store/private-selectors.cjs +5 -0
  67. package/build/store/private-selectors.cjs.map +2 -2
  68. package/build/store/reducer.cjs +6 -6
  69. package/build/store/reducer.cjs.map +2 -2
  70. package/build/store/selectors.cjs +3 -1
  71. package/build/store/selectors.cjs.map +2 -2
  72. package/build/utils/device-type.cjs +52 -0
  73. package/build/utils/device-type.cjs.map +7 -0
  74. package/build/utils/media-sideload-from-url/index.cjs +63 -0
  75. package/build/utils/media-sideload-from-url/index.cjs.map +7 -0
  76. package/build-module/components/collab-sidebar/format.mjs +57 -0
  77. package/build-module/components/collab-sidebar/format.mjs.map +7 -0
  78. package/build-module/components/collab-sidebar/hooks.mjs +121 -16
  79. package/build-module/components/collab-sidebar/hooks.mjs.map +2 -2
  80. package/build-module/components/collab-sidebar/index.mjs +21 -5
  81. package/build-module/components/collab-sidebar/index.mjs.map +2 -2
  82. package/build-module/components/collab-sidebar/note-highlight-styles.mjs +41 -0
  83. package/build-module/components/collab-sidebar/note-highlight-styles.mjs.map +7 -0
  84. package/build-module/components/collab-sidebar/utils.mjs +133 -0
  85. package/build-module/components/collab-sidebar/utils.mjs.map +2 -2
  86. package/build-module/components/collaborators-presence/use-collaborator-notifications.mjs +55 -30
  87. package/build-module/components/collaborators-presence/use-collaborator-notifications.mjs.map +2 -2
  88. package/build-module/components/commands/index.mjs +99 -3
  89. package/build-module/components/commands/index.mjs.map +2 -2
  90. package/build-module/components/document-bar/index.mjs +28 -34
  91. package/build-module/components/document-bar/index.mjs.map +2 -2
  92. package/build-module/components/entities-saved-states/index.mjs +1 -4
  93. package/build-module/components/entities-saved-states/index.mjs.map +2 -2
  94. package/build-module/components/header/index.mjs +1 -13
  95. package/build-module/components/header/index.mjs.map +2 -2
  96. package/build-module/components/media-categories/index.mjs +93 -7
  97. package/build-module/components/media-categories/index.mjs.map +2 -2
  98. package/build-module/components/page-attributes/parent.mjs +0 -1
  99. package/build-module/components/page-attributes/parent.mjs.map +2 -2
  100. package/build-module/components/post-author/combobox.mjs +0 -1
  101. package/build-module/components/post-author/combobox.mjs.map +2 -2
  102. package/build-module/components/post-author/select.mjs +0 -1
  103. package/build-module/components/post-author/select.mjs.map +2 -2
  104. package/build-module/components/post-preview-button/index.mjs +29 -2
  105. package/build-module/components/post-preview-button/index.mjs.map +2 -2
  106. package/build-module/components/post-publish-panel/maybe-upload-media.mjs +19 -27
  107. package/build-module/components/post-publish-panel/maybe-upload-media.mjs.map +2 -2
  108. package/build-module/components/post-revisions-preview/revisions-slider.mjs +3 -1
  109. package/build-module/components/post-revisions-preview/revisions-slider.mjs.map +2 -2
  110. package/build-module/components/post-taxonomies/flat-term-selector.mjs +0 -1
  111. package/build-module/components/post-taxonomies/flat-term-selector.mjs.map +2 -2
  112. package/build-module/components/post-taxonomies/hierarchical-term-selector.mjs +0 -2
  113. package/build-module/components/post-taxonomies/hierarchical-term-selector.mjs.map +2 -2
  114. package/build-module/components/post-template/classic-theme.mjs +0 -1
  115. package/build-module/components/post-template/classic-theme.mjs.map +2 -2
  116. package/build-module/components/preferences-modal/index.mjs +54 -28
  117. package/build-module/components/preferences-modal/index.mjs.map +2 -2
  118. package/build-module/components/preview-dropdown/index.mjs +38 -9
  119. package/build-module/components/preview-dropdown/index.mjs.map +2 -2
  120. package/build-module/components/provider/use-block-editor-settings.mjs +23 -9
  121. package/build-module/components/provider/use-block-editor-settings.mjs.map +2 -2
  122. package/build-module/components/resizable-editor/index.mjs +55 -10
  123. package/build-module/components/resizable-editor/index.mjs.map +2 -2
  124. package/build-module/components/sidebar/dataform-post-summary.mjs +6 -2
  125. package/build-module/components/sidebar/dataform-post-summary.mjs.map +2 -2
  126. package/build-module/components/sidebar/index.mjs +29 -42
  127. package/build-module/components/sidebar/index.mjs.map +2 -2
  128. package/build-module/components/sidebar/post-summary.mjs +0 -13
  129. package/build-module/components/sidebar/post-summary.mjs.map +2 -2
  130. package/build-module/components/visual-editor/index.mjs +16 -13
  131. package/build-module/components/visual-editor/index.mjs.map +2 -2
  132. package/build-module/dataviews/store/private-actions.mjs +26 -19
  133. package/build-module/dataviews/store/private-actions.mjs.map +2 -2
  134. package/build-module/store/actions.mjs +5 -3
  135. package/build-module/store/actions.mjs.map +2 -2
  136. package/build-module/store/constants.mjs +25 -0
  137. package/build-module/store/constants.mjs.map +2 -2
  138. package/build-module/store/private-actions.mjs +27 -17
  139. package/build-module/store/private-actions.mjs.map +2 -2
  140. package/build-module/store/private-selectors.mjs +4 -0
  141. package/build-module/store/private-selectors.mjs.map +2 -2
  142. package/build-module/store/reducer.mjs +5 -5
  143. package/build-module/store/reducer.mjs.map +2 -2
  144. package/build-module/store/selectors.mjs +3 -1
  145. package/build-module/store/selectors.mjs.map +2 -2
  146. package/build-module/utils/device-type.mjs +25 -0
  147. package/build-module/utils/device-type.mjs.map +7 -0
  148. package/build-module/utils/media-sideload-from-url/index.mjs +32 -0
  149. package/build-module/utils/media-sideload-from-url/index.mjs.map +7 -0
  150. package/build-style/style-rtl.css +84 -39
  151. package/build-style/style.css +84 -39
  152. package/build-types/components/collab-sidebar/format.d.ts +17 -0
  153. package/build-types/components/collab-sidebar/format.d.ts.map +1 -0
  154. package/build-types/components/collab-sidebar/hooks.d.ts.map +1 -1
  155. package/build-types/components/collab-sidebar/index.d.ts.map +1 -1
  156. package/build-types/components/collab-sidebar/note-highlight-styles.d.ts +31 -0
  157. package/build-types/components/collab-sidebar/note-highlight-styles.d.ts.map +1 -0
  158. package/build-types/components/collab-sidebar/utils.d.ts +82 -2
  159. package/build-types/components/collab-sidebar/utils.d.ts.map +1 -1
  160. package/build-types/components/collaborators-presence/use-collaborator-notifications.d.ts.map +1 -1
  161. package/build-types/components/commands/index.d.ts.map +1 -1
  162. package/build-types/components/document-bar/index.d.ts.map +1 -1
  163. package/build-types/components/entities-saved-states/index.d.ts.map +1 -1
  164. package/build-types/components/header/index.d.ts.map +1 -1
  165. package/build-types/components/media-categories/index.d.ts +12 -3
  166. package/build-types/components/media-categories/index.d.ts.map +1 -1
  167. package/build-types/components/page-attributes/parent.d.ts.map +1 -1
  168. package/build-types/components/post-author/combobox.d.ts.map +1 -1
  169. package/build-types/components/post-author/select.d.ts.map +1 -1
  170. package/build-types/components/post-preview-button/index.d.ts.map +1 -1
  171. package/build-types/components/post-publish-panel/maybe-upload-media.d.ts.map +1 -1
  172. package/build-types/components/post-revisions-preview/revisions-slider.d.ts.map +1 -1
  173. package/build-types/components/post-taxonomies/flat-term-selector.d.ts.map +1 -1
  174. package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts.map +1 -1
  175. package/build-types/components/post-template/classic-theme.d.ts.map +1 -1
  176. package/build-types/components/preview-dropdown/index.d.ts.map +1 -1
  177. package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -1
  178. package/build-types/components/resizable-editor/index.d.ts.map +1 -1
  179. package/build-types/components/sidebar/dataform-post-summary.d.ts.map +1 -1
  180. package/build-types/components/sidebar/index.d.ts.map +1 -1
  181. package/build-types/components/sidebar/post-summary.d.ts.map +1 -1
  182. package/build-types/components/visual-editor/index.d.ts.map +1 -1
  183. package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
  184. package/build-types/store/actions.d.ts.map +1 -1
  185. package/build-types/store/constants.d.ts +6 -0
  186. package/build-types/store/constants.d.ts.map +1 -1
  187. package/build-types/store/index.d.ts +2 -2
  188. package/build-types/store/private-actions.d.ts +9 -15
  189. package/build-types/store/private-actions.d.ts.map +1 -1
  190. package/build-types/store/private-selectors.d.ts +7 -0
  191. package/build-types/store/private-selectors.d.ts.map +1 -1
  192. package/build-types/store/reducer.d.ts +6 -7
  193. package/build-types/store/reducer.d.ts.map +1 -1
  194. package/build-types/store/selectors.d.ts +1 -1
  195. package/build-types/store/selectors.d.ts.map +1 -1
  196. package/build-types/utils/device-type.d.ts +23 -0
  197. package/build-types/utils/device-type.d.ts.map +1 -0
  198. package/build-types/utils/get-template-part-icon.d.ts.map +1 -1
  199. package/build-types/utils/media-sideload-from-url/index.d.ts +18 -0
  200. package/build-types/utils/media-sideload-from-url/index.d.ts.map +1 -0
  201. package/package.json +48 -46
  202. package/src/components/collab-sidebar/format.js +72 -0
  203. package/src/components/collab-sidebar/hooks.js +203 -22
  204. package/src/components/collab-sidebar/index.js +19 -5
  205. package/src/components/collab-sidebar/note-highlight-styles.js +83 -0
  206. package/src/components/collab-sidebar/style.scss +9 -0
  207. package/src/components/collab-sidebar/test/note-highlight-styles.js +106 -0
  208. package/src/components/collab-sidebar/test/utils.js +471 -0
  209. package/src/components/collab-sidebar/utils.js +225 -2
  210. package/src/components/collaborators-presence/test/use-collaborator-notifications.ts +265 -262
  211. package/src/components/collaborators-presence/use-collaborator-notifications.ts +70 -34
  212. package/src/components/commands/index.js +142 -0
  213. package/src/components/document-bar/index.js +0 -9
  214. package/src/components/document-bar/style.scss +0 -17
  215. package/src/components/entities-saved-states/index.js +1 -5
  216. package/src/components/header/index.js +1 -15
  217. package/src/components/header/style.scss +7 -3
  218. package/src/components/media-categories/index.js +160 -6
  219. package/src/components/media-categories/test/index.js +202 -0
  220. package/src/components/page-attributes/parent.js +0 -1
  221. package/src/components/post-author/combobox.js +0 -1
  222. package/src/components/post-author/select.js +0 -1
  223. package/src/components/post-preview-button/index.js +68 -2
  224. package/src/components/post-publish-panel/maybe-upload-media.js +25 -30
  225. package/src/components/post-publish-panel/style.scss +1 -1
  226. package/src/components/post-publish-panel/test/__snapshots__/index.js.snap +11 -127
  227. package/src/components/post-revisions-preview/revisions-slider.js +4 -1
  228. package/src/components/post-revisions-preview/test/block-diff.js +2 -2
  229. package/src/components/post-taxonomies/flat-term-selector.js +0 -1
  230. package/src/components/post-taxonomies/hierarchical-term-selector.js +0 -2
  231. package/src/components/post-template/classic-theme.js +0 -1
  232. package/src/components/preferences-modal/index.js +40 -22
  233. package/src/components/preferences-modal/test/index.js +83 -0
  234. package/src/components/preview-dropdown/index.js +42 -3
  235. package/src/components/provider/use-block-editor-settings.js +42 -7
  236. package/src/components/resizable-editor/index.js +71 -9
  237. package/src/components/resizable-editor/style.scss +7 -0
  238. package/src/components/sidebar/dataform-post-summary.js +13 -1
  239. package/src/components/sidebar/index.js +32 -47
  240. package/src/components/sidebar/post-summary.js +0 -17
  241. package/src/components/styles-canvas/style.scss +1 -2
  242. package/src/components/visual-editor/index.js +19 -15
  243. package/src/components/visual-editor/style.scss +11 -4
  244. package/src/dataviews/store/private-actions.ts +30 -26
  245. package/src/store/actions.js +6 -3
  246. package/src/store/constants.ts +45 -0
  247. package/src/store/private-actions.js +38 -28
  248. package/src/store/private-selectors.js +10 -0
  249. package/src/store/reducer.js +7 -9
  250. package/src/store/selectors.js +3 -1
  251. package/src/store/test/actions.js +31 -22
  252. package/src/utils/device-type.js +46 -0
  253. package/src/utils/media-sideload-from-url/index.js +54 -0
  254. package/src/utils/media-sideload-from-url/test/index.js +162 -0
  255. package/build/components/post-publish-panel/media-util.cjs +0 -72
  256. package/build/components/post-publish-panel/media-util.cjs.map +0 -7
  257. package/build-module/components/post-publish-panel/media-util.mjs +0 -46
  258. package/build-module/components/post-publish-panel/media-util.mjs.map +0 -7
  259. package/build-types/components/post-publish-panel/media-util.d.ts +0 -20
  260. package/build-types/components/post-publish-panel/media-util.d.ts.map +0 -1
  261. package/src/components/post-publish-panel/media-util.js +0 -87
  262. package/src/components/post-publish-panel/test/media-util.js +0 -118
@@ -68,6 +68,12 @@
68
68
  /**
69
69
  * Focus styles.
70
70
  */
71
+ /**
72
+ * Standard focus rings for the WordPress Design System.
73
+ *
74
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
75
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
76
+ */
71
77
  /**
72
78
  * Applies editor left position to the selector passed as argument
73
79
  */
@@ -186,6 +192,12 @@
186
192
  /**
187
193
  * Focus styles.
188
194
  */
195
+ /**
196
+ * Standard focus rings for the WordPress Design System.
197
+ *
198
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
199
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
200
+ */
189
201
  /**
190
202
  * Applies editor left position to the selector passed as argument
191
203
  */
@@ -282,12 +294,7 @@
282
294
  }
283
295
 
284
296
  @media (min-width: 782px) {
285
- body.js.is-fullscreen-mode {
286
- margin-top: -32px;
287
- height: calc(100% + 32px);
288
- }
289
- body.js.is-fullscreen-mode #adminmenumain,
290
- body.js.is-fullscreen-mode #wpadminbar {
297
+ body.js.is-fullscreen-mode #adminmenumain {
291
298
  display: none;
292
299
  }
293
300
  body.js.is-fullscreen-mode #wpcontent,
@@ -323,7 +330,7 @@ html.interface-interface-skeleton__html-container {
323
330
  top: 32px;
324
331
  }
325
332
  .is-fullscreen-mode .interface-interface-skeleton {
326
- top: 0;
333
+ top: var(--wp-admin--admin-bar--height, 0);
327
334
  }
328
335
  }
329
336
  .interface-interface-skeleton__editor {
@@ -505,7 +512,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
505
512
  top: 32px;
506
513
  }
507
514
  .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
508
- top: 0;
515
+ top: var(--wp-admin--admin-bar--height, 0);
509
516
  }
510
517
  }
511
518
  .interface-pinned-items {
@@ -604,6 +611,12 @@ body.is-fullscreen-mode .interface-interface-skeleton {
604
611
  /**
605
612
  * Focus styles.
606
613
  */
614
+ /**
615
+ * Standard focus rings for the WordPress Design System.
616
+ *
617
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
618
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
619
+ */
607
620
  /**
608
621
  * Applies editor left position to the selector passed as argument
609
622
  */
@@ -1276,6 +1289,14 @@ button.font-library__upload-area {
1276
1289
  height: 100%;
1277
1290
  }
1278
1291
 
1292
+ .global-styles-ui-color-palette__tablist-container {
1293
+ border-bottom: 1px solid #ddd;
1294
+ }
1295
+
1296
+ .global-styles-ui-color-palette__tablist {
1297
+ margin-bottom: -1px;
1298
+ }
1299
+
1279
1300
  .global-styles-ui-sidebar__navigator-screen .single-column {
1280
1301
  grid-column: span 1;
1281
1302
  }
@@ -1372,6 +1393,12 @@ button.font-library__upload-area {
1372
1393
  /**
1373
1394
  * Focus styles.
1374
1395
  */
1396
+ /**
1397
+ * Standard focus rings for the WordPress Design System.
1398
+ *
1399
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
1400
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
1401
+ */
1375
1402
  /**
1376
1403
  * Applies editor left position to the selector passed as argument
1377
1404
  */
@@ -1399,7 +1426,6 @@ button.font-library__upload-area {
1399
1426
  min-height: 0;
1400
1427
  box-sizing: border-box;
1401
1428
  scroll-padding-bottom: 64px;
1402
- /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
1403
1429
  container: dataviews-wrapper/inline-size;
1404
1430
  display: flex;
1405
1431
  flex-direction: column;
@@ -1462,6 +1488,10 @@ button.font-library__upload-area {
1462
1488
  text-align: center;
1463
1489
  }
1464
1490
 
1491
+ .dataviews-loading-more[aria-hidden=true] {
1492
+ visibility: hidden;
1493
+ }
1494
+
1465
1495
  @container (max-width: 430px) {
1466
1496
  .dataviews__view-actions,
1467
1497
  .dataviews-filters__container {
@@ -2230,7 +2260,6 @@ button.font-library__upload-area {
2230
2260
 
2231
2261
  .dataviews-view-config {
2232
2262
  width: 320px;
2233
- /* stylelint-disable-next-line property-no-unknown -- the linter needs to be updated to accepted the container-type property */
2234
2263
  container-type: inline-size;
2235
2264
  font-size: var(--wpds-typography-font-size-md, 13px);
2236
2265
  line-height: var(--wpds-typography-line-height-sm, 20px);
@@ -4177,6 +4206,12 @@ div.dataviews-view-list {
4177
4206
  /**
4178
4207
  * Focus styles.
4179
4208
  */
4209
+ /**
4210
+ * Standard focus rings for the WordPress Design System.
4211
+ *
4212
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
4213
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
4214
+ */
4180
4215
  /**
4181
4216
  * Applies editor left position to the selector passed as argument
4182
4217
  */
@@ -4316,7 +4351,6 @@ fieldset.fields__media-edit .fields__media-edit-description {
4316
4351
  }
4317
4352
 
4318
4353
  fieldset.fields__media-edit {
4319
- /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
4320
4354
  container-type: inline-size;
4321
4355
  }
4322
4356
 
@@ -4556,7 +4590,6 @@ fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .fields__media
4556
4590
 
4557
4591
  fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) {
4558
4592
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
4559
- /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
4560
4593
  }
4561
4594
 
4562
4595
  @container (max-width: 500px) {
@@ -5082,6 +5115,12 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
5082
5115
  /**
5083
5116
  * Focus styles.
5084
5117
  */
5118
+ /**
5119
+ * Standard focus rings for the WordPress Design System.
5120
+ *
5121
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
5122
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
5123
+ */
5085
5124
  /**
5086
5125
  * Applies editor left position to the selector passed as argument
5087
5126
  */
@@ -5214,7 +5253,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
5214
5253
 
5215
5254
  @media (min-width: 600px) {
5216
5255
  .media-editor .media-editor__panel {
5217
- padding: 16px 0 0 24px;
5256
+ padding: 24px 0 0 24px;
5218
5257
  }
5219
5258
  }
5220
5259
  .media-editor .components-panel__header.media-editor__sidebar-header {
@@ -5903,6 +5942,11 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
5903
5942
  font-size: 12px;
5904
5943
  }
5905
5944
 
5945
+ mark.wp-note {
5946
+ border-radius: 1px;
5947
+ transition: background-color 0.1s ease-in-out;
5948
+ }
5949
+
5906
5950
  .editor-avatar {
5907
5951
  position: relative;
5908
5952
  display: inline-flex;
@@ -6353,11 +6397,6 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
6353
6397
  margin: 0 auto;
6354
6398
  max-width: 70%;
6355
6399
  }
6356
- @media (min-width: 782px) {
6357
- .editor-document-bar.has-shortcut .editor-document-bar__title {
6358
- padding-right: 24px;
6359
- }
6360
- }
6361
6400
  .editor-document-bar__title h1 {
6362
6401
  display: flex;
6363
6402
  align-items: center;
@@ -6385,17 +6424,6 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
6385
6424
  }
6386
6425
  }
6387
6426
 
6388
- .editor-document-bar__shortcut {
6389
- color: #2f2f2f;
6390
- min-width: 24px;
6391
- display: none;
6392
- }
6393
- @media (min-width: 782px) {
6394
- .editor-document-bar__shortcut {
6395
- display: initial;
6396
- }
6397
- }
6398
-
6399
6427
  .editor-document-bar__back.components-button.has-icon.has-text {
6400
6428
  min-width: 36px;
6401
6429
  flex-shrink: 0;
@@ -6785,14 +6813,14 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
6785
6813
  background: #fff;
6786
6814
  display: grid;
6787
6815
  grid-auto-flow: row;
6788
- grid-template: auto/64px minmax(0, max-content) minmax(min-content, 1fr) 64px;
6816
+ grid-template: auto/32px minmax(0, max-content) minmax(min-content, 1fr) 64px;
6789
6817
  }
6790
6818
  .editor-header:has(> .editor-header__center) {
6791
- grid-template: auto/64px min-content 1fr min-content 64px;
6819
+ grid-template: auto/32px min-content 1fr min-content 64px;
6792
6820
  }
6793
6821
  @media (min-width: 782px) {
6794
6822
  .editor-header:has(> .editor-header__center) {
6795
- grid-template: auto/64px minmax(min-content, 2fr) 2.5fr minmax(min-content, 2fr) 64px;
6823
+ grid-template: auto/32px minmax(min-content, 2fr) 2.5fr minmax(min-content, 2fr) 64px;
6796
6824
  }
6797
6825
  }
6798
6826
  @media (min-width: 480px) {
@@ -6811,6 +6839,10 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
6811
6839
  }
6812
6840
  }
6813
6841
 
6842
+ .editor-header__back-button {
6843
+ padding-right: 8px;
6844
+ }
6845
+
6814
6846
  .editor-header__toolbar {
6815
6847
  grid-column: 1/3;
6816
6848
  }
@@ -7706,7 +7738,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
7706
7738
  }
7707
7739
  @media (min-width: 782px) {
7708
7740
  body.is-fullscreen-mode .editor-post-publish-panel {
7709
- top: 0;
7741
+ top: var(--wp-admin--admin-bar--height, 0);
7710
7742
  }
7711
7743
  [role=region]:focus .editor-post-publish-panel {
7712
7744
  transform: translateX(0%);
@@ -8162,6 +8194,12 @@ textarea.editor-post-text-editor::placeholder {
8162
8194
  justify-content: space-between;
8163
8195
  }
8164
8196
 
8197
+ @media (prefers-reduced-motion: no-preference) {
8198
+ .editor-resizable-editor:not(.is-resizing) {
8199
+ transition: width 0.2s ease-out;
8200
+ }
8201
+ }
8202
+
8165
8203
  .editor-resizable-editor.is-resizable {
8166
8204
  overflow: visible;
8167
8205
  margin: 0 auto;
@@ -8405,7 +8443,7 @@ textarea.editor-post-text-editor::placeholder {
8405
8443
 
8406
8444
  .editor-styles-canvas {
8407
8445
  height: 100%;
8408
- padding: 16px;
8446
+ padding: 24px;
8409
8447
  background-color: var(--wp-editor-canvas-background);
8410
8448
  }
8411
8449
  .editor-styles-canvas iframe {
@@ -8416,7 +8454,6 @@ textarea.editor-post-text-editor::placeholder {
8416
8454
 
8417
8455
  .editor-styles-canvas__section {
8418
8456
  background: #fff;
8419
- border-radius: 8px;
8420
8457
  bottom: 0;
8421
8458
  right: 0;
8422
8459
  overflow: hidden;
@@ -8607,6 +8644,7 @@ textarea.editor-post-text-editor::placeholder {
8607
8644
  .editor-visual-editor {
8608
8645
  position: relative;
8609
8646
  display: flex;
8647
+ max-height: 100%;
8610
8648
  background-color: var(--wp-editor-canvas-background);
8611
8649
  }
8612
8650
  .editor-visual-editor iframe[name=editor-canvas] {
@@ -8615,11 +8653,18 @@ textarea.editor-post-text-editor::placeholder {
8615
8653
  .editor-visual-editor {
8616
8654
  align-items: center;
8617
8655
  }
8618
- .editor-visual-editor.is-resizable {
8619
- max-height: 100%;
8656
+ @media (prefers-reduced-motion: no-preference) {
8657
+ .editor-visual-editor {
8658
+ transition: padding 0.2s ease-out;
8659
+ }
8660
+ }
8661
+ .editor-visual-editor.has-vertical-padding {
8662
+ padding-top: 24px;
8663
+ padding-bottom: 24px;
8620
8664
  }
8621
- .editor-visual-editor.has-padding {
8622
- padding: 24px 24px 0;
8665
+ .editor-visual-editor.has-horizontal-padding {
8666
+ padding-right: 24px;
8667
+ padding-left: 24px;
8623
8668
  }
8624
8669
  .editor-visual-editor.is-iframed {
8625
8670
  overflow: hidden;
@@ -68,6 +68,12 @@
68
68
  /**
69
69
  * Focus styles.
70
70
  */
71
+ /**
72
+ * Standard focus rings for the WordPress Design System.
73
+ *
74
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
75
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
76
+ */
71
77
  /**
72
78
  * Applies editor left position to the selector passed as argument
73
79
  */
@@ -186,6 +192,12 @@
186
192
  /**
187
193
  * Focus styles.
188
194
  */
195
+ /**
196
+ * Standard focus rings for the WordPress Design System.
197
+ *
198
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
199
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
200
+ */
189
201
  /**
190
202
  * Applies editor left position to the selector passed as argument
191
203
  */
@@ -282,12 +294,7 @@
282
294
  }
283
295
 
284
296
  @media (min-width: 782px) {
285
- body.js.is-fullscreen-mode {
286
- margin-top: -32px;
287
- height: calc(100% + 32px);
288
- }
289
- body.js.is-fullscreen-mode #adminmenumain,
290
- body.js.is-fullscreen-mode #wpadminbar {
297
+ body.js.is-fullscreen-mode #adminmenumain {
291
298
  display: none;
292
299
  }
293
300
  body.js.is-fullscreen-mode #wpcontent,
@@ -323,7 +330,7 @@ html.interface-interface-skeleton__html-container {
323
330
  top: 32px;
324
331
  }
325
332
  .is-fullscreen-mode .interface-interface-skeleton {
326
- top: 0;
333
+ top: var(--wp-admin--admin-bar--height, 0);
327
334
  }
328
335
  }
329
336
  .interface-interface-skeleton__editor {
@@ -505,7 +512,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
505
512
  top: 32px;
506
513
  }
507
514
  .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
508
- top: 0;
515
+ top: var(--wp-admin--admin-bar--height, 0);
509
516
  }
510
517
  }
511
518
  .interface-pinned-items {
@@ -604,6 +611,12 @@ body.is-fullscreen-mode .interface-interface-skeleton {
604
611
  /**
605
612
  * Focus styles.
606
613
  */
614
+ /**
615
+ * Standard focus rings for the WordPress Design System.
616
+ *
617
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
618
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
619
+ */
607
620
  /**
608
621
  * Applies editor left position to the selector passed as argument
609
622
  */
@@ -1278,6 +1291,14 @@ button.font-library__upload-area {
1278
1291
  height: 100%;
1279
1292
  }
1280
1293
 
1294
+ .global-styles-ui-color-palette__tablist-container {
1295
+ border-bottom: 1px solid #ddd;
1296
+ }
1297
+
1298
+ .global-styles-ui-color-palette__tablist {
1299
+ margin-bottom: -1px;
1300
+ }
1301
+
1281
1302
  .global-styles-ui-sidebar__navigator-screen .single-column {
1282
1303
  grid-column: span 1;
1283
1304
  }
@@ -1374,6 +1395,12 @@ button.font-library__upload-area {
1374
1395
  /**
1375
1396
  * Focus styles.
1376
1397
  */
1398
+ /**
1399
+ * Standard focus rings for the WordPress Design System.
1400
+ *
1401
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
1402
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
1403
+ */
1377
1404
  /**
1378
1405
  * Applies editor left position to the selector passed as argument
1379
1406
  */
@@ -1401,7 +1428,6 @@ button.font-library__upload-area {
1401
1428
  min-height: 0;
1402
1429
  box-sizing: border-box;
1403
1430
  scroll-padding-bottom: 64px;
1404
- /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
1405
1431
  container: dataviews-wrapper/inline-size;
1406
1432
  display: flex;
1407
1433
  flex-direction: column;
@@ -1464,6 +1490,10 @@ button.font-library__upload-area {
1464
1490
  text-align: center;
1465
1491
  }
1466
1492
 
1493
+ .dataviews-loading-more[aria-hidden=true] {
1494
+ visibility: hidden;
1495
+ }
1496
+
1467
1497
  @container (max-width: 430px) {
1468
1498
  .dataviews__view-actions,
1469
1499
  .dataviews-filters__container {
@@ -2232,7 +2262,6 @@ button.font-library__upload-area {
2232
2262
 
2233
2263
  .dataviews-view-config {
2234
2264
  width: 320px;
2235
- /* stylelint-disable-next-line property-no-unknown -- the linter needs to be updated to accepted the container-type property */
2236
2265
  container-type: inline-size;
2237
2266
  font-size: var(--wpds-typography-font-size-md, 13px);
2238
2267
  line-height: var(--wpds-typography-line-height-sm, 20px);
@@ -4179,6 +4208,12 @@ div.dataviews-view-list {
4179
4208
  /**
4180
4209
  * Focus styles.
4181
4210
  */
4211
+ /**
4212
+ * Standard focus rings for the WordPress Design System.
4213
+ *
4214
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
4215
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
4216
+ */
4182
4217
  /**
4183
4218
  * Applies editor left position to the selector passed as argument
4184
4219
  */
@@ -4318,7 +4353,6 @@ fieldset.fields__media-edit .fields__media-edit-description {
4318
4353
  }
4319
4354
 
4320
4355
  fieldset.fields__media-edit {
4321
- /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
4322
4356
  container-type: inline-size;
4323
4357
  }
4324
4358
 
@@ -4558,7 +4592,6 @@ fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .fields__media
4558
4592
 
4559
4593
  fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) {
4560
4594
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
4561
- /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
4562
4595
  }
4563
4596
 
4564
4597
  @container (max-width: 500px) {
@@ -5084,6 +5117,12 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
5084
5117
  /**
5085
5118
  * Focus styles.
5086
5119
  */
5120
+ /**
5121
+ * Standard focus rings for the WordPress Design System.
5122
+ *
5123
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
5124
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
5125
+ */
5087
5126
  /**
5088
5127
  * Applies editor left position to the selector passed as argument
5089
5128
  */
@@ -5216,7 +5255,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
5216
5255
 
5217
5256
  @media (min-width: 600px) {
5218
5257
  .media-editor .media-editor__panel {
5219
- padding: 16px 24px 0 0;
5258
+ padding: 24px 24px 0 0;
5220
5259
  }
5221
5260
  }
5222
5261
  .media-editor .components-panel__header.media-editor__sidebar-header {
@@ -5906,6 +5945,11 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
5906
5945
  font-size: 12px;
5907
5946
  }
5908
5947
 
5948
+ mark.wp-note {
5949
+ border-radius: 1px;
5950
+ transition: background-color 0.1s ease-in-out;
5951
+ }
5952
+
5909
5953
  .editor-avatar {
5910
5954
  position: relative;
5911
5955
  display: inline-flex;
@@ -6356,11 +6400,6 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
6356
6400
  margin: 0 auto;
6357
6401
  max-width: 70%;
6358
6402
  }
6359
- @media (min-width: 782px) {
6360
- .editor-document-bar.has-shortcut .editor-document-bar__title {
6361
- padding-left: 24px;
6362
- }
6363
- }
6364
6403
  .editor-document-bar__title h1 {
6365
6404
  display: flex;
6366
6405
  align-items: center;
@@ -6388,17 +6427,6 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
6388
6427
  }
6389
6428
  }
6390
6429
 
6391
- .editor-document-bar__shortcut {
6392
- color: #2f2f2f;
6393
- min-width: 24px;
6394
- display: none;
6395
- }
6396
- @media (min-width: 782px) {
6397
- .editor-document-bar__shortcut {
6398
- display: initial;
6399
- }
6400
- }
6401
-
6402
6430
  .editor-document-bar__back.components-button.has-icon.has-text {
6403
6431
  min-width: 36px;
6404
6432
  flex-shrink: 0;
@@ -6788,14 +6816,14 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
6788
6816
  background: #fff;
6789
6817
  display: grid;
6790
6818
  grid-auto-flow: row;
6791
- grid-template: auto/64px minmax(0, max-content) minmax(min-content, 1fr) 64px;
6819
+ grid-template: auto/32px minmax(0, max-content) minmax(min-content, 1fr) 64px;
6792
6820
  }
6793
6821
  .editor-header:has(> .editor-header__center) {
6794
- grid-template: auto/64px min-content 1fr min-content 64px;
6822
+ grid-template: auto/32px min-content 1fr min-content 64px;
6795
6823
  }
6796
6824
  @media (min-width: 782px) {
6797
6825
  .editor-header:has(> .editor-header__center) {
6798
- grid-template: auto/64px minmax(min-content, 2fr) 2.5fr minmax(min-content, 2fr) 64px;
6826
+ grid-template: auto/32px minmax(min-content, 2fr) 2.5fr minmax(min-content, 2fr) 64px;
6799
6827
  }
6800
6828
  }
6801
6829
  @media (min-width: 480px) {
@@ -6814,6 +6842,10 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
6814
6842
  }
6815
6843
  }
6816
6844
 
6845
+ .editor-header__back-button {
6846
+ padding-left: 8px;
6847
+ }
6848
+
6817
6849
  .editor-header__toolbar {
6818
6850
  grid-column: 1/3;
6819
6851
  }
@@ -7711,7 +7743,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
7711
7743
  }
7712
7744
  @media (min-width: 782px) {
7713
7745
  body.is-fullscreen-mode .editor-post-publish-panel {
7714
- top: 0;
7746
+ top: var(--wp-admin--admin-bar--height, 0);
7715
7747
  }
7716
7748
  [role=region]:focus .editor-post-publish-panel {
7717
7749
  transform: translateX(0%);
@@ -8171,6 +8203,12 @@ textarea.editor-post-text-editor::placeholder {
8171
8203
  justify-content: space-between;
8172
8204
  }
8173
8205
 
8206
+ @media (prefers-reduced-motion: no-preference) {
8207
+ .editor-resizable-editor:not(.is-resizing) {
8208
+ transition: width 0.2s ease-out;
8209
+ }
8210
+ }
8211
+
8174
8212
  .editor-resizable-editor.is-resizable {
8175
8213
  overflow: visible;
8176
8214
  margin: 0 auto;
@@ -8414,7 +8452,7 @@ textarea.editor-post-text-editor::placeholder {
8414
8452
 
8415
8453
  .editor-styles-canvas {
8416
8454
  height: 100%;
8417
- padding: 16px;
8455
+ padding: 24px;
8418
8456
  background-color: var(--wp-editor-canvas-background);
8419
8457
  }
8420
8458
  .editor-styles-canvas iframe {
@@ -8425,7 +8463,6 @@ textarea.editor-post-text-editor::placeholder {
8425
8463
 
8426
8464
  .editor-styles-canvas__section {
8427
8465
  background: #fff;
8428
- border-radius: 8px;
8429
8466
  bottom: 0;
8430
8467
  left: 0;
8431
8468
  overflow: hidden;
@@ -8616,6 +8653,7 @@ textarea.editor-post-text-editor::placeholder {
8616
8653
  .editor-visual-editor {
8617
8654
  position: relative;
8618
8655
  display: flex;
8656
+ max-height: 100%;
8619
8657
  background-color: var(--wp-editor-canvas-background);
8620
8658
  }
8621
8659
  .editor-visual-editor iframe[name=editor-canvas] {
@@ -8624,11 +8662,18 @@ textarea.editor-post-text-editor::placeholder {
8624
8662
  .editor-visual-editor {
8625
8663
  align-items: center;
8626
8664
  }
8627
- .editor-visual-editor.is-resizable {
8628
- max-height: 100%;
8665
+ @media (prefers-reduced-motion: no-preference) {
8666
+ .editor-visual-editor {
8667
+ transition: padding 0.2s ease-out;
8668
+ }
8669
+ }
8670
+ .editor-visual-editor.has-vertical-padding {
8671
+ padding-top: 24px;
8672
+ padding-bottom: 24px;
8629
8673
  }
8630
- .editor-visual-editor.has-padding {
8631
- padding: 24px 24px 0;
8674
+ .editor-visual-editor.has-horizontal-padding {
8675
+ padding-left: 24px;
8676
+ padding-right: 24px;
8632
8677
  }
8633
8678
  .editor-visual-editor.is-iframed {
8634
8679
  overflow: hidden;
@@ -0,0 +1,17 @@
1
+ export declare const NOTE_FORMAT_NAME = "core/note";
2
+ export declare const noteFormat: {
3
+ title: import("@wordpress/i18n").TransformedText<"Add note">;
4
+ tagName: string;
5
+ className: string;
6
+ attributes: {
7
+ 'data-id': string;
8
+ };
9
+ edit: typeof NoteFormatEdit;
10
+ };
11
+ declare function NoteFormatEdit({ value, isActive, activeAttributes }: {
12
+ activeAttributes: any;
13
+ isActive: any;
14
+ value: any;
15
+ }): import("react").JSX.Element | null;
16
+ export {};
17
+ //# sourceMappingURL=format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/format.js"],"names":[],"mappings":"AAiBA,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAE5C,eAAO,MAAM,UAAU;IACtB,KAAK;IACL,OAAO;IACP,SAAS;IACT,UAAU;QACT,SAAS;;IAEV,IAAI;CACJ,CAAC;AAEF,iBAAS,cAAc,CAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE;;;;CAAA,sCA0C7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/hooks.js"],"names":[],"mappings":"AAqCA,wBAAgB,cAAc,CAAE,MAAM,KAAA;;;EA4GrC;AAED,wBAAgB,cAAc;;;;;;;;;;;EAsK7B;AAED,wBAAgB,wBAAwB,CAAE,OAAO,UAAQ,QA4BxD;AAED,wBAAgB,gBAAgB,CAAE,EACjC,OAAO,EACP,cAAc,EACd,UAAU,EACV,UAAU,EACV;;;;;CAAA;;;;EA0DA"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/hooks.js"],"names":[],"mappings":"AA2CA,wBAAgB,cAAc,CAAE,MAAM,KAAA;;;EAgIrC;AAoGD,wBAAgB,cAAc;;;;;;;;;;;EA+N7B;AAED,wBAAgB,wBAAwB,CAAE,OAAO,UAAQ,QA4BxD;AAED,wBAAgB,gBAAgB,CAAE,EACjC,OAAO,EACP,cAAc,EACd,UAAU,EACV,UAAU,EACV;;;;;CAAA;;;;EA0DA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/index.js"],"names":[],"mappings":"AAiNA,MAAM,CAAC,OAAO,UAAU,qBAAqB,uCA0B5C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/index.js"],"names":[],"mappings":"AA+NA,MAAM,CAAC,OAAO,UAAU,qBAAqB,uCA0B5C"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Build the CSS rule set that tints each inline-note marker with its author's
3
+ * avatar color. Pure helper extracted so it can be unit-tested without React.
4
+ *
5
+ * @param {Array} threads Unresolved note threads (each with `id` and `author`).
6
+ * @param {string|null} selectedId ID of the currently selected note, if any.
7
+ * @return {string} A serialized CSS string targeting the in-content note markers.
8
+ */
9
+ export declare function buildHighlightCss(threads: any[], selectedId?: string | null): string;
10
+ /**
11
+ * Injects per-note background rules into the editor canvas so inline-note
12
+ * markers carry their author's avatar color. The `core/note` format serializes
13
+ * each marker as `<mark class="wp-note" data-id="{noteId}">`, which we target
14
+ * directly.
15
+ *
16
+ * Uses `useStyleOverride` so the styles reach the iframed canvas; a plain
17
+ * `<style>` element rendered in the sidebar would only affect the parent doc.
18
+ *
19
+ * Opacity boosts on `:hover`, `:focus-within`, and when the matching thread is
20
+ * the editor's selected note.
21
+ *
22
+ * @param {Object} props
23
+ * @param {Array} props.threads Unresolved note threads.
24
+ * @param {string|null} [props.selectedId] ID of the currently selected note.
25
+ * @return {null} Renders nothing; styles are applied via `useStyleOverride`.
26
+ */
27
+ export declare function NoteHighlightStyles({ threads, selectedId }: {
28
+ threads: any[];
29
+ selectedId?: string | null;
30
+ }): null;
31
+ //# sourceMappingURL=note-highlight-styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"note-highlight-styles.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/note-highlight-styles.js"],"names":[],"mappings":"AAuBA;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAE,OAAO,OAAA,EAAE,UAAU,GAH3C,MAAM,GAAC,IAG2C,GAFjD,MAAM,CA2BjB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mBAAmB,CAAE,EAAE,OAAO,EAAE,UAAU,EAAE,EAJzD;IAA2B,OAAO,QAClC;IAA4B,UAAU,AAAtC,CACA,EADQ,MAAM,GAAC,IAAI,CACnB;CAEyD,GAFhD,IAAI,CASf"}