@openpresentation/opf 0.33.0 → 0.34.1
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 +3 -3
- package/dist/browser.js +20 -19
- package/dist/catalog-refs-CoIrOdAw.d.ts +937 -0
- package/dist/{catalog-schemas-CQTM-G8p.d.ts → catalog-schemas-FjLRPtjB.d.ts} +1 -1
- package/dist/{chart-data-oIZQlFGi.d.ts → chart-data-B_k-WTex.d.ts} +7 -4
- package/dist/{chunk-XIOC6N5P.js → chunk-244OPLAV.js} +1 -1
- package/dist/{chunk-KVHNDHVS.js → chunk-2B6GLT2O.js} +1 -1
- package/dist/{chunk-VMBLNCX2.js → chunk-6PMXVP5G.js} +117 -30
- package/dist/{chunk-BI4ERFAA.js → chunk-AAWHOCXS.js} +48 -13
- package/dist/{chunk-QD6DPS7X.js → chunk-ABA2D6X5.js} +2 -2
- package/dist/{chunk-UK3J6FSU.js → chunk-AEHDXNZX.js} +862 -269
- package/dist/{chunk-DAS75LGR.js → chunk-AGYPRTEC.js} +4 -4
- package/dist/chunk-BLCDUM7B.js +7 -0
- package/dist/{chunk-OPVJLL7H.js → chunk-CJVKOJ6B.js} +11841 -8687
- package/dist/{chunk-Y557TYML.js → chunk-CQXBGZQP.js} +19 -16
- package/dist/{chunk-VKEYV3ZK.js → chunk-FCSYIBVR.js} +2 -2
- package/dist/{chunk-PJSPHHRK.js → chunk-FK5XG742.js} +3 -16
- package/dist/{chunk-R6C6BQOG.js → chunk-HHVQ2SDT.js} +1 -1
- package/dist/{chunk-ABWEUXLV.js → chunk-L3MCLD3X.js} +117 -21
- package/dist/{chunk-QF5RSRXU.js → chunk-LCT5ZV3Q.js} +750 -199
- package/dist/{chunk-E7WQHMCL.js → chunk-MAFJ5O2D.js} +16 -14
- package/dist/{chunk-XANW7MB7.js → chunk-MUILZGRY.js} +4 -4
- package/dist/chunk-NLJFNCZ4.js +1560 -0
- package/dist/{chunk-VSBZC2PR.js → chunk-SR6T4LKI.js} +3 -3
- package/dist/chunk-UJZN2ZH6.js +1 -0
- package/dist/{chunk-IJXKVM4W.js → chunk-VDZXNNZF.js} +1 -1
- package/dist/{chunk-YYT6N7AI.js → chunk-WCPDN7AY.js} +1 -1
- package/dist/{chunk-S5QRGMUQ.js → chunk-X72WPTST.js} +6 -6
- package/dist/{chunk-INIMUBSE.js → chunk-XJUMFH33.js} +1 -1
- package/dist/{chunk-YS333HLA.js → chunk-XLSWZSQS.js} +2 -2
- package/dist/{composition-zMiIgzip.d.ts → composition-CvtvgBDE.d.ts} +1360 -1531
- package/dist/composition.d.ts +3 -3
- package/dist/composition.js +2 -1
- package/dist/conversion-CSQ5EHD2.js +25 -0
- package/dist/{conversion-mNth9XKm.d.ts → conversion-CyNRlWGw.d.ts} +25 -7
- package/dist/convert.d.ts +4 -4
- package/dist/convert.js +15 -11
- package/dist/data.d.ts +2 -2
- package/dist/data.js +3 -2
- package/dist/{deck-report-BSlRiR0_.d.ts → deck-report-BVlQZ42f.d.ts} +3 -3
- package/dist/deck.d.ts +6 -6
- package/dist/deck.js +12 -11
- package/dist/diagram-engine-eager.js +5 -1
- package/dist/diagram-engine-lazy.js +13 -0
- package/dist/diagram-plantuml-XRZ6VAOL.js +3 -0
- package/dist/diff.js +5 -4
- package/dist/docs.js +65 -53
- package/dist/examples.js +4070 -1083
- package/dist/font-policy.js +1 -1
- package/dist/format.js +2 -2
- package/dist/ids.js +5 -4
- package/dist/index.d.ts +18 -16
- package/dist/index.js +35 -24
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.js +9 -8
- package/dist/node-engine.d.ts +43 -11
- package/dist/node-engine.js +45 -26
- package/dist/{pagination-CYzNMazO.d.ts → pagination-CZQQYk7L.d.ts} +4 -3
- package/dist/pagination.d.ts +4 -4
- package/dist/pagination.js +5 -4
- package/dist/patch.js +4 -3
- package/dist/precompiled.js +2 -2
- package/dist/{presentation-CXhfpB_z.d.ts → presentation-s9262acV.d.ts} +357 -230
- package/dist/repo-readme.js +1 -1
- package/dist/schema-engine-ajv.js +1 -1
- package/dist/schema-engine-precompiled.js +2 -2
- package/dist/schema.d.ts +3 -3
- package/dist/schema.js +4 -3
- package/dist/schemas.d.ts +16 -0
- package/dist/schemas.js +1 -1
- package/dist/shape-engine-eager.js +2 -2
- package/dist/shape-engine-lazy.js +1 -1
- package/dist/{shape-engine-module-BK7JNEUV.js → shape-engine-module-N74FCHGY.js} +2 -2
- package/dist/shape-geometry.js +1 -1
- package/dist/source.d.ts +10 -5
- package/dist/source.js +11 -10
- package/dist/spec/reference/engine-vocabularies.json +135 -0
- package/dist/spec/reference/font-policy.json +3 -16
- package/dist/spec/reference/preset-geometry.json +3 -3
- package/dist/spec/schemas/icon-set.schema.json +1 -1
- package/dist/spec/schemas/layout.schema.json +71 -25
- package/dist/spec/schemas/opf.schema.json +540 -168
- package/dist/spec/schemas/theme.schema.json +11 -5
- package/dist/types.d.ts +81 -73
- package/dist/{validation-types-COwTel3H.d.ts → validation-types-CYbsUuZ9.d.ts} +8 -5
- package/dist/validator.d.ts +34 -7
- package/dist/validator.js +4 -3
- package/dist/yaml.d.ts +2 -2
- package/dist/yaml.js +8 -7
- package/package.json +6 -6
- package/dist/catalog-refs-B_0_vZg0.d.ts +0 -134
- package/dist/chunk-ZXOIGUHX.js +0 -1
- package/dist/conversion-POHRAMSN.js +0 -24
package/dist/repo-readme.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './chunk-PRXZD2II.js';
|
|
2
2
|
|
|
3
3
|
// src/generated/repo-readme.ts
|
|
4
|
-
var repoReadmeRaw = '<p align="center">\n <picture>\n <source media="(prefers-color-scheme: dark)" srcset="docs/brand/opf-logo-dark.svg">\n <img src="docs/brand/opf-logo.svg" alt="Open Presentation Format" width="64" height="64">\n </picture>\n</p>\n\n# 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\nThe published CLI installs all six skills into your project with `npx @openpresentation/cli 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.33.0. The default catalog is supplied by `@openpresentation/gallery@0.33.0`; 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 seven 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, color 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. **The MCP server** (`@openpresentation/mcp`, `npx -y @openpresentation/mcp`) lets an MCP-native agent learn OPF (docs, schemas, catalog, examples and skills as resources) and validate and convert decks. **Render** (`opf-render`), **PPTX** (`opf-pptx`) and **the editor** (`opf-editor`) are the engines: drawing, PowerPoint and editing, installed as needed. All seven 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 seven 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/diagrams.md`](./docs/diagrams.md) | Mermaid diagrams as a content kind: when to use one, the supported families, how the deck styles and sizes them, accessibility, export (native PowerPoint shapes by default) and limits. |\n| [`docs/shapes.md`](./docs/shapes.md) | Shapes: the 187 DrawingML presets as blocks, custom outlines, slide overlays and connectors, and how PowerPoint export and import carry them. |\n| [`docs/shape-effects.md`](./docs/shape-effects.md) | The six shape effects (shadow, glow, reflection, soft edge, blur, 3-D) and how each engine draws them. |\n| [`docs/smartart.md`](./docs/smartart.md) | The pyramid, matrix, cycle, chevrons, flow and vertical-flow layouts: live SmartArt in PowerPoint where it holds the text, native shapes elsewhere. |\n| [`docs/icons.md`](./docs/icons.md) | Icons on list entries, metrics and groups, icon cards, and the Lucide and Tabler icon sets in `@openpresentation/gallery/icon-sets`. |\n| [`docs/mcp.md`](./docs/mcp.md) | The MCP server (`npx -y @openpresentation/mcp`): tools, resources, and `show_deck`, which opens the OPF viewer in clients such as Claude. |\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 seven 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';
|
|
4
|
+
var repoReadmeRaw = '<p align="center">\n <picture>\n <source media="(prefers-color-scheme: dark)" srcset="docs/brand/opf-logo-dark.svg">\n <img src="docs/brand/opf-logo.svg" alt="Open Presentation Format" width="64" height="64">\n </picture>\n</p>\n\n# 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. The engine runs in the caller\u2019s environment; hosts choose their own rendering, storage and application infrastructure. The [MCP server](docs/mcp.md) has local stdio and hosted transport options, with viewer availability determined separately by the client and deployment.\n\nFor AI agents, use the [OPF skill set](docs/agent-skills.md) for authoring, layout, presets, editing, export, and schema inspection.\n\nThe published CLI installs all six skills into your project with `npx @openpresentation/cli 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 registry-derived pin set: core, renderer, PPTX, editor, CLI and Gallery use one completed shared release, retained with `--save-exact` and the lockfile. The optional seventh package, `@openpresentation/mcp`, supplies the [MCP server and viewer](docs/mcp.md). The default catalog is supplied by the matching `@openpresentation/gallery` release; 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 seven 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, color 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. **The MCP server** (`@openpresentation/mcp`, `npx -y @openpresentation/mcp`) lets an MCP-native agent learn OPF (docs, schemas, catalog, examples and skills as resources) and validate and convert decks. **Render** (`opf-render`), **PPTX** (`opf-pptx`) and **the editor** (`opf-editor`) are the engines: drawing, PowerPoint and editing, installed as needed. All seven 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/mcp`](./packages/mcp) (`@openpresentation/mcp`) | MCP server and viewer | Docs, schemas, catalog lookup, validation, conversion and `show_deck` for MCP clients |\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 seven 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/diagrams.md`](./docs/diagrams.md) | Mermaid, Graphviz DOT and PlantUML diagrams as a content kind: when to use one, the supported families, how the deck styles and sizes them, accessibility, export (native PowerPoint shapes by default) and limits. |\n| [`docs/shapes.md`](./docs/shapes.md) | Shapes: the 187 DrawingML presets as blocks, custom outlines, slide overlays and connectors, and how PowerPoint export and import carry them. |\n| [`docs/shape-effects.md`](./docs/shape-effects.md) | The six shape effects (shadow, glow, reflection, soft edge, blur, 3-D) and how each engine draws them. |\n| [`docs/smartart.md`](./docs/smartart.md) | The pyramid, matrix, cycle, chevrons, flow and vertical-flow layouts: live SmartArt in PowerPoint where it holds the text, native shapes elsewhere. |\n| [`docs/icons.md`](./docs/icons.md) | Icons on list entries, metrics and groups, icon cards, and the Lucide and Tabler icon sets in `@openpresentation/gallery/icon-sets`. |\n| [`docs/mcp.md`](./docs/mcp.md) | The MCP server (`npx -y @openpresentation/mcp`): tools, resources, and `show_deck`, which opens the OPF viewer in clients such as Claude. |\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 seven 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';
|
|
5
5
|
|
|
6
6
|
// src/repo-readme.ts
|
|
7
7
|
var repoReadme = repoReadmeRaw;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installedSchemaEngine } from './chunk-43JWUIGF.js';
|
|
2
2
|
import { qualifyBranch } from './chunk-JBARNYFR.js';
|
|
3
|
-
import { schemas } from './chunk-
|
|
3
|
+
import { schemas } from './chunk-LCT5ZV3Q.js';
|
|
4
4
|
import './chunk-PRXZD2II.js';
|
|
5
5
|
import Ajv2020 from 'ajv/dist/2020.js';
|
|
6
6
|
import addFormats from 'ajv-formats';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { precompiledMarker, schemaEngine } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { precompiledMarker, schemaEngine } from './chunk-UJZN2ZH6.js';
|
|
2
|
+
import './chunk-LCT5ZV3Q.js';
|
|
3
3
|
import './chunk-PRXZD2II.js';
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CatalogRecordKind } from './catalog-schemas-
|
|
1
|
+
import { C as CatalogRecordKind } from './catalog-schemas-FjLRPtjB.js';
|
|
2
2
|
import { SchemaName } from './schemas.js';
|
|
3
|
-
import './catalog-refs-
|
|
3
|
+
import './catalog-refs-CoIrOdAw.js';
|
|
4
4
|
import './json-BFSdESOE.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -79,7 +79,7 @@ declare const COMMON_KEYS: Readonly<{
|
|
|
79
79
|
}>;
|
|
80
80
|
/** The sort position of a key that is in no `COMMON_KEYS` list. */
|
|
81
81
|
declare const UNRANKED_PRIORITY = 1000000;
|
|
82
|
-
/** Whether a slide key is a promoted region (`
|
|
82
|
+
/** Whether a slide key is a promoted region (`start`, `top+middle`, `top+middle:start+center`, ...): 48 keys of the slide schema, all `advanced`. */
|
|
83
83
|
declare function isPromotedRegionKey(key: string): boolean;
|
|
84
84
|
|
|
85
85
|
interface EnumValue {
|
package/dist/schema.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { COMMON_KEYS, UNRANKED_PRIORITY, activeSchema, catalogKindAt, createSchemaValue, describeField, isPromotedRegionKey, listSchemaFields, resolveSchema, schemaAtPath, schemaCatalogKinds, schemaLabel, schemaType, schemaVariants, splitOpfPath } from './chunk-
|
|
1
|
+
export { COMMON_KEYS, UNRANKED_PRIORITY, activeSchema, catalogKindAt, createSchemaValue, describeField, isPromotedRegionKey, listSchemaFields, resolveSchema, schemaAtPath, schemaCatalogKinds, schemaLabel, schemaType, schemaVariants, splitOpfPath } from './chunk-AEHDXNZX.js';
|
|
2
2
|
import './chunk-JBARNYFR.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-LCT5ZV3Q.js';
|
|
4
|
+
import './chunk-CJVKOJ6B.js';
|
|
5
|
+
import './chunk-BLCDUM7B.js';
|
|
5
6
|
import './chunk-PRXZD2II.js';
|
package/dist/schemas.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ declare const presentation: JsonSchemaDocument & {
|
|
|
4
4
|
readonly $defs: {
|
|
5
5
|
readonly "Assets": JsonObject;
|
|
6
6
|
readonly "Asset": JsonObject;
|
|
7
|
+
readonly "ImagePayload": JsonObject;
|
|
8
|
+
readonly "ImageCallout": JsonObject;
|
|
7
9
|
readonly "Audience": JsonObject;
|
|
8
10
|
readonly "Purpose": JsonObject;
|
|
9
11
|
readonly "Language": JsonObject;
|
|
@@ -66,6 +68,9 @@ declare const presentation: JsonSchemaDocument & {
|
|
|
66
68
|
readonly "OverlayAnchor": JsonObject;
|
|
67
69
|
readonly "Connector": JsonObject;
|
|
68
70
|
readonly "Slide": JsonObject;
|
|
71
|
+
readonly "ImageBlockOption": JsonObject;
|
|
72
|
+
readonly "ImageOrShapeBlockOption": JsonObject;
|
|
73
|
+
readonly "ShapeBlockOption": JsonObject;
|
|
69
74
|
readonly "ContentPayload": JsonObject;
|
|
70
75
|
readonly "Quote": JsonObject;
|
|
71
76
|
readonly "Code": JsonObject;
|
|
@@ -81,6 +86,9 @@ declare const presentation: JsonSchemaDocument & {
|
|
|
81
86
|
readonly "TextRun": JsonObject;
|
|
82
87
|
readonly "Caption": JsonObject;
|
|
83
88
|
readonly "Reference": JsonObject;
|
|
89
|
+
readonly "FiniteNumber": JsonObject;
|
|
90
|
+
readonly "Line": JsonObject;
|
|
91
|
+
readonly "ChartReferenceLine": JsonObject;
|
|
84
92
|
readonly "Chart": JsonObject;
|
|
85
93
|
readonly "ChartAxisTitles": JsonObject;
|
|
86
94
|
readonly "ChartHighlight": JsonObject;
|
|
@@ -160,6 +168,8 @@ declare const schemas: {
|
|
|
160
168
|
readonly $defs: {
|
|
161
169
|
readonly "Assets": JsonObject;
|
|
162
170
|
readonly "Asset": JsonObject;
|
|
171
|
+
readonly "ImagePayload": JsonObject;
|
|
172
|
+
readonly "ImageCallout": JsonObject;
|
|
163
173
|
readonly "Audience": JsonObject;
|
|
164
174
|
readonly "Purpose": JsonObject;
|
|
165
175
|
readonly "Language": JsonObject;
|
|
@@ -222,6 +232,9 @@ declare const schemas: {
|
|
|
222
232
|
readonly "OverlayAnchor": JsonObject;
|
|
223
233
|
readonly "Connector": JsonObject;
|
|
224
234
|
readonly "Slide": JsonObject;
|
|
235
|
+
readonly "ImageBlockOption": JsonObject;
|
|
236
|
+
readonly "ImageOrShapeBlockOption": JsonObject;
|
|
237
|
+
readonly "ShapeBlockOption": JsonObject;
|
|
225
238
|
readonly "ContentPayload": JsonObject;
|
|
226
239
|
readonly "Quote": JsonObject;
|
|
227
240
|
readonly "Code": JsonObject;
|
|
@@ -237,6 +250,9 @@ declare const schemas: {
|
|
|
237
250
|
readonly "TextRun": JsonObject;
|
|
238
251
|
readonly "Caption": JsonObject;
|
|
239
252
|
readonly "Reference": JsonObject;
|
|
253
|
+
readonly "FiniteNumber": JsonObject;
|
|
254
|
+
readonly "Line": JsonObject;
|
|
255
|
+
readonly "ChartReferenceLine": JsonObject;
|
|
240
256
|
readonly "Chart": JsonObject;
|
|
241
257
|
readonly "ChartAxisTitles": JsonObject;
|
|
242
258
|
readonly "ChartHighlight": JsonObject;
|
package/dist/schemas.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { audience, chartType, colorScheme, fontScheme, iconSet, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-
|
|
1
|
+
export { audience, chartType, colorScheme, fontScheme, iconSet, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-LCT5ZV3Q.js';
|
|
2
2
|
import './chunk-PRXZD2II.js';
|
|
@@ -5,7 +5,7 @@ var loaded;
|
|
|
5
5
|
var loading;
|
|
6
6
|
var shapeGeometry = () => loaded;
|
|
7
7
|
function loadShapeGeometry() {
|
|
8
|
-
loading ??= import('./shape-engine-module-
|
|
8
|
+
loading ??= import('./shape-engine-module-N74FCHGY.js').then((module) => loaded = module);
|
|
9
9
|
return loading;
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { sketchPathData, sketchSeed, starOutline } from './chunk-
|
|
2
|
-
export { PRESET_SHAPES, adjustFromDrawingML, adjustToDrawingML, customGeometry, evaluateGuideFormula, flattenShapePath, isPresetShape, presetAdjustments, presetGeometry } from './chunk-
|
|
1
|
+
export { sketchPathData, sketchSeed, starOutline } from './chunk-VDZXNNZF.js';
|
|
2
|
+
export { PRESET_SHAPES, adjustFromDrawingML, adjustToDrawingML, customGeometry, evaluateGuideFormula, flattenShapePath, isPresetShape, presetAdjustments, presetGeometry } from './chunk-WCPDN7AY.js';
|
|
3
3
|
import './chunk-PRXZD2II.js';
|
package/dist/shape-geometry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { PRESET_SHAPES, adjustFromDrawingML, adjustToDrawingML, customGeometry, evaluateGuideFormula, flattenShapePath, isPresetShape, presetAdjustments, presetGeometry } from './chunk-
|
|
1
|
+
export { PRESET_SHAPES, adjustFromDrawingML, adjustToDrawingML, customGeometry, evaluateGuideFormula, flattenShapePath, isPresetShape, presetAdjustments, presetGeometry } from './chunk-WCPDN7AY.js';
|
|
2
2
|
import './chunk-PRXZD2II.js';
|
package/dist/source.d.ts
CHANGED
|
@@ -3,19 +3,24 @@ import { F as FindingTextContext, a as FindingText } from './explain-iZeNOUc6.js
|
|
|
3
3
|
export { R as RuleExplanation, d as distance, e as explain, n as nearest, s as pointerSegments } from './explain-iZeNOUc6.js';
|
|
4
4
|
|
|
5
5
|
/** Keys of `<!-- slide: ... -->`. */
|
|
6
|
-
declare const SLIDE_OPTION_KEYS: readonly ["id", "type", "layout", "section", "tag", "hidden", "beat"];
|
|
6
|
+
declare const SLIDE_OPTION_KEYS: readonly ["id", "type", "layout", "section", "tag", "hidden", "beat", "language"];
|
|
7
7
|
/** Keys of `<!-- block: ... -->`. */
|
|
8
8
|
declare const BLOCK_OPTION_KEYS: readonly ["id", "type", "as", "region"];
|
|
9
9
|
/** Values of `as=` in a block options comment. */
|
|
10
10
|
declare const BLOCK_AS_VALUES: readonly ["bullets", "video"];
|
|
11
|
-
/**
|
|
12
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The first word of a fence info string that is not code: `chart`, `metric`, `timeline`, `mermaid`, `dot` and `plantuml` (a diagram in that syntax)
|
|
13
|
+
* and the two YAML escape hatches.
|
|
14
|
+
*/
|
|
15
|
+
declare const FENCE_KINDS: readonly ["chart", "metric", "timeline", "mermaid", "dot", "plantuml", "opf-block", "opf-slide"];
|
|
13
16
|
/** Lines of a ```metric fence: `key: value`. */
|
|
14
17
|
declare const METRIC_KEYS: readonly ["value", "label", "description", "unit", "delta", "trend", "sentiment"];
|
|
15
|
-
/** Attributes after the info word: `chart` and
|
|
18
|
+
/** Attributes after the info word: `chart` and the diagram fences take `alt`, `timeline` `name` and `description`, a code fence `title`. */
|
|
16
19
|
declare const FENCE_ATTRIBUTES: {
|
|
17
20
|
readonly chart: readonly ["alt"];
|
|
18
21
|
readonly mermaid: readonly ["alt"];
|
|
22
|
+
readonly dot: readonly ["alt"];
|
|
23
|
+
readonly plantuml: readonly ["alt"];
|
|
19
24
|
readonly timeline: readonly ["name", "description"];
|
|
20
25
|
readonly code: readonly ["title"];
|
|
21
26
|
};
|
|
@@ -201,7 +206,7 @@ declare function scanMarkdown(source: string, options?: ScanMarkdownOptions): Ma
|
|
|
201
206
|
* `validate` returns findings written for tools (an Ajv sentence such as "must be equal to one of the allowed values", a rule's own sentence, `help`
|
|
202
207
|
* text for agents). An editor, the CLI or an agent that shows them to a person wants the sentence of artifacts/source-editor/VALIDATOR-HINTS.md:
|
|
203
208
|
*
|
|
204
|
-
* `titleAlignment` must be
|
|
209
|
+
* `titleAlignment` must be start, center or end, but is `middle`. (message)
|
|
205
210
|
* did you mean `center`? (next)
|
|
206
211
|
*
|
|
207
212
|
* The text is written from the structured data a finding already carries (the schema keyword and its parameters, the suggestions, the measured
|
package/dist/source.js
CHANGED
|
@@ -1,14 +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-
|
|
1
|
+
export { explain } from './chunk-AAWHOCXS.js';
|
|
2
|
+
import { readMarkdown, frontMatter, splitSegments, isOutline, NOTES, fenceStart, fenceClose, COMMENT } from './chunk-CQXBGZQP.js';
|
|
3
|
+
import './chunk-2B6GLT2O.js';
|
|
4
|
+
import { splitLines } from './chunk-ABA2D6X5.js';
|
|
5
|
+
export { analyzeYamlSyntax } from './chunk-ABA2D6X5.js';
|
|
6
|
+
import './chunk-FCSYIBVR.js';
|
|
7
|
+
import { rememberByText, SLIDE_OPTION_KEYS, FENCE_KINDS, createLocator, parsePointer } from './chunk-AEHDXNZX.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-AEHDXNZX.js';
|
|
9
9
|
import './chunk-JBARNYFR.js';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
10
|
+
import './chunk-LCT5ZV3Q.js';
|
|
11
|
+
import './chunk-CJVKOJ6B.js';
|
|
12
|
+
import './chunk-BLCDUM7B.js';
|
|
12
13
|
import './chunk-PRXZD2II.js';
|
|
13
14
|
import { findNodeAtOffset, getNodePath, parseTree } from 'jsonc-parser';
|
|
14
15
|
import { parseDocument, isMap, isSeq, isScalar, isAlias } from 'yaml';
|
|
@@ -147,6 +147,11 @@
|
|
|
147
147
|
"major": "Noto Naskh Arabic",
|
|
148
148
|
"minor": "Noto Naskh Arabic"
|
|
149
149
|
}
|
|
150
|
+
},
|
|
151
|
+
"timelineStatusWords": {
|
|
152
|
+
"done": "مكتمل",
|
|
153
|
+
"current": "حالي",
|
|
154
|
+
"planned": "مخطط"
|
|
150
155
|
}
|
|
151
156
|
},
|
|
152
157
|
{
|
|
@@ -307,6 +312,11 @@
|
|
|
307
312
|
"major": "Noto Sans SC",
|
|
308
313
|
"minor": "Noto Sans SC"
|
|
309
314
|
}
|
|
315
|
+
},
|
|
316
|
+
"timelineStatusWords": {
|
|
317
|
+
"done": "已完成",
|
|
318
|
+
"current": "当前",
|
|
319
|
+
"planned": "计划"
|
|
310
320
|
}
|
|
311
321
|
},
|
|
312
322
|
{
|
|
@@ -323,6 +333,11 @@
|
|
|
323
333
|
"major": "Noto Sans TC",
|
|
324
334
|
"minor": "Noto Sans TC"
|
|
325
335
|
}
|
|
336
|
+
},
|
|
337
|
+
"timelineStatusWords": {
|
|
338
|
+
"done": "已完成",
|
|
339
|
+
"current": "目前",
|
|
340
|
+
"planned": "計畫"
|
|
326
341
|
}
|
|
327
342
|
},
|
|
328
343
|
{
|
|
@@ -371,6 +386,11 @@
|
|
|
371
386
|
"major": "Roboto",
|
|
372
387
|
"minor": "Roboto"
|
|
373
388
|
}
|
|
389
|
+
},
|
|
390
|
+
"timelineStatusWords": {
|
|
391
|
+
"done": "Dokončeno",
|
|
392
|
+
"current": "Aktuální",
|
|
393
|
+
"planned": "Plánováno"
|
|
374
394
|
}
|
|
375
395
|
},
|
|
376
396
|
{
|
|
@@ -387,6 +407,11 @@
|
|
|
387
407
|
"major": "Roboto",
|
|
388
408
|
"minor": "Roboto"
|
|
389
409
|
}
|
|
410
|
+
},
|
|
411
|
+
"timelineStatusWords": {
|
|
412
|
+
"done": "Udført",
|
|
413
|
+
"current": "Aktuelt",
|
|
414
|
+
"planned": "Planlagt"
|
|
390
415
|
}
|
|
391
416
|
},
|
|
392
417
|
{
|
|
@@ -403,6 +428,11 @@
|
|
|
403
428
|
"major": "Roboto",
|
|
404
429
|
"minor": "Roboto"
|
|
405
430
|
}
|
|
431
|
+
},
|
|
432
|
+
"timelineStatusWords": {
|
|
433
|
+
"done": "Afgerond",
|
|
434
|
+
"current": "Huidig",
|
|
435
|
+
"planned": "Gepland"
|
|
406
436
|
}
|
|
407
437
|
},
|
|
408
438
|
{
|
|
@@ -419,6 +449,11 @@
|
|
|
419
449
|
"major": "Roboto",
|
|
420
450
|
"minor": "Roboto"
|
|
421
451
|
}
|
|
452
|
+
},
|
|
453
|
+
"timelineStatusWords": {
|
|
454
|
+
"done": "Done",
|
|
455
|
+
"current": "Current",
|
|
456
|
+
"planned": "Planned"
|
|
422
457
|
}
|
|
423
458
|
},
|
|
424
459
|
{
|
|
@@ -547,6 +582,11 @@
|
|
|
547
582
|
"major": "Roboto",
|
|
548
583
|
"minor": "Roboto"
|
|
549
584
|
}
|
|
585
|
+
},
|
|
586
|
+
"timelineStatusWords": {
|
|
587
|
+
"done": "Valmis",
|
|
588
|
+
"current": "Nykyinen",
|
|
589
|
+
"planned": "Suunniteltu"
|
|
550
590
|
}
|
|
551
591
|
},
|
|
552
592
|
{
|
|
@@ -563,6 +603,11 @@
|
|
|
563
603
|
"major": "Roboto",
|
|
564
604
|
"minor": "Roboto"
|
|
565
605
|
}
|
|
606
|
+
},
|
|
607
|
+
"timelineStatusWords": {
|
|
608
|
+
"done": "Terminé",
|
|
609
|
+
"current": "En cours",
|
|
610
|
+
"planned": "Prévu"
|
|
566
611
|
}
|
|
567
612
|
},
|
|
568
613
|
{
|
|
@@ -627,6 +672,11 @@
|
|
|
627
672
|
"major": "Roboto",
|
|
628
673
|
"minor": "Roboto"
|
|
629
674
|
}
|
|
675
|
+
},
|
|
676
|
+
"timelineStatusWords": {
|
|
677
|
+
"done": "Abgeschlossen",
|
|
678
|
+
"current": "Aktuell",
|
|
679
|
+
"planned": "Geplant"
|
|
630
680
|
}
|
|
631
681
|
},
|
|
632
682
|
{
|
|
@@ -643,6 +693,11 @@
|
|
|
643
693
|
"major": "Noto Sans",
|
|
644
694
|
"minor": "Noto Sans"
|
|
645
695
|
}
|
|
696
|
+
},
|
|
697
|
+
"timelineStatusWords": {
|
|
698
|
+
"done": "Ολοκληρώθηκε",
|
|
699
|
+
"current": "Τρέχον",
|
|
700
|
+
"planned": "Προγραμματισμένο"
|
|
646
701
|
}
|
|
647
702
|
},
|
|
648
703
|
{
|
|
@@ -691,6 +746,11 @@
|
|
|
691
746
|
"major": "Noto Sans Hebrew",
|
|
692
747
|
"minor": "Noto Sans Hebrew"
|
|
693
748
|
}
|
|
749
|
+
},
|
|
750
|
+
"timelineStatusWords": {
|
|
751
|
+
"done": "הושלם",
|
|
752
|
+
"current": "נוכחי",
|
|
753
|
+
"planned": "מתוכנן"
|
|
694
754
|
}
|
|
695
755
|
},
|
|
696
756
|
{
|
|
@@ -707,6 +767,11 @@
|
|
|
707
767
|
"major": "Noto Sans Devanagari",
|
|
708
768
|
"minor": "Noto Sans Devanagari"
|
|
709
769
|
}
|
|
770
|
+
},
|
|
771
|
+
"timelineStatusWords": {
|
|
772
|
+
"done": "पूर्ण",
|
|
773
|
+
"current": "वर्तमान",
|
|
774
|
+
"planned": "नियोजित"
|
|
710
775
|
}
|
|
711
776
|
},
|
|
712
777
|
{
|
|
@@ -755,6 +820,11 @@
|
|
|
755
820
|
"major": "Roboto",
|
|
756
821
|
"minor": "Roboto"
|
|
757
822
|
}
|
|
823
|
+
},
|
|
824
|
+
"timelineStatusWords": {
|
|
825
|
+
"done": "Selesai",
|
|
826
|
+
"current": "Saat ini",
|
|
827
|
+
"planned": "Direncanakan"
|
|
758
828
|
}
|
|
759
829
|
},
|
|
760
830
|
{
|
|
@@ -771,6 +841,11 @@
|
|
|
771
841
|
"major": "Roboto",
|
|
772
842
|
"minor": "Roboto"
|
|
773
843
|
}
|
|
844
|
+
},
|
|
845
|
+
"timelineStatusWords": {
|
|
846
|
+
"done": "Completato",
|
|
847
|
+
"current": "Attuale",
|
|
848
|
+
"planned": "Pianificato"
|
|
774
849
|
}
|
|
775
850
|
},
|
|
776
851
|
{
|
|
@@ -787,6 +862,11 @@
|
|
|
787
862
|
"major": "Noto Sans JP",
|
|
788
863
|
"minor": "Noto Sans JP"
|
|
789
864
|
}
|
|
865
|
+
},
|
|
866
|
+
"timelineStatusWords": {
|
|
867
|
+
"done": "完了",
|
|
868
|
+
"current": "現在",
|
|
869
|
+
"planned": "予定"
|
|
790
870
|
}
|
|
791
871
|
},
|
|
792
872
|
{
|
|
@@ -867,6 +947,11 @@
|
|
|
867
947
|
"major": "Noto Sans KR",
|
|
868
948
|
"minor": "Noto Sans KR"
|
|
869
949
|
}
|
|
950
|
+
},
|
|
951
|
+
"timelineStatusWords": {
|
|
952
|
+
"done": "완료",
|
|
953
|
+
"current": "현재",
|
|
954
|
+
"planned": "예정"
|
|
870
955
|
}
|
|
871
956
|
},
|
|
872
957
|
{
|
|
@@ -1059,6 +1144,11 @@
|
|
|
1059
1144
|
"major": "Roboto",
|
|
1060
1145
|
"minor": "Roboto"
|
|
1061
1146
|
}
|
|
1147
|
+
},
|
|
1148
|
+
"timelineStatusWords": {
|
|
1149
|
+
"done": "Fullført",
|
|
1150
|
+
"current": "Nåværende",
|
|
1151
|
+
"planned": "Planlagt"
|
|
1062
1152
|
}
|
|
1063
1153
|
},
|
|
1064
1154
|
{
|
|
@@ -1139,6 +1229,11 @@
|
|
|
1139
1229
|
"major": "Roboto",
|
|
1140
1230
|
"minor": "Roboto"
|
|
1141
1231
|
}
|
|
1232
|
+
},
|
|
1233
|
+
"timelineStatusWords": {
|
|
1234
|
+
"done": "Ukończono",
|
|
1235
|
+
"current": "Obecnie",
|
|
1236
|
+
"planned": "Zaplanowano"
|
|
1142
1237
|
}
|
|
1143
1238
|
},
|
|
1144
1239
|
{
|
|
@@ -1155,6 +1250,11 @@
|
|
|
1155
1250
|
"major": "Roboto",
|
|
1156
1251
|
"minor": "Roboto"
|
|
1157
1252
|
}
|
|
1253
|
+
},
|
|
1254
|
+
"timelineStatusWords": {
|
|
1255
|
+
"done": "Concluído",
|
|
1256
|
+
"current": "Atual",
|
|
1257
|
+
"planned": "Planejado"
|
|
1158
1258
|
}
|
|
1159
1259
|
},
|
|
1160
1260
|
{
|
|
@@ -1219,6 +1319,11 @@
|
|
|
1219
1319
|
"major": "Noto Sans",
|
|
1220
1320
|
"minor": "Noto Sans"
|
|
1221
1321
|
}
|
|
1322
|
+
},
|
|
1323
|
+
"timelineStatusWords": {
|
|
1324
|
+
"done": "Завершено",
|
|
1325
|
+
"current": "Сейчас",
|
|
1326
|
+
"planned": "Запланировано"
|
|
1222
1327
|
}
|
|
1223
1328
|
},
|
|
1224
1329
|
{
|
|
@@ -1331,6 +1436,11 @@
|
|
|
1331
1436
|
"major": "Roboto",
|
|
1332
1437
|
"minor": "Roboto"
|
|
1333
1438
|
}
|
|
1439
|
+
},
|
|
1440
|
+
"timelineStatusWords": {
|
|
1441
|
+
"done": "Completado",
|
|
1442
|
+
"current": "Actual",
|
|
1443
|
+
"planned": "Previsto"
|
|
1334
1444
|
}
|
|
1335
1445
|
},
|
|
1336
1446
|
{
|
|
@@ -1363,6 +1473,11 @@
|
|
|
1363
1473
|
"major": "Roboto",
|
|
1364
1474
|
"minor": "Roboto"
|
|
1365
1475
|
}
|
|
1476
|
+
},
|
|
1477
|
+
"timelineStatusWords": {
|
|
1478
|
+
"done": "Klart",
|
|
1479
|
+
"current": "Aktuellt",
|
|
1480
|
+
"planned": "Planerat"
|
|
1366
1481
|
}
|
|
1367
1482
|
},
|
|
1368
1483
|
{
|
|
@@ -1443,6 +1558,11 @@
|
|
|
1443
1558
|
"major": "Noto Sans Thai",
|
|
1444
1559
|
"minor": "Noto Sans Thai"
|
|
1445
1560
|
}
|
|
1561
|
+
},
|
|
1562
|
+
"timelineStatusWords": {
|
|
1563
|
+
"done": "เสร็จแล้ว",
|
|
1564
|
+
"current": "ปัจจุบัน",
|
|
1565
|
+
"planned": "วางแผนไว้"
|
|
1446
1566
|
}
|
|
1447
1567
|
},
|
|
1448
1568
|
{
|
|
@@ -1459,6 +1579,11 @@
|
|
|
1459
1579
|
"major": "Roboto",
|
|
1460
1580
|
"minor": "Roboto"
|
|
1461
1581
|
}
|
|
1582
|
+
},
|
|
1583
|
+
"timelineStatusWords": {
|
|
1584
|
+
"done": "Tamamlandı",
|
|
1585
|
+
"current": "Güncel",
|
|
1586
|
+
"planned": "Planlandı"
|
|
1462
1587
|
}
|
|
1463
1588
|
},
|
|
1464
1589
|
{
|
|
@@ -1475,6 +1600,11 @@
|
|
|
1475
1600
|
"major": "Noto Sans",
|
|
1476
1601
|
"minor": "Noto Sans"
|
|
1477
1602
|
}
|
|
1603
|
+
},
|
|
1604
|
+
"timelineStatusWords": {
|
|
1605
|
+
"done": "Завершено",
|
|
1606
|
+
"current": "Зараз",
|
|
1607
|
+
"planned": "Заплановано"
|
|
1478
1608
|
}
|
|
1479
1609
|
},
|
|
1480
1610
|
{
|
|
@@ -1523,6 +1653,11 @@
|
|
|
1523
1653
|
"major": "Roboto",
|
|
1524
1654
|
"minor": "Roboto"
|
|
1525
1655
|
}
|
|
1656
|
+
},
|
|
1657
|
+
"timelineStatusWords": {
|
|
1658
|
+
"done": "Hoàn tất",
|
|
1659
|
+
"current": "Hiện tại",
|
|
1660
|
+
"planned": "Dự kiến"
|
|
1526
1661
|
}
|
|
1527
1662
|
},
|
|
1528
1663
|
{
|