@wordpress/edit-site 6.27.1-next.46f643fa0.0 → 6.28.1-next.0f6f9d12c.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/media/index.js +1 -1
- package/build/components/media/index.js.map +1 -1
- package/build/components/page-templates/fields.js +1 -4
- package/build/components/page-templates/fields.js.map +1 -1
- package/build/components/page-templates/hooks.js +1 -2
- package/build/components/page-templates/hooks.js.map +1 -1
- package/build/components/page-templates/index.js +1 -8
- package/build/components/page-templates/index.js.map +1 -1
- package/build/components/post-edit/index.js +10 -4
- package/build/components/post-edit/index.js.map +1 -1
- package/build/components/post-list/index.js +1 -30
- package/build/components/post-list/index.js.map +1 -1
- package/build/components/sidebar-dataviews/default-views.js +53 -37
- package/build/components/sidebar-dataviews/default-views.js.map +1 -1
- package/build/components/style-book/index.js +2 -2
- package/build/components/style-book/index.js.map +1 -1
- package/build/store/selectors.js +1 -1
- package/build/store/selectors.js.map +1 -1
- package/build-module/components/media/index.js +1 -1
- package/build-module/components/media/index.js.map +1 -1
- package/build-module/components/page-templates/fields.js +1 -4
- package/build-module/components/page-templates/fields.js.map +1 -1
- package/build-module/components/page-templates/hooks.js +1 -2
- package/build-module/components/page-templates/hooks.js.map +1 -1
- package/build-module/components/page-templates/index.js +1 -8
- package/build-module/components/page-templates/index.js.map +1 -1
- package/build-module/components/post-edit/index.js +10 -4
- package/build-module/components/post-edit/index.js.map +1 -1
- package/build-module/components/post-list/index.js +1 -30
- package/build-module/components/post-list/index.js.map +1 -1
- package/build-module/components/sidebar-dataviews/default-views.js +53 -37
- package/build-module/components/sidebar-dataviews/default-views.js.map +1 -1
- package/build-module/components/style-book/index.js +2 -2
- package/build-module/components/style-book/index.js.map +1 -1
- package/build-module/store/selectors.js +1 -1
- package/build-module/store/selectors.js.map +1 -1
- package/build-style/posts-rtl.css +78 -24
- package/build-style/posts.css +78 -24
- package/build-style/style-rtl.css +112 -51
- package/build-style/style.css +112 -51
- package/package.json +42 -42
- package/src/components/global-styles-sidebar/style.scss +0 -19
- package/src/components/media/index.js +1 -1
- package/src/components/page-templates/fields.js +1 -7
- package/src/components/page-templates/hooks.js +7 -7
- package/src/components/page-templates/index.js +0 -7
- package/src/components/page-templates/style.scss +0 -12
- package/src/components/post-edit/index.js +10 -4
- package/src/components/post-list/index.js +1 -42
- package/src/components/sidebar-dataviews/default-views.js +63 -47
- package/src/components/style-book/index.js +2 -2
- package/src/store/selectors.js +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/build-style/style.css
CHANGED
|
@@ -281,6 +281,10 @@
|
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
+
.dataviews-loading-more {
|
|
285
|
+
text-align: center;
|
|
286
|
+
}
|
|
287
|
+
|
|
284
288
|
@container (max-width: 430px) {
|
|
285
289
|
.dataviews__view-actions,
|
|
286
290
|
.dataviews-filters__container {
|
|
@@ -449,10 +453,13 @@
|
|
|
449
453
|
align-items: center;
|
|
450
454
|
box-sizing: border-box;
|
|
451
455
|
}
|
|
456
|
+
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable {
|
|
457
|
+
cursor: default;
|
|
458
|
+
}
|
|
452
459
|
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset {
|
|
453
460
|
padding-inline-end: 28px;
|
|
454
461
|
}
|
|
455
|
-
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true] {
|
|
462
|
+
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable), .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true] {
|
|
456
463
|
background: #e0e0e0;
|
|
457
464
|
color: #1e1e1e;
|
|
458
465
|
}
|
|
@@ -1100,7 +1107,6 @@
|
|
|
1100
1107
|
}
|
|
1101
1108
|
.dataviews-view-grid .dataviews-view-grid__media {
|
|
1102
1109
|
width: 100%;
|
|
1103
|
-
min-height: 200px;
|
|
1104
1110
|
aspect-ratio: 1/1;
|
|
1105
1111
|
background-color: #fff;
|
|
1106
1112
|
border-radius: 4px;
|
|
@@ -1142,6 +1148,9 @@
|
|
|
1142
1148
|
.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name {
|
|
1143
1149
|
width: 35%;
|
|
1144
1150
|
color: #757575;
|
|
1151
|
+
overflow: hidden;
|
|
1152
|
+
text-overflow: ellipsis;
|
|
1153
|
+
white-space: nowrap;
|
|
1145
1154
|
}
|
|
1146
1155
|
.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value {
|
|
1147
1156
|
width: 65%;
|
|
@@ -1184,8 +1193,8 @@
|
|
|
1184
1193
|
}
|
|
1185
1194
|
|
|
1186
1195
|
.dataviews-view-grid__group-header {
|
|
1187
|
-
font-size:
|
|
1188
|
-
font-weight:
|
|
1196
|
+
font-size: 15px;
|
|
1197
|
+
font-weight: 500;
|
|
1189
1198
|
color: #1e1e1e;
|
|
1190
1199
|
margin: 0 0 8px 0;
|
|
1191
1200
|
padding: 0 48px;
|
|
@@ -1198,73 +1207,100 @@ div.dataviews-view-list {
|
|
|
1198
1207
|
.dataviews-view-list {
|
|
1199
1208
|
margin: 0 0 auto;
|
|
1200
1209
|
}
|
|
1201
|
-
.dataviews-view-list div[role=row]
|
|
1210
|
+
.dataviews-view-list div[role=row],
|
|
1211
|
+
.dataviews-view-list div[role=article] {
|
|
1202
1212
|
margin: 0;
|
|
1203
1213
|
border-top: 1px solid #f0f0f0;
|
|
1204
1214
|
}
|
|
1205
|
-
.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper
|
|
1215
|
+
.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper,
|
|
1216
|
+
.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper {
|
|
1206
1217
|
position: relative;
|
|
1207
1218
|
padding: 16px 24px;
|
|
1208
1219
|
box-sizing: border-box;
|
|
1209
1220
|
}
|
|
1210
|
-
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions
|
|
1221
|
+
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions,
|
|
1222
|
+
.dataviews-view-list div[role=article] .dataviews-view-list__item-actions {
|
|
1211
1223
|
display: flex;
|
|
1212
1224
|
width: max-content;
|
|
1213
1225
|
flex: 0 0 auto;
|
|
1214
1226
|
gap: 4px;
|
|
1215
1227
|
}
|
|
1216
|
-
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button
|
|
1228
|
+
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button,
|
|
1229
|
+
.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button {
|
|
1217
1230
|
position: relative;
|
|
1218
1231
|
z-index: 1;
|
|
1219
1232
|
}
|
|
1220
|
-
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions > div
|
|
1233
|
+
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions > div,
|
|
1234
|
+
.dataviews-view-list div[role=article] .dataviews-view-list__item-actions > div {
|
|
1221
1235
|
height: 24px;
|
|
1222
1236
|
}
|
|
1223
|
-
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions > :not(:last-child)
|
|
1237
|
+
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions > :not(:last-child),
|
|
1238
|
+
.dataviews-view-list div[role=article] .dataviews-view-list__item-actions > :not(:last-child) {
|
|
1224
1239
|
flex: 0;
|
|
1225
1240
|
overflow: hidden;
|
|
1226
1241
|
width: 0;
|
|
1227
1242
|
}
|
|
1228
|
-
.dataviews-view-list div[role=row]:where(.is-selected, .is-hovered, :focus-within) .dataviews-view-list__item-actions > :not(:last-child)
|
|
1243
|
+
.dataviews-view-list div[role=row]:where(.is-selected, .is-hovered, :focus-within) .dataviews-view-list__item-actions > :not(:last-child),
|
|
1244
|
+
.dataviews-view-list div[role=article]:where(.is-selected, .is-hovered, :focus-within) .dataviews-view-list__item-actions > :not(:last-child) {
|
|
1229
1245
|
flex-basis: min-content;
|
|
1230
1246
|
width: auto;
|
|
1231
1247
|
overflow: unset;
|
|
1232
1248
|
}
|
|
1233
1249
|
@media (hover: none) {
|
|
1234
|
-
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions > :not(:last-child)
|
|
1250
|
+
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions > :not(:last-child),
|
|
1251
|
+
.dataviews-view-list div[role=article] .dataviews-view-list__item-actions > :not(:last-child) {
|
|
1235
1252
|
flex-basis: min-content;
|
|
1236
1253
|
width: auto;
|
|
1237
1254
|
overflow: unset;
|
|
1238
1255
|
}
|
|
1239
1256
|
}
|
|
1240
|
-
.dataviews-view-list div[role=row].is-selected.is-selected
|
|
1257
|
+
.dataviews-view-list div[role=row].is-selected.is-selected,
|
|
1258
|
+
.dataviews-view-list div[role=article].is-selected.is-selected {
|
|
1241
1259
|
border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12);
|
|
1242
1260
|
}
|
|
1243
|
-
.dataviews-view-list div[role=row].is-selected.is-selected + div[role=row]
|
|
1261
|
+
.dataviews-view-list div[role=row].is-selected.is-selected + div[role=row], .dataviews-view-list div[role=row].is-selected.is-selected + div[role=article],
|
|
1262
|
+
.dataviews-view-list div[role=article].is-selected.is-selected + div[role=row],
|
|
1263
|
+
.dataviews-view-list div[role=article].is-selected.is-selected + div[role=article] {
|
|
1244
1264
|
border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12);
|
|
1245
1265
|
}
|
|
1246
|
-
.dataviews-view-list div[role=row]:not(.is-selected) .dataviews-view-list__title-field
|
|
1266
|
+
.dataviews-view-list div[role=row]:not(.is-selected) .dataviews-view-list__title-field,
|
|
1267
|
+
.dataviews-view-list div[role=article]:not(.is-selected) .dataviews-view-list__title-field {
|
|
1247
1268
|
color: #1e1e1e;
|
|
1248
1269
|
}
|
|
1249
|
-
.dataviews-view-list div[role=row]:not(.is-selected):hover, .dataviews-view-list div[role=row]:not(.is-selected).is-hovered, .dataviews-view-list div[role=row]:not(.is-selected):focus-within
|
|
1270
|
+
.dataviews-view-list div[role=row]:not(.is-selected):hover, .dataviews-view-list div[role=row]:not(.is-selected).is-hovered, .dataviews-view-list div[role=row]:not(.is-selected):focus-within,
|
|
1271
|
+
.dataviews-view-list div[role=article]:not(.is-selected):hover,
|
|
1272
|
+
.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,
|
|
1273
|
+
.dataviews-view-list div[role=article]:not(.is-selected):focus-within {
|
|
1250
1274
|
color: var(--wp-admin-theme-color);
|
|
1251
1275
|
background-color: #f8f8f8;
|
|
1252
1276
|
}
|
|
1253
1277
|
.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__title-field,
|
|
1254
1278
|
.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__fields, .dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__title-field,
|
|
1255
1279
|
.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__fields, .dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__title-field,
|
|
1256
|
-
.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__fields
|
|
1280
|
+
.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__fields,
|
|
1281
|
+
.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__title-field,
|
|
1282
|
+
.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__fields,
|
|
1283
|
+
.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__title-field,
|
|
1284
|
+
.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__fields,
|
|
1285
|
+
.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__title-field,
|
|
1286
|
+
.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__fields {
|
|
1257
1287
|
color: var(--wp-admin-theme-color);
|
|
1258
1288
|
}
|
|
1259
1289
|
.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,
|
|
1260
|
-
.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper
|
|
1290
|
+
.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper,
|
|
1291
|
+
.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,
|
|
1292
|
+
.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper {
|
|
1261
1293
|
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.04);
|
|
1262
1294
|
color: #1e1e1e;
|
|
1263
1295
|
}
|
|
1264
1296
|
.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,
|
|
1265
1297
|
.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,
|
|
1266
1298
|
.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,
|
|
1267
|
-
.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields
|
|
1299
|
+
.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,
|
|
1300
|
+
.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,
|
|
1301
|
+
.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,
|
|
1302
|
+
.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,
|
|
1303
|
+
.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields {
|
|
1268
1304
|
color: var(--wp-admin-theme-color);
|
|
1269
1305
|
}
|
|
1270
1306
|
.dataviews-view-list .dataviews-view-list__item {
|
|
@@ -1368,7 +1404,6 @@ div.dataviews-view-list {
|
|
|
1368
1404
|
.dataviews-view-table td,
|
|
1369
1405
|
.dataviews-view-table th {
|
|
1370
1406
|
padding: 12px;
|
|
1371
|
-
white-space: nowrap;
|
|
1372
1407
|
}
|
|
1373
1408
|
.dataviews-view-table td.dataviews-view-table__actions-column,
|
|
1374
1409
|
.dataviews-view-table th.dataviews-view-table__actions-column {
|
|
@@ -1396,6 +1431,11 @@ div.dataviews-view-list {
|
|
|
1396
1431
|
padding-right: 0;
|
|
1397
1432
|
width: 1%;
|
|
1398
1433
|
}
|
|
1434
|
+
.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,
|
|
1435
|
+
.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper {
|
|
1436
|
+
max-width: auto;
|
|
1437
|
+
min-width: auto;
|
|
1438
|
+
}
|
|
1399
1439
|
.dataviews-view-table tr {
|
|
1400
1440
|
border-top: 1px solid #f0f0f0;
|
|
1401
1441
|
}
|
|
@@ -1514,6 +1554,8 @@ div.dataviews-view-list {
|
|
|
1514
1554
|
}
|
|
1515
1555
|
.dataviews-view-table .dataviews-view-table__actions-column {
|
|
1516
1556
|
width: 1%;
|
|
1557
|
+
max-width: inherit;
|
|
1558
|
+
min-width: inherit;
|
|
1517
1559
|
}
|
|
1518
1560
|
.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input {
|
|
1519
1561
|
opacity: 1;
|
|
@@ -1578,6 +1620,18 @@ div.dataviews-view-list {
|
|
|
1578
1620
|
border-radius: 4px;
|
|
1579
1621
|
}
|
|
1580
1622
|
|
|
1623
|
+
.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),
|
|
1624
|
+
.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media) {
|
|
1625
|
+
min-width: 15ch;
|
|
1626
|
+
max-width: 80ch;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell {
|
|
1630
|
+
font-weight: 500;
|
|
1631
|
+
padding: 12px 48px;
|
|
1632
|
+
color: #1e1e1e;
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1581
1635
|
.dataviews-controls__datetime {
|
|
1582
1636
|
border: none;
|
|
1583
1637
|
padding: 0;
|
|
@@ -1692,6 +1746,12 @@ div.dataviews-view-list {
|
|
|
1692
1746
|
z-index: 1000001;
|
|
1693
1747
|
}
|
|
1694
1748
|
|
|
1749
|
+
.fields-create-template-part-modal__area-fieldset {
|
|
1750
|
+
border: 0;
|
|
1751
|
+
padding: 0;
|
|
1752
|
+
margin: 0;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1695
1755
|
.fields-create-template-part-modal__area-radio-group {
|
|
1696
1756
|
border: 1px solid #949494;
|
|
1697
1757
|
border-radius: 2px;
|
|
@@ -1757,6 +1817,11 @@ input[type=radio]:not(:checked):hover ~ .fields-create-template-part-modal__area
|
|
|
1757
1817
|
color: inherit;
|
|
1758
1818
|
}
|
|
1759
1819
|
|
|
1820
|
+
.fields-controls__slug {
|
|
1821
|
+
border: 0;
|
|
1822
|
+
padding: 0;
|
|
1823
|
+
margin: 0;
|
|
1824
|
+
}
|
|
1760
1825
|
.fields-controls__slug .fields-controls__slug-external-icon {
|
|
1761
1826
|
margin-left: 5ch;
|
|
1762
1827
|
}
|
|
@@ -1804,6 +1869,11 @@ input[type=radio]:not(:checked):hover ~ .fields-create-template-part-modal__area
|
|
|
1804
1869
|
margin-right: auto;
|
|
1805
1870
|
}
|
|
1806
1871
|
|
|
1872
|
+
fieldset.fields-controls__featured-image {
|
|
1873
|
+
border: 0;
|
|
1874
|
+
padding: 0;
|
|
1875
|
+
margin: 0;
|
|
1876
|
+
}
|
|
1807
1877
|
fieldset.fields-controls__featured-image .fields-controls__featured-image-container {
|
|
1808
1878
|
border: 1px solid #ddd;
|
|
1809
1879
|
border-radius: 2px;
|
|
@@ -1867,6 +1937,24 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
1867
1937
|
height: 32px;
|
|
1868
1938
|
}
|
|
1869
1939
|
|
|
1940
|
+
.fields-controls__parent {
|
|
1941
|
+
border: 0;
|
|
1942
|
+
padding: 0;
|
|
1943
|
+
margin: 0;
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
.fields-controls__password {
|
|
1947
|
+
border: 0;
|
|
1948
|
+
padding: 0;
|
|
1949
|
+
margin: 0;
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
.fields-controls__template {
|
|
1953
|
+
border: 0;
|
|
1954
|
+
padding: 0;
|
|
1955
|
+
margin: 0;
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1870
1958
|
.fields-controls__template-modal {
|
|
1871
1959
|
z-index: 1000001;
|
|
1872
1960
|
}
|
|
@@ -2498,22 +2586,6 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
2498
2586
|
border-top: 1px solid #ddd;
|
|
2499
2587
|
}
|
|
2500
2588
|
|
|
2501
|
-
.editor-sidebar {
|
|
2502
|
-
width: 280px;
|
|
2503
|
-
}
|
|
2504
|
-
.editor-sidebar > .components-panel {
|
|
2505
|
-
border-left: 0;
|
|
2506
|
-
border-right: 0;
|
|
2507
|
-
margin-bottom: -1px;
|
|
2508
|
-
margin-top: -1px;
|
|
2509
|
-
}
|
|
2510
|
-
.editor-sidebar > .components-panel > .components-panel__header {
|
|
2511
|
-
background: #f0f0f0;
|
|
2512
|
-
}
|
|
2513
|
-
.editor-sidebar .block-editor-block-inspector__card {
|
|
2514
|
-
margin: 0;
|
|
2515
|
-
}
|
|
2516
|
-
|
|
2517
2589
|
.edit-site-global-styles-sidebar {
|
|
2518
2590
|
display: flex;
|
|
2519
2591
|
flex-direction: column;
|
|
@@ -2752,16 +2824,6 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
2752
2824
|
text-wrap: pretty;
|
|
2753
2825
|
}
|
|
2754
2826
|
|
|
2755
|
-
.page-templates-description {
|
|
2756
|
-
max-width: 50em;
|
|
2757
|
-
text-wrap: balance;
|
|
2758
|
-
text-wrap: pretty;
|
|
2759
|
-
}
|
|
2760
|
-
.dataviews-view-table .page-templates-description {
|
|
2761
|
-
margin-bottom: 8px;
|
|
2762
|
-
display: block;
|
|
2763
|
-
}
|
|
2764
|
-
|
|
2765
2827
|
.edit-site-page-templates .dataviews-pagination {
|
|
2766
2828
|
z-index: 2;
|
|
2767
2829
|
}
|
|
@@ -2888,7 +2950,6 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
2888
2950
|
}
|
|
2889
2951
|
.edit-site-editor__back-icon.has-site-icon {
|
|
2890
2952
|
background-color: hsla(0deg, 0%, 100%, 0.6);
|
|
2891
|
-
-webkit-backdrop-filter: saturate(180%) blur(15px);
|
|
2892
2953
|
backdrop-filter: saturate(180%) blur(15px);
|
|
2893
2954
|
}
|
|
2894
2955
|
|
|
@@ -3227,7 +3288,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3227
3288
|
contain: content;
|
|
3228
3289
|
}
|
|
3229
3290
|
|
|
3230
|
-
@keyframes
|
|
3291
|
+
@keyframes _uwv3d_slide-from-right {
|
|
3231
3292
|
from {
|
|
3232
3293
|
transform: translateX(50px);
|
|
3233
3294
|
opacity: 0;
|
|
@@ -3237,7 +3298,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3237
3298
|
opacity: 1;
|
|
3238
3299
|
}
|
|
3239
3300
|
}
|
|
3240
|
-
@keyframes
|
|
3301
|
+
@keyframes _uwv3d_slide-from-left {
|
|
3241
3302
|
from {
|
|
3242
3303
|
transform: translateX(-50px);
|
|
3243
3304
|
opacity: 0;
|
|
@@ -3293,10 +3354,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3293
3354
|
}
|
|
3294
3355
|
}
|
|
3295
3356
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
3296
|
-
animation-name:
|
|
3357
|
+
animation-name: _uwv3d_slide-from-left;
|
|
3297
3358
|
}
|
|
3298
3359
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
3299
|
-
animation-name:
|
|
3360
|
+
animation-name: _uwv3d_slide-from-right;
|
|
3300
3361
|
}
|
|
3301
3362
|
|
|
3302
3363
|
.edit-site-sidebar-button {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.28.1-next.0f6f9d12c.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": "^15.
|
|
37
|
-
"@wordpress/block-library": "^9.
|
|
38
|
-
"@wordpress/blocks": "^15.
|
|
39
|
-
"@wordpress/commands": "^1.
|
|
40
|
-
"@wordpress/components": "^30.
|
|
41
|
-
"@wordpress/compose": "^7.
|
|
42
|
-
"@wordpress/core-commands": "^1.
|
|
43
|
-
"@wordpress/core-data": "^7.
|
|
44
|
-
"@wordpress/data": "^10.
|
|
45
|
-
"@wordpress/dataviews": "^
|
|
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": "^6.
|
|
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.28.1-next.0f6f9d12c.0",
|
|
34
|
+
"@wordpress/api-fetch": "^7.28.1-next.0f6f9d12c.0",
|
|
35
|
+
"@wordpress/blob": "^4.28.1-next.0f6f9d12c.0",
|
|
36
|
+
"@wordpress/block-editor": "^15.1.1-next.0f6f9d12c.0",
|
|
37
|
+
"@wordpress/block-library": "^9.28.1-next.0f6f9d12c.0",
|
|
38
|
+
"@wordpress/blocks": "^15.1.1-next.0f6f9d12c.0",
|
|
39
|
+
"@wordpress/commands": "^1.28.1-next.0f6f9d12c.0",
|
|
40
|
+
"@wordpress/components": "^30.2.1-next.0f6f9d12c.0",
|
|
41
|
+
"@wordpress/compose": "^7.28.1-next.0f6f9d12c.0",
|
|
42
|
+
"@wordpress/core-commands": "^1.28.1-next.0f6f9d12c.0",
|
|
43
|
+
"@wordpress/core-data": "^7.28.1-next.0f6f9d12c.0",
|
|
44
|
+
"@wordpress/data": "^10.28.1-next.0f6f9d12c.0",
|
|
45
|
+
"@wordpress/dataviews": "^7.0.1-next.0f6f9d12c.0",
|
|
46
|
+
"@wordpress/date": "^5.28.1-next.0f6f9d12c.0",
|
|
47
|
+
"@wordpress/deprecated": "^4.28.1-next.0f6f9d12c.0",
|
|
48
|
+
"@wordpress/dom": "^4.28.1-next.0f6f9d12c.0",
|
|
49
|
+
"@wordpress/editor": "^14.28.1-next.0f6f9d12c.0",
|
|
50
|
+
"@wordpress/element": "^6.28.1-next.0f6f9d12c.0",
|
|
51
|
+
"@wordpress/escape-html": "^3.28.1-next.0f6f9d12c.0",
|
|
52
|
+
"@wordpress/fields": "^0.20.1-next.0f6f9d12c.0",
|
|
53
|
+
"@wordpress/hooks": "^4.28.1-next.0f6f9d12c.0",
|
|
54
|
+
"@wordpress/html-entities": "^4.28.1-next.0f6f9d12c.0",
|
|
55
|
+
"@wordpress/i18n": "^6.1.1-next.0f6f9d12c.0",
|
|
56
|
+
"@wordpress/icons": "^10.28.2-next.0f6f9d12c.0",
|
|
57
|
+
"@wordpress/keyboard-shortcuts": "^5.28.1-next.0f6f9d12c.0",
|
|
58
|
+
"@wordpress/keycodes": "^4.28.1-next.0f6f9d12c.0",
|
|
59
|
+
"@wordpress/media-utils": "^5.28.1-next.0f6f9d12c.0",
|
|
60
|
+
"@wordpress/notices": "^5.28.1-next.0f6f9d12c.0",
|
|
61
|
+
"@wordpress/patterns": "^2.28.1-next.0f6f9d12c.0",
|
|
62
|
+
"@wordpress/plugins": "^7.28.1-next.0f6f9d12c.0",
|
|
63
|
+
"@wordpress/preferences": "^4.28.1-next.0f6f9d12c.0",
|
|
64
|
+
"@wordpress/primitives": "^4.28.1-next.0f6f9d12c.0",
|
|
65
|
+
"@wordpress/private-apis": "^1.28.1-next.0f6f9d12c.0",
|
|
66
|
+
"@wordpress/reusable-blocks": "^5.28.1-next.0f6f9d12c.0",
|
|
67
|
+
"@wordpress/router": "^1.28.1-next.0f6f9d12c.0",
|
|
68
|
+
"@wordpress/style-engine": "^2.28.1-next.0f6f9d12c.0",
|
|
69
|
+
"@wordpress/url": "^4.28.1-next.0f6f9d12c.0",
|
|
70
|
+
"@wordpress/viewport": "^6.28.1-next.0f6f9d12c.0",
|
|
71
|
+
"@wordpress/widgets": "^4.28.1-next.0f6f9d12c.0",
|
|
72
|
+
"@wordpress/wordcount": "^4.28.1-next.0f6f9d12c.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": "7d4f4367e2f76deddf4a09b540e6b2f9f4c3fe9f"
|
|
88
88
|
}
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
.editor-sidebar {
|
|
2
|
-
width: $sidebar-width;
|
|
3
|
-
|
|
4
|
-
> .components-panel {
|
|
5
|
-
border-left: 0;
|
|
6
|
-
border-right: 0;
|
|
7
|
-
margin-bottom: -1px;
|
|
8
|
-
margin-top: -1px;
|
|
9
|
-
|
|
10
|
-
> .components-panel__header {
|
|
11
|
-
background: $gray-100;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.block-editor-block-inspector__card {
|
|
16
|
-
margin: 0;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
1
|
.edit-site-global-styles-sidebar {
|
|
21
2
|
display: flex;
|
|
22
3
|
flex-direction: column;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useEntityRecord } from '@wordpress/core-data';
|
|
5
5
|
|
|
6
6
|
function Media( { id, size = [ 'large', 'medium', 'thumbnail' ], ...props } ) {
|
|
7
|
-
const { record: media } = useEntityRecord( '
|
|
7
|
+
const { record: media } = useEntityRecord( 'postType', 'attachment', id );
|
|
8
8
|
const currentSize = size.find(
|
|
9
9
|
( s ) => !! media?.media_details?.sizes?.[ s ]
|
|
10
10
|
);
|
|
@@ -69,13 +69,7 @@ export const descriptionField = {
|
|
|
69
69
|
label: __( 'Description' ),
|
|
70
70
|
id: 'description',
|
|
71
71
|
render: ( { item } ) => {
|
|
72
|
-
return (
|
|
73
|
-
item.description && (
|
|
74
|
-
<span className="page-templates-description">
|
|
75
|
-
{ decodeEntities( item.description ) }
|
|
76
|
-
</span>
|
|
77
|
-
)
|
|
78
|
-
);
|
|
72
|
+
return item.description && decodeEntities( item.description );
|
|
79
73
|
},
|
|
80
74
|
enableSorting: false,
|
|
81
75
|
enableGlobalSearch: true,
|
|
@@ -35,12 +35,8 @@ import { TEMPLATE_ORIGINS } from '../../utils/constants';
|
|
|
35
35
|
export function useAddedBy( postType, postId ) {
|
|
36
36
|
return useSelect(
|
|
37
37
|
( select ) => {
|
|
38
|
-
const {
|
|
39
|
-
|
|
40
|
-
getMedia,
|
|
41
|
-
getUser,
|
|
42
|
-
getEditedEntityRecord,
|
|
43
|
-
} = select( coreStore );
|
|
38
|
+
const { getEntityRecord, getUser, getEditedEntityRecord } =
|
|
39
|
+
select( coreStore );
|
|
44
40
|
const template = getEditedEntityRecord(
|
|
45
41
|
'postType',
|
|
46
42
|
postType,
|
|
@@ -77,7 +73,11 @@ export function useAddedBy( postType, postId ) {
|
|
|
77
73
|
type: originalSource,
|
|
78
74
|
icon: globeIcon,
|
|
79
75
|
imageUrl: siteData?.site_logo
|
|
80
|
-
?
|
|
76
|
+
? getEntityRecord(
|
|
77
|
+
'postType',
|
|
78
|
+
'attachment',
|
|
79
|
+
siteData.site_logo
|
|
80
|
+
)?.source_url
|
|
81
81
|
: undefined,
|
|
82
82
|
text: authorText,
|
|
83
83
|
isCustomized: false,
|
|
@@ -28,24 +28,12 @@
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.page-templates-description {
|
|
32
|
-
max-width: 50em;
|
|
33
|
-
text-wrap: balance; // Fallback for Safari
|
|
34
|
-
text-wrap: pretty;
|
|
35
|
-
|
|
36
|
-
.dataviews-view-table & {
|
|
37
|
-
margin-bottom: $grid-unit-10;
|
|
38
|
-
display: block;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
31
|
.edit-site-page-templates {
|
|
43
32
|
.dataviews-pagination {
|
|
44
33
|
z-index: z-index(".edit-site-templates__dataviews-list-pagination");
|
|
45
34
|
}
|
|
46
35
|
}
|
|
47
36
|
|
|
48
|
-
|
|
49
37
|
.page-templates-author-field__avatar {
|
|
50
38
|
flex-shrink: 0;
|
|
51
39
|
overflow: hidden;
|
|
@@ -75,11 +75,15 @@ function PostEditForm( { postType, postId } ) {
|
|
|
75
75
|
|
|
76
76
|
const form = useMemo(
|
|
77
77
|
() => ( {
|
|
78
|
-
|
|
78
|
+
layout: {
|
|
79
|
+
type: 'panel',
|
|
80
|
+
},
|
|
79
81
|
fields: [
|
|
80
82
|
{
|
|
81
83
|
id: 'featured_media',
|
|
82
|
-
layout:
|
|
84
|
+
layout: {
|
|
85
|
+
type: 'regular',
|
|
86
|
+
},
|
|
83
87
|
},
|
|
84
88
|
{
|
|
85
89
|
id: 'status',
|
|
@@ -93,9 +97,11 @@ function PostEditForm( { postType, postId } ) {
|
|
|
93
97
|
'comment_status',
|
|
94
98
|
{
|
|
95
99
|
label: __( 'Template' ),
|
|
96
|
-
labelPosition: 'side',
|
|
97
100
|
id: 'template',
|
|
98
|
-
layout:
|
|
101
|
+
layout: {
|
|
102
|
+
type: 'regular',
|
|
103
|
+
labelPosition: 'side',
|
|
104
|
+
},
|
|
99
105
|
},
|
|
100
106
|
].filter(
|
|
101
107
|
( field ) =>
|
|
@@ -223,26 +223,10 @@ export default function PostList( { postType } ) {
|
|
|
223
223
|
},
|
|
224
224
|
[ location.path, location.query.isCustom, history ]
|
|
225
225
|
);
|
|
226
|
-
const getActiveViewFilters = ( views, match ) => {
|
|
227
|
-
const found = views.find( ( { slug } ) => slug === match );
|
|
228
|
-
return found?.filters ?? [];
|
|
229
|
-
};
|
|
230
226
|
|
|
231
|
-
const { isLoading: isLoadingFields, fields:
|
|
227
|
+
const { isLoading: isLoadingFields, fields: fields } = usePostFields( {
|
|
232
228
|
postType,
|
|
233
229
|
} );
|
|
234
|
-
const fields = useMemo( () => {
|
|
235
|
-
const activeViewFilters = getActiveViewFilters(
|
|
236
|
-
defaultViews,
|
|
237
|
-
activeView
|
|
238
|
-
).map( ( { field } ) => field );
|
|
239
|
-
return _fields.map( ( field ) => ( {
|
|
240
|
-
...field,
|
|
241
|
-
elements: activeViewFilters.includes( field.id )
|
|
242
|
-
? []
|
|
243
|
-
: field.elements,
|
|
244
|
-
} ) );
|
|
245
|
-
}, [ _fields, defaultViews, activeView ] );
|
|
246
230
|
|
|
247
231
|
const queryArgs = useMemo( () => {
|
|
248
232
|
const filters = {};
|
|
@@ -266,31 +250,6 @@ export default function PostList( { postType } ) {
|
|
|
266
250
|
}
|
|
267
251
|
} );
|
|
268
252
|
|
|
269
|
-
// The bundled views want data filtered without displaying the filter.
|
|
270
|
-
const activeViewFilters = getActiveViewFilters(
|
|
271
|
-
defaultViews,
|
|
272
|
-
activeView
|
|
273
|
-
);
|
|
274
|
-
activeViewFilters.forEach( ( filter ) => {
|
|
275
|
-
if (
|
|
276
|
-
filter.field === 'status' &&
|
|
277
|
-
filter.operator === OPERATOR_IS_ANY
|
|
278
|
-
) {
|
|
279
|
-
filters.status = filter.value;
|
|
280
|
-
}
|
|
281
|
-
if (
|
|
282
|
-
filter.field === 'author' &&
|
|
283
|
-
filter.operator === OPERATOR_IS_ANY
|
|
284
|
-
) {
|
|
285
|
-
filters.author = filter.value;
|
|
286
|
-
} else if (
|
|
287
|
-
filter.field === 'author' &&
|
|
288
|
-
filter.operator === OPERATOR_IS_NONE
|
|
289
|
-
) {
|
|
290
|
-
filters.author_exclude = filter.value;
|
|
291
|
-
}
|
|
292
|
-
} );
|
|
293
|
-
|
|
294
253
|
// We want to provide a different default item for the status filter
|
|
295
254
|
// than the REST API provides.
|
|
296
255
|
if ( ! filters.status || filters.status === '' ) {
|