@bendyline/squisq 2.13.2 → 2.13.4
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-CYTLtFEu.d.ts → Doc-DnRFE0EI.d.ts} +40 -2
- package/dist/{ImageEditDoc-DZ4k_O10.d.ts → ImageEditDoc-CadNz387.d.ts} +1 -1
- package/dist/{chunk-HE3HQZWU.js → chunk-6NWVLLMI.js} +104 -1
- package/dist/{chunk-56TW6HE6.js → chunk-BITSNRJH.js} +15 -10
- package/dist/{chunk-3A6YM375.js → chunk-D3JQMZUT.js} +8 -8
- package/dist/chunk-DOOUVVOM.js +78 -0
- package/dist/{chunk-FUQYQWQR.js → chunk-DRHJD6U4.js} +5 -5
- package/dist/{chunk-2GN67Q2T.js → chunk-FIPRGGXD.js} +1 -1
- package/dist/{chunk-YY3OQ3MI.js → chunk-J2NFT7GH.js} +475 -342
- package/dist/{chunk-7ZXCS3UU.js → chunk-JFJZ4NS6.js} +2 -2
- package/dist/{chunk-HGCIIXHP.js → chunk-POZCKPCO.js} +235 -4
- package/dist/doc/index.d.ts +134 -14
- package/dist/doc/index.js +17 -7
- 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 +5 -5
- package/dist/index.js +27 -17
- package/dist/jsonForm/index.d.ts +1 -1
- package/dist/markdown/index.js +11 -12
- package/dist/{materializePageSection-CDps_xUd.d.ts → materializePageSection-D84uA6Vk.d.ts} +1 -1
- package/dist/mediaEdit/index.d.ts +2 -2
- package/dist/narration/index.d.ts +1 -1
- package/dist/narration/index.js +5 -5
- package/dist/recommend/index.js +3 -2
- package/dist/schemas/index.d.ts +4 -4
- package/dist/{themeLibrary-CMm_jh3a.d.ts → themeLibrary-in0fafp4.d.ts} +1 -1
- package/dist/timing/index.d.ts +1 -1
- package/dist/transform/index.d.ts +2 -2
- package/dist/transform/index.js +6 -6
- package/package.json +1 -1
- package/dist/chunk-Y25EJEZN.js +0 -178
|
@@ -789,6 +789,13 @@ interface BigTextInput extends BaseTemplateBlock {
|
|
|
789
789
|
* vertical video's title clear of captions burned into the lower band.
|
|
790
790
|
*/
|
|
791
791
|
placement?: 'center' | 'upper' | 'lower';
|
|
792
|
+
/**
|
|
793
|
+
* What keeps the title legible over the image (default `bloom`, a radial
|
|
794
|
+
* shade tinted from the theme background). `frosted` leaves the photo clear
|
|
795
|
+
* and sets the title on a frosted-glass plate that hugs it, as the frosted
|
|
796
|
+
* cover does. Ignored without an image.
|
|
797
|
+
*/
|
|
798
|
+
backdrop?: 'bloom' | 'frosted';
|
|
792
799
|
}
|
|
793
800
|
/**
|
|
794
801
|
* Transcript block - one conversational beat: speaker (avatar + name)
|
|
@@ -977,6 +984,37 @@ interface LeftFeatureInput extends FeatureInputBase {
|
|
|
977
984
|
interface RightFeatureInput extends FeatureInputBase {
|
|
978
985
|
template: 'rightFeature';
|
|
979
986
|
}
|
|
987
|
+
/**
|
|
988
|
+
* Shared fields for the media-led templates. Like `content`, they take only
|
|
989
|
+
* a heading: the body and its media (images, video clips, hosted players,
|
|
990
|
+
* diagrams) come from the block's own markdown.
|
|
991
|
+
*/
|
|
992
|
+
interface MediaLedInputBase extends BaseTemplateBlock {
|
|
993
|
+
/** Heading shown with the body. */
|
|
994
|
+
title: string;
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* Top feature — the block's media spans the full width across the top, with
|
|
998
|
+
* the heading and complete body in a band below sized to the text. For wide
|
|
999
|
+
* media and portrait slides, where a side-by-side feature would halve it.
|
|
1000
|
+
*/
|
|
1001
|
+
interface TopFeatureInput extends MediaLedInputBase {
|
|
1002
|
+
template: 'topFeature';
|
|
1003
|
+
}
|
|
1004
|
+
/**
|
|
1005
|
+
* Bottom feature — the heading and complete body in a band across the top,
|
|
1006
|
+
* with the block's media spanning the full width below.
|
|
1007
|
+
*/
|
|
1008
|
+
interface BottomFeatureInput extends MediaLedInputBase {
|
|
1009
|
+
template: 'bottomFeature';
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* Media only — the block's media fills the slide, with no title, body or
|
|
1013
|
+
* caption. A block without media renders as a `content` slide instead.
|
|
1014
|
+
*/
|
|
1015
|
+
interface MediaOnlyInput extends MediaLedInputBase {
|
|
1016
|
+
template: 'mediaOnly';
|
|
1017
|
+
}
|
|
980
1018
|
/**
|
|
981
1019
|
* Map block - geographic map showing article location.
|
|
982
1020
|
*
|
|
@@ -1449,7 +1487,7 @@ type ChartTemplateInput = BarChartInput | ColumnChartInput | PieChartInput | Don
|
|
|
1449
1487
|
/**
|
|
1450
1488
|
* Union of all template block types.
|
|
1451
1489
|
*/
|
|
1452
|
-
type TemplateBlock = TitleBlockInput | SectionHeaderInput | BigTextInput | TranscriptBlockInput | ContentBlockInput | StatHighlightInput | QuoteBlockInput | FactCardInput | TwoColumnInput | DateEventInput | ImageWithCaptionInput | LeftFeatureInput | RightFeatureInput | MapBlockInput | FullBleedQuoteInput | ListBlockInput | PhotoGridInput | DefinitionCardInput | ComparisonBarInput | PullQuoteInput | VideoWithCaptionInput | VideoPullQuoteInput | DataTableInput | BarChartInput | ColumnChartInput | PieChartInput | DonutChartInput | LineChartInput | AreaChartInput | ScatterChartInput | DiagramBlockInput | TreeBlockInput | TimelineBlockInput | DrawingBlockInput | RawLayersInput;
|
|
1490
|
+
type TemplateBlock = TitleBlockInput | SectionHeaderInput | BigTextInput | TranscriptBlockInput | ContentBlockInput | StatHighlightInput | QuoteBlockInput | FactCardInput | TwoColumnInput | DateEventInput | ImageWithCaptionInput | LeftFeatureInput | RightFeatureInput | TopFeatureInput | BottomFeatureInput | MediaOnlyInput | MapBlockInput | FullBleedQuoteInput | ListBlockInput | PhotoGridInput | DefinitionCardInput | ComparisonBarInput | PullQuoteInput | VideoWithCaptionInput | VideoPullQuoteInput | DataTableInput | BarChartInput | ColumnChartInput | PieChartInput | DonutChartInput | LineChartInput | AreaChartInput | ScatterChartInput | DiagramBlockInput | TreeBlockInput | TimelineBlockInput | DrawingBlockInput | RawLayersInput;
|
|
1453
1491
|
/**
|
|
1454
1492
|
* A block can be either a raw Block or a TemplateBlock.
|
|
1455
1493
|
*/
|
|
@@ -3426,4 +3464,4 @@ declare function getBlockAtTime(blocks: Block[], time: number): Block | null;
|
|
|
3426
3464
|
*/
|
|
3427
3465
|
declare function getCaptionAtTime(captions: CaptionTrack | undefined, time: number): CaptionPhrase | null;
|
|
3428
3466
|
|
|
3429
|
-
export { type
|
|
3467
|
+
export { type FontFamilyKind as $, type AccentImage as A, type BarChartInput as B, type CaptionPhrase as C, type CustomTemplateLayer as D, type CustomTemplateValidationError as E, type CustomTemplateValidationResult as F, DARK_SURFACE as G, DEFAULT_DOC_FONT as H, DEFAULT_TITLE_FONT as I, type DataTableInput as J, type DateEventInput as K, type DeepPartial as L, type DefinitionCardInput as M, type DiagramBlockInput as N, type DiagramEdgeAnchor as O, type DiagramTemplateEdge as P, type DiagramTemplateNode as Q, type Doc as R, type DocBlock as S, type DocDiagnostic as T, type DonutChartInput as U, type DrawingBlockInput as V, FRONTMATTER_CUSTOM_TEMPLATES_KEY as W, FRONTMATTER_CUSTOM_THEMES_KEY as X, FRONTMATTER_MOTION_KEY as Y, type FactCardInput as Z, type FontFamily as _, type AccentPosition as a, type PersistentLayer as a$, type FullBleedQuoteInput as a0, type GradientBackgroundConfig as a1, type ImageBackgroundConfig as a2, type ImageLayer as a3, type ImageTreatment as a4, type ImageWithCaptionInput as a5, LIGHT_SURFACE as a6, type Layer as a7, type LayerRepeat as a8, type LayoutHints as a9, PAGE_DESIGN_FAMILIES as aA, PAGE_DIVIDERS as aB, PAGE_EMPHASES as aC, PAGE_EYEBROWS as aD, PAGE_HEADING_CASES as aE, PAGE_HEADING_SCALES as aF, PAGE_HEADING_UNDERLINES as aG, PAGE_HERO_STYLES as aH, PAGE_IMAGE_FRAMINGS as aI, PAGE_NUMERAL_STYLES as aJ, PAGE_PATTERNS as aK, PAGE_QUOTE_MARKS as aL, PAGE_SECTION_KINDS as aM, PAGE_SECTION_SPACINGS as aN, PAGE_SHADOWS as aO, PAGE_VARIANTS as aP, type PageAccentRotation as aQ, type PageBackground as aR, type PageDesignFamily as aS, type PageEmphasis as aT, type PageHeadingTreatment as aU, type PageSectionKind as aV, type PageSectionOverride as aW, type PageTokens as aX, type PageVariant as aY, type PathLayer as aZ, type PatternBackgroundConfig as a_, type LeftFeatureInput as aa, type LineChartInput as ab, type LinearGradient as ac, type ListBlockInput as ad, MOTION_PROFILES as ae, type MapBlockInput as af, type MapLayer as ag, type MapMarker as ah, type MapTileStyle as ai, type MarkerStyle as aj, type MediaClip as ak, type MediaCrop as al, type MediaCut as am, type MediaEdits as an, type MediaOnlyInput as ao, type MediaScheduleOptions as ap, type MermaidLayer as aq, type MotionEntrance as ar, type MotionOrigin as as, type MotionProfile as at, type MotionProfileName as au, type MotionSpec as av, type MotionState as aw, PAGE_ACCENT_STRATEGIES as ax, PAGE_BACKGROUNDS as ay, PAGE_BACKGROUND_RHYTHMS as az, type AmbientGradientConfig as b, type VideoLayer as b$, type PersistentLayerConfig as b0, type PersistentLayerTemplate as b1, type PersistentLayerTemplateConfig as b2, type PersistentLayerTemplateType as b3, type PhotoGridInput as b4, type PieChartInput as b5, type PipStyle as b6, type Position as b7, type ProgressIndicatorConfig as b8, type PromotedBodyAnnotation as b9, type TextParagraphList as bA, type TextStyle as bB, type Theme as bC, type ThemeColorPalette as bD, type ThemeColorScheme as bE, type ThemePageStyle as bF, type ThemeRegistry as bG, type ThemeSchemaVersion as bH, type ThemeSeedColors as bI, type ThemeStyle as bJ, type ThemeTypography as bK, type TimelineBlockInput as bL, type TimelineTemplateEvent as bM, type TimelineTemplateLink as bN, type TimelineTemplateTrack as bO, type TitleBlockInput as bP, type TitleCaptionConfig as bQ, type TopFeatureInput as bR, type TranscriptBlockInput as bS, type TreeBlockInput as bT, type TreeLayer as bU, type TreeLayerItem as bV, type TreeLayerStyle as bW, type TreeTemplateItem as bX, type TwoColumnInput as bY, VIEWPORT_PRESETS as bZ, type VideoEmbedLayer as b_, type PullQuoteInput as ba, type QuoteBlockInput as bb, type RawLayersInput as bc, type RenderStyle as bd, type RightFeatureInput as be, type ScatterChartInput as bf, type ScheduledClip as bg, type SectionHeaderInput as bh, type ShapeFilter as bi, type ShapeLayer as bj, type ShapePattern as bk, type SolidBackgroundConfig as bl, type StartBlockConfig as bm, type StatHighlightInput as bn, type SurfaceScheme as bo, type SvgLayer as bp, THEME_SCHEMA_VERSION as bq, type TableLayer as br, type TableLayerStyle as bs, type TemplateBlock as bt, type TemplateContext as bu, type TemplateFunction as bv, type TemplateRegistry as bw, type TextFlow as bx, type TextLayer as by, type TextParagraph as bz, type Animation as c, type VideoPipPosition as c0, type VideoPipShape as c1, type VideoPipSize as c2, type VideoPlacement as c3, type VideoPresentation as c4, type VideoPullQuoteInput as c5, type VideoWithCaptionInput as c6, type ViewportConfig as c7, type ViewportOrientation as c8, type ViewportPreset as c9, scaledFontSize as cA, scheduleMediaClip as cB, validateCustomTemplateDefinition as cC, type MediaFxOpId as cD, type MediaFxChain as cE, MEDIA_EDIT_PARAMS as cF, MEDIA_FX_ORDER as cG, MEDIA_FX_SPECS as cH, type MediaEditParamKey as cI, type MediaEditParamValues as cJ, type MediaFxOp as cK, formatMediaNumber as cL, hasRenderableFx as cM, mediaEditHtmlAttribute as cN, mediaEditValuesFromAttributes as cO, mediaEditValuesFromParams as cP, mediaRenderKey as cQ, normalizeMediaCrop as cR, normalizeMediaCuts as cS, parseMediaCrop as cT, parseMediaCuts as cU, parseMediaEdits as cV, parseMediaFx as cW, serializeMediaCrop as cX, serializeMediaCuts as cY, serializeMediaEdits as cZ, serializeMediaFx as c_, type VignetteConfig as ca, applySurface as cb, calculateDuration as cc, calculateFontScale as cd, createTemplateContext as ce, createTheme as cf, createThemeRegistry as cg, getAspectRatioString as ch, getBlockAtTime as ci, getCaptionAtTime as cj, getDocPlaybackDuration as ck, getLayoutHints as cl, getSafeTextBounds as cm, getSegmentAtTime as cn, getTwoColumnPositions as co, getViewport as cp, getViewportOrientation as cq, isCustomTemplateDefinition as cr, isMotionProfileName as cs, isPersistentLayerTemplate as ct, isTemplateBlock as cu, scaledFontSize$1 as cv, readFrontmatterMotion as cw, resolveMediaSchedule as cx, resolveMotionForDoc as cy, resolveMotionProfile as cz, type AnimationType as d, 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 ChartBaseFields as q, type ChartTemplateInput as r, type ColorScheme as s, type ColumnChartInput as t, type ComparisonBarInput as u, type ContentBlockInput as v, type CornerBrandingConfig as w, type CountUpSpec as x, type CreateTemplateContextOptions as y, type CustomTemplateDefinition as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a3 as ImageLayer, by as TextLayer, bj as ShapeLayer, aZ as PathLayer } from './Doc-DnRFE0EI.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* ImageEditDoc — JSON document describing a layered, editable image.
|
|
@@ -2331,6 +2331,101 @@ function svgIslandDataUrl(island, options = {}) {
|
|
|
2331
2331
|
return url;
|
|
2332
2332
|
}
|
|
2333
2333
|
|
|
2334
|
+
// src/markdown/attrTokens.ts
|
|
2335
|
+
var DQ_RUN = `"(?:[^"\\\\]|\\\\.)*"`;
|
|
2336
|
+
var SQ_RUN = `'(?:[^'\\\\]|\\\\.)*'`;
|
|
2337
|
+
var TEMPLATE_STRICT_RE = new RegExp(
|
|
2338
|
+
`\\s*\\{\\[((?:[^\\]"']|${DQ_RUN}|${SQ_RUN})*)\\]\\}[\\s\\]}]*$`
|
|
2339
|
+
);
|
|
2340
|
+
var TEMPLATE_LEGACY_RE = /\s*\{\[([^\]]*)\]\}[\s\]}]*$/;
|
|
2341
|
+
var PANDOC_STRICT_RE = new RegExp(`\\s*\\{(?!\\[)((?:[^}"']|${DQ_RUN}|${SQ_RUN})*)\\}\\s*$`);
|
|
2342
|
+
var PANDOC_LEGACY_RE = /\s*\{(?!\[)([^}]*)\}\s*$/;
|
|
2343
|
+
function matchTrailing(text, strict, legacy) {
|
|
2344
|
+
const m = strict.exec(text) ?? legacy.exec(text);
|
|
2345
|
+
return m ? { inner: m[1], index: m.index } : null;
|
|
2346
|
+
}
|
|
2347
|
+
function matchTrailingTemplateAnnotation(text) {
|
|
2348
|
+
return matchTrailing(text, TEMPLATE_STRICT_RE, TEMPLATE_LEGACY_RE);
|
|
2349
|
+
}
|
|
2350
|
+
function matchTrailingPandocAttr(text) {
|
|
2351
|
+
return matchTrailing(text, PANDOC_STRICT_RE, PANDOC_LEGACY_RE);
|
|
2352
|
+
}
|
|
2353
|
+
var WHITESPACE_RE = /\s/;
|
|
2354
|
+
function tokenizeAttrTokens(input) {
|
|
2355
|
+
const tokens = [];
|
|
2356
|
+
let i = 0;
|
|
2357
|
+
const n = input.length;
|
|
2358
|
+
while (i < n) {
|
|
2359
|
+
while (i < n && WHITESPACE_RE.test(input[i])) i++;
|
|
2360
|
+
if (i >= n) break;
|
|
2361
|
+
let token = "";
|
|
2362
|
+
while (i < n && !WHITESPACE_RE.test(input[i])) {
|
|
2363
|
+
const ch = input[i];
|
|
2364
|
+
const atValueStart = token === "" || token.endsWith("=");
|
|
2365
|
+
if ((ch === '"' || ch === "'") && atValueStart) {
|
|
2366
|
+
token += ch;
|
|
2367
|
+
i++;
|
|
2368
|
+
while (i < n && input[i] !== ch) {
|
|
2369
|
+
if (input[i] === "\\" && i + 1 < n && (input[i + 1] === ch || input[i + 1] === "\\")) {
|
|
2370
|
+
token += input[i] + input[i + 1];
|
|
2371
|
+
i += 2;
|
|
2372
|
+
} else {
|
|
2373
|
+
token += input[i];
|
|
2374
|
+
i++;
|
|
2375
|
+
}
|
|
2376
|
+
}
|
|
2377
|
+
if (i < n && input[i] === ch) {
|
|
2378
|
+
token += ch;
|
|
2379
|
+
i++;
|
|
2380
|
+
}
|
|
2381
|
+
} else {
|
|
2382
|
+
token += ch;
|
|
2383
|
+
i++;
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
if (token) tokens.push(token);
|
|
2387
|
+
}
|
|
2388
|
+
return tokens;
|
|
2389
|
+
}
|
|
2390
|
+
var DQ_UNESCAPE_RE = /\\([\\"])/g;
|
|
2391
|
+
var SQ_UNESCAPE_RE = /\\([\\'])/g;
|
|
2392
|
+
function unquoteAttrValue(raw) {
|
|
2393
|
+
if (raw.length >= 2) {
|
|
2394
|
+
const q = raw[0];
|
|
2395
|
+
if ((q === '"' || q === "'") && raw.endsWith(q)) {
|
|
2396
|
+
const body = raw.slice(1, -1);
|
|
2397
|
+
return body.replace(q === '"' ? DQ_UNESCAPE_RE : SQ_UNESCAPE_RE, "$1");
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
return raw;
|
|
2401
|
+
}
|
|
2402
|
+
function splitKeyValueToken(token) {
|
|
2403
|
+
const eqIdx = token.indexOf("=");
|
|
2404
|
+
if (eqIdx <= 0) return null;
|
|
2405
|
+
return { key: token.slice(0, eqIdx), value: unquoteAttrValue(token.slice(eqIdx + 1)) };
|
|
2406
|
+
}
|
|
2407
|
+
var NEEDS_QUOTING_RE = /[\s"'[\]{}]/;
|
|
2408
|
+
var DQ_ESCAPE_RE = /[\\"]/g;
|
|
2409
|
+
var SQ_ESCAPE_RE = /[\\']/g;
|
|
2410
|
+
function needsQuoting(value) {
|
|
2411
|
+
return value === "" || NEEDS_QUOTING_RE.test(value);
|
|
2412
|
+
}
|
|
2413
|
+
function quoteAttrValue(value) {
|
|
2414
|
+
if (!needsQuoting(value)) return value;
|
|
2415
|
+
if (value.includes('"') && !value.includes("'")) {
|
|
2416
|
+
return `'${value.replace(SQ_ESCAPE_RE, (ch) => `\\${ch}`)}'`;
|
|
2417
|
+
}
|
|
2418
|
+
return `"${value.replace(DQ_ESCAPE_RE, (ch) => `\\${ch}`)}"`;
|
|
2419
|
+
}
|
|
2420
|
+
function serializeAnnotation(template, params) {
|
|
2421
|
+
const parts = [];
|
|
2422
|
+
if (template) parts.push(template);
|
|
2423
|
+
for (const [key, value] of Object.entries(params ?? {})) {
|
|
2424
|
+
parts.push(`${key}=${quoteAttrValue(value)}`);
|
|
2425
|
+
}
|
|
2426
|
+
return `{[${parts.join(" ")}]}`;
|
|
2427
|
+
}
|
|
2428
|
+
|
|
2334
2429
|
export {
|
|
2335
2430
|
mediaKindForUrl,
|
|
2336
2431
|
parseHtmlToNodes,
|
|
@@ -2373,5 +2468,13 @@ export {
|
|
|
2373
2468
|
svgSourceFromDataUrl,
|
|
2374
2469
|
parseSvgIsland,
|
|
2375
2470
|
svgIslandMarkup,
|
|
2376
|
-
svgIslandDataUrl
|
|
2471
|
+
svgIslandDataUrl,
|
|
2472
|
+
matchTrailingTemplateAnnotation,
|
|
2473
|
+
matchTrailingPandocAttr,
|
|
2474
|
+
tokenizeAttrTokens,
|
|
2475
|
+
unquoteAttrValue,
|
|
2476
|
+
splitKeyValueToken,
|
|
2477
|
+
needsQuoting,
|
|
2478
|
+
quoteAttrValue,
|
|
2479
|
+
serializeAnnotation
|
|
2377
2480
|
};
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-FTN6SGW5.js";
|
|
4
4
|
import {
|
|
5
5
|
applySavedPresentation
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DRHJD6U4.js";
|
|
7
7
|
import {
|
|
8
8
|
SHAPE_NAMES,
|
|
9
9
|
buildChartData,
|
|
@@ -25,14 +25,13 @@ import {
|
|
|
25
25
|
nearestName,
|
|
26
26
|
normalizeShapeKind,
|
|
27
27
|
parseDataFence,
|
|
28
|
-
parseStandaloneAnnotation,
|
|
29
28
|
placeLayersInRect,
|
|
30
29
|
readCustomThemesFromFrontmatter,
|
|
31
30
|
resolvePersistentLayers,
|
|
32
31
|
templateRegistry,
|
|
33
32
|
writeCustomTemplatesToFrontmatter,
|
|
34
33
|
writeCustomThemesToFrontmatter
|
|
35
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-J2NFT7GH.js";
|
|
36
35
|
import {
|
|
37
36
|
ASCII_TREE_VOCAB,
|
|
38
37
|
ASCII_VOCAB,
|
|
@@ -51,10 +50,11 @@ import {
|
|
|
51
50
|
isPictureFence,
|
|
52
51
|
isVert,
|
|
53
52
|
parseAsciiDiagram,
|
|
53
|
+
parseStandaloneAnnotation,
|
|
54
54
|
toCells,
|
|
55
55
|
toGrid,
|
|
56
56
|
traceBoxes
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-POZCKPCO.js";
|
|
58
58
|
import {
|
|
59
59
|
iconMarker
|
|
60
60
|
} from "./chunk-7ZAAICW4.js";
|
|
@@ -87,14 +87,13 @@ import {
|
|
|
87
87
|
} from "./chunk-L7QZORLB.js";
|
|
88
88
|
import {
|
|
89
89
|
parseMarkdown
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-D3JQMZUT.js";
|
|
91
91
|
import {
|
|
92
92
|
TABLE_FED_TEMPLATES,
|
|
93
93
|
TEMPLATE_ALIASES,
|
|
94
94
|
isContainerTemplate,
|
|
95
|
-
resolveTemplateName
|
|
96
|
-
|
|
97
|
-
} from "./chunk-Y25EJEZN.js";
|
|
95
|
+
resolveTemplateName
|
|
96
|
+
} from "./chunk-DOOUVVOM.js";
|
|
98
97
|
import {
|
|
99
98
|
KNOWN_BLOCK_META_KEYS,
|
|
100
99
|
coerceAnnotationValues,
|
|
@@ -104,8 +103,9 @@ import {
|
|
|
104
103
|
isVideoEmbedUrl,
|
|
105
104
|
parseHtmlToNodes,
|
|
106
105
|
parseVideoEmbedUrl,
|
|
107
|
-
readFrontmatterThemeId
|
|
108
|
-
|
|
106
|
+
readFrontmatterThemeId,
|
|
107
|
+
serializeAnnotation
|
|
108
|
+
} from "./chunk-6NWVLLMI.js";
|
|
109
109
|
import {
|
|
110
110
|
BUILD_PARAM_KEYS,
|
|
111
111
|
buildSpecParams
|
|
@@ -1630,6 +1630,11 @@ var sectionExtractors = {
|
|
|
1630
1630
|
imageWithCaption,
|
|
1631
1631
|
leftFeature,
|
|
1632
1632
|
rightFeature,
|
|
1633
|
+
// A page reads top to bottom, so a media-led slide is its prose section:
|
|
1634
|
+
// the heading and body, with the body's media inline where it was written.
|
|
1635
|
+
topFeature: content,
|
|
1636
|
+
bottomFeature: content,
|
|
1637
|
+
mediaOnly: content,
|
|
1633
1638
|
map,
|
|
1634
1639
|
fullBleedQuote,
|
|
1635
1640
|
list,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
isReservedAnnotationToken
|
|
2
|
+
isReservedAnnotationToken
|
|
3
|
+
} from "./chunk-DOOUVVOM.js";
|
|
4
|
+
import {
|
|
5
|
+
coerceAnnotationValues,
|
|
3
6
|
matchTrailingPandocAttr,
|
|
4
7
|
matchTrailingTemplateAnnotation,
|
|
8
|
+
parseFrontmatter,
|
|
9
|
+
parseHtmlToNodes,
|
|
5
10
|
quoteAttrValue,
|
|
11
|
+
sanitizeUrl,
|
|
6
12
|
splitKeyValueToken,
|
|
7
13
|
tokenizeAttrTokens
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
coerceAnnotationValues,
|
|
11
|
-
parseFrontmatter,
|
|
12
|
-
parseHtmlToNodes,
|
|
13
|
-
sanitizeUrl
|
|
14
|
-
} from "./chunk-HE3HQZWU.js";
|
|
14
|
+
} from "./chunk-6NWVLLMI.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveIcon
|
|
17
17
|
} from "./chunk-CZ7AUSLI.js";
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// src/doc/templates/templateNames.ts
|
|
2
|
+
var TEMPLATE_ALIASES = Object.freeze({
|
|
3
|
+
titleBlock: "title",
|
|
4
|
+
quoteBlock: "quote",
|
|
5
|
+
mapBlock: "map",
|
|
6
|
+
listBlock: "list",
|
|
7
|
+
diagramBlock: "diagram",
|
|
8
|
+
diagramNode: "diagram"
|
|
9
|
+
});
|
|
10
|
+
function resolveTemplateName(name) {
|
|
11
|
+
return TEMPLATE_ALIASES[name] ?? name;
|
|
12
|
+
}
|
|
13
|
+
var TABLE_FED_TEMPLATES = /* @__PURE__ */ new Set([
|
|
14
|
+
"dataTable",
|
|
15
|
+
"barChart",
|
|
16
|
+
"columnChart",
|
|
17
|
+
"pieChart",
|
|
18
|
+
"donutChart",
|
|
19
|
+
"lineChart",
|
|
20
|
+
"areaChart",
|
|
21
|
+
"scatterChart"
|
|
22
|
+
]);
|
|
23
|
+
var CONTAINER_TEMPLATES = /* @__PURE__ */ new Set(["diagram", "drawing", "layout"]);
|
|
24
|
+
function isContainerTemplate(name) {
|
|
25
|
+
return !!name && CONTAINER_TEMPLATES.has(resolveTemplateName(name));
|
|
26
|
+
}
|
|
27
|
+
var TEMPLATE_TOKEN_NAMES = /* @__PURE__ */ new Set([
|
|
28
|
+
"title",
|
|
29
|
+
"sectionHeader",
|
|
30
|
+
"bigText",
|
|
31
|
+
"transcript",
|
|
32
|
+
"content",
|
|
33
|
+
"statHighlight",
|
|
34
|
+
"quote",
|
|
35
|
+
"factCard",
|
|
36
|
+
"twoColumn",
|
|
37
|
+
"dateEvent",
|
|
38
|
+
"imageWithCaption",
|
|
39
|
+
"leftFeature",
|
|
40
|
+
"rightFeature",
|
|
41
|
+
"topFeature",
|
|
42
|
+
"bottomFeature",
|
|
43
|
+
"mediaOnly",
|
|
44
|
+
"map",
|
|
45
|
+
"fullBleedQuote",
|
|
46
|
+
"list",
|
|
47
|
+
"photoGrid",
|
|
48
|
+
"definitionCard",
|
|
49
|
+
"comparisonBar",
|
|
50
|
+
"pullQuote",
|
|
51
|
+
"videoWithCaption",
|
|
52
|
+
"videoPullQuote",
|
|
53
|
+
"dataTable",
|
|
54
|
+
"barChart",
|
|
55
|
+
"columnChart",
|
|
56
|
+
"pieChart",
|
|
57
|
+
"donutChart",
|
|
58
|
+
"lineChart",
|
|
59
|
+
"areaChart",
|
|
60
|
+
"scatterChart",
|
|
61
|
+
"diagram",
|
|
62
|
+
"tree",
|
|
63
|
+
"timeline",
|
|
64
|
+
"layout",
|
|
65
|
+
"drawing"
|
|
66
|
+
]);
|
|
67
|
+
function isReservedAnnotationToken(token) {
|
|
68
|
+
return TEMPLATE_TOKEN_NAMES.has(resolveTemplateName(token));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
TEMPLATE_ALIASES,
|
|
73
|
+
resolveTemplateName,
|
|
74
|
+
TABLE_FED_TEMPLATES,
|
|
75
|
+
CONTAINER_TEMPLATES,
|
|
76
|
+
isContainerTemplate,
|
|
77
|
+
isReservedAnnotationToken
|
|
78
|
+
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
flattenRenderableBlocks,
|
|
5
5
|
getPinnedBlockMeta,
|
|
6
6
|
markdownToDoc
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-J2NFT7GH.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveTemplateInputs,
|
|
10
10
|
extractImages,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
isAsciiTimelineFence,
|
|
13
13
|
isPictureFence,
|
|
14
14
|
isTreeFence
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-POZCKPCO.js";
|
|
16
16
|
import {
|
|
17
17
|
extractContent,
|
|
18
18
|
mapElementToBlock,
|
|
@@ -24,15 +24,15 @@ import {
|
|
|
24
24
|
} from "./chunk-WNEH3BZP.js";
|
|
25
25
|
import {
|
|
26
26
|
parseMarkdown
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-D3JQMZUT.js";
|
|
28
28
|
import {
|
|
29
29
|
isContainerTemplate
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-DOOUVVOM.js";
|
|
31
31
|
import {
|
|
32
32
|
extractPlainText,
|
|
33
33
|
getChildren,
|
|
34
34
|
stringifyHtmlNodes
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6NWVLLMI.js";
|
|
36
36
|
import {
|
|
37
37
|
parseBuildSpec
|
|
38
38
|
} from "./chunk-P53Z4RYC.js";
|