@wordpress/edit-site 3.0.18-next.33ec3857e2.0 → 3.0.21
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/build/components/block-editor/index.js +1 -1
- package/build/components/block-editor/index.js.map +1 -1
- package/build/components/block-editor/resizable-editor.js +37 -8
- package/build/components/block-editor/resizable-editor.js.map +1 -1
- package/build/components/global-styles/border-panel.js +22 -81
- package/build/components/global-styles/border-panel.js.map +1 -1
- package/build/components/global-styles/gradients-palette-panel.js +7 -3
- package/build/components/global-styles/gradients-palette-panel.js.map +1 -1
- package/build/components/global-styles/screen-background-color.js +10 -9
- package/build/components/global-styles/screen-background-color.js.map +1 -1
- package/build/components/global-styles/screen-colors.js +1 -1
- package/build/components/global-styles/screen-colors.js.map +1 -1
- package/build/components/global-styles/screen-link-color.js +10 -6
- package/build/components/global-styles/screen-link-color.js.map +1 -1
- package/build/components/global-styles/screen-text-color.js +10 -6
- package/build/components/global-styles/screen-text-color.js.map +1 -1
- package/build/components/global-styles/ui.js +14 -27
- package/build/components/global-styles/ui.js.map +1 -1
- package/build/components/list/actions/index.js +0 -1
- package/build/components/list/actions/index.js.map +1 -1
- package/build/components/list/added-by.js +9 -3
- package/build/components/list/added-by.js.map +1 -1
- package/build/components/navigation-sidebar/navigation-panel/constants.js +1 -11
- package/build/components/navigation-sidebar/navigation-panel/constants.js.map +1 -1
- package/build/components/navigation-sidebar/navigation-toggle/index.js +10 -1
- package/build/components/navigation-sidebar/navigation-toggle/index.js.map +1 -1
- package/build/components/sidebar/default-sidebar.js +2 -4
- package/build/components/sidebar/default-sidebar.js.map +1 -1
- package/build/components/sidebar/global-styles-sidebar.js +0 -1
- package/build/components/sidebar/global-styles-sidebar.js.map +1 -1
- package/build/plugins/site-export.js +1 -1
- package/build/plugins/site-export.js.map +1 -1
- package/build-module/components/block-editor/index.js +2 -2
- package/build-module/components/block-editor/index.js.map +1 -1
- package/build-module/components/block-editor/resizable-editor.js +37 -8
- package/build-module/components/block-editor/resizable-editor.js.map +1 -1
- package/build-module/components/global-styles/border-panel.js +23 -82
- package/build-module/components/global-styles/border-panel.js.map +1 -1
- package/build-module/components/global-styles/gradients-palette-panel.js +5 -4
- package/build-module/components/global-styles/gradients-palette-panel.js.map +1 -1
- package/build-module/components/global-styles/screen-background-color.js +11 -9
- package/build-module/components/global-styles/screen-background-color.js.map +1 -1
- package/build-module/components/global-styles/screen-colors.js +1 -1
- package/build-module/components/global-styles/screen-colors.js.map +1 -1
- package/build-module/components/global-styles/screen-link-color.js +11 -7
- package/build-module/components/global-styles/screen-link-color.js.map +1 -1
- package/build-module/components/global-styles/screen-text-color.js +11 -7
- package/build-module/components/global-styles/screen-text-color.js.map +1 -1
- package/build-module/components/global-styles/ui.js +14 -26
- package/build-module/components/global-styles/ui.js.map +1 -1
- package/build-module/components/list/actions/index.js +0 -1
- package/build-module/components/list/actions/index.js.map +1 -1
- package/build-module/components/list/added-by.js +10 -4
- package/build-module/components/list/added-by.js.map +1 -1
- package/build-module/components/navigation-sidebar/navigation-panel/constants.js +0 -5
- package/build-module/components/navigation-sidebar/navigation-panel/constants.js.map +1 -1
- package/build-module/components/navigation-sidebar/navigation-toggle/index.js +11 -1
- package/build-module/components/navigation-sidebar/navigation-toggle/index.js.map +1 -1
- package/build-module/components/sidebar/default-sidebar.js +2 -4
- package/build-module/components/sidebar/default-sidebar.js.map +1 -1
- package/build-module/components/sidebar/global-styles-sidebar.js +0 -1
- package/build-module/components/sidebar/global-styles-sidebar.js.map +1 -1
- package/build-module/plugins/site-export.js +2 -2
- package/build-module/plugins/site-export.js.map +1 -1
- package/build-style/style-rtl.css +62 -32
- package/build-style/style.css +62 -32
- package/package.json +28 -28
- package/src/components/block-editor/index.js +2 -2
- package/src/components/block-editor/resizable-editor.js +52 -13
- package/src/components/block-editor/style.scss +18 -10
- package/src/components/global-styles/border-panel.js +42 -106
- package/src/components/global-styles/gradients-palette-panel.js +4 -4
- package/src/components/global-styles/screen-background-color.js +10 -7
- package/src/components/global-styles/screen-colors.js +1 -1
- package/src/components/global-styles/screen-link-color.js +14 -6
- package/src/components/global-styles/screen-text-color.js +14 -6
- package/src/components/global-styles/style.scss +19 -1
- package/src/components/global-styles/ui.js +25 -50
- package/src/components/header/document-actions/style.scss +9 -1
- package/src/components/header/style.scss +1 -2
- package/src/components/list/actions/index.js +0 -1
- package/src/components/list/added-by.js +25 -9
- package/src/components/navigation-sidebar/navigation-panel/constants.js +0 -15
- package/src/components/navigation-sidebar/navigation-toggle/index.js +12 -0
- package/src/components/navigation-sidebar/navigation-toggle/style.scss +8 -4
- package/src/components/sidebar/default-sidebar.js +0 -2
- package/src/components/sidebar/global-styles-sidebar.js +0 -1
- package/src/components/sidebar/style.scss +14 -21
- package/src/plugins/site-export.js +2 -2
- package/build/components/navigation-sidebar/navigation-panel/content-navigation-item.js +0 -101
- package/build/components/navigation-sidebar/navigation-panel/content-navigation-item.js.map +0 -1
- package/build/components/navigation-sidebar/navigation-panel/menus/content-categories.js +0 -82
- package/build/components/navigation-sidebar/navigation-panel/menus/content-categories.js.map +0 -1
- package/build/components/navigation-sidebar/navigation-panel/menus/content-pages.js +0 -82
- package/build/components/navigation-sidebar/navigation-panel/menus/content-pages.js.map +0 -1
- package/build/components/navigation-sidebar/navigation-panel/menus/content-posts.js +0 -107
- package/build/components/navigation-sidebar/navigation-panel/menus/content-posts.js.map +0 -1
- package/build/components/navigation-sidebar/navigation-panel/menus/index.js +0 -57
- package/build/components/navigation-sidebar/navigation-panel/menus/index.js.map +0 -1
- package/build/components/navigation-sidebar/navigation-panel/menus/template-parts-sub.js +0 -48
- package/build/components/navigation-sidebar/navigation-panel/menus/template-parts-sub.js.map +0 -1
- package/build/components/navigation-sidebar/navigation-panel/menus/template-parts.js +0 -100
- package/build/components/navigation-sidebar/navigation-panel/menus/template-parts.js.map +0 -1
- package/build/components/navigation-sidebar/navigation-panel/menus/templates-sub.js +0 -62
- package/build/components/navigation-sidebar/navigation-panel/menus/templates-sub.js.map +0 -1
- package/build/components/navigation-sidebar/navigation-panel/menus/templates.js +0 -143
- package/build/components/navigation-sidebar/navigation-panel/menus/templates.js.map +0 -1
- package/build/components/navigation-sidebar/navigation-panel/navigation-entity-items.js +0 -76
- package/build/components/navigation-sidebar/navigation-panel/navigation-entity-items.js.map +0 -1
- package/build/components/navigation-sidebar/navigation-panel/new-template-dropdown.js +0 -125
- package/build/components/navigation-sidebar/navigation-panel/new-template-dropdown.js.map +0 -1
- package/build/components/navigation-sidebar/navigation-panel/search-results.js +0 -132
- package/build/components/navigation-sidebar/navigation-panel/search-results.js.map +0 -1
- package/build/components/navigation-sidebar/navigation-panel/template-navigation-item.js +0 -86
- package/build/components/navigation-sidebar/navigation-panel/template-navigation-item.js.map +0 -1
- package/build/components/navigation-sidebar/navigation-panel/template-preview.js +0 -46
- package/build/components/navigation-sidebar/navigation-panel/template-preview.js.map +0 -1
- package/build/components/navigation-sidebar/navigation-panel/use-debounced-search.js +0 -47
- package/build/components/navigation-sidebar/navigation-panel/use-debounced-search.js.map +0 -1
- package/build/components/navigation-sidebar/navigation-panel/utils.js +0 -21
- package/build/components/navigation-sidebar/navigation-panel/utils.js.map +0 -1
- package/build/utils/get-closest-available-template.js +0 -48
- package/build/utils/get-closest-available-template.js.map +0 -1
- package/build-module/components/navigation-sidebar/navigation-panel/content-navigation-item.js +0 -86
- package/build-module/components/navigation-sidebar/navigation-panel/content-navigation-item.js.map +0 -1
- package/build-module/components/navigation-sidebar/navigation-panel/menus/content-categories.js +0 -65
- package/build-module/components/navigation-sidebar/navigation-panel/menus/content-categories.js.map +0 -1
- package/build-module/components/navigation-sidebar/navigation-panel/menus/content-pages.js +0 -65
- package/build-module/components/navigation-sidebar/navigation-panel/menus/content-pages.js.map +0 -1
- package/build-module/components/navigation-sidebar/navigation-panel/menus/content-posts.js +0 -90
- package/build-module/components/navigation-sidebar/navigation-panel/menus/content-posts.js.map +0 -1
- package/build-module/components/navigation-sidebar/navigation-panel/menus/index.js +0 -40
- package/build-module/components/navigation-sidebar/navigation-panel/menus/index.js.map +0 -1
- package/build-module/components/navigation-sidebar/navigation-panel/menus/template-parts-sub.js +0 -35
- package/build-module/components/navigation-sidebar/navigation-panel/menus/template-parts-sub.js.map +0 -1
- package/build-module/components/navigation-sidebar/navigation-panel/menus/template-parts.js +0 -84
- package/build-module/components/navigation-sidebar/navigation-panel/menus/template-parts.js.map +0 -1
- package/build-module/components/navigation-sidebar/navigation-panel/menus/templates-sub.js +0 -50
- package/build-module/components/navigation-sidebar/navigation-panel/menus/templates-sub.js.map +0 -1
- package/build-module/components/navigation-sidebar/navigation-panel/menus/templates.js +0 -124
- package/build-module/components/navigation-sidebar/navigation-panel/menus/templates.js.map +0 -1
- package/build-module/components/navigation-sidebar/navigation-panel/navigation-entity-items.js +0 -65
- package/build-module/components/navigation-sidebar/navigation-panel/navigation-entity-items.js.map +0 -1
- package/build-module/components/navigation-sidebar/navigation-panel/new-template-dropdown.js +0 -106
- package/build-module/components/navigation-sidebar/navigation-panel/new-template-dropdown.js.map +0 -1
- package/build-module/components/navigation-sidebar/navigation-panel/search-results.js +0 -116
- package/build-module/components/navigation-sidebar/navigation-panel/search-results.js.map +0 -1
- package/build-module/components/navigation-sidebar/navigation-panel/template-navigation-item.js +0 -71
- package/build-module/components/navigation-sidebar/navigation-panel/template-navigation-item.js.map +0 -1
- package/build-module/components/navigation-sidebar/navigation-panel/template-preview.js +0 -38
- package/build-module/components/navigation-sidebar/navigation-panel/template-preview.js.map +0 -1
- package/build-module/components/navigation-sidebar/navigation-panel/use-debounced-search.js +0 -37
- package/build-module/components/navigation-sidebar/navigation-panel/use-debounced-search.js.map +0 -1
- package/build-module/components/navigation-sidebar/navigation-panel/utils.js +0 -8
- package/build-module/components/navigation-sidebar/navigation-panel/utils.js.map +0 -1
- package/build-module/utils/get-closest-available-template.js +0 -40
- package/build-module/utils/get-closest-available-template.js.map +0 -1
- package/src/components/navigation-sidebar/navigation-panel/content-navigation-item.js +0 -89
- package/src/components/navigation-sidebar/navigation-panel/menus/content-categories.js +0 -85
- package/src/components/navigation-sidebar/navigation-panel/menus/content-pages.js +0 -85
- package/src/components/navigation-sidebar/navigation-panel/menus/content-posts.js +0 -117
- package/src/components/navigation-sidebar/navigation-panel/menus/index.js +0 -61
- package/src/components/navigation-sidebar/navigation-panel/menus/template-parts-sub.js +0 -34
- package/src/components/navigation-sidebar/navigation-panel/menus/template-parts.js +0 -94
- package/src/components/navigation-sidebar/navigation-panel/menus/templates-sub.js +0 -42
- package/src/components/navigation-sidebar/navigation-panel/menus/templates.js +0 -147
- package/src/components/navigation-sidebar/navigation-panel/navigation-entity-items.js +0 -53
- package/src/components/navigation-sidebar/navigation-panel/new-template-dropdown.js +0 -110
- package/src/components/navigation-sidebar/navigation-panel/search-results.js +0 -117
- package/src/components/navigation-sidebar/navigation-panel/template-navigation-item.js +0 -83
- package/src/components/navigation-sidebar/navigation-panel/template-preview.js +0 -32
- package/src/components/navigation-sidebar/navigation-panel/use-debounced-search.js +0 -47
- package/src/components/navigation-sidebar/navigation-panel/utils.js +0 -11
- package/src/utils/get-closest-available-template.js +0 -31
|
@@ -468,6 +468,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
468
468
|
border-radius: 2px;
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
+
.edit-site-visual-editor__editor-canvas {
|
|
472
|
+
border-radius: 2px 2px 0 0;
|
|
473
|
+
}
|
|
474
|
+
|
|
471
475
|
.edit-site-visual-editor__back-button {
|
|
472
476
|
position: absolute;
|
|
473
477
|
top: 8px;
|
|
@@ -488,24 +492,28 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
488
492
|
bottom: 0;
|
|
489
493
|
padding: 0;
|
|
490
494
|
margin: auto 0;
|
|
491
|
-
width:
|
|
495
|
+
width: 8px;
|
|
492
496
|
height: 100px;
|
|
493
497
|
-webkit-appearance: none;
|
|
494
498
|
appearance: none;
|
|
495
|
-
cursor:
|
|
499
|
+
cursor: grab;
|
|
496
500
|
outline: none;
|
|
497
|
-
background: #
|
|
498
|
-
border-radius:
|
|
501
|
+
background: #757575;
|
|
502
|
+
border-radius: 4px;
|
|
499
503
|
border: 0;
|
|
500
504
|
}
|
|
501
505
|
.resizable-editor__drag-handle.is-left {
|
|
502
|
-
right: -
|
|
506
|
+
right: -28px;
|
|
503
507
|
}
|
|
504
508
|
.resizable-editor__drag-handle.is-right {
|
|
505
|
-
left: -
|
|
509
|
+
left: -28px;
|
|
510
|
+
}
|
|
511
|
+
.resizable-editor__drag-handle:hover {
|
|
512
|
+
background: #949494;
|
|
506
513
|
}
|
|
507
|
-
.resizable-editor__drag-handle:
|
|
508
|
-
|
|
514
|
+
.resizable-editor__drag-handle:active {
|
|
515
|
+
cursor: grabbing;
|
|
516
|
+
background: #949494;
|
|
509
517
|
}
|
|
510
518
|
.resizable-editor__drag-handle:focus {
|
|
511
519
|
box-shadow: 0 0 0 1px #2f2f2f, 0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color);
|
|
@@ -518,6 +526,14 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
518
526
|
min-height: 152px;
|
|
519
527
|
line-height: 1;
|
|
520
528
|
}
|
|
529
|
+
.edit-site-global-styles-preview .component-color-indicator {
|
|
530
|
+
border-radius: 50%;
|
|
531
|
+
border: 0;
|
|
532
|
+
height: 36px;
|
|
533
|
+
width: 36px;
|
|
534
|
+
margin-right: 0;
|
|
535
|
+
padding: 0;
|
|
536
|
+
}
|
|
521
537
|
|
|
522
538
|
.edit-site-typography-panel__preview {
|
|
523
539
|
display: flex;
|
|
@@ -547,6 +563,13 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
547
563
|
margin: 16px;
|
|
548
564
|
}
|
|
549
565
|
.edit-site-global-styles-screen-colors .component-color-indicator {
|
|
566
|
+
margin-right: 0;
|
|
567
|
+
display: block;
|
|
568
|
+
border-radius: 50%;
|
|
569
|
+
height: 24px;
|
|
570
|
+
width: 24px;
|
|
571
|
+
padding: 0;
|
|
572
|
+
border: 1px solid #ddd;
|
|
550
573
|
background: linear-gradient(45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
|
|
551
574
|
}
|
|
552
575
|
|
|
@@ -557,7 +580,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
557
580
|
.edit-site-global-styles-subtitle {
|
|
558
581
|
margin-bottom: 0 !important;
|
|
559
582
|
text-transform: uppercase;
|
|
560
|
-
font-weight: 500;
|
|
583
|
+
font-weight: 500 !important;
|
|
584
|
+
font-size: 11px !important;
|
|
561
585
|
}
|
|
562
586
|
|
|
563
587
|
.edit-site-screen-color-palette-toggle.edit-site-screen-color-palette-toggle {
|
|
@@ -611,8 +635,6 @@ body.is-fullscreen-mode .edit-site-header {
|
|
|
611
635
|
display: flex;
|
|
612
636
|
align-items: center;
|
|
613
637
|
height: 100%;
|
|
614
|
-
flex-grow: 1;
|
|
615
|
-
justify-content: center;
|
|
616
638
|
min-width: 0;
|
|
617
639
|
}
|
|
618
640
|
.edit-site-header .edit-site-header_end {
|
|
@@ -690,6 +712,7 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
690
712
|
.edit-site-header__actions {
|
|
691
713
|
display: inline-flex;
|
|
692
714
|
align-items: center;
|
|
715
|
+
flex-wrap: wrap;
|
|
693
716
|
padding-left: 4px;
|
|
694
717
|
}
|
|
695
718
|
.edit-site-header__actions .interface-pinned-items {
|
|
@@ -744,7 +767,6 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
744
767
|
display: flex;
|
|
745
768
|
flex-direction: column;
|
|
746
769
|
justify-content: center;
|
|
747
|
-
padding: 0 8px;
|
|
748
770
|
height: 100%;
|
|
749
771
|
min-width: 0;
|
|
750
772
|
}
|
|
@@ -771,6 +793,17 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
771
793
|
white-space: nowrap;
|
|
772
794
|
overflow: hidden;
|
|
773
795
|
text-overflow: ellipsis;
|
|
796
|
+
max-width: 120px;
|
|
797
|
+
}
|
|
798
|
+
@media (min-width: 782px) {
|
|
799
|
+
.edit-site-document-actions .edit-site-document-actions__title {
|
|
800
|
+
max-width: 75px;
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
@media (min-width: 1080px) {
|
|
804
|
+
.edit-site-document-actions .edit-site-document-actions__title {
|
|
805
|
+
max-width: 180px;
|
|
806
|
+
}
|
|
774
807
|
}
|
|
775
808
|
.edit-site-document-actions .edit-site-document-actions__secondary-item {
|
|
776
809
|
white-space: nowrap;
|
|
@@ -882,10 +915,13 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
882
915
|
.edit-site-navigation-toggle__button.has-icon:focus::before {
|
|
883
916
|
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) rgba(255, 255, 255, 0.1), inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
884
917
|
}
|
|
885
|
-
|
|
886
|
-
.edit-site-navigation-toggle__site-icon {
|
|
918
|
+
.edit-site-navigation-toggle__button .edit-site-navigation-toggle__site-icon {
|
|
887
919
|
width: 36px;
|
|
920
|
+
height: 36px;
|
|
888
921
|
border-radius: 2px;
|
|
922
|
+
-o-object-fit: cover;
|
|
923
|
+
object-fit: cover;
|
|
924
|
+
margin-top: -1px;
|
|
889
925
|
}
|
|
890
926
|
|
|
891
927
|
.edit-site-navigation-panel {
|
|
@@ -1262,20 +1298,6 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1262
1298
|
margin: 0;
|
|
1263
1299
|
}
|
|
1264
1300
|
|
|
1265
|
-
.edit-site-global-styles-sidebar {
|
|
1266
|
-
display: flex;
|
|
1267
|
-
flex-direction: column;
|
|
1268
|
-
height: 100%;
|
|
1269
|
-
}
|
|
1270
|
-
.edit-site-global-styles-sidebar__panel, .edit-site-global-styles-sidebar__navigator-provider {
|
|
1271
|
-
display: flex;
|
|
1272
|
-
flex-direction: column;
|
|
1273
|
-
flex: 1;
|
|
1274
|
-
}
|
|
1275
|
-
.edit-site-global-styles-sidebar__navigator-screen {
|
|
1276
|
-
flex: 1;
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
1301
|
.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon {
|
|
1280
1302
|
margin-right: 0;
|
|
1281
1303
|
}
|
|
@@ -1284,6 +1306,18 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1284
1306
|
margin-right: auto;
|
|
1285
1307
|
}
|
|
1286
1308
|
|
|
1309
|
+
.edit-site-global-styles-sidebar__border-controls-row {
|
|
1310
|
+
display: flex;
|
|
1311
|
+
justify-content: space-between;
|
|
1312
|
+
margin-bottom: 12px;
|
|
1313
|
+
}
|
|
1314
|
+
.edit-site-global-styles-sidebar__border-controls-row > * {
|
|
1315
|
+
width: calc(50% - 8px);
|
|
1316
|
+
}
|
|
1317
|
+
.edit-site-global-styles-sidebar__border-controls-row .components-border-style-control__buttons {
|
|
1318
|
+
margin-bottom: 0;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1287
1321
|
.edit-site-global-styles-sidebar .components-navigation__menu-title-heading {
|
|
1288
1322
|
font-size: 15.6px;
|
|
1289
1323
|
font-weight: 500;
|
|
@@ -1298,10 +1332,6 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1298
1332
|
border: 0;
|
|
1299
1333
|
}
|
|
1300
1334
|
|
|
1301
|
-
.edit-site-global-styles-sidebar .components-tools-panel-item.single-column {
|
|
1302
|
-
grid-column: span 1;
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
1335
|
.edit-site-global-styles-sidebar__blocks-group {
|
|
1306
1336
|
padding-top: 24px;
|
|
1307
1337
|
border-top: 1px solid #e0e0e0;
|
package/build-style/style.css
CHANGED
|
@@ -468,6 +468,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
468
468
|
border-radius: 2px;
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
+
.edit-site-visual-editor__editor-canvas {
|
|
472
|
+
border-radius: 2px 2px 0 0;
|
|
473
|
+
}
|
|
474
|
+
|
|
471
475
|
.edit-site-visual-editor__back-button {
|
|
472
476
|
position: absolute;
|
|
473
477
|
top: 8px;
|
|
@@ -488,24 +492,28 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
488
492
|
bottom: 0;
|
|
489
493
|
padding: 0;
|
|
490
494
|
margin: auto 0;
|
|
491
|
-
width:
|
|
495
|
+
width: 8px;
|
|
492
496
|
height: 100px;
|
|
493
497
|
-webkit-appearance: none;
|
|
494
498
|
appearance: none;
|
|
495
|
-
cursor:
|
|
499
|
+
cursor: grab;
|
|
496
500
|
outline: none;
|
|
497
|
-
background: #
|
|
498
|
-
border-radius:
|
|
501
|
+
background: #757575;
|
|
502
|
+
border-radius: 4px;
|
|
499
503
|
border: 0;
|
|
500
504
|
}
|
|
501
505
|
.resizable-editor__drag-handle.is-left {
|
|
502
|
-
left: -
|
|
506
|
+
left: -28px;
|
|
503
507
|
}
|
|
504
508
|
.resizable-editor__drag-handle.is-right {
|
|
505
|
-
right: -
|
|
509
|
+
right: -28px;
|
|
510
|
+
}
|
|
511
|
+
.resizable-editor__drag-handle:hover {
|
|
512
|
+
background: #949494;
|
|
506
513
|
}
|
|
507
|
-
.resizable-editor__drag-handle:
|
|
508
|
-
|
|
514
|
+
.resizable-editor__drag-handle:active {
|
|
515
|
+
cursor: grabbing;
|
|
516
|
+
background: #949494;
|
|
509
517
|
}
|
|
510
518
|
.resizable-editor__drag-handle:focus {
|
|
511
519
|
box-shadow: 0 0 0 1px #2f2f2f, 0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color);
|
|
@@ -518,6 +526,14 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
518
526
|
min-height: 152px;
|
|
519
527
|
line-height: 1;
|
|
520
528
|
}
|
|
529
|
+
.edit-site-global-styles-preview .component-color-indicator {
|
|
530
|
+
border-radius: 50%;
|
|
531
|
+
border: 0;
|
|
532
|
+
height: 36px;
|
|
533
|
+
width: 36px;
|
|
534
|
+
margin-left: 0;
|
|
535
|
+
padding: 0;
|
|
536
|
+
}
|
|
521
537
|
|
|
522
538
|
.edit-site-typography-panel__preview {
|
|
523
539
|
display: flex;
|
|
@@ -547,6 +563,13 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
547
563
|
margin: 16px;
|
|
548
564
|
}
|
|
549
565
|
.edit-site-global-styles-screen-colors .component-color-indicator {
|
|
566
|
+
margin-left: 0;
|
|
567
|
+
display: block;
|
|
568
|
+
border-radius: 50%;
|
|
569
|
+
height: 24px;
|
|
570
|
+
width: 24px;
|
|
571
|
+
padding: 0;
|
|
572
|
+
border: 1px solid #ddd;
|
|
550
573
|
background: linear-gradient(-45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
|
|
551
574
|
}
|
|
552
575
|
|
|
@@ -557,7 +580,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
557
580
|
.edit-site-global-styles-subtitle {
|
|
558
581
|
margin-bottom: 0 !important;
|
|
559
582
|
text-transform: uppercase;
|
|
560
|
-
font-weight: 500;
|
|
583
|
+
font-weight: 500 !important;
|
|
584
|
+
font-size: 11px !important;
|
|
561
585
|
}
|
|
562
586
|
|
|
563
587
|
.edit-site-screen-color-palette-toggle.edit-site-screen-color-palette-toggle {
|
|
@@ -611,8 +635,6 @@ body.is-fullscreen-mode .edit-site-header {
|
|
|
611
635
|
display: flex;
|
|
612
636
|
align-items: center;
|
|
613
637
|
height: 100%;
|
|
614
|
-
flex-grow: 1;
|
|
615
|
-
justify-content: center;
|
|
616
638
|
min-width: 0;
|
|
617
639
|
}
|
|
618
640
|
.edit-site-header .edit-site-header_end {
|
|
@@ -690,6 +712,7 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
690
712
|
.edit-site-header__actions {
|
|
691
713
|
display: inline-flex;
|
|
692
714
|
align-items: center;
|
|
715
|
+
flex-wrap: wrap;
|
|
693
716
|
padding-right: 4px;
|
|
694
717
|
}
|
|
695
718
|
.edit-site-header__actions .interface-pinned-items {
|
|
@@ -744,7 +767,6 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
744
767
|
display: flex;
|
|
745
768
|
flex-direction: column;
|
|
746
769
|
justify-content: center;
|
|
747
|
-
padding: 0 8px;
|
|
748
770
|
height: 100%;
|
|
749
771
|
min-width: 0;
|
|
750
772
|
}
|
|
@@ -771,6 +793,17 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
771
793
|
white-space: nowrap;
|
|
772
794
|
overflow: hidden;
|
|
773
795
|
text-overflow: ellipsis;
|
|
796
|
+
max-width: 120px;
|
|
797
|
+
}
|
|
798
|
+
@media (min-width: 782px) {
|
|
799
|
+
.edit-site-document-actions .edit-site-document-actions__title {
|
|
800
|
+
max-width: 75px;
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
@media (min-width: 1080px) {
|
|
804
|
+
.edit-site-document-actions .edit-site-document-actions__title {
|
|
805
|
+
max-width: 180px;
|
|
806
|
+
}
|
|
774
807
|
}
|
|
775
808
|
.edit-site-document-actions .edit-site-document-actions__secondary-item {
|
|
776
809
|
white-space: nowrap;
|
|
@@ -882,10 +915,13 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
882
915
|
.edit-site-navigation-toggle__button.has-icon:focus::before {
|
|
883
916
|
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) rgba(255, 255, 255, 0.1), inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
884
917
|
}
|
|
885
|
-
|
|
886
|
-
.edit-site-navigation-toggle__site-icon {
|
|
918
|
+
.edit-site-navigation-toggle__button .edit-site-navigation-toggle__site-icon {
|
|
887
919
|
width: 36px;
|
|
920
|
+
height: 36px;
|
|
888
921
|
border-radius: 2px;
|
|
922
|
+
-o-object-fit: cover;
|
|
923
|
+
object-fit: cover;
|
|
924
|
+
margin-top: -1px;
|
|
889
925
|
}
|
|
890
926
|
|
|
891
927
|
.edit-site-navigation-panel {
|
|
@@ -1262,20 +1298,6 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1262
1298
|
margin: 0;
|
|
1263
1299
|
}
|
|
1264
1300
|
|
|
1265
|
-
.edit-site-global-styles-sidebar {
|
|
1266
|
-
display: flex;
|
|
1267
|
-
flex-direction: column;
|
|
1268
|
-
height: 100%;
|
|
1269
|
-
}
|
|
1270
|
-
.edit-site-global-styles-sidebar__panel, .edit-site-global-styles-sidebar__navigator-provider {
|
|
1271
|
-
display: flex;
|
|
1272
|
-
flex-direction: column;
|
|
1273
|
-
flex: 1;
|
|
1274
|
-
}
|
|
1275
|
-
.edit-site-global-styles-sidebar__navigator-screen {
|
|
1276
|
-
flex: 1;
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
1301
|
.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon {
|
|
1280
1302
|
margin-left: 0;
|
|
1281
1303
|
}
|
|
@@ -1284,6 +1306,18 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1284
1306
|
margin-left: auto;
|
|
1285
1307
|
}
|
|
1286
1308
|
|
|
1309
|
+
.edit-site-global-styles-sidebar__border-controls-row {
|
|
1310
|
+
display: flex;
|
|
1311
|
+
justify-content: space-between;
|
|
1312
|
+
margin-bottom: 12px;
|
|
1313
|
+
}
|
|
1314
|
+
.edit-site-global-styles-sidebar__border-controls-row > * {
|
|
1315
|
+
width: calc(50% - 8px);
|
|
1316
|
+
}
|
|
1317
|
+
.edit-site-global-styles-sidebar__border-controls-row .components-border-style-control__buttons {
|
|
1318
|
+
margin-bottom: 0;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1287
1321
|
.edit-site-global-styles-sidebar .components-navigation__menu-title-heading {
|
|
1288
1322
|
font-size: 15.6px;
|
|
1289
1323
|
font-weight: 500;
|
|
@@ -1298,10 +1332,6 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1298
1332
|
border: 0;
|
|
1299
1333
|
}
|
|
1300
1334
|
|
|
1301
|
-
.edit-site-global-styles-sidebar .components-tools-panel-item.single-column {
|
|
1302
|
-
grid-column: span 1;
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
1335
|
.edit-site-global-styles-sidebar__blocks-group {
|
|
1306
1336
|
padding-top: 24px;
|
|
1307
1337
|
border-top: 1px solid #e0e0e0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.21",
|
|
4
4
|
"description": "Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -27,32 +27,32 @@
|
|
|
27
27
|
"react-native": "src/index",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@babel/runtime": "^7.16.0",
|
|
30
|
-
"@wordpress/a11y": "^3.2.
|
|
31
|
-
"@wordpress/api-fetch": "^5.2.
|
|
32
|
-
"@wordpress/block-editor": "^8.0.
|
|
33
|
-
"@wordpress/block-library": "^6.0.
|
|
34
|
-
"@wordpress/blocks": "^11.1.5
|
|
35
|
-
"@wordpress/components": "^19.2.1
|
|
36
|
-
"@wordpress/compose": "^5.0.7
|
|
37
|
-
"@wordpress/core-data": "^4.0.
|
|
38
|
-
"@wordpress/data": "^6.1.
|
|
39
|
-
"@wordpress/data-controls": "^2.2.8
|
|
40
|
-
"@wordpress/editor": "^12.0.
|
|
41
|
-
"@wordpress/element": "^4.0.
|
|
42
|
-
"@wordpress/hooks": "^3.2.
|
|
43
|
-
"@wordpress/html-entities": "^3.2.
|
|
44
|
-
"@wordpress/i18n": "^4.2.
|
|
45
|
-
"@wordpress/icons": "^6.1.
|
|
46
|
-
"@wordpress/interface": "^4.1.
|
|
47
|
-
"@wordpress/keyboard-shortcuts": "^3.0.7
|
|
48
|
-
"@wordpress/keycodes": "^3.2.
|
|
49
|
-
"@wordpress/media-utils": "^3.0.
|
|
50
|
-
"@wordpress/notices": "^3.2.8
|
|
51
|
-
"@wordpress/plugins": "^4.0.7
|
|
52
|
-
"@wordpress/primitives": "^3.0.
|
|
53
|
-
"@wordpress/reusable-blocks": "^3.0.
|
|
54
|
-
"@wordpress/url": "^3.3.
|
|
55
|
-
"@wordpress/viewport": "^4.0.7
|
|
30
|
+
"@wordpress/a11y": "^3.2.4",
|
|
31
|
+
"@wordpress/api-fetch": "^5.2.6",
|
|
32
|
+
"@wordpress/block-editor": "^8.0.14",
|
|
33
|
+
"@wordpress/block-library": "^6.0.19",
|
|
34
|
+
"@wordpress/blocks": "^11.1.5",
|
|
35
|
+
"@wordpress/components": "^19.2.1",
|
|
36
|
+
"@wordpress/compose": "^5.0.7",
|
|
37
|
+
"@wordpress/core-data": "^4.0.9",
|
|
38
|
+
"@wordpress/data": "^6.1.5",
|
|
39
|
+
"@wordpress/data-controls": "^2.2.8",
|
|
40
|
+
"@wordpress/editor": "^12.0.17",
|
|
41
|
+
"@wordpress/element": "^4.0.4",
|
|
42
|
+
"@wordpress/hooks": "^3.2.2",
|
|
43
|
+
"@wordpress/html-entities": "^3.2.3",
|
|
44
|
+
"@wordpress/i18n": "^4.2.4",
|
|
45
|
+
"@wordpress/icons": "^6.1.1",
|
|
46
|
+
"@wordpress/interface": "^4.1.16",
|
|
47
|
+
"@wordpress/keyboard-shortcuts": "^3.0.7",
|
|
48
|
+
"@wordpress/keycodes": "^3.2.4",
|
|
49
|
+
"@wordpress/media-utils": "^3.0.5",
|
|
50
|
+
"@wordpress/notices": "^3.2.8",
|
|
51
|
+
"@wordpress/plugins": "^4.0.7",
|
|
52
|
+
"@wordpress/primitives": "^3.0.4",
|
|
53
|
+
"@wordpress/reusable-blocks": "^3.0.20",
|
|
54
|
+
"@wordpress/url": "^3.3.1",
|
|
55
|
+
"@wordpress/viewport": "^4.0.7",
|
|
56
56
|
"classnames": "^2.3.1",
|
|
57
57
|
"downloadjs": "^1.4.7",
|
|
58
58
|
"file-saver": "^2.0.2",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "04883dd8275ee52245a45c8899eb720b91055c50"
|
|
68
68
|
}
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
BlockTools,
|
|
18
18
|
__unstableBlockSettingsMenuFirstItem,
|
|
19
19
|
__unstableUseTypingObserver as useTypingObserver,
|
|
20
|
+
BlockEditorKeyboardShortcuts,
|
|
20
21
|
store as blockEditorStore,
|
|
21
22
|
} from '@wordpress/block-editor';
|
|
22
23
|
import { useMergeRefs, useViewportMatch } from '@wordpress/compose';
|
|
@@ -108,8 +109,8 @@ export default function BlockEditor( { setIsInserterOpen } ) {
|
|
|
108
109
|
}
|
|
109
110
|
} }
|
|
110
111
|
>
|
|
112
|
+
<BlockEditorKeyboardShortcuts.Register />
|
|
111
113
|
<BackButton />
|
|
112
|
-
|
|
113
114
|
<ResizableEditor
|
|
114
115
|
// Reinitialize the editor and reset the states when the template changes.
|
|
115
116
|
key={ templateId }
|
|
@@ -127,7 +128,6 @@ export default function BlockEditor( { setIsInserterOpen } ) {
|
|
|
127
128
|
renderAppender={ isTemplatePart ? false : undefined }
|
|
128
129
|
/>
|
|
129
130
|
</ResizableEditor>
|
|
130
|
-
|
|
131
131
|
<__unstableBlockSettingsMenuFirstItem>
|
|
132
132
|
{ ( { onClose } ) => (
|
|
133
133
|
<BlockInspectorButton onClick={ onClose } />
|
|
@@ -57,22 +57,49 @@ function ResizableEditor( { enableResizing, settings, ...props } ) {
|
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
let animationFrame = null;
|
|
61
|
+
|
|
62
|
+
function resizeHeight() {
|
|
63
|
+
if ( ! animationFrame ) {
|
|
64
|
+
// Throttle the updates on animation frame.
|
|
65
|
+
animationFrame = iframe.contentWindow.requestAnimationFrame(
|
|
66
|
+
() => {
|
|
67
|
+
setHeight(
|
|
68
|
+
iframe.contentDocument.documentElement
|
|
69
|
+
.scrollHeight
|
|
70
|
+
);
|
|
71
|
+
animationFrame = null;
|
|
72
|
+
}
|
|
66
73
|
);
|
|
67
74
|
}
|
|
68
|
-
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
let resizeObserver;
|
|
78
|
+
|
|
79
|
+
function registerObserver() {
|
|
80
|
+
resizeObserver?.disconnect();
|
|
81
|
+
|
|
82
|
+
resizeObserver = new iframe.contentWindow.ResizeObserver(
|
|
83
|
+
resizeHeight
|
|
84
|
+
);
|
|
85
|
+
// Observing the <html> rather than the <body> because the latter
|
|
86
|
+
// gets destroyed and remounted after initialization in <Iframe>.
|
|
87
|
+
resizeObserver.observe(
|
|
88
|
+
iframe.contentDocument.documentElement
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
resizeHeight();
|
|
92
|
+
}
|
|
69
93
|
|
|
70
|
-
//
|
|
71
|
-
|
|
72
|
-
|
|
94
|
+
// This is only required in Firefox for some unknown reasons.
|
|
95
|
+
iframe.addEventListener( 'load', registerObserver );
|
|
96
|
+
// This is required in Chrome and Safari.
|
|
97
|
+
registerObserver();
|
|
73
98
|
|
|
74
99
|
return () => {
|
|
75
|
-
|
|
100
|
+
iframe.contentWindow?.cancelAnimationFrame( animationFrame );
|
|
101
|
+
resizeObserver?.disconnect();
|
|
102
|
+
iframe.removeEventListener( 'load', registerObserver );
|
|
76
103
|
};
|
|
77
104
|
},
|
|
78
105
|
[ enableResizing ]
|
|
@@ -133,11 +160,23 @@ function ResizableEditor( { enableResizing, settings, ...props } ) {
|
|
|
133
160
|
<style>{
|
|
134
161
|
// Forming a "block formatting context" to prevent margin collapsing.
|
|
135
162
|
// @see https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context
|
|
136
|
-
`.
|
|
163
|
+
`.is-root-container { display: flow-root; }`
|
|
137
164
|
}</style>
|
|
165
|
+
{ enableResizing && (
|
|
166
|
+
<style>
|
|
167
|
+
{
|
|
168
|
+
// Force the <html> and <body>'s heights to fit the content.
|
|
169
|
+
`html, body { height: -moz-fit-content !important; height: fit-content !important; min-height: 0 !important; }`
|
|
170
|
+
}
|
|
171
|
+
{
|
|
172
|
+
// Some themes will have `min-height: 100vh` for the root container,
|
|
173
|
+
// which isn't a requirement in auto resize mode.
|
|
174
|
+
`.is-root-container { min-height: 0 !important; }`
|
|
175
|
+
}
|
|
176
|
+
</style>
|
|
177
|
+
) }
|
|
138
178
|
</>
|
|
139
179
|
}
|
|
140
|
-
assets={ settings.__unstableResolvedAssets }
|
|
141
180
|
ref={ ref }
|
|
142
181
|
name="editor-canvas"
|
|
143
182
|
className="edit-site-visual-editor__editor-canvas"
|
|
@@ -19,14 +19,18 @@
|
|
|
19
19
|
align-items: center;
|
|
20
20
|
|
|
21
21
|
&.is-focus-mode {
|
|
22
|
-
padding:
|
|
22
|
+
padding: 48px;
|
|
23
23
|
|
|
24
24
|
.edit-site-visual-editor__editor-canvas {
|
|
25
|
-
border-radius:
|
|
25
|
+
border-radius: 2px;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
.edit-site-visual-editor__editor-canvas {
|
|
31
|
+
border-radius: 2px 2px 0 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
30
34
|
.edit-site-visual-editor__back-button {
|
|
31
35
|
position: absolute;
|
|
32
36
|
top: $grid-unit-10;
|
|
@@ -51,26 +55,30 @@
|
|
|
51
55
|
bottom: 0;
|
|
52
56
|
padding: 0;
|
|
53
57
|
margin: auto 0;
|
|
54
|
-
width: $grid-unit-
|
|
58
|
+
width: $grid-unit-10;
|
|
55
59
|
height: $height;
|
|
56
60
|
appearance: none;
|
|
57
|
-
cursor:
|
|
61
|
+
cursor: grab;
|
|
58
62
|
outline: none;
|
|
59
|
-
background: $gray-
|
|
60
|
-
border-radius:
|
|
63
|
+
background: $gray-700;
|
|
64
|
+
border-radius: 4px;
|
|
61
65
|
border: 0;
|
|
62
66
|
|
|
63
67
|
&.is-left {
|
|
64
|
-
left: -$grid-unit-
|
|
68
|
+
left: #{-$grid-unit-30 - $grid-unit-05};
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
&.is-right {
|
|
68
|
-
right: -$grid-unit-
|
|
72
|
+
right: #{-$grid-unit-30 - $grid-unit-05};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:hover {
|
|
76
|
+
background: $gray-600;
|
|
69
77
|
}
|
|
70
78
|
|
|
71
|
-
&:hover,
|
|
72
79
|
&:active {
|
|
73
|
-
|
|
80
|
+
cursor: grabbing;
|
|
81
|
+
background: $gray-600;
|
|
74
82
|
}
|
|
75
83
|
|
|
76
84
|
&:focus {
|