@100mslive/roomkit-react 0.1.11-alpha.2 → 0.1.12-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -61,7 +61,7 @@ import {
61
61
  theme,
62
62
  useBorderAudioLevel,
63
63
  useTheme
64
- } from "./chunk-I3J4WTJM.js";
64
+ } from "./chunk-OYSYEA6R.js";
65
65
  export {
66
66
  Accordion,
67
67
  AudioLevel,
@@ -26,7 +26,7 @@
26
26
  "format": "esm"
27
27
  },
28
28
  "src/Theme/stitches.config.ts": {
29
- "bytes": 2170,
29
+ "bytes": 2219,
30
30
  "imports": [
31
31
  {
32
32
  "path": "@stitches/react",
@@ -38,6 +38,11 @@
38
38
  "kind": "import-statement",
39
39
  "external": true
40
40
  },
41
+ {
42
+ "path": "uuid",
43
+ "kind": "import-statement",
44
+ "external": true
45
+ },
41
46
  {
42
47
  "path": "src/Theme/base.config.ts",
43
48
  "kind": "import-statement",
@@ -2649,7 +2654,7 @@
2649
2654
  "format": "esm"
2650
2655
  },
2651
2656
  "src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx": {
2652
- "bytes": 6166,
2657
+ "bytes": 6195,
2653
2658
  "imports": [
2654
2659
  {
2655
2660
  "path": "react",
@@ -2792,7 +2797,7 @@
2792
2797
  "format": "esm"
2793
2798
  },
2794
2799
  "src/Prebuilt/components/Leave/MwebLeaveRoom.tsx": {
2795
- "bytes": 4628,
2800
+ "bytes": 4657,
2796
2801
  "imports": [
2797
2802
  {
2798
2803
  "path": "react",
@@ -4409,7 +4414,7 @@
4409
4414
  "format": "cjs"
4410
4415
  },
4411
4416
  "../hms-video-web/dist/index.js": {
4412
- "bytes": 254752,
4417
+ "bytes": 254555,
4413
4418
  "imports": [
4414
4419
  {
4415
4420
  "path": "uuid",
@@ -11094,7 +11099,7 @@
11094
11099
  "imports": [],
11095
11100
  "exports": [],
11096
11101
  "inputs": {},
11097
- "bytes": 2033464
11102
+ "bytes": 2033204
11098
11103
  },
11099
11104
  "dist/index.cjs.js": {
11100
11105
  "imports": [
@@ -11113,6 +11118,11 @@
11113
11118
  "kind": "require-call",
11114
11119
  "external": true
11115
11120
  },
11121
+ {
11122
+ "path": "uuid",
11123
+ "kind": "require-call",
11124
+ "external": true
11125
+ },
11116
11126
  {
11117
11127
  "path": "react",
11118
11128
  "kind": "require-call",
@@ -13433,13 +13443,13 @@
13433
13443
  "entryPoint": "src/index.ts",
13434
13444
  "inputs": {
13435
13445
  "<define:process.env>": {
13436
- "bytesInOutput": 18611
13446
+ "bytesInOutput": 18620
13437
13447
  },
13438
13448
  "src/Theme/base.config.ts": {
13439
13449
  "bytesInOutput": 6104
13440
13450
  },
13441
13451
  "src/Theme/stitches.config.ts": {
13442
- "bytesInOutput": 2282
13452
+ "bytesInOutput": 2355
13443
13453
  },
13444
13454
  "src/Theme/useSSR.tsx": {
13445
13455
  "bytesInOutput": 638
@@ -13727,7 +13737,7 @@
13727
13737
  "bytesInOutput": 3794
13728
13738
  },
13729
13739
  "src/Prebuilt/components/Toast/ToastManager.js": {
13730
- "bytesInOutput": 1356
13740
+ "bytesInOutput": 1359
13731
13741
  },
13732
13742
  "src/Prebuilt/components/AudioVideoToggle.jsx": {
13733
13743
  "bytesInOutput": 6734
@@ -13754,7 +13764,7 @@
13754
13764
  "bytesInOutput": 2361
13755
13765
  },
13756
13766
  "src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx": {
13757
- "bytesInOutput": 7066
13767
+ "bytesInOutput": 7127
13758
13768
  },
13759
13769
  "src/Sheet/Sheet.tsx": {
13760
13770
  "bytesInOutput": 3505
@@ -13763,7 +13773,7 @@
13763
13773
  "bytesInOutput": 128
13764
13774
  },
13765
13775
  "src/Prebuilt/components/Leave/MwebLeaveRoom.tsx": {
13766
- "bytesInOutput": 5293
13776
+ "bytesInOutput": 5354
13767
13777
  },
13768
13778
  "src/Prebuilt/components/Leave/LeaveRoom.tsx": {
13769
13779
  "bytesInOutput": 2672
@@ -13904,7 +13914,7 @@
13904
13914
  "bytesInOutput": 615
13905
13915
  },
13906
13916
  "../hms-video-web/dist/index.js": {
13907
- "bytesInOutput": 35584
13917
+ "bytesInOutput": 35586
13908
13918
  },
13909
13919
  "src/Prebuilt/common/utils.js": {
13910
13920
  "bytesInOutput": 2911
@@ -14339,7 +14349,7 @@
14339
14349
  "bytesInOutput": 2930
14340
14350
  }
14341
14351
  },
14342
- "bytes": 1106040
14352
+ "bytes": 1106249
14343
14353
  }
14344
14354
  }
14345
14355
  }
@@ -26,7 +26,7 @@
26
26
  "format": "esm"
27
27
  },
28
28
  "src/Theme/stitches.config.ts": {
29
- "bytes": 2170,
29
+ "bytes": 2219,
30
30
  "imports": [
31
31
  {
32
32
  "path": "@stitches/react",
@@ -38,6 +38,11 @@
38
38
  "kind": "import-statement",
39
39
  "external": true
40
40
  },
41
+ {
42
+ "path": "uuid",
43
+ "kind": "import-statement",
44
+ "external": true
45
+ },
41
46
  {
42
47
  "path": "src/Theme/base.config.ts",
43
48
  "kind": "import-statement",
@@ -2649,7 +2654,7 @@
2649
2654
  "format": "esm"
2650
2655
  },
2651
2656
  "src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx": {
2652
- "bytes": 6166,
2657
+ "bytes": 6195,
2653
2658
  "imports": [
2654
2659
  {
2655
2660
  "path": "react",
@@ -2792,7 +2797,7 @@
2792
2797
  "format": "esm"
2793
2798
  },
2794
2799
  "src/Prebuilt/components/Leave/MwebLeaveRoom.tsx": {
2795
- "bytes": 4628,
2800
+ "bytes": 4657,
2796
2801
  "imports": [
2797
2802
  {
2798
2803
  "path": "react",
@@ -4409,7 +4414,7 @@
4409
4414
  "format": "cjs"
4410
4415
  },
4411
4416
  "../hms-video-web/dist/index.js": {
4412
- "bytes": 254752,
4417
+ "bytes": 254555,
4413
4418
  "imports": [
4414
4419
  {
4415
4420
  "path": "uuid",
@@ -11099,7 +11104,7 @@
11099
11104
  "dist/index.js": {
11100
11105
  "imports": [
11101
11106
  {
11102
- "path": "dist/chunk-I3J4WTJM.js",
11107
+ "path": "dist/chunk-OYSYEA6R.js",
11103
11108
  "kind": "import-statement"
11104
11109
  }
11105
11110
  ],
@@ -11171,16 +11176,16 @@
11171
11176
  "inputs": {},
11172
11177
  "bytes": 1798
11173
11178
  },
11174
- "dist/HLSView-37K6YKVO.js.map": {
11179
+ "dist/HLSView-J2MIS3H2.js.map": {
11175
11180
  "imports": [],
11176
11181
  "exports": [],
11177
11182
  "inputs": {},
11178
11183
  "bytes": 53187
11179
11184
  },
11180
- "dist/HLSView-37K6YKVO.js": {
11185
+ "dist/HLSView-J2MIS3H2.js": {
11181
11186
  "imports": [
11182
11187
  {
11183
- "path": "dist/chunk-I3J4WTJM.js",
11188
+ "path": "dist/chunk-OYSYEA6R.js",
11184
11189
  "kind": "import-statement"
11185
11190
  },
11186
11191
  {
@@ -11331,13 +11336,13 @@
11331
11336
  },
11332
11337
  "bytes": 33380
11333
11338
  },
11334
- "dist/chunk-I3J4WTJM.js.map": {
11339
+ "dist/chunk-OYSYEA6R.js.map": {
11335
11340
  "imports": [],
11336
11341
  "exports": [],
11337
11342
  "inputs": {},
11338
- "bytes": 1974355
11343
+ "bytes": 1974056
11339
11344
  },
11340
- "dist/chunk-I3J4WTJM.js": {
11345
+ "dist/chunk-OYSYEA6R.js": {
11341
11346
  "imports": [
11342
11347
  {
11343
11348
  "path": "react",
@@ -11354,6 +11359,11 @@
11354
11359
  "kind": "import-statement",
11355
11360
  "external": true
11356
11361
  },
11362
+ {
11363
+ "path": "uuid",
11364
+ "kind": "import-statement",
11365
+ "external": true
11366
+ },
11357
11367
  {
11358
11368
  "path": "@stitches/react",
11359
11369
  "kind": "import-statement",
@@ -13285,7 +13295,7 @@
13285
13295
  "external": true
13286
13296
  },
13287
13297
  {
13288
- "path": "dist/HLSView-37K6YKVO.js",
13298
+ "path": "dist/HLSView-J2MIS3H2.js",
13289
13299
  "kind": "dynamic-import"
13290
13300
  },
13291
13301
  {
@@ -13650,7 +13660,7 @@
13650
13660
  ],
13651
13661
  "inputs": {
13652
13662
  "<define:process.env>": {
13653
- "bytesInOutput": 18611
13663
+ "bytesInOutput": 18620
13654
13664
  },
13655
13665
  "../../node_modules/ua-parser-js/src/ua-parser.js": {
13656
13666
  "bytesInOutput": 42427
@@ -13686,7 +13696,7 @@
13686
13696
  "bytesInOutput": 1295
13687
13697
  },
13688
13698
  "src/Theme/stitches.config.ts": {
13689
- "bytesInOutput": 1679
13699
+ "bytesInOutput": 1728
13690
13700
  },
13691
13701
  "src/Theme/base.config.ts": {
13692
13702
  "bytesInOutput": 5061
@@ -13956,7 +13966,7 @@
13956
13966
  "bytesInOutput": 2182
13957
13967
  },
13958
13968
  "src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx": {
13959
- "bytesInOutput": 5679
13969
+ "bytesInOutput": 5740
13960
13970
  },
13961
13971
  "src/Prebuilt/components/Leave/EndSessionContent.tsx": {
13962
13972
  "bytesInOutput": 1947
@@ -13971,7 +13981,7 @@
13971
13981
  "bytesInOutput": 1790
13972
13982
  },
13973
13983
  "src/Prebuilt/components/Leave/MwebLeaveRoom.tsx": {
13974
- "bytesInOutput": 4274
13984
+ "bytesInOutput": 4335
13975
13985
  },
13976
13986
  "src/Sheet/index.ts": {
13977
13987
  "bytesInOutput": 27
@@ -14478,7 +14488,7 @@
14478
14488
  "bytesInOutput": 418
14479
14489
  }
14480
14490
  },
14481
- "bytes": 909900
14491
+ "bytes": 910080
14482
14492
  }
14483
14493
  }
14484
14494
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.1.11-alpha.2",
13
+ "version": "0.1.12-alpha.0",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "files": [
@@ -63,6 +63,7 @@
63
63
  "@types/mdx": "2.0.2",
64
64
  "@types/react": "^18.1.0",
65
65
  "@types/react-window": "^1.8.5",
66
+ "@types/uuid": "^8.3.0",
66
67
  "babel-loader": "^8.2.5",
67
68
  "babel-plugin-react-require": "3.1.3",
68
69
  "react": "^18.1.0",
@@ -76,10 +77,10 @@
76
77
  "react": ">=17.0.2 <19.0.0"
77
78
  },
78
79
  "dependencies": {
79
- "@100mslive/hls-player": "0.1.20-alpha.2",
80
- "@100mslive/hms-virtual-background": "1.11.20-alpha.2",
81
- "@100mslive/react-icons": "0.8.20-alpha.2",
82
- "@100mslive/react-sdk": "0.8.20-alpha.2",
80
+ "@100mslive/hls-player": "0.1.21-alpha.0",
81
+ "@100mslive/hms-virtual-background": "1.11.21-alpha.0",
82
+ "@100mslive/react-icons": "0.8.21-alpha.0",
83
+ "@100mslive/react-sdk": "0.8.21-alpha.0",
83
84
  "@100mslive/types-prebuilt": "0.12.0",
84
85
  "@emoji-mart/data": "^1.0.6",
85
86
  "@emoji-mart/react": "^1.0.1",
@@ -114,5 +115,5 @@
114
115
  "uuid": "^8.3.2",
115
116
  "worker-timers": "^7.0.40"
116
117
  },
117
- "gitHead": "f5c7e1214f73304f89b181ced53f13669d4194bb"
118
+ "gitHead": "a69f22f662b620671bbbb8fb9174c7dd1368996d"
118
119
  }
@@ -30,7 +30,7 @@ export const DesktopLeaveRoom = ({
30
30
  const isConnected = useHMSStore(selectIsConnectedToRoom);
31
31
  const permissions = useHMSStore(selectPermissions);
32
32
  const { isStreamingOn } = useRecordingStreaming();
33
- const showStream = screenType !== 'hls_live_streaming' && isStreamingOn;
33
+ const showStream = screenType !== 'hls_live_streaming' && isStreamingOn && permissions?.hlsStreaming;
34
34
  const showLeaveOptions = (permissions?.hlsStreaming && isStreamingOn) || permissions?.endRoom;
35
35
 
36
36
  useDropdownList({ open: open || showEndStreamAlert || showLeaveRoomAlert, name: 'LeaveRoom' });
@@ -29,7 +29,7 @@ export const MwebLeaveRoom = ({
29
29
  const isConnected = useHMSStore(selectIsConnectedToRoom);
30
30
  const permissions = useHMSStore(selectPermissions);
31
31
  const { isStreamingOn } = useRecordingStreaming();
32
- const showStream = screenType !== 'hls_live_streaming' && isStreamingOn;
32
+ const showStream = screenType !== 'hls_live_streaming' && isStreamingOn && permissions?.hlsStreaming;
33
33
  const showLeaveOptions = (permissions?.hlsStreaming && isStreamingOn) || permissions?.endRoom;
34
34
 
35
35
  useDropdownList({ open, name: 'LeaveRoom' });
@@ -1,10 +1,11 @@
1
1
  import type * as Stitches from '@stitches/react';
2
2
  import { createStitches } from '@stitches/react';
3
3
  import merge from 'lodash.merge';
4
+ import { v4 as uuidv4 } from 'uuid';
4
5
  import { baseConfig, defaultMedia, defaultThemeMap, defaultUtils } from './base.config';
5
6
 
6
7
  const HmsStitches = createStitches({
7
- prefix: 'hms-ui',
8
+ prefix: `hms-ui-${uuidv4()}`,
8
9
  theme: {
9
10
  ...baseConfig.theme,
10
11
  colors: {