@bendyline/squisq 2.4.4 → 2.5.0
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-BKKcPjfe.d.ts → Doc-DBadkoP4.d.ts} +30 -2
- package/dist/{ImageEditDoc-CU1cXxRd.d.ts → ImageEditDoc-Cq2a3c30.d.ts} +1 -1
- package/dist/{chunk-YQW6AQBV.js → chunk-6MVWWZHL.js} +1 -1
- package/dist/{chunk-GGTDYLW4.js → chunk-7Z5T3CUI.js} +1 -1
- package/dist/{chunk-OIIIHI3Y.js → chunk-GSJEGMKF.js} +273 -10
- package/dist/{chunk-CYRIVZTR.js → chunk-HXMV7WQB.js} +1 -1
- package/dist/{chunk-O3LLD7HG.js → chunk-NBKAXPSX.js} +1 -0
- package/dist/{chunk-GXUFHFYD.js → chunk-NNL3HHKA.js} +139 -15
- package/dist/doc/index.d.ts +116 -14
- package/dist/doc/index.js +18 -4
- 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 -6
- package/dist/jsonForm/index.d.ts +1 -1
- package/dist/markdown/index.js +3 -3
- package/dist/{materializePageSection-WDJCTJEm.d.ts → materializePageSection-DgOFYge7.d.ts} +1 -1
- package/dist/narration/index.d.ts +1 -1
- package/dist/narration/index.js +3 -3
- package/dist/schemas/index.d.ts +4 -4
- package/dist/{themeLibrary-BMXXLZBU.d.ts → themeLibrary-8BQMY2HV.d.ts} +1 -1
- package/dist/transform/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
templateRegistry,
|
|
24
24
|
writeCustomTemplatesToFrontmatter,
|
|
25
25
|
writeCustomThemesToFrontmatter
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GSJEGMKF.js";
|
|
27
27
|
import {
|
|
28
28
|
ASCII_TREE_VOCAB,
|
|
29
29
|
ASCII_VOCAB,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
} from "./chunk-BAOV476U.js";
|
|
59
59
|
import {
|
|
60
60
|
parseMarkdown
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-6MVWWZHL.js";
|
|
62
62
|
import {
|
|
63
63
|
KNOWN_BLOCK_META_KEYS,
|
|
64
64
|
TEMPLATE_ALIASES,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
isContainerTemplate,
|
|
67
67
|
resolveTemplateName,
|
|
68
68
|
serializeAnnotation
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-NBKAXPSX.js";
|
|
70
70
|
import {
|
|
71
71
|
extractPlainText,
|
|
72
72
|
getChildren,
|
|
@@ -334,6 +334,112 @@ function cssFilterForTreatment(treatment, blur) {
|
|
|
334
334
|
return parts.length > 0 ? parts.join(" ") : void 0;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
+
// src/doc/coverSlideSettings.ts
|
|
338
|
+
var COVER_SLIDE_TEMPLATE_OPTIONS = Object.freeze([
|
|
339
|
+
{
|
|
340
|
+
id: "cover",
|
|
341
|
+
label: "Hero cover",
|
|
342
|
+
description: "The classic Squisq cover with title, subtitle, and optional hero image."
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
id: "title",
|
|
346
|
+
label: "Title",
|
|
347
|
+
description: "A theme-led title card without a full-bleed image."
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
id: "sectionHeader",
|
|
351
|
+
label: "Section header",
|
|
352
|
+
description: "A bold section divider using the hero image when one is available."
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
id: "imageWithCaption",
|
|
356
|
+
label: "Image with title",
|
|
357
|
+
description: "A full-bleed image with the title and subtitle overlaid.",
|
|
358
|
+
requiresHeroImage: true
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
id: "bigText",
|
|
362
|
+
label: "Big text",
|
|
363
|
+
description: "The title in gigantic uppercase type on a clean theme surface \u2014 thumbnail-ready."
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
id: "bigTextImage",
|
|
367
|
+
label: "Big text on image",
|
|
368
|
+
description: "The title in gigantic uppercase type over the hero image, with a contrast bloom behind the text.",
|
|
369
|
+
requiresHeroImage: true
|
|
370
|
+
}
|
|
371
|
+
]);
|
|
372
|
+
var COVER_SLIDE_FRONTMATTER_KEYS = Object.freeze({
|
|
373
|
+
enabled: { canonical: "squisq-cover-slide", legacy: "cover-slide" },
|
|
374
|
+
template: { canonical: "squisq-cover-template", legacy: "cover-template" },
|
|
375
|
+
duration: { canonical: "squisq-cover-duration", legacy: "cover-duration" },
|
|
376
|
+
playback: { canonical: "squisq-cover-playback", legacy: "cover-playback" }
|
|
377
|
+
});
|
|
378
|
+
var DEFAULT_COVER_SLIDE_SETTINGS = Object.freeze({
|
|
379
|
+
enabled: true,
|
|
380
|
+
template: "cover",
|
|
381
|
+
duration: 2,
|
|
382
|
+
playback: "preroll"
|
|
383
|
+
});
|
|
384
|
+
var MAX_COVER_SLIDE_DURATION_SECONDS = 60;
|
|
385
|
+
function readSetting(frontmatter, keys) {
|
|
386
|
+
if (!frontmatter) return void 0;
|
|
387
|
+
return Object.prototype.hasOwnProperty.call(frontmatter, keys.canonical) ? frontmatter[keys.canonical] : frontmatter[keys.legacy];
|
|
388
|
+
}
|
|
389
|
+
function resolveBoolean(value) {
|
|
390
|
+
if (typeof value === "boolean") return value;
|
|
391
|
+
if (typeof value !== "string") return void 0;
|
|
392
|
+
const normalized = value.trim().toLowerCase();
|
|
393
|
+
if (["true", "yes", "on", "show", "visible"].includes(normalized)) return true;
|
|
394
|
+
if (["false", "no", "off", "hide", "hidden"].includes(normalized)) return false;
|
|
395
|
+
return void 0;
|
|
396
|
+
}
|
|
397
|
+
function resolveTemplate(value) {
|
|
398
|
+
if (typeof value !== "string") return void 0;
|
|
399
|
+
const normalized = value.trim().toLowerCase().replace(/[_\s-]+/g, "");
|
|
400
|
+
if (normalized === "cover" || normalized === "hero" || normalized === "managedcover") {
|
|
401
|
+
return "cover";
|
|
402
|
+
}
|
|
403
|
+
if (normalized === "title" || normalized === "titleblock") return "title";
|
|
404
|
+
if (normalized === "sectionheader" || normalized === "section") return "sectionHeader";
|
|
405
|
+
if (normalized === "imagewithcaption" || normalized === "imagetitle" || normalized === "fullbleedimage") {
|
|
406
|
+
return "imageWithCaption";
|
|
407
|
+
}
|
|
408
|
+
if (normalized === "bigtextimage" || normalized === "largetextimage" || normalized === "bigtextonimage") {
|
|
409
|
+
return "bigTextImage";
|
|
410
|
+
}
|
|
411
|
+
if (normalized === "bigtext" || normalized === "largetext") return "bigText";
|
|
412
|
+
return void 0;
|
|
413
|
+
}
|
|
414
|
+
function resolveDuration(value) {
|
|
415
|
+
const duration = typeof value === "number" ? value : typeof value === "string" && value.trim().length > 0 ? Number(value) : Number.NaN;
|
|
416
|
+
if (!Number.isFinite(duration) || duration < 0 || duration > MAX_COVER_SLIDE_DURATION_SECONDS) {
|
|
417
|
+
return void 0;
|
|
418
|
+
}
|
|
419
|
+
return duration;
|
|
420
|
+
}
|
|
421
|
+
function resolvePlayback(value) {
|
|
422
|
+
if (typeof value !== "string") return void 0;
|
|
423
|
+
const normalized = value.trim().toLowerCase().replace(/[_\s]+/g, "-");
|
|
424
|
+
if (["overlay", "over", "concurrent", "play-over"].includes(normalized)) return "overlay";
|
|
425
|
+
if (["preroll", "pre-roll", "delay", "push", "shift"].includes(normalized)) return "preroll";
|
|
426
|
+
return void 0;
|
|
427
|
+
}
|
|
428
|
+
function resolveCoverSlideSettings(frontmatter, overrides = {}) {
|
|
429
|
+
const resolved = {
|
|
430
|
+
enabled: resolveBoolean(readSetting(frontmatter, COVER_SLIDE_FRONTMATTER_KEYS.enabled)) ?? DEFAULT_COVER_SLIDE_SETTINGS.enabled,
|
|
431
|
+
template: resolveTemplate(readSetting(frontmatter, COVER_SLIDE_FRONTMATTER_KEYS.template)) ?? DEFAULT_COVER_SLIDE_SETTINGS.template,
|
|
432
|
+
duration: resolveDuration(readSetting(frontmatter, COVER_SLIDE_FRONTMATTER_KEYS.duration)) ?? DEFAULT_COVER_SLIDE_SETTINGS.duration,
|
|
433
|
+
playback: resolvePlayback(readSetting(frontmatter, COVER_SLIDE_FRONTMATTER_KEYS.playback)) ?? DEFAULT_COVER_SLIDE_SETTINGS.playback
|
|
434
|
+
};
|
|
435
|
+
return {
|
|
436
|
+
enabled: overrides.enabled ?? resolved.enabled,
|
|
437
|
+
template: overrides.template ?? resolved.template,
|
|
438
|
+
duration: resolveDuration(overrides.duration) ?? resolved.duration,
|
|
439
|
+
playback: overrides.playback ?? resolved.playback
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
|
|
337
443
|
// src/doc/docToMarkdown.ts
|
|
338
444
|
var TRANSITION_PARAM_KEYS = ["transition", "transitionDuration", "transitionDirection"];
|
|
339
445
|
var DEFAULT_TEMPLATE = "sectionHeader";
|
|
@@ -681,6 +787,17 @@ var sectionHeader = (input) => {
|
|
|
681
787
|
mediaBackground: !!s.imageSrc
|
|
682
788
|
};
|
|
683
789
|
};
|
|
790
|
+
var bigText = (input) => {
|
|
791
|
+
const b = input;
|
|
792
|
+
const media = b.imageSrc ? { type: "image", src: b.imageSrc, alt: b.imageAlt ?? "" } : void 0;
|
|
793
|
+
return {
|
|
794
|
+
kind: "hero",
|
|
795
|
+
variant: media ? "media" : "title",
|
|
796
|
+
slots: { title: b.title, media },
|
|
797
|
+
emphasis: "lead",
|
|
798
|
+
mediaBackground: !!media
|
|
799
|
+
};
|
|
800
|
+
};
|
|
684
801
|
var content = (input) => {
|
|
685
802
|
const c = input;
|
|
686
803
|
return {
|
|
@@ -965,6 +1082,7 @@ var layout = (input, ctx) => canvasDraft("layout", ctx, input);
|
|
|
965
1082
|
var sectionExtractors = {
|
|
966
1083
|
title,
|
|
967
1084
|
sectionHeader,
|
|
1085
|
+
bigText,
|
|
968
1086
|
content,
|
|
969
1087
|
statHighlight,
|
|
970
1088
|
quote,
|
|
@@ -2025,24 +2143,24 @@ function retimeBlocks(blocks, ctx) {
|
|
|
2025
2143
|
const range = ctx.ranges.get(block.id);
|
|
2026
2144
|
const pinned = getPinnedBlockMeta(block);
|
|
2027
2145
|
const next = { ...block };
|
|
2028
|
-
if (range
|
|
2029
|
-
|
|
2030
|
-
next.duration = Math.max(0, range.endSec - range.startSec);
|
|
2031
|
-
ctx.cursor = Math.max(ctx.cursor, next.startTime + next.duration);
|
|
2032
|
-
} else if (range) {
|
|
2033
|
-
const pinnedStart = pinned.startTime ?? block.startTime;
|
|
2034
|
-
const pinnedDuration = pinned.duration ?? block.duration;
|
|
2035
|
-
const narrStart = ctx.clipStart + range.startSec;
|
|
2146
|
+
if (range) {
|
|
2147
|
+
const narrStart = ctx.clipStart + range.startSec + ctx.shift;
|
|
2036
2148
|
const narrDuration = Math.max(0, range.endSec - range.startSec);
|
|
2037
|
-
|
|
2149
|
+
next.startTime = pinned.startTime ?? narrStart;
|
|
2150
|
+
next.duration = pinned.duration ?? narrDuration;
|
|
2151
|
+
const end = next.startTime + next.duration;
|
|
2152
|
+
ctx.shift = end - (ctx.clipStart + range.endSec);
|
|
2153
|
+
const durationConflict = pinned.duration != null && Math.abs(pinned.duration - narrDuration) > PIN_CONFLICT_TOLERANCE_SEC;
|
|
2154
|
+
const startConflict = pinned.startTime != null && Math.abs(pinned.startTime - narrStart) > PIN_CONFLICT_TOLERANCE_SEC;
|
|
2155
|
+
if (durationConflict || startConflict) {
|
|
2038
2156
|
ctx.diagnostics.push({
|
|
2039
2157
|
severity: "info",
|
|
2040
2158
|
code: "narration-pin-conflict",
|
|
2041
|
-
message: `Block timing is pinned (duration=/startTime=) but the recorded narration says ~${narrDuration.toFixed(1)}s starting at ~${narrStart.toFixed(1)}s. The pin wins
|
|
2159
|
+
message: `Block timing is pinned (duration=/startTime=) but the recorded narration says ~${narrDuration.toFixed(1)}s starting at ~${narrStart.toFixed(1)}s. The pin wins and later blocks follow it, while the recorded voice keeps its own schedule \u2014 playback drifts from the take past this block. Remove the pin to follow the narration.`,
|
|
2042
2160
|
blockId: block.id
|
|
2043
2161
|
});
|
|
2044
2162
|
}
|
|
2045
|
-
ctx.cursor = Math.max(ctx.cursor,
|
|
2163
|
+
ctx.cursor = Math.max(ctx.cursor, end);
|
|
2046
2164
|
} else {
|
|
2047
2165
|
next.startTime = ctx.cursor;
|
|
2048
2166
|
ctx.cursor += next.duration;
|
|
@@ -2068,7 +2186,8 @@ async function applyNarrationTiming(doc, container) {
|
|
|
2068
2186
|
clipStart: clip.startAt,
|
|
2069
2187
|
ranges,
|
|
2070
2188
|
diagnostics: [],
|
|
2071
|
-
cursor: 0
|
|
2189
|
+
cursor: 0,
|
|
2190
|
+
shift: 0
|
|
2072
2191
|
};
|
|
2073
2192
|
const blocks = retimeBlocks(doc.blocks, ctx);
|
|
2074
2193
|
const duration = Math.max(clip.startAt + timing.duration, ctx.cursor);
|
|
@@ -3865,6 +3984,11 @@ export {
|
|
|
3865
3984
|
getTransitionClass,
|
|
3866
3985
|
getAnimationProgress,
|
|
3867
3986
|
cssFilterForTreatment,
|
|
3987
|
+
COVER_SLIDE_TEMPLATE_OPTIONS,
|
|
3988
|
+
COVER_SLIDE_FRONTMATTER_KEYS,
|
|
3989
|
+
DEFAULT_COVER_SLIDE_SETTINGS,
|
|
3990
|
+
MAX_COVER_SLIDE_DURATION_SECONDS,
|
|
3991
|
+
resolveCoverSlideSettings,
|
|
3868
3992
|
docToMarkdown,
|
|
3869
3993
|
resolveThemeForDoc,
|
|
3870
3994
|
isTemplatedPageBlock,
|
package/dist/doc/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { bb as TemplateBlock, bc as TemplateContext, a3 as Layer, w as CustomTemplateDefinition, be as TemplateRegistry, bh as Theme, bL as ViewportConfig, aL as PersistentLayerConfig, P as DocBlock, bM as ViewportOrientation, aK as PersistentLayer, bu as TitleBlockInput, b0 as SectionHeaderInput, j as BigTextInput, u as ContentBlockInput, b6 as StatHighlightInput, aW as QuoteBlockInput, V as FactCardInput, bB as TwoColumnInput, H as DateEventInput, a1 as ImageWithCaptionInput, a6 as LeftFeatureInput, aZ as RightFeatureInput, aa as MapBlockInput, b5 as StartBlockConfig, Y as FullBleedQuoteInput, a9 as ListBlockInput, aP as PhotoGridInput, J as DefinitionCardInput, t as ComparisonBarInput, aV as PullQuoteInput, bK as VideoWithCaptionInput, bJ as VideoPullQuoteInput, G as DataTableInput, K as DiagramBlockInput, bw as TreeBlockInput, bq as TimelineBlockInput, k as Block, S as DrawingBlockInput, ae as MarkerStyle, A as AccentImage, a0 as ImageTreatment, a as AccentPosition, c as Animation, d as AnimationType, bj as ThemeColorScheme, O as Doc, bl as ThemeRegistry, aD as PageEmphasis, bk as ThemePageStyle, Q as DocDiagnostic, N as DiagramTemplateNode, M as DiagramTemplateEdge, bt as TimelineTemplateTrack, bs as TimelineTemplateLink } from '../Doc-DBadkoP4.js';
|
|
2
|
+
export { T as FRONTMATTER_CUSTOM_TEMPLATES_KEY, U as FRONTMATTER_CUSTOM_THEMES_KEY, a5 as LayoutHints, aY as RenderStyle, bi as ThemeColorPalette, bo as ThemeStyle, bp as ThemeTypography, bC as VIEWPORT_PRESETS, bN as ViewportPreset, bS as createTemplateContext, bZ as getLayoutHints, c0 as getTwoColumnPositions, c1 as getViewport, c2 as getViewportOrientation, c5 as isTemplateBlock, c8 as scaledFontSize } from '../Doc-DBadkoP4.js';
|
|
3
3
|
import { L as MarkdownNode, a3 as TransitionType, a2 as TransitionDirection, M as MarkdownBlockNode, r as MarkdownHeading, n as MarkdownDocument, T as MarkdownTable, i as MarkdownCodeBlock, G as MarkdownList } from '../types-CcrDFdWH.js';
|
|
4
4
|
import { C as CoercedBlockMeta } from '../annotationCoercion-CPHEggo3.js';
|
|
5
|
-
import { c as PageSection } from '../materializePageSection-
|
|
6
|
-
export { M as MaterializePageSectionOptions, a as MaterializePageSectionsOptions, P as PageMedia, b as PageRichText, d as PageSectionDiagnostic, e as PageSectionItem, f as PageSectionMaterialization, g as PageSectionSource, h as PageSpatialKind, i as PageTransformHints, m as materializePageSection, j as materializePageSections, r as resolvePageStyle } from '../materializePageSection-
|
|
5
|
+
import { c as PageSection } from '../materializePageSection-DgOFYge7.js';
|
|
6
|
+
export { M as MaterializePageSectionOptions, a as MaterializePageSectionsOptions, P as PageMedia, b as PageRichText, d as PageSectionDiagnostic, e as PageSectionItem, f as PageSectionMaterialization, g as PageSectionSource, h as PageSpatialKind, i as PageTransformHints, m as materializePageSection, j as materializePageSections, r as resolvePageStyle } from '../materializePageSection-DgOFYge7.js';
|
|
7
7
|
import { C as ContentContainer } from '../ContentContainer-B2w9sUoL.js';
|
|
8
|
-
export { D as DEFAULT_THEME, g as getAvailableThemes, b as getThemeSummaries, r as resolveTheme } from '../themeLibrary-
|
|
8
|
+
export { D as DEFAULT_THEME, g as getAvailableThemes, b as getThemeSummaries, r as resolveTheme } from '../themeLibrary-8BQMY2HV.js';
|
|
9
9
|
|
|
10
10
|
/** Runtime registry composition for built-in and document-scoped templates. */
|
|
11
11
|
|
|
@@ -137,6 +137,12 @@ declare const TEMPLATE_AUTHORING_METADATA: {
|
|
|
137
137
|
readonly safeForContentFirst: false;
|
|
138
138
|
readonly placement: "heading";
|
|
139
139
|
};
|
|
140
|
+
readonly bigText: {
|
|
141
|
+
readonly role: "opener";
|
|
142
|
+
readonly bodyPolicy: "ignored";
|
|
143
|
+
readonly safeForContentFirst: false;
|
|
144
|
+
readonly placement: "heading";
|
|
145
|
+
};
|
|
140
146
|
readonly content: {
|
|
141
147
|
readonly role: "content";
|
|
142
148
|
readonly bodyPolicy: "complete";
|
|
@@ -388,6 +394,15 @@ declare const BLOCK_MEDIA_LAYOUT_POLICIES: {
|
|
|
388
394
|
readonly unconsumedMedia: "reserve-when-no-native-media";
|
|
389
395
|
readonly variants: SupplementalMediaVariantMatrix;
|
|
390
396
|
};
|
|
397
|
+
readonly bigText: {
|
|
398
|
+
readonly summary: "Uses its authored background image (behind a contrast bloom) when present; otherwise renders gigantic text on the theme surface.";
|
|
399
|
+
readonly noMedia: "template-without-optional-media";
|
|
400
|
+
readonly ownership: "optional-native";
|
|
401
|
+
readonly nativeLayout: "background-image";
|
|
402
|
+
readonly additionalMediaLayout: "overlay-inset";
|
|
403
|
+
readonly unconsumedMedia: "reserve-when-no-native-media";
|
|
404
|
+
readonly variants: SupplementalMediaVariantMatrix;
|
|
405
|
+
};
|
|
391
406
|
readonly content: {
|
|
392
407
|
readonly summary: "Preserves the complete heading and body; supplemental media receives a companion field.";
|
|
393
408
|
readonly noMedia: "template-default";
|
|
@@ -719,6 +734,31 @@ declare function titleBlock(input: TitleBlockInput, context: TemplateContext): L
|
|
|
719
734
|
|
|
720
735
|
declare function sectionHeader(input: SectionHeaderInput, context: TemplateContext): Layer[];
|
|
721
736
|
|
|
737
|
+
/**
|
|
738
|
+
* Big Text Template
|
|
739
|
+
*
|
|
740
|
+
* Thumbnail-style display card: the title in gigantic uppercase type sized
|
|
741
|
+
* to fill the frame (minus a small padding margin), either over a clean
|
|
742
|
+
* theme background or over a full-bleed image with a radial "contrast
|
|
743
|
+
* bloom" behind the text. Deliberately shows nothing but the title.
|
|
744
|
+
*
|
|
745
|
+
* The bloom is tinted from `theme.colors.background` (never hard-coded
|
|
746
|
+
* black), so `theme.colors.text` painted on top stays legible by
|
|
747
|
+
* construction on light and dark themes alike — the same rule the managed
|
|
748
|
+
* cover's scrim follows. Built for YouTube covers and social thumbnails,
|
|
749
|
+
* but works as an ordinary block template too.
|
|
750
|
+
*
|
|
751
|
+
* This is shared code used by both site and efb-app doc renderers.
|
|
752
|
+
*/
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Largest font size (px, in viewport space) whose wrapped title fits the
|
|
756
|
+
* frame's padded box — width-capped so the longest word stays on one line,
|
|
757
|
+
* then binary-searched against the wrapped block's height.
|
|
758
|
+
*/
|
|
759
|
+
declare function fitBigTextSize(title: string, viewport: ViewportConfig): number;
|
|
760
|
+
declare function bigText(input: BigTextInput, context: TemplateContext): Layer[];
|
|
761
|
+
|
|
722
762
|
/**
|
|
723
763
|
* Content-first template.
|
|
724
764
|
*
|
|
@@ -849,6 +889,52 @@ declare function rightFeature(input: RightFeatureInput, context: TemplateContext
|
|
|
849
889
|
|
|
850
890
|
declare function mapBlock(input: MapBlockInput, context: TemplateContext): Layer[];
|
|
851
891
|
|
|
892
|
+
/**
|
|
893
|
+
* Managed cover-slide settings persisted in Markdown frontmatter.
|
|
894
|
+
*
|
|
895
|
+
* This module is framework-free so the editor, player, and export pipelines
|
|
896
|
+
* resolve one canonical document contract.
|
|
897
|
+
*/
|
|
898
|
+
/** Built-in visual treatments that can render a document start block. */
|
|
899
|
+
type CoverSlideTemplate = 'cover' | 'title' | 'sectionHeader' | 'imageWithCaption' | 'bigText' | 'bigTextImage';
|
|
900
|
+
/** How an exported video's story clock behaves while the cover is visible. */
|
|
901
|
+
type CoverSlidePlayback = 'overlay' | 'preroll';
|
|
902
|
+
interface CoverSlideSettings {
|
|
903
|
+
enabled: boolean;
|
|
904
|
+
template: CoverSlideTemplate;
|
|
905
|
+
duration: number;
|
|
906
|
+
playback: CoverSlidePlayback;
|
|
907
|
+
}
|
|
908
|
+
interface CoverSlideTemplateOption {
|
|
909
|
+
id: CoverSlideTemplate;
|
|
910
|
+
label: string;
|
|
911
|
+
description: string;
|
|
912
|
+
requiresHeroImage?: boolean;
|
|
913
|
+
}
|
|
914
|
+
declare const COVER_SLIDE_TEMPLATE_OPTIONS: readonly CoverSlideTemplateOption[];
|
|
915
|
+
declare const COVER_SLIDE_FRONTMATTER_KEYS: Readonly<{
|
|
916
|
+
enabled: {
|
|
917
|
+
canonical: string;
|
|
918
|
+
legacy: string;
|
|
919
|
+
};
|
|
920
|
+
template: {
|
|
921
|
+
canonical: string;
|
|
922
|
+
legacy: string;
|
|
923
|
+
};
|
|
924
|
+
duration: {
|
|
925
|
+
canonical: string;
|
|
926
|
+
legacy: string;
|
|
927
|
+
};
|
|
928
|
+
playback: {
|
|
929
|
+
canonical: string;
|
|
930
|
+
legacy: string;
|
|
931
|
+
};
|
|
932
|
+
}>;
|
|
933
|
+
declare const DEFAULT_COVER_SLIDE_SETTINGS: Readonly<CoverSlideSettings>;
|
|
934
|
+
declare const MAX_COVER_SLIDE_DURATION_SECONDS = 60;
|
|
935
|
+
/** Resolve cover settings from frontmatter, then apply explicit caller overrides. */
|
|
936
|
+
declare function resolveCoverSlideSettings(frontmatter: Record<string, unknown> | undefined, overrides?: Partial<CoverSlideSettings>): CoverSlideSettings;
|
|
937
|
+
|
|
852
938
|
/**
|
|
853
939
|
* Cover Block Template
|
|
854
940
|
*
|
|
@@ -894,7 +980,7 @@ declare function coverBlock(input: CoverBlockInput, context: TemplateContext): L
|
|
|
894
980
|
* Expand a StartBlockConfig into a renderable Block.
|
|
895
981
|
* This is used by the player to render the cover block at rest.
|
|
896
982
|
*/
|
|
897
|
-
declare function expandCoverBlock(config: StartBlockConfig, context: TemplateContext): Layer[];
|
|
983
|
+
declare function expandCoverBlock(config: StartBlockConfig, context: TemplateContext, template?: CoverSlideTemplate): Layer[];
|
|
898
984
|
|
|
899
985
|
/**
|
|
900
986
|
* Full Bleed Quote Template
|
|
@@ -1876,12 +1962,20 @@ interface MarkdownToDocOptions {
|
|
|
1876
1962
|
/** Custom ID generator. Receives the heading node and its index. */
|
|
1877
1963
|
generateId?: (heading: MarkdownHeading, index: number) => string;
|
|
1878
1964
|
/**
|
|
1879
|
-
* Whether to auto-generate a cover startBlock
|
|
1880
|
-
*
|
|
1881
|
-
*
|
|
1882
|
-
*
|
|
1965
|
+
* Whether to auto-generate a cover startBlock. When true (default), a
|
|
1966
|
+
* StartBlockConfig is created with a title resolved in priority order:
|
|
1967
|
+
* frontmatter `title:`, the first occurrence of the shallowest heading
|
|
1968
|
+
* (H1, else H2, else H3, …), then {@link fileName}. If the document
|
|
1969
|
+
* contains an image, the first image is used as the hero. Set to false to
|
|
1970
|
+
* suppress automatic cover generation.
|
|
1883
1971
|
*/
|
|
1884
1972
|
generateCoverBlock?: boolean;
|
|
1973
|
+
/**
|
|
1974
|
+
* Name of the file this markdown came from (path and extension are
|
|
1975
|
+
* stripped). Used as the last-resort cover title when the document has no
|
|
1976
|
+
* frontmatter `title:` and no headings.
|
|
1977
|
+
*/
|
|
1978
|
+
fileName?: string;
|
|
1885
1979
|
/**
|
|
1886
1980
|
* Timestamp recorded as `captions.generatedAt`. When omitted, the field
|
|
1887
1981
|
* is left unset so that conversion is fully deterministic — the same
|
|
@@ -2316,9 +2410,17 @@ declare function resolveAudioMapping(doc: Doc, container: ContentContainer): Pro
|
|
|
2316
2410
|
* `resolveAudioMapping`, so every surface that resolves audio gets it.
|
|
2317
2411
|
*
|
|
2318
2412
|
* Precedence: author-pinned `duration=`/`startTime=` heading attrs win
|
|
2319
|
-
* over narration ranges
|
|
2320
|
-
* narration
|
|
2321
|
-
*
|
|
2413
|
+
* over narration ranges PER FIELD — a `duration=` pin keeps the
|
|
2414
|
+
* narration's start and a `startTime=` pin keeps the narration's length
|
|
2415
|
+
* (a conflicting pin gets an `info` diagnostic); narration ranges win
|
|
2416
|
+
* over per-block audio-segment mapping and reading-time estimates.
|
|
2417
|
+
*
|
|
2418
|
+
* Contiguity: the block strip never opens a gap (or an overlap) around a
|
|
2419
|
+
* pin. When a pin moves a block's end away from the take's range
|
|
2420
|
+
* boundary, every later narration anchor ripples by the same delta —
|
|
2421
|
+
* the committed layout matches the timeline editor's drag preview,
|
|
2422
|
+
* which re-flows following blocks live. The narration AUDIO keeps its
|
|
2423
|
+
* own absolute schedule; the diagnostic records that drift.
|
|
2322
2424
|
*/
|
|
2323
2425
|
|
|
2324
2426
|
interface NarrationResolution {
|
|
@@ -3083,4 +3185,4 @@ declare function treeFromMarkdownList(list: MarkdownList): Tree;
|
|
|
3083
3185
|
/** Find the first top-level markdown list in a block's body, if any. */
|
|
3084
3186
|
declare function findFirstList(contents: MarkdownBlockNode[] | undefined): MarkdownList | undefined;
|
|
3085
3187
|
|
|
3086
|
-
export { ASCII_CHAR_H, ASCII_CHAR_W, ASCII_DIAGRAM_FENCE_LANGS, ASCII_TIMELINE_FENCE_LANGS, type AccentLayout, type AsciiDiagram, type AsciiDiagramDetection, type AsciiDiagramEdge, type AsciiDiagramNode, type AsciiTimeline, type AsciiTimelineDetection, type AsciiTimelineEvent, type AsciiTimelineLink, type AsciiTimelineMarker, type AsciiTimelineSide, type AsciiTimelineStats, type AsciiTimelineStyle, type AsciiTimelineTrack, type AudioSegmentTiming, BASE_INPUT_DESCRIPTORS, BLOCK_MEDIA_LAYOUT_POLICIES, type BlockLayerMaterialization, type BlockMediaLayoutPolicy, type BuiltInTemplateName, CONTAINER_TEMPLATES, type ClipBox, type ConnectorAnchor, type ConnectorPort, type ConnectorRouting, type ConnectorSnapPoint, type CoverBlockInput, DEFAULT_LAYOUT, DIAGRAM_LABEL_HORIZONTAL_PADDING, DIAGRAM_LABEL_LINE_HEIGHT, DIAGRAM_LABEL_MIN_FONT_SIZE, DIAGRAM_LABEL_VERTICAL_PADDING, type DataFenceParseResult, type DeriveTemplateInputsOptions, type DetectAsciiTimelineOptions, type DiagramEdge, type DiagramLabelFit, type DiagramLayout, type DiagramLayoutOptions, type DiagramNodePosition, DocBlock, type DrawingConnector, type DrawingLayout, type DrawingLayoutOptions, type DrawingShape, type DrawingShapeKind, type EmbeddedVideo, type ExpandDocBlocksOptions, type ExtractedTableData, type FirstImage, type InputCoercion, type LayerMaterializationDiagnostic, type LayerMaterializationFailureMode, type LayerMaterializationSource, type LayoutLayerDefaults, type LayoutLayersResult, type MarkdownToDocOptions, type MarkdownValidationResult, type MaterializeBlockLayersOptions, type NarrationResolution, type NativeMediaLayout, type NoMediaLayout, PAGE_BASE_CSS, PATH_SHAPE_KINDS, PageSection, type PageSectionContext, type PageSectionDraft, PersistentLayerConfig, type RenderAsciiDiagramOptions, type RenderAsciiTimelineOptions, type RenderTreeOptions, type RepairResult, type ResolvedPageBlock, type RichListItem, type RuntimeTemplateRegistry, SHAPE_NAMES, type SectionExtractor, type SupplementalMediaLayoutVariant, type SupplementalMediaShape, type SupplementalMediaVariantMatrix, TABLE_FED_TEMPLATES, TEMPLATE_AUTHORING_METADATA, TEMPLATE_INPUT_DESCRIPTORS, TEMPLATE_METADATA, TREE_FENCE_LANGS, type TemplateAuthoringMetadata, type TemplateAuthoringRole, TemplateBlock, type TemplateBodyPolicy, TemplateContext, type TemplateInputDescriptor, type TemplateMediaOwnership, type TemplateMetadata, type TemplateParamFinding, Theme, ThemeColorScheme, type Tree, type TreeDetection, type TreeItem, type TreeNode, type UnconsumedMediaBehavior, type ValidateOptions, ViewportConfig, ViewportOrientation, adjustY, anchorPoint, applyNarrationTiming, applyRenderStyleToLayers, asciiCellToCanvas, asciiDiagramFromBlocks, asciiDiagramFromTemplateData, asciiDiagramToTemplateData, asciiTimelineToTemplateData, autoTemplatePreservesContent, buildPageCss, buildPageCssVars, buildRegistry, canvasToAsciiCell, clipEndpoints, clipPoint, coerceTemplateParams, comparisonBar, computeDiagramLayout, computeDrawingLayout, computeLayoutLayers, connectorPath, contentBlock, countBlocks, coverBlock, createAccentLayers, cssFilterForTreatment, dataTable, dateEvent, definitionCard, deriveTemplateInputs, detectAsciiDiagram, detectAsciiTimeline, detectTree, diagramBlock, docToMarkdown, drawingBlock, expandCoverBlock, expandDocBlocks, expandPersistentLayers, extractBlockquoteText, extractBodyPlainText, extractEmbeddedVideos, extractFirstEmbeddedVideo, extractFirstImage, extractImages, extractListItems, extractRichListItems, extractTableData, extractTableFromContents, factCard, fallbackBlockLayers, findFirstList, findFirstTable, fitDiagramLabel, flattenBlocks, flattenRenderableBlocks, fullBleedQuote, getAccentLayout, getAnimationProgress, getAnimationStyle, getAvailableTemplates, getBlockBodyText, getBlockDepth, getBlockMediaLayoutPolicy, getDefaultAnimation, getDefaultAnimationDuration, getOverlayOpacity, getPersistentLayersFromTheme, getPinnedBlockMeta, getTemplateHint, getThemeFont, getTransitionClass, hasTemplate, imageWithCaption, isAsciiDiagramFence, isAsciiTimelineFence, isContainerTemplate, isDataFence, isEligibleAsciiFenceLang, isEligibleAsciiTimelineFenceLang, isEligibleTreeFenceLang, isExplicitDiagramLang, isExplicitTimelineLang, isExplicitTreeLang, isRepairableDiagram, isShapeName, isTemplatedPageBlock, isTreeFence, isWrappedFlowTimelineSource, layoutBlock, leftFeature, lineStyleDasharray, lintTemplateParams, listBlock, mapBlock, markdownToDoc, markerPath, materializeBlockLayers, nearestSnapPoint, normalizeShapeKind, pageStyleDataAttributes, parseAsciiDiagram, parseAsciiTimeline, parseAsciiTimelineWithStats, parseDataFence, parseTree, parseWrappedFlowTimeline, parseYamlSubset, photoGrid, pullQuote, quoteBlock, readCustomTemplatesFromFrontmatter, readCustomThemesFromFrontmatter, renderAsciiDiagram, renderAsciiTimeline, renderTree, repairAsciiDiagram, replaceDataFence, resolveAudioMapping, resolveColorScheme, resolvePageBlock, resolvePersistentLayers, resolveTemplateName, resolveThemeForDoc, rightFeature, scaleAnimationDuration, scoreTextSimilarity, sectionExtractors, sectionHeader, shapePath, shouldUseShadow, snapEndpoints, snapPoints, statHighlight, templateRegistry, themeWantsAmbientMotion, themedEntrance, themedFontSize, themedImageTreatment, themedScrim, themedSurfaceGradient, timelineBlock, titleBlock, treeBlock, treeFromMarkdownList, treeFromTemplateData, treeToTemplateData, twoColumn, validateMarkdownDoc, validateMarkdownSource, videoPullQuote, videoWithCaption, wrapWithPersistentLayers, writeCustomTemplatesToFrontmatter, writeCustomThemesToFrontmatter };
|
|
3188
|
+
export { ASCII_CHAR_H, ASCII_CHAR_W, ASCII_DIAGRAM_FENCE_LANGS, ASCII_TIMELINE_FENCE_LANGS, type AccentLayout, type AsciiDiagram, type AsciiDiagramDetection, type AsciiDiagramEdge, type AsciiDiagramNode, type AsciiTimeline, type AsciiTimelineDetection, type AsciiTimelineEvent, type AsciiTimelineLink, type AsciiTimelineMarker, type AsciiTimelineSide, type AsciiTimelineStats, type AsciiTimelineStyle, type AsciiTimelineTrack, type AudioSegmentTiming, BASE_INPUT_DESCRIPTORS, BLOCK_MEDIA_LAYOUT_POLICIES, type BlockLayerMaterialization, type BlockMediaLayoutPolicy, type BuiltInTemplateName, CONTAINER_TEMPLATES, COVER_SLIDE_FRONTMATTER_KEYS, COVER_SLIDE_TEMPLATE_OPTIONS, type ClipBox, type ConnectorAnchor, type ConnectorPort, type ConnectorRouting, type ConnectorSnapPoint, type CoverBlockInput, type CoverSlidePlayback, type CoverSlideSettings, type CoverSlideTemplate, type CoverSlideTemplateOption, DEFAULT_COVER_SLIDE_SETTINGS, DEFAULT_LAYOUT, DIAGRAM_LABEL_HORIZONTAL_PADDING, DIAGRAM_LABEL_LINE_HEIGHT, DIAGRAM_LABEL_MIN_FONT_SIZE, DIAGRAM_LABEL_VERTICAL_PADDING, type DataFenceParseResult, type DeriveTemplateInputsOptions, type DetectAsciiTimelineOptions, type DiagramEdge, type DiagramLabelFit, type DiagramLayout, type DiagramLayoutOptions, type DiagramNodePosition, DocBlock, type DrawingConnector, type DrawingLayout, type DrawingLayoutOptions, type DrawingShape, type DrawingShapeKind, type EmbeddedVideo, type ExpandDocBlocksOptions, type ExtractedTableData, type FirstImage, type InputCoercion, type LayerMaterializationDiagnostic, type LayerMaterializationFailureMode, type LayerMaterializationSource, type LayoutLayerDefaults, type LayoutLayersResult, MAX_COVER_SLIDE_DURATION_SECONDS, type MarkdownToDocOptions, type MarkdownValidationResult, type MaterializeBlockLayersOptions, type NarrationResolution, type NativeMediaLayout, type NoMediaLayout, PAGE_BASE_CSS, PATH_SHAPE_KINDS, PageSection, type PageSectionContext, type PageSectionDraft, PersistentLayerConfig, type RenderAsciiDiagramOptions, type RenderAsciiTimelineOptions, type RenderTreeOptions, type RepairResult, type ResolvedPageBlock, type RichListItem, type RuntimeTemplateRegistry, SHAPE_NAMES, type SectionExtractor, type SupplementalMediaLayoutVariant, type SupplementalMediaShape, type SupplementalMediaVariantMatrix, TABLE_FED_TEMPLATES, TEMPLATE_AUTHORING_METADATA, TEMPLATE_INPUT_DESCRIPTORS, TEMPLATE_METADATA, TREE_FENCE_LANGS, type TemplateAuthoringMetadata, type TemplateAuthoringRole, TemplateBlock, type TemplateBodyPolicy, TemplateContext, type TemplateInputDescriptor, type TemplateMediaOwnership, type TemplateMetadata, type TemplateParamFinding, Theme, ThemeColorScheme, type Tree, type TreeDetection, type TreeItem, type TreeNode, type UnconsumedMediaBehavior, type ValidateOptions, ViewportConfig, ViewportOrientation, adjustY, anchorPoint, applyNarrationTiming, applyRenderStyleToLayers, asciiCellToCanvas, asciiDiagramFromBlocks, asciiDiagramFromTemplateData, asciiDiagramToTemplateData, asciiTimelineToTemplateData, autoTemplatePreservesContent, bigText, buildPageCss, buildPageCssVars, buildRegistry, canvasToAsciiCell, clipEndpoints, clipPoint, coerceTemplateParams, comparisonBar, computeDiagramLayout, computeDrawingLayout, computeLayoutLayers, connectorPath, contentBlock, countBlocks, coverBlock, createAccentLayers, cssFilterForTreatment, dataTable, dateEvent, definitionCard, deriveTemplateInputs, detectAsciiDiagram, detectAsciiTimeline, detectTree, diagramBlock, docToMarkdown, drawingBlock, expandCoverBlock, expandDocBlocks, expandPersistentLayers, extractBlockquoteText, extractBodyPlainText, extractEmbeddedVideos, extractFirstEmbeddedVideo, extractFirstImage, extractImages, extractListItems, extractRichListItems, extractTableData, extractTableFromContents, factCard, fallbackBlockLayers, findFirstList, findFirstTable, fitBigTextSize, fitDiagramLabel, flattenBlocks, flattenRenderableBlocks, fullBleedQuote, getAccentLayout, getAnimationProgress, getAnimationStyle, getAvailableTemplates, getBlockBodyText, getBlockDepth, getBlockMediaLayoutPolicy, getDefaultAnimation, getDefaultAnimationDuration, getOverlayOpacity, getPersistentLayersFromTheme, getPinnedBlockMeta, getTemplateHint, getThemeFont, getTransitionClass, hasTemplate, imageWithCaption, isAsciiDiagramFence, isAsciiTimelineFence, isContainerTemplate, isDataFence, isEligibleAsciiFenceLang, isEligibleAsciiTimelineFenceLang, isEligibleTreeFenceLang, isExplicitDiagramLang, isExplicitTimelineLang, isExplicitTreeLang, isRepairableDiagram, isShapeName, isTemplatedPageBlock, isTreeFence, isWrappedFlowTimelineSource, layoutBlock, leftFeature, lineStyleDasharray, lintTemplateParams, listBlock, mapBlock, markdownToDoc, markerPath, materializeBlockLayers, nearestSnapPoint, normalizeShapeKind, pageStyleDataAttributes, parseAsciiDiagram, parseAsciiTimeline, parseAsciiTimelineWithStats, parseDataFence, parseTree, parseWrappedFlowTimeline, parseYamlSubset, photoGrid, pullQuote, quoteBlock, readCustomTemplatesFromFrontmatter, readCustomThemesFromFrontmatter, renderAsciiDiagram, renderAsciiTimeline, renderTree, repairAsciiDiagram, replaceDataFence, resolveAudioMapping, resolveColorScheme, resolveCoverSlideSettings, resolvePageBlock, resolvePersistentLayers, resolveTemplateName, resolveThemeForDoc, rightFeature, scaleAnimationDuration, scoreTextSimilarity, sectionExtractors, sectionHeader, shapePath, shouldUseShadow, snapEndpoints, snapPoints, statHighlight, templateRegistry, themeWantsAmbientMotion, themedEntrance, themedFontSize, themedImageTreatment, themedScrim, themedSurfaceGradient, timelineBlock, titleBlock, treeBlock, treeFromMarkdownList, treeFromTemplateData, treeToTemplateData, twoColumn, validateMarkdownDoc, validateMarkdownSource, videoPullQuote, videoWithCaption, wrapWithPersistentLayers, writeCustomTemplatesToFrontmatter, writeCustomThemesToFrontmatter };
|
package/dist/doc/index.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
+
COVER_SLIDE_FRONTMATTER_KEYS,
|
|
3
|
+
COVER_SLIDE_TEMPLATE_OPTIONS,
|
|
4
|
+
DEFAULT_COVER_SLIDE_SETTINGS,
|
|
5
|
+
MAX_COVER_SLIDE_DURATION_SECONDS,
|
|
2
6
|
PAGE_BASE_CSS,
|
|
3
7
|
applyNarrationTiming,
|
|
4
8
|
buildPageCss,
|
|
@@ -19,6 +23,7 @@ import {
|
|
|
19
23
|
renderTree,
|
|
20
24
|
repairAsciiDiagram,
|
|
21
25
|
resolveAudioMapping,
|
|
26
|
+
resolveCoverSlideSettings,
|
|
22
27
|
resolvePageBlock,
|
|
23
28
|
resolvePageStyle,
|
|
24
29
|
resolveThemeForDoc,
|
|
@@ -26,7 +31,7 @@ import {
|
|
|
26
31
|
sectionExtractors,
|
|
27
32
|
validateMarkdownDoc,
|
|
28
33
|
validateMarkdownSource
|
|
29
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-NNL3HHKA.js";
|
|
30
35
|
import {
|
|
31
36
|
ASCII_CHAR_H,
|
|
32
37
|
ASCII_CHAR_W,
|
|
@@ -49,6 +54,7 @@ import {
|
|
|
49
54
|
asciiDiagramToTemplateData,
|
|
50
55
|
asciiTimelineToTemplateData,
|
|
51
56
|
autoTemplatePreservesContent,
|
|
57
|
+
bigText,
|
|
52
58
|
buildRegistry,
|
|
53
59
|
canvasToAsciiCell,
|
|
54
60
|
coerceTemplateParams,
|
|
@@ -83,6 +89,7 @@ import {
|
|
|
83
89
|
fallbackBlockLayers,
|
|
84
90
|
findFirstList,
|
|
85
91
|
findFirstTable,
|
|
92
|
+
fitBigTextSize,
|
|
86
93
|
fitDiagramLabel,
|
|
87
94
|
flattenBlocks,
|
|
88
95
|
flattenRenderableBlocks,
|
|
@@ -144,7 +151,7 @@ import {
|
|
|
144
151
|
wrapWithPersistentLayers,
|
|
145
152
|
writeCustomTemplatesToFrontmatter,
|
|
146
153
|
writeCustomThemesToFrontmatter
|
|
147
|
-
} from "../chunk-
|
|
154
|
+
} from "../chunk-GSJEGMKF.js";
|
|
148
155
|
import {
|
|
149
156
|
PATH_SHAPE_KINDS,
|
|
150
157
|
anchorPoint,
|
|
@@ -200,13 +207,13 @@ import {
|
|
|
200
207
|
isTemplateBlock,
|
|
201
208
|
scaledFontSize2 as scaledFontSize
|
|
202
209
|
} from "../chunk-BAOV476U.js";
|
|
203
|
-
import "../chunk-
|
|
210
|
+
import "../chunk-6MVWWZHL.js";
|
|
204
211
|
import {
|
|
205
212
|
CONTAINER_TEMPLATES,
|
|
206
213
|
TABLE_FED_TEMPLATES,
|
|
207
214
|
isContainerTemplate,
|
|
208
215
|
resolveTemplateName
|
|
209
|
-
} from "../chunk-
|
|
216
|
+
} from "../chunk-NBKAXPSX.js";
|
|
210
217
|
import "../chunk-7N4G32LG.js";
|
|
211
218
|
import "../chunk-O7JILDEF.js";
|
|
212
219
|
import "../chunk-4VOD55SX.js";
|
|
@@ -221,6 +228,9 @@ export {
|
|
|
221
228
|
BASE_INPUT_DESCRIPTORS,
|
|
222
229
|
BLOCK_MEDIA_LAYOUT_POLICIES,
|
|
223
230
|
CONTAINER_TEMPLATES,
|
|
231
|
+
COVER_SLIDE_FRONTMATTER_KEYS,
|
|
232
|
+
COVER_SLIDE_TEMPLATE_OPTIONS,
|
|
233
|
+
DEFAULT_COVER_SLIDE_SETTINGS,
|
|
224
234
|
DEFAULT_LAYOUT,
|
|
225
235
|
DEFAULT_THEME,
|
|
226
236
|
DIAGRAM_LABEL_HORIZONTAL_PADDING,
|
|
@@ -229,6 +239,7 @@ export {
|
|
|
229
239
|
DIAGRAM_LABEL_VERTICAL_PADDING,
|
|
230
240
|
FRONTMATTER_CUSTOM_TEMPLATES_KEY,
|
|
231
241
|
FRONTMATTER_CUSTOM_THEMES_KEY,
|
|
242
|
+
MAX_COVER_SLIDE_DURATION_SECONDS,
|
|
232
243
|
PAGE_BASE_CSS,
|
|
233
244
|
PATH_SHAPE_KINDS,
|
|
234
245
|
SHAPE_NAMES,
|
|
@@ -248,6 +259,7 @@ export {
|
|
|
248
259
|
asciiDiagramToTemplateData,
|
|
249
260
|
asciiTimelineToTemplateData,
|
|
250
261
|
autoTemplatePreservesContent,
|
|
262
|
+
bigText,
|
|
251
263
|
buildPageCss,
|
|
252
264
|
buildPageCssVars,
|
|
253
265
|
buildRegistry,
|
|
@@ -293,6 +305,7 @@ export {
|
|
|
293
305
|
fallbackBlockLayers,
|
|
294
306
|
findFirstList,
|
|
295
307
|
findFirstTable,
|
|
308
|
+
fitBigTextSize,
|
|
296
309
|
fitDiagramLabel,
|
|
297
310
|
flattenBlocks,
|
|
298
311
|
flattenRenderableBlocks,
|
|
@@ -369,6 +382,7 @@ export {
|
|
|
369
382
|
replaceDataFence,
|
|
370
383
|
resolveAudioMapping,
|
|
371
384
|
resolveColorScheme,
|
|
385
|
+
resolveCoverSlideSettings,
|
|
372
386
|
resolvePageBlock,
|
|
373
387
|
resolvePageStyle,
|
|
374
388
|
resolvePersistentLayers,
|
package/dist/generate/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as ExtractedElement } from '../contentExtractor-BNfVJV2U.js';
|
|
2
2
|
export { C as ComparisonData, D as DateData, a as DefinitionData, b as ExtractionOptions, c as ExtractionResult, d as ExtractionType, F as FactData, I as ImpactLineData, L as ListData, Q as QuoteData, S as StatData, e as extractContent, s as stripMarkdown } from '../contentExtractor-BNfVJV2U.js';
|
|
3
|
-
import {
|
|
3
|
+
import { r as ColorScheme, A as AccentImage, bb as TemplateBlock } from '../Doc-DBadkoP4.js';
|
|
4
4
|
import '../types-CcrDFdWH.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as ImageEditDoc, b as ImageEditLayer } from '../ImageEditDoc-
|
|
2
|
-
export { E as EditorLayerMeta, I as ImageEditCanvas, c as ImageEditLayerKind, d as ImageEditMeta } from '../ImageEditDoc-
|
|
1
|
+
import { a as ImageEditDoc, b as ImageEditLayer } from '../ImageEditDoc-Cq2a3c30.js';
|
|
2
|
+
export { E as EditorLayerMeta, I as ImageEditCanvas, c as ImageEditLayerKind, d as ImageEditMeta } from '../ImageEditDoc-Cq2a3c30.js';
|
|
3
3
|
import { C as ContentContainer } from '../ContentContainer-B2w9sUoL.js';
|
|
4
4
|
import { V as Version, C as CoalesceOptions, P as PrunePolicy } from '../types-8QjefM9J.js';
|
|
5
|
-
import '../Doc-
|
|
5
|
+
import '../Doc-DBadkoP4.js';
|
|
6
6
|
import '../types-CcrDFdWH.js';
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { B as BoundingBox, C as Coordinates } from './Types-sh2VRxfo.js';
|
|
2
|
-
export { A as AccentImage, a as AccentPosition, b as AmbientGradientConfig, c as Animation, d as AnimationType, e as AreaChartInput, f as AudioBookmark, g as AudioSegment, h as AudioTimingData, i as AudioTrack, B as BarChartInput, j as
|
|
2
|
+
export { A as AccentImage, a as AccentPosition, b as AmbientGradientConfig, c as Animation, d as AnimationType, e as AreaChartInput, f as AudioBookmark, g as AudioSegment, h as AudioTimingData, i as AudioTrack, B as BarChartInput, j as 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 CustomTemplateDefinition, x as CustomTemplateLayer, y as CustomTemplateValidationError, z as CustomTemplateValidationResult, D as DARK_SURFACE, E as DEFAULT_DOC_FONT, F as DEFAULT_TITLE_FONT, G as DataTableInput, H as DateEventInput, I as DeepPartial, J as DefinitionCardInput, K as DiagramBlockInput, L as DiagramEdgeAnchor, M as DiagramTemplateEdge, N as DiagramTemplateNode, O as Doc, P as DocBlock, Q as DocDiagnostic, R as DonutChartInput, S as DrawingBlockInput, T as FRONTMATTER_CUSTOM_TEMPLATES_KEY, U as FRONTMATTER_CUSTOM_THEMES_KEY, V as FactCardInput, W as FontFamily, X as FontFamilyKind, Y as FullBleedQuoteInput, Z as GradientBackgroundConfig, _ as ImageBackgroundConfig, $ as ImageLayer, a0 as ImageTreatment, a1 as ImageWithCaptionInput, a2 as LIGHT_SURFACE, a3 as Layer, a4 as LayerRepeat, a5 as LayoutHints, a6 as LeftFeatureInput, a7 as LineChartInput, a8 as LinearGradient, a9 as ListBlockInput, aa as MapBlockInput, ab as MapLayer, ac as MapMarker, ad as MapTileStyle, ae as MarkerStyle, af as MediaClip, ag as MediaScheduleOptions, ah as MermaidLayer, ai as PAGE_ACCENT_STRATEGIES, aj as PAGE_BACKGROUNDS, ak as PAGE_BACKGROUND_RHYTHMS, al as PAGE_DESIGN_FAMILIES, am as PAGE_DIVIDERS, an as PAGE_EMPHASES, ao as PAGE_EYEBROWS, ap as PAGE_HEADING_CASES, aq as PAGE_HEADING_SCALES, ar as PAGE_HEADING_UNDERLINES, as as PAGE_HERO_STYLES, at as PAGE_IMAGE_FRAMINGS, au as PAGE_NUMERAL_STYLES, av as PAGE_PATTERNS, aw as PAGE_QUOTE_MARKS, ax as PAGE_SECTION_KINDS, ay as PAGE_SECTION_SPACINGS, az as PAGE_SHADOWS, aA as PageAccentRotation, aB as PageBackground, aC as PageDesignFamily, aD as PageEmphasis, aE as PageHeadingTreatment, aF as PageSectionKind, aG as PageSectionOverride, aH as PageTokens, aI as PathLayer, aJ as PatternBackgroundConfig, aK as PersistentLayer, aL as PersistentLayerConfig, aM as PersistentLayerTemplate, aN as PersistentLayerTemplateConfig, aO as PersistentLayerTemplateType, aP as PhotoGridInput, aQ as PieChartInput, aR as PipStyle, aS as Position, aT as ProgressIndicatorConfig, aU as PromotedBodyAnnotation, aV as PullQuoteInput, aW as QuoteBlockInput, aX as RawLayersInput, aY as RenderStyle, aZ as RightFeatureInput, a_ as ScatterChartInput, a$ as ScheduledClip, b0 as SectionHeaderInput, b1 as ShapeFilter, b2 as ShapeLayer, b3 as ShapePattern, b4 as SolidBackgroundConfig, b5 as StartBlockConfig, b6 as StatHighlightInput, b7 as SurfaceScheme, b8 as THEME_SCHEMA_VERSION, b9 as TableLayer, ba as TableLayerStyle, bb as TemplateBlock, bc as TemplateContext, bd as TemplateFunction, be as TemplateRegistry, bf as TextLayer, bg as TextStyle, bh as Theme, bi as ThemeColorPalette, bj as ThemeColorScheme, bk as ThemePageStyle, bl as ThemeRegistry, bm as ThemeSchemaVersion, bn as ThemeSeedColors, bo as ThemeStyle, bp as ThemeTypography, bq as TimelineBlockInput, br as TimelineTemplateEvent, bs as TimelineTemplateLink, bt as TimelineTemplateTrack, bu as TitleBlockInput, bv as TitleCaptionConfig, bw as TreeBlockInput, bx as TreeLayer, by as TreeLayerItem, bz as TreeLayerStyle, bA as TreeTemplateItem, bB as TwoColumnInput, bC as VIEWPORT_PRESETS, bD as VideoLayer, bE as VideoPipPosition, bF as VideoPipShape, bG as VideoPipSize, bH as VideoPlacement, bI as VideoPresentation, bJ as VideoPullQuoteInput, bK as VideoWithCaptionInput, bL as ViewportConfig, bM as ViewportOrientation, bN as ViewportPreset, bO as VignetteConfig, bP as applySurface, bQ as calculateDuration, bR as calculateFontScale, bS as createTemplateContext, bT as createTheme, bU as createThemeRegistry, bV as getAspectRatioString, bW as getBlockAtTime, bX as getCaptionAtTime, bY as getDocPlaybackDuration, bZ as getLayoutHints, b_ as getSafeTextBounds, b$ as getSegmentAtTime, c0 as getTwoColumnPositions, c1 as getViewport, c2 as getViewportOrientation, c3 as isCustomTemplateDefinition, c4 as isPersistentLayerTemplate, c5 as isTemplateBlock, c6 as layoutScaledFontSize, c7 as resolveMediaSchedule, c8 as scaledFontSize, c9 as validateCustomTemplateDefinition } from './Doc-DBadkoP4.js';
|
|
3
3
|
export { AVAILABLE_FONT_STACKS, CompileOptions, ContrastPreset, DocSchemaIssue, FONT_FALLBACKS, FontStack, MermaidThemeVariables, PipStyleVars, STARTER_THEME, ValidationError, ValidationResult, accentToColorScheme, assertDocSchema, assertTheme, buildGoogleFontsUrl, buildMermaidThemeVariables, compileTheme, contrastRatio, defaultPageStyle, deriveColorPalette, deriveScale, fontStack, getFontStack, guessFontFallback, hexHueDegrees, isHex, matchFontFamily, oklchDarken, oklchLighten, oklchSetChroma, parseTheme, pickContrastingText, pipStyleVars, relativeLuminance, resolveFontFamily, serializeTheme, validateDocSchema, validateTheme, withAlpha } from './schemas/index.js';
|
|
4
4
|
export { D as DEFAULT_MARKDOWN_SAFETY_LIMITS, a as DEFAULT_TRANSITION_DURATION_SECONDS, H as HeadingAttributes, b as HeadingTemplateAnnotation, c as HtmlComment, d as HtmlElement, e as HtmlNode, f as HtmlText, M as MarkdownBlockNode, g as MarkdownBlockquote, h as MarkdownBreak, i as MarkdownCodeBlock, j as MarkdownContainerDirective, k as MarkdownDefinitionDescription, l as MarkdownDefinitionList, m as MarkdownDefinitionTerm, n as MarkdownDocument, o as MarkdownEmphasis, p as MarkdownFootnoteDefinition, q as MarkdownFootnoteReference, r as MarkdownHeading, s as MarkdownHtmlBlock, t as MarkdownImage, u as MarkdownImageReference, v as MarkdownInlineCode, w as MarkdownInlineHtml, x as MarkdownInlineIcon, y as MarkdownInlineMath, z as MarkdownInlineNode, A as MarkdownLeafDirective, B as MarkdownLimitError, C as MarkdownLink, E as MarkdownLinkDefinition, F as MarkdownLinkReference, G as MarkdownList, I as MarkdownListItem, J as MarkdownMathBlock, K as MarkdownMention, L as MarkdownNode, N as MarkdownParagraph, O as MarkdownPoint, P as MarkdownSafetyLimits, Q as MarkdownSourcePosition, R as MarkdownStrikethrough, S as MarkdownStrong, T as MarkdownTable, U as MarkdownTableCell, V as MarkdownTableRow, W as MarkdownText, X as MarkdownTextDirective, Y as MarkdownThematicBreak, Z as ParseOptions, _ as StringifyOptions, $ as TRANSITION_DIRECTIONS, a0 as TRANSITION_TYPES, a1 as Transition, a2 as TransitionDirection, a3 as TransitionType, a4 as assertMarkdownDocumentWithinLimits, a5 as assertMarkdownSourceWithinLimits, a6 as isTransitionType, a7 as normalizeTransitionDirection, a8 as normalizeTransitionType, a9 as resolveBlockTransition, aa as resolveMarkdownSafetyLimits, ab as resolveTransitionDuration } from './types-CcrDFdWH.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-8BQMY2HV.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-
|
|
8
|
-
export { ASCII_CHAR_H, ASCII_CHAR_W, ASCII_DIAGRAM_FENCE_LANGS, ASCII_TIMELINE_FENCE_LANGS, AccentLayout, AsciiDiagram, AsciiDiagramDetection, AsciiDiagramEdge, AsciiDiagramNode, AsciiTimeline, AsciiTimelineDetection, AsciiTimelineEvent, AsciiTimelineLink, AsciiTimelineMarker, AsciiTimelineSide, AsciiTimelineStats, AsciiTimelineStyle, AsciiTimelineTrack, AudioSegmentTiming, BASE_INPUT_DESCRIPTORS, BLOCK_MEDIA_LAYOUT_POLICIES, BlockLayerMaterialization, BlockMediaLayoutPolicy, BuiltInTemplateName, CONTAINER_TEMPLATES, ClipBox, ConnectorAnchor, ConnectorPort, ConnectorRouting, ConnectorSnapPoint, CoverBlockInput, DEFAULT_LAYOUT, DIAGRAM_LABEL_HORIZONTAL_PADDING, DIAGRAM_LABEL_LINE_HEIGHT, DIAGRAM_LABEL_MIN_FONT_SIZE, DIAGRAM_LABEL_VERTICAL_PADDING, DataFenceParseResult, DeriveTemplateInputsOptions, DetectAsciiTimelineOptions, DiagramEdge, DiagramLabelFit, DiagramLayout, DiagramLayoutOptions, DiagramNodePosition, DrawingConnector, DrawingLayout, DrawingLayoutOptions, DrawingShape, DrawingShapeKind, EmbeddedVideo, ExpandDocBlocksOptions, ExtractedTableData, FirstImage, InputCoercion, LayerMaterializationDiagnostic, LayerMaterializationFailureMode, LayerMaterializationSource, LayoutLayerDefaults, LayoutLayersResult, MarkdownToDocOptions, MarkdownValidationResult, MaterializeBlockLayersOptions, NarrationResolution, NativeMediaLayout, NoMediaLayout, PAGE_BASE_CSS, PATH_SHAPE_KINDS, PageSectionContext, PageSectionDraft, RenderAsciiDiagramOptions, RenderAsciiTimelineOptions, RenderTreeOptions, RepairResult, ResolvedPageBlock, RichListItem, RuntimeTemplateRegistry, SHAPE_NAMES, SectionExtractor, SupplementalMediaLayoutVariant, SupplementalMediaShape, SupplementalMediaVariantMatrix, TABLE_FED_TEMPLATES, TEMPLATE_AUTHORING_METADATA, TEMPLATE_INPUT_DESCRIPTORS, TEMPLATE_METADATA, TREE_FENCE_LANGS, TemplateAuthoringMetadata, TemplateAuthoringRole, TemplateBodyPolicy, TemplateInputDescriptor, TemplateMediaOwnership, TemplateMetadata, TemplateParamFinding, Tree, TreeDetection, TreeItem, TreeNode, UnconsumedMediaBehavior, ValidateOptions, adjustY, anchorPoint, applyNarrationTiming, applyRenderStyleToLayers, asciiCellToCanvas, asciiDiagramFromBlocks, asciiDiagramFromTemplateData, asciiDiagramToTemplateData, asciiTimelineToTemplateData, autoTemplatePreservesContent, buildPageCss, buildPageCssVars, buildRegistry, canvasToAsciiCell, clipEndpoints, clipPoint, coerceTemplateParams, comparisonBar, computeDiagramLayout, computeDrawingLayout, computeLayoutLayers, connectorPath, contentBlock, countBlocks, coverBlock, createAccentLayers, cssFilterForTreatment, dataTable, dateEvent, definitionCard, deriveTemplateInputs, detectAsciiDiagram, detectAsciiTimeline, detectTree, diagramBlock, docToMarkdown, drawingBlock, expandCoverBlock, expandDocBlocks, expandPersistentLayers, extractBlockquoteText, extractBodyPlainText, extractEmbeddedVideos, extractFirstEmbeddedVideo, extractFirstImage, extractImages, extractListItems, extractRichListItems, extractTableData, extractTableFromContents, factCard, fallbackBlockLayers, findFirstList, findFirstTable, fitDiagramLabel, flattenBlocks, flattenRenderableBlocks, fullBleedQuote, getAccentLayout, getAnimationProgress, getAnimationStyle, getAvailableTemplates, getBlockBodyText, getBlockDepth, getBlockMediaLayoutPolicy, getDefaultAnimation, getDefaultAnimationDuration, getOverlayOpacity, getPersistentLayersFromTheme, getPinnedBlockMeta, getTemplateHint, getThemeFont, getTransitionClass, hasTemplate, imageWithCaption, isAsciiDiagramFence, isAsciiTimelineFence, isContainerTemplate, isDataFence, isEligibleAsciiFenceLang, isEligibleAsciiTimelineFenceLang, isEligibleTreeFenceLang, isExplicitDiagramLang, isExplicitTimelineLang, isExplicitTreeLang, isRepairableDiagram, isShapeName, isTemplatedPageBlock, isTreeFence, isWrappedFlowTimelineSource, layoutBlock, leftFeature, lineStyleDasharray, lintTemplateParams, listBlock, mapBlock, markdownToDoc, markerPath, materializeBlockLayers, nearestSnapPoint, normalizeShapeKind, pageStyleDataAttributes, parseAsciiDiagram, parseAsciiTimeline, parseAsciiTimelineWithStats, parseDataFence, parseTree, parseWrappedFlowTimeline, parseYamlSubset, photoGrid, pullQuote, quoteBlock, readCustomTemplatesFromFrontmatter, readCustomThemesFromFrontmatter, renderAsciiDiagram, renderAsciiTimeline, renderTree, repairAsciiDiagram, replaceDataFence, resolveAudioMapping, resolveColorScheme, resolvePageBlock, resolvePersistentLayers, resolveTemplateName, resolveThemeForDoc, rightFeature, scaleAnimationDuration, scoreTextSimilarity, sectionExtractors, sectionHeader, shapePath, shouldUseShadow, snapEndpoints, snapPoints, statHighlight, templateRegistry, themeWantsAmbientMotion, themedEntrance, themedFontSize, themedImageTreatment, themedScrim, themedSurfaceGradient, timelineBlock, titleBlock, treeBlock, treeFromMarkdownList, treeFromTemplateData, treeToTemplateData, twoColumn, validateMarkdownDoc, validateMarkdownSource, videoPullQuote, videoWithCaption, wrapWithPersistentLayers, writeCustomTemplatesToFrontmatter, writeCustomThemesToFrontmatter } from './doc/index.js';
|
|
9
|
-
export { M as MaterializePageSectionOptions, a as MaterializePageSectionsOptions, P as PageMedia, b as PageRichText, c as PageSection, d as PageSectionDiagnostic, e as PageSectionItem, f as PageSectionMaterialization, g as PageSectionSource, h as PageSpatialKind, i as PageTransformHints, m as materializePageSection, j as materializePageSections, r as resolvePageStyle } from './materializePageSection-
|
|
7
|
+
export { E as EditorLayerMeta, I as ImageEditCanvas, a as ImageEditDoc, b as ImageEditLayer, c as ImageEditLayerKind, d as ImageEditMeta } from './ImageEditDoc-Cq2a3c30.js';
|
|
8
|
+
export { ASCII_CHAR_H, ASCII_CHAR_W, ASCII_DIAGRAM_FENCE_LANGS, ASCII_TIMELINE_FENCE_LANGS, AccentLayout, AsciiDiagram, AsciiDiagramDetection, AsciiDiagramEdge, AsciiDiagramNode, AsciiTimeline, AsciiTimelineDetection, AsciiTimelineEvent, AsciiTimelineLink, AsciiTimelineMarker, AsciiTimelineSide, AsciiTimelineStats, AsciiTimelineStyle, AsciiTimelineTrack, AudioSegmentTiming, BASE_INPUT_DESCRIPTORS, BLOCK_MEDIA_LAYOUT_POLICIES, BlockLayerMaterialization, BlockMediaLayoutPolicy, BuiltInTemplateName, CONTAINER_TEMPLATES, COVER_SLIDE_FRONTMATTER_KEYS, COVER_SLIDE_TEMPLATE_OPTIONS, ClipBox, ConnectorAnchor, ConnectorPort, ConnectorRouting, ConnectorSnapPoint, CoverBlockInput, CoverSlidePlayback, CoverSlideSettings, CoverSlideTemplate, CoverSlideTemplateOption, DEFAULT_COVER_SLIDE_SETTINGS, DEFAULT_LAYOUT, DIAGRAM_LABEL_HORIZONTAL_PADDING, DIAGRAM_LABEL_LINE_HEIGHT, DIAGRAM_LABEL_MIN_FONT_SIZE, DIAGRAM_LABEL_VERTICAL_PADDING, DataFenceParseResult, DeriveTemplateInputsOptions, DetectAsciiTimelineOptions, DiagramEdge, DiagramLabelFit, DiagramLayout, DiagramLayoutOptions, DiagramNodePosition, DrawingConnector, DrawingLayout, DrawingLayoutOptions, DrawingShape, DrawingShapeKind, EmbeddedVideo, ExpandDocBlocksOptions, ExtractedTableData, FirstImage, InputCoercion, LayerMaterializationDiagnostic, LayerMaterializationFailureMode, LayerMaterializationSource, LayoutLayerDefaults, LayoutLayersResult, MAX_COVER_SLIDE_DURATION_SECONDS, MarkdownToDocOptions, MarkdownValidationResult, MaterializeBlockLayersOptions, NarrationResolution, NativeMediaLayout, NoMediaLayout, PAGE_BASE_CSS, PATH_SHAPE_KINDS, PageSectionContext, PageSectionDraft, RenderAsciiDiagramOptions, RenderAsciiTimelineOptions, RenderTreeOptions, RepairResult, ResolvedPageBlock, RichListItem, RuntimeTemplateRegistry, SHAPE_NAMES, SectionExtractor, SupplementalMediaLayoutVariant, SupplementalMediaShape, SupplementalMediaVariantMatrix, TABLE_FED_TEMPLATES, TEMPLATE_AUTHORING_METADATA, TEMPLATE_INPUT_DESCRIPTORS, TEMPLATE_METADATA, TREE_FENCE_LANGS, TemplateAuthoringMetadata, TemplateAuthoringRole, TemplateBodyPolicy, TemplateInputDescriptor, TemplateMediaOwnership, TemplateMetadata, TemplateParamFinding, Tree, TreeDetection, TreeItem, TreeNode, UnconsumedMediaBehavior, ValidateOptions, adjustY, anchorPoint, applyNarrationTiming, applyRenderStyleToLayers, asciiCellToCanvas, asciiDiagramFromBlocks, asciiDiagramFromTemplateData, asciiDiagramToTemplateData, asciiTimelineToTemplateData, autoTemplatePreservesContent, bigText, buildPageCss, buildPageCssVars, buildRegistry, canvasToAsciiCell, clipEndpoints, clipPoint, coerceTemplateParams, comparisonBar, computeDiagramLayout, computeDrawingLayout, computeLayoutLayers, connectorPath, contentBlock, countBlocks, coverBlock, createAccentLayers, cssFilterForTreatment, dataTable, dateEvent, definitionCard, deriveTemplateInputs, detectAsciiDiagram, detectAsciiTimeline, detectTree, diagramBlock, docToMarkdown, drawingBlock, expandCoverBlock, expandDocBlocks, expandPersistentLayers, extractBlockquoteText, extractBodyPlainText, extractEmbeddedVideos, extractFirstEmbeddedVideo, extractFirstImage, extractImages, extractListItems, extractRichListItems, extractTableData, extractTableFromContents, factCard, fallbackBlockLayers, findFirstList, findFirstTable, fitBigTextSize, fitDiagramLabel, flattenBlocks, flattenRenderableBlocks, fullBleedQuote, getAccentLayout, getAnimationProgress, getAnimationStyle, getAvailableTemplates, getBlockBodyText, getBlockDepth, getBlockMediaLayoutPolicy, getDefaultAnimation, getDefaultAnimationDuration, getOverlayOpacity, getPersistentLayersFromTheme, getPinnedBlockMeta, getTemplateHint, getThemeFont, getTransitionClass, hasTemplate, imageWithCaption, isAsciiDiagramFence, isAsciiTimelineFence, isContainerTemplate, isDataFence, isEligibleAsciiFenceLang, isEligibleAsciiTimelineFenceLang, isEligibleTreeFenceLang, isExplicitDiagramLang, isExplicitTimelineLang, isExplicitTreeLang, isRepairableDiagram, isShapeName, isTemplatedPageBlock, isTreeFence, isWrappedFlowTimelineSource, layoutBlock, leftFeature, lineStyleDasharray, lintTemplateParams, listBlock, mapBlock, markdownToDoc, markerPath, materializeBlockLayers, nearestSnapPoint, normalizeShapeKind, pageStyleDataAttributes, parseAsciiDiagram, parseAsciiTimeline, parseAsciiTimelineWithStats, parseDataFence, parseTree, parseWrappedFlowTimeline, parseYamlSubset, photoGrid, pullQuote, quoteBlock, readCustomTemplatesFromFrontmatter, readCustomThemesFromFrontmatter, renderAsciiDiagram, renderAsciiTimeline, renderTree, repairAsciiDiagram, replaceDataFence, resolveAudioMapping, resolveColorScheme, resolveCoverSlideSettings, resolvePageBlock, resolvePersistentLayers, resolveTemplateName, resolveThemeForDoc, rightFeature, scaleAnimationDuration, scoreTextSimilarity, sectionExtractors, sectionHeader, shapePath, shouldUseShadow, snapEndpoints, snapPoints, statHighlight, templateRegistry, themeWantsAmbientMotion, themedEntrance, themedFontSize, themedImageTreatment, themedScrim, themedSurfaceGradient, timelineBlock, titleBlock, treeBlock, treeFromMarkdownList, treeFromTemplateData, treeToTemplateData, twoColumn, validateMarkdownDoc, validateMarkdownSource, videoPullQuote, videoWithCaption, wrapWithPersistentLayers, writeCustomTemplatesToFrontmatter, writeCustomThemesToFrontmatter } from './doc/index.js';
|
|
9
|
+
export { M as MaterializePageSectionOptions, a as MaterializePageSectionsOptions, P as PageMedia, b as PageRichText, c as PageSection, d as PageSectionDiagnostic, e as PageSectionItem, f as PageSectionMaterialization, g as PageSectionSource, h as PageSpatialKind, i as PageTransformHints, m as materializePageSection, j as materializePageSections, r as resolvePageStyle } from './materializePageSection-DgOFYge7.js';
|
|
10
10
|
export { calculateBearing, decodeGeohash, encodeGeohash, geohashOverlapsBounds, geohashToHierarchicalPath, getGeohash4Neighbors, getGeohashPath, getGeohashPrefix, getNeighbors, haversineDistance } from './spatial/index.js';
|
|
11
11
|
export { LocalForageAdapter, LocalForageAdapterOptions, LocalStorageAdapter, MemoryStorageAdapter, ScopedContentContainer, StorageAdapter, createMediaProviderFromContainer, scopeContainer } from './storage/index.js';
|
|
12
12
|
export { C as ContentContainer, a as ContentEntry, M as MemoryContentContainer, f as findDocumentPath } from './ContentContainer-B2w9sUoL.js';
|