@100mslive/roomkit-react 0.3.1-alpha.4 → 0.3.1-alpha.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -2967,7 +2967,7 @@
2967
2967
  "format": "esm"
2968
2968
  },
2969
2969
  "src/Prebuilt/common/hooks.ts": {
2970
- "bytes": 5233,
2970
+ "bytes": 4502,
2971
2971
  "imports": [
2972
2972
  {
2973
2973
  "path": "react",
@@ -2979,11 +2979,6 @@
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
- },
2987
2982
  {
2988
2983
  "path": "@100mslive/types-prebuilt/elements/join_form",
2989
2984
  "kind": "import-statement",
@@ -3018,11 +3013,6 @@
3018
3013
  "path": "<define:process.env>",
3019
3014
  "kind": "import-statement",
3020
3015
  "external": true
3021
- },
3022
- {
3023
- "path": "<runtime>",
3024
- "kind": "import-statement",
3025
- "external": true
3026
3016
  }
3027
3017
  ],
3028
3018
  "format": "esm"
@@ -4691,7 +4681,7 @@
4691
4681
  "format": "cjs"
4692
4682
  },
4693
4683
  "../hms-video-store/dist/index.js": {
4694
- "bytes": 326171,
4684
+ "bytes": 325888,
4695
4685
  "imports": [
4696
4686
  {
4697
4687
  "path": "../../node_modules/reselect/es/index.js",
@@ -6505,7 +6495,7 @@
6505
6495
  "format": "esm"
6506
6496
  },
6507
6497
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
6508
- "bytes": 8017,
6498
+ "bytes": 8005,
6509
6499
  "imports": [
6510
6500
  {
6511
6501
  "path": "react",
@@ -6633,7 +6623,7 @@
6633
6623
  "format": "esm"
6634
6624
  },
6635
6625
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
6636
- "bytes": 1041,
6626
+ "bytes": 1029,
6637
6627
  "imports": [
6638
6628
  {
6639
6629
  "path": "react",
@@ -6798,7 +6788,7 @@
6798
6788
  "format": "esm"
6799
6789
  },
6800
6790
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
6801
- "bytes": 10102,
6791
+ "bytes": 10090,
6802
6792
  "imports": [
6803
6793
  {
6804
6794
  "path": "react",
@@ -8375,7 +8365,7 @@
8375
8365
  "format": "esm"
8376
8366
  },
8377
8367
  "src/Prebuilt/components/Chat/PinnedMessage.tsx": {
8378
- "bytes": 5099,
8368
+ "bytes": 5026,
8379
8369
  "imports": [
8380
8370
  {
8381
8371
  "path": "react",
@@ -9321,7 +9311,7 @@
9321
9311
  "format": "esm"
9322
9312
  },
9323
9313
  "src/Prebuilt/layouts/SidePane.tsx": {
9324
- "bytes": 6649,
9314
+ "bytes": 6575,
9325
9315
  "imports": [
9326
9316
  {
9327
9317
  "path": "react",
@@ -10039,7 +10029,7 @@
10039
10029
  "format": "esm"
10040
10030
  },
10041
10031
  "src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx": {
10042
- "bytes": 2562,
10032
+ "bytes": 2519,
10043
10033
  "imports": [
10044
10034
  {
10045
10035
  "path": "react",
@@ -10441,7 +10431,7 @@
10441
10431
  "format": "esm"
10442
10432
  },
10443
10433
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx": {
10444
- "bytes": 3118,
10434
+ "bytes": 3065,
10445
10435
  "imports": [
10446
10436
  {
10447
10437
  "path": "react",
@@ -11330,7 +11320,7 @@
11330
11320
  "format": "esm"
11331
11321
  },
11332
11322
  "src/Prebuilt/layouts/HLSView.jsx": {
11333
- "bytes": 27068,
11323
+ "bytes": 26749,
11334
11324
  "imports": [
11335
11325
  {
11336
11326
  "path": "react",
@@ -13622,7 +13612,7 @@
13622
13612
  "imports": [],
13623
13613
  "exports": [],
13624
13614
  "inputs": {},
13625
- "bytes": 3265799
13615
+ "bytes": 3262181
13626
13616
  },
13627
13617
  "dist/index.cjs.js": {
13628
13618
  "imports": [
@@ -16531,7 +16521,7 @@
16531
16521
  "entryPoint": "src/index.ts",
16532
16522
  "inputs": {
16533
16523
  "<define:process.env>": {
16534
- "bytesInOutput": 18255
16524
+ "bytesInOutput": 17280
16535
16525
  },
16536
16526
  "src/Theme/base.config.ts": {
16537
16527
  "bytesInOutput": 6104
@@ -16882,7 +16872,7 @@
16882
16872
  "bytesInOutput": 884
16883
16873
  },
16884
16874
  "src/Prebuilt/common/hooks.ts": {
16885
- "bytesInOutput": 4848
16875
+ "bytesInOutput": 3890
16886
16876
  },
16887
16877
  "src/Prebuilt/components/EmojiReaction.jsx": {
16888
16878
  "bytesInOutput": 3381
@@ -17131,7 +17121,7 @@
17131
17121
  "bytesInOutput": 1170
17132
17122
  },
17133
17123
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
17134
- "bytesInOutput": 9672
17124
+ "bytesInOutput": 9660
17135
17125
  },
17136
17126
  "src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx": {
17137
17127
  "bytesInOutput": 2802
@@ -17140,7 +17130,7 @@
17140
17130
  "bytesInOutput": 394
17141
17131
  },
17142
17132
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
17143
- "bytesInOutput": 1347
17133
+ "bytesInOutput": 1335
17144
17134
  },
17145
17135
  "src/Prebuilt/components/Polls/common/VoteCount.tsx": {
17146
17136
  "bytesInOutput": 587
@@ -17155,7 +17145,7 @@
17155
17145
  "bytesInOutput": 5422
17156
17146
  },
17157
17147
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
17158
- "bytesInOutput": 10158
17148
+ "bytesInOutput": 10146
17159
17149
  },
17160
17150
  "src/Prebuilt/components/Polls/CreateQuestions/SavedQuestion.tsx": {
17161
17151
  "bytesInOutput": 2034
@@ -17257,7 +17247,7 @@
17257
17247
  "bytesInOutput": 827
17258
17248
  },
17259
17249
  "src/Prebuilt/components/Chat/PinnedMessage.tsx": {
17260
- "bytesInOutput": 6242
17250
+ "bytesInOutput": 6106
17261
17251
  },
17262
17252
  "src/Prebuilt/components/Chat/Chat.tsx": {
17263
17253
  "bytesInOutput": 6161
@@ -17305,7 +17295,7 @@
17305
17295
  "bytesInOutput": 8756
17306
17296
  },
17307
17297
  "src/Prebuilt/layouts/SidePane.tsx": {
17308
- "bytesInOutput": 7830
17298
+ "bytesInOutput": 7752
17309
17299
  },
17310
17300
  "src/Prebuilt/components/Chip.tsx": {
17311
17301
  "bytesInOutput": 1118
@@ -17344,7 +17334,7 @@
17344
17334
  "bytesInOutput": 2453
17345
17335
  },
17346
17336
  "src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx": {
17347
- "bytesInOutput": 3094
17337
+ "bytesInOutput": 3020
17348
17338
  },
17349
17339
  "src/Prebuilt/components/SecondaryTiles.tsx": {
17350
17340
  "bytesInOutput": 3143
@@ -17365,7 +17355,7 @@
17365
17355
  "bytesInOutput": 5583
17366
17356
  },
17367
17357
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx": {
17368
- "bytesInOutput": 3475
17358
+ "bytesInOutput": 3419
17369
17359
  },
17370
17360
  "src/Prebuilt/common/PeersSorter.ts": {
17371
17361
  "bytesInOutput": 3604
@@ -17437,7 +17427,7 @@
17437
17427
  "bytesInOutput": 2886
17438
17428
  },
17439
17429
  "src/Prebuilt/layouts/HLSView.jsx": {
17440
- "bytesInOutput": 31666
17430
+ "bytesInOutput": 31215
17441
17431
  },
17442
17432
  "src/Prebuilt/layouts/VideoStreamingSection.tsx": {
17443
17433
  "bytesInOutput": 5017
@@ -17575,7 +17565,7 @@
17575
17565
  "bytesInOutput": 2980
17576
17566
  }
17577
17567
  },
17578
- "bytes": 1551991
17568
+ "bytes": 1549227
17579
17569
  }
17580
17570
  }
17581
17571
  }
@@ -2967,7 +2967,7 @@
2967
2967
  "format": "esm"
2968
2968
  },
2969
2969
  "src/Prebuilt/common/hooks.ts": {
2970
- "bytes": 5233,
2970
+ "bytes": 4502,
2971
2971
  "imports": [
2972
2972
  {
2973
2973
  "path": "react",
@@ -2979,11 +2979,6 @@
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
- },
2987
2982
  {
2988
2983
  "path": "@100mslive/types-prebuilt/elements/join_form",
2989
2984
  "kind": "import-statement",
@@ -3018,11 +3013,6 @@
3018
3013
  "path": "<define:process.env>",
3019
3014
  "kind": "import-statement",
3020
3015
  "external": true
3021
- },
3022
- {
3023
- "path": "<runtime>",
3024
- "kind": "import-statement",
3025
- "external": true
3026
3016
  }
3027
3017
  ],
3028
3018
  "format": "esm"
@@ -4691,7 +4681,7 @@
4691
4681
  "format": "cjs"
4692
4682
  },
4693
4683
  "../hms-video-store/dist/index.js": {
4694
- "bytes": 326171,
4684
+ "bytes": 325888,
4695
4685
  "imports": [
4696
4686
  {
4697
4687
  "path": "../../node_modules/reselect/es/index.js",
@@ -6505,7 +6495,7 @@
6505
6495
  "format": "esm"
6506
6496
  },
6507
6497
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
6508
- "bytes": 8017,
6498
+ "bytes": 8005,
6509
6499
  "imports": [
6510
6500
  {
6511
6501
  "path": "react",
@@ -6633,7 +6623,7 @@
6633
6623
  "format": "esm"
6634
6624
  },
6635
6625
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
6636
- "bytes": 1041,
6626
+ "bytes": 1029,
6637
6627
  "imports": [
6638
6628
  {
6639
6629
  "path": "react",
@@ -6798,7 +6788,7 @@
6798
6788
  "format": "esm"
6799
6789
  },
6800
6790
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
6801
- "bytes": 10102,
6791
+ "bytes": 10090,
6802
6792
  "imports": [
6803
6793
  {
6804
6794
  "path": "react",
@@ -8375,7 +8365,7 @@
8375
8365
  "format": "esm"
8376
8366
  },
8377
8367
  "src/Prebuilt/components/Chat/PinnedMessage.tsx": {
8378
- "bytes": 5099,
8368
+ "bytes": 5026,
8379
8369
  "imports": [
8380
8370
  {
8381
8371
  "path": "react",
@@ -9321,7 +9311,7 @@
9321
9311
  "format": "esm"
9322
9312
  },
9323
9313
  "src/Prebuilt/layouts/SidePane.tsx": {
9324
- "bytes": 6649,
9314
+ "bytes": 6575,
9325
9315
  "imports": [
9326
9316
  {
9327
9317
  "path": "react",
@@ -10039,7 +10029,7 @@
10039
10029
  "format": "esm"
10040
10030
  },
10041
10031
  "src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx": {
10042
- "bytes": 2562,
10032
+ "bytes": 2519,
10043
10033
  "imports": [
10044
10034
  {
10045
10035
  "path": "react",
@@ -10441,7 +10431,7 @@
10441
10431
  "format": "esm"
10442
10432
  },
10443
10433
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx": {
10444
- "bytes": 3118,
10434
+ "bytes": 3065,
10445
10435
  "imports": [
10446
10436
  {
10447
10437
  "path": "react",
@@ -11330,7 +11320,7 @@
11330
11320
  "format": "esm"
11331
11321
  },
11332
11322
  "src/Prebuilt/layouts/HLSView.jsx": {
11333
- "bytes": 27068,
11323
+ "bytes": 26749,
11334
11324
  "imports": [
11335
11325
  {
11336
11326
  "path": "react",
@@ -13627,7 +13617,7 @@
13627
13617
  "dist/index.js": {
13628
13618
  "imports": [
13629
13619
  {
13630
- "path": "dist/chunk-CCYI5RW4.js",
13620
+ "path": "dist/chunk-PAK5JCTI.js",
13631
13621
  "kind": "import-statement"
13632
13622
  }
13633
13623
  ],
@@ -13700,16 +13690,16 @@
13700
13690
  "inputs": {},
13701
13691
  "bytes": 1822
13702
13692
  },
13703
- "dist/HLSView-LVTYUVGB.js.map": {
13693
+ "dist/HLSView-3F4GAV3J.js.map": {
13704
13694
  "imports": [],
13705
13695
  "exports": [],
13706
13696
  "inputs": {},
13707
- "bytes": 89757
13697
+ "bytes": 89215
13708
13698
  },
13709
- "dist/HLSView-LVTYUVGB.js": {
13699
+ "dist/HLSView-3F4GAV3J.js": {
13710
13700
  "imports": [
13711
13701
  {
13712
- "path": "dist/chunk-CCYI5RW4.js",
13702
+ "path": "dist/chunk-PAK5JCTI.js",
13713
13703
  "kind": "import-statement"
13714
13704
  },
13715
13705
  {
@@ -13874,7 +13864,7 @@
13874
13864
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
13875
13865
  "inputs": {
13876
13866
  "src/Prebuilt/layouts/HLSView.jsx": {
13877
- "bytesInOutput": 25976
13867
+ "bytesInOutput": 25580
13878
13868
  },
13879
13869
  "src/Prebuilt/components/HlsStatsOverlay.jsx": {
13880
13870
  "bytesInOutput": 3521
@@ -13925,15 +13915,15 @@
13925
13915
  "bytesInOutput": 2101
13926
13916
  }
13927
13917
  },
13928
- "bytes": 55042
13918
+ "bytes": 54624
13929
13919
  },
13930
- "dist/chunk-CCYI5RW4.js.map": {
13920
+ "dist/chunk-PAK5JCTI.js.map": {
13931
13921
  "imports": [],
13932
13922
  "exports": [],
13933
13923
  "inputs": {},
13934
- "bytes": 3171374
13924
+ "bytes": 3168373
13935
13925
  },
13936
- "dist/chunk-CCYI5RW4.js": {
13926
+ "dist/chunk-PAK5JCTI.js": {
13937
13927
  "imports": [
13938
13928
  {
13939
13929
  "path": "react",
@@ -16301,7 +16291,7 @@
16301
16291
  "external": true
16302
16292
  },
16303
16293
  {
16304
- "path": "dist/HLSView-LVTYUVGB.js",
16294
+ "path": "dist/HLSView-3F4GAV3J.js",
16305
16295
  "kind": "dynamic-import"
16306
16296
  },
16307
16297
  {
@@ -16768,7 +16758,6 @@
16768
16758
  "useBorderAudioLevel",
16769
16759
  "useIsLandscape",
16770
16760
  "useIsSidepaneTypeOpen",
16771
- "useKeyboardHandler",
16772
16761
  "useRoomLayoutConferencingScreen",
16773
16762
  "useRoomLayoutHeader",
16774
16763
  "useSidepaneToggle",
@@ -16776,7 +16765,7 @@
16776
16765
  ],
16777
16766
  "inputs": {
16778
16767
  "<define:process.env>": {
16779
- "bytesInOutput": 18255
16768
+ "bytesInOutput": 17280
16780
16769
  },
16781
16770
  "../../node_modules/lodash/lodash.js": {
16782
16771
  "bytesInOutput": 224291
@@ -17127,7 +17116,7 @@
17127
17116
  "bytesInOutput": 606
17128
17117
  },
17129
17118
  "src/Prebuilt/common/hooks.ts": {
17130
- "bytesInOutput": 4136
17119
+ "bytesInOutput": 3290
17131
17120
  },
17132
17121
  "src/Prebuilt/components/Leave/LeaveRoom.tsx": {
17133
17122
  "bytesInOutput": 2454
@@ -17178,7 +17167,7 @@
17178
17167
  "bytesInOutput": 4547
17179
17168
  },
17180
17169
  "src/Prebuilt/components/Streaming/ResolutionInput.jsx": {
17181
- "bytesInOutput": 2942
17170
+ "bytesInOutput": 2940
17182
17171
  },
17183
17172
  "src/Prebuilt/primitives/DialogContent.jsx": {
17184
17173
  "bytesInOutput": 7700
@@ -17349,13 +17338,13 @@
17349
17338
  "bytesInOutput": 9637
17350
17339
  },
17351
17340
  "src/Prebuilt/layouts/SidePane.tsx": {
17352
- "bytesInOutput": 6345
17341
+ "bytesInOutput": 6271
17353
17342
  },
17354
17343
  "src/Prebuilt/components/Polls/Polls.tsx": {
17355
17344
  "bytesInOutput": 735
17356
17345
  },
17357
17346
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
17358
- "bytesInOutput": 7999
17347
+ "bytesInOutput": 7987
17359
17348
  },
17360
17349
  "src/Prebuilt/components/Streaming/Common.jsx": {
17361
17350
  "bytesInOutput": 2247
@@ -17367,7 +17356,7 @@
17367
17356
  "bytesInOutput": 5110
17368
17357
  },
17369
17358
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
17370
- "bytesInOutput": 8181
17359
+ "bytesInOutput": 8169
17371
17360
  },
17372
17361
  "src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx": {
17373
17362
  "bytesInOutput": 2083
@@ -17379,7 +17368,7 @@
17379
17368
  "bytesInOutput": 3664
17380
17369
  },
17381
17370
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
17382
- "bytesInOutput": 900
17371
+ "bytesInOutput": 888
17383
17372
  },
17384
17373
  "src/Prebuilt/components/Polls/common/VoteCount.tsx": {
17385
17374
  "bytesInOutput": 361
@@ -17484,7 +17473,7 @@
17484
17473
  "bytesInOutput": 2916
17485
17474
  },
17486
17475
  "src/Prebuilt/components/Chat/PinnedMessage.tsx": {
17487
- "bytesInOutput": 5076
17476
+ "bytesInOutput": 4944
17488
17477
  },
17489
17478
  "src/Prebuilt/components/Chat/ArrowNavigation.tsx": {
17490
17479
  "bytesInOutput": 1021
@@ -17574,13 +17563,13 @@
17574
17563
  "bytesInOutput": 2494
17575
17564
  },
17576
17565
  "src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx": {
17577
- "bytesInOutput": 2409
17566
+ "bytesInOutput": 2339
17578
17567
  },
17579
17568
  "src/Prebuilt/components/hooks/useRoleProminencePeers.tsx": {
17580
17569
  "bytesInOutput": 1046
17581
17570
  },
17582
17571
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx": {
17583
- "bytesInOutput": 2716
17572
+ "bytesInOutput": 2664
17584
17573
  },
17585
17574
  "src/Prebuilt/components/ScreenshareTile.tsx": {
17586
17575
  "bytesInOutput": 4447
@@ -17730,7 +17719,7 @@
17730
17719
  "bytesInOutput": 651
17731
17720
  }
17732
17721
  },
17733
- "bytes": 1300138
17722
+ "bytes": 1297929
17734
17723
  }
17735
17724
  }
17736
17725
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.1-alpha.4",
13
+ "version": "0.3.1-alpha.6",
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-alpha.4",
85
+ "@100mslive/hls-player": "0.3.1-alpha.6",
86
86
  "@100mslive/hms-noise-cancellation": "0.0.0-alpha.1",
87
- "@100mslive/hms-virtual-background": "1.13.1-alpha.4",
88
- "@100mslive/react-icons": "0.10.1-alpha.4",
89
- "@100mslive/react-sdk": "0.10.1-alpha.4",
87
+ "@100mslive/hms-virtual-background": "1.13.1-alpha.6",
88
+ "@100mslive/react-icons": "0.10.1-alpha.6",
89
+ "@100mslive/react-sdk": "0.10.1-alpha.6",
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": "0227ca9a36595a4b8ebbc088496a4fe40586e590"
125
+ "gitHead": "26d1da9289ab9502147a574572ff5b903dbf6e4a"
126
126
  }
@@ -1,6 +1,5 @@
1
- import { useCallback, useEffect, useRef, useState } from 'react';
1
+ import { useEffect, useRef, useState } from 'react';
2
2
  import { useMedia } from 'react-use';
3
- import { HMSHLSPlayer } from '@100mslive/hls-player';
4
3
  import { JoinForm_JoinBtnType } from '@100mslive/types-prebuilt/elements/join_form';
5
4
  import {
6
5
  parsedUserAgent,
@@ -122,28 +121,3 @@ export const useMobileHLSStream = () => {
122
121
  const { screenType } = useRoomLayoutConferencingScreen();
123
122
  return isMobile && screenType === 'hls_live_streaming';
124
123
  };
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,14 +71,13 @@ export const PinnedMessage = () => {
71
71
  <Flex
72
72
  css={{
73
73
  p: '$4',
74
- color: '$on_surface_high',
75
- bg: isMobile && elements?.chat?.is_overlay ? 'rgba(0, 0, 0, 0.64)' : '$surface_brighter',
74
+ color: '$on_surface_medium',
75
+ bg: isMobile ? 'rgba(0, 0, 0, 0.64)' : '$surface_default',
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',
82
81
  }}
83
82
  align="center"
84
83
  justify="between"
@@ -99,7 +98,7 @@ export const PinnedMessage = () => {
99
98
  >
100
99
  <Text
101
100
  variant="sm"
102
- css={{ color: '$on_surface_high' }}
101
+ css={{ color: '$on_surface_medium' }}
103
102
  {...swipeHandlers}
104
103
  title={pinnedMessages[pinnedMessageIndex]?.text}
105
104
  >
@@ -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.trimStart())}
143
+ onChange={event => setTitle(event.target.value)}
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.trimStart())}
162
+ onChange={event => setText(event.target.value)}
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.trimStart())}
30
+ onChange={event => handleOptionTextChange(index, event.target.value)}
31
31
  />
32
32
  <IconButton onClick={() => removeOption(index)} css={{ bg: 'transparent', border: 'none' }}>
33
33
  <TrashIcon />
@@ -36,7 +36,6 @@ 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 });
40
39
  if (!tiles?.length) {
41
40
  return null;
42
41
  }
@@ -71,8 +70,8 @@ const SecondarySection = ({
71
70
  rootCSS={{
72
71
  padding: 0,
73
72
  maxWidth: 240,
73
+ h: hasSidebar ? undefined : '100%',
74
74
  aspectRatio: 16 / 9,
75
- h: '100%',
76
75
  '@md': { aspectRatio: 1 },
77
76
  }}
78
77
  objectFit="contain"
@@ -55,8 +55,6 @@ export const ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge
55
55
  };
56
56
  }, [activeSharePeer?.id, isMobile, setActiveScreenSharePeer]);
57
57
 
58
- console.log({ activeSharePeer, secondaryPeers });
59
-
60
58
  return (
61
59
  <ProminenceLayout.Root edgeToEdge={edgeToEdge} hasSidebar={hasSidebar}>
62
60
  <ProminenceLayout.ProminentSection>
@@ -36,7 +36,7 @@ import { config, theme, useTheme } from '../../Theme';
36
36
  import { Tooltip } from '../../Tooltip';
37
37
  import { useSidepaneToggle } from '../components/AppData/useSidepane';
38
38
  import { useRoomLayoutConferencingScreen } from '../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';
39
- import { useIsLandscape, useKeyboardHandler } from '../common/hooks';
39
+ import { useIsLandscape } from '../common/hooks';
40
40
  import { APP_DATA, EMOJI_REACTION_TYPE, POLL_STATE, POLL_VIEWS, SIDE_PANE_OPTIONS } from '../common/constants';
41
41
 
42
42
  let hlsPlayer;
@@ -367,8 +367,6 @@ const HLSView = () => {
367
367
  [controlsVisible, isLandscape, isMobile, qualityDropDownOpen, seekProgress],
368
368
  );
369
369
 
370
- const keyHandler = useKeyboardHandler(isPaused, hlsPlayer);
371
-
372
370
  if (!hlsUrl || streamEnded) {
373
371
  return (
374
372
  <>
@@ -439,14 +437,7 @@ const HLSView = () => {
439
437
  '@md': {
440
438
  height: 'auto',
441
439
  },
442
- outline: 'none',
443
- }}
444
- onKeyDown={async event => {
445
- if (hlsState?.variants[0]?.playlist_type === HLSPlaylistType.DVR) {
446
- await keyHandler(event);
447
- }
448
440
  }}
449
- tabIndex="0"
450
441
  >
451
442
  {!(isMobile || isLandscape) && (
452
443
  <HLSAutoplayBlockedPrompt open={isHlsAutoplayBlocked} unblockAutoPlay={unblockAutoPlay} />