@bendyline/squisq 2.4.0 → 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.
- package/dist/{Doc-DLpyOAXJ.d.ts → Doc-CSW6K2UF.d.ts} +136 -8
- package/dist/{ImageEditDoc-Cu30xb9b.d.ts → ImageEditDoc-x9yoTb4l.d.ts} +1 -1
- package/dist/{chunk-F2IEPSMA.js → chunk-2HY2ZA7U.js} +161 -80
- package/dist/{chunk-D4LPP3P5.js → chunk-7TJJA2RI.js} +3 -1
- package/dist/{chunk-KPBZZVGY.js → chunk-AQF5ZYDI.js} +50 -14
- package/dist/{chunk-2VCNTDNZ.js → chunk-D6YTLQCL.js} +71 -0
- package/dist/{chunk-32R2RZAO.js → chunk-DAMIRKTO.js} +1 -1
- package/dist/{chunk-ZHLNKB2I.js → chunk-EMXYZLRH.js} +1 -1
- package/dist/{chunk-2S74DPJH.js → chunk-GAZKTT4R.js} +24 -4
- package/dist/{chunk-REDUXXDJ.js → chunk-GODLNXO4.js} +45 -3
- package/dist/{chunk-ZYO3DBTA.js → chunk-JUAC2QWP.js} +1 -1
- package/dist/{chunk-C33GTPUZ.js → chunk-SBAX4ZPO.js} +438 -0
- package/dist/doc/index.d.ts +15 -5
- package/dist/doc/index.js +11 -10
- package/dist/generate/index.d.ts +1 -1
- package/dist/imageEdit/index.d.ts +3 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.js +20 -14
- package/dist/jsonForm/index.d.ts +1 -1
- package/dist/jsonForm/index.js +4 -4
- package/dist/markdown/index.js +3 -3
- package/dist/{materializePageSection-CgNs5Qmw.d.ts → materializePageSection-_rrDuOYU.d.ts} +1 -1
- package/dist/narration/index.d.ts +1 -1
- package/dist/narration/index.js +4 -4
- package/dist/schemas/index.d.ts +32 -5
- package/dist/schemas/index.js +9 -3
- package/dist/storage/index.d.ts +2 -3
- package/dist/{themeLibrary-RWsNtlOu.d.ts → themeLibrary-DlJzXsin.d.ts} +1 -1
- package/dist/timing/index.d.ts +1 -2
- package/dist/transform/index.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
reanchorSession,
|
|
24
24
|
traceWordPosAt,
|
|
25
25
|
vadStep
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EMXYZLRH.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_TRANSFORM_STYLE_ID,
|
|
29
29
|
analyzeBlocks,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
resolveRef,
|
|
70
70
|
setByPointer,
|
|
71
71
|
toPointer
|
|
72
|
-
} from "./chunk-
|
|
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-
|
|
125
|
+
} from "./chunk-GODLNXO4.js";
|
|
125
126
|
import {
|
|
126
127
|
calculateBearing,
|
|
127
128
|
decodeGeohash,
|
|
@@ -162,20 +163,18 @@ import {
|
|
|
162
163
|
sectionExtractors,
|
|
163
164
|
validateMarkdownDoc,
|
|
164
165
|
validateMarkdownSource
|
|
165
|
-
} from "./chunk-
|
|
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,
|
|
175
175
|
DIAGRAM_LABEL_MIN_FONT_SIZE,
|
|
176
176
|
DIAGRAM_LABEL_VERTICAL_PADDING,
|
|
177
177
|
SHAPE_NAMES,
|
|
178
|
-
TABLE_FED_TEMPLATES,
|
|
179
178
|
TEMPLATE_AUTHORING_METADATA,
|
|
180
179
|
TEMPLATE_INPUT_DESCRIPTORS,
|
|
181
180
|
TEMPLATE_METADATA,
|
|
@@ -242,7 +241,6 @@ import {
|
|
|
242
241
|
getThemeFont,
|
|
243
242
|
hasTemplate,
|
|
244
243
|
imageWithCaption,
|
|
245
|
-
isContainerTemplate,
|
|
246
244
|
isDataFence,
|
|
247
245
|
isShapeName,
|
|
248
246
|
layoutBlock,
|
|
@@ -264,7 +262,6 @@ import {
|
|
|
264
262
|
replaceDataFence,
|
|
265
263
|
resolveColorScheme,
|
|
266
264
|
resolvePersistentLayers,
|
|
267
|
-
resolveTemplateName,
|
|
268
265
|
rightFeature,
|
|
269
266
|
scaleAnimationDuration,
|
|
270
267
|
sectionHeader,
|
|
@@ -292,7 +289,7 @@ import {
|
|
|
292
289
|
wrapWithPersistentLayers,
|
|
293
290
|
writeCustomTemplatesToFrontmatter,
|
|
294
291
|
writeCustomThemesToFrontmatter
|
|
295
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-2HY2ZA7U.js";
|
|
296
293
|
import {
|
|
297
294
|
PATH_SHAPE_KINDS,
|
|
298
295
|
anchorPoint,
|
|
@@ -335,7 +332,7 @@ import {
|
|
|
335
332
|
defaultPageStyle,
|
|
336
333
|
getDocPlaybackDuration,
|
|
337
334
|
resolveMediaSchedule
|
|
338
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-GAZKTT4R.js";
|
|
339
336
|
import {
|
|
340
337
|
AVAILABLE_FONT_STACKS,
|
|
341
338
|
DARK_SURFACE,
|
|
@@ -378,6 +375,7 @@ import {
|
|
|
378
375
|
getThemeSummaries,
|
|
379
376
|
guessFontFallback,
|
|
380
377
|
hexHueDegrees,
|
|
378
|
+
isCustomTemplateDefinition,
|
|
381
379
|
isHex,
|
|
382
380
|
matchFontFamily,
|
|
383
381
|
oklchDarken,
|
|
@@ -387,9 +385,10 @@ import {
|
|
|
387
385
|
relativeLuminance,
|
|
388
386
|
resolveFontFamily,
|
|
389
387
|
resolveTheme,
|
|
388
|
+
validateCustomTemplateDefinition,
|
|
390
389
|
validateTheme,
|
|
391
390
|
withAlpha
|
|
392
|
-
} from "./chunk-
|
|
391
|
+
} from "./chunk-SBAX4ZPO.js";
|
|
393
392
|
import {
|
|
394
393
|
DEFAULT_DOC_FONT,
|
|
395
394
|
DEFAULT_TITLE_FONT,
|
|
@@ -433,7 +432,7 @@ import {
|
|
|
433
432
|
stringifyMarkdown,
|
|
434
433
|
unwrapMarkdownSource,
|
|
435
434
|
wrapMarkdownSource
|
|
436
|
-
} from "./chunk-
|
|
435
|
+
} from "./chunk-JUAC2QWP.js";
|
|
437
436
|
import {
|
|
438
437
|
DEFAULT_MARKDOWN_SAFETY_LIMITS,
|
|
439
438
|
MarkdownLimitError,
|
|
@@ -445,21 +444,25 @@ import {
|
|
|
445
444
|
resolveMarkdownSafetyLimits,
|
|
446
445
|
serializePandocAttributes,
|
|
447
446
|
toMdast
|
|
448
|
-
} from "./chunk-
|
|
447
|
+
} from "./chunk-7TJJA2RI.js";
|
|
449
448
|
import {
|
|
450
449
|
BLOCK_META_KEY_DESCRIPTORS,
|
|
450
|
+
CONTAINER_TEMPLATES,
|
|
451
451
|
KNOWN_BLOCK_META_KEYS,
|
|
452
|
+
TABLE_FED_TEMPLATES,
|
|
453
|
+
isContainerTemplate,
|
|
452
454
|
matchTrailingPandocAttr,
|
|
453
455
|
matchTrailingTemplateAnnotation,
|
|
454
456
|
needsQuoting,
|
|
455
457
|
parseTimeSeconds,
|
|
456
458
|
quoteAttrValue,
|
|
459
|
+
resolveTemplateName,
|
|
457
460
|
sanitizeHtmlNodes,
|
|
458
461
|
sanitizeUrl,
|
|
459
462
|
splitKeyValueToken,
|
|
460
463
|
tokenizeAttrTokens,
|
|
461
464
|
unquoteAttrValue
|
|
462
|
-
} from "./chunk-
|
|
465
|
+
} from "./chunk-D6YTLQCL.js";
|
|
463
466
|
import {
|
|
464
467
|
ICONS,
|
|
465
468
|
canonicalIconToken,
|
|
@@ -793,6 +796,7 @@ export {
|
|
|
793
796
|
isAsciiDiagramFence,
|
|
794
797
|
isAsciiTimelineFence,
|
|
795
798
|
isContainerTemplate,
|
|
799
|
+
isCustomTemplateDefinition,
|
|
796
800
|
isDataFence,
|
|
797
801
|
isEligibleAsciiFenceLang,
|
|
798
802
|
isEligibleAsciiTimelineFenceLang,
|
|
@@ -861,6 +865,7 @@ export {
|
|
|
861
865
|
parseYamlSubset,
|
|
862
866
|
photoGrid,
|
|
863
867
|
pickContrastingText,
|
|
868
|
+
pipStyleVars,
|
|
864
869
|
plainTextFromInlineHtml,
|
|
865
870
|
pointerSegments,
|
|
866
871
|
primaryType,
|
|
@@ -960,6 +965,7 @@ export {
|
|
|
960
965
|
unwrapMarkdownSource,
|
|
961
966
|
updateLayer,
|
|
962
967
|
vadStep,
|
|
968
|
+
validateCustomTemplateDefinition,
|
|
963
969
|
validateMarkdownDoc,
|
|
964
970
|
validateMarkdownSource,
|
|
965
971
|
validateTheme,
|
package/dist/jsonForm/index.d.ts
CHANGED
package/dist/jsonForm/index.js
CHANGED
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
resolveRef,
|
|
16
16
|
setByPointer,
|
|
17
17
|
toPointer
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
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 {
|
package/dist/markdown/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
stringifyMarkdown,
|
|
15
15
|
unwrapMarkdownSource,
|
|
16
16
|
wrapMarkdownSource
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-JUAC2QWP.js";
|
|
18
18
|
import {
|
|
19
19
|
DEFAULT_MARKDOWN_SAFETY_LIMITS,
|
|
20
20
|
MarkdownLimitError,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
resolveMarkdownSafetyLimits,
|
|
27
27
|
serializePandocAttributes,
|
|
28
28
|
toMdast
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-7TJJA2RI.js";
|
|
30
30
|
import {
|
|
31
31
|
BLOCK_META_KEY_DESCRIPTORS,
|
|
32
32
|
KNOWN_BLOCK_META_KEYS,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
splitKeyValueToken,
|
|
41
41
|
tokenizeAttrTokens,
|
|
42
42
|
unquoteAttrValue
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-D6YTLQCL.js";
|
|
44
44
|
import "../chunk-7N4G32LG.js";
|
|
45
45
|
import {
|
|
46
46
|
countNodes,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as Block,
|
|
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
|
/**
|
package/dist/narration/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
reanchorSession,
|
|
24
24
|
traceWordPosAt,
|
|
25
25
|
vadStep
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-EMXYZLRH.js";
|
|
27
27
|
import {
|
|
28
28
|
buildNarrationScript,
|
|
29
29
|
buildNarrationTimingJson,
|
|
@@ -33,12 +33,12 @@ import {
|
|
|
33
33
|
wordIndexAtChar,
|
|
34
34
|
wordIndexAtTime,
|
|
35
35
|
wordPosAtExpectedSyllables
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-2HY2ZA7U.js";
|
|
37
37
|
import "../chunk-PUS54YU6.js";
|
|
38
38
|
import "../chunk-CUYHFOFL.js";
|
|
39
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-SBAX4ZPO.js";
|
|
40
40
|
import "../chunk-BAOV476U.js";
|
|
41
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-D6YTLQCL.js";
|
|
42
42
|
import "../chunk-O7JILDEF.js";
|
|
43
43
|
import "../chunk-4VOD55SX.js";
|
|
44
44
|
import "../chunk-XOFT65EX.js";
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,10 +1,37 @@
|
|
|
1
1
|
export { B as BoundingBox, C as Coordinates } from '../Types-sh2VRxfo.js';
|
|
2
|
-
import {
|
|
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, D as DARK_SURFACE,
|
|
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-
|
|
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-
|
|
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 };
|
package/dist/schemas/index.js
CHANGED
|
@@ -9,13 +9,14 @@ import {
|
|
|
9
9
|
getCaptionAtTime,
|
|
10
10
|
getSegmentAtTime,
|
|
11
11
|
parseTheme,
|
|
12
|
+
pipStyleVars,
|
|
12
13
|
serializeTheme
|
|
13
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-GODLNXO4.js";
|
|
14
15
|
import {
|
|
15
16
|
defaultPageStyle,
|
|
16
17
|
getDocPlaybackDuration,
|
|
17
18
|
resolveMediaSchedule
|
|
18
|
-
} from "../chunk-
|
|
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-
|
|
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
|
};
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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 {
|
package/dist/timing/index.d.ts
CHANGED
|
@@ -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 { q as ColorScheme,
|
|
2
|
-
import { i as PageTransformHints } from '../materializePageSection-
|
|
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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/squisq",
|
|
3
|
-
"version": "2.4.
|
|
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": "
|
|
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",
|