@wordpress/edit-post 8.32.0 → 8.32.1-next.ff1cebbba.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 (184) hide show
  1. package/build/commands/use-commands.js +54 -47
  2. package/build/commands/use-commands.js.map +7 -1
  3. package/build/components/back-button/fullscreen-mode-close.js +127 -118
  4. package/build/components/back-button/fullscreen-mode-close.js.map +7 -1
  5. package/build/components/back-button/index.js +56 -54
  6. package/build/components/back-button/index.js.map +7 -1
  7. package/build/components/browser-url/index.js +45 -44
  8. package/build/components/browser-url/index.js.map +7 -1
  9. package/build/components/editor-initialization/index.js +24 -18
  10. package/build/components/editor-initialization/index.js.map +7 -1
  11. package/build/components/editor-initialization/listener-hooks.js +42 -43
  12. package/build/components/editor-initialization/listener-hooks.js.map +7 -1
  13. package/build/components/init-pattern-modal/index.js +100 -79
  14. package/build/components/init-pattern-modal/index.js.map +7 -1
  15. package/build/components/keyboard-shortcuts/index.js +37 -33
  16. package/build/components/keyboard-shortcuts/index.js.map +7 -1
  17. package/build/components/layout/index.js +447 -467
  18. package/build/components/layout/index.js.map +7 -1
  19. package/build/components/layout/use-padding-appender.js +66 -59
  20. package/build/components/layout/use-padding-appender.js.map +7 -1
  21. package/build/components/layout/use-should-iframe.js +36 -30
  22. package/build/components/layout/use-should-iframe.js.map +7 -1
  23. package/build/components/meta-boxes/index.js +46 -33
  24. package/build/components/meta-boxes/index.js.map +7 -1
  25. package/build/components/meta-boxes/meta-box-visibility.js +37 -22
  26. package/build/components/meta-boxes/meta-box-visibility.js.map +7 -1
  27. package/build/components/meta-boxes/meta-boxes-area/index.js +62 -53
  28. package/build/components/meta-boxes/meta-boxes-area/index.js.map +7 -1
  29. package/build/components/meta-boxes/use-meta-box-initialization.js +37 -32
  30. package/build/components/meta-boxes/use-meta-box-initialization.js.map +7 -1
  31. package/build/components/more-menu/index.js +64 -44
  32. package/build/components/more-menu/index.js.map +7 -1
  33. package/build/components/more-menu/manage-patterns-menu-item.js +39 -37
  34. package/build/components/more-menu/manage-patterns-menu-item.js.map +7 -1
  35. package/build/components/more-menu/welcome-guide-menu-item.js +39 -21
  36. package/build/components/more-menu/welcome-guide-menu-item.js.map +7 -1
  37. package/build/components/preferences-modal/enable-custom-fields.js +76 -66
  38. package/build/components/preferences-modal/enable-custom-fields.js.map +7 -1
  39. package/build/components/preferences-modal/enable-panel.js +47 -43
  40. package/build/components/preferences-modal/enable-panel.js.map +7 -1
  41. package/build/components/preferences-modal/index.js +51 -39
  42. package/build/components/preferences-modal/index.js.map +7 -1
  43. package/build/components/preferences-modal/meta-boxes-section.js +65 -52
  44. package/build/components/preferences-modal/meta-boxes-section.js.map +7 -1
  45. package/build/components/welcome-guide/default.js +134 -97
  46. package/build/components/welcome-guide/default.js.map +7 -1
  47. package/build/components/welcome-guide/image.js +34 -23
  48. package/build/components/welcome-guide/image.js.map +7 -1
  49. package/build/components/welcome-guide/index.js +51 -38
  50. package/build/components/welcome-guide/index.js.map +7 -1
  51. package/build/components/welcome-guide/template.js +65 -45
  52. package/build/components/welcome-guide/template.js.map +7 -1
  53. package/build/deprecated.js +84 -110
  54. package/build/deprecated.js.map +7 -1
  55. package/build/hooks/use-navigate-to-entity-record.js +60 -78
  56. package/build/hooks/use-navigate-to-entity-record.js.map +7 -1
  57. package/build/index.js +101 -136
  58. package/build/index.js.map +7 -1
  59. package/build/lock-unlock.js +31 -15
  60. package/build/lock-unlock.js.map +7 -1
  61. package/build/store/actions.js +239 -431
  62. package/build/store/actions.js.map +7 -1
  63. package/build/store/constants.js +33 -26
  64. package/build/store/constants.js.map +7 -1
  65. package/build/store/index.js +44 -32
  66. package/build/store/index.js.map +7 -1
  67. package/build/store/reducer.js +50 -57
  68. package/build/store/reducer.js.map +7 -1
  69. package/build/store/selectors.js +288 -459
  70. package/build/store/selectors.js.map +7 -1
  71. package/build/utils/meta-boxes.js +31 -19
  72. package/build/utils/meta-boxes.js.map +7 -1
  73. package/build-module/commands/use-commands.js +35 -40
  74. package/build-module/commands/use-commands.js.map +7 -1
  75. package/build-module/components/back-button/fullscreen-mode-close.js +102 -110
  76. package/build-module/components/back-button/fullscreen-mode-close.js.map +7 -1
  77. package/build-module/components/back-button/index.js +28 -47
  78. package/build-module/components/back-button/index.js.map +7 -1
  79. package/build-module/components/browser-url/index.js +23 -38
  80. package/build-module/components/browser-url/index.js.map +7 -1
  81. package/build-module/components/editor-initialization/index.js +6 -13
  82. package/build-module/components/editor-initialization/index.js.map +7 -1
  83. package/build-module/components/editor-initialization/listener-hooks.js +20 -34
  84. package/build-module/components/editor-initialization/listener-hooks.js.map +7 -1
  85. package/build-module/components/init-pattern-modal/index.js +90 -74
  86. package/build-module/components/init-pattern-modal/index.js.map +7 -1
  87. package/build-module/components/keyboard-shortcuts/index.js +21 -26
  88. package/build-module/components/keyboard-shortcuts/index.js.map +7 -1
  89. package/build-module/components/layout/index.js +439 -448
  90. package/build-module/components/layout/index.js.map +7 -1
  91. package/build-module/components/layout/use-padding-appender.js +44 -54
  92. package/build-module/components/layout/use-padding-appender.js.map +7 -1
  93. package/build-module/components/layout/use-should-iframe.js +15 -25
  94. package/build-module/components/layout/use-should-iframe.js.map +7 -1
  95. package/build-module/components/meta-boxes/index.js +18 -26
  96. package/build-module/components/meta-boxes/index.js.map +7 -1
  97. package/build-module/components/meta-boxes/meta-box-visibility.js +18 -15
  98. package/build-module/components/meta-boxes/meta-box-visibility.js.map +7 -1
  99. package/build-module/components/meta-boxes/meta-boxes-area/index.js +30 -44
  100. package/build-module/components/meta-boxes/meta-boxes-area/index.js.map +7 -1
  101. package/build-module/components/meta-boxes/use-meta-box-initialization.js +14 -25
  102. package/build-module/components/meta-boxes/use-meta-box-initialization.js.map +7 -1
  103. package/build-module/components/more-menu/index.js +36 -37
  104. package/build-module/components/more-menu/index.js.map +7 -1
  105. package/build-module/components/more-menu/manage-patterns-menu-item.js +21 -31
  106. package/build-module/components/more-menu/manage-patterns-menu-item.js.map +7 -1
  107. package/build-module/components/more-menu/welcome-guide-menu-item.js +22 -16
  108. package/build-module/components/more-menu/welcome-guide-menu-item.js.map +7 -1
  109. package/build-module/components/preferences-modal/enable-custom-fields.js +51 -56
  110. package/build-module/components/preferences-modal/enable-custom-fields.js.map +7 -1
  111. package/build-module/components/preferences-modal/enable-panel.js +30 -38
  112. package/build-module/components/preferences-modal/enable-panel.js.map +7 -1
  113. package/build-module/components/preferences-modal/index.js +24 -34
  114. package/build-module/components/preferences-modal/index.js.map +7 -1
  115. package/build-module/components/preferences-modal/meta-boxes-section.js +34 -45
  116. package/build-module/components/preferences-modal/meta-boxes-section.js.map +7 -1
  117. package/build-module/components/welcome-guide/default.js +107 -91
  118. package/build-module/components/welcome-guide/default.js.map +7 -1
  119. package/build-module/components/welcome-guide/image.js +16 -18
  120. package/build-module/components/welcome-guide/image.js.map +7 -1
  121. package/build-module/components/welcome-guide/index.js +23 -31
  122. package/build-module/components/welcome-guide/index.js.map +7 -1
  123. package/build-module/components/welcome-guide/template.js +38 -39
  124. package/build-module/components/welcome-guide/template.js.map +7 -1
  125. package/build-module/deprecated.js +62 -103
  126. package/build-module/deprecated.js.map +7 -1
  127. package/build-module/hooks/use-navigate-to-entity-record.js +42 -73
  128. package/build-module/hooks/use-navigate-to-entity-record.js.map +7 -1
  129. package/build-module/index.js +70 -95
  130. package/build-module/index.js.map +7 -1
  131. package/build-module/lock-unlock.js +8 -7
  132. package/build-module/lock-unlock.js.map +7 -1
  133. package/build-module/store/actions.js +158 -368
  134. package/build-module/store/actions.js.map +7 -1
  135. package/build-module/store/constants.js +9 -21
  136. package/build-module/store/constants.js.map +7 -1
  137. package/build-module/store/index.js +10 -22
  138. package/build-module/store/index.js.map +7 -1
  139. package/build-module/store/reducer.js +28 -51
  140. package/build-module/store/reducer.js.map +7 -1
  141. package/build-module/store/selectors.js +232 -442
  142. package/build-module/store/selectors.js.map +7 -1
  143. package/build-module/utils/meta-boxes.js +9 -13
  144. package/build-module/utils/meta-boxes.js.map +7 -1
  145. package/build-style/classic-rtl.css +0 -154
  146. package/build-style/classic.css +0 -154
  147. package/build-style/style-rtl.css +135 -110
  148. package/build-style/style.css +135 -110
  149. package/package.json +39 -31
  150. package/src/classic.scss +3 -0
  151. package/src/components/back-button/style.scss +3 -0
  152. package/src/components/layout/index.js +3 -2
  153. package/src/components/layout/style.scss +4 -0
  154. package/src/components/meta-boxes/meta-boxes-area/style.scss +3 -0
  155. package/src/components/welcome-guide/style.scss +3 -0
  156. package/src/style.scss +8 -4
  157. package/build/components/header/header-toolbar/index.native.js +0 -204
  158. package/build/components/header/header-toolbar/index.native.js.map +0 -1
  159. package/build/components/header/index.native.js +0 -59
  160. package/build/components/header/index.native.js.map +0 -1
  161. package/build/components/layout/index.native.js +0 -166
  162. package/build/components/layout/index.native.js.map +0 -1
  163. package/build/components/visual-editor/header.native.js +0 -63
  164. package/build/components/visual-editor/header.native.js.map +0 -1
  165. package/build/components/visual-editor/index.native.js +0 -44
  166. package/build/components/visual-editor/index.native.js.map +0 -1
  167. package/build/editor.native.js +0 -157
  168. package/build/editor.native.js.map +0 -1
  169. package/build/index.native.js +0 -58
  170. package/build/index.native.js.map +0 -1
  171. package/build-module/components/header/header-toolbar/index.native.js +0 -196
  172. package/build-module/components/header/header-toolbar/index.native.js.map +0 -1
  173. package/build-module/components/header/index.native.js +0 -50
  174. package/build-module/components/header/index.native.js.map +0 -1
  175. package/build-module/components/layout/index.native.js +0 -158
  176. package/build-module/components/layout/index.native.js.map +0 -1
  177. package/build-module/components/visual-editor/header.native.js +0 -56
  178. package/build-module/components/visual-editor/header.native.js.map +0 -1
  179. package/build-module/components/visual-editor/index.native.js +0 -35
  180. package/build-module/components/visual-editor/index.native.js.map +0 -1
  181. package/build-module/editor.native.js +0 -149
  182. package/build-module/editor.native.js.map +0 -1
  183. package/build-module/index.native.js +0 -45
  184. package/build-module/index.native.js.map +0 -1
@@ -1,11 +1,5 @@
1
1
  /**
2
- * Colors
3
- */
4
- /**
5
- * Breakpoints & Media Queries
6
- */
7
- /**
8
- * Colors
2
+ * Typography
9
3
  */
10
4
  /**
11
5
  * SCSS Variables.
@@ -14,51 +8,9 @@
14
8
  * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
15
9
  * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
16
10
  */
17
- /**
18
- * Fonts & basic variables.
19
- */
20
- /**
21
- * Typography
22
- */
23
- /**
24
- * Grid System.
25
- * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
26
- */
27
- /**
28
- * Radius scale.
29
- */
30
- /**
31
- * Elevation scale.
32
- */
33
- /**
34
- * Dimensions.
35
- */
36
- /**
37
- * Mobile specific styles
38
- */
39
- /**
40
- * Editor styles.
41
- */
42
- /**
43
- * Block & Editor UI.
44
- */
45
- /**
46
- * Block paddings.
47
- */
48
- /**
49
- * React Native specific.
50
- * These variables do not appear to be used anywhere else.
51
- */
52
11
  /**
53
12
  * Colors
54
13
  */
55
- /**
56
- * SCSS Variables.
57
- *
58
- * Please use variables from this sheet to ensure consistency across the UI.
59
- * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
60
- * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
61
- */
62
14
  /**
63
15
  * Fonts & basic variables.
64
16
  */
@@ -109,9 +61,6 @@
109
61
  * Creates a fading overlay to signify that the content is longer
110
62
  * than the space allows.
111
63
  */
112
- /**
113
- * Typography
114
- */
115
64
  /**
116
65
  * Breakpoint mixins
117
66
  */
@@ -134,6 +83,25 @@
134
83
  /**
135
84
  * Reset the WP Admin page styles for Gutenberg-like pages.
136
85
  */
86
+ :root {
87
+ --wp-block-synced-color: #7a00df;
88
+ --wp-block-synced-color--rgb: 122, 0, 223;
89
+ --wp-bound-block-color: var(--wp-block-synced-color);
90
+ --wp-editor-canvas-background: #ddd;
91
+ --wp-admin-theme-color: #007cba;
92
+ --wp-admin-theme-color--rgb: 0, 124, 186;
93
+ --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5);
94
+ --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5;
95
+ --wp-admin-theme-color-darker-20: #005a87;
96
+ --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
97
+ --wp-admin-border-width-focus: 2px;
98
+ }
99
+ @media (min-resolution: 192dpi) {
100
+ :root {
101
+ --wp-admin-border-width-focus: 1.5px;
102
+ }
103
+ }
104
+
137
105
  /**
138
106
  * Colors
139
107
  */
@@ -179,6 +147,9 @@
179
147
  * React Native specific.
180
148
  * These variables do not appear to be used anywhere else.
181
149
  */
150
+ /**
151
+ * Typography
152
+ */
182
153
  /**
183
154
  * Breakpoints & Media Queries
184
155
  */
@@ -194,9 +165,6 @@
194
165
  * Creates a fading overlay to signify that the content is longer
195
166
  * than the space allows.
196
167
  */
197
- /**
198
- * Typography
199
- */
200
168
  /**
201
169
  * Breakpoint mixins
202
170
  */
@@ -219,23 +187,74 @@
219
187
  /**
220
188
  * Reset the WP Admin page styles for Gutenberg-like pages.
221
189
  */
222
- :root {
223
- --wp-block-synced-color: #7a00df;
224
- --wp-block-synced-color--rgb: 122, 0, 223;
225
- --wp-bound-block-color: var(--wp-block-synced-color);
226
- --wp-admin-theme-color: #007cba;
227
- --wp-admin-theme-color--rgb: 0, 124, 186;
228
- --wp-admin-theme-color-darker-10: #006ba1;
229
- --wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
230
- --wp-admin-theme-color-darker-20: #005a87;
231
- --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
232
- --wp-admin-border-width-focus: 2px;
190
+ .admin-ui-page {
191
+ display: flex;
192
+ height: 100%;
193
+ background-color: #fff;
194
+ color: #2f2f2f;
195
+ position: relative;
196
+ z-index: 1;
197
+ flex-flow: column;
198
+ container: admin-ui-page/inline-size;
233
199
  }
234
- @media (min-resolution: 192dpi) {
235
- :root {
236
- --wp-admin-border-width-focus: 1.5px;
200
+
201
+ @media not (prefers-reduced-motion) {
202
+ .admin-ui-page {
203
+ transition: width ease-out 0.2s;
204
+ }
205
+ }
206
+ .admin-ui-page__header {
207
+ padding: 16px 48px;
208
+ border-bottom: 1px solid #f0f0f0;
209
+ background: #fff;
210
+ position: sticky;
211
+ top: 0;
212
+ }
213
+
214
+ @container (max-width: 430px) {
215
+ .admin-ui-page__header {
216
+ padding: 16px 24px;
217
+ }
218
+ }
219
+ .admin-ui-page__header-subtitle {
220
+ padding-block-end: 8px;
221
+ color: #757575;
222
+ font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
223
+ font-weight: 400;
224
+ font-size: 13px;
225
+ line-height: 20px;
226
+ margin: 0;
227
+ }
228
+
229
+ .admin-ui-page__content {
230
+ flex-grow: 1;
231
+ overflow: auto;
232
+ display: flex;
233
+ flex-direction: column;
234
+ }
235
+
236
+ .admin-ui-page__content.has-padding {
237
+ padding: 16px 20px;
238
+ }
239
+
240
+ @container (max-width: 430px) {
241
+ .admin-ui-page__content.has-padding {
242
+ padding: 16px 24px;
237
243
  }
238
244
  }
245
+ .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon {
246
+ width: auto;
247
+ padding: 0 8px;
248
+ }
249
+
250
+ .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg {
251
+ display: none;
252
+ }
253
+
254
+ .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon::after {
255
+ content: attr(aria-label);
256
+ font-size: 12px;
257
+ }
239
258
 
240
259
  .edit-post-fullscreen-mode-close__view-mode-toggle {
241
260
  top: 0;
@@ -306,14 +325,14 @@
306
325
  display: flex;
307
326
  align-items: center;
308
327
  justify-content: center;
309
- background-color: hsl(0deg, 0%, 80%);
328
+ background-color: hsl(0, 0%, 80%);
310
329
  pointer-events: none;
311
330
  }
312
331
  .edit-post-fullscreen-mode-close__back-icon svg {
313
332
  fill: currentColor;
314
333
  }
315
334
  .edit-post-fullscreen-mode-close__back-icon.has-site-icon {
316
- background-color: hsla(0deg, 0%, 100%, 0.6);
335
+ background-color: hsla(0, 0%, 100%, 0.6);
317
336
  backdrop-filter: saturate(180%) blur(15px);
318
337
  }
319
338
 
@@ -414,12 +433,12 @@
414
433
  height: 36px;
415
434
  }
416
435
  }
417
- .edit-post-meta-boxes-main__liner {
418
- isolation: isolate;
419
- }
420
436
  .edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner {
421
437
  overflow: auto;
422
438
  }
439
+ .edit-post-meta-boxes-main__liner {
440
+ isolation: isolate;
441
+ }
423
442
  .is-resizing.edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner {
424
443
  display: unset;
425
444
  }
@@ -489,8 +508,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
489
508
  * other elements (such as .button) are unaffected by Gutenberg's style
490
509
  * because of their higher specificity.
491
510
  */
492
- /* Match width and positioning of the meta boxes. Override default styles. */
493
- /* Override Default meta box stylings */
494
511
  }
495
512
  .edit-post-meta-boxes-area__container,
496
513
  .edit-post-meta-boxes-area .inside {
@@ -504,11 +521,17 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
504
521
  border-top: 1px solid #ddd;
505
522
  border-bottom: 0;
506
523
  }
524
+ .edit-post-meta-boxes-area {
525
+ /* Match width and positioning of the meta boxes. Override default styles. */
526
+ }
507
527
  .edit-post-meta-boxes-area #poststuff {
508
528
  margin: 0 auto;
509
529
  padding-top: 0;
510
530
  min-width: auto;
511
531
  }
532
+ .edit-post-meta-boxes-area {
533
+ /* Override Default meta box stylings */
534
+ }
512
535
  .edit-post-meta-boxes-area #poststuff h3.hndle,
513
536
  .edit-post-meta-boxes-area #poststuff .stuffbox > h3,
514
537
  .edit-post-meta-boxes-area #poststuff h2.hndle { /* WordPress selectors yolo */
@@ -610,8 +633,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
610
633
 
611
634
  body.js.block-editor-page {
612
635
  background: #fff;
613
- /* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well.
614
- Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
615
636
  }
616
637
  body.js.block-editor-page #wpcontent {
617
638
  padding-left: 0;
@@ -619,6 +640,10 @@ body.js.block-editor-page #wpcontent {
619
640
  body.js.block-editor-page #wpbody-content {
620
641
  padding-bottom: 0;
621
642
  }
643
+ body.js.block-editor-page {
644
+ /* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well.
645
+ Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
646
+ }
622
647
  body.js.block-editor-page #wpbody-content > div:not(.block-editor):not(#screen-meta) {
623
648
  display: none;
624
649
  }
@@ -682,10 +707,10 @@ body.js.block-editor-page .media-frame select.attachment-filters:last-of-type {
682
707
  body.admin-color-light {
683
708
  --wp-admin-theme-color: #0085ba;
684
709
  --wp-admin-theme-color--rgb: 0, 133, 186;
685
- --wp-admin-theme-color-darker-10: #0073a1;
686
- --wp-admin-theme-color-darker-10--rgb: 0, 115, 161;
687
- --wp-admin-theme-color-darker-20: #006187;
688
- --wp-admin-theme-color-darker-20--rgb: 0, 97, 135;
710
+ --wp-admin-theme-color-darker-10: rgb(0, 114.7661290323, 160.5);
711
+ --wp-admin-theme-color-darker-10--rgb: 0, 114.7661290323, 160.5;
712
+ --wp-admin-theme-color-darker-20: rgb(0, 96.5322580645, 135);
713
+ --wp-admin-theme-color-darker-20--rgb: 0, 96.5322580645, 135;
689
714
  --wp-admin-border-width-focus: 2px;
690
715
  }
691
716
  @media (min-resolution: 192dpi) {
@@ -697,10 +722,10 @@ body.admin-color-light {
697
722
  body.admin-color-modern {
698
723
  --wp-admin-theme-color: #3858e9;
699
724
  --wp-admin-theme-color--rgb: 56, 88, 233;
700
- --wp-admin-theme-color-darker-10: #2145e6;
701
- --wp-admin-theme-color-darker-10--rgb: 33, 69, 230;
702
- --wp-admin-theme-color-darker-20: #183ad6;
703
- --wp-admin-theme-color-darker-20--rgb: 24, 58, 214;
725
+ --wp-admin-theme-color-darker-10: rgb(33.0384615385, 68.7307692308, 230.4615384615);
726
+ --wp-admin-theme-color-darker-10--rgb: 33.0384615385, 68.7307692308, 230.4615384615;
727
+ --wp-admin-theme-color-darker-20: rgb(23.6923076923, 58.1538461538, 214.3076923077);
728
+ --wp-admin-theme-color-darker-20--rgb: 23.6923076923, 58.1538461538, 214.3076923077;
704
729
  --wp-admin-border-width-focus: 2px;
705
730
  }
706
731
  @media (min-resolution: 192dpi) {
@@ -712,10 +737,10 @@ body.admin-color-modern {
712
737
  body.admin-color-blue {
713
738
  --wp-admin-theme-color: #096484;
714
739
  --wp-admin-theme-color--rgb: 9, 100, 132;
715
- --wp-admin-theme-color-darker-10: #07526c;
716
- --wp-admin-theme-color-darker-10--rgb: 7, 82, 108;
717
- --wp-admin-theme-color-darker-20: #064054;
718
- --wp-admin-theme-color-darker-20--rgb: 6, 64, 84;
740
+ --wp-admin-theme-color-darker-10: rgb(7.3723404255, 81.914893617, 108.1276595745);
741
+ --wp-admin-theme-color-darker-10--rgb: 7.3723404255, 81.914893617, 108.1276595745;
742
+ --wp-admin-theme-color-darker-20: rgb(5.7446808511, 63.829787234, 84.2553191489);
743
+ --wp-admin-theme-color-darker-20--rgb: 5.7446808511, 63.829787234, 84.2553191489;
719
744
  --wp-admin-border-width-focus: 2px;
720
745
  }
721
746
  @media (min-resolution: 192dpi) {
@@ -727,10 +752,10 @@ body.admin-color-blue {
727
752
  body.admin-color-coffee {
728
753
  --wp-admin-theme-color: #46403c;
729
754
  --wp-admin-theme-color--rgb: 70, 64, 60;
730
- --wp-admin-theme-color-darker-10: #383330;
731
- --wp-admin-theme-color-darker-10--rgb: 56, 51, 48;
732
- --wp-admin-theme-color-darker-20: #2b2724;
733
- --wp-admin-theme-color-darker-20--rgb: 43, 39, 36;
755
+ --wp-admin-theme-color-darker-10: rgb(56.2692307692, 51.4461538462, 48.2307692308);
756
+ --wp-admin-theme-color-darker-10--rgb: 56.2692307692, 51.4461538462, 48.2307692308;
757
+ --wp-admin-theme-color-darker-20: rgb(42.5384615385, 38.8923076923, 36.4615384615);
758
+ --wp-admin-theme-color-darker-20--rgb: 42.5384615385, 38.8923076923, 36.4615384615;
734
759
  --wp-admin-border-width-focus: 2px;
735
760
  }
736
761
  @media (min-resolution: 192dpi) {
@@ -742,10 +767,10 @@ body.admin-color-coffee {
742
767
  body.admin-color-ectoplasm {
743
768
  --wp-admin-theme-color: #523f6d;
744
769
  --wp-admin-theme-color--rgb: 82, 63, 109;
745
- --wp-admin-theme-color-darker-10: #46365d;
746
- --wp-admin-theme-color-darker-10--rgb: 70, 54, 93;
747
- --wp-admin-theme-color-darker-20: #3a2c4d;
748
- --wp-admin-theme-color-darker-20--rgb: 58, 44, 77;
770
+ --wp-admin-theme-color-darker-10: rgb(69.8430232558, 53.6598837209, 92.8401162791);
771
+ --wp-admin-theme-color-darker-10--rgb: 69.8430232558, 53.6598837209, 92.8401162791;
772
+ --wp-admin-theme-color-darker-20: rgb(57.6860465116, 44.3197674419, 76.6802325581);
773
+ --wp-admin-theme-color-darker-20--rgb: 57.6860465116, 44.3197674419, 76.6802325581;
749
774
  --wp-admin-border-width-focus: 2px;
750
775
  }
751
776
  @media (min-resolution: 192dpi) {
@@ -757,10 +782,10 @@ body.admin-color-ectoplasm {
757
782
  body.admin-color-midnight {
758
783
  --wp-admin-theme-color: #e14d43;
759
784
  --wp-admin-theme-color--rgb: 225, 77, 67;
760
- --wp-admin-theme-color-darker-10: #dd382d;
761
- --wp-admin-theme-color-darker-10--rgb: 221, 56, 45;
762
- --wp-admin-theme-color-darker-20: #d02c21;
763
- --wp-admin-theme-color-darker-20--rgb: 208, 44, 33;
785
+ --wp-admin-theme-color-darker-10: rgb(221.4908256881, 56.1788990826, 45.0091743119);
786
+ --wp-admin-theme-color-darker-10--rgb: 221.4908256881, 56.1788990826, 45.0091743119;
787
+ --wp-admin-theme-color-darker-20: rgb(207.8348623853, 44.2201834862, 33.1651376147);
788
+ --wp-admin-theme-color-darker-20--rgb: 207.8348623853, 44.2201834862, 33.1651376147;
764
789
  --wp-admin-border-width-focus: 2px;
765
790
  }
766
791
  @media (min-resolution: 192dpi) {
@@ -772,10 +797,10 @@ body.admin-color-midnight {
772
797
  body.admin-color-ocean {
773
798
  --wp-admin-theme-color: #627c83;
774
799
  --wp-admin-theme-color--rgb: 98, 124, 131;
775
- --wp-admin-theme-color-darker-10: #576e74;
776
- --wp-admin-theme-color-darker-10--rgb: 87, 110, 116;
777
- --wp-admin-theme-color-darker-20: #4c6066;
778
- --wp-admin-theme-color-darker-20--rgb: 76, 96, 102;
800
+ --wp-admin-theme-color-darker-10: rgb(87.0873362445, 110.192139738, 116.4126637555);
801
+ --wp-admin-theme-color-darker-10--rgb: 87.0873362445, 110.192139738, 116.4126637555;
802
+ --wp-admin-theme-color-darker-20: rgb(76.1746724891, 96.384279476, 101.8253275109);
803
+ --wp-admin-theme-color-darker-20--rgb: 76.1746724891, 96.384279476, 101.8253275109;
779
804
  --wp-admin-border-width-focus: 2px;
780
805
  }
781
806
  @media (min-resolution: 192dpi) {
@@ -787,10 +812,10 @@ body.admin-color-ocean {
787
812
  body.admin-color-sunrise {
788
813
  --wp-admin-theme-color: #dd823b;
789
814
  --wp-admin-theme-color--rgb: 221, 130, 59;
790
- --wp-admin-theme-color-darker-10: #d97426;
791
- --wp-admin-theme-color-darker-10--rgb: 217, 116, 38;
792
- --wp-admin-theme-color-darker-20: #c36922;
793
- --wp-admin-theme-color-darker-20--rgb: 195, 105, 34;
815
+ --wp-admin-theme-color-darker-10: rgb(216.8782608696, 116.1847826087, 37.6217391304);
816
+ --wp-admin-theme-color-darker-10--rgb: 216.8782608696, 116.1847826087, 37.6217391304;
817
+ --wp-admin-theme-color-darker-20: rgb(195.147826087, 104.5434782609, 33.852173913);
818
+ --wp-admin-theme-color-darker-20--rgb: 195.147826087, 104.5434782609, 33.852173913;
794
819
  --wp-admin-border-width-focus: 2px;
795
820
  }
796
821
  @media (min-resolution: 192dpi) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-post",
3
- "version": "8.32.0",
3
+ "version": "8.32.1-next.ff1cebbba.0",
4
4
  "description": "Edit Post module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -25,38 +25,46 @@
25
25
  },
26
26
  "main": "build/index.js",
27
27
  "module": "build-module/index.js",
28
+ "exports": {
29
+ ".": {
30
+ "import": "./build-module/index.js",
31
+ "default": "./build/index.js"
32
+ },
33
+ "./package.json": "./package.json"
34
+ },
28
35
  "react-native": "src/index",
29
36
  "wpScript": true,
30
37
  "dependencies": {
31
- "@babel/runtime": "7.25.7",
32
- "@wordpress/a11y": "^4.32.0",
33
- "@wordpress/api-fetch": "^7.32.0",
34
- "@wordpress/block-editor": "^15.5.0",
35
- "@wordpress/block-library": "^9.32.0",
36
- "@wordpress/blocks": "^15.5.0",
37
- "@wordpress/commands": "^1.32.0",
38
- "@wordpress/components": "^30.5.0",
39
- "@wordpress/compose": "^7.32.0",
40
- "@wordpress/core-data": "^7.32.0",
41
- "@wordpress/data": "^10.32.0",
42
- "@wordpress/deprecated": "^4.32.0",
43
- "@wordpress/dom": "^4.32.0",
44
- "@wordpress/editor": "^14.32.0",
45
- "@wordpress/element": "^6.32.0",
46
- "@wordpress/hooks": "^4.32.0",
47
- "@wordpress/html-entities": "^4.32.0",
48
- "@wordpress/i18n": "^6.5.0",
49
- "@wordpress/icons": "^10.32.0",
50
- "@wordpress/keyboard-shortcuts": "^5.32.0",
51
- "@wordpress/keycodes": "^4.32.0",
52
- "@wordpress/notices": "^5.32.0",
53
- "@wordpress/plugins": "^7.32.0",
54
- "@wordpress/preferences": "^4.32.0",
55
- "@wordpress/private-apis": "^1.32.0",
56
- "@wordpress/url": "^4.32.0",
57
- "@wordpress/viewport": "^6.32.0",
58
- "@wordpress/warning": "^3.32.0",
59
- "@wordpress/widgets": "^4.32.0",
38
+ "@wordpress/a11y": "^4.32.1-next.ff1cebbba.0",
39
+ "@wordpress/admin-ui": "^1.0.1-next.ff1cebbba.0",
40
+ "@wordpress/api-fetch": "^7.32.1-next.ff1cebbba.0",
41
+ "@wordpress/base-styles": "^6.8.1-next.ff1cebbba.0",
42
+ "@wordpress/block-editor": "^15.5.1-next.ff1cebbba.0",
43
+ "@wordpress/block-library": "^9.33.1-next.ff1cebbba.0",
44
+ "@wordpress/blocks": "^15.5.1-next.ff1cebbba.0",
45
+ "@wordpress/commands": "^1.32.1-next.ff1cebbba.0",
46
+ "@wordpress/components": "^30.6.1-next.ff1cebbba.0",
47
+ "@wordpress/compose": "^7.32.1-next.ff1cebbba.0",
48
+ "@wordpress/core-data": "^7.32.1-next.ff1cebbba.0",
49
+ "@wordpress/data": "^10.32.1-next.ff1cebbba.0",
50
+ "@wordpress/deprecated": "^4.32.1-next.ff1cebbba.0",
51
+ "@wordpress/dom": "^4.32.1-next.ff1cebbba.0",
52
+ "@wordpress/editor": "^14.32.1-next.ff1cebbba.0",
53
+ "@wordpress/element": "^6.32.1-next.ff1cebbba.0",
54
+ "@wordpress/hooks": "^4.32.1-next.ff1cebbba.0",
55
+ "@wordpress/html-entities": "^4.32.1-next.ff1cebbba.0",
56
+ "@wordpress/i18n": "^6.5.1-next.ff1cebbba.0",
57
+ "@wordpress/icons": "^11.0.1-next.ff1cebbba.0",
58
+ "@wordpress/keyboard-shortcuts": "^5.32.1-next.ff1cebbba.0",
59
+ "@wordpress/keycodes": "^4.32.1-next.ff1cebbba.0",
60
+ "@wordpress/notices": "^5.32.1-next.ff1cebbba.0",
61
+ "@wordpress/plugins": "^7.32.1-next.ff1cebbba.0",
62
+ "@wordpress/preferences": "^4.32.1-next.ff1cebbba.0",
63
+ "@wordpress/private-apis": "^1.32.1-next.ff1cebbba.0",
64
+ "@wordpress/url": "^4.32.1-next.ff1cebbba.0",
65
+ "@wordpress/viewport": "^6.32.1-next.ff1cebbba.0",
66
+ "@wordpress/warning": "^3.32.1-next.ff1cebbba.0",
67
+ "@wordpress/widgets": "^4.32.1-next.ff1cebbba.0",
60
68
  "clsx": "^2.1.1",
61
69
  "memize": "^2.1.0"
62
70
  },
@@ -67,5 +75,5 @@
67
75
  "publishConfig": {
68
76
  "access": "public"
69
77
  },
70
- "gitHead": "a030b4c0e0695239b942c7dc18511782b64f10ed"
78
+ "gitHead": "c5b659710aff01d40d2eb97b211eb2cec9c07d3b"
71
79
  }
package/src/classic.scss CHANGED
@@ -1,3 +1,6 @@
1
+ @use "@wordpress/base-styles/mixins" as *;
2
+ @use "@wordpress/base-styles/variables" as *;
3
+
1
4
  // Provide baseline auto margin for centering blocks.
2
5
  // Specificity is kept at this level as many classic themes output
3
6
  // rules like figure { margin: 0; } which would break centering.
@@ -1,3 +1,6 @@
1
+ @use "@wordpress/base-styles/colors" as *;
2
+ @use "@wordpress/base-styles/variables" as *;
3
+
1
4
  // Developer notes: these rules are copied from the site editor.
2
5
  // They need to be updated in both places.
3
6
 
@@ -6,6 +6,7 @@ import clsx from 'clsx';
6
6
  /**
7
7
  * WordPress dependencies
8
8
  */
9
+ import { NavigableRegion } from '@wordpress/admin-ui';
9
10
  import {
10
11
  AutosaveMonitor,
11
12
  LocalAutosaveMonitor,
@@ -76,7 +77,7 @@ import { useMetaBoxInitialization } from '../meta-boxes/use-meta-box-initializat
76
77
 
77
78
  const { getLayoutStyles } = unlock( blockEditorPrivateApis );
78
79
  const { useCommandContext } = unlock( commandsPrivateApis );
79
- const { Editor, FullscreenMode, NavigableRegion } = unlock( editorPrivateApis );
80
+ const { Editor, FullscreenMode } = unlock( editorPrivateApis );
80
81
  const { BlockKeyboardShortcuts } = unlock( blockLibraryPrivateApis );
81
82
  const DESIGN_POST_TYPES = [
82
83
  'wp_template',
@@ -265,7 +266,7 @@ function MetaBoxesMain( { isLegacy } ) {
265
266
  <div
266
267
  // The class name 'edit-post-layout__metaboxes' is retained because some plugins use it.
267
268
  className="edit-post-layout__metaboxes edit-post-meta-boxes-main__liner"
268
- hidden={ ! isOpen }
269
+ hidden={ ! isLegacy && ! isOpen }
269
270
  >
270
271
  <MetaBoxes location="normal" />
271
272
  <MetaBoxes location="advanced" />
@@ -1,3 +1,7 @@
1
+ @use "@wordpress/base-styles/colors" as *;
2
+ @use "@wordpress/base-styles/mixins" as *;
3
+ @use "@wordpress/base-styles/variables" as *;
4
+
1
5
  .edit-post-meta-boxes-main {
2
6
  filter: drop-shadow(0 -1px rgba($color: #000, $alpha: 0.133)); // 0.133 = $gray-200 but with alpha.
3
7
  // Windows High Contrast mode will show this outline, but not the shadow.
@@ -1,3 +1,6 @@
1
+ @use "@wordpress/base-styles/colors" as *;
2
+ @use "@wordpress/base-styles/variables" as *;
3
+ @use "@wordpress/base-styles/z-index" as *;
1
4
 
2
5
  .edit-post-meta-boxes-area {
3
6
  position: relative;
@@ -1,3 +1,6 @@
1
+ @use "@wordpress/base-styles/colors" as *;
2
+ @use "@wordpress/base-styles/variables" as *;
3
+
1
4
  .edit-post-welcome-guide,
2
5
  .edit-template-welcome-guide {
3
6
  width: 312px;
package/src/style.scss CHANGED
@@ -1,7 +1,11 @@
1
- @import "./components/back-button/style.scss";
2
- @import "./components/layout/style.scss";
3
- @import "./components/meta-boxes/meta-boxes-area/style.scss";
4
- @import "./components/welcome-guide/style.scss";
1
+ @use "@wordpress/base-styles/default-custom-properties";
2
+ @use "@wordpress/base-styles/mixins" as *;
3
+ @use "@wordpress/base-styles/variables" as *;
4
+ @use "@wordpress/admin-ui/build-style/style.css" as *;
5
+ @use "./components/back-button/style.scss" as *;
6
+ @use "./components/layout/style.scss" as *;
7
+ @use "./components/meta-boxes/meta-boxes-area/style.scss" as *;
8
+ @use "./components/welcome-guide/style.scss" as *;
5
9
 
6
10
  body.js.block-editor-page {
7
11
  @include wp-admin-reset( ".block-editor" );