@openpresentation/gallery 0.36.0 → 0.37.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,22 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.37.0 (2026-11-27)
6
+
7
+ - A chart can shade ranges of its value axis behind the data: `chart.bands`, one to six `{ to, label?, color? }` (`ChartBand`), each running from the previous band's `to` (the first from the axis minimum) to its own, in the scheme's neutrals (the text color mixed into the surface in OKLab to a contrast of 1.75, 1.45 and 1.25 against it, lowest band first) or a light tint of a scheme color. Bar, column, line and area charts and their stacked forms draw them, the last `to` extends an automatic axis, and a band's label is written inside the band (a PowerPoint data label at the same place), or, when a label does not fit, every band label of the chart is listed in the legend, bands first (a chart that names its series beside its marks gets a legend of the bands alone). In a chart with bands, the muted marks of a `highlight` keep a contrast of 1.5 from the strongest band (`chartBandMutedColor`). A new chart type, `bullet` (with its gallery record), draws one thin bar per category against a target tick (`mapping.target`) over its bands. Core sorts and clamps the bands and computes their colors and the bullet's plot for every engine (`chartBands`, `chartBandRanges`, `chartBandFill`, `bulletPlot`; the gauge reuses them). The PowerPoint export writes the bands as a stacked chart group on the primary axes and the data on deleted secondary axes of the same scale, so a chart with bands has fixed value-axis bounds in PowerPoint, and the bullet's target as a scatter series with fixed Y error bars on the measure's axes; the band series are workbook columns after the data, and import restores the authored bands, target and type while the caches are unchanged, else reads the bands and targets PowerPoint holds. The editor has a Bands section in the chart inspector, offers Bullet in the chart type picker (taking a column named like a target as `mapping.target`) and marks the target column in the data grid. New warnings: `chart-bands-order` and `chart-bands-unsupported`.
8
+ - Breaking (0.37; no slide draws differently, and `opf fix` makes every change below): eight keys of 0.36 are renamed so that one idea has one name, with no alias. A deck that still writes an old name fails validation (`opf/schema` at the key, a message that names the new key, the safe fix `rename-key`; `rename-value` for a value). Schema removals, named as the gate names them: `font-scheme.schema.json:properties.languageFamily` (the font scheme record also becomes a closed object), `layout.schema.json:$defs.Composition.properties.minFontSize`, `opf.schema.json:$defs.FontScheme.properties.languageFamily`, `opf.schema.json:$defs.TableCellStyle.properties.verticalAlign`, `opf.schema.json:$defs.Speaker.properties.organizationId`, `opf.schema.json:$defs.Composition.properties.minFontSize`, `opf.schema.json:$defs.Composition.properties.maxFontSize`, `opf.schema.json:$defs.Reference.properties.url`, `opf.schema.json:$defs.ImageBackground.properties.tone`, `opf.schema.json:$defs.GradientBackground.properties.tone` and `opf.schema.json:$defs.Chart.properties.line`. Enum values no longer accepted: `ea` and `cs` in `opf.schema.json:$defs.FontScheme.properties.scriptGroup.enum` and `font-scheme.schema.json:properties.scriptGroup.enum` (they were values of `languageFamily`).
9
+ - A font scheme's `languageFamily` is `scriptGroup`, and its values are `latin`, `eastAsian` or `complexScript`; `ea` and `cs` are no longer accepted. The 93 font scheme records of the gallery are rewritten (they draw the same).
10
+ - A styled table cell's `verticalAlign` is `anchor`.
11
+ - A speaker's `organizationId` is `organization`.
12
+ - A composition's `minFontSize` and `maxFontSize` are `minFontSizePx` and `maxFontSizePx` (the same numbers, in reference pixels).
13
+ - A reference's `url` is `link`, and it must be an http, https, mail or phone link; `opf validate` offers `Add https://` (not safe) for an address without its scheme.
14
+ - A picture or gradient background's `tone` is `appearance`; the deck's own `tone` is unchanged.
15
+ - A combo chart's `line` is `lineSeries`.
16
+ - A chart reference line's `stroke.dash` also accepts the eight other preset dashes a shape outline takes (`longDash`, `dashDot`, `longDashDot`, `longDashDotDot`, `sysDot`, `sysDash`, `sysDashDot`, `sysDashDotDot`); the preview draws them and the PowerPoint export and import carry them. A table cell border keeps `solid`, `dash` and `dot`.
17
+ - Exported names that follow the keys: `normalizeLanguageFamily` and `LanguageFamilyName` are `normalizeScriptGroup` and `ScriptGroupName`; the option `tone` of `resolveColorRoles` is `appearance`; `stats` lists a speaker's `organization`; the composition options `minFontSize` are `minFontSizePx`; the `url` of `Reference`, of a laid-out note and of the editor's reference functions is `link`; the `line` option of the editor's `setChartOptions` is `lineSeries`; the `verticalAlign` field of the editor's table cell style is `anchor`. New: `renameRecordKeys`, core's one table of renamed keys.
18
+ - PowerPoint: the records store the new names. A file written before 0.37 still imports: the importer reads each record through the rename table. A 0.36.0 importer does not read the new names inside the records of a 0.37 file.
19
+ - Updating: `opf fix deck.opf.json -i`; docs/migrations/0.37.md.
20
+
5
21
  ## 0.36.0 (2026-11-25)
6
22
 
7
23
  - Two narrative records ported from STORYD v1's story frameworks: `quarterly-review` (the team-facing quarterly update: objectives, wins, progress, financials, challenges, lessons, next-quarter goals, recognition, discussion, conclusion; the leadership business review with asks stays `qbr`) and `operational-review` (situation, complication, root causes, resolution, roadmap, action plan, decision). With them every STORYD v1 framework has a gallery narrative.