@openpresentation/opf 0.2.1 → 0.3.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.
@@ -1,13 +1,3 @@
1
- import { CatalogKind } from './catalogs.js';
2
- import { SchemaName } from './schemas.js';
3
-
4
- type JsonPrimitive = string | number | boolean | null;
5
- type JsonValue = JsonPrimitive | JsonObject | JsonValue[];
6
- interface JsonObject {
7
- readonly [key: string]: JsonValue;
8
- }
9
- type JsonSchema = JsonObject;
10
-
11
1
  /**
12
2
  * Inline audience metadata for the presentation. Use 'id' to reference an audiences catalog record and override selected fields, or use 'name' for a custom inline audience.
13
3
  *
@@ -550,15 +540,13 @@ interface Presentation {
550
540
  */
551
541
  author?: (string | [string, ...(string)[]]);
552
542
  /**
553
- * Intended audiences for the presentation. Each item accepts either:
554
- * - A string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.
555
- * - An inline Audience object for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.
543
+ * Intended audiences for the presentation. Accepts either:
544
+ * - A single string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.
545
+ * - An array of string shorthands and/or inline Audience objects for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.
556
546
  *
557
547
  * Resolution order for catalog ids and references: inline catalogs.audiences.records[] → catalogs.audiences.source → default catalog at https://www.pptx.gallery/audiences.
558
- *
559
- * @minItems 1
560
548
  */
561
- audience?: [(string | Audience), ...((string | Audience))[]];
549
+ audience?: (string | [(string | Audience), ...((string | Audience))[]]);
562
550
  /**
563
551
  * Primary goal of the presentation. Accepts either:
564
552
  * - A string shorthand: free-form goal ('Raise a Series B round of $30M'), a purposes catalog id ('decide', 'align'), an HTTPS URL, or a 'pkg:' reference.
@@ -2022,7 +2010,7 @@ interface Slide {
2022
2010
  */
2023
2011
  text?: (string | TextRun[]);
2024
2012
  /**
2025
- * Full-slide generic list payload. Presence of this field infers type 'list'.
2013
+ * Full-slide generic list payload. Presence of this field infers type 'list'. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for layout-agnostic blocks.
2026
2014
  */
2027
2015
  items?: ListItem[];
2028
2016
  /**
@@ -2121,7 +2109,7 @@ interface Slide {
2121
2109
  events: [TimelineEvent, ...(TimelineEvent)[]];
2122
2110
  });
2123
2111
  /**
2124
- * Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified.
2112
+ * Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for equivalent blocks.
2125
2113
  */
2126
2114
  blocks?: ContentPayload[];
2127
2115
  design?: Design1;
@@ -2671,30 +2659,4 @@ interface CatalogEntry10 {
2671
2659
  [k: string]: unknown;
2672
2660
  }
2673
2661
 
2674
- interface ValidationIssue {
2675
- path: string;
2676
- message: string;
2677
- keyword: string;
2678
- schemaPath: string;
2679
- params: Record<string, unknown>;
2680
- }
2681
- interface ValidationResult {
2682
- valid: boolean;
2683
- errors: ValidationIssue[];
2684
- schemaName?: SchemaName;
2685
- catalogKind?: CatalogKind;
2686
- }
2687
- type SchemaOrKind = SchemaName | CatalogKind | JsonSchema;
2688
- declare class OPFValidationError extends Error {
2689
- readonly issues: ValidationIssue[];
2690
- readonly result: ValidationResult;
2691
- constructor(result: ValidationResult);
2692
- }
2693
- declare function validate(value: unknown, schemaOrKind?: SchemaOrKind): ValidationResult;
2694
- declare function assertValid<T = unknown>(value: T, schemaOrKind?: SchemaOrKind): T;
2695
- declare function validatePresentation(value: unknown): ValidationResult;
2696
- declare function assertValidPresentation(value: unknown): asserts value is Presentation;
2697
- declare function validateCatalogRecord(kind: CatalogKind, value: unknown): ValidationResult;
2698
- declare function assertValidCatalogRecord(kind: CatalogKind, value: unknown): void;
2699
-
2700
- export { OPFValidationError as O, type Presentation as P, type SchemaOrKind as S, type ValidationIssue as V, type ValidationResult as a, assertValid as b, assertValidCatalogRecord as c, assertValidPresentation as d, validateCatalogRecord as e, validatePresentation as f, validate as v };
2662
+ export type { Presentation as P };
@@ -0,0 +1,4 @@
1
+ /** Raw markdown of the upstream OpenPresentation/opf README at this release. */
2
+ declare const repoReadme: string;
3
+
4
+ export { repoReadme };
@@ -0,0 +1,9 @@
1
+ // src/generated/repo-readme.ts
2
+ var repoReadmeRaw = '# Open Presentation Format (OPF)\n\n[![npm version](https://img.shields.io/npm/v/@openpresentation/opf?label=npm)](https://www.npmjs.com/package/@openpresentation/opf)\n[![npm downloads](https://img.shields.io/npm/dw/@openpresentation/opf)](https://www.npmjs.com/package/@openpresentation/opf)\n[![license](https://img.shields.io/npm/l/@openpresentation/opf)](./LICENSE)\n\nPublic npm package: [`@openpresentation/opf`](https://www.npmjs.com/package/@openpresentation/opf) (`npm install @openpresentation/opf`).\n\nOpen Presentation Format is the portable, human-readable JSON document format for slide decks.\n\nThis repository is the canonical home for the OPF **spec**, **JSON Schemas**, **catalog presets**, examples, generated developer types, local validation tooling, and planning docs for the future render/edit/convert toolkit. OpenPresentation publishes open-source code and documentation only; it does not provide hosted APIs, hosted rendering functions, queues, storage, authentication, jobs, previews, SLAs, telemetry, or managed infrastructure.\n\n## File naming\n\nOpen Presentation Format documents are JSON files. Use `*.opf.json` for complete OPF presentation documents, for example `board-review.opf.json` or `deck.opf.json`.\n\nAvoid using bare `*.opf` for OPF JSON. The `.opf` extension is already used by other document and project formats, while `.opf.json` keeps the OPF identity and still makes the underlying JSON format clear to editors, validators, agents, and version-control tooling.\n\n## Naming and reuse\n\nThe format name is **Open Presentation Format**. The schemas, catalogs, packages, and local tooling in this repository are free and open source under the MIT license, so third-party tools may read, write, validate, render, convert, and describe support for Open Presentation Format without adopting any product-specific branding.\n\n## Why OPF\n\n`.pptx` is a zipped bundle of XML. Humans can\'t diff it, LLMs can\'t read or write it reliably, and git can\'t track it meaningfully. Every change looks like a binary blob.\n\nOPF is plain JSON. A human can open it in an editor. A model can read and write it without guessing at schema-by-example. Decks live in git like the rest of your work.\n\nThat\'s the shift that lets LLMs actually *author* decks. When the format stops fighting them, models can do the work that matters \u2014 narrative structure, persuasive framing, data analysis, chart recommendations, ruthless revision passes \u2014 instead of wrestling with `<p:sp>` tags.\n\nAnd they don\'t start from a blank canvas. [pptx.gallery](https://pptx.gallery) is the human-browsable reference for OPF catalog presets: layouts, themes, color schemes, font schemes, chart types, narratives, audiences, purposes, tones, languages, and social platforms.\n\n## Start in three steps\n\n1. **Install the format package.** `npm install @openpresentation/opf`.\n2. **Author and validate a deck.** Write a `*.opf.json` file \u2014 start from [`docs/how-opf-works.md`](./docs/how-opf-works.md) or copy [`examples/technical/full-feature-tour.opf.json`](./examples/technical/full-feature-tour.opf.json) \u2014 and run `validatePresentation` on it.\n3. **Build on it.** Browse presets at [pptx.gallery](https://pptx.gallery), pin the schemas in your pipeline, and track the [toolkit roadmap](#toolkit-roadmap) for the render and convert libraries.\n\nYour deck lives in git from the first commit. Nothing in these steps calls a hosted service, and nothing ever will \u2014 that boundary is the point.\n\n## JavaScript and TypeScript\n\nThe canonical JavaScript/TypeScript package is published at [`packages/javascript`](./packages/javascript) as [`@openpresentation/opf`](https://www.npmjs.com/package/@openpresentation/opf). The schema is pre-stable (0.x \u2014 expect breaking changes between minor versions until 1.0). Its responsibility is local and format-level only:\n\n- export the canonical schemas from [`spec/`](./spec)\n- export bundled catalog records from [`spec/`](./spec)\n- export a typed raw spec file manifest for package-addressable `spec/` content\n- generate TypeScript types, with `Presentation` as the top-level type\n- validate OPF JSON and catalog records locally\n\nIt does not render `.pptx`, parse `.pptx`, generate content with AI, fetch remote catalogs, call hosted APIs, or provide managed services. Future render/edit/convert packages are planned as separate MIT repos that depend on `@openpresentation/opf`.\n\n## Toolkit roadmap\n\nThe OPF format package is shipping first. The planned toolkit lives outside this format-only repo:\n\n| Planned repo | Role | Boundary |\n|---|---|---|\n| `opf-render` | OPF to SVG/PNG/PDF | Local and embeddable rendering library |\n| `opf-editor` | WYSIWYG bindings/components | Headless editor primitives plus optional UI components |\n| `opf-pptx` | OPF to PPTX and PPTX to OPF | Pure local import/export library for browser and server use where supported |\n\nThese repos provide OSS primitives only. Downstream applications own hosting, auth, storage, collaboration, queues, previews, analytics, support, and workflow UX.\n\n## Usage\n\nInstall from npm:\n\n```sh\npnpm add @openpresentation/opf\n# or: npm install @openpresentation/opf\n```\n\nTo work on the package itself, clone this repo and build the workspace:\n\n```sh\npnpm install\npnpm build\n```\n\nUse the format package from JavaScript or TypeScript:\n\n```ts\nimport {\n presentation,\n audiences,\n purposes,\n tones,\n validatePresentation,\n} from "@openpresentation/opf";\n\nimport type { Presentation } from "@openpresentation/opf";\n\nconst deck: Presentation = {\n name: "Quarterly Review",\n slides: [{ title: "Quarterly Review", items: ["Revenue", "Product", "Hiring"] }],\n};\n\nconst result = validatePresentation(deck);\nconsole.log(result.valid); // schema correctness\nconsole.log(result.warnings); // advisory issues, e.g. unknown catalog ids\nconsole.log(audiences.length, purposes.length, tones.length);\n```\n\nUse focused imports when you only need one surface:\n\n```ts\nimport { presentation } from "@openpresentation/opf/schemas";\nimport { audiences, purposes } from "@openpresentation/opf/catalogs";\nimport { specFileEntries } from "@openpresentation/opf/spec-files";\nimport { validate } from "@openpresentation/opf/validator";\nimport type { Presentation } from "@openpresentation/opf/types";\n```\n\nUse raw JSON when an engine or resolver needs package-addressable files:\n\n```ts\nimport presentationSchema from "@openpresentation/opf/spec/schemas/opf.schema.json" with {\n type: "json",\n};\n```\n\nUse the local-only CLI source during development:\n\n```sh\npnpm --filter @openpresentation/cli build\nnode packages/cli/dist/index.js schemas\nnode packages/cli/dist/index.js catalogs\nnode packages/cli/dist/index.js validate path/to/deck.opf.json\n```\n\n## Layout\n\n| Path | Contents |\n|---|---|\n| [`spec/schemas/opf.schema.json`](./spec/schemas/opf.schema.json) | Canonical JSON Schema for top-level OPF `Presentation` documents. |\n| [`docs/how-opf-works.md`](./docs/how-opf-works.md) | Conceptual introduction: the document model, content shapes, catalog resolution, and the validation philosophy. Start here. |\n| [`docs/design-resolution.md`](./docs/design-resolution.md) | The design precedence algorithm (slide design \u2192 deck design \u2192 resolved theme \u2192 engine defaults) with worked examples. |\n| [`docs/schema-reference.md`](./docs/schema-reference.md) | Author-facing reference for top-level OPF fields and every presentation schema `$defs` object/type. |\n| [`docs/catalog-schema-reference.md`](./docs/catalog-schema-reference.md) | Author-facing reference for every companion catalog schema. |\n| [`docs/content-payloads.md`](./docs/content-payloads.md) | Author-facing notes for slide and region content payloads, including chart and table object shapes. |\n| [`docs/examples.md`](./docs/examples.md) | Guide to the expanded scenario-oriented examples under `examples/gallery/`. |\n| [`spec/schemas/*.schema.json`](./spec/schemas) | Companion schemas for catalog records and sub-objects. |\n| [`spec/catalogs/<catalog-kind>/`](./spec/catalogs) | Canonical bundled catalog records. |\n| [`spec/openapi.yaml`](./spec/openapi.yaml) | Optional reference OpenAPI contract for downstream services that choose to expose OPF over HTTP. OpenPresentation does not host this API. |\n| [`examples/technical/`](./examples/technical) | Focused OPF fixtures for validator, renderer, catalog-resolution, design, content-payload, and region behavior. |\n| [`examples/gallery/`](./examples/gallery) | Broader OPF example decks organized by industry, function, education, government, presentation type, international, and design/media scenarios. |\n| [`packages/javascript/`](./packages/javascript) | Public pre-stable source for `@openpresentation/opf`. |\n| [`packages/cli/`](./packages/cli) | Local-only OPF CLI source; native distribution is deferred. |\n| [`legacy/`](./legacy) | Tombstone for service-specific clients, CLIs, tool integrations, and workflows removed from the OpenPresentation OSS repo. |\n\n## OpenPresentation Boundary\n\nOpenPresentation defines the format, bundled presets, local validation, examples, docs, and planned local render/edit/convert libraries. It does not provide hosted functions or managed product surfaces.\n\nFuture non-JavaScript OPF packages should follow the same local-first boundary: Python and Go packages should expose schemas, types/models, catalogs, validation, and package-addressable assets. Future toolkit packages should expose embeddable library APIs with no required network calls, hosted callbacks, hidden telemetry, or managed infrastructure assumptions.\n\nThe published JavaScript package copies package-addressable OPF schemas, catalogs, reference assets, and the optional reference `spec/openapi.yaml` from `spec/`. It intentionally remains `@openpresentation/opf` instead of introducing a separate `@openpresentation/opf-spec` package so downstream imports can advance by semver-pinning one canonical package.\n\n## License\n\nMIT. See [LICENSE](./LICENSE).\n';
3
+
4
+ // src/repo-readme.ts
5
+ var repoReadme = repoReadmeRaw;
6
+
7
+ export { repoReadme };
8
+ //# sourceMappingURL=repo-readme.js.map
9
+ //# sourceMappingURL=repo-readme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/generated/repo-readme.ts","../src/repo-readme.ts"],"names":[],"mappings":";AAEO,IAAM,aAAA,GAAwB,g6TAAA;;;ACY9B,IAAM,UAAA,GAAqB","file":"repo-readme.js","sourcesContent":["// Generated by scripts/generate-content.mjs from README.md. Do not edit by hand.\n\nexport const repoReadmeRaw: string = \"# Open Presentation Format (OPF)\\n\\n[![npm version](https://img.shields.io/npm/v/@openpresentation/opf?label=npm)](https://www.npmjs.com/package/@openpresentation/opf)\\n[![npm downloads](https://img.shields.io/npm/dw/@openpresentation/opf)](https://www.npmjs.com/package/@openpresentation/opf)\\n[![license](https://img.shields.io/npm/l/@openpresentation/opf)](./LICENSE)\\n\\nPublic npm package: [`@openpresentation/opf`](https://www.npmjs.com/package/@openpresentation/opf) (`npm install @openpresentation/opf`).\\n\\nOpen Presentation Format is the portable, human-readable JSON document format for slide decks.\\n\\nThis repository is the canonical home for the OPF **spec**, **JSON Schemas**, **catalog presets**, examples, generated developer types, local validation tooling, and planning docs for the future render/edit/convert toolkit. OpenPresentation publishes open-source code and documentation only; it does not provide hosted APIs, hosted rendering functions, queues, storage, authentication, jobs, previews, SLAs, telemetry, or managed infrastructure.\\n\\n## File naming\\n\\nOpen Presentation Format documents are JSON files. Use `*.opf.json` for complete OPF presentation documents, for example `board-review.opf.json` or `deck.opf.json`.\\n\\nAvoid using bare `*.opf` for OPF JSON. The `.opf` extension is already used by other document and project formats, while `.opf.json` keeps the OPF identity and still makes the underlying JSON format clear to editors, validators, agents, and version-control tooling.\\n\\n## Naming and reuse\\n\\nThe format name is **Open Presentation Format**. The schemas, catalogs, packages, and local tooling in this repository are free and open source under the MIT license, so third-party tools may read, write, validate, render, convert, and describe support for Open Presentation Format without adopting any product-specific branding.\\n\\n## Why OPF\\n\\n`.pptx` is a zipped bundle of XML. Humans can't diff it, LLMs can't read or write it reliably, and git can't track it meaningfully. Every change looks like a binary blob.\\n\\nOPF is plain JSON. A human can open it in an editor. A model can read and write it without guessing at schema-by-example. Decks live in git like the rest of your work.\\n\\nThat's the shift that lets LLMs actually *author* decks. When the format stops fighting them, models can do the work that matters — narrative structure, persuasive framing, data analysis, chart recommendations, ruthless revision passes — instead of wrestling with `<p:sp>` tags.\\n\\nAnd they don't start from a blank canvas. [pptx.gallery](https://pptx.gallery) is the human-browsable reference for OPF catalog presets: layouts, themes, color schemes, font schemes, chart types, narratives, audiences, purposes, tones, languages, and social platforms.\\n\\n## Start in three steps\\n\\n1. **Install the format package.** `npm install @openpresentation/opf`.\\n2. **Author and validate a deck.** Write a `*.opf.json` file — start from [`docs/how-opf-works.md`](./docs/how-opf-works.md) or copy [`examples/technical/full-feature-tour.opf.json`](./examples/technical/full-feature-tour.opf.json) — and run `validatePresentation` on it.\\n3. **Build on it.** Browse presets at [pptx.gallery](https://pptx.gallery), pin the schemas in your pipeline, and track the [toolkit roadmap](#toolkit-roadmap) for the render and convert libraries.\\n\\nYour deck lives in git from the first commit. Nothing in these steps calls a hosted service, and nothing ever will — that boundary is the point.\\n\\n## JavaScript and TypeScript\\n\\nThe canonical JavaScript/TypeScript package is published at [`packages/javascript`](./packages/javascript) as [`@openpresentation/opf`](https://www.npmjs.com/package/@openpresentation/opf). The schema is pre-stable (0.x — expect breaking changes between minor versions until 1.0). Its responsibility is local and format-level only:\\n\\n- export the canonical schemas from [`spec/`](./spec)\\n- export bundled catalog records from [`spec/`](./spec)\\n- export a typed raw spec file manifest for package-addressable `spec/` content\\n- generate TypeScript types, with `Presentation` as the top-level type\\n- validate OPF JSON and catalog records locally\\n\\nIt does not render `.pptx`, parse `.pptx`, generate content with AI, fetch remote catalogs, call hosted APIs, or provide managed services. Future render/edit/convert packages are planned as separate MIT repos that depend on `@openpresentation/opf`.\\n\\n## Toolkit roadmap\\n\\nThe OPF format package is shipping first. The planned toolkit lives outside this format-only repo:\\n\\n| Planned repo | Role | Boundary |\\n|---|---|---|\\n| `opf-render` | OPF to SVG/PNG/PDF | Local and embeddable rendering library |\\n| `opf-editor` | WYSIWYG bindings/components | Headless editor primitives plus optional UI components |\\n| `opf-pptx` | OPF to PPTX and PPTX to OPF | Pure local import/export library for browser and server use where supported |\\n\\nThese repos provide OSS primitives only. Downstream applications own hosting, auth, storage, collaboration, queues, previews, analytics, support, and workflow UX.\\n\\n## Usage\\n\\nInstall from npm:\\n\\n```sh\\npnpm add @openpresentation/opf\\n# or: npm install @openpresentation/opf\\n```\\n\\nTo work on the package itself, clone this repo and build the workspace:\\n\\n```sh\\npnpm install\\npnpm build\\n```\\n\\nUse the format package from JavaScript or TypeScript:\\n\\n```ts\\nimport {\\n presentation,\\n audiences,\\n purposes,\\n tones,\\n validatePresentation,\\n} from \\\"@openpresentation/opf\\\";\\n\\nimport type { Presentation } from \\\"@openpresentation/opf\\\";\\n\\nconst deck: Presentation = {\\n name: \\\"Quarterly Review\\\",\\n slides: [{ title: \\\"Quarterly Review\\\", items: [\\\"Revenue\\\", \\\"Product\\\", \\\"Hiring\\\"] }],\\n};\\n\\nconst result = validatePresentation(deck);\\nconsole.log(result.valid); // schema correctness\\nconsole.log(result.warnings); // advisory issues, e.g. unknown catalog ids\\nconsole.log(audiences.length, purposes.length, tones.length);\\n```\\n\\nUse focused imports when you only need one surface:\\n\\n```ts\\nimport { presentation } from \\\"@openpresentation/opf/schemas\\\";\\nimport { audiences, purposes } from \\\"@openpresentation/opf/catalogs\\\";\\nimport { specFileEntries } from \\\"@openpresentation/opf/spec-files\\\";\\nimport { validate } from \\\"@openpresentation/opf/validator\\\";\\nimport type { Presentation } from \\\"@openpresentation/opf/types\\\";\\n```\\n\\nUse raw JSON when an engine or resolver needs package-addressable files:\\n\\n```ts\\nimport presentationSchema from \\\"@openpresentation/opf/spec/schemas/opf.schema.json\\\" with {\\n type: \\\"json\\\",\\n};\\n```\\n\\nUse the local-only CLI source during development:\\n\\n```sh\\npnpm --filter @openpresentation/cli build\\nnode packages/cli/dist/index.js schemas\\nnode packages/cli/dist/index.js catalogs\\nnode packages/cli/dist/index.js validate path/to/deck.opf.json\\n```\\n\\n## Layout\\n\\n| Path | Contents |\\n|---|---|\\n| [`spec/schemas/opf.schema.json`](./spec/schemas/opf.schema.json) | Canonical JSON Schema for top-level OPF `Presentation` documents. |\\n| [`docs/how-opf-works.md`](./docs/how-opf-works.md) | Conceptual introduction: the document model, content shapes, catalog resolution, and the validation philosophy. Start here. |\\n| [`docs/design-resolution.md`](./docs/design-resolution.md) | The design precedence algorithm (slide design → deck design → resolved theme → engine defaults) with worked examples. |\\n| [`docs/schema-reference.md`](./docs/schema-reference.md) | Author-facing reference for top-level OPF fields and every presentation schema `$defs` object/type. |\\n| [`docs/catalog-schema-reference.md`](./docs/catalog-schema-reference.md) | Author-facing reference for every companion catalog schema. |\\n| [`docs/content-payloads.md`](./docs/content-payloads.md) | Author-facing notes for slide and region content payloads, including chart and table object shapes. |\\n| [`docs/examples.md`](./docs/examples.md) | Guide to the expanded scenario-oriented examples under `examples/gallery/`. |\\n| [`spec/schemas/*.schema.json`](./spec/schemas) | Companion schemas for catalog records and sub-objects. |\\n| [`spec/catalogs/<catalog-kind>/`](./spec/catalogs) | Canonical bundled catalog records. |\\n| [`spec/openapi.yaml`](./spec/openapi.yaml) | Optional reference OpenAPI contract for downstream services that choose to expose OPF over HTTP. OpenPresentation does not host this API. |\\n| [`examples/technical/`](./examples/technical) | Focused OPF fixtures for validator, renderer, catalog-resolution, design, content-payload, and region behavior. |\\n| [`examples/gallery/`](./examples/gallery) | Broader OPF example decks organized by industry, function, education, government, presentation type, international, and design/media scenarios. |\\n| [`packages/javascript/`](./packages/javascript) | Public pre-stable source for `@openpresentation/opf`. |\\n| [`packages/cli/`](./packages/cli) | Local-only OPF CLI source; native distribution is deferred. |\\n| [`legacy/`](./legacy) | Tombstone for service-specific clients, CLIs, tool integrations, and workflows removed from the OpenPresentation OSS repo. |\\n\\n## OpenPresentation Boundary\\n\\nOpenPresentation defines the format, bundled presets, local validation, examples, docs, and planned local render/edit/convert libraries. It does not provide hosted functions or managed product surfaces.\\n\\nFuture non-JavaScript OPF packages should follow the same local-first boundary: Python and Go packages should expose schemas, types/models, catalogs, validation, and package-addressable assets. Future toolkit packages should expose embeddable library APIs with no required network calls, hosted callbacks, hidden telemetry, or managed infrastructure assumptions.\\n\\nThe published JavaScript package copies package-addressable OPF schemas, catalogs, reference assets, and the optional reference `spec/openapi.yaml` from `spec/`. It intentionally remains `@openpresentation/opf` instead of introducing a separate `@openpresentation/opf-spec` package so downstream imports can advance by semver-pinning one canonical package.\\n\\n## License\\n\\nMIT. See [LICENSE](./LICENSE).\\n\";\n","// The raw README.md from the OpenPresentation/opf repo at the version pinned\n// by this release.\n//\n// Source-of-truth: ../../../README.md. The build step inlines the markdown\n// into this module so consumers can render the upstream README without doing\n// any filesystem or network work at runtime.\n//\n// The package's own README.md (npm landing page) is a separate file — this\n// export is intended for sites that want to mirror the canonical upstream\n// README.\n\nimport { repoReadmeRaw } from \"./generated/repo-readme.js\";\n\n/** Raw markdown of the upstream OpenPresentation/opf README at this release. */\nexport const repoReadme: string = repoReadmeRaw;\n"]}
package/dist/schemas.d.ts CHANGED
@@ -65,17 +65,21 @@ declare const presentation: {
65
65
  readonly examples: ["Bob Lee", ["Bob Lee", "Carla Diaz"]];
66
66
  };
67
67
  readonly audience: {
68
- readonly type: "array";
69
- readonly items: {
70
- readonly oneOf: [{
71
- readonly type: "string";
72
- }, {
73
- readonly $ref: "#/$defs/Audience";
74
- }];
75
- };
76
- readonly minItems: 1;
77
- readonly description: "Intended audiences for the presentation. Each item accepts either:\n- A string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.\n- An inline Audience object for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] → catalogs.audiences.source → default catalog at https://www.pptx.gallery/audiences.";
78
- readonly examples: [["executives"], ["board", "c-suite"], ["Series B investors", "https://acme.com/decks/audiences/acme-board.json"], [{
68
+ readonly oneOf: [{
69
+ readonly type: "string";
70
+ }, {
71
+ readonly type: "array";
72
+ readonly items: {
73
+ readonly oneOf: [{
74
+ readonly type: "string";
75
+ }, {
76
+ readonly $ref: "#/$defs/Audience";
77
+ }];
78
+ };
79
+ readonly minItems: 1;
80
+ }];
81
+ readonly description: "Intended audiences for the presentation. Accepts either:\n- A single string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.\n- An array of string shorthands and/or inline Audience objects for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] → catalogs.audiences.source → default catalog at https://www.pptx.gallery/audiences.";
82
+ readonly examples: ["executives", "Biology Students and Wildlife Enthusiasts", ["executives"], ["board", "c-suite"], ["Series B investors", "https://acme.com/decks/audiences/acme-board.json"], [{
79
83
  readonly id: "executives";
80
84
  readonly attentionBudgetMinutes: 20;
81
85
  }, {
@@ -1668,7 +1672,7 @@ declare const presentation: {
1668
1672
  readonly items: {
1669
1673
  readonly $ref: "#/$defs/ListItem";
1670
1674
  };
1671
- readonly description: "Full-slide generic list payload. Presence of this field infers type 'list'.";
1675
+ readonly description: "Full-slide generic list payload. Presence of this field infers type 'list'. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for layout-agnostic blocks.";
1672
1676
  };
1673
1677
  readonly bullets: {
1674
1678
  readonly type: "array";
@@ -1728,7 +1732,7 @@ declare const presentation: {
1728
1732
  readonly items: {
1729
1733
  readonly $ref: "#/$defs/ContentPayload";
1730
1734
  };
1731
- readonly description: "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified.";
1735
+ readonly description: "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for equivalent blocks.";
1732
1736
  };
1733
1737
  readonly design: {
1734
1738
  readonly $ref: "#/$defs/Design";
@@ -4172,17 +4176,21 @@ declare const schemas: {
4172
4176
  readonly examples: ["Bob Lee", ["Bob Lee", "Carla Diaz"]];
4173
4177
  };
4174
4178
  readonly audience: {
4175
- readonly type: "array";
4176
- readonly items: {
4177
- readonly oneOf: [{
4178
- readonly type: "string";
4179
- }, {
4180
- readonly $ref: "#/$defs/Audience";
4181
- }];
4182
- };
4183
- readonly minItems: 1;
4184
- readonly description: "Intended audiences for the presentation. Each item accepts either:\n- A string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.\n- An inline Audience object for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] → catalogs.audiences.source → default catalog at https://www.pptx.gallery/audiences.";
4185
- readonly examples: [["executives"], ["board", "c-suite"], ["Series B investors", "https://acme.com/decks/audiences/acme-board.json"], [{
4179
+ readonly oneOf: [{
4180
+ readonly type: "string";
4181
+ }, {
4182
+ readonly type: "array";
4183
+ readonly items: {
4184
+ readonly oneOf: [{
4185
+ readonly type: "string";
4186
+ }, {
4187
+ readonly $ref: "#/$defs/Audience";
4188
+ }];
4189
+ };
4190
+ readonly minItems: 1;
4191
+ }];
4192
+ readonly description: "Intended audiences for the presentation. Accepts either:\n- A single string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.\n- An array of string shorthands and/or inline Audience objects for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] → catalogs.audiences.source → default catalog at https://www.pptx.gallery/audiences.";
4193
+ readonly examples: ["executives", "Biology Students and Wildlife Enthusiasts", ["executives"], ["board", "c-suite"], ["Series B investors", "https://acme.com/decks/audiences/acme-board.json"], [{
4186
4194
  readonly id: "executives";
4187
4195
  readonly attentionBudgetMinutes: 20;
4188
4196
  }, {
@@ -5775,7 +5783,7 @@ declare const schemas: {
5775
5783
  readonly items: {
5776
5784
  readonly $ref: "#/$defs/ListItem";
5777
5785
  };
5778
- readonly description: "Full-slide generic list payload. Presence of this field infers type 'list'.";
5786
+ readonly description: "Full-slide generic list payload. Presence of this field infers type 'list'. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for layout-agnostic blocks.";
5779
5787
  };
5780
5788
  readonly bullets: {
5781
5789
  readonly type: "array";
@@ -5835,7 +5843,7 @@ declare const schemas: {
5835
5843
  readonly items: {
5836
5844
  readonly $ref: "#/$defs/ContentPayload";
5837
5845
  };
5838
- readonly description: "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified.";
5846
+ readonly description: "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for equivalent blocks.";
5839
5847
  };
5840
5848
  readonly design: {
5841
5849
  readonly $ref: "#/$defs/Design";
@@ -8283,17 +8291,21 @@ declare const schemaEntries: readonly [{
8283
8291
  readonly examples: ["Bob Lee", ["Bob Lee", "Carla Diaz"]];
8284
8292
  };
8285
8293
  readonly audience: {
8286
- readonly type: "array";
8287
- readonly items: {
8288
- readonly oneOf: [{
8289
- readonly type: "string";
8290
- }, {
8291
- readonly $ref: "#/$defs/Audience";
8292
- }];
8293
- };
8294
- readonly minItems: 1;
8295
- readonly description: "Intended audiences for the presentation. Each item accepts either:\n- A string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.\n- An inline Audience object for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] → catalogs.audiences.source → default catalog at https://www.pptx.gallery/audiences.";
8296
- readonly examples: [["executives"], ["board", "c-suite"], ["Series B investors", "https://acme.com/decks/audiences/acme-board.json"], [{
8294
+ readonly oneOf: [{
8295
+ readonly type: "string";
8296
+ }, {
8297
+ readonly type: "array";
8298
+ readonly items: {
8299
+ readonly oneOf: [{
8300
+ readonly type: "string";
8301
+ }, {
8302
+ readonly $ref: "#/$defs/Audience";
8303
+ }];
8304
+ };
8305
+ readonly minItems: 1;
8306
+ }];
8307
+ readonly description: "Intended audiences for the presentation. Accepts either:\n- A single string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.\n- An array of string shorthands and/or inline Audience objects for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] → catalogs.audiences.source → default catalog at https://www.pptx.gallery/audiences.";
8308
+ readonly examples: ["executives", "Biology Students and Wildlife Enthusiasts", ["executives"], ["board", "c-suite"], ["Series B investors", "https://acme.com/decks/audiences/acme-board.json"], [{
8297
8309
  readonly id: "executives";
8298
8310
  readonly attentionBudgetMinutes: 20;
8299
8311
  }, {
@@ -9886,7 +9898,7 @@ declare const schemaEntries: readonly [{
9886
9898
  readonly items: {
9887
9899
  readonly $ref: "#/$defs/ListItem";
9888
9900
  };
9889
- readonly description: "Full-slide generic list payload. Presence of this field infers type 'list'.";
9901
+ readonly description: "Full-slide generic list payload. Presence of this field infers type 'list'. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for layout-agnostic blocks.";
9890
9902
  };
9891
9903
  readonly bullets: {
9892
9904
  readonly type: "array";
@@ -9946,7 +9958,7 @@ declare const schemaEntries: readonly [{
9946
9958
  readonly items: {
9947
9959
  readonly $ref: "#/$defs/ContentPayload";
9948
9960
  };
9949
- readonly description: "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified.";
9961
+ readonly description: "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for equivalent blocks.";
9950
9962
  };
9951
9963
  readonly design: {
9952
9964
  readonly $ref: "#/$defs/Design";
package/dist/schemas.js CHANGED
@@ -92,20 +92,29 @@ var presentation = {
92
92
  ]
93
93
  },
94
94
  "audience": {
95
- "type": "array",
96
- "items": {
97
- "oneOf": [
98
- {
99
- "type": "string"
95
+ "oneOf": [
96
+ {
97
+ "type": "string"
98
+ },
99
+ {
100
+ "type": "array",
101
+ "items": {
102
+ "oneOf": [
103
+ {
104
+ "type": "string"
105
+ },
106
+ {
107
+ "$ref": "#/$defs/Audience"
108
+ }
109
+ ]
100
110
  },
101
- {
102
- "$ref": "#/$defs/Audience"
103
- }
104
- ]
105
- },
106
- "minItems": 1,
107
- "description": "Intended audiences for the presentation. Each item accepts either:\n- A string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.\n- An inline Audience object for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] \u2192 catalogs.audiences.source \u2192 default catalog at https://www.pptx.gallery/audiences.",
111
+ "minItems": 1
112
+ }
113
+ ],
114
+ "description": "Intended audiences for the presentation. Accepts either:\n- A single string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.\n- An array of string shorthands and/or inline Audience objects for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] \u2192 catalogs.audiences.source \u2192 default catalog at https://www.pptx.gallery/audiences.",
108
115
  "examples": [
116
+ "executives",
117
+ "Biology Students and Wildlife Enthusiasts",
109
118
  [
110
119
  "executives"
111
120
  ],
@@ -2460,7 +2469,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
2460
2469
  "items": {
2461
2470
  "$ref": "#/$defs/ListItem"
2462
2471
  },
2463
- "description": "Full-slide generic list payload. Presence of this field infers type 'list'."
2472
+ "description": "Full-slide generic list payload. Presence of this field infers type 'list'. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for layout-agnostic blocks."
2464
2473
  },
2465
2474
  "bullets": {
2466
2475
  "type": "array",
@@ -2530,7 +2539,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
2530
2539
  "items": {
2531
2540
  "$ref": "#/$defs/ContentPayload"
2532
2541
  },
2533
- "description": "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified."
2542
+ "description": "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for equivalent blocks."
2534
2543
  },
2535
2544
  "design": {
2536
2545
  "$ref": "#/$defs/Design",