@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
@@ -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) {
@@ -2167,7 +2155,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2167
2155
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2168
2156
  padding: 6px 8px;
2169
2157
  box-shadow: 0 0 0 transparent;
2170
- transition: box-shadow 0.1s linear;
2171
2158
  border-radius: 2px;
2172
2159
  border: 1px solid #949494;
2173
2160
  /* Fonts smaller than 16px causes mobile safari to zoom. */
@@ -2185,10 +2172,9 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2185
2172
  position: relative;
2186
2173
  margin-top: 2px;
2187
2174
  }
2188
- @media (prefers-reduced-motion: reduce) {
2175
+ @media not (prefers-reduced-motion) {
2189
2176
  .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio] {
2190
- transition-duration: 0s;
2191
- transition-delay: 0s;
2177
+ transition: box-shadow 0.1s linear;
2192
2178
  }
2193
2179
  }
2194
2180
  @media (min-width: 600px) {
@@ -2264,7 +2250,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2264
2250
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2265
2251
  padding: 6px 8px;
2266
2252
  box-shadow: 0 0 0 transparent;
2267
- transition: box-shadow 0.1s linear;
2268
2253
  border-radius: 2px;
2269
2254
  border: 1px solid #949494;
2270
2255
  /* Fonts smaller than 16px causes mobile safari to zoom. */
@@ -2274,10 +2259,9 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2274
2259
  margin-left: 32px;
2275
2260
  width: calc(100% - 32px);
2276
2261
  }
2277
- @media (prefers-reduced-motion: reduce) {
2262
+ @media not (prefers-reduced-motion) {
2278
2263
  .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text] {
2279
- transition-duration: 0s;
2280
- transition-delay: 0s;
2264
+ transition: box-shadow 0.1s linear;
2281
2265
  }
2282
2266
  }
2283
2267
  @media (min-width: 600px) {
@@ -2656,4 +2640,24 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2656
2640
  .editor-visual-editor.is-scrollable .block-editor-block-canvas > .block-editor-iframe__container > .block-editor-iframe__scale-container {
2657
2641
  flex: 1 0 fit-content;
2658
2642
  display: flow-root;
2643
+ }
2644
+
2645
+ .editor-fields-content-preview {
2646
+ display: flex;
2647
+ flex-direction: column;
2648
+ height: 100%;
2649
+ border-radius: 4px;
2650
+ }
2651
+ .dataviews-view-table .editor-fields-content-preview {
2652
+ width: 96px;
2653
+ flex-grow: 0;
2654
+ }
2655
+ .editor-fields-content-preview .block-editor-block-preview__container,
2656
+ .editor-fields-content-preview .editor-fields-content-preview__empty {
2657
+ margin-top: auto;
2658
+ margin-bottom: auto;
2659
+ }
2660
+
2661
+ .editor-fields-content-preview__empty {
2662
+ text-align: center;
2659
2663
  }
@@ -3,7 +3,11 @@ declare const _default: {
3
3
  name: string;
4
4
  className: string;
5
5
  triggerPrefix: string;
6
- useItems(filterValue: any): any[];
6
+ useItems(filterValue: any): {
7
+ key: string;
8
+ value: import("@wordpress/core-data").User<"edit">;
9
+ label: import("react").JSX.Element;
10
+ }[][];
7
11
  getOptionCompletion(user: any): string;
8
12
  };
9
13
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/index.js"],"names":[],"mappings":"AA0NA;;GAEG;AACH,4EAwJC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/index.js"],"names":[],"mappings":"AAwNA;;GAEG;AACH,4EAuJC"}
@@ -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":";AAkDA;;;;;;gCA0JC"}
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"}
@@ -1,6 +1,6 @@
1
1
  export function useAuthorsQuery(search: any): {
2
2
  authorId: any;
3
3
  authorOptions: any[];
4
- postAuthor: any;
4
+ postAuthor: import("@wordpress/core-data").User<"edit"> | undefined;
5
5
  };
6
6
  //# sourceMappingURL=hook.d.ts.map
@@ -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 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-preview-button/index.js"],"names":[],"mappings":"AAqGA;;;;;;;;;;;;;;GAcG;AACH,6GARG;IAAwB,SAAS,EAAzB,MAAM;IACU,WAAW,EAA3B,MAAM;IACU,mBAAmB,EAAnC,OAAO;IACS,IAAI,EAApB,MAAM;IACU,SAAS;CAEjC,GAAS,KAAK,CAAC,SAAS,CA0F1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-preview-button/index.js"],"names":[],"mappings":"AAqGA;;;;;;;;;;;;;;GAcG;AACH,6GARG;IAAwB,SAAS,EAAzB,MAAM;IACU,WAAW,EAA3B,MAAM;IACU,mBAAmB,EAAnC,OAAO;IACS,IAAI,EAApB,MAAM;IACU,SAAS;CAEjC,GAAS,KAAK,CAAC,SAAS,CA8F1B"}
@@ -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,5 +1,5 @@
1
1
  export function PostTaxonomies({ taxonomyWrapper }: {
2
2
  taxonomyWrapper?: ((x: any) => any) | undefined;
3
- }): any;
3
+ }): import("react").JSX.Element[];
4
4
  export default PostTaxonomies;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/index.js"],"names":[],"mappings":"AAgBA;;QAkCC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/index.js"],"names":[],"mappings":"AAgBA;;kCAkCC"}
@@ -3,6 +3,6 @@ export function useEditedPostContext(): {
3
3
  postType: string;
4
4
  };
5
5
  export function useAllowSwitchingTemplates(): boolean;
6
- export function useAvailableTemplates(postType: any): false | (import("@wordpress/core-data").Attachment<any> | import("@wordpress/core-data").Comment<any> | import("@wordpress/core-data").GlobalStylesRevision<any> | import("@wordpress/core-data").MenuLocation<any> | import("@wordpress/core-data").NavMenu<any> | import("@wordpress/core-data").NavMenuItem<any> | import("@wordpress/core-data").Page<any> | import("@wordpress/core-data").Plugin<any> | import("@wordpress/core-data").Post<any> | import("@wordpress/core-data").PostRevision<any> | import("@wordpress/core-data").Settings<any> | import("@wordpress/core-data").Sidebar<any> | import("@wordpress/core-data").Taxonomy<any> | import("@wordpress/core-data").Theme<any> | import("@wordpress/core-data").User<any> | import("@wordpress/core-data").Type<any> | import("@wordpress/core-data").Widget<any> | import("@wordpress/core-data").WidgetType<any> | import("@wordpress/core-data").WpTemplate<any> | import("@wordpress/core-data").WpTemplatePart<any> | Partial<import("@wordpress/core-data").Attachment<any> | import("@wordpress/core-data").Comment<any> | import("@wordpress/core-data").GlobalStylesRevision<any> | import("@wordpress/core-data").MenuLocation<any> | import("@wordpress/core-data").NavMenu<any> | import("@wordpress/core-data").NavMenuItem<any> | import("@wordpress/core-data").Page<any> | import("@wordpress/core-data").Plugin<any> | import("@wordpress/core-data").Post<any> | import("@wordpress/core-data").PostRevision<any> | import("@wordpress/core-data").Settings<any> | import("@wordpress/core-data").Sidebar<any> | import("@wordpress/core-data").Taxonomy<any> | import("@wordpress/core-data").Theme<any> | import("@wordpress/core-data").User<any> | import("@wordpress/core-data").Type<any> | import("@wordpress/core-data").Widget<any> | import("@wordpress/core-data").WidgetType<any> | import("@wordpress/core-data").WpTemplate<any> | import("@wordpress/core-data").WpTemplatePart<any>>)[] | undefined;
6
+ export function useAvailableTemplates(postType: any): false | (import("@wordpress/core-data").UnstableBase<any> | import("@wordpress/core-data").Attachment<any> | import("@wordpress/core-data").Comment<any> | import("@wordpress/core-data").GlobalStylesRevision<any> | import("@wordpress/core-data").MenuLocation<any> | import("@wordpress/core-data").NavMenu<any> | import("@wordpress/core-data").NavMenuItem<any> | import("@wordpress/core-data").Page<any> | import("@wordpress/core-data").Plugin<any> | import("@wordpress/core-data").Post<any> | import("@wordpress/core-data").PostStatusObject<any> | import("@wordpress/core-data").PostRevision<any> | import("@wordpress/core-data").Settings<any> | import("@wordpress/core-data").Sidebar<any> | import("@wordpress/core-data").Taxonomy<any> | import("@wordpress/core-data").Theme<any> | import("@wordpress/core-data").User<any> | import("@wordpress/core-data").Type<any> | import("@wordpress/core-data").Widget<any> | import("@wordpress/core-data").WidgetType<any> | import("@wordpress/core-data").WpTemplate<any> | import("@wordpress/core-data").WpTemplatePart<any> | Partial<import("@wordpress/core-data").UnstableBase<any> | import("@wordpress/core-data").Attachment<any> | import("@wordpress/core-data").Comment<any> | import("@wordpress/core-data").GlobalStylesRevision<any> | import("@wordpress/core-data").MenuLocation<any> | import("@wordpress/core-data").NavMenu<any> | import("@wordpress/core-data").NavMenuItem<any> | import("@wordpress/core-data").Page<any> | import("@wordpress/core-data").Plugin<any> | import("@wordpress/core-data").Post<any> | import("@wordpress/core-data").PostStatusObject<any> | import("@wordpress/core-data").PostRevision<any> | import("@wordpress/core-data").Settings<any> | import("@wordpress/core-data").Sidebar<any> | import("@wordpress/core-data").Taxonomy<any> | import("@wordpress/core-data").Theme<any> | import("@wordpress/core-data").User<any> | import("@wordpress/core-data").Type<any> | import("@wordpress/core-data").Widget<any> | import("@wordpress/core-data").WidgetType<any> | import("@wordpress/core-data").WpTemplate<any> | import("@wordpress/core-data").WpTemplatePart<any>>)[] | undefined;
7
7
  export function useCurrentTemplateSlug(): any;
8
8
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/hooks.js"],"names":[],"mappings":"AAYA;;;EAQC;AACD,sDA0BC;AAaD,+7DAeC;AAED,8CAuBC"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/hooks.js"],"names":[],"mappings":"AAYA;;;EAQC;AACD,sDA0BC;AAaD,mpEAeC;AAED,8CAuBC"}
@@ -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"}
@@ -6,14 +6,14 @@
6
6
  *
7
7
  * All modification and changes are performed to the `@wordpress/core-data` store.
8
8
  *
9
- * @param {Object} props The component props.
10
- * @param {Object} [props.post] The post object to edit. This is required.
11
- * @param {Object} [props.__unstableTemplate] The template object wrapper the edited post.
12
- * This is optional and can only be used when the post type supports templates (like posts and pages).
13
- * @param {Object} [props.settings] The settings object to use for the editor.
14
- * This is optional and can be used to override the default settings.
15
- * @param {Element} [props.children] Children elements for which the BlockEditorProvider context should apply.
16
- * This is optional.
9
+ * @param {Object} props The component props.
10
+ * @param {Object} [props.post] The post object to edit. This is required.
11
+ * @param {Object} [props.__unstableTemplate] The template object wrapper the edited post.
12
+ * This is optional and can only be used when the post type supports templates (like posts and pages).
13
+ * @param {Object} [props.settings] The settings object to use for the editor.
14
+ * This is optional and can be used to override the default settings.
15
+ * @param {React.ReactNode} [props.children] Children elements for which the BlockEditorProvider context should apply.
16
+ * This is optional.
17
17
  *
18
18
  * @example
19
19
  * ```jsx
@@ -32,7 +32,7 @@ export function EditorProvider(props: {
32
32
  post?: Object | undefined;
33
33
  __unstableTemplate?: Object | undefined;
34
34
  settings?: Object | undefined;
35
- children?: Element | undefined;
35
+ children?: React.ReactNode;
36
36
  }): React.ReactNode;
37
37
  /**
38
38
  * This component provides the editor context and manages the state of the block editor.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AAiYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAwB,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ;CAGhC,GAWS,KAAK,CAAC,SAAS,CAW1B;AAvSD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GAoOE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AA6YA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAgC,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ,GAAhC,KAAK,CAAC,SAAS;CAGvB,GAWS,KAAK,CAAC,SAAS,CAW1B;AA9SD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GA2OE"}
@@ -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"}
@@ -5,7 +5,7 @@
5
5
  * user is focusing on editing page content and clicks on a disabled template
6
6
  * block.
7
7
  * - Displays a 'Edit your template to edit this block' dialog when the user
8
- * is focusing on editing page conetnt and double clicks on a disabled
8
+ * is focusing on editing page content and double clicks on a disabled
9
9
  * template block.
10
10
  *
11
11
  * @param {Object} props
@@ -0,0 +1,5 @@
1
+ import type { BasePost } from '@wordpress/fields';
2
+ export default function PostPreviewView({ item }: {
3
+ item: BasePost;
4
+ }): import("react").JSX.Element;
5
+ //# sourceMappingURL=content-preview-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-preview-view.d.ts","sourceRoot":"","sources":["../../../../src/dataviews/fields/content-preview/content-preview-view.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAuDlD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAE,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,+BA2CpE"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * WordPress dependencies
3
+ */
4
+ import type { Field } from '@wordpress/dataviews';
5
+ import type { BasePost } from '@wordpress/fields';
6
+ declare const postPreviewField: Field<BasePost>;
7
+ export default postPreviewField;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dataviews/fields/content-preview/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAQlD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAE,QAAQ,CAMtC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAsC1D,wBAAgB,oBAAoB,CAAE,IAAI,EACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,CAAE,IAAI,CAAE;;;;;EAQtB;AAED,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;;;;;EAQhB;AAED,wBAAgB,mBAAmB,CAAE,IAAI,EACxC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,CAAE,IAAI,CAAE;;;;;EAQrB;AAED,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM;;;;;EAQf;AAED,wBAAgB,UAAU,CAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;EAMrD;AAED,eAAO,MAAM,sBAAsB,aACtB,MAAM,oBACI;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,kBA0GtC,CAAC"}
1
+ {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAuC1D,wBAAgB,oBAAoB,CAAE,IAAI,EACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,CAAE,IAAI,CAAE;;;;;EAQtB;AAED,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;;;;;EAQhB;AAED,wBAAgB,mBAAmB,CAAE,IAAI,EACxC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,CAAE,IAAI,CAAE;;;;;EAQrB;AAED,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM;;;;;EAQf;AAED,wBAAgB,UAAU,CAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;EAMrD;AAED,eAAO,MAAM,sBAAsB,aACtB,MAAM,oBACI;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,kBA6GtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AA+EA,sDAEC;AACD,6DAEC;AAkFD,2GAEC;AAED,mEAEC;AAED,yGAEC;AA7ID;;;;;;GAMG;AACH;;;;EAmCE;AAeF;;;;EAiCE;AAEF;;;;;;;;;GASG;AACH;;;;EA2BE;AAcF;;;;;;;;GAQG;AACH;;;;EAsBE"}
1
+ {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAgFA,sDAEC;AACD,6DAEC;AAwFD,2GAEC;AAED,mEAEC;AAED,yGAEC;AAnJD;;;;;;GAMG;AACH;;;;EAmCE;AAeF;;;;EAuCE;AAEF;;;;;;;;;GASG;AACH;;;;EA2BE;AAcF;;;;;;;;GAQG;AACH;;;;EAsBE"}
@@ -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
  /**
@@ -1142,7 +1142,7 @@ export const __experimentalGetTemplateInfo: {
1142
1142
  * @return {string|undefined} The post type label if available, otherwise undefined.
1143
1143
  */
1144
1144
  export const getPostTypeLabel: {
1145
- (state?: any): any;
1145
+ (state?: any): string | undefined;
1146
1146
  isRegistrySelector?: boolean;
1147
1147
  registry?: any;
1148
1148
  };