@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.
Files changed (215) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +20 -20
  3. package/build/bindings/pattern-overrides.js +1 -1
  4. package/build/bindings/pattern-overrides.js.map +1 -1
  5. package/build/components/collab-sidebar/index.js +1 -4
  6. package/build/components/collab-sidebar/index.js.map +1 -1
  7. package/build/components/document-outline/check.js +3 -3
  8. package/build/components/document-outline/check.js.map +1 -1
  9. package/build/components/document-outline/index.js +2 -2
  10. package/build/components/document-outline/index.js.map +1 -1
  11. package/build/components/header/index.js +14 -8
  12. package/build/components/header/index.js.map +1 -1
  13. package/build/components/page-attributes/check.js +3 -3
  14. package/build/components/page-attributes/check.js.map +1 -1
  15. package/build/components/post-excerpt/index.js +1 -1
  16. package/build/components/post-excerpt/index.js.map +1 -1
  17. package/build/components/post-pending-status/check.js +3 -3
  18. package/build/components/post-pending-status/check.js.map +1 -1
  19. package/build/components/post-preview-button/index.js +7 -1
  20. package/build/components/post-preview-button/index.js.map +1 -1
  21. package/build/components/post-publish-button/index.js +2 -2
  22. package/build/components/post-publish-button/index.js.map +1 -1
  23. package/build/components/post-publish-button/post-publish-button-or-toggle.js +1 -1
  24. package/build/components/post-publish-button/post-publish-button-or-toggle.js.map +1 -1
  25. package/build/components/post-schedule/check.js +3 -3
  26. package/build/components/post-schedule/check.js.map +1 -1
  27. package/build/components/post-schedule/index.js +1 -1
  28. package/build/components/post-schedule/index.js.map +1 -1
  29. package/build/components/post-sticky/check.js +3 -3
  30. package/build/components/post-sticky/check.js.map +1 -1
  31. package/build/components/post-taxonomies/check.js +1 -1
  32. package/build/components/post-taxonomies/check.js.map +1 -1
  33. package/build/components/post-template/swap-template-button.js +1 -1
  34. package/build/components/post-template/swap-template-button.js.map +1 -1
  35. package/build/components/post-trash/check.js +3 -3
  36. package/build/components/post-trash/check.js.map +1 -1
  37. package/build/components/post-type-support-check/index.js +6 -6
  38. package/build/components/post-type-support-check/index.js.map +1 -1
  39. package/build/components/post-url/check.js +3 -3
  40. package/build/components/post-url/check.js.map +1 -1
  41. package/build/components/preferences-modal/index.js +1 -1
  42. package/build/components/preferences-modal/index.js.map +1 -1
  43. package/build/components/provider/index.js +25 -17
  44. package/build/components/provider/index.js.map +1 -1
  45. package/build/components/sidebar/post-summary.js +1 -1
  46. package/build/components/sidebar/post-summary.js.map +1 -1
  47. package/build/components/start-page-options/index.js +15 -6
  48. package/build/components/start-page-options/index.js.map +1 -1
  49. package/build/components/theme-support-check/index.js +4 -4
  50. package/build/components/theme-support-check/index.js.map +1 -1
  51. package/build/components/visual-editor/edit-template-blocks-notification.js +1 -1
  52. package/build/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
  53. package/build/components/visual-editor/index.js +2 -2
  54. package/build/components/visual-editor/index.js.map +1 -1
  55. package/build/dataviews/fields/content-preview/content-preview-view.js +101 -0
  56. package/build/dataviews/fields/content-preview/content-preview-view.js.map +1 -0
  57. package/build/dataviews/fields/content-preview/index.js +26 -0
  58. package/build/dataviews/fields/content-preview/index.js.map +1 -0
  59. package/build/dataviews/store/private-actions.js +3 -1
  60. package/build/dataviews/store/private-actions.js.map +1 -1
  61. package/build/store/private-actions.js +1 -1
  62. package/build/store/private-actions.js.map +1 -1
  63. package/build/store/private-selectors.js +7 -1
  64. package/build/store/private-selectors.js.map +1 -1
  65. package/build/store/selectors.js +4 -4
  66. package/build/store/selectors.js.map +1 -1
  67. package/build-module/bindings/pattern-overrides.js +1 -1
  68. package/build-module/bindings/pattern-overrides.js.map +1 -1
  69. package/build-module/components/collab-sidebar/index.js +1 -4
  70. package/build-module/components/collab-sidebar/index.js.map +1 -1
  71. package/build-module/components/document-outline/check.js +3 -3
  72. package/build-module/components/document-outline/check.js.map +1 -1
  73. package/build-module/components/document-outline/index.js +2 -2
  74. package/build-module/components/document-outline/index.js.map +1 -1
  75. package/build-module/components/header/index.js +14 -8
  76. package/build-module/components/header/index.js.map +1 -1
  77. package/build-module/components/page-attributes/check.js +3 -3
  78. package/build-module/components/page-attributes/check.js.map +1 -1
  79. package/build-module/components/post-excerpt/index.js +1 -1
  80. package/build-module/components/post-excerpt/index.js.map +1 -1
  81. package/build-module/components/post-pending-status/check.js +3 -3
  82. package/build-module/components/post-pending-status/check.js.map +1 -1
  83. package/build-module/components/post-preview-button/index.js +7 -1
  84. package/build-module/components/post-preview-button/index.js.map +1 -1
  85. package/build-module/components/post-publish-button/index.js +2 -2
  86. package/build-module/components/post-publish-button/index.js.map +1 -1
  87. package/build-module/components/post-publish-button/post-publish-button-or-toggle.js +1 -1
  88. package/build-module/components/post-publish-button/post-publish-button-or-toggle.js.map +1 -1
  89. package/build-module/components/post-schedule/check.js +3 -3
  90. package/build-module/components/post-schedule/check.js.map +1 -1
  91. package/build-module/components/post-schedule/index.js +1 -1
  92. package/build-module/components/post-schedule/index.js.map +1 -1
  93. package/build-module/components/post-sticky/check.js +3 -3
  94. package/build-module/components/post-sticky/check.js.map +1 -1
  95. package/build-module/components/post-taxonomies/check.js +1 -1
  96. package/build-module/components/post-taxonomies/check.js.map +1 -1
  97. package/build-module/components/post-template/swap-template-button.js +1 -1
  98. package/build-module/components/post-template/swap-template-button.js.map +1 -1
  99. package/build-module/components/post-trash/check.js +3 -3
  100. package/build-module/components/post-trash/check.js.map +1 -1
  101. package/build-module/components/post-type-support-check/index.js +6 -6
  102. package/build-module/components/post-type-support-check/index.js.map +1 -1
  103. package/build-module/components/post-url/check.js +3 -3
  104. package/build-module/components/post-url/check.js.map +1 -1
  105. package/build-module/components/preferences-modal/index.js +1 -1
  106. package/build-module/components/preferences-modal/index.js.map +1 -1
  107. package/build-module/components/provider/index.js +25 -17
  108. package/build-module/components/provider/index.js.map +1 -1
  109. package/build-module/components/sidebar/post-summary.js +1 -1
  110. package/build-module/components/sidebar/post-summary.js.map +1 -1
  111. package/build-module/components/start-page-options/index.js +15 -6
  112. package/build-module/components/start-page-options/index.js.map +1 -1
  113. package/build-module/components/theme-support-check/index.js +4 -4
  114. package/build-module/components/theme-support-check/index.js.map +1 -1
  115. package/build-module/components/visual-editor/edit-template-blocks-notification.js +1 -1
  116. package/build-module/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
  117. package/build-module/components/visual-editor/index.js +2 -2
  118. package/build-module/components/visual-editor/index.js.map +1 -1
  119. package/build-module/dataviews/fields/content-preview/content-preview-view.js +95 -0
  120. package/build-module/dataviews/fields/content-preview/content-preview-view.js.map +1 -0
  121. package/build-module/dataviews/fields/content-preview/index.js +19 -0
  122. package/build-module/dataviews/fields/content-preview/index.js.map +1 -0
  123. package/build-module/dataviews/store/private-actions.js +2 -1
  124. package/build-module/dataviews/store/private-actions.js.map +1 -1
  125. package/build-module/store/private-actions.js +1 -1
  126. package/build-module/store/private-actions.js.map +1 -1
  127. package/build-module/store/private-selectors.js +7 -1
  128. package/build-module/store/private-selectors.js.map +1 -1
  129. package/build-module/store/selectors.js +4 -4
  130. package/build-module/store/selectors.js.map +1 -1
  131. package/build-style/style-rtl.css +35 -31
  132. package/build-style/style.css +35 -31
  133. package/build-types/components/autocompleters/user.d.ts +5 -1
  134. package/build-types/components/collab-sidebar/index.d.ts.map +1 -1
  135. package/build-types/components/document-outline/check.d.ts +5 -5
  136. package/build-types/components/document-outline/check.d.ts.map +1 -1
  137. package/build-types/components/header/index.d.ts.map +1 -1
  138. package/build-types/components/page-attributes/check.d.ts +5 -5
  139. package/build-types/components/page-attributes/check.d.ts.map +1 -1
  140. package/build-types/components/post-author/hook.d.ts +1 -1
  141. package/build-types/components/post-pending-status/check.d.ts +5 -5
  142. package/build-types/components/post-pending-status/check.d.ts.map +1 -1
  143. package/build-types/components/post-preview-button/index.d.ts.map +1 -1
  144. package/build-types/components/post-schedule/check.d.ts +5 -5
  145. package/build-types/components/post-schedule/check.d.ts.map +1 -1
  146. package/build-types/components/post-sticky/check.d.ts +5 -5
  147. package/build-types/components/post-sticky/check.d.ts.map +1 -1
  148. package/build-types/components/post-taxonomies/check.d.ts +2 -2
  149. package/build-types/components/post-taxonomies/check.d.ts.map +1 -1
  150. package/build-types/components/post-taxonomies/index.d.ts +1 -1
  151. package/build-types/components/post-taxonomies/index.d.ts.map +1 -1
  152. package/build-types/components/post-template/hooks.d.ts +1 -1
  153. package/build-types/components/post-template/hooks.d.ts.map +1 -1
  154. package/build-types/components/post-trash/check.d.ts +5 -5
  155. package/build-types/components/post-trash/check.d.ts.map +1 -1
  156. package/build-types/components/post-type-support-check/index.d.ts +8 -8
  157. package/build-types/components/post-type-support-check/index.d.ts.map +1 -1
  158. package/build-types/components/post-url/check.d.ts +5 -5
  159. package/build-types/components/post-url/check.d.ts.map +1 -1
  160. package/build-types/components/provider/index.d.ts +9 -9
  161. package/build-types/components/provider/index.d.ts.map +1 -1
  162. package/build-types/components/start-page-options/index.d.ts.map +1 -1
  163. package/build-types/components/theme-support-check/index.d.ts +6 -6
  164. package/build-types/components/theme-support-check/index.d.ts.map +1 -1
  165. package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts +1 -1
  166. package/build-types/dataviews/fields/content-preview/content-preview-view.d.ts +5 -0
  167. package/build-types/dataviews/fields/content-preview/content-preview-view.d.ts.map +1 -0
  168. package/build-types/dataviews/fields/content-preview/index.d.ts +8 -0
  169. package/build-types/dataviews/fields/content-preview/index.d.ts.map +1 -0
  170. package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
  171. package/build-types/store/private-selectors.d.ts.map +1 -1
  172. package/build-types/store/selectors.d.ts +5 -5
  173. package/build-types/store/selectors.d.ts.map +1 -1
  174. package/package.json +37 -37
  175. package/src/bindings/pattern-overrides.js +1 -1
  176. package/src/components/autocompleters/style.scss +1 -1
  177. package/src/components/collab-sidebar/index.js +1 -4
  178. package/src/components/document-bar/style.scss +4 -2
  179. package/src/components/document-outline/check.js +3 -3
  180. package/src/components/document-outline/index.js +2 -2
  181. package/src/components/document-tools/style.scss +3 -2
  182. package/src/components/header/index.js +26 -23
  183. package/src/components/page-attributes/check.js +3 -3
  184. package/src/components/post-excerpt/index.js +1 -1
  185. package/src/components/post-featured-image/style.scss +4 -2
  186. package/src/components/post-pending-status/check.js +3 -3
  187. package/src/components/post-preview-button/index.js +5 -1
  188. package/src/components/post-publish-button/index.js +2 -2
  189. package/src/components/post-publish-button/post-publish-button-or-toggle.js +1 -1
  190. package/src/components/post-publish-panel/style.scss +5 -3
  191. package/src/components/post-schedule/check.js +3 -3
  192. package/src/components/post-schedule/index.js +1 -1
  193. package/src/components/post-sticky/check.js +3 -3
  194. package/src/components/post-taxonomies/check.js +1 -1
  195. package/src/components/post-template/swap-template-button.js +1 -1
  196. package/src/components/post-text-editor/style.scss +4 -2
  197. package/src/components/post-trash/check.js +3 -3
  198. package/src/components/post-type-support-check/index.js +6 -6
  199. package/src/components/post-url/check.js +3 -3
  200. package/src/components/preferences-modal/index.js +1 -1
  201. package/src/components/provider/index.js +32 -20
  202. package/src/components/sidebar/post-summary.js +1 -1
  203. package/src/components/start-page-options/index.js +20 -12
  204. package/src/components/theme-support-check/index.js +4 -4
  205. package/src/components/visual-editor/edit-template-blocks-notification.js +1 -1
  206. package/src/components/visual-editor/index.js +2 -2
  207. package/src/dataviews/fields/content-preview/content-preview-view.tsx +108 -0
  208. package/src/dataviews/fields/content-preview/index.tsx +21 -0
  209. package/src/dataviews/fields/content-preview/style.scss +21 -0
  210. package/src/dataviews/store/private-actions.ts +4 -0
  211. package/src/store/private-actions.js +1 -1
  212. package/src/store/private-selectors.js +15 -8
  213. package/src/store/selectors.js +4 -4
  214. package/src/style.scss +1 -0
  215. 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;;;;;;;GA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AEF;;;;;;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.15.1",
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.15.1",
38
- "@wordpress/api-fetch": "^7.15.1",
39
- "@wordpress/blob": "^4.15.0",
40
- "@wordpress/block-editor": "^14.10.1",
41
- "@wordpress/blocks": "^14.4.1",
42
- "@wordpress/commands": "^1.15.1",
43
- "@wordpress/components": "^29.1.1",
44
- "@wordpress/compose": "^7.15.1",
45
- "@wordpress/core-data": "^7.15.1",
46
- "@wordpress/data": "^10.15.1",
47
- "@wordpress/dataviews": "^4.11.1",
48
- "@wordpress/date": "^5.15.1",
49
- "@wordpress/deprecated": "^4.15.1",
50
- "@wordpress/dom": "^4.15.1",
51
- "@wordpress/element": "^6.15.1",
52
- "@wordpress/fields": "^0.7.1",
53
- "@wordpress/hooks": "^4.15.0",
54
- "@wordpress/html-entities": "^4.15.0",
55
- "@wordpress/i18n": "^5.15.1",
56
- "@wordpress/icons": "^10.15.1",
57
- "@wordpress/interface": "^9.0.1",
58
- "@wordpress/keyboard-shortcuts": "^5.15.1",
59
- "@wordpress/keycodes": "^4.15.1",
60
- "@wordpress/media-utils": "^5.15.1",
61
- "@wordpress/notices": "^5.15.1",
62
- "@wordpress/patterns": "^2.15.1",
63
- "@wordpress/plugins": "^7.15.1",
64
- "@wordpress/preferences": "^4.15.1",
65
- "@wordpress/private-apis": "^1.15.0",
66
- "@wordpress/reusable-blocks": "^5.15.1",
67
- "@wordpress/rich-text": "^7.15.1",
68
- "@wordpress/server-side-render": "^5.15.1",
69
- "@wordpress/url": "^4.15.0",
70
- "@wordpress/warning": "^3.15.0",
71
- "@wordpress/wordcount": "^4.15.0",
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": "0d4503ecc364cf4ca16024673baf5a84dacf212f"
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 overriden, return the original value.
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 seting the size upfront
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
- // Check if the experimental flag is enabled.
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
- transition: all 0.1s ease-out;
22
- @include reduce-motion("transition");
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} props Props.
11
- * @param {React.ReactElement} props.children Children to be rendered.
10
+ * @param {Object} props Props.
11
+ * @param {React.ReactNode} props.children Children to be rendered.
12
12
  *
13
- * @return {React.ReactElement} The component to be rendered or null if there are headings.
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, index ) => {
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={ index }
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
- transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
20
- @include reduce-motion("transition");
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
- !! select( blockEditorStore ).getBlockSelectionStart(),
89
+ hasBlockSelection: !! getBlockSelectionStart(),
90
+ hasSectionRootClientId: !! getSectionRootClientId(),
84
91
  };
85
92
  }, [] );
86
93
 
87
- const canBeZoomedOut = [ 'post', 'page', 'wp_template' ].includes(
88
- postType
89
- );
94
+ const canBeZoomedOut =
95
+ [ 'post', 'page', 'wp_template' ].includes( postType ) &&
96
+ hasSectionRootClientId;
90
97
 
91
- const disablePreviewOption = [
92
- NAVIGATION_POST_TYPE,
93
- TEMPLATE_PART_POST_TYPE,
94
- PATTERN_POST_TYPE,
95
- ].includes( postType );
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 compatability
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
- isWideViewport &&
182
- hasSectionRootClientId && (
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
- <CollabSidebar />
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} props - The component props.
16
- * @param {React.ReactElement} props.children - The child components to render.
15
+ * @param {Object} props - The component props.
16
+ * @param {React.ReactNode} props.children - The child components to render.
17
17
  *
18
- * @return {React.ReactElement} The rendered child components or null if page attributes are not supported.
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 throught the "description" field rather than "excerpt".
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
- transition: opacity 50ms ease-out;
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} props Component properties.
17
- * @param {React.ReactElement} props.children Children to be rendered.
16
+ * @param {Object} props Component properties.
17
+ * @param {React.ReactNode} props.children Children to be rendered.
18
18
  *
19
- * @return {React.ReactElement} The rendered child elements or null if the post is already published or the user doesn't have the capability to publish.
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: postType?.viewable ?? false,
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 explicitely, we derive it from
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 explicitely, we need to respect that.
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 explicitely to something different than 'future' or 'publish'
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
- transform: translateX(+100%);
214
- animation: editor-post-publish-panel__slide-in-animation 0.1s forwards;
215
- @include reduce-motion("animation");
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} props Props.
15
- * @param {React.ReactElement} props.children Children to be rendered.
14
+ * @param {Object} props Props.
15
+ * @param {React.ReactNode} props.children Children to be rendered.
16
16
  *
17
- * @return {React.ReactElement} - The component to be rendered or null if there is no publish action.
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 schduled site posts.
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} props Props.
15
- * @param {React.ReactElement} props.children Children to be rendered.
14
+ * @param {Object} props Props.
15
+ * @param {React.ReactNode} props.children Children to be rendered.
16
16
  *
17
- * @return {React.ReactElement} The component to be rendered or null if post type is not 'post' or hasStickyAction is false.
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.ReactElement} The rendered children components or null if the current post type has no taxonomies.
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 ) => {
@@ -37,7 +37,7 @@ export default function SwapTemplateButton( { onClick } ) {
37
37
  return (
38
38
  <>
39
39
  <MenuItem onClick={ () => setShowModal( true ) }>
40
- { __( 'Swap template' ) }
40
+ { __( 'Change template' ) }
41
41
  </MenuItem>
42
42
  { showModal && (
43
43
  <Modal
@@ -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
- transition: border 0.1s ease-out, box-shadow 0.1s linear;
14
- @include reduce-motion("transition");
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} props The component props.
17
- * @param {React.ReactElement} props.children The child components.
16
+ * @param {Object} props The component props.
17
+ * @param {React.ReactNode} props.children The child components.
18
18
  *
19
- * @return {React.ReactElement | null} The rendered child components or null if the post can't be trashed.
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} props Props.
17
- * @param {React.ReactElement} 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.
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.ReactElement} The component to be rendered.
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} props The component props.
16
- * @param {React.ReactElement} props.children The child components.
15
+ * @param {Object} props The component props.
16
+ * @param {React.ReactNode} props.children The child components.
17
17
  *
18
- * @return {React.ReactElement} The child components if the post URL is valid and visible, otherwise null.
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 the block boundaries, aiding users with screen readers by preventing unintentional cursor movement outside the block.'
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'