@bendyline/squisq 1.4.1 → 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 +4 -4
- package/dist/doc/index.js +124 -6
- package/dist/generate/index.d.ts +9 -2
- package/dist/generate/index.js +1 -1
- package/dist/icons/index.d.ts +3 -26
- package/dist/icons/index.js +13 -0
- 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 +11 -5
- package/dist/imageEdit/index.js +4 -1
- package/dist/index.d.ts +11 -8
- package/dist/index.js +243 -24
- package/dist/inlineIconMarker-CiE8Hlvz.d.ts +59 -0
- package/dist/markdown/index.d.ts +212 -3
- package/dist/markdown/index.js +40 -7
- package/dist/recommend/index.d.ts +1 -1
- package/dist/recommend/index.js +3 -2
- package/dist/schemas/index.d.ts +28 -8
- package/dist/schemas/index.js +35 -5
- package/dist/spatial/index.d.ts +9 -4
- package/dist/spatial/index.js +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/transform/index.d.ts +48 -10
- package/dist/transform/index.js +17 -481
- package/dist/transform/index.js.map +1 -1
- package/dist/{types-BdZkdJ3z.d.ts → types-DlAZ7MW4.d.ts} +115 -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/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/index.d.ts
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
export { B as BoundingBox, C as Coordinates } from './Types-sh2VRxfo.js';
|
|
2
|
-
export { A as AccentImage, a as AccentPosition, b as
|
|
3
|
-
export { D as
|
|
4
|
-
export {
|
|
2
|
+
export { A as AccentImage, a as AccentPosition, b as AmbientGradientConfig, c as Animation, d as AnimationType, e as AudioBookmark, f as AudioSegment, g as AudioTimingData, h as AudioTrack, B as Block, i as BlockConnection, j as BorderStyle, C as CaptionPhrase, k as CaptionTrack, l as CaptionWord, m as ColorScheme, n as ComparisonBarInput, o as CornerBrandingConfig, p as CustomTemplateDefinition, D as DARK_SURFACE, q as DEFAULT_DOC_FONT, r as DEFAULT_TITLE_FONT, s as DataTableInput, t as DateEventInput, u as DeepPartial, 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, I as FontFamily, J as FontFamilyKind, 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, ax as Theme, ay as ThemeColorPalette, az as ThemeColorScheme, aA as ThemeSchemaVersion, aB as ThemeSeedColors, 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';
|
|
3
|
+
export { D as DEFAULT_TRANSITION_DURATION_SECONDS, H as HeadingAttributes, a as HeadingTemplateAnnotation, b as HtmlComment, c as HtmlElement, d as HtmlNode, e as HtmlText, M as MarkdownBlockNode, f as MarkdownBlockquote, g as MarkdownBreak, h as MarkdownCodeBlock, i as MarkdownContainerDirective, j as MarkdownDefinitionDescription, k as MarkdownDefinitionList, l as MarkdownDefinitionTerm, m as MarkdownDocument, n as MarkdownEmphasis, o as MarkdownFootnoteDefinition, p as MarkdownFootnoteReference, q as MarkdownHeading, r as MarkdownHtmlBlock, s as MarkdownImage, t as MarkdownImageReference, u as MarkdownInlineCode, v as MarkdownInlineHtml, w as MarkdownInlineMath, x as MarkdownInlineNode, y as MarkdownLeafDirective, z as MarkdownLink, A as MarkdownLinkDefinition, B as MarkdownLinkReference, C as MarkdownList, E as MarkdownListItem, F as MarkdownMathBlock, G as MarkdownMention, I as MarkdownNode, J as MarkdownParagraph, K as MarkdownPoint, L as MarkdownSourcePosition, N as MarkdownStrikethrough, O as MarkdownStrong, P as MarkdownTable, Q as MarkdownTableCell, R as MarkdownTableRow, S as MarkdownText, T as MarkdownTextDirective, U as MarkdownThematicBreak, V as ParseOptions, W as StringifyOptions, 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';
|
|
4
|
+
export { D as DEFAULT_THEME, a as DEFAULT_THEME_ID, T as THEMES, g as getAvailableThemes, b as getThemeSummaries, r as resolveTheme } from './themeLibrary-DQQKuRMx.js';
|
|
5
|
+
export { AVAILABLE_FONT_STACKS, CompileOptions, ContrastPreset, FONT_FALLBACKS, FontStack, STARTER_THEME, ValidationError, ValidationResult, assertTheme, buildGoogleFontsUrl, compileTheme, contrastRatio, deriveColorPalette, deriveScale, fontStack, getFontStack, hexHueDegrees, isHex, oklchDarken, oklchLighten, oklchSetChroma, parseTheme, pickContrastingText, relativeLuminance, resolveFontFamily, serializeTheme, validateTheme, withAlpha } from './schemas/index.js';
|
|
5
6
|
export { M as MediaEntry, a as MediaProvider } from './MediaProvider-wpSe21B3.js';
|
|
6
|
-
export { E as EditorLayerMeta, I as ImageEditCanvas, a as ImageEditDoc, b as ImageEditLayer, c as ImageEditLayerKind, d as ImageEditMeta } from './ImageEditDoc-
|
|
7
|
-
export { AccentLayout, AudioSegmentTiming, CoverBlockInput, DEFAULT_LAYOUT, DocStylePreset, ExpandDocBlocksOptions, MarkdownToDocOptions, RenderContext, TEMPLATE_ALIASES, adjustY, comparisonBar, countBlocks, coverBlock, createAccentLayers, dataTable, dateEvent, definitionCard, docToMarkdown, expandCoverBlock, expandDocBlocks, expandPersistentLayers, expandTemplateBlock, factCard, flattenBlocks, fullBleedQuote, getAccentLayout, getAnimationProgress, getAnimationStyle, getAvailableTemplates, getBlockDepth, getDefaultAnimation, getDefaultAnimationDuration, getDocStyleConfig, getLayers, getOverlayOpacity, getTemplateHint, getThemeFont, getTransitionClass, hasTemplate, imageWithCaption, leftFeature, listBlock, mapBlock, markdownToDoc, photoGrid, pullQuote, quoteBlock, resolveAudioMapping, resolveColorScheme, resolveTemplateName, rightFeature, scaleAnimationDuration, scoreTextSimilarity, sectionHeader, shouldUseShadow, statHighlight, templateRegistry, themedFontSize, titleBlock, twoColumn, videoPullQuote, videoWithCaption } from './story/index.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
|
+
export { AccentLayout, AudioSegmentTiming, CONTAINER_TEMPLATES, ClipBox, ConnectorRouting, CoverBlockInput, DEFAULT_LAYOUT, DataFenceParseResult, DeriveTemplateInputsOptions, DiagramEdge, DiagramLayout, DiagramLayoutOptions, DiagramNodePosition, DocStylePreset, DrawingConnector, DrawingLayout, DrawingLayoutOptions, DrawingShape, DrawingShapeKind, ExpandDocBlocksOptions, ExtractedTableData, FirstImage, LayoutLayerDefaults, LayoutLayersResult, MarkdownToDocOptions, MarkdownValidationResult, PATH_SHAPE_KINDS, RenderContext, RuntimeTemplateRegistry, SHAPE_NAMES, TEMPLATE_ALIASES, TEMPLATE_METADATA, TemplateMetadata, ValidateOptions, adjustY, applyRenderStyleToLayers, buildRegistry, clipEndpoints, clipPoint, comparisonBar, computeDiagramLayout, computeDrawingLayout, computeLayoutLayers, connectorPath, countBlocks, coverBlock, createAccentLayers, cssFilterForTreatment, dataTable, dateEvent, decodeLayersFromFrontmatter, definitionCard, deriveTemplateInputs, diagramBlock, docToMarkdown, drawingBlock, encodeLayersForFrontmatter, expandCoverBlock, expandDocBlocks, expandPersistentLayers, expandTemplateBlock, extractBlockquoteText, extractBodyPlainText, extractFirstImage, extractImages, extractListItems, extractTableData, extractTableFromContents, factCard, fallbackBlockLayers, findFirstTable, flattenBlocks, flattenRenderableBlocks, fullBleedQuote, getAccentLayout, getAnimationProgress, getAnimationStyle, getAvailableTemplates, getBlockDepth, getDefaultAnimation, getDefaultAnimationDuration, getDocStyleConfig, getLayers, getOverlayOpacity, getPersistentLayersFromTheme, getTemplateHint, getThemeFont, getTransitionClass, hasTemplate, imageWithCaption, isContainerTemplate, isDataFence, isShapeName, layoutBlock, leftFeature, lineStyleDasharray, listBlock, mapBlock, markdownToDoc, markerPath, normalizeShapeKind, parseDataFence, parseYamlSubset, photoGrid, pullQuote, quoteBlock, readCustomTemplatesFromFrontmatter, readCustomThemesFromFrontmatter, resolveAudioMapping, resolveColorScheme, resolvePersistentLayers, resolveTemplateName, resolveThemeForDoc, rightFeature, scaleAnimationDuration, scoreTextSimilarity, sectionHeader, shapePath, shouldUseShadow, statHighlight, templateRegistry, themeWantsAmbientMotion, themedEntrance, themedFontSize, themedImageTreatment, themedScrim, themedSurfaceGradient, titleBlock, twoColumn, validateMarkdownDoc, validateMarkdownSource, videoPullQuote, videoWithCaption, wrapWithPersistentLayers, writeCustomTemplatesToFrontmatter, writeCustomThemesToFrontmatter } from './story/index.js';
|
|
8
9
|
export { calculateBearing, decodeGeohash, encodeGeohash, geohashOverlapsBounds, geohashToHierarchicalPath, getGeohash4Neighbors, getGeohashPath, getGeohashPrefix, getNeighbors, haversineDistance } from './spatial/index.js';
|
|
9
10
|
export { LocalForageAdapter, LocalForageAdapterOptions, LocalStorageAdapter, MemoryStorageAdapter, ScopedContentContainer, StorageAdapter, createMediaProviderFromContainer, scopeContainer } from './storage/index.js';
|
|
10
11
|
export { C as ContentContainer, a as ContentEntry, M as MemoryContentContainer, f as findDocumentPath } from './ContentContainer-DNx460y8.js';
|
|
11
|
-
export {
|
|
12
|
-
export { countNodes, createDocument, extractPlainText, findNodesByType, fromMdast, getChildren, inferDocumentTitle, parseFrontmatter, parseHtmlToNodes, parseMarkdown, readFrontmatterThemeId, setFrontmatterValues, stringifyHtmlNodes, stringifyMarkdown, toMdast, walkMarkdownTree } from './markdown/index.js';
|
|
12
|
+
export { BLOCK_META_KEY_DESCRIPTORS, BlockMetaKeyDescriptor, HtmlPolicy, KNOWN_BLOCK_META_KEYS, KnownBlockMetaKey, TrailingAnnotationMatch, UrlKind, countNodes, createDocument, extractPlainText, findNodesByType, fromMdast, getChildren, inferDocumentTitle, matchTrailingPandocAttr, matchTrailingTemplateAnnotation, needsQuoting, parseFrontmatter, parseHtmlToNodes, parseMarkdown, parsePandocAttrTokens, parseTimeSeconds, plainTextFromInlineHtml, quoteAttrValue, readFrontmatterThemeId, sanitizeHtmlNodes, sanitizeUrl, serializePandocAttributes, setFrontmatterValues, splitKeyValueToken, stringifyHtmlNodes, stringifyMarkdown, toMdast, tokenizeAttrTokens, unquoteAttrValue, walkMarkdownTree } from './markdown/index.js';
|
|
13
13
|
export { DEFAULT_WORDS_PER_SECOND, NarrationTimeEstimate, NarrationTimeOptions, ReadingTimeEstimate, ReadingTimeOptions, calculatePrefixDuration, countSpokenWords, estimateNarrationDuration, estimateNarrationTime, estimateReadingTime, estimateSpokenWordCount, estimateTimeFromText } from './timing/index.js';
|
|
14
14
|
export { SeededRandom, hashString } from './random/index.js';
|
|
15
15
|
export { C as ComparisonData, D as DateData, a as DefinitionData, E as ExtractedElement, b as ExtractionOptions, c as ExtractionResult, d as ExtractionType, F as FactData, I as ImpactLineData, L as ListData, Q as QuoteData, S as StatData, e as extractContent, s as stripMarkdown } from './contentExtractor-BNfVJV2U.js';
|
|
16
16
|
export { MapOptions, SlideshowDoc, SlideshowImage, SlideshowOptions, generateSlideshow, mapElementToBlock } from './generate/index.js';
|
|
17
|
+
export { AnalyzedBlock, BlockImage, DEFAULT_TRANSFORM_STYLE_ID, TransformImage, TransformOptions, TransformResult, TransformStyleConfig, TransformStyleId, TransformStyleSummary, analyzeBlocks, applyTransform, extractDocImages, getTransformStyleIds, getTransformStyleSummaries, registerTransformStyle, resolveTransformStyle, unregisterTransformStyle } from './transform/index.js';
|
|
17
18
|
export { C as CoalesceOptions, P as PrunePolicy, R as RevertOptions, S as SaveVersionOptions, a as SaveVersionResult, V as Version } from './types-D98li1gV.js';
|
|
18
19
|
export { DocumentVersionManager, DocumentVersionManagerOptions, VERSIONS_PREFIX, VERSION_TIMESTAMP_PATTERN, buildVersionPath, coalesceVersions, formatVersionTimestamp, getDocBasename, listVersions, parseVersionPath, parseVersionTimestamp, pruneVersions, readVersion, revertToVersion, saveVersion } from './versions/index.js';
|
|
19
20
|
export { ControlKind, InferSchemaOptions, JsonFormValidationError, JsonFormValidator, SquisqAnnotatedSchema, SquisqHints, SquisqWhen, arrayItemKind, chooseControl, evaluateWhen, getByPointer, inferSchema, pointerSegments, primaryType, resolveFlag, resolveRef, setByPointer, toPointer } from './jsonForm/index.js';
|
|
20
|
-
export { IMAGE_EDIT_ASSETS_PREFIX, IMAGE_EDIT_DEFAULT_BASENAME, IMAGE_EDIT_STATE_FILENAME, IMAGE_EDIT_VERSIONS_PREFIX, ImageEditExportFormat, ImageEditExportOptions, ImageEditVersionManager, ImageEditVersionManagerOptions, RevertImageEditOptions, SaveImageEditVersionOptions, SaveImageEditVersionResult, addLayer, buildImageEditVersionPath, coalesceImageEditVersions, createEmptyImageEditDoc, exportImageEditDoc, listImageEditVersions, parseImageEditVersionPath, pruneImageEditVersions, readImageEditDoc, readImageEditVersion, readImageEditVersionText, removeLayer, reorderLayer, revertToImageEditVersion, saveImageEditVersion, setCanvas, touch, updateLayer, writeImageEditDoc } from './imageEdit/index.js';
|
|
21
|
+
export { IMAGE_EDIT_ASSETS_PREFIX, IMAGE_EDIT_DEFAULT_BASENAME, IMAGE_EDIT_STATE_FILENAME, IMAGE_EDIT_VERSIONS_PREFIX, ImageEditExportFormat, ImageEditExportOptions, ImageEditVersionManager, ImageEditVersionManagerOptions, RevertImageEditOptions, SaveImageEditVersionOptions, SaveImageEditVersionResult, addLayer, buildImageEditVersionPath, buildSvgString, coalesceImageEditVersions, createEmptyImageEditDoc, exportImageEditDoc, listImageEditVersions, parseImageEditVersionPath, pruneImageEditVersions, readImageEditDoc, readImageEditVersion, readImageEditVersionText, removeLayer, reorderLayer, revertToImageEditVersion, saveImageEditVersion, setCanvas, touch, updateLayer, writeImageEditDoc } from './imageEdit/index.js';
|
|
22
|
+
export { I as ICONS, a as IconEntry, b as IconFamily, c as IconTextRun, h as hasIconMarker, i as iconClass, d as iconMarker, s as splitIconMarkers, e as stripIconMarkers } from './inlineIconMarker-CiE8Hlvz.js';
|
|
23
|
+
export { IconSuggestion, canonicalIconToken, iconGlyph, looksLikeIconToken, resolveIcon, suggestIcons } from './icons/index.js';
|
|
21
24
|
export { BlockContentProfile, RecommendationResult, profileBlockContents, recommendTemplatesForBlock } from './recommend/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-ZLQKNOZQ.js";
|
|
2
2
|
import {
|
|
3
3
|
generateSlideshow
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBKP5CAO.js";
|
|
5
|
+
import {
|
|
6
|
+
DEFAULT_TRANSFORM_STYLE_ID,
|
|
7
|
+
analyzeBlocks,
|
|
8
|
+
applyTransform,
|
|
9
|
+
extractDocImages,
|
|
10
|
+
getTransformStyleIds,
|
|
11
|
+
getTransformStyleSummaries,
|
|
12
|
+
registerTransformStyle,
|
|
13
|
+
resolveTransformStyle,
|
|
14
|
+
unregisterTransformStyle
|
|
15
|
+
} from "./chunk-TVSGLUID.js";
|
|
5
16
|
import {
|
|
6
17
|
extractContent,
|
|
7
18
|
mapElementToBlock,
|
|
8
19
|
stripMarkdown
|
|
9
20
|
} from "./chunk-FR2RBTKO.js";
|
|
10
|
-
import {
|
|
11
|
-
SeededRandom,
|
|
12
|
-
hashString
|
|
13
|
-
} from "./chunk-FVTQSNR7.js";
|
|
14
21
|
import {
|
|
15
22
|
DocumentVersionManager,
|
|
16
23
|
VERSIONS_PREFIX,
|
|
@@ -45,6 +52,7 @@ import {
|
|
|
45
52
|
ImageEditVersionManager,
|
|
46
53
|
addLayer,
|
|
47
54
|
buildImageEditVersionPath,
|
|
55
|
+
buildSvgString,
|
|
48
56
|
coalesceImageEditVersions,
|
|
49
57
|
createEmptyImageEditDoc,
|
|
50
58
|
exportImageEditDoc,
|
|
@@ -62,16 +70,20 @@ import {
|
|
|
62
70
|
touch,
|
|
63
71
|
updateLayer,
|
|
64
72
|
writeImageEditDoc
|
|
65
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-2OIBZYKP.js";
|
|
66
74
|
import {
|
|
67
75
|
VERSION_TIMESTAMP_PATTERN,
|
|
68
76
|
formatVersionTimestamp,
|
|
69
77
|
parseVersionTimestamp
|
|
70
78
|
} from "./chunk-JELIRVDP.js";
|
|
79
|
+
import "./chunk-PGGGKYWG.js";
|
|
71
80
|
import {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
81
|
+
hasIconMarker,
|
|
82
|
+
iconClass,
|
|
83
|
+
iconMarker,
|
|
84
|
+
splitIconMarkers,
|
|
85
|
+
stripIconMarkers
|
|
86
|
+
} from "./chunk-2UQOHYE2.js";
|
|
75
87
|
import {
|
|
76
88
|
STARTER_THEME,
|
|
77
89
|
calculateDuration,
|
|
@@ -79,11 +91,13 @@ import {
|
|
|
79
91
|
deriveColorPalette,
|
|
80
92
|
getBlockAtTime,
|
|
81
93
|
getCaptionAtTime,
|
|
94
|
+
getDocPlaybackDuration,
|
|
82
95
|
getSegmentAtTime,
|
|
83
96
|
parseTheme,
|
|
97
|
+
resolveMediaSchedule,
|
|
84
98
|
serializeTheme,
|
|
85
99
|
validateDoc
|
|
86
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-7MQGNR76.js";
|
|
87
101
|
import {
|
|
88
102
|
calculateBearing,
|
|
89
103
|
decodeGeohash,
|
|
@@ -95,25 +109,49 @@ import {
|
|
|
95
109
|
getGeohashPrefix,
|
|
96
110
|
getNeighbors,
|
|
97
111
|
haversineDistance
|
|
98
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-Q3ROPT5H.js";
|
|
99
113
|
import {
|
|
114
|
+
CONTAINER_TEMPLATES,
|
|
100
115
|
DEFAULT_LAYOUT,
|
|
116
|
+
SHAPE_NAMES,
|
|
101
117
|
TEMPLATE_ALIASES,
|
|
118
|
+
TEMPLATE_METADATA,
|
|
102
119
|
adjustY,
|
|
120
|
+
applyRenderStyleToLayers,
|
|
121
|
+
buildRegistry,
|
|
103
122
|
comparisonBar,
|
|
123
|
+
computeDiagramLayout,
|
|
124
|
+
computeDrawingLayout,
|
|
125
|
+
computeLayoutLayers,
|
|
104
126
|
countBlocks,
|
|
105
127
|
coverBlock,
|
|
106
128
|
createAccentLayers,
|
|
129
|
+
cssFilterForTreatment,
|
|
107
130
|
dataTable,
|
|
108
131
|
dateEvent,
|
|
132
|
+
decodeLayersFromFrontmatter,
|
|
109
133
|
definitionCard,
|
|
134
|
+
deriveTemplateInputs,
|
|
135
|
+
diagramBlock,
|
|
110
136
|
docToMarkdown,
|
|
137
|
+
drawingBlock,
|
|
138
|
+
encodeLayersForFrontmatter,
|
|
111
139
|
expandCoverBlock,
|
|
112
140
|
expandDocBlocks,
|
|
113
141
|
expandPersistentLayers,
|
|
114
142
|
expandTemplateBlock,
|
|
143
|
+
extractBlockquoteText,
|
|
144
|
+
extractBodyPlainText,
|
|
145
|
+
extractFirstImage,
|
|
146
|
+
extractImages,
|
|
147
|
+
extractListItems,
|
|
148
|
+
extractTableData,
|
|
149
|
+
extractTableFromContents,
|
|
115
150
|
factCard,
|
|
151
|
+
fallbackBlockLayers,
|
|
152
|
+
findFirstTable,
|
|
116
153
|
flattenBlocks,
|
|
154
|
+
flattenRenderableBlocks,
|
|
117
155
|
fullBleedQuote,
|
|
118
156
|
getAccentLayout,
|
|
119
157
|
getAnimationProgress,
|
|
@@ -125,21 +163,33 @@ import {
|
|
|
125
163
|
getDocStyleConfig,
|
|
126
164
|
getLayers,
|
|
127
165
|
getOverlayOpacity,
|
|
166
|
+
getPersistentLayersFromTheme,
|
|
128
167
|
getTemplateHint,
|
|
129
168
|
getThemeFont,
|
|
130
169
|
getTransitionClass,
|
|
131
170
|
hasTemplate,
|
|
132
171
|
imageWithCaption,
|
|
172
|
+
isContainerTemplate,
|
|
173
|
+
isDataFence,
|
|
174
|
+
isShapeName,
|
|
175
|
+
layoutBlock,
|
|
133
176
|
leftFeature,
|
|
134
177
|
listBlock,
|
|
135
178
|
mapBlock,
|
|
136
179
|
markdownToDoc,
|
|
180
|
+
normalizeShapeKind,
|
|
181
|
+
parseDataFence,
|
|
182
|
+
parseYamlSubset,
|
|
137
183
|
photoGrid,
|
|
138
184
|
pullQuote,
|
|
139
185
|
quoteBlock,
|
|
186
|
+
readCustomTemplatesFromFrontmatter,
|
|
187
|
+
readCustomThemesFromFrontmatter,
|
|
140
188
|
resolveAudioMapping,
|
|
141
189
|
resolveColorScheme,
|
|
190
|
+
resolvePersistentLayers,
|
|
142
191
|
resolveTemplateName,
|
|
192
|
+
resolveThemeForDoc,
|
|
143
193
|
rightFeature,
|
|
144
194
|
scaleAnimationDuration,
|
|
145
195
|
scoreTextSimilarity,
|
|
@@ -147,18 +197,48 @@ import {
|
|
|
147
197
|
shouldUseShadow,
|
|
148
198
|
statHighlight,
|
|
149
199
|
templateRegistry,
|
|
200
|
+
themeWantsAmbientMotion,
|
|
201
|
+
themedEntrance,
|
|
150
202
|
themedFontSize,
|
|
203
|
+
themedImageTreatment,
|
|
204
|
+
themedScrim,
|
|
205
|
+
themedSurfaceGradient,
|
|
151
206
|
titleBlock,
|
|
152
207
|
twoColumn,
|
|
208
|
+
validateMarkdownDoc,
|
|
209
|
+
validateMarkdownSource,
|
|
153
210
|
videoPullQuote,
|
|
154
|
-
videoWithCaption
|
|
155
|
-
|
|
211
|
+
videoWithCaption,
|
|
212
|
+
wrapWithPersistentLayers,
|
|
213
|
+
writeCustomTemplatesToFrontmatter,
|
|
214
|
+
writeCustomThemesToFrontmatter
|
|
215
|
+
} from "./chunk-4ZFRZBU2.js";
|
|
216
|
+
import {
|
|
217
|
+
profileBlockContents,
|
|
218
|
+
recommendTemplatesForBlock
|
|
219
|
+
} from "./chunk-LRCV7N7F.js";
|
|
220
|
+
import "./chunk-V543AI2F.js";
|
|
221
|
+
import {
|
|
222
|
+
SeededRandom,
|
|
223
|
+
hashString
|
|
224
|
+
} from "./chunk-FVTQSNR7.js";
|
|
225
|
+
import {
|
|
226
|
+
PATH_SHAPE_KINDS,
|
|
227
|
+
clipEndpoints,
|
|
228
|
+
clipPoint,
|
|
229
|
+
connectorPath,
|
|
230
|
+
lineStyleDasharray,
|
|
231
|
+
markerPath,
|
|
232
|
+
shapePath
|
|
233
|
+
} from "./chunk-RUDYOTA6.js";
|
|
156
234
|
import {
|
|
157
235
|
AVAILABLE_FONT_STACKS,
|
|
158
236
|
DARK_SURFACE,
|
|
159
237
|
DEFAULT_THEME,
|
|
160
238
|
DEFAULT_THEME_ID,
|
|
161
239
|
FONT_FALLBACKS,
|
|
240
|
+
FRONTMATTER_CUSTOM_TEMPLATES_KEY,
|
|
241
|
+
FRONTMATTER_CUSTOM_THEMES_KEY,
|
|
162
242
|
LIGHT_SURFACE,
|
|
163
243
|
THEMES,
|
|
164
244
|
THEME_SCHEMA_VERSION,
|
|
@@ -173,6 +253,7 @@ import {
|
|
|
173
253
|
getFontStack,
|
|
174
254
|
getRegisteredThemes,
|
|
175
255
|
getThemeSummaries,
|
|
256
|
+
hexHueDegrees,
|
|
176
257
|
isHex,
|
|
177
258
|
lookupRegisteredTheme,
|
|
178
259
|
oklchDarken,
|
|
@@ -184,8 +265,9 @@ import {
|
|
|
184
265
|
resolveFontFamily,
|
|
185
266
|
resolveTheme,
|
|
186
267
|
unregisterTheme,
|
|
187
|
-
validateTheme
|
|
188
|
-
|
|
268
|
+
validateTheme,
|
|
269
|
+
withAlpha
|
|
270
|
+
} from "./chunk-4AKUQPEE.js";
|
|
189
271
|
import {
|
|
190
272
|
DEFAULT_DOC_FONT,
|
|
191
273
|
DEFAULT_TITLE_FONT,
|
|
@@ -202,7 +284,7 @@ import {
|
|
|
202
284
|
isTemplateBlock,
|
|
203
285
|
scaledFontSize,
|
|
204
286
|
scaledFontSize2
|
|
205
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-DLXZMS5K.js";
|
|
206
288
|
import {
|
|
207
289
|
LocalForageAdapter,
|
|
208
290
|
LocalStorageAdapter,
|
|
@@ -214,14 +296,27 @@ import {
|
|
|
214
296
|
scopeContainer
|
|
215
297
|
} from "./chunk-2TMAWB4Y.js";
|
|
216
298
|
import {
|
|
299
|
+
sanitizeHtmlNodes,
|
|
300
|
+
sanitizeUrl,
|
|
301
|
+
stringifyMarkdown
|
|
302
|
+
} from "./chunk-KZNXZ5SM.js";
|
|
303
|
+
import {
|
|
304
|
+
BLOCK_META_KEY_DESCRIPTORS,
|
|
305
|
+
KNOWN_BLOCK_META_KEYS,
|
|
217
306
|
fromMdast,
|
|
218
|
-
|
|
307
|
+
matchTrailingPandocAttr,
|
|
308
|
+
matchTrailingTemplateAnnotation,
|
|
309
|
+
needsQuoting,
|
|
219
310
|
parseMarkdown,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
311
|
+
parsePandocAttrTokens,
|
|
312
|
+
parseTimeSeconds,
|
|
313
|
+
quoteAttrValue,
|
|
314
|
+
serializePandocAttributes,
|
|
315
|
+
splitKeyValueToken,
|
|
316
|
+
toMdast,
|
|
317
|
+
tokenizeAttrTokens,
|
|
318
|
+
unquoteAttrValue
|
|
319
|
+
} from "./chunk-OH43RPTP.js";
|
|
225
320
|
import {
|
|
226
321
|
countNodes,
|
|
227
322
|
createDocument,
|
|
@@ -230,10 +325,31 @@ import {
|
|
|
230
325
|
getChildren,
|
|
231
326
|
inferDocumentTitle,
|
|
232
327
|
parseFrontmatter,
|
|
328
|
+
parseHtmlToNodes,
|
|
329
|
+
plainTextFromInlineHtml,
|
|
233
330
|
readFrontmatterThemeId,
|
|
234
331
|
setFrontmatterValues,
|
|
332
|
+
stringifyHtmlNodes,
|
|
235
333
|
walkMarkdownTree
|
|
236
|
-
} from "./chunk-
|
|
334
|
+
} from "./chunk-OKJOQXK4.js";
|
|
335
|
+
import {
|
|
336
|
+
ICONS,
|
|
337
|
+
canonicalIconToken,
|
|
338
|
+
iconGlyph,
|
|
339
|
+
looksLikeIconToken,
|
|
340
|
+
resolveIcon,
|
|
341
|
+
suggestIcons
|
|
342
|
+
} from "./chunk-DBS6RIFL.js";
|
|
343
|
+
import {
|
|
344
|
+
DEFAULT_TRANSITION_DURATION_SECONDS,
|
|
345
|
+
TRANSITION_DIRECTIONS,
|
|
346
|
+
TRANSITION_TYPES,
|
|
347
|
+
isTransitionType,
|
|
348
|
+
normalizeTransitionDirection,
|
|
349
|
+
normalizeTransitionType,
|
|
350
|
+
resolveBlockTransition,
|
|
351
|
+
resolveTransitionDuration
|
|
352
|
+
} from "./chunk-QE7TWGVT.js";
|
|
237
353
|
import "./chunk-DNJKBAI7.js";
|
|
238
354
|
import {
|
|
239
355
|
estimateNarrationTime,
|
|
@@ -249,51 +365,76 @@ import {
|
|
|
249
365
|
} from "./chunk-3E5F2XMR.js";
|
|
250
366
|
export {
|
|
251
367
|
AVAILABLE_FONT_STACKS,
|
|
368
|
+
BLOCK_META_KEY_DESCRIPTORS,
|
|
369
|
+
CONTAINER_TEMPLATES,
|
|
252
370
|
DARK_SURFACE,
|
|
253
371
|
DEFAULT_DOC_FONT,
|
|
254
372
|
DEFAULT_LAYOUT,
|
|
255
373
|
DEFAULT_THEME,
|
|
256
374
|
DEFAULT_THEME_ID,
|
|
257
375
|
DEFAULT_TITLE_FONT,
|
|
376
|
+
DEFAULT_TRANSFORM_STYLE_ID,
|
|
377
|
+
DEFAULT_TRANSITION_DURATION_SECONDS,
|
|
258
378
|
DEFAULT_WORDS_PER_SECOND,
|
|
259
379
|
DocumentVersionManager,
|
|
260
380
|
FONT_FALLBACKS,
|
|
381
|
+
FRONTMATTER_CUSTOM_TEMPLATES_KEY,
|
|
382
|
+
FRONTMATTER_CUSTOM_THEMES_KEY,
|
|
383
|
+
ICONS,
|
|
261
384
|
IMAGE_EDIT_ASSETS_PREFIX,
|
|
262
385
|
IMAGE_EDIT_DEFAULT_BASENAME,
|
|
263
386
|
IMAGE_EDIT_STATE_FILENAME,
|
|
264
387
|
IMAGE_EDIT_VERSIONS_PREFIX,
|
|
265
388
|
ImageEditVersionManager,
|
|
389
|
+
KNOWN_BLOCK_META_KEYS,
|
|
266
390
|
LIGHT_SURFACE,
|
|
267
391
|
LocalForageAdapter,
|
|
268
392
|
LocalStorageAdapter,
|
|
269
393
|
MemoryContentContainer,
|
|
270
394
|
MemoryStorageAdapter,
|
|
395
|
+
PATH_SHAPE_KINDS,
|
|
396
|
+
SHAPE_NAMES,
|
|
271
397
|
STARTER_THEME,
|
|
272
398
|
ScopedContentContainer,
|
|
273
399
|
SeededRandom,
|
|
274
400
|
TEMPLATE_ALIASES,
|
|
401
|
+
TEMPLATE_METADATA,
|
|
275
402
|
THEMES,
|
|
276
403
|
THEME_SCHEMA_VERSION,
|
|
404
|
+
TRANSITION_DIRECTIONS,
|
|
405
|
+
TRANSITION_TYPES,
|
|
277
406
|
VERSIONS_PREFIX,
|
|
278
407
|
VERSION_TIMESTAMP_PATTERN,
|
|
279
408
|
VIEWPORT_PRESETS,
|
|
280
409
|
addLayer,
|
|
281
410
|
adjustY,
|
|
411
|
+
analyzeBlocks,
|
|
412
|
+
applyRenderStyleToLayers,
|
|
282
413
|
applySurface,
|
|
414
|
+
applyTransform,
|
|
283
415
|
arrayItemKind,
|
|
284
416
|
assertTheme,
|
|
285
417
|
buildGoogleFontsUrl,
|
|
286
418
|
buildImageEditVersionPath,
|
|
419
|
+
buildRegistry,
|
|
420
|
+
buildSvgString,
|
|
287
421
|
buildVersionPath,
|
|
288
422
|
calculateBearing,
|
|
289
423
|
calculateDuration,
|
|
290
424
|
calculateFontScale,
|
|
291
425
|
calculatePrefixDuration,
|
|
426
|
+
canonicalIconToken,
|
|
292
427
|
chooseControl,
|
|
428
|
+
clipEndpoints,
|
|
429
|
+
clipPoint,
|
|
293
430
|
coalesceImageEditVersions,
|
|
294
431
|
coalesceVersions,
|
|
295
432
|
comparisonBar,
|
|
296
433
|
compileTheme,
|
|
434
|
+
computeDiagramLayout,
|
|
435
|
+
computeDrawingLayout,
|
|
436
|
+
computeLayoutLayers,
|
|
437
|
+
connectorPath,
|
|
297
438
|
contrastRatio,
|
|
298
439
|
countBlocks,
|
|
299
440
|
countNodes,
|
|
@@ -305,14 +446,20 @@ export {
|
|
|
305
446
|
createMediaProviderFromContainer,
|
|
306
447
|
createTemplateContext,
|
|
307
448
|
createTheme,
|
|
449
|
+
cssFilterForTreatment,
|
|
308
450
|
dataTable,
|
|
309
451
|
dateEvent,
|
|
310
452
|
decodeGeohash,
|
|
453
|
+
decodeLayersFromFrontmatter,
|
|
311
454
|
definitionCard,
|
|
312
455
|
deriveColorPalette,
|
|
313
456
|
deriveScale,
|
|
457
|
+
deriveTemplateInputs,
|
|
458
|
+
diagramBlock,
|
|
314
459
|
docToMarkdown,
|
|
460
|
+
drawingBlock,
|
|
315
461
|
encodeGeohash,
|
|
462
|
+
encodeLayersForFrontmatter,
|
|
316
463
|
estimateNarrationDuration,
|
|
317
464
|
estimateNarrationTime,
|
|
318
465
|
estimateReadingTime,
|
|
@@ -324,12 +471,23 @@ export {
|
|
|
324
471
|
expandPersistentLayers,
|
|
325
472
|
expandTemplateBlock,
|
|
326
473
|
exportImageEditDoc,
|
|
474
|
+
extractBlockquoteText,
|
|
475
|
+
extractBodyPlainText,
|
|
327
476
|
extractContent,
|
|
477
|
+
extractDocImages,
|
|
478
|
+
extractFirstImage,
|
|
479
|
+
extractImages,
|
|
480
|
+
extractListItems,
|
|
328
481
|
extractPlainText,
|
|
482
|
+
extractTableData,
|
|
483
|
+
extractTableFromContents,
|
|
329
484
|
factCard,
|
|
485
|
+
fallbackBlockLayers,
|
|
330
486
|
findDocumentPath,
|
|
487
|
+
findFirstTable,
|
|
331
488
|
findNodesByType,
|
|
332
489
|
flattenBlocks,
|
|
490
|
+
flattenRenderableBlocks,
|
|
333
491
|
fontStack,
|
|
334
492
|
formatVersionTimestamp,
|
|
335
493
|
fromMdast,
|
|
@@ -351,6 +509,7 @@ export {
|
|
|
351
509
|
getDefaultAnimation,
|
|
352
510
|
getDefaultAnimationDuration,
|
|
353
511
|
getDocBasename,
|
|
512
|
+
getDocPlaybackDuration,
|
|
354
513
|
getDocStyleConfig,
|
|
355
514
|
getFontStack,
|
|
356
515
|
getGeohash4Neighbors,
|
|
@@ -360,53 +519,83 @@ export {
|
|
|
360
519
|
getLayoutHints,
|
|
361
520
|
getNeighbors,
|
|
362
521
|
getOverlayOpacity,
|
|
522
|
+
getPersistentLayersFromTheme,
|
|
363
523
|
getRegisteredThemes,
|
|
364
524
|
getSafeTextBounds,
|
|
365
525
|
getSegmentAtTime,
|
|
366
526
|
getTemplateHint,
|
|
367
527
|
getThemeFont,
|
|
368
528
|
getThemeSummaries,
|
|
529
|
+
getTransformStyleIds,
|
|
530
|
+
getTransformStyleSummaries,
|
|
369
531
|
getTransitionClass,
|
|
370
532
|
getTwoColumnPositions,
|
|
371
533
|
getViewport,
|
|
372
534
|
getViewportOrientation,
|
|
535
|
+
hasIconMarker,
|
|
373
536
|
hasTemplate,
|
|
374
537
|
hashString,
|
|
375
538
|
haversineDistance,
|
|
539
|
+
hexHueDegrees,
|
|
540
|
+
iconClass,
|
|
541
|
+
iconGlyph,
|
|
542
|
+
iconMarker,
|
|
376
543
|
imageWithCaption,
|
|
377
544
|
inferDocumentTitle,
|
|
378
545
|
inferSchema,
|
|
546
|
+
isContainerTemplate,
|
|
547
|
+
isDataFence,
|
|
379
548
|
isHex,
|
|
380
549
|
isPersistentLayerTemplate,
|
|
550
|
+
isShapeName,
|
|
381
551
|
isTemplateBlock,
|
|
552
|
+
isTransitionType,
|
|
553
|
+
layoutBlock,
|
|
382
554
|
scaledFontSize as layoutScaledFontSize,
|
|
383
555
|
leftFeature,
|
|
556
|
+
lineStyleDasharray,
|
|
384
557
|
listBlock,
|
|
385
558
|
listImageEditVersions,
|
|
386
559
|
listVersions,
|
|
560
|
+
looksLikeIconToken,
|
|
387
561
|
lookupRegisteredTheme,
|
|
388
562
|
mapBlock,
|
|
389
563
|
mapElementToBlock,
|
|
390
564
|
markdownToDoc,
|
|
565
|
+
markerPath,
|
|
566
|
+
matchTrailingPandocAttr,
|
|
567
|
+
matchTrailingTemplateAnnotation,
|
|
568
|
+
needsQuoting,
|
|
569
|
+
normalizeShapeKind,
|
|
570
|
+
normalizeTransitionDirection,
|
|
571
|
+
normalizeTransitionType,
|
|
391
572
|
oklchDarken,
|
|
392
573
|
oklchLighten,
|
|
393
574
|
oklchSetChroma,
|
|
575
|
+
parseDataFence,
|
|
394
576
|
parseFrontmatter,
|
|
395
577
|
parseHtmlToNodes,
|
|
396
578
|
parseImageEditVersionPath,
|
|
397
579
|
parseMarkdown,
|
|
580
|
+
parsePandocAttrTokens,
|
|
398
581
|
parseTheme,
|
|
582
|
+
parseTimeSeconds,
|
|
399
583
|
parseVersionPath,
|
|
400
584
|
parseVersionTimestamp,
|
|
585
|
+
parseYamlSubset,
|
|
401
586
|
photoGrid,
|
|
402
587
|
pickContrastingText,
|
|
588
|
+
plainTextFromInlineHtml,
|
|
403
589
|
pointerSegments,
|
|
404
590
|
primaryType,
|
|
405
591
|
profileBlockContents,
|
|
406
592
|
pruneImageEditVersions,
|
|
407
593
|
pruneVersions,
|
|
408
594
|
pullQuote,
|
|
595
|
+
quoteAttrValue,
|
|
409
596
|
quoteBlock,
|
|
597
|
+
readCustomTemplatesFromFrontmatter,
|
|
598
|
+
readCustomThemesFromFrontmatter,
|
|
410
599
|
readFrontmatterThemeId,
|
|
411
600
|
readImageEditDoc,
|
|
412
601
|
readImageEditVersion,
|
|
@@ -414,19 +603,29 @@ export {
|
|
|
414
603
|
readVersion,
|
|
415
604
|
recommendTemplatesForBlock,
|
|
416
605
|
registerTheme,
|
|
606
|
+
registerTransformStyle,
|
|
417
607
|
relativeLuminance,
|
|
418
608
|
removeLayer,
|
|
419
609
|
reorderLayer,
|
|
420
610
|
resolveAudioMapping,
|
|
611
|
+
resolveBlockTransition,
|
|
421
612
|
resolveColorScheme,
|
|
422
613
|
resolveFlag,
|
|
423
614
|
resolveFontFamily,
|
|
615
|
+
resolveIcon,
|
|
616
|
+
resolveMediaSchedule,
|
|
617
|
+
resolvePersistentLayers,
|
|
424
618
|
resolveRef,
|
|
425
619
|
resolveTemplateName,
|
|
426
620
|
resolveTheme,
|
|
621
|
+
resolveThemeForDoc,
|
|
622
|
+
resolveTransformStyle,
|
|
623
|
+
resolveTransitionDuration,
|
|
427
624
|
revertToImageEditVersion,
|
|
428
625
|
revertToVersion,
|
|
429
626
|
rightFeature,
|
|
627
|
+
sanitizeHtmlNodes,
|
|
628
|
+
sanitizeUrl,
|
|
430
629
|
saveImageEditVersion,
|
|
431
630
|
saveVersion,
|
|
432
631
|
scaleAnimationDuration,
|
|
@@ -434,29 +633,49 @@ export {
|
|
|
434
633
|
scopeContainer,
|
|
435
634
|
scoreTextSimilarity,
|
|
436
635
|
sectionHeader,
|
|
636
|
+
serializePandocAttributes,
|
|
437
637
|
serializeTheme,
|
|
438
638
|
setByPointer,
|
|
439
639
|
setCanvas,
|
|
440
640
|
setFrontmatterValues,
|
|
641
|
+
shapePath,
|
|
441
642
|
shouldUseShadow,
|
|
643
|
+
splitIconMarkers,
|
|
644
|
+
splitKeyValueToken,
|
|
442
645
|
statHighlight,
|
|
443
646
|
stringifyHtmlNodes,
|
|
444
647
|
stringifyMarkdown,
|
|
648
|
+
stripIconMarkers,
|
|
445
649
|
stripMarkdown,
|
|
650
|
+
suggestIcons,
|
|
446
651
|
templateRegistry,
|
|
652
|
+
themeWantsAmbientMotion,
|
|
653
|
+
themedEntrance,
|
|
447
654
|
themedFontSize,
|
|
655
|
+
themedImageTreatment,
|
|
656
|
+
themedScrim,
|
|
657
|
+
themedSurfaceGradient,
|
|
448
658
|
titleBlock,
|
|
449
659
|
toMdast,
|
|
450
660
|
toPointer,
|
|
661
|
+
tokenizeAttrTokens,
|
|
451
662
|
touch,
|
|
452
663
|
twoColumn,
|
|
664
|
+
unquoteAttrValue,
|
|
453
665
|
unregisterTheme,
|
|
666
|
+
unregisterTransformStyle,
|
|
454
667
|
updateLayer,
|
|
455
668
|
validateDoc,
|
|
669
|
+
validateMarkdownDoc,
|
|
670
|
+
validateMarkdownSource,
|
|
456
671
|
validateTheme,
|
|
457
672
|
videoPullQuote,
|
|
458
673
|
videoWithCaption,
|
|
459
674
|
walkMarkdownTree,
|
|
675
|
+
withAlpha,
|
|
676
|
+
wrapWithPersistentLayers,
|
|
677
|
+
writeCustomTemplatesToFrontmatter,
|
|
678
|
+
writeCustomThemesToFrontmatter,
|
|
460
679
|
writeImageEditDoc
|
|
461
680
|
};
|
|
462
681
|
//# sourceMappingURL=index.js.map
|