@fraku/video 0.1.91 → 0.1.92
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/SubtitleSettings.d.ts +2 -0
- package/dist/components/ConfigDialog/Tabs/SubtitleSettings.stories.d.ts +13 -0
- package/dist/components/ConfigDialog/context.d.ts +2 -1
- package/dist/components/ConfigDialog/tests/ConfigDialog.test.d.ts +1 -0
- package/dist/components/ConfigDialog/tests/ConfigMenu.test.d.ts +1 -0
- package/dist/components/ConfigDialog/tests/SubtitleSettings.test.d.ts +1 -0
- package/dist/i18n/locales/ca.json.d.ts +17 -0
- package/dist/i18n/locales/de.json.d.ts +17 -0
- package/dist/i18n/locales/en.json.d.ts +17 -0
- package/dist/i18n/locales/es.json.d.ts +17 -0
- package/dist/i18n/locales/fr.json.d.ts +17 -0
- package/dist/index.cjs +95 -95
- package/dist/index.css +1 -1
- package/dist/index.js +13421 -12894
- package/dist/libs/logger.d.ts +1 -0
- package/dist/pages/MainSessionPage/Video/SubtitleOverlay.d.ts +2 -0
- package/dist/pages/MainSessionPage/Video/SubtitleOverlay.stories.d.ts +41 -0
- package/dist/pages/MainSessionPage/Video/tests/SubtitleOverlay.test.d.ts +1 -0
- package/dist/providers/SubtitlesProvider/SubtitlesProvider.d.ts +4 -0
- package/dist/providers/SubtitlesProvider/context.d.ts +17 -0
- package/dist/providers/SubtitlesProvider/index.d.ts +2 -0
- package/dist/providers/SubtitlesProvider/languages.d.ts +8 -0
- package/dist/providers/SubtitlesProvider/tests/SubtitlesProvider.test.d.ts +1 -0
- package/dist/providers/SubtitlesProvider/tests/languages.test.d.ts +1 -0
- package/dist/providers/SubtitlesProvider/tests/useSubtitleConfig.test.d.ts +1 -0
- package/dist/providers/SubtitlesProvider/types.d.ts +20 -0
- package/dist/providers/SubtitlesProvider/useSubtitleConfig.d.ts +6 -0
- package/dist/providers/VideoPluginProvider/VideoPluginProvider.d.ts +2 -1
- package/dist/providers/VideoPluginProvider/context.d.ts +2 -0
- package/dist/providers/VideoPluginProvider/tests/VideoPluginProvider.test.d.ts +1 -0
- package/dist/types/index.d.ts +6 -0
- package/package.json +6 -6
package/dist/libs/logger.d.ts
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react-vite';
|
|
2
|
+
import { default as SubtitleOverlay } from './SubtitleOverlay';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof SubtitleOverlay>;
|
|
5
|
+
export default meta;
|
|
6
|
+
export declare const TwoLines: {
|
|
7
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const SpeakerAttribution: {
|
|
11
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const SmallText: {
|
|
15
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
storyName: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const LargeText: {
|
|
19
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
storyName: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const HighOpacity: {
|
|
23
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
storyName: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const TransparentBackground: {
|
|
27
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
storyName: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const MaxThreeLines: {
|
|
31
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
storyName: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const PiPLayout: {
|
|
35
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
storyName: string;
|
|
37
|
+
};
|
|
38
|
+
export declare const Hidden: {
|
|
39
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
storyName: string;
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CaptionLine, SpeakingLanguage, SubtitleConfig } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const DEFAULT_SUBTITLE_CONFIG: SubtitleConfig;
|
|
4
|
+
export type SubtitlesContextType = {
|
|
5
|
+
subtitlesVisible: boolean;
|
|
6
|
+
toggleSubtitles: () => void;
|
|
7
|
+
transcriptionEnabled: boolean;
|
|
8
|
+
captionLines: readonly CaptionLine[];
|
|
9
|
+
subtitleConfig: SubtitleConfig;
|
|
10
|
+
updateSubtitleConfig: (patch: Partial<SubtitleConfig>) => void;
|
|
11
|
+
speakingLanguage: SpeakingLanguage;
|
|
12
|
+
supportedSpeakingLanguages: readonly SpeakingLanguage[];
|
|
13
|
+
canConfigureSpeakingLanguage: boolean;
|
|
14
|
+
updateSpeakingLanguage: (language: SpeakingLanguage) => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const SubtitlesContext: import('react').Context<SubtitlesContextType>;
|
|
17
|
+
export declare const useSubtitlesContext: () => SubtitlesContextType;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LiveTranscriptionLanguage } from '@zoom/videosdk';
|
|
2
|
+
|
|
3
|
+
export declare const ALL_SPEAKING_LANGUAGES: readonly LiveTranscriptionLanguage[];
|
|
4
|
+
export declare const APP_LANGUAGE_DEFAULTS: Record<string, LiveTranscriptionLanguage>;
|
|
5
|
+
export declare const getDefaultSpeakingLanguage: (locale?: string) => LiveTranscriptionLanguage;
|
|
6
|
+
export declare const APP_LANGUAGE_DEFAULT_VALUES: readonly LiveTranscriptionLanguage[];
|
|
7
|
+
export declare const getSupportedSpeakingLanguages: (serializedLanguages?: string) => readonly LiveTranscriptionLanguage[];
|
|
8
|
+
export declare const selectAvailableSpeakingLanguage: (requestedLanguage: LiveTranscriptionLanguage, supportedLanguages: readonly LiveTranscriptionLanguage[]) => LiveTranscriptionLanguage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { LiveTranscriptionLanguage } from '@zoom/videosdk';
|
|
3
|
+
|
|
4
|
+
export type SubtitleConfig = {
|
|
5
|
+
textSize: 'small' | 'medium' | 'large';
|
|
6
|
+
textColor: string;
|
|
7
|
+
bgColor: string;
|
|
8
|
+
bgOpacity: number;
|
|
9
|
+
maxLines: 1 | 2 | 3;
|
|
10
|
+
};
|
|
11
|
+
export type CaptionLine = {
|
|
12
|
+
msgId: string;
|
|
13
|
+
displayName?: string;
|
|
14
|
+
text: string;
|
|
15
|
+
done: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type SpeakingLanguage = LiveTranscriptionLanguage;
|
|
18
|
+
export type SubtitlesProviderProps = {
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { Credentials } from '../../types';
|
|
2
|
+
import { Credentials, PaidAddOns } from '../../types';
|
|
3
3
|
import { SessionStatus, UserRole } from './context';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -24,6 +24,7 @@ export type VideoPluginProviderProps = {
|
|
|
24
24
|
videoSessionStatus?: SessionStatus;
|
|
25
25
|
language?: string;
|
|
26
26
|
isFinishForAllEnabled?: boolean;
|
|
27
|
+
paidAddOns?: PaidAddOns;
|
|
27
28
|
onInitVotingPreSession?: () => Promise<void>;
|
|
28
29
|
onInitVotingSession?: () => Promise<void>;
|
|
29
30
|
onCloseVotingSession?: () => Promise<void>;
|
|
@@ -24,6 +24,8 @@ export type VideoPluginContextType = {
|
|
|
24
24
|
onJoin?: () => void;
|
|
25
25
|
onExit?: () => void;
|
|
26
26
|
isFinishForAllEnabled: boolean;
|
|
27
|
+
allowLiveTranscription: boolean;
|
|
28
|
+
allowRecording: boolean;
|
|
27
29
|
};
|
|
28
30
|
export declare const VideoPluginContext: import('react').Context<VideoPluginContextType>;
|
|
29
31
|
export declare const useVideoPluginContext: () => VideoPluginContextType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,6 +7,10 @@ export type Credentials = {
|
|
|
7
7
|
userName: string;
|
|
8
8
|
sessionPasscode: string;
|
|
9
9
|
};
|
|
10
|
+
export type PaidAddOns = {
|
|
11
|
+
allowLiveTranscription?: boolean;
|
|
12
|
+
allowRecording?: boolean;
|
|
13
|
+
};
|
|
10
14
|
export type VideoPluginProps = {
|
|
11
15
|
onChangeUserRole?: (user: {
|
|
12
16
|
censusUserId: string;
|
|
@@ -30,5 +34,7 @@ export type VideoPluginProps = {
|
|
|
30
34
|
enableLogs?: boolean;
|
|
31
35
|
/** Controls whether "Finish for all" is available. Defaults to true. */
|
|
32
36
|
isFinishForAllEnabled?: boolean;
|
|
37
|
+
/** Feature flags for paid Zoom add-ons. All flags default to true when not provided. */
|
|
38
|
+
paidAddOns?: PaidAddOns;
|
|
33
39
|
};
|
|
34
40
|
export type ReactSetter<T> = React.Dispatch<React.SetStateAction<T>>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fraku/video",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.92",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -65,13 +65,13 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@playwright/test": "^1.60.0",
|
|
68
|
-
"@storybook/react-vite": "^10.
|
|
69
|
-
"@storybook/test-runner": "^0.24.
|
|
68
|
+
"@storybook/react-vite": "^10.4.1",
|
|
69
|
+
"@storybook/test-runner": "^0.24.4",
|
|
70
70
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
71
71
|
"@testing-library/jest-dom": "^6.9.1",
|
|
72
72
|
"@testing-library/react": "^16.3.2",
|
|
73
73
|
"@types/jsrsasign": "^10.5.15",
|
|
74
|
-
"@types/node": "^25.
|
|
74
|
+
"@types/node": "^25.9.1",
|
|
75
75
|
"@types/react": "^18.3.28",
|
|
76
76
|
"@types/react-dom": "^18.2.17",
|
|
77
77
|
"@types/styled-components": "^5.1.36",
|
|
@@ -86,14 +86,14 @@
|
|
|
86
86
|
"eslint-plugin-react": "^7.37.5",
|
|
87
87
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
88
88
|
"eslint-plugin-react-refresh": "^0.4.26",
|
|
89
|
-
"eslint-plugin-storybook": "^10.
|
|
89
|
+
"eslint-plugin-storybook": "^10.4.1",
|
|
90
90
|
"husky": "^9.1.7",
|
|
91
91
|
"jsdom": "^27.4.0",
|
|
92
92
|
"postcss": "^8.5.14",
|
|
93
93
|
"primereact": "^10.9.6",
|
|
94
94
|
"react": "^18.2.0",
|
|
95
95
|
"react-dom": "^18.2.0",
|
|
96
|
-
"storybook": "^10.
|
|
96
|
+
"storybook": "^10.4.1",
|
|
97
97
|
"tailwindcss": "^3.4.19",
|
|
98
98
|
"typescript": "^5.2.2",
|
|
99
99
|
"vite": "^6.0.7",
|