@openpresentation/opf 0.32.1 → 0.34.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 (105) hide show
  1. package/README.md +9 -0
  2. package/dist/browser.js +22 -21
  3. package/dist/catalog-refs-CoIrOdAw.d.ts +937 -0
  4. package/dist/{catalog-schemas-LdqOPebq.d.ts → catalog-schemas-FjLRPtjB.d.ts} +10 -4
  5. package/dist/{chart-data-oIZQlFGi.d.ts → chart-data-B_k-WTex.d.ts} +7 -4
  6. package/dist/{chunk-PB7ME64J.js → chunk-244OPLAV.js} +1 -1
  7. package/dist/{chunk-IT7FQKED.js → chunk-2HX4BGAS.js} +6 -6
  8. package/dist/{chunk-2E6CDYL2.js → chunk-36DLVJGW.js} +19 -16
  9. package/dist/{chunk-XQO2CT6Q.js → chunk-3THGTDL2.js} +2 -2
  10. package/dist/{chunk-CLRYHWQN.js → chunk-42JBXJKW.js} +187 -25
  11. package/dist/chunk-BLCDUM7B.js +7 -0
  12. package/dist/{chunk-NVAJASOD.js → chunk-CJVKOJ6B.js} +10195 -2036
  13. package/dist/{chunk-XFHXQCXL.js → chunk-DQ7QYOUV.js} +99 -13
  14. package/dist/{chunk-NEJ32O7X.js → chunk-F6BXO4AI.js} +1 -1
  15. package/dist/{chunk-OXLA4HXQ.js → chunk-FAXO3SUE.js} +1196 -313
  16. package/dist/{chunk-J63CIRIV.js → chunk-FIQMAIZV.js} +4 -4
  17. package/dist/{chunk-PJSPHHRK.js → chunk-FK5XG742.js} +3 -16
  18. package/dist/{chunk-HKUV7NEN.js → chunk-HHVQ2SDT.js} +1 -1
  19. package/dist/{chunk-SZFO3MAJ.js → chunk-HUGVYHZ2.js} +4 -4
  20. package/dist/{chunk-LEF4X4KI.js → chunk-LCT5ZV3Q.js} +2400 -222
  21. package/dist/chunk-NLJFNCZ4.js +1560 -0
  22. package/dist/{chunk-GM7WFPGG.js → chunk-PRXZD2II.js} +6 -1
  23. package/dist/{chunk-YFJIIIOL.js → chunk-QGJVOPLG.js} +3 -3
  24. package/dist/{chunk-F7DN33UL.js → chunk-QGTJF7HV.js} +16 -14
  25. package/dist/{chunk-ONVFUVQ5.js → chunk-RUV7CCE6.js} +136 -31
  26. package/dist/{chunk-SW676APJ.js → chunk-U7TYSPYM.js} +2 -2
  27. package/dist/chunk-UJZN2ZH6.js +1 -0
  28. package/dist/chunk-VDZXNNZF.js +221 -0
  29. package/dist/{chunk-UJSAR6GF.js → chunk-W4DYDRV2.js} +21 -0
  30. package/dist/chunk-WCPDN7AY.js +642 -0
  31. package/dist/{chunk-BBVW5ZC2.js → chunk-WMFT5R7I.js} +2 -2
  32. package/dist/{chunk-AQEAZDL2.js → chunk-XJUMFH33.js} +2 -1
  33. package/dist/{composition-Ds6WHyO7.d.ts → composition-CvtvgBDE.d.ts} +2783 -873
  34. package/dist/composition.d.ts +4 -3
  35. package/dist/composition.js +3 -2
  36. package/dist/{conversion-CdzrTxib.d.ts → conversion-B_5AKTYQ.d.ts} +39 -10
  37. package/dist/conversion-CMBGOTAC.js +25 -0
  38. package/dist/convert.d.ts +5 -4
  39. package/dist/convert.js +17 -13
  40. package/dist/data.d.ts +2 -2
  41. package/dist/data.js +4 -3
  42. package/dist/{deck-report-CKDNQ2t4.d.ts → deck-report-BVlQZ42f.d.ts} +3 -3
  43. package/dist/deck.d.ts +7 -6
  44. package/dist/deck.js +13 -12
  45. package/dist/diagram-engine-eager.js +6 -2
  46. package/dist/diagram-engine-lazy.js +14 -1
  47. package/dist/diagram-plantuml-XRZ6VAOL.js +3 -0
  48. package/dist/diff.js +6 -5
  49. package/dist/docs.js +88 -52
  50. package/dist/examples.js +28745 -18393
  51. package/dist/font-policy.js +2 -2
  52. package/dist/format.js +3 -3
  53. package/dist/ids.js +6 -5
  54. package/dist/index.d.ts +19 -16
  55. package/dist/index.js +37 -26
  56. package/dist/markdown.d.ts +3 -2
  57. package/dist/markdown.js +10 -9
  58. package/dist/node-engine.d.ts +44 -11
  59. package/dist/node-engine.js +47 -28
  60. package/dist/{pagination-DRZ_JNFY.d.ts → pagination-CZQQYk7L.d.ts} +22 -4
  61. package/dist/pagination.d.ts +5 -4
  62. package/dist/pagination.js +6 -5
  63. package/dist/patch.js +5 -4
  64. package/dist/precompiled.js +3 -3
  65. package/dist/{presentation-DnD7mfmf.d.ts → presentation-s9262acV.d.ts} +1172 -208
  66. package/dist/repo-readme.js +2 -2
  67. package/dist/schema-engine-ajv.js +2 -2
  68. package/dist/schema-engine-precompiled.js +3 -3
  69. package/dist/schema.d.ts +3 -3
  70. package/dist/schema.js +5 -4
  71. package/dist/schemas.d.ts +56 -4
  72. package/dist/schemas.js +2 -2
  73. package/dist/shape-catalog.d.ts +98 -0
  74. package/dist/shape-catalog.js +302 -0
  75. package/dist/shape-engine-eager.js +9 -0
  76. package/dist/shape-engine-lazy.js +12 -0
  77. package/dist/shape-engine-module-N74FCHGY.js +3 -0
  78. package/dist/shape-geometry.d.ts +126 -0
  79. package/dist/shape-geometry.js +2 -0
  80. package/dist/source.d.ts +10 -5
  81. package/dist/source.js +12 -11
  82. package/dist/spec/README.md +1 -1
  83. package/dist/spec/reference/engine-vocabularies.json +135 -0
  84. package/dist/spec/reference/font-policy.json +3 -16
  85. package/dist/spec/reference/preset-geometry.json +10699 -0
  86. package/dist/spec/reference/preset-geometry.schema.json +126 -0
  87. package/dist/spec/schemas/catalog-index.schema.json +1 -0
  88. package/dist/spec/schemas/chart-type.schema.json +4 -4
  89. package/dist/spec/schemas/icon-set.schema.json +75 -0
  90. package/dist/spec/schemas/layout.schema.json +82 -23
  91. package/dist/spec/schemas/opf.schema.json +1616 -296
  92. package/dist/spec/schemas/theme.schema.json +11 -5
  93. package/dist/spec-files.d.ts +1 -1
  94. package/dist/spec-files.js +2 -2
  95. package/dist/symbol-font-encodings.js +1 -1
  96. package/dist/types.d.ts +83 -71
  97. package/dist/{validation-types-DxyYPebs.d.ts → validation-types-CYbsUuZ9.d.ts} +8 -5
  98. package/dist/validator.d.ts +35 -7
  99. package/dist/validator.js +5 -4
  100. package/dist/yaml.d.ts +3 -2
  101. package/dist/yaml.js +9 -8
  102. package/package.json +22 -6
  103. package/dist/catalog-refs-kAefsZWT.d.ts +0 -129
  104. package/dist/chunk-DGS47ONG.js +0 -1
  105. package/dist/conversion-5FUDQPED.js +0 -24
@@ -1,4 +1,4 @@
1
- import { SOURCE_EXPLAIN, ruleDocumentation, findValidationRule, us } from './chunk-OXLA4HXQ.js';
1
+ import { SOURCE_EXPLAIN, ruleDocumentation, findValidationRule, us } from './chunk-FAXO3SUE.js';
2
2
 
3
3
  // src/finding-text-explain-util.ts
4
4
  var ex = (fix, problem, fixed) => ({ fix, problem, fixed });
@@ -9,7 +9,6 @@ var CHART = { type: "column", alt: "Revenue by quarter", data: { columns: ["Quar
9
9
  var WHITE = { background: { type: "solid", color: "#FFFFFF" } };
10
10
  var ROADMAP = { name: "Roadmap", regions: [{ name: "title" }, { direction: "row", regions: [{ name: "timeline", accepts: ["timeline"], max: 1 }, { name: "notes", accepts: ["text", "list"], flow: "column" }] }] };
11
11
  var TIMELINE = { timeline: { events: [{ when: "Q1", what: "Pilot" }, { when: "Q2", what: "Launch" }] } };
12
- var PERSON = (n) => ({ blocks: [{ image: { src: `https://example.com/${n}.png`, alt: `Person ${n}` } }, { text: `Person ${n}` }], composition: { mode: "column" } });
13
12
  var SERIES = (count) => ({ columns: ["Quarter", ...Array.from({ length: count }, (_, i) => `S${i + 1}`)], rows: [["Q1", ...Array.from({ length: count }, (_, i) => i + 1)]] });
14
13
  var LONG_ITEMS = [
15
14
  "Enterprise renewals slipped by three weeks in the northern region after the pricing change",
@@ -50,10 +49,11 @@ var AUDIT_EXPLAIN = {
50
49
  { slides: [{ title: "Results", text: "Q1" }, { title: "Results", text: "Q2" }] },
51
50
  { slides: [{ title: "Results: Q1", text: "Q1" }, { title: "Results: Q2", text: "Q2" }] }
52
51
  ),
52
+ // RR-105: cards side by side (a picture over a name) read card by card, so the example is a layout that draws the body above the title.
53
53
  "opf/reading-order": ex(
54
54
  "Reorder or regroup the blocks so the order they are read in follows the order they appear in, or choose a layout that puts the title first.",
55
- { title: "Team", composition: { mode: "row" }, blocks: [PERSON(1), PERSON(2)] },
56
- { title: "Team", composition: { mode: "column" }, blocks: [PERSON(1), PERSON(2)] }
55
+ { catalogs: { custom: { layouts: { upside: { name: "Upside", direction: "column", regions: [{ name: "body", accepts: ["text"], role: "primary" }, { name: "title" }] } } } }, slides: [{ layout: "upside", title: "Results", text: "Revenue grew in every region." }] },
56
+ { catalogs: { custom: { layouts: { upside: { name: "Upside", direction: "column", regions: [{ name: "title" }, { name: "body", accepts: ["text"], role: "primary" }] } } } }, slides: [{ layout: "upside", title: "Results", text: "Revenue grew in every region." }] }
57
57
  ),
58
58
  "opf/link-text": ex(
59
59
  "Make the link text say where the link goes, for example the name of the page or file.",
@@ -115,6 +115,31 @@ var AUDIT_EXPLAIN = {
115
115
  { catalogs: { custom: { layouts: { roadmap: ROADMAP } } }, slides: [{ layout: "roadmap", blocks: [{ region: "timeline", text: "Note" }] }] },
116
116
  { catalogs: { custom: { layouts: { roadmap: ROADMAP } } }, slides: [{ layout: "roadmap", blocks: [{ region: "notes", text: "Note" }] }] }
117
117
  ),
118
+ "opf/icon-dropped": ex(
119
+ "Put the icon on an entry, metric or group it can mark (a first-level entry of an unnumbered list), or give the slide room for its chips.",
120
+ { catalogs: { custom: { iconSets: { brand: { name: "Brand", license: "MIT", copyright: "Copyright (c) 2026 Example", viewBox: [0, 0, 24, 24], style: "stroke", icons: { star: "M12 3l3 6 6 1-4.5 4 1 6-5.5-3-5.5 3 1-6L3 10l6-1z" } } } } }, slides: [{ title: "Steps", items: [{ text: "Sign up", icon: "brand:star" }, { text: "Invite the team" }], numbering: "arabic" }] },
121
+ { catalogs: { custom: { iconSets: { brand: { name: "Brand", license: "MIT", copyright: "Copyright (c) 2026 Example", viewBox: [0, 0, 24, 24], style: "stroke", icons: { star: "M12 3l3 6 6 1-4.5 4 1 6-5.5-3-5.5 3 1-6L3 10l6-1z" } } } } }, slides: [{ title: "Steps", items: [{ text: "Sign up", icon: "brand:star" }, { text: "Invite the team" }] }] }
122
+ ),
123
+ "opf/shape-off-slide": ex(
124
+ "Write `x` and `y` as fractions of the slide (0.7 for 70%), so at least part of the shape is on it; a shape may hang over an edge.",
125
+ { title: "Plan", text: "Three regions go live in March.", shapes: [{ shape: "rect", text: "Draft", x: 70, y: 10, width: 0.2, height: 0.1 }] },
126
+ { title: "Plan", text: "Three regions go live in March.", shapes: [{ shape: "rect", text: "Draft", x: 0.7, y: 0.1, width: 0.2, height: 0.1 }] }
127
+ ),
128
+ "opf/chart-label-collision": ex(
129
+ "Set the line where a bar or the area leaves room beside it at one of its ends, or give each reference its own value, so its label has a free place.",
130
+ { title: "Results", chart: { type: "column", data: { columns: ["Quarter", "Revenue"], rows: [["Q1", 12], ["Q2", 18], ["Q3", 22], ["Q4", 26]] }, referenceLines: [{ value: 6, label: "Floor" }] } },
131
+ { title: "Results", chart: { type: "column", data: { columns: ["Quarter", "Revenue"], rows: [["Q1", 12], ["Q2", 18], ["Q3", 22], ["Q4", 26]] }, referenceLines: [{ value: 15, label: "Floor" }] } }
132
+ ),
133
+ "opf/timeline-period-short": ex(
134
+ "Give the timeline more room, or make its shortest period longer relative to the others.",
135
+ { slides: [{ title: "Plan", timeline: { events: [{ when: "Day 1", what: "Kickoff", duration: 1 }, { when: "Year 3", what: "Delivery", duration: 1e3 }] } }] },
136
+ { slides: [{ title: "Plan", timeline: { events: [{ when: "Day 1", what: "Kickoff", duration: 1 }, { when: "Year 3", what: "Delivery", duration: 3 }] } }] }
137
+ ),
138
+ "opf/arrangement-adapted": ex(
139
+ "Give a matrix exactly four short entries, or choose another layout for another count.",
140
+ { catalogs: { custom: { layouts: { quad: { name: "Quad", regions: [{ name: "title" }, { name: "quadrants", accepts: ["list"], flow: "none", arrangement: "matrix" }] } } } }, slides: [{ layout: "quad", title: "Markets", items: ["North", "South", "East"] }] },
141
+ { catalogs: { custom: { layouts: { quad: { name: "Quad", regions: [{ name: "title" }, { name: "quadrants", accepts: ["list"], flow: "none", arrangement: "matrix" }] } } } }, slides: [{ layout: "quad", title: "Markets", items: ["North", "South", "East", "West"] }] }
142
+ ),
118
143
  "opf/region-full": ex(
119
144
  "Pin the block to another region with room, or remove `region` so it is placed by its kind.",
120
145
  { catalogs: { custom: { layouts: { roadmap: ROADMAP } } }, slides: [{ layout: "roadmap", blocks: [{ region: "timeline", ...TIMELINE }, { region: "timeline", ...TIMELINE }] }] },
@@ -127,8 +152,8 @@ var AUDIT_EXPLAIN = {
127
152
  ),
128
153
  "opf/furniture-wraps": ex(
129
154
  "Shorten the header or footer text, or move part of it to another zone. Headers and footers should fit on two lines.",
130
- { design: { footer: { left: { text: "A footer that keeps going and going and going and going and going and going and going and going and going and going and going and going" }, center: { text: "Confidential" }, right: { text: "{{slide.number}}" } } }, slides: [{ title: "Welcome" }] },
131
- { design: { footer: { left: { text: "Acme, confidential" }, right: { text: "{{slide.number}}" } } }, slides: [{ title: "Welcome" }] }
155
+ { design: { footer: { start: { text: "A footer that keeps going and going and going and going and going and going and going and going and going and going and going and going" }, center: { text: "Confidential" }, end: { text: "{{slide.number}}" } } }, slides: [{ title: "Welcome" }] },
156
+ { design: { footer: { start: { text: "Acme, confidential" }, end: { text: "{{slide.number}}" } } }, slides: [{ title: "Welcome" }] }
132
157
  ),
133
158
  "opf/font-outside-scheme": ex(
134
159
  "Remove `fontFamily` so the text uses the scheme font, or add the family to the deck's font scheme so it follows scheme changes.",
@@ -146,9 +171,9 @@ var AUDIT_EXPLAIN = {
146
171
  { slides: [{ title: "Findings", items: LONG_ITEMS.slice(0, 3) }, { title: "Findings (continued)", items: LONG_ITEMS.slice(3) }] }
147
172
  ),
148
173
  "opf/centered-body": ex(
149
- 'Align paragraphs and lists to the start edge (`contentAlignment: "left"`), and keep centering for titles, numbers and one- or two-line statements.',
174
+ 'Align paragraphs and lists to the start edge (`contentAlignment: "start"`), and keep centering for titles, numbers and one- or two-line statements.',
150
175
  { title: "Why now", items: LONG_ITEMS.slice(0, 3), design: { contentAlignment: "center" } },
151
- { title: "Why now", items: LONG_ITEMS.slice(0, 3), design: { contentAlignment: "left" } }
176
+ { title: "Why now", items: LONG_ITEMS.slice(0, 3), design: { contentAlignment: "start" } }
152
177
  ),
153
178
  "opf/tight-spacing": ex(
154
179
  "Keep the default spacing, or raise `composition.gap` and `composition.padding`, so blocks stand at least 0.25 in apart and 0.5 in from the slide edge.",
@@ -202,6 +227,11 @@ var CONTENT_EXPLAIN = {
202
227
  { slides: [{ title: "{{speaker.name}}" }] },
203
228
  { speaker: { name: "Ada Lovelace" }, slides: [{ title: "{{speaker.name}}" }] }
204
229
  ),
230
+ "opf/variable-group-omitted": ex(
231
+ "Give one of the group's optional variables a value to draw the group, or move what should always show out of the group. Unfilled, the whole group is left out, its picture and card with it.",
232
+ { template: true, variables: { quote: { type: "text", required: false } }, slides: [{ title: "Customers", blocks: [{ blocks: [{ image: { src: "https://example.com/portrait.jpg", alt: "A customer" } }, { text: "var:quote" }] }] }] },
233
+ { template: true, variables: { quote: { type: "text", required: false, value: "It just works." } }, slides: [{ title: "Customers", blocks: [{ blocks: [{ image: { src: "https://example.com/portrait.jpg", alt: "A customer" } }, { text: "var:quote" }] }] }] }
234
+ ),
205
235
  "opf/duration-outside-narrative": ex(
206
236
  "Change `duration`, or choose a narrative that suits it. The range describes the narrative, so nothing is drawn differently.",
207
237
  { duration: 5, narrative: "arc", catalogs: { custom: { narratives: { arc: ARC({ min: 10, max: 20 }) } } }, slides: [{ title: "Intro", beat: "hook" }] },
@@ -288,7 +318,7 @@ var FORMAT_EXPLAIN = {
288
318
  { references: [{ id: "gartner", text: "Gartner, 2026" }], slides: [{ title: "Market", text: [{ text: "EMEA grew 12%", cite: "gartner" }], table: { columns: ["Region", "Growth"], rows: [["EMEA", "12%"]] } }] }
289
319
  ),
290
320
  "opf/caption-unsupported-payload": ex(
291
- "Put the `caption` on the image, chart, table or video it describes, or remove it.",
321
+ "Put the `caption` on the image, chart, table, video or diagram it describes, or remove it.",
292
322
  { title: "Revenue", blocks: [{ text: "Revenue grew", caption: "Source: finance" }] },
293
323
  { title: "Revenue", blocks: [{ chart: CHART, caption: "Source: finance" }] }
294
324
  ),
@@ -297,10 +327,45 @@ var FORMAT_EXPLAIN = {
297
327
  { title: "Revenue", chart: CHART, fit: "cover" },
298
328
  { title: "Revenue", image: IMG("team"), fit: "cover" }
299
329
  ),
330
+ "opf/shape-option-unsupported-payload": ex(
331
+ "Remove the shape option, or make the block a shape block with `shape` (a preset such as roundRect) or `path`. Options such as `fill`, `style` and `rotate` describe how a shape is drawn.",
332
+ { title: "Plan", blocks: [{ text: "Launch", fill: "accent2" }] },
333
+ { title: "Plan", blocks: [{ shape: "roundRect", text: "Launch", fill: "accent2" }] }
334
+ ),
335
+ "opf/shape-adjust-unknown": ex(
336
+ "Use an adjust name the preset has (docs/shapes.md lists them; roundRect has `adj`, rightArrow `adj1` and `adj2`), or remove it.",
337
+ { title: "Plan", blocks: [{ shape: "roundRect", adjust: { adj1: 0.3 } }] },
338
+ { title: "Plan", blocks: [{ shape: "roundRect", adjust: { adj: 0.3 } }] }
339
+ ),
340
+ "opf/shape-adjust-range": ex(
341
+ "Set the adjust value inside its handle's range: roundRect's corner `adj` runs from 0 to 0.5 of the shorter side.",
342
+ { title: "Plan", blocks: [{ shape: "roundRect", adjust: { adj: 0.8 } }] },
343
+ { title: "Plan", blocks: [{ shape: "roundRect", adjust: { adj: 0.5 } }] }
344
+ ),
345
+ "opf/shape-link-hidden": ex(
346
+ "Show the shape, or drop its link: a hidden shape cannot be clicked.",
347
+ { title: "Plan", blocks: [{ shape: "rect", text: "Pricing", link: "https://example.com/pricing", hidden: true }] },
348
+ { title: "Plan", blocks: [{ shape: "rect", text: "Pricing", link: "https://example.com/pricing" }] }
349
+ ),
350
+ "opf/shape-anchor-size-unit": ex(
351
+ "Write pixels as `widthPx`; `width` is a fraction.",
352
+ { title: "T", blocks: [{ id: "a", text: "x" }], shapes: [{ shape: "ellipse", at: { block: "a", edge: "top", width: 6 } }] },
353
+ { title: "T", blocks: [{ id: "a", text: "x" }], shapes: [{ shape: "ellipse", at: { block: "a", edge: "top", widthPx: 6 } }] }
354
+ ),
355
+ "opf/shape-anchor-missing": ex(
356
+ "Name a block of the slide in `at.block` (give the block an `id`), or place the shape by `x`, `y`, `width` and `height`.",
357
+ { title: "Team", blocks: [{ id: "photo", image: IMG("team") }], shapes: [{ shape: "ellipse", text: "New", at: { block: "phot", edge: "top" } }] },
358
+ { title: "Team", blocks: [{ id: "photo", image: IMG("team") }], shapes: [{ shape: "ellipse", text: "New", at: { block: "photo", edge: "top" } }] }
359
+ ),
360
+ "opf/connector-end-missing": ex(
361
+ "Name a block or an overlay shape of the slide in `from` and `to` (give it an `id`).",
362
+ { title: "Plan", blocks: [{ id: "plan", shape: "roundRect", text: "Plan" }, { id: "ship", shape: "roundRect", text: "Ship" }], shapes: [{ connector: { from: "plan", to: "shipping", route: "elbow" } }] },
363
+ { title: "Plan", blocks: [{ id: "plan", shape: "roundRect", text: "Plan" }, { id: "ship", shape: "roundRect", text: "Ship" }], shapes: [{ connector: { from: "plan", to: "ship", route: "elbow" } }] }
364
+ ),
300
365
  "opf/image-placement-invalid": ex(
301
366
  "Use `placement` on a top-level block of the slide, with one placed image per slide edge.",
302
- { title: "Team", blocks: [{ image: IMG("a"), placement: { edge: "left" } }, { image: IMG("b"), placement: { edge: "left" } }] },
303
- { title: "Team", blocks: [{ image: IMG("a"), placement: { edge: "left" } }, { image: IMG("b"), placement: { edge: "right" } }] }
367
+ { title: "Team", blocks: [{ image: IMG("a"), placement: { edge: "start" } }, { image: IMG("b"), placement: { edge: "start" } }] },
368
+ { title: "Team", blocks: [{ image: IMG("a"), placement: { edge: "start" } }, { image: IMG("b"), placement: { edge: "end" } }] }
304
369
  ),
305
370
  "opf/layout-placeholder-group": ex(
306
371
  "Flatten the group so it nests at most three levels, and keep the headings (title, subtitle, tag) at the record's top level. Layout records written for current versions use `regions`, where the same limits apply to splits.",
@@ -327,6 +392,16 @@ var FORMAT_EXPLAIN = {
327
392
  { title: "Revenue", chart: { type: "column", data: { columns: ["Quarter", "Revenue"], rows: [["Q1", 12]] }, mapping: { series: ["Profit"] } } },
328
393
  { title: "Revenue", chart: { type: "column", data: { columns: ["Quarter", "Revenue"], rows: [["Q1", 12]] }, mapping: { series: ["Revenue"] } } }
329
394
  ),
395
+ "opf/chart-reference-axis-unavailable": ex(
396
+ "Use axis value, or add an actual secondary line series to a combo chart before using a secondary reference.",
397
+ { title: "Revenue", chart: { ...CHART, referenceLines: [{ value: 20, axis: "secondary" }] } },
398
+ { title: "Revenue", chart: { ...CHART, referenceLines: [{ value: 20, axis: "value" }] } }
399
+ ),
400
+ "opf/chart-reference-unsupported-type": ex(
401
+ "Remove `referenceLines`, or change the chart to a type with one value axis for every series: column, bar, line, line-with-markers, area or combo.",
402
+ { title: "Share", chart: { type: "pie", data: { columns: ["Region", "Share"], rows: [["North", 60], ["South", 40]] }, referenceLines: [{ value: 50 }] } },
403
+ { title: "Share", chart: { type: "column", data: { columns: ["Region", "Share"], rows: [["North", 60], ["South", 40]] }, referenceLines: [{ value: 50 }] } }
404
+ ),
330
405
  "opf/number-format-invalid": ex(
331
406
  "Write the format as an Excel-style pattern with a numeric part, such as `0.0`, `#,##0`, `0%` or `$#,##0.00`.",
332
407
  { title: "Revenue", table: { columns: [{ name: "Revenue", format: "units" }], rows: [[12]] } },
@@ -368,6 +443,7 @@ var FORMAT_EXPLAIN = {
368
443
  var NARRATIVE = { name: "Arc", beats: [{ id: "hook", name: "Hook" }, { id: "proof", name: "Proof" }] };
369
444
  var GALLERY_LAYOUT = { name: "Mine", regions: [{ name: "title" }] };
370
445
  var DATA = { columns: ["Quarter", "Revenue"], rows: [["Q1", 12]] };
446
+ var ICON_SET = { name: "Brand", license: "MIT", copyright: "Copyright (c) 2026 Example", viewBox: [0, 0, 24, 24], style: "stroke", icons: { star: "M12 3l3 6 6 1-4.5 4 1 6-5.5-3-5.5 3 1-6L3 10l6-1z" } };
371
447
  var REFERENCES_EXPLAIN = {
372
448
  "opf/run-color-unrecognized": ex(
373
449
  "Write a hex color (`#1F4E79`), a color scheme name (`accent1`, `text`) or a `var:` reference to a declared color variable.",
@@ -410,8 +486,8 @@ var REFERENCES_EXPLAIN = {
410
486
  { catalogs: { custom: { layouts: { mine: { name: "Mine", regions: [{ name: "title" }, { name: "a", accepts: ["text"], size: "auto" }, { name: "b", accepts: ["text"] }] } } } }, slides: [{ title: "Welcome", layout: "mine" }] }
411
487
  ),
412
488
  "opf/layout-region": ex(
413
- "Name each body region with a unique lowercase id that is not reserved (`title`, `subtitle`, `tag`, `auto`, `left`, `center`, `right`, `top`, `middle`, `bottom`), and give it something to accept.",
414
- { catalogs: { custom: { layouts: { mine: { name: "Mine", regions: [{ name: "title" }, { name: "left", accepts: ["text"] }] } } } }, slides: [{ title: "Welcome", layout: "mine" }] },
489
+ "Name each body region with a unique lowercase id that is not reserved (`title`, `subtitle`, `tag`, `auto`, `start`, `center`, `end`, `top`, `middle`, `bottom`), and give it something to accept.",
490
+ { catalogs: { custom: { layouts: { mine: { name: "Mine", regions: [{ name: "title" }, { name: "start", accepts: ["text"] }] } } } }, slides: [{ title: "Welcome", layout: "mine" }] },
415
491
  { catalogs: { custom: { layouts: { mine: { name: "Mine", regions: [{ name: "title" }, { name: "body", accepts: ["text"] }] } } } }, slides: [{ title: "Welcome", layout: "mine" }] }
416
492
  ),
417
493
  "opf/unresolved-reference": ex(
@@ -429,6 +505,16 @@ var REFERENCES_EXPLAIN = {
429
505
  { references: [{ id: "gartner", text: "Gartner, 2026" }], slides: [{ title: "Market", text: "Up 12%" }] },
430
506
  { references: [{ id: "gartner", text: "Gartner, 2026" }], slides: [{ title: "Market", text: [{ text: "Up 12%", cite: "gartner" }] }] }
431
507
  ),
508
+ "opf/icon-unknown": ex(
509
+ "Use an icon the set has (search_icons finds names by keyword), add the name to the deck's `icons`, or remove the icon.",
510
+ { catalogs: { custom: { iconSets: { brand: ICON_SET } } }, slides: [{ title: "Why us", items: [{ text: "Rated first", icon: "brand:stra" }] }] },
511
+ { catalogs: { custom: { iconSets: { brand: ICON_SET } } }, slides: [{ title: "Why us", items: [{ text: "Rated first", icon: "brand:star" }] }] }
512
+ ),
513
+ "opf/icon-invalid": ex(
514
+ "Keep only shapes in the icon's SVG, with no script, event handler, external reference or raster.",
515
+ { icons: { mark: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><image href="https://example.com/a.png" width="24" height="24"/></svg>' }, slides: [{ title: "Why us", items: [{ text: "Rated first", icon: "mark" }] }] },
516
+ { icons: { mark: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 12l5 5L20 6" fill="none" stroke="currentColor" stroke-width="2"/></svg>' }, slides: [{ title: "Why us", items: [{ text: "Rated first", icon: "mark" }] }] }
517
+ ),
432
518
  "opf/unused-dataset": ex(
433
519
  "Point a chart or table at the dataset with `dataset`, or remove it.",
434
520
  { datasets: { sales: DATA }, slides: [{ title: "Revenue", text: "Up 12%" }] },
@@ -1,4 +1,4 @@
1
- import { runText } from './chunk-XQO2CT6Q.js';
1
+ import { runText } from './chunk-3THGTDL2.js';
2
2
 
3
3
  // src/convert/text-lines.ts
4
4
  var LIST_PREFIX = /^([ \t]*)(?:([-*•+]|\d{1,3}[.)])[ \t]+)?/;