@snapcall/stream-ui 1.23.1 → 1.24.0
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/stream-ui.esm.js +1629 -4130
- package/dist/stream-ui.js +1625 -4126
- package/dist/stream-ui.umd.js +250 -263
- package/dist/streamerClient/index.js +2 -2
- package/dist/types.d.ts +11 -8
- package/package.json +23 -34
package/dist/types.d.ts
CHANGED
|
@@ -29,6 +29,12 @@ interface Flow {
|
|
|
29
29
|
is_default: number;
|
|
30
30
|
steps: Array<Step>;
|
|
31
31
|
}
|
|
32
|
+
interface FlowV0 {
|
|
33
|
+
logo_url?: string;
|
|
34
|
+
image_url?: string;
|
|
35
|
+
title?: string;
|
|
36
|
+
text?: string;
|
|
37
|
+
}
|
|
32
38
|
interface JoinOptions {
|
|
33
39
|
languageCode?: string;
|
|
34
40
|
flowToken?: string;
|
|
@@ -118,9 +124,6 @@ declare global {
|
|
|
118
124
|
};
|
|
119
125
|
focusMode?: FocusMode;
|
|
120
126
|
}
|
|
121
|
-
interface HTMLMediaElement {
|
|
122
|
-
sinkId?: string;
|
|
123
|
-
}
|
|
124
127
|
}
|
|
125
128
|
interface MenuItem {
|
|
126
129
|
id: string;
|
|
@@ -164,6 +167,9 @@ declare class AudioLevel {
|
|
|
164
167
|
getAudioLevelMedian(): number;
|
|
165
168
|
getCurrentAudioLevel(): number;
|
|
166
169
|
analyse(): void;
|
|
170
|
+
startAverageAnalysis(): void;
|
|
171
|
+
stopAverageAnalysis(): number;
|
|
172
|
+
getFrequencyData(): Uint8Array;
|
|
167
173
|
clearListeners(): void;
|
|
168
174
|
release(): void;
|
|
169
175
|
static isAPIAvailable(): boolean;
|
|
@@ -175,7 +181,7 @@ declare class AudioRenderer {
|
|
|
175
181
|
destroy(): void;
|
|
176
182
|
setSource(srcObject: MediaStream): void;
|
|
177
183
|
setSink(sinkId: string): Promise<void>;
|
|
178
|
-
getSink(): string
|
|
184
|
+
getSink(): string;
|
|
179
185
|
play(): Promise<void>;
|
|
180
186
|
}
|
|
181
187
|
interface MediapipeOptions {
|
|
@@ -416,9 +422,9 @@ declare class StreamerClient extends StreamerEventTargetType implements AudioLev
|
|
|
416
422
|
onStartSpeak(): void;
|
|
417
423
|
onStopSpeak(): void;
|
|
418
424
|
generateToken(bid: string): Promise<string>;
|
|
419
|
-
readFlow(token: string): Promise<Flow | undefined>;
|
|
420
425
|
init(room?: string, options?: JoinOptions): Promise<{
|
|
421
426
|
flow?: Flow;
|
|
427
|
+
flowV0?: FlowV0;
|
|
422
428
|
}>;
|
|
423
429
|
setAgentIdentity({ apiKey, email }: {
|
|
424
430
|
apiKey: string;
|
|
@@ -658,9 +664,6 @@ declare global {
|
|
|
658
664
|
setCameraActive?: (active: boolean) => void;
|
|
659
665
|
setActionHandler(action: MediaSessionAction | 'togglemicrophone' | 'togglecamera' | 'hangup', handler: MediaSessionActionHandler | null): void;
|
|
660
666
|
}
|
|
661
|
-
interface HTMLAudioElement {
|
|
662
|
-
setSinkId?: (sinkId: string) => Promise<undefined>;
|
|
663
|
-
}
|
|
664
667
|
interface WindowEventMap {
|
|
665
668
|
streamUISetExtraSettingsOptions: CustomEvent;
|
|
666
669
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snapcall/stream-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"main": "dist/stream-ui.js",
|
|
@@ -51,68 +51,57 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@sentry/browser": "^7.0.0",
|
|
53
53
|
"bowser": "^2.11.0",
|
|
54
|
-
"i18next": "^
|
|
54
|
+
"i18next": "^23.11.5",
|
|
55
55
|
"inobounce": "^0.2.1",
|
|
56
|
-
"mediasoup-client": "^3.
|
|
56
|
+
"mediasoup-client": "^3.7.8",
|
|
57
57
|
"protoo-client": "^4.0.6",
|
|
58
58
|
"qrcode": "^1.5.0",
|
|
59
|
-
"react": "^18.
|
|
60
|
-
"react-dom": "^18.
|
|
59
|
+
"react": "^18.3.1",
|
|
60
|
+
"react-dom": "^18.3.1",
|
|
61
61
|
"react-hot-toast": "^2.2.0",
|
|
62
|
-
"react-i18next": "^
|
|
62
|
+
"react-i18next": "^14.1.1",
|
|
63
63
|
"styled-components": "^5.3.3"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@localazy/cli": "^1.7.
|
|
67
|
-
"@parcel/packager-ts": "^2.
|
|
68
|
-
"@parcel/transformer-inline-string": "^2.
|
|
69
|
-
"@parcel/transformer-typescript-types": "^2.
|
|
66
|
+
"@localazy/cli": "^1.7.10",
|
|
67
|
+
"@parcel/packager-ts": "^2.12.0",
|
|
68
|
+
"@parcel/transformer-inline-string": "^2.12.0",
|
|
69
|
+
"@parcel/transformer-typescript-types": "^2.12.0",
|
|
70
70
|
"@types/protoo-client": "^4.0.1",
|
|
71
71
|
"@types/qrcode": "^1.4.2",
|
|
72
|
-
"@types/react": "^18.2
|
|
73
|
-
"@types/react-dom": "^18.0
|
|
72
|
+
"@types/react": "^18.3.2",
|
|
73
|
+
"@types/react-dom": "^18.3.0",
|
|
74
74
|
"@types/react-transition-group": "^4.4.5",
|
|
75
75
|
"@types/styled-components": "^5.1.25",
|
|
76
|
-
"@types/uuid": "^9.0.
|
|
77
|
-
"autoprefixer": "^10.4.
|
|
78
|
-
"buffer": "^
|
|
76
|
+
"@types/uuid": "^9.0.8",
|
|
77
|
+
"autoprefixer": "^10.4.19",
|
|
78
|
+
"buffer": "^6.0.3",
|
|
79
79
|
"eslint": "^8.16.0",
|
|
80
80
|
"eslint-config-prettier": "^8.5.0",
|
|
81
81
|
"eslint-config-react-app": "^7.0.1",
|
|
82
|
-
"parcel": "^2.
|
|
83
|
-
"postcss": "^8.4.
|
|
82
|
+
"parcel": "^2.12.0",
|
|
83
|
+
"postcss": "^8.4.38",
|
|
84
84
|
"prettier": "2.7.1",
|
|
85
85
|
"process": "^0.11.10",
|
|
86
|
-
"tailwindcss": "^3.
|
|
87
|
-
"typescript": "^5.
|
|
86
|
+
"tailwindcss": "^3.4.3",
|
|
87
|
+
"typescript": "^5.4.5"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@hotjar/browser": "^1.0.6",
|
|
91
91
|
"@lottiefiles/react-lottie-player": "^3.5.3",
|
|
92
92
|
"@mediapipe/selfie_segmentation": "^0.1.1632777926",
|
|
93
|
-
"@react-aria/interactions": "^3.13.1",
|
|
94
|
-
"@react-aria/overlays": "^3.12.1",
|
|
95
|
-
"@react-aria/utils": "^3.14.2",
|
|
96
93
|
"@sentry/browser": "^7.0.0",
|
|
97
|
-
"@snapcall/design-system": "^1.
|
|
98
|
-
"@types/youtube": "^0.0.
|
|
94
|
+
"@snapcall/design-system": "^1.18.3",
|
|
95
|
+
"@types/youtube": "^0.0.50",
|
|
99
96
|
"bowser": "^2.11.0",
|
|
100
97
|
"classnames": "^2.3.2",
|
|
101
|
-
"i18next": "^21.9.1",
|
|
102
98
|
"inobounce": "^0.2.1",
|
|
103
|
-
"mediasoup-client": "^3.6.52",
|
|
104
99
|
"protoo-client": "^4.0.6",
|
|
105
100
|
"qrcode": "^1.5.0",
|
|
106
|
-
"react": "^
|
|
107
|
-
"react-aria": "^3.22.0",
|
|
108
|
-
"react-content-loader": "^6.2.0",
|
|
109
|
-
"react-dom": "^18.2.0",
|
|
110
|
-
"react-hook-form": "^7.49.2",
|
|
101
|
+
"react-hook-form": "^7.51.5",
|
|
111
102
|
"react-hot-toast": "^2.2.0",
|
|
112
|
-
"react-i18next": "^11.18.5",
|
|
113
103
|
"react-query": "^3.39.3",
|
|
114
|
-
"react-stately": "^3.
|
|
115
|
-
"react-transition-group": "^4.4.5",
|
|
104
|
+
"react-stately": "^3.31.1",
|
|
116
105
|
"styled-components": "^5.3.3",
|
|
117
106
|
"uuid": "^9.0.0"
|
|
118
107
|
}
|