@wordpress/editor 14.33.3 → 14.34.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 (301) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/components/collab-sidebar/comment-author-info.js +26 -14
  3. package/build/components/collab-sidebar/comment-author-info.js.map +2 -2
  4. package/build/components/document-bar/index.js +16 -3
  5. package/build/components/document-bar/index.js.map +2 -2
  6. package/build/components/editor/index.js +23 -4
  7. package/build/components/editor/index.js.map +3 -3
  8. package/build/components/editor-interface/index.js +15 -10
  9. package/build/components/editor-interface/index.js.map +3 -3
  10. package/build/components/entities-saved-states/entity-type-list.js +19 -15
  11. package/build/components/entities-saved-states/entity-type-list.js.map +3 -3
  12. package/build/components/global-styles/block-link.js +70 -0
  13. package/build/components/global-styles/block-link.js.map +7 -0
  14. package/build/components/global-styles/header.js +54 -0
  15. package/build/components/global-styles/header.js.map +7 -0
  16. package/build/components/global-styles/hooks.js +176 -0
  17. package/build/components/global-styles/hooks.js.map +7 -0
  18. package/build/components/global-styles/index.js +138 -0
  19. package/build/components/global-styles/index.js.map +7 -0
  20. package/build/components/global-styles/menu.js +95 -0
  21. package/build/components/global-styles/menu.js.map +7 -0
  22. package/build/components/global-styles-provider/index.js +3 -49
  23. package/build/components/global-styles-provider/index.js.map +3 -3
  24. package/build/components/global-styles-renderer/index.js +55 -0
  25. package/build/components/global-styles-renderer/index.js.map +7 -0
  26. package/build/components/global-styles-sidebar/default-sidebar.js +66 -0
  27. package/build/components/global-styles-sidebar/default-sidebar.js.map +7 -0
  28. package/build/components/global-styles-sidebar/index.js +182 -0
  29. package/build/components/global-styles-sidebar/index.js.map +7 -0
  30. package/build/components/global-styles-sidebar/welcome-guide-image.js +37 -0
  31. package/build/components/global-styles-sidebar/welcome-guide-image.js.map +7 -0
  32. package/build/components/global-styles-sidebar/welcome-guide.js +143 -0
  33. package/build/components/global-styles-sidebar/welcome-guide.js.map +7 -0
  34. package/build/components/header/index.js +12 -9
  35. package/build/components/header/index.js.map +2 -2
  36. package/build/components/post-featured-image/index.js +32 -1
  37. package/build/components/post-featured-image/index.js.map +3 -3
  38. package/build/components/provider/index.js +0 -2
  39. package/build/components/provider/index.js.map +3 -3
  40. package/build/components/style-book/categories.js +86 -0
  41. package/build/components/style-book/categories.js.map +7 -0
  42. package/build/components/style-book/color-examples.js +64 -0
  43. package/build/components/style-book/color-examples.js.map +7 -0
  44. package/build/components/style-book/constants.js +319 -0
  45. package/build/components/style-book/constants.js.map +7 -0
  46. package/build/components/style-book/duotone-examples.js +68 -0
  47. package/build/components/style-book/duotone-examples.js.map +7 -0
  48. package/build/components/style-book/examples.js +237 -0
  49. package/build/components/style-book/examples.js.map +7 -0
  50. package/build/components/style-book/index.js +627 -0
  51. package/build/components/style-book/index.js.map +7 -0
  52. package/build/components/style-book/types.js +17 -0
  53. package/build/components/style-book/types.js.map +7 -0
  54. package/build/components/styles-canvas/index.js +138 -0
  55. package/build/components/styles-canvas/index.js.map +7 -0
  56. package/build/components/styles-canvas/revisions.js +121 -0
  57. package/build/components/styles-canvas/revisions.js.map +7 -0
  58. package/build/components/styles-canvas/style-book.js +68 -0
  59. package/build/components/styles-canvas/style-book.js.map +7 -0
  60. package/build/components/visual-editor/index.js +4 -3
  61. package/build/components/visual-editor/index.js.map +2 -2
  62. package/build/dataviews/fields/content-preview/content-preview-view.js.map +2 -2
  63. package/build/hooks/index.js +1 -0
  64. package/build/hooks/index.js.map +2 -2
  65. package/build/hooks/media-upload.js +15 -4
  66. package/build/hooks/media-upload.js.map +3 -3
  67. package/build/hooks/push-changes-to-global-styles/index.js +322 -0
  68. package/build/hooks/push-changes-to-global-styles/index.js.map +7 -0
  69. package/build/hooks/use-global-styles-output.js +74 -0
  70. package/build/hooks/use-global-styles-output.js.map +7 -0
  71. package/build/private-apis.js +10 -5
  72. package/build/private-apis.js.map +3 -3
  73. package/build/store/private-actions.js +23 -0
  74. package/build/store/private-actions.js.map +2 -2
  75. package/build/store/private-selectors.js +10 -0
  76. package/build/store/private-selectors.js.map +2 -2
  77. package/build/store/reducer.js +24 -0
  78. package/build/store/reducer.js.map +2 -2
  79. package/build/{components/editor-interface/content-slot-fill.js → utils/set-nested-value.js} +24 -10
  80. package/build/utils/set-nested-value.js.map +7 -0
  81. package/build-module/components/collab-sidebar/comment-author-info.js +26 -14
  82. package/build-module/components/collab-sidebar/comment-author-info.js.map +2 -2
  83. package/build-module/components/document-bar/index.js +16 -3
  84. package/build-module/components/document-bar/index.js.map +2 -2
  85. package/build-module/components/editor/index.js +23 -4
  86. package/build-module/components/editor/index.js.map +2 -2
  87. package/build-module/components/editor-interface/index.js +15 -10
  88. package/build-module/components/editor-interface/index.js.map +2 -2
  89. package/build-module/components/entities-saved-states/entity-type-list.js +18 -14
  90. package/build-module/components/entities-saved-states/entity-type-list.js.map +2 -2
  91. package/build-module/components/global-styles/block-link.js +46 -0
  92. package/build-module/components/global-styles/block-link.js.map +7 -0
  93. package/build-module/components/global-styles/header.js +41 -0
  94. package/build-module/components/global-styles/header.js.map +7 -0
  95. package/build-module/components/global-styles/hooks.js +154 -0
  96. package/build-module/components/global-styles/hooks.js.map +7 -0
  97. package/build-module/components/global-styles/index.js +112 -0
  98. package/build-module/components/global-styles/index.js.map +7 -0
  99. package/build-module/components/global-styles/menu.js +71 -0
  100. package/build-module/components/global-styles/menu.js.map +7 -0
  101. package/build-module/components/global-styles-provider/index.js +3 -37
  102. package/build-module/components/global-styles-provider/index.js.map +2 -2
  103. package/build-module/components/global-styles-renderer/index.js +31 -0
  104. package/build-module/components/global-styles-renderer/index.js.map +7 -0
  105. package/build-module/components/global-styles-sidebar/default-sidebar.js +49 -0
  106. package/build-module/components/global-styles-sidebar/default-sidebar.js.map +7 -0
  107. package/build-module/components/global-styles-sidebar/index.js +152 -0
  108. package/build-module/components/global-styles-sidebar/index.js.map +7 -0
  109. package/build-module/components/global-styles-sidebar/welcome-guide-image.js +17 -0
  110. package/build-module/components/global-styles-sidebar/welcome-guide-image.js.map +7 -0
  111. package/build-module/components/global-styles-sidebar/welcome-guide.js +113 -0
  112. package/build-module/components/global-styles-sidebar/welcome-guide.js.map +7 -0
  113. package/build-module/components/header/index.js +12 -9
  114. package/build-module/components/header/index.js.map +2 -2
  115. package/build-module/components/post-featured-image/index.js +35 -3
  116. package/build-module/components/post-featured-image/index.js.map +2 -2
  117. package/build-module/components/provider/index.js +0 -2
  118. package/build-module/components/provider/index.js.map +2 -2
  119. package/build-module/components/style-book/categories.js +64 -0
  120. package/build-module/components/style-book/categories.js.map +7 -0
  121. package/build-module/components/style-book/color-examples.js +37 -0
  122. package/build-module/components/style-book/color-examples.js.map +7 -0
  123. package/build-module/components/style-book/constants.js +290 -0
  124. package/build-module/components/style-book/constants.js.map +7 -0
  125. package/build-module/components/style-book/duotone-examples.js +48 -0
  126. package/build-module/components/style-book/duotone-examples.js.map +7 -0
  127. package/build-module/components/style-book/examples.js +208 -0
  128. package/build-module/components/style-book/examples.js.map +7 -0
  129. package/build-module/components/style-book/index.js +618 -0
  130. package/build-module/components/style-book/index.js.map +7 -0
  131. package/build-module/components/style-book/types.js +1 -0
  132. package/build-module/components/style-book/types.js.map +7 -0
  133. package/build-module/components/styles-canvas/index.js +104 -0
  134. package/build-module/components/styles-canvas/index.js.map +7 -0
  135. package/build-module/components/styles-canvas/revisions.js +107 -0
  136. package/build-module/components/styles-canvas/revisions.js.map +7 -0
  137. package/build-module/components/styles-canvas/style-book.js +38 -0
  138. package/build-module/components/styles-canvas/style-book.js.map +7 -0
  139. package/build-module/components/visual-editor/index.js +4 -3
  140. package/build-module/components/visual-editor/index.js.map +2 -2
  141. package/build-module/dataviews/fields/content-preview/content-preview-view.js.map +2 -2
  142. package/build-module/hooks/index.js +1 -0
  143. package/build-module/hooks/index.js.map +2 -2
  144. package/build-module/hooks/media-upload.js +19 -5
  145. package/build-module/hooks/media-upload.js.map +2 -2
  146. package/build-module/hooks/push-changes-to-global-styles/index.js +309 -0
  147. package/build-module/hooks/push-changes-to-global-styles/index.js.map +7 -0
  148. package/build-module/hooks/use-global-styles-output.js +49 -0
  149. package/build-module/hooks/use-global-styles-output.js.map +7 -0
  150. package/build-module/private-apis.js +10 -8
  151. package/build-module/private-apis.js.map +2 -2
  152. package/build-module/store/private-actions.js +20 -0
  153. package/build-module/store/private-actions.js.map +2 -2
  154. package/build-module/store/private-selectors.js +8 -0
  155. package/build-module/store/private-selectors.js.map +2 -2
  156. package/build-module/store/reducer.js +22 -0
  157. package/build-module/store/reducer.js.map +2 -2
  158. package/build-module/utils/set-nested-value.js +23 -0
  159. package/build-module/utils/set-nested-value.js.map +7 -0
  160. package/build-style/style-rtl.css +3017 -11
  161. package/build-style/style.css +3018 -11
  162. package/build-types/components/collab-sidebar/comment-author-info.d.ts +5 -16
  163. package/build-types/components/collab-sidebar/comment-author-info.d.ts.map +1 -1
  164. package/build-types/components/document-bar/index.d.ts +2 -2
  165. package/build-types/components/document-bar/index.d.ts.map +1 -1
  166. package/build-types/components/editor/index.d.ts.map +1 -1
  167. package/build-types/components/editor-interface/index.d.ts +1 -3
  168. package/build-types/components/editor-interface/index.d.ts.map +1 -1
  169. package/build-types/components/entities-saved-states/entity-type-list.d.ts.map +1 -1
  170. package/build-types/components/global-styles/block-link.d.ts +12 -0
  171. package/build-types/components/global-styles/block-link.d.ts.map +1 -0
  172. package/build-types/components/global-styles/header.d.ts +7 -0
  173. package/build-types/components/global-styles/header.d.ts.map +1 -0
  174. package/build-types/components/global-styles/hooks.d.ts +24 -0
  175. package/build-types/components/global-styles/hooks.d.ts.map +1 -0
  176. package/build-types/components/global-styles/index.d.ts +6 -0
  177. package/build-types/components/global-styles/index.d.ts.map +1 -0
  178. package/build-types/components/global-styles/menu.d.ts +13 -0
  179. package/build-types/components/global-styles/menu.d.ts.map +1 -0
  180. package/build-types/components/global-styles-provider/index.d.ts +1 -5
  181. package/build-types/components/global-styles-provider/index.d.ts.map +1 -1
  182. package/build-types/components/global-styles-renderer/index.d.ts +4 -0
  183. package/build-types/components/global-styles-renderer/index.d.ts.map +1 -0
  184. package/build-types/components/global-styles-sidebar/default-sidebar.d.ts +13 -0
  185. package/build-types/components/global-styles-sidebar/default-sidebar.d.ts.map +1 -0
  186. package/build-types/components/global-styles-sidebar/index.d.ts +2 -0
  187. package/build-types/components/global-styles-sidebar/index.d.ts.map +1 -0
  188. package/build-types/components/global-styles-sidebar/welcome-guide-image.d.ts +5 -0
  189. package/build-types/components/global-styles-sidebar/welcome-guide-image.d.ts.map +1 -0
  190. package/build-types/components/global-styles-sidebar/welcome-guide.d.ts +2 -0
  191. package/build-types/components/global-styles-sidebar/welcome-guide.d.ts.map +1 -0
  192. package/build-types/components/header/index.d.ts +1 -3
  193. package/build-types/components/header/index.d.ts.map +1 -1
  194. package/build-types/components/provider/index.d.ts.map +1 -1
  195. package/build-types/components/style-book/categories.d.ts +18 -0
  196. package/build-types/components/style-book/categories.d.ts.map +1 -0
  197. package/build-types/components/style-book/color-examples.d.ts +7 -0
  198. package/build-types/components/style-book/color-examples.d.ts.map +1 -0
  199. package/build-types/components/style-book/constants.d.ts +11 -0
  200. package/build-types/components/style-book/constants.d.ts.map +1 -0
  201. package/build-types/components/style-book/duotone-examples.d.ts +9 -0
  202. package/build-types/components/style-book/duotone-examples.d.ts.map +1 -0
  203. package/build-types/components/style-book/examples.d.ts +12 -0
  204. package/build-types/components/style-book/examples.d.ts.map +1 -0
  205. package/build-types/components/style-book/index.d.ts +31 -0
  206. package/build-types/components/style-book/index.d.ts.map +1 -0
  207. package/build-types/components/style-book/types.d.ts +72 -0
  208. package/build-types/components/style-book/types.d.ts.map +1 -0
  209. package/build-types/components/styles-canvas/index.d.ts +16 -0
  210. package/build-types/components/styles-canvas/index.d.ts.map +1 -0
  211. package/build-types/components/styles-canvas/revisions.d.ts +5 -0
  212. package/build-types/components/styles-canvas/revisions.d.ts.map +1 -0
  213. package/build-types/components/styles-canvas/style-book.d.ts +6 -0
  214. package/build-types/components/styles-canvas/style-book.d.ts.map +1 -0
  215. package/build-types/components/visual-editor/index.d.ts +1 -2
  216. package/build-types/components/visual-editor/index.d.ts.map +1 -1
  217. package/build-types/dataviews/fields/content-preview/content-preview-view.d.ts.map +1 -1
  218. package/build-types/hooks/push-changes-to-global-styles/index.d.ts +2 -0
  219. package/build-types/hooks/push-changes-to-global-styles/index.d.ts.map +1 -0
  220. package/build-types/hooks/use-global-styles-output.d.ts +18 -0
  221. package/build-types/hooks/use-global-styles-output.d.ts.map +1 -0
  222. package/build-types/private-apis.d.ts.map +1 -1
  223. package/build-types/store/private-actions.d.ts +20 -0
  224. package/build-types/store/private-actions.d.ts.map +1 -1
  225. package/build-types/store/private-selectors.d.ts +14 -0
  226. package/build-types/store/private-selectors.d.ts.map +1 -1
  227. package/build-types/store/reducer.d.ts +20 -0
  228. package/build-types/store/reducer.d.ts.map +1 -1
  229. package/build-types/utils/set-nested-value.d.ts +20 -0
  230. package/build-types/utils/set-nested-value.d.ts.map +1 -0
  231. package/package.json +40 -40
  232. package/src/components/collab-sidebar/comment-author-info.js +32 -25
  233. package/src/components/collab-sidebar/style.scss +1 -1
  234. package/src/components/document-bar/index.js +18 -3
  235. package/src/components/editor/index.js +25 -1
  236. package/src/components/editor-help/style.scss +1 -1
  237. package/src/components/editor-interface/index.js +40 -39
  238. package/src/components/entities-saved-states/entity-type-list.js +19 -17
  239. package/src/components/global-styles/block-link.js +65 -0
  240. package/src/components/global-styles/header.js +48 -0
  241. package/src/components/global-styles/hooks.js +216 -0
  242. package/src/components/global-styles/index.js +125 -0
  243. package/src/components/global-styles/menu.js +101 -0
  244. package/src/components/global-styles/style.scss +11 -0
  245. package/src/components/global-styles-provider/index.js +3 -45
  246. package/src/components/global-styles-renderer/index.js +39 -0
  247. package/src/components/global-styles-sidebar/default-sidebar.js +46 -0
  248. package/src/components/global-styles-sidebar/index.js +177 -0
  249. package/src/components/global-styles-sidebar/style.scss +119 -0
  250. package/src/components/global-styles-sidebar/welcome-guide-image.js +11 -0
  251. package/src/components/global-styles-sidebar/welcome-guide.js +136 -0
  252. package/src/components/header/index.js +11 -6
  253. package/src/components/post-featured-image/index.js +44 -1
  254. package/src/components/post-last-revision/style.scss +1 -1
  255. package/src/components/post-panel-row/style.scss +1 -0
  256. package/src/components/post-publish-panel/style.scss +1 -1
  257. package/src/components/post-publish-panel/test/__snapshots__/index.js.snap +2 -2
  258. package/src/components/provider/index.js +0 -2
  259. package/src/components/style-book/categories.ts +97 -0
  260. package/src/components/style-book/color-examples.tsx +56 -0
  261. package/src/components/style-book/constants.ts +308 -0
  262. package/src/components/style-book/duotone-examples.tsx +56 -0
  263. package/src/components/style-book/examples.tsx +273 -0
  264. package/src/components/style-book/index.js +794 -0
  265. package/src/components/style-book/style.scss +44 -0
  266. package/src/components/style-book/test/categories.js +166 -0
  267. package/src/components/style-book/types.ts +80 -0
  268. package/src/components/styles-canvas/index.js +126 -0
  269. package/src/components/styles-canvas/revisions.js +144 -0
  270. package/src/components/styles-canvas/style-book.js +57 -0
  271. package/src/components/styles-canvas/style.scss +40 -0
  272. package/src/components/visual-editor/index.js +2 -1
  273. package/src/dataviews/fields/content-preview/content-preview-view.tsx +2 -0
  274. package/src/hooks/index.js +1 -0
  275. package/src/hooks/media-upload.js +25 -5
  276. package/src/hooks/push-changes-to-global-styles/index.js +391 -0
  277. package/src/hooks/push-changes-to-global-styles/style.scss +4 -0
  278. package/src/hooks/use-global-styles-output.js +76 -0
  279. package/src/private-apis.js +10 -8
  280. package/src/store/private-actions.js +37 -0
  281. package/src/store/private-selectors.js +20 -0
  282. package/src/store/reducer.js +36 -0
  283. package/src/style.scss +7 -1
  284. package/src/utils/set-nested-value.js +39 -0
  285. package/tsconfig.json +3 -0
  286. package/tsconfig.tsbuildinfo +1 -1
  287. package/build/components/block-settings-menu/content-only-settings-menu.js +0 -186
  288. package/build/components/block-settings-menu/content-only-settings-menu.js.map +0 -7
  289. package/build/components/editor-interface/content-slot-fill.js.map +0 -7
  290. package/build-module/components/block-settings-menu/content-only-settings-menu.js +0 -161
  291. package/build-module/components/block-settings-menu/content-only-settings-menu.js.map +0 -7
  292. package/build-module/components/editor-interface/content-slot-fill.js +0 -9
  293. package/build-module/components/editor-interface/content-slot-fill.js.map +0 -7
  294. package/build-types/components/block-settings-menu/content-only-settings-menu.d.ts +0 -2
  295. package/build-types/components/block-settings-menu/content-only-settings-menu.d.ts.map +0 -1
  296. package/build-types/components/editor-interface/content-slot-fill.d.ts +0 -14
  297. package/build-types/components/editor-interface/content-slot-fill.d.ts.map +0 -1
  298. package/src/components/block-settings-menu/content-only-settings-menu.js +0 -185
  299. package/src/components/block-settings-menu/content-only-settings-menu.native.js +0 -4
  300. package/src/components/block-settings-menu/style.scss +0 -6
  301. package/src/components/editor-interface/content-slot-fill.js +0 -10
@@ -1,19 +1,8 @@
1
1
  export default CommentAuthorInfo;
2
- /**
3
- * Render author information for a comment.
4
- *
5
- * @param {Object} props - Component properties.
6
- * @param {string} props.avatar - URL of the author's avatar.
7
- * @param {string} props.name - Name of the author.
8
- * @param {string} props.date - Date of the comment.
9
- * @param {string} props.userId - User ID of the author.
10
- *
11
- * @return {React.ReactNode} The JSX element representing the author's information.
12
- */
13
2
  declare function CommentAuthorInfo({ avatar, name, date, userId }: {
14
- avatar: string;
15
- name: string;
16
- date: string;
17
- userId: string;
18
- }): React.ReactNode;
3
+ avatar: any;
4
+ name: any;
5
+ date: any;
6
+ userId: any;
7
+ }): import("react").JSX.Element;
19
8
  //# sourceMappingURL=comment-author-info.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"comment-author-info.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comment-author-info.js"],"names":[],"mappings":";AAoBA;;;;;;;;;;GAUG;AACH,mEAPG;IAAsB,MAAM,EAApB,MAAM;IACQ,IAAI,EAAlB,MAAM;IACQ,IAAI,EAAlB,MAAM;IACQ,MAAM,EAApB,MAAM;CAEd,GAAS,KAAK,CAAC,SAAS,CAwE1B"}
1
+ {"version":3,"file":"comment-author-info.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comment-author-info.js"],"names":[],"mappings":";AAoBA;;;;;gCAwFC"}
@@ -7,9 +7,9 @@
7
7
  * ```jsx
8
8
  * <DocumentBar />
9
9
  * ```
10
+ *
10
11
  * @param {Object} props The component props.
11
- * @param {string} props.title A title for the document, defaulting to the document or
12
- * template title currently being edited.
12
+ * @param {string} props.title A title for the document, defaulting to the document or template title currently being edited.
13
13
  * @param {IconType} props.icon An icon for the document, no default.
14
14
  * (A default icon indicating the document post type is no longer used.)
15
15
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/document-bar/index.js"],"names":[],"mappings":"AAsCA;;;;;;;;;;;;;;;;GAgBG;AACH,2CAPG;IAAwB,KAAK,EAArB,MAAM;IAEU,IAAI,EAApB,QAAQ;CAGhB,GAAS,KAAK,CAAC,SAAS,CAgL1B;uBAnMa,OAAO,uBAAuB,EAAE,QAAQ"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/document-bar/index.js"],"names":[],"mappings":"AAwCA;;;;;;;;;;;;;;;;GAgBG;AACH,2CANG;IAAwB,KAAK,EAArB,MAAM;IACU,IAAI,EAApB,QAAQ;CAGhB,GAAS,KAAK,CAAC,SAAS,CA6L1B;uBAhNa,OAAO,uBAAuB,EAAE,QAAQ"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor/index.js"],"names":[],"mappings":";AAiBA;;;;;;;;;;;gCAiFC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor/index.js"],"names":[],"mappings":";AAoBA;;;;;;;;;;;gCAsGC"}
@@ -1,6 +1,5 @@
1
- export default function EditorInterface({ className, styles, children, forceIsDirty, contentRef, disableIframe, autoFocus, customSaveButton, customSavePanel, forceDisableBlockTools, title, iframeProps, }: {
1
+ export default function EditorInterface({ className, children, forceIsDirty, contentRef, disableIframe, autoFocus, customSaveButton, customSavePanel, forceDisableBlockTools, iframeProps, }: {
2
2
  className: any;
3
- styles: any;
4
3
  children: any;
5
4
  forceIsDirty: any;
6
5
  contentRef: any;
@@ -9,7 +8,6 @@ export default function EditorInterface({ className, styles, children, forceIsDi
9
8
  customSaveButton: any;
10
9
  customSavePanel: any;
11
10
  forceDisableBlockTools: any;
12
- title: any;
13
11
  iframeProps: any;
14
12
  }): import("react").JSX.Element;
15
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor-interface/index.js"],"names":[],"mappings":"AA0CA;;;;;;;;;;;;;gCA8KC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor-interface/index.js"],"names":[],"mappings":"AA2CA;;;;;;;;;;;gCA8KC"}
@@ -1 +1 @@
1
- {"version":3,"file":"entity-type-list.d.ts","sourceRoot":"","sources":["../../../src/components/entities-saved-states/entity-type-list.js"],"names":[],"mappings":"AAyEA;;;;gCAsDC"}
1
+ {"version":3,"file":"entity-type-list.d.ts","sourceRoot":"","sources":["../../../src/components/entities-saved-states/entity-type-list.js"],"names":[],"mappings":"AA2EA;;;;gCAsDC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Auto-navigate to block styles when a block is selected in the canvas.
3
+ *
4
+ * @param {Object} props
5
+ * @param {string} props.path Current navigation path.
6
+ * @param {Function} props.onPathChange Callback to change the navigation path.
7
+ */
8
+ export function GlobalStylesBlockLink({ path, onPathChange }: {
9
+ path: string;
10
+ onPathChange: Function;
11
+ }): null;
12
+ //# sourceMappingURL=block-link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-link.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles/block-link.js"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,8DAHG;IAAwB,IAAI,EAApB,MAAM;IACU,YAAY;CACtC,QAkDA"}
@@ -0,0 +1,7 @@
1
+ export default ScreenHeader;
2
+ declare function ScreenHeader({ title, description, onBack }: {
3
+ title: any;
4
+ description: any;
5
+ onBack: any;
6
+ }): import("react").JSX.Element;
7
+ //# sourceMappingURL=header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles/header.js"],"names":[],"mappings":";AAcA;;;;gCA+BC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Hook to get merged global styles configuration
3
+ *
4
+ * @return {Object} Object containing merged, base, user configs and setUser function
5
+ * { merged, base, user, setUser }
6
+ */
7
+ export function useGlobalStyles(): Object;
8
+ /**
9
+ * Hook to get a style value from global styles
10
+ *
11
+ * @param {string} path Style path (e.g., 'color.background')
12
+ * @param {string} blockName Optional block name
13
+ * @return {*} Style value
14
+ */
15
+ export function useStyle(path: string, blockName: string): any;
16
+ /**
17
+ * Hook to get a setting value from global styles
18
+ *
19
+ * @param {string} path Setting path (e.g., 'spacing.blockGap')
20
+ * @param {string} blockName Optional block name
21
+ * @return {*} Setting value
22
+ */
23
+ export function useSetting(path: string, blockName: string): any;
24
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles/hooks.js"],"names":[],"mappings":"AAgKA;;;;;GAKG;AACH,mCAHY,MAAM,CAsBjB;AAED;;;;;;GAMG;AACH,+BAJW,MAAM,aACN,MAAM,GACL,GAAC,CAQZ;AAED;;;;;;GAMG;AACH,iCAJW,MAAM,aACN,MAAM,GACL,GAAC,CAQZ"}
@@ -0,0 +1,6 @@
1
+ export default function GlobalStylesUIWrapper({ path, onPathChange }: {
2
+ path: any;
3
+ onPathChange: any;
4
+ }): import("react").JSX.Element | null;
5
+ export { useGlobalStyles, useStyle, useSetting } from "./hooks";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles/index.js"],"names":[],"mappings":"AA0FA;;;uCAgCC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Action menu with Reset, Welcome Guide, and Additional CSS.
3
+ *
4
+ * @param {Object} props Component props.
5
+ * @param {boolean} props.hideWelcomeGuide Whether to hide the Welcome Guide option.
6
+ * @param {Function} props.onChangePath Callback for navigation to different paths (e.g., '/css').
7
+ * @return {JSX.Element} The Global Styles Action Menu component.
8
+ */
9
+ export function GlobalStylesActionMenu({ hideWelcomeGuide, onChangePath, }: {
10
+ hideWelcomeGuide: boolean;
11
+ onChangePath: Function;
12
+ }): JSX.Element;
13
+ //# sourceMappingURL=menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles/menu.js"],"names":[],"mappings":"AAeA;;;;;;;GAOG;AACH,4EAJG;IAAwB,gBAAgB,EAAhC,OAAO;IACS,YAAY;CACpC,GAAS,GAAG,CAAC,OAAO,CA+EtB"}
@@ -1,4 +1,3 @@
1
- export function mergeBaseAndUserConfigs(base: any, user: any): any;
2
1
  export function useGlobalStylesContext(): {
3
2
  isReady: any;
4
3
  user: boolean | {
@@ -7,14 +6,11 @@ export function useGlobalStylesContext(): {
7
6
  _links: any;
8
7
  } | ((callbackOrObject: Function | Object, options?: Object) => void);
9
8
  base: any;
10
- merged: any;
9
+ merged: import("@wordpress/global-styles-engine").GlobalStylesConfig;
11
10
  setUserConfig: boolean | {
12
11
  settings: any;
13
12
  styles: any;
14
13
  _links: any;
15
14
  } | ((callbackOrObject: Function | Object, options?: Object) => void);
16
15
  };
17
- export function GlobalStylesProvider({ children }: {
18
- children: any;
19
- }): import("react").JSX.Element | null;
20
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles-provider/index.js"],"names":[],"mappings":"AAuBA,mEAoBC;AAiKD;;;;;;4BAjDa,WAAS,MAAM,YAEf,MAAM;;;;;;;4BAFN,WAAS,MAAM,YAEf,MAAM;EA8ElB;AAED;;uCAWC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles-provider/index.js"],"names":[],"mappings":"AA+KA;;;;;;4BAjDa,WAAS,MAAM,YAEf,MAAM;;;;;;;4BAFN,WAAS,MAAM,YAEf,MAAM;EA8ElB"}
@@ -0,0 +1,4 @@
1
+ export function GlobalStylesRenderer({ disableRootPadding }: {
2
+ disableRootPadding: any;
3
+ }): null;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles-renderer/index.js"],"names":[],"mappings":"AAkCA;;SAIC"}
@@ -0,0 +1,13 @@
1
+ export default function DefaultSidebar({ className, identifier, title, icon, children, closeLabel, header, headerClassName, panelClassName, isActiveByDefault, }: {
2
+ className: any;
3
+ identifier: any;
4
+ title: any;
5
+ icon: any;
6
+ children: any;
7
+ closeLabel: any;
8
+ header: any;
9
+ headerClassName: any;
10
+ panelClassName: any;
11
+ isActiveByDefault: any;
12
+ }): import("react").JSX.Element;
13
+ //# sourceMappingURL=default-sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles-sidebar/default-sidebar.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;gCAqCC"}
@@ -0,0 +1,2 @@
1
+ export default function GlobalStylesSidebar(): import("react").JSX.Element;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles-sidebar/index.js"],"names":[],"mappings":"AAuBA,2EAyJC"}
@@ -0,0 +1,5 @@
1
+ export default function WelcomeGuideImage({ nonAnimatedSrc, animatedSrc }: {
2
+ nonAnimatedSrc: any;
3
+ animatedSrc: any;
4
+ }): import("react").JSX.Element;
5
+ //# sourceMappingURL=welcome-guide-image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"welcome-guide-image.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles-sidebar/welcome-guide-image.js"],"names":[],"mappings":"AAAA;;;gCAUC"}
@@ -0,0 +1,2 @@
1
+ export default function WelcomeGuideStyles(): import("react").JSX.Element | null;
2
+ //# sourceMappingURL=welcome-guide.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"welcome-guide.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles-sidebar/welcome-guide.js"],"names":[],"mappings":"AAcA,iFAyHC"}
@@ -1,9 +1,7 @@
1
1
  export default Header;
2
- declare function Header({ customSaveButton, forceIsDirty, forceDisableBlockTools, setEntitiesSavedStatesCallback, title, }: {
2
+ declare function Header({ customSaveButton, forceIsDirty, setEntitiesSavedStatesCallback, }: {
3
3
  customSaveButton: any;
4
4
  forceIsDirty: any;
5
- forceDisableBlockTools: any;
6
5
  setEntitiesSavedStatesCallback: any;
7
- title: any;
8
6
  }): import("react").JSX.Element;
9
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";AAiDA;;;;;;gCAqJC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";AAiDA;;;;gCA0JC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AA4YA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAgC,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ,GAAhC,KAAK,CAAC,SAAS;CAGvB,GAWS,KAAK,CAAC,SAAS,CAW1B;AAlTD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GA+OE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AA0YA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAgC,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ,GAAhC,KAAK,CAAC,SAAS;CAGvB,GAWS,KAAK,CAAC,SAAS,CAW1B;AAjTD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GA8OE"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+ import type { BlockExample, StyleBookCategory, CategoryExamples } from './types';
5
+ /**
6
+ * Returns category examples for a given category definition and list of examples.
7
+ * @param {StyleBookCategory} categoryDefinition The category definition.
8
+ * @param {BlockExample[]} examples An array of block examples.
9
+ * @return {CategoryExamples|undefined} An object containing the category examples.
10
+ */
11
+ export declare function getExamplesByCategory(categoryDefinition: StyleBookCategory, examples: BlockExample[]): CategoryExamples | undefined;
12
+ /**
13
+ * Returns category examples for a given category definition and list of examples.
14
+ *
15
+ * @return {StyleBookCategory[]} An array of top-level category definitions.
16
+ */
17
+ export declare function getTopLevelStyleBookCategories(): StyleBookCategory[];
18
+ //# sourceMappingURL=categories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"categories.d.ts","sourceRoot":"","sources":["../../../src/components/style-book/categories.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,OAAO,KAAK,EACX,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,MAAM,SAAS,CAAC;AAMjB;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACpC,kBAAkB,EAAE,iBAAiB,EACrC,QAAQ,EAAE,YAAY,EAAE,GACtB,gBAAgB,GAAG,SAAS,CAkD9B;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,IAAI,iBAAiB,EAAE,CAUpE"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+ import type { ColorExampleProps } from './types';
5
+ declare const ColorExamples: ({ colors, type, templateColumns, itemHeight, }: ColorExampleProps) => JSX.Element | null;
6
+ export default ColorExamples;
7
+ //# sourceMappingURL=color-examples.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-examples.d.ts","sourceRoot":"","sources":["../../../src/components/style-book/color-examples.tsx"],"names":[],"mappings":"AAgBA;;GAEG;AACH,OAAO,KAAK,EAAmB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAElE,QAAA,MAAM,aAAa,mDAKhB,iBAAiB,KAAI,GAAG,CAAC,OAAO,GAAG,IA2BrC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+ import type { StyleBookCategory, StyleBookColorGroup } from './types';
5
+ export declare const STYLE_BOOK_COLOR_GROUPS: StyleBookColorGroup[];
6
+ export declare const STYLE_BOOK_THEME_SUBCATEGORIES: Omit<StyleBookCategory, 'subcategories'>[];
7
+ export declare const STYLE_BOOK_CATEGORIES: StyleBookCategory[];
8
+ export declare const STYLE_BOOK_ALL_BLOCKS_SUBCATEGORIES: StyleBookCategory[];
9
+ export declare const STYLE_BOOK_PREVIEW_CATEGORIES: StyleBookCategory[];
10
+ export declare const STYLE_BOOK_IFRAME_STYLES = "\n\tbody {\n\t\tposition: relative;\n\t\tpadding: 32px !important;\n\t}\n\n\t\n\t.is-root-container {\n\t\tdisplay: flow-root;\n\t}\n\n\n\t.editor-style-book__examples {\n\t\tmax-width: 1200px;\n\t\tmargin: 0 auto;\n\t}\n\n\t.editor-style-book__example {\n\t max-width: 900px;\n\t\tborder-radius: 2px;\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: 40px;\n\t\tpadding: 16px;\n\t\twidth: 100%;\n\t\tbox-sizing: border-box;\n\t\tscroll-margin-top: 32px;\n\t\tscroll-margin-bottom: 32px;\n\t\tmargin: 0 auto 40px auto;\n\t}\n\n\t.editor-style-book__example.is-selected {\n\t\tbox-shadow: 0 0 0 1px var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t}\n\n\t.editor-style-book__example.is-disabled-example {\n\t\tpointer-events: none;\n\t}\n\n\t.editor-style-book__example:focus:not(:disabled) {\n\t\tbox-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t\toutline: 3px solid transparent;\n\t}\n\n\t.editor-style-book__duotone-example > div:first-child {\n\t\tdisplay: flex;\n\t\taspect-ratio: 16 / 9;\n\t\tgrid-row: span 1;\n\t\tgrid-column: span 2;\n\t}\n\t.editor-style-book__duotone-example img {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t}\n\t.editor-style-book__duotone-example > div:not(:first-child) {\n\t\theight: 20px;\n\t\tborder: 1px solid color-mix( in srgb, currentColor 10%, transparent );\n\t}\n\n\t.editor-style-book__color-example {\n\t\tborder: 1px solid color-mix( in srgb, currentColor 10%, transparent );\n\t}\n\n\t.editor-style-book__subcategory-title,\n\t.editor-style-book__example-title {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n\t\tfont-size: 13px;\n\t\tfont-weight: normal;\n\t\tline-height: normal;\n\t\tmargin: 0;\n\t\ttext-align: left;\n\t\tpadding-top: 8px;\n\t\tborder-top: 1px solid color-mix( in srgb, currentColor 10%, transparent );\n\t\tcolor: color-mix( in srgb, currentColor 60%, transparent );\n\t}\n\n\t.editor-style-book__subcategory-title {\n\t\tfont-size: 16px;\n\t\tmargin-bottom: 40px;\n \tpadding-bottom: 8px;\n\t}\n\n\t.editor-style-book__example-preview {\n\t\twidth: 100%;\n\t}\n\n\t.editor-style-book__example-preview .block-editor-block-list__insertion-point,\n\t.editor-style-book__example-preview .block-list-appender {\n\t\tdisplay: none;\n\t}\n\t:where(.is-root-container > .wp-block:first-child) {\n\t\tmargin-top: 0;\n\t}\n\t:where(.is-root-container > .wp-block:last-child) {\n\t\tmargin-bottom: 0;\n\t}\n";
11
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/style-book/constants.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEtE,eAAO,MAAM,uBAAuB,EAAE,mBAAmB,EA2CxD,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,IAAI,CAChD,iBAAiB,EACjB,eAAe,CACf,EAgDA,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,iBAAiB,EAwCpD,CAAC;AAGF,eAAO,MAAM,mCAAmC,EAAE,iBAAiB,EAiBlE,CAAC;AAGF,eAAO,MAAM,6BAA6B,EAAE,iBAAiB,EA0B5D,CAAC;AAgBF,eAAO,MAAM,wBAAwB,mkFA8FpC,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+ import type { Duotone } from './types';
5
+ declare const DuotoneExamples: ({ duotones, }: {
6
+ duotones: Duotone[];
7
+ }) => JSX.Element | null;
8
+ export default DuotoneExamples;
9
+ //# sourceMappingURL=duotone-examples.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"duotone-examples.d.ts","sourceRoot":"","sources":["../../../src/components/style-book/duotone-examples.tsx"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,QAAA,MAAM,eAAe,kBAElB;IACF,QAAQ,EAAE,OAAO,EAAE,CAAC;CACpB,KAAI,GAAG,CAAC,OAAO,GAAG,IAuClB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+ import type { BlockExample, MultiOriginPalettes } from './types';
5
+ /**
6
+ * Returns a list of examples for registered block types.
7
+ *
8
+ * @param {MultiOriginPalettes} colors Global styles colors grouped by origin e.g. Core, Theme, and User.
9
+ * @return {BlockExample[]} An array of block examples.
10
+ */
11
+ export declare function getExamples(colors: MultiOriginPalettes): BlockExample[];
12
+ //# sourceMappingURL=examples.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"examples.d.ts","sourceRoot":"","sources":["../../../src/components/style-book/examples.tsx"],"names":[],"mappings":"AAaA;;GAEG;AACH,OAAO,KAAK,EACX,YAAY,EAEZ,mBAAmB,EAEnB,MAAM,SAAS,CAAC;AAyLjB;;;;;GAKG;AACH,wBAAgB,WAAW,CAAE,MAAM,EAAE,mBAAmB,GAAI,YAAY,EAAE,CA4DzE"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Get deduped examples for single page stylebook.
3
+ * @param {Array} examples Array of examples.
4
+ * @return {Array} Deduped examples.
5
+ */
6
+ export function getExamplesForSinglePageUse(examples: any[]): any[];
7
+ export function StyleBookPreview({ userConfig, isStatic, path, onPathChange, }: {
8
+ path: string;
9
+ onPathChange: Function;
10
+ userConfig: Object;
11
+ isStatic: boolean;
12
+ }): Object;
13
+ export function StyleBookBody({ examples, isSelected, onClick, onSelect, settings, title, goTo, }: {
14
+ examples: any;
15
+ isSelected: any;
16
+ onClick: any;
17
+ onSelect: any;
18
+ settings: any;
19
+ title: any;
20
+ goTo: any;
21
+ }): import("react").JSX.Element;
22
+ declare const _default: import("react").ForwardRefExoticComponent<{
23
+ isSelected: any;
24
+ onClick: any;
25
+ onSelect: any;
26
+ showTabs?: boolean | undefined;
27
+ userConfig?: {} | undefined;
28
+ path?: string | undefined;
29
+ } & import("react").RefAttributes<any>>;
30
+ export default _default;
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/style-book/index.js"],"names":[],"mappings":"AAyLA;;;;GAIG;AACH,oEAkBC;AA2KM,gFANJ;IAAwB,IAAI,EAApB,MAAM;IACU,YAAY;IACZ,UAAU,EAA1B,MAAM;IACU,QAAQ,EAAxB,OAAO;CACf,GAAS,MAAM,CAkLjB;AAEM;;;;;;;;gCAqFN"}
@@ -0,0 +1,72 @@
1
+ export type Block = {
2
+ name: string;
3
+ attributes: Record<string, unknown>;
4
+ innerBlocks?: Block[];
5
+ };
6
+ export type StyleBookCategory = {
7
+ title: string;
8
+ slug: string;
9
+ blocks?: string[];
10
+ exclude?: string[];
11
+ include?: string[];
12
+ subcategories?: StyleBookCategory[];
13
+ };
14
+ export type BlockExample = {
15
+ name: string;
16
+ title: string;
17
+ category: string;
18
+ content?: JSX.Element;
19
+ blocks?: Block | Block[];
20
+ };
21
+ export type CategoryExamples = {
22
+ title: string;
23
+ slug: string;
24
+ examples?: BlockExample[];
25
+ subcategories?: CategoryExamples[];
26
+ };
27
+ export type StyleBookColorGroup = {
28
+ origin: string;
29
+ slug: string;
30
+ title: string;
31
+ type: 'colors' | 'gradients' | 'duotones';
32
+ };
33
+ export type Color = {
34
+ slug: string;
35
+ };
36
+ export type Gradient = {
37
+ slug: string;
38
+ };
39
+ export type Duotone = {
40
+ colors: string[];
41
+ slug: string;
42
+ };
43
+ export type ColorExampleProps = {
44
+ colors: Color[] | Gradient[];
45
+ type: StyleBookColorGroup['type'];
46
+ templateColumns?: string | number;
47
+ itemHeight?: string;
48
+ };
49
+ export type ColorOrigin = {
50
+ name: string;
51
+ slug: string;
52
+ colors?: Color[];
53
+ gradients?: Gradient[];
54
+ duotones?: Duotone[];
55
+ };
56
+ export type MultiOriginPalettes = {
57
+ disableCustomColors: boolean;
58
+ disableCustomGradients: boolean;
59
+ hasColorsOrGradients: boolean;
60
+ colors: Omit<ColorOrigin, 'gradients' | 'duotones'>;
61
+ duotones: Omit<ColorOrigin, 'colors' | 'gradients'>;
62
+ gradients: Omit<ColorOrigin, 'colors' | 'duotones'>;
63
+ };
64
+ export type BlockType = {
65
+ name: string;
66
+ title: string;
67
+ category: string;
68
+ example: BlockType;
69
+ attributes: Record<string, unknown>;
70
+ supports: Record<string, unknown>;
71
+ };
72
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/style-book/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAE,MAAM,EAAE,OAAO,CAAE,CAAC;IACtC,WAAW,CAAC,EAAE,KAAK,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,CAAC,EAAE,iBAAiB,EAAE,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;IAC1B,aAAa,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,GAAG,WAAW,GAAG,UAAU,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AACrC,MAAM,MAAM,QAAQ,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AACxC,MAAM,MAAM,OAAO,GAAG;IACrB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC/B,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC7B,IAAI,EAAE,mBAAmB,CAAE,MAAM,CAAE,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IACjB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IACjC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,sBAAsB,EAAE,OAAO,CAAC;IAChC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,MAAM,EAAE,IAAI,CAAE,WAAW,EAAE,WAAW,GAAG,UAAU,CAAE,CAAC;IACtD,QAAQ,EAAE,IAAI,CAAE,WAAW,EAAE,QAAQ,GAAG,WAAW,CAAE,CAAC;IACtD,SAAS,EAAE,IAAI,CAAE,WAAW,EAAE,QAAQ,GAAG,UAAU,CAAE,CAAC;CACtD,CAAC;AAMF,MAAM,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,SAAS,CAAC;IACnB,UAAU,EAAE,MAAM,CAAE,MAAM,EAAE,OAAO,CAAE,CAAC;IACtC,QAAQ,EAAE,MAAM,CAAE,MAAM,EAAE,OAAO,CAAE,CAAC;CACpC,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Helper function to get the title for the styles canvas based on current state.
3
+ *
4
+ * @param {string} path Current styles path.
5
+ * @param {boolean} showStylebook Whether stylebook is visible.
6
+ * @return {string} Translated string for the canvas title.
7
+ */
8
+ export function getStylesCanvasTitle(path: string, showStylebook: boolean): string;
9
+ /**
10
+ * Styles canvas component - orchestrates rendering of style book and revisions.
11
+ * Determines what content to show based on global styles navigation state.
12
+ *
13
+ * @return {JSX.Element|null} The styles canvas or null if nothing to render.
14
+ */
15
+ export default function StylesCanvas(): JSX.Element | null;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/styles-canvas/index.js"],"names":[],"mappings":"AAmBA;;;;;;GAMG;AACH,2CAJW,MAAM,iBACN,OAAO,GACN,MAAM,CAUjB;AAED;;;;;GAKG;AACH,wCAFY,GAAG,CAAC,OAAO,GAAC,IAAI,CAqF3B"}
@@ -0,0 +1,5 @@
1
+ declare const _default: import("react").ForwardRefExoticComponent<{
2
+ path: string;
3
+ } & import("react").RefAttributes<any>>;
4
+ export default _default;
5
+ //# sourceMappingURL=revisions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"revisions.d.ts","sourceRoot":"","sources":["../../../src/components/styles-canvas/revisions.js"],"names":[],"mappings":";UAsCW,MAAM"}
@@ -0,0 +1,6 @@
1
+ declare const _default: import("react").ForwardRefExoticComponent<{
2
+ path: string;
3
+ onPathChange: Function;
4
+ } & import("react").RefAttributes<any>>;
5
+ export default _default;
6
+ //# sourceMappingURL=style-book.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-book.d.ts","sourceRoot":"","sources":["../../../src/components/styles-canvas/style-book.js"],"names":[],"mappings":";UAgBW,MAAM"}
@@ -1,7 +1,6 @@
1
1
  export default VisualEditor;
2
- declare function VisualEditor({ autoFocus, styles, disableIframe, iframeProps, contentRef, className, }: {
2
+ declare function VisualEditor({ autoFocus, disableIframe, iframeProps, contentRef, className, }: {
3
3
  autoFocus: any;
4
- styles: any;
5
4
  disableIframe?: boolean | undefined;
6
5
  iframeProps: any;
7
6
  contentRef: any;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/visual-editor/index.js"],"names":[],"mappings":";AA+FA;;;;;;;gCAwYC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/visual-editor/index.js"],"names":[],"mappings":";AA+FA;;;;;;gCAyYC"}
@@ -1 +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"}
1
+ {"version":3,"file":"content-preview-view.d.ts","sourceRoot":"","sources":["../../../../src/dataviews/fields/content-preview/content-preview-view.tsx"],"names":[],"mappings":"AAWA,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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/push-changes-to-global-styles/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Returns the global styles output based on the provided global styles config.
3
+ *
4
+ * @param {Object} mergedConfig The merged global styles config.
5
+ * @param {boolean} disableRootPadding Disable root padding styles.
6
+ *
7
+ * @return {Array} Array of stylesheets and settings.
8
+ */
9
+ export function useGlobalStylesOutputWithConfig(mergedConfig?: Object, disableRootPadding?: boolean): any[];
10
+ /**
11
+ * Returns the global styles output based on the current state of global styles config loaded in the editor context.
12
+ *
13
+ * @param {boolean} disableRootPadding Disable root padding styles.
14
+ *
15
+ * @return {Array} Array of stylesheets and settings.
16
+ */
17
+ export function useGlobalStylesOutput(disableRootPadding?: boolean): any[];
18
+ //# sourceMappingURL=use-global-styles-output.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-global-styles-output.d.ts","sourceRoot":"","sources":["../../src/hooks/use-global-styles-output.js"],"names":[],"mappings":"AAcA;;;;;;;GAOG;AACH,+DALW,MAAM,uBACN,OAAO,SA6CjB;AAED;;;;;;GAMG;AACH,2DAJW,OAAO,SAOjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AAmCA,6BAA8B"}
1
+ {"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AAkCA,6BAA8B"}
@@ -6,6 +6,26 @@
6
6
  * @return {Object} Action object.
7
7
  */
8
8
  export function setCurrentTemplateId(id: string): Object;
9
+ /**
10
+ * Set the current global styles navigation path.
11
+ *
12
+ * @param {string} path The navigation path.
13
+ * @return {Object} Action object.
14
+ */
15
+ export function setStylesPath(path: string): Object;
16
+ /**
17
+ * Set whether the stylebook is visible.
18
+ *
19
+ * @param {boolean} show Whether to show the stylebook.
20
+ * @return {Object} Action object.
21
+ */
22
+ export function setShowStylebook(show: boolean): Object;
23
+ /**
24
+ * Reset the global styles navigation to initial state.
25
+ *
26
+ * @return {Object} Action object.
27
+ */
28
+ export function resetStylesNavigation(): Object;
9
29
  export * from "../dataviews/store/private-actions";
10
30
  export function createTemplate(template: Object | null): ({ select, dispatch, registry }: {
11
31
  select: any;
@@ -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,yCAFK,MAAM,OAAA;;;;mBAqChB;AAOK,2CAFI,MAAM,EAAE;;WAoBjB;AAOK,2CAFI,MAAM,EAAE;;WAkBjB;AAWK,0FALJ;IAA2B,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,KAAK;CAClC;;WAoGC;AAUK,yCALI,MAAM,kBAEd;IAA0B,SAAS;CAErC;;oBA6HC;AAOK;;oBA0HL;AAOK,8CAFI,MAAM;;;WA4Bf"}
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;AAkfD;;;;;GAKG;AACH,oCAHW,MAAM,GACL,MAAM,CAOjB;AAED;;;;;GAKG;AACH,uCAHW,OAAO,GACN,MAAM,CAOjB;AAED;;;;GAIG;AACH,yCAFY,MAAM,CAMjB;;AA9gBM,yCAFK,MAAM,OAAA;;;;mBAqChB;AAOK,2CAFI,MAAM,EAAE;;WAoBjB;AAOK,2CAFI,MAAM,EAAE;;WAkBjB;AAWK,0FALJ;IAA2B,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,KAAK;CAClC;;WAoGC;AAUK,yCALI,MAAM,kBAEd;IAA0B,SAAS;CAErC;;oBA6HC;AAOK;;oBA0HL;AAOK,8CAFI,MAAM;;;WA4Bf"}