@openpresentation/opf 0.36.0 → 0.37.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 (86) hide show
  1. package/dist/browser.js +19 -19
  2. package/dist/{catalog-refs-BgotJhR5.d.ts → catalog-refs-BeRgtpZS.d.ts} +4 -4
  3. package/dist/{catalog-schemas-BX-VEc5Q.d.ts → catalog-schemas-CwY-3cCP.d.ts} +1 -1
  4. package/dist/{chunk-OFL3WY6F.js → chunk-3A3PNYNP.js} +77 -15
  5. package/dist/{chunk-TJMESSBQ.js → chunk-44IS6ZU2.js} +109 -9
  6. package/dist/{chunk-J7FUSZZ5.js → chunk-4FA4ZABY.js} +6 -6
  7. package/dist/{chunk-F5SY7MSA.js → chunk-56BYOGIF.js} +1 -1
  8. package/dist/{chunk-MS2LPR7F.js → chunk-6WN6PRCI.js} +1 -1
  9. package/dist/{chunk-7JE3XTL7.js → chunk-BHRCWV6B.js} +4 -4
  10. package/dist/{chunk-4FA4AZXY.js → chunk-C5ACMFKB.js} +1392 -808
  11. package/dist/{chunk-2NIID3QD.js → chunk-CYGQY6HH.js} +6 -6
  12. package/dist/{chunk-SER6GJTT.js → chunk-EOMENOKY.js} +23 -6
  13. package/dist/{chunk-O65COLKF.js → chunk-HS2JQ3AO.js} +118 -19
  14. package/dist/chunk-IW4TXMJY.js +646 -0
  15. package/dist/{chunk-6WVPFWPD.js → chunk-JTNCBTEH.js} +4 -4
  16. package/dist/{chunk-3KPTVK77.js → chunk-KANQVJGK.js} +1244 -119
  17. package/dist/{chunk-VDZXNNZF.js → chunk-M4IPCFDV.js} +1 -1
  18. package/dist/{chunk-XRMYP4JD.js → chunk-ORVMHVOS.js} +86 -2
  19. package/dist/{chunk-HHQROUYC.js → chunk-QFT4R2IL.js} +4405 -2808
  20. package/dist/chunk-QQBOI5XI.js +86 -0
  21. package/dist/{chunk-GNKOQ6NA.js → chunk-TIVBO56G.js} +4 -4
  22. package/dist/{chunk-APCNAAA7.js → chunk-VD7WLE3C.js} +2 -2
  23. package/dist/{chunk-AZELWKG2.js → chunk-XJU2X5JM.js} +5 -4
  24. package/dist/chunk-YESKKKVE.js +1 -0
  25. package/dist/{chunk-BPSZ7OWD.js → chunk-YZ4WMB5C.js} +26 -21
  26. package/dist/{composition-CSM7YfBl.d.ts → composition-DiKC371V.d.ts} +707 -134
  27. package/dist/composition.d.ts +3 -3
  28. package/dist/composition.js +1 -1
  29. package/dist/{conversion-CL7ipVGO.d.ts → conversion-DF_HgknQ.d.ts} +6 -6
  30. package/dist/conversion-XIWN7FMW.js +25 -0
  31. package/dist/convert.d.ts +5 -5
  32. package/dist/convert.js +63 -23
  33. package/dist/data.d.ts +41 -3
  34. package/dist/data.js +2 -2
  35. package/dist/{deck-report-DhsB0SUz.d.ts → deck-report-BwgsIRAf.d.ts} +3 -3
  36. package/dist/deck.d.ts +6 -6
  37. package/dist/deck.js +11 -11
  38. package/dist/diff.js +4 -4
  39. package/dist/docs.js +43 -31
  40. package/dist/examples.js +2338 -392
  41. package/dist/font-policy.js +1 -1
  42. package/dist/format.js +2 -2
  43. package/dist/ids.d.ts +17 -4
  44. package/dist/ids.js +4 -4
  45. package/dist/index.d.ts +140 -23
  46. package/dist/index.js +22 -22
  47. package/dist/markdown.d.ts +2 -2
  48. package/dist/markdown.js +8 -8
  49. package/dist/metric-data-B4Q8RFRR.d.ts +382 -0
  50. package/dist/node-engine.d.ts +6 -6
  51. package/dist/node-engine.js +21 -21
  52. package/dist/{pagination-BSqq32xt.d.ts → pagination-C9qnH_n-.d.ts} +5 -5
  53. package/dist/pagination.d.ts +4 -4
  54. package/dist/pagination.js +4 -4
  55. package/dist/patch.js +3 -3
  56. package/dist/precompiled.js +2 -2
  57. package/dist/{presentation-Dx-kZC8Y.d.ts → presentation-DmOhusrX.d.ts} +541 -110
  58. package/dist/schema-engine-ajv.js +1 -1
  59. package/dist/schema-engine-precompiled.js +2 -2
  60. package/dist/schema.d.ts +2 -2
  61. package/dist/schema.js +3 -3
  62. package/dist/schemas.d.ts +46 -2
  63. package/dist/schemas.js +1 -1
  64. package/dist/shape-engine-eager.js +2 -2
  65. package/dist/shape-engine-lazy.js +1 -1
  66. package/dist/{shape-engine-module-N74FCHGY.js → shape-engine-module-YU2XGIQN.js} +2 -2
  67. package/dist/shape-geometry.js +1 -1
  68. package/dist/source.js +10 -10
  69. package/dist/spec/reference/engine-defaults.json +1 -1
  70. package/dist/spec/reference/engine-vocabularies.json +1 -0
  71. package/dist/spec/schemas/font-scheme.schema.json +5 -6
  72. package/dist/spec/schemas/layout.schema.json +5 -4
  73. package/dist/spec/schemas/narrative.schema.json +1 -0
  74. package/dist/spec/schemas/opf.schema.json +661 -98
  75. package/dist/types.d.ts +11 -12
  76. package/dist/{validation-types-bnrso0JL.d.ts → validation-types-CV-ngACL.d.ts} +49 -6
  77. package/dist/validator.d.ts +5 -5
  78. package/dist/validator.js +3 -3
  79. package/dist/yaml.d.ts +2 -2
  80. package/dist/yaml.js +7 -7
  81. package/package.json +5 -5
  82. package/dist/chart-data-B_k-WTex.d.ts +0 -194
  83. package/dist/chunk-6VGLE7C5.js +0 -3983
  84. package/dist/chunk-SEC4IOOS.js +0 -1
  85. package/dist/chunk-WCPDN7AY.js +0 -642
  86. package/dist/conversion-FTGQLJK7.js +0 -25
package/dist/browser.js CHANGED
@@ -1,25 +1,25 @@
1
- import { OPFApiError } from './chunk-O65COLKF.js';
2
- export { DEFAULT_FIX_ROUNDS, FIX_REPAIR_CATEGORIES, OPFApiError, OPFExportError, OPFImportError, OPFMoveToCustomError, copySlides, edit, embed, fill, fillRecords, fix, isSafePatch, localAssetSources, moveToCustom, parseSlideSelection, sameRecord, stats, updateFromCatalog } from './chunk-O65COLKF.js';
1
+ import { OPFApiError } from './chunk-HS2JQ3AO.js';
2
+ export { DEFAULT_FIX_ROUNDS, FIX_REPAIR_CATEGORIES, OPFApiError, OPFExportError, OPFImportError, OPFMoveToCustomError, copySlides, edit, embed, embedArrowPoints, embedCardLayout, fill, fillRecords, fix, isSafePatch, localAssetSources, moveToCustom, parseSlideSelection, sameRecord, stats, updateFromCatalog } from './chunk-HS2JQ3AO.js';
3
3
  export { specFileEntries, specFileKinds, specFilePaths } from './chunk-W4DYDRV2.js';
4
- export { FONT_POLICY, applyFontPolicyDecisions, fontAvailabilityDiagnostics, fontPolicyFor } from './chunk-6VGLE7C5.js';
5
- export { OPFDataImportError, ingest, parseTabularData } from './chunk-XRMYP4JD.js';
6
- export { OPFPaginationError, blockUnits, continuationPages, continueOverfull, paginate, paginateSlide } from './chunk-BPSZ7OWD.js';
7
- export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-GNKOQ6NA.js';
8
- export { fromMarkdown, toMarkdown } from './chunk-2NIID3QD.js';
9
- import './chunk-J7FUSZZ5.js';
10
- export { OPFFormatError, format } from './chunk-MS2LPR7F.js';
4
+ export { FONT_POLICY, applyFontPolicyDecisions, fontAvailabilityDiagnostics, fontPolicyFor } from './chunk-QQBOI5XI.js';
5
+ export { OPFDataImportError, declareColumns, inferColumnDeclaration, ingest, parseTabularData, storeCell, updateMetricLiterals } from './chunk-ORVMHVOS.js';
6
+ export { OPFPaginationError, blockUnits, continuationPages, continueOverfull, paginate, paginateSlide } from './chunk-YZ4WMB5C.js';
7
+ export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-TIVBO56G.js';
8
+ export { fromMarkdown, toMarkdown } from './chunk-CYGQY6HH.js';
9
+ import './chunk-4FA4ZABY.js';
10
+ export { OPFFormatError, format } from './chunk-6WN6PRCI.js';
11
11
  import './chunk-RYZPBJLB.js';
12
- export { explain } from './chunk-TJMESSBQ.js';
13
- import './chunk-7JE3XTL7.js';
14
- import './chunk-F5SY7MSA.js';
15
- export { OPFMarkdownError } from './chunk-APCNAAA7.js';
16
- import './chunk-AZELWKG2.js';
17
- export { OPFIdError, assignIds, touches } from './chunk-OFL3WY6F.js';
18
- export { diff, merge } from './chunk-6WVPFWPD.js';
19
- export { CATALOG_SCHEMA, DEFAULT_VALIDATION_THRESHOLDS, OPFPatchError, OPFPatchHashError, OPFPatchValidationError, OPFValidationError, applyPatch, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogIconKinds, catalogSchemaNames, createValidator, documentHash, findValidationRule, idToken, isIdToken, resolveDrawnFontFamilies, resolveIdPatch, resolveIdPointer, resolveSlideContext, toIdPatch, toIdPointer, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-4FA4AZXY.js';
12
+ export { explain } from './chunk-44IS6ZU2.js';
13
+ import './chunk-BHRCWV6B.js';
14
+ import './chunk-56BYOGIF.js';
15
+ export { OPFMarkdownError } from './chunk-VD7WLE3C.js';
16
+ import './chunk-XJU2X5JM.js';
17
+ export { OPFIdError, assignIds, touches } from './chunk-3A3PNYNP.js';
18
+ export { diff, merge } from './chunk-JTNCBTEH.js';
19
+ export { CATALOG_SCHEMA, DEFAULT_VALIDATION_THRESHOLDS, OPFPatchError, OPFPatchHashError, OPFPatchValidationError, OPFValidationError, applyPatch, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogIconKinds, catalogSchemaNames, collectSlideLinks, createValidator, credentialInSrc, documentHash, findValidationRule, idToken, isIdToken, parseInstant, renameRecordKeys, resolveDrawnFontFamilies, resolveIdPatch, resolveIdPointer, resolveSlideContext, slideLink, slideLinkId, toIdPatch, toIdPointer, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-C5ACMFKB.js';
20
20
  import './chunk-JBARNYFR.js';
21
- export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-3KPTVK77.js';
22
- export { CATALOG_GROUP_PATTERN, CATALOG_REFERENCE_PATTERN, CHART_TYPES, DEFAULT_VARIABLE_DATE_FORMAT, ENGINE_DEFAULT_CHART_TYPES, ENGINE_DEFAULT_COLOR_SCHEME, ENGINE_DEFAULT_FONT_SCHEME, ENGINE_DEFAULT_THEME, LANGUAGES, LOGO_SHAPES, OPFCatalogsOptionError, OPFUnresolvedReferenceError, OPFVariableError, SLIDE_SCOPED_BUILTINS, SOCIAL_PLATFORMS, VARIABLE_KINDS, asciiDigits, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, chartDrawDiagnostics, chartDrawPlan, chartNumber, coerceVariableValue, datasetDiagnostics, diagramsPending, embedIcons, ensureDiagrams, ensureIcons, ensureShapes, formatDataNumber, formatNumber, formatPercentNumber, formatVariableNumber, fromExcelNumberFormat, hasContentVariables, iconsPending, inlineChartData, inlineDatasets, inlineTableData, isDatasetRef, isPlaceLabel, isSupportedNumberingSystem, isTemplate, isXYChartType, languageInEffect, listBuiltinVariables, listVariables, localizeDigits, markLabelColor, nearIconNames, normalizeLanguageFamily, numberFormatError, numberLocale, numberingSystemExtension, numberingSystemOf, numeralScripts, parseIconReference, parseReference, plainLanguageTag, resolveChartData, resolveDesignRecords, resolveFontScheme, resolveIcon, resolveReference, resolveSlideVariables, resolveTableData, resolveVariables, shapesPending, suggestChartNumberFix, supportedNumberingSystems, tableCellDisplayValue, toExcelNumberFormat, unresolvedReference, unusedDatasets, variableDeclarations } from './chunk-HHQROUYC.js';
21
+ export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-KANQVJGK.js';
22
+ export { CATALOG_GROUP_PATTERN, CATALOG_REFERENCE_PATTERN, CHART_TYPES, DEFAULT_VARIABLE_DATE_FORMAT, EMBED_DEFAULT_ASPECT, ENGINE_DEFAULT_CHART_TYPES, ENGINE_DEFAULT_COLOR_SCHEME, ENGINE_DEFAULT_FONT_SCHEME, ENGINE_DEFAULT_THEME, LANGUAGES, LOGO_SHAPES, OPFCatalogsOptionError, OPFUnresolvedReferenceError, OPFVariableError, SCHEME_COLOR_NAMES, SLIDE_SCOPED_BUILTINS, SOCIAL_PLATFORMS, VARIABLE_KINDS, asciiDigits, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, cellMatchesType, chartDrawDiagnostics, chartDrawPlan, chartNumber, coerceVariableValue, dataProvenance, dataSourcesOf, datasetColumnDeclaration, datasetDiagnostics, dateNamesOf, diagramsPending, embedAspect, embedIcons, embedSite, embedTitle, embedValue, ensureDiagrams, ensureIcons, ensureShapes, formatDataNumber, formatNumber, formatPercentNumber, formatVariableNumber, fromExcelNumberFormat, hasContentVariables, iconsPending, inlineChartData, inlineDatasets, inlineTableData, isDatasetRef, isPlaceLabel, isSupportedNumberingSystem, isTemplate, isXYChartType, languageInEffect, listBuiltinVariables, listVariables, localizeDigits, longDatePattern, markLabelColor, mixOklab, nearIconNames, normalizeScriptGroup, numberFormatError, numberLocale, numberingSystemExtension, numberingSystemOf, numeralScripts, oklabToSrgb, parseIconReference, parseReference, pickTranslation, pinTableColorScale, plainLanguageTag, resolveChartData, resolveDataSource, resolveDesignRecords, resolveFontScheme, resolveIcon, resolveMetric, resolveReference, resolveSlideVariables, resolveTableColorScale, resolveTableData, resolveVariables, rowCells, rowId, shapesPending, srgbToOklab, suggestCellTypeFix, suggestChartNumberFix, supportedNumberingSystems, tableCellDisplayValue, tableColorScaleDiagnostics, tableColorScaleOf, tableColorScaleText, tableRows, toExcelNumberFormat, translationAt, translationLanguageAt, unresolvedReference, unusedDatasets, variableDeclarations, visibleLength } from './chunk-QFT4R2IL.js';
23
23
  import './chunk-BLCDUM7B.js';
24
24
  import './chunk-PRXZD2II.js';
25
25
 
@@ -235,10 +235,10 @@ interface ResolvedColorRoles {
235
235
  interface ResolveColorRolesOptions {
236
236
  /** The slide's resolved single-color background (solid, theme-slot or pattern background color). Omit for a gradient, picture or no background. */
237
237
  background?: string | null;
238
- /** The slide's variant (RR-96), as authored (`"dark1"` or the object form). It sets the map; without it the background's luminance (or `tone`) chooses light1 or dark1. */
238
+ /** The slide's variant (RR-96), as authored (`"dark1"` or the object form). It sets the map; without it the background's luminance (or `appearance`) chooses light1 or dark1. */
239
239
  variant?: ColorVariantInput;
240
- /** `dark` or `light` for a picture or gradient background that names its tone: it chooses dark1 or light1 when there is no `variant`. */
241
- tone?: 'dark' | 'light';
240
+ /** `dark` or `light` for a picture or gradient background that names its appearance: it chooses dark1 or light1 when there is no `variant`. */
241
+ appearance?: 'dark' | 'light';
242
242
  }
243
243
  /**
244
244
  * Resolve a color scheme's abstract roles for one slide: the single definition the opf-render preview, the
@@ -246,7 +246,7 @@ interface ResolveColorRolesOptions {
246
246
  *
247
247
  * RR-96: the roles come from the variant's map over the scheme's slots, as PowerPoint's roles do: background is bg1, text tx1,
248
248
  * textSecondary tx2, surface bg2, and primary, secondary and accent the first three accents in the variant's order. Without
249
- * `options.variant` the map is chosen from the slide: `options.tone` for a picture or gradient that names one, else the luminance of
249
+ * `options.variant` the map is chosen from the slide: `options.appearance` for a picture or gradient that names one, else the luminance of
250
250
  * `options.background` ({@link isDarkColor}; dark1 when dark, light1 otherwise), which is the earlier behavior. Role overrides on the
251
251
  * scheme (`primary`, `secondary`, `accent`, `background`, `surface`, `text`, `textSecondary`) win over the slots they default to; a
252
252
  * `text` override applies only on a light background, so a dark slide always gets readable light text. `roles.neutrals` holds every
@@ -1,4 +1,4 @@
1
- import { a as CatalogKind } from './catalog-refs-BgotJhR5.js';
1
+ import { a as CatalogKind } from './catalog-refs-BeRgtpZS.js';
2
2
  import { SchemaName } from './schemas.js';
3
3
 
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { applyPatch, normalizePatch, walkPatch, toIdPointer, resolveIdPointer, parsePointer, readPointer, idToken, formatPointer, isIdToken } from './chunk-4FA4AZXY.js';
2
- import { isRecord, visitContentPayloads } from './chunk-HHQROUYC.js';
1
+ import { applyPatch, normalizePatch, walkPatch, toIdPointer, resolveIdPointer, parsePointer, readPointer, idToken, formatPointer, isIdToken } from './chunk-C5ACMFKB.js';
2
+ import { isRecord, visitContentPayloads, visitPayloadItems, entryId } from './chunk-QFT4R2IL.js';
3
3
 
4
4
  // src/ids.ts
5
5
  var INDEX_TOKEN = /^(0|[1-9][0-9]*)$/;
@@ -21,16 +21,23 @@ function assignIds(document, options = {}) {
21
21
  const known = (node) => {
22
22
  if (typeof node.id === "string") taken.add(node.id);
23
23
  };
24
+ const knownEntries = (node, path) => visitPayloadItems(node, path, (_kind, value) => {
25
+ if (isRecord(value) && typeof value.id === "string") taken.add(value.id);
26
+ });
24
27
  slides.forEach((slide, index) => {
25
28
  if (!isRecord(slide)) return;
26
29
  known(slide);
27
- visitContentPayloads(slide, `/slides/${index}`, known);
30
+ knownEntries(slide, `/slides/${index}`);
31
+ visitContentPayloads(slide, `/slides/${index}`, (payload, path) => {
32
+ known(payload);
33
+ knownEntries(payload, path);
34
+ });
28
35
  });
29
- const counters = { slide: 0, block: 0 };
36
+ const counters = { slide: 0, block: 0, item: 0, bullet: 0, event: 0, row: 0 };
30
37
  const byDefault = (kind) => {
31
38
  let id;
32
39
  do {
33
- counters[kind] += 1;
40
+ counters[kind] = (counters[kind] ?? 0) + 1;
34
41
  id = `${kind}-${counters[kind]}`;
35
42
  } while (taken.has(id));
36
43
  return id;
@@ -45,29 +52,57 @@ function assignIds(document, options = {}) {
45
52
  };
46
53
  const patch = [];
47
54
  const assigned = [];
48
- const visit = (kind, node, pointer) => {
49
- if (typeof node.id === "string") {
50
- idOf.set(pointer, node.id);
51
- return;
52
- }
53
- if (Object.hasOwn(node, "id")) return;
55
+ const mint = (kind, node, pointer) => {
54
56
  let id;
55
57
  if (options.generate) {
56
58
  const parentId = parentIdOf(pointer);
57
59
  id = options.generate({ kind, pointer, node, ...parentId !== void 0 ? { parentId } : {} });
58
60
  if (typeof id !== "string" || id === "") throw new OPFIdError("invalid-id", `generate returned ${JSON.stringify(id)} for ${pointer}; an id is a non-empty string.`, pointer);
59
- if (taken.has(id)) throw new OPFIdError("duplicate-id", `generate returned '${id}' for ${pointer}, which another slide or block already has.`, pointer);
61
+ if (taken.has(id)) throw new OPFIdError("duplicate-id", `generate returned '${id}' for ${pointer}, which another slide, block, item, event or row already has.`, pointer);
60
62
  } else id = byDefault(kind);
61
63
  taken.add(id);
62
64
  idOf.set(pointer, id);
63
- patch.push({ op: "add", path: `${pointer}/id`, value: id });
64
65
  assigned.push({ pointer, kind, id });
66
+ return id;
67
+ };
68
+ const visit = (kind, node, pointer) => {
69
+ if (typeof node.id === "string") {
70
+ idOf.set(pointer, node.id);
71
+ return;
72
+ }
73
+ if (Object.hasOwn(node, "id")) return;
74
+ patch.push({ op: "add", path: `${pointer}/id`, value: mint(kind, node, pointer) });
75
+ };
76
+ const visitEntries = (payload, path) => {
77
+ if (!options.items) return;
78
+ visitPayloadItems(payload, path, (kind, value, pointer) => {
79
+ if (isRecord(value)) {
80
+ const id = entryId(value);
81
+ if (id !== void 0) {
82
+ idOf.set(pointer, id);
83
+ return;
84
+ }
85
+ if (Object.hasOwn(value, "id")) return;
86
+ patch.push({ op: "add", path: `${pointer}/id`, value: mint(kind, value, pointer) });
87
+ return;
88
+ }
89
+ if (kind === "row") {
90
+ if (!Array.isArray(value)) return;
91
+ patch.push({ op: "replace", path: pointer, value: { id: mint(kind, { cells: value }, pointer), cells: value } });
92
+ } else if (typeof value === "string" || Array.isArray(value)) {
93
+ patch.push({ op: "replace", path: pointer, value: { id: mint(kind, { text: value }, pointer), text: value } });
94
+ }
95
+ });
65
96
  };
66
97
  slides.forEach((slide, index) => {
67
98
  if (!isRecord(slide)) return;
68
99
  const pointer = `/slides/${index}`;
69
100
  visit("slide", slide, pointer);
70
- visitContentPayloads(slide, pointer, (payload, path) => visit("block", payload, path));
101
+ visitEntries(slide, pointer);
102
+ visitContentPayloads(slide, pointer, (payload, path) => {
103
+ visit("block", payload, path);
104
+ visitEntries(payload, path);
105
+ });
71
106
  });
72
107
  return { document: applyPatch(document, patch), patch, assigned };
73
108
  }
@@ -100,7 +135,8 @@ function locate(tokens, document, readOnlyOrReplace) {
100
135
  if (tokens[2] === "design") return out("design", "other");
101
136
  let kind = "slide", shape = "other";
102
137
  let node = slide.node;
103
- for (let i = 2; i < tokens.length; ) {
138
+ let i = 2;
139
+ while (i < tokens.length) {
104
140
  const token = tokens[i];
105
141
  if (token === "blocks") {
106
142
  kind = "block";
@@ -116,6 +152,26 @@ function locate(tokens, document, readOnlyOrReplace) {
116
152
  shape = i === tokens.length ? "payload" : "other";
117
153
  } else break;
118
154
  }
155
+ if (shape === "other" && node) {
156
+ const name = tokens[i];
157
+ let list, at = i + 1;
158
+ if (name === "items" || name === "bullets") list = node[name];
159
+ else if (name === "table" && tokens[i + 1] === "rows" && isRecord(node.table)) {
160
+ list = node.table.rows;
161
+ at = i + 2;
162
+ } else if (name === "timeline") {
163
+ const timeline = node.timeline;
164
+ if (Array.isArray(timeline)) list = timeline;
165
+ else if (isRecord(timeline) && tokens[i + 1] === "events") {
166
+ list = timeline.events;
167
+ at = i + 2;
168
+ }
169
+ }
170
+ if (list !== void 0 && tokens[at] !== void 0) {
171
+ const entry = elementAt(list, tokens[at]);
172
+ if (entry.id !== void 0) ids.push(entry.id);
173
+ }
174
+ }
119
175
  return out(kind, shape);
120
176
  }
121
177
  function idsWithin(shape, value, into) {
@@ -125,8 +181,14 @@ function idsWithin(shape, value, into) {
125
181
  into.ids.push(node.id);
126
182
  if (slide) into.slideIds.push(node.id);
127
183
  }
184
+ const entries = (owner) => visitPayloadItems(owner, "", (_kind, entry) => {
185
+ const id = entryId(entry);
186
+ if (id !== void 0) into.ids.push(id);
187
+ });
188
+ entries(node);
128
189
  visitContentPayloads(node, "", (child) => {
129
190
  if (typeof child.id === "string") into.ids.push(child.id);
191
+ entries(child);
130
192
  });
131
193
  };
132
194
  if (shape === "document") {
@@ -1,4 +1,4 @@
1
- import { SOURCE_EXPLAIN, ruleDocumentation, findValidationRule } from './chunk-4FA4AZXY.js';
1
+ import { SOURCE_EXPLAIN, ruleDocumentation, findValidationRule } from './chunk-C5ACMFKB.js';
2
2
 
3
3
  // src/finding-text-explain-util.ts
4
4
  var ex = (fix, problem, fixed) => ({ fix, problem, fixed });
@@ -87,7 +87,7 @@ var AUDIT_EXPLAIN = {
87
87
  ),
88
88
  "opf/text-overflow": ex(
89
89
  "Shorten the text, give it more space (fewer blocks, a different composition) or split the slide. Raising the readable minimum makes it worse.",
90
- { title: "Notes", composition: { minFontSize: 16 }, blocks: [{ text: "word ".repeat(900).trim() }] },
90
+ { title: "Notes", composition: { minFontSizePx: 16 }, blocks: [{ text: "word ".repeat(900).trim() }] },
91
91
  { title: "Notes", blocks: [{ text: "The three points that matter." }, { text: "More" }] }
92
92
  ),
93
93
  "opf/unresolved-content": ex(
@@ -170,6 +170,11 @@ var AUDIT_EXPLAIN = {
170
170
  { slides: [{ title: "Findings", blocks: [{ items: LONG_ITEMS }, { items: LONG_ITEMS }, { items: LONG_ITEMS }] }] },
171
171
  { slides: [{ title: "Findings", items: LONG_ITEMS.slice(0, 3) }, { title: "Findings (continued)", items: LONG_ITEMS.slice(3) }] }
172
172
  ),
173
+ "opf/variable-overflow": ex(
174
+ "Shorten the value, or raise the limit (`maxLength`, `maxLines`, `maxItems`) in the variable's declaration if the slide has the room. The limit is the room the template was designed for; the deck still draws.",
175
+ { variables: { headline: { type: "text", value: "A headline that runs well past the room the template has for it", maxLength: 24 } }, slides: [{ title: "{{headline}}" }] },
176
+ { variables: { headline: { type: "text", value: "A short headline", maxLength: 24 } }, slides: [{ title: "{{headline}}" }] }
177
+ ),
173
178
  "opf/centered-body": ex(
174
179
  'Align paragraphs and lists to the start edge (`contentAlignment: "start"`), and keep centering for titles, numbers and one- or two-line statements.',
175
180
  { title: "Why now", items: LONG_ITEMS.slice(0, 3), design: { contentAlignment: "center" } },
@@ -197,6 +202,46 @@ var CONTENT_EXPLAIN = {
197
202
  { title: "Revenue", chart: { type: "column", alt: "Revenue", data: { columns: ["Quarter", "Revenue"], rows: [["Q1", "about 12"]] } } },
198
203
  { title: "Revenue", chart: { type: "column", alt: "Revenue", data: { columns: ["Quarter", { name: "Revenue", format: "$#,##0" }], rows: [["Q1", 12]] } } }
199
204
  ),
205
+ "opf/data-cell-type": ex(
206
+ 'Write the cell as its column declares, or change the column\'s `type` to what it holds. `opf fix --audits` stores a number written as a strict decimal string ("12") as a number, and a number in a text column as text. Nothing is drawn differently.',
207
+ { datasets: { sales: { columns: ["Quarter", { name: "Revenue", type: "number" }], rows: [["Q1", 12], ["Q2", "about 15"]] } }, slides: [{ title: "Revenue", table: { dataset: "sales" } }] },
208
+ { datasets: { sales: { columns: ["Quarter", { name: "Revenue", type: "number" }], rows: [["Q1", 12], ["Q2", 15]] } }, slides: [{ title: "Revenue", table: { dataset: "sales" } }] }
209
+ ),
210
+ "opf/datasource-credentials": ex(
211
+ "Remove the user, password, key or token from the data source and keep the secret in your own store. Name the connection in `connector` or `extensions`; the document never holds a credential.",
212
+ { datasources: { warehouse: { src: "https://analyst:secret@data.example.com/export.csv" } }, slides: [{ title: "Revenue", text: "Revenue grew." }] },
213
+ { datasources: { warehouse: { src: "https://data.example.com/export.csv" } }, slides: [{ title: "Revenue", text: "Revenue grew." }] }
214
+ ),
215
+ "opf/dataset-stale": ex(
216
+ "Take the data from its data source again and update `retrieved`, or change the data source's `refreshEvery` to how often the data really needs taking. Only a validation given a date (`asOf`) reports it.",
217
+ { datasources: { warehouse: { refreshEvery: "P1D" } }, datasets: { sales: { datasource: "warehouse", retrieved: "2026-01-01", columns: ["Quarter", "Revenue"], rows: [["Q1", 12]] } }, slides: [{ title: "Revenue", table: { dataset: "sales" } }] },
218
+ { datasources: { warehouse: { refreshEvery: "P1D" } }, datasets: { sales: { datasource: "warehouse", retrieved: "2026-11-30", columns: ["Quarter", "Revenue"], rows: [["Q1", 12]] } }, slides: [{ title: "Revenue", table: { dataset: "sales" } }] }
219
+ ),
220
+ "opf/metric-data-stale": ex(
221
+ "Write the computed number as the metric's value (apply the fix), or change the data link. A reader that does not compute draws the written number.",
222
+ { datasets: { arr: { columns: ["Month", "ARR"], rows: [["2026-10", 4.2], ["2026-11", 4.4]] } }, slides: [{ title: "ARR", metric: { value: "$4.2M", data: { dataset: "arr", field: "ARR", aggregate: "last" } } }] },
223
+ { datasets: { arr: { columns: ["Month", "ARR"], rows: [["2026-10", 4.2], ["2026-11", 4.4]] } }, slides: [{ title: "ARR", metric: { value: 4.4, data: { dataset: "arr", field: "ARR", aggregate: "last" } } }] }
224
+ ),
225
+ "opf/metric-data-aggregate": ex(
226
+ "Use an aggregate that fits the column (first, last and count work on any column), or link a column typed number. The written value is drawn meanwhile.",
227
+ { datasets: { arr: { columns: [{ name: "Region", type: "text" }, "ARR"], rows: [["EMEA", 4.4]] } }, slides: [{ title: "Regions", metric: { value: 1, data: { dataset: "arr", field: "Region", aggregate: "sum" } } }] },
228
+ { datasets: { arr: { columns: [{ name: "Region", type: "text" }, "ARR"], rows: [["EMEA", 4.4]] } }, slides: [{ title: "Regions", metric: { value: 1, data: { dataset: "arr", field: "Region", aggregate: "count" } } }] }
229
+ ),
230
+ "opf/metric-data-empty": ex(
231
+ "Check the filter and the field: a row has to meet the filter and give a usable cell. The written value is drawn meanwhile.",
232
+ { datasets: { arr: { columns: ["Region", "ARR"], rows: [["EMEA", 4.4]] } }, slides: [{ title: "APAC", metric: { value: 3.1, data: { dataset: "arr", field: "ARR", aggregate: "last", filter: [{ field: "Region", op: "=", value: "APAC" }] } } }] },
233
+ { datasets: { arr: { columns: ["Region", "ARR"], rows: [["EMEA", 4.4]] } }, slides: [{ title: "EMEA", metric: { value: 4.4, data: { dataset: "arr", field: "ARR", aggregate: "last", filter: [{ field: "Region", op: "=", value: "EMEA" }] } } }] }
234
+ ),
235
+ "opf/metric-data-delta": ex(
236
+ "Give the change something to compare with: two rows for previous, a baseline filter that meets a row, a comparison value other than 0 for a percent. No change is drawn until then.",
237
+ { datasets: { arr: { columns: ["Month", "ARR"], rows: [["2026-11", 4.4]] } }, slides: [{ title: "ARR", metric: { value: 4.4, data: { dataset: "arr", field: "ARR", aggregate: "last", delta: { compare: "previous" } } } }] },
238
+ { datasets: { arr: { columns: ["Month", "ARR"], rows: [["2026-10", 4.2], ["2026-11", 4.4]] } }, slides: [{ title: "ARR", metric: { value: 4.4, delta: 0.2, data: { dataset: "arr", field: "ARR", aggregate: "last", delta: { compare: "previous" } } } }] }
239
+ ),
240
+ "opf/metric-unit-repeated": ex(
241
+ "Drop the unit, or take its text out of the number format. The unit is printed after the value.",
242
+ { title: "ARR", metric: { value: 4.4, unit: "M", format: "#,##0.0M" } },
243
+ { title: "ARR", metric: { value: 4.4, format: "#,##0.0M" } }
244
+ ),
200
245
  "opf/chart-mapping-adapted": ex(
201
246
  "Remove the mapping entry, or name a column the chart type can use. The entry is ignored.",
202
247
  { title: "Revenue", chart: { type: "column", alt: "Revenue", data: { columns: COLUMNS, rows: ROWS }, mapping: { x: "Costs" } } },
@@ -207,11 +252,46 @@ var CONTENT_EXPLAIN = {
207
252
  { title: "Revenue", chart: { type: "treemap", alt: "Revenue", data: { columns: COLUMNS, rows: ROWS } } },
208
253
  { title: "Revenue", chart: { type: "column", alt: "Revenue", data: { columns: COLUMNS, rows: ROWS } } }
209
254
  ),
255
+ "opf/embed-credentials": ex(
256
+ "Take the user name, password or secret query parameter out of `src`. Anyone who has the deck can read the address, and every export links to it; the host that shows the page holds the credential.",
257
+ { title: "Dashboard", embed: "https://app.example.com/dashboards/revenue?api_key=abc123" },
258
+ { title: "Dashboard", embed: "https://app.example.com/dashboards/revenue" }
259
+ ),
210
260
  "opf/chart-highlight-adapted": ex(
211
261
  "Name a series the chart plots in `highlight`, or remove the entry. A column that is the category or X column, or that the mapping leaves out, highlights nothing.",
212
262
  { title: "Revenue", chart: { type: "column", alt: "Revenue", data: { columns: COLUMNS, rows: ROWS }, highlight: { series: ["Quarter"] } } },
213
263
  { title: "Revenue", chart: { type: "column", alt: "Revenue", data: { columns: COLUMNS, rows: ROWS }, highlight: { series: ["Revenue"] } } }
214
264
  ),
265
+ "opf/chart-bands-order": ex(
266
+ "Write the bands in increasing order of `to`: each band runs from the previous band's `to` to its own.",
267
+ { title: "Wait", chart: { type: "column", alt: "Wait", data: { columns: COLUMNS, rows: ROWS }, bands: [{ to: 20 }, { to: 10 }] } },
268
+ { title: "Wait", chart: { type: "column", alt: "Wait", data: { columns: COLUMNS, rows: ROWS }, bands: [{ to: 10 }, { to: 20 }] } }
269
+ ),
270
+ "opf/chart-bands-unsupported": ex(
271
+ "Use a bar, column, line, area or bullet chart for bands, or remove them.",
272
+ { title: "Revenue", chart: { type: "pie", alt: "Revenue", data: { columns: COLUMNS, rows: ROWS }, bands: [{ to: 10 }] } },
273
+ { title: "Revenue", chart: { type: "column", alt: "Revenue", data: { columns: COLUMNS, rows: ROWS }, bands: [{ to: 10 }] } }
274
+ ),
275
+ "opf/metric-gauge-range": ex(
276
+ "Write the gauge's `max` above its `min`, and keep the value, the target and each band's `to` between them.",
277
+ { title: "Utilization", metric: { label: "Utilization", value: 1.2, gauge: { max: 1 } } },
278
+ { title: "Utilization", metric: { label: "Utilization", value: 0.72, gauge: { max: 1 } } }
279
+ ),
280
+ "opf/metric-gauge-value": ex(
281
+ "Give a metric with a gauge a number value: the gauge draws that number on its arc.",
282
+ { title: "Utilization", metric: { label: "Utilization", value: "72%", gauge: { max: 1 } } },
283
+ { title: "Utilization", metric: { label: "Utilization", value: 0.72, format: "0%", gauge: { max: 1 } } }
284
+ ),
285
+ "opf/table-color-scale-no-data": ex(
286
+ "Name columns that hold numbers in `colorScale.columns`, or remove the color scale. A cell is shaded only when its value is a number.",
287
+ { title: "Win rate", table: { columns: ["Region", "Q1"], rows: [["EMEA", "n/a"]], colorScale: { columns: ["Q1"] } } },
288
+ { title: "Win rate", table: { columns: ["Region", "Q1"], rows: [["EMEA", 0.22]], colorScale: { columns: ["Q1"] } } }
289
+ ),
290
+ "opf/table-color-scale-range": ex(
291
+ "Pin `min` below `max` and keep `center` between them, or leave the range to the data.",
292
+ { title: "Win rate", table: { columns: ["Region", "Q1"], rows: [["EMEA", 0.22], ["APAC", 0.3]], colorScale: { columns: ["Q1"], min: 0.5, max: 0.4 } } },
293
+ { title: "Win rate", table: { columns: ["Region", "Q1"], rows: [["EMEA", 0.22], ["APAC", 0.3]], colorScale: { columns: ["Q1"], min: 0, max: 0.4 } } }
294
+ ),
215
295
  "opf/code-highlight-out-of-range": ex(
216
296
  "Change the entry to a line the code has (counted from 1), or remove it.",
217
297
  { title: "Code", code: { source: "a\nb\nc", highlight: [7] } },
@@ -269,18 +349,13 @@ var CONTENT_EXPLAIN = {
269
349
  ),
270
350
  "opf/chart-dual-axis": ex(
271
351
  "Show the secondary series in a chart of its own beside this one, each with its own axis; two scales in one plot make crossings and heights meaningless. Drop `secondaryAxis` when the series share a unit.",
272
- { title: "Revenue and margin", chart: { type: "combo", alt: "Revenue and margin", data: { columns: ["Quarter", "Revenue", "Margin"], rows: [["Q1", 12, 0.31], ["Q2", 15, 0.34]] }, line: ["Margin"], secondaryAxis: ["Margin"] } },
352
+ { title: "Revenue and margin", chart: { type: "combo", alt: "Revenue and margin", data: { columns: ["Quarter", "Revenue", "Margin"], rows: [["Q1", 12, 0.31], ["Q2", 15, 0.34]] }, lineSeries: ["Margin"], secondaryAxis: ["Margin"] } },
273
353
  { title: "Revenue and margin", blocks: [{ chart: { type: "column", alt: "Revenue", data: { columns: ["Quarter", "Revenue"], rows: [["Q1", 12], ["Q2", 15]] } } }, { chart: { type: "line", alt: "Margin", data: { columns: ["Quarter", { name: "Margin", format: "0%" }], rows: [["Q1", 0.31], ["Q2", 0.34]] } } }] }
274
354
  ),
275
355
  "opf/chart-pie-many-slices": ex(
276
356
  'Show the parts as bars along one axis, which can be compared and ranked, or group the smallest categories into one "Other" slice.',
277
357
  { title: "Traffic sources", chart: { type: "pie", alt: "Traffic sources", data: { columns: ["Source", "Visits"], rows: [["Search", 48], ["Direct", 22], ["Social", 12], ["Email", 8], ["Referral", 5], ["Ads", 3], ["Other", 2]] } } },
278
358
  { title: "Traffic sources", chart: { type: "bar", alt: "Traffic sources", data: { columns: ["Source", "Visits"], rows: [["Search", 48], ["Direct", 22], ["Social", 12], ["Email", 8], ["Referral", 5], ["Ads", 3], ["Other", 2]] } } }
279
- ),
280
- "opf/straight-quotes": ex(
281
- `Type the quotation marks of the deck's language (\u201C\u2026\u201D and \u2018\u2026\u2019 in English, \xAB\u2026\xBB in French, \u201E\u2026\u201C in German) instead of the straight " and '. Apostrophes inside words and inch and foot marks after numbers are fine.`,
282
- { title: "What customers said", text: `They called it "the easiest setup we've done".` },
283
- { title: "What customers said", text: "They called it \u201Cthe easiest setup we've done\u201D." }
284
359
  )
285
360
  };
286
361
 
@@ -312,13 +387,18 @@ var FORMAT_EXPLAIN = {
312
387
  { references: [{ id: "gartner", text: "Gartner, 2026" }], slides: [{ title: "Market", text: [{ text: "Up 12%", cite: "gartnr" }] }] },
313
388
  { references: [{ id: "gartner", text: "Gartner, 2026" }], slides: [{ title: "Market", text: [{ text: "Up 12%", cite: "gartner" }] }] }
314
389
  ),
390
+ "opf/slide-link-unknown": ex(
391
+ "Change the link to `slide:<id>` with the id of a slide of this document, or give the slide it means that id (`assignIds` gives every slide one).",
392
+ { slides: [{ id: "pricing", title: "Pricing" }, { title: "Agenda", text: [{ text: "Pricing", link: "slide:prices" }] }] },
393
+ { slides: [{ id: "pricing", title: "Pricing" }, { title: "Agenda", text: [{ text: "Pricing", link: "slide:pricing" }] }] }
394
+ ),
315
395
  "opf/cite-unsupported-location": ex(
316
396
  "Move the cited run into a text block, bullets or a list item (titles and quotes work too). Table cells, captions and reference text do not draw citation markers.",
317
397
  { references: [{ id: "gartner", text: "Gartner, 2026" }], slides: [{ title: "Market", table: { columns: ["Region", "Growth"], rows: [["EMEA", [{ text: "12%", cite: "gartner" }]]] } }] },
318
398
  { references: [{ id: "gartner", text: "Gartner, 2026" }], slides: [{ title: "Market", text: [{ text: "EMEA grew 12%", cite: "gartner" }], table: { columns: ["Region", "Growth"], rows: [["EMEA", "12%"]] } }] }
319
399
  ),
320
400
  "opf/caption-unsupported-payload": ex(
321
- "Put the `caption` on the image, chart, table, video or diagram it describes, or remove it.",
401
+ "Put the `caption` on the image, chart, table, video, embed or diagram it describes, or remove it.",
322
402
  { title: "Revenue", blocks: [{ text: "Revenue grew", caption: "Source: finance" }] },
323
403
  { title: "Revenue", blocks: [{ chart: CHART, caption: "Source: finance" }] }
324
404
  ),
@@ -382,6 +462,11 @@ var FORMAT_EXPLAIN = {
382
462
  { datasets: { sales: { columns: ["Quarter", "Revenue"], rows: [["Q1", 12]] } }, slides: [{ title: "Revenue", chart: { type: "column", data: { dataset: "sale" } } }] },
383
463
  { datasets: { sales: { columns: ["Quarter", "Revenue"], rows: [["Q1", 12]] } }, slides: [{ title: "Revenue", chart: { type: "column", data: { dataset: "sales" } } }] }
384
464
  ),
465
+ "opf/datasource-unknown": ex(
466
+ 'Name a data source that exists under `datasources`, add the one the dataset asks for, or write the data source inline as an object such as `{ "src": "./data.csv" }`. A string `datasource` is only ever an id.',
467
+ { datasources: { warehouse: { connector: "postgres" } }, datasets: { sales: { datasource: "wharehouse", columns: ["Quarter", "Revenue"], rows: [["Q1", 12]] } }, slides: [{ title: "Revenue", table: { dataset: "sales" } }] },
468
+ { datasources: { warehouse: { connector: "postgres" } }, datasets: { sales: { datasource: "warehouse", columns: ["Quarter", "Revenue"], rows: [["Q1", 12]] } }, slides: [{ title: "Revenue", table: { dataset: "sales" } }] }
469
+ ),
385
470
  "opf/dataset-field-unknown": ex(
386
471
  "Name only columns the dataset has. The message lists them.",
387
472
  { datasets: { sales: { columns: ["Region", "Revenue"], rows: [["EMEA", 12]] } }, slides: [{ title: "Revenue", table: { dataset: "sales", fields: ["Regon"] } }] },
@@ -432,6 +517,11 @@ var FORMAT_EXPLAIN = {
432
517
  { title: "Pricing", table: { columns: ["Region", "Change"], rows: [["Northeast", "Hold"], ["Southeast", "+3%"]], highlight: { rows: ["South"] } } },
433
518
  { title: "Pricing", table: { columns: ["Region", "Change"], rows: [["Northeast", "Hold"], ["Southeast", "+3%"]], highlight: { rows: ["Southeast"] } } }
434
519
  ),
520
+ "opf/table-color-scale-unknown-column": ex(
521
+ "Name a column of the table in `colorScale.columns` by its header text; a name that matches no column shades nothing.",
522
+ { title: "Win rate", table: { columns: ["Region", "Q1"], rows: [["EMEA", 0.22]], colorScale: { columns: ["Q4"] } } },
523
+ { title: "Win rate", table: { columns: ["Region", "Q1"], rows: [["EMEA", 0.22]], colorScale: { columns: ["Q1"] } } }
524
+ ),
435
525
  "opf/variable-format": ex(
436
526
  "Give the variable a `format` that fits its type and its values: `#,##0.0` for a number, a date pattern for a date.",
437
527
  { variables: { amount: { type: "number", value: 1e308, format: "0%" } }, slides: [{ title: "Value {{amount}}" }] },
@@ -550,6 +640,16 @@ var REFERENCES_EXPLAIN = {
550
640
  { variables: { client: { type: "text", value: "Acme" } }, slides: [{ title: "Proposal" }] },
551
641
  { variables: { client: { type: "text", value: "Acme" } }, slides: [{ title: "Proposal for {{client}}" }] }
552
642
  ),
643
+ "opf/variable-translation-duplicate": ex(
644
+ "Keep one key per language: tags compare without regard to case, so 'de-AT' and 'de-at' are the same language and only the first is drawn.",
645
+ { language: "de", variables: { cta: { type: "text", value: "Book", translations: { "de-AT": { value: "Buchen" }, "de-at": { value: "Bestellen" } } } }, slides: [{ title: "{{cta}}" }] },
646
+ { language: "de", variables: { cta: { type: "text", value: "Book", translations: { "de-AT": { value: "Buchen" } } } }, slides: [{ title: "{{cta}}" }] }
647
+ ),
648
+ "opf/variable-translation-unused": ex(
649
+ "Declare the language that selects the translation ('language' on the deck or a slide), or remove it. A language read from the text does not select a translation.",
650
+ { variables: { cta: { type: "text", value: "Book", translations: { de: { value: "Buchen" } } } }, slides: [{ title: "{{cta}}" }] },
651
+ { language: "de", variables: { cta: { type: "text", value: "Book", translations: { de: { value: "Buchen" } } } }, slides: [{ title: "{{cta}}" }] }
652
+ ),
553
653
  "opf/variable-reference-unknown": ex(
554
654
  "Declare the color variable under `variables`, or use another color. Until then a default color is drawn.",
555
655
  { slides: [{ title: "Results", text: [{ text: "Up", color: "var:brand" }] }] },
@@ -1,10 +1,10 @@
1
- import { sortPresentationKeys } from './chunk-MS2LPR7F.js';
1
+ import { sortPresentationKeys } from './chunk-6WN6PRCI.js';
2
2
  import { NOT_CHECKED } from './chunk-RYZPBJLB.js';
3
- import { Ctx, describeYamlErrors } from './chunk-APCNAAA7.js';
4
- import { same } from './chunk-AZELWKG2.js';
5
- import { validate } from './chunk-4FA4AZXY.js';
6
- import { presentation } from './chunk-3KPTVK77.js';
7
- import { checkCatalogsOption } from './chunk-HHQROUYC.js';
3
+ import { Ctx, describeYamlErrors } from './chunk-VD7WLE3C.js';
4
+ import { same } from './chunk-XJU2X5JM.js';
5
+ import { validate } from './chunk-C5ACMFKB.js';
6
+ import { presentation } from './chunk-KANQVJGK.js';
7
+ import { checkCatalogsOption } from './chunk-QFT4R2IL.js';
8
8
  import { Parser, parseDocument, isMap, isSeq, Document, visit, isScalar, isAlias } from 'yaml';
9
9
 
10
10
  var MAX_ALIAS_COUNT = 100;
@@ -1,4 +1,4 @@
1
- import { runText } from './chunk-AZELWKG2.js';
1
+ import { runText } from './chunk-XJU2X5JM.js';
2
2
 
3
3
  // src/convert/text-lines.ts
4
4
  var LIST_PREFIX = /^([ \t]*)(?:([-*•+]|\d{1,3}[.)])[ \t]+)?/;
@@ -1,4 +1,4 @@
1
- import { presentation } from './chunk-3KPTVK77.js';
1
+ import { presentation } from './chunk-KANQVJGK.js';
2
2
 
3
3
  // src/format.ts
4
4
  var OPFFormatError = class extends Error {
@@ -1,7 +1,7 @@
1
- import { parseQuoteLines, levelsFromIndents, parseCodeFence, splitWhen } from './chunk-F5SY7MSA.js';
2
- import { Ctx, splitLines, lineRange, readYamlMapping, readCsv, DECIMAL } from './chunk-APCNAAA7.js';
3
- import { runText, isRecord, FORMATTING } from './chunk-AZELWKG2.js';
4
- import { METRIC_KEYS, nearest, BLOCK_AS_VALUES, SLIDE_OPTION_KEYS, BLOCK_OPTION_KEYS } from './chunk-4FA4AZXY.js';
1
+ import { parseQuoteLines, levelsFromIndents, parseCodeFence, splitWhen } from './chunk-56BYOGIF.js';
2
+ import { Ctx, splitLines, lineRange, readYamlMapping, readCsv, DECIMAL } from './chunk-VD7WLE3C.js';
3
+ import { runText, isRecord, FORMATTING } from './chunk-XJU2X5JM.js';
4
+ import { METRIC_KEYS, nearest, BLOCK_AS_VALUES, SLIDE_OPTION_KEYS, BLOCK_OPTION_KEYS } from './chunk-C5ACMFKB.js';
5
5
 
6
6
  // src/markdown/inline.ts
7
7
  var PUNCT = /[\p{P}\p{S}]/u;