@openpresentation/gallery 2.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 +13 -0
- package/README.md +26 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/previews.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
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
|
+
|
|
9
|
+
## 3.0.0 (2026-10-13)
|
|
10
|
+
|
|
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.
|
|
12
|
+
|
|
13
|
+
- **Breaking catalog contract:** layout `areas` now use arrays of cells instead of whitespace-delimited row strings. `CATALOG_SCHEMA` and `opf.catalogSchema` advance to `3`; consumers must support array-row areas. Layout IDs, per-layout schema version `2` and `opf-layout/v2` remain unchanged.
|
|
14
|
+
- Gallery 3 build tooling requires exact core and renderer commits that are ancestors of their actual remote default branches. The one-release bootstrap stages development tarballs, verifies shared core/catalog resolution and unchanged release manifests, and retains artifact identities; its commands also run portably on Windows. Qualification uses the actual merged core and renderer commits. This tooling does not qualify published engine metadata or establish native acceptance.
|
|
15
|
+
- **Breaking visual defaults:** center compact quote and headline-metric regions and image-side explanations; keep dense text, lists, charts and tables top-aligned. FAQ, process, dashboard, pillars, comparison and scorecard layouts no longer add decorative content boxes by default. Existing layout IDs are preserved. These appearance changes require gallery 3 under the pixel-stability policy; record schema remains v2.
|
|
16
|
+
- Picker previews now use authored, explicitly illustrative examples with distinct measures and units, number formats, actual questions and answers, ordered process steps and named responsibilities. Exhaustive stability fixtures remain separate and unchanged.
|
|
17
|
+
|
|
5
18
|
## 2.0.0 (2026-10-11)
|
|
6
19
|
|
|
7
20
|
- **Breaking: replace the 278 placeholder layouts of 1.x with 28 OPF 0.19 intent layouts.** Records now use `opf-layout/v2` grid templates with `areas`, `columns`, `rows` and typed content regions; `CATALOG_SCHEMA` and `opf.catalogSchema` are `2`. Consumers require `@openpresentation/opf` 0.19 or later. There are no v1 aliases or migration APIs. Six old ids remain with new template semantics: `agenda`, `comparison`, `dashboard`, `faq`, `timeline` and `two-column`. Other old ids no longer resolve in this catalog. Boxed treatment, direction, alignment, image fit and item images are design settings rather than layout variants.
|
package/README.md
CHANGED
|
@@ -9,10 +9,15 @@ It holds every layout, theme, colour scheme, font scheme, narrative, audience, p
|
|
|
9
9
|
never fetch records: a host registers the catalogs it trusts, and this package is the catalog every OPF host registers by
|
|
10
10
|
default.
|
|
11
11
|
|
|
12
|
-
**2.x is the catalog of OPF 0.19
|
|
13
|
-
templates (`opf-layout/v2`);
|
|
12
|
+
**2.x is the catalog of OPF 0.19.** Its layouts are the 28 OPF 0.19 layouts named by intent, written as grid
|
|
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 OPF 0.20
|
|
17
|
+
engine contract. The engine packages follow their separate release process. Layout grid
|
|
18
|
+
`areas` use arrays of cells instead of whitespace-delimited strings. The per-kind layout schema version remains
|
|
19
|
+
`2` and its URI remains `opf-layout/v2`; those identifiers are distinct from the overall catalog contract.
|
|
20
|
+
|
|
16
21
|
## Use
|
|
17
22
|
|
|
18
23
|
```sh
|
|
@@ -37,7 +42,7 @@ registers later.
|
|
|
37
42
|
| --- | --- |
|
|
38
43
|
| `gallery` | The content records by kind and then by id, without `$schema`, `id` or `x-*` members, with `source: "https://www.pptx.gallery"` |
|
|
39
44
|
| `GALLERY_SOURCE` | `https://www.pptx.gallery`, the `source` of a document's `catalogs.default` |
|
|
40
|
-
| `CATALOG_SCHEMA` | The
|
|
45
|
+
| `CATALOG_SCHEMA` | The overall catalog compatibility contract (also `opf.catalogSchema` in `package.json`): `3` requires array-row areas; layouts retain per-kind schema version `2` and `opf-layout/v2` |
|
|
41
46
|
| `catalogDisplay` | Display metadata for pickers: `chartTypes`, `languages` and `socialPlatforms` by id |
|
|
42
47
|
| `catalogIndexes` | Each kind's `index.json`: the record summaries and their content hash (a layout's entry also has its `summary` and `group`) |
|
|
43
48
|
| `catalogManifest` | The pptx.gallery commit the 1.x records were taken from, and a content hash per kind |
|
|
@@ -120,13 +125,24 @@ patch is held to the 2.x release below it.
|
|
|
120
125
|
## Where the records come from
|
|
121
126
|
|
|
122
127
|
- **Layouts** are written here, in `catalog/layouts/`: one short `opf-layout/v2` record per layout, reviewed as code.
|
|
123
|
-
- **
|
|
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
|
|
124
130
|
unchanged from 1.x: the pinned snapshot of the catalog pptx.gallery published at
|
|
125
131
|
`https://www.pptx.gallery/<kind>/index.json`, with the pptx.gallery commit in `catalog/manifest.json`.
|
|
126
132
|
- `scripts/sync-gallery-catalog.mjs` took the 1.x records from a pptx.gallery checkout (`npm run sync`). pptx.gallery
|
|
127
133
|
publishes the 1.x layouts, so a sync now refuses to run: it would remove the 28 layouts. pptx.gallery reads its records
|
|
128
134
|
from this package from 2.0.0, and the sync is retired with that change.
|
|
129
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
|
+
|
|
130
146
|
## Contributing a layout
|
|
131
147
|
|
|
132
148
|
1. Write the record in `catalog/layouts/<id>.json` (`$schema` `https://openpresentation.org/schema/opf-layout/v2`,
|
|
@@ -143,3 +159,9 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for the checks, releases and the license.
|
|
|
143
159
|
## License
|
|
144
160
|
|
|
145
161
|
[MIT](LICENSE). The records, the previews and the code are all under it; `npm run check:license` checks it.
|
|
162
|
+
|
|
163
|
+
### Editorial layout defaults
|
|
164
|
+
|
|
165
|
+
Compact quote, headline-metric and image-side explanation regions opt into `anchor: "middle"`. Long text, lists and analytical views retain top alignment. A pin still selects a named region; its anchor governs content placement within that region. Centering needs a core engine that measures the content kind; older engines may keep unsupported kinds at the top. Explicit deck and slide design continues to override catalog defaults.
|
|
166
|
+
|
|
167
|
+
Picker examples in `scripts/editorial-previews.mjs` use fictional content and are separate from the unchanged filled/empty stability fixtures. Numeric examples supply units and explicit precision; FAQ previews pair questions with answers, and process previews show ordered actions.
|
package/dist/index.d.ts
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
export declare const GALLERY_SOURCE: "https://www.pptx.gallery";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* The version of core's catalog record
|
|
15
|
-
*
|
|
14
|
+
* The version of core's catalog record compatibility contract these records target (package.json `opf.catalogSchema`). 3 requires
|
|
15
|
+
* array rows in layout grid areas. Per-kind layout schemaVersion 2 and `opf-layout/v2` remain unchanged.
|
|
16
16
|
*/
|
|
17
|
-
export declare const CATALOG_SCHEMA:
|
|
17
|
+
export declare const CATALOG_SCHEMA: 3;
|
|
18
18
|
|
|
19
19
|
/** Records of one kind, keyed by id (core's `CatalogRecordMap`). */
|
|
20
20
|
export type GalleryRecords = Readonly<Record<string, Readonly<Record<string, unknown>>>>;
|