@snapcall/stream-ui 1.16.0 → 1.18.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/types.d.ts CHANGED
@@ -51,6 +51,7 @@ interface PeerState {
51
51
  }
52
52
  interface StreamerState extends PeerState {
53
53
  roomId: string;
54
+ companyId: number;
54
55
  callId: number | undefined;
55
56
  peers: Array<PeerState>;
56
57
  joinOptions: JoinOptions;
@@ -102,6 +103,7 @@ declare global {
102
103
  displaySurface?: ConstrainDOMString;
103
104
  logicalSurface?: ConstrainBoolean;
104
105
  zoom?: number;
106
+ focusMode?: FocusMode[number];
105
107
  }
106
108
  interface MediaTrackCapabilities {
107
109
  zoom: {
@@ -109,6 +111,7 @@ declare global {
109
111
  max: number;
110
112
  step: number;
111
113
  };
114
+ focusMode?: FocusMode;
112
115
  }
113
116
  interface HTMLMediaElement {
114
117
  sinkId?: string;
@@ -144,9 +147,6 @@ declare class AudioRenderer {
144
147
  getSink(): string | undefined;
145
148
  play(): Promise<void>;
146
149
  }
147
- interface CaptureVideoOptions {
148
- addPlayWatermark: boolean;
149
- }
150
150
  interface MediapipeOptions {
151
151
  type: 'blur' | 'background';
152
152
  fillColor?: string;
@@ -327,6 +327,7 @@ declare class StreamerClient extends StreamerEventTargetType implements AudioLev
327
327
  audioLevel: AudioLevel | undefined;
328
328
  muted: boolean;
329
329
  roomId: string;
330
+ companyId: number;
330
331
  peerId: PeerId;
331
332
  profile: Profile;
332
333
  protooTransport: protooClient.WebSocketTransport;
@@ -406,7 +407,7 @@ declare class StreamerClient extends StreamerEventTargetType implements AudioLev
406
407
  assetId: number;
407
408
  }>;
408
409
  deleteCapture(assetId: number): Promise<number>;
409
- captureVideo(videoElement?: HTMLVideoElement, option?: CaptureVideoOptions): Promise<string>;
410
+ captureVideo(videoElement?: HTMLVideoElement): Promise<string>;
410
411
  requestLocalVideo(element: HTMLVideoElement): {
411
412
  facingMode: string;
412
413
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapcall/stream-ui",
3
- "version": "1.16.0",
3
+ "version": "1.18.0",
4
4
  "description": "",
5
5
  "source": "src/index.tsx",
6
6
  "main": "dist/stream-ui.js",
@@ -81,7 +81,7 @@
81
81
  "@react-aria/overlays": "^3.12.1",
82
82
  "@react-aria/utils": "^3.14.2",
83
83
  "@sentry/browser": "^7.0.0",
84
- "@snapcall/design-system": "1.14.1",
84
+ "@snapcall/design-system": "^1.14.4",
85
85
  "@types/youtube": "^0.0.47",
86
86
  "bowser": "^2.11.0",
87
87
  "classnames": "^2.3.2",
@@ -94,6 +94,7 @@
94
94
  "react-aria": "^3.22.0",
95
95
  "react-content-loader": "^6.2.0",
96
96
  "react-dom": "^18.2.0",
97
+ "react-hook-form": "^7.49.2",
97
98
  "react-hot-toast": "^2.2.0",
98
99
  "react-i18next": "^11.18.5",
99
100
  "react-query": "^3.39.3",