@snapcall/stream-ui 1.39.3 → 1.41.1
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 +299 -120
- package/dist/stream-ui.js +298 -119
- package/dist/types.d.ts +7 -0
- package/package.json +3 -1
package/dist/types.d.ts
CHANGED
|
@@ -61,6 +61,10 @@ interface Flow {
|
|
|
61
61
|
hideAi: boolean;
|
|
62
62
|
};
|
|
63
63
|
docupass?: boolean;
|
|
64
|
+
kyc?: {
|
|
65
|
+
enabled: boolean;
|
|
66
|
+
required: boolean;
|
|
67
|
+
};
|
|
64
68
|
};
|
|
65
69
|
steps: Array<Step>;
|
|
66
70
|
}
|
|
@@ -98,6 +102,7 @@ interface StreamInfo {
|
|
|
98
102
|
ai_blocked?: boolean;
|
|
99
103
|
hide_stream_invite?: boolean;
|
|
100
104
|
};
|
|
105
|
+
kyc_status?: 'pending' | 'approved' | 'rejected' | null;
|
|
101
106
|
}
|
|
102
107
|
interface InitResult {
|
|
103
108
|
peerId: string;
|
|
@@ -265,10 +270,12 @@ declare class MediaTracksHandler {
|
|
|
265
270
|
audio: Media;
|
|
266
271
|
video: Media;
|
|
267
272
|
isAskingPermissions: boolean;
|
|
273
|
+
firstPermissionRequest: boolean;
|
|
268
274
|
constructor();
|
|
269
275
|
getAudioTrack(): MediaStreamTrack | undefined;
|
|
270
276
|
getVideoTrack(): MediaStreamTrack | undefined;
|
|
271
277
|
requestMediaPermissions(constraints?: MediaStreamConstraints): Promise<void>;
|
|
278
|
+
requestFirstMediaPermissions(constraints?: MediaStreamConstraints): Promise<void>;
|
|
272
279
|
cleanAllStreams(options?: {
|
|
273
280
|
audio: boolean;
|
|
274
281
|
video: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snapcall/stream-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.41.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"main": "dist/stream-ui.js",
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"@parcel/transformer-inline-string": "2.13.0",
|
|
73
73
|
"@parcel/transformer-typescript-types": "2.13.0",
|
|
74
74
|
"@sentry/browser": "^9.34.0",
|
|
75
|
+
"@sumsub/websdk": "^2.5.0",
|
|
75
76
|
"@tailwindcss/postcss": "^4.1.11",
|
|
76
77
|
"@types/protoo-client": "^4.0.4",
|
|
77
78
|
"@types/qrcode": "^1.5.5",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"dependencies": {
|
|
96
97
|
"@mediapipe/selfie_segmentation": "^0.1.1675465747",
|
|
97
98
|
"@snapcall/design-system": "^1.23.3",
|
|
99
|
+
"@sumsub/websdk-react": "^2.5.0",
|
|
98
100
|
"@tanstack/react-query": "^5.81.5",
|
|
99
101
|
"bowser": "^2.11.0",
|
|
100
102
|
"classnames": "^2.5.1",
|