@100mslive/roomkit-react 0.3.19-alpha.8 → 0.3.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. package/dist/{HLSView-72N5Y4QP.js → HLSView-GYB2QDIN.js} +2 -2
  2. package/dist/{HLSView-Y4ED3H3Z.css → HLSView-LNJLFWK4.css} +3 -3
  3. package/dist/{HLSView-Y4ED3H3Z.css.map → HLSView-LNJLFWK4.css.map} +1 -1
  4. package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +1 -0
  5. package/dist/{chunk-P323KKZF.js → chunk-DIIFM6TW.js} +145 -127
  6. package/dist/chunk-DIIFM6TW.js.map +7 -0
  7. package/dist/index.cjs.css +2 -2
  8. package/dist/index.cjs.css.map +1 -1
  9. package/dist/index.cjs.js +574 -563
  10. package/dist/index.cjs.js.map +4 -4
  11. package/dist/index.css +2 -2
  12. package/dist/index.css.map +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/meta.cjs.json +46 -65
  15. package/dist/meta.esbuild.json +58 -77
  16. package/package.json +7 -7
  17. package/src/Prebuilt/AppStateContext.tsx +8 -5
  18. package/src/Prebuilt/common/PeersSorter.ts +2 -1
  19. package/src/Prebuilt/components/EndCallFeedback/Feedback.tsx +3 -2
  20. package/src/Prebuilt/components/EndCallFeedback/FeedbackForm.tsx +16 -6
  21. package/src/Prebuilt/components/EndCallFeedback/ThankyouView.tsx +1 -1
  22. package/src/Prebuilt/components/InsetTile.tsx +1 -1
  23. package/src/Prebuilt/components/Leave/LeaveSessionContent.tsx +3 -1
  24. package/src/Prebuilt/components/PIP/PIPChat.tsx +11 -4
  25. package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +15 -3
  26. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +21 -16
  27. package/src/Prebuilt/plugins/CaptionsViewer.tsx +4 -1
  28. package/dist/Prebuilt/components/VirtualBackground/util.d.ts +0 -1
  29. package/dist/chunk-P323KKZF.js.map +0 -7
  30. package/src/Prebuilt/components/VirtualBackground/util.tsx +0 -13
  31. /package/dist/{HLSView-72N5Y4QP.js.map → HLSView-GYB2QDIN.js.map} +0 -0
@@ -2390,13 +2390,23 @@
2390
2390
  "format": "esm"
2391
2391
  },
2392
2392
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
2393
- "bytes": 3223,
2393
+ "bytes": 3598,
2394
2394
  "imports": [
2395
2395
  {
2396
2396
  "path": "@100mslive/hms-virtual-background/hmsvbplugin",
2397
2397
  "kind": "import-statement",
2398
2398
  "external": true
2399
2399
  },
2400
+ {
2401
+ "path": "@100mslive/react-sdk",
2402
+ "kind": "import-statement",
2403
+ "external": true
2404
+ },
2405
+ {
2406
+ "path": "src/Prebuilt/common/constants.ts",
2407
+ "kind": "import-statement",
2408
+ "original": "../../common/constants"
2409
+ },
2400
2410
  {
2401
2411
  "path": "<define:process.env>",
2402
2412
  "kind": "import-statement",
@@ -2515,7 +2525,7 @@
2515
2525
  "format": "esm"
2516
2526
  },
2517
2527
  "src/Prebuilt/AppStateContext.tsx": {
2518
- "bytes": 3380,
2528
+ "bytes": 3531,
2519
2529
  "imports": [
2520
2530
  {
2521
2531
  "path": "react",
@@ -3561,7 +3571,7 @@
3561
3571
  "format": "esm"
3562
3572
  },
3563
3573
  "src/Prebuilt/components/Leave/LeaveSessionContent.tsx": {
3564
- "bytes": 1759,
3574
+ "bytes": 1786,
3565
3575
  "imports": [
3566
3576
  {
3567
3577
  "path": "react",
@@ -4342,7 +4352,7 @@
4342
4352
  "format": "esm"
4343
4353
  },
4344
4354
  "src/Prebuilt/components/PIP/PIPChat.tsx": {
4345
- "bytes": 10270,
4355
+ "bytes": 10417,
4346
4356
  "imports": [
4347
4357
  {
4348
4358
  "path": "react",
@@ -5739,7 +5749,7 @@
5739
5749
  "format": "cjs"
5740
5750
  },
5741
5751
  "../hms-video-store/dist/index.js": {
5742
- "bytes": 367247,
5752
+ "bytes": 367512,
5743
5753
  "imports": [
5744
5754
  {
5745
5755
  "path": "../../node_modules/reselect/es/index.js",
@@ -9876,27 +9886,6 @@
9876
9886
  ],
9877
9887
  "format": "esm"
9878
9888
  },
9879
- "src/Prebuilt/components/VirtualBackground/util.tsx": {
9880
- "bytes": 384,
9881
- "imports": [
9882
- {
9883
- "path": "@100mslive/react-sdk",
9884
- "kind": "import-statement",
9885
- "external": true
9886
- },
9887
- {
9888
- "path": "src/Prebuilt/common/constants.ts",
9889
- "kind": "import-statement",
9890
- "original": "../../common/constants"
9891
- },
9892
- {
9893
- "path": "<define:process.env>",
9894
- "kind": "import-statement",
9895
- "external": true
9896
- }
9897
- ],
9898
- "format": "esm"
9899
- },
9900
9889
  "src/Prebuilt/components/VirtualBackground/VBOption.tsx": {
9901
9890
  "bytes": 1248,
9902
9891
  "imports": [
@@ -9970,7 +9959,7 @@
9970
9959
  "format": "esm"
9971
9960
  },
9972
9961
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
9973
- "bytes": 8800,
9962
+ "bytes": 8900,
9974
9963
  "imports": [
9975
9964
  {
9976
9965
  "path": "react",
@@ -10017,11 +10006,6 @@
10017
10006
  "kind": "import-statement",
10018
10007
  "original": "../../../Text"
10019
10008
  },
10020
- {
10021
- "path": "src/Prebuilt/components/VirtualBackground/util.tsx",
10022
- "kind": "import-statement",
10023
- "original": "./util"
10024
- },
10025
10009
  {
10026
10010
  "path": "src/Prebuilt/components/VirtualBackground/VBCollection.tsx",
10027
10011
  "kind": "import-statement",
@@ -11292,7 +11276,7 @@
11292
11276
  ],
11293
11277
  "format": "esm"
11294
11278
  },
11295
- "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2aa2/tldraw.css": {
11279
+ "../../../../../../../tmp/tmp-2799-ZYtx9hL3ahhi/191d74314533/tldraw.css": {
11296
11280
  "bytes": 80111,
11297
11281
  "imports": [
11298
11282
  {
@@ -11342,7 +11326,7 @@
11342
11326
  }
11343
11327
  ]
11344
11328
  },
11345
- "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2500/index.css": {
11329
+ "../../../../../../../tmp/tmp-2799-ZYtx9hL3ahhi/191d74314391/index.css": {
11346
11330
  "bytes": 597,
11347
11331
  "imports": [
11348
11332
  {
@@ -11351,7 +11335,7 @@
11351
11335
  "external": true
11352
11336
  },
11353
11337
  {
11354
- "path": "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2aa2/tldraw.css",
11338
+ "path": "../../../../../../../tmp/tmp-2799-ZYtx9hL3ahhi/191d74314533/tldraw.css",
11355
11339
  "kind": "import-rule",
11356
11340
  "original": "@tldraw/tldraw/tldraw.css"
11357
11341
  }
@@ -11426,7 +11410,7 @@
11426
11410
  "original": "../../common/constants"
11427
11411
  },
11428
11412
  {
11429
- "path": "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2500/index.css",
11413
+ "path": "../../../../../../../tmp/tmp-2799-ZYtx9hL3ahhi/191d74314391/index.css",
11430
11414
  "kind": "import-statement",
11431
11415
  "original": "@100mslive/hms-whiteboard/index.css"
11432
11416
  },
@@ -11439,7 +11423,7 @@
11439
11423
  "format": "esm"
11440
11424
  },
11441
11425
  "src/Prebuilt/common/PeersSorter.ts": {
11442
- "bytes": 3284,
11426
+ "bytes": 3304,
11443
11427
  "imports": [
11444
11428
  {
11445
11429
  "path": "@100mslive/react-sdk",
@@ -11623,7 +11607,7 @@
11623
11607
  "format": "esm"
11624
11608
  },
11625
11609
  "src/Prebuilt/plugins/CaptionsViewer.tsx": {
11626
- "bytes": 7689,
11610
+ "bytes": 7733,
11627
11611
  "imports": [
11628
11612
  {
11629
11613
  "path": "react",
@@ -13034,7 +13018,7 @@
13034
13018
  "format": "esm"
13035
13019
  },
13036
13020
  "src/Prebuilt/components/EndCallFeedback/FeedbackForm.tsx": {
13037
- "bytes": 10793,
13021
+ "bytes": 11240,
13038
13022
  "imports": [
13039
13023
  {
13040
13024
  "path": "react",
@@ -13130,7 +13114,7 @@
13130
13114
  "format": "esm"
13131
13115
  },
13132
13116
  "src/Prebuilt/components/EndCallFeedback/ThankyouView.tsx": {
13133
- "bytes": 1230,
13117
+ "bytes": 1229,
13134
13118
  "imports": [
13135
13119
  {
13136
13120
  "path": "react",
@@ -13171,7 +13155,7 @@
13171
13155
  "format": "esm"
13172
13156
  },
13173
13157
  "src/Prebuilt/components/EndCallFeedback/Feedback.tsx": {
13174
- "bytes": 1775,
13158
+ "bytes": 1839,
13175
13159
  "imports": [
13176
13160
  {
13177
13161
  "path": "react",
@@ -15414,7 +15398,7 @@
15414
15398
  "dist/index.js": {
15415
15399
  "imports": [
15416
15400
  {
15417
- "path": "dist/chunk-P323KKZF.js",
15401
+ "path": "dist/chunk-DIIFM6TW.js",
15418
15402
  "kind": "import-statement"
15419
15403
  }
15420
15404
  ],
@@ -15490,16 +15474,16 @@
15490
15474
  "inputs": {},
15491
15475
  "bytes": 1882
15492
15476
  },
15493
- "dist/HLSView-72N5Y4QP.js.map": {
15477
+ "dist/HLSView-GYB2QDIN.js.map": {
15494
15478
  "imports": [],
15495
15479
  "exports": [],
15496
15480
  "inputs": {},
15497
15481
  "bytes": 100275
15498
15482
  },
15499
- "dist/HLSView-72N5Y4QP.js": {
15483
+ "dist/HLSView-GYB2QDIN.js": {
15500
15484
  "imports": [
15501
15485
  {
15502
- "path": "dist/chunk-P323KKZF.js",
15486
+ "path": "dist/chunk-DIIFM6TW.js",
15503
15487
  "kind": "import-statement"
15504
15488
  },
15505
15489
  {
@@ -15677,7 +15661,7 @@
15677
15661
  "default"
15678
15662
  ],
15679
15663
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
15680
- "cssBundle": "dist/HLSView-Y4ED3H3Z.css",
15664
+ "cssBundle": "dist/HLSView-LNJLFWK4.css",
15681
15665
  "inputs": {
15682
15666
  "src/Prebuilt/layouts/HLSView.jsx": {
15683
15667
  "bytesInOutput": 27671
@@ -15736,13 +15720,13 @@
15736
15720
  },
15737
15721
  "bytes": 61702
15738
15722
  },
15739
- "dist/chunk-P323KKZF.js.map": {
15723
+ "dist/chunk-DIIFM6TW.js.map": {
15740
15724
  "imports": [],
15741
15725
  "exports": [],
15742
15726
  "inputs": {},
15743
- "bytes": 3518275
15727
+ "bytes": 3520614
15744
15728
  },
15745
- "dist/chunk-P323KKZF.js": {
15729
+ "dist/chunk-DIIFM6TW.js": {
15746
15730
  "imports": [
15747
15731
  {
15748
15732
  "path": "react",
@@ -16199,6 +16183,11 @@
16199
16183
  "kind": "import-statement",
16200
16184
  "external": true
16201
16185
  },
16186
+ {
16187
+ "path": "@100mslive/react-sdk",
16188
+ "kind": "import-statement",
16189
+ "external": true
16190
+ },
16202
16191
  {
16203
16192
  "path": "@100mslive/hms-virtual-background/hmseffectsplugin",
16204
16193
  "kind": "dynamic-import",
@@ -17924,11 +17913,6 @@
17924
17913
  "kind": "import-statement",
17925
17914
  "external": true
17926
17915
  },
17927
- {
17928
- "path": "@100mslive/react-sdk",
17929
- "kind": "import-statement",
17930
- "external": true
17931
- },
17932
17916
  {
17933
17917
  "path": "react",
17934
17918
  "kind": "import-statement",
@@ -18285,7 +18269,7 @@
18285
18269
  "external": true
18286
18270
  },
18287
18271
  {
18288
- "path": "dist/HLSView-72N5Y4QP.js",
18272
+ "path": "dist/HLSView-GYB2QDIN.js",
18289
18273
  "kind": "dynamic-import"
18290
18274
  },
18291
18275
  {
@@ -18904,7 +18888,7 @@
18904
18888
  ],
18905
18889
  "inputs": {
18906
18890
  "<define:process.env>": {
18907
- "bytesInOutput": 18025
18891
+ "bytesInOutput": 17932
18908
18892
  },
18909
18893
  "../../node_modules/lodash/lodash.js": {
18910
18894
  "bytesInOutput": 224301
@@ -18931,7 +18915,7 @@
18931
18915
  "bytesInOutput": 615
18932
18916
  },
18933
18917
  "../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js": {
18934
- "bytesInOutput": 3852
18918
+ "bytesInOutput": 3855
18935
18919
  },
18936
18920
  "../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js": {
18937
18921
  "bytesInOutput": 7632
@@ -19237,10 +19221,10 @@
19237
19221
  "bytesInOutput": 577
19238
19222
  },
19239
19223
  "src/Prebuilt/AppStateContext.tsx": {
19240
- "bytesInOutput": 2781
19224
+ "bytesInOutput": 2958
19241
19225
  },
19242
19226
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
19243
- "bytesInOutput": 3794
19227
+ "bytesInOutput": 4246
19244
19228
  },
19245
19229
  "src/Prebuilt/components/hooks/useRedirectToLeave.tsx": {
19246
19230
  "bytesInOutput": 489
@@ -19330,7 +19314,7 @@
19330
19314
  "bytesInOutput": 645
19331
19315
  },
19332
19316
  "src/Prebuilt/components/Leave/LeaveSessionContent.tsx": {
19333
- "bytesInOutput": 1790
19317
+ "bytesInOutput": 1783
19334
19318
  },
19335
19319
  "src/Prebuilt/components/Leave/MwebLeaveRoom.tsx": {
19336
19320
  "bytesInOutput": 4835
@@ -19351,7 +19335,7 @@
19351
19335
  "bytesInOutput": 2509
19352
19336
  },
19353
19337
  "src/Prebuilt/components/PIP/PIPChat.tsx": {
19354
- "bytesInOutput": 10026
19338
+ "bytesInOutput": 10156
19355
19339
  },
19356
19340
  "src/TextArea/index.tsx": {
19357
19341
  "bytesInOutput": 27
@@ -19447,7 +19431,7 @@
19447
19431
  "bytesInOutput": 9861
19448
19432
  },
19449
19433
  "../hms-video-store/dist/index.js": {
19450
- "bytesInOutput": 52067
19434
+ "bytesInOutput": 52063
19451
19435
  },
19452
19436
  "../../node_modules/reselect/es/index.js": {
19453
19437
  "bytesInOutput": 2539
@@ -19723,10 +19707,7 @@
19723
19707
  "bytesInOutput": 1050
19724
19708
  },
19725
19709
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
19726
- "bytesInOutput": 8570
19727
- },
19728
- "src/Prebuilt/components/VirtualBackground/util.tsx": {
19729
- "bytesInOutput": 449
19710
+ "bytesInOutput": 8754
19730
19711
  },
19731
19712
  "src/Prebuilt/components/VirtualBackground/VBCollection.tsx": {
19732
19713
  "bytesInOutput": 1252
@@ -19800,7 +19781,7 @@
19800
19781
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19801
19782
  "bytesInOutput": 2830
19802
19783
  },
19803
- "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2500/index.css": {
19784
+ "../../../../../../../tmp/tmp-2799-ZYtx9hL3ahhi/191d74314391/index.css": {
19804
19785
  "bytesInOutput": 0
19805
19786
  },
19806
19787
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -19849,13 +19830,13 @@
19849
19830
  "bytesInOutput": 2245
19850
19831
  },
19851
19832
  "src/Prebuilt/components/EndCallFeedback/Feedback.tsx": {
19852
- "bytesInOutput": 1602
19833
+ "bytesInOutput": 1664
19853
19834
  },
19854
19835
  "src/Prebuilt/components/EndCallFeedback/FeedbackForm.tsx": {
19855
- "bytesInOutput": 10143
19836
+ "bytesInOutput": 10583
19856
19837
  },
19857
19838
  "src/Prebuilt/components/EndCallFeedback/ThankyouView.tsx": {
19858
- "bytesInOutput": 1290
19839
+ "bytesInOutput": 1289
19859
19840
  },
19860
19841
  "src/Prebuilt/components/MwebLandscapePrompt.tsx": {
19861
19842
  "bytesInOutput": 2928
@@ -19969,7 +19950,7 @@
19969
19950
  "bytesInOutput": 2628
19970
19951
  }
19971
19952
  },
19972
- "bytes": 1459180
19953
+ "bytes": 1460019
19973
19954
  },
19974
19955
  "dist/index.css.map": {
19975
19956
  "imports": [],
@@ -20031,22 +20012,22 @@
20031
20012
  }
20032
20013
  ],
20033
20014
  "inputs": {
20034
- "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2aa2/tldraw.css": {
20015
+ "../../../../../../../tmp/tmp-2799-ZYtx9hL3ahhi/191d74314533/tldraw.css": {
20035
20016
  "bytesInOutput": 75223
20036
20017
  },
20037
- "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2500/index.css": {
20018
+ "../../../../../../../tmp/tmp-2799-ZYtx9hL3ahhi/191d74314391/index.css": {
20038
20019
  "bytesInOutput": 401
20039
20020
  }
20040
20021
  },
20041
20022
  "bytes": 75901
20042
20023
  },
20043
- "dist/HLSView-Y4ED3H3Z.css.map": {
20024
+ "dist/HLSView-LNJLFWK4.css.map": {
20044
20025
  "imports": [],
20045
20026
  "exports": [],
20046
20027
  "inputs": {},
20047
20028
  "bytes": 122402
20048
20029
  },
20049
- "dist/HLSView-Y4ED3H3Z.css": {
20030
+ "dist/HLSView-LNJLFWK4.css": {
20050
20031
  "imports": [
20051
20032
  {
20052
20033
  "path": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap",
@@ -20100,10 +20081,10 @@
20100
20081
  }
20101
20082
  ],
20102
20083
  "inputs": {
20103
- "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2aa2/tldraw.css": {
20084
+ "../../../../../../../tmp/tmp-2799-ZYtx9hL3ahhi/191d74314533/tldraw.css": {
20104
20085
  "bytesInOutput": 75223
20105
20086
  },
20106
- "../../../../../../../tmp/tmp-2750-L5SPpcs6sxtT/191b31da2500/index.css": {
20087
+ "../../../../../../../tmp/tmp-2799-ZYtx9hL3ahhi/191d74314391/index.css": {
20107
20088
  "bytesInOutput": 401
20108
20089
  }
20109
20090
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.19-alpha.8",
13
+ "version": "0.3.19",
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.19-alpha.8",
78
+ "@100mslive/hls-player": "0.3.19",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.19-alpha.8",
81
- "@100mslive/hms-whiteboard": "0.0.9-alpha.8",
82
- "@100mslive/react-icons": "0.10.19-alpha.8",
83
- "@100mslive/react-sdk": "0.10.19-alpha.8",
80
+ "@100mslive/hms-virtual-background": "1.13.19",
81
+ "@100mslive/hms-whiteboard": "0.0.9",
82
+ "@100mslive/react-icons": "0.10.19",
83
+ "@100mslive/react-sdk": "0.10.19",
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": "da4d46cf000a606d2f48261536d8e00a03c1fdb0"
120
+ "gitHead": "b1bdfdb1965a14fd6b61e9bb8f9a9c48c556fd37"
121
121
  }
@@ -68,12 +68,15 @@ export const useAppStateManager = () => {
68
68
  [HMSRoomState.Disconnected, HMSRoomState.Connecting],
69
69
  [HMSRoomState.Disconnected, HMSRoomState.Reconnecting],
70
70
  () => {
71
- setActiveState(
72
- match({ isLeaveScreenEnabled, isPreviewScreenEnabled })
73
- .with({ isLeaveScreenEnabled: true }, () => PrebuiltStates.LEAVE)
71
+ setActiveState(prevState => {
72
+ return match({ isLeaveScreenEnabled, isPreviewScreenEnabled, prevState })
73
+ .when(
74
+ ({ isLeaveScreenEnabled, prevState }) => isLeaveScreenEnabled && prevState !== PrebuiltStates.LEAVE,
75
+ () => PrebuiltStates.LEAVE,
76
+ )
74
77
  .with({ isPreviewScreenEnabled: true }, () => PrebuiltStates.PREVIEW)
75
- .otherwise(() => PrebuiltStates.MEETING),
76
- );
78
+ .otherwise(() => PrebuiltStates.MEETING);
79
+ });
77
80
  VBHandler.reset();
78
81
  redirectToLeave(1000); // to clear toasts after 1 second
79
82
  },
@@ -7,13 +7,14 @@ class PeersSorter {
7
7
  lruPeers: Set<HMSPeerID>;
8
8
  tilesPerPage!: number;
9
9
  speaker?: HMSPeer;
10
- listeners: Set<(peers: HMSPeer[]) => void> = new Set();
10
+ listeners: Set<(peers: HMSPeer[]) => void>;
11
11
 
12
12
  constructor(store: IStoreReadOnly<any>) {
13
13
  this.store = store;
14
14
  this.peers = new Map();
15
15
  this.lruPeers = new Set();
16
16
  this.speaker = undefined;
17
+ this.listeners = new Set();
17
18
  }
18
19
 
19
20
  setPeersAndTilesPerPage = ({ peers, tilesPerPage }: { peers: HMSPeer[]; tilesPerPage: number }) => {
@@ -42,13 +42,13 @@ export const Feedback = () => {
42
42
  justify="center"
43
43
  css={{
44
44
  pt: '$16',
45
- w: '528px',
45
+ w: isMobile ? '100%' : '528px',
46
46
  }}
47
47
  >
48
48
  {index === FEEBACK_INDEX.INIT ? (
49
49
  <Flex
50
50
  css={{
51
- p: '$12',
51
+ p: isMobile ? '$10' : '$12',
52
52
  border: '1px solid $border_default',
53
53
  bg: '$surface_dim',
54
54
  borderRadius: !isMobile ? '$3' : '$3 $3 0 0',
@@ -56,6 +56,7 @@ export const Feedback = () => {
56
56
  '@md': {
57
57
  position: 'absolute',
58
58
  bottom: '0',
59
+ w: '100%',
59
60
  },
60
61
  }}
61
62
  direction="column"
@@ -39,7 +39,7 @@ export const FeedbackModal = ({
39
39
  return (
40
40
  <Sheet.Root open={index !== FEEBACK_INDEX.INIT} onOpenChange={onOpenChange}>
41
41
  <Sheet.Content
42
- css={{ bg: '$surface_dim', p: '$12' }}
42
+ css={{ bg: '$surface_dim', p: '$10', overflowY: 'auto' }}
43
43
  onPointerDownOutside={avoidDefaultDomBehavior}
44
44
  onInteractOutside={avoidDefaultDomBehavior}
45
45
  >
@@ -75,6 +75,7 @@ export const FeedbackContent = ({
75
75
  }) => {
76
76
  const { feedback } = useRoomLayoutLeaveScreen();
77
77
  const { endpoints } = useHMSPrebuiltContext();
78
+ const isMobile = useMedia(cssConfig.media.md);
78
79
  const hmsActions = useHMSActions();
79
80
  const [comment, setComment] = useState('');
80
81
  const [selectedReasons, setSelectedReasons] = useState(new Set<number>());
@@ -95,7 +96,7 @@ export const FeedbackContent = ({
95
96
  const reasons = [...selectedReasons].map((value: number) => ratings[indexSelected]?.reasons?.[value] || '');
96
97
  await hmsActions.submitSessionFeedback(
97
98
  {
98
- question: ratings[indexSelected].question,
99
+ question: `${feedback?.title} | ${ratings[indexSelected].question || ''}`,
99
100
  rating: ratings[indexSelected].value || 1,
100
101
  min_rating: 1,
101
102
  max_rating: ratings.length,
@@ -139,7 +140,7 @@ export const FeedbackContent = ({
139
140
  type="submit"
140
141
  icon
141
142
  css={{
142
- alignSelf: 'end',
143
+ alignSelf: isMobile ? '' : 'end',
143
144
  }}
144
145
  onClick={submitFeedback}
145
146
  >
@@ -157,6 +158,7 @@ export const FeedbackHeader = ({
157
158
  ratings: Rating[];
158
159
  indexSelected?: number;
159
160
  }) => {
161
+ const isMobile = useMedia(cssConfig.media.md);
160
162
  const { feedback } = useRoomLayoutLeaveScreen();
161
163
  return (
162
164
  <>
@@ -168,7 +170,7 @@ export const FeedbackHeader = ({
168
170
  }}
169
171
  >
170
172
  <Text
171
- variant="h5"
173
+ variant={isMobile ? 'h6' : 'h5'}
172
174
  css={{
173
175
  c: '$on_surface_high',
174
176
  fontStyle: 'normal',
@@ -177,7 +179,7 @@ export const FeedbackHeader = ({
177
179
  {feedback?.title || 'How was your experience?'}
178
180
  </Text>
179
181
  <Text
180
- variant="body1"
182
+ variant={isMobile ? 'body2' : 'body1'}
181
183
  css={{
182
184
  c: '$on_surface_medium',
183
185
  opacity: 0.9,
@@ -192,9 +194,13 @@ export const FeedbackHeader = ({
192
194
  ) : null}
193
195
  </Flex>
194
196
  <Flex
197
+ justify="between"
195
198
  css={{
196
199
  gap: '$17',
197
200
  c: '$on_surface_high',
201
+ '@md': {
202
+ gap: '0',
203
+ },
198
204
  }}
199
205
  >
200
206
  {ratings.map((element, index) => {
@@ -219,12 +225,15 @@ export const FeedbackHeader = ({
219
225
  pb: '$1',
220
226
  cursor: 'pointer',
221
227
  opacity: indexSelected === index || indexSelected === FEEBACK_INDEX.INIT ? 1 : 0.2,
228
+ '@md': {
229
+ fontSize: '$h5',
230
+ },
222
231
  }}
223
232
  >
224
233
  {element.emoji}
225
234
  </Text>
226
235
  <Text
227
- variant="body1"
236
+ variant={isMobile ? 'body2' : 'body1'}
228
237
  css={{
229
238
  c:
230
239
  indexSelected === index || indexSelected === FEEBACK_INDEX.INIT
@@ -319,6 +328,7 @@ export const FeedbackForm = ({
319
328
  </Checkbox.Indicator>
320
329
  </Checkbox.Root>
321
330
  <Label
331
+ htmlFor={`${option}-${index}`}
322
332
  css={{
323
333
  color: '$on_surface_high',
324
334
  fontSize: '$sm',
@@ -27,7 +27,7 @@ export const ThankyouView = () => {
27
27
  >
28
28
  <UserMusicIcon width="64px" height="64px" />
29
29
  <Flex direction="column" align={isMobile ? 'center' : 'start'}>
30
- <Text variant="h5">Thank you for your feedback!</Text>
30
+ <Text variant="h5">Thank you for your feedback</Text>
31
31
  <Text
32
32
  variant="body1"
33
33
  css={{
@@ -100,7 +100,7 @@ export const InsetTile = ({ peerId }: { peerId?: string }) => {
100
100
  position: 'absolute',
101
101
  bottom: 0,
102
102
  right: 0,
103
- zIndex: 11,
103
+ zIndex: 10,
104
104
  boxShadow: '0 0 8px 0 rgba(0,0,0,0.3)',
105
105
  r: '$2',
106
106
  ...(!minimised
@@ -47,7 +47,9 @@ export const LeaveSessionContent = ({
47
47
  <Button
48
48
  variant="danger"
49
49
  css={{ w: '100%' }}
50
- onClick={async () => await leaveRoom()}
50
+ onClick={async () => {
51
+ await leaveRoom();
52
+ }}
51
53
  id="leaveRoom"
52
54
  data-testid="leave_room"
53
55
  >
@@ -50,7 +50,10 @@ export const PIPChat = () => {
50
50
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
51
51
  const { elements } = useRoomLayoutConferencingScreen();
52
52
  const message_placeholder = elements?.chat?.message_placeholder || 'Send a message';
53
- const canSendChatMessages = !!elements?.chat?.public_chat_enabled || !!elements?.chat?.roles_whitelist?.length;
53
+ const canSendChatMessages =
54
+ !!elements?.chat?.public_chat_enabled ||
55
+ !!elements?.chat?.roles_whitelist?.length ||
56
+ !!elements?.chat?.private_chat_enabled;
54
57
 
55
58
  const getChatStatus = useCallback(() => {
56
59
  if (isLocalPeerBlacklisted) return "You've been blocked from sending messages";
@@ -114,9 +117,13 @@ export const PIPChat = () => {
114
117
  <Text variant="h5" css={{ mt: '$8', c: '$on_surface_high' }}>
115
118
  {canSendChatMessages ? 'Start a conversation' : 'No messages yet'}
116
119
  </Text>
117
- <Text variant="sm" style={{ maxWidth: '80%', textAlign: 'center', marginTop: '4px' }}>
118
- There are no messages here yet. Start a conversation by sending a message.
119
- </Text>
120
+ {canSendChatMessages ? (
121
+ <Text variant="sm" style={{ maxWidth: '80%', textAlign: 'center', marginTop: '4px' }}>
122
+ There are no messages here yet. Start a conversation by sending a message.
123
+ </Text>
124
+ ) : (
125
+ ''
126
+ )}
120
127
  </div>
121
128
  ) : (
122
129
  filteredMessages.map(message => (