@wordpress/edit-site 6.21.0 → 6.23.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.
- package/CHANGELOG.md +4 -0
- package/build/components/add-new-template/add-custom-generic-template-modal-content.js +1 -1
- package/build/components/add-new-template/add-custom-generic-template-modal-content.js.map +1 -1
- package/build/components/more-menu/index.js +1 -6
- package/build/components/more-menu/index.js.map +1 -1
- package/build/components/more-menu/site-export.js +9 -0
- package/build/components/more-menu/site-export.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +2 -1
- package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +1 -1
- package/build/components/style-book/examples.js +2 -1
- package/build/components/style-book/examples.js.map +1 -1
- package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js +1 -1
- package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js.map +1 -1
- package/build-module/components/more-menu/index.js +1 -6
- package/build-module/components/more-menu/index.js.map +1 -1
- package/build-module/components/more-menu/site-export.js +10 -1
- package/build-module/components/more-menu/site-export.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +2 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +1 -1
- package/build-module/components/style-book/examples.js +2 -1
- package/build-module/components/style-book/examples.js.map +1 -1
- package/build-style/posts-rtl.css +24 -14
- package/build-style/posts.css +24 -14
- package/build-style/style-rtl.css +24 -14
- package/build-style/style.css +24 -14
- package/build-types/components/style-book/examples.d.ts.map +1 -1
- package/package.json +42 -42
- package/src/components/add-new-template/add-custom-generic-template-modal-content.js +2 -2
- package/src/components/more-menu/index.js +1 -7
- package/src/components/more-menu/site-export.js +14 -1
- package/src/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +1 -0
- package/src/components/style-book/examples.tsx +2 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -845,24 +845,34 @@ div.dataviews-view-list {
|
|
|
845
845
|
box-sizing: border-box;
|
|
846
846
|
}
|
|
847
847
|
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions {
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
height: 24px;
|
|
848
|
+
display: flex;
|
|
849
|
+
width: max-content;
|
|
850
|
+
flex: 0 0 auto;
|
|
851
|
+
gap: 4px;
|
|
853
852
|
}
|
|
854
853
|
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button {
|
|
855
854
|
position: relative;
|
|
856
855
|
z-index: 1;
|
|
857
|
-
opacity: 0;
|
|
858
856
|
}
|
|
859
|
-
.dataviews-view-list div[role=row]
|
|
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) {
|
|
860
866
|
flex-basis: min-content;
|
|
867
|
+
width: auto;
|
|
861
868
|
overflow: unset;
|
|
862
|
-
padding-inline-end: 4px;
|
|
863
869
|
}
|
|
864
|
-
|
|
865
|
-
|
|
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
|
+
}
|
|
866
876
|
}
|
|
867
877
|
.dataviews-view-list div[role=row].is-selected.is-selected {
|
|
868
878
|
border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12);
|
|
@@ -1587,7 +1597,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1587
1597
|
contain: content;
|
|
1588
1598
|
}
|
|
1589
1599
|
|
|
1590
|
-
@keyframes
|
|
1600
|
+
@keyframes _xldb3_slide-from-right {
|
|
1591
1601
|
from {
|
|
1592
1602
|
transform: translateX(-50px);
|
|
1593
1603
|
opacity: 0;
|
|
@@ -1597,7 +1607,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1597
1607
|
opacity: 1;
|
|
1598
1608
|
}
|
|
1599
1609
|
}
|
|
1600
|
-
@keyframes
|
|
1610
|
+
@keyframes _xldb3_slide-from-left {
|
|
1601
1611
|
from {
|
|
1602
1612
|
transform: translateX(50px);
|
|
1603
1613
|
opacity: 0;
|
|
@@ -1653,10 +1663,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1653
1663
|
}
|
|
1654
1664
|
}
|
|
1655
1665
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
1656
|
-
animation-name:
|
|
1666
|
+
animation-name: _xldb3_slide-from-left;
|
|
1657
1667
|
}
|
|
1658
1668
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
1659
|
-
animation-name:
|
|
1669
|
+
animation-name: _xldb3_slide-from-right;
|
|
1660
1670
|
}
|
|
1661
1671
|
|
|
1662
1672
|
.edit-site-site-hub {
|
package/build-style/posts.css
CHANGED
|
@@ -845,24 +845,34 @@ div.dataviews-view-list {
|
|
|
845
845
|
box-sizing: border-box;
|
|
846
846
|
}
|
|
847
847
|
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions {
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
height: 24px;
|
|
848
|
+
display: flex;
|
|
849
|
+
width: max-content;
|
|
850
|
+
flex: 0 0 auto;
|
|
851
|
+
gap: 4px;
|
|
853
852
|
}
|
|
854
853
|
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button {
|
|
855
854
|
position: relative;
|
|
856
855
|
z-index: 1;
|
|
857
|
-
opacity: 0;
|
|
858
856
|
}
|
|
859
|
-
.dataviews-view-list div[role=row]
|
|
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) {
|
|
860
866
|
flex-basis: min-content;
|
|
867
|
+
width: auto;
|
|
861
868
|
overflow: unset;
|
|
862
|
-
padding-inline-end: 4px;
|
|
863
869
|
}
|
|
864
|
-
|
|
865
|
-
|
|
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
|
+
}
|
|
866
876
|
}
|
|
867
877
|
.dataviews-view-list div[role=row].is-selected.is-selected {
|
|
868
878
|
border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12);
|
|
@@ -1587,7 +1597,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1587
1597
|
contain: content;
|
|
1588
1598
|
}
|
|
1589
1599
|
|
|
1590
|
-
@keyframes
|
|
1600
|
+
@keyframes _xldb3_slide-from-right {
|
|
1591
1601
|
from {
|
|
1592
1602
|
transform: translateX(50px);
|
|
1593
1603
|
opacity: 0;
|
|
@@ -1597,7 +1607,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1597
1607
|
opacity: 1;
|
|
1598
1608
|
}
|
|
1599
1609
|
}
|
|
1600
|
-
@keyframes
|
|
1610
|
+
@keyframes _xldb3_slide-from-left {
|
|
1601
1611
|
from {
|
|
1602
1612
|
transform: translateX(-50px);
|
|
1603
1613
|
opacity: 0;
|
|
@@ -1653,10 +1663,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
1653
1663
|
}
|
|
1654
1664
|
}
|
|
1655
1665
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
1656
|
-
animation-name:
|
|
1666
|
+
animation-name: _xldb3_slide-from-left;
|
|
1657
1667
|
}
|
|
1658
1668
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
1659
|
-
animation-name:
|
|
1669
|
+
animation-name: _xldb3_slide-from-right;
|
|
1660
1670
|
}
|
|
1661
1671
|
|
|
1662
1672
|
.edit-site-site-hub {
|
|
@@ -845,24 +845,34 @@ div.dataviews-view-list {
|
|
|
845
845
|
box-sizing: border-box;
|
|
846
846
|
}
|
|
847
847
|
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions {
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
height: 24px;
|
|
848
|
+
display: flex;
|
|
849
|
+
width: max-content;
|
|
850
|
+
flex: 0 0 auto;
|
|
851
|
+
gap: 4px;
|
|
853
852
|
}
|
|
854
853
|
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button {
|
|
855
854
|
position: relative;
|
|
856
855
|
z-index: 1;
|
|
857
|
-
opacity: 0;
|
|
858
856
|
}
|
|
859
|
-
.dataviews-view-list div[role=row]
|
|
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) {
|
|
860
866
|
flex-basis: min-content;
|
|
867
|
+
width: auto;
|
|
861
868
|
overflow: unset;
|
|
862
|
-
padding-inline-end: 4px;
|
|
863
869
|
}
|
|
864
|
-
|
|
865
|
-
|
|
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
|
+
}
|
|
866
876
|
}
|
|
867
877
|
.dataviews-view-list div[role=row].is-selected.is-selected {
|
|
868
878
|
border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12);
|
|
@@ -2771,7 +2781,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2771
2781
|
contain: content;
|
|
2772
2782
|
}
|
|
2773
2783
|
|
|
2774
|
-
@keyframes
|
|
2784
|
+
@keyframes _6kpm0_slide-from-right {
|
|
2775
2785
|
from {
|
|
2776
2786
|
transform: translateX(-50px);
|
|
2777
2787
|
opacity: 0;
|
|
@@ -2781,7 +2791,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2781
2791
|
opacity: 1;
|
|
2782
2792
|
}
|
|
2783
2793
|
}
|
|
2784
|
-
@keyframes
|
|
2794
|
+
@keyframes _6kpm0_slide-from-left {
|
|
2785
2795
|
from {
|
|
2786
2796
|
transform: translateX(50px);
|
|
2787
2797
|
opacity: 0;
|
|
@@ -2837,10 +2847,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2837
2847
|
}
|
|
2838
2848
|
}
|
|
2839
2849
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
2840
|
-
animation-name:
|
|
2850
|
+
animation-name: _6kpm0_slide-from-left;
|
|
2841
2851
|
}
|
|
2842
2852
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
2843
|
-
animation-name:
|
|
2853
|
+
animation-name: _6kpm0_slide-from-right;
|
|
2844
2854
|
}
|
|
2845
2855
|
|
|
2846
2856
|
.edit-site-sidebar-button {
|
package/build-style/style.css
CHANGED
|
@@ -845,24 +845,34 @@ div.dataviews-view-list {
|
|
|
845
845
|
box-sizing: border-box;
|
|
846
846
|
}
|
|
847
847
|
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions {
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
height: 24px;
|
|
848
|
+
display: flex;
|
|
849
|
+
width: max-content;
|
|
850
|
+
flex: 0 0 auto;
|
|
851
|
+
gap: 4px;
|
|
853
852
|
}
|
|
854
853
|
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button {
|
|
855
854
|
position: relative;
|
|
856
855
|
z-index: 1;
|
|
857
|
-
opacity: 0;
|
|
858
856
|
}
|
|
859
|
-
.dataviews-view-list div[role=row]
|
|
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) {
|
|
860
866
|
flex-basis: min-content;
|
|
867
|
+
width: auto;
|
|
861
868
|
overflow: unset;
|
|
862
|
-
padding-inline-end: 4px;
|
|
863
869
|
}
|
|
864
|
-
|
|
865
|
-
|
|
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
|
+
}
|
|
866
876
|
}
|
|
867
877
|
.dataviews-view-list div[role=row].is-selected.is-selected {
|
|
868
878
|
border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12);
|
|
@@ -2772,7 +2782,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2772
2782
|
contain: content;
|
|
2773
2783
|
}
|
|
2774
2784
|
|
|
2775
|
-
@keyframes
|
|
2785
|
+
@keyframes _6kpm0_slide-from-right {
|
|
2776
2786
|
from {
|
|
2777
2787
|
transform: translateX(50px);
|
|
2778
2788
|
opacity: 0;
|
|
@@ -2782,7 +2792,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2782
2792
|
opacity: 1;
|
|
2783
2793
|
}
|
|
2784
2794
|
}
|
|
2785
|
-
@keyframes
|
|
2795
|
+
@keyframes _6kpm0_slide-from-left {
|
|
2786
2796
|
from {
|
|
2787
2797
|
transform: translateX(-50px);
|
|
2788
2798
|
opacity: 0;
|
|
@@ -2838,10 +2848,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2838
2848
|
}
|
|
2839
2849
|
}
|
|
2840
2850
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
2841
|
-
animation-name:
|
|
2851
|
+
animation-name: _6kpm0_slide-from-left;
|
|
2842
2852
|
}
|
|
2843
2853
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
2844
|
-
animation-name:
|
|
2854
|
+
animation-name: _6kpm0_slide-from-right;
|
|
2845
2855
|
}
|
|
2846
2856
|
|
|
2847
2857
|
.edit-site-sidebar-button {
|
|
@@ -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;
|
|
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.
|
|
3
|
+
"version": "6.23.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.
|
|
34
|
-
"@wordpress/api-fetch": "^7.
|
|
35
|
-
"@wordpress/blob": "^4.
|
|
36
|
-
"@wordpress/block-editor": "^14.
|
|
37
|
-
"@wordpress/block-library": "^9.
|
|
38
|
-
"@wordpress/blocks": "^14.
|
|
39
|
-
"@wordpress/commands": "^1.
|
|
40
|
-
"@wordpress/components": "^29.
|
|
41
|
-
"@wordpress/compose": "^7.
|
|
42
|
-
"@wordpress/core-commands": "^1.
|
|
43
|
-
"@wordpress/core-data": "^7.
|
|
44
|
-
"@wordpress/data": "^10.
|
|
45
|
-
"@wordpress/dataviews": "^4.
|
|
46
|
-
"@wordpress/date": "^5.
|
|
47
|
-
"@wordpress/deprecated": "^4.
|
|
48
|
-
"@wordpress/dom": "^4.
|
|
49
|
-
"@wordpress/editor": "^14.
|
|
50
|
-
"@wordpress/element": "^6.
|
|
51
|
-
"@wordpress/escape-html": "^3.
|
|
52
|
-
"@wordpress/fields": "^0.
|
|
53
|
-
"@wordpress/hooks": "^4.
|
|
54
|
-
"@wordpress/html-entities": "^4.
|
|
55
|
-
"@wordpress/i18n": "^5.
|
|
56
|
-
"@wordpress/icons": "^10.
|
|
57
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
58
|
-
"@wordpress/keycodes": "^4.
|
|
59
|
-
"@wordpress/media-utils": "^5.
|
|
60
|
-
"@wordpress/notices": "^5.
|
|
61
|
-
"@wordpress/patterns": "^2.
|
|
62
|
-
"@wordpress/plugins": "^7.
|
|
63
|
-
"@wordpress/preferences": "^4.
|
|
64
|
-
"@wordpress/primitives": "^4.
|
|
65
|
-
"@wordpress/private-apis": "^1.
|
|
66
|
-
"@wordpress/reusable-blocks": "^5.
|
|
67
|
-
"@wordpress/router": "^1.
|
|
68
|
-
"@wordpress/style-engine": "^2.
|
|
69
|
-
"@wordpress/url": "^4.
|
|
70
|
-
"@wordpress/viewport": "^6.
|
|
71
|
-
"@wordpress/widgets": "^4.
|
|
72
|
-
"@wordpress/wordcount": "^4.
|
|
33
|
+
"@wordpress/a11y": "^4.23.0",
|
|
34
|
+
"@wordpress/api-fetch": "^7.23.0",
|
|
35
|
+
"@wordpress/blob": "^4.23.0",
|
|
36
|
+
"@wordpress/block-editor": "^14.18.0",
|
|
37
|
+
"@wordpress/block-library": "^9.23.0",
|
|
38
|
+
"@wordpress/blocks": "^14.12.0",
|
|
39
|
+
"@wordpress/commands": "^1.23.0",
|
|
40
|
+
"@wordpress/components": "^29.9.0",
|
|
41
|
+
"@wordpress/compose": "^7.23.0",
|
|
42
|
+
"@wordpress/core-commands": "^1.23.0",
|
|
43
|
+
"@wordpress/core-data": "^7.23.0",
|
|
44
|
+
"@wordpress/data": "^10.23.0",
|
|
45
|
+
"@wordpress/dataviews": "^4.19.0",
|
|
46
|
+
"@wordpress/date": "^5.23.0",
|
|
47
|
+
"@wordpress/deprecated": "^4.23.0",
|
|
48
|
+
"@wordpress/dom": "^4.23.0",
|
|
49
|
+
"@wordpress/editor": "^14.23.0",
|
|
50
|
+
"@wordpress/element": "^6.23.0",
|
|
51
|
+
"@wordpress/escape-html": "^3.23.0",
|
|
52
|
+
"@wordpress/fields": "^0.15.0",
|
|
53
|
+
"@wordpress/hooks": "^4.23.0",
|
|
54
|
+
"@wordpress/html-entities": "^4.23.0",
|
|
55
|
+
"@wordpress/i18n": "^5.23.0",
|
|
56
|
+
"@wordpress/icons": "^10.23.0",
|
|
57
|
+
"@wordpress/keyboard-shortcuts": "^5.23.0",
|
|
58
|
+
"@wordpress/keycodes": "^4.23.0",
|
|
59
|
+
"@wordpress/media-utils": "^5.23.0",
|
|
60
|
+
"@wordpress/notices": "^5.23.0",
|
|
61
|
+
"@wordpress/patterns": "^2.23.0",
|
|
62
|
+
"@wordpress/plugins": "^7.23.0",
|
|
63
|
+
"@wordpress/preferences": "^4.23.0",
|
|
64
|
+
"@wordpress/primitives": "^4.23.0",
|
|
65
|
+
"@wordpress/private-apis": "^1.23.0",
|
|
66
|
+
"@wordpress/reusable-blocks": "^5.23.0",
|
|
67
|
+
"@wordpress/router": "^1.23.0",
|
|
68
|
+
"@wordpress/style-engine": "^2.23.0",
|
|
69
|
+
"@wordpress/url": "^4.23.0",
|
|
70
|
+
"@wordpress/viewport": "^6.23.0",
|
|
71
|
+
"@wordpress/widgets": "^4.23.0",
|
|
72
|
+
"@wordpress/wordcount": "^4.23.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": "
|
|
87
|
+
"gitHead": "ab5c79cd40adbb68898536c50e035b0a734338ea"
|
|
88
88
|
}
|
|
@@ -29,8 +29,8 @@ function AddCustomGenericTemplateModalContent( { onClose, createTemplate } ) {
|
|
|
29
29
|
await createTemplate(
|
|
30
30
|
{
|
|
31
31
|
slug:
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
kebabCase( title || defaultTitle ) ||
|
|
33
|
+
'wp-custom-template',
|
|
34
34
|
title: title || defaultTitle,
|
|
35
35
|
},
|
|
36
36
|
false
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { useSelect } from '@wordpress/data';
|
|
5
|
-
import { store as coreStore } from '@wordpress/core-data';
|
|
6
4
|
import { privateApis as editorPrivateApis } from '@wordpress/editor';
|
|
7
5
|
|
|
8
6
|
/**
|
|
@@ -15,14 +13,10 @@ import { unlock } from '../../lock-unlock';
|
|
|
15
13
|
const { ToolsMoreMenuGroup, PreferencesModal } = unlock( editorPrivateApis );
|
|
16
14
|
|
|
17
15
|
export default function MoreMenu() {
|
|
18
|
-
const isBlockBasedTheme = useSelect( ( select ) => {
|
|
19
|
-
return select( coreStore ).getCurrentTheme().is_block_theme;
|
|
20
|
-
}, [] );
|
|
21
|
-
|
|
22
16
|
return (
|
|
23
17
|
<>
|
|
24
18
|
<ToolsMoreMenuGroup>
|
|
25
|
-
|
|
19
|
+
<SiteExport />
|
|
26
20
|
<WelcomeGuideMenuItem />
|
|
27
21
|
</ToolsMoreMenuGroup>
|
|
28
22
|
<PreferencesModal />
|
|
@@ -5,13 +5,26 @@ import { __, _x } from '@wordpress/i18n';
|
|
|
5
5
|
import { MenuItem } from '@wordpress/components';
|
|
6
6
|
import apiFetch from '@wordpress/api-fetch';
|
|
7
7
|
import { download } from '@wordpress/icons';
|
|
8
|
-
import { useDispatch } from '@wordpress/data';
|
|
8
|
+
import { useDispatch, useSelect } from '@wordpress/data';
|
|
9
9
|
import { downloadBlob } from '@wordpress/blob';
|
|
10
|
+
import { store as coreStore } from '@wordpress/core-data';
|
|
10
11
|
import { store as noticesStore } from '@wordpress/notices';
|
|
11
12
|
|
|
12
13
|
export default function SiteExport() {
|
|
14
|
+
const canExport = useSelect( ( select ) => {
|
|
15
|
+
const targetHints =
|
|
16
|
+
select( coreStore ).getCurrentTheme()?._links?.[
|
|
17
|
+
'wp:export-theme'
|
|
18
|
+
]?.[ 0 ]?.targetHints ?? {};
|
|
19
|
+
|
|
20
|
+
return !! targetHints.allow?.includes( 'GET' );
|
|
21
|
+
}, [] );
|
|
13
22
|
const { createErrorNotice } = useDispatch( noticesStore );
|
|
14
23
|
|
|
24
|
+
if ( ! canExport ) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
|
|
15
28
|
async function handleExport() {
|
|
16
29
|
try {
|
|
17
30
|
const response = await apiFetch( {
|
package/src/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js
CHANGED
|
@@ -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
|
-
`
|
|
120
|
+
`AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz0123456789X{(…)},.-<>?!*&:/A@HELFO™©`
|
|
120
121
|
),
|
|
121
122
|
level: 1,
|
|
122
123
|
} );
|