@100mslive/roomkit-react 0.3.4 → 0.3.5-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/{HLSView-6NEUUQBX.js → HLSView-GF23J3TJ.js} +5 -3
  2. package/dist/{HLSView-6NEUUQBX.js.map → HLSView-GF23J3TJ.js.map} +2 -2
  3. package/dist/Prebuilt/components/RaiseHand.d.ts +1 -1
  4. package/dist/Prebuilt/components/hooks/useMetadata.d.ts +8 -0
  5. package/dist/{chunk-JF6QG5V5.js → chunk-7O27GQEH.js} +479 -453
  6. package/dist/chunk-7O27GQEH.js.map +7 -0
  7. package/dist/fixtures/peers.d.ts +1 -1
  8. package/dist/index.cjs.js +917 -894
  9. package/dist/index.cjs.js.map +4 -4
  10. package/dist/index.js +1 -1
  11. package/dist/meta.cjs.json +93 -68
  12. package/dist/meta.esbuild.json +101 -76
  13. package/package.json +7 -7
  14. package/src/Avatar/Avatar.tsx +3 -3
  15. package/src/Avatar/getAvatarBg.ts +11 -7
  16. package/src/Prebuilt/App.tsx +5 -6
  17. package/src/Prebuilt/AppStateContext.tsx +27 -14
  18. package/src/Prebuilt/components/AuthToken.jsx +27 -26
  19. package/src/Prebuilt/components/Chat/ChatFooter.tsx +2 -4
  20. package/src/Prebuilt/components/ConferenceScreen.tsx +1 -4
  21. package/src/Prebuilt/components/Connection/TileConnection.tsx +14 -2
  22. package/src/Prebuilt/components/Footer/Footer.tsx +1 -4
  23. package/src/Prebuilt/components/Footer/ParticipantList.tsx +15 -1
  24. package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +1 -2
  25. package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +1 -5
  26. package/src/Prebuilt/components/PreviousRoleInMetadata.tsx +0 -1
  27. package/src/Prebuilt/components/RaiseHand.tsx +7 -1
  28. package/src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx +0 -1
  29. package/src/Prebuilt/components/hooks/{useMetadata.jsx → useMetadata.tsx} +2 -8
  30. package/src/Prebuilt/layouts/HLSView.jsx +4 -1
  31. package/src/Prebuilt/layouts/VideoStreamingSection.tsx +22 -15
  32. package/src/Stats/Stats.tsx +12 -2
  33. package/src/fixtures/peers.ts +2 -1
  34. package/dist/chunk-JF6QG5V5.js.map +0 -7
@@ -373,7 +373,7 @@
373
373
  "format": "esm"
374
374
  },
375
375
  "src/Avatar/getAvatarBg.ts": {
376
- "bytes": 956,
376
+ "bytes": 1055,
377
377
  "imports": [
378
378
  {
379
379
  "path": "<define:process.env>",
@@ -384,7 +384,7 @@
384
384
  "format": "esm"
385
385
  },
386
386
  "src/Avatar/Avatar.tsx": {
387
- "bytes": 1429,
387
+ "bytes": 1413,
388
388
  "imports": [
389
389
  {
390
390
  "path": "react",
@@ -1323,7 +1323,7 @@
1323
1323
  "format": "esm"
1324
1324
  },
1325
1325
  "src/Stats/Stats.tsx": {
1326
- "bytes": 7818,
1326
+ "bytes": 8227,
1327
1327
  "imports": [
1328
1328
  {
1329
1329
  "path": "react",
@@ -2332,7 +2332,7 @@
2332
2332
  "imports": []
2333
2333
  },
2334
2334
  "src/Prebuilt/components/AuthToken.jsx": {
2335
- "bytes": 4386,
2335
+ "bytes": 4399,
2336
2336
  "imports": [
2337
2337
  {
2338
2338
  "path": "react",
@@ -2344,6 +2344,11 @@
2344
2344
  "kind": "import-statement",
2345
2345
  "external": true
2346
2346
  },
2347
+ {
2348
+ "path": "ts-pattern",
2349
+ "kind": "import-statement",
2350
+ "external": true
2351
+ },
2347
2352
  {
2348
2353
  "path": "uuid",
2349
2354
  "kind": "import-statement",
@@ -4201,8 +4206,8 @@
4201
4206
  ],
4202
4207
  "format": "esm"
4203
4208
  },
4204
- "src/Prebuilt/components/hooks/useMetadata.jsx": {
4205
- "bytes": 1700,
4209
+ "src/Prebuilt/components/hooks/useMetadata.tsx": {
4210
+ "bytes": 1631,
4206
4211
  "imports": [
4207
4212
  {
4208
4213
  "path": "react",
@@ -4228,7 +4233,7 @@
4228
4233
  "format": "esm"
4229
4234
  },
4230
4235
  "src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx": {
4231
- "bytes": 8195,
4236
+ "bytes": 8205,
4232
4237
  "imports": [
4233
4238
  {
4234
4239
  "path": "react",
@@ -4321,7 +4326,7 @@
4321
4326
  "original": "../../hooks/useDropdownList"
4322
4327
  },
4323
4328
  {
4324
- "path": "src/Prebuilt/components/hooks/useMetadata.jsx",
4329
+ "path": "src/Prebuilt/components/hooks/useMetadata.tsx",
4325
4330
  "kind": "import-statement",
4326
4331
  "original": "../../hooks/useMetadata"
4327
4332
  },
@@ -4691,7 +4696,7 @@
4691
4696
  "format": "cjs"
4692
4697
  },
4693
4698
  "../hms-video-store/dist/index.js": {
4694
- "bytes": 329218,
4699
+ "bytes": 329600,
4695
4700
  "imports": [
4696
4701
  {
4697
4702
  "path": "../../node_modules/reselect/es/index.js",
@@ -5201,7 +5206,7 @@
5201
5206
  "format": "esm"
5202
5207
  },
5203
5208
  "src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
5204
- "bytes": 13053,
5209
+ "bytes": 12899,
5205
5210
  "imports": [
5206
5211
  {
5207
5212
  "path": "react",
@@ -5309,7 +5314,7 @@
5309
5314
  "original": "../../hooks/useDropdownList"
5310
5315
  },
5311
5316
  {
5312
- "path": "src/Prebuilt/components/hooks/useMetadata.jsx",
5317
+ "path": "src/Prebuilt/components/hooks/useMetadata.tsx",
5313
5318
  "kind": "import-statement",
5314
5319
  "original": "../../hooks/useMetadata"
5315
5320
  },
@@ -5393,7 +5398,7 @@
5393
5398
  "format": "esm"
5394
5399
  },
5395
5400
  "src/Prebuilt/components/RaiseHand.tsx": {
5396
- "bytes": 798,
5401
+ "bytes": 986,
5397
5402
  "imports": [
5398
5403
  {
5399
5404
  "path": "react",
@@ -5421,7 +5426,12 @@
5421
5426
  "original": "../IconButton"
5422
5427
  },
5423
5428
  {
5424
- "path": "src/Prebuilt/components/hooks/useMetadata.jsx",
5429
+ "path": "src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts",
5430
+ "kind": "import-statement",
5431
+ "original": "../provider/roomLayoutProvider/hooks/useRoomLayoutScreen"
5432
+ },
5433
+ {
5434
+ "path": "src/Prebuilt/components/hooks/useMetadata.tsx",
5425
5435
  "kind": "import-statement",
5426
5436
  "original": "./hooks/useMetadata"
5427
5437
  },
@@ -6154,7 +6164,7 @@
6154
6164
  "format": "esm"
6155
6165
  },
6156
6166
  "src/Prebuilt/components/Footer/ParticipantList.tsx": {
6157
- "bytes": 12459,
6167
+ "bytes": 12936,
6158
6168
  "imports": [
6159
6169
  {
6160
6170
  "path": "react",
@@ -6337,7 +6347,7 @@
6337
6347
  "format": "esm"
6338
6348
  },
6339
6349
  "src/Prebuilt/components/Footer/Footer.tsx": {
6340
- "bytes": 3967,
6350
+ "bytes": 3777,
6341
6351
  "imports": [
6342
6352
  {
6343
6353
  "path": "react",
@@ -6359,11 +6369,6 @@
6359
6369
  "kind": "import-statement",
6360
6370
  "external": true
6361
6371
  },
6362
- {
6363
- "path": "@100mslive/react-sdk",
6364
- "kind": "import-statement",
6365
- "external": true
6366
- },
6367
6372
  {
6368
6373
  "path": "src/index.ts",
6369
6374
  "kind": "import-statement",
@@ -8243,7 +8248,7 @@
8243
8248
  "format": "esm"
8244
8249
  },
8245
8250
  "src/Prebuilt/components/Chat/ChatFooter.tsx": {
8246
- "bytes": 10438,
8251
+ "bytes": 10287,
8247
8252
  "imports": [
8248
8253
  {
8249
8254
  "path": "react",
@@ -8872,7 +8877,7 @@
8872
8877
  "format": "esm"
8873
8878
  },
8874
8879
  "src/Prebuilt/components/Connection/TileConnection.tsx": {
8875
- "bytes": 2273,
8880
+ "bytes": 2568,
8876
8881
  "imports": [
8877
8882
  {
8878
8883
  "path": "react",
@@ -9794,7 +9799,7 @@
9794
9799
  "format": "esm"
9795
9800
  },
9796
9801
  "src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx": {
9797
- "bytes": 2958,
9802
+ "bytes": 2927,
9798
9803
  "imports": [
9799
9804
  {
9800
9805
  "path": "react",
@@ -9827,7 +9832,7 @@
9827
9832
  "original": "../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen"
9828
9833
  },
9829
9834
  {
9830
- "path": "src/Prebuilt/components/hooks/useMetadata.jsx",
9835
+ "path": "src/Prebuilt/components/hooks/useMetadata.tsx",
9831
9836
  "kind": "import-statement",
9832
9837
  "original": "../hooks/useMetadata"
9833
9838
  },
@@ -11483,7 +11488,7 @@
11483
11488
  "format": "esm"
11484
11489
  },
11485
11490
  "src/Prebuilt/layouts/HLSView.jsx": {
11486
- "bytes": 28303,
11491
+ "bytes": 28512,
11487
11492
  "imports": [
11488
11493
  {
11489
11494
  "path": "react",
@@ -11644,7 +11649,7 @@
11644
11649
  "format": "esm"
11645
11650
  },
11646
11651
  "src/Prebuilt/layouts/VideoStreamingSection.tsx": {
11647
- "bytes": 4278,
11652
+ "bytes": 4499,
11648
11653
  "imports": [
11649
11654
  {
11650
11655
  "path": "react",
@@ -11934,7 +11939,7 @@
11934
11939
  "format": "esm"
11935
11940
  },
11936
11941
  "src/Prebuilt/components/PreviousRoleInMetadata.tsx": {
11937
- "bytes": 769,
11942
+ "bytes": 738,
11938
11943
  "imports": [
11939
11944
  {
11940
11945
  "path": "react",
@@ -11947,7 +11952,7 @@
11947
11952
  "external": true
11948
11953
  },
11949
11954
  {
11950
- "path": "src/Prebuilt/components/hooks/useMetadata.jsx",
11955
+ "path": "src/Prebuilt/components/hooks/useMetadata.tsx",
11951
11956
  "kind": "import-statement",
11952
11957
  "original": "./hooks/useMetadata"
11953
11958
  },
@@ -11960,7 +11965,7 @@
11960
11965
  "format": "esm"
11961
11966
  },
11962
11967
  "src/Prebuilt/components/ConferenceScreen.tsx": {
11963
- "bytes": 8259,
11968
+ "bytes": 8106,
11964
11969
  "imports": [
11965
11970
  {
11966
11971
  "path": "react",
@@ -12236,7 +12241,7 @@
12236
12241
  "format": "esm"
12237
12242
  },
12238
12243
  "src/Prebuilt/AppStateContext.tsx": {
12239
- "bytes": 2655,
12244
+ "bytes": 3129,
12240
12245
  "imports": [
12241
12246
  {
12242
12247
  "path": "react",
@@ -12248,6 +12253,11 @@
12248
12253
  "kind": "import-statement",
12249
12254
  "external": true
12250
12255
  },
12256
+ {
12257
+ "path": "ts-pattern",
12258
+ "kind": "import-statement",
12259
+ "external": true
12260
+ },
12251
12261
  {
12252
12262
  "path": "@100mslive/react-sdk",
12253
12263
  "kind": "import-statement",
@@ -13319,7 +13329,7 @@
13319
13329
  "format": "esm"
13320
13330
  },
13321
13331
  "src/Prebuilt/App.tsx": {
13322
- "bytes": 10538,
13332
+ "bytes": 10658,
13323
13333
  "imports": [
13324
13334
  {
13325
13335
  "path": "react",
@@ -13336,6 +13346,11 @@
13336
13346
  "kind": "import-statement",
13337
13347
  "external": true
13338
13348
  },
13349
+ {
13350
+ "path": "ts-pattern",
13351
+ "kind": "import-statement",
13352
+ "external": true
13353
+ },
13339
13354
  {
13340
13355
  "path": "@100mslive/react-sdk",
13341
13356
  "kind": "import-statement",
@@ -13775,7 +13790,7 @@
13775
13790
  "dist/index.js": {
13776
13791
  "imports": [
13777
13792
  {
13778
- "path": "dist/chunk-JF6QG5V5.js",
13793
+ "path": "dist/chunk-7O27GQEH.js",
13779
13794
  "kind": "import-statement"
13780
13795
  }
13781
13796
  ],
@@ -13848,16 +13863,16 @@
13848
13863
  "inputs": {},
13849
13864
  "bytes": 1822
13850
13865
  },
13851
- "dist/HLSView-6NEUUQBX.js.map": {
13866
+ "dist/HLSView-GF23J3TJ.js.map": {
13852
13867
  "imports": [],
13853
13868
  "exports": [],
13854
13869
  "inputs": {},
13855
- "bytes": 99220
13870
+ "bytes": 99469
13856
13871
  },
13857
- "dist/HLSView-6NEUUQBX.js": {
13872
+ "dist/HLSView-GF23J3TJ.js": {
13858
13873
  "imports": [
13859
13874
  {
13860
- "path": "dist/chunk-JF6QG5V5.js",
13875
+ "path": "dist/chunk-7O27GQEH.js",
13861
13876
  "kind": "import-statement"
13862
13877
  },
13863
13878
  {
@@ -14037,7 +14052,7 @@
14037
14052
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
14038
14053
  "inputs": {
14039
14054
  "src/Prebuilt/layouts/HLSView.jsx": {
14040
- "bytesInOutput": 27641
14055
+ "bytesInOutput": 27705
14041
14056
  },
14042
14057
  "src/Prebuilt/components/HlsStatsOverlay.jsx": {
14043
14058
  "bytesInOutput": 3521
@@ -14091,15 +14106,15 @@
14091
14106
  "bytesInOutput": 2101
14092
14107
  }
14093
14108
  },
14094
- "bytes": 61275
14109
+ "bytes": 61339
14095
14110
  },
14096
- "dist/chunk-JF6QG5V5.js.map": {
14111
+ "dist/chunk-7O27GQEH.js.map": {
14097
14112
  "imports": [],
14098
14113
  "exports": [],
14099
14114
  "inputs": {},
14100
- "bytes": 3190624
14115
+ "bytes": 3195440
14101
14116
  },
14102
- "dist/chunk-JF6QG5V5.js": {
14117
+ "dist/chunk-7O27GQEH.js": {
14103
14118
  "imports": [
14104
14119
  {
14105
14120
  "path": "react",
@@ -14381,6 +14396,11 @@
14381
14396
  "kind": "import-statement",
14382
14397
  "external": true
14383
14398
  },
14399
+ {
14400
+ "path": "ts-pattern",
14401
+ "kind": "import-statement",
14402
+ "external": true
14403
+ },
14384
14404
  {
14385
14405
  "path": "@100mslive/react-sdk",
14386
14406
  "kind": "import-statement",
@@ -14491,6 +14511,11 @@
14491
14511
  "kind": "import-statement",
14492
14512
  "external": true
14493
14513
  },
14514
+ {
14515
+ "path": "ts-pattern",
14516
+ "kind": "import-statement",
14517
+ "external": true
14518
+ },
14494
14519
  {
14495
14520
  "path": "uuid",
14496
14521
  "kind": "import-statement",
@@ -14536,11 +14561,6 @@
14536
14561
  "kind": "import-statement",
14537
14562
  "external": true
14538
14563
  },
14539
- {
14540
- "path": "@100mslive/react-sdk",
14541
- "kind": "import-statement",
14542
- "external": true
14543
- },
14544
14564
  {
14545
14565
  "path": "react",
14546
14566
  "kind": "import-statement",
@@ -16487,7 +16507,7 @@
16487
16507
  "external": true
16488
16508
  },
16489
16509
  {
16490
- "path": "dist/HLSView-6NEUUQBX.js",
16510
+ "path": "dist/HLSView-GF23J3TJ.js",
16491
16511
  "kind": "dynamic-import"
16492
16512
  },
16493
16513
  {
@@ -16600,6 +16620,11 @@
16600
16620
  "kind": "import-statement",
16601
16621
  "external": true
16602
16622
  },
16623
+ {
16624
+ "path": "ts-pattern",
16625
+ "kind": "import-statement",
16626
+ "external": true
16627
+ },
16603
16628
  {
16604
16629
  "path": "@100mslive/react-sdk",
16605
16630
  "kind": "import-statement",
@@ -16963,25 +16988,25 @@
16963
16988
  ],
16964
16989
  "inputs": {
16965
16990
  "<define:process.env>": {
16966
- "bytesInOutput": 18142
16991
+ "bytesInOutput": 18225
16967
16992
  },
16968
16993
  "../../node_modules/lodash/lodash.js": {
16969
16994
  "bytesInOutput": 224300
16970
16995
  },
16971
16996
  "../../node_modules/ua-parser-js/src/ua-parser.js": {
16972
- "bytesInOutput": 42475
16997
+ "bytesInOutput": 42491
16973
16998
  },
16974
16999
  "../../node_modules/lodash.isequal/index.js": {
16975
17000
  "bytesInOutput": 26591
16976
17001
  },
16977
17002
  "../../node_modules/sdp/sdp.js": {
16978
- "bytesInOutput": 22288
17003
+ "bytesInOutput": 22292
16979
17004
  },
16980
17005
  "../../node_modules/sdp-transform/lib/grammar.js": {
16981
17006
  "bytesInOutput": 16120
16982
17007
  },
16983
17008
  "../../node_modules/sdp-transform/lib/parser.js": {
16984
- "bytesInOutput": 3493
17009
+ "bytesInOutput": 3497
16985
17010
  },
16986
17011
  "../../node_modules/sdp-transform/lib/writer.js": {
16987
17012
  "bytesInOutput": 3068
@@ -17047,10 +17072,10 @@
17047
17072
  "bytesInOutput": 27
17048
17073
  },
17049
17074
  "src/Avatar/Avatar.tsx": {
17050
- "bytesInOutput": 1267
17075
+ "bytesInOutput": 1251
17051
17076
  },
17052
17077
  "src/Avatar/getAvatarBg.ts": {
17053
- "bytesInOutput": 875
17078
+ "bytesInOutput": 904
17054
17079
  },
17055
17080
  "src/Divider/index.ts": {
17056
17081
  "bytesInOutput": 27
@@ -17158,10 +17183,10 @@
17158
17183
  "bytesInOutput": 27
17159
17184
  },
17160
17185
  "src/Stats/Stats.tsx": {
17161
- "bytesInOutput": 7819
17186
+ "bytesInOutput": 8364
17162
17187
  },
17163
17188
  "src/Stats/formatBytes.ts": {
17164
- "bytesInOutput": 473
17189
+ "bytesInOutput": 471
17165
17190
  },
17166
17191
  "src/Stats/StyledStats.tsx": {
17167
17192
  "bytesInOutput": 708
@@ -17215,7 +17240,7 @@
17215
17240
  "bytesInOutput": 887
17216
17241
  },
17217
17242
  "src/Prebuilt/App.tsx": {
17218
- "bytesInOutput": 7710
17243
+ "bytesInOutput": 7828
17219
17244
  },
17220
17245
  "src/Prebuilt/components/AppData/AppData.tsx": {
17221
17246
  "bytesInOutput": 5383
@@ -17254,7 +17279,7 @@
17254
17279
  "bytesInOutput": 2499
17255
17280
  },
17256
17281
  "src/Prebuilt/components/AuthToken.jsx": {
17257
- "bytesInOutput": 3652
17282
+ "bytesInOutput": 3650
17258
17283
  },
17259
17284
  "src/Prebuilt/AppContext.tsx": {
17260
17285
  "bytesInOutput": 577
@@ -17263,10 +17288,10 @@
17263
17288
  "bytesInOutput": 4698
17264
17289
  },
17265
17290
  "src/Prebuilt/components/ConferenceScreen.tsx": {
17266
- "bytesInOutput": 7373
17291
+ "bytesInOutput": 7205
17267
17292
  },
17268
17293
  "src/Prebuilt/components/Footer/Footer.tsx": {
17269
- "bytesInOutput": 3350
17294
+ "bytesInOutput": 3145
17270
17295
  },
17271
17296
  "src/Prebuilt/components/AudioVideoToggle.tsx": {
17272
17297
  "bytesInOutput": 10284
@@ -17341,7 +17366,7 @@
17341
17366
  "bytesInOutput": 472
17342
17367
  },
17343
17368
  "src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx": {
17344
- "bytesInOutput": 6880
17369
+ "bytesInOutput": 6919
17345
17370
  },
17346
17371
  "src/Prebuilt/components/PIP/index.jsx": {
17347
17372
  "bytesInOutput": 178
@@ -17371,7 +17396,7 @@
17371
17396
  "bytesInOutput": 7700
17372
17397
  },
17373
17398
  "src/Prebuilt/components/StatsForNerds.jsx": {
17374
- "bytesInOutput": 9844
17399
+ "bytesInOutput": 9842
17375
17400
  },
17376
17401
  "src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx": {
17377
17402
  "bytesInOutput": 5008
@@ -17391,17 +17416,17 @@
17391
17416
  "src/Prebuilt/components/MoreSettings/constants.ts": {
17392
17417
  "bytesInOutput": 437
17393
17418
  },
17394
- "src/Prebuilt/components/hooks/useMetadata.jsx": {
17395
- "bytesInOutput": 1948
17419
+ "src/Prebuilt/components/hooks/useMetadata.tsx": {
17420
+ "bytesInOutput": 1826
17396
17421
  },
17397
17422
  "src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
17398
- "bytesInOutput": 11042
17423
+ "bytesInOutput": 10902
17399
17424
  },
17400
17425
  "src/Prebuilt/components/Header/StreamActions.tsx": {
17401
17426
  "bytesInOutput": 10031
17402
17427
  },
17403
17428
  "../hms-video-store/dist/index.js": {
17404
- "bytesInOutput": 48758
17429
+ "bytesInOutput": 48907
17405
17430
  },
17406
17431
  "../../node_modules/reselect/es/index.js": {
17407
17432
  "bytesInOutput": 2537
@@ -17437,7 +17462,7 @@
17437
17462
  "bytesInOutput": 11868
17438
17463
  },
17439
17464
  "../../node_modules/webrtc-adapter/src/js/common_shim.js": {
17440
- "bytesInOutput": 12460
17465
+ "bytesInOutput": 12465
17441
17466
  },
17442
17467
  "src/Prebuilt/components/Header/AdditionalRoomState.jsx": {
17443
17468
  "bytesInOutput": 6823
@@ -17464,7 +17489,7 @@
17464
17489
  "bytesInOutput": 658
17465
17490
  },
17466
17491
  "src/Prebuilt/components/RaiseHand.tsx": {
17467
- "bytesInOutput": 796
17492
+ "bytesInOutput": 905
17468
17493
  },
17469
17494
  "src/Prebuilt/components/ScreenShareToggle.jsx": {
17470
17495
  "bytesInOutput": 1619
@@ -17503,7 +17528,7 @@
17503
17528
  "bytesInOutput": 1445
17504
17529
  },
17505
17530
  "src/Prebuilt/components/Footer/ParticipantList.tsx": {
17506
- "bytesInOutput": 11723
17531
+ "bytesInOutput": 12180
17507
17532
  },
17508
17533
  "src/Prebuilt/components/Connection/ConnectionIndicator.tsx": {
17509
17534
  "bytesInOutput": 3749
@@ -17629,7 +17654,7 @@
17629
17654
  "bytesInOutput": 720
17630
17655
  },
17631
17656
  "src/Prebuilt/components/SidePaneTabs.tsx": {
17632
- "bytesInOutput": 7554
17657
+ "bytesInOutput": 7557
17633
17658
  },
17634
17659
  "src/Prebuilt/components/Chat/Chat.tsx": {
17635
17660
  "bytesInOutput": 4926
@@ -17659,7 +17684,7 @@
17659
17684
  "bytesInOutput": 710
17660
17685
  },
17661
17686
  "src/Prebuilt/components/Chat/ChatFooter.tsx": {
17662
- "bytesInOutput": 9793
17687
+ "bytesInOutput": 9627
17663
17688
  },
17664
17689
  "src/Prebuilt/components/Chat/ChatSelectorContainer.tsx": {
17665
17690
  "bytesInOutput": 5318
@@ -17695,7 +17720,7 @@
17695
17720
  "bytesInOutput": 6608
17696
17721
  },
17697
17722
  "src/Prebuilt/components/Connection/TileConnection.tsx": {
17698
- "bytesInOutput": 2062
17723
+ "bytesInOutput": 2380
17699
17724
  },
17700
17725
  "src/Prebuilt/components/TileMenu/TileMenu.tsx": {
17701
17726
  "bytesInOutput": 4507
@@ -17737,7 +17762,7 @@
17737
17762
  "bytesInOutput": 2163
17738
17763
  },
17739
17764
  "src/Prebuilt/layouts/VideoStreamingSection.tsx": {
17740
- "bytesInOutput": 3388
17765
+ "bytesInOutput": 3506
17741
17766
  },
17742
17767
  "src/Prebuilt/components/VideoLayouts/GridLayout.tsx": {
17743
17768
  "bytesInOutput": 4521
@@ -17758,7 +17783,7 @@
17758
17783
  "bytesInOutput": 1204
17759
17784
  },
17760
17785
  "src/Prebuilt/components/hooks/useTileLayout.tsx": {
17761
- "bytesInOutput": 3831
17786
+ "bytesInOutput": 3834
17762
17787
  },
17763
17788
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx": {
17764
17789
  "bytesInOutput": 2183
@@ -17833,7 +17858,7 @@
17833
17858
  "bytesInOutput": 2185
17834
17859
  },
17835
17860
  "src/Prebuilt/AppStateContext.tsx": {
17836
- "bytesInOutput": 2157
17861
+ "bytesInOutput": 2554
17837
17862
  },
17838
17863
  "src/Prebuilt/components/hooks/useRedirectToLeave.tsx": {
17839
17864
  "bytesInOutput": 491
@@ -17845,7 +17870,7 @@
17845
17870
  "bytesInOutput": 27
17846
17871
  },
17847
17872
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
17848
- "bytesInOutput": 7971
17873
+ "bytesInOutput": 7974
17849
17874
  },
17850
17875
  "src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx": {
17851
17876
  "bytesInOutput": 1053
@@ -17923,7 +17948,7 @@
17923
17948
  "bytesInOutput": 651
17924
17949
  }
17925
17950
  },
17926
- "bytes": 1307574
17951
+ "bytes": 1309155
17927
17952
  }
17928
17953
  }
17929
17954
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.4",
13
+ "version": "0.3.5-alpha.0",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -82,12 +82,12 @@
82
82
  "react": ">=17.0.2 <19.0.0"
83
83
  },
84
84
  "dependencies": {
85
- "@100mslive/hls-player": "0.3.4",
85
+ "@100mslive/hls-player": "0.3.5-alpha.0",
86
86
  "@100mslive/hms-noise-cancellation": "0.0.1",
87
- "@100mslive/hms-virtual-background": "1.13.4",
88
- "@100mslive/react-icons": "0.10.4",
89
- "@100mslive/react-sdk": "0.10.4",
90
- "@100mslive/types-prebuilt": "0.12.7",
87
+ "@100mslive/hms-virtual-background": "1.13.5-alpha.0",
88
+ "@100mslive/react-icons": "0.10.5-alpha.0",
89
+ "@100mslive/react-sdk": "0.10.5-alpha.0",
90
+ "@100mslive/types-prebuilt": "0.12.8",
91
91
  "@emoji-mart/data": "^1.0.6",
92
92
  "@emoji-mart/react": "^1.0.1",
93
93
  "@radix-ui/react-accordion": "1.0.0",
@@ -122,5 +122,5 @@
122
122
  "uuid": "^8.3.2",
123
123
  "worker-timers": "^7.0.40"
124
124
  },
125
- "gitHead": "7c3e871297668d3dc11759d88a888027967715ac"
125
+ "gitHead": "ff505981427628881b2c9c601640319966773bd2"
126
126
  }
@@ -47,14 +47,14 @@ type Props = VariantProps<typeof StyledAvatar> &
47
47
  };
48
48
 
49
49
  export const Avatar: React.FC<Props> = ({ name, css, ...props }) => {
50
- const { initials } = getAvatarBg(name);
51
- let { color } = getAvatarBg(name);
50
+ const info = getAvatarBg(name);
51
+ let { color } = info;
52
52
  if (!name) {
53
53
  color = '#7E47EB';
54
54
  }
55
55
  return (
56
56
  <StyledAvatar css={{ bg: color, ...css }} {...props}>
57
- {initials || <PersonIcon height={40} width={40} />}
57
+ {info.initials || <PersonIcon height={40} width={40} />}
58
58
  </StyledAvatar>
59
59
  );
60
60
  };
@@ -2,13 +2,17 @@ const getInitials = (name: string | undefined) => {
2
2
  if (!name) {
3
3
  return undefined;
4
4
  } else {
5
- return name
6
- .trim()
7
- .match(/(^\S\S?|\b\S)?/g)
8
- ?.join('')
9
- ?.match(/(^\S|\S$)?/g)
10
- ?.join('')
11
- .toUpperCase();
5
+ return (
6
+ name
7
+ .trim()
8
+ // remove non chars/digits
9
+ .replace(/[^a-zA-Z0-9]/g, '')
10
+ .match(/(^\S\S?|\b\S)?/g)
11
+ ?.join('')
12
+ ?.match(/(^\S|\S$)?/g)
13
+ ?.join('')
14
+ .toUpperCase()
15
+ );
12
16
  }
13
17
  };
14
18