@joewinke/jatui 0.2.28 → 0.2.29
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/CLAUDE.md +10 -0
- package/dist/components/VideoPlayer.svelte +1592 -0
- package/dist/components/VideoPlayer.svelte.d.ts +72 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/** A model-authored marker: the video's structure. */
|
|
2
|
+
export interface VideoChapter {
|
|
3
|
+
startSec: number;
|
|
4
|
+
title: string;
|
|
5
|
+
/** Optional captured still, shown in the band's hover card. */
|
|
6
|
+
thumbUrl?: string | null;
|
|
7
|
+
}
|
|
8
|
+
/** A diarized turn (or an ad read, `ad: true`). Structurally accepts meeting data. */
|
|
9
|
+
export interface VideoSpeakerTurn {
|
|
10
|
+
startSec: number;
|
|
11
|
+
endSec: number;
|
|
12
|
+
speakerIdentity?: string | null;
|
|
13
|
+
speakerName?: string | null;
|
|
14
|
+
/** Explicit oklch hue (0–360). Omit to take the next palette colour. */
|
|
15
|
+
hue?: number | null;
|
|
16
|
+
/** Ad read — shares the lane but reads as not-a-person. */
|
|
17
|
+
ad?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** Transcript line. Structurally compatible with TranscriptPlayer's `TranscriptSegment`. */
|
|
20
|
+
export interface VideoTranscriptSegment {
|
|
21
|
+
id: string;
|
|
22
|
+
startSec: number;
|
|
23
|
+
endSec: number;
|
|
24
|
+
speakerIdentity?: string | null;
|
|
25
|
+
speakerName?: string | null;
|
|
26
|
+
text: string;
|
|
27
|
+
}
|
|
28
|
+
/** A user-authored marker. Structurally compatible with `TranscriptBookmark`. */
|
|
29
|
+
export interface VideoBookmark {
|
|
30
|
+
playbackSec: number;
|
|
31
|
+
label?: string | null;
|
|
32
|
+
note?: string | null;
|
|
33
|
+
participantName?: string | null;
|
|
34
|
+
}
|
|
35
|
+
/** Precomputed audio envelope. `peaks` are normalised against their own max. */
|
|
36
|
+
export interface VideoWaveform {
|
|
37
|
+
peaks: number[];
|
|
38
|
+
/** Seconds the peaks span. Defaults to the video's duration. */
|
|
39
|
+
durationSec?: number;
|
|
40
|
+
}
|
|
41
|
+
/** Per-speaker totals. Structurally compatible with `TranscriptSpeakerTalkTime`. */
|
|
42
|
+
export interface VideoSpeakerTalkTime {
|
|
43
|
+
speakerIdentity?: string | null;
|
|
44
|
+
speakerName?: string | null;
|
|
45
|
+
seconds: number;
|
|
46
|
+
}
|
|
47
|
+
type $$ComponentProps = {
|
|
48
|
+
src: string;
|
|
49
|
+
poster?: string | null;
|
|
50
|
+
captionsSrc?: string | null;
|
|
51
|
+
captionsLabel?: string;
|
|
52
|
+
captionsLang?: string;
|
|
53
|
+
chapters?: VideoChapter[];
|
|
54
|
+
speakers?: VideoSpeakerTurn[];
|
|
55
|
+
transcript?: VideoTranscriptSegment[];
|
|
56
|
+
bookmarks?: VideoBookmark[];
|
|
57
|
+
waveform?: VideoWaveform | null;
|
|
58
|
+
talkTime?: VideoSpeakerTalkTime[];
|
|
59
|
+
/** Seek here once metadata lands (a queued seek never fires on a later source). */
|
|
60
|
+
startAt?: number | null;
|
|
61
|
+
transcriptPosition?: 'below' | 'side';
|
|
62
|
+
transcriptMaxHeight?: string;
|
|
63
|
+
onTimeUpdate?: (video: HTMLVideoElement) => void;
|
|
64
|
+
/** Present ⇒ the band grows an "add bookmark at current time" control. */
|
|
65
|
+
onAddBookmark?: (playbackSec: number, label: string) => void;
|
|
66
|
+
/** Right-click on the band. The host owns the panel; this only hit-tests. */
|
|
67
|
+
onBookmarkContext?: (sec: number, existing: VideoBookmark | null, clientX: number, clientY: number) => void;
|
|
68
|
+
class?: string;
|
|
69
|
+
};
|
|
70
|
+
declare const VideoPlayer: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
71
|
+
type VideoPlayer = ReturnType<typeof VideoPlayer>;
|
|
72
|
+
export default VideoPlayer;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export { default as ChapterTimeline } from './components/replay/ChapterTimeline.
|
|
|
11
11
|
export type { ChapterBlock } from './components/replay/ChapterTimeline.svelte';
|
|
12
12
|
export { default as TranscriptPlayer } from './components/TranscriptPlayer.svelte';
|
|
13
13
|
export type { TranscriptSegment, TranscriptBookmark, TranscriptChapter, TranscriptSpeakerTalkTime, } from './components/TranscriptPlayer.svelte';
|
|
14
|
+
export { default as VideoPlayer } from './components/VideoPlayer.svelte';
|
|
15
|
+
export type { VideoChapter, VideoSpeakerTurn, VideoTranscriptSegment, VideoBookmark, VideoWaveform, VideoSpeakerTalkTime, } from './components/VideoPlayer.svelte';
|
|
14
16
|
export { buildLinkedSession, buildLinkedSessionFromWork, rawTypeToState, sampleLinkedSession, SAMPLE_TRANSCRIPT_LINES, } from './components/session-nav/transcriptModel';
|
|
15
17
|
export type { ItemKind, TranscriptItem, FileTouchedEntry, SignalNode, LinkedSession, WorkBlockClient, WorkTranscriptItemClient, } from './components/session-nav/transcriptModel';
|
|
16
18
|
export { default as UserAvatar } from './components/UserAvatar.svelte';
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,12 @@ export { default as Collapse } from './components/Collapse.svelte';
|
|
|
7
7
|
export { default as LinkedColumns } from './components/linked-columns/LinkedColumns.svelte';
|
|
8
8
|
export { default as ChapterTimeline } from './components/replay/ChapterTimeline.svelte';
|
|
9
9
|
export { default as TranscriptPlayer } from './components/TranscriptPlayer.svelte';
|
|
10
|
+
// The generalized player: everything TranscriptPlayer does plus the
|
|
11
|
+
// extension-library timeline band (waveform scrubber, chapters, diarized
|
|
12
|
+
// speaker colouring, bookmarks, scroll-to-zoom), with every intelligence prop
|
|
13
|
+
// optional so a bare mp4 still gets the full playback UX. TranscriptPlayer
|
|
14
|
+
// stays exported unchanged — meetings already depends on it.
|
|
15
|
+
export { default as VideoPlayer } from './components/VideoPlayer.svelte';
|
|
10
16
|
// Data models — Session transcript (from JAT IDE, jat-jj79f.16 G1)
|
|
11
17
|
export { buildLinkedSession, buildLinkedSessionFromWork, rawTypeToState, sampleLinkedSession, SAMPLE_TRANSCRIPT_LINES, } from './components/session-nav/transcriptModel';
|
|
12
18
|
// Components — Universal
|