@vitavision/workbench 0.2.1 → 0.3.2
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 +6 -5
- package/dist/index.d.ts +201 -7
- package/dist/index.js +260 -14
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/AppShell.tsx +5 -13
- package/src/components/NavRail.tsx +198 -0
- package/src/components/PlaybackBar.tsx +6 -38
- package/src/components/SequenceNavigator.tsx +33 -8
- package/src/components/SplitPane.tsx +4 -14
- package/src/components/StatusBar.tsx +61 -0
- package/src/components/Stepper.tsx +146 -0
- package/src/components/TreeView.tsx +5 -24
- package/src/components/dropFiles.ts +2 -7
- package/src/components/splitSize.ts +3 -11
- package/src/components/stepperModel.ts +48 -0
- package/src/components/treeModel.ts +1 -3
- package/src/components/usePlayback.ts +11 -10
- package/src/index.ts +12 -27
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* A gated sequence of steps — Teach, then Find, then Verify — where a step can be entered
|
|
3
|
+
* only once what it depends on is in place, and says what that is.
|
|
4
|
+
*
|
|
5
|
+
* A disabled button would say nothing: it cannot be focused, so neither the tooltip nor a
|
|
6
|
+
* screen reader can give the reason. A blocked step stays focusable, marked
|
|
7
|
+
* `aria-disabled`, and carries its reason as its description.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { Check, Lock } from "lucide-react";
|
|
11
|
+
import { useId, useState, type ReactNode } from "react";
|
|
12
|
+
|
|
13
|
+
import { Tooltip, cn, focusRing } from "@vitavision/ui";
|
|
14
|
+
|
|
15
|
+
import { stepStates, type StepState } from "./stepperModel";
|
|
16
|
+
|
|
17
|
+
/** One step of a `Stepper`. */
|
|
18
|
+
export interface StepperStep {
|
|
19
|
+
/** Its identity, unique among the steps; the stepper's `value`. */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Its name. */
|
|
22
|
+
label: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Why it cannot be entered yet — "Teach a model first". A step with a reason is blocked:
|
|
25
|
+
* shown, focusable and described by the reason, but not choosable.
|
|
26
|
+
*/
|
|
27
|
+
blockedBy?: string | undefined;
|
|
28
|
+
/** Marks it done (a check instead of its number). */
|
|
29
|
+
complete?: boolean | undefined;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** Props of `Stepper`. */
|
|
33
|
+
export interface StepperProps {
|
|
34
|
+
/** The steps, in order. */
|
|
35
|
+
steps: readonly StepperStep[];
|
|
36
|
+
/** The current step's id, or `null` for none. Leave undefined to let the stepper keep it. */
|
|
37
|
+
value?: string | null | undefined;
|
|
38
|
+
/** The current step at first, when the stepper keeps it. Defaults to the first step. */
|
|
39
|
+
defaultValue?: string | undefined;
|
|
40
|
+
/** Called with a step's id when a person chooses a step that is neither current nor blocked. */
|
|
41
|
+
onValueChange?: ((id: string) => void) | undefined;
|
|
42
|
+
/** A row (the default) or a column. */
|
|
43
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
44
|
+
/** Names the list of steps. */
|
|
45
|
+
"aria-label": string;
|
|
46
|
+
/** Merged with the list's own classes through `cn`. */
|
|
47
|
+
className?: string | undefined;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The steps of a gated sequence as an ordered list of buttons, numbered, with the current one
|
|
52
|
+
* marked (`aria-current="step"`) and done ones checked. Controlled with `value` and
|
|
53
|
+
* `onValueChange`, or kept by the stepper from `defaultValue`.
|
|
54
|
+
*
|
|
55
|
+
* A step with `blockedBy` is blocked: it keeps its Tab stop but carries `aria-disabled`, its
|
|
56
|
+
* reason is its description (`aria-describedby`) and its tooltip, and choosing it does nothing.
|
|
57
|
+
* Each step carries `data-state` (`current`, `complete`, `blocked` or `upcoming`), and the
|
|
58
|
+
* list `data-orientation`.
|
|
59
|
+
*/
|
|
60
|
+
export function Stepper({
|
|
61
|
+
steps,
|
|
62
|
+
value,
|
|
63
|
+
defaultValue,
|
|
64
|
+
onValueChange,
|
|
65
|
+
orientation = "horizontal",
|
|
66
|
+
"aria-label": ariaLabel,
|
|
67
|
+
className,
|
|
68
|
+
}: StepperProps) {
|
|
69
|
+
const [kept, setKept] = useState<string | null>(() => defaultValue ?? steps[0]?.id ?? null);
|
|
70
|
+
const current = value === undefined ? kept : value;
|
|
71
|
+
const views = stepStates(steps, current);
|
|
72
|
+
const baseId = useId();
|
|
73
|
+
const vertical = orientation === "vertical";
|
|
74
|
+
|
|
75
|
+
const choose = (id: string) => {
|
|
76
|
+
if (value === undefined) setKept(id);
|
|
77
|
+
onValueChange?.(id);
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
return (
|
|
81
|
+
<ol
|
|
82
|
+
aria-label={ariaLabel}
|
|
83
|
+
data-orientation={orientation}
|
|
84
|
+
className={cn("flex", vertical ? "flex-col items-start" : "flex-wrap items-center gap-y-1", className)}
|
|
85
|
+
>
|
|
86
|
+
{steps.map((step, index) => {
|
|
87
|
+
const view = views[index];
|
|
88
|
+
if (view === undefined) return null;
|
|
89
|
+
const { state, canActivate } = view;
|
|
90
|
+
const blocked = state === "blocked";
|
|
91
|
+
const reasonId = `${baseId}-${index}-reason`;
|
|
92
|
+
const button = (
|
|
93
|
+
<button
|
|
94
|
+
type="button"
|
|
95
|
+
aria-current={state === "current" ? "step" : undefined}
|
|
96
|
+
aria-disabled={blocked ? true : undefined}
|
|
97
|
+
aria-describedby={blocked ? reasonId : undefined}
|
|
98
|
+
data-state={state}
|
|
99
|
+
onClick={() => {
|
|
100
|
+
if (canActivate) choose(step.id);
|
|
101
|
+
}}
|
|
102
|
+
className={cn(
|
|
103
|
+
"flex items-center gap-2 rounded-control px-1.5 py-1 text-sm transition-colors",
|
|
104
|
+
state === "current" ? "font-medium text-fg" : "text-fg-muted",
|
|
105
|
+
canActivate && "hover:text-fg",
|
|
106
|
+
blocked && "cursor-not-allowed",
|
|
107
|
+
focusRing,
|
|
108
|
+
)}
|
|
109
|
+
>
|
|
110
|
+
<StepMarker state={state} number={index + 1} />
|
|
111
|
+
<span>{step.label}</span>
|
|
112
|
+
</button>
|
|
113
|
+
);
|
|
114
|
+
return (
|
|
115
|
+
<li key={step.id} className={cn("flex", vertical ? "flex-col items-start" : "items-center")}>
|
|
116
|
+
{index > 0 && <span aria-hidden className={cn("bg-line-strong", vertical ? "ml-4 h-3 w-px" : "mx-1 h-px w-6")} />}
|
|
117
|
+
{blocked ? <Tooltip content={step.blockedBy}>{button}</Tooltip> : button}
|
|
118
|
+
{blocked && (
|
|
119
|
+
<span id={reasonId} className="sr-only">
|
|
120
|
+
{step.blockedBy}
|
|
121
|
+
</span>
|
|
122
|
+
)}
|
|
123
|
+
</li>
|
|
124
|
+
);
|
|
125
|
+
})}
|
|
126
|
+
</ol>
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/** The step's number in a circle; a check when done, a lock when blocked. Decorative. */
|
|
131
|
+
function StepMarker({ state, number }: { state: StepState; number: number }) {
|
|
132
|
+
return (
|
|
133
|
+
<span
|
|
134
|
+
aria-hidden
|
|
135
|
+
className={cn(
|
|
136
|
+
"grid size-5 shrink-0 place-items-center rounded-full border font-mono text-[11px] tabular-nums [&>svg]:size-3",
|
|
137
|
+
state === "current" && "border-signal bg-signal text-signal-fg",
|
|
138
|
+
state === "complete" && "border-signal text-signal",
|
|
139
|
+
state === "blocked" && "border-line-strong text-fg-muted",
|
|
140
|
+
state === "upcoming" && "border-line-strong text-fg-muted",
|
|
141
|
+
)}
|
|
142
|
+
>
|
|
143
|
+
{state === "complete" ? <Check /> : state === "blocked" ? <Lock /> : number}
|
|
144
|
+
</span>
|
|
145
|
+
);
|
|
146
|
+
}
|
|
@@ -18,14 +18,7 @@ import type { KeyboardEvent, MouseEvent } from "react";
|
|
|
18
18
|
|
|
19
19
|
import { byDensity, cn, useDensity } from "@vitavision/ui";
|
|
20
20
|
|
|
21
|
-
import {
|
|
22
|
-
type TreeNode,
|
|
23
|
-
type TreeRow,
|
|
24
|
-
ancestorIds,
|
|
25
|
-
parentIds,
|
|
26
|
-
treeKeyAction,
|
|
27
|
-
visibleRows,
|
|
28
|
-
} from "./treeModel";
|
|
21
|
+
import { type TreeNode, type TreeRow, ancestorIds, parentIds, treeKeyAction, visibleRows } from "./treeModel";
|
|
29
22
|
|
|
30
23
|
/** Props of `TreeView`. */
|
|
31
24
|
export interface TreeViewProps {
|
|
@@ -162,12 +155,7 @@ export function TreeView({
|
|
|
162
155
|
};
|
|
163
156
|
|
|
164
157
|
return (
|
|
165
|
-
<div
|
|
166
|
-
role="tree"
|
|
167
|
-
aria-label={ariaLabel}
|
|
168
|
-
onKeyDown={onKeyDown}
|
|
169
|
-
className={cn("flex flex-col py-1 select-none", className)}
|
|
170
|
-
>
|
|
158
|
+
<div role="tree" aria-label={ariaLabel} onKeyDown={onKeyDown} className={cn("flex flex-col py-1 select-none", className)}>
|
|
171
159
|
{rows.map((row) => {
|
|
172
160
|
const { node } = row;
|
|
173
161
|
const selected = node.id === selectedId;
|
|
@@ -211,9 +199,7 @@ export function TreeView({
|
|
|
211
199
|
onClick={(event) => onChevron(event, row)}
|
|
212
200
|
className="grid size-4 shrink-0 place-items-center rounded-sm text-fg-subtle hover:text-fg"
|
|
213
201
|
>
|
|
214
|
-
<ChevronRight
|
|
215
|
-
className={cn("size-3.5 transition-transform", row.isExpanded && "rotate-90")}
|
|
216
|
-
/>
|
|
202
|
+
<ChevronRight className={cn("size-3.5 transition-transform", row.isExpanded && "rotate-90")} />
|
|
217
203
|
</span>
|
|
218
204
|
) : (
|
|
219
205
|
<span aria-hidden className="size-4 shrink-0" />
|
|
@@ -221,10 +207,7 @@ export function TreeView({
|
|
|
221
207
|
{node.icon !== undefined && (
|
|
222
208
|
<span
|
|
223
209
|
aria-hidden
|
|
224
|
-
className={cn(
|
|
225
|
-
"grid shrink-0 place-items-center [&>svg]:size-3.5",
|
|
226
|
-
selected ? "text-signal" : "text-fg-muted",
|
|
227
|
-
)}
|
|
210
|
+
className={cn("grid shrink-0 place-items-center [&>svg]:size-3.5", selected ? "text-signal" : "text-fg-muted")}
|
|
228
211
|
>
|
|
229
212
|
{node.icon}
|
|
230
213
|
</span>
|
|
@@ -232,9 +215,7 @@ export function TreeView({
|
|
|
232
215
|
<span className="min-w-0 flex-1 truncate">{node.label}</span>
|
|
233
216
|
{node.meta !== undefined && (
|
|
234
217
|
// On the selected row's tint both `fg-subtle` and `fg-muted` fall below AA at this size.
|
|
235
|
-
<span className={cn("shrink-0 font-mono text-[11px]", selected ? "text-fg" : "text-fg-subtle")}>
|
|
236
|
-
{node.meta}
|
|
237
|
-
</span>
|
|
218
|
+
<span className={cn("shrink-0 font-mono text-[11px]", selected ? "text-fg" : "text-fg-subtle")}>{node.meta}</span>
|
|
238
219
|
)}
|
|
239
220
|
</div>
|
|
240
221
|
);
|
|
@@ -71,10 +71,7 @@ export function acceptsPath(path: string, accept: string | undefined): boolean {
|
|
|
71
71
|
* @param accept - The accept string.
|
|
72
72
|
* @returns The accepted files and the rejected ones, each in their original order.
|
|
73
73
|
*/
|
|
74
|
-
export function partitionFiles(
|
|
75
|
-
files: readonly File[],
|
|
76
|
-
accept: string | undefined,
|
|
77
|
-
): { accepted: File[]; rejected: File[] } {
|
|
74
|
+
export function partitionFiles(files: readonly File[], accept: string | undefined): { accepted: File[]; rejected: File[] } {
|
|
78
75
|
const accepted: File[] = [];
|
|
79
76
|
const rejected: File[] = [];
|
|
80
77
|
for (const file of files) (acceptsFile(file, accept) ? accepted : rejected).push(file);
|
|
@@ -120,9 +117,7 @@ export interface DropEntry {
|
|
|
120
117
|
* @param dataTransfer - The drop's data.
|
|
121
118
|
* @returns The files, in the order the browser listed them.
|
|
122
119
|
*/
|
|
123
|
-
export async function collectDroppedFiles(
|
|
124
|
-
dataTransfer: Pick<DataTransfer, "files" | "items">,
|
|
125
|
-
): Promise<File[]> {
|
|
120
|
+
export async function collectDroppedFiles(dataTransfer: Pick<DataTransfer, "files" | "items">): Promise<File[]> {
|
|
126
121
|
// Everything is read before the first `await`: a drop's data is emptied once its event
|
|
127
122
|
// handler returns.
|
|
128
123
|
const plain = Array.from(dataTransfer.files);
|
|
@@ -44,12 +44,7 @@ export function resolveSize(size: PaneSize, length: number): number {
|
|
|
44
44
|
* @param collapsible - Whether the pane may close below `minSize`.
|
|
45
45
|
* @returns The resolved limits.
|
|
46
46
|
*/
|
|
47
|
-
export function resolveLimits(
|
|
48
|
-
length: number,
|
|
49
|
-
minSize: PaneSize = 0,
|
|
50
|
-
maxSize: PaneSize = "100%",
|
|
51
|
-
collapsible = false,
|
|
52
|
-
): SplitLimits {
|
|
47
|
+
export function resolveLimits(length: number, minSize: PaneSize = 0, maxSize: PaneSize = "100%", collapsible = false): SplitLimits {
|
|
53
48
|
const max = Math.min(resolveSize(maxSize, length), Math.max(0, length));
|
|
54
49
|
const min = Math.min(resolveSize(minSize, length), max);
|
|
55
50
|
return { min, max, collapsible };
|
|
@@ -75,9 +70,7 @@ export type SplitOrientation = "horizontal" | "vertical";
|
|
|
75
70
|
export type SizedPane = "start" | "end";
|
|
76
71
|
|
|
77
72
|
/** What a key press on the divider asks for. */
|
|
78
|
-
export type SplitKeyAction =
|
|
79
|
-
| { type: "resize"; size: number }
|
|
80
|
-
| { type: "toggle-collapse" };
|
|
73
|
+
export type SplitKeyAction = { type: "resize"; size: number } | { type: "toggle-collapse" };
|
|
81
74
|
|
|
82
75
|
/**
|
|
83
76
|
* The divider's keyboard (the WAI-ARIA window-splitter pattern).
|
|
@@ -100,8 +93,7 @@ export function splitKeyAction(
|
|
|
100
93
|
options: { orientation: SplitOrientation; sizedPane: SizedPane; step: number; limits: SplitLimits },
|
|
101
94
|
): SplitKeyAction | null {
|
|
102
95
|
const { orientation, sizedPane, step, limits } = options;
|
|
103
|
-
const [back, forward] =
|
|
104
|
-
orientation === "horizontal" ? ["ArrowLeft", "ArrowRight"] : ["ArrowUp", "ArrowDown"];
|
|
96
|
+
const [back, forward] = orientation === "horizontal" ? ["ArrowLeft", "ArrowRight"] : ["ArrowUp", "ArrowDown"];
|
|
105
97
|
const grow = sizedPane === "start" ? 1 : -1;
|
|
106
98
|
const delta = shift ? step * 4 : step;
|
|
107
99
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* What each step of a `Stepper` is, as a pure function, so the rules (a blocked step cannot
|
|
3
|
+
* be entered, the current step outranks every other state) are tested without a DOM.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Where a step stands: `current` (the one a person is on), `blocked` (cannot be entered
|
|
8
|
+
* yet; it says why), `complete` (done) or `upcoming` (not done, and open).
|
|
9
|
+
*/
|
|
10
|
+
export type StepState = "current" | "complete" | "blocked" | "upcoming";
|
|
11
|
+
|
|
12
|
+
/** The part of a step its state depends on. */
|
|
13
|
+
export interface StepGate {
|
|
14
|
+
/** Its identity, unique among the steps. */
|
|
15
|
+
id: string;
|
|
16
|
+
/** Why it cannot be entered yet. A step with a non-empty reason is blocked. */
|
|
17
|
+
blockedBy?: string | undefined;
|
|
18
|
+
/** Whether it is done. */
|
|
19
|
+
complete?: boolean | undefined;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** One step's state, and whether choosing it would make it current. */
|
|
23
|
+
export interface StepView {
|
|
24
|
+
/** The step's id. */
|
|
25
|
+
id: string;
|
|
26
|
+
/** Where the step stands. */
|
|
27
|
+
state: StepState;
|
|
28
|
+
/** True when choosing it makes it current: it is neither blocked nor current already. */
|
|
29
|
+
canActivate: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Each step's state, in order.
|
|
34
|
+
*
|
|
35
|
+
* The step whose id is `current` is `current`, whatever else is true of it: the app put the
|
|
36
|
+
* person there. Of the others, one with a `blockedBy` reason is `blocked` (even if `complete`:
|
|
37
|
+
* a step can be done and then fall behind a newer gate), then `complete`, then `upcoming`.
|
|
38
|
+
* Only a step that is neither current nor blocked can be activated.
|
|
39
|
+
*
|
|
40
|
+
* @param steps - The steps, in order.
|
|
41
|
+
* @param current - The current step's id, or `null` for none.
|
|
42
|
+
*/
|
|
43
|
+
export function stepStates(steps: readonly StepGate[], current: string | null): StepView[] {
|
|
44
|
+
return steps.map(({ id, blockedBy, complete }) => {
|
|
45
|
+
const state: StepState = id === current ? "current" : blockedBy ? "blocked" : complete ? "complete" : "upcoming";
|
|
46
|
+
return { id, state, canActivate: state === "complete" || state === "upcoming" };
|
|
47
|
+
});
|
|
48
|
+
}
|
|
@@ -157,9 +157,7 @@ export function treeKeyAction(rows: readonly TreeRow[], focusedId: string, key:
|
|
|
157
157
|
return rows[index + 1]?.parentId === row.node.id ? focus(rows[index + 1]) : null;
|
|
158
158
|
case "ArrowLeft":
|
|
159
159
|
if (row.isExpanded) return { type: "collapse", id: row.node.id };
|
|
160
|
-
return row.parentId === null
|
|
161
|
-
? null
|
|
162
|
-
: focus(rows.find((candidate) => candidate.node.id === row.parentId));
|
|
160
|
+
return row.parentId === null ? null : focus(rows.find((candidate) => candidate.node.id === row.parentId));
|
|
163
161
|
case "Enter":
|
|
164
162
|
case " ":
|
|
165
163
|
return row.node.disabled ? null : { type: "select", id: row.node.id };
|
|
@@ -26,8 +26,16 @@ export function usePlayhead(playhead: Playhead): number {
|
|
|
26
26
|
* @returns The number of samples and the seconds between them.
|
|
27
27
|
*/
|
|
28
28
|
export function usePlayheadTimeline(playhead: Playhead): { count: number; dt: number } {
|
|
29
|
-
const count = useSyncExternalStore(
|
|
30
|
-
|
|
29
|
+
const count = useSyncExternalStore(
|
|
30
|
+
playhead.subscribe,
|
|
31
|
+
() => playhead.count,
|
|
32
|
+
() => playhead.count,
|
|
33
|
+
);
|
|
34
|
+
const dt = useSyncExternalStore(
|
|
35
|
+
playhead.subscribe,
|
|
36
|
+
() => playhead.dt,
|
|
37
|
+
() => playhead.dt,
|
|
38
|
+
);
|
|
31
39
|
return { count, dt };
|
|
32
40
|
}
|
|
33
41
|
|
|
@@ -65,14 +73,7 @@ export interface PlaybackClockOptions {
|
|
|
65
73
|
*
|
|
66
74
|
* @param options - The playhead and the transport state.
|
|
67
75
|
*/
|
|
68
|
-
export function usePlaybackClock({
|
|
69
|
-
playhead,
|
|
70
|
-
playing,
|
|
71
|
-
speed = 1,
|
|
72
|
-
loop = false,
|
|
73
|
-
onEnd,
|
|
74
|
-
maxFrameMs = 100,
|
|
75
|
-
}: PlaybackClockOptions): void {
|
|
76
|
+
export function usePlaybackClock({ playhead, playing, speed = 1, loop = false, onEnd, maxFrameMs = 100 }: PlaybackClockOptions): void {
|
|
76
77
|
const step = useEffectEvent((position: number, elapsedMs: number) => {
|
|
77
78
|
const delta = (Math.min(elapsedMs, maxFrameMs) / 1000) * (speed / playhead.dt);
|
|
78
79
|
return advance(position, delta, playhead.count, loop);
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `@vitavision/workbench` — the building blocks of a studio app on `@vitavision/ui`: the
|
|
3
|
-
* shell
|
|
4
|
-
* file opening, and (re-exported from
|
|
3
|
+
* shell, its split panes, workspace rail and status bar, a tree navigator, a stepper, a
|
|
4
|
+
* playback transport over a sampled timeline, file opening, and (re-exported from
|
|
5
|
+
* `@vitavision/ui`) notifications.
|
|
5
6
|
*
|
|
6
7
|
* Import `@vitavision/workbench/styles.css` after `@vitavision/ui/styles.css`.
|
|
7
8
|
*
|
|
@@ -9,6 +10,8 @@
|
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
export { AppShell, type AppShellProps, type SidePanelSize } from "./components/AppShell";
|
|
13
|
+
export { StatusBar, type StatusBarProps } from "./components/StatusBar";
|
|
14
|
+
export { NavRail, NavRailItem, type NavRailItemProps, type NavRailLabels, type NavRailProps } from "./components/NavRail";
|
|
12
15
|
export { SplitPane, type SplitPaneProps } from "./components/SplitPane";
|
|
13
16
|
export {
|
|
14
17
|
type PaneSize,
|
|
@@ -31,37 +34,19 @@ export {
|
|
|
31
34
|
visibleRows,
|
|
32
35
|
} from "./components/treeModel";
|
|
33
36
|
|
|
34
|
-
export {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
type PlaybackBarProps,
|
|
38
|
-
type PlaybackMarker,
|
|
39
|
-
} from "./components/PlaybackBar";
|
|
40
|
-
export {
|
|
41
|
-
type AdvanceResult,
|
|
42
|
-
advance,
|
|
43
|
-
clampIndex,
|
|
44
|
-
createPlayhead,
|
|
45
|
-
formatSeconds,
|
|
46
|
-
type Playhead,
|
|
47
|
-
} from "./components/playhead";
|
|
48
|
-
export {
|
|
49
|
-
type PlaybackClockOptions,
|
|
50
|
-
usePlaybackClock,
|
|
51
|
-
usePlayhead,
|
|
52
|
-
usePlayheadTimeline,
|
|
53
|
-
} from "./components/usePlayback";
|
|
37
|
+
export { DEFAULT_SPEEDS, PlaybackBar, type PlaybackBarProps, type PlaybackMarker } from "./components/PlaybackBar";
|
|
38
|
+
export { type AdvanceResult, advance, clampIndex, createPlayhead, formatSeconds, type Playhead } from "./components/playhead";
|
|
39
|
+
export { type PlaybackClockOptions, usePlaybackClock, usePlayhead, usePlayheadTimeline } from "./components/usePlayback";
|
|
54
40
|
|
|
55
41
|
export { FileDrop, type FileDropProps, type PathSource } from "./components/FileDrop";
|
|
56
42
|
export { acceptsFile, acceptsPath, collectDroppedFiles, type DropEntry } from "./components/dropFiles";
|
|
57
43
|
|
|
58
|
-
export {
|
|
59
|
-
SequenceNavigator,
|
|
60
|
-
type SequenceItem,
|
|
61
|
-
type SequenceNavigatorProps,
|
|
62
|
-
} from "./components/SequenceNavigator";
|
|
44
|
+
export { SequenceNavigator, type SequenceItem, type SequenceItemStatus, type SequenceNavigatorProps } from "./components/SequenceNavigator";
|
|
63
45
|
export { stepIndex } from "./components/sequence";
|
|
64
46
|
|
|
47
|
+
export { Stepper, type StepperProps, type StepperStep } from "./components/Stepper";
|
|
48
|
+
export { type StepGate, type StepState, type StepView, stepStates } from "./components/stepperModel";
|
|
49
|
+
|
|
65
50
|
// Notifications moved to `@vitavision/ui` (a second app needed them). These are re-exports of
|
|
66
51
|
// the same bindings, so there is still one default store; prefer importing from `@vitavision/ui`.
|
|
67
52
|
export {
|