@bendyline/squisq 2.3.3 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/{Doc-BrgZC7SE.d.ts → Doc-CSW6K2UF.d.ts} +222 -9
  2. package/dist/{ImageEditDoc-rum0Xb9P.d.ts → ImageEditDoc-x9yoTb4l.d.ts} +1 -1
  3. package/dist/{chunk-GQNH7PLN.js → chunk-2HY2ZA7U.js} +1470 -77
  4. package/dist/{chunk-G3JOS25T.js → chunk-7TJJA2RI.js} +46 -15
  5. package/dist/{chunk-RS5AP3J4.js → chunk-AE3IUKMM.js} +1 -1
  6. package/dist/{chunk-IZLKI3IL.js → chunk-AQF5ZYDI.js} +76 -16
  7. package/dist/{chunk-QWCFK5FN.js → chunk-CUYHFOFL.js} +5 -1
  8. package/dist/{chunk-2VCNTDNZ.js → chunk-D6YTLQCL.js} +71 -0
  9. package/dist/{chunk-32R2RZAO.js → chunk-DAMIRKTO.js} +1 -1
  10. package/dist/{chunk-ABP4LAJS.js → chunk-EMXYZLRH.js} +1 -1
  11. package/dist/{chunk-2ZWIXGAC.js → chunk-GAZKTT4R.js} +28 -4
  12. package/dist/{chunk-SPTY4C6F.js → chunk-GODLNXO4.js} +45 -3
  13. package/dist/chunk-JUAC2QWP.js +983 -0
  14. package/dist/{chunk-BCCXTMN5.js → chunk-O7JILDEF.js} +7 -0
  15. package/dist/{chunk-C33GTPUZ.js → chunk-SBAX4ZPO.js} +438 -0
  16. package/dist/doc/index.d.ts +113 -6
  17. package/dist/doc/index.js +14 -11
  18. package/dist/generate/index.d.ts +1 -1
  19. package/dist/imageEdit/index.d.ts +3 -3
  20. package/dist/index.d.ts +7 -7
  21. package/dist/index.js +41 -17
  22. package/dist/jsonForm/index.d.ts +1 -1
  23. package/dist/jsonForm/index.js +4 -4
  24. package/dist/markdown/index.d.ts +118 -1
  25. package/dist/markdown/index.js +22 -6
  26. package/dist/{materializePageSection-CrZWYnXM.d.ts → materializePageSection-_rrDuOYU.d.ts} +2 -2
  27. package/dist/narration/index.d.ts +1 -1
  28. package/dist/narration/index.js +6 -6
  29. package/dist/recommend/index.js +2 -2
  30. package/dist/schemas/index.d.ts +32 -5
  31. package/dist/schemas/index.js +9 -3
  32. package/dist/storage/index.d.ts +2 -3
  33. package/dist/{themeLibrary-DJt89gyP.d.ts → themeLibrary-DlJzXsin.d.ts} +1 -1
  34. package/dist/timing/index.d.ts +1 -2
  35. package/dist/transform/index.d.ts +2 -2
  36. package/dist/transform/index.js +2 -2
  37. package/package.json +2 -2
  38. package/dist/chunk-UA5DTYAY.js +0 -400
package/dist/doc/index.js CHANGED
@@ -26,13 +26,12 @@ import {
26
26
  sectionExtractors,
27
27
  validateMarkdownDoc,
28
28
  validateMarkdownSource
29
- } from "../chunk-IZLKI3IL.js";
29
+ } from "../chunk-AQF5ZYDI.js";
30
30
  import {
31
31
  ASCII_CHAR_H,
32
32
  ASCII_CHAR_W,
33
33
  BASE_INPUT_DESCRIPTORS,
34
34
  BLOCK_MEDIA_LAYOUT_POLICIES,
35
- CONTAINER_TEMPLATES,
36
35
  DEFAULT_LAYOUT,
37
36
  DIAGRAM_LABEL_HORIZONTAL_PADDING,
38
37
  DIAGRAM_LABEL_LINE_HEIGHT,
@@ -101,7 +100,6 @@ import {
101
100
  getThemeFont,
102
101
  hasTemplate,
103
102
  imageWithCaption,
104
- isContainerTemplate,
105
103
  isDataFence,
106
104
  isShapeName,
107
105
  layoutBlock,
@@ -122,7 +120,6 @@ import {
122
120
  replaceDataFence,
123
121
  resolveColorScheme,
124
122
  resolvePersistentLayers,
125
- resolveTemplateName,
126
123
  rightFeature,
127
124
  scaleAnimationDuration,
128
125
  sectionHeader,
@@ -147,7 +144,7 @@ import {
147
144
  wrapWithPersistentLayers,
148
145
  writeCustomTemplatesToFrontmatter,
149
146
  writeCustomThemesToFrontmatter
150
- } from "../chunk-GQNH7PLN.js";
147
+ } from "../chunk-2HY2ZA7U.js";
151
148
  import {
152
149
  PATH_SHAPE_KINDS,
153
150
  anchorPoint,
@@ -183,8 +180,8 @@ import {
183
180
  parseAsciiTimelineWithStats,
184
181
  parseTree,
185
182
  parseWrappedFlowTimeline
186
- } from "../chunk-QWCFK5FN.js";
187
- import "../chunk-2ZWIXGAC.js";
183
+ } from "../chunk-CUYHFOFL.js";
184
+ import "../chunk-GAZKTT4R.js";
188
185
  import {
189
186
  DEFAULT_THEME,
190
187
  FRONTMATTER_CUSTOM_TEMPLATES_KEY,
@@ -192,7 +189,7 @@ import {
192
189
  getAvailableThemes,
193
190
  getThemeSummaries,
194
191
  resolveTheme
195
- } from "../chunk-C33GTPUZ.js";
192
+ } from "../chunk-SBAX4ZPO.js";
196
193
  import {
197
194
  VIEWPORT_PRESETS,
198
195
  createTemplateContext,
@@ -203,10 +200,15 @@ import {
203
200
  isTemplateBlock,
204
201
  scaledFontSize2 as scaledFontSize
205
202
  } from "../chunk-BAOV476U.js";
206
- import "../chunk-G3JOS25T.js";
207
- import "../chunk-2VCNTDNZ.js";
203
+ import "../chunk-7TJJA2RI.js";
204
+ import {
205
+ CONTAINER_TEMPLATES,
206
+ TABLE_FED_TEMPLATES,
207
+ isContainerTemplate,
208
+ resolveTemplateName
209
+ } from "../chunk-D6YTLQCL.js";
208
210
  import "../chunk-7N4G32LG.js";
209
- import "../chunk-BCCXTMN5.js";
211
+ import "../chunk-O7JILDEF.js";
210
212
  import "../chunk-4VOD55SX.js";
211
213
  import "../chunk-XOFT65EX.js";
212
214
  import "../chunk-67L6WRJN.js";
@@ -230,6 +232,7 @@ export {
230
232
  PAGE_BASE_CSS,
231
233
  PATH_SHAPE_KINDS,
232
234
  SHAPE_NAMES,
235
+ TABLE_FED_TEMPLATES,
233
236
  TEMPLATE_AUTHORING_METADATA,
234
237
  TEMPLATE_INPUT_DESCRIPTORS,
235
238
  TEMPLATE_METADATA,
@@ -1,6 +1,6 @@
1
1
  import { E as ExtractedElement } from '../contentExtractor-BNfVJV2U.js';
2
2
  export { C as ComparisonData, D as DateData, a as DefinitionData, 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';
3
- import { m as ColorScheme, A as AccentImage, aY as TemplateBlock } from '../Doc-BrgZC7SE.js';
3
+ import { q as ColorScheme, A as AccentImage, ba as TemplateBlock } from '../Doc-CSW6K2UF.js';
4
4
  import '../types-CUNc9biN.js';
5
5
 
6
6
  /**
@@ -1,8 +1,8 @@
1
- import { a as ImageEditDoc, b as ImageEditLayer } from '../ImageEditDoc-rum0Xb9P.js';
2
- export { E as EditorLayerMeta, I as ImageEditCanvas, c as ImageEditLayerKind, d as ImageEditMeta } from '../ImageEditDoc-rum0Xb9P.js';
1
+ import { a as ImageEditDoc, b as ImageEditLayer } from '../ImageEditDoc-x9yoTb4l.js';
2
+ export { E as EditorLayerMeta, I as ImageEditCanvas, c as ImageEditLayerKind, d as ImageEditMeta } from '../ImageEditDoc-x9yoTb4l.js';
3
3
  import { C as ContentContainer } from '../ContentContainer-B2w9sUoL.js';
4
4
  import { V as Version, C as CoalesceOptions, P as PrunePolicy } from '../types-8QjefM9J.js';
5
- import '../Doc-BrgZC7SE.js';
5
+ import '../Doc-CSW6K2UF.js';
6
6
  import '../types-CUNc9biN.js';
7
7
 
8
8
  /**
package/dist/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
1
  export { B as BoundingBox, C as Coordinates } from './Types-sh2VRxfo.js';
2
- export { A as AccentImage, a as AccentPosition, b as AmbientGradientConfig, c as Animation, d as AnimationType, e as AudioBookmark, f as AudioSegment, g as AudioTimingData, h as AudioTrack, B as Block, i as BlockConnection, j as BorderStyle, C as CaptionPhrase, k as CaptionTrack, l as CaptionWord, m as ColorScheme, n as ComparisonBarInput, o as ContentBlockInput, p as CornerBrandingConfig, q as CustomTemplateDefinition, r as CustomTemplateLayer, D as DARK_SURFACE, s as DEFAULT_DOC_FONT, t as DEFAULT_TITLE_FONT, u as DataTableInput, v as DateEventInput, w as DeepPartial, x as DefinitionCardInput, y as DiagramBlockInput, z as DiagramEdgeAnchor, E as DiagramTemplateEdge, F as DiagramTemplateNode, G as Doc, H as DocBlock, I as DocDiagnostic, J as DrawingBlockInput, K as FRONTMATTER_CUSTOM_TEMPLATES_KEY, L as FRONTMATTER_CUSTOM_THEMES_KEY, M as FactCardInput, N as FontFamily, O as FontFamilyKind, P as FullBleedQuoteInput, Q as GradientBackgroundConfig, R as ImageBackgroundConfig, S as ImageLayer, T as ImageTreatment, U as ImageWithCaptionInput, V as LIGHT_SURFACE, W as Layer, X as LayerRepeat, Y as LayoutHints, Z as LeftFeatureInput, _ as LinearGradient, $ as ListBlockInput, a0 as MapBlockInput, a1 as MapLayer, a2 as MapMarker, a3 as MapTileStyle, a4 as MarkerStyle, a5 as MediaClip, a6 as MermaidLayer, a7 as PAGE_ACCENT_STRATEGIES, a8 as PAGE_BACKGROUNDS, a9 as PAGE_BACKGROUND_RHYTHMS, aa as PAGE_DESIGN_FAMILIES, ab as PAGE_DIVIDERS, ac as PAGE_EMPHASES, ad as PAGE_EYEBROWS, ae as PAGE_HEADING_CASES, af as PAGE_HEADING_SCALES, ag as PAGE_HEADING_UNDERLINES, ah as PAGE_HERO_STYLES, ai as PAGE_IMAGE_FRAMINGS, aj as PAGE_NUMERAL_STYLES, ak as PAGE_PATTERNS, al as PAGE_QUOTE_MARKS, am as PAGE_SECTION_KINDS, an as PAGE_SECTION_SPACINGS, ao as PAGE_SHADOWS, ap as PageAccentRotation, aq as PageBackground, ar as PageDesignFamily, as as PageEmphasis, at as PageHeadingTreatment, au as PageSectionKind, av as PageSectionOverride, aw as PageTokens, ax as PathLayer, ay as PatternBackgroundConfig, az as PersistentLayer, aA as PersistentLayerConfig, aB as PersistentLayerTemplate, aC as PersistentLayerTemplateConfig, aD as PersistentLayerTemplateType, aE as PhotoGridInput, aF as Position, aG as ProgressIndicatorConfig, aH as PullQuoteInput, aI as QuoteBlockInput, aJ as RawLayersInput, aK as RenderStyle, aL as RightFeatureInput, aM as ScheduledClip, aN as SectionHeaderInput, aO as ShapeFilter, aP as ShapeLayer, aQ as ShapePattern, aR as SolidBackgroundConfig, aS as StartBlockConfig, aT as StatHighlightInput, aU as SurfaceScheme, aV as THEME_SCHEMA_VERSION, aW as TableLayer, aX as TableLayerStyle, aY as TemplateBlock, aZ as TemplateContext, a_ as TemplateFunction, a$ as TemplateRegistry, b0 as TextLayer, b1 as TextStyle, b2 as Theme, b3 as ThemeColorPalette, b4 as ThemeColorScheme, b5 as ThemePageStyle, b6 as ThemeRegistry, b7 as ThemeSchemaVersion, b8 as ThemeSeedColors, b9 as ThemeStyle, ba as ThemeTypography, bb as TimelineBlockInput, bc as TimelineTemplateEvent, bd as TimelineTemplateLink, be as TimelineTemplateTrack, bf as TitleBlockInput, bg as TitleCaptionConfig, bh as TreeBlockInput, bi as TreeLayer, bj as TreeLayerItem, bk as TreeLayerStyle, bl as TreeTemplateItem, bm as TwoColumnInput, bn as VIEWPORT_PRESETS, bo as VideoLayer, bp as VideoPullQuoteInput, bq as VideoWithCaptionInput, br as ViewportConfig, bs as ViewportOrientation, bt as ViewportPreset, bu as VignetteConfig, bv as applySurface, bw as calculateDuration, bx as calculateFontScale, by as createTemplateContext, bz as createTheme, bA as createThemeRegistry, bB as getAspectRatioString, bC as getBlockAtTime, bD as getCaptionAtTime, bE as getDocPlaybackDuration, bF as getLayoutHints, bG as getSafeTextBounds, bH as getSegmentAtTime, bI as getTwoColumnPositions, bJ as getViewport, bK as getViewportOrientation, bL as isPersistentLayerTemplate, bM as isTemplateBlock, bN as layoutScaledFontSize, bO as resolveMediaSchedule, bP as scaledFontSize } from './Doc-BrgZC7SE.js';
2
+ 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 Block, k as BlockConnection, l as BorderStyle, C as CaptionPhrase, m as CaptionTrack, n as CaptionWord, o as ChartBaseFields, p as ChartTemplateInput, q as ColorScheme, r as ColumnChartInput, s as ComparisonBarInput, t as ContentBlockInput, u as CornerBrandingConfig, v as CustomTemplateDefinition, w as CustomTemplateLayer, x as CustomTemplateValidationError, y as CustomTemplateValidationResult, D as DARK_SURFACE, z as DEFAULT_DOC_FONT, E as DEFAULT_TITLE_FONT, F as DataTableInput, G as DateEventInput, H as DeepPartial, I as DefinitionCardInput, J as DiagramBlockInput, K as DiagramEdgeAnchor, L as DiagramTemplateEdge, M as DiagramTemplateNode, N as Doc, O as DocBlock, P as DocDiagnostic, Q as DonutChartInput, R as DrawingBlockInput, S as FRONTMATTER_CUSTOM_TEMPLATES_KEY, T as FRONTMATTER_CUSTOM_THEMES_KEY, U as FactCardInput, V as FontFamily, W as FontFamilyKind, X as FullBleedQuoteInput, Y as GradientBackgroundConfig, Z as ImageBackgroundConfig, _ as ImageLayer, $ as ImageTreatment, a0 as ImageWithCaptionInput, a1 as LIGHT_SURFACE, a2 as Layer, a3 as LayerRepeat, a4 as LayoutHints, a5 as LeftFeatureInput, a6 as LineChartInput, a7 as LinearGradient, a8 as ListBlockInput, a9 as MapBlockInput, aa as MapLayer, ab as MapMarker, ac as MapTileStyle, ad as MarkerStyle, ae as MediaClip, af as MediaScheduleOptions, ag as MermaidLayer, ah as PAGE_ACCENT_STRATEGIES, ai as PAGE_BACKGROUNDS, aj as PAGE_BACKGROUND_RHYTHMS, ak as PAGE_DESIGN_FAMILIES, al as PAGE_DIVIDERS, am as PAGE_EMPHASES, an as PAGE_EYEBROWS, ao as PAGE_HEADING_CASES, ap as PAGE_HEADING_SCALES, aq as PAGE_HEADING_UNDERLINES, ar as PAGE_HERO_STYLES, as as PAGE_IMAGE_FRAMINGS, at as PAGE_NUMERAL_STYLES, au as PAGE_PATTERNS, av as PAGE_QUOTE_MARKS, aw as PAGE_SECTION_KINDS, ax as PAGE_SECTION_SPACINGS, ay as PAGE_SHADOWS, az as PageAccentRotation, aA as PageBackground, aB as PageDesignFamily, aC as PageEmphasis, aD as PageHeadingTreatment, aE as PageSectionKind, aF as PageSectionOverride, aG as PageTokens, aH as PathLayer, aI as PatternBackgroundConfig, aJ as PersistentLayer, aK as PersistentLayerConfig, aL as PersistentLayerTemplate, aM as PersistentLayerTemplateConfig, aN as PersistentLayerTemplateType, aO as PhotoGridInput, aP as PieChartInput, aQ as PipStyle, aR as Position, aS as ProgressIndicatorConfig, aT as PromotedBodyAnnotation, aU as PullQuoteInput, aV as QuoteBlockInput, aW as RawLayersInput, aX as RenderStyle, aY as RightFeatureInput, aZ as ScatterChartInput, a_ as ScheduledClip, a$ as SectionHeaderInput, b0 as ShapeFilter, b1 as ShapeLayer, b2 as ShapePattern, b3 as SolidBackgroundConfig, b4 as StartBlockConfig, b5 as StatHighlightInput, b6 as SurfaceScheme, b7 as THEME_SCHEMA_VERSION, b8 as TableLayer, b9 as TableLayerStyle, ba as TemplateBlock, bb as TemplateContext, bc as TemplateFunction, bd as TemplateRegistry, be as TextLayer, bf as TextStyle, bg as Theme, bh as ThemeColorPalette, bi as ThemeColorScheme, bj as ThemePageStyle, bk as ThemeRegistry, bl as ThemeSchemaVersion, bm as ThemeSeedColors, bn as ThemeStyle, bo as ThemeTypography, bp as TimelineBlockInput, bq as TimelineTemplateEvent, br as TimelineTemplateLink, bs as TimelineTemplateTrack, bt as TitleBlockInput, bu as TitleCaptionConfig, bv as TreeBlockInput, bw as TreeLayer, bx as TreeLayerItem, by as TreeLayerStyle, bz as TreeTemplateItem, bA as TwoColumnInput, bB as VIEWPORT_PRESETS, bC as VideoLayer, bD as VideoPipPosition, bE as VideoPipShape, bF as VideoPipSize, bG as VideoPlacement, bH as VideoPresentation, bI as VideoPullQuoteInput, bJ as VideoWithCaptionInput, bK as ViewportConfig, bL as ViewportOrientation, bM as ViewportPreset, bN as VignetteConfig, bO as applySurface, bP as calculateDuration, bQ as calculateFontScale, bR as createTemplateContext, bS as createTheme, bT as createThemeRegistry, bU as getAspectRatioString, bV as getBlockAtTime, bW as getCaptionAtTime, bX as getDocPlaybackDuration, bY as getLayoutHints, bZ as getSafeTextBounds, b_ as getSegmentAtTime, b$ as getTwoColumnPositions, c0 as getViewport, c1 as getViewportOrientation, c2 as isCustomTemplateDefinition, c3 as isPersistentLayerTemplate, c4 as isTemplateBlock, c5 as layoutScaledFontSize, c6 as resolveMediaSchedule, c7 as scaledFontSize, c8 as validateCustomTemplateDefinition } from './Doc-CSW6K2UF.js';
3
3
  export { D as DEFAULT_MARKDOWN_SAFETY_LIMITS, a as DEFAULT_TRANSITION_DURATION_SECONDS, H as HeadingAttributes, b as HeadingTemplateAnnotation, c as HtmlComment, d as HtmlElement, e as HtmlNode, f as HtmlText, M as MarkdownBlockNode, g as MarkdownBlockquote, h as MarkdownBreak, i as MarkdownCodeBlock, j as MarkdownContainerDirective, k as MarkdownDefinitionDescription, l as MarkdownDefinitionList, m as MarkdownDefinitionTerm, n as MarkdownDocument, o as MarkdownEmphasis, p as MarkdownFootnoteDefinition, q as MarkdownFootnoteReference, r as MarkdownHeading, s as MarkdownHtmlBlock, t as MarkdownImage, u as MarkdownImageReference, v as MarkdownInlineCode, w as MarkdownInlineHtml, x as MarkdownInlineMath, y as MarkdownInlineNode, z as MarkdownLeafDirective, A as MarkdownLimitError, B as MarkdownLink, C as MarkdownLinkDefinition, E as MarkdownLinkReference, F as MarkdownList, G as MarkdownListItem, I as MarkdownMathBlock, J as MarkdownMention, K as MarkdownNode, L as MarkdownParagraph, N as MarkdownPoint, O as MarkdownSafetyLimits, P as MarkdownSourcePosition, Q as MarkdownStrikethrough, R as MarkdownStrong, S as MarkdownTable, T as MarkdownTableCell, U as MarkdownTableRow, V as MarkdownText, W as MarkdownTextDirective, X as MarkdownThematicBreak, Y as ParseOptions, Z as StringifyOptions, _ as TRANSITION_DIRECTIONS, $ as TRANSITION_TYPES, a0 as Transition, a1 as TransitionDirection, a2 as TransitionType, a3 as assertMarkdownDocumentWithinLimits, a4 as assertMarkdownSourceWithinLimits, a5 as isTransitionType, a6 as normalizeTransitionDirection, a7 as normalizeTransitionType, a8 as resolveBlockTransition, a9 as resolveMarkdownSafetyLimits, aa as resolveTransitionDuration } from './types-CUNc9biN.js';
4
- export { AVAILABLE_FONT_STACKS, CompileOptions, ContrastPreset, FONT_FALLBACKS, FontStack, MermaidThemeVariables, STARTER_THEME, ValidationError, ValidationResult, accentToColorScheme, assertTheme, buildGoogleFontsUrl, buildMermaidThemeVariables, compileTheme, contrastRatio, defaultPageStyle, deriveColorPalette, deriveScale, fontStack, getFontStack, guessFontFallback, hexHueDegrees, isHex, matchFontFamily, oklchDarken, oklchLighten, oklchSetChroma, parseTheme, pickContrastingText, relativeLuminance, resolveFontFamily, serializeTheme, validateTheme, withAlpha } from './schemas/index.js';
5
- export { D as DEFAULT_THEME, a as DEFAULT_THEME_ID, T as THEMES, g as getAvailableThemes, b as getThemeSummaries, r as resolveTheme } from './themeLibrary-DJt89gyP.js';
4
+ export { AVAILABLE_FONT_STACKS, CompileOptions, ContrastPreset, FONT_FALLBACKS, FontStack, MermaidThemeVariables, PipStyleVars, STARTER_THEME, ValidationError, ValidationResult, accentToColorScheme, assertTheme, buildGoogleFontsUrl, buildMermaidThemeVariables, compileTheme, contrastRatio, defaultPageStyle, deriveColorPalette, deriveScale, fontStack, getFontStack, guessFontFallback, hexHueDegrees, isHex, matchFontFamily, oklchDarken, oklchLighten, oklchSetChroma, parseTheme, pickContrastingText, pipStyleVars, relativeLuminance, resolveFontFamily, serializeTheme, validateTheme, withAlpha } from './schemas/index.js';
5
+ export { D as DEFAULT_THEME, a as DEFAULT_THEME_ID, T as THEMES, g as getAvailableThemes, b as getThemeSummaries, r as resolveTheme } from './themeLibrary-DlJzXsin.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-rum0Xb9P.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, BlockLayerMaterialization, BlockMediaLayoutPolicy, BuiltInTemplateName, CONTAINER_TEMPLATES, ClipBox, ConnectorAnchor, ConnectorPort, ConnectorRouting, ConnectorSnapPoint, CoverBlockInput, DEFAULT_LAYOUT, DIAGRAM_LABEL_HORIZONTAL_PADDING, DIAGRAM_LABEL_LINE_HEIGHT, DIAGRAM_LABEL_MIN_FONT_SIZE, DIAGRAM_LABEL_VERTICAL_PADDING, DataFenceParseResult, DeriveTemplateInputsOptions, DetectAsciiTimelineOptions, DiagramEdge, DiagramLabelFit, DiagramLayout, DiagramLayoutOptions, DiagramNodePosition, DrawingConnector, DrawingLayout, DrawingLayoutOptions, DrawingShape, DrawingShapeKind, EmbeddedVideo, ExpandDocBlocksOptions, ExtractedTableData, FirstImage, InputCoercion, LayerMaterializationDiagnostic, LayerMaterializationFailureMode, LayerMaterializationSource, LayoutLayerDefaults, LayoutLayersResult, MarkdownToDocOptions, MarkdownValidationResult, MaterializeBlockLayersOptions, NarrationResolution, NativeMediaLayout, NoMediaLayout, PAGE_BASE_CSS, PATH_SHAPE_KINDS, PageSectionContext, PageSectionDraft, RenderAsciiDiagramOptions, RenderAsciiTimelineOptions, RenderTreeOptions, RepairResult, ResolvedPageBlock, RichListItem, RuntimeTemplateRegistry, SHAPE_NAMES, SectionExtractor, SupplementalMediaLayoutVariant, SupplementalMediaShape, SupplementalMediaVariantMatrix, TEMPLATE_AUTHORING_METADATA, TEMPLATE_INPUT_DESCRIPTORS, TEMPLATE_METADATA, TREE_FENCE_LANGS, TemplateAuthoringMetadata, TemplateAuthoringRole, TemplateBodyPolicy, TemplateInputDescriptor, TemplateMediaOwnership, TemplateMetadata, TemplateParamFinding, Tree, TreeDetection, TreeItem, TreeNode, UnconsumedMediaBehavior, ValidateOptions, adjustY, anchorPoint, applyNarrationTiming, applyRenderStyleToLayers, asciiCellToCanvas, asciiDiagramFromBlocks, asciiDiagramFromTemplateData, asciiDiagramToTemplateData, asciiTimelineToTemplateData, autoTemplatePreservesContent, buildPageCss, buildPageCssVars, buildRegistry, canvasToAsciiCell, clipEndpoints, clipPoint, coerceTemplateParams, comparisonBar, computeDiagramLayout, computeDrawingLayout, computeLayoutLayers, connectorPath, contentBlock, countBlocks, coverBlock, createAccentLayers, cssFilterForTreatment, dataTable, dateEvent, definitionCard, deriveTemplateInputs, detectAsciiDiagram, detectAsciiTimeline, detectTree, diagramBlock, docToMarkdown, drawingBlock, expandCoverBlock, expandDocBlocks, expandPersistentLayers, extractBlockquoteText, extractBodyPlainText, extractEmbeddedVideos, extractFirstEmbeddedVideo, extractFirstImage, extractImages, extractListItems, extractRichListItems, extractTableData, extractTableFromContents, factCard, fallbackBlockLayers, findFirstList, findFirstTable, fitDiagramLabel, flattenBlocks, flattenRenderableBlocks, fullBleedQuote, getAccentLayout, getAnimationProgress, getAnimationStyle, getAvailableTemplates, getBlockBodyText, getBlockDepth, getBlockMediaLayoutPolicy, getDefaultAnimation, getDefaultAnimationDuration, getOverlayOpacity, getPersistentLayersFromTheme, getPinnedBlockMeta, getTemplateHint, getThemeFont, getTransitionClass, hasTemplate, imageWithCaption, isAsciiDiagramFence, isAsciiTimelineFence, isContainerTemplate, isDataFence, isEligibleAsciiFenceLang, isEligibleAsciiTimelineFenceLang, isEligibleTreeFenceLang, isExplicitDiagramLang, isExplicitTimelineLang, isExplicitTreeLang, isRepairableDiagram, isShapeName, isTemplatedPageBlock, isTreeFence, isWrappedFlowTimelineSource, layoutBlock, leftFeature, lineStyleDasharray, lintTemplateParams, listBlock, mapBlock, markdownToDoc, markerPath, materializeBlockLayers, nearestSnapPoint, normalizeShapeKind, pageStyleDataAttributes, parseAsciiDiagram, parseAsciiTimeline, parseAsciiTimelineWithStats, parseDataFence, parseTree, parseWrappedFlowTimeline, parseYamlSubset, photoGrid, pullQuote, quoteBlock, readCustomTemplatesFromFrontmatter, readCustomThemesFromFrontmatter, renderAsciiDiagram, renderAsciiTimeline, renderTree, repairAsciiDiagram, replaceDataFence, resolveAudioMapping, resolveColorScheme, resolvePageBlock, resolvePersistentLayers, resolveTemplateName, resolveThemeForDoc, rightFeature, scaleAnimationDuration, scoreTextSimilarity, sectionExtractors, sectionHeader, shapePath, shouldUseShadow, snapEndpoints, snapPoints, statHighlight, templateRegistry, themeWantsAmbientMotion, themedEntrance, themedFontSize, themedImageTreatment, themedScrim, themedSurfaceGradient, timelineBlock, titleBlock, treeBlock, treeFromMarkdownList, treeFromTemplateData, treeToTemplateData, twoColumn, validateMarkdownDoc, validateMarkdownSource, videoPullQuote, videoWithCaption, wrapWithPersistentLayers, writeCustomTemplatesToFrontmatter, writeCustomThemesToFrontmatter } from './doc/index.js';
9
- export { M as MaterializePageSectionOptions, a as MaterializePageSectionsOptions, P as PageMedia, b as PageRichText, c as PageSection, d as PageSectionDiagnostic, e as PageSectionItem, f as PageSectionMaterialization, g as PageSectionSource, h as PageSpatialKind, i as PageTransformHints, m as materializePageSection, j as materializePageSections, r as resolvePageStyle } from './materializePageSection-CrZWYnXM.js';
7
+ export { E as EditorLayerMeta, I as ImageEditCanvas, a as ImageEditDoc, b as ImageEditLayer, c as ImageEditLayerKind, d as ImageEditMeta } from './ImageEditDoc-x9yoTb4l.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, BlockLayerMaterialization, BlockMediaLayoutPolicy, BuiltInTemplateName, CONTAINER_TEMPLATES, ClipBox, ConnectorAnchor, ConnectorPort, ConnectorRouting, ConnectorSnapPoint, CoverBlockInput, DEFAULT_LAYOUT, DIAGRAM_LABEL_HORIZONTAL_PADDING, DIAGRAM_LABEL_LINE_HEIGHT, DIAGRAM_LABEL_MIN_FONT_SIZE, DIAGRAM_LABEL_VERTICAL_PADDING, DataFenceParseResult, DeriveTemplateInputsOptions, DetectAsciiTimelineOptions, DiagramEdge, DiagramLabelFit, DiagramLayout, DiagramLayoutOptions, DiagramNodePosition, DrawingConnector, DrawingLayout, DrawingLayoutOptions, DrawingShape, DrawingShapeKind, EmbeddedVideo, ExpandDocBlocksOptions, ExtractedTableData, FirstImage, InputCoercion, LayerMaterializationDiagnostic, LayerMaterializationFailureMode, LayerMaterializationSource, LayoutLayerDefaults, LayoutLayersResult, MarkdownToDocOptions, MarkdownValidationResult, MaterializeBlockLayersOptions, NarrationResolution, NativeMediaLayout, NoMediaLayout, PAGE_BASE_CSS, PATH_SHAPE_KINDS, PageSectionContext, PageSectionDraft, RenderAsciiDiagramOptions, RenderAsciiTimelineOptions, RenderTreeOptions, RepairResult, 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, adjustY, anchorPoint, applyNarrationTiming, applyRenderStyleToLayers, asciiCellToCanvas, asciiDiagramFromBlocks, asciiDiagramFromTemplateData, asciiDiagramToTemplateData, asciiTimelineToTemplateData, autoTemplatePreservesContent, buildPageCss, buildPageCssVars, buildRegistry, canvasToAsciiCell, clipEndpoints, clipPoint, coerceTemplateParams, comparisonBar, computeDiagramLayout, computeDrawingLayout, computeLayoutLayers, connectorPath, contentBlock, countBlocks, coverBlock, createAccentLayers, cssFilterForTreatment, dataTable, dateEvent, definitionCard, deriveTemplateInputs, detectAsciiDiagram, detectAsciiTimeline, detectTree, diagramBlock, docToMarkdown, drawingBlock, expandCoverBlock, expandDocBlocks, expandPersistentLayers, extractBlockquoteText, extractBodyPlainText, extractEmbeddedVideos, extractFirstEmbeddedVideo, extractFirstImage, extractImages, extractListItems, extractRichListItems, extractTableData, extractTableFromContents, factCard, fallbackBlockLayers, findFirstList, findFirstTable, fitDiagramLabel, flattenBlocks, flattenRenderableBlocks, fullBleedQuote, getAccentLayout, getAnimationProgress, getAnimationStyle, getAvailableTemplates, getBlockBodyText, getBlockDepth, getBlockMediaLayoutPolicy, getDefaultAnimation, getDefaultAnimationDuration, getOverlayOpacity, getPersistentLayersFromTheme, getPinnedBlockMeta, getTemplateHint, getThemeFont, getTransitionClass, hasTemplate, imageWithCaption, isAsciiDiagramFence, isAsciiTimelineFence, isContainerTemplate, isDataFence, isEligibleAsciiFenceLang, isEligibleAsciiTimelineFenceLang, isEligibleTreeFenceLang, isExplicitDiagramLang, isExplicitTimelineLang, isExplicitTreeLang, isRepairableDiagram, isShapeName, isTemplatedPageBlock, isTreeFence, isWrappedFlowTimelineSource, layoutBlock, leftFeature, lineStyleDasharray, lintTemplateParams, listBlock, mapBlock, markdownToDoc, markerPath, materializeBlockLayers, nearestSnapPoint, normalizeShapeKind, pageStyleDataAttributes, parseAsciiDiagram, parseAsciiTimeline, parseAsciiTimelineWithStats, parseDataFence, parseTree, parseWrappedFlowTimeline, parseYamlSubset, photoGrid, pullQuote, quoteBlock, readCustomTemplatesFromFrontmatter, readCustomThemesFromFrontmatter, renderAsciiDiagram, renderAsciiTimeline, renderTree, repairAsciiDiagram, replaceDataFence, resolveAudioMapping, resolveColorScheme, resolvePageBlock, resolvePersistentLayers, resolveTemplateName, resolveThemeForDoc, rightFeature, scaleAnimationDuration, scoreTextSimilarity, sectionExtractors, sectionHeader, shapePath, shouldUseShadow, snapEndpoints, snapPoints, statHighlight, templateRegistry, themeWantsAmbientMotion, themedEntrance, themedFontSize, themedImageTreatment, themedScrim, themedSurfaceGradient, timelineBlock, titleBlock, treeBlock, treeFromMarkdownList, treeFromTemplateData, treeToTemplateData, twoColumn, validateMarkdownDoc, validateMarkdownSource, videoPullQuote, videoWithCaption, wrapWithPersistentLayers, writeCustomTemplatesToFrontmatter, writeCustomThemesToFrontmatter } from './doc/index.js';
9
+ export { M as MaterializePageSectionOptions, a as MaterializePageSectionsOptions, P as PageMedia, b as PageRichText, c as PageSection, d as PageSectionDiagnostic, e as PageSectionItem, f as PageSectionMaterialization, g as PageSectionSource, h as PageSpatialKind, i as PageTransformHints, m as materializePageSection, j as materializePageSections, r as resolvePageStyle } from './materializePageSection-_rrDuOYU.js';
10
10
  export { calculateBearing, decodeGeohash, encodeGeohash, geohashOverlapsBounds, geohashToHierarchicalPath, getGeohash4Neighbors, getGeohashPath, getGeohashPrefix, getNeighbors, haversineDistance } 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 { DEFAULT_INTERACTIVE_RESOURCE_POLICY, DEFAULT_RESOURCE_MAX_BYTES, DEFAULT_RESOURCE_TIMEOUT_MS, FetchResourceBytesOptions, FetchedResource, HtmlPolicy, LOCAL_ONLY_RESOURCE_POLICY, ResourcePolicy, ResourcePolicyError, SanitizeUrlOptions, TrailingAnnotationMatch, UrlKind, countNodes, createDocument, extractPlainText, fetchResourceBytes, findNodesByType, formatBlockScalar, formatFrontmatterValue, formatFrontmatterYaml, fromMdast, getChildren, inferDocumentTitle, isResourceUrlAllowed, matchTrailingPandocAttr, matchTrailingTemplateAnnotation, needsQuoting, parseFrontmatter, parseHtmlToNodes, parseMarkdown, parsePandocAttrTokens, plainTextFromInlineHtml, quoteAttrValue, readFrontmatterThemeId, sanitizeHtmlNodes, sanitizeUrl, serializePandocAttributes, setFrontmatterValues, splitKeyValueToken, stringifyHtmlNodes, stringifyMarkdown, toMdast, tokenizeAttrTokens, unquoteAttrValue, walkMarkdownTree } from './markdown/index.js';
13
+ export { DEFAULT_INTERACTIVE_RESOURCE_POLICY, DEFAULT_RESOURCE_MAX_BYTES, DEFAULT_RESOURCE_TIMEOUT_MS, DEFAULT_WRAP_WIDTH, FetchResourceBytesOptions, FetchedResource, HtmlPolicy, LOCAL_ONLY_RESOURCE_POLICY, MARKDOWN_SOURCE_TRANSFORMS, MarkdownSourceEdit, MarkdownSourceTransform, MarkdownSourceTransformId, MarkdownSourceTransformOptions, MarkdownSourceTransformResult, MarkdownWrapState, ResourcePolicy, ResourcePolicyError, SanitizeUrlOptions, TrailingAnnotationMatch, UrlKind, applyMarkdownSourceTransform, cleanupMarkdownSource, countNodes, createDocument, detectMarkdownWrapState, extractPlainText, fetchResourceBytes, findNodesByType, formatBlockScalar, formatFrontmatterValue, formatFrontmatterYaml, fromMdast, getChildren, inferDocumentTitle, isResourceUrlAllowed, matchTrailingPandocAttr, matchTrailingTemplateAnnotation, needsQuoting, parseFrontmatter, parseHtmlToNodes, parseMarkdown, parsePandocAttrTokens, plainTextFromInlineHtml, quoteAttrValue, readFrontmatterThemeId, sanitizeHtmlNodes, sanitizeUrl, serializePandocAttributes, setFrontmatterValues, splitFrontmatterBlock, splitKeyValueToken, stringifyHtmlNodes, stringifyMarkdown, toMdast, tokenizeAttrTokens, unquoteAttrValue, unwrapMarkdownSource, 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-PtRQhk5V.js';
15
15
  export { DEFAULT_WORDS_PER_SECOND, NarrationTimeEstimate, NarrationTimeOptions, ReadingTimeEstimate, ReadingTimeOptions, 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
@@ -23,7 +23,7 @@ import {
23
23
  reanchorSession,
24
24
  traceWordPosAt,
25
25
  vadStep
26
- } from "./chunk-ABP4LAJS.js";
26
+ } from "./chunk-EMXYZLRH.js";
27
27
  import {
28
28
  DEFAULT_TRANSFORM_STYLE_ID,
29
29
  analyzeBlocks,
@@ -33,7 +33,7 @@ import {
33
33
  getTransformStyleIds,
34
34
  getTransformStyleSummaries,
35
35
  resolveTransformStyle
36
- } from "./chunk-RS5AP3J4.js";
36
+ } from "./chunk-AE3IUKMM.js";
37
37
  import {
38
38
  extractContent,
39
39
  mapElementToBlock,
@@ -69,7 +69,7 @@ import {
69
69
  resolveRef,
70
70
  setByPointer,
71
71
  toPointer
72
- } from "./chunk-32R2RZAO.js";
72
+ } from "./chunk-DAMIRKTO.js";
73
73
  import {
74
74
  IMAGE_EDIT_ASSETS_PREFIX,
75
75
  IMAGE_EDIT_DEFAULT_BASENAME,
@@ -120,8 +120,9 @@ import {
120
120
  getCaptionAtTime,
121
121
  getSegmentAtTime,
122
122
  parseTheme,
123
+ pipStyleVars,
123
124
  serializeTheme
124
- } from "./chunk-SPTY4C6F.js";
125
+ } from "./chunk-GODLNXO4.js";
125
126
  import {
126
127
  calculateBearing,
127
128
  decodeGeohash,
@@ -162,13 +163,12 @@ import {
162
163
  sectionExtractors,
163
164
  validateMarkdownDoc,
164
165
  validateMarkdownSource
165
- } from "./chunk-IZLKI3IL.js";
166
+ } from "./chunk-AQF5ZYDI.js";
166
167
  import {
167
168
  ASCII_CHAR_H,
168
169
  ASCII_CHAR_W,
169
170
  BASE_INPUT_DESCRIPTORS,
170
171
  BLOCK_MEDIA_LAYOUT_POLICIES,
171
- CONTAINER_TEMPLATES,
172
172
  DEFAULT_LAYOUT,
173
173
  DIAGRAM_LABEL_HORIZONTAL_PADDING,
174
174
  DIAGRAM_LABEL_LINE_HEIGHT,
@@ -241,7 +241,6 @@ import {
241
241
  getThemeFont,
242
242
  hasTemplate,
243
243
  imageWithCaption,
244
- isContainerTemplate,
245
244
  isDataFence,
246
245
  isShapeName,
247
246
  layoutBlock,
@@ -263,7 +262,6 @@ import {
263
262
  replaceDataFence,
264
263
  resolveColorScheme,
265
264
  resolvePersistentLayers,
266
- resolveTemplateName,
267
265
  rightFeature,
268
266
  scaleAnimationDuration,
269
267
  sectionHeader,
@@ -291,7 +289,7 @@ import {
291
289
  wrapWithPersistentLayers,
292
290
  writeCustomTemplatesToFrontmatter,
293
291
  writeCustomThemesToFrontmatter
294
- } from "./chunk-GQNH7PLN.js";
292
+ } from "./chunk-2HY2ZA7U.js";
295
293
  import {
296
294
  PATH_SHAPE_KINDS,
297
295
  anchorPoint,
@@ -329,12 +327,12 @@ import {
329
327
  parseWrappedFlowTimeline,
330
328
  profileBlockContents,
331
329
  recommendTemplatesForBlock
332
- } from "./chunk-QWCFK5FN.js";
330
+ } from "./chunk-CUYHFOFL.js";
333
331
  import {
334
332
  defaultPageStyle,
335
333
  getDocPlaybackDuration,
336
334
  resolveMediaSchedule
337
- } from "./chunk-2ZWIXGAC.js";
335
+ } from "./chunk-GAZKTT4R.js";
338
336
  import {
339
337
  AVAILABLE_FONT_STACKS,
340
338
  DARK_SURFACE,
@@ -377,6 +375,7 @@ import {
377
375
  getThemeSummaries,
378
376
  guessFontFallback,
379
377
  hexHueDegrees,
378
+ isCustomTemplateDefinition,
380
379
  isHex,
381
380
  matchFontFamily,
382
381
  oklchDarken,
@@ -386,9 +385,10 @@ import {
386
385
  relativeLuminance,
387
386
  resolveFontFamily,
388
387
  resolveTheme,
388
+ validateCustomTemplateDefinition,
389
389
  validateTheme,
390
390
  withAlpha
391
- } from "./chunk-C33GTPUZ.js";
391
+ } from "./chunk-SBAX4ZPO.js";
392
392
  import {
393
393
  DEFAULT_DOC_FONT,
394
394
  DEFAULT_TITLE_FONT,
@@ -420,12 +420,19 @@ import {
420
420
  DEFAULT_INTERACTIVE_RESOURCE_POLICY,
421
421
  DEFAULT_RESOURCE_MAX_BYTES,
422
422
  DEFAULT_RESOURCE_TIMEOUT_MS,
423
+ DEFAULT_WRAP_WIDTH,
423
424
  LOCAL_ONLY_RESOURCE_POLICY,
425
+ MARKDOWN_SOURCE_TRANSFORMS,
424
426
  ResourcePolicyError,
427
+ applyMarkdownSourceTransform,
428
+ cleanupMarkdownSource,
429
+ detectMarkdownWrapState,
425
430
  fetchResourceBytes,
426
431
  isResourceUrlAllowed,
427
- stringifyMarkdown
428
- } from "./chunk-UA5DTYAY.js";
432
+ stringifyMarkdown,
433
+ unwrapMarkdownSource,
434
+ wrapMarkdownSource
435
+ } from "./chunk-JUAC2QWP.js";
429
436
  import {
430
437
  DEFAULT_MARKDOWN_SAFETY_LIMITS,
431
438
  MarkdownLimitError,
@@ -437,21 +444,25 @@ import {
437
444
  resolveMarkdownSafetyLimits,
438
445
  serializePandocAttributes,
439
446
  toMdast
440
- } from "./chunk-G3JOS25T.js";
447
+ } from "./chunk-7TJJA2RI.js";
441
448
  import {
442
449
  BLOCK_META_KEY_DESCRIPTORS,
450
+ CONTAINER_TEMPLATES,
443
451
  KNOWN_BLOCK_META_KEYS,
452
+ TABLE_FED_TEMPLATES,
453
+ isContainerTemplate,
444
454
  matchTrailingPandocAttr,
445
455
  matchTrailingTemplateAnnotation,
446
456
  needsQuoting,
447
457
  parseTimeSeconds,
448
458
  quoteAttrValue,
459
+ resolveTemplateName,
449
460
  sanitizeHtmlNodes,
450
461
  sanitizeUrl,
451
462
  splitKeyValueToken,
452
463
  tokenizeAttrTokens,
453
464
  unquoteAttrValue
454
- } from "./chunk-2VCNTDNZ.js";
465
+ } from "./chunk-D6YTLQCL.js";
455
466
  import {
456
467
  ICONS,
457
468
  canonicalIconToken,
@@ -475,9 +486,10 @@ import {
475
486
  plainTextFromInlineHtml,
476
487
  readFrontmatterThemeId,
477
488
  setFrontmatterValues,
489
+ splitFrontmatterBlock,
478
490
  stringifyHtmlNodes,
479
491
  walkMarkdownTree
480
- } from "./chunk-BCCXTMN5.js";
492
+ } from "./chunk-O7JILDEF.js";
481
493
  import {
482
494
  DEFAULT_TRANSITION_DURATION_SECONDS,
483
495
  TRANSITION_DIRECTIONS,
@@ -532,6 +544,7 @@ export {
532
544
  DEFAULT_TRANSITION_DURATION_SECONDS,
533
545
  DEFAULT_VAD_CONFIG,
534
546
  DEFAULT_WORDS_PER_SECOND,
547
+ DEFAULT_WRAP_WIDTH,
535
548
  DIAGRAM_LABEL_HORIZONTAL_PADDING,
536
549
  DIAGRAM_LABEL_LINE_HEIGHT,
537
550
  DIAGRAM_LABEL_MIN_FONT_SIZE,
@@ -551,6 +564,7 @@ export {
551
564
  LOCAL_ONLY_RESOURCE_POLICY,
552
565
  LocalForageAdapter,
553
566
  LocalStorageAdapter,
567
+ MARKDOWN_SOURCE_TRANSFORMS,
554
568
  MarkdownLimitError,
555
569
  MemoryContentContainer,
556
570
  MemoryStorageAdapter,
@@ -579,6 +593,7 @@ export {
579
593
  STARTER_THEME,
580
594
  ScopedContentContainer,
581
595
  SeededRandom,
596
+ TABLE_FED_TEMPLATES,
582
597
  TEMPLATE_AUTHORING_METADATA,
583
598
  TEMPLATE_INPUT_DESCRIPTORS,
584
599
  TEMPLATE_METADATA,
@@ -597,6 +612,7 @@ export {
597
612
  analyzeBlocks,
598
613
  anchorPoint,
599
614
  appendPointer,
615
+ applyMarkdownSourceTransform,
600
616
  applyNarrationTiming,
601
617
  applyRenderStyleToLayers,
602
618
  applySurface,
@@ -630,6 +646,7 @@ export {
630
646
  canonicalIconToken,
631
647
  canvasToAsciiCell,
632
648
  chooseControl,
649
+ cleanupMarkdownSource,
633
650
  clipEndpoints,
634
651
  clipPoint,
635
652
  coalesceImageEditVersions,
@@ -672,6 +689,7 @@ export {
672
689
  deriveTemplateInputs,
673
690
  detectAsciiDiagram,
674
691
  detectAsciiTimeline,
692
+ detectMarkdownWrapState,
675
693
  detectSyllableOnsets,
676
694
  detectTree,
677
695
  diagramBlock,
@@ -778,6 +796,7 @@ export {
778
796
  isAsciiDiagramFence,
779
797
  isAsciiTimelineFence,
780
798
  isContainerTemplate,
799
+ isCustomTemplateDefinition,
781
800
  isDataFence,
782
801
  isEligibleAsciiFenceLang,
783
802
  isEligibleAsciiTimelineFenceLang,
@@ -846,6 +865,7 @@ export {
846
865
  parseYamlSubset,
847
866
  photoGrid,
848
867
  pickContrastingText,
868
+ pipStyleVars,
849
869
  plainTextFromInlineHtml,
850
870
  pointerSegments,
851
871
  primaryType,
@@ -913,6 +933,7 @@ export {
913
933
  shouldUseShadow,
914
934
  snapEndpoints,
915
935
  snapPoints,
936
+ splitFrontmatterBlock,
916
937
  splitIconMarkers,
917
938
  splitKeyValueToken,
918
939
  statHighlight,
@@ -941,8 +962,10 @@ export {
941
962
  treeToTemplateData,
942
963
  twoColumn,
943
964
  unquoteAttrValue,
965
+ unwrapMarkdownSource,
944
966
  updateLayer,
945
967
  vadStep,
968
+ validateCustomTemplateDefinition,
946
969
  validateMarkdownDoc,
947
970
  validateMarkdownSource,
948
971
  validateTheme,
@@ -953,6 +976,7 @@ export {
953
976
  wordIndexAtChar,
954
977
  wordIndexAtTime,
955
978
  wordPosAtExpectedSyllables,
979
+ wrapMarkdownSource,
956
980
  wrapWithPersistentLayers,
957
981
  writeCustomTemplatesToFrontmatter,
958
982
  writeCustomThemesToFrontmatter,
@@ -1,4 +1,4 @@
1
- import { b2 as Theme, aU as SurfaceScheme } from '../Doc-BrgZC7SE.js';
1
+ import { bg as Theme, b6 as SurfaceScheme } from '../Doc-CSW6K2UF.js';
2
2
  import '../types-CUNc9biN.js';
3
3
 
4
4
  /**
@@ -15,10 +15,10 @@ import {
15
15
  resolveRef,
16
16
  setByPointer,
17
17
  toPointer
18
- } from "../chunk-32R2RZAO.js";
19
- import "../chunk-SPTY4C6F.js";
20
- import "../chunk-2ZWIXGAC.js";
21
- import "../chunk-C33GTPUZ.js";
18
+ } from "../chunk-DAMIRKTO.js";
19
+ import "../chunk-GODLNXO4.js";
20
+ import "../chunk-GAZKTT4R.js";
21
+ import "../chunk-SBAX4ZPO.js";
22
22
  import "../chunk-BAOV476U.js";
23
23
  import "../chunk-4VOD55SX.js";
24
24
  export {
@@ -430,6 +430,21 @@ declare function parseFrontmatter(yaml: string): Record<string, unknown> | null;
430
430
  * blank (no trailing whitespace) so the output diffs cleanly.
431
431
  */
432
432
  declare function formatBlockScalar(value: string): string;
433
+ /**
434
+ * Split a markdown source into its raw leading YAML frontmatter block and
435
+ * the body that follows.
436
+ *
437
+ * `frontmatter` is the exact source bytes of the block — both `---` fence
438
+ * lines and the trailing newline — or `null` when the source does not start
439
+ * with one. Unlike {@link parseFrontmatter}, nothing is interpreted:
440
+ * comment-only and empty blocks are preserved verbatim, which is what
441
+ * source-level rewriters (`cleanupMarkdownSource`) need to keep authored
442
+ * YAML byte-identical.
443
+ */
444
+ declare function splitFrontmatterBlock(source: string): {
445
+ frontmatter: string | null;
446
+ body: string;
447
+ };
433
448
  /** Quote a frontmatter scalar so it round-trips cleanly through `parseFrontmatter`. */
434
449
  declare function formatFrontmatterValue(value: string | number | boolean): string;
435
450
  /**
@@ -499,4 +514,106 @@ declare function readFrontmatterThemeId(frontmatter: Record<string, unknown> | u
499
514
  */
500
515
  declare function plainTextFromInlineHtml(html: string): string;
501
516
 
502
- export { DEFAULT_INTERACTIVE_RESOURCE_POLICY, DEFAULT_RESOURCE_MAX_BYTES, DEFAULT_RESOURCE_TIMEOUT_MS, type FetchResourceBytesOptions, type FetchedResource, HeadingAttributes, HtmlNode, type HtmlPolicy, LOCAL_ONLY_RESOURCE_POLICY, MarkdownDocument, MarkdownNode, ParseOptions, type ResourcePolicy, ResourcePolicyError, type SanitizeUrlOptions, StringifyOptions, type TrailingAnnotationMatch, type UrlKind, countNodes, createDocument, extractPlainText, fetchResourceBytes, findNodesByType, formatBlockScalar, formatFrontmatterValue, formatFrontmatterYaml, fromMdast, getChildren, inferDocumentTitle, isResourceUrlAllowed, matchTrailingPandocAttr, matchTrailingTemplateAnnotation, needsQuoting, parseFrontmatter, parseHtmlToNodes, parseMarkdown, parsePandocAttrTokens, plainTextFromInlineHtml, quoteAttrValue, readFrontmatterThemeId, sanitizeHtmlNodes, sanitizeUrl, serializePandocAttributes, setFrontmatterValues, splitKeyValueToken, stringifyHtmlNodes, stringifyMarkdown, toMdast, tokenizeAttrTokens, unquoteAttrValue, walkMarkdownTree };
517
+ /**
518
+ * Markdown source transforms
519
+ *
520
+ * One-time, whole-document transforms over markdown SOURCE TEXT (not the
521
+ * AST): unwrap forced line wrapping, wrap prose at a column width, and
522
+ * canonical cleanup — plus detection of a document's prevailing wrap
523
+ * convention. A shared registry drives both the editor's Transform menu and
524
+ * the `squisq transform` CLI command.
525
+ *
526
+ * Wrap and unwrap rewrite ONLY paragraph prose, located by source position:
527
+ * headings, tables, code fences, math, HTML blocks, frontmatter, and link
528
+ * definitions stay byte-identical. Every transform reparses its output and
529
+ * structurally compares it against the input document; on any mismatch it
530
+ * returns the input unchanged (or throws in `strict` mode) rather than risk
531
+ * corrupting a document — the same verify-before-commit contract the ASCII
532
+ * diagram editor uses.
533
+ *
534
+ * Distinct from `@bendyline/squisq/transform` (the slideshow style
535
+ * pipeline): these transforms rewrite markdown text, not docs.
536
+ */
537
+ type MarkdownSourceTransformId = 'unwrap' | 'wrap' | 'cleanup';
538
+ interface MarkdownSourceTransformOptions {
539
+ /** Target column for `wrap` (clamped to 20–500). Default {@link DEFAULT_WRAP_WIDTH}. */
540
+ width?: number;
541
+ /**
542
+ * Throw instead of degrading when the transformed output fails the
543
+ * structural-equivalence check. The editor uses the default (degrade to a
544
+ * no-op + `console.warn`); the CLI and tests run strict.
545
+ */
546
+ strict?: boolean;
547
+ }
548
+ /** A single source rewrite: replace `[start, end)` with `text`. */
549
+ interface MarkdownSourceEdit {
550
+ start: number;
551
+ end: number;
552
+ text: string;
553
+ }
554
+ interface MarkdownSourceTransformResult {
555
+ /** The transformed source (=== the input when `changed` is false). */
556
+ output: string;
557
+ /** True when the transform produced a different source. */
558
+ changed: boolean;
559
+ /**
560
+ * True when the safety net fired: the transform DID produce edits, but the
561
+ * result no longer parsed to an equivalent document, so the input was
562
+ * returned unchanged. Distinct from a genuine no-op (`changed: false,
563
+ * degraded: false`).
564
+ */
565
+ degraded: boolean;
566
+ /**
567
+ * The minimal edits that turn the input into `output`, in DESCENDING
568
+ * `start` order so they can be applied top-of-stack first (offsets stay
569
+ * valid). Present for `unwrap`/`wrap` (one edit per touched paragraph) and
570
+ * `cleanup` (one whole-document edit); empty when nothing changed.
571
+ */
572
+ edits: MarkdownSourceEdit[];
573
+ }
574
+ interface MarkdownSourceTransform {
575
+ id: MarkdownSourceTransformId;
576
+ /** Short human label for menus. */
577
+ label: string;
578
+ /** One-line description for menus/help. */
579
+ description: string;
580
+ apply(source: string, options?: MarkdownSourceTransformOptions): MarkdownSourceTransformResult;
581
+ }
582
+ /** The prevailing wrap convention of a document's paragraph prose. */
583
+ interface MarkdownWrapState {
584
+ /**
585
+ * - `wrapped`: a clear majority of paragraphs that would need wrapping are
586
+ * hard-wrapped; `width` carries the detected column.
587
+ * - `unwrapped`: paragraph prose is single-line.
588
+ * - `mixed`: contradictory evidence — consumers should leave the doc alone.
589
+ * - `no-prose`: nothing to judge (no paragraphs).
590
+ */
591
+ kind: 'unwrapped' | 'wrapped' | 'mixed' | 'no-prose';
592
+ /** Detected wrap column (present when `kind` is `wrapped`). */
593
+ width?: number;
594
+ totalParagraphs: number;
595
+ wrappedParagraphs: number;
596
+ /** Longest physical line observed across paragraph prose. */
597
+ maxLineLength: number;
598
+ }
599
+ declare const DEFAULT_WRAP_WIDTH = 80;
600
+ declare const MARKDOWN_SOURCE_TRANSFORMS: readonly MarkdownSourceTransform[];
601
+ /** Apply a registered transform by id. Throws on an unknown id. */
602
+ declare function applyMarkdownSourceTransform(id: string, source: string, options?: MarkdownSourceTransformOptions): MarkdownSourceTransformResult;
603
+ /** Remove forced line wrapping; each paragraph becomes a single line. */
604
+ declare function unwrapMarkdownSource(source: string, options?: MarkdownSourceTransformOptions): string;
605
+ /** Hard-wrap paragraph prose at a column width on word boundaries. */
606
+ declare function wrapMarkdownSource(source: string, options?: MarkdownSourceTransformOptions): string;
607
+ /** Normalize the document through the canonical house-style serializer. */
608
+ declare function cleanupMarkdownSource(source: string, options?: MarkdownSourceTransformOptions): string;
609
+ /**
610
+ * Detect the prevailing wrap convention of a document's paragraph prose.
611
+ *
612
+ * Evidence is the soft (non-hard-break, non-immovable) line breaks inside
613
+ * paragraphs: their non-final line lengths vote for a wrap column, which is
614
+ * snapped up to the nearest common convention (60/72/80/100/120) when close.
615
+ * Hard-break lines (poetry, addresses) are never wrap evidence.
616
+ */
617
+ declare function detectMarkdownWrapState(source: string): MarkdownWrapState;
618
+
619
+ export { DEFAULT_INTERACTIVE_RESOURCE_POLICY, DEFAULT_RESOURCE_MAX_BYTES, DEFAULT_RESOURCE_TIMEOUT_MS, DEFAULT_WRAP_WIDTH, type FetchResourceBytesOptions, type FetchedResource, HeadingAttributes, HtmlNode, type HtmlPolicy, LOCAL_ONLY_RESOURCE_POLICY, MARKDOWN_SOURCE_TRANSFORMS, MarkdownDocument, MarkdownNode, type MarkdownSourceEdit, type MarkdownSourceTransform, type MarkdownSourceTransformId, type MarkdownSourceTransformOptions, type MarkdownSourceTransformResult, type MarkdownWrapState, ParseOptions, type ResourcePolicy, ResourcePolicyError, type SanitizeUrlOptions, StringifyOptions, type TrailingAnnotationMatch, type UrlKind, applyMarkdownSourceTransform, cleanupMarkdownSource, countNodes, createDocument, detectMarkdownWrapState, extractPlainText, fetchResourceBytes, findNodesByType, formatBlockScalar, formatFrontmatterValue, formatFrontmatterYaml, fromMdast, getChildren, inferDocumentTitle, isResourceUrlAllowed, matchTrailingPandocAttr, matchTrailingTemplateAnnotation, needsQuoting, parseFrontmatter, parseHtmlToNodes, parseMarkdown, parsePandocAttrTokens, plainTextFromInlineHtml, quoteAttrValue, readFrontmatterThemeId, sanitizeHtmlNodes, sanitizeUrl, serializePandocAttributes, setFrontmatterValues, splitFrontmatterBlock, splitKeyValueToken, stringifyHtmlNodes, stringifyMarkdown, toMdast, tokenizeAttrTokens, unquoteAttrValue, unwrapMarkdownSource, walkMarkdownTree, wrapMarkdownSource };