@fraku/video 0.1.81 → 0.1.83
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/components/ConfigDialog/Tabs/useMicTester.d.ts +18 -0
- package/dist/components/ConfigDialog/Tabs/useMicTester.test.d.ts +1 -0
- package/dist/components/ConfigDialog/Tabs/useSpeakerTester.d.ts +16 -0
- package/dist/components/ConfigDialog/Tabs/useSpeakerTester.test.d.ts +1 -0
- package/dist/components/ConfigDialog/tests/AudioSettings.test.d.ts +1 -0
- package/dist/i18n/locales/ca.json.d.ts +9 -0
- package/dist/i18n/locales/de.json.d.ts +9 -0
- package/dist/i18n/locales/en.json.d.ts +9 -0
- package/dist/i18n/locales/es.json.d.ts +9 -0
- package/dist/i18n/locales/fr.json.d.ts +9 -0
- package/dist/index.cjs +199 -676
- package/dist/index.css +1 -1
- package/dist/index.js +25618 -33664
- package/dist/libs/errors.d.ts +5 -2
- package/dist/providers/DialogsProvider/tests/DialogsProvider.test.d.ts +1 -0
- package/dist/providers/SessionProvider/context.d.ts +1 -0
- package/dist/providers/SharedProvider/commandChannelActionHandlers.d.ts +1 -0
- package/dist/providers/VideoProvider/context.d.ts +3 -0
- package/package.json +1 -1
package/dist/libs/errors.d.ts
CHANGED
|
@@ -9,8 +9,11 @@ export declare class AlreadyHandledError extends Error {
|
|
|
9
9
|
constructor(cause?: unknown);
|
|
10
10
|
}
|
|
11
11
|
type SafeFunction = {
|
|
12
|
-
<TResult>(fn: () => Promise<TResult
|
|
13
|
-
<TResult>(fn: () => TResult): TResult;
|
|
12
|
+
<TResult>(fn: () => Promise<TResult>, options?: SafeCallOptions): Promise<TResult>;
|
|
13
|
+
<TResult>(fn: () => TResult, options?: SafeCallOptions): TResult;
|
|
14
|
+
};
|
|
15
|
+
type SafeCallOptions = {
|
|
16
|
+
suppressErrorNotification?: (error: unknown) => boolean;
|
|
14
17
|
};
|
|
15
18
|
/**
|
|
16
19
|
* React hook that wraps unstable or error-prone functions to provide consistent error handling.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,6 +3,7 @@ import { default as ZoomVideo } from '@zoom/videosdk';
|
|
|
3
3
|
export type SessionContextType = {
|
|
4
4
|
zmClient: ReturnType<typeof ZoomVideo.createClient>;
|
|
5
5
|
clientInitialized: boolean;
|
|
6
|
+
isLeaving: boolean;
|
|
6
7
|
sessionStarted: boolean;
|
|
7
8
|
signature: string;
|
|
8
9
|
isSessionStarted: () => boolean;
|
|
@@ -11,6 +11,7 @@ export type CommandChannelContext = {
|
|
|
11
11
|
canServeSharedState: boolean;
|
|
12
12
|
canRespondToRecoveryRequest: boolean;
|
|
13
13
|
alert: (props: AlertDialogProps) => void;
|
|
14
|
+
t: (key: string | ReadonlyArray<string>, params?: Record<string, unknown>) => string;
|
|
14
15
|
dispatch: (action: CommandChannelAction) => void;
|
|
15
16
|
onStateRecoverySnapshot: (action: Extract<CommandChannelAction, {
|
|
16
17
|
type: 'SEND-STATE-RECOVERY';
|
|
@@ -31,6 +31,9 @@ export type VideoContextType = {
|
|
|
31
31
|
selfVideoStarted: boolean;
|
|
32
32
|
setVirtualBackgroundMode: (mode: VirtualBackgroundMode, imageId?: string) => Promise<void>;
|
|
33
33
|
removeBackgroundImage: (imageId: string) => Promise<void>;
|
|
34
|
+
recoverSelfShare: (element: HTMLVideoElement, options?: {
|
|
35
|
+
allowRestart?: boolean;
|
|
36
|
+
}) => Promise<void>;
|
|
34
37
|
startScreenSharing: (params: {
|
|
35
38
|
selfShareCanvas: HTMLVideoElement | null;
|
|
36
39
|
}) => Promise<void>;
|