@wordpress/edit-site 6.6.0 → 6.7.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 (175) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/components/add-new-template/add-custom-template-modal-content.js +6 -7
  3. package/build/components/add-new-template/add-custom-template-modal-content.js.map +1 -1
  4. package/build/components/add-new-template/index.js +7 -10
  5. package/build/components/add-new-template/index.js.map +1 -1
  6. package/build/components/block-editor/use-site-editor-settings.js +0 -24
  7. package/build/components/block-editor/use-site-editor-settings.js.map +1 -1
  8. package/build/components/editor/index.js +6 -3
  9. package/build/components/editor/index.js.map +1 -1
  10. package/build/components/editor-canvas-container/index.js +4 -1
  11. package/build/components/editor-canvas-container/index.js.map +1 -1
  12. package/build/components/error-boundary/warning.js +4 -1
  13. package/build/components/error-boundary/warning.js.map +1 -1
  14. package/build/components/global-styles/font-library-modal/font-card.js +5 -2
  15. package/build/components/global-styles/font-library-modal/font-card.js.map +1 -1
  16. package/build/components/global-styles/font-library-modal/font-collection.js +27 -19
  17. package/build/components/global-styles/font-library-modal/font-collection.js.map +1 -1
  18. package/build/components/global-styles/font-library-modal/installed-fonts.js +21 -8
  19. package/build/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
  20. package/build/components/global-styles/font-library-modal/upload-fonts.js +4 -1
  21. package/build/components/global-styles/font-library-modal/upload-fonts.js.map +1 -1
  22. package/build/components/global-styles/font-sizes/font-size.js +10 -11
  23. package/build/components/global-styles/font-sizes/font-size.js.map +1 -1
  24. package/build/components/global-styles/font-sizes/font-sizes.js +4 -6
  25. package/build/components/global-styles/font-sizes/font-sizes.js.map +1 -1
  26. package/build/components/global-styles/header.js +1 -8
  27. package/build/components/global-styles/header.js.map +1 -1
  28. package/build/components/global-styles/navigation-button.js +1 -1
  29. package/build/components/global-styles/navigation-button.js.map +1 -1
  30. package/build/components/global-styles/palette.js +4 -1
  31. package/build/components/global-styles/palette.js.map +1 -1
  32. package/build/components/global-styles/preset-colors.js +1 -1
  33. package/build/components/global-styles/preset-colors.js.map +1 -1
  34. package/build/components/global-styles/screen-revisions/revisions-buttons.js +4 -1
  35. package/build/components/global-styles/screen-revisions/revisions-buttons.js.map +1 -1
  36. package/build/components/global-styles/shadows-edit-panel.js +20 -10
  37. package/build/components/global-styles/shadows-edit-panel.js.map +1 -1
  38. package/build/components/global-styles/typeset-button.js +5 -4
  39. package/build/components/global-styles/typeset-button.js.map +1 -1
  40. package/build/components/layout/index.js +1 -2
  41. package/build/components/layout/index.js.map +1 -1
  42. package/build/components/page-patterns/fields.js +5 -2
  43. package/build/components/page-patterns/fields.js.map +1 -1
  44. package/build/components/pagination/index.js +4 -4
  45. package/build/components/pagination/index.js.map +1 -1
  46. package/build/components/save-panel/index.js +4 -1
  47. package/build/components/save-panel/index.js.map +1 -1
  48. package/build/components/sidebar-button/index.js +4 -1
  49. package/build/components/sidebar-button/index.js.map +1 -1
  50. package/build/components/sidebar-dataviews/add-new-view.js +8 -2
  51. package/build/components/sidebar-dataviews/add-new-view.js.map +1 -1
  52. package/build/components/site-hub/index.js +30 -14
  53. package/build/components/site-hub/index.js.map +1 -1
  54. package/build/components/style-book/index.js +1 -5
  55. package/build/components/style-book/index.js.map +1 -1
  56. package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js +3 -4
  57. package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +1 -1
  58. package/build/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +12 -12
  59. package/build/components/sync-state-with-url/use-sync-canvas-mode-with-url.js.map +1 -1
  60. package/build/components/welcome-guide/template.js +20 -9
  61. package/build/components/welcome-guide/template.js.map +1 -1
  62. package/build/hooks/commands/use-common-commands.js +2 -4
  63. package/build/hooks/commands/use-common-commands.js.map +1 -1
  64. package/build-module/components/add-new-template/add-custom-template-modal-content.js +6 -7
  65. package/build-module/components/add-new-template/add-custom-template-modal-content.js.map +1 -1
  66. package/build-module/components/add-new-template/index.js +7 -10
  67. package/build-module/components/add-new-template/index.js.map +1 -1
  68. package/build-module/components/block-editor/use-site-editor-settings.js +0 -23
  69. package/build-module/components/block-editor/use-site-editor-settings.js.map +1 -1
  70. package/build-module/components/editor/index.js +6 -3
  71. package/build-module/components/editor/index.js.map +1 -1
  72. package/build-module/components/editor-canvas-container/index.js +4 -1
  73. package/build-module/components/editor-canvas-container/index.js.map +1 -1
  74. package/build-module/components/error-boundary/warning.js +4 -1
  75. package/build-module/components/error-boundary/warning.js.map +1 -1
  76. package/build-module/components/global-styles/font-library-modal/font-card.js +7 -4
  77. package/build-module/components/global-styles/font-library-modal/font-card.js.map +1 -1
  78. package/build-module/components/global-styles/font-library-modal/font-collection.js +29 -21
  79. package/build-module/components/global-styles/font-library-modal/font-collection.js.map +1 -1
  80. package/build-module/components/global-styles/font-library-modal/installed-fonts.js +24 -11
  81. package/build-module/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
  82. package/build-module/components/global-styles/font-library-modal/upload-fonts.js +4 -1
  83. package/build-module/components/global-styles/font-library-modal/upload-fonts.js.map +1 -1
  84. package/build-module/components/global-styles/font-sizes/font-size.js +15 -16
  85. package/build-module/components/global-styles/font-sizes/font-size.js.map +1 -1
  86. package/build-module/components/global-styles/font-sizes/font-sizes.js +4 -6
  87. package/build-module/components/global-styles/font-sizes/font-sizes.js.map +1 -1
  88. package/build-module/components/global-styles/header.js +2 -9
  89. package/build-module/components/global-styles/header.js.map +1 -1
  90. package/build-module/components/global-styles/navigation-button.js +2 -2
  91. package/build-module/components/global-styles/navigation-button.js.map +1 -1
  92. package/build-module/components/global-styles/palette.js +4 -1
  93. package/build-module/components/global-styles/palette.js.map +1 -1
  94. package/build-module/components/global-styles/preset-colors.js +1 -1
  95. package/build-module/components/global-styles/preset-colors.js.map +1 -1
  96. package/build-module/components/global-styles/screen-revisions/revisions-buttons.js +4 -1
  97. package/build-module/components/global-styles/screen-revisions/revisions-buttons.js.map +1 -1
  98. package/build-module/components/global-styles/shadows-edit-panel.js +20 -10
  99. package/build-module/components/global-styles/shadows-edit-panel.js.map +1 -1
  100. package/build-module/components/global-styles/typeset-button.js +6 -5
  101. package/build-module/components/global-styles/typeset-button.js.map +1 -1
  102. package/build-module/components/layout/index.js +1 -2
  103. package/build-module/components/layout/index.js.map +1 -1
  104. package/build-module/components/page-patterns/fields.js +5 -2
  105. package/build-module/components/page-patterns/fields.js.map +1 -1
  106. package/build-module/components/pagination/index.js +5 -5
  107. package/build-module/components/pagination/index.js.map +1 -1
  108. package/build-module/components/save-panel/index.js +4 -1
  109. package/build-module/components/save-panel/index.js.map +1 -1
  110. package/build-module/components/sidebar-button/index.js +4 -1
  111. package/build-module/components/sidebar-button/index.js.map +1 -1
  112. package/build-module/components/sidebar-dataviews/add-new-view.js +8 -2
  113. package/build-module/components/sidebar-dataviews/add-new-view.js.map +1 -1
  114. package/build-module/components/site-hub/index.js +30 -14
  115. package/build-module/components/site-hub/index.js.map +1 -1
  116. package/build-module/components/style-book/index.js +1 -5
  117. package/build-module/components/style-book/index.js.map +1 -1
  118. package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js +3 -4
  119. package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +1 -1
  120. package/build-module/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +12 -12
  121. package/build-module/components/sync-state-with-url/use-sync-canvas-mode-with-url.js.map +1 -1
  122. package/build-module/components/welcome-guide/template.js +19 -9
  123. package/build-module/components/welcome-guide/template.js.map +1 -1
  124. package/build-module/hooks/commands/use-common-commands.js +2 -4
  125. package/build-module/hooks/commands/use-common-commands.js.map +1 -1
  126. package/build-style/posts-rtl.css +90 -83
  127. package/build-style/posts.css +90 -83
  128. package/build-style/style-rtl.css +94 -99
  129. package/build-style/style.css +94 -99
  130. package/package.json +41 -41
  131. package/src/components/add-new-template/add-custom-template-modal-content.js +6 -7
  132. package/src/components/add-new-template/index.js +6 -8
  133. package/src/components/add-new-template/style.scss +1 -2
  134. package/src/components/block-editor/use-site-editor-settings.js +0 -18
  135. package/src/components/editor/index.js +4 -2
  136. package/src/components/editor-canvas-container/index.js +2 -0
  137. package/src/components/editor-canvas-container/style.scss +1 -1
  138. package/src/components/error-boundary/warning.js +6 -1
  139. package/src/components/global-styles/font-library-modal/font-card.js +5 -3
  140. package/src/components/global-styles/font-library-modal/font-collection.js +45 -27
  141. package/src/components/global-styles/font-library-modal/installed-fonts.js +36 -14
  142. package/src/components/global-styles/font-library-modal/upload-fonts.js +2 -0
  143. package/src/components/global-styles/font-sizes/font-size.js +18 -18
  144. package/src/components/global-styles/font-sizes/font-sizes.js +9 -11
  145. package/src/components/global-styles/header.js +2 -7
  146. package/src/components/global-styles/navigation-button.js +2 -4
  147. package/src/components/global-styles/palette.js +2 -0
  148. package/src/components/global-styles/preset-colors.js +1 -1
  149. package/src/components/global-styles/screen-revisions/revisions-buttons.js +2 -0
  150. package/src/components/global-styles/screen-revisions/style.scss +1 -1
  151. package/src/components/global-styles/shadows-edit-panel.js +23 -13
  152. package/src/components/global-styles/style.scss +5 -5
  153. package/src/components/global-styles/typeset-button.js +10 -3
  154. package/src/components/global-styles/variations/style.scss +1 -2
  155. package/src/components/layout/index.js +0 -2
  156. package/src/components/layout/style.scss +2 -24
  157. package/src/components/page/style.scss +5 -1
  158. package/src/components/page-patterns/fields.js +3 -1
  159. package/src/components/page-patterns/style.scss +2 -11
  160. package/src/components/page-templates/style.scss +1 -2
  161. package/src/components/pagination/index.js +5 -5
  162. package/src/components/post-list/style.scss +1 -1
  163. package/src/components/save-panel/index.js +2 -0
  164. package/src/components/sidebar-button/index.js +2 -0
  165. package/src/components/sidebar-dataviews/add-new-view.js +4 -0
  166. package/src/components/sidebar-dataviews/style.scss +1 -1
  167. package/src/components/sidebar-navigation-item/style.scss +0 -1
  168. package/src/components/sidebar-navigation-screen/style.scss +0 -1
  169. package/src/components/site-hub/index.js +18 -12
  170. package/src/components/style-book/index.js +1 -4
  171. package/src/components/style-book/style.scss +2 -2
  172. package/src/components/sync-state-with-url/use-init-edited-entity-from-url.js +3 -4
  173. package/src/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +15 -12
  174. package/src/components/welcome-guide/template.js +12 -18
  175. package/src/hooks/commands/use-common-commands.js +3 -5
@@ -117,6 +117,8 @@
117
117
  container: dataviews-wrapper/inline-size;
118
118
  display: flex;
119
119
  flex-direction: column;
120
+ font-size: 13px;
121
+ line-height: 1.4;
120
122
  }
121
123
 
122
124
  .dataviews__view-actions,
@@ -218,53 +220,16 @@
218
220
  padding-right: 24px;
219
221
  }
220
222
  }
221
- .dataviews-bulk-actions__modal {
222
- z-index: 1000001;
223
- }
224
-
225
- .dataviews-bulk-actions__edit-button.components-button {
226
- flex-shrink: 0;
223
+ .dataviews-bulk-actions-footer__item-count {
224
+ color: #1e1e1e;
225
+ font-weight: 500;
226
+ font-size: 11px;
227
+ text-transform: uppercase;
227
228
  }
228
229
 
229
- .dataviews-bulk-actions-toolbar {
230
- position: sticky;
231
- display: flex;
232
- flex-direction: column;
233
- align-content: center;
234
- flex-wrap: wrap;
235
- width: -moz-fit-content;
236
- width: fit-content;
237
- margin-left: auto;
230
+ .dataviews-bulk-actions-footer__container {
238
231
  margin-right: auto;
239
- bottom: 24px;
240
- z-index: 2;
241
- }
242
- .dataviews-bulk-actions-toolbar .components-accessible-toolbar {
243
- border-color: #ddd;
244
- box-shadow: 0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1);
245
- }
246
- .dataviews-bulk-actions-toolbar .components-accessible-toolbar .components-toolbar-group {
247
- border-color: #e0e0e0;
248
- }
249
- .dataviews-bulk-actions-toolbar .components-accessible-toolbar .components-toolbar-group:last-child {
250
- border: 0;
251
- }
252
- .dataviews-bulk-actions-toolbar .dataviews-bulk-actions-toolbar__selection-count {
253
- display: flex;
254
- align-items: center;
255
- margin: 0 8px 0 8px;
256
- }
257
-
258
- .dataviews-bulk-actions-toolbar__wrapper {
259
- display: flex;
260
- flex-grow: 1;
261
- width: 100%;
262
- }
263
- .dataviews-bulk-actions-toolbar__wrapper .components-toolbar-group {
264
- align-items: center;
265
- }
266
- .dataviews-bulk-actions-toolbar__wrapper .components-button.is-busy {
267
- max-height: 36px;
232
+ min-height: 32px;
268
233
  }
269
234
 
270
235
  .dataviews-filters__button {
@@ -282,11 +247,17 @@
282
247
  opacity: 1;
283
248
  }
284
249
 
250
+ .dataviews-filters__summary-popover {
251
+ font-size: 13px;
252
+ line-height: 1.4;
253
+ }
285
254
  .dataviews-filters__summary-popover .components-popover__content {
286
255
  width: 230px;
287
- padding: 0;
288
256
  border-radius: 4px;
289
257
  }
258
+ .dataviews-filters__summary-popover.components-dropdown__content .components-popover__content {
259
+ padding: 0;
260
+ }
290
261
 
291
262
  .dataviews-filters__summary-operators-container {
292
263
  padding: 8px 8px 0;
@@ -317,6 +288,7 @@
317
288
  position: relative;
318
289
  display: flex;
319
290
  align-items: center;
291
+ box-sizing: border-box;
320
292
  }
321
293
  .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset {
322
294
  padding-inline-end: 28px;
@@ -528,6 +500,7 @@
528
500
  font-size: 11px;
529
501
  outline: var(--wp-admin-border-width-focus) solid #fff;
530
502
  color: #fff;
503
+ box-sizing: border-box;
531
504
  }
532
505
 
533
506
  .dataviews-search {
@@ -535,7 +508,7 @@
535
508
  width: fit-content;
536
509
  }
537
510
 
538
- .dataviews-pagination {
511
+ .dataviews-footer {
539
512
  position: sticky;
540
513
  bottom: 0;
541
514
  left: 0;
@@ -544,14 +517,37 @@
544
517
  border-top: 1px solid #f0f0f0;
545
518
  flex-shrink: 0;
546
519
  transition: padding ease-out 0.1s;
520
+ z-index: 2;
547
521
  }
548
522
  @media (prefers-reduced-motion: reduce) {
549
- .dataviews-pagination {
523
+ .dataviews-footer {
550
524
  transition-duration: 0s;
551
525
  transition-delay: 0s;
552
526
  }
553
527
  }
554
528
 
529
+ /* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
530
+ @container (max-width: 430px) {
531
+ .dataviews-footer {
532
+ padding: 12px 24px;
533
+ }
534
+ }
535
+ /* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
536
+ @container (max-width: 560px) {
537
+ .dataviews-footer {
538
+ flex-direction: column !important;
539
+ }
540
+ .dataviews-footer .dataviews-bulk-actions-footer__container {
541
+ width: 100%;
542
+ }
543
+ .dataviews-footer .dataviews-bulk-actions-footer__item-count {
544
+ flex-grow: 1;
545
+ }
546
+ .dataviews-footer .dataviews-pagination {
547
+ width: 100%;
548
+ justify-content: space-between;
549
+ }
550
+ }
555
551
  .dataviews-pagination__page-select {
556
552
  font-size: 11px;
557
553
  font-weight: 500;
@@ -564,12 +560,6 @@
564
560
  }
565
561
  }
566
562
 
567
- /* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
568
- @container (max-width: 430px) {
569
- .dataviews-pagination {
570
- padding: 12px 24px;
571
- }
572
- }
573
563
  .dataviews-action-modal {
574
564
  z-index: 1000001;
575
565
  }
@@ -593,6 +583,8 @@
593
583
  /* stylelint-disable-next-line property-no-unknown -- the linter needs to be updated to accepted the container-type property */
594
584
  container-type: inline-size;
595
585
  padding: 16px;
586
+ font-size: 13px;
587
+ line-height: 1.4;
596
588
  }
597
589
 
598
590
  .dataviews-view-config__sort-direction .components-toggle-group-control-option-base {
@@ -620,6 +612,10 @@
620
612
  grid-column: span 4;
621
613
  }
622
614
 
615
+ .dataviews-settings-section:has(.dataviews-settings-section__content:empty) {
616
+ display: none;
617
+ }
618
+
623
619
  /* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
624
620
  @container (max-width: 500px) {
625
621
  .dataviews-settings-section.dataviews-settings-section {
@@ -632,6 +628,25 @@
632
628
  grid-column: span 2;
633
629
  }
634
630
  }
631
+ .dataviews-field-control__field {
632
+ height: 32px;
633
+ }
634
+
635
+ .dataviews-field-control__actions {
636
+ position: absolute;
637
+ top: -9999em;
638
+ }
639
+
640
+ .dataviews-field-control__actions.dataviews-field-control__actions {
641
+ gap: 4px;
642
+ }
643
+
644
+ .dataviews-field-control__field:hover .dataviews-field-control__actions,
645
+ .dataviews-field-control__field:focus-within .dataviews-field-control__actions {
646
+ position: unset;
647
+ top: unset;
648
+ }
649
+
635
650
  .dataviews-view-grid {
636
651
  margin-bottom: auto;
637
652
  grid-template-rows: max-content;
@@ -781,6 +796,10 @@
781
796
  top: 8px;
782
797
  }
783
798
 
799
+ ul.dataviews-view-list {
800
+ list-style-type: none;
801
+ }
802
+
784
803
  .dataviews-view-list {
785
804
  margin: 0 0 auto;
786
805
  }
@@ -834,12 +853,13 @@
834
853
  .dataviews-view-list li:not(.is-selected) .dataviews-view-list__primary-field {
835
854
  color: #1e1e1e;
836
855
  }
837
- .dataviews-view-list li:not(.is-selected):hover, .dataviews-view-list li:not(.is-selected):focus-within {
856
+ .dataviews-view-list li:not(.is-selected):hover, .dataviews-view-list li:not(.is-selected).is-hovered, .dataviews-view-list li:not(.is-selected):focus-within {
838
857
  color: var(--wp-admin-theme-color);
839
858
  background-color: #f8f8f8;
840
859
  }
841
860
  .dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__primary-field,
842
- .dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields, .dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__primary-field,
861
+ .dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields, .dataviews-view-list li:not(.is-selected).is-hovered .dataviews-view-list__primary-field,
862
+ .dataviews-view-list li:not(.is-selected).is-hovered .dataviews-view-list__fields, .dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__primary-field,
843
863
  .dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__fields {
844
864
  color: var(--wp-admin-theme-color);
845
865
  }
@@ -855,6 +875,7 @@
855
875
  color: var(--wp-admin-theme-color);
856
876
  }
857
877
  .dataviews-view-list .dataviews-view-list__item {
878
+ box-sizing: border-box;
858
879
  padding: 16px 24px;
859
880
  width: 100%;
860
881
  scroll-margin: 8px 0;
@@ -862,7 +883,7 @@
862
883
  .dataviews-view-list .dataviews-view-list__item:focus-visible::before {
863
884
  position: absolute;
864
885
  content: "";
865
- top: calc(var(--wp-admin-border-width-focus) + 1px);
886
+ top: var(--wp-admin-border-width-focus);
866
887
  right: var(--wp-admin-border-width-focus);
867
888
  bottom: var(--wp-admin-border-width-focus);
868
889
  left: var(--wp-admin-border-width-focus);
@@ -899,8 +920,8 @@
899
920
  border-radius: 4px;
900
921
  }
901
922
  .dataviews-view-list .dataviews-view-list__media-placeholder {
902
- min-width: 32px;
903
- height: 32px;
923
+ width: 52px;
924
+ height: 52px;
904
925
  background-color: #e0e0e0;
905
926
  }
906
927
  .dataviews-view-list .dataviews-view-list__field-wrapper {
@@ -939,11 +960,6 @@
939
960
  color: #757575;
940
961
  margin-bottom: auto;
941
962
  }
942
- .dataviews-view-table a {
943
- text-decoration: none;
944
- color: #1e1e1e;
945
- font-weight: 500;
946
- }
947
963
  .dataviews-view-table th {
948
964
  text-align: left;
949
965
  color: #1e1e1e;
@@ -1268,7 +1284,6 @@
1268
1284
  .edit-site-custom-template-modal__contents > .components-button,
1269
1285
  .edit-site-add-new-template__template-list__contents > .components-button {
1270
1286
  padding: 32px;
1271
- border-radius: 2px;
1272
1287
  display: flex;
1273
1288
  flex-direction: column;
1274
1289
  border: 1px solid #ddd;
@@ -1399,7 +1414,7 @@
1399
1414
  display: flex !important;
1400
1415
  align-items: center;
1401
1416
  justify-content: center;
1402
- border-radius: 2px;
1417
+ border-radius: 1px;
1403
1418
  }
1404
1419
 
1405
1420
  .edit-site-global-styles-screen-typography__font-variants-count {
@@ -1464,14 +1479,14 @@
1464
1479
  position: relative;
1465
1480
  width: 100%;
1466
1481
  border: #e0e0e0 1px solid;
1467
- border-radius: 2px;
1482
+ border-radius: 4px;
1468
1483
  overflow: hidden;
1469
1484
  }
1470
1485
 
1471
1486
  .edit-site-global-styles__shadow-preview-panel {
1472
1487
  height: 144px;
1473
1488
  border: #e0e0e0 1px solid;
1474
- border-radius: 2px;
1489
+ border-radius: 4px;
1475
1490
  overflow: auto;
1476
1491
  background-image: repeating-linear-gradient(45deg, #f5f5f5 25%, #0000 0, #0000 75%, #f5f5f5 0, #f5f5f5), repeating-linear-gradient(45deg, #f5f5f5 25%, #0000 0, #0000 75%, #f5f5f5 0, #f5f5f5);
1477
1492
  background-position: 0 0, 8px 8px;
@@ -1817,7 +1832,7 @@
1817
1832
  .edit-site-page {
1818
1833
  color: #2f2f2f;
1819
1834
  background: #fff;
1820
- height: 100%;
1835
+ height: calc(100% - 60px);
1821
1836
  /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
1822
1837
  container: edit-site-page/inline-size;
1823
1838
  transition: width ease-out 0.2s;
@@ -1828,6 +1843,11 @@
1828
1843
  transition-delay: 0s;
1829
1844
  }
1830
1845
  }
1846
+ @media (min-width: 782px) {
1847
+ .edit-site-page {
1848
+ height: 100%;
1849
+ }
1850
+ }
1831
1851
 
1832
1852
  .edit-site-page-header {
1833
1853
  padding: 16px 48px;
@@ -1886,10 +1906,6 @@
1886
1906
  .dataviews-view-table .page-patterns-preview-field {
1887
1907
  width: 96px;
1888
1908
  flex-grow: 0;
1889
- border-radius: 2px;
1890
- }
1891
- .dataviews-view-table .page-patterns-preview-field .page-patterns-preview-field__button {
1892
- border-radius: 2px;
1893
1909
  }
1894
1910
  .page-patterns-preview-field .page-patterns-preview-field__button {
1895
1911
  box-shadow: none;
@@ -1974,9 +1990,6 @@
1974
1990
  fill: currentcolor;
1975
1991
  }
1976
1992
 
1977
- .edit-site-page-patterns-dataviews .dataviews-pagination {
1978
- z-index: 2;
1979
- }
1980
1993
  .edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.edit-site-patterns__field-sync-status-fully) {
1981
1994
  background: rgba(var(--wp-block-synced-color--rgb), 0.04);
1982
1995
  color: var(--wp-block-synced-color);
@@ -2045,7 +2058,6 @@
2045
2058
  height: 100%;
2046
2059
  }
2047
2060
  .dataviews-view-table .page-templates-preview-field {
2048
- border-radius: 2px;
2049
2061
  position: relative;
2050
2062
  width: 120px;
2051
2063
  max-height: 160px;
@@ -2058,7 +2070,7 @@
2058
2070
  width: 100%;
2059
2071
  height: 100%;
2060
2072
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
2061
- border-radius: 2px;
2073
+ border-radius: 4px;
2062
2074
  }
2063
2075
 
2064
2076
  .page-templates-description {
@@ -2485,20 +2497,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2485
2497
  padding-right: 16px;
2486
2498
  }
2487
2499
 
2488
- .edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus-visible, .edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus {
2489
- box-shadow: none;
2490
- outline: none;
2491
- outline-offset: 0;
2492
- }
2493
- .edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus-visible .edit-site-site-icon svg, .edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus .edit-site-site-icon svg {
2494
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color, #3858e9);
2495
- outline: 3px solid #0000;
2496
- height: 40px;
2497
- width: 40px;
2498
- padding: 2px;
2499
- border-radius: 2px;
2500
- }
2501
-
2502
2500
  .edit-site-save-hub {
2503
2501
  color: #949494;
2504
2502
  border-top: 1px solid #2f2f2f;
@@ -2535,7 +2533,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2535
2533
  contain: content;
2536
2534
  }
2537
2535
 
2538
- @keyframes _tghql_slide-from-right {
2536
+ @keyframes _b0fs7_slide-from-right {
2539
2537
  from {
2540
2538
  transform: translateX(50px);
2541
2539
  opacity: 0;
@@ -2545,7 +2543,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2545
2543
  opacity: 1;
2546
2544
  }
2547
2545
  }
2548
- @keyframes _tghql_slide-from-left {
2546
+ @keyframes _b0fs7_slide-from-left {
2549
2547
  from {
2550
2548
  transform: translateX(-50px);
2551
2549
  opacity: 0;
@@ -2601,10 +2599,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2601
2599
  }
2602
2600
  }
2603
2601
  .edit-site-sidebar__screen-wrapper.slide-from-left {
2604
- animation-name: _tghql_slide-from-left;
2602
+ animation-name: _b0fs7_slide-from-left;
2605
2603
  }
2606
2604
  .edit-site-sidebar__screen-wrapper.slide-from-right {
2607
- animation-name: _tghql_slide-from-right;
2605
+ animation-name: _b0fs7_slide-from-right;
2608
2606
  }
2609
2607
 
2610
2608
  .edit-site-sidebar-button {
@@ -2628,7 +2626,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2628
2626
  padding: 8px 6px 8px 16px;
2629
2627
  border: none;
2630
2628
  min-height: 40px;
2631
- border-radius: 2px;
2632
2629
  }
2633
2630
  .edit-site-sidebar-navigation-item.components-item:hover, .edit-site-sidebar-navigation-item.components-item:focus, .edit-site-sidebar-navigation-item.components-item[aria-current] {
2634
2631
  color: #e0e0e0;
@@ -2777,7 +2774,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2777
2774
  .edit-site-sidebar-navigation-screen__input-control .components-input-control__input {
2778
2775
  color: #e0e0e0 !important;
2779
2776
  background: #2f2f2f !important;
2780
- border-radius: 2px;
2781
2777
  }
2782
2778
  .edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop {
2783
2779
  border: 4px !important;
@@ -3047,7 +3043,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
3047
3043
 
3048
3044
  .edit-site-editor-canvas-container__section {
3049
3045
  background: #fff;
3050
- border-radius: 2px;
3046
+ border-radius: 8px;
3051
3047
  bottom: 0;
3052
3048
  left: 0;
3053
3049
  overflow: hidden;
@@ -3397,7 +3393,6 @@ button.font-library-modal__upload-area {
3397
3393
 
3398
3394
  .edit-site-global-styles-variations_item {
3399
3395
  box-sizing: border-box;
3400
- border-radius: 2px;
3401
3396
  cursor: pointer;
3402
3397
  }
3403
3398
  .edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "6.6.0",
3
+ "version": "6.7.0",
4
4
  "description": "Edit Site Page module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -29,45 +29,45 @@
29
29
  "dependencies": {
30
30
  "@babel/runtime": "^7.16.0",
31
31
  "@react-spring/web": "^9.4.5",
32
- "@wordpress/a11y": "^4.6.0",
33
- "@wordpress/api-fetch": "^7.6.0",
34
- "@wordpress/blob": "^4.6.0",
35
- "@wordpress/block-editor": "^14.1.0",
36
- "@wordpress/block-library": "^9.6.0",
37
- "@wordpress/blocks": "^13.6.0",
38
- "@wordpress/commands": "^1.6.0",
39
- "@wordpress/components": "^28.6.0",
40
- "@wordpress/compose": "^7.6.0",
41
- "@wordpress/core-commands": "^1.6.0",
42
- "@wordpress/core-data": "^7.6.0",
43
- "@wordpress/data": "^10.6.0",
44
- "@wordpress/dataviews": "^4.2.0",
45
- "@wordpress/date": "^5.6.0",
46
- "@wordpress/deprecated": "^4.6.0",
47
- "@wordpress/dom": "^4.6.0",
48
- "@wordpress/editor": "^14.6.0",
49
- "@wordpress/element": "^6.6.0",
50
- "@wordpress/escape-html": "^3.6.0",
51
- "@wordpress/hooks": "^4.6.0",
52
- "@wordpress/html-entities": "^4.6.0",
53
- "@wordpress/i18n": "^5.6.0",
54
- "@wordpress/icons": "^10.6.0",
55
- "@wordpress/keyboard-shortcuts": "^5.6.0",
56
- "@wordpress/keycodes": "^4.6.0",
57
- "@wordpress/notices": "^5.6.0",
58
- "@wordpress/patterns": "^2.6.0",
59
- "@wordpress/plugins": "^7.6.0",
60
- "@wordpress/preferences": "^4.6.0",
61
- "@wordpress/primitives": "^4.6.0",
62
- "@wordpress/priority-queue": "^3.6.0",
63
- "@wordpress/private-apis": "^1.6.0",
64
- "@wordpress/reusable-blocks": "^5.6.0",
65
- "@wordpress/router": "^1.6.0",
66
- "@wordpress/style-engine": "^2.6.0",
67
- "@wordpress/url": "^4.6.0",
68
- "@wordpress/viewport": "^6.6.0",
69
- "@wordpress/widgets": "^4.6.0",
70
- "@wordpress/wordcount": "^4.6.0",
32
+ "@wordpress/a11y": "^4.7.0",
33
+ "@wordpress/api-fetch": "^7.7.0",
34
+ "@wordpress/blob": "^4.7.0",
35
+ "@wordpress/block-editor": "^14.2.0",
36
+ "@wordpress/block-library": "^9.7.0",
37
+ "@wordpress/blocks": "^13.7.0",
38
+ "@wordpress/commands": "^1.7.0",
39
+ "@wordpress/components": "^28.7.0",
40
+ "@wordpress/compose": "^7.7.0",
41
+ "@wordpress/core-commands": "^1.7.0",
42
+ "@wordpress/core-data": "^7.7.0",
43
+ "@wordpress/data": "^10.7.0",
44
+ "@wordpress/dataviews": "^4.3.0",
45
+ "@wordpress/date": "^5.7.0",
46
+ "@wordpress/deprecated": "^4.7.0",
47
+ "@wordpress/dom": "^4.7.0",
48
+ "@wordpress/editor": "^14.7.0",
49
+ "@wordpress/element": "^6.7.0",
50
+ "@wordpress/escape-html": "^3.7.0",
51
+ "@wordpress/hooks": "^4.7.0",
52
+ "@wordpress/html-entities": "^4.7.0",
53
+ "@wordpress/i18n": "^5.7.0",
54
+ "@wordpress/icons": "^10.7.0",
55
+ "@wordpress/keyboard-shortcuts": "^5.7.0",
56
+ "@wordpress/keycodes": "^4.7.0",
57
+ "@wordpress/notices": "^5.7.0",
58
+ "@wordpress/patterns": "^2.7.0",
59
+ "@wordpress/plugins": "^7.7.0",
60
+ "@wordpress/preferences": "^4.7.0",
61
+ "@wordpress/primitives": "^4.7.0",
62
+ "@wordpress/priority-queue": "^3.7.0",
63
+ "@wordpress/private-apis": "^1.7.0",
64
+ "@wordpress/reusable-blocks": "^5.7.0",
65
+ "@wordpress/router": "^1.7.0",
66
+ "@wordpress/style-engine": "^2.7.0",
67
+ "@wordpress/url": "^4.7.0",
68
+ "@wordpress/viewport": "^6.7.0",
69
+ "@wordpress/widgets": "^4.7.0",
70
+ "@wordpress/wordcount": "^4.7.0",
71
71
  "change-case": "^4.1.2",
72
72
  "clsx": "^2.1.1",
73
73
  "colord": "^2.9.2",
@@ -82,5 +82,5 @@
82
82
  "publishConfig": {
83
83
  "access": "public"
84
84
  },
85
- "gitHead": "ab9564947967bb3f00343130954b9efacba6cdd7"
85
+ "gitHead": "c90d920de07c53dff82c5914635b56fafa503b7f"
86
86
  }
@@ -23,11 +23,9 @@ import { useDebouncedInput } from '@wordpress/compose';
23
23
  import { unlock } from '../../lock-unlock';
24
24
  import { mapToIHasNameAndId } from './utils';
25
25
 
26
- const {
27
- CompositeV2: Composite,
28
- CompositeItemV2: CompositeItem,
29
- useCompositeStoreV2: useCompositeStore,
30
- } = unlock( componentsPrivateApis );
26
+ const { CompositeV2: Composite, CompositeItemV2: CompositeItem } = unlock(
27
+ componentsPrivateApis
28
+ );
31
29
 
32
30
  const EMPTY_ARRAY = [];
33
31
 
@@ -43,6 +41,8 @@ function SuggestionListItem( {
43
41
  <CompositeItem
44
42
  render={
45
43
  <Button
44
+ // TODO: Switch to `true` (40px size) if possible
45
+ __next40pxDefaultSize={ false }
46
46
  role="option"
47
47
  className={ baseCssClass }
48
48
  onClick={ () =>
@@ -120,7 +120,6 @@ function useSearchSuggestions( entityForSuggestions, search ) {
120
120
  }
121
121
 
122
122
  function SuggestionList( { entityForSuggestions, onSelect } ) {
123
- const composite = useCompositeStore( { orientation: 'vertical' } );
124
123
  const [ search, setSearch, debouncedSearch ] = useDebouncedInput();
125
124
  const suggestions = useSearchSuggestions(
126
125
  entityForSuggestions,
@@ -144,7 +143,7 @@ function SuggestionList( { entityForSuggestions, onSelect } ) {
144
143
  ) }
145
144
  { !! suggestions?.length && (
146
145
  <Composite
147
- store={ composite }
146
+ orientation="vertical"
148
147
  role="listbox"
149
148
  className="edit-site-custom-template-modal__suggestions_list"
150
149
  aria-label={ __( 'Suggestions list' ) }
@@ -107,6 +107,8 @@ function TemplateListItem( {
107
107
  } ) {
108
108
  return (
109
109
  <Button
110
+ // TODO: Switch to `true` (40px size) if possible
111
+ __next40pxDefaultSize={ false }
110
112
  className={ className }
111
113
  onClick={ onClick }
112
114
  label={ description }
@@ -164,14 +166,10 @@ function NewTemplateModal( { onClose } ) {
164
166
 
165
167
  const isMobile = useViewportMatch( 'medium', '<' );
166
168
 
167
- const { homeUrl } = useSelect( ( select ) => {
168
- const {
169
- getUnstableBase, // Site index.
170
- } = select( coreStore );
171
-
172
- return {
173
- homeUrl: getUnstableBase()?.home,
174
- };
169
+ const homeUrl = useSelect( ( select ) => {
170
+ // Site index.
171
+ return select( coreStore ).getEntityRecord( 'root', '__unstableBase' )
172
+ ?.home;
175
173
  }, [] );
176
174
 
177
175
  const TEMPLATE_SHORT_DESCRIPTIONS = {
@@ -82,7 +82,7 @@
82
82
 
83
83
  .edit-site-custom-template-modal__no-results {
84
84
  border: $border-width solid $gray-400;
85
- border-radius: $radius-block-ui;
85
+ border-radius: $radius-small;
86
86
  padding: $grid-unit-20;
87
87
  }
88
88
 
@@ -132,7 +132,6 @@
132
132
  .edit-site-add-new-template__template-list__contents {
133
133
  > .components-button {
134
134
  padding: $grid-unit-40;
135
- border-radius: $radius-block-ui;
136
135
  display: flex;
137
136
  flex-direction: column;
138
137
  border: $border-width solid $gray-300;
@@ -3,7 +3,6 @@
3
3
  */
4
4
  import { useSelect } from '@wordpress/data';
5
5
  import { useMemo } from '@wordpress/element';
6
- import { privateApis as editorPrivateApis } from '@wordpress/editor';
7
6
  import { privateApis as routerPrivateApis } from '@wordpress/router';
8
7
  import { usePrevious } from '@wordpress/compose';
9
8
 
@@ -15,7 +14,6 @@ import { unlock } from '../../lock-unlock';
15
14
  import useNavigateToEntityRecord from './use-navigate-to-entity-record';
16
15
  import { FOCUSABLE_ENTITIES } from '../../utils/constants';
17
16
 
18
- const { useBlockEditorSettings } = unlock( editorPrivateApis );
19
17
  const { useLocation, useHistory } = unlock( routerPrivateApis );
20
18
 
21
19
  function useNavigateToPreviousEntityRecord() {
@@ -83,19 +81,3 @@ export function useSpecificEditorSettings() {
83
81
 
84
82
  return defaultEditorSettings;
85
83
  }
86
-
87
- export default function useSiteEditorSettings() {
88
- const defaultEditorSettings = useSpecificEditorSettings();
89
- const { postType, postId } = useSelect( ( select ) => {
90
- const { getEditedPostType, getEditedPostId } = unlock(
91
- select( editSiteStore )
92
- );
93
- const usedPostType = getEditedPostType();
94
- const usedPostId = getEditedPostId();
95
- return {
96
- postType: usedPostType,
97
- postId: usedPostId,
98
- };
99
- }, [] );
100
- return useBlockEditorSettings( defaultEditorSettings, postType, postId );
101
- }
@@ -66,13 +66,13 @@ const toggleHomeIconVariants = {
66
66
 
67
67
  const siteIconVariants = {
68
68
  edit: {
69
- clipPath: 'inset(0% round 0)',
69
+ clipPath: 'inset(0% round 0px)',
70
70
  },
71
71
  hover: {
72
72
  clipPath: 'inset( 22% round 2px )',
73
73
  },
74
74
  tap: {
75
- clipPath: 'inset(0% round 0)',
75
+ clipPath: 'inset(0% round 0px)',
76
76
  },
77
77
  };
78
78
 
@@ -258,6 +258,8 @@ export default function EditSiteEditor( { isPostsList = false } ) {
258
258
  whileTap="tap"
259
259
  >
260
260
  <Button
261
+ // TODO: Switch to `true` (40px size) if possible
262
+ __next40pxDefaultSize={ false }
261
263
  label={ __( 'Open Navigation' ) }
262
264
  showTooltip
263
265
  tooltipPosition="middle right"