@steamfield/decks 1.0.0-rc.1 → 1.1.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/dist/cli.js +1 -1
- package/dist/control-tray.css +84 -0
- package/dist/go-to-dialog.css +57 -0
- package/dist/{index-BURtH7IB.d.ts → index-D3Yj4yT6.d.ts} +11 -2
- package/dist/{index-BV_-6L5L.d.ts → index-DG8UcGQd.d.ts} +77 -1
- package/dist/{index-B2n69xrC.d.ts → index-zg-z6HTy.d.ts} +18 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/kit/term/live-term.module.css +36 -0
- package/dist/kit.d.ts +21 -6
- package/dist/kit.js +252 -8
- package/dist/live-term.module.css +36 -0
- package/dist/magic-move.css +30 -0
- package/dist/mark.css +34 -0
- package/dist/motion.d.ts +2 -2
- package/dist/motion.js +1 -1
- package/dist/node.d.ts +5 -1
- package/dist/node.js +1 -1
- package/dist/plugin/skills/building-a-deck/references/workflow.md +10 -0
- package/dist/plugin/skills/deck-design/references/layout.md +2 -0
- package/dist/plugin/skills/deck-motion/references/motion.md +38 -1
- package/dist/plugin/skills/working-with-decks/references/project.md +4 -0
- package/dist/presenter-view.css +14 -0
- package/dist/{prose-patterns-DPqjGBFu.js → prose-patterns-D-tdt0Ab.js} +3 -1
- package/dist/{prose-scan-BrWZ7gxZ.js → prose-scan-ni8g6pc-.js} +2 -2
- package/dist/{src-DizFoqYt.js → src--lhAQ29p.js} +348 -43
- package/dist/{src-C-OfT72W.js → src-BNyL3q7j.js} +212 -3
- package/dist/{src-CmQgaG1b.js → src-Cxck-eLP.js} +588 -68
- package/dist/term/shell_pty.py +38 -0
- package/dist/term/zsh/.zshrc +4 -0
- package/dist/term-protocol-B_qHRDEp.js +11 -0
- package/dist/xterm-host-C6OjffSm.js +282 -0
- package/docs/README.md +1 -0
- package/docs/cli.md +2 -1
- package/docs/code-blocks.md +31 -0
- package/docs/config.md +1 -0
- package/docs/getting-started.md +2 -1
- package/docs/kit.md +7 -6
- package/docs/migrating-from-slidev.md +4 -0
- package/docs/motion.md +25 -1
- package/docs/presenting.md +16 -1
- package/docs/slides.md +20 -1
- package/docs/terminal.md +97 -0
- package/package.json +4 -1
package/dist/cli.js
CHANGED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
@layer react-decks {
|
|
2
|
+
/* The tray floats over any slide, so it carries its own light-on-dark scheme
|
|
3
|
+
rather than inheriting the deck's text colour, which can match the slide. */
|
|
4
|
+
.rd-tray {
|
|
5
|
+
--rd-ui-panel: oklch(0.2 0 0 / 0.78);
|
|
6
|
+
--rd-ui-line: color-mix(in oklab, currentColor 22%, transparent);
|
|
7
|
+
--rd-ui-dim: color-mix(in oklab, currentColor 62%, transparent);
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
max-width: 100vw;
|
|
10
|
+
position: fixed;
|
|
11
|
+
bottom: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
padding: 1rem;
|
|
14
|
+
color: oklch(0.97 0 0);
|
|
15
|
+
opacity: 0;
|
|
16
|
+
transition: opacity var(--deck-dur-base, 300ms);
|
|
17
|
+
font:
|
|
18
|
+
0.875rem / 1.25 system-ui,
|
|
19
|
+
sans-serif;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.rd-tray:hover,
|
|
23
|
+
.rd-tray:focus-within {
|
|
24
|
+
opacity: 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.rd-tray,
|
|
28
|
+
html[data-deck-idle] .rd-tray,
|
|
29
|
+
html[data-deck-idle] .rd-tray * {
|
|
30
|
+
cursor: default;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.rd-tray-buttons {
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-wrap: wrap;
|
|
37
|
+
gap: 0.25rem;
|
|
38
|
+
padding: 0.375rem;
|
|
39
|
+
border: 1px solid var(--rd-ui-line);
|
|
40
|
+
border-radius: 0.375rem;
|
|
41
|
+
background: var(--rd-ui-panel);
|
|
42
|
+
backdrop-filter: blur(8px);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.rd-tray:hover .rd-tray-buttons,
|
|
46
|
+
.rd-tray:focus-within .rd-tray-buttons {
|
|
47
|
+
pointer-events: auto;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.rd-tray button {
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
gap: 0.375rem;
|
|
55
|
+
padding: 0.375rem;
|
|
56
|
+
border: 1px solid transparent;
|
|
57
|
+
border-radius: 0.375rem;
|
|
58
|
+
color: inherit;
|
|
59
|
+
background: transparent;
|
|
60
|
+
font: inherit;
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.rd-tray button,
|
|
65
|
+
html[data-deck-idle] .rd-tray button,
|
|
66
|
+
html[data-deck-idle] .rd-tray button * {
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.rd-tray button:hover,
|
|
71
|
+
.rd-tray button:focus-visible {
|
|
72
|
+
border-color: var(--rd-ui-dim);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.rd-tray button:disabled {
|
|
76
|
+
color: var(--rd-ui-dim);
|
|
77
|
+
cursor: default;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.rd-tray svg {
|
|
81
|
+
width: 1.125rem;
|
|
82
|
+
height: 1.125rem;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -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 {
|
|
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 {
|
|
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
|
-
|
|
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 {
|
|
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 {
|
|
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
|
|
2
|
-
import { A as
|
|
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
|
|
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--lhAQ29p.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-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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:
|
|
845
|
+
readonly duration: number;
|
|
831
846
|
readonly ease: "smooth";
|
|
832
847
|
};
|
|
833
|
-
readonly annotationDelay:
|
|
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 };
|