@openpresentation/gallery 3.0.0 → 4.0.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 +4 -0
- package/README.md +13 -2
- package/dist/index.js +1 -1
- package/dist/previews.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- **Breaking: the `dark` theme is removed; dark is a variant of every theme.** Core 0.23.0 adds `design.variant`, a map over a deck's one color scheme (light1, light2, dark1, dark2, with an optional accent order). The `minimal`, `classic` and `bold` themes gain `variants` (`light`, `light-alt`, `dark`, `dark-alt`, each the value of `design.variant`), and the separate `dark` theme (the `boost` colors with the `seaford` fonts on `dark1`) is gone: a document that names `design.theme: "dark"` is an unknown theme (`opf/unresolved-reference`). Replace it with a theme and its dark variant, plus `colorScheme: "boost"` and `fontScheme: "seaford"` if the boost look is wanted. A removed id is a major release, so this is 4.0.0. No other record or drawing changes; `CATALOG_SCHEMA` stays 3.
|
|
6
|
+
- Development and CI use the published engines: `@openpresentation/opf` and `@openpresentation/opf-render` 0.23.0 replace the 0.19 pins and the one-release 3.0.0 bootstrap, which does nothing for any other gallery version. Core 0.23.0 derives borders, gridlines, axis lines, chart text and code colors from the color scheme, so seven layout previews are redrawn with `npm run previews` (this major release is where a redraw is allowed): chart, chart-beside, code, dashboard, table, table-beside and timeline. `previews/layouts/index.json` records their new sizes. No other record's drawing changes.
|
|
7
|
+
- The tests validate every theme's `variants[].variant` with core 0.23.0's `normalizeColorVariant` and `isColorVariant` (`@openpresentation/opf/composition`) instead of a hand-written shape check.
|
|
8
|
+
|
|
5
9
|
## 3.0.0 (2026-10-13)
|
|
6
10
|
|
|
7
11
|
- Canonicalize the bootstrap temporary root on macOS before strict artifact checks, so the system `/var` alias does not reject valid merged-source builds. Source-child symlinks remain rejected; release metadata and runtime bytes are unchanged.
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ default.
|
|
|
13
13
|
templates (`opf-layout/v2`); their compatibility contract targets `@openpresentation/opf` 0.19. 1.x holds the 278 OPF 0.18 layouts. 2.0.0
|
|
14
14
|
changed the layouts with no migration path: see [Layouts](#layouts) and the [changelog](CHANGELOG.md).
|
|
15
15
|
|
|
16
|
-
Gallery 3.x advances the overall catalog compatibility contract to `3` and requires the
|
|
16
|
+
Gallery 3.x advances the overall catalog compatibility contract to `3` and requires the OPF 0.20
|
|
17
17
|
engine contract. The engine packages follow their separate release process. Layout grid
|
|
18
18
|
`areas` use arrays of cells instead of whitespace-delimited strings. The per-kind layout schema version remains
|
|
19
19
|
`2` and its URI remains `opf-layout/v2`; those identifiers are distinct from the overall catalog contract.
|
|
@@ -125,13 +125,24 @@ patch is held to the 2.x release below it.
|
|
|
125
125
|
## Where the records come from
|
|
126
126
|
|
|
127
127
|
- **Layouts** are written here, in `catalog/layouts/`: one short `opf-layout/v2` record per layout, reviewed as code.
|
|
128
|
-
- **
|
|
128
|
+
- **Themes** carry `variants` from 4.0.0 (below), written here with the theme records.
|
|
129
|
+
- **The other kinds** (colour and font schemes, narratives, audiences, purposes, tones and the display kinds) are
|
|
129
130
|
unchanged from 1.x: the pinned snapshot of the catalog pptx.gallery published at
|
|
130
131
|
`https://www.pptx.gallery/<kind>/index.json`, with the pptx.gallery commit in `catalog/manifest.json`.
|
|
131
132
|
- `scripts/sync-gallery-catalog.mjs` took the 1.x records from a pptx.gallery checkout (`npm run sync`). pptx.gallery
|
|
132
133
|
publishes the 1.x layouts, so a sync now refuses to run: it would remove the 28 layouts. pptx.gallery reads its records
|
|
133
134
|
from this package from 2.0.0, and the sync is retired with that change.
|
|
134
135
|
|
|
136
|
+
## Theme variants
|
|
137
|
+
|
|
138
|
+
A theme record has a `variants` list: `{ "id", "name", "variant" }`, where `variant` is the value of `design.variant` (from
|
|
139
|
+
OPF core 0.23.0): a background slot (`"light1"`, `"light2"`, `"dark1"`, `"dark2"`) or `{ "background", "accents" }` with a
|
|
140
|
+
permutation of `accent1` to `accent6` to reorder the accents. A variant is a map over the theme's one color scheme, as
|
|
141
|
+
PowerPoint's color map is, never a second scheme: dark is the same twelve slots with the text and background roles swapped.
|
|
142
|
+
Every theme offers `light`, `light-alt`, `dark` and `dark-alt`; the variant whose background is the theme's own `background`
|
|
143
|
+
is the theme's look (Minimal's own is `dark2`, so its `dark` is `dark2`). A host applies a variant by writing its `variant`
|
|
144
|
+
value to `design.variant`. There is no separate dark theme: the `dark` theme of 3.x is the `dark` variant of any theme.
|
|
145
|
+
|
|
135
146
|
## Contributing a layout
|
|
136
147
|
|
|
137
148
|
1. Write the record in `catalog/layouts/<id>.json` (`$schema` `https://openpresentation.org/schema/opf-layout/v2`,
|