@snapcall/stream-ui 1.15.1 → 1.16.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 +3729 -1071
- package/dist/stream-ui.js +3727 -1069
- package/dist/stream-ui.umd.js +295 -300
- package/dist/types.d.ts +15 -0
- package/package.json +5 -3
package/dist/types.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ interface StreamerState extends PeerState {
|
|
|
53
53
|
roomId: string;
|
|
54
54
|
callId: number | undefined;
|
|
55
55
|
peers: Array<PeerState>;
|
|
56
|
+
joinOptions: JoinOptions;
|
|
56
57
|
}
|
|
57
58
|
interface ProducerData {
|
|
58
59
|
producerId: string;
|
|
@@ -129,6 +130,7 @@ declare class AudioLevel {
|
|
|
129
130
|
getAudioLevelMedian(): number;
|
|
130
131
|
getCurrentAudioLevel(): number;
|
|
131
132
|
analyse(): void;
|
|
133
|
+
clearListeners(): void;
|
|
132
134
|
release(): void;
|
|
133
135
|
static isAPIAvailable(): boolean;
|
|
134
136
|
}
|
|
@@ -236,14 +238,20 @@ declare global {
|
|
|
236
238
|
export type AgentIdentityEvent = SnapcallEvent<{
|
|
237
239
|
success: boolean;
|
|
238
240
|
email?: string;
|
|
241
|
+
name?: string;
|
|
242
|
+
avatarUrl?: string;
|
|
239
243
|
}>;
|
|
240
244
|
export type RecordStoppedEvent = SnapcallEvent<{
|
|
241
245
|
url: string;
|
|
242
246
|
assetId: number;
|
|
243
247
|
}>;
|
|
248
|
+
export type AudioLevelEvent = SnapcallEvent<{
|
|
249
|
+
audioLevel: number;
|
|
250
|
+
}>;
|
|
244
251
|
}
|
|
245
252
|
}
|
|
246
253
|
interface StreamerEventMap {
|
|
254
|
+
audioLevel: SnapCall.AudioLevelEvent['detail'];
|
|
247
255
|
localStartSpeak?: SnapCall.BaseEvent['detail'];
|
|
248
256
|
localStopSpeak?: SnapCall.BaseEvent['detail'];
|
|
249
257
|
leaveRoom: SnapCall.BaseEvent['detail'];
|
|
@@ -335,6 +343,7 @@ declare class StreamerClient extends StreamerEventTargetType implements AudioLev
|
|
|
335
343
|
audioRenderers: Record<string, AudioRenderer>;
|
|
336
344
|
constructor();
|
|
337
345
|
getState(): StreamerState;
|
|
346
|
+
onAudioLevel: (this: any) => void;
|
|
338
347
|
onStartSpeak(): void;
|
|
339
348
|
onStopSpeak(): void;
|
|
340
349
|
generateToken(bid: string): Promise<string>;
|
|
@@ -508,6 +517,7 @@ interface StreamUIBaseOptions {
|
|
|
508
517
|
enabled: boolean;
|
|
509
518
|
defaultMode?: 'photo' | 'video';
|
|
510
519
|
defaultMedia?: 'camera' | 'screen';
|
|
520
|
+
skipOnboarding?: boolean;
|
|
511
521
|
};
|
|
512
522
|
sharedURL?: string;
|
|
513
523
|
audioTiles?: boolean;
|
|
@@ -528,6 +538,11 @@ interface StreamUIBaseOptions {
|
|
|
528
538
|
apiUrl: string;
|
|
529
539
|
tracking?: boolean;
|
|
530
540
|
language?: string;
|
|
541
|
+
showLogin?: {
|
|
542
|
+
enabled: boolean;
|
|
543
|
+
email?: string;
|
|
544
|
+
name?: string;
|
|
545
|
+
};
|
|
531
546
|
}
|
|
532
547
|
interface StreamUIInitOptions extends StreamUIBaseOptions {
|
|
533
548
|
element: HTMLElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snapcall/stream-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"main": "dist/stream-ui.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
27
|
"watch": "parcel watch",
|
|
28
|
-
"serve": "parcel serve --https example/index.html",
|
|
28
|
+
"serve": "parcel serve --https example/index.html --host 0.0.0.0",
|
|
29
29
|
"build": "parcel build",
|
|
30
30
|
"build:npm": "parcel build --no-source-maps",
|
|
31
31
|
"build:s3": "parcel build --no-source-maps --target umd",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@parcel/transformer-typescript-types": "^2.8.3",
|
|
57
57
|
"@types/protoo-client": "^4.0.1",
|
|
58
58
|
"@types/qrcode": "^1.4.2",
|
|
59
|
-
"@types/react": "^18.0
|
|
59
|
+
"@types/react": "^18.2.0",
|
|
60
60
|
"@types/react-dom": "^18.0.10",
|
|
61
61
|
"@types/react-transition-group": "^4.4.5",
|
|
62
62
|
"@types/styled-components": "^5.1.25",
|
|
@@ -75,11 +75,13 @@
|
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@hotjar/browser": "^1.0.6",
|
|
78
|
+
"@lottiefiles/react-lottie-player": "^3.5.3",
|
|
78
79
|
"@mediapipe/selfie_segmentation": "^0.1.1632777926",
|
|
79
80
|
"@react-aria/interactions": "^3.13.1",
|
|
80
81
|
"@react-aria/overlays": "^3.12.1",
|
|
81
82
|
"@react-aria/utils": "^3.14.2",
|
|
82
83
|
"@sentry/browser": "^7.0.0",
|
|
84
|
+
"@snapcall/design-system": "1.14.1",
|
|
83
85
|
"@types/youtube": "^0.0.47",
|
|
84
86
|
"bowser": "^2.11.0",
|
|
85
87
|
"classnames": "^2.3.2",
|