@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
@@ -2,12 +2,19 @@ import {
2
2
  DEFAULT_INTERACTIVE_RESOURCE_POLICY,
3
3
  DEFAULT_RESOURCE_MAX_BYTES,
4
4
  DEFAULT_RESOURCE_TIMEOUT_MS,
5
+ DEFAULT_WRAP_WIDTH,
5
6
  LOCAL_ONLY_RESOURCE_POLICY,
7
+ MARKDOWN_SOURCE_TRANSFORMS,
6
8
  ResourcePolicyError,
9
+ applyMarkdownSourceTransform,
10
+ cleanupMarkdownSource,
11
+ detectMarkdownWrapState,
7
12
  fetchResourceBytes,
8
13
  isResourceUrlAllowed,
9
- stringifyMarkdown
10
- } from "../chunk-UA5DTYAY.js";
14
+ stringifyMarkdown,
15
+ unwrapMarkdownSource,
16
+ wrapMarkdownSource
17
+ } from "../chunk-JUAC2QWP.js";
11
18
  import {
12
19
  DEFAULT_MARKDOWN_SAFETY_LIMITS,
13
20
  MarkdownLimitError,
@@ -19,7 +26,7 @@ import {
19
26
  resolveMarkdownSafetyLimits,
20
27
  serializePandocAttributes,
21
28
  toMdast
22
- } from "../chunk-G3JOS25T.js";
29
+ } from "../chunk-7TJJA2RI.js";
23
30
  import {
24
31
  BLOCK_META_KEY_DESCRIPTORS,
25
32
  KNOWN_BLOCK_META_KEYS,
@@ -33,7 +40,7 @@ import {
33
40
  splitKeyValueToken,
34
41
  tokenizeAttrTokens,
35
42
  unquoteAttrValue
36
- } from "../chunk-2VCNTDNZ.js";
43
+ } from "../chunk-D6YTLQCL.js";
37
44
  import "../chunk-7N4G32LG.js";
38
45
  import {
39
46
  countNodes,
@@ -50,9 +57,10 @@ import {
50
57
  plainTextFromInlineHtml,
51
58
  readFrontmatterThemeId,
52
59
  setFrontmatterValues,
60
+ splitFrontmatterBlock,
53
61
  stringifyHtmlNodes,
54
62
  walkMarkdownTree
55
- } from "../chunk-BCCXTMN5.js";
63
+ } from "../chunk-O7JILDEF.js";
56
64
  import "../chunk-4VOD55SX.js";
57
65
  export {
58
66
  BLOCK_META_KEY_DESCRIPTORS,
@@ -60,14 +68,19 @@ export {
60
68
  DEFAULT_MARKDOWN_SAFETY_LIMITS,
61
69
  DEFAULT_RESOURCE_MAX_BYTES,
62
70
  DEFAULT_RESOURCE_TIMEOUT_MS,
71
+ DEFAULT_WRAP_WIDTH,
63
72
  KNOWN_BLOCK_META_KEYS,
64
73
  LOCAL_ONLY_RESOURCE_POLICY,
74
+ MARKDOWN_SOURCE_TRANSFORMS,
65
75
  MarkdownLimitError,
66
76
  ResourcePolicyError,
77
+ applyMarkdownSourceTransform,
67
78
  assertMarkdownDocumentWithinLimits,
68
79
  assertMarkdownSourceWithinLimits,
80
+ cleanupMarkdownSource,
69
81
  countNodes,
70
82
  createDocument,
83
+ detectMarkdownWrapState,
71
84
  extractPlainText,
72
85
  fetchResourceBytes,
73
86
  findNodesByType,
@@ -94,11 +107,14 @@ export {
94
107
  sanitizeUrl,
95
108
  serializePandocAttributes,
96
109
  setFrontmatterValues,
110
+ splitFrontmatterBlock,
97
111
  splitKeyValueToken,
98
112
  stringifyHtmlNodes,
99
113
  stringifyMarkdown,
100
114
  toMdast,
101
115
  tokenizeAttrTokens,
102
116
  unquoteAttrValue,
103
- walkMarkdownTree
117
+ unwrapMarkdownSource,
118
+ walkMarkdownTree,
119
+ wrapMarkdownSource
104
120
  };
@@ -1,4 +1,4 @@
1
- import { B as Block, au as PageSectionKind, as as PageEmphasis, b4 as ThemeColorScheme, aq as PageBackground, b2 as Theme, br as ViewportConfig, q as CustomTemplateDefinition, aS as StartBlockConfig, G as Doc, b5 as ThemePageStyle } from './Doc-BrgZC7SE.js';
1
+ import { j as Block, aE as PageSectionKind, aC as PageEmphasis, bi as ThemeColorScheme, aA as PageBackground, bg as Theme, bK as ViewportConfig, v as CustomTemplateDefinition, b4 as StartBlockConfig, N as Doc, bj as ThemePageStyle } from './Doc-CSW6K2UF.js';
2
2
  import { M as MarkdownBlockNode } from './types-CUNc9biN.js';
3
3
 
4
4
  /**
@@ -27,7 +27,7 @@ interface PageRichText {
27
27
  markdown?: MarkdownBlockNode[];
28
28
  }
29
29
  /** Which spatial pipeline a canvas-embed section renders through. */
30
- type PageSpatialKind = 'diagram' | 'tree' | 'timeline' | 'map' | 'drawing' | 'layout' | 'custom' | 'authored';
30
+ type PageSpatialKind = 'diagram' | 'tree' | 'timeline' | 'map' | 'chart' | 'drawing' | 'layout' | 'custom' | 'authored';
31
31
  /** Media content for a section slot. */
32
32
  type PageMedia = {
33
33
  type: 'image';
@@ -1,4 +1,4 @@
1
- import { G as Doc, e as AudioBookmark } from '../Doc-BrgZC7SE.js';
1
+ import { N as Doc, f as AudioBookmark } from '../Doc-CSW6K2UF.js';
2
2
  import '../types-CUNc9biN.js';
3
3
 
4
4
  /**
@@ -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
  buildNarrationScript,
29
29
  buildNarrationTimingJson,
@@ -33,13 +33,13 @@ import {
33
33
  wordIndexAtChar,
34
34
  wordIndexAtTime,
35
35
  wordPosAtExpectedSyllables
36
- } from "../chunk-GQNH7PLN.js";
36
+ } from "../chunk-2HY2ZA7U.js";
37
37
  import "../chunk-PUS54YU6.js";
38
- import "../chunk-QWCFK5FN.js";
39
- import "../chunk-C33GTPUZ.js";
38
+ import "../chunk-CUYHFOFL.js";
39
+ import "../chunk-SBAX4ZPO.js";
40
40
  import "../chunk-BAOV476U.js";
41
- import "../chunk-2VCNTDNZ.js";
42
- import "../chunk-BCCXTMN5.js";
41
+ import "../chunk-D6YTLQCL.js";
42
+ import "../chunk-O7JILDEF.js";
43
43
  import "../chunk-4VOD55SX.js";
44
44
  import "../chunk-XOFT65EX.js";
45
45
  import "../chunk-67L6WRJN.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  profileBlockContents,
3
3
  recommendTemplatesForBlock
4
- } from "../chunk-QWCFK5FN.js";
5
- import "../chunk-BCCXTMN5.js";
4
+ } from "../chunk-CUYHFOFL.js";
5
+ import "../chunk-O7JILDEF.js";
6
6
  export {
7
7
  profileBlockContents,
8
8
  recommendTemplatesForBlock
@@ -1,10 +1,37 @@
1
1
  export { B as BoundingBox, C as Coordinates } from '../Types-sh2VRxfo.js';
2
- import { b2 as Theme, b5 as ThemePageStyle, b4 as ThemeColorScheme, w as DeepPartial, b8 as ThemeSeedColors, b3 as ThemeColorPalette, O as FontFamilyKind, N as FontFamily } from '../Doc-BrgZC7SE.js';
3
- 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, 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, 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, b6 as ThemeRegistry, b7 as ThemeSchemaVersion, 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
+ import { bg as Theme, bj as ThemePageStyle, bi as ThemeColorScheme, H as DeepPartial, bm as ThemeSeedColors, bh as ThemeColorPalette, W as FontFamilyKind, V as FontFamily } from '../Doc-CSW6K2UF.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 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, 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, 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, bk as ThemeRegistry, bl as ThemeSchemaVersion, 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';
4
4
  export { a as DEFAULT_TRANSITION_DURATION_SECONDS, _ as TRANSITION_DIRECTIONS, $ as TRANSITION_TYPES, a0 as Transition, a1 as TransitionDirection, a2 as TransitionType, a5 as isTransitionType, a6 as normalizeTransitionDirection, a7 as normalizeTransitionType, a8 as resolveBlockTransition, aa as resolveTransitionDuration } from '../types-CUNc9biN.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';
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';
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
+
9
+ /**
10
+ * Theme-driven picture-in-picture framing.
11
+ *
12
+ * {@link pipStyleVars} turns a {@link Theme} into the CSS custom properties the
13
+ * player's PiP stylesheet consumes, so scheduled presenter video is framed to
14
+ * match the theme (border, shadow, corner radius). An explicit
15
+ * `theme.style.pip` wins; anything it omits is derived from the palette and the
16
+ * theme's card border-radius, so every theme — including ones with no `pip`
17
+ * block — gets a fitting PiP. Pure: no DOM, deterministic.
18
+ */
19
+
20
+ /** CSS custom properties that style the picture-in-picture frame. */
21
+ interface PipStyleVars {
22
+ /** `border-radius` of the frame. */
23
+ '--squisq-pip-radius': string;
24
+ /** Full `border` shorthand, or `'none'`. */
25
+ '--squisq-pip-border': string;
26
+ /** Full `box-shadow`, or `'none'`. */
27
+ '--squisq-pip-shadow': string;
28
+ }
29
+ /**
30
+ * Derive the CSS custom properties that frame scheduled picture-in-picture
31
+ * video for `theme`. An explicit `theme.style.pip` wins field-by-field; the
32
+ * rest is derived from the palette and border-radius.
33
+ */
34
+ declare function pipStyleVars(theme: Theme): PipStyleVars;
8
35
 
9
36
  /**
10
37
  * Page Style Defaults
@@ -264,4 +291,4 @@ type MermaidThemeVariables = Record<string, string | number | boolean>;
264
291
  /** Build complete, contrast-aware Mermaid theme variables from a Squisq theme. */
265
292
  declare function buildMermaidThemeVariables(theme: Theme): MermaidThemeVariables;
266
293
 
267
- export { AVAILABLE_FONT_STACKS, type CompileOptions, type ContrastPreset, DeepPartial, FONT_FALLBACKS, FontFamily, FontFamilyKind, type FontStack, type MermaidThemeVariables, STARTER_THEME, Theme, ThemeColorPalette, ThemeColorScheme, ThemePageStyle, ThemeSeedColors, type ValidationError, type 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 };
294
+ export { AVAILABLE_FONT_STACKS, type CompileOptions, type ContrastPreset, DeepPartial, FONT_FALLBACKS, FontFamily, FontFamilyKind, type FontStack, type MermaidThemeVariables, type PipStyleVars, STARTER_THEME, Theme, ThemeColorPalette, ThemeColorScheme, ThemePageStyle, ThemeSeedColors, type ValidationError, type 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 };
@@ -9,13 +9,14 @@ import {
9
9
  getCaptionAtTime,
10
10
  getSegmentAtTime,
11
11
  parseTheme,
12
+ pipStyleVars,
12
13
  serializeTheme
13
- } from "../chunk-SPTY4C6F.js";
14
+ } from "../chunk-GODLNXO4.js";
14
15
  import {
15
16
  defaultPageStyle,
16
17
  getDocPlaybackDuration,
17
18
  resolveMediaSchedule
18
- } from "../chunk-2ZWIXGAC.js";
19
+ } from "../chunk-GAZKTT4R.js";
19
20
  import {
20
21
  AVAILABLE_FONT_STACKS,
21
22
  DARK_SURFACE,
@@ -58,6 +59,7 @@ import {
58
59
  getThemeSummaries,
59
60
  guessFontFallback,
60
61
  hexHueDegrees,
62
+ isCustomTemplateDefinition,
61
63
  isHex,
62
64
  matchFontFamily,
63
65
  oklchDarken,
@@ -67,9 +69,10 @@ import {
67
69
  relativeLuminance,
68
70
  resolveFontFamily,
69
71
  resolveTheme,
72
+ validateCustomTemplateDefinition,
70
73
  validateTheme,
71
74
  withAlpha
72
- } from "../chunk-C33GTPUZ.js";
75
+ } from "../chunk-SBAX4ZPO.js";
73
76
  import {
74
77
  DEFAULT_DOC_FONT,
75
78
  DEFAULT_TITLE_FONT,
@@ -164,6 +167,7 @@ export {
164
167
  getViewportOrientation,
165
168
  guessFontFallback,
166
169
  hexHueDegrees,
170
+ isCustomTemplateDefinition,
167
171
  isHex,
168
172
  isPersistentLayerTemplate,
169
173
  isTemplateBlock,
@@ -177,6 +181,7 @@ export {
177
181
  oklchSetChroma,
178
182
  parseTheme,
179
183
  pickContrastingText,
184
+ pipStyleVars,
180
185
  relativeLuminance,
181
186
  resolveBlockTransition,
182
187
  resolveFontFamily,
@@ -185,6 +190,7 @@ export {
185
190
  resolveTransitionDuration,
186
191
  scaledFontSize2 as scaledFontSize,
187
192
  serializeTheme,
193
+ validateCustomTemplateDefinition,
188
194
  validateTheme,
189
195
  withAlpha
190
196
  };
@@ -65,9 +65,8 @@ declare class LocalStorageAdapter implements StorageAdapter {
65
65
  *
66
66
  * Unlike LocalStorageAdapter, this adapter can store binary data
67
67
  * (ArrayBuffer, Blob, Uint8Array) natively without JSON serialization.
68
- *
69
- * Ported from qualla-internal/shared/services/StorageAdapters.ts with
70
- * configurable store name and key prefix.
68
+ * Store name and key prefix are configurable so independent consumers can
69
+ * share an origin without colliding.
71
70
  */
72
71
 
73
72
  interface LocalForageAdapterOptions {
@@ -1,4 +1,4 @@
1
- import { b2 as Theme, b6 as ThemeRegistry } from './Doc-BrgZC7SE.js';
1
+ import { bg as Theme, bk as ThemeRegistry } from './Doc-CSW6K2UF.js';
2
2
 
3
3
  /**
4
4
  * Built-in Theme Library
@@ -5,8 +5,7 @@
5
5
  * - Numbers spoken as multiple words (e.g., "1910" → "nineteen ten")
6
6
  * - Pauses at commas
7
7
  * - Year pronunciation conventions (1000–2099)
8
- *
9
- * Ported from qualla-internal's AudioTiming.ts (pure functions, no Node.js deps).
8
+ * Pure functions with no Node.js dependencies.
10
9
  */
11
10
  /** Default speaking rate in words per second (~150 WPM). */
12
11
  declare const DEFAULT_WORDS_PER_SECOND = 2.5;
@@ -1,5 +1,5 @@
1
- import { m as ColorScheme, G as Doc, B as Block } from '../Doc-BrgZC7SE.js';
2
- import { i as PageTransformHints } from '../materializePageSection-CrZWYnXM.js';
1
+ import { q as ColorScheme, N as Doc, j as Block } from '../Doc-CSW6K2UF.js';
2
+ import { i as PageTransformHints } from '../materializePageSection-_rrDuOYU.js';
3
3
  import { d as ExtractionType, E as ExtractedElement, b as ExtractionOptions } from '../contentExtractor-BNfVJV2U.js';
4
4
  import '../types-CUNc9biN.js';
5
5
 
@@ -7,10 +7,10 @@ import {
7
7
  getTransformStyleIds,
8
8
  getTransformStyleSummaries,
9
9
  resolveTransformStyle
10
- } from "../chunk-RS5AP3J4.js";
10
+ } from "../chunk-AE3IUKMM.js";
11
11
  import "../chunk-NKNMGIIN.js";
12
12
  import "../chunk-BAOV476U.js";
13
- import "../chunk-BCCXTMN5.js";
13
+ import "../chunk-O7JILDEF.js";
14
14
  import "../chunk-67L6WRJN.js";
15
15
  import "../chunk-XRW6P7IF.js";
16
16
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/squisq",
3
- "version": "2.3.3",
3
+ "version": "2.4.1",
4
4
  "description": "Headless utilities for doc/block rendering, spatial math, Markdown, and storage",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "type": "module",
26
26
  "engines": {
27
- "node": ">=22.14.0"
27
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
28
28
  },
29
29
  "main": "./dist/index.js",
30
30
  "module": "./dist/index.js",