@wordpress/edit-site 6.40.2-next.v.202602241322.0 → 6.40.2
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/page-patterns/index.cjs +2 -1
- package/build/components/page-patterns/index.cjs.map +2 -2
- package/build/components/page-patterns/use-pattern-settings.cjs +14 -2
- package/build/components/page-patterns/use-pattern-settings.cjs.map +3 -3
- package/build/components/page-templates/index-legacy.cjs +1 -0
- package/build/components/page-templates/index-legacy.cjs.map +2 -2
- package/build/components/page-templates/index.cjs +1 -0
- package/build/components/page-templates/index.cjs.map +2 -2
- package/build/components/page-templates/view-utils.cjs +3 -2
- package/build/components/page-templates/view-utils.cjs.map +2 -2
- package/build/components/post-list/index.cjs +4 -2
- package/build/components/post-list/index.cjs.map +2 -2
- package/build/components/post-list/view-utils.cjs +14 -2
- package/build/components/post-list/view-utils.cjs.map +2 -2
- package/build/components/sidebar-global-styles/index.cjs +1 -0
- package/build/components/sidebar-global-styles/index.cjs.map +2 -2
- package/build/components/site-editor-routes/stylebook.cjs +14 -2
- package/build/components/site-editor-routes/stylebook.cjs.map +2 -2
- package/build/index.cjs +3 -1
- package/build/index.cjs.map +2 -2
- package/build-module/components/page-patterns/index.mjs +2 -1
- package/build-module/components/page-patterns/index.mjs.map +2 -2
- package/build-module/components/page-patterns/use-pattern-settings.mjs +14 -2
- package/build-module/components/page-patterns/use-pattern-settings.mjs.map +2 -2
- package/build-module/components/page-templates/index-legacy.mjs +1 -0
- package/build-module/components/page-templates/index-legacy.mjs.map +2 -2
- package/build-module/components/page-templates/index.mjs +1 -0
- package/build-module/components/page-templates/index.mjs.map +2 -2
- package/build-module/components/page-templates/view-utils.mjs +3 -2
- package/build-module/components/page-templates/view-utils.mjs.map +2 -2
- package/build-module/components/post-list/index.mjs +4 -2
- package/build-module/components/post-list/index.mjs.map +2 -2
- package/build-module/components/post-list/view-utils.mjs +14 -2
- package/build-module/components/post-list/view-utils.mjs.map +2 -2
- package/build-module/components/sidebar-global-styles/index.mjs +1 -0
- package/build-module/components/sidebar-global-styles/index.mjs.map +2 -2
- package/build-module/components/site-editor-routes/stylebook.mjs +14 -2
- package/build-module/components/site-editor-routes/stylebook.mjs.map +2 -2
- package/build-module/index.mjs +3 -1
- package/build-module/index.mjs.map +2 -2
- package/build-style/style-rtl.css +177 -121
- package/build-style/style.css +177 -121
- package/package.json +46 -46
- package/src/components/page-patterns/index.js +2 -1
- package/src/components/page-patterns/use-pattern-settings.js +16 -2
- package/src/components/page-templates/index-legacy.js +1 -0
- package/src/components/page-templates/index.js +1 -0
- package/src/components/page-templates/view-utils.js +3 -2
- package/src/components/post-list/index.js +5 -1
- package/src/components/post-list/view-utils.js +14 -2
- package/src/components/sidebar-global-styles/index.js +1 -0
- package/src/components/site-editor-routes/stylebook.js +8 -2
- package/src/index.js +2 -0
|
@@ -170,6 +170,7 @@ export default function PostList( { postType } ) {
|
|
|
170
170
|
isResolving: isLoadingData,
|
|
171
171
|
totalItems,
|
|
172
172
|
totalPages,
|
|
173
|
+
hasResolved,
|
|
173
174
|
} = useEntityRecordsWithPermissions( 'postType', postType, queryArgs );
|
|
174
175
|
|
|
175
176
|
const postIds = useMemo(
|
|
@@ -273,6 +274,7 @@ export default function PostList( { postType } ) {
|
|
|
273
274
|
return (
|
|
274
275
|
<Page
|
|
275
276
|
title={ labels?.name }
|
|
277
|
+
headingLevel={ 2 }
|
|
276
278
|
actions={
|
|
277
279
|
<>
|
|
278
280
|
{ labels?.add_new_item && canCreateRecord && (
|
|
@@ -302,7 +304,9 @@ export default function PostList( { postType } ) {
|
|
|
302
304
|
fields={ fields }
|
|
303
305
|
actions={ actions }
|
|
304
306
|
data={ data || EMPTY_ARRAY }
|
|
305
|
-
isLoading={
|
|
307
|
+
isLoading={
|
|
308
|
+
isLoadingData || isLoadingNotesCount || ! hasResolved
|
|
309
|
+
}
|
|
306
310
|
view={ view }
|
|
307
311
|
onChangeView={ onChangeView }
|
|
308
312
|
selection={ selection }
|
|
@@ -19,7 +19,15 @@ import {
|
|
|
19
19
|
import { OPERATOR_IS_ANY } from '../../utils/constants';
|
|
20
20
|
|
|
21
21
|
export const defaultLayouts = {
|
|
22
|
-
table: {
|
|
22
|
+
table: {
|
|
23
|
+
layout: {
|
|
24
|
+
styles: {
|
|
25
|
+
author: {
|
|
26
|
+
align: 'start',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
23
31
|
grid: {},
|
|
24
32
|
list: {},
|
|
25
33
|
};
|
|
@@ -158,11 +166,15 @@ const SLUG_TO_STATUS = {
|
|
|
158
166
|
};
|
|
159
167
|
|
|
160
168
|
export function getActiveViewOverridesForTab( activeView ) {
|
|
169
|
+
const base = {
|
|
170
|
+
...defaultLayouts.table,
|
|
171
|
+
};
|
|
161
172
|
const status = SLUG_TO_STATUS[ activeView ];
|
|
162
173
|
if ( ! status ) {
|
|
163
|
-
return
|
|
174
|
+
return base;
|
|
164
175
|
}
|
|
165
176
|
return {
|
|
177
|
+
...base,
|
|
166
178
|
filters: [
|
|
167
179
|
{
|
|
168
180
|
field: 'status',
|
|
@@ -33,12 +33,18 @@ export const stylebookRoute = {
|
|
|
33
33
|
},
|
|
34
34
|
preview( { siteData } ) {
|
|
35
35
|
return isClassicThemeWithStyleBookSupport( siteData ) ? (
|
|
36
|
-
<StyleBookPreview
|
|
36
|
+
<StyleBookPreview
|
|
37
|
+
isStatic
|
|
38
|
+
settings={ siteData.editorSettings }
|
|
39
|
+
/>
|
|
37
40
|
) : undefined;
|
|
38
41
|
},
|
|
39
42
|
mobile( { siteData } ) {
|
|
40
43
|
return isClassicThemeWithStyleBookSupport( siteData ) ? (
|
|
41
|
-
<StyleBookPreview
|
|
44
|
+
<StyleBookPreview
|
|
45
|
+
isStatic
|
|
46
|
+
settings={ siteData.editorSettings }
|
|
47
|
+
/>
|
|
42
48
|
) : undefined;
|
|
43
49
|
},
|
|
44
50
|
},
|
package/src/index.js
CHANGED
|
@@ -73,6 +73,8 @@ export function initializeEditor( id, settings ) {
|
|
|
73
73
|
showBlockBreadcrumbs: true,
|
|
74
74
|
showListViewByDefault: false,
|
|
75
75
|
enableChoosePatternModal: true,
|
|
76
|
+
showCollaborationCursor: false,
|
|
77
|
+
showCollaborationNotifications: true,
|
|
76
78
|
} );
|
|
77
79
|
|
|
78
80
|
if ( window.__clientSideMediaProcessing ) {
|