@bendyline/squisq 2.13.14 → 2.13.16
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-BhvotZx_.d.ts → Doc-DLfTam0R.d.ts} +82 -6
- package/dist/{ImageEditDoc-D8hYio6b.d.ts → ImageEditDoc-DdSHb6sj.d.ts} +1 -1
- package/dist/{chunk-YQQWE4HG.js → chunk-33CAD575.js} +200 -262
- package/dist/{chunk-L7QZORLB.js → chunk-37RLFDIT.js} +11 -4
- package/dist/chunk-4R3YZTPX.js +42 -0
- package/dist/{chunk-DBVCSVNV.js → chunk-A4ZFYGU6.js} +13 -38
- package/dist/{chunk-CTT4XAGO.js → chunk-BG2OYBGC.js} +2534 -737
- package/dist/{chunk-2SRF5III.js → chunk-BVL3F64S.js} +1 -1
- package/dist/chunk-C7DKMO4H.js +88 -0
- package/dist/{chunk-SGNWO7OF.js → chunk-MA7XUCSQ.js} +517 -30
- package/dist/{chunk-JSGIWW35.js → chunk-MTIR5PWF.js} +1 -1
- package/dist/{chunk-C4SB3NN4.js → chunk-NBDF6SQ5.js} +22 -2
- package/dist/chunk-TOPEP5B7.js +515 -0
- package/dist/{chunk-OIQ2GO2O.js → chunk-TXN23SG2.js} +1 -1
- package/dist/{chunk-7MS26OXD.js → chunk-UDPPWYYM.js} +6 -0
- package/dist/{chunk-J2G6EOEJ.js → chunk-XY5Z23C4.js} +75 -16
- package/dist/{chunk-5DFFVW75.js → chunk-Z73DG6IL.js} +1 -1
- package/dist/doc/index.d.ts +412 -26
- package/dist/doc/index.js +66 -11
- package/dist/fence/index.d.ts +1 -1
- package/dist/generate/index.d.ts +1 -1
- package/dist/imageEdit/index.d.ts +3 -3
- package/dist/index.d.ts +9 -9
- package/dist/index.js +147 -29
- package/dist/jsonForm/index.d.ts +1 -1
- package/dist/jsonForm/index.js +5 -4
- package/dist/markdown/index.js +3 -3
- package/dist/{materializePageSection-CWxou4mX.d.ts → materializePageSection-HIoRYiZu.d.ts} +121 -8
- package/dist/mediaEdit/index.d.ts +154 -3
- package/dist/mediaEdit/index.js +241 -2
- package/dist/narration/index.d.ts +1 -1
- package/dist/narration/index.js +7 -5
- package/dist/recommend/index.d.ts +129 -2
- package/dist/recommend/index.js +13 -4
- package/dist/schemas/index.d.ts +26 -7
- package/dist/schemas/index.js +14 -8
- package/dist/{themeLibrary-BIYE6aLw.d.ts → themeLibrary-B2K-aAOy.d.ts} +1 -1
- package/dist/timing/index.d.ts +66 -2
- package/dist/timing/index.js +12 -0
- package/dist/transform/index.d.ts +173 -16
- package/dist/transform/index.js +58 -17
- package/package.json +1 -1
- package/dist/chunk-FCB6JLWB.js +0 -125
|
@@ -152,6 +152,10 @@ declare function mediaEditValuesFromAttributes(kind: 'audio' | 'video', attribut
|
|
|
152
152
|
* re-render (the render manifest records them instead). 12 hex digits.
|
|
153
153
|
*/
|
|
154
154
|
declare function mediaRenderKey(src: string, fx: MediaFxChain): string;
|
|
155
|
+
/** The known ops of a chain, in chain order with explicit values — what a render applies. */
|
|
156
|
+
declare function canonicalMediaFx(fx: MediaFxChain): string;
|
|
157
|
+
/** 12 hex digits naming a derived file after the text that decides its content. */
|
|
158
|
+
declare function mediaRecipeHash(text: string): string;
|
|
155
159
|
|
|
156
160
|
/**
|
|
157
161
|
* Media-clip timing model.
|
|
@@ -1082,8 +1086,9 @@ interface ListBlockInput extends BaseTemplateBlock {
|
|
|
1082
1086
|
accentImage?: AccentImage;
|
|
1083
1087
|
}
|
|
1084
1088
|
/**
|
|
1085
|
-
* Shared shape of the concept blocks (`cards`, `process`, `cycle`
|
|
1086
|
-
*
|
|
1089
|
+
* Shared shape of the concept blocks (`cards`, `process`, `cycle`, `layers`,
|
|
1090
|
+
* `stats`, `pyramid`, `funnel`, `hub`, `venn`, `matrix`): a headline over
|
|
1091
|
+
* 2–6 related ideas, each `Label: detail` or plain text.
|
|
1087
1092
|
*/
|
|
1088
1093
|
interface ConceptBlockBase extends BaseTemplateBlock {
|
|
1089
1094
|
/** The ideas, in order; `Label: detail` sets the label bold above its detail. */
|
|
@@ -1111,6 +1116,47 @@ interface CycleBlockInput extends ConceptBlockBase {
|
|
|
1111
1116
|
interface LayersBlockInput extends ConceptBlockBase {
|
|
1112
1117
|
template: 'layers';
|
|
1113
1118
|
}
|
|
1119
|
+
/**
|
|
1120
|
+
* Key figures side by side, each `Figure: what it measures` ("57 million:
|
|
1121
|
+
* deaths prevented"); the figures count up where the theme's motion does.
|
|
1122
|
+
*/
|
|
1123
|
+
interface StatsBlockInput extends ConceptBlockBase {
|
|
1124
|
+
template: 'stats';
|
|
1125
|
+
}
|
|
1126
|
+
/** A hierarchy as a pyramid of tiers: the apex first, the base last. */
|
|
1127
|
+
interface PyramidBlockInput extends ConceptBlockBase {
|
|
1128
|
+
template: 'pyramid';
|
|
1129
|
+
}
|
|
1130
|
+
/** Stages that narrow as a funnel: the widest stage first, the outcome last. */
|
|
1131
|
+
interface FunnelBlockInput extends ConceptBlockBase {
|
|
1132
|
+
template: 'funnel';
|
|
1133
|
+
}
|
|
1134
|
+
/** Ideas around the one thing they share: a hub joined to each idea by a spoke. */
|
|
1135
|
+
interface HubBlockInput extends ConceptBlockBase {
|
|
1136
|
+
template: 'hub';
|
|
1137
|
+
/** The words inside the hub (1–3); without them the hub is a plain disc. */
|
|
1138
|
+
center?: string;
|
|
1139
|
+
}
|
|
1140
|
+
/**
|
|
1141
|
+
* Two sets and what they share, as overlapping circles. The overlap comes
|
|
1142
|
+
* from `overlap` or from an item labelled `Both:` / `Shared:`.
|
|
1143
|
+
*/
|
|
1144
|
+
interface VennBlockInput extends ConceptBlockBase {
|
|
1145
|
+
template: 'venn';
|
|
1146
|
+
/** What the two sets have in common, written in the overlap. */
|
|
1147
|
+
overlap?: string;
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* Four ideas placed on two axes as a 2×2 matrix, in reading order: top left,
|
|
1151
|
+
* top right, bottom left, bottom right.
|
|
1152
|
+
*/
|
|
1153
|
+
interface MatrixBlockInput extends ConceptBlockBase {
|
|
1154
|
+
template: 'matrix';
|
|
1155
|
+
/** What grows from left to right (for example "Effort"). */
|
|
1156
|
+
xAxis?: string;
|
|
1157
|
+
/** What grows from bottom to top (for example "Impact"). */
|
|
1158
|
+
yAxis?: string;
|
|
1159
|
+
}
|
|
1114
1160
|
/**
|
|
1115
1161
|
* Tree block — renders a hierarchical filesystem-style treeview from an
|
|
1116
1162
|
* ASCII tree fence (file trees, dependency trees, outlines). The nested
|
|
@@ -1342,6 +1388,11 @@ interface DiagramTemplateNode {
|
|
|
1342
1388
|
/** Id of the node visually containing this one; containers draw behind their children. */
|
|
1343
1389
|
container?: string;
|
|
1344
1390
|
}
|
|
1391
|
+
/** A node as an author may write it: its position is optional (see `DiagramBlockInput.nodes`). */
|
|
1392
|
+
type DiagramTemplateNodeInput = Omit<DiagramTemplateNode, 'x' | 'y'> & {
|
|
1393
|
+
x?: number;
|
|
1394
|
+
y?: number;
|
|
1395
|
+
};
|
|
1345
1396
|
/** A position along one side of a diagram node, normalized from 0 to 1. */
|
|
1346
1397
|
interface DiagramEdgeAnchor {
|
|
1347
1398
|
side: 'top' | 'right' | 'bottom' | 'left';
|
|
@@ -1391,8 +1442,14 @@ interface DiagramBlockInput extends BaseTemplateBlock {
|
|
|
1391
1442
|
endStyle?: MarkerStyle;
|
|
1392
1443
|
/** Edge line style (default: 'solid'). */
|
|
1393
1444
|
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
1394
|
-
/**
|
|
1395
|
-
|
|
1445
|
+
/**
|
|
1446
|
+
* Data-driven node list; used only when the block has no children. Leave
|
|
1447
|
+
* `x` and `y` off every node and the diagram places them itself from the
|
|
1448
|
+
* edges (a layered layout: left to right, or top to bottom in a portrait
|
|
1449
|
+
* frame), so an author states the relationships and never computes
|
|
1450
|
+
* coordinates.
|
|
1451
|
+
*/
|
|
1452
|
+
nodes?: DiagramTemplateNodeInput[];
|
|
1396
1453
|
/** Edges for `nodes`. */
|
|
1397
1454
|
edges?: DiagramTemplateEdge[];
|
|
1398
1455
|
}
|
|
@@ -1522,7 +1579,7 @@ type ChartTemplateInput = BarChartInput | ColumnChartInput | PieChartInput | Don
|
|
|
1522
1579
|
/**
|
|
1523
1580
|
* Union of all template block types.
|
|
1524
1581
|
*/
|
|
1525
|
-
type TemplateBlock = TitleBlockInput | SectionHeaderInput | BigTextInput | TranscriptBlockInput | ContentBlockInput | StatHighlightInput | QuoteBlockInput | FactCardInput | TwoColumnInput | DateEventInput | ImageWithCaptionInput | LeftFeatureInput | RightFeatureInput | TopFeatureInput | BottomFeatureInput | MediaOnlyInput | MapBlockInput | FullBleedQuoteInput | ListBlockInput | CardsBlockInput | ProcessBlockInput | CycleBlockInput | LayersBlockInput | PhotoGridInput | DefinitionCardInput | ComparisonBarInput | PullQuoteInput | VideoWithCaptionInput | VideoPullQuoteInput | DataTableInput | BarChartInput | ColumnChartInput | PieChartInput | DonutChartInput | LineChartInput | AreaChartInput | ScatterChartInput | DiagramBlockInput | TreeBlockInput | TimelineBlockInput | DrawingBlockInput | RawLayersInput;
|
|
1582
|
+
type TemplateBlock = TitleBlockInput | SectionHeaderInput | BigTextInput | TranscriptBlockInput | ContentBlockInput | StatHighlightInput | QuoteBlockInput | FactCardInput | TwoColumnInput | DateEventInput | ImageWithCaptionInput | LeftFeatureInput | RightFeatureInput | TopFeatureInput | BottomFeatureInput | MediaOnlyInput | MapBlockInput | FullBleedQuoteInput | ListBlockInput | CardsBlockInput | ProcessBlockInput | CycleBlockInput | LayersBlockInput | StatsBlockInput | PyramidBlockInput | FunnelBlockInput | HubBlockInput | VennBlockInput | MatrixBlockInput | PhotoGridInput | DefinitionCardInput | ComparisonBarInput | PullQuoteInput | VideoWithCaptionInput | VideoPullQuoteInput | DataTableInput | BarChartInput | ColumnChartInput | PieChartInput | DonutChartInput | LineChartInput | AreaChartInput | ScatterChartInput | DiagramBlockInput | TreeBlockInput | TimelineBlockInput | DrawingBlockInput | RawLayersInput;
|
|
1526
1583
|
/**
|
|
1527
1584
|
* A block can be either a raw Block or a TemplateBlock.
|
|
1528
1585
|
*/
|
|
@@ -2851,7 +2908,14 @@ interface TextParagraphList {
|
|
|
2851
2908
|
level: number;
|
|
2852
2909
|
/** The item's number, for an ordered item. */
|
|
2853
2910
|
number?: number;
|
|
2911
|
+
/**
|
|
2912
|
+
* A task-list item (`- [ ]` / `- [x]`): drawn with an empty or ticked box
|
|
2913
|
+
* as its marker instead of a bullet. Absent for an ordinary item.
|
|
2914
|
+
*/
|
|
2915
|
+
checked?: boolean;
|
|
2854
2916
|
}
|
|
2917
|
+
/** The marker character of a task-list item: a ballot box, ticked when done. */
|
|
2918
|
+
declare function taskMarker(checked: boolean): string;
|
|
2855
2919
|
/**
|
|
2856
2920
|
* Ties together text layers that render one flow of text. A consumer that
|
|
2857
2921
|
* lays text out natively (PPTX) draws the flow as ONE text box over the
|
|
@@ -3052,6 +3116,18 @@ interface VideoLayer extends BaseLayer {
|
|
|
3052
3116
|
clipEnd: number;
|
|
3053
3117
|
/** Total source video duration (for validation) */
|
|
3054
3118
|
sourceDuration?: number;
|
|
3119
|
+
/**
|
|
3120
|
+
* Source ranges skipped as the clip plays (the clip's `cuts` recipe),
|
|
3121
|
+
* inside `clipStart`…`clipEnd`. With cuts, `clipEnd` is far enough into
|
|
3122
|
+
* the source to fill the block once they are skipped.
|
|
3123
|
+
*/
|
|
3124
|
+
cuts?: MediaCut[];
|
|
3125
|
+
/**
|
|
3126
|
+
* The rest of the clip's edit recipe — `fx`, `gain`, `fadeIn`,
|
|
3127
|
+
* `fadeOut`, `crop` — for the renderer to apply. A video laid out in a
|
|
3128
|
+
* slide is not a scheduled clip, so the layer carries its own recipe.
|
|
3129
|
+
*/
|
|
3130
|
+
edits?: MediaEdits;
|
|
3055
3131
|
/**
|
|
3056
3132
|
* Seconds into the owning block before this video begins playing
|
|
3057
3133
|
* (the block-relative `startAt`). Default 0 — plays from block start.
|
|
@@ -3532,4 +3608,4 @@ declare function getBlockAtTime(blocks: Block[], time: number): Block | null;
|
|
|
3532
3608
|
*/
|
|
3533
3609
|
declare function getCaptionAtTime(captions: CaptionTrack | undefined, time: number): CaptionPhrase | null;
|
|
3534
3610
|
|
|
3535
|
-
export {
|
|
3611
|
+
export { FRONTMATTER_MOTION_KEY as $, type AccentImage as A, type BarChartInput as B, type CaptionPhrase as C, type CustomTemplateDefinition as D, type CustomTemplateLayer as E, type CustomTemplateValidationError as F, type CustomTemplateValidationResult as G, type CycleBlockInput as H, DARK_SURFACE as I, DEFAULT_DOC_FONT as J, DEFAULT_TITLE_FONT as K, type DataTableInput as L, type DateEventInput as M, type DeepPartial as N, type DefinitionCardInput as O, type DiagramBlockInput as P, type DiagramEdgeAnchor as Q, type DiagramTemplateEdge as R, type DiagramTemplateNode as S, type DiagramTemplateNodeInput as T, type Doc as U, type DocBlock as V, type DocDiagnostic as W, type DonutChartInput as X, type DrawingBlockInput as Y, FRONTMATTER_CUSTOM_TEMPLATES_KEY as Z, FRONTMATTER_CUSTOM_THEMES_KEY as _, type AccentPosition as a, type PageHeadingTreatment as a$, type FactCardInput as a0, type FontFamily as a1, type FontFamilyKind as a2, type FullBleedQuoteInput as a3, type FunnelBlockInput as a4, type GradientBackgroundConfig as a5, type HubBlockInput as a6, type ImageBackgroundConfig as a7, type ImageLayer as a8, type ImageTreatment as a9, type MotionProfile as aA, type MotionProfileName as aB, type MotionSpec as aC, type MotionState as aD, PAGE_ACCENT_STRATEGIES as aE, PAGE_BACKGROUNDS as aF, PAGE_BACKGROUND_RHYTHMS as aG, PAGE_DESIGN_FAMILIES as aH, PAGE_DIVIDERS as aI, PAGE_EMPHASES as aJ, PAGE_EYEBROWS as aK, PAGE_HEADING_CASES as aL, PAGE_HEADING_SCALES as aM, PAGE_HEADING_UNDERLINES as aN, PAGE_HERO_STYLES as aO, PAGE_IMAGE_FRAMINGS as aP, PAGE_NUMERAL_STYLES as aQ, PAGE_PATTERNS as aR, PAGE_QUOTE_MARKS as aS, PAGE_SECTION_KINDS as aT, PAGE_SECTION_SPACINGS as aU, PAGE_SHADOWS as aV, PAGE_VARIANTS as aW, type PageAccentRotation as aX, type PageBackground as aY, type PageDesignFamily as aZ, type PageEmphasis as a_, type ImageWithCaptionInput as aa, LIGHT_SURFACE as ab, type Layer as ac, type LayerRepeat as ad, type LayersBlockInput as ae, type LayoutHints as af, type LeftFeatureInput as ag, type LineChartInput as ah, type LinearGradient as ai, type ListBlockInput as aj, MOTION_PROFILES as ak, type MapBlockInput as al, type MapLayer as am, type MapMarker as an, type MapTileStyle as ao, type MarkerStyle as ap, type MatrixBlockInput as aq, type MediaClip as ar, type MediaCrop as as, type MediaCut as at, type MediaEdits as au, type MediaOnlyInput as av, type MediaScheduleOptions as aw, type MermaidLayer as ax, type MotionEntrance as ay, type MotionOrigin as az, type AmbientGradientConfig as b, type TitleCaptionConfig as b$, type PageSectionKind as b0, type PageSectionOverride as b1, type PageTokens as b2, type PageVariant as b3, type PathLayer as b4, type PatternBackgroundConfig as b5, type PersistentLayer as b6, type PersistentLayerConfig as b7, type PersistentLayerTemplate as b8, type PersistentLayerTemplateConfig as b9, type SvgLayer as bA, THEME_SCHEMA_VERSION as bB, type TableLayer as bC, type TableLayerStyle as bD, type TemplateBlock as bE, type TemplateContext as bF, type TemplateFunction as bG, type TemplateRegistry as bH, type TextFlow as bI, type TextLayer as bJ, type TextParagraph as bK, type TextParagraphList as bL, type TextStyle as bM, type Theme as bN, type ThemeColorPalette as bO, type ThemeColorScheme as bP, type ThemePageStyle as bQ, type ThemeRegistry as bR, type ThemeSchemaVersion as bS, type ThemeSeedColors as bT, type ThemeStyle as bU, type ThemeTypography as bV, type TimelineBlockInput as bW, type TimelineTemplateEvent as bX, type TimelineTemplateLink as bY, type TimelineTemplateTrack as bZ, type TitleBlockInput as b_, type PersistentLayerTemplateType as ba, type PhotoGridInput as bb, type PieChartInput as bc, type PipStyle as bd, type Position as be, type PresentationSlideMark as bf, type ProcessBlockInput as bg, type ProgressIndicatorConfig as bh, type PromotedBodyAnnotation as bi, type PullQuoteInput as bj, type PyramidBlockInput as bk, type QuoteBlockInput as bl, type RawLayersInput as bm, type RenderStyle as bn, type RightFeatureInput as bo, type ScatterChartInput as bp, type ScheduledClip as bq, type SectionHeaderInput as br, type ShapeFilter as bs, type ShapeLayer as bt, type ShapePattern as bu, type SolidBackgroundConfig as bv, type StartBlockConfig as bw, type StatHighlightInput as bx, type StatsBlockInput as by, type SurfaceScheme as bz, type Animation as c, mediaEditHtmlAttribute as c$, type TopFeatureInput as c0, type TranscriptBlockInput as c1, type TreeBlockInput as c2, type TreeLayer as c3, type TreeLayerItem as c4, type TreeLayerStyle as c5, type TreeTemplateItem as c6, type TwoColumnInput as c7, VIEWPORT_PRESETS as c8, type VennBlockInput as c9, getTwoColumnPositions as cA, getViewport as cB, getViewportOrientation as cC, isCustomTemplateDefinition as cD, isMotionProfileName as cE, isPersistentLayerTemplate as cF, isTemplateBlock as cG, scaledFontSize$1 as cH, readFrontmatterMotion as cI, resolveMediaSchedule as cJ, resolveMotionForDoc as cK, resolveMotionProfile as cL, scaledFontSize as cM, scheduleMediaClip as cN, taskMarker as cO, validateCustomTemplateDefinition as cP, type MediaFxOpId as cQ, type MediaFxChain as cR, MEDIA_EDIT_PARAMS as cS, MEDIA_FX_ORDER as cT, MEDIA_FX_SPECS as cU, type MediaEditParamKey as cV, type MediaEditParamValues as cW, type MediaFxOp as cX, canonicalMediaFx as cY, formatMediaNumber as cZ, hasRenderableFx as c_, type VideoEmbedLayer as ca, type VideoLayer as cb, type VideoPipPosition as cc, type VideoPipShape as cd, type VideoPipSize as ce, type VideoPlacement as cf, type VideoPresentation as cg, type VideoPullQuoteInput as ch, type VideoWithCaptionInput as ci, type ViewportConfig as cj, type ViewportOrientation as ck, type ViewportPreset as cl, type VignetteConfig as cm, applySurface as cn, calculateDuration as co, calculateFontScale as cp, createTemplateContext as cq, createTheme as cr, createThemeRegistry as cs, getAspectRatioString as ct, getBlockAtTime as cu, getCaptionAtTime as cv, getDocPlaybackDuration as cw, getLayoutHints as cx, getSafeTextBounds as cy, getSegmentAtTime as cz, type AnimationType as d, mediaEditValuesFromAttributes as d0, mediaEditValuesFromParams as d1, mediaRecipeHash as d2, mediaRenderKey as d3, normalizeMediaCrop as d4, normalizeMediaCuts as d5, parseMediaCrop as d6, parseMediaCuts as d7, parseMediaEdits as d8, parseMediaFx as d9, serializeMediaCrop as da, serializeMediaCuts as db, serializeMediaEdits as dc, serializeMediaFx as dd, type AreaChartInput as e, type AudioBookmark as f, type AudioSegment as g, type AudioTimingData as h, type AudioTrack as i, type BigTextInput as j, type Block as k, type BlockConnection as l, type BorderStyle as m, type BottomFeatureInput as n, type CaptionTrack as o, type CaptionWord as p, type CardsBlockInput as q, type ChartBaseFields as r, type ChartTemplateInput as s, type ColorScheme as t, type ColumnChartInput as u, type ComparisonBarInput as v, type ContentBlockInput as w, type CornerBrandingConfig as x, type CountUpSpec as y, type CreateTemplateContextOptions as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a8 as ImageLayer, bJ as TextLayer, bt as ShapeLayer, b4 as PathLayer } from './Doc-DLfTam0R.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* ImageEditDoc — JSON document describing a layered, editable image.
|