@bendyline/squisq 1.3.0 → 1.4.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 (419) hide show
  1. package/dist/{Doc-Ch4tc3vv.d.ts → Doc-BeSeH2iX.d.ts} +118 -41
  2. package/dist/ImageEditDoc-BTIvw0oq.d.ts +84 -0
  3. package/dist/__tests__/colorUtils.test.d.ts +2 -0
  4. package/dist/__tests__/colorUtils.test.d.ts.map +1 -0
  5. package/dist/__tests__/colorUtils.test.js +94 -0
  6. package/dist/__tests__/colorUtils.test.js.map +1 -0
  7. package/dist/__tests__/getLayers.test.js +31 -7
  8. package/dist/__tests__/getLayers.test.js.map +1 -1
  9. package/dist/__tests__/iconResolve.test.d.ts +2 -0
  10. package/dist/__tests__/iconResolve.test.d.ts.map +1 -0
  11. package/dist/__tests__/iconResolve.test.js +99 -0
  12. package/dist/__tests__/iconResolve.test.js.map +1 -0
  13. package/dist/__tests__/imageEditState.test.d.ts +2 -0
  14. package/dist/__tests__/imageEditState.test.d.ts.map +1 -0
  15. package/dist/__tests__/imageEditState.test.js +61 -0
  16. package/dist/__tests__/imageEditState.test.js.map +1 -0
  17. package/dist/__tests__/imageEditVersions.test.d.ts +2 -0
  18. package/dist/__tests__/imageEditVersions.test.d.ts.map +1 -0
  19. package/dist/__tests__/imageEditVersions.test.js +141 -0
  20. package/dist/__tests__/imageEditVersions.test.js.map +1 -0
  21. package/dist/__tests__/inferDocumentTitle.test.d.ts +2 -0
  22. package/dist/__tests__/inferDocumentTitle.test.d.ts.map +1 -0
  23. package/dist/__tests__/inferDocumentTitle.test.js +42 -0
  24. package/dist/__tests__/inferDocumentTitle.test.js.map +1 -0
  25. package/dist/__tests__/jsonForm.chooseControl.test.d.ts +2 -0
  26. package/dist/__tests__/jsonForm.chooseControl.test.d.ts.map +1 -0
  27. package/dist/__tests__/jsonForm.chooseControl.test.js +74 -0
  28. package/dist/__tests__/jsonForm.chooseControl.test.js.map +1 -0
  29. package/dist/__tests__/jsonForm.evaluateWhen.test.d.ts +2 -0
  30. package/dist/__tests__/jsonForm.evaluateWhen.test.d.ts.map +1 -0
  31. package/dist/__tests__/jsonForm.evaluateWhen.test.js +51 -0
  32. package/dist/__tests__/jsonForm.evaluateWhen.test.js.map +1 -0
  33. package/dist/__tests__/jsonForm.inferSchema.test.d.ts +2 -0
  34. package/dist/__tests__/jsonForm.inferSchema.test.d.ts.map +1 -0
  35. package/dist/__tests__/jsonForm.inferSchema.test.js +23 -0
  36. package/dist/__tests__/jsonForm.inferSchema.test.js.map +1 -0
  37. package/dist/__tests__/jsonForm.pointer.test.d.ts +2 -0
  38. package/dist/__tests__/jsonForm.pointer.test.d.ts.map +1 -0
  39. package/dist/__tests__/jsonForm.pointer.test.js +94 -0
  40. package/dist/__tests__/jsonForm.pointer.test.js.map +1 -0
  41. package/dist/__tests__/markdownIcons.test.d.ts +2 -0
  42. package/dist/__tests__/markdownIcons.test.d.ts.map +1 -0
  43. package/dist/__tests__/markdownIcons.test.js +93 -0
  44. package/dist/__tests__/markdownIcons.test.js.map +1 -0
  45. package/dist/__tests__/markdownToDoc.test.js +15 -4
  46. package/dist/__tests__/markdownToDoc.test.js.map +1 -1
  47. package/dist/__tests__/recommendTemplates.test.d.ts +2 -0
  48. package/dist/__tests__/recommendTemplates.test.d.ts.map +1 -0
  49. package/dist/__tests__/recommendTemplates.test.js +158 -0
  50. package/dist/__tests__/recommendTemplates.test.js.map +1 -0
  51. package/dist/__tests__/scopedContentContainer.test.d.ts +2 -0
  52. package/dist/__tests__/scopedContentContainer.test.d.ts.map +1 -0
  53. package/dist/__tests__/scopedContentContainer.test.js +74 -0
  54. package/dist/__tests__/scopedContentContainer.test.js.map +1 -0
  55. package/dist/__tests__/slideshowGenerator.test.js +1 -1
  56. package/dist/__tests__/slideshowGenerator.test.js.map +1 -1
  57. package/dist/__tests__/templateAnnotationParse.test.d.ts +2 -0
  58. package/dist/__tests__/templateAnnotationParse.test.d.ts.map +1 -0
  59. package/dist/__tests__/templateAnnotationParse.test.js +42 -0
  60. package/dist/__tests__/templateAnnotationParse.test.js.map +1 -0
  61. package/dist/__tests__/templates.test.js +90 -9
  62. package/dist/__tests__/templates.test.js.map +1 -1
  63. package/dist/__tests__/themeCompile.test.d.ts +2 -0
  64. package/dist/__tests__/themeCompile.test.d.ts.map +1 -0
  65. package/dist/__tests__/themeCompile.test.js +134 -0
  66. package/dist/__tests__/themeCompile.test.js.map +1 -0
  67. package/dist/__tests__/themeValidator.test.d.ts +2 -0
  68. package/dist/__tests__/themeValidator.test.d.ts.map +1 -0
  69. package/dist/__tests__/themeValidator.test.js +107 -0
  70. package/dist/__tests__/themeValidator.test.js.map +1 -0
  71. package/dist/__tests__/versions.test.d.ts +2 -0
  72. package/dist/__tests__/versions.test.d.ts.map +1 -0
  73. package/dist/__tests__/versions.test.js +339 -0
  74. package/dist/__tests__/versions.test.js.map +1 -0
  75. package/dist/{chunk-CYQHG27J.js → chunk-2TMAWB4Y.js} +74 -1
  76. package/dist/chunk-2TMAWB4Y.js.map +1 -0
  77. package/dist/{chunk-OASJKWO5.js → chunk-3K5OG6KI.js} +92 -7
  78. package/dist/chunk-3K5OG6KI.js.map +1 -0
  79. package/dist/chunk-57CVQCFX.js +193 -0
  80. package/dist/chunk-57CVQCFX.js.map +1 -0
  81. package/dist/{chunk-QM5PKNPW.js → chunk-5WFRKURX.js} +1 -1
  82. package/dist/chunk-5WFRKURX.js.map +1 -0
  83. package/dist/chunk-B4EEON3N.js +1317 -0
  84. package/dist/chunk-B4EEON3N.js.map +1 -0
  85. package/dist/chunk-DBS6RIFL.js +81 -0
  86. package/dist/chunk-DBS6RIFL.js.map +1 -0
  87. package/dist/{chunk-MIBRIRGJ.js → chunk-FR2RBTKO.js} +3 -3
  88. package/dist/{chunk-MIBRIRGJ.js.map → chunk-FR2RBTKO.js.map} +1 -1
  89. package/dist/chunk-H3AXU4MJ.js +179 -0
  90. package/dist/chunk-H3AXU4MJ.js.map +1 -0
  91. package/dist/chunk-JELIRVDP.js +24 -0
  92. package/dist/chunk-JELIRVDP.js.map +1 -0
  93. package/dist/chunk-K32VJONL.js +193 -0
  94. package/dist/chunk-K32VJONL.js.map +1 -0
  95. package/dist/{chunk-6BAVXFYC.js → chunk-KSWJR66U.js} +218 -42
  96. package/dist/chunk-KSWJR66U.js.map +1 -0
  97. package/dist/{chunk-TSG2OSE6.js → chunk-MYIH7FWD.js} +3 -3
  98. package/dist/chunk-MYIH7FWD.js.map +1 -0
  99. package/dist/chunk-VLJJHDAC.js +218 -0
  100. package/dist/chunk-VLJJHDAC.js.map +1 -0
  101. package/dist/chunk-WMOI7FN3.js +182 -0
  102. package/dist/chunk-WMOI7FN3.js.map +1 -0
  103. package/dist/chunk-ZTX4PFFT.js +520 -0
  104. package/dist/chunk-ZTX4PFFT.js.map +1 -0
  105. package/dist/doc/audioMapping.d.ts.map +1 -1
  106. package/dist/doc/audioMapping.js +42 -7
  107. package/dist/doc/audioMapping.js.map +1 -1
  108. package/dist/doc/getLayers.d.ts.map +1 -1
  109. package/dist/doc/getLayers.js +29 -18
  110. package/dist/doc/getLayers.js.map +1 -1
  111. package/dist/doc/markdownToDoc.d.ts.map +1 -1
  112. package/dist/doc/markdownToDoc.js +40 -6
  113. package/dist/doc/markdownToDoc.js.map +1 -1
  114. package/dist/doc/templates/featureBlock.d.ts +18 -0
  115. package/dist/doc/templates/featureBlock.d.ts.map +1 -0
  116. package/dist/doc/templates/featureBlock.js +180 -0
  117. package/dist/doc/templates/featureBlock.js.map +1 -0
  118. package/dist/doc/templates/fullBleedQuote.d.ts +12 -0
  119. package/dist/doc/templates/fullBleedQuote.d.ts.map +1 -1
  120. package/dist/doc/templates/fullBleedQuote.js +12 -0
  121. package/dist/doc/templates/fullBleedQuote.js.map +1 -1
  122. package/dist/doc/templates/index.d.ts +28 -4
  123. package/dist/doc/templates/index.d.ts.map +1 -1
  124. package/dist/doc/templates/index.js +45 -12
  125. package/dist/doc/templates/index.js.map +1 -1
  126. package/dist/doc/templates/listBlock.d.ts.map +1 -1
  127. package/dist/doc/templates/listBlock.js +22 -5
  128. package/dist/doc/templates/listBlock.js.map +1 -1
  129. package/dist/doc/templates/statHighlight.d.ts +12 -0
  130. package/dist/doc/templates/statHighlight.d.ts.map +1 -1
  131. package/dist/doc/templates/statHighlight.js +12 -0
  132. package/dist/doc/templates/statHighlight.js.map +1 -1
  133. package/dist/doc/templates/titleBlock.d.ts +11 -0
  134. package/dist/doc/templates/titleBlock.d.ts.map +1 -1
  135. package/dist/doc/templates/titleBlock.js +8 -0
  136. package/dist/doc/templates/titleBlock.js.map +1 -1
  137. package/dist/doc/utils/themeUtils.d.ts +4 -4
  138. package/dist/doc/utils/themeUtils.d.ts.map +1 -1
  139. package/dist/doc/utils/themeUtils.js +8 -7
  140. package/dist/doc/utils/themeUtils.js.map +1 -1
  141. package/dist/generate/slideshowGenerator.js +1 -1
  142. package/dist/generate/slideshowGenerator.js.map +1 -1
  143. package/dist/generate/templateMapper.js +2 -2
  144. package/dist/generate/templateMapper.js.map +1 -1
  145. package/dist/icons/iconData.d.ts +26 -0
  146. package/dist/icons/iconData.d.ts.map +1 -0
  147. package/dist/icons/iconData.js +12 -0
  148. package/dist/icons/iconData.js.map +1 -0
  149. package/dist/icons/index.d.ts +12 -0
  150. package/dist/icons/index.d.ts.map +1 -0
  151. package/dist/icons/index.js +10 -0
  152. package/dist/icons/index.js.map +1 -0
  153. package/dist/icons/resolve.d.ts +61 -0
  154. package/dist/icons/resolve.d.ts.map +1 -0
  155. package/dist/icons/resolve.js +130 -0
  156. package/dist/icons/resolve.js.map +1 -0
  157. package/dist/imageEdit/ImageEditVersionManager.d.ts +31 -0
  158. package/dist/imageEdit/ImageEditVersionManager.d.ts.map +1 -0
  159. package/dist/imageEdit/ImageEditVersionManager.js +39 -0
  160. package/dist/imageEdit/ImageEditVersionManager.js.map +1 -0
  161. package/dist/imageEdit/export.d.ts +33 -0
  162. package/dist/imageEdit/export.d.ts.map +1 -0
  163. package/dist/imageEdit/export.js +253 -0
  164. package/dist/imageEdit/export.js.map +1 -0
  165. package/dist/imageEdit/index.d.ts +14 -0
  166. package/dist/imageEdit/index.d.ts.map +1 -0
  167. package/dist/imageEdit/index.js +22 -0
  168. package/dist/imageEdit/index.js.map +1 -0
  169. package/dist/imageEdit/persistence.d.ts +15 -0
  170. package/dist/imageEdit/persistence.d.ts.map +1 -0
  171. package/dist/imageEdit/persistence.js +49 -0
  172. package/dist/imageEdit/persistence.js.map +1 -0
  173. package/dist/imageEdit/state.d.ts +42 -0
  174. package/dist/imageEdit/state.d.ts.map +1 -0
  175. package/dist/imageEdit/state.js +98 -0
  176. package/dist/imageEdit/state.js.map +1 -0
  177. package/dist/imageEdit/versionPaths.d.ts +27 -0
  178. package/dist/imageEdit/versionPaths.d.ts.map +1 -0
  179. package/dist/imageEdit/versionPaths.js +57 -0
  180. package/dist/imageEdit/versionPaths.js.map +1 -0
  181. package/dist/imageEdit/versions.d.ts +67 -0
  182. package/dist/imageEdit/versions.d.ts.map +1 -0
  183. package/dist/imageEdit/versions.js +161 -0
  184. package/dist/imageEdit/versions.js.map +1 -0
  185. package/dist/index.d.ts +4 -0
  186. package/dist/index.d.ts.map +1 -1
  187. package/dist/index.js +4 -0
  188. package/dist/index.js.map +1 -1
  189. package/dist/jsonForm/chooseControl.d.ts +20 -0
  190. package/dist/jsonForm/chooseControl.d.ts.map +1 -0
  191. package/dist/jsonForm/chooseControl.js +82 -0
  192. package/dist/jsonForm/chooseControl.js.map +1 -0
  193. package/dist/jsonForm/evaluateWhen.d.ts +12 -0
  194. package/dist/jsonForm/evaluateWhen.d.ts.map +1 -0
  195. package/dist/jsonForm/evaluateWhen.js +65 -0
  196. package/dist/jsonForm/evaluateWhen.js.map +1 -0
  197. package/dist/jsonForm/index.d.ts +14 -0
  198. package/dist/jsonForm/index.d.ts.map +1 -0
  199. package/dist/jsonForm/index.js +12 -0
  200. package/dist/jsonForm/index.js.map +1 -0
  201. package/dist/jsonForm/inferSchema.d.ts +12 -0
  202. package/dist/jsonForm/inferSchema.d.ts.map +1 -0
  203. package/dist/jsonForm/inferSchema.js +15 -0
  204. package/dist/jsonForm/inferSchema.js.map +1 -0
  205. package/dist/jsonForm/pointer.d.ts +26 -0
  206. package/dist/jsonForm/pointer.d.ts.map +1 -0
  207. package/dist/jsonForm/pointer.js +102 -0
  208. package/dist/jsonForm/pointer.js.map +1 -0
  209. package/dist/jsonForm/types.d.ts +120 -0
  210. package/dist/jsonForm/types.d.ts.map +1 -0
  211. package/dist/jsonForm/types.js +10 -0
  212. package/dist/jsonForm/types.js.map +1 -0
  213. package/dist/markdown/convert.d.ts +11 -1
  214. package/dist/markdown/convert.d.ts.map +1 -1
  215. package/dist/markdown/convert.js +135 -5
  216. package/dist/markdown/convert.js.map +1 -1
  217. package/dist/markdown/index.d.ts +1 -1
  218. package/dist/markdown/index.d.ts.map +1 -1
  219. package/dist/markdown/index.js +1 -1
  220. package/dist/markdown/index.js.map +1 -1
  221. package/dist/markdown/types.d.ts +17 -2
  222. package/dist/markdown/types.d.ts.map +1 -1
  223. package/dist/markdown/utils.d.ts +40 -0
  224. package/dist/markdown/utils.d.ts.map +1 -1
  225. package/dist/markdown/utils.js +155 -0
  226. package/dist/markdown/utils.js.map +1 -1
  227. package/dist/recommend/index.d.ts +16 -0
  228. package/dist/recommend/index.d.ts.map +1 -0
  229. package/dist/recommend/index.js +15 -0
  230. package/dist/recommend/index.js.map +1 -0
  231. package/dist/recommend/templates.d.ts +39 -0
  232. package/dist/recommend/templates.d.ts.map +1 -0
  233. package/dist/recommend/templates.js +235 -0
  234. package/dist/recommend/templates.js.map +1 -0
  235. package/dist/schemas/BlockTemplates.d.ts +46 -8
  236. package/dist/schemas/BlockTemplates.d.ts.map +1 -1
  237. package/dist/schemas/BlockTemplates.js +3 -3
  238. package/dist/schemas/BlockTemplates.js.map +1 -1
  239. package/dist/schemas/ImageEditDoc.d.ts +81 -0
  240. package/dist/schemas/ImageEditDoc.d.ts.map +1 -0
  241. package/dist/schemas/ImageEditDoc.js +20 -0
  242. package/dist/schemas/ImageEditDoc.js.map +1 -0
  243. package/dist/schemas/Theme.d.ts +70 -31
  244. package/dist/schemas/Theme.d.ts.map +1 -1
  245. package/dist/schemas/Theme.js +48 -16
  246. package/dist/schemas/Theme.js.map +1 -1
  247. package/dist/schemas/colorUtils.d.ts +51 -0
  248. package/dist/schemas/colorUtils.d.ts.map +1 -0
  249. package/dist/schemas/colorUtils.js +154 -0
  250. package/dist/schemas/colorUtils.js.map +1 -0
  251. package/dist/schemas/fontStacks.d.ts +57 -0
  252. package/dist/schemas/fontStacks.d.ts.map +1 -0
  253. package/dist/schemas/fontStacks.js +227 -0
  254. package/dist/schemas/fontStacks.js.map +1 -0
  255. package/dist/schemas/index.d.ts +5 -0
  256. package/dist/schemas/index.d.ts.map +1 -1
  257. package/dist/schemas/index.js +4 -0
  258. package/dist/schemas/index.js.map +1 -1
  259. package/dist/schemas/themeCompile.d.ts +45 -0
  260. package/dist/schemas/themeCompile.d.ts.map +1 -0
  261. package/dist/schemas/themeCompile.js +160 -0
  262. package/dist/schemas/themeCompile.js.map +1 -0
  263. package/dist/schemas/themeLibrary.d.ts +11 -15
  264. package/dist/schemas/themeLibrary.d.ts.map +1 -1
  265. package/dist/schemas/themeLibrary.js +18 -566
  266. package/dist/schemas/themeLibrary.js.map +1 -1
  267. package/dist/schemas/themeValidator.d.ts +26 -0
  268. package/dist/schemas/themeValidator.d.ts.map +1 -0
  269. package/dist/schemas/themeValidator.js +352 -0
  270. package/dist/schemas/themeValidator.js.map +1 -0
  271. package/dist/schemas/themes/bold.json +48 -0
  272. package/dist/schemas/themes/cinematic.json +54 -0
  273. package/dist/schemas/themes/documentary.json +49 -0
  274. package/dist/schemas/themes/gezellig.json +44 -0
  275. package/dist/schemas/themes/index.d.ts +26 -0
  276. package/dist/schemas/themes/index.d.ts.map +1 -0
  277. package/dist/schemas/themes/index.js +49 -0
  278. package/dist/schemas/themes/index.js.map +1 -0
  279. package/dist/schemas/themes/magazine.json +44 -0
  280. package/dist/schemas/themes/minimalist.json +45 -0
  281. package/dist/schemas/themes/morning-light.json +42 -0
  282. package/dist/schemas/themes/standard-dark.json +50 -0
  283. package/dist/schemas/themes/standard.json +42 -0
  284. package/dist/schemas/themes/tech-dark.json +48 -0
  285. package/dist/schemas/themes/warm-earth.json +50 -0
  286. package/dist/storage/ScopedContentContainer.d.ts +44 -0
  287. package/dist/storage/ScopedContentContainer.d.ts.map +1 -0
  288. package/dist/storage/ScopedContentContainer.js +94 -0
  289. package/dist/storage/ScopedContentContainer.js.map +1 -0
  290. package/dist/storage/index.d.ts +1 -0
  291. package/dist/storage/index.d.ts.map +1 -1
  292. package/dist/storage/index.js +1 -0
  293. package/dist/storage/index.js.map +1 -1
  294. package/dist/story/index.d.ts +53 -13
  295. package/dist/story/index.js +12 -4
  296. package/dist/themeLibrary-BHjJ0Qx6.d.ts +40 -0
  297. package/dist/{types-CkNttVSF.d.ts → types-BdZkdJ3z.d.ts} +17 -2
  298. package/dist/types-D98li1gV.d.ts +93 -0
  299. package/dist/versions/DocumentVersionManager.d.ts +31 -0
  300. package/dist/versions/DocumentVersionManager.d.ts.map +1 -0
  301. package/dist/versions/DocumentVersionManager.js +33 -0
  302. package/dist/versions/DocumentVersionManager.js.map +1 -0
  303. package/dist/versions/index.d.ts +29 -0
  304. package/dist/versions/index.d.ts.map +1 -0
  305. package/dist/versions/index.js +28 -0
  306. package/dist/versions/index.js.map +1 -0
  307. package/dist/versions/operations.d.ts +44 -0
  308. package/dist/versions/operations.d.ts.map +1 -0
  309. package/dist/versions/operations.js +190 -0
  310. package/dist/versions/operations.js.map +1 -0
  311. package/dist/versions/paths.d.ts +29 -0
  312. package/dist/versions/paths.d.ts.map +1 -0
  313. package/dist/versions/paths.js +66 -0
  314. package/dist/versions/paths.js.map +1 -0
  315. package/dist/versions/timestamp.d.ts +22 -0
  316. package/dist/versions/timestamp.d.ts.map +1 -0
  317. package/dist/versions/timestamp.js +44 -0
  318. package/dist/versions/timestamp.js.map +1 -0
  319. package/dist/versions/types.d.ts +92 -0
  320. package/dist/versions/types.d.ts.map +1 -0
  321. package/dist/versions/types.js +11 -0
  322. package/dist/versions/types.js.map +1 -0
  323. package/package.json +28 -1
  324. package/src/__tests__/colorUtils.test.ts +112 -0
  325. package/src/__tests__/getLayers.test.ts +32 -7
  326. package/src/__tests__/iconResolve.test.ts +122 -0
  327. package/src/__tests__/imageEditState.test.ts +74 -0
  328. package/src/__tests__/imageEditVersions.test.ts +169 -0
  329. package/src/__tests__/inferDocumentTitle.test.ts +50 -0
  330. package/src/__tests__/jsonForm.chooseControl.test.ts +86 -0
  331. package/src/__tests__/jsonForm.evaluateWhen.test.ts +59 -0
  332. package/src/__tests__/jsonForm.inferSchema.test.ts +25 -0
  333. package/src/__tests__/jsonForm.pointer.test.ts +103 -0
  334. package/src/__tests__/markdownIcons.test.ts +104 -0
  335. package/src/__tests__/markdownToDoc.test.ts +19 -4
  336. package/src/__tests__/recommendTemplates.test.ts +183 -0
  337. package/src/__tests__/scopedContentContainer.test.ts +89 -0
  338. package/src/__tests__/slideshowGenerator.test.ts +1 -1
  339. package/src/__tests__/templateAnnotationParse.test.ts +42 -0
  340. package/src/__tests__/templates.test.ts +93 -9
  341. package/src/__tests__/themeCompile.test.ts +156 -0
  342. package/src/__tests__/themeValidator.test.ts +125 -0
  343. package/src/__tests__/versions.test.ts +415 -0
  344. package/src/doc/audioMapping.ts +55 -11
  345. package/src/doc/getLayers.ts +32 -21
  346. package/src/doc/markdownToDoc.ts +45 -7
  347. package/src/doc/templates/featureBlock.ts +202 -0
  348. package/src/doc/templates/fullBleedQuote.ts +13 -0
  349. package/src/doc/templates/index.ts +50 -16
  350. package/src/doc/templates/listBlock.ts +24 -5
  351. package/src/doc/templates/statHighlight.ts +13 -0
  352. package/src/doc/templates/titleBlock.ts +9 -0
  353. package/src/doc/utils/themeUtils.ts +8 -7
  354. package/src/generate/slideshowGenerator.ts +1 -1
  355. package/src/generate/templateMapper.ts +2 -2
  356. package/src/icons/iconData.ts +31 -0
  357. package/src/icons/index.ts +18 -0
  358. package/src/icons/resolve.ts +139 -0
  359. package/src/imageEdit/ImageEditVersionManager.ts +73 -0
  360. package/src/imageEdit/export.ts +326 -0
  361. package/src/imageEdit/index.ts +71 -0
  362. package/src/imageEdit/persistence.ts +62 -0
  363. package/src/imageEdit/state.ts +112 -0
  364. package/src/imageEdit/versionPaths.ts +57 -0
  365. package/src/imageEdit/versions.ts +231 -0
  366. package/src/index.ts +4 -0
  367. package/src/jsonForm/chooseControl.ts +88 -0
  368. package/src/jsonForm/evaluateWhen.ts +59 -0
  369. package/src/jsonForm/index.ts +22 -0
  370. package/src/jsonForm/inferSchema.ts +25 -0
  371. package/src/jsonForm/pointer.ts +109 -0
  372. package/src/jsonForm/types.ts +167 -0
  373. package/src/markdown/convert.ts +145 -5
  374. package/src/markdown/index.ts +3 -0
  375. package/src/markdown/types.ts +19 -2
  376. package/src/markdown/utils.ts +159 -0
  377. package/src/recommend/index.ts +16 -0
  378. package/src/recommend/templates.ts +273 -0
  379. package/src/schemas/BlockTemplates.ts +50 -7
  380. package/src/schemas/ImageEditDoc.ts +95 -0
  381. package/src/schemas/Theme.ts +98 -31
  382. package/src/schemas/colorUtils.ts +186 -0
  383. package/src/schemas/fontStacks.ts +257 -0
  384. package/src/schemas/index.ts +12 -0
  385. package/src/schemas/themeCompile.ts +203 -0
  386. package/src/schemas/themeLibrary.ts +18 -597
  387. package/src/schemas/themeValidator.ts +388 -0
  388. package/src/schemas/themes/bold.json +48 -0
  389. package/src/schemas/themes/cinematic.json +54 -0
  390. package/src/schemas/themes/documentary.json +49 -0
  391. package/src/schemas/themes/gezellig.json +44 -0
  392. package/src/schemas/themes/index.ts +53 -0
  393. package/src/schemas/themes/magazine.json +44 -0
  394. package/src/schemas/themes/minimalist.json +45 -0
  395. package/src/schemas/themes/morning-light.json +42 -0
  396. package/src/schemas/themes/standard-dark.json +50 -0
  397. package/src/schemas/themes/standard.json +42 -0
  398. package/src/schemas/themes/tech-dark.json +48 -0
  399. package/src/schemas/themes/warm-earth.json +50 -0
  400. package/src/storage/ScopedContentContainer.ts +113 -0
  401. package/src/storage/index.ts +1 -0
  402. package/src/versions/DocumentVersionManager.ts +70 -0
  403. package/src/versions/index.ts +54 -0
  404. package/src/versions/operations.ts +230 -0
  405. package/src/versions/paths.ts +66 -0
  406. package/src/versions/timestamp.ts +48 -0
  407. package/src/versions/types.ts +91 -0
  408. package/dist/chunk-6BAVXFYC.js.map +0 -1
  409. package/dist/chunk-7GF6RDED.js +0 -82
  410. package/dist/chunk-7GF6RDED.js.map +0 -1
  411. package/dist/chunk-CYQHG27J.js.map +0 -1
  412. package/dist/chunk-F22AE6BY.js +0 -121
  413. package/dist/chunk-F22AE6BY.js.map +0 -1
  414. package/dist/chunk-FIQR4AJG.js +0 -517
  415. package/dist/chunk-FIQR4AJG.js.map +0 -1
  416. package/dist/chunk-OASJKWO5.js.map +0 -1
  417. package/dist/chunk-QM5PKNPW.js.map +0 -1
  418. package/dist/chunk-TSG2OSE6.js.map +0 -1
  419. package/dist/themeLibrary-CEo2D4b6.d.ts +0 -44
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Template recommendations for the editor's block template picker.
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * import { parseMarkdown } from '@bendyline/squisq/markdown';
7
+ * import { profileBlockContents, recommendTemplatesForBlock } from '@bendyline/squisq/recommend';
8
+ *
9
+ * const doc = parseMarkdown(blockBodySource);
10
+ * const profile = profileBlockContents(doc.children);
11
+ * const { recommended, rest } = recommendTemplatesForBlock(profile, ALL_TEMPLATE_NAMES);
12
+ * ```
13
+ */
14
+
15
+ export type { BlockContentProfile, RecommendationResult } from './templates.js';
16
+ export { profileBlockContents, recommendTemplatesForBlock } from './templates.js';
@@ -0,0 +1,273 @@
1
+ /**
2
+ * Block template recommendations.
3
+ *
4
+ * Given a slice of markdown block nodes (the body underneath a heading),
5
+ * profile the content for image / video / quote / list / table / date /
6
+ * stat signals, then map that profile to the set of templates that make
7
+ * sense for the block. Used by the editor's template picker to surface a
8
+ * "Recommended for this block" section above the full template list.
9
+ */
10
+
11
+ import { extractPlainText, findNodesByType, walkMarkdownTree } from '../markdown/utils.js';
12
+ import type {
13
+ HtmlElement,
14
+ HtmlNode,
15
+ MarkdownBlockNode,
16
+ MarkdownHtmlBlock,
17
+ MarkdownNode,
18
+ } from '../markdown/types.js';
19
+
20
+ export interface BlockContentProfile {
21
+ hasImage: boolean;
22
+ imageCount: number;
23
+ hasVideo: boolean;
24
+ hasBlockquote: boolean;
25
+ hasList: boolean;
26
+ hasTable: boolean;
27
+ hasDate: boolean;
28
+ hasNumberHighlight: boolean;
29
+ wordCount: number;
30
+ }
31
+
32
+ export interface RecommendationResult {
33
+ recommended: string[];
34
+ rest: string[];
35
+ }
36
+
37
+ const EMPTY_PROFILE: BlockContentProfile = Object.freeze({
38
+ hasImage: false,
39
+ imageCount: 0,
40
+ hasVideo: false,
41
+ hasBlockquote: false,
42
+ hasList: false,
43
+ hasTable: false,
44
+ hasDate: false,
45
+ hasNumberHighlight: false,
46
+ wordCount: 0,
47
+ });
48
+
49
+ const DATE_PATTERNS: RegExp[] = [
50
+ /\b(January|February|March|April|May|June|July|August|September|October|November|December)\s+(\d{1,2},?\s+)?\d{4}\b/i,
51
+ /\b\d{1,2}\s+(January|February|March|April|May|June|July|August|September|October|November|December)\s+\d{4}\b/i,
52
+ /\b(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Sept|Oct|Nov|Dec)\.?\s+\d{1,2},?\s+\d{4}\b/i,
53
+ /\b\d{4}-\d{2}-\d{2}\b/,
54
+ /\b\d{1,2}\/\d{1,2}\/\d{2,4}\b/,
55
+ /\bQ[1-4]\s+\d{4}\b/,
56
+ /\b\d{4}s\b/,
57
+ /\b\d{1,2}(st|nd|rd|th)\s+century\b/i,
58
+ ];
59
+
60
+ /**
61
+ * Matches a "highlight number" — a prominent figure suitable for a Stat
62
+ * Highlight block. Qualifies on any of:
63
+ * - currency prefix: `$2.3M`, `€500`, `¥1,234`
64
+ * - unit suffix: `50%`, `100 years`, `5×`, `2.3M`
65
+ * - standalone large: `1,234`, `5000`, `12,345`
66
+ * Plain small numbers (`42`) intentionally don't qualify.
67
+ */
68
+ const NUMBER_HIGHLIGHT_RE =
69
+ /(?:[$€£¥]\s?\d+(?:[.,]\d+)*(?:\s?(?:[MBK]|million|billion|thousand))?|\d+(?:[.,]\d+)*\s?(?:%|‰|x|×|[MBK]|million|billion|thousand|percent|years?|days?|hours?)|\d{3,}(?:[.,]\d+)*)/i;
70
+
71
+ const VIDEO_HOST_RE = /(youtube\.com|youtu\.be|vimeo\.com|wistia\.|loom\.com)/i;
72
+
73
+ function htmlElementsByTag(root: MarkdownNode, tagNames: Set<string>): HtmlElement[] {
74
+ const blocks = findNodesByType<MarkdownHtmlBlock>(root, 'htmlBlock');
75
+ // Inline HTML (htmlInline) also carries htmlChildren; include both.
76
+ const inline = findNodesByType<MarkdownNode>(root, 'htmlInline') as Array<
77
+ MarkdownNode & { htmlChildren?: HtmlNode[] }
78
+ >;
79
+ const out: HtmlElement[] = [];
80
+ const visit = (n: HtmlNode): void => {
81
+ if (n.type === 'htmlElement') {
82
+ if (tagNames.has(n.tagName.toLowerCase())) out.push(n);
83
+ for (const c of n.children) visit(c);
84
+ }
85
+ };
86
+ for (const b of blocks) for (const c of b.htmlChildren) visit(c);
87
+ for (const i of inline) {
88
+ if (Array.isArray(i.htmlChildren)) for (const c of i.htmlChildren) visit(c);
89
+ }
90
+ return out;
91
+ }
92
+
93
+ /**
94
+ * Walk a slice of block nodes and summarize what kinds of content it
95
+ * contains. Cheap to run — no markdown parsing, just AST traversal.
96
+ */
97
+ export function profileBlockContents(nodes: MarkdownBlockNode[]): BlockContentProfile {
98
+ if (!nodes || nodes.length === 0) return { ...EMPTY_PROFILE };
99
+
100
+ let imageCount = 0;
101
+ let hasBlockquote = false;
102
+ let hasList = false;
103
+ let hasTable = false;
104
+
105
+ const plainParts: string[] = [];
106
+
107
+ for (const node of nodes) {
108
+ imageCount += findNodesByType(node, 'image').length;
109
+ imageCount += findNodesByType(node, 'imageReference').length;
110
+ if (findNodesByType(node, 'blockquote').length > 0) hasBlockquote = true;
111
+ if (findNodesByType(node, 'list').length > 0) hasList = true;
112
+ if (findNodesByType(node, 'table').length > 0) hasTable = true;
113
+ plainParts.push(extractPlainText(node));
114
+ }
115
+
116
+ // HTML embeds: <img>, <video>, <iframe src=…video host>
117
+ const root: MarkdownNode = { type: 'document', children: nodes };
118
+ const imgTags = htmlElementsByTag(root, new Set(['img']));
119
+ imageCount += imgTags.length;
120
+
121
+ const videoTags = htmlElementsByTag(root, new Set(['video', 'iframe', 'source']));
122
+ let hasVideo = false;
123
+ for (const el of videoTags) {
124
+ if (el.tagName.toLowerCase() === 'video') {
125
+ hasVideo = true;
126
+ break;
127
+ }
128
+ const src = el.attributes.src || el.attributes.href || '';
129
+ if (VIDEO_HOST_RE.test(src)) {
130
+ hasVideo = true;
131
+ break;
132
+ }
133
+ }
134
+
135
+ // Link-only video embeds (markdown link to a known video host).
136
+ if (!hasVideo) {
137
+ const links = findNodesByType<MarkdownNode & { url?: string }>(root, 'link');
138
+ for (const link of links) {
139
+ if (link.url && VIDEO_HOST_RE.test(link.url)) {
140
+ hasVideo = true;
141
+ break;
142
+ }
143
+ }
144
+ }
145
+
146
+ const plainText = plainParts.join(' ').trim();
147
+ const wordCount = plainText ? plainText.split(/\s+/).length : 0;
148
+
149
+ let hasDate = false;
150
+ for (const re of DATE_PATTERNS) {
151
+ if (re.test(plainText)) {
152
+ hasDate = true;
153
+ break;
154
+ }
155
+ }
156
+
157
+ // Number highlight: a paragraph that's mostly a single prominent figure.
158
+ let hasNumberHighlight = false;
159
+ walkMarkdownTree(root, (n) => {
160
+ if (hasNumberHighlight) return true;
161
+ if (n.type !== 'paragraph') return;
162
+ const text = extractPlainText(n).trim();
163
+ if (!text) return true;
164
+ const m = text.match(NUMBER_HIGHLIGHT_RE);
165
+ if (!m) return true;
166
+ // Paragraph qualifies when its word count is small AND a prominent
167
+ // number occupies a meaningful chunk of it. Keeps "the company grew
168
+ // 50% last year" from triggering, but accepts "$2.3M raised".
169
+ const words = text.split(/\s+/).length;
170
+ if (words <= 8) hasNumberHighlight = true;
171
+ return true;
172
+ });
173
+
174
+ return {
175
+ hasImage: imageCount > 0,
176
+ imageCount,
177
+ hasVideo,
178
+ hasBlockquote,
179
+ hasList,
180
+ hasTable,
181
+ hasDate,
182
+ hasNumberHighlight,
183
+ wordCount,
184
+ };
185
+ }
186
+
187
+ // ── Recommendation rules ───────────────────────────────────────────
188
+
189
+ const UNIVERSAL_DEFAULTS = ['title', 'sectionHeader', 'factCard', 'twoColumn'];
190
+
191
+ /**
192
+ * Given a content profile, return the canonical template-name list that
193
+ * should appear in the "Recommended" bucket. Caller is responsible for
194
+ * preserving deduplication / ordering when intersecting with the full
195
+ * template list (see {@link recommendTemplatesForBlock}).
196
+ */
197
+ function recommendedNamesForProfile(profile: BlockContentProfile): string[] {
198
+ const names = new Set<string>();
199
+ let anyContentSignal = false;
200
+
201
+ if (profile.hasImage) {
202
+ anyContentSignal = true;
203
+ names.add('imageWithCaption');
204
+ names.add('leftFeature');
205
+ names.add('rightFeature');
206
+ if (profile.imageCount >= 2) names.add('photoGrid');
207
+ }
208
+
209
+ if (profile.hasVideo) {
210
+ anyContentSignal = true;
211
+ names.add('videoWithCaption');
212
+ if (profile.hasBlockquote) names.add('videoPullQuote');
213
+ }
214
+
215
+ if (profile.hasBlockquote) {
216
+ anyContentSignal = true;
217
+ names.add('quote');
218
+ names.add('pullQuote');
219
+ names.add('fullBleedQuote');
220
+ }
221
+
222
+ if (profile.hasList) {
223
+ anyContentSignal = true;
224
+ names.add('list');
225
+ }
226
+
227
+ if (profile.hasTable) {
228
+ anyContentSignal = true;
229
+ names.add('dataTable');
230
+ names.add('comparisonBar');
231
+ }
232
+
233
+ if (profile.hasDate) {
234
+ anyContentSignal = true;
235
+ names.add('dateEvent');
236
+ }
237
+
238
+ if (profile.hasNumberHighlight) {
239
+ anyContentSignal = true;
240
+ names.add('statHighlight');
241
+ }
242
+
243
+ if (anyContentSignal) {
244
+ // Universal pair only — keep recommended focused.
245
+ names.add('title');
246
+ names.add('sectionHeader');
247
+ } else {
248
+ for (const n of UNIVERSAL_DEFAULTS) names.add(n);
249
+ }
250
+
251
+ return Array.from(names);
252
+ }
253
+
254
+ /**
255
+ * Split a flat list of template names into a "Recommended" bucket
256
+ * (matches the active block's content profile) and a "rest" bucket
257
+ * (everything else). Both buckets preserve the input ordering of
258
+ * `allNames`, so the visual layout stays predictable as templates are
259
+ * added.
260
+ */
261
+ export function recommendTemplatesForBlock(
262
+ profile: BlockContentProfile,
263
+ allNames: readonly string[],
264
+ ): RecommendationResult {
265
+ const desired = new Set(recommendedNamesForProfile(profile));
266
+ const recommended: string[] = [];
267
+ const rest: string[] = [];
268
+ for (const name of allNames) {
269
+ if (desired.has(name)) recommended.push(name);
270
+ else rest.push(name);
271
+ }
272
+ return { recommended, rest };
273
+ }
@@ -3,17 +3,17 @@
3
3
  *
4
4
  * Defines a template system for AI-generated doc blocks. Instead of
5
5
  * specifying low-level layers, positions, and animations, AI can use
6
- * high-level templates like "titleBlock" or "statHighlight" with simple
6
+ * high-level templates like "title" or "statHighlight" with simple
7
7
  * content parameters.
8
8
  *
9
9
  * Templates are expanded into full Block structures at render time,
10
10
  * ensuring consistent styling and reducing AI generation errors.
11
11
  *
12
12
  * Template Types:
13
- * - titleBlock: Doc intro with title + subtitle
13
+ * - title: Doc intro with title + subtitle
14
14
  * - sectionHeader: Colored section divider
15
15
  * - statHighlight: Big number/stat with description
16
- * - quoteBlock: Large centered quote
16
+ * - quote: Large centered quote
17
17
  * - factCard: Key fact with explanation
18
18
  * - twoColumn: Side-by-side comparison
19
19
  * - dateEvent: Timeline-style date + description
@@ -116,7 +116,7 @@ interface BaseTemplateBlock {
116
116
  * Title block - doc intro with large title and subtitle.
117
117
  */
118
118
  export interface TitleBlockInput extends BaseTemplateBlock {
119
- template: 'titleBlock';
119
+ template: 'title';
120
120
  /** Main title text */
121
121
  title: string;
122
122
  /** Subtitle or tagline (supports \n for line breaks) */
@@ -164,7 +164,7 @@ export interface StatHighlightInput extends BaseTemplateBlock {
164
164
  * Quote block - large centered quote text.
165
165
  */
166
166
  export interface QuoteBlockInput extends BaseTemplateBlock {
167
- template: 'quoteBlock';
167
+ template: 'quote';
168
168
  /** The quote text (supports \n for line breaks) */
169
169
  quote: string;
170
170
  /** Attribution (author, source) */
@@ -252,6 +252,47 @@ export interface ImageWithCaptionInput extends BaseTemplateBlock {
252
252
  imageLicense?: string;
253
253
  }
254
254
 
255
+ /**
256
+ * Shared fields for left/right feature blocks. A "feature" pairs an
257
+ * image on one side of the block with a title and body paragraph on
258
+ * the other — a common editorial layout for product highlights,
259
+ * profile callouts, or section intros.
260
+ */
261
+ interface FeatureInputBase extends BaseTemplateBlock {
262
+ /** Path to the feature image. */
263
+ imageSrc: string;
264
+ /** Alt text for accessibility. */
265
+ imageAlt?: string;
266
+ /**
267
+ * Explicit display width of the image, in pixels (typically pulled
268
+ * from a `<img width>` attribute when the WYSIWYG editor resized it).
269
+ * When set, the renderer treats the image as a sized asset and
270
+ * centers it inside its half with padding instead of stretching it
271
+ * to fill the cell.
272
+ */
273
+ imageWidth?: number;
274
+ /** Explicit display height of the image, in pixels. */
275
+ imageHeight?: number;
276
+ /** Heading / title text shown next to the image. */
277
+ title?: string;
278
+ /** Body text shown below the title. */
279
+ body?: string;
280
+ }
281
+
282
+ /**
283
+ * Left feature — image on the left, title + body stacked on the right.
284
+ */
285
+ export interface LeftFeatureInput extends FeatureInputBase {
286
+ template: 'leftFeature';
287
+ }
288
+
289
+ /**
290
+ * Right feature — image on the right, title + body stacked on the left.
291
+ */
292
+ export interface RightFeatureInput extends FeatureInputBase {
293
+ template: 'rightFeature';
294
+ }
295
+
255
296
  /**
256
297
  * Map block - geographic map showing article location.
257
298
  *
@@ -260,7 +301,7 @@ export interface ImageWithCaptionInput extends BaseTemplateBlock {
260
301
  * See docs/MAP_TILES.md for available tile styles and attribution.
261
302
  */
262
303
  export interface MapBlockInput extends BaseTemplateBlock {
263
- template: 'mapBlock';
304
+ template: 'map';
264
305
  /** Map center coordinates */
265
306
  center: {
266
307
  lat: number;
@@ -299,7 +340,7 @@ export interface FullBleedQuoteInput extends BaseTemplateBlock {
299
340
  * Good for enumerations like "things to see" or "key features".
300
341
  */
301
342
  export interface ListBlockInput extends BaseTemplateBlock {
302
- template: 'listBlock';
343
+ template: 'list';
303
344
  /** List items (3-5 recommended) */
304
345
  items: string[];
305
346
  /** Optional header above the list */
@@ -459,6 +500,8 @@ export type TemplateBlock =
459
500
  | TwoColumnInput
460
501
  | DateEventInput
461
502
  | ImageWithCaptionInput
503
+ | LeftFeatureInput
504
+ | RightFeatureInput
462
505
  | MapBlockInput
463
506
  | FullBleedQuoteInput
464
507
  | ListBlockInput
@@ -0,0 +1,95 @@
1
+ /**
2
+ * ImageEditDoc — JSON document describing a layered, editable image.
3
+ *
4
+ * This is the persistent state of the `<ImageEditor>` component. It lives
5
+ * inside a `<imagebasename>_files/` sidecar folder (exposed as a
6
+ * {@link ContentContainer}) at `state.json`, alongside referenced asset
7
+ * bytes in `assets/` and version snapshots in `.versions/`.
8
+ *
9
+ * Layers compose the existing core {@link Layer} types (image / text /
10
+ * shape) so renderers can share infrastructure with the doc system.
11
+ * Editor-specific metadata (name, visibility, lock, opacity, blendMode)
12
+ * lives in {@link EditorLayerMeta} and is merged onto each layer. The
13
+ * {@link Layer.animation} field is permitted but ignored by the image
14
+ * editor — animations are a slideshow concept.
15
+ *
16
+ * All asset paths in layers (e.g. `ImageLayer.content.src`) are
17
+ * relative to the sidecar root, keeping the document portable.
18
+ */
19
+
20
+ import type { ImageLayer, ShapeLayer, TextLayer } from './Doc.js';
21
+
22
+ // ============================================
23
+ // Layer type
24
+ // ============================================
25
+
26
+ /**
27
+ * Per-layer editor metadata. Merged into each layer so the persisted
28
+ * shape is a single object. All fields optional; sensible defaults
29
+ * apply when absent (visible: true, locked: false, opacity: 1).
30
+ */
31
+ export interface EditorLayerMeta {
32
+ /** Human-readable name shown in the layers panel. */
33
+ name?: string;
34
+ /** When false, the layer is hidden from rendering. Default true. */
35
+ visible?: boolean;
36
+ /** When true, the layer cannot be selected/edited. Default false. */
37
+ locked?: boolean;
38
+ /** 0..1 multiplier on the layer's alpha. Default 1. */
39
+ opacity?: number;
40
+ /**
41
+ * Canvas blend mode (matches the CSS / Canvas2D vocabulary).
42
+ * Default 'source-over' (normal compositing).
43
+ */
44
+ blendMode?: GlobalCompositeOperation;
45
+ }
46
+
47
+ /** A layer in an {@link ImageEditDoc}. */
48
+ export type ImageEditLayer = (ImageLayer | TextLayer | ShapeLayer) & EditorLayerMeta;
49
+
50
+ /** The layer kinds the image editor supports. */
51
+ export type ImageEditLayerKind = ImageEditLayer['type'];
52
+
53
+ // ============================================
54
+ // Document
55
+ // ============================================
56
+
57
+ /** Canvas dimensions and background. */
58
+ export interface ImageEditCanvas {
59
+ /** Canvas width in pixels. */
60
+ width: number;
61
+ /** Canvas height in pixels. */
62
+ height: number;
63
+ /**
64
+ * Background fill (CSS color, or `'transparent'` for an alpha canvas).
65
+ * Default: `'transparent'`.
66
+ */
67
+ background?: string;
68
+ }
69
+
70
+ /** Optional document metadata. */
71
+ export interface ImageEditMeta {
72
+ /** Path to the original source image (sidecar-relative). Set when the doc is seeded from an existing image. */
73
+ sourcePath?: string;
74
+ /** ISO timestamp set on first save. */
75
+ createdAt?: string;
76
+ /** ISO timestamp updated on every save. */
77
+ updatedAt?: string;
78
+ }
79
+
80
+ /**
81
+ * The persisted image-editor document.
82
+ *
83
+ * Layers are composited back-to-front: `layers[0]` is the bottom of the stack
84
+ * (typically the base raster), `layers[layers.length - 1]` is the top.
85
+ */
86
+ export interface ImageEditDoc {
87
+ /** Schema version. Bumped on breaking changes. */
88
+ version: 1;
89
+ /** Canvas configuration. */
90
+ canvas: ImageEditCanvas;
91
+ /** Layers, back-to-front. */
92
+ layers: ImageEditLayer[];
93
+ /** Optional metadata. */
94
+ meta?: ImageEditMeta;
95
+ }