@wordpress/edit-site 6.8.6 → 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 -12
- package/build-style/posts.css +32 -12
- package/build-style/style-rtl.css +44 -21
- package/build-style/style.css +44 -21
- 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;
|
|
@@ -1763,12 +1779,7 @@ ul.dataviews-view-list {
|
|
|
1763
1779
|
flex-direction: column;
|
|
1764
1780
|
min-height: 100%;
|
|
1765
1781
|
}
|
|
1766
|
-
.edit-site-global-styles-sidebar__panel
|
|
1767
|
-
display: flex;
|
|
1768
|
-
flex-direction: column;
|
|
1769
|
-
flex: 1;
|
|
1770
|
-
}
|
|
1771
|
-
.edit-site-global-styles-sidebar__navigator-screen {
|
|
1782
|
+
.edit-site-global-styles-sidebar__panel {
|
|
1772
1783
|
flex: 1;
|
|
1773
1784
|
}
|
|
1774
1785
|
|
|
@@ -2358,13 +2369,16 @@ ul.dataviews-view-list {
|
|
|
2358
2369
|
width: calc(100% - 16px);
|
|
2359
2370
|
}
|
|
2360
2371
|
.edit-site-layout__canvas .edit-site-resizable-frame__inner-content {
|
|
2361
|
-
box-shadow: 0
|
|
2362
|
-
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;
|
|
2363
2374
|
overflow: hidden;
|
|
2364
2375
|
}
|
|
2365
2376
|
.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content {
|
|
2366
2377
|
border-radius: 8px;
|
|
2367
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
|
+
}
|
|
2368
2382
|
}
|
|
2369
2383
|
.edit-site-layout.is-full-canvas .edit-site-layout__canvas {
|
|
2370
2384
|
top: 0;
|
|
@@ -2478,6 +2492,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2478
2492
|
flex-grow: 1;
|
|
2479
2493
|
margin: 0;
|
|
2480
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);
|
|
2481
2496
|
}
|
|
2482
2497
|
@media (min-width: 782px) {
|
|
2483
2498
|
.edit-site-layout__area {
|
|
@@ -2530,7 +2545,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2530
2545
|
contain: content;
|
|
2531
2546
|
}
|
|
2532
2547
|
|
|
2533
|
-
@keyframes
|
|
2548
|
+
@keyframes _u3rbd_slide-from-right {
|
|
2534
2549
|
from {
|
|
2535
2550
|
transform: translateX(-50px);
|
|
2536
2551
|
opacity: 0;
|
|
@@ -2540,7 +2555,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2540
2555
|
opacity: 1;
|
|
2541
2556
|
}
|
|
2542
2557
|
}
|
|
2543
|
-
@keyframes
|
|
2558
|
+
@keyframes _u3rbd_slide-from-left {
|
|
2544
2559
|
from {
|
|
2545
2560
|
transform: translateX(50px);
|
|
2546
2561
|
opacity: 0;
|
|
@@ -2596,10 +2611,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2596
2611
|
}
|
|
2597
2612
|
}
|
|
2598
2613
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
2599
|
-
animation-name:
|
|
2614
|
+
animation-name: _u3rbd_slide-from-left;
|
|
2600
2615
|
}
|
|
2601
2616
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
2602
|
-
animation-name:
|
|
2617
|
+
animation-name: _u3rbd_slide-from-right;
|
|
2603
2618
|
}
|
|
2604
2619
|
|
|
2605
2620
|
.edit-site-sidebar-button {
|
|
@@ -3011,10 +3026,15 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3011
3026
|
outline-offset: calc(-2 * var(--wp-admin-border-width-focus));
|
|
3012
3027
|
}
|
|
3013
3028
|
|
|
3014
|
-
.edit-site-style-
|
|
3029
|
+
.edit-site-style-book__tablist-container {
|
|
3015
3030
|
background: #fff;
|
|
3016
|
-
|
|
3031
|
+
width: 100%;
|
|
3032
|
+
padding-left: 56px;
|
|
3033
|
+
display: flex;
|
|
3034
|
+
position: absolute;
|
|
3035
|
+
z-index: 1;
|
|
3017
3036
|
}
|
|
3037
|
+
|
|
3018
3038
|
.edit-site-style-book__tabs [role=tabpanel] {
|
|
3019
3039
|
bottom: 0;
|
|
3020
3040
|
right: 0;
|
|
@@ -3053,8 +3073,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3053
3073
|
.edit-site-editor-canvas-container__close-button {
|
|
3054
3074
|
position: absolute;
|
|
3055
3075
|
left: 8px;
|
|
3056
|
-
top:
|
|
3057
|
-
z-index:
|
|
3076
|
+
top: 8px;
|
|
3077
|
+
z-index: 2;
|
|
3058
3078
|
background: #fff;
|
|
3059
3079
|
}
|
|
3060
3080
|
|
|
@@ -3323,7 +3343,7 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
|
|
|
3323
3343
|
padding-bottom: 16px;
|
|
3324
3344
|
}
|
|
3325
3345
|
|
|
3326
|
-
.font-library-modal__tablist {
|
|
3346
|
+
.font-library-modal__tablist-container {
|
|
3327
3347
|
position: sticky;
|
|
3328
3348
|
top: 0;
|
|
3329
3349
|
border-bottom: 1px solid #ddd;
|
|
@@ -3332,6 +3352,9 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
|
|
|
3332
3352
|
padding: 0 16px;
|
|
3333
3353
|
z-index: 1;
|
|
3334
3354
|
}
|
|
3355
|
+
.font-library-modal__tablist-container [role=tablist] {
|
|
3356
|
+
margin-bottom: -1px;
|
|
3357
|
+
}
|
|
3335
3358
|
|
|
3336
3359
|
.font-library-modal__upload-area {
|
|
3337
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;
|
|
@@ -1764,12 +1780,7 @@ ul.dataviews-view-list {
|
|
|
1764
1780
|
flex-direction: column;
|
|
1765
1781
|
min-height: 100%;
|
|
1766
1782
|
}
|
|
1767
|
-
.edit-site-global-styles-sidebar__panel
|
|
1768
|
-
display: flex;
|
|
1769
|
-
flex-direction: column;
|
|
1770
|
-
flex: 1;
|
|
1771
|
-
}
|
|
1772
|
-
.edit-site-global-styles-sidebar__navigator-screen {
|
|
1783
|
+
.edit-site-global-styles-sidebar__panel {
|
|
1773
1784
|
flex: 1;
|
|
1774
1785
|
}
|
|
1775
1786
|
|
|
@@ -2359,13 +2370,16 @@ ul.dataviews-view-list {
|
|
|
2359
2370
|
width: calc(100% - 16px);
|
|
2360
2371
|
}
|
|
2361
2372
|
.edit-site-layout__canvas .edit-site-resizable-frame__inner-content {
|
|
2362
|
-
box-shadow: 0
|
|
2363
|
-
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;
|
|
2364
2375
|
overflow: hidden;
|
|
2365
2376
|
}
|
|
2366
2377
|
.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content {
|
|
2367
2378
|
border-radius: 8px;
|
|
2368
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
|
+
}
|
|
2369
2383
|
}
|
|
2370
2384
|
.edit-site-layout.is-full-canvas .edit-site-layout__canvas {
|
|
2371
2385
|
top: 0;
|
|
@@ -2479,6 +2493,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2479
2493
|
flex-grow: 1;
|
|
2480
2494
|
margin: 0;
|
|
2481
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);
|
|
2482
2497
|
}
|
|
2483
2498
|
@media (min-width: 782px) {
|
|
2484
2499
|
.edit-site-layout__area {
|
|
@@ -2531,7 +2546,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2531
2546
|
contain: content;
|
|
2532
2547
|
}
|
|
2533
2548
|
|
|
2534
|
-
@keyframes
|
|
2549
|
+
@keyframes _u3rbd_slide-from-right {
|
|
2535
2550
|
from {
|
|
2536
2551
|
transform: translateX(50px);
|
|
2537
2552
|
opacity: 0;
|
|
@@ -2541,7 +2556,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2541
2556
|
opacity: 1;
|
|
2542
2557
|
}
|
|
2543
2558
|
}
|
|
2544
|
-
@keyframes
|
|
2559
|
+
@keyframes _u3rbd_slide-from-left {
|
|
2545
2560
|
from {
|
|
2546
2561
|
transform: translateX(-50px);
|
|
2547
2562
|
opacity: 0;
|
|
@@ -2597,10 +2612,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2597
2612
|
}
|
|
2598
2613
|
}
|
|
2599
2614
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
2600
|
-
animation-name:
|
|
2615
|
+
animation-name: _u3rbd_slide-from-left;
|
|
2601
2616
|
}
|
|
2602
2617
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
2603
|
-
animation-name:
|
|
2618
|
+
animation-name: _u3rbd_slide-from-right;
|
|
2604
2619
|
}
|
|
2605
2620
|
|
|
2606
2621
|
.edit-site-sidebar-button {
|
|
@@ -3012,10 +3027,15 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3012
3027
|
outline-offset: calc(-2 * var(--wp-admin-border-width-focus));
|
|
3013
3028
|
}
|
|
3014
3029
|
|
|
3015
|
-
.edit-site-style-
|
|
3030
|
+
.edit-site-style-book__tablist-container {
|
|
3016
3031
|
background: #fff;
|
|
3017
|
-
|
|
3032
|
+
width: 100%;
|
|
3033
|
+
padding-right: 56px;
|
|
3034
|
+
display: flex;
|
|
3035
|
+
position: absolute;
|
|
3036
|
+
z-index: 1;
|
|
3018
3037
|
}
|
|
3038
|
+
|
|
3019
3039
|
.edit-site-style-book__tabs [role=tabpanel] {
|
|
3020
3040
|
bottom: 0;
|
|
3021
3041
|
left: 0;
|
|
@@ -3054,8 +3074,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3054
3074
|
.edit-site-editor-canvas-container__close-button {
|
|
3055
3075
|
position: absolute;
|
|
3056
3076
|
right: 8px;
|
|
3057
|
-
top:
|
|
3058
|
-
z-index:
|
|
3077
|
+
top: 8px;
|
|
3078
|
+
z-index: 2;
|
|
3059
3079
|
background: #fff;
|
|
3060
3080
|
}
|
|
3061
3081
|
|
|
@@ -3324,7 +3344,7 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
|
|
|
3324
3344
|
padding-bottom: 16px;
|
|
3325
3345
|
}
|
|
3326
3346
|
|
|
3327
|
-
.font-library-modal__tablist {
|
|
3347
|
+
.font-library-modal__tablist-container {
|
|
3328
3348
|
position: sticky;
|
|
3329
3349
|
top: 0;
|
|
3330
3350
|
border-bottom: 1px solid #ddd;
|
|
@@ -3333,6 +3353,9 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
|
|
|
3333
3353
|
padding: 0 16px;
|
|
3334
3354
|
z-index: 1;
|
|
3335
3355
|
}
|
|
3356
|
+
.font-library-modal__tablist-container [role=tablist] {
|
|
3357
|
+
margin-bottom: -1px;
|
|
3358
|
+
}
|
|
3336
3359
|
|
|
3337
3360
|
.font-library-modal__upload-area {
|
|
3338
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
|
|