@wordpress/edit-site 6.8.5 → 6.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/build/components/editor-canvas-container/index.js +1 -1
- package/build/components/editor-canvas-container/index.js.map +1 -1
- package/build/components/global-styles/font-library-modal/font-card.js +1 -1
- package/build/components/global-styles/font-library-modal/font-card.js.map +1 -1
- package/build/components/global-styles/font-library-modal/font-collection.js +4 -4
- package/build/components/global-styles/font-library-modal/font-collection.js.map +1 -1
- package/build/components/global-styles/font-library-modal/index.js +1 -1
- package/build/components/global-styles/font-library-modal/index.js.map +1 -1
- package/build/components/global-styles/font-library-modal/installed-fonts.js +5 -5
- package/build/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
- package/build/components/global-styles/font-sizes/font-size.js +15 -6
- package/build/components/global-styles/font-sizes/font-size.js.map +1 -1
- package/build/components/global-styles/header.js +1 -1
- package/build/components/global-styles/header.js.map +1 -1
- package/build/components/global-styles/navigation-button.js +2 -2
- package/build/components/global-styles/navigation-button.js.map +1 -1
- package/build/components/global-styles/screen-revisions/index.js +1 -2
- package/build/components/global-styles/screen-revisions/index.js.map +1 -1
- package/build/components/global-styles/shadows-edit-panel.js +4 -1
- package/build/components/global-styles/shadows-edit-panel.js.map +1 -1
- package/build/components/global-styles/ui.js +6 -19
- package/build/components/global-styles/ui.js.map +1 -1
- package/build/components/global-styles-sidebar/index.js +1 -1
- package/build/components/global-styles-sidebar/index.js.map +1 -1
- package/build/components/page-patterns/fields.js +2 -4
- package/build/components/page-patterns/fields.js.map +1 -1
- package/build/components/resizable-frame/index.js +25 -7
- package/build/components/resizable-frame/index.js.map +1 -1
- package/build/components/routes/link.js +6 -3
- package/build/components/routes/link.js.map +1 -1
- package/build/components/save-panel/index.js +2 -4
- package/build/components/save-panel/index.js.map +1 -1
- package/build/components/sidebar-button/index.js +2 -4
- package/build/components/sidebar-button/index.js.map +1 -1
- package/build/components/sidebar-dataviews/add-new-view.js +4 -8
- package/build/components/sidebar-dataviews/add-new-view.js.map +1 -1
- package/build/components/site-hub/index.js +12 -24
- package/build/components/site-hub/index.js.map +1 -1
- package/build/components/style-book/categories.js +70 -0
- package/build/components/style-book/categories.js.map +1 -0
- package/build/components/style-book/constants.js +151 -0
- package/build/components/style-book/constants.js.map +1 -0
- package/build/components/style-book/examples.js +58 -0
- package/build/components/style-book/examples.js.map +1 -0
- package/build/components/style-book/index.js +52 -133
- package/build/components/style-book/index.js.map +1 -1
- package/build/components/style-book/types.js +6 -0
- package/build/components/style-book/types.js.map +1 -0
- package/build/store/selectors.js +1 -1
- package/build/store/selectors.js.map +1 -1
- package/build-module/components/editor-canvas-container/index.js +1 -1
- package/build-module/components/editor-canvas-container/index.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/font-card.js +1 -1
- package/build-module/components/global-styles/font-library-modal/font-card.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/font-collection.js +5 -5
- package/build-module/components/global-styles/font-library-modal/font-collection.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/index.js +1 -1
- package/build-module/components/global-styles/font-library-modal/index.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/installed-fonts.js +5 -5
- package/build-module/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
- package/build-module/components/global-styles/font-sizes/font-size.js +16 -7
- package/build-module/components/global-styles/font-sizes/font-size.js.map +1 -1
- package/build-module/components/global-styles/header.js +2 -2
- package/build-module/components/global-styles/header.js.map +1 -1
- package/build-module/components/global-styles/navigation-button.js +3 -3
- package/build-module/components/global-styles/navigation-button.js.map +1 -1
- package/build-module/components/global-styles/screen-revisions/index.js +1 -2
- package/build-module/components/global-styles/screen-revisions/index.js.map +1 -1
- package/build-module/components/global-styles/shadows-edit-panel.js +4 -1
- package/build-module/components/global-styles/shadows-edit-panel.js.map +1 -1
- package/build-module/components/global-styles/ui.js +3 -16
- package/build-module/components/global-styles/ui.js.map +1 -1
- package/build-module/components/global-styles-sidebar/index.js +1 -1
- package/build-module/components/global-styles-sidebar/index.js.map +1 -1
- package/build-module/components/page-patterns/fields.js +2 -4
- package/build-module/components/page-patterns/fields.js.map +1 -1
- package/build-module/components/resizable-frame/index.js +26 -8
- package/build-module/components/resizable-frame/index.js.map +1 -1
- package/build-module/components/routes/link.js +6 -3
- package/build-module/components/routes/link.js.map +1 -1
- package/build-module/components/save-panel/index.js +2 -4
- package/build-module/components/save-panel/index.js.map +1 -1
- package/build-module/components/sidebar-button/index.js +2 -4
- package/build-module/components/sidebar-button/index.js.map +1 -1
- package/build-module/components/sidebar-dataviews/add-new-view.js +4 -8
- package/build-module/components/sidebar-dataviews/add-new-view.js.map +1 -1
- package/build-module/components/site-hub/index.js +12 -24
- package/build-module/components/site-hub/index.js.map +1 -1
- package/build-module/components/style-book/categories.js +64 -0
- package/build-module/components/style-book/categories.js.map +1 -0
- package/build-module/components/style-book/constants.js +145 -0
- package/build-module/components/style-book/constants.js.map +1 -0
- package/build-module/components/style-book/examples.js +52 -0
- package/build-module/components/style-book/examples.js.map +1 -0
- package/build-module/components/style-book/index.js +51 -132
- package/build-module/components/style-book/index.js.map +1 -1
- package/build-module/components/style-book/types.js +2 -0
- package/build-module/components/style-book/types.js.map +1 -0
- package/build-module/store/selectors.js +1 -1
- package/build-module/store/selectors.js.map +1 -1
- package/build-style/posts-rtl.css +32 -23
- package/build-style/posts.css +32 -23
- package/build-style/style-rtl.css +44 -32
- package/build-style/style.css +44 -32
- package/package.json +41 -41
- package/src/components/editor-canvas-container/index.js +1 -1
- package/src/components/editor-canvas-container/style.scss +2 -2
- package/src/components/global-styles/font-library-modal/font-card.js +1 -1
- package/src/components/global-styles/font-library-modal/font-collection.js +8 -10
- package/src/components/global-styles/font-library-modal/index.js +1 -1
- package/src/components/global-styles/font-library-modal/installed-fonts.js +9 -11
- package/src/components/global-styles/font-library-modal/style.scss +5 -1
- package/src/components/global-styles/font-sizes/font-size.js +15 -8
- package/src/components/global-styles/header.js +2 -2
- package/src/components/global-styles/navigation-button.js +3 -4
- package/src/components/global-styles/screen-revisions/index.js +1 -2
- package/src/components/global-styles/shadows-edit-panel.js +5 -1
- package/src/components/global-styles/ui.js +5 -19
- package/src/components/global-styles-sidebar/index.js +1 -1
- package/src/components/global-styles-sidebar/style.scss +1 -8
- package/src/components/layout/style.scss +7 -2
- package/src/components/page-patterns/fields.js +1 -2
- package/src/components/resizable-frame/index.js +14 -8
- package/src/components/routes/link.js +6 -3
- package/src/components/save-panel/index.js +1 -2
- package/src/components/sidebar-button/index.js +1 -2
- package/src/components/sidebar-dataviews/add-new-view.js +2 -4
- package/src/components/site-hub/index.js +6 -12
- package/src/components/style-book/categories.ts +91 -0
- package/src/components/style-book/constants.ts +191 -0
- package/src/components/style-book/examples.ts +63 -0
- package/src/components/style-book/index.js +76 -163
- package/src/components/style-book/style.scss +9 -5
- package/src/components/style-book/test/categories.js +171 -0
- package/src/components/style-book/types.ts +27 -0
- package/src/store/selectors.js +1 -1
|
@@ -30,6 +30,9 @@
|
|
|
30
30
|
/**
|
|
31
31
|
* Fonts & basic variables.
|
|
32
32
|
*/
|
|
33
|
+
/**
|
|
34
|
+
* Typography
|
|
35
|
+
*/
|
|
33
36
|
/**
|
|
34
37
|
* Grid System.
|
|
35
38
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
@@ -44,7 +47,10 @@
|
|
|
44
47
|
* Dimensions.
|
|
45
48
|
*/
|
|
46
49
|
/**
|
|
47
|
-
*
|
|
50
|
+
* Mobile specific styles
|
|
51
|
+
*/
|
|
52
|
+
/**
|
|
53
|
+
* Editor styles.
|
|
48
54
|
*/
|
|
49
55
|
/**
|
|
50
56
|
* Block & Editor UI.
|
|
@@ -68,6 +74,9 @@
|
|
|
68
74
|
* Creates a fading overlay to signify that the content is longer
|
|
69
75
|
* than the space allows.
|
|
70
76
|
*/
|
|
77
|
+
/**
|
|
78
|
+
* Typography
|
|
79
|
+
*/
|
|
71
80
|
/**
|
|
72
81
|
* Breakpoint mixins
|
|
73
82
|
*/
|
|
@@ -357,7 +366,6 @@
|
|
|
357
366
|
}
|
|
358
367
|
|
|
359
368
|
.dataviews-filters__search-widget-listbox {
|
|
360
|
-
max-height: 184px;
|
|
361
369
|
padding: 4px;
|
|
362
370
|
overflow: auto;
|
|
363
371
|
}
|
|
@@ -577,11 +585,10 @@
|
|
|
577
585
|
margin: 0;
|
|
578
586
|
}
|
|
579
587
|
|
|
580
|
-
.dataviews-view-config
|
|
588
|
+
.dataviews-view-config {
|
|
581
589
|
width: 320px;
|
|
582
590
|
/* stylelint-disable-next-line property-no-unknown -- the linter needs to be updated to accepted the container-type property */
|
|
583
591
|
container-type: inline-size;
|
|
584
|
-
padding: 16px;
|
|
585
592
|
font-size: 13px;
|
|
586
593
|
line-height: 1.4;
|
|
587
594
|
}
|
|
@@ -646,6 +653,15 @@
|
|
|
646
653
|
top: unset;
|
|
647
654
|
}
|
|
648
655
|
|
|
656
|
+
.dataforms-layouts-panel__field-dropdown .dataforms-combined-edit {
|
|
657
|
+
border: none;
|
|
658
|
+
padding: 0;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.dataforms-combined-edit__field {
|
|
662
|
+
flex: 1 1 auto;
|
|
663
|
+
}
|
|
664
|
+
|
|
649
665
|
.dataviews-view-grid {
|
|
650
666
|
margin-bottom: auto;
|
|
651
667
|
grid-template-rows: max-content;
|
|
@@ -1170,17 +1186,6 @@ ul.dataviews-view-list {
|
|
|
1170
1186
|
margin-bottom: 16px;
|
|
1171
1187
|
}
|
|
1172
1188
|
|
|
1173
|
-
[class].dataforms-layouts-panel__dropdown-header-action {
|
|
1174
|
-
height: 24px;
|
|
1175
|
-
}
|
|
1176
|
-
[class].dataforms-layouts-panel__dropdown-header-action.has-icon {
|
|
1177
|
-
min-width: 24px;
|
|
1178
|
-
padding: 0;
|
|
1179
|
-
}
|
|
1180
|
-
[class].dataforms-layouts-panel__dropdown-header-action:not(.has-icon) {
|
|
1181
|
-
text-decoration: underline;
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
1189
|
.edit-site-custom-template-modal__contents-wrapper {
|
|
1185
1190
|
height: 100%;
|
|
1186
1191
|
justify-content: flex-start !important;
|
|
@@ -1774,12 +1779,7 @@ ul.dataviews-view-list {
|
|
|
1774
1779
|
flex-direction: column;
|
|
1775
1780
|
min-height: 100%;
|
|
1776
1781
|
}
|
|
1777
|
-
.edit-site-global-styles-sidebar__panel
|
|
1778
|
-
display: flex;
|
|
1779
|
-
flex-direction: column;
|
|
1780
|
-
flex: 1;
|
|
1781
|
-
}
|
|
1782
|
-
.edit-site-global-styles-sidebar__navigator-screen {
|
|
1782
|
+
.edit-site-global-styles-sidebar__panel {
|
|
1783
1783
|
flex: 1;
|
|
1784
1784
|
}
|
|
1785
1785
|
|
|
@@ -2369,13 +2369,16 @@ ul.dataviews-view-list {
|
|
|
2369
2369
|
width: calc(100% - 16px);
|
|
2370
2370
|
}
|
|
2371
2371
|
.edit-site-layout__canvas .edit-site-resizable-frame__inner-content {
|
|
2372
|
-
box-shadow: 0
|
|
2373
|
-
transition: border-radius 0.4s;
|
|
2372
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01);
|
|
2373
|
+
transition: border-radius, box-shadow 0.4s;
|
|
2374
2374
|
overflow: hidden;
|
|
2375
2375
|
}
|
|
2376
2376
|
.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content {
|
|
2377
2377
|
border-radius: 8px;
|
|
2378
2378
|
}
|
|
2379
|
+
.edit-site-layout__canvas .edit-site-resizable-frame__inner-content:hover {
|
|
2380
|
+
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02);
|
|
2381
|
+
}
|
|
2379
2382
|
}
|
|
2380
2383
|
.edit-site-layout.is-full-canvas .edit-site-layout__canvas {
|
|
2381
2384
|
top: 0;
|
|
@@ -2489,6 +2492,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2489
2492
|
flex-grow: 1;
|
|
2490
2493
|
margin: 0;
|
|
2491
2494
|
overflow: hidden;
|
|
2495
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01);
|
|
2492
2496
|
}
|
|
2493
2497
|
@media (min-width: 782px) {
|
|
2494
2498
|
.edit-site-layout__area {
|
|
@@ -2541,7 +2545,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2541
2545
|
contain: content;
|
|
2542
2546
|
}
|
|
2543
2547
|
|
|
2544
|
-
@keyframes
|
|
2548
|
+
@keyframes _u3rbd_slide-from-right {
|
|
2545
2549
|
from {
|
|
2546
2550
|
transform: translateX(-50px);
|
|
2547
2551
|
opacity: 0;
|
|
@@ -2551,7 +2555,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2551
2555
|
opacity: 1;
|
|
2552
2556
|
}
|
|
2553
2557
|
}
|
|
2554
|
-
@keyframes
|
|
2558
|
+
@keyframes _u3rbd_slide-from-left {
|
|
2555
2559
|
from {
|
|
2556
2560
|
transform: translateX(50px);
|
|
2557
2561
|
opacity: 0;
|
|
@@ -2607,10 +2611,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2607
2611
|
}
|
|
2608
2612
|
}
|
|
2609
2613
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
2610
|
-
animation-name:
|
|
2614
|
+
animation-name: _u3rbd_slide-from-left;
|
|
2611
2615
|
}
|
|
2612
2616
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
2613
|
-
animation-name:
|
|
2617
|
+
animation-name: _u3rbd_slide-from-right;
|
|
2614
2618
|
}
|
|
2615
2619
|
|
|
2616
2620
|
.edit-site-sidebar-button {
|
|
@@ -3022,10 +3026,15 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3022
3026
|
outline-offset: calc(-2 * var(--wp-admin-border-width-focus));
|
|
3023
3027
|
}
|
|
3024
3028
|
|
|
3025
|
-
.edit-site-style-
|
|
3029
|
+
.edit-site-style-book__tablist-container {
|
|
3026
3030
|
background: #fff;
|
|
3027
|
-
|
|
3031
|
+
width: 100%;
|
|
3032
|
+
padding-left: 56px;
|
|
3033
|
+
display: flex;
|
|
3034
|
+
position: absolute;
|
|
3035
|
+
z-index: 1;
|
|
3028
3036
|
}
|
|
3037
|
+
|
|
3029
3038
|
.edit-site-style-book__tabs [role=tabpanel] {
|
|
3030
3039
|
bottom: 0;
|
|
3031
3040
|
right: 0;
|
|
@@ -3064,8 +3073,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3064
3073
|
.edit-site-editor-canvas-container__close-button {
|
|
3065
3074
|
position: absolute;
|
|
3066
3075
|
left: 8px;
|
|
3067
|
-
top:
|
|
3068
|
-
z-index:
|
|
3076
|
+
top: 8px;
|
|
3077
|
+
z-index: 2;
|
|
3069
3078
|
background: #fff;
|
|
3070
3079
|
}
|
|
3071
3080
|
|
|
@@ -3334,7 +3343,7 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
|
|
|
3334
3343
|
padding-bottom: 16px;
|
|
3335
3344
|
}
|
|
3336
3345
|
|
|
3337
|
-
.font-library-modal__tablist {
|
|
3346
|
+
.font-library-modal__tablist-container {
|
|
3338
3347
|
position: sticky;
|
|
3339
3348
|
top: 0;
|
|
3340
3349
|
border-bottom: 1px solid #ddd;
|
|
@@ -3343,6 +3352,9 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
|
|
|
3343
3352
|
padding: 0 16px;
|
|
3344
3353
|
z-index: 1;
|
|
3345
3354
|
}
|
|
3355
|
+
.font-library-modal__tablist-container [role=tablist] {
|
|
3356
|
+
margin-bottom: -1px;
|
|
3357
|
+
}
|
|
3346
3358
|
|
|
3347
3359
|
.font-library-modal__upload-area {
|
|
3348
3360
|
align-items: center;
|
package/build-style/style.css
CHANGED
|
@@ -30,6 +30,9 @@
|
|
|
30
30
|
/**
|
|
31
31
|
* Fonts & basic variables.
|
|
32
32
|
*/
|
|
33
|
+
/**
|
|
34
|
+
* Typography
|
|
35
|
+
*/
|
|
33
36
|
/**
|
|
34
37
|
* Grid System.
|
|
35
38
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
@@ -44,7 +47,10 @@
|
|
|
44
47
|
* Dimensions.
|
|
45
48
|
*/
|
|
46
49
|
/**
|
|
47
|
-
*
|
|
50
|
+
* Mobile specific styles
|
|
51
|
+
*/
|
|
52
|
+
/**
|
|
53
|
+
* Editor styles.
|
|
48
54
|
*/
|
|
49
55
|
/**
|
|
50
56
|
* Block & Editor UI.
|
|
@@ -68,6 +74,9 @@
|
|
|
68
74
|
* Creates a fading overlay to signify that the content is longer
|
|
69
75
|
* than the space allows.
|
|
70
76
|
*/
|
|
77
|
+
/**
|
|
78
|
+
* Typography
|
|
79
|
+
*/
|
|
71
80
|
/**
|
|
72
81
|
* Breakpoint mixins
|
|
73
82
|
*/
|
|
@@ -357,7 +366,6 @@
|
|
|
357
366
|
}
|
|
358
367
|
|
|
359
368
|
.dataviews-filters__search-widget-listbox {
|
|
360
|
-
max-height: 184px;
|
|
361
369
|
padding: 4px;
|
|
362
370
|
overflow: auto;
|
|
363
371
|
}
|
|
@@ -577,11 +585,10 @@
|
|
|
577
585
|
margin: 0;
|
|
578
586
|
}
|
|
579
587
|
|
|
580
|
-
.dataviews-view-config
|
|
588
|
+
.dataviews-view-config {
|
|
581
589
|
width: 320px;
|
|
582
590
|
/* stylelint-disable-next-line property-no-unknown -- the linter needs to be updated to accepted the container-type property */
|
|
583
591
|
container-type: inline-size;
|
|
584
|
-
padding: 16px;
|
|
585
592
|
font-size: 13px;
|
|
586
593
|
line-height: 1.4;
|
|
587
594
|
}
|
|
@@ -646,6 +653,15 @@
|
|
|
646
653
|
top: unset;
|
|
647
654
|
}
|
|
648
655
|
|
|
656
|
+
.dataforms-layouts-panel__field-dropdown .dataforms-combined-edit {
|
|
657
|
+
border: none;
|
|
658
|
+
padding: 0;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.dataforms-combined-edit__field {
|
|
662
|
+
flex: 1 1 auto;
|
|
663
|
+
}
|
|
664
|
+
|
|
649
665
|
.dataviews-view-grid {
|
|
650
666
|
margin-bottom: auto;
|
|
651
667
|
grid-template-rows: max-content;
|
|
@@ -1170,17 +1186,6 @@ ul.dataviews-view-list {
|
|
|
1170
1186
|
margin-bottom: 16px;
|
|
1171
1187
|
}
|
|
1172
1188
|
|
|
1173
|
-
[class].dataforms-layouts-panel__dropdown-header-action {
|
|
1174
|
-
height: 24px;
|
|
1175
|
-
}
|
|
1176
|
-
[class].dataforms-layouts-panel__dropdown-header-action.has-icon {
|
|
1177
|
-
min-width: 24px;
|
|
1178
|
-
padding: 0;
|
|
1179
|
-
}
|
|
1180
|
-
[class].dataforms-layouts-panel__dropdown-header-action:not(.has-icon) {
|
|
1181
|
-
text-decoration: underline;
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
1189
|
.edit-site-custom-template-modal__contents-wrapper {
|
|
1185
1190
|
height: 100%;
|
|
1186
1191
|
justify-content: flex-start !important;
|
|
@@ -1775,12 +1780,7 @@ ul.dataviews-view-list {
|
|
|
1775
1780
|
flex-direction: column;
|
|
1776
1781
|
min-height: 100%;
|
|
1777
1782
|
}
|
|
1778
|
-
.edit-site-global-styles-sidebar__panel
|
|
1779
|
-
display: flex;
|
|
1780
|
-
flex-direction: column;
|
|
1781
|
-
flex: 1;
|
|
1782
|
-
}
|
|
1783
|
-
.edit-site-global-styles-sidebar__navigator-screen {
|
|
1783
|
+
.edit-site-global-styles-sidebar__panel {
|
|
1784
1784
|
flex: 1;
|
|
1785
1785
|
}
|
|
1786
1786
|
|
|
@@ -2370,13 +2370,16 @@ ul.dataviews-view-list {
|
|
|
2370
2370
|
width: calc(100% - 16px);
|
|
2371
2371
|
}
|
|
2372
2372
|
.edit-site-layout__canvas .edit-site-resizable-frame__inner-content {
|
|
2373
|
-
box-shadow: 0
|
|
2374
|
-
transition: border-radius 0.4s;
|
|
2373
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01);
|
|
2374
|
+
transition: border-radius, box-shadow 0.4s;
|
|
2375
2375
|
overflow: hidden;
|
|
2376
2376
|
}
|
|
2377
2377
|
.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content {
|
|
2378
2378
|
border-radius: 8px;
|
|
2379
2379
|
}
|
|
2380
|
+
.edit-site-layout__canvas .edit-site-resizable-frame__inner-content:hover {
|
|
2381
|
+
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02);
|
|
2382
|
+
}
|
|
2380
2383
|
}
|
|
2381
2384
|
.edit-site-layout.is-full-canvas .edit-site-layout__canvas {
|
|
2382
2385
|
top: 0;
|
|
@@ -2490,6 +2493,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2490
2493
|
flex-grow: 1;
|
|
2491
2494
|
margin: 0;
|
|
2492
2495
|
overflow: hidden;
|
|
2496
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01);
|
|
2493
2497
|
}
|
|
2494
2498
|
@media (min-width: 782px) {
|
|
2495
2499
|
.edit-site-layout__area {
|
|
@@ -2542,7 +2546,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2542
2546
|
contain: content;
|
|
2543
2547
|
}
|
|
2544
2548
|
|
|
2545
|
-
@keyframes
|
|
2549
|
+
@keyframes _u3rbd_slide-from-right {
|
|
2546
2550
|
from {
|
|
2547
2551
|
transform: translateX(50px);
|
|
2548
2552
|
opacity: 0;
|
|
@@ -2552,7 +2556,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2552
2556
|
opacity: 1;
|
|
2553
2557
|
}
|
|
2554
2558
|
}
|
|
2555
|
-
@keyframes
|
|
2559
|
+
@keyframes _u3rbd_slide-from-left {
|
|
2556
2560
|
from {
|
|
2557
2561
|
transform: translateX(-50px);
|
|
2558
2562
|
opacity: 0;
|
|
@@ -2608,10 +2612,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2608
2612
|
}
|
|
2609
2613
|
}
|
|
2610
2614
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
2611
|
-
animation-name:
|
|
2615
|
+
animation-name: _u3rbd_slide-from-left;
|
|
2612
2616
|
}
|
|
2613
2617
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
2614
|
-
animation-name:
|
|
2618
|
+
animation-name: _u3rbd_slide-from-right;
|
|
2615
2619
|
}
|
|
2616
2620
|
|
|
2617
2621
|
.edit-site-sidebar-button {
|
|
@@ -3023,10 +3027,15 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3023
3027
|
outline-offset: calc(-2 * var(--wp-admin-border-width-focus));
|
|
3024
3028
|
}
|
|
3025
3029
|
|
|
3026
|
-
.edit-site-style-
|
|
3030
|
+
.edit-site-style-book__tablist-container {
|
|
3027
3031
|
background: #fff;
|
|
3028
|
-
|
|
3032
|
+
width: 100%;
|
|
3033
|
+
padding-right: 56px;
|
|
3034
|
+
display: flex;
|
|
3035
|
+
position: absolute;
|
|
3036
|
+
z-index: 1;
|
|
3029
3037
|
}
|
|
3038
|
+
|
|
3030
3039
|
.edit-site-style-book__tabs [role=tabpanel] {
|
|
3031
3040
|
bottom: 0;
|
|
3032
3041
|
left: 0;
|
|
@@ -3065,8 +3074,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3065
3074
|
.edit-site-editor-canvas-container__close-button {
|
|
3066
3075
|
position: absolute;
|
|
3067
3076
|
right: 8px;
|
|
3068
|
-
top:
|
|
3069
|
-
z-index:
|
|
3077
|
+
top: 8px;
|
|
3078
|
+
z-index: 2;
|
|
3070
3079
|
background: #fff;
|
|
3071
3080
|
}
|
|
3072
3081
|
|
|
@@ -3335,7 +3344,7 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
|
|
|
3335
3344
|
padding-bottom: 16px;
|
|
3336
3345
|
}
|
|
3337
3346
|
|
|
3338
|
-
.font-library-modal__tablist {
|
|
3347
|
+
.font-library-modal__tablist-container {
|
|
3339
3348
|
position: sticky;
|
|
3340
3349
|
top: 0;
|
|
3341
3350
|
border-bottom: 1px solid #ddd;
|
|
@@ -3344,6 +3353,9 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
|
|
|
3344
3353
|
padding: 0 16px;
|
|
3345
3354
|
z-index: 1;
|
|
3346
3355
|
}
|
|
3356
|
+
.font-library-modal__tablist-container [role=tablist] {
|
|
3357
|
+
margin-bottom: -1px;
|
|
3358
|
+
}
|
|
3347
3359
|
|
|
3348
3360
|
.font-library-modal__upload-area {
|
|
3349
3361
|
align-items: center;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.9.0",
|
|
4
4
|
"description": "Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -29,45 +29,45 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@babel/runtime": "^7.16.0",
|
|
31
31
|
"@react-spring/web": "^9.4.5",
|
|
32
|
-
"@wordpress/a11y": "^4.
|
|
33
|
-
"@wordpress/api-fetch": "^7.
|
|
34
|
-
"@wordpress/blob": "^4.
|
|
35
|
-
"@wordpress/block-editor": "^14.
|
|
36
|
-
"@wordpress/block-library": "^9.
|
|
37
|
-
"@wordpress/blocks": "^13.
|
|
38
|
-
"@wordpress/commands": "^1.
|
|
39
|
-
"@wordpress/components": "^28.
|
|
40
|
-
"@wordpress/compose": "^7.
|
|
41
|
-
"@wordpress/core-commands": "^1.
|
|
42
|
-
"@wordpress/core-data": "^7.
|
|
43
|
-
"@wordpress/data": "^10.
|
|
44
|
-
"@wordpress/dataviews": "^4.
|
|
45
|
-
"@wordpress/date": "^5.
|
|
46
|
-
"@wordpress/deprecated": "^4.
|
|
47
|
-
"@wordpress/dom": "^4.
|
|
48
|
-
"@wordpress/editor": "^14.
|
|
49
|
-
"@wordpress/element": "^6.
|
|
50
|
-
"@wordpress/escape-html": "^3.
|
|
51
|
-
"@wordpress/hooks": "^4.
|
|
52
|
-
"@wordpress/html-entities": "^4.
|
|
53
|
-
"@wordpress/i18n": "^5.
|
|
54
|
-
"@wordpress/icons": "^10.
|
|
55
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
56
|
-
"@wordpress/keycodes": "^4.
|
|
57
|
-
"@wordpress/notices": "^5.
|
|
58
|
-
"@wordpress/patterns": "^2.
|
|
59
|
-
"@wordpress/plugins": "^7.
|
|
60
|
-
"@wordpress/preferences": "^4.
|
|
61
|
-
"@wordpress/primitives": "^4.
|
|
62
|
-
"@wordpress/priority-queue": "^3.
|
|
63
|
-
"@wordpress/private-apis": "^1.
|
|
64
|
-
"@wordpress/reusable-blocks": "^5.
|
|
65
|
-
"@wordpress/router": "^1.
|
|
66
|
-
"@wordpress/style-engine": "^2.
|
|
67
|
-
"@wordpress/url": "^4.
|
|
68
|
-
"@wordpress/viewport": "^6.
|
|
69
|
-
"@wordpress/widgets": "^4.
|
|
70
|
-
"@wordpress/wordcount": "^4.
|
|
32
|
+
"@wordpress/a11y": "^4.9.0",
|
|
33
|
+
"@wordpress/api-fetch": "^7.9.0",
|
|
34
|
+
"@wordpress/blob": "^4.9.0",
|
|
35
|
+
"@wordpress/block-editor": "^14.4.0",
|
|
36
|
+
"@wordpress/block-library": "^9.9.0",
|
|
37
|
+
"@wordpress/blocks": "^13.9.0",
|
|
38
|
+
"@wordpress/commands": "^1.9.0",
|
|
39
|
+
"@wordpress/components": "^28.9.0",
|
|
40
|
+
"@wordpress/compose": "^7.9.0",
|
|
41
|
+
"@wordpress/core-commands": "^1.9.0",
|
|
42
|
+
"@wordpress/core-data": "^7.9.0",
|
|
43
|
+
"@wordpress/data": "^10.9.0",
|
|
44
|
+
"@wordpress/dataviews": "^4.5.0",
|
|
45
|
+
"@wordpress/date": "^5.9.0",
|
|
46
|
+
"@wordpress/deprecated": "^4.9.0",
|
|
47
|
+
"@wordpress/dom": "^4.9.0",
|
|
48
|
+
"@wordpress/editor": "^14.9.0",
|
|
49
|
+
"@wordpress/element": "^6.9.0",
|
|
50
|
+
"@wordpress/escape-html": "^3.9.0",
|
|
51
|
+
"@wordpress/hooks": "^4.9.0",
|
|
52
|
+
"@wordpress/html-entities": "^4.9.0",
|
|
53
|
+
"@wordpress/i18n": "^5.9.0",
|
|
54
|
+
"@wordpress/icons": "^10.9.0",
|
|
55
|
+
"@wordpress/keyboard-shortcuts": "^5.9.0",
|
|
56
|
+
"@wordpress/keycodes": "^4.9.0",
|
|
57
|
+
"@wordpress/notices": "^5.9.0",
|
|
58
|
+
"@wordpress/patterns": "^2.9.0",
|
|
59
|
+
"@wordpress/plugins": "^7.9.0",
|
|
60
|
+
"@wordpress/preferences": "^4.9.0",
|
|
61
|
+
"@wordpress/primitives": "^4.9.0",
|
|
62
|
+
"@wordpress/priority-queue": "^3.9.0",
|
|
63
|
+
"@wordpress/private-apis": "^1.9.0",
|
|
64
|
+
"@wordpress/reusable-blocks": "^5.9.0",
|
|
65
|
+
"@wordpress/router": "^1.9.0",
|
|
66
|
+
"@wordpress/style-engine": "^2.9.0",
|
|
67
|
+
"@wordpress/url": "^4.9.0",
|
|
68
|
+
"@wordpress/viewport": "^6.9.0",
|
|
69
|
+
"@wordpress/widgets": "^4.9.0",
|
|
70
|
+
"@wordpress/wordcount": "^4.9.0",
|
|
71
71
|
"change-case": "^4.1.2",
|
|
72
72
|
"clsx": "^2.1.1",
|
|
73
73
|
"colord": "^2.9.2",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "2e5495c635910cb34bfaca3c6258d2e989f66214"
|
|
86
86
|
}
|
|
@@ -125,7 +125,7 @@ function EditorCanvasContainer( {
|
|
|
125
125
|
>
|
|
126
126
|
{ shouldShowCloseButton && (
|
|
127
127
|
<Button
|
|
128
|
-
|
|
128
|
+
size="compact"
|
|
129
129
|
className="edit-site-editor-canvas-container__close-button"
|
|
130
130
|
icon={ closeSmall }
|
|
131
131
|
label={ closeButtonLabel || __( 'Close' ) }
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
.edit-site-editor-canvas-container__close-button {
|
|
30
30
|
position: absolute;
|
|
31
31
|
right: $grid-unit-10;
|
|
32
|
-
top:
|
|
33
|
-
z-index:
|
|
32
|
+
top: $grid-unit-10;
|
|
33
|
+
z-index: 2;
|
|
34
34
|
background: $white;
|
|
35
35
|
}
|
|
@@ -13,9 +13,7 @@ import {
|
|
|
13
13
|
__experimentalText as Text,
|
|
14
14
|
__experimentalHStack as HStack,
|
|
15
15
|
__experimentalVStack as VStack,
|
|
16
|
-
|
|
17
|
-
__experimentalNavigatorScreen as NavigatorScreen,
|
|
18
|
-
__experimentalNavigatorBackButton as NavigatorBackButton,
|
|
16
|
+
Navigator,
|
|
19
17
|
__experimentalHeading as Heading,
|
|
20
18
|
Notice,
|
|
21
19
|
SelectControl,
|
|
@@ -284,11 +282,11 @@ function FontCollection( { slug } ) {
|
|
|
284
282
|
|
|
285
283
|
{ ! isLoading && (
|
|
286
284
|
<>
|
|
287
|
-
<
|
|
285
|
+
<Navigator
|
|
288
286
|
initialPath="/"
|
|
289
287
|
className="font-library-modal__tabpanel-layout"
|
|
290
288
|
>
|
|
291
|
-
<
|
|
289
|
+
<Navigator.Screen path="/">
|
|
292
290
|
<HStack justify="space-between">
|
|
293
291
|
<VStack>
|
|
294
292
|
<Heading level={ 2 } size={ 13 }>
|
|
@@ -378,11 +376,11 @@ function FontCollection( { slug } ) {
|
|
|
378
376
|
</ul>
|
|
379
377
|
{ /* eslint-enable jsx-a11y/no-redundant-roles */ }
|
|
380
378
|
</div>
|
|
381
|
-
</
|
|
379
|
+
</Navigator.Screen>
|
|
382
380
|
|
|
383
|
-
<
|
|
381
|
+
<Navigator.Screen path="/fontFamily">
|
|
384
382
|
<Flex justify="flex-start">
|
|
385
|
-
<
|
|
383
|
+
<Navigator.BackButton
|
|
386
384
|
icon={
|
|
387
385
|
isRTL() ? chevronRight : chevronLeft
|
|
388
386
|
}
|
|
@@ -463,8 +461,8 @@ function FontCollection( { slug } ) {
|
|
|
463
461
|
{ /* eslint-enable jsx-a11y/no-redundant-roles */ }
|
|
464
462
|
</VStack>
|
|
465
463
|
<Spacer margin={ 16 } />
|
|
466
|
-
</
|
|
467
|
-
</
|
|
464
|
+
</Navigator.Screen>
|
|
465
|
+
</Navigator>
|
|
468
466
|
|
|
469
467
|
{ selectedFont && (
|
|
470
468
|
<Flex
|
|
@@ -67,7 +67,7 @@ function FontLibraryModal( {
|
|
|
67
67
|
className="font-library-modal"
|
|
68
68
|
>
|
|
69
69
|
<Tabs defaultTabId={ defaultTabId }>
|
|
70
|
-
<div className="font-library-modal__tablist">
|
|
70
|
+
<div className="font-library-modal__tablist-container">
|
|
71
71
|
<Tabs.TabList>
|
|
72
72
|
{ tabs.map( ( { id, title } ) => (
|
|
73
73
|
<Tabs.Tab key={ id } tabId={ id }>
|
|
@@ -6,10 +6,8 @@ import {
|
|
|
6
6
|
__experimentalConfirmDialog as ConfirmDialog,
|
|
7
7
|
__experimentalHStack as HStack,
|
|
8
8
|
__experimentalHeading as Heading,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
__experimentalNavigatorBackButton as NavigatorBackButton,
|
|
12
|
-
__experimentalUseNavigator as useNavigator,
|
|
9
|
+
Navigator,
|
|
10
|
+
useNavigator,
|
|
13
11
|
__experimentalSpacer as Spacer,
|
|
14
12
|
__experimentalText as Text,
|
|
15
13
|
__experimentalVStack as VStack,
|
|
@@ -235,12 +233,12 @@ function InstalledFonts() {
|
|
|
235
233
|
|
|
236
234
|
{ ! isResolvingLibrary && (
|
|
237
235
|
<>
|
|
238
|
-
<
|
|
236
|
+
<Navigator
|
|
239
237
|
initialPath={
|
|
240
238
|
libraryFontSelected ? '/fontFamily' : '/'
|
|
241
239
|
}
|
|
242
240
|
>
|
|
243
|
-
<
|
|
241
|
+
<Navigator.Screen path="/">
|
|
244
242
|
<VStack spacing="8">
|
|
245
243
|
{ notice && (
|
|
246
244
|
<Notice
|
|
@@ -338,9 +336,9 @@ function InstalledFonts() {
|
|
|
338
336
|
</VStack>
|
|
339
337
|
) }
|
|
340
338
|
</VStack>
|
|
341
|
-
</
|
|
339
|
+
</Navigator.Screen>
|
|
342
340
|
|
|
343
|
-
<
|
|
341
|
+
<Navigator.Screen path="/fontFamily">
|
|
344
342
|
<ConfirmDeleteDialog
|
|
345
343
|
font={ libraryFontSelected }
|
|
346
344
|
isOpen={ isConfirmDeleteOpen }
|
|
@@ -353,7 +351,7 @@ function InstalledFonts() {
|
|
|
353
351
|
/>
|
|
354
352
|
|
|
355
353
|
<Flex justify="flex-start">
|
|
356
|
-
<
|
|
354
|
+
<Navigator.BackButton
|
|
357
355
|
icon={
|
|
358
356
|
isRTL() ? chevronRight : chevronLeft
|
|
359
357
|
}
|
|
@@ -427,8 +425,8 @@ function InstalledFonts() {
|
|
|
427
425
|
</ul>
|
|
428
426
|
{ /* eslint-enable jsx-a11y/no-redundant-roles */ }
|
|
429
427
|
</VStack>
|
|
430
|
-
</
|
|
431
|
-
</
|
|
428
|
+
</Navigator.Screen>
|
|
429
|
+
</Navigator>
|
|
432
430
|
|
|
433
431
|
<HStack
|
|
434
432
|
justify="flex-end"
|
|
@@ -133,7 +133,7 @@ $footer-height: 70px;
|
|
|
133
133
|
padding-bottom: $grid-unit-20;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
.font-library-modal__tablist {
|
|
136
|
+
.font-library-modal__tablist-container {
|
|
137
137
|
position: sticky;
|
|
138
138
|
top: 0;
|
|
139
139
|
border-bottom: 1px solid $gray-300;
|
|
@@ -141,6 +141,10 @@ $footer-height: 70px;
|
|
|
141
141
|
margin: 0 #{$grid-unit-40 * -1};
|
|
142
142
|
padding: 0 $grid-unit-20;
|
|
143
143
|
z-index: 1;
|
|
144
|
+
|
|
145
|
+
[role="tablist"] {
|
|
146
|
+
margin-bottom: -1px;
|
|
147
|
+
}
|
|
144
148
|
}
|
|
145
149
|
|
|
146
150
|
|