Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
Release 1.2.0 (#498)
nyblnet986fd53ac4cb
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a99f42ea..502e5203 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -11,13 +11,8 @@ pre-1.0.## [Unreleased]-- **One brand yellow.** Ten places in the editor chrome — the speaker view's- timer, buttons and current thumbnail, the show's link, selection and- progress colours, the follow chip, and the path editor's anchor dots —- carried their own copy of the accent instead of reading the chrome's- `--accent` token. They read the token now; nothing looks different. The- slide-list highlight already did. The deck's own `theme.accent` is a- separate thing and stays separate: chrome does not recolour per deck.+## [1.2.0] — 2026-09-16+- **A deck opens inside Teams and SharePoint again.** Their viewer refusesthe way 1.1.0's file started itself (a script loaded from a `blob:` URL).The file now starts the way nothing refuses: the runtime is inserted as an@@ -29,66 +24,6 @@ pre-1.0.no update check at launch, no language-pack listing, no live-sessionsocket; the About dialog says so. The deck itself opens, presents andsaves.-- **A deck opened in a background tab is ready when you switch to it.** The- compressed file used to finish starting in a later task and hold its- splash on a timer — in a tab that was not visible (or a viewer rendering- the file off-screen for a preview card) timers are throttled and frames- never come, so the editor sat behind the splash until the tab was looked- at. The runtime now unpacks and starts inside the file's own script,- before the page is even "loaded", and a hidden document drops the splash- the moment the editor exists; visible, the brand moment is held for at- most 0.8 s and never waits on its own fade.-- **Every file is about 38 KB smaller.** The runtime's two compressed blocks- used to be base64; they are now base86 — 86 printable characters chosen so- the text can never close or comment out the block that carries it — which- is 6.25% denser (4 bytes in 5 characters instead of 3 in 4). Measured on- the release shell: 699,847 → 661,768 bytes. Older versions keep opening- their own files; this one still reads theirs. The new decoder is also- quicker than the old `atob` path (11 ms against 47 for the runtime).-- **A web link whose address contains a dollar sign works again.** Since- links arrived, an address like `…/$a$b` had its two dollars read as a- formula and the link broke; formulas are now looked for in the text only,- never inside a tag.-- **An agent can place a slide by layout and role.** In the compact form a- slide may say `"layout": "title-body"` and its elements carry a `role`- (`title`, `body`, `subtitle`, `kicker`, `quote`, `attribution`, `image`,- `card1`…) instead of coordinates and typography: the layout's frames and- type are used, the same way *Apply layout* fills a slide in the editor, and- slides born from the same layout still morph their chrome. Several `body`- paragraphs stack into the slot, each sized to its text; an element that- carries its own `x y w h` is placed as given. Four new built-in layouts —- *Three cards*, *Quote*, *Image left*, *Image right* — appear in the layout- picker for everyone, next to the five that were there. The file on disk is- unchanged: the layout is applied on load, and what is saved is the placed- slide.-- **The format has a schema, and every file says where it is.** A JSON- Schema for the bento/slides document is generated from the same tables the- app uses to check what it loads, so it cannot describe a deck the app would- refuse. It is published at `https://bento.page/schema/slides.json` (and a- version-pinned copy beside it), returned by `window.bento.schema()` in a- running file, listed in `https://bento.page/llms.txt` for AI agents, and- named in the Tooling comment at the top of every deck. A deck that carries- `"$schema"` at the top validates in any schema-aware editor; the app ignores- the key. Runtime cost: about 2.6 KB in the shell.-- **A pasted code snippet keeps its code.** The table the app uses to know- an element's fields had no entry for the code element, so a pasted or loaded- code block kept its box but lost its content, grammar and theme — an empty- snippet — and `validate()` did not know its fields. Found while building- the schema from that table; fixed.-- **A saved deck names its schema.** The first key of the saved JSON is now- `"$schema": "https://bento.page/schema/slides.json"` — 50 bytes, so a- reader with only the file in hand knows the format. Older versions keep the- key and write it back unchanged; nothing fetches it.-- **`bento check`: an agent can look at what it wrote.** `node- scripts/bento-check.mjs deck.bento.html` loads the deck in headless Chrome- and prints what the editor would otherwise keep to itself — text that- overflows its box (and by how many pixels), elements off the canvas, dead- links, effects that can never run — by slide, with element ids; `--png out/`- adds one PNG per slide through the same render path as *Export slides as- images*, and a contact sheet of the whole deck in one picture; `--json` for- scripts, `--fail-on warning` for a strict exit code. A document JSON works- as input too, checked inside the built shell. The other half of the agent- loop that `AGENTS.md` describes: write, check, fix, check again.- **Maths is Bento's own now, and it reads Typst.** Formulas in text used togo through Temml, a 64 KB library that every saved deck carried. A smallengine of our own (slides/src/maths, about 8 KB) renders them instead, so@@ -103,6 +38,26 @@ pre-1.0.`$…$` is LaTeX as before. Not covered, for now: `\substack`, `\xrightarrow`,chemistry (`\ce`), `\tag` and `\hline`; a formula using them shows astyped, the way any TeX Temml refused always has.+- **Slides export as images.** Save ▾ *Export slides as images…* writes+ this slide, or every slide in the show, as PNG or JPEG at 1× or 2× — one+ file per page, named after the deck (`My_Deck-page-01.png`), hidden slides+ and interactive states left out the way a PDF leaves them out. Chromium+ asks for a folder and writes the pages into it; other browsers get one+ download per page; Safari can export the current slide. The picture is the+ deck's own render — its fonts, gradients and shapes — with charts and media+ as stills and web-linked images blank, since a file cannot fetch. No ZIP,+ no second renderer: about four kilobytes of runtime. Asked for by den-sv+ (#243, #261); the shape follows lazyeo's #306, kept to the thin half —+ the heavier converter belongs to bento/convert.+- **A Layers list.** The Slide panel now opens with *Layers*: every element+ on the slide, top of the stack first, with a glyph and a short label (the+ text's first words, or the kind). Click a row to select, shift-click to add,+ drag a row to move it up or down the stack, or use ⌘↑ and ⌘↓ with the list+ focused. With an element selected the same list closes its panel, so the+ highlighted row is never far. Nothing new in the file: the list is a view+ onto the order the four Order buttons (front, forward, backward, back) have+ moved elements through since 1.0, and a row dropped somewhere lands exactly+ where those buttons would put it. Asked for by Li Wei in discussion #371.- **A deck can be written the short way.** An AI agent writing a deck usedto spend most of its output on fields nobody chose — rotation 0, opacity 1,the font stack, weight 400, centre, middle, line height 1.25, on every@@ -130,26 +85,41 @@ pre-1.0.why a field vanished. *Replace from JSON…* summarises the same report in atoast and logs it. Three agent-written decks are checked in and load cleanin CI.-- **A Layers list.** The Slide panel now opens with *Layers*: every element- on the slide, top of the stack first, with a glyph and a short label (the- text's first words, or the kind). Click a row to select, shift-click to add,- drag a row to move it up or down the stack, or use ⌘↑ and ⌘↓ with the list- focused. With an element selected the same list closes its panel, so the- highlighted row is never far. Nothing new in the file: the list is a view- onto the order the four Order buttons (front, forward, backward, back) have- moved elements through since 1.0, and a row dropped somewhere lands exactly- where those buttons would put it. Asked for by Li Wei in discussion #371.-- **Slides export as images.** Save ▾ *Export slides as images…* writes- this slide, or every slide in the show, as PNG or JPEG at 1× or 2× — one- file per page, named after the deck (`My_Deck-page-01.png`), hidden slides- and interactive states left out the way a PDF leaves them out. Chromium- asks for a folder and writes the pages into it; other browsers get one- download per page; Safari can export the current slide. The picture is the- deck's own render — its fonts, gradients and shapes — with charts and media- as stills and web-linked images blank, since a file cannot fetch. No ZIP,- no second renderer: about four kilobytes of runtime. Asked for by den-sv- (#243, #261); the shape follows lazyeo's #306, kept to the thin half —- the heavier converter belongs to bento/convert.+- **An agent can place a slide by layout and role.** In the compact form a+ slide may say `"layout": "title-body"` and its elements carry a `role`+ (`title`, `body`, `subtitle`, `kicker`, `quote`, `attribution`, `image`,+ `card1`…) instead of coordinates and typography: the layout's frames and+ type are used, the same way *Apply layout* fills a slide in the editor, and+ slides born from the same layout still morph their chrome. Several `body`+ paragraphs stack into the slot, each sized to its text; an element that+ carries its own `x y w h` is placed as given. Four new built-in layouts —+ *Three cards*, *Quote*, *Image left*, *Image right* — appear in the layout+ picker for everyone, next to the five that were there. The file on disk is+ unchanged: the layout is applied on load, and what is saved is the placed+ slide.+- **`bento check`: an agent can look at what it wrote.** `node+ scripts/bento-check.mjs deck.bento.html` loads the deck in headless Chrome+ and prints what the editor would otherwise keep to itself — text that+ overflows its box (and by how many pixels), elements off the canvas, dead+ links, effects that can never run — by slide, with element ids; `--png out/`+ adds one PNG per slide through the same render path as *Export slides as+ images*, and a contact sheet of the whole deck in one picture; `--json` for+ scripts, `--fail-on warning` for a strict exit code. A document JSON works+ as input too, checked inside the built shell. The other half of the agent+ loop that `AGENTS.md` describes: write, check, fix, check again.+- **The format has a schema, and every file says where it is.** A JSON+ Schema for the bento/slides document is generated from the same tables the+ app uses to check what it loads, so it cannot describe a deck the app would+ refuse. It is published at `https://bento.page/schema/slides.json` (and a+ version-pinned copy beside it), returned by `window.bento.schema()` in a+ running file, listed in `https://bento.page/llms.txt` for AI agents, and+ named in the Tooling comment at the top of every deck. A deck that carries+ `"$schema"` at the top validates in any schema-aware editor; the app ignores+ the key. Runtime cost: about 2.6 KB in the shell.+- **A saved deck names its schema.** The first key of the saved JSON is now+ `"$schema": "https://bento.page/schema/slides.json"` — 50 bytes, so a+ reader with only the file in hand knows the format. Older versions keep the+ key and write it back unchanged; nothing fetches it.- **Connectors for diagrams.** Three asks from xairy, in one go. A*Curved connector* (#302): a curve that sticks to the elements at its endsand re-routes when they move, like the straight Connector, and carries a@@ -208,6 +178,31 @@ pre-1.0.number, date, time, title or document property into the text — the dateand time entries show today in each shape so the choice is made by eye.Bare `{{date}}` is unchanged. Asked for in discussion #381 by Jef Ducon.+- **Every file is about 38 KB smaller.** The runtime's two compressed blocks+ used to be base64; they are now base86 — 86 printable characters chosen so+ the text can never close or comment out the block that carries it — which+ is 6.25% denser (4 bytes in 5 characters instead of 3 in 4). Measured on+ the release shell: 699,847 → 661,768 bytes. Older versions keep opening+ their own files; this one still reads theirs. The new decoder is also+ quicker than the old `atob` path (11 ms against 47 for the runtime).+- **A deck opened in a background tab is ready when you switch to it.** The+ compressed file used to finish starting in a later task and hold its+ splash on a timer — in a tab that was not visible (or a viewer rendering+ the file off-screen for a preview card) timers are throttled and frames+ never come, so the editor sat behind the splash until the tab was looked+ at. The runtime now unpacks and starts inside the file's own script,+ before the page is even "loaded", and a hidden document drops the splash+ the moment the editor exists; visible, the brand moment is held for at+ most 0.8 s and never waits on its own fade.+- **A web link whose address contains a dollar sign works again.** Since+ links arrived, an address like `…/$a$b` had its two dollars read as a+ formula and the link broke; formulas are now looked for in the text only,+ never inside a tag.+- **A pasted code snippet keeps its code.** The table the app uses to know+ an element's fields had no entry for the code element, so a pasted or loaded+ code block kept its box but lost its content, grammar and theme — an empty+ snippet — and `validate()` did not know its fields. Found while building+ the schema from that table; fixed.- **A plain Save drops unused images too.** 1.1.0 promised that a saveleaves out every image nothing in the deck refers to, and it did — onevery path except the one most people use. ⌘S and the Save button write@@ -218,6 +213,13 @@ pre-1.0.to 91% of the interface — the formatting bar, the context menu, the canvashelp, hidden slides, appearance, and the whole live-broadcast surfaceshowed in English. All 22 carry every string again.+- **One brand yellow.** Ten places in the editor chrome — the speaker view's+ timer, buttons and current thumbnail, the show's link, selection and+ progress colours, the follow chip, and the path editor's anchor dots —+ carried their own copy of the accent instead of reading the chrome's+ `--accent` token. They read the token now; nothing looks different. The+ slide-list highlight already did. The deck's own `theme.accent` is a+ separate thing and stays separate: chrome does not recolour per deck.## [1.1.0] — 2026-09-14diff --git a/docs/RELEASING.md b/docs/RELEASING.mdindex 73cd758c..37efb86f 100644--- a/docs/RELEASING.md+++ b/docs/RELEASING.md@@ -92,7 +92,12 @@ matters. Neither needs the signing key.1. Bump **that app's** `package.json` version — `slides/package.json`,`spaces/package.json` or `dash/package.json` (it becomes `APP_VERSION` inthe shell and the manifest version — single source of truth). Apps version- independently.+ independently. **Bumping the version stales `schema/*.json`** — the+ generated schema carries the version — so run `node scripts/build-schema.mjs`+ and commit `schema/slides.json` plus the new `schema/slides-<version>.json`+ in the same PR, or CI's "Schema is current" step goes red. Earlier+ `slides-<version>.json` copies stay: they are the pinned URLs old files may+ point at.2. Land it and tag. `main` is branch-protected and requires a pull request, sothe bump CANNOT be committed directly — open a small PR for it, merge, thentag the merge commit.diff --git a/schema/slides-1.2.0.json b/schema/slides-1.2.0.jsonnew file mode 100644index 00000000..651c171a--- /dev/null+++ b/schema/slides-1.2.0.json@@ -0,0 +1,2379 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$id": "https://bento.page/schema/slides.json",+ "title": "bento/slides document",+ "description": "The #bento-doc JSON of a Bento Slides file, generated from the app's validation tables. Guide: https://bento.page/agents.md",+ "x-bento-version": "1.2.0",+ "$ref": "#/$defs/doc",+ "$defs": {+ "prop-fx": {+ "type": "object",+ "properties": {+ "ambient": {+ "type": "string",+ "enum": [+ "kenburns"+ ]+ },+ "countUp": {+ "type": "boolean"+ },+ "enter": {+ "type": "string",+ "enum": [+ "fade-up",+ "fade",+ "fade-down",+ "slide-left",+ "slide-right",+ "slide-up",+ "slide-down"+ ]+ },+ "enterDur": {+ "type": "number",+ "minimum": 0,+ "maximum": 600+ },+ "ken": {+ "type": "object",+ "properties": {+ "dir": {+ "type": "string",+ "enum": [+ "drift",+ "out",+ "in"+ ]+ },+ "duration": {+ "type": "number",+ "minimum": 0,+ "maximum": 3600+ },+ "scale": {+ "type": "number",+ "minimum": 0,+ "maximum": 100+ }+ },+ "additionalProperties": false+ },+ "loop": {+ "type": "object",+ "properties": {+ "delay": {+ "type": "number",+ "minimum": 0,+ "maximum": 3600+ },+ "distance": {+ "type": "number",+ "minimum": -100000,+ "maximum": 100000+ },+ "duration": {+ "type": "number",+ "minimum": 0,+ "maximum": 3600+ },+ "ease": {+ "type": "string",+ "maxLength": 64,+ "pattern": "^[^\"'<>{};]*$"+ },+ "path": {+ "type": "string",+ "maxLength": 65536,+ "description": "SVG path data"+ },+ "speeds": {+ "type": "array",+ "maxItems": 2000,+ "items": {+ "type": "number",+ "minimum": 0.001,+ "maximum": 1000+ }+ },+ "type": {+ "type": "string",+ "enum": [+ "dash-march",+ "motion-path"+ ]+ }+ },+ "additionalProperties": false,+ "required": [+ "type"+ ]+ },+ "order": {+ "type": "number",+ "minimum": -10000,+ "maximum": 10000+ },+ "step": {+ "type": "number",+ "minimum": 0,+ "maximum": 10000+ }+ },+ "additionalProperties": false+ },+ "prop-shadow": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "blur": {+ "type": "number",+ "minimum": 0,+ "maximum": 10000+ },+ "color": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ },+ "x": {+ "type": "number",+ "minimum": -10000,+ "maximum": 10000+ },+ "y": {+ "type": "number",+ "minimum": -10000,+ "maximum": 10000+ }+ },+ "additionalProperties": false,+ "required": [+ "blur",+ "color"+ ]+ },+ {+ "type": "array",+ "maxItems": 16,+ "items": {+ "type": "object",+ "properties": {+ "blur": {+ "type": "number",+ "minimum": 0,+ "maximum": 10000+ },+ "color": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ },+ "x": {+ "type": "number",+ "minimum": -10000,+ "maximum": 10000+ },+ "y": {+ "type": "number",+ "minimum": -10000,+ "maximum": 10000+ }+ },+ "additionalProperties": false,+ "required": [+ "blur",+ "color"+ ]+ }+ }+ ]+ },+ "prop-colorGradient": {+ "type": "object",+ "properties": {+ "angle": {+ "type": "number",+ "minimum": -3600,+ "maximum": 3600+ },+ "stops": {+ "type": "array",+ "maxItems": 64,+ "items": {+ "type": "object",+ "properties": {+ "at": {+ "type": "number",+ "minimum": 0,+ "maximum": 1+ },+ "color": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ }+ },+ "additionalProperties": false,+ "required": [+ "at",+ "color"+ ]+ }+ }+ },+ "additionalProperties": false,+ "required": [+ "stops"+ ]+ },+ "prop-themeRefs": {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ },+ "maxProperties": 64,+ "description": "property path → palette token"+ },+ "prop-textStroke": {+ "type": "object",+ "properties": {+ "width": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "color": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ },+ "fill": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ }+ },+ "additionalProperties": false,+ "required": [+ "width",+ "color"+ ]+ },+ "prop-link": {+ "type": "string",+ "maxLength": 4000,+ "description": "slide id or http(s) URL"+ },+ "text": {+ "type": "object",+ "properties": {+ "align": {+ "type": "string",+ "enum": [+ "left",+ "center",+ "right"+ ]+ },+ "backdropFilter": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "blend": {+ "type": "string",+ "maxLength": 64,+ "pattern": "^[^\"'<>{};]*$"+ },+ "blur": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "color": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ },+ "colorGradient": {+ "$ref": "#/$defs/prop-colorGradient"+ },+ "fontFamily": {+ "type": "string",+ "maxLength": 300+ },+ "fontSize": {+ "type": "number",+ "minimum": 0,+ "maximum": 4000+ },+ "fontWeight": {+ "type": "number",+ "minimum": 1,+ "maximum": 1000+ },+ "fx": {+ "$ref": "#/$defs/prop-fx"+ },+ "group": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "groupId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "h": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "html": {+ "type": "string",+ "maxLength": 65536+ },+ "id": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "letterSpacing": {+ "type": "number",+ "minimum": -1000,+ "maximum": 1000+ },+ "lineHeight": {+ "type": "number",+ "minimum": 0,+ "maximum": 100+ },+ "link": {+ "$ref": "#/$defs/prop-link"+ },+ "morphId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "opacity": {+ "type": "number",+ "minimum": 0,+ "maximum": 1+ },+ "placeholder": {+ "type": "string",+ "maxLength": 4000+ },+ "role": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "rotation": {+ "type": "number",+ "minimum": -3600,+ "maximum": 3600+ },+ "shadow": {+ "$ref": "#/$defs/prop-shadow"+ },+ "showOnHover": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "textStroke": {+ "$ref": "#/$defs/prop-textStroke"+ },+ "themeRefs": {+ "$ref": "#/$defs/prop-themeRefs"+ },+ "type": {+ "const": "text"+ },+ "valign": {+ "type": "string",+ "enum": [+ "top",+ "middle",+ "bottom"+ ]+ },+ "w": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "x": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ },+ "y": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ }+ },+ "additionalProperties": false,+ "required": [+ "type",+ "id",+ "html"+ ],+ "description": "text element; x/y/w/h in slide px (1280×720 default); a stable id pairs morphs"+ },+ "prop-fillGradient": {+ "type": "object",+ "properties": {+ "angle": {+ "type": "number",+ "minimum": -3600,+ "maximum": 3600+ },+ "stops": {+ "type": "array",+ "maxItems": 64,+ "items": {+ "type": "object",+ "properties": {+ "at": {+ "type": "number",+ "minimum": 0,+ "maximum": 1+ },+ "color": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ }+ },+ "additionalProperties": false,+ "required": [+ "at",+ "color"+ ]+ }+ }+ },+ "additionalProperties": false,+ "required": [+ "stops"+ ]+ },+ "prop-from": {+ "type": "object",+ "properties": {+ "el": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "side": {+ "type": "string",+ "enum": [+ "auto",+ "top",+ "right",+ "bottom",+ "left"+ ]+ }+ },+ "additionalProperties": false,+ "required": [+ "el"+ ]+ },+ "prop-to": {+ "type": "object",+ "properties": {+ "el": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "side": {+ "type": "string",+ "enum": [+ "auto",+ "top",+ "right",+ "bottom",+ "left"+ ]+ }+ },+ "additionalProperties": false,+ "required": [+ "el"+ ]+ },+ "shape": {+ "type": "object",+ "properties": {+ "backdropFilter": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "blend": {+ "type": "string",+ "maxLength": 64,+ "pattern": "^[^\"'<>{};]*$"+ },+ "blur": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "d": {+ "type": "string",+ "maxLength": 65536,+ "description": "SVG path data"+ },+ "fill": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour or url(#local-id)"+ },+ "fillGradient": {+ "$ref": "#/$defs/prop-fillGradient"+ },+ "from": {+ "$ref": "#/$defs/prop-from"+ },+ "fx": {+ "$ref": "#/$defs/prop-fx"+ },+ "group": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "groupId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "h": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "heads": {+ "type": "number",+ "minimum": 2,+ "maximum": 2+ },+ "id": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "lineEnd": {+ "type": "string",+ "enum": [+ "none",+ "arrow",+ "dot",+ "bar",+ "arrow-open",+ "triangle",+ "triangle-open",+ "diamond",+ "diamond-open",+ "square",+ "circle-open"+ ]+ },+ "lineStart": {+ "type": "string",+ "enum": [+ "none",+ "arrow",+ "dot",+ "bar",+ "arrow-open",+ "triangle",+ "triangle-open",+ "diamond",+ "diamond-open",+ "square",+ "circle-open"+ ]+ },+ "link": {+ "$ref": "#/$defs/prop-link"+ },+ "morphId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "opacity": {+ "type": "number",+ "minimum": 0,+ "maximum": 1+ },+ "pathBox": {+ "type": "array",+ "minItems": 4,+ "maxItems": 4,+ "items": {+ "type": "number"+ }+ },+ "radius": {+ "type": "number",+ "minimum": 0,+ "maximum": 100000+ },+ "role": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "rotation": {+ "type": "number",+ "minimum": -3600,+ "maximum": 3600+ },+ "shadow": {+ "$ref": "#/$defs/prop-shadow"+ },+ "shape": {+ "type": "string",+ "enum": [+ "rect",+ "ellipse",+ "triangle",+ "arrow",+ "line",+ "path"+ ]+ },+ "showOnHover": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "stroke": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour or url(#local-id)"+ },+ "strokeDash": {+ "type": "number",+ "minimum": 0,+ "maximum": 10000+ },+ "strokeStyle": {+ "type": "string",+ "enum": [+ "solid",+ "dashed",+ "dotted"+ ]+ },+ "strokeWidth": {+ "type": "number",+ "minimum": 0,+ "maximum": 10000+ },+ "themeRefs": {+ "$ref": "#/$defs/prop-themeRefs"+ },+ "to": {+ "$ref": "#/$defs/prop-to"+ },+ "type": {+ "const": "shape"+ },+ "w": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "x": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ },+ "y": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ }+ },+ "additionalProperties": false,+ "required": [+ "type",+ "id",+ "shape",+ "fill"+ ],+ "description": "shape element; x/y/w/h in slide px (1280×720 default); a stable id pairs morphs"+ },+ "prop-crop": {+ "type": "object",+ "properties": {+ "scale": {+ "type": "number",+ "minimum": 1,+ "maximum": 64+ },+ "x": {+ "type": "number",+ "minimum": 0,+ "maximum": 1+ },+ "y": {+ "type": "number",+ "minimum": 0,+ "maximum": 1+ }+ },+ "additionalProperties": false,+ "required": [+ "x",+ "y",+ "scale"+ ]+ },+ "image": {+ "type": "object",+ "properties": {+ "backdropFilter": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "blend": {+ "type": "string",+ "maxLength": 64,+ "pattern": "^[^\"'<>{};]*$"+ },+ "blur": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "crop": {+ "$ref": "#/$defs/prop-crop"+ },+ "fit": {+ "type": "string",+ "enum": [+ "contain",+ "cover",+ "fill"+ ]+ },+ "fx": {+ "$ref": "#/$defs/prop-fx"+ },+ "group": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "groupId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "h": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "id": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "keepAspectRatio": {+ "type": "boolean"+ },+ "link": {+ "$ref": "#/$defs/prop-link"+ },+ "morphId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "opacity": {+ "type": "number",+ "minimum": 0,+ "maximum": 1+ },+ "radius": {+ "type": "number",+ "minimum": 0,+ "maximum": 100000+ },+ "role": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "rotation": {+ "type": "number",+ "minimum": -3600,+ "maximum": 3600+ },+ "shadow": {+ "$ref": "#/$defs/prop-shadow"+ },+ "showOnHover": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "src": {+ "type": "string",+ "maxLength": 33554432,+ "description": "data: URI, asset:<key> or URL"+ },+ "themeRefs": {+ "$ref": "#/$defs/prop-themeRefs"+ },+ "type": {+ "const": "image"+ },+ "w": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "x": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ },+ "y": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ }+ },+ "additionalProperties": false,+ "required": [+ "type",+ "id",+ "src"+ ],+ "description": "image element; x/y/w/h in slide px (1280×720 default); a stable id pairs morphs"+ },+ "svg": {+ "type": "object",+ "properties": {+ "asset": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "backdropFilter": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "blend": {+ "type": "string",+ "maxLength": 64,+ "pattern": "^[^\"'<>{};]*$"+ },+ "blur": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "css": {+ "type": "string",+ "maxLength": 131072+ },+ "fx": {+ "$ref": "#/$defs/prop-fx"+ },+ "group": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "groupId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "h": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "id": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "link": {+ "$ref": "#/$defs/prop-link"+ },+ "markup": {+ "type": "string",+ "maxLength": 4194304+ },+ "morphId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "opacity": {+ "type": "number",+ "minimum": 0,+ "maximum": 1+ },+ "role": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "rotation": {+ "type": "number",+ "minimum": -3600,+ "maximum": 3600+ },+ "shadow": {+ "$ref": "#/$defs/prop-shadow"+ },+ "showOnHover": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "themeRefs": {+ "$ref": "#/$defs/prop-themeRefs"+ },+ "type": {+ "const": "svg"+ },+ "w": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "x": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ },+ "y": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ }+ },+ "additionalProperties": false,+ "required": [+ "type",+ "id"+ ],+ "description": "svg element; x/y/w/h in slide px (1280×720 default); a stable id pairs morphs"+ },+ "prop-source": {+ "type": "object",+ "properties": {+ "tableId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ }+ },+ "additionalProperties": false,+ "required": [+ "tableId"+ ]+ },+ "prop-option": {+ "type": "object",+ "description": "ECharts-shaped option, plain JSON"+ },+ "chart": {+ "type": "object",+ "properties": {+ "backdropFilter": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "blend": {+ "type": "string",+ "maxLength": 64,+ "pattern": "^[^\"'<>{};]*$"+ },+ "blur": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "fx": {+ "$ref": "#/$defs/prop-fx"+ },+ "group": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "groupId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "h": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "id": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "link": {+ "$ref": "#/$defs/prop-link"+ },+ "morphId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "opacity": {+ "type": "number",+ "minimum": 0,+ "maximum": 1+ },+ "option": {+ "$ref": "#/$defs/prop-option"+ },+ "preset": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "role": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "rotation": {+ "type": "number",+ "minimum": -3600,+ "maximum": 3600+ },+ "shadow": {+ "$ref": "#/$defs/prop-shadow"+ },+ "showOnHover": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "source": {+ "$ref": "#/$defs/prop-source"+ },+ "themeRefs": {+ "$ref": "#/$defs/prop-themeRefs"+ },+ "type": {+ "const": "chart"+ },+ "w": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "x": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ },+ "y": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ }+ },+ "additionalProperties": false,+ "required": [+ "type",+ "id",+ "option"+ ],+ "description": "chart element; x/y/w/h in slide px (1280×720 default); a stable id pairs morphs"+ },+ "prop-style": {+ "type": "object",+ "properties": {+ "borderColor": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ },+ "borderWidth": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "cellPadX": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "cellPadY": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "color": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ },+ "fontFamily": {+ "type": "string",+ "maxLength": 300+ },+ "fontSize": {+ "type": "number",+ "minimum": 0,+ "maximum": 4000+ },+ "headerBg": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ },+ "headerColor": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ },+ "radius": {+ "type": "number",+ "minimum": 0,+ "maximum": 100000+ },+ "zebra": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ }+ },+ "additionalProperties": false+ },+ "prop-rows": {+ "type": "array",+ "maxItems": 2000,+ "items": {+ "type": "object",+ "properties": {+ "cells": {+ "type": "array",+ "maxItems": 200,+ "items": {+ "type": "object",+ "properties": {+ "align": {+ "type": "string",+ "enum": [+ "left",+ "center",+ "right"+ ]+ },+ "bg": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ },+ "bold": {+ "type": "boolean"+ },+ "color": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ },+ "html": {+ "type": "string",+ "maxLength": 65536+ }+ },+ "additionalProperties": false+ }+ }+ },+ "additionalProperties": false,+ "required": [+ "cells"+ ]+ }+ },+ "prop-columns": {+ "type": "array",+ "maxItems": 200,+ "items": {+ "type": "object",+ "properties": {+ "w": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ }+ },+ "additionalProperties": false,+ "required": [+ "w"+ ]+ }+ },+ "table": {+ "type": "object",+ "properties": {+ "backdropFilter": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "blend": {+ "type": "string",+ "maxLength": 64,+ "pattern": "^[^\"'<>{};]*$"+ },+ "blur": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "columns": {+ "$ref": "#/$defs/prop-columns"+ },+ "fx": {+ "$ref": "#/$defs/prop-fx"+ },+ "group": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "groupId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "h": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "header": {+ "type": "boolean"+ },+ "id": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "link": {+ "$ref": "#/$defs/prop-link"+ },+ "morphId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "opacity": {+ "type": "number",+ "minimum": 0,+ "maximum": 1+ },+ "role": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "rotation": {+ "type": "number",+ "minimum": -3600,+ "maximum": 3600+ },+ "rows": {+ "$ref": "#/$defs/prop-rows"+ },+ "shadow": {+ "$ref": "#/$defs/prop-shadow"+ },+ "showOnHover": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "style": {+ "$ref": "#/$defs/prop-style"+ },+ "themeRefs": {+ "$ref": "#/$defs/prop-themeRefs"+ },+ "type": {+ "const": "table"+ },+ "w": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "x": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ },+ "y": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ }+ },+ "additionalProperties": false,+ "required": [+ "type",+ "id",+ "columns",+ "rows"+ ],+ "description": "table element; x/y/w/h in slide px (1280×720 default); a stable id pairs morphs"+ },+ "media": {+ "type": "object",+ "properties": {+ "autoplay": {+ "type": "boolean"+ },+ "backdropFilter": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "blend": {+ "type": "string",+ "maxLength": 64,+ "pattern": "^[^\"'<>{};]*$"+ },+ "blur": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "controls": {+ "type": "boolean"+ },+ "fit": {+ "type": "string",+ "enum": [+ "contain",+ "cover",+ "fill"+ ]+ },+ "fx": {+ "$ref": "#/$defs/prop-fx"+ },+ "group": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "groupId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "h": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "id": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "kind": {+ "type": "string",+ "enum": [+ "video",+ "audio"+ ]+ },+ "link": {+ "$ref": "#/$defs/prop-link"+ },+ "loop": {+ "type": "boolean"+ },+ "morphId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "muted": {+ "type": "boolean"+ },+ "opacity": {+ "type": "number",+ "minimum": 0,+ "maximum": 1+ },+ "poster": {+ "type": "string",+ "maxLength": 33554432,+ "description": "data: URI, asset:<key> or URL"+ },+ "radius": {+ "type": "number",+ "minimum": 0,+ "maximum": 100000+ },+ "role": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "rotation": {+ "type": "number",+ "minimum": -3600,+ "maximum": 3600+ },+ "shadow": {+ "$ref": "#/$defs/prop-shadow"+ },+ "showOnHover": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "src": {+ "type": "string",+ "maxLength": 33554432,+ "description": "data: URI, asset:<key> or URL"+ },+ "themeRefs": {+ "$ref": "#/$defs/prop-themeRefs"+ },+ "type": {+ "const": "media"+ },+ "w": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "x": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ },+ "y": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ }+ },+ "additionalProperties": false,+ "required": [+ "type",+ "id",+ "kind",+ "src"+ ],+ "description": "media element; x/y/w/h in slide px (1280×720 default); a stable id pairs morphs"+ },+ "prop-doc": {+ "anyOf": [+ {+ "type": "string",+ "maxLength": 200+ },+ {+ "type": "object"+ }+ ]+ },+ "embed": {+ "type": "object",+ "properties": {+ "app": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "backdropFilter": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "blend": {+ "type": "string",+ "maxLength": 64,+ "pattern": "^[^\"'<>{};]*$"+ },+ "blur": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "doc": {+ "$ref": "#/$defs/prop-doc"+ },+ "fx": {+ "$ref": "#/$defs/prop-fx"+ },+ "group": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "groupId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "h": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "id": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "link": {+ "$ref": "#/$defs/prop-link"+ },+ "live": {+ "type": "boolean"+ },+ "morphId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "opacity": {+ "type": "number",+ "minimum": 0,+ "maximum": 1+ },+ "role": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "rotation": {+ "type": "number",+ "minimum": -3600,+ "maximum": 3600+ },+ "shadow": {+ "$ref": "#/$defs/prop-shadow"+ },+ "showOnHover": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "themeRefs": {+ "$ref": "#/$defs/prop-themeRefs"+ },+ "type": {+ "const": "embed"+ },+ "url": {+ "type": "string",+ "maxLength": 4000,+ "pattern": "^https?://"+ },+ "view": {+ "type": "string",+ "maxLength": 4194304+ },+ "w": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "x": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ },+ "y": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ }+ },+ "additionalProperties": false,+ "required": [+ "type",+ "id"+ ],+ "description": "embed element; x/y/w/h in slide px (1280×720 default); a stable id pairs morphs"+ },+ "code": {+ "type": "object",+ "properties": {+ "align": {+ "type": "string",+ "enum": [+ "left",+ "center",+ "right"+ ]+ },+ "backdropFilter": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "blend": {+ "type": "string",+ "maxLength": 64,+ "pattern": "^[^\"'<>{};]*$"+ },+ "blur": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "color": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ },+ "content": {+ "type": "string",+ "maxLength": 65536+ },+ "fontFamily": {+ "type": "string",+ "maxLength": 300+ },+ "fontSize": {+ "type": "number",+ "minimum": 0,+ "maximum": 4000+ },+ "fx": {+ "$ref": "#/$defs/prop-fx"+ },+ "grammarAssetId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "grammarName": {+ "type": "string",+ "maxLength": 64,+ "pattern": "^[^\"'<>{};]*$"+ },+ "group": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "groupId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "h": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "id": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "lineHeight": {+ "type": "number",+ "minimum": 0,+ "maximum": 100+ },+ "link": {+ "$ref": "#/$defs/prop-link"+ },+ "morphId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "opacity": {+ "type": "number",+ "minimum": 0,+ "maximum": 1+ },+ "role": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "rotation": {+ "type": "number",+ "minimum": -3600,+ "maximum": 3600+ },+ "shadow": {+ "$ref": "#/$defs/prop-shadow"+ },+ "showOnHover": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "themeAssetId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "themeName": {+ "type": "string",+ "maxLength": 64,+ "pattern": "^[^\"'<>{};]*$"+ },+ "themeRefs": {+ "$ref": "#/$defs/prop-themeRefs"+ },+ "type": {+ "const": "code"+ },+ "valign": {+ "type": "string",+ "enum": [+ "top",+ "middle",+ "bottom"+ ]+ },+ "w": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000000+ },+ "x": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ },+ "y": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ }+ },+ "additionalProperties": false,+ "required": [+ "type",+ "id"+ ],+ "description": "code element; x/y/w/h in slide px (1280×720 default); a stable id pairs morphs"+ },+ "element": {+ "oneOf": [+ {+ "$ref": "#/$defs/text"+ },+ {+ "$ref": "#/$defs/shape"+ },+ {+ "$ref": "#/$defs/image"+ },+ {+ "$ref": "#/$defs/svg"+ },+ {+ "$ref": "#/$defs/chart"+ },+ {+ "$ref": "#/$defs/table"+ },+ {+ "$ref": "#/$defs/media"+ },+ {+ "$ref": "#/$defs/embed"+ },+ {+ "$ref": "#/$defs/code"+ }+ ]+ },+ "slide": {+ "type": "object",+ "properties": {+ "background": {+ "type": "string",+ "maxLength": 200,+ "description": "CSS colour; no url()"+ },+ "comments": {+ "type": "array",+ "maxItems": 500,+ "items": {+ "type": "object",+ "properties": {+ "at": {+ "type": "string",+ "maxLength": 200+ },+ "author": {+ "type": "string",+ "maxLength": 4000+ },+ "elementId": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "id": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "replies": {+ "type": "array",+ "maxItems": 500,+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "author": {+ "type": "string",+ "maxLength": 4000+ },+ "text": {+ "type": "string",+ "maxLength": 4000+ },+ "at": {+ "type": "string",+ "maxLength": 200+ }+ },+ "additionalProperties": false+ }+ },+ "resolved": {+ "type": "boolean"+ },+ "text": {+ "type": "string",+ "maxLength": 4000+ },+ "x": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ },+ "y": {+ "type": "number",+ "minimum": -1000000,+ "maximum": 1000000+ }+ },+ "additionalProperties": false+ }+ },+ "elements": {+ "type": "array",+ "maxItems": 5000,+ "items": {+ "$ref": "#/$defs/element"+ }+ },+ "hidden": {+ "type": "boolean"+ },+ "hover": {+ "type": "object",+ "properties": {+ "type": {+ "type": "string",+ "enum": [+ "focus-group",+ "reveal"+ ]+ },+ "dim": {+ "type": "number",+ "minimum": 0,+ "maximum": 1+ },+ "default": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ }+ },+ "additionalProperties": false,+ "required": [+ "type"+ ]+ },+ "id": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "name": {+ "type": "string",+ "maxLength": 4000+ },+ "notes": {+ "type": "string",+ "maxLength": 65536+ },+ "stateOf": {+ "type": "string",+ "maxLength": 200,+ "pattern": "^[^\"'<>{};]*$"+ },+ "themeRefs": {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ },+ "maxProperties": 64,+ "description": "property path → palette token"+ },+ "transition": {+ "type": "string",+ "enum": [+ "none",+ "fade",+ "slide",+ "zoom",+ "morph"+ ]+ },+ "unnumbered": {+ "type": "boolean"+ }+ },+ "additionalProperties": false,+ "required": [+ "id"+ ],+ "description": "stateOf = hidden variant reached by a link; transition morph pairs same-id elements"+ },+ "tableStyle": {+ "type": "object",+ "properties": {+ "borderColor": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ },+ "borderWidth": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "cellPadX": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "cellPadY": {+ "type": "number",+ "minimum": 0,+ "maximum": 1000+ },+ "color": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ },+ "fontFamily": {+ "type": "string",+ "maxLength": 300+ },+ "fontSize": {+ "type": "number",+ "minimum": 0,+ "maximum": 4000+ },+ "headerBg": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ },+ "headerColor": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ },+ "radius": {+ "type": "number",+ "minimum": 0,+ "maximum": 100000+ },+ "zebra": {+ "type": "string",+ "maxLength": 64,+ "description": "CSS colour; no url()"+ }+ },+ "additionalProperties": false+ },+ "theme": {+ "type": "object",+ "properties": {+ "accent": {+ "type": "string",+ "maxLength": 64,+ "description": "accent colour"+ },+ "background": {+ "type": "string",+ "maxLength": 64,+ "description": "slide background"+ },+ "chartPalette": {+ "type": "array",+ "maxItems": 64,+ "items": {+ "type": "string",+ "maxLength": 64,+ "description": "series colour"+ }+ },+ "codePalette": {+ "type": "object",+ "properties": {+ "a": {+ "type": "string",+ "maxLength": 64,+ "description": "token colour"+ },+ "c": {+ "type": "string",+ "maxLength": 64,+ "description": "token colour"+ },+ "d": {+ "type": "string",+ "maxLength": 64,+ "description": "token colour"+ },+ "f": {+ "type": "string",+ "maxLength": 64,+ "description": "token colour"+ },+ "k": {+ "type": "string",+ "maxLength": 64,+ "description": "token colour"+ },+ "n": {+ "type": "string",+ "maxLength": 64,+ "description": "token colour"+ },+ "p": {+ "type": "string",+ "maxLength": 64,+ "description": "token colour"+ },+ "s": {+ "type": "string",+ "maxLength": 64,+ "description": "token colour"+ }+ },+ "additionalProperties": false+ },+ "color": {+ "type": "string",+ "maxLength": 64,+ "description": "body text colour"+ },+ "fontFamily": {+ "type": "string",+ "maxLength": 300,+ "description": "CSS font-family stack for body text"+ },+ "headingFamily": {+ "type": "string",+ "maxLength": 300,+ "description": "display face for headings; absent = fontFamily"+ },+ "palette": {+ "type": "object",+ "properties": {+ "accent2": {+ "type": "string",+ "maxLength": 64,+ "description": "brand slot accent2"+ },+ "accent3": {+ "type": "string",+ "maxLength": 64,+ "description": "brand slot accent3"+ },+ "accent4": {+ "type": "string",+ "maxLength": 64,+ "description": "brand slot accent4"+ },+ "accent5": {+ "type": "string",+ "maxLength": 64,+ "description": "brand slot accent5"+ },+ "accent6": {+ "type": "string",+ "maxLength": 64,+ "description": "brand slot accent6"+ },+ "bg2": {+ "type": "string",+ "maxLength": 64,+ "description": "brand slot bg2"+ },+ "folHlink": {+ "type": "string",+ "maxLength": 64,+ "description": "brand slot folHlink"+ },+ "hlink": {+ "type": "string",+ "maxLength": 64,+ "description": "brand slot hlink"+ },+ "tx2": {+ "type": "string",+ "maxLength": 64,+ "description": "brand slot tx2"+ }+ },+ "additionalProperties": false+ },+ "table": {+ "$ref": "#/$defs/tableStyle"+ }+ },+ "additionalProperties": false,+ "required": [+ "background",+ "color",+ "accent",+ "fontFamily"+ ]+ },+ "doc": {+ "type": "object",+ "properties": {+ "assets": {+ "type": "object",+ "maxProperties": 2000,+ "additionalProperties": {+ "type": "string",+ "maxLength": 33554432+ },+ "description": "key → data: URI or svg, used as asset:<key>"+ },+ "blobs": {+ "type": "object",+ "description": "runtime-written"+ },+ "collab": {+ "type": "object",+ "description": "runtime-written credentials; never author"+ },+ "docId": {+ "type": "string",+ "maxLength": 200,+ "description": "runtime-minted uuid; omit"+ },+ "fonts": {+ "type": "array",+ "maxItems": 2000,+ "items": {+ "type": "object",+ "properties": {+ "asset": {+ "type": "string",+ "maxLength": 200,+ "description": "asset:<key> or builtin:<name>"+ },+ "family": {+ "type": "string",+ "maxLength": 300+ },+ "style": {+ "type": "string",+ "maxLength": 64+ },+ "weight": {+ "type": "string",+ "maxLength": 64+ }+ },+ "additionalProperties": false,+ "required": [+ "family",+ "asset"+ ]+ }+ },+ "format": {+ "const": "bento/slides"+ },+ "layouts": {+ "type": "array",+ "maxItems": 500,+ "items": {+ "$ref": "#/$defs/slide"+ },+ "description": "slide templates"+ },+ "meta": {+ "type": "object",+ "properties": {+ "author": {+ "type": "string",+ "maxLength": 4000+ },+ "company": {+ "type": "string",+ "maxLength": 4000+ },+ "event": {+ "type": "string",+ "maxLength": 4000+ },+ "keywords": {+ "type": "string",+ "maxLength": 4000+ },+ "subject": {+ "type": "string",+ "maxLength": 4000+ }+ },+ "additionalProperties": false+ },+ "modified": {+ "type": "string",+ "maxLength": 200,+ "description": "runtime-written"+ },+ "present": {+ "type": "object",+ "properties": {+ "controls": {+ "type": "boolean"+ },+ "morphSeconds": {+ "type": "number",+ "minimum": 0,+ "maximum": 60+ },+ "numberHidden": {+ "type": "boolean"+ },+ "progress": {+ "type": "boolean"+ },+ "slideNumber": {+ "type": "boolean"+ }+ },+ "additionalProperties": false+ },+ "readonly": {+ "type": "boolean",+ "description": "presentation package"+ },+ "size": {+ "type": "object",+ "properties": {+ "height": {+ "type": "number",+ "minimum": 1,+ "maximum": 100000+ },+ "width": {+ "type": "number",+ "minimum": 1,+ "maximum": 100000+ }+ },+ "additionalProperties": false,+ "required": [+ "width",+ "height"+ ]+ },+ "slides": {+ "type": "array",+ "minItems": 1,+ "maxItems": 500,+ "items": {+ "$ref": "#/$defs/slide"+ }+ },+ "template": {+ "type": "boolean"+ },+ "theme": {+ "$ref": "#/$defs/theme"+ },+ "title": {+ "type": "string",+ "maxLength": 4000+ },+ "version": {+ "type": "integer",+ "minimum": 1,+ "description": "format version; this shell writes 1"+ },+ "$schema": {+ "type": "string"+ },+ "compact": {+ "const": true,+ "description": "input only: omitted fields take editor defaults (AGENTS.md)"+ }+ },+ "additionalProperties": false,+ "required": [+ "format",+ "slides"+ ]+ }+ }+}diff --git a/schema/slides.json b/schema/slides.jsonindex 68974929..651c171a 100644--- a/schema/slides.json+++ b/schema/slides.json@@ -3,7 +3,7 @@"$id": "https://bento.page/schema/slides.json","title": "bento/slides document","description": "The #bento-doc JSON of a Bento Slides file, generated from the app's validation tables. Guide: https://bento.page/agents.md",- "x-bento-version": "1.1.0",+ "x-bento-version": "1.2.0","$ref": "#/$defs/doc","$defs": {"prop-fx": {diff --git a/slides/package.json b/slides/package.jsonindex 3f8a5930..83fd5a55 100644--- a/slides/package.json+++ b/slides/package.json@@ -1,7 +1,7 @@{"name": "bento-slides","private": true,- "version": "1.1.0",+ "version": "1.2.0","license": "MIT","type": "module","scripts": {