@wordpress/editor 14.4.0 → 14.5.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 (222) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/bindings/post-meta.js +12 -0
  3. package/build/bindings/post-meta.js.map +1 -1
  4. package/build/components/blog-title/index.js +1 -1
  5. package/build/components/blog-title/index.js.map +1 -1
  6. package/build/components/commands/index.js +8 -2
  7. package/build/components/commands/index.js.map +1 -1
  8. package/build/components/document-bar/index.js +1 -1
  9. package/build/components/document-bar/index.js.map +1 -1
  10. package/build/components/header/index.js +2 -3
  11. package/build/components/header/index.js.map +1 -1
  12. package/build/components/page-attributes/parent.js +6 -2
  13. package/build/components/page-attributes/parent.js.map +1 -1
  14. package/build/components/post-actions/actions.js +38 -344
  15. package/build/components/post-actions/actions.js.map +1 -1
  16. package/build/components/post-actions/index.js +16 -6
  17. package/build/components/post-actions/index.js.map +1 -1
  18. package/build/components/post-author/hook.js +10 -3
  19. package/build/components/post-author/hook.js.map +1 -1
  20. package/build/components/post-author/panel.js +2 -1
  21. package/build/components/post-author/panel.js.map +1 -1
  22. package/build/components/post-card-panel/index.js +1 -1
  23. package/build/components/post-card-panel/index.js.map +1 -1
  24. package/build/components/post-comments/index.js +6 -20
  25. package/build/components/post-comments/index.js.map +1 -1
  26. package/build/components/post-status/index.js +17 -41
  27. package/build/components/post-status/index.js.map +1 -1
  28. package/build/components/post-template/create-new-template-modal.js +3 -0
  29. package/build/components/post-template/create-new-template-modal.js.map +1 -1
  30. package/build/components/post-url/panel.js +3 -2
  31. package/build/components/post-url/panel.js.map +1 -1
  32. package/build/components/preview-dropdown/index.js +82 -17
  33. package/build/components/preview-dropdown/index.js.map +1 -1
  34. package/build/components/provider/disable-non-page-content-blocks.js +14 -18
  35. package/build/components/provider/disable-non-page-content-blocks.js.map +1 -1
  36. package/build/components/site-discussion/index.js +6 -20
  37. package/build/components/site-discussion/index.js.map +1 -1
  38. package/build/components/template-content-panel/index.js +14 -12
  39. package/build/components/template-content-panel/index.js.map +1 -1
  40. package/build/components/visual-editor/index.js +2 -1
  41. package/build/components/visual-editor/index.js.map +1 -1
  42. package/build/dataviews/actions/export-pattern.native.js +9 -0
  43. package/build/dataviews/actions/export-pattern.native.js.map +1 -0
  44. package/build/dataviews/actions/permanently-delete-post.js +107 -0
  45. package/build/dataviews/actions/permanently-delete-post.js.map +1 -0
  46. package/build/dataviews/actions/restore-post.js +112 -0
  47. package/build/dataviews/actions/restore-post.js.map +1 -0
  48. package/build/dataviews/actions/trash-post.js +142 -0
  49. package/build/dataviews/actions/trash-post.js.map +1 -0
  50. package/build/dataviews/store/private-actions.js +45 -0
  51. package/build/dataviews/store/private-actions.js.map +1 -1
  52. package/build/dataviews/store/private-selectors.js +10 -10
  53. package/build/dataviews/store/private-selectors.js.map +1 -1
  54. package/build/dataviews/store/reducer.js +15 -1
  55. package/build/dataviews/store/reducer.js.map +1 -1
  56. package/build/dataviews/types.js.map +1 -1
  57. package/build/private-apis.js +0 -2
  58. package/build/private-apis.js.map +1 -1
  59. package/build/store/actions.js +16 -2
  60. package/build/store/actions.js.map +1 -1
  61. package/build/store/private-actions.js +8 -1
  62. package/build/store/private-actions.js.map +1 -1
  63. package/build/store/private-selectors.js +33 -2
  64. package/build/store/private-selectors.js.map +1 -1
  65. package/build-module/bindings/post-meta.js +12 -0
  66. package/build-module/bindings/post-meta.js.map +1 -1
  67. package/build-module/components/blog-title/index.js +1 -1
  68. package/build-module/components/blog-title/index.js.map +1 -1
  69. package/build-module/components/commands/index.js +8 -2
  70. package/build-module/components/commands/index.js.map +1 -1
  71. package/build-module/components/document-bar/index.js +1 -1
  72. package/build-module/components/document-bar/index.js.map +1 -1
  73. package/build-module/components/header/index.js +2 -3
  74. package/build-module/components/header/index.js.map +1 -1
  75. package/build-module/components/page-attributes/parent.js +7 -3
  76. package/build-module/components/page-attributes/parent.js.map +1 -1
  77. package/build-module/components/post-actions/actions.js +44 -350
  78. package/build-module/components/post-actions/actions.js.map +1 -1
  79. package/build-module/components/post-actions/index.js +16 -6
  80. package/build-module/components/post-actions/index.js.map +1 -1
  81. package/build-module/components/post-author/hook.js +10 -3
  82. package/build-module/components/post-author/hook.js.map +1 -1
  83. package/build-module/components/post-author/panel.js +2 -1
  84. package/build-module/components/post-author/panel.js.map +1 -1
  85. package/build-module/components/post-card-panel/index.js +1 -1
  86. package/build-module/components/post-card-panel/index.js.map +1 -1
  87. package/build-module/components/post-comments/index.js +7 -23
  88. package/build-module/components/post-comments/index.js.map +1 -1
  89. package/build-module/components/post-status/index.js +19 -43
  90. package/build-module/components/post-status/index.js.map +1 -1
  91. package/build-module/components/post-template/create-new-template-modal.js +3 -0
  92. package/build-module/components/post-template/create-new-template-modal.js.map +1 -1
  93. package/build-module/components/post-url/panel.js +4 -5
  94. package/build-module/components/post-url/panel.js.map +1 -1
  95. package/build-module/components/preview-dropdown/index.js +84 -19
  96. package/build-module/components/preview-dropdown/index.js.map +1 -1
  97. package/build-module/components/provider/disable-non-page-content-blocks.js +15 -19
  98. package/build-module/components/provider/disable-non-page-content-blocks.js.map +1 -1
  99. package/build-module/components/site-discussion/index.js +7 -21
  100. package/build-module/components/site-discussion/index.js.map +1 -1
  101. package/build-module/components/template-content-panel/index.js +15 -13
  102. package/build-module/components/template-content-panel/index.js.map +1 -1
  103. package/build-module/components/visual-editor/index.js +2 -1
  104. package/build-module/components/visual-editor/index.js.map +1 -1
  105. package/build-module/dataviews/actions/export-pattern.native.js +3 -0
  106. package/build-module/dataviews/actions/export-pattern.native.js.map +1 -0
  107. package/build-module/dataviews/actions/permanently-delete-post.js +99 -0
  108. package/build-module/dataviews/actions/permanently-delete-post.js.map +1 -0
  109. package/build-module/dataviews/actions/restore-post.js +104 -0
  110. package/build-module/dataviews/actions/restore-post.js.map +1 -0
  111. package/build-module/dataviews/actions/trash-post.js +135 -0
  112. package/build-module/dataviews/actions/trash-post.js.map +1 -0
  113. package/build-module/dataviews/store/private-actions.js +40 -0
  114. package/build-module/dataviews/store/private-actions.js.map +1 -1
  115. package/build-module/dataviews/store/private-selectors.js +8 -9
  116. package/build-module/dataviews/store/private-selectors.js.map +1 -1
  117. package/build-module/dataviews/store/reducer.js +15 -1
  118. package/build-module/dataviews/store/reducer.js.map +1 -1
  119. package/build-module/dataviews/types.js.map +1 -1
  120. package/build-module/private-apis.js +0 -2
  121. package/build-module/private-apis.js.map +1 -1
  122. package/build-module/store/actions.js +16 -2
  123. package/build-module/store/actions.js.map +1 -1
  124. package/build-module/store/private-actions.js +8 -1
  125. package/build-module/store/private-actions.js.map +1 -1
  126. package/build-module/store/private-selectors.js +32 -2
  127. package/build-module/store/private-selectors.js.map +1 -1
  128. package/build-style/style-rtl.css +19 -3
  129. package/build-style/style.css +19 -3
  130. package/build-types/bindings/post-meta.d.ts +6 -0
  131. package/build-types/bindings/post-meta.d.ts.map +1 -1
  132. package/build-types/components/commands/index.d.ts.map +1 -1
  133. package/build-types/components/header/index.d.ts.map +1 -1
  134. package/build-types/components/page-attributes/parent.d.ts.map +1 -1
  135. package/build-types/components/post-actions/actions.d.ts.map +1 -1
  136. package/build-types/components/post-actions/index.d.ts.map +1 -1
  137. package/build-types/components/post-author/hook.d.ts +1 -1
  138. package/build-types/components/post-author/hook.d.ts.map +1 -1
  139. package/build-types/components/post-author/panel.d.ts.map +1 -1
  140. package/build-types/components/post-comments/index.d.ts.map +1 -1
  141. package/build-types/components/post-status/index.d.ts +2 -1
  142. package/build-types/components/post-status/index.d.ts.map +1 -1
  143. package/build-types/components/post-template/create-new-template-modal.d.ts.map +1 -1
  144. package/build-types/components/post-url/panel.d.ts.map +1 -1
  145. package/build-types/components/preview-dropdown/index.d.ts.map +1 -1
  146. package/build-types/components/provider/disable-non-page-content-blocks.d.ts.map +1 -1
  147. package/build-types/components/site-discussion/index.d.ts.map +1 -1
  148. package/build-types/components/template-content-panel/index.d.ts.map +1 -1
  149. package/build-types/components/visual-editor/index.d.ts.map +1 -1
  150. package/build-types/dataviews/actions/export-pattern.native.d.ts +3 -0
  151. package/build-types/dataviews/actions/export-pattern.native.d.ts.map +1 -0
  152. package/build-types/dataviews/actions/permanently-delete-post.d.ts +5 -0
  153. package/build-types/dataviews/actions/permanently-delete-post.d.ts.map +1 -0
  154. package/build-types/dataviews/actions/restore-post.d.ts +5 -0
  155. package/build-types/dataviews/actions/restore-post.d.ts.map +1 -0
  156. package/build-types/dataviews/actions/trash-post.d.ts +5 -0
  157. package/build-types/dataviews/actions/trash-post.d.ts.map +1 -0
  158. package/build-types/dataviews/store/private-actions.d.ts +8 -3
  159. package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
  160. package/build-types/dataviews/store/private-selectors.d.ts +2 -1
  161. package/build-types/dataviews/store/private-selectors.d.ts.map +1 -1
  162. package/build-types/dataviews/store/reducer.d.ts +4 -1
  163. package/build-types/dataviews/store/reducer.d.ts.map +1 -1
  164. package/build-types/dataviews/types.d.ts +9 -0
  165. package/build-types/dataviews/types.d.ts.map +1 -1
  166. package/build-types/private-apis.d.ts.map +1 -1
  167. package/build-types/store/actions.d.ts.map +1 -1
  168. package/build-types/store/private-actions.d.ts.map +1 -1
  169. package/build-types/store/private-selectors.d.ts +11 -0
  170. package/build-types/store/private-selectors.d.ts.map +1 -1
  171. package/build-types/store/reducer.d.ts +1 -0
  172. package/build-types/store/reducer.d.ts.map +1 -1
  173. package/package.json +36 -36
  174. package/src/bindings/post-meta.js +20 -0
  175. package/src/components/blog-title/index.js +1 -1
  176. package/src/components/commands/index.js +4 -2
  177. package/src/components/document-bar/index.js +1 -1
  178. package/src/components/document-bar/style.scss +1 -1
  179. package/src/components/editor-interface/style.scss +5 -0
  180. package/src/components/header/index.js +1 -2
  181. package/src/components/list-view-sidebar/style.scss +4 -0
  182. package/src/components/page-attributes/parent.js +25 -7
  183. package/src/components/post-actions/actions.js +47 -470
  184. package/src/components/post-actions/index.js +19 -7
  185. package/src/components/post-author/hook.js +11 -3
  186. package/src/components/post-author/panel.js +3 -1
  187. package/src/components/post-card-panel/index.js +1 -1
  188. package/src/components/post-comments/index.js +7 -20
  189. package/src/components/post-publish-panel/test/__snapshots__/index.js.snap +2 -2
  190. package/src/components/post-status/index.js +11 -41
  191. package/src/components/post-template/create-new-template-modal.js +7 -1
  192. package/src/components/post-url/panel.js +8 -2
  193. package/src/components/preview-dropdown/index.js +113 -35
  194. package/src/components/preview-dropdown/style.scss +5 -0
  195. package/src/components/provider/disable-non-page-content-blocks.js +27 -24
  196. package/src/components/site-discussion/index.js +7 -19
  197. package/src/components/template-content-panel/index.js +36 -21
  198. package/src/components/visual-editor/index.js +8 -6
  199. package/src/components/visual-editor/style.scss +1 -3
  200. package/src/dataviews/actions/export-pattern.native.tsx +3 -0
  201. package/src/dataviews/actions/permanently-delete-post.tsx +116 -0
  202. package/src/dataviews/actions/restore-post.tsx +134 -0
  203. package/src/dataviews/actions/trash-post.tsx +196 -0
  204. package/src/dataviews/store/private-actions.ts +68 -0
  205. package/src/dataviews/store/private-selectors.ts +9 -17
  206. package/src/dataviews/store/reducer.ts +20 -1
  207. package/src/dataviews/types.ts +11 -0
  208. package/src/private-apis.js +0 -2
  209. package/src/store/actions.js +36 -13
  210. package/src/store/private-actions.js +8 -4
  211. package/src/store/private-selectors.js +45 -2
  212. package/src/store/test/private-selectors.js +78 -0
  213. package/tsconfig.tsbuildinfo +1 -1
  214. package/build/dataviews/actions/index.js +0 -32
  215. package/build/dataviews/actions/index.js.map +0 -1
  216. package/build-module/dataviews/actions/index.js +0 -24
  217. package/build-module/dataviews/actions/index.js.map +0 -1
  218. package/build-types/dataviews/actions/index.d.ts +0 -2
  219. package/build-types/dataviews/actions/index.d.ts.map +0 -1
  220. package/src/components/document-outline/test/__snapshots__/index.js.snap +0 -111
  221. package/src/components/document-outline/test/index.js +0 -185
  222. package/src/dataviews/actions/index.ts +0 -25
@@ -34,6 +34,9 @@
34
34
  * Grid System.
35
35
  * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
36
36
  */
37
+ /**
38
+ * Radius scale.
39
+ */
37
40
  /**
38
41
  * Dimensions.
39
42
  */
@@ -733,7 +736,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
733
736
  }
734
737
 
735
738
  .editor-document-bar__title {
736
- flex-grow: 1;
739
+ flex: 1;
737
740
  overflow: hidden;
738
741
  color: #1e1e1e;
739
742
  gap: 4px;
@@ -954,6 +957,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
954
957
  height: 61px;
955
958
  }
956
959
 
960
+ .editor-editor-interface .interface-interface-skeleton__content {
961
+ isolation: isolate;
962
+ }
963
+
957
964
  .editor-visual-editor {
958
965
  flex: 1 0 auto;
959
966
  }
@@ -1327,6 +1334,11 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1327
1334
  .editor-list-view-sidebar {
1328
1335
  height: 100%;
1329
1336
  }
1337
+ @media (min-width: 782px) {
1338
+ .editor-list-view-sidebar {
1339
+ width: 350px;
1340
+ }
1341
+ }
1330
1342
 
1331
1343
  .editor-list-view-sidebar__list-view-panel-content,
1332
1344
  .editor-list-view-sidebar__list-view-container > .document-outline {
@@ -2337,6 +2349,11 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2337
2349
  justify-content: center;
2338
2350
  }
2339
2351
 
2352
+ .editor-preview-dropdown .editor-preview-dropdown__toggle.has-icon.has-text {
2353
+ padding-right: 4px;
2354
+ padding-left: 6px;
2355
+ }
2356
+
2340
2357
  .editor-preview-dropdown__button-external {
2341
2358
  width: 100%;
2342
2359
  display: flex;
@@ -2648,9 +2665,8 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2648
2665
 
2649
2666
  .editor-visual-editor {
2650
2667
  position: relative;
2651
- display: block;
2668
+ display: flex;
2652
2669
  background-color: #ddd;
2653
- isolation: isolate;
2654
2670
  align-items: center;
2655
2671
  }
2656
2672
  .editor-visual-editor.is-resizable {
@@ -18,6 +18,12 @@ declare namespace _default {
18
18
  context: any;
19
19
  args: any;
20
20
  }): boolean;
21
+ function getFieldsList({ registry, context }: {
22
+ registry: any;
23
+ context: any;
24
+ }): {
25
+ [k: string]: any;
26
+ } | null;
21
27
  }
22
28
  export default _default;
23
29
  //# sourceMappingURL=post-meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"post-meta.d.ts","sourceRoot":"","sources":["../../src/bindings/post-meta.js"],"names":[],"mappings":";;IAYC;;YAEC;IACD;;;;WAaC;IACD;;;;aAUC;IACD;;;;gBAoCC"}
1
+ {"version":3,"file":"post-meta.d.ts","sourceRoot":"","sources":["../../src/bindings/post-meta.js"],"names":[],"mappings":";;IAYC;;YAEC;IACD;;;;WAaC;IACD;;;;aAUC;IACD;;;;gBAoCC;IACD;;;;;aAmBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/commands/index.js"],"names":[],"mappings":"AAuUA,4CAWC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/commands/index.js"],"names":[],"mappings":"AAyUA,4CAWC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";AA0CA;;;;;;;gCAuHC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";AA0CA;;;;;;;gCAsHC"}
@@ -1 +1 @@
1
- {"version":3,"file":"parent.d.ts","sourceRoot":"","sources":["../../../src/components/page-attributes/parent.js"],"names":[],"mappings":"AAiDA;;;;;GAKG;AACH,wCAFY,SAAS,GAAC,IAAI,CAqIzB;AAgCD,yDA0DC;AAjPM,qEAYN"}
1
+ {"version":3,"file":"parent.d.ts","sourceRoot":"","sources":["../../../src/components/page-attributes/parent.js"],"names":[],"mappings":"AAsDA;;;;;GAKG;AACH,wCAFY,SAAS,GAAC,IAAI,CAqIzB;AAgCD,yDAuEC;AA9PM,qEAYN"}
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/components/post-actions/actions.js"],"names":[],"mappings":"AA+8BA;;;;UAsJC;;;;IAzNY,wCAAiD;;IAEhD;;;oCAaZ;;;;;;;IAMW,iDAAiD;;;;IAEhD;;;oCAyCZ"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/components/post-actions/actions.js"],"names":[],"mappings":"AA+jBA;;;;UA+HC;;;;IAlMY,wCAAiD;;IAEhD;;;oCAaZ;;;;;;;IAMW,iDAAiD;;;;IAEhD;;;oCAyCZ"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-actions/index.js"],"names":[],"mappings":"AA6BA;;;gCAoDC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-actions/index.js"],"names":[],"mappings":"AA6BA;;;gCAgEC"}
@@ -1,6 +1,6 @@
1
1
  export function useAuthorsQuery(search: any): {
2
2
  authorId: any;
3
- authorOptions: any;
3
+ authorOptions: any[];
4
4
  postAuthor: any;
5
5
  };
6
6
  //# sourceMappingURL=hook.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/components/post-author/hook.js"],"names":[],"mappings":"AAcA;;;;EAgDC"}
1
+ {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/components/post-author/hook.js"],"names":[],"mappings":"AAeA;;;;EAuDC"}
@@ -1 +1 @@
1
- {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-author/panel.js"],"names":[],"mappings":"AAkCA;;;;GAIG;AACH,8BAFY,SAAS,CA4CpB"}
1
+ {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-author/panel.js"],"names":[],"mappings":"AAoCA;;;;GAIG;AACH,8BAFY,SAAS,CA4CpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-comments/index.js"],"names":[],"mappings":";AA4CA,6DA2BC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-comments/index.js"],"names":[],"mappings":";AA+BA,6DA2BC"}
@@ -1,6 +1,7 @@
1
1
  export default function PostStatus(): import("react").JSX.Element | null;
2
2
  export const STATUS_OPTIONS: {
3
- label: import("react").JSX.Element;
3
+ label: string;
4
4
  value: string;
5
+ description: string;
5
6
  }[];
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-status/index.js"],"names":[],"mappings":"AAkHA,yEA+LC;AAhQD;;;IAwDE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-status/index.js"],"names":[],"mappings":"AAmFA,yEAgMC;AAnOD;;;;IA0BE"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-new-template-modal.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/create-new-template-modal.js"],"names":[],"mappings":"AAwBA;;gCA4HC"}
1
+ {"version":3,"file":"create-new-template-modal.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/create-new-template-modal.js"],"names":[],"mappings":"AAwBA;;gCAkIC"}
@@ -1 +1 @@
1
- {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/panel.js"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH,wCAFY,GAAG,CAAC,OAAO,CAqCtB"}
1
+ {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/panel.js"],"names":[],"mappings":"AAsBA;;;;GAIG;AACH,wCAFY,GAAG,CAAC,OAAO,CAqCtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/preview-dropdown/index.js"],"names":[],"mappings":"AAuBA;;;uCA+GC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/preview-dropdown/index.js"],"names":[],"mappings":"AA+BA;;;uCAqLC"}
@@ -1 +1 @@
1
- {"version":3,"file":"disable-non-page-content-blocks.d.ts","sourceRoot":"","sources":["../../../src/components/provider/disable-non-page-content-blocks.js"],"names":[],"mappings":"AAeA;;;GAGG;AACH,4DA4DC"}
1
+ {"version":3,"file":"disable-non-page-content-blocks.d.ts","sourceRoot":"","sources":["../../../src/components/provider/disable-non-page-content-blocks.js"],"names":[],"mappings":"AAoBA;;;GAGG;AACH,4DA0DC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/site-discussion/index.js"],"names":[],"mappings":"AAmDA,6EA2FC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/site-discussion/index.js"],"names":[],"mappings":"AAuCA,6EA2FC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/template-content-panel/index.js"],"names":[],"mappings":"AA6BA,mFA+BC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/template-content-panel/index.js"],"names":[],"mappings":"AA4BA,mFA+CC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/visual-editor/index.js"],"names":[],"mappings":";AAkGA;;;;;;;gCAmZC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/visual-editor/index.js"],"names":[],"mappings":";AAkGA;;;;;;;gCAqZC"}
@@ -0,0 +1,3 @@
1
+ declare const exportPattern: undefined;
2
+ export default exportPattern;
3
+ //# sourceMappingURL=export-pattern.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export-pattern.native.d.ts","sourceRoot":"","sources":["../../../src/dataviews/actions/export-pattern.native.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa,WAAY,CAAC;AAEhC,eAAe,aAAa,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { Action } from '@wordpress/dataviews';
2
+ import type { PostWithPermissions } from '../types';
3
+ declare const permanentlyDeletePost: Action<PostWithPermissions>;
4
+ export default permanentlyDeletePost;
5
+ //# sourceMappingURL=permanently-delete-post.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permanently-delete-post.d.ts","sourceRoot":"","sources":["../../../src/dataviews/actions/permanently-delete-post.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAMnD,OAAO,KAAK,EAAiB,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEnE,QAAA,MAAM,qBAAqB,EAAE,MAAM,CAAE,mBAAmB,CAmGvD,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { Action } from '@wordpress/dataviews';
2
+ import type { PostWithPermissions } from '../types';
3
+ declare const restorePost: Action<PostWithPermissions>;
4
+ export default restorePost;
5
+ //# sourceMappingURL=restore-post.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restore-post.d.ts","sourceRoot":"","sources":["../../../src/dataviews/actions/restore-post.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAMnD,OAAO,KAAK,EAAiB,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEnE,QAAA,MAAM,WAAW,EAAE,MAAM,CAAE,mBAAmB,CAoH7C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { Action } from '@wordpress/dataviews';
2
+ import type { PostWithPermissions } from '../types';
3
+ declare const trashPost: Action<PostWithPermissions>;
4
+ export default trashPost;
5
+ //# sourceMappingURL=trash-post.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trash-post.d.ts","sourceRoot":"","sources":["../../../src/dataviews/actions/trash-post.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAMnD,OAAO,KAAK,EAAiB,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEnE,QAAA,MAAM,SAAS,EAAE,MAAM,CAAE,mBAAmB,CA0K3C,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,6 +1,3 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import type { Action } from '@wordpress/dataviews';
5
2
  export declare function registerEntityAction<Item>(kind: string, name: string, config: Action<Item>): {
6
3
  type: "REGISTER_ENTITY_ACTION";
@@ -14,4 +11,12 @@ export declare function unregisterEntityAction(kind: string, name: string, actio
14
11
  name: string;
15
12
  actionId: string;
16
13
  };
14
+ export declare function setIsReady(kind: string, name: string): {
15
+ type: "SET_IS_READY";
16
+ kind: string;
17
+ name: string;
18
+ };
19
+ export declare const registerPostTypeActions: (postType: string) => ({ registry }: {
20
+ registry: any;
21
+ }) => Promise<void>;
17
22
  //# sourceMappingURL=private-actions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,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"}
1
+ {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAgBnD,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,UAAU,CAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;EAMrD;AAED,eAAO,MAAM,uBAAuB,aACvB,MAAM,oBACI;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,kBAyCtC,CAAC"}
@@ -2,5 +2,6 @@
2
2
  * Internal dependencies
3
3
  */
4
4
  import type { State } from './reducer';
5
- export declare const getEntityActions: ((state: State, kind: string, name: string) => import("@wordpress/dataviews").Action<any>[]) & import("rememo").EnhancedSelector;
5
+ export declare function getEntityActions(state: State, kind: string, name: string): import("@wordpress/dataviews").Action<any>[];
6
+ export declare function isEntityReady(state: State, kind: string, name: string): boolean;
6
7
  //# sourceMappingURL=private-selectors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-selectors.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC,eAAO,MAAM,gBAAgB,WACnB,KAAK,QAAQ,MAAM,QAAQ,MAAM,sFAU1C,CAAC"}
1
+ {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-selectors.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIvC,wBAAgB,gBAAgB,CAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,gDAEzE;AAED,wBAAgB,aAAa,CAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,WAEtE"}
@@ -1,8 +1,10 @@
1
1
  import type { Action } from '@wordpress/dataviews';
2
- type ReduxAction = ReturnType<typeof import('./private-actions').registerEntityAction> | ReturnType<typeof import('./private-actions').unregisterEntityAction>;
2
+ type ReduxAction = ReturnType<typeof import('./private-actions').registerEntityAction> | ReturnType<typeof import('./private-actions').unregisterEntityAction> | ReturnType<typeof import('./private-actions').setIsReady>;
3
3
  export type ActionState = Record<string, Record<string, Action<any>[]>>;
4
+ export type ReadyState = Record<string, Record<string, boolean>>;
4
5
  export type State = {
5
6
  actions: ActionState;
7
+ isReady: ReadyState;
6
8
  };
7
9
  declare const _default: import("redux").Reducer<import("redux").CombinedState<{
8
10
  actions: {
@@ -10,6 +12,7 @@ declare const _default: import("redux").Reducer<import("redux").CombinedState<{
10
12
  [x: string]: Action<any>[] | (Action<unknown> | Action<any>)[];
11
13
  };
12
14
  };
15
+ isReady: ReadyState;
13
16
  }>, ReduxAction>;
14
17
  export default _default;
15
18
  //# sourceMappingURL=reducer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/reducer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,KAAK,WAAW,GACb,UAAU,CAAE,cAAc,mBAAmB,EAAE,oBAAoB,CAAE,GACrE,UAAU,CAAE,cAAc,mBAAmB,EAAE,sBAAsB,CAAE,CAAC;AAE3E,MAAM,MAAM,WAAW,GAAG,MAAM,CAAE,MAAM,EAAE,MAAM,CAAE,MAAM,EAAE,MAAM,CAAE,GAAG,CAAE,EAAE,CAAE,CAAE,CAAC;AAC9E,MAAM,MAAM,KAAK,GAAG;IACnB,OAAO,EAAE,WAAW,CAAC;CACrB,CAAC;;;;;;;;AAmCF,wBAEI"}
1
+ {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/reducer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,KAAK,WAAW,GACb,UAAU,CAAE,cAAc,mBAAmB,EAAE,oBAAoB,CAAE,GACrE,UAAU,CAAE,cAAc,mBAAmB,EAAE,sBAAsB,CAAE,GACvE,UAAU,CAAE,cAAc,mBAAmB,EAAE,UAAU,CAAE,CAAC;AAE/D,MAAM,MAAM,WAAW,GAAG,MAAM,CAAE,MAAM,EAAE,MAAM,CAAE,MAAM,EAAE,MAAM,CAAE,GAAG,CAAE,EAAE,CAAE,CAAE,CAAC;AAC9E,MAAM,MAAM,UAAU,GAAG,MAAM,CAAE,MAAM,EAAE,MAAM,CAAE,MAAM,EAAE,OAAO,CAAE,CAAE,CAAC;AACrE,MAAM,MAAM,KAAK,GAAG;IACnB,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,EAAE,UAAU,CAAC;CACpB,CAAC;;;;;;;;;AAkDF,wBAGI"}
@@ -26,6 +26,15 @@ export interface Pattern extends BasePost {
26
26
  wp_pattern_sync_status: string;
27
27
  }
28
28
  export type Post = TemplateOrTemplatePart | Pattern | BasePost;
29
+ export type PostWithPermissions = Post & {
30
+ permissions: {
31
+ delete: boolean;
32
+ update: boolean;
33
+ };
34
+ };
35
+ export interface PostType {
36
+ slug: string;
37
+ }
29
38
  export type CoreDataError = {
30
39
  message?: string;
31
40
  code?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dataviews/types.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GACZ,WAAW,GACX,OAAO,GACP,SAAS,GACT,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,OAAO,CAAC;AAEX,MAAM,WAAW,QAAQ;IACxB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,sBAAuB,SAAQ,QAAQ;IACvD,IAAI,EAAE,aAAa,GAAG,kBAAkB,CAAC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,OAAO,CAAC;IACxB,EAAE,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,OAAQ,SAAQ,QAAQ;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC;IAClC,sBAAsB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,MAAM,IAAI,GAAG,sBAAsB,GAAG,OAAO,GAAG,QAAQ,CAAC;AAG/D,MAAM,MAAM,aAAa,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dataviews/types.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GACZ,WAAW,GACX,OAAO,GACP,SAAS,GACT,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,OAAO,CAAC;AAEX,MAAM,WAAW,QAAQ;IACxB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,sBAAuB,SAAQ,QAAQ;IACvD,IAAI,EAAE,aAAa,GAAG,kBAAkB,CAAC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,OAAO,CAAC;IACxB,EAAE,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,OAAQ,SAAQ,QAAQ;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC;IAClC,sBAAsB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,MAAM,IAAI,GAAG,sBAAsB,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE/D,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG;IACxC,WAAW,EAAE;QACZ,MAAM,EAAE,OAAO,CAAC;QAChB,MAAM,EAAE,OAAO,CAAC;KAChB,CAAC;CACF,CAAC;AAEF,MAAM,WAAW,QAAQ;IACxB,IAAI,EAAE,MAAM,CAAC;CACb;AAGD,MAAM,MAAM,aAAa,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AAiCA,6BAA8B"}
1
+ {"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AAgCA,6BAA8B"}
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AAsEA;;;;;;;GAOG;AACH,gDAFY,MAAM,CAUjB;AAED;;;;;GAKG;AACH;;EAOC;AAED;;;;;;GAMG;AACH,8BAHY,MAAM,CAWjB;AAED;;;;;;GAMG;AACH,uCAFW,MAAM,UAQhB;AAED;;;;;;;GAOG;AACH,wCALW,MAAM,UACN,MAAM,GAEL,MAAM,CAQjB;AA+GD;;;;GAIG;AACH;;EAOC;AAqGD;;;;GAIG;AACH;;EAOC;AAED;;;;;GAKG;AACH,qCAHW,MAAM,GACL,MAAM,CAOjB;AAwBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,yCAxCW,MAAM,GAsCL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,2CAVW,MAAM,GAQL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,6CAVW,MAAM,GAQL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,+CAVW,MAAM,GAQL,MAAM,CAOjB;AA6CD;;;EAKC;AAyBD;;;;;;GAMG;AACH,0CAJW,MAAM,GAEL,MAAM,CAOjB;AAiED;;;;;;GAMG;AACH,6CAJW,MAAM,GAEL,MAAM,CAOjB;AAED;;;;;;;;;;;GAWG;AACH,2CATW,OAAO,GAAC,MAAM,GAOb,MAAM,CAOjB;AAED;;;;;GAKG;AACH,4CAHW,OAAO,GACN,MAAM,CAOjB;AA+FD;;;;;GAKG;AACH,sCAFY,MAAM,CAMjB;AAED;;;;;GAKG;AACH,uCAFY,MAAM,CAMjB;AAED;;;;GAIG;AACH,wCAFY,MAAM,CAMjB;AAjzBM,kCAJI,MAAM,SACN,MAAM,YACN,YAAM;;WAiCf;AA0FK,gCAHI,MAAM,WACN,MAAM;;;WASf;AAOK,mCAFI,MAAM;;;;oBAwFf;AAmBK;;;;oBA2BL;AAUK,iDAFI,MAAM,OAAC;;;oBAqBhB;AAEK;;;;;mBAkBL;AAKK;;WAIL;AAKK;;WAIL;AAgCK;;WAML;AAKK;;WAML;AAsHK,2DAFK,MAAM,OAAA;;;;WA8BhB;AAwBK,uCAFI,MAAM;;;;WAef;AAuBK,oDAJI,MAAM,GAEL,MAAM,CA0BhB;AAOK,mDAFI,MAAM;;WAyBf;AAqDK;;;WA0DL;AAOK,uCAFI,MAAM;;;WAuBf;AA2CD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AAsEA;;;;;;;GAOG;AACH,gDAFY,MAAM,CAUjB;AAED;;;;;GAKG;AACH;;EAOC;AAED;;;;;;GAMG;AACH,8BAHY,MAAM,CAWjB;AAED;;;;;;GAMG;AACH,uCAFW,MAAM,UAQhB;AAED;;;;;;;GAOG;AACH,wCALW,MAAM,UACN,MAAM,GAEL,MAAM,CAQjB;AAsID;;;;GAIG;AACH;;EAOC;AAqGD;;;;GAIG;AACH;;EAOC;AAED;;;;;GAKG;AACH,qCAHW,MAAM,GACL,MAAM,CAOjB;AAwBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,yCAxCW,MAAM,GAsCL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,2CAVW,MAAM,GAQL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,6CAVW,MAAM,GAQL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,+CAVW,MAAM,GAQL,MAAM,CAOjB;AA6CD;;;EAKC;AAyBD;;;;;;GAMG;AACH,0CAJW,MAAM,GAEL,MAAM,CAOjB;AAiED;;;;;;GAMG;AACH,6CAJW,MAAM,GAEL,MAAM,CAOjB;AAED;;;;;;;;;;;GAWG;AACH,2CATW,OAAO,GAAC,MAAM,GAOb,MAAM,CAOjB;AAED;;;;;GAKG;AACH,4CAHW,OAAO,GACN,MAAM,CAOjB;AA+FD;;;;;GAKG;AACH,sCAFY,MAAM,CAMjB;AAED;;;;;GAKG;AACH,uCAFY,MAAM,CAMjB;AAED;;;;GAIG;AACH,wCAFY,MAAM,CAMjB;AAx0BM,kCAJI,MAAM,SACN,MAAM,YACN,YAAM;;WAiCf;AA0FK,gCAHI,MAAM,WACN,MAAM;;;WASf;AAOK,mCAFI,MAAM;;;;oBA+Gf;AAmBK;;;;oBA2BL;AAUK,iDAFI,MAAM,OAAC;;;oBAqBhB;AAEK;;;;;mBAkBL;AAKK;;WAIL;AAKK;;WAIL;AAgCK;;WAML;AAKK;;WAML;AAsHK,2DAFK,MAAM,OAAA;;;;WA8BhB;AAwBK,uCAFI,MAAM;;;;WAef;AAuBK,oDAJI,MAAM,GAEL,MAAM,CA0BhB;AAOK,mDAFI,MAAM;;WAyBf;AAqDK;;;WA0DL;AAOK,uCAFI,MAAM;;;WAuBf;AA2CD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAmBA;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,MAAM,CAOjB;;AAOM,yCAFI,MAAM,OAAC;;;;mBAqChB;AAOK,2CAFI,MAAM,EAAE;;WAoBjB;AAOK,2CAFI,MAAM,EAAE;;WAkBjB;AAWK,0FALJ;IAA2B,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,KAAK;CAClC;;WAiGC;AAUK,yCALI,MAAM;;;;oBAiIf;AAOK;;oBAsHL"}
1
+ {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAmBA;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,MAAM,CAOjB;;AAOM,yCAFI,MAAM,OAAC;;;;mBAqChB;AAOK,2CAFI,MAAM,EAAE;;WAoBjB;AAOK,2CAFI,MAAM,EAAE;;WAkBjB;AAWK,0FALJ;IAA2B,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,KAAK;CAClC;;WAiGC;AAUK,yCALI,MAAM;;;;oBAiIf;AAOK;;oBA0HL"}
@@ -1,6 +1,7 @@
1
1
  export function getListViewToggleRef(state: any): any;
2
2
  export function getInserterSidebarToggleRef(state: any): any;
3
3
  export function getEntityActions(state: any, ...args: any[]): import("@wordpress/dataviews").Action<any>[];
4
+ export function isEntityReady(state: any, ...args: any[]): boolean;
4
5
  /**
5
6
  * Get the insertion point for the inserter.
6
7
  *
@@ -21,4 +22,14 @@ export const getPostIcon: Function;
21
22
  * @return {boolean} Whether there are edits or not in the meta fields of the relevant post.
22
23
  */
23
24
  export const hasPostMetaChanges: Function;
25
+ /**
26
+ * Similar to getBlocksByName in @wordpress/block-editor, but only returns the top-most
27
+ * blocks that aren't descendants of the query block.
28
+ *
29
+ * @param {Object} state Global application state.
30
+ * @param {Array|string} blockNames Block names of the blocks to retrieve.
31
+ *
32
+ * @return {Array} Block client IDs.
33
+ */
34
+ export const getPostBlocksByName: Function;
24
35
  //# sourceMappingURL=private-selectors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AA+EA,sDAEC;AACD,6DAEC;AA2ED,2GAEC;AA9HD;;;;;;GAMG;AACH,yCAmCE;AAeF,mCA0BE;AAEF;;;;;;;;;GASG;AACH,0CA2BE"}
1
+ {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAkFA,sDAEC;AACD,6DAEC;AA8ED,2GAEC;AAED,mEAEC;AArID;;;;;;GAMG;AACH,yCAmCE;AAeF,mCA6BE;AAEF;;;;;;;;;GASG;AACH,0CA2BE;AAUF;;;;;;;;GAQG;AACH,2CAsBE"}
@@ -201,6 +201,7 @@ declare const _default: import("redux").Reducer<import("redux").CombinedState<{
201
201
  [x: string]: import("@wordpress/dataviews").Action<any>[] | (import("@wordpress/dataviews").Action<unknown> | import("@wordpress/dataviews").Action<any>)[];
202
202
  };
203
203
  };
204
+ isReady: import("../dataviews/store/reducer").ReadyState;
204
205
  }>;
205
206
  }>, any>;
206
207
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../src/store/reducer.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,uCAJW,GAAC,GAEA,GAAC,CAQZ;AAED;;;;;;;;GAQG;AACH,+BALW,MAAM,KACN,MAAM,GAEL,OAAO,CASlB;AAED;;;;;;;;;GASG;AACH,mDALW,MAAM,kBACN,MAAM,GAEL,OAAO,CAOlB;AAED;;;;;;;;;GASG;AACH,6CALW,MAAM,kBACN,MAAM,GAEL,OAAO,CAYlB;AAED,kEAOC;AAED,sEAOC;AAED,oEAOC;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,sBACN,MAAM,GAEL,OAAO,CAYlB;AAED;;;;;;;;GAQG;AACH,8BALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAajB;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAYjB;AAED;;;;;;;;;GASG;AAEH;;;;;;;GAOG;AACH,gCALW,aAAa,sBACb,MAAM,GAEL,aAAa,CASxB;AAED;;;;;;;;;GASG;AACH,sCALW,aAAa,sBACb,MAAM,GAEL,aAAa,CAcxB;AAED;;;;;;;;;GASG;AACH,0CALW,aAAa,sBACb,MAAM,GAEL,aAAa,CAcxB;AAED;;;;;;;GAOG;AACH,sCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAYjB;AAED,2EAOC;AAED;;;;;;;GAOG;AACH,kCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CASjB;AAED;;;;;;;GAOG;AACH,gEAJW,MAAM,SAahB;AAED;;;;;;;;GAQG;AACH,0CAHW,MAAM,sBACN,MAAM,OAUhB;AAED;;;;;;;;GAQG;AACH,qCAHW,MAAM,sBACN,MAAM,OAUhB;AAED;;;;;;GAMG;AACH,0CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;;GAMG;AACH,iDAHW,MAAM,GACL,MAAM,CAIjB;AAED,uFAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA9Ma,OAAO;;;;gBACN,OAAO,OAAA;;;;oBACP,OAAO,OAAA;;;;UACP,MAAM,OAAA"}
1
+ {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../src/store/reducer.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,uCAJW,GAAC,GAEA,GAAC,CAQZ;AAED;;;;;;;;GAQG;AACH,+BALW,MAAM,KACN,MAAM,GAEL,OAAO,CASlB;AAED;;;;;;;;;GASG;AACH,mDALW,MAAM,kBACN,MAAM,GAEL,OAAO,CAOlB;AAED;;;;;;;;;GASG;AACH,6CALW,MAAM,kBACN,MAAM,GAEL,OAAO,CAYlB;AAED,kEAOC;AAED,sEAOC;AAED,oEAOC;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,sBACN,MAAM,GAEL,OAAO,CAYlB;AAED;;;;;;;;GAQG;AACH,8BALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAajB;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAYjB;AAED;;;;;;;;;GASG;AAEH;;;;;;;GAOG;AACH,gCALW,aAAa,sBACb,MAAM,GAEL,aAAa,CASxB;AAED;;;;;;;;;GASG;AACH,sCALW,aAAa,sBACb,MAAM,GAEL,aAAa,CAcxB;AAED;;;;;;;;;GASG;AACH,0CALW,aAAa,sBACb,MAAM,GAEL,aAAa,CAcxB;AAED;;;;;;;GAOG;AACH,sCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAYjB;AAED,2EAOC;AAED;;;;;;;GAOG;AACH,kCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CASjB;AAED;;;;;;;GAOG;AACH,gEAJW,MAAM,SAahB;AAED;;;;;;;;GAQG;AACH,0CAHW,MAAM,sBACN,MAAM,OAUhB;AAED;;;;;;;;GAQG;AACH,qCAHW,MAAM,sBACN,MAAM,OAUhB;AAED;;;;;;GAMG;AACH,0CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;;GAMG;AACH,iDAHW,MAAM,GACL,MAAM,CAIjB;AAED,uFAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA9Ma,OAAO;;;;gBACN,OAAO,OAAA;;;;oBACP,OAAO,OAAA;;;;UACP,MAAM,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/editor",
3
- "version": "14.4.0",
3
+ "version": "14.5.0",
4
4
  "description": "Enhanced block editor for WordPress posts.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -32,40 +32,40 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.16.0",
35
- "@wordpress/a11y": "^4.4.0",
36
- "@wordpress/api-fetch": "^7.4.0",
37
- "@wordpress/blob": "^4.4.0",
38
- "@wordpress/block-editor": "^13.4.0",
39
- "@wordpress/blocks": "^13.4.0",
40
- "@wordpress/commands": "^1.4.0",
41
- "@wordpress/components": "^28.4.0",
42
- "@wordpress/compose": "^7.4.0",
43
- "@wordpress/core-data": "^7.4.0",
44
- "@wordpress/data": "^10.4.0",
45
- "@wordpress/dataviews": "^4.0.0",
46
- "@wordpress/date": "^5.4.0",
47
- "@wordpress/deprecated": "^4.4.0",
48
- "@wordpress/dom": "^4.4.0",
49
- "@wordpress/element": "^6.4.0",
50
- "@wordpress/hooks": "^4.4.0",
51
- "@wordpress/html-entities": "^4.4.0",
52
- "@wordpress/i18n": "^5.4.0",
53
- "@wordpress/icons": "^10.4.0",
54
- "@wordpress/interface": "^6.4.0",
55
- "@wordpress/keyboard-shortcuts": "^5.4.0",
56
- "@wordpress/keycodes": "^4.4.0",
57
- "@wordpress/media-utils": "^5.4.0",
58
- "@wordpress/notices": "^5.4.0",
59
- "@wordpress/patterns": "^2.4.0",
60
- "@wordpress/plugins": "^7.4.0",
61
- "@wordpress/preferences": "^4.4.0",
62
- "@wordpress/private-apis": "^1.4.0",
63
- "@wordpress/reusable-blocks": "^5.4.0",
64
- "@wordpress/rich-text": "^7.4.0",
65
- "@wordpress/server-side-render": "^5.4.0",
66
- "@wordpress/url": "^4.4.0",
67
- "@wordpress/warning": "^3.4.0",
68
- "@wordpress/wordcount": "^4.4.0",
35
+ "@wordpress/a11y": "^4.5.0",
36
+ "@wordpress/api-fetch": "^7.5.0",
37
+ "@wordpress/blob": "^4.5.0",
38
+ "@wordpress/block-editor": "^14.0.0",
39
+ "@wordpress/blocks": "^13.5.0",
40
+ "@wordpress/commands": "^1.5.0",
41
+ "@wordpress/components": "^28.5.0",
42
+ "@wordpress/compose": "^7.5.0",
43
+ "@wordpress/core-data": "^7.5.0",
44
+ "@wordpress/data": "^10.5.0",
45
+ "@wordpress/dataviews": "^4.1.0",
46
+ "@wordpress/date": "^5.5.0",
47
+ "@wordpress/deprecated": "^4.5.0",
48
+ "@wordpress/dom": "^4.5.0",
49
+ "@wordpress/element": "^6.5.0",
50
+ "@wordpress/hooks": "^4.5.0",
51
+ "@wordpress/html-entities": "^4.5.0",
52
+ "@wordpress/i18n": "^5.5.0",
53
+ "@wordpress/icons": "^10.5.0",
54
+ "@wordpress/interface": "^6.5.0",
55
+ "@wordpress/keyboard-shortcuts": "^5.5.0",
56
+ "@wordpress/keycodes": "^4.5.0",
57
+ "@wordpress/media-utils": "^5.5.0",
58
+ "@wordpress/notices": "^5.5.0",
59
+ "@wordpress/patterns": "^2.5.0",
60
+ "@wordpress/plugins": "^7.5.0",
61
+ "@wordpress/preferences": "^4.5.0",
62
+ "@wordpress/private-apis": "^1.5.0",
63
+ "@wordpress/reusable-blocks": "^5.5.0",
64
+ "@wordpress/rich-text": "^7.5.0",
65
+ "@wordpress/server-side-render": "^5.5.0",
66
+ "@wordpress/url": "^4.5.0",
67
+ "@wordpress/warning": "^3.5.0",
68
+ "@wordpress/wordcount": "^4.5.0",
69
69
  "change-case": "^4.1.2",
70
70
  "client-zip": "^2.4.5",
71
71
  "clsx": "^2.1.1",
@@ -85,5 +85,5 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "gitHead": "363edb39b8dda8727f652e42cbb8497732693ed2"
88
+ "gitHead": "c3101ab024e2bfc85d525c6d247e0d57cafc9fd9"
89
89
  }
@@ -75,4 +75,24 @@ export default {
75
75
 
76
76
  return true;
77
77
  },
78
+ getFieldsList( { registry, context } ) {
79
+ const metaFields = registry
80
+ .select( coreDataStore )
81
+ .getEditedEntityRecord(
82
+ 'postType',
83
+ context?.postType,
84
+ context?.postId
85
+ ).meta;
86
+
87
+ if ( ! metaFields || ! Object.keys( metaFields ).length ) {
88
+ return null;
89
+ }
90
+
91
+ // Remove footnotes from the list of fields
92
+ return Object.fromEntries(
93
+ Object.entries( metaFields ).filter(
94
+ ( [ key ] ) => key !== 'footnotes'
95
+ )
96
+ );
97
+ },
78
98
  };
@@ -111,7 +111,7 @@ export default function BlogTitle() {
111
111
  onClose={ onClose }
112
112
  />
113
113
  <InputControl
114
- placeholder={ __( 'No Title' ) }
114
+ placeholder={ __( 'No title' ) }
115
115
  size="__unstable-large"
116
116
  value={ postsPageTitle }
117
117
  onChange={ debounce( setPostsPageTitle, 300 ) }
@@ -89,7 +89,8 @@ function useEditorCommandLoader() {
89
89
  name: 'core/open-shortcut-help',
90
90
  label: __( 'Keyboard shortcuts' ),
91
91
  icon: keyboard,
92
- callback: () => {
92
+ callback: ( { close } ) => {
93
+ close();
93
94
  openModal( 'editor/keyboard-shortcut-help' );
94
95
  },
95
96
  } );
@@ -108,7 +109,8 @@ function useEditorCommandLoader() {
108
109
  commands.push( {
109
110
  name: 'core/open-preferences',
110
111
  label: __( 'Editor preferences' ),
111
- callback: () => {
112
+ callback: ( { close } ) => {
113
+ close();
112
114
  openModal( 'editor/preferences' );
113
115
  },
114
116
  } );
@@ -200,7 +200,7 @@ export default function DocumentBar( props ) {
200
200
  >
201
201
  { title
202
202
  ? decodeEntities( title )
203
- : __( 'No Title' ) }
203
+ : __( 'No title' ) }
204
204
  </Text>
205
205
  </motion.div>
206
206
  <span className="editor-document-bar__shortcut">
@@ -34,7 +34,7 @@
34
34
  }
35
35
 
36
36
  .editor-document-bar__title {
37
- flex-grow: 1;
37
+ flex: 1;
38
38
  overflow: hidden;
39
39
  color: $gray-900;
40
40
  gap: $grid-unit-05;
@@ -2,6 +2,11 @@
2
2
  height: $header-height + $border-width;
3
3
  }
4
4
 
5
+ .editor-editor-interface .interface-interface-skeleton__content {
6
+ // Make this a stacking context to contain the z-index of children elements.
7
+ isolation: isolate;
8
+ }
9
+
5
10
  .editor-visual-editor {
6
11
  flex: 1 0 auto;
7
12
  }
@@ -57,7 +57,6 @@ function Header( {
57
57
  showIconLabels,
58
58
  hasFixedToolbar,
59
59
  isNestedEntity,
60
- isZoomedOutView,
61
60
  } = useSelect( ( select ) => {
62
61
  const { get: getPreference } = select( preferencesStore );
63
62
  const {
@@ -136,7 +135,7 @@ function Header( {
136
135
  ) }
137
136
  <PreviewDropdown
138
137
  forceIsAutosaveable={ forceIsDirty }
139
- disabled={ isNestedEntity || isZoomedOutView }
138
+ disabled={ isNestedEntity }
140
139
  />
141
140
  <PostPreviewButton
142
141
  className="editor-header__post-preview-button"
@@ -1,5 +1,9 @@
1
1
  .editor-list-view-sidebar {
2
2
  height: 100%;
3
+
4
+ @include break-medium {
5
+ width: $secondary-sidebar-width;
6
+ }
3
7
  }
4
8
 
5
9
  .editor-list-view-sidebar__list-view-panel-content,