@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.
Files changed (51) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/components/media/index.js +1 -1
  3. package/build/components/media/index.js.map +1 -1
  4. package/build/components/page-templates/fields.js +1 -4
  5. package/build/components/page-templates/fields.js.map +1 -1
  6. package/build/components/page-templates/hooks.js +1 -2
  7. package/build/components/page-templates/hooks.js.map +1 -1
  8. package/build/components/page-templates/index.js +1 -8
  9. package/build/components/page-templates/index.js.map +1 -1
  10. package/build/components/post-list/index.js +1 -30
  11. package/build/components/post-list/index.js.map +1 -1
  12. package/build/components/sidebar-dataviews/default-views.js +53 -37
  13. package/build/components/sidebar-dataviews/default-views.js.map +1 -1
  14. package/build/components/style-book/index.js +2 -2
  15. package/build/components/style-book/index.js.map +1 -1
  16. package/build/store/selectors.js +1 -1
  17. package/build/store/selectors.js.map +1 -1
  18. package/build-module/components/media/index.js +1 -1
  19. package/build-module/components/media/index.js.map +1 -1
  20. package/build-module/components/page-templates/fields.js +1 -4
  21. package/build-module/components/page-templates/fields.js.map +1 -1
  22. package/build-module/components/page-templates/hooks.js +1 -2
  23. package/build-module/components/page-templates/hooks.js.map +1 -1
  24. package/build-module/components/page-templates/index.js +1 -8
  25. package/build-module/components/page-templates/index.js.map +1 -1
  26. package/build-module/components/post-list/index.js +1 -30
  27. package/build-module/components/post-list/index.js.map +1 -1
  28. package/build-module/components/sidebar-dataviews/default-views.js +53 -37
  29. package/build-module/components/sidebar-dataviews/default-views.js.map +1 -1
  30. package/build-module/components/style-book/index.js +2 -2
  31. package/build-module/components/style-book/index.js.map +1 -1
  32. package/build-module/store/selectors.js +1 -1
  33. package/build-module/store/selectors.js.map +1 -1
  34. package/build-style/posts-rtl.css +89 -54
  35. package/build-style/posts.css +89 -54
  36. package/build-style/style-rtl.css +114 -102
  37. package/build-style/style.css +114 -102
  38. package/package.json +42 -42
  39. package/src/components/editor/style.scss +2 -2
  40. package/src/components/global-styles-sidebar/style.scss +0 -19
  41. package/src/components/media/index.js +1 -1
  42. package/src/components/page-templates/fields.js +1 -7
  43. package/src/components/page-templates/hooks.js +7 -7
  44. package/src/components/page-templates/index.js +0 -7
  45. package/src/components/page-templates/style.scss +0 -23
  46. package/src/components/post-list/index.js +1 -42
  47. package/src/components/sidebar-dataviews/default-views.js +63 -47
  48. package/src/components/sidebar-navigation-screen-navigation-menus/style.scss +0 -4
  49. package/src/components/style-book/index.js +2 -2
  50. package/src/store/selectors.js +1 -1
  51. package/tsconfig.tsbuildinfo +1 -1
@@ -400,7 +400,9 @@
400
400
  line-height: 1.4;
401
401
  }
402
402
  .dataviews-filters__summary-popover .components-popover__content {
403
- width: 230px;
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-right: 24px;
1067
+ padding-left: 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: #f0f0f0;
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-right: 24px;
1154
- padding-left: 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: 16px;
1207
- font-weight: 600;
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: #f0f0f0;
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-left: 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
+ right: 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-controls__datetime-number,
1586
- .dataviews-controls__datetime-unit {
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-table__cell-content-wrapper .fields-controls__featured-image-image,
1833
- .dataviews-view-table__cell-content-wrapper .fields-controls__featured-image-placeholder {
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 {
@@ -2466,22 +2518,6 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
2466
2518
  border-top: 1px solid #ddd;
2467
2519
  }
2468
2520
 
2469
- .editor-sidebar {
2470
- width: 280px;
2471
- }
2472
- .editor-sidebar > .components-panel {
2473
- border-right: 0;
2474
- border-left: 0;
2475
- margin-bottom: -1px;
2476
- margin-top: -1px;
2477
- }
2478
- .editor-sidebar > .components-panel > .components-panel__header {
2479
- background: #f0f0f0;
2480
- }
2481
- .editor-sidebar .block-editor-block-inspector__card {
2482
- margin: 0;
2483
- }
2484
-
2485
2521
  .edit-site-global-styles-sidebar {
2486
2522
  display: flex;
2487
2523
  flex-direction: column;
@@ -2719,26 +2755,6 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
2719
2755
  text-wrap: balance;
2720
2756
  text-wrap: pretty;
2721
2757
  }
2722
- .dataviews-view-table .page-templates-preview-field::after {
2723
- content: "";
2724
- position: absolute;
2725
- top: 0;
2726
- right: 0;
2727
- width: 100%;
2728
- height: 100%;
2729
- box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
2730
- border-radius: 4px;
2731
- }
2732
-
2733
- .page-templates-description {
2734
- max-width: 50em;
2735
- text-wrap: balance;
2736
- text-wrap: pretty;
2737
- }
2738
- .dataviews-view-table .page-templates-description {
2739
- margin-bottom: 8px;
2740
- display: block;
2741
- }
2742
2758
 
2743
2759
  .edit-site-page-templates .dataviews-pagination {
2744
2760
  z-index: 2;
@@ -2822,8 +2838,8 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
2822
2838
  /* stylelint-enable */
2823
2839
  top: 0;
2824
2840
  right: 0;
2825
- height: 60px;
2826
- width: 60px;
2841
+ height: 64px;
2842
+ width: 64px;
2827
2843
  z-index: 100;
2828
2844
  }
2829
2845
  .edit-site-editor__view-mode-toggle .components-button {
@@ -2853,8 +2869,8 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
2853
2869
  position: absolute;
2854
2870
  top: 0;
2855
2871
  right: 0;
2856
- width: 60px;
2857
- height: 60px;
2872
+ width: 64px;
2873
+ height: 64px;
2858
2874
  display: flex;
2859
2875
  align-items: center;
2860
2876
  justify-content: center;
@@ -2866,7 +2882,6 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
2866
2882
  }
2867
2883
  .edit-site-editor__back-icon.has-site-icon {
2868
2884
  background-color: hsla(0deg, 0%, 100%, 0.6);
2869
- -webkit-backdrop-filter: saturate(180%) blur(15px);
2870
2885
  backdrop-filter: saturate(180%) blur(15px);
2871
2886
  }
2872
2887
 
@@ -3082,8 +3097,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
3082
3097
  /* stylelint-enable */
3083
3098
  position: relative;
3084
3099
  color: #fff;
3085
- height: 60px;
3086
- width: 60px;
3100
+ height: 64px;
3101
+ width: 64px;
3087
3102
  overflow: hidden;
3088
3103
  padding: 0;
3089
3104
  display: flex;
@@ -3118,8 +3133,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
3118
3133
  }
3119
3134
  .edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon {
3120
3135
  display: flex;
3121
- height: 60px;
3122
- width: 60px;
3136
+ height: 64px;
3137
+ width: 64px;
3123
3138
  justify-content: center;
3124
3139
  align-items: center;
3125
3140
  }
@@ -3205,7 +3220,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
3205
3220
  contain: content;
3206
3221
  }
3207
3222
 
3208
- @keyframes _uamd0_slide-from-right {
3223
+ @keyframes _i1bme_slide-from-right {
3209
3224
  from {
3210
3225
  transform: translateX(-50px);
3211
3226
  opacity: 0;
@@ -3215,7 +3230,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
3215
3230
  opacity: 1;
3216
3231
  }
3217
3232
  }
3218
- @keyframes _uamd0_slide-from-left {
3233
+ @keyframes _i1bme_slide-from-left {
3219
3234
  from {
3220
3235
  transform: translateX(50px);
3221
3236
  opacity: 0;
@@ -3271,10 +3286,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
3271
3286
  }
3272
3287
  }
3273
3288
  .edit-site-sidebar__screen-wrapper.slide-from-left {
3274
- animation-name: _uamd0_slide-from-left;
3289
+ animation-name: _i1bme_slide-from-left;
3275
3290
  }
3276
3291
  .edit-site-sidebar__screen-wrapper.slide-from-right {
3277
- animation-name: _uamd0_slide-from-right;
3292
+ animation-name: _i1bme_slide-from-right;
3278
3293
  }
3279
3294
 
3280
3295
  .edit-site-sidebar-button {
@@ -3489,9 +3504,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
3489
3504
  margin-left: -16px;
3490
3505
  }
3491
3506
 
3492
- .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell {
3493
- width: 100%;
3494
- }
3495
3507
  .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents {
3496
3508
  white-space: normal;
3497
3509
  }
@@ -3573,7 +3585,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
3573
3585
  justify-content: space-between;
3574
3586
  gap: 8px;
3575
3587
  margin-left: 12px;
3576
- height: 60px;
3588
+ height: 64px;
3577
3589
  }
3578
3590
 
3579
3591
  .edit-site-site-hub__actions {
@@ -3581,8 +3593,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
3581
3593
  }
3582
3594
 
3583
3595
  .edit-site-site-hub__view-mode-toggle-container {
3584
- height: 60px;
3585
- width: 60px;
3596
+ height: 64px;
3597
+ width: 64px;
3586
3598
  flex-shrink: 0;
3587
3599
  }
3588
3600
  .edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon {
@@ -3919,7 +3931,7 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
3919
3931
  top: 0;
3920
3932
  align-items: center;
3921
3933
  justify-content: center;
3922
- padding-top: 120px;
3934
+ padding-top: 124px;
3923
3935
  }
3924
3936
 
3925
3937
  .font-library-modal__footer {