@100mslive/roomkit-react 0.3.1 → 0.3.2-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  theme,
63
63
  useBorderAudioLevel,
64
64
  useTheme
65
- } from "./chunk-3OCZREZ3.js";
65
+ } from "./chunk-E7AEJ446.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -2967,7 +2967,7 @@
2967
2967
  "format": "esm"
2968
2968
  },
2969
2969
  "src/Prebuilt/common/hooks.ts": {
2970
- "bytes": 4502,
2970
+ "bytes": 5233,
2971
2971
  "imports": [
2972
2972
  {
2973
2973
  "path": "react",
@@ -2979,6 +2979,11 @@
2979
2979
  "kind": "import-statement",
2980
2980
  "external": true
2981
2981
  },
2982
+ {
2983
+ "path": "@100mslive/hls-player",
2984
+ "kind": "import-statement",
2985
+ "external": true
2986
+ },
2982
2987
  {
2983
2988
  "path": "@100mslive/types-prebuilt/elements/join_form",
2984
2989
  "kind": "import-statement",
@@ -3013,6 +3018,11 @@
3013
3018
  "path": "<define:process.env>",
3014
3019
  "kind": "import-statement",
3015
3020
  "external": true
3021
+ },
3022
+ {
3023
+ "path": "<runtime>",
3024
+ "kind": "import-statement",
3025
+ "external": true
3016
3026
  }
3017
3027
  ],
3018
3028
  "format": "esm"
@@ -4681,7 +4691,7 @@
4681
4691
  "format": "cjs"
4682
4692
  },
4683
4693
  "../hms-video-store/dist/index.js": {
4684
- "bytes": 325880,
4694
+ "bytes": 326171,
4685
4695
  "imports": [
4686
4696
  {
4687
4697
  "path": "../../node_modules/reselect/es/index.js",
@@ -6495,7 +6505,7 @@
6495
6505
  "format": "esm"
6496
6506
  },
6497
6507
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
6498
- "bytes": 8005,
6508
+ "bytes": 8017,
6499
6509
  "imports": [
6500
6510
  {
6501
6511
  "path": "react",
@@ -6623,7 +6633,7 @@
6623
6633
  "format": "esm"
6624
6634
  },
6625
6635
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
6626
- "bytes": 1029,
6636
+ "bytes": 1041,
6627
6637
  "imports": [
6628
6638
  {
6629
6639
  "path": "react",
@@ -6788,7 +6798,7 @@
6788
6798
  "format": "esm"
6789
6799
  },
6790
6800
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
6791
- "bytes": 10090,
6801
+ "bytes": 10102,
6792
6802
  "imports": [
6793
6803
  {
6794
6804
  "path": "react",
@@ -8365,7 +8375,7 @@
8365
8375
  "format": "esm"
8366
8376
  },
8367
8377
  "src/Prebuilt/components/Chat/PinnedMessage.tsx": {
8368
- "bytes": 5026,
8378
+ "bytes": 5099,
8369
8379
  "imports": [
8370
8380
  {
8371
8381
  "path": "react",
@@ -9311,7 +9321,7 @@
9311
9321
  "format": "esm"
9312
9322
  },
9313
9323
  "src/Prebuilt/layouts/SidePane.tsx": {
9314
- "bytes": 6575,
9324
+ "bytes": 6649,
9315
9325
  "imports": [
9316
9326
  {
9317
9327
  "path": "react",
@@ -10029,7 +10039,7 @@
10029
10039
  "format": "esm"
10030
10040
  },
10031
10041
  "src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx": {
10032
- "bytes": 2519,
10042
+ "bytes": 2587,
10033
10043
  "imports": [
10034
10044
  {
10035
10045
  "path": "react",
@@ -10431,7 +10441,7 @@
10431
10441
  "format": "esm"
10432
10442
  },
10433
10443
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx": {
10434
- "bytes": 3065,
10444
+ "bytes": 3118,
10435
10445
  "imports": [
10436
10446
  {
10437
10447
  "path": "react",
@@ -11320,7 +11330,7 @@
11320
11330
  "format": "esm"
11321
11331
  },
11322
11332
  "src/Prebuilt/layouts/HLSView.jsx": {
11323
- "bytes": 26749,
11333
+ "bytes": 27068,
11324
11334
  "imports": [
11325
11335
  {
11326
11336
  "path": "react",
@@ -13612,7 +13622,7 @@
13612
13622
  "imports": [],
13613
13623
  "exports": [],
13614
13624
  "inputs": {},
13615
- "bytes": 3262819
13625
+ "bytes": 3265825
13616
13626
  },
13617
13627
  "dist/index.cjs.js": {
13618
13628
  "imports": [
@@ -16521,7 +16531,7 @@
16521
16531
  "entryPoint": "src/index.ts",
16522
16532
  "inputs": {
16523
16533
  "<define:process.env>": {
16524
- "bytesInOutput": 18211
16534
+ "bytesInOutput": 18234
16525
16535
  },
16526
16536
  "src/Theme/base.config.ts": {
16527
16537
  "bytesInOutput": 6104
@@ -16872,7 +16882,7 @@
16872
16882
  "bytesInOutput": 884
16873
16883
  },
16874
16884
  "src/Prebuilt/common/hooks.ts": {
16875
- "bytesInOutput": 3890
16885
+ "bytesInOutput": 4848
16876
16886
  },
16877
16887
  "src/Prebuilt/components/EmojiReaction.jsx": {
16878
16888
  "bytesInOutput": 3381
@@ -17010,7 +17020,7 @@
17010
17020
  "bytesInOutput": 615
17011
17021
  },
17012
17022
  "../hms-video-store/dist/index.js": {
17013
- "bytesInOutput": 53127
17023
+ "bytesInOutput": 53135
17014
17024
  },
17015
17025
  "src/Prebuilt/components/hooks/usePlaylistMusic.js": {
17016
17026
  "bytesInOutput": 1384
@@ -17121,7 +17131,7 @@
17121
17131
  "bytesInOutput": 1170
17122
17132
  },
17123
17133
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
17124
- "bytesInOutput": 9660
17134
+ "bytesInOutput": 9672
17125
17135
  },
17126
17136
  "src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx": {
17127
17137
  "bytesInOutput": 2802
@@ -17130,7 +17140,7 @@
17130
17140
  "bytesInOutput": 394
17131
17141
  },
17132
17142
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
17133
- "bytesInOutput": 1335
17143
+ "bytesInOutput": 1347
17134
17144
  },
17135
17145
  "src/Prebuilt/components/Polls/common/VoteCount.tsx": {
17136
17146
  "bytesInOutput": 587
@@ -17145,7 +17155,7 @@
17145
17155
  "bytesInOutput": 5422
17146
17156
  },
17147
17157
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
17148
- "bytesInOutput": 10146
17158
+ "bytesInOutput": 10158
17149
17159
  },
17150
17160
  "src/Prebuilt/components/Polls/CreateQuestions/SavedQuestion.tsx": {
17151
17161
  "bytesInOutput": 2034
@@ -17247,7 +17257,7 @@
17247
17257
  "bytesInOutput": 827
17248
17258
  },
17249
17259
  "src/Prebuilt/components/Chat/PinnedMessage.tsx": {
17250
- "bytesInOutput": 6106
17260
+ "bytesInOutput": 6242
17251
17261
  },
17252
17262
  "src/Prebuilt/components/Chat/Chat.tsx": {
17253
17263
  "bytesInOutput": 6161
@@ -17295,7 +17305,7 @@
17295
17305
  "bytesInOutput": 8756
17296
17306
  },
17297
17307
  "src/Prebuilt/layouts/SidePane.tsx": {
17298
- "bytesInOutput": 7752
17308
+ "bytesInOutput": 7830
17299
17309
  },
17300
17310
  "src/Prebuilt/components/Chip.tsx": {
17301
17311
  "bytesInOutput": 1118
@@ -17334,7 +17344,7 @@
17334
17344
  "bytesInOutput": 2453
17335
17345
  },
17336
17346
  "src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx": {
17337
- "bytesInOutput": 3020
17347
+ "bytesInOutput": 3116
17338
17348
  },
17339
17349
  "src/Prebuilt/components/SecondaryTiles.tsx": {
17340
17350
  "bytesInOutput": 3143
@@ -17355,7 +17365,7 @@
17355
17365
  "bytesInOutput": 5583
17356
17366
  },
17357
17367
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx": {
17358
- "bytesInOutput": 3419
17368
+ "bytesInOutput": 3475
17359
17369
  },
17360
17370
  "src/Prebuilt/common/PeersSorter.ts": {
17361
17371
  "bytesInOutput": 3604
@@ -17427,7 +17437,7 @@
17427
17437
  "bytesInOutput": 2886
17428
17438
  },
17429
17439
  "src/Prebuilt/layouts/HLSView.jsx": {
17430
- "bytesInOutput": 31215
17440
+ "bytesInOutput": 31666
17431
17441
  },
17432
17442
  "src/Prebuilt/layouts/VideoStreamingSection.tsx": {
17433
17443
  "bytesInOutput": 5017
@@ -17565,7 +17575,7 @@
17565
17575
  "bytesInOutput": 2980
17566
17576
  }
17567
17577
  },
17568
- "bytes": 1550150
17578
+ "bytes": 1551992
17569
17579
  }
17570
17580
  }
17571
17581
  }
@@ -2967,7 +2967,7 @@
2967
2967
  "format": "esm"
2968
2968
  },
2969
2969
  "src/Prebuilt/common/hooks.ts": {
2970
- "bytes": 4502,
2970
+ "bytes": 5233,
2971
2971
  "imports": [
2972
2972
  {
2973
2973
  "path": "react",
@@ -2979,6 +2979,11 @@
2979
2979
  "kind": "import-statement",
2980
2980
  "external": true
2981
2981
  },
2982
+ {
2983
+ "path": "@100mslive/hls-player",
2984
+ "kind": "import-statement",
2985
+ "external": true
2986
+ },
2982
2987
  {
2983
2988
  "path": "@100mslive/types-prebuilt/elements/join_form",
2984
2989
  "kind": "import-statement",
@@ -3013,6 +3018,11 @@
3013
3018
  "path": "<define:process.env>",
3014
3019
  "kind": "import-statement",
3015
3020
  "external": true
3021
+ },
3022
+ {
3023
+ "path": "<runtime>",
3024
+ "kind": "import-statement",
3025
+ "external": true
3016
3026
  }
3017
3027
  ],
3018
3028
  "format": "esm"
@@ -4681,7 +4691,7 @@
4681
4691
  "format": "cjs"
4682
4692
  },
4683
4693
  "../hms-video-store/dist/index.js": {
4684
- "bytes": 325880,
4694
+ "bytes": 326171,
4685
4695
  "imports": [
4686
4696
  {
4687
4697
  "path": "../../node_modules/reselect/es/index.js",
@@ -6495,7 +6505,7 @@
6495
6505
  "format": "esm"
6496
6506
  },
6497
6507
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
6498
- "bytes": 8005,
6508
+ "bytes": 8017,
6499
6509
  "imports": [
6500
6510
  {
6501
6511
  "path": "react",
@@ -6623,7 +6633,7 @@
6623
6633
  "format": "esm"
6624
6634
  },
6625
6635
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
6626
- "bytes": 1029,
6636
+ "bytes": 1041,
6627
6637
  "imports": [
6628
6638
  {
6629
6639
  "path": "react",
@@ -6788,7 +6798,7 @@
6788
6798
  "format": "esm"
6789
6799
  },
6790
6800
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
6791
- "bytes": 10090,
6801
+ "bytes": 10102,
6792
6802
  "imports": [
6793
6803
  {
6794
6804
  "path": "react",
@@ -8365,7 +8375,7 @@
8365
8375
  "format": "esm"
8366
8376
  },
8367
8377
  "src/Prebuilt/components/Chat/PinnedMessage.tsx": {
8368
- "bytes": 5026,
8378
+ "bytes": 5099,
8369
8379
  "imports": [
8370
8380
  {
8371
8381
  "path": "react",
@@ -9311,7 +9321,7 @@
9311
9321
  "format": "esm"
9312
9322
  },
9313
9323
  "src/Prebuilt/layouts/SidePane.tsx": {
9314
- "bytes": 6575,
9324
+ "bytes": 6649,
9315
9325
  "imports": [
9316
9326
  {
9317
9327
  "path": "react",
@@ -10029,7 +10039,7 @@
10029
10039
  "format": "esm"
10030
10040
  },
10031
10041
  "src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx": {
10032
- "bytes": 2519,
10042
+ "bytes": 2587,
10033
10043
  "imports": [
10034
10044
  {
10035
10045
  "path": "react",
@@ -10431,7 +10441,7 @@
10431
10441
  "format": "esm"
10432
10442
  },
10433
10443
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx": {
10434
- "bytes": 3065,
10444
+ "bytes": 3118,
10435
10445
  "imports": [
10436
10446
  {
10437
10447
  "path": "react",
@@ -11320,7 +11330,7 @@
11320
11330
  "format": "esm"
11321
11331
  },
11322
11332
  "src/Prebuilt/layouts/HLSView.jsx": {
11323
- "bytes": 26749,
11333
+ "bytes": 27068,
11324
11334
  "imports": [
11325
11335
  {
11326
11336
  "path": "react",
@@ -13617,7 +13627,7 @@
13617
13627
  "dist/index.js": {
13618
13628
  "imports": [
13619
13629
  {
13620
- "path": "dist/chunk-3OCZREZ3.js",
13630
+ "path": "dist/chunk-E7AEJ446.js",
13621
13631
  "kind": "import-statement"
13622
13632
  }
13623
13633
  ],
@@ -13690,16 +13700,16 @@
13690
13700
  "inputs": {},
13691
13701
  "bytes": 1822
13692
13702
  },
13693
- "dist/HLSView-7WNDXOED.js.map": {
13703
+ "dist/HLSView-C5XHK2VY.js.map": {
13694
13704
  "imports": [],
13695
13705
  "exports": [],
13696
13706
  "inputs": {},
13697
- "bytes": 89215
13707
+ "bytes": 89757
13698
13708
  },
13699
- "dist/HLSView-7WNDXOED.js": {
13709
+ "dist/HLSView-C5XHK2VY.js": {
13700
13710
  "imports": [
13701
13711
  {
13702
- "path": "dist/chunk-3OCZREZ3.js",
13712
+ "path": "dist/chunk-E7AEJ446.js",
13703
13713
  "kind": "import-statement"
13704
13714
  },
13705
13715
  {
@@ -13864,7 +13874,7 @@
13864
13874
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
13865
13875
  "inputs": {
13866
13876
  "src/Prebuilt/layouts/HLSView.jsx": {
13867
- "bytesInOutput": 25580
13877
+ "bytesInOutput": 25976
13868
13878
  },
13869
13879
  "src/Prebuilt/components/HlsStatsOverlay.jsx": {
13870
13880
  "bytesInOutput": 3521
@@ -13915,15 +13925,15 @@
13915
13925
  "bytesInOutput": 2101
13916
13926
  }
13917
13927
  },
13918
- "bytes": 54624
13928
+ "bytes": 55042
13919
13929
  },
13920
- "dist/chunk-3OCZREZ3.js.map": {
13930
+ "dist/chunk-E7AEJ446.js.map": {
13921
13931
  "imports": [],
13922
13932
  "exports": [],
13923
13933
  "inputs": {},
13924
- "bytes": 3169011
13934
+ "bytes": 3171400
13925
13935
  },
13926
- "dist/chunk-3OCZREZ3.js": {
13936
+ "dist/chunk-E7AEJ446.js": {
13927
13937
  "imports": [
13928
13938
  {
13929
13939
  "path": "react",
@@ -16291,7 +16301,7 @@
16291
16301
  "external": true
16292
16302
  },
16293
16303
  {
16294
- "path": "dist/HLSView-7WNDXOED.js",
16304
+ "path": "dist/HLSView-C5XHK2VY.js",
16295
16305
  "kind": "dynamic-import"
16296
16306
  },
16297
16307
  {
@@ -16758,6 +16768,7 @@
16758
16768
  "useBorderAudioLevel",
16759
16769
  "useIsLandscape",
16760
16770
  "useIsSidepaneTypeOpen",
16771
+ "useKeyboardHandler",
16761
16772
  "useRoomLayoutConferencingScreen",
16762
16773
  "useRoomLayoutHeader",
16763
16774
  "useSidepaneToggle",
@@ -16765,7 +16776,7 @@
16765
16776
  ],
16766
16777
  "inputs": {
16767
16778
  "<define:process.env>": {
16768
- "bytesInOutput": 18211
16779
+ "bytesInOutput": 18234
16769
16780
  },
16770
16781
  "../../node_modules/lodash/lodash.js": {
16771
16782
  "bytesInOutput": 224291
@@ -17116,7 +17127,7 @@
17116
17127
  "bytesInOutput": 606
17117
17128
  },
17118
17129
  "src/Prebuilt/common/hooks.ts": {
17119
- "bytesInOutput": 3290
17130
+ "bytesInOutput": 4136
17120
17131
  },
17121
17132
  "src/Prebuilt/components/Leave/LeaveRoom.tsx": {
17122
17133
  "bytesInOutput": 2454
@@ -17167,7 +17178,7 @@
17167
17178
  "bytesInOutput": 4547
17168
17179
  },
17169
17180
  "src/Prebuilt/components/Streaming/ResolutionInput.jsx": {
17170
- "bytesInOutput": 2940
17181
+ "bytesInOutput": 2942
17171
17182
  },
17172
17183
  "src/Prebuilt/primitives/DialogContent.jsx": {
17173
17184
  "bytesInOutput": 7700
@@ -17203,7 +17214,7 @@
17203
17214
  "bytesInOutput": 10031
17204
17215
  },
17205
17216
  "../hms-video-store/dist/index.js": {
17206
- "bytesInOutput": 48556
17217
+ "bytesInOutput": 48564
17207
17218
  },
17208
17219
  "../../node_modules/reselect/es/index.js": {
17209
17220
  "bytesInOutput": 2539
@@ -17338,13 +17349,13 @@
17338
17349
  "bytesInOutput": 9637
17339
17350
  },
17340
17351
  "src/Prebuilt/layouts/SidePane.tsx": {
17341
- "bytesInOutput": 6271
17352
+ "bytesInOutput": 6345
17342
17353
  },
17343
17354
  "src/Prebuilt/components/Polls/Polls.tsx": {
17344
17355
  "bytesInOutput": 735
17345
17356
  },
17346
17357
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
17347
- "bytesInOutput": 7987
17358
+ "bytesInOutput": 7999
17348
17359
  },
17349
17360
  "src/Prebuilt/components/Streaming/Common.jsx": {
17350
17361
  "bytesInOutput": 2247
@@ -17356,7 +17367,7 @@
17356
17367
  "bytesInOutput": 5110
17357
17368
  },
17358
17369
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
17359
- "bytesInOutput": 8169
17370
+ "bytesInOutput": 8181
17360
17371
  },
17361
17372
  "src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx": {
17362
17373
  "bytesInOutput": 2083
@@ -17368,7 +17379,7 @@
17368
17379
  "bytesInOutput": 3664
17369
17380
  },
17370
17381
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
17371
- "bytesInOutput": 888
17382
+ "bytesInOutput": 900
17372
17383
  },
17373
17384
  "src/Prebuilt/components/Polls/common/VoteCount.tsx": {
17374
17385
  "bytesInOutput": 361
@@ -17473,7 +17484,7 @@
17473
17484
  "bytesInOutput": 2916
17474
17485
  },
17475
17486
  "src/Prebuilt/components/Chat/PinnedMessage.tsx": {
17476
- "bytesInOutput": 4944
17487
+ "bytesInOutput": 5076
17477
17488
  },
17478
17489
  "src/Prebuilt/components/Chat/ArrowNavigation.tsx": {
17479
17490
  "bytesInOutput": 1021
@@ -17563,13 +17574,13 @@
17563
17574
  "bytesInOutput": 2494
17564
17575
  },
17565
17576
  "src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx": {
17566
- "bytesInOutput": 2339
17577
+ "bytesInOutput": 2431
17567
17578
  },
17568
17579
  "src/Prebuilt/components/hooks/useRoleProminencePeers.tsx": {
17569
17580
  "bytesInOutput": 1046
17570
17581
  },
17571
17582
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx": {
17572
- "bytesInOutput": 2664
17583
+ "bytesInOutput": 2716
17573
17584
  },
17574
17585
  "src/Prebuilt/components/ScreenshareTile.tsx": {
17575
17586
  "bytesInOutput": 4447
@@ -17719,7 +17730,7 @@
17719
17730
  "bytesInOutput": 651
17720
17731
  }
17721
17732
  },
17722
- "bytes": 1298852
17733
+ "bytes": 1300139
17723
17734
  }
17724
17735
  }
17725
17736
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.1",
13
+ "version": "0.3.2-alpha.0",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -82,11 +82,11 @@
82
82
  "react": ">=17.0.2 <19.0.0"
83
83
  },
84
84
  "dependencies": {
85
- "@100mslive/hls-player": "0.3.1",
85
+ "@100mslive/hls-player": "0.3.2-alpha.0",
86
86
  "@100mslive/hms-noise-cancellation": "0.0.0-alpha.1",
87
- "@100mslive/hms-virtual-background": "1.13.1",
88
- "@100mslive/react-icons": "0.10.1",
89
- "@100mslive/react-sdk": "0.10.1",
87
+ "@100mslive/hms-virtual-background": "1.13.2-alpha.0",
88
+ "@100mslive/react-icons": "0.10.2-alpha.0",
89
+ "@100mslive/react-sdk": "0.10.2-alpha.0",
90
90
  "@100mslive/types-prebuilt": "0.12.7",
91
91
  "@emoji-mart/data": "^1.0.6",
92
92
  "@emoji-mart/react": "^1.0.1",
@@ -122,5 +122,5 @@
122
122
  "uuid": "^8.3.2",
123
123
  "worker-timers": "^7.0.40"
124
124
  },
125
- "gitHead": "fff51f4e055e089629a9320b0cb6e79e0245180c"
125
+ "gitHead": "bb718372bf21a6c1945c644902cc208c0fca4a32"
126
126
  }
@@ -1,5 +1,6 @@
1
- import { useEffect, useRef, useState } from 'react';
1
+ import { useCallback, useEffect, useRef, useState } from 'react';
2
2
  import { useMedia } from 'react-use';
3
+ import { HMSHLSPlayer } from '@100mslive/hls-player';
3
4
  import { JoinForm_JoinBtnType } from '@100mslive/types-prebuilt/elements/join_form';
4
5
  import {
5
6
  parsedUserAgent,
@@ -121,3 +122,28 @@ export const useMobileHLSStream = () => {
121
122
  const { screenType } = useRoomLayoutConferencingScreen();
122
123
  return isMobile && screenType === 'hls_live_streaming';
123
124
  };
125
+
126
+ export const useKeyboardHandler = (isPaused: boolean, hlsPlayer: HMSHLSPlayer) => {
127
+ const handleKeyEvent = useCallback(
128
+ async (event: KeyboardEvent) => {
129
+ switch (event.key) {
130
+ case ' ':
131
+ if (isPaused) {
132
+ await hlsPlayer?.play();
133
+ } else {
134
+ hlsPlayer?.pause();
135
+ }
136
+ break;
137
+ case 'ArrowRight':
138
+ hlsPlayer?.seekTo(hlsPlayer?.getVideoElement().currentTime + 10);
139
+ break;
140
+ case 'ArrowLeft':
141
+ hlsPlayer?.seekTo(hlsPlayer?.getVideoElement().currentTime - 10);
142
+ break;
143
+ }
144
+ },
145
+ [hlsPlayer, isPaused],
146
+ );
147
+
148
+ return handleKeyEvent;
149
+ };
@@ -71,13 +71,14 @@ export const PinnedMessage = () => {
71
71
  <Flex
72
72
  css={{
73
73
  p: '$4',
74
- color: '$on_surface_medium',
75
- bg: isMobile ? 'rgba(0, 0, 0, 0.64)' : '$surface_default',
74
+ color: '$on_surface_high',
75
+ bg: isMobile && elements?.chat?.is_overlay ? 'rgba(0, 0, 0, 0.64)' : '$surface_brighter',
76
76
  r: '$1',
77
77
  gap: '$4',
78
78
  mb: '$8',
79
79
  mt: '$8',
80
80
  flexGrow: 1,
81
+ border: '1px solid $border_bright',
81
82
  }}
82
83
  align="center"
83
84
  justify="between"
@@ -98,7 +99,7 @@ export const PinnedMessage = () => {
98
99
  >
99
100
  <Text
100
101
  variant="sm"
101
- css={{ color: '$on_surface_medium' }}
102
+ css={{ color: '$on_surface_high' }}
102
103
  {...swipeHandlers}
103
104
  title={pinnedMessages[pinnedMessageIndex]?.text}
104
105
  >
@@ -140,7 +140,7 @@ const AddMenu = () => {
140
140
  type="text"
141
141
  placeholder="Enter a name to continue"
142
142
  value={title}
143
- onChange={event => setTitle(event.target.value)}
143
+ onChange={event => setTitle(event.target.value.trimStart())}
144
144
  css={{
145
145
  backgroundColor: '$surface_bright',
146
146
  border: '1px solid $border_default',
@@ -159,7 +159,7 @@ export const QuestionForm = ({
159
159
  maxHeight: '$32',
160
160
  }}
161
161
  value={text}
162
- onChange={event => setText(event.target.value)}
162
+ onChange={event => setText(event.target.value.trimStart())}
163
163
  />
164
164
  <Text variant="xs" css={{ color: '$on_surface_medium', textAlign: 'end', mt: '$4' }}>
165
165
  {text?.length || 0}/1024
@@ -27,7 +27,7 @@ export const OptionInputWithDelete = ({
27
27
  }}
28
28
  value={option?.text || ''}
29
29
  key={index}
30
- onChange={event => handleOptionTextChange(index, event.target.value)}
30
+ onChange={event => handleOptionTextChange(index, event.target.value.trimStart())}
31
31
  />
32
32
  <IconButton onClick={() => removeOption(index)} css={{ bg: 'transparent', border: 'none' }}>
33
33
  <TrashIcon />
@@ -36,6 +36,7 @@ const SecondarySection = ({
36
36
  hasSidebar,
37
37
  }: React.PropsWithChildren<{ tiles: TrackWithPeerAndDimensions[]; edgeToEdge?: boolean; hasSidebar?: boolean }>) => {
38
38
  const tileLayoutProps = useVideoTileContext();
39
+ console.log('secondary section', { tilesLength: tiles?.length });
39
40
  if (!tiles?.length) {
40
41
  return null;
41
42
  }
@@ -55,6 +55,8 @@ export const ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge
55
55
  };
56
56
  }, [activeSharePeer?.id, isMobile, setActiveScreenSharePeer]);
57
57
 
58
+ console.log({ activeSharePeer, secondaryPeers });
59
+
58
60
  return (
59
61
  <ProminenceLayout.Root edgeToEdge={edgeToEdge} hasSidebar={hasSidebar}>
60
62
  <ProminenceLayout.ProminentSection>