@wordpress/edit-site 6.12.0 → 6.12.1-next.082ed6819.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/build/components/add-new-template/utils.js +1 -2
- package/build/components/add-new-template/utils.js.map +1 -1
- package/build/components/app/index.js +0 -3
- package/build/components/app/index.js.map +1 -1
- package/build/components/block-editor/use-site-editor-settings.js +4 -12
- package/build/components/block-editor/use-site-editor-settings.js.map +1 -1
- package/build/components/editor/index.js +18 -27
- package/build/components/editor/index.js.map +1 -1
- package/build/components/editor/use-editor-title.js +13 -5
- package/build/components/editor/use-editor-title.js.map +1 -1
- package/build/components/editor/use-resolve-edited-entity.js +133 -0
- package/build/components/editor/use-resolve-edited-entity.js.map +1 -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/block-preview-panel.js +8 -10
- package/build/components/global-styles/block-preview-panel.js.map +1 -1
- package/build/components/global-styles/screen-block.js +18 -5
- package/build/components/global-styles/screen-block.js.map +1 -1
- package/build/components/global-styles/screen-style-variations.js +11 -5
- package/build/components/global-styles/screen-style-variations.js.map +1 -1
- package/build/components/global-styles/ui.js.map +1 -1
- package/build/components/global-styles-sidebar/index.js +17 -1
- package/build/components/global-styles-sidebar/index.js.map +1 -1
- package/build/components/page-patterns/header.js +2 -2
- package/build/components/page-patterns/header.js.map +1 -1
- package/build/components/page-patterns/use-patterns.js +4 -8
- package/build/components/page-patterns/use-patterns.js.map +1 -1
- package/build/components/post-edit/index.js +10 -12
- package/build/components/post-edit/index.js.map +1 -1
- package/build/components/post-list/index.js +3 -3
- package/build/components/post-list/index.js.map +1 -1
- package/build/components/posts-app/index.js +3 -4
- package/build/components/posts-app/index.js.map +1 -1
- package/build/components/posts-app-routes/home.js +48 -0
- package/build/components/posts-app-routes/home.js.map +1 -0
- package/build/components/posts-app-routes/index.js +37 -0
- package/build/components/posts-app-routes/index.js.map +1 -0
- package/build/components/posts-app-routes/posts-edit.js +44 -0
- package/build/components/posts-app-routes/posts-edit.js.map +1 -0
- package/build/components/posts-app-routes/posts-list-view-quick-edit.js +63 -0
- package/build/components/posts-app-routes/posts-list-view-quick-edit.js.map +1 -0
- package/build/components/posts-app-routes/posts-list-view.js +48 -0
- package/build/components/posts-app-routes/posts-list-view.js.map +1 -0
- package/build/components/posts-app-routes/posts-view-quick-edit.js +60 -0
- package/build/components/posts-app-routes/posts-view-quick-edit.js.map +1 -0
- package/build/components/posts-app-routes/posts-view.js +41 -0
- package/build/components/posts-app-routes/posts-view.js.map +1 -0
- package/build/components/sidebar-navigation-screen-details-footer/index.js +17 -23
- package/build/components/sidebar-navigation-screen-details-footer/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-global-styles/index.js +4 -18
- package/build/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +1 -1
- package/build/components/sidebar-navigation-screen-patterns/use-pattern-categories.js.map +1 -1
- package/build/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +2 -3
- package/build/components/sidebar-navigation-screen-patterns/use-template-part-areas.js.map +1 -1
- package/build/components/site-editor-routes/index.js +1 -2
- package/build/components/site-editor-routes/index.js.map +1 -1
- package/build/components/style-book/examples.js +24 -2
- package/build/components/style-book/examples.js.map +1 -1
- package/build/index.js +0 -9
- package/build/index.js.map +1 -1
- package/build/store/actions.js +13 -0
- package/build/store/actions.js.map +1 -1
- package/build/store/selectors.js +21 -1
- package/build/store/selectors.js.map +1 -1
- package/build-module/components/add-new-template/utils.js +1 -2
- package/build-module/components/add-new-template/utils.js.map +1 -1
- package/build-module/components/app/index.js +0 -3
- package/build-module/components/app/index.js.map +1 -1
- package/build-module/components/block-editor/use-site-editor-settings.js +4 -12
- package/build-module/components/block-editor/use-site-editor-settings.js.map +1 -1
- package/build-module/components/editor/index.js +18 -27
- package/build-module/components/editor/index.js.map +1 -1
- package/build-module/components/editor/use-editor-title.js +13 -5
- package/build-module/components/editor/use-editor-title.js.map +1 -1
- package/build-module/components/editor/use-resolve-edited-entity.js +125 -0
- package/build-module/components/editor/use-resolve-edited-entity.js.map +1 -0
- 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/block-preview-panel.js +8 -10
- package/build-module/components/global-styles/block-preview-panel.js.map +1 -1
- package/build-module/components/global-styles/screen-block.js +18 -5
- package/build-module/components/global-styles/screen-block.js.map +1 -1
- package/build-module/components/global-styles/screen-style-variations.js +11 -5
- package/build-module/components/global-styles/screen-style-variations.js.map +1 -1
- package/build-module/components/global-styles/ui.js +1 -1
- package/build-module/components/global-styles/ui.js.map +1 -1
- package/build-module/components/global-styles-sidebar/index.js +18 -2
- package/build-module/components/global-styles-sidebar/index.js.map +1 -1
- package/build-module/components/page-patterns/header.js +2 -2
- package/build-module/components/page-patterns/header.js.map +1 -1
- package/build-module/components/page-patterns/use-patterns.js +4 -8
- package/build-module/components/page-patterns/use-patterns.js.map +1 -1
- package/build-module/components/post-edit/index.js +9 -11
- package/build-module/components/post-edit/index.js.map +1 -1
- package/build-module/components/post-list/index.js +2 -2
- package/build-module/components/post-list/index.js.map +1 -1
- package/build-module/components/posts-app/index.js +3 -4
- package/build-module/components/posts-app/index.js.map +1 -1
- package/build-module/components/posts-app-routes/home.js +40 -0
- package/build-module/components/posts-app-routes/home.js.map +1 -0
- package/build-module/components/posts-app-routes/index.js +30 -0
- package/build-module/components/posts-app-routes/index.js.map +1 -0
- package/build-module/components/posts-app-routes/posts-edit.js +36 -0
- package/build-module/components/posts-app-routes/posts-edit.js.map +1 -0
- package/build-module/components/posts-app-routes/posts-list-view-quick-edit.js +55 -0
- package/build-module/components/posts-app-routes/posts-list-view-quick-edit.js.map +1 -0
- package/build-module/components/posts-app-routes/posts-list-view.js +40 -0
- package/build-module/components/posts-app-routes/posts-list-view.js.map +1 -0
- package/build-module/components/posts-app-routes/posts-view-quick-edit.js +52 -0
- package/build-module/components/posts-app-routes/posts-view-quick-edit.js.map +1 -0
- package/build-module/components/posts-app-routes/posts-view.js +33 -0
- package/build-module/components/posts-app-routes/posts-view.js.map +1 -0
- package/build-module/components/sidebar-navigation-screen-details-footer/index.js +20 -26
- package/build-module/components/sidebar-navigation-screen-details-footer/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-global-styles/index.js +4 -18
- package/build-module/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +1 -1
- package/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +3 -4
- package/build-module/components/sidebar-navigation-screen-patterns/use-template-part-areas.js.map +1 -1
- package/build-module/components/site-editor-routes/index.js +1 -2
- package/build-module/components/site-editor-routes/index.js.map +1 -1
- package/build-module/components/style-book/examples.js +24 -2
- package/build-module/components/style-book/examples.js.map +1 -1
- package/build-module/index.js +1 -10
- package/build-module/index.js.map +1 -1
- package/build-module/store/actions.js +13 -0
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/selectors.js +21 -1
- package/build-module/store/selectors.js.map +1 -1
- package/build-style/posts-rtl.css +59 -18
- package/build-style/posts.css +59 -18
- package/build-style/style-rtl.css +74 -57
- package/build-style/style.css +74 -57
- package/package.json +38 -38
- package/src/components/add-new-template/utils.js +2 -2
- package/src/components/app/index.js +0 -3
- package/src/components/block-editor/use-site-editor-settings.js +7 -21
- package/src/components/editor/index.js +22 -33
- package/src/components/editor/use-editor-title.js +17 -4
- package/src/components/editor/use-resolve-edited-entity.js +132 -0
- package/src/components/editor-canvas-container/index.js +1 -1
- package/src/components/global-styles/block-preview-panel.js +10 -10
- package/src/components/global-styles/screen-block.js +26 -8
- package/src/components/global-styles/screen-style-variations.js +14 -5
- package/src/components/global-styles/ui.js +1 -1
- package/src/components/global-styles-sidebar/index.js +16 -2
- package/src/components/page-patterns/header.js +3 -2
- package/src/components/page-patterns/use-patterns.js +9 -7
- package/src/components/page-templates/style.scss +1 -0
- package/src/components/post-edit/index.js +10 -13
- package/src/components/post-list/index.js +1 -2
- package/src/components/posts-app/index.js +3 -4
- package/src/components/posts-app-routes/home.js +36 -0
- package/src/components/posts-app-routes/index.js +36 -0
- package/src/components/posts-app-routes/posts-edit.js +31 -0
- package/src/components/posts-app-routes/posts-list-view-quick-edit.js +52 -0
- package/src/components/posts-app-routes/posts-list-view.js +40 -0
- package/src/components/posts-app-routes/posts-view-quick-edit.js +49 -0
- package/src/components/posts-app-routes/posts-view.js +35 -0
- package/src/components/sidebar-navigation-screen/style.scss +7 -2
- package/src/components/sidebar-navigation-screen-details-footer/index.js +27 -38
- package/src/components/sidebar-navigation-screen-details-footer/style.scss +0 -4
- package/src/components/sidebar-navigation-screen-global-styles/index.js +8 -17
- package/src/components/sidebar-navigation-screen-navigation-menus/style.scss +8 -0
- package/src/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +1 -1
- package/src/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +4 -4
- package/src/components/site-editor-routes/README.md +2 -2
- package/src/components/site-editor-routes/index.js +0 -2
- package/src/components/site-hub/style.scss +1 -1
- package/src/components/style-book/examples.tsx +24 -2
- package/src/index.js +1 -13
- package/src/store/actions.js +15 -0
- package/src/store/selectors.js +24 -1
- package/src/style.scss +0 -2
- package/build/components/post-fields/index.js +0 -96
- package/build/components/post-fields/index.js.map +0 -1
- package/build/components/posts-app/router.js +0 -85
- package/build/components/posts-app/router.js.map +0 -1
- package/build/components/sidebar-navigation-screen-details-panel/index.js +0 -54
- package/build/components/sidebar-navigation-screen-details-panel/index.js.map +0 -1
- package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js +0 -21
- package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js.map +0 -1
- package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js +0 -33
- package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js.map +0 -1
- package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js +0 -21
- package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js.map +0 -1
- package/build/components/site-editor-routes/styles-edit.js +0 -33
- package/build/components/site-editor-routes/styles-edit.js.map +0 -1
- package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js +0 -219
- package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +0 -1
- package/build-module/components/post-fields/index.js +0 -88
- package/build-module/components/post-fields/index.js.map +0 -1
- package/build-module/components/posts-app/router.js +0 -77
- package/build-module/components/posts-app/router.js.map +0 -1
- package/build-module/components/sidebar-navigation-screen-details-panel/index.js +0 -29
- package/build-module/components/sidebar-navigation-screen-details-panel/index.js.map +0 -1
- package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js +0 -14
- package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js.map +0 -1
- package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js +0 -25
- package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js.map +0 -1
- package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js +0 -14
- package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js.map +0 -1
- package/build-module/components/site-editor-routes/styles-edit.js +0 -25
- package/build-module/components/site-editor-routes/styles-edit.js.map +0 -1
- package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js +0 -212
- package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +0 -1
- package/src/components/post-fields/index.js +0 -107
- package/src/components/post-fields/style.scss +0 -3
- package/src/components/posts-app/router.js +0 -69
- package/src/components/sidebar-navigation-screen-details-panel/index.js +0 -40
- package/src/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js +0 -14
- package/src/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js +0 -31
- package/src/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js +0 -14
- package/src/components/sidebar-navigation-screen-details-panel/style.scss +0 -26
- package/src/components/site-editor-routes/styles-edit.js +0 -26
- package/src/components/sync-state-with-url/use-init-edited-entity-from-url.js +0 -257
- package/src/store/test/actions.js +0 -83
- package/src/store/test/reducer.js +0 -69
- package/src/store/test/selectors.js +0 -41
|
@@ -660,18 +660,6 @@
|
|
|
660
660
|
top: unset;
|
|
661
661
|
}
|
|
662
662
|
|
|
663
|
-
.dataforms-layouts-panel__field-dropdown .dataforms-combined-edit {
|
|
664
|
-
border: none;
|
|
665
|
-
padding: 0;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
.dataforms-combined-edit__field {
|
|
669
|
-
flex: 1 1 auto;
|
|
670
|
-
}
|
|
671
|
-
.dataforms-combined-edit p.components-base-control__help:has(.components-checkbox-control__help) {
|
|
672
|
-
margin-top: 4px;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
663
|
.dataviews-view-grid {
|
|
676
664
|
margin-bottom: auto;
|
|
677
665
|
grid-template-rows: max-content;
|
|
@@ -693,7 +681,9 @@
|
|
|
693
681
|
padding: 8px 0 4px;
|
|
694
682
|
}
|
|
695
683
|
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__primary-field {
|
|
696
|
-
min-height:
|
|
684
|
+
min-height: 24px;
|
|
685
|
+
display: flex;
|
|
686
|
+
align-items: center;
|
|
697
687
|
}
|
|
698
688
|
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__primary-field--clickable {
|
|
699
689
|
width: -moz-fit-content;
|
|
@@ -1120,6 +1110,22 @@ ul.dataviews-view-list {
|
|
|
1120
1110
|
.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input {
|
|
1121
1111
|
opacity: 1;
|
|
1122
1112
|
}
|
|
1113
|
+
.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child) {
|
|
1114
|
+
padding-right: 0;
|
|
1115
|
+
}
|
|
1116
|
+
.dataviews-view-table.has-compact-density td,
|
|
1117
|
+
.dataviews-view-table.has-compact-density th {
|
|
1118
|
+
padding: 4px 8px;
|
|
1119
|
+
}
|
|
1120
|
+
.dataviews-view-table.has-comfortable-density td,
|
|
1121
|
+
.dataviews-view-table.has-comfortable-density th {
|
|
1122
|
+
padding: 16px 12px;
|
|
1123
|
+
}
|
|
1124
|
+
.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,
|
|
1125
|
+
.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column, .dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,
|
|
1126
|
+
.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column {
|
|
1127
|
+
padding-left: 0;
|
|
1128
|
+
}
|
|
1123
1129
|
|
|
1124
1130
|
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
1125
1131
|
@container (max-width: 430px) {
|
|
@@ -1192,6 +1198,41 @@ ul.dataviews-view-list {
|
|
|
1192
1198
|
margin-bottom: 16px;
|
|
1193
1199
|
}
|
|
1194
1200
|
|
|
1201
|
+
.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown {
|
|
1202
|
+
z-index: 159990;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.dataforms-layouts-regular__field {
|
|
1206
|
+
width: 100%;
|
|
1207
|
+
min-height: 32px;
|
|
1208
|
+
justify-content: flex-start !important;
|
|
1209
|
+
align-items: flex-start !important;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
.dataforms-layouts-regular__field .components-base-control__label {
|
|
1213
|
+
font-size: inherit;
|
|
1214
|
+
font-weight: normal;
|
|
1215
|
+
text-transform: none;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
.dataforms-layouts-regular__field-label {
|
|
1219
|
+
width: 38%;
|
|
1220
|
+
flex-shrink: 0;
|
|
1221
|
+
min-height: 32px;
|
|
1222
|
+
display: flex;
|
|
1223
|
+
align-items: center;
|
|
1224
|
+
padding: 6px 0;
|
|
1225
|
+
line-height: 20px;
|
|
1226
|
+
hyphens: auto;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
.dataforms-layouts-regular__field-control {
|
|
1230
|
+
flex-grow: 1;
|
|
1231
|
+
min-height: 32px;
|
|
1232
|
+
display: flex;
|
|
1233
|
+
align-items: center;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1195
1236
|
.fields-controls__slug .fields-controls__slug-external-icon {
|
|
1196
1237
|
margin-right: 5ch;
|
|
1197
1238
|
}
|
|
@@ -1279,13 +1320,11 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
1279
1320
|
height: 16px;
|
|
1280
1321
|
}
|
|
1281
1322
|
|
|
1282
|
-
.dataviews-view-table__cell-content-wrapper .fields-controls__featured-image-image
|
|
1283
|
-
width: 32px;
|
|
1284
|
-
height: 32px;
|
|
1285
|
-
}
|
|
1323
|
+
.dataviews-view-table__cell-content-wrapper .fields-controls__featured-image-image,
|
|
1286
1324
|
.dataviews-view-table__cell-content-wrapper .fields-controls__featured-image-placeholder {
|
|
1287
1325
|
width: 32px;
|
|
1288
1326
|
height: 32px;
|
|
1327
|
+
display: block;
|
|
1289
1328
|
}
|
|
1290
1329
|
|
|
1291
1330
|
.edit-site-custom-template-modal__contents-wrapper {
|
|
@@ -2186,6 +2225,7 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
2186
2225
|
}
|
|
2187
2226
|
.dataviews-view-table .page-templates-description {
|
|
2188
2227
|
margin-bottom: 8px;
|
|
2228
|
+
display: block;
|
|
2189
2229
|
}
|
|
2190
2230
|
|
|
2191
2231
|
.edit-site-page-templates .dataviews-pagination {
|
|
@@ -2646,7 +2686,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2646
2686
|
contain: content;
|
|
2647
2687
|
}
|
|
2648
2688
|
|
|
2649
|
-
@keyframes
|
|
2689
|
+
@keyframes _4uxd5_slide-from-right {
|
|
2650
2690
|
from {
|
|
2651
2691
|
transform: translateX(-50px);
|
|
2652
2692
|
opacity: 0;
|
|
@@ -2656,7 +2696,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2656
2696
|
opacity: 1;
|
|
2657
2697
|
}
|
|
2658
2698
|
}
|
|
2659
|
-
@keyframes
|
|
2699
|
+
@keyframes _4uxd5_slide-from-left {
|
|
2660
2700
|
from {
|
|
2661
2701
|
transform: translateX(50px);
|
|
2662
2702
|
opacity: 0;
|
|
@@ -2712,10 +2752,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2712
2752
|
}
|
|
2713
2753
|
}
|
|
2714
2754
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
2715
|
-
animation-name:
|
|
2755
|
+
animation-name: _4uxd5_slide-from-left;
|
|
2716
2756
|
}
|
|
2717
2757
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
2718
|
-
animation-name:
|
|
2758
|
+
animation-name: _4uxd5_slide-from-right;
|
|
2719
2759
|
}
|
|
2720
2760
|
|
|
2721
2761
|
.edit-site-sidebar-button {
|
|
@@ -2781,7 +2821,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2781
2821
|
.edit-site-sidebar-navigation-screen__content {
|
|
2782
2822
|
padding: 0 16px;
|
|
2783
2823
|
}
|
|
2784
|
-
.edit-site-sidebar-navigation-screen__content .
|
|
2824
|
+
.edit-site-sidebar-navigation-screen__content .edit-site-sidebar-navigation-screen-details-footer {
|
|
2785
2825
|
margin-right: -16px;
|
|
2786
2826
|
margin-left: -16px;
|
|
2787
2827
|
}
|
|
@@ -2866,10 +2906,14 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2866
2906
|
bottom: 0;
|
|
2867
2907
|
background-color: #1e1e1e;
|
|
2868
2908
|
gap: 0;
|
|
2869
|
-
padding: 16px
|
|
2909
|
+
padding: 8px 16px;
|
|
2870
2910
|
margin: 16px 0 0;
|
|
2871
2911
|
border-top: 1px solid #2f2f2f;
|
|
2872
2912
|
}
|
|
2913
|
+
.edit-site-sidebar-navigation-screen__footer .components-item-group {
|
|
2914
|
+
margin-right: -16px;
|
|
2915
|
+
margin-left: -16px;
|
|
2916
|
+
}
|
|
2873
2917
|
|
|
2874
2918
|
/* In general style overrides are discouraged.
|
|
2875
2919
|
* This is a temporary solution to override the InputControl component's styles.
|
|
@@ -2902,10 +2946,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2902
2946
|
.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item[aria-current] {
|
|
2903
2947
|
background: none;
|
|
2904
2948
|
}
|
|
2905
|
-
.edit-site-sidebar-navigation-screen-details-footer .edit-site-sidebar-navigation-screen-details-footer__icon {
|
|
2906
|
-
margin-right: auto;
|
|
2907
|
-
fill: #949494;
|
|
2908
|
-
}
|
|
2909
2949
|
|
|
2910
2950
|
.sidebar-navigation__more-menu .components-button {
|
|
2911
2951
|
color: #e0e0e0;
|
|
@@ -2914,31 +2954,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2914
2954
|
color: #f0f0f0;
|
|
2915
2955
|
}
|
|
2916
2956
|
|
|
2917
|
-
.edit-site-sidebar-navigation-details-screen-panel {
|
|
2918
|
-
margin: 24px 0;
|
|
2919
|
-
}
|
|
2920
|
-
.edit-site-sidebar-navigation-details-screen-panel:last-of-type {
|
|
2921
|
-
margin-bottom: 0;
|
|
2922
|
-
}
|
|
2923
|
-
.edit-site-sidebar-navigation-details-screen-panel .edit-site-sidebar-navigation-details-screen-panel__heading {
|
|
2924
|
-
color: #ccc;
|
|
2925
|
-
text-transform: uppercase;
|
|
2926
|
-
font-weight: 500;
|
|
2927
|
-
font-size: 11px;
|
|
2928
|
-
padding: 0;
|
|
2929
|
-
margin-bottom: 0;
|
|
2930
|
-
}
|
|
2931
|
-
|
|
2932
|
-
.edit-site-sidebar-navigation-details-screen-panel__label.edit-site-sidebar-navigation-details-screen-panel__label {
|
|
2933
|
-
color: #949494;
|
|
2934
|
-
width: 100px;
|
|
2935
|
-
flex-shrink: 0;
|
|
2936
|
-
}
|
|
2937
|
-
|
|
2938
|
-
.edit-site-sidebar-navigation-details-screen-panel__value.edit-site-sidebar-navigation-details-screen-panel__value {
|
|
2939
|
-
color: #e0e0e0;
|
|
2940
|
-
}
|
|
2941
|
-
|
|
2942
2957
|
.edit-site-sidebar-navigation-screen-patterns__group {
|
|
2943
2958
|
margin-bottom: 24px;
|
|
2944
2959
|
}
|
|
@@ -2996,7 +3011,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2996
3011
|
justify-content: space-between;
|
|
2997
3012
|
gap: 8px;
|
|
2998
3013
|
margin-left: 12px;
|
|
2999
|
-
height:
|
|
3014
|
+
height: 60px;
|
|
3000
3015
|
}
|
|
3001
3016
|
|
|
3002
3017
|
.edit-site-site-hub__actions {
|
|
@@ -3085,6 +3100,12 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3085
3100
|
.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:hover, .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:focus, .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button[aria-current] {
|
|
3086
3101
|
color: #fff;
|
|
3087
3102
|
}
|
|
3103
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu {
|
|
3104
|
+
color: #949494;
|
|
3105
|
+
}
|
|
3106
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:hover, .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:focus {
|
|
3107
|
+
color: #fff;
|
|
3108
|
+
}
|
|
3088
3109
|
|
|
3089
3110
|
.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner {
|
|
3090
3111
|
margin-right: auto;
|
|
@@ -3308,10 +3329,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3308
3329
|
margin-right: -4px;
|
|
3309
3330
|
}
|
|
3310
3331
|
|
|
3311
|
-
.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown {
|
|
3312
|
-
z-index: 159990;
|
|
3313
|
-
}
|
|
3314
|
-
|
|
3315
3332
|
.edit-site-resizable-frame__inner {
|
|
3316
3333
|
position: relative;
|
|
3317
3334
|
}
|
package/build-style/style.css
CHANGED
|
@@ -660,18 +660,6 @@
|
|
|
660
660
|
top: unset;
|
|
661
661
|
}
|
|
662
662
|
|
|
663
|
-
.dataforms-layouts-panel__field-dropdown .dataforms-combined-edit {
|
|
664
|
-
border: none;
|
|
665
|
-
padding: 0;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
.dataforms-combined-edit__field {
|
|
669
|
-
flex: 1 1 auto;
|
|
670
|
-
}
|
|
671
|
-
.dataforms-combined-edit p.components-base-control__help:has(.components-checkbox-control__help) {
|
|
672
|
-
margin-top: 4px;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
663
|
.dataviews-view-grid {
|
|
676
664
|
margin-bottom: auto;
|
|
677
665
|
grid-template-rows: max-content;
|
|
@@ -693,7 +681,9 @@
|
|
|
693
681
|
padding: 8px 0 4px;
|
|
694
682
|
}
|
|
695
683
|
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__primary-field {
|
|
696
|
-
min-height:
|
|
684
|
+
min-height: 24px;
|
|
685
|
+
display: flex;
|
|
686
|
+
align-items: center;
|
|
697
687
|
}
|
|
698
688
|
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__primary-field--clickable {
|
|
699
689
|
width: -moz-fit-content;
|
|
@@ -1120,6 +1110,22 @@ ul.dataviews-view-list {
|
|
|
1120
1110
|
.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input {
|
|
1121
1111
|
opacity: 1;
|
|
1122
1112
|
}
|
|
1113
|
+
.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child) {
|
|
1114
|
+
padding-left: 0;
|
|
1115
|
+
}
|
|
1116
|
+
.dataviews-view-table.has-compact-density td,
|
|
1117
|
+
.dataviews-view-table.has-compact-density th {
|
|
1118
|
+
padding: 4px 8px;
|
|
1119
|
+
}
|
|
1120
|
+
.dataviews-view-table.has-comfortable-density td,
|
|
1121
|
+
.dataviews-view-table.has-comfortable-density th {
|
|
1122
|
+
padding: 16px 12px;
|
|
1123
|
+
}
|
|
1124
|
+
.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,
|
|
1125
|
+
.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column, .dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,
|
|
1126
|
+
.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column {
|
|
1127
|
+
padding-right: 0;
|
|
1128
|
+
}
|
|
1123
1129
|
|
|
1124
1130
|
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
1125
1131
|
@container (max-width: 430px) {
|
|
@@ -1192,6 +1198,41 @@ ul.dataviews-view-list {
|
|
|
1192
1198
|
margin-bottom: 16px;
|
|
1193
1199
|
}
|
|
1194
1200
|
|
|
1201
|
+
.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown {
|
|
1202
|
+
z-index: 159990;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.dataforms-layouts-regular__field {
|
|
1206
|
+
width: 100%;
|
|
1207
|
+
min-height: 32px;
|
|
1208
|
+
justify-content: flex-start !important;
|
|
1209
|
+
align-items: flex-start !important;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
.dataforms-layouts-regular__field .components-base-control__label {
|
|
1213
|
+
font-size: inherit;
|
|
1214
|
+
font-weight: normal;
|
|
1215
|
+
text-transform: none;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
.dataforms-layouts-regular__field-label {
|
|
1219
|
+
width: 38%;
|
|
1220
|
+
flex-shrink: 0;
|
|
1221
|
+
min-height: 32px;
|
|
1222
|
+
display: flex;
|
|
1223
|
+
align-items: center;
|
|
1224
|
+
padding: 6px 0;
|
|
1225
|
+
line-height: 20px;
|
|
1226
|
+
hyphens: auto;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
.dataforms-layouts-regular__field-control {
|
|
1230
|
+
flex-grow: 1;
|
|
1231
|
+
min-height: 32px;
|
|
1232
|
+
display: flex;
|
|
1233
|
+
align-items: center;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1195
1236
|
.fields-controls__slug .fields-controls__slug-external-icon {
|
|
1196
1237
|
margin-left: 5ch;
|
|
1197
1238
|
}
|
|
@@ -1279,13 +1320,11 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
1279
1320
|
height: 16px;
|
|
1280
1321
|
}
|
|
1281
1322
|
|
|
1282
|
-
.dataviews-view-table__cell-content-wrapper .fields-controls__featured-image-image
|
|
1283
|
-
width: 32px;
|
|
1284
|
-
height: 32px;
|
|
1285
|
-
}
|
|
1323
|
+
.dataviews-view-table__cell-content-wrapper .fields-controls__featured-image-image,
|
|
1286
1324
|
.dataviews-view-table__cell-content-wrapper .fields-controls__featured-image-placeholder {
|
|
1287
1325
|
width: 32px;
|
|
1288
1326
|
height: 32px;
|
|
1327
|
+
display: block;
|
|
1289
1328
|
}
|
|
1290
1329
|
|
|
1291
1330
|
.edit-site-custom-template-modal__contents-wrapper {
|
|
@@ -2187,6 +2226,7 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
2187
2226
|
}
|
|
2188
2227
|
.dataviews-view-table .page-templates-description {
|
|
2189
2228
|
margin-bottom: 8px;
|
|
2229
|
+
display: block;
|
|
2190
2230
|
}
|
|
2191
2231
|
|
|
2192
2232
|
.edit-site-page-templates .dataviews-pagination {
|
|
@@ -2647,7 +2687,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2647
2687
|
contain: content;
|
|
2648
2688
|
}
|
|
2649
2689
|
|
|
2650
|
-
@keyframes
|
|
2690
|
+
@keyframes _4uxd5_slide-from-right {
|
|
2651
2691
|
from {
|
|
2652
2692
|
transform: translateX(50px);
|
|
2653
2693
|
opacity: 0;
|
|
@@ -2657,7 +2697,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2657
2697
|
opacity: 1;
|
|
2658
2698
|
}
|
|
2659
2699
|
}
|
|
2660
|
-
@keyframes
|
|
2700
|
+
@keyframes _4uxd5_slide-from-left {
|
|
2661
2701
|
from {
|
|
2662
2702
|
transform: translateX(-50px);
|
|
2663
2703
|
opacity: 0;
|
|
@@ -2713,10 +2753,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2713
2753
|
}
|
|
2714
2754
|
}
|
|
2715
2755
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
2716
|
-
animation-name:
|
|
2756
|
+
animation-name: _4uxd5_slide-from-left;
|
|
2717
2757
|
}
|
|
2718
2758
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
2719
|
-
animation-name:
|
|
2759
|
+
animation-name: _4uxd5_slide-from-right;
|
|
2720
2760
|
}
|
|
2721
2761
|
|
|
2722
2762
|
.edit-site-sidebar-button {
|
|
@@ -2782,7 +2822,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2782
2822
|
.edit-site-sidebar-navigation-screen__content {
|
|
2783
2823
|
padding: 0 16px;
|
|
2784
2824
|
}
|
|
2785
|
-
.edit-site-sidebar-navigation-screen__content .
|
|
2825
|
+
.edit-site-sidebar-navigation-screen__content .edit-site-sidebar-navigation-screen-details-footer {
|
|
2786
2826
|
margin-left: -16px;
|
|
2787
2827
|
margin-right: -16px;
|
|
2788
2828
|
}
|
|
@@ -2867,10 +2907,14 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2867
2907
|
bottom: 0;
|
|
2868
2908
|
background-color: #1e1e1e;
|
|
2869
2909
|
gap: 0;
|
|
2870
|
-
padding: 16px
|
|
2910
|
+
padding: 8px 16px;
|
|
2871
2911
|
margin: 16px 0 0;
|
|
2872
2912
|
border-top: 1px solid #2f2f2f;
|
|
2873
2913
|
}
|
|
2914
|
+
.edit-site-sidebar-navigation-screen__footer .components-item-group {
|
|
2915
|
+
margin-left: -16px;
|
|
2916
|
+
margin-right: -16px;
|
|
2917
|
+
}
|
|
2874
2918
|
|
|
2875
2919
|
/* In general style overrides are discouraged.
|
|
2876
2920
|
* This is a temporary solution to override the InputControl component's styles.
|
|
@@ -2903,10 +2947,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2903
2947
|
.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item[aria-current] {
|
|
2904
2948
|
background: none;
|
|
2905
2949
|
}
|
|
2906
|
-
.edit-site-sidebar-navigation-screen-details-footer .edit-site-sidebar-navigation-screen-details-footer__icon {
|
|
2907
|
-
margin-left: auto;
|
|
2908
|
-
fill: #949494;
|
|
2909
|
-
}
|
|
2910
2950
|
|
|
2911
2951
|
.sidebar-navigation__more-menu .components-button {
|
|
2912
2952
|
color: #e0e0e0;
|
|
@@ -2915,31 +2955,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2915
2955
|
color: #f0f0f0;
|
|
2916
2956
|
}
|
|
2917
2957
|
|
|
2918
|
-
.edit-site-sidebar-navigation-details-screen-panel {
|
|
2919
|
-
margin: 24px 0;
|
|
2920
|
-
}
|
|
2921
|
-
.edit-site-sidebar-navigation-details-screen-panel:last-of-type {
|
|
2922
|
-
margin-bottom: 0;
|
|
2923
|
-
}
|
|
2924
|
-
.edit-site-sidebar-navigation-details-screen-panel .edit-site-sidebar-navigation-details-screen-panel__heading {
|
|
2925
|
-
color: #ccc;
|
|
2926
|
-
text-transform: uppercase;
|
|
2927
|
-
font-weight: 500;
|
|
2928
|
-
font-size: 11px;
|
|
2929
|
-
padding: 0;
|
|
2930
|
-
margin-bottom: 0;
|
|
2931
|
-
}
|
|
2932
|
-
|
|
2933
|
-
.edit-site-sidebar-navigation-details-screen-panel__label.edit-site-sidebar-navigation-details-screen-panel__label {
|
|
2934
|
-
color: #949494;
|
|
2935
|
-
width: 100px;
|
|
2936
|
-
flex-shrink: 0;
|
|
2937
|
-
}
|
|
2938
|
-
|
|
2939
|
-
.edit-site-sidebar-navigation-details-screen-panel__value.edit-site-sidebar-navigation-details-screen-panel__value {
|
|
2940
|
-
color: #e0e0e0;
|
|
2941
|
-
}
|
|
2942
|
-
|
|
2943
2958
|
.edit-site-sidebar-navigation-screen-patterns__group {
|
|
2944
2959
|
margin-bottom: 24px;
|
|
2945
2960
|
}
|
|
@@ -2997,7 +3012,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2997
3012
|
justify-content: space-between;
|
|
2998
3013
|
gap: 8px;
|
|
2999
3014
|
margin-right: 12px;
|
|
3000
|
-
height:
|
|
3015
|
+
height: 60px;
|
|
3001
3016
|
}
|
|
3002
3017
|
|
|
3003
3018
|
.edit-site-site-hub__actions {
|
|
@@ -3086,6 +3101,12 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3086
3101
|
.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:hover, .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:focus, .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button[aria-current] {
|
|
3087
3102
|
color: #fff;
|
|
3088
3103
|
}
|
|
3104
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu {
|
|
3105
|
+
color: #949494;
|
|
3106
|
+
}
|
|
3107
|
+
.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:hover, .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:focus {
|
|
3108
|
+
color: #fff;
|
|
3109
|
+
}
|
|
3089
3110
|
|
|
3090
3111
|
.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner {
|
|
3091
3112
|
margin-left: auto;
|
|
@@ -3309,10 +3330,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3309
3330
|
margin-left: -4px;
|
|
3310
3331
|
}
|
|
3311
3332
|
|
|
3312
|
-
.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown {
|
|
3313
|
-
z-index: 159990;
|
|
3314
|
-
}
|
|
3315
|
-
|
|
3316
3333
|
.edit-site-resizable-frame__inner {
|
|
3317
3334
|
position: relative;
|
|
3318
3335
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "6.12.0",
|
|
3
|
+
"version": "6.12.1-next.082ed6819.0",
|
|
4
4
|
"description": "Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -30,45 +30,45 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "7.25.7",
|
|
32
32
|
"@react-spring/web": "^9.4.5",
|
|
33
|
-
"@wordpress/a11y": "
|
|
34
|
-
"@wordpress/api-fetch": "
|
|
35
|
-
"@wordpress/blob": "
|
|
36
|
-
"@wordpress/block-editor": "
|
|
37
|
-
"@wordpress/block-library": "
|
|
38
|
-
"@wordpress/blocks": "
|
|
39
|
-
"@wordpress/commands": "
|
|
33
|
+
"@wordpress/a11y": "^4.12.1-next.082ed6819.0",
|
|
34
|
+
"@wordpress/api-fetch": "^7.12.1-next.082ed6819.0",
|
|
35
|
+
"@wordpress/blob": "^4.12.1-next.082ed6819.0",
|
|
36
|
+
"@wordpress/block-editor": "^14.7.1-next.082ed6819.0",
|
|
37
|
+
"@wordpress/block-library": "^9.12.1-next.082ed6819.0",
|
|
38
|
+
"@wordpress/blocks": "^14.1.1-next.082ed6819.0",
|
|
39
|
+
"@wordpress/commands": "^1.12.1-next.082ed6819.0",
|
|
40
40
|
"@wordpress/components": "*",
|
|
41
|
-
"@wordpress/compose": "
|
|
42
|
-
"@wordpress/core-commands": "
|
|
43
|
-
"@wordpress/core-data": "
|
|
41
|
+
"@wordpress/compose": "^7.12.1-next.082ed6819.0",
|
|
42
|
+
"@wordpress/core-commands": "^1.12.1-next.082ed6819.0",
|
|
43
|
+
"@wordpress/core-data": "^7.12.1-next.082ed6819.0",
|
|
44
44
|
"@wordpress/data": "*",
|
|
45
45
|
"@wordpress/dataviews": "*",
|
|
46
|
-
"@wordpress/date": "
|
|
47
|
-
"@wordpress/deprecated": "
|
|
48
|
-
"@wordpress/dom": "
|
|
49
|
-
"@wordpress/editor": "
|
|
50
|
-
"@wordpress/element": "
|
|
51
|
-
"@wordpress/escape-html": "
|
|
52
|
-
"@wordpress/fields": "
|
|
53
|
-
"@wordpress/hooks": "
|
|
54
|
-
"@wordpress/html-entities": "
|
|
55
|
-
"@wordpress/i18n": "
|
|
56
|
-
"@wordpress/icons": "
|
|
57
|
-
"@wordpress/keyboard-shortcuts": "
|
|
58
|
-
"@wordpress/keycodes": "
|
|
59
|
-
"@wordpress/notices": "
|
|
60
|
-
"@wordpress/patterns": "
|
|
61
|
-
"@wordpress/plugins": "
|
|
62
|
-
"@wordpress/preferences": "
|
|
63
|
-
"@wordpress/primitives": "
|
|
64
|
-
"@wordpress/private-apis": "
|
|
65
|
-
"@wordpress/reusable-blocks": "
|
|
66
|
-
"@wordpress/router": "
|
|
67
|
-
"@wordpress/style-engine": "
|
|
68
|
-
"@wordpress/url": "
|
|
69
|
-
"@wordpress/viewport": "
|
|
70
|
-
"@wordpress/widgets": "
|
|
71
|
-
"@wordpress/wordcount": "
|
|
46
|
+
"@wordpress/date": "^5.12.1-next.082ed6819.0",
|
|
47
|
+
"@wordpress/deprecated": "^4.12.1-next.082ed6819.0",
|
|
48
|
+
"@wordpress/dom": "^4.12.1-next.082ed6819.0",
|
|
49
|
+
"@wordpress/editor": "^14.12.1-next.082ed6819.0",
|
|
50
|
+
"@wordpress/element": "^6.12.1-next.082ed6819.0",
|
|
51
|
+
"@wordpress/escape-html": "^3.12.1-next.082ed6819.0",
|
|
52
|
+
"@wordpress/fields": "^0.4.1-next.082ed6819.0",
|
|
53
|
+
"@wordpress/hooks": "^4.12.1-next.082ed6819.0",
|
|
54
|
+
"@wordpress/html-entities": "^4.12.1-next.082ed6819.0",
|
|
55
|
+
"@wordpress/i18n": "^5.12.1-next.082ed6819.0",
|
|
56
|
+
"@wordpress/icons": "^10.12.1-next.082ed6819.0",
|
|
57
|
+
"@wordpress/keyboard-shortcuts": "^5.12.1-next.082ed6819.0",
|
|
58
|
+
"@wordpress/keycodes": "^4.12.1-next.082ed6819.0",
|
|
59
|
+
"@wordpress/notices": "^5.12.1-next.082ed6819.0",
|
|
60
|
+
"@wordpress/patterns": "^2.12.1-next.082ed6819.0",
|
|
61
|
+
"@wordpress/plugins": "^7.12.1-next.082ed6819.0",
|
|
62
|
+
"@wordpress/preferences": "^4.12.1-next.082ed6819.0",
|
|
63
|
+
"@wordpress/primitives": "^4.12.1-next.082ed6819.0",
|
|
64
|
+
"@wordpress/private-apis": "^1.12.1-next.082ed6819.0",
|
|
65
|
+
"@wordpress/reusable-blocks": "^5.12.1-next.082ed6819.0",
|
|
66
|
+
"@wordpress/router": "^1.12.1-next.082ed6819.0",
|
|
67
|
+
"@wordpress/style-engine": "^2.12.1-next.082ed6819.0",
|
|
68
|
+
"@wordpress/url": "^4.12.1-next.082ed6819.0",
|
|
69
|
+
"@wordpress/viewport": "^6.12.1-next.082ed6819.0",
|
|
70
|
+
"@wordpress/widgets": "^4.12.1-next.082ed6819.0",
|
|
71
|
+
"@wordpress/wordcount": "^4.12.1-next.082ed6819.0",
|
|
72
72
|
"change-case": "^4.1.2",
|
|
73
73
|
"clsx": "^2.1.1",
|
|
74
74
|
"colord": "^2.9.2",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "2bb7bad15ddb8e88210fab7d4a1ef1565466e424"
|
|
87
87
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { useSelect } from '@wordpress/data';
|
|
5
5
|
import { store as coreStore } from '@wordpress/core-data';
|
|
6
|
-
import { store as editorStore } from '@wordpress/editor';
|
|
7
6
|
import { decodeEntities } from '@wordpress/html-entities';
|
|
8
7
|
import { useMemo, useCallback } from '@wordpress/element';
|
|
9
8
|
import { __, _x, sprintf } from '@wordpress/i18n';
|
|
@@ -69,7 +68,8 @@ export const useExistingTemplates = () => {
|
|
|
69
68
|
export const useDefaultTemplateTypes = () => {
|
|
70
69
|
return useSelect(
|
|
71
70
|
( select ) =>
|
|
72
|
-
select(
|
|
71
|
+
select( coreStore ).getEntityRecord( 'root', '__unstableBase' )
|
|
72
|
+
?.default_template_types || [],
|
|
73
73
|
[]
|
|
74
74
|
);
|
|
75
75
|
};
|
|
@@ -18,7 +18,6 @@ import { privateApis as routerPrivateApis } from '@wordpress/router';
|
|
|
18
18
|
import Layout from '../layout';
|
|
19
19
|
import { unlock } from '../../lock-unlock';
|
|
20
20
|
import { useCommonCommands } from '../../hooks/commands/use-common-commands';
|
|
21
|
-
import useInitEditedEntityFromURL from '../sync-state-with-url/use-init-edited-entity-from-url';
|
|
22
21
|
import useActiveRoute from '../layout/router';
|
|
23
22
|
import useSetCommandContext from '../../hooks/commands/use-set-command-context';
|
|
24
23
|
import { useRegisterSiteEditorRoutes } from '../site-editor-routes';
|
|
@@ -27,8 +26,6 @@ const { RouterProvider } = unlock( routerPrivateApis );
|
|
|
27
26
|
const { GlobalStylesProvider } = unlock( editorPrivateApis );
|
|
28
27
|
|
|
29
28
|
function AppLayout() {
|
|
30
|
-
// This ensures the edited entity id and type are initialized properly.
|
|
31
|
-
useInitEditedEntityFromURL();
|
|
32
29
|
useCommonCommands();
|
|
33
30
|
useSetCommandContext();
|
|
34
31
|
useRegisterSiteEditorRoutes();
|
|
@@ -40,25 +40,13 @@ export function useSpecificEditorSettings() {
|
|
|
40
40
|
const { params } = useLocation();
|
|
41
41
|
const { canvas = 'view' } = params;
|
|
42
42
|
const onNavigateToEntityRecord = useNavigateToEntityRecord();
|
|
43
|
-
const { settings
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
settings: getSettings(),
|
|
51
|
-
// TODO: The `postType` check should be removed when the default rendering mode per post type is merged.
|
|
52
|
-
// @see https://github.com/WordPress/gutenberg/pull/62304/
|
|
53
|
-
shouldUseTemplateAsDefaultRenderingMode:
|
|
54
|
-
_context?.postId && _context?.postType !== 'post',
|
|
55
|
-
};
|
|
56
|
-
},
|
|
57
|
-
[]
|
|
58
|
-
);
|
|
59
|
-
const defaultRenderingMode = shouldUseTemplateAsDefaultRenderingMode
|
|
60
|
-
? 'template-locked'
|
|
61
|
-
: 'post-only';
|
|
43
|
+
const { settings } = useSelect( ( select ) => {
|
|
44
|
+
const { getSettings } = select( editSiteStore );
|
|
45
|
+
return {
|
|
46
|
+
settings: getSettings(),
|
|
47
|
+
};
|
|
48
|
+
}, [] );
|
|
49
|
+
|
|
62
50
|
const onNavigateToPreviousEntityRecord =
|
|
63
51
|
useNavigateToPreviousEntityRecord();
|
|
64
52
|
const defaultEditorSettings = useMemo( () => {
|
|
@@ -68,7 +56,6 @@ export function useSpecificEditorSettings() {
|
|
|
68
56
|
richEditingEnabled: true,
|
|
69
57
|
supportsTemplateMode: true,
|
|
70
58
|
focusMode: canvas !== 'view',
|
|
71
|
-
defaultRenderingMode,
|
|
72
59
|
onNavigateToEntityRecord,
|
|
73
60
|
onNavigateToPreviousEntityRecord,
|
|
74
61
|
isPreviewMode: canvas === 'view',
|
|
@@ -76,7 +63,6 @@ export function useSpecificEditorSettings() {
|
|
|
76
63
|
}, [
|
|
77
64
|
settings,
|
|
78
65
|
canvas,
|
|
79
|
-
defaultRenderingMode,
|
|
80
66
|
onNavigateToEntityRecord,
|
|
81
67
|
onNavigateToPreviousEntityRecord,
|
|
82
68
|
] );
|