@bendyline/squisq 1.4.0 → 1.5.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/dist/{Doc-BeSeH2iX.d.ts → Doc-BsMkmzH8.d.ts} +838 -268
- package/dist/{ImageEditDoc-BTIvw0oq.d.ts → ImageEditDoc-DvoeHMP9.d.ts} +11 -4
- package/dist/{chunk-ZTX4PFFT.js → chunk-2OIBZYKP.js} +75 -2
- package/dist/chunk-2OIBZYKP.js.map +1 -0
- package/dist/chunk-2UQOHYE2.js +45 -0
- package/dist/chunk-2UQOHYE2.js.map +1 -0
- package/dist/{chunk-B4EEON3N.js → chunk-4AKUQPEE.js} +536 -103
- package/dist/chunk-4AKUQPEE.js.map +1 -0
- package/dist/chunk-4ZFRZBU2.js +6582 -0
- package/dist/chunk-4ZFRZBU2.js.map +1 -0
- package/dist/{chunk-57CVQCFX.js → chunk-7MQGNR76.js} +79 -3
- package/dist/chunk-7MQGNR76.js.map +1 -0
- package/dist/{chunk-5WFRKURX.js → chunk-DLXZMS5K.js} +4 -2
- package/dist/chunk-DLXZMS5K.js.map +1 -0
- package/dist/{chunk-MYIH7FWD.js → chunk-FBKP5CAO.js} +1 -1
- package/dist/chunk-FBKP5CAO.js.map +1 -0
- package/dist/chunk-KZNXZ5SM.js +333 -0
- package/dist/chunk-KZNXZ5SM.js.map +1 -0
- package/dist/{chunk-WMOI7FN3.js → chunk-LRCV7N7F.js} +12 -2
- package/dist/{chunk-WMOI7FN3.js.map → chunk-LRCV7N7F.js.map} +1 -1
- package/dist/{chunk-3K5OG6KI.js → chunk-OH43RPTP.js} +403 -187
- package/dist/chunk-OH43RPTP.js.map +1 -0
- package/dist/{chunk-H3AXU4MJ.js → chunk-OKJOQXK4.js} +149 -2
- package/dist/chunk-OKJOQXK4.js.map +1 -0
- package/dist/chunk-PGGGKYWG.js +1 -0
- package/dist/chunk-PGGGKYWG.js.map +1 -0
- package/dist/{chunk-7UDSRZKG.js → chunk-Q3ROPT5H.js} +35 -14
- package/dist/chunk-Q3ROPT5H.js.map +1 -0
- package/dist/chunk-QE7TWGVT.js +178 -0
- package/dist/chunk-QE7TWGVT.js.map +1 -0
- package/dist/chunk-RUDYOTA6.js +345 -0
- package/dist/chunk-RUDYOTA6.js.map +1 -0
- package/dist/chunk-TVSGLUID.js +596 -0
- package/dist/chunk-TVSGLUID.js.map +1 -0
- package/dist/chunk-ZLQKNOZQ.js +1 -0
- package/dist/chunk-ZLQKNOZQ.js.map +1 -0
- package/dist/doc/index.d.ts +5 -10
- package/dist/doc/index.js +263 -7
- package/dist/doc/index.js.map +1 -1
- package/dist/generate/index.d.ts +106 -7
- package/dist/generate/index.js +16 -3
- package/dist/generate/index.js.map +1 -1
- package/dist/icons/index.d.ts +62 -10
- package/dist/icons/index.js +29 -9
- package/dist/icons/index.js.map +1 -1
- package/dist/icons/inlineIconMarker.d.ts +1 -0
- package/dist/icons/inlineIconMarker.js +15 -0
- package/dist/icons/inlineIconMarker.js.map +1 -0
- package/dist/imageEdit/index.d.ts +219 -11
- package/dist/imageEdit/index.js +56 -21
- package/dist/imageEdit/index.js.map +1 -1
- package/dist/index.d.ts +24 -13
- package/dist/index.js +680 -12
- package/dist/index.js.map +1 -1
- package/dist/inlineIconMarker-CiE8Hlvz.d.ts +59 -0
- package/dist/jsonForm/index.d.ts +189 -12
- package/dist/jsonForm/index.js +26 -11
- package/dist/jsonForm/index.js.map +1 -1
- package/dist/markdown/index.d.ts +474 -19
- package/dist/markdown/index.js +72 -33
- package/dist/markdown/index.js.map +1 -1
- package/dist/random/index.d.ts +51 -2
- package/dist/random/index.js +9 -1
- package/dist/random/index.js.map +1 -1
- package/dist/recommend/index.d.ts +39 -13
- package/dist/recommend/index.js +10 -14
- package/dist/recommend/index.js.map +1 -1
- package/dist/schemas/index.d.ts +208 -15
- package/dist/schemas/index.js +150 -11
- package/dist/schemas/index.js.map +1 -1
- package/dist/spatial/index.d.ts +116 -3
- package/dist/spatial/index.js +24 -2
- package/dist/spatial/index.js.map +1 -1
- package/dist/storage/index.d.ts +159 -10
- package/dist/storage/index.js +20 -6
- package/dist/storage/index.js.map +1 -1
- package/dist/story/index.d.ts +906 -40
- package/dist/story/index.js +124 -6
- package/dist/{themeLibrary-BHjJ0Qx6.d.ts → themeLibrary-DQQKuRMx.d.ts} +1 -1
- package/dist/timing/index.d.ts +109 -4
- package/dist/timing/index.js +23 -2
- package/dist/timing/index.js.map +1 -1
- package/dist/transform/index.d.ts +213 -6
- package/dist/transform/index.js +26 -3
- package/dist/transform/index.js.map +1 -1
- package/dist/{types-BdZkdJ3z.d.ts → types-DlAZ7MW4.d.ts} +115 -1
- package/dist/versions/index.d.ts +123 -24
- package/dist/versions/index.js +34 -27
- package/dist/versions/index.js.map +1 -1
- package/package.json +6 -1
- package/src/__tests__/animationUtils.test.ts +40 -0
- package/src/__tests__/annotationCoercion.test.ts +243 -0
- package/src/__tests__/applyRenderStyle.test.ts +146 -0
- package/src/__tests__/atmosphereLayers.test.ts +108 -0
- package/src/__tests__/attrTokens.test.ts +162 -0
- package/src/__tests__/customTemplateSample.test.ts +83 -0
- package/src/__tests__/customTemplatesFrontmatter.test.ts +205 -0
- package/src/__tests__/customThemesFrontmatter.test.ts +118 -0
- package/src/__tests__/diagramBlock.test.ts +122 -0
- package/src/__tests__/diagramLayout.test.ts +134 -0
- package/src/__tests__/drawing.test.ts +109 -0
- package/src/__tests__/drawingBlock.test.ts +124 -0
- package/src/__tests__/drawingLayout.test.ts +171 -0
- package/src/__tests__/geohash.test.ts +6 -5
- package/src/__tests__/getLayers.test.ts +6 -2
- package/src/__tests__/getLayersFallback.test.ts +103 -0
- package/src/__tests__/imageEditExportSvg.test.ts +70 -0
- package/src/__tests__/imageEditVersions.test.ts +72 -0
- package/src/__tests__/inlineIconMarker.test.ts +36 -0
- package/src/__tests__/layoutBlock.test.ts +83 -0
- package/src/__tests__/layoutLayout.test.ts +169 -0
- package/src/__tests__/markdown.test.ts +23 -0
- package/src/__tests__/markdownSanitize.test.ts +64 -0
- package/src/__tests__/markdownToDoc.test.ts +223 -2
- package/src/__tests__/mediaAnnotations.test.ts +64 -0
- package/src/__tests__/mediaSchedule.test.ts +118 -0
- package/src/__tests__/pandocAttrParse.test.ts +187 -0
- package/src/__tests__/resolveDocTheme.test.ts +55 -0
- package/src/__tests__/rootExports.test.ts +43 -0
- package/src/__tests__/shapeGeometry.test.ts +89 -0
- package/src/__tests__/shapeVocabulary.test.ts +133 -0
- package/src/__tests__/structuredData.test.ts +179 -0
- package/src/__tests__/templateAnnotationParse.test.ts +108 -0
- package/src/__tests__/templateMetadata.test.ts +21 -0
- package/src/__tests__/templates.test.ts +145 -4
- package/src/__tests__/themeCompile.test.ts +42 -0
- package/src/__tests__/themeValidator.test.ts +6 -0
- package/src/__tests__/transformV2.test.ts +137 -0
- package/src/__tests__/transitionNormalize.test.ts +61 -0
- package/src/__tests__/validateDoc.test.ts +100 -0
- package/src/doc/customTemplatesFrontmatter.ts +308 -0
- package/src/doc/customThemesFrontmatter.ts +90 -0
- package/src/doc/docToMarkdown.ts +73 -4
- package/src/doc/getLayers.ts +40 -17
- package/src/doc/index.ts +35 -1
- package/src/doc/markdownToDoc.ts +333 -12
- package/src/doc/mediaAnnotations.ts +118 -0
- package/src/doc/resolveDocTheme.ts +55 -0
- package/src/doc/structuredData.ts +230 -0
- package/src/doc/templateInputs.ts +240 -0
- package/src/doc/templates/__tests__/customTemplate.test.ts +151 -0
- package/src/doc/templates/__tests__/customTemplateRegistry.test.ts +110 -0
- package/src/doc/templates/accentImage.ts +30 -6
- package/src/doc/templates/captionUtils.ts +23 -0
- package/src/doc/templates/comparisonBar.ts +26 -18
- package/src/doc/templates/coverBlock.ts +7 -4
- package/src/doc/templates/customTemplate.ts +45 -0
- package/src/doc/templates/dataTable.ts +37 -19
- package/src/doc/templates/dateEvent.ts +41 -20
- package/src/doc/templates/definitionCard.ts +26 -18
- package/src/doc/templates/diagramBlock.ts +204 -0
- package/src/doc/templates/diagramLayout.ts +159 -0
- package/src/doc/templates/drawingBlock.ts +325 -0
- package/src/doc/templates/drawingLayout.ts +539 -0
- package/src/doc/templates/factCard.ts +51 -25
- package/src/doc/templates/fallbackBlock.ts +123 -0
- package/src/doc/templates/featureBlock.ts +20 -13
- package/src/doc/templates/fullBleedQuote.ts +18 -8
- package/src/doc/templates/imageWithCaption.ts +22 -9
- package/src/doc/templates/index.ts +215 -46
- package/src/doc/templates/layoutBlock.ts +43 -0
- package/src/doc/templates/layoutLayout.ts +243 -0
- package/src/doc/templates/listBlock.ts +56 -30
- package/src/doc/templates/mapBlock.ts +15 -12
- package/src/doc/templates/metadata.ts +120 -0
- package/src/doc/templates/persistentLayers.ts +129 -11
- package/src/doc/templates/photoGrid.ts +23 -12
- package/src/doc/templates/pullQuote.ts +30 -12
- package/src/doc/templates/quoteBlock.ts +54 -29
- package/src/doc/templates/sectionHeader.ts +25 -11
- package/src/doc/templates/statHighlight.ts +39 -22
- package/src/doc/templates/titleBlock.ts +59 -21
- package/src/doc/templates/tokens/__tests__/resolveTokens.test.ts +221 -0
- package/src/doc/templates/tokens/resolveTokens.ts +0 -0
- package/src/doc/templates/twoColumn.ts +48 -30
- package/src/doc/templates/videoPullQuote.ts +22 -12
- package/src/doc/templates/videoWithCaption.ts +13 -8
- package/src/doc/utils/animationUtils.ts +267 -3
- package/src/doc/utils/applyRenderStyle.ts +113 -0
- package/src/doc/utils/imageTreatment.ts +70 -0
- package/src/doc/utils/shapeGeometry.ts +464 -0
- package/src/doc/utils/themeUtils.ts +75 -1
- package/src/doc/validate.ts +476 -0
- package/src/generate/slideshowGenerator.ts +7 -0
- package/src/icons/index.ts +8 -0
- package/src/icons/inlineIconMarker.ts +73 -0
- package/src/imageEdit/export.ts +85 -2
- package/src/imageEdit/index.ts +1 -0
- package/src/imageEdit/persistence.ts +51 -0
- package/src/index.ts +2 -0
- package/src/markdown/annotationCoercion.ts +295 -0
- package/src/markdown/attrTokens.ts +222 -0
- package/src/markdown/convert.ts +229 -26
- package/src/markdown/index.ts +36 -0
- package/src/markdown/sanitize.ts +298 -0
- package/src/markdown/stringify.ts +84 -3
- package/src/markdown/types.ts +66 -0
- package/src/markdown/utils.ts +49 -1
- package/src/recommend/templates.ts +24 -0
- package/src/schemas/BlockTemplates.ts +133 -4
- package/src/schemas/CustomTemplates.ts +74 -0
- package/src/schemas/Doc.ts +353 -29
- package/src/schemas/ImageEditDoc.ts +11 -4
- package/src/schemas/Media.ts +169 -0
- package/src/schemas/Theme.ts +23 -1
- package/src/schemas/Transitions.ts +224 -0
- package/src/schemas/colorUtils.ts +33 -0
- package/src/schemas/fontStacks.ts +5 -2
- package/src/schemas/index.ts +3 -0
- package/src/schemas/themeCompile.ts +23 -4
- package/src/schemas/themeValidator.ts +49 -11
- package/src/schemas/themes/cinematic.json +69 -12
- package/src/schemas/themes/documentary.json +58 -11
- package/src/schemas/themes/gezellig.json +60 -11
- package/src/schemas/themes/magazine.json +54 -9
- package/src/schemas/themes/morning-light.json +52 -9
- package/src/schemas/themes/standard-dark.json +48 -13
- package/src/schemas/themes/standard.json +44 -12
- package/src/schemas/themes/tech-dark.json +65 -12
- package/src/spatial/Geohash.ts +52 -21
- package/src/transform/applyTransform.ts +43 -4
- package/src/transform/index.ts +1 -0
- package/src/transform/registry.ts +44 -13
- package/src/transform/styles/dataDriven.ts +2 -1
- package/src/transform/styles/documentary.ts +2 -1
- package/src/transform/styles/magazine.ts +3 -1
- package/src/transform/styles/minimal.ts +2 -1
- package/src/transform/styles/narrative.ts +3 -1
- package/src/transform/templateSelector.ts +87 -11
- package/src/transform/types.ts +35 -2
- package/dist/__tests__/animationUtils.test.d.ts +0 -2
- package/dist/__tests__/animationUtils.test.d.ts.map +0 -1
- package/dist/__tests__/animationUtils.test.js +0 -60
- package/dist/__tests__/animationUtils.test.js.map +0 -1
- package/dist/__tests__/colorUtils.test.d.ts +0 -2
- package/dist/__tests__/colorUtils.test.d.ts.map +0 -1
- package/dist/__tests__/colorUtils.test.js +0 -94
- package/dist/__tests__/colorUtils.test.js.map +0 -1
- package/dist/__tests__/contentContainer.test.d.ts +0 -2
- package/dist/__tests__/contentContainer.test.d.ts.map +0 -1
- package/dist/__tests__/contentContainer.test.js +0 -234
- package/dist/__tests__/contentContainer.test.js.map +0 -1
- package/dist/__tests__/contentExtractor.test.d.ts +0 -2
- package/dist/__tests__/contentExtractor.test.d.ts.map +0 -1
- package/dist/__tests__/contentExtractor.test.js +0 -151
- package/dist/__tests__/contentExtractor.test.js.map +0 -1
- package/dist/__tests__/coverBlock.test.d.ts +0 -2
- package/dist/__tests__/coverBlock.test.d.ts.map +0 -1
- package/dist/__tests__/coverBlock.test.js +0 -197
- package/dist/__tests__/coverBlock.test.js.map +0 -1
- package/dist/__tests__/dataTable.test.d.ts +0 -2
- package/dist/__tests__/dataTable.test.d.ts.map +0 -1
- package/dist/__tests__/dataTable.test.js +0 -110
- package/dist/__tests__/dataTable.test.js.map +0 -1
- package/dist/__tests__/geohash.test.d.ts +0 -2
- package/dist/__tests__/geohash.test.d.ts.map +0 -1
- package/dist/__tests__/geohash.test.js +0 -87
- package/dist/__tests__/geohash.test.js.map +0 -1
- package/dist/__tests__/getLayers.test.d.ts +0 -2
- package/dist/__tests__/getLayers.test.d.ts.map +0 -1
- package/dist/__tests__/getLayers.test.js +0 -191
- package/dist/__tests__/getLayers.test.js.map +0 -1
- package/dist/__tests__/haversine.test.d.ts +0 -2
- package/dist/__tests__/haversine.test.d.ts.map +0 -1
- package/dist/__tests__/haversine.test.js +0 -56
- package/dist/__tests__/haversine.test.js.map +0 -1
- package/dist/__tests__/iconResolve.test.d.ts +0 -2
- package/dist/__tests__/iconResolve.test.d.ts.map +0 -1
- package/dist/__tests__/iconResolve.test.js +0 -99
- package/dist/__tests__/iconResolve.test.js.map +0 -1
- package/dist/__tests__/imageEditState.test.d.ts +0 -2
- package/dist/__tests__/imageEditState.test.d.ts.map +0 -1
- package/dist/__tests__/imageEditState.test.js +0 -61
- package/dist/__tests__/imageEditState.test.js.map +0 -1
- package/dist/__tests__/imageEditVersions.test.d.ts +0 -2
- package/dist/__tests__/imageEditVersions.test.d.ts.map +0 -1
- package/dist/__tests__/imageEditVersions.test.js +0 -141
- package/dist/__tests__/imageEditVersions.test.js.map +0 -1
- package/dist/__tests__/inferDocumentTitle.test.d.ts +0 -2
- package/dist/__tests__/inferDocumentTitle.test.d.ts.map +0 -1
- package/dist/__tests__/inferDocumentTitle.test.js +0 -42
- package/dist/__tests__/inferDocumentTitle.test.js.map +0 -1
- package/dist/__tests__/jsonForm.chooseControl.test.d.ts +0 -2
- package/dist/__tests__/jsonForm.chooseControl.test.d.ts.map +0 -1
- package/dist/__tests__/jsonForm.chooseControl.test.js +0 -74
- package/dist/__tests__/jsonForm.chooseControl.test.js.map +0 -1
- package/dist/__tests__/jsonForm.evaluateWhen.test.d.ts +0 -2
- package/dist/__tests__/jsonForm.evaluateWhen.test.d.ts.map +0 -1
- package/dist/__tests__/jsonForm.evaluateWhen.test.js +0 -51
- package/dist/__tests__/jsonForm.evaluateWhen.test.js.map +0 -1
- package/dist/__tests__/jsonForm.inferSchema.test.d.ts +0 -2
- package/dist/__tests__/jsonForm.inferSchema.test.d.ts.map +0 -1
- package/dist/__tests__/jsonForm.inferSchema.test.js +0 -23
- package/dist/__tests__/jsonForm.inferSchema.test.js.map +0 -1
- package/dist/__tests__/jsonForm.pointer.test.d.ts +0 -2
- package/dist/__tests__/jsonForm.pointer.test.d.ts.map +0 -1
- package/dist/__tests__/jsonForm.pointer.test.js +0 -94
- package/dist/__tests__/jsonForm.pointer.test.js.map +0 -1
- package/dist/__tests__/localForageAdapter.test.d.ts +0 -8
- package/dist/__tests__/localForageAdapter.test.d.ts.map +0 -1
- package/dist/__tests__/localForageAdapter.test.js +0 -130
- package/dist/__tests__/localForageAdapter.test.js.map +0 -1
- package/dist/__tests__/markdown.test.d.ts +0 -2
- package/dist/__tests__/markdown.test.d.ts.map +0 -1
- package/dist/__tests__/markdown.test.js +0 -715
- package/dist/__tests__/markdown.test.js.map +0 -1
- package/dist/__tests__/markdownIcons.test.d.ts +0 -2
- package/dist/__tests__/markdownIcons.test.d.ts.map +0 -1
- package/dist/__tests__/markdownIcons.test.js +0 -93
- package/dist/__tests__/markdownIcons.test.js.map +0 -1
- package/dist/__tests__/markdownToDoc.test.d.ts +0 -2
- package/dist/__tests__/markdownToDoc.test.d.ts.map +0 -1
- package/dist/__tests__/markdownToDoc.test.js +0 -458
- package/dist/__tests__/markdownToDoc.test.js.map +0 -1
- package/dist/__tests__/recommendTemplates.test.d.ts +0 -2
- package/dist/__tests__/recommendTemplates.test.d.ts.map +0 -1
- package/dist/__tests__/recommendTemplates.test.js +0 -158
- package/dist/__tests__/recommendTemplates.test.js.map +0 -1
- package/dist/__tests__/scopedContentContainer.test.d.ts +0 -2
- package/dist/__tests__/scopedContentContainer.test.d.ts.map +0 -1
- package/dist/__tests__/scopedContentContainer.test.js +0 -74
- package/dist/__tests__/scopedContentContainer.test.js.map +0 -1
- package/dist/__tests__/seededRandom.test.d.ts +0 -2
- package/dist/__tests__/seededRandom.test.d.ts.map +0 -1
- package/dist/__tests__/seededRandom.test.js +0 -125
- package/dist/__tests__/seededRandom.test.js.map +0 -1
- package/dist/__tests__/slideshowGenerator.test.d.ts +0 -2
- package/dist/__tests__/slideshowGenerator.test.d.ts.map +0 -1
- package/dist/__tests__/slideshowGenerator.test.js +0 -114
- package/dist/__tests__/slideshowGenerator.test.js.map +0 -1
- package/dist/__tests__/storage.test.d.ts +0 -2
- package/dist/__tests__/storage.test.d.ts.map +0 -1
- package/dist/__tests__/storage.test.js +0 -51
- package/dist/__tests__/storage.test.js.map +0 -1
- package/dist/__tests__/surface.test.d.ts +0 -2
- package/dist/__tests__/surface.test.d.ts.map +0 -1
- package/dist/__tests__/surface.test.js +0 -57
- package/dist/__tests__/surface.test.js.map +0 -1
- package/dist/__tests__/templateAnnotationParse.test.d.ts +0 -2
- package/dist/__tests__/templateAnnotationParse.test.d.ts.map +0 -1
- package/dist/__tests__/templateAnnotationParse.test.js +0 -42
- package/dist/__tests__/templateAnnotationParse.test.js.map +0 -1
- package/dist/__tests__/templates.test.d.ts +0 -2
- package/dist/__tests__/templates.test.d.ts.map +0 -1
- package/dist/__tests__/templates.test.js +0 -298
- package/dist/__tests__/templates.test.js.map +0 -1
- package/dist/__tests__/themeCompile.test.d.ts +0 -2
- package/dist/__tests__/themeCompile.test.d.ts.map +0 -1
- package/dist/__tests__/themeCompile.test.js +0 -134
- package/dist/__tests__/themeCompile.test.js.map +0 -1
- package/dist/__tests__/themeValidator.test.d.ts +0 -2
- package/dist/__tests__/themeValidator.test.d.ts.map +0 -1
- package/dist/__tests__/themeValidator.test.js +0 -107
- package/dist/__tests__/themeValidator.test.js.map +0 -1
- package/dist/__tests__/timing.test.d.ts +0 -2
- package/dist/__tests__/timing.test.d.ts.map +0 -1
- package/dist/__tests__/timing.test.js +0 -131
- package/dist/__tests__/timing.test.js.map +0 -1
- package/dist/__tests__/versions.test.d.ts +0 -2
- package/dist/__tests__/versions.test.d.ts.map +0 -1
- package/dist/__tests__/versions.test.js +0 -339
- package/dist/__tests__/versions.test.js.map +0 -1
- package/dist/chunk-3K5OG6KI.js.map +0 -1
- package/dist/chunk-57CVQCFX.js.map +0 -1
- package/dist/chunk-5WFRKURX.js.map +0 -1
- package/dist/chunk-7UDSRZKG.js.map +0 -1
- package/dist/chunk-B4EEON3N.js.map +0 -1
- package/dist/chunk-H3AXU4MJ.js.map +0 -1
- package/dist/chunk-KSWJR66U.js +0 -3706
- package/dist/chunk-KSWJR66U.js.map +0 -1
- package/dist/chunk-MYIH7FWD.js.map +0 -1
- package/dist/chunk-ZTX4PFFT.js.map +0 -1
- package/dist/doc/audioMapping.d.ts +0 -36
- package/dist/doc/audioMapping.d.ts.map +0 -1
- package/dist/doc/audioMapping.js +0 -350
- package/dist/doc/audioMapping.js.map +0 -1
- package/dist/doc/docToMarkdown.d.ts +0 -41
- package/dist/doc/docToMarkdown.d.ts.map +0 -1
- package/dist/doc/docToMarkdown.js +0 -88
- package/dist/doc/docToMarkdown.js.map +0 -1
- package/dist/doc/getLayers.d.ts +0 -65
- package/dist/doc/getLayers.d.ts.map +0 -1
- package/dist/doc/getLayers.js +0 -114
- package/dist/doc/getLayers.js.map +0 -1
- package/dist/doc/index.d.ts.map +0 -1
- package/dist/doc/markdownToDoc.d.ts +0 -75
- package/dist/doc/markdownToDoc.d.ts.map +0 -1
- package/dist/doc/markdownToDoc.js +0 -432
- package/dist/doc/markdownToDoc.js.map +0 -1
- package/dist/doc/templates/accentImage.d.ts +0 -59
- package/dist/doc/templates/accentImage.d.ts.map +0 -1
- package/dist/doc/templates/accentImage.js +0 -275
- package/dist/doc/templates/accentImage.js.map +0 -1
- package/dist/doc/templates/captionUtils.d.ts +0 -20
- package/dist/doc/templates/captionUtils.d.ts.map +0 -1
- package/dist/doc/templates/captionUtils.js +0 -29
- package/dist/doc/templates/captionUtils.js.map +0 -1
- package/dist/doc/templates/comparisonBar.d.ts +0 -13
- package/dist/doc/templates/comparisonBar.d.ts.map +0 -1
- package/dist/doc/templates/comparisonBar.js +0 -145
- package/dist/doc/templates/comparisonBar.js.map +0 -1
- package/dist/doc/templates/coverBlock.d.ts +0 -51
- package/dist/doc/templates/coverBlock.d.ts.map +0 -1
- package/dist/doc/templates/coverBlock.js +0 -153
- package/dist/doc/templates/coverBlock.js.map +0 -1
- package/dist/doc/templates/dataTable.d.ts +0 -14
- package/dist/doc/templates/dataTable.d.ts.map +0 -1
- package/dist/doc/templates/dataTable.js +0 -73
- package/dist/doc/templates/dataTable.js.map +0 -1
- package/dist/doc/templates/dateEvent.d.ts +0 -15
- package/dist/doc/templates/dateEvent.d.ts.map +0 -1
- package/dist/doc/templates/dateEvent.js +0 -114
- package/dist/doc/templates/dateEvent.js.map +0 -1
- package/dist/doc/templates/definitionCard.d.ts +0 -13
- package/dist/doc/templates/definitionCard.d.ts.map +0 -1
- package/dist/doc/templates/definitionCard.js +0 -117
- package/dist/doc/templates/definitionCard.js.map +0 -1
- package/dist/doc/templates/factCard.d.ts +0 -15
- package/dist/doc/templates/factCard.d.ts.map +0 -1
- package/dist/doc/templates/factCard.js +0 -104
- package/dist/doc/templates/factCard.js.map +0 -1
- package/dist/doc/templates/featureBlock.d.ts +0 -18
- package/dist/doc/templates/featureBlock.d.ts.map +0 -1
- package/dist/doc/templates/featureBlock.js +0 -180
- package/dist/doc/templates/featureBlock.js.map +0 -1
- package/dist/doc/templates/fullBleedQuote.d.ts +0 -25
- package/dist/doc/templates/fullBleedQuote.d.ts.map +0 -1
- package/dist/doc/templates/fullBleedQuote.js +0 -67
- package/dist/doc/templates/fullBleedQuote.js.map +0 -1
- package/dist/doc/templates/imageWithCaption.d.ts +0 -13
- package/dist/doc/templates/imageWithCaption.d.ts.map +0 -1
- package/dist/doc/templates/imageWithCaption.js +0 -146
- package/dist/doc/templates/imageWithCaption.js.map +0 -1
- package/dist/doc/templates/index.d.ts +0 -129
- package/dist/doc/templates/index.d.ts.map +0 -1
- package/dist/doc/templates/index.js +0 -478
- package/dist/doc/templates/index.js.map +0 -1
- package/dist/doc/templates/listBlock.d.ts +0 -13
- package/dist/doc/templates/listBlock.d.ts.map +0 -1
- package/dist/doc/templates/listBlock.js +0 -109
- package/dist/doc/templates/listBlock.js.map +0 -1
- package/dist/doc/templates/mapBlock.d.ts +0 -17
- package/dist/doc/templates/mapBlock.d.ts.map +0 -1
- package/dist/doc/templates/mapBlock.js +0 -115
- package/dist/doc/templates/mapBlock.js.map +0 -1
- package/dist/doc/templates/persistentLayers.d.ts +0 -39
- package/dist/doc/templates/persistentLayers.d.ts.map +0 -1
- package/dist/doc/templates/persistentLayers.js +0 -447
- package/dist/doc/templates/persistentLayers.js.map +0 -1
- package/dist/doc/templates/photoGrid.d.ts +0 -20
- package/dist/doc/templates/photoGrid.d.ts.map +0 -1
- package/dist/doc/templates/photoGrid.js +0 -175
- package/dist/doc/templates/photoGrid.js.map +0 -1
- package/dist/doc/templates/pullQuote.d.ts +0 -13
- package/dist/doc/templates/pullQuote.d.ts.map +0 -1
- package/dist/doc/templates/pullQuote.js +0 -113
- package/dist/doc/templates/pullQuote.js.map +0 -1
- package/dist/doc/templates/quoteBlock.d.ts +0 -15
- package/dist/doc/templates/quoteBlock.d.ts.map +0 -1
- package/dist/doc/templates/quoteBlock.js +0 -101
- package/dist/doc/templates/quoteBlock.js.map +0 -1
- package/dist/doc/templates/sectionHeader.d.ts +0 -14
- package/dist/doc/templates/sectionHeader.d.ts.map +0 -1
- package/dist/doc/templates/sectionHeader.js +0 -97
- package/dist/doc/templates/sectionHeader.js.map +0 -1
- package/dist/doc/templates/statHighlight.d.ts +0 -27
- package/dist/doc/templates/statHighlight.d.ts.map +0 -1
- package/dist/doc/templates/statHighlight.js +0 -114
- package/dist/doc/templates/statHighlight.js.map +0 -1
- package/dist/doc/templates/titleBlock.d.ts +0 -24
- package/dist/doc/templates/titleBlock.d.ts.map +0 -1
- package/dist/doc/templates/titleBlock.js +0 -103
- package/dist/doc/templates/titleBlock.js.map +0 -1
- package/dist/doc/templates/twoColumn.d.ts +0 -15
- package/dist/doc/templates/twoColumn.d.ts.map +0 -1
- package/dist/doc/templates/twoColumn.js +0 -225
- package/dist/doc/templates/twoColumn.js.map +0 -1
- package/dist/doc/templates/videoPullQuote.d.ts +0 -20
- package/dist/doc/templates/videoPullQuote.d.ts.map +0 -1
- package/dist/doc/templates/videoPullQuote.js +0 -122
- package/dist/doc/templates/videoPullQuote.js.map +0 -1
- package/dist/doc/templates/videoWithCaption.d.ts +0 -20
- package/dist/doc/templates/videoWithCaption.d.ts.map +0 -1
- package/dist/doc/templates/videoWithCaption.js +0 -107
- package/dist/doc/templates/videoWithCaption.js.map +0 -1
- package/dist/doc/utils/animationUtils.d.ts +0 -34
- package/dist/doc/utils/animationUtils.d.ts.map +0 -1
- package/dist/doc/utils/animationUtils.js +0 -110
- package/dist/doc/utils/animationUtils.js.map +0 -1
- package/dist/doc/utils/themeUtils.d.ts +0 -64
- package/dist/doc/utils/themeUtils.d.ts.map +0 -1
- package/dist/doc/utils/themeUtils.js +0 -136
- package/dist/doc/utils/themeUtils.js.map +0 -1
- package/dist/generate/contentExtractor.d.ts +0 -112
- package/dist/generate/contentExtractor.d.ts.map +0 -1
- package/dist/generate/contentExtractor.js +0 -638
- package/dist/generate/contentExtractor.js.map +0 -1
- package/dist/generate/index.d.ts.map +0 -1
- package/dist/generate/slideshowGenerator.d.ts +0 -72
- package/dist/generate/slideshowGenerator.d.ts.map +0 -1
- package/dist/generate/slideshowGenerator.js +0 -159
- package/dist/generate/slideshowGenerator.js.map +0 -1
- package/dist/generate/templateMapper.d.ts +0 -23
- package/dist/generate/templateMapper.d.ts.map +0 -1
- package/dist/generate/templateMapper.js +0 -114
- package/dist/generate/templateMapper.js.map +0 -1
- package/dist/icons/iconData.d.ts +0 -26
- package/dist/icons/iconData.d.ts.map +0 -1
- package/dist/icons/iconData.js +0 -12
- package/dist/icons/iconData.js.map +0 -1
- package/dist/icons/index.d.ts.map +0 -1
- package/dist/icons/resolve.d.ts +0 -61
- package/dist/icons/resolve.d.ts.map +0 -1
- package/dist/icons/resolve.js +0 -130
- package/dist/icons/resolve.js.map +0 -1
- package/dist/imageEdit/ImageEditVersionManager.d.ts +0 -31
- package/dist/imageEdit/ImageEditVersionManager.d.ts.map +0 -1
- package/dist/imageEdit/ImageEditVersionManager.js +0 -39
- package/dist/imageEdit/ImageEditVersionManager.js.map +0 -1
- package/dist/imageEdit/export.d.ts +0 -33
- package/dist/imageEdit/export.d.ts.map +0 -1
- package/dist/imageEdit/export.js +0 -253
- package/dist/imageEdit/export.js.map +0 -1
- package/dist/imageEdit/index.d.ts.map +0 -1
- package/dist/imageEdit/persistence.d.ts +0 -15
- package/dist/imageEdit/persistence.d.ts.map +0 -1
- package/dist/imageEdit/persistence.js +0 -49
- package/dist/imageEdit/persistence.js.map +0 -1
- package/dist/imageEdit/state.d.ts +0 -42
- package/dist/imageEdit/state.d.ts.map +0 -1
- package/dist/imageEdit/state.js +0 -98
- package/dist/imageEdit/state.js.map +0 -1
- package/dist/imageEdit/versionPaths.d.ts +0 -27
- package/dist/imageEdit/versionPaths.d.ts.map +0 -1
- package/dist/imageEdit/versionPaths.js +0 -57
- package/dist/imageEdit/versionPaths.js.map +0 -1
- package/dist/imageEdit/versions.d.ts +0 -67
- package/dist/imageEdit/versions.d.ts.map +0 -1
- package/dist/imageEdit/versions.js +0 -161
- package/dist/imageEdit/versions.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/jsonForm/chooseControl.d.ts +0 -20
- package/dist/jsonForm/chooseControl.d.ts.map +0 -1
- package/dist/jsonForm/chooseControl.js +0 -82
- package/dist/jsonForm/chooseControl.js.map +0 -1
- package/dist/jsonForm/evaluateWhen.d.ts +0 -12
- package/dist/jsonForm/evaluateWhen.d.ts.map +0 -1
- package/dist/jsonForm/evaluateWhen.js +0 -65
- package/dist/jsonForm/evaluateWhen.js.map +0 -1
- package/dist/jsonForm/index.d.ts.map +0 -1
- package/dist/jsonForm/inferSchema.d.ts +0 -12
- package/dist/jsonForm/inferSchema.d.ts.map +0 -1
- package/dist/jsonForm/inferSchema.js +0 -15
- package/dist/jsonForm/inferSchema.js.map +0 -1
- package/dist/jsonForm/pointer.d.ts +0 -26
- package/dist/jsonForm/pointer.d.ts.map +0 -1
- package/dist/jsonForm/pointer.js +0 -102
- package/dist/jsonForm/pointer.js.map +0 -1
- package/dist/jsonForm/types.d.ts +0 -120
- package/dist/jsonForm/types.d.ts.map +0 -1
- package/dist/jsonForm/types.js +0 -10
- package/dist/jsonForm/types.js.map +0 -1
- package/dist/markdown/convert.d.ts +0 -81
- package/dist/markdown/convert.d.ts.map +0 -1
- package/dist/markdown/convert.js +0 -975
- package/dist/markdown/convert.js.map +0 -1
- package/dist/markdown/htmlParse.d.ts +0 -26
- package/dist/markdown/htmlParse.d.ts.map +0 -1
- package/dist/markdown/htmlParse.js +0 -195
- package/dist/markdown/htmlParse.js.map +0 -1
- package/dist/markdown/index.d.ts.map +0 -1
- package/dist/markdown/parse.d.ts +0 -27
- package/dist/markdown/parse.d.ts.map +0 -1
- package/dist/markdown/parse.js +0 -90
- package/dist/markdown/parse.js.map +0 -1
- package/dist/markdown/stringify.d.ts +0 -32
- package/dist/markdown/stringify.d.ts.map +0 -1
- package/dist/markdown/stringify.js +0 -108
- package/dist/markdown/stringify.js.map +0 -1
- package/dist/markdown/types.d.ts +0 -531
- package/dist/markdown/types.d.ts.map +0 -1
- package/dist/markdown/types.js +0 -17
- package/dist/markdown/types.js.map +0 -1
- package/dist/markdown/utils.d.ts +0 -118
- package/dist/markdown/utils.d.ts.map +0 -1
- package/dist/markdown/utils.js +0 -308
- package/dist/markdown/utils.js.map +0 -1
- package/dist/random/SeededRandom.d.ts +0 -50
- package/dist/random/SeededRandom.d.ts.map +0 -1
- package/dist/random/SeededRandom.js +0 -115
- package/dist/random/SeededRandom.js.map +0 -1
- package/dist/random/index.d.ts.map +0 -1
- package/dist/recommend/index.d.ts.map +0 -1
- package/dist/recommend/templates.d.ts +0 -39
- package/dist/recommend/templates.d.ts.map +0 -1
- package/dist/recommend/templates.js +0 -235
- package/dist/recommend/templates.js.map +0 -1
- package/dist/schemas/BlockTemplates.d.ts +0 -638
- package/dist/schemas/BlockTemplates.d.ts.map +0 -1
- package/dist/schemas/BlockTemplates.js +0 -72
- package/dist/schemas/BlockTemplates.js.map +0 -1
- package/dist/schemas/Doc.d.ts +0 -503
- package/dist/schemas/Doc.d.ts.map +0 -1
- package/dist/schemas/Doc.js +0 -90
- package/dist/schemas/Doc.js.map +0 -1
- package/dist/schemas/ImageEditDoc.d.ts +0 -81
- package/dist/schemas/ImageEditDoc.d.ts.map +0 -1
- package/dist/schemas/ImageEditDoc.js +0 -20
- package/dist/schemas/ImageEditDoc.js.map +0 -1
- package/dist/schemas/LayoutStrategy.d.ts +0 -84
- package/dist/schemas/LayoutStrategy.d.ts.map +0 -1
- package/dist/schemas/LayoutStrategy.js +0 -123
- package/dist/schemas/LayoutStrategy.js.map +0 -1
- package/dist/schemas/MediaProvider.d.ts +0 -65
- package/dist/schemas/MediaProvider.d.ts.map +0 -1
- package/dist/schemas/MediaProvider.js +0 -13
- package/dist/schemas/MediaProvider.js.map +0 -1
- package/dist/schemas/Theme.d.ts +0 -233
- package/dist/schemas/Theme.d.ts.map +0 -1
- package/dist/schemas/Theme.js +0 -129
- package/dist/schemas/Theme.js.map +0 -1
- package/dist/schemas/Types.d.ts +0 -14
- package/dist/schemas/Types.d.ts.map +0 -1
- package/dist/schemas/Types.js +0 -5
- package/dist/schemas/Types.js.map +0 -1
- package/dist/schemas/Viewport.d.ts +0 -74
- package/dist/schemas/Viewport.d.ts.map +0 -1
- package/dist/schemas/Viewport.js +0 -63
- package/dist/schemas/Viewport.js.map +0 -1
- package/dist/schemas/colorUtils.d.ts +0 -51
- package/dist/schemas/colorUtils.d.ts.map +0 -1
- package/dist/schemas/colorUtils.js +0 -154
- package/dist/schemas/colorUtils.js.map +0 -1
- package/dist/schemas/fontStacks.d.ts +0 -57
- package/dist/schemas/fontStacks.d.ts.map +0 -1
- package/dist/schemas/fontStacks.js +0 -227
- package/dist/schemas/fontStacks.js.map +0 -1
- package/dist/schemas/index.d.ts.map +0 -1
- package/dist/schemas/themeCompile.d.ts +0 -45
- package/dist/schemas/themeCompile.d.ts.map +0 -1
- package/dist/schemas/themeCompile.js +0 -160
- package/dist/schemas/themeCompile.js.map +0 -1
- package/dist/schemas/themeLibrary.d.ts +0 -37
- package/dist/schemas/themeLibrary.d.ts.map +0 -1
- package/dist/schemas/themeLibrary.js +0 -49
- package/dist/schemas/themeLibrary.js.map +0 -1
- package/dist/schemas/themeValidator.d.ts +0 -26
- package/dist/schemas/themeValidator.d.ts.map +0 -1
- package/dist/schemas/themeValidator.js +0 -352
- package/dist/schemas/themeValidator.js.map +0 -1
- package/dist/schemas/themes/bold.json +0 -48
- package/dist/schemas/themes/cinematic.json +0 -54
- package/dist/schemas/themes/documentary.json +0 -49
- package/dist/schemas/themes/gezellig.json +0 -44
- package/dist/schemas/themes/index.d.ts +0 -26
- package/dist/schemas/themes/index.d.ts.map +0 -1
- package/dist/schemas/themes/index.js +0 -49
- package/dist/schemas/themes/index.js.map +0 -1
- package/dist/schemas/themes/magazine.json +0 -44
- package/dist/schemas/themes/minimalist.json +0 -45
- package/dist/schemas/themes/morning-light.json +0 -42
- package/dist/schemas/themes/standard-dark.json +0 -50
- package/dist/schemas/themes/standard.json +0 -42
- package/dist/schemas/themes/tech-dark.json +0 -48
- package/dist/schemas/themes/warm-earth.json +0 -50
- package/dist/spatial/Geohash.d.ts +0 -85
- package/dist/spatial/Geohash.d.ts.map +0 -1
- package/dist/spatial/Geohash.js +0 -142
- package/dist/spatial/Geohash.js.map +0 -1
- package/dist/spatial/Haversine.d.ts +0 -24
- package/dist/spatial/Haversine.d.ts.map +0 -1
- package/dist/spatial/Haversine.js +0 -48
- package/dist/spatial/Haversine.js.map +0 -1
- package/dist/spatial/index.d.ts.map +0 -1
- package/dist/storage/ContentContainer.d.ts +0 -87
- package/dist/storage/ContentContainer.d.ts.map +0 -1
- package/dist/storage/ContentContainer.js +0 -131
- package/dist/storage/ContentContainer.js.map +0 -1
- package/dist/storage/LocalForageAdapter.d.ts +0 -36
- package/dist/storage/LocalForageAdapter.d.ts.map +0 -1
- package/dist/storage/LocalForageAdapter.js +0 -82
- package/dist/storage/LocalForageAdapter.js.map +0 -1
- package/dist/storage/LocalStorageAdapter.d.ts +0 -16
- package/dist/storage/LocalStorageAdapter.d.ts.map +0 -1
- package/dist/storage/LocalStorageAdapter.js +0 -50
- package/dist/storage/LocalStorageAdapter.js.map +0 -1
- package/dist/storage/MediaProviderFromContainer.d.ts +0 -21
- package/dist/storage/MediaProviderFromContainer.d.ts.map +0 -1
- package/dist/storage/MediaProviderFromContainer.js +0 -79
- package/dist/storage/MediaProviderFromContainer.js.map +0 -1
- package/dist/storage/MemoryStorageAdapter.d.ts +0 -15
- package/dist/storage/MemoryStorageAdapter.d.ts.map +0 -1
- package/dist/storage/MemoryStorageAdapter.js +0 -34
- package/dist/storage/MemoryStorageAdapter.js.map +0 -1
- package/dist/storage/ScopedContentContainer.d.ts +0 -44
- package/dist/storage/ScopedContentContainer.d.ts.map +0 -1
- package/dist/storage/ScopedContentContainer.js +0 -94
- package/dist/storage/ScopedContentContainer.js.map +0 -1
- package/dist/storage/Storage.d.ts +0 -23
- package/dist/storage/Storage.d.ts.map +0 -1
- package/dist/storage/Storage.js +0 -9
- package/dist/storage/Storage.js.map +0 -1
- package/dist/storage/index.d.ts.map +0 -1
- package/dist/timing/index.d.ts.map +0 -1
- package/dist/timing/narrationTiming.d.ts +0 -54
- package/dist/timing/narrationTiming.d.ts.map +0 -1
- package/dist/timing/narrationTiming.js +0 -190
- package/dist/timing/narrationTiming.js.map +0 -1
- package/dist/timing/readingTime.d.ts +0 -54
- package/dist/timing/readingTime.d.ts.map +0 -1
- package/dist/timing/readingTime.js +0 -49
- package/dist/timing/readingTime.js.map +0 -1
- package/dist/transform/applyTransform.d.ts +0 -22
- package/dist/transform/applyTransform.d.ts.map +0 -1
- package/dist/transform/applyTransform.js +0 -68
- package/dist/transform/applyTransform.js.map +0 -1
- package/dist/transform/blockAnalyzer.d.ts +0 -48
- package/dist/transform/blockAnalyzer.d.ts.map +0 -1
- package/dist/transform/blockAnalyzer.js +0 -135
- package/dist/transform/blockAnalyzer.js.map +0 -1
- package/dist/transform/index.d.ts.map +0 -1
- package/dist/transform/registry.d.ts +0 -19
- package/dist/transform/registry.d.ts.map +0 -1
- package/dist/transform/registry.js +0 -41
- package/dist/transform/registry.js.map +0 -1
- package/dist/transform/styles/dataDriven.d.ts +0 -4
- package/dist/transform/styles/dataDriven.d.ts.map +0 -1
- package/dist/transform/styles/dataDriven.js +0 -15
- package/dist/transform/styles/dataDriven.js.map +0 -1
- package/dist/transform/styles/documentary.d.ts +0 -4
- package/dist/transform/styles/documentary.d.ts.map +0 -1
- package/dist/transform/styles/documentary.js +0 -15
- package/dist/transform/styles/documentary.js.map +0 -1
- package/dist/transform/styles/index.d.ts +0 -6
- package/dist/transform/styles/index.d.ts.map +0 -1
- package/dist/transform/styles/index.js +0 -6
- package/dist/transform/styles/index.js.map +0 -1
- package/dist/transform/styles/magazine.d.ts +0 -4
- package/dist/transform/styles/magazine.d.ts.map +0 -1
- package/dist/transform/styles/magazine.js +0 -15
- package/dist/transform/styles/magazine.js.map +0 -1
- package/dist/transform/styles/minimal.d.ts +0 -4
- package/dist/transform/styles/minimal.d.ts.map +0 -1
- package/dist/transform/styles/minimal.js +0 -15
- package/dist/transform/styles/minimal.js.map +0 -1
- package/dist/transform/styles/narrative.d.ts +0 -4
- package/dist/transform/styles/narrative.d.ts.map +0 -1
- package/dist/transform/styles/narrative.js +0 -15
- package/dist/transform/styles/narrative.js.map +0 -1
- package/dist/transform/templateSelector.d.ts +0 -30
- package/dist/transform/templateSelector.d.ts.map +0 -1
- package/dist/transform/templateSelector.js +0 -218
- package/dist/transform/templateSelector.js.map +0 -1
- package/dist/transform/timingAllocator.d.ts +0 -21
- package/dist/transform/timingAllocator.d.ts.map +0 -1
- package/dist/transform/timingAllocator.js +0 -111
- package/dist/transform/timingAllocator.js.map +0 -1
- package/dist/transform/types.d.ts +0 -86
- package/dist/transform/types.d.ts.map +0 -1
- package/dist/transform/types.js +0 -9
- package/dist/transform/types.js.map +0 -1
- package/dist/versions/DocumentVersionManager.d.ts +0 -31
- package/dist/versions/DocumentVersionManager.d.ts.map +0 -1
- package/dist/versions/DocumentVersionManager.js +0 -33
- package/dist/versions/DocumentVersionManager.js.map +0 -1
- package/dist/versions/index.d.ts.map +0 -1
- package/dist/versions/operations.d.ts +0 -44
- package/dist/versions/operations.d.ts.map +0 -1
- package/dist/versions/operations.js +0 -190
- package/dist/versions/operations.js.map +0 -1
- package/dist/versions/paths.d.ts +0 -29
- package/dist/versions/paths.d.ts.map +0 -1
- package/dist/versions/paths.js +0 -66
- package/dist/versions/paths.js.map +0 -1
- package/dist/versions/timestamp.d.ts +0 -22
- package/dist/versions/timestamp.d.ts.map +0 -1
- package/dist/versions/timestamp.js +0 -44
- package/dist/versions/timestamp.js.map +0 -1
- package/dist/versions/types.d.ts +0 -92
- package/dist/versions/types.d.ts.map +0 -1
- package/dist/versions/types.js +0 -11
- package/dist/versions/types.js.map +0 -1
package/dist/random/index.js
CHANGED
package/dist/random/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,16 +1,42 @@
|
|
|
1
|
+
import { M as MarkdownBlockNode } from '../types-DlAZ7MW4.js';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
4
|
+
* Block template recommendations.
|
|
3
5
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
* Given a slice of markdown block nodes (the body underneath a heading),
|
|
7
|
+
* profile the content for image / video / quote / list / table / date /
|
|
8
|
+
* stat signals, then map that profile to the set of templates that make
|
|
9
|
+
* sense for the block. Used by the editor's template picker to surface a
|
|
10
|
+
* "Recommended for this block" section above the full template list.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
interface BlockContentProfile {
|
|
14
|
+
hasImage: boolean;
|
|
15
|
+
imageCount: number;
|
|
16
|
+
hasVideo: boolean;
|
|
17
|
+
hasBlockquote: boolean;
|
|
18
|
+
hasList: boolean;
|
|
19
|
+
hasTable: boolean;
|
|
20
|
+
hasDate: boolean;
|
|
21
|
+
hasNumberHighlight: boolean;
|
|
22
|
+
wordCount: number;
|
|
23
|
+
}
|
|
24
|
+
interface RecommendationResult {
|
|
25
|
+
recommended: string[];
|
|
26
|
+
rest: string[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Walk a slice of block nodes and summarize what kinds of content it
|
|
30
|
+
* contains. Cheap to run — no markdown parsing, just AST traversal.
|
|
31
|
+
*/
|
|
32
|
+
declare function profileBlockContents(nodes: MarkdownBlockNode[]): BlockContentProfile;
|
|
33
|
+
/**
|
|
34
|
+
* Split a flat list of template names into a "Recommended" bucket
|
|
35
|
+
* (matches the active block's content profile) and a "rest" bucket
|
|
36
|
+
* (everything else). Both buckets preserve the input ordering of
|
|
37
|
+
* `allNames`, so the visual layout stays predictable as templates are
|
|
38
|
+
* added.
|
|
13
39
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
40
|
+
declare function recommendTemplatesForBlock(profile: BlockContentProfile, allNames: readonly string[]): RecommendationResult;
|
|
41
|
+
|
|
42
|
+
export { type BlockContentProfile, type RecommendationResult, profileBlockContents, recommendTemplatesForBlock };
|
package/dist/recommend/index.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* const { recommended, rest } = recommendTemplatesForBlock(profile, ALL_TEMPLATE_NAMES);
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
export { profileBlockContents, recommendTemplatesForBlock } from './templates.js';
|
|
1
|
+
import "../chunk-ZLQKNOZQ.js";
|
|
2
|
+
import {
|
|
3
|
+
profileBlockContents,
|
|
4
|
+
recommendTemplatesForBlock
|
|
5
|
+
} from "../chunk-LRCV7N7F.js";
|
|
6
|
+
import "../chunk-OKJOQXK4.js";
|
|
7
|
+
export {
|
|
8
|
+
profileBlockContents,
|
|
9
|
+
recommendTemplatesForBlock
|
|
10
|
+
};
|
|
15
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,15 +1,208 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
export { B as BoundingBox, C as Coordinates } from '../Types-sh2VRxfo.js';
|
|
2
|
+
import { ax as Theme, u as DeepPartial, aB as ThemeSeedColors, ay as ThemeColorPalette, J as FontFamilyKind, I as FontFamily } from '../Doc-BsMkmzH8.js';
|
|
3
|
+
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, D as DARK_SURFACE, q as DEFAULT_DOC_FONT, r as DEFAULT_TITLE_FONT, s as DataTableInput, t as DateEventInput, v as DefinitionCardInput, w as DiagramBlockInput, x as Doc, y as DocBlock, z as DocDiagnostic, E as DrawingBlockInput, F as FRONTMATTER_CUSTOM_TEMPLATES_KEY, G as FRONTMATTER_CUSTOM_THEMES_KEY, H as FactCardInput, K as FullBleedQuoteInput, L as GradientBackgroundConfig, M as ImageBackgroundConfig, N as ImageLayer, O as ImageTreatment, P as ImageWithCaptionInput, Q as LIGHT_SURFACE, R as Layer, S as LayoutHints, T as LeftFeatureInput, U as LinearGradient, V as ListBlockInput, W as MapBlockInput, X as MapLayer, Y as MapMarker, Z as MapTileStyle, _ as MarkerStyle, $ as MediaClip, a0 as PathLayer, a1 as PatternBackgroundConfig, a2 as PersistentLayer, a3 as PersistentLayerConfig, a4 as PersistentLayerTemplate, a5 as PersistentLayerTemplateConfig, a6 as PersistentLayerTemplateType, a7 as PhotoGridInput, a8 as Position, a9 as ProgressIndicatorConfig, aa as PullQuoteInput, ab as QuoteBlockInput, ac as RawLayersInput, ad as RenderStyle, ae as RightFeatureInput, af as ScheduledClip, ag as SectionHeaderInput, ah as ShapeFilter, ai as ShapeLayer, aj as ShapePattern, ak as SolidBackgroundConfig, al as StartBlockConfig, am as StatHighlightInput, an as SurfaceScheme, ao as THEME_SCHEMA_VERSION, ap as TableLayer, aq as TableLayerStyle, ar as TemplateBlock, as as TemplateContext, at as TemplateFunction, au as TemplateRegistry, av as TextLayer, aw as TextStyle, az as ThemeColorScheme, aA as ThemeSchemaVersion, aC as ThemeStyle, aD as ThemeTypography, aE as TitleBlockInput, aF as TitleCaptionConfig, aG as TwoColumnInput, aH as VIEWPORT_PRESETS, aI as VideoLayer, aJ as VideoPullQuoteInput, aK as VideoWithCaptionInput, aL as ViewportConfig, aM as ViewportOrientation, aN as ViewportPreset, aO as VignetteConfig, aP as applySurface, aQ as calculateDuration, aR as calculateFontScale, aS as createTemplateContext, aT as createTheme, aU as getAspectRatioString, aV as getBlockAtTime, aW as getCaptionAtTime, aX as getDocPlaybackDuration, aY as getLayoutHints, aZ as getRegisteredThemes, a_ as getSafeTextBounds, a$ as getSegmentAtTime, b0 as getTwoColumnPositions, b1 as getViewport, b2 as getViewportOrientation, b3 as isPersistentLayerTemplate, b4 as isTemplateBlock, b5 as layoutScaledFontSize, b6 as lookupRegisteredTheme, b7 as registerTheme, b8 as resolveMediaSchedule, b9 as scaledFontSize, ba as unregisterTheme, bb as validateDoc } from '../Doc-BsMkmzH8.js';
|
|
4
|
+
export { D as DEFAULT_TRANSITION_DURATION_SECONDS, X as TRANSITION_DIRECTIONS, Y as TRANSITION_TYPES, Z as Transition, _ as TransitionDirection, $ as TransitionType, a0 as isTransitionType, a1 as normalizeTransitionDirection, a2 as normalizeTransitionType, a3 as resolveBlockTransition, a4 as resolveTransitionDuration } from '../types-DlAZ7MW4.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-DQQKuRMx.js';
|
|
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-DvoeHMP9.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Theme Validator
|
|
11
|
+
*
|
|
12
|
+
* Hand-rolled validator for `Theme` JSON. No dependencies. Produces a
|
|
13
|
+
* flat list of typed errors with JSON paths, suitable for surfacing in
|
|
14
|
+
* the customizer UI or throwing at module init for built-in themes.
|
|
15
|
+
*
|
|
16
|
+
* Design: walk the candidate object, push errors for each violation.
|
|
17
|
+
* Coverage is exhaustive for required fields and shapes; permissive on
|
|
18
|
+
* forward-compatible fields (unknown keys are ignored, not rejected).
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
interface ValidationError {
|
|
22
|
+
path: string;
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
interface ValidationResult {
|
|
26
|
+
valid: boolean;
|
|
27
|
+
errors: ValidationError[];
|
|
28
|
+
/** Present only when `valid === true`. The same input typed as `Theme`. */
|
|
29
|
+
theme?: Theme;
|
|
30
|
+
}
|
|
31
|
+
declare function validateTheme(input: unknown): ValidationResult;
|
|
32
|
+
/** Throws on invalid input. Useful at module init for built-in themes. */
|
|
33
|
+
declare function assertTheme(input: unknown, source?: string): Theme;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Theme Compilation
|
|
37
|
+
*
|
|
38
|
+
* Turns a partial Theme (typically authored by the customizer panel from
|
|
39
|
+
* a few seed colors and preset choices) into a complete, validated Theme
|
|
40
|
+
* by:
|
|
41
|
+
*
|
|
42
|
+
* 1. Filling unspecified fields from a hardcoded `STARTER_THEME`.
|
|
43
|
+
* 2. Deriving missing color slots from `seedColors` via OKLCh math.
|
|
44
|
+
* 3. Validating the result.
|
|
45
|
+
*
|
|
46
|
+
* Built-in themes ship as fully-specified Theme JSON and skip this step.
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
declare const STARTER_THEME: Theme;
|
|
50
|
+
/**
|
|
51
|
+
* Derive a full `ThemeColorPalette` from `seedColors`, with any explicit
|
|
52
|
+
* `partialColors` taking precedence over derived values. Background and
|
|
53
|
+
* text are guessed from luminance when the user gave only a primary.
|
|
54
|
+
*/
|
|
55
|
+
declare function deriveColorPalette(seeds: ThemeSeedColors, partialColors?: Partial<ThemeColorPalette>, opts?: {
|
|
56
|
+
contrast?: 'subtle' | 'balanced' | 'high';
|
|
57
|
+
}): ThemeColorPalette;
|
|
58
|
+
/** Map a contrast preset to numeric spread used by `deriveColorPalette`. */
|
|
59
|
+
type ContrastPreset = 'subtle' | 'balanced' | 'high';
|
|
60
|
+
interface CompileOptions {
|
|
61
|
+
/** Contrast level for OKLCh derivation (default 'balanced'). */
|
|
62
|
+
contrast?: ContrastPreset;
|
|
63
|
+
/**
|
|
64
|
+
* Base theme to inherit from. When provided, the partial is deep-merged
|
|
65
|
+
* over this theme instead of the neutral `STARTER_THEME`, so the compiled
|
|
66
|
+
* theme inherits the base's render style, color schemes, typography, and
|
|
67
|
+
* persistent layers — and only the fields the user changed are overridden.
|
|
68
|
+
* The base's id is recorded on the result as `basedOn`.
|
|
69
|
+
*/
|
|
70
|
+
base?: Theme;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Compile a partial Theme into a complete one. Fills missing fields from
|
|
74
|
+
* the base (`opts.base` when given, else `STARTER_THEME`), derives missing
|
|
75
|
+
* color slots from `seedColors` (when present), and validates the result.
|
|
76
|
+
*/
|
|
77
|
+
declare function compileTheme(partial: DeepPartial<Theme>, opts?: CompileOptions): Theme;
|
|
78
|
+
/**
|
|
79
|
+
* Parse a JSON string into a validated Theme. Throws on invalid input.
|
|
80
|
+
*/
|
|
81
|
+
declare function parseTheme(json: string): Theme;
|
|
82
|
+
/**
|
|
83
|
+
* Serialize a Theme to a stable, pretty-printed JSON string. Round-trips
|
|
84
|
+
* cleanly through `parseTheme`.
|
|
85
|
+
*/
|
|
86
|
+
declare function serializeTheme(theme: Theme): string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Font Stacks
|
|
90
|
+
*
|
|
91
|
+
* Curated registry of font families used by built-in themes and offered in
|
|
92
|
+
* the theme customizer. Each stack has a stable `id` (referenced by JSON
|
|
93
|
+
* theme files via `{ stackId }`) and a CSS `family` string that resolves
|
|
94
|
+
* to the actual font when rendered.
|
|
95
|
+
*
|
|
96
|
+
* Themes never carry raw CSS font strings — they reference a `stackId` or
|
|
97
|
+
* specify a `{ custom: { name, fallback } }` form, both of which resolve
|
|
98
|
+
* here at render time.
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
interface FontStack {
|
|
102
|
+
/** Stable identifier referenced by Theme JSON. */
|
|
103
|
+
id: string;
|
|
104
|
+
/** Display label for pickers. */
|
|
105
|
+
label: string;
|
|
106
|
+
/** Full CSS font-family string with safe fallbacks. */
|
|
107
|
+
family: string;
|
|
108
|
+
/** Categorical bucket for the picker UI. */
|
|
109
|
+
kind: FontFamilyKind;
|
|
110
|
+
/**
|
|
111
|
+
* Google Fonts family name, when this stack is served by Google Fonts.
|
|
112
|
+
* Used by exports that bundle a `<link>` to fonts.googleapis.com so the
|
|
113
|
+
* face renders correctly even when the host page doesn't preload it.
|
|
114
|
+
* Omit (or set to undefined) for purely system stacks.
|
|
115
|
+
*/
|
|
116
|
+
googleFontFamily?: string;
|
|
117
|
+
}
|
|
118
|
+
/** All curated stacks, in the order they should appear in pickers. */
|
|
119
|
+
declare const AVAILABLE_FONT_STACKS: FontStack[];
|
|
120
|
+
/** Look up a stack by id. Returns undefined if not registered. */
|
|
121
|
+
declare function getFontStack(id: string): FontStack | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* Resolve a `FontFamily` reference (or legacy raw string) to a CSS family string.
|
|
124
|
+
* Used by `getThemeFont` at render time. Never returns an empty string —
|
|
125
|
+
* unrecognized stackIds fall back to the requested role's default.
|
|
126
|
+
*/
|
|
127
|
+
declare function resolveFontFamily(family: FontFamily | string | undefined, roleFallback: string): string;
|
|
128
|
+
/** Convenience: quick `{ stackId }` factory for code that constructs themes. */
|
|
129
|
+
declare function fontStack(id: string): FontFamily;
|
|
130
|
+
/**
|
|
131
|
+
* Build a `https://fonts.googleapis.com/css2?...` URL that loads the
|
|
132
|
+
* subset of supplied `FontFamily` references that are served by Google
|
|
133
|
+
* Fonts. Returns `null` when nothing in the list needs Google hosting
|
|
134
|
+
* (system stacks, custom fonts, or unknown stack ids) — callers can use
|
|
135
|
+
* that to skip emitting a `<link>` entirely.
|
|
136
|
+
*
|
|
137
|
+
* The URL requests regular + bold (400/700) for each family, which is
|
|
138
|
+
* what the templates use. `display=swap` keeps the fallback visible
|
|
139
|
+
* while the web font streams in.
|
|
140
|
+
*/
|
|
141
|
+
declare function buildGoogleFontsUrl(families: Array<FontFamily | undefined>): string | null;
|
|
142
|
+
/** Default fallback families exposed for tools that need them. */
|
|
143
|
+
declare const FONT_FALLBACKS: Record<FontFamilyKind, string>;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Color Utilities
|
|
147
|
+
*
|
|
148
|
+
* Pure-JS color math used by theme compilation and contrast checks.
|
|
149
|
+
* No dependencies. Operates on `#rrggbb` hex strings.
|
|
150
|
+
*
|
|
151
|
+
* Internally uses OKLCh — perceptually uniform, so lightening by 0.1
|
|
152
|
+
* looks like the same change at any starting point. Out-of-gamut
|
|
153
|
+
* results are clamped to sRGB.
|
|
154
|
+
*/
|
|
155
|
+
/** Test whether a string is a valid `#rgb` or `#rrggbb` hex color. */
|
|
156
|
+
declare function isHex(value: string): boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Lighten a color by `amount` (0..1) in OKLCh L space.
|
|
159
|
+
* Falls back to the input on parse failure.
|
|
160
|
+
*/
|
|
161
|
+
declare function oklchLighten(hex: string, amount: number): string;
|
|
162
|
+
/**
|
|
163
|
+
* Darken a color by `amount` (0..1) in OKLCh L space.
|
|
164
|
+
* Falls back to the input on parse failure.
|
|
165
|
+
*/
|
|
166
|
+
declare function oklchDarken(hex: string, amount: number): string;
|
|
167
|
+
/**
|
|
168
|
+
* Adjust the OKLCh chroma of a color by a multiplier (e.g. 0.7 to mute).
|
|
169
|
+
*/
|
|
170
|
+
declare function oklchSetChroma(hex: string, multiplier: number): string;
|
|
171
|
+
/**
|
|
172
|
+
* WCAG relative luminance of a hex color, returned as 0..1.
|
|
173
|
+
*/
|
|
174
|
+
declare function relativeLuminance(hex: string): number;
|
|
175
|
+
/**
|
|
176
|
+
* Hue of a hex color in HSL degrees (0..360). Returns 0 for pure grays
|
|
177
|
+
* and on parse failure. Used by the duotone image treatment to aim its
|
|
178
|
+
* `hue-rotate()` at the theme's tint color.
|
|
179
|
+
*/
|
|
180
|
+
declare function hexHueDegrees(hex: string): number;
|
|
181
|
+
/**
|
|
182
|
+
* Convert a hex color + alpha (0..1) to an `rgba()` string.
|
|
183
|
+
* Falls back to the input on parse failure (e.g. a value that is
|
|
184
|
+
* already an rgba()/gradient string).
|
|
185
|
+
*/
|
|
186
|
+
declare function withAlpha(hex: string, alpha: number): string;
|
|
187
|
+
/**
|
|
188
|
+
* WCAG contrast ratio between two hex colors. Returns 1..21.
|
|
189
|
+
*/
|
|
190
|
+
declare function contrastRatio(a: string, b: string): number;
|
|
191
|
+
/**
|
|
192
|
+
* Pick a near-white or near-black text color that contrasts well against `bg`.
|
|
193
|
+
*/
|
|
194
|
+
declare function pickContrastingText(bg: string, light?: string, dark?: string): string;
|
|
195
|
+
/**
|
|
196
|
+
* Derive a 5-step lighter→darker scale from a seed color.
|
|
197
|
+
* Stops are evenly spaced in OKLCh L space around the seed.
|
|
198
|
+
* `spread` controls amplitude (0.05 = subtle, 0.15 = balanced, 0.22 = high).
|
|
199
|
+
*/
|
|
200
|
+
declare function deriveScale(seedHex: string, spread?: number): {
|
|
201
|
+
lighter2: string;
|
|
202
|
+
lighter1: string;
|
|
203
|
+
base: string;
|
|
204
|
+
darker1: string;
|
|
205
|
+
darker2: string;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
export { AVAILABLE_FONT_STACKS, type CompileOptions, type ContrastPreset, DeepPartial, FONT_FALLBACKS, FontFamily, FontFamilyKind, type FontStack, STARTER_THEME, Theme, ThemeColorPalette, ThemeSeedColors, type ValidationError, type ValidationResult, assertTheme, buildGoogleFontsUrl, compileTheme, contrastRatio, deriveColorPalette, deriveScale, fontStack, getFontStack, hexHueDegrees, isHex, oklchDarken, oklchLighten, oklchSetChroma, parseTheme, pickContrastingText, relativeLuminance, resolveFontFamily, serializeTheme, validateTheme, withAlpha };
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,12 +1,151 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import {
|
|
2
|
+
STARTER_THEME,
|
|
3
|
+
calculateDuration,
|
|
4
|
+
compileTheme,
|
|
5
|
+
deriveColorPalette,
|
|
6
|
+
getBlockAtTime,
|
|
7
|
+
getCaptionAtTime,
|
|
8
|
+
getDocPlaybackDuration,
|
|
9
|
+
getSegmentAtTime,
|
|
10
|
+
parseTheme,
|
|
11
|
+
resolveMediaSchedule,
|
|
12
|
+
serializeTheme,
|
|
13
|
+
validateDoc
|
|
14
|
+
} from "../chunk-7MQGNR76.js";
|
|
15
|
+
import {
|
|
16
|
+
AVAILABLE_FONT_STACKS,
|
|
17
|
+
DARK_SURFACE,
|
|
18
|
+
DEFAULT_THEME,
|
|
19
|
+
DEFAULT_THEME_ID,
|
|
20
|
+
FONT_FALLBACKS,
|
|
21
|
+
FRONTMATTER_CUSTOM_TEMPLATES_KEY,
|
|
22
|
+
FRONTMATTER_CUSTOM_THEMES_KEY,
|
|
23
|
+
LIGHT_SURFACE,
|
|
24
|
+
THEMES,
|
|
25
|
+
THEME_SCHEMA_VERSION,
|
|
26
|
+
applySurface,
|
|
27
|
+
assertTheme,
|
|
28
|
+
buildGoogleFontsUrl,
|
|
29
|
+
contrastRatio,
|
|
30
|
+
createTheme,
|
|
31
|
+
deriveScale,
|
|
32
|
+
fontStack,
|
|
33
|
+
getAvailableThemes,
|
|
34
|
+
getFontStack,
|
|
35
|
+
getRegisteredThemes,
|
|
36
|
+
getThemeSummaries,
|
|
37
|
+
hexHueDegrees,
|
|
38
|
+
isHex,
|
|
39
|
+
lookupRegisteredTheme,
|
|
40
|
+
oklchDarken,
|
|
41
|
+
oklchLighten,
|
|
42
|
+
oklchSetChroma,
|
|
43
|
+
pickContrastingText,
|
|
44
|
+
registerTheme,
|
|
45
|
+
relativeLuminance,
|
|
46
|
+
resolveFontFamily,
|
|
47
|
+
resolveTheme,
|
|
48
|
+
unregisterTheme,
|
|
49
|
+
validateTheme,
|
|
50
|
+
withAlpha
|
|
51
|
+
} from "../chunk-4AKUQPEE.js";
|
|
52
|
+
import {
|
|
53
|
+
DEFAULT_DOC_FONT,
|
|
54
|
+
DEFAULT_TITLE_FONT,
|
|
55
|
+
VIEWPORT_PRESETS,
|
|
56
|
+
calculateFontScale,
|
|
57
|
+
createTemplateContext,
|
|
58
|
+
getAspectRatioString,
|
|
59
|
+
getLayoutHints,
|
|
60
|
+
getSafeTextBounds,
|
|
61
|
+
getTwoColumnPositions,
|
|
62
|
+
getViewport,
|
|
63
|
+
getViewportOrientation,
|
|
64
|
+
isPersistentLayerTemplate,
|
|
65
|
+
isTemplateBlock,
|
|
66
|
+
scaledFontSize,
|
|
67
|
+
scaledFontSize2
|
|
68
|
+
} from "../chunk-DLXZMS5K.js";
|
|
69
|
+
import {
|
|
70
|
+
DEFAULT_TRANSITION_DURATION_SECONDS,
|
|
71
|
+
TRANSITION_DIRECTIONS,
|
|
72
|
+
TRANSITION_TYPES,
|
|
73
|
+
isTransitionType,
|
|
74
|
+
normalizeTransitionDirection,
|
|
75
|
+
normalizeTransitionType,
|
|
76
|
+
resolveBlockTransition,
|
|
77
|
+
resolveTransitionDuration
|
|
78
|
+
} from "../chunk-QE7TWGVT.js";
|
|
79
|
+
export {
|
|
80
|
+
AVAILABLE_FONT_STACKS,
|
|
81
|
+
DARK_SURFACE,
|
|
82
|
+
DEFAULT_DOC_FONT,
|
|
83
|
+
DEFAULT_THEME,
|
|
84
|
+
DEFAULT_THEME_ID,
|
|
85
|
+
DEFAULT_TITLE_FONT,
|
|
86
|
+
DEFAULT_TRANSITION_DURATION_SECONDS,
|
|
87
|
+
FONT_FALLBACKS,
|
|
88
|
+
FRONTMATTER_CUSTOM_TEMPLATES_KEY,
|
|
89
|
+
FRONTMATTER_CUSTOM_THEMES_KEY,
|
|
90
|
+
LIGHT_SURFACE,
|
|
91
|
+
STARTER_THEME,
|
|
92
|
+
THEMES,
|
|
93
|
+
THEME_SCHEMA_VERSION,
|
|
94
|
+
TRANSITION_DIRECTIONS,
|
|
95
|
+
TRANSITION_TYPES,
|
|
96
|
+
VIEWPORT_PRESETS,
|
|
97
|
+
applySurface,
|
|
98
|
+
assertTheme,
|
|
99
|
+
buildGoogleFontsUrl,
|
|
100
|
+
calculateDuration,
|
|
101
|
+
calculateFontScale,
|
|
102
|
+
compileTheme,
|
|
103
|
+
contrastRatio,
|
|
104
|
+
createTemplateContext,
|
|
105
|
+
createTheme,
|
|
106
|
+
deriveColorPalette,
|
|
107
|
+
deriveScale,
|
|
108
|
+
fontStack,
|
|
109
|
+
getAspectRatioString,
|
|
110
|
+
getAvailableThemes,
|
|
111
|
+
getBlockAtTime,
|
|
112
|
+
getCaptionAtTime,
|
|
113
|
+
getDocPlaybackDuration,
|
|
114
|
+
getFontStack,
|
|
115
|
+
getLayoutHints,
|
|
116
|
+
getRegisteredThemes,
|
|
117
|
+
getSafeTextBounds,
|
|
118
|
+
getSegmentAtTime,
|
|
119
|
+
getThemeSummaries,
|
|
120
|
+
getTwoColumnPositions,
|
|
121
|
+
getViewport,
|
|
122
|
+
getViewportOrientation,
|
|
123
|
+
hexHueDegrees,
|
|
124
|
+
isHex,
|
|
125
|
+
isPersistentLayerTemplate,
|
|
126
|
+
isTemplateBlock,
|
|
127
|
+
isTransitionType,
|
|
128
|
+
scaledFontSize as layoutScaledFontSize,
|
|
129
|
+
lookupRegisteredTheme,
|
|
130
|
+
normalizeTransitionDirection,
|
|
131
|
+
normalizeTransitionType,
|
|
132
|
+
oklchDarken,
|
|
133
|
+
oklchLighten,
|
|
134
|
+
oklchSetChroma,
|
|
135
|
+
parseTheme,
|
|
136
|
+
pickContrastingText,
|
|
137
|
+
registerTheme,
|
|
138
|
+
relativeLuminance,
|
|
139
|
+
resolveBlockTransition,
|
|
140
|
+
resolveFontFamily,
|
|
141
|
+
resolveMediaSchedule,
|
|
142
|
+
resolveTheme,
|
|
143
|
+
resolveTransitionDuration,
|
|
144
|
+
scaledFontSize2 as scaledFontSize,
|
|
145
|
+
serializeTheme,
|
|
146
|
+
unregisterTheme,
|
|
147
|
+
validateDoc,
|
|
148
|
+
validateTheme,
|
|
149
|
+
withAlpha
|
|
150
|
+
};
|
|
12
151
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/spatial/index.d.ts
CHANGED
|
@@ -1,3 +1,116 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { C as Coordinates } from '../Types-sh2VRxfo.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Haversine Distance Calculation
|
|
5
|
+
*
|
|
6
|
+
* Provides accurate distance calculation between two geographic coordinates
|
|
7
|
+
* using the Haversine formula, which accounts for Earth's curvature.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Calculate distance between two coordinates using Haversine formula.
|
|
12
|
+
*
|
|
13
|
+
* @param from Start coordinates
|
|
14
|
+
* @param to End coordinates
|
|
15
|
+
* @returns Distance in kilometers
|
|
16
|
+
*/
|
|
17
|
+
declare function haversineDistance(from: Coordinates, to: Coordinates): number;
|
|
18
|
+
/**
|
|
19
|
+
* Calculate bearing from one coordinate to another.
|
|
20
|
+
*
|
|
21
|
+
* @param from Start coordinates
|
|
22
|
+
* @param to End coordinates
|
|
23
|
+
* @returns Bearing in degrees (0-360, where 0 = north, 90 = east)
|
|
24
|
+
*/
|
|
25
|
+
declare function calculateBearing(from: Coordinates, to: Coordinates): number;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Geohash Utilities
|
|
29
|
+
*
|
|
30
|
+
* Provides geohash encoding/decoding and spatial utilities using the standard
|
|
31
|
+
* ngeohash library for core operations, plus custom utilities for overlap checking
|
|
32
|
+
* and distance calculation.
|
|
33
|
+
*
|
|
34
|
+
* Geohashes are a hierarchical spatial indexing system that divides the world
|
|
35
|
+
* into a grid of cells. Each additional character narrows the area by ~1/32.
|
|
36
|
+
*
|
|
37
|
+
* Precision guide:
|
|
38
|
+
* - 4 chars: ~39km x 19km (used for tile indexing)
|
|
39
|
+
* - 5 chars: ~5km x 5km
|
|
40
|
+
* - 6 chars: ~1.2km x 0.6km
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Encode latitude/longitude to a geohash string.
|
|
45
|
+
* Uses the standard ngeohash library.
|
|
46
|
+
*/
|
|
47
|
+
declare function encodeGeohash(lat: number, lng: number, precision?: number): string;
|
|
48
|
+
/**
|
|
49
|
+
* Decode a geohash to latitude/longitude center with error bounds.
|
|
50
|
+
* Uses the standard ngeohash library.
|
|
51
|
+
*/
|
|
52
|
+
declare function decodeGeohash(hash: string): {
|
|
53
|
+
lat: number;
|
|
54
|
+
lng: number;
|
|
55
|
+
latErr: number;
|
|
56
|
+
lngErr: number;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Get the 8 neighboring geohash cells.
|
|
60
|
+
* Returns up to 8 neighbors (fewer at poles or antimeridian).
|
|
61
|
+
* Uses the standard ngeohash library.
|
|
62
|
+
*/
|
|
63
|
+
declare function getNeighbors(hash: string): string[];
|
|
64
|
+
/**
|
|
65
|
+
* Get a 3x3 grid of geohash4 cells (center + 8 neighbors).
|
|
66
|
+
* Used for landing bonus expansions in Fly mode.
|
|
67
|
+
*
|
|
68
|
+
* @param geohash4 - Center geohash4 cell
|
|
69
|
+
* @returns Array of 9 geohash4 cells (center first, then neighbors)
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* getGeohash4Neighbors('c23n')
|
|
73
|
+
* // => ['c23n', 'c23p', 'c23q', 'c23j', 'c23m', 'c23k', 'c23h', 'c23e', 'c23s']
|
|
74
|
+
*/
|
|
75
|
+
declare function getGeohash4Neighbors(geohash4: string): string[];
|
|
76
|
+
/**
|
|
77
|
+
* Get the prefix of a geohash at a given precision.
|
|
78
|
+
* Simple helper for extracting geohash prefixes for directory organization.
|
|
79
|
+
*/
|
|
80
|
+
declare function getGeohashPrefix(geohash: string, precision: number): string;
|
|
81
|
+
/**
|
|
82
|
+
* Convert a geohash prefix to a hierarchical path.
|
|
83
|
+
*
|
|
84
|
+
* Examples:
|
|
85
|
+
* "9mud" -> "9/m/u/d"
|
|
86
|
+
* "9q8y" -> "9/q/8/y"
|
|
87
|
+
* "c24k" -> "c/2/4/k"
|
|
88
|
+
*
|
|
89
|
+
* This is used for organizing files in hierarchical directories to avoid
|
|
90
|
+
* thousands of folders in a single directory, which causes filesystem
|
|
91
|
+
* performance issues.
|
|
92
|
+
*/
|
|
93
|
+
declare function geohashToHierarchicalPath(geohash4: string): string;
|
|
94
|
+
/**
|
|
95
|
+
* Compute all geohash cells along the great-circle path between two geohash cells.
|
|
96
|
+
* Samples points along the spherical arc from `from` to `to`, encoding each to a
|
|
97
|
+
* geohash at the given precision, and returns the deduplicated list of intermediate
|
|
98
|
+
* cells (excluding `from` and `to`).
|
|
99
|
+
*
|
|
100
|
+
* Uses spherical linear interpolation (SLERP) via 3D unit vectors, which correctly
|
|
101
|
+
* handles antimeridian crossings and polar paths — both of which flat lat/lng
|
|
102
|
+
* interpolation gets wrong.
|
|
103
|
+
*/
|
|
104
|
+
declare function getGeohashPath(from: string, to: string, precision?: number): string[];
|
|
105
|
+
/**
|
|
106
|
+
* Check if a geohash cell overlaps with a bounding box.
|
|
107
|
+
* Custom implementation (not available in ngeohash).
|
|
108
|
+
*/
|
|
109
|
+
declare function geohashOverlapsBounds(hash: string, bounds: {
|
|
110
|
+
north: number;
|
|
111
|
+
south: number;
|
|
112
|
+
east: number;
|
|
113
|
+
west: number;
|
|
114
|
+
}): boolean;
|
|
115
|
+
|
|
116
|
+
export { calculateBearing, decodeGeohash, encodeGeohash, geohashOverlapsBounds, geohashToHierarchicalPath, getGeohash4Neighbors, getGeohashPath, getGeohashPrefix, getNeighbors, haversineDistance };
|
package/dist/spatial/index.js
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
calculateBearing,
|
|
3
|
+
decodeGeohash,
|
|
4
|
+
encodeGeohash,
|
|
5
|
+
geohashOverlapsBounds,
|
|
6
|
+
geohashToHierarchicalPath,
|
|
7
|
+
getGeohash4Neighbors,
|
|
8
|
+
getGeohashPath,
|
|
9
|
+
getGeohashPrefix,
|
|
10
|
+
getNeighbors,
|
|
11
|
+
haversineDistance
|
|
12
|
+
} from "../chunk-Q3ROPT5H.js";
|
|
13
|
+
export {
|
|
14
|
+
calculateBearing,
|
|
15
|
+
decodeGeohash,
|
|
16
|
+
encodeGeohash,
|
|
17
|
+
geohashOverlapsBounds,
|
|
18
|
+
geohashToHierarchicalPath,
|
|
19
|
+
getGeohash4Neighbors,
|
|
20
|
+
getGeohashPath,
|
|
21
|
+
getGeohashPrefix,
|
|
22
|
+
getNeighbors,
|
|
23
|
+
haversineDistance
|
|
24
|
+
};
|
|
3
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|