@bendyline/squisq 2.12.0 → 2.12.2
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-DIdmgDsV.d.ts → Doc-BJSPtsQD.d.ts} +27 -2
- package/dist/{ImageEditDoc-DXQMA6qH.d.ts → ImageEditDoc-QIzn1qK5.d.ts} +1 -1
- package/dist/{chunk-W45PAVYE.js → chunk-5VFC5T4N.js} +88 -1057
- package/dist/{chunk-RPPUCFRW.js → chunk-DTAYI7AV.js} +20 -20
- package/dist/{chunk-WAX4QYHA.js → chunk-E2NFHYCB.js} +14 -3
- package/dist/{chunk-H54A35NZ.js → chunk-EX75I5HX.js} +3 -3
- package/dist/{chunk-3H7SYCZS.js → chunk-FTN6SGW5.js} +1 -1
- package/dist/{chunk-QHNO67JS.js → chunk-GX3VSKYS.js} +1 -1
- package/dist/{chunk-I4L4GYDN.js → chunk-HYJ63N6V.js} +1 -1
- package/dist/{chunk-B3AFOXMA.js → chunk-MPEGJKFJ.js} +1031 -3
- package/dist/chunk-MWSGNEH6.js +2376 -0
- package/dist/{chunk-M6YXFNGO.js → chunk-P53Z4RYC.js} +10 -0
- package/dist/{chunk-K2PZMWQ5.js → chunk-TFMDVOUQ.js} +10 -9
- package/dist/chunk-Y25EJEZN.js +178 -0
- package/dist/{chunk-3Z2NGHLI.js → chunk-YZ66VMBB.js} +1 -1
- package/dist/{chunk-VTG7PNOL.js → chunk-ZKDJHO6Y.js} +3 -8
- package/dist/doc/index.d.ts +18 -10
- package/dist/doc/index.js +41 -39
- package/dist/fence/index.d.ts +1 -1
- package/dist/generate/index.d.ts +1 -1
- package/dist/imageEdit/index.d.ts +3 -3
- package/dist/index.d.ts +6 -6
- package/dist/index.js +68 -48
- package/dist/jsonForm/index.d.ts +1 -1
- package/dist/jsonForm/index.js +4 -4
- package/dist/markdown/index.d.ts +143 -1
- package/dist/markdown/index.js +29 -10
- package/dist/{materializePageSection-C33MgcDg.d.ts → materializePageSection-DYnmh8X1.d.ts} +1 -1
- package/dist/mediaEdit/index.d.ts +2 -2
- package/dist/narration/index.d.ts +1 -1
- package/dist/narration/index.js +8 -8
- package/dist/recommend/index.js +3 -2
- package/dist/schemas/index.d.ts +4 -4
- package/dist/schemas/index.js +3 -3
- package/dist/{themeLibrary-BaDfxgzt.d.ts → themeLibrary-IHAirzT-.d.ts} +1 -1
- package/dist/timing/index.d.ts +1 -1
- package/dist/transform/index.d.ts +2 -2
- package/dist/transform/index.js +8 -8
- package/package.json +1 -1
- package/dist/chunk-NNJA7ICB.js +0 -1088
- package/dist/chunk-ZYWYSM6W.js +0 -657
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export { B as BUILD_EFFECTS, a as BUILD_MODES, b as BUILD_PARAM_KEYS, c as BUILD_PREVIOUS, d as BuildAdvance, e as BuildCursor, f as BuildSpec, g as BuildStep, h as BuildTiming, D as DEFAULT_MARKDOWN_SAFETY_LIMITS, i as DEFAULT_TRANSITION_DURATION_SECONDS, H as HeadingAttributes, j as HeadingTemplateAnnotation, k as HtmlComment, l as HtmlElement, m as HtmlNode, n as HtmlText, M as MarkdownBlockNode, o as MarkdownBlockquote, p as MarkdownBreak, q as MarkdownCodeBlock, r as MarkdownContainerDirective, s as MarkdownDefinitionDescription, t as MarkdownDefinitionList, u as MarkdownDefinitionTerm, v as MarkdownDocument, w as MarkdownEmphasis, x as MarkdownFootnoteDefinition, y as MarkdownFootnoteReference, z as MarkdownHeading, A as MarkdownHtmlBlock, C as MarkdownImage, E as MarkdownImageReference, F as MarkdownInlineCode, G as MarkdownInlineHtml, I as MarkdownInlineIcon, J as MarkdownInlineMath, K as MarkdownInlineNode, L as MarkdownLeafDirective, N as MarkdownLimitError, O as MarkdownLink, P as MarkdownLinkDefinition, Q as MarkdownLinkReference, R as MarkdownList, S as MarkdownListItem, T as MarkdownMathBlock, U as MarkdownMention, V as MarkdownNode, W as MarkdownParagraph, X as MarkdownPoint, Y as MarkdownSafetyLimits, Z as MarkdownSourcePosition, _ as MarkdownStrikethrough, $ as MarkdownStrong, a0 as MarkdownSubscript, a1 as MarkdownSuperscript, a2 as MarkdownTable, a3 as MarkdownTableCell, a4 as MarkdownTableRow, a5 as MarkdownText, a6 as MarkdownTextDirective, a7 as MarkdownThematicBreak, a8 as ParseOptions, a9 as StringifyOptions, aa as TRANSITION_DIRECTIONS, ab as TRANSITION_TYPES, ac as Transition, ad as TransitionDirection, ae as TransitionType, af as assertMarkdownDocumentWithinLimits, ag as assertMarkdownSourceWithinLimits, ah as buildSpecParams, ai as isTransitionType, aj as normalizeTransitionDirection, ak as normalizeTransitionType, al as parseBuildSpec, am as recordBuildAdvance, an as resolveBlockTransition, ao as resolveMarkdownSafetyLimits, ap as resolveTransitionDuration } from './types-BmEHcL3l.js';
|
|
2
2
|
export { B as BoundingBox, C as Coordinates } from './Types-sh2VRxfo.js';
|
|
3
|
-
export { A as AccentImage, a as AccentPosition, b as AmbientGradientConfig, c as Animation, d as AnimationType, e as AreaChartInput, f as AudioBookmark, g as AudioSegment, h as AudioTimingData, i as AudioTrack, B as BarChartInput, j as BigTextInput, k as Block, l as BlockConnection, m as BorderStyle, C as CaptionPhrase, n as CaptionTrack, o as CaptionWord, p as ChartBaseFields, q as ChartTemplateInput, r as ColorScheme, s as ColumnChartInput, t as ComparisonBarInput, u as ContentBlockInput, v as CornerBrandingConfig, w as CountUpSpec, x as CreateTemplateContextOptions, y as CustomTemplateDefinition, z as CustomTemplateLayer, D as CustomTemplateValidationError, E as CustomTemplateValidationResult, F as DARK_SURFACE, G as DEFAULT_DOC_FONT, H as DEFAULT_TITLE_FONT, I as DataTableInput, J as DateEventInput, K as DeepPartial, L as DefinitionCardInput, M as DiagramBlockInput, N as DiagramEdgeAnchor, O as DiagramTemplateEdge, P as DiagramTemplateNode, Q as Doc, R as DocBlock, S as DocDiagnostic, T as DonutChartInput, U as DrawingBlockInput, V as FRONTMATTER_CUSTOM_TEMPLATES_KEY, W as FRONTMATTER_CUSTOM_THEMES_KEY, X as FRONTMATTER_MOTION_KEY, Y as FactCardInput, Z as FontFamily, _ as FontFamilyKind, $ as FullBleedQuoteInput, a0 as GradientBackgroundConfig, a1 as ImageBackgroundConfig, a2 as ImageLayer, a3 as ImageTreatment, a4 as ImageWithCaptionInput, a5 as LIGHT_SURFACE, a6 as Layer, a7 as LayerRepeat, a8 as LayoutHints, a9 as LeftFeatureInput, aa as LineChartInput, ab as LinearGradient, ac as ListBlockInput, ad as MOTION_PROFILES, ae as MapBlockInput, af as MapLayer, ag as MapMarker, ah as MapTileStyle, ai as MarkerStyle, aj as MediaClip, ak as MediaCrop, al as MediaCut, am as MediaEdits, an as MediaScheduleOptions, ao as MermaidLayer, ap as MotionEntrance, aq as MotionOrigin, ar as MotionProfile, as as MotionProfileName, at as MotionSpec, au as MotionState, av as PAGE_ACCENT_STRATEGIES, aw as PAGE_BACKGROUNDS, ax as PAGE_BACKGROUND_RHYTHMS, ay as PAGE_DESIGN_FAMILIES, az as PAGE_DIVIDERS, aA as PAGE_EMPHASES, aB as PAGE_EYEBROWS, aC as PAGE_HEADING_CASES, aD as PAGE_HEADING_SCALES, aE as PAGE_HEADING_UNDERLINES, aF as PAGE_HERO_STYLES, aG as PAGE_IMAGE_FRAMINGS, aH as PAGE_NUMERAL_STYLES, aI as PAGE_PATTERNS, aJ as PAGE_QUOTE_MARKS, aK as PAGE_SECTION_KINDS, aL as PAGE_SECTION_SPACINGS, aM as PAGE_SHADOWS, aN as PAGE_VARIANTS, aO as PageAccentRotation, aP as PageBackground, aQ as PageDesignFamily, aR as PageEmphasis, aS as PageHeadingTreatment, aT as PageSectionKind, aU as PageSectionOverride, aV as PageTokens, aW as PageVariant, aX as PathLayer, aY as PatternBackgroundConfig, aZ as PersistentLayer, a_ as PersistentLayerConfig, a$ as PersistentLayerTemplate, b0 as PersistentLayerTemplateConfig, b1 as PersistentLayerTemplateType, b2 as PhotoGridInput, b3 as PieChartInput, b4 as PipStyle, b5 as Position, b6 as ProgressIndicatorConfig, b7 as PromotedBodyAnnotation, b8 as PullQuoteInput, b9 as QuoteBlockInput, ba as RawLayersInput, bb as RenderStyle, bc as RightFeatureInput, bd as ScatterChartInput, be as ScheduledClip, bf as SectionHeaderInput, bg as ShapeFilter, bh as ShapeLayer, bi as ShapePattern, bj as SolidBackgroundConfig, bk as StartBlockConfig, bl as StatHighlightInput, bm as SurfaceScheme, bn as
|
|
3
|
+
export { A as AccentImage, a as AccentPosition, b as AmbientGradientConfig, c as Animation, d as AnimationType, e as AreaChartInput, f as AudioBookmark, g as AudioSegment, h as AudioTimingData, i as AudioTrack, B as BarChartInput, j as BigTextInput, k as Block, l as BlockConnection, m as BorderStyle, C as CaptionPhrase, n as CaptionTrack, o as CaptionWord, p as ChartBaseFields, q as ChartTemplateInput, r as ColorScheme, s as ColumnChartInput, t as ComparisonBarInput, u as ContentBlockInput, v as CornerBrandingConfig, w as CountUpSpec, x as CreateTemplateContextOptions, y as CustomTemplateDefinition, z as CustomTemplateLayer, D as CustomTemplateValidationError, E as CustomTemplateValidationResult, F as DARK_SURFACE, G as DEFAULT_DOC_FONT, H as DEFAULT_TITLE_FONT, I as DataTableInput, J as DateEventInput, K as DeepPartial, L as DefinitionCardInput, M as DiagramBlockInput, N as DiagramEdgeAnchor, O as DiagramTemplateEdge, P as DiagramTemplateNode, Q as Doc, R as DocBlock, S as DocDiagnostic, T as DonutChartInput, U as DrawingBlockInput, V as FRONTMATTER_CUSTOM_TEMPLATES_KEY, W as FRONTMATTER_CUSTOM_THEMES_KEY, X as FRONTMATTER_MOTION_KEY, Y as FactCardInput, Z as FontFamily, _ as FontFamilyKind, $ as FullBleedQuoteInput, a0 as GradientBackgroundConfig, a1 as ImageBackgroundConfig, a2 as ImageLayer, a3 as ImageTreatment, a4 as ImageWithCaptionInput, a5 as LIGHT_SURFACE, a6 as Layer, a7 as LayerRepeat, a8 as LayoutHints, a9 as LeftFeatureInput, aa as LineChartInput, ab as LinearGradient, ac as ListBlockInput, ad as MOTION_PROFILES, ae as MapBlockInput, af as MapLayer, ag as MapMarker, ah as MapTileStyle, ai as MarkerStyle, aj as MediaClip, ak as MediaCrop, al as MediaCut, am as MediaEdits, an as MediaScheduleOptions, ao as MermaidLayer, ap as MotionEntrance, aq as MotionOrigin, ar as MotionProfile, as as MotionProfileName, at as MotionSpec, au as MotionState, av as PAGE_ACCENT_STRATEGIES, aw as PAGE_BACKGROUNDS, ax as PAGE_BACKGROUND_RHYTHMS, ay as PAGE_DESIGN_FAMILIES, az as PAGE_DIVIDERS, aA as PAGE_EMPHASES, aB as PAGE_EYEBROWS, aC as PAGE_HEADING_CASES, aD as PAGE_HEADING_SCALES, aE as PAGE_HEADING_UNDERLINES, aF as PAGE_HERO_STYLES, aG as PAGE_IMAGE_FRAMINGS, aH as PAGE_NUMERAL_STYLES, aI as PAGE_PATTERNS, aJ as PAGE_QUOTE_MARKS, aK as PAGE_SECTION_KINDS, aL as PAGE_SECTION_SPACINGS, aM as PAGE_SHADOWS, aN as PAGE_VARIANTS, aO as PageAccentRotation, aP as PageBackground, aQ as PageDesignFamily, aR as PageEmphasis, aS as PageHeadingTreatment, aT as PageSectionKind, aU as PageSectionOverride, aV as PageTokens, aW as PageVariant, aX as PathLayer, aY as PatternBackgroundConfig, aZ as PersistentLayer, a_ as PersistentLayerConfig, a$ as PersistentLayerTemplate, b0 as PersistentLayerTemplateConfig, b1 as PersistentLayerTemplateType, b2 as PhotoGridInput, b3 as PieChartInput, b4 as PipStyle, b5 as Position, b6 as ProgressIndicatorConfig, b7 as PromotedBodyAnnotation, b8 as PullQuoteInput, b9 as QuoteBlockInput, ba as RawLayersInput, bb as RenderStyle, bc as RightFeatureInput, bd as ScatterChartInput, be as ScheduledClip, bf as SectionHeaderInput, bg as ShapeFilter, bh as ShapeLayer, bi as ShapePattern, bj as SolidBackgroundConfig, bk as StartBlockConfig, bl as StatHighlightInput, bm as SurfaceScheme, bn as SvgLayer, bo as THEME_SCHEMA_VERSION, bp as TableLayer, bq as TableLayerStyle, br as TemplateBlock, bs as TemplateContext, bt as TemplateFunction, bu as TemplateRegistry, bv as TextLayer, bw as TextStyle, bx as Theme, by as ThemeColorPalette, bz as ThemeColorScheme, bA as ThemePageStyle, bB as ThemeRegistry, bC as ThemeSchemaVersion, bD as ThemeSeedColors, bE as ThemeStyle, bF as ThemeTypography, bG as TimelineBlockInput, bH as TimelineTemplateEvent, bI as TimelineTemplateLink, bJ as TimelineTemplateTrack, bK as TitleBlockInput, bL as TitleCaptionConfig, bM as TranscriptBlockInput, bN as TreeBlockInput, bO as TreeLayer, bP as TreeLayerItem, bQ as TreeLayerStyle, bR as TreeTemplateItem, bS as TwoColumnInput, bT as VIEWPORT_PRESETS, bU as VideoEmbedLayer, bV as VideoLayer, bW as VideoPipPosition, bX as VideoPipShape, bY as VideoPipSize, bZ as VideoPlacement, b_ as VideoPresentation, b$ as VideoPullQuoteInput, c0 as VideoWithCaptionInput, c1 as ViewportConfig, c2 as ViewportOrientation, c3 as ViewportPreset, c4 as VignetteConfig, c5 as applySurface, c6 as calculateDuration, c7 as calculateFontScale, c8 as createTemplateContext, c9 as createTheme, ca as createThemeRegistry, cb as getAspectRatioString, cc as getBlockAtTime, cd as getCaptionAtTime, ce as getDocPlaybackDuration, cf as getLayoutHints, cg as getSafeTextBounds, ch as getSegmentAtTime, ci as getTwoColumnPositions, cj as getViewport, ck as getViewportOrientation, cl as isCustomTemplateDefinition, cm as isMotionProfileName, cn as isPersistentLayerTemplate, co as isTemplateBlock, cp as layoutScaledFontSize, cq as readFrontmatterMotion, cr as resolveMediaSchedule, cs as resolveMotionForDoc, ct as resolveMotionProfile, cu as scaledFontSize, cv as scheduleMediaClip, cw as validateCustomTemplateDefinition } from './Doc-BJSPtsQD.js';
|
|
4
4
|
export { AVAILABLE_FONT_STACKS, CompileOptions, ContrastPreset, DocSchemaIssue, FONT_FALLBACKS, FontStack, MermaidThemeVariables, PipStyleVars, STARTER_THEME, ValidationError, ValidationResult, accentToColorScheme, assertDocSchema, assertTheme, buildGoogleFontsUrl, buildMermaidThemeVariables, compileTheme, contrastRatio, defaultPageStyle, deriveColorPalette, deriveScale, fontStack, getFontStack, guessFontFallback, hexHueDegrees, isHex, matchFontFamily, oklchDarken, oklchLighten, oklchSetChroma, parseTheme, pickContrastingText, pipStyleVars, relativeLuminance, resolveFontFamily, serializeTheme, validateDocSchema, validateTheme, withAlpha } from './schemas/index.js';
|
|
5
|
-
export { D as DEFAULT_THEME, a as DEFAULT_THEME_ID, T as THEMES, g as getAvailableThemes, b as getThemeSummaries, r as resolveTheme } from './themeLibrary-
|
|
5
|
+
export { D as DEFAULT_THEME, a as DEFAULT_THEME_ID, T as THEMES, g as getAvailableThemes, b as getThemeSummaries, r as resolveTheme } from './themeLibrary-IHAirzT-.js';
|
|
6
6
|
export { M as MediaEntry, a as MediaProvider } from './MediaProvider-wpSe21B3.js';
|
|
7
|
-
export { E as EditorLayerMeta, I as ImageEditCanvas, a as ImageEditDoc, b as ImageEditLayer, c as ImageEditLayerKind, d as ImageEditMeta } from './ImageEditDoc-
|
|
8
|
-
export { ASCII_CHAR_H, ASCII_CHAR_W, ASCII_DIAGRAM_FENCE_LANGS, ASCII_TIMELINE_FENCE_LANGS, AccentLayout, AsciiDiagram, AsciiDiagramDetection, AsciiDiagramEdge, AsciiDiagramNode, AsciiTimeline, AsciiTimelineDetection, AsciiTimelineEvent, AsciiTimelineLink, AsciiTimelineMarker, AsciiTimelineSide, AsciiTimelineStats, AsciiTimelineStyle, AsciiTimelineTrack, AudioSegmentTiming, BASE_INPUT_DESCRIPTORS, BLOCK_MEDIA_LAYOUT_POLICIES, BUILTIN_DASHBOARD_LAYOUTS, BlockLayerMaterialization, BlockMediaLayoutPolicy, BuildPreviewDocOptions, BuildTimeline, BuiltInTemplateName, CONTAINER_TEMPLATES, COVER_SLIDE_FRONTMATTER_KEYS, COVER_SLIDE_TEMPLATE_OPTIONS, ClipBox, ConnectorAnchor, ConnectorPort, ConnectorRouting, ConnectorSnapPoint, ContentBuildPlan, CoverBlockInput, CoverSlidePlayback, CoverSlideSettings, CoverSlideTemplate, CoverSlideTemplateOption, DASHBOARD_AUTO_LAYOUT_ID, DASHBOARD_FRONTMATTER_KEYS, DASHBOARD_STYLES, DASHBOARD_STYLE_IDS, DASHBOARD_ZOOM_LEVELS, DATA_FILE_EXTENSIONS, DEFAULT_COVER_SLIDE_SETTINGS, DEFAULT_DASHBOARD_SETTINGS, DEFAULT_DASHBOARD_STYLE, DEFAULT_LAYOUT, DEFAULT_WORD_STAGGER, DIAGRAM_LABEL_HORIZONTAL_PADDING, DIAGRAM_LABEL_LINE_HEIGHT, DIAGRAM_LABEL_MIN_FONT_SIZE, DIAGRAM_LABEL_VERTICAL_PADDING, DashboardCell, DashboardCellChrome, DashboardCellDefinition, DashboardCellFrame, DashboardDiagnostic, DashboardLayoutDefinition, DashboardLayoutSummary, DashboardLayoutValidationError, DashboardLayoutValidationResult, DashboardMaterialization, DashboardRectPct, DashboardSettings, DashboardSettingsOverrides, DashboardStyleId, DashboardStyleSummary, DashboardTitle, DashboardTitleSlotDefinition, DashboardZoomCandidate, DashboardZoomLevel, DashboardZoomMode, DataFenceParseResult, DataSourceReadOptions, DataSourceReader, DataSourceStats, DataSourceTable, DeriveTemplateInputsOptions, DetectAsciiTimelineOptions, DiagramEdge, DiagramLabelFit, DiagramLayout, DiagramLayoutOptions, DiagramNodePosition, DrawingConnector, DrawingLayout, DrawingLayoutOptions, DrawingShape, DrawingShapeKind, EmbeddedVideo, ExpandDocBlocksOptions, ExtractedTableData, FRONTMATTER_DASHBOARD_LAYOUTS_KEY, FirstImage, Flashcard, FlashcardChoice, FlashcardDeck, FlashcardDiagnostic, FlashcardDiagnosticCode, FlashcardFace, FlashcardKind, FlashcardSourceMode, GEOMETRY_BOUND_TEMPLATES, HostedVideo, InputCoercion, LayerMaterializationDiagnostic, LayerMaterializationFailureMode, LayerMaterializationSource, LayoutLayerDefaults, LayoutLayersResult, MAX_COVER_SLIDE_DURATION_SECONDS, MarkdownToDocOptions, MarkdownValidationResult, MaterializeBlockLayersOptions, MaterializeDashboardOptions, MaterializeFlashcardsOptions, NarrationResolution, NativeMediaLayout, NoMediaLayout, PAGE_BASE_CSS, PATH_SHAPE_KINDS, PageSectionContext, PageSectionDraft, ParsedStat, RenderAsciiDiagramOptions, RenderAsciiTimelineOptions, RenderTreeOptions, RepairResult, ResolveDataReferencesOptions, ResolvedDashboardCell, ResolvedDataReferences, ResolvedPageBlock, RichListItem, RuntimeTemplateRegistry, SHAPE_NAMES, SectionExtractor, SupplementalMediaLayoutVariant, SupplementalMediaShape, SupplementalMediaVariantMatrix, TABLE_FED_TEMPLATES, TEMPLATE_AUTHORING_METADATA, TEMPLATE_INPUT_DESCRIPTORS, TEMPLATE_METADATA, TREE_FENCE_LANGS, TemplateAuthoringMetadata, TemplateAuthoringRole, TemplateBodyPolicy, TemplateInputDescriptor, TemplateMediaOwnership, TemplateMetadata, TemplateParamFinding, Tree, TreeDetection, TreeItem, TreeNode, UnconsumedMediaBehavior, ValidateOptions, accentForViewport, adjustY, anchorPoint, applyNarrationTiming, applyRenderStyleToLayers, asciiCellToCanvas, asciiDiagramFromBlocks, asciiDiagramFromTemplateData, asciiDiagramToTemplateData, asciiTimelineToTemplateData, autoTemplatePreservesContent, bigText, blockBuildSteps, buildCursorAtTime, buildDashboardCellChrome, buildPageCss, buildPageCssVars, buildPreviewDoc, buildRegistry, buildSourceText, buildTargetState, canvasToAsciiCell, chooseDashboardLayout, clipEndpoints, clipPoint, coerceTemplateParams, comparisonBar, composeDashboardLayers, computeDiagramLayout, computeDrawingLayout, computeLayoutLayers, connectorPath, contentBlock, countBlocks, countUpSpecFor, coverBlock, createAccentLayers, cssFilterForTreatment, dashboardCanvasFill, dashboardCellAccent, dataSidecarPrefix, dataTable, dateEvent, definitionCard, deriveTemplateInputs, desiredCellZoom, detectAsciiDiagram, detectAsciiTimeline, detectTree, diagramBlock, docToMarkdown, documentTitleFromFileName, drawingBlock, expandCoverBlock, expandDocBlocks, expandPersistentLayers, extractBlockquoteText, extractBodyPlainText, extractEmbeddedVideos, extractFirstEmbeddedVideo, extractFirstImage, extractHostedVideos, extractImages, extractListItems, extractRichListItems, extractTableData, extractTableFromContents, factCard, fallbackBlockLayers, findFirstList, findFirstTable, fitBigTextSize, fitDiagramLabel, flattenBlocks, flattenRenderableBlocks, formatCountUp, formatCountValue, fullBleedQuote, getAccentLayout, getAnimationProgress, getAnimationStyle, getAvailableTemplates, getBlockBodyText, getBlockDepth, getBlockMediaLayoutPolicy, getDashboardLayoutSummaries, getDefaultAnimation, getDefaultAnimationDuration, getMotionProfile, getOverlayOpacity, getPersistentLayersFromTheme, getPinnedBlockMeta, getTemplateHint, getThemeFont, getTransitionClass, hasBlockBuilds, hasTemplate, imageWithCaption, isAsciiDiagramFence, isAsciiTimelineFence, isContainerTemplate, isDataFence, isDataFilePath, isEligibleAsciiFenceLang, isEligibleAsciiTimelineFenceLang, isEligibleTreeFenceLang, isExplicitDiagramLang, isExplicitTimelineLang, isExplicitTreeLang, isGeometryBoundTemplate, isMaterializedMediaNode, isRepairableDiagram, isShapeName, isTemplatedPageBlock, isTreeFence, isWrappedFlowTimelineSource, layoutBlock, layoutCapacity, leftFeature, lineStyleDasharray, lintTemplateParams, listBlock, listDashboardLayouts, mapBlock, markdownBlockSeparatorLines, markdownToDoc, markerPath, materializeBlockLayers, materializeDashboard, materializeFlashcards, motionDelay, motionEntrance, motionStateTransform, nearestSnapPoint, normalizeDashboardZoom, normalizeShapeKind, pageStyleDataAttributes, parseAsciiDiagram, parseAsciiTimeline, parseAsciiTimelineWithStats, parseDataFence, parseStatNumber, parseTree, parseWrappedFlowTimeline, parseYamlSubset, photoGrid, planContentBuilds, pullQuote, quoteBlock, readCustomTemplatesFromFrontmatter, readCustomThemesFromFrontmatter, readDashboardLayoutsFromFrontmatter, renderAsciiDiagram, renderAsciiTimeline, renderMarkdownBlocksHtml, renderTree, repairAsciiDiagram, replaceDataFence, resolveAudioMapping, resolveBuildTimeline, resolveColorScheme, resolveCoverSlideSettings, resolveDashboardLayoutDefinition, resolveDashboardSettings, resolveDashboardStyleId, resolveDashboardZooms, resolveDataReferences, resolveDocBuildTiming, resolveFlashcardMarker, resolveLayoutCells, resolvePageBlock, resolvePersistentLayers, resolveTemplateName, resolveThemeForDoc, rightFeature, scaleAnimationDuration, scoreTextSimilarity, sectionExtractors, sectionHeader, shapePath, shouldUseShadow, snapEndpoints, snapPoints, statHighlight, stripBlockBackdropLayer, stripsBlockBackdrop, templateRegistry, themeWantsAmbientMotion, themedEntrance, themedFontSize, themedImageTreatment, themedScrim, themedSurfaceGradient, timelineBlock, titleBlock, transformOriginFor, transposeCells, treeBlock, treeFromMarkdownList, treeFromTemplateData, treeToTemplateData, twoColumn, validateDashboardLayoutDefinition, validateMarkdownDoc, validateMarkdownSource, videoPullQuote, videoWithCaption, wordRevealDelay, wrapWithPersistentLayers, writeCustomTemplatesToFrontmatter, writeCustomThemesToFrontmatter, writeDashboardLayoutsToFrontmatter } from './doc/index.js';
|
|
9
|
-
export { M as MaterializePageSectionOptions, a as MaterializePageSectionsOptions, P as PageMedia, b as PageRichText, c as PageSection, d as PageSectionDiagnostic, e as PageSectionItem, f as PageSectionMaterialization, g as PageSectionSource, h as PageSpatialKind, i as PageTransformHints, m as materializePageSection, j as materializePageSections, r as resolvePageStyle } from './materializePageSection-
|
|
7
|
+
export { E as EditorLayerMeta, I as ImageEditCanvas, a as ImageEditDoc, b as ImageEditLayer, c as ImageEditLayerKind, d as ImageEditMeta } from './ImageEditDoc-QIzn1qK5.js';
|
|
8
|
+
export { ASCII_CHAR_H, ASCII_CHAR_W, ASCII_DIAGRAM_FENCE_LANGS, ASCII_TIMELINE_FENCE_LANGS, AccentLayout, AsciiDiagram, AsciiDiagramDetection, AsciiDiagramEdge, AsciiDiagramNode, AsciiTimeline, AsciiTimelineDetection, AsciiTimelineEvent, AsciiTimelineLink, AsciiTimelineMarker, AsciiTimelineSide, AsciiTimelineStats, AsciiTimelineStyle, AsciiTimelineTrack, AudioSegmentTiming, BASE_INPUT_DESCRIPTORS, BLOCK_MEDIA_LAYOUT_POLICIES, BUILTIN_DASHBOARD_LAYOUTS, BlockLayerMaterialization, BlockMediaLayoutPolicy, BuildPreviewDocOptions, BuildTimeline, BuiltInTemplateName, CONTAINER_TEMPLATES, COVER_SLIDE_FRONTMATTER_KEYS, COVER_SLIDE_TEMPLATE_OPTIONS, ClipBox, ConnectorAnchor, ConnectorPort, ConnectorRouting, ConnectorSnapPoint, ContentBuildPlan, CoverBlockInput, CoverSlidePlayback, CoverSlideSettings, CoverSlideTemplate, CoverSlideTemplateOption, DASHBOARD_AUTO_LAYOUT_ID, DASHBOARD_FRONTMATTER_KEYS, DASHBOARD_STYLES, DASHBOARD_STYLE_IDS, DASHBOARD_ZOOM_LEVELS, DATA_FILE_EXTENSIONS, DEFAULT_COVER_SLIDE_SETTINGS, DEFAULT_DASHBOARD_SETTINGS, DEFAULT_DASHBOARD_STYLE, DEFAULT_LAYOUT, DEFAULT_WORD_STAGGER, DIAGRAM_LABEL_HORIZONTAL_PADDING, DIAGRAM_LABEL_LINE_HEIGHT, DIAGRAM_LABEL_MIN_FONT_SIZE, DIAGRAM_LABEL_VERTICAL_PADDING, DashboardCell, DashboardCellChrome, DashboardCellDefinition, DashboardCellFrame, DashboardDiagnostic, DashboardLayoutDefinition, DashboardLayoutSummary, DashboardLayoutValidationError, DashboardLayoutValidationResult, DashboardMaterialization, DashboardRectPct, DashboardSettings, DashboardSettingsOverrides, DashboardStyleId, DashboardStyleSummary, DashboardTitle, DashboardTitleSlotDefinition, DashboardZoomCandidate, DashboardZoomLevel, DashboardZoomMode, DataFenceParseResult, DataSourceReadOptions, DataSourceReader, DataSourceStats, DataSourceTable, DeriveTemplateInputsOptions, DetectAsciiTimelineOptions, DiagramEdge, DiagramLabelFit, DiagramLayout, DiagramLayoutOptions, DiagramNodePosition, DrawingConnector, DrawingLayout, DrawingLayoutOptions, DrawingShape, DrawingShapeKind, EmbeddedVideo, ExpandDocBlocksOptions, ExtractedTableData, FRONTMATTER_DASHBOARD_LAYOUTS_KEY, FirstImage, Flashcard, FlashcardChoice, FlashcardDeck, FlashcardDiagnostic, FlashcardDiagnosticCode, FlashcardFace, FlashcardKind, FlashcardSourceMode, GEOMETRY_BOUND_TEMPLATES, HostedVideo, InputCoercion, LayerMaterializationDiagnostic, LayerMaterializationFailureMode, LayerMaterializationSource, LayoutLayerDefaults, LayoutLayersResult, MAX_COVER_SLIDE_DURATION_SECONDS, MarkdownToDocOptions, MarkdownValidationResult, MaterializeBlockLayersOptions, MaterializeDashboardOptions, MaterializeFlashcardsOptions, NarrationResolution, NativeMediaLayout, NoMediaLayout, PAGE_BASE_CSS, PATH_SHAPE_KINDS, PageSectionContext, PageSectionDraft, ParsedStat, RenderAsciiDiagramOptions, RenderAsciiTimelineOptions, RenderTreeOptions, RepairResult, ResolveDataReferencesOptions, ResolvedDashboardCell, ResolvedDataReferences, ResolvedPageBlock, RichListItem, RuntimeTemplateRegistry, SHAPE_NAMES, SectionExtractor, SupplementalMediaLayoutVariant, SupplementalMediaShape, SupplementalMediaVariantMatrix, TABLE_FED_TEMPLATES, TEMPLATE_AUTHORING_METADATA, TEMPLATE_INPUT_DESCRIPTORS, TEMPLATE_METADATA, TREE_FENCE_LANGS, TemplateAuthoringMetadata, TemplateAuthoringRole, TemplateBodyPolicy, TemplateInputDescriptor, TemplateMediaOwnership, TemplateMetadata, TemplateParamFinding, Tree, TreeDetection, TreeItem, TreeNode, UnconsumedMediaBehavior, ValidateOptions, accentForViewport, adjustY, anchorPoint, applyNarrationTiming, applyRenderStyleToLayers, asciiCellToCanvas, asciiDiagramFromBlocks, asciiDiagramFromTemplateData, asciiDiagramToTemplateData, asciiTimelineToTemplateData, autoTemplatePreservesContent, bigText, blockBuildSteps, buildCursorAtTime, buildDashboardCellChrome, buildPageCss, buildPageCssVars, buildPreviewDoc, buildRegistry, buildSourceText, buildTargetState, canvasToAsciiCell, chooseDashboardLayout, clipEndpoints, clipPoint, coerceTemplateParams, comparisonBar, composeDashboardLayers, computeDiagramLayout, computeDrawingLayout, computeLayoutLayers, connectorPath, contentBlock, countBlocks, countUpSpecFor, coverBlock, createAccentLayers, cssFilterForTreatment, dashboardCanvasFill, dashboardCellAccent, dataSidecarPrefix, dataTable, dateEvent, definitionCard, deriveTemplateInputs, desiredCellZoom, detectAsciiDiagram, detectAsciiTimeline, detectTree, diagramBlock, docToMarkdown, documentTitleFromFileName, drawingBlock, expandCoverBlock, expandDocBlocks, expandPersistentLayers, extractBlockquoteText, extractBodyPlainText, extractEmbeddedVideos, extractFirstEmbeddedVideo, extractFirstImage, extractHostedVideos, extractImages, extractListItems, extractRichListItems, extractTableData, extractTableFromContents, factCard, fallbackBlockLayers, findFirstList, findFirstTable, fitBigTextSize, fitDiagramLabel, flattenBlocks, flattenRenderableBlocks, formatCountUp, formatCountValue, fullBleedQuote, getAccentLayout, getAnimationProgress, getAnimationStyle, getAvailableTemplates, getBlockBodyText, getBlockDepth, getBlockMediaLayoutPolicy, getDashboardLayoutSummaries, getDefaultAnimation, getDefaultAnimationDuration, getMotionProfile, getOverlayOpacity, getPersistentLayersFromTheme, getPinnedBlockMeta, getTemplateHint, getThemeFont, getTransitionClass, hasBlockBuilds, hasTemplate, imageWithCaption, isAsciiDiagramFence, isAsciiTimelineFence, isContainerTemplate, isDataFence, isDataFilePath, isEligibleAsciiFenceLang, isEligibleAsciiTimelineFenceLang, isEligibleTreeFenceLang, isExplicitDiagramLang, isExplicitTimelineLang, isExplicitTreeLang, isGeometryBoundTemplate, isMaterializedMediaNode, isPictureFence, isRepairableDiagram, isShapeName, isTemplatedPageBlock, isTreeFence, isWrappedFlowTimelineSource, layoutBlock, layoutCapacity, leftFeature, lineStyleDasharray, lintTemplateParams, listBlock, listDashboardLayouts, mapBlock, markdownBlockSeparatorLines, markdownToDoc, markerPath, materializeBlockLayers, materializeDashboard, materializeFlashcards, motionDelay, motionEntrance, motionStateTransform, nearestSnapPoint, normalizeDashboardZoom, normalizeShapeKind, pageStyleDataAttributes, parseAsciiDiagram, parseAsciiTimeline, parseAsciiTimelineWithStats, parseDataFence, parseStatNumber, parseTree, parseWrappedFlowTimeline, parseYamlSubset, photoGrid, planContentBuilds, pullQuote, quoteBlock, readCustomTemplatesFromFrontmatter, readCustomThemesFromFrontmatter, readDashboardLayoutsFromFrontmatter, renderAsciiDiagram, renderAsciiTimeline, renderMarkdownBlocksHtml, renderTree, repairAsciiDiagram, replaceDataFence, resolveAudioMapping, resolveBuildTimeline, resolveColorScheme, resolveCoverSlideSettings, resolveDashboardLayoutDefinition, resolveDashboardSettings, resolveDashboardStyleId, resolveDashboardZooms, resolveDataReferences, resolveDocBuildTiming, resolveFlashcardMarker, resolveLayoutCells, resolvePageBlock, resolvePersistentLayers, resolveTemplateName, resolveThemeForDoc, rightFeature, scaleAnimationDuration, scoreTextSimilarity, sectionExtractors, sectionHeader, shapePath, shouldUseShadow, snapEndpoints, snapPoints, statHighlight, stripBlockBackdropLayer, stripsBlockBackdrop, templateRegistry, themeWantsAmbientMotion, themedEntrance, themedFontSize, themedImageTreatment, themedScrim, themedSurfaceGradient, timelineBlock, titleBlock, transformOriginFor, transposeCells, treeBlock, treeFromMarkdownList, treeFromTemplateData, treeToTemplateData, twoColumn, validateDashboardLayoutDefinition, validateMarkdownDoc, validateMarkdownSource, videoPullQuote, videoWithCaption, wordRevealDelay, wrapWithPersistentLayers, writeCustomTemplatesToFrontmatter, writeCustomThemesToFrontmatter, writeDashboardLayoutsToFrontmatter } from './doc/index.js';
|
|
9
|
+
export { M as MaterializePageSectionOptions, a as MaterializePageSectionsOptions, P as PageMedia, b as PageRichText, c as PageSection, d as PageSectionDiagnostic, e as PageSectionItem, f as PageSectionMaterialization, g as PageSectionSource, h as PageSpatialKind, i as PageTransformHints, m as materializePageSection, j as materializePageSections, r as resolvePageStyle } from './materializePageSection-DYnmh8X1.js';
|
|
10
10
|
export { calculateBearing, decodeGeohash, destinationPoint, encodeGeohash, geohashOverlapsBounds, geohashToHierarchicalPath, getGeohash4Neighbors, getGeohashPath, getGeohashPrefix, getNeighbors, haversineDistance, interpolateGreatCircle, sampleGreatCircle } from './spatial/index.js';
|
|
11
11
|
export { LocalForageAdapter, LocalForageAdapterOptions, LocalStorageAdapter, MemoryStorageAdapter, ScopedContentContainer, StorageAdapter, createMediaProviderFromContainer, scopeContainer } from './storage/index.js';
|
|
12
12
|
export { C as ContentContainer, a as ContentEntry, M as MemoryContentContainer, f as findDocumentPath } from './ContentContainer-B2w9sUoL.js';
|
|
13
|
-
export { BlockVideoEmbed, DEFAULT_INTERACTIVE_RESOURCE_POLICY, DEFAULT_RESOURCE_MAX_BYTES, DEFAULT_RESOURCE_TIMEOUT_MS, DEFAULT_WRAP_WIDTH, DocfxMarkdownOptions, FetchResourceBytesOptions, FetchedResource, HtmlPolicy, LOCAL_ONLY_RESOURCE_POLICY, MARKDOWN_SOURCE_TRANSFORMS, MarkdownReferenceOptions, MarkdownSourceEdit, MarkdownSourceTransform, MarkdownSourceTransformId, MarkdownSourceTransformOptions, MarkdownSourceTransformResult, MarkdownWrapState, MediaReferenceKind, ResourcePolicy, ResourcePolicyError, SanitizeUrlOptions, TrailingAnnotationMatch, UrlKind, VIDEO_EMBED_IFRAME_ALLOW, VIDEO_EMBED_PROVIDERS, VideoEmbed, VideoEmbedProviderId, VideoEmbedProviderInfo, applyMarkdownSourceTransform, cleanupMarkdownSource, condenseMarkdownSource, countNodes, createDocument, detectMarkdownWrapState, extractPlainText, fetchResourceBytes, findBlockVideoEmbed, findNodesByType, formatBlockScalar, formatFrontmatterValue, formatFrontmatterYaml, fromMdast, getChildren, inferDocumentTitle, isResourceUrlAllowed, isVideoEmbedUrl, matchTrailingPandocAttr, matchTrailingTemplateAnnotation, mediaKindForUrl, needsQuoting, normalizeDocfxMarkdown, parseFrontmatter, parseHtmlToNodes, parseMarkdown, parsePandocAttrTokens, parseVideoEmbedInput, parseVideoEmbedUrl, parseVideoStartTime, plainTextFromInlineHtml, quoteAttrValue, readFrontmatterThemeId, rewriteMarkdownReferences, sanitizeHtmlNodes, sanitizeUrl, serializePandocAttributes, setFrontmatterValues, splitFrontmatterBlock, splitKeyValueToken, stringifyHtmlNodes, stringifyMarkdown, toMdast, tokenizeAttrTokens, unquoteAttrValue, unwrapMarkdownSource, videoEmbedFromIframe, videoEmbedIframeAttributes, walkMarkdownTree, wrapMarkdownSource } from './markdown/index.js';
|
|
13
|
+
export { BlockVideoEmbed, DEFAULT_INTERACTIVE_RESOURCE_POLICY, DEFAULT_RESOURCE_MAX_BYTES, DEFAULT_RESOURCE_TIMEOUT_MS, DEFAULT_WRAP_WIDTH, DocfxMarkdownOptions, FetchResourceBytesOptions, FetchedResource, HtmlPolicy, LOCAL_ONLY_RESOURCE_POLICY, MARKDOWN_SOURCE_TRANSFORMS, MarkdownReferenceOptions, MarkdownSourceEdit, MarkdownSourceTransform, MarkdownSourceTransformId, MarkdownSourceTransformOptions, MarkdownSourceTransformResult, MarkdownWrapState, MediaReferenceKind, ParseSvgIslandOptions, ResourcePolicy, ResourcePolicyError, SVG_ISLAND_LIMITS, SanitizeUrlOptions, SvgIsland, SvgIslandDiagnostic, SvgIslandFailureReason, SvgIslandMarkupOptions, SvgIslandResult, TrailingAnnotationMatch, UrlKind, VIDEO_EMBED_IFRAME_ALLOW, VIDEO_EMBED_PROVIDERS, VideoEmbed, VideoEmbedProviderId, VideoEmbedProviderInfo, applyMarkdownSourceTransform, cleanupMarkdownSource, condenseMarkdownSource, countNodes, createDocument, detectMarkdownWrapState, extractPlainText, fetchResourceBytes, findBlockVideoEmbed, findNodesByType, formatBlockScalar, formatFrontmatterValue, formatFrontmatterYaml, fromMdast, getChildren, inferDocumentTitle, isResourceUrlAllowed, isSvgImageSource, isSvgIslandFence, isSvgIslandLang, isVideoEmbedUrl, matchTrailingPandocAttr, matchTrailingTemplateAnnotation, mediaKindForUrl, needsQuoting, normalizeDocfxMarkdown, parseFrontmatter, parseHtmlToNodes, parseMarkdown, parsePandocAttrTokens, parseSvgIsland, parseVideoEmbedInput, parseVideoEmbedUrl, parseVideoStartTime, plainTextFromInlineHtml, quoteAttrValue, readFrontmatterThemeId, rewriteMarkdownReferences, sanitizeHtmlNodes, sanitizeUrl, serializePandocAttributes, setFrontmatterValues, splitFrontmatterBlock, splitKeyValueToken, stringifyHtmlNodes, stringifyMarkdown, svgIslandDataUrl, svgIslandMarkup, svgSourceFromBytes, svgSourceFromDataUrl, toMdast, tokenizeAttrTokens, unquoteAttrValue, unwrapMarkdownSource, videoEmbedFromIframe, videoEmbedIframeAttributes, walkMarkdownTree, wrapMarkdownSource } from './markdown/index.js';
|
|
14
14
|
export { B as BLOCK_META_KEY_DESCRIPTORS, a as BlockMetaKeyDescriptor, K as KNOWN_BLOCK_META_KEYS, b as KnownBlockMetaKey, p as parseTimeSeconds } from './annotationCoercion-TxFucMtA.js';
|
|
15
15
|
export { BuildCaptionTrackOptions, CaptionSegmentSource, DEFAULT_WORDS_PER_SECOND, NarrationTimeEstimate, NarrationTimeOptions, ReadingTimeEstimate, ReadingTimeOptions, buildCaptionTrack, calculatePrefixDuration, countSpokenWords, estimateNarrationDuration, estimateNarrationTime, estimateReadingTime, estimateSpokenWordCount, estimateTimeFromText } from './timing/index.js';
|
|
16
16
|
export { SeededRandom, hashString } from './random/index.js';
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
recordSlideShown,
|
|
28
28
|
traceWordPosAt,
|
|
29
29
|
vadStep
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-YZ66VMBB.js";
|
|
31
31
|
import {
|
|
32
32
|
fenceRendererLangs
|
|
33
33
|
} from "./chunk-PGI7HSWE.js";
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
resolveRef,
|
|
87
87
|
setByPointer,
|
|
88
88
|
toPointer
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-GX3VSKYS.js";
|
|
90
90
|
import {
|
|
91
91
|
IMAGE_EDIT_ASSETS_PREFIX,
|
|
92
92
|
IMAGE_EDIT_DEFAULT_BASENAME,
|
|
@@ -137,7 +137,7 @@ import {
|
|
|
137
137
|
pipStyleVars,
|
|
138
138
|
serializeTheme,
|
|
139
139
|
validateDocSchema
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-E2NFHYCB.js";
|
|
141
141
|
import {
|
|
142
142
|
calculateBearing,
|
|
143
143
|
decodeGeohash,
|
|
@@ -229,12 +229,12 @@ import {
|
|
|
229
229
|
validateMarkdownSource,
|
|
230
230
|
wordRevealDelay,
|
|
231
231
|
writeDashboardLayoutsToFrontmatter
|
|
232
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-DTAYI7AV.js";
|
|
233
233
|
import {
|
|
234
234
|
buildNarrationTimingJson,
|
|
235
235
|
parseNarrationTimingJson,
|
|
236
236
|
resolveNarrationTimingGenerator
|
|
237
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-FTN6SGW5.js";
|
|
238
238
|
import {
|
|
239
239
|
DEFAULT_TRANSFORM_STYLE_ID,
|
|
240
240
|
DYNAMIC_PRESENTATION_STYLE,
|
|
@@ -261,10 +261,8 @@ import {
|
|
|
261
261
|
serializePresentationPlan,
|
|
262
262
|
transformNarratedSegment,
|
|
263
263
|
usesDynamicPresentation
|
|
264
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-TFMDVOUQ.js";
|
|
265
265
|
import {
|
|
266
|
-
ASCII_CHAR_H,
|
|
267
|
-
ASCII_CHAR_W,
|
|
268
266
|
BASE_INPUT_DESCRIPTORS,
|
|
269
267
|
BLOCK_MEDIA_LAYOUT_POLICIES,
|
|
270
268
|
DEFAULT_LAYOUT,
|
|
@@ -280,12 +278,6 @@ import {
|
|
|
280
278
|
accentForViewport,
|
|
281
279
|
adjustY,
|
|
282
280
|
applyRenderStyleToLayers,
|
|
283
|
-
asciiCellToCanvas,
|
|
284
|
-
asciiDiagramFromBlocks,
|
|
285
|
-
asciiDiagramFromTemplateData,
|
|
286
|
-
asciiDiagramToTemplateData,
|
|
287
|
-
asciiTimelineToTemplateData,
|
|
288
|
-
autoTemplatePreservesContent,
|
|
289
281
|
bigText,
|
|
290
282
|
blockBuildSteps,
|
|
291
283
|
buildCursorAtTime,
|
|
@@ -293,10 +285,8 @@ import {
|
|
|
293
285
|
buildRegistry,
|
|
294
286
|
buildSourceText,
|
|
295
287
|
buildTargetState,
|
|
296
|
-
canvasToAsciiCell,
|
|
297
288
|
coerceTemplateParams,
|
|
298
289
|
comparisonBar,
|
|
299
|
-
computeDiagramLayout,
|
|
300
290
|
computeDrawingLayout,
|
|
301
291
|
computeLayoutLayers,
|
|
302
292
|
contentBlock,
|
|
@@ -307,7 +297,6 @@ import {
|
|
|
307
297
|
dataTable,
|
|
308
298
|
dateEvent,
|
|
309
299
|
definitionCard,
|
|
310
|
-
deriveTemplateInputs,
|
|
311
300
|
diagramBlock,
|
|
312
301
|
drawingBlock,
|
|
313
302
|
estimateSyllables,
|
|
@@ -315,20 +304,9 @@ import {
|
|
|
315
304
|
expandDocBlocks,
|
|
316
305
|
expandPersistentLayers,
|
|
317
306
|
expectedSyllablesAt,
|
|
318
|
-
extractBlockquoteText,
|
|
319
|
-
extractBodyPlainText,
|
|
320
|
-
extractEmbeddedVideos,
|
|
321
|
-
extractFirstEmbeddedVideo,
|
|
322
|
-
extractFirstImage,
|
|
323
|
-
extractHostedVideos,
|
|
324
|
-
extractImages,
|
|
325
|
-
extractListItems,
|
|
326
|
-
extractRichListItems,
|
|
327
307
|
extractTableData,
|
|
328
|
-
extractTableFromContents,
|
|
329
308
|
factCard,
|
|
330
309
|
fallbackBlockLayers,
|
|
331
|
-
findFirstList,
|
|
332
310
|
findFirstTable,
|
|
333
311
|
fitBigTextSize,
|
|
334
312
|
fitDiagramLabel,
|
|
@@ -354,14 +332,12 @@ import {
|
|
|
354
332
|
imageWithCaption,
|
|
355
333
|
isDataFence,
|
|
356
334
|
isGeometryBoundTemplate,
|
|
357
|
-
isMaterializedMediaNode,
|
|
358
335
|
isShapeName,
|
|
359
336
|
layoutBlock,
|
|
360
337
|
leftFeature,
|
|
361
338
|
lintTemplateParams,
|
|
362
339
|
listBlock,
|
|
363
340
|
mapBlock,
|
|
364
|
-
markdownBlockSeparatorLines,
|
|
365
341
|
markdownToDoc,
|
|
366
342
|
materializeBlockLayers,
|
|
367
343
|
motionDelay,
|
|
@@ -376,7 +352,6 @@ import {
|
|
|
376
352
|
quoteBlock,
|
|
377
353
|
readCustomTemplatesFromFrontmatter,
|
|
378
354
|
readCustomThemesFromFrontmatter,
|
|
379
|
-
renderMarkdownBlocksHtml,
|
|
380
355
|
replaceDataFence,
|
|
381
356
|
resolveBuildTimeline,
|
|
382
357
|
resolveColorScheme,
|
|
@@ -397,9 +372,6 @@ import {
|
|
|
397
372
|
timelineBlock,
|
|
398
373
|
titleBlock,
|
|
399
374
|
treeBlock,
|
|
400
|
-
treeFromMarkdownList,
|
|
401
|
-
treeFromTemplateData,
|
|
402
|
-
treeToTemplateData,
|
|
403
375
|
twoColumn,
|
|
404
376
|
videoPullQuote,
|
|
405
377
|
videoWithCaption,
|
|
@@ -409,14 +381,36 @@ import {
|
|
|
409
381
|
wrapWithPersistentLayers,
|
|
410
382
|
writeCustomTemplatesToFrontmatter,
|
|
411
383
|
writeCustomThemesToFrontmatter
|
|
412
|
-
} from "./chunk-
|
|
384
|
+
} from "./chunk-5VFC5T4N.js";
|
|
413
385
|
import {
|
|
386
|
+
ASCII_CHAR_H,
|
|
387
|
+
ASCII_CHAR_W,
|
|
414
388
|
ASCII_DIAGRAM_FENCE_LANGS,
|
|
415
389
|
ASCII_TIMELINE_FENCE_LANGS,
|
|
416
390
|
TREE_FENCE_LANGS,
|
|
391
|
+
asciiCellToCanvas,
|
|
392
|
+
asciiDiagramFromBlocks,
|
|
393
|
+
asciiDiagramFromTemplateData,
|
|
394
|
+
asciiDiagramToTemplateData,
|
|
395
|
+
asciiTimelineToTemplateData,
|
|
396
|
+
autoTemplatePreservesContent,
|
|
397
|
+
canvasToAsciiCell,
|
|
398
|
+
computeDiagramLayout,
|
|
399
|
+
deriveTemplateInputs,
|
|
417
400
|
detectAsciiDiagram,
|
|
418
401
|
detectAsciiTimeline,
|
|
419
402
|
detectTree,
|
|
403
|
+
extractBlockquoteText,
|
|
404
|
+
extractBodyPlainText,
|
|
405
|
+
extractEmbeddedVideos,
|
|
406
|
+
extractFirstEmbeddedVideo,
|
|
407
|
+
extractFirstImage,
|
|
408
|
+
extractHostedVideos,
|
|
409
|
+
extractImages,
|
|
410
|
+
extractListItems,
|
|
411
|
+
extractRichListItems,
|
|
412
|
+
extractTableFromContents,
|
|
413
|
+
findFirstList,
|
|
420
414
|
isAsciiDiagramFence,
|
|
421
415
|
isAsciiTimelineFence,
|
|
422
416
|
isEligibleAsciiFenceLang,
|
|
@@ -425,16 +419,23 @@ import {
|
|
|
425
419
|
isExplicitDiagramLang,
|
|
426
420
|
isExplicitTimelineLang,
|
|
427
421
|
isExplicitTreeLang,
|
|
422
|
+
isMaterializedMediaNode,
|
|
423
|
+
isPictureFence,
|
|
428
424
|
isTreeFence,
|
|
429
425
|
isWrappedFlowTimelineSource,
|
|
426
|
+
markdownBlockSeparatorLines,
|
|
430
427
|
parseAsciiDiagram,
|
|
431
428
|
parseAsciiTimeline,
|
|
432
429
|
parseAsciiTimelineWithStats,
|
|
433
430
|
parseTree,
|
|
434
431
|
parseWrappedFlowTimeline,
|
|
435
432
|
profileBlockContents,
|
|
436
|
-
recommendTemplatesForBlock
|
|
437
|
-
|
|
433
|
+
recommendTemplatesForBlock,
|
|
434
|
+
renderMarkdownBlocksHtml,
|
|
435
|
+
treeFromMarkdownList,
|
|
436
|
+
treeFromTemplateData,
|
|
437
|
+
treeToTemplateData
|
|
438
|
+
} from "./chunk-MPEGJKFJ.js";
|
|
438
439
|
import {
|
|
439
440
|
extractContent,
|
|
440
441
|
mapElementToBlock,
|
|
@@ -543,7 +544,7 @@ import {
|
|
|
543
544
|
validateCustomTemplateDefinition,
|
|
544
545
|
validateTheme,
|
|
545
546
|
withAlpha
|
|
546
|
-
} from "./chunk-
|
|
547
|
+
} from "./chunk-HYJ63N6V.js";
|
|
547
548
|
import "./chunk-JSGIWW35.js";
|
|
548
549
|
import "./chunk-L7QZORLB.js";
|
|
549
550
|
import {
|
|
@@ -575,7 +576,7 @@ import {
|
|
|
575
576
|
stringifyMarkdown,
|
|
576
577
|
unwrapMarkdownSource,
|
|
577
578
|
wrapMarkdownSource
|
|
578
|
-
} from "./chunk-
|
|
579
|
+
} from "./chunk-ZKDJHO6Y.js";
|
|
579
580
|
import {
|
|
580
581
|
DEFAULT_MARKDOWN_SAFETY_LIMITS,
|
|
581
582
|
MarkdownLimitError,
|
|
@@ -587,26 +588,23 @@ import {
|
|
|
587
588
|
resolveMarkdownSafetyLimits,
|
|
588
589
|
serializePandocAttributes,
|
|
589
590
|
toMdast
|
|
590
|
-
} from "./chunk-
|
|
591
|
+
} from "./chunk-EX75I5HX.js";
|
|
591
592
|
import {
|
|
592
|
-
BLOCK_META_KEY_DESCRIPTORS,
|
|
593
593
|
CONTAINER_TEMPLATES,
|
|
594
|
-
KNOWN_BLOCK_META_KEYS,
|
|
595
594
|
TABLE_FED_TEMPLATES,
|
|
596
595
|
isContainerTemplate,
|
|
597
596
|
matchTrailingPandocAttr,
|
|
598
597
|
matchTrailingTemplateAnnotation,
|
|
599
598
|
needsQuoting,
|
|
600
|
-
parseTimeSeconds,
|
|
601
599
|
quoteAttrValue,
|
|
602
600
|
resolveTemplateName,
|
|
603
|
-
sanitizeHtmlNodes,
|
|
604
|
-
sanitizeUrl,
|
|
605
601
|
splitKeyValueToken,
|
|
606
602
|
tokenizeAttrTokens,
|
|
607
603
|
unquoteAttrValue
|
|
608
|
-
} from "./chunk-
|
|
604
|
+
} from "./chunk-Y25EJEZN.js";
|
|
609
605
|
import {
|
|
606
|
+
BLOCK_META_KEY_DESCRIPTORS,
|
|
607
|
+
KNOWN_BLOCK_META_KEYS,
|
|
610
608
|
VIDEO_EMBED_IFRAME_ALLOW,
|
|
611
609
|
VIDEO_EMBED_PROVIDERS,
|
|
612
610
|
countNodes,
|
|
@@ -619,22 +617,33 @@ import {
|
|
|
619
617
|
formatFrontmatterYaml,
|
|
620
618
|
getChildren,
|
|
621
619
|
inferDocumentTitle,
|
|
620
|
+
isSvgImageSource,
|
|
621
|
+
isSvgIslandFence,
|
|
622
|
+
isSvgIslandLang,
|
|
622
623
|
isVideoEmbedUrl,
|
|
623
624
|
mediaKindForUrl,
|
|
624
625
|
parseFrontmatter,
|
|
625
626
|
parseHtmlToNodes,
|
|
627
|
+
parseSvgIsland,
|
|
628
|
+
parseTimeSeconds,
|
|
626
629
|
parseVideoEmbedInput,
|
|
627
630
|
parseVideoEmbedUrl,
|
|
628
631
|
parseVideoStartTime,
|
|
629
632
|
plainTextFromInlineHtml,
|
|
630
633
|
readFrontmatterThemeId,
|
|
634
|
+
sanitizeHtmlNodes,
|
|
635
|
+
sanitizeUrl,
|
|
631
636
|
setFrontmatterValues,
|
|
632
637
|
splitFrontmatterBlock,
|
|
633
638
|
stringifyHtmlNodes,
|
|
639
|
+
svgIslandDataUrl,
|
|
640
|
+
svgIslandMarkup,
|
|
641
|
+
svgSourceFromBytes,
|
|
642
|
+
svgSourceFromDataUrl,
|
|
634
643
|
videoEmbedFromIframe,
|
|
635
644
|
videoEmbedIframeAttributes,
|
|
636
645
|
walkMarkdownTree
|
|
637
|
-
} from "./chunk-
|
|
646
|
+
} from "./chunk-MWSGNEH6.js";
|
|
638
647
|
import {
|
|
639
648
|
ICONS,
|
|
640
649
|
canonicalIconToken,
|
|
@@ -649,6 +658,7 @@ import {
|
|
|
649
658
|
BUILD_PARAM_KEYS,
|
|
650
659
|
BUILD_PREVIOUS,
|
|
651
660
|
DEFAULT_TRANSITION_DURATION_SECONDS,
|
|
661
|
+
SVG_ISLAND_LIMITS,
|
|
652
662
|
TRANSITION_DIRECTIONS,
|
|
653
663
|
TRANSITION_TYPES,
|
|
654
664
|
buildSpecParams,
|
|
@@ -659,7 +669,7 @@ import {
|
|
|
659
669
|
recordBuildAdvance,
|
|
660
670
|
resolveBlockTransition,
|
|
661
671
|
resolveTransitionDuration
|
|
662
|
-
} from "./chunk-
|
|
672
|
+
} from "./chunk-P53Z4RYC.js";
|
|
663
673
|
import {
|
|
664
674
|
buildCaptionTrack
|
|
665
675
|
} from "./chunk-4OQFLZ6G.js";
|
|
@@ -787,6 +797,7 @@ export {
|
|
|
787
797
|
ResourcePolicyError,
|
|
788
798
|
SHAPE_NAMES,
|
|
789
799
|
STARTER_THEME,
|
|
800
|
+
SVG_ISLAND_LIMITS,
|
|
790
801
|
ScopedContentContainer,
|
|
791
802
|
SeededRandom,
|
|
792
803
|
TABLE_FED_TEMPLATES,
|
|
@@ -1055,10 +1066,14 @@ export {
|
|
|
1055
1066
|
isMaterializedMediaNode,
|
|
1056
1067
|
isMotionProfileName,
|
|
1057
1068
|
isPersistentLayerTemplate,
|
|
1069
|
+
isPictureFence,
|
|
1058
1070
|
isRepairableDiagram,
|
|
1059
1071
|
isResourceUrlAllowed,
|
|
1060
1072
|
isSafeConditionRegex,
|
|
1061
1073
|
isShapeName,
|
|
1074
|
+
isSvgImageSource,
|
|
1075
|
+
isSvgIslandFence,
|
|
1076
|
+
isSvgIslandLang,
|
|
1062
1077
|
isTemplateBlock,
|
|
1063
1078
|
isTemplatedPageBlock,
|
|
1064
1079
|
isTransitionType,
|
|
@@ -1125,6 +1140,7 @@ export {
|
|
|
1125
1140
|
parsePresentationPlan,
|
|
1126
1141
|
parseProofDictionary,
|
|
1127
1142
|
parseStatNumber,
|
|
1143
|
+
parseSvgIsland,
|
|
1128
1144
|
parseTheme,
|
|
1129
1145
|
parseTimeSeconds,
|
|
1130
1146
|
parseTree,
|
|
@@ -1245,6 +1261,10 @@ export {
|
|
|
1245
1261
|
stripMarkdown,
|
|
1246
1262
|
stripsBlockBackdrop,
|
|
1247
1263
|
suggestIcons,
|
|
1264
|
+
svgIslandDataUrl,
|
|
1265
|
+
svgIslandMarkup,
|
|
1266
|
+
svgSourceFromBytes,
|
|
1267
|
+
svgSourceFromDataUrl,
|
|
1248
1268
|
templateRegistry,
|
|
1249
1269
|
themeWantsAmbientMotion,
|
|
1250
1270
|
themedEntrance,
|
package/dist/jsonForm/index.d.ts
CHANGED
package/dist/jsonForm/index.js
CHANGED
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
resolveRef,
|
|
16
16
|
setByPointer,
|
|
17
17
|
toPointer
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
} from "../chunk-GX3VSKYS.js";
|
|
19
|
+
import "../chunk-E2NFHYCB.js";
|
|
20
20
|
import "../chunk-2SRF5III.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-HYJ63N6V.js";
|
|
22
22
|
import "../chunk-JSGIWW35.js";
|
|
23
23
|
import "../chunk-L7QZORLB.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-P53Z4RYC.js";
|
|
25
25
|
export {
|
|
26
26
|
appendPointer,
|
|
27
27
|
arrayItemKind,
|
package/dist/markdown/index.d.ts
CHANGED
|
@@ -437,6 +437,148 @@ declare function parseVideoEmbedInput(input: string | null | undefined): {
|
|
|
437
437
|
*/
|
|
438
438
|
declare function findBlockVideoEmbed(node: MarkdownBlockNode): BlockVideoEmbed | null;
|
|
439
439
|
|
|
440
|
+
/**
|
|
441
|
+
* SVG island hard limits, in a module of their own so schema validation can
|
|
442
|
+
* share them without pulling in the HTML parser behind `parseSvgIsland`.
|
|
443
|
+
*/
|
|
444
|
+
/** Hard limits; a fence past any of them renders as code. */
|
|
445
|
+
declare const SVG_ISLAND_LIMITS: Readonly<{
|
|
446
|
+
maxSourceBytes: number;
|
|
447
|
+
maxElements: 20000;
|
|
448
|
+
maxDepth: 200;
|
|
449
|
+
/** Elements rendered after `<use>` expansion. */
|
|
450
|
+
maxExpandedElements: 50000;
|
|
451
|
+
}>;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* SVG islands — a ```svg code fence that renders as a picture.
|
|
455
|
+
*
|
|
456
|
+
* The authored form is an ordinary fenced code block whose language is `svg`:
|
|
457
|
+
*
|
|
458
|
+
* ```markdown
|
|
459
|
+
* ```svg
|
|
460
|
+
* <svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="currentColor"/></svg>
|
|
461
|
+
* ```
|
|
462
|
+
* ```
|
|
463
|
+
*
|
|
464
|
+
* The fence language is the durable block tag (it survives the Write-view
|
|
465
|
+
* round-trip, where fence meta does not); `xml`, `html` and untagged fences
|
|
466
|
+
* stay code, which is how an author shows SVG markup rather than a picture.
|
|
467
|
+
*
|
|
468
|
+
* The author's markup NEVER reaches a renderer. {@link parseSvgIsland} parses
|
|
469
|
+
* it, keeps an allowlist of elements and attributes, validates every value,
|
|
470
|
+
* and re-serializes the result as standalone XML; renderers show only that
|
|
471
|
+
* output, as an image (`<img>`/`<image>` from {@link svgIslandDataUrl}). In a
|
|
472
|
+
* browser, SVG loaded as an image runs with no script, no network and no
|
|
473
|
+
* interaction, so the sanitizer is the second line of defence there — but
|
|
474
|
+
* Office and EPUB readers render the exported SVG with their own engines, and
|
|
475
|
+
* for them it is the only one. Hence the strict rules:
|
|
476
|
+
*
|
|
477
|
+
* - one `<svg>` root and nothing else (HTML "breakout" tags such as `<p>` close
|
|
478
|
+
* the svg in the HTML parser and land beside it, so any sibling rejects);
|
|
479
|
+
* - elements outside the allowlist — `script`, `foreignObject`, any HTML —
|
|
480
|
+
* are dropped with their content; `<a>` is unwrapped; `<title>`, `<desc>`
|
|
481
|
+
* and `<style>` keep text only (title/desc are HTML integration points);
|
|
482
|
+
* - attributes are looked up in a table that is both the allowlist and the
|
|
483
|
+
* case restorer (`viewBox`, `stroke-width`, `xlink:href`); an author's
|
|
484
|
+
* `xmlns*`, `xml:base` and unknown prefixed names (`foo:href` would become a
|
|
485
|
+
* real `xlink:href` once the output is re-parsed as XML) never survive;
|
|
486
|
+
* - references stay inside the island: `href` is `#id` only (a raster
|
|
487
|
+
* `data:` URI for `<image>`), `url(…)` is `url(#id)` only, and CSS that
|
|
488
|
+
* could fetch or hide a token behind an escape (`@import`, `@font-face`,
|
|
489
|
+
* `image-set(`, `\75 rl(`) is dropped;
|
|
490
|
+
* - size, depth and `<use>` fan-out are capped.
|
|
491
|
+
*/
|
|
492
|
+
|
|
493
|
+
/** Why a fence could not become an island. */
|
|
494
|
+
type SvgIslandFailureReason = 'empty' | 'not-svg' | 'too-large' | 'too-deep' | 'parse';
|
|
495
|
+
/** Something the sanitizer removed, aggregated by kind and name. */
|
|
496
|
+
interface SvgIslandDiagnostic {
|
|
497
|
+
kind: 'element' | 'attribute' | 'style';
|
|
498
|
+
/** `script`, `onload`, `style rule`, … */
|
|
499
|
+
name: string;
|
|
500
|
+
count: number;
|
|
501
|
+
}
|
|
502
|
+
/** A sanitized SVG island, ready to render as an image. */
|
|
503
|
+
interface SvgIsland {
|
|
504
|
+
/** Standalone SVG document (no XML prolog), safe to load as an image. */
|
|
505
|
+
readonly markup: string;
|
|
506
|
+
/** Intrinsic size in CSS pixels, always finite and positive. */
|
|
507
|
+
readonly width: number;
|
|
508
|
+
readonly height: number;
|
|
509
|
+
/** `width / height`. */
|
|
510
|
+
readonly aspectRatio: number;
|
|
511
|
+
/** Accessible name: the root `aria-label`, else its first `<title>`. */
|
|
512
|
+
readonly title?: string;
|
|
513
|
+
}
|
|
514
|
+
type SvgIslandResult = {
|
|
515
|
+
ok: true;
|
|
516
|
+
island: SvgIsland;
|
|
517
|
+
diagnostics: readonly SvgIslandDiagnostic[];
|
|
518
|
+
} | {
|
|
519
|
+
ok: false;
|
|
520
|
+
reason: SvgIslandFailureReason;
|
|
521
|
+
message: string;
|
|
522
|
+
};
|
|
523
|
+
interface ParseSvgIslandOptions {
|
|
524
|
+
/**
|
|
525
|
+
* Render a still: drop SMIL animation (writing a `fill="freeze"`
|
|
526
|
+
* animation's end value onto its target, so the end state shows rather
|
|
527
|
+
* than an invisible start state) and CSS animations/transitions. Used for
|
|
528
|
+
* frame capture, where wall-clock animation would make frames
|
|
529
|
+
* nondeterministic, and for reduced motion.
|
|
530
|
+
*/
|
|
531
|
+
static?: boolean;
|
|
532
|
+
}
|
|
533
|
+
interface SvgIslandMarkupOptions {
|
|
534
|
+
/**
|
|
535
|
+
* The surrounding text color. Set as the root `color` (unless the author
|
|
536
|
+
* set one) so `currentColor` follows the page instead of defaulting to
|
|
537
|
+
* black inside the image.
|
|
538
|
+
*/
|
|
539
|
+
color?: string;
|
|
540
|
+
/**
|
|
541
|
+
* Also substitute `color` for every `currentColor` in attributes and CSS —
|
|
542
|
+
* for renderers outside the browser (Office, EPUB readers) that may not
|
|
543
|
+
* resolve `currentColor` from the root.
|
|
544
|
+
*/
|
|
545
|
+
replaceCurrentColor?: boolean;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/** Whether a fence language marks an SVG island (`svg`, any case/padding). */
|
|
549
|
+
declare function isSvgIslandLang(lang: string | null | undefined): boolean;
|
|
550
|
+
/** Whether a markdown node is a ```svg fence. */
|
|
551
|
+
declare function isSvgIslandFence(node: MarkdownNode): boolean;
|
|
552
|
+
/**
|
|
553
|
+
* Whether an image reference names SVG: a `.svg` path (query and fragment
|
|
554
|
+
* ignored) or an SVG `data:` URL.
|
|
555
|
+
*/
|
|
556
|
+
declare function isSvgImageSource(src: string | null | undefined): boolean;
|
|
557
|
+
/** An SVG file's text: UTF-8, with a leading byte-order mark dropped. */
|
|
558
|
+
declare function svgSourceFromBytes(bytes: ArrayBuffer | Uint8Array): string;
|
|
559
|
+
/**
|
|
560
|
+
* The SVG text inside a `data:image/svg+xml` URL (base64 or percent-encoded),
|
|
561
|
+
* or null when `url` is not one or does not decode.
|
|
562
|
+
*/
|
|
563
|
+
declare function svgSourceFromDataUrl(url: string): string | null;
|
|
564
|
+
/**
|
|
565
|
+
* Parse and sanitize a ```svg fence body. Memoized (a small LRU), because
|
|
566
|
+
* every materialization pass — slides, dashboard, page, exports — asks again.
|
|
567
|
+
* Never throws.
|
|
568
|
+
*/
|
|
569
|
+
declare function parseSvgIsland(source: string, options?: ParseSvgIslandOptions): SvgIslandResult;
|
|
570
|
+
/**
|
|
571
|
+
* The island as an SVG document string, optionally colored for its
|
|
572
|
+
* surroundings. A color that is not a plain CSS color is ignored.
|
|
573
|
+
*/
|
|
574
|
+
declare function svgIslandMarkup(island: SvgIsland, options?: SvgIslandMarkupOptions): string;
|
|
575
|
+
/**
|
|
576
|
+
* A `data:image/svg+xml;base64,…` URL of the island — the ONLY form a
|
|
577
|
+
* renderer may show it in. Base64 keeps it ~1.34× the markup (percent
|
|
578
|
+
* encoding can reach 9× for non-ASCII text).
|
|
579
|
+
*/
|
|
580
|
+
declare function svgIslandDataUrl(island: SvgIsland, options?: SvgIslandMarkupOptions): string;
|
|
581
|
+
|
|
440
582
|
/**
|
|
441
583
|
* Caller-owned policy for resources referenced by a document.
|
|
442
584
|
*
|
|
@@ -816,4 +958,4 @@ type MediaReferenceKind = 'video' | 'audio';
|
|
|
816
958
|
/** `'video'`, `'audio'`, or null for anything else (an image, a page, no extension). */
|
|
817
959
|
declare function mediaKindForUrl(url: string): MediaReferenceKind | null;
|
|
818
960
|
|
|
819
|
-
export { type BlockVideoEmbed, DEFAULT_INTERACTIVE_RESOURCE_POLICY, DEFAULT_RESOURCE_MAX_BYTES, DEFAULT_RESOURCE_TIMEOUT_MS, DEFAULT_WRAP_WIDTH, type DocfxMarkdownOptions, type FetchResourceBytesOptions, type FetchedResource, HeadingAttributes, HtmlElement, HtmlNode, type HtmlPolicy, LOCAL_ONLY_RESOURCE_POLICY, MARKDOWN_SOURCE_TRANSFORMS, MarkdownBlockNode, MarkdownDocument, MarkdownNode, type MarkdownReferenceOptions, type MarkdownSourceEdit, type MarkdownSourceTransform, type MarkdownSourceTransformId, type MarkdownSourceTransformOptions, type MarkdownSourceTransformResult, type MarkdownWrapState, type MediaReferenceKind, ParseOptions, type ResourcePolicy, ResourcePolicyError, type SanitizeUrlOptions, StringifyOptions, type TrailingAnnotationMatch, type UrlKind, VIDEO_EMBED_IFRAME_ALLOW, VIDEO_EMBED_PROVIDERS, type VideoEmbed, type VideoEmbedProviderId, type VideoEmbedProviderInfo, applyMarkdownSourceTransform, cleanupMarkdownSource, condenseMarkdownSource, countNodes, createDocument, detectMarkdownWrapState, extractPlainText, fetchResourceBytes, findBlockVideoEmbed, findNodesByType, formatBlockScalar, formatFrontmatterValue, formatFrontmatterYaml, fromMdast, getChildren, inferDocumentTitle, isResourceUrlAllowed, isVideoEmbedUrl, matchTrailingPandocAttr, matchTrailingTemplateAnnotation, mediaKindForUrl, needsQuoting, normalizeDocfxMarkdown, parseFrontmatter, parseHtmlToNodes, parseMarkdown, parsePandocAttrTokens, parseVideoEmbedInput, parseVideoEmbedUrl, parseVideoStartTime, plainTextFromInlineHtml, quoteAttrValue, readFrontmatterThemeId, rewriteMarkdownReferences, sanitizeHtmlNodes, sanitizeUrl, serializePandocAttributes, setFrontmatterValues, splitFrontmatterBlock, splitKeyValueToken, stringifyHtmlNodes, stringifyMarkdown, toMdast, tokenizeAttrTokens, unquoteAttrValue, unwrapMarkdownSource, videoEmbedFromIframe, videoEmbedIframeAttributes, walkMarkdownTree, wrapMarkdownSource };
|
|
961
|
+
export { type BlockVideoEmbed, DEFAULT_INTERACTIVE_RESOURCE_POLICY, DEFAULT_RESOURCE_MAX_BYTES, DEFAULT_RESOURCE_TIMEOUT_MS, DEFAULT_WRAP_WIDTH, type DocfxMarkdownOptions, type FetchResourceBytesOptions, type FetchedResource, HeadingAttributes, HtmlElement, HtmlNode, type HtmlPolicy, LOCAL_ONLY_RESOURCE_POLICY, MARKDOWN_SOURCE_TRANSFORMS, MarkdownBlockNode, MarkdownDocument, MarkdownNode, type MarkdownReferenceOptions, type MarkdownSourceEdit, type MarkdownSourceTransform, type MarkdownSourceTransformId, type MarkdownSourceTransformOptions, type MarkdownSourceTransformResult, type MarkdownWrapState, type MediaReferenceKind, ParseOptions, type ParseSvgIslandOptions, type ResourcePolicy, ResourcePolicyError, SVG_ISLAND_LIMITS, type SanitizeUrlOptions, StringifyOptions, type SvgIsland, type SvgIslandDiagnostic, type SvgIslandFailureReason, type SvgIslandMarkupOptions, type SvgIslandResult, type TrailingAnnotationMatch, type UrlKind, VIDEO_EMBED_IFRAME_ALLOW, VIDEO_EMBED_PROVIDERS, type VideoEmbed, type VideoEmbedProviderId, type VideoEmbedProviderInfo, applyMarkdownSourceTransform, cleanupMarkdownSource, condenseMarkdownSource, countNodes, createDocument, detectMarkdownWrapState, extractPlainText, fetchResourceBytes, findBlockVideoEmbed, findNodesByType, formatBlockScalar, formatFrontmatterValue, formatFrontmatterYaml, fromMdast, getChildren, inferDocumentTitle, isResourceUrlAllowed, isSvgImageSource, isSvgIslandFence, isSvgIslandLang, isVideoEmbedUrl, matchTrailingPandocAttr, matchTrailingTemplateAnnotation, mediaKindForUrl, needsQuoting, normalizeDocfxMarkdown, parseFrontmatter, parseHtmlToNodes, parseMarkdown, parsePandocAttrTokens, parseSvgIsland, parseVideoEmbedInput, parseVideoEmbedUrl, parseVideoStartTime, plainTextFromInlineHtml, quoteAttrValue, readFrontmatterThemeId, rewriteMarkdownReferences, sanitizeHtmlNodes, sanitizeUrl, serializePandocAttributes, setFrontmatterValues, splitFrontmatterBlock, splitKeyValueToken, stringifyHtmlNodes, stringifyMarkdown, svgIslandDataUrl, svgIslandMarkup, svgSourceFromBytes, svgSourceFromDataUrl, toMdast, tokenizeAttrTokens, unquoteAttrValue, unwrapMarkdownSource, videoEmbedFromIframe, videoEmbedIframeAttributes, walkMarkdownTree, wrapMarkdownSource };
|