@openpresentation/opf 0.34.2 → 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 (89) hide show
  1. package/README.md +6 -6
  2. package/dist/browser.js +19 -19
  3. package/dist/{catalog-refs-wtuudZTe.d.ts → catalog-refs-BgotJhR5.d.ts} +105 -95
  4. package/dist/{catalog-schemas-CSxuFtsu.d.ts → catalog-schemas-BX-VEc5Q.d.ts} +1 -1
  5. package/dist/{chunk-RM4Z7ZSW.js → chunk-2GCTKQDD.js} +4 -4
  6. package/dist/{chunk-VI7VWDTN.js → chunk-3KPTVK77.js} +75 -283
  7. package/dist/{chunk-AQ3WR3H7.js → chunk-3ZTKRX7F.js} +4 -6
  8. package/dist/{chunk-IDYYLJCQ.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-V4G3BYPY.js → chunk-7KUUIL7W.js} +7 -7
  12. package/dist/{chunk-PHOSM2RA.js → chunk-ARPMSD7V.js} +1 -1
  13. package/dist/{chunk-UKI43JE6.js → chunk-GGN3NQDK.js} +1 -1
  14. package/dist/{chunk-XLXCXEVF.js → chunk-GKUAVSXU.js} +3 -10
  15. package/dist/{chunk-HX4HEJB4.js → chunk-HORPH6O7.js} +7 -6
  16. package/dist/{chunk-KJFCHCWV.js → chunk-JQNT37IO.js} +4 -13
  17. package/dist/{chunk-WBPXRUZT.js → chunk-KNMMEE67.js} +795 -467
  18. package/dist/{chunk-IGT4523S.js → chunk-LDLLZQPP.js} +706 -432
  19. package/dist/{chunk-6MSH3KCZ.js → chunk-MS2LPR7F.js} +1 -5
  20. package/dist/{chunk-NMZCPZ3R.js → chunk-MVPQEMCP.js} +97 -15
  21. package/dist/{chunk-P2X4BBW2.js → chunk-NPRNWPP4.js} +1 -1
  22. package/dist/{chunk-EQCZ2SFD.js → chunk-P2ACZJUL.js} +6 -6
  23. package/dist/chunk-SEC4IOOS.js +1 -0
  24. package/dist/{chunk-VVPPMHP6.js → chunk-VMPOCXTE.js} +5 -17
  25. package/dist/{chunk-MDAXXFAY.js → chunk-ZZWX4W2G.js} +2 -2
  26. package/dist/{composition-DF07Ha4R.d.ts → composition-BmJfljJl.d.ts} +198 -114
  27. package/dist/composition.d.ts +2 -2
  28. package/dist/composition.js +1 -1
  29. package/dist/{conversion-52ki0lfZ.d.ts → conversion-BbXhlurO.d.ts} +7 -7
  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-C3EsoHC3.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 +39 -39
  44. package/dist/examples.js +6336 -8170
  45. package/dist/{finding-l9dlQ2NF.d.ts → finding-mcHslZLA.d.ts} +6 -2
  46. package/dist/font-policy.d.ts +16 -2
  47. package/dist/font-policy.js +1 -1
  48. package/dist/format.js +2 -2
  49. package/dist/ids.d.ts +2 -2
  50. package/dist/ids.js +4 -4
  51. package/dist/index.d.ts +125 -27
  52. package/dist/index.js +24 -23
  53. package/dist/markdown.d.ts +1 -1
  54. package/dist/markdown.js +8 -8
  55. package/dist/node-engine.d.ts +6 -6
  56. package/dist/node-engine.js +21 -21
  57. package/dist/{pagination-Do7vNgU-.d.ts → pagination-C0FPjO29.d.ts} +4 -4
  58. package/dist/pagination.d.ts +3 -3
  59. package/dist/pagination.js +4 -4
  60. package/dist/patch.d.ts +4 -4
  61. package/dist/patch.js +3 -3
  62. package/dist/precompiled.js +2 -2
  63. package/dist/{presentation-ANs2WkaS.d.ts → presentation-Dx-kZC8Y.d.ts} +25 -81
  64. package/dist/repo-readme.js +1 -1
  65. package/dist/schema-engine-ajv.js +1 -1
  66. package/dist/schema-engine-precompiled.js +2 -2
  67. package/dist/schema.d.ts +5 -7
  68. package/dist/schema.js +3 -3
  69. package/dist/schemas.js +1 -1
  70. package/dist/source.js +10 -10
  71. package/dist/spec/reference/engine-defaults.json +1 -1
  72. package/dist/spec/reference/engine-vocabularies.json +43 -43
  73. package/dist/spec/reference/font-policy.json +114 -2
  74. package/dist/spec/reference/font-policy.schema.json +45 -1
  75. package/dist/spec/schemas/color-scheme.schema.json +2 -2
  76. package/dist/spec/schemas/finding.schema.json +2 -1
  77. package/dist/spec/schemas/layout.schema.json +27 -85
  78. package/dist/spec/schemas/opf.schema.json +26 -175
  79. package/dist/spec/schemas/theme.schema.json +10 -10
  80. package/dist/symbol-font-encodings.d.ts +2 -2
  81. package/dist/types.d.ts +74 -86
  82. package/dist/{validation-types-BNS41nzb.d.ts → validation-types-DKIe1RQW.d.ts} +5 -5
  83. package/dist/validator.d.ts +5 -7
  84. package/dist/validator.js +3 -3
  85. package/dist/yaml.d.ts +1 -1
  86. package/dist/yaml.js +7 -7
  87. package/package.json +5 -5
  88. package/dist/chunk-HSXWDXKM.js +0 -1
  89. package/dist/conversion-F3HSCFOV.js +0 -25
@@ -4,7 +4,7 @@ var presentation = {
4
4
  "$id": "https://openpresentation.org/schema/opf/v1",
5
5
  "$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.",
6
6
  "title": "Presentation",
7
- "description": "Open-source JSON format for describing PowerPoint presentations. Agents describe narratives, content, audience, reusable assets, and design \u2014 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.",
7
+ "description": "Open-source JSON format for describing PowerPoint presentations. Agents describe narratives, content, audience, reusable assets, and design \u2014 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.",
8
8
  "type": "object",
9
9
  "required": [
10
10
  "slides"
@@ -760,7 +760,7 @@ var presentation = {
760
760
  "ltr",
761
761
  "rtl"
762
762
  ],
763
- "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."
763
+ "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."
764
764
  },
765
765
  "script": {
766
766
  "type": "string",
@@ -1085,7 +1085,7 @@ var presentation = {
1085
1085
  },
1086
1086
  "Socials": {
1087
1087
  "type": "object",
1088
- "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.",
1088
+ "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.",
1089
1089
  "additionalProperties": {
1090
1090
  "type": "string",
1091
1091
  "description": "Handle or URL for the platform identified by the property key."
@@ -1125,7 +1125,7 @@ var presentation = {
1125
1125
  "properties": {
1126
1126
  "theme": {
1127
1127
  "$ref": "#/$defs/CatalogReference",
1128
- "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.",
1128
+ "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.",
1129
1129
  "examples": [
1130
1130
  "minimal",
1131
1131
  "classic",
@@ -1142,7 +1142,7 @@ var presentation = {
1142
1142
  "$ref": "#/$defs/ColorScheme"
1143
1143
  }
1144
1144
  ],
1145
- "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.",
1145
+ "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.",
1146
1146
  "examples": [
1147
1147
  "cool-horizon",
1148
1148
  "boost",
@@ -1337,6 +1337,14 @@ var presentation = {
1337
1337
  ],
1338
1338
  "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."
1339
1339
  },
1340
+ "titlePosition": {
1341
+ "type": "string",
1342
+ "enum": [
1343
+ "top",
1344
+ "start"
1345
+ ],
1346
+ "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."
1347
+ },
1340
1348
  "contentAlignment": {
1341
1349
  "type": "string",
1342
1350
  "enum": [
@@ -1350,25 +1358,6 @@ var presentation = {
1350
1358
  "type": "boolean",
1351
1359
  "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."
1352
1360
  },
1353
- "contentDirection": {
1354
- "type": "string",
1355
- "enum": [
1356
- "horizontal",
1357
- "vertical"
1358
- ],
1359
- "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."
1360
- },
1361
- "chartPrimary": {
1362
- "type": "string",
1363
- "enum": [
1364
- "none",
1365
- "top",
1366
- "bottom",
1367
- "start",
1368
- "end"
1369
- ],
1370
- "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."
1371
- },
1372
1361
  "imageFit": {
1373
1362
  "type": "string",
1374
1363
  "enum": [
@@ -1398,7 +1387,7 @@ var presentation = {
1398
1387
  },
1399
1388
  "mirror": {
1400
1389
  "type": "boolean",
1401
- "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."
1390
+ "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."
1402
1391
  }
1403
1392
  }
1404
1393
  },
@@ -1418,7 +1407,7 @@ var presentation = {
1418
1407
  },
1419
1408
  "id": {
1420
1409
  "$ref": "#/$defs/CatalogReference",
1421
- "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.",
1410
+ "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.",
1422
1411
  "examples": [
1423
1412
  "cool-horizon",
1424
1413
  "boost",
@@ -2550,7 +2539,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
2550
2539
  "ImageBackground": {
2551
2540
  "type": "object",
2552
2541
  "additionalProperties": false,
2553
- "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.",
2542
+ "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.",
2554
2543
  "required": [
2555
2544
  "type",
2556
2545
  "src"
@@ -2591,7 +2580,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
2591
2580
  "stretch",
2592
2581
  "tile"
2593
2582
  ],
2594
- "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'."
2583
+ "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'."
2595
2584
  },
2596
2585
  "focus": {
2597
2586
  "$ref": "#/$defs/ImageFocus",
@@ -4219,7 +4208,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
4219
4208
  },
4220
4209
  "Slide": {
4221
4210
  "type": "object",
4222
- "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.",
4211
+ "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'.",
4223
4212
  "additionalProperties": false,
4224
4213
  "dependentSchemas": {
4225
4214
  "caption": {
@@ -4313,12 +4302,11 @@ Names keep content theme-portable: re-theming the deck updates every named refer
4313
4302
  },
4314
4303
  "layout": {
4315
4304
  "$ref": "#/$defs/CatalogReference",
4316
- "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.",
4305
+ "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.",
4317
4306
  "examples": [
4318
4307
  "cover",
4319
4308
  "pillars",
4320
4309
  "chart-beside",
4321
- "auto",
4322
4310
  "acme:hero"
4323
4311
  ]
4324
4312
  },
@@ -4548,150 +4536,6 @@ Names keep content theme-portable: re-theming the deck updates every named refer
4548
4536
  "$ref": "#/$defs/SlideDesign",
4549
4537
  "description": "Slide-level design applied on top of the deck-wide design."
4550
4538
  },
4551
- "start": {
4552
- "$ref": "#/$defs/ContentPayload"
4553
- },
4554
- "center": {
4555
- "$ref": "#/$defs/ContentPayload"
4556
- },
4557
- "end": {
4558
- "$ref": "#/$defs/ContentPayload"
4559
- },
4560
- "start+center": {
4561
- "$ref": "#/$defs/ContentPayload"
4562
- },
4563
- "center+end": {
4564
- "$ref": "#/$defs/ContentPayload"
4565
- },
4566
- "start+center+end": {
4567
- "$ref": "#/$defs/ContentPayload"
4568
- },
4569
- "top": {
4570
- "$ref": "#/$defs/ContentPayload"
4571
- },
4572
- "middle": {
4573
- "$ref": "#/$defs/ContentPayload"
4574
- },
4575
- "bottom": {
4576
- "$ref": "#/$defs/ContentPayload"
4577
- },
4578
- "top+middle": {
4579
- "$ref": "#/$defs/ContentPayload"
4580
- },
4581
- "middle+bottom": {
4582
- "$ref": "#/$defs/ContentPayload"
4583
- },
4584
- "top+middle+bottom": {
4585
- "$ref": "#/$defs/ContentPayload"
4586
- },
4587
- "top:start": {
4588
- "$ref": "#/$defs/ContentPayload"
4589
- },
4590
- "top:center": {
4591
- "$ref": "#/$defs/ContentPayload"
4592
- },
4593
- "top:end": {
4594
- "$ref": "#/$defs/ContentPayload"
4595
- },
4596
- "top:start+center": {
4597
- "$ref": "#/$defs/ContentPayload"
4598
- },
4599
- "top:center+end": {
4600
- "$ref": "#/$defs/ContentPayload"
4601
- },
4602
- "top:start+center+end": {
4603
- "$ref": "#/$defs/ContentPayload"
4604
- },
4605
- "middle:start": {
4606
- "$ref": "#/$defs/ContentPayload"
4607
- },
4608
- "middle:center": {
4609
- "$ref": "#/$defs/ContentPayload"
4610
- },
4611
- "middle:end": {
4612
- "$ref": "#/$defs/ContentPayload"
4613
- },
4614
- "middle:start+center": {
4615
- "$ref": "#/$defs/ContentPayload"
4616
- },
4617
- "middle:center+end": {
4618
- "$ref": "#/$defs/ContentPayload"
4619
- },
4620
- "middle:start+center+end": {
4621
- "$ref": "#/$defs/ContentPayload"
4622
- },
4623
- "bottom:start": {
4624
- "$ref": "#/$defs/ContentPayload"
4625
- },
4626
- "bottom:center": {
4627
- "$ref": "#/$defs/ContentPayload"
4628
- },
4629
- "bottom:end": {
4630
- "$ref": "#/$defs/ContentPayload"
4631
- },
4632
- "bottom:start+center": {
4633
- "$ref": "#/$defs/ContentPayload"
4634
- },
4635
- "bottom:center+end": {
4636
- "$ref": "#/$defs/ContentPayload"
4637
- },
4638
- "bottom:start+center+end": {
4639
- "$ref": "#/$defs/ContentPayload"
4640
- },
4641
- "top+middle:start": {
4642
- "$ref": "#/$defs/ContentPayload"
4643
- },
4644
- "top+middle:center": {
4645
- "$ref": "#/$defs/ContentPayload"
4646
- },
4647
- "top+middle:end": {
4648
- "$ref": "#/$defs/ContentPayload"
4649
- },
4650
- "top+middle:start+center": {
4651
- "$ref": "#/$defs/ContentPayload"
4652
- },
4653
- "top+middle:center+end": {
4654
- "$ref": "#/$defs/ContentPayload"
4655
- },
4656
- "top+middle:start+center+end": {
4657
- "$ref": "#/$defs/ContentPayload"
4658
- },
4659
- "middle+bottom:start": {
4660
- "$ref": "#/$defs/ContentPayload"
4661
- },
4662
- "middle+bottom:center": {
4663
- "$ref": "#/$defs/ContentPayload"
4664
- },
4665
- "middle+bottom:end": {
4666
- "$ref": "#/$defs/ContentPayload"
4667
- },
4668
- "middle+bottom:start+center": {
4669
- "$ref": "#/$defs/ContentPayload"
4670
- },
4671
- "middle+bottom:center+end": {
4672
- "$ref": "#/$defs/ContentPayload"
4673
- },
4674
- "middle+bottom:start+center+end": {
4675
- "$ref": "#/$defs/ContentPayload"
4676
- },
4677
- "top+middle+bottom:start": {
4678
- "$ref": "#/$defs/ContentPayload"
4679
- },
4680
- "top+middle+bottom:center": {
4681
- "$ref": "#/$defs/ContentPayload"
4682
- },
4683
- "top+middle+bottom:end": {
4684
- "$ref": "#/$defs/ContentPayload"
4685
- },
4686
- "top+middle+bottom:start+center": {
4687
- "$ref": "#/$defs/ContentPayload"
4688
- },
4689
- "top+middle+bottom:center+end": {
4690
- "$ref": "#/$defs/ContentPayload"
4691
- },
4692
- "top+middle+bottom:start+center+end": {
4693
- "$ref": "#/$defs/ContentPayload"
4694
- },
4695
4539
  "notes": {
4696
4540
  "type": "string",
4697
4541
  "description": "Speaker notes shown in presenter view.",
@@ -4910,11 +4754,13 @@ Names keep content theme-portable: re-theming the deck updates every named refer
4910
4754
  },
4911
4755
  "region": {
4912
4756
  "type": "string",
4913
- "pattern": "^[a-z][a-z0-9-]*$",
4914
- "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.",
4757
+ "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)$",
4758
+ "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.",
4915
4759
  "examples": [
4916
- "notes",
4917
- "metrics"
4760
+ "aside",
4761
+ "media",
4762
+ "start",
4763
+ "top:center+end"
4918
4764
  ]
4919
4765
  },
4920
4766
  "type": {
@@ -5031,7 +4877,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
5031
4877
  "maximum": 3
5032
4878
  }
5033
4879
  ],
5034
- "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'.",
4880
+ "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.",
5035
4881
  "examples": [
5036
4882
  "auto",
5037
4883
  2
@@ -5967,7 +5813,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
5967
5813
  "negative",
5968
5814
  "neutral"
5969
5815
  ],
5970
- "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."
5816
+ "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."
5971
5817
  },
5972
5818
  "icon": {
5973
5819
  "$ref": "#/$defs/IconReference",
@@ -6842,7 +6688,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
6842
6688
  },
6843
6689
  "highlight": {
6844
6690
  "$ref": "#/$defs/ChartHighlight",
6845
- "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."
6691
+ "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."
6846
6692
  }
6847
6693
  }
6848
6694
  },
@@ -7857,7 +7703,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
7857
7703
  "accepts": [
7858
7704
  "chart"
7859
7705
  ],
7860
- "flow": "none"
7706
+ "max": 1
7861
7707
  }
7862
7708
  ]
7863
7709
  }
@@ -7884,7 +7730,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
7884
7730
  },
7885
7731
  "colorSchemes": {
7886
7732
  "$ref": "#/$defs/CatalogRecords",
7887
- "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."
7733
+ "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."
7888
7734
  },
7889
7735
  "fontSchemes": {
7890
7736
  "$ref": "#/$defs/CatalogRecords",
@@ -8000,7 +7846,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
8000
7846
  "Composition": {
8001
7847
  "type": "object",
8002
7848
  "additionalProperties": false,
8003
- "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.",
7849
+ "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.",
8004
7850
  "properties": {
8005
7851
  "mode": {
8006
7852
  "type": "string",
@@ -8565,7 +8411,7 @@ var theme = {
8565
8411
  "colorScheme": {
8566
8412
  "type": "string",
8567
8413
  "pattern": "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",
8568
- "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.",
8414
+ "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.",
8569
8415
  "examples": [
8570
8416
  "cool-horizon",
8571
8417
  "boost",
@@ -8653,7 +8499,7 @@ var theme = {
8653
8499
  "design": {
8654
8500
  "type": "object",
8655
8501
  "additionalProperties": false,
8656
- "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.",
8502
+ "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.",
8657
8503
  "properties": {
8658
8504
  "titleAlignment": {
8659
8505
  "type": "string",
@@ -8664,6 +8510,14 @@ var theme = {
8664
8510
  ],
8665
8511
  "description": "As design.titleAlignment of a deck."
8666
8512
  },
8513
+ "titlePosition": {
8514
+ "type": "string",
8515
+ "enum": [
8516
+ "top",
8517
+ "start"
8518
+ ],
8519
+ "description": "As design.titlePosition of a deck."
8520
+ },
8667
8521
  "contentAlignment": {
8668
8522
  "type": "string",
8669
8523
  "enum": [
@@ -8677,14 +8531,6 @@ var theme = {
8677
8531
  "type": "boolean",
8678
8532
  "description": "As design.contentBox of a deck."
8679
8533
  },
8680
- "contentDirection": {
8681
- "type": "string",
8682
- "enum": [
8683
- "horizontal",
8684
- "vertical"
8685
- ],
8686
- "description": "As design.contentDirection of a deck."
8687
- },
8688
8534
  "imageFit": {
8689
8535
  "type": "string",
8690
8536
  "enum": [
@@ -8868,7 +8714,7 @@ var layout = {
8868
8714
  "$id": "https://openpresentation.org/schema/opf-layout/v2",
8869
8715
  "$comment": "The v2 in the $id marks the pre-1.0 line of this schema, not a frozen contract: it 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.",
8870
8716
  "title": "Slide Layout",
8871
- "description": "Schema for slide-layout records. A layout is one ordered list of regions, declared once, in reading order: 'direction' says whether the record's 'regions' sit side by side (row) or are stacked (column), and each region says which content kinds it takes and how several blocks share it. A split is an entry that nests a second list the other way, which is how a layout gets two dimensions. 'title' and 'subtitle' are reserved heading regions. Engines compile the list into a grid of tracks (the guillotine partition it describes). Slide content stays flat: engines bind a slide's blocks to the regions by reading order, role and kind (bindRegions in @openpresentation/opf), a block may pin itself to a region with 'region', and an empty region collapses into a neighbour. Built-in and custom layouts are records of this one schema; a custom layout is embedded under catalogs.custom.layouts or shipped in a catalog. Documents reference a layout from Slide.layout; a slide without a layout, with layout 'auto', or whose layout resolves nowhere composes automatically.\n\nA document references a record as a bare id or 'name:id' and resolves it in its own catalogs groups first, then in the catalog the host registered for the group's source; engines never fetch a catalog. A published record file carries '$schema' and 'id'; the copy a document embeds under catalogs.<group>.<kind>.<id> carries neither (the key is the id) and no 'x-*' display metadata.",
8717
+ "description": "Schema for slide-layout records. A layout is one ordered list of regions, declared once, in reading order: 'direction' says whether the record's 'regions' sit side by side (row) or are stacked (column), and each region says which content kinds it takes and how several blocks share it. A split is an entry that nests a second list the other way, which is how a layout gets two dimensions. 'title' and 'subtitle' are reserved heading regions. Engines compile the list into a grid of tracks (the guillotine partition it describes). Slide content stays flat: engines bind a slide's blocks to the regions by reading order, role and kind (bindRegions in @openpresentation/opf), a block may pin itself to a region with 'region', and an empty region collapses into a neighbor. Built-in and custom layouts are records of this one schema; a custom layout is embedded under catalogs.custom.layouts or shipped in a catalog. Documents reference a layout from Slide.layout; a slide without a layout, with layout 'auto', or whose layout resolves nowhere composes automatically.\n\nA document references a record as a bare id or 'name:id' and resolves it in its own catalogs groups first, then in the catalog the host registered for the group's source; engines never fetch a catalog. A published record file carries '$schema' and 'id'; the copy a document embeds under catalogs.<group>.<kind>.<id> carries neither (the key is the id) and no 'x-*' display metadata.",
8872
8718
  "type": "object",
8873
8719
  "required": [
8874
8720
  "$schema",
@@ -8885,16 +8731,13 @@ var layout = {
8885
8731
  "id": {
8886
8732
  "type": "string",
8887
8733
  "pattern": "^[a-z][a-z0-9-]*$",
8888
- "description": "The layout's id in its catalog, lowercase kebab-case. Required in a published record file; a document references the record by it (a bare id, or 'name:id' for a named group) and embeds it keyed by it, without this field. 'auto' is reserved: Slide.layout 'auto' is automatic composition, so no catalog may define a layout of that id.",
8734
+ "description": "The layout's id in its catalog, lowercase kebab-case. Required in a published record file; a document references the record by it (a bare id, or 'name:id' for a named group) and embeds it keyed by it, without this field.",
8889
8735
  "examples": [
8890
8736
  "cover",
8891
8737
  "pillars",
8892
8738
  "chart-beside",
8893
8739
  "roadmap-split"
8894
- ],
8895
- "not": {
8896
- "const": "auto"
8897
- }
8740
+ ]
8898
8741
  },
8899
8742
  "name": {
8900
8743
  "type": "string",
@@ -8943,7 +8786,7 @@ var layout = {
8943
8786
  "middle",
8944
8787
  "bottom"
8945
8788
  ],
8946
- "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'."
8789
+ "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' centers 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'."
8947
8790
  },
8948
8791
  "regions": {
8949
8792
  "type": "array",
@@ -8997,7 +8840,7 @@ var layout = {
8997
8840
  "overflowRegion": {
8998
8841
  "type": "string",
8999
8842
  "pattern": "^[a-z][a-z0-9-]*$",
9000
- "description": "The region where content that no region accepts goes, whatever its 'accepts', while it has room; content beyond every region's room is drawn there too, with the warning opf/layout-unplaced. Omitted: the first primary region (in reading order) whose flow is not 'none'."
8843
+ "description": "The region where content that no region accepts goes, whatever its 'accepts', while it has room; content beyond every region's room is drawn there too, with the warning opf/layout-unplaced. Omitted: the first primary region (in reading order) that is not a single-block region ('max': 1)."
9001
8844
  },
9002
8845
  "tags": {
9003
8846
  "type": "array",
@@ -9181,7 +9024,7 @@ var layout = {
9181
9024
  "subtitle"
9182
9025
  ]
9183
9026
  },
9184
- "description": "The region's name, lowercase kebab-case, unique across the whole record. A block targets it with 'region': '<name>'. It may not be 'title' (those are heading regions), 'tag', 'auto' or one of the promoted-region words ('start', 'center', 'end', 'top', 'middle', 'bottom'), so a Markdown block's region= option stays unambiguous: the validate finding opf/layout-region.",
9027
+ "description": "The region's name, lowercase kebab-case, unique across the whole record. A block targets it with 'region': '<name>'. It may not be 'title' (those are heading regions), 'tag', 'auto' or one of the cell words of a slide without a layout ('start', 'center', 'end', 'top', 'middle', 'bottom'), so a block's 'region' (and a Markdown block's region= option) stays unambiguous: the validate finding opf/layout-region.",
9185
9028
  "examples": [
9186
9029
  "main",
9187
9030
  "aside",
@@ -9229,43 +9072,31 @@ var layout = {
9229
9072
  "type": "string",
9230
9073
  "enum": [
9231
9074
  "primary",
9232
- "secondary",
9233
9075
  "media",
9234
9076
  "supporting"
9235
9077
  ],
9236
- "description": "Which content the region wants first. Binding gives a picture (image, video) to a media region first, then primary, secondary, supporting; every other kind to a primary region first, then secondary, supporting, media; of two equal regions the first in reading order fills first. A supporting region receives content only when no primary or secondary region that accepts it has room, or by a pin. Default 'primary'."
9078
+ "description": "Which content the region wants first. Binding gives a picture (image, video) to a media region first, then primary, supporting; every other kind to a primary region first, then supporting, media; of two equal regions the first in reading order fills first. A supporting region receives content only when no primary region that accepts it has room, or by a pin. Default 'primary'. OPF 0.35 removed 'secondary': write 'supporting' (or 'primary' for content that must be bound first); the old value fails the schema as opf/catalog-record."
9237
9079
  },
9238
9080
  "flow": {
9239
9081
  "type": "string",
9240
9082
  "enum": [
9241
- "none",
9083
+ "auto",
9242
9084
  "grid",
9243
- "column",
9244
- "auto"
9085
+ "row",
9086
+ "column"
9245
9087
  ],
9246
- "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'."
9088
+ "description": "How several blocks share the region, in the words of composition.mode: '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); '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 centered in a grid of pictures); 'row' side by side in one row, one cell each at equal widths in reading order, the counterpart of 'column' (the row is kept as written: no paragraph columns, lead block, list grid or regrouping replaces it); '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). A region of one block is 'max': 1, not a flow. OPF 0.35 removed 'none' (write 'max': 1) and design.contentDirection (write 'row' or 'column' here, or composition.mode on an automatic slide). Default 'auto'."
9247
9089
  },
9248
9090
  "max": {
9249
9091
  "type": "integer",
9250
9092
  "minimum": 1,
9251
9093
  "maximum": 12,
9252
- "description": "Blocks the region holds on one slide. Default 1 for flow 'none' (which requires 1), else 6. Content beyond every region's room is drawn in the overflow region with the warning opf/layout-unplaced, and paginate moves it to a continuation slide."
9094
+ "description": "Blocks the region holds on one slide. Default 6. 1 makes a single-block region: its block fills it, and blocks no region had room for still join it, up to 6, arranged by its flow (as 'none' did before OPF 0.35); a single-block region is never the default overflowRegion, nor the region a slide's own composition.mode arranges. Content beyond every region's room is drawn in the overflow region with the warning opf/layout-unplaced, and paginate moves it to a continuation slide."
9253
9095
  },
9254
9096
  "bleed": {
9255
9097
  "type": "boolean",
9256
9098
  "description": "The region's outer edges that lie on the content box's edge extend to the slide edge, as a placed image does. A bled region is never drawn as a card. Default false."
9257
9099
  },
9258
- "listColumns": {
9259
- "oneOf": [
9260
- {
9261
- "const": "auto"
9262
- },
9263
- {
9264
- "const": 1
9265
- }
9266
- ],
9267
- "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."
9268
- },
9269
9100
  "metrics": {
9270
9101
  "type": "string",
9271
9102
  "enum": [
@@ -9274,36 +9105,23 @@ var layout = {
9274
9105
  ],
9275
9106
  "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."
9276
9107
  },
9277
- "sequence": {
9278
- "type": "string",
9279
- "enum": [
9280
- "steps",
9281
- "numbered"
9282
- ],
9283
- "description": "The region lists the steps of a sequence. '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."
9284
- },
9285
9108
  "arrangement": {
9286
9109
  "type": "string",
9287
9110
  "enum": [
9111
+ "steps",
9112
+ "numbered",
9288
9113
  "pyramid",
9114
+ "inverted-pyramid",
9289
9115
  "matrix",
9290
9116
  "cycle",
9291
9117
  "chevrons",
9292
- "flow",
9293
- "vertical-flow",
9118
+ "process",
9119
+ "vertical-process",
9294
9120
  "org-chart",
9295
9121
  "hierarchy",
9296
9122
  "venn"
9297
9123
  ],
9298
- "description": "The region draws its lone list of one level as a diagram (docs/smartart.md), in the first design that holds every entry at one size, the list's role size or larger (up to 1.5 times), never smaller: PowerPoint's own geometry (Basic Pyramid: 1 to 8 entries as stacked levels, the first at the apex; Basic Matrix: exactly four entries as the quadrants of a centered square over a diamond; Basic Cycle: 1 to 8 entries as circles on a ring, the first at the top and the rest clockwise, with an arrow from each to the next, in a frame of the cycle's own proportion centered in the region), which the PPTX export writes as live SmartArt where PowerPoint lays it out as the preview draws it; else OPF's own design (a stepped pyramid with each entry beside its level, four quadrants filling the region, or rounded rectangles on a ring filling the region with an arrow from each to the next). A matrix of other than four entries draws a grid of cards. 'chevrons' (Basic Chevron Process: 1 to 8 entries as a row of chevrons), 'flow' (Basic Process: a row of boxes with arrows between them) and 'vertical-flow' (Vertical Process: a column of boxes with arrows between them), in PowerPoint's geometry where it holds the entries, else OPF's own row or column filling the region. Nodes are filled in the primary color with a 1.5 pt outline in the background color (cards in the card neutral). A cycle's arrows are the primary lightened 40%. A list with nested entries, descriptions, icons or numbering, more than 8 levels or steps, or one no design holds, draws as a list; opf/arrangement-adapted (info) reports the cards and the lists. 'org-chart' and 'hierarchy' take a list whose entry levels form one tree (one root at the first level, each child one level below its parent); a skipped level or a second root keeps the authored list, reported by opf/arrangement-adapted. 'venn' draws 1 to 7 flat sets. These arrangements never draw the list smaller than its own size; whether PowerPoint can edit the result as native shapes and text is decided separately. Absent: the region's content draws as any other."
9299
- },
9300
- "pyramidDirection": {
9301
- "type": "string",
9302
- "enum": [
9303
- "up",
9304
- "down"
9305
- ],
9306
- "description": "For arrangement 'pyramid': 'up' (default) puts the narrow tip first, at the top; 'down' puts the widest level first and the tip at the bottom. Entries retain their authored top-to-bottom order. Both the continuous and stepped designs use shared geometry; downward pyramids export as editable native shapes until live SmartArt is qualified."
9124
+ "description": "What the region draws its content as. 'steps' and 'numbered' draw a sequence; the other values draw a lone list of one level as a diagram (docs/smartart.md). Absent: the region's content draws as any other.\n\n'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 2 to 8 entries of one level, each of one or two words and at most 24 characters, without numbering, descriptions or icons, draws as Basic Process instead (the 'process' drawing below) where it holds every entry at the size the steps would have or larger. '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.\n\nThe diagrams draw in the first design that holds every entry at one size, the list's role size or larger (up to 1.5 times), never smaller: PowerPoint's own geometry (Basic Pyramid: 1 to 8 entries as stacked levels, the first at the apex; Basic Matrix: exactly four entries as the quadrants of a centered square over a diamond; Basic Cycle: 1 to 8 entries as circles on a ring, the first at the top and the rest clockwise, with an arrow from each to the next, in a frame of the cycle's own proportion centered in the region), which the PPTX export writes as live SmartArt where PowerPoint lays it out as the preview draws it; else OPF's own design (a stepped pyramid with each entry beside its level, four quadrants filling the region, or rounded rectangles on a ring filling the region with an arrow from each to the next). 'inverted-pyramid' is the pyramid upside down: the widest level first and the tip at the bottom, the entries still in their authored top-to-bottom order; it exports as editable native shapes. A matrix of other than four entries draws a grid of cards. 'chevrons' (Basic Chevron Process: 1 to 8 entries as a row of chevrons), 'process' (Basic Process: a row of boxes with arrows between them) and 'vertical-process' (Vertical Process: a column of boxes with arrows between them), in PowerPoint's geometry where it holds the entries, else OPF's own row or column filling the region. Nodes are filled in the primary color with a 1.5 pt outline in the background color (cards in the card neutral). A cycle's arrows are the primary lightened 40%. A list with nested entries, descriptions, icons or numbering, more than 8 levels or steps, or one no design holds, draws as a list; opf/arrangement-adapted (info) reports the cards and the lists. 'org-chart' and 'hierarchy' take a list whose entry levels form one tree (one root at the first level, each child one level below its parent); a skipped level or a second root keeps the authored list, reported by opf/arrangement-adapted. 'venn' draws 1 to 7 flat sets. These arrangements never draw the list smaller than its own size; whether PowerPoint can edit the result as native shapes and text is decided separately."
9307
9125
  },
9308
9126
  "anchor": {
9309
9127
  "type": "string",
@@ -9320,30 +9138,11 @@ var layout = {
9320
9138
  "collapse",
9321
9139
  "keep"
9322
9140
  ],
9323
- "description": "What the region does on a slide that gives it no content: 'collapse' (default) joins its cells to a neighbouring area that shares the full length of one of its edges and is not itself empty; 'keep' leaves the space."
9141
+ "description": "What the region does on a slide that gives it no content: 'collapse' (default) joins its cells to a neighboring area that shares the full length of one of its edges and is not itself empty; 'keep' leaves the space."
9324
9142
  }
9325
9143
  },
9326
9144
  "required": [
9327
9145
  "name"
9328
- ],
9329
- "allOf": [
9330
- {
9331
- "if": {
9332
- "required": [
9333
- "pyramidDirection"
9334
- ]
9335
- },
9336
- "then": {
9337
- "required": [
9338
- "arrangement"
9339
- ],
9340
- "properties": {
9341
- "arrangement": {
9342
- "const": "pyramid"
9343
- }
9344
- }
9345
- }
9346
- }
9347
9146
  ]
9348
9147
  },
9349
9148
  "DesignHints": {
@@ -9360,6 +9159,14 @@ var layout = {
9360
9159
  ],
9361
9160
  "description": "Horizontal alignment of the title heading area. Logical, as design.titleAlignment of a deck: 'start' is the edge a paragraph starts on."
9362
9161
  },
9162
+ "titlePosition": {
9163
+ "type": "string",
9164
+ "enum": [
9165
+ "top",
9166
+ "start"
9167
+ ],
9168
+ "description": "Where the heading group sits, as design.titlePosition of a deck: 'top' above the body, or 'start' beside it in a column of two fifths of the content width on the reading side. A record writes its regions under its title and sets 'start' to draw them beside it (the gallery's cycle, matrix and vertical-process do)."
9169
+ },
9363
9170
  "contentAlignment": {
9364
9171
  "type": "string",
9365
9172
  "enum": [
@@ -9373,25 +9180,6 @@ var layout = {
9373
9180
  "type": "boolean",
9374
9181
  "description": "Whether the body regions are drawn inside a visible card or surface."
9375
9182
  },
9376
- "contentDirection": {
9377
- "type": "string",
9378
- "enum": [
9379
- "horizontal",
9380
- "vertical"
9381
- ],
9382
- "description": "Axis along which parallel body content is arranged: 'vertical' is a column, 'horizontal' a row. On a layout slide it turns every flowing region into one row or one column; the slide's own composition.mode, columns and weights rank above it."
9383
- },
9384
- "chartPrimary": {
9385
- "type": "string",
9386
- "enum": [
9387
- "none",
9388
- "top",
9389
- "bottom",
9390
- "start",
9391
- "end"
9392
- ],
9393
- "description": "Where the primary chart sits relative to supporting content on automatic slides. Template layouts express this arrangement with their regions; chartPrimary does not override a template."
9394
- },
9395
9183
  "imageFit": {
9396
9184
  "type": "string",
9397
9185
  "enum": [
@@ -10360,12 +10148,12 @@ var colorScheme = {
10360
10148
  "$schema": {
10361
10149
  "type": "string",
10362
10150
  "const": "https://openpresentation.org/schema/opf-color-scheme/v1",
10363
- "description": "Identifies a published record file as a colour scheme record. Required in a published file; an embedded copy omits it."
10151
+ "description": "Identifies a published record file as a color scheme record. Required in a published file; an embedded copy omits it."
10364
10152
  },
10365
10153
  "id": {
10366
10154
  "type": "string",
10367
10155
  "pattern": "^[a-z][a-z0-9-]*$",
10368
- "description": "The colour scheme's id in its catalog, lowercase kebab-case. Required in a published record file; a document references the record by it (a bare id, or 'name:id' for a named group) and embeds it keyed by it, without this field.",
10156
+ "description": "The color scheme's id in its catalog, lowercase kebab-case. Required in a published record file; a document references the record by it (a bare id, or 'name:id' for a named group) and embeds it keyed by it, without this field.",
10369
10157
  "examples": [
10370
10158
  "cool-horizon",
10371
10159
  "boost",
@@ -11218,7 +11006,11 @@ var finding = {
11218
11006
  },
11219
11007
  "safe": {
11220
11008
  "type": "boolean",
11221
- "description": "True when applying the fix cannot change what the content says or how it looks beyond the repair, such as switching a failing colour to the one the theme chose. False fixes need a deliberate choice."
11009
+ "description": "True when the fix is the one repair the finding needs and can be applied without a person: it loses no content, what it writes is valid, and it changes nothing beyond the repair except what `changesDrawing` says, such as a removed key's mechanical replacement. False fixes need a deliberate choice, such as a new text color. Only a `patch` fix is applied; a `focus` fix names a field to write whatever `safe` says."
11010
+ },
11011
+ "changesDrawing": {
11012
+ "type": "boolean",
11013
+ "description": "True when applying this patch can change how a slide draws: the repair does not keep the drawing of the release that wrote the deck, such as a removed layout's replacement whose title column is narrower. Absent or false when the fixed deck draws as before. Hosts list such fixes, even safe ones, as changing the drawing."
11222
11014
  },
11223
11015
  "patch": {
11224
11016
  "type": "array",