@openpresentation/gallery 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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,34 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.35.0 (2026-11-23)
6
+
7
+ - Breaking (0.35, output-changing for Arabic, Persian and Urdu decks): a deck or slide in Arabic, Persian or Urdu that names no font for the Arabic script now uses Times New Roman for headings and Arial for body in the complex-script slot, the fonts PowerPoint's Office theme gives the Arabic script, instead of Arabic Typesetting, whose small Arabic was drawn at about two thirds of the size of the Latin text beside it, in OPF and in PowerPoint. Arabic text in such decks is now drawn at about the Latin size, so it takes more room: lines break differently, and a full slide may paginate. The language vocabulary (`ar`, `fa`, `ur`) and the gallery's `arabic`, `persian` and `urdu` language records name the new font scheme `times-new-roman-arial`; Arabic Typesetting stays a scheme a deck can choose (`design.fontScheme`, or a Language object's `fontScheme`), and nothing preserves the old look for a deck that relied on the default. The PPTX names Times New Roman and Arial in the theme's major and minor complex-script slots and its `Arab` entry, at the composed size. The font policy gains script replacements (`replacement.scripts`, keyed by ISO 15924 code, with its schema and the `FontScriptReplacement` type): runs of that script in the family are measured and drawn with the entry's open face at its own preview-only size factor. Arial and Times New Roman draw Arabic-script runs with Noto Naskh Arabic at 0.96 and 0.95 (the sum of the real fonts' advances over Noto Naskh Arabic's on the Arabic-script corpus; each row records its basis), while their Latin text keeps Arimo and Tinos at the composed size; this also applies to Arabic text in a deck whose scheme is `arial` or `times-new-roman`, which was drawn at full size with Noto Sans Arabic (about 17 percent wider than PowerPoint draws Arial) or Noto Naskh Arabic (about 5 percent wider). Fixed on the way (renderer): a text run with its own `language` lost the size factor when the deck's font scheme itself names the Arabic font (an English deck on `arabic-typesetting` or `sakkal-majalla` with one run marked `ar` drew that run at full size beside Arabic drawn at the factor), because its script profile was built from the families the registry draws rather than the ones the scheme names. `docs/migrations/0.35.md` and `docs/font-fidelity.md` describe the change.
8
+ - Breaking (0.35): two font scheme ids were misspelled and are now spelled as the fonts are. `noto-naksh-arabic` is `noto-naskh-arabic`, and `noto-sans-devangari` is `noto-sans-devanagari`; the `persian`, `hindi`, `marathi` and `nepali` language records name the new ids as their Google Slides scheme. There is no alias: a deck that names an old id gets `opf/unresolved-reference`, whose help suggests the new id, and draws with the engine default until it is corrected. Decks that embed their records are unaffected, and the fonts (Noto Naskh Arabic, Noto Sans Devanagari) are unchanged.
9
+ Drawing change (existing records that draw differently or are gone): `fontSchemes:noto-naksh-arabic`, `fontSchemes:noto-sans-devangari`.
10
+ - Breaking (0.35 layout simplification, step 1; no drawing changes): `layout: "auto"` is removed. A slide without `layout` is automatic composition, and `"auto"` is now an ordinary layout reference: unresolved, it is `opf/unresolved-reference`, which says that OPF 0.35 removed it and offers the safe fix that deletes the key (`remove-layout-auto`); a catalog may now define a layout with the id `auto`. `opf format` no longer drops it, and core's `AUTO_LAYOUT` export (`@openpresentation/opf/composition`) is gone. PPTX import writes no `layout` for OPF's automatic slide layout and for foreign blank, title-only and unmatched custom layouts (`foreignLayoutReference` returns `undefined` for them); Change Layout in PowerPoint from a template to the automatic layout still wins over the stored layout, now by removing it (`layout-changed`). The region role `secondary` is removed: `role` is `primary`, `media` or `supporting`, and the old value fails the layout schema (`opf/catalog-record`). The gallery `dashboard` layout's `kpis` region is `supporting` (it composes as before: its two regions accept disjoint kinds), and the built-in layout records no longer write the default `"role": "primary"`. The editor's layout inspector offers the three roles and accepts `auto` as a custom layout id, and its source hints read a region without `role` as primary (required), as they read the explicit role before.
11
+
12
+ Schema removal: `layout.schema.json:$defs.Region.properties.role` loses the value `secondary`.
13
+ - LH-193 (drawing change): a text alone beside the slide's one chart grows and is centered again, as `design.chartPrimary` drew it before 0.35. On an automatic slide whose `composition` is a weighted row or column (`mode: "row"` or `"column"` with two `weights`) of one chart and one text, the text (a block of its own, or the one block of a plain group) is the lone block of its cell (LH-48): it grows by the type scale's steps while it fills at most two thirds of the cell, a short message on to its display size, and sits in the middle of the cell. The same holds on a layout slide whose body is one chart and one text, the text alone in a single-block region (`max: 1`). The 0.34 example, a chart with "Revenue grew in three of four quarters." beside it, draws the text at 56 px again (0.35.0's replacement drew it at 28 to 32 px at the top of its side). A text that already fills half its cell keeps its size and place, nothing is set smaller, and `fill: false` turns it off. The `drawing` declaration names the built-in layouts whose slides draw differently: `two-column`, `comparison` and `three-column` have single-block regions, so a slide on them with only a chart and a text grows the text (and LH-170's note band under the chart keeps the size the note has without the band). No layout preview changes; every other slide draws as before.
14
+ Drawing change (existing records that draw differently or are gone): `layouts:two-column`, `layouts:comparison`, `layouts:three-column`.
15
+ - Breaking (0.35 layout simplification, step 7): the layout region key `listColumns` is removed. A list of more than 6 entries now flows into up to three columns in any layout region without an `arrangement` (or with the `numbered` one, the agenda's), as `listColumns: "auto"` let it, and keeps the columns only when they set it at least as large as the same list in one column and do not overflow where one column fits, so a default never sets a list smaller. A region made for a list (`list` its first accepted kind, as on `agenda`, `faq` and `list`) keeps the rule `listColumns: "auto"` had (LH-184: columns up to a type-scale step under one column whose lines would run past the reading measure), except that columns that overflow give way to one column that fits at least as large. A region with a diagram or the `steps` sequence keeps the list in one column; the implicit row below a layout's grid too. A list payload's own `columns` (1, 2, 3 or `"auto"`) still chooses. A record that still sets `listColumns` fails the layout schema: `opf validate` reports `opf/catalog-record` at the key, says what replaced it and offers the safe fix `remove:listColumns`; an engine handed the record directly ignores it. The gallery `agenda`, `faq` and `list` records drop the key. The editor's layout inspector has no "List columns" field (`REGION_KEYS` and `LayoutRegion` lose `listColumns`; core's `LayoutRegion` too, and new `regionListColumns(region)` says whether a region's long list may take columns).
16
+
17
+ In a row of cells sized by `composition.weights`, a list whose cell is narrower than its longest word no longer breaks inside the word: the row is rebalanced (the list's cell widens to the narrowest width at which every word holds at its starting size, so at any size it is set at there; an icon list is measured with its chips, and the other cells give that width up while none of their text is set smaller), or, when they cannot, the blocks are stacked in one column, kept only when no block reads smaller there (guarded rule `list-words`). The list is never set smaller to keep its words whole. Known limit: a row too crowded for either, such as weights 3:3:1 with two long paragraphs beside a list of long words (the "Crowded row" slide of `list-words-row.test.mjs`), keeps its weights and still breaks the words; the list keeps its size.
18
+ - Breaking (0.35 layout simplification, step 3; no drawing changes): a layout region says how it draws its content with one key, `arrangement`, which merges `sequence`, `arrangement` and `pyramidDirection`. Its values are `steps` and `numbered` (step badges, formerly `sequence`), `pyramid`, `inverted-pyramid` (formerly `pyramid` with `pyramidDirection: "down"`), `matrix`, `cycle`, `chevrons`, `process` and `vertical-process` (formerly `flow` and `vertical-flow`, now PowerPoint's names Basic Process and Vertical Process), `org-chart`, `hierarchy` and `venn`; `sequence` and `pyramidDirection` are removed, and a record that still uses them or an old value fails the layout schema (`opf/catalog-record`). The `metrics` key is unchanged. The gallery records `agenda`, `agenda-split`, `process`, `flow`, `vertical-flow` and `inverted-pyramid` changed accordingly and draw exactly as before; layout ids are unchanged. The `drawing` declaration is for the gallery stability check, which draws the 0.34 records with the 0.35 engine: there the 0.34 values `flow`, `vertical-flow` and `pyramidDirection` no longer read, so those three records draw a list or an upright pyramid, while the 0.35 records draw as the 0.34 records did. Core's `LayoutRegion` has the one `arrangement` (`regionSequence` and `regionDiagram` read the two families; new `REGION_ARRANGEMENTS`, `SEQUENCE_ARRANGEMENTS`), a composed arrangement's `kind` is the region's value (`process`, `vertical-process`, `inverted-pyramid`; no `pyramidDirection`), and the renderer's SVG trace `data-opf-arrangement` follows it. PPTX export writes the new kinds in its SmartArt and arrangement tags; import maps PowerPoint's Basic Process, Vertical Process and Inverted Pyramid to the new values on the same `flow`, `vertical-flow` and `inverted-pyramid` layouts, and reads the `flow` and `vertical-flow` tags of a 0.34 file. `docs/migrations/0.35.md` lists every old key and value.
19
+ Drawing change (existing records that draw differently or are gone): `layouts:flow`, `layouts:vertical-flow`, `layouts:inverted-pyramid`.
20
+ - Breaking (0.35 layout simplification, step 5; the built-in layouts draw as before): one vocabulary for "row or column". A layout region's `flow` takes the words of `composition.mode`: `auto`, `grid`, `row` and `column`. `row` is new: the region's blocks side by side in one row, one cell each at equal widths, kept as written (no paragraph columns, lead block, list grid or regrouping), as `design.contentDirection: "horizontal"` made a region before. `flow: "none"` is removed: a region of one block says `max: 1`, and a region of `max: 1` keeps every rule `none` had (its block fills it; on a layout with no overflow region, blocks no region had room for join it, up to 6, with no finding, and flow by its `flow`; side-by-side single-block regions of one role share their joined blocks; it is never the default `overflowRegion` nor the region a slide's own `composition` arranges); a custom record's `max: 1` on a flowing region now means the same. `design.contentDirection` and `design.chartPrimary` are removed from the deck, slide, theme and layout `design`, with no alias: composition no longer reads them: the engine composes the slide (a short chart still takes LH-49's track), and a slide that wants a specific arrangement sets its `composition` (`mode`, `weights`), the `arrangement-adapted` finding at `design.chartPrimary` is gone, and `DESIGN_HINT_KEYS`, `THEME_DESIGN_KEYS` and `DesignHints` drop them. Validation reports a document or record that still uses them at the key (`opf/schema`, or `opf/catalog-record` for an embedded record) with what replaced it and a safe fix: `remove:contentDirection` and `remove:chartPrimary` delete the key (marked `changesDrawing`), and `use-max-1` turns a region's `flow: "none"` into `max: 1`. The gallery records that used `none` (23 layouts) say `max: 1`, and `process` says `flow: "row"` instead of `design.contentDirection: "horizontal"`; each draws as before. The gallery example generator no longer writes `contentDirection` and `chartPrimary` (a pptx.gallery dimension), and its 100 decks are regenerated; they draw exactly as before (720 slides: their automatic slides use promoted regions, and the regions of their layout slides already arranged their blocks the way the keys asked). `layoutStructure` writes `body (auto, max 1: …)` for a single-block region. The editor drops the Content direction and Primary chart position controls and design options, and its layout inspector offers the four flows. PPTX export no longer stores the two keys, and import of a 0.34 file does not restore them. The `drawing` declaration is for the gallery stability check, which draws the 0.34 records with the 0.35 engine: there a 0.34 `flow: "none"` no longer reads (the region is a flowing region with room for 6, so the stability fixture's other blocks bind differently), so `timeline`, `metrics`, `chart`, `table` and `hero` draw differently, while the 0.35 records draw as the 0.34 records did (the render template goldens: 702 slides, no PNG or SVG change). `docs/migrations/0.35.md` lists every old key and value.
21
+
22
+ Schema removal: `layout.schema.json:$defs.Region.properties.flow` loses the value `none` (use `max: 1`).
23
+ Drawing change (existing records that draw differently or are gone): `layouts:timeline`, `layouts:metrics`, `layouts:chart`, `layouts:table`, `layouts:hero`.
24
+ - Breaking (0.35 layout simplification, step 4; drawing changes): the `process` layout absorbs `flow`, and `vertical-flow` is renamed `vertical-process`; the gallery has 39 layouts. A `process` slide whose only body content is one 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, now draws PowerPoint's Basic Process (boxes joined by arrows, live SmartArt in the PPTX export where PowerPoint lays it out as the preview does), the drawing the `flow` layout had, in the region's whole cell, at the size its steps would have or larger; where Basic Process cannot hold the entries at that size the list keeps its steps. These `process` slides draw differently: a lone list of 3 to 6 such entries drew a row of chips joined by arrows (a plain list where the chips did not fit one line), and one of 2, 7 or 8 entries drew numbered steps beside badges or a plain list (where badges would have cost a size); all now draw Basic Process, at the same or a larger size (for example 37 px chips become 48 px boxes, and a plain list of six or eight two-word steps at 32 px becomes boxes at 48 or 42.7 px). Longer lists, longer entries, lists beside other blocks and numbered steps with descriptions draw as before, and `vertical-process` draws exactly as `vertical-flow` did. The rule lives in the `steps` arrangement, not in a layout id: any `steps` region draws its short lone list this way, and the chips are gone (`SlideComposition.steps[].form` is `row`, `column` or `tiles`; `STEP_FLOW_MIN`, `STEP_FLOW_MAX` and `STEP_FLOW_CHARACTERS` become `STEP_PROCESS_MIN` 2, `STEP_PROCESS_MAX` 8 and `STEP_PROCESS_CHARACTERS` 24). A slide with `layout: "flow"` or `layout: "vertical-flow"` (or the `default:` forms) resolves nowhere and composes automatically: `opf/unresolved-reference` says OPF 0.35 removed the layout, names its replacement and offers the safe fix `rename-layout`, which writes `process` or `vertical-process`; core adds `renamedLayout(kind, reference)`. PPTX import puts PowerPoint's Basic Process and Vertical Process SmartArt on `process` and `vertical-process`, and a 0.34 file's `flow` and `vertical-flow` slides (stored layout or slide-layout tag) import on the new ids (a stored layout reports `layout-renamed`). The PPTX export writes one slide layout fewer (no `flow`) and names the vertical one "Vertical process". The gallery's `process` description says what a short list draws; the layout sampler drops its `flow` slide (later slides move up one) and the examples, qualification decks, skills and docs use the new ids. `docs/migrations/0.35.md` lists each change.
25
+
26
+ Schema removal: `layout.schema.json:$defs.Region.properties.arrangement` loses the values `flow` and `vertical-flow` (use `process` and `vertical-process`).
27
+ Drawing change (existing records that draw differently or are gone): `layouts:process`, `layouts:flow`, `layouts:vertical-flow`.
28
+ - Breaking (0.35, output-changing for decks in 19 languages): the default font of every script is now one that ships with Windows by default and draws the script at about the size of the Latin text beside it. A deck or slide that names no font for its script uses Nirmala UI for Hindi, Marathi, Nepali, Bengali, Chittagonian, Gujarati, Punjabi (Gurmukhi), Kannada, Malayalam, Odia, Tamil and Telugu (it was Mangal, Shonar Bangla, Vrinda, Shruti, Raavi, Tunga, Kartika, Kalinga, Latha and Gautami), Leelawadee UI for Thai and Khmer (Angsana New, DaunPenh), Segoe UI for Hebrew (David), Ebrima for Amharic (Nyala) and Yu Gothic for Japanese (Meiryo). All the earlier fonts are optional Windows features, so a deck opened on a plain Windows showed a substitute, and several are small on their body. Pashto and Punjabi (Shahmukhi) take Times New Roman and Arial, as Arabic does, instead of Arial Black headings, which have no Arabic letters. The language vocabulary and the gallery's language records name the schemes `nirmala-ui`, `yu-gothic`, `times-new-roman-arial` and three new ones, `leelawadee-ui`, `ebrima` and `segoe-ui-regular`. Every earlier default stays a scheme a deck can choose, and nothing preserves the old look for a deck that relied on one. The PPTX names the new font in the theme's slot for the script and in its script entry. OPF bundles none of these fonts: the font policy names the open face that previews each script, with a preview-only size factor measured as the sum of the real font's shaped advances over the open face's (Noto Sans Bengali 1.08, Gujarati 1.13, Gurmukhi 1.08, Kannada 1.17, Malayalam 1.13, Oriya 0.98, Tamil 1.04, Telugu 1.17, Khmer 1.19, Hebrew 1.03 and Ethiopic 1.06 as script replacements; Noto Sans Thai 0.96 on the new Leelawadee UI row; Devanagari keeps 1.07). A script of the Latin slot (Ethiopic) takes its factor from the family its theme entry names. In a read-only PowerPoint check of one slide per language, PowerPoint broke every line at the same word as OPF in all 17 languages that changed font.
29
+ - Breaking (0.35 layout simplification, step 2; no drawing changes): the built-in layouts name their body regions with seven standard words, `body` (the main content), `lead` (an opening block above it), `aside` (supporting content beside or under it), `media` (a picture or video), and `first`, `second` and `third` (parallel columns); `title` and `subtitle` and every role are unchanged. 32 gallery layout records are renamed (for example chart-beside's `chart` and `notes` are `body` and `aside`, comparison's `verdict` is `aside`, dashboard's `kpis` and `charts` are `lead` and `body`); they draw exactly as before, and `docs/migrations/0.35.md` lists every old and new name. A block pinned to a 0.34 name is reported as `opf/region-unknown` and binds by kind. Core's closing-note rule (LH-170) reads the `aside` of a layout that also has a `first` region as its verdict, where it read a region named `verdict`. PPTX export names the placeholders of a built-in layout and its `OPF_LAYOUT_V1` region map after the new names; import of a 0.34 file keeps a restored old pin (reported, bound by kind) and pins no block whose placeholder the tag names by an old region. The editor's source hints for a built-in region now list the keys of the kinds it accepts, since no built-in region is named like a slide key. The layout sampler, the gallery examples and the other example decks use the new names (the sampler keeps one pin, on its table slide, where a pin keeps the layout's composition).
30
+ - Breaking (0.35 layout simplification, step 6): new design key `titlePosition`, `top` (the default: the heading group above the body) or `start`: the tag, title and subtitle beside the body, in a column of two fifths of the content width on the reading side (the right in a right-to-left deck; `design.mirror` swaps it), centered down the column at the title's role size. It resolves like every shared design key (the slide, the deck, the theme, the layout record, then `top`) and works on any layout and on an automatic slide: on a template the rows that hold only headings give way and the title column runs beside the body regions, which keep their own grid (core `titleBesideTemplate`, `TITLE_BESIDE_SHARE` 2 : 3; a `subtitle` region joins the title's group; blocks no region takes still sit below, across the slide; a record whose title already shares a row with a body region keeps its placement); an automatic slide composes its body beside the column. A cover, a slide with promoted regions, a portrait canvas and a slide that LH-83 recomposes as the automatic grid keep the title on top. The gallery's `cycle`, `matrix` and `vertical-process` become column records with `design.titlePosition: "start"` and draw exactly as before on a landscape canvas (the render template goldens: every remaining slide PNG- and SVG-identical; the example corpus: identical except the layout sampler's slide 4); a deck or slide that sets `titlePosition: "top"` now puts their title on top, and so does a portrait canvas, where the 0.34 records squeezed the diagram beside the title (it now draws larger under it). `agenda-split` is removed (38 layouts; the `drawing` declaration is the removed id): it is `agenda` with `titlePosition: "start"`. A slide with `layout: "agenda-split"` resolves nowhere and composes automatically; `opf/unresolved-reference` says what replaced it and offers the safe fix `rename-layout`, which writes `agenda` and adds the slide's `design.titlePosition: "start"` (core `renamedLayout` and the new `renamedLayoutTitlePosition`). The layout sampler's `agenda-split` slide is now an automatic slide with its title beside its list. The editor adds the Title position control (design option `titlePosition`, deck and slide). PPTX export writes a record's `start` as a slide layout whose title placeholder is the start column, a slide's own `start` as its title's explicit position, stores `titlePosition` in the document and slide records, writes one slide layout fewer (no Agenda beside), and imports a 0.34 file's `agenda-split` slide (stored layout or layout tag) on `agenda` with `titlePosition: "start"`. `docs/migrations/0.35.md` lists each change.
31
+ Drawing change (existing records that draw differently or are gone): `layouts:agenda-split`.
32
+
5
33
  ## 0.34.2 (2026-11-20)
6
34
 
7
35
  - The Lucide icon set records its former icon names (`renamed`, from the aliases `lucide-static` ships: 304 of them, about 10.5 KB), read from the set index the lazy loader already fetches. `opf/icon-unknown` for an old name such as `lucide:triangle-alert` or `lucide:alert-triangle` now says the icon was renamed and to write `lucide:triangle-exclamation-point`, suggests it first and offers the replace fix, without loading any icon or keywords. An old name still does not draw (OPF has one name for each icon). `search_icons` (MCP) and the editor icon search find a renamed icon by its former name. Tabler ships no rename list.
package/README.md CHANGED
@@ -74,8 +74,7 @@ The licenses are in `THIRD-PARTY-NOTICES.md`. See [icons](https://github.com/Ope
74
74
  ## Layouts
75
75
 
76
76
  A slide names a layout by intent; its content flows into the layout's regions, so no layout fixes a block count.
77
- Variants are design settings on the slide or the deck, not layout ids: cards (`design.contentBox`), one row or one
78
- column (`contentDirection`), title and content alignment (`titleAlignment`, `contentAlignment`), picture fit
77
+ Variants are design settings on the slide or the deck, not layout ids: cards (`design.contentBox`), title and content alignment (`titleAlignment`, `contentAlignment`), picture fit
79
78
  (`imageFit`) and image bullets (`listBullet`), which a theme can also set, and a mirrored side (`mirror`). A slide with no layout composes
80
79
  automatically. A deck's own layouts are records of the same schema under `catalogs.custom.layouts`.
81
80
 
@@ -85,7 +84,6 @@ automatically. A deck's own layouts are records of the same schema under `catalo
85
84
  | `cover` | The opening slide: title, subtitle and an optional picture. |
86
85
  | `section` | A divider between parts: the section title and an optional subtitle. |
87
86
  | `agenda` | What the talk covers: the parts, as one list that flows into columns when long. |
88
- | `agenda-split` | A concise agenda beside its title and introduction. |
89
87
  | `statement` | One message, large and alone. |
90
88
  | `closing` | The last slide: thanks, the call to action and contact details. |
91
89
  | **Text** | |
@@ -104,8 +102,7 @@ automatically. A deck's own layouts are records of the same schema under `catalo
104
102
  | `matrix` | Four parts of a whole, as the quadrants of a square beside the title. |
105
103
  | `cycle` | Steps that repeat, as a loop of nodes with arrows beside the title. |
106
104
  | `chevrons` | Stages in order, as a row of chevrons. |
107
- | `flow` | Steps in order, as boxes joined by arrows in one row. |
108
- | `vertical-flow` | Steps in order, as boxes joined by arrows in a column beside the title. |
105
+ | `vertical-process` | Steps in order, as boxes joined by arrows in a column beside the title. |
109
106
  | **Numbers** | |
110
107
  | `metrics` | One to six headline numbers, with an optional note. |
111
108
  | `scorecard` | Metrics with commentary or status, as cards. |
@@ -132,7 +129,7 @@ slides compose automatically, unless the deck embeds the old record.
132
129
 
133
130
  A layout record lays its content out with `direction` and an ordered `regions` list. `direction` (`"row"` or `"column"`,
134
131
  default `"column"`) says whether the list runs side by side or top to bottom. Each entry is a **region** (`name`, an
135
- optional `size`, and the rules `accepts`, `role`, `flow`, `max`, `bleed`, `listColumns`, `anchor`, `empty`) or a **split**
132
+ optional `size`, and the rules `accepts`, `role`, `flow`, `max`, `bleed`, `anchor`, `empty`) or a **split**
136
133
  (`direction`, `regions`, an optional `size`) that nests another list, up to three levels. `size` is a weight (default 1):
137
134
  siblings share their parent's length in proportion; `"auto"` is the height the content needs and is allowed only in a
138
135
  column. `title` and `subtitle` are the heading regions and take only `size`. An `anchor` on the record or on a split
@@ -150,8 +147,8 @@ applies to every region under it unless the region sets its own, and an omitted
150
147
  "direction": "row",
151
148
  "size": 2,
152
149
  "regions": [
153
- { "name": "lead", "accepts": ["text", "quote", "metric"], "role": "primary", "flow": "none" },
154
- { "name": "media", "accepts": ["image", "video"], "role": "media", "flow": "none" }
150
+ { "name": "lead", "accepts": ["text", "quote", "metric"], "role": "primary", "max": 1 },
151
+ { "name": "media", "accepts": ["image", "video"], "role": "media", "max": 1 }
155
152
  ]
156
153
  },
157
154
  { "name": "support", "size": 1, "accepts": ["text", "list", "metric", "group"], "role": "supporting", "flow": "grid" }
@@ -178,7 +175,7 @@ The stability check enforces the rule (`pnpm check:stability`, `scripts/gallery-
178
175
  on every pull request that touches the records or the engines. The baseline is the `latest` published release. For every
179
176
  layout, theme, color scheme and font scheme both releases have, it draws a fixture deck with the workspace
180
177
  `@openpresentation/opf-render`, once per release: for a layout, a slide with sample content in every region (three blocks in a
181
- flowing region, one in a `none` region) and a slide with every region empty, which exercises collapse; for a design record, a
178
+ flowing region, one in a region of `max: 1`) and a slide with every region empty, which exercises collapse; for a design record, a
182
179
  sample deck. SVG bytes are compared first; a mismatch is rasterized to count the pixels that differ. A changed drawing or a
183
180
  removed id that no fragment declares fails; a declared id that did not change warns. New ids pass.
184
181