@bendyline/squisq 2.0.1 → 2.2.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.
- package/LICENSE +21 -0
- package/NOTICE.md +24 -0
- package/dist/{ContentContainer-BXUlIf18.d.ts → ContentContainer-B2w9sUoL.d.ts} +15 -0
- package/dist/{Doc-ylqWKDc_.d.ts → Doc-BubIpWsp.d.ts} +160 -3
- package/dist/{ImageEditDoc-D828IXJ1.d.ts → ImageEditDoc-CGxk5CHc.d.ts} +1 -1
- package/dist/{annotationCoercion-Dr_DY9Hx.d.ts → annotationCoercion-PtRQhk5V.d.ts} +1 -1
- package/dist/chunk-2L55443L.js +0 -0
- package/dist/chunk-2ZWIXGAC.js +214 -0
- package/dist/{chunk-2PWOO4ZE.js → chunk-32R2RZAO.js} +72 -3
- package/dist/chunk-3IGPAPQ7.js +645 -0
- package/dist/{chunk-QE7TWGVT.js → chunk-4VOD55SX.js} +0 -1
- package/dist/{chunk-3E5F2XMR.js → chunk-67L6WRJN.js} +0 -1
- package/dist/{chunk-5DKBFXPY.js → chunk-6ECMNUIP.js} +26 -18
- package/dist/{chunk-X6DUONGT.js → chunk-7ARJZYQY.js} +280 -128
- package/dist/{chunk-DBS6RIFL.js → chunk-7N4G32LG.js} +0 -1
- package/dist/{chunk-JOQYPRDZ.js → chunk-7YEZFHLS.js} +10 -8
- package/dist/{chunk-2UQOHYE2.js → chunk-7ZAAICW4.js} +0 -1
- package/dist/{chunk-66QO7XFB.js → chunk-ACZOVWX3.js} +117 -7
- package/dist/{chunk-5J4HKRJF.js → chunk-BAOV476U.js} +0 -1
- package/dist/chunk-BCCXTMN5.js +699 -0
- package/dist/{chunk-W4O2TX5I.js → chunk-C33GTPUZ.js} +579 -4
- package/dist/{chunk-MMPBOUK7.js → chunk-CB45YGAM.js} +7 -2
- package/dist/{chunk-CY2R2VPR.js → chunk-DYPMOPIW.js} +18 -2
- package/dist/{chunk-VR7UPJ7C.js → chunk-FCG3BIZN.js} +12 -1
- package/dist/{chunk-5UYI3RJB.js → chunk-FDYDYL77.js} +54 -40
- package/dist/{chunk-TFJVXUHH.js → chunk-I2O6W7DX.js} +1513 -79
- package/dist/{chunk-Q7LROV2H.js → chunk-NKNMGIIN.js} +0 -1
- package/dist/chunk-OPO5K4DZ.js +241 -0
- package/dist/{chunk-TUWMK62B.js → chunk-PUS54YU6.js} +45 -2
- package/dist/chunk-QKPXHDLR.js +0 -0
- package/dist/{chunk-GZY66SDN.js → chunk-R3KTTOMS.js} +0 -1
- package/dist/{chunk-PXLVXTLW.js → chunk-RS5AP3J4.js} +72 -15
- package/dist/chunk-WV5ARNDA.js +0 -0
- package/dist/{chunk-4X3JQXNM.js → chunk-XOFT65EX.js} +1 -2
- package/dist/{chunk-FVTQSNR7.js → chunk-XRW6P7IF.js} +13 -5
- package/dist/chunk-XWNNA3KE.js +0 -0
- package/dist/chunk-YZNGMV3G.js +0 -0
- package/dist/{chunk-R2YZTCLO.js → chunk-ZQKZSJAX.js} +1 -2
- package/dist/doc/index.d.ts +166 -12
- package/dist/doc/index.js +36 -17
- package/dist/generate/index.d.ts +2 -2
- package/dist/generate/index.js +2 -3
- package/dist/icons/index.js +3 -4
- package/dist/icons/inlineIconMarker.js +1 -2
- package/dist/imageEdit/index.d.ts +48 -17
- package/dist/imageEdit/index.js +3 -4
- package/dist/index.d.ts +13 -12
- package/dist/index.js +118 -33
- package/dist/jsonForm/index.d.ts +10 -3
- package/dist/jsonForm/index.js +8 -7
- package/dist/markdown/index.d.ts +75 -11
- package/dist/markdown/index.js +32 -7
- package/dist/materializePageSection-wSLA2A1g.d.ts +223 -0
- package/dist/narration/index.d.ts +16 -3
- package/dist/narration/index.js +13 -14
- package/dist/random/index.d.ts +11 -2
- package/dist/random/index.js +2 -3
- package/dist/recommend/index.d.ts +1 -1
- package/dist/recommend/index.js +3 -4
- package/dist/schemas/index.d.ts +31 -6
- package/dist/schemas/index.js +43 -6
- package/dist/spatial/index.d.ts +2 -1
- package/dist/spatial/index.js +1 -2
- package/dist/storage/index.d.ts +4 -2
- package/dist/storage/index.js +1 -2
- package/dist/{themeLibrary-RjVgLpUi.d.ts → themeLibrary-DU9mUmVl.d.ts} +1 -1
- package/dist/timing/index.js +3 -4
- package/dist/transform/index.d.ts +9 -10
- package/dist/transform/index.js +6 -7
- package/dist/{types-C4kiRn_k.d.ts → types-8QjefM9J.d.ts} +38 -2
- package/dist/{types-BwMPl2CB.d.ts → types-CUNc9biN.d.ts} +24 -1
- package/dist/versions/index.d.ts +14 -11
- package/dist/versions/index.js +2 -3
- package/package.json +4 -2
- package/dist/chunk-2PWOO4ZE.js.map +0 -1
- package/dist/chunk-2UQOHYE2.js.map +0 -1
- package/dist/chunk-3E5F2XMR.js.map +0 -1
- package/dist/chunk-4X3JQXNM.js.map +0 -1
- package/dist/chunk-5DKBFXPY.js.map +0 -1
- package/dist/chunk-5J4HKRJF.js.map +0 -1
- package/dist/chunk-5UYI3RJB.js.map +0 -1
- package/dist/chunk-66QO7XFB.js.map +0 -1
- package/dist/chunk-AMIR72JP.js +0 -380
- package/dist/chunk-AMIR72JP.js.map +0 -1
- package/dist/chunk-CY2R2VPR.js.map +0 -1
- package/dist/chunk-DBS6RIFL.js.map +0 -1
- package/dist/chunk-DNJKBAI7.js +0 -1
- package/dist/chunk-DNJKBAI7.js.map +0 -1
- package/dist/chunk-ET53IIEP.js +0 -1
- package/dist/chunk-ET53IIEP.js.map +0 -1
- package/dist/chunk-FVJUUTEM.js +0 -74
- package/dist/chunk-FVJUUTEM.js.map +0 -1
- package/dist/chunk-FVTQSNR7.js.map +0 -1
- package/dist/chunk-GZY66SDN.js.map +0 -1
- package/dist/chunk-JOQYPRDZ.js.map +0 -1
- package/dist/chunk-MMPBOUK7.js.map +0 -1
- package/dist/chunk-PGGGKYWG.js +0 -1
- package/dist/chunk-PGGGKYWG.js.map +0 -1
- package/dist/chunk-PXLVXTLW.js.map +0 -1
- package/dist/chunk-Q7LROV2H.js.map +0 -1
- package/dist/chunk-QE7TWGVT.js.map +0 -1
- package/dist/chunk-R2GC6RLD.js +0 -344
- package/dist/chunk-R2GC6RLD.js.map +0 -1
- package/dist/chunk-R2YZTCLO.js.map +0 -1
- package/dist/chunk-S7A5D7ZJ.js +0 -174
- package/dist/chunk-S7A5D7ZJ.js.map +0 -1
- package/dist/chunk-TFJVXUHH.js.map +0 -1
- package/dist/chunk-TUWMK62B.js.map +0 -1
- package/dist/chunk-V543AI2F.js +0 -1
- package/dist/chunk-V543AI2F.js.map +0 -1
- package/dist/chunk-VR7UPJ7C.js.map +0 -1
- package/dist/chunk-W4O2TX5I.js.map +0 -1
- package/dist/chunk-X6DUONGT.js.map +0 -1
- package/dist/chunk-ZLQKNOZQ.js +0 -1
- package/dist/chunk-ZLQKNOZQ.js.map +0 -1
- package/dist/doc/index.js.map +0 -1
- package/dist/generate/index.js.map +0 -1
- package/dist/icons/index.js.map +0 -1
- package/dist/icons/inlineIconMarker.js.map +0 -1
- package/dist/imageEdit/index.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/jsonForm/index.js.map +0 -1
- package/dist/markdown/index.js.map +0 -1
- package/dist/narration/index.js.map +0 -1
- package/dist/random/index.js.map +0 -1
- package/dist/recommend/index.js.map +0 -1
- package/dist/schemas/index.js.map +0 -1
- package/dist/spatial/index.js.map +0 -1
- package/dist/storage/index.js.map +0 -1
- package/dist/timing/index.js.map +0 -1
- package/dist/transform/index.js.map +0 -1
- package/dist/versions/index.js.map +0 -1
- package/src/__tests__/animationUtils.test.ts +0 -117
- package/src/__tests__/annotationCoercion.test.ts +0 -243
- package/src/__tests__/applyNarrationTiming.test.ts +0 -190
- package/src/__tests__/applyRenderStyle.test.ts +0 -146
- package/src/__tests__/asciiDiagramBattle.test.ts +0 -246
- package/src/__tests__/asciiDiagramDetect.test.ts +0 -162
- package/src/__tests__/asciiDiagramMapping.test.ts +0 -38
- package/src/__tests__/asciiDiagramParse.test.ts +0 -233
- package/src/__tests__/asciiDiagramPipeline.test.ts +0 -273
- package/src/__tests__/asciiDiagramRender.test.ts +0 -162
- package/src/__tests__/asciiDiagramRepair.test.ts +0 -84
- package/src/__tests__/asciiTimelineDetect.test.ts +0 -157
- package/src/__tests__/asciiTimelineParse.test.ts +0 -205
- package/src/__tests__/asciiTimelinePipeline.test.ts +0 -349
- package/src/__tests__/asciiTimelineRender.test.ts +0 -376
- package/src/__tests__/atmosphereLayers.test.ts +0 -108
- package/src/__tests__/attrTokens.test.ts +0 -167
- package/src/__tests__/colorUtils.test.ts +0 -112
- package/src/__tests__/contentContainer.test.ts +0 -325
- package/src/__tests__/contentExtractor.test.ts +0 -243
- package/src/__tests__/coverBlock.test.ts +0 -310
- package/src/__tests__/customTemplateSample.test.ts +0 -144
- package/src/__tests__/customTemplatesFrontmatter.test.ts +0 -221
- package/src/__tests__/customThemesFrontmatter.test.ts +0 -146
- package/src/__tests__/dataTable.test.ts +0 -145
- package/src/__tests__/diagramBlock.test.ts +0 -122
- package/src/__tests__/diagramLayout.test.ts +0 -134
- package/src/__tests__/diagramText.test.ts +0 -26
- package/src/__tests__/docToMarkdownMedia.test.ts +0 -83
- package/src/__tests__/drawing.test.ts +0 -109
- package/src/__tests__/drawingBlock.test.ts +0 -124
- package/src/__tests__/drawingLayout.test.ts +0 -171
- package/src/__tests__/fixtures/asciiDiagramBattle.ts +0 -512
- package/src/__tests__/fixtures/asciiDiagrams.ts +0 -287
- package/src/__tests__/fixtures/asciiTimelines.ts +0 -35
- package/src/__tests__/fixtures/treeviewFixtures.ts +0 -243
- package/src/__tests__/geohash.test.ts +0 -110
- package/src/__tests__/getLayers.test.ts +0 -243
- package/src/__tests__/getLayersFallback.test.ts +0 -103
- package/src/__tests__/haversine.test.ts +0 -63
- package/src/__tests__/iconResolve.test.ts +0 -122
- package/src/__tests__/imageEditExportSvg.test.ts +0 -70
- package/src/__tests__/imageEditState.test.ts +0 -74
- package/src/__tests__/imageEditVersions.test.ts +0 -243
- package/src/__tests__/inferDocumentTitle.test.ts +0 -50
- package/src/__tests__/inlineIconMarker.test.ts +0 -36
- package/src/__tests__/inputDescriptors.test.ts +0 -162
- package/src/__tests__/jsonForm.chooseControl.test.ts +0 -86
- package/src/__tests__/jsonForm.evaluateWhen.test.ts +0 -59
- package/src/__tests__/jsonForm.inferSchema.test.ts +0 -25
- package/src/__tests__/jsonForm.pointer.test.ts +0 -149
- package/src/__tests__/jsonForm.tokens.test.ts +0 -84
- package/src/__tests__/layoutBlock.test.ts +0 -83
- package/src/__tests__/layoutLayout.test.ts +0 -169
- package/src/__tests__/localForageAdapter.test.ts +0 -155
- package/src/__tests__/majorApiTypes.test.ts +0 -18
- package/src/__tests__/markdown.test.ts +0 -1009
- package/src/__tests__/markdownIcons.test.ts +0 -104
- package/src/__tests__/markdownSanitize.test.ts +0 -81
- package/src/__tests__/markdownToDoc.test.ts +0 -957
- package/src/__tests__/matchFontFamily.test.ts +0 -114
- package/src/__tests__/materializeBlockLayers.test.ts +0 -135
- package/src/__tests__/materializeTestUtils.ts +0 -17
- package/src/__tests__/mediaAnnotations.test.ts +0 -91
- package/src/__tests__/mediaSchedule.test.ts +0 -118
- package/src/__tests__/narrationAlign.test.ts +0 -150
- package/src/__tests__/narrationFeatures.test.ts +0 -71
- package/src/__tests__/narrationNuclei.test.ts +0 -45
- package/src/__tests__/narrationPacing.test.ts +0 -189
- package/src/__tests__/narrationScript.test.ts +0 -149
- package/src/__tests__/narrationSessionRepro.test.ts +0 -62
- package/src/__tests__/narrationSidecar.test.ts +0 -88
- package/src/__tests__/narrationSyllables.test.ts +0 -65
- package/src/__tests__/narrationTestSignals.ts +0 -167
- package/src/__tests__/narrationVad.test.ts +0 -66
- package/src/__tests__/pandocAttrParse.test.ts +0 -187
- package/src/__tests__/recommendTemplates.test.ts +0 -183
- package/src/__tests__/resolveDocTheme.test.ts +0 -69
- package/src/__tests__/rootExports.test.ts +0 -61
- package/src/__tests__/scopedContentContainer.test.ts +0 -109
- package/src/__tests__/seededRandom.test.ts +0 -142
- package/src/__tests__/shapeGeometry.test.ts +0 -138
- package/src/__tests__/shapeVocabulary.test.ts +0 -133
- package/src/__tests__/storage.test.ts +0 -60
- package/src/__tests__/structuredData.test.ts +0 -249
- package/src/__tests__/surface.test.ts +0 -68
- package/src/__tests__/templateAnnotationParse.test.ts +0 -160
- package/src/__tests__/templateInputs.test.ts +0 -69
- package/src/__tests__/templateMetadata.test.ts +0 -32
- package/src/__tests__/templates.test.ts +0 -710
- package/src/__tests__/themeCompile.test.ts +0 -225
- package/src/__tests__/themeValidator.test.ts +0 -131
- package/src/__tests__/timing.test.ts +0 -167
- package/src/__tests__/transformProvenance.test.ts +0 -160
- package/src/__tests__/transformV2.test.ts +0 -163
- package/src/__tests__/transitionNormalize.test.ts +0 -61
- package/src/__tests__/treeviewBattle.test.ts +0 -76
- package/src/__tests__/treeviewDetect.test.ts +0 -168
- package/src/__tests__/treeviewParse.test.ts +0 -118
- package/src/__tests__/treeviewPipeline.test.ts +0 -183
- package/src/__tests__/treeviewRender.test.ts +0 -91
- package/src/__tests__/validateDoc.test.ts +0 -260
- package/src/__tests__/versions.test.ts +0 -459
- package/src/doc/annotationBlocks.ts +0 -117
- package/src/doc/applyNarrationTiming.ts +0 -244
- package/src/doc/asciiDiagram/chars.ts +0 -210
- package/src/doc/asciiDiagram/detect.ts +0 -175
- package/src/doc/asciiDiagram/index.ts +0 -38
- package/src/doc/asciiDiagram/mapping.ts +0 -225
- package/src/doc/asciiDiagram/parse.ts +0 -1095
- package/src/doc/asciiDiagram/render.ts +0 -963
- package/src/doc/asciiDiagram/repair.ts +0 -400
- package/src/doc/asciiDiagram/types.ts +0 -65
- package/src/doc/asciiTimeline/detect.ts +0 -138
- package/src/doc/asciiTimeline/index.ts +0 -26
- package/src/doc/asciiTimeline/mapping.ts +0 -43
- package/src/doc/asciiTimeline/parse.ts +0 -870
- package/src/doc/asciiTimeline/render.ts +0 -427
- package/src/doc/asciiTimeline/types.ts +0 -73
- package/src/doc/asciiTimeline/wrappedFlow.ts +0 -427
- package/src/doc/audioMapping.ts +0 -442
- package/src/doc/customTemplatesFrontmatter.ts +0 -273
- package/src/doc/customThemesFrontmatter.ts +0 -95
- package/src/doc/docToMarkdown.ts +0 -284
- package/src/doc/index.ts +0 -127
- package/src/doc/markdownToDoc.ts +0 -1054
- package/src/doc/materializeBlockLayers.ts +0 -304
- package/src/doc/mediaAnnotations.ts +0 -120
- package/src/doc/resolveDocTheme.ts +0 -56
- package/src/doc/standaloneAnnotation.ts +0 -58
- package/src/doc/structuredData.ts +0 -301
- package/src/doc/templateInputs.ts +0 -423
- package/src/doc/templates/__tests__/customTemplate.test.ts +0 -170
- package/src/doc/templates/__tests__/customTemplateRegistry.test.ts +0 -124
- package/src/doc/templates/__tests__/listBlock.test.ts +0 -64
- package/src/doc/templates/accentImage.ts +0 -362
- package/src/doc/templates/captionUtils.ts +0 -56
- package/src/doc/templates/comparisonBar.ts +0 -173
- package/src/doc/templates/coverBlock.ts +0 -255
- package/src/doc/templates/customTemplate.ts +0 -51
- package/src/doc/templates/dataTable.ts +0 -102
- package/src/doc/templates/dateEvent.ts +0 -147
- package/src/doc/templates/definitionCard.ts +0 -140
- package/src/doc/templates/diagramBlock.ts +0 -403
- package/src/doc/templates/diagramLayout.ts +0 -159
- package/src/doc/templates/drawingBlock.ts +0 -325
- package/src/doc/templates/drawingLayout.ts +0 -539
- package/src/doc/templates/factCard.ts +0 -146
- package/src/doc/templates/fallbackBlock.ts +0 -123
- package/src/doc/templates/featureBlock.ts +0 -209
- package/src/doc/templates/fullBleedQuote.ts +0 -83
- package/src/doc/templates/imageWithCaption.ts +0 -186
- package/src/doc/templates/index.ts +0 -642
- package/src/doc/templates/inputDescriptors.ts +0 -451
- package/src/doc/templates/layoutBlock.ts +0 -43
- package/src/doc/templates/layoutLayout.ts +0 -243
- package/src/doc/templates/listBlock.ts +0 -207
- package/src/doc/templates/mapBlock.ts +0 -138
- package/src/doc/templates/metadata.ts +0 -130
- package/src/doc/templates/persistentLayers.ts +0 -526
- package/src/doc/templates/photoGrid.ts +0 -190
- package/src/doc/templates/pullQuote.ts +0 -141
- package/src/doc/templates/quoteBlock.ts +0 -141
- package/src/doc/templates/registry.ts +0 -88
- package/src/doc/templates/sectionHeader.ts +0 -120
- package/src/doc/templates/statHighlight.ts +0 -146
- package/src/doc/templates/templateNames.ts +0 -22
- package/src/doc/templates/timelineBlock.ts +0 -613
- package/src/doc/templates/titleBlock.ts +0 -150
- package/src/doc/templates/tokens/__tests__/resolveTokens.test.ts +0 -487
- package/src/doc/templates/tokens/resolveTokens.ts +0 -453
- package/src/doc/templates/treeBlock.ts +0 -131
- package/src/doc/templates/twoColumn.ts +0 -263
- package/src/doc/templates/videoPullQuote.ts +0 -142
- package/src/doc/templates/videoWithCaption.ts +0 -135
- package/src/doc/treeview/chars.ts +0 -72
- package/src/doc/treeview/detect.ts +0 -145
- package/src/doc/treeview/index.ts +0 -30
- package/src/doc/treeview/mapping.ts +0 -95
- package/src/doc/treeview/parse.ts +0 -201
- package/src/doc/treeview/render.ts +0 -41
- package/src/doc/treeview/types.ts +0 -43
- package/src/doc/utils/animationUtils.ts +0 -399
- package/src/doc/utils/applyRenderStyle.ts +0 -106
- package/src/doc/utils/diagramText.ts +0 -78
- package/src/doc/utils/imageTreatment.ts +0 -70
- package/src/doc/utils/nearest.ts +0 -59
- package/src/doc/utils/shapeGeometry.ts +0 -614
- package/src/doc/utils/themeUtils.ts +0 -243
- package/src/doc/validate.ts +0 -575
- package/src/generate/contentExtractor.ts +0 -921
- package/src/generate/index.ts +0 -18
- package/src/generate/templateMapper.ts +0 -177
- package/src/icons/iconData.ts +0 -31
- package/src/icons/index.ts +0 -26
- package/src/icons/inlineIconMarker.ts +0 -73
- package/src/icons/resolve.ts +0 -139
- package/src/imageEdit/ImageEditVersionManager.ts +0 -73
- package/src/imageEdit/export.ts +0 -410
- package/src/imageEdit/index.ts +0 -72
- package/src/imageEdit/persistence.ts +0 -113
- package/src/imageEdit/state.ts +0 -112
- package/src/imageEdit/versionPaths.ts +0 -44
- package/src/imageEdit/versions.ts +0 -152
- package/src/index.ts +0 -15
- package/src/internal/immutable.ts +0 -58
- package/src/jsonForm/chooseControl.ts +0 -88
- package/src/jsonForm/evaluateWhen.ts +0 -59
- package/src/jsonForm/index.ts +0 -32
- package/src/jsonForm/inferSchema.ts +0 -25
- package/src/jsonForm/pointer.ts +0 -154
- package/src/jsonForm/tokens.ts +0 -78
- package/src/jsonForm/types.ts +0 -167
- package/src/markdown/annotationCoercion.ts +0 -295
- package/src/markdown/attrTokens.ts +0 -243
- package/src/markdown/convert.ts +0 -1353
- package/src/markdown/htmlParse.ts +0 -212
- package/src/markdown/index.ts +0 -152
- package/src/markdown/parse.ts +0 -103
- package/src/markdown/sanitize.ts +0 -318
- package/src/markdown/stringify.ts +0 -207
- package/src/markdown/types.ts +0 -710
- package/src/markdown/utils.ts +0 -459
- package/src/narration/align.ts +0 -514
- package/src/narration/features.ts +0 -231
- package/src/narration/index.ts +0 -86
- package/src/narration/nuclei.ts +0 -118
- package/src/narration/pacing.ts +0 -211
- package/src/narration/script.ts +0 -239
- package/src/narration/session.ts +0 -100
- package/src/narration/sidecar.ts +0 -187
- package/src/narration/syllables.ts +0 -85
- package/src/narration/trace.ts +0 -50
- package/src/narration/types.ts +0 -299
- package/src/narration/vad.ts +0 -131
- package/src/ngeohash.d.ts +0 -11
- package/src/random/SeededRandom.ts +0 -127
- package/src/random/index.ts +0 -1
- package/src/recommend/index.ts +0 -16
- package/src/recommend/numberHighlight.ts +0 -25
- package/src/recommend/templates.ts +0 -393
- package/src/schemas/BlockTemplates.ts +0 -1046
- package/src/schemas/CustomTemplates.ts +0 -126
- package/src/schemas/Doc.ts +0 -1052
- package/src/schemas/ImageEditDoc.ts +0 -102
- package/src/schemas/LayoutStrategy.ts +0 -178
- package/src/schemas/Media.ts +0 -179
- package/src/schemas/MediaProvider.ts +0 -70
- package/src/schemas/Theme.ts +0 -406
- package/src/schemas/Transitions.ts +0 -224
- package/src/schemas/Types.ts +0 -15
- package/src/schemas/Viewport.ts +0 -91
- package/src/schemas/colorUtils.ts +0 -219
- package/src/schemas/fontStacks.ts +0 -339
- package/src/schemas/index.ts +0 -29
- package/src/schemas/themeCompile.ts +0 -237
- package/src/schemas/themeConstants.ts +0 -2
- package/src/schemas/themeLibrary.ts +0 -60
- package/src/schemas/themeValidator.ts +0 -426
- package/src/schemas/themes/bold.json +0 -48
- package/src/schemas/themes/cinematic.json +0 -111
- package/src/schemas/themes/documentary.json +0 -96
- package/src/schemas/themes/gezellig.json +0 -93
- package/src/schemas/themes/index.ts +0 -53
- package/src/schemas/themes/magazine.json +0 -89
- package/src/schemas/themes/minimalist.json +0 -45
- package/src/schemas/themes/morning-light.json +0 -85
- package/src/schemas/themes/standard-dark.json +0 -85
- package/src/schemas/themes/standard.json +0 -74
- package/src/schemas/themes/tech-dark.json +0 -101
- package/src/schemas/themes/warm-earth.json +0 -50
- package/src/spatial/Geohash.ts +0 -196
- package/src/spatial/Haversine.ts +0 -59
- package/src/spatial/index.ts +0 -2
- package/src/storage/ContentContainer.ts +0 -220
- package/src/storage/LocalForageAdapter.ts +0 -103
- package/src/storage/LocalStorageAdapter.ts +0 -57
- package/src/storage/MediaProviderFromContainer.ts +0 -92
- package/src/storage/MemoryStorageAdapter.ts +0 -37
- package/src/storage/ScopedContentContainer.ts +0 -143
- package/src/storage/Storage.ts +0 -28
- package/src/storage/index.ts +0 -9
- package/src/timing/index.ts +0 -17
- package/src/timing/narrationTiming.ts +0 -220
- package/src/timing/readingTime.ts +0 -94
- package/src/transform/applyTransform.ts +0 -122
- package/src/transform/blockAnalyzer.ts +0 -181
- package/src/transform/index.ts +0 -23
- package/src/transform/registry.ts +0 -198
- package/src/transform/styles/dataDriven.ts +0 -17
- package/src/transform/styles/documentary.ts +0 -17
- package/src/transform/styles/index.ts +0 -5
- package/src/transform/styles/magazine.ts +0 -18
- package/src/transform/styles/minimal.ts +0 -17
- package/src/transform/styles/narrative.ts +0 -18
- package/src/transform/templateSelector.ts +0 -389
- package/src/transform/timingAllocator.ts +0 -257
- package/src/transform/types.ts +0 -151
- package/src/versions/DocumentVersionManager.ts +0 -70
- package/src/versions/gitignore.ts +0 -34
- package/src/versions/index.ts +0 -56
- package/src/versions/operations.ts +0 -144
- package/src/versions/paths.ts +0 -51
- package/src/versions/snapshotStore.ts +0 -202
- package/src/versions/timestamp.ts +0 -48
- package/src/versions/types.ts +0 -93
package/dist/imageEdit/index.js
CHANGED
|
@@ -24,9 +24,9 @@ import {
|
|
|
24
24
|
touch,
|
|
25
25
|
updateLayer,
|
|
26
26
|
writeImageEditDoc
|
|
27
|
-
} from "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
27
|
+
} from "../chunk-6ECMNUIP.js";
|
|
28
|
+
import "../chunk-OPO5K4DZ.js";
|
|
29
|
+
import "../chunk-PUS54YU6.js";
|
|
30
30
|
export {
|
|
31
31
|
IMAGE_EDIT_ASSETS_PREFIX,
|
|
32
32
|
IMAGE_EDIT_DEFAULT_BASENAME,
|
|
@@ -54,4 +54,3 @@ export {
|
|
|
54
54
|
updateLayer,
|
|
55
55
|
writeImageEditDoc
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
export { B as BoundingBox, C as Coordinates } from './Types-sh2VRxfo.js';
|
|
2
|
-
export { A as AccentImage, a as AccentPosition, b as AmbientGradientConfig, c as Animation, d as AnimationType, e as AudioBookmark, f as AudioSegment, g as AudioTimingData, h as AudioTrack, B as Block, i as BlockConnection, j as BorderStyle, C as CaptionPhrase, k as CaptionTrack, l as CaptionWord, m as ColorScheme, n as ComparisonBarInput, o as CornerBrandingConfig, p as CustomTemplateDefinition, q as CustomTemplateLayer, D as DARK_SURFACE, r as DEFAULT_DOC_FONT, s as DEFAULT_TITLE_FONT, t as DataTableInput, u as DateEventInput, v as DeepPartial, w as DefinitionCardInput, x as DiagramBlockInput, y as DiagramEdgeAnchor, z as DiagramTemplateEdge, E as DiagramTemplateNode, F as Doc, G as DocBlock, H as DocDiagnostic, I as DrawingBlockInput, J as FRONTMATTER_CUSTOM_TEMPLATES_KEY, K as FRONTMATTER_CUSTOM_THEMES_KEY, L as FactCardInput, M as FontFamily, N as FontFamilyKind, O as FullBleedQuoteInput, P as GradientBackgroundConfig, Q as ImageBackgroundConfig, R as ImageLayer, S as ImageTreatment, T as ImageWithCaptionInput, U as LIGHT_SURFACE, V as Layer, W as LayerRepeat, X as LayoutHints, Y as LeftFeatureInput, Z as LinearGradient, _ as ListBlockInput, $ as MapBlockInput, a0 as MapLayer, a1 as MapMarker, a2 as MapTileStyle, a3 as MarkerStyle, a4 as MediaClip, a5 as
|
|
3
|
-
export { D as DEFAULT_TRANSITION_DURATION_SECONDS, H as HeadingAttributes,
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
2
|
+
export { A as AccentImage, a as AccentPosition, b as AmbientGradientConfig, c as Animation, d as AnimationType, e as AudioBookmark, f as AudioSegment, g as AudioTimingData, h as AudioTrack, B as Block, i as BlockConnection, j as BorderStyle, C as CaptionPhrase, k as CaptionTrack, l as CaptionWord, m as ColorScheme, n as ComparisonBarInput, o as CornerBrandingConfig, p as CustomTemplateDefinition, q as CustomTemplateLayer, D as DARK_SURFACE, r as DEFAULT_DOC_FONT, s as DEFAULT_TITLE_FONT, t as DataTableInput, u as DateEventInput, v as DeepPartial, w as DefinitionCardInput, x as DiagramBlockInput, y as DiagramEdgeAnchor, z as DiagramTemplateEdge, E as DiagramTemplateNode, F as Doc, G as DocBlock, H as DocDiagnostic, I as DrawingBlockInput, J as FRONTMATTER_CUSTOM_TEMPLATES_KEY, K as FRONTMATTER_CUSTOM_THEMES_KEY, L as FactCardInput, M as FontFamily, N as FontFamilyKind, O as FullBleedQuoteInput, P as GradientBackgroundConfig, Q as ImageBackgroundConfig, R as ImageLayer, S as ImageTreatment, T as ImageWithCaptionInput, U as LIGHT_SURFACE, V as Layer, W as LayerRepeat, X as LayoutHints, Y as LeftFeatureInput, Z as LinearGradient, _ as ListBlockInput, $ as MapBlockInput, a0 as MapLayer, a1 as MapMarker, a2 as MapTileStyle, a3 as MarkerStyle, a4 as MediaClip, a5 as MermaidLayer, a6 as PAGE_ACCENT_STRATEGIES, a7 as PAGE_BACKGROUNDS, a8 as PAGE_BACKGROUND_RHYTHMS, a9 as PAGE_DESIGN_FAMILIES, aa as PAGE_DIVIDERS, ab as PAGE_EMPHASES, ac as PAGE_EYEBROWS, ad as PAGE_HEADING_CASES, ae as PAGE_HEADING_SCALES, af as PAGE_HEADING_UNDERLINES, ag as PAGE_HERO_STYLES, ah as PAGE_IMAGE_FRAMINGS, ai as PAGE_NUMERAL_STYLES, aj as PAGE_PATTERNS, ak as PAGE_QUOTE_MARKS, al as PAGE_SECTION_KINDS, am as PAGE_SECTION_SPACINGS, an as PAGE_SHADOWS, ao as PageAccentRotation, ap as PageBackground, aq as PageDesignFamily, ar as PageEmphasis, as as PageHeadingTreatment, at as PageSectionKind, au as PageSectionOverride, av as PageTokens, aw as PathLayer, ax as PatternBackgroundConfig, ay as PersistentLayer, az as PersistentLayerConfig, aA as PersistentLayerTemplate, aB as PersistentLayerTemplateConfig, aC as PersistentLayerTemplateType, aD as PhotoGridInput, aE as Position, aF as ProgressIndicatorConfig, aG as PullQuoteInput, aH as QuoteBlockInput, aI as RawLayersInput, aJ as RenderStyle, aK as RightFeatureInput, aL as ScheduledClip, aM as SectionHeaderInput, aN as ShapeFilter, aO as ShapeLayer, aP as ShapePattern, aQ as SolidBackgroundConfig, aR as StartBlockConfig, aS as StatHighlightInput, aT as SurfaceScheme, aU as THEME_SCHEMA_VERSION, aV as TableLayer, aW as TableLayerStyle, aX as TemplateBlock, aY as TemplateContext, aZ as TemplateFunction, a_ as TemplateRegistry, a$ as TextLayer, b0 as TextStyle, b1 as Theme, b2 as ThemeColorPalette, b3 as ThemeColorScheme, b4 as ThemePageStyle, b5 as ThemeRegistry, b6 as ThemeSchemaVersion, b7 as ThemeSeedColors, b8 as ThemeStyle, b9 as ThemeTypography, ba as TimelineBlockInput, bb as TimelineTemplateEvent, bc as TimelineTemplateLink, bd as TimelineTemplateTrack, be as TitleBlockInput, bf as TitleCaptionConfig, bg as TreeBlockInput, bh as TreeLayer, bi as TreeLayerItem, bj as TreeLayerStyle, bk as TreeTemplateItem, bl as TwoColumnInput, bm as VIEWPORT_PRESETS, bn as VideoLayer, bo as VideoPullQuoteInput, bp as VideoWithCaptionInput, bq as ViewportConfig, br as ViewportOrientation, bs as ViewportPreset, bt as VignetteConfig, bu as applySurface, bv as calculateDuration, bw as calculateFontScale, bx as createTemplateContext, by as createTheme, bz as createThemeRegistry, bA as getAspectRatioString, bB as getBlockAtTime, bC as getCaptionAtTime, bD as getDocPlaybackDuration, bE as getLayoutHints, bF as getSafeTextBounds, bG as getSegmentAtTime, bH as getTwoColumnPositions, bI as getViewport, bJ as getViewportOrientation, bK as isPersistentLayerTemplate, bL as isTemplateBlock, bM as layoutScaledFontSize, bN as resolveMediaSchedule, bO as scaledFontSize } from './Doc-BubIpWsp.js';
|
|
3
|
+
export { D as DEFAULT_MARKDOWN_SAFETY_LIMITS, a as DEFAULT_TRANSITION_DURATION_SECONDS, H as HeadingAttributes, b as HeadingTemplateAnnotation, c as HtmlComment, d as HtmlElement, e as HtmlNode, f as HtmlText, M as MarkdownBlockNode, g as MarkdownBlockquote, h as MarkdownBreak, i as MarkdownCodeBlock, j as MarkdownContainerDirective, k as MarkdownDefinitionDescription, l as MarkdownDefinitionList, m as MarkdownDefinitionTerm, n as MarkdownDocument, o as MarkdownEmphasis, p as MarkdownFootnoteDefinition, q as MarkdownFootnoteReference, r as MarkdownHeading, s as MarkdownHtmlBlock, t as MarkdownImage, u as MarkdownImageReference, v as MarkdownInlineCode, w as MarkdownInlineHtml, x as MarkdownInlineMath, y as MarkdownInlineNode, z as MarkdownLeafDirective, A as MarkdownLimitError, B as MarkdownLink, C as MarkdownLinkDefinition, E as MarkdownLinkReference, F as MarkdownList, G as MarkdownListItem, I as MarkdownMathBlock, J as MarkdownMention, K as MarkdownNode, L as MarkdownParagraph, N as MarkdownPoint, O as MarkdownSafetyLimits, P as MarkdownSourcePosition, Q as MarkdownStrikethrough, R as MarkdownStrong, S as MarkdownTable, T as MarkdownTableCell, U as MarkdownTableRow, V as MarkdownText, W as MarkdownTextDirective, X as MarkdownThematicBreak, Y as ParseOptions, Z as StringifyOptions, _ as TRANSITION_DIRECTIONS, $ as TRANSITION_TYPES, a0 as Transition, a1 as TransitionDirection, a2 as TransitionType, a3 as assertMarkdownDocumentWithinLimits, a4 as assertMarkdownSourceWithinLimits, a5 as isTransitionType, a6 as normalizeTransitionDirection, a7 as normalizeTransitionType, a8 as resolveBlockTransition, a9 as resolveMarkdownSafetyLimits, aa as resolveTransitionDuration } from './types-CUNc9biN.js';
|
|
4
|
+
export { AVAILABLE_FONT_STACKS, CompileOptions, ContrastPreset, FONT_FALLBACKS, FontStack, STARTER_THEME, ValidationError, ValidationResult, accentToColorScheme, assertTheme, buildGoogleFontsUrl, compileTheme, contrastRatio, defaultPageStyle, deriveColorPalette, deriveScale, fontStack, getFontStack, guessFontFallback, hexHueDegrees, isHex, matchFontFamily, oklchDarken, oklchLighten, oklchSetChroma, parseTheme, pickContrastingText, relativeLuminance, resolveFontFamily, serializeTheme, validateTheme, withAlpha } from './schemas/index.js';
|
|
5
|
+
export { D as DEFAULT_THEME, a as DEFAULT_THEME_ID, T as THEMES, g as getAvailableThemes, b as getThemeSummaries, r as resolveTheme } from './themeLibrary-DU9mUmVl.js';
|
|
6
6
|
export { M as MediaEntry, a as MediaProvider } from './MediaProvider-wpSe21B3.js';
|
|
7
|
-
export { E as EditorLayerMeta, I as ImageEditCanvas, a as ImageEditDoc, b as ImageEditLayer, c as ImageEditLayerKind, d as ImageEditMeta } from './ImageEditDoc-
|
|
8
|
-
export { ASCII_CHAR_H, ASCII_CHAR_W, ASCII_DIAGRAM_FENCE_LANGS, ASCII_TIMELINE_FENCE_LANGS, AccentLayout, AsciiDiagram, AsciiDiagramDetection, AsciiDiagramEdge, AsciiDiagramNode, AsciiTimeline, AsciiTimelineDetection, AsciiTimelineEvent, AsciiTimelineLink, AsciiTimelineMarker, AsciiTimelineSide, AsciiTimelineStats, AsciiTimelineStyle, AsciiTimelineTrack, AudioSegmentTiming, BASE_INPUT_DESCRIPTORS, BlockLayerMaterialization, CONTAINER_TEMPLATES, ClipBox, ConnectorAnchor, ConnectorPort, ConnectorRouting, ConnectorSnapPoint, CoverBlockInput, DEFAULT_LAYOUT, DIAGRAM_LABEL_HORIZONTAL_PADDING, DIAGRAM_LABEL_LINE_HEIGHT, DIAGRAM_LABEL_MIN_FONT_SIZE, DIAGRAM_LABEL_VERTICAL_PADDING, DataFenceParseResult, DeriveTemplateInputsOptions, DetectAsciiTimelineOptions, DiagramEdge, DiagramLabelFit, DiagramLayout, DiagramLayoutOptions, DiagramNodePosition, DrawingConnector, DrawingLayout, DrawingLayoutOptions, DrawingShape, DrawingShapeKind, ExpandDocBlocksOptions, ExtractedTableData, FirstImage, InputCoercion, LayerMaterializationDiagnostic, LayerMaterializationFailureMode, LayerMaterializationSource, LayoutLayerDefaults, LayoutLayersResult, MarkdownToDocOptions, MarkdownValidationResult, MaterializeBlockLayersOptions, NarrationResolution, PATH_SHAPE_KINDS, RenderAsciiDiagramOptions, RenderAsciiTimelineOptions, RenderTreeOptions, RepairResult, RuntimeTemplateRegistry, SHAPE_NAMES, TEMPLATE_INPUT_DESCRIPTORS, TEMPLATE_METADATA, TREE_FENCE_LANGS, TemplateInputDescriptor, TemplateMetadata, TemplateParamFinding, Tree, TreeDetection, TreeItem, TreeNode, ValidateOptions, adjustY, anchorPoint, applyNarrationTiming, applyRenderStyleToLayers, asciiCellToCanvas, asciiDiagramFromBlocks, asciiDiagramFromTemplateData, asciiDiagramToTemplateData, asciiTimelineToTemplateData, 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, isTreeFence, isWrappedFlowTimelineSource, layoutBlock, leftFeature, lineStyleDasharray, lintTemplateParams, listBlock, mapBlock, markdownToDoc, markerPath, materializeBlockLayers, nearestSnapPoint, normalizeShapeKind, parseAsciiDiagram, parseAsciiTimeline, parseAsciiTimelineWithStats, parseDataFence, parseTree, parseWrappedFlowTimeline, parseYamlSubset, photoGrid, pullQuote, quoteBlock, readCustomTemplatesFromFrontmatter, readCustomThemesFromFrontmatter, renderAsciiDiagram, renderAsciiTimeline, renderTree, repairAsciiDiagram, replaceDataFence, resolveAudioMapping, resolveColorScheme, resolvePersistentLayers, resolveTemplateName, resolveThemeForDoc, rightFeature, scaleAnimationDuration, scoreTextSimilarity, 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 } from './doc/index.js';
|
|
7
|
+
export { E as EditorLayerMeta, I as ImageEditCanvas, a as ImageEditDoc, b as ImageEditLayer, c as ImageEditLayerKind, d as ImageEditMeta } from './ImageEditDoc-CGxk5CHc.js';
|
|
8
|
+
export { ASCII_CHAR_H, ASCII_CHAR_W, ASCII_DIAGRAM_FENCE_LANGS, ASCII_TIMELINE_FENCE_LANGS, AccentLayout, AsciiDiagram, AsciiDiagramDetection, AsciiDiagramEdge, AsciiDiagramNode, AsciiTimeline, AsciiTimelineDetection, AsciiTimelineEvent, AsciiTimelineLink, AsciiTimelineMarker, AsciiTimelineSide, AsciiTimelineStats, AsciiTimelineStyle, AsciiTimelineTrack, AudioSegmentTiming, BASE_INPUT_DESCRIPTORS, BlockLayerMaterialization, CONTAINER_TEMPLATES, ClipBox, ConnectorAnchor, ConnectorPort, ConnectorRouting, ConnectorSnapPoint, CoverBlockInput, DEFAULT_LAYOUT, DIAGRAM_LABEL_HORIZONTAL_PADDING, DIAGRAM_LABEL_LINE_HEIGHT, DIAGRAM_LABEL_MIN_FONT_SIZE, DIAGRAM_LABEL_VERTICAL_PADDING, DataFenceParseResult, DeriveTemplateInputsOptions, DetectAsciiTimelineOptions, DiagramEdge, DiagramLabelFit, DiagramLayout, DiagramLayoutOptions, DiagramNodePosition, DrawingConnector, DrawingLayout, DrawingLayoutOptions, DrawingShape, DrawingShapeKind, ExpandDocBlocksOptions, ExtractedTableData, FirstImage, InputCoercion, LayerMaterializationDiagnostic, LayerMaterializationFailureMode, LayerMaterializationSource, LayoutLayerDefaults, LayoutLayersResult, MarkdownToDocOptions, MarkdownValidationResult, MaterializeBlockLayersOptions, NarrationResolution, PAGE_BASE_CSS, PATH_SHAPE_KINDS, PageSectionContext, PageSectionDraft, RenderAsciiDiagramOptions, RenderAsciiTimelineOptions, RenderTreeOptions, RepairResult, ResolvedPageBlock, RuntimeTemplateRegistry, SHAPE_NAMES, SectionExtractor, TEMPLATE_INPUT_DESCRIPTORS, TEMPLATE_METADATA, TREE_FENCE_LANGS, TemplateInputDescriptor, TemplateMetadata, TemplateParamFinding, Tree, TreeDetection, TreeItem, TreeNode, ValidateOptions, 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 } from './doc/index.js';
|
|
9
|
+
export { M as MaterializePageSectionOptions, a as MaterializePageSectionsOptions, P as PageMedia, b as PageRichText, c as PageSection, 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-wSLA2A1g.js';
|
|
9
10
|
export { calculateBearing, decodeGeohash, encodeGeohash, geohashOverlapsBounds, geohashToHierarchicalPath, getGeohash4Neighbors, getGeohashPath, getGeohashPrefix, getNeighbors, haversineDistance } from './spatial/index.js';
|
|
10
11
|
export { LocalForageAdapter, LocalForageAdapterOptions, LocalStorageAdapter, MemoryStorageAdapter, ScopedContentContainer, StorageAdapter, createMediaProviderFromContainer, scopeContainer } from './storage/index.js';
|
|
11
|
-
export { C as ContentContainer, a as ContentEntry, M as MemoryContentContainer, f as findDocumentPath } from './ContentContainer-
|
|
12
|
-
export { HtmlPolicy, SanitizeUrlOptions, TrailingAnnotationMatch, UrlKind, countNodes, createDocument, extractPlainText, findNodesByType, formatBlockScalar, formatFrontmatterValue, fromMdast, getChildren, inferDocumentTitle, matchTrailingPandocAttr, matchTrailingTemplateAnnotation, needsQuoting, parseFrontmatter, parseHtmlToNodes, parseMarkdown, parsePandocAttrTokens, plainTextFromInlineHtml, quoteAttrValue, readFrontmatterThemeId, sanitizeHtmlNodes, sanitizeUrl, serializePandocAttributes, setFrontmatterValues, splitKeyValueToken, stringifyHtmlNodes, stringifyMarkdown, toMdast, tokenizeAttrTokens, unquoteAttrValue, walkMarkdownTree } from './markdown/index.js';
|
|
13
|
-
export { B as BLOCK_META_KEY_DESCRIPTORS, a as BlockMetaKeyDescriptor, K as KNOWN_BLOCK_META_KEYS, b as KnownBlockMetaKey, p as parseTimeSeconds } from './annotationCoercion-
|
|
12
|
+
export { C as ContentContainer, a as ContentEntry, M as MemoryContentContainer, f as findDocumentPath } from './ContentContainer-B2w9sUoL.js';
|
|
13
|
+
export { DEFAULT_INTERACTIVE_RESOURCE_POLICY, DEFAULT_RESOURCE_MAX_BYTES, DEFAULT_RESOURCE_TIMEOUT_MS, FetchResourceBytesOptions, FetchedResource, HtmlPolicy, LOCAL_ONLY_RESOURCE_POLICY, ResourcePolicy, ResourcePolicyError, SanitizeUrlOptions, TrailingAnnotationMatch, UrlKind, countNodes, createDocument, extractPlainText, fetchResourceBytes, findNodesByType, formatBlockScalar, formatFrontmatterValue, formatFrontmatterYaml, fromMdast, getChildren, inferDocumentTitle, isResourceUrlAllowed, matchTrailingPandocAttr, matchTrailingTemplateAnnotation, needsQuoting, parseFrontmatter, parseHtmlToNodes, parseMarkdown, parsePandocAttrTokens, plainTextFromInlineHtml, quoteAttrValue, readFrontmatterThemeId, sanitizeHtmlNodes, sanitizeUrl, serializePandocAttributes, setFrontmatterValues, splitKeyValueToken, stringifyHtmlNodes, stringifyMarkdown, toMdast, tokenizeAttrTokens, unquoteAttrValue, walkMarkdownTree } from './markdown/index.js';
|
|
14
|
+
export { B as BLOCK_META_KEY_DESCRIPTORS, a as BlockMetaKeyDescriptor, K as KNOWN_BLOCK_META_KEYS, b as KnownBlockMetaKey, p as parseTimeSeconds } from './annotationCoercion-PtRQhk5V.js';
|
|
14
15
|
export { DEFAULT_WORDS_PER_SECOND, NarrationTimeEstimate, NarrationTimeOptions, ReadingTimeEstimate, ReadingTimeOptions, calculatePrefixDuration, countSpokenWords, estimateNarrationDuration, estimateNarrationTime, estimateReadingTime, estimateSpokenWordCount, estimateTimeFromText } from './timing/index.js';
|
|
15
16
|
export { SeededRandom, hashString } from './random/index.js';
|
|
16
17
|
export { C as ComparisonData, D as DateData, a as DefinitionData, E as ExtractedElement, 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';
|
|
17
18
|
export { MapOptions, mapElementToBlock } from './generate/index.js';
|
|
18
19
|
export { AnalyzedBlock, BlockImage, DEFAULT_TRANSFORM_STYLE_ID, TransformImage, TransformOptions, TransformResult, TransformStyleConfig, TransformStyleId, TransformStyleInput, TransformStyleRegistry, TransformStyleSummary, analyzeBlocks, applyTransform, createTransformStyleRegistry, extractDocImages, getTransformStyleIds, getTransformStyleSummaries, resolveTransformStyle } from './transform/index.js';
|
|
19
|
-
export { C as CoalesceOptions, P as PrunePolicy, R as RevertOptions, S as SaveVersionOptions,
|
|
20
|
+
export { C as CoalesceOptions, P as PrunePolicy, R as RevertFailureReason, a as RevertOptions, b as RevertResult, S as SaveVersionOptions, c as SaveVersionResult, V as Version } from './types-8QjefM9J.js';
|
|
20
21
|
export { DocumentVersionManager, DocumentVersionManagerOptions, VERSIONS_PREFIX, VERSION_TIMESTAMP_PATTERN, buildVersionPath, coalesceVersions, formatVersionTimestamp, getDocBasename, listVersions, parseVersionPath, parseVersionTimestamp, pruneVersions, readVersion, revertToVersion, saveVersion } from './versions/index.js';
|
|
21
|
-
export { BuildJsonFormTokensOptions, ControlKind, InferSchemaOptions, JsonFormValidationError, JsonFormValidator, SquisqAnnotatedSchema, SquisqHints, SquisqWhen, appendPointer, arrayItemKind, buildJsonFormTokens, chooseControl, escapePointerSegment, evaluateWhen, getByPointer, inferSchema, pointerSegments, primaryType, resolveFlag, resolveJsonFormTheme, resolveRef, setByPointer, toPointer } from './jsonForm/index.js';
|
|
22
|
-
export { IMAGE_EDIT_ASSETS_PREFIX, IMAGE_EDIT_DEFAULT_BASENAME, IMAGE_EDIT_STATE_FILENAME, IMAGE_EDIT_VERSIONS_PREFIX, ImageEditExportFormat, ImageEditExportOptions, ImageEditVersionManager, ImageEditVersionManagerOptions, RevertImageEditOptions, SaveImageEditVersionOptions, SaveImageEditVersionResult, addLayer, buildImageEditVersionPath, buildSvgString, coalesceImageEditVersions, createEmptyImageEditDoc, exportImageEditDoc, listImageEditVersions, parseImageEditVersionPath, pruneImageEditVersions, readImageEditDoc, readImageEditVersion, readImageEditVersionText, removeLayer, reorderLayer, revertToImageEditVersion, saveImageEditVersion, setCanvas, touch, updateLayer, writeImageEditDoc } from './imageEdit/index.js';
|
|
22
|
+
export { BuildJsonFormTokensOptions, ControlKind, InferSchemaOptions, JsonFormValidationError, JsonFormValidator, SquisqAnnotatedSchema, SquisqHints, SquisqWhen, appendPointer, arrayItemKind, buildJsonFormTokens, chooseControl, escapePointerSegment, evaluateWhen, getByPointer, inferSchema, isSafeConditionRegex, pointerSegments, primaryType, resolveFlag, resolveJsonFormTheme, resolveRef, setByPointer, toPointer } from './jsonForm/index.js';
|
|
23
|
+
export { IMAGE_EDIT_ASSETS_PREFIX, IMAGE_EDIT_DEFAULT_BASENAME, IMAGE_EDIT_STATE_FILENAME, IMAGE_EDIT_VERSIONS_PREFIX, ImageEditExportFormat, ImageEditExportOptions, ImageEditVersionManager, ImageEditVersionManagerOptions, RevertImageEditFailureReason, RevertImageEditOptions, RevertImageEditResult, SaveImageEditVersionOptions, SaveImageEditVersionResult, addLayer, buildImageEditVersionPath, buildSvgString, coalesceImageEditVersions, createEmptyImageEditDoc, exportImageEditDoc, listImageEditVersions, parseImageEditVersionPath, pruneImageEditVersions, readImageEditDoc, readImageEditVersion, readImageEditVersionText, removeLayer, reorderLayer, revertToImageEditVersion, saveImageEditVersion, setCanvas, touch, updateLayer, writeImageEditDoc } from './imageEdit/index.js';
|
|
23
24
|
export { I as ICONS, a as IconEntry, b as IconFamily, c as IconTextRun, h as hasIconMarker, i as iconClass, d as iconMarker, s as splitIconMarkers, e as stripIconMarkers } from './inlineIconMarker-CiE8Hlvz.js';
|
|
24
25
|
export { IconSuggestion, canonicalIconToken, iconGlyph, looksLikeIconToken, resolveIcon, suggestIcons } from './icons/index.js';
|
|
25
26
|
export { BlockContentProfile, RecommendationResult, profileBlockContents, recommendTemplatesForBlock } from './recommend/index.js';
|
package/dist/index.js
CHANGED
|
@@ -23,8 +23,8 @@ import {
|
|
|
23
23
|
reanchorSession,
|
|
24
24
|
traceWordPosAt,
|
|
25
25
|
vadStep
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-DYPMOPIW.js";
|
|
27
|
+
import "./chunk-2L55443L.js";
|
|
28
28
|
import {
|
|
29
29
|
DEFAULT_TRANSFORM_STYLE_ID,
|
|
30
30
|
analyzeBlocks,
|
|
@@ -34,12 +34,12 @@ import {
|
|
|
34
34
|
getTransformStyleIds,
|
|
35
35
|
getTransformStyleSummaries,
|
|
36
36
|
resolveTransformStyle
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-RS5AP3J4.js";
|
|
38
38
|
import {
|
|
39
39
|
extractContent,
|
|
40
40
|
mapElementToBlock,
|
|
41
41
|
stripMarkdown
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-NKNMGIIN.js";
|
|
43
43
|
import {
|
|
44
44
|
DocumentVersionManager,
|
|
45
45
|
VERSIONS_PREFIX,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
readVersion,
|
|
53
53
|
revertToVersion,
|
|
54
54
|
saveVersion
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-7YEZFHLS.js";
|
|
56
56
|
import {
|
|
57
57
|
appendPointer,
|
|
58
58
|
arrayItemKind,
|
|
@@ -62,6 +62,7 @@ import {
|
|
|
62
62
|
evaluateWhen,
|
|
63
63
|
getByPointer,
|
|
64
64
|
inferSchema,
|
|
65
|
+
isSafeConditionRegex,
|
|
65
66
|
pointerSegments,
|
|
66
67
|
primaryType,
|
|
67
68
|
resolveFlag,
|
|
@@ -69,7 +70,7 @@ import {
|
|
|
69
70
|
resolveRef,
|
|
70
71
|
setByPointer,
|
|
71
72
|
toPointer
|
|
72
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-32R2RZAO.js";
|
|
73
74
|
import {
|
|
74
75
|
IMAGE_EDIT_ASSETS_PREFIX,
|
|
75
76
|
IMAGE_EDIT_DEFAULT_BASENAME,
|
|
@@ -96,21 +97,21 @@ import {
|
|
|
96
97
|
touch,
|
|
97
98
|
updateLayer,
|
|
98
99
|
writeImageEditDoc
|
|
99
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-6ECMNUIP.js";
|
|
100
101
|
import {
|
|
101
102
|
VERSION_TIMESTAMP_PATTERN,
|
|
102
103
|
formatVersionTimestamp,
|
|
103
104
|
parseVersionTimestamp
|
|
104
|
-
} from "./chunk-
|
|
105
|
-
import "./chunk-
|
|
105
|
+
} from "./chunk-OPO5K4DZ.js";
|
|
106
|
+
import "./chunk-WV5ARNDA.js";
|
|
106
107
|
import {
|
|
107
108
|
hasIconMarker,
|
|
108
109
|
iconClass,
|
|
109
110
|
iconMarker,
|
|
110
111
|
splitIconMarkers,
|
|
111
112
|
stripIconMarkers
|
|
112
|
-
} from "./chunk-
|
|
113
|
-
import "./chunk-
|
|
113
|
+
} from "./chunk-7ZAAICW4.js";
|
|
114
|
+
import "./chunk-XWNNA3KE.js";
|
|
114
115
|
import {
|
|
115
116
|
STARTER_THEME,
|
|
116
117
|
accentToColorScheme,
|
|
@@ -122,7 +123,7 @@ import {
|
|
|
122
123
|
getSegmentAtTime,
|
|
123
124
|
parseTheme,
|
|
124
125
|
serializeTheme
|
|
125
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-CB45YGAM.js";
|
|
126
127
|
import {
|
|
127
128
|
calculateBearing,
|
|
128
129
|
decodeGeohash,
|
|
@@ -134,9 +135,12 @@ import {
|
|
|
134
135
|
getGeohashPrefix,
|
|
135
136
|
getNeighbors,
|
|
136
137
|
haversineDistance
|
|
137
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-R3KTTOMS.js";
|
|
138
139
|
import {
|
|
140
|
+
PAGE_BASE_CSS,
|
|
139
141
|
applyNarrationTiming,
|
|
142
|
+
buildPageCss,
|
|
143
|
+
buildPageCssVars,
|
|
140
144
|
cssFilterForTreatment,
|
|
141
145
|
docToMarkdown,
|
|
142
146
|
getAnimationProgress,
|
|
@@ -144,16 +148,23 @@ import {
|
|
|
144
148
|
getDefaultAnimationDuration,
|
|
145
149
|
getTransitionClass,
|
|
146
150
|
isRepairableDiagram,
|
|
151
|
+
isTemplatedPageBlock,
|
|
152
|
+
materializePageSection,
|
|
153
|
+
materializePageSections,
|
|
154
|
+
pageStyleDataAttributes,
|
|
147
155
|
renderAsciiDiagram,
|
|
148
156
|
renderAsciiTimeline,
|
|
149
157
|
renderTree,
|
|
150
158
|
repairAsciiDiagram,
|
|
151
159
|
resolveAudioMapping,
|
|
160
|
+
resolvePageBlock,
|
|
161
|
+
resolvePageStyle,
|
|
152
162
|
resolveThemeForDoc,
|
|
153
163
|
scoreTextSimilarity,
|
|
164
|
+
sectionExtractors,
|
|
154
165
|
validateMarkdownDoc,
|
|
155
166
|
validateMarkdownSource
|
|
156
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-I2O6W7DX.js";
|
|
157
168
|
import {
|
|
158
169
|
ASCII_CHAR_H,
|
|
159
170
|
ASCII_CHAR_W,
|
|
@@ -274,7 +285,7 @@ import {
|
|
|
274
285
|
wrapWithPersistentLayers,
|
|
275
286
|
writeCustomTemplatesToFrontmatter,
|
|
276
287
|
writeCustomThemesToFrontmatter
|
|
277
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-7ARJZYQY.js";
|
|
278
289
|
import {
|
|
279
290
|
PATH_SHAPE_KINDS,
|
|
280
291
|
anchorPoint,
|
|
@@ -287,7 +298,7 @@ import {
|
|
|
287
298
|
shapePath,
|
|
288
299
|
snapEndpoints,
|
|
289
300
|
snapPoints
|
|
290
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-PUS54YU6.js";
|
|
291
302
|
import {
|
|
292
303
|
ASCII_DIAGRAM_FENCE_LANGS,
|
|
293
304
|
ASCII_TIMELINE_FENCE_LANGS,
|
|
@@ -312,11 +323,12 @@ import {
|
|
|
312
323
|
parseWrappedFlowTimeline,
|
|
313
324
|
profileBlockContents,
|
|
314
325
|
recommendTemplatesForBlock
|
|
315
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-FDYDYL77.js";
|
|
316
327
|
import {
|
|
328
|
+
defaultPageStyle,
|
|
317
329
|
getDocPlaybackDuration,
|
|
318
330
|
resolveMediaSchedule
|
|
319
|
-
} from "./chunk-
|
|
331
|
+
} from "./chunk-2ZWIXGAC.js";
|
|
320
332
|
import {
|
|
321
333
|
AVAILABLE_FONT_STACKS,
|
|
322
334
|
DARK_SURFACE,
|
|
@@ -326,6 +338,24 @@ import {
|
|
|
326
338
|
FRONTMATTER_CUSTOM_TEMPLATES_KEY,
|
|
327
339
|
FRONTMATTER_CUSTOM_THEMES_KEY,
|
|
328
340
|
LIGHT_SURFACE,
|
|
341
|
+
PAGE_ACCENT_STRATEGIES,
|
|
342
|
+
PAGE_BACKGROUNDS,
|
|
343
|
+
PAGE_BACKGROUND_RHYTHMS,
|
|
344
|
+
PAGE_DESIGN_FAMILIES,
|
|
345
|
+
PAGE_DIVIDERS,
|
|
346
|
+
PAGE_EMPHASES,
|
|
347
|
+
PAGE_EYEBROWS,
|
|
348
|
+
PAGE_HEADING_CASES,
|
|
349
|
+
PAGE_HEADING_SCALES,
|
|
350
|
+
PAGE_HEADING_UNDERLINES,
|
|
351
|
+
PAGE_HERO_STYLES,
|
|
352
|
+
PAGE_IMAGE_FRAMINGS,
|
|
353
|
+
PAGE_NUMERAL_STYLES,
|
|
354
|
+
PAGE_PATTERNS,
|
|
355
|
+
PAGE_QUOTE_MARKS,
|
|
356
|
+
PAGE_SECTION_KINDS,
|
|
357
|
+
PAGE_SECTION_SPACINGS,
|
|
358
|
+
PAGE_SHADOWS,
|
|
329
359
|
THEMES,
|
|
330
360
|
THEME_SCHEMA_VERSION,
|
|
331
361
|
applySurface,
|
|
@@ -352,7 +382,7 @@ import {
|
|
|
352
382
|
resolveTheme,
|
|
353
383
|
validateTheme,
|
|
354
384
|
withAlpha
|
|
355
|
-
} from "./chunk-
|
|
385
|
+
} from "./chunk-C33GTPUZ.js";
|
|
356
386
|
import {
|
|
357
387
|
DEFAULT_DOC_FONT,
|
|
358
388
|
DEFAULT_TITLE_FONT,
|
|
@@ -369,7 +399,7 @@ import {
|
|
|
369
399
|
isTemplateBlock,
|
|
370
400
|
scaledFontSize,
|
|
371
401
|
scaledFontSize2
|
|
372
|
-
} from "./chunk-
|
|
402
|
+
} from "./chunk-BAOV476U.js";
|
|
373
403
|
import {
|
|
374
404
|
LocalForageAdapter,
|
|
375
405
|
LocalStorageAdapter,
|
|
@@ -379,19 +409,31 @@ import {
|
|
|
379
409
|
createMediaProviderFromContainer,
|
|
380
410
|
findDocumentPath,
|
|
381
411
|
scopeContainer
|
|
382
|
-
} from "./chunk-
|
|
412
|
+
} from "./chunk-FCG3BIZN.js";
|
|
383
413
|
import {
|
|
414
|
+
DEFAULT_INTERACTIVE_RESOURCE_POLICY,
|
|
415
|
+
DEFAULT_RESOURCE_MAX_BYTES,
|
|
416
|
+
DEFAULT_RESOURCE_TIMEOUT_MS,
|
|
417
|
+
LOCAL_ONLY_RESOURCE_POLICY,
|
|
418
|
+
ResourcePolicyError,
|
|
419
|
+
fetchResourceBytes,
|
|
420
|
+
isResourceUrlAllowed,
|
|
384
421
|
sanitizeHtmlNodes,
|
|
385
422
|
sanitizeUrl,
|
|
386
423
|
stringifyMarkdown
|
|
387
|
-
} from "./chunk-
|
|
424
|
+
} from "./chunk-3IGPAPQ7.js";
|
|
388
425
|
import {
|
|
426
|
+
DEFAULT_MARKDOWN_SAFETY_LIMITS,
|
|
427
|
+
MarkdownLimitError,
|
|
428
|
+
assertMarkdownDocumentWithinLimits,
|
|
429
|
+
assertMarkdownSourceWithinLimits,
|
|
389
430
|
fromMdast,
|
|
390
431
|
parseMarkdown,
|
|
391
432
|
parsePandocAttrTokens,
|
|
433
|
+
resolveMarkdownSafetyLimits,
|
|
392
434
|
serializePandocAttributes,
|
|
393
435
|
toMdast
|
|
394
|
-
} from "./chunk-
|
|
436
|
+
} from "./chunk-ACZOVWX3.js";
|
|
395
437
|
import {
|
|
396
438
|
BLOCK_META_KEY_DESCRIPTORS,
|
|
397
439
|
KNOWN_BLOCK_META_KEYS,
|
|
@@ -403,7 +445,7 @@ import {
|
|
|
403
445
|
splitKeyValueToken,
|
|
404
446
|
tokenizeAttrTokens,
|
|
405
447
|
unquoteAttrValue
|
|
406
|
-
} from "./chunk-
|
|
448
|
+
} from "./chunk-ZQKZSJAX.js";
|
|
407
449
|
import {
|
|
408
450
|
ICONS,
|
|
409
451
|
canonicalIconToken,
|
|
@@ -411,7 +453,7 @@ import {
|
|
|
411
453
|
looksLikeIconToken,
|
|
412
454
|
resolveIcon,
|
|
413
455
|
suggestIcons
|
|
414
|
-
} from "./chunk-
|
|
456
|
+
} from "./chunk-7N4G32LG.js";
|
|
415
457
|
import {
|
|
416
458
|
countNodes,
|
|
417
459
|
createDocument,
|
|
@@ -419,6 +461,7 @@ import {
|
|
|
419
461
|
findNodesByType,
|
|
420
462
|
formatBlockScalar,
|
|
421
463
|
formatFrontmatterValue,
|
|
464
|
+
formatFrontmatterYaml,
|
|
422
465
|
getChildren,
|
|
423
466
|
inferDocumentTitle,
|
|
424
467
|
parseFrontmatter,
|
|
@@ -428,7 +471,7 @@ import {
|
|
|
428
471
|
setFrontmatterValues,
|
|
429
472
|
stringifyHtmlNodes,
|
|
430
473
|
walkMarkdownTree
|
|
431
|
-
} from "./chunk-
|
|
474
|
+
} from "./chunk-BCCXTMN5.js";
|
|
432
475
|
import {
|
|
433
476
|
DEFAULT_TRANSITION_DURATION_SECONDS,
|
|
434
477
|
TRANSITION_DIRECTIONS,
|
|
@@ -438,12 +481,12 @@ import {
|
|
|
438
481
|
normalizeTransitionType,
|
|
439
482
|
resolveBlockTransition,
|
|
440
483
|
resolveTransitionDuration
|
|
441
|
-
} from "./chunk-
|
|
442
|
-
import "./chunk-
|
|
484
|
+
} from "./chunk-4VOD55SX.js";
|
|
485
|
+
import "./chunk-YZNGMV3G.js";
|
|
443
486
|
import {
|
|
444
487
|
estimateNarrationTime,
|
|
445
488
|
estimateReadingTime
|
|
446
|
-
} from "./chunk-
|
|
489
|
+
} from "./chunk-XOFT65EX.js";
|
|
447
490
|
import {
|
|
448
491
|
DEFAULT_WORDS_PER_SECOND,
|
|
449
492
|
calculatePrefixDuration,
|
|
@@ -451,12 +494,12 @@ import {
|
|
|
451
494
|
estimateNarrationDuration,
|
|
452
495
|
estimateSpokenWordCount,
|
|
453
496
|
estimateTimeFromText
|
|
454
|
-
} from "./chunk-
|
|
455
|
-
import "./chunk-
|
|
497
|
+
} from "./chunk-67L6WRJN.js";
|
|
498
|
+
import "./chunk-QKPXHDLR.js";
|
|
456
499
|
import {
|
|
457
500
|
SeededRandom,
|
|
458
501
|
hashString
|
|
459
|
-
} from "./chunk-
|
|
502
|
+
} from "./chunk-XRW6P7IF.js";
|
|
460
503
|
export {
|
|
461
504
|
ASCII_CHAR_H,
|
|
462
505
|
ASCII_CHAR_W,
|
|
@@ -470,9 +513,13 @@ export {
|
|
|
470
513
|
DEFAULT_ALIGN_CONFIG,
|
|
471
514
|
DEFAULT_DOC_FONT,
|
|
472
515
|
DEFAULT_FEATURE_CONFIG,
|
|
516
|
+
DEFAULT_INTERACTIVE_RESOURCE_POLICY,
|
|
473
517
|
DEFAULT_LAYOUT,
|
|
518
|
+
DEFAULT_MARKDOWN_SAFETY_LIMITS,
|
|
474
519
|
DEFAULT_NUCLEI_CONFIG,
|
|
475
520
|
DEFAULT_PACING_CONFIG,
|
|
521
|
+
DEFAULT_RESOURCE_MAX_BYTES,
|
|
522
|
+
DEFAULT_RESOURCE_TIMEOUT_MS,
|
|
476
523
|
DEFAULT_THEME,
|
|
477
524
|
DEFAULT_THEME_ID,
|
|
478
525
|
DEFAULT_TITLE_FONT,
|
|
@@ -496,11 +543,33 @@ export {
|
|
|
496
543
|
ImageEditVersionManager,
|
|
497
544
|
KNOWN_BLOCK_META_KEYS,
|
|
498
545
|
LIGHT_SURFACE,
|
|
546
|
+
LOCAL_ONLY_RESOURCE_POLICY,
|
|
499
547
|
LocalForageAdapter,
|
|
500
548
|
LocalStorageAdapter,
|
|
549
|
+
MarkdownLimitError,
|
|
501
550
|
MemoryContentContainer,
|
|
502
551
|
MemoryStorageAdapter,
|
|
552
|
+
PAGE_ACCENT_STRATEGIES,
|
|
553
|
+
PAGE_BACKGROUNDS,
|
|
554
|
+
PAGE_BACKGROUND_RHYTHMS,
|
|
555
|
+
PAGE_BASE_CSS,
|
|
556
|
+
PAGE_DESIGN_FAMILIES,
|
|
557
|
+
PAGE_DIVIDERS,
|
|
558
|
+
PAGE_EMPHASES,
|
|
559
|
+
PAGE_EYEBROWS,
|
|
560
|
+
PAGE_HEADING_CASES,
|
|
561
|
+
PAGE_HEADING_SCALES,
|
|
562
|
+
PAGE_HEADING_UNDERLINES,
|
|
563
|
+
PAGE_HERO_STYLES,
|
|
564
|
+
PAGE_IMAGE_FRAMINGS,
|
|
565
|
+
PAGE_NUMERAL_STYLES,
|
|
566
|
+
PAGE_PATTERNS,
|
|
567
|
+
PAGE_QUOTE_MARKS,
|
|
568
|
+
PAGE_SECTION_KINDS,
|
|
569
|
+
PAGE_SECTION_SPACINGS,
|
|
570
|
+
PAGE_SHADOWS,
|
|
503
571
|
PATH_SHAPE_KINDS,
|
|
572
|
+
ResourcePolicyError,
|
|
504
573
|
SHAPE_NAMES,
|
|
505
574
|
STARTER_THEME,
|
|
506
575
|
ScopedContentContainer,
|
|
@@ -532,6 +601,8 @@ export {
|
|
|
532
601
|
asciiDiagramFromTemplateData,
|
|
533
602
|
asciiDiagramToTemplateData,
|
|
534
603
|
asciiTimelineToTemplateData,
|
|
604
|
+
assertMarkdownDocumentWithinLimits,
|
|
605
|
+
assertMarkdownSourceWithinLimits,
|
|
535
606
|
assertTheme,
|
|
536
607
|
bandpassRun,
|
|
537
608
|
buildGoogleFontsUrl,
|
|
@@ -539,6 +610,8 @@ export {
|
|
|
539
610
|
buildJsonFormTokens,
|
|
540
611
|
buildNarrationScript,
|
|
541
612
|
buildNarrationTimingJson,
|
|
613
|
+
buildPageCss,
|
|
614
|
+
buildPageCssVars,
|
|
542
615
|
buildRegistry,
|
|
543
616
|
buildSvgString,
|
|
544
617
|
buildVersionPath,
|
|
@@ -583,6 +656,7 @@ export {
|
|
|
583
656
|
dataTable,
|
|
584
657
|
dateEvent,
|
|
585
658
|
decodeGeohash,
|
|
659
|
+
defaultPageStyle,
|
|
586
660
|
definitionCard,
|
|
587
661
|
deriveColorPalette,
|
|
588
662
|
deriveScale,
|
|
@@ -623,6 +697,7 @@ export {
|
|
|
623
697
|
factCard,
|
|
624
698
|
fallbackBlockLayers,
|
|
625
699
|
featureStep,
|
|
700
|
+
fetchResourceBytes,
|
|
626
701
|
findDocumentPath,
|
|
627
702
|
findFirstList,
|
|
628
703
|
findFirstTable,
|
|
@@ -633,6 +708,7 @@ export {
|
|
|
633
708
|
fontStack,
|
|
634
709
|
formatBlockScalar,
|
|
635
710
|
formatFrontmatterValue,
|
|
711
|
+
formatFrontmatterYaml,
|
|
636
712
|
formatVersionTimestamp,
|
|
637
713
|
fromMdast,
|
|
638
714
|
fullBleedQuote,
|
|
@@ -699,8 +775,11 @@ export {
|
|
|
699
775
|
isHex,
|
|
700
776
|
isPersistentLayerTemplate,
|
|
701
777
|
isRepairableDiagram,
|
|
778
|
+
isResourceUrlAllowed,
|
|
779
|
+
isSafeConditionRegex,
|
|
702
780
|
isShapeName,
|
|
703
781
|
isTemplateBlock,
|
|
782
|
+
isTemplatedPageBlock,
|
|
704
783
|
isTransitionType,
|
|
705
784
|
isTreeFence,
|
|
706
785
|
isWrappedFlowTimelineSource,
|
|
@@ -721,6 +800,8 @@ export {
|
|
|
721
800
|
matchTrailingPandocAttr,
|
|
722
801
|
matchTrailingTemplateAnnotation,
|
|
723
802
|
materializeBlockLayers,
|
|
803
|
+
materializePageSection,
|
|
804
|
+
materializePageSections,
|
|
724
805
|
narrationSessionStep,
|
|
725
806
|
nearestSnapPoint,
|
|
726
807
|
needsQuoting,
|
|
@@ -732,6 +813,7 @@ export {
|
|
|
732
813
|
oklchLighten,
|
|
733
814
|
oklchSetChroma,
|
|
734
815
|
pacingStep,
|
|
816
|
+
pageStyleDataAttributes,
|
|
735
817
|
parseAsciiDiagram,
|
|
736
818
|
parseAsciiTimeline,
|
|
737
819
|
parseAsciiTimelineWithStats,
|
|
@@ -785,7 +867,10 @@ export {
|
|
|
785
867
|
resolveFontFamily,
|
|
786
868
|
resolveIcon,
|
|
787
869
|
resolveJsonFormTheme,
|
|
870
|
+
resolveMarkdownSafetyLimits,
|
|
788
871
|
resolveMediaSchedule,
|
|
872
|
+
resolvePageBlock,
|
|
873
|
+
resolvePageStyle,
|
|
789
874
|
resolvePersistentLayers,
|
|
790
875
|
resolveRef,
|
|
791
876
|
resolveTemplateName,
|
|
@@ -804,6 +889,7 @@ export {
|
|
|
804
889
|
scaledFontSize2 as scaledFontSize,
|
|
805
890
|
scopeContainer,
|
|
806
891
|
scoreTextSimilarity,
|
|
892
|
+
sectionExtractors,
|
|
807
893
|
sectionHeader,
|
|
808
894
|
serializePandocAttributes,
|
|
809
895
|
serializeTheme,
|
|
@@ -859,4 +945,3 @@ export {
|
|
|
859
945
|
writeCustomThemesToFrontmatter,
|
|
860
946
|
writeImageEditDoc
|
|
861
947
|
};
|
|
862
|
-
//# sourceMappingURL=index.js.map
|
package/dist/jsonForm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../types-
|
|
1
|
+
import { b1 as Theme, aT as SurfaceScheme } from '../Doc-BubIpWsp.js';
|
|
2
|
+
import '../types-CUNc9biN.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* JSON Form types — Squisq's hint vocabulary layered on JSON Schema.
|
|
@@ -146,6 +146,13 @@ declare function arrayItemKind(schema: SquisqAnnotatedSchema): 'object' | 'primi
|
|
|
146
146
|
* renderers call this on every render with fresh data.
|
|
147
147
|
*/
|
|
148
148
|
|
|
149
|
+
/**
|
|
150
|
+
* Reject regex features that cannot be evaluated with a predictable cost in
|
|
151
|
+
* JavaScript's backtracking engine. JSON Form conditions are intended for
|
|
152
|
+
* small validation-style matches, so a conservative false negative is safer
|
|
153
|
+
* than allowing authored schemas to freeze the render thread.
|
|
154
|
+
*/
|
|
155
|
+
declare function isSafeConditionRegex(pattern: string): boolean;
|
|
149
156
|
declare function evaluateWhen(when: SquisqWhen, rootData: unknown): boolean;
|
|
150
157
|
/**
|
|
151
158
|
* Resolve a `boolean | SquisqWhen` flag (used by `hidden`/`disabled`)
|
|
@@ -233,4 +240,4 @@ declare function buildJsonFormTokens(theme: Theme | undefined, surface: SurfaceS
|
|
|
233
240
|
*/
|
|
234
241
|
declare function resolveJsonFormTheme(theme: Theme | undefined, surface: SurfaceScheme | undefined): Theme;
|
|
235
242
|
|
|
236
|
-
export { type BuildJsonFormTokensOptions, type ControlKind, type InferSchemaOptions, type JsonFormValidationError, type JsonFormValidator, type SquisqAnnotatedSchema, type SquisqHints, type SquisqWhen, appendPointer, arrayItemKind, buildJsonFormTokens, chooseControl, escapePointerSegment, evaluateWhen, getByPointer, inferSchema, pointerSegments, primaryType, resolveFlag, resolveJsonFormTheme, resolveRef, setByPointer, toPointer };
|
|
243
|
+
export { type BuildJsonFormTokensOptions, type ControlKind, type InferSchemaOptions, type JsonFormValidationError, type JsonFormValidator, type SquisqAnnotatedSchema, type SquisqHints, type SquisqWhen, appendPointer, arrayItemKind, buildJsonFormTokens, chooseControl, escapePointerSegment, evaluateWhen, getByPointer, inferSchema, isSafeConditionRegex, pointerSegments, primaryType, resolveFlag, resolveJsonFormTheme, resolveRef, setByPointer, toPointer };
|
package/dist/jsonForm/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
evaluateWhen,
|
|
8
8
|
getByPointer,
|
|
9
9
|
inferSchema,
|
|
10
|
+
isSafeConditionRegex,
|
|
10
11
|
pointerSegments,
|
|
11
12
|
primaryType,
|
|
12
13
|
resolveFlag,
|
|
@@ -14,12 +15,12 @@ import {
|
|
|
14
15
|
resolveRef,
|
|
15
16
|
setByPointer,
|
|
16
17
|
toPointer
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
18
|
+
} from "../chunk-32R2RZAO.js";
|
|
19
|
+
import "../chunk-CB45YGAM.js";
|
|
20
|
+
import "../chunk-2ZWIXGAC.js";
|
|
21
|
+
import "../chunk-C33GTPUZ.js";
|
|
22
|
+
import "../chunk-BAOV476U.js";
|
|
23
|
+
import "../chunk-4VOD55SX.js";
|
|
23
24
|
export {
|
|
24
25
|
appendPointer,
|
|
25
26
|
arrayItemKind,
|
|
@@ -29,6 +30,7 @@ export {
|
|
|
29
30
|
evaluateWhen,
|
|
30
31
|
getByPointer,
|
|
31
32
|
inferSchema,
|
|
33
|
+
isSafeConditionRegex,
|
|
32
34
|
pointerSegments,
|
|
33
35
|
primaryType,
|
|
34
36
|
resolveFlag,
|
|
@@ -37,4 +39,3 @@ export {
|
|
|
37
39
|
setByPointer,
|
|
38
40
|
toPointer
|
|
39
41
|
};
|
|
40
|
-
//# sourceMappingURL=index.js.map
|