@wordpress/edit-site 5.12.1 → 5.12.2

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 (153) hide show
  1. package/build/components/add-new-pattern/index.js +9 -9
  2. package/build/components/add-new-pattern/index.js.map +1 -1
  3. package/build/components/add-new-template/new-template.js +69 -14
  4. package/build/components/add-new-template/new-template.js.map +1 -1
  5. package/build/components/create-pattern-modal/index.js +1 -1
  6. package/build/components/create-pattern-modal/index.js.map +1 -1
  7. package/build/components/create-template-part-modal/index.js +1 -1
  8. package/build/components/create-template-part-modal/index.js.map +1 -1
  9. package/build/components/editor/index.js +1 -0
  10. package/build/components/editor/index.js.map +1 -1
  11. package/build/components/global-styles/ui.js +7 -2
  12. package/build/components/global-styles/ui.js.map +1 -1
  13. package/build/components/header-edit-mode/index.js +36 -9
  14. package/build/components/header-edit-mode/index.js.map +1 -1
  15. package/build/components/header-edit-mode/more-menu/index.js +36 -2
  16. package/build/components/header-edit-mode/more-menu/index.js.map +1 -1
  17. package/build/components/keyboard-shortcuts/edit-mode.js +32 -1
  18. package/build/components/keyboard-shortcuts/edit-mode.js.map +1 -1
  19. package/build/components/keyboard-shortcuts/register.js +9 -0
  20. package/build/components/keyboard-shortcuts/register.js.map +1 -1
  21. package/build/components/layout/index.js +86 -12
  22. package/build/components/layout/index.js.map +1 -1
  23. package/build/components/page-content-focus-manager/back-to-page-notification.js +9 -3
  24. package/build/components/page-content-focus-manager/back-to-page-notification.js.map +1 -1
  25. package/build/components/page-library/grid-item.js +11 -7
  26. package/build/components/page-library/grid-item.js.map +1 -1
  27. package/build/components/preferences-modal/enable-feature.js +5 -1
  28. package/build/components/preferences-modal/enable-feature.js.map +1 -1
  29. package/build/components/preferences-modal/index.js +30 -0
  30. package/build/components/preferences-modal/index.js.map +1 -1
  31. package/build/components/sidebar-edit-mode/index.js +4 -2
  32. package/build/components/sidebar-edit-mode/index.js.map +1 -1
  33. package/build/components/sidebar-navigation-screen/index.js +7 -3
  34. package/build/components/sidebar-navigation-screen/index.js.map +1 -1
  35. package/build/components/sidebar-navigation-screen-global-styles/index.js +15 -3
  36. package/build/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
  37. package/build/components/sidebar-navigation-screen-library/category-item.js +1 -1
  38. package/build/components/sidebar-navigation-screen-library/category-item.js.map +1 -1
  39. package/build/components/sidebar-navigation-screen-navigation-menu/index.js +1 -1
  40. package/build/components/sidebar-navigation-screen-navigation-menu/index.js.map +1 -1
  41. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +10 -1
  42. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.js.map +1 -1
  43. package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +5 -1
  44. package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +1 -1
  45. package/build/components/sidebar-navigation-screen-navigation-menus/index.js +14 -3
  46. package/build/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  47. package/build/hooks/commands/use-common-commands.js +22 -0
  48. package/build/hooks/commands/use-common-commands.js.map +1 -1
  49. package/build/hooks/commands/use-edit-mode-commands.js +170 -42
  50. package/build/hooks/commands/use-edit-mode-commands.js.map +1 -1
  51. package/build/index.js +1 -0
  52. package/build/index.js.map +1 -1
  53. package/build/store/selectors.js +2 -1
  54. package/build/store/selectors.js.map +1 -1
  55. package/build-module/components/add-new-pattern/index.js +8 -8
  56. package/build-module/components/add-new-pattern/index.js.map +1 -1
  57. package/build-module/components/add-new-template/new-template.js +72 -17
  58. package/build-module/components/add-new-template/new-template.js.map +1 -1
  59. package/build-module/components/create-pattern-modal/index.js +1 -1
  60. package/build-module/components/create-pattern-modal/index.js.map +1 -1
  61. package/build-module/components/create-template-part-modal/index.js +1 -1
  62. package/build-module/components/create-template-part-modal/index.js.map +1 -1
  63. package/build-module/components/editor/index.js +1 -0
  64. package/build-module/components/editor/index.js.map +1 -1
  65. package/build-module/components/global-styles/ui.js +8 -3
  66. package/build-module/components/global-styles/ui.js.map +1 -1
  67. package/build-module/components/header-edit-mode/index.js +38 -11
  68. package/build-module/components/header-edit-mode/index.js.map +1 -1
  69. package/build-module/components/header-edit-mode/more-menu/index.js +35 -3
  70. package/build-module/components/header-edit-mode/more-menu/index.js.map +1 -1
  71. package/build-module/components/keyboard-shortcuts/edit-mode.js +29 -1
  72. package/build-module/components/keyboard-shortcuts/edit-mode.js.map +1 -1
  73. package/build-module/components/keyboard-shortcuts/register.js +9 -0
  74. package/build-module/components/keyboard-shortcuts/register.js.map +1 -1
  75. package/build-module/components/layout/index.js +86 -12
  76. package/build-module/components/layout/index.js.map +1 -1
  77. package/build-module/components/page-content-focus-manager/back-to-page-notification.js +9 -3
  78. package/build-module/components/page-content-focus-manager/back-to-page-notification.js.map +1 -1
  79. package/build-module/components/page-library/grid-item.js +11 -7
  80. package/build-module/components/page-library/grid-item.js.map +1 -1
  81. package/build-module/components/preferences-modal/enable-feature.js +5 -1
  82. package/build-module/components/preferences-modal/enable-feature.js.map +1 -1
  83. package/build-module/components/preferences-modal/index.js +27 -0
  84. package/build-module/components/preferences-modal/index.js.map +1 -1
  85. package/build-module/components/sidebar-edit-mode/index.js +4 -2
  86. package/build-module/components/sidebar-edit-mode/index.js.map +1 -1
  87. package/build-module/components/sidebar-navigation-screen/index.js +7 -3
  88. package/build-module/components/sidebar-navigation-screen/index.js.map +1 -1
  89. package/build-module/components/sidebar-navigation-screen-global-styles/index.js +14 -3
  90. package/build-module/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
  91. package/build-module/components/sidebar-navigation-screen-library/category-item.js +1 -1
  92. package/build-module/components/sidebar-navigation-screen-library/category-item.js.map +1 -1
  93. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js +1 -1
  94. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js.map +1 -1
  95. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +11 -1
  96. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js.map +1 -1
  97. package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +5 -1
  98. package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +1 -1
  99. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js +14 -4
  100. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  101. package/build-module/hooks/commands/use-common-commands.js +23 -1
  102. package/build-module/hooks/commands/use-common-commands.js.map +1 -1
  103. package/build-module/hooks/commands/use-edit-mode-commands.js +170 -44
  104. package/build-module/hooks/commands/use-edit-mode-commands.js.map +1 -1
  105. package/build-module/index.js +1 -0
  106. package/build-module/index.js.map +1 -1
  107. package/build-module/store/selectors.js +2 -1
  108. package/build-module/store/selectors.js.map +1 -1
  109. package/build-style/style-rtl.css +110 -18
  110. package/build-style/style.css +110 -18
  111. package/package.json +15 -15
  112. package/src/components/add-new-pattern/index.js +8 -10
  113. package/src/components/add-new-template/new-template.js +120 -24
  114. package/src/components/add-new-template/style.scss +30 -2
  115. package/src/components/create-pattern-modal/index.js +1 -1
  116. package/src/components/create-template-part-modal/index.js +1 -1
  117. package/src/components/editor/index.js +1 -0
  118. package/src/components/editor/style.scss +4 -0
  119. package/src/components/global-styles/ui.js +34 -24
  120. package/src/components/header-edit-mode/index.js +96 -54
  121. package/src/components/header-edit-mode/more-menu/index.js +52 -7
  122. package/src/components/keyboard-shortcuts/edit-mode.js +35 -2
  123. package/src/components/keyboard-shortcuts/register.js +10 -0
  124. package/src/components/layout/index.js +115 -46
  125. package/src/components/layout/style.scss +58 -1
  126. package/src/components/page-content-focus-manager/back-to-page-notification.js +7 -2
  127. package/src/components/page-library/grid-item.js +9 -9
  128. package/src/components/page-library/style.scss +2 -2
  129. package/src/components/preferences-modal/enable-feature.js +5 -2
  130. package/src/components/preferences-modal/index.js +25 -0
  131. package/src/components/sidebar-button/style.scss +1 -1
  132. package/src/components/sidebar-edit-mode/index.js +4 -2
  133. package/src/components/sidebar-navigation-item/style.scss +1 -1
  134. package/src/components/sidebar-navigation-screen/index.js +4 -2
  135. package/src/components/sidebar-navigation-screen/style.scss +2 -1
  136. package/src/components/sidebar-navigation-screen-details-panel/style.scss +1 -1
  137. package/src/components/sidebar-navigation-screen-global-styles/index.js +15 -3
  138. package/src/components/sidebar-navigation-screen-library/category-item.js +1 -1
  139. package/src/components/sidebar-navigation-screen-library/style.scss +0 -4
  140. package/src/components/sidebar-navigation-screen-navigation-menu/index.js +1 -1
  141. package/src/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +12 -1
  142. package/src/components/sidebar-navigation-screen-navigation-menu/style.scss +2 -2
  143. package/src/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +5 -1
  144. package/src/components/sidebar-navigation-screen-navigation-menus/index.js +31 -8
  145. package/src/components/sidebar-navigation-screen-pattern/style.scss +25 -0
  146. package/src/components/sidebar-navigation-screen-template/style.scss +15 -15
  147. package/src/components/site-hub/style.scss +4 -3
  148. package/src/hooks/commands/use-common-commands.js +20 -1
  149. package/src/hooks/commands/use-edit-mode-commands.js +155 -36
  150. package/src/index.js +1 -0
  151. package/src/store/selectors.js +5 -0
  152. package/src/store/test/selectors.js +2 -0
  153. package/src/style.scss +1 -0
@@ -688,15 +688,30 @@ body.is-fullscreen-mode .interface-interface-skeleton {
688
688
  width: calc(100% - 128px);
689
689
  }
690
690
  }
691
+ .edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg,
692
+ .edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg {
693
+ fill: var(--wp-admin-theme-color);
694
+ }
695
+ .edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name {
696
+ flex-grow: 1;
697
+ align-items: flex-start;
698
+ }
699
+ .edit-site-add-new-template__modal .edit-site-add-new-template__template-icon {
700
+ padding: 8px;
701
+ background: rgba(var(--wp-admin-theme-color--rgb), 0.04);
702
+ border-radius: 100%;
703
+ max-height: 40px;
704
+ max-width: 40px;
705
+ }
691
706
 
692
707
  .edit-site-custom-template-modal__contents > .components-button,
693
708
  .edit-site-add-new-template__template-list__contents > .components-button {
694
- padding: 24px;
709
+ padding: 32px;
695
710
  border-radius: 2px;
696
711
  display: flex;
697
712
  flex-direction: column;
698
713
  border: 1px solid #ddd;
699
- min-height: 192px;
714
+ justify-content: center;
700
715
  outline: 1px solid transparent;
701
716
  }
702
717
  .edit-site-custom-template-modal__contents > .components-button span:first-child,
@@ -727,6 +742,13 @@ body.is-fullscreen-mode .interface-interface-skeleton {
727
742
  .edit-site-add-new-template__template-list__contents > .components-button:focus span:first-child {
728
743
  color: var(--wp-admin-theme-color);
729
744
  }
745
+ .edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,
746
+ .edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt,
747
+ .edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,
748
+ .edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt {
749
+ grid-column-start: 1;
750
+ grid-column-end: 4;
751
+ }
730
752
 
731
753
  .edit-site-add-new-template__template-list__contents > .components-button {
732
754
  height: 100%;
@@ -1756,7 +1778,7 @@ body.is-fullscreen-mode .edit-site-list-header {
1756
1778
  color: #949494;
1757
1779
  }
1758
1780
  .edit-site-library .components-heading {
1759
- color: #fff;
1781
+ color: #e0e0e0;
1760
1782
  }
1761
1783
  @media (min-width: 782px) {
1762
1784
  .edit-site-library {
@@ -1814,7 +1836,7 @@ body.is-fullscreen-mode .edit-site-list-header {
1814
1836
 
1815
1837
  .edit-site-library__search.edit-site-library__search input[type=search] {
1816
1838
  background: #2f2f2f;
1817
- color: #f0f0f0;
1839
+ color: #e0e0e0;
1818
1840
  }
1819
1841
  .edit-site-library__search.edit-site-library__search input[type=search]:focus {
1820
1842
  background: #2f2f2f;
@@ -2169,6 +2191,9 @@ h3.edit-site-template-card__template-areas-title {
2169
2191
  .edit-site-editor__interface-skeleton.is-loading {
2170
2192
  opacity: 0;
2171
2193
  }
2194
+ .edit-site-editor__interface-skeleton .interface-interface-skeleton__header {
2195
+ border: 0;
2196
+ }
2172
2197
 
2173
2198
  .edit-site-editor__toggle-save-panel {
2174
2199
  box-sizing: border-box;
@@ -2492,10 +2517,15 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2492
2517
  .edit-site-layout {
2493
2518
  height: 100%;
2494
2519
  background: #1e1e1e;
2495
- color: #fff;
2520
+ color: #ccc;
2496
2521
  display: flex;
2497
2522
  flex-direction: column;
2498
2523
  }
2524
+ @media (min-width: 782px) {
2525
+ .edit-site-layout .block-editor-block-contextual-toolbar.is-fixed {
2526
+ width: calc(100% - 240px - 64px - 56px);
2527
+ }
2528
+ }
2499
2529
 
2500
2530
  .edit-site-layout__hub {
2501
2531
  position: fixed;
@@ -2527,6 +2557,10 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2527
2557
  }
2528
2558
  }
2529
2559
 
2560
+ .edit-site-layout__header-container {
2561
+ z-index: 4;
2562
+ }
2563
+
2530
2564
  .edit-site-layout__header {
2531
2565
  height: 60px;
2532
2566
  display: flex;
@@ -2710,6 +2744,9 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2710
2744
  }
2711
2745
 
2712
2746
  @media (min-width: 782px) {
2747
+ .edit-site-layout.has-fixed-toolbar .edit-site-layout__canvas-container {
2748
+ z-index: 5;
2749
+ }
2713
2750
  .edit-site-layout.has-fixed-toolbar .edit-site-site-hub {
2714
2751
  z-index: 4;
2715
2752
  }
@@ -2718,6 +2755,37 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2718
2755
  }
2719
2756
  }
2720
2757
 
2758
+ .is-edit-mode.is-distraction-free .edit-site-layout__header-container {
2759
+ height: 60px;
2760
+ position: absolute;
2761
+ top: 0;
2762
+ right: 0;
2763
+ left: 0;
2764
+ z-index: 4;
2765
+ width: 100%;
2766
+ }
2767
+ .is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within {
2768
+ opacity: 1 !important;
2769
+ }
2770
+ .is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within div {
2771
+ transform: translateX(0) translateY(0) translateZ(0) !important;
2772
+ }
2773
+ .is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within .edit-site-layout__header {
2774
+ opacity: 1 !important;
2775
+ }
2776
+ .is-edit-mode.is-distraction-free .edit-site-site-hub,
2777
+ .is-edit-mode.is-distraction-free .edit-site-layout__header {
2778
+ position: absolute;
2779
+ top: 0;
2780
+ z-index: 2;
2781
+ }
2782
+ .is-edit-mode.is-distraction-free .edit-site-site-hub {
2783
+ z-index: 3;
2784
+ }
2785
+ .is-edit-mode.is-distraction-free .edit-site-layout__header {
2786
+ width: 100%;
2787
+ }
2788
+
2721
2789
  .edit-site-save-hub {
2722
2790
  color: #949494;
2723
2791
  border-top: 1px solid #2f2f2f;
@@ -2807,7 +2875,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2807
2875
  outline: 3px solid transparent;
2808
2876
  }
2809
2877
  .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, .edit-site-sidebar-button[aria-expanded=true] {
2810
- color: #fff;
2878
+ color: #f0f0f0;
2811
2879
  }
2812
2880
 
2813
2881
  .edit-site-sidebar-navigation-item.components-item {
@@ -2818,7 +2886,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2818
2886
  border-radius: 2px;
2819
2887
  }
2820
2888
  .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] {
2821
- color: #fff;
2889
+ color: #e0e0e0;
2822
2890
  background: #2f2f2f;
2823
2891
  }
2824
2892
  .edit-site-sidebar-navigation-item.components-item[aria-current] {
@@ -2857,7 +2925,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2857
2925
  }
2858
2926
 
2859
2927
  .edit-site-sidebar-navigation-screen__content {
2860
- color: #ccc;
2861
2928
  padding: 0 16px;
2862
2929
  }
2863
2930
  .edit-site-sidebar-navigation-screen__content .components-item-group {
@@ -2904,6 +2971,8 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2904
2971
  .edit-site-sidebar-navigation-screen__title {
2905
2972
  flex-grow: 1;
2906
2973
  padding: 6px 0 0 0;
2974
+ overflow: hidden;
2975
+ overflow-wrap: break-word;
2907
2976
  }
2908
2977
 
2909
2978
  .edit-site-sidebar-navigation-screen__actions {
@@ -2976,15 +3045,11 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2976
3045
  margin-bottom: 24px;
2977
3046
  }
2978
3047
 
2979
- .edit-site-sidebar-navigation-item.is-active-category {
2980
- background: #2f2f2f;
2981
- }
2982
-
2983
3048
  .sidebar-navigation__more-menu .components-button {
2984
- color: #949494;
3049
+ color: #e0e0e0;
2985
3050
  }
2986
3051
  .sidebar-navigation__more-menu .components-button:hover, .sidebar-navigation__more-menu .components-button:focus, .sidebar-navigation__more-menu .components-button[aria-current] {
2987
- color: #fff;
3052
+ color: #f0f0f0;
2988
3053
  }
2989
3054
 
2990
3055
  .sidebar-navigation__rename-modal-form {
@@ -3052,7 +3117,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
3052
3117
  }
3053
3118
 
3054
3119
  .edit-site-sidebar-navigation-details-screen-panel {
3055
- margin-bottom: 24px;
3120
+ margin: 24px 0;
3056
3121
  }
3057
3122
  .edit-site-sidebar-navigation-details-screen-panel:last-of-type {
3058
3123
  margin-bottom: 0;
@@ -3075,12 +3140,37 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
3075
3140
  color: #e0e0e0;
3076
3141
  }
3077
3142
 
3143
+ .edit-site-sidebar-navigation-screen-pattern__added-by-description {
3144
+ display: flex;
3145
+ align-items: center;
3146
+ justify-content: space-between;
3147
+ margin-top: 24px;
3148
+ }
3149
+
3150
+ .edit-site-sidebar-navigation-screen-pattern__added-by-description-author {
3151
+ display: inline-flex;
3152
+ align-items: center;
3153
+ }
3154
+ .edit-site-sidebar-navigation-screen-pattern__added-by-description-author img {
3155
+ border-radius: 12px;
3156
+ }
3157
+ .edit-site-sidebar-navigation-screen-pattern__added-by-description-author svg {
3158
+ fill: #949494;
3159
+ }
3160
+
3161
+ .edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon {
3162
+ width: 24px;
3163
+ height: 24px;
3164
+ margin-left: 8px;
3165
+ }
3166
+
3078
3167
  .edit-site-sidebar-navigation-screen-template__added-by-description {
3079
3168
  display: flex;
3080
3169
  align-items: center;
3081
3170
  justify-content: space-between;
3082
3171
  margin-top: 24px;
3083
3172
  }
3173
+
3084
3174
  .edit-site-sidebar-navigation-screen-template__added-by-description-author {
3085
3175
  display: inline-flex;
3086
3176
  align-items: center;
@@ -3091,6 +3181,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
3091
3181
  .edit-site-sidebar-navigation-screen-template__added-by-description-author svg {
3092
3182
  fill: #949494;
3093
3183
  }
3184
+
3094
3185
  .edit-site-sidebar-navigation-screen-template__added-by-description-author-icon {
3095
3186
  width: 24px;
3096
3187
  height: 24px;
@@ -3143,7 +3234,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
3143
3234
  opacity: 1;
3144
3235
  }
3145
3236
  .edit-site-site-hub .edit-site-site-hub__site-view-link svg {
3146
- fill: #fff;
3237
+ fill: #e0e0e0;
3147
3238
  }
3148
3239
  .edit-site-site-hub:hover .edit-site-site-hub__site-view-link {
3149
3240
  opacity: 1;
@@ -3173,13 +3264,14 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
3173
3264
  .edit-site-site-hub__site-title {
3174
3265
  margin-right: 4px;
3175
3266
  flex-grow: 1;
3267
+ color: #e0e0e0;
3176
3268
  }
3177
3269
 
3178
3270
  .edit-site-site-hub_toggle-command-center {
3179
- color: #fff;
3271
+ color: #e0e0e0;
3180
3272
  }
3181
3273
  .edit-site-site-hub_toggle-command-center:hover {
3182
- color: #fff;
3274
+ color: #f0f0f0;
3183
3275
  }
3184
3276
 
3185
3277
  .edit-site-sidebar-navigation-screen__description {
@@ -688,15 +688,30 @@ body.is-fullscreen-mode .interface-interface-skeleton {
688
688
  width: calc(100% - 128px);
689
689
  }
690
690
  }
691
+ .edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg,
692
+ .edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg {
693
+ fill: var(--wp-admin-theme-color);
694
+ }
695
+ .edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name {
696
+ flex-grow: 1;
697
+ align-items: flex-start;
698
+ }
699
+ .edit-site-add-new-template__modal .edit-site-add-new-template__template-icon {
700
+ padding: 8px;
701
+ background: rgba(var(--wp-admin-theme-color--rgb), 0.04);
702
+ border-radius: 100%;
703
+ max-height: 40px;
704
+ max-width: 40px;
705
+ }
691
706
 
692
707
  .edit-site-custom-template-modal__contents > .components-button,
693
708
  .edit-site-add-new-template__template-list__contents > .components-button {
694
- padding: 24px;
709
+ padding: 32px;
695
710
  border-radius: 2px;
696
711
  display: flex;
697
712
  flex-direction: column;
698
713
  border: 1px solid #ddd;
699
- min-height: 192px;
714
+ justify-content: center;
700
715
  outline: 1px solid transparent;
701
716
  }
702
717
  .edit-site-custom-template-modal__contents > .components-button span:first-child,
@@ -727,6 +742,13 @@ body.is-fullscreen-mode .interface-interface-skeleton {
727
742
  .edit-site-add-new-template__template-list__contents > .components-button:focus span:first-child {
728
743
  color: var(--wp-admin-theme-color);
729
744
  }
745
+ .edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,
746
+ .edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt,
747
+ .edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,
748
+ .edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt {
749
+ grid-column-start: 1;
750
+ grid-column-end: 4;
751
+ }
730
752
 
731
753
  .edit-site-add-new-template__template-list__contents > .components-button {
732
754
  height: 100%;
@@ -1757,7 +1779,7 @@ body.is-fullscreen-mode .edit-site-list-header {
1757
1779
  color: #949494;
1758
1780
  }
1759
1781
  .edit-site-library .components-heading {
1760
- color: #fff;
1782
+ color: #e0e0e0;
1761
1783
  }
1762
1784
  @media (min-width: 782px) {
1763
1785
  .edit-site-library {
@@ -1815,7 +1837,7 @@ body.is-fullscreen-mode .edit-site-list-header {
1815
1837
 
1816
1838
  .edit-site-library__search.edit-site-library__search input[type=search] {
1817
1839
  background: #2f2f2f;
1818
- color: #f0f0f0;
1840
+ color: #e0e0e0;
1819
1841
  }
1820
1842
  .edit-site-library__search.edit-site-library__search input[type=search]:focus {
1821
1843
  background: #2f2f2f;
@@ -2170,6 +2192,9 @@ h3.edit-site-template-card__template-areas-title {
2170
2192
  .edit-site-editor__interface-skeleton.is-loading {
2171
2193
  opacity: 0;
2172
2194
  }
2195
+ .edit-site-editor__interface-skeleton .interface-interface-skeleton__header {
2196
+ border: 0;
2197
+ }
2173
2198
 
2174
2199
  .edit-site-editor__toggle-save-panel {
2175
2200
  box-sizing: border-box;
@@ -2493,10 +2518,15 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2493
2518
  .edit-site-layout {
2494
2519
  height: 100%;
2495
2520
  background: #1e1e1e;
2496
- color: #fff;
2521
+ color: #ccc;
2497
2522
  display: flex;
2498
2523
  flex-direction: column;
2499
2524
  }
2525
+ @media (min-width: 782px) {
2526
+ .edit-site-layout .block-editor-block-contextual-toolbar.is-fixed {
2527
+ width: calc(100% - 240px - 64px - 56px);
2528
+ }
2529
+ }
2500
2530
 
2501
2531
  .edit-site-layout__hub {
2502
2532
  position: fixed;
@@ -2528,6 +2558,10 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2528
2558
  }
2529
2559
  }
2530
2560
 
2561
+ .edit-site-layout__header-container {
2562
+ z-index: 4;
2563
+ }
2564
+
2531
2565
  .edit-site-layout__header {
2532
2566
  height: 60px;
2533
2567
  display: flex;
@@ -2711,6 +2745,9 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2711
2745
  }
2712
2746
 
2713
2747
  @media (min-width: 782px) {
2748
+ .edit-site-layout.has-fixed-toolbar .edit-site-layout__canvas-container {
2749
+ z-index: 5;
2750
+ }
2714
2751
  .edit-site-layout.has-fixed-toolbar .edit-site-site-hub {
2715
2752
  z-index: 4;
2716
2753
  }
@@ -2719,6 +2756,37 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2719
2756
  }
2720
2757
  }
2721
2758
 
2759
+ .is-edit-mode.is-distraction-free .edit-site-layout__header-container {
2760
+ height: 60px;
2761
+ position: absolute;
2762
+ top: 0;
2763
+ left: 0;
2764
+ right: 0;
2765
+ z-index: 4;
2766
+ width: 100%;
2767
+ }
2768
+ .is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within {
2769
+ opacity: 1 !important;
2770
+ }
2771
+ .is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within div {
2772
+ transform: translateX(0) translateY(0) translateZ(0) !important;
2773
+ }
2774
+ .is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within .edit-site-layout__header {
2775
+ opacity: 1 !important;
2776
+ }
2777
+ .is-edit-mode.is-distraction-free .edit-site-site-hub,
2778
+ .is-edit-mode.is-distraction-free .edit-site-layout__header {
2779
+ position: absolute;
2780
+ top: 0;
2781
+ z-index: 2;
2782
+ }
2783
+ .is-edit-mode.is-distraction-free .edit-site-site-hub {
2784
+ z-index: 3;
2785
+ }
2786
+ .is-edit-mode.is-distraction-free .edit-site-layout__header {
2787
+ width: 100%;
2788
+ }
2789
+
2722
2790
  .edit-site-save-hub {
2723
2791
  color: #949494;
2724
2792
  border-top: 1px solid #2f2f2f;
@@ -2808,7 +2876,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2808
2876
  outline: 3px solid transparent;
2809
2877
  }
2810
2878
  .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, .edit-site-sidebar-button[aria-expanded=true] {
2811
- color: #fff;
2879
+ color: #f0f0f0;
2812
2880
  }
2813
2881
 
2814
2882
  .edit-site-sidebar-navigation-item.components-item {
@@ -2819,7 +2887,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2819
2887
  border-radius: 2px;
2820
2888
  }
2821
2889
  .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] {
2822
- color: #fff;
2890
+ color: #e0e0e0;
2823
2891
  background: #2f2f2f;
2824
2892
  }
2825
2893
  .edit-site-sidebar-navigation-item.components-item[aria-current] {
@@ -2858,7 +2926,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2858
2926
  }
2859
2927
 
2860
2928
  .edit-site-sidebar-navigation-screen__content {
2861
- color: #ccc;
2862
2929
  padding: 0 16px;
2863
2930
  }
2864
2931
  .edit-site-sidebar-navigation-screen__content .components-item-group {
@@ -2905,6 +2972,8 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2905
2972
  .edit-site-sidebar-navigation-screen__title {
2906
2973
  flex-grow: 1;
2907
2974
  padding: 6px 0 0 0;
2975
+ overflow: hidden;
2976
+ overflow-wrap: break-word;
2908
2977
  }
2909
2978
 
2910
2979
  .edit-site-sidebar-navigation-screen__actions {
@@ -2977,15 +3046,11 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
2977
3046
  margin-bottom: 24px;
2978
3047
  }
2979
3048
 
2980
- .edit-site-sidebar-navigation-item.is-active-category {
2981
- background: #2f2f2f;
2982
- }
2983
-
2984
3049
  .sidebar-navigation__more-menu .components-button {
2985
- color: #949494;
3050
+ color: #e0e0e0;
2986
3051
  }
2987
3052
  .sidebar-navigation__more-menu .components-button:hover, .sidebar-navigation__more-menu .components-button:focus, .sidebar-navigation__more-menu .components-button[aria-current] {
2988
- color: #fff;
3053
+ color: #f0f0f0;
2989
3054
  }
2990
3055
 
2991
3056
  .sidebar-navigation__rename-modal-form {
@@ -3053,7 +3118,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
3053
3118
  }
3054
3119
 
3055
3120
  .edit-site-sidebar-navigation-details-screen-panel {
3056
- margin-bottom: 24px;
3121
+ margin: 24px 0;
3057
3122
  }
3058
3123
  .edit-site-sidebar-navigation-details-screen-panel:last-of-type {
3059
3124
  margin-bottom: 0;
@@ -3076,12 +3141,37 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
3076
3141
  color: #e0e0e0;
3077
3142
  }
3078
3143
 
3144
+ .edit-site-sidebar-navigation-screen-pattern__added-by-description {
3145
+ display: flex;
3146
+ align-items: center;
3147
+ justify-content: space-between;
3148
+ margin-top: 24px;
3149
+ }
3150
+
3151
+ .edit-site-sidebar-navigation-screen-pattern__added-by-description-author {
3152
+ display: inline-flex;
3153
+ align-items: center;
3154
+ }
3155
+ .edit-site-sidebar-navigation-screen-pattern__added-by-description-author img {
3156
+ border-radius: 12px;
3157
+ }
3158
+ .edit-site-sidebar-navigation-screen-pattern__added-by-description-author svg {
3159
+ fill: #949494;
3160
+ }
3161
+
3162
+ .edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon {
3163
+ width: 24px;
3164
+ height: 24px;
3165
+ margin-right: 8px;
3166
+ }
3167
+
3079
3168
  .edit-site-sidebar-navigation-screen-template__added-by-description {
3080
3169
  display: flex;
3081
3170
  align-items: center;
3082
3171
  justify-content: space-between;
3083
3172
  margin-top: 24px;
3084
3173
  }
3174
+
3085
3175
  .edit-site-sidebar-navigation-screen-template__added-by-description-author {
3086
3176
  display: inline-flex;
3087
3177
  align-items: center;
@@ -3092,6 +3182,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
3092
3182
  .edit-site-sidebar-navigation-screen-template__added-by-description-author svg {
3093
3183
  fill: #949494;
3094
3184
  }
3185
+
3095
3186
  .edit-site-sidebar-navigation-screen-template__added-by-description-author-icon {
3096
3187
  width: 24px;
3097
3188
  height: 24px;
@@ -3144,7 +3235,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
3144
3235
  opacity: 1;
3145
3236
  }
3146
3237
  .edit-site-site-hub .edit-site-site-hub__site-view-link svg {
3147
- fill: #fff;
3238
+ fill: #e0e0e0;
3148
3239
  }
3149
3240
  .edit-site-site-hub:hover .edit-site-site-hub__site-view-link {
3150
3241
  opacity: 1;
@@ -3174,13 +3265,14 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
3174
3265
  .edit-site-site-hub__site-title {
3175
3266
  margin-left: 4px;
3176
3267
  flex-grow: 1;
3268
+ color: #e0e0e0;
3177
3269
  }
3178
3270
 
3179
3271
  .edit-site-site-hub_toggle-command-center {
3180
- color: #fff;
3272
+ color: #e0e0e0;
3181
3273
  }
3182
3274
  .edit-site-site-hub_toggle-command-center:hover {
3183
- color: #fff;
3275
+ color: #f0f0f0;
3184
3276
  }
3185
3277
 
3186
3278
  .edit-site-sidebar-navigation-screen__description {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "5.12.1",
3
+ "version": "5.12.2",
4
4
  "description": "Edit Site Page module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -29,40 +29,40 @@
29
29
  "@babel/runtime": "^7.16.0",
30
30
  "@wordpress/a11y": "^3.35.1",
31
31
  "@wordpress/api-fetch": "^6.32.1",
32
- "@wordpress/block-editor": "^12.3.1",
33
- "@wordpress/block-library": "^8.12.1",
32
+ "@wordpress/block-editor": "^12.3.2",
33
+ "@wordpress/block-library": "^8.12.2",
34
34
  "@wordpress/blocks": "^12.12.1",
35
- "@wordpress/commands": "^0.6.1",
36
- "@wordpress/components": "^25.1.1",
35
+ "@wordpress/commands": "^0.6.2",
36
+ "@wordpress/components": "^25.1.2",
37
37
  "@wordpress/compose": "^6.12.1",
38
- "@wordpress/core-commands": "^0.4.1",
39
- "@wordpress/core-data": "^6.12.1",
38
+ "@wordpress/core-commands": "^0.4.2",
39
+ "@wordpress/core-data": "^6.12.2",
40
40
  "@wordpress/data": "^9.5.1",
41
41
  "@wordpress/date": "^4.35.1",
42
42
  "@wordpress/deprecated": "^3.35.1",
43
43
  "@wordpress/dom": "^3.35.1",
44
- "@wordpress/editor": "^13.12.1",
44
+ "@wordpress/editor": "^13.12.2",
45
45
  "@wordpress/element": "^5.12.1",
46
46
  "@wordpress/escape-html": "^2.35.1",
47
47
  "@wordpress/hooks": "^3.35.1",
48
48
  "@wordpress/html-entities": "^3.35.1",
49
49
  "@wordpress/i18n": "^4.35.1",
50
- "@wordpress/icons": "^9.26.1",
51
- "@wordpress/interface": "^5.12.1",
50
+ "@wordpress/icons": "^9.26.2",
51
+ "@wordpress/interface": "^5.12.2",
52
52
  "@wordpress/keyboard-shortcuts": "^4.12.1",
53
53
  "@wordpress/keycodes": "^3.35.1",
54
54
  "@wordpress/media-utils": "^4.26.1",
55
55
  "@wordpress/notices": "^4.3.1",
56
- "@wordpress/plugins": "^6.3.1",
57
- "@wordpress/preferences": "^3.12.1",
56
+ "@wordpress/plugins": "^6.3.2",
57
+ "@wordpress/preferences": "^3.12.2",
58
58
  "@wordpress/primitives": "^3.33.1",
59
59
  "@wordpress/private-apis": "^0.17.1",
60
- "@wordpress/reusable-blocks": "^4.12.1",
60
+ "@wordpress/reusable-blocks": "^4.12.2",
61
61
  "@wordpress/router": "^0.4.1",
62
62
  "@wordpress/style-engine": "^1.18.1",
63
63
  "@wordpress/url": "^3.36.1",
64
64
  "@wordpress/viewport": "^5.12.1",
65
- "@wordpress/widgets": "^3.12.1",
65
+ "@wordpress/widgets": "^3.12.2",
66
66
  "@wordpress/wordcount": "^3.35.1",
67
67
  "change-case": "^4.1.2",
68
68
  "classnames": "^2.3.1",
@@ -84,5 +84,5 @@
84
84
  "publishConfig": {
85
85
  "access": "public"
86
86
  },
87
- "gitHead": "ce5639111c30763dbdf07f40eeb136ea6030ecf1"
87
+ "gitHead": "a00463f06c90ae6705951861eb889e67a52bf448"
88
88
  }
@@ -12,8 +12,8 @@ import { privateApis as routerPrivateApis } from '@wordpress/router';
12
12
  */
13
13
  import CreatePatternModal from '../create-pattern-modal';
14
14
  import CreateTemplatePartModal from '../create-template-part-modal';
15
- import { unlock } from '../../lock-unlock';
16
15
  import SidebarButton from '../sidebar-button';
16
+ import { unlock } from '../../lock-unlock';
17
17
 
18
18
  const { useHistory } = unlock( routerPrivateApis );
19
19
 
@@ -58,21 +58,19 @@ export default function AddNewPattern() {
58
58
  {
59
59
  icon: header,
60
60
  onClick: () => setShowTemplatePartModal( true ),
61
- title: 'Create a template part',
61
+ title: __( 'Create template part' ),
62
62
  },
63
63
  {
64
64
  icon: file,
65
65
  onClick: () => setShowPatternModal( true ),
66
- title: 'Create a pattern',
66
+ title: __( 'Create pattern' ),
67
67
  },
68
68
  ] }
69
- icon={
70
- <SidebarButton
71
- icon={ plus }
72
- label={ __( 'Create a pattern' ) }
73
- />
74
- }
75
- label="Create a pattern."
69
+ toggleProps={ {
70
+ as: SidebarButton,
71
+ } }
72
+ icon={ plus }
73
+ label={ __( 'Create pattern' ) }
76
74
  />
77
75
  { showPatternModal && (
78
76
  <CreatePatternModal