@openpresentation/opf 0.34.1 → 0.35.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 +6 -6
  2. package/dist/browser.js +19 -19
  3. package/dist/{catalog-refs-CoIrOdAw.d.ts → catalog-refs-BgotJhR5.d.ts} +117 -98
  4. package/dist/{catalog-schemas-FjLRPtjB.d.ts → catalog-schemas-BX-VEc5Q.d.ts} +1 -1
  5. package/dist/{chunk-MUILZGRY.js → chunk-2GCTKQDD.js} +4 -4
  6. package/dist/{chunk-LCT5ZV3Q.js → chunk-3KPTVK77.js} +92 -284
  7. package/dist/{chunk-SR6T4LKI.js → chunk-3ZTKRX7F.js} +4 -6
  8. package/dist/{chunk-MAFJ5O2D.js → chunk-4UMZDDJG.js} +11 -29
  9. package/dist/{chunk-NLJFNCZ4.js → chunk-6JHV2K67.js} +6 -6
  10. package/dist/{chunk-FK5XG742.js → chunk-6VGLE7C5.js} +114 -2
  11. package/dist/{chunk-AAWHOCXS.js → chunk-7KUUIL7W.js} +8 -8
  12. package/dist/{chunk-FCSYIBVR.js → chunk-ARPMSD7V.js} +1 -1
  13. package/dist/{chunk-244OPLAV.js → chunk-GGN3NQDK.js} +1 -1
  14. package/dist/{chunk-L3MCLD3X.js → chunk-GKUAVSXU.js} +3 -10
  15. package/dist/{chunk-6PMXVP5G.js → chunk-HORPH6O7.js} +202 -21
  16. package/dist/{chunk-XLSWZSQS.js → chunk-JQNT37IO.js} +4 -13
  17. package/dist/{chunk-AEHDXNZX.js → chunk-KNMMEE67.js} +1433 -916
  18. package/dist/{chunk-CJVKOJ6B.js → chunk-LDLLZQPP.js} +1094 -472
  19. package/dist/{chunk-HHVQ2SDT.js → chunk-MS2LPR7F.js} +1 -5
  20. package/dist/{chunk-AGYPRTEC.js → chunk-MVPQEMCP.js} +97 -15
  21. package/dist/{chunk-2B6GLT2O.js → chunk-NPRNWPP4.js} +1 -1
  22. package/dist/{chunk-X72WPTST.js → chunk-P2ACZJUL.js} +6 -6
  23. package/dist/chunk-SEC4IOOS.js +1 -0
  24. package/dist/{chunk-CQXBGZQP.js → chunk-VMPOCXTE.js} +5 -17
  25. package/dist/{chunk-ABA2D6X5.js → chunk-ZZWX4W2G.js} +2 -2
  26. package/dist/{composition-CvtvgBDE.d.ts → composition-BmJfljJl.d.ts} +345 -242
  27. package/dist/composition.d.ts +2 -2
  28. package/dist/composition.js +1 -1
  29. package/dist/{conversion-CyNRlWGw.d.ts → conversion-BbXhlurO.d.ts} +10 -8
  30. package/dist/conversion-VWCH3NKR.js +25 -0
  31. package/dist/convert.d.ts +11 -11
  32. package/dist/convert.js +61 -86
  33. package/dist/data.d.ts +1 -1
  34. package/dist/data.js +2 -2
  35. package/dist/{deck-report-BVlQZ42f.d.ts → deck-report-BYkbL7uT.d.ts} +3 -3
  36. package/dist/deck.d.ts +6 -6
  37. package/dist/deck.js +11 -11
  38. package/dist/diagram-engine-eager.js +1 -1
  39. package/dist/diagram-engine-lazy.js +1 -1
  40. package/dist/{diagram-plantuml-XRZ6VAOL.js → diagram-plantuml-GWXGKY7R.js} +1 -1
  41. package/dist/diff.d.ts +2 -2
  42. package/dist/diff.js +4 -4
  43. package/dist/docs.js +40 -40
  44. package/dist/example-files/technical/assets/alice.png +0 -0
  45. package/dist/example-files/technical/assets/context-photo.png +0 -0
  46. package/dist/example-files/technical/assets/cover-image.png +0 -0
  47. package/dist/example-files/technical/assets/cover.png +0 -0
  48. package/dist/example-files/technical/assets/diagram.svg +1 -0
  49. package/dist/example-files/technical/assets/icon.svg +1 -0
  50. package/dist/example-files/technical/assets/logo-dark.svg +1 -0
  51. package/dist/example-files/technical/assets/logo-light.svg +1 -0
  52. package/dist/example-files/technical/assets/logo.svg +1 -0
  53. package/dist/example-files/technical/assets/primary-logo.svg +1 -0
  54. package/dist/example-files/technical/assets/product-shot.png +0 -0
  55. package/dist/example-files/technical/assets/watermark.png +0 -0
  56. package/dist/example-files/technical/assets/wordmark.svg +1 -0
  57. package/dist/examples.js +6383 -8169
  58. package/dist/{finding-l9dlQ2NF.d.ts → finding-mcHslZLA.d.ts} +6 -2
  59. package/dist/font-policy.d.ts +16 -2
  60. package/dist/font-policy.js +1 -1
  61. package/dist/format.js +2 -2
  62. package/dist/ids.d.ts +2 -2
  63. package/dist/ids.js +4 -4
  64. package/dist/index.d.ts +125 -27
  65. package/dist/index.js +24 -23
  66. package/dist/markdown.d.ts +1 -1
  67. package/dist/markdown.js +8 -8
  68. package/dist/node-engine.d.ts +22 -8
  69. package/dist/node-engine.js +38 -22
  70. package/dist/{pagination-CZQQYk7L.d.ts → pagination-C0FPjO29.d.ts} +4 -4
  71. package/dist/pagination.d.ts +3 -3
  72. package/dist/pagination.js +4 -4
  73. package/dist/patch.d.ts +4 -4
  74. package/dist/patch.js +3 -3
  75. package/dist/precompiled.js +2 -2
  76. package/dist/{presentation-s9262acV.d.ts → presentation-Dx-kZC8Y.d.ts} +33 -81
  77. package/dist/repo-readme.js +1 -1
  78. package/dist/schema-engine-ajv.js +1 -1
  79. package/dist/schema-engine-precompiled.js +2 -2
  80. package/dist/schema.d.ts +5 -7
  81. package/dist/schema.js +3 -3
  82. package/dist/schemas.js +1 -1
  83. package/dist/source.d.ts +5 -0
  84. package/dist/source.js +10 -10
  85. package/dist/spec/reference/engine-defaults.json +1 -1
  86. package/dist/spec/reference/engine-vocabularies.json +43 -43
  87. package/dist/spec/reference/font-policy.json +114 -2
  88. package/dist/spec/reference/font-policy.schema.json +45 -1
  89. package/dist/spec/schemas/color-scheme.schema.json +2 -2
  90. package/dist/spec/schemas/finding.schema.json +2 -1
  91. package/dist/spec/schemas/icon-set.schema.json +5 -0
  92. package/dist/spec/schemas/layout.schema.json +27 -85
  93. package/dist/spec/schemas/opf.schema.json +35 -176
  94. package/dist/spec/schemas/theme.schema.json +10 -10
  95. package/dist/symbol-font-encodings.d.ts +2 -2
  96. package/dist/symbol-font-encodings.js +12695 -12736
  97. package/dist/types.d.ts +74 -86
  98. package/dist/{validation-types-CYbsUuZ9.d.ts → validation-types-DKIe1RQW.d.ts} +5 -5
  99. package/dist/validator.d.ts +5 -7
  100. package/dist/validator.js +3 -3
  101. package/dist/yaml.d.ts +1 -1
  102. package/dist/yaml.js +7 -7
  103. package/package.json +7 -7
  104. package/dist/chunk-UJZN2ZH6.js +0 -1
  105. package/dist/conversion-CSQ5EHD2.js +0 -25
@@ -3,7 +3,7 @@
3
3
  "$id": "https://openpresentation.org/schema/opf/v1",
4
4
  "$comment": "The v1 in the $id is the pre-1.0 line, not a frozen contract: this schema may change in any 0.x minor release. The release that produced this copy is the version of the @openpresentation/opf package it came from (opf --version; opf schemas lists it next to each id). See docs/schema-versioning.md.",
5
5
  "title": "Presentation",
6
- "description": "Open-source JSON format for describing PowerPoint presentations. Agents describe narratives, content, audience, reusable assets, and design — the engine handles OOXML complexity.\n\nContent references (Slide.layout, design.theme, design.colorScheme / design.colorScheme.id, design.fontScheme / design.fontScheme.id, narrative, audience, purpose and tone, and the colorScheme / fontScheme a theme record names) point at catalog records. Each is a bare 'id' or a 'name:id' whose prefix names a group in 'catalogs'. A bare id resolves in catalogs.custom, then in the records embedded under catalogs.default, then in the catalog the host registered for catalogs.default.source (or the host's default catalog when 'default' is omitted); 'name:id' resolves in catalogs.<name>, then in the catalog the host registered for its source. A reference that resolves nowhere is the warning opf/unresolved-reference, and the slide uses automatic composition or the engine default. Engines never fetch a catalog: a saved document embeds every record it uses, and hosts register any other catalog by its source string. See docs/default-catalog.md.\n\nchart.type, the language tag and the keys of Organization.socials / Speaker.socials are engine vocabularies, validated directly with no catalog lookup. When a document names no theme, colour scheme or font scheme, every engine uses the same small engine defaults (spec/reference/engine-defaults.json). Asset references use 'asset:<id>' strings that point into the top-level assets registry, and content color fields (rich-text runs, styled table cells) accept hex values, color-scheme slot/role names, or 'var:<id>' references into the top-level variables map.",
6
+ "description": "Open-source JSON format for describing PowerPoint presentations. Agents describe narratives, content, audience, reusable assets, and design — the engine handles OOXML complexity.\n\nContent references (Slide.layout, design.theme, design.colorScheme / design.colorScheme.id, design.fontScheme / design.fontScheme.id, narrative, audience, purpose and tone, and the colorScheme / fontScheme a theme record names) point at catalog records. Each is a bare 'id' or a 'name:id' whose prefix names a group in 'catalogs'. A bare id resolves in catalogs.custom, then in the records embedded under catalogs.default, then in the catalog the host registered for catalogs.default.source (or the host's default catalog when 'default' is omitted); 'name:id' resolves in catalogs.<name>, then in the catalog the host registered for its source. A reference that resolves nowhere is the warning opf/unresolved-reference, and the slide uses automatic composition or the engine default. Engines never fetch a catalog: a saved document embeds every record it uses, and hosts register any other catalog by its source string. See docs/default-catalog.md.\n\nchart.type, the language tag and the keys of Organization.socials / Speaker.socials are engine vocabularies, validated directly with no catalog lookup. When a document names no theme, color scheme or font scheme, every engine uses the same small engine defaults (spec/reference/engine-defaults.json). Asset references use 'asset:<id>' strings that point into the top-level assets registry, and content color fields (rich-text runs, styled table cells) accept hex values, color-scheme slot/role names, or 'var:<id>' references into the top-level variables map.",
7
7
  "type": "object",
8
8
  "required": ["slides"],
9
9
  "additionalProperties": false,
@@ -516,7 +516,7 @@
516
516
  "direction": {
517
517
  "type": "string",
518
518
  "enum": ["ltr", "rtl"],
519
- "description": "Base text direction for the language. When omitted, engines derive it from the script: Arabic (Arab), Hebrew (Hebr), Syriac (Syrc), Thaana (Thaa), N'Ko (Nkoo), Adlam (Adlm), Samaritan (Samr), Mandaic (Mand) and Hanifi Rohingya (Rohg) are right-to-left; every other script is left-to-right. The engine language vocabulary (spec/reference/engine-vocabularies.json) states it for the tags it knows. A right-to-left deck mirrors its layout, and one rule says what follows it. Layout words and layout coordinates are logical: 'start' and 'end' in alignments, header and footer zones, promoted regions, image placement, overlay bands, chartPrimary and shape anchors, the order of side-by-side blocks and columns, and an overlay shape's 'x' all run from the edge the deck starts on. Coordinates and sides that name pixels of a picture or parts of a plot are physical in every language: ImageFocus, ImageCallout 'x', a chart's 'legend' and data label 'position', and the 'left' and 'right' of table cell borders and paddings and of a shape's padding."
519
+ "description": "Base text direction for the language. When omitted, engines derive it from the script: Arabic (Arab), Hebrew (Hebr), Syriac (Syrc), Thaana (Thaa), N'Ko (Nkoo), Adlam (Adlm), Samaritan (Samr), Mandaic (Mand) and Hanifi Rohingya (Rohg) are right-to-left; every other script is left-to-right. The engine language vocabulary (spec/reference/engine-vocabularies.json) states it for the tags it knows. A right-to-left deck mirrors its layout, and one rule says what follows it. Layout words and layout coordinates are logical: 'start' and 'end' in alignments, header and footer zones, the cells blocks name with 'region', image placement, overlay bands and shape anchors, the order of side-by-side blocks and columns, and an overlay shape's 'x' all run from the edge the deck starts on. Coordinates and sides that name pixels of a picture or parts of a plot are physical in every language: ImageFocus, ImageCallout 'x', a chart's 'legend' and data label 'position', and the 'left' and 'right' of table cell borders and paddings and of a shape's padding."
520
520
  },
521
521
  "script": {
522
522
  "type": "string",
@@ -730,7 +730,7 @@
730
730
  },
731
731
  "Socials": {
732
732
  "type": "object",
733
- "description": "Social media handles or URLs, keyed by platform. The keys are an engine vocabulary validated directly (no catalog lookup): engines link a handle with the platform's URL pattern and handle prefix (spec/reference/engine-vocabularies.json). Each value is a string, either a full URL or a platform handle (e.g., '@acme'). Brand colours and icons are catalog display metadata for authoring UIs; engines render the profile URL, not icons or brand colours. Used both for organization and speaker records.",
733
+ "description": "Social media handles or URLs, keyed by platform. The keys are an engine vocabulary validated directly (no catalog lookup): engines link a handle with the platform's URL pattern and handle prefix (spec/reference/engine-vocabularies.json). Each value is a string, either a full URL or a platform handle (e.g., '@acme'). Brand colors and icons are catalog display metadata for authoring UIs; engines render the profile URL, not icons or brand colors. Used both for organization and speaker records.",
734
734
  "additionalProperties": {
735
735
  "type": "string",
736
736
  "description": "Handle or URL for the platform identified by the property key."
@@ -759,7 +759,7 @@
759
759
  "properties": {
760
760
  "theme": {
761
761
  "$ref": "#/$defs/CatalogReference",
762
- "description": "Theme for the deck: a themes reference, a bare id ('minimal') or 'name:id' ('acme:brand'). The theme supplies the default colour scheme, font scheme, background and dimensions; design.colorScheme, design.fontScheme, design.background and design.dimensions override it field by field. A reference that resolves nowhere is the warning opf/unresolved-reference and engines use the engine default theme.",
762
+ "description": "Theme for the deck: a themes reference, a bare id ('minimal') or 'name:id' ('acme:brand'). The theme supplies the default color scheme, font scheme, background and dimensions; design.colorScheme, design.fontScheme, design.background and design.dimensions override it field by field. A reference that resolves nowhere is the warning opf/unresolved-reference and engines use the engine default theme.",
763
763
  "examples": ["minimal", "classic", "bold", "acme:brand"]
764
764
  },
765
765
  "colorScheme": {
@@ -767,7 +767,7 @@
767
767
  { "type": "string" },
768
768
  { "$ref": "#/$defs/ColorScheme" }
769
769
  ],
770
- "description": "Color scheme for the presentation. Accepts two forms:\n- A colorSchemes reference: a bare id ('cool-horizon') or 'name:id' ('acme:ocean').\n- Object form: a ColorScheme with an optional 'id' reference as the base plus slot/role overrides. Without 'id', the overrides apply on top of the engine default colour scheme.\n\nWithout either, the theme's colorScheme applies, then the engine default colour scheme.",
770
+ "description": "Color scheme for the presentation. Accepts two forms:\n- A colorSchemes reference: a bare id ('cool-horizon') or 'name:id' ('acme:ocean').\n- Object form: a ColorScheme with an optional 'id' reference as the base plus slot/role overrides. Without 'id', the overrides apply on top of the engine default color scheme.\n\nWithout either, the theme's colorScheme applies, then the engine default color scheme.",
771
771
  "examples": [
772
772
  "cool-horizon",
773
773
  "boost",
@@ -855,6 +855,11 @@
855
855
  "enum": ["start", "center", "end"],
856
856
  "description": "Default horizontal alignment for the title heading area (the title and the tag) in resolved layouts. Effective value: the slide's design, then the deck's design, then the theme's design.titleAlignment, then the layout record's design.titleAlignment, then the engine default. Logical: 'start' is the edge a paragraph starts on (the left for left-to-right text, the right for right-to-left text) and 'end' is the opposite edge."
857
857
  },
858
+ "titlePosition": {
859
+ "type": "string",
860
+ "enum": ["top", "start"],
861
+ "description": "Where the heading group (tag, title and subtitle) sits on a slide with body content. 'top' (the default) stacks it above the body. 'start' sets it beside the body, in a column of two fifths of the content width (the body takes the other three fifths, a gap apart) on the reading side: the left in a left-to-right deck, the right in a right-to-left deck; design.mirror swaps the side. The group is centered down the column at its role size, aligned by titleAlignment. On a layout, the rows that hold only headings give way and the title column runs down beside the layout's body regions, which keep their own arrangement; a 'subtitle' region joins the title's group, and a layout without a title region gets the column for the slide's title. Content no region takes sits below them, across the slide. A layout whose title already shares a row with a body region keeps its own placement. On a slide without a layout the automatic composition fills the free area beside the column. A slide without body content (a cover), a slide whose blocks name cells of its grid ('region': start, center, end, top, middle, bottom: they name its columns themselves) and a portrait canvas (taller than wide) keep the title on top. Header and footer zones, placed pictures and footnotes keep their places: the column lies between them. A slide that gives up its layout for the automatic grid to set its text larger (the layout's recomposition) puts its title on top, taking the column's width for its body. Effective value: the slide's design, then the deck's design, then the theme's design.titlePosition, then the layout record's design.titlePosition, then 'top'. PPTX export: a layout record that sets 'start' (and every layout of a deck or theme that sets it) gets a slide layout with its title placeholder beside the body; a slide that sets it on another layout keeps its title's own position on that slide."
862
+ },
858
863
  "contentAlignment": {
859
864
  "type": "string",
860
865
  "enum": ["start", "center", "end"],
@@ -864,16 +869,6 @@
864
869
  "type": "boolean",
865
870
  "description": "Whether body/content regions are rendered inside a visible card or surface. Effective value: the slide's design, then the deck's design, then the theme's design.contentBox, then the layout record's design.contentBox, then the engine default."
866
871
  },
867
- "contentDirection": {
868
- "type": "string",
869
- "enum": ["horizontal", "vertical"],
870
- "description": "Axis along which parallel body content is arranged: 'vertical' is a column, 'horizontal' a row. Effective value: the slide's design, then the deck's design, then the theme's design.contentDirection, then the layout record's design.contentDirection. On a slide with a template layout it turns every flowing region of the slide into one row or one column, below the slide's own composition.mode, columns and weights, which arrange its first primary flowing region. On an automatic slide (and a 0.18 record) it sets the root arrangement mode when no composition.mode is set on the slide or on its layout record. Promoted regions (start, top:start, ...) keep their explicit geometry and nested groups keep their own composition."
871
- },
872
- "chartPrimary": {
873
- "type": "string",
874
- "enum": ["none", "top", "bottom", "start", "end"],
875
- "description": "Where the primary chart sits relative to supporting content. Effective value: slide design, then deck design, then the layout record's design.chartPrimary. It applies to automatic slides only; a template layout says the same with its regions (chart-beside). When the slide has no promoted regions and no composition.mode of its own, and its root nodes mix at least one chart with other content, the first chart becomes a primary track and the other nodes form one synthetic sub-grid: 'start'/'end' is a two-track row with the chart on that side (logical: 'start' is the left in a left-to-right deck and the right in a right-to-left one) and 'top'/'bottom' a two-track column, weighted 3:2 in favor of the chart; explicit root columns and weights are ignored while it applies. 'none' (the default) keeps the ordinary automatic grid with equal weight. Automatic composition builds direct content groups; template regions remain authoritative."
876
- },
877
872
  "imageFit": {
878
873
  "type": "string",
879
874
  "enum": ["cover", "contain", "stretch", "auto"],
@@ -891,7 +886,7 @@
891
886
  },
892
887
  "mirror": {
893
888
  "type": "boolean",
894
- "description": "Draw the slide's template 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. 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."
889
+ "description": "Draw the slide's template 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. 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, except that it moves a title beside the body (titlePosition 'start') to the end side."
895
890
  }
896
891
  }
897
892
  },
@@ -908,7 +903,7 @@
908
903
  },
909
904
  "id": {
910
905
  "$ref": "#/$defs/CatalogReference",
911
- "description": "Colour-scheme reference (a bare id or 'name:id') resolved as the base; slot and role overrides on the surrounding ColorScheme object take precedence over the resolved scheme.",
906
+ "description": "Color-scheme reference (a bare id or 'name:id') resolved as the base; slot and role overrides on the surrounding ColorScheme object take precedence over the resolved scheme.",
912
907
  "examples": ["cool-horizon", "boost", "burnt-orange", "ocean-depth", "corporate-blue"]
913
908
  },
914
909
  "accent1": {
@@ -1438,7 +1433,7 @@
1438
1433
  },
1439
1434
  "NumberFormat": {
1440
1435
  "type": "string",
1441
- "description": "Number display pattern, shared by NumberVariable.format, data column formats (DataColumn.format) and table cell formats (StyledTableCell.format). An optional literal prefix, a numeric part of '#', '0', ',' and '.', and an optional literal suffix. '0' pads digits, '#' is optional, ',' groups thousands, digits after '.' fix the decimals ('0' required, '#' optional), and a '%' in the prefix or suffix multiplies the value by 100. English separators only. A format applies only to number values; strings, booleans, null and rich runs display unchanged. A column or cell format that is not a valid pattern is a 'number-format-invalid' error. The PPTX export writes it as the equivalent Excel number format code.",
1436
+ "description": "Number display pattern, shared by NumberVariable.format, data column formats (DataColumn.format) and table cell formats (StyledTableCell.format). An optional literal prefix, a numeric part of '#', '0', ',' and '.', and an optional literal suffix. '0' pads digits, '#' is optional, ',' groups thousands, digits after '.' fix the decimals ('0' required, '#' optional), and a '%' in the prefix or suffix multiplies the value by 100. English separators only. A format is one to three ';'-separated sections, positive;negative;zero, each such a pattern: with two, the second formats negative numbers, with three the third formats zero. A negative section formats the absolute value and prints no minus of its own, so '+0%;-0%' shows +12% and -5%. More than three sections, an empty section or a section without a numeric part is a 'number-format-invalid' error; there is no text section, color or condition. A format applies only to number values; strings, booleans, null and rich runs display unchanged. A column or cell format that is not a valid pattern is a 'number-format-invalid' error. The PPTX export writes it as the equivalent Excel number format code.",
1442
1437
  "examples": [
1443
1438
  "#,##0",
1444
1439
  "0.0",
@@ -1768,7 +1763,7 @@
1768
1763
  "ImageBackground": {
1769
1764
  "type": "object",
1770
1765
  "additionalProperties": false,
1771
- "description": "Picture background: the image fills the whole canvas behind everything and never moves content (to push content aside, use an image block with placement). The string shorthand 'asset:x' (or any image source) is { type: 'image', src: 'asset:x' }, a cover image. Paint order: the colour scheme's default slide background, the picture, then the overlay, then furniture and content.",
1766
+ "description": "Picture background: the image fills the whole canvas behind everything and never moves content (to push content aside, use an image block with placement). The string shorthand 'asset:x' (or any image source) is { type: 'image', src: 'asset:x' }, a cover image. Paint order: the color scheme's default slide background, the picture, then the overlay, then furniture and content.",
1772
1767
  "required": ["type", "src"],
1773
1768
  "properties": {
1774
1769
  "tone": {
@@ -1798,7 +1793,7 @@
1798
1793
  "fit": {
1799
1794
  "type": "string",
1800
1795
  "enum": ["cover", "contain", "stretch", "tile"],
1801
- "description": "How the picture fills the canvas: 'cover' fills it and crops what overflows around focus; 'contain' shows the whole picture centered over the colour scheme's default background; 'stretch' scales it to the canvas exactly; 'tile' repeats it at its own size from the top-left corner. Default 'cover'."
1796
+ "description": "How the picture fills the canvas: 'cover' fills it and crops what overflows around focus; 'contain' shows the whole picture centered over the color scheme's default background; 'stretch' scales it to the canvas exactly; 'tile' repeats it at its own size from the top-left corner. Default 'cover'."
1802
1797
  },
1803
1798
  "focus": {
1804
1799
  "$ref": "#/$defs/ImageFocus",
@@ -2901,7 +2896,7 @@
2901
2896
  },
2902
2897
  "Slide": {
2903
2898
  "type": "object",
2904
- "description": "A single slide. Content can be authored as a full-slide root payload, or inside promoted named region keys such as 'start', 'center+end', and 'top:start'. The columns of that grid are logical: 'start' is the left column in a left-to-right deck and the right column in a right-to-left one.",
2899
+ "description": "A single slide. Content is a full-slide root payload or a list of blocks. On a slide without a layout, blocks may name cells of a 3 x 3 grid with their 'region' ('start', 'center+end', 'top:start'): see ContentPayload.region. The columns of that grid are logical: 'start' is the left column in a left-to-right deck and the right column in a right-to-left one. A key on the slide that names a cell is not OPF: validate reports it (opf/schema) with the safe fix that moves its content into a block with 'region'.",
2905
2900
  "additionalProperties": false,
2906
2901
  "dependentSchemas": {
2907
2902
  "caption": {
@@ -2937,8 +2932,8 @@
2937
2932
  },
2938
2933
  "layout": {
2939
2934
  "$ref": "#/$defs/CatalogReference",
2940
- "description": "Optional layout: a layouts reference, a bare id ('pillars') or 'name:id' ('acme:hero'), or 'auto'. When omitted or 'auto', the slide is composed with no layout record: engines arrange title, subtitle, tag and content automatically, a slide with no body payload is a cover (vertically centered), and design hints apply; there is no finding. 'auto' is reserved, so no catalog may define a layout of that id, and opf format drops it. A layout is a grid template (layout.schema.json): the slide's content stays flat and binds to the layout's regions by reading order, role and kind, a block may pin itself to a region with 'region', and an empty region collapses. A reference that resolves nowhere is the warning opf/unresolved-reference (and the 'unresolved-reference' diagnostic of resolveSlideContext), the slide composes automatically, and a strict export fails. A layout id of the 0.18 default catalog that 0.19 no longer has is such a reference: 0.19 has no migration path for layouts. A layout never changes what a slide contains, and engines never substitute a different layout.",
2941
- "examples": ["cover", "pillars", "chart-beside", "auto", "acme:hero"]
2935
+ "description": "Optional layout: a layouts reference, a bare id ('pillars') or 'name:id' ('acme:hero'). When omitted, the slide is composed with no layout record: engines arrange title, subtitle, tag and content automatically, a slide with no body payload is a cover (vertically centered), and design hints apply; there is no finding. OPF 0.35 removed the value 'auto': it is an ordinary reference now, and one that resolves nowhere is opf/unresolved-reference, which says so and offers the fix that deletes the key. A layout is a grid template (layout.schema.json): the slide's content stays flat and binds to the layout's regions by reading order, role and kind, a block may pin itself to a region with 'region', and an empty region collapses. A reference that resolves nowhere is the warning opf/unresolved-reference (and the 'unresolved-reference' diagnostic of resolveSlideContext), the slide composes automatically, and a strict export fails. A layout id of the 0.18 default catalog that 0.19 no longer has is such a reference: 0.19 has no migration path for layouts. A layout never changes what a slide contains, and engines never substitute a different layout.",
2936
+ "examples": ["cover", "pillars", "chart-beside", "acme:hero"]
2942
2937
  },
2943
2938
  "title": {
2944
2939
  "oneOf": [
@@ -3069,150 +3064,6 @@
3069
3064
  "$ref": "#/$defs/SlideDesign",
3070
3065
  "description": "Slide-level design applied on top of the deck-wide design."
3071
3066
  },
3072
- "start": {
3073
- "$ref": "#/$defs/ContentPayload"
3074
- },
3075
- "center": {
3076
- "$ref": "#/$defs/ContentPayload"
3077
- },
3078
- "end": {
3079
- "$ref": "#/$defs/ContentPayload"
3080
- },
3081
- "start+center": {
3082
- "$ref": "#/$defs/ContentPayload"
3083
- },
3084
- "center+end": {
3085
- "$ref": "#/$defs/ContentPayload"
3086
- },
3087
- "start+center+end": {
3088
- "$ref": "#/$defs/ContentPayload"
3089
- },
3090
- "top": {
3091
- "$ref": "#/$defs/ContentPayload"
3092
- },
3093
- "middle": {
3094
- "$ref": "#/$defs/ContentPayload"
3095
- },
3096
- "bottom": {
3097
- "$ref": "#/$defs/ContentPayload"
3098
- },
3099
- "top+middle": {
3100
- "$ref": "#/$defs/ContentPayload"
3101
- },
3102
- "middle+bottom": {
3103
- "$ref": "#/$defs/ContentPayload"
3104
- },
3105
- "top+middle+bottom": {
3106
- "$ref": "#/$defs/ContentPayload"
3107
- },
3108
- "top:start": {
3109
- "$ref": "#/$defs/ContentPayload"
3110
- },
3111
- "top:center": {
3112
- "$ref": "#/$defs/ContentPayload"
3113
- },
3114
- "top:end": {
3115
- "$ref": "#/$defs/ContentPayload"
3116
- },
3117
- "top:start+center": {
3118
- "$ref": "#/$defs/ContentPayload"
3119
- },
3120
- "top:center+end": {
3121
- "$ref": "#/$defs/ContentPayload"
3122
- },
3123
- "top:start+center+end": {
3124
- "$ref": "#/$defs/ContentPayload"
3125
- },
3126
- "middle:start": {
3127
- "$ref": "#/$defs/ContentPayload"
3128
- },
3129
- "middle:center": {
3130
- "$ref": "#/$defs/ContentPayload"
3131
- },
3132
- "middle:end": {
3133
- "$ref": "#/$defs/ContentPayload"
3134
- },
3135
- "middle:start+center": {
3136
- "$ref": "#/$defs/ContentPayload"
3137
- },
3138
- "middle:center+end": {
3139
- "$ref": "#/$defs/ContentPayload"
3140
- },
3141
- "middle:start+center+end": {
3142
- "$ref": "#/$defs/ContentPayload"
3143
- },
3144
- "bottom:start": {
3145
- "$ref": "#/$defs/ContentPayload"
3146
- },
3147
- "bottom:center": {
3148
- "$ref": "#/$defs/ContentPayload"
3149
- },
3150
- "bottom:end": {
3151
- "$ref": "#/$defs/ContentPayload"
3152
- },
3153
- "bottom:start+center": {
3154
- "$ref": "#/$defs/ContentPayload"
3155
- },
3156
- "bottom:center+end": {
3157
- "$ref": "#/$defs/ContentPayload"
3158
- },
3159
- "bottom:start+center+end": {
3160
- "$ref": "#/$defs/ContentPayload"
3161
- },
3162
- "top+middle:start": {
3163
- "$ref": "#/$defs/ContentPayload"
3164
- },
3165
- "top+middle:center": {
3166
- "$ref": "#/$defs/ContentPayload"
3167
- },
3168
- "top+middle:end": {
3169
- "$ref": "#/$defs/ContentPayload"
3170
- },
3171
- "top+middle:start+center": {
3172
- "$ref": "#/$defs/ContentPayload"
3173
- },
3174
- "top+middle:center+end": {
3175
- "$ref": "#/$defs/ContentPayload"
3176
- },
3177
- "top+middle:start+center+end": {
3178
- "$ref": "#/$defs/ContentPayload"
3179
- },
3180
- "middle+bottom:start": {
3181
- "$ref": "#/$defs/ContentPayload"
3182
- },
3183
- "middle+bottom:center": {
3184
- "$ref": "#/$defs/ContentPayload"
3185
- },
3186
- "middle+bottom:end": {
3187
- "$ref": "#/$defs/ContentPayload"
3188
- },
3189
- "middle+bottom:start+center": {
3190
- "$ref": "#/$defs/ContentPayload"
3191
- },
3192
- "middle+bottom:center+end": {
3193
- "$ref": "#/$defs/ContentPayload"
3194
- },
3195
- "middle+bottom:start+center+end": {
3196
- "$ref": "#/$defs/ContentPayload"
3197
- },
3198
- "top+middle+bottom:start": {
3199
- "$ref": "#/$defs/ContentPayload"
3200
- },
3201
- "top+middle+bottom:center": {
3202
- "$ref": "#/$defs/ContentPayload"
3203
- },
3204
- "top+middle+bottom:end": {
3205
- "$ref": "#/$defs/ContentPayload"
3206
- },
3207
- "top+middle+bottom:start+center": {
3208
- "$ref": "#/$defs/ContentPayload"
3209
- },
3210
- "top+middle+bottom:center+end": {
3211
- "$ref": "#/$defs/ContentPayload"
3212
- },
3213
- "top+middle+bottom:start+center+end": {
3214
- "$ref": "#/$defs/ContentPayload"
3215
- },
3216
3067
  "notes": {
3217
3068
  "type": "string",
3218
3069
  "description": "Speaker notes shown in presenter view.",
@@ -3386,9 +3237,9 @@
3386
3237
  },
3387
3238
  "region": {
3388
3239
  "type": "string",
3389
- "pattern": "^[a-z][a-z0-9-]*$",
3390
- "description": "Pin a root block (slides.N.blocks.I) to a region of the slide's template layout by name. The block goes to that region when the region exists, accepts the block's kind and has room; otherwise the pin is ignored with a warning (opf/region-unknown, opf/region-kind or opf/region-full) and the block is placed by its kind. Blocks without a pin are bound by reading order, role and kind. A pin on a nested block, or on a slide without a template layout, has no effect.",
3391
- "examples": ["notes", "metrics"]
3240
+ "pattern": "^([a-z][a-z0-9-]*|(top|middle|bottom|top\\+middle|middle\\+bottom|top\\+middle\\+bottom)(:(start|center|end|start\\+center|center\\+end|start\\+center\\+end))?|start|center|end|start\\+center|center\\+end|start\\+center\\+end)$",
3241
+ "description": "Where a root block (slides.N.blocks.I) goes. On a slide with a layout: a region of that layout, by name. The block goes to that region when the region exists, accepts the block's kind and has room; otherwise the pin is ignored with a warning (opf/region-unknown, opf/region-kind or opf/region-full) and the block is placed by its kind. Blocks without a pin are bound by reading order, role and kind. On a slide without a layout: a cell of the slide's 3 x 3 grid below the headings, a column band ('start', 'center', 'end', 'start+center', 'center+end', 'start+center+end'), a row band ('top', 'middle', 'bottom', 'top+middle', 'middle+bottom', 'top+middle+bottom') or rows, a colon, then columns ('top:start', 'middle+bottom:center+end'); each half lists adjacent names in reading order. The columns are logical ('start' is the right column in a right-to-left deck). A slide places every block in a cell or none: when one block names a cell, every block of the slide's blocks names one (opf/schema otherwise). Blocks that name the same cell stack in it in source order, as a group's blocks would; two different cells may not overlap. A cell word on a slide with a layout names no region of it (opf/region-unknown), and a layout region's name is never a cell word. A pin on a nested block has no effect.",
3242
+ "examples": ["aside", "media", "start", "top:center+end"]
3392
3243
  },
3393
3244
  "type": {
3394
3245
  "type": "string",
@@ -3448,7 +3299,7 @@
3448
3299
  "maximum": 3
3449
3300
  }
3450
3301
  ],
3451
- "description": "Lay the payload's `items` or `bullets` out in columns. '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, 'auto' takes the count (1, 2 or 3) whose fitted size is largest, preferring fewer columns on a tie, and sets the list in one column only when its lines stay within the prose measure (or it is a type-scale step larger). 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'.",
3302
+ "description": "Lay the payload's `items` or `bullets` out in columns. '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, 'auto' takes the count (1, 2 or 3) whose fitted size is largest, preferring fewer columns on a tie, and sets the list in one column only when its lines stay within the prose measure (or it is a type-scale step larger). 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. Without it, a list of more than 6 entries in a layout region without an arrangement (or with the numbered one) flows into columns as 'auto' does, kept only when they set it at least as large as one column.",
3452
3303
  "examples": ["auto", 2]
3453
3304
  },
3454
3305
  "image": {
@@ -4101,7 +3952,7 @@
4101
3952
  "sentiment": {
4102
3953
  "type": "string",
4103
3954
  "enum": ["positive", "negative", "neutral"],
4104
- "description": "Whether the change is good news. Positive draws the trend arrow and the trend and delta text in green, negative in red and neutral in the neutral text colour, each kept at 4.5:1 contrast or more against the slide background. When absent the colour follows the trend: up is positive, down is negative and flat is neutral. Set it when the direction is not the verdict, for example positive on a falling churn, cost or latency trend. The arrow always keeps the direction of `trend`. Only the trend arrow and the trend and delta text take the colour, so sentiment has no visible effect on a metric without a trend."
3955
+ "description": "Whether the change is good news. Positive draws the trend arrow and the trend and delta text in green, negative in red and neutral in the neutral text color, each kept at 4.5:1 contrast or more against the slide background. When absent the color follows the trend: up is positive, down is negative and flat is neutral. Set it when the direction is not the verdict, for example positive on a falling churn, cost or latency trend. The arrow always keeps the direction of `trend`. Only the trend arrow and the trend and delta text take the color, so sentiment has no visible effect on a metric without a trend."
4105
3956
  },
4106
3957
  "icon": {
4107
3958
  "$ref": "#/$defs/IconReference",
@@ -4256,6 +4107,14 @@
4256
4107
  "minimum": 0,
4257
4108
  "description": "Zero-based nesting level for the list item."
4258
4109
  },
4110
+ "assistant": {
4111
+ "type": "boolean",
4112
+ "description": "org-chart only: the entry is its manager's assistant, written among the reports and drawn beside the line below the manager. See docs/smartart.md."
4113
+ },
4114
+ "overlap": {
4115
+ "type": "boolean",
4116
+ "description": "venn only, on the last entry: it labels where all the sets overlap and is not a set. See docs/smartart.md."
4117
+ },
4259
4118
  "icon": {
4260
4119
  "$ref": "#/$defs/IconReference",
4261
4120
  "description": "An icon drawn on a chip at the start of the entry, in place of its bullet: \"<set>:<name>\" (\"lucide:truck\"), a name from the deck's icons, or an SVG source. Drawn on first-level entries of an unnumbered list. Decoration only: when the slide has no room for the chips without setting text smaller, they are not drawn (finding opf/icon-dropped). See docs/icons.md."
@@ -4636,7 +4495,7 @@
4636
4495
  },
4637
4496
  "highlight": {
4638
4497
  "$ref": "#/$defs/ChartHighlight",
4639
- "description": "Optional emphasis: the series and/or categories that carry the message. The engines draw the highlighted marks in the deck's primary (accent) color and every other mark in a muted neutral derived from the theme (a light grey on a light chart panel, a dim grey on a dark one); there is no color field. A mark is highlighted when its series OR its category is named. Absent keeps today's colors exactly. Supported on column, bar and line charts (series and categories; on a line a category highlight marks that category's points), pie and doughnut charts (categories, one per slice), and area, scatter and radar charts (series); the histogram, pareto, waterfall, funnel, treemap, box-and-whisker, world and combo constructs drop the option with a 'chart-option-adapted' diagnostic, as does a part the type cannot highlight. A name that matches no column or row label is a 'chart-highlight-unknown-name' error."
4498
+ "description": "Optional emphasis: the series and/or categories that carry the message. The engines draw the highlighted marks in the deck's primary (accent) color and every other mark in a muted neutral derived from the theme (a light gray on a light chart panel, a dim gray on a dark one); there is no color field. A mark is highlighted when its series OR its category is named. Absent keeps today's colors exactly. Supported on column, bar and line charts (series and categories; on a line a category highlight marks that category's points), pie and doughnut charts (categories, one per slice), and area, scatter and radar charts (series); the histogram, pareto, waterfall, funnel, treemap, box-and-whisker, world and combo constructs drop the option with a 'chart-option-adapted' diagnostic, as does a part the type cannot highlight. A name that matches no column or row label is a 'chart-highlight-unknown-name' error."
4640
4499
  }
4641
4500
  }
4642
4501
  },
@@ -5246,7 +5105,7 @@
5246
5105
  "layouts": { "hero": { "name": "Hero", "regions": [{ "name": "title" }] } }
5247
5106
  },
5248
5107
  "custom": {
5249
- "layouts": { "q4-special": { "name": "Q4 special", "regions": [{ "name": "title" }, { "name": "chart", "accepts": ["chart"], "flow": "none" }] } }
5108
+ "layouts": { "q4-special": { "name": "Q4 special", "regions": [{ "name": "title" }, { "name": "chart", "accepts": ["chart"], "max": 1 }] } }
5250
5109
  }
5251
5110
  }
5252
5111
  ]
@@ -5267,7 +5126,7 @@
5267
5126
  },
5268
5127
  "colorSchemes": {
5269
5128
  "$ref": "#/$defs/CatalogRecords",
5270
- "description": "Colour-scheme records keyed by id, each with the fields of https://openpresentation.org/schema/opf-color-scheme/v1. Referenced from design.colorScheme and a theme's colorScheme."
5129
+ "description": "Color-scheme records keyed by id, each with the fields of https://openpresentation.org/schema/opf-color-scheme/v1. Referenced from design.colorScheme and a theme's colorScheme."
5271
5130
  },
5272
5131
  "fontSchemes": {
5273
5132
  "$ref": "#/$defs/CatalogRecords",
@@ -5339,7 +5198,7 @@
5339
5198
  "Composition": {
5340
5199
  "type": "object",
5341
5200
  "additionalProperties": false,
5342
- "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.",
5201
+ "description": "Automatic slide and content-group arrangement. Nested content groups arrange their children independently, inheriting only minFontSize, maxFontSize and overflow. Blocks placed in cells (ContentPayload.region on a slide without a layout) 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.",
5343
5202
  "properties": {
5344
5203
  "mode": {
5345
5204
  "type": "string",
@@ -53,7 +53,7 @@
53
53
  "colorScheme": {
54
54
  "type": "string",
55
55
  "pattern": "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",
56
- "description": "The theme's default colour scheme: a reference (a bare id or 'name:id') resolved like design.colorScheme, but in the theme's own catalogs group first.",
56
+ "description": "The theme's default color scheme: a reference (a bare id or 'name:id') resolved like design.colorScheme, but in the theme's own catalogs group first.",
57
57
  "examples": ["cool-horizon", "boost", "burnt-orange"]
58
58
  },
59
59
  "fontScheme": {
@@ -99,7 +99,7 @@
99
99
  "design": {
100
100
  "type": "object",
101
101
  "additionalProperties": false,
102
- "description": "The theme's design defaults (OPF 0.19), so a house style such as boxed content or centred titles is set once: the keys and values of the deck's design for titleAlignment, contentAlignment, contentBox, contentDirection, imageFit and listBullet. Per key the slide's design wins, then the deck's design, then this, then the layout record's design, then the engine default.",
102
+ "description": "The theme's design defaults (OPF 0.19), so a house style such as boxed content or centered titles is set once: the keys and values of the deck's design for titleAlignment, titlePosition, contentAlignment, contentBox, imageFit, listBullet and listStyle. Per key the slide's design wins, then the deck's design, then this, then the layout record's design, then the engine default.",
103
103
  "properties": {
104
104
  "titleAlignment": {
105
105
  "type": "string",
@@ -110,6 +110,14 @@
110
110
  ],
111
111
  "description": "As design.titleAlignment of a deck."
112
112
  },
113
+ "titlePosition": {
114
+ "type": "string",
115
+ "enum": [
116
+ "top",
117
+ "start"
118
+ ],
119
+ "description": "As design.titlePosition of a deck."
120
+ },
113
121
  "contentAlignment": {
114
122
  "type": "string",
115
123
  "enum": [
@@ -123,14 +131,6 @@
123
131
  "type": "boolean",
124
132
  "description": "As design.contentBox of a deck."
125
133
  },
126
- "contentDirection": {
127
- "type": "string",
128
- "enum": [
129
- "horizontal",
130
- "vertical"
131
- ],
132
- "description": "As design.contentDirection of a deck."
133
- },
134
134
  "imageFit": {
135
135
  "type": "string",
136
136
  "enum": [
@@ -86,7 +86,7 @@ interface SymbolFontEncodingTable {
86
86
  };
87
87
  families: SymbolFontEncoding[];
88
88
  }
89
- /** One character of symbol-font text, normalised to its code and Unicode equivalent. */
89
+ /** One character of symbol-font text, normalized to its code and Unicode equivalent. */
90
90
  interface SymbolTextCharacter {
91
91
  /** The character as it appears in the text (one code point). */
92
92
  source: string;
@@ -119,7 +119,7 @@ declare function symbolUnicodeFor(family: string, code: number): string | null;
119
119
  */
120
120
  declare function symbolCodeForUnicode(family: string, text: string): number | null;
121
121
  /**
122
- * Normalise text in a symbol-encoded family character by character: each character's code (or null when
122
+ * Normalize text in a symbol-encoded family character by character: each character's code (or null when
123
123
  * it is not symbol-encoded text) and the Unicode equivalent to draw (or null, with the table's reason).
124
124
  * Unknown families map every character to `{code: null, unicode: null}`.
125
125
  */