@100mslive/roomkit-react 0.3.35-alpha.1 → 0.3.35-alpha.2

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.
@@ -3566,7 +3566,7 @@
3566
3566
  "format": "esm"
3567
3567
  },
3568
3568
  "src/Prebuilt/components/Leave/LeaveSessionContent.tsx": {
3569
- "bytes": 1786,
3569
+ "bytes": 1828,
3570
3570
  "imports": [
3571
3571
  {
3572
3572
  "path": "react",
@@ -3607,7 +3607,7 @@
3607
3607
  "format": "esm"
3608
3608
  },
3609
3609
  "src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx": {
3610
- "bytes": 6358,
3610
+ "bytes": 6400,
3611
3611
  "imports": [
3612
3612
  {
3613
3613
  "path": "react",
@@ -3688,7 +3688,7 @@
3688
3688
  "format": "esm"
3689
3689
  },
3690
3690
  "src/Prebuilt/components/Leave/MwebLeaveRoom.tsx": {
3691
- "bytes": 5205,
3691
+ "bytes": 5247,
3692
3692
  "imports": [
3693
3693
  {
3694
3694
  "path": "react",
@@ -3774,7 +3774,7 @@
3774
3774
  "format": "esm"
3775
3775
  },
3776
3776
  "src/Prebuilt/components/Leave/LeaveRoom.tsx": {
3777
- "bytes": 2785,
3777
+ "bytes": 2861,
3778
3778
  "imports": [
3779
3779
  {
3780
3780
  "path": "react",
@@ -11311,7 +11311,7 @@
11311
11311
  ],
11312
11312
  "format": "esm"
11313
11313
  },
11314
- "../../../../../../../tmp/tmp-3000-xtZndqrP5pXx/196f69b17e62/tldraw.css": {
11314
+ "../../../../../../../tmp/tmp-3074-f5sHCU9CaD7X/19710e5cc8c3/tldraw.css": {
11315
11315
  "bytes": 80111,
11316
11316
  "imports": [
11317
11317
  {
@@ -11361,7 +11361,7 @@
11361
11361
  }
11362
11362
  ]
11363
11363
  },
11364
- "../../../../../../../tmp/tmp-3000-xtZndqrP5pXx/196f69b177d0/index.css": {
11364
+ "../../../../../../../tmp/tmp-3074-f5sHCU9CaD7X/19710e5cc711/index.css": {
11365
11365
  "bytes": 597,
11366
11366
  "imports": [
11367
11367
  {
@@ -11370,7 +11370,7 @@
11370
11370
  "external": true
11371
11371
  },
11372
11372
  {
11373
- "path": "../../../../../../../tmp/tmp-3000-xtZndqrP5pXx/196f69b17e62/tldraw.css",
11373
+ "path": "../../../../../../../tmp/tmp-3074-f5sHCU9CaD7X/19710e5cc8c3/tldraw.css",
11374
11374
  "kind": "import-rule",
11375
11375
  "original": "@tldraw/tldraw/tldraw.css"
11376
11376
  }
@@ -11445,7 +11445,7 @@
11445
11445
  "original": "../../common/constants"
11446
11446
  },
11447
11447
  {
11448
- "path": "../../../../../../../tmp/tmp-3000-xtZndqrP5pXx/196f69b177d0/index.css",
11448
+ "path": "../../../../../../../tmp/tmp-3074-f5sHCU9CaD7X/19710e5cc711/index.css",
11449
11449
  "kind": "import-statement",
11450
11450
  "original": "@100mslive/hms-whiteboard/index.css"
11451
11451
  },
@@ -15709,7 +15709,7 @@
15709
15709
  "imports": [],
15710
15710
  "exports": [],
15711
15711
  "inputs": {},
15712
- "bytes": 3628643
15712
+ "bytes": 3628930
15713
15713
  },
15714
15714
  "dist/index.cjs.js": {
15715
15715
  "imports": [
@@ -19042,7 +19042,7 @@
19042
19042
  "cssBundle": "dist/index.cjs.css",
19043
19043
  "inputs": {
19044
19044
  "<define:process.env>": {
19045
- "bytesInOutput": 18087
19045
+ "bytesInOutput": 18088
19046
19046
  },
19047
19047
  "../../node_modules/lodash/lodash.js": {
19048
19048
  "bytesInOutput": 224296
@@ -19447,10 +19447,10 @@
19447
19447
  "bytesInOutput": 7201
19448
19448
  },
19449
19449
  "src/Prebuilt/components/Leave/LeaveRoom.tsx": {
19450
- "bytesInOutput": 2590
19450
+ "bytesInOutput": 2635
19451
19451
  },
19452
19452
  "src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx": {
19453
- "bytesInOutput": 6304
19453
+ "bytesInOutput": 6324
19454
19454
  },
19455
19455
  "src/Prebuilt/components/Leave/EndSessionContent.tsx": {
19456
19456
  "bytesInOutput": 2134
@@ -19462,10 +19462,10 @@
19462
19462
  "bytesInOutput": 749
19463
19463
  },
19464
19464
  "src/Prebuilt/components/Leave/LeaveSessionContent.tsx": {
19465
- "bytesInOutput": 1947
19465
+ "bytesInOutput": 1967
19466
19466
  },
19467
19467
  "src/Prebuilt/components/Leave/MwebLeaveRoom.tsx": {
19468
- "bytesInOutput": 5210
19468
+ "bytesInOutput": 5230
19469
19469
  },
19470
19470
  "src/Prebuilt/components/MoreSettings/MoreSettings.tsx": {
19471
19471
  "bytesInOutput": 540
@@ -19920,7 +19920,7 @@
19920
19920
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19921
19921
  "bytesInOutput": 3051
19922
19922
  },
19923
- "../../../../../../../tmp/tmp-3000-xtZndqrP5pXx/196f69b177d0/index.css": {
19923
+ "../../../../../../../tmp/tmp-3074-f5sHCU9CaD7X/19710e5cc711/index.css": {
19924
19924
  "bytesInOutput": 0
19925
19925
  },
19926
19926
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -20155,7 +20155,7 @@
20155
20155
  "bytesInOutput": 2777
20156
20156
  }
20157
20157
  },
20158
- "bytes": 1505355
20158
+ "bytes": 1505461
20159
20159
  },
20160
20160
  "dist/index.cjs.css.map": {
20161
20161
  "imports": [],
@@ -20217,10 +20217,10 @@
20217
20217
  }
20218
20218
  ],
20219
20219
  "inputs": {
20220
- "../../../../../../../tmp/tmp-3000-xtZndqrP5pXx/196f69b17e62/tldraw.css": {
20220
+ "../../../../../../../tmp/tmp-3074-f5sHCU9CaD7X/19710e5cc8c3/tldraw.css": {
20221
20221
  "bytesInOutput": 75223
20222
20222
  },
20223
- "../../../../../../../tmp/tmp-3000-xtZndqrP5pXx/196f69b177d0/index.css": {
20223
+ "../../../../../../../tmp/tmp-3074-f5sHCU9CaD7X/19710e5cc711/index.css": {
20224
20224
  "bytesInOutput": 401
20225
20225
  }
20226
20226
  },
@@ -3566,7 +3566,7 @@
3566
3566
  "format": "esm"
3567
3567
  },
3568
3568
  "src/Prebuilt/components/Leave/LeaveSessionContent.tsx": {
3569
- "bytes": 1786,
3569
+ "bytes": 1828,
3570
3570
  "imports": [
3571
3571
  {
3572
3572
  "path": "react",
@@ -3607,7 +3607,7 @@
3607
3607
  "format": "esm"
3608
3608
  },
3609
3609
  "src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx": {
3610
- "bytes": 6358,
3610
+ "bytes": 6400,
3611
3611
  "imports": [
3612
3612
  {
3613
3613
  "path": "react",
@@ -3688,7 +3688,7 @@
3688
3688
  "format": "esm"
3689
3689
  },
3690
3690
  "src/Prebuilt/components/Leave/MwebLeaveRoom.tsx": {
3691
- "bytes": 5205,
3691
+ "bytes": 5247,
3692
3692
  "imports": [
3693
3693
  {
3694
3694
  "path": "react",
@@ -3774,7 +3774,7 @@
3774
3774
  "format": "esm"
3775
3775
  },
3776
3776
  "src/Prebuilt/components/Leave/LeaveRoom.tsx": {
3777
- "bytes": 2785,
3777
+ "bytes": 2861,
3778
3778
  "imports": [
3779
3779
  {
3780
3780
  "path": "react",
@@ -11311,7 +11311,7 @@
11311
11311
  ],
11312
11312
  "format": "esm"
11313
11313
  },
11314
- "../../../../../../../tmp/tmp-3000-WASiMslyPwB5/196f69b17e63/tldraw.css": {
11314
+ "../../../../../../../tmp/tmp-3074-dDDIl6zOHExB/19710e5cc8b2/tldraw.css": {
11315
11315
  "bytes": 80111,
11316
11316
  "imports": [
11317
11317
  {
@@ -11361,7 +11361,7 @@
11361
11361
  }
11362
11362
  ]
11363
11363
  },
11364
- "../../../../../../../tmp/tmp-3000-WASiMslyPwB5/196f69b17811/index.css": {
11364
+ "../../../../../../../tmp/tmp-3074-dDDIl6zOHExB/19710e5cc120/index.css": {
11365
11365
  "bytes": 597,
11366
11366
  "imports": [
11367
11367
  {
@@ -11370,7 +11370,7 @@
11370
11370
  "external": true
11371
11371
  },
11372
11372
  {
11373
- "path": "../../../../../../../tmp/tmp-3000-WASiMslyPwB5/196f69b17e63/tldraw.css",
11373
+ "path": "../../../../../../../tmp/tmp-3074-dDDIl6zOHExB/19710e5cc8b2/tldraw.css",
11374
11374
  "kind": "import-rule",
11375
11375
  "original": "@tldraw/tldraw/tldraw.css"
11376
11376
  }
@@ -11445,7 +11445,7 @@
11445
11445
  "original": "../../common/constants"
11446
11446
  },
11447
11447
  {
11448
- "path": "../../../../../../../tmp/tmp-3000-WASiMslyPwB5/196f69b17811/index.css",
11448
+ "path": "../../../../../../../tmp/tmp-3074-dDDIl6zOHExB/19710e5cc120/index.css",
11449
11449
  "kind": "import-statement",
11450
11450
  "original": "@100mslive/hms-whiteboard/index.css"
11451
11451
  },
@@ -15709,7 +15709,7 @@
15709
15709
  "imports": [],
15710
15710
  "exports": [],
15711
15711
  "inputs": {},
15712
- "bytes": 3668586
15712
+ "bytes": 3668873
15713
15713
  },
15714
15714
  "dist/index.js": {
15715
15715
  "imports": [
@@ -19108,7 +19108,7 @@
19108
19108
  "cssBundle": "dist/index.css",
19109
19109
  "inputs": {
19110
19110
  "<define:process.env>": {
19111
- "bytesInOutput": 18087
19111
+ "bytesInOutput": 18088
19112
19112
  },
19113
19113
  "../../node_modules/lodash/lodash.js": {
19114
19114
  "bytesInOutput": 224291
@@ -19513,10 +19513,10 @@
19513
19513
  "bytesInOutput": 7108
19514
19514
  },
19515
19515
  "src/Prebuilt/components/Leave/LeaveRoom.tsx": {
19516
- "bytesInOutput": 2526
19516
+ "bytesInOutput": 2571
19517
19517
  },
19518
19518
  "src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx": {
19519
- "bytesInOutput": 5773
19519
+ "bytesInOutput": 5793
19520
19520
  },
19521
19521
  "src/Prebuilt/components/Leave/EndSessionContent.tsx": {
19522
19522
  "bytesInOutput": 1947
@@ -19528,10 +19528,10 @@
19528
19528
  "bytesInOutput": 655
19529
19529
  },
19530
19530
  "src/Prebuilt/components/Leave/LeaveSessionContent.tsx": {
19531
- "bytesInOutput": 1783
19531
+ "bytesInOutput": 1803
19532
19532
  },
19533
19533
  "src/Prebuilt/components/Leave/MwebLeaveRoom.tsx": {
19534
- "bytesInOutput": 4835
19534
+ "bytesInOutput": 4855
19535
19535
  },
19536
19536
  "src/Prebuilt/components/MoreSettings/MoreSettings.tsx": {
19537
19537
  "bytesInOutput": 474
@@ -19986,7 +19986,7 @@
19986
19986
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19987
19987
  "bytesInOutput": 2830
19988
19988
  },
19989
- "../../../../../../../tmp/tmp-3000-WASiMslyPwB5/196f69b17811/index.css": {
19989
+ "../../../../../../../tmp/tmp-3074-dDDIl6zOHExB/19710e5cc120/index.css": {
19990
19990
  "bytesInOutput": 0
19991
19991
  },
19992
19992
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -20221,7 +20221,7 @@
20221
20221
  "bytesInOutput": 2632
20222
20222
  }
20223
20223
  },
20224
- "bytes": 1450432
20224
+ "bytes": 1450538
20225
20225
  },
20226
20226
  "dist/index.css.map": {
20227
20227
  "imports": [],
@@ -20283,10 +20283,10 @@
20283
20283
  }
20284
20284
  ],
20285
20285
  "inputs": {
20286
- "../../../../../../../tmp/tmp-3000-WASiMslyPwB5/196f69b17e63/tldraw.css": {
20286
+ "../../../../../../../tmp/tmp-3074-dDDIl6zOHExB/19710e5cc8b2/tldraw.css": {
20287
20287
  "bytesInOutput": 75223
20288
20288
  },
20289
- "../../../../../../../tmp/tmp-3000-WASiMslyPwB5/196f69b17811/index.css": {
20289
+ "../../../../../../../tmp/tmp-3074-dDDIl6zOHExB/19710e5cc120/index.css": {
20290
20290
  "bytesInOutput": 401
20291
20291
  }
20292
20292
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.35-alpha.1",
13
+ "version": "0.3.35-alpha.2",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -75,12 +75,12 @@
75
75
  "react": ">=17.0.2 <19.0.0"
76
76
  },
77
77
  "dependencies": {
78
- "@100mslive/hls-player": "0.3.35-alpha.1",
78
+ "@100mslive/hls-player": "0.3.35-alpha.2",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.35-alpha.1",
81
- "@100mslive/hms-whiteboard": "0.0.25-alpha.1",
82
- "@100mslive/react-icons": "0.10.35-alpha.1",
83
- "@100mslive/react-sdk": "0.10.35-alpha.1",
80
+ "@100mslive/hms-virtual-background": "1.13.35-alpha.2",
81
+ "@100mslive/hms-whiteboard": "0.0.25-alpha.2",
82
+ "@100mslive/react-icons": "0.10.35-alpha.2",
83
+ "@100mslive/react-sdk": "0.10.35-alpha.2",
84
84
  "@100mslive/types-prebuilt": "0.12.12",
85
85
  "@emoji-mart/data": "^1.0.6",
86
86
  "@emoji-mart/react": "^1.0.1",
@@ -117,5 +117,5 @@
117
117
  "uuid": "^8.3.2",
118
118
  "worker-timers": "^7.0.40"
119
119
  },
120
- "gitHead": "d2c9441291a1e7212cc4259ea40490c89f64e536"
120
+ "gitHead": "910eda50625873fb63110ebc7401b3bd8b7e6fa6"
121
121
  }
@@ -19,7 +19,7 @@ export const DesktopLeaveRoom = ({
19
19
  endRoom,
20
20
  container,
21
21
  }: {
22
- leaveRoom: (options?: { endStream?: boolean }) => Promise<void>;
22
+ leaveRoom: (options?: { endStream?: boolean; sendReason?: boolean }) => Promise<void>;
23
23
  screenType: keyof ConferencingScreen;
24
24
  endRoom: () => Promise<void>;
25
25
  container?: HTMLElement;
@@ -90,7 +90,7 @@ export const DesktopLeaveRoom = ({
90
90
  bg=""
91
91
  titleColor="$on_surface_high"
92
92
  icon={<ExitIcon height={24} width={24} style={{ transform: 'rotate(180deg)' }} />}
93
- onClick={async () => await leaveRoom()}
93
+ onClick={async () => await leaveRoom({ sendReason: true })}
94
94
  css={{ p: '$8 $4' }}
95
95
  />
96
96
  </Dropdown.Item>
@@ -59,9 +59,11 @@ export const LeaveRoom = ({
59
59
  await hmsActions.endRoom(false, 'End Room');
60
60
  };
61
61
 
62
- const leaveRoom = async (options: { endStream?: boolean } = { endStream: false }) => {
62
+ const leaveRoom = async (
63
+ options: { endStream?: boolean; sendReason?: boolean } = { endStream: false, sendReason: false },
64
+ ) => {
63
65
  if (options.endStream || (hlsState.running && peersWithStreamingRights.length === 1)) {
64
- await stopStream('last publisher left');
66
+ await stopStream(options.sendReason ? 'last publisher left' : '');
65
67
  }
66
68
  await hmsActions.leave();
67
69
  };
@@ -10,7 +10,7 @@ export const LeaveSessionContent = ({
10
10
  isModal = false,
11
11
  }: {
12
12
  setShowLeaveRoomAlert: (value: boolean) => void;
13
- leaveRoom: (options?: { endStream?: boolean }) => Promise<void>;
13
+ leaveRoom: (options?: { endStream?: boolean; sendReason?: boolean }) => Promise<void>;
14
14
  isModal?: boolean;
15
15
  }) => {
16
16
  return (
@@ -48,7 +48,7 @@ export const LeaveSessionContent = ({
48
48
  variant="danger"
49
49
  css={{ w: '100%' }}
50
50
  onClick={async () => {
51
- await leaveRoom();
51
+ await leaveRoom({ sendReason: true });
52
52
  }}
53
53
  id="leaveRoom"
54
54
  data-testid="leave_room"
@@ -21,7 +21,7 @@ export const MwebLeaveRoom = ({
21
21
  endRoom,
22
22
  container,
23
23
  }: {
24
- leaveRoom: (options?: { endStream?: boolean }) => Promise<void>;
24
+ leaveRoom: (options?: { endStream?: boolean; sendReason?: boolean }) => Promise<void>;
25
25
  endRoom: () => Promise<void>;
26
26
  container?: HTMLElement;
27
27
  }) => {
@@ -61,7 +61,7 @@ export const MwebLeaveRoom = ({
61
61
  bg="$surface_default"
62
62
  titleColor="$on_surface_high"
63
63
  icon={<ExitIcon height={24} width={24} style={{ transform: 'rotate(180deg)' }} />}
64
- onClick={async () => await leaveRoom()}
64
+ onClick={async () => await leaveRoom({ sendReason: true })}
65
65
  css={{ pt: 0, mt: '$10', color: '$on_surface_low', '&:hover': { color: '$on_surface_high' } }}
66
66
  />
67
67