@bendyline/squisq 1.3.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (533) 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/{chunk-CYQHG27J.js → chunk-2TMAWB4Y.js} +74 -1
  4. package/dist/chunk-2TMAWB4Y.js.map +1 -0
  5. package/dist/{chunk-OASJKWO5.js → chunk-3K5OG6KI.js} +92 -7
  6. package/dist/chunk-3K5OG6KI.js.map +1 -0
  7. package/dist/chunk-57CVQCFX.js +193 -0
  8. package/dist/chunk-57CVQCFX.js.map +1 -0
  9. package/dist/{chunk-QM5PKNPW.js → chunk-5WFRKURX.js} +1 -1
  10. package/dist/chunk-5WFRKURX.js.map +1 -0
  11. package/dist/chunk-B4EEON3N.js +1317 -0
  12. package/dist/chunk-B4EEON3N.js.map +1 -0
  13. package/dist/chunk-DBS6RIFL.js +81 -0
  14. package/dist/chunk-DBS6RIFL.js.map +1 -0
  15. package/dist/{chunk-MIBRIRGJ.js → chunk-FR2RBTKO.js} +3 -3
  16. package/dist/{chunk-MIBRIRGJ.js.map → chunk-FR2RBTKO.js.map} +1 -1
  17. package/dist/chunk-H3AXU4MJ.js +179 -0
  18. package/dist/chunk-H3AXU4MJ.js.map +1 -0
  19. package/dist/chunk-JELIRVDP.js +24 -0
  20. package/dist/chunk-JELIRVDP.js.map +1 -0
  21. package/dist/chunk-K32VJONL.js +193 -0
  22. package/dist/chunk-K32VJONL.js.map +1 -0
  23. package/dist/{chunk-6BAVXFYC.js → chunk-KSWJR66U.js} +218 -42
  24. package/dist/chunk-KSWJR66U.js.map +1 -0
  25. package/dist/{chunk-TSG2OSE6.js → chunk-MYIH7FWD.js} +3 -3
  26. package/dist/chunk-MYIH7FWD.js.map +1 -0
  27. package/dist/chunk-VLJJHDAC.js +218 -0
  28. package/dist/chunk-VLJJHDAC.js.map +1 -0
  29. package/dist/chunk-WMOI7FN3.js +182 -0
  30. package/dist/chunk-WMOI7FN3.js.map +1 -0
  31. package/dist/chunk-ZTX4PFFT.js +520 -0
  32. package/dist/chunk-ZTX4PFFT.js.map +1 -0
  33. package/dist/doc/index.d.ts +5 -10
  34. package/dist/doc/index.js +145 -7
  35. package/dist/doc/index.js.map +1 -1
  36. package/dist/generate/index.d.ts +99 -7
  37. package/dist/generate/index.js +16 -3
  38. package/dist/generate/index.js.map +1 -1
  39. package/dist/icons/index.d.ts +87 -0
  40. package/dist/icons/index.js +17 -0
  41. package/dist/icons/index.js.map +1 -0
  42. package/dist/imageEdit/index.d.ts +216 -0
  43. package/dist/imageEdit/index.js +54 -0
  44. package/dist/imageEdit/index.js.map +1 -0
  45. package/dist/index.d.ts +21 -9
  46. package/dist/index.js +461 -8
  47. package/dist/index.js.map +1 -1
  48. package/dist/jsonForm/index.d.ts +191 -0
  49. package/dist/jsonForm/index.js +27 -0
  50. package/dist/jsonForm/index.js.map +1 -0
  51. package/dist/markdown/index.d.ts +265 -19
  52. package/dist/markdown/index.js +39 -33
  53. package/dist/markdown/index.js.map +1 -1
  54. package/dist/random/index.d.ts +51 -2
  55. package/dist/random/index.js +9 -1
  56. package/dist/random/index.js.map +1 -1
  57. package/dist/recommend/index.d.ts +42 -0
  58. package/dist/recommend/index.js +10 -0
  59. package/dist/recommend/index.js.map +1 -0
  60. package/dist/schemas/index.d.ts +188 -10
  61. package/dist/schemas/index.js +120 -7
  62. package/dist/schemas/index.js.map +1 -1
  63. package/dist/spatial/index.d.ts +111 -3
  64. package/dist/spatial/index.js +24 -2
  65. package/dist/spatial/index.js.map +1 -1
  66. package/dist/storage/index.d.ts +159 -9
  67. package/dist/storage/index.js +20 -5
  68. package/dist/storage/index.js.map +1 -1
  69. package/dist/story/index.d.ts +53 -13
  70. package/dist/story/index.js +12 -4
  71. package/dist/themeLibrary-BHjJ0Qx6.d.ts +40 -0
  72. package/dist/timing/index.d.ts +109 -4
  73. package/dist/timing/index.js +23 -2
  74. package/dist/timing/index.js.map +1 -1
  75. package/dist/transform/index.d.ts +175 -6
  76. package/dist/transform/index.js +490 -3
  77. package/dist/transform/index.js.map +1 -1
  78. package/dist/{types-CkNttVSF.d.ts → types-BdZkdJ3z.d.ts} +17 -2
  79. package/dist/types-D98li1gV.d.ts +93 -0
  80. package/dist/versions/index.d.ts +128 -0
  81. package/dist/versions/index.js +35 -0
  82. package/dist/versions/index.js.map +1 -0
  83. package/package.json +28 -1
  84. package/src/__tests__/colorUtils.test.ts +112 -0
  85. package/src/__tests__/getLayers.test.ts +32 -7
  86. package/src/__tests__/iconResolve.test.ts +122 -0
  87. package/src/__tests__/imageEditState.test.ts +74 -0
  88. package/src/__tests__/imageEditVersions.test.ts +169 -0
  89. package/src/__tests__/inferDocumentTitle.test.ts +50 -0
  90. package/src/__tests__/jsonForm.chooseControl.test.ts +86 -0
  91. package/src/__tests__/jsonForm.evaluateWhen.test.ts +59 -0
  92. package/src/__tests__/jsonForm.inferSchema.test.ts +25 -0
  93. package/src/__tests__/jsonForm.pointer.test.ts +103 -0
  94. package/src/__tests__/markdownIcons.test.ts +104 -0
  95. package/src/__tests__/markdownToDoc.test.ts +19 -4
  96. package/src/__tests__/recommendTemplates.test.ts +183 -0
  97. package/src/__tests__/scopedContentContainer.test.ts +89 -0
  98. package/src/__tests__/slideshowGenerator.test.ts +1 -1
  99. package/src/__tests__/templateAnnotationParse.test.ts +42 -0
  100. package/src/__tests__/templates.test.ts +93 -9
  101. package/src/__tests__/themeCompile.test.ts +156 -0
  102. package/src/__tests__/themeValidator.test.ts +125 -0
  103. package/src/__tests__/versions.test.ts +415 -0
  104. package/src/doc/audioMapping.ts +55 -11
  105. package/src/doc/getLayers.ts +32 -21
  106. package/src/doc/markdownToDoc.ts +45 -7
  107. package/src/doc/templates/featureBlock.ts +202 -0
  108. package/src/doc/templates/fullBleedQuote.ts +13 -0
  109. package/src/doc/templates/index.ts +50 -16
  110. package/src/doc/templates/listBlock.ts +24 -5
  111. package/src/doc/templates/statHighlight.ts +13 -0
  112. package/src/doc/templates/titleBlock.ts +9 -0
  113. package/src/doc/utils/themeUtils.ts +8 -7
  114. package/src/generate/slideshowGenerator.ts +1 -1
  115. package/src/generate/templateMapper.ts +2 -2
  116. package/src/icons/iconData.ts +31 -0
  117. package/src/icons/index.ts +18 -0
  118. package/src/icons/resolve.ts +139 -0
  119. package/src/imageEdit/ImageEditVersionManager.ts +73 -0
  120. package/src/imageEdit/export.ts +326 -0
  121. package/src/imageEdit/index.ts +71 -0
  122. package/src/imageEdit/persistence.ts +62 -0
  123. package/src/imageEdit/state.ts +112 -0
  124. package/src/imageEdit/versionPaths.ts +57 -0
  125. package/src/imageEdit/versions.ts +231 -0
  126. package/src/index.ts +4 -0
  127. package/src/jsonForm/chooseControl.ts +88 -0
  128. package/src/jsonForm/evaluateWhen.ts +59 -0
  129. package/src/jsonForm/index.ts +22 -0
  130. package/src/jsonForm/inferSchema.ts +25 -0
  131. package/src/jsonForm/pointer.ts +109 -0
  132. package/src/jsonForm/types.ts +167 -0
  133. package/src/markdown/convert.ts +145 -5
  134. package/src/markdown/index.ts +3 -0
  135. package/src/markdown/types.ts +19 -2
  136. package/src/markdown/utils.ts +159 -0
  137. package/src/recommend/index.ts +16 -0
  138. package/src/recommend/templates.ts +273 -0
  139. package/src/schemas/BlockTemplates.ts +50 -7
  140. package/src/schemas/ImageEditDoc.ts +95 -0
  141. package/src/schemas/Theme.ts +98 -31
  142. package/src/schemas/colorUtils.ts +186 -0
  143. package/src/schemas/fontStacks.ts +257 -0
  144. package/src/schemas/index.ts +12 -0
  145. package/src/schemas/themeCompile.ts +203 -0
  146. package/src/schemas/themeLibrary.ts +18 -597
  147. package/src/schemas/themeValidator.ts +388 -0
  148. package/src/schemas/themes/bold.json +48 -0
  149. package/src/schemas/themes/cinematic.json +54 -0
  150. package/src/schemas/themes/documentary.json +49 -0
  151. package/src/schemas/themes/gezellig.json +44 -0
  152. package/src/schemas/themes/index.ts +53 -0
  153. package/src/schemas/themes/magazine.json +44 -0
  154. package/src/schemas/themes/minimalist.json +45 -0
  155. package/src/schemas/themes/morning-light.json +42 -0
  156. package/src/schemas/themes/standard-dark.json +50 -0
  157. package/src/schemas/themes/standard.json +42 -0
  158. package/src/schemas/themes/tech-dark.json +48 -0
  159. package/src/schemas/themes/warm-earth.json +50 -0
  160. package/src/storage/ScopedContentContainer.ts +113 -0
  161. package/src/storage/index.ts +1 -0
  162. package/src/versions/DocumentVersionManager.ts +70 -0
  163. package/src/versions/index.ts +54 -0
  164. package/src/versions/operations.ts +230 -0
  165. package/src/versions/paths.ts +66 -0
  166. package/src/versions/timestamp.ts +48 -0
  167. package/src/versions/types.ts +91 -0
  168. package/dist/__tests__/animationUtils.test.d.ts +0 -2
  169. package/dist/__tests__/animationUtils.test.d.ts.map +0 -1
  170. package/dist/__tests__/animationUtils.test.js +0 -60
  171. package/dist/__tests__/animationUtils.test.js.map +0 -1
  172. package/dist/__tests__/contentContainer.test.d.ts +0 -2
  173. package/dist/__tests__/contentContainer.test.d.ts.map +0 -1
  174. package/dist/__tests__/contentContainer.test.js +0 -234
  175. package/dist/__tests__/contentContainer.test.js.map +0 -1
  176. package/dist/__tests__/contentExtractor.test.d.ts +0 -2
  177. package/dist/__tests__/contentExtractor.test.d.ts.map +0 -1
  178. package/dist/__tests__/contentExtractor.test.js +0 -151
  179. package/dist/__tests__/contentExtractor.test.js.map +0 -1
  180. package/dist/__tests__/coverBlock.test.d.ts +0 -2
  181. package/dist/__tests__/coverBlock.test.d.ts.map +0 -1
  182. package/dist/__tests__/coverBlock.test.js +0 -197
  183. package/dist/__tests__/coverBlock.test.js.map +0 -1
  184. package/dist/__tests__/dataTable.test.d.ts +0 -2
  185. package/dist/__tests__/dataTable.test.d.ts.map +0 -1
  186. package/dist/__tests__/dataTable.test.js +0 -110
  187. package/dist/__tests__/dataTable.test.js.map +0 -1
  188. package/dist/__tests__/geohash.test.d.ts +0 -2
  189. package/dist/__tests__/geohash.test.d.ts.map +0 -1
  190. package/dist/__tests__/geohash.test.js +0 -87
  191. package/dist/__tests__/geohash.test.js.map +0 -1
  192. package/dist/__tests__/getLayers.test.d.ts +0 -2
  193. package/dist/__tests__/getLayers.test.d.ts.map +0 -1
  194. package/dist/__tests__/getLayers.test.js +0 -167
  195. package/dist/__tests__/getLayers.test.js.map +0 -1
  196. package/dist/__tests__/haversine.test.d.ts +0 -2
  197. package/dist/__tests__/haversine.test.d.ts.map +0 -1
  198. package/dist/__tests__/haversine.test.js +0 -56
  199. package/dist/__tests__/haversine.test.js.map +0 -1
  200. package/dist/__tests__/localForageAdapter.test.d.ts +0 -8
  201. package/dist/__tests__/localForageAdapter.test.d.ts.map +0 -1
  202. package/dist/__tests__/localForageAdapter.test.js +0 -130
  203. package/dist/__tests__/localForageAdapter.test.js.map +0 -1
  204. package/dist/__tests__/markdown.test.d.ts +0 -2
  205. package/dist/__tests__/markdown.test.d.ts.map +0 -1
  206. package/dist/__tests__/markdown.test.js +0 -715
  207. package/dist/__tests__/markdown.test.js.map +0 -1
  208. package/dist/__tests__/markdownToDoc.test.d.ts +0 -2
  209. package/dist/__tests__/markdownToDoc.test.d.ts.map +0 -1
  210. package/dist/__tests__/markdownToDoc.test.js +0 -447
  211. package/dist/__tests__/markdownToDoc.test.js.map +0 -1
  212. package/dist/__tests__/seededRandom.test.d.ts +0 -2
  213. package/dist/__tests__/seededRandom.test.d.ts.map +0 -1
  214. package/dist/__tests__/seededRandom.test.js +0 -125
  215. package/dist/__tests__/seededRandom.test.js.map +0 -1
  216. package/dist/__tests__/slideshowGenerator.test.d.ts +0 -2
  217. package/dist/__tests__/slideshowGenerator.test.d.ts.map +0 -1
  218. package/dist/__tests__/slideshowGenerator.test.js +0 -114
  219. package/dist/__tests__/slideshowGenerator.test.js.map +0 -1
  220. package/dist/__tests__/storage.test.d.ts +0 -2
  221. package/dist/__tests__/storage.test.d.ts.map +0 -1
  222. package/dist/__tests__/storage.test.js +0 -51
  223. package/dist/__tests__/storage.test.js.map +0 -1
  224. package/dist/__tests__/surface.test.d.ts +0 -2
  225. package/dist/__tests__/surface.test.d.ts.map +0 -1
  226. package/dist/__tests__/surface.test.js +0 -57
  227. package/dist/__tests__/surface.test.js.map +0 -1
  228. package/dist/__tests__/templates.test.d.ts +0 -2
  229. package/dist/__tests__/templates.test.d.ts.map +0 -1
  230. package/dist/__tests__/templates.test.js +0 -217
  231. package/dist/__tests__/templates.test.js.map +0 -1
  232. package/dist/__tests__/timing.test.d.ts +0 -2
  233. package/dist/__tests__/timing.test.d.ts.map +0 -1
  234. package/dist/__tests__/timing.test.js +0 -131
  235. package/dist/__tests__/timing.test.js.map +0 -1
  236. package/dist/chunk-6BAVXFYC.js.map +0 -1
  237. package/dist/chunk-7GF6RDED.js +0 -82
  238. package/dist/chunk-7GF6RDED.js.map +0 -1
  239. package/dist/chunk-CYQHG27J.js.map +0 -1
  240. package/dist/chunk-F22AE6BY.js +0 -121
  241. package/dist/chunk-F22AE6BY.js.map +0 -1
  242. package/dist/chunk-FIQR4AJG.js +0 -517
  243. package/dist/chunk-FIQR4AJG.js.map +0 -1
  244. package/dist/chunk-OASJKWO5.js.map +0 -1
  245. package/dist/chunk-QM5PKNPW.js.map +0 -1
  246. package/dist/chunk-TSG2OSE6.js.map +0 -1
  247. package/dist/doc/audioMapping.d.ts +0 -36
  248. package/dist/doc/audioMapping.d.ts.map +0 -1
  249. package/dist/doc/audioMapping.js +0 -315
  250. package/dist/doc/audioMapping.js.map +0 -1
  251. package/dist/doc/docToMarkdown.d.ts +0 -41
  252. package/dist/doc/docToMarkdown.d.ts.map +0 -1
  253. package/dist/doc/docToMarkdown.js +0 -88
  254. package/dist/doc/docToMarkdown.js.map +0 -1
  255. package/dist/doc/getLayers.d.ts +0 -65
  256. package/dist/doc/getLayers.d.ts.map +0 -1
  257. package/dist/doc/getLayers.js +0 -103
  258. package/dist/doc/getLayers.js.map +0 -1
  259. package/dist/doc/index.d.ts.map +0 -1
  260. package/dist/doc/markdownToDoc.d.ts +0 -75
  261. package/dist/doc/markdownToDoc.d.ts.map +0 -1
  262. package/dist/doc/markdownToDoc.js +0 -398
  263. package/dist/doc/markdownToDoc.js.map +0 -1
  264. package/dist/doc/templates/accentImage.d.ts +0 -59
  265. package/dist/doc/templates/accentImage.d.ts.map +0 -1
  266. package/dist/doc/templates/accentImage.js +0 -275
  267. package/dist/doc/templates/accentImage.js.map +0 -1
  268. package/dist/doc/templates/captionUtils.d.ts +0 -20
  269. package/dist/doc/templates/captionUtils.d.ts.map +0 -1
  270. package/dist/doc/templates/captionUtils.js +0 -29
  271. package/dist/doc/templates/captionUtils.js.map +0 -1
  272. package/dist/doc/templates/comparisonBar.d.ts +0 -13
  273. package/dist/doc/templates/comparisonBar.d.ts.map +0 -1
  274. package/dist/doc/templates/comparisonBar.js +0 -145
  275. package/dist/doc/templates/comparisonBar.js.map +0 -1
  276. package/dist/doc/templates/coverBlock.d.ts +0 -51
  277. package/dist/doc/templates/coverBlock.d.ts.map +0 -1
  278. package/dist/doc/templates/coverBlock.js +0 -153
  279. package/dist/doc/templates/coverBlock.js.map +0 -1
  280. package/dist/doc/templates/dataTable.d.ts +0 -14
  281. package/dist/doc/templates/dataTable.d.ts.map +0 -1
  282. package/dist/doc/templates/dataTable.js +0 -73
  283. package/dist/doc/templates/dataTable.js.map +0 -1
  284. package/dist/doc/templates/dateEvent.d.ts +0 -15
  285. package/dist/doc/templates/dateEvent.d.ts.map +0 -1
  286. package/dist/doc/templates/dateEvent.js +0 -114
  287. package/dist/doc/templates/dateEvent.js.map +0 -1
  288. package/dist/doc/templates/definitionCard.d.ts +0 -13
  289. package/dist/doc/templates/definitionCard.d.ts.map +0 -1
  290. package/dist/doc/templates/definitionCard.js +0 -117
  291. package/dist/doc/templates/definitionCard.js.map +0 -1
  292. package/dist/doc/templates/factCard.d.ts +0 -15
  293. package/dist/doc/templates/factCard.d.ts.map +0 -1
  294. package/dist/doc/templates/factCard.js +0 -104
  295. package/dist/doc/templates/factCard.js.map +0 -1
  296. package/dist/doc/templates/fullBleedQuote.d.ts +0 -13
  297. package/dist/doc/templates/fullBleedQuote.d.ts.map +0 -1
  298. package/dist/doc/templates/fullBleedQuote.js +0 -55
  299. package/dist/doc/templates/fullBleedQuote.js.map +0 -1
  300. package/dist/doc/templates/imageWithCaption.d.ts +0 -13
  301. package/dist/doc/templates/imageWithCaption.d.ts.map +0 -1
  302. package/dist/doc/templates/imageWithCaption.js +0 -146
  303. package/dist/doc/templates/imageWithCaption.js.map +0 -1
  304. package/dist/doc/templates/index.d.ts +0 -105
  305. package/dist/doc/templates/index.d.ts.map +0 -1
  306. package/dist/doc/templates/index.js +0 -445
  307. package/dist/doc/templates/index.js.map +0 -1
  308. package/dist/doc/templates/listBlock.d.ts +0 -13
  309. package/dist/doc/templates/listBlock.d.ts.map +0 -1
  310. package/dist/doc/templates/listBlock.js +0 -92
  311. package/dist/doc/templates/listBlock.js.map +0 -1
  312. package/dist/doc/templates/mapBlock.d.ts +0 -17
  313. package/dist/doc/templates/mapBlock.d.ts.map +0 -1
  314. package/dist/doc/templates/mapBlock.js +0 -115
  315. package/dist/doc/templates/mapBlock.js.map +0 -1
  316. package/dist/doc/templates/persistentLayers.d.ts +0 -39
  317. package/dist/doc/templates/persistentLayers.d.ts.map +0 -1
  318. package/dist/doc/templates/persistentLayers.js +0 -447
  319. package/dist/doc/templates/persistentLayers.js.map +0 -1
  320. package/dist/doc/templates/photoGrid.d.ts +0 -20
  321. package/dist/doc/templates/photoGrid.d.ts.map +0 -1
  322. package/dist/doc/templates/photoGrid.js +0 -175
  323. package/dist/doc/templates/photoGrid.js.map +0 -1
  324. package/dist/doc/templates/pullQuote.d.ts +0 -13
  325. package/dist/doc/templates/pullQuote.d.ts.map +0 -1
  326. package/dist/doc/templates/pullQuote.js +0 -113
  327. package/dist/doc/templates/pullQuote.js.map +0 -1
  328. package/dist/doc/templates/quoteBlock.d.ts +0 -15
  329. package/dist/doc/templates/quoteBlock.d.ts.map +0 -1
  330. package/dist/doc/templates/quoteBlock.js +0 -101
  331. package/dist/doc/templates/quoteBlock.js.map +0 -1
  332. package/dist/doc/templates/sectionHeader.d.ts +0 -14
  333. package/dist/doc/templates/sectionHeader.d.ts.map +0 -1
  334. package/dist/doc/templates/sectionHeader.js +0 -97
  335. package/dist/doc/templates/sectionHeader.js.map +0 -1
  336. package/dist/doc/templates/statHighlight.d.ts +0 -15
  337. package/dist/doc/templates/statHighlight.d.ts.map +0 -1
  338. package/dist/doc/templates/statHighlight.js +0 -102
  339. package/dist/doc/templates/statHighlight.js.map +0 -1
  340. package/dist/doc/templates/titleBlock.d.ts +0 -13
  341. package/dist/doc/templates/titleBlock.d.ts.map +0 -1
  342. package/dist/doc/templates/titleBlock.js +0 -95
  343. package/dist/doc/templates/titleBlock.js.map +0 -1
  344. package/dist/doc/templates/twoColumn.d.ts +0 -15
  345. package/dist/doc/templates/twoColumn.d.ts.map +0 -1
  346. package/dist/doc/templates/twoColumn.js +0 -225
  347. package/dist/doc/templates/twoColumn.js.map +0 -1
  348. package/dist/doc/templates/videoPullQuote.d.ts +0 -20
  349. package/dist/doc/templates/videoPullQuote.d.ts.map +0 -1
  350. package/dist/doc/templates/videoPullQuote.js +0 -122
  351. package/dist/doc/templates/videoPullQuote.js.map +0 -1
  352. package/dist/doc/templates/videoWithCaption.d.ts +0 -20
  353. package/dist/doc/templates/videoWithCaption.d.ts.map +0 -1
  354. package/dist/doc/templates/videoWithCaption.js +0 -107
  355. package/dist/doc/templates/videoWithCaption.js.map +0 -1
  356. package/dist/doc/utils/animationUtils.d.ts +0 -34
  357. package/dist/doc/utils/animationUtils.d.ts.map +0 -1
  358. package/dist/doc/utils/animationUtils.js +0 -110
  359. package/dist/doc/utils/animationUtils.js.map +0 -1
  360. package/dist/doc/utils/themeUtils.d.ts +0 -64
  361. package/dist/doc/utils/themeUtils.d.ts.map +0 -1
  362. package/dist/doc/utils/themeUtils.js +0 -135
  363. package/dist/doc/utils/themeUtils.js.map +0 -1
  364. package/dist/generate/contentExtractor.d.ts +0 -112
  365. package/dist/generate/contentExtractor.d.ts.map +0 -1
  366. package/dist/generate/contentExtractor.js +0 -638
  367. package/dist/generate/contentExtractor.js.map +0 -1
  368. package/dist/generate/index.d.ts.map +0 -1
  369. package/dist/generate/slideshowGenerator.d.ts +0 -72
  370. package/dist/generate/slideshowGenerator.d.ts.map +0 -1
  371. package/dist/generate/slideshowGenerator.js +0 -159
  372. package/dist/generate/slideshowGenerator.js.map +0 -1
  373. package/dist/generate/templateMapper.d.ts +0 -23
  374. package/dist/generate/templateMapper.d.ts.map +0 -1
  375. package/dist/generate/templateMapper.js +0 -114
  376. package/dist/generate/templateMapper.js.map +0 -1
  377. package/dist/index.d.ts.map +0 -1
  378. package/dist/markdown/convert.d.ts +0 -71
  379. package/dist/markdown/convert.d.ts.map +0 -1
  380. package/dist/markdown/convert.js +0 -845
  381. package/dist/markdown/convert.js.map +0 -1
  382. package/dist/markdown/htmlParse.d.ts +0 -26
  383. package/dist/markdown/htmlParse.d.ts.map +0 -1
  384. package/dist/markdown/htmlParse.js +0 -195
  385. package/dist/markdown/htmlParse.js.map +0 -1
  386. package/dist/markdown/index.d.ts.map +0 -1
  387. package/dist/markdown/parse.d.ts +0 -27
  388. package/dist/markdown/parse.d.ts.map +0 -1
  389. package/dist/markdown/parse.js +0 -90
  390. package/dist/markdown/parse.js.map +0 -1
  391. package/dist/markdown/stringify.d.ts +0 -32
  392. package/dist/markdown/stringify.d.ts.map +0 -1
  393. package/dist/markdown/stringify.js +0 -108
  394. package/dist/markdown/stringify.js.map +0 -1
  395. package/dist/markdown/types.d.ts +0 -516
  396. package/dist/markdown/types.d.ts.map +0 -1
  397. package/dist/markdown/types.js +0 -17
  398. package/dist/markdown/types.js.map +0 -1
  399. package/dist/markdown/utils.d.ts +0 -78
  400. package/dist/markdown/utils.d.ts.map +0 -1
  401. package/dist/markdown/utils.js +0 -153
  402. package/dist/markdown/utils.js.map +0 -1
  403. package/dist/random/SeededRandom.d.ts +0 -50
  404. package/dist/random/SeededRandom.d.ts.map +0 -1
  405. package/dist/random/SeededRandom.js +0 -115
  406. package/dist/random/SeededRandom.js.map +0 -1
  407. package/dist/random/index.d.ts.map +0 -1
  408. package/dist/schemas/BlockTemplates.d.ts +0 -600
  409. package/dist/schemas/BlockTemplates.d.ts.map +0 -1
  410. package/dist/schemas/BlockTemplates.js +0 -72
  411. package/dist/schemas/BlockTemplates.js.map +0 -1
  412. package/dist/schemas/Doc.d.ts +0 -503
  413. package/dist/schemas/Doc.d.ts.map +0 -1
  414. package/dist/schemas/Doc.js +0 -90
  415. package/dist/schemas/Doc.js.map +0 -1
  416. package/dist/schemas/LayoutStrategy.d.ts +0 -84
  417. package/dist/schemas/LayoutStrategy.d.ts.map +0 -1
  418. package/dist/schemas/LayoutStrategy.js +0 -123
  419. package/dist/schemas/LayoutStrategy.js.map +0 -1
  420. package/dist/schemas/MediaProvider.d.ts +0 -65
  421. package/dist/schemas/MediaProvider.d.ts.map +0 -1
  422. package/dist/schemas/MediaProvider.js +0 -13
  423. package/dist/schemas/MediaProvider.js.map +0 -1
  424. package/dist/schemas/Theme.d.ts +0 -194
  425. package/dist/schemas/Theme.d.ts.map +0 -1
  426. package/dist/schemas/Theme.js +0 -97
  427. package/dist/schemas/Theme.js.map +0 -1
  428. package/dist/schemas/Types.d.ts +0 -14
  429. package/dist/schemas/Types.d.ts.map +0 -1
  430. package/dist/schemas/Types.js +0 -5
  431. package/dist/schemas/Types.js.map +0 -1
  432. package/dist/schemas/Viewport.d.ts +0 -74
  433. package/dist/schemas/Viewport.d.ts.map +0 -1
  434. package/dist/schemas/Viewport.js +0 -63
  435. package/dist/schemas/Viewport.js.map +0 -1
  436. package/dist/schemas/index.d.ts.map +0 -1
  437. package/dist/schemas/themeLibrary.d.ts +0 -41
  438. package/dist/schemas/themeLibrary.d.ts.map +0 -1
  439. package/dist/schemas/themeLibrary.js +0 -597
  440. package/dist/schemas/themeLibrary.js.map +0 -1
  441. package/dist/spatial/Geohash.d.ts +0 -85
  442. package/dist/spatial/Geohash.d.ts.map +0 -1
  443. package/dist/spatial/Geohash.js +0 -142
  444. package/dist/spatial/Geohash.js.map +0 -1
  445. package/dist/spatial/Haversine.d.ts +0 -24
  446. package/dist/spatial/Haversine.d.ts.map +0 -1
  447. package/dist/spatial/Haversine.js +0 -48
  448. package/dist/spatial/Haversine.js.map +0 -1
  449. package/dist/spatial/index.d.ts.map +0 -1
  450. package/dist/storage/ContentContainer.d.ts +0 -87
  451. package/dist/storage/ContentContainer.d.ts.map +0 -1
  452. package/dist/storage/ContentContainer.js +0 -131
  453. package/dist/storage/ContentContainer.js.map +0 -1
  454. package/dist/storage/LocalForageAdapter.d.ts +0 -36
  455. package/dist/storage/LocalForageAdapter.d.ts.map +0 -1
  456. package/dist/storage/LocalForageAdapter.js +0 -82
  457. package/dist/storage/LocalForageAdapter.js.map +0 -1
  458. package/dist/storage/LocalStorageAdapter.d.ts +0 -16
  459. package/dist/storage/LocalStorageAdapter.d.ts.map +0 -1
  460. package/dist/storage/LocalStorageAdapter.js +0 -50
  461. package/dist/storage/LocalStorageAdapter.js.map +0 -1
  462. package/dist/storage/MediaProviderFromContainer.d.ts +0 -21
  463. package/dist/storage/MediaProviderFromContainer.d.ts.map +0 -1
  464. package/dist/storage/MediaProviderFromContainer.js +0 -79
  465. package/dist/storage/MediaProviderFromContainer.js.map +0 -1
  466. package/dist/storage/MemoryStorageAdapter.d.ts +0 -15
  467. package/dist/storage/MemoryStorageAdapter.d.ts.map +0 -1
  468. package/dist/storage/MemoryStorageAdapter.js +0 -34
  469. package/dist/storage/MemoryStorageAdapter.js.map +0 -1
  470. package/dist/storage/Storage.d.ts +0 -23
  471. package/dist/storage/Storage.d.ts.map +0 -1
  472. package/dist/storage/Storage.js +0 -9
  473. package/dist/storage/Storage.js.map +0 -1
  474. package/dist/storage/index.d.ts.map +0 -1
  475. package/dist/themeLibrary-CEo2D4b6.d.ts +0 -44
  476. package/dist/timing/index.d.ts.map +0 -1
  477. package/dist/timing/narrationTiming.d.ts +0 -54
  478. package/dist/timing/narrationTiming.d.ts.map +0 -1
  479. package/dist/timing/narrationTiming.js +0 -190
  480. package/dist/timing/narrationTiming.js.map +0 -1
  481. package/dist/timing/readingTime.d.ts +0 -54
  482. package/dist/timing/readingTime.d.ts.map +0 -1
  483. package/dist/timing/readingTime.js +0 -49
  484. package/dist/timing/readingTime.js.map +0 -1
  485. package/dist/transform/applyTransform.d.ts +0 -22
  486. package/dist/transform/applyTransform.d.ts.map +0 -1
  487. package/dist/transform/applyTransform.js +0 -68
  488. package/dist/transform/applyTransform.js.map +0 -1
  489. package/dist/transform/blockAnalyzer.d.ts +0 -48
  490. package/dist/transform/blockAnalyzer.d.ts.map +0 -1
  491. package/dist/transform/blockAnalyzer.js +0 -135
  492. package/dist/transform/blockAnalyzer.js.map +0 -1
  493. package/dist/transform/index.d.ts.map +0 -1
  494. package/dist/transform/registry.d.ts +0 -19
  495. package/dist/transform/registry.d.ts.map +0 -1
  496. package/dist/transform/registry.js +0 -41
  497. package/dist/transform/registry.js.map +0 -1
  498. package/dist/transform/styles/dataDriven.d.ts +0 -4
  499. package/dist/transform/styles/dataDriven.d.ts.map +0 -1
  500. package/dist/transform/styles/dataDriven.js +0 -15
  501. package/dist/transform/styles/dataDriven.js.map +0 -1
  502. package/dist/transform/styles/documentary.d.ts +0 -4
  503. package/dist/transform/styles/documentary.d.ts.map +0 -1
  504. package/dist/transform/styles/documentary.js +0 -15
  505. package/dist/transform/styles/documentary.js.map +0 -1
  506. package/dist/transform/styles/index.d.ts +0 -6
  507. package/dist/transform/styles/index.d.ts.map +0 -1
  508. package/dist/transform/styles/index.js +0 -6
  509. package/dist/transform/styles/index.js.map +0 -1
  510. package/dist/transform/styles/magazine.d.ts +0 -4
  511. package/dist/transform/styles/magazine.d.ts.map +0 -1
  512. package/dist/transform/styles/magazine.js +0 -15
  513. package/dist/transform/styles/magazine.js.map +0 -1
  514. package/dist/transform/styles/minimal.d.ts +0 -4
  515. package/dist/transform/styles/minimal.d.ts.map +0 -1
  516. package/dist/transform/styles/minimal.js +0 -15
  517. package/dist/transform/styles/minimal.js.map +0 -1
  518. package/dist/transform/styles/narrative.d.ts +0 -4
  519. package/dist/transform/styles/narrative.d.ts.map +0 -1
  520. package/dist/transform/styles/narrative.js +0 -15
  521. package/dist/transform/styles/narrative.js.map +0 -1
  522. package/dist/transform/templateSelector.d.ts +0 -30
  523. package/dist/transform/templateSelector.d.ts.map +0 -1
  524. package/dist/transform/templateSelector.js +0 -218
  525. package/dist/transform/templateSelector.js.map +0 -1
  526. package/dist/transform/timingAllocator.d.ts +0 -21
  527. package/dist/transform/timingAllocator.d.ts.map +0 -1
  528. package/dist/transform/timingAllocator.js +0 -111
  529. package/dist/transform/timingAllocator.js.map +0 -1
  530. package/dist/transform/types.d.ts +0 -86
  531. package/dist/transform/types.d.ts.map +0 -1
  532. package/dist/transform/types.js +0 -9
  533. package/dist/transform/types.js.map +0 -1
@@ -0,0 +1,42 @@
1
+ import { M as MarkdownBlockNode } from '../types-BdZkdJ3z.js';
2
+
3
+ /**
4
+ * Block template recommendations.
5
+ *
6
+ * Given a slice of markdown block nodes (the body underneath a heading),
7
+ * profile the content for image / video / quote / list / table / date /
8
+ * stat signals, then map that profile to the set of templates that make
9
+ * sense for the block. Used by the editor's template picker to surface a
10
+ * "Recommended for this block" section above the full template list.
11
+ */
12
+
13
+ interface BlockContentProfile {
14
+ hasImage: boolean;
15
+ imageCount: number;
16
+ hasVideo: boolean;
17
+ hasBlockquote: boolean;
18
+ hasList: boolean;
19
+ hasTable: boolean;
20
+ hasDate: boolean;
21
+ hasNumberHighlight: boolean;
22
+ wordCount: number;
23
+ }
24
+ interface RecommendationResult {
25
+ recommended: string[];
26
+ rest: string[];
27
+ }
28
+ /**
29
+ * Walk a slice of block nodes and summarize what kinds of content it
30
+ * contains. Cheap to run — no markdown parsing, just AST traversal.
31
+ */
32
+ declare function profileBlockContents(nodes: MarkdownBlockNode[]): BlockContentProfile;
33
+ /**
34
+ * Split a flat list of template names into a "Recommended" bucket
35
+ * (matches the active block's content profile) and a "rest" bucket
36
+ * (everything else). Both buckets preserve the input ordering of
37
+ * `allNames`, so the visual layout stays predictable as templates are
38
+ * added.
39
+ */
40
+ declare function recommendTemplatesForBlock(profile: BlockContentProfile, allNames: readonly string[]): RecommendationResult;
41
+
42
+ export { type BlockContentProfile, type RecommendationResult, profileBlockContents, recommendTemplatesForBlock };
@@ -0,0 +1,10 @@
1
+ import {
2
+ profileBlockContents,
3
+ recommendTemplatesForBlock
4
+ } from "../chunk-WMOI7FN3.js";
5
+ import "../chunk-H3AXU4MJ.js";
6
+ export {
7
+ profileBlockContents,
8
+ recommendTemplatesForBlock
9
+ };
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,10 +1,188 @@
1
- export * from './Types.js';
2
- export * from './Doc.js';
3
- export * from './BlockTemplates.js';
4
- export * from './Theme.js';
5
- export * from './themeLibrary.js';
6
- export * from './Viewport.js';
7
- export { getLayoutHints, getTwoColumnPositions, getSafeTextBounds, scaledFontSize as layoutScaledFontSize, } from './LayoutStrategy.js';
8
- export type { LayoutHints } from './LayoutStrategy.js';
9
- export type { MediaProvider, MediaEntry } from './MediaProvider.js';
10
- //# sourceMappingURL=index.d.ts.map
1
+ export { B as BoundingBox, C as Coordinates } from '../Types-sh2VRxfo.js';
2
+ import { af as Theme, q as DeepPartial, aj as ThemeSeedColors, ag as ThemeColorPalette, v as FontFamilyKind, u as FontFamily } from '../Doc-BeSeH2iX.js';
3
+ export { A as AccentImage, a as AccentPosition, b as Animation, c as AnimationType, d as AudioBookmark, e as AudioSegment, f as AudioTimingData, g as AudioTrack, B as Block, C as CaptionPhrase, h as CaptionTrack, i as CaptionWord, j as ColorScheme, k as ComparisonBarInput, l as CornerBrandingConfig, D as DARK_SURFACE, m as DEFAULT_DOC_FONT, n as DEFAULT_TITLE_FONT, o as DataTableInput, p as DateEventInput, r as DefinitionCardInput, s as Doc, t as DocBlock, F as FactCardInput, w as FullBleedQuoteInput, G as GradientBackgroundConfig, I as ImageBackgroundConfig, x as ImageLayer, y as ImageWithCaptionInput, L as LIGHT_SURFACE, z as Layer, E as LayoutHints, H as LeftFeatureInput, J as ListBlockInput, M as MapBlockInput, K as MapLayer, N as MapMarker, O as MapTileStyle, P as PatternBackgroundConfig, Q as PersistentLayer, R as PersistentLayerConfig, S as PersistentLayerTemplate, T as PersistentLayerTemplateConfig, U as PersistentLayerTemplateType, V as PhotoGridInput, W as Position, X as ProgressIndicatorConfig, Y as PullQuoteInput, Z as QuoteBlockInput, _ as RenderStyle, $ as RightFeatureInput, a0 as SectionHeaderInput, a1 as ShapeLayer, a2 as SolidBackgroundConfig, a3 as StartBlockConfig, a4 as StatHighlightInput, a5 as SurfaceScheme, a6 as THEME_SCHEMA_VERSION, a7 as TableLayer, a8 as TableLayerStyle, a9 as TemplateBlock, aa as TemplateContext, ab as TemplateFunction, ac as TemplateRegistry, ad as TextLayer, ae as TextStyle, ah as ThemeColorScheme, ai as ThemeSchemaVersion, ak as ThemeStyle, al as ThemeTypography, am as TitleBlockInput, an as TitleCaptionConfig, ao as Transition, ap as TransitionType, aq as TwoColumnInput, ar as VIEWPORT_PRESETS, as as VideoLayer, at as VideoPullQuoteInput, au as VideoWithCaptionInput, av as ViewportConfig, aw as ViewportOrientation, ax as ViewportPreset, ay as applySurface, az as calculateDuration, aA as calculateFontScale, aB as createTemplateContext, aC as createTheme, aD as getAspectRatioString, aE as getBlockAtTime, aF as getCaptionAtTime, aG as getLayoutHints, aH as getRegisteredThemes, aI as getSafeTextBounds, aJ as getSegmentAtTime, aK as getTwoColumnPositions, aL as getViewport, aM as getViewportOrientation, aN as isPersistentLayerTemplate, aO as isTemplateBlock, aP as layoutScaledFontSize, aQ as lookupRegisteredTheme, aR as registerTheme, aS as scaledFontSize, aT as unregisterTheme, aU as validateDoc } from '../Doc-BeSeH2iX.js';
4
+ export { D as DEFAULT_THEME, a as DEFAULT_THEME_ID, T as THEMES, g as getAvailableThemes, b as getThemeSummaries, r as resolveTheme } from '../themeLibrary-BHjJ0Qx6.js';
5
+ export { M as MediaEntry, a as MediaProvider } from '../MediaProvider-wpSe21B3.js';
6
+ export { E as EditorLayerMeta, I as ImageEditCanvas, a as ImageEditDoc, b as ImageEditLayer, c as ImageEditLayerKind, d as ImageEditMeta } from '../ImageEditDoc-BTIvw0oq.js';
7
+ import '../types-BdZkdJ3z.js';
8
+
9
+ /**
10
+ * Theme Validator
11
+ *
12
+ * Hand-rolled validator for `Theme` JSON. No dependencies. Produces a
13
+ * flat list of typed errors with JSON paths, suitable for surfacing in
14
+ * the customizer UI or throwing at module init for built-in themes.
15
+ *
16
+ * Design: walk the candidate object, push errors for each violation.
17
+ * Coverage is exhaustive for required fields and shapes; permissive on
18
+ * forward-compatible fields (unknown keys are ignored, not rejected).
19
+ */
20
+
21
+ interface ValidationError {
22
+ path: string;
23
+ message: string;
24
+ }
25
+ interface ValidationResult {
26
+ valid: boolean;
27
+ errors: ValidationError[];
28
+ /** Present only when `valid === true`. The same input typed as `Theme`. */
29
+ theme?: Theme;
30
+ }
31
+ declare function validateTheme(input: unknown): ValidationResult;
32
+ /** Throws on invalid input. Useful at module init for built-in themes. */
33
+ declare function assertTheme(input: unknown, source?: string): Theme;
34
+
35
+ /**
36
+ * Theme Compilation
37
+ *
38
+ * Turns a partial Theme (typically authored by the customizer panel from
39
+ * a few seed colors and preset choices) into a complete, validated Theme
40
+ * by:
41
+ *
42
+ * 1. Filling unspecified fields from a hardcoded `STARTER_THEME`.
43
+ * 2. Deriving missing color slots from `seedColors` via OKLCh math.
44
+ * 3. Validating the result.
45
+ *
46
+ * Built-in themes ship as fully-specified Theme JSON and skip this step.
47
+ */
48
+
49
+ declare const STARTER_THEME: Theme;
50
+ /**
51
+ * Derive a full `ThemeColorPalette` from `seedColors`, with any explicit
52
+ * `partialColors` taking precedence over derived values. Background and
53
+ * text are guessed from luminance when the user gave only a primary.
54
+ */
55
+ declare function deriveColorPalette(seeds: ThemeSeedColors, partialColors?: Partial<ThemeColorPalette>, opts?: {
56
+ contrast?: 'subtle' | 'balanced' | 'high';
57
+ }): ThemeColorPalette;
58
+ /** Map a contrast preset to numeric spread used by `deriveColorPalette`. */
59
+ type ContrastPreset = 'subtle' | 'balanced' | 'high';
60
+ interface CompileOptions {
61
+ /** Contrast level for OKLCh derivation (default 'balanced'). */
62
+ contrast?: ContrastPreset;
63
+ }
64
+ /**
65
+ * Compile a partial Theme into a complete one. Fills missing fields from
66
+ * `STARTER_THEME`, derives missing color slots from `seedColors` (when
67
+ * present), and validates the result.
68
+ */
69
+ declare function compileTheme(partial: DeepPartial<Theme>, opts?: CompileOptions): Theme;
70
+ /**
71
+ * Parse a JSON string into a validated Theme. Throws on invalid input.
72
+ */
73
+ declare function parseTheme(json: string): Theme;
74
+ /**
75
+ * Serialize a Theme to a stable, pretty-printed JSON string. Round-trips
76
+ * cleanly through `parseTheme`.
77
+ */
78
+ declare function serializeTheme(theme: Theme): string;
79
+
80
+ /**
81
+ * Font Stacks
82
+ *
83
+ * Curated registry of font families used by built-in themes and offered in
84
+ * the theme customizer. Each stack has a stable `id` (referenced by JSON
85
+ * theme files via `{ stackId }`) and a CSS `family` string that resolves
86
+ * to the actual font when rendered.
87
+ *
88
+ * Themes never carry raw CSS font strings — they reference a `stackId` or
89
+ * specify a `{ custom: { name, fallback } }` form, both of which resolve
90
+ * here at render time.
91
+ */
92
+
93
+ interface FontStack {
94
+ /** Stable identifier referenced by Theme JSON. */
95
+ id: string;
96
+ /** Display label for pickers. */
97
+ label: string;
98
+ /** Full CSS font-family string with safe fallbacks. */
99
+ family: string;
100
+ /** Categorical bucket for the picker UI. */
101
+ kind: FontFamilyKind;
102
+ /**
103
+ * Google Fonts family name, when this stack is served by Google Fonts.
104
+ * Used by exports that bundle a `<link>` to fonts.googleapis.com so the
105
+ * face renders correctly even when the host page doesn't preload it.
106
+ * Omit (or set to undefined) for purely system stacks.
107
+ */
108
+ googleFontFamily?: string;
109
+ }
110
+ /** All curated stacks, in the order they should appear in pickers. */
111
+ declare const AVAILABLE_FONT_STACKS: FontStack[];
112
+ /** Look up a stack by id. Returns undefined if not registered. */
113
+ declare function getFontStack(id: string): FontStack | undefined;
114
+ /**
115
+ * Resolve a `FontFamily` reference (or legacy raw string) to a CSS family string.
116
+ * Used by `getThemeFont` at render time. Never returns an empty string —
117
+ * unrecognized stackIds fall back to the requested role's default.
118
+ */
119
+ declare function resolveFontFamily(family: FontFamily | string | undefined, roleFallback: string): string;
120
+ /** Convenience: quick `{ stackId }` factory for code that constructs themes. */
121
+ declare function fontStack(id: string): FontFamily;
122
+ /**
123
+ * Build a `https://fonts.googleapis.com/css2?...` URL that loads the
124
+ * subset of supplied `FontFamily` references that are served by Google
125
+ * Fonts. Returns `null` when nothing in the list needs Google hosting
126
+ * (system stacks, custom fonts, or unknown stack ids) — callers can use
127
+ * that to skip emitting a `<link>` entirely.
128
+ *
129
+ * The URL requests regular + bold (400/700) for each family, which is
130
+ * what the templates use. `display=swap` keeps the fallback visible
131
+ * while the web font streams in.
132
+ */
133
+ declare function buildGoogleFontsUrl(families: Array<FontFamily | undefined>): string | null;
134
+ /** Default fallback families exposed for tools that need them. */
135
+ declare const FONT_FALLBACKS: Record<FontFamilyKind, string>;
136
+
137
+ /**
138
+ * Color Utilities
139
+ *
140
+ * Pure-JS color math used by theme compilation and contrast checks.
141
+ * No dependencies. Operates on `#rrggbb` hex strings.
142
+ *
143
+ * Internally uses OKLCh — perceptually uniform, so lightening by 0.1
144
+ * looks like the same change at any starting point. Out-of-gamut
145
+ * results are clamped to sRGB.
146
+ */
147
+ /** Test whether a string is a valid `#rgb` or `#rrggbb` hex color. */
148
+ declare function isHex(value: string): boolean;
149
+ /**
150
+ * Lighten a color by `amount` (0..1) in OKLCh L space.
151
+ * Falls back to the input on parse failure.
152
+ */
153
+ declare function oklchLighten(hex: string, amount: number): string;
154
+ /**
155
+ * Darken a color by `amount` (0..1) in OKLCh L space.
156
+ * Falls back to the input on parse failure.
157
+ */
158
+ declare function oklchDarken(hex: string, amount: number): string;
159
+ /**
160
+ * Adjust the OKLCh chroma of a color by a multiplier (e.g. 0.7 to mute).
161
+ */
162
+ declare function oklchSetChroma(hex: string, multiplier: number): string;
163
+ /**
164
+ * WCAG relative luminance of a hex color, returned as 0..1.
165
+ */
166
+ declare function relativeLuminance(hex: string): number;
167
+ /**
168
+ * WCAG contrast ratio between two hex colors. Returns 1..21.
169
+ */
170
+ declare function contrastRatio(a: string, b: string): number;
171
+ /**
172
+ * Pick a near-white or near-black text color that contrasts well against `bg`.
173
+ */
174
+ declare function pickContrastingText(bg: string, light?: string, dark?: string): string;
175
+ /**
176
+ * Derive a 5-step lighter→darker scale from a seed color.
177
+ * Stops are evenly spaced in OKLCh L space around the seed.
178
+ * `spread` controls amplitude (0.05 = subtle, 0.15 = balanced, 0.22 = high).
179
+ */
180
+ declare function deriveScale(seedHex: string, spread?: number): {
181
+ lighter2: string;
182
+ lighter1: string;
183
+ base: string;
184
+ darker1: string;
185
+ darker2: string;
186
+ };
187
+
188
+ export { AVAILABLE_FONT_STACKS, type CompileOptions, type ContrastPreset, DeepPartial, FONT_FALLBACKS, FontFamily, FontFamilyKind, type FontStack, STARTER_THEME, Theme, ThemeColorPalette, ThemeSeedColors, type ValidationError, type ValidationResult, assertTheme, buildGoogleFontsUrl, compileTheme, contrastRatio, deriveColorPalette, deriveScale, fontStack, getFontStack, isHex, oklchDarken, oklchLighten, oklchSetChroma, parseTheme, pickContrastingText, relativeLuminance, resolveFontFamily, serializeTheme, validateTheme };
@@ -1,8 +1,121 @@
1
- export * from './Types.js';
2
- export * from './Doc.js';
3
- export * from './BlockTemplates.js';
4
- export * from './Theme.js';
5
- export * from './themeLibrary.js';
6
- export * from './Viewport.js';
7
- export { getLayoutHints, getTwoColumnPositions, getSafeTextBounds, scaledFontSize as layoutScaledFontSize, } from './LayoutStrategy.js';
1
+ import {
2
+ STARTER_THEME,
3
+ calculateDuration,
4
+ compileTheme,
5
+ deriveColorPalette,
6
+ getBlockAtTime,
7
+ getCaptionAtTime,
8
+ getSegmentAtTime,
9
+ parseTheme,
10
+ serializeTheme,
11
+ validateDoc
12
+ } from "../chunk-57CVQCFX.js";
13
+ import {
14
+ AVAILABLE_FONT_STACKS,
15
+ DARK_SURFACE,
16
+ DEFAULT_THEME,
17
+ DEFAULT_THEME_ID,
18
+ FONT_FALLBACKS,
19
+ LIGHT_SURFACE,
20
+ THEMES,
21
+ THEME_SCHEMA_VERSION,
22
+ applySurface,
23
+ assertTheme,
24
+ buildGoogleFontsUrl,
25
+ contrastRatio,
26
+ createTheme,
27
+ deriveScale,
28
+ fontStack,
29
+ getAvailableThemes,
30
+ getFontStack,
31
+ getRegisteredThemes,
32
+ getThemeSummaries,
33
+ isHex,
34
+ lookupRegisteredTheme,
35
+ oklchDarken,
36
+ oklchLighten,
37
+ oklchSetChroma,
38
+ pickContrastingText,
39
+ registerTheme,
40
+ relativeLuminance,
41
+ resolveFontFamily,
42
+ resolveTheme,
43
+ unregisterTheme,
44
+ validateTheme
45
+ } from "../chunk-B4EEON3N.js";
46
+ import {
47
+ DEFAULT_DOC_FONT,
48
+ DEFAULT_TITLE_FONT,
49
+ VIEWPORT_PRESETS,
50
+ calculateFontScale,
51
+ createTemplateContext,
52
+ getAspectRatioString,
53
+ getLayoutHints,
54
+ getSafeTextBounds,
55
+ getTwoColumnPositions,
56
+ getViewport,
57
+ getViewportOrientation,
58
+ isPersistentLayerTemplate,
59
+ isTemplateBlock,
60
+ scaledFontSize,
61
+ scaledFontSize2
62
+ } from "../chunk-5WFRKURX.js";
63
+ export {
64
+ AVAILABLE_FONT_STACKS,
65
+ DARK_SURFACE,
66
+ DEFAULT_DOC_FONT,
67
+ DEFAULT_THEME,
68
+ DEFAULT_THEME_ID,
69
+ DEFAULT_TITLE_FONT,
70
+ FONT_FALLBACKS,
71
+ LIGHT_SURFACE,
72
+ STARTER_THEME,
73
+ THEMES,
74
+ THEME_SCHEMA_VERSION,
75
+ VIEWPORT_PRESETS,
76
+ applySurface,
77
+ assertTheme,
78
+ buildGoogleFontsUrl,
79
+ calculateDuration,
80
+ calculateFontScale,
81
+ compileTheme,
82
+ contrastRatio,
83
+ createTemplateContext,
84
+ createTheme,
85
+ deriveColorPalette,
86
+ deriveScale,
87
+ fontStack,
88
+ getAspectRatioString,
89
+ getAvailableThemes,
90
+ getBlockAtTime,
91
+ getCaptionAtTime,
92
+ getFontStack,
93
+ getLayoutHints,
94
+ getRegisteredThemes,
95
+ getSafeTextBounds,
96
+ getSegmentAtTime,
97
+ getThemeSummaries,
98
+ getTwoColumnPositions,
99
+ getViewport,
100
+ getViewportOrientation,
101
+ isHex,
102
+ isPersistentLayerTemplate,
103
+ isTemplateBlock,
104
+ scaledFontSize as layoutScaledFontSize,
105
+ lookupRegisteredTheme,
106
+ oklchDarken,
107
+ oklchLighten,
108
+ oklchSetChroma,
109
+ parseTheme,
110
+ pickContrastingText,
111
+ registerTheme,
112
+ relativeLuminance,
113
+ resolveFontFamily,
114
+ resolveTheme,
115
+ scaledFontSize2 as scaledFontSize,
116
+ serializeTheme,
117
+ unregisterTheme,
118
+ validateDoc,
119
+ validateTheme
120
+ };
8
121
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,IAAI,oBAAoB,GACvC,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,3 +1,111 @@
1
- export * from './Haversine.js';
2
- export * from './Geohash.js';
3
- //# sourceMappingURL=index.d.ts.map
1
+ import { C as Coordinates } from '../Types-sh2VRxfo.js';
2
+
3
+ /**
4
+ * Haversine Distance Calculation
5
+ *
6
+ * Provides accurate distance calculation between two geographic coordinates
7
+ * using the Haversine formula, which accounts for Earth's curvature.
8
+ */
9
+
10
+ /**
11
+ * Calculate distance between two coordinates using Haversine formula.
12
+ *
13
+ * @param from Start coordinates
14
+ * @param to End coordinates
15
+ * @returns Distance in kilometers
16
+ */
17
+ declare function haversineDistance(from: Coordinates, to: Coordinates): number;
18
+ /**
19
+ * Calculate bearing from one coordinate to another.
20
+ *
21
+ * @param from Start coordinates
22
+ * @param to End coordinates
23
+ * @returns Bearing in degrees (0-360, where 0 = north, 90 = east)
24
+ */
25
+ declare function calculateBearing(from: Coordinates, to: Coordinates): number;
26
+
27
+ /**
28
+ * Geohash Utilities
29
+ *
30
+ * Provides geohash encoding/decoding and spatial utilities using the standard
31
+ * ngeohash library for core operations, plus custom utilities for overlap checking
32
+ * and distance calculation.
33
+ *
34
+ * Geohashes are a hierarchical spatial indexing system that divides the world
35
+ * into a grid of cells. Each additional character narrows the area by ~1/32.
36
+ *
37
+ * Precision guide:
38
+ * - 4 chars: ~39km x 19km (used for tile indexing)
39
+ * - 5 chars: ~5km x 5km
40
+ * - 6 chars: ~1.2km x 0.6km
41
+ */
42
+ /**
43
+ * Encode latitude/longitude to a geohash string.
44
+ * Uses the standard ngeohash library.
45
+ */
46
+ declare function encodeGeohash(lat: number, lng: number, precision?: number): string;
47
+ /**
48
+ * Decode a geohash to latitude/longitude center with error bounds.
49
+ * Uses the standard ngeohash library.
50
+ */
51
+ declare function decodeGeohash(hash: string): {
52
+ lat: number;
53
+ lng: number;
54
+ latErr: number;
55
+ lngErr: number;
56
+ };
57
+ /**
58
+ * Get the 8 neighboring geohash cells.
59
+ * Returns up to 8 neighbors (fewer at poles or antimeridian).
60
+ * Uses the standard ngeohash library.
61
+ */
62
+ declare function getNeighbors(hash: string): string[];
63
+ /**
64
+ * Get a 3x3 grid of geohash4 cells (center + 8 neighbors).
65
+ * Used for landing bonus expansions in Fly mode.
66
+ *
67
+ * @param geohash4 - Center geohash4 cell
68
+ * @returns Array of 9 geohash4 cells (center first, then neighbors)
69
+ *
70
+ * @example
71
+ * getGeohash4Neighbors('c23n')
72
+ * // => ['c23n', 'c23p', 'c23q', 'c23j', 'c23m', 'c23k', 'c23h', 'c23e', 'c23s']
73
+ */
74
+ declare function getGeohash4Neighbors(geohash4: string): string[];
75
+ /**
76
+ * Get the prefix of a geohash at a given precision.
77
+ * Simple helper for extracting geohash prefixes for directory organization.
78
+ */
79
+ declare function getGeohashPrefix(geohash: string, precision: number): string;
80
+ /**
81
+ * Convert a geohash prefix to a hierarchical path.
82
+ *
83
+ * Examples:
84
+ * "9mud" -> "9/m/u/d"
85
+ * "9q8y" -> "9/q/8/y"
86
+ * "c24k" -> "c/2/4/k"
87
+ *
88
+ * This is used for organizing files in hierarchical directories to avoid
89
+ * thousands of folders in a single directory, which causes filesystem
90
+ * performance issues.
91
+ */
92
+ declare function geohashToHierarchicalPath(geohash4: string): string;
93
+ /**
94
+ * Compute all geohash cells along the path between two geohash cells.
95
+ * Interpolates lat/lng points between the centers of `from` and `to`,
96
+ * encoding each to a geohash at the given precision, and returns the
97
+ * deduplicated list of intermediate cells (excluding `from` and `to`).
98
+ */
99
+ declare function getGeohashPath(from: string, to: string, precision?: number): string[];
100
+ /**
101
+ * Check if a geohash cell overlaps with a bounding box.
102
+ * Custom implementation (not available in ngeohash).
103
+ */
104
+ declare function geohashOverlapsBounds(hash: string, bounds: {
105
+ north: number;
106
+ south: number;
107
+ east: number;
108
+ west: number;
109
+ }): boolean;
110
+
111
+ export { calculateBearing, decodeGeohash, encodeGeohash, geohashOverlapsBounds, geohashToHierarchicalPath, getGeohash4Neighbors, getGeohashPath, getGeohashPrefix, getNeighbors, haversineDistance };
@@ -1,3 +1,25 @@
1
- export * from './Haversine.js';
2
- export * from './Geohash.js';
1
+ import {
2
+ calculateBearing,
3
+ decodeGeohash,
4
+ encodeGeohash,
5
+ geohashOverlapsBounds,
6
+ geohashToHierarchicalPath,
7
+ getGeohash4Neighbors,
8
+ getGeohashPath,
9
+ getGeohashPrefix,
10
+ getNeighbors,
11
+ haversineDistance
12
+ } from "../chunk-7UDSRZKG.js";
13
+ export {
14
+ calculateBearing,
15
+ decodeGeohash,
16
+ encodeGeohash,
17
+ geohashOverlapsBounds,
18
+ geohashToHierarchicalPath,
19
+ getGeohash4Neighbors,
20
+ getGeohashPath,
21
+ getGeohashPrefix,
22
+ getNeighbors,
23
+ haversineDistance
24
+ };
3
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/spatial/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}