@bendyline/squisq 2.11.3 → 2.11.5
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-Dy6o3neL.d.ts → Doc-BkxT7G80.d.ts} +21 -6
- package/dist/{ImageEditDoc-iIG0_ea6.d.ts → ImageEditDoc-C8ZB54Vv.d.ts} +1 -1
- package/dist/{chunk-PWBXEZE3.js → chunk-2P44EZLI.js} +1 -1
- package/dist/{chunk-BQVTXRAN.js → chunk-AIB5WEK2.js} +5609 -4791
- package/dist/{chunk-6ATZOUCQ.js → chunk-C3NAY5YP.js} +8 -3
- package/dist/{chunk-UBFT2CDQ.js → chunk-CW24CH7I.js} +1 -1
- package/dist/{chunk-ECOSKKMS.js → chunk-NUS5YAI5.js} +8 -21
- package/dist/{chunk-O7JILDEF.js → chunk-X7BNDUNI.js} +1 -1
- package/dist/{chunk-64I44JAP.js → chunk-XJXBI3N5.js} +2 -2
- package/dist/{chunk-AE3IUKMM.js → chunk-ZSU5DJLX.js} +1 -1
- package/dist/doc/index.d.ts +124 -16
- package/dist/doc/index.js +5 -5
- 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 +6 -5
- package/dist/index.js +8 -8
- package/dist/jsonForm/index.d.ts +1 -1
- package/dist/markdown/index.js +3 -3
- package/dist/{materializePageSection-BEegGWnv.d.ts → materializePageSection-Dp2aHFbc.d.ts} +1 -1
- package/dist/narration/index.d.ts +1 -1
- package/dist/narration/index.js +4 -4
- package/dist/proof/index.d.ts +3 -45
- package/dist/recommend/index.d.ts +6 -0
- package/dist/recommend/index.js +2 -2
- package/dist/review/index.d.ts +141 -0
- package/dist/review/index.js +29 -0
- package/dist/schemas/index.d.ts +4 -4
- package/dist/{themeLibrary-i8f6QydX.d.ts → themeLibrary-BbSjnGmd.d.ts} +1 -1
- package/dist/transform/index.d.ts +2 -2
- package/dist/transform/index.js +2 -2
- package/dist/types-BQWu0gzi.d.ts +46 -0
- package/package.json +6 -1
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
extractPlainText,
|
|
3
3
|
findNodesByType,
|
|
4
4
|
walkMarkdownTree
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-X7BNDUNI.js";
|
|
6
6
|
|
|
7
7
|
// src/doc/asciiDiagram/chars.ts
|
|
8
8
|
function toCells(s) {
|
|
@@ -2470,7 +2470,8 @@ var EMPTY_PROFILE = Object.freeze({
|
|
|
2470
2470
|
hasTable: false,
|
|
2471
2471
|
hasDate: false,
|
|
2472
2472
|
hasNumberHighlight: false,
|
|
2473
|
-
wordCount: 0
|
|
2473
|
+
wordCount: 0,
|
|
2474
|
+
hasCompoundBody: false
|
|
2474
2475
|
});
|
|
2475
2476
|
var DATE_PATTERNS = [
|
|
2476
2477
|
/\b(January|February|March|April|May|June|July|August|September|October|November|December)\s+(\d{1,2},?\s+)?\d{4}\b/i,
|
|
@@ -2596,13 +2597,15 @@ function profileBlockContents(nodes) {
|
|
|
2596
2597
|
hasDate,
|
|
2597
2598
|
hasNumberHighlight,
|
|
2598
2599
|
wordCount,
|
|
2600
|
+
hasCompoundBody: nodes.length > 1 && nodes.some((node) => node.type !== "paragraph"),
|
|
2599
2601
|
hasAsciiDiagram,
|
|
2600
2602
|
hasTimeline,
|
|
2601
2603
|
hasTree
|
|
2602
2604
|
};
|
|
2603
2605
|
}
|
|
2604
|
-
var UNIVERSAL_DEFAULTS = ["title", "sectionHeader", "factCard", "twoColumn"];
|
|
2606
|
+
var UNIVERSAL_DEFAULTS = ["title", "sectionHeader", "content", "factCard", "twoColumn"];
|
|
2605
2607
|
function recommendedNamesForProfile(profile) {
|
|
2608
|
+
if (profile.hasCompoundBody) return ["content"];
|
|
2606
2609
|
const names = /* @__PURE__ */ new Set();
|
|
2607
2610
|
let anyContentSignal = false;
|
|
2608
2611
|
if (profile.hasAsciiDiagram) {
|
|
@@ -2659,12 +2662,14 @@ function recommendedNamesForProfile(profile) {
|
|
|
2659
2662
|
if (anyContentSignal) {
|
|
2660
2663
|
names.add("title");
|
|
2661
2664
|
names.add("sectionHeader");
|
|
2665
|
+
names.add("content");
|
|
2662
2666
|
} else {
|
|
2663
2667
|
for (const n of UNIVERSAL_DEFAULTS) names.add(n);
|
|
2664
2668
|
}
|
|
2665
2669
|
return Array.from(names);
|
|
2666
2670
|
}
|
|
2667
2671
|
function pickAutoTemplate(profile, blockIndex = 0) {
|
|
2672
|
+
if (profile.hasCompoundBody) return void 0;
|
|
2668
2673
|
if (profile.hasAsciiDiagram) return "diagram";
|
|
2669
2674
|
if (profile.hasTimeline) return "timeline";
|
|
2670
2675
|
if (profile.hasTree) return "tree";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
templateRegistry,
|
|
31
31
|
writeCustomTemplatesToFrontmatter,
|
|
32
32
|
writeCustomThemesToFrontmatter
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-AIB5WEK2.js";
|
|
34
34
|
import {
|
|
35
35
|
iconMarker
|
|
36
36
|
} from "./chunk-7ZAAICW4.js";
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
toCells,
|
|
51
51
|
toGrid,
|
|
52
52
|
traceBoxes
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-C3NAY5YP.js";
|
|
54
54
|
import {
|
|
55
55
|
defaultPageStyle,
|
|
56
56
|
resolveMediaSchedule
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
} from "./chunk-BAOV476U.js";
|
|
77
77
|
import {
|
|
78
78
|
parseMarkdown
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-CW24CH7I.js";
|
|
80
80
|
import {
|
|
81
81
|
KNOWN_BLOCK_META_KEYS,
|
|
82
82
|
TABLE_FED_TEMPLATES,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
getChildren,
|
|
92
92
|
parseHtmlToNodes,
|
|
93
93
|
readFrontmatterThemeId
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-X7BNDUNI.js";
|
|
95
95
|
import {
|
|
96
96
|
estimateTimeFromText
|
|
97
97
|
} from "./chunk-67L6WRJN.js";
|
|
@@ -769,19 +769,6 @@ function collectAllDocImages(blocks) {
|
|
|
769
769
|
walkBlocks(blocks);
|
|
770
770
|
return images;
|
|
771
771
|
}
|
|
772
|
-
function extractListItems(contents) {
|
|
773
|
-
if (!contents) return [];
|
|
774
|
-
const items = [];
|
|
775
|
-
for (const node of contents) {
|
|
776
|
-
if (node.type === "list") {
|
|
777
|
-
for (const item of node.children) {
|
|
778
|
-
const text = extractPlainText(item).trim();
|
|
779
|
-
if (text) items.push(text);
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
return items;
|
|
784
|
-
}
|
|
785
772
|
function getTemplateDefaults(templateName, headingText, block) {
|
|
786
773
|
const body = extractBodyText(block.contents);
|
|
787
774
|
switch (templateName) {
|
|
@@ -801,10 +788,10 @@ function getTemplateDefaults(templateName, headingText, block) {
|
|
|
801
788
|
return { fact: headingText, explanation: body || headingText };
|
|
802
789
|
case "comparisonBar":
|
|
803
790
|
return { leftLabel: "A", leftValue: 60, rightLabel: "B", rightValue: 40 };
|
|
804
|
-
case "list":
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
791
|
+
case "list":
|
|
792
|
+
return deriveTemplateInputs(templateName, headingText, block.contents) ?? {
|
|
793
|
+
items: ["Item 1", "Item 2", "Item 3"]
|
|
794
|
+
};
|
|
808
795
|
case "definitionCard":
|
|
809
796
|
return { term: headingText, definition: body || headingText };
|
|
810
797
|
case "dateEvent":
|
|
@@ -145,7 +145,7 @@ function extractPlainText(node) {
|
|
|
145
145
|
return node.value;
|
|
146
146
|
}
|
|
147
147
|
const children = getChildren(node);
|
|
148
|
-
const separator = node.type === "list" || node.type === "listItem" ? "\n" : "";
|
|
148
|
+
const separator = node.type === "list" || node.type === "listItem" || node.type === "table" ? "\n" : node.type === "tableRow" ? " " : "";
|
|
149
149
|
return children.map(extractPlainText).join(separator);
|
|
150
150
|
}
|
|
151
151
|
function countNodes(node) {
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
assertMarkdownDocumentWithinLimits,
|
|
3
3
|
parseMarkdown,
|
|
4
4
|
toMdast
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CW24CH7I.js";
|
|
6
6
|
import {
|
|
7
7
|
formatFrontmatterYaml,
|
|
8
8
|
getChildren,
|
|
9
9
|
splitFrontmatterBlock
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-X7BNDUNI.js";
|
|
11
11
|
|
|
12
12
|
// src/markdown/stringify.ts
|
|
13
13
|
import { unified } from "unified";
|
package/dist/doc/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { bb as TemplateBlock, bc as TemplateContext, a3 as Layer, w as CustomTemplateDefinition, be as TemplateRegistry, bh as Theme, bM as ViewportConfig, aL as PersistentLayerConfig, P as DocBlock, bN 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, bC 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, bL as VideoWithCaptionInput, bK as VideoPullQuoteInput, G as DataTableInput, K as DiagramBlockInput, bx 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-
|
|
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, bD as VIEWPORT_PRESETS, bO as ViewportPreset, bT as createTemplateContext, b_ as getLayoutHints, c1 as getTwoColumnPositions, c2 as getViewport, c3 as getViewportOrientation, c6 as isTemplateBlock, c9 as scaledFontSize } from '../Doc-
|
|
1
|
+
import { bb as TemplateBlock, bc as TemplateContext, a3 as Layer, w as CustomTemplateDefinition, be as TemplateRegistry, bh as Theme, bM as ViewportConfig, aL as PersistentLayerConfig, P as DocBlock, bN 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, bC 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, bL as VideoWithCaptionInput, bK as VideoPullQuoteInput, G as DataTableInput, K as DiagramBlockInput, bx 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-BkxT7G80.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, bD as VIEWPORT_PRESETS, bO as ViewportPreset, bT as createTemplateContext, b_ as getLayoutHints, c1 as getTwoColumnPositions, c2 as getViewport, c3 as getViewportOrientation, c6 as isTemplateBlock, c9 as scaledFontSize } from '../Doc-BkxT7G80.js';
|
|
3
3
|
import { L as MarkdownNode, a5 as TransitionType, a4 as TransitionDirection, M as MarkdownBlockNode, r as MarkdownHeading, n as MarkdownDocument, V as MarkdownTable, i as MarkdownCodeBlock, G as MarkdownList } from '../types-Be6sBUBx.js';
|
|
4
4
|
import { C as CoercedBlockMeta } from '../annotationCoercion-Ckqpu33y.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-Dp2aHFbc.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-Dp2aHFbc.js';
|
|
7
7
|
import { C as ContentContainer } from '../ContentContainer-B2w9sUoL.js';
|
|
8
8
|
import { V as ViewIssue } from '../viewState-lTZS-hP_.js';
|
|
9
|
-
export { D as DEFAULT_THEME, g as getAvailableThemes, b as getThemeSummaries, r as resolveTheme } from '../themeLibrary-
|
|
9
|
+
export { D as DEFAULT_THEME, g as getAvailableThemes, b as getThemeSummaries, r as resolveTheme } from '../themeLibrary-BbSjnGmd.js';
|
|
10
10
|
|
|
11
11
|
/** Runtime registry composition for built-in and document-scoped templates. */
|
|
12
12
|
|
|
@@ -728,8 +728,12 @@ declare function wrapWithPersistentLayers(layers: Layer[], block: {
|
|
|
728
728
|
*
|
|
729
729
|
* Large title with optional subtitle for doc intros.
|
|
730
730
|
* Centered text with fade-in animations, composed as one lockup:
|
|
731
|
-
* accent rule, title, and subtitle are
|
|
732
|
-
*
|
|
731
|
+
* accent rule, title, and subtitle are measured and stacked (each slot
|
|
732
|
+
* below the previous one's measured bottom) instead of fixed slots that
|
|
733
|
+
* collide on wrap. The whole stack is centred around the composition's
|
|
734
|
+
* historic centre so a one-line title lands where it always did, while a
|
|
735
|
+
* long title steps its size down (and, at the readable floor, clamps its
|
|
736
|
+
* line count) so it never leaves the frame or runs into the subtitle.
|
|
733
737
|
* Adapts font sizes and positioning for different viewports.
|
|
734
738
|
*
|
|
735
739
|
* This is shared code used by both site and efb-app doc renderers.
|
|
@@ -793,6 +797,23 @@ declare function contentBlock(input: ContentBlockInput, context: TemplateContext
|
|
|
793
797
|
* Great for emphasizing key data points.
|
|
794
798
|
* Adapts font sizes and positioning for different viewports.
|
|
795
799
|
*
|
|
800
|
+
* Reads as a KPI card: the stat, description and detail share one left
|
|
801
|
+
* edge inside a centred column. The description is frequently a whole
|
|
802
|
+
* paragraph (an unannotated heading + body lands here), and centred
|
|
803
|
+
* paragraphs read as a ragged blob. Every text layer carries the column
|
|
804
|
+
* width so the renderer pins the text to the column's left edge.
|
|
805
|
+
*
|
|
806
|
+
* Geometry: the three slots are measured with the renderer's word-wrap and
|
|
807
|
+
* stacked top-down inside a safe band (8%–92% of the frame), the group
|
|
808
|
+
* centred on the optical centre. A long heading promoted into the stat slot
|
|
809
|
+
* steps its size down (to 40%) instead of leaving the frame; the
|
|
810
|
+
* description shrinks to the height that remains and clamps with an
|
|
811
|
+
* ellipsis at the readable floor; the detail always sits below the
|
|
812
|
+
* description's measured bottom. Each layer carries an explicit box plus
|
|
813
|
+
* `shrinkToFit`, so the renderer centres the wrapped block on its anchor
|
|
814
|
+
* (rather than hanging extra lines below it) and scales real glyphs down if
|
|
815
|
+
* a wide face or CJK text runs past the column.
|
|
816
|
+
*
|
|
796
817
|
* Supports optional accent images that appear as tasteful side/bottom strips.
|
|
797
818
|
*
|
|
798
819
|
* This is shared code used by both site and efb-app doc renderers.
|
|
@@ -803,10 +824,16 @@ declare function statHighlight(input: StatHighlightInput, context: TemplateConte
|
|
|
803
824
|
/**
|
|
804
825
|
* Quote Block Template
|
|
805
826
|
*
|
|
806
|
-
* Large centered quote with optional attribution, composed as one
|
|
807
|
-
*
|
|
808
|
-
*
|
|
809
|
-
*
|
|
827
|
+
* Large centered quote with optional attribution, composed as one measured
|
|
828
|
+
* lockup: the quote body is shrunk-to-fit into the band that remains below
|
|
829
|
+
* the title, the attribution hangs a fixed distance below the quote's
|
|
830
|
+
* measured bottom edge, and the whole lockup floats around the slide's
|
|
831
|
+
* optical centre — so a one-line quote still reads as a composed card and a
|
|
832
|
+
* 180-word body never leaves the frame or overprints its attribution.
|
|
833
|
+
*
|
|
834
|
+
* Every text layer is anchored top-left with the column's width (the
|
|
835
|
+
* renderer puts the first line's top at `y` and hangs further lines below
|
|
836
|
+
* it), and `textAlign: 'center'` centres the lines inside that box.
|
|
810
837
|
* Adapts font sizes and positioning for different viewports.
|
|
811
838
|
*
|
|
812
839
|
* Supports optional accent images that appear as tasteful side/bottom strips.
|
|
@@ -822,8 +849,22 @@ declare function quoteBlock(input: QuoteBlockInput, context: TemplateContext): L
|
|
|
822
849
|
* Key fact with explanation and optional source, composed as one
|
|
823
850
|
* vertically-centered lockup: each element is placed relative to the
|
|
824
851
|
* estimated height of the one above it, so short content doesn't leave
|
|
825
|
-
* fixed-slot voids and long content doesn't collide.
|
|
826
|
-
*
|
|
852
|
+
* fixed-slot voids and long content doesn't collide. The column floats
|
|
853
|
+
* at the slide's centre but the text inside it is LEFT-aligned — the
|
|
854
|
+
* explanation is running prose (often several paragraphs or a list), and
|
|
855
|
+
* centred prose reads as a ragged blob. Every layer carries the column
|
|
856
|
+
* width so the renderer pins the text to the column's left edge instead
|
|
857
|
+
* of the anchor point.
|
|
858
|
+
*
|
|
859
|
+
* Geometry: every slot is measured with the same word-wrap the renderer
|
|
860
|
+
* uses, then stacked top-down inside a safe band (8%–92% of the frame). The
|
|
861
|
+
* fact steps its size down when a long heading lands in the hero slot, the
|
|
862
|
+
* explanation shrinks to the height that remains (and clamps with an
|
|
863
|
+
* ellipsis at the readable floor), and the source always sits below the
|
|
864
|
+
* explanation's measured bottom. Each layer is given an explicit box plus
|
|
865
|
+
* `shrinkToFit`, so the renderer centres the wrapped block on the anchor
|
|
866
|
+
* (instead of hanging extra lines below it) and scales real glyphs down if
|
|
867
|
+
* a wide face or CJK text runs past the column.
|
|
827
868
|
*
|
|
828
869
|
* Supports optional accent images that appear as tasteful side/bottom strips.
|
|
829
870
|
*
|
|
@@ -839,6 +880,10 @@ declare function factCard(input: FactCardInput, context: TemplateContext): Layer
|
|
|
839
880
|
* Each column has a label and optional sublabel.
|
|
840
881
|
* Adapts font sizes and positioning for different viewports.
|
|
841
882
|
*
|
|
883
|
+
* The header (spanning both panels) stays centred; inside each panel the
|
|
884
|
+
* label and sublabel are left-aligned and share a left edge — a sublabel
|
|
885
|
+
* is usually a sentence or two, and centred prose reads as a ragged blob.
|
|
886
|
+
*
|
|
842
887
|
* Portrait mode: Stacks columns vertically (top/bottom) instead of side-by-side.
|
|
843
888
|
*
|
|
844
889
|
* This is shared code used by both site and efb-app doc renderers.
|
|
@@ -853,6 +898,24 @@ declare function twoColumn(input: TwoColumnInput, context: TemplateContext): Lay
|
|
|
853
898
|
* Supports different moods: neutral, somber, celebratory.
|
|
854
899
|
* Adapts font sizes and positioning for different viewports.
|
|
855
900
|
*
|
|
901
|
+
* Date, description and footer share one left edge inside a centred
|
|
902
|
+
* column — the description is running prose, and centred prose reads as
|
|
903
|
+
* a ragged blob. Every text layer carries the column width so the
|
|
904
|
+
* renderer pins the text to the column's left edge.
|
|
905
|
+
*
|
|
906
|
+
* The lockup is a measured stack, not a set of fixed slots: each slot is
|
|
907
|
+
* a box whose top sits at the previous slot's estimated bottom, the
|
|
908
|
+
* description shrinks (then clamps) to the height that remains, and the
|
|
909
|
+
* whole group is centred on the frame's optical centre. Fixed percentages
|
|
910
|
+
* collided as soon as the description wrapped — the renderer hangs extra
|
|
911
|
+
* lines *below* a height-less centre-anchored point — and left the bottom
|
|
912
|
+
* third empty for a one-line body.
|
|
913
|
+
*
|
|
914
|
+
* Each text layer is a centre-anchored box (the column-centre `x`
|
|
915
|
+
* convention shared by the other prose lockups) with an explicit height
|
|
916
|
+
* and `verticalAlign: 'top'`, so the renderer resolves the text top to
|
|
917
|
+
* the box top and the wrapped block grows downward from a known edge.
|
|
918
|
+
*
|
|
856
919
|
* Supports optional accent images that appear as tasteful side/bottom strips.
|
|
857
920
|
*
|
|
858
921
|
* This is shared code used by both site and efb-app doc renderers.
|
|
@@ -1002,8 +1065,12 @@ declare function expandCoverBlock(config: StartBlockConfig, context: TemplateCon
|
|
|
1002
1065
|
* Full Bleed Quote Template
|
|
1003
1066
|
*
|
|
1004
1067
|
* Short dramatic text filling the viewport like a movie title card.
|
|
1005
|
-
* Designed for punchy text under 60 characters
|
|
1006
|
-
*
|
|
1068
|
+
* Designed for punchy text under 60 characters — massive type centred on a
|
|
1069
|
+
* vignette built from the color scheme — but Markdown authors hand it whole
|
|
1070
|
+
* paragraphs too, so the type is sized from the text length, shrunk to fit
|
|
1071
|
+
* a central band, and finally line-clamped rather than ever leaving the
|
|
1072
|
+
* frame. The measured block is centred in the band, so a one-liner still
|
|
1073
|
+
* sits at the optical centre while a long body fills it top to bottom.
|
|
1007
1074
|
*
|
|
1008
1075
|
* This is shared code used by both site and efb-app doc renderers.
|
|
1009
1076
|
*/
|
|
@@ -1017,6 +1084,11 @@ declare function fullBleedQuote(input: FullBleedQuoteInput, context: TemplateCon
|
|
|
1017
1084
|
* Good for enumerations like "things to see", "key features", or "tips".
|
|
1018
1085
|
* Supports optional accent images.
|
|
1019
1086
|
*
|
|
1087
|
+
* Longer lists shrink to fit: the item type steps down from its base size
|
|
1088
|
+
* until the whole list sits above the bottom margin, stopping at a minimum
|
|
1089
|
+
* readable size. Past that floor the tail of the list simply runs off the
|
|
1090
|
+
* slide — an unreadable list is worse than a truncated one.
|
|
1091
|
+
*
|
|
1020
1092
|
* This is shared code used by both site and efb-app doc renderers.
|
|
1021
1093
|
*/
|
|
1022
1094
|
|
|
@@ -1048,6 +1120,25 @@ declare function photoGrid(input: PhotoGridInput, context: TemplateContext): Lay
|
|
|
1048
1120
|
* Good for explaining local words, place names, or cultural concepts.
|
|
1049
1121
|
* Supports optional accent images.
|
|
1050
1122
|
*
|
|
1123
|
+
* The lockup sits in a centred column but reads left-aligned, like a
|
|
1124
|
+
* dictionary entry: term, rule, definition and origin share one left
|
|
1125
|
+
* edge. Every text layer carries the column width so the renderer pins
|
|
1126
|
+
* the text to that edge rather than fanning it out around the anchor.
|
|
1127
|
+
*
|
|
1128
|
+
* The entry is a measured stack: the term is fitted first (a long heading
|
|
1129
|
+
* promoted into the term slot steps down rather than wrapping through the
|
|
1130
|
+
* definition), the rule hangs from the term's estimated bottom, the
|
|
1131
|
+
* definition shrinks to the height that remains — clamping with an
|
|
1132
|
+
* ellipsis only at the readable floor — and the origin sits below the
|
|
1133
|
+
* definition's measured bottom. The group is centred on the frame's
|
|
1134
|
+
* optical centre so a one-line definition still reads as one composed
|
|
1135
|
+
* entry.
|
|
1136
|
+
*
|
|
1137
|
+
* Each text layer is a centre-anchored box (the column-centre `x`
|
|
1138
|
+
* convention shared by the other prose lockups) with an explicit height
|
|
1139
|
+
* and `verticalAlign: 'top'`, so the renderer resolves the text top to
|
|
1140
|
+
* the box top and the wrapped block grows downward from a known edge.
|
|
1141
|
+
*
|
|
1051
1142
|
* This is shared code used by both site and efb-app doc renderers.
|
|
1052
1143
|
*/
|
|
1053
1144
|
|
|
@@ -1072,6 +1163,18 @@ declare function comparisonBar(input: ComparisonBarInput, context: TemplateConte
|
|
|
1072
1163
|
* Cinematic alternative to quoteBlock when a high-quality image is available.
|
|
1073
1164
|
* Combines the visual impact of imageWithCaption with the text focus of quoteBlock.
|
|
1074
1165
|
*
|
|
1166
|
+
* Without a background image (the common Markdown case — a heading and a
|
|
1167
|
+
* body with no picture) the same lockup renders on the theme surface: a
|
|
1168
|
+
* missing image degrades to a themed quote card, never to a blank block.
|
|
1169
|
+
*
|
|
1170
|
+
* Layout: the quote and attribution are one measured stack. The quote body
|
|
1171
|
+
* is shrunk to fit the frame (stepping the size down and re-wrapping, then
|
|
1172
|
+
* clamping with `maxLines` at the readable floor), the attribution hangs a
|
|
1173
|
+
* fixed gap below the quote's measured bottom, and the whole stack is
|
|
1174
|
+
* centred on the block — so a one-line quote still sits where it always
|
|
1175
|
+
* did, while a 180-word body stays inside the frame instead of running
|
|
1176
|
+
* off the bottom.
|
|
1177
|
+
*
|
|
1075
1178
|
* This is shared code used by both site and efb-app doc renderers.
|
|
1076
1179
|
*/
|
|
1077
1180
|
|
|
@@ -1106,6 +1209,11 @@ declare function videoWithCaption(input: VideoWithCaptionInput, context: Templat
|
|
|
1106
1209
|
*
|
|
1107
1210
|
* The video plays muted — narration audio is the only sound track.
|
|
1108
1211
|
*
|
|
1212
|
+
* Without a background video the lockup renders on the theme surface
|
|
1213
|
+
* instead of the template producing a blank block. The text lockup itself
|
|
1214
|
+
* (fitted quote + attribution as one measured, centred stack) is shared
|
|
1215
|
+
* with `pullQuote`.
|
|
1216
|
+
*
|
|
1109
1217
|
* This is shared code used by both site and efb-app doc renderers.
|
|
1110
1218
|
*
|
|
1111
1219
|
* Related Files:
|
|
@@ -3424,7 +3532,7 @@ declare function validateMarkdownDoc(markdownDoc: MarkdownDocument, options?: Va
|
|
|
3424
3532
|
*
|
|
3425
3533
|
* The graceful-degradation guarantee: a block whose template can't render —
|
|
3426
3534
|
* unknown template name, template function threw, or returned a non-array —
|
|
3427
|
-
* still renders its heading and body text as a plain,
|
|
3535
|
+
* still renders its heading and body text as a plain, left-aligned card instead
|
|
3428
3536
|
* of a blank slide. A small notice line names the problem so authors (and
|
|
3429
3537
|
* agents reviewing screenshots) can see *why* the block degraded.
|
|
3430
3538
|
*
|
package/dist/doc/index.js
CHANGED
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
validateMarkdownDoc,
|
|
71
71
|
validateMarkdownSource,
|
|
72
72
|
writeDashboardLayoutsToFrontmatter
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-NUS5YAI5.js";
|
|
74
74
|
import {
|
|
75
75
|
ASCII_CHAR_H,
|
|
76
76
|
ASCII_CHAR_W,
|
|
@@ -192,7 +192,7 @@ import {
|
|
|
192
192
|
wrapWithPersistentLayers,
|
|
193
193
|
writeCustomTemplatesToFrontmatter,
|
|
194
194
|
writeCustomThemesToFrontmatter
|
|
195
|
-
} from "../chunk-
|
|
195
|
+
} from "../chunk-AIB5WEK2.js";
|
|
196
196
|
import {
|
|
197
197
|
PATH_SHAPE_KINDS,
|
|
198
198
|
anchorPoint,
|
|
@@ -229,7 +229,7 @@ import {
|
|
|
229
229
|
parseAsciiTimelineWithStats,
|
|
230
230
|
parseTree,
|
|
231
231
|
parseWrappedFlowTimeline
|
|
232
|
-
} from "../chunk-
|
|
232
|
+
} from "../chunk-C3NAY5YP.js";
|
|
233
233
|
import "../chunk-GAZKTT4R.js";
|
|
234
234
|
import {
|
|
235
235
|
DEFAULT_THEME,
|
|
@@ -249,7 +249,7 @@ import {
|
|
|
249
249
|
isTemplateBlock,
|
|
250
250
|
scaledFontSize2 as scaledFontSize
|
|
251
251
|
} from "../chunk-BAOV476U.js";
|
|
252
|
-
import "../chunk-
|
|
252
|
+
import "../chunk-CW24CH7I.js";
|
|
253
253
|
import {
|
|
254
254
|
CONTAINER_TEMPLATES,
|
|
255
255
|
TABLE_FED_TEMPLATES,
|
|
@@ -257,7 +257,7 @@ import {
|
|
|
257
257
|
resolveTemplateName
|
|
258
258
|
} from "../chunk-TMOHAFYE.js";
|
|
259
259
|
import "../chunk-7N4G32LG.js";
|
|
260
|
-
import "../chunk-
|
|
260
|
+
import "../chunk-X7BNDUNI.js";
|
|
261
261
|
import "../chunk-4VOD55SX.js";
|
|
262
262
|
import "../chunk-XOFT65EX.js";
|
|
263
263
|
import "../chunk-67L6WRJN.js";
|
package/dist/fence/index.d.ts
CHANGED
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 { r as ColorScheme, A as AccentImage, bb as TemplateBlock } from '../Doc-
|
|
3
|
+
import { r as ColorScheme, A as AccentImage, bb as TemplateBlock } from '../Doc-BkxT7G80.js';
|
|
4
4
|
import '../types-Be6sBUBx.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-C8ZB54Vv.js';
|
|
2
|
+
export { E as EditorLayerMeta, I as ImageEditCanvas, c as ImageEditLayerKind, d as ImageEditMeta } from '../ImageEditDoc-C8ZB54Vv.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-BkxT7G80.js';
|
|
6
6
|
import '../types-Be6sBUBx.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 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 TranscriptBlockInput, bx as TreeBlockInput, by as TreeLayer, bz as TreeLayerItem, bA as TreeLayerStyle, bB as TreeTemplateItem, bC as TwoColumnInput, bD as VIEWPORT_PRESETS, bE as VideoLayer, bF as VideoPipPosition, bG as VideoPipShape, bH as VideoPipSize, bI as VideoPlacement, bJ as VideoPresentation, bK as VideoPullQuoteInput, bL as VideoWithCaptionInput, bM as ViewportConfig, bN as ViewportOrientation, bO as ViewportPreset, bP as VignetteConfig, bQ as applySurface, bR as calculateDuration, bS as calculateFontScale, bT as createTemplateContext, bU as createTheme, bV as createThemeRegistry, bW as getAspectRatioString, bX as getBlockAtTime, bY as getCaptionAtTime, bZ as getDocPlaybackDuration, b_ as getLayoutHints, b$ as getSafeTextBounds, c0 as getSegmentAtTime, c1 as getTwoColumnPositions, c2 as getViewport, c3 as getViewportOrientation, c4 as isCustomTemplateDefinition, c5 as isPersistentLayerTemplate, c6 as isTemplateBlock, c7 as layoutScaledFontSize, c8 as resolveMediaSchedule, c9 as scaledFontSize, ca as validateCustomTemplateDefinition } from './Doc-
|
|
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 TranscriptBlockInput, bx as TreeBlockInput, by as TreeLayer, bz as TreeLayerItem, bA as TreeLayerStyle, bB as TreeTemplateItem, bC as TwoColumnInput, bD as VIEWPORT_PRESETS, bE as VideoLayer, bF as VideoPipPosition, bG as VideoPipShape, bH as VideoPipSize, bI as VideoPlacement, bJ as VideoPresentation, bK as VideoPullQuoteInput, bL as VideoWithCaptionInput, bM as ViewportConfig, bN as ViewportOrientation, bO as ViewportPreset, bP as VignetteConfig, bQ as applySurface, bR as calculateDuration, bS as calculateFontScale, bT as createTemplateContext, bU as createTheme, bV as createThemeRegistry, bW as getAspectRatioString, bX as getBlockAtTime, bY as getCaptionAtTime, bZ as getDocPlaybackDuration, b_ as getLayoutHints, b$ as getSafeTextBounds, c0 as getSegmentAtTime, c1 as getTwoColumnPositions, c2 as getViewport, c3 as getViewportOrientation, c4 as isCustomTemplateDefinition, c5 as isPersistentLayerTemplate, c6 as isTemplateBlock, c7 as layoutScaledFontSize, c8 as resolveMediaSchedule, c9 as scaledFontSize, ca as validateCustomTemplateDefinition } from './Doc-BkxT7G80.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 MarkdownSubscript, U as MarkdownSuperscript, V as MarkdownTable, W as MarkdownTableCell, X as MarkdownTableRow, Y as MarkdownText, Z as MarkdownTextDirective, _ as MarkdownThematicBreak, $ as ParseOptions, a0 as StringifyOptions, a1 as TRANSITION_DIRECTIONS, a2 as TRANSITION_TYPES, a3 as Transition, a4 as TransitionDirection, a5 as TransitionType, a6 as assertMarkdownDocumentWithinLimits, a7 as assertMarkdownSourceWithinLimits, a8 as isTransitionType, a9 as normalizeTransitionDirection, aa as normalizeTransitionType, ab as resolveBlockTransition, ac as resolveMarkdownSafetyLimits, ad as resolveTransitionDuration } from './types-Be6sBUBx.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-BbSjnGmd.js';
|
|
6
6
|
export { M as MediaEntry, a as MediaProvider } from './MediaProvider-wpSe21B3.js';
|
|
7
|
-
export { E as EditorLayerMeta, I as ImageEditCanvas, a as ImageEditDoc, b as ImageEditLayer, c as ImageEditLayerKind, d as ImageEditMeta } from './ImageEditDoc-
|
|
7
|
+
export { E as EditorLayerMeta, I as ImageEditCanvas, a as ImageEditDoc, b as ImageEditLayer, c as ImageEditLayerKind, d as ImageEditMeta } from './ImageEditDoc-C8ZB54Vv.js';
|
|
8
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, BUILTIN_DASHBOARD_LAYOUTS, BlockLayerMaterialization, BlockMediaLayoutPolicy, BuildPreviewDocOptions, BuiltInTemplateName, CONTAINER_TEMPLATES, COVER_SLIDE_FRONTMATTER_KEYS, COVER_SLIDE_TEMPLATE_OPTIONS, ClipBox, ConnectorAnchor, ConnectorPort, ConnectorRouting, ConnectorSnapPoint, CoverBlockInput, CoverSlidePlayback, CoverSlideSettings, CoverSlideTemplate, CoverSlideTemplateOption, DASHBOARD_AUTO_LAYOUT_ID, DASHBOARD_FRONTMATTER_KEYS, DASHBOARD_STYLES, DASHBOARD_STYLE_IDS, DASHBOARD_ZOOM_LEVELS, DATA_FILE_EXTENSIONS, DEFAULT_COVER_SLIDE_SETTINGS, DEFAULT_DASHBOARD_SETTINGS, DEFAULT_DASHBOARD_STYLE, DEFAULT_LAYOUT, DIAGRAM_LABEL_HORIZONTAL_PADDING, DIAGRAM_LABEL_LINE_HEIGHT, DIAGRAM_LABEL_MIN_FONT_SIZE, DIAGRAM_LABEL_VERTICAL_PADDING, DashboardCell, DashboardCellChrome, DashboardCellDefinition, DashboardCellFrame, DashboardDiagnostic, DashboardLayoutDefinition, DashboardLayoutSummary, DashboardLayoutValidationError, DashboardLayoutValidationResult, DashboardMaterialization, DashboardRectPct, DashboardSettings, DashboardSettingsOverrides, DashboardStyleId, DashboardStyleSummary, DashboardTitle, DashboardTitleSlotDefinition, DashboardZoomCandidate, DashboardZoomLevel, DashboardZoomMode, DataFenceParseResult, DataSourceReadOptions, DataSourceReader, DataSourceStats, DataSourceTable, DeriveTemplateInputsOptions, DetectAsciiTimelineOptions, DiagramEdge, DiagramLabelFit, DiagramLayout, DiagramLayoutOptions, DiagramNodePosition, DrawingConnector, DrawingLayout, DrawingLayoutOptions, DrawingShape, DrawingShapeKind, EmbeddedVideo, ExpandDocBlocksOptions, ExtractedTableData, FRONTMATTER_DASHBOARD_LAYOUTS_KEY, FirstImage, Flashcard, FlashcardChoice, FlashcardDeck, FlashcardDiagnostic, FlashcardDiagnosticCode, FlashcardFace, FlashcardKind, FlashcardSourceMode, InputCoercion, LayerMaterializationDiagnostic, LayerMaterializationFailureMode, LayerMaterializationSource, LayoutLayerDefaults, LayoutLayersResult, MAX_COVER_SLIDE_DURATION_SECONDS, MarkdownToDocOptions, MarkdownValidationResult, MaterializeBlockLayersOptions, MaterializeDashboardOptions, MaterializeFlashcardsOptions, NarrationResolution, NativeMediaLayout, NoMediaLayout, PAGE_BASE_CSS, PATH_SHAPE_KINDS, PageSectionContext, PageSectionDraft, RenderAsciiDiagramOptions, RenderAsciiTimelineOptions, RenderTreeOptions, RepairResult, ResolveDataReferencesOptions, ResolvedDashboardCell, ResolvedDataReferences, 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, buildDashboardCellChrome, buildPageCss, buildPageCssVars, buildPreviewDoc, buildRegistry, canvasToAsciiCell, chooseDashboardLayout, clipEndpoints, clipPoint, coerceTemplateParams, comparisonBar, composeDashboardLayers, computeDiagramLayout, computeDrawingLayout, computeLayoutLayers, connectorPath, contentBlock, countBlocks, coverBlock, createAccentLayers, cssFilterForTreatment, dashboardCanvasFill, dashboardCellAccent, dataSidecarPrefix, dataTable, dateEvent, definitionCard, deriveTemplateInputs, desiredCellZoom, detectAsciiDiagram, detectAsciiTimeline, detectTree, diagramBlock, docToMarkdown, documentTitleFromFileName, 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, getDashboardLayoutSummaries, getDefaultAnimation, getDefaultAnimationDuration, getOverlayOpacity, getPersistentLayersFromTheme, getPinnedBlockMeta, getTemplateHint, getThemeFont, getTransitionClass, hasTemplate, imageWithCaption, isAsciiDiagramFence, isAsciiTimelineFence, isContainerTemplate, isDataFence, isDataFilePath, isEligibleAsciiFenceLang, isEligibleAsciiTimelineFenceLang, isEligibleTreeFenceLang, isExplicitDiagramLang, isExplicitTimelineLang, isExplicitTreeLang, isRepairableDiagram, isShapeName, isTemplatedPageBlock, isTreeFence, isWrappedFlowTimelineSource, layoutBlock, layoutCapacity, leftFeature, lineStyleDasharray, lintTemplateParams, listBlock, listDashboardLayouts, mapBlock, markdownBlockSeparatorLines, markdownToDoc, markerPath, materializeBlockLayers, materializeDashboard, materializeFlashcards, nearestSnapPoint, normalizeDashboardZoom, normalizeShapeKind, pageStyleDataAttributes, parseAsciiDiagram, parseAsciiTimeline, parseAsciiTimelineWithStats, parseDataFence, parseTree, parseWrappedFlowTimeline, parseYamlSubset, photoGrid, pullQuote, quoteBlock, readCustomTemplatesFromFrontmatter, readCustomThemesFromFrontmatter, readDashboardLayoutsFromFrontmatter, renderAsciiDiagram, renderAsciiTimeline, renderMarkdownBlocksHtml, renderTree, repairAsciiDiagram, replaceDataFence, resolveAudioMapping, resolveColorScheme, resolveCoverSlideSettings, resolveDashboardLayoutDefinition, resolveDashboardSettings, resolveDashboardStyleId, resolveDashboardZooms, resolveDataReferences, resolveFlashcardMarker, resolveLayoutCells, resolvePageBlock, resolvePersistentLayers, resolveTemplateName, resolveThemeForDoc, rightFeature, scaleAnimationDuration, scoreTextSimilarity, sectionExtractors, sectionHeader, shapePath, shouldUseShadow, snapEndpoints, snapPoints, statHighlight, stripBlockBackdropLayer, stripsBlockBackdrop, templateRegistry, themeWantsAmbientMotion, themedEntrance, themedFontSize, themedImageTreatment, themedScrim, themedSurfaceGradient, timelineBlock, titleBlock, transposeCells, treeBlock, treeFromMarkdownList, treeFromTemplateData, treeToTemplateData, twoColumn, validateDashboardLayoutDefinition, validateMarkdownDoc, validateMarkdownSource, videoPullQuote, videoWithCaption, wrapWithPersistentLayers, writeCustomTemplatesToFrontmatter, writeCustomThemesToFrontmatter, writeDashboardLayoutsToFrontmatter } 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-
|
|
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-Dp2aHFbc.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';
|
|
@@ -26,5 +26,6 @@ export { IconSuggestion, canonicalIconToken, iconGlyph, looksLikeIconToken, reso
|
|
|
26
26
|
export { BlockContentProfile, RecommendationResult, profileBlockContents, recommendTemplatesForBlock } from './recommend/index.js';
|
|
27
27
|
export { AdvanceCoverage, AlignConfig, AlignInput, BandpassState, BuildAdvanceTimingOptions, BuildNarrationTimingOptions, BuildScriptOptions, DEFAULT_ALIGN_CONFIG, DEFAULT_FEATURE_CONFIG, DEFAULT_NUCLEI_CONFIG, DEFAULT_PACING_CONFIG, DEFAULT_VAD_CONFIG, EMPTY_ADVANCE_LOG, FeatureConfig, FeatureState, FrameFeatures, NarrationAlignment, NarrationBlockRange, NarrationScript, NarrationSessionConfig, NarrationSessionState, NarrationTimingBlock, NarrationTimingJsonV3, NarrationTimingMethod, NarrationTrace, NucleiConfig, NucleiState, PacingConfig, PacingState, PacingTick, ScriptBlockRange, ScriptToken, SlideAdvance, SlideAdvanceLog, TraceSample, VadConfig, VadState, WordTiming, advanceCoverage, alignNarration, bandpassRun, buildAdvanceTimingJson, buildNarrationScript, buildNarrationTimingJson, createBandpass, createFeatureState, createNarrationSession, createNucleiState, createPacingState, createVadState, detectSyllableOnsets, downsampleTrace, estimateSyllables, expectedSyllablesAt, extractFrameFeatures, featureStep, narrationSessionStep, nucleiStep, pacingStep, parseNarrationTimingJson, reanchorPacing, reanchorSession, recordSlideShown, traceWordPosAt, vadStep, wordIndexAtChar, wordIndexAtTime, wordPosAtExpectedSyllables } from './narration/index.js';
|
|
28
28
|
export { FenceRenderContext, FenceRenderer, FenceRendererMap, fenceRendererLangs } from './fence/index.js';
|
|
29
|
-
export {
|
|
29
|
+
export { P as PROOF_DIALECTS, a as ProofCategory, b as ProofDialect, c as ProofFinding, d as ProofRange, e as ProofSuggestion, f as ProofSuggestionKind } from './types-BQWu0gzi.js';
|
|
30
|
+
export { BlankProtectedSpansOptions, BlankedText, DEFAULT_PROOF_SETTINGS, JoinedSegments, LINT_KIND_CATEGORIES, PROOF_FRONTMATTER_KEYS, PROOF_JOIN_SEPARATOR, ProofingSettings, SegmentSpan, blankProtectedSpans, buildJoinedText, categorizeLintKind, dropMaskedFindings, formatProofDictionary, mapJoinedSpanToSegment, parseProofDictionary, readProofingSettings, resolveProofDialect } from './proof/index.js';
|
|
30
31
|
import './viewState-lTZS-hP_.js';
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
recordSlideShown,
|
|
28
28
|
traceWordPosAt,
|
|
29
29
|
vadStep
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2P44EZLI.js";
|
|
31
31
|
import {
|
|
32
32
|
fenceRendererLangs
|
|
33
33
|
} from "./chunk-PGI7HSWE.js";
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
getTransformStyleIds,
|
|
57
57
|
getTransformStyleSummaries,
|
|
58
58
|
resolveTransformStyle
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-ZSU5DJLX.js";
|
|
60
60
|
import {
|
|
61
61
|
extractContent,
|
|
62
62
|
mapElementToBlock,
|
|
@@ -227,7 +227,7 @@ import {
|
|
|
227
227
|
validateMarkdownDoc,
|
|
228
228
|
validateMarkdownSource,
|
|
229
229
|
writeDashboardLayoutsToFrontmatter
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-NUS5YAI5.js";
|
|
231
231
|
import {
|
|
232
232
|
ASCII_CHAR_H,
|
|
233
233
|
ASCII_CHAR_W,
|
|
@@ -357,7 +357,7 @@ import {
|
|
|
357
357
|
wrapWithPersistentLayers,
|
|
358
358
|
writeCustomTemplatesToFrontmatter,
|
|
359
359
|
writeCustomThemesToFrontmatter
|
|
360
|
-
} from "./chunk-
|
|
360
|
+
} from "./chunk-AIB5WEK2.js";
|
|
361
361
|
import {
|
|
362
362
|
PATH_SHAPE_KINDS,
|
|
363
363
|
anchorPoint,
|
|
@@ -402,7 +402,7 @@ import {
|
|
|
402
402
|
parseWrappedFlowTimeline,
|
|
403
403
|
profileBlockContents,
|
|
404
404
|
recommendTemplatesForBlock
|
|
405
|
-
} from "./chunk-
|
|
405
|
+
} from "./chunk-C3NAY5YP.js";
|
|
406
406
|
import {
|
|
407
407
|
defaultPageStyle,
|
|
408
408
|
getDocPlaybackDuration,
|
|
@@ -507,7 +507,7 @@ import {
|
|
|
507
507
|
stringifyMarkdown,
|
|
508
508
|
unwrapMarkdownSource,
|
|
509
509
|
wrapMarkdownSource
|
|
510
|
-
} from "./chunk-
|
|
510
|
+
} from "./chunk-XJXBI3N5.js";
|
|
511
511
|
import {
|
|
512
512
|
DEFAULT_MARKDOWN_SAFETY_LIMITS,
|
|
513
513
|
MarkdownLimitError,
|
|
@@ -519,7 +519,7 @@ import {
|
|
|
519
519
|
resolveMarkdownSafetyLimits,
|
|
520
520
|
serializePandocAttributes,
|
|
521
521
|
toMdast
|
|
522
|
-
} from "./chunk-
|
|
522
|
+
} from "./chunk-CW24CH7I.js";
|
|
523
523
|
import {
|
|
524
524
|
BLOCK_META_KEY_DESCRIPTORS,
|
|
525
525
|
CONTAINER_TEMPLATES,
|
|
@@ -564,7 +564,7 @@ import {
|
|
|
564
564
|
splitFrontmatterBlock,
|
|
565
565
|
stringifyHtmlNodes,
|
|
566
566
|
walkMarkdownTree
|
|
567
|
-
} from "./chunk-
|
|
567
|
+
} from "./chunk-X7BNDUNI.js";
|
|
568
568
|
import {
|
|
569
569
|
DEFAULT_TRANSITION_DURATION_SECONDS,
|
|
570
570
|
TRANSITION_DIRECTIONS,
|
package/dist/jsonForm/index.d.ts
CHANGED