@openpresentation/opf 0.15.1 → 0.16.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.
Files changed (73) hide show
  1. package/README.md +4 -0
  2. package/dist/{catalog-refs-BSfGELpt.d.ts → catalog-refs-_anZs-Qz.d.ts} +1 -1
  3. package/dist/{catalog-schemas-CinPh5WA.d.ts → catalog-schemas-BZCjgAxu.d.ts} +1 -1
  4. package/dist/catalog.d.ts +2 -2
  5. package/dist/catalog.js +609 -121
  6. package/dist/{chunk-5FTUIDUH.js → chunk-3XDRQYWZ.js} +1 -1
  7. package/dist/{chunk-O744SXXA.js → chunk-5PDN7BN6.js} +202 -95
  8. package/dist/{chunk-VGAOJEY7.js → chunk-5TO6I3GB.js} +1 -1
  9. package/dist/{chunk-3RKB4RDJ.js → chunk-5UEUAW57.js} +4 -2
  10. package/dist/{chunk-ZPU46TFA.js → chunk-6OR326EA.js} +1 -1
  11. package/dist/{chunk-UBFJ2QHH.js → chunk-BSYQDWT4.js} +12 -2
  12. package/dist/{chunk-3JG4YXWF.js → chunk-FQSIIADJ.js} +12 -5
  13. package/dist/chunk-K4DQQIT4.js +319 -0
  14. package/dist/chunk-KINQFU6X.js +51 -0
  15. package/dist/{chunk-374R35TJ.js → chunk-NAWQR7MN.js} +1 -1
  16. package/dist/{chunk-QDI75P2M.js → chunk-PX5AWL7Y.js} +141 -13
  17. package/dist/{chunk-U4J75TRG.js → chunk-SMLMI6IZ.js} +5 -2
  18. package/dist/{chunk-TWQJLI6E.js → chunk-UM24JFUE.js} +2 -2
  19. package/dist/{chunk-2CJPC4HI.js → chunk-WEDGVC5W.js} +185 -11
  20. package/dist/{composition-D2tghM82.d.ts → composition-D4ADF5c-.d.ts} +88 -9
  21. package/dist/composition.d.ts +2 -2
  22. package/dist/composition.js +1 -1
  23. package/dist/convert.d.ts +3 -3
  24. package/dist/convert.js +7 -7
  25. package/dist/data.d.ts +27 -10
  26. package/dist/data.js +2 -2
  27. package/dist/deck.d.ts +77 -0
  28. package/dist/deck.js +12 -0
  29. package/dist/diff.js +5 -5
  30. package/dist/docs.js +24 -24
  31. package/dist/examples.d.ts +1 -1
  32. package/dist/examples.js +2992 -748
  33. package/dist/format.js +2 -2
  34. package/dist/index.d.ts +9 -8
  35. package/dist/index.js +15 -13
  36. package/dist/markdown.d.ts +6 -7
  37. package/dist/markdown.js +7 -7
  38. package/dist/{pagination-wedbe7eq.d.ts → pagination-DzZPFheM.d.ts} +2 -2
  39. package/dist/pagination.d.ts +3 -3
  40. package/dist/pagination.js +4 -4
  41. package/dist/patch.js +4 -4
  42. package/dist/{presentation-CDKQVkyI.d.ts → presentation-COrFuj2g.d.ts} +16 -8
  43. package/dist/repo-readme.js +1 -1
  44. package/dist/schemas.d.ts +14 -0
  45. package/dist/schemas.js +1 -1
  46. package/dist/spec/catalogs/layouts/business-model-canvas.json +66 -1
  47. package/dist/spec/catalogs/layouts/capability-map.json +53 -3
  48. package/dist/spec/catalogs/layouts/chart-2x.json +32 -8
  49. package/dist/spec/catalogs/layouts/chart-3x-bottom-vertical-title-left.json +16 -10
  50. package/dist/spec/catalogs/layouts/chart-3x-left-title-center.json +16 -10
  51. package/dist/spec/catalogs/layouts/chart-3x-left.json +16 -10
  52. package/dist/spec/catalogs/layouts/chart-3x-right-title-center.json +16 -10
  53. package/dist/spec/catalogs/layouts/chart-3x-right.json +16 -10
  54. package/dist/spec/catalogs/layouts/chart-3x-top-vertical-title-left.json +16 -10
  55. package/dist/spec/catalogs/layouts/chart-3x.json +48 -12
  56. package/dist/spec/catalogs/layouts/dashboard.json +37 -5
  57. package/dist/spec/catalogs/layouts/image-2x.json +32 -8
  58. package/dist/spec/catalogs/layouts/image-3x.json +48 -12
  59. package/dist/spec/catalogs/layouts/index.json +1 -1
  60. package/dist/spec/catalogs/layouts/kpi-scorecard.json +48 -3
  61. package/dist/spec/catalogs/layouts/logic-tree.json +69 -0
  62. package/dist/spec/catalogs/layouts/market-size.json +26 -2
  63. package/dist/spec/catalogs/layouts/org-chart.json +53 -6
  64. package/dist/spec/catalogs/manifest.json +3 -3
  65. package/dist/spec/schemas/layout.schema.json +172 -5
  66. package/dist/spec/schemas/opf.schema.json +11 -6
  67. package/dist/types.d.ts +9 -31
  68. package/dist/{validation-types-BOcY9GTs.d.ts → validation-types-HxIgJfKx.d.ts} +2 -2
  69. package/dist/validator.d.ts +6 -6
  70. package/dist/validator.js +3 -3
  71. package/dist/yaml.d.ts +4 -4
  72. package/dist/yaml.js +8 -321
  73. package/package.json +5 -1
@@ -1,4 +1,4 @@
1
- import { b as CatalogOptions } from './catalog-refs-BSfGELpt.js';
1
+ import { b as CatalogOptions } from './catalog-refs-_anZs-Qz.js';
2
2
  import './chart-data-BnNqgnC-.js';
3
3
 
4
4
  /** Canonical table grid. No renderer, fonts, DOM or network dependencies. */
@@ -1250,11 +1250,13 @@ declare function chartHighlightMarks(highlight: ResolvedChartHighlight | undefin
1250
1250
  /** Placeholder kinds that hold slide content (everything except the three heading kinds). */
1251
1251
  declare const LAYOUT_BODY_KINDS: readonly ["text", "list", "image", "video", "chart", "table", "code", "metric", "quote", "timeline"];
1252
1252
  type LayoutBodyKind = typeof LAYOUT_BODY_KINDS[number];
1253
+ /** FA-26: how deeply placeholder groups may nest inside one layout record (a top-level group is level 1). */
1254
+ declare const MAX_PLACEHOLDER_GROUP_DEPTH = 3;
1253
1255
  /** What a layout record holds, derived from its placeholders. */
1254
1256
  interface LayoutContent {
1255
- /** The most frequent body placeholder kind (a tie goes to the kind that appears first in placeholder order), or 'title' when the layout has no body placeholder. */
1257
+ /** The most frequent body placeholder kind (a tie goes to the kind that appears first in reading order), or 'title' when the layout has no body placeholder. */
1256
1258
  kind: LayoutBodyKind | 'title';
1257
- /** The number of body placeholders. */
1259
+ /** The number of body placeholders: the leaf regions, inside placeholder groups too. */
1258
1260
  count: number;
1259
1261
  /** Which heading placeholders the layout has. */
1260
1262
  heading: {
@@ -1263,14 +1265,62 @@ interface LayoutContent {
1263
1265
  tag: boolean;
1264
1266
  };
1265
1267
  }
1268
+ /** One leaf region of a layout record, in reading order (depth first, in array order). */
1269
+ interface LayoutLeaf {
1270
+ /** The region's content kind (a heading kind only at the top level). */
1271
+ type: string;
1272
+ /** Where the region is written: `layout.placeholders.1`, or `layout.placeholders.1.placeholders.0` inside a group. */
1273
+ path: string;
1274
+ /** 0 for a top-level region, else the level of the placeholder group that holds it (1 to 3). */
1275
+ depth: number;
1276
+ /** The raw placeholder entry. */
1277
+ placeholder: Record<string, unknown>;
1278
+ }
1279
+ /** A placeholder entry of a layout record, as composition reads it: a region, or a group of entries. */
1280
+ interface LayoutSlot {
1281
+ type: string;
1282
+ path: string;
1283
+ depth: number;
1284
+ placeholder: Record<string, unknown>;
1285
+ /** Present on a placeholder group: its entries, in reading order. */
1286
+ children?: LayoutSlot[];
1287
+ }
1288
+ /** Whether a placeholder entry is a placeholder group (`{ type: "group", composition, placeholders }`). */
1289
+ declare function isPlaceholderGroup(placeholder: unknown): placeholder is {
1290
+ type: 'group';
1291
+ composition?: Record<string, unknown>;
1292
+ placeholders: unknown[];
1293
+ };
1294
+ /**
1295
+ * The placeholder tree of a layout record: every entry with its path and depth, groups with their children.
1296
+ * Throws a RangeError for a record composition cannot use: a group without placeholders, a heading inside a group, or
1297
+ * groups nested deeper than MAX_PLACEHOLDER_GROUP_DEPTH. Validation reports the same cases as schema errors first.
1298
+ */
1299
+ declare function layoutSlots(layout: {
1300
+ placeholders?: unknown;
1301
+ } | null | undefined, base?: string): LayoutSlot[];
1302
+ /** The leaf regions of a layout record in reading order, the order slide content fills them (FA-26). Groups are flattened. */
1303
+ declare function layoutLeaves(layout: {
1304
+ placeholders?: unknown;
1305
+ } | null | undefined): LayoutLeaf[];
1306
+ /**
1307
+ * A one-line summary of a record's placeholders in reading order, each group with its mode and its entries in parentheses:
1308
+ * `title, column (text, text), chart`. Pickers and catalog pages show it where a flat list of kinds would hide the structure.
1309
+ */
1310
+ declare function layoutStructure(layout: {
1311
+ placeholders?: unknown;
1312
+ } | null | undefined): string;
1313
+ /** Whether a layout record holds at least one placeholder group. */
1314
+ declare function hasPlaceholderGroups(layout: {
1315
+ placeholders?: unknown;
1316
+ } | null | undefined): boolean;
1266
1317
  /**
1267
1318
  * Derives what a layout holds from its `placeholders`, which are the single source of truth: the content kind,
1268
- * the number of body regions and which headings it has are never stored on the record.
1319
+ * the number of body regions and which headings it has are never stored on the record. Placeholder groups count
1320
+ * through their leaves.
1269
1321
  */
1270
- declare function layoutContent(record: {
1271
- placeholders?: ReadonlyArray<{
1272
- type?: string;
1273
- } | null | undefined>;
1322
+ declare function layoutContent(layout: {
1323
+ placeholders?: ReadonlyArray<unknown>;
1274
1324
  } | null | undefined): LayoutContent;
1275
1325
 
1276
1326
  /** Portable layout geometry. No fonts, DOM, renderer, or network dependencies. */
@@ -1581,6 +1631,33 @@ interface ComposedGroup {
1581
1631
  contentBox: LayoutBox;
1582
1632
  composition: Composition;
1583
1633
  }
1634
+ /**
1635
+ * FA-26: one body placeholder of a layout record that has placeholder groups, as composed: its cell and, for a filled
1636
+ * region, the slide content in it. Groups and empty regions are listed too, so an editor can draw every slot. Only
1637
+ * slides that compose through a record's placeholder groups carry slots.
1638
+ */
1639
+ interface ComposedSlot {
1640
+ /** The placeholder: `layout.placeholders.2`, or `layout.placeholders.2.placeholders.0` inside a group. */
1641
+ path: string;
1642
+ /** The region's content kind, or `group`. */
1643
+ type: string;
1644
+ /** 0 at the record's top level, else the level of the group that holds it (1 to 3). */
1645
+ depth: number;
1646
+ /** The slot's cell (before any card inset or caption band). */
1647
+ box: LayoutBox;
1648
+ /** The OPF path of the content that fills a region; absent for a group and for an empty region. */
1649
+ content?: string;
1650
+ }
1651
+ /**
1652
+ * FA-26: design.chartPrimary is sugar for a placeholder group. The layout record a slide composes as while chartPrimary
1653
+ * applies: the primary chart and one automatic placeholder group of the other root content (`kinds`, in source order),
1654
+ * in a row (left, right) or a column (top, bottom) weighted 3:2 toward the chart. composeSlide builds exactly this record
1655
+ * and fills it like any record with groups, except that the first chart, wherever it is, fills the chart region.
1656
+ */
1657
+ declare function chartPrimaryLayout(side: 'left' | 'right' | 'top' | 'bottom', kinds: readonly string[]): {
1658
+ composition: Composition;
1659
+ placeholders: Record<string, unknown>[];
1660
+ };
1584
1661
  interface CompositionTrack {
1585
1662
  offset: number;
1586
1663
  size: number;
@@ -1639,6 +1716,8 @@ interface SlideComposition {
1639
1716
  items: ComposedItem[];
1640
1717
  groups: ComposedGroup[];
1641
1718
  flows: ComposedFlow[];
1719
+ /** FA-26: the layout record's body placeholders with their cells, when the slide composes through placeholder groups. */
1720
+ slots?: ComposedSlot[];
1642
1721
  diagnostics: LayoutDiagnostic[];
1643
1722
  composition: Composition;
1644
1723
  /** Repeated furniture is measured separately from body pagination leaves. */
@@ -2363,4 +2442,4 @@ declare function resolveCanvasDimensions(input: unknown): {
2363
2442
  height: number;
2364
2443
  };
2365
2444
 
2366
- export { type CodeHighlightColors as $, type AnnotatedRun as A, type BackgroundImageFit as B, type ComposeSlideOptions as C, CODE_SYNTAX_MIN_CONTRAST as D, ENGINE_DEFAULT_CHART_TYPES as E, type Fonts as F, type Caption as G, type CaptionAlignment as H, type CaptionObject as I, type CaptionPosition as J, type CaptionSettings as K, type LayoutDiagnostic as L, type MeasureTextWidth as M, type ChartHighlightMarks as N, type ChartLabelContent as O, type ChartLabelPosition as P, type ChartLegendPosition as Q, type ChartOptionDiagnostic as R, SOCIAL_PLATFORMS as S, type TextMeasurement as T, type ChartOptionKind as U, type ChartOptionSupport as V, type ChartOptionTarget as W, type CitationMarker as X, type CitationNote as Y, type CodeContent as Z, type CodeHighlightBand as _, CHART_TYPES as a, type ListBulletImage as a$, type CodeHighlightEntry as a0, type CodeHighlightIssue as a1, type CodeHighlightLines as a2, type CodeLayout as a3, type CodeLayoutDiagnostic as a4, type CodeLayoutOptions as a5, type CodeLineSegment as a6, type CodeLineSource as a7, type CodeRun as a8, type CodeSyntaxPalette as a9, DEFAULT_SLIDE_NUMBER_FORMAT as aA, DESIGN_HINT_KEYS as aB, type DeckCitations as aC, type DesignHintKey as aD, type DesignHintSource as aE, type DesignHints as aF, FONT_SIZE_GRID_PER_PX as aG, FOOTNOTE_MAX_RATIO as aH, type FontFaceSelection as aI, type FootnoteLayoutOptions as aJ, type FurnitureField as aK, type FurnitureImagePart as aL, type FurnitureLayout as aM, type FurniturePart as aN, type FurniturePartBase as aO, type FurnitureSocialLink as aP, type FurnitureTextExtras as aQ, type FurnitureTextPart as aR, type ImageEdge as aS, type ImageFit as aT, type ImageFitPlacement as aU, type ImageFocus as aV, type ImageShape as aW, LAYOUT_BODY_KINDS as aX, type LayoutBodyKind as aY, type LayoutBox as aZ, type LayoutContent as a_, type CodeSyntaxPaletteOptions as aa, type CodeSyntaxPaletteTheme as ab, type CodeTextFit as ac, type CodeTextPart as ad, type CodeToken as ae, type CodeTokenKind as af, type ComposedBackgroundImage as ag, type ComposedCaption as ah, type ComposedFlow as ai, type ComposedFootnoteEntry as aj, type ComposedFootnotes as ak, type ComposedGroup as al, type ComposedImage as am, type ComposedItem as an, type ComposedLogo as ao, type ComposedOverlay as ap, type ComposedPlacement as aq, type Composition as ar, type CompositionCandidate as as, type CompositionDecision as at, type CompositionExplanation as au, type CompositionPenalties as av, type CompositionTrack as aw, DARK_BACKGROUND_LUMINANCE as ax, DEFAULT_CHART_LABEL_SEPARATOR as ay, DEFAULT_FURNITURE_DATE_FORMAT as az, ENGINE_DEFAULT_COLOR_SCHEME as b, type RichTextOptions as b$, type ListEntryLayout as b0, type ListFit as b1, type ListFitOptions as b2, type ListNumber as b3, type ListText as b4, type ListValue as b5, type LogoSlot as b6, MAX_COMPOSITION_DEPTH as b7, MAX_NUMBERING_LEVELS as b8, MAX_NUMBERING_VALUE as b9, type QuoteLayout as bA, type QuoteLayoutDiagnostic as bB, type QuoteLayoutOptions as bC, type QuotePhoto as bD, type QuoteTextPart as bE, type QuoteTextSource as bF, type ReadingBox as bG, type Reference as bH, type ReferencesSlideOptions as bI, type ResolveColorRefOptions as bJ, type ResolveColorRefRoles as bK, type ResolveColorRolesOptions as bL, type ResolveDesignHintsOptions as bM, type ResolveLogoOptions as bN, type ResolveScriptFontsOptions as bO, type ResolvedChartDataLabels as bP, type ResolvedChartHighlight as bQ, type ResolvedChartOptions as bR, type ResolvedColorRoles as bS, type ResolvedDesignHints as bT, type ResolvedLogo as bU, type ResolvedNumbering as bV, type ResolvedScriptFonts as bW, type RichText as bX, type RichTextFit as bY, type RichTextFragment as bZ, type RichTextLine as b_, MAX_ROMAN_VALUE as ba, METRIC_TREND_MIN_CONTRAST as bb, METRIC_TREND_SHAPES as bc, type MetricContent as bd, type MetricLayout as be, type MetricLayoutDiagnostic as bf, type MetricLayoutOptions as bg, type MetricSentiment as bh, type MetricTextPart as bi, type MetricTextSource as bj, type MetricTrend as bk, type MetricTrendColorOptions as bl, type MetricTrendMark as bm, NUMBERING_STYLES as bn, NUMBERING_SUFFIXES as bo, type Numbering as bp, type NumberingInput as bq, type NumberingStyleName as br, type NumberingSuffix as bs, OPFCompositionError as bt, PATTERN_PRESETS as bu, PATTERN_PRESET_ALIASES as bv, PATTERN_TILE_SIZE as bw, PICTURE_BULLET_SCALE as bx, type PhysicalAlignment as by, type QuoteContent as bz, ENGINE_DEFAULT_FONT_SCHEME as c, fitImage as c$, type RichTextRun as c0, SURFACE_ALT_MIN_CONTRAST as c1, SURFACE_ALT_MIX as c2, type ScriptFontApp as c3, type ScriptFontSlots as c4, type ScriptFontSource as c5, type ScriptFontSupplement as c6, type ScriptRole as c7, type SlideCitations as c8, type SlideComposition as c9, type TimelineMarkerShape as cA, type TimelineStatus as cB, type TimelineStatusColors as cC, type TimelineTextPart as cD, type WatermarkTextLayout as cE, type WatermarkTextOptions as cF, annotationText as cG, captionSettings as cH, chartColorForFill as cI, chartHighlightColors as cJ, chartHighlightMarks as cK, chartLabelText as cL, chartOptionSupport as cM, chartOptionTarget as cN, chartPaletteForFill as cO, citationMarkerText as cP, codeHighlightBands as cQ, codeHighlightColors as cR, codeHighlightLines as cS, codeLineNumbers as cT, codeLineRuns as cU, codeSyntaxPalette as cV, codeSyntaxPaletteForScheme as cW, collectCitations as cX, colorContrast as cY, composeSlide as cZ, defaultSlideBackground as c_, type SocialProfile as ca, type SourceTextFit as cb, TIMELINE_OUTLINE_MIN_CONTRAST as cc, TIMELINE_STATUSES as cd, TIMELINE_TEXT_MIN_CONTRAST as ce, type TableBorder as cf, type TableCellLayout as cg, type TableCellStyle as ch, type TableGrid as ci, type TableGridCell as cj, type TableGridIssue as ck, type TableLayout as cl, type TableLayoutOptions as cm, type TableRowLayout as cn, type TextDirection as co, type TextFit as cp, type TextLineInk as cq, type TextLineSegment as cr, type TextLineSource as cs, type TextPlacement as ct, type TextPlacementLine as cu, type TimelineContent as cv, type TimelineEvent as cw, type TimelineLayout as cx, type TimelineLayoutDiagnostic as cy, type TimelineLayoutOptions as cz, ENGINE_DEFAULT_THEME as d, textWidthMeasurer as d$, fitList as d0, fitRichText as d1, fitText as d2, formatChartLabelNumber as d3, formatChartLabelPercent as d4, formatFurnitureDate as d5, formatListNumber as d6, formatSlideNumber as d7, imageBackground as d8, imageShape as d9, patternRuns as dA, physicalAlignment as dB, placeTextLines as dC, referencesSlide as dD, resolveCanvasDimensions as dE, resolveChartOptions as dF, resolveCodeLanguage as dG, resolveColorRef as dH, resolveColorRoles as dI, resolveDesignHints as dJ, resolveFontFamilies as dK, resolveLogo as dL, resolveNumbering as dM, resolvePatternPreset as dN, resolveScriptFonts as dO, resolveSlideDirection as dP, resolveSocialProfile as dQ, resolveTextStyle as dR, scriptFontRole as dS, sliceNumberedItems as dT, slideCitations as dU, snapFontSizeDown as dV, snapFontSizeUp as dW, surfaceAltColor as dX, tableGrid as dY, tableRowBoundaries as dZ, textColorForFill as d_, intrinsicImageAspect as da, intrinsicImageSize as db, isDarkColor as dc, layoutCaption as dd, layoutCode as de, layoutContent as df, layoutFootnotes as dg, layoutFurniture as dh, layoutMetric as di, layoutQuote as dj, layoutTable as dk, layoutTimeline as dl, layoutWatermark as dm, listNumbers as dn, measureText as dp, measureTextOutline as dq, metricTrendColor as dr, metricTrendMark as ds, metricTrendPoints as dt, normalizeHexColor as du, numberingAtLevel as dv, numberingStyleDraws as dw, paragraphDirection as dx, paragraphDirectionAt as dy, patternBitmap as dz, type FontFamilies as e, timelineMarkerShapes as e0, timelineTextColor as e1, tokenizeCode as e2, visualReadingOrder as e3, walkCitationRuns as e4, wrapText as e5, LANGUAGES as f, type LanguageFamilyName as g, type LanguageVocabulary as h, type SocialPlatformVocabulary as i, type TextStyle as j, type AnnotationFitter as k, type AnnotationLayoutOptions as l, CAPTIONABLE_FIELDS as m, normalizeLanguageFamily as n, CAPTION_FONT_RATIO as o, CAPTION_MAX_RATIO as p, CHART_HIGHLIGHT_MUTED_MIN_CONTRAST as q, CHART_HIGHLIGHT_MUTED_MIX as r, CHART_SERIES_MIN_DIFFERENCE as s, CHART_SERIES_MIN_LIGHTNESS_STEP as t, CITATION_MARKER_RAISE as u, CITATION_MARKER_SCALE as v, CODE_HIGHLIGHT_LANGUAGES as w, CODE_HIGHLIGHT_MAX_LENGTH as x, CODE_PANEL_BACKGROUND as y, CODE_PANEL_FOREGROUND as z };
2445
+ export { type CodeHighlightColors as $, type AnnotatedRun as A, type BackgroundImageFit as B, type ComposeSlideOptions as C, CODE_SYNTAX_MIN_CONTRAST as D, ENGINE_DEFAULT_CHART_TYPES as E, type Fonts as F, type Caption as G, type CaptionAlignment as H, type CaptionObject as I, type CaptionPosition as J, type CaptionSettings as K, type LayoutDiagnostic as L, type MeasureTextWidth as M, type ChartHighlightMarks as N, type ChartLabelContent as O, type ChartLabelPosition as P, type ChartLegendPosition as Q, type ChartOptionDiagnostic as R, SOCIAL_PLATFORMS as S, type TextMeasurement as T, type ChartOptionKind as U, type ChartOptionSupport as V, type ChartOptionTarget as W, type CitationMarker as X, type CitationNote as Y, type CodeContent as Z, type CodeHighlightBand as _, CHART_TYPES as a, type LayoutContent as a$, type CodeHighlightEntry as a0, type CodeHighlightIssue as a1, type CodeHighlightLines as a2, type CodeLayout as a3, type CodeLayoutDiagnostic as a4, type CodeLayoutOptions as a5, type CodeLineSegment as a6, type CodeLineSource as a7, type CodeRun as a8, type CodeSyntaxPalette as a9, DEFAULT_FURNITURE_DATE_FORMAT as aA, DEFAULT_SLIDE_NUMBER_FORMAT as aB, DESIGN_HINT_KEYS as aC, type DeckCitations as aD, type DesignHintKey as aE, type DesignHintSource as aF, type DesignHints as aG, FONT_SIZE_GRID_PER_PX as aH, FOOTNOTE_MAX_RATIO as aI, type FontFaceSelection as aJ, type FootnoteLayoutOptions as aK, type FurnitureField as aL, type FurnitureImagePart as aM, type FurnitureLayout as aN, type FurniturePart as aO, type FurniturePartBase as aP, type FurnitureSocialLink as aQ, type FurnitureTextExtras as aR, type FurnitureTextPart as aS, type ImageEdge as aT, type ImageFit as aU, type ImageFitPlacement as aV, type ImageFocus as aW, type ImageShape as aX, LAYOUT_BODY_KINDS as aY, type LayoutBodyKind as aZ, type LayoutBox as a_, type CodeSyntaxPaletteOptions as aa, type CodeSyntaxPaletteTheme as ab, type CodeTextFit as ac, type CodeTextPart as ad, type CodeToken as ae, type CodeTokenKind as af, type ComposedBackgroundImage as ag, type ComposedCaption as ah, type ComposedFlow as ai, type ComposedFootnoteEntry as aj, type ComposedFootnotes as ak, type ComposedGroup as al, type ComposedImage as am, type ComposedItem as an, type ComposedLogo as ao, type ComposedOverlay as ap, type ComposedPlacement as aq, type ComposedSlot as ar, type Composition as as, type CompositionCandidate as at, type CompositionDecision as au, type CompositionExplanation as av, type CompositionPenalties as aw, type CompositionTrack as ax, DARK_BACKGROUND_LUMINANCE as ay, DEFAULT_CHART_LABEL_SEPARATOR as az, ENGINE_DEFAULT_COLOR_SCHEME as b, type RichText as b$, type LayoutLeaf as b0, type LayoutSlot as b1, type ListBulletImage as b2, type ListEntryLayout as b3, type ListFit as b4, type ListFitOptions as b5, type ListNumber as b6, type ListText as b7, type ListValue as b8, type LogoSlot as b9, PATTERN_TILE_SIZE as bA, PICTURE_BULLET_SCALE as bB, type PhysicalAlignment as bC, type QuoteContent as bD, type QuoteLayout as bE, type QuoteLayoutDiagnostic as bF, type QuoteLayoutOptions as bG, type QuotePhoto as bH, type QuoteTextPart as bI, type QuoteTextSource as bJ, type ReadingBox as bK, type Reference as bL, type ReferencesSlideOptions as bM, type ResolveColorRefOptions as bN, type ResolveColorRefRoles as bO, type ResolveColorRolesOptions as bP, type ResolveDesignHintsOptions as bQ, type ResolveLogoOptions as bR, type ResolveScriptFontsOptions as bS, type ResolvedChartDataLabels as bT, type ResolvedChartHighlight as bU, type ResolvedChartOptions as bV, type ResolvedColorRoles as bW, type ResolvedDesignHints as bX, type ResolvedLogo as bY, type ResolvedNumbering as bZ, type ResolvedScriptFonts as b_, MAX_COMPOSITION_DEPTH as ba, MAX_NUMBERING_LEVELS as bb, MAX_NUMBERING_VALUE as bc, MAX_PLACEHOLDER_GROUP_DEPTH as bd, MAX_ROMAN_VALUE as be, METRIC_TREND_MIN_CONTRAST as bf, METRIC_TREND_SHAPES as bg, type MetricContent as bh, type MetricLayout as bi, type MetricLayoutDiagnostic as bj, type MetricLayoutOptions as bk, type MetricSentiment as bl, type MetricTextPart as bm, type MetricTextSource as bn, type MetricTrend as bo, type MetricTrendColorOptions as bp, type MetricTrendMark as bq, NUMBERING_STYLES as br, NUMBERING_SUFFIXES as bs, type Numbering as bt, type NumberingInput as bu, type NumberingStyleName as bv, type NumberingSuffix as bw, OPFCompositionError as bx, PATTERN_PRESETS as by, PATTERN_PRESET_ALIASES as bz, ENGINE_DEFAULT_FONT_SCHEME as c, codeSyntaxPaletteForScheme as c$, type RichTextFit as c0, type RichTextFragment as c1, type RichTextLine as c2, type RichTextOptions as c3, type RichTextRun as c4, SURFACE_ALT_MIN_CONTRAST as c5, SURFACE_ALT_MIX as c6, type ScriptFontApp as c7, type ScriptFontSlots as c8, type ScriptFontSource as c9, type TimelineEvent as cA, type TimelineLayout as cB, type TimelineLayoutDiagnostic as cC, type TimelineLayoutOptions as cD, type TimelineMarkerShape as cE, type TimelineStatus as cF, type TimelineStatusColors as cG, type TimelineTextPart as cH, type WatermarkTextLayout as cI, type WatermarkTextOptions as cJ, annotationText as cK, captionSettings as cL, chartColorForFill as cM, chartHighlightColors as cN, chartHighlightMarks as cO, chartLabelText as cP, chartOptionSupport as cQ, chartOptionTarget as cR, chartPaletteForFill as cS, chartPrimaryLayout as cT, citationMarkerText as cU, codeHighlightBands as cV, codeHighlightColors as cW, codeHighlightLines as cX, codeLineNumbers as cY, codeLineRuns as cZ, codeSyntaxPalette as c_, type ScriptFontSupplement as ca, type ScriptRole as cb, type SlideCitations as cc, type SlideComposition as cd, type SocialProfile as ce, type SourceTextFit as cf, TIMELINE_OUTLINE_MIN_CONTRAST as cg, TIMELINE_STATUSES as ch, TIMELINE_TEXT_MIN_CONTRAST as ci, type TableBorder as cj, type TableCellLayout as ck, type TableCellStyle as cl, type TableGrid as cm, type TableGridCell as cn, type TableGridIssue as co, type TableLayout as cp, type TableLayoutOptions as cq, type TableRowLayout as cr, type TextDirection as cs, type TextFit as ct, type TextLineInk as cu, type TextLineSegment as cv, type TextLineSource as cw, type TextPlacement as cx, type TextPlacementLine as cy, type TimelineContent as cz, ENGINE_DEFAULT_THEME as d, resolveTextStyle as d$, collectCitations as d0, colorContrast as d1, composeSlide as d2, defaultSlideBackground as d3, fitImage as d4, fitList as d5, fitRichText as d6, fitText as d7, formatChartLabelNumber as d8, formatChartLabelPercent as d9, measureTextOutline as dA, metricTrendColor as dB, metricTrendMark as dC, metricTrendPoints as dD, normalizeHexColor as dE, numberingAtLevel as dF, numberingStyleDraws as dG, paragraphDirection as dH, paragraphDirectionAt as dI, patternBitmap as dJ, patternRuns as dK, physicalAlignment as dL, placeTextLines as dM, referencesSlide as dN, resolveCanvasDimensions as dO, resolveChartOptions as dP, resolveCodeLanguage as dQ, resolveColorRef as dR, resolveColorRoles as dS, resolveDesignHints as dT, resolveFontFamilies as dU, resolveLogo as dV, resolveNumbering as dW, resolvePatternPreset as dX, resolveScriptFonts as dY, resolveSlideDirection as dZ, resolveSocialProfile as d_, formatFurnitureDate as da, formatListNumber as db, formatSlideNumber as dc, hasPlaceholderGroups as dd, imageBackground as de, imageShape as df, intrinsicImageAspect as dg, intrinsicImageSize as dh, isDarkColor as di, isPlaceholderGroup as dj, layoutCaption as dk, layoutCode as dl, layoutContent as dm, layoutFootnotes as dn, layoutFurniture as dp, layoutLeaves as dq, layoutMetric as dr, layoutQuote as ds, layoutSlots as dt, layoutStructure as du, layoutTable as dv, layoutTimeline as dw, layoutWatermark as dx, listNumbers as dy, measureText as dz, type FontFamilies as e, scriptFontRole as e0, sliceNumberedItems as e1, slideCitations as e2, snapFontSizeDown as e3, snapFontSizeUp as e4, surfaceAltColor as e5, tableGrid as e6, tableRowBoundaries as e7, textColorForFill as e8, textWidthMeasurer as e9, timelineMarkerShapes as ea, timelineTextColor as eb, tokenizeCode as ec, visualReadingOrder as ed, walkCitationRuns as ee, wrapText as ef, LANGUAGES as f, type LanguageFamilyName as g, type LanguageVocabulary as h, type SocialPlatformVocabulary as i, type TextStyle as j, type AnnotationFitter as k, type AnnotationLayoutOptions as l, CAPTIONABLE_FIELDS as m, normalizeLanguageFamily as n, CAPTION_FONT_RATIO as o, CAPTION_MAX_RATIO as p, CHART_HIGHLIGHT_MUTED_MIN_CONTRAST as q, CHART_HIGHLIGHT_MUTED_MIX as r, CHART_SERIES_MIN_DIFFERENCE as s, CHART_SERIES_MIN_LIGHTNESS_STEP as t, CITATION_MARKER_RAISE as u, CITATION_MARKER_SCALE as v, CODE_HIGHLIGHT_LANGUAGES as w, CODE_HIGHLIGHT_MAX_LENGTH as x, CODE_PANEL_BACKGROUND as y, CODE_PANEL_FOREGROUND as z };
@@ -1,3 +1,3 @@
1
- export { A as AnnotatedRun, k as AnnotationFitter, l as AnnotationLayoutOptions, B as BackgroundImageFit, m as CAPTIONABLE_FIELDS, o as CAPTION_FONT_RATIO, p as CAPTION_MAX_RATIO, q as CHART_HIGHLIGHT_MUTED_MIN_CONTRAST, r as CHART_HIGHLIGHT_MUTED_MIX, s as CHART_SERIES_MIN_DIFFERENCE, t as CHART_SERIES_MIN_LIGHTNESS_STEP, a as CHART_TYPES, u as CITATION_MARKER_RAISE, v as CITATION_MARKER_SCALE, w as CODE_HIGHLIGHT_LANGUAGES, x as CODE_HIGHLIGHT_MAX_LENGTH, y as CODE_PANEL_BACKGROUND, z as CODE_PANEL_FOREGROUND, D as CODE_SYNTAX_MIN_CONTRAST, G as Caption, H as CaptionAlignment, I as CaptionObject, J as CaptionPosition, K as CaptionSettings, N as ChartHighlightMarks, O as ChartLabelContent, P as ChartLabelPosition, Q as ChartLegendPosition, R as ChartOptionDiagnostic, U as ChartOptionKind, V as ChartOptionSupport, W as ChartOptionTarget, X as CitationMarker, Y as CitationNote, Z as CodeContent, _ as CodeHighlightBand, $ as CodeHighlightColors, a0 as CodeHighlightEntry, a1 as CodeHighlightIssue, a2 as CodeHighlightLines, a3 as CodeLayout, a4 as CodeLayoutDiagnostic, a5 as CodeLayoutOptions, a6 as CodeLineSegment, a7 as CodeLineSource, a8 as CodeRun, a9 as CodeSyntaxPalette, aa as CodeSyntaxPaletteOptions, ab as CodeSyntaxPaletteTheme, ac as CodeTextFit, ad as CodeTextPart, ae as CodeToken, af as CodeTokenKind, C as ComposeSlideOptions, ag as ComposedBackgroundImage, ah as ComposedCaption, ai as ComposedFlow, aj as ComposedFootnoteEntry, ak as ComposedFootnotes, al as ComposedGroup, am as ComposedImage, an as ComposedItem, ao as ComposedLogo, ap as ComposedOverlay, aq as ComposedPlacement, ar as Composition, as as CompositionCandidate, at as CompositionDecision, au as CompositionExplanation, av as CompositionPenalties, aw as CompositionTrack, ax as DARK_BACKGROUND_LUMINANCE, ay as DEFAULT_CHART_LABEL_SEPARATOR, az as DEFAULT_FURNITURE_DATE_FORMAT, aA as DEFAULT_SLIDE_NUMBER_FORMAT, aB as DESIGN_HINT_KEYS, aC as DeckCitations, aD as DesignHintKey, aE as DesignHintSource, aF as DesignHints, E as ENGINE_DEFAULT_CHART_TYPES, b as ENGINE_DEFAULT_COLOR_SCHEME, c as ENGINE_DEFAULT_FONT_SCHEME, d as ENGINE_DEFAULT_THEME, aG as FONT_SIZE_GRID_PER_PX, aH as FOOTNOTE_MAX_RATIO, aI as FontFaceSelection, e as FontFamilies, F as Fonts, aJ as FootnoteLayoutOptions, aK as FurnitureField, aL as FurnitureImagePart, aM as FurnitureLayout, aN as FurniturePart, aO as FurniturePartBase, aP as FurnitureSocialLink, aQ as FurnitureTextExtras, aR as FurnitureTextPart, aS as ImageEdge, aT as ImageFit, aU as ImageFitPlacement, aV as ImageFocus, aW as ImageShape, f as LANGUAGES, aX as LAYOUT_BODY_KINDS, h as LanguageVocabulary, aY as LayoutBodyKind, aZ as LayoutBox, a_ as LayoutContent, L as LayoutDiagnostic, a$ as ListBulletImage, b0 as ListEntryLayout, b1 as ListFit, b2 as ListFitOptions, b3 as ListNumber, b4 as ListText, b5 as ListValue, b6 as LogoSlot, b7 as MAX_COMPOSITION_DEPTH, b8 as MAX_NUMBERING_LEVELS, b9 as MAX_NUMBERING_VALUE, ba as MAX_ROMAN_VALUE, bb as METRIC_TREND_MIN_CONTRAST, bc as METRIC_TREND_SHAPES, M as MeasureTextWidth, bd as MetricContent, be as MetricLayout, bf as MetricLayoutDiagnostic, bg as MetricLayoutOptions, bh as MetricSentiment, bi as MetricTextPart, bj as MetricTextSource, bk as MetricTrend, bl as MetricTrendColorOptions, bm as MetricTrendMark, bn as NUMBERING_STYLES, bo as NUMBERING_SUFFIXES, bp as Numbering, bq as NumberingInput, br as NumberingStyleName, bs as NumberingSuffix, bt as OPFCompositionError, bu as PATTERN_PRESETS, bv as PATTERN_PRESET_ALIASES, bw as PATTERN_TILE_SIZE, bx as PICTURE_BULLET_SCALE, by as PhysicalAlignment, bz as QuoteContent, bA as QuoteLayout, bB as QuoteLayoutDiagnostic, bC as QuoteLayoutOptions, bD as QuotePhoto, bE as QuoteTextPart, bF as QuoteTextSource, bG as ReadingBox, bH as Reference, bI as ReferencesSlideOptions, bJ as ResolveColorRefOptions, bK as ResolveColorRefRoles, bL as ResolveColorRolesOptions, bM as ResolveDesignHintsOptions, bN as ResolveLogoOptions, bO as ResolveScriptFontsOptions, bP as ResolvedChartDataLabels, bQ as ResolvedChartHighlight, bR as ResolvedChartOptions, bS as ResolvedColorRoles, bT as ResolvedDesignHints, bU as ResolvedLogo, bV as ResolvedNumbering, bW as ResolvedScriptFonts, bX as RichText, bY as RichTextFit, bZ as RichTextFragment, b_ as RichTextLine, b$ as RichTextOptions, c0 as RichTextRun, S as SOCIAL_PLATFORMS, c1 as SURFACE_ALT_MIN_CONTRAST, c2 as SURFACE_ALT_MIX, c3 as ScriptFontApp, c4 as ScriptFontSlots, c5 as ScriptFontSource, c6 as ScriptFontSupplement, c7 as ScriptRole, c8 as SlideCitations, c9 as SlideComposition, i as SocialPlatformVocabulary, ca as SocialProfile, cb as SourceTextFit, cc as TIMELINE_OUTLINE_MIN_CONTRAST, cd as TIMELINE_STATUSES, ce as TIMELINE_TEXT_MIN_CONTRAST, cf as TableBorder, cg as TableCellLayout, ch as TableCellStyle, ci as TableGrid, cj as TableGridCell, ck as TableGridIssue, cl as TableLayout, cm as TableLayoutOptions, cn as TableRowLayout, co as TextDirection, cp as TextFit, cq as TextLineInk, cr as TextLineSegment, cs as TextLineSource, T as TextMeasurement, ct as TextPlacement, cu as TextPlacementLine, j as TextStyle, cv as TimelineContent, cw as TimelineEvent, cx as TimelineLayout, cy as TimelineLayoutDiagnostic, cz as TimelineLayoutOptions, cA as TimelineMarkerShape, cB as TimelineStatus, cC as TimelineStatusColors, cD as TimelineTextPart, cE as WatermarkTextLayout, cF as WatermarkTextOptions, cG as annotationText, cH as captionSettings, cI as chartColorForFill, cJ as chartHighlightColors, cK as chartHighlightMarks, cL as chartLabelText, cM as chartOptionSupport, cN as chartOptionTarget, cO as chartPaletteForFill, cP as citationMarkerText, cQ as codeHighlightBands, cR as codeHighlightColors, cS as codeHighlightLines, cT as codeLineNumbers, cU as codeLineRuns, cV as codeSyntaxPalette, cW as codeSyntaxPaletteForScheme, cX as collectCitations, cY as colorContrast, cZ as composeSlide, c_ as defaultSlideBackground, c$ as fitImage, d0 as fitList, d1 as fitRichText, d2 as fitText, d3 as formatChartLabelNumber, d4 as formatChartLabelPercent, d5 as formatFurnitureDate, d6 as formatListNumber, d7 as formatSlideNumber, d8 as imageBackground, d9 as imageShape, da as intrinsicImageAspect, db as intrinsicImageSize, dc as isDarkColor, dd as layoutCaption, de as layoutCode, df as layoutContent, dg as layoutFootnotes, dh as layoutFurniture, di as layoutMetric, dj as layoutQuote, dk as layoutTable, dl as layoutTimeline, dm as layoutWatermark, dn as listNumbers, dp as measureText, dq as measureTextOutline, dr as metricTrendColor, ds as metricTrendMark, dt as metricTrendPoints, du as normalizeHexColor, dv as numberingAtLevel, dw as numberingStyleDraws, dx as paragraphDirection, dy as paragraphDirectionAt, dz as patternBitmap, dA as patternRuns, dB as physicalAlignment, dC as placeTextLines, dD as referencesSlide, dE as resolveCanvasDimensions, dF as resolveChartOptions, dG as resolveCodeLanguage, dH as resolveColorRef, dI as resolveColorRoles, dJ as resolveDesignHints, dK as resolveFontFamilies, dL as resolveLogo, dM as resolveNumbering, dN as resolvePatternPreset, dO as resolveScriptFonts, dP as resolveSlideDirection, dQ as resolveSocialProfile, dR as resolveTextStyle, dS as scriptFontRole, dT as sliceNumberedItems, dU as slideCitations, dV as snapFontSizeDown, dW as snapFontSizeUp, dX as surfaceAltColor, dY as tableGrid, dZ as tableRowBoundaries, d_ as textColorForFill, d$ as textWidthMeasurer, e0 as timelineMarkerShapes, e1 as timelineTextColor, e2 as tokenizeCode, e3 as visualReadingOrder, e4 as walkCitationRuns, e5 as wrapText } from './composition-D2tghM82.js';
2
- export { d as CATALOG_REFERENCE_PATTERN, a as Catalog, C as CatalogKind, b as CatalogOptions, f as CatalogRecords, g as CatalogReferenceSite, O as OPFCatalogsOptionError, h as OPFUnresolvedReferenceError, R as RecordProvenance, i as ResolvedReference, U as UnresolvedReferenceDiagnostic, j as catalogGroupSource, k as catalogKinds, l as catalogRecords, m as catalogReferenceSites, p as parseReference, r as resolveReference, u as unresolvedReference } from './catalog-refs-BSfGELpt.js';
1
+ export { A as AnnotatedRun, k as AnnotationFitter, l as AnnotationLayoutOptions, B as BackgroundImageFit, m as CAPTIONABLE_FIELDS, o as CAPTION_FONT_RATIO, p as CAPTION_MAX_RATIO, q as CHART_HIGHLIGHT_MUTED_MIN_CONTRAST, r as CHART_HIGHLIGHT_MUTED_MIX, s as CHART_SERIES_MIN_DIFFERENCE, t as CHART_SERIES_MIN_LIGHTNESS_STEP, a as CHART_TYPES, u as CITATION_MARKER_RAISE, v as CITATION_MARKER_SCALE, w as CODE_HIGHLIGHT_LANGUAGES, x as CODE_HIGHLIGHT_MAX_LENGTH, y as CODE_PANEL_BACKGROUND, z as CODE_PANEL_FOREGROUND, D as CODE_SYNTAX_MIN_CONTRAST, G as Caption, H as CaptionAlignment, I as CaptionObject, J as CaptionPosition, K as CaptionSettings, N as ChartHighlightMarks, O as ChartLabelContent, P as ChartLabelPosition, Q as ChartLegendPosition, R as ChartOptionDiagnostic, U as ChartOptionKind, V as ChartOptionSupport, W as ChartOptionTarget, X as CitationMarker, Y as CitationNote, Z as CodeContent, _ as CodeHighlightBand, $ as CodeHighlightColors, a0 as CodeHighlightEntry, a1 as CodeHighlightIssue, a2 as CodeHighlightLines, a3 as CodeLayout, a4 as CodeLayoutDiagnostic, a5 as CodeLayoutOptions, a6 as CodeLineSegment, a7 as CodeLineSource, a8 as CodeRun, a9 as CodeSyntaxPalette, aa as CodeSyntaxPaletteOptions, ab as CodeSyntaxPaletteTheme, ac as CodeTextFit, ad as CodeTextPart, ae as CodeToken, af as CodeTokenKind, C as ComposeSlideOptions, ag as ComposedBackgroundImage, ah as ComposedCaption, ai as ComposedFlow, aj as ComposedFootnoteEntry, ak as ComposedFootnotes, al as ComposedGroup, am as ComposedImage, an as ComposedItem, ao as ComposedLogo, ap as ComposedOverlay, aq as ComposedPlacement, ar as ComposedSlot, as as Composition, at as CompositionCandidate, au as CompositionDecision, av as CompositionExplanation, aw as CompositionPenalties, ax as CompositionTrack, ay as DARK_BACKGROUND_LUMINANCE, az as DEFAULT_CHART_LABEL_SEPARATOR, aA as DEFAULT_FURNITURE_DATE_FORMAT, aB as DEFAULT_SLIDE_NUMBER_FORMAT, aC as DESIGN_HINT_KEYS, aD as DeckCitations, aE as DesignHintKey, aF as DesignHintSource, aG as DesignHints, E as ENGINE_DEFAULT_CHART_TYPES, b as ENGINE_DEFAULT_COLOR_SCHEME, c as ENGINE_DEFAULT_FONT_SCHEME, d as ENGINE_DEFAULT_THEME, aH as FONT_SIZE_GRID_PER_PX, aI as FOOTNOTE_MAX_RATIO, aJ as FontFaceSelection, e as FontFamilies, F as Fonts, aK as FootnoteLayoutOptions, aL as FurnitureField, aM as FurnitureImagePart, aN as FurnitureLayout, aO as FurniturePart, aP as FurniturePartBase, aQ as FurnitureSocialLink, aR as FurnitureTextExtras, aS as FurnitureTextPart, aT as ImageEdge, aU as ImageFit, aV as ImageFitPlacement, aW as ImageFocus, aX as ImageShape, f as LANGUAGES, aY as LAYOUT_BODY_KINDS, h as LanguageVocabulary, aZ as LayoutBodyKind, a_ as LayoutBox, a$ as LayoutContent, L as LayoutDiagnostic, b0 as LayoutLeaf, b1 as LayoutSlot, b2 as ListBulletImage, b3 as ListEntryLayout, b4 as ListFit, b5 as ListFitOptions, b6 as ListNumber, b7 as ListText, b8 as ListValue, b9 as LogoSlot, ba as MAX_COMPOSITION_DEPTH, bb as MAX_NUMBERING_LEVELS, bc as MAX_NUMBERING_VALUE, bd as MAX_PLACEHOLDER_GROUP_DEPTH, be as MAX_ROMAN_VALUE, bf as METRIC_TREND_MIN_CONTRAST, bg as METRIC_TREND_SHAPES, M as MeasureTextWidth, bh as MetricContent, bi as MetricLayout, bj as MetricLayoutDiagnostic, bk as MetricLayoutOptions, bl as MetricSentiment, bm as MetricTextPart, bn as MetricTextSource, bo as MetricTrend, bp as MetricTrendColorOptions, bq as MetricTrendMark, br as NUMBERING_STYLES, bs as NUMBERING_SUFFIXES, bt as Numbering, bu as NumberingInput, bv as NumberingStyleName, bw as NumberingSuffix, bx as OPFCompositionError, by as PATTERN_PRESETS, bz as PATTERN_PRESET_ALIASES, bA as PATTERN_TILE_SIZE, bB as PICTURE_BULLET_SCALE, bC as PhysicalAlignment, bD as QuoteContent, bE as QuoteLayout, bF as QuoteLayoutDiagnostic, bG as QuoteLayoutOptions, bH as QuotePhoto, bI as QuoteTextPart, bJ as QuoteTextSource, bK as ReadingBox, bL as Reference, bM as ReferencesSlideOptions, bN as ResolveColorRefOptions, bO as ResolveColorRefRoles, bP as ResolveColorRolesOptions, bQ as ResolveDesignHintsOptions, bR as ResolveLogoOptions, bS as ResolveScriptFontsOptions, bT as ResolvedChartDataLabels, bU as ResolvedChartHighlight, bV as ResolvedChartOptions, bW as ResolvedColorRoles, bX as ResolvedDesignHints, bY as ResolvedLogo, bZ as ResolvedNumbering, b_ as ResolvedScriptFonts, b$ as RichText, c0 as RichTextFit, c1 as RichTextFragment, c2 as RichTextLine, c3 as RichTextOptions, c4 as RichTextRun, S as SOCIAL_PLATFORMS, c5 as SURFACE_ALT_MIN_CONTRAST, c6 as SURFACE_ALT_MIX, c7 as ScriptFontApp, c8 as ScriptFontSlots, c9 as ScriptFontSource, ca as ScriptFontSupplement, cb as ScriptRole, cc as SlideCitations, cd as SlideComposition, i as SocialPlatformVocabulary, ce as SocialProfile, cf as SourceTextFit, cg as TIMELINE_OUTLINE_MIN_CONTRAST, ch as TIMELINE_STATUSES, ci as TIMELINE_TEXT_MIN_CONTRAST, cj as TableBorder, ck as TableCellLayout, cl as TableCellStyle, cm as TableGrid, cn as TableGridCell, co as TableGridIssue, cp as TableLayout, cq as TableLayoutOptions, cr as TableRowLayout, cs as TextDirection, ct as TextFit, cu as TextLineInk, cv as TextLineSegment, cw as TextLineSource, T as TextMeasurement, cx as TextPlacement, cy as TextPlacementLine, j as TextStyle, cz as TimelineContent, cA as TimelineEvent, cB as TimelineLayout, cC as TimelineLayoutDiagnostic, cD as TimelineLayoutOptions, cE as TimelineMarkerShape, cF as TimelineStatus, cG as TimelineStatusColors, cH as TimelineTextPart, cI as WatermarkTextLayout, cJ as WatermarkTextOptions, cK as annotationText, cL as captionSettings, cM as chartColorForFill, cN as chartHighlightColors, cO as chartHighlightMarks, cP as chartLabelText, cQ as chartOptionSupport, cR as chartOptionTarget, cS as chartPaletteForFill, cT as chartPrimaryLayout, cU as citationMarkerText, cV as codeHighlightBands, cW as codeHighlightColors, cX as codeHighlightLines, cY as codeLineNumbers, cZ as codeLineRuns, c_ as codeSyntaxPalette, c$ as codeSyntaxPaletteForScheme, d0 as collectCitations, d1 as colorContrast, d2 as composeSlide, d3 as defaultSlideBackground, d4 as fitImage, d5 as fitList, d6 as fitRichText, d7 as fitText, d8 as formatChartLabelNumber, d9 as formatChartLabelPercent, da as formatFurnitureDate, db as formatListNumber, dc as formatSlideNumber, dd as hasPlaceholderGroups, de as imageBackground, df as imageShape, dg as intrinsicImageAspect, dh as intrinsicImageSize, di as isDarkColor, dj as isPlaceholderGroup, dk as layoutCaption, dl as layoutCode, dm as layoutContent, dn as layoutFootnotes, dp as layoutFurniture, dq as layoutLeaves, dr as layoutMetric, ds as layoutQuote, dt as layoutSlots, du as layoutStructure, dv as layoutTable, dw as layoutTimeline, dx as layoutWatermark, dy as listNumbers, dz as measureText, dA as measureTextOutline, dB as metricTrendColor, dC as metricTrendMark, dD as metricTrendPoints, dE as normalizeHexColor, dF as numberingAtLevel, dG as numberingStyleDraws, dH as paragraphDirection, dI as paragraphDirectionAt, dJ as patternBitmap, dK as patternRuns, dL as physicalAlignment, dM as placeTextLines, dN as referencesSlide, dO as resolveCanvasDimensions, dP as resolveChartOptions, dQ as resolveCodeLanguage, dR as resolveColorRef, dS as resolveColorRoles, dT as resolveDesignHints, dU as resolveFontFamilies, dV as resolveLogo, dW as resolveNumbering, dX as resolvePatternPreset, dY as resolveScriptFonts, dZ as resolveSlideDirection, d_ as resolveSocialProfile, d$ as resolveTextStyle, e0 as scriptFontRole, e1 as sliceNumberedItems, e2 as slideCitations, e3 as snapFontSizeDown, e4 as snapFontSizeUp, e5 as surfaceAltColor, e6 as tableGrid, e7 as tableRowBoundaries, e8 as textColorForFill, e9 as textWidthMeasurer, ea as timelineMarkerShapes, eb as timelineTextColor, ec as tokenizeCode, ed as visualReadingOrder, ee as walkCitationRuns, ef as wrapText } from './composition-D4ADF5c-.js';
2
+ export { d as CATALOG_REFERENCE_PATTERN, C as Catalog, a as CatalogKind, b as CatalogOptions, f as CatalogRecords, g as CatalogReferenceSite, O as OPFCatalogsOptionError, h as OPFUnresolvedReferenceError, R as RecordProvenance, i as ResolvedReference, U as UnresolvedReferenceDiagnostic, j as catalogGroupSource, k as catalogKinds, l as catalogRecords, m as catalogReferenceSites, p as parseReference, r as resolveReference, u as unresolvedReference } from './catalog-refs-_anZs-Qz.js';
3
3
  export { I as ChartComboSeries, C as ChartMapping, D as DataCellValue, d as DataColumn, e as DataDiagnostic, h as DataSourceRef, j as DataTableCell, k as DataTableHeader, n as Dataset, o as DatasetRef, R as ResolvedChartData, p as ResolvedTableData, q as chartNumber, s as formatDataNumber, t as fromExcelNumberFormat, u as inlineChartData, v as inlineDatasets, w as inlineTableData, x as isDatasetRef, y as isXYChartType, z as numberFormatError, A as resolveChartData, B as resolveTableData, F as tableCellDisplayValue, G as toExcelNumberFormat } from './chart-data-BnNqgnC-.js';
@@ -1,2 +1,2 @@
1
- export { CAPTIONABLE_FIELDS, CAPTION_FONT_RATIO, CAPTION_MAX_RATIO, CHART_HIGHLIGHT_MUTED_MIN_CONTRAST, CHART_HIGHLIGHT_MUTED_MIX, CHART_SERIES_MIN_DIFFERENCE, CHART_SERIES_MIN_LIGHTNESS_STEP, CHART_TYPES, CITATION_MARKER_RAISE, CITATION_MARKER_SCALE, CODE_HIGHLIGHT_LANGUAGES, CODE_HIGHLIGHT_MAX_LENGTH, CODE_PANEL_BACKGROUND, CODE_PANEL_FOREGROUND, CODE_SYNTAX_MIN_CONTRAST, DARK_BACKGROUND_LUMINANCE, DEFAULT_CHART_LABEL_SEPARATOR, DEFAULT_FURNITURE_DATE_FORMAT, DEFAULT_SLIDE_NUMBER_FORMAT, DESIGN_HINT_KEYS, ENGINE_DEFAULT_CHART_TYPES, ENGINE_DEFAULT_COLOR_SCHEME, ENGINE_DEFAULT_FONT_SCHEME, ENGINE_DEFAULT_THEME, FONT_SIZE_GRID_PER_PX, FOOTNOTE_MAX_RATIO, LANGUAGES, LAYOUT_BODY_KINDS, MAX_COMPOSITION_DEPTH, MAX_NUMBERING_LEVELS, MAX_NUMBERING_VALUE, MAX_ROMAN_VALUE, METRIC_TREND_MIN_CONTRAST, METRIC_TREND_SHAPES, NUMBERING_STYLES, NUMBERING_SUFFIXES, OPFCompositionError, PATTERN_PRESETS, PATTERN_PRESET_ALIASES, PATTERN_TILE_SIZE, PICTURE_BULLET_SCALE, SOCIAL_PLATFORMS, SURFACE_ALT_MIN_CONTRAST, SURFACE_ALT_MIX, TIMELINE_OUTLINE_MIN_CONTRAST, TIMELINE_STATUSES, TIMELINE_TEXT_MIN_CONTRAST, annotationText, captionSettings, chartColorForFill, chartHighlightColors, chartHighlightMarks, chartLabelText, chartNumber, chartOptionSupport, chartOptionTarget, chartPaletteForFill, citationMarkerText, codeHighlightBands, codeHighlightColors, codeHighlightLines, codeLineNumbers, codeLineRuns, codeSyntaxPalette, codeSyntaxPaletteForScheme, collectCitations, colorContrast, composeSlide, defaultSlideBackground, fitImage, fitList, fitRichText, fitText, formatChartLabelNumber, formatChartLabelPercent, formatDataNumber, formatFurnitureDate, formatListNumber, formatSlideNumber, fromExcelNumberFormat, imageBackground, imageShape, inlineChartData, inlineDatasets, inlineTableData, intrinsicImageAspect, intrinsicImageSize, isDarkColor, isDatasetRef, isXYChartType, layoutCaption, layoutCode, layoutContent, layoutFootnotes, layoutFurniture, layoutMetric, layoutQuote, layoutTable, layoutTimeline, layoutWatermark, listNumbers, measureText, measureTextOutline, metricTrendColor, metricTrendMark, metricTrendPoints, normalizeHexColor, numberFormatError, numberingAtLevel, numberingStyleDraws, paragraphDirection, paragraphDirectionAt, patternBitmap, patternRuns, physicalAlignment, placeTextLines, referencesSlide, resolveCanvasDimensions, resolveChartData, resolveChartOptions, resolveCodeLanguage, resolveColorRef, resolveColorRoles, resolveDesignHints, resolveFontFamilies, resolveLogo, resolveNumbering, resolvePatternPreset, resolveScriptFonts, resolveSlideDirection, resolveSocialProfile, resolveTableData, resolveTextStyle, scriptFontRole, sliceNumberedItems, slideCitations, snapFontSizeDown, snapFontSizeUp, surfaceAltColor, tableCellDisplayValue, tableGrid, tableRowBoundaries, textColorForFill, textWidthMeasurer, timelineMarkerShapes, timelineTextColor, toExcelNumberFormat, tokenizeCode, visualReadingOrder, walkCitationRuns, wrapText } from './chunk-O744SXXA.js';
1
+ export { CAPTIONABLE_FIELDS, CAPTION_FONT_RATIO, CAPTION_MAX_RATIO, CHART_HIGHLIGHT_MUTED_MIN_CONTRAST, CHART_HIGHLIGHT_MUTED_MIX, CHART_SERIES_MIN_DIFFERENCE, CHART_SERIES_MIN_LIGHTNESS_STEP, CHART_TYPES, CITATION_MARKER_RAISE, CITATION_MARKER_SCALE, CODE_HIGHLIGHT_LANGUAGES, CODE_HIGHLIGHT_MAX_LENGTH, CODE_PANEL_BACKGROUND, CODE_PANEL_FOREGROUND, CODE_SYNTAX_MIN_CONTRAST, DARK_BACKGROUND_LUMINANCE, DEFAULT_CHART_LABEL_SEPARATOR, DEFAULT_FURNITURE_DATE_FORMAT, DEFAULT_SLIDE_NUMBER_FORMAT, DESIGN_HINT_KEYS, ENGINE_DEFAULT_CHART_TYPES, ENGINE_DEFAULT_COLOR_SCHEME, ENGINE_DEFAULT_FONT_SCHEME, ENGINE_DEFAULT_THEME, FONT_SIZE_GRID_PER_PX, FOOTNOTE_MAX_RATIO, LANGUAGES, LAYOUT_BODY_KINDS, MAX_COMPOSITION_DEPTH, MAX_NUMBERING_LEVELS, MAX_NUMBERING_VALUE, MAX_PLACEHOLDER_GROUP_DEPTH, MAX_ROMAN_VALUE, METRIC_TREND_MIN_CONTRAST, METRIC_TREND_SHAPES, NUMBERING_STYLES, NUMBERING_SUFFIXES, OPFCompositionError, PATTERN_PRESETS, PATTERN_PRESET_ALIASES, PATTERN_TILE_SIZE, PICTURE_BULLET_SCALE, SOCIAL_PLATFORMS, SURFACE_ALT_MIN_CONTRAST, SURFACE_ALT_MIX, TIMELINE_OUTLINE_MIN_CONTRAST, TIMELINE_STATUSES, TIMELINE_TEXT_MIN_CONTRAST, annotationText, captionSettings, chartColorForFill, chartHighlightColors, chartHighlightMarks, chartLabelText, chartNumber, chartOptionSupport, chartOptionTarget, chartPaletteForFill, chartPrimaryLayout, citationMarkerText, codeHighlightBands, codeHighlightColors, codeHighlightLines, codeLineNumbers, codeLineRuns, codeSyntaxPalette, codeSyntaxPaletteForScheme, collectCitations, colorContrast, composeSlide, defaultSlideBackground, fitImage, fitList, fitRichText, fitText, formatChartLabelNumber, formatChartLabelPercent, formatDataNumber, formatFurnitureDate, formatListNumber, formatSlideNumber, fromExcelNumberFormat, hasPlaceholderGroups, imageBackground, imageShape, inlineChartData, inlineDatasets, inlineTableData, intrinsicImageAspect, intrinsicImageSize, isDarkColor, isDatasetRef, isPlaceholderGroup, isXYChartType, layoutCaption, layoutCode, layoutContent, layoutFootnotes, layoutFurniture, layoutLeaves, layoutMetric, layoutQuote, layoutSlots, layoutStructure, layoutTable, layoutTimeline, layoutWatermark, listNumbers, measureText, measureTextOutline, metricTrendColor, metricTrendMark, metricTrendPoints, normalizeHexColor, numberFormatError, numberingAtLevel, numberingStyleDraws, paragraphDirection, paragraphDirectionAt, patternBitmap, patternRuns, physicalAlignment, placeTextLines, referencesSlide, resolveCanvasDimensions, resolveChartData, resolveChartOptions, resolveCodeLanguage, resolveColorRef, resolveColorRoles, resolveDesignHints, resolveFontFamilies, resolveLogo, resolveNumbering, resolvePatternPreset, resolveScriptFonts, resolveSlideDirection, resolveSocialProfile, resolveTableData, resolveTextStyle, scriptFontRole, sliceNumberedItems, slideCitations, snapFontSizeDown, snapFontSizeUp, surfaceAltColor, tableCellDisplayValue, tableGrid, tableRowBoundaries, textColorForFill, textWidthMeasurer, timelineMarkerShapes, timelineTextColor, toExcelNumberFormat, tokenizeCode, visualReadingOrder, walkCitationRuns, wrapText } from './chunk-5PDN7BN6.js';
2
2
  export { CATALOG_REFERENCE_PATTERN, OPFCatalogsOptionError, OPFUnresolvedReferenceError, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, parseReference, resolveReference, unresolvedReference } from './chunk-SPFV27O5.js';
package/dist/convert.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { P as PaginatedPage, d as PresentationPaginationOptions } from './pagination-wedbe7eq.js';
2
- import './composition-D2tghM82.js';
3
- import './catalog-refs-BSfGELpt.js';
1
+ import { P as PaginatedPage, d as PresentationPaginationOptions } from './pagination-DzZPFheM.js';
2
+ import './composition-D4ADF5c-.js';
3
+ import './catalog-refs-_anZs-Qz.js';
4
4
  import './chart-data-BnNqgnC-.js';
5
5
 
6
6
  type Json = any;
package/dist/convert.js CHANGED
@@ -1,12 +1,12 @@
1
- import { paginate, OPFPaginationError } from './chunk-UBFJ2QHH.js';
2
- import { parseQuoteLines, parseCodeFence, splitWhen, parseListLine, levelsFromIndents, fenceCode } from './chunk-374R35TJ.js';
3
- import { CONTENT_KEYS, isRecord, contentKeysOf, refuse, clone, Loss, isSlideLike, assertValidOwner, report, OPFConversionError, plainOf, assertValidOutput, same, splitRuns, runsOf, lineIsPlain, linePlain, concatText, lineValue, joinLines, hasFormatting } from './chunk-VGAOJEY7.js';
4
- export { OPFConversionError } from './chunk-VGAOJEY7.js';
5
- import './chunk-QDI75P2M.js';
6
- import { promotedRegionKeys, isDatasetRef, inlineTableData, visitContentPayloads, chartNumber } from './chunk-O744SXXA.js';
1
+ import { paginate, OPFPaginationError } from './chunk-BSYQDWT4.js';
2
+ import { parseQuoteLines, parseCodeFence, splitWhen, parseListLine, levelsFromIndents, fenceCode } from './chunk-NAWQR7MN.js';
3
+ import { CONTENT_KEYS, isRecord, contentKeysOf, refuse, clone, Loss, isSlideLike, assertValidOwner, report, OPFConversionError, plainOf, assertValidOutput, same, splitRuns, runsOf, lineIsPlain, linePlain, concatText, lineValue, joinLines, hasFormatting } from './chunk-5TO6I3GB.js';
4
+ export { OPFConversionError } from './chunk-5TO6I3GB.js';
5
+ import './chunk-PX5AWL7Y.js';
6
+ import { promotedRegionKeys, isDatasetRef, inlineTableData, visitContentPayloads, chartNumber } from './chunk-5PDN7BN6.js';
7
7
  import './chunk-TRDXRRQK.js';
8
8
  import './chunk-SPFV27O5.js';
9
- import './chunk-2CJPC4HI.js';
9
+ import './chunk-WEDGVC5W.js';
10
10
 
11
11
  // src/convert/tables.ts
12
12
  function cellOf(raw) {
package/dist/data.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { C as Chart } from './presentation-COrFuj2g.js';
1
2
  export { C as ChartMapping, a as ChartNumberFix, b as ChartNumberFixOperation, c as ChartNumberFixOptions, D as DataCellValue, d as DataColumn, e as DataDiagnostic, f as DataDiagnosticCode, g as DataResolveOptions, h as DataSourceRef, i as DataStyledCell, j as DataTableCell, k as DataTableHeader, l as DataTableValue, m as DataTextRun, n as Dataset, o as DatasetRef, R as ResolvedChartData, p as ResolvedTableData, q as chartNumber, r as datasetDiagnostics, s as formatDataNumber, t as fromExcelNumberFormat, u as inlineChartData, v as inlineDatasets, w as inlineTableData, x as isDatasetRef, y as isXYChartType, z as numberFormatError, A as resolveChartData, B as resolveTableData, E as suggestChartNumberFix, F as tableCellDisplayValue, G as toExcelNumberFormat, H as unusedDatasets } from './chart-data-BnNqgnC-.js';
2
3
 
3
4
  type DataCell = string | number | boolean | null;
@@ -5,6 +6,22 @@ interface TabularData {
5
6
  columns: string[];
6
7
  rows: DataCell[][];
7
8
  }
9
+ /** Chart import rejects empty columns and rows before returning a schema-compatible payload. */
10
+ interface ImportedChartData extends TabularData {
11
+ columns: [string, ...string[]];
12
+ rows: [DataCell[], ...DataCell[][]];
13
+ }
14
+ /** A `chart.type` value (OPF 0.15: an engine vocabulary, `CHART_TYPES`). */
15
+ type ImportedChartType = Chart['type'];
16
+ interface ImportedTable {
17
+ table: TabularData;
18
+ }
19
+ interface ImportedChart {
20
+ chart: {
21
+ type: ImportedChartType;
22
+ data: ImportedChartData;
23
+ };
24
+ }
8
25
  interface DataImportOptions {
9
26
  format?: 'csv' | 'tsv' | 'json';
10
27
  delimiter?: string;
@@ -13,7 +30,8 @@ interface DataImportOptions {
13
30
  }
14
31
  interface ImportDataOptions extends DataImportOptions {
15
32
  as: 'table' | 'chart';
16
- chartType?: string;
33
+ /** Default `column`. Values outside `CHART_TYPES` make an invalid chart; the CLI checks `--chart-type` first. */
34
+ chartType?: ImportedChartType;
17
35
  category?: string;
18
36
  series?: string[];
19
37
  }
@@ -21,13 +39,12 @@ declare class OPFDataImportError extends Error {
21
39
  constructor(message: string);
22
40
  }
23
41
  declare function parseTabularData(input: unknown, options?: DataImportOptions): TabularData;
24
- declare function importData(input: unknown, options: ImportDataOptions): {
25
- table: TabularData;
26
- } | {
27
- chart: {
28
- type: string;
29
- data: TabularData;
30
- };
31
- };
42
+ declare function importData(input: unknown, options: ImportDataOptions & {
43
+ as: 'table';
44
+ }): ImportedTable;
45
+ declare function importData(input: unknown, options: ImportDataOptions & {
46
+ as: 'chart';
47
+ }): ImportedChart;
48
+ declare function importData(input: unknown, options: ImportDataOptions): ImportedTable | ImportedChart;
32
49
 
33
- export { type DataCell, type DataImportOptions, type ImportDataOptions, OPFDataImportError, type TabularData, importData, parseTabularData };
50
+ export { type DataCell, type DataImportOptions, type ImportDataOptions, type ImportedChart, type ImportedChartData, type ImportedChartType, type ImportedTable, OPFDataImportError, type TabularData, importData, parseTabularData };
package/dist/data.js CHANGED
@@ -1,3 +1,3 @@
1
- export { OPFDataImportError, importData, parseTabularData } from './chunk-U4J75TRG.js';
2
- export { chartNumber, datasetDiagnostics, formatDataNumber, fromExcelNumberFormat, inlineChartData, inlineDatasets, inlineTableData, isDatasetRef, isXYChartType, numberFormatError, resolveChartData, resolveTableData, suggestChartNumberFix, tableCellDisplayValue, toExcelNumberFormat, unusedDatasets } from './chunk-O744SXXA.js';
1
+ export { OPFDataImportError, importData, parseTabularData } from './chunk-SMLMI6IZ.js';
2
+ export { chartNumber, datasetDiagnostics, formatDataNumber, fromExcelNumberFormat, inlineChartData, inlineDatasets, inlineTableData, isDatasetRef, isXYChartType, numberFormatError, resolveChartData, resolveTableData, suggestChartNumberFix, tableCellDisplayValue, toExcelNumberFormat, unusedDatasets } from './chunk-5PDN7BN6.js';
3
3
  import './chunk-SPFV27O5.js';
package/dist/deck.d.ts ADDED
@@ -0,0 +1,77 @@
1
+ import { C as Catalog } from './catalog-refs-_anZs-Qz.js';
2
+ import { P as Presentation } from './presentation-COrFuj2g.js';
3
+ import { V as ValidateOptions, a as ValidationReport } from './validation-types-HxIgJfKx.js';
4
+ import './composition-D4ADF5c-.js';
5
+ import './chart-data-BnNqgnC-.js';
6
+ import './finding-CT_f_vbD.js';
7
+ import './json-BFSdESOE.js';
8
+
9
+ /**
10
+ * One entry point to read and write a deck in any of its three serializations (RR-60): JSON, the canonical and interchange
11
+ * form, and the two authoring forms of the same data, YAML (`.opf.yaml`, RR-56) and Markdown (`.opf.md`, RR-30). `readDeck`
12
+ * turns text into a deck and the `validate` report of it, with every finding located in the text that was read; `writeDeck`
13
+ * turns a deck into text.
14
+ *
15
+ * The format comes from the `format` option, else from the file name, and never from the content: a string that starts with
16
+ * `{` is JSON only because JSON is the default. No renderer, fonts, DOM, network or model calls, and no Node APIs, so it runs in
17
+ * a browser. The same input always gives the same output.
18
+ */
19
+
20
+ /** The serializations of a deck: `json` (canonical), `yaml` (`.opf.yaml`) and `markdown` (`.opf.md`). */
21
+ type DeckFormat = "json" | "yaml" | "markdown";
22
+ /** Every deck format, in the order JSON, YAML, Markdown. */
23
+ declare const DECK_FORMATS: readonly DeckFormat[];
24
+ /**
25
+ * The format a file name stands for: `.opf.md` is Markdown, `.yaml` and `.yml` are YAML (any case), every other name is JSON.
26
+ * A plain `.md` file is not a deck: it is Markdown that `fromMarkdown` converts when asked, so it is never detected.
27
+ */
28
+ declare function deckFormatOf(filename: string | undefined): DeckFormat;
29
+ interface ReadDeckOptions {
30
+ /** The format of the text. Wins over `filename`. */
31
+ format?: DeckFormat;
32
+ /** The file name, for the format only: `.opf.md` is Markdown, `.yaml` and `.yml` are YAML, anything else is JSON. The content is never sniffed. */
33
+ filename?: string;
34
+ /** Catalogs the host registered, for the references check. Nothing is fetched. */
35
+ catalogs?: readonly Catalog[];
36
+ /**
37
+ * Check the deck with `validate` and locate its findings in the text: `true` (the default) checks `format` and `references`;
38
+ * options pick other rules or categories (`{}` runs every rule; `catalogs` above is added when the options name none);
39
+ * `false` skips the check, so only syntax errors are reported and `schemaValid` is null.
40
+ */
41
+ validate?: boolean | ValidateOptions;
42
+ }
43
+ /**
44
+ * The deck read from the text with the `validate` report of it (`valid`, `schemaValid`, `checks`, `findings`, `counts`, and
45
+ * `template` and `unfilledVariables` for a deck with content variables), the same whatever the format.
46
+ */
47
+ interface ReadDeckResult extends ValidationReport {
48
+ /** The deck. Always a value; when `valid` is false it is a best effort (an empty object after a syntax error). */
49
+ presentation: Presentation;
50
+ /** The format the text was read as. */
51
+ format: DeckFormat;
52
+ }
53
+ /**
54
+ * Read a deck from JSON, YAML or Markdown text. Never throws for malformed content; read `valid` and `findings`. The findings
55
+ * of a YAML or Markdown deck carry `location` (the UTF-16 offset and length, one-based line and column of the text that caused
56
+ * them, a validation finding mapped to the field it names); so do those of a JSON deck. A JSON syntax error is `opf/json-syntax`,
57
+ * a YAML one `yaml/<rule>` and a Markdown one `markdown/<rule>`. Throws a `TypeError` for text that is not a string, a format
58
+ * that is none of the three, or a bad option.
59
+ */
60
+ declare function readDeck(text: string, options?: ReadDeckOptions): ReadDeckResult;
61
+ interface WriteDeckOptions {
62
+ /** The format to write. Wins over `filename`. */
63
+ format?: DeckFormat;
64
+ /** The file name the text is for, for the format only (see `readDeck`). */
65
+ filename?: string;
66
+ /** YAML: start with `# yaml-language-server: $schema=...` so editors validate and complete the file. */
67
+ schemaComment?: boolean;
68
+ }
69
+ /**
70
+ * Write a deck as text: JSON as two-space JSON with a final newline, YAML in canonical form (`toYaml`) and Markdown in canonical
71
+ * form (`toMarkdown`, with anything the dialect has no syntax for embedded in `opf-slide` and `opf-block` fences so nothing is
72
+ * lost). `readDeck` reads each result back to the same deck. YAML and Markdown throw `OPFYamlError` or `OPFMarkdownError`
73
+ * (`invalid-document`) for a document that is not valid OPF; JSON writes whatever it is given.
74
+ */
75
+ declare function writeDeck(presentation: unknown, options?: WriteDeckOptions): string;
76
+
77
+ export { DECK_FORMATS, type DeckFormat, type ReadDeckOptions, type ReadDeckResult, type WriteDeckOptions, deckFormatOf, readDeck, writeDeck };
package/dist/deck.js ADDED
@@ -0,0 +1,12 @@
1
+ export { DECK_FORMATS, deckFormatOf, readDeck, writeDeck } from './chunk-KINQFU6X.js';
2
+ import './chunk-FQSIIADJ.js';
3
+ import './chunk-K4DQQIT4.js';
4
+ import './chunk-5UEUAW57.js';
5
+ import './chunk-6OR326EA.js';
6
+ import './chunk-NAWQR7MN.js';
7
+ import './chunk-5TO6I3GB.js';
8
+ import './chunk-PX5AWL7Y.js';
9
+ import './chunk-5PDN7BN6.js';
10
+ import './chunk-TRDXRRQK.js';
11
+ import './chunk-SPFV27O5.js';
12
+ import './chunk-WEDGVC5W.js';
package/dist/diff.js CHANGED
@@ -1,7 +1,7 @@
1
- export { categoryOf, describeValue, diff, formatDiffReport, matchArrays, merge, similarity } from './chunk-TWQJLI6E.js';
2
- import './chunk-5FTUIDUH.js';
3
- import './chunk-QDI75P2M.js';
4
- import './chunk-O744SXXA.js';
1
+ export { categoryOf, describeValue, diff, formatDiffReport, matchArrays, merge, similarity } from './chunk-UM24JFUE.js';
2
+ import './chunk-3XDRQYWZ.js';
3
+ import './chunk-PX5AWL7Y.js';
4
+ import './chunk-5PDN7BN6.js';
5
5
  import './chunk-TRDXRRQK.js';
6
6
  import './chunk-SPFV27O5.js';
7
- import './chunk-2CJPC4HI.js';
7
+ import './chunk-WEDGVC5W.js';