@wordpress/edit-site 6.40.2-next.v.202602271551.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.
Files changed (53) hide show
  1. package/build/components/page-patterns/index.cjs +2 -1
  2. package/build/components/page-patterns/index.cjs.map +2 -2
  3. package/build/components/page-patterns/use-pattern-settings.cjs +14 -2
  4. package/build/components/page-patterns/use-pattern-settings.cjs.map +3 -3
  5. package/build/components/page-templates/index-legacy.cjs +1 -0
  6. package/build/components/page-templates/index-legacy.cjs.map +2 -2
  7. package/build/components/page-templates/index.cjs +1 -0
  8. package/build/components/page-templates/index.cjs.map +2 -2
  9. package/build/components/page-templates/view-utils.cjs +3 -2
  10. package/build/components/page-templates/view-utils.cjs.map +2 -2
  11. package/build/components/post-list/index.cjs +1 -0
  12. package/build/components/post-list/index.cjs.map +2 -2
  13. package/build/components/post-list/view-utils.cjs +14 -2
  14. package/build/components/post-list/view-utils.cjs.map +2 -2
  15. package/build/components/sidebar-global-styles/index.cjs +1 -0
  16. package/build/components/sidebar-global-styles/index.cjs.map +2 -2
  17. package/build/components/site-editor-routes/stylebook.cjs +14 -2
  18. package/build/components/site-editor-routes/stylebook.cjs.map +2 -2
  19. package/build/index.cjs +3 -1
  20. package/build/index.cjs.map +2 -2
  21. package/build-module/components/page-patterns/index.mjs +2 -1
  22. package/build-module/components/page-patterns/index.mjs.map +2 -2
  23. package/build-module/components/page-patterns/use-pattern-settings.mjs +14 -2
  24. package/build-module/components/page-patterns/use-pattern-settings.mjs.map +2 -2
  25. package/build-module/components/page-templates/index-legacy.mjs +1 -0
  26. package/build-module/components/page-templates/index-legacy.mjs.map +2 -2
  27. package/build-module/components/page-templates/index.mjs +1 -0
  28. package/build-module/components/page-templates/index.mjs.map +2 -2
  29. package/build-module/components/page-templates/view-utils.mjs +3 -2
  30. package/build-module/components/page-templates/view-utils.mjs.map +2 -2
  31. package/build-module/components/post-list/index.mjs +1 -0
  32. package/build-module/components/post-list/index.mjs.map +2 -2
  33. package/build-module/components/post-list/view-utils.mjs +14 -2
  34. package/build-module/components/post-list/view-utils.mjs.map +2 -2
  35. package/build-module/components/sidebar-global-styles/index.mjs +1 -0
  36. package/build-module/components/sidebar-global-styles/index.mjs.map +2 -2
  37. package/build-module/components/site-editor-routes/stylebook.mjs +14 -2
  38. package/build-module/components/site-editor-routes/stylebook.mjs.map +2 -2
  39. package/build-module/index.mjs +3 -1
  40. package/build-module/index.mjs.map +2 -2
  41. package/build-style/style-rtl.css +85 -110
  42. package/build-style/style.css +85 -110
  43. package/package.json +46 -46
  44. package/src/components/page-patterns/index.js +2 -1
  45. package/src/components/page-patterns/use-pattern-settings.js +16 -2
  46. package/src/components/page-templates/index-legacy.js +1 -0
  47. package/src/components/page-templates/index.js +1 -0
  48. package/src/components/page-templates/view-utils.js +3 -2
  49. package/src/components/post-list/index.js +1 -0
  50. package/src/components/post-list/view-utils.js +14 -2
  51. package/src/components/sidebar-global-styles/index.js +1 -0
  52. package/src/components/site-editor-routes/stylebook.js +8 -2
  53. package/src/index.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "6.40.2-next.v.202602271551.0+464abe399",
3
+ "version": "6.40.2",
4
4
  "description": "Edit Site Page module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -48,50 +48,50 @@
48
48
  ],
49
49
  "dependencies": {
50
50
  "@react-spring/web": "^9.4.5",
51
- "@wordpress/a11y": "^4.40.1-next.v.202602271551.0+464abe399",
52
- "@wordpress/admin-ui": "^1.8.1-next.v.202602271551.0+464abe399",
53
- "@wordpress/api-fetch": "^7.40.1-next.v.202602271551.0+464abe399",
54
- "@wordpress/base-styles": "^6.16.1-next.v.202602271551.0+464abe399",
55
- "@wordpress/blob": "^4.40.1-next.v.202602271551.0+464abe399",
56
- "@wordpress/block-editor": "^15.13.2-next.v.202602271551.0+464abe399",
57
- "@wordpress/block-library": "^9.40.2-next.v.202602271551.0+464abe399",
58
- "@wordpress/blocks": "^15.13.1-next.v.202602271551.0+464abe399",
59
- "@wordpress/commands": "^1.40.1-next.v.202602271551.0+464abe399",
60
- "@wordpress/components": "^32.3.1-next.v.202602271551.0+464abe399",
61
- "@wordpress/compose": "^7.40.1-next.v.202602271551.0+464abe399",
62
- "@wordpress/core-data": "^7.40.2-next.v.202602271551.0+464abe399",
63
- "@wordpress/data": "^10.40.1-next.v.202602271551.0+464abe399",
64
- "@wordpress/dataviews": "^12.1.1-next.v.202602271551.0+464abe399",
65
- "@wordpress/date": "^5.40.1-next.v.202602271551.0+464abe399",
66
- "@wordpress/deprecated": "^4.40.1-next.v.202602271551.0+464abe399",
67
- "@wordpress/dom": "^4.40.1-next.v.202602271551.0+464abe399",
68
- "@wordpress/editor": "^14.40.2-next.v.202602271551.0+464abe399",
69
- "@wordpress/element": "^6.40.1-next.v.202602271551.0+464abe399",
70
- "@wordpress/escape-html": "^3.40.1-next.v.202602271551.0+464abe399",
71
- "@wordpress/fields": "^0.32.2-next.v.202602271551.0+464abe399",
72
- "@wordpress/global-styles-engine": "^1.7.1-next.v.202602271551.0+464abe399",
73
- "@wordpress/global-styles-ui": "^1.7.2-next.v.202602271551.0+464abe399",
74
- "@wordpress/hooks": "^4.40.1-next.v.202602271551.0+464abe399",
75
- "@wordpress/html-entities": "^4.40.1-next.v.202602271551.0+464abe399",
76
- "@wordpress/i18n": "^6.13.1-next.v.202602271551.0+464abe399",
77
- "@wordpress/icons": "^11.7.1-next.v.202602271551.0+464abe399",
78
- "@wordpress/keyboard-shortcuts": "^5.40.1-next.v.202602271551.0+464abe399",
79
- "@wordpress/keycodes": "^4.40.1-next.v.202602271551.0+464abe399",
80
- "@wordpress/media-utils": "^5.40.2-next.v.202602271551.0+464abe399",
81
- "@wordpress/notices": "^5.40.1-next.v.202602271551.0+464abe399",
82
- "@wordpress/patterns": "^2.40.2-next.v.202602271551.0+464abe399",
83
- "@wordpress/plugins": "^7.40.1-next.v.202602271551.0+464abe399",
84
- "@wordpress/preferences": "^4.40.1-next.v.202602271551.0+464abe399",
85
- "@wordpress/primitives": "^4.40.1-next.v.202602271551.0+464abe399",
86
- "@wordpress/private-apis": "^1.40.1-next.v.202602271551.0+464abe399",
87
- "@wordpress/reusable-blocks": "^5.40.2-next.v.202602271551.0+464abe399",
88
- "@wordpress/router": "^1.40.1-next.v.202602271551.0+464abe399",
89
- "@wordpress/style-engine": "^2.40.1-next.v.202602271551.0+464abe399",
90
- "@wordpress/url": "^4.40.1-next.v.202602271551.0+464abe399",
91
- "@wordpress/viewport": "^6.40.1-next.v.202602271551.0+464abe399",
92
- "@wordpress/views": "^1.7.1-next.v.202602271551.0+464abe399",
93
- "@wordpress/widgets": "^4.40.2-next.v.202602271551.0+464abe399",
94
- "@wordpress/wordcount": "^4.40.1-next.v.202602271551.0+464abe399",
51
+ "@wordpress/a11y": "^4.40.1",
52
+ "@wordpress/admin-ui": "^1.8.1",
53
+ "@wordpress/api-fetch": "^7.40.1",
54
+ "@wordpress/base-styles": "^6.16.1",
55
+ "@wordpress/blob": "^4.40.1",
56
+ "@wordpress/block-editor": "^15.13.2",
57
+ "@wordpress/block-library": "^9.40.2",
58
+ "@wordpress/blocks": "^15.13.1",
59
+ "@wordpress/commands": "^1.40.1",
60
+ "@wordpress/components": "^32.2.1",
61
+ "@wordpress/compose": "^7.40.1",
62
+ "@wordpress/core-data": "^7.40.2",
63
+ "@wordpress/data": "^10.40.1",
64
+ "@wordpress/dataviews": "^12.0.1",
65
+ "@wordpress/date": "^5.40.1",
66
+ "@wordpress/deprecated": "^4.40.1",
67
+ "@wordpress/dom": "^4.40.1",
68
+ "@wordpress/editor": "^14.40.2",
69
+ "@wordpress/element": "^6.40.1",
70
+ "@wordpress/escape-html": "^3.40.1",
71
+ "@wordpress/fields": "^0.32.2",
72
+ "@wordpress/global-styles-engine": "^1.7.1",
73
+ "@wordpress/global-styles-ui": "^1.7.2",
74
+ "@wordpress/hooks": "^4.40.1",
75
+ "@wordpress/html-entities": "^4.40.1",
76
+ "@wordpress/i18n": "^6.13.1",
77
+ "@wordpress/icons": "^11.7.1",
78
+ "@wordpress/keyboard-shortcuts": "^5.40.1",
79
+ "@wordpress/keycodes": "^4.40.1",
80
+ "@wordpress/media-utils": "^5.40.2",
81
+ "@wordpress/notices": "^5.40.1",
82
+ "@wordpress/patterns": "^2.40.2",
83
+ "@wordpress/plugins": "^7.40.1",
84
+ "@wordpress/preferences": "^4.40.1",
85
+ "@wordpress/primitives": "^4.40.1",
86
+ "@wordpress/private-apis": "^1.40.1",
87
+ "@wordpress/reusable-blocks": "^5.40.2",
88
+ "@wordpress/router": "^1.40.1",
89
+ "@wordpress/style-engine": "^2.40.1",
90
+ "@wordpress/url": "^4.40.1",
91
+ "@wordpress/viewport": "^6.40.1",
92
+ "@wordpress/views": "^1.7.1",
93
+ "@wordpress/widgets": "^4.40.2",
94
+ "@wordpress/wordcount": "^4.40.1",
95
95
  "change-case": "^4.1.2",
96
96
  "clsx": "^2.1.1",
97
97
  "colord": "^2.9.2",
@@ -106,5 +106,5 @@
106
106
  "publishConfig": {
107
107
  "access": "public"
108
108
  },
109
- "gitHead": "95aa7055a5757219e2d96a91efc69f7dd1b2d4c3"
109
+ "gitHead": "adb6623c9f32490cfc73c7ac7f122578c1f10c65"
110
110
  }
@@ -202,11 +202,12 @@ export default function DataviewsPatterns() {
202
202
  <Page
203
203
  className="edit-site-page-patterns-dataviews"
204
204
  title={ title }
205
+ headingLevel={ 2 }
205
206
  subTitle={ description }
206
207
  actions={
207
208
  <PatternsActions
208
209
  categoryId={ categoryId }
209
- postType={ postType }
210
+ type={ postType }
210
211
  />
211
212
  }
212
213
  >
@@ -4,6 +4,7 @@
4
4
  import { store as coreStore } from '@wordpress/core-data';
5
5
  import { useSelect } from '@wordpress/data';
6
6
  import { useMemo } from '@wordpress/element';
7
+ import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
7
8
  import { privateApis as editorPrivateApis } from '@wordpress/editor';
8
9
  import { generateGlobalStyles } from '@wordpress/global-styles-engine';
9
10
 
@@ -15,6 +16,7 @@ import { store as editSiteStore } from '../../store';
15
16
  import { filterOutDuplicatesByName } from './utils';
16
17
 
17
18
  const { useGlobalStyles } = unlock( editorPrivateApis );
19
+ const { globalStylesDataKey } = unlock( blockEditorPrivateApis );
18
20
 
19
21
  export default function usePatternSettings() {
20
22
  /*
@@ -62,14 +64,26 @@ export default function usePatternSettings() {
62
64
  ...restStoredSettings
63
65
  } = storedSettings;
64
66
 
67
+ // Preserve non-global styles from settings.styles (e.g., editor styles from add_editor_style)
68
+ const nonGlobalStyles = ( styles ?? [] ).filter(
69
+ ( style ) => ! style.isGlobalStyles
70
+ );
71
+
65
72
  return {
66
73
  ...restStoredSettings,
67
- styles: globalStyles,
74
+ styles: [ ...nonGlobalStyles, ...globalStyles ],
68
75
  __experimentalFeatures: globalSettings,
76
+ [ globalStylesDataKey ]: mergedConfig.styles ?? {},
69
77
  __experimentalBlockPatterns: blockPatterns,
70
78
  isPreviewMode: true,
71
79
  };
72
- }, [ storedSettings, blockPatterns, globalStyles, globalSettings ] );
80
+ }, [
81
+ storedSettings,
82
+ blockPatterns,
83
+ globalStyles,
84
+ globalSettings,
85
+ mergedConfig,
86
+ ] );
73
87
 
74
88
  return settings;
75
89
  }
@@ -133,6 +133,7 @@ export default function PageTemplates() {
133
133
  <Page
134
134
  className="edit-site-page-templates"
135
135
  title={ __( 'Templates' ) }
136
+ headingLevel={ 2 }
136
137
  actions={ <AddNewTemplate /> }
137
138
  >
138
139
  <DataViews
@@ -325,6 +325,7 @@ export default function PageTemplates() {
325
325
  <Page
326
326
  className="edit-site-page-templates"
327
327
  title={ __( 'Templates' ) }
328
+ headingLevel={ 2 }
328
329
  actions={ <AddNewTemplate /> }
329
330
  >
330
331
  <DataViews
@@ -41,8 +41,9 @@ export function getActiveViewOverridesForTab( activeView ) {
41
41
  filters: [
42
42
  {
43
43
  field: 'author',
44
- operator: 'isAny',
45
- value: [ activeView ],
44
+ operator: 'is',
45
+ value: activeView,
46
+ isLocked: true,
46
47
  },
47
48
  ],
48
49
  };
@@ -274,6 +274,7 @@ export default function PostList( { postType } ) {
274
274
  return (
275
275
  <Page
276
276
  title={ labels?.name }
277
+ headingLevel={ 2 }
277
278
  actions={
278
279
  <>
279
280
  { labels?.add_new_item && canCreateRecord && (
@@ -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',
@@ -97,6 +97,7 @@ export default function SidebarGlobalStyles() {
97
97
  }
98
98
  className="edit-site-styles"
99
99
  title={ __( 'Styles' ) }
100
+ headingLevel={ 2 }
100
101
  >
101
102
  <GlobalStylesUIWrapper
102
103
  path={ section }
@@ -33,12 +33,18 @@ export const stylebookRoute = {
33
33
  },
34
34
  preview( { siteData } ) {
35
35
  return isClassicThemeWithStyleBookSupport( siteData ) ? (
36
- <StyleBookPreview isStatic />
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 isStatic />
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 ) {