@wordpress/edit-site 6.20.0 → 6.22.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 (24) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/build/components/add-new-template/add-custom-generic-template-modal-content.js +1 -1
  3. package/build/components/add-new-template/add-custom-generic-template-modal-content.js.map +1 -1
  4. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +2 -1
  5. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +1 -1
  6. package/build/components/style-book/examples.js +2 -1
  7. package/build/components/style-book/examples.js.map +1 -1
  8. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js +1 -1
  9. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js.map +1 -1
  10. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +2 -1
  11. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +1 -1
  12. package/build-module/components/style-book/examples.js +2 -1
  13. package/build-module/components/style-book/examples.js.map +1 -1
  14. package/build-style/posts-rtl.css +29 -14
  15. package/build-style/posts.css +29 -14
  16. package/build-style/style-rtl.css +29 -18
  17. package/build-style/style.css +29 -18
  18. package/build-types/components/style-book/examples.d.ts.map +1 -1
  19. package/package.json +42 -42
  20. package/src/components/add-new-template/add-custom-generic-template-modal-content.js +2 -2
  21. package/src/components/global-styles/font-library-modal/style.scss +0 -5
  22. package/src/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +1 -0
  23. package/src/components/style-book/examples.tsx +2 -1
  24. package/tsconfig.tsbuildinfo +1 -1
@@ -812,6 +812,11 @@
812
812
  right: 8px;
813
813
  z-index: 1;
814
814
  }
815
+ @media (hover: none) {
816
+ .dataviews-view-grid__card .dataviews-selection-checkbox {
817
+ top: 8px;
818
+ }
819
+ }
815
820
 
816
821
  .dataviews-view-grid__card:hover .dataviews-selection-checkbox,
817
822
  .dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,
@@ -840,24 +845,34 @@ div.dataviews-view-list {
840
845
  box-sizing: border-box;
841
846
  }
842
847
  .dataviews-view-list div[role=row] .dataviews-view-list__item-actions {
843
- flex: 0;
844
- overflow: hidden;
845
- }
846
- .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > div {
847
- height: 24px;
848
+ display: flex;
849
+ width: max-content;
850
+ flex: 0 0 auto;
851
+ gap: 4px;
848
852
  }
849
853
  .dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button {
850
854
  position: relative;
851
855
  z-index: 1;
852
- opacity: 0;
853
856
  }
854
- .dataviews-view-list div[role=row]:where(.is-selected, .is-hovered, :focus-within) .dataviews-view-list__item-actions {
857
+ .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > div {
858
+ height: 24px;
859
+ }
860
+ .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > :not(:last-child) {
861
+ flex: 0;
862
+ overflow: hidden;
863
+ width: 0;
864
+ }
865
+ .dataviews-view-list div[role=row]:where(.is-selected, .is-hovered, :focus-within) .dataviews-view-list__item-actions > :not(:last-child) {
855
866
  flex-basis: min-content;
867
+ width: auto;
856
868
  overflow: unset;
857
- padding-inline-end: 4px;
858
869
  }
859
- .dataviews-view-list div[role=row]:where(.is-selected, .is-hovered, :focus-within) .dataviews-view-list__item-actions .components-button {
860
- opacity: 1;
870
+ @media (hover: none) {
871
+ .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > :not(:last-child) {
872
+ flex-basis: min-content;
873
+ width: auto;
874
+ overflow: unset;
875
+ }
861
876
  }
862
877
  .dataviews-view-list div[role=row].is-selected.is-selected {
863
878
  border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12);
@@ -2766,7 +2781,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2766
2781
  contain: content;
2767
2782
  }
2768
2783
 
2769
- @keyframes _abex3_slide-from-right {
2784
+ @keyframes _6kpm0_slide-from-right {
2770
2785
  from {
2771
2786
  transform: translateX(-50px);
2772
2787
  opacity: 0;
@@ -2776,7 +2791,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2776
2791
  opacity: 1;
2777
2792
  }
2778
2793
  }
2779
- @keyframes _abex3_slide-from-left {
2794
+ @keyframes _6kpm0_slide-from-left {
2780
2795
  from {
2781
2796
  transform: translateX(50px);
2782
2797
  opacity: 0;
@@ -2832,10 +2847,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2832
2847
  }
2833
2848
  }
2834
2849
  .edit-site-sidebar__screen-wrapper.slide-from-left {
2835
- animation-name: _abex3_slide-from-left;
2850
+ animation-name: _6kpm0_slide-from-left;
2836
2851
  }
2837
2852
  .edit-site-sidebar__screen-wrapper.slide-from-right {
2838
- animation-name: _abex3_slide-from-right;
2853
+ animation-name: _6kpm0_slide-from-right;
2839
2854
  }
2840
2855
 
2841
2856
  .edit-site-sidebar-button {
@@ -3506,10 +3521,6 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
3506
3521
  }
3507
3522
  }
3508
3523
 
3509
- .font-library-modal__tabpanel-layout .components-base-control__field {
3510
- margin-bottom: 0;
3511
- }
3512
-
3513
3524
  .font-library-modal__fonts-title {
3514
3525
  text-transform: uppercase;
3515
3526
  font-size: 11px;
@@ -812,6 +812,11 @@
812
812
  left: 8px;
813
813
  z-index: 1;
814
814
  }
815
+ @media (hover: none) {
816
+ .dataviews-view-grid__card .dataviews-selection-checkbox {
817
+ top: 8px;
818
+ }
819
+ }
815
820
 
816
821
  .dataviews-view-grid__card:hover .dataviews-selection-checkbox,
817
822
  .dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,
@@ -840,24 +845,34 @@ div.dataviews-view-list {
840
845
  box-sizing: border-box;
841
846
  }
842
847
  .dataviews-view-list div[role=row] .dataviews-view-list__item-actions {
843
- flex: 0;
844
- overflow: hidden;
845
- }
846
- .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > div {
847
- height: 24px;
848
+ display: flex;
849
+ width: max-content;
850
+ flex: 0 0 auto;
851
+ gap: 4px;
848
852
  }
849
853
  .dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button {
850
854
  position: relative;
851
855
  z-index: 1;
852
- opacity: 0;
853
856
  }
854
- .dataviews-view-list div[role=row]:where(.is-selected, .is-hovered, :focus-within) .dataviews-view-list__item-actions {
857
+ .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > div {
858
+ height: 24px;
859
+ }
860
+ .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > :not(:last-child) {
861
+ flex: 0;
862
+ overflow: hidden;
863
+ width: 0;
864
+ }
865
+ .dataviews-view-list div[role=row]:where(.is-selected, .is-hovered, :focus-within) .dataviews-view-list__item-actions > :not(:last-child) {
855
866
  flex-basis: min-content;
867
+ width: auto;
856
868
  overflow: unset;
857
- padding-inline-end: 4px;
858
869
  }
859
- .dataviews-view-list div[role=row]:where(.is-selected, .is-hovered, :focus-within) .dataviews-view-list__item-actions .components-button {
860
- opacity: 1;
870
+ @media (hover: none) {
871
+ .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > :not(:last-child) {
872
+ flex-basis: min-content;
873
+ width: auto;
874
+ overflow: unset;
875
+ }
861
876
  }
862
877
  .dataviews-view-list div[role=row].is-selected.is-selected {
863
878
  border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12);
@@ -2767,7 +2782,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2767
2782
  contain: content;
2768
2783
  }
2769
2784
 
2770
- @keyframes _abex3_slide-from-right {
2785
+ @keyframes _6kpm0_slide-from-right {
2771
2786
  from {
2772
2787
  transform: translateX(50px);
2773
2788
  opacity: 0;
@@ -2777,7 +2792,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2777
2792
  opacity: 1;
2778
2793
  }
2779
2794
  }
2780
- @keyframes _abex3_slide-from-left {
2795
+ @keyframes _6kpm0_slide-from-left {
2781
2796
  from {
2782
2797
  transform: translateX(-50px);
2783
2798
  opacity: 0;
@@ -2833,10 +2848,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2833
2848
  }
2834
2849
  }
2835
2850
  .edit-site-sidebar__screen-wrapper.slide-from-left {
2836
- animation-name: _abex3_slide-from-left;
2851
+ animation-name: _6kpm0_slide-from-left;
2837
2852
  }
2838
2853
  .edit-site-sidebar__screen-wrapper.slide-from-right {
2839
- animation-name: _abex3_slide-from-right;
2854
+ animation-name: _6kpm0_slide-from-right;
2840
2855
  }
2841
2856
 
2842
2857
  .edit-site-sidebar-button {
@@ -3507,10 +3522,6 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
3507
3522
  }
3508
3523
  }
3509
3524
 
3510
- .font-library-modal__tabpanel-layout .components-base-control__field {
3511
- margin-bottom: 0;
3512
- }
3513
-
3514
3525
  .font-library-modal__fonts-title {
3515
3526
  text-transform: uppercase;
3516
3527
  font-size: 11px;
@@ -1 +1 @@
1
- {"version":3,"file":"examples.d.ts","sourceRoot":"","sources":["../../../src/components/style-book/examples.tsx"],"names":[],"mappings":"AAaA;;GAEG;AACH,OAAO,KAAK,EACX,YAAY,EAEZ,mBAAmB,EAEnB,MAAM,SAAS,CAAC;AAwLjB;;;;;GAKG;AACH,wBAAgB,WAAW,CAAE,MAAM,EAAE,mBAAmB,GAAI,YAAY,EAAE,CA4DzE"}
1
+ {"version":3,"file":"examples.d.ts","sourceRoot":"","sources":["../../../src/components/style-book/examples.tsx"],"names":[],"mappings":"AAaA;;GAEG;AACH,OAAO,KAAK,EACX,YAAY,EAEZ,mBAAmB,EAEnB,MAAM,SAAS,CAAC;AAyLjB;;;;;GAKG;AACH,wBAAgB,WAAW,CAAE,MAAM,EAAE,mBAAmB,GAAI,YAAY,EAAE,CA4DzE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "6.20.0",
3
+ "version": "6.22.0",
4
4
  "description": "Edit Site Page module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -30,46 +30,46 @@
30
30
  "dependencies": {
31
31
  "@babel/runtime": "7.25.7",
32
32
  "@react-spring/web": "^9.4.5",
33
- "@wordpress/a11y": "^4.20.0",
34
- "@wordpress/api-fetch": "^7.20.0",
35
- "@wordpress/blob": "^4.20.0",
36
- "@wordpress/block-editor": "^14.15.0",
37
- "@wordpress/block-library": "^9.20.0",
38
- "@wordpress/blocks": "^14.9.0",
39
- "@wordpress/commands": "^1.20.0",
40
- "@wordpress/components": "^29.6.0",
41
- "@wordpress/compose": "^7.20.0",
42
- "@wordpress/core-commands": "^1.20.0",
43
- "@wordpress/core-data": "^7.20.0",
44
- "@wordpress/data": "^10.20.0",
45
- "@wordpress/dataviews": "^4.16.0",
46
- "@wordpress/date": "^5.20.0",
47
- "@wordpress/deprecated": "^4.20.0",
48
- "@wordpress/dom": "^4.20.0",
49
- "@wordpress/editor": "^14.20.0",
50
- "@wordpress/element": "^6.20.0",
51
- "@wordpress/escape-html": "^3.20.0",
52
- "@wordpress/fields": "^0.12.0",
53
- "@wordpress/hooks": "^4.20.0",
54
- "@wordpress/html-entities": "^4.20.0",
55
- "@wordpress/i18n": "^5.20.0",
56
- "@wordpress/icons": "^10.20.0",
57
- "@wordpress/keyboard-shortcuts": "^5.20.0",
58
- "@wordpress/keycodes": "^4.20.0",
59
- "@wordpress/media-utils": "^5.20.0",
60
- "@wordpress/notices": "^5.20.0",
61
- "@wordpress/patterns": "^2.20.0",
62
- "@wordpress/plugins": "^7.20.0",
63
- "@wordpress/preferences": "^4.20.0",
64
- "@wordpress/primitives": "^4.20.0",
65
- "@wordpress/private-apis": "^1.20.0",
66
- "@wordpress/reusable-blocks": "^5.20.0",
67
- "@wordpress/router": "^1.20.0",
68
- "@wordpress/style-engine": "^2.20.0",
69
- "@wordpress/url": "^4.20.0",
70
- "@wordpress/viewport": "^6.20.0",
71
- "@wordpress/widgets": "^4.20.0",
72
- "@wordpress/wordcount": "^4.20.0",
33
+ "@wordpress/a11y": "^4.22.0",
34
+ "@wordpress/api-fetch": "^7.22.0",
35
+ "@wordpress/blob": "^4.22.0",
36
+ "@wordpress/block-editor": "^14.17.0",
37
+ "@wordpress/block-library": "^9.22.0",
38
+ "@wordpress/blocks": "^14.11.0",
39
+ "@wordpress/commands": "^1.22.0",
40
+ "@wordpress/components": "^29.8.0",
41
+ "@wordpress/compose": "^7.22.0",
42
+ "@wordpress/core-commands": "^1.22.0",
43
+ "@wordpress/core-data": "^7.22.0",
44
+ "@wordpress/data": "^10.22.0",
45
+ "@wordpress/dataviews": "^4.18.0",
46
+ "@wordpress/date": "^5.22.0",
47
+ "@wordpress/deprecated": "^4.22.0",
48
+ "@wordpress/dom": "^4.22.0",
49
+ "@wordpress/editor": "^14.22.0",
50
+ "@wordpress/element": "^6.22.0",
51
+ "@wordpress/escape-html": "^3.22.0",
52
+ "@wordpress/fields": "^0.14.0",
53
+ "@wordpress/hooks": "^4.22.0",
54
+ "@wordpress/html-entities": "^4.22.0",
55
+ "@wordpress/i18n": "^5.22.0",
56
+ "@wordpress/icons": "^10.22.0",
57
+ "@wordpress/keyboard-shortcuts": "^5.22.0",
58
+ "@wordpress/keycodes": "^4.22.0",
59
+ "@wordpress/media-utils": "^5.22.0",
60
+ "@wordpress/notices": "^5.22.0",
61
+ "@wordpress/patterns": "^2.22.0",
62
+ "@wordpress/plugins": "^7.22.0",
63
+ "@wordpress/preferences": "^4.22.0",
64
+ "@wordpress/primitives": "^4.22.0",
65
+ "@wordpress/private-apis": "^1.22.0",
66
+ "@wordpress/reusable-blocks": "^5.22.0",
67
+ "@wordpress/router": "^1.22.0",
68
+ "@wordpress/style-engine": "^2.22.0",
69
+ "@wordpress/url": "^4.22.0",
70
+ "@wordpress/viewport": "^6.22.0",
71
+ "@wordpress/widgets": "^4.22.0",
72
+ "@wordpress/wordcount": "^4.22.0",
73
73
  "change-case": "^4.1.2",
74
74
  "clsx": "^2.1.1",
75
75
  "colord": "^2.9.2",
@@ -84,5 +84,5 @@
84
84
  "publishConfig": {
85
85
  "access": "public"
86
86
  },
87
- "gitHead": "72476970386146d450c375e5c71a96dda7c9aaa8"
87
+ "gitHead": "01a314d7e46a50101e328fdb11959c441e49372d"
88
88
  }
@@ -29,8 +29,8 @@ function AddCustomGenericTemplateModalContent( { onClose, createTemplate } ) {
29
29
  await createTemplate(
30
30
  {
31
31
  slug:
32
- 'wp-custom-template-' +
33
- kebabCase( title || defaultTitle ),
32
+ kebabCase( title || defaultTitle ) ||
33
+ 'wp-custom-template',
34
34
  title: title || defaultTitle,
35
35
  },
36
36
  false
@@ -75,11 +75,6 @@ $footer-height: 70px;
75
75
  }
76
76
  }
77
77
 
78
- // TODO: See if this can be removed after https://github.com/WordPress/gutenberg/issues/38730
79
- .font-library-modal__tabpanel-layout .components-base-control__field {
80
- margin-bottom: 0;
81
- }
82
-
83
78
  .font-library-modal__fonts-title {
84
79
  text-transform: uppercase;
85
80
  font-size: 11px;
@@ -102,6 +102,7 @@ export default function NavigationMenuContent( { rootClientId } ) {
102
102
  onSelect={ offCanvasOnselect }
103
103
  blockSettingsMenu={ LeafMoreMenu }
104
104
  showAppender={ false }
105
+ isExpanded
105
106
  />
106
107
  ) }
107
108
  <div className="edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor">
@@ -115,8 +115,9 @@ function getOverviewBlockExamples(
115
115
 
116
116
  if ( getBlockType( 'core/heading' ) ) {
117
117
  const headingBlock = createBlock( 'core/heading', {
118
+ // translators: Typography example. Your local alphabet, numbers and some common special characters.
118
119
  content: __(
119
- `AaBbCcDdEeFfGgHhiiJjKkLIMmNnOoPpQakRrssTtUuVVWwXxxYyZzOl23356789X{(…)},2!*&:/A@HELFO™`
120
+ `AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz0123456789X{(…)},.-<>?!*&:/A@HELFO™©`
120
121
  ),
121
122
  level: 1,
122
123
  } );