@wordpress/edit-site 6.27.0 → 6.28.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-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-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 +89 -54
- package/build-style/posts.css +89 -54
- package/build-style/style-rtl.css +114 -102
- package/build-style/style.css +114 -102
- package/package.json +42 -42
- package/src/components/editor/style.scss +2 -2
- 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 -23
- package/src/components/post-list/index.js +1 -42
- package/src/components/sidebar-dataviews/default-views.js +63 -47
- package/src/components/sidebar-navigation-screen-navigation-menus/style.scss +0 -4
- 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
|
@@ -400,7 +400,9 @@
|
|
|
400
400
|
line-height: 1.4;
|
|
401
401
|
}
|
|
402
402
|
.dataviews-filters__summary-popover .components-popover__content {
|
|
403
|
-
width:
|
|
403
|
+
width: 100%;
|
|
404
|
+
min-width: 230px;
|
|
405
|
+
max-width: 250px;
|
|
404
406
|
border-radius: 4px;
|
|
405
407
|
}
|
|
406
408
|
.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content {
|
|
@@ -447,10 +449,13 @@
|
|
|
447
449
|
align-items: center;
|
|
448
450
|
box-sizing: border-box;
|
|
449
451
|
}
|
|
452
|
+
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable {
|
|
453
|
+
cursor: default;
|
|
454
|
+
}
|
|
450
455
|
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset {
|
|
451
456
|
padding-inline-end: 28px;
|
|
452
457
|
}
|
|
453
|
-
.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] {
|
|
458
|
+
.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] {
|
|
454
459
|
background: #e0e0e0;
|
|
455
460
|
color: #1e1e1e;
|
|
456
461
|
}
|
|
@@ -1045,9 +1050,22 @@
|
|
|
1045
1050
|
|
|
1046
1051
|
.dataviews-view-grid {
|
|
1047
1052
|
margin-bottom: auto;
|
|
1053
|
+
display: grid;
|
|
1054
|
+
gap: 32px;
|
|
1048
1055
|
grid-template-rows: max-content;
|
|
1056
|
+
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
|
|
1049
1057
|
padding: 0 48px 24px;
|
|
1050
1058
|
container-type: inline-size;
|
|
1059
|
+
/**
|
|
1060
|
+
* Breakpoints were adjusted from media queries breakpoints to account for
|
|
1061
|
+
* the sidebar width. This was done to match the existing styles we had.
|
|
1062
|
+
*/
|
|
1063
|
+
}
|
|
1064
|
+
@container (max-width: 480px) {
|
|
1065
|
+
.dataviews-view-grid {
|
|
1066
|
+
padding-left: 24px;
|
|
1067
|
+
padding-right: 24px;
|
|
1068
|
+
}
|
|
1051
1069
|
}
|
|
1052
1070
|
@media not (prefers-reduced-motion) {
|
|
1053
1071
|
.dataviews-view-grid {
|
|
@@ -1087,7 +1105,7 @@
|
|
|
1087
1105
|
width: 100%;
|
|
1088
1106
|
min-height: 200px;
|
|
1089
1107
|
aspect-ratio: 1/1;
|
|
1090
|
-
background-color: #
|
|
1108
|
+
background-color: #fff;
|
|
1091
1109
|
border-radius: 4px;
|
|
1092
1110
|
position: relative;
|
|
1093
1111
|
}
|
|
@@ -1141,40 +1159,6 @@
|
|
|
1141
1159
|
padding-bottom: 12px;
|
|
1142
1160
|
}
|
|
1143
1161
|
|
|
1144
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1145
|
-
/**
|
|
1146
|
-
* Breakpoints were adjusted from media queries breakpoints to account for
|
|
1147
|
-
* the sidebar width. This was done to match the existing styles we had.
|
|
1148
|
-
*/
|
|
1149
|
-
}
|
|
1150
|
-
@container (max-width: 480px) {
|
|
1151
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1152
|
-
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
1153
|
-
padding-left: 24px;
|
|
1154
|
-
padding-right: 24px;
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
@container (min-width: 480px) {
|
|
1158
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1159
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
@container (min-width: 780px) {
|
|
1163
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1164
|
-
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
@container (min-width: 1140px) {
|
|
1168
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1169
|
-
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
@container (min-width: 1520px) {
|
|
1173
|
-
.dataviews-view-grid.dataviews-view-grid {
|
|
1174
|
-
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
1162
|
.dataviews-view-grid__field-value:empty,
|
|
1179
1163
|
.dataviews-view-grid__field:empty {
|
|
1180
1164
|
display: none;
|
|
@@ -1203,8 +1187,8 @@
|
|
|
1203
1187
|
}
|
|
1204
1188
|
|
|
1205
1189
|
.dataviews-view-grid__group-header {
|
|
1206
|
-
font-size:
|
|
1207
|
-
font-weight:
|
|
1190
|
+
font-size: 15px;
|
|
1191
|
+
font-weight: 500;
|
|
1208
1192
|
color: #1e1e1e;
|
|
1209
1193
|
margin: 0 0 8px 0;
|
|
1210
1194
|
padding: 0 48px;
|
|
@@ -1323,7 +1307,7 @@ div.dataviews-view-list {
|
|
|
1323
1307
|
overflow: hidden;
|
|
1324
1308
|
position: relative;
|
|
1325
1309
|
flex-shrink: 0;
|
|
1326
|
-
background-color: #
|
|
1310
|
+
background-color: #fff;
|
|
1327
1311
|
border-radius: 4px;
|
|
1328
1312
|
}
|
|
1329
1313
|
.dataviews-view-list .dataviews-view-list__media-wrapper img {
|
|
@@ -1387,7 +1371,6 @@ div.dataviews-view-list {
|
|
|
1387
1371
|
.dataviews-view-table td,
|
|
1388
1372
|
.dataviews-view-table th {
|
|
1389
1373
|
padding: 12px;
|
|
1390
|
-
white-space: nowrap;
|
|
1391
1374
|
}
|
|
1392
1375
|
.dataviews-view-table td.dataviews-view-table__actions-column,
|
|
1393
1376
|
.dataviews-view-table th.dataviews-view-table__actions-column {
|
|
@@ -1415,6 +1398,11 @@ div.dataviews-view-list {
|
|
|
1415
1398
|
padding-right: 0;
|
|
1416
1399
|
width: 1%;
|
|
1417
1400
|
}
|
|
1401
|
+
.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,
|
|
1402
|
+
.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper {
|
|
1403
|
+
max-width: auto;
|
|
1404
|
+
min-width: auto;
|
|
1405
|
+
}
|
|
1418
1406
|
.dataviews-view-table tr {
|
|
1419
1407
|
border-top: 1px solid #f0f0f0;
|
|
1420
1408
|
}
|
|
@@ -1533,6 +1521,8 @@ div.dataviews-view-list {
|
|
|
1533
1521
|
}
|
|
1534
1522
|
.dataviews-view-table .dataviews-view-table__actions-column {
|
|
1535
1523
|
width: 1%;
|
|
1524
|
+
max-width: inherit;
|
|
1525
|
+
min-width: inherit;
|
|
1536
1526
|
}
|
|
1537
1527
|
.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input {
|
|
1538
1528
|
opacity: 1;
|
|
@@ -1575,6 +1565,38 @@ div.dataviews-view-list {
|
|
|
1575
1565
|
|
|
1576
1566
|
.dataviews-column-primary__media {
|
|
1577
1567
|
max-width: 60px;
|
|
1568
|
+
overflow: hidden;
|
|
1569
|
+
position: relative;
|
|
1570
|
+
flex-shrink: 0;
|
|
1571
|
+
background-color: #fff;
|
|
1572
|
+
border-radius: 4px;
|
|
1573
|
+
}
|
|
1574
|
+
.dataviews-column-primary__media img {
|
|
1575
|
+
width: 100%;
|
|
1576
|
+
height: 100%;
|
|
1577
|
+
object-fit: cover;
|
|
1578
|
+
}
|
|
1579
|
+
.dataviews-column-primary__media::after {
|
|
1580
|
+
content: "";
|
|
1581
|
+
position: absolute;
|
|
1582
|
+
top: 0;
|
|
1583
|
+
left: 0;
|
|
1584
|
+
width: 100%;
|
|
1585
|
+
height: 100%;
|
|
1586
|
+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
1587
|
+
border-radius: 4px;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),
|
|
1591
|
+
.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media) {
|
|
1592
|
+
min-width: 15ch;
|
|
1593
|
+
max-width: 80ch;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell {
|
|
1597
|
+
font-weight: 500;
|
|
1598
|
+
padding: 12px 48px;
|
|
1599
|
+
color: #1e1e1e;
|
|
1578
1600
|
}
|
|
1579
1601
|
|
|
1580
1602
|
.dataviews-controls__datetime {
|
|
@@ -1582,11 +1604,24 @@ div.dataviews-view-list {
|
|
|
1582
1604
|
padding: 0;
|
|
1583
1605
|
}
|
|
1584
1606
|
|
|
1585
|
-
.dataviews-
|
|
1586
|
-
.dataviews-
|
|
1607
|
+
.dataviews-controls__relative-date-number,
|
|
1608
|
+
.dataviews-controls__relative-date-unit {
|
|
1587
1609
|
flex: 1 1 50%;
|
|
1588
1610
|
}
|
|
1589
1611
|
|
|
1612
|
+
.dataviews-controls__date input[type=date]::-webkit-inner-spin-button,
|
|
1613
|
+
.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator {
|
|
1614
|
+
display: none;
|
|
1615
|
+
-webkit-appearance: none;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
.dataviews-controls__date-preset {
|
|
1619
|
+
border: 1px solid #ddd;
|
|
1620
|
+
}
|
|
1621
|
+
.dataviews-controls__date-preset:active {
|
|
1622
|
+
background-color: #000;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1590
1625
|
.dataforms-layouts-panel__field {
|
|
1591
1626
|
width: 100%;
|
|
1592
1627
|
min-height: 32px;
|
|
@@ -1829,11 +1864,28 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
1829
1864
|
height: 16px;
|
|
1830
1865
|
}
|
|
1831
1866
|
|
|
1832
|
-
.dataviews-view-
|
|
1833
|
-
.dataviews-view-
|
|
1867
|
+
.dataviews-view-grid__media .fields-controls__featured-image-image,
|
|
1868
|
+
.dataviews-view-grid__media .fields-controls__featured-image-placeholder,
|
|
1869
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-image,
|
|
1870
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder,
|
|
1871
|
+
.dataviews-view-list__media-wrapper .fields-controls__featured-image-image,
|
|
1872
|
+
.dataviews-view-list__media-wrapper .fields-controls__featured-image-placeholder {
|
|
1873
|
+
width: 100%;
|
|
1874
|
+
height: 100%;
|
|
1875
|
+
display: block;
|
|
1876
|
+
border-radius: 4px;
|
|
1877
|
+
}
|
|
1878
|
+
.dataviews-view-grid__media .fields-controls__featured-image-placeholder,
|
|
1879
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder,
|
|
1880
|
+
.dataviews-view-list__media-wrapper .fields-controls__featured-image-placeholder {
|
|
1881
|
+
box-shadow: none;
|
|
1882
|
+
background: #f0f0f0;
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-image,
|
|
1886
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder {
|
|
1834
1887
|
width: 32px;
|
|
1835
1888
|
height: 32px;
|
|
1836
|
-
display: block;
|
|
1837
1889
|
}
|
|
1838
1890
|
|
|
1839
1891
|
.fields-controls__template-modal {
|
|
@@ -2467,22 +2519,6 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
2467
2519
|
border-top: 1px solid #ddd;
|
|
2468
2520
|
}
|
|
2469
2521
|
|
|
2470
|
-
.editor-sidebar {
|
|
2471
|
-
width: 280px;
|
|
2472
|
-
}
|
|
2473
|
-
.editor-sidebar > .components-panel {
|
|
2474
|
-
border-left: 0;
|
|
2475
|
-
border-right: 0;
|
|
2476
|
-
margin-bottom: -1px;
|
|
2477
|
-
margin-top: -1px;
|
|
2478
|
-
}
|
|
2479
|
-
.editor-sidebar > .components-panel > .components-panel__header {
|
|
2480
|
-
background: #f0f0f0;
|
|
2481
|
-
}
|
|
2482
|
-
.editor-sidebar .block-editor-block-inspector__card {
|
|
2483
|
-
margin: 0;
|
|
2484
|
-
}
|
|
2485
|
-
|
|
2486
2522
|
.edit-site-global-styles-sidebar {
|
|
2487
2523
|
display: flex;
|
|
2488
2524
|
flex-direction: column;
|
|
@@ -2720,26 +2756,6 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
2720
2756
|
text-wrap: balance;
|
|
2721
2757
|
text-wrap: pretty;
|
|
2722
2758
|
}
|
|
2723
|
-
.dataviews-view-table .page-templates-preview-field::after {
|
|
2724
|
-
content: "";
|
|
2725
|
-
position: absolute;
|
|
2726
|
-
top: 0;
|
|
2727
|
-
left: 0;
|
|
2728
|
-
width: 100%;
|
|
2729
|
-
height: 100%;
|
|
2730
|
-
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
2731
|
-
border-radius: 4px;
|
|
2732
|
-
}
|
|
2733
|
-
|
|
2734
|
-
.page-templates-description {
|
|
2735
|
-
max-width: 50em;
|
|
2736
|
-
text-wrap: balance;
|
|
2737
|
-
text-wrap: pretty;
|
|
2738
|
-
}
|
|
2739
|
-
.dataviews-view-table .page-templates-description {
|
|
2740
|
-
margin-bottom: 8px;
|
|
2741
|
-
display: block;
|
|
2742
|
-
}
|
|
2743
2759
|
|
|
2744
2760
|
.edit-site-page-templates .dataviews-pagination {
|
|
2745
2761
|
z-index: 2;
|
|
@@ -2823,8 +2839,8 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
2823
2839
|
/* stylelint-enable */
|
|
2824
2840
|
top: 0;
|
|
2825
2841
|
left: 0;
|
|
2826
|
-
height:
|
|
2827
|
-
width:
|
|
2842
|
+
height: 64px;
|
|
2843
|
+
width: 64px;
|
|
2828
2844
|
z-index: 100;
|
|
2829
2845
|
}
|
|
2830
2846
|
.edit-site-editor__view-mode-toggle .components-button {
|
|
@@ -2854,8 +2870,8 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
2854
2870
|
position: absolute;
|
|
2855
2871
|
top: 0;
|
|
2856
2872
|
left: 0;
|
|
2857
|
-
width:
|
|
2858
|
-
height:
|
|
2873
|
+
width: 64px;
|
|
2874
|
+
height: 64px;
|
|
2859
2875
|
display: flex;
|
|
2860
2876
|
align-items: center;
|
|
2861
2877
|
justify-content: center;
|
|
@@ -2867,7 +2883,6 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
2867
2883
|
}
|
|
2868
2884
|
.edit-site-editor__back-icon.has-site-icon {
|
|
2869
2885
|
background-color: hsla(0deg, 0%, 100%, 0.6);
|
|
2870
|
-
-webkit-backdrop-filter: saturate(180%) blur(15px);
|
|
2871
2886
|
backdrop-filter: saturate(180%) blur(15px);
|
|
2872
2887
|
}
|
|
2873
2888
|
|
|
@@ -3083,8 +3098,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3083
3098
|
/* stylelint-enable */
|
|
3084
3099
|
position: relative;
|
|
3085
3100
|
color: #fff;
|
|
3086
|
-
height:
|
|
3087
|
-
width:
|
|
3101
|
+
height: 64px;
|
|
3102
|
+
width: 64px;
|
|
3088
3103
|
overflow: hidden;
|
|
3089
3104
|
padding: 0;
|
|
3090
3105
|
display: flex;
|
|
@@ -3119,8 +3134,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3119
3134
|
}
|
|
3120
3135
|
.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon {
|
|
3121
3136
|
display: flex;
|
|
3122
|
-
height:
|
|
3123
|
-
width:
|
|
3137
|
+
height: 64px;
|
|
3138
|
+
width: 64px;
|
|
3124
3139
|
justify-content: center;
|
|
3125
3140
|
align-items: center;
|
|
3126
3141
|
}
|
|
@@ -3206,7 +3221,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3206
3221
|
contain: content;
|
|
3207
3222
|
}
|
|
3208
3223
|
|
|
3209
|
-
@keyframes
|
|
3224
|
+
@keyframes _i1bme_slide-from-right {
|
|
3210
3225
|
from {
|
|
3211
3226
|
transform: translateX(50px);
|
|
3212
3227
|
opacity: 0;
|
|
@@ -3216,7 +3231,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3216
3231
|
opacity: 1;
|
|
3217
3232
|
}
|
|
3218
3233
|
}
|
|
3219
|
-
@keyframes
|
|
3234
|
+
@keyframes _i1bme_slide-from-left {
|
|
3220
3235
|
from {
|
|
3221
3236
|
transform: translateX(-50px);
|
|
3222
3237
|
opacity: 0;
|
|
@@ -3272,10 +3287,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3272
3287
|
}
|
|
3273
3288
|
}
|
|
3274
3289
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
3275
|
-
animation-name:
|
|
3290
|
+
animation-name: _i1bme_slide-from-left;
|
|
3276
3291
|
}
|
|
3277
3292
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
3278
|
-
animation-name:
|
|
3293
|
+
animation-name: _i1bme_slide-from-right;
|
|
3279
3294
|
}
|
|
3280
3295
|
|
|
3281
3296
|
.edit-site-sidebar-button {
|
|
@@ -3490,9 +3505,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3490
3505
|
margin-right: -16px;
|
|
3491
3506
|
}
|
|
3492
3507
|
|
|
3493
|
-
.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell {
|
|
3494
|
-
width: 100%;
|
|
3495
|
-
}
|
|
3496
3508
|
.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents {
|
|
3497
3509
|
white-space: normal;
|
|
3498
3510
|
}
|
|
@@ -3574,7 +3586,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3574
3586
|
justify-content: space-between;
|
|
3575
3587
|
gap: 8px;
|
|
3576
3588
|
margin-right: 12px;
|
|
3577
|
-
height:
|
|
3589
|
+
height: 64px;
|
|
3578
3590
|
}
|
|
3579
3591
|
|
|
3580
3592
|
.edit-site-site-hub__actions {
|
|
@@ -3582,8 +3594,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3582
3594
|
}
|
|
3583
3595
|
|
|
3584
3596
|
.edit-site-site-hub__view-mode-toggle-container {
|
|
3585
|
-
height:
|
|
3586
|
-
width:
|
|
3597
|
+
height: 64px;
|
|
3598
|
+
width: 64px;
|
|
3587
3599
|
flex-shrink: 0;
|
|
3588
3600
|
}
|
|
3589
3601
|
.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon {
|
|
@@ -3920,7 +3932,7 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
|
|
|
3920
3932
|
top: 0;
|
|
3921
3933
|
align-items: center;
|
|
3922
3934
|
justify-content: center;
|
|
3923
|
-
padding-top:
|
|
3935
|
+
padding-top: 124px;
|
|
3924
3936
|
}
|
|
3925
3937
|
|
|
3926
3938
|
.font-library-modal__footer {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.28.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.0",
|
|
34
|
+
"@wordpress/api-fetch": "^7.28.0",
|
|
35
|
+
"@wordpress/blob": "^4.28.0",
|
|
36
|
+
"@wordpress/block-editor": "^15.1.0",
|
|
37
|
+
"@wordpress/block-library": "^9.28.0",
|
|
38
|
+
"@wordpress/blocks": "^15.1.0",
|
|
39
|
+
"@wordpress/commands": "^1.28.0",
|
|
40
|
+
"@wordpress/components": "^30.1.0",
|
|
41
|
+
"@wordpress/compose": "^7.28.0",
|
|
42
|
+
"@wordpress/core-commands": "^1.28.0",
|
|
43
|
+
"@wordpress/core-data": "^7.28.0",
|
|
44
|
+
"@wordpress/data": "^10.28.0",
|
|
45
|
+
"@wordpress/dataviews": "^6.0.0",
|
|
46
|
+
"@wordpress/date": "^5.28.0",
|
|
47
|
+
"@wordpress/deprecated": "^4.28.0",
|
|
48
|
+
"@wordpress/dom": "^4.28.0",
|
|
49
|
+
"@wordpress/editor": "^14.28.0",
|
|
50
|
+
"@wordpress/element": "^6.28.0",
|
|
51
|
+
"@wordpress/escape-html": "^3.28.0",
|
|
52
|
+
"@wordpress/fields": "^0.20.0",
|
|
53
|
+
"@wordpress/hooks": "^4.28.0",
|
|
54
|
+
"@wordpress/html-entities": "^4.28.0",
|
|
55
|
+
"@wordpress/i18n": "^6.1.0",
|
|
56
|
+
"@wordpress/icons": "^10.28.0",
|
|
57
|
+
"@wordpress/keyboard-shortcuts": "^5.28.0",
|
|
58
|
+
"@wordpress/keycodes": "^4.28.0",
|
|
59
|
+
"@wordpress/media-utils": "^5.28.0",
|
|
60
|
+
"@wordpress/notices": "^5.28.0",
|
|
61
|
+
"@wordpress/patterns": "^2.28.0",
|
|
62
|
+
"@wordpress/plugins": "^7.28.0",
|
|
63
|
+
"@wordpress/preferences": "^4.28.0",
|
|
64
|
+
"@wordpress/primitives": "^4.28.0",
|
|
65
|
+
"@wordpress/private-apis": "^1.28.0",
|
|
66
|
+
"@wordpress/reusable-blocks": "^5.28.0",
|
|
67
|
+
"@wordpress/router": "^1.28.0",
|
|
68
|
+
"@wordpress/style-engine": "^2.28.0",
|
|
69
|
+
"@wordpress/url": "^4.28.0",
|
|
70
|
+
"@wordpress/viewport": "^6.28.0",
|
|
71
|
+
"@wordpress/widgets": "^4.28.0",
|
|
72
|
+
"@wordpress/wordcount": "^4.28.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": "28cc2098f5ee28f89096b638533796538f495f72"
|
|
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,
|
|
@@ -25,28 +25,6 @@
|
|
|
25
25
|
max-height: 160px;
|
|
26
26
|
text-wrap: balance; // Fallback for Safari.
|
|
27
27
|
text-wrap: pretty;
|
|
28
|
-
|
|
29
|
-
&::after {
|
|
30
|
-
content: "";
|
|
31
|
-
position: absolute;
|
|
32
|
-
top: 0;
|
|
33
|
-
left: 0;
|
|
34
|
-
width: 100%;
|
|
35
|
-
height: 100%;
|
|
36
|
-
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
37
|
-
border-radius: $radius-medium;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.page-templates-description {
|
|
43
|
-
max-width: 50em;
|
|
44
|
-
text-wrap: balance; // Fallback for Safari
|
|
45
|
-
text-wrap: pretty;
|
|
46
|
-
|
|
47
|
-
.dataviews-view-table & {
|
|
48
|
-
margin-bottom: $grid-unit-10;
|
|
49
|
-
display: block;
|
|
50
28
|
}
|
|
51
29
|
}
|
|
52
30
|
|
|
@@ -56,7 +34,6 @@
|
|
|
56
34
|
}
|
|
57
35
|
}
|
|
58
36
|
|
|
59
|
-
|
|
60
37
|
.page-templates-author-field__avatar {
|
|
61
38
|
flex-shrink: 0;
|
|
62
39
|
overflow: hidden;
|