@bendyline/squisq 1.3.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Doc-Ch4tc3vv.d.ts → Doc-BeSeH2iX.d.ts} +118 -41
- package/dist/ImageEditDoc-BTIvw0oq.d.ts +84 -0
- package/dist/{chunk-CYQHG27J.js → chunk-2TMAWB4Y.js} +74 -1
- package/dist/chunk-2TMAWB4Y.js.map +1 -0
- package/dist/{chunk-OASJKWO5.js → chunk-3K5OG6KI.js} +92 -7
- package/dist/chunk-3K5OG6KI.js.map +1 -0
- package/dist/chunk-57CVQCFX.js +193 -0
- package/dist/chunk-57CVQCFX.js.map +1 -0
- package/dist/{chunk-QM5PKNPW.js → chunk-5WFRKURX.js} +1 -1
- package/dist/chunk-5WFRKURX.js.map +1 -0
- package/dist/chunk-B4EEON3N.js +1317 -0
- package/dist/chunk-B4EEON3N.js.map +1 -0
- package/dist/chunk-DBS6RIFL.js +81 -0
- package/dist/chunk-DBS6RIFL.js.map +1 -0
- package/dist/{chunk-MIBRIRGJ.js → chunk-FR2RBTKO.js} +3 -3
- package/dist/{chunk-MIBRIRGJ.js.map → chunk-FR2RBTKO.js.map} +1 -1
- package/dist/chunk-H3AXU4MJ.js +179 -0
- package/dist/chunk-H3AXU4MJ.js.map +1 -0
- package/dist/chunk-JELIRVDP.js +24 -0
- package/dist/chunk-JELIRVDP.js.map +1 -0
- package/dist/chunk-K32VJONL.js +193 -0
- package/dist/chunk-K32VJONL.js.map +1 -0
- package/dist/{chunk-6BAVXFYC.js → chunk-KSWJR66U.js} +218 -42
- package/dist/chunk-KSWJR66U.js.map +1 -0
- package/dist/{chunk-TSG2OSE6.js → chunk-MYIH7FWD.js} +3 -3
- package/dist/chunk-MYIH7FWD.js.map +1 -0
- package/dist/chunk-VLJJHDAC.js +218 -0
- package/dist/chunk-VLJJHDAC.js.map +1 -0
- package/dist/chunk-WMOI7FN3.js +182 -0
- package/dist/chunk-WMOI7FN3.js.map +1 -0
- package/dist/chunk-ZTX4PFFT.js +520 -0
- package/dist/chunk-ZTX4PFFT.js.map +1 -0
- package/dist/doc/index.d.ts +5 -10
- package/dist/doc/index.js +145 -7
- package/dist/doc/index.js.map +1 -1
- package/dist/generate/index.d.ts +99 -7
- package/dist/generate/index.js +16 -3
- package/dist/generate/index.js.map +1 -1
- package/dist/icons/index.d.ts +87 -0
- package/dist/icons/index.js +17 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/imageEdit/index.d.ts +216 -0
- package/dist/imageEdit/index.js +54 -0
- package/dist/imageEdit/index.js.map +1 -0
- package/dist/index.d.ts +21 -9
- package/dist/index.js +461 -8
- package/dist/index.js.map +1 -1
- package/dist/jsonForm/index.d.ts +191 -0
- package/dist/jsonForm/index.js +27 -0
- package/dist/jsonForm/index.js.map +1 -0
- package/dist/markdown/index.d.ts +265 -19
- package/dist/markdown/index.js +39 -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 +42 -0
- package/dist/recommend/index.js +10 -0
- package/dist/recommend/index.js.map +1 -0
- package/dist/schemas/index.d.ts +188 -10
- package/dist/schemas/index.js +120 -7
- package/dist/schemas/index.js.map +1 -1
- package/dist/spatial/index.d.ts +111 -3
- package/dist/spatial/index.js +24 -2
- package/dist/spatial/index.js.map +1 -1
- package/dist/storage/index.d.ts +159 -9
- package/dist/storage/index.js +20 -5
- package/dist/storage/index.js.map +1 -1
- package/dist/story/index.d.ts +53 -13
- package/dist/story/index.js +12 -4
- package/dist/themeLibrary-BHjJ0Qx6.d.ts +40 -0
- 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 +175 -6
- package/dist/transform/index.js +490 -3
- package/dist/transform/index.js.map +1 -1
- package/dist/{types-CkNttVSF.d.ts → types-BdZkdJ3z.d.ts} +17 -2
- package/dist/types-D98li1gV.d.ts +93 -0
- package/dist/versions/index.d.ts +128 -0
- package/dist/versions/index.js +35 -0
- package/dist/versions/index.js.map +1 -0
- package/package.json +28 -1
- package/src/__tests__/colorUtils.test.ts +112 -0
- package/src/__tests__/getLayers.test.ts +32 -7
- package/src/__tests__/iconResolve.test.ts +122 -0
- package/src/__tests__/imageEditState.test.ts +74 -0
- package/src/__tests__/imageEditVersions.test.ts +169 -0
- package/src/__tests__/inferDocumentTitle.test.ts +50 -0
- package/src/__tests__/jsonForm.chooseControl.test.ts +86 -0
- package/src/__tests__/jsonForm.evaluateWhen.test.ts +59 -0
- package/src/__tests__/jsonForm.inferSchema.test.ts +25 -0
- package/src/__tests__/jsonForm.pointer.test.ts +103 -0
- package/src/__tests__/markdownIcons.test.ts +104 -0
- package/src/__tests__/markdownToDoc.test.ts +19 -4
- package/src/__tests__/recommendTemplates.test.ts +183 -0
- package/src/__tests__/scopedContentContainer.test.ts +89 -0
- package/src/__tests__/slideshowGenerator.test.ts +1 -1
- package/src/__tests__/templateAnnotationParse.test.ts +42 -0
- package/src/__tests__/templates.test.ts +93 -9
- package/src/__tests__/themeCompile.test.ts +156 -0
- package/src/__tests__/themeValidator.test.ts +125 -0
- package/src/__tests__/versions.test.ts +415 -0
- package/src/doc/audioMapping.ts +55 -11
- package/src/doc/getLayers.ts +32 -21
- package/src/doc/markdownToDoc.ts +45 -7
- package/src/doc/templates/featureBlock.ts +202 -0
- package/src/doc/templates/fullBleedQuote.ts +13 -0
- package/src/doc/templates/index.ts +50 -16
- package/src/doc/templates/listBlock.ts +24 -5
- package/src/doc/templates/statHighlight.ts +13 -0
- package/src/doc/templates/titleBlock.ts +9 -0
- package/src/doc/utils/themeUtils.ts +8 -7
- package/src/generate/slideshowGenerator.ts +1 -1
- package/src/generate/templateMapper.ts +2 -2
- package/src/icons/iconData.ts +31 -0
- package/src/icons/index.ts +18 -0
- package/src/icons/resolve.ts +139 -0
- package/src/imageEdit/ImageEditVersionManager.ts +73 -0
- package/src/imageEdit/export.ts +326 -0
- package/src/imageEdit/index.ts +71 -0
- package/src/imageEdit/persistence.ts +62 -0
- package/src/imageEdit/state.ts +112 -0
- package/src/imageEdit/versionPaths.ts +57 -0
- package/src/imageEdit/versions.ts +231 -0
- package/src/index.ts +4 -0
- package/src/jsonForm/chooseControl.ts +88 -0
- package/src/jsonForm/evaluateWhen.ts +59 -0
- package/src/jsonForm/index.ts +22 -0
- package/src/jsonForm/inferSchema.ts +25 -0
- package/src/jsonForm/pointer.ts +109 -0
- package/src/jsonForm/types.ts +167 -0
- package/src/markdown/convert.ts +145 -5
- package/src/markdown/index.ts +3 -0
- package/src/markdown/types.ts +19 -2
- package/src/markdown/utils.ts +159 -0
- package/src/recommend/index.ts +16 -0
- package/src/recommend/templates.ts +273 -0
- package/src/schemas/BlockTemplates.ts +50 -7
- package/src/schemas/ImageEditDoc.ts +95 -0
- package/src/schemas/Theme.ts +98 -31
- package/src/schemas/colorUtils.ts +186 -0
- package/src/schemas/fontStacks.ts +257 -0
- package/src/schemas/index.ts +12 -0
- package/src/schemas/themeCompile.ts +203 -0
- package/src/schemas/themeLibrary.ts +18 -597
- package/src/schemas/themeValidator.ts +388 -0
- package/src/schemas/themes/bold.json +48 -0
- package/src/schemas/themes/cinematic.json +54 -0
- package/src/schemas/themes/documentary.json +49 -0
- package/src/schemas/themes/gezellig.json +44 -0
- package/src/schemas/themes/index.ts +53 -0
- package/src/schemas/themes/magazine.json +44 -0
- package/src/schemas/themes/minimalist.json +45 -0
- package/src/schemas/themes/morning-light.json +42 -0
- package/src/schemas/themes/standard-dark.json +50 -0
- package/src/schemas/themes/standard.json +42 -0
- package/src/schemas/themes/tech-dark.json +48 -0
- package/src/schemas/themes/warm-earth.json +50 -0
- package/src/storage/ScopedContentContainer.ts +113 -0
- package/src/storage/index.ts +1 -0
- package/src/versions/DocumentVersionManager.ts +70 -0
- package/src/versions/index.ts +54 -0
- package/src/versions/operations.ts +230 -0
- package/src/versions/paths.ts +66 -0
- package/src/versions/timestamp.ts +48 -0
- package/src/versions/types.ts +91 -0
- 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__/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 -167
- 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__/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__/markdownToDoc.test.d.ts +0 -2
- package/dist/__tests__/markdownToDoc.test.d.ts.map +0 -1
- package/dist/__tests__/markdownToDoc.test.js +0 -447
- package/dist/__tests__/markdownToDoc.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__/templates.test.d.ts +0 -2
- package/dist/__tests__/templates.test.d.ts.map +0 -1
- package/dist/__tests__/templates.test.js +0 -217
- package/dist/__tests__/templates.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/chunk-6BAVXFYC.js.map +0 -1
- package/dist/chunk-7GF6RDED.js +0 -82
- package/dist/chunk-7GF6RDED.js.map +0 -1
- package/dist/chunk-CYQHG27J.js.map +0 -1
- package/dist/chunk-F22AE6BY.js +0 -121
- package/dist/chunk-F22AE6BY.js.map +0 -1
- package/dist/chunk-FIQR4AJG.js +0 -517
- package/dist/chunk-FIQR4AJG.js.map +0 -1
- package/dist/chunk-OASJKWO5.js.map +0 -1
- package/dist/chunk-QM5PKNPW.js.map +0 -1
- package/dist/chunk-TSG2OSE6.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 -315
- 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 -103
- 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 -398
- 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/fullBleedQuote.d.ts +0 -13
- package/dist/doc/templates/fullBleedQuote.d.ts.map +0 -1
- package/dist/doc/templates/fullBleedQuote.js +0 -55
- 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 -105
- package/dist/doc/templates/index.d.ts.map +0 -1
- package/dist/doc/templates/index.js +0 -445
- 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 -92
- 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 -15
- package/dist/doc/templates/statHighlight.d.ts.map +0 -1
- package/dist/doc/templates/statHighlight.js +0 -102
- package/dist/doc/templates/statHighlight.js.map +0 -1
- package/dist/doc/templates/titleBlock.d.ts +0 -13
- package/dist/doc/templates/titleBlock.d.ts.map +0 -1
- package/dist/doc/templates/titleBlock.js +0 -95
- 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 -135
- 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/index.d.ts.map +0 -1
- package/dist/markdown/convert.d.ts +0 -71
- package/dist/markdown/convert.d.ts.map +0 -1
- package/dist/markdown/convert.js +0 -845
- 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 -516
- 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 -78
- package/dist/markdown/utils.d.ts.map +0 -1
- package/dist/markdown/utils.js +0 -153
- 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/schemas/BlockTemplates.d.ts +0 -600
- 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/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 -194
- package/dist/schemas/Theme.d.ts.map +0 -1
- package/dist/schemas/Theme.js +0 -97
- 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/index.d.ts.map +0 -1
- package/dist/schemas/themeLibrary.d.ts +0 -41
- package/dist/schemas/themeLibrary.d.ts.map +0 -1
- package/dist/schemas/themeLibrary.js +0 -597
- package/dist/schemas/themeLibrary.js.map +0 -1
- 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/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/themeLibrary-CEo2D4b6.d.ts +0 -44
- 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
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Photo Grid Template
|
|
3
|
-
*
|
|
4
|
-
* Displays 2-4 images in a tiled layout for visual variety.
|
|
5
|
-
* Layout adapts based on image count and viewport orientation:
|
|
6
|
-
*
|
|
7
|
-
* Landscape:
|
|
8
|
-
* - 2 images: side-by-side 50/50
|
|
9
|
-
* - 3 images: one large left (60%) + two stacked right
|
|
10
|
-
* - 4 images: 2x2 grid
|
|
11
|
-
*
|
|
12
|
-
* Portrait (9:16): images stack horizontally (top/bottom) instead of
|
|
13
|
-
* side-by-side, giving each image full width on narrow screens.
|
|
14
|
-
*
|
|
15
|
-
* This is shared code used by both site and efb-app doc renderers.
|
|
16
|
-
*/
|
|
17
|
-
import { scaledFontSize } from '../../schemas/BlockTemplates.js';
|
|
18
|
-
import { getThemeFont } from '../utils/themeUtils.js';
|
|
19
|
-
import { cleanCaption } from './captionUtils.js';
|
|
20
|
-
/** Gap between images as percentage */
|
|
21
|
-
const GAP = 0.5;
|
|
22
|
-
export function photoGrid(input, context) {
|
|
23
|
-
const { images, caption: rawCaption, ambientMotion } = input;
|
|
24
|
-
// Guard: images array is required
|
|
25
|
-
if (!images || images.length === 0)
|
|
26
|
-
return [];
|
|
27
|
-
const caption = rawCaption ? cleanCaption(rawCaption) : rawCaption;
|
|
28
|
-
const { theme, layout } = context;
|
|
29
|
-
const layers = [
|
|
30
|
-
// Black background (visible in gaps between images)
|
|
31
|
-
{
|
|
32
|
-
type: 'shape',
|
|
33
|
-
id: 'bg',
|
|
34
|
-
content: { shape: 'rect', fill: '#000000' },
|
|
35
|
-
position: { x: 0, y: 0, width: '100%', height: '100%' },
|
|
36
|
-
},
|
|
37
|
-
];
|
|
38
|
-
// Reserve bottom space for caption — more room in landscape for larger text
|
|
39
|
-
const captionHeight = caption ? (layout.stackColumns ? 18 : 22) : 0;
|
|
40
|
-
const gridHeight = 100 - captionHeight;
|
|
41
|
-
// Generate image positions based on count; stack vertically in portrait
|
|
42
|
-
const positions = getGridPositions(images.length, gridHeight, layout.stackColumns);
|
|
43
|
-
const altFontSize = scaledFontSize(24, context, false);
|
|
44
|
-
for (let i = 0; i < Math.min(images.length, 4); i++) {
|
|
45
|
-
const img = images[i];
|
|
46
|
-
const pos = positions[i];
|
|
47
|
-
// Placeholder behind image (visible if image fails to load)
|
|
48
|
-
layers.push({
|
|
49
|
-
type: 'shape',
|
|
50
|
-
id: `grid-placeholder-${i}`,
|
|
51
|
-
content: { shape: 'rect', fill: theme.colors.background },
|
|
52
|
-
position: { x: `${pos.x}%`, y: `${pos.y}%`, width: `${pos.w}%`, height: `${pos.h}%` },
|
|
53
|
-
});
|
|
54
|
-
// Alt-text label on placeholder
|
|
55
|
-
if (img.alt) {
|
|
56
|
-
layers.push({
|
|
57
|
-
type: 'text',
|
|
58
|
-
id: `grid-alt-${i}`,
|
|
59
|
-
content: {
|
|
60
|
-
text: img.alt,
|
|
61
|
-
style: {
|
|
62
|
-
fontSize: altFontSize,
|
|
63
|
-
fontFamily: getThemeFont(context, 'body'),
|
|
64
|
-
color: theme.colors.textMuted,
|
|
65
|
-
textAlign: 'center',
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
position: { x: `${pos.x + pos.w / 2}%`, y: `${pos.y + pos.h / 2}%`, anchor: 'center' },
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
// Image layer (covers placeholder when loaded)
|
|
72
|
-
layers.push({
|
|
73
|
-
type: 'image',
|
|
74
|
-
id: `grid-img-${i}`,
|
|
75
|
-
content: {
|
|
76
|
-
src: img.src,
|
|
77
|
-
alt: img.alt,
|
|
78
|
-
fit: 'cover',
|
|
79
|
-
credit: img.credit,
|
|
80
|
-
license: img.license,
|
|
81
|
-
},
|
|
82
|
-
position: {
|
|
83
|
-
x: `${pos.x}%`,
|
|
84
|
-
y: `${pos.y}%`,
|
|
85
|
-
width: `${pos.w}%`,
|
|
86
|
-
height: `${pos.h}%`,
|
|
87
|
-
},
|
|
88
|
-
// Apply ambient motion to the first (largest) image only
|
|
89
|
-
animation: i === 0 && ambientMotion
|
|
90
|
-
? { type: ambientMotion, duration: 15 }
|
|
91
|
-
: { type: 'fadeIn', duration: 1, delay: 0.2 * i },
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
// Caption with gradient overlay
|
|
95
|
-
if (caption) {
|
|
96
|
-
const captionFontSize = scaledFontSize(layout.stackColumns ? 28 : 40, context, false);
|
|
97
|
-
layers.push({
|
|
98
|
-
type: 'shape',
|
|
99
|
-
id: 'caption-bg',
|
|
100
|
-
content: {
|
|
101
|
-
shape: 'rect',
|
|
102
|
-
fill: 'linear-gradient(transparent, rgba(0,0,0,0.8))',
|
|
103
|
-
},
|
|
104
|
-
position: { x: 0, y: `${gridHeight - 4}%`, width: '100%', height: `${captionHeight + 4}%` },
|
|
105
|
-
});
|
|
106
|
-
layers.push({
|
|
107
|
-
type: 'text',
|
|
108
|
-
id: 'caption',
|
|
109
|
-
content: {
|
|
110
|
-
text: caption,
|
|
111
|
-
style: {
|
|
112
|
-
fontSize: captionFontSize,
|
|
113
|
-
fontFamily: getThemeFont(context, 'body'),
|
|
114
|
-
color: theme.colors.text,
|
|
115
|
-
textAlign: 'center',
|
|
116
|
-
shadow: true,
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
position: {
|
|
120
|
-
x: '50%',
|
|
121
|
-
y: `${gridHeight + (layout.stackColumns ? captionHeight / 2 : captionHeight * 0.3)}%`,
|
|
122
|
-
anchor: 'center',
|
|
123
|
-
width: '90%',
|
|
124
|
-
},
|
|
125
|
-
animation: { type: 'fadeIn', duration: 1, delay: 0.5 },
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
return layers;
|
|
129
|
-
}
|
|
130
|
-
function getGridPositions(count, gridHeight, stacked) {
|
|
131
|
-
const halfW = 50 - GAP / 2;
|
|
132
|
-
const halfH = gridHeight / 2 - GAP / 2;
|
|
133
|
-
switch (count) {
|
|
134
|
-
case 2:
|
|
135
|
-
if (stacked) {
|
|
136
|
-
// Portrait: stack top/bottom
|
|
137
|
-
return [
|
|
138
|
-
{ x: 0, y: 0, w: 100, h: halfH },
|
|
139
|
-
{ x: 0, y: gridHeight / 2 + GAP / 2, w: 100, h: halfH },
|
|
140
|
-
];
|
|
141
|
-
}
|
|
142
|
-
return [
|
|
143
|
-
{ x: 0, y: 0, w: halfW, h: gridHeight },
|
|
144
|
-
{ x: 50 + GAP / 2, y: 0, w: halfW, h: gridHeight },
|
|
145
|
-
];
|
|
146
|
-
case 3: {
|
|
147
|
-
if (stacked) {
|
|
148
|
-
// Portrait: stack all three vertically
|
|
149
|
-
const thirdH = gridHeight / 3 - (GAP * 2) / 3;
|
|
150
|
-
return [
|
|
151
|
-
{ x: 0, y: 0, w: 100, h: thirdH },
|
|
152
|
-
{ x: 0, y: gridHeight / 3 + GAP / 3, w: 100, h: thirdH },
|
|
153
|
-
{ x: 0, y: (gridHeight * 2) / 3 + (GAP * 2) / 3, w: 100, h: thirdH },
|
|
154
|
-
];
|
|
155
|
-
}
|
|
156
|
-
const leftW = 60 - GAP / 2;
|
|
157
|
-
const rightW = 40 - GAP / 2;
|
|
158
|
-
return [
|
|
159
|
-
{ x: 0, y: 0, w: leftW, h: gridHeight },
|
|
160
|
-
{ x: 60 + GAP / 2, y: 0, w: rightW, h: halfH },
|
|
161
|
-
{ x: 60 + GAP / 2, y: gridHeight / 2 + GAP / 2, w: rightW, h: halfH },
|
|
162
|
-
];
|
|
163
|
-
}
|
|
164
|
-
case 4:
|
|
165
|
-
default:
|
|
166
|
-
// 2x2 grid works well in both orientations
|
|
167
|
-
return [
|
|
168
|
-
{ x: 0, y: 0, w: halfW, h: halfH },
|
|
169
|
-
{ x: 50 + GAP / 2, y: 0, w: halfW, h: halfH },
|
|
170
|
-
{ x: 0, y: gridHeight / 2 + GAP / 2, w: halfW, h: halfH },
|
|
171
|
-
{ x: 50 + GAP / 2, y: gridHeight / 2 + GAP / 2, w: halfW, h: halfH },
|
|
172
|
-
];
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
//# sourceMappingURL=photoGrid.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"photoGrid.js","sourceRoot":"","sources":["../../../src/doc/templates/photoGrid.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,uCAAuC;AACvC,MAAM,GAAG,GAAG,GAAG,CAAC;AAEhB,MAAM,UAAU,SAAS,CAAC,KAAqB,EAAE,OAAwB;IACvE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAE7D,kCAAkC;IAClC,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC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C,EAAE,CAAC,EAAE,EAAE,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC,EAAE,UAAU,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE;aACtE,CAAC;QACJ,CAAC;QACD,KAAK,CAAC,CAAC;QACP;YACE,2CAA2C;YAC3C,OAAO;gBACL,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE;gBAClC,EAAE,CAAC,EAAE,EAAE,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE;gBAC7C,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,UAAU,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE;gBACzD,EAAE,CAAC,EAAE,EAAE,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC,EAAE,UAAU,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE;aACrE,CAAC;IACN,CAAC;AACH,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pull Quote Template
|
|
3
|
-
*
|
|
4
|
-
* Quote text over a full-bleed background image with dark overlay.
|
|
5
|
-
* Cinematic alternative to quoteBlock when a high-quality image is available.
|
|
6
|
-
* Combines the visual impact of imageWithCaption with the text focus of quoteBlock.
|
|
7
|
-
*
|
|
8
|
-
* This is shared code used by both site and efb-app doc renderers.
|
|
9
|
-
*/
|
|
10
|
-
import type { Layer } from '../../schemas/Doc.js';
|
|
11
|
-
import type { PullQuoteInput, TemplateContext } from '../../schemas/BlockTemplates.js';
|
|
12
|
-
export declare function pullQuote(input: PullQuoteInput, context: TemplateContext): Layer[];
|
|
13
|
-
//# sourceMappingURL=pullQuote.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pullQuote.d.ts","sourceRoot":"","sources":["../../../src/doc/templates/pullQuote.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAIvF,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,GAAG,KAAK,EAAE,CA2GlF"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pull Quote Template
|
|
3
|
-
*
|
|
4
|
-
* Quote text over a full-bleed background image with dark overlay.
|
|
5
|
-
* Cinematic alternative to quoteBlock when a high-quality image is available.
|
|
6
|
-
* Combines the visual impact of imageWithCaption with the text focus of quoteBlock.
|
|
7
|
-
*
|
|
8
|
-
* This is shared code used by both site and efb-app doc renderers.
|
|
9
|
-
*/
|
|
10
|
-
import { scaledFontSize } from '../../schemas/BlockTemplates.js';
|
|
11
|
-
import { getThemeFont } from '../utils/themeUtils.js';
|
|
12
|
-
export function pullQuote(input, context) {
|
|
13
|
-
const { text, attribution, backgroundImage, ambientMotion } = input;
|
|
14
|
-
// Guard: backgroundImage is required
|
|
15
|
-
if (!backgroundImage?.src)
|
|
16
|
-
return [];
|
|
17
|
-
const quoteFontSize = scaledFontSize(52, context, true);
|
|
18
|
-
const attrFontSize = scaledFontSize(24, context, false);
|
|
19
|
-
const decoFontSize = scaledFontSize(200, context, true);
|
|
20
|
-
const layers = [
|
|
21
|
-
// Full-bleed background image
|
|
22
|
-
{
|
|
23
|
-
type: 'image',
|
|
24
|
-
id: 'bg-image',
|
|
25
|
-
content: {
|
|
26
|
-
src: backgroundImage.src,
|
|
27
|
-
alt: backgroundImage.alt,
|
|
28
|
-
fit: 'cover',
|
|
29
|
-
credit: backgroundImage.credit,
|
|
30
|
-
license: backgroundImage.license,
|
|
31
|
-
},
|
|
32
|
-
position: { x: 0, y: 0, width: '100%', height: '100%' },
|
|
33
|
-
animation: ambientMotion ? { type: ambientMotion, duration: 15 } : undefined,
|
|
34
|
-
},
|
|
35
|
-
// Dark overlay for text readability
|
|
36
|
-
{
|
|
37
|
-
type: 'shape',
|
|
38
|
-
id: 'overlay',
|
|
39
|
-
content: {
|
|
40
|
-
shape: 'rect',
|
|
41
|
-
fill: 'rgba(0, 0, 0, 0.55)',
|
|
42
|
-
},
|
|
43
|
-
position: { x: 0, y: 0, width: '100%', height: '100%' },
|
|
44
|
-
},
|
|
45
|
-
// Decorative quotation mark
|
|
46
|
-
{
|
|
47
|
-
type: 'text',
|
|
48
|
-
id: 'deco-quote',
|
|
49
|
-
content: {
|
|
50
|
-
text: '\u201C',
|
|
51
|
-
style: {
|
|
52
|
-
fontSize: decoFontSize,
|
|
53
|
-
fontFamily: getThemeFont(context, 'title'),
|
|
54
|
-
color: 'rgba(255, 255, 255, 0.08)',
|
|
55
|
-
textAlign: 'center',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
position: {
|
|
59
|
-
x: '50%',
|
|
60
|
-
y: '20%',
|
|
61
|
-
anchor: 'center',
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
// Quote text
|
|
65
|
-
{
|
|
66
|
-
type: 'text',
|
|
67
|
-
id: 'quote-text',
|
|
68
|
-
content: {
|
|
69
|
-
text,
|
|
70
|
-
style: {
|
|
71
|
-
fontSize: quoteFontSize,
|
|
72
|
-
fontFamily: getThemeFont(context, 'title'),
|
|
73
|
-
color: '#ffffff',
|
|
74
|
-
textAlign: 'center',
|
|
75
|
-
lineHeight: 1.5,
|
|
76
|
-
shadow: true,
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
position: {
|
|
80
|
-
x: '50%',
|
|
81
|
-
y: attribution ? '45%' : '50%',
|
|
82
|
-
anchor: 'center',
|
|
83
|
-
width: '80%',
|
|
84
|
-
},
|
|
85
|
-
animation: { type: 'fadeIn', duration: 2 },
|
|
86
|
-
},
|
|
87
|
-
];
|
|
88
|
-
// Attribution
|
|
89
|
-
if (attribution) {
|
|
90
|
-
layers.push({
|
|
91
|
-
type: 'text',
|
|
92
|
-
id: 'attribution',
|
|
93
|
-
content: {
|
|
94
|
-
text: `\u2014 ${attribution}`,
|
|
95
|
-
style: {
|
|
96
|
-
fontSize: attrFontSize,
|
|
97
|
-
fontFamily: getThemeFont(context, 'body'),
|
|
98
|
-
color: 'rgba(255, 255, 255, 0.7)',
|
|
99
|
-
textAlign: 'center',
|
|
100
|
-
shadow: true,
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
position: {
|
|
104
|
-
x: '50%',
|
|
105
|
-
y: '72%',
|
|
106
|
-
anchor: 'center',
|
|
107
|
-
},
|
|
108
|
-
animation: { type: 'fadeIn', duration: 1, delay: 1.5 },
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
return layers;
|
|
112
|
-
}
|
|
113
|
-
//# sourceMappingURL=pullQuote.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pullQuote.js","sourceRoot":"","sources":["../../../src/doc/templates/pullQuote.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,MAAM,UAAU,SAAS,CAAC,KAAqB,EAAE,OAAwB;IACvE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAEpE,qCAAqC;IACrC,IAAI,CAAC,eAAe,EAAE,GAAG;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,aAAa,GAAG,cAAc,CAAC,EAAE,EAA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AAC,EAAE,KAAK,EAAE,GAAG,EAAE;SACvD,CAAC,CAAC;IACL,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Quote Block Template
|
|
3
|
-
*
|
|
4
|
-
* Large centered quote with optional attribution.
|
|
5
|
-
* Good for impactful statements or descriptions.
|
|
6
|
-
* Adapts font sizes and positioning for different viewports.
|
|
7
|
-
*
|
|
8
|
-
* Supports optional accent images that appear as tasteful side/bottom strips.
|
|
9
|
-
*
|
|
10
|
-
* This is shared code used by both site and efb-app doc renderers.
|
|
11
|
-
*/
|
|
12
|
-
import type { Layer } from '../../schemas/Doc.js';
|
|
13
|
-
import type { QuoteBlockInput, TemplateContext } from '../../schemas/BlockTemplates.js';
|
|
14
|
-
export declare function quoteBlock(input: QuoteBlockInput, context: TemplateContext): Layer[];
|
|
15
|
-
//# sourceMappingURL=quoteBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quoteBlock.d.ts","sourceRoot":"","sources":["../../../src/doc/templates/quoteBlock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAMxF,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,eAAe,GAAG,KAAK,EAAE,CAgGpF"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Quote Block Template
|
|
3
|
-
*
|
|
4
|
-
* Large centered quote with optional attribution.
|
|
5
|
-
* Good for impactful statements or descriptions.
|
|
6
|
-
* Adapts font sizes and positioning for different viewports.
|
|
7
|
-
*
|
|
8
|
-
* Supports optional accent images that appear as tasteful side/bottom strips.
|
|
9
|
-
*
|
|
10
|
-
* This is shared code used by both site and efb-app doc renderers.
|
|
11
|
-
*/
|
|
12
|
-
import { scaledFontSize } from '../../schemas/BlockTemplates.js';
|
|
13
|
-
import { getThemeFont } from '../utils/themeUtils.js';
|
|
14
|
-
import { createAccentLayers, getAccentLayout, adjustY, DEFAULT_LAYOUT } from './accentImage.js';
|
|
15
|
-
import { createBackgroundLayer } from './captionUtils.js';
|
|
16
|
-
export function quoteBlock(input, context) {
|
|
17
|
-
const { quote, attribution, accentImage } = input;
|
|
18
|
-
const { theme, layout } = context;
|
|
19
|
-
// Get layout adjustments if accent image is present
|
|
20
|
-
const accentLayout = accentImage ? getAccentLayout(accentImage.position) : DEFAULT_LAYOUT;
|
|
21
|
-
// Scale font sizes for viewport
|
|
22
|
-
const quoteFontSize = scaledFontSize(48, context, true);
|
|
23
|
-
const attrFontSize = scaledFontSize(24, context, false);
|
|
24
|
-
// Decorative quotation mark font size
|
|
25
|
-
const decorativeQuoteFontSize = scaledFontSize(280, context, true);
|
|
26
|
-
const layers = [
|
|
27
|
-
createBackgroundLayer('bg', `linear-gradient(160deg, ${theme.colors.backgroundLight} 0%, #1e2636 100%)`),
|
|
28
|
-
];
|
|
29
|
-
// Add accent image layers (behind text, after background)
|
|
30
|
-
if (accentImage) {
|
|
31
|
-
layers.push(...createAccentLayers(accentImage, input.id));
|
|
32
|
-
}
|
|
33
|
-
// Decorative opening quotation mark — oversized, low-opacity behind quote
|
|
34
|
-
layers.push({
|
|
35
|
-
type: 'text',
|
|
36
|
-
id: 'deco-quote',
|
|
37
|
-
content: {
|
|
38
|
-
text: '\u201C',
|
|
39
|
-
style: {
|
|
40
|
-
fontSize: decorativeQuoteFontSize,
|
|
41
|
-
fontFamily: getThemeFont(context, 'title'),
|
|
42
|
-
color: 'rgba(255, 255, 255, 0.06)',
|
|
43
|
-
textAlign: 'center',
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
position: {
|
|
47
|
-
x: accentLayout.textCenterX,
|
|
48
|
-
y: adjustY('18%', accentLayout),
|
|
49
|
-
anchor: 'center',
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
// Quote text - positioned based on accent layout
|
|
53
|
-
const quoteY = attribution ? layout.primaryY : '50%';
|
|
54
|
-
layers.push({
|
|
55
|
-
type: 'text',
|
|
56
|
-
id: 'quote',
|
|
57
|
-
content: {
|
|
58
|
-
text: quote,
|
|
59
|
-
style: {
|
|
60
|
-
fontSize: quoteFontSize,
|
|
61
|
-
fontFamily: getThemeFont(context, 'title'),
|
|
62
|
-
color: theme.colors.text,
|
|
63
|
-
textAlign: 'center',
|
|
64
|
-
lineHeight: 1.6,
|
|
65
|
-
shadow: true,
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
position: {
|
|
69
|
-
x: accentLayout.textCenterX,
|
|
70
|
-
y: adjustY(quoteY, accentLayout),
|
|
71
|
-
anchor: 'center',
|
|
72
|
-
width: accentLayout.textWidth,
|
|
73
|
-
},
|
|
74
|
-
animation: { type: 'fadeIn', duration: 2 },
|
|
75
|
-
});
|
|
76
|
-
// Add attribution if provided
|
|
77
|
-
if (attribution) {
|
|
78
|
-
layers.push({
|
|
79
|
-
type: 'text',
|
|
80
|
-
id: 'attribution',
|
|
81
|
-
content: {
|
|
82
|
-
text: `— ${attribution}`,
|
|
83
|
-
style: {
|
|
84
|
-
fontSize: attrFontSize,
|
|
85
|
-
fontFamily: getThemeFont(context, 'body'),
|
|
86
|
-
color: theme.colors.textMuted,
|
|
87
|
-
textAlign: 'center',
|
|
88
|
-
shadow: !!accentImage,
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
position: {
|
|
92
|
-
x: accentLayout.textCenterX,
|
|
93
|
-
y: adjustY(layout.captionY, accentLayout),
|
|
94
|
-
anchor: 'center',
|
|
95
|
-
},
|
|
96
|
-
animation: { type: 'fadeIn', duration: 1, delay: 1.5 },
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
return layers;
|
|
100
|
-
}
|
|
101
|
-
//# sourceMappingUR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9B,IAAI,WAAW,EAAE,CAAC;QAChB,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,MAAM;YACZ,EAAE,EAAE,aAAa;YACjB,OAAO,EAAE;gBACP,IAAI,EAAE,KAAK,WAAW,EAAE;gBACxB,KAAK,EAAE;oBACL,QAAQ,EAAE,YAAY;oBACtB,UAAU,EAAE,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC;oBACzC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS;oBAC7B,SAAS,EAAE,QAAQ;oBACnB,MAAM,EAAE,CAAC,CAAC,WAAW;iBACtB;aACF;YACD,QAAQ,EAAE;gBACR,CAAC,EAAE,YAAY,CAAC,WAAW;gBAC3B,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,YAAY,CAAC;gBACzC,MAAM,EAAE,QAAQ;aACjB;YACD,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE;SACvD,CAAC,CAAC;IACL,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Section Header Template
|
|
3
|
-
*
|
|
4
|
-
* Section title card with optional background image.
|
|
5
|
-
* Used to introduce new sections of a story.
|
|
6
|
-
* When an image is provided, displays like a title slide with the image as background.
|
|
7
|
-
* Without an image, falls back to a colored background.
|
|
8
|
-
*
|
|
9
|
-
* This is shared code used by both site and efb-app doc renderers.
|
|
10
|
-
*/
|
|
11
|
-
import type { Layer } from '../../schemas/Doc.js';
|
|
12
|
-
import type { SectionHeaderInput, TemplateContext } from '../../schemas/BlockTemplates.js';
|
|
13
|
-
export declare function sectionHeader(input: SectionHeaderInput, context: TemplateContext): Layer[];
|
|
14
|
-
//# sourceMappingURL=sectionHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sectionHeader.d.ts","sourceRoot":"","sources":["../../../src/doc/templates/sectionHeader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAiB,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAI3F,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,eAAe,GAAG,KAAK,EAAE,CAyF1F"}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Section Header Template
|
|
3
|
-
*
|
|
4
|
-
* Section title card with optional background image.
|
|
5
|
-
* Used to introduce new sections of a story.
|
|
6
|
-
* When an image is provided, displays like a title slide with the image as background.
|
|
7
|
-
* Without an image, falls back to a colored background.
|
|
8
|
-
*
|
|
9
|
-
* This is shared code used by both site and efb-app doc renderers.
|
|
10
|
-
*/
|
|
11
|
-
import { scaledFontSize } from '../../schemas/BlockTemplates.js';
|
|
12
|
-
import { resolveColorScheme, getThemeFont } from '../utils/themeUtils.js';
|
|
13
|
-
export function sectionHeader(input, context) {
|
|
14
|
-
const { title = '', colorScheme = 'blue', imageSrc, imageAlt, ambientMotion } = input;
|
|
15
|
-
const { layout } = context;
|
|
16
|
-
const colors = resolveColorScheme(context, colorScheme);
|
|
17
|
-
// Scale font sizes for viewport
|
|
18
|
-
const titleFontSize = scaledFontSize(72, context, true);
|
|
19
|
-
const layers = [];
|
|
20
|
-
// Background - either image or solid color
|
|
21
|
-
if (imageSrc) {
|
|
22
|
-
// Image background with Ken Burns effect
|
|
23
|
-
layers.push({
|
|
24
|
-
type: 'image',
|
|
25
|
-
id: 'bg-image',
|
|
26
|
-
content: {
|
|
27
|
-
src: imageSrc,
|
|
28
|
-
alt: imageAlt || title,
|
|
29
|
-
fit: 'cover',
|
|
30
|
-
},
|
|
31
|
-
position: { x: 0, y: 0, width: '100%', height: '100%' },
|
|
32
|
-
animation: ambientMotion
|
|
33
|
-
? { type: ambientMotion, duration: 8 }
|
|
34
|
-
: { type: 'slowZoom', duration: 8, direction: 'in' },
|
|
35
|
-
});
|
|
36
|
-
// Dark overlay for text readability
|
|
37
|
-
layers.push({
|
|
38
|
-
type: 'shape',
|
|
39
|
-
id: 'overlay',
|
|
40
|
-
content: {
|
|
41
|
-
shape: 'rect',
|
|
42
|
-
fill: 'rgba(0, 0, 0, 0.5)',
|
|
43
|
-
},
|
|
44
|
-
position: { x: 0, y: 0, width: '100%', height: '100%' },
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
// Solid color background
|
|
49
|
-
layers.push({
|
|
50
|
-
type: 'shape',
|
|
51
|
-
id: 'bg',
|
|
52
|
-
content: {
|
|
53
|
-
shape: 'rect',
|
|
54
|
-
fill: colors.bg,
|
|
55
|
-
},
|
|
56
|
-
position: { x: 0, y: 0, width: '100%', height: '100%' },
|
|
57
|
-
});
|
|
58
|
-
// Decorative lines above and below title
|
|
59
|
-
layers.push({
|
|
60
|
-
type: 'shape',
|
|
61
|
-
id: 'line-top',
|
|
62
|
-
content: { shape: 'rect', fill: `${colors.text}33` },
|
|
63
|
-
position: { x: '50%', y: '40%', width: '20%', height: '2px', anchor: 'center' },
|
|
64
|
-
});
|
|
65
|
-
layers.push({
|
|
66
|
-
type: 'shape',
|
|
67
|
-
id: 'line-bottom',
|
|
68
|
-
content: { shape: 'rect', fill: `${colors.text}33` },
|
|
69
|
-
position: { x: '50%', y: '60%', width: '20%', height: '2px', anchor: 'center' },
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
// Section title - white text with shadow for readability over images
|
|
73
|
-
layers.push({
|
|
74
|
-
type: 'text',
|
|
75
|
-
id: 'title',
|
|
76
|
-
content: {
|
|
77
|
-
text: title,
|
|
78
|
-
style: {
|
|
79
|
-
fontSize: titleFontSize,
|
|
80
|
-
fontFamily: getThemeFont(context, 'title'),
|
|
81
|
-
fontWeight: 'bold',
|
|
82
|
-
color: imageSrc ? '#ffffff' : colors.text,
|
|
83
|
-
textAlign: 'center',
|
|
84
|
-
shadow: true,
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
position: {
|
|
88
|
-
x: '50%',
|
|
89
|
-
y: '50%',
|
|
90
|
-
anchor: 'center',
|
|
91
|
-
width: layout.maxTextWidth,
|
|
92
|
-
},
|
|
93
|
-
animation: { type: 'fadeIn', duration: 1.5 },
|
|
94
|
-
});
|
|
95
|
-
return layers;
|
|
96
|
-
}
|
|
97
|
-
//# sourceMappingURL=sectionHeader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sectionHeader.js","sourceRoot":"","sources":["../../../src/doc/templates/sectionHeader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE1E,MAAM,UAAU,aAAa,CAAC,KAAyB,EAAE,OAAwB;IAC/E,MAAM,EAAE,KAAK,GAAG,EAAE,EAAE,WAAW,GAAG,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IACtF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3B,MAAM,MAAM,GAAG,kBAAkB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAExD,gCAAgC;IAChC,MAAM,aAAa,GAAG,cAAc,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IAExD,MAAM,MAAM,GAAY,EAAE,CAAC;IAE3B,2CAA2C;IAC3C,IAAI,QAAQ,EAAE,CAAC;QACb,yCAAyC;QACzC,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,OAAO;YACb,EAAE,EAAE,UAAU;YACd,OAAO,EAAE;gBACP,GAAG,EAAE,QAAQ;gBACb,GAAG,EAAE,QAAQ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
4
|
-
* Large statistic/number with description and optional detail.
|
|
5
|
-
* Great for emphasizing key data points.
|
|
6
|
-
* Adapts font sizes and positioning for different viewports.
|
|
7
|
-
*
|
|
8
|
-
* Supports optional accent images that appear as tasteful side/bottom strips.
|
|
9
|
-
*
|
|
10
|
-
* This is shared code used by both site and efb-app doc renderers.
|
|
11
|
-
*/
|
|
12
|
-
import type { Layer } from '../../schemas/Doc.js';
|
|
13
|
-
import type { StatHighlightInput, TemplateContext } from '../../schemas/BlockTemplates.js';
|
|
14
|
-
export declare function statHighlight(input: StatHighlightInput, context: TemplateContext): Layer[];
|
|
15
|
-
//# sourceMappingURL=statHighlight.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"statHighlight.d.ts","sourceRoot":"","sources":["../../../src/doc/templates/statHighlight.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAM3F,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,eAAe,GAAG,KAAK,EAAE,CAgG1F"}
|