@steamfield/decks 1.0.0-rc.1 → 1.0.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.
Files changed (43) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/control-tray.css +80 -0
  3. package/dist/go-to-dialog.css +57 -0
  4. package/dist/{index-BURtH7IB.d.ts → index-D3Yj4yT6.d.ts} +11 -2
  5. package/dist/{index-BV_-6L5L.d.ts → index-DG8UcGQd.d.ts} +77 -1
  6. package/dist/{index-B2n69xrC.d.ts → index-zg-z6HTy.d.ts} +18 -2
  7. package/dist/index.d.ts +3 -3
  8. package/dist/index.js +2 -2
  9. package/dist/kit/term/live-term.module.css +36 -0
  10. package/dist/kit.d.ts +21 -6
  11. package/dist/kit.js +252 -8
  12. package/dist/live-term.module.css +36 -0
  13. package/dist/magic-move.css +30 -0
  14. package/dist/mark.css +34 -0
  15. package/dist/motion.d.ts +2 -2
  16. package/dist/motion.js +1 -1
  17. package/dist/node.d.ts +5 -1
  18. package/dist/node.js +1 -1
  19. package/dist/plugin/skills/building-a-deck/references/workflow.md +10 -0
  20. package/dist/plugin/skills/deck-design/references/layout.md +2 -0
  21. package/dist/plugin/skills/deck-motion/references/motion.md +38 -1
  22. package/dist/plugin/skills/working-with-decks/references/project.md +4 -0
  23. package/dist/{prose-patterns-DPqjGBFu.js → prose-patterns-D-tdt0Ab.js} +3 -1
  24. package/dist/{prose-scan-BrWZ7gxZ.js → prose-scan-ni8g6pc-.js} +2 -2
  25. package/dist/{src-DizFoqYt.js → src-BHlxNl0Z.js} +347 -42
  26. package/dist/{src-CmQgaG1b.js → src-BxuWgcUh.js} +581 -67
  27. package/dist/{src-C-OfT72W.js → src-CDNWEWZz.js} +212 -3
  28. package/dist/term/shell_pty.py +38 -0
  29. package/dist/term/zsh/.zshrc +4 -0
  30. package/dist/term-protocol-B_qHRDEp.js +11 -0
  31. package/dist/xterm-host-C6OjffSm.js +282 -0
  32. package/docs/README.md +1 -0
  33. package/docs/cli.md +1 -1
  34. package/docs/code-blocks.md +31 -0
  35. package/docs/config.md +1 -0
  36. package/docs/getting-started.md +2 -1
  37. package/docs/kit.md +7 -6
  38. package/docs/migrating-from-slidev.md +4 -0
  39. package/docs/motion.md +25 -1
  40. package/docs/presenting.md +16 -1
  41. package/docs/slides.md +20 -1
  42. package/docs/terminal.md +97 -0
  43. package/package.json +4 -1
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as runCli } from "./src-CmQgaG1b.js";
2
+ import { t as runCli } from "./src-BxuWgcUh.js";
3
3
  // src/cli.ts
4
4
  await runCli();
5
5
  export {};
@@ -0,0 +1,80 @@
1
+ @layer react-decks {
2
+ .rd-tray {
3
+ --rd-ui-panel: color-mix(in oklab, currentColor 7%, transparent);
4
+ --rd-ui-line: color-mix(in oklab, currentColor 22%, transparent);
5
+ --rd-ui-dim: color-mix(in oklab, currentColor 62%, transparent);
6
+ box-sizing: border-box;
7
+ max-width: 100vw;
8
+ position: fixed;
9
+ bottom: 0;
10
+ left: 0;
11
+ padding: 1rem;
12
+ opacity: 0;
13
+ transition: opacity var(--deck-dur-base, 300ms);
14
+ font:
15
+ 0.875rem / 1.25 system-ui,
16
+ sans-serif;
17
+ }
18
+
19
+ .rd-tray:hover,
20
+ .rd-tray:focus-within {
21
+ opacity: 1;
22
+ }
23
+
24
+ .rd-tray,
25
+ html[data-deck-idle] .rd-tray,
26
+ html[data-deck-idle] .rd-tray * {
27
+ cursor: default;
28
+ }
29
+
30
+ .rd-tray-buttons {
31
+ pointer-events: none;
32
+ display: flex;
33
+ flex-wrap: wrap;
34
+ gap: 0.25rem;
35
+ padding: 0.375rem;
36
+ border: 1px solid var(--rd-ui-line);
37
+ border-radius: 0.375rem;
38
+ background: var(--rd-ui-panel);
39
+ }
40
+
41
+ .rd-tray:hover .rd-tray-buttons,
42
+ .rd-tray:focus-within .rd-tray-buttons {
43
+ pointer-events: auto;
44
+ }
45
+
46
+ .rd-tray button {
47
+ display: inline-flex;
48
+ align-items: center;
49
+ justify-content: center;
50
+ gap: 0.375rem;
51
+ padding: 0.375rem;
52
+ border: 1px solid transparent;
53
+ border-radius: 0.375rem;
54
+ color: inherit;
55
+ background: transparent;
56
+ font: inherit;
57
+ white-space: nowrap;
58
+ }
59
+
60
+ .rd-tray button,
61
+ html[data-deck-idle] .rd-tray button,
62
+ html[data-deck-idle] .rd-tray button * {
63
+ cursor: pointer;
64
+ }
65
+
66
+ .rd-tray button:hover,
67
+ .rd-tray button:focus-visible {
68
+ border-color: var(--rd-ui-dim);
69
+ }
70
+
71
+ .rd-tray button:disabled {
72
+ color: var(--rd-ui-dim);
73
+ cursor: default;
74
+ }
75
+
76
+ .rd-tray svg {
77
+ width: 1.125rem;
78
+ height: 1.125rem;
79
+ }
80
+ }
@@ -0,0 +1,57 @@
1
+ @layer react-decks {
2
+ .rd-go-to {
3
+ --rd-ui-panel: color-mix(in oklab, currentColor 7%, transparent);
4
+ --rd-ui-line: color-mix(in oklab, currentColor 22%, transparent);
5
+ box-sizing: border-box;
6
+ width: min(32rem, calc(100vw - 3rem));
7
+ max-height: 80dvh;
8
+ padding: 1.25rem;
9
+ border: 1px solid var(--rd-ui-line);
10
+ border-radius: 0.5rem;
11
+ color: CanvasText;
12
+ background: Canvas;
13
+ font:
14
+ 1rem / 1.5 system-ui,
15
+ sans-serif;
16
+ cursor: auto;
17
+ }
18
+
19
+ .rd-go-to::backdrop {
20
+ background: color-mix(in oklab, CanvasText 45%, transparent);
21
+ }
22
+
23
+ .rd-go-to input {
24
+ box-sizing: border-box;
25
+ width: 100%;
26
+ margin-block: 0.5rem 1rem;
27
+ padding: 0.5rem;
28
+ border: 1px solid var(--rd-ui-line);
29
+ border-radius: 0.25rem;
30
+ color: inherit;
31
+ background: var(--rd-ui-panel);
32
+ font: inherit;
33
+ }
34
+
35
+ .rd-go-to [role="listbox"] {
36
+ max-height: 50dvh;
37
+ overflow: auto;
38
+ }
39
+
40
+ .rd-go-to [role="option"] {
41
+ display: block;
42
+ width: 100%;
43
+ padding: 0.5rem;
44
+ border: 0;
45
+ border-radius: 0.25rem;
46
+ color: inherit;
47
+ background: transparent;
48
+ text-align: start;
49
+ font: inherit;
50
+ cursor: pointer;
51
+ }
52
+
53
+ .rd-go-to [aria-selected="true"],
54
+ .rd-go-to [role="option"]:hover {
55
+ background: var(--rd-ui-panel);
56
+ }
57
+ }
@@ -1,4 +1,4 @@
1
- import { C as NavState, O as DeckManifest, h as DeckView, k as SlideMeta, s as Transport, x as NavAction } from "./index-BV_-6L5L.js";
1
+ import { A as DeckView, I as NavAction, R as NavState, S as Transport, U as DeckManifest, W as SlideMeta, b as SyncStamp } from "./index-DG8UcGQd.js";
2
2
  import { ComponentType, ReactElement, ReactNode } from "react";
3
3
  import { MDXComponents } from "mdx/types";
4
4
  declare function SlideFrame({ main, children }: {
@@ -30,6 +30,7 @@ interface DeckSource {
30
30
  readonly loadNotes?: () => Promise<Readonly<Record<string, readonly NoteHtml[]>>>;
31
31
  }
32
32
  interface DeckState {
33
+ readonly syncStamp: SyncStamp;
33
34
  readonly nav: NavState;
34
35
  readonly view: DeckView;
35
36
  readonly embedded: boolean;
@@ -109,6 +110,7 @@ type EmbedMessage = {
109
110
  type: "decks:state";
110
111
  } & EmbedState);
111
112
  interface DeckApi {
113
+ readonly syncStamp: SyncStamp;
112
114
  readonly slide: number;
113
115
  readonly total: number;
114
116
  readonly clicks: number;
@@ -170,13 +172,20 @@ declare global {
170
172
  };
171
173
  }
172
174
  }
175
+ /** A link to slide `to` (architecture section 4.5). */
176
+ declare function Link({ to, children }: {
177
+ to: number;
178
+ children?: ReactNode;
179
+ }): ReactElement;
173
180
  declare function SlideHost({ no, context, clicks }: {
174
181
  no: number;
175
182
  context: RenderContext;
176
183
  clicks?: number;
177
184
  }): ReactElement;
185
+ /** Every slide's title as a link, the current one marked (architecture section 4.5). */
186
+ declare function Toc(): ReactElement;
178
187
  declare function createBroadcastTransport(channelId: string): Transport;
179
188
  declare function OverviewView(): ReactElement;
180
189
  declare function PlayView(): ReactElement;
181
190
  declare function PresenterView(): ReactElement;
182
- export { createDeckStore as A, EmbedMeta as C, Deck as D, registerCaptionProvider as E, NoteHtml as M, SlideLoader as N, DeckState as O, SlideFrame as P, EmbedMessage as S, routeEmbedNavigation as T, useDeck as _, SlideHost as a, EmbedCommand as b, mountDeck as c, ImageSide as d, Section as f, SlideApi as g, RenderContext as h, createBroadcastTransport as i, DeckSource as j, DeckStore as k, Center as l, DeckApi as m, PlayView as n, registerSettleProbe as o, TwoCol as p, OverviewView as r, Notes as s, PresenterView as t, Cover as u, useSlide as v, EmbedState as w, EmbedDirection as x, useSlideScale as y };
191
+ export { DeckState as A, EmbedDirection as C, routeEmbedNavigation as D, EmbedState as E, SlideLoader as F, SlideFrame as I, createDeckStore as M, DeckSource as N, registerCaptionProvider as O, NoteHtml as P, EmbedCommand as S, EmbedMeta as T, RenderContext as _, Toc as a, useSlide as b, registerSettleProbe as c, Center as d, Cover as f, DeckApi as g, TwoCol as h, createBroadcastTransport as i, DeckStore as j, Deck as k, Notes as l, Section as m, PlayView as n, SlideHost as o, ImageSide as p, OverviewView as r, Link as s, PresenterView as t, mountDeck as u, SlideApi as v, EmbedMessage as w, useSlideScale as x, useDeck as y };
@@ -125,6 +125,8 @@ interface SyncSessionOptions {
125
125
  readonly onRemote: (state: SyncState) => void;
126
126
  }
127
127
  interface SyncSession {
128
+ /** The stamp adopted from a peer or assigned to the latest local publication. */
129
+ getStamp(): SyncStamp;
128
130
  /** Tell the other participants about a local change. */
129
131
  publish(state: SyncState): void;
130
132
  /** Stops listening and closes the transport. Later publishes do nothing. */
@@ -133,4 +135,78 @@ interface SyncSession {
133
135
  declare function createSyncSession(options: SyncSessionOptions): SyncSession;
134
136
  /** Stable channel name for a deck served at a base path. */
135
137
  declare function syncChannelId(deckName: string, base: string): string;
136
- export { assertManifest as A, NavState as C, CanvasSize as D, navigate as E, fitCanvas as M, DeckManifest as O, NavDirection as S, navDirection as T, parseLocation as _, SyncStamp as a, stepState as b, createMemoryHub as c, NoteSegment as d, noteClickCount as f, formatHash as g, DeckView as h, SyncSessionOptions as i, CanvasFit as j, SlideMeta as k, createSyncSession as l, DeckLocation as m, SyncMessage as n, SyncState as o, segmentNotes as p, SyncSession as r, Transport as s, MemoryHub as t, syncChannelId as u, StepState as v, clampNav as w, NavAction as x, clicksForSlide as y };
138
+ /**
139
+ * The wire contract between a live terminal pane in the browser (kit) and the dev server's
140
+ * terminal plugin (node): event names and message shapes, sent as custom events on Vite's HMR
141
+ * socket. Architecture sections 6.8 and 7.2.
142
+ */
143
+ /** One terminal pane on a slide. The server keeps one shell per `id`. */
144
+ interface TermPaneSpec {
145
+ /** Unique across the deck, for example "stacks" or "rr-monitor". */
146
+ id: string;
147
+ rows: number;
148
+ cols: number;
149
+ /**
150
+ * Where the shell starts: "temp" is a fresh temporary directory, and any other value names a
151
+ * directory in `deck.config.ts` `term.dirs`. The browser never sends a path.
152
+ */
153
+ cwd: string;
154
+ /** `commands[n - 1]` is typed and run when the pane's position moves from click n - 1 to n. */
155
+ commands: readonly string[];
156
+ }
157
+ /** Browser to server. */
158
+ declare const TERM_ATTACH = "deck-term:attach";
159
+ declare const TERM_POSITION = "deck-term:position";
160
+ declare const TERM_INPUT = "deck-term:input";
161
+ /** Server to browser. */
162
+ declare const TERM_READY = "deck-term:ready";
163
+ declare const TERM_DATA = "deck-term:data";
164
+ declare const TERM_STATE = "deck-term:state";
165
+ declare const TERM_GONE = "deck-term:gone";
166
+ /** Subscribes a window to a pane's shell, starting it if needed. Never moves the position. */
167
+ interface TermAttach {
168
+ pane: TermPaneSpec;
169
+ }
170
+ /**
171
+ * Sent by an eligible window when its slide becomes active (`entered`) or its click changes
172
+ * while active. Every audience window sends its own; the server's position makes repeats no-ops.
173
+ */
174
+ interface TermPosition {
175
+ id: string;
176
+ click: number;
177
+ entered: boolean;
178
+ stamp: SyncStamp;
179
+ }
180
+ /** Keys typed into a focused pane. */
181
+ interface TermInput {
182
+ id: string;
183
+ data: string;
184
+ }
185
+ /** The reply to an attach: everything the shell has printed so far, up to 200 KB. */
186
+ interface TermReady {
187
+ id: string;
188
+ buffer: string;
189
+ }
190
+ interface TermData {
191
+ id: string;
192
+ chunk: string;
193
+ /** Prepared-command echo bypasses output pacing to keep its reading pause. */
194
+ immediate?: boolean;
195
+ }
196
+ interface TermState {
197
+ id: string;
198
+ /** The pane's position on the server: the last click a window reported. */
199
+ click: number;
200
+ /** True from a command being sent until the shell prints its prompt marker again. */
201
+ busy: boolean;
202
+ /** The clicks waiting for a prompt, in execution order. */
203
+ queued: readonly number[];
204
+ /** The clicks whose commands have run in this session. */
205
+ ran: readonly number[];
206
+ }
207
+ /** The shell could not start or has exited; the pane returns to its recording. */
208
+ interface TermGone {
209
+ id: string;
210
+ reason: string;
211
+ }
212
+ export { DeckView as A, navDirection as B, createMemoryHub as C, noteClickCount as D, NoteSegment as E, stepState as F, assertManifest as G, CanvasSize as H, NavAction as I, CanvasFit as K, NavDirection as L, parseLocation as M, StepState as N, segmentNotes as O, clicksForSlide as P, NavState as R, Transport as S, syncChannelId as T, DeckManifest as U, navigate as V, SlideMeta as W, SyncMessage as _, TERM_POSITION as a, SyncStamp as b, TermAttach as c, TermInput as d, TermPaneSpec as f, MemoryHub as g, TermState as h, TERM_INPUT as i, formatHash as j, DeckLocation as k, TermData as l, TermReady as m, TERM_DATA as n, TERM_READY as o, TermPosition as p, fitCanvas as q, TERM_GONE as r, TERM_STATE as s, TERM_ATTACH as t, TermGone as u, SyncSession as v, createSyncSession as w, SyncState as x, SyncSessionOptions as y, clampNav as z };
@@ -1,4 +1,4 @@
1
- import { v as StepState } from "./index-BV_-6L5L.js";
1
+ import { N as StepState } from "./index-DG8UcGQd.js";
2
2
  import { ComponentProps, DependencyList, ReactElement, ReactNode } from "react";
3
3
  import { gsap as gsap$1 } from "gsap";
4
4
  declare function CodeBlock(props: ComponentProps<"pre">): import("react").JSX.Element;
@@ -8,6 +8,22 @@ declare function CountUp({ at, from, to, format }: {
8
8
  to: number;
9
9
  format?: (value: number) => string;
10
10
  }): import("react").JSX.Element;
11
+ /** Compiled fence output; authors write a magic-move fence rather than this component. */
12
+ declare function MagicMove(props: {
13
+ steps: string;
14
+ at: string;
15
+ ranges: string;
16
+ title?: string;
17
+ }): import("react").JSX.Element;
18
+ type MarkKind = "underline" | "circle" | "box" | "strike" | "cross" | "bracket";
19
+ /** A hand-drawn mark around its children, drawn on a click (architecture section 5.3). */
20
+ declare function Mark({ kind, at, until, color, children }: {
21
+ kind?: MarkKind;
22
+ at: number;
23
+ until?: number;
24
+ color?: string;
25
+ children?: ReactNode;
26
+ }): ReactElement;
11
27
  declare function Morph({ name, as: Element, className, children }: {
12
28
  name: string;
13
29
  as?: "div" | "span" | "h1" | "h2" | "h3" | "p" | "figure" | "g";
@@ -72,4 +88,4 @@ declare const stagger = 0.06;
72
88
  declare function motionMode(): "live" | "instant";
73
89
  declare function useTimeline(build: (tl: gsap.core.Timeline, beat: (n: number) => void) => void, deps?: DependencyList): void;
74
90
  declare function useTween<T extends Record<string, number>>(initial: T): T;
75
- export { CountUp as _, gsap$1 as a, Draw as c, Step as d, StepPreset as f, Morph as g, useStepState as h, ease as i, Highlight as l, TextReveal as m, useTimeline as n, motionMode as o, Steps as p, duration as r, stagger as s, useTween as t, Stagger as u, CodeBlock as v };
91
+ export { Mark as _, gsap$1 as a, CountUp as b, Draw as c, Step as d, StepPreset as f, Morph as g, useStepState as h, ease as i, Highlight as l, TextReveal as m, useTimeline as n, motionMode as o, Steps as p, duration as r, stagger as s, useTween as t, Stagger as u, MarkKind as v, CodeBlock as x, MagicMove as y };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { A as assertManifest, C as NavState, D as CanvasSize, E as navigate, M as fitCanvas, O as DeckManifest, S as NavDirection, T as navDirection, _ as parseLocation, a as SyncStamp, b as stepState, c as createMemoryHub, d as NoteSegment, f as noteClickCount, g as formatHash, h as DeckView, i as SyncSessionOptions, j as CanvasFit, k as SlideMeta, l as createSyncSession, m as DeckLocation, n as SyncMessage, o as SyncState, p as segmentNotes, r as SyncSession, s as Transport, t as MemoryHub, u as syncChannelId, v as StepState, w as clampNav, x as NavAction, y as clicksForSlide } from "./index-BV_-6L5L.js";
2
- import { A as createDeckStore, C as EmbedMeta, D as Deck, E as registerCaptionProvider, M as NoteHtml, N as SlideLoader, O as DeckState, P as SlideFrame, S as EmbedMessage, T as routeEmbedNavigation, _ as useDeck, a as SlideHost, b as EmbedCommand, c as mountDeck, d as ImageSide, f as Section, g as SlideApi, h as RenderContext, i as createBroadcastTransport, j as DeckSource, k as DeckStore, l as Center, m as DeckApi, n as PlayView, o as registerSettleProbe, p as TwoCol, r as OverviewView, s as Notes, t as PresenterView, u as Cover, v as useSlide, w as EmbedState, x as EmbedDirection, y as useSlideScale } from "./index-BURtH7IB.js";
3
- export { type CanvasFit, type CanvasSize, Center, Cover, Deck, type DeckApi, type DeckLocation, type DeckManifest, type DeckSource, type DeckState, type DeckStore, type DeckView, type EmbedCommand, type EmbedDirection, type EmbedMessage, type EmbedMeta, type EmbedState, ImageSide, type MemoryHub, type NavAction, type NavDirection, type NavState, type NoteHtml, type NoteSegment, Notes, OverviewView, PlayView, PresenterView, type RenderContext, Section, type SlideApi, SlideFrame, SlideHost, type SlideLoader, type SlideMeta, type StepState, type SyncMessage, type SyncSession, type SyncSessionOptions, type SyncStamp, type SyncState, type Transport, TwoCol, type assertManifest, type clampNav, type clicksForSlide, createBroadcastTransport, createDeckStore, type createMemoryHub, type createSyncSession, type fitCanvas, type formatHash, mountDeck, type navDirection, type navigate, type noteClickCount, type parseLocation, registerCaptionProvider, registerSettleProbe, routeEmbedNavigation, type segmentNotes, type stepState, type syncChannelId, useDeck, useSlide, useSlideScale };
1
+ import { A as DeckView, B as navDirection, C as createMemoryHub, D as noteClickCount, E as NoteSegment, F as stepState, G as assertManifest, H as CanvasSize, I as NavAction, K as CanvasFit, L as NavDirection, M as parseLocation, N as StepState, O as segmentNotes, P as clicksForSlide, R as NavState, S as Transport, T as syncChannelId, U as DeckManifest, V as navigate, W as SlideMeta, _ as SyncMessage, a as TERM_POSITION, b as SyncStamp, c as TermAttach, d as TermInput, f as TermPaneSpec, g as MemoryHub, h as TermState, i as TERM_INPUT, j as formatHash, k as DeckLocation, l as TermData, m as TermReady, n as TERM_DATA, o as TERM_READY, p as TermPosition, q as fitCanvas, r as TERM_GONE, s as TERM_STATE, t as TERM_ATTACH, u as TermGone, v as SyncSession, w as createSyncSession, x as SyncState, y as SyncSessionOptions, z as clampNav } from "./index-DG8UcGQd.js";
2
+ import { A as DeckState, C as EmbedDirection, D as routeEmbedNavigation, E as EmbedState, F as SlideLoader, I as SlideFrame, M as createDeckStore, N as DeckSource, O as registerCaptionProvider, P as NoteHtml, S as EmbedCommand, T as EmbedMeta, _ as RenderContext, a as Toc, b as useSlide, c as registerSettleProbe, d as Center, f as Cover, g as DeckApi, h as TwoCol, i as createBroadcastTransport, j as DeckStore, k as Deck, l as Notes, m as Section, n as PlayView, o as SlideHost, p as ImageSide, r as OverviewView, s as Link, t as PresenterView, u as mountDeck, v as SlideApi, w as EmbedMessage, x as useSlideScale, y as useDeck } from "./index-D3Yj4yT6.js";
3
+ export { type CanvasFit, type CanvasSize, Center, Cover, Deck, type DeckApi, type DeckLocation, type DeckManifest, type DeckSource, type DeckState, type DeckStore, type DeckView, type EmbedCommand, type EmbedDirection, type EmbedMessage, type EmbedMeta, type EmbedState, ImageSide, Link, type MemoryHub, type NavAction, type NavDirection, type NavState, type NoteHtml, type NoteSegment, Notes, OverviewView, PlayView, PresenterView, type RenderContext, Section, type SlideApi, SlideFrame, SlideHost, type SlideLoader, type SlideMeta, type StepState, type SyncMessage, type SyncSession, type SyncSessionOptions, type SyncStamp, type SyncState, type TERM_ATTACH, type TERM_DATA, type TERM_GONE, type TERM_INPUT, type TERM_POSITION, type TERM_READY, type TERM_STATE, type TermAttach, type TermData, type TermGone, type TermInput, type TermPaneSpec, type TermPosition, type TermReady, type TermState, Toc, type Transport, TwoCol, type assertManifest, type clampNav, type clicksForSlide, createBroadcastTransport, createDeckStore, type createMemoryHub, type createSyncSession, type fitCanvas, type formatHash, mountDeck, type navDirection, type navigate, type noteClickCount, type parseLocation, registerCaptionProvider, registerSettleProbe, routeEmbedNavigation, type segmentNotes, type stepState, type syncChannelId, useDeck, useSlide, useSlideScale };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { _ as SlideFrame, a as Cover, b as useSlideScale, c as TwoCol, d as Deck, f as PresenterView, g as registerSettleProbe, h as SlideHost, i as Center, l as routeEmbedNavigation, m as OverviewView, n as createDeckStore, o as ImageSide, p as PlayView, r as createBroadcastTransport, s as Section, t as mountDeck, u as registerCaptionProvider, v as useDeck, y as useSlide } from "./src-DizFoqYt.js";
1
+ import { S as useSlideScale, _ as SlideHost, a as createBroadcastTransport, b as useDeck, c as ImageSide, d as routeEmbedNavigation, f as registerCaptionProvider, g as OverviewView, h as PlayView, i as createDeckStore, l as Section, m as PresenterView, n as Link, o as Center, p as Deck, r as mountDeck, s as Cover, t as Toc, u as TwoCol, v as registerSettleProbe, x as useSlide, y as SlideFrame } from "./src-BHlxNl0Z.js";
2
2
  // ../runtime/src/notes.ts
3
3
  function Notes(_props) {
4
4
  return null;
5
5
  }
6
- export { Center, Cover, Deck, ImageSide, Notes, OverviewView, PlayView, PresenterView, Section, SlideFrame, SlideHost, TwoCol, createBroadcastTransport, createDeckStore, mountDeck, registerCaptionProvider, registerSettleProbe, routeEmbedNavigation, useDeck, useSlide, useSlideScale };
6
+ export { Center, Cover, Deck, ImageSide, Link, Notes, OverviewView, PlayView, PresenterView, Section, SlideFrame, SlideHost, Toc, TwoCol, createBroadcastTransport, createDeckStore, mountDeck, registerCaptionProvider, registerSettleProbe, routeEmbedNavigation, useDeck, useSlide, useSlideScale };
@@ -0,0 +1,36 @@
1
+ .pane {
2
+ width: 100%;
3
+ height: 100%;
4
+ min-width: 0;
5
+ min-height: 0;
6
+ }
7
+
8
+ .viewport {
9
+ width: 100%;
10
+ height: 100%;
11
+ overflow: hidden;
12
+ color: var(--deck-term-foreground, white);
13
+ background-color: var(--deck-term-background, black);
14
+ font-family: var(--deck-term-font, monospace);
15
+ font-size: var(--deck-term-font-size, 1em);
16
+ }
17
+
18
+ .host {
19
+ transform-origin: top left;
20
+ }
21
+
22
+ .content {
23
+ position: relative;
24
+ width: 100%;
25
+ height: 100%;
26
+ }
27
+
28
+ .shell,
29
+ .loading {
30
+ position: absolute;
31
+ inset: 0;
32
+ }
33
+
34
+ .loading {
35
+ visibility: hidden;
36
+ }
package/dist/kit.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- import { a as gsap$1 } from "./index-B2n69xrC.js";
2
- import { y as useSlideScale } from "./index-BURtH7IB.js";
3
- import { CSSProperties, ReactNode, Ref } from "react";
1
+ import { a as gsap$1 } from "./index-zg-z6HTy.js";
2
+ import { x as useSlideScale } from "./index-D3Yj4yT6.js";
3
+ import { f as TermPaneSpec } from "./index-DG8UcGQd.js";
4
+ import { CSSProperties, ReactElement, ReactNode, Ref } from "react";
4
5
  import { ScaleLinear } from "d3-scale";
5
6
  import { ChartSpec, GraphProps, LayerSpec, MarkEvent } from "@opendata-ai/openchart-react";
6
7
  export declare function OdByline({ children, className }: {
@@ -774,6 +775,19 @@ export declare function StoryStage({ beats, click, stage, overlay, card, backgro
774
775
  export declare function resolvePosition(tl: gsap.core.Timeline, position: gsap.Position | undefined): number;
775
776
  /** Includes the deck's explicit instant mode as well as the system preference. */
776
777
  export declare function prefersReducedMotion(): boolean;
778
+ /** What a deck's `frame` needs to label the pane (architecture section 7.2). */
779
+ interface LiveTermStatus {
780
+ live: boolean;
781
+ busy: boolean;
782
+ queued: boolean;
783
+ reason?: string;
784
+ }
785
+ export declare function LiveTerm({ pane, click, fallback, frame }: {
786
+ pane: TermPaneSpec;
787
+ click: number;
788
+ fallback: ReactNode;
789
+ frame?: (content: ReactNode, status: LiveTermStatus) => ReactNode;
790
+ }): ReactElement;
777
791
  export declare const slideChartTheme: {
778
792
  readonly colors: {
779
793
  background: string;
@@ -825,12 +839,13 @@ export declare function scaleChartTheme<T extends {
825
839
  xAxisLabelPadding: number;
826
840
  };
827
841
  }>(value: T, scale: number): T;
842
+ /** The chart library takes milliseconds; the values are the deck's own duration tokens. */
828
843
  export declare const slideChartAnimation: {
829
844
  readonly enter: {
830
- readonly duration: 900;
845
+ readonly duration: number;
831
846
  readonly ease: "smooth";
832
847
  };
833
- readonly annotationDelay: 350;
848
+ readonly annotationDelay: number;
834
849
  };
835
850
  export declare const SETTLE = "odSettle";
836
851
  export declare const DRAW = "odDraw";
@@ -877,4 +892,4 @@ export declare const FILTER_IDS: {
877
892
  };
878
893
  /** `url(#id)` for the filter attribute. */
879
894
  export declare function filterUrl(id: string): string;
880
- export { type BarsHandle, type Dab, type DrawOptions, type GrowHandle, type Hue, type InkBarRow, type InkOpts, type InkStep, type LineHandle, type Point, type RippleOptions, type RuleHandle, type Series, type Theme, type TickState, type TimelineHandle, type TimelineTick, type UnitGridGeometry, type UnitGridHandle, type UnitGridItem, gsap$1 as gsap, parliament_d_exports as parliament, useSlideScale as useFrameScale };
895
+ export { type BarsHandle, type Dab, type DrawOptions, type GrowHandle, type Hue, type InkBarRow, type InkOpts, type InkStep, type LineHandle, type LiveTermStatus, type Point, type RippleOptions, type RuleHandle, type Series, type Theme, type TickState, type TimelineHandle, type TimelineTick, type UnitGridGeometry, type UnitGridHandle, type UnitGridItem, gsap$1 as gsap, parliament_d_exports as parliament, useSlideScale as useFrameScale };