@wordpress/edit-post 7.26.0 → 7.27.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/header/index.js +2 -2
- package/build/components/header/index.js.map +1 -1
- package/build/components/layout/index.native.js +1 -3
- package/build/components/layout/index.native.js.map +1 -1
- package/build/components/meta-boxes/index.js +3 -2
- package/build/components/meta-boxes/index.js.map +1 -1
- package/build/components/preferences-modal/{options/enable-custom-fields.js → enable-custom-fields.js} +10 -2
- package/build/components/preferences-modal/enable-custom-fields.js.map +1 -0
- package/build/components/preferences-modal/{options/enable-panel.js → enable-panel.js} +11 -2
- package/build/components/preferences-modal/enable-panel.js.map +1 -0
- package/build/components/preferences-modal/{options/enable-publish-sidebar.js → enable-publish-sidebar.js} +11 -2
- package/build/components/preferences-modal/enable-publish-sidebar.js.map +1 -0
- package/build/components/preferences-modal/index.js +31 -149
- package/build/components/preferences-modal/index.js.map +1 -1
- package/build/components/preferences-modal/meta-boxes-section.js +11 -5
- package/build/components/preferences-modal/meta-boxes-section.js.map +1 -1
- package/build/components/sidebar/plugin-document-setting-panel/index.js +5 -2
- package/build/components/sidebar/plugin-document-setting-panel/index.js.map +1 -1
- package/build/editor.js +3 -26
- package/build/editor.js.map +1 -1
- package/build/editor.native.js +4 -28
- package/build/editor.native.js.map +1 -1
- package/build/hooks/commands/use-common-commands.js +48 -8
- package/build/hooks/commands/use-common-commands.js.map +1 -1
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/index.native.js +1 -1
- package/build/index.native.js.map +1 -1
- package/build/store/actions.js +11 -10
- package/build/store/actions.js.map +1 -1
- package/build/store/selectors.js +24 -6
- package/build/store/selectors.js.map +1 -1
- package/build-module/components/header/index.js +2 -2
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/layout/index.native.js +1 -3
- package/build-module/components/layout/index.native.js.map +1 -1
- package/build-module/components/meta-boxes/index.js +3 -2
- package/build-module/components/meta-boxes/index.js.map +1 -1
- package/build-module/components/preferences-modal/{options/enable-custom-fields.js → enable-custom-fields.js} +10 -2
- package/build-module/components/preferences-modal/enable-custom-fields.js.map +1 -0
- package/build-module/components/preferences-modal/{options/enable-panel.js → enable-panel.js} +10 -2
- package/build-module/components/preferences-modal/enable-panel.js.map +1 -0
- package/build-module/components/preferences-modal/{options/enable-publish-sidebar.js → enable-publish-sidebar.js} +10 -2
- package/build-module/components/preferences-modal/enable-publish-sidebar.js.map +1 -0
- package/build-module/components/preferences-modal/index.js +31 -150
- package/build-module/components/preferences-modal/index.js.map +1 -1
- package/build-module/components/preferences-modal/meta-boxes-section.js +7 -2
- package/build-module/components/preferences-modal/meta-boxes-section.js.map +1 -1
- package/build-module/components/sidebar/plugin-document-setting-panel/index.js +5 -2
- package/build-module/components/sidebar/plugin-document-setting-panel/index.js.map +1 -1
- package/build-module/editor.js +3 -26
- package/build-module/editor.js.map +1 -1
- package/build-module/editor.native.js +5 -29
- package/build-module/editor.native.js.map +1 -1
- package/build-module/hooks/commands/use-common-commands.js +49 -9
- package/build-module/hooks/commands/use-common-commands.js.map +1 -1
- package/build-module/index.js +2 -2
- package/build-module/index.js.map +1 -1
- package/build-module/index.native.js +1 -1
- package/build-module/index.native.js.map +1 -1
- package/build-module/store/actions.js +11 -10
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/selectors.js +24 -6
- package/build-module/store/selectors.js.map +1 -1
- package/build-style/classic-rtl.css +1 -1
- package/build-style/classic.css +1 -1
- package/build-style/style-rtl.css +16 -182
- package/build-style/style.css +16 -182
- package/package.json +32 -32
- package/src/components/header/index.js +2 -4
- package/src/components/header/style.scss +13 -4
- package/src/components/layout/index.native.js +1 -4
- package/src/components/meta-boxes/index.js +4 -2
- package/src/components/preferences-modal/{options/enable-custom-fields.js → enable-custom-fields.js} +10 -3
- package/src/components/preferences-modal/{options/enable-panel.js → enable-panel.js} +9 -2
- package/src/components/preferences-modal/{options/enable-publish-sidebar.js → enable-publish-sidebar.js} +9 -2
- package/src/components/preferences-modal/index.js +44 -267
- package/src/components/preferences-modal/meta-boxes-section.js +6 -2
- package/src/components/preferences-modal/{options/test → test}/__snapshots__/enable-custom-fields.js.snap +4 -4
- package/src/components/preferences-modal/test/__snapshots__/meta-boxes-section.js.snap +18 -18
- package/src/components/sidebar/plugin-document-setting-panel/index.js +6 -2
- package/src/editor.js +55 -85
- package/src/editor.native.js +4 -33
- package/src/hooks/commands/use-common-commands.js +77 -7
- package/src/index.js +2 -2
- package/src/index.native.js +1 -1
- package/src/store/actions.js +14 -33
- package/src/store/selectors.js +52 -26
- package/src/store/test/actions.js +9 -9
- package/src/style.scss +0 -1
- package/build/components/block-manager/category.js +0 -105
- package/build/components/block-manager/category.js.map +0 -1
- package/build/components/block-manager/checklist.js +0 -35
- package/build/components/block-manager/checklist.js.map +0 -1
- package/build/components/block-manager/index.js +0 -127
- package/build/components/block-manager/index.js.map +0 -1
- package/build/components/preferences-modal/options/enable-custom-fields.js.map +0 -1
- package/build/components/preferences-modal/options/enable-feature.js +0 -36
- package/build/components/preferences-modal/options/enable-feature.js.map +0 -1
- package/build/components/preferences-modal/options/enable-panel.js.map +0 -1
- package/build/components/preferences-modal/options/enable-plugin-document-setting-panel.js +0 -32
- package/build/components/preferences-modal/options/enable-plugin-document-setting-panel.js.map +0 -1
- package/build/components/preferences-modal/options/enable-publish-sidebar.js.map +0 -1
- package/build/components/preferences-modal/options/index.js +0 -42
- package/build/components/preferences-modal/options/index.js.map +0 -1
- package/build-module/components/block-manager/category.js +0 -96
- package/build-module/components/block-manager/category.js.map +0 -1
- package/build-module/components/block-manager/checklist.js +0 -27
- package/build-module/components/block-manager/checklist.js.map +0 -1
- package/build-module/components/block-manager/index.js +0 -118
- package/build-module/components/block-manager/index.js.map +0 -1
- package/build-module/components/preferences-modal/options/enable-custom-fields.js.map +0 -1
- package/build-module/components/preferences-modal/options/enable-feature.js +0 -29
- package/build-module/components/preferences-modal/options/enable-feature.js.map +0 -1
- package/build-module/components/preferences-modal/options/enable-panel.js.map +0 -1
- package/build-module/components/preferences-modal/options/enable-plugin-document-setting-panel.js +0 -24
- package/build-module/components/preferences-modal/options/enable-plugin-document-setting-panel.js.map +0 -1
- package/build-module/components/preferences-modal/options/enable-publish-sidebar.js.map +0 -1
- package/build-module/components/preferences-modal/options/index.js +0 -6
- package/build-module/components/preferences-modal/options/index.js.map +0 -1
- package/src/components/block-manager/category.js +0 -94
- package/src/components/block-manager/checklist.js +0 -30
- package/src/components/block-manager/index.js +0 -158
- package/src/components/block-manager/style.scss +0 -82
- package/src/components/preferences-modal/options/enable-feature.js +0 -31
- package/src/components/preferences-modal/options/enable-plugin-document-setting-panel.js +0 -23
- package/src/components/preferences-modal/options/index.js +0 -5
- /package/src/components/preferences-modal/{options/test → test}/enable-custom-fields.js +0 -0
package/build-style/style.css
CHANGED
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
--wp-block-synced-color: #7a00df;
|
|
98
98
|
--wp-block-synced-color--rgb: 122, 0, 223;
|
|
99
99
|
}
|
|
100
|
-
@media (
|
|
100
|
+
@media (min-resolution: 192dpi) {
|
|
101
101
|
:root {
|
|
102
102
|
--wp-admin-border-width-focus: 1.5px;
|
|
103
103
|
}
|
|
@@ -469,7 +469,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
469
469
|
.interface-pinned-items {
|
|
470
470
|
display: flex;
|
|
471
471
|
gap: 8px;
|
|
472
|
-
margin-right: -4px;
|
|
473
472
|
}
|
|
474
473
|
.interface-pinned-items .components-button {
|
|
475
474
|
display: none;
|
|
@@ -488,99 +487,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
488
487
|
}
|
|
489
488
|
}
|
|
490
489
|
|
|
491
|
-
@media (min-width: 600px) {
|
|
492
|
-
.interface-preferences-modal {
|
|
493
|
-
width: calc(100% - 32px);
|
|
494
|
-
height: calc(100% - 120px);
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
@media (min-width: 782px) {
|
|
498
|
-
.interface-preferences-modal {
|
|
499
|
-
width: 750px;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
@media (min-width: 960px) {
|
|
503
|
-
.interface-preferences-modal {
|
|
504
|
-
height: 70%;
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
@media (max-width: 781px) {
|
|
508
|
-
.interface-preferences-modal .components-modal__content {
|
|
509
|
-
padding: 0;
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
.interface-preferences__tabs .components-tab-panel__tabs {
|
|
514
|
-
position: absolute;
|
|
515
|
-
top: 84px;
|
|
516
|
-
left: 16px;
|
|
517
|
-
width: 160px;
|
|
518
|
-
}
|
|
519
|
-
.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item {
|
|
520
|
-
border-radius: 2px;
|
|
521
|
-
font-weight: 400;
|
|
522
|
-
}
|
|
523
|
-
.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active {
|
|
524
|
-
background: #f0f0f0;
|
|
525
|
-
box-shadow: none;
|
|
526
|
-
font-weight: 500;
|
|
527
|
-
}
|
|
528
|
-
.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active::after {
|
|
529
|
-
content: none;
|
|
530
|
-
}
|
|
531
|
-
.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled) {
|
|
532
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
533
|
-
outline: 2px solid transparent;
|
|
534
|
-
}
|
|
535
|
-
.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible::before {
|
|
536
|
-
content: none;
|
|
537
|
-
}
|
|
538
|
-
.interface-preferences__tabs .components-tab-panel__tab-content {
|
|
539
|
-
padding-left: 24px;
|
|
540
|
-
margin-left: 160px;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
@media (max-width: 781px) {
|
|
544
|
-
.interface-preferences__provider {
|
|
545
|
-
height: 100%;
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
.interface-preferences-modal__section {
|
|
549
|
-
margin: 0 0 2.5rem 0;
|
|
550
|
-
}
|
|
551
|
-
.interface-preferences-modal__section:last-child {
|
|
552
|
-
margin: 0;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
.interface-preferences-modal__section-legend {
|
|
556
|
-
margin-bottom: 8px;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
.interface-preferences-modal__section-title {
|
|
560
|
-
font-size: 0.9rem;
|
|
561
|
-
font-weight: 600;
|
|
562
|
-
margin-top: 0;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
.interface-preferences-modal__section-description {
|
|
566
|
-
margin: -8px 0 8px 0;
|
|
567
|
-
font-size: 12px;
|
|
568
|
-
font-style: normal;
|
|
569
|
-
color: #757575;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
.interface-preferences-modal__section:has(.interface-preferences-modal__section-content:empty) {
|
|
573
|
-
display: none;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
.interface-preferences-modal__option + .interface-preferences-modal__option {
|
|
577
|
-
margin-top: 16px;
|
|
578
|
-
}
|
|
579
|
-
.interface-preferences-modal__option .components-base-control__help {
|
|
580
|
-
margin-top: 0;
|
|
581
|
-
margin-left: 48px;
|
|
582
|
-
}
|
|
583
|
-
|
|
584
490
|
.edit-post-header {
|
|
585
491
|
height: 60px;
|
|
586
492
|
background: #fff;
|
|
@@ -780,6 +686,11 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
780
686
|
background-color: #ddd;
|
|
781
687
|
margin-left: 8px;
|
|
782
688
|
}
|
|
689
|
+
.show-icon-labels .edit-post-header__toolbar .block-editor-block-mover .block-editor-block-mover__move-button-container::before {
|
|
690
|
+
width: calc(100% - 24px);
|
|
691
|
+
background: #ddd;
|
|
692
|
+
left: calc(50% + 1px);
|
|
693
|
+
}
|
|
783
694
|
|
|
784
695
|
.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,
|
|
785
696
|
.edit-post-header__dropdown .components-button.editor-history__undo,
|
|
@@ -914,8 +825,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
914
825
|
width: 36px;
|
|
915
826
|
height: 36px;
|
|
916
827
|
border-radius: 2px;
|
|
917
|
-
|
|
918
|
-
object-fit: cover;
|
|
828
|
+
object-fit: cover;
|
|
919
829
|
margin-top: -1px;
|
|
920
830
|
}
|
|
921
831
|
|
|
@@ -1103,81 +1013,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1103
1013
|
height: 61px;
|
|
1104
1014
|
}
|
|
1105
1015
|
|
|
1106
|
-
.edit-post-block-manager__no-results {
|
|
1107
|
-
font-style: italic;
|
|
1108
|
-
padding: 24px 0;
|
|
1109
|
-
text-align: center;
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
.edit-post-block-manager__search {
|
|
1113
|
-
margin: 16px 0;
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
.edit-post-block-manager__disabled-blocks-count {
|
|
1117
|
-
border: 1px solid #ddd;
|
|
1118
|
-
border-width: 1px 0;
|
|
1119
|
-
box-shadow: -32px 0 0 0 #fff, 32px 0 0 0 #fff;
|
|
1120
|
-
padding: 8px;
|
|
1121
|
-
background-color: #fff;
|
|
1122
|
-
text-align: center;
|
|
1123
|
-
position: sticky;
|
|
1124
|
-
top: -5px;
|
|
1125
|
-
z-index: 2;
|
|
1126
|
-
}
|
|
1127
|
-
.edit-post-block-manager__disabled-blocks-count ~ .edit-post-block-manager__results .edit-post-block-manager__category-title {
|
|
1128
|
-
top: 31px;
|
|
1129
|
-
}
|
|
1130
|
-
.edit-post-block-manager__disabled-blocks-count .is-link {
|
|
1131
|
-
margin-left: 12px;
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
.edit-post-block-manager__category {
|
|
1135
|
-
margin: 0 0 24px 0;
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
.edit-post-block-manager__category-title {
|
|
1139
|
-
position: sticky;
|
|
1140
|
-
top: -4px;
|
|
1141
|
-
padding: 16px 0;
|
|
1142
|
-
background-color: #fff;
|
|
1143
|
-
z-index: 1;
|
|
1144
|
-
}
|
|
1145
|
-
.edit-post-block-manager__category-title .components-checkbox-control__label {
|
|
1146
|
-
font-weight: 600;
|
|
1147
|
-
}
|
|
1148
|
-
|
|
1149
|
-
.edit-post-block-manager__checklist {
|
|
1150
|
-
margin-top: 0;
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
|
-
.edit-post-block-manager__category-title,
|
|
1154
|
-
.edit-post-block-manager__checklist-item {
|
|
1155
|
-
border-bottom: 1px solid #ddd;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
.edit-post-block-manager__checklist-item {
|
|
1159
|
-
display: flex;
|
|
1160
|
-
justify-content: space-between;
|
|
1161
|
-
align-items: center;
|
|
1162
|
-
margin-bottom: 0;
|
|
1163
|
-
padding: 8px 0 8px 16px;
|
|
1164
|
-
}
|
|
1165
|
-
.components-modal__content .edit-post-block-manager__checklist-item.components-checkbox-control__input-container {
|
|
1166
|
-
margin: 0 8px;
|
|
1167
|
-
}
|
|
1168
|
-
.edit-post-block-manager__checklist-item .block-editor-block-icon {
|
|
1169
|
-
margin-right: 10px;
|
|
1170
|
-
fill: #1e1e1e;
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
.edit-post-block-manager__results {
|
|
1174
|
-
border-top: 1px solid #ddd;
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
.edit-post-block-manager__disabled-blocks-count + .edit-post-block-manager__results {
|
|
1178
|
-
border-top-width: 0;
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
1016
|
.edit-post-meta-boxes-area {
|
|
1182
1017
|
position: relative;
|
|
1183
1018
|
/**
|
|
@@ -1419,8 +1254,7 @@ h2.edit-post-template-summary__title {
|
|
|
1419
1254
|
.edit-template-welcome-guide__image > img {
|
|
1420
1255
|
display: block;
|
|
1421
1256
|
max-width: 100%;
|
|
1422
|
-
|
|
1423
|
-
object-fit: cover;
|
|
1257
|
+
object-fit: cover;
|
|
1424
1258
|
}
|
|
1425
1259
|
.edit-post-welcome-guide__heading,
|
|
1426
1260
|
.edit-template-welcome-guide__heading {
|
|
@@ -1583,7 +1417,7 @@ body.admin-color-light {
|
|
|
1583
1417
|
--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;
|
|
1584
1418
|
--wp-admin-border-width-focus: 2px;
|
|
1585
1419
|
}
|
|
1586
|
-
@media (
|
|
1420
|
+
@media (min-resolution: 192dpi) {
|
|
1587
1421
|
body.admin-color-light {
|
|
1588
1422
|
--wp-admin-border-width-focus: 1.5px;
|
|
1589
1423
|
}
|
|
@@ -1598,7 +1432,7 @@ body.admin-color-modern {
|
|
|
1598
1432
|
--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;
|
|
1599
1433
|
--wp-admin-border-width-focus: 2px;
|
|
1600
1434
|
}
|
|
1601
|
-
@media (
|
|
1435
|
+
@media (min-resolution: 192dpi) {
|
|
1602
1436
|
body.admin-color-modern {
|
|
1603
1437
|
--wp-admin-border-width-focus: 1.5px;
|
|
1604
1438
|
}
|
|
@@ -1613,7 +1447,7 @@ body.admin-color-blue {
|
|
|
1613
1447
|
--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;
|
|
1614
1448
|
--wp-admin-border-width-focus: 2px;
|
|
1615
1449
|
}
|
|
1616
|
-
@media (
|
|
1450
|
+
@media (min-resolution: 192dpi) {
|
|
1617
1451
|
body.admin-color-blue {
|
|
1618
1452
|
--wp-admin-border-width-focus: 1.5px;
|
|
1619
1453
|
}
|
|
@@ -1628,7 +1462,7 @@ body.admin-color-coffee {
|
|
|
1628
1462
|
--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;
|
|
1629
1463
|
--wp-admin-border-width-focus: 2px;
|
|
1630
1464
|
}
|
|
1631
|
-
@media (
|
|
1465
|
+
@media (min-resolution: 192dpi) {
|
|
1632
1466
|
body.admin-color-coffee {
|
|
1633
1467
|
--wp-admin-border-width-focus: 1.5px;
|
|
1634
1468
|
}
|
|
@@ -1643,7 +1477,7 @@ body.admin-color-ectoplasm {
|
|
|
1643
1477
|
--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;
|
|
1644
1478
|
--wp-admin-border-width-focus: 2px;
|
|
1645
1479
|
}
|
|
1646
|
-
@media (
|
|
1480
|
+
@media (min-resolution: 192dpi) {
|
|
1647
1481
|
body.admin-color-ectoplasm {
|
|
1648
1482
|
--wp-admin-border-width-focus: 1.5px;
|
|
1649
1483
|
}
|
|
@@ -1658,7 +1492,7 @@ body.admin-color-midnight {
|
|
|
1658
1492
|
--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;
|
|
1659
1493
|
--wp-admin-border-width-focus: 2px;
|
|
1660
1494
|
}
|
|
1661
|
-
@media (
|
|
1495
|
+
@media (min-resolution: 192dpi) {
|
|
1662
1496
|
body.admin-color-midnight {
|
|
1663
1497
|
--wp-admin-border-width-focus: 1.5px;
|
|
1664
1498
|
}
|
|
@@ -1673,7 +1507,7 @@ body.admin-color-ocean {
|
|
|
1673
1507
|
--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;
|
|
1674
1508
|
--wp-admin-border-width-focus: 2px;
|
|
1675
1509
|
}
|
|
1676
|
-
@media (
|
|
1510
|
+
@media (min-resolution: 192dpi) {
|
|
1677
1511
|
body.admin-color-ocean {
|
|
1678
1512
|
--wp-admin-border-width-focus: 1.5px;
|
|
1679
1513
|
}
|
|
@@ -1688,7 +1522,7 @@ body.admin-color-sunrise {
|
|
|
1688
1522
|
--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;
|
|
1689
1523
|
--wp-admin-border-width-focus: 2px;
|
|
1690
1524
|
}
|
|
1691
|
-
@media (
|
|
1525
|
+
@media (min-resolution: 192dpi) {
|
|
1692
1526
|
body.admin-color-sunrise {
|
|
1693
1527
|
--wp-admin-border-width-focus: 1.5px;
|
|
1694
1528
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-post",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.27.0",
|
|
4
4
|
"description": "Edit Post module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -27,36 +27,36 @@
|
|
|
27
27
|
"react-native": "src/index",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@babel/runtime": "^7.16.0",
|
|
30
|
-
"@wordpress/a11y": "^3.
|
|
31
|
-
"@wordpress/api-fetch": "^6.
|
|
32
|
-
"@wordpress/block-editor": "^12.
|
|
33
|
-
"@wordpress/block-library": "^8.
|
|
34
|
-
"@wordpress/blocks": "^12.
|
|
35
|
-
"@wordpress/commands": "^0.
|
|
36
|
-
"@wordpress/components": "^25.
|
|
37
|
-
"@wordpress/compose": "^6.
|
|
38
|
-
"@wordpress/core-commands": "^0.
|
|
39
|
-
"@wordpress/core-data": "^6.
|
|
40
|
-
"@wordpress/data": "^9.
|
|
41
|
-
"@wordpress/deprecated": "^3.
|
|
42
|
-
"@wordpress/dom": "^3.
|
|
43
|
-
"@wordpress/editor": "^13.
|
|
44
|
-
"@wordpress/element": "^5.
|
|
45
|
-
"@wordpress/hooks": "^3.
|
|
46
|
-
"@wordpress/i18n": "^4.
|
|
47
|
-
"@wordpress/icons": "^9.
|
|
48
|
-
"@wordpress/interface": "^5.
|
|
49
|
-
"@wordpress/keyboard-shortcuts": "^4.
|
|
50
|
-
"@wordpress/keycodes": "^3.
|
|
51
|
-
"@wordpress/media-utils": "^4.
|
|
52
|
-
"@wordpress/notices": "^4.
|
|
53
|
-
"@wordpress/plugins": "^6.
|
|
54
|
-
"@wordpress/preferences": "^3.
|
|
55
|
-
"@wordpress/private-apis": "^0.
|
|
56
|
-
"@wordpress/url": "^3.
|
|
57
|
-
"@wordpress/viewport": "^5.
|
|
58
|
-
"@wordpress/warning": "^2.
|
|
59
|
-
"@wordpress/widgets": "^3.
|
|
30
|
+
"@wordpress/a11y": "^3.50.0",
|
|
31
|
+
"@wordpress/api-fetch": "^6.47.0",
|
|
32
|
+
"@wordpress/block-editor": "^12.18.0",
|
|
33
|
+
"@wordpress/block-library": "^8.27.0",
|
|
34
|
+
"@wordpress/blocks": "^12.27.0",
|
|
35
|
+
"@wordpress/commands": "^0.21.0",
|
|
36
|
+
"@wordpress/components": "^25.16.0",
|
|
37
|
+
"@wordpress/compose": "^6.27.0",
|
|
38
|
+
"@wordpress/core-commands": "^0.19.0",
|
|
39
|
+
"@wordpress/core-data": "^6.27.0",
|
|
40
|
+
"@wordpress/data": "^9.20.0",
|
|
41
|
+
"@wordpress/deprecated": "^3.50.0",
|
|
42
|
+
"@wordpress/dom": "^3.50.0",
|
|
43
|
+
"@wordpress/editor": "^13.27.0",
|
|
44
|
+
"@wordpress/element": "^5.27.0",
|
|
45
|
+
"@wordpress/hooks": "^3.50.0",
|
|
46
|
+
"@wordpress/i18n": "^4.50.0",
|
|
47
|
+
"@wordpress/icons": "^9.41.0",
|
|
48
|
+
"@wordpress/interface": "^5.27.0",
|
|
49
|
+
"@wordpress/keyboard-shortcuts": "^4.27.0",
|
|
50
|
+
"@wordpress/keycodes": "^3.50.0",
|
|
51
|
+
"@wordpress/media-utils": "^4.41.0",
|
|
52
|
+
"@wordpress/notices": "^4.18.0",
|
|
53
|
+
"@wordpress/plugins": "^6.18.0",
|
|
54
|
+
"@wordpress/preferences": "^3.27.0",
|
|
55
|
+
"@wordpress/private-apis": "^0.32.0",
|
|
56
|
+
"@wordpress/url": "^3.51.0",
|
|
57
|
+
"@wordpress/viewport": "^5.27.0",
|
|
58
|
+
"@wordpress/warning": "^2.50.0",
|
|
59
|
+
"@wordpress/widgets": "^3.27.0",
|
|
60
60
|
"classnames": "^2.3.1",
|
|
61
61
|
"memize": "^2.1.0",
|
|
62
62
|
"rememo": "^4.0.2"
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "45de2cb4212fed7f2763e95f10300d1ff9d0ec08"
|
|
72
72
|
}
|
|
@@ -119,9 +119,7 @@ function Header( { setEntitiesSavedStatesCallback } ) {
|
|
|
119
119
|
className={ classnames(
|
|
120
120
|
'selected-block-tools-wrapper',
|
|
121
121
|
{
|
|
122
|
-
'is-collapsed':
|
|
123
|
-
isEditingTemplate &&
|
|
124
|
-
isBlockToolsCollapsed,
|
|
122
|
+
'is-collapsed': isBlockToolsCollapsed,
|
|
125
123
|
}
|
|
126
124
|
) }
|
|
127
125
|
>
|
|
@@ -131,7 +129,7 @@ function Header( { setEntitiesSavedStatesCallback } ) {
|
|
|
131
129
|
ref={ blockToolbarRef }
|
|
132
130
|
name="block-toolbar"
|
|
133
131
|
/>
|
|
134
|
-
{
|
|
132
|
+
{ hasBlockSelection && (
|
|
135
133
|
<Button
|
|
136
134
|
className="edit-post-header__block-tools-toggle"
|
|
137
135
|
icon={ isBlockToolsCollapsed ? next : previous }
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
margin-left: $grid-unit;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
// Modified group borders
|
|
72
|
+
// Modified group borders.
|
|
73
73
|
.components-toolbar-group,
|
|
74
74
|
.components-toolbar {
|
|
75
75
|
border-right: none;
|
|
@@ -194,18 +194,27 @@
|
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
.show-icon-labels {
|
|
197
|
-
|
|
198
197
|
.edit-post-header__toolbar .block-editor-block-mover {
|
|
198
|
+
// Modified group borders.
|
|
199
199
|
border-left: none;
|
|
200
200
|
|
|
201
201
|
&::before {
|
|
202
202
|
content: "";
|
|
203
203
|
width: $border-width;
|
|
204
|
-
margin-top: $grid-unit
|
|
205
|
-
margin-bottom: $grid-unit
|
|
204
|
+
margin-top: $grid-unit-15;
|
|
205
|
+
margin-bottom: $grid-unit-15;
|
|
206
206
|
background-color: $gray-300;
|
|
207
207
|
margin-left: $grid-unit;
|
|
208
208
|
}
|
|
209
|
+
|
|
210
|
+
// Modified block movers horizontal separator.
|
|
211
|
+
.block-editor-block-mover__move-button-container {
|
|
212
|
+
&::before {
|
|
213
|
+
width: calc(100% - #{$grid-unit-30});
|
|
214
|
+
background: $gray-300;
|
|
215
|
+
left: calc(50% + 1px);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
209
218
|
}
|
|
210
219
|
}
|
|
211
220
|
|
|
@@ -152,10 +152,7 @@ class Layout extends Component {
|
|
|
152
152
|
onLayout={ this.onRootViewLayout }
|
|
153
153
|
>
|
|
154
154
|
<AutosaveMonitor disableIntervalChecks />
|
|
155
|
-
|
|
156
|
-
// eslint-disable-next-line no-undef
|
|
157
|
-
__DEV__ && <OfflineStatus />
|
|
158
|
-
}
|
|
155
|
+
<OfflineStatus />
|
|
159
156
|
<View style={ editorStyles }>
|
|
160
157
|
{ isHtmlView ? this.renderHTML() : this.renderVisual() }
|
|
161
158
|
{ ! isHtmlView && Platform.OS === 'android' && (
|
|
@@ -30,14 +30,16 @@ export default function MetaBoxes( { location } ) {
|
|
|
30
30
|
[ location ]
|
|
31
31
|
);
|
|
32
32
|
|
|
33
|
+
const hasMetaBoxes = !! metaBoxes?.length;
|
|
34
|
+
|
|
33
35
|
// When editor is ready, initialize postboxes (wp core script) and metabox
|
|
34
36
|
// saving. This initializes all meta box locations, not just this specific
|
|
35
37
|
// one.
|
|
36
38
|
useEffect( () => {
|
|
37
|
-
if ( isEditorReady && ! areMetaBoxesInitialized ) {
|
|
39
|
+
if ( isEditorReady && hasMetaBoxes && ! areMetaBoxesInitialized ) {
|
|
38
40
|
registry.dispatch( editPostStore ).initializeMetaBoxes();
|
|
39
41
|
}
|
|
40
|
-
}, [ isEditorReady, areMetaBoxesInitialized ] );
|
|
42
|
+
}, [ isEditorReady, hasMetaBoxes, areMetaBoxesInitialized ] );
|
|
41
43
|
|
|
42
44
|
if ( ! areMetaBoxesInitialized ) {
|
|
43
45
|
return null;
|
package/src/components/preferences-modal/{options/enable-custom-fields.js → enable-custom-fields.js}
RENAMED
|
@@ -6,9 +6,16 @@ import { __ } from '@wordpress/i18n';
|
|
|
6
6
|
import { Button } from '@wordpress/components';
|
|
7
7
|
import { withSelect } from '@wordpress/data';
|
|
8
8
|
import { store as editorStore } from '@wordpress/editor';
|
|
9
|
-
import {
|
|
9
|
+
import { privateApis as preferencesPrivateApis } from '@wordpress/preferences';
|
|
10
10
|
import { getPathAndQueryString } from '@wordpress/url';
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Internal dependencies
|
|
14
|
+
*/
|
|
15
|
+
import { unlock } from '../../lock-unlock';
|
|
16
|
+
|
|
17
|
+
const { PreferenceBaseOption } = unlock( preferencesPrivateApis );
|
|
18
|
+
|
|
12
19
|
function submitCustomFieldsForm() {
|
|
13
20
|
const customFieldsForm = document.getElementById(
|
|
14
21
|
'toggle-custom-fields-form'
|
|
@@ -53,7 +60,7 @@ export function EnableCustomFieldsOption( { label, areCustomFieldsEnabled } ) {
|
|
|
53
60
|
const [ isChecked, setIsChecked ] = useState( areCustomFieldsEnabled );
|
|
54
61
|
|
|
55
62
|
return (
|
|
56
|
-
<
|
|
63
|
+
<PreferenceBaseOption
|
|
57
64
|
label={ label }
|
|
58
65
|
isChecked={ isChecked }
|
|
59
66
|
onChange={ setIsChecked }
|
|
@@ -61,7 +68,7 @@ export function EnableCustomFieldsOption( { label, areCustomFieldsEnabled } ) {
|
|
|
61
68
|
{ isChecked !== areCustomFieldsEnabled && (
|
|
62
69
|
<CustomFieldsConfirmation willEnable={ isChecked } />
|
|
63
70
|
) }
|
|
64
|
-
</
|
|
71
|
+
</PreferenceBaseOption>
|
|
65
72
|
);
|
|
66
73
|
}
|
|
67
74
|
|
|
@@ -3,8 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { compose, ifCondition } from '@wordpress/compose';
|
|
5
5
|
import { withSelect, withDispatch } from '@wordpress/data';
|
|
6
|
-
import { ___unstablePreferencesModalBaseOption as BaseOption } from '@wordpress/interface';
|
|
7
6
|
import { store as editorStore } from '@wordpress/editor';
|
|
7
|
+
import { privateApis as preferencesPrivateApis } from '@wordpress/preferences';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Internal dependencies
|
|
11
|
+
*/
|
|
12
|
+
import { unlock } from '../../lock-unlock';
|
|
13
|
+
|
|
14
|
+
const { PreferenceBaseOption } = unlock( preferencesPrivateApis );
|
|
8
15
|
|
|
9
16
|
export default compose(
|
|
10
17
|
withSelect( ( select, { panelName } ) => {
|
|
@@ -20,4 +27,4 @@ export default compose(
|
|
|
20
27
|
onChange: () =>
|
|
21
28
|
dispatch( editorStore ).toggleEditorPanelEnabled( panelName ),
|
|
22
29
|
} ) )
|
|
23
|
-
)(
|
|
30
|
+
)( PreferenceBaseOption );
|
|
@@ -5,7 +5,14 @@ import { compose } from '@wordpress/compose';
|
|
|
5
5
|
import { withSelect, withDispatch } from '@wordpress/data';
|
|
6
6
|
import { ifViewportMatches } from '@wordpress/viewport';
|
|
7
7
|
import { store as editorStore } from '@wordpress/editor';
|
|
8
|
-
import {
|
|
8
|
+
import { privateApis as preferencesPrivateApis } from '@wordpress/preferences';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Internal dependencies
|
|
12
|
+
*/
|
|
13
|
+
import { unlock } from '../../lock-unlock';
|
|
14
|
+
|
|
15
|
+
const { PreferenceBaseOption } = unlock( preferencesPrivateApis );
|
|
9
16
|
|
|
10
17
|
export default compose(
|
|
11
18
|
withSelect( ( select ) => ( {
|
|
@@ -22,4 +29,4 @@ export default compose(
|
|
|
22
29
|
// In < medium viewports we override this option and always show the publish sidebar.
|
|
23
30
|
// See the edit-post's header component for the specific logic.
|
|
24
31
|
ifViewportMatches( 'medium' )
|
|
25
|
-
)(
|
|
32
|
+
)( PreferenceBaseOption );
|