strata-react 1.2.0 → 1.2.1
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 +2 -2
- package/UPGRADING.md +4 -0
- package/dist/components/media-player.d.ts +32 -2
- package/dist/components/media-progress.d.ts +17 -0
- package/dist/components/media-spans.d.ts +16 -1
- package/dist/components/media.d.ts +14 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +272 -41
- package/dist/index.js.map +1 -1
- package/dist/{run-DE65qInG.js → run-hR9neQHM.js} +32 -2
- package/dist/run-hR9neQHM.js.map +1 -0
- package/dist/visual/capture.d.ts +2 -0
- package/dist/visual/types.d.ts +6 -0
- package/dist/visual-cli.js +1 -1
- package/dist/visual.js +1 -1
- package/package.json +1 -1
- package/dist/run-DE65qInG.js.map +0 -1
package/README.md
CHANGED
|
@@ -168,7 +168,7 @@ thousands of lines. Such an app imports the same stylesheet **without the reset*
|
|
|
168
168
|
| Overlays | `Dialog`, `DialogProps`, `AlertDialog`, `Popover`, `Tooltip` | React Aria underneath. A dialog always has a title and, via `actions`'s close render prop, a way out; `closable={false}` while work cannot stop; `placement="end"` is a sheet. `AlertDialog` is the only confirm: required verb on the confirm button, Cancel focused first, no outside dismiss, stays open with the reason when an async confirm fails. `Popover` needs a `label`. `Tooltip` opens on hover and focus and `IconButton` uses it. All portal onto the `layer-*` stacking utilities |
|
|
169
169
|
| Value controls | `NumberField`, `Slider`, `ColorField`, `SecretField` | Set a number or colour precisely, inside `Field`. `NumberField` and `Slider` are React Aria's; the number field runs with `commitBehavior="validate"`, so a typed value outside `min`/`max` is kept on screen, explained in the `Field` ("Enter a value from 0% to 500%.") and never passed to `onChange`. A value that is not known is `null` and shows an en dash, never 0 or NaN. Digits and decimal mark follow `locale`. The unit sits inside the control, and in the slider's spoken value when `Intl` has it (%, °, ms, s, kB, MB, GB, kbps, Mbps). Arrows step, Home/End jump to the limits; `Slider editable` adds a number field. `ColorField`: platform picker, typed hex that is normalised, app suggestions, and a contrast note against `against`. No motion on value changes. `NumberField` options for a value set a little at a time or that costs work to change: `nudge={[0.1, 1, 10]}` (a toolbar of named step buttons that repeat when held and stop at the limits), `suggestion={{ value, label, reason }}` (a row with the reason in words and Use this value, never applied by itself) and `preview` (changes wait behind Apply and Revert; `onChange` is Apply's). `SecretField` is a credential the server keeps and never shows again: not set, set (no characters, no length, no input in the DOM), a masked entry with a Show toggle named for what it reveals, `onSave` through `AsyncButton`, Replace, a confirmed Remove that says what stops working, and a Test whose result is text beside it; a set, untouched field reports nothing |
|
|
170
170
|
| Notices and progress | `Alert`, `toast`, `StrataToastRegion`, `useClientWork`, `JobStatus` | Three weights. A `toast` confirms finished work and goes by itself (5 s plus 40 ms a character, 8 s minimum with an action, paused under the pointer or focus, always dismissable); it has no danger tone, because an error a person must act on is an inline `Alert` with its recovery as `action` (`announce` makes it `role="alert"` only when it answers something the person just did). `StrataToastRegion` goes once at the app root. `useClientWork` runs browser work with progress, cancel (aborts its `signal`, ends `cancelled`, never `failed`) and a double-start guard; `JobStatus` shows it exactly as it shows a server job, with `onCancel`, `cancelled` and `onDismiss` |
|
|
171
|
-
| Media player | `MediaPlayer`, `useMediaElement`, `SPEECH_RATES`, `useMediaSpans`, `SpanActions` | Play a file or a sequence of chapters without the event glue: the element, its state, Strata's controls (or the browser's own on a touch device, `controls="auto"`), a load error with Try again, `navigator.mediaSession` metadata, the seek bar spanning the whole sequence. `useMediaElement(ref)` alone follows an element drawn with the browser's controls `spans` and `spanKinds` mark stretches (an intro, a recap, a sponsor read) on the seek bar as named ranges in a status role's tone and act on them as playback reaches them: `auto` skips (or mutes, for `action: "mute"`) with "Skipped intro" and Undo, `ask` offers a Skip button over the picture and on the `s` key, `off` only draws; each is acted on once, `onSpan` reports `skipped`, `muted`, `undone` or `played`, and `SeekBar` takes `spans` too. `mediaRef` hands out the player's state and requests (an object ref holds the latest, no render of its own), `overlay` draws the app's own thing over the picture only, and a video keeps a 16:9 (or `aspect`) box before its metadata loads. A video has a Full screen button and the `f` key by default (`fullscreen={false}` removes them); on the picture a click plays or pauses, a double click toggles full screen and the wheel sets the volume while the player has focus. The HLS attacher starts a `growing` source at its beginning, honours `config.startPosition` and takes `words` for its failures. |
|
|
171
|
+
| Media player | `MediaPlayer`, `useMediaElement`, `SPEECH_RATES`, `useMediaSpans`, `SpanActions`, `PlayerNotice`, `SpanStrip` | Play a file or a sequence of chapters without the event glue: the element, its state, Strata's controls (or the browser's own on a touch device, `controls="auto"`), a load error with Try again, `navigator.mediaSession` metadata, the seek bar spanning the whole sequence. `useMediaElement(ref)` alone follows an element drawn with the browser's controls `spans` and `spanKinds` mark stretches (an intro, a recap, a sponsor read) on the seek bar as named ranges in a status role's tone and act on them as playback reaches them: `auto` skips (or mutes, for `action: "mute"`) with "Skipped intro" and Undo, `ask` offers a Skip button over the picture and on the `s` key, `off` only draws; each is acted on once, `onSpan` reports `skipped`, `muted`, `undone` or `played`, and `SeekBar` takes `spans` too. `mediaRef` hands out the player's state and requests (an object ref holds the latest, no render of its own), `overlay` draws the app's own thing over the picture only, and a video keeps a 16:9 (or `aspect`) box before its metadata loads. A video has a Full screen button and the `f` key by default (`fullscreen={false}` removes them); on the picture a click plays or pauses, a double click toggles full screen and the wheel sets the volume while the player has focus. A kind's `colour` names a custom property of the app's theme (`"--seg-sponsor"`) instead of a tone, each range carries `data-kind`, and under the browser's own controls a `SpanStrip` under the picture draws the ranges. `start` begins a first load at a time (an attacher's `startAt`, or a seek once the metadata is in) and says "Picked up at 2:05" with Start over (`resumeWords`); `onProgress` reports the position and the seconds actually played through, each once, a skipped span counted (`useMediaElement` takes it too, with `markWatched`). The HLS attacher starts a `growing` source at its beginning, honours `config.startPosition` and takes `words` for its failures. |
|
|
172
172
|
| Media playback | `Transport`, `SeekBar`, `TimeReadout`, `VolumeControl`, `RateChoice`, `MediaStage`, `StageGuides`, `transportShortcuts`, `format.timecode` | The controls around anything that plays, wired to a player the app owns (HTML media, Web Audio, a canvas, a data replay). Every control is a named icon button in one toolbar; the play button's name is "Play" or "Pause". `SeekBar` has the formatted time as its accessible value, arrows step 5 s and Page keys 30 s by default, and optional marks. `VolumeControl` shows its percent, and muting remembers the level. `transportShortcuts` is the one list for `useHotkeys` and `KeysLegend` (Space and K, J and L, the arrows by a frame, Home and End). `format.timecode` prints m:ss, m:ss.mmm or m:ss:ff. `MediaStage` fits a picture of any aspect ratio into the pane with a letterbox on the sunken surface role, and takes overlays such as `StageGuides` |
|
|
173
173
|
| Listening and reading | `Waveform`, `TranscriptView`, `PlayWindowButton`, `MediaGroup`; `resamplePeaks`, `peaksFromAudio`, `phraseAt`, `wordAt` | Timed media: a waveform from peaks or a decoded file (one slider, marks by line style, named spans, zoom, a keyboard-made range, a spectrogram underlay); timed text that marks the heard word and plays from any word (modes, speakers, follow and Jump to now, virtualised), with doubtful words (dotted, named, counted, "Only doubtful"), a mark per phrase set from a row menu (`states`, `onPhraseState`), correction in place (Enter or F2, `onEdit`) and a hover and focus card (`renderCard`); `MediaPlayer window` plays one stretch of a file, `MediaGroup` lets one player play at a time, `PlayWindowButton` is a row's play control on a shared element; a review transcript needs no player (`time` and `onSeek` are optional), takes `marking` (words become `MarkableText` marks with ids `wordId(phraseId, index)`, selected across rows that are not mounted) and shows a corrected word (`word.correction`) dotted with the original on hover and `onCorrectionPress` to open it |
|
|
174
174
|
| Streams | `MediaPlayer attach`/`growing`, `useAttachedSource`, `attachHls` (`strata-react/hls`) | A source the element cannot play is attached by an engine; a source still being made says so, shows what exists as ready, and waits at its end without ending |
|
|
@@ -284,7 +284,7 @@ failing are listed as `within`).
|
|
|
284
284
|
Mac, and a glyph missing from a web font (an arrow, `⌘`) falls back the same way; no threshold
|
|
285
285
|
absorbs that. The runner asks Chromium which face drew each element's text and fails the shot
|
|
286
286
|
naming the face and an example (`"DejaVu Sans" in <kbd> "⌘"`). `systemFonts: "warn"` reports
|
|
287
|
-
instead; `"allow"` skips the check. Story tags pick the viewport: `visual-wide`, `visual-phone`, `no-visual` to skip.
|
|
287
|
+
instead; `"allow"` skips the check. **Lazy pictures.** A whole-page (route) shot of a page taller than the window is first shown to the page in a window as tall as itself, and waits for the pictures that start loading (a `Thumbnail` below the fold), then the window goes back to its size, so the baseline shows what a person sees after scrolling, not grey loading boxes; `scrollThrough: false` takes the page as it loads. Story tags pick the viewport: `visual-wide`, `visual-phone`, `no-visual` to skip.
|
|
288
288
|
Pages run in UTC and `en-US`; set `timezone`, `locale` or a frozen `time` in the config.
|
|
289
289
|
Strata's own suite (`strata-visual.config.ts`, with the kiln-room example app in
|
|
290
290
|
`examples/kiln-app/`) is a working reference.
|
package/UPGRADING.md
CHANGED
|
@@ -11,6 +11,10 @@ time. While the version is 0.x, any release may break.
|
|
|
11
11
|
|
|
12
12
|
Every PR that changes what an app sees adds a line here (see `CLAUDE.md`, "Changelog").
|
|
13
13
|
|
|
14
|
+
## 2026-11-23
|
|
15
|
+
- `strata-visual` gives a route's page, when taller than the window, a window as tall as itself before its shot, so lazy pictures (`Thumbnail`) below the fold are drawn in the baseline: re-record baselines that showed their grey loading boxes (`scrollThrough: false` in the config keeps the old behaviour). An app that passed `eager` to `Thumbnail` only for its screenshots can drop it.
|
|
16
|
+
- `MediaPlayer` with `controls="native"` (or `"auto"` on a touch device) and `spans` now draws a thin strip of the spans under the picture.
|
|
17
|
+
|
|
14
18
|
## 2026-11-19
|
|
15
19
|
- In fullscreen, `MediaPlayer` grows the video into the controls’ space while they are hidden.
|
|
16
20
|
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { PlayerWarningEvent } from './player-warning';
|
|
2
2
|
import { MediaSpanData, SpanKind, SpanOutcome, SpanWords } from './media-spans';
|
|
3
|
+
import { MediaProgress } from './media-progress';
|
|
3
4
|
import * as React from "react";
|
|
5
|
+
export type { MediaProgress };
|
|
6
|
+
/** The words of the "Picked up at" notice. */
|
|
7
|
+
export type ResumeWords = {
|
|
8
|
+
/** Default `Picked up at 2:05`. Takes the time already formatted. */
|
|
9
|
+
pickedUp?: (time: string) => string;
|
|
10
|
+
/** Default "Start over". */
|
|
11
|
+
startOver?: string;
|
|
12
|
+
};
|
|
4
13
|
/** Why a player is not playing, for the app to word. */
|
|
5
14
|
export type MediaProblem = {
|
|
6
15
|
kind: "load";
|
|
@@ -46,6 +55,8 @@ export type MediaElementState = {
|
|
|
46
55
|
setRate: (rate: number) => void;
|
|
47
56
|
/** Loads again, and plays if it was playing. For the error state's "Try again". */
|
|
48
57
|
retry: () => void;
|
|
58
|
+
/** Counts a stretch (seconds in the file) as watched without it being played, for one the app skipped on purpose. See `onProgress`. */
|
|
59
|
+
markWatched: (start: number, end: number) => void;
|
|
49
60
|
};
|
|
50
61
|
/** A stretch of a file, in seconds. */
|
|
51
62
|
export type MediaWindow = {
|
|
@@ -68,6 +79,15 @@ export type MediaElementOptions = {
|
|
|
68
79
|
growing?: boolean;
|
|
69
80
|
/** Loads again from `time`, for a source the element cannot reload itself (a stream engine). Replaces the element's `load()` in `retry`. */
|
|
70
81
|
onRetry?: (time: number) => void;
|
|
82
|
+
/**
|
|
83
|
+
* How much has been seen (strata-react issue #272): called every `progressEvery` seconds of playing, and on pause, on the end, when the page is hidden, when it is left and when the player unmounts or changes file.
|
|
84
|
+
* `watched` counts each second once, when the playhead passes it by playing; a seek or skip counts nothing and going back over a part adds nothing. A report is not repeated while nothing has changed.
|
|
85
|
+
*/
|
|
86
|
+
onProgress?: (report: MediaProgress) => void;
|
|
87
|
+
/** Seconds of playing between reports. Default 15. */
|
|
88
|
+
progressEvery?: number;
|
|
89
|
+
/** Names what is being played, so the count starts again when it changes. Default the element's `src` attribute; give it for a stream attached by an engine. */
|
|
90
|
+
progressKey?: string;
|
|
71
91
|
};
|
|
72
92
|
/** Follows an `<audio>` or `<video>` and returns its state and the requests a player makes. Works with the browser's own controls too. */
|
|
73
93
|
export declare function useMediaElement(ref: React.RefObject<HTMLMediaElement | null>, options?: MediaElementOptions): MediaElementState;
|
|
@@ -98,7 +118,7 @@ export type SourceAttacher = (el: HTMLMediaElement, src: string, context: Stream
|
|
|
98
118
|
* Use it for a plain `<video>` the app owns, with `useMediaElement`; `MediaPlayer` does it for `attach`.
|
|
99
119
|
* Returns `reload`, for the player's Try again (`useMediaElement`'s `onRetry`), and gives the engine's failures to `onProblem` (`reportProblem`).
|
|
100
120
|
*/
|
|
101
|
-
export declare function useAttachedSource(ref: React.RefObject<HTMLMediaElement | null>, src: string | undefined, attach: SourceAttacher | undefined, onProblem?: (message: string) => void, growing?: boolean): {
|
|
121
|
+
export declare function useAttachedSource(ref: React.RefObject<HTMLMediaElement | null>, src: string | undefined, attach: SourceAttacher | undefined, onProblem?: (message: string) => void, growing?: boolean, start?: number): {
|
|
102
122
|
reload: (at: number) => void;
|
|
103
123
|
};
|
|
104
124
|
/** One file in a sequence. */
|
|
@@ -168,6 +188,16 @@ export type MediaPlayerProps = {
|
|
|
168
188
|
onSpan?: (span: MediaSpanData, what: SpanOutcome) => void;
|
|
169
189
|
/** The Skip button's and the notice's words, in the product's language. */
|
|
170
190
|
spanWords?: SpanWords;
|
|
191
|
+
/** Where a first load begins, seconds (strata-react issue #271: "Continue watching"). For an `attach`ed stream it is the attacher's `startAt`; for a plain `src`, a seek once the metadata is in. A reload (Try again) keeps the time reached. While it is more than 0 the player says "Picked up at 2:05" over the picture, with Start over, until the person starts over, plays for a few seconds, or it is dismissed by seeking. */
|
|
192
|
+
start?: number;
|
|
193
|
+
/** The words of that notice, in the product's language. */
|
|
194
|
+
resumeWords?: ResumeWords;
|
|
195
|
+
/** How much has been seen: every `progressEvery` seconds of playing, and on pause, on the end, when the page is hidden or left and when the player unmounts, with the position and the seconds played through (a span the player skipped counts as watched). `index` is the source in a `sources` sequence, and the times are those of that file (strata-react issue #272). */
|
|
196
|
+
onProgress?: (report: MediaProgress & {
|
|
197
|
+
index: number;
|
|
198
|
+
}) => void;
|
|
199
|
+
/** Seconds of playing between progress reports. Default 15. */
|
|
200
|
+
progressEvery?: number;
|
|
171
201
|
/** The player's state and requests (`seek`, `setVolume`, `time`, `duration`…), for an app that acts on playback from beside it: a chapter list, comments at a time (strata-react issue #211). An object ref holds the latest state without rendering again; a function ref is called with it on every render. */
|
|
172
202
|
mediaRef?: React.Ref<MediaElementState>;
|
|
173
203
|
/** Drawn over the picture only (never the controls) in a box that fills it; the app's classes choose the corner (`absolute bottom-3 right-3`). Anything interactive in it is clickable and focusable. A video's box keeps its shape before the metadata loads, so the overlay has a stable place. */
|
|
@@ -189,4 +219,4 @@ export declare const SPEECH_RATES: readonly number[];
|
|
|
189
219
|
* a touch device), with the failure to load shown and retried. For an editor or a replay, use the
|
|
190
220
|
* parts and `useMediaElement` directly.
|
|
191
221
|
*/
|
|
192
|
-
export declare function MediaPlayer({ label, kind, src, sources, index: controlledIndex, onIndexChange, autoAdvance, controls, autoPlay, poster, session, rates, shortcuts, attach, growing, window: bound, loop, showFull, group, onTimeUpdate, onWindowEnd, onEnded, onTimeChange, spans, spanKinds, onSpan, spanWords, mediaRef, overlay, status, warning, aspect, fullscreen, className, }: MediaPlayerProps): React.JSX.Element;
|
|
222
|
+
export declare function MediaPlayer({ label, kind, src, sources, index: controlledIndex, onIndexChange, autoAdvance, controls, autoPlay, poster, session, rates, shortcuts, attach, growing, window: bound, loop, showFull, group, onTimeUpdate, onWindowEnd, onEnded, onTimeChange, spans, spanKinds, onSpan, spanWords, start, resumeWords, onProgress, progressEvery, mediaRef, overlay, status, warning, aspect, fullscreen, className, }: MediaPlayerProps): React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** What `onProgress` is called with. */
|
|
2
|
+
export type MediaProgress = {
|
|
3
|
+
/** Where the playhead is, seconds into the file. */
|
|
4
|
+
position: number;
|
|
5
|
+
/** Seconds played through, each counted once; a span the player skipped counts as watched. */
|
|
6
|
+
watched: number;
|
|
7
|
+
/** The file's length in seconds, or null while it is not known. */
|
|
8
|
+
duration: number | null;
|
|
9
|
+
};
|
|
10
|
+
/** Ranges of seconds that have been seen, merged, so each second is counted once. */
|
|
11
|
+
export type WatchedRanges = {
|
|
12
|
+
add: (start: number, end: number) => void;
|
|
13
|
+
/** Seconds in all, to a tenth. */
|
|
14
|
+
total: () => number;
|
|
15
|
+
clear: () => void;
|
|
16
|
+
};
|
|
17
|
+
export declare function createWatchedRanges(): WatchedRanges;
|
|
@@ -11,6 +11,8 @@ export type SpanKind = {
|
|
|
11
11
|
behaviour?: SpanBehaviour;
|
|
12
12
|
/** Default "info". */
|
|
13
13
|
tone?: SpanTone;
|
|
14
|
+
/** A colour of the app's theme for this kind, by its custom property (`"--seg-sponsor"`): for kinds whose colours the app's people already know, and more than five of them. Wins over `tone`. The name stays the carrier of meaning; the library never picks a colour. */
|
|
15
|
+
colour?: string;
|
|
14
16
|
};
|
|
15
17
|
/** A stretch of the recording, in seconds on the player's timeline, of one of the `spanKinds`. */
|
|
16
18
|
export type MediaSpanData = {
|
|
@@ -70,9 +72,22 @@ export type MediaSpansState = {
|
|
|
70
72
|
};
|
|
71
73
|
/** Draws the spans' ranges and acts on them as playback reaches them. See the file comment for the rules. */
|
|
72
74
|
export declare function useMediaSpans({ spans, kinds, words, onSpan, time, playing, duration, limit, seek, volume, setVolume }: Options): MediaSpansState;
|
|
75
|
+
/** A short notice drawn over a picture (or under an audio player) with one way back: "Skipped intro, Undo", "Picked up at 2:05, Start over". The player's own notices use it, so an overlay of an app's own matches them without copying classes. */
|
|
76
|
+
export declare function PlayerNotice({ children, action, onAction }: {
|
|
77
|
+
children: React.ReactNode;
|
|
78
|
+
action: string;
|
|
79
|
+
onAction: () => void;
|
|
80
|
+
}): React.JSX.Element;
|
|
81
|
+
/** What `SpanActions` can also show in its notice place: a notice that is not about a span (the player's "Picked up at 2:05, Start over"). A span's own notice wins while it shows. */
|
|
82
|
+
export type SpanActionsNotice = {
|
|
83
|
+
text: string;
|
|
84
|
+
actionLabel: string;
|
|
85
|
+
run: () => void;
|
|
86
|
+
};
|
|
73
87
|
/** The Skip button and the "Skipped intro, Undo" notice, for the player to draw over a picture or under the bar. The notice's live region is always present, so a screen reader hears what is put in it. */
|
|
74
|
-
export declare function SpanActions({ state, className }: {
|
|
88
|
+
export declare function SpanActions({ state, other, className }: {
|
|
75
89
|
state: MediaSpansState;
|
|
90
|
+
other?: SpanActionsNotice | null;
|
|
76
91
|
className?: string;
|
|
77
92
|
}): React.JSX.Element;
|
|
78
93
|
export {};
|
|
@@ -23,7 +23,21 @@ export type SeekBarSpan = {
|
|
|
23
23
|
label: string;
|
|
24
24
|
/** Default "info". */
|
|
25
25
|
tone?: SpanTone;
|
|
26
|
+
/** What kind of stretch it is ("sponsor"). Drawn as `data-kind` on the range, so an app can colour kinds from its own theme (`[data-kind="sponsor"]`). */
|
|
27
|
+
kind?: string;
|
|
28
|
+
/** A colour of the app's theme, named by its custom property (`"--seg-sponsor"`), for a kind whose colour the app's people know, instead of one of the five tones. Only a name starting with `--` is used; the library never picks a colour. */
|
|
29
|
+
colour?: string;
|
|
26
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* The marked stretches as a thin strip, for under a picture played with the browser's own controls, whose seek bar cannot draw them
|
|
33
|
+
* (strata-react issue #270): the same ranges, names and colours as `SeekBar spans`, not a control. Draws nothing until `duration` is known.
|
|
34
|
+
*/
|
|
35
|
+
export declare function SpanStrip({ spans, duration, label, precision, fps, className }: {
|
|
36
|
+
spans: readonly SeekBarSpan[];
|
|
37
|
+
duration: number | null;
|
|
38
|
+
label?: string;
|
|
39
|
+
className?: string;
|
|
40
|
+
} & TimeProps): React.JSX.Element | null;
|
|
27
41
|
export type SeekBarProps = TimeProps & {
|
|
28
42
|
time: number;
|
|
29
43
|
/** Seconds; null, NaN or 0 while it is not known (a stream before its metadata): the bar is drawn disabled, with no thumb. */
|
package/dist/index.d.ts
CHANGED
|
@@ -38,14 +38,14 @@ export { JobStatus, jobProgressText, type JobStatusProps, type JobFailure, type
|
|
|
38
38
|
export { useJobAction, type JobAction, type JobActionOptions } from './components/job-action';
|
|
39
39
|
export { Thumbnail, ThumbnailSkeleton, type ThumbnailProps, type AspectRatio } from './components/thumbnail';
|
|
40
40
|
export { DataTable, TableSkeleton, parseSort, serialiseSort, type CellValue, type Column, type Sort, type DataTableProps, type RowSelection, type RowExpansion, } from './components/data-table';
|
|
41
|
-
export { MediaPlayer, useMediaElement, useAttachedSource, SPEECH_RATES, type MediaPlayerProps, type MediaElementState, type MediaElementOptions, type MediaWindow, type StreamContext, type StreamAttachment, type SourceAttacher, type MediaProblem, type MediaSource, type MediaSession } from './components/media-player';
|
|
42
|
-
export { useMediaSpans, SpanActions, type MediaSpanData, type SpanKind, type SpanBehaviour, type SpanOutcome, type SpanWords, type MediaSpansState } from './components/media-spans';
|
|
41
|
+
export { MediaPlayer, useMediaElement, useAttachedSource, SPEECH_RATES, type MediaPlayerProps, type MediaElementState, type MediaElementOptions, type MediaWindow, type StreamContext, type StreamAttachment, type SourceAttacher, type MediaProblem, type MediaSource, type MediaSession, type MediaProgress, type ResumeWords } from './components/media-player';
|
|
42
|
+
export { useMediaSpans, SpanActions, PlayerNotice, type SpanActionsNotice, type MediaSpanData, type SpanKind, type SpanBehaviour, type SpanOutcome, type SpanWords, type MediaSpansState } from './components/media-spans';
|
|
43
43
|
export { TranscriptView, type TranscriptViewProps, type TranscriptSeek } from './components/transcript-view';
|
|
44
44
|
export { phraseAt, wordAt, wordId, phraseOfWordId, isDoubtful, phraseDoubtful, type TranscriptGroup, type TranscriptPhrase, type TranscriptPhraseState, type TranscriptWord } from './lib/transcript';
|
|
45
45
|
export { Waveform, type WaveformProps, type WaveformMark, type WaveformMarkKind, type WaveformSpan, type WaveformTone } from './components/waveform';
|
|
46
46
|
export { resamplePeaks, toPeakPair, peaksFromAudio, type WaveformPeaks, type PeakPair, type DecodedAudio } from './lib/waveform';
|
|
47
47
|
export { MediaGroup, PlayWindowButton, joinMediaGroup, type PlayWindowButtonProps } from './components/media-group';
|
|
48
|
-
export { Transport, TimeReadout, SeekBar, VolumeControl, RateChoice, MediaStage, StageGuides, transportShortcuts, type TransportProps, type SeekBarProps, type SeekBarSpan, type VolumeControlProps, type Precision } from './components/media';
|
|
48
|
+
export { Transport, TimeReadout, SeekBar, SpanStrip, VolumeControl, RateChoice, MediaStage, StageGuides, transportShortcuts, type TransportProps, type SeekBarProps, type SeekBarSpan, type VolumeControlProps, type Precision } from './components/media';
|
|
49
49
|
export { Timeline, TimelineZoomControls, useTimelineZoom, noOverlap, type TimelineProps, type TimelineItem, type TimelineLane, type TimelineMarker, type TimelineChange, type TimelineDrop } from './components/timeline';
|
|
50
50
|
export { tickStep, ticksBetween, tickLabel } from './lib/timeline';
|
|
51
51
|
export { SortableList, type SortableListProps, type DropTarget } from './components/sortable-list';
|