@steamfield/decks 0.0.0-stage → 1.0.0-rc.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/LICENSE +201 -0
- package/README.md +28 -2
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +5 -0
- package/dist/index-B2n69xrC.d.ts +75 -0
- package/dist/index-BURtH7IB.d.ts +182 -0
- package/dist/index-BV_-6L5L.d.ts +136 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +6 -0
- package/dist/kit/chrome/od-byline.css +7 -0
- package/dist/kit/chrome/od-cover-head.css +10 -0
- package/dist/kit/chrome/od-eyebrow.css +13 -0
- package/dist/kit/chrome/od-logo.css +167 -0
- package/dist/kit/chrome/od-qr-card.css +30 -0
- package/dist/kit/ink/code-ink.css +83 -0
- package/dist/kit/ink/graph-3d.css +29 -0
- package/dist/kit/ink/ink-bars.css +7 -0
- package/dist/kit/ink/ink-card-rect.css +6 -0
- package/dist/kit/ink/ink-chip.css +62 -0
- package/dist/kit/ink/ink-line.css +7 -0
- package/dist/kit/ink/ink-number.css +22 -0
- package/dist/kit/ink/ink-ping.css +4 -0
- package/dist/kit/ink/ink-rule.css +4 -0
- package/dist/kit/ink/ink-timeline-cursor.css +3 -0
- package/dist/kit/ink/ink-timeline.css +9 -0
- package/dist/kit/ink/underline.css +12 -0
- package/dist/kit/ink/unit-grid.css +3 -0
- package/dist/kit/story/story-card.css +19 -0
- package/dist/kit/story/story-link.css +13 -0
- package/dist/kit/story/story-stage.css +59 -0
- package/dist/kit/styles/base.css +82 -0
- package/dist/kit/styles/compat.css +78 -0
- package/dist/kit/styles/components.css +224 -0
- package/dist/kit/styles/fonts/inter-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/kit/styles/fonts/inter-cyrillic-wght-normal.woff2 +0 -0
- package/dist/kit/styles/fonts/inter-greek-ext-wght-normal.woff2 +0 -0
- package/dist/kit/styles/fonts/inter-greek-wght-normal.woff2 +0 -0
- package/dist/kit/styles/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/kit/styles/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/dist/kit/styles/fonts/inter-vietnamese-wght-normal.woff2 +0 -0
- package/dist/kit/styles/fonts.css +73 -0
- package/dist/kit/styles/index.css +36 -0
- package/dist/kit/styles/layout.css +181 -0
- package/dist/kit/styles/stats.css +92 -0
- package/dist/kit/styles/story-frame.css +179 -0
- package/dist/kit/styles/story-marks.css +115 -0
- package/dist/kit/styles/story-transition.css +182 -0
- package/dist/kit/styles.css +1 -0
- package/dist/kit.d.ts +880 -0
- package/dist/kit.js +3475 -0
- package/dist/layers.css +60 -0
- package/dist/layouts.css +58 -0
- package/dist/lint/ai-rhetoric-patterns.tsv +110 -0
- package/dist/lint/deck-writing-reminder.md +9 -0
- package/dist/motion.css +215 -0
- package/dist/motion.d.ts +2 -0
- package/dist/motion.js +1 -0
- package/dist/node.d.ts +63 -0
- package/dist/node.js +1 -0
- package/dist/overview-view.css +58 -0
- package/dist/play-view.css +29 -0
- package/dist/plugin/skills/building-a-deck/SKILL.md +22 -0
- package/dist/plugin/skills/building-a-deck/references/workflow.md +86 -0
- package/dist/plugin/skills/deck-data/SKILL.md +27 -0
- package/dist/plugin/skills/deck-data/references/fact-check.md +59 -0
- package/dist/plugin/skills/deck-data/references/provenance.md +61 -0
- package/dist/plugin/skills/deck-design/SKILL.md +31 -0
- package/dist/plugin/skills/deck-design/references/layout.md +55 -0
- package/dist/plugin/skills/deck-motion/SKILL.md +34 -0
- package/dist/plugin/skills/deck-motion/references/motion.md +66 -0
- package/dist/plugin/skills/visualization/SKILL.md +34 -0
- package/dist/plugin/skills/visualization/references/VENDORED.md +25 -0
- package/dist/plugin/skills/visualization/references/annotations.md +27 -0
- package/dist/plugin/skills/visualization/references/chart-selection.md +29 -0
- package/dist/plugin/skills/visualization/references/color-strategy.md +22 -0
- package/dist/plugin/skills/visualization/references/encoding-channels.md +44 -0
- package/dist/plugin/skills/visualization/references/ink.md +38 -0
- package/dist/plugin/skills/visualization/references/marks.md +33 -0
- package/dist/plugin/skills/visualization/references/presentation.md +43 -0
- package/dist/plugin/skills/working-with-decks/SKILL.md +34 -0
- package/dist/plugin/skills/working-with-decks/references/project.md +59 -0
- package/dist/plugin/skills/writing-slides/SKILL.md +45 -0
- package/dist/plugin/skills/writing-slides/references/lint.md +11 -0
- package/dist/plugin/skills/writing-slides/references/prose-patterns.md +48 -0
- package/dist/presenter-view.css +113 -0
- package/dist/print-view.module.css +32 -0
- package/dist/prose-patterns-DPqjGBFu.js +76 -0
- package/dist/prose-scan-BrWZ7gxZ.js +233 -0
- package/dist/src-C-OfT72W.js +396 -0
- package/dist/src-CmQgaG1b.js +2469 -0
- package/dist/src-DizFoqYt.js +1508 -0
- package/dist/templates/conventional/deck.config.ts +7 -0
- package/dist/templates/conventional/setup.ts +3 -0
- package/dist/templates/conventional/slides/01-cover.mdx +9 -0
- package/dist/templates/conventional/slides/02-first-point.mdx +12 -0
- package/dist/templates/conventional/styles/index.css +1 -0
- package/dist/templates/story/components/FirstStage.tsx +34 -0
- package/dist/templates/story/data/01-first.ts +8 -0
- package/dist/templates/story/data-sources.md +7 -0
- package/dist/templates/story/deck.config.ts +8 -0
- package/dist/templates/story/setup.ts +3 -0
- package/dist/templates/story/slides/01-cover.mdx +9 -0
- package/dist/templates/story/slides/02-first-point.mdx +6 -0
- package/dist/templates/story/styles/index.css +1 -0
- package/dist/transition.css +87 -0
- package/docs/README.md +28 -0
- package/docs/canvas.md +134 -0
- package/docs/cli.md +49 -0
- package/docs/code-blocks.md +132 -0
- package/docs/config.md +183 -0
- package/docs/getting-started.md +204 -0
- package/docs/kit.md +371 -0
- package/docs/migrating-from-slidev.md +45 -0
- package/docs/motion.md +396 -0
- package/docs/presenting.md +99 -0
- package/docs/slides.md +246 -0
- package/package.json +108 -4
package/docs/slides.md
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# Writing slides
|
|
2
|
+
|
|
3
|
+
A slide is one MDX file under `slides/`: optional YAML frontmatter, then markdown and JSX. The filename sets its order and its id.
|
|
4
|
+
|
|
5
|
+
```mdx
|
|
6
|
+
---
|
|
7
|
+
title: Three steps
|
|
8
|
+
clicks: 3
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<h1>Three steps</h1>
|
|
12
|
+
|
|
13
|
+
<StepList />
|
|
14
|
+
|
|
15
|
+
<Notes>
|
|
16
|
+
Start here.
|
|
17
|
+
|
|
18
|
+
[click] First point.
|
|
19
|
+
|
|
20
|
+
[click] Second point.
|
|
21
|
+
|
|
22
|
+
[click] Third point.
|
|
23
|
+
</Notes>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
That is `examples/basic/slides/02-steps.mdx`. `StepList` comes from `examples/basic/components/StepList.tsx` and is used without an import.
|
|
27
|
+
|
|
28
|
+
Markdown and JSX mix freely. Markdown inside a JSX element needs blank lines around it, which is MDX's rule:
|
|
29
|
+
|
|
30
|
+
```mdx
|
|
31
|
+
<Steps from={1} enter="rise">
|
|
32
|
+
|
|
33
|
+
1. Frame the question.
|
|
34
|
+
2. Reveal the evidence.
|
|
35
|
+
|
|
36
|
+
</Steps>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
A slide can also import and declare things at the top, as any MDX file can:
|
|
40
|
+
|
|
41
|
+
```mdx
|
|
42
|
+
---
|
|
43
|
+
title: Building for agents
|
|
44
|
+
---
|
|
45
|
+
import { StoryCover } from '@steamfield/decks/kit'
|
|
46
|
+
import { BYLINE } from '../data/01-cover'
|
|
47
|
+
|
|
48
|
+
export const month = new Date(`${BYLINE.month}-01`).toLocaleDateString('en-US', { month: 'long', year: 'numeric', timeZone: 'UTC' })
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Frontmatter
|
|
52
|
+
|
|
53
|
+
| Key | Accepted values | Default | Meaning |
|
|
54
|
+
| --- | --- | --- | --- |
|
|
55
|
+
| `title` | string | the slide's id | Shown in the overview and used as the tile's accessible name. |
|
|
56
|
+
| `clicks` | whole number, 0 or greater | counted from the slide | Number of clicks after the initial state. Set it when a component paces itself from the click, or when the count cannot be read from the MDX. See [motion.md](motion.md). |
|
|
57
|
+
| `hide` | `true`, `false` | `false` | A hidden slide is dropped before numbering and never compiled. |
|
|
58
|
+
| `transition` | non-empty string | the deck's `transition`, else `fade` | Transition between this slide and the next one, in both directions. Built in: `cut`, `fade`, `push`, `zoom`. |
|
|
59
|
+
| `morphSteps` | `true`, `false` | `false` | Clicks on this slide run through a view transition, so a `Morph` can move between clicks. |
|
|
60
|
+
| `layers` | `false`, `"above"`, `"below"` | both layers | Which of the deck's layers this slide shows. `false` shows neither. It does not affect the credit. |
|
|
61
|
+
|
|
62
|
+
Any other key is kept and reaches components through `useSlide().frontmatter`. A value of the wrong type is an error naming the file and the key. A deck where every slide is hidden is an error.
|
|
63
|
+
|
|
64
|
+
## Speaker notes
|
|
65
|
+
|
|
66
|
+
Put notes in one `<Notes>` block. It is removed from the slide at compile time and shown in the presenter window. Its content is markdown.
|
|
67
|
+
|
|
68
|
+
A line that starts with `[click]` begins the notes for the next click. `[click:3]` skips ahead three clicks. Text before the first marker belongs to click 0. The presenter marks the segment for the current click.
|
|
69
|
+
|
|
70
|
+
```mdx
|
|
71
|
+
<Notes>
|
|
72
|
+
Say this when the slide appears.
|
|
73
|
+
|
|
74
|
+
[click] Say this after the first click.
|
|
75
|
+
|
|
76
|
+
[click:2] Say this after the third click.
|
|
77
|
+
</Notes>
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Rules:
|
|
81
|
+
|
|
82
|
+
- One `<Notes>` per slide. A second one is an error.
|
|
83
|
+
- Write it as a block of its own, not inside a JSX expression such as `{cond && <Notes>...</Notes>}`.
|
|
84
|
+
- A marker only counts at the start of a line. `Say [click] here` is plain text.
|
|
85
|
+
- Notes do not add clicks. Markers describe clicks the slide already has.
|
|
86
|
+
- Steps and code blocks inside `<Notes>` are neither counted nor rendered.
|
|
87
|
+
|
|
88
|
+
## Components without imports
|
|
89
|
+
|
|
90
|
+
Every slide can use these names with no import.
|
|
91
|
+
|
|
92
|
+
| Source | Names |
|
|
93
|
+
| --- | --- |
|
|
94
|
+
| The deck's `components/*.tsx` | Every named export under its own name; a default export under the file's basename. |
|
|
95
|
+
| Motion (`@steamfield/decks/motion`) | `Step`, `Steps`, `Stagger`, `TextReveal`, `Highlight`, `CountUp`, `Draw`, `Morph` |
|
|
96
|
+
| Layouts (`@steamfield/decks`) | `Center`, `Cover`, `Section`, `TwoCol`, `ImageSide` |
|
|
97
|
+
| Built in | `Notes`; fenced code blocks render through `CodeBlock` |
|
|
98
|
+
|
|
99
|
+
A deck component with the same name as a framework one replaces it for that deck. A replaced motion component no longer adds clicks.
|
|
100
|
+
|
|
101
|
+
Rules for `components/`:
|
|
102
|
+
|
|
103
|
+
- Only `.tsx` files directly in the folder are scanned. Put helpers in other folders or in `.ts` files.
|
|
104
|
+
- Two files exporting the same name is an error naming both.
|
|
105
|
+
- `export * from "..."` is an error. Re-export by name.
|
|
106
|
+
- Type-only exports are ignored.
|
|
107
|
+
|
|
108
|
+
Kit components are not provided automatically. Re-export the ones you want, as `examples/tides-slide/components/chrome.tsx` does:
|
|
109
|
+
|
|
110
|
+
```tsx
|
|
111
|
+
export { StoryCover } from "@steamfield/decks/kit";
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
or import them in the slide.
|
|
115
|
+
|
|
116
|
+
A capitalized JSX name that is not provided, exported from `components/`, or imported or declared in the slide is a compile error:
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
slides/03-x.mdx:3:1: <Nonexistent> is not defined. Export it from a file in components/ or import it in the slide.
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Lowercase elements and member names such as `<motion.div>` are not checked.
|
|
123
|
+
|
|
124
|
+
## Built-in layouts
|
|
125
|
+
|
|
126
|
+
Layouts arrange their children and nothing else. They set no fonts, colors or sizes. Each fills the slide and pads its content with `--deck-pad-x` (120px) and `--deck-pad-y` (96px); the gap between children is `--deck-gap` (80px). Override the variables in your CSS.
|
|
127
|
+
|
|
128
|
+
| Layout | Arrangement | Props |
|
|
129
|
+
| --- | --- | --- |
|
|
130
|
+
| `Center` | Children centered on both axes. | none |
|
|
131
|
+
| `Cover` | Children stacked, centered vertically, aligned to the start. A title slide. | none |
|
|
132
|
+
| `Section` | Children anchored to the bottom start corner. A section divider. | none |
|
|
133
|
+
| `TwoCol` | Two columns. Requires exactly two element children. | `ratio`: `"1:1"` (default), `"2:1"`, `"1:2"`, `"3:2"`, `"2:3"`. `align`: `"start"` (default), `"center"`, `"end"`. |
|
|
134
|
+
| `ImageSide` | An image filling one side edge to edge, children on the other. | `src` and `alt` (required; an empty `alt` marks the image decorative). `side`: `"left"` (default), `"right"`. `ratio`: `"1:1"` (default), `"2:1"`, `"1:2"`. |
|
|
135
|
+
|
|
136
|
+
From `examples/motion/slides/29-two-col.mdx` and `30-image-side.mdx`:
|
|
137
|
+
|
|
138
|
+
```mdx
|
|
139
|
+
<TwoCol ratio="2:1" align="center">
|
|
140
|
+
<div className="layout-statement">
|
|
141
|
+
<h1>Give the argument<br />more space.</h1>
|
|
142
|
+
</div>
|
|
143
|
+
<aside className="layout-note">
|
|
144
|
+
<h2>Keep a steady anchor.</h2>
|
|
145
|
+
</aside>
|
|
146
|
+
</TwoCol>
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
```mdx
|
|
150
|
+
<ImageSide src="field.svg" alt="Mint paths converge around an amber circle on a dark field" side="right">
|
|
151
|
+
<h1>Let the image<br />carry the motion.</h1>
|
|
152
|
+
</ImageSide>
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
`field.svg` is `examples/motion/public/field.svg`. In a window that is not 16:9 the layouts use the extra canvas: columns widen and centered content stays centered.
|
|
156
|
+
|
|
157
|
+
## `useDeck()` and `useSlide()`
|
|
158
|
+
|
|
159
|
+
Both come from `@steamfield/decks`. Use them in components rendered from a slide or a layer. Outside a deck or a slide they throw an error that says so.
|
|
160
|
+
|
|
161
|
+
```tsx
|
|
162
|
+
import { useDeck, useSlide } from "@steamfield/decks";
|
|
163
|
+
|
|
164
|
+
export function SlideStatus() {
|
|
165
|
+
const { slide, total } = useDeck();
|
|
166
|
+
const { no, clicks, clicksTotal, isActive } = useSlide();
|
|
167
|
+
return (
|
|
168
|
+
<p>
|
|
169
|
+
Slide {no} of {total}, click {clicks} of {clicksTotal}
|
|
170
|
+
{isActive && slide === no ? ", active" : ""}
|
|
171
|
+
</p>
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
`useDeck()` describes the whole deck:
|
|
177
|
+
|
|
178
|
+
| Field | Meaning |
|
|
179
|
+
| --- | --- |
|
|
180
|
+
| `slide`, `clicks` | The deck's current slide number and click. |
|
|
181
|
+
| `total` | Number of visible slides. |
|
|
182
|
+
| `clicksTotal` | Click total of the current slide. |
|
|
183
|
+
| `slides` | Every slide's `no`, `id`, `file`, `title`, `clicks`, and `transition` and `morphSteps` when set. |
|
|
184
|
+
| `view` | `"play"`, `"presenter"`, `"overview"` or `"print"`. |
|
|
185
|
+
| `isPrint` | `view === "print"`. |
|
|
186
|
+
| `embedded` | True when the page was opened with `?embedded`. |
|
|
187
|
+
| `next()`, `prev()` | One click forward or back, crossing slides at the ends. |
|
|
188
|
+
| `nextSlide()`, `prevSlide()` | To the neighbouring slide at click 0. |
|
|
189
|
+
| `go(slide, click?)` | To a slide, clamped to the deck. |
|
|
190
|
+
|
|
191
|
+
`useSlide()` describes the slide this component instance is rendered in:
|
|
192
|
+
|
|
193
|
+
| Field | Meaning |
|
|
194
|
+
| --- | --- |
|
|
195
|
+
| `no`, `id` | This slide's number and id. |
|
|
196
|
+
| `clicks` | The click this instance renders at. Not always the deck's click: see below. |
|
|
197
|
+
| `clicksTotal` | This slide's click total. |
|
|
198
|
+
| `isActive` | True only for the current slide in the play view. |
|
|
199
|
+
| `renderContext` | Which of the five contexts this instance is in. |
|
|
200
|
+
| `frontmatter` | The slide's frontmatter as written, custom keys included. |
|
|
201
|
+
|
|
202
|
+
Pace a component from `useSlide().clicks`, not from `useDeck().clicks`. `examples/basic/components/StepList.tsx`:
|
|
203
|
+
|
|
204
|
+
```tsx
|
|
205
|
+
export function StepList() {
|
|
206
|
+
const { clicks } = useSlide();
|
|
207
|
+
return (
|
|
208
|
+
<ol>
|
|
209
|
+
{POINTS.slice(0, clicks).map((point) => (
|
|
210
|
+
<li key={point}>{point}</li>
|
|
211
|
+
))}
|
|
212
|
+
</ol>
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
A component like this adds no counted clicks, so its slide sets `clicks: 3`.
|
|
218
|
+
|
|
219
|
+
## The five render contexts
|
|
220
|
+
|
|
221
|
+
The same slide is rendered in several places, sometimes at once.
|
|
222
|
+
|
|
223
|
+
| `renderContext` | Where | `clicks` | `isActive` |
|
|
224
|
+
| --- | --- | --- | --- |
|
|
225
|
+
| `slide` | The play view. The current slide and the slides before and after it are mounted; the neighbours are hidden. | The deck's click on the current slide; the full total on the one before; 0 on the one after. | True on the current slide only. |
|
|
226
|
+
| `presenter` | The presenter window's current slide. | The deck's click. | False |
|
|
227
|
+
| `preview` | The presenter window's "Next" box. | The click the next key press leads to. | False |
|
|
228
|
+
| `overview` | An overview tile. | The slide's last click. | False |
|
|
229
|
+
| `print` | The print view (`#/print`), which `decks export` captures. | The frame's click step, or the last click with `?print=final`. | False |
|
|
230
|
+
|
|
231
|
+
What a component must do:
|
|
232
|
+
|
|
233
|
+
- Render the finished state for its `clicks` whenever `renderContext` is not `"slide"`, or `isActive` is false, or motion is `instant`. No animation, no timers, no WebGL. The framework's motion components and hooks already do this.
|
|
234
|
+
- Never assume it is the only instance. Use `useId()` for ids (SVG filters, gradients, `aria-labelledby`), not fixed strings.
|
|
235
|
+
- Never read or write `window.location`. Position comes from the hooks.
|
|
236
|
+
- Start work that should happen once per visit (an entrance animation, a scripted demo) from `isActive`, not from mount. A neighbouring slide is mounted before it is shown.
|
|
237
|
+
|
|
238
|
+
`examples/building-for-agents/layers/above.tsx` shows the pattern for an expensive effect:
|
|
239
|
+
|
|
240
|
+
```tsx
|
|
241
|
+
const { view, embedded } = useDeck();
|
|
242
|
+
const { renderContext, isActive } = useSlide();
|
|
243
|
+
const on = renderContext === "slide" && isActive && view === "play" && !embedded;
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
For CSS, each slide root carries `data-deck-slide="<no>"`, `data-deck-context="<context>"`, and `data-deck-active` on the current slide of the play view.
|
package/package.json
CHANGED
|
@@ -1,6 +1,110 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steamfield/decks",
|
|
3
|
-
"version": "0.0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0-rc.0",
|
|
4
|
+
"description": "React slide decks for animated, data-driven talks: MDX slides, motion, story stages, charts, and a CLI, built with coding agents.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/steamfield/decks.git",
|
|
9
|
+
"directory": "packages/decks"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://decks.steamfield.io",
|
|
12
|
+
"bugs": "https://github.com/steamfield/decks/issues",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"slides",
|
|
15
|
+
"presentations",
|
|
16
|
+
"react",
|
|
17
|
+
"mdx",
|
|
18
|
+
"vite",
|
|
19
|
+
"data-storytelling",
|
|
20
|
+
"charts"
|
|
21
|
+
],
|
|
22
|
+
"type": "module",
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=22.12.0"
|
|
25
|
+
},
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"@steamfield/decks/source": "./src/index.ts",
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"default": "./dist/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./motion": {
|
|
33
|
+
"@steamfield/decks/source": "./src/motion.ts",
|
|
34
|
+
"types": "./dist/motion.d.ts",
|
|
35
|
+
"default": "./dist/motion.js"
|
|
36
|
+
},
|
|
37
|
+
"./kit": {
|
|
38
|
+
"@steamfield/decks/source": "./src/kit.ts",
|
|
39
|
+
"types": "./dist/kit.d.ts",
|
|
40
|
+
"default": "./dist/kit.js"
|
|
41
|
+
},
|
|
42
|
+
"./node": {
|
|
43
|
+
"@steamfield/decks/source": "./src/node.ts",
|
|
44
|
+
"types": "./dist/node.d.ts",
|
|
45
|
+
"default": "./dist/node.js"
|
|
46
|
+
},
|
|
47
|
+
"./kit/styles.css": {
|
|
48
|
+
"@steamfield/decks/source": "./src/kit/styles.css",
|
|
49
|
+
"default": "./dist/kit/styles.css"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"bin": {
|
|
53
|
+
"decks": "./dist/cli.js"
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"dist",
|
|
57
|
+
"docs",
|
|
58
|
+
"README.md",
|
|
59
|
+
"LICENSE"
|
|
60
|
+
],
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "node build.mjs"
|
|
63
|
+
},
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"3d-force-graph": "1.80.1",
|
|
66
|
+
"@mdx-js/rollup": "3.1.1",
|
|
67
|
+
"@opendata-ai/openchart-core": "9.0.0",
|
|
68
|
+
"@opendata-ai/openchart-react": "9.0.0",
|
|
69
|
+
"@shikijs/rehype": "4.6.0",
|
|
70
|
+
"@types/d3-scale": "4.0.9",
|
|
71
|
+
"@types/mdx": "2.0.14",
|
|
72
|
+
"@vitejs/plugin-react": "6.3.0",
|
|
73
|
+
"citty": "0.2.2",
|
|
74
|
+
"d3-scale": "4.0.2",
|
|
75
|
+
"get-port": "7.2.0",
|
|
76
|
+
"gray-matter": "4.0.3",
|
|
77
|
+
"gsap": "3.15.1",
|
|
78
|
+
"jiti": "2.7.0",
|
|
79
|
+
"oxc-parser": "0.158.0",
|
|
80
|
+
"picocolors": "1.1.1",
|
|
81
|
+
"playwright-core": "1.65.1",
|
|
82
|
+
"react-error-boundary": "6.1.6",
|
|
83
|
+
"rehype-stringify": "10.0.1",
|
|
84
|
+
"remark-frontmatter": "5.0.0",
|
|
85
|
+
"remark-mdx": "3.1.1",
|
|
86
|
+
"remark-parse": "11.0.0",
|
|
87
|
+
"remark-rehype": "11.1.2",
|
|
88
|
+
"shiki": "4.6.0",
|
|
89
|
+
"three": "0.185.1",
|
|
90
|
+
"three-spritetext": "1.10.0",
|
|
91
|
+
"tinyglobby": "0.2.17",
|
|
92
|
+
"tinykeys": "4.0.1",
|
|
93
|
+
"unified": "11.0.5",
|
|
94
|
+
"uqr": "0.1.3",
|
|
95
|
+
"vite": "8.3.8",
|
|
96
|
+
"zod": "4.6.7",
|
|
97
|
+
"zustand": "5.1.0"
|
|
98
|
+
},
|
|
99
|
+
"peerDependencies": {
|
|
100
|
+
"react": "^19.3.1",
|
|
101
|
+
"react-dom": "^19.3.1"
|
|
102
|
+
},
|
|
103
|
+
"devDependencies": {
|
|
104
|
+
"@react-decks/core": "workspace:*",
|
|
105
|
+
"@react-decks/runtime": "workspace:*",
|
|
106
|
+
"@react-decks/motion": "workspace:*",
|
|
107
|
+
"@react-decks/node": "workspace:*",
|
|
108
|
+
"@react-decks/kit": "workspace:*"
|
|
109
|
+
}
|
|
110
|
+
}
|