@bendyline/squisq 2.1.0 → 2.3.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 (442) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE.md +24 -0
  3. package/README.md +8 -8
  4. package/dist/{ContentContainer-BXUlIf18.d.ts → ContentContainer-B2w9sUoL.d.ts} +15 -0
  5. package/dist/{Doc-DynJleo-.d.ts → Doc-COe-rPQB.d.ts} +7 -5
  6. package/dist/{ImageEditDoc-Ca4Tr9uN.d.ts → ImageEditDoc-dtKahVyD.d.ts} +1 -1
  7. package/dist/{annotationCoercion-Dr_DY9Hx.d.ts → annotationCoercion-PtRQhk5V.d.ts} +1 -1
  8. package/dist/{chunk-VWCJ2WXC.js → chunk-2ZWIXGAC.js} +0 -1
  9. package/dist/{chunk-VYFRI7R6.js → chunk-32R2RZAO.js} +72 -3
  10. package/dist/chunk-3IGPAPQ7.js +645 -0
  11. package/dist/{chunk-QE7TWGVT.js → chunk-4VOD55SX.js} +0 -1
  12. package/dist/{chunk-3E5F2XMR.js → chunk-67L6WRJN.js} +0 -1
  13. package/dist/{chunk-5DKBFXPY.js → chunk-6ECMNUIP.js} +26 -18
  14. package/dist/{chunk-DBS6RIFL.js → chunk-7N4G32LG.js} +0 -1
  15. package/dist/{chunk-JOQYPRDZ.js → chunk-7YEZFHLS.js} +10 -8
  16. package/dist/{chunk-2UQOHYE2.js → chunk-7ZAAICW4.js} +0 -1
  17. package/dist/{chunk-66QO7XFB.js → chunk-ACZOVWX3.js} +117 -7
  18. package/dist/{chunk-5J4HKRJF.js → chunk-BAOV476U.js} +0 -1
  19. package/dist/chunk-BCCXTMN5.js +699 -0
  20. package/dist/{chunk-JHZWYRSW.js → chunk-C33GTPUZ.js} +11 -4
  21. package/dist/{chunk-XNLB57UD.js → chunk-EK446BUE.js} +18 -2
  22. package/dist/{chunk-VR7UPJ7C.js → chunk-FCG3BIZN.js} +12 -1
  23. package/dist/{chunk-JI77MGAK.js → chunk-GIIOY6XR.js} +2178 -1291
  24. package/dist/{chunk-Q7LROV2H.js → chunk-NKNMGIIN.js} +0 -1
  25. package/dist/chunk-OPO5K4DZ.js +241 -0
  26. package/dist/{chunk-TUWMK62B.js → chunk-PUS54YU6.js} +45 -2
  27. package/dist/{chunk-OTKVFVL6.js → chunk-QNTQIEIV.js} +130 -47
  28. package/dist/{chunk-5UYI3RJB.js → chunk-QWCFK5FN.js} +55 -40
  29. package/dist/{chunk-GZY66SDN.js → chunk-R3KTTOMS.js} +0 -1
  30. package/dist/{chunk-ILWDXLUK.js → chunk-RS5AP3J4.js} +49 -10
  31. package/dist/{chunk-QUUPYOSP.js → chunk-SPTY4C6F.js} +136 -5
  32. package/dist/{chunk-4X3JQXNM.js → chunk-XOFT65EX.js} +1 -2
  33. package/dist/{chunk-FVTQSNR7.js → chunk-XRW6P7IF.js} +13 -5
  34. package/dist/{chunk-R2YZTCLO.js → chunk-ZQKZSJAX.js} +1 -2
  35. package/dist/doc/index.d.ts +311 -13
  36. package/dist/doc/index.js +25 -17
  37. package/dist/generate/index.d.ts +2 -2
  38. package/dist/generate/index.js +1 -3
  39. package/dist/icons/index.js +2 -4
  40. package/dist/icons/inlineIconMarker.js +1 -2
  41. package/dist/imageEdit/index.d.ts +48 -17
  42. package/dist/imageEdit/index.js +3 -4
  43. package/dist/index.d.ts +13 -13
  44. package/dist/index.js +67 -33
  45. package/dist/jsonForm/index.d.ts +10 -3
  46. package/dist/jsonForm/index.js +8 -7
  47. package/dist/markdown/index.d.ts +75 -11
  48. package/dist/markdown/index.js +32 -7
  49. package/dist/{materializePageSection-DDzubQXo.d.ts → materializePageSection-BSMOocve.d.ts} +2 -2
  50. package/dist/narration/index.d.ts +16 -3
  51. package/dist/narration/index.js +12 -14
  52. package/dist/random/index.d.ts +11 -2
  53. package/dist/random/index.js +1 -3
  54. package/dist/recommend/index.d.ts +1 -1
  55. package/dist/recommend/index.js +2 -4
  56. package/dist/schemas/index.d.ts +18 -6
  57. package/dist/schemas/index.js +7 -6
  58. package/dist/spatial/index.d.ts +2 -1
  59. package/dist/spatial/index.js +1 -2
  60. package/dist/storage/index.d.ts +4 -2
  61. package/dist/storage/index.js +1 -2
  62. package/dist/{themeLibrary-B72m0W1y.d.ts → themeLibrary-BUTWjufL.d.ts} +1 -1
  63. package/dist/timing/index.js +2 -4
  64. package/dist/transform/index.d.ts +3 -3
  65. package/dist/transform/index.js +6 -7
  66. package/dist/{types-C4kiRn_k.d.ts → types-8QjefM9J.d.ts} +38 -2
  67. package/dist/{types-BwMPl2CB.d.ts → types-CUNc9biN.d.ts} +24 -1
  68. package/dist/versions/index.d.ts +14 -11
  69. package/dist/versions/index.js +2 -3
  70. package/package.json +8 -3
  71. package/dist/chunk-2UQOHYE2.js.map +0 -1
  72. package/dist/chunk-3E5F2XMR.js.map +0 -1
  73. package/dist/chunk-4X3JQXNM.js.map +0 -1
  74. package/dist/chunk-5DKBFXPY.js.map +0 -1
  75. package/dist/chunk-5J4HKRJF.js.map +0 -1
  76. package/dist/chunk-5UYI3RJB.js.map +0 -1
  77. package/dist/chunk-66QO7XFB.js.map +0 -1
  78. package/dist/chunk-AMIR72JP.js +0 -380
  79. package/dist/chunk-AMIR72JP.js.map +0 -1
  80. package/dist/chunk-DBS6RIFL.js.map +0 -1
  81. package/dist/chunk-DNJKBAI7.js +0 -1
  82. package/dist/chunk-DNJKBAI7.js.map +0 -1
  83. package/dist/chunk-ET53IIEP.js +0 -1
  84. package/dist/chunk-ET53IIEP.js.map +0 -1
  85. package/dist/chunk-FVTQSNR7.js.map +0 -1
  86. package/dist/chunk-GZY66SDN.js.map +0 -1
  87. package/dist/chunk-ILWDXLUK.js.map +0 -1
  88. package/dist/chunk-JHZWYRSW.js.map +0 -1
  89. package/dist/chunk-JI77MGAK.js.map +0 -1
  90. package/dist/chunk-JOQYPRDZ.js.map +0 -1
  91. package/dist/chunk-OTKVFVL6.js.map +0 -1
  92. package/dist/chunk-PGGGKYWG.js +0 -1
  93. package/dist/chunk-PGGGKYWG.js.map +0 -1
  94. package/dist/chunk-Q7LROV2H.js.map +0 -1
  95. package/dist/chunk-QE7TWGVT.js.map +0 -1
  96. package/dist/chunk-QUUPYOSP.js.map +0 -1
  97. package/dist/chunk-R2GC6RLD.js +0 -344
  98. package/dist/chunk-R2GC6RLD.js.map +0 -1
  99. package/dist/chunk-R2YZTCLO.js.map +0 -1
  100. package/dist/chunk-S7A5D7ZJ.js +0 -174
  101. package/dist/chunk-S7A5D7ZJ.js.map +0 -1
  102. package/dist/chunk-TUWMK62B.js.map +0 -1
  103. package/dist/chunk-V543AI2F.js +0 -1
  104. package/dist/chunk-V543AI2F.js.map +0 -1
  105. package/dist/chunk-VR7UPJ7C.js.map +0 -1
  106. package/dist/chunk-VWCJ2WXC.js.map +0 -1
  107. package/dist/chunk-VYFRI7R6.js.map +0 -1
  108. package/dist/chunk-XNLB57UD.js.map +0 -1
  109. package/dist/chunk-ZLQKNOZQ.js +0 -1
  110. package/dist/chunk-ZLQKNOZQ.js.map +0 -1
  111. package/dist/doc/index.js.map +0 -1
  112. package/dist/generate/index.js.map +0 -1
  113. package/dist/icons/index.js.map +0 -1
  114. package/dist/icons/inlineIconMarker.js.map +0 -1
  115. package/dist/imageEdit/index.js.map +0 -1
  116. package/dist/index.js.map +0 -1
  117. package/dist/jsonForm/index.js.map +0 -1
  118. package/dist/markdown/index.js.map +0 -1
  119. package/dist/narration/index.js.map +0 -1
  120. package/dist/random/index.js.map +0 -1
  121. package/dist/recommend/index.js.map +0 -1
  122. package/dist/schemas/index.js.map +0 -1
  123. package/dist/spatial/index.js.map +0 -1
  124. package/dist/storage/index.js.map +0 -1
  125. package/dist/timing/index.js.map +0 -1
  126. package/dist/transform/index.js.map +0 -1
  127. package/dist/versions/index.js.map +0 -1
  128. package/src/__tests__/animationUtils.test.ts +0 -117
  129. package/src/__tests__/annotationCoercion.test.ts +0 -243
  130. package/src/__tests__/applyNarrationTiming.test.ts +0 -190
  131. package/src/__tests__/applyRenderStyle.test.ts +0 -146
  132. package/src/__tests__/asciiDiagramBattle.test.ts +0 -246
  133. package/src/__tests__/asciiDiagramDetect.test.ts +0 -162
  134. package/src/__tests__/asciiDiagramMapping.test.ts +0 -38
  135. package/src/__tests__/asciiDiagramParse.test.ts +0 -233
  136. package/src/__tests__/asciiDiagramPipeline.test.ts +0 -273
  137. package/src/__tests__/asciiDiagramRender.test.ts +0 -162
  138. package/src/__tests__/asciiDiagramRepair.test.ts +0 -84
  139. package/src/__tests__/asciiTimelineDetect.test.ts +0 -157
  140. package/src/__tests__/asciiTimelineParse.test.ts +0 -205
  141. package/src/__tests__/asciiTimelinePipeline.test.ts +0 -349
  142. package/src/__tests__/asciiTimelineRender.test.ts +0 -376
  143. package/src/__tests__/atmosphereLayers.test.ts +0 -108
  144. package/src/__tests__/attrTokens.test.ts +0 -167
  145. package/src/__tests__/colorUtils.test.ts +0 -112
  146. package/src/__tests__/contentContainer.test.ts +0 -325
  147. package/src/__tests__/contentExtractor.test.ts +0 -243
  148. package/src/__tests__/coverBlock.test.ts +0 -310
  149. package/src/__tests__/customTemplateSample.test.ts +0 -144
  150. package/src/__tests__/customTemplatesFrontmatter.test.ts +0 -221
  151. package/src/__tests__/customThemesFrontmatter.test.ts +0 -146
  152. package/src/__tests__/dataTable.test.ts +0 -145
  153. package/src/__tests__/diagramBlock.test.ts +0 -122
  154. package/src/__tests__/diagramLayout.test.ts +0 -134
  155. package/src/__tests__/diagramText.test.ts +0 -26
  156. package/src/__tests__/docToMarkdownMedia.test.ts +0 -83
  157. package/src/__tests__/drawing.test.ts +0 -109
  158. package/src/__tests__/drawingBlock.test.ts +0 -124
  159. package/src/__tests__/drawingLayout.test.ts +0 -171
  160. package/src/__tests__/fixtures/asciiDiagramBattle.ts +0 -512
  161. package/src/__tests__/fixtures/asciiDiagrams.ts +0 -287
  162. package/src/__tests__/fixtures/asciiTimelines.ts +0 -35
  163. package/src/__tests__/fixtures/treeviewFixtures.ts +0 -243
  164. package/src/__tests__/geohash.test.ts +0 -110
  165. package/src/__tests__/getLayers.test.ts +0 -243
  166. package/src/__tests__/getLayersFallback.test.ts +0 -103
  167. package/src/__tests__/haversine.test.ts +0 -63
  168. package/src/__tests__/iconResolve.test.ts +0 -122
  169. package/src/__tests__/imageEditExportSvg.test.ts +0 -70
  170. package/src/__tests__/imageEditState.test.ts +0 -74
  171. package/src/__tests__/imageEditVersions.test.ts +0 -243
  172. package/src/__tests__/inferDocumentTitle.test.ts +0 -50
  173. package/src/__tests__/inlineIconMarker.test.ts +0 -36
  174. package/src/__tests__/inputDescriptors.test.ts +0 -162
  175. package/src/__tests__/jsonForm.chooseControl.test.ts +0 -86
  176. package/src/__tests__/jsonForm.evaluateWhen.test.ts +0 -59
  177. package/src/__tests__/jsonForm.inferSchema.test.ts +0 -25
  178. package/src/__tests__/jsonForm.pointer.test.ts +0 -149
  179. package/src/__tests__/jsonForm.tokens.test.ts +0 -84
  180. package/src/__tests__/layoutBlock.test.ts +0 -83
  181. package/src/__tests__/layoutLayout.test.ts +0 -169
  182. package/src/__tests__/localForageAdapter.test.ts +0 -155
  183. package/src/__tests__/majorApiTypes.test.ts +0 -18
  184. package/src/__tests__/markdown.test.ts +0 -1009
  185. package/src/__tests__/markdownIcons.test.ts +0 -104
  186. package/src/__tests__/markdownSanitize.test.ts +0 -81
  187. package/src/__tests__/markdownToDoc.test.ts +0 -957
  188. package/src/__tests__/matchFontFamily.test.ts +0 -114
  189. package/src/__tests__/materializeBlockLayers.test.ts +0 -167
  190. package/src/__tests__/materializePageSections.test.ts +0 -404
  191. package/src/__tests__/materializeTestUtils.ts +0 -17
  192. package/src/__tests__/mediaAnnotations.test.ts +0 -91
  193. package/src/__tests__/mediaSchedule.test.ts +0 -118
  194. package/src/__tests__/narrationAlign.test.ts +0 -150
  195. package/src/__tests__/narrationFeatures.test.ts +0 -71
  196. package/src/__tests__/narrationNuclei.test.ts +0 -45
  197. package/src/__tests__/narrationPacing.test.ts +0 -189
  198. package/src/__tests__/narrationScript.test.ts +0 -149
  199. package/src/__tests__/narrationSessionRepro.test.ts +0 -62
  200. package/src/__tests__/narrationSidecar.test.ts +0 -88
  201. package/src/__tests__/narrationSyllables.test.ts +0 -65
  202. package/src/__tests__/narrationTestSignals.ts +0 -167
  203. package/src/__tests__/narrationVad.test.ts +0 -66
  204. package/src/__tests__/pageStyle.test.ts +0 -258
  205. package/src/__tests__/pandocAttrParse.test.ts +0 -187
  206. package/src/__tests__/recommendTemplates.test.ts +0 -183
  207. package/src/__tests__/resolveDocTheme.test.ts +0 -69
  208. package/src/__tests__/rootExports.test.ts +0 -61
  209. package/src/__tests__/scopedContentContainer.test.ts +0 -109
  210. package/src/__tests__/seededRandom.test.ts +0 -142
  211. package/src/__tests__/shapeGeometry.test.ts +0 -138
  212. package/src/__tests__/shapeVocabulary.test.ts +0 -133
  213. package/src/__tests__/storage.test.ts +0 -60
  214. package/src/__tests__/structuredData.test.ts +0 -249
  215. package/src/__tests__/surface.test.ts +0 -68
  216. package/src/__tests__/templateAnnotationParse.test.ts +0 -173
  217. package/src/__tests__/templateInputs.test.ts +0 -69
  218. package/src/__tests__/templateMetadata.test.ts +0 -32
  219. package/src/__tests__/templates.test.ts +0 -710
  220. package/src/__tests__/themeCompile.test.ts +0 -225
  221. package/src/__tests__/themeValidator.test.ts +0 -131
  222. package/src/__tests__/timing.test.ts +0 -167
  223. package/src/__tests__/transformProvenance.test.ts +0 -160
  224. package/src/__tests__/transformV2.test.ts +0 -163
  225. package/src/__tests__/transitionNormalize.test.ts +0 -61
  226. package/src/__tests__/treeviewBattle.test.ts +0 -76
  227. package/src/__tests__/treeviewDetect.test.ts +0 -168
  228. package/src/__tests__/treeviewParse.test.ts +0 -118
  229. package/src/__tests__/treeviewPipeline.test.ts +0 -183
  230. package/src/__tests__/treeviewRender.test.ts +0 -91
  231. package/src/__tests__/validateDoc.test.ts +0 -260
  232. package/src/__tests__/versions.test.ts +0 -459
  233. package/src/doc/annotationBlocks.ts +0 -117
  234. package/src/doc/applyNarrationTiming.ts +0 -244
  235. package/src/doc/asciiDiagram/chars.ts +0 -210
  236. package/src/doc/asciiDiagram/detect.ts +0 -175
  237. package/src/doc/asciiDiagram/index.ts +0 -38
  238. package/src/doc/asciiDiagram/mapping.ts +0 -225
  239. package/src/doc/asciiDiagram/parse.ts +0 -1095
  240. package/src/doc/asciiDiagram/render.ts +0 -963
  241. package/src/doc/asciiDiagram/repair.ts +0 -400
  242. package/src/doc/asciiDiagram/types.ts +0 -65
  243. package/src/doc/asciiTimeline/detect.ts +0 -138
  244. package/src/doc/asciiTimeline/index.ts +0 -26
  245. package/src/doc/asciiTimeline/mapping.ts +0 -43
  246. package/src/doc/asciiTimeline/parse.ts +0 -870
  247. package/src/doc/asciiTimeline/render.ts +0 -427
  248. package/src/doc/asciiTimeline/types.ts +0 -73
  249. package/src/doc/asciiTimeline/wrappedFlow.ts +0 -427
  250. package/src/doc/audioMapping.ts +0 -442
  251. package/src/doc/customTemplatesFrontmatter.ts +0 -273
  252. package/src/doc/customThemesFrontmatter.ts +0 -95
  253. package/src/doc/docToMarkdown.ts +0 -284
  254. package/src/doc/index.ts +0 -161
  255. package/src/doc/markdownToDoc.ts +0 -1054
  256. package/src/doc/materializeBlockLayers.ts +0 -465
  257. package/src/doc/mediaAnnotations.ts +0 -120
  258. package/src/doc/page/PageSection.ts +0 -174
  259. package/src/doc/page/materializePageSection.ts +0 -616
  260. package/src/doc/page/resolvePageBlock.ts +0 -108
  261. package/src/doc/page/sectionExtractors.ts +0 -466
  262. package/src/doc/pageCss.ts +0 -628
  263. package/src/doc/resolveDocTheme.ts +0 -56
  264. package/src/doc/standaloneAnnotation.ts +0 -58
  265. package/src/doc/structuredData.ts +0 -301
  266. package/src/doc/templateInputs.ts +0 -424
  267. package/src/doc/templates/__tests__/customTemplate.test.ts +0 -170
  268. package/src/doc/templates/__tests__/customTemplateRegistry.test.ts +0 -124
  269. package/src/doc/templates/__tests__/listBlock.test.ts +0 -64
  270. package/src/doc/templates/accentImage.ts +0 -362
  271. package/src/doc/templates/captionUtils.ts +0 -56
  272. package/src/doc/templates/comparisonBar.ts +0 -173
  273. package/src/doc/templates/coverBlock.ts +0 -255
  274. package/src/doc/templates/customTemplate.ts +0 -51
  275. package/src/doc/templates/dataTable.ts +0 -102
  276. package/src/doc/templates/dateEvent.ts +0 -147
  277. package/src/doc/templates/definitionCard.ts +0 -140
  278. package/src/doc/templates/diagramBlock.ts +0 -403
  279. package/src/doc/templates/diagramLayout.ts +0 -159
  280. package/src/doc/templates/drawingBlock.ts +0 -325
  281. package/src/doc/templates/drawingLayout.ts +0 -539
  282. package/src/doc/templates/factCard.ts +0 -146
  283. package/src/doc/templates/fallbackBlock.ts +0 -123
  284. package/src/doc/templates/featureBlock.ts +0 -209
  285. package/src/doc/templates/fullBleedQuote.ts +0 -83
  286. package/src/doc/templates/imageWithCaption.ts +0 -186
  287. package/src/doc/templates/index.ts +0 -642
  288. package/src/doc/templates/inputDescriptors.ts +0 -451
  289. package/src/doc/templates/layoutBlock.ts +0 -43
  290. package/src/doc/templates/layoutLayout.ts +0 -243
  291. package/src/doc/templates/listBlock.ts +0 -207
  292. package/src/doc/templates/mapBlock.ts +0 -138
  293. package/src/doc/templates/metadata.ts +0 -130
  294. package/src/doc/templates/persistentLayers.ts +0 -526
  295. package/src/doc/templates/photoGrid.ts +0 -190
  296. package/src/doc/templates/pullQuote.ts +0 -141
  297. package/src/doc/templates/quoteBlock.ts +0 -141
  298. package/src/doc/templates/registry.ts +0 -88
  299. package/src/doc/templates/sectionHeader.ts +0 -120
  300. package/src/doc/templates/statHighlight.ts +0 -146
  301. package/src/doc/templates/templateNames.ts +0 -22
  302. package/src/doc/templates/timelineBlock.ts +0 -613
  303. package/src/doc/templates/titleBlock.ts +0 -150
  304. package/src/doc/templates/tokens/__tests__/resolveTokens.test.ts +0 -487
  305. package/src/doc/templates/tokens/resolveTokens.ts +0 -453
  306. package/src/doc/templates/treeBlock.ts +0 -131
  307. package/src/doc/templates/twoColumn.ts +0 -263
  308. package/src/doc/templates/videoPullQuote.ts +0 -142
  309. package/src/doc/templates/videoWithCaption.ts +0 -135
  310. package/src/doc/treeview/chars.ts +0 -72
  311. package/src/doc/treeview/detect.ts +0 -145
  312. package/src/doc/treeview/index.ts +0 -30
  313. package/src/doc/treeview/mapping.ts +0 -95
  314. package/src/doc/treeview/parse.ts +0 -201
  315. package/src/doc/treeview/render.ts +0 -41
  316. package/src/doc/treeview/types.ts +0 -43
  317. package/src/doc/utils/animationUtils.ts +0 -399
  318. package/src/doc/utils/applyRenderStyle.ts +0 -106
  319. package/src/doc/utils/diagramText.ts +0 -78
  320. package/src/doc/utils/imageTreatment.ts +0 -70
  321. package/src/doc/utils/nearest.ts +0 -59
  322. package/src/doc/utils/shapeGeometry.ts +0 -614
  323. package/src/doc/utils/themeUtils.ts +0 -243
  324. package/src/doc/validate.ts +0 -575
  325. package/src/generate/contentExtractor.ts +0 -921
  326. package/src/generate/index.ts +0 -18
  327. package/src/generate/templateMapper.ts +0 -177
  328. package/src/icons/iconData.ts +0 -31
  329. package/src/icons/index.ts +0 -26
  330. package/src/icons/inlineIconMarker.ts +0 -73
  331. package/src/icons/resolve.ts +0 -139
  332. package/src/imageEdit/ImageEditVersionManager.ts +0 -73
  333. package/src/imageEdit/export.ts +0 -410
  334. package/src/imageEdit/index.ts +0 -72
  335. package/src/imageEdit/persistence.ts +0 -113
  336. package/src/imageEdit/state.ts +0 -112
  337. package/src/imageEdit/versionPaths.ts +0 -44
  338. package/src/imageEdit/versions.ts +0 -152
  339. package/src/index.ts +0 -15
  340. package/src/internal/immutable.ts +0 -58
  341. package/src/jsonForm/chooseControl.ts +0 -88
  342. package/src/jsonForm/evaluateWhen.ts +0 -59
  343. package/src/jsonForm/index.ts +0 -32
  344. package/src/jsonForm/inferSchema.ts +0 -25
  345. package/src/jsonForm/pointer.ts +0 -154
  346. package/src/jsonForm/tokens.ts +0 -78
  347. package/src/jsonForm/types.ts +0 -167
  348. package/src/markdown/annotationCoercion.ts +0 -295
  349. package/src/markdown/attrTokens.ts +0 -243
  350. package/src/markdown/convert.ts +0 -1353
  351. package/src/markdown/htmlParse.ts +0 -212
  352. package/src/markdown/index.ts +0 -152
  353. package/src/markdown/parse.ts +0 -103
  354. package/src/markdown/sanitize.ts +0 -318
  355. package/src/markdown/stringify.ts +0 -207
  356. package/src/markdown/types.ts +0 -710
  357. package/src/markdown/utils.ts +0 -459
  358. package/src/narration/align.ts +0 -514
  359. package/src/narration/features.ts +0 -231
  360. package/src/narration/index.ts +0 -86
  361. package/src/narration/nuclei.ts +0 -118
  362. package/src/narration/pacing.ts +0 -211
  363. package/src/narration/script.ts +0 -239
  364. package/src/narration/session.ts +0 -100
  365. package/src/narration/sidecar.ts +0 -187
  366. package/src/narration/syllables.ts +0 -85
  367. package/src/narration/trace.ts +0 -50
  368. package/src/narration/types.ts +0 -299
  369. package/src/narration/vad.ts +0 -131
  370. package/src/ngeohash.d.ts +0 -11
  371. package/src/random/SeededRandom.ts +0 -127
  372. package/src/random/index.ts +0 -1
  373. package/src/recommend/index.ts +0 -16
  374. package/src/recommend/numberHighlight.ts +0 -25
  375. package/src/recommend/templates.ts +0 -393
  376. package/src/schemas/BlockTemplates.ts +0 -1046
  377. package/src/schemas/CustomTemplates.ts +0 -126
  378. package/src/schemas/Doc.ts +0 -1073
  379. package/src/schemas/ImageEditDoc.ts +0 -102
  380. package/src/schemas/LayoutStrategy.ts +0 -178
  381. package/src/schemas/Media.ts +0 -179
  382. package/src/schemas/MediaProvider.ts +0 -70
  383. package/src/schemas/PageStyle.ts +0 -213
  384. package/src/schemas/Theme.ts +0 -413
  385. package/src/schemas/Transitions.ts +0 -224
  386. package/src/schemas/Types.ts +0 -15
  387. package/src/schemas/Viewport.ts +0 -91
  388. package/src/schemas/colorUtils.ts +0 -219
  389. package/src/schemas/fontStacks.ts +0 -339
  390. package/src/schemas/index.ts +0 -31
  391. package/src/schemas/pageStyleDefaults.ts +0 -204
  392. package/src/schemas/themeCompile.ts +0 -244
  393. package/src/schemas/themeConstants.ts +0 -2
  394. package/src/schemas/themeLibrary.ts +0 -60
  395. package/src/schemas/themeValidator.ts +0 -609
  396. package/src/schemas/themes/bold.json +0 -77
  397. package/src/schemas/themes/cinematic.json +0 -143
  398. package/src/schemas/themes/documentary.json +0 -125
  399. package/src/schemas/themes/gezellig.json +0 -123
  400. package/src/schemas/themes/index.ts +0 -53
  401. package/src/schemas/themes/magazine.json +0 -126
  402. package/src/schemas/themes/minimalist.json +0 -74
  403. package/src/schemas/themes/morning-light.json +0 -117
  404. package/src/schemas/themes/standard-dark.json +0 -109
  405. package/src/schemas/themes/standard.json +0 -98
  406. package/src/schemas/themes/tech-dark.json +0 -143
  407. package/src/schemas/themes/warm-earth.json +0 -74
  408. package/src/spatial/Geohash.ts +0 -196
  409. package/src/spatial/Haversine.ts +0 -59
  410. package/src/spatial/index.ts +0 -2
  411. package/src/storage/ContentContainer.ts +0 -220
  412. package/src/storage/LocalForageAdapter.ts +0 -103
  413. package/src/storage/LocalStorageAdapter.ts +0 -57
  414. package/src/storage/MediaProviderFromContainer.ts +0 -92
  415. package/src/storage/MemoryStorageAdapter.ts +0 -37
  416. package/src/storage/ScopedContentContainer.ts +0 -143
  417. package/src/storage/Storage.ts +0 -28
  418. package/src/storage/index.ts +0 -9
  419. package/src/timing/index.ts +0 -17
  420. package/src/timing/narrationTiming.ts +0 -220
  421. package/src/timing/readingTime.ts +0 -94
  422. package/src/transform/applyTransform.ts +0 -122
  423. package/src/transform/blockAnalyzer.ts +0 -181
  424. package/src/transform/index.ts +0 -23
  425. package/src/transform/registry.ts +0 -217
  426. package/src/transform/styles/dataDriven.ts +0 -18
  427. package/src/transform/styles/documentary.ts +0 -18
  428. package/src/transform/styles/index.ts +0 -5
  429. package/src/transform/styles/magazine.ts +0 -19
  430. package/src/transform/styles/minimal.ts +0 -18
  431. package/src/transform/styles/narrative.ts +0 -19
  432. package/src/transform/templateSelector.ts +0 -389
  433. package/src/transform/timingAllocator.ts +0 -257
  434. package/src/transform/types.ts +0 -158
  435. package/src/versions/DocumentVersionManager.ts +0 -70
  436. package/src/versions/gitignore.ts +0 -34
  437. package/src/versions/index.ts +0 -56
  438. package/src/versions/operations.ts +0 -144
  439. package/src/versions/paths.ts +0 -51
  440. package/src/versions/snapshotStore.ts +0 -202
  441. package/src/versions/timestamp.ts +0 -48
  442. package/src/versions/types.ts +0 -93
@@ -1,11 +1,11 @@
1
- import { aX as TemplateBlock, aY as TemplateContext, V as Layer, p as CustomTemplateDefinition, a_ as TemplateRegistry, b1 as Theme, bq as ViewportConfig, az as PersistentLayerConfig, G as DocBlock, ay as PersistentLayer, be as TitleBlockInput, aM as SectionHeaderInput, aS as StatHighlightInput, aH as QuoteBlockInput, L as FactCardInput, bl as TwoColumnInput, u as DateEventInput, T as ImageWithCaptionInput, Y as LeftFeatureInput, aK as RightFeatureInput, $ as MapBlockInput, aR as StartBlockConfig, O as FullBleedQuoteInput, _ as ListBlockInput, aD as PhotoGridInput, w as DefinitionCardInput, n as ComparisonBarInput, aG as PullQuoteInput, bp as VideoWithCaptionInput, bo as VideoPullQuoteInput, t as DataTableInput, x as DiagramBlockInput, bg as TreeBlockInput, ba as TimelineBlockInput, B as Block, I as DrawingBlockInput, a3 as MarkerStyle, A as AccentImage, S as ImageTreatment, a as AccentPosition, c as Animation, d as AnimationType, b3 as ThemeColorScheme, F as Doc, b5 as ThemeRegistry, ar as PageEmphasis, b4 as ThemePageStyle, H as DocDiagnostic, E as DiagramTemplateNode, z as DiagramTemplateEdge, bd as TimelineTemplateTrack, bc as TimelineTemplateLink } from '../Doc-DynJleo-.js';
2
- export { J as FRONTMATTER_CUSTOM_TEMPLATES_KEY, K as FRONTMATTER_CUSTOM_THEMES_KEY, X as LayoutHints, aJ as RenderStyle, b2 as ThemeColorPalette, b8 as ThemeStyle, b9 as ThemeTypography, bm as VIEWPORT_PRESETS, br as ViewportOrientation, bs as ViewportPreset, bx as createTemplateContext, bE as getLayoutHints, bH as getTwoColumnPositions, bI as getViewport, bJ as getViewportOrientation, bL as isTemplateBlock, bO as scaledFontSize } from '../Doc-DynJleo-.js';
3
- import { I as MarkdownNode, $ as TransitionType, _ as TransitionDirection, M as MarkdownBlockNode, q as MarkdownHeading, m as MarkdownDocument, P as MarkdownTable, h as MarkdownCodeBlock, C as MarkdownList } from '../types-BwMPl2CB.js';
4
- import { C as CoercedBlockMeta } from '../annotationCoercion-Dr_DY9Hx.js';
5
- import { c as PageSection } from '../materializePageSection-DDzubQXo.js';
6
- export { M as MaterializePageSectionOptions, a as MaterializePageSectionsOptions, P as PageMedia, b as PageRichText, d as PageSectionDiagnostic, e as PageSectionItem, f as PageSectionMaterialization, g as PageSectionSource, h as PageSpatialKind, i as PageTransformHints, m as materializePageSection, j as materializePageSections, r as resolvePageStyle } from '../materializePageSection-DDzubQXo.js';
7
- import { C as ContentContainer } from '../ContentContainer-BXUlIf18.js';
8
- export { D as DEFAULT_THEME, g as getAvailableThemes, b as getThemeSummaries, r as resolveTheme } from '../themeLibrary-B72m0W1y.js';
1
+ import { aX as TemplateBlock, aY as TemplateContext, V as Layer, p as CustomTemplateDefinition, a_ as TemplateRegistry, b1 as Theme, bq as ViewportConfig, az as PersistentLayerConfig, G as DocBlock, br as ViewportOrientation, ay as PersistentLayer, be as TitleBlockInput, aM as SectionHeaderInput, aS as StatHighlightInput, aH as QuoteBlockInput, L as FactCardInput, bl as TwoColumnInput, u as DateEventInput, T as ImageWithCaptionInput, Y as LeftFeatureInput, aK as RightFeatureInput, $ as MapBlockInput, aR as StartBlockConfig, O as FullBleedQuoteInput, _ as ListBlockInput, aD as PhotoGridInput, w as DefinitionCardInput, n as ComparisonBarInput, aG as PullQuoteInput, bp as VideoWithCaptionInput, bo as VideoPullQuoteInput, t as DataTableInput, x as DiagramBlockInput, bg as TreeBlockInput, ba as TimelineBlockInput, B as Block, I as DrawingBlockInput, a3 as MarkerStyle, A as AccentImage, S as ImageTreatment, a as AccentPosition, c as Animation, d as AnimationType, b3 as ThemeColorScheme, F as Doc, b5 as ThemeRegistry, ar as PageEmphasis, b4 as ThemePageStyle, H as DocDiagnostic, E as DiagramTemplateNode, z as DiagramTemplateEdge, bd as TimelineTemplateTrack, bc as TimelineTemplateLink } from '../Doc-COe-rPQB.js';
2
+ export { J as FRONTMATTER_CUSTOM_TEMPLATES_KEY, K as FRONTMATTER_CUSTOM_THEMES_KEY, X as LayoutHints, aJ as RenderStyle, b2 as ThemeColorPalette, b8 as ThemeStyle, b9 as ThemeTypography, bm as VIEWPORT_PRESETS, bs as ViewportPreset, bx as createTemplateContext, bE as getLayoutHints, bH as getTwoColumnPositions, bI as getViewport, bJ as getViewportOrientation, bL as isTemplateBlock, bO as scaledFontSize } from '../Doc-COe-rPQB.js';
3
+ import { K as MarkdownNode, a2 as TransitionType, a1 as TransitionDirection, M as MarkdownBlockNode, r as MarkdownHeading, n as MarkdownDocument, S as MarkdownTable, i as MarkdownCodeBlock, F as MarkdownList } from '../types-CUNc9biN.js';
4
+ import { C as CoercedBlockMeta } from '../annotationCoercion-PtRQhk5V.js';
5
+ import { c as PageSection } from '../materializePageSection-BSMOocve.js';
6
+ export { M as MaterializePageSectionOptions, a as MaterializePageSectionsOptions, P as PageMedia, b as PageRichText, d as PageSectionDiagnostic, e as PageSectionItem, f as PageSectionMaterialization, g as PageSectionSource, h as PageSpatialKind, i as PageTransformHints, m as materializePageSection, j as materializePageSections, r as resolvePageStyle } from '../materializePageSection-BSMOocve.js';
7
+ import { C as ContentContainer } from '../ContentContainer-B2w9sUoL.js';
8
+ export { D as DEFAULT_THEME, g as getAvailableThemes, b as getThemeSummaries, r as resolveTheme } from '../themeLibrary-BUTWjufL.js';
9
9
 
10
10
  /** Runtime registry composition for built-in and document-scoped templates. */
11
11
 
@@ -107,6 +107,259 @@ interface TemplateMetadata {
107
107
  }
108
108
  declare const TEMPLATE_METADATA: Record<string, TemplateMetadata>;
109
109
 
110
+ /**
111
+ * Exhaustive media-layout policy for every built-in block template.
112
+ *
113
+ * A template has two independent concerns:
114
+ * 1. what it renders when no external image/video/diagram is present, and
115
+ * 2. what happens when rich body media was not already consumed by it.
116
+ *
117
+ * Keeping that declaration here prevents misleading template names (for
118
+ * example, `fullBleedQuote` is text-only) from becoming layout behavior.
119
+ * `mediaLayoutPolicy.test.ts` keeps this map exactly 1:1 with the registry.
120
+ */
121
+
122
+ type BuiltInTemplateName = TemplateBlock['template'];
123
+ /** Shape of the supplemental media set after extraction. */
124
+ type SupplementalMediaShape = 'wide' | 'tall' | 'square' | 'multiple';
125
+ /** Designed compositions understood by the framework-free layout resolver. */
126
+ type SupplementalMediaLayoutVariant = 'title-stack' | 'split' | 'text-stack' | 'dense-stack';
127
+ type SupplementalMediaVariantMatrix = Record<ViewportOrientation, Record<SupplementalMediaShape, SupplementalMediaLayoutVariant>>;
128
+ /** What the template does before supplemental rich media is considered. */
129
+ type NoMediaLayout = 'template-default' | 'template-without-optional-media' | 'unsupported' | 'intrinsic-visual';
130
+ /** Which part of the system owns the template's primary media geometry. */
131
+ type TemplateMediaOwnership = 'supplemental' | 'optional-native' | 'required-native' | 'intrinsic-visual';
132
+ /** Geometry already implemented by templates that own their primary media. */
133
+ type NativeMediaLayout = 'full-bleed-image' | 'full-bleed-video' | 'background-image' | 'accent-strip-or-inset' | 'feature-left' | 'feature-right' | 'map-canvas' | 'photo-grid' | 'spatial-canvas' | 'freeform-canvas';
134
+ /** How unconsumed body media behaves after the template renders. */
135
+ type UnconsumedMediaBehavior = 'reserved-slot' | 'reserve-when-no-native-media' | 'retain-native-layout';
136
+ interface BlockMediaLayoutPolicy {
137
+ /** Concise human-readable contract for reviewers and future template work. */
138
+ summary: string;
139
+ /** The composition used when the block has no external rich media. */
140
+ noMedia: NoMediaLayout;
141
+ /** Whether primary media is placed by this resolver or by the template. */
142
+ ownership: TemplateMediaOwnership;
143
+ /** Existing template-owned media geometry, when applicable. */
144
+ nativeLayout?: NativeMediaLayout;
145
+ /** Explicit geometry for extra media when the native composition must remain intact. */
146
+ additionalMediaLayout?: 'overlay-inset';
147
+ /** Placement policy for rich body media left over after template execution. */
148
+ unconsumedMedia: UnconsumedMediaBehavior;
149
+ /** Required whenever unconsumed media may receive a reserved rectangle. */
150
+ variants?: SupplementalMediaVariantMatrix;
151
+ }
152
+ /**
153
+ * Canonical media contract for all 25 built-in templates. Entries are kept
154
+ * in registry/gallery order to make policy reviews easy to scan.
155
+ */
156
+ declare const BLOCK_MEDIA_LAYOUT_POLICIES: {
157
+ readonly title: {
158
+ readonly summary: "Text-only by default; supplemental media gets a title band plus a reserved field.";
159
+ readonly noMedia: "template-default";
160
+ readonly ownership: "supplemental";
161
+ readonly unconsumedMedia: "reserved-slot";
162
+ readonly variants: SupplementalMediaVariantMatrix;
163
+ };
164
+ readonly sectionHeader: {
165
+ readonly summary: "Uses its authored background image when present; otherwise supplemental media receives a title composition.";
166
+ readonly noMedia: "template-without-optional-media";
167
+ readonly ownership: "optional-native";
168
+ readonly nativeLayout: "background-image";
169
+ readonly additionalMediaLayout: "overlay-inset";
170
+ readonly unconsumedMedia: "reserve-when-no-native-media";
171
+ readonly variants: SupplementalMediaVariantMatrix;
172
+ };
173
+ readonly statHighlight: {
174
+ readonly summary: "Uses its optional accent image natively; otherwise supplemental media occupies a companion field.";
175
+ readonly noMedia: "template-without-optional-media";
176
+ readonly ownership: "optional-native";
177
+ readonly nativeLayout: "accent-strip-or-inset";
178
+ readonly additionalMediaLayout: "overlay-inset";
179
+ readonly unconsumedMedia: "reserve-when-no-native-media";
180
+ readonly variants: SupplementalMediaVariantMatrix;
181
+ };
182
+ readonly quote: {
183
+ readonly summary: "Uses its optional accent image natively; otherwise supplemental media is paired with the quote.";
184
+ readonly noMedia: "template-without-optional-media";
185
+ readonly ownership: "optional-native";
186
+ readonly nativeLayout: "accent-strip-or-inset";
187
+ readonly additionalMediaLayout: "overlay-inset";
188
+ readonly unconsumedMedia: "reserve-when-no-native-media";
189
+ readonly variants: SupplementalMediaVariantMatrix;
190
+ };
191
+ readonly factCard: {
192
+ readonly summary: "Uses its optional accent image natively; otherwise supplemental media is paired with the fact card.";
193
+ readonly noMedia: "template-without-optional-media";
194
+ readonly ownership: "optional-native";
195
+ readonly nativeLayout: "accent-strip-or-inset";
196
+ readonly additionalMediaLayout: "overlay-inset";
197
+ readonly unconsumedMedia: "reserve-when-no-native-media";
198
+ readonly variants: SupplementalMediaVariantMatrix;
199
+ };
200
+ readonly twoColumn: {
201
+ readonly summary: "Text comparison by default; supplemental media stacks below the dense two-column panel.";
202
+ readonly noMedia: "template-default";
203
+ readonly ownership: "supplemental";
204
+ readonly unconsumedMedia: "reserved-slot";
205
+ readonly variants: SupplementalMediaVariantMatrix;
206
+ };
207
+ readonly dateEvent: {
208
+ readonly summary: "Uses its optional accent image natively; otherwise supplemental media is paired with the event.";
209
+ readonly noMedia: "template-without-optional-media";
210
+ readonly ownership: "optional-native";
211
+ readonly nativeLayout: "accent-strip-or-inset";
212
+ readonly additionalMediaLayout: "overlay-inset";
213
+ readonly unconsumedMedia: "reserve-when-no-native-media";
214
+ readonly variants: SupplementalMediaVariantMatrix;
215
+ };
216
+ readonly imageWithCaption: {
217
+ readonly summary: "Requires one primary image and owns its full-bleed image/caption geometry.";
218
+ readonly noMedia: "unsupported";
219
+ readonly ownership: "required-native";
220
+ readonly nativeLayout: "full-bleed-image";
221
+ readonly additionalMediaLayout: "overlay-inset";
222
+ readonly unconsumedMedia: "retain-native-layout";
223
+ };
224
+ readonly leftFeature: {
225
+ readonly summary: "Requires a primary image in the left feature cell; text occupies the right cell.";
226
+ readonly noMedia: "unsupported";
227
+ readonly ownership: "required-native";
228
+ readonly nativeLayout: "feature-left";
229
+ readonly additionalMediaLayout: "overlay-inset";
230
+ readonly unconsumedMedia: "retain-native-layout";
231
+ };
232
+ readonly rightFeature: {
233
+ readonly summary: "Requires a primary image in the right feature cell; text occupies the left cell.";
234
+ readonly noMedia: "unsupported";
235
+ readonly ownership: "required-native";
236
+ readonly nativeLayout: "feature-right";
237
+ readonly additionalMediaLayout: "overlay-inset";
238
+ readonly unconsumedMedia: "retain-native-layout";
239
+ };
240
+ readonly map: {
241
+ readonly summary: "The map canvas is the primary visual; other media must not reflow its geography.";
242
+ readonly noMedia: "intrinsic-visual";
243
+ readonly ownership: "intrinsic-visual";
244
+ readonly nativeLayout: "map-canvas";
245
+ readonly additionalMediaLayout: "overlay-inset";
246
+ readonly unconsumedMedia: "retain-native-layout";
247
+ };
248
+ readonly fullBleedQuote: {
249
+ readonly summary: "Despite its name this is text-only; supplemental media receives the same dramatic title treatment.";
250
+ readonly noMedia: "template-default";
251
+ readonly ownership: "supplemental";
252
+ readonly unconsumedMedia: "reserved-slot";
253
+ readonly variants: SupplementalMediaVariantMatrix;
254
+ };
255
+ readonly list: {
256
+ readonly summary: "Uses its optional accent image natively; otherwise supplemental media is paired with the list.";
257
+ readonly noMedia: "template-without-optional-media";
258
+ readonly ownership: "optional-native";
259
+ readonly nativeLayout: "accent-strip-or-inset";
260
+ readonly additionalMediaLayout: "overlay-inset";
261
+ readonly unconsumedMedia: "reserve-when-no-native-media";
262
+ readonly variants: SupplementalMediaVariantMatrix;
263
+ };
264
+ readonly photoGrid: {
265
+ readonly summary: "Requires a primary image collection and owns the complete tiled media field.";
266
+ readonly noMedia: "unsupported";
267
+ readonly ownership: "required-native";
268
+ readonly nativeLayout: "photo-grid";
269
+ readonly additionalMediaLayout: "overlay-inset";
270
+ readonly unconsumedMedia: "retain-native-layout";
271
+ };
272
+ readonly definitionCard: {
273
+ readonly summary: "Uses its optional accent image natively; otherwise supplemental media is paired with the definition.";
274
+ readonly noMedia: "template-without-optional-media";
275
+ readonly ownership: "optional-native";
276
+ readonly nativeLayout: "accent-strip-or-inset";
277
+ readonly additionalMediaLayout: "overlay-inset";
278
+ readonly unconsumedMedia: "reserve-when-no-native-media";
279
+ readonly variants: SupplementalMediaVariantMatrix;
280
+ };
281
+ readonly comparisonBar: {
282
+ readonly summary: "Data bars are primary; supplemental media stacks below to preserve horizontal scale.";
283
+ readonly noMedia: "template-default";
284
+ readonly ownership: "supplemental";
285
+ readonly unconsumedMedia: "reserved-slot";
286
+ readonly variants: SupplementalMediaVariantMatrix;
287
+ };
288
+ readonly pullQuote: {
289
+ readonly summary: "Requires and owns a full-bleed background image behind the quote lockup.";
290
+ readonly noMedia: "unsupported";
291
+ readonly ownership: "required-native";
292
+ readonly nativeLayout: "full-bleed-image";
293
+ readonly additionalMediaLayout: "overlay-inset";
294
+ readonly unconsumedMedia: "retain-native-layout";
295
+ };
296
+ readonly videoWithCaption: {
297
+ readonly summary: "Requires one primary video and owns its full-bleed video/caption geometry.";
298
+ readonly noMedia: "unsupported";
299
+ readonly ownership: "required-native";
300
+ readonly nativeLayout: "full-bleed-video";
301
+ readonly additionalMediaLayout: "overlay-inset";
302
+ readonly unconsumedMedia: "retain-native-layout";
303
+ };
304
+ readonly videoPullQuote: {
305
+ readonly summary: "Requires and owns a full-bleed video behind the quote lockup.";
306
+ readonly noMedia: "unsupported";
307
+ readonly ownership: "required-native";
308
+ readonly nativeLayout: "full-bleed-video";
309
+ readonly additionalMediaLayout: "overlay-inset";
310
+ readonly unconsumedMedia: "retain-native-layout";
311
+ };
312
+ readonly dataTable: {
313
+ readonly summary: "The table remains wide; supplemental media stacks below the dense data region.";
314
+ readonly noMedia: "template-default";
315
+ readonly ownership: "supplemental";
316
+ readonly unconsumedMedia: "reserved-slot";
317
+ readonly variants: SupplementalMediaVariantMatrix;
318
+ };
319
+ readonly diagram: {
320
+ readonly summary: "The node-and-edge canvas is intrinsic media and retains its spatial coordinate system.";
321
+ readonly noMedia: "intrinsic-visual";
322
+ readonly ownership: "intrinsic-visual";
323
+ readonly nativeLayout: "spatial-canvas";
324
+ readonly additionalMediaLayout: "overlay-inset";
325
+ readonly unconsumedMedia: "retain-native-layout";
326
+ };
327
+ readonly tree: {
328
+ readonly summary: "The interactive tree canvas is intrinsic media and retains its full layout region.";
329
+ readonly noMedia: "intrinsic-visual";
330
+ readonly ownership: "intrinsic-visual";
331
+ readonly nativeLayout: "spatial-canvas";
332
+ readonly additionalMediaLayout: "overlay-inset";
333
+ readonly unconsumedMedia: "retain-native-layout";
334
+ };
335
+ readonly timeline: {
336
+ readonly summary: "The track canvas is intrinsic media and retains its shared horizontal time scale.";
337
+ readonly noMedia: "intrinsic-visual";
338
+ readonly ownership: "intrinsic-visual";
339
+ readonly nativeLayout: "spatial-canvas";
340
+ readonly additionalMediaLayout: "overlay-inset";
341
+ readonly unconsumedMedia: "retain-native-layout";
342
+ };
343
+ readonly layout: {
344
+ readonly summary: "The authored layer canvas is intrinsic media and must preserve absolute placement.";
345
+ readonly noMedia: "intrinsic-visual";
346
+ readonly ownership: "intrinsic-visual";
347
+ readonly nativeLayout: "freeform-canvas";
348
+ readonly additionalMediaLayout: "overlay-inset";
349
+ readonly unconsumedMedia: "retain-native-layout";
350
+ };
351
+ readonly drawing: {
352
+ readonly summary: "The drawing canvas is intrinsic media and must preserve authored geometry.";
353
+ readonly noMedia: "intrinsic-visual";
354
+ readonly ownership: "intrinsic-visual";
355
+ readonly nativeLayout: "freeform-canvas";
356
+ readonly additionalMediaLayout: "overlay-inset";
357
+ readonly unconsumedMedia: "retain-native-layout";
358
+ };
359
+ };
360
+ /** Safe runtime lookup for built-ins; custom template ids return undefined. */
361
+ declare function getBlockMediaLayoutPolicy(template: string | undefined): BlockMediaLayoutPolicy | undefined;
362
+
110
363
  /** Resolve a historical template id to its canonical registry key. */
111
364
  declare function resolveTemplateName(name: string): string;
112
365
  /** Templates that consume their child headings rather than rendering them. */
@@ -1203,6 +1456,12 @@ interface FirstImage {
1203
1456
  width?: number;
1204
1457
  height?: number;
1205
1458
  }
1459
+ /** First-class video reference discovered in a block body. */
1460
+ interface EmbeddedVideo {
1461
+ src: string;
1462
+ posterSrc?: string;
1463
+ alt: string;
1464
+ }
1206
1465
  /** Plain text of a block's body contents (excluding the heading). */
1207
1466
  declare function extractBodyPlainText(contents?: MarkdownBlockNode[]): string;
1208
1467
  /** Extract list items as plain text. */
@@ -1219,6 +1478,17 @@ declare function extractListItems(contents?: MarkdownBlockNode[]): string[];
1219
1478
  declare function extractImages(contents: MarkdownBlockNode[] | undefined, limit?: number): FirstImage[];
1220
1479
  /** First image in a block's body, or null. */
1221
1480
  declare function extractFirstImage(contents: MarkdownBlockNode[] | undefined): FirstImage | null;
1481
+ /**
1482
+ * Find playable video references in block contents.
1483
+ *
1484
+ * Recorder output is raw HTML (`<video src="...">`), sometimes with a
1485
+ * nested `<source>`. Direct markdown links/images to video files are also
1486
+ * accepted. Hosted watch-page/iframe URLs are deliberately excluded: an
1487
+ * HTML5 VideoLayer cannot play those URLs directly.
1488
+ */
1489
+ declare function extractEmbeddedVideos(contents: MarkdownBlockNode[] | undefined, limit?: number): EmbeddedVideo[];
1490
+ /** First directly playable video in a block body, or null. */
1491
+ declare function extractFirstEmbeddedVideo(contents: MarkdownBlockNode[] | undefined): EmbeddedVideo | null;
1222
1492
  /** Extract table data (headers, rows, alignment) from block contents. */
1223
1493
  declare function extractTableFromContents(contents?: MarkdownBlockNode[]): {
1224
1494
  headers: string[];
@@ -1233,7 +1503,20 @@ interface DeriveTemplateInputsOptions {
1233
1503
  * input can't be derived (preview surfaces). Default false (strict).
1234
1504
  */
1235
1505
  placeholders?: boolean;
1506
+ /**
1507
+ * Keep the source heading visible when a template normally promotes only
1508
+ * body content. Used by automatic templates; explicit annotations retain
1509
+ * their historical input derivation.
1510
+ */
1511
+ preserveSourceHeading?: boolean;
1236
1512
  }
1513
+ /**
1514
+ * Whether an automatically selected template can represent every authored
1515
+ * node in the block. Auto-selection must be conservative: the source remains
1516
+ * round-trippable either way, but a successful render may not hide sibling
1517
+ * content that the chosen template has no slot for.
1518
+ */
1519
+ declare function autoTemplatePreservesContent(templateName: string, contents: MarkdownBlockNode[] | undefined): boolean;
1237
1520
  /**
1238
1521
  * Derive a template's inputs from a block's heading text and body nodes.
1239
1522
  * Returns the input fields to merge onto the block, or `null` in strict
@@ -1370,6 +1653,19 @@ declare function getBlockBodyText(block: Block): string;
1370
1653
  * ```
1371
1654
  */
1372
1655
 
1656
+ interface DocToMarkdownOptions {
1657
+ /**
1658
+ * The template `markdownToDoc` assigned to un-annotated headings when this
1659
+ * doc was parsed — i.e. the `MarkdownToDocOptions.defaultTemplate` used.
1660
+ * Defaults to `'sectionHeader'`, matching that option's own default.
1661
+ *
1662
+ * Blocks carrying exactly this template are treated as IMPLICIT: no
1663
+ * `{[…]}` annotation is emitted for them, because none was authored.
1664
+ * Passing a value that disagrees with how the doc was parsed makes the
1665
+ * round-trip inject annotations onto headings that never had any.
1666
+ */
1667
+ defaultTemplate?: string;
1668
+ }
1373
1669
  /**
1374
1670
  * Convert a Doc with heading-driven blocks back to a MarkdownDocument.
1375
1671
  *
@@ -1377,14 +1673,16 @@ declare function getBlockBodyText(block: Block): string;
1377
1673
  * in document order. Blocks without a `sourceHeading` (preamble blocks)
1378
1674
  * emit only their contents.
1379
1675
  *
1380
- * If a block has a `template` or `templateOverrides` that aren't already
1381
- * reflected in the heading's `templateAnnotation`, the annotation is
1382
- * injected so the round-trip preserves template assignments.
1676
+ * A block's `template` / `templateOverrides` are RECONCILED with its
1677
+ * heading's `templateAnnotation`, so programmatic edits to either round-trip.
1678
+ * Annotations that already agree are reused verbatim (including legacy
1679
+ * template spellings), keeping untouched documents byte-identical.
1383
1680
  *
1384
1681
  * @param doc - A Doc whose blocks may have `sourceHeading`, `contents`, and `children`
1682
+ * @param options - Round-trip options; see {@link DocToMarkdownOptions.defaultTemplate}
1385
1683
  * @returns A MarkdownDocument that can be stringified back to markdown
1386
1684
  */
1387
- declare function docToMarkdown(doc: Doc): MarkdownDocument;
1685
+ declare function docToMarkdown(doc: Doc, options?: DocToMarkdownOptions): MarkdownDocument;
1388
1686
 
1389
1687
  /**
1390
1688
  * Frontmatter serialization for user-defined custom templates (layouts).
@@ -2470,4 +2768,4 @@ declare function treeFromMarkdownList(list: MarkdownList): Tree;
2470
2768
  /** Find the first top-level markdown list in a block's body, if any. */
2471
2769
  declare function findFirstList(contents: MarkdownBlockNode[] | undefined): MarkdownList | undefined;
2472
2770
 
2473
- export { ASCII_CHAR_H, ASCII_CHAR_W, ASCII_DIAGRAM_FENCE_LANGS, ASCII_TIMELINE_FENCE_LANGS, type AccentLayout, type AsciiDiagram, type AsciiDiagramDetection, type AsciiDiagramEdge, type AsciiDiagramNode, type AsciiTimeline, type AsciiTimelineDetection, type AsciiTimelineEvent, type AsciiTimelineLink, type AsciiTimelineMarker, type AsciiTimelineSide, type AsciiTimelineStats, type AsciiTimelineStyle, type AsciiTimelineTrack, type AudioSegmentTiming, BASE_INPUT_DESCRIPTORS, type BlockLayerMaterialization, CONTAINER_TEMPLATES, type ClipBox, type ConnectorAnchor, type ConnectorPort, type ConnectorRouting, type ConnectorSnapPoint, type CoverBlockInput, DEFAULT_LAYOUT, DIAGRAM_LABEL_HORIZONTAL_PADDING, DIAGRAM_LABEL_LINE_HEIGHT, DIAGRAM_LABEL_MIN_FONT_SIZE, DIAGRAM_LABEL_VERTICAL_PADDING, type DataFenceParseResult, type DeriveTemplateInputsOptions, type DetectAsciiTimelineOptions, type DiagramEdge, type DiagramLabelFit, type DiagramLayout, type DiagramLayoutOptions, type DiagramNodePosition, DocBlock, type DrawingConnector, type DrawingLayout, type DrawingLayoutOptions, type DrawingShape, type DrawingShapeKind, type ExpandDocBlocksOptions, type ExtractedTableData, type FirstImage, type InputCoercion, type LayerMaterializationDiagnostic, type LayerMaterializationFailureMode, type LayerMaterializationSource, type LayoutLayerDefaults, type LayoutLayersResult, type MarkdownToDocOptions, type MarkdownValidationResult, type MaterializeBlockLayersOptions, type NarrationResolution, PAGE_BASE_CSS, PATH_SHAPE_KINDS, PageSection, type PageSectionContext, type PageSectionDraft, PersistentLayerConfig, type RenderAsciiDiagramOptions, type RenderAsciiTimelineOptions, type RenderTreeOptions, type RepairResult, type ResolvedPageBlock, type RuntimeTemplateRegistry, SHAPE_NAMES, type SectionExtractor, TEMPLATE_INPUT_DESCRIPTORS, TEMPLATE_METADATA, TREE_FENCE_LANGS, TemplateBlock, TemplateContext, type TemplateInputDescriptor, type TemplateMetadata, type TemplateParamFinding, Theme, ThemeColorScheme, type Tree, type TreeDetection, type TreeItem, type TreeNode, type ValidateOptions, ViewportConfig, adjustY, anchorPoint, applyNarrationTiming, applyRenderStyleToLayers, asciiCellToCanvas, asciiDiagramFromBlocks, asciiDiagramFromTemplateData, asciiDiagramToTemplateData, asciiTimelineToTemplateData, buildPageCss, buildPageCssVars, buildRegistry, canvasToAsciiCell, clipEndpoints, clipPoint, coerceTemplateParams, comparisonBar, computeDiagramLayout, computeDrawingLayout, computeLayoutLayers, connectorPath, countBlocks, coverBlock, createAccentLayers, cssFilterForTreatment, dataTable, dateEvent, definitionCard, deriveTemplateInputs, detectAsciiDiagram, detectAsciiTimeline, detectTree, diagramBlock, docToMarkdown, drawingBlock, expandCoverBlock, expandDocBlocks, expandPersistentLayers, extractBlockquoteText, extractBodyPlainText, extractFirstImage, extractImages, extractListItems, extractTableData, extractTableFromContents, factCard, fallbackBlockLayers, findFirstList, findFirstTable, fitDiagramLabel, flattenBlocks, flattenRenderableBlocks, fullBleedQuote, getAccentLayout, getAnimationProgress, getAnimationStyle, getAvailableTemplates, getBlockBodyText, getBlockDepth, getDefaultAnimation, getDefaultAnimationDuration, getOverlayOpacity, getPersistentLayersFromTheme, getPinnedBlockMeta, getTemplateHint, getThemeFont, getTransitionClass, hasTemplate, imageWithCaption, isAsciiDiagramFence, isAsciiTimelineFence, isContainerTemplate, isDataFence, isEligibleAsciiFenceLang, isEligibleAsciiTimelineFenceLang, isEligibleTreeFenceLang, isExplicitDiagramLang, isExplicitTimelineLang, isExplicitTreeLang, isRepairableDiagram, isShapeName, isTemplatedPageBlock, isTreeFence, isWrappedFlowTimelineSource, layoutBlock, leftFeature, lineStyleDasharray, lintTemplateParams, listBlock, mapBlock, markdownToDoc, markerPath, materializeBlockLayers, nearestSnapPoint, normalizeShapeKind, pageStyleDataAttributes, parseAsciiDiagram, parseAsciiTimeline, parseAsciiTimelineWithStats, parseDataFence, parseTree, parseWrappedFlowTimeline, parseYamlSubset, photoGrid, pullQuote, quoteBlock, readCustomTemplatesFromFrontmatter, readCustomThemesFromFrontmatter, renderAsciiDiagram, renderAsciiTimeline, renderTree, repairAsciiDiagram, replaceDataFence, resolveAudioMapping, resolveColorScheme, resolvePageBlock, resolvePersistentLayers, resolveTemplateName, resolveThemeForDoc, rightFeature, scaleAnimationDuration, scoreTextSimilarity, sectionExtractors, sectionHeader, shapePath, shouldUseShadow, snapEndpoints, snapPoints, statHighlight, templateRegistry, themeWantsAmbientMotion, themedEntrance, themedFontSize, themedImageTreatment, themedScrim, themedSurfaceGradient, timelineBlock, titleBlock, treeBlock, treeFromMarkdownList, treeFromTemplateData, treeToTemplateData, twoColumn, validateMarkdownDoc, validateMarkdownSource, videoPullQuote, videoWithCaption, wrapWithPersistentLayers, writeCustomTemplatesToFrontmatter, writeCustomThemesToFrontmatter };
2771
+ export { ASCII_CHAR_H, ASCII_CHAR_W, ASCII_DIAGRAM_FENCE_LANGS, ASCII_TIMELINE_FENCE_LANGS, type AccentLayout, type AsciiDiagram, type AsciiDiagramDetection, type AsciiDiagramEdge, type AsciiDiagramNode, type AsciiTimeline, type AsciiTimelineDetection, type AsciiTimelineEvent, type AsciiTimelineLink, type AsciiTimelineMarker, type AsciiTimelineSide, type AsciiTimelineStats, type AsciiTimelineStyle, type AsciiTimelineTrack, type AudioSegmentTiming, BASE_INPUT_DESCRIPTORS, BLOCK_MEDIA_LAYOUT_POLICIES, type BlockLayerMaterialization, type BlockMediaLayoutPolicy, type BuiltInTemplateName, CONTAINER_TEMPLATES, type ClipBox, type ConnectorAnchor, type ConnectorPort, type ConnectorRouting, type ConnectorSnapPoint, type CoverBlockInput, DEFAULT_LAYOUT, DIAGRAM_LABEL_HORIZONTAL_PADDING, DIAGRAM_LABEL_LINE_HEIGHT, DIAGRAM_LABEL_MIN_FONT_SIZE, DIAGRAM_LABEL_VERTICAL_PADDING, type DataFenceParseResult, type DeriveTemplateInputsOptions, type DetectAsciiTimelineOptions, type DiagramEdge, type DiagramLabelFit, type DiagramLayout, type DiagramLayoutOptions, type DiagramNodePosition, DocBlock, type DrawingConnector, type DrawingLayout, type DrawingLayoutOptions, type DrawingShape, type DrawingShapeKind, type EmbeddedVideo, type ExpandDocBlocksOptions, type ExtractedTableData, type FirstImage, type InputCoercion, type LayerMaterializationDiagnostic, type LayerMaterializationFailureMode, type LayerMaterializationSource, type LayoutLayerDefaults, type LayoutLayersResult, type MarkdownToDocOptions, type MarkdownValidationResult, type MaterializeBlockLayersOptions, type NarrationResolution, type NativeMediaLayout, type NoMediaLayout, PAGE_BASE_CSS, PATH_SHAPE_KINDS, PageSection, type PageSectionContext, type PageSectionDraft, PersistentLayerConfig, type RenderAsciiDiagramOptions, type RenderAsciiTimelineOptions, type RenderTreeOptions, type RepairResult, type ResolvedPageBlock, type RuntimeTemplateRegistry, SHAPE_NAMES, type SectionExtractor, type SupplementalMediaLayoutVariant, type SupplementalMediaShape, type SupplementalMediaVariantMatrix, TEMPLATE_INPUT_DESCRIPTORS, TEMPLATE_METADATA, TREE_FENCE_LANGS, TemplateBlock, TemplateContext, type TemplateInputDescriptor, type TemplateMediaOwnership, type TemplateMetadata, type TemplateParamFinding, Theme, ThemeColorScheme, type Tree, type TreeDetection, type TreeItem, type TreeNode, type UnconsumedMediaBehavior, type ValidateOptions, ViewportConfig, ViewportOrientation, adjustY, anchorPoint, applyNarrationTiming, applyRenderStyleToLayers, asciiCellToCanvas, asciiDiagramFromBlocks, asciiDiagramFromTemplateData, asciiDiagramToTemplateData, asciiTimelineToTemplateData, autoTemplatePreservesContent, buildPageCss, buildPageCssVars, buildRegistry, canvasToAsciiCell, clipEndpoints, clipPoint, coerceTemplateParams, comparisonBar, computeDiagramLayout, computeDrawingLayout, computeLayoutLayers, connectorPath, countBlocks, coverBlock, createAccentLayers, cssFilterForTreatment, dataTable, dateEvent, definitionCard, deriveTemplateInputs, detectAsciiDiagram, detectAsciiTimeline, detectTree, diagramBlock, docToMarkdown, drawingBlock, expandCoverBlock, expandDocBlocks, expandPersistentLayers, extractBlockquoteText, extractBodyPlainText, extractEmbeddedVideos, extractFirstEmbeddedVideo, extractFirstImage, extractImages, extractListItems, extractTableData, extractTableFromContents, factCard, fallbackBlockLayers, findFirstList, findFirstTable, fitDiagramLabel, flattenBlocks, flattenRenderableBlocks, fullBleedQuote, getAccentLayout, getAnimationProgress, getAnimationStyle, getAvailableTemplates, getBlockBodyText, getBlockDepth, getBlockMediaLayoutPolicy, getDefaultAnimation, getDefaultAnimationDuration, getOverlayOpacity, getPersistentLayersFromTheme, getPinnedBlockMeta, getTemplateHint, getThemeFont, getTransitionClass, hasTemplate, imageWithCaption, isAsciiDiagramFence, isAsciiTimelineFence, isContainerTemplate, isDataFence, isEligibleAsciiFenceLang, isEligibleAsciiTimelineFenceLang, isEligibleTreeFenceLang, isExplicitDiagramLang, isExplicitTimelineLang, isExplicitTreeLang, isRepairableDiagram, isShapeName, isTemplatedPageBlock, isTreeFence, isWrappedFlowTimelineSource, layoutBlock, leftFeature, lineStyleDasharray, lintTemplateParams, listBlock, mapBlock, markdownToDoc, markerPath, materializeBlockLayers, nearestSnapPoint, normalizeShapeKind, pageStyleDataAttributes, parseAsciiDiagram, parseAsciiTimeline, parseAsciiTimelineWithStats, parseDataFence, parseTree, parseWrappedFlowTimeline, parseYamlSubset, photoGrid, pullQuote, quoteBlock, readCustomTemplatesFromFrontmatter, readCustomThemesFromFrontmatter, renderAsciiDiagram, renderAsciiTimeline, renderTree, repairAsciiDiagram, replaceDataFence, resolveAudioMapping, resolveColorScheme, resolvePageBlock, resolvePersistentLayers, resolveTemplateName, resolveThemeForDoc, rightFeature, scaleAnimationDuration, scoreTextSimilarity, sectionExtractors, sectionHeader, shapePath, shouldUseShadow, snapEndpoints, snapPoints, statHighlight, templateRegistry, themeWantsAmbientMotion, themedEntrance, themedFontSize, themedImageTreatment, themedScrim, themedSurfaceGradient, timelineBlock, titleBlock, treeBlock, treeFromMarkdownList, treeFromTemplateData, treeToTemplateData, twoColumn, validateMarkdownDoc, validateMarkdownSource, videoPullQuote, videoWithCaption, wrapWithPersistentLayers, writeCustomTemplatesToFrontmatter, writeCustomThemesToFrontmatter };
package/dist/doc/index.js CHANGED
@@ -26,11 +26,12 @@ import {
26
26
  sectionExtractors,
27
27
  validateMarkdownDoc,
28
28
  validateMarkdownSource
29
- } from "../chunk-OTKVFVL6.js";
29
+ } from "../chunk-QNTQIEIV.js";
30
30
  import {
31
31
  ASCII_CHAR_H,
32
32
  ASCII_CHAR_W,
33
33
  BASE_INPUT_DESCRIPTORS,
34
+ BLOCK_MEDIA_LAYOUT_POLICIES,
34
35
  CONTAINER_TEMPLATES,
35
36
  DEFAULT_LAYOUT,
36
37
  DIAGRAM_LABEL_HORIZONTAL_PADDING,
@@ -47,6 +48,7 @@ import {
47
48
  asciiDiagramFromTemplateData,
48
49
  asciiDiagramToTemplateData,
49
50
  asciiTimelineToTemplateData,
51
+ autoTemplatePreservesContent,
50
52
  buildRegistry,
51
53
  canvasToAsciiCell,
52
54
  coerceTemplateParams,
@@ -68,6 +70,8 @@ import {
68
70
  expandPersistentLayers,
69
71
  extractBlockquoteText,
70
72
  extractBodyPlainText,
73
+ extractEmbeddedVideos,
74
+ extractFirstEmbeddedVideo,
71
75
  extractFirstImage,
72
76
  extractImages,
73
77
  extractListItems,
@@ -85,6 +89,7 @@ import {
85
89
  getAvailableTemplates,
86
90
  getBlockBodyText,
87
91
  getBlockDepth,
92
+ getBlockMediaLayoutPolicy,
88
93
  getDefaultAnimation,
89
94
  getOverlayOpacity,
90
95
  getPersistentLayersFromTheme,
@@ -139,7 +144,7 @@ import {
139
144
  wrapWithPersistentLayers,
140
145
  writeCustomTemplatesToFrontmatter,
141
146
  writeCustomThemesToFrontmatter
142
- } from "../chunk-JI77MGAK.js";
147
+ } from "../chunk-GIIOY6XR.js";
143
148
  import {
144
149
  PATH_SHAPE_KINDS,
145
150
  anchorPoint,
@@ -152,7 +157,7 @@ import {
152
157
  shapePath,
153
158
  snapEndpoints,
154
159
  snapPoints
155
- } from "../chunk-TUWMK62B.js";
160
+ } from "../chunk-PUS54YU6.js";
156
161
  import {
157
162
  ASCII_DIAGRAM_FENCE_LANGS,
158
163
  ASCII_TIMELINE_FENCE_LANGS,
@@ -175,8 +180,8 @@ import {
175
180
  parseAsciiTimelineWithStats,
176
181
  parseTree,
177
182
  parseWrappedFlowTimeline
178
- } from "../chunk-5UYI3RJB.js";
179
- import "../chunk-VWCJ2WXC.js";
183
+ } from "../chunk-QWCFK5FN.js";
184
+ import "../chunk-2ZWIXGAC.js";
180
185
  import {
181
186
  DEFAULT_THEME,
182
187
  FRONTMATTER_CUSTOM_TEMPLATES_KEY,
@@ -184,7 +189,7 @@ import {
184
189
  getAvailableThemes,
185
190
  getThemeSummaries,
186
191
  resolveTheme
187
- } from "../chunk-JHZWYRSW.js";
192
+ } from "../chunk-C33GTPUZ.js";
188
193
  import {
189
194
  VIEWPORT_PRESETS,
190
195
  createTemplateContext,
@@ -194,22 +199,22 @@ import {
194
199
  getViewportOrientation,
195
200
  isTemplateBlock,
196
201
  scaledFontSize2 as scaledFontSize
197
- } from "../chunk-5J4HKRJF.js";
198
- import "../chunk-66QO7XFB.js";
199
- import "../chunk-R2YZTCLO.js";
200
- import "../chunk-DBS6RIFL.js";
201
- import "../chunk-AMIR72JP.js";
202
- import "../chunk-QE7TWGVT.js";
203
- import "../chunk-4X3JQXNM.js";
204
- import "../chunk-3E5F2XMR.js";
205
- import "../chunk-V543AI2F.js";
206
- import "../chunk-FVTQSNR7.js";
202
+ } from "../chunk-BAOV476U.js";
203
+ import "../chunk-ACZOVWX3.js";
204
+ import "../chunk-ZQKZSJAX.js";
205
+ import "../chunk-7N4G32LG.js";
206
+ import "../chunk-BCCXTMN5.js";
207
+ import "../chunk-4VOD55SX.js";
208
+ import "../chunk-XOFT65EX.js";
209
+ import "../chunk-67L6WRJN.js";
210
+ import "../chunk-XRW6P7IF.js";
207
211
  export {
208
212
  ASCII_CHAR_H,
209
213
  ASCII_CHAR_W,
210
214
  ASCII_DIAGRAM_FENCE_LANGS,
211
215
  ASCII_TIMELINE_FENCE_LANGS,
212
216
  BASE_INPUT_DESCRIPTORS,
217
+ BLOCK_MEDIA_LAYOUT_POLICIES,
213
218
  CONTAINER_TEMPLATES,
214
219
  DEFAULT_LAYOUT,
215
220
  DEFAULT_THEME,
@@ -235,6 +240,7 @@ export {
235
240
  asciiDiagramFromTemplateData,
236
241
  asciiDiagramToTemplateData,
237
242
  asciiTimelineToTemplateData,
243
+ autoTemplatePreservesContent,
238
244
  buildPageCss,
239
245
  buildPageCssVars,
240
246
  buildRegistry,
@@ -267,6 +273,8 @@ export {
267
273
  expandPersistentLayers,
268
274
  extractBlockquoteText,
269
275
  extractBodyPlainText,
276
+ extractEmbeddedVideos,
277
+ extractFirstEmbeddedVideo,
270
278
  extractFirstImage,
271
279
  extractImages,
272
280
  extractListItems,
@@ -287,6 +295,7 @@ export {
287
295
  getAvailableThemes,
288
296
  getBlockBodyText,
289
297
  getBlockDepth,
298
+ getBlockMediaLayoutPolicy,
290
299
  getDefaultAnimation,
291
300
  getDefaultAnimationDuration,
292
301
  getLayoutHints,
@@ -390,4 +399,3 @@ export {
390
399
  writeCustomTemplatesToFrontmatter,
391
400
  writeCustomThemesToFrontmatter
392
401
  };
393
- //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  import { E as ExtractedElement } from '../contentExtractor-BNfVJV2U.js';
2
2
  export { C as ComparisonData, D as DateData, a as DefinitionData, b as ExtractionOptions, c as ExtractionResult, d as ExtractionType, F as FactData, I as ImpactLineData, L as ListData, Q as QuoteData, S as StatData, e as extractContent, s as stripMarkdown } from '../contentExtractor-BNfVJV2U.js';
3
- import { m as ColorScheme, A as AccentImage, aX as TemplateBlock } from '../Doc-DynJleo-.js';
4
- import '../types-BwMPl2CB.js';
3
+ import { m as ColorScheme, A as AccentImage, aX as TemplateBlock } from '../Doc-COe-rPQB.js';
4
+ import '../types-CUNc9biN.js';
5
5
 
6
6
  /**
7
7
  * Template Mapper
@@ -1,12 +1,10 @@
1
- import "../chunk-ET53IIEP.js";
2
1
  import {
3
2
  extractContent,
4
3
  mapElementToBlock,
5
4
  stripMarkdown
6
- } from "../chunk-Q7LROV2H.js";
5
+ } from "../chunk-NKNMGIIN.js";
7
6
  export {
8
7
  extractContent,
9
8
  mapElementToBlock,
10
9
  stripMarkdown
11
10
  };
12
- //# sourceMappingURL=index.js.map
@@ -1,11 +1,10 @@
1
- import "../chunk-PGGGKYWG.js";
2
1
  import {
3
2
  hasIconMarker,
4
3
  iconClass,
5
4
  iconMarker,
6
5
  splitIconMarkers,
7
6
  stripIconMarkers
8
- } from "../chunk-2UQOHYE2.js";
7
+ } from "../chunk-7ZAAICW4.js";
9
8
  import {
10
9
  ICONS,
11
10
  canonicalIconToken,
@@ -13,7 +12,7 @@ import {
13
12
  looksLikeIconToken,
14
13
  resolveIcon,
15
14
  suggestIcons
16
- } from "../chunk-DBS6RIFL.js";
15
+ } from "../chunk-7N4G32LG.js";
17
16
  export {
18
17
  ICONS,
19
18
  canonicalIconToken,
@@ -27,4 +26,3 @@ export {
27
26
  stripIconMarkers,
28
27
  suggestIcons
29
28
  };
30
- //# sourceMappingURL=index.js.map
@@ -4,7 +4,7 @@ import {
4
4
  iconMarker,
5
5
  splitIconMarkers,
6
6
  stripIconMarkers
7
- } from "../chunk-2UQOHYE2.js";
7
+ } from "../chunk-7ZAAICW4.js";
8
8
  export {
9
9
  hasIconMarker,
10
10
  iconClass,
@@ -12,4 +12,3 @@ export {
12
12
  splitIconMarkers,
13
13
  stripIconMarkers
14
14
  };
15
- //# sourceMappingURL=inlineIconMarker.js.map