@wordpress/editor 14.38.0 → 14.39.1-next.v.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 (241) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/components/document-bar/useEditedSectionDetails.cjs +0 -3
  3. package/build/components/document-bar/useEditedSectionDetails.cjs.map +2 -2
  4. package/build/components/editor-interface/index.cjs +33 -9
  5. package/build/components/editor-interface/index.cjs.map +2 -2
  6. package/build/components/header/header-skeleton.cjs +100 -0
  7. package/build/components/header/header-skeleton.cjs.map +7 -0
  8. package/build/components/header/index.cjs +63 -106
  9. package/build/components/header/index.cjs.map +3 -3
  10. package/build/components/media/index.cjs +44 -0
  11. package/build/components/media/index.cjs.map +7 -0
  12. package/build/components/media/metadata-panel.cjs +96 -0
  13. package/build/components/media/metadata-panel.cjs.map +7 -0
  14. package/build/components/media/preview.cjs +39 -0
  15. package/build/components/media/preview.cjs.map +7 -0
  16. package/build/components/more-menu/index.cjs +3 -2
  17. package/build/components/more-menu/index.cjs.map +2 -2
  18. package/build/components/post-card-panel/index.cjs +33 -4
  19. package/build/components/post-card-panel/index.cjs.map +3 -3
  20. package/build/components/post-content-information/index.cjs +9 -0
  21. package/build/components/post-content-information/index.cjs.map +2 -2
  22. package/build/components/post-last-edited-panel/index.cjs +5 -6
  23. package/build/components/post-last-edited-panel/index.cjs.map +2 -2
  24. package/build/components/post-last-revision/index.cjs +5 -7
  25. package/build/components/post-last-revision/index.cjs.map +2 -2
  26. package/build/components/post-publish-button/label.cjs +6 -1
  27. package/build/components/post-publish-button/label.cjs.map +2 -2
  28. package/build/components/post-publish-button/post-publish-button-or-toggle.cjs +8 -3
  29. package/build/components/post-publish-button/post-publish-button-or-toggle.cjs.map +2 -2
  30. package/build/components/post-revisions-preview/index.cjs +44 -0
  31. package/build/components/post-revisions-preview/index.cjs.map +7 -0
  32. package/build/components/post-revisions-preview/preserve-client-ids.cjs +65 -0
  33. package/build/components/post-revisions-preview/preserve-client-ids.cjs.map +7 -0
  34. package/build/components/post-revisions-preview/revisions-canvas.cjs +89 -0
  35. package/build/components/post-revisions-preview/revisions-canvas.cjs.map +7 -0
  36. package/build/components/post-revisions-preview/revisions-header.cjs +119 -0
  37. package/build/components/post-revisions-preview/revisions-header.cjs.map +7 -0
  38. package/build/components/post-revisions-preview/revisions-slider.cjs +110 -0
  39. package/build/components/post-revisions-preview/revisions-slider.cjs.map +7 -0
  40. package/build/components/post-saved-state/index.cjs +8 -2
  41. package/build/components/post-saved-state/index.cjs.map +2 -2
  42. package/build/components/post-title/index.cjs +5 -4
  43. package/build/components/post-title/index.cjs.map +2 -2
  44. package/build/components/provider/index.cjs +19 -0
  45. package/build/components/provider/index.cjs.map +3 -3
  46. package/build/components/provider/use-block-editor-settings.cjs +2 -1
  47. package/build/components/provider/use-block-editor-settings.cjs.map +2 -2
  48. package/build/components/revision-author-panel/index.cjs +59 -0
  49. package/build/components/revision-author-panel/index.cjs.map +7 -0
  50. package/build/components/revision-created-panel/index.cjs +47 -0
  51. package/build/components/revision-created-panel/index.cjs.map +7 -0
  52. package/build/components/sidebar/header.cjs +27 -12
  53. package/build/components/sidebar/header.cjs.map +3 -3
  54. package/build/components/sidebar/index.cjs +36 -15
  55. package/build/components/sidebar/index.cjs.map +3 -3
  56. package/build/components/sidebar/post-summary.cjs +44 -19
  57. package/build/components/sidebar/post-summary.cjs.map +3 -3
  58. package/build/components/start-page-options/index.cjs +1 -1
  59. package/build/components/start-page-options/index.cjs.map +2 -2
  60. package/build/dataviews/store/private-actions.cjs +47 -26
  61. package/build/dataviews/store/private-actions.cjs.map +3 -3
  62. package/build/store/constants.cjs +3 -0
  63. package/build/store/constants.cjs.map +2 -2
  64. package/build/store/private-actions.cjs +40 -0
  65. package/build/store/private-actions.cjs.map +2 -2
  66. package/build/store/private-selectors.cjs +33 -2
  67. package/build/store/private-selectors.cjs.map +2 -2
  68. package/build/store/reducer.cjs +10 -0
  69. package/build/store/reducer.cjs.map +2 -2
  70. package/build/store/selectors.cjs +3 -0
  71. package/build/store/selectors.cjs.map +2 -2
  72. package/build/store/utils/notice-builder.cjs +4 -0
  73. package/build/store/utils/notice-builder.cjs.map +2 -2
  74. package/build-module/components/document-bar/useEditedSectionDetails.mjs +0 -3
  75. package/build-module/components/document-bar/useEditedSectionDetails.mjs.map +2 -2
  76. package/build-module/components/editor-interface/index.mjs +33 -9
  77. package/build-module/components/editor-interface/index.mjs.map +2 -2
  78. package/build-module/components/header/header-skeleton.mjs +69 -0
  79. package/build-module/components/header/header-skeleton.mjs.map +7 -0
  80. package/build-module/components/header/index.mjs +65 -107
  81. package/build-module/components/header/index.mjs.map +2 -2
  82. package/build-module/components/media/index.mjs +8 -0
  83. package/build-module/components/media/index.mjs.map +7 -0
  84. package/build-module/components/media/metadata-panel.mjs +65 -0
  85. package/build-module/components/media/metadata-panel.mjs.map +7 -0
  86. package/build-module/components/media/preview.mjs +21 -0
  87. package/build-module/components/media/preview.mjs.map +7 -0
  88. package/build-module/components/more-menu/index.mjs +3 -2
  89. package/build-module/components/more-menu/index.mjs.map +2 -2
  90. package/build-module/components/post-card-panel/index.mjs +35 -5
  91. package/build-module/components/post-card-panel/index.mjs.map +3 -3
  92. package/build-module/components/post-content-information/index.mjs +9 -0
  93. package/build-module/components/post-content-information/index.mjs.map +2 -2
  94. package/build-module/components/post-last-edited-panel/index.mjs +5 -6
  95. package/build-module/components/post-last-edited-panel/index.mjs.map +2 -2
  96. package/build-module/components/post-last-revision/index.mjs +6 -8
  97. package/build-module/components/post-last-revision/index.mjs.map +2 -2
  98. package/build-module/components/post-publish-button/label.mjs +6 -1
  99. package/build-module/components/post-publish-button/label.mjs.map +2 -2
  100. package/build-module/components/post-publish-button/post-publish-button-or-toggle.mjs +8 -3
  101. package/build-module/components/post-publish-button/post-publish-button-or-toggle.mjs.map +2 -2
  102. package/build-module/components/post-revisions-preview/index.mjs +8 -0
  103. package/build-module/components/post-revisions-preview/index.mjs.map +7 -0
  104. package/build-module/components/post-revisions-preview/preserve-client-ids.mjs +40 -0
  105. package/build-module/components/post-revisions-preview/preserve-client-ids.mjs.map +7 -0
  106. package/build-module/components/post-revisions-preview/revisions-canvas.mjs +61 -0
  107. package/build-module/components/post-revisions-preview/revisions-canvas.mjs.map +7 -0
  108. package/build-module/components/post-revisions-preview/revisions-header.mjs +92 -0
  109. package/build-module/components/post-revisions-preview/revisions-header.mjs.map +7 -0
  110. package/build-module/components/post-revisions-preview/revisions-slider.mjs +89 -0
  111. package/build-module/components/post-revisions-preview/revisions-slider.mjs.map +7 -0
  112. package/build-module/components/post-saved-state/index.mjs +8 -2
  113. package/build-module/components/post-saved-state/index.mjs.map +2 -2
  114. package/build-module/components/post-title/index.mjs +5 -4
  115. package/build-module/components/post-title/index.mjs.map +2 -2
  116. package/build-module/components/provider/index.mjs +19 -0
  117. package/build-module/components/provider/index.mjs.map +2 -2
  118. package/build-module/components/provider/use-block-editor-settings.mjs +2 -1
  119. package/build-module/components/provider/use-block-editor-settings.mjs.map +2 -2
  120. package/build-module/components/revision-author-panel/index.mjs +28 -0
  121. package/build-module/components/revision-author-panel/index.mjs.map +7 -0
  122. package/build-module/components/revision-created-panel/index.mjs +26 -0
  123. package/build-module/components/revision-created-panel/index.mjs.map +7 -0
  124. package/build-module/components/sidebar/header.mjs +22 -7
  125. package/build-module/components/sidebar/header.mjs.map +2 -2
  126. package/build-module/components/sidebar/index.mjs +38 -16
  127. package/build-module/components/sidebar/index.mjs.map +2 -2
  128. package/build-module/components/sidebar/post-summary.mjs +48 -20
  129. package/build-module/components/sidebar/post-summary.mjs.map +2 -2
  130. package/build-module/components/start-page-options/index.mjs +2 -1
  131. package/build-module/components/start-page-options/index.mjs.map +2 -2
  132. package/build-module/dataviews/store/private-actions.mjs +59 -27
  133. package/build-module/dataviews/store/private-actions.mjs.map +2 -2
  134. package/build-module/store/constants.mjs +2 -0
  135. package/build-module/store/constants.mjs.map +2 -2
  136. package/build-module/store/private-actions.mjs +38 -0
  137. package/build-module/store/private-actions.mjs.map +2 -2
  138. package/build-module/store/private-selectors.mjs +29 -1
  139. package/build-module/store/private-selectors.mjs.map +2 -2
  140. package/build-module/store/reducer.mjs +9 -0
  141. package/build-module/store/reducer.mjs.map +2 -2
  142. package/build-module/store/selectors.mjs +4 -0
  143. package/build-module/store/selectors.mjs.map +2 -2
  144. package/build-module/store/utils/notice-builder.mjs +4 -0
  145. package/build-module/store/utils/notice-builder.mjs.map +2 -2
  146. package/build-style/style-rtl.css +187 -16
  147. package/build-style/style.css +187 -16
  148. package/build-types/components/document-bar/useEditedSectionDetails.d.ts.map +1 -1
  149. package/build-types/components/editor-interface/index.d.ts.map +1 -1
  150. package/build-types/components/header/header-skeleton.d.ts +17 -0
  151. package/build-types/components/header/header-skeleton.d.ts.map +1 -0
  152. package/build-types/components/header/index.d.ts.map +1 -1
  153. package/build-types/components/media/index.d.ts +3 -0
  154. package/build-types/components/media/index.d.ts.map +1 -0
  155. package/build-types/components/media/metadata-panel.d.ts +12 -0
  156. package/build-types/components/media/metadata-panel.d.ts.map +1 -0
  157. package/build-types/components/media/preview.d.ts +9 -0
  158. package/build-types/components/media/preview.d.ts.map +1 -0
  159. package/build-types/components/more-menu/index.d.ts +3 -1
  160. package/build-types/components/more-menu/index.d.ts.map +1 -1
  161. package/build-types/components/post-card-panel/index.d.ts.map +1 -1
  162. package/build-types/components/post-content-information/index.d.ts.map +1 -1
  163. package/build-types/components/post-last-edited-panel/index.d.ts.map +1 -1
  164. package/build-types/components/post-last-revision/index.d.ts.map +1 -1
  165. package/build-types/components/post-publish-button/label.d.ts.map +1 -1
  166. package/build-types/components/post-publish-button/post-publish-button-or-toggle.d.ts.map +1 -1
  167. package/build-types/components/post-revisions-preview/index.d.ts +3 -0
  168. package/build-types/components/post-revisions-preview/index.d.ts.map +1 -0
  169. package/build-types/components/post-revisions-preview/preserve-client-ids.d.ts +13 -0
  170. package/build-types/components/post-revisions-preview/preserve-client-ids.d.ts.map +1 -0
  171. package/build-types/components/post-revisions-preview/revisions-canvas.d.ts +7 -0
  172. package/build-types/components/post-revisions-preview/revisions-canvas.d.ts.map +1 -0
  173. package/build-types/components/post-revisions-preview/revisions-header.d.ts +8 -0
  174. package/build-types/components/post-revisions-preview/revisions-header.d.ts.map +1 -0
  175. package/build-types/components/post-revisions-preview/revisions-slider.d.ts +8 -0
  176. package/build-types/components/post-revisions-preview/revisions-slider.d.ts.map +1 -0
  177. package/build-types/components/post-saved-state/index.d.ts.map +1 -1
  178. package/build-types/components/provider/index.d.ts.map +1 -1
  179. package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -1
  180. package/build-types/components/revision-author-panel/index.d.ts +2 -0
  181. package/build-types/components/revision-author-panel/index.d.ts.map +1 -0
  182. package/build-types/components/revision-created-panel/index.d.ts +2 -0
  183. package/build-types/components/revision-created-panel/index.d.ts.map +1 -0
  184. package/build-types/components/sidebar/index.d.ts.map +1 -1
  185. package/build-types/components/sidebar/post-summary.d.ts.map +1 -1
  186. package/build-types/components/start-page-options/index.d.ts.map +1 -1
  187. package/build-types/dataviews/store/private-actions.d.ts +1 -0
  188. package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
  189. package/build-types/store/constants.d.ts +1 -0
  190. package/build-types/store/constants.d.ts.map +1 -1
  191. package/build-types/store/private-actions.d.ts +13 -0
  192. package/build-types/store/private-actions.d.ts.map +1 -1
  193. package/build-types/store/private-selectors.d.ts +25 -0
  194. package/build-types/store/private-selectors.d.ts.map +1 -1
  195. package/build-types/store/reducer.d.ts +11 -0
  196. package/build-types/store/reducer.d.ts.map +1 -1
  197. package/build-types/store/selectors.d.ts.map +1 -1
  198. package/build-types/store/utils/notice-builder.d.ts.map +1 -1
  199. package/package.json +43 -40
  200. package/src/components/document-bar/useEditedSectionDetails.js +0 -5
  201. package/src/components/editor-interface/index.js +39 -9
  202. package/src/components/header/header-skeleton.js +90 -0
  203. package/src/components/header/index.js +69 -102
  204. package/src/components/header/style.scss +4 -0
  205. package/src/components/media/index.js +2 -0
  206. package/src/components/media/metadata-panel.js +77 -0
  207. package/src/components/media/preview.js +35 -0
  208. package/src/components/more-menu/index.js +2 -1
  209. package/src/components/post-card-panel/index.js +43 -7
  210. package/src/components/post-content-information/index.js +11 -0
  211. package/src/components/post-last-edited-panel/index.js +8 -9
  212. package/src/components/post-last-revision/index.js +7 -8
  213. package/src/components/post-publish-button/label.js +9 -0
  214. package/src/components/post-publish-button/post-publish-button-or-toggle.js +13 -5
  215. package/src/components/post-revisions-preview/index.js +2 -0
  216. package/src/components/post-revisions-preview/preserve-client-ids.js +59 -0
  217. package/src/components/post-revisions-preview/revisions-canvas.js +87 -0
  218. package/src/components/post-revisions-preview/revisions-header.js +108 -0
  219. package/src/components/post-revisions-preview/revisions-slider.js +123 -0
  220. package/src/components/post-revisions-preview/style.scss +22 -0
  221. package/src/components/post-revisions-preview/test/preserve-client-ids.js +246 -0
  222. package/src/components/post-saved-state/index.js +8 -0
  223. package/src/components/post-title/index.js +4 -3
  224. package/src/components/provider/index.js +26 -0
  225. package/src/components/provider/use-block-editor-settings.js +2 -3
  226. package/src/components/revision-author-panel/index.js +36 -0
  227. package/src/components/revision-created-panel/index.js +36 -0
  228. package/src/components/sidebar/header.js +35 -14
  229. package/src/components/sidebar/index.js +40 -13
  230. package/src/components/sidebar/post-summary.js +45 -11
  231. package/src/components/sidebar/style.scss +7 -0
  232. package/src/components/start-page-options/index.js +2 -0
  233. package/src/dataviews/store/private-actions.ts +79 -33
  234. package/src/store/constants.ts +1 -0
  235. package/src/store/private-actions.js +70 -0
  236. package/src/store/private-selectors.js +54 -0
  237. package/src/store/reducer.js +17 -0
  238. package/src/store/selectors.js +6 -0
  239. package/src/store/test/selectors.js +7 -0
  240. package/src/store/utils/notice-builder.js +9 -0
  241. package/src/style.scss +2 -0
@@ -1479,15 +1479,15 @@ button.font-library__upload-area {
1479
1479
  * Autogenerated by ⛋ Terrazzo. DO NOT EDIT!
1480
1480
  * ------------------------------------------- */
1481
1481
  :root {
1482
- --wpds-border-radius-surface-lg: 8px; /* Large radius for surfaces */
1483
- --wpds-border-radius-surface-md: 4px; /* Medium radius for surfaces */
1484
- --wpds-border-radius-surface-sm: 2px; /* Small radius for surfaces */
1485
- --wpds-border-radius-surface-xs: 1px; /* Extra small radius for surfaces */
1486
- --wpds-border-width-interactive-focus: 2px; /* Border width for focus ring */
1487
- --wpds-border-width-surface-lg: 8px; /* Large width for surfaces */
1488
- --wpds-border-width-surface-md: 4px; /* Medium width for surfaces */
1489
- --wpds-border-width-surface-sm: 2px; /* Small width for surfaces */
1490
- --wpds-border-width-surface-xs: 1px; /* Extra small width for surfaces */
1482
+ --wpds-border-radius-lg: 8px; /* Large radius */
1483
+ --wpds-border-radius-md: 4px; /* Medium radius */
1484
+ --wpds-border-radius-sm: 2px; /* Small radius */
1485
+ --wpds-border-radius-xs: 1px; /* Extra small radius */
1486
+ --wpds-border-width-focus: 2px; /* Border width for focus ring */
1487
+ --wpds-border-width-lg: 8px; /* Large width */
1488
+ --wpds-border-width-md: 4px; /* Medium width */
1489
+ --wpds-border-width-sm: 2px; /* Small width */
1490
+ --wpds-border-width-xs: 1px; /* Extra small width */
1491
1491
  --wpds-color-bg-interactive-brand-strong: #3858e9; /* Background color for interactive elements with brand tone and strong emphasis. */
1492
1492
  --wpds-color-bg-interactive-brand-strong-active: #2e49d9; /* Background color for interactive elements with brand tone and strong emphasis that are hovered, focused, or active. */
1493
1493
  --wpds-color-bg-interactive-brand-weak: #00000000; /* Background color for interactive elements with brand tone and weak emphasis. */
@@ -1662,7 +1662,7 @@ button.font-library__upload-area {
1662
1662
 
1663
1663
  @media (min-resolution: 192dpi) {
1664
1664
  :root {
1665
- --wpds-border-width-interactive-focus: 1.5px; /* Border width for focus ring */
1665
+ --wpds-border-width-focus: 1.5px; /* Border width for focus ring */
1666
1666
  }
1667
1667
  }
1668
1668
  /**
@@ -1880,9 +1880,6 @@ button.font-library__upload-area {
1880
1880
 
1881
1881
  .dataviews-bulk-actions-footer__item-count {
1882
1882
  color: #1e1e1e;
1883
- font-weight: 499;
1884
- font-size: 11px;
1885
- text-transform: uppercase;
1886
1883
  }
1887
1884
 
1888
1885
  .dataviews-bulk-actions-footer__container {
@@ -3204,7 +3201,7 @@ div.dataviews-view-list {
3204
3201
  background-color: color-mix(in srgb, rgb(var(--wp-admin-theme-color--rgb)) 4%, #fff);
3205
3202
  }
3206
3203
 
3207
- .dataviews-view-table.has-bulk-actions tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table.has-bulk-actions tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
3204
+ .dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
3208
3205
  opacity: 1;
3209
3206
  }
3210
3207
 
@@ -3339,6 +3336,8 @@ div.dataviews-view-list {
3339
3336
  }
3340
3337
  .dataviews-column-primary__media {
3341
3338
  max-width: 60px;
3339
+ min-width: 32px;
3340
+ min-height: 32px;
3342
3341
  overflow: hidden;
3343
3342
  position: relative;
3344
3343
  flex-shrink: 0;
@@ -3347,8 +3346,8 @@ div.dataviews-view-list {
3347
3346
  }
3348
3347
 
3349
3348
  .dataviews-column-primary__media img {
3350
- width: 100%;
3351
- height: 100%;
3349
+ width: 32px;
3350
+ height: 32px;
3352
3351
  object-fit: cover;
3353
3352
  }
3354
3353
 
@@ -3948,6 +3947,11 @@ div.dataviews-view-list {
3948
3947
  gap: 16px;
3949
3948
  }
3950
3949
 
3950
+ .dataforms-layouts-details__summary-content {
3951
+ display: inline-flex;
3952
+ min-height: 24px;
3953
+ }
3954
+
3951
3955
  .dataforms-layouts-details__content {
3952
3956
  padding-top: 12px;
3953
3957
  }
@@ -3963,6 +3967,146 @@ div.dataviews-view-list {
3963
3967
  line-height: 20px;
3964
3968
  }
3965
3969
 
3970
+ /**
3971
+ * Colors
3972
+ */
3973
+ /**
3974
+ * SCSS Variables.
3975
+ *
3976
+ * Please use variables from this sheet to ensure consistency across the UI.
3977
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
3978
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
3979
+ */
3980
+ /**
3981
+ * Fonts & basic variables.
3982
+ */
3983
+ /**
3984
+ * Typography
3985
+ */
3986
+ /**
3987
+ * Grid System.
3988
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
3989
+ */
3990
+ /**
3991
+ * Radius scale.
3992
+ */
3993
+ /**
3994
+ * Elevation scale.
3995
+ */
3996
+ /**
3997
+ * Dimensions.
3998
+ */
3999
+ /**
4000
+ * Mobile specific styles
4001
+ */
4002
+ /**
4003
+ * Editor styles.
4004
+ */
4005
+ /**
4006
+ * Block & Editor UI.
4007
+ */
4008
+ /**
4009
+ * Block paddings.
4010
+ */
4011
+ /**
4012
+ * React Native specific.
4013
+ * These variables do not appear to be used anywhere else.
4014
+ */
4015
+ .media-editor-preview {
4016
+ box-sizing: border-box;
4017
+ display: flex;
4018
+ justify-content: center;
4019
+ align-items: center;
4020
+ min-height: 100%;
4021
+ padding: 32px;
4022
+ position: relative;
4023
+ }
4024
+
4025
+ .media-editor-preview__spinner {
4026
+ position: absolute;
4027
+ top: 50%;
4028
+ right: 50%;
4029
+ transform: translate(50%, -50%);
4030
+ }
4031
+
4032
+ .media-editor-preview--loading {
4033
+ width: 100%;
4034
+ height: 100%;
4035
+ }
4036
+
4037
+ .media-editor-preview--image img {
4038
+ max-width: 100%;
4039
+ max-height: 100%;
4040
+ object-fit: contain;
4041
+ width: auto;
4042
+ height: auto;
4043
+ opacity: 0;
4044
+ }
4045
+
4046
+ @keyframes __wp-base-styles-fade-in {
4047
+ from {
4048
+ opacity: 0;
4049
+ }
4050
+ to {
4051
+ opacity: 1;
4052
+ }
4053
+ }
4054
+ @media not (prefers-reduced-motion) {
4055
+ .media-editor-preview--image img.loaded {
4056
+ animation: __wp-base-styles-fade-in 0.08s linear 0s;
4057
+ animation-fill-mode: forwards;
4058
+ }
4059
+ }
4060
+ .media-editor-preview--video video {
4061
+ max-width: 100%;
4062
+ max-height: 100%;
4063
+ object-fit: contain;
4064
+ width: auto;
4065
+ height: auto;
4066
+ }
4067
+
4068
+ .media-editor-preview--audio audio {
4069
+ max-width: 100%;
4070
+ }
4071
+
4072
+ .media-editor-preview--file {
4073
+ text-align: center;
4074
+ }
4075
+
4076
+ .media-editor-preview__file-info {
4077
+ background: #f0f0f0;
4078
+ padding: 24px;
4079
+ border-radius: 2px;
4080
+ }
4081
+
4082
+ .media-editor-preview__file-name {
4083
+ font-weight: 600;
4084
+ margin-bottom: 8px;
4085
+ }
4086
+
4087
+ .media-editor-preview__mime-type {
4088
+ color: #757575;
4089
+ font-size: 0.9em;
4090
+ margin-bottom: 16px;
4091
+ }
4092
+
4093
+ .media-editor-preview__download-link {
4094
+ display: inline-block;
4095
+ margin-top: 8px;
4096
+ }
4097
+
4098
+ .media-editor-preview--error, .media-editor-preview--empty {
4099
+ color: #757575;
4100
+ text-align: center;
4101
+ }
4102
+
4103
+ .media-editor-preview__url {
4104
+ font-size: 0.9em;
4105
+ color: #949494;
4106
+ word-break: break-all;
4107
+ margin-top: 8px;
4108
+ }
4109
+
3966
4110
  .editor-autocompleters__user .editor-autocompleters__no-avatar::before {
3967
4111
  /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- dashicons don't need a generic family keyword. */
3968
4112
  font: normal 20px/1 dashicons;
@@ -4847,6 +4991,9 @@ div.dataviews-view-list {
4847
4991
  margin-inline-end: 8px;
4848
4992
  }
4849
4993
  }
4994
+ .editor-revisions-header .editor-header__center {
4995
+ clip-path: none;
4996
+ }
4850
4997
 
4851
4998
  /**
4852
4999
  * Buttons on the right side
@@ -5695,6 +5842,25 @@ div.dataviews-view-list {
5695
5842
  transform: translateX(0%);
5696
5843
  }
5697
5844
  }
5845
+ .editor-revisions-header__slider {
5846
+ width: 100%;
5847
+ }
5848
+ .editor-revisions-header__slider .components-range-control__tooltip {
5849
+ white-space: nowrap;
5850
+ }
5851
+
5852
+ .editor-revisions-header__no-revisions {
5853
+ color: #757575;
5854
+ font-size: 13px;
5855
+ }
5856
+
5857
+ .editor-revisions-canvas__loading {
5858
+ display: flex;
5859
+ align-items: center;
5860
+ justify-content: center;
5861
+ height: 100%;
5862
+ }
5863
+
5698
5864
  .editor-post-saved-state {
5699
5865
  display: flex;
5700
5866
  align-items: center;
@@ -6163,6 +6329,11 @@ textarea.editor-post-text-editor::placeholder {
6163
6329
  .editor-sidebar *::after {
6164
6330
  box-sizing: inherit;
6165
6331
  }
6332
+ .editor-sidebar__revisions-block-message {
6333
+ padding: 16px;
6334
+ color: #757575;
6335
+ font-size: 13px;
6336
+ }
6166
6337
 
6167
6338
  .editor-site-discussion-dropdown__content .components-popover__content {
6168
6339
  min-width: 320px;
@@ -1482,15 +1482,15 @@ button.font-library__upload-area {
1482
1482
  * Autogenerated by ⛋ Terrazzo. DO NOT EDIT!
1483
1483
  * ------------------------------------------- */
1484
1484
  :root {
1485
- --wpds-border-radius-surface-lg: 8px; /* Large radius for surfaces */
1486
- --wpds-border-radius-surface-md: 4px; /* Medium radius for surfaces */
1487
- --wpds-border-radius-surface-sm: 2px; /* Small radius for surfaces */
1488
- --wpds-border-radius-surface-xs: 1px; /* Extra small radius for surfaces */
1489
- --wpds-border-width-interactive-focus: 2px; /* Border width for focus ring */
1490
- --wpds-border-width-surface-lg: 8px; /* Large width for surfaces */
1491
- --wpds-border-width-surface-md: 4px; /* Medium width for surfaces */
1492
- --wpds-border-width-surface-sm: 2px; /* Small width for surfaces */
1493
- --wpds-border-width-surface-xs: 1px; /* Extra small width for surfaces */
1485
+ --wpds-border-radius-lg: 8px; /* Large radius */
1486
+ --wpds-border-radius-md: 4px; /* Medium radius */
1487
+ --wpds-border-radius-sm: 2px; /* Small radius */
1488
+ --wpds-border-radius-xs: 1px; /* Extra small radius */
1489
+ --wpds-border-width-focus: 2px; /* Border width for focus ring */
1490
+ --wpds-border-width-lg: 8px; /* Large width */
1491
+ --wpds-border-width-md: 4px; /* Medium width */
1492
+ --wpds-border-width-sm: 2px; /* Small width */
1493
+ --wpds-border-width-xs: 1px; /* Extra small width */
1494
1494
  --wpds-color-bg-interactive-brand-strong: #3858e9; /* Background color for interactive elements with brand tone and strong emphasis. */
1495
1495
  --wpds-color-bg-interactive-brand-strong-active: #2e49d9; /* Background color for interactive elements with brand tone and strong emphasis that are hovered, focused, or active. */
1496
1496
  --wpds-color-bg-interactive-brand-weak: #00000000; /* Background color for interactive elements with brand tone and weak emphasis. */
@@ -1665,7 +1665,7 @@ button.font-library__upload-area {
1665
1665
 
1666
1666
  @media (min-resolution: 192dpi) {
1667
1667
  :root {
1668
- --wpds-border-width-interactive-focus: 1.5px; /* Border width for focus ring */
1668
+ --wpds-border-width-focus: 1.5px; /* Border width for focus ring */
1669
1669
  }
1670
1670
  }
1671
1671
  /**
@@ -1883,9 +1883,6 @@ button.font-library__upload-area {
1883
1883
 
1884
1884
  .dataviews-bulk-actions-footer__item-count {
1885
1885
  color: #1e1e1e;
1886
- font-weight: 499;
1887
- font-size: 11px;
1888
- text-transform: uppercase;
1889
1886
  }
1890
1887
 
1891
1888
  .dataviews-bulk-actions-footer__container {
@@ -3207,7 +3204,7 @@ div.dataviews-view-list {
3207
3204
  background-color: color-mix(in srgb, rgb(var(--wp-admin-theme-color--rgb)) 4%, #fff);
3208
3205
  }
3209
3206
 
3210
- .dataviews-view-table.has-bulk-actions tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table.has-bulk-actions tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
3207
+ .dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
3211
3208
  opacity: 1;
3212
3209
  }
3213
3210
 
@@ -3342,6 +3339,8 @@ div.dataviews-view-list {
3342
3339
  }
3343
3340
  .dataviews-column-primary__media {
3344
3341
  max-width: 60px;
3342
+ min-width: 32px;
3343
+ min-height: 32px;
3345
3344
  overflow: hidden;
3346
3345
  position: relative;
3347
3346
  flex-shrink: 0;
@@ -3350,8 +3349,8 @@ div.dataviews-view-list {
3350
3349
  }
3351
3350
 
3352
3351
  .dataviews-column-primary__media img {
3353
- width: 100%;
3354
- height: 100%;
3352
+ width: 32px;
3353
+ height: 32px;
3355
3354
  object-fit: cover;
3356
3355
  }
3357
3356
 
@@ -3951,6 +3950,11 @@ div.dataviews-view-list {
3951
3950
  gap: 16px;
3952
3951
  }
3953
3952
 
3953
+ .dataforms-layouts-details__summary-content {
3954
+ display: inline-flex;
3955
+ min-height: 24px;
3956
+ }
3957
+
3954
3958
  .dataforms-layouts-details__content {
3955
3959
  padding-top: 12px;
3956
3960
  }
@@ -3966,6 +3970,146 @@ div.dataviews-view-list {
3966
3970
  line-height: 20px;
3967
3971
  }
3968
3972
 
3973
+ /**
3974
+ * Colors
3975
+ */
3976
+ /**
3977
+ * SCSS Variables.
3978
+ *
3979
+ * Please use variables from this sheet to ensure consistency across the UI.
3980
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
3981
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
3982
+ */
3983
+ /**
3984
+ * Fonts & basic variables.
3985
+ */
3986
+ /**
3987
+ * Typography
3988
+ */
3989
+ /**
3990
+ * Grid System.
3991
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
3992
+ */
3993
+ /**
3994
+ * Radius scale.
3995
+ */
3996
+ /**
3997
+ * Elevation scale.
3998
+ */
3999
+ /**
4000
+ * Dimensions.
4001
+ */
4002
+ /**
4003
+ * Mobile specific styles
4004
+ */
4005
+ /**
4006
+ * Editor styles.
4007
+ */
4008
+ /**
4009
+ * Block & Editor UI.
4010
+ */
4011
+ /**
4012
+ * Block paddings.
4013
+ */
4014
+ /**
4015
+ * React Native specific.
4016
+ * These variables do not appear to be used anywhere else.
4017
+ */
4018
+ .media-editor-preview {
4019
+ box-sizing: border-box;
4020
+ display: flex;
4021
+ justify-content: center;
4022
+ align-items: center;
4023
+ min-height: 100%;
4024
+ padding: 32px;
4025
+ position: relative;
4026
+ }
4027
+
4028
+ .media-editor-preview__spinner {
4029
+ position: absolute;
4030
+ top: 50%;
4031
+ left: 50%;
4032
+ transform: translate(-50%, -50%);
4033
+ }
4034
+
4035
+ .media-editor-preview--loading {
4036
+ width: 100%;
4037
+ height: 100%;
4038
+ }
4039
+
4040
+ .media-editor-preview--image img {
4041
+ max-width: 100%;
4042
+ max-height: 100%;
4043
+ object-fit: contain;
4044
+ width: auto;
4045
+ height: auto;
4046
+ opacity: 0;
4047
+ }
4048
+
4049
+ @keyframes __wp-base-styles-fade-in {
4050
+ from {
4051
+ opacity: 0;
4052
+ }
4053
+ to {
4054
+ opacity: 1;
4055
+ }
4056
+ }
4057
+ @media not (prefers-reduced-motion) {
4058
+ .media-editor-preview--image img.loaded {
4059
+ animation: __wp-base-styles-fade-in 0.08s linear 0s;
4060
+ animation-fill-mode: forwards;
4061
+ }
4062
+ }
4063
+ .media-editor-preview--video video {
4064
+ max-width: 100%;
4065
+ max-height: 100%;
4066
+ object-fit: contain;
4067
+ width: auto;
4068
+ height: auto;
4069
+ }
4070
+
4071
+ .media-editor-preview--audio audio {
4072
+ max-width: 100%;
4073
+ }
4074
+
4075
+ .media-editor-preview--file {
4076
+ text-align: center;
4077
+ }
4078
+
4079
+ .media-editor-preview__file-info {
4080
+ background: #f0f0f0;
4081
+ padding: 24px;
4082
+ border-radius: 2px;
4083
+ }
4084
+
4085
+ .media-editor-preview__file-name {
4086
+ font-weight: 600;
4087
+ margin-bottom: 8px;
4088
+ }
4089
+
4090
+ .media-editor-preview__mime-type {
4091
+ color: #757575;
4092
+ font-size: 0.9em;
4093
+ margin-bottom: 16px;
4094
+ }
4095
+
4096
+ .media-editor-preview__download-link {
4097
+ display: inline-block;
4098
+ margin-top: 8px;
4099
+ }
4100
+
4101
+ .media-editor-preview--error, .media-editor-preview--empty {
4102
+ color: #757575;
4103
+ text-align: center;
4104
+ }
4105
+
4106
+ .media-editor-preview__url {
4107
+ font-size: 0.9em;
4108
+ color: #949494;
4109
+ word-break: break-all;
4110
+ margin-top: 8px;
4111
+ }
4112
+
3969
4113
  .editor-autocompleters__user .editor-autocompleters__no-avatar::before {
3970
4114
  /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- dashicons don't need a generic family keyword. */
3971
4115
  font: normal 20px/1 dashicons;
@@ -4850,6 +4994,9 @@ div.dataviews-view-list {
4850
4994
  margin-inline-end: 8px;
4851
4995
  }
4852
4996
  }
4997
+ .editor-revisions-header .editor-header__center {
4998
+ clip-path: none;
4999
+ }
4853
5000
 
4854
5001
  /**
4855
5002
  * Buttons on the right side
@@ -5700,6 +5847,25 @@ div.dataviews-view-list {
5700
5847
  transform: translateX(0%);
5701
5848
  }
5702
5849
  }
5850
+ .editor-revisions-header__slider {
5851
+ width: 100%;
5852
+ }
5853
+ .editor-revisions-header__slider .components-range-control__tooltip {
5854
+ white-space: nowrap;
5855
+ }
5856
+
5857
+ .editor-revisions-header__no-revisions {
5858
+ color: #757575;
5859
+ font-size: 13px;
5860
+ }
5861
+
5862
+ .editor-revisions-canvas__loading {
5863
+ display: flex;
5864
+ align-items: center;
5865
+ justify-content: center;
5866
+ height: 100%;
5867
+ }
5868
+
5703
5869
  .editor-post-saved-state {
5704
5870
  display: flex;
5705
5871
  align-items: center;
@@ -6172,6 +6338,11 @@ textarea.editor-post-text-editor::placeholder {
6172
6338
  .editor-sidebar *::after {
6173
6339
  box-sizing: inherit;
6174
6340
  }
6341
+ .editor-sidebar__revisions-block-message {
6342
+ padding: 16px;
6343
+ color: #757575;
6344
+ font-size: 13px;
6345
+ }
6175
6346
 
6176
6347
  .editor-site-discussion-dropdown__content .components-popover__content {
6177
6348
  min-width: 320px;
@@ -1 +1 @@
1
- {"version":3,"file":"useEditedSectionDetails.d.ts","sourceRoot":"","sources":["../../../src/components/document-bar/useEditedSectionDetails.js"],"names":[],"mappings":"AAaA;;;;;GAKG;AACH,mDAFY,MAAM,GAAC,IAAI,CAqFtB"}
1
+ {"version":3,"file":"useEditedSectionDetails.d.ts","sourceRoot":"","sources":["../../../src/components/document-bar/useEditedSectionDetails.js"],"names":[],"mappings":"AAaA;;;;;GAKG;AACH,mDAFY,MAAM,GAAC,IAAI,CAgFtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor-interface/index.js"],"names":[],"mappings":"AA4CA;;;;;;;;;;;gCAiLC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor-interface/index.js"],"names":[],"mappings":"AA8CA;;;;;;;;;;;gCA6MC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Header skeleton component providing the common layout structure.
3
+ *
4
+ * @param {Object} props Component props.
5
+ * @param {string} props.className Additional class name.
6
+ * @param {JSX.Element} props.toolbar Content for the left toolbar area.
7
+ * @param {JSX.Element} props.center Content for the center area.
8
+ * @param {JSX.Element} props.settings Content for the right settings area.
9
+ * @return {JSX.Element} The header skeleton component.
10
+ */
11
+ export default function HeaderSkeleton({ className, toolbar, center, settings, }: {
12
+ className: string;
13
+ toolbar: JSX.Element;
14
+ center: JSX.Element;
15
+ settings: JSX.Element;
16
+ }): JSX.Element;
17
+ //# sourceMappingURL=header-skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header-skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/header/header-skeleton.js"],"names":[],"mappings":"AA+BA;;;;;;;;;GASG;AACH,kFANG;IAA2B,SAAS,EAA5B,MAAM;IACa,OAAO,EAA1B,GAAG,CAAC,OAAO;IACQ,MAAM,EAAzB,GAAG,CAAC,OAAO;IACQ,QAAQ,EAA3B,GAAG,CAAC,OAAO;CACnB,GAAS,GAAG,CAAC,OAAO,CAkDtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";AAiDA;;;;gCA0JC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";AAiCA;;;;gCAyIC"}
@@ -0,0 +1,3 @@
1
+ export { default as MediaPreview } from "./preview";
2
+ export { default as MediaMetadataPanel } from "./metadata-panel";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Media metadata panel for the editor sidebar.
3
+ * Displays a form for editing media properties with PostCardPanel header.
4
+ *
5
+ * @param {Object} props - Component props.
6
+ * @param {Function} props.onActionPerformed - Callback when an action is performed.
7
+ * @return {Element} The MediaMetadataPanel component.
8
+ */
9
+ export default function MediaMetadataPanel({ onActionPerformed }: {
10
+ onActionPerformed: Function;
11
+ }): Element;
12
+ //# sourceMappingURL=metadata-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata-panel.d.ts","sourceRoot":"","sources":["../../../src/components/media/metadata-panel.js"],"names":[],"mappings":"AAgBA;;;;;;;GAOG;AACH,kEAHG;IAAwB,iBAAiB;CACzC,GAAS,OAAO,CAsDlB"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Media preview component for the editor.
3
+ * Connects the base MediaPreview component to the editor store.
4
+ *
5
+ * @param {Object} props - Additional props to spread on MediaPreview.
6
+ * @return {Element} The MediaPreview component.
7
+ */
8
+ export default function MediaPreview(props: Object): Element;
9
+ //# sourceMappingURL=preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../src/components/media/preview.js"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH,4CAHW,MAAM,GACL,OAAO,CAelB"}
@@ -1,2 +1,4 @@
1
- export default function MoreMenu(): import("react").JSX.Element;
1
+ export default function MoreMenu({ disabled }: {
2
+ disabled?: boolean | undefined;
3
+ }): import("react").JSX.Element;
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/more-menu/index.js"],"names":[],"mappings":"AA4BA,gEAqIC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/more-menu/index.js"],"names":[],"mappings":"AA4BA;;gCAsIC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-card-panel/index.js"],"names":[],"mappings":"AA8BA;;;;;;;;GAQG;AACH,gFALG;IAAgC,QAAQ;IACR,MAAM;IACN,iBAAiB;CACjD,GAAS,KAAK,CAAC,SAAS,CAsG1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-card-panel/index.js"],"names":[],"mappings":"AAgCA;;;;;;;;GAQG;AACH,gFALG;IAAgC,QAAQ;IACR,MAAM;IACN,iBAAiB;CACjD,GAAS,KAAK,CAAC,SAAS,CAwI1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-content-information/index.js"],"names":[],"mappings":"AAuBA,qFAiEC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-content-information/index.js"],"names":[],"mappings":"AAwBA,qFA2EC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-last-edited-panel/index.js"],"names":[],"mappings":"AAaA,kFAqBC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-last-edited-panel/index.js"],"names":[],"mappings":"AAaA,kFAoBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-last-revision/index.js"],"names":[],"mappings":"AAuDA,uEAiBC;;AA7CD;;;;GAIG;AACH,qCAFY,KAAK,CAAC,SAAS,CAuB1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-last-revision/index.js"],"names":[],"mappings":"AAsDA,uEAiBC;;AA5CD;;;;GAIG;AACH,qCAFY,KAAK,CAAC,SAAS,CAsB1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-button/label.js"],"names":[],"mappings":"AAYA;;;;GAIG;AACH,8CAFY,MAAM,CAwEjB"}
1
+ {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-button/label.js"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,8CAFY,MAAM,CAgFjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"post-publish-button-or-toggle.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-button/post-publish-button-or-toggle.js"],"names":[],"mappings":"AAeA;;;gCAoFC"}
1
+ {"version":3,"file":"post-publish-button-or-toggle.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-button/post-publish-button-or-toggle.js"],"names":[],"mappings":"AAgBA;;;gCA2FC"}
@@ -0,0 +1,3 @@
1
+ export { default as RevisionsHeader } from "./revisions-header";
2
+ export { default as RevisionsCanvas } from "./revisions-canvas";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/index.js"],"names":[],"mappings":""}