@wordpress/edit-site 6.34.1-next.2f1c7c01b.0 → 6.35.1-next.16d95556a.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 +2 -0
- package/build/components/editor/index.js +9 -18
- package/build/components/editor/index.js.map +2 -2
- package/build/components/page-patterns/index.js +1 -1
- package/build/components/page-patterns/index.js.map +2 -2
- package/build/index.js +0 -3
- package/build/index.js.map +2 -2
- package/build-module/components/editor/index.js +9 -18
- package/build-module/components/editor/index.js.map +2 -2
- package/build-module/components/page-patterns/index.js +1 -1
- package/build-module/components/page-patterns/index.js.map +2 -2
- package/build-module/index.js +0 -2
- package/build-module/index.js.map +2 -2
- package/build-style/style-rtl.css +41 -40
- package/build-style/style.css +41 -40
- package/package.json +46 -46
- package/src/components/editor/index.js +11 -27
- package/src/components/page-patterns/index.js +1 -1
- package/src/index.js +0 -4
- package/build/components/posts-app/index.js +0 -51
- package/build/components/posts-app/index.js.map +0 -7
- package/build/components/posts-app-routes/index.js +0 -46
- package/build/components/posts-app-routes/index.js.map +0 -7
- package/build/components/posts-app-routes/post-item.js +0 -61
- package/build/components/posts-app-routes/post-item.js.map +0 -7
- package/build/components/posts-app-routes/posts.js +0 -106
- package/build/components/posts-app-routes/posts.js.map +0 -7
- package/build/posts.js +0 -96
- package/build/posts.js.map +0 -7
- package/build-module/components/posts-app/index.js +0 -20
- package/build-module/components/posts-app/index.js.map +0 -7
- package/build-module/components/posts-app-routes/index.js +0 -21
- package/build-module/components/posts-app-routes/index.js.map +0 -7
- package/build-module/components/posts-app-routes/post-item.js +0 -26
- package/build-module/components/posts-app-routes/post-item.js.map +0 -7
- package/build-module/components/posts-app-routes/posts.js +0 -71
- package/build-module/components/posts-app-routes/posts.js.map +0 -7
- package/build-module/posts.js +0 -68
- package/build-module/posts.js.map +0 -7
- package/build-style/posts-rtl.css +0 -3105
- package/build-style/posts.css +0 -3105
- package/src/components/posts-app/index.js +0 -27
- package/src/components/posts-app-routes/index.js +0 -25
- package/src/components/posts-app-routes/post-item.js +0 -27
- package/src/components/posts-app-routes/posts.js +0 -79
- package/src/posts.js +0 -91
- package/src/posts.scss +0 -57
|
@@ -1234,45 +1234,8 @@
|
|
|
1234
1234
|
grid-column: span 2;
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
|
-
.dataviews-
|
|
1238
|
-
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
.dataviews-field-control__actions {
|
|
1242
|
-
position: absolute;
|
|
1243
|
-
top: -9999em;
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
.dataviews-field-control__actions.dataviews-field-control__actions {
|
|
1247
|
-
gap: 4px;
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
.dataviews-field-control__field:hover .dataviews-field-control__actions,
|
|
1251
|
-
.dataviews-field-control__field:focus-within .dataviews-field-control__actions,
|
|
1252
|
-
.dataviews-field-control__field.is-interacting .dataviews-field-control__actions {
|
|
1253
|
-
position: unset;
|
|
1254
|
-
top: unset;
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
.dataviews-field-control__icon {
|
|
1258
|
-
display: flex;
|
|
1259
|
-
width: 24px;
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
.dataviews-field-control__label-sub-label-container {
|
|
1263
|
-
flex-grow: 1;
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
.dataviews-field-control__label {
|
|
1267
|
-
display: block;
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
.dataviews-field-control__sub-label {
|
|
1271
|
-
margin-top: 8px;
|
|
1272
|
-
margin-bottom: 0;
|
|
1273
|
-
font-size: 11px;
|
|
1274
|
-
font-style: normal;
|
|
1275
|
-
color: #757575;
|
|
1237
|
+
.dataviews-view-config__label {
|
|
1238
|
+
text-wrap: nowrap;
|
|
1276
1239
|
}
|
|
1277
1240
|
|
|
1278
1241
|
.dataviews-view-grid-items {
|
|
@@ -1758,7 +1721,6 @@ div.dataviews-view-list {
|
|
|
1758
1721
|
.dataviews-view-table td.dataviews-view-table__checkbox-column,
|
|
1759
1722
|
.dataviews-view-table th.dataviews-view-table__checkbox-column {
|
|
1760
1723
|
padding-left: 0;
|
|
1761
|
-
width: 1%;
|
|
1762
1724
|
}
|
|
1763
1725
|
|
|
1764
1726
|
.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,
|
|
@@ -1880,6 +1842,7 @@ div.dataviews-view-list {
|
|
|
1880
1842
|
min-height: 32px;
|
|
1881
1843
|
display: flex;
|
|
1882
1844
|
align-items: center;
|
|
1845
|
+
white-space: nowrap;
|
|
1883
1846
|
}
|
|
1884
1847
|
|
|
1885
1848
|
.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end {
|
|
@@ -2003,6 +1966,11 @@ div.dataviews-view-list {
|
|
|
2003
1966
|
color: #1e1e1e;
|
|
2004
1967
|
}
|
|
2005
1968
|
|
|
1969
|
+
/* Column width intents via colgroup: make non-primary columns shrink-to-fit */
|
|
1970
|
+
.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-primary) {
|
|
1971
|
+
width: 1%;
|
|
1972
|
+
}
|
|
1973
|
+
|
|
2006
1974
|
.dataviews-view-picker-grid .dataviews-view-picker-grid__card {
|
|
2007
1975
|
height: 100%;
|
|
2008
1976
|
justify-content: flex-start;
|
|
@@ -2162,6 +2130,35 @@ div.dataviews-view-list {
|
|
|
2162
2130
|
padding: 0 48px;
|
|
2163
2131
|
}
|
|
2164
2132
|
|
|
2133
|
+
.dataviews-view-picker-table tbody:focus-visible[aria-activedescendant] {
|
|
2134
|
+
outline: none;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
.dataviews-view-picker-table tbody:focus-visible [data-active-item=true] {
|
|
2138
|
+
outline: 2px solid var(--wp-admin-theme-color);
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
.dataviews-view-picker-table .dataviews-selection-checkbox .components-checkbox-control__input.components-checkbox-control__input {
|
|
2142
|
+
pointer-events: none;
|
|
2143
|
+
opacity: 1;
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
.dataviews-view-picker-table .dataviews-view-table__row {
|
|
2147
|
+
cursor: pointer;
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
.dataviews-view-picker-table .dataviews-view-table__row.is-selected {
|
|
2151
|
+
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.04);
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
.dataviews-view-picker-table .dataviews-view-table__row.is-hovered {
|
|
2155
|
+
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08);
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
.dataviews-view-picker-table .dataviews-view-table__row.is-selected.is-hovered {
|
|
2159
|
+
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.12);
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2165
2162
|
.dataviews-controls__datetime {
|
|
2166
2163
|
border: none;
|
|
2167
2164
|
padding: 0;
|
|
@@ -2300,6 +2297,10 @@ div.dataviews-view-list {
|
|
|
2300
2297
|
gap: 16px;
|
|
2301
2298
|
}
|
|
2302
2299
|
|
|
2300
|
+
.dataforms-layouts-details__content {
|
|
2301
|
+
padding-top: 12px;
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2303
2304
|
.dataforms-layouts-row__field-control {
|
|
2304
2305
|
width: 100%;
|
|
2305
2306
|
}
|
package/build-style/style.css
CHANGED
|
@@ -1234,45 +1234,8 @@
|
|
|
1234
1234
|
grid-column: span 2;
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
|
-
.dataviews-
|
|
1238
|
-
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
.dataviews-field-control__actions {
|
|
1242
|
-
position: absolute;
|
|
1243
|
-
top: -9999em;
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
.dataviews-field-control__actions.dataviews-field-control__actions {
|
|
1247
|
-
gap: 4px;
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
.dataviews-field-control__field:hover .dataviews-field-control__actions,
|
|
1251
|
-
.dataviews-field-control__field:focus-within .dataviews-field-control__actions,
|
|
1252
|
-
.dataviews-field-control__field.is-interacting .dataviews-field-control__actions {
|
|
1253
|
-
position: unset;
|
|
1254
|
-
top: unset;
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
.dataviews-field-control__icon {
|
|
1258
|
-
display: flex;
|
|
1259
|
-
width: 24px;
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
.dataviews-field-control__label-sub-label-container {
|
|
1263
|
-
flex-grow: 1;
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
.dataviews-field-control__label {
|
|
1267
|
-
display: block;
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
.dataviews-field-control__sub-label {
|
|
1271
|
-
margin-top: 8px;
|
|
1272
|
-
margin-bottom: 0;
|
|
1273
|
-
font-size: 11px;
|
|
1274
|
-
font-style: normal;
|
|
1275
|
-
color: #757575;
|
|
1237
|
+
.dataviews-view-config__label {
|
|
1238
|
+
text-wrap: nowrap;
|
|
1276
1239
|
}
|
|
1277
1240
|
|
|
1278
1241
|
.dataviews-view-grid-items {
|
|
@@ -1758,7 +1721,6 @@ div.dataviews-view-list {
|
|
|
1758
1721
|
.dataviews-view-table td.dataviews-view-table__checkbox-column,
|
|
1759
1722
|
.dataviews-view-table th.dataviews-view-table__checkbox-column {
|
|
1760
1723
|
padding-right: 0;
|
|
1761
|
-
width: 1%;
|
|
1762
1724
|
}
|
|
1763
1725
|
|
|
1764
1726
|
.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,
|
|
@@ -1880,6 +1842,7 @@ div.dataviews-view-list {
|
|
|
1880
1842
|
min-height: 32px;
|
|
1881
1843
|
display: flex;
|
|
1882
1844
|
align-items: center;
|
|
1845
|
+
white-space: nowrap;
|
|
1883
1846
|
}
|
|
1884
1847
|
|
|
1885
1848
|
.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end {
|
|
@@ -2003,6 +1966,11 @@ div.dataviews-view-list {
|
|
|
2003
1966
|
color: #1e1e1e;
|
|
2004
1967
|
}
|
|
2005
1968
|
|
|
1969
|
+
/* Column width intents via colgroup: make non-primary columns shrink-to-fit */
|
|
1970
|
+
.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-primary) {
|
|
1971
|
+
width: 1%;
|
|
1972
|
+
}
|
|
1973
|
+
|
|
2006
1974
|
.dataviews-view-picker-grid .dataviews-view-picker-grid__card {
|
|
2007
1975
|
height: 100%;
|
|
2008
1976
|
justify-content: flex-start;
|
|
@@ -2162,6 +2130,35 @@ div.dataviews-view-list {
|
|
|
2162
2130
|
padding: 0 48px;
|
|
2163
2131
|
}
|
|
2164
2132
|
|
|
2133
|
+
.dataviews-view-picker-table tbody:focus-visible[aria-activedescendant] {
|
|
2134
|
+
outline: none;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
.dataviews-view-picker-table tbody:focus-visible [data-active-item=true] {
|
|
2138
|
+
outline: 2px solid var(--wp-admin-theme-color);
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
.dataviews-view-picker-table .dataviews-selection-checkbox .components-checkbox-control__input.components-checkbox-control__input {
|
|
2142
|
+
pointer-events: none;
|
|
2143
|
+
opacity: 1;
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
.dataviews-view-picker-table .dataviews-view-table__row {
|
|
2147
|
+
cursor: pointer;
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
.dataviews-view-picker-table .dataviews-view-table__row.is-selected {
|
|
2151
|
+
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.04);
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
.dataviews-view-picker-table .dataviews-view-table__row.is-hovered {
|
|
2155
|
+
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08);
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
.dataviews-view-picker-table .dataviews-view-table__row.is-selected.is-hovered {
|
|
2159
|
+
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.12);
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2165
2162
|
.dataviews-controls__datetime {
|
|
2166
2163
|
border: none;
|
|
2167
2164
|
padding: 0;
|
|
@@ -2300,6 +2297,10 @@ div.dataviews-view-list {
|
|
|
2300
2297
|
gap: 16px;
|
|
2301
2298
|
}
|
|
2302
2299
|
|
|
2300
|
+
.dataforms-layouts-details__content {
|
|
2301
|
+
padding-top: 12px;
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2303
2304
|
.dataforms-layouts-row__field-control {
|
|
2304
2305
|
width: 100%;
|
|
2305
2306
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.35.1-next.16d95556a.0",
|
|
4
4
|
"description": "Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -40,50 +40,50 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@react-spring/web": "^9.4.5",
|
|
43
|
-
"@wordpress/a11y": "^4.
|
|
44
|
-
"@wordpress/admin-ui": "^1.
|
|
45
|
-
"@wordpress/api-fetch": "^7.
|
|
46
|
-
"@wordpress/base-styles": "^6.
|
|
47
|
-
"@wordpress/blob": "^4.
|
|
48
|
-
"@wordpress/block-editor": "^15.
|
|
49
|
-
"@wordpress/block-library": "^9.
|
|
50
|
-
"@wordpress/blocks": "^15.
|
|
51
|
-
"@wordpress/commands": "^1.
|
|
52
|
-
"@wordpress/components": "^30.
|
|
53
|
-
"@wordpress/compose": "^7.
|
|
54
|
-
"@wordpress/core-data": "^7.
|
|
55
|
-
"@wordpress/data": "^10.
|
|
56
|
-
"@wordpress/dataviews": "^10.3.1-next.
|
|
57
|
-
"@wordpress/date": "^5.
|
|
58
|
-
"@wordpress/deprecated": "^4.
|
|
59
|
-
"@wordpress/dom": "^4.
|
|
60
|
-
"@wordpress/editor": "^14.
|
|
61
|
-
"@wordpress/element": "^6.
|
|
62
|
-
"@wordpress/escape-html": "^3.
|
|
63
|
-
"@wordpress/fields": "^0.
|
|
64
|
-
"@wordpress/global-styles-engine": "^1.
|
|
65
|
-
"@wordpress/global-styles-ui": "^1.
|
|
66
|
-
"@wordpress/hooks": "^4.
|
|
67
|
-
"@wordpress/html-entities": "^4.
|
|
68
|
-
"@wordpress/i18n": "^6.
|
|
69
|
-
"@wordpress/icons": "^11.
|
|
70
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
71
|
-
"@wordpress/keycodes": "^4.
|
|
72
|
-
"@wordpress/media-utils": "^5.
|
|
73
|
-
"@wordpress/notices": "^5.
|
|
74
|
-
"@wordpress/patterns": "^2.
|
|
75
|
-
"@wordpress/plugins": "^7.
|
|
76
|
-
"@wordpress/preferences": "^4.
|
|
77
|
-
"@wordpress/primitives": "^4.
|
|
78
|
-
"@wordpress/private-apis": "^1.
|
|
79
|
-
"@wordpress/reusable-blocks": "^5.
|
|
80
|
-
"@wordpress/router": "^1.
|
|
81
|
-
"@wordpress/style-engine": "^2.
|
|
82
|
-
"@wordpress/url": "^4.
|
|
83
|
-
"@wordpress/viewport": "^6.
|
|
84
|
-
"@wordpress/views": "^1.
|
|
85
|
-
"@wordpress/widgets": "^4.
|
|
86
|
-
"@wordpress/wordcount": "^4.
|
|
43
|
+
"@wordpress/a11y": "^4.35.1-next.16d95556a.0",
|
|
44
|
+
"@wordpress/admin-ui": "^1.3.1-next.16d95556a.0",
|
|
45
|
+
"@wordpress/api-fetch": "^7.35.1-next.16d95556a.0",
|
|
46
|
+
"@wordpress/base-styles": "^6.11.1-next.16d95556a.0",
|
|
47
|
+
"@wordpress/blob": "^4.35.1-next.16d95556a.0",
|
|
48
|
+
"@wordpress/block-editor": "^15.8.1-next.16d95556a.0",
|
|
49
|
+
"@wordpress/block-library": "^9.35.1-next.16d95556a.0",
|
|
50
|
+
"@wordpress/blocks": "^15.8.1-next.16d95556a.0",
|
|
51
|
+
"@wordpress/commands": "^1.35.1-next.16d95556a.0",
|
|
52
|
+
"@wordpress/components": "^30.8.1-next.16d95556a.0",
|
|
53
|
+
"@wordpress/compose": "^7.35.1-next.16d95556a.0",
|
|
54
|
+
"@wordpress/core-data": "^7.35.1-next.16d95556a.0",
|
|
55
|
+
"@wordpress/data": "^10.35.1-next.16d95556a.0",
|
|
56
|
+
"@wordpress/dataviews": "^10.3.1-next.16d95556a.0",
|
|
57
|
+
"@wordpress/date": "^5.35.1-next.16d95556a.0",
|
|
58
|
+
"@wordpress/deprecated": "^4.35.1-next.16d95556a.0",
|
|
59
|
+
"@wordpress/dom": "^4.35.1-next.16d95556a.0",
|
|
60
|
+
"@wordpress/editor": "^14.35.1-next.16d95556a.0",
|
|
61
|
+
"@wordpress/element": "^6.35.1-next.16d95556a.0",
|
|
62
|
+
"@wordpress/escape-html": "^3.35.1-next.16d95556a.0",
|
|
63
|
+
"@wordpress/fields": "^0.27.1-next.16d95556a.0",
|
|
64
|
+
"@wordpress/global-styles-engine": "^1.2.1-next.16d95556a.0",
|
|
65
|
+
"@wordpress/global-styles-ui": "^1.2.1-next.16d95556a.0",
|
|
66
|
+
"@wordpress/hooks": "^4.35.1-next.16d95556a.0",
|
|
67
|
+
"@wordpress/html-entities": "^4.35.1-next.16d95556a.0",
|
|
68
|
+
"@wordpress/i18n": "^6.8.1-next.16d95556a.0",
|
|
69
|
+
"@wordpress/icons": "^11.2.1-next.16d95556a.0",
|
|
70
|
+
"@wordpress/keyboard-shortcuts": "^5.35.1-next.16d95556a.0",
|
|
71
|
+
"@wordpress/keycodes": "^4.35.1-next.16d95556a.0",
|
|
72
|
+
"@wordpress/media-utils": "^5.35.1-next.16d95556a.0",
|
|
73
|
+
"@wordpress/notices": "^5.35.1-next.16d95556a.0",
|
|
74
|
+
"@wordpress/patterns": "^2.35.1-next.16d95556a.0",
|
|
75
|
+
"@wordpress/plugins": "^7.35.1-next.16d95556a.0",
|
|
76
|
+
"@wordpress/preferences": "^4.35.1-next.16d95556a.0",
|
|
77
|
+
"@wordpress/primitives": "^4.35.1-next.16d95556a.0",
|
|
78
|
+
"@wordpress/private-apis": "^1.35.1-next.16d95556a.0",
|
|
79
|
+
"@wordpress/reusable-blocks": "^5.35.1-next.16d95556a.0",
|
|
80
|
+
"@wordpress/router": "^1.35.1-next.16d95556a.0",
|
|
81
|
+
"@wordpress/style-engine": "^2.35.1-next.16d95556a.0",
|
|
82
|
+
"@wordpress/url": "^4.35.1-next.16d95556a.0",
|
|
83
|
+
"@wordpress/viewport": "^6.35.1-next.16d95556a.0",
|
|
84
|
+
"@wordpress/views": "^1.2.1-next.16d95556a.0",
|
|
85
|
+
"@wordpress/widgets": "^4.35.1-next.16d95556a.0",
|
|
86
|
+
"@wordpress/wordcount": "^4.35.1-next.16d95556a.0",
|
|
87
87
|
"change-case": "^4.1.2",
|
|
88
88
|
"clsx": "^2.1.1",
|
|
89
89
|
"colord": "^2.9.2",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"publishConfig": {
|
|
99
99
|
"access": "public"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "59a9383612bbe16e21af84d13b035bfbca7fe833"
|
|
102
102
|
}
|
|
@@ -110,10 +110,7 @@ function getNavigationPath( location, postType ) {
|
|
|
110
110
|
return addQueryArgs( path, { canvas: undefined } );
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
export default function EditSiteEditor( {
|
|
114
|
-
isHomeRoute = false,
|
|
115
|
-
isPostsList = false,
|
|
116
|
-
} ) {
|
|
113
|
+
export default function EditSiteEditor( { isHomeRoute = false } ) {
|
|
117
114
|
const disableMotion = useReducedMotion();
|
|
118
115
|
const location = useLocation();
|
|
119
116
|
const { canvas = 'view' } = location.query;
|
|
@@ -258,31 +255,18 @@ export default function EditSiteEditor( {
|
|
|
258
255
|
tooltipPosition="middle right"
|
|
259
256
|
onClick={ () => {
|
|
260
257
|
resetZoomLevel();
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
258
|
+
history.navigate(
|
|
259
|
+
getNavigationPath(
|
|
260
|
+
location,
|
|
261
|
+
postWithTemplate
|
|
262
|
+
? context.postType
|
|
263
|
+
: postType
|
|
264
|
+
),
|
|
265
|
+
{
|
|
269
266
|
transition:
|
|
270
267
|
'canvas-mode-view-transition',
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
history.navigate(
|
|
274
|
-
getNavigationPath(
|
|
275
|
-
location,
|
|
276
|
-
postWithTemplate
|
|
277
|
-
? context.postType
|
|
278
|
-
: postType
|
|
279
|
-
),
|
|
280
|
-
{
|
|
281
|
-
transition:
|
|
282
|
-
'canvas-mode-view-transition',
|
|
283
|
-
}
|
|
284
|
-
);
|
|
285
|
-
}
|
|
268
|
+
}
|
|
269
|
+
);
|
|
286
270
|
} }
|
|
287
271
|
>
|
|
288
272
|
<motion.div
|
|
@@ -106,7 +106,7 @@ export default function DataviewsPatterns() {
|
|
|
106
106
|
slug: categoryId,
|
|
107
107
|
defaultView: DEFAULT_VIEW,
|
|
108
108
|
queryParams: {
|
|
109
|
-
page:
|
|
109
|
+
page: query.pageNumber,
|
|
110
110
|
search: query.search,
|
|
111
111
|
},
|
|
112
112
|
onChangeQueryParams: ( params ) => {
|
package/src/index.js
CHANGED
|
@@ -107,7 +107,3 @@ export function reinitializeEditor() {
|
|
|
107
107
|
export { default as PluginTemplateSettingPanel } from './components/plugin-template-setting-panel';
|
|
108
108
|
export { store } from './store';
|
|
109
109
|
export * from './deprecated';
|
|
110
|
-
|
|
111
|
-
// Temporary: While the posts dashboard is being iterated on
|
|
112
|
-
// it's being built in the same package as the site editor.
|
|
113
|
-
export { initializePostsDashboard } from './posts';
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// packages/edit-site/src/components/posts-app/index.js
|
|
31
|
-
var posts_app_exports = {};
|
|
32
|
-
__export(posts_app_exports, {
|
|
33
|
-
default: () => PostsApp
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(posts_app_exports);
|
|
36
|
-
var import_router = require("@wordpress/router");
|
|
37
|
-
var import_data = require("@wordpress/data");
|
|
38
|
-
var import_layout = __toESM(require("../layout"));
|
|
39
|
-
var import_posts_app_routes = require("../posts-app-routes");
|
|
40
|
-
var import_lock_unlock = require("../../lock-unlock");
|
|
41
|
-
var import_store = require("../../store");
|
|
42
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
43
|
-
var { RouterProvider } = (0, import_lock_unlock.unlock)(import_router.privateApis);
|
|
44
|
-
function PostsApp() {
|
|
45
|
-
(0, import_posts_app_routes.useRegisterPostsAppRoutes)();
|
|
46
|
-
const routes = (0, import_data.useSelect)((select) => {
|
|
47
|
-
return (0, import_lock_unlock.unlock)(select(import_store.store)).getRoutes();
|
|
48
|
-
}, []);
|
|
49
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RouterProvider, { routes, pathArg: "p", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_layout.default, {}) });
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/posts-app/index.js"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport Layout from '../layout';\nimport { useRegisterPostsAppRoutes } from '../posts-app-routes';\nimport { unlock } from '../../lock-unlock';\nimport { store as editSiteStore } from '../../store';\n\nconst { RouterProvider } = unlock( routerPrivateApis );\n\nexport default function PostsApp() {\n\tuseRegisterPostsAppRoutes();\n\tconst routes = useSelect( ( select ) => {\n\t\treturn unlock( select( editSiteStore ) ).getRoutes();\n\t}, [] );\n\treturn (\n\t\t<RouterProvider routes={ routes } pathArg=\"p\">\n\t\t\t<Layout />\n\t\t</RouterProvider>\n\t);\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAAiD;AACjD,kBAA0B;AAK1B,oBAAmB;AACnB,8BAA0C;AAC1C,yBAAuB;AACvB,mBAAuC;AAWpC;AATH,IAAM,EAAE,eAAe,QAAI,2BAAQ,cAAAA,WAAkB;AAEtC,SAAR,WAA4B;AAClC,yDAA0B;AAC1B,QAAM,aAAS,uBAAW,CAAE,WAAY;AACvC,eAAO,2BAAQ,OAAQ,aAAAC,KAAc,CAAE,EAAE,UAAU;AAAA,EACpD,GAAG,CAAC,CAAE;AACN,SACC,4CAAC,kBAAe,QAAkB,SAAQ,KACzC,sDAAC,cAAAC,SAAA,EAAO,GACT;AAEF;",
|
|
6
|
-
"names": ["routerPrivateApis", "editSiteStore", "Layout"]
|
|
7
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// packages/edit-site/src/components/posts-app-routes/index.js
|
|
21
|
-
var posts_app_routes_exports = {};
|
|
22
|
-
__export(posts_app_routes_exports, {
|
|
23
|
-
useRegisterPostsAppRoutes: () => useRegisterPostsAppRoutes
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(posts_app_routes_exports);
|
|
26
|
-
var import_data = require("@wordpress/data");
|
|
27
|
-
var import_element = require("@wordpress/element");
|
|
28
|
-
var import_lock_unlock = require("../../lock-unlock");
|
|
29
|
-
var import_store = require("../../store");
|
|
30
|
-
var import_posts = require("./posts");
|
|
31
|
-
var import_post_item = require("./post-item");
|
|
32
|
-
var routes = [import_post_item.postItemRoute, import_posts.postsRoute];
|
|
33
|
-
function useRegisterPostsAppRoutes() {
|
|
34
|
-
const registry = (0, import_data.useRegistry)();
|
|
35
|
-
const { registerRoute } = (0, import_lock_unlock.unlock)((0, import_data.useDispatch)(import_store.store));
|
|
36
|
-
(0, import_element.useEffect)(() => {
|
|
37
|
-
registry.batch(() => {
|
|
38
|
-
routes.forEach(registerRoute);
|
|
39
|
-
});
|
|
40
|
-
}, [registry, registerRoute]);
|
|
41
|
-
}
|
|
42
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
-
0 && (module.exports = {
|
|
44
|
-
useRegisterPostsAppRoutes
|
|
45
|
-
});
|
|
46
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/posts-app-routes/index.js"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useRegistry, useDispatch } from '@wordpress/data';\nimport { useEffect } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\nimport { store as siteEditorStore } from '../../store';\nimport { postsRoute } from './posts';\nimport { postItemRoute } from './post-item';\n\nconst routes = [ postItemRoute, postsRoute ];\n\nexport function useRegisterPostsAppRoutes() {\n\tconst registry = useRegistry();\n\tconst { registerRoute } = unlock( useDispatch( siteEditorStore ) );\n\tuseEffect( () => {\n\t\tregistry.batch( () => {\n\t\t\troutes.forEach( registerRoute );\n\t\t} );\n\t}, [ registry, registerRoute ] );\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAyC;AACzC,qBAA0B;AAK1B,yBAAuB;AACvB,mBAAyC;AACzC,mBAA2B;AAC3B,uBAA8B;AAE9B,IAAM,SAAS,CAAE,gCAAe,uBAAW;AAEpC,SAAS,4BAA4B;AAC3C,QAAM,eAAW,yBAAY;AAC7B,QAAM,EAAE,cAAc,QAAI,+BAAQ,yBAAa,aAAAA,KAAgB,CAAE;AACjE,gCAAW,MAAM;AAChB,aAAS,MAAO,MAAM;AACrB,aAAO,QAAS,aAAc;AAAA,IAC/B,CAAE;AAAA,EACH,GAAG,CAAE,UAAU,aAAc,CAAE;AAChC;",
|
|
6
|
-
"names": ["siteEditorStore"]
|
|
7
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// packages/edit-site/src/components/posts-app-routes/post-item.js
|
|
31
|
-
var post_item_exports = {};
|
|
32
|
-
__export(post_item_exports, {
|
|
33
|
-
postItemRoute: () => postItemRoute
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(post_item_exports);
|
|
36
|
-
var import_i18n = require("@wordpress/i18n");
|
|
37
|
-
var import_editor = __toESM(require("../editor"));
|
|
38
|
-
var import_sidebar_dataviews = __toESM(require("../sidebar-dataviews"));
|
|
39
|
-
var import_sidebar_navigation_screen = __toESM(require("../sidebar-navigation-screen"));
|
|
40
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
|
-
var postItemRoute = {
|
|
42
|
-
name: "post-item",
|
|
43
|
-
path: "/post/:postId",
|
|
44
|
-
areas: {
|
|
45
|
-
sidebar: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
46
|
-
import_sidebar_navigation_screen.default,
|
|
47
|
-
{
|
|
48
|
-
title: (0, import_i18n.__)("Posts"),
|
|
49
|
-
isRoot: true,
|
|
50
|
-
content: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar_dataviews.default, { postType: "post" })
|
|
51
|
-
}
|
|
52
|
-
),
|
|
53
|
-
mobile: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_editor.default, { isPostsList: true }),
|
|
54
|
-
preview: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_editor.default, { isPostsList: true })
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
58
|
-
0 && (module.exports = {
|
|
59
|
-
postItemRoute
|
|
60
|
-
});
|
|
61
|
-
//# sourceMappingURL=post-item.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/posts-app-routes/post-item.js"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport Editor from '../editor';\nimport DataViewsSidebarContent from '../sidebar-dataviews';\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\n\nexport const postItemRoute = {\n\tname: 'post-item',\n\tpath: '/post/:postId',\n\tareas: {\n\t\tsidebar: (\n\t\t\t<SidebarNavigationScreen\n\t\t\t\ttitle={ __( 'Posts' ) }\n\t\t\t\tisRoot\n\t\t\t\tcontent={ <DataViewsSidebarContent postType=\"post\" /> }\n\t\t\t/>\n\t\t),\n\t\tmobile: <Editor isPostsList />,\n\t\tpreview: <Editor isPostsList />,\n\t},\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAmB;AAKnB,oBAAmB;AACnB,+BAAoC;AACpC,uCAAoC;AAUtB;AARP,IAAM,gBAAgB;AAAA,EAC5B,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,IACN,SACC;AAAA,MAAC,iCAAAA;AAAA,MAAA;AAAA,QACA,WAAQ,gBAAI,OAAQ;AAAA,QACpB,QAAM;AAAA,QACN,SAAU,4CAAC,yBAAAC,SAAA,EAAwB,UAAS,QAAO;AAAA;AAAA,IACpD;AAAA,IAED,QAAQ,4CAAC,cAAAC,SAAA,EAAO,aAAW,MAAC;AAAA,IAC5B,SAAS,4CAAC,cAAAA,SAAA,EAAO,aAAW,MAAC;AAAA,EAC9B;AACD;",
|
|
6
|
-
"names": ["SidebarNavigationScreen", "DataViewsSidebarContent", "Editor"]
|
|
7
|
-
}
|