@codename/deck 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/deck.bundle.mjs +100 -94
- package/dist/deck.bundle.mjs.map +4 -4
- package/dist/deck.css +111 -0
- package/dist/deck.js +208 -91
- package/dist/deck.js.map +4 -4
- package/dist/deck.mjs +42 -36
- package/dist/deck.mjs.map +4 -4
- package/dist/template.mjs +3 -3
- package/dist/template.mjs.map +3 -3
- package/dist/types/blocks.d.ts +6 -4
- package/dist/types/figures.d.ts +68 -0
- package/dist/types/kit.d.ts +16 -0
- package/dist/types/mindmap.d.ts +69 -0
- package/dist/types/pptx.d.ts +3 -1
- package/dist/types/render.d.ts +21 -3
- package/dist/types/version.d.ts +1 -1
- package/docs/format.md +85 -4
- package/docs/host.md +3 -3
- package/docs/kits.md +10 -2
- package/package.json +1 -1
- package/src/blocks.js +26 -9
- package/src/deck.css +111 -0
- package/src/deck.js +11 -1
- package/src/figures.js +255 -0
- package/src/kit.js +35 -6
- package/src/mindmap.js +208 -0
- package/src/pptx.js +132 -17
- package/src/render.js +122 -19
- package/src/version.js +1 -1
package/README.md
CHANGED
|
@@ -39,12 +39,12 @@ layout: two-cols
|
|
|
39
39
|
|
|
40
40
|
## What it does
|
|
41
41
|
|
|
42
|
-
- **Layouts and looks as kits.**
|
|
42
|
+
- **Layouts and looks as kits.** Twenty-nine layouts come with deck: Slidev's names, PowerPoint's usual ones, a mind map, and figures drawn from a slide's lists (numbered cards, key figures, a timeline, chevrons, a timed programme, a pyramid, a bento), its `##` parts (face to face, a matrix) or the deck itself (its contents, with `hideInToc`). A kit adds others, turns some off, and holds a design system (DTCG tokens or a few flat ones, colours as hex or `rgb()`), a logo and the art a layout draws behind its words, as data, never CSS. A slide that names no layout gets the one its content suits. A company's PowerPoint template (or an Office theme) reads into a kit, its layouts with their pictures, shapes and words as their art, and a kit's tokens write out as DTCG. See [docs/kits.md](docs/kits.md).
|
|
43
43
|
- **Light and dark** from the same tokens, every colour held at WCAG AA on its paper.
|
|
44
44
|
- **Presenting:** full screen, a clicker's keys, steps (`<v-clicks>`), Slidev's transitions and a Morph that needs nothing written, the presenter's view with notes and a timer, all slides at once.
|
|
45
|
-
- **Charts and diagrams:** ` ```echarts ` blocks drawn by ECharts, ` ```mermaid ` blocks drawn by [Pele](https://github.com/obsidianmd/pele) (every kind Mermaid has, from 17 KB a kind), each loaded the first time a slide needs it.
|
|
45
|
+
- **Charts and diagrams:** ` ```echarts ` blocks drawn by ECharts, ` ```mermaid ` blocks drawn by [Pele](https://github.com/obsidianmd/pele) (every kind Mermaid has, from 17 KB a kind), each loaded the first time a slide needs it. `layout: mindmap` draws a slide's indented lists as one mind map, merged under one root, its words changed in place and PowerPoint's own shapes on the way out.
|
|
46
46
|
- **Changed three ways on one source:** as Markdown beside the slides, in place on a slide (a double click), or by a host's own means; each change goes back into the Markdown.
|
|
47
|
-
- **PowerPoint out, from the browser:** a layout per deck layout with placeholders, lists as lists, tables, native charts with their numbers, notes, transitions, the kit's colours as the theme. PowerPoint opens it without a repair. Keynote is not a target.
|
|
47
|
+
- **PowerPoint out, from the browser:** a layout per deck layout with placeholders, lists as lists, tables, native charts with their numbers, mind maps and figures as shapes, notes, transitions, the kit's colours as the theme. PowerPoint opens it without a repair. Keynote is not a target.
|
|
48
48
|
- **Every language:** right to left (layouts, charts and tables mirrored), CJK, upright scripts kept upright.
|
|
49
49
|
- **Read liberally:** what brains write in other dialects' habits (Pandoc's fenced divs, remark's and reveal.js's notes, headings as slides) is read without being rewritten. See [docs/format.md](docs/format.md).
|
|
50
50
|
- **Safe in a strict page:** the renderer builds with the DOM's own calls, sets no style attribute and needs no Trusted Types policy.
|
|
@@ -84,7 +84,7 @@ Commits carry no Co-Authored-By or Claude-Session trailer: `.claude/settings.jso
|
|
|
84
84
|
|---|---|
|
|
85
85
|
| `src/` | The renderer, its reader, kits, looks, the file, PowerPoint, repairs, pictures; JavaScript with JSDoc, checked by `tsc` |
|
|
86
86
|
| `test/` | Unit tests (`node --test`), browser tests, a strict host page, Mermaid samples |
|
|
87
|
-
| `examples/` | Decks in English, Arabic, Japanese, one with its own kit, one full of escapes; `make.mjs` writes their `.deck.html` |
|
|
87
|
+
| `examples/` | Decks in English, Arabic, Japanese, one of every figure, one with its own kit, one full of escapes; `make.mjs` writes their `.deck.html` |
|
|
88
88
|
| `eval/` | The brain evaluations: a draft skill, requests in four languages, replies, scores |
|
|
89
89
|
| `docs/` | The format, kits, the host API, and what phase 0 measured |
|
|
90
90
|
|