@fraku/video 0.1.77 → 0.1.78
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/i18n/locales/ca.json.d.ts +3 -0
- package/dist/i18n/locales/de.json.d.ts +3 -0
- package/dist/i18n/locales/en.json.d.ts +3 -0
- package/dist/i18n/locales/es.json.d.ts +3 -0
- package/dist/i18n/locales/fr.json.d.ts +3 -0
- package/dist/index.cjs +203 -203
- package/dist/index.js +24454 -24008
- package/dist/libs/errors.d.ts +10 -0
- package/dist/pages/MainSessionPage/ButtonsDock/tests/useButtonsDockController.test.d.ts +1 -0
- package/dist/pages/SetupPage/tests/SetupPage.test.d.ts +1 -0
- package/dist/providers/SessionProvider/tests/SessionProvider.test.d.ts +1 -0
- package/dist/providers/VideoPluginProvider/VideoPluginProvider.d.ts +2 -0
- package/dist/providers/VideoPluginProvider/context.d.ts +2 -0
- package/dist/types/index.d.ts +4 -0
- package/package.json +1 -1
package/dist/libs/errors.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Thrown by sendActionSafely after the user has already been notified via toast.
|
|
3
|
+
* DialogsProvider button handlers check for this class to suppress their own
|
|
4
|
+
* generic fallback "action-error" toast, preventing duplicate notifications.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AlreadyHandledError extends Error {
|
|
7
|
+
name: string;
|
|
8
|
+
readonly cause: unknown;
|
|
9
|
+
constructor(cause?: unknown);
|
|
10
|
+
}
|
|
1
11
|
type SafeFunction = {
|
|
2
12
|
<TResult>(fn: () => Promise<TResult>): Promise<TResult>;
|
|
3
13
|
<TResult>(fn: () => TResult): TResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -27,6 +27,8 @@ export type VideoPluginProviderProps = {
|
|
|
27
27
|
onInitVotingSession?: () => Promise<void>;
|
|
28
28
|
onCloseVotingSession?: () => Promise<void>;
|
|
29
29
|
onRestartVotingSession?: () => Promise<void>;
|
|
30
|
+
onJoin?: () => void;
|
|
31
|
+
onExit?: () => void;
|
|
30
32
|
};
|
|
31
33
|
declare const VideoPluginProvider: import('react').ForwardRefExoticComponent<VideoPluginProviderProps & import('react').RefAttributes<VideoPluginProviderHandle>>;
|
|
32
34
|
export default VideoPluginProvider;
|
|
@@ -21,6 +21,8 @@ export type VideoPluginContextType = {
|
|
|
21
21
|
initVotingSession: () => Promise<void>;
|
|
22
22
|
closeVotingSession: () => Promise<void>;
|
|
23
23
|
restartSession: () => Promise<void>;
|
|
24
|
+
onJoin?: () => void;
|
|
25
|
+
onExit?: () => void;
|
|
24
26
|
};
|
|
25
27
|
export declare const VideoPluginContext: import('react').Context<VideoPluginContextType>;
|
|
26
28
|
export declare const useVideoPluginContext: () => VideoPluginContextType;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -16,6 +16,10 @@ export type VideoPluginProps = {
|
|
|
16
16
|
onInitSession?: () => Promise<void>;
|
|
17
17
|
onCloseSession?: () => Promise<void>;
|
|
18
18
|
onRestartSession?: () => Promise<void>;
|
|
19
|
+
/** Called after the current user has successfully joined the session. */
|
|
20
|
+
onJoin?: () => void;
|
|
21
|
+
/** Called after the current user has successfully left the session. */
|
|
22
|
+
onExit?: () => void;
|
|
19
23
|
videoSessionStatus?: SessionStatus;
|
|
20
24
|
credentials: Credentials;
|
|
21
25
|
language?: string;
|