@wordpress/edit-site 7.2.0 → 7.3.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 +22 -0
- package/build/components/block-editor/use-navigate-to-entity-record.cjs +4 -20
- package/build/components/block-editor/use-navigate-to-entity-record.cjs.map +2 -2
- package/build/components/block-editor/use-site-editor-settings.cjs +0 -1
- package/build/components/block-editor/use-site-editor-settings.cjs.map +2 -2
- package/build/components/block-editor/viewport.cjs +46 -0
- package/build/components/block-editor/viewport.cjs.map +7 -0
- package/build/components/editor/index.cjs +8 -7
- package/build/components/editor/index.cjs.map +3 -3
- package/build/components/editor/use-adapt-editor-to-canvas.cjs +2 -2
- package/build/components/editor/use-adapt-editor-to-canvas.cjs.map +2 -2
- package/build/components/layout/index.cjs +11 -1
- package/build/components/layout/index.cjs.map +2 -2
- package/build/components/more-menu/index.cjs +2 -3
- package/build/components/more-menu/index.cjs.map +3 -3
- package/build/components/sidebar-navigation-screen-navigation-menus/index.cjs +3 -1
- package/build/components/sidebar-navigation-screen-navigation-menus/index.cjs.map +2 -2
- package/build/components/sidebar-navigation-screen-patterns/index.cjs +1 -1
- package/build/components/sidebar-navigation-screen-patterns/index.cjs.map +1 -1
- package/build/components/sidebar-navigation-screen-templates-browse/index.cjs +1 -1
- package/build/components/sidebar-navigation-screen-templates-browse/index.cjs.map +1 -1
- package/build/components/site-editor-routes/pages.cjs +3 -0
- package/build/components/site-editor-routes/pages.cjs.map +2 -2
- package/build-module/components/block-editor/use-navigate-to-entity-record.mjs +5 -21
- package/build-module/components/block-editor/use-navigate-to-entity-record.mjs.map +2 -2
- package/build-module/components/block-editor/use-site-editor-settings.mjs +0 -1
- package/build-module/components/block-editor/use-site-editor-settings.mjs.map +2 -2
- package/build-module/components/block-editor/viewport.mjs +19 -0
- package/build-module/components/block-editor/viewport.mjs.map +7 -0
- package/build-module/components/editor/index.mjs +8 -8
- package/build-module/components/editor/index.mjs.map +2 -2
- package/build-module/components/editor/use-adapt-editor-to-canvas.mjs +1 -1
- package/build-module/components/editor/use-adapt-editor-to-canvas.mjs.map +1 -1
- package/build-module/components/layout/index.mjs +11 -1
- package/build-module/components/layout/index.mjs.map +2 -2
- package/build-module/components/more-menu/index.mjs +1 -2
- package/build-module/components/more-menu/index.mjs.map +2 -2
- package/build-module/components/sidebar-navigation-screen-navigation-menus/index.mjs +3 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menus/index.mjs.map +2 -2
- package/build-module/components/sidebar-navigation-screen-patterns/index.mjs +1 -1
- package/build-module/components/sidebar-navigation-screen-patterns/index.mjs.map +1 -1
- package/build-module/components/sidebar-navigation-screen-templates-browse/index.mjs +1 -1
- package/build-module/components/sidebar-navigation-screen-templates-browse/index.mjs.map +1 -1
- package/build-module/components/site-editor-routes/pages.mjs +3 -0
- package/build-module/components/site-editor-routes/pages.mjs.map +2 -2
- package/build-style/style-rtl.css +130 -85
- package/build-style/style.css +130 -85
- package/package.json +48 -48
- package/src/components/block-editor/use-navigate-to-entity-record.js +11 -32
- package/src/components/block-editor/use-site-editor-settings.js +0 -1
- package/src/components/block-editor/viewport.js +34 -0
- package/src/components/editor/index.js +13 -8
- package/src/components/editor/use-adapt-editor-to-canvas.js +1 -1
- package/src/components/layout/index.js +10 -2
- package/src/components/more-menu/index.js +2 -2
- package/src/components/sidebar-navigation-screen-navigation-menus/index.js +6 -1
- package/src/components/sidebar-navigation-screen-patterns/index.js +1 -1
- package/src/components/sidebar-navigation-screen-templates-browse/index.js +1 -1
- package/src/components/site-editor-routes/pages.js +3 -0
- package/src/style.scss +7 -3
- package/build/components/block-editor/use-viewport-sync.cjs +0 -55
- package/build/components/block-editor/use-viewport-sync.cjs.map +0 -7
- package/build/components/more-menu/site-export.cjs +0 -93
- package/build/components/more-menu/site-export.cjs.map +0 -7
- package/build-module/components/block-editor/use-viewport-sync.mjs +0 -29
- package/build-module/components/block-editor/use-viewport-sync.mjs.map +0 -7
- package/build-module/components/more-menu/site-export.mjs +0 -62
- package/build-module/components/more-menu/site-export.mjs.map +0 -7
- package/src/components/block-editor/use-viewport-sync.js +0 -44
- package/src/components/more-menu/site-export.js +0 -71
package/build-style/style.css
CHANGED
|
@@ -438,8 +438,8 @@
|
|
|
438
438
|
|
|
439
439
|
.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select {
|
|
440
440
|
width: 100%;
|
|
441
|
+
min-width: 0;
|
|
441
442
|
white-space: nowrap;
|
|
442
|
-
overflow: hidden;
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
.dataviews-filters__summary-chip-container {
|
|
@@ -716,16 +716,10 @@
|
|
|
716
716
|
font-size: 16px;
|
|
717
717
|
/* Override core line-height. To be reviewed. */
|
|
718
718
|
line-height: normal;
|
|
719
|
-
|
|
720
|
-
border-radius: 2px;
|
|
721
|
-
border: 1px solid #949494;
|
|
719
|
+
border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d);
|
|
720
|
+
border-radius: var(--wpds-border-radius-sm, 2px);
|
|
722
721
|
}
|
|
723
722
|
|
|
724
|
-
@media not (prefers-reduced-motion) {
|
|
725
|
-
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection {
|
|
726
|
-
transition: box-shadow 0.1s linear;
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
723
|
@media (min-width: 600px) {
|
|
730
724
|
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection {
|
|
731
725
|
font-size: 13px;
|
|
@@ -733,10 +727,15 @@
|
|
|
733
727
|
line-height: normal;
|
|
734
728
|
}
|
|
735
729
|
}
|
|
730
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:hover:not(:disabled, [aria-disabled=true], [type=checkbox]) {
|
|
731
|
+
border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e);
|
|
732
|
+
}
|
|
733
|
+
|
|
736
734
|
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus {
|
|
737
|
-
border-color
|
|
738
|
-
|
|
739
|
-
|
|
735
|
+
outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)));
|
|
736
|
+
outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
|
|
737
|
+
border-color: var(--wpds-color-stroke-interactive-neutral, #8d8d8d);
|
|
738
|
+
box-shadow: none;
|
|
740
739
|
}
|
|
741
740
|
|
|
742
741
|
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder {
|
|
@@ -851,16 +850,10 @@
|
|
|
851
850
|
font-size: 16px;
|
|
852
851
|
/* Override core line-height. To be reviewed. */
|
|
853
852
|
line-height: normal;
|
|
854
|
-
|
|
855
|
-
border-radius: 2px;
|
|
856
|
-
border: 1px solid #949494;
|
|
853
|
+
border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d);
|
|
854
|
+
border-radius: var(--wpds-border-radius-sm, 2px);
|
|
857
855
|
}
|
|
858
856
|
|
|
859
|
-
@media not (prefers-reduced-motion) {
|
|
860
|
-
.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input {
|
|
861
|
-
transition: box-shadow 0.1s linear;
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
857
|
@media (min-width: 600px) {
|
|
865
858
|
.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input {
|
|
866
859
|
font-size: 13px;
|
|
@@ -868,10 +861,15 @@
|
|
|
868
861
|
line-height: normal;
|
|
869
862
|
}
|
|
870
863
|
}
|
|
864
|
+
.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:hover:not(:disabled, [aria-disabled=true], [type=checkbox]) {
|
|
865
|
+
border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e);
|
|
866
|
+
}
|
|
867
|
+
|
|
871
868
|
.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus {
|
|
872
|
-
border-color
|
|
873
|
-
|
|
874
|
-
|
|
869
|
+
outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)));
|
|
870
|
+
outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
|
|
871
|
+
border-color: var(--wpds-color-stroke-interactive-neutral, #8d8d8d);
|
|
872
|
+
box-shadow: none;
|
|
875
873
|
}
|
|
876
874
|
|
|
877
875
|
.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder {
|
|
@@ -900,7 +898,6 @@
|
|
|
900
898
|
}
|
|
901
899
|
.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus {
|
|
902
900
|
background: var(--wpds-color-background-surface-neutral-strong, #fff);
|
|
903
|
-
box-shadow: inset 0 0 0 var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
|
|
904
901
|
}
|
|
905
902
|
|
|
906
903
|
.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder {
|
|
@@ -1300,6 +1297,17 @@
|
|
|
1300
1297
|
background: var(--wpds-color-background-surface-neutral, #fcfcfc);
|
|
1301
1298
|
}
|
|
1302
1299
|
|
|
1300
|
+
.dataviews-view-grid.has-media-fit-contain .dataviews-view-grid__media,
|
|
1301
|
+
.dataviews-view-grid-infinite-scroll.has-media-fit-contain .dataviews-view-grid__media {
|
|
1302
|
+
background-color: var(--wpds-color-background-surface-neutral, #fcfcfc);
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
.dataviews-view-grid.has-media-fit-contain .dataviews-view-grid__media img,
|
|
1306
|
+
.dataviews-view-grid-infinite-scroll.has-media-fit-contain .dataviews-view-grid__media img {
|
|
1307
|
+
-o-object-fit: contain;
|
|
1308
|
+
object-fit: contain;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1303
1311
|
.dataviews-view-grid .dataviews-view-grid__fields,
|
|
1304
1312
|
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields {
|
|
1305
1313
|
position: relative;
|
|
@@ -1517,8 +1525,7 @@ div.dataviews-view-list {
|
|
|
1517
1525
|
.dataviews-view-list div[role=article]:not(.is-selected):hover,
|
|
1518
1526
|
.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,
|
|
1519
1527
|
.dataviews-view-list div[role=article]:not(.is-selected):focus-within {
|
|
1520
|
-
color: var(--wpds-color-
|
|
1521
|
-
background-color: var(--wpds-color-background-interactive-brand-weak, rgba(0, 0, 0, 0));
|
|
1528
|
+
background-color: var(--wpds-color-background-interactive-neutral-weak-active, #ededed);
|
|
1522
1529
|
}
|
|
1523
1530
|
|
|
1524
1531
|
.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-title-field,
|
|
@@ -1531,7 +1538,7 @@ div.dataviews-view-list {
|
|
|
1531
1538
|
.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__field,
|
|
1532
1539
|
.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-title-field,
|
|
1533
1540
|
.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__field {
|
|
1534
|
-
color: var(--wpds-color-foreground-interactive-
|
|
1541
|
+
color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e);
|
|
1535
1542
|
}
|
|
1536
1543
|
|
|
1537
1544
|
.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,
|
|
@@ -1539,7 +1546,7 @@ div.dataviews-view-list {
|
|
|
1539
1546
|
.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,
|
|
1540
1547
|
.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper {
|
|
1541
1548
|
background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white));
|
|
1542
|
-
color: var(--wpds-color-foreground-
|
|
1549
|
+
color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
|
|
1543
1550
|
}
|
|
1544
1551
|
|
|
1545
1552
|
.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,
|
|
@@ -1550,7 +1557,7 @@ div.dataviews-view-list {
|
|
|
1550
1557
|
.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,
|
|
1551
1558
|
.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,
|
|
1552
1559
|
.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field {
|
|
1553
|
-
color: var(--wpds-color-foreground-
|
|
1560
|
+
color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
|
|
1554
1561
|
}
|
|
1555
1562
|
|
|
1556
1563
|
.dataviews-view-list .dataviews-view-list__item {
|
|
@@ -1626,7 +1633,7 @@ div.dataviews-view-list {
|
|
|
1626
1633
|
}
|
|
1627
1634
|
|
|
1628
1635
|
.dataviews-view-list .dataviews-view-list__field {
|
|
1629
|
-
color: var(--wpds-color-foreground-
|
|
1636
|
+
color: var(--wpds-color-foreground-content-neutral-weak, #707070);
|
|
1630
1637
|
}
|
|
1631
1638
|
|
|
1632
1639
|
.dataviews-view-list .dataviews-view-list__fields {
|
|
@@ -1775,7 +1782,7 @@ div.dataviews-view-list {
|
|
|
1775
1782
|
bottom: 0;
|
|
1776
1783
|
left: 0;
|
|
1777
1784
|
width: 1px;
|
|
1778
|
-
background-color: var(--wpds-color-
|
|
1785
|
+
background-color: var(--wpds-color-stroke-surface-neutral-weak, #f0f0f0);
|
|
1779
1786
|
}
|
|
1780
1787
|
|
|
1781
1788
|
.dataviews-view-table td.dataviews-view-table__checkbox-column,
|
|
@@ -2108,6 +2115,7 @@ div.dataviews-view-list {
|
|
|
2108
2115
|
min-height: 0;
|
|
2109
2116
|
background-color: var(--wpds-color-background-surface-neutral-strong, #fff);
|
|
2110
2117
|
border-radius: var(--wpds-border-radius-md, 4px);
|
|
2118
|
+
overflow: hidden;
|
|
2111
2119
|
position: relative;
|
|
2112
2120
|
}
|
|
2113
2121
|
|
|
@@ -2130,6 +2138,15 @@ div.dataviews-view-list {
|
|
|
2130
2138
|
pointer-events: none;
|
|
2131
2139
|
}
|
|
2132
2140
|
|
|
2141
|
+
.dataviews-view-picker-grid.has-media-fit-contain .dataviews-view-picker-grid__media {
|
|
2142
|
+
background-color: var(--wpds-color-background-surface-neutral, #fcfcfc);
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
.dataviews-view-picker-grid.has-media-fit-contain .dataviews-view-picker-grid__media img {
|
|
2146
|
+
-o-object-fit: contain;
|
|
2147
|
+
object-fit: contain;
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2133
2150
|
.dataviews-view-picker-grid .dataviews-view-picker-grid__fields {
|
|
2134
2151
|
position: relative;
|
|
2135
2152
|
font-size: 12px;
|
|
@@ -2700,51 +2717,35 @@ div.dataviews-view-list {
|
|
|
2700
2717
|
background-color: var(--wpds-color-background-interactive-neutral-strong-active, #1e1e1e);
|
|
2701
2718
|
}
|
|
2702
2719
|
|
|
2703
|
-
.dataviews-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop {
|
|
2704
|
-
--
|
|
2705
|
-
border-color: #cc1818;
|
|
2720
|
+
.dataviews-validated-control__wrapper-with-error-delegate:has(input[type=radio]:invalid[data-validity-visible]), .dataviews-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-form-token-field__input-container:not(:has([aria-expanded=true])), .dataviews-validated-control .components-combobox-control__suggestions-container:has(input:invalid[data-validity-visible]):not(:has([aria-expanded=true])), .dataviews-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop {
|
|
2721
|
+
--focus-color: #cc1818;
|
|
2706
2722
|
}
|
|
2707
2723
|
|
|
2708
|
-
.dataviews-validated-
|
|
2709
|
-
|
|
2710
|
-
align-items: flex-start;
|
|
2711
|
-
gap: 4px;
|
|
2712
|
-
margin: 8px 0 0;
|
|
2713
|
-
font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
2714
|
-
font-size: 12px;
|
|
2715
|
-
line-height: 16px;
|
|
2716
|
-
color: #757575;
|
|
2717
|
-
animation: dataviews-validated-control__indicator-jump 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
|
2724
|
+
.dataviews-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop {
|
|
2725
|
+
border-color: #cc1818;
|
|
2718
2726
|
}
|
|
2719
2727
|
|
|
2720
|
-
.dataviews-validated-
|
|
2721
|
-
color: #cc1818;
|
|
2728
|
+
.dataviews-validated-control .components-combobox-control__suggestions-container:has(input:invalid[data-validity-visible]):not(:has([aria-expanded=true])) {
|
|
2729
|
+
border-color: #cc1818;
|
|
2722
2730
|
}
|
|
2723
2731
|
|
|
2724
|
-
.dataviews-validated-
|
|
2725
|
-
|
|
2732
|
+
.dataviews-validated-control__wrapper-with-error-delegate {
|
|
2733
|
+
position: relative;
|
|
2726
2734
|
}
|
|
2727
2735
|
|
|
2728
|
-
.dataviews-validated-
|
|
2729
|
-
|
|
2736
|
+
.dataviews-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-form-token-field__input-container:not(:has([aria-expanded=true])) {
|
|
2737
|
+
border-color: #cc1818;
|
|
2730
2738
|
}
|
|
2731
2739
|
|
|
2732
|
-
.dataviews-validated-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
height:
|
|
2740
|
+
.dataviews-validated-control__error-delegate {
|
|
2741
|
+
position: absolute;
|
|
2742
|
+
top: 0;
|
|
2743
|
+
height: 100%;
|
|
2744
|
+
width: 100%;
|
|
2745
|
+
opacity: 0;
|
|
2746
|
+
pointer-events: none;
|
|
2736
2747
|
}
|
|
2737
2748
|
|
|
2738
|
-
@keyframes dataviews-validated-control__indicator-jump {
|
|
2739
|
-
0% {
|
|
2740
|
-
transform: translateY(-4px);
|
|
2741
|
-
opacity: 0;
|
|
2742
|
-
}
|
|
2743
|
-
100% {
|
|
2744
|
-
transform: translateY(0);
|
|
2745
|
-
opacity: 1;
|
|
2746
|
-
}
|
|
2747
|
-
}
|
|
2748
2749
|
.dataforms-layouts-panel__field-trigger {
|
|
2749
2750
|
position: relative;
|
|
2750
2751
|
color: inherit;
|
|
@@ -2809,6 +2810,12 @@ div.dataviews-view-list {
|
|
|
2809
2810
|
border-radius: var(--wpds-border-radius-xs, 1px);
|
|
2810
2811
|
}
|
|
2811
2812
|
|
|
2813
|
+
.dataforms-layouts-panel__field-trigger-icon::after {
|
|
2814
|
+
content: "";
|
|
2815
|
+
position: absolute;
|
|
2816
|
+
inset: 0;
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2812
2819
|
.dataforms-layouts-panel__field-trigger-icon:focus-visible {
|
|
2813
2820
|
opacity: 1;
|
|
2814
2821
|
outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
|
|
@@ -2844,9 +2851,7 @@ div.dataviews-view-list {
|
|
|
2844
2851
|
}
|
|
2845
2852
|
|
|
2846
2853
|
.dataforms-layouts-panel__field-label-error-content {
|
|
2847
|
-
|
|
2848
|
-
z-index: 1;
|
|
2849
|
-
cursor: help;
|
|
2854
|
+
pointer-events: none;
|
|
2850
2855
|
color: var(--wpds-color-foreground-content-error-weak, #cc1818);
|
|
2851
2856
|
display: inline-flex;
|
|
2852
2857
|
flex-direction: row;
|
|
@@ -2868,6 +2873,10 @@ div.dataviews-view-list {
|
|
|
2868
2873
|
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
2869
2874
|
}
|
|
2870
2875
|
|
|
2876
|
+
.dataforms-layouts-panel__field-control:has(a, button) {
|
|
2877
|
+
z-index: 1;
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2871
2880
|
.dataforms-layouts-panel__field-control > * {
|
|
2872
2881
|
min-width: 0;
|
|
2873
2882
|
}
|
|
@@ -2902,10 +2911,6 @@ div.dataviews-view-list {
|
|
|
2902
2911
|
z-index: 159990;
|
|
2903
2912
|
}
|
|
2904
2913
|
|
|
2905
|
-
.dataforms-layouts-panel__summary-button:empty {
|
|
2906
|
-
min-width: 160px;
|
|
2907
|
-
}
|
|
2908
|
-
|
|
2909
2914
|
.dataforms-layouts-regular__field {
|
|
2910
2915
|
width: 100%;
|
|
2911
2916
|
min-height: var(--wpds-dimension-size-md, 32px);
|
|
@@ -3732,7 +3737,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
3732
3737
|
position: absolute;
|
|
3733
3738
|
width: 100%;
|
|
3734
3739
|
bottom: 0;
|
|
3735
|
-
border-top: 1px solid #
|
|
3740
|
+
border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
|
|
3736
3741
|
padding: 24px;
|
|
3737
3742
|
background-color: #fff;
|
|
3738
3743
|
box-sizing: border-box;
|
|
@@ -3776,9 +3781,13 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
3776
3781
|
margin-bottom: 0;
|
|
3777
3782
|
}
|
|
3778
3783
|
|
|
3784
|
+
.font-library__font-demo {
|
|
3785
|
+
position: relative;
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3779
3788
|
.font-library__font-card {
|
|
3780
3789
|
box-sizing: border-box;
|
|
3781
|
-
border: 1px solid #
|
|
3790
|
+
border: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
|
|
3782
3791
|
width: 100%;
|
|
3783
3792
|
height: auto !important;
|
|
3784
3793
|
padding: 16px;
|
|
@@ -3807,6 +3816,23 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
3807
3816
|
width: auto;
|
|
3808
3817
|
}
|
|
3809
3818
|
|
|
3819
|
+
@media not (prefers-reduced-motion) {
|
|
3820
|
+
.font-library__font-card .font-library__font-variant_demo-image {
|
|
3821
|
+
transition: opacity var(--wpds-motion-duration-lg, 300ms) var(--wpds-motion-easing-subtle, cubic-bezier(0.15, 0, 0.15, 1));
|
|
3822
|
+
}
|
|
3823
|
+
}
|
|
3824
|
+
.font-library__font-card .font-library__font-variant_demo-image.is-loading {
|
|
3825
|
+
position: absolute;
|
|
3826
|
+
top: 0;
|
|
3827
|
+
left: 0;
|
|
3828
|
+
opacity: 0;
|
|
3829
|
+
}
|
|
3830
|
+
|
|
3831
|
+
.font-library__font-card .font-library__font-variant-demo-skeleton {
|
|
3832
|
+
height: 24px;
|
|
3833
|
+
border-radius: var(--wpds-border-radius-sm, 2px);
|
|
3834
|
+
}
|
|
3835
|
+
|
|
3810
3836
|
.font-library__font-card .font-library__font-variant_demo-text {
|
|
3811
3837
|
white-space: nowrap;
|
|
3812
3838
|
flex-shrink: 0;
|
|
@@ -3820,7 +3846,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
3820
3846
|
.font-library-modal__tablist-container {
|
|
3821
3847
|
position: sticky;
|
|
3822
3848
|
top: 0;
|
|
3823
|
-
border-bottom: 1px solid #
|
|
3849
|
+
border-bottom: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
|
|
3824
3850
|
background: #fff;
|
|
3825
3851
|
z-index: 1;
|
|
3826
3852
|
}
|
|
@@ -3960,7 +3986,7 @@ button.font-library__upload-area {
|
|
|
3960
3986
|
left: 16px;
|
|
3961
3987
|
top: 0;
|
|
3962
3988
|
width: 0;
|
|
3963
|
-
border: 0.5px solid #
|
|
3989
|
+
border: 0.5px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
|
|
3964
3990
|
}
|
|
3965
3991
|
|
|
3966
3992
|
.global-styles-ui-screen-revisions__revision-item:first-child::after {
|
|
@@ -4067,7 +4093,7 @@ button.font-library__upload-area {
|
|
|
4067
4093
|
bottom: 0;
|
|
4068
4094
|
background: #fff;
|
|
4069
4095
|
padding: 12px;
|
|
4070
|
-
border-top: 1px solid #
|
|
4096
|
+
border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
|
|
4071
4097
|
box-sizing: border-box;
|
|
4072
4098
|
}
|
|
4073
4099
|
|
|
@@ -4153,11 +4179,32 @@ button.font-library__upload-area {
|
|
|
4153
4179
|
border-radius: 2px;
|
|
4154
4180
|
}
|
|
4155
4181
|
|
|
4156
|
-
.global-styles-ui-block-types-
|
|
4157
|
-
margin-bottom:
|
|
4182
|
+
.global-styles-ui-block-types-filter {
|
|
4183
|
+
margin-bottom: 12px;
|
|
4158
4184
|
padding: 0 16px;
|
|
4159
4185
|
}
|
|
4160
4186
|
|
|
4187
|
+
.global-styles-ui-block-types-search {
|
|
4188
|
+
flex-grow: 1;
|
|
4189
|
+
}
|
|
4190
|
+
|
|
4191
|
+
.global-styles-ui-block-types-item-list .global-styles-ui-block-types-item__icon {
|
|
4192
|
+
min-width: 24px;
|
|
4193
|
+
}
|
|
4194
|
+
|
|
4195
|
+
.global-styles-ui-block-types-item-list__no-results {
|
|
4196
|
+
padding-top: 16px;
|
|
4197
|
+
}
|
|
4198
|
+
|
|
4199
|
+
.global-styles-ui-block-types-item__indicator {
|
|
4200
|
+
background: var(--wp-admin-theme-color);
|
|
4201
|
+
border-radius: 50%;
|
|
4202
|
+
flex: none;
|
|
4203
|
+
height: 6px;
|
|
4204
|
+
margin-left: auto;
|
|
4205
|
+
width: 6px;
|
|
4206
|
+
}
|
|
4207
|
+
|
|
4161
4208
|
.global-styles-ui-screen-typography__font-variants-count {
|
|
4162
4209
|
color: #757575;
|
|
4163
4210
|
}
|
|
@@ -4270,10 +4317,6 @@ button.font-library__upload-area {
|
|
|
4270
4317
|
opacity: 0;
|
|
4271
4318
|
}
|
|
4272
4319
|
|
|
4273
|
-
.global-styles-ui__shadow-editor__remove-button.global-styles-ui__shadow-editor__remove-button {
|
|
4274
|
-
border: none;
|
|
4275
|
-
}
|
|
4276
|
-
|
|
4277
4320
|
.global-styles-ui__shadow-editor__dropdown-toggle:hover + .global-styles-ui__shadow-editor__remove-button, .global-styles-ui__shadow-editor__remove-button:focus, .global-styles-ui__shadow-editor__remove-button:hover {
|
|
4278
4321
|
opacity: 1;
|
|
4279
4322
|
}
|
|
@@ -4365,7 +4408,8 @@ button.font-library__upload-area {
|
|
|
4365
4408
|
}
|
|
4366
4409
|
|
|
4367
4410
|
.global-styles-ui-color-palette-panel,
|
|
4368
|
-
.global-styles-ui-gradient-palette-panel
|
|
4411
|
+
.global-styles-ui-gradient-palette-panel,
|
|
4412
|
+
.global-styles-ui-duotone-palette-panel {
|
|
4369
4413
|
padding: 16px;
|
|
4370
4414
|
}
|
|
4371
4415
|
|
|
@@ -5597,9 +5641,10 @@ body.js.site-editor-php {
|
|
|
5597
5641
|
@media (min-width: 782px) {
|
|
5598
5642
|
body.js.site-editor-php:has(.editor-editor-interface.is-distraction-free) {
|
|
5599
5643
|
--wp-admin--admin-bar--height: 0px;
|
|
5644
|
+
--wp-editor-admin-bar-display: none;
|
|
5600
5645
|
}
|
|
5601
|
-
body.js.site-editor-php
|
|
5602
|
-
display:
|
|
5646
|
+
body.js.site-editor-php #wpadminbar {
|
|
5647
|
+
display: var(--wp-editor-admin-bar-display, block);
|
|
5603
5648
|
}
|
|
5604
5649
|
}
|
|
5605
5650
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -47,52 +47,52 @@
|
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@react-spring/web": "^9.4.5",
|
|
50
|
-
"@wordpress/a11y": "^4.
|
|
51
|
-
"@wordpress/admin-ui": "^2.
|
|
52
|
-
"@wordpress/api-fetch": "^7.
|
|
53
|
-
"@wordpress/base-styles": "^
|
|
54
|
-
"@wordpress/blob": "^4.
|
|
55
|
-
"@wordpress/block-editor": "^
|
|
56
|
-
"@wordpress/block-library": "^10.
|
|
57
|
-
"@wordpress/blocks": "^15.
|
|
58
|
-
"@wordpress/commands": "^1.
|
|
59
|
-
"@wordpress/components": "^
|
|
60
|
-
"@wordpress/compose": "^8.
|
|
61
|
-
"@wordpress/core-data": "^7.
|
|
62
|
-
"@wordpress/data": "^10.
|
|
63
|
-
"@wordpress/dataviews": "^18.
|
|
64
|
-
"@wordpress/date": "^5.
|
|
65
|
-
"@wordpress/deprecated": "^4.
|
|
66
|
-
"@wordpress/dom": "^4.
|
|
67
|
-
"@wordpress/editor": "^14.
|
|
68
|
-
"@wordpress/element": "^8.
|
|
69
|
-
"@wordpress/escape-html": "^3.
|
|
70
|
-
"@wordpress/fields": "^0.
|
|
71
|
-
"@wordpress/global-styles-engine": "^1.
|
|
72
|
-
"@wordpress/global-styles-ui": "^1.
|
|
73
|
-
"@wordpress/hooks": "^4.
|
|
74
|
-
"@wordpress/html-entities": "^4.
|
|
75
|
-
"@wordpress/i18n": "^6.
|
|
76
|
-
"@wordpress/icons": "^15.
|
|
77
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
78
|
-
"@wordpress/keycodes": "^4.
|
|
79
|
-
"@wordpress/media-utils": "^5.
|
|
80
|
-
"@wordpress/notices": "^5.
|
|
81
|
-
"@wordpress/patterns": "^2.
|
|
82
|
-
"@wordpress/plugins": "^7.
|
|
83
|
-
"@wordpress/preferences": "^4.
|
|
84
|
-
"@wordpress/primitives": "^4.
|
|
85
|
-
"@wordpress/private-apis": "^1.
|
|
86
|
-
"@wordpress/reusable-blocks": "^5.
|
|
87
|
-
"@wordpress/router": "^1.
|
|
88
|
-
"@wordpress/style-engine": "^2.
|
|
89
|
-
"@wordpress/theme": "^
|
|
90
|
-
"@wordpress/ui": "^0.
|
|
91
|
-
"@wordpress/url": "^4.
|
|
92
|
-
"@wordpress/viewport": "^6.
|
|
93
|
-
"@wordpress/views": "^1.
|
|
94
|
-
"@wordpress/widgets": "^4.
|
|
95
|
-
"@wordpress/wordcount": "^4.
|
|
50
|
+
"@wordpress/a11y": "^4.54.0",
|
|
51
|
+
"@wordpress/admin-ui": "^2.9.0",
|
|
52
|
+
"@wordpress/api-fetch": "^7.54.0",
|
|
53
|
+
"@wordpress/base-styles": "^13.0.0",
|
|
54
|
+
"@wordpress/blob": "^4.54.0",
|
|
55
|
+
"@wordpress/block-editor": "^17.0.0",
|
|
56
|
+
"@wordpress/block-library": "^10.5.0",
|
|
57
|
+
"@wordpress/blocks": "^15.27.0",
|
|
58
|
+
"@wordpress/commands": "^1.54.0",
|
|
59
|
+
"@wordpress/components": "^40.0.0",
|
|
60
|
+
"@wordpress/compose": "^8.7.0",
|
|
61
|
+
"@wordpress/core-data": "^7.54.0",
|
|
62
|
+
"@wordpress/data": "^10.54.0",
|
|
63
|
+
"@wordpress/dataviews": "^18.1.0",
|
|
64
|
+
"@wordpress/date": "^5.54.0",
|
|
65
|
+
"@wordpress/deprecated": "^4.54.0",
|
|
66
|
+
"@wordpress/dom": "^4.54.0",
|
|
67
|
+
"@wordpress/editor": "^14.54.0",
|
|
68
|
+
"@wordpress/element": "^8.6.0",
|
|
69
|
+
"@wordpress/escape-html": "^3.54.0",
|
|
70
|
+
"@wordpress/fields": "^0.46.0",
|
|
71
|
+
"@wordpress/global-styles-engine": "^1.21.0",
|
|
72
|
+
"@wordpress/global-styles-ui": "^1.21.0",
|
|
73
|
+
"@wordpress/hooks": "^4.54.0",
|
|
74
|
+
"@wordpress/html-entities": "^4.54.0",
|
|
75
|
+
"@wordpress/i18n": "^6.27.0",
|
|
76
|
+
"@wordpress/icons": "^15.5.0",
|
|
77
|
+
"@wordpress/keyboard-shortcuts": "^5.54.0",
|
|
78
|
+
"@wordpress/keycodes": "^4.54.0",
|
|
79
|
+
"@wordpress/media-utils": "^5.54.0",
|
|
80
|
+
"@wordpress/notices": "^5.54.0",
|
|
81
|
+
"@wordpress/patterns": "^2.54.0",
|
|
82
|
+
"@wordpress/plugins": "^7.54.0",
|
|
83
|
+
"@wordpress/preferences": "^4.54.0",
|
|
84
|
+
"@wordpress/primitives": "^4.54.0",
|
|
85
|
+
"@wordpress/private-apis": "^1.54.0",
|
|
86
|
+
"@wordpress/reusable-blocks": "^5.54.0",
|
|
87
|
+
"@wordpress/router": "^1.54.0",
|
|
88
|
+
"@wordpress/style-engine": "^2.54.0",
|
|
89
|
+
"@wordpress/theme": "^2.0.0",
|
|
90
|
+
"@wordpress/ui": "^0.21.0",
|
|
91
|
+
"@wordpress/url": "^4.54.0",
|
|
92
|
+
"@wordpress/viewport": "^6.54.0",
|
|
93
|
+
"@wordpress/views": "^1.21.0",
|
|
94
|
+
"@wordpress/widgets": "^4.54.0",
|
|
95
|
+
"@wordpress/wordcount": "^4.54.0",
|
|
96
96
|
"change-case": "^4.1.2",
|
|
97
97
|
"clsx": "^2.1.1",
|
|
98
98
|
"colord": "^2.9.3",
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"publishConfig": {
|
|
107
107
|
"access": "public"
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "5ef24f60261976bb198ad035db24bf81c1fb92b4"
|
|
110
110
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useRegistry } from '@wordpress/data';
|
|
2
2
|
import { privateApis as routerPrivateApis } from '@wordpress/router';
|
|
3
3
|
import { useCallback } from '@wordpress/element';
|
|
4
4
|
import { addQueryArgs } from '@wordpress/url';
|
|
5
5
|
import { store as coreStore } from '@wordpress/core-data';
|
|
6
6
|
import { store as editorStore } from '@wordpress/editor';
|
|
7
7
|
import { unlock } from '../../lock-unlock';
|
|
8
|
-
import {
|
|
8
|
+
import { isValidViewport } from './viewport';
|
|
9
9
|
|
|
10
10
|
const { useHistory, useLocation } = unlock( routerPrivateApis );
|
|
11
11
|
|
|
12
|
-
const VALID_VIEWPORTS = [ 'desktop', 'tablet', 'mobile' ];
|
|
13
12
|
/**
|
|
14
13
|
* Hook to handle navigation to entity records.
|
|
15
14
|
*
|
|
@@ -20,10 +19,6 @@ export default function useNavigateToEntityRecord() {
|
|
|
20
19
|
const location = useLocation();
|
|
21
20
|
const { query, path } = location;
|
|
22
21
|
const registry = useRegistry();
|
|
23
|
-
const currentDeviceType = useSelect(
|
|
24
|
-
( select ) => select( editorStore ).getDeviceType(),
|
|
25
|
-
[]
|
|
26
|
-
);
|
|
27
22
|
|
|
28
23
|
const onNavigateToEntityRecord = useCallback(
|
|
29
24
|
( params ) => {
|
|
@@ -49,37 +44,21 @@ export default function useNavigateToEntityRecord() {
|
|
|
49
44
|
// Store the selected block in the URL for restoration when navigating back.
|
|
50
45
|
if ( externalClientId ) {
|
|
51
46
|
urlUpdates.selectedBlock = externalClientId;
|
|
47
|
+
history.navigate( addQueryArgs( path, urlUpdates ), {
|
|
48
|
+
replace: true,
|
|
49
|
+
} );
|
|
52
50
|
}
|
|
53
51
|
|
|
54
|
-
//
|
|
55
|
-
//
|
|
52
|
+
// The width an entity is asked to be edited at is where it opens,
|
|
53
|
+
// not something the entity being left carries away: a width set from
|
|
54
|
+
// the device preview is view state, and an entity that asks for none
|
|
55
|
+
// opens at the default.
|
|
56
56
|
const requestedViewport =
|
|
57
57
|
typeof params.viewport === 'string'
|
|
58
58
|
? params.viewport.toLowerCase()
|
|
59
59
|
: undefined;
|
|
60
60
|
const isValidRequestedViewport =
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if ( isValidRequestedViewport ) {
|
|
64
|
-
const currentViewportLower = (
|
|
65
|
-
currentDeviceType || DEFAULT_DEVICE_TYPE
|
|
66
|
-
).toLowerCase();
|
|
67
|
-
if (
|
|
68
|
-
currentViewportLower === DEFAULT_DEVICE_TYPE.toLowerCase()
|
|
69
|
-
) {
|
|
70
|
-
delete urlUpdates.viewport;
|
|
71
|
-
} else {
|
|
72
|
-
urlUpdates.viewport = currentViewportLower;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
const hasUpdatesToSave =
|
|
77
|
-
externalClientId || isValidRequestedViewport;
|
|
78
|
-
if ( hasUpdatesToSave ) {
|
|
79
|
-
history.navigate( addQueryArgs( path, urlUpdates ), {
|
|
80
|
-
replace: true,
|
|
81
|
-
} );
|
|
82
|
-
}
|
|
61
|
+
isValidViewport( requestedViewport );
|
|
83
62
|
|
|
84
63
|
// Navigate to the new entity record
|
|
85
64
|
const queryArgs = {
|
|
@@ -96,7 +75,7 @@ export default function useNavigateToEntityRecord() {
|
|
|
96
75
|
|
|
97
76
|
history.navigate( url );
|
|
98
77
|
},
|
|
99
|
-
[ history, path, query, registry
|
|
78
|
+
[ history, path, query, registry ]
|
|
100
79
|
);
|
|
101
80
|
|
|
102
81
|
return onNavigateToEntityRecord;
|
|
@@ -91,7 +91,6 @@ export function useSpecificEditorSettings() {
|
|
|
91
91
|
__experimentalFeatures: globalSettings,
|
|
92
92
|
richEditingEnabled: true,
|
|
93
93
|
supportsTemplateMode: true,
|
|
94
|
-
focusMode: canvas !== 'view',
|
|
95
94
|
onNavigateToEntityRecord,
|
|
96
95
|
onNavigateToPreviousEntityRecord,
|
|
97
96
|
isPreviewMode: canvas === 'view',
|