@wordpress/editor 14.15.1 → 14.17.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 +4 -0
- package/README.md +20 -20
- package/build/bindings/pattern-overrides.js +1 -1
- package/build/bindings/pattern-overrides.js.map +1 -1
- package/build/components/collab-sidebar/index.js +1 -4
- package/build/components/collab-sidebar/index.js.map +1 -1
- package/build/components/document-outline/check.js +3 -3
- package/build/components/document-outline/check.js.map +1 -1
- package/build/components/document-outline/index.js +2 -2
- package/build/components/document-outline/index.js.map +1 -1
- package/build/components/header/index.js +14 -8
- package/build/components/header/index.js.map +1 -1
- package/build/components/page-attributes/check.js +3 -3
- package/build/components/page-attributes/check.js.map +1 -1
- package/build/components/post-excerpt/index.js +1 -1
- package/build/components/post-excerpt/index.js.map +1 -1
- package/build/components/post-pending-status/check.js +3 -3
- package/build/components/post-pending-status/check.js.map +1 -1
- package/build/components/post-preview-button/index.js +7 -1
- package/build/components/post-preview-button/index.js.map +1 -1
- package/build/components/post-publish-button/index.js +2 -2
- package/build/components/post-publish-button/index.js.map +1 -1
- package/build/components/post-publish-button/post-publish-button-or-toggle.js +1 -1
- package/build/components/post-publish-button/post-publish-button-or-toggle.js.map +1 -1
- package/build/components/post-schedule/check.js +3 -3
- package/build/components/post-schedule/check.js.map +1 -1
- package/build/components/post-schedule/index.js +1 -1
- package/build/components/post-schedule/index.js.map +1 -1
- package/build/components/post-sticky/check.js +3 -3
- package/build/components/post-sticky/check.js.map +1 -1
- package/build/components/post-taxonomies/check.js +1 -1
- package/build/components/post-taxonomies/check.js.map +1 -1
- package/build/components/post-template/swap-template-button.js +1 -1
- package/build/components/post-template/swap-template-button.js.map +1 -1
- package/build/components/post-trash/check.js +3 -3
- package/build/components/post-trash/check.js.map +1 -1
- package/build/components/post-type-support-check/index.js +6 -6
- package/build/components/post-type-support-check/index.js.map +1 -1
- package/build/components/post-url/check.js +3 -3
- package/build/components/post-url/check.js.map +1 -1
- package/build/components/preferences-modal/index.js +1 -1
- package/build/components/preferences-modal/index.js.map +1 -1
- package/build/components/provider/index.js +25 -17
- package/build/components/provider/index.js.map +1 -1
- package/build/components/sidebar/post-summary.js +1 -1
- package/build/components/sidebar/post-summary.js.map +1 -1
- package/build/components/start-page-options/index.js +15 -6
- package/build/components/start-page-options/index.js.map +1 -1
- package/build/components/theme-support-check/index.js +4 -4
- package/build/components/theme-support-check/index.js.map +1 -1
- package/build/components/visual-editor/edit-template-blocks-notification.js +1 -1
- package/build/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
- package/build/components/visual-editor/index.js +2 -2
- package/build/components/visual-editor/index.js.map +1 -1
- package/build/dataviews/fields/content-preview/content-preview-view.js +101 -0
- package/build/dataviews/fields/content-preview/content-preview-view.js.map +1 -0
- package/build/dataviews/fields/content-preview/index.js +26 -0
- package/build/dataviews/fields/content-preview/index.js.map +1 -0
- package/build/dataviews/store/private-actions.js +3 -1
- package/build/dataviews/store/private-actions.js.map +1 -1
- package/build/store/private-actions.js +1 -1
- package/build/store/private-actions.js.map +1 -1
- package/build/store/private-selectors.js +7 -1
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/selectors.js +4 -4
- package/build/store/selectors.js.map +1 -1
- package/build-module/bindings/pattern-overrides.js +1 -1
- package/build-module/bindings/pattern-overrides.js.map +1 -1
- package/build-module/components/collab-sidebar/index.js +1 -4
- package/build-module/components/collab-sidebar/index.js.map +1 -1
- package/build-module/components/document-outline/check.js +3 -3
- package/build-module/components/document-outline/check.js.map +1 -1
- package/build-module/components/document-outline/index.js +2 -2
- package/build-module/components/document-outline/index.js.map +1 -1
- package/build-module/components/header/index.js +14 -8
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/page-attributes/check.js +3 -3
- package/build-module/components/page-attributes/check.js.map +1 -1
- package/build-module/components/post-excerpt/index.js +1 -1
- package/build-module/components/post-excerpt/index.js.map +1 -1
- package/build-module/components/post-pending-status/check.js +3 -3
- package/build-module/components/post-pending-status/check.js.map +1 -1
- package/build-module/components/post-preview-button/index.js +7 -1
- package/build-module/components/post-preview-button/index.js.map +1 -1
- package/build-module/components/post-publish-button/index.js +2 -2
- package/build-module/components/post-publish-button/index.js.map +1 -1
- package/build-module/components/post-publish-button/post-publish-button-or-toggle.js +1 -1
- package/build-module/components/post-publish-button/post-publish-button-or-toggle.js.map +1 -1
- package/build-module/components/post-schedule/check.js +3 -3
- package/build-module/components/post-schedule/check.js.map +1 -1
- package/build-module/components/post-schedule/index.js +1 -1
- package/build-module/components/post-schedule/index.js.map +1 -1
- package/build-module/components/post-sticky/check.js +3 -3
- package/build-module/components/post-sticky/check.js.map +1 -1
- package/build-module/components/post-taxonomies/check.js +1 -1
- package/build-module/components/post-taxonomies/check.js.map +1 -1
- package/build-module/components/post-template/swap-template-button.js +1 -1
- package/build-module/components/post-template/swap-template-button.js.map +1 -1
- package/build-module/components/post-trash/check.js +3 -3
- package/build-module/components/post-trash/check.js.map +1 -1
- package/build-module/components/post-type-support-check/index.js +6 -6
- package/build-module/components/post-type-support-check/index.js.map +1 -1
- package/build-module/components/post-url/check.js +3 -3
- package/build-module/components/post-url/check.js.map +1 -1
- package/build-module/components/preferences-modal/index.js +1 -1
- package/build-module/components/preferences-modal/index.js.map +1 -1
- package/build-module/components/provider/index.js +25 -17
- package/build-module/components/provider/index.js.map +1 -1
- package/build-module/components/sidebar/post-summary.js +1 -1
- package/build-module/components/sidebar/post-summary.js.map +1 -1
- package/build-module/components/start-page-options/index.js +15 -6
- package/build-module/components/start-page-options/index.js.map +1 -1
- package/build-module/components/theme-support-check/index.js +4 -4
- package/build-module/components/theme-support-check/index.js.map +1 -1
- package/build-module/components/visual-editor/edit-template-blocks-notification.js +1 -1
- package/build-module/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
- package/build-module/components/visual-editor/index.js +2 -2
- package/build-module/components/visual-editor/index.js.map +1 -1
- package/build-module/dataviews/fields/content-preview/content-preview-view.js +95 -0
- package/build-module/dataviews/fields/content-preview/content-preview-view.js.map +1 -0
- package/build-module/dataviews/fields/content-preview/index.js +19 -0
- package/build-module/dataviews/fields/content-preview/index.js.map +1 -0
- package/build-module/dataviews/store/private-actions.js +2 -1
- package/build-module/dataviews/store/private-actions.js.map +1 -1
- package/build-module/store/private-actions.js +1 -1
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/private-selectors.js +7 -1
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/selectors.js +4 -4
- package/build-module/store/selectors.js.map +1 -1
- package/build-style/style-rtl.css +35 -31
- package/build-style/style.css +35 -31
- package/build-types/components/autocompleters/user.d.ts +5 -1
- package/build-types/components/collab-sidebar/index.d.ts.map +1 -1
- package/build-types/components/document-outline/check.d.ts +5 -5
- package/build-types/components/document-outline/check.d.ts.map +1 -1
- package/build-types/components/header/index.d.ts.map +1 -1
- package/build-types/components/page-attributes/check.d.ts +5 -5
- package/build-types/components/page-attributes/check.d.ts.map +1 -1
- package/build-types/components/post-author/hook.d.ts +1 -1
- package/build-types/components/post-pending-status/check.d.ts +5 -5
- package/build-types/components/post-pending-status/check.d.ts.map +1 -1
- package/build-types/components/post-preview-button/index.d.ts.map +1 -1
- package/build-types/components/post-schedule/check.d.ts +5 -5
- package/build-types/components/post-schedule/check.d.ts.map +1 -1
- package/build-types/components/post-sticky/check.d.ts +5 -5
- package/build-types/components/post-sticky/check.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/check.d.ts +2 -2
- package/build-types/components/post-taxonomies/check.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/index.d.ts +1 -1
- package/build-types/components/post-taxonomies/index.d.ts.map +1 -1
- package/build-types/components/post-template/hooks.d.ts +1 -1
- package/build-types/components/post-template/hooks.d.ts.map +1 -1
- package/build-types/components/post-trash/check.d.ts +5 -5
- package/build-types/components/post-trash/check.d.ts.map +1 -1
- package/build-types/components/post-type-support-check/index.d.ts +8 -8
- package/build-types/components/post-type-support-check/index.d.ts.map +1 -1
- package/build-types/components/post-url/check.d.ts +5 -5
- package/build-types/components/post-url/check.d.ts.map +1 -1
- package/build-types/components/provider/index.d.ts +9 -9
- package/build-types/components/provider/index.d.ts.map +1 -1
- package/build-types/components/start-page-options/index.d.ts.map +1 -1
- package/build-types/components/theme-support-check/index.d.ts +6 -6
- package/build-types/components/theme-support-check/index.d.ts.map +1 -1
- package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts +1 -1
- package/build-types/dataviews/fields/content-preview/content-preview-view.d.ts +5 -0
- package/build-types/dataviews/fields/content-preview/content-preview-view.d.ts.map +1 -0
- package/build-types/dataviews/fields/content-preview/index.d.ts +8 -0
- package/build-types/dataviews/fields/content-preview/index.d.ts.map +1 -0
- package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
- package/build-types/store/private-selectors.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts +5 -5
- package/build-types/store/selectors.d.ts.map +1 -1
- package/package.json +37 -37
- package/src/bindings/pattern-overrides.js +1 -1
- package/src/components/autocompleters/style.scss +1 -1
- package/src/components/collab-sidebar/index.js +1 -4
- package/src/components/document-bar/style.scss +4 -2
- package/src/components/document-outline/check.js +3 -3
- package/src/components/document-outline/index.js +2 -2
- package/src/components/document-tools/style.scss +3 -2
- package/src/components/header/index.js +26 -23
- package/src/components/page-attributes/check.js +3 -3
- package/src/components/post-excerpt/index.js +1 -1
- package/src/components/post-featured-image/style.scss +4 -2
- package/src/components/post-pending-status/check.js +3 -3
- package/src/components/post-preview-button/index.js +5 -1
- package/src/components/post-publish-button/index.js +2 -2
- package/src/components/post-publish-button/post-publish-button-or-toggle.js +1 -1
- package/src/components/post-publish-panel/style.scss +5 -3
- package/src/components/post-schedule/check.js +3 -3
- package/src/components/post-schedule/index.js +1 -1
- package/src/components/post-sticky/check.js +3 -3
- package/src/components/post-taxonomies/check.js +1 -1
- package/src/components/post-template/swap-template-button.js +1 -1
- package/src/components/post-text-editor/style.scss +4 -2
- package/src/components/post-trash/check.js +3 -3
- package/src/components/post-type-support-check/index.js +6 -6
- package/src/components/post-url/check.js +3 -3
- package/src/components/preferences-modal/index.js +1 -1
- package/src/components/provider/index.js +32 -20
- package/src/components/sidebar/post-summary.js +1 -1
- package/src/components/start-page-options/index.js +20 -12
- package/src/components/theme-support-check/index.js +4 -4
- package/src/components/visual-editor/edit-template-blocks-notification.js +1 -1
- package/src/components/visual-editor/index.js +2 -2
- package/src/dataviews/fields/content-preview/content-preview-view.tsx +108 -0
- package/src/dataviews/fields/content-preview/index.tsx +21 -0
- package/src/dataviews/fields/content-preview/style.scss +21 -0
- package/src/dataviews/store/private-actions.ts +4 -0
- package/src/store/private-actions.js +1 -1
- package/src/store/private-selectors.js +15 -8
- package/src/store/selectors.js +4 -4
- package/src/style.scss +1 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/selectors.js"],"names":[],"mappings":"AAgEA;;;;;;;GAOG;AACH,uCAJW,MAAM,GAEL,OAAO,CAIlB;AAED;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,OAAO,CAKlB;AA+CD;;;;;;;GAOG;AACH,sCAJW,MAAM,GAEL,OAAO,CAIlB;AAgCD;;;;;;;;;;;GAWG;AACH,0CATW,MAAM,GAOL,MAAM,CAIjB;AAED;;;;;;;GAOG;AACH,wCAJW,MAAM,GAEJ,MAAM,OAAA,CAIlB;AAED;;;;;;GAMG;AACH,4CAJW,MAAM,GAEJ,MAAM,OAAA,CAIlB;AAED;;;;;;GAMG;AACH,oDAJW,MAAM,GAEL,MAAM,CAMjB;AAED;;;;;;;GAOG;AACH,oDAJW,MAAM,GAEJ,MAAM,OAAA,CAOlB;AAsBD;;;;;;;GAOG;AACH,+CALW,MAAM,iBACN,MAAM,GAEL,GAAC,CAkBZ;AA8BD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,8CArBW,MAAM,iBACN,MAAM,GAkBL,GAAC,CAsBZ;AA6CD;;;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;GAEG;AACH;;;;EAEE;AAEF;;GAEG;AACH;;;;EAEE;AAEF;;GAEG;AACH;;;;EAEE;AAEF;;GAEG;AACH;;;;EAA2E;AAE3E;;GAEG;AACH;;;;EAAmE;AAEnE;;GAEG;AACH;;;;EAA2E;AAE3E;;GAEG;AACH;;;;EACgD;AAEhD;;GAEG;AACH;;;;EAA6E;AAE7E;;GAEG;AACH;;;;EAA6E;AAE7E;;GAEG;AACH;;;;EAEE;AAEF;;;;EAaE;AAEF;;;;;;GAMG;AACH;;;;EAoBE;AAEF;;;;;;;GAOG;AACH;;;;EAwBE;AAEF;;;;;;;GAOG;AACH;;;;EAyBE;AAEF;;;;;;GAMG;AACH;;;;EAQE;;;;;;;;cA3mBY,MAAM;;;;kBACN,MAAM;;;;;YACN,MAAM"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/editor",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.17.0",
|
|
4
4
|
"description": "Enhanced block editor for WordPress posts.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -34,41 +34,41 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/runtime": "7.25.7",
|
|
37
|
-
"@wordpress/a11y": "^4.
|
|
38
|
-
"@wordpress/api-fetch": "^7.
|
|
39
|
-
"@wordpress/blob": "^4.
|
|
40
|
-
"@wordpress/block-editor": "^14.
|
|
41
|
-
"@wordpress/blocks": "^14.
|
|
42
|
-
"@wordpress/commands": "^1.
|
|
43
|
-
"@wordpress/components": "^29.
|
|
44
|
-
"@wordpress/compose": "^7.
|
|
45
|
-
"@wordpress/core-data": "^7.
|
|
46
|
-
"@wordpress/data": "^10.
|
|
47
|
-
"@wordpress/dataviews": "^4.
|
|
48
|
-
"@wordpress/date": "^5.
|
|
49
|
-
"@wordpress/deprecated": "^4.
|
|
50
|
-
"@wordpress/dom": "^4.
|
|
51
|
-
"@wordpress/element": "^6.
|
|
52
|
-
"@wordpress/fields": "^0.
|
|
53
|
-
"@wordpress/hooks": "^4.
|
|
54
|
-
"@wordpress/html-entities": "^4.
|
|
55
|
-
"@wordpress/i18n": "^5.
|
|
56
|
-
"@wordpress/icons": "^10.
|
|
57
|
-
"@wordpress/interface": "^9.0
|
|
58
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
59
|
-
"@wordpress/keycodes": "^4.
|
|
60
|
-
"@wordpress/media-utils": "^5.
|
|
61
|
-
"@wordpress/notices": "^5.
|
|
62
|
-
"@wordpress/patterns": "^2.
|
|
63
|
-
"@wordpress/plugins": "^7.
|
|
64
|
-
"@wordpress/preferences": "^4.
|
|
65
|
-
"@wordpress/private-apis": "^1.
|
|
66
|
-
"@wordpress/reusable-blocks": "^5.
|
|
67
|
-
"@wordpress/rich-text": "^7.
|
|
68
|
-
"@wordpress/server-side-render": "^5.
|
|
69
|
-
"@wordpress/url": "^4.
|
|
70
|
-
"@wordpress/warning": "^3.
|
|
71
|
-
"@wordpress/wordcount": "^4.
|
|
37
|
+
"@wordpress/a11y": "^4.17.0",
|
|
38
|
+
"@wordpress/api-fetch": "^7.17.0",
|
|
39
|
+
"@wordpress/blob": "^4.17.0",
|
|
40
|
+
"@wordpress/block-editor": "^14.12.0",
|
|
41
|
+
"@wordpress/blocks": "^14.6.0",
|
|
42
|
+
"@wordpress/commands": "^1.17.0",
|
|
43
|
+
"@wordpress/components": "^29.3.0",
|
|
44
|
+
"@wordpress/compose": "^7.17.0",
|
|
45
|
+
"@wordpress/core-data": "^7.17.0",
|
|
46
|
+
"@wordpress/data": "^10.17.0",
|
|
47
|
+
"@wordpress/dataviews": "^4.13.0",
|
|
48
|
+
"@wordpress/date": "^5.17.0",
|
|
49
|
+
"@wordpress/deprecated": "^4.17.0",
|
|
50
|
+
"@wordpress/dom": "^4.17.0",
|
|
51
|
+
"@wordpress/element": "^6.17.0",
|
|
52
|
+
"@wordpress/fields": "^0.9.0",
|
|
53
|
+
"@wordpress/hooks": "^4.17.0",
|
|
54
|
+
"@wordpress/html-entities": "^4.17.0",
|
|
55
|
+
"@wordpress/i18n": "^5.17.0",
|
|
56
|
+
"@wordpress/icons": "^10.17.0",
|
|
57
|
+
"@wordpress/interface": "^9.2.0",
|
|
58
|
+
"@wordpress/keyboard-shortcuts": "^5.17.0",
|
|
59
|
+
"@wordpress/keycodes": "^4.17.0",
|
|
60
|
+
"@wordpress/media-utils": "^5.17.0",
|
|
61
|
+
"@wordpress/notices": "^5.17.0",
|
|
62
|
+
"@wordpress/patterns": "^2.17.0",
|
|
63
|
+
"@wordpress/plugins": "^7.17.0",
|
|
64
|
+
"@wordpress/preferences": "^4.17.0",
|
|
65
|
+
"@wordpress/private-apis": "^1.17.0",
|
|
66
|
+
"@wordpress/reusable-blocks": "^5.17.0",
|
|
67
|
+
"@wordpress/rich-text": "^7.17.0",
|
|
68
|
+
"@wordpress/server-side-render": "^5.17.0",
|
|
69
|
+
"@wordpress/url": "^4.17.0",
|
|
70
|
+
"@wordpress/warning": "^3.17.0",
|
|
71
|
+
"@wordpress/wordcount": "^4.17.0",
|
|
72
72
|
"change-case": "^4.1.2",
|
|
73
73
|
"client-zip": "^2.4.5",
|
|
74
74
|
"clsx": "^2.1.1",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"access": "public"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "68a831c3178197fe87db284d4b94e5743bfb6b6c"
|
|
92
92
|
}
|
|
@@ -19,7 +19,7 @@ export default {
|
|
|
19
19
|
currentBlockAttributes?.metadata?.name
|
|
20
20
|
]?.[ attributeName ];
|
|
21
21
|
|
|
22
|
-
// If it has not been
|
|
22
|
+
// If it has not been overridden, return the original value.
|
|
23
23
|
// Check undefined because empty string is a valid value.
|
|
24
24
|
if ( overridableValue === undefined ) {
|
|
25
25
|
overridesValues[ attributeName ] =
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
flex-grow: 0;
|
|
12
12
|
flex-shrink: 0;
|
|
13
13
|
max-width: none; // we must override the gutenberg default of 100%
|
|
14
|
-
width: 24px; // avoid jarring resize by
|
|
14
|
+
width: 24px; // avoid jarring resize by setting the size upfront
|
|
15
15
|
height: 24px;
|
|
16
16
|
}
|
|
17
17
|
.editor-autocompleters__user-name {
|
|
@@ -29,8 +29,6 @@ import AddCommentToolbarButton from './comment-button-toolbar';
|
|
|
29
29
|
import { useGlobalStylesContext } from '../global-styles-provider';
|
|
30
30
|
import { getCommentIdsFromBlocks } from './utils';
|
|
31
31
|
|
|
32
|
-
const isBlockCommentExperimentEnabled =
|
|
33
|
-
window?.__experimentalEnableBlockComment;
|
|
34
32
|
const modifyBlockCommentAttributes = ( settings ) => {
|
|
35
33
|
if ( ! settings.attributes.blockCommentId ) {
|
|
36
34
|
settings.attributes = {
|
|
@@ -329,8 +327,7 @@ export default function CollabSidebar() {
|
|
|
329
327
|
} );
|
|
330
328
|
}
|
|
331
329
|
|
|
332
|
-
|
|
333
|
-
if ( ! isBlockCommentExperimentEnabled || postStatus === 'publish' ) {
|
|
330
|
+
if ( postStatus === 'publish' ) {
|
|
334
331
|
return null; // or maybe return some message indicating no threads are available.
|
|
335
332
|
}
|
|
336
333
|
|
|
@@ -18,8 +18,10 @@
|
|
|
18
18
|
|
|
19
19
|
.components-button {
|
|
20
20
|
border-radius: $grid-unit-05;
|
|
21
|
-
|
|
22
|
-
@
|
|
21
|
+
|
|
22
|
+
@media not (prefers-reduced-motion) {
|
|
23
|
+
transition: all 0.1s ease-out;
|
|
24
|
+
}
|
|
23
25
|
|
|
24
26
|
&:hover {
|
|
25
27
|
background: $gray-200;
|
|
@@ -7,10 +7,10 @@ import { store as blockEditorStore } from '@wordpress/block-editor';
|
|
|
7
7
|
/**
|
|
8
8
|
* Component check if there are any headings (core/heading blocks) present in the document.
|
|
9
9
|
*
|
|
10
|
-
* @param {Object}
|
|
11
|
-
* @param {React.
|
|
10
|
+
* @param {Object} props Props.
|
|
11
|
+
* @param {React.ReactNode} props.children Children to be rendered.
|
|
12
12
|
*
|
|
13
|
-
* @return {React.
|
|
13
|
+
* @return {React.ReactNode} The component to be rendered or null if there are headings.
|
|
14
14
|
*/
|
|
15
15
|
export default function DocumentOutlineCheck( { children } ) {
|
|
16
16
|
const hasHeadings = useSelect( ( select ) => {
|
|
@@ -168,7 +168,7 @@ export default function DocumentOutline( {
|
|
|
168
168
|
{ title }
|
|
169
169
|
</DocumentOutlineItem>
|
|
170
170
|
) }
|
|
171
|
-
{ headings.map( ( item
|
|
171
|
+
{ headings.map( ( item ) => {
|
|
172
172
|
// Headings remain the same, go up by one, or down by any amount.
|
|
173
173
|
// Otherwise there are missing levels.
|
|
174
174
|
const isIncorrectLevel =
|
|
@@ -184,7 +184,7 @@ export default function DocumentOutline( {
|
|
|
184
184
|
|
|
185
185
|
return (
|
|
186
186
|
<DocumentOutlineItem
|
|
187
|
-
key={
|
|
187
|
+
key={ item.clientId }
|
|
188
188
|
level={ `H${ item.level }` }
|
|
189
189
|
isValid={ isValid }
|
|
190
190
|
isDisabled={ hasOutlineItemsDisabled }
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
display: inline-flex;
|
|
17
17
|
|
|
18
18
|
svg {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
@media not (prefers-reduced-motion) {
|
|
20
|
+
transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
|
|
21
|
+
}
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
&.is-pressed {
|
|
@@ -32,6 +32,9 @@ import {
|
|
|
32
32
|
} from '../../store/constants';
|
|
33
33
|
import { unlock } from '../../lock-unlock';
|
|
34
34
|
|
|
35
|
+
const isBlockCommentExperimentEnabled =
|
|
36
|
+
window?.__experimentalEnableBlockComment;
|
|
37
|
+
|
|
35
38
|
const toolbarVariations = {
|
|
36
39
|
distractionFreeDisabled: { y: '-50px' },
|
|
37
40
|
distractionFreeHover: { y: 0 },
|
|
@@ -65,6 +68,7 @@ function Header( {
|
|
|
65
68
|
showIconLabels,
|
|
66
69
|
hasFixedToolbar,
|
|
67
70
|
hasBlockSelection,
|
|
71
|
+
hasSectionRootClientId,
|
|
68
72
|
} = useSelect( ( select ) => {
|
|
69
73
|
const { get: getPreference } = select( preferencesStore );
|
|
70
74
|
const {
|
|
@@ -72,6 +76,9 @@ function Header( {
|
|
|
72
76
|
getCurrentPostType,
|
|
73
77
|
isPublishSidebarOpened: _isPublishSidebarOpened,
|
|
74
78
|
} = select( editorStore );
|
|
79
|
+
const { getBlockSelectionStart, getSectionRootClientId } = unlock(
|
|
80
|
+
select( blockEditorStore )
|
|
81
|
+
);
|
|
75
82
|
|
|
76
83
|
return {
|
|
77
84
|
postType: getCurrentPostType(),
|
|
@@ -79,20 +86,21 @@ function Header( {
|
|
|
79
86
|
isPublishSidebarOpened: _isPublishSidebarOpened(),
|
|
80
87
|
showIconLabels: getPreference( 'core', 'showIconLabels' ),
|
|
81
88
|
hasFixedToolbar: getPreference( 'core', 'fixedToolbar' ),
|
|
82
|
-
hasBlockSelection:
|
|
83
|
-
|
|
89
|
+
hasBlockSelection: !! getBlockSelectionStart(),
|
|
90
|
+
hasSectionRootClientId: !! getSectionRootClientId(),
|
|
84
91
|
};
|
|
85
92
|
}, [] );
|
|
86
93
|
|
|
87
|
-
const canBeZoomedOut =
|
|
88
|
-
postType
|
|
89
|
-
|
|
94
|
+
const canBeZoomedOut =
|
|
95
|
+
[ 'post', 'page', 'wp_template' ].includes( postType ) &&
|
|
96
|
+
hasSectionRootClientId;
|
|
90
97
|
|
|
91
|
-
const disablePreviewOption =
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
98
|
+
const disablePreviewOption =
|
|
99
|
+
[
|
|
100
|
+
NAVIGATION_POST_TYPE,
|
|
101
|
+
TEMPLATE_PART_POST_TYPE,
|
|
102
|
+
PATTERN_POST_TYPE,
|
|
103
|
+
].includes( postType ) || forceDisableBlockTools;
|
|
96
104
|
|
|
97
105
|
const [ isBlockToolsCollapsed, setIsBlockToolsCollapsed ] =
|
|
98
106
|
useState( true );
|
|
@@ -104,14 +112,8 @@ function Header( {
|
|
|
104
112
|
( ! hasBlockSelection || isBlockToolsCollapsed ) ) );
|
|
105
113
|
const hasBackButton = useHasBackButton();
|
|
106
114
|
|
|
107
|
-
const hasSectionRootClientId = useSelect(
|
|
108
|
-
( select ) =>
|
|
109
|
-
!! unlock( select( blockEditorStore ) ).getSectionRootClientId(),
|
|
110
|
-
[]
|
|
111
|
-
);
|
|
112
|
-
|
|
113
115
|
/*
|
|
114
|
-
* The edit-post-header classname is only kept for backward
|
|
116
|
+
* The edit-post-header classname is only kept for backward compatibility
|
|
115
117
|
* as some plugins might be relying on its presence.
|
|
116
118
|
*/
|
|
117
119
|
return (
|
|
@@ -177,11 +179,9 @@ function Header( {
|
|
|
177
179
|
forceIsAutosaveable={ forceIsDirty }
|
|
178
180
|
/>
|
|
179
181
|
|
|
180
|
-
{ canBeZoomedOut &&
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
<ZoomOutToggle disabled={ forceDisableBlockTools } />
|
|
184
|
-
) }
|
|
182
|
+
{ isWideViewport && canBeZoomedOut && (
|
|
183
|
+
<ZoomOutToggle disabled={ forceDisableBlockTools } />
|
|
184
|
+
) }
|
|
185
185
|
|
|
186
186
|
{ ( isWideViewport || ! showIconLabels ) && (
|
|
187
187
|
<PinnedItems.Slot scope="core" />
|
|
@@ -195,7 +195,10 @@ function Header( {
|
|
|
195
195
|
}
|
|
196
196
|
/>
|
|
197
197
|
) }
|
|
198
|
-
|
|
198
|
+
|
|
199
|
+
{ isBlockCommentExperimentEnabled ? (
|
|
200
|
+
<CollabSidebar />
|
|
201
|
+
) : undefined }
|
|
199
202
|
|
|
200
203
|
{ customSaveButton }
|
|
201
204
|
<MoreMenu />
|
|
@@ -12,10 +12,10 @@ import { store as editorStore } from '../../store';
|
|
|
12
12
|
/**
|
|
13
13
|
* Wrapper component that renders its children only if the post type supports page attributes.
|
|
14
14
|
*
|
|
15
|
-
* @param {Object}
|
|
16
|
-
* @param {React.
|
|
15
|
+
* @param {Object} props - The component props.
|
|
16
|
+
* @param {React.ReactNode} props.children - The child components to render.
|
|
17
17
|
*
|
|
18
|
-
* @return {React.
|
|
18
|
+
* @return {React.ReactNode} The rendered child components or null if page attributes are not supported.
|
|
19
19
|
*/
|
|
20
20
|
export function PageAttributesCheck( { children } ) {
|
|
21
21
|
const supportsPageAttributes = useSelect( ( select ) => {
|
|
@@ -32,7 +32,7 @@ export default function PostExcerpt( {
|
|
|
32
32
|
select( editorStore );
|
|
33
33
|
const postType = getCurrentPostType();
|
|
34
34
|
// This special case is unfortunate, but the REST API of wp_template and wp_template_part
|
|
35
|
-
// support the excerpt field
|
|
35
|
+
// support the excerpt field through the "description" field rather than "excerpt".
|
|
36
36
|
const _usedAttribute = [
|
|
37
37
|
'wp_template',
|
|
38
38
|
'wp_template_part',
|
|
@@ -78,12 +78,14 @@
|
|
|
78
78
|
|
|
79
79
|
.editor-post-featured-image__actions {
|
|
80
80
|
&:not(.editor-post-featured-image__actions-missing-image) {
|
|
81
|
-
@include reduce-motion("transition");
|
|
82
81
|
bottom: 0;
|
|
83
82
|
opacity: 0; // Use opacity instead of visibility so that the buttons remain in the tab order.
|
|
84
83
|
padding: $grid-unit-10;
|
|
85
84
|
position: absolute;
|
|
86
|
-
|
|
85
|
+
|
|
86
|
+
@media not (prefers-reduced-motion) {
|
|
87
|
+
transition: opacity 50ms ease-out;
|
|
88
|
+
}
|
|
87
89
|
|
|
88
90
|
.editor-post-featured-image__action {
|
|
89
91
|
backdrop-filter: blur(16px) saturate(180%);
|
|
@@ -13,10 +13,10 @@ import { store as editorStore } from '../../store';
|
|
|
13
13
|
* If the post is already published or the user doesn't have the
|
|
14
14
|
* capability to publish, it returns null.
|
|
15
15
|
*
|
|
16
|
-
* @param {Object}
|
|
17
|
-
* @param {React.
|
|
16
|
+
* @param {Object} props Component properties.
|
|
17
|
+
* @param {React.ReactNode} props.children Children to be rendered.
|
|
18
18
|
*
|
|
19
|
-
* @return {React.
|
|
19
|
+
* @return {React.ReactNode} The rendered child elements or null if the post is already published or the user doesn't have the capability to publish.
|
|
20
20
|
*/
|
|
21
21
|
export function PostPendingStatusCheck( { children } ) {
|
|
22
22
|
const { hasPublishAction, isPublished } = useSelect( ( select ) => {
|
|
@@ -129,13 +129,17 @@ export default function PostPreviewButton( {
|
|
|
129
129
|
const postType = core.getPostType(
|
|
130
130
|
editor.getCurrentPostType( 'type' )
|
|
131
131
|
);
|
|
132
|
+
const canView = postType?.viewable ?? false;
|
|
133
|
+
if ( ! canView ) {
|
|
134
|
+
return { isViewable: canView };
|
|
135
|
+
}
|
|
132
136
|
|
|
133
137
|
return {
|
|
134
138
|
postId: editor.getCurrentPostId(),
|
|
135
139
|
currentPostLink: editor.getCurrentPostAttribute( 'link' ),
|
|
136
140
|
previewLink: editor.getEditedPostPreviewLink(),
|
|
137
141
|
isSaveable: editor.isEditedPostSaveable(),
|
|
138
|
-
isViewable:
|
|
142
|
+
isViewable: canView,
|
|
139
143
|
};
|
|
140
144
|
}, [] );
|
|
141
145
|
|
|
@@ -114,10 +114,10 @@ export class PostPublishButton extends Component {
|
|
|
114
114
|
( ! isPublishable && ! forceIsDirty ) ) &&
|
|
115
115
|
( ! hasNonPostEntityChanges || isSavingNonPostEntityChanges );
|
|
116
116
|
|
|
117
|
-
// If the new status has not changed
|
|
117
|
+
// If the new status has not changed explicitly, we derive it from
|
|
118
118
|
// other factors, like having a publish action, etc.. We need to preserve
|
|
119
119
|
// this because it affects when to show the pre and post publish panels.
|
|
120
|
-
// If it has changed though
|
|
120
|
+
// If it has changed though explicitly, we need to respect that.
|
|
121
121
|
let publishStatus = 'publish';
|
|
122
122
|
if ( postStatusHasChanged ) {
|
|
123
123
|
publishStatus = postStatus;
|
|
@@ -58,7 +58,7 @@ export default function PostPublishButtonOrToggle( {
|
|
|
58
58
|
* for a particular role (see https://wordpress.org/documentation/article/post-status/):
|
|
59
59
|
*
|
|
60
60
|
* - is published
|
|
61
|
-
* - post status has changed
|
|
61
|
+
* - post status has changed explicitly to something different than 'future' or 'publish'
|
|
62
62
|
* - is scheduled to be published
|
|
63
63
|
* - is pending and can't be published (but only for viewports >= medium).
|
|
64
64
|
* Originally, we considered showing a button for pending posts that couldn't be published
|
|
@@ -210,9 +210,11 @@
|
|
|
210
210
|
left: auto;
|
|
211
211
|
width: $sidebar-width + $border-width;
|
|
212
212
|
border-left: $border-width solid $gray-300;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
213
|
+
|
|
214
|
+
@media not (prefers-reduced-motion) {
|
|
215
|
+
transform: translateX(+100%);
|
|
216
|
+
animation: editor-post-publish-panel__slide-in-animation 0.1s forwards;
|
|
217
|
+
}
|
|
216
218
|
|
|
217
219
|
body.is-fullscreen-mode & {
|
|
218
220
|
top: 0;
|
|
@@ -11,10 +11,10 @@ import { store as editorStore } from '../../store';
|
|
|
11
11
|
/**
|
|
12
12
|
* Wrapper component that renders its children only if post has a publish action.
|
|
13
13
|
*
|
|
14
|
-
* @param {Object}
|
|
15
|
-
* @param {React.
|
|
14
|
+
* @param {Object} props Props.
|
|
15
|
+
* @param {React.ReactNode} props.children Children to be rendered.
|
|
16
16
|
*
|
|
17
|
-
* @return {React.
|
|
17
|
+
* @return {React.ReactNode} - The component to be rendered or null if there is no publish action.
|
|
18
18
|
*/
|
|
19
19
|
export default function PostScheduleCheck( { children } ) {
|
|
20
20
|
const hasPublishAction = useSelect( ( select ) => {
|
|
@@ -59,7 +59,7 @@ export function PrivatePostSchedule( {
|
|
|
59
59
|
startOfMonth( new Date( postDate ) )
|
|
60
60
|
);
|
|
61
61
|
|
|
62
|
-
// Pick up published and
|
|
62
|
+
// Pick up published and scheduled site posts.
|
|
63
63
|
const eventsByPostType = useSelect(
|
|
64
64
|
( select ) =>
|
|
65
65
|
select( coreStore ).getEntityRecords( 'postType', postType, {
|
|
@@ -11,10 +11,10 @@ import { store as editorStore } from '../../store';
|
|
|
11
11
|
/**
|
|
12
12
|
* Wrapper component that renders its children only if post has a sticky action.
|
|
13
13
|
*
|
|
14
|
-
* @param {Object}
|
|
15
|
-
* @param {React.
|
|
14
|
+
* @param {Object} props Props.
|
|
15
|
+
* @param {React.ReactNode} props.children Children to be rendered.
|
|
16
16
|
*
|
|
17
|
-
* @return {React.
|
|
17
|
+
* @return {React.ReactNode} The component to be rendered or null if post type is not 'post' or hasStickyAction is false.
|
|
18
18
|
*/
|
|
19
19
|
export default function PostStickyCheck( { children } ) {
|
|
20
20
|
const { hasStickyAction, postType } = useSelect( ( select ) => {
|
|
@@ -15,7 +15,7 @@ import { store as editorStore } from '../../store';
|
|
|
15
15
|
* @param {Object} props The component props.
|
|
16
16
|
* @param {React.ReactNode} props.children The children components to render.
|
|
17
17
|
*
|
|
18
|
-
* @return {React.
|
|
18
|
+
* @return {React.ReactNode} The rendered children components or null if the current post type has no taxonomies.
|
|
19
19
|
*/
|
|
20
20
|
export default function PostTaxonomiesCheck( { children } ) {
|
|
21
21
|
const hasTaxonomies = useSelect( ( select ) => {
|
|
@@ -10,8 +10,10 @@ textarea.editor-post-text-editor {
|
|
|
10
10
|
font-family: $editor-html-font;
|
|
11
11
|
line-height: 2.4;
|
|
12
12
|
min-height: 200px;
|
|
13
|
-
|
|
14
|
-
@
|
|
13
|
+
|
|
14
|
+
@media not (prefers-reduced-motion) {
|
|
15
|
+
transition: border 0.1s ease-out, box-shadow 0.1s linear;
|
|
16
|
+
}
|
|
15
17
|
|
|
16
18
|
// Same padding as title.
|
|
17
19
|
padding: $grid-unit-20;
|
|
@@ -13,10 +13,10 @@ import { GLOBAL_POST_TYPES } from '../../store/constants';
|
|
|
13
13
|
/**
|
|
14
14
|
* Wrapper component that renders its children only if the post can be trashed.
|
|
15
15
|
*
|
|
16
|
-
* @param {Object}
|
|
17
|
-
* @param {React.
|
|
16
|
+
* @param {Object} props The component props.
|
|
17
|
+
* @param {React.ReactNode} props.children The child components.
|
|
18
18
|
*
|
|
19
|
-
* @return {React.
|
|
19
|
+
* @return {React.ReactNode} The rendered child components or null if the post can't be trashed.
|
|
20
20
|
*/
|
|
21
21
|
export default function PostTrashCheck( { children } ) {
|
|
22
22
|
const { canTrashPost } = useSelect( ( select ) => {
|
|
@@ -13,13 +13,13 @@ import { store as editorStore } from '../../store';
|
|
|
13
13
|
* A component which renders its own children only if the current editor post
|
|
14
14
|
* type supports one of the given `supportKeys` prop.
|
|
15
15
|
*
|
|
16
|
-
* @param {Object}
|
|
17
|
-
* @param {React.
|
|
18
|
-
*
|
|
19
|
-
* @param {(string|string[])}
|
|
20
|
-
*
|
|
16
|
+
* @param {Object} props Props.
|
|
17
|
+
* @param {React.ReactNode} props.children Children to be rendered if post
|
|
18
|
+
* type supports.
|
|
19
|
+
* @param {(string|string[])} props.supportKeys String or string array of keys
|
|
20
|
+
* to test.
|
|
21
21
|
*
|
|
22
|
-
* @return {React.
|
|
22
|
+
* @return {React.ReactNode} The component to be rendered.
|
|
23
23
|
*/
|
|
24
24
|
function PostTypeSupportCheck( { children, supportKeys } ) {
|
|
25
25
|
const postType = useSelect( ( select ) => {
|
|
@@ -12,10 +12,10 @@ import { store as editorStore } from '../../store';
|
|
|
12
12
|
/**
|
|
13
13
|
* Check if the post URL is valid and visible.
|
|
14
14
|
*
|
|
15
|
-
* @param {Object}
|
|
16
|
-
* @param {React.
|
|
15
|
+
* @param {Object} props The component props.
|
|
16
|
+
* @param {React.ReactNode} props.children The child components.
|
|
17
17
|
*
|
|
18
|
-
* @return {React.
|
|
18
|
+
* @return {React.ReactNode} The child components if the post URL is valid and visible, otherwise null.
|
|
19
19
|
*/
|
|
20
20
|
export default function PostURLCheck( { children } ) {
|
|
21
21
|
const isVisible = useSelect( ( select ) => {
|
|
@@ -250,7 +250,7 @@ function PreferencesModalContents( { extraSections = {} } ) {
|
|
|
250
250
|
scope="core"
|
|
251
251
|
featureName="keepCaretInsideBlock"
|
|
252
252
|
help={ __(
|
|
253
|
-
'Keeps the text cursor within
|
|
253
|
+
'Keeps the text cursor within blocks while navigating with arrow keys, preventing it from moving to other blocks and enhancing accessibility for keyboard users.'
|
|
254
254
|
) }
|
|
255
255
|
label={ __(
|
|
256
256
|
'Contain text cursor inside block'
|