@snapcall/stream-ui 1.17.0 → 1.18.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 +362 -424
- package/dist/stream-ui.js +363 -424
- package/dist/stream-ui.umd.js +78 -131
- package/dist/{timer.d0b8fda2.js → timer.13350a18.js} +1 -1
- package/dist/{timer.7144fe82.js → timer.2e23031c.js} +1 -1
- package/dist/timer.ed477f04.js +1 -0
- package/dist/types.d.ts +5 -9
- package/package.json +8 -7
- package/dist/timer.2f4f9ac0.js +0 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/ // @ts-ignore
|
|
5
5
|
let $febe13af234b7734$var$interval;
|
|
6
6
|
self.onmessage = (event)=>{
|
|
7
|
-
const { action: action
|
|
7
|
+
const { action: action, params: params } = event.data;
|
|
8
8
|
if (action === "start") {
|
|
9
9
|
if ($febe13af234b7734$var$interval) clearInterval($febe13af234b7734$var$interval);
|
|
10
10
|
$febe13af234b7734$var$interval = self.setInterval(()=>{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/ // @ts-ignore
|
|
6
6
|
let $7df5a1066adc9830$var$interval;
|
|
7
7
|
self.onmessage = (event)=>{
|
|
8
|
-
const { action: action
|
|
8
|
+
const { action: action, params: params } = event.data;
|
|
9
9
|
if (action === "start") {
|
|
10
10
|
if ($7df5a1066adc9830$var$interval) clearInterval($7df5a1066adc9830$var$interval);
|
|
11
11
|
$7df5a1066adc9830$var$interval = self.setInterval(()=>{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e;self.onmessage=a=>{let{action:s,params:t}=a.data;"start"===s&&(e&&clearInterval(e),e=self.setInterval(()=>{self.postMessage("time")},1e3/t))};
|
package/dist/types.d.ts
CHANGED
|
@@ -103,6 +103,7 @@ declare global {
|
|
|
103
103
|
displaySurface?: ConstrainDOMString;
|
|
104
104
|
logicalSurface?: ConstrainBoolean;
|
|
105
105
|
zoom?: number;
|
|
106
|
+
focusMode?: FocusMode[number];
|
|
106
107
|
}
|
|
107
108
|
interface MediaTrackCapabilities {
|
|
108
109
|
zoom: {
|
|
@@ -110,6 +111,7 @@ declare global {
|
|
|
110
111
|
max: number;
|
|
111
112
|
step: number;
|
|
112
113
|
};
|
|
114
|
+
focusMode?: FocusMode;
|
|
113
115
|
}
|
|
114
116
|
interface HTMLMediaElement {
|
|
115
117
|
sinkId?: string;
|
|
@@ -145,9 +147,6 @@ declare class AudioRenderer {
|
|
|
145
147
|
getSink(): string | undefined;
|
|
146
148
|
play(): Promise<void>;
|
|
147
149
|
}
|
|
148
|
-
interface CaptureVideoOptions {
|
|
149
|
-
addPlayWatermark: boolean;
|
|
150
|
-
}
|
|
151
150
|
interface MediapipeOptions {
|
|
152
151
|
type: 'blur' | 'background';
|
|
153
152
|
fillColor?: string;
|
|
@@ -403,12 +402,8 @@ declare class StreamerClient extends StreamerEventTargetType implements AudioLev
|
|
|
403
402
|
url: string;
|
|
404
403
|
assetId: number;
|
|
405
404
|
}>;
|
|
406
|
-
saveThumbnail(base64Image: string): Promise<{
|
|
407
|
-
url: string;
|
|
408
|
-
assetId: number;
|
|
409
|
-
}>;
|
|
410
405
|
deleteCapture(assetId: number): Promise<number>;
|
|
411
|
-
captureVideo(videoElement?: HTMLVideoElement
|
|
406
|
+
captureVideo(videoElement?: HTMLVideoElement): Promise<string>;
|
|
412
407
|
requestLocalVideo(element: HTMLVideoElement): {
|
|
413
408
|
facingMode: string;
|
|
414
409
|
};
|
|
@@ -537,7 +532,7 @@ interface StreamUIBaseOptions {
|
|
|
537
532
|
showMenuButton?: boolean;
|
|
538
533
|
GDPRDisclaimer?: boolean;
|
|
539
534
|
streamApiURL?: string;
|
|
540
|
-
apiUrl
|
|
535
|
+
apiUrl?: string;
|
|
541
536
|
tracking?: boolean;
|
|
542
537
|
language?: string;
|
|
543
538
|
showLogin?: {
|
|
@@ -563,6 +558,7 @@ declare global {
|
|
|
563
558
|
interface MediaSession {
|
|
564
559
|
setMicrophoneActive?: (active: boolean) => void;
|
|
565
560
|
setCameraActive?: (active: boolean) => void;
|
|
561
|
+
setActionHandler(action: MediaSessionAction | 'togglemicrophone' | 'togglecamera' | 'hangup', handler: MediaSessionActionHandler | null): void;
|
|
566
562
|
}
|
|
567
563
|
interface HTMLAudioElement {
|
|
568
564
|
setSinkId?: (sinkId: string) => Promise<undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snapcall/stream-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"main": "dist/stream-ui.js",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"license": "ISC",
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@sentry/browser": "^7.0.0",
|
|
41
|
+
"@snapcall/design-system": "^1.15.1",
|
|
41
42
|
"bowser": "^2.11.0",
|
|
42
43
|
"i18next": "^21.9.1",
|
|
43
44
|
"inobounce": "^0.2.1",
|
|
@@ -51,9 +52,9 @@
|
|
|
51
52
|
"styled-components": "^5.3.3"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
|
-
"@parcel/packager-ts": "^2.
|
|
55
|
-
"@parcel/transformer-inline-string": "^2.
|
|
56
|
-
"@parcel/transformer-typescript-types": "^2.
|
|
55
|
+
"@parcel/packager-ts": "^2.11.0",
|
|
56
|
+
"@parcel/transformer-inline-string": "^2.11.0",
|
|
57
|
+
"@parcel/transformer-typescript-types": "^2.11.0",
|
|
57
58
|
"@types/protoo-client": "^4.0.1",
|
|
58
59
|
"@types/qrcode": "^1.4.2",
|
|
59
60
|
"@types/react": "^18.2.0",
|
|
@@ -66,12 +67,12 @@
|
|
|
66
67
|
"eslint": "^8.16.0",
|
|
67
68
|
"eslint-config-prettier": "^8.5.0",
|
|
68
69
|
"eslint-config-react-app": "^7.0.1",
|
|
69
|
-
"parcel": "^2.
|
|
70
|
+
"parcel": "^2.11.0",
|
|
70
71
|
"postcss": "^8.4.21",
|
|
71
72
|
"prettier": "2.7.1",
|
|
72
73
|
"process": "^0.11.10",
|
|
73
74
|
"tailwindcss": "^3.2.4",
|
|
74
|
-
"typescript": "^
|
|
75
|
+
"typescript": "^5.3.3"
|
|
75
76
|
},
|
|
76
77
|
"dependencies": {
|
|
77
78
|
"@hotjar/browser": "^1.0.6",
|
|
@@ -81,7 +82,7 @@
|
|
|
81
82
|
"@react-aria/overlays": "^3.12.1",
|
|
82
83
|
"@react-aria/utils": "^3.14.2",
|
|
83
84
|
"@sentry/browser": "^7.0.0",
|
|
84
|
-
"@snapcall/design-system": "^1.
|
|
85
|
+
"@snapcall/design-system": "^1.15.1",
|
|
85
86
|
"@types/youtube": "^0.0.47",
|
|
86
87
|
"bowser": "^2.11.0",
|
|
87
88
|
"classnames": "^2.3.2",
|
package/dist/timer.2f4f9ac0.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{let e;self.onmessage=s=>{const{action:a,params:t}=s.data;"start"===a&&(e&&clearInterval(e),e=self.setInterval((()=>{self.postMessage("time")}),1e3/t))}})();
|