@stream-io/video-client 0.3.7 → 0.3.9

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.
@@ -2,11 +2,11 @@ import { AxiosRequestConfig, AxiosResponse } from 'axios';
2
2
  import { StableWSConnection } from './connection';
3
3
  import { ConnectedEvent, UserRequest, VideoEvent } from '../../gen/coordinator';
4
4
  export type UR = Record<string, unknown>;
5
- export type User = (UserRequest & {
5
+ export type User = (Omit<UserRequest, 'role'> & {
6
6
  type?: 'authenticated';
7
- }) | (UserRequest & {
7
+ }) | (Omit<UserRequest, 'role'> & {
8
8
  type: 'guest';
9
- }) | (Omit<UserRequest, 'id'> & {
9
+ }) | (Omit<UserRequest, 'id' | 'role'> & {
10
10
  id?: '!anon';
11
11
  type: 'anonymous';
12
12
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "0.3.7";
1
+ export declare const version = "0.3.9";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/video-client",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "packageManager": "yarn@3.2.4",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
package/src/Call.ts CHANGED
@@ -1120,6 +1120,12 @@ export class Call {
1120
1120
  const participants = this.state.updateParticipants(
1121
1121
  Object.entries(changes).reduce<StreamVideoParticipantPatches>(
1122
1122
  (acc, [sessionId, change]) => {
1123
+ if (change.dimension?.height) {
1124
+ change.dimension.height = Math.ceil(change.dimension.height);
1125
+ }
1126
+ if (change.dimension?.width) {
1127
+ change.dimension.width = Math.ceil(change.dimension.width);
1128
+ }
1123
1129
  const prop: keyof StreamVideoParticipant | undefined =
1124
1130
  kind === 'video'
1125
1131
  ? 'videoDimension'
@@ -5,9 +5,9 @@ import { ConnectedEvent, UserRequest, VideoEvent } from '../../gen/coordinator';
5
5
  export type UR = Record<string, unknown>;
6
6
 
7
7
  export type User =
8
- | (UserRequest & { type?: 'authenticated' })
9
- | (UserRequest & { type: 'guest' })
10
- | (Omit<UserRequest, 'id'> & {
8
+ | (Omit<UserRequest, 'role'> & { type?: 'authenticated' })
9
+ | (Omit<UserRequest, 'role'> & { type: 'guest' })
10
+ | (Omit<UserRequest, 'id' | 'role'> & {
11
11
  id?: '!anon';
12
12
  type: 'anonymous';
13
13
  });