@wordpress/editor 14.16.0 → 14.17.1

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 (116) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +19 -19
  3. package/build/components/document-outline/check.js +3 -3
  4. package/build/components/document-outline/check.js.map +1 -1
  5. package/build/components/header/index.js +11 -6
  6. package/build/components/header/index.js.map +1 -1
  7. package/build/components/page-attributes/check.js +3 -3
  8. package/build/components/page-attributes/check.js.map +1 -1
  9. package/build/components/post-pending-status/check.js +3 -3
  10. package/build/components/post-pending-status/check.js.map +1 -1
  11. package/build/components/post-schedule/check.js +3 -3
  12. package/build/components/post-schedule/check.js.map +1 -1
  13. package/build/components/post-sticky/check.js +3 -3
  14. package/build/components/post-sticky/check.js.map +1 -1
  15. package/build/components/post-taxonomies/check.js +1 -1
  16. package/build/components/post-taxonomies/check.js.map +1 -1
  17. package/build/components/post-trash/check.js +3 -3
  18. package/build/components/post-trash/check.js.map +1 -1
  19. package/build/components/post-type-support-check/index.js +6 -6
  20. package/build/components/post-type-support-check/index.js.map +1 -1
  21. package/build/components/post-url/check.js +3 -3
  22. package/build/components/post-url/check.js.map +1 -1
  23. package/build/components/preferences-modal/index.js +1 -1
  24. package/build/components/preferences-modal/index.js.map +1 -1
  25. package/build/components/provider/index.js +1 -1
  26. package/build/components/provider/index.js.map +1 -1
  27. package/build/components/start-page-options/index.js +15 -6
  28. package/build/components/start-page-options/index.js.map +1 -1
  29. package/build/components/theme-support-check/index.js +4 -4
  30. package/build/components/theme-support-check/index.js.map +1 -1
  31. package/build/private-apis.js +2 -0
  32. package/build/private-apis.js.map +1 -1
  33. package/build/store/selectors.js +4 -4
  34. package/build/store/selectors.js.map +1 -1
  35. package/build-module/components/document-outline/check.js +3 -3
  36. package/build-module/components/document-outline/check.js.map +1 -1
  37. package/build-module/components/header/index.js +11 -6
  38. package/build-module/components/header/index.js.map +1 -1
  39. package/build-module/components/page-attributes/check.js +3 -3
  40. package/build-module/components/page-attributes/check.js.map +1 -1
  41. package/build-module/components/post-pending-status/check.js +3 -3
  42. package/build-module/components/post-pending-status/check.js.map +1 -1
  43. package/build-module/components/post-schedule/check.js +3 -3
  44. package/build-module/components/post-schedule/check.js.map +1 -1
  45. package/build-module/components/post-sticky/check.js +3 -3
  46. package/build-module/components/post-sticky/check.js.map +1 -1
  47. package/build-module/components/post-taxonomies/check.js +1 -1
  48. package/build-module/components/post-taxonomies/check.js.map +1 -1
  49. package/build-module/components/post-trash/check.js +3 -3
  50. package/build-module/components/post-trash/check.js.map +1 -1
  51. package/build-module/components/post-type-support-check/index.js +6 -6
  52. package/build-module/components/post-type-support-check/index.js.map +1 -1
  53. package/build-module/components/post-url/check.js +3 -3
  54. package/build-module/components/post-url/check.js.map +1 -1
  55. package/build-module/components/preferences-modal/index.js +1 -1
  56. package/build-module/components/preferences-modal/index.js.map +1 -1
  57. package/build-module/components/provider/index.js +1 -1
  58. package/build-module/components/provider/index.js.map +1 -1
  59. package/build-module/components/start-page-options/index.js +15 -6
  60. package/build-module/components/start-page-options/index.js.map +1 -1
  61. package/build-module/components/theme-support-check/index.js +4 -4
  62. package/build-module/components/theme-support-check/index.js.map +1 -1
  63. package/build-module/private-apis.js +3 -1
  64. package/build-module/private-apis.js.map +1 -1
  65. package/build-module/store/selectors.js +4 -4
  66. package/build-module/store/selectors.js.map +1 -1
  67. package/build-style/style-rtl.css +11 -23
  68. package/build-style/style.css +11 -23
  69. package/build-types/components/document-outline/check.d.ts +5 -5
  70. package/build-types/components/document-outline/check.d.ts.map +1 -1
  71. package/build-types/components/header/index.d.ts.map +1 -1
  72. package/build-types/components/page-attributes/check.d.ts +5 -5
  73. package/build-types/components/page-attributes/check.d.ts.map +1 -1
  74. package/build-types/components/post-pending-status/check.d.ts +5 -5
  75. package/build-types/components/post-pending-status/check.d.ts.map +1 -1
  76. package/build-types/components/post-schedule/check.d.ts +5 -5
  77. package/build-types/components/post-schedule/check.d.ts.map +1 -1
  78. package/build-types/components/post-sticky/check.d.ts +5 -5
  79. package/build-types/components/post-sticky/check.d.ts.map +1 -1
  80. package/build-types/components/post-taxonomies/check.d.ts +2 -2
  81. package/build-types/components/post-taxonomies/check.d.ts.map +1 -1
  82. package/build-types/components/post-trash/check.d.ts +5 -5
  83. package/build-types/components/post-trash/check.d.ts.map +1 -1
  84. package/build-types/components/post-type-support-check/index.d.ts +8 -8
  85. package/build-types/components/post-type-support-check/index.d.ts.map +1 -1
  86. package/build-types/components/post-url/check.d.ts +5 -5
  87. package/build-types/components/post-url/check.d.ts.map +1 -1
  88. package/build-types/components/start-page-options/index.d.ts.map +1 -1
  89. package/build-types/components/theme-support-check/index.d.ts +6 -6
  90. package/build-types/components/theme-support-check/index.d.ts.map +1 -1
  91. package/build-types/private-apis.d.ts.map +1 -1
  92. package/build-types/store/selectors.d.ts +4 -4
  93. package/build-types/store/selectors.d.ts.map +1 -1
  94. package/package.json +37 -37
  95. package/src/components/document-bar/style.scss +4 -2
  96. package/src/components/document-outline/check.js +3 -3
  97. package/src/components/document-tools/style.scss +3 -2
  98. package/src/components/header/index.js +18 -21
  99. package/src/components/page-attributes/check.js +3 -3
  100. package/src/components/post-featured-image/style.scss +4 -2
  101. package/src/components/post-pending-status/check.js +3 -3
  102. package/src/components/post-publish-panel/style.scss +5 -3
  103. package/src/components/post-schedule/check.js +3 -3
  104. package/src/components/post-sticky/check.js +3 -3
  105. package/src/components/post-taxonomies/check.js +1 -1
  106. package/src/components/post-text-editor/style.scss +4 -2
  107. package/src/components/post-trash/check.js +3 -3
  108. package/src/components/post-type-support-check/index.js +6 -6
  109. package/src/components/post-url/check.js +3 -3
  110. package/src/components/preferences-modal/index.js +1 -1
  111. package/src/components/provider/index.js +2 -2
  112. package/src/components/start-page-options/index.js +20 -12
  113. package/src/components/theme-support-check/index.js +4 -4
  114. package/src/private-apis.js +7 -1
  115. package/src/store/selectors.js +4 -4
  116. package/tsconfig.tsbuildinfo +1 -1
@@ -674,12 +674,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
674
674
  }
675
675
  .editor-document-bar .components-button {
676
676
  border-radius: 4px;
677
- transition: all 0.1s ease-out;
678
677
  }
679
- @media (prefers-reduced-motion: reduce) {
678
+ @media not (prefers-reduced-motion) {
680
679
  .editor-document-bar .components-button {
681
- transition-duration: 0s;
682
- transition-delay: 0s;
680
+ transition: all 0.1s ease-out;
683
681
  }
684
682
  }
685
683
  .editor-document-bar .components-button:hover {
@@ -874,13 +872,9 @@ body.is-fullscreen-mode .interface-interface-skeleton {
874
872
  .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle {
875
873
  display: inline-flex;
876
874
  }
877
- .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle svg {
878
- transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
879
- }
880
- @media (prefers-reduced-motion: reduce) {
875
+ @media not (prefers-reduced-motion) {
881
876
  .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle svg {
882
- transition-duration: 0s;
883
- transition-delay: 0s;
877
+ transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
884
878
  }
885
879
  }
886
880
  .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle.is-pressed svg {
@@ -1574,12 +1568,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1574
1568
  opacity: 0;
1575
1569
  padding: 8px;
1576
1570
  position: absolute;
1577
- transition: opacity 50ms ease-out;
1578
1571
  }
1579
- @media (prefers-reduced-motion: reduce) {
1572
+ @media not (prefers-reduced-motion) {
1580
1573
  .editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image) {
1581
- transition-duration: 0s;
1582
- transition-delay: 0s;
1574
+ transition: opacity 50ms ease-out;
1583
1575
  }
1584
1576
  }
1585
1577
  .editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image) .editor-post-featured-image__action {
@@ -1881,14 +1873,12 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1881
1873
  left: auto;
1882
1874
  width: 281px;
1883
1875
  border-left: 1px solid #ddd;
1884
- transform: translateX(100%);
1885
- animation: editor-post-publish-panel__slide-in-animation 0.1s forwards;
1886
1876
  }
1887
1877
  }
1888
- @media (min-width: 782px) and (prefers-reduced-motion: reduce) {
1878
+ @media (min-width: 782px) and (not (prefers-reduced-motion)) {
1889
1879
  .editor-post-publish-panel {
1890
- animation-duration: 1ms;
1891
- animation-delay: 0s;
1880
+ transform: translateX(100%);
1881
+ animation: editor-post-publish-panel__slide-in-animation 0.1s forwards;
1892
1882
  }
1893
1883
  }
1894
1884
  @media (min-width: 782px) {
@@ -2075,15 +2065,13 @@ textarea.editor-post-text-editor {
2075
2065
  font-family: Menlo, Consolas, monaco, monospace;
2076
2066
  line-height: 2.4;
2077
2067
  min-height: 200px;
2078
- transition: border 0.1s ease-out, box-shadow 0.1s linear;
2079
2068
  padding: 16px;
2080
2069
  /* Fonts smaller than 16px causes mobile safari to zoom. */
2081
2070
  font-size: 16px !important;
2082
2071
  }
2083
- @media (prefers-reduced-motion: reduce) {
2072
+ @media not (prefers-reduced-motion) {
2084
2073
  textarea.editor-post-text-editor {
2085
- transition-duration: 0s;
2086
- transition-delay: 0s;
2074
+ transition: border 0.1s ease-out, box-shadow 0.1s linear;
2087
2075
  }
2088
2076
  }
2089
2077
  @media (min-width: 600px) {
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * Component check if there are any headings (core/heading blocks) present in the document.
3
3
  *
4
- * @param {Object} props Props.
5
- * @param {React.ReactElement} props.children Children to be rendered.
4
+ * @param {Object} props Props.
5
+ * @param {React.ReactNode} props.children Children to be rendered.
6
6
  *
7
- * @return {React.ReactElement} The component to be rendered or null if there are headings.
7
+ * @return {React.ReactNode} The component to be rendered or null if there are headings.
8
8
  */
9
9
  export default function DocumentOutlineCheck({ children }: {
10
- children: React.ReactElement;
11
- }): React.ReactElement;
10
+ children: React.ReactNode;
11
+ }): React.ReactNode;
12
12
  //# sourceMappingURL=check.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/document-outline/check.js"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,2DAJG;IAAkC,QAAQ,EAAlC,KAAK,CAAC,YAAY;CAE1B,GAAS,KAAK,CAAC,YAAY,CAc7B"}
1
+ {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/document-outline/check.js"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,2DAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,SAAS,CAc1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";AAqDA;;;;;;gCA6JC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";AAqDA;;;;;;gCA0JC"}
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * Wrapper component that renders its children only if the post type supports page attributes.
3
3
  *
4
- * @param {Object} props - The component props.
5
- * @param {React.ReactElement} props.children - The child components to render.
4
+ * @param {Object} props - The component props.
5
+ * @param {React.ReactNode} props.children - The child components to render.
6
6
  *
7
- * @return {React.ReactElement} The rendered child components or null if page attributes are not supported.
7
+ * @return {React.ReactNode} The rendered child components or null if page attributes are not supported.
8
8
  */
9
9
  export function PageAttributesCheck({ children }: {
10
- children: React.ReactElement;
11
- }): React.ReactElement;
10
+ children: React.ReactNode;
11
+ }): React.ReactNode;
12
12
  export default PageAttributesCheck;
13
13
  //# sourceMappingURL=check.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/page-attributes/check.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,kDAJG;IAAkC,QAAQ,EAAlC,KAAK,CAAC,YAAY;CAE1B,GAAS,KAAK,CAAC,YAAY,CAiB7B"}
1
+ {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/page-attributes/check.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,kDAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,SAAS,CAiB1B"}
@@ -3,13 +3,13 @@
3
3
  * If the post is already published or the user doesn't have the
4
4
  * capability to publish, it returns null.
5
5
  *
6
- * @param {Object} props Component properties.
7
- * @param {React.ReactElement} props.children Children to be rendered.
6
+ * @param {Object} props Component properties.
7
+ * @param {React.ReactNode} props.children Children to be rendered.
8
8
  *
9
- * @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.
9
+ * @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.
10
10
  */
11
11
  export function PostPendingStatusCheck({ children }: {
12
- children: React.ReactElement;
13
- }): React.ReactElement;
12
+ children: React.ReactNode;
13
+ }): React.ReactNode;
14
14
  export default PostPendingStatusCheck;
15
15
  //# sourceMappingURL=check.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-pending-status/check.js"],"names":[],"mappings":"AAUA;;;;;;;;;GASG;AACH,qDAJG;IAAkC,QAAQ,EAAlC,KAAK,CAAC,YAAY;CAE1B,GAAS,KAAK,CAAC,YAAY,CAkB7B"}
1
+ {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-pending-status/check.js"],"names":[],"mappings":"AAUA;;;;;;;;;GASG;AACH,qDAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,SAAS,CAkB1B"}
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * Wrapper component that renders its children only if post has a publish action.
3
3
  *
4
- * @param {Object} props Props.
5
- * @param {React.ReactElement} props.children Children to be rendered.
4
+ * @param {Object} props Props.
5
+ * @param {React.ReactNode} props.children Children to be rendered.
6
6
  *
7
- * @return {React.ReactElement} - The component to be rendered or null if there is no publish action.
7
+ * @return {React.ReactNode} - The component to be rendered or null if there is no publish action.
8
8
  */
9
9
  export default function PostScheduleCheck({ children }: {
10
- children: React.ReactElement;
11
- }): React.ReactElement;
10
+ children: React.ReactNode;
11
+ }): React.ReactNode;
12
12
  //# sourceMappingURL=check.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-schedule/check.js"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,wDAJG;IAAkC,QAAQ,EAAlC,KAAK,CAAC,YAAY;CAE1B,GAAS,KAAK,CAAC,YAAY,CAgB7B"}
1
+ {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-schedule/check.js"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,wDAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,SAAS,CAgB1B"}
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * Wrapper component that renders its children only if post has a sticky action.
3
3
  *
4
- * @param {Object} props Props.
5
- * @param {React.ReactElement} props.children Children to be rendered.
4
+ * @param {Object} props Props.
5
+ * @param {React.ReactNode} props.children Children to be rendered.
6
6
  *
7
- * @return {React.ReactElement} The component to be rendered or null if post type is not 'post' or hasStickyAction is false.
7
+ * @return {React.ReactNode} The component to be rendered or null if post type is not 'post' or hasStickyAction is false.
8
8
  */
9
9
  export default function PostStickyCheck({ children }: {
10
- children: React.ReactElement;
11
- }): React.ReactElement;
10
+ children: React.ReactNode;
11
+ }): React.ReactNode;
12
12
  //# sourceMappingURL=check.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-sticky/check.js"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,sDAJG;IAAkC,QAAQ,EAAlC,KAAK,CAAC,YAAY;CAE1B,GAAS,KAAK,CAAC,YAAY,CAgB7B"}
1
+ {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-sticky/check.js"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,sDAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,SAAS,CAgB1B"}
@@ -4,9 +4,9 @@
4
4
  * @param {Object} props The component props.
5
5
  * @param {React.ReactNode} props.children The children components to render.
6
6
  *
7
- * @return {React.ReactElement} The rendered children components or null if the current post type has no taxonomies.
7
+ * @return {React.ReactNode} The rendered children components or null if the current post type has no taxonomies.
8
8
  */
9
9
  export default function PostTaxonomiesCheck({ children }: {
10
10
  children: React.ReactNode;
11
- }): React.ReactElement;
11
+ }): React.ReactNode;
12
12
  //# sourceMappingURL=check.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/check.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,0DAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,YAAY,CAiB7B"}
1
+ {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/check.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,0DAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,SAAS,CAiB1B"}
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * Wrapper component that renders its children only if the post can be trashed.
3
3
  *
4
- * @param {Object} props The component props.
5
- * @param {React.ReactElement} props.children The child components.
4
+ * @param {Object} props The component props.
5
+ * @param {React.ReactNode} props.children The child components.
6
6
  *
7
- * @return {React.ReactElement | null} The rendered child components or null if the post can't be trashed.
7
+ * @return {React.ReactNode} The rendered child components or null if the post can't be trashed.
8
8
  */
9
9
  export default function PostTrashCheck({ children }: {
10
- children: React.ReactElement;
11
- }): React.ReactElement | null;
10
+ children: React.ReactNode;
11
+ }): React.ReactNode;
12
12
  //# sourceMappingURL=check.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-trash/check.js"],"names":[],"mappings":"AAYA;;;;;;;GAOG;AACH,qDAJG;IAAkC,QAAQ,EAAlC,KAAK,CAAC,YAAY;CAE1B,GAAS,KAAK,CAAC,YAAY,GAAG,IAAI,CA8BpC"}
1
+ {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-trash/check.js"],"names":[],"mappings":"AAYA;;;;;;;GAOG;AACH,qDAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,SAAS,CA8B1B"}
@@ -3,16 +3,16 @@ export default PostTypeSupportCheck;
3
3
  * A component which renders its own children only if the current editor post
4
4
  * type supports one of the given `supportKeys` prop.
5
5
  *
6
- * @param {Object} props Props.
7
- * @param {React.ReactElement} props.children Children to be rendered if post
8
- * type supports.
9
- * @param {(string|string[])} props.supportKeys String or string array of keys
10
- * to test.
6
+ * @param {Object} props Props.
7
+ * @param {React.ReactNode} props.children Children to be rendered if post
8
+ * type supports.
9
+ * @param {(string|string[])} props.supportKeys String or string array of keys
10
+ * to test.
11
11
  *
12
- * @return {React.ReactElement} The component to be rendered.
12
+ * @return {React.ReactNode} The component to be rendered.
13
13
  */
14
14
  declare function PostTypeSupportCheck({ children, supportKeys }: {
15
- children: React.ReactElement;
15
+ children: React.ReactNode;
16
16
  supportKeys: (string | string[]);
17
- }): React.ReactElement;
17
+ }): React.ReactNode;
18
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-type-support-check/index.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;GAWG;AACH,iEAPG;IAAkC,QAAQ,EAAlC,KAAK,CAAC,YAAY;IAEQ,WAAW,EAArC,CAAC,MAAM,GAAC,MAAM,EAAE,CAAC;CAGzB,GAAS,KAAK,CAAC,YAAY,CAoB7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-type-support-check/index.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;GAWG;AACH,iEAPG;IAAiC,QAAQ,EAAjC,KAAK,CAAC,SAAS;IAEU,WAAW,EAApC,CAAC,MAAM,GAAC,MAAM,EAAE,CAAC;CAGzB,GAAS,KAAK,CAAC,SAAS,CAoB1B"}
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * Check if the post URL is valid and visible.
3
3
  *
4
- * @param {Object} props The component props.
5
- * @param {React.ReactElement} props.children The child components.
4
+ * @param {Object} props The component props.
5
+ * @param {React.ReactNode} props.children The child components.
6
6
  *
7
- * @return {React.ReactElement} The child components if the post URL is valid and visible, otherwise null.
7
+ * @return {React.ReactNode} The child components if the post URL is valid and visible, otherwise null.
8
8
  */
9
9
  export default function PostURLCheck({ children }: {
10
- children: React.ReactElement;
11
- }): React.ReactElement;
10
+ children: React.ReactNode;
11
+ }): React.ReactNode;
12
12
  //# sourceMappingURL=check.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/check.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,mDAJG;IAAkC,QAAQ,EAAlC,KAAK,CAAC,YAAY;CAE1B,GAAS,KAAK,CAAC,YAAY,CA4B7B"}
1
+ {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/check.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,mDAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,SAAS,CA4B1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/start-page-options/index.js"],"names":[],"mappings":"AAaA,iDAoCC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/start-page-options/index.js"],"names":[],"mappings":"AAaA,iDA4CC"}
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * Checks if the current theme supports specific features and renders the children if supported.
3
3
  *
4
- * @param {Object} props The component props.
5
- * @param {React.ReactElement} props.children The children to render if the theme supports the specified features.
6
- * @param {string|string[]} props.supportKeys The key(s) of the theme support(s) to check.
4
+ * @param {Object} props The component props.
5
+ * @param {React.ReactNode} props.children The children to render if the theme supports the specified features.
6
+ * @param {string|string[]} props.supportKeys The key(s) of the theme support(s) to check.
7
7
  *
8
- * @return {React.ReactElement} The rendered children if the theme supports the specified features, otherwise null.
8
+ * @return {React.ReactNode} The rendered children if the theme supports the specified features, otherwise null.
9
9
  */
10
10
  export default function ThemeSupportCheck({ children, supportKeys }: {
11
- children: React.ReactElement;
11
+ children: React.ReactNode;
12
12
  supportKeys: string | string[];
13
- }): React.ReactElement;
13
+ }): React.ReactNode;
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/theme-support-check/index.js"],"names":[],"mappings":"AAWA;;;;;;;;GAQG;AACH,qEALG;IAAkC,QAAQ,EAAlC,KAAK,CAAC,YAAY;IACQ,WAAW,EAArC,MAAM,GAAC,MAAM,EAAE;CAEvB,GAAS,KAAK,CAAC,YAAY,CA6B7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/theme-support-check/index.js"],"names":[],"mappings":"AAWA;;;;;;;;GAQG;AACH,qEALG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;IACQ,WAAW,EAAlC,MAAM,GAAC,MAAM,EAAE;CAEvB,GAAS,KAAK,CAAC,SAAS,CA6B1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AA+BA,6BAA8B"}
1
+ {"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AAmCA,6BAA8B"}
@@ -345,19 +345,19 @@ export function isEditorPanelRemoved(state: Object, panelName: string): boolean;
345
345
  /**
346
346
  * Returns the current selection start.
347
347
  *
348
+ * @deprecated since Gutenberg 10.0.0.
349
+ *
348
350
  * @param {Object} state
349
351
  * @return {WPBlockSelection} The selection start.
350
- *
351
- * @deprecated since Gutenberg 10.0.0.
352
352
  */
353
353
  export function getEditorSelectionStart(state: Object): WPBlockSelection;
354
354
  /**
355
355
  * Returns the current selection end.
356
356
  *
357
+ * @deprecated since Gutenberg 10.0.0.
358
+ *
357
359
  * @param {Object} state
358
360
  * @return {WPBlockSelection} The selection end.
359
- *
360
- * @deprecated since Gutenberg 10.0.0.
361
361
  */
362
362
  export function getEditorSelectionEnd(state: Object): WPBlockSelection;
363
363
  /**
@@ -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,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;GAEG;AACH;;;;EAEE;AAEF;;GAEG;AACH;;;;EAEE;AAEF;;GAEG;AACH;;;;EAEE;AAEF;;GAEG;AACH;;;;EAEE;AAEF;;GAEG;AACH;;;;EAEE;AAEF;;GAEG;AACH;;;;EAAuE;AAEvE;;GAEG;AACH;;;;EAAuE;AAEvE;;GAEG;AACH;;;;EAA2E;AAE3E;;GAEG;AACH;;;;EAEE;AAEF;;GAEG;AACH;;;;EAEE;AAEF;;GAEG;AACH;;;;EAA+E;AAE/E;;GAEG;AACH;;;;EAA6E;AAE7E;;GAEG;AACH;;;;EACgD;AAEhD;;GAEG;AACH;;;;EAAqE;AAErE;;GAEG;AACH;;;;EAA6D;AAE7D;;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.16.0",
3
+ "version": "14.17.1",
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.16.0",
38
- "@wordpress/api-fetch": "^7.16.0",
39
- "@wordpress/blob": "^4.16.0",
40
- "@wordpress/block-editor": "^14.11.0",
41
- "@wordpress/blocks": "^14.5.0",
42
- "@wordpress/commands": "^1.16.0",
43
- "@wordpress/components": "^29.2.0",
44
- "@wordpress/compose": "^7.16.0",
45
- "@wordpress/core-data": "^7.16.0",
46
- "@wordpress/data": "^10.16.0",
47
- "@wordpress/dataviews": "^4.12.0",
48
- "@wordpress/date": "^5.16.0",
49
- "@wordpress/deprecated": "^4.16.0",
50
- "@wordpress/dom": "^4.16.0",
51
- "@wordpress/element": "^6.16.0",
52
- "@wordpress/fields": "^0.8.0",
53
- "@wordpress/hooks": "^4.16.0",
54
- "@wordpress/html-entities": "^4.16.0",
55
- "@wordpress/i18n": "^5.16.0",
56
- "@wordpress/icons": "^10.16.0",
57
- "@wordpress/interface": "^9.1.0",
58
- "@wordpress/keyboard-shortcuts": "^5.16.0",
59
- "@wordpress/keycodes": "^4.16.0",
60
- "@wordpress/media-utils": "^5.16.0",
61
- "@wordpress/notices": "^5.16.0",
62
- "@wordpress/patterns": "^2.16.0",
63
- "@wordpress/plugins": "^7.16.0",
64
- "@wordpress/preferences": "^4.16.0",
65
- "@wordpress/private-apis": "^1.16.0",
66
- "@wordpress/reusable-blocks": "^5.16.0",
67
- "@wordpress/rich-text": "^7.16.0",
68
- "@wordpress/server-side-render": "^5.16.0",
69
- "@wordpress/url": "^4.16.0",
70
- "@wordpress/warning": "^3.16.0",
71
- "@wordpress/wordcount": "^4.16.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": "f48b9f56629e400891abb5ae491504de475237ff"
91
+ "gitHead": "05adbeff7892ddc5d5a52b816503d722ae7fc3e0"
92
92
  }
@@ -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 ) => {
@@ -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 {
@@ -68,6 +68,7 @@ function Header( {
68
68
  showIconLabels,
69
69
  hasFixedToolbar,
70
70
  hasBlockSelection,
71
+ hasSectionRootClientId,
71
72
  } = useSelect( ( select ) => {
72
73
  const { get: getPreference } = select( preferencesStore );
73
74
  const {
@@ -75,6 +76,9 @@ function Header( {
75
76
  getCurrentPostType,
76
77
  isPublishSidebarOpened: _isPublishSidebarOpened,
77
78
  } = select( editorStore );
79
+ const { getBlockSelectionStart, getSectionRootClientId } = unlock(
80
+ select( blockEditorStore )
81
+ );
78
82
 
79
83
  return {
80
84
  postType: getCurrentPostType(),
@@ -82,20 +86,21 @@ function Header( {
82
86
  isPublishSidebarOpened: _isPublishSidebarOpened(),
83
87
  showIconLabels: getPreference( 'core', 'showIconLabels' ),
84
88
  hasFixedToolbar: getPreference( 'core', 'fixedToolbar' ),
85
- hasBlockSelection:
86
- !! select( blockEditorStore ).getBlockSelectionStart(),
89
+ hasBlockSelection: !! getBlockSelectionStart(),
90
+ hasSectionRootClientId: !! getSectionRootClientId(),
87
91
  };
88
92
  }, [] );
89
93
 
90
- const canBeZoomedOut = [ 'post', 'page', 'wp_template' ].includes(
91
- postType
92
- );
94
+ const canBeZoomedOut =
95
+ [ 'post', 'page', 'wp_template' ].includes( postType ) &&
96
+ hasSectionRootClientId;
93
97
 
94
- const disablePreviewOption = [
95
- NAVIGATION_POST_TYPE,
96
- TEMPLATE_PART_POST_TYPE,
97
- PATTERN_POST_TYPE,
98
- ].includes( postType );
98
+ const disablePreviewOption =
99
+ [
100
+ NAVIGATION_POST_TYPE,
101
+ TEMPLATE_PART_POST_TYPE,
102
+ PATTERN_POST_TYPE,
103
+ ].includes( postType ) || forceDisableBlockTools;
99
104
 
100
105
  const [ isBlockToolsCollapsed, setIsBlockToolsCollapsed ] =
101
106
  useState( true );
@@ -107,12 +112,6 @@ function Header( {
107
112
  ( ! hasBlockSelection || isBlockToolsCollapsed ) ) );
108
113
  const hasBackButton = useHasBackButton();
109
114
 
110
- const hasSectionRootClientId = useSelect(
111
- ( select ) =>
112
- !! unlock( select( blockEditorStore ) ).getSectionRootClientId(),
113
- []
114
- );
115
-
116
115
  /*
117
116
  * The edit-post-header classname is only kept for backward compatibility
118
117
  * as some plugins might be relying on its presence.
@@ -180,11 +179,9 @@ function Header( {
180
179
  forceIsAutosaveable={ forceIsDirty }
181
180
  />
182
181
 
183
- { canBeZoomedOut &&
184
- isWideViewport &&
185
- hasSectionRootClientId && (
186
- <ZoomOutToggle disabled={ forceDisableBlockTools } />
187
- ) }
182
+ { isWideViewport && canBeZoomedOut && (
183
+ <ZoomOutToggle disabled={ forceDisableBlockTools } />
184
+ ) }
188
185
 
189
186
  { ( isWideViewport || ! showIconLabels ) && (
190
187
  <PinnedItems.Slot scope="core" />
@@ -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 ) => {