@openpresentation/opf 0.26.9 → 0.27.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/README.md +6 -0
- package/dist/browser.js +20 -17
- package/dist/{chunk-H7XMO36O.js → chunk-353VBJ6K.js} +5 -5
- package/dist/chunk-43JWUIGF.js +8 -0
- package/dist/chunk-4ACS57MG.js +236 -0
- package/dist/{chunk-F4HFDP6I.js → chunk-4ZM5G3XX.js} +1 -1
- package/dist/{chunk-NVT2YDVC.js → chunk-7XUEKIXH.js} +2 -2
- package/dist/{chunk-Y25DYRME.js → chunk-ABFDFZIW.js} +1 -1
- package/dist/{chunk-A54NGT2K.js → chunk-APLNGCEZ.js} +2 -2
- package/dist/{chunk-G5WJMJV3.js → chunk-CXPBU5W4.js} +1 -1
- package/dist/{chunk-PHP45MO7.js → chunk-EO3JWEO5.js} +1 -1
- package/dist/chunk-GJO5NUVT.js +1 -0
- package/dist/chunk-GM7WFPGG.js +10 -0
- package/dist/{chunk-3S2XVDPN.js → chunk-GNKESMZT.js} +6 -6
- package/dist/chunk-JBARNYFR.js +23 -0
- package/dist/{chunk-TKQ2VFV5.js → chunk-JSHMFTSY.js} +1 -1
- package/dist/{chunk-VZBFQLCA.js → chunk-KZPZRHL6.js} +6 -6
- package/dist/{chunk-XRMV2GMB.js → chunk-LRTQXGJO.js} +236 -144
- package/dist/{chunk-EQ6S5SEZ.js → chunk-O3SA5SJ4.js} +1 -1
- package/dist/{chunk-GIWNHRTX.js → chunk-OSM3LZ2Y.js} +4 -4
- package/dist/{chunk-IVPA6NG6.js → chunk-PAGVSTVF.js} +348 -97
- package/dist/{chunk-Y4TZCE7R.js → chunk-SYW4BCGZ.js} +2 -2
- package/dist/{chunk-D25BNPTW.js → chunk-TMREBZBQ.js} +4 -4
- package/dist/{chunk-77KL2PMM.js → chunk-WJ4XTCOD.js} +2 -2
- package/dist/{chunk-XMCBFQPY.js → chunk-ZGTOZA2S.js} +6 -6
- package/dist/{composition-DIftf6iP.d.ts → composition-BGmpe5e4.d.ts} +51 -5
- package/dist/composition.d.ts +1 -1
- package/dist/composition.js +2 -1
- package/dist/{conversion-Bnx8mWl9.d.ts → conversion-8SQD4dqu.d.ts} +6 -6
- package/dist/conversion-LN6PFRZL.js +24 -0
- package/dist/convert.d.ts +2 -2
- package/dist/convert.js +9 -7
- package/dist/data.d.ts +1 -1
- package/dist/data.js +3 -2
- package/dist/{deck-report-5vwMGcQz.d.ts → deck-report-BaKgPh_N.d.ts} +2 -2
- package/dist/deck.d.ts +6 -6
- package/dist/deck.js +13 -11
- package/dist/diff.d.ts +1 -1
- package/dist/diff.js +6 -4
- package/dist/docs.js +8 -6
- package/dist/examples.d.ts +1 -1
- package/dist/examples.js +2 -0
- package/dist/{finding-l9dlQ2NF.d.ts → finding-Bh56sGtF.d.ts} +1 -1
- package/dist/font-policy.js +1 -0
- package/dist/format.js +3 -2
- package/dist/ids.d.ts +113 -0
- package/dist/ids.js +6 -0
- package/dist/index.d.ts +15 -12
- package/dist/index.js +24 -21
- package/dist/markdown.d.ts +4 -4
- package/dist/markdown.js +10 -8
- package/dist/node-engine.d.ts +8 -8
- package/dist/node-engine.js +24 -21
- package/dist/{pagination-D_kJe4jH.d.ts → pagination-BsUTsQvk.d.ts} +1 -1
- package/dist/pagination.d.ts +2 -2
- package/dist/pagination.js +6 -4
- package/dist/patch.d.ts +87 -4
- package/dist/patch.js +5 -3
- package/dist/precompiled.d.ts +2 -0
- package/dist/precompiled.js +7 -0
- package/dist/{presentation-Bwo8Ko6D.d.ts → presentation-C-nHZyMw.d.ts} +1 -1
- package/dist/repo-readme.js +2 -0
- package/dist/schema-engine-ajv.js +37 -0
- package/dist/schema-engine-precompiled.js +3 -0
- package/dist/schema.js +5 -3
- package/dist/schemas.js +2 -1
- package/dist/source.d.ts +1 -1
- package/dist/source.js +12 -10
- package/dist/spec/schemas/opf.schema.json +1 -1
- package/dist/spec-files.js +1 -0
- package/dist/symbol-font-encodings.js +2 -0
- package/dist/types.d.ts +2 -2
- package/dist/{validation-types-3ARvTsB0.d.ts → validation-types-6_jEaHeE.d.ts} +2 -2
- package/dist/validator.d.ts +5 -5
- package/dist/validator.js +5 -3
- package/dist/yaml.d.ts +4 -4
- package/dist/yaml.js +9 -7
- package/package.json +29 -8
- package/dist/conversion-63DPSXBJ.js +0 -21
package/dist/repo-readme.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import './chunk-GM7WFPGG.js';
|
|
2
|
+
|
|
1
3
|
// src/generated/repo-readme.ts
|
|
2
4
|
var repoReadmeRaw = '# Open Presentation Format (OPF)\n\n[](https://www.npmjs.com/package/@openpresentation/opf)\n[](https://www.npmjs.com/package/@openpresentation/opf)\n[](./LICENSE)\n[](https://github.com/OpenPresentation/opf/actions/workflows/ci.yml)\n[](https://github.com/OpenPresentation/opf/actions/workflows/nightly.yml)\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 integration docs for the 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\nFor AI agents, use the [OPF skill set](docs/agent-skills.md) for authoring, layout, presets, editing, export, and schema inspection.\n\nPublished CLI 0.18.0 installs all six skills into your project with `npx @openpresentation/cli@0.18.0 skills install`. It uses local copies, preserves existing instructions and refuses to overwrite customized skills. See the [installation and update guide](docs/agent-skills.md) for personal or agent-specific targets and source development.\n\nFor a fresh Node 24 project that installs **published** packages (not this\ncheckout), follow the [developer quickstart](docs/quickstart.md) and the\n[compatibility matrix](docs/compatibility-matrix.md).\n\nFor LLM authoring, start with [the authoring guide](docs/llm-authoring.md), [dynamic composition](docs/dynamic-composition.md), and [local ecosystem verification](docs/ecosystem-development.md).\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 coordinated published packages** on Node 24. See [the developer quickstart](docs/quickstart.md) for the currently recorded registry pin set: core, renderer, PPTX, editor, CLI and Gallery, all at the shared version 0.26.1. The default catalog is supplied by `@openpresentation/gallery@0.26.1`; see the [compatibility matrix](docs/compatibility-matrix.md) for feature and native limits.\n2. **Author, validate, paginate, preview and export.** New to OPF? Run the [first deck](docs/first-deck/README.md) end to end first. Copy [`docs/quickstart/developer-quickstart.opf.json`](./docs/quickstart/developer-quickstart.opf.json) and run the commands in that guide. From code, `convert("deck.opf.md", "deck.pdf")` of `@openpresentation/opf` is the simple path to a PDF, PNG, SVG or PPTX file. `validate` / `opf validate` is one local checker for format, references, accessibility, layout and content ([guide](docs/validate.md)), not visual verification.\n3. **Know the limits.** PPTX export writes one text box per wrapped line, so text edited in PowerPoint or Keynote does not reflow (see [rich text](docs/rich-text.md)) unless you opt in to `--body-text native` (opf-pptx and CLI 0.22.0 or later), and fonts are named, not embedded. The [compatibility matrix](docs/compatibility-matrix.md) lists shipped APIs versus renderer issue 24, native PowerPoint issue 87, and other deferred work. Browse presets at [pptx.gallery](https://pptx.gallery).\n\nYour deck can live in git from the first commit. After installing dependencies and supplying referenced assets, these commands run locally without a model provider, account or hosted OPF API.\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- register the pptx.gallery catalog of [`@openpresentation/gallery`](./packages/gallery) (a dependency, released with core at the same version) as the Node defaults, as the CLI does; a browser host registers it itself\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\nIn Node (and Bun and Deno) its root also reads and writes files (`convert`, `open`, `save`) and draws them through the optional engines below; in a browser or a worker the same import is a browser-safe build with the same names, where those three reject with `node-only`. Every other entry runs in a browser. It does not generate content with AI, fetch remote catalogs, call hosted APIs, or provide managed services. Render/edit/convert packages live in this repository as separate MIT packages that depend on `@openpresentation/opf`. The format package also exposes pure composition geometry so those packages share layout behavior.\n\n## Toolkit libraries\n\nOPF is six packages. **Core** (`@openpresentation/opf`) is the format and its API: it reads and writes the text formats (JSON, YAML, Markdown) and validates, and in Node reads and writes files, through the same import. **The gallery** (`@openpresentation/gallery`) is the pptx.gallery catalog of layouts, themes, colour and font schemes and the other records, released with the other packages; core depends on it and registers it in Node. **The CLI** (`@openpresentation/cli`) is the `opf` command. **Render** (`opf-render`), **PPTX** (`opf-pptx`) and **the editor** (`opf-editor`) are the engines: drawing, PowerPoint and editing, installed as needed. All six live in this repository (`packages/`) and are released together at one version. See [ecosystem development](docs/ecosystem-development.md) for local builds and verification, and [dynamic composition](docs/dynamic-composition.md) for portable layout rules.\n\n| Package | Role | Boundary |\n|---|---|---|\n| [`packages/javascript`](./packages/javascript) (`@openpresentation/opf`) | Core: format, schemas, validation, composition | The format and its API; reads and writes files in Node and draws through the optional engines |\n| [`packages/gallery`](./packages/gallery) (`@openpresentation/gallery`) | The pptx.gallery catalog | Catalog records only, no runtime dependency; records are authored by pull request here, and a changed drawing or a removed record needs a minor release |\n| [`packages/cli`](./packages/cli) (`@openpresentation/cli`) | `opf` command | Runs core\'s Node engine: reads and writes files and calls the engines below as optional peers |\n| [`packages/render`](./packages/render) (`@openpresentation/opf-render`) | OPF to SVG/PNG/PDF | Local and embeddable rendering library |\n| [`packages/editor`](./packages/editor) (`@openpresentation/opf-editor`) | WYSIWYG bindings/components | Headless editor primitives plus optional UI components |\n| [`packages/pptx`](./packages/pptx) (`@openpresentation/opf-pptx`) | OPF to PPTX and PPTX to OPF | Pure local import/export library for browser and server use where supported |\n\nThese packages 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 packages, clone this repo and build the workspace (all six packages are in `packages/`; see [CONTRIBUTING](./CONTRIBUTING.md)):\n\n```sh\npnpm install\npnpm build\n```\n\nUse the format package from JavaScript or TypeScript:\n\n```ts\nimport { presentation, validate } from "@openpresentation/opf";\nimport { gallery } from "@openpresentation/gallery";\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 report = validate(deck);\nconsole.log(report.valid); // no finding has severity "error"\nconsole.log(report.findings); // every finding: rule id, severity, category, JSON Pointer path, message, fixes\n// Core ships no catalog records; in Node, validate registers the gallery when a call names no catalogs, and a host may name its own.\nconsole.log(validate({ ...deck, design: { theme: "classic" } }, { catalogs: [gallery] }).valid);\nconsole.log(Object.keys(gallery.audiences).length);\n```\n\nConvert, open and save files in Node with `@openpresentation/opf`, the same import a browser uses (the engines `@openpresentation/opf-render` and `@openpresentation/opf-pptx` are optional peers, installed as needed; see [OPF files in Node](docs/node.md)):\n\n```ts\nimport * as opf from "@openpresentation/opf";\n\nawait opf.convert("deck.opf.md", "deck.pdf");\nconst deck = await opf.open("deck.opf.md");\ndeck.slides.push({ title: "Q4" });\nawait opf.save(deck, "deck.opf.md");\nconst { files } = await opf.convert(deck, { format: "pptx" }); // bytes, nothing written\n```\n\nUse focused imports when you only need one surface:\n\n```ts\nimport { presentation } from "@openpresentation/opf/schemas";\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 [installable OPF CLI](./packages/cli/README.md) to create, validate, and edit files locally:\n\n```sh\npnpm --filter @openpresentation/cli build\nnode packages/cli/dist/index.js create deck.opf.json --title "Decision brief"\nnode packages/cli/dist/index.js validate deck.opf.json\nnode packages/cli/dist/index.js edit deck.opf.json --patch changes.json --in-place\n```\n\nSee [CSV and JSON data import](./docs/data-import.md) for editable tables and charts in the editor, CLI, and package API, and [content conversions](./docs/conversions.md) for the pure converters (`@openpresentation/opf/convert`) that change a block\'s kind, nest list items, restructure a slide and split or merge slides, and [Markdown and outlines](./docs/markdown.md) for the deterministic Markdown dialect (`@openpresentation/opf/markdown`, `opf convert deck.md deck.opf.json`) that reads and writes a whole deck as text.\n\n[OPF as YAML](./docs/yaml.md) describes the strict YAML form of a deck (`@openpresentation/opf/yaml`, `opf convert deck.opf.json deck.opf.yaml`, `.opf.yaml` files in every command, editor autocomplete); JSON stays the canonical form. A deck can equally be a Markdown file, `deck.opf.md`: every command reads and writes it (see [Markdown decks in every command](./docs/markdown.md#markdown-decks-in-every-command)), and `parse` / `stringify` read and write a deck in JSON, YAML or Markdown with one call.\n\nSee [Templates and variables](./docs/templates-and-variables.md) for fillable OPF templates: typed variables, `{{id}}` tokens, `opf fill` and `resolveVariables`.\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/slide-design-principles.md`](./docs/slide-design-principles.md) | Timeless principles for slide layout, typography, spacing, visual balance, and reviewing layout defaults. |\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/slide-sizes.md`](./docs/slide-sizes.md) | OPF\'s slide-size presets in inches, points and EMU, how they compare with PowerPoint\'s presets, and what PPTX export and import do with them. |\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/footnotes-citations-captions.md`](./docs/footnotes-citations-captions.md) | Citations (`cite`), inline footnotes, the deck `references` list, captions on images, charts, tables and videos, and how every engine draws them. |\n| [`docs/examples.md`](./docs/examples.md) | Guide to the expanded scenario-oriented examples under `examples/gallery/`. |\n| [`docs/live-editor.md`](./docs/live-editor.md) | Browser canvas, live OPF editing, font loading, published packages, and current fidelity limits. |\n| [`docs/release-process.md`](./docs/release-process.md) | Maintainer runbook for the one-click release: gate, tag, trusted npm publishing of all six packages, verification, GitHub release notes, and the site bumps. |\n| [`spec/schemas/*.schema.json`](./spec/schemas) | Companion schemas for catalog records and sub-objects. |\n| [`packages/gallery`](./packages/gallery) (`@openpresentation/gallery`) | The default catalog and layout previews, released with the other packages. |\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) | Installable local CLI for creating, validating, editing, and inspecting OPF. |\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
5
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { installedSchemaEngine } from './chunk-43JWUIGF.js';
|
|
2
|
+
import { qualifyBranch } from './chunk-JBARNYFR.js';
|
|
3
|
+
import { schemas } from './chunk-4ZM5G3XX.js';
|
|
4
|
+
import './chunk-GM7WFPGG.js';
|
|
5
|
+
import Ajv2020 from 'ajv/dist/2020.js';
|
|
6
|
+
import addFormats from 'ajv-formats';
|
|
7
|
+
|
|
8
|
+
var ajv;
|
|
9
|
+
var branches = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
function getAjv() {
|
|
11
|
+
if (ajv) return ajv;
|
|
12
|
+
const instance = new Ajv2020({ allErrors: true, verbose: true, strict: false, allowUnionTypes: true });
|
|
13
|
+
addFormats(instance);
|
|
14
|
+
for (const schema of Object.values(schemas)) instance.addSchema(schema);
|
|
15
|
+
ajv = instance;
|
|
16
|
+
return instance;
|
|
17
|
+
}
|
|
18
|
+
var engine = {
|
|
19
|
+
root(name) {
|
|
20
|
+
const schema = schemas[name];
|
|
21
|
+
return getAjv().getSchema(schema.$id) ?? getAjv().compile(schema);
|
|
22
|
+
},
|
|
23
|
+
definition(name, definition) {
|
|
24
|
+
return getAjv().getSchema(`${schemas[name].$id}#/$defs/${definition}`);
|
|
25
|
+
},
|
|
26
|
+
branch(branch, rootId) {
|
|
27
|
+
let validate = branches.get(branch);
|
|
28
|
+
if (!validate) {
|
|
29
|
+
validate = getAjv().compile(qualifyBranch(branch, rootId));
|
|
30
|
+
branches.set(branch, validate);
|
|
31
|
+
}
|
|
32
|
+
return validate;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
var schemaEngine = () => installedSchemaEngine() ?? engine;
|
|
36
|
+
|
|
37
|
+
export { schemaEngine };
|
package/dist/schema.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export { COMMON_KEYS, UNRANKED_PRIORITY, activeSchema, catalogKindAt, createSchemaValue, describeField, isPromotedRegionKey, listSchemaFields, resolveSchema, schemaAtPath, schemaCatalogKinds, schemaLabel, schemaType, schemaVariants, splitOpfPath } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { COMMON_KEYS, UNRANKED_PRIORITY, activeSchema, catalogKindAt, createSchemaValue, describeField, isPromotedRegionKey, listSchemaFields, resolveSchema, schemaAtPath, schemaCatalogKinds, schemaLabel, schemaType, schemaVariants, splitOpfPath } from './chunk-PAGVSTVF.js';
|
|
2
|
+
import './chunk-JBARNYFR.js';
|
|
3
|
+
import './chunk-4ZM5G3XX.js';
|
|
4
|
+
import './chunk-LRTQXGJO.js';
|
|
5
|
+
import './chunk-GM7WFPGG.js';
|
package/dist/schemas.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-
|
|
1
|
+
export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-4ZM5G3XX.js';
|
|
2
|
+
import './chunk-GM7WFPGG.js';
|
package/dist/source.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as FindingLocation, F as Finding } from './finding-Bh56sGtF.js';
|
|
2
2
|
import { F as FindingTextContext, a as FindingText } from './explain-JSuESV-Y.js';
|
|
3
3
|
export { R as RuleExplanation, d as distance, e as explain, n as nearest, s as pointerSegments } from './explain-JSuESV-Y.js';
|
|
4
4
|
|
package/dist/source.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
export { explain } from './chunk-
|
|
2
|
-
import { readMarkdown, frontMatter, splitSegments, isOutline, NOTES, fenceStart, fenceClose, COMMENT } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import { splitLines } from './chunk-
|
|
5
|
-
export { analyzeYamlSyntax } from './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import { rememberByText, SLIDE_OPTION_KEYS, FENCE_KINDS, createLocator, parsePointer } from './chunk-
|
|
8
|
-
export { BLOCK_AS_VALUES, BLOCK_OPTION_KEYS, FENCE_ATTRIBUTES, FENCE_KINDS, LINE_KEYWORDS, METRIC_KEYS, PATTERN_PHRASES, SLIDE_OPTION_KEYS, SPAN_FLAGS, SPAN_VALUES, analyzeJsonSyntax, applyTextEdits, describeFinding, distance, nearest, segmentsOf as pointerSegments, starterValue } from './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
1
|
+
export { explain } from './chunk-CXPBU5W4.js';
|
|
2
|
+
import { readMarkdown, frontMatter, splitSegments, isOutline, NOTES, fenceStart, fenceClose, COMMENT } from './chunk-353VBJ6K.js';
|
|
3
|
+
import './chunk-EO3JWEO5.js';
|
|
4
|
+
import { splitLines } from './chunk-SYW4BCGZ.js';
|
|
5
|
+
export { analyzeYamlSyntax } from './chunk-SYW4BCGZ.js';
|
|
6
|
+
import './chunk-ABFDFZIW.js';
|
|
7
|
+
import { rememberByText, SLIDE_OPTION_KEYS, FENCE_KINDS, createLocator, parsePointer } from './chunk-PAGVSTVF.js';
|
|
8
|
+
export { BLOCK_AS_VALUES, BLOCK_OPTION_KEYS, FENCE_ATTRIBUTES, FENCE_KINDS, LINE_KEYWORDS, METRIC_KEYS, PATTERN_PHRASES, SLIDE_OPTION_KEYS, SPAN_FLAGS, SPAN_VALUES, analyzeJsonSyntax, applyTextEdits, describeFinding, distance, nearest, segmentsOf as pointerSegments, starterValue } from './chunk-PAGVSTVF.js';
|
|
9
|
+
import './chunk-JBARNYFR.js';
|
|
10
|
+
import './chunk-4ZM5G3XX.js';
|
|
11
|
+
import './chunk-LRTQXGJO.js';
|
|
12
|
+
import './chunk-GM7WFPGG.js';
|
|
11
13
|
import { findNodeAtOffset, getNodePath, parseTree } from 'jsonc-parser';
|
|
12
14
|
import { parseDocument, isMap, isSeq, isScalar, isAlias } from 'yaml';
|
|
13
15
|
|
|
@@ -3724,7 +3724,7 @@
|
|
|
3724
3724
|
"$ref": "#/$defs/TableCellBorder"
|
|
3725
3725
|
}
|
|
3726
3726
|
},
|
|
3727
|
-
"description": "Independent cell edges.
|
|
3727
|
+
"description": "Independent cell edges. An omitted edge keeps the table's default rule: a line under every row (and over the first row), none between columns. Width 0 removes an edge."
|
|
3728
3728
|
}
|
|
3729
3729
|
},
|
|
3730
3730
|
"description": "Cell appearance. Sizes use reference pixels at a 720-pixel canvas short edge and scale with the slide."
|
package/dist/spec-files.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { P as Presentation } from './presentation-
|
|
1
|
+
export { P as Presentation } from './presentation-C-nHZyMw.js';
|
|
2
2
|
export { C as CatalogKind } from './catalog-refs-BSfGELpt.js';
|
|
3
3
|
export { SchemaName } from './schemas.js';
|
|
4
|
-
export {
|
|
4
|
+
export { F as Finding, d as FindingCategory, e as FindingFix, f as FindingFocus, a as FindingLocation, b as FindingReport, c as FindingSeverity, g as FindingSuggestion, J as JsonPatchOperation, V as ValidationIssue } from './finding-Bh56sGtF.js';
|
|
5
5
|
import './json-BFSdESOE.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as Catalog } from './catalog-refs-BSfGELpt.js';
|
|
2
|
-
import { T as TextMeasurement } from './composition-
|
|
3
|
-
import { c as FindingSeverity,
|
|
2
|
+
import { T as TextMeasurement } from './composition-BGmpe5e4.js';
|
|
3
|
+
import { c as FindingSeverity, b as FindingReport } from './finding-Bh56sGtF.js';
|
|
4
4
|
import { J as JsonPrimitive } from './json-BFSdESOE.js';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/validator.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { C as CatalogRecordKind } from './catalog-schemas-DoxA2BgY.js';
|
|
2
|
-
import {
|
|
3
|
-
import { P as Presentation } from './presentation-
|
|
4
|
-
import { b as ValidationThresholds, c as ValidationRuleInfo, V as ValidationReport, a as ValidateOptions } from './validation-types-
|
|
5
|
-
export { C as Contract, d as ValidateFonts, e as ValidationCategory, f as ValidationChecks, g as ValidationRuleCost, v as validationCategories } from './validation-types-
|
|
2
|
+
import { F as Finding } from './finding-Bh56sGtF.js';
|
|
3
|
+
import { P as Presentation } from './presentation-C-nHZyMw.js';
|
|
4
|
+
import { b as ValidationThresholds, c as ValidationRuleInfo, V as ValidationReport, a as ValidateOptions } from './validation-types-6_jEaHeE.js';
|
|
5
|
+
export { C as Contract, d as ValidateFonts, e as ValidationCategory, f as ValidationChecks, g as ValidationRuleCost, v as validationCategories } from './validation-types-6_jEaHeE.js';
|
|
6
6
|
import './catalog-refs-BSfGELpt.js';
|
|
7
7
|
import './schemas.js';
|
|
8
8
|
import './json-BFSdESOE.js';
|
|
9
|
-
import './composition-
|
|
9
|
+
import './composition-BGmpe5e4.js';
|
|
10
10
|
import './chart-data-BnNqgnC-.js';
|
|
11
11
|
|
|
12
12
|
/**
|
package/dist/validator.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export { DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, findValidationRule, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-
|
|
2
|
-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, findValidationRule, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-PAGVSTVF.js';
|
|
2
|
+
import './chunk-JBARNYFR.js';
|
|
3
|
+
import './chunk-4ZM5G3XX.js';
|
|
4
|
+
export { promotedRegionKeys } from './chunk-LRTQXGJO.js';
|
|
5
|
+
import './chunk-GM7WFPGG.js';
|
package/dist/yaml.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as Catalog } from './catalog-refs-BSfGELpt.js';
|
|
2
|
-
import { P as Presentation } from './presentation-
|
|
3
|
-
import { a as ValidateOptions, V as ValidationReport } from './validation-types-
|
|
4
|
-
import {
|
|
5
|
-
import './composition-
|
|
2
|
+
import { P as Presentation } from './presentation-C-nHZyMw.js';
|
|
3
|
+
import { a as ValidateOptions, V as ValidationReport } from './validation-types-6_jEaHeE.js';
|
|
4
|
+
import { F as Finding, a as FindingLocation } from './finding-Bh56sGtF.js';
|
|
5
|
+
import './composition-BGmpe5e4.js';
|
|
6
6
|
import './chart-data-BnNqgnC-.js';
|
|
7
7
|
import './json-BFSdESOE.js';
|
|
8
8
|
|
package/dist/yaml.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
export { OPFYamlError, YAML_SCHEMA_URL, fromYaml, parseYamlData, scanYamlComments, toYaml } from './chunk-
|
|
1
|
+
export { OPFYamlError, YAML_SCHEMA_URL, fromYaml, parseYamlData, scanYamlComments, toYaml } from './chunk-KZPZRHL6.js';
|
|
2
|
+
import './chunk-O3SA5SJ4.js';
|
|
2
3
|
import './chunk-RYZPBJLB.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
4
|
+
import './chunk-SYW4BCGZ.js';
|
|
5
|
+
import './chunk-ABFDFZIW.js';
|
|
6
|
+
import './chunk-PAGVSTVF.js';
|
|
7
|
+
import './chunk-JBARNYFR.js';
|
|
8
|
+
import './chunk-4ZM5G3XX.js';
|
|
9
|
+
import './chunk-LRTQXGJO.js';
|
|
10
|
+
import './chunk-GM7WFPGG.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpresentation/opf",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Canonical Open Presentation Format schemas, TypeScript types, local validation and composition; in Node, the file API and the CLI defaults register the pptx.gallery catalog of @openpresentation/gallery.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Open Presentation",
|
|
@@ -26,7 +26,9 @@
|
|
|
26
26
|
"slides"
|
|
27
27
|
],
|
|
28
28
|
"type": "module",
|
|
29
|
-
"sideEffects":
|
|
29
|
+
"sideEffects": [
|
|
30
|
+
"./dist/precompiled.js"
|
|
31
|
+
],
|
|
30
32
|
"main": "./dist/index.js",
|
|
31
33
|
"types": "./dist/index.d.ts",
|
|
32
34
|
"exports": {
|
|
@@ -48,6 +50,10 @@
|
|
|
48
50
|
"types": "./dist/validator.d.ts",
|
|
49
51
|
"import": "./dist/validator.js"
|
|
50
52
|
},
|
|
53
|
+
"./precompiled": {
|
|
54
|
+
"types": "./dist/precompiled.d.ts",
|
|
55
|
+
"import": "./dist/precompiled.js"
|
|
56
|
+
},
|
|
51
57
|
"./types": {
|
|
52
58
|
"types": "./dist/types.d.ts",
|
|
53
59
|
"import": "./dist/types.js"
|
|
@@ -114,6 +120,10 @@
|
|
|
114
120
|
"types": "./dist/patch.d.ts",
|
|
115
121
|
"import": "./dist/patch.js"
|
|
116
122
|
},
|
|
123
|
+
"./ids": {
|
|
124
|
+
"types": "./dist/ids.d.ts",
|
|
125
|
+
"import": "./dist/ids.js"
|
|
126
|
+
},
|
|
117
127
|
"./diff": {
|
|
118
128
|
"types": "./dist/diff.d.ts",
|
|
119
129
|
"import": "./dist/diff.js"
|
|
@@ -131,6 +141,15 @@
|
|
|
131
141
|
"node": "./dist/node-engine.js"
|
|
132
142
|
}
|
|
133
143
|
},
|
|
144
|
+
"imports": {
|
|
145
|
+
"#schema-engine": {
|
|
146
|
+
"types": "./src/schema-engine-ajv.ts",
|
|
147
|
+
"workerd": "./dist/schema-engine-precompiled.js",
|
|
148
|
+
"worker": "./dist/schema-engine-precompiled.js",
|
|
149
|
+
"edge-light": "./dist/schema-engine-precompiled.js",
|
|
150
|
+
"default": "./dist/schema-engine-ajv.js"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
134
153
|
"files": [
|
|
135
154
|
"dist",
|
|
136
155
|
"README.md",
|
|
@@ -145,7 +164,7 @@
|
|
|
145
164
|
"ajv-formats": "^3.0.1",
|
|
146
165
|
"jsonc-parser": "3.3.1",
|
|
147
166
|
"yaml": "^2.9.1",
|
|
148
|
-
"@openpresentation/gallery": "^0.
|
|
167
|
+
"@openpresentation/gallery": "^0.27.0"
|
|
149
168
|
},
|
|
150
169
|
"devDependencies": {
|
|
151
170
|
"@expo-google-fonts/arimo": "0.4.3",
|
|
@@ -162,11 +181,12 @@
|
|
|
162
181
|
"pdf-lib": "1.17.1",
|
|
163
182
|
"sharp": "0.35.5",
|
|
164
183
|
"tsup": "^8.5.1",
|
|
165
|
-
"typescript": "~5.9.3"
|
|
184
|
+
"typescript": "~5.9.3",
|
|
185
|
+
"workerd": "1.20261014.1"
|
|
166
186
|
},
|
|
167
187
|
"peerDependencies": {
|
|
168
|
-
"@openpresentation/opf-pptx": "^0.
|
|
169
|
-
"@openpresentation/opf-render": "^0.
|
|
188
|
+
"@openpresentation/opf-pptx": "^0.27.0",
|
|
189
|
+
"@openpresentation/opf-render": "^0.27.0"
|
|
170
190
|
},
|
|
171
191
|
"peerDependenciesMeta": {
|
|
172
192
|
"@openpresentation/opf-pptx": {
|
|
@@ -180,11 +200,12 @@
|
|
|
180
200
|
"clean": "rm -rf dist src/generated",
|
|
181
201
|
"generate": "node scripts/generate.mjs && node scripts/generate-content.mjs",
|
|
182
202
|
"build:deps": "pnpm --filter \"@openpresentation/opf^...\" --fail-if-no-match run build",
|
|
183
|
-
"build": "node ../../scripts/reuse-build.mjs check || (pnpm run generate && tsup && node scripts/copy-spec.mjs && node ../../scripts/reuse-build.mjs stamp)",
|
|
203
|
+
"build": "node ../../scripts/reuse-build.mjs check || (pnpm run generate && tsup && node scripts/minify-precompiled.mjs && node scripts/copy-spec.mjs && node ../../scripts/reuse-build.mjs stamp)",
|
|
184
204
|
"typecheck": "pnpm run build:deps && pnpm run generate && node ../../scripts/typecheck.mjs --noEmit",
|
|
185
205
|
"test": "pnpm run build:deps && pnpm run build && node ../../scripts/run-tests.mjs",
|
|
206
|
+
"test:workerd": "pnpm run build:deps && pnpm run build && node --test test/workerd.test.mjs",
|
|
186
207
|
"test:packed": "node test/packed-install-smoke.mjs",
|
|
187
208
|
"pack:dry-run": "pnpm run build:deps && pnpm run build && npm pack --dry-run --cache /tmp/opf-npm-cache"
|
|
188
209
|
},
|
|
189
|
-
"gitHead": "
|
|
210
|
+
"gitHead": "f90536d0e9a7a16b25aa718e03ced4e00a7316e1"
|
|
190
211
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export { convertFiles, deckFileFormat, exportFormatOf, openDeck, planConversion, readInput, saveDeck, writePlanned } from './chunk-XMCBFQPY.js';
|
|
2
|
-
import './chunk-NVT2YDVC.js';
|
|
3
|
-
import './chunk-D25BNPTW.js';
|
|
4
|
-
import './chunk-UJSAR6GF.js';
|
|
5
|
-
import './chunk-PJSPHHRK.js';
|
|
6
|
-
import './chunk-TKQ2VFV5.js';
|
|
7
|
-
import './chunk-77KL2PMM.js';
|
|
8
|
-
import './chunk-GIWNHRTX.js';
|
|
9
|
-
import './chunk-3S2XVDPN.js';
|
|
10
|
-
import './chunk-VZBFQLCA.js';
|
|
11
|
-
import './chunk-RYZPBJLB.js';
|
|
12
|
-
import './chunk-G5WJMJV3.js';
|
|
13
|
-
import './chunk-H7XMO36O.js';
|
|
14
|
-
import './chunk-PHP45MO7.js';
|
|
15
|
-
import './chunk-Y4TZCE7R.js';
|
|
16
|
-
import './chunk-Y25DYRME.js';
|
|
17
|
-
import './chunk-A54NGT2K.js';
|
|
18
|
-
import './chunk-IVPA6NG6.js';
|
|
19
|
-
import './chunk-XRMV2GMB.js';
|
|
20
|
-
import './chunk-EQ6S5SEZ.js';
|
|
21
|
-
import './chunk-F4HFDP6I.js';
|