@vocalstack/player 0.1.0-alpha.1 → 0.1.0-alpha.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/dist/index.d.ts +8 -2
- package/dist/index.js +2629 -2506
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/ui/EndCard.d.ts +2 -1
- package/dist/ui/core.d.ts +26 -7
- package/dist/ui/full.d.ts +3 -0
- package/package.json +1 -1
package/dist/ui/core.d.ts
CHANGED
|
@@ -91,18 +91,31 @@ export declare const PUB_SIDE: {
|
|
|
91
91
|
title: string;
|
|
92
92
|
note: string;
|
|
93
93
|
};
|
|
94
|
+
export interface VoiceSheetCtx {
|
|
95
|
+
people: CastMember[];
|
|
96
|
+
gvList: AvailableVoice[];
|
|
97
|
+
autoOf: (key: number) => AvailableVoice | null;
|
|
98
|
+
savedFor: (sp: CastMember) => AvailableVoice | null;
|
|
99
|
+
}
|
|
100
|
+
export interface NoCloneNote {
|
|
101
|
+
busy?: boolean;
|
|
102
|
+
title: string;
|
|
103
|
+
sub: string;
|
|
104
|
+
tip?: string;
|
|
105
|
+
action?: () => void;
|
|
106
|
+
}
|
|
94
107
|
export interface VoiceSheetHooks {
|
|
95
108
|
cloneOn?: boolean;
|
|
109
|
+
pendingClones?: boolean;
|
|
96
110
|
titleNode?: React.ReactNode;
|
|
111
|
+
badge?: (ctx: VoiceSheetCtx) => number;
|
|
97
112
|
onAddVoice?: (v: AvailableVoice) => void;
|
|
98
113
|
onPickVoice?: (v: AvailableVoice) => boolean | void;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
action?: () => void;
|
|
105
|
-
} | null;
|
|
114
|
+
onSelectSpeaker?: (key: number) => void;
|
|
115
|
+
noCloneFor?: (sp: CastMember, auto: AvailableVoice | null, ctx: VoiceSheetCtx) => NoCloneNote | null;
|
|
116
|
+
castNoClone?: (sp: CastMember, ctx: VoiceSheetCtx) => boolean;
|
|
117
|
+
castShort?: (sp: CastMember, ctx: VoiceSheetCtx) => boolean;
|
|
118
|
+
castBuilding?: (sp: CastMember, ctx: VoiceSheetCtx) => boolean;
|
|
106
119
|
}
|
|
107
120
|
export declare function useTxVoice({ recordingId, model, rows, lenS, ended, cred, langs, srcLang, canTranslate, pickedLang, setPickedLang, side, hearOriginal, timed, stockVoices, stickyPicker, pickerBusy, voiceSheet }: {
|
|
108
121
|
voiceSheet?: VoiceSheetHooks;
|
|
@@ -156,12 +169,18 @@ export declare function useTxVoice({ recordingId, model, rows, lenS, ended, cred
|
|
|
156
169
|
openPicker: () => void;
|
|
157
170
|
original: boolean;
|
|
158
171
|
reloadVoices: () => void;
|
|
172
|
+
voicesVer: number;
|
|
159
173
|
people: CastMember[];
|
|
160
174
|
gvList: AvailableVoice[];
|
|
161
175
|
autoOf: (key: number) => AvailableVoice | null;
|
|
162
176
|
savedFor: (sp: CastMember) => AvailableVoice | null;
|
|
163
177
|
closeVoices: () => void;
|
|
164
178
|
setSheet: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
179
|
+
selectedSpeaker: CastMember | null;
|
|
180
|
+
armVoice: (v: import("../data/voicePreview").PreviewableVoice) => void;
|
|
181
|
+
resetPreview: () => void;
|
|
182
|
+
armedId: string | null;
|
|
183
|
+
resetCast: () => void;
|
|
165
184
|
readLang: string | null;
|
|
166
185
|
readVoiceKey: string;
|
|
167
186
|
readVoiceName: string;
|
package/dist/ui/full.d.ts
CHANGED
|
@@ -29,6 +29,9 @@ export type PlayerTransport = {
|
|
|
29
29
|
onPlay?: () => void;
|
|
30
30
|
busy?: boolean;
|
|
31
31
|
};
|
|
32
|
+
export declare function PanelSeek({ pos }: {
|
|
33
|
+
pos: PlayerPos;
|
|
34
|
+
}): import("react").JSX.Element;
|
|
32
35
|
export declare function MiniPlayer({ pos, transport, chip, voices, onShare, onFull, copied }: {
|
|
33
36
|
pos: PlayerPos;
|
|
34
37
|
transport: PlayerTransport;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vocalstack/player",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.2",
|
|
4
4
|
"description": "VocalStack video and transcript player for React: synced transcript, subtitles, spoken translations and background sound, over the public VocalStack API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|