@bendyline/squisq 2.13.1 → 2.13.3

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 (35) hide show
  1. package/dist/{Doc-C7iCmmmF.d.ts → Doc-BPhdJFS_.d.ts} +53 -2
  2. package/dist/{ImageEditDoc-CxRHe41J.d.ts → ImageEditDoc-DDx-sw_S.d.ts} +1 -1
  3. package/dist/{chunk-ITLJQG7Z.js → chunk-5FUBK3DK.js} +527 -266
  4. package/dist/{chunk-HE3HQZWU.js → chunk-6NWVLLMI.js} +104 -1
  5. package/dist/{chunk-3A6YM375.js → chunk-D3JQMZUT.js} +8 -8
  6. package/dist/chunk-DOOUVVOM.js +78 -0
  7. package/dist/{chunk-2LTALYXX.js → chunk-F3LRTRST.js} +15 -10
  8. package/dist/{chunk-5SVFLLOD.js → chunk-ISVJ42I3.js} +3 -0
  9. package/dist/{chunk-7ZXCS3UU.js → chunk-JFJZ4NS6.js} +2 -2
  10. package/dist/{chunk-V4USYYYO.js → chunk-JOBMPMY5.js} +1 -1
  11. package/dist/{chunk-HGCIIXHP.js → chunk-POZCKPCO.js} +235 -4
  12. package/dist/{chunk-DCO5GYVW.js → chunk-VX7MPZOK.js} +5 -5
  13. package/dist/doc/index.d.ts +100 -15
  14. package/dist/doc/index.js +15 -7
  15. package/dist/fence/index.d.ts +1 -1
  16. package/dist/generate/index.d.ts +1 -1
  17. package/dist/imageEdit/index.d.ts +3 -3
  18. package/dist/index.d.ts +5 -5
  19. package/dist/index.js +26 -18
  20. package/dist/jsonForm/index.d.ts +1 -1
  21. package/dist/jsonForm/index.js +1 -1
  22. package/dist/markdown/index.js +11 -12
  23. package/dist/{materializePageSection-_5uQrEYP.d.ts → materializePageSection-DnQi-0TA.d.ts} +1 -1
  24. package/dist/mediaEdit/index.d.ts +2 -2
  25. package/dist/narration/index.d.ts +1 -1
  26. package/dist/narration/index.js +5 -5
  27. package/dist/recommend/index.js +3 -2
  28. package/dist/schemas/index.d.ts +4 -4
  29. package/dist/schemas/index.js +1 -1
  30. package/dist/{themeLibrary-DsntZLoa.d.ts → themeLibrary-DM7eSK1w.d.ts} +1 -1
  31. package/dist/timing/index.d.ts +1 -1
  32. package/dist/transform/index.d.ts +2 -2
  33. package/dist/transform/index.js +6 -6
  34. package/package.json +1 -1
  35. package/dist/chunk-Y25EJEZN.js +0 -178
@@ -16,7 +16,7 @@ import {
16
16
  setByPointer,
17
17
  toPointer
18
18
  } from "../chunk-GLWQTZ4C.js";
19
- import "../chunk-5SVFLLOD.js";
19
+ import "../chunk-ISVJ42I3.js";
20
20
  import "../chunk-2SRF5III.js";
21
21
  import "../chunk-WNEH3BZP.js";
22
22
  import "../chunk-JSGIWW35.js";
@@ -17,7 +17,7 @@ import {
17
17
  stringifyMarkdown,
18
18
  unwrapMarkdownSource,
19
19
  wrapMarkdownSource
20
- } from "../chunk-7ZXCS3UU.js";
20
+ } from "../chunk-JFJZ4NS6.js";
21
21
  import {
22
22
  DEFAULT_MARKDOWN_SAFETY_LIMITS,
23
23
  MarkdownLimitError,
@@ -32,16 +32,8 @@ import {
32
32
  serializePandocAttributes,
33
33
  toMdast,
34
34
  wikiLinkPath
35
- } from "../chunk-3A6YM375.js";
36
- import {
37
- matchTrailingPandocAttr,
38
- matchTrailingTemplateAnnotation,
39
- needsQuoting,
40
- quoteAttrValue,
41
- splitKeyValueToken,
42
- tokenizeAttrTokens,
43
- unquoteAttrValue
44
- } from "../chunk-Y25EJEZN.js";
35
+ } from "../chunk-D3JQMZUT.js";
36
+ import "../chunk-DOOUVVOM.js";
45
37
  import {
46
38
  BLOCK_META_KEY_DESCRIPTORS,
47
39
  KNOWN_BLOCK_META_KEYS,
@@ -61,7 +53,10 @@ import {
61
53
  isSvgIslandFence,
62
54
  isSvgIslandLang,
63
55
  isVideoEmbedUrl,
56
+ matchTrailingPandocAttr,
57
+ matchTrailingTemplateAnnotation,
64
58
  mediaKindForUrl,
59
+ needsQuoting,
65
60
  parseFrontmatter,
66
61
  parseHtmlToNodes,
67
62
  parseSvgIsland,
@@ -70,20 +65,24 @@ import {
70
65
  parseVideoEmbedUrl,
71
66
  parseVideoStartTime,
72
67
  plainTextFromInlineHtml,
68
+ quoteAttrValue,
73
69
  readFrontmatterThemeId,
74
70
  sanitizeHtmlNodes,
75
71
  sanitizeUrl,
76
72
  setFrontmatterValues,
77
73
  splitFrontmatterBlock,
74
+ splitKeyValueToken,
78
75
  stringifyHtmlNodes,
79
76
  svgIslandDataUrl,
80
77
  svgIslandMarkup,
81
78
  svgSourceFromBytes,
82
79
  svgSourceFromDataUrl,
80
+ tokenizeAttrTokens,
81
+ unquoteAttrValue,
83
82
  videoEmbedFromIframe,
84
83
  videoEmbedIframeAttributes,
85
84
  walkMarkdownTree
86
- } from "../chunk-HE3HQZWU.js";
85
+ } from "../chunk-6NWVLLMI.js";
87
86
  import "../chunk-CZ7AUSLI.js";
88
87
  import {
89
88
  SVG_ISLAND_LIMITS
@@ -1,4 +1,4 @@
1
- import { k as Block, aT as PageSectionKind, aR as PageEmphasis, bC as ThemeColorScheme, aP as PageBackground, bA as Theme, c4 as ViewportConfig, y as CustomTemplateDefinition, aW as PageVariant, bk as StartBlockConfig, Q as Doc, bD as ThemePageStyle } from './Doc-C7iCmmmF.js';
1
+ import { k as Block, aV as PageSectionKind, aT as PageEmphasis, bE as ThemeColorScheme, aR as PageBackground, bC as Theme, c7 as ViewportConfig, z as CustomTemplateDefinition, aY as PageVariant, bm as StartBlockConfig, R as Doc, bF as ThemePageStyle } from './Doc-BPhdJFS_.js';
2
2
  import { M as MarkdownBlockNode } from './types-Zk8qYuaT.js';
3
3
 
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { al as MediaCut, Q as Doc, aj as MediaClip, cA as MediaFxOpId, cB as MediaFxChain } from '../Doc-C7iCmmmF.js';
2
- export { cC as MEDIA_EDIT_PARAMS, cD as MEDIA_FX_ORDER, cE as MEDIA_FX_SPECS, ak as MediaCrop, cF as MediaEditParamKey, cG as MediaEditParamValues, am as MediaEdits, cH as MediaFxOp, cI as formatMediaNumber, cJ as hasRenderableFx, cK as mediaEditHtmlAttribute, cL as mediaEditValuesFromAttributes, cM as mediaEditValuesFromParams, cN as mediaRenderKey, cO as normalizeMediaCrop, cP as normalizeMediaCuts, cQ as parseMediaCrop, cR as parseMediaCuts, cS as parseMediaEdits, cT as parseMediaFx, cU as serializeMediaCrop, cV as serializeMediaCuts, cW as serializeMediaEdits, cX as serializeMediaFx } from '../Doc-C7iCmmmF.js';
1
+ import { am as MediaCut, R as Doc, ak as MediaClip, cD as MediaFxOpId, cE as MediaFxChain } from '../Doc-BPhdJFS_.js';
2
+ export { cF as MEDIA_EDIT_PARAMS, cG as MEDIA_FX_ORDER, cH as MEDIA_FX_SPECS, al as MediaCrop, cI as MediaEditParamKey, cJ as MediaEditParamValues, an as MediaEdits, cK as MediaFxOp, cL as formatMediaNumber, cM as hasRenderableFx, cN as mediaEditHtmlAttribute, cO as mediaEditValuesFromAttributes, cP as mediaEditValuesFromParams, cQ as mediaRenderKey, cR as normalizeMediaCrop, cS as normalizeMediaCuts, cT as parseMediaCrop, cU as parseMediaCuts, cV as parseMediaEdits, cW as parseMediaFx, cX as serializeMediaCrop, cY as serializeMediaCuts, cZ as serializeMediaEdits, c_ as serializeMediaFx } from '../Doc-BPhdJFS_.js';
3
3
  import '../types-Zk8qYuaT.js';
4
4
 
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { Q as Doc, f as AudioBookmark } from '../Doc-C7iCmmmF.js';
1
+ import { R as Doc, f as AudioBookmark } from '../Doc-BPhdJFS_.js';
2
2
  import { d as BuildAdvance } from '../types-Zk8qYuaT.js';
3
3
 
4
4
  /**
@@ -27,7 +27,7 @@ import {
27
27
  recordSlideShown,
28
28
  traceWordPosAt,
29
29
  vadStep
30
- } from "../chunk-V4USYYYO.js";
30
+ } from "../chunk-JOBMPMY5.js";
31
31
  import "../chunk-NEWNNLWN.js";
32
32
  import {
33
33
  buildNarrationTimingJson,
@@ -41,13 +41,13 @@ import {
41
41
  wordIndexAtChar,
42
42
  wordIndexAtTime,
43
43
  wordPosAtExpectedSyllables
44
- } from "../chunk-ITLJQG7Z.js";
45
- import "../chunk-HGCIIXHP.js";
44
+ } from "../chunk-5FUBK3DK.js";
45
+ import "../chunk-POZCKPCO.js";
46
46
  import "../chunk-FUBMT6SJ.js";
47
47
  import "../chunk-WNEH3BZP.js";
48
48
  import "../chunk-L7QZORLB.js";
49
- import "../chunk-Y25EJEZN.js";
50
- import "../chunk-HE3HQZWU.js";
49
+ import "../chunk-DOOUVVOM.js";
50
+ import "../chunk-6NWVLLMI.js";
51
51
  import "../chunk-P53Z4RYC.js";
52
52
  import "../chunk-GHOPHGOK.js";
53
53
  import "../chunk-XRW6P7IF.js";
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  profileBlockContents,
3
3
  recommendTemplatesForBlock
4
- } from "../chunk-HGCIIXHP.js";
5
- import "../chunk-HE3HQZWU.js";
4
+ } from "../chunk-POZCKPCO.js";
5
+ import "../chunk-L7QZORLB.js";
6
+ import "../chunk-6NWVLLMI.js";
6
7
  import "../chunk-P53Z4RYC.js";
7
8
  export {
8
9
  profileBlockContents,
@@ -1,10 +1,10 @@
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, i as DEFAULT_TRANSITION_DURATION_SECONDS, aa as TRANSITION_DIRECTIONS, ab as TRANSITION_TYPES, ac as Transition, ad as TransitionDirection, ae as TransitionType, ah as buildSpecParams, ai as isTransitionType, aj as normalizeTransitionDirection, ak as normalizeTransitionType, al as parseBuildSpec, am as recordBuildAdvance, an as resolveBlockTransition, ap as resolveTransitionDuration } from '../types-Zk8qYuaT.js';
2
2
  export { B as BoundingBox, C as Coordinates } from '../Types-sh2VRxfo.js';
3
- import { Q as Doc, bA as Theme, bD as ThemePageStyle, bC as ThemeColorScheme, K as DeepPartial, bG as ThemeSeedColors, bB as ThemeColorPalette, _ as FontFamilyKind, Z as FontFamily } from '../Doc-C7iCmmmF.js';
4
- 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, L as DefinitionCardInput, M as DiagramBlockInput, N as DiagramEdgeAnchor, O as DiagramTemplateEdge, P as DiagramTemplateNode, 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, $ 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 TextFlow, bw as TextLayer, bx as TextParagraph, by as TextParagraphList, bz as TextStyle, bE as ThemeRegistry, bF as ThemeSchemaVersion, bH as ThemeStyle, bI as ThemeTypography, bJ as TimelineBlockInput, bK as TimelineTemplateEvent, bL as TimelineTemplateLink, bM as TimelineTemplateTrack, bN as TitleBlockInput, bO as TitleCaptionConfig, bP as TranscriptBlockInput, bQ as TreeBlockInput, bR as TreeLayer, bS as TreeLayerItem, bT as TreeLayerStyle, bU as TreeTemplateItem, bV as TwoColumnInput, bW as VIEWPORT_PRESETS, bX as VideoEmbedLayer, bY as VideoLayer, bZ as VideoPipPosition, b_ as VideoPipShape, b$ as VideoPipSize, c0 as VideoPlacement, c1 as VideoPresentation, c2 as VideoPullQuoteInput, c3 as VideoWithCaptionInput, c4 as ViewportConfig, c5 as ViewportOrientation, c6 as ViewportPreset, c7 as VignetteConfig, c8 as applySurface, c9 as calculateDuration, ca as calculateFontScale, cb as createTemplateContext, cc as createTheme, cd as createThemeRegistry, ce as getAspectRatioString, cf as getBlockAtTime, cg as getCaptionAtTime, ch as getDocPlaybackDuration, ci as getLayoutHints, cj as getSafeTextBounds, ck as getSegmentAtTime, cl as getTwoColumnPositions, cm as getViewport, cn as getViewportOrientation, co as isCustomTemplateDefinition, cp as isMotionProfileName, cq as isPersistentLayerTemplate, cr as isTemplateBlock, cs as layoutScaledFontSize, ct as readFrontmatterMotion, cu as resolveMediaSchedule, cv as resolveMotionForDoc, cw as resolveMotionProfile, cx as scaledFontSize, cy as scheduleMediaClip, cz as validateCustomTemplateDefinition } from '../Doc-C7iCmmmF.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-DsntZLoa.js';
3
+ import { R as Doc, bC as Theme, bF as ThemePageStyle, bE as ThemeColorScheme, L as DeepPartial, bI as ThemeSeedColors, bD as ThemeColorPalette, $ as FontFamilyKind, _ as FontFamily } from '../Doc-BPhdJFS_.js';
4
+ 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, n as BottomFeatureInput, C as CaptionPhrase, o as CaptionTrack, p as CaptionWord, q as ChartBaseFields, r as ChartTemplateInput, s as ColorScheme, t as ColumnChartInput, u as ComparisonBarInput, v as ContentBlockInput, w as CornerBrandingConfig, x as CountUpSpec, y as CreateTemplateContextOptions, z as CustomTemplateDefinition, D as CustomTemplateLayer, E as CustomTemplateValidationError, F as CustomTemplateValidationResult, G as DARK_SURFACE, H as DEFAULT_DOC_FONT, I as DEFAULT_TITLE_FONT, J as DataTableInput, K as DateEventInput, M as DefinitionCardInput, N as DiagramBlockInput, O as DiagramEdgeAnchor, P as DiagramTemplateEdge, Q as DiagramTemplateNode, S as DocBlock, T as DocDiagnostic, U as DonutChartInput, V as DrawingBlockInput, W as FRONTMATTER_CUSTOM_TEMPLATES_KEY, X as FRONTMATTER_CUSTOM_THEMES_KEY, Y as FRONTMATTER_MOTION_KEY, Z as FactCardInput, a0 as FullBleedQuoteInput, a1 as GradientBackgroundConfig, a2 as ImageBackgroundConfig, a3 as ImageLayer, a4 as ImageTreatment, a5 as ImageWithCaptionInput, a6 as LIGHT_SURFACE, a7 as Layer, a8 as LayerRepeat, a9 as LayoutHints, aa as LeftFeatureInput, ab as LineChartInput, ac as LinearGradient, ad as ListBlockInput, ae as MOTION_PROFILES, af as MapBlockInput, ag as MapLayer, ah as MapMarker, ai as MapTileStyle, aj as MarkerStyle, ak as MediaClip, al as MediaCrop, am as MediaCut, an as MediaEdits, ao as MediaOnlyInput, ap as MediaScheduleOptions, aq as MermaidLayer, ar as MotionEntrance, as as MotionOrigin, at as MotionProfile, au as MotionProfileName, av as MotionSpec, aw as MotionState, ax as PAGE_ACCENT_STRATEGIES, ay as PAGE_BACKGROUNDS, az 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 PAGE_VARIANTS, aQ as PageAccentRotation, aR as PageBackground, aS as PageDesignFamily, aT as PageEmphasis, aU as PageHeadingTreatment, aV as PageSectionKind, aW as PageSectionOverride, aX as PageTokens, aY as PageVariant, aZ as PathLayer, a_ as PatternBackgroundConfig, a$ as PersistentLayer, b0 as PersistentLayerConfig, b1 as PersistentLayerTemplate, b2 as PersistentLayerTemplateConfig, b3 as PersistentLayerTemplateType, b4 as PhotoGridInput, b5 as PieChartInput, b6 as PipStyle, b7 as Position, b8 as ProgressIndicatorConfig, b9 as PromotedBodyAnnotation, ba as PullQuoteInput, bb as QuoteBlockInput, bc as RawLayersInput, bd as RenderStyle, be as RightFeatureInput, bf as ScatterChartInput, bg as ScheduledClip, bh as SectionHeaderInput, bi as ShapeFilter, bj as ShapeLayer, bk as ShapePattern, bl as SolidBackgroundConfig, bm as StartBlockConfig, bn as StatHighlightInput, bo as SurfaceScheme, bp as SvgLayer, bq as THEME_SCHEMA_VERSION, br as TableLayer, bs as TableLayerStyle, bt as TemplateBlock, bu as TemplateContext, bv as TemplateFunction, bw as TemplateRegistry, bx as TextFlow, by as TextLayer, bz as TextParagraph, bA as TextParagraphList, bB as TextStyle, bG as ThemeRegistry, bH as ThemeSchemaVersion, bJ as ThemeStyle, bK as ThemeTypography, bL as TimelineBlockInput, bM as TimelineTemplateEvent, bN as TimelineTemplateLink, bO as TimelineTemplateTrack, bP as TitleBlockInput, bQ as TitleCaptionConfig, bR as TopFeatureInput, bS as TranscriptBlockInput, bT as TreeBlockInput, bU as TreeLayer, bV as TreeLayerItem, bW as TreeLayerStyle, bX as TreeTemplateItem, bY as TwoColumnInput, bZ as VIEWPORT_PRESETS, b_ as VideoEmbedLayer, b$ as VideoLayer, c0 as VideoPipPosition, c1 as VideoPipShape, c2 as VideoPipSize, c3 as VideoPlacement, c4 as VideoPresentation, c5 as VideoPullQuoteInput, c6 as VideoWithCaptionInput, c7 as ViewportConfig, c8 as ViewportOrientation, c9 as ViewportPreset, ca as VignetteConfig, cb as applySurface, cc as calculateDuration, cd as calculateFontScale, ce as createTemplateContext, cf as createTheme, cg as createThemeRegistry, ch as getAspectRatioString, ci as getBlockAtTime, cj as getCaptionAtTime, ck as getDocPlaybackDuration, cl as getLayoutHints, cm as getSafeTextBounds, cn as getSegmentAtTime, co as getTwoColumnPositions, cp as getViewport, cq as getViewportOrientation, cr as isCustomTemplateDefinition, cs as isMotionProfileName, ct as isPersistentLayerTemplate, cu as isTemplateBlock, cv as layoutScaledFontSize, cw as readFrontmatterMotion, cx as resolveMediaSchedule, cy as resolveMotionForDoc, cz as resolveMotionProfile, cA as scaledFontSize, cB as scheduleMediaClip, cC as validateCustomTemplateDefinition } from '../Doc-BPhdJFS_.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-DM7eSK1w.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-CxRHe41J.js';
7
+ export { E as EditorLayerMeta, I as ImageEditCanvas, a as ImageEditDoc, b as ImageEditLayer, c as ImageEditLayerKind, d as ImageEditMeta } from '../ImageEditDoc-DDx-sw_S.js';
8
8
 
9
9
  /**
10
10
  * Runtime validation for the canonical {@link Doc} JSON shape.
@@ -13,7 +13,7 @@ import {
13
13
  pipStyleVars,
14
14
  serializeTheme,
15
15
  validateDocSchema
16
- } from "../chunk-5SVFLLOD.js";
16
+ } from "../chunk-ISVJ42I3.js";
17
17
  import {
18
18
  defaultPageStyle,
19
19
  getDocPlaybackDuration,
@@ -1,4 +1,4 @@
1
- import { bA as Theme, bE as ThemeRegistry } from './Doc-C7iCmmmF.js';
1
+ import { bC as Theme, bG as ThemeRegistry } from './Doc-BPhdJFS_.js';
2
2
 
3
3
  /**
4
4
  * Built-in Theme Library
@@ -1,4 +1,4 @@
1
- import { g as AudioSegment, h as AudioTimingData, n as CaptionTrack } from '../Doc-C7iCmmmF.js';
1
+ import { g as AudioSegment, h as AudioTimingData, o as CaptionTrack } from '../Doc-BPhdJFS_.js';
2
2
  import '../types-Zk8qYuaT.js';
3
3
 
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { Q as Doc, r as ColorScheme, k as Block, br as TemplateBlock } from '../Doc-C7iCmmmF.js';
2
- import { i as PageTransformHints } from '../materializePageSection-_5uQrEYP.js';
1
+ import { R as Doc, s as ColorScheme, k as Block, bt as TemplateBlock } from '../Doc-BPhdJFS_.js';
2
+ import { i as PageTransformHints } from '../materializePageSection-DnQi-0TA.js';
3
3
  import { d as ExtractionType, E as ExtractedElement, b as ExtractionOptions } from '../contentExtractor-BNfVJV2U.js';
4
4
  import { f as BuildSpec } from '../types-Zk8qYuaT.js';
5
5
 
@@ -24,16 +24,16 @@ import {
24
24
  serializePresentationPlan,
25
25
  transformNarratedSegment,
26
26
  usesDynamicPresentation
27
- } from "../chunk-DCO5GYVW.js";
28
- import "../chunk-ITLJQG7Z.js";
29
- import "../chunk-HGCIIXHP.js";
27
+ } from "../chunk-VX7MPZOK.js";
28
+ import "../chunk-5FUBK3DK.js";
29
+ import "../chunk-POZCKPCO.js";
30
30
  import "../chunk-SVN7T6BK.js";
31
31
  import "../chunk-FUBMT6SJ.js";
32
32
  import "../chunk-WNEH3BZP.js";
33
33
  import "../chunk-L7QZORLB.js";
34
- import "../chunk-3A6YM375.js";
35
- import "../chunk-Y25EJEZN.js";
36
- import "../chunk-HE3HQZWU.js";
34
+ import "../chunk-D3JQMZUT.js";
35
+ import "../chunk-DOOUVVOM.js";
36
+ import "../chunk-6NWVLLMI.js";
37
37
  import "../chunk-CZ7AUSLI.js";
38
38
  import "../chunk-P53Z4RYC.js";
39
39
  import "../chunk-GHOPHGOK.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/squisq",
3
- "version": "2.13.1",
3
+ "version": "2.13.3",
4
4
  "description": "Headless utilities for doc/block rendering, spatial math, Markdown, and storage",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",
@@ -1,178 +0,0 @@
1
- // src/doc/templates/templateNames.ts
2
- var TEMPLATE_ALIASES = Object.freeze({
3
- titleBlock: "title",
4
- quoteBlock: "quote",
5
- mapBlock: "map",
6
- listBlock: "list",
7
- diagramBlock: "diagram",
8
- diagramNode: "diagram"
9
- });
10
- function resolveTemplateName(name) {
11
- return TEMPLATE_ALIASES[name] ?? name;
12
- }
13
- var TABLE_FED_TEMPLATES = /* @__PURE__ */ new Set([
14
- "dataTable",
15
- "barChart",
16
- "columnChart",
17
- "pieChart",
18
- "donutChart",
19
- "lineChart",
20
- "areaChart",
21
- "scatterChart"
22
- ]);
23
- var CONTAINER_TEMPLATES = /* @__PURE__ */ new Set(["diagram", "drawing", "layout"]);
24
- function isContainerTemplate(name) {
25
- return !!name && CONTAINER_TEMPLATES.has(resolveTemplateName(name));
26
- }
27
- var TEMPLATE_TOKEN_NAMES = /* @__PURE__ */ new Set([
28
- "title",
29
- "sectionHeader",
30
- "bigText",
31
- "transcript",
32
- "content",
33
- "statHighlight",
34
- "quote",
35
- "factCard",
36
- "twoColumn",
37
- "dateEvent",
38
- "imageWithCaption",
39
- "leftFeature",
40
- "rightFeature",
41
- "map",
42
- "fullBleedQuote",
43
- "list",
44
- "photoGrid",
45
- "definitionCard",
46
- "comparisonBar",
47
- "pullQuote",
48
- "videoWithCaption",
49
- "videoPullQuote",
50
- "dataTable",
51
- "barChart",
52
- "columnChart",
53
- "pieChart",
54
- "donutChart",
55
- "lineChart",
56
- "areaChart",
57
- "scatterChart",
58
- "diagram",
59
- "tree",
60
- "timeline",
61
- "layout",
62
- "drawing"
63
- ]);
64
- function isReservedAnnotationToken(token) {
65
- return TEMPLATE_TOKEN_NAMES.has(resolveTemplateName(token));
66
- }
67
-
68
- // src/markdown/attrTokens.ts
69
- var DQ_RUN = `"(?:[^"\\\\]|\\\\.)*"`;
70
- var SQ_RUN = `'(?:[^'\\\\]|\\\\.)*'`;
71
- var TEMPLATE_STRICT_RE = new RegExp(
72
- `\\s*\\{\\[((?:[^\\]"']|${DQ_RUN}|${SQ_RUN})*)\\]\\}[\\s\\]}]*$`
73
- );
74
- var TEMPLATE_LEGACY_RE = /\s*\{\[([^\]]*)\]\}[\s\]}]*$/;
75
- var PANDOC_STRICT_RE = new RegExp(`\\s*\\{(?!\\[)((?:[^}"']|${DQ_RUN}|${SQ_RUN})*)\\}\\s*$`);
76
- var PANDOC_LEGACY_RE = /\s*\{(?!\[)([^}]*)\}\s*$/;
77
- function matchTrailing(text, strict, legacy) {
78
- const m = strict.exec(text) ?? legacy.exec(text);
79
- return m ? { inner: m[1], index: m.index } : null;
80
- }
81
- function matchTrailingTemplateAnnotation(text) {
82
- return matchTrailing(text, TEMPLATE_STRICT_RE, TEMPLATE_LEGACY_RE);
83
- }
84
- function matchTrailingPandocAttr(text) {
85
- return matchTrailing(text, PANDOC_STRICT_RE, PANDOC_LEGACY_RE);
86
- }
87
- var WHITESPACE_RE = /\s/;
88
- function tokenizeAttrTokens(input) {
89
- const tokens = [];
90
- let i = 0;
91
- const n = input.length;
92
- while (i < n) {
93
- while (i < n && WHITESPACE_RE.test(input[i])) i++;
94
- if (i >= n) break;
95
- let token = "";
96
- while (i < n && !WHITESPACE_RE.test(input[i])) {
97
- const ch = input[i];
98
- const atValueStart = token === "" || token.endsWith("=");
99
- if ((ch === '"' || ch === "'") && atValueStart) {
100
- token += ch;
101
- i++;
102
- while (i < n && input[i] !== ch) {
103
- if (input[i] === "\\" && i + 1 < n && (input[i + 1] === ch || input[i + 1] === "\\")) {
104
- token += input[i] + input[i + 1];
105
- i += 2;
106
- } else {
107
- token += input[i];
108
- i++;
109
- }
110
- }
111
- if (i < n && input[i] === ch) {
112
- token += ch;
113
- i++;
114
- }
115
- } else {
116
- token += ch;
117
- i++;
118
- }
119
- }
120
- if (token) tokens.push(token);
121
- }
122
- return tokens;
123
- }
124
- var DQ_UNESCAPE_RE = /\\([\\"])/g;
125
- var SQ_UNESCAPE_RE = /\\([\\'])/g;
126
- function unquoteAttrValue(raw) {
127
- if (raw.length >= 2) {
128
- const q = raw[0];
129
- if ((q === '"' || q === "'") && raw.endsWith(q)) {
130
- const body = raw.slice(1, -1);
131
- return body.replace(q === '"' ? DQ_UNESCAPE_RE : SQ_UNESCAPE_RE, "$1");
132
- }
133
- }
134
- return raw;
135
- }
136
- function splitKeyValueToken(token) {
137
- const eqIdx = token.indexOf("=");
138
- if (eqIdx <= 0) return null;
139
- return { key: token.slice(0, eqIdx), value: unquoteAttrValue(token.slice(eqIdx + 1)) };
140
- }
141
- var NEEDS_QUOTING_RE = /[\s"'[\]{}]/;
142
- var DQ_ESCAPE_RE = /[\\"]/g;
143
- var SQ_ESCAPE_RE = /[\\']/g;
144
- function needsQuoting(value) {
145
- return value === "" || NEEDS_QUOTING_RE.test(value);
146
- }
147
- function quoteAttrValue(value) {
148
- if (!needsQuoting(value)) return value;
149
- if (value.includes('"') && !value.includes("'")) {
150
- return `'${value.replace(SQ_ESCAPE_RE, (ch) => `\\${ch}`)}'`;
151
- }
152
- return `"${value.replace(DQ_ESCAPE_RE, (ch) => `\\${ch}`)}"`;
153
- }
154
- function serializeAnnotation(template, params) {
155
- const parts = [];
156
- if (template) parts.push(template);
157
- for (const [key, value] of Object.entries(params ?? {})) {
158
- parts.push(`${key}=${quoteAttrValue(value)}`);
159
- }
160
- return `{[${parts.join(" ")}]}`;
161
- }
162
-
163
- export {
164
- TEMPLATE_ALIASES,
165
- resolveTemplateName,
166
- TABLE_FED_TEMPLATES,
167
- CONTAINER_TEMPLATES,
168
- isContainerTemplate,
169
- isReservedAnnotationToken,
170
- matchTrailingTemplateAnnotation,
171
- matchTrailingPandocAttr,
172
- tokenizeAttrTokens,
173
- unquoteAttrValue,
174
- splitKeyValueToken,
175
- needsQuoting,
176
- quoteAttrValue,
177
- serializeAnnotation
178
- };