@openpresentation/opf 0.31.0 → 0.32.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 (76) hide show
  1. package/README.md +1 -1
  2. package/dist/browser.js +18 -18
  3. package/dist/{chart-data-Ci9s_NDN.d.ts → chart-data-oIZQlFGi.d.ts} +4 -2
  4. package/dist/{chunk-UKWNHK62.js → chunk-2E6CDYL2.js} +23 -6
  5. package/dist/{chunk-I6G32TB5.js → chunk-56J345KE.js} +5 -5
  6. package/dist/{chunk-XSCZZWYI.js → chunk-7U3TJBXE.js} +99 -15
  7. package/dist/{chunk-HRKV43GC.js → chunk-BBVW5ZC2.js} +3 -3
  8. package/dist/{chunk-7UO6H32I.js → chunk-CLRYHWQN.js} +162 -22
  9. package/dist/chunk-DGS47ONG.js +1 -0
  10. package/dist/{chunk-F5QC7E2O.js → chunk-F7DN33UL.js} +28 -8
  11. package/dist/{chunk-KELC4K62.js → chunk-HKUV7NEN.js} +1 -1
  12. package/dist/{chunk-XG4JKFZ6.js → chunk-IT7FQKED.js} +6 -6
  13. package/dist/{chunk-SYCHWS7C.js → chunk-J63CIRIV.js} +4 -4
  14. package/dist/{chunk-5Q4IYLMW.js → chunk-LEF4X4KI.js} +274 -33
  15. package/dist/{chunk-5OMZW44K.js → chunk-NEJ32O7X.js} +1 -1
  16. package/dist/chunk-NVAJASOD.js +14764 -0
  17. package/dist/{chunk-M7YZU3DX.js → chunk-OXLA4HXQ.js} +615 -58
  18. package/dist/{chunk-P5E3FNYO.js → chunk-PB7ME64J.js} +1 -1
  19. package/dist/{chunk-ARFAQNOH.js → chunk-SW676APJ.js} +2 -2
  20. package/dist/{chunk-W7KPMUJF.js → chunk-XFHXQCXL.js} +58 -5
  21. package/dist/{chunk-KOCXV7H3.js → chunk-XQO2CT6Q.js} +2 -2
  22. package/dist/{chunk-WHDOOLIO.js → chunk-YFJIIIOL.js} +3 -3
  23. package/dist/composition-DRqNGHJV.d.ts +5620 -0
  24. package/dist/composition.d.ts +2 -2
  25. package/dist/composition.js +1 -1
  26. package/dist/{conversion-Bh-skyMc.d.ts → conversion-Cadul8Mu.d.ts} +56 -9
  27. package/dist/conversion-J3YPDS7C.js +24 -0
  28. package/dist/convert.d.ts +2 -2
  29. package/dist/convert.js +7 -7
  30. package/dist/data.d.ts +2 -2
  31. package/dist/data.js +2 -2
  32. package/dist/{deck-report-DQMsvyBI.d.ts → deck-report-BA3IPJAV.d.ts} +2 -2
  33. package/dist/deck.d.ts +5 -5
  34. package/dist/deck.js +11 -11
  35. package/dist/diagram-engine-eager.js +6 -0
  36. package/dist/diagram-engine-lazy.js +2 -0
  37. package/dist/diff.js +4 -4
  38. package/dist/docs.js +25 -19
  39. package/dist/examples.js +4759 -995
  40. package/dist/format.js +2 -2
  41. package/dist/ids.js +4 -4
  42. package/dist/index.d.ts +15 -12
  43. package/dist/index.js +23 -22
  44. package/dist/markdown.d.ts +2 -2
  45. package/dist/markdown.js +8 -8
  46. package/dist/node-engine.d.ts +6 -6
  47. package/dist/node-engine.js +20 -20
  48. package/dist/{pagination-DyAKYpXu.d.ts → pagination-DwEkdJ6s.d.ts} +74 -4
  49. package/dist/pagination.d.ts +3 -3
  50. package/dist/pagination.js +4 -4
  51. package/dist/patch.js +3 -3
  52. package/dist/precompiled.js +2 -2
  53. package/dist/{presentation-8jLSTFqL.d.ts → presentation-DnD7mfmf.d.ts} +106 -27
  54. package/dist/repo-readme.js +1 -1
  55. package/dist/schema-engine-ajv.js +1 -1
  56. package/dist/schema-engine-precompiled.js +2 -2
  57. package/dist/schema.js +3 -3
  58. package/dist/schemas.d.ts +6 -0
  59. package/dist/schemas.js +1 -1
  60. package/dist/source.d.ts +4 -3
  61. package/dist/source.js +10 -10
  62. package/dist/spec/schemas/layout.schema.json +58 -8
  63. package/dist/spec/schemas/narrative.schema.json +2 -1
  64. package/dist/spec/schemas/opf.schema.json +122 -23
  65. package/dist/spec/schemas/theme.schema.json +9 -3
  66. package/dist/types.d.ts +69 -18
  67. package/dist/{validation-types-mNmfcY9A.d.ts → validation-types-vVah_PEv.d.ts} +1 -1
  68. package/dist/validator.d.ts +4 -4
  69. package/dist/validator.js +3 -3
  70. package/dist/yaml.d.ts +2 -2
  71. package/dist/yaml.js +7 -7
  72. package/package.json +15 -6
  73. package/dist/chunk-W3SEWSO5.js +0 -8043
  74. package/dist/chunk-ZROVYWGU.js +0 -1
  75. package/dist/composition-C-hd_Ci3.d.ts +0 -3207
  76. package/dist/conversion-7OPM5MMJ.js +0 -24
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "design": {
59
59
  "$ref": "#/$defs/DesignHints",
60
- "description": "The layout's design defaults, with the same keys and values as the deck's design and a slide's design (a slide overrides exactly what its layout sets, by the same name). An absent key means the layout has no opinion. Per key the slide's design wins, then the deck's design, then the resolved theme's design, then this record's design, then the engine default. Composition, the renderer and the PPTX exporter all read the one result."
60
+ "description": "The layout's design defaults, with the same keys and values as the deck's design and a slide's design (a slide overrides exactly what its layout sets, by the same name). An absent key means the layout has no opinion. Per key the slide's design wins, then the deck's design, then the resolved theme's design, then this record's design, then the engine default; 'variant' alone ranks this record above the deck and the theme (see DesignHints.variant). Composition, the renderer and the PPTX exporter all read the one result."
61
61
  },
62
62
  "direction": {
63
63
  "type": "string",
@@ -78,7 +78,7 @@
78
78
  "middle",
79
79
  "bottom"
80
80
  ],
81
- "description": "Vertical position of the content of every body region when it is shorter than the region. A split's 'anchor' replaces it for the regions under that split, and a region's own 'anchor' replaces both. Only 'anchor' is inherited, and only by body regions: the heading regions 'title' and 'subtitle' never take it, and the other region rules stay per region. One exception places the whole slide: when the record is a column and every entry of its 'regions' list is sized 'auto' (heading regions included), the record has no numeric row to hold the leftover height, so its 'anchor' places the whole stack, title and subtitle included, in the content box's leftover height: 'middle' centres it, 'bottom' sits it at the foot, 'top' (default) starts it at the top as before. A record with any numeric entry, a row record and an anchor on a split keep the rule above. Default 'top'."
81
+ "description": "Vertical position of the content of every body region when it is shorter than the region. A split's 'anchor' replaces it for the regions under that split, and a region's own 'anchor' replaces both. Only 'anchor' is inherited, and only by body regions: the heading regions 'title' and 'subtitle' never take it (they set their own, HeadingRegion.anchor), and the other region rules stay per region. One exception places the whole slide: when the record is a column and every entry of its 'regions' list is sized 'auto' (heading regions included), the record has no numeric row to hold the leftover height, so its 'anchor' places the whole stack, title and subtitle included, in the content box's leftover height: 'middle' centres it, 'bottom' sits it at the foot, 'top' (default) starts it at the top as before. A record with any numeric entry, a row record and an anchor on a split keep the rule above. Default 'top'."
82
82
  },
83
83
  "regions": {
84
84
  "type": "array",
@@ -87,7 +87,7 @@
87
87
  "items": {
88
88
  "$ref": "#/$defs/RegionEntry"
89
89
  },
90
- "description": "The record's regions in reading order: 1 to 12 entries, each a region ({ name, size?, ...rules }) or a split ({ direction, regions, size?, anchor? }). Every region is declared once, here, with its content rules; a block can target a body region with 'region': '<name>'. Names are unique across the whole record. 'size' is a number above 0 and up to 100 (default 1) that siblings share in proportion, separated by the gap; 'auto' is the height the content needs, allowed only in a column. 'title' and 'subtitle' are heading regions that take only a size (default auto in a column, 1 in a row): 'title' holds the slide's heading group (tag, title and subtitle, stacked) and a 'subtitle' region takes the subtitle out of it, and a 'subtitle' needs a 'title'. A record with no 'title' region gets an implicit auto row on top for a slide that has headings. Splits nest at most three levels (the record's own list is level 1). Rules the schema cannot express (a reserved or repeated name, a 'subtitle' without a 'title', 'auto' outside a column, nesting too deep, more than 12 rows or columns once compiled) are the validate findings opf/layout-template and opf/layout-region.",
90
+ "description": "The record's regions in reading order: 1 to 12 entries, each a region ({ name, size?, ...rules }) or a split ({ direction, regions, size?, anchor? }). Every region is declared once, here, with its content rules; a block can target a body region with 'region': '<name>'. Names are unique across the whole record. 'size' is a number above 0 and up to 100 (default 1) that siblings share in proportion, separated by the gap; 'auto' is the height the content needs, allowed only in a column. 'title' and 'subtitle' are heading regions that take only a size (default auto in a column, 1 in a row), an anchor and (the 'title') a rule: 'title' holds the slide's heading group (tag, title and subtitle, stacked) and a 'subtitle' region takes the subtitle out of it, and a 'subtitle' needs a 'title'. A record with no 'title' region gets an implicit auto row on top for a slide that has headings. Splits nest at most three levels (the record's own list is level 1). Rules the schema cannot express (a reserved or repeated name, a 'subtitle' without a 'title', 'auto' outside a column, nesting too deep, more than 12 rows or columns once compiled) are the validate findings opf/layout-template and opf/layout-region.",
91
91
  "examples": [
92
92
  [
93
93
  {
@@ -234,7 +234,7 @@
234
234
  "required": [
235
235
  "name"
236
236
  ],
237
- "description": "A reserved heading region: 'title' holds the slide's heading group (tag, title and subtitle, stacked) and 'subtitle' takes the subtitle out of it. A heading region takes only a size. At most one of each; a 'subtitle' needs a 'title'.",
237
+ "description": "A reserved heading region: 'title' holds the slide's heading group (tag, title and subtitle, stacked) and 'subtitle' takes the subtitle out of it. A heading region takes a size and an anchor, and the 'title' a rule; the content rules belong on body regions. At most one of each; a 'subtitle' needs a 'title'.",
238
238
  "properties": {
239
239
  "name": {
240
240
  "type": "string",
@@ -246,6 +246,19 @@
246
246
  },
247
247
  "size": {
248
248
  "$ref": "#/$defs/RegionSize"
249
+ },
250
+ "anchor": {
251
+ "type": "string",
252
+ "enum": [
253
+ "top",
254
+ "middle",
255
+ "bottom"
256
+ ],
257
+ "description": "Vertical position of the heading group in its area when the area is sized (a number): 'middle' (default) centers it, 'bottom' sets it at the foot of the area, as a cover or section sets its display title low (LH-130), 'top' at the top. An 'auto' area is as tall as the group, so the anchor changes nothing there. A heading region never inherits the 'anchor' of the record or a split."
258
+ },
259
+ "rule": {
260
+ "type": "boolean",
261
+ "description": "'title' only: draw a short accent rule (80 by 5 px at a 720 px short edge) half a gap above the title, at the title's start edge, on a slide with a title and no tag; a tag is the group's eyebrow and takes the rule's place (LH-130). Engines draw it in the tag's color, the primary or the text color where the primary is under 4.5:1 on the slide. Default false."
249
262
  }
250
263
  }
251
264
  },
@@ -330,6 +343,7 @@
330
343
  "metric",
331
344
  "quote",
332
345
  "timeline",
346
+ "diagram",
333
347
  "group"
334
348
  ]
335
349
  },
@@ -363,7 +377,7 @@
363
377
  "column",
364
378
  "auto"
365
379
  ],
366
- "description": "How several blocks share the region: 'none' one block fills it; 'grid' by count (1 fills, 2 side by side, 3 in a row, 4 as 2 x 2, 5 as 3 + 2, 6 as 3 x 2, 7 to 12 in four columns; rows and columns swap in a portrait region; a short last row is centred); 'column' stacked at the heights the blocks need, one gap apart, and placed by the region's anchor (charts, pictures, tables, timelines and videos take what the measured blocks leave; blocks that do not fit share the region, each giving up the same fraction of what it can give up above its height at the minimum font size); 'auto' a grid when every block is short and a column when any block is long (more than 6 estimated lines in its grid cell at the starting size). design.contentDirection turns every flowing region into one row or one column. Default 'auto'."
380
+ "description": "How several blocks share the region: 'none' one block fills it (blocks no region had room for join it, up to 6, and it flows as 'auto'); 'grid' by count (1 fills, 2 side by side, 3 in a row, 4 as 2 x 2, 5 as 3 + 2, 6 as 3 x 2, 7 to 12 in balanced rows of at most four, 9 as 3 x 3; rows and columns swap in a portrait region; the cells of a short row stretch to the full width, or keep one size and are centred in a grid of pictures); 'column' stacked at the heights the blocks need, one gap apart, and placed by the region's anchor (charts, pictures, tables, timelines and videos take what the measured blocks leave; blocks that do not fit share the region, each giving up the same fraction of what it can give up above its height at the minimum font size); 'auto' a grid when every block is short and a column when any block is long (more than 6 estimated lines in its grid cell at the starting size). design.contentDirection turns every flowing region into one row or one column. Default 'auto'."
367
381
  },
368
382
  "max": {
369
383
  "type": "integer",
@@ -384,7 +398,23 @@
384
398
  "const": 1
385
399
  }
386
400
  ],
387
- "description": "'auto': a list in the region that does not fit its cell at the starting size (a lone list, or one of several blocks) flows into up to three columns before it shrinks, as a list payload's columns: 'auto'. Default 1."
401
+ "description": "'auto': a list in the region that does not fit its cell at the starting size (a lone list, or one of several blocks) flows into up to three columns before it shrinks, as a list payload's columns: 'auto'; a list of 6 or fewer entries is never split. 2 or more lists alone in a region are one list per cell in a grid instead. Default 1."
402
+ },
403
+ "metrics": {
404
+ "type": "string",
405
+ "enum": [
406
+ "stack",
407
+ "tile"
408
+ ],
409
+ "description": "How a metric block in the region is laid out. 'stack' (default): value, unit, label and the rest as one block at the region's anchor and content alignment. 'tile': the metric fills its cell (its card when the layout draws cards) from the start: the label first as an eyebrow, the value under it asking for a quarter of the cell's height (between its 76 px role size and twice it, fitted down as usual), and the description, delta and trend at the foot of the cell."
410
+ },
411
+ "sequence": {
412
+ "type": "string",
413
+ "enum": [
414
+ "steps",
415
+ "numbered"
416
+ ],
417
+ "description": "The region lists the steps of a sequence (LH-07). 'steps': two or more text or list blocks are the steps, each under a numbered badge (an accent circle with its numeral; a one-entry numbered list gives the badge its number and draws as a heading over its description) on one connector line through the badge centers; a lone list's entries are the steps, each beside its badge on a connector down the badge column; a lone list of 3 to 6 entries of one or two words is a flow of chips joined by arrows. 'numbered' (an agenda, ordered by nature): every list of two or more entries of one level draws its entries beside badges, numbered or not; an unnumbered list is counted in arabic, continuing from the region's previous unnumbered list, as drawing only (the document keeps no numbering). Steps keep the text size they have without the badges: a slide whose blocks would get smaller draws them as before. Absent: the region's content draws as any other."
388
418
  },
389
419
  "anchor": {
390
420
  "type": "string",
@@ -459,9 +489,10 @@
459
489
  "enum": [
460
490
  "cover",
461
491
  "contain",
462
- "stretch"
492
+ "stretch",
493
+ "auto"
463
494
  ],
464
- "description": "Default fit of the slide's image blocks: 'cover' fills the frame and crops around focus, 'contain' shows the whole picture, 'stretch' scales it to the frame."
495
+ "description": "Default fit of the slide's image blocks: 'cover' fills the frame and crops around focus, 'contain' shows the whole picture, 'stretch' scales it to the frame, 'auto' covers when the crop keeps at least 85% of the picture and contains otherwise."
465
496
  },
466
497
  "listBullet": {
467
498
  "type": "string",
@@ -472,12 +503,31 @@
472
503
  ],
473
504
  "description": "Marker style of lists: 'character' draws the glyph, 'image' draws the deck's icon logo as a picture bullet, 'none' draws no marker and no hanging indent (label-and-description lists)."
474
505
  },
506
+ "listStyle": {
507
+ "type": "string",
508
+ "enum": ["stack", "rows"],
509
+ "description": "As design.listStyle of a deck: 'stack' or 'rows' (ruled rows) for the lists of slides using this layout."
510
+ },
475
511
  "mirror": {
476
512
  "type": "boolean",
477
513
  "description": "Draw the layout mirrored: each row's cells and the column sizes reversed, so a 'beside' layout puts its picture, chart or table at the end. Logical: a right-to-left deck mirrors on top. Binding and reading order do not change."
514
+ },
515
+ "variant": {
516
+ "oneOf": [
517
+ { "$ref": "https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot" },
518
+ { "$ref": "https://openpresentation.org/schema/opf/v1#/$defs/ColorVariant" },
519
+ { "$ref": "#/$defs/LayoutVariantRole" }
520
+ ],
521
+ "description": "The color variant slides on this layout draw on (LH-01): a background slot ('accent1', 'dark1', ...) or the ColorVariant object, as design.variant, or a value relative to the deck's own variant (LayoutVariantRole: 'surface', 'brand'), so the layout keeps the deck's tone. Unlike the other keys it outranks the deck's design and the theme: the slide's own design.variant or design.background wins, then this, then the deck's variant or background, then the theme's. It hides a background of the deck or theme (the slide is the variant's bg1), and without an accent order of its own it keeps the deck's.",
522
+ "examples": ["accent1", "surface", "brand"]
478
523
  }
479
524
  }
480
525
  },
526
+ "LayoutVariantRole": {
527
+ "type": "string",
528
+ "enum": ["surface", "brand"],
529
+ "description": "A layout variant relative to the deck's own variant (LH-01). 'surface' is the deck's secondary surface on its own side: light2 on a light deck and dark2 on a dark one (light1 or dark1 where the deck is already on light2 or dark2), so a statement stands off the deck without changing its tone. 'brand' is the scheme's brand dark, dark2 (dark1 where the deck is already on dark2), with light text: a closing slide's strong surface on a light or a dark deck."
530
+ },
481
531
  "Composition": {
482
532
  "type": "object",
483
533
  "additionalProperties": false,
@@ -167,7 +167,8 @@
167
167
  "code",
168
168
  "metric",
169
169
  "quote",
170
- "timeline"
170
+ "timeline",
171
+ "diagram"
171
172
  ],
172
173
  "description": "Default content kind for the beat's slide: the same values as Slide.type. Helps engines and planners choose a layout when only the beat is known."
173
174
  },
@@ -696,10 +696,10 @@
696
696
  },
697
697
  "variant": {
698
698
  "oneOf": [
699
- { "$ref": "#/$defs/ThemeBackgroundSlot" },
699
+ { "$ref": "#/$defs/ColorVariantSlot" },
700
700
  { "$ref": "#/$defs/ColorVariant" }
701
701
  ],
702
- "description": "Optional color variant, as a background slot ('light1', 'light2', 'dark1', 'dark2'; the same as { background: slot }) or the object form, which is needed only for an accent order: which slot of the color scheme is the slide background (and so which are the text and the alternate surface), and optionally the order of the accents. A variant is a mapping over the same twelve-slot scheme, as PowerPoint's color map is, never a second scheme. Without it the background decides: a theme-slot background ('dark1', { type: 'theme', slot }) is the variant of that slot, a picture or gradient takes its 'tone', and any other background picks light or dark by its luminance. A slide's variant replaces the deck's whole, including its accent order.",
702
+ "description": "Optional color variant, as a background slot ('light1', 'light2', 'dark1', 'dark2', or an accent 'accent1' to 'accent6'; the same as { background: slot }) or the object form, which is needed only for an accent order: which slot of the color scheme is the slide background (and so which are the text and the alternate surface), and optionally the order of the accents. A variant is a mapping over the same twelve-slot scheme, as PowerPoint's color map is, never a second scheme. Without it the background decides: a theme-slot background ('dark1', { type: 'theme', slot }) is the variant of that slot, a picture or gradient takes its 'tone', and any other background picks light or dark by its luminance. A slide's variant replaces the deck's whole, including its accent order. A slide's layout record can name a variant too (layout design.variant): it outranks the deck's and the theme's, and the slide's own variant or background still wins.",
703
703
  "examples": ["dark1", { "background": "light1", "accents": ["accent2", "accent1", "accent3", "accent4", "accent5", "accent6"] }]
704
704
  },
705
705
  "logo": {
@@ -767,14 +767,19 @@
767
767
  },
768
768
  "imageFit": {
769
769
  "type": "string",
770
- "enum": ["cover", "contain", "stretch"],
771
- "description": "Default fit of image blocks (and Slide.image) that set no fit of their own: 'cover' fills the frame and crops what overflows around the block's focus, 'contain' shows the whole picture in a frame of its own proportions, centered across and placed down the cell by the region's anchor (top by default), 'stretch' scales it to the frame exactly. Effective value: the slide's design, then the deck's design, then the theme's design.imageFit, then the layout record's design.imageFit, then 'cover'; a slide composed with no layout shows its pictures whole ('contain') instead. Backgrounds set their own fit."
770
+ "enum": ["cover", "contain", "stretch", "auto"],
771
+ "description": "Default fit of image blocks (and Slide.image) that set no fit of their own: 'cover' fills the frame and crops what overflows around the block's focus, 'contain' shows the whole picture in a frame of its own proportions, centered across and placed down the cell by the region's anchor (top by default), 'stretch' scales it to the frame exactly, 'auto' covers when the crop keeps at least 85% of the picture's width or height (its proportions read from the file, EXIF orientation applied) and contains otherwise; an SVG, or a picture whose size cannot be read from the document, is contained. Effective value: the slide's design, then the deck's design, then the theme's design.imageFit, then the layout record's design.imageFit, then 'cover'; a slide composed with no layout shows its pictures whole ('contain') instead. Backgrounds set their own fit."
772
772
  },
773
773
  "listBullet": {
774
774
  "type": "string",
775
775
  "enum": ["character", "image", "none"],
776
776
  "description": "Marker style for items and bullets lists. Effective value: the slide's design, then the deck's design, then the theme's design.listBullet, then the layout record's design.listBullet, then 'character'. 'character' (the default) draws the glyph marker. 'image' draws the primary organization's icon logo (or the organization and shape design.logo names; the onDark value on dark backgrounds) as a picture bullet: a square with side 0.65 times the marker's font size whose bottom sits on the marker baseline, so list geometry does not change. Without a logo the glyph is drawn and the engine reports unresolved-content at this field. 'none' draws no marker and no hanging indent, so each entry's text (and its description) starts at the left edge of the list: use it for label-and-description lists such as pillars, team members and questions with answers. Nested levels keep their indent. A list that sets numbering still draws its numbers."
777
777
  },
778
+ "listStyle": {
779
+ "type": "string",
780
+ "enum": ["stack", "rows"],
781
+ "description": "How list entries are arranged (LH-08). 'stack' draws each entry's text with its description under it, the entries close together, as before. 'rows' draws ruled rows: a hairline between two first-level entries (the scheme's border neutral, 1 reference pixel), 0.8 em between rows and no bullet (a numbered list keeps its numbers); when every entry has a description and sits at the first level, the labels are bold and, when the widest fits 40% of the list's width on one line, sit in a column beside their descriptions, first baselines aligned, else each description sits under its label. Both engines draw the rules (PowerPoint: native lines). Effective value: the slide's design, then the deck's design, then the theme's design.listStyle, then the layout record's design.listStyle. Without one, a list of two or more first-level entries that each pair a short label (3 words or fewer, no full stop) with a description is drawn as rows when that sets no block of the slide smaller, and every other list is stacked."
782
+ },
778
783
  "mirror": {
779
784
  "type": "boolean",
780
785
  "description": "Draw the slide's template layout mirrored (OPF 0.19): each row's cells and the column sizes reversed, so a 'beside' layout puts its picture, chart or table at the end. Logical: a right-to-left deck mirrors on top. Binding and reading order do not change. Effective value: the slide's design, then the deck's design, then the layout record's design.mirror, then false. Slides without a template layout ignore it."
@@ -1006,6 +1011,11 @@
1006
1011
  }
1007
1012
  }
1008
1013
  },
1014
+ "ColorVariantSlot": {
1015
+ "type": "string",
1016
+ "description": "The scheme slot a color variant puts behind the slide (bg1): a light or dark slot, or an accent. On an accent the text side is the light family (tx1 = light1, tx2 = light2) or the dark family (tx1 = dark1, tx2 = dark2), whichever text slot has the higher contrast on that accent; tx2 falls back to tx1's slot where it is under 4.5:1 on the accent, and bg2 is the accent itself.",
1017
+ "enum": ["light1", "light2", "dark1", "dark2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6"]
1018
+ },
1009
1019
  "ThemeBackgroundSlot": {
1010
1020
  "type": "string",
1011
1021
  "description": "PowerPoint theme-controlled slide background slot from the active color scheme. These are slots, not assumptions about actual colors: light1 is usually white and dark1 is usually black by convention, but the color scheme controls the real values.",
@@ -1448,10 +1458,10 @@
1448
1458
  "type": "object",
1449
1459
  "additionalProperties": false,
1450
1460
  "required": ["background"],
1451
- "description": "A variant of the deck's single color scheme, as a mapping over its twelve slots (PowerPoint's clrMap): 'background' is the slot the slide background and the role bg1 take, and with it the other roles: light1 maps bg1 = light1, tx1 = dark1, bg2 = light2, tx2 = dark2; dark1 maps bg1 = dark1, tx1 = light1, bg2 = dark2, tx2 = light2; light2 and dark2 make that slot both the background and the alternate surface (light2: bg1 = bg2 = light2, tx1 = dark1, tx2 = dark2; dark2: bg1 = bg2 = dark2, tx1 = light1, tx2 = light2), which is how a slide with that theme background has always been drawn. Text, secondary text, the card surface and every neutral (borders, gridlines, chart axis, code panel) follow the map. The PowerPoint export writes it as the master's clrMap, or a slide's clrMapOvr.",
1461
+ "description": "A variant of the deck's single color scheme, as a mapping over its twelve slots (PowerPoint's clrMap): 'background' is the slot the slide background and the role bg1 take, and with it the other roles: light1 maps bg1 = light1, tx1 = dark1, bg2 = light2, tx2 = dark2; dark1 maps bg1 = dark1, tx1 = light1, bg2 = dark2, tx2 = light2; light2 and dark2 make that slot both the background and the alternate surface (light2: bg1 = bg2 = light2, tx1 = dark1, tx2 = dark2; dark2: bg1 = bg2 = dark2, tx1 = light1, tx2 = light2), which is how a slide with that theme background has always been drawn. An accent background (accent1 to accent6) is both bg1 and bg2, with the text family (light1 and light2, or dark1 and dark2) that reads better on it; see ColorVariantSlot. Text, secondary text, the card surface and every neutral (borders, gridlines, chart axis, code panel) follow the map. The PowerPoint export writes it as the master's clrMap, or a slide's clrMapOvr.",
1452
1462
  "properties": {
1453
1463
  "background": {
1454
- "$ref": "#/$defs/ThemeBackgroundSlot",
1464
+ "$ref": "#/$defs/ColorVariantSlot",
1455
1465
  "description": "The scheme slot that is the background (bg1) of the variant."
1456
1466
  },
1457
1467
  "accents": {
@@ -1607,7 +1617,7 @@
1607
1617
  },
1608
1618
  "focus": {
1609
1619
  "$ref": "#/$defs/ImageFocus",
1610
- "description": "Point of the picture to keep in view when 'cover' crops it. Ignored by the other fits."
1620
+ "description": "Point of the picture to keep in view when 'cover' crops it. Ignored by the other fits. Without a focus a portrait picture (taller than wide) cropped into a wider frame keeps y 0.3 so heads stay in frame; every other crop is centered."
1611
1621
  },
1612
1622
  "opacity": {
1613
1623
  "type": "number",
@@ -1620,13 +1630,17 @@
1620
1630
  "description": "Grayscale or duotone treatment of the picture's pixels, as on an image block: recolor and opacity apply to the pixels, then the overlay is drawn above."
1621
1631
  },
1622
1632
  "overlay": {
1623
- "$ref": "#/$defs/Overlay",
1624
- "description": "Scrim over the whole picture or a band along one edge (edge, size), beneath furniture and content, for example to keep a title readable over a busy photo."
1633
+ "description": "Scrim over the whole picture or a band along one edge (edge, size), beneath furniture and content, for example to keep a title readable over a busy photo. Without an overlay, core draws an automatic scrim in the slide's background color behind text that sits on the picture, at the lowest opacity that keeps it at 4.5:1 over any picture (a gradient from the edge the text is near, or a band across it). An overlay of the author's replaces the automatic scrim, and false turns it off.",
1634
+ "oneOf": [
1635
+ { "$ref": "#/$defs/Overlay" },
1636
+ { "const": false, "description": "No overlay and no automatic scrim: the picture shows as it is behind the text." }
1637
+ ]
1625
1638
  }
1626
1639
  },
1627
1640
  "examples": [
1628
1641
  { "type": "image", "src": "asset:cover-photo" },
1629
- { "type": "image", "src": "./images/harbour.jpg", "alt": "Container ships at dawn", "focus": { "x": 0.5, "y": 0.7 }, "overlay": { "color": "dark1", "opacity": 0.4 } }
1642
+ { "type": "image", "src": "./images/harbour.jpg", "alt": "Container ships at dawn", "focus": { "x": 0.5, "y": 0.7 }, "overlay": { "color": "dark1", "opacity": 0.4 } },
1643
+ { "type": "image", "src": "asset:texture", "overlay": false }
1630
1644
  ]
1631
1645
  },
1632
1646
  "ImageFocus": {
@@ -1924,7 +1938,7 @@
1924
1938
  },
1925
1939
  "type": {
1926
1940
  "type": "string",
1927
- "enum": ["text", "list", "image", "chart", "table", "video", "code", "metric", "quote", "timeline"],
1941
+ "enum": ["text", "list", "image", "chart", "table", "video", "code", "metric", "quote", "timeline", "diagram"],
1928
1942
  "description": "Optional full-slide content kind. When omitted, engines infer the kind from root payload fields."
1929
1943
  },
1930
1944
  "beat": {
@@ -1972,7 +1986,7 @@
1972
1986
  "items": { "$ref": "#/$defs/TextRun" }
1973
1987
  }
1974
1988
  ],
1975
- "description": "Small slide-level label or badge. A v2 layout renders this before the title in its title heading group; tag is not a separate layout area. Use a string for plain text or TextRun[] for inline rich text (a colored word, bold, a link, a citation or footnote marker); the heading keeps its size and fitting rules either way, and run colors resolve like body text.",
1989
+ "description": "Small slide-level label or badge. A v2 layout renders this before the title in its title heading group; tag is not a separate layout area. Engines draw it as an eyebrow (LH-32): 22 reference pixels, bold, in the primary color (the text color where that is under 4.5:1 on the background) and, where its script has case, in capitals with 0.08 em of letter spacing (PowerPoint: cap=all and spc on the authored text). Use a string for plain text or TextRun[] for inline rich text (a colored word, bold, a link, a citation or footnote marker); the heading keeps its size and fitting rules either way, and run colors resolve like body text.",
1976
1990
  "examples": ["Intro", "Confidential", "Appendix"]
1977
1991
  },
1978
1992
  "text": {
@@ -2042,9 +2056,16 @@
2042
2056
  "$ref": "#/$defs/Timeline",
2043
2057
  "description": "Full-slide timeline payload. An array is shorthand for { \"events\": value }; object form carries optional name and description metadata. Presence of this field infers type 'timeline'."
2044
2058
  },
2059
+ "diagram": {
2060
+ "oneOf": [
2061
+ { "type": "string" },
2062
+ { "$ref": "#/$defs/Diagram" }
2063
+ ],
2064
+ "description": "Full-slide diagram payload: Mermaid source drawn in the deck's fonts and colors. A string is shorthand for { \"source\": value }; object form carries the source syntax and a text alternative. Presence of this field infers type 'diagram'."
2065
+ },
2045
2066
  "caption": {
2046
2067
  "$ref": "#/$defs/Caption",
2047
- "description": "Caption for the slide's root image, chart, table or video payload. Valid only when the slide root holds exactly one of those payloads."
2068
+ "description": "Caption for the slide's root image, chart, table, video or diagram payload. Valid only when the slide root holds exactly one of those payloads."
2048
2069
  },
2049
2070
  "blocks": {
2050
2071
  "type": "array",
@@ -2245,7 +2266,7 @@
2245
2266
  "type": {
2246
2267
  "type": "string",
2247
2268
  "enum": ["text", "list", "image", "chart", "table", "video", "code", "metric", "quote", "timeline",
2248
- "group"],
2269
+ "diagram", "group"],
2249
2270
  "description": "Optional content kind. When omitted, engines infer the kind from the fields present."
2250
2271
  },
2251
2272
  "text": {
@@ -2301,7 +2322,7 @@
2301
2322
  "maximum": 3
2302
2323
  }
2303
2324
  ],
2304
- "description": "Lay the payload's `items` or `bullets` out in columns (OPF 0.19). 'auto' tries 1, 2 then 3 equal columns at the starting text size and uses the first count at which the list fits, as long as a column stays at least a quarter of the slide wide; when none fits, the largest allowed count shrinks towards minFontSize. 1, 2 or 3 fixes the count. Column breaks fall between items (a nested item stays with its parent) and keep the columns as even as possible; numbering continues and reading order runs column by column. A lone list in a layout region with listColumns: 'auto' behaves as 'auto'.",
2325
+ "description": "Lay the payload's `items` or `bullets` out in columns (OPF 0.19). 'auto' tries 1, 2 then 3 equal columns at the starting text size and uses the first count at which the list fits, as long as a column stays at least a quarter of the slide wide; when none fits, the largest allowed count shrinks towards minFontSize. A list of 6 or fewer entries is never split by 'auto'; it shrinks in one column. 1, 2 or 3 fixes the count. Column breaks fall between items (a nested item stays with its parent) and keep the columns as even as possible; numbering continues and reading order runs column by column. A lone list in a layout region with listColumns: 'auto' behaves as 'auto'.",
2305
2326
  "examples": ["auto", 2]
2306
2327
  },
2307
2328
  "image": {
@@ -2316,12 +2337,12 @@
2316
2337
  },
2317
2338
  "fit": {
2318
2339
  "type": "string",
2319
- "enum": ["cover", "contain", "stretch"],
2320
- "description": "Image payloads only. How the picture fills its frame: 'cover' fills it and crops what overflows around focus; 'contain' shows the whole picture, in a frame of its own proportions placed at the region's anchor (top by default); 'stretch' scales it to the frame exactly. Default: the effective design.imageFit, else 'cover' in a layout and 'contain' on a slide with no layout."
2340
+ "enum": ["cover", "contain", "stretch", "auto"],
2341
+ "description": "Image payloads only. How the picture fills its frame: 'cover' fills it and crops what overflows around focus; 'contain' shows the whole picture, in a frame of its own proportions placed at the region's anchor (top by default); 'stretch' scales it to the frame exactly; 'auto' covers when the crop keeps at least 85% of the picture's width or height and contains otherwise (an SVG, or a picture whose size cannot be read from the document, is contained), so a photo close to its frame's shape fills it and any other is shown whole. Default: the effective design.imageFit, else 'cover' in a layout and 'contain' on a slide with no layout."
2321
2342
  },
2322
2343
  "focus": {
2323
2344
  "$ref": "#/$defs/ImageFocus",
2324
- "description": "Image payloads only. Point of the picture to keep in view when 'cover' crops it. Ignored by the other fits."
2345
+ "description": "Image payloads only. Point of the picture to keep in view when 'cover' crops it. Ignored by the other fits. Without a focus a portrait picture (taller than wide) cropped into a wider frame keeps y 0.3 so heads stay in frame; every other crop is centered."
2325
2346
  },
2326
2347
  "aspectRatio": {
2327
2348
  "type": "number",
@@ -2445,9 +2466,23 @@
2445
2466
  }
2446
2467
  ]
2447
2468
  },
2469
+ "diagram": {
2470
+ "oneOf": [
2471
+ { "type": "string" },
2472
+ { "$ref": "#/$defs/Diagram" }
2473
+ ],
2474
+ "description": "Diagram payload: Mermaid source (flowchart, sequence, state, class, ER, mindmap, timeline, journey, C4, architecture and the other built-in Mermaid families) drawn in the deck's fonts and colors. A string is shorthand for { \"source\": value }; object form carries the source syntax and a text alternative. Presence of this field infers type 'diagram'.",
2475
+ "examples": [
2476
+ "flowchart LR\n A[Brief] --> B{Approved?}\n B -->|yes| C[Build]\n B -->|no| A",
2477
+ {
2478
+ "source": "sequenceDiagram\n Client->>API: POST /decks\n API-->>Client: 201 Created",
2479
+ "alt": "The client creates a deck and the API answers 201 Created."
2480
+ }
2481
+ ]
2482
+ },
2448
2483
  "caption": {
2449
2484
  "$ref": "#/$defs/Caption",
2450
- "description": "Caption for an image, chart, table or video payload, composed inside the block's region (below the media by default). Invalid on other payload kinds and on groups."
2485
+ "description": "Caption for an image, chart, table, video or diagram payload, composed inside the block's region (below the media by default). Invalid on other payload kinds and on groups."
2451
2486
  },
2452
2487
  "blocks": {
2453
2488
  "type": "array",
@@ -2459,7 +2494,12 @@
2459
2494
  },
2460
2495
  "composition": {
2461
2496
  "$ref": "#/$defs/Composition",
2462
- "description": "Arrangement within this group. Only minFontSize and overflow inherit from the parent; strict overflow cannot be weakened."
2497
+ "description": "Arrangement within this group. Only minFontSize, maxFontSize and overflow inherit from the parent; strict overflow cannot be weakened."
2498
+ },
2499
+ "emphasis": {
2500
+ "type": "boolean",
2501
+ "description": "true draws this block or group on the slide's emphasis surface: a contrasting card in its cell (a dark card on a light slide, an accent card on a dark one), from the deck's own scheme slots, with every text color on it at 4.5:1 or more against its fill. A slide has one emphasis surface: the first block or group with emphasis: true in reading order takes it, and any other is drawn without it (composition diagnostic emphasis-ignored). Without any, a slide's short last text block (60 characters or fewer) after longer blocks is drawn as a band at the foot of the body, and one of 30 or fewer after a lone long text as a pill right under that text; neither is drawn where it would cost another block its fitted size. Without any either, the second card of a before-and-after or problem-and-solution pair, or the one tier of a set marked recommended or most popular, takes the surface and the other cards of the pair or set are drawn on plain cards (read from the blocks' labels and short texts, never from ids). false keeps a block out of those automatic rules.",
2502
+ "examples": [true, false]
2463
2503
  }
2464
2504
  },
2465
2505
  "allOf": [
@@ -2544,6 +2584,15 @@
2544
2584
  "required": ["timeline"]
2545
2585
  }
2546
2586
  },
2587
+ {
2588
+ "if": {
2589
+ "required": ["type"],
2590
+ "properties": { "type": { "const": "diagram" } }
2591
+ },
2592
+ "then": {
2593
+ "required": ["diagram"]
2594
+ }
2595
+ },
2547
2596
  {
2548
2597
  "if": {
2549
2598
  "required": [
@@ -2641,6 +2690,11 @@
2641
2690
  "required": [
2642
2691
  "timeline"
2643
2692
  ]
2693
+ },
2694
+ {
2695
+ "required": [
2696
+ "diagram"
2697
+ ]
2644
2698
  }
2645
2699
  ]
2646
2700
  }
@@ -2783,7 +2837,7 @@
2783
2837
  "trend": {
2784
2838
  "type": "string",
2785
2839
  "enum": ["up", "down", "flat"],
2786
- "description": "Metric trend direction. The preview and the PowerPoint export draw an arrow beside the trend word that always points the way the trend does (up, down or flat) and colour the arrow, the trend word and the delta text by `sentiment`."
2840
+ "description": "Metric trend direction. The preview and the PowerPoint export draw it as an arrow that always points the way the trend does (up, down or flat), before the delta on its line (or before the label without a delta), and color the arrow and the delta text by `sentiment`. The word itself is not drawn; it is the arrow's text alternative."
2787
2841
  },
2788
2842
  "sentiment": {
2789
2843
  "type": "string",
@@ -2792,6 +2846,31 @@
2792
2846
  }
2793
2847
  }
2794
2848
  },
2849
+ "Diagram": {
2850
+ "type": "object",
2851
+ "description": "A diagram written as text. Engines parse the source, lay it out with the deck's measured fonts at the largest type size that fits the block, and draw it in the slide's resolved colors (color scheme, variant, color map and background); the PPTX export writes it as a native SVG picture with a PNG fallback. A string value in a diagram field is shorthand for { \"source\": value }.",
2852
+ "additionalProperties": false,
2853
+ "required": ["source"],
2854
+ "properties": {
2855
+ "source": {
2856
+ "type": "string",
2857
+ "minLength": 1,
2858
+ "description": "The diagram source. With syntax 'mermaid' (the default) it is Mermaid 12.1 text whose first line names the diagram type (flowchart, sequenceDiagram, classDiagram, stateDiagram-v2, erDiagram, gantt, pie, mindmap, timeline, journey, quadrantChart, xychart, sankey, gitGraph, C4Context, block, architecture-beta, kanban, packet, radar-beta, treemap, venn-beta, ishikawa, requirementDiagram and the other built-in families; ZenUML is not supported). Mermaid themes, colors in themeVariables and click callbacks are ignored: the deck's design decides the colors and fonts.",
2859
+ "examples": ["flowchart LR\n A[Idea] --> B[Prototype] --> C[Launch]", "mindmap\n root((Strategy))\n Growth\n Efficiency\n People"]
2860
+ },
2861
+ "syntax": {
2862
+ "type": "string",
2863
+ "enum": ["mermaid"],
2864
+ "default": "mermaid",
2865
+ "description": "The language of 'source'. Mermaid is the only syntax today."
2866
+ },
2867
+ "alt": {
2868
+ "type": "string",
2869
+ "description": "Text alternative that says what the diagram shows. Exported as the picture's description. Without it, engines derive one from the diagram's labels.",
2870
+ "examples": ["Ideas move from brief to approval; approved work is built, rejected work returns to the brief."]
2871
+ }
2872
+ }
2873
+ },
2795
2874
  "Timeline": {
2796
2875
  "description": "Timeline content. An array is shorthand for { \"events\": value }; object form carries optional name and description metadata.",
2797
2876
  "oneOf": [
@@ -3386,6 +3465,20 @@
3386
3465
  "type": "string",
3387
3466
  "description": "Text alternative for the table: what it shows (the point and the key numbers), not 'a table'. The preview exposes it as the table's accessible name (role group with aria-label; the cells stay readable) and the PowerPoint export writes it as the table frame's alternative text (descr); import reads it back. An empty string hides a purely decorative table, with the same meaning as an empty Asset alt. The alt is a summary read before the cells, which stay readable, so it is most useful for a large or dense table; validate does not require one and does not report a missing one.",
3388
3467
  "examples": ["North America grew 46% to $18.1M in Q4, ahead of EMEA at 40%."]
3468
+ },
3469
+ "highlight": {
3470
+ "type": "object",
3471
+ "additionalProperties": false,
3472
+ "description": "Optional emphasis: the body rows that carry the message, named by their first-column (key) text exactly as 'chart.highlight' names categories, as text; a key shared by several rows highlights each of them. The engines draw a highlighted row on an accent tint of the table surface (15% of the deck's primary color, mixed less where the cell text would fall under 4.5:1); a cell with its own 'style.fill' keeps it. Absent, the engines highlight the rows the slide's other texts name (its title, a sentence, a list entry, a quote or a chart's alt) when they agree on some rows but not all; an empty 'rows' list turns that off. PPTX export writes the tint as each cell's fill and import restores the list. A name no row has is a 'table-highlight-unknown-name' error.",
3473
+ "required": ["rows"],
3474
+ "properties": {
3475
+ "rows": {
3476
+ "type": "array",
3477
+ "items": { "type": "string" },
3478
+ "description": "Key texts (the first cell of each body row, as text) of the rows to highlight."
3479
+ }
3480
+ },
3481
+ "examples": [{ "rows": ["Southeast", "Southwest"] }]
3389
3482
  }
3390
3483
  }
3391
3484
  },
@@ -3575,7 +3668,7 @@
3575
3668
  "ChartMapping": {
3576
3669
  "type": "object",
3577
3670
  "additionalProperties": false,
3578
- "description": "Series mapping by column name (after any 'fields' selection). Mapping only selects and orders columns; pie, doughnut and other single-series constructs still plot one series. An unknown name is a 'chart-mapping-unknown-column' error; a series that repeats the category or X column, and an X column on a chart type without an X axis, are dropped with a 'chart-mapping-adapted' warning.",
3671
+ "description": "Series mapping by column name (after any 'fields' selection). Mapping only selects and orders columns; a chart type that plots one series (treemap, funnel, waterfall and the like) still plots the first and names the others in a 'chart-series-dropped' warning, and a pie or doughnut of several series draws nested rings. An unknown name is a 'chart-mapping-unknown-column' error; a series that repeats the category or X column, and an X column on a chart type without an X axis, are dropped with a 'chart-mapping-adapted' warning.",
3579
3672
  "properties": {
3580
3673
  "category": {
3581
3674
  "type": "string",
@@ -3926,7 +4019,7 @@
3926
4019
  "Composition": {
3927
4020
  "type": "object",
3928
4021
  "additionalProperties": false,
3929
- "description": "Automatic slide and content-group arrangement. Nested content groups arrange their children independently, inheriting only minFontSize and overflow. Explicit promoted regions retain their positions. A layout defines its grid as one ordered list of regions; its composition supports gap, padding, minFontSize and overflow rather than mode, columns or weights.",
4022
+ "description": "Automatic slide and content-group arrangement. Nested content groups arrange their children independently, inheriting only minFontSize, maxFontSize and overflow. Explicit promoted regions retain their positions. A layout defines its grid as one ordered list of regions; its composition supports gap, padding, minFontSize, maxFontSize and overflow rather than mode, columns or weights.",
3930
4023
  "properties": {
3931
4024
  "mode": {
3932
4025
  "type": "string",
@@ -3973,6 +4066,12 @@
3973
4066
  "maximum": 32,
3974
4067
  "description": "Minimum readable text size in reference pixels at a 720-pixel canvas short edge. Default 16. Overflow is diagnosed when text cannot fit at this size."
3975
4068
  },
4069
+ "maxFontSize": {
4070
+ "type": "number",
4071
+ "minimum": 8,
4072
+ "maximum": 200,
4073
+ "description": "Largest body text size in reference pixels at a 720-pixel canvas short edge: paragraphs, lists, quotes, metrics and timelines are never set larger, their growth included (headings, tables, code and charts keep their sizes). Never lowers text under minFontSize. paginate writes it on the pages after the first, so the pages of one slide share its type sizes."
4074
+ },
3976
4075
  "overflow": {
3977
4076
  "type": "string",
3978
4077
  "enum": [
@@ -136,7 +136,8 @@
136
136
  "enum": [
137
137
  "cover",
138
138
  "contain",
139
- "stretch"
139
+ "stretch",
140
+ "auto"
140
141
  ],
141
142
  "description": "As design.imageFit of a deck."
142
143
  },
@@ -148,6 +149,11 @@
148
149
  "none"
149
150
  ],
150
151
  "description": "As design.listBullet of a deck."
152
+ },
153
+ "listStyle": {
154
+ "type": "string",
155
+ "enum": ["stack", "rows"],
156
+ "description": "As design.listStyle of a deck."
151
157
  }
152
158
  },
153
159
  "examples": [
@@ -224,9 +230,9 @@
224
230
  "examples": ["Light", "Light alt", "Dark", "Dark alt"]
225
231
  },
226
232
  "variant": {
227
- "description": "The value design.variant takes when the variant is chosen: a background slot ('light1', 'light2', 'dark1', 'dark2'; the same as { background: slot }) or the ColorVariant object of opf.schema.json, which adds an accent order.",
233
+ "description": "The value design.variant takes when the variant is chosen: a background slot ('light1', 'light2', 'dark1', 'dark2', or an accent 'accent1' to 'accent6'; the same as { background: slot }) or the ColorVariant object of opf.schema.json, which adds an accent order.",
228
234
  "oneOf": [
229
- { "$ref": "#/$defs/ThemeBackgroundSlot" },
235
+ { "$ref": "https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot" },
230
236
  { "$ref": "https://openpresentation.org/schema/opf/v1#/$defs/ColorVariant" }
231
237
  ],
232
238
  "examples": ["dark1", { "background": "light1", "accents": ["accent6", "accent5", "accent4", "accent1", "accent3", "accent2"] }]