@wordpress/edit-site 5.3.4 → 5.3.6

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 (178) hide show
  1. package/build/components/add-new-template/add-custom-template-modal.js +12 -3
  2. package/build/components/add-new-template/add-custom-template-modal.js.map +1 -1
  3. package/build/components/add-new-template/new-template-part.js +8 -7
  4. package/build/components/add-new-template/new-template-part.js.map +1 -1
  5. package/build/components/add-new-template/new-template.js +3 -6
  6. package/build/components/add-new-template/new-template.js.map +1 -1
  7. package/build/components/editor/index.js +3 -3
  8. package/build/components/editor/index.js.map +1 -1
  9. package/build/components/global-styles/screen-border.js +1 -1
  10. package/build/components/global-styles/screen-border.js.map +1 -1
  11. package/build/components/global-styles/screen-variations.js +1 -1
  12. package/build/components/global-styles/screen-variations.js.map +1 -1
  13. package/build/components/global-styles/shadow-panel.js +6 -4
  14. package/build/components/global-styles/shadow-panel.js.map +1 -1
  15. package/build/components/global-styles/ui.js +1 -1
  16. package/build/components/global-styles/ui.js.map +1 -1
  17. package/build/components/keyboard-shortcuts/edit-mode.js +124 -0
  18. package/build/components/keyboard-shortcuts/edit-mode.js.map +1 -0
  19. package/build/components/keyboard-shortcuts/global.js +48 -0
  20. package/build/components/keyboard-shortcuts/global.js.map +1 -0
  21. package/build/components/keyboard-shortcuts/register.js +153 -0
  22. package/build/components/keyboard-shortcuts/register.js.map +1 -0
  23. package/build/components/layout/index.js +5 -1
  24. package/build/components/layout/index.js.map +1 -1
  25. package/build/components/list/added-by.js +41 -42
  26. package/build/components/list/added-by.js.map +1 -1
  27. package/build/components/list/table.js +3 -2
  28. package/build/components/list/table.js.map +1 -1
  29. package/build/components/navigation-inspector/navigation-menu.js +4 -2
  30. package/build/components/navigation-inspector/navigation-menu.js.map +1 -1
  31. package/build/components/save-button/index.js +5 -2
  32. package/build/components/save-button/index.js.map +1 -1
  33. package/build/components/save-panel/index.js +11 -1
  34. package/build/components/save-panel/index.js.map +1 -1
  35. package/build/components/sidebar/index.js +28 -35
  36. package/build/components/sidebar/index.js.map +1 -1
  37. package/build/components/sidebar-button/index.js +30 -0
  38. package/build/components/sidebar-button/index.js.map +1 -0
  39. package/build/components/sidebar-edit-mode/global-styles-sidebar.js +8 -2
  40. package/build/components/sidebar-edit-mode/global-styles-sidebar.js.map +1 -1
  41. package/build/components/sidebar-navigation-screen/index.js +10 -10
  42. package/build/components/sidebar-navigation-screen/index.js.map +1 -1
  43. package/build/components/sidebar-navigation-screen-main/index.js +3 -3
  44. package/build/components/sidebar-navigation-screen-main/index.js.map +1 -1
  45. package/build/components/sidebar-navigation-screen-navigation-item/index.js +17 -16
  46. package/build/components/sidebar-navigation-screen-navigation-item/index.js.map +1 -1
  47. package/build/components/sidebar-navigation-screen-navigation-menus/index.js +1 -3
  48. package/build/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  49. package/build/components/sidebar-navigation-screen-template/index.js +9 -19
  50. package/build/components/sidebar-navigation-screen-template/index.js.map +1 -1
  51. package/build/components/sidebar-navigation-screen-templates/index.js +25 -15
  52. package/build/components/sidebar-navigation-screen-templates/index.js.map +1 -1
  53. package/build/components/sidebar-navigation-screen-templates-browse/index.js +8 -7
  54. package/build/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
  55. package/build/components/style-book/index.js +17 -2
  56. package/build/components/style-book/index.js.map +1 -1
  57. package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js +36 -34
  58. package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +1 -1
  59. package/build/components/sync-state-with-url/use-sync-path-with-url.js +65 -18
  60. package/build/components/sync-state-with-url/use-sync-path-with-url.js.map +1 -1
  61. package/build/components/template-details/index.js +7 -9
  62. package/build/components/template-details/index.js.map +1 -1
  63. package/build/index.js +10 -22
  64. package/build/index.js.map +1 -1
  65. package/build/utils/get-is-list-page.js +1 -1
  66. package/build/utils/get-is-list-page.js.map +1 -1
  67. package/build-module/components/add-new-template/add-custom-template-modal.js +13 -4
  68. package/build-module/components/add-new-template/add-custom-template-modal.js.map +1 -1
  69. package/build-module/components/add-new-template/new-template-part.js +8 -7
  70. package/build-module/components/add-new-template/new-template-part.js.map +1 -1
  71. package/build-module/components/add-new-template/new-template.js +3 -6
  72. package/build-module/components/add-new-template/new-template.js.map +1 -1
  73. package/build-module/components/editor/index.js +3 -3
  74. package/build-module/components/editor/index.js.map +1 -1
  75. package/build-module/components/global-styles/screen-border.js +1 -1
  76. package/build-module/components/global-styles/screen-border.js.map +1 -1
  77. package/build-module/components/global-styles/screen-variations.js +1 -1
  78. package/build-module/components/global-styles/screen-variations.js.map +1 -1
  79. package/build-module/components/global-styles/shadow-panel.js +6 -4
  80. package/build-module/components/global-styles/shadow-panel.js.map +1 -1
  81. package/build-module/components/global-styles/ui.js +1 -1
  82. package/build-module/components/global-styles/ui.js.map +1 -1
  83. package/build-module/components/keyboard-shortcuts/edit-mode.js +108 -0
  84. package/build-module/components/keyboard-shortcuts/edit-mode.js.map +1 -0
  85. package/build-module/components/keyboard-shortcuts/global.js +37 -0
  86. package/build-module/components/keyboard-shortcuts/global.js.map +1 -0
  87. package/build-module/components/keyboard-shortcuts/register.js +141 -0
  88. package/build-module/components/keyboard-shortcuts/register.js.map +1 -0
  89. package/build-module/components/layout/index.js +3 -1
  90. package/build-module/components/layout/index.js.map +1 -1
  91. package/build-module/components/list/added-by.js +43 -44
  92. package/build-module/components/list/added-by.js.map +1 -1
  93. package/build-module/components/list/table.js +3 -2
  94. package/build-module/components/list/table.js.map +1 -1
  95. package/build-module/components/navigation-inspector/navigation-menu.js +4 -2
  96. package/build-module/components/navigation-inspector/navigation-menu.js.map +1 -1
  97. package/build-module/components/save-button/index.js +5 -2
  98. package/build-module/components/save-button/index.js.map +1 -1
  99. package/build-module/components/save-panel/index.js +8 -1
  100. package/build-module/components/save-panel/index.js.map +1 -1
  101. package/build-module/components/sidebar/index.js +25 -35
  102. package/build-module/components/sidebar/index.js.map +1 -1
  103. package/build-module/components/sidebar-button/index.js +18 -0
  104. package/build-module/components/sidebar-button/index.js.map +1 -0
  105. package/build-module/components/sidebar-edit-mode/global-styles-sidebar.js +8 -2
  106. package/build-module/components/sidebar-edit-mode/global-styles-sidebar.js.map +1 -1
  107. package/build-module/components/sidebar-navigation-screen/index.js +8 -11
  108. package/build-module/components/sidebar-navigation-screen/index.js.map +1 -1
  109. package/build-module/components/sidebar-navigation-screen-main/index.js +3 -3
  110. package/build-module/components/sidebar-navigation-screen-main/index.js.map +1 -1
  111. package/build-module/components/sidebar-navigation-screen-navigation-item/index.js +16 -17
  112. package/build-module/components/sidebar-navigation-screen-navigation-item/index.js.map +1 -1
  113. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js +1 -3
  114. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  115. package/build-module/components/sidebar-navigation-screen-template/index.js +8 -18
  116. package/build-module/components/sidebar-navigation-screen-template/index.js.map +1 -1
  117. package/build-module/components/sidebar-navigation-screen-templates/index.js +23 -16
  118. package/build-module/components/sidebar-navigation-screen-templates/index.js.map +1 -1
  119. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js +7 -7
  120. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
  121. package/build-module/components/style-book/index.js +17 -3
  122. package/build-module/components/style-book/index.js.map +1 -1
  123. package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js +36 -34
  124. package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +1 -1
  125. package/build-module/components/sync-state-with-url/use-sync-path-with-url.js +63 -18
  126. package/build-module/components/sync-state-with-url/use-sync-path-with-url.js.map +1 -1
  127. package/build-module/components/template-details/index.js +7 -8
  128. package/build-module/components/template-details/index.js.map +1 -1
  129. package/build-module/index.js +12 -22
  130. package/build-module/index.js.map +1 -1
  131. package/build-module/utils/get-is-list-page.js +1 -1
  132. package/build-module/utils/get-is-list-page.js.map +1 -1
  133. package/build-style/style-rtl.css +41 -38
  134. package/build-style/style.css +41 -38
  135. package/package.json +21 -21
  136. package/src/components/add-new-template/add-custom-template-modal.js +14 -10
  137. package/src/components/add-new-template/new-template-part.js +7 -9
  138. package/src/components/add-new-template/new-template.js +3 -6
  139. package/src/components/add-new-template/style.scss +0 -5
  140. package/src/components/block-editor/style.scss +1 -1
  141. package/src/components/editor/index.js +4 -3
  142. package/src/components/editor/style.scss +0 -6
  143. package/src/components/global-styles/screen-border.js +1 -1
  144. package/src/components/global-styles/screen-variations.js +0 -1
  145. package/src/components/global-styles/shadow-panel.js +4 -3
  146. package/src/components/global-styles/ui.js +1 -1
  147. package/src/components/keyboard-shortcuts/edit-mode.js +116 -0
  148. package/src/components/keyboard-shortcuts/global.js +35 -0
  149. package/src/components/keyboard-shortcuts/register.js +157 -0
  150. package/src/components/layout/index.js +4 -0
  151. package/src/components/layout/style.scss +8 -1
  152. package/src/components/list/added-by.js +48 -55
  153. package/src/components/list/style.scss +5 -13
  154. package/src/components/list/table.js +4 -5
  155. package/src/components/navigation-inspector/navigation-menu.js +8 -2
  156. package/src/components/save-button/index.js +2 -2
  157. package/src/components/save-panel/index.js +8 -1
  158. package/src/components/sidebar/index.js +34 -29
  159. package/src/components/sidebar-button/index.js +21 -0
  160. package/src/components/sidebar-button/style.scss +23 -0
  161. package/src/components/sidebar-edit-mode/global-styles-sidebar.js +3 -7
  162. package/src/components/sidebar-edit-mode/style.scss +16 -0
  163. package/src/components/sidebar-navigation-screen/index.js +31 -38
  164. package/src/components/sidebar-navigation-screen/style.scss +1 -9
  165. package/src/components/sidebar-navigation-screen-main/index.js +3 -3
  166. package/src/components/sidebar-navigation-screen-navigation-item/index.js +24 -20
  167. package/src/components/sidebar-navigation-screen-navigation-menus/index.js +0 -2
  168. package/src/components/sidebar-navigation-screen-template/index.js +7 -19
  169. package/src/components/sidebar-navigation-screen-templates/index.js +22 -14
  170. package/src/components/sidebar-navigation-screen-templates/style.scss +0 -5
  171. package/src/components/sidebar-navigation-screen-templates-browse/index.js +6 -11
  172. package/src/components/style-book/index.js +25 -1
  173. package/src/components/sync-state-with-url/use-init-edited-entity-from-url.js +28 -23
  174. package/src/components/sync-state-with-url/use-sync-path-with-url.js +72 -17
  175. package/src/components/template-details/index.js +5 -6
  176. package/src/index.js +6 -21
  177. package/src/style.scss +1 -0
  178. package/src/utils/get-is-list-page.js +1 -1
@@ -413,15 +413,18 @@ body.is-fullscreen-mode .interface-interface-skeleton {
413
413
  }
414
414
  }
415
415
  .interface-interface-skeleton__actions:focus, .interface-interface-skeleton__actions:focus-within {
416
- top: 46px;
416
+ top: auto;
417
417
  bottom: 0;
418
418
  }
419
+ .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
420
+ top: 46px;
421
+ }
419
422
  @media (min-width: 782px) {
420
- .interface-interface-skeleton__actions:focus, .interface-interface-skeleton__actions:focus-within {
423
+ .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
421
424
  border-right: 1px solid #ddd;
422
425
  top: 32px;
423
426
  }
424
- .is-fullscreen-mode .interface-interface-skeleton__actions:focus, .is-fullscreen-mode .interface-interface-skeleton__actions:focus-within {
427
+ .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
425
428
  top: 0;
426
429
  }
427
430
  }
@@ -615,9 +618,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
615
618
  }
616
619
  }
617
620
 
618
- .edit-site-custom-template-modal__suggestions_list {
619
- margin-top: 16px;
620
- }
621
621
  @media (min-width: 600px) {
622
622
  .edit-site-custom-template-modal__suggestions_list {
623
623
  height: 232px;
@@ -668,8 +668,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
668
668
  border: 1px solid #ccc;
669
669
  border-radius: 2px;
670
670
  padding: 16px;
671
- margin-bottom: 0;
672
- margin-top: 16px;
673
671
  }
674
672
 
675
673
  @media (min-width: 782px) {
@@ -716,7 +714,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
716
714
  height: 100%;
717
715
  display: block;
718
716
  overflow: hidden;
719
- background-color: #2f2f2f;
717
+ background-color: #1e1e1e;
720
718
  align-items: center;
721
719
  /*
722
720
  Temporary to hide the contextual toolbar in view mode.
@@ -1527,7 +1525,6 @@ body.is-fullscreen-mode .edit-site-list-header {
1527
1525
  .edit-site-list-added-by__icon {
1528
1526
  display: flex;
1529
1527
  flex-shrink: 0;
1530
- position: relative;
1531
1528
  align-items: center;
1532
1529
  justify-content: center;
1533
1530
  width: 32px;
@@ -1538,17 +1535,6 @@ body.is-fullscreen-mode .edit-site-list-header {
1538
1535
  .edit-site-list-added-by__icon svg {
1539
1536
  fill: #fff;
1540
1537
  }
1541
- .edit-site-list-added-by__icon.is-customized::after {
1542
- position: absolute;
1543
- content: "";
1544
- background: var(--wp-admin-theme-color);
1545
- height: 8px;
1546
- width: 8px;
1547
- outline: 2px solid #fff;
1548
- border-radius: 100%;
1549
- top: -1px;
1550
- left: -1px;
1551
- }
1552
1538
 
1553
1539
  .edit-site-list-added-by__avatar {
1554
1540
  flex-shrink: 0;
@@ -1576,6 +1562,11 @@ body.is-fullscreen-mode .edit-site-list-header {
1576
1562
  opacity: 1;
1577
1563
  }
1578
1564
 
1565
+ .edit-site-list-added-by__customized-info {
1566
+ display: block;
1567
+ color: #757575;
1568
+ }
1569
+
1579
1570
  @keyframes loadingpulse {
1580
1571
  0% {
1581
1572
  opacity: 1;
@@ -1694,6 +1685,14 @@ body.is-fullscreen-mode .edit-site-list-header {
1694
1685
  margin: 0;
1695
1686
  }
1696
1687
 
1688
+ .show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg {
1689
+ display: none;
1690
+ }
1691
+ .show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon::after {
1692
+ content: attr(aria-label);
1693
+ font-size: 12px;
1694
+ }
1695
+
1697
1696
  .components-panel__header.edit-site-sidebar-edit-mode__panel-tabs {
1698
1697
  justify-content: flex-start;
1699
1698
  padding-right: 0;
@@ -1847,10 +1846,6 @@ h3.edit-site-template-card__template-areas-title {
1847
1846
  display: flex;
1848
1847
  justify-content: center;
1849
1848
  }
1850
- .edit-site-layout__actions:focus .edit-site-editor__toggle-save-panel, .edit-site-layout__actions:focus-within .edit-site-editor__toggle-save-panel {
1851
- top: auto;
1852
- bottom: 0;
1853
- }
1854
1849
 
1855
1850
  .edit-site .components-editor-notices__snackbar {
1856
1851
  position: fixed;
@@ -2323,9 +2318,12 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2323
2318
  background: #fff;
2324
2319
  }
2325
2320
  .edit-site-layout__actions:focus, .edit-site-layout__actions:focus-within {
2326
- top: 0;
2321
+ top: auto;
2327
2322
  bottom: 0;
2328
2323
  }
2324
+ .edit-site-layout__actions.is-entity-save-view-open:focus, .edit-site-layout__actions.is-entity-save-view-open:focus-within {
2325
+ top: 0;
2326
+ }
2329
2327
  @media (min-width: 782px) {
2330
2328
  .edit-site-layout__actions {
2331
2329
  border-right: 1px solid #ddd;
@@ -2380,6 +2378,22 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2380
2378
  padding: 0 12px;
2381
2379
  }
2382
2380
 
2381
+ .edit-site-sidebar-button {
2382
+ color: #e0e0e0;
2383
+ flex-shrink: 0;
2384
+ }
2385
+ .edit-site-sidebar-button:focus:not(:disabled) {
2386
+ box-shadow: none;
2387
+ outline: none;
2388
+ }
2389
+ .edit-site-sidebar-button:focus-visible:not(:disabled) {
2390
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
2391
+ outline: 3px solid transparent;
2392
+ }
2393
+ .edit-site-sidebar-button:hover, .edit-site-sidebar-button:focus-visible, .edit-site-sidebar-button:focus, .edit-site-sidebar-button:not([aria-disabled=true]):active {
2394
+ color: #fff;
2395
+ }
2396
+
2383
2397
  .edit-site-sidebar-navigation-item.components-item {
2384
2398
  color: #949494;
2385
2399
  border-width: 1.5px;
@@ -2438,29 +2452,18 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2438
2452
 
2439
2453
  .edit-site-sidebar-navigation-screen__title {
2440
2454
  font-size: calc(1.56 * 13px);
2455
+ line-height: normal;
2441
2456
  font-weight: 500;
2442
2457
  flex-grow: 1;
2443
2458
  color: #fff;
2444
2459
  margin: 0;
2445
2460
  }
2446
2461
 
2447
- .edit-site-sidebar-navigation-screen__back {
2448
- color: #e0e0e0;
2449
- }
2450
- .edit-site-sidebar-navigation-screen__back:hover, .edit-site-sidebar-navigation-screen__back:not([aria-disabled=true]):active {
2451
- color: #fff;
2452
- }
2453
-
2454
2462
  .edit-site-sidebar-navigation-screen-templates__see-all {
2455
2463
  /* Overrides the margin that comes from the Item component */
2456
2464
  margin-top: 16px !important;
2457
2465
  }
2458
2466
 
2459
- .edit-site-sidebar-navigation-screen-templates__add-button {
2460
- /* Overrides the color for all states of the button */
2461
- color: inherit !important;
2462
- }
2463
-
2464
2467
  .edit-site-site-hub {
2465
2468
  display: flex;
2466
2469
  align-items: center;
@@ -413,15 +413,18 @@ body.is-fullscreen-mode .interface-interface-skeleton {
413
413
  }
414
414
  }
415
415
  .interface-interface-skeleton__actions:focus, .interface-interface-skeleton__actions:focus-within {
416
- top: 46px;
416
+ top: auto;
417
417
  bottom: 0;
418
418
  }
419
+ .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
420
+ top: 46px;
421
+ }
419
422
  @media (min-width: 782px) {
420
- .interface-interface-skeleton__actions:focus, .interface-interface-skeleton__actions:focus-within {
423
+ .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
421
424
  border-left: 1px solid #ddd;
422
425
  top: 32px;
423
426
  }
424
- .is-fullscreen-mode .interface-interface-skeleton__actions:focus, .is-fullscreen-mode .interface-interface-skeleton__actions:focus-within {
427
+ .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
425
428
  top: 0;
426
429
  }
427
430
  }
@@ -615,9 +618,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
615
618
  }
616
619
  }
617
620
 
618
- .edit-site-custom-template-modal__suggestions_list {
619
- margin-top: 16px;
620
- }
621
621
  @media (min-width: 600px) {
622
622
  .edit-site-custom-template-modal__suggestions_list {
623
623
  height: 232px;
@@ -668,8 +668,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
668
668
  border: 1px solid #ccc;
669
669
  border-radius: 2px;
670
670
  padding: 16px;
671
- margin-bottom: 0;
672
- margin-top: 16px;
673
671
  }
674
672
 
675
673
  @media (min-width: 782px) {
@@ -716,7 +714,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
716
714
  height: 100%;
717
715
  display: block;
718
716
  overflow: hidden;
719
- background-color: #2f2f2f;
717
+ background-color: #1e1e1e;
720
718
  align-items: center;
721
719
  /*
722
720
  Temporary to hide the contextual toolbar in view mode.
@@ -1527,7 +1525,6 @@ body.is-fullscreen-mode .edit-site-list-header {
1527
1525
  .edit-site-list-added-by__icon {
1528
1526
  display: flex;
1529
1527
  flex-shrink: 0;
1530
- position: relative;
1531
1528
  align-items: center;
1532
1529
  justify-content: center;
1533
1530
  width: 32px;
@@ -1538,17 +1535,6 @@ body.is-fullscreen-mode .edit-site-list-header {
1538
1535
  .edit-site-list-added-by__icon svg {
1539
1536
  fill: #fff;
1540
1537
  }
1541
- .edit-site-list-added-by__icon.is-customized::after {
1542
- position: absolute;
1543
- content: "";
1544
- background: var(--wp-admin-theme-color);
1545
- height: 8px;
1546
- width: 8px;
1547
- outline: 2px solid #fff;
1548
- border-radius: 100%;
1549
- top: -1px;
1550
- right: -1px;
1551
- }
1552
1538
 
1553
1539
  .edit-site-list-added-by__avatar {
1554
1540
  flex-shrink: 0;
@@ -1576,6 +1562,11 @@ body.is-fullscreen-mode .edit-site-list-header {
1576
1562
  opacity: 1;
1577
1563
  }
1578
1564
 
1565
+ .edit-site-list-added-by__customized-info {
1566
+ display: block;
1567
+ color: #757575;
1568
+ }
1569
+
1579
1570
  @keyframes loadingpulse {
1580
1571
  0% {
1581
1572
  opacity: 1;
@@ -1694,6 +1685,14 @@ body.is-fullscreen-mode .edit-site-list-header {
1694
1685
  margin: 0;
1695
1686
  }
1696
1687
 
1688
+ .show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg {
1689
+ display: none;
1690
+ }
1691
+ .show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon::after {
1692
+ content: attr(aria-label);
1693
+ font-size: 12px;
1694
+ }
1695
+
1697
1696
  .components-panel__header.edit-site-sidebar-edit-mode__panel-tabs {
1698
1697
  justify-content: flex-start;
1699
1698
  padding-left: 0;
@@ -1847,10 +1846,6 @@ h3.edit-site-template-card__template-areas-title {
1847
1846
  display: flex;
1848
1847
  justify-content: center;
1849
1848
  }
1850
- .edit-site-layout__actions:focus .edit-site-editor__toggle-save-panel, .edit-site-layout__actions:focus-within .edit-site-editor__toggle-save-panel {
1851
- top: auto;
1852
- bottom: 0;
1853
- }
1854
1849
 
1855
1850
  .edit-site .components-editor-notices__snackbar {
1856
1851
  position: fixed;
@@ -2323,9 +2318,12 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2323
2318
  background: #fff;
2324
2319
  }
2325
2320
  .edit-site-layout__actions:focus, .edit-site-layout__actions:focus-within {
2326
- top: 0;
2321
+ top: auto;
2327
2322
  bottom: 0;
2328
2323
  }
2324
+ .edit-site-layout__actions.is-entity-save-view-open:focus, .edit-site-layout__actions.is-entity-save-view-open:focus-within {
2325
+ top: 0;
2326
+ }
2329
2327
  @media (min-width: 782px) {
2330
2328
  .edit-site-layout__actions {
2331
2329
  border-left: 1px solid #ddd;
@@ -2380,6 +2378,22 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2380
2378
  padding: 0 12px;
2381
2379
  }
2382
2380
 
2381
+ .edit-site-sidebar-button {
2382
+ color: #e0e0e0;
2383
+ flex-shrink: 0;
2384
+ }
2385
+ .edit-site-sidebar-button:focus:not(:disabled) {
2386
+ box-shadow: none;
2387
+ outline: none;
2388
+ }
2389
+ .edit-site-sidebar-button:focus-visible:not(:disabled) {
2390
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
2391
+ outline: 3px solid transparent;
2392
+ }
2393
+ .edit-site-sidebar-button:hover, .edit-site-sidebar-button:focus-visible, .edit-site-sidebar-button:focus, .edit-site-sidebar-button:not([aria-disabled=true]):active {
2394
+ color: #fff;
2395
+ }
2396
+
2383
2397
  .edit-site-sidebar-navigation-item.components-item {
2384
2398
  color: #949494;
2385
2399
  border-width: 1.5px;
@@ -2438,29 +2452,18 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2438
2452
 
2439
2453
  .edit-site-sidebar-navigation-screen__title {
2440
2454
  font-size: calc(1.56 * 13px);
2455
+ line-height: normal;
2441
2456
  font-weight: 500;
2442
2457
  flex-grow: 1;
2443
2458
  color: #fff;
2444
2459
  margin: 0;
2445
2460
  }
2446
2461
 
2447
- .edit-site-sidebar-navigation-screen__back {
2448
- color: #e0e0e0;
2449
- }
2450
- .edit-site-sidebar-navigation-screen__back:hover, .edit-site-sidebar-navigation-screen__back:not([aria-disabled=true]):active {
2451
- color: #fff;
2452
- }
2453
-
2454
2462
  .edit-site-sidebar-navigation-screen-templates__see-all {
2455
2463
  /* Overrides the margin that comes from the Item component */
2456
2464
  margin-top: 16px !important;
2457
2465
  }
2458
2466
 
2459
- .edit-site-sidebar-navigation-screen-templates__add-button {
2460
- /* Overrides the color for all states of the button */
2461
- color: inherit !important;
2462
- }
2463
-
2464
2467
  .edit-site-site-hub {
2465
2468
  display: flex;
2466
2469
  align-items: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "5.3.4",
3
+ "version": "5.3.6",
4
4
  "description": "Edit Site Page module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -29,33 +29,33 @@
29
29
  "@babel/runtime": "^7.16.0",
30
30
  "@wordpress/a11y": "^3.26.1",
31
31
  "@wordpress/api-fetch": "^6.23.1",
32
- "@wordpress/block-editor": "^11.3.4",
33
- "@wordpress/block-library": "^8.3.4",
34
- "@wordpress/blocks": "^12.3.2",
35
- "@wordpress/components": "^23.3.3",
36
- "@wordpress/compose": "^6.3.2",
37
- "@wordpress/core-data": "^6.3.2",
38
- "@wordpress/data": "^8.3.2",
32
+ "@wordpress/block-editor": "^11.3.6",
33
+ "@wordpress/block-library": "^8.3.6",
34
+ "@wordpress/blocks": "^12.3.3",
35
+ "@wordpress/components": "^23.3.5",
36
+ "@wordpress/compose": "^6.3.3",
37
+ "@wordpress/core-data": "^6.3.3",
38
+ "@wordpress/data": "^8.3.3",
39
39
  "@wordpress/deprecated": "^3.26.1",
40
- "@wordpress/editor": "^13.3.4",
41
- "@wordpress/element": "^5.3.1",
40
+ "@wordpress/editor": "^13.3.6",
41
+ "@wordpress/element": "^5.3.2",
42
42
  "@wordpress/hooks": "^3.26.1",
43
43
  "@wordpress/html-entities": "^3.26.1",
44
44
  "@wordpress/i18n": "^4.26.1",
45
- "@wordpress/icons": "^9.17.1",
46
- "@wordpress/interface": "^5.3.4",
47
- "@wordpress/keyboard-shortcuts": "^4.3.2",
45
+ "@wordpress/icons": "^9.17.2",
46
+ "@wordpress/interface": "^5.3.6",
47
+ "@wordpress/keyboard-shortcuts": "^4.3.3",
48
48
  "@wordpress/keycodes": "^3.26.2",
49
- "@wordpress/media-utils": "^4.17.1",
50
- "@wordpress/notices": "^3.26.2",
51
- "@wordpress/plugins": "^5.3.2",
52
- "@wordpress/preferences": "^3.3.3",
49
+ "@wordpress/media-utils": "^4.17.2",
50
+ "@wordpress/notices": "^3.26.3",
51
+ "@wordpress/plugins": "^5.3.3",
52
+ "@wordpress/preferences": "^3.3.5",
53
53
  "@wordpress/private-apis": "^0.8.1",
54
- "@wordpress/reusable-blocks": "^4.3.4",
54
+ "@wordpress/reusable-blocks": "^4.3.6",
55
55
  "@wordpress/style-engine": "^1.9.1",
56
56
  "@wordpress/url": "^3.27.1",
57
- "@wordpress/viewport": "^5.3.2",
58
- "@wordpress/widgets": "^3.3.4",
57
+ "@wordpress/viewport": "^5.3.3",
58
+ "@wordpress/widgets": "^3.3.6",
59
59
  "classnames": "^2.3.1",
60
60
  "colord": "^2.9.2",
61
61
  "downloadjs": "^1.4.7",
@@ -73,5 +73,5 @@
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "ccabeeffe1fe117c3934ec7705c15d52857d9a87"
76
+ "gitHead": "35f10c183655e9196d4ea12b8fa499a8ecbb7b6a"
77
77
  }
@@ -11,6 +11,7 @@ import {
11
11
  SearchControl,
12
12
  TextHighlight,
13
13
  __experimentalText as Text,
14
+ __experimentalVStack as VStack,
14
15
  __unstableComposite as Composite,
15
16
  __unstableUseCompositeState as useCompositeState,
16
17
  __unstableCompositeItem as CompositeItem,
@@ -158,9 +159,12 @@ function SuggestionList( { entityForSuggestions, onSelect } ) {
158
159
  </Composite>
159
160
  ) }
160
161
  { debouncedSearch && ! suggestions?.length && (
161
- <p className="edit-site-custom-template-modal__no-results">
162
+ <Text
163
+ as="p"
164
+ className="edit-site-custom-template-modal__no-results"
165
+ >
162
166
  { labels.not_found }
163
- </p>
167
+ </Text>
164
168
  ) }
165
169
  </>
166
170
  );
@@ -188,12 +192,12 @@ function AddCustomTemplateModal( {
188
192
  >
189
193
  { isCreatingTemplate && <TemplateActionsLoadingScreen /> }
190
194
  { ! showSearchEntities && (
191
- <>
192
- <p>
195
+ <VStack spacing={ 4 }>
196
+ <Text as="p">
193
197
  { __(
194
198
  'Select whether to create a single template for all items or a specific one.'
195
199
  ) }
196
- </p>
200
+ </Text>
197
201
  <Flex
198
202
  className={ `${ baseCssClass }__contents` }
199
203
  gap="4"
@@ -245,20 +249,20 @@ function AddCustomTemplateModal( {
245
249
  </Text>
246
250
  </FlexItem>
247
251
  </Flex>
248
- </>
252
+ </VStack>
249
253
  ) }
250
254
  { showSearchEntities && (
251
- <>
252
- <p>
255
+ <VStack spacing={ 4 }>
256
+ <Text as="p">
253
257
  { __(
254
258
  'This template will be used only for the specific item chosen.'
255
259
  ) }
256
- </p>
260
+ </Text>
257
261
  <SuggestionList
258
262
  entityForSuggestions={ entityForSuggestions }
259
263
  onSelect={ onSelect }
260
264
  />
261
- </>
265
+ </VStack>
262
266
  ) }
263
267
  </Modal>
264
268
  );
@@ -67,12 +67,9 @@ export default function NewTemplatePart( {
67
67
  setCanvasMode( 'edit' );
68
68
 
69
69
  // Navigate to the created template part editor.
70
- window.queueMicrotask( () => {
71
- history.push( {
72
- postId: templatePart.id,
73
- postType: 'wp_template_part',
74
- path: '/template-parts/single',
75
- } );
70
+ history.push( {
71
+ postId: templatePart.id,
72
+ postType: 'wp_template_part',
76
73
  } );
77
74
 
78
75
  // TODO: Add a success notice?
@@ -89,11 +86,12 @@ export default function NewTemplatePart( {
89
86
  setIsModalOpen( false );
90
87
  }
91
88
  }
89
+ const { as: Toggle = Button, ...restToggleProps } = toggleProps ?? {};
92
90
 
93
91
  return (
94
92
  <>
95
- <Button
96
- { ...toggleProps }
93
+ <Toggle
94
+ { ...restToggleProps }
97
95
  onClick={ () => {
98
96
  setIsModalOpen( true );
99
97
  } }
@@ -101,7 +99,7 @@ export default function NewTemplatePart( {
101
99
  label={ postType.labels.add_new }
102
100
  >
103
101
  { showIcon ? null : postType.labels.add_new }
104
- </Button>
102
+ </Toggle>
105
103
  { isModalOpen && (
106
104
  <CreateTemplatePartModal
107
105
  closeModal={ () => setIsModalOpen( false ) }
@@ -143,12 +143,9 @@ export default function NewTemplate( {
143
143
  setCanvasMode( 'edit' );
144
144
 
145
145
  // Navigate to the created template editor.
146
- window.queueMicrotask( () => {
147
- history.push( {
148
- postId: newTemplate.id,
149
- postType: newTemplate.type,
150
- path: '/templates/single',
151
- } );
146
+ history.push( {
147
+ postId: newTemplate.id,
148
+ postType: newTemplate.type,
152
149
  } );
153
150
 
154
151
  createSuccessNotice(
@@ -69,8 +69,6 @@
69
69
  }
70
70
 
71
71
  .edit-site-custom-template-modal__suggestions_list {
72
- margin-top: $grid-unit-20;
73
-
74
72
  @include break-small() {
75
73
  height: 232px;
76
74
  overflow: scroll;
@@ -130,11 +128,8 @@
130
128
  border: 1px solid $gray-400;
131
129
  border-radius: $radius-block-ui;
132
130
  padding: $grid-unit-20;
133
- margin-bottom: 0;
134
- margin-top: $grid-unit-20;
135
131
  }
136
132
 
137
-
138
133
  .edit-site-custom-generic-template__modal {
139
134
  .components-base-control {
140
135
  @include break-medium() {
@@ -17,7 +17,7 @@
17
17
  height: 100%;
18
18
  display: block;
19
19
  overflow: hidden;
20
- background-color: $gray-800;
20
+ background-color: $gray-900;
21
21
  // Centralize the editor horizontally (flex-direction is column).
22
22
  align-items: center;
23
23
 
@@ -25,7 +25,7 @@ import { __, sprintf } from '@wordpress/i18n';
25
25
  import { SidebarComplementaryAreaFills } from '../sidebar-edit-mode';
26
26
  import BlockEditor from '../block-editor';
27
27
  import CodeEditor from '../code-editor';
28
- import KeyboardShortcuts from '../keyboard-shortcuts';
28
+ import KeyboardShortcutsEditMode from '../keyboard-shortcuts/edit-mode';
29
29
  import InserterSidebar from '../secondary-sidebar/inserter-sidebar';
30
30
  import ListViewSidebar from '../secondary-sidebar/list-view-sidebar';
31
31
  import WelcomeGuide from '../welcome-guide';
@@ -150,7 +150,6 @@ export default function Editor() {
150
150
  return (
151
151
  <>
152
152
  { isEditMode && <WelcomeGuide /> }
153
- <KeyboardShortcuts.Register />
154
153
  <EntityProvider kind="root" type="site">
155
154
  <EntityProvider
156
155
  kind="postType"
@@ -186,7 +185,9 @@ export default function Editor() {
186
185
  ) }
187
186
  </Notice>
188
187
  ) }
189
- { isEditMode && <KeyboardShortcuts /> }
188
+ { isEditMode && (
189
+ <KeyboardShortcutsEditMode />
190
+ ) }
190
191
  </>
191
192
  }
192
193
  secondarySidebar={
@@ -6,12 +6,6 @@
6
6
  padding: $grid-unit-30;
7
7
  display: flex;
8
8
  justify-content: center;
9
-
10
- .edit-site-layout__actions:focus &,
11
- .edit-site-layout__actions:focus-within & {
12
- top: auto;
13
- bottom: 0;
14
- }
15
9
  }
16
10
 
17
11
  // Adjust the position of the notices
@@ -16,7 +16,7 @@ function ScreenBorder( { name, variation = '' } ) {
16
16
  const variationClassName = getVariationClassName( variation );
17
17
  return (
18
18
  <>
19
- <ScreenHeader title={ __( 'Border & Shadow' ) } />
19
+ <ScreenHeader title={ __( 'Border' ) } />
20
20
  <BlockPreviewPanel name={ name } variation={ variationClassName } />
21
21
  { hasBorderPanel && (
22
22
  <BorderPanel name={ name } variation={ variation } />
@@ -24,7 +24,6 @@ export function ScreenVariations( { name, path = '' } ) {
24
24
  return (
25
25
  <div className="edit-site-global-styles-screen-variations">
26
26
  <VStack spacing={ 3 }>
27
- <p>Manage style variations, saved block appearence presets.</p>
28
27
  <Subtitle>{ __( 'Style Variations' ) }</Subtitle>
29
28
  <VariationsPanel name={ name } />
30
29
  </VStack>
@@ -143,9 +143,9 @@ function ShadowPopoverContainer( { shadow, onShadowChange } ) {
143
143
  function ShadowPresets( { presets, activeShadow, onSelect } ) {
144
144
  return ! presets ? null : (
145
145
  <Grid columns={ 6 } gap={ 0 } align="center" justify="center">
146
- { presets.map( ( { name, shadow }, i ) => (
146
+ { presets.map( ( { name, slug, shadow } ) => (
147
147
  <ShadowIndicator
148
- key={ i }
148
+ key={ slug }
149
149
  label={ name }
150
150
  isActive={ shadow === activeShadow }
151
151
  onSelect={ () =>
@@ -164,8 +164,9 @@ function ShadowIndicator( { label, isActive, onSelect, shadow } ) {
164
164
  <Button
165
165
  className="edit-site-global-styles__shadow-indicator"
166
166
  onClick={ onSelect }
167
- aria-label={ label }
167
+ label={ label }
168
168
  style={ { boxShadow: shadow } }
169
+ showTooltip
169
170
  >
170
171
  { isActive && <Icon icon={ check } /> }
171
172
  </Button>
@@ -68,7 +68,7 @@ function GlobalStylesActionMenu() {
68
68
  <GlobalStylesMenuFill>
69
69
  <DropdownMenu
70
70
  icon={ moreVertical }
71
- label={ __( 'More Styles actions' ) }
71
+ label={ __( 'Styles actions' ) }
72
72
  controls={ [
73
73
  {
74
74
  title: __( 'Reset to defaults' ),