@wordpress/edit-post 8.36.1-next.8b30e05b0.0 → 8.36.1-next.8fd3f8831.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 (108) hide show
  1. package/build/commands/{use-commands.js → use-commands.cjs} +1 -1
  2. package/build/components/back-button/{fullscreen-mode-close.js → fullscreen-mode-close.cjs} +2 -2
  3. package/build/components/back-button/{index.js → index.cjs} +3 -3
  4. package/build/components/browser-url/{index.js → index.cjs} +1 -1
  5. package/build/components/editor-initialization/{index.js → index.cjs} +2 -2
  6. package/build/components/editor-initialization/{listener-hooks.js → listener-hooks.cjs} +2 -2
  7. package/build/components/init-pattern-modal/{index.js → index.cjs} +1 -3
  8. package/build/components/init-pattern-modal/{index.js.map → index.cjs.map} +2 -2
  9. package/build/components/keyboard-shortcuts/{index.js → index.cjs} +2 -2
  10. package/build/components/layout/{index.js → index.cjs} +19 -17
  11. package/build/components/layout/{index.js.map → index.cjs.map} +2 -2
  12. package/build/components/layout/{use-should-iframe.js → use-should-iframe.cjs} +2 -2
  13. package/build/components/meta-boxes/{index.js → index.cjs} +4 -4
  14. package/build/components/meta-boxes/{meta-box-visibility.js → meta-box-visibility.cjs} +1 -1
  15. package/build/components/meta-boxes/meta-boxes-area/{index.js → index.cjs} +3 -3
  16. package/build/components/meta-boxes/{use-meta-box-initialization.js → use-meta-box-initialization.cjs} +2 -2
  17. package/build/components/more-menu/{index.js → index.cjs} +5 -5
  18. package/build/components/more-menu/{manage-patterns-menu-item.js → manage-patterns-menu-item.cjs} +1 -1
  19. package/build/components/more-menu/{welcome-guide-menu-item.js → welcome-guide-menu-item.cjs} +1 -1
  20. package/build/components/preferences-modal/{enable-custom-fields.js → enable-custom-fields.cjs} +2 -2
  21. package/build/components/preferences-modal/{enable-panel.js → enable-panel.cjs} +2 -2
  22. package/build/components/preferences-modal/{index.js → index.cjs} +3 -3
  23. package/build/components/preferences-modal/{meta-boxes-section.js → meta-boxes-section.cjs} +5 -5
  24. package/build/components/welcome-guide/{default.js → default.cjs} +3 -3
  25. package/build/components/welcome-guide/{image.js → image.cjs} +1 -1
  26. package/build/components/welcome-guide/{index.js → index.cjs} +4 -4
  27. package/build/components/welcome-guide/{template.js → template.cjs} +3 -3
  28. package/build/{deprecated.js → deprecated.cjs} +3 -3
  29. package/build/hooks/{use-navigate-to-entity-record.js → use-navigate-to-entity-record.cjs} +28 -8
  30. package/build/hooks/use-navigate-to-entity-record.cjs.map +7 -0
  31. package/build/{index.js → index.cjs} +8 -8
  32. package/build/{index.js.map → index.cjs.map} +1 -1
  33. package/build/{lock-unlock.js → lock-unlock.cjs} +1 -1
  34. package/build/store/{actions.js → actions.cjs} +5 -5
  35. package/build/store/{constants.js → constants.cjs} +1 -1
  36. package/build/store/{index.js → index.cjs} +5 -5
  37. package/build/store/{reducer.js → reducer.cjs} +1 -1
  38. package/build/store/{selectors.js → selectors.cjs} +3 -3
  39. package/build/utils/{meta-boxes.js → meta-boxes.cjs} +1 -1
  40. package/build-module/components/back-button/index.js +2 -2
  41. package/build-module/components/editor-initialization/index.js +1 -1
  42. package/build-module/components/editor-initialization/listener-hooks.js +1 -1
  43. package/build-module/components/init-pattern-modal/index.js +0 -2
  44. package/build-module/components/init-pattern-modal/index.js.map +2 -2
  45. package/build-module/components/keyboard-shortcuts/index.js +1 -1
  46. package/build-module/components/layout/index.js +17 -15
  47. package/build-module/components/layout/index.js.map +2 -2
  48. package/build-module/components/layout/use-should-iframe.js +1 -1
  49. package/build-module/components/meta-boxes/index.js +3 -3
  50. package/build-module/components/meta-boxes/meta-boxes-area/index.js +1 -1
  51. package/build-module/components/meta-boxes/use-meta-box-initialization.js +1 -1
  52. package/build-module/components/more-menu/index.js +4 -4
  53. package/build-module/components/preferences-modal/enable-custom-fields.js +1 -1
  54. package/build-module/components/preferences-modal/enable-panel.js +1 -1
  55. package/build-module/components/preferences-modal/index.js +2 -2
  56. package/build-module/components/preferences-modal/meta-boxes-section.js +4 -4
  57. package/build-module/components/welcome-guide/default.js +2 -2
  58. package/build-module/components/welcome-guide/index.js +3 -3
  59. package/build-module/components/welcome-guide/template.js +2 -2
  60. package/build-module/deprecated.js +1 -1
  61. package/build-module/hooks/use-navigate-to-entity-record.js +28 -8
  62. package/build-module/hooks/use-navigate-to-entity-record.js.map +3 -3
  63. package/build-module/index.js +5 -5
  64. package/build-module/store/actions.js +2 -2
  65. package/build-module/store/index.js +4 -4
  66. package/build-module/store/selectors.js +1 -1
  67. package/build-style/classic-rtl.css +4 -0
  68. package/build-style/classic.css +4 -0
  69. package/build-style/style-rtl.css +16 -139
  70. package/build-style/style.css +16 -139
  71. package/package.json +44 -35
  72. package/src/components/init-pattern-modal/index.js +0 -2
  73. package/src/components/layout/index.js +2 -0
  74. package/src/components/welcome-guide/style.scss +2 -2
  75. package/src/hooks/use-navigate-to-entity-record.js +40 -8
  76. package/src/style.scss +0 -2
  77. package/build/hooks/use-navigate-to-entity-record.js.map +0 -7
  78. /package/build/commands/{use-commands.js.map → use-commands.cjs.map} +0 -0
  79. /package/build/components/back-button/{fullscreen-mode-close.js.map → fullscreen-mode-close.cjs.map} +0 -0
  80. /package/build/components/back-button/{index.js.map → index.cjs.map} +0 -0
  81. /package/build/components/browser-url/{index.js.map → index.cjs.map} +0 -0
  82. /package/build/components/editor-initialization/{index.js.map → index.cjs.map} +0 -0
  83. /package/build/components/editor-initialization/{listener-hooks.js.map → listener-hooks.cjs.map} +0 -0
  84. /package/build/components/keyboard-shortcuts/{index.js.map → index.cjs.map} +0 -0
  85. /package/build/components/layout/{use-should-iframe.js.map → use-should-iframe.cjs.map} +0 -0
  86. /package/build/components/meta-boxes/{index.js.map → index.cjs.map} +0 -0
  87. /package/build/components/meta-boxes/{meta-box-visibility.js.map → meta-box-visibility.cjs.map} +0 -0
  88. /package/build/components/meta-boxes/meta-boxes-area/{index.js.map → index.cjs.map} +0 -0
  89. /package/build/components/meta-boxes/{use-meta-box-initialization.js.map → use-meta-box-initialization.cjs.map} +0 -0
  90. /package/build/components/more-menu/{index.js.map → index.cjs.map} +0 -0
  91. /package/build/components/more-menu/{manage-patterns-menu-item.js.map → manage-patterns-menu-item.cjs.map} +0 -0
  92. /package/build/components/more-menu/{welcome-guide-menu-item.js.map → welcome-guide-menu-item.cjs.map} +0 -0
  93. /package/build/components/preferences-modal/{enable-custom-fields.js.map → enable-custom-fields.cjs.map} +0 -0
  94. /package/build/components/preferences-modal/{enable-panel.js.map → enable-panel.cjs.map} +0 -0
  95. /package/build/components/preferences-modal/{index.js.map → index.cjs.map} +0 -0
  96. /package/build/components/preferences-modal/{meta-boxes-section.js.map → meta-boxes-section.cjs.map} +0 -0
  97. /package/build/components/welcome-guide/{default.js.map → default.cjs.map} +0 -0
  98. /package/build/components/welcome-guide/{image.js.map → image.cjs.map} +0 -0
  99. /package/build/components/welcome-guide/{index.js.map → index.cjs.map} +0 -0
  100. /package/build/components/welcome-guide/{template.js.map → template.cjs.map} +0 -0
  101. /package/build/{deprecated.js.map → deprecated.cjs.map} +0 -0
  102. /package/build/{lock-unlock.js.map → lock-unlock.cjs.map} +0 -0
  103. /package/build/store/{actions.js.map → actions.cjs.map} +0 -0
  104. /package/build/store/{constants.js.map → constants.cjs.map} +0 -0
  105. /package/build/store/{index.js.map → index.cjs.map} +0 -0
  106. /package/build/store/{reducer.js.map → reducer.cjs.map} +0 -0
  107. /package/build/store/{selectors.js.map → selectors.cjs.map} +0 -0
  108. /package/build/utils/{meta-boxes.js.map → meta-boxes.cjs.map} +0 -0
@@ -83,6 +83,10 @@
83
83
  /**
84
84
  * Reset the WP Admin page styles for Gutenberg-like pages.
85
85
  */
86
+ /**
87
+ * Creates a checkerboard pattern background to indicate transparency.
88
+ * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
89
+ */
86
90
  :root {
87
91
  --wp-block-synced-color: #7a00df;
88
92
  --wp-block-synced-color--rgb: 122, 0, 223;
@@ -187,6 +191,10 @@
187
191
  /**
188
192
  * Reset the WP Admin page styles for Gutenberg-like pages.
189
193
  */
194
+ /**
195
+ * Creates a checkerboard pattern background to indicate transparency.
196
+ * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
197
+ */
190
198
  .admin-ui-page {
191
199
  display: flex;
192
200
  height: 100%;
@@ -195,27 +203,21 @@
195
203
  position: relative;
196
204
  z-index: 1;
197
205
  flex-flow: column;
198
- container: admin-ui-page/inline-size;
199
206
  }
200
207
 
201
- @media not (prefers-reduced-motion) {
202
- .admin-ui-page {
203
- transition: width ease-out 0.2s;
204
- }
205
- }
206
208
  .admin-ui-page__header {
207
- padding: 16px 48px;
209
+ padding: 16px 24px;
208
210
  border-bottom: 1px solid #f0f0f0;
209
211
  background: #fff;
210
212
  position: sticky;
211
213
  top: 0;
214
+ z-index: 1;
212
215
  }
213
216
 
214
- @container (max-width: 430px) {
215
- .admin-ui-page__header {
216
- padding: 16px 24px;
217
- }
217
+ .admin-ui-page__sidebar-toggle-slot:empty {
218
+ display: none;
218
219
  }
220
+
219
221
  .admin-ui-page__header-subtitle {
220
222
  padding-block-end: 8px;
221
223
  color: #757575;
@@ -234,14 +236,9 @@
234
236
  }
235
237
 
236
238
  .admin-ui-page__content.has-padding {
237
- padding: 16px 20px;
239
+ padding: 16px 24px;
238
240
  }
239
241
 
240
- @container (max-width: 430px) {
241
- .admin-ui-page__content.has-padding {
242
- padding: 16px 24px;
243
- }
244
- }
245
242
  .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon {
246
243
  width: auto;
247
244
  padding: 0 8px;
@@ -632,14 +629,14 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
632
629
  font-size: 24px;
633
630
  line-height: 1.4;
634
631
  margin: 16px 0 16px 0;
635
- padding: 0 32px;
632
+ padding: 0 24px;
636
633
  }
637
634
  .edit-post-welcome-guide__text,
638
635
  .edit-template-welcome-guide__text {
639
636
  font-size: 13px;
640
637
  line-height: 1.4;
641
638
  margin: 0 0 24px 0;
642
- padding: 0 32px;
639
+ padding: 0 24px;
643
640
  }
644
641
  .edit-post-welcome-guide__inserter-icon,
645
642
  .edit-template-welcome-guide__inserter-icon {
@@ -726,124 +723,4 @@ body.js.block-editor-page .media-frame select.attachment-filters:last-of-type {
726
723
  .block-editor__container img {
727
724
  max-width: 100%;
728
725
  height: auto;
729
- }
730
-
731
- body.admin-color-light {
732
- --wp-admin-theme-color: #0085ba;
733
- --wp-admin-theme-color--rgb: 0, 133, 186;
734
- --wp-admin-theme-color-darker-10: rgb(0, 114.7661290323, 160.5);
735
- --wp-admin-theme-color-darker-10--rgb: 0, 114.7661290323, 160.5;
736
- --wp-admin-theme-color-darker-20: rgb(0, 96.5322580645, 135);
737
- --wp-admin-theme-color-darker-20--rgb: 0, 96.5322580645, 135;
738
- --wp-admin-border-width-focus: 2px;
739
- }
740
- @media (min-resolution: 192dpi) {
741
- body.admin-color-light {
742
- --wp-admin-border-width-focus: 1.5px;
743
- }
744
- }
745
-
746
- body.admin-color-modern {
747
- --wp-admin-theme-color: #3858e9;
748
- --wp-admin-theme-color--rgb: 56, 88, 233;
749
- --wp-admin-theme-color-darker-10: rgb(33.0384615385, 68.7307692308, 230.4615384615);
750
- --wp-admin-theme-color-darker-10--rgb: 33.0384615385, 68.7307692308, 230.4615384615;
751
- --wp-admin-theme-color-darker-20: rgb(23.6923076923, 58.1538461538, 214.3076923077);
752
- --wp-admin-theme-color-darker-20--rgb: 23.6923076923, 58.1538461538, 214.3076923077;
753
- --wp-admin-border-width-focus: 2px;
754
- }
755
- @media (min-resolution: 192dpi) {
756
- body.admin-color-modern {
757
- --wp-admin-border-width-focus: 1.5px;
758
- }
759
- }
760
-
761
- body.admin-color-blue {
762
- --wp-admin-theme-color: #096484;
763
- --wp-admin-theme-color--rgb: 9, 100, 132;
764
- --wp-admin-theme-color-darker-10: rgb(7.3723404255, 81.914893617, 108.1276595745);
765
- --wp-admin-theme-color-darker-10--rgb: 7.3723404255, 81.914893617, 108.1276595745;
766
- --wp-admin-theme-color-darker-20: rgb(5.7446808511, 63.829787234, 84.2553191489);
767
- --wp-admin-theme-color-darker-20--rgb: 5.7446808511, 63.829787234, 84.2553191489;
768
- --wp-admin-border-width-focus: 2px;
769
- }
770
- @media (min-resolution: 192dpi) {
771
- body.admin-color-blue {
772
- --wp-admin-border-width-focus: 1.5px;
773
- }
774
- }
775
-
776
- body.admin-color-coffee {
777
- --wp-admin-theme-color: #46403c;
778
- --wp-admin-theme-color--rgb: 70, 64, 60;
779
- --wp-admin-theme-color-darker-10: rgb(56.2692307692, 51.4461538462, 48.2307692308);
780
- --wp-admin-theme-color-darker-10--rgb: 56.2692307692, 51.4461538462, 48.2307692308;
781
- --wp-admin-theme-color-darker-20: rgb(42.5384615385, 38.8923076923, 36.4615384615);
782
- --wp-admin-theme-color-darker-20--rgb: 42.5384615385, 38.8923076923, 36.4615384615;
783
- --wp-admin-border-width-focus: 2px;
784
- }
785
- @media (min-resolution: 192dpi) {
786
- body.admin-color-coffee {
787
- --wp-admin-border-width-focus: 1.5px;
788
- }
789
- }
790
-
791
- body.admin-color-ectoplasm {
792
- --wp-admin-theme-color: #523f6d;
793
- --wp-admin-theme-color--rgb: 82, 63, 109;
794
- --wp-admin-theme-color-darker-10: rgb(69.8430232558, 53.6598837209, 92.8401162791);
795
- --wp-admin-theme-color-darker-10--rgb: 69.8430232558, 53.6598837209, 92.8401162791;
796
- --wp-admin-theme-color-darker-20: rgb(57.6860465116, 44.3197674419, 76.6802325581);
797
- --wp-admin-theme-color-darker-20--rgb: 57.6860465116, 44.3197674419, 76.6802325581;
798
- --wp-admin-border-width-focus: 2px;
799
- }
800
- @media (min-resolution: 192dpi) {
801
- body.admin-color-ectoplasm {
802
- --wp-admin-border-width-focus: 1.5px;
803
- }
804
- }
805
-
806
- body.admin-color-midnight {
807
- --wp-admin-theme-color: #e14d43;
808
- --wp-admin-theme-color--rgb: 225, 77, 67;
809
- --wp-admin-theme-color-darker-10: rgb(221.4908256881, 56.1788990826, 45.0091743119);
810
- --wp-admin-theme-color-darker-10--rgb: 221.4908256881, 56.1788990826, 45.0091743119;
811
- --wp-admin-theme-color-darker-20: rgb(207.8348623853, 44.2201834862, 33.1651376147);
812
- --wp-admin-theme-color-darker-20--rgb: 207.8348623853, 44.2201834862, 33.1651376147;
813
- --wp-admin-border-width-focus: 2px;
814
- }
815
- @media (min-resolution: 192dpi) {
816
- body.admin-color-midnight {
817
- --wp-admin-border-width-focus: 1.5px;
818
- }
819
- }
820
-
821
- body.admin-color-ocean {
822
- --wp-admin-theme-color: #627c83;
823
- --wp-admin-theme-color--rgb: 98, 124, 131;
824
- --wp-admin-theme-color-darker-10: rgb(87.0873362445, 110.192139738, 116.4126637555);
825
- --wp-admin-theme-color-darker-10--rgb: 87.0873362445, 110.192139738, 116.4126637555;
826
- --wp-admin-theme-color-darker-20: rgb(76.1746724891, 96.384279476, 101.8253275109);
827
- --wp-admin-theme-color-darker-20--rgb: 76.1746724891, 96.384279476, 101.8253275109;
828
- --wp-admin-border-width-focus: 2px;
829
- }
830
- @media (min-resolution: 192dpi) {
831
- body.admin-color-ocean {
832
- --wp-admin-border-width-focus: 1.5px;
833
- }
834
- }
835
-
836
- body.admin-color-sunrise {
837
- --wp-admin-theme-color: #dd823b;
838
- --wp-admin-theme-color--rgb: 221, 130, 59;
839
- --wp-admin-theme-color-darker-10: rgb(216.8782608696, 116.1847826087, 37.6217391304);
840
- --wp-admin-theme-color-darker-10--rgb: 216.8782608696, 116.1847826087, 37.6217391304;
841
- --wp-admin-theme-color-darker-20: rgb(195.147826087, 104.5434782609, 33.852173913);
842
- --wp-admin-theme-color-darker-20--rgb: 195.147826087, 104.5434782609, 33.852173913;
843
- --wp-admin-border-width-focus: 2px;
844
- }
845
- @media (min-resolution: 192dpi) {
846
- body.admin-color-sunrise {
847
- --wp-admin-border-width-focus: 1.5px;
848
- }
849
726
  }
@@ -83,6 +83,10 @@
83
83
  /**
84
84
  * Reset the WP Admin page styles for Gutenberg-like pages.
85
85
  */
86
+ /**
87
+ * Creates a checkerboard pattern background to indicate transparency.
88
+ * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
89
+ */
86
90
  :root {
87
91
  --wp-block-synced-color: #7a00df;
88
92
  --wp-block-synced-color--rgb: 122, 0, 223;
@@ -187,6 +191,10 @@
187
191
  /**
188
192
  * Reset the WP Admin page styles for Gutenberg-like pages.
189
193
  */
194
+ /**
195
+ * Creates a checkerboard pattern background to indicate transparency.
196
+ * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
197
+ */
190
198
  .admin-ui-page {
191
199
  display: flex;
192
200
  height: 100%;
@@ -195,27 +203,21 @@
195
203
  position: relative;
196
204
  z-index: 1;
197
205
  flex-flow: column;
198
- container: admin-ui-page/inline-size;
199
206
  }
200
207
 
201
- @media not (prefers-reduced-motion) {
202
- .admin-ui-page {
203
- transition: width ease-out 0.2s;
204
- }
205
- }
206
208
  .admin-ui-page__header {
207
- padding: 16px 48px;
209
+ padding: 16px 24px;
208
210
  border-bottom: 1px solid #f0f0f0;
209
211
  background: #fff;
210
212
  position: sticky;
211
213
  top: 0;
214
+ z-index: 1;
212
215
  }
213
216
 
214
- @container (max-width: 430px) {
215
- .admin-ui-page__header {
216
- padding: 16px 24px;
217
- }
217
+ .admin-ui-page__sidebar-toggle-slot:empty {
218
+ display: none;
218
219
  }
220
+
219
221
  .admin-ui-page__header-subtitle {
220
222
  padding-block-end: 8px;
221
223
  color: #757575;
@@ -234,14 +236,9 @@
234
236
  }
235
237
 
236
238
  .admin-ui-page__content.has-padding {
237
- padding: 16px 20px;
239
+ padding: 16px 24px;
238
240
  }
239
241
 
240
- @container (max-width: 430px) {
241
- .admin-ui-page__content.has-padding {
242
- padding: 16px 24px;
243
- }
244
- }
245
242
  .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon {
246
243
  width: auto;
247
244
  padding: 0 8px;
@@ -632,14 +629,14 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
632
629
  font-size: 24px;
633
630
  line-height: 1.4;
634
631
  margin: 16px 0 16px 0;
635
- padding: 0 32px;
632
+ padding: 0 24px;
636
633
  }
637
634
  .edit-post-welcome-guide__text,
638
635
  .edit-template-welcome-guide__text {
639
636
  font-size: 13px;
640
637
  line-height: 1.4;
641
638
  margin: 0 0 24px 0;
642
- padding: 0 32px;
639
+ padding: 0 24px;
643
640
  }
644
641
  .edit-post-welcome-guide__inserter-icon,
645
642
  .edit-template-welcome-guide__inserter-icon {
@@ -726,124 +723,4 @@ body.js.block-editor-page .media-frame select.attachment-filters:last-of-type {
726
723
  .block-editor__container img {
727
724
  max-width: 100%;
728
725
  height: auto;
729
- }
730
-
731
- body.admin-color-light {
732
- --wp-admin-theme-color: #0085ba;
733
- --wp-admin-theme-color--rgb: 0, 133, 186;
734
- --wp-admin-theme-color-darker-10: rgb(0, 114.7661290323, 160.5);
735
- --wp-admin-theme-color-darker-10--rgb: 0, 114.7661290323, 160.5;
736
- --wp-admin-theme-color-darker-20: rgb(0, 96.5322580645, 135);
737
- --wp-admin-theme-color-darker-20--rgb: 0, 96.5322580645, 135;
738
- --wp-admin-border-width-focus: 2px;
739
- }
740
- @media (min-resolution: 192dpi) {
741
- body.admin-color-light {
742
- --wp-admin-border-width-focus: 1.5px;
743
- }
744
- }
745
-
746
- body.admin-color-modern {
747
- --wp-admin-theme-color: #3858e9;
748
- --wp-admin-theme-color--rgb: 56, 88, 233;
749
- --wp-admin-theme-color-darker-10: rgb(33.0384615385, 68.7307692308, 230.4615384615);
750
- --wp-admin-theme-color-darker-10--rgb: 33.0384615385, 68.7307692308, 230.4615384615;
751
- --wp-admin-theme-color-darker-20: rgb(23.6923076923, 58.1538461538, 214.3076923077);
752
- --wp-admin-theme-color-darker-20--rgb: 23.6923076923, 58.1538461538, 214.3076923077;
753
- --wp-admin-border-width-focus: 2px;
754
- }
755
- @media (min-resolution: 192dpi) {
756
- body.admin-color-modern {
757
- --wp-admin-border-width-focus: 1.5px;
758
- }
759
- }
760
-
761
- body.admin-color-blue {
762
- --wp-admin-theme-color: #096484;
763
- --wp-admin-theme-color--rgb: 9, 100, 132;
764
- --wp-admin-theme-color-darker-10: rgb(7.3723404255, 81.914893617, 108.1276595745);
765
- --wp-admin-theme-color-darker-10--rgb: 7.3723404255, 81.914893617, 108.1276595745;
766
- --wp-admin-theme-color-darker-20: rgb(5.7446808511, 63.829787234, 84.2553191489);
767
- --wp-admin-theme-color-darker-20--rgb: 5.7446808511, 63.829787234, 84.2553191489;
768
- --wp-admin-border-width-focus: 2px;
769
- }
770
- @media (min-resolution: 192dpi) {
771
- body.admin-color-blue {
772
- --wp-admin-border-width-focus: 1.5px;
773
- }
774
- }
775
-
776
- body.admin-color-coffee {
777
- --wp-admin-theme-color: #46403c;
778
- --wp-admin-theme-color--rgb: 70, 64, 60;
779
- --wp-admin-theme-color-darker-10: rgb(56.2692307692, 51.4461538462, 48.2307692308);
780
- --wp-admin-theme-color-darker-10--rgb: 56.2692307692, 51.4461538462, 48.2307692308;
781
- --wp-admin-theme-color-darker-20: rgb(42.5384615385, 38.8923076923, 36.4615384615);
782
- --wp-admin-theme-color-darker-20--rgb: 42.5384615385, 38.8923076923, 36.4615384615;
783
- --wp-admin-border-width-focus: 2px;
784
- }
785
- @media (min-resolution: 192dpi) {
786
- body.admin-color-coffee {
787
- --wp-admin-border-width-focus: 1.5px;
788
- }
789
- }
790
-
791
- body.admin-color-ectoplasm {
792
- --wp-admin-theme-color: #523f6d;
793
- --wp-admin-theme-color--rgb: 82, 63, 109;
794
- --wp-admin-theme-color-darker-10: rgb(69.8430232558, 53.6598837209, 92.8401162791);
795
- --wp-admin-theme-color-darker-10--rgb: 69.8430232558, 53.6598837209, 92.8401162791;
796
- --wp-admin-theme-color-darker-20: rgb(57.6860465116, 44.3197674419, 76.6802325581);
797
- --wp-admin-theme-color-darker-20--rgb: 57.6860465116, 44.3197674419, 76.6802325581;
798
- --wp-admin-border-width-focus: 2px;
799
- }
800
- @media (min-resolution: 192dpi) {
801
- body.admin-color-ectoplasm {
802
- --wp-admin-border-width-focus: 1.5px;
803
- }
804
- }
805
-
806
- body.admin-color-midnight {
807
- --wp-admin-theme-color: #e14d43;
808
- --wp-admin-theme-color--rgb: 225, 77, 67;
809
- --wp-admin-theme-color-darker-10: rgb(221.4908256881, 56.1788990826, 45.0091743119);
810
- --wp-admin-theme-color-darker-10--rgb: 221.4908256881, 56.1788990826, 45.0091743119;
811
- --wp-admin-theme-color-darker-20: rgb(207.8348623853, 44.2201834862, 33.1651376147);
812
- --wp-admin-theme-color-darker-20--rgb: 207.8348623853, 44.2201834862, 33.1651376147;
813
- --wp-admin-border-width-focus: 2px;
814
- }
815
- @media (min-resolution: 192dpi) {
816
- body.admin-color-midnight {
817
- --wp-admin-border-width-focus: 1.5px;
818
- }
819
- }
820
-
821
- body.admin-color-ocean {
822
- --wp-admin-theme-color: #627c83;
823
- --wp-admin-theme-color--rgb: 98, 124, 131;
824
- --wp-admin-theme-color-darker-10: rgb(87.0873362445, 110.192139738, 116.4126637555);
825
- --wp-admin-theme-color-darker-10--rgb: 87.0873362445, 110.192139738, 116.4126637555;
826
- --wp-admin-theme-color-darker-20: rgb(76.1746724891, 96.384279476, 101.8253275109);
827
- --wp-admin-theme-color-darker-20--rgb: 76.1746724891, 96.384279476, 101.8253275109;
828
- --wp-admin-border-width-focus: 2px;
829
- }
830
- @media (min-resolution: 192dpi) {
831
- body.admin-color-ocean {
832
- --wp-admin-border-width-focus: 1.5px;
833
- }
834
- }
835
-
836
- body.admin-color-sunrise {
837
- --wp-admin-theme-color: #dd823b;
838
- --wp-admin-theme-color--rgb: 221, 130, 59;
839
- --wp-admin-theme-color-darker-10: rgb(216.8782608696, 116.1847826087, 37.6217391304);
840
- --wp-admin-theme-color-darker-10--rgb: 216.8782608696, 116.1847826087, 37.6217391304;
841
- --wp-admin-theme-color-darker-20: rgb(195.147826087, 104.5434782609, 33.852173913);
842
- --wp-admin-theme-color-darker-20--rgb: 195.147826087, 104.5434782609, 33.852173913;
843
- --wp-admin-border-width-focus: 2px;
844
- }
845
- @media (min-resolution: 192dpi) {
846
- body.admin-color-sunrise {
847
- --wp-admin-border-width-focus: 1.5px;
848
- }
849
726
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-post",
3
- "version": "8.36.1-next.8b30e05b0.0",
3
+ "version": "8.36.1-next.8fd3f8831.0",
4
4
  "description": "Edit Post module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -23,12 +23,21 @@
23
23
  "node": ">=18.12.0",
24
24
  "npm": ">=8.19.2"
25
25
  },
26
- "main": "build/index.js",
26
+ "files": [
27
+ "src",
28
+ "build",
29
+ "build-module",
30
+ "build-style",
31
+ "build-types",
32
+ "*.md"
33
+ ],
34
+ "type": "module",
35
+ "main": "build/index.cjs",
27
36
  "module": "build-module/index.js",
28
37
  "exports": {
29
38
  ".": {
30
39
  "import": "./build-module/index.js",
31
- "default": "./build/index.js"
40
+ "default": "./build/index.cjs"
32
41
  },
33
42
  "./package.json": "./package.json"
34
43
  },
@@ -40,37 +49,37 @@
40
49
  "postbox"
41
50
  ],
42
51
  "dependencies": {
43
- "@wordpress/a11y": "^4.36.1-next.8b30e05b0.0",
44
- "@wordpress/admin-ui": "^1.4.1-next.8b30e05b0.0",
45
- "@wordpress/api-fetch": "^7.36.1-next.8b30e05b0.0",
46
- "@wordpress/base-styles": "^6.12.1-next.8b30e05b0.0",
47
- "@wordpress/block-editor": "^15.9.1-next.8b30e05b0.0",
48
- "@wordpress/block-library": "^9.36.1-next.8b30e05b0.0",
49
- "@wordpress/blocks": "^15.9.1-next.8b30e05b0.0",
50
- "@wordpress/commands": "^1.36.1-next.8b30e05b0.0",
51
- "@wordpress/components": "^30.9.1-next.8b30e05b0.0",
52
- "@wordpress/compose": "^7.36.1-next.8b30e05b0.0",
53
- "@wordpress/core-data": "^7.36.1-next.8b30e05b0.0",
54
- "@wordpress/data": "^10.36.1-next.8b30e05b0.0",
55
- "@wordpress/deprecated": "^4.36.1-next.8b30e05b0.0",
56
- "@wordpress/dom": "^4.36.1-next.8b30e05b0.0",
57
- "@wordpress/editor": "^14.36.1-next.8b30e05b0.0",
58
- "@wordpress/element": "^6.36.1-next.8b30e05b0.0",
59
- "@wordpress/global-styles-engine": "^1.3.1-next.8b30e05b0.0",
60
- "@wordpress/hooks": "^4.36.1-next.8b30e05b0.0",
61
- "@wordpress/html-entities": "^4.36.1-next.8b30e05b0.0",
62
- "@wordpress/i18n": "^6.9.1-next.8b30e05b0.0",
63
- "@wordpress/icons": "^11.3.1-next.8b30e05b0.0",
64
- "@wordpress/keyboard-shortcuts": "^5.36.1-next.8b30e05b0.0",
65
- "@wordpress/keycodes": "^4.36.1-next.8b30e05b0.0",
66
- "@wordpress/notices": "^5.36.1-next.8b30e05b0.0",
67
- "@wordpress/plugins": "^7.36.1-next.8b30e05b0.0",
68
- "@wordpress/preferences": "^4.36.1-next.8b30e05b0.0",
69
- "@wordpress/private-apis": "^1.36.1-next.8b30e05b0.0",
70
- "@wordpress/url": "^4.36.1-next.8b30e05b0.0",
71
- "@wordpress/viewport": "^6.36.1-next.8b30e05b0.0",
72
- "@wordpress/warning": "^3.36.1-next.8b30e05b0.0",
73
- "@wordpress/widgets": "^4.36.1-next.8b30e05b0.0",
52
+ "@wordpress/a11y": "^4.36.1-next.8fd3f8831.0",
53
+ "@wordpress/admin-ui": "^1.4.1-next.8fd3f8831.0",
54
+ "@wordpress/api-fetch": "^7.36.1-next.8fd3f8831.0",
55
+ "@wordpress/base-styles": "^6.12.1-next.8fd3f8831.0",
56
+ "@wordpress/block-editor": "^15.9.1-next.8fd3f8831.0",
57
+ "@wordpress/block-library": "^9.36.2-next.8fd3f8831.0",
58
+ "@wordpress/blocks": "^15.9.1-next.8fd3f8831.0",
59
+ "@wordpress/commands": "^1.36.1-next.8fd3f8831.0",
60
+ "@wordpress/components": "^31.0.1-next.8fd3f8831.0",
61
+ "@wordpress/compose": "^7.36.1-next.8fd3f8831.0",
62
+ "@wordpress/core-data": "^7.36.1-next.8fd3f8831.0",
63
+ "@wordpress/data": "^10.36.1-next.8fd3f8831.0",
64
+ "@wordpress/deprecated": "^4.36.1-next.8fd3f8831.0",
65
+ "@wordpress/dom": "^4.36.1-next.8fd3f8831.0",
66
+ "@wordpress/editor": "^14.36.1-next.8fd3f8831.0",
67
+ "@wordpress/element": "^6.36.1-next.8fd3f8831.0",
68
+ "@wordpress/global-styles-engine": "^1.3.1-next.8fd3f8831.0",
69
+ "@wordpress/hooks": "^4.36.1-next.8fd3f8831.0",
70
+ "@wordpress/html-entities": "^4.36.1-next.8fd3f8831.0",
71
+ "@wordpress/i18n": "^6.9.1-next.8fd3f8831.0",
72
+ "@wordpress/icons": "^11.3.1-next.8fd3f8831.0",
73
+ "@wordpress/keyboard-shortcuts": "^5.36.1-next.8fd3f8831.0",
74
+ "@wordpress/keycodes": "^4.36.1-next.8fd3f8831.0",
75
+ "@wordpress/notices": "^5.36.1-next.8fd3f8831.0",
76
+ "@wordpress/plugins": "^7.36.1-next.8fd3f8831.0",
77
+ "@wordpress/preferences": "^4.36.1-next.8fd3f8831.0",
78
+ "@wordpress/private-apis": "^1.36.1-next.8fd3f8831.0",
79
+ "@wordpress/url": "^4.36.1-next.8fd3f8831.0",
80
+ "@wordpress/viewport": "^6.36.1-next.8fd3f8831.0",
81
+ "@wordpress/warning": "^3.36.1-next.8fd3f8831.0",
82
+ "@wordpress/widgets": "^4.36.1-next.8fd3f8831.0",
74
83
  "clsx": "^2.1.1",
75
84
  "memize": "^2.1.0"
76
85
  },
@@ -81,5 +90,5 @@
81
90
  "publishConfig": {
82
91
  "access": "public"
83
92
  },
84
- "gitHead": "2466f6bc223f8be98c55e1ac7270e8c3e413eaaf"
93
+ "gitHead": "e582b351bc4c4b8734bb087f63a3beec9875c3c7"
85
94
  }
@@ -59,11 +59,9 @@ export default function InitPatternModal() {
59
59
  onChange={ setTitle }
60
60
  placeholder={ __( 'My pattern' ) }
61
61
  className="patterns-create-modal__name-input"
62
- __nextHasNoMarginBottom
63
62
  __next40pxDefaultSize
64
63
  />
65
64
  <ToggleControl
66
- __nextHasNoMarginBottom
67
65
  label={ _x( 'Synced', 'pattern (singular)' ) }
68
66
  help={ __(
69
67
  'Sync this pattern across multiple locations.'
@@ -412,6 +412,7 @@ function Layout( {
412
412
  currentPost: { postId: currentPostId, postType: currentPostType },
413
413
  onNavigateToEntityRecord,
414
414
  onNavigateToPreviousEntityRecord,
415
+ previousSelectedBlockPath,
415
416
  } = useNavigateToEntityRecord(
416
417
  initialPostId,
417
418
  initialPostType,
@@ -627,6 +628,7 @@ function Layout( {
627
628
  // eslint-disable-next-line jsx-a11y/no-autofocus
628
629
  autoFocus={ ! isWelcomeGuideVisible }
629
630
  onActionPerformed={ onActionPerformed }
631
+ initialSelection={ previousSelectedBlockPath }
630
632
  extraSidebarPanels={
631
633
  showMetaBoxes && <MetaBoxes location="side" />
632
634
  }
@@ -20,14 +20,14 @@
20
20
  font-size: 24px;
21
21
  line-height: 1.4;
22
22
  margin: $grid-unit-20 0 $grid-unit-20 0;
23
- padding: 0 $grid-unit-40;
23
+ padding: 0 $grid-unit-30;
24
24
  }
25
25
 
26
26
  &__text {
27
27
  font-size: $default-font-size;
28
28
  line-height: 1.4;
29
29
  margin: 0 0 $grid-unit-30 0;
30
- padding: 0 $grid-unit-40;
30
+ padding: 0 $grid-unit-30;
31
31
  }
32
32
 
33
33
  &__inserter-icon {
@@ -3,7 +3,14 @@
3
3
  */
4
4
  import { useCallback, useReducer } from '@wordpress/element';
5
5
  import { useSelect, useDispatch } from '@wordpress/data';
6
- import { store as editorStore } from '@wordpress/editor';
6
+ import { store as editorStore, privateApis } from '@wordpress/editor';
7
+
8
+ /**
9
+ * Internal dependencies
10
+ */
11
+ import { unlock } from '../lock-unlock';
12
+
13
+ const { useGenerateBlockPath } = unlock( privateApis );
7
14
 
8
15
  /**
9
16
  * A hook that records the 'entity' history in the post editor as a user
@@ -25,13 +32,24 @@ export default function useNavigateToEntityRecord(
25
32
  initialPostType,
26
33
  defaultRenderingMode
27
34
  ) {
35
+ const generateBlockPath = useGenerateBlockPath();
28
36
  const [ postHistory, dispatch ] = useReducer(
29
- ( historyState, { type, post, previousRenderingMode } ) => {
37
+ (
38
+ historyState,
39
+ { type, post, previousRenderingMode, selectedBlockPath }
40
+ ) => {
30
41
  if ( type === 'push' ) {
31
- return [ ...historyState, { post, previousRenderingMode } ];
42
+ // Update the current item with the selected block path before pushing new item
43
+ const updatedHistory = [ ...historyState ];
44
+ const currentIndex = updatedHistory.length - 1;
45
+ updatedHistory[ currentIndex ] = {
46
+ ...updatedHistory[ currentIndex ],
47
+ selectedBlockPath,
48
+ };
49
+ return [ ...updatedHistory, { post, previousRenderingMode } ];
32
50
  }
33
51
  if ( type === 'pop' ) {
34
- // Try to leave one item in the history.
52
+ // Remove the current item from history
35
53
  if ( historyState.length > 1 ) {
36
54
  return historyState.slice( 0, -1 );
37
55
  }
@@ -44,8 +62,7 @@ export default function useNavigateToEntityRecord(
44
62
  },
45
63
  ]
46
64
  );
47
-
48
- const { post, previousRenderingMode } =
65
+ const { post, previousRenderingMode, selectedBlockPath } =
49
66
  postHistory[ postHistory.length - 1 ];
50
67
 
51
68
  const { getRenderingMode } = useSelect( editorStore );
@@ -53,19 +70,32 @@ export default function useNavigateToEntityRecord(
53
70
 
54
71
  const onNavigateToEntityRecord = useCallback(
55
72
  ( params ) => {
73
+ // Generate block path from clientId if provided
74
+ const blockPath = params.selectedBlockClientId
75
+ ? generateBlockPath( params.selectedBlockClientId )
76
+ : null;
77
+
56
78
  dispatch( {
57
79
  type: 'push',
58
80
  post: { postId: params.postId, postType: params.postType },
59
81
  // Save the current rendering mode so we can restore it when navigating back.
60
82
  previousRenderingMode: getRenderingMode(),
83
+ selectedBlockPath: blockPath,
61
84
  } );
62
85
  setRenderingMode( defaultRenderingMode );
63
86
  },
64
- [ getRenderingMode, setRenderingMode, defaultRenderingMode ]
87
+ [
88
+ getRenderingMode,
89
+ setRenderingMode,
90
+ defaultRenderingMode,
91
+ generateBlockPath,
92
+ ]
65
93
  );
66
94
 
67
95
  const onNavigateToPreviousEntityRecord = useCallback( () => {
68
- dispatch( { type: 'pop' } );
96
+ dispatch( {
97
+ type: 'pop',
98
+ } );
69
99
  if ( previousRenderingMode ) {
70
100
  setRenderingMode( previousRenderingMode );
71
101
  }
@@ -78,5 +108,7 @@ export default function useNavigateToEntityRecord(
78
108
  postHistory.length > 1
79
109
  ? onNavigateToPreviousEntityRecord
80
110
  : undefined,
111
+ // Return the selected block path from the current history item
112
+ previousSelectedBlockPath: selectedBlockPath,
81
113
  };
82
114
  }
package/src/style.scss CHANGED
@@ -49,5 +49,3 @@ body.js.block-editor-page {
49
49
  height: auto;
50
50
  }
51
51
  }
52
-
53
- @include wordpress-admin-schemes();