@100mslive/roomkit-react 0.2.5 → 0.2.6-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-DGYWEXWO.js → HLSView-3P77BW5S.js} +13 -5
- package/dist/{HLSView-DGYWEXWO.js.map → HLSView-3P77BW5S.js.map} +2 -2
- package/dist/Prebuilt/IconButton.d.ts +883 -0
- package/dist/Prebuilt/components/VirtualBackground/VBToggle.d.ts +2 -0
- package/dist/{chunk-GBUA63QN.js → chunk-54M5AZBC.js} +35 -30
- package/dist/chunk-54M5AZBC.js.map +7 -0
- package/dist/index.cjs.js +41 -30
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +38 -38
- package/dist/meta.esbuild.json +48 -48
- package/package.json +6 -6
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +14 -9
- package/src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx +15 -25
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +1 -1
- package/src/Prebuilt/components/VirtualBackground/{VBToggle.jsx → VBToggle.tsx} +1 -0
- package/src/Prebuilt/layouts/HLSView.jsx +85 -71
- package/dist/chunk-GBUA63QN.js.map +0 -7
- /package/src/Prebuilt/{IconButton.jsx → IconButton.tsx} +0 -0
package/dist/meta.esbuild.json
CHANGED
@@ -2241,7 +2241,7 @@
|
|
2241
2241
|
],
|
2242
2242
|
"format": "esm"
|
2243
2243
|
},
|
2244
|
-
"src/Prebuilt/IconButton.
|
2244
|
+
"src/Prebuilt/IconButton.tsx": {
|
2245
2245
|
"bytes": 646,
|
2246
2246
|
"imports": [
|
2247
2247
|
{
|
@@ -2296,7 +2296,7 @@
|
|
2296
2296
|
"original": "../../../Tooltip"
|
2297
2297
|
},
|
2298
2298
|
{
|
2299
|
-
"path": "src/Prebuilt/IconButton.
|
2299
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
2300
2300
|
"kind": "import-statement",
|
2301
2301
|
"original": "../../IconButton"
|
2302
2302
|
},
|
@@ -2368,7 +2368,7 @@
|
|
2368
2368
|
"original": "../../Tooltip"
|
2369
2369
|
},
|
2370
2370
|
{
|
2371
|
-
"path": "src/Prebuilt/IconButton.
|
2371
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
2372
2372
|
"kind": "import-statement",
|
2373
2373
|
"original": "../IconButton"
|
2374
2374
|
},
|
@@ -2501,7 +2501,7 @@
|
|
2501
2501
|
"original": "../../Tooltip"
|
2502
2502
|
},
|
2503
2503
|
{
|
2504
|
-
"path": "src/Prebuilt/IconButton.
|
2504
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
2505
2505
|
"kind": "import-statement",
|
2506
2506
|
"original": "../IconButton"
|
2507
2507
|
},
|
@@ -3029,7 +3029,7 @@
|
|
3029
3029
|
"original": "../../../"
|
3030
3030
|
},
|
3031
3031
|
{
|
3032
|
-
"path": "src/Prebuilt/IconButton.
|
3032
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
3033
3033
|
"kind": "import-statement",
|
3034
3034
|
"original": "../../IconButton"
|
3035
3035
|
},
|
@@ -4083,7 +4083,7 @@
|
|
4083
4083
|
"original": "../../../.."
|
4084
4084
|
},
|
4085
4085
|
{
|
4086
|
-
"path": "src/Prebuilt/IconButton.
|
4086
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
4087
4087
|
"kind": "import-statement",
|
4088
4088
|
"original": "../../../IconButton"
|
4089
4089
|
},
|
@@ -4508,7 +4508,7 @@
|
|
4508
4508
|
"format": "cjs"
|
4509
4509
|
},
|
4510
4510
|
"../hms-video-store/dist/index.js": {
|
4511
|
-
"bytes":
|
4511
|
+
"bytes": 322541,
|
4512
4512
|
"imports": [
|
4513
4513
|
{
|
4514
4514
|
"path": "../../node_modules/reselect/es/index.js",
|
@@ -5008,7 +5008,7 @@
|
|
5008
5008
|
"format": "esm"
|
5009
5009
|
},
|
5010
5010
|
"src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
|
5011
|
-
"bytes":
|
5011
|
+
"bytes": 11911,
|
5012
5012
|
"imports": [
|
5013
5013
|
{
|
5014
5014
|
"path": "react",
|
@@ -5046,7 +5046,7 @@
|
|
5046
5046
|
"original": "../../../../Sheet"
|
5047
5047
|
},
|
5048
5048
|
{
|
5049
|
-
"path": "src/Prebuilt/IconButton.
|
5049
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
5050
5050
|
"kind": "import-statement",
|
5051
5051
|
"original": "../../../IconButton"
|
5052
5052
|
},
|
@@ -5193,7 +5193,7 @@
|
|
5193
5193
|
"original": "../../Tooltip"
|
5194
5194
|
},
|
5195
5195
|
{
|
5196
|
-
"path": "src/Prebuilt/IconButton.
|
5196
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
5197
5197
|
"kind": "import-statement",
|
5198
5198
|
"original": "../IconButton"
|
5199
5199
|
},
|
@@ -5232,7 +5232,7 @@
|
|
5232
5232
|
"original": "../../Theme"
|
5233
5233
|
},
|
5234
5234
|
{
|
5235
|
-
"path": "src/Prebuilt/IconButton.
|
5235
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
5236
5236
|
"kind": "import-statement",
|
5237
5237
|
"original": "../IconButton"
|
5238
5238
|
},
|
@@ -5531,8 +5531,8 @@
|
|
5531
5531
|
],
|
5532
5532
|
"format": "esm"
|
5533
5533
|
},
|
5534
|
-
"src/Prebuilt/components/VirtualBackground/VBToggle.
|
5535
|
-
"bytes":
|
5534
|
+
"src/Prebuilt/components/VirtualBackground/VBToggle.tsx": {
|
5535
|
+
"bytes": 1063,
|
5536
5536
|
"imports": [
|
5537
5537
|
{
|
5538
5538
|
"path": "react",
|
@@ -5555,7 +5555,7 @@
|
|
5555
5555
|
"original": "../../../Tooltip"
|
5556
5556
|
},
|
5557
5557
|
{
|
5558
|
-
"path": "src/Prebuilt/IconButton.
|
5558
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
5559
5559
|
"kind": "import-statement",
|
5560
5560
|
"original": "../../IconButton"
|
5561
5561
|
},
|
@@ -5601,7 +5601,7 @@
|
|
5601
5601
|
"original": "../../.."
|
5602
5602
|
},
|
5603
5603
|
{
|
5604
|
-
"path": "src/Prebuilt/IconButton.
|
5604
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
5605
5605
|
"kind": "import-statement",
|
5606
5606
|
"original": "../../IconButton"
|
5607
5607
|
},
|
@@ -5872,7 +5872,7 @@
|
|
5872
5872
|
"original": "../../.."
|
5873
5873
|
},
|
5874
5874
|
{
|
5875
|
-
"path": "src/Prebuilt/IconButton.
|
5875
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
5876
5876
|
"kind": "import-statement",
|
5877
5877
|
"original": "../../IconButton"
|
5878
5878
|
},
|
@@ -5948,7 +5948,7 @@
|
|
5948
5948
|
"original": "../../.."
|
5949
5949
|
},
|
5950
5950
|
{
|
5951
|
-
"path": "src/Prebuilt/IconButton.
|
5951
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
5952
5952
|
"kind": "import-statement",
|
5953
5953
|
"original": "../../IconButton"
|
5954
5954
|
},
|
@@ -5999,7 +5999,7 @@
|
|
5999
5999
|
"original": "../../.."
|
6000
6000
|
},
|
6001
6001
|
{
|
6002
|
-
"path": "src/Prebuilt/IconButton.
|
6002
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
6003
6003
|
"kind": "import-statement",
|
6004
6004
|
"original": "../../IconButton"
|
6005
6005
|
},
|
@@ -6085,7 +6085,7 @@
|
|
6085
6085
|
"original": "../ScreenShareToggle"
|
6086
6086
|
},
|
6087
6087
|
{
|
6088
|
-
"path": "src/Prebuilt/components/VirtualBackground/VBToggle.
|
6088
|
+
"path": "src/Prebuilt/components/VirtualBackground/VBToggle.tsx",
|
6089
6089
|
"kind": "import-statement",
|
6090
6090
|
"original": "../VirtualBackground/VBToggle"
|
6091
6091
|
},
|
@@ -6272,7 +6272,7 @@
|
|
6272
6272
|
"format": "esm"
|
6273
6273
|
},
|
6274
6274
|
"src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
|
6275
|
-
"bytes":
|
6275
|
+
"bytes": 7747,
|
6276
6276
|
"imports": [
|
6277
6277
|
{
|
6278
6278
|
"path": "react",
|
@@ -6423,7 +6423,7 @@
|
|
6423
6423
|
"original": "../../../../Input"
|
6424
6424
|
},
|
6425
6425
|
{
|
6426
|
-
"path": "src/Prebuilt/IconButton.
|
6426
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
6427
6427
|
"kind": "import-statement",
|
6428
6428
|
"original": "../../../IconButton"
|
6429
6429
|
},
|
@@ -9144,7 +9144,7 @@
|
|
9144
9144
|
"format": "esm"
|
9145
9145
|
},
|
9146
9146
|
"src/Prebuilt/components/Preview/PreviewJoin.tsx": {
|
9147
|
-
"bytes":
|
9147
|
+
"bytes": 9973,
|
9148
9148
|
"imports": [
|
9149
9149
|
{
|
9150
9150
|
"path": "react",
|
@@ -9182,7 +9182,7 @@
|
|
9182
9182
|
"original": "../../AppContext"
|
9183
9183
|
},
|
9184
9184
|
{
|
9185
|
-
"path": "src/Prebuilt/IconButton.
|
9185
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
9186
9186
|
"kind": "import-statement",
|
9187
9187
|
"original": "../../IconButton"
|
9188
9188
|
},
|
@@ -9222,7 +9222,7 @@
|
|
9222
9222
|
"original": "../Settings/SettingsModal"
|
9223
9223
|
},
|
9224
9224
|
{
|
9225
|
-
"path": "src/Prebuilt/components/VirtualBackground/VBToggle.
|
9225
|
+
"path": "src/Prebuilt/components/VirtualBackground/VBToggle.tsx",
|
9226
9226
|
"kind": "import-statement",
|
9227
9227
|
"original": "../VirtualBackground/VBToggle"
|
9228
9228
|
},
|
@@ -9416,7 +9416,7 @@
|
|
9416
9416
|
"original": "../../Theme"
|
9417
9417
|
},
|
9418
9418
|
{
|
9419
|
-
"path": "src/Prebuilt/IconButton.
|
9419
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
9420
9420
|
"kind": "import-statement",
|
9421
9421
|
"original": "../IconButton"
|
9422
9422
|
},
|
@@ -10411,7 +10411,7 @@
|
|
10411
10411
|
"original": "../../Text"
|
10412
10412
|
},
|
10413
10413
|
{
|
10414
|
-
"path": "src/Prebuilt/IconButton.
|
10414
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
10415
10415
|
"kind": "import-statement",
|
10416
10416
|
"original": "../IconButton"
|
10417
10417
|
},
|
@@ -10726,7 +10726,7 @@
|
|
10726
10726
|
"format": "esm"
|
10727
10727
|
},
|
10728
10728
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
10729
|
-
"bytes":
|
10729
|
+
"bytes": 18225,
|
10730
10730
|
"imports": [
|
10731
10731
|
{
|
10732
10732
|
"path": "react",
|
@@ -10986,7 +10986,7 @@
|
|
10986
10986
|
"original": "../../../Text"
|
10987
10987
|
},
|
10988
10988
|
{
|
10989
|
-
"path": "src/Prebuilt/IconButton.
|
10989
|
+
"path": "src/Prebuilt/IconButton.tsx",
|
10990
10990
|
"kind": "import-statement",
|
10991
10991
|
"original": "../../IconButton"
|
10992
10992
|
},
|
@@ -12780,7 +12780,7 @@
|
|
12780
12780
|
"dist/index.js": {
|
12781
12781
|
"imports": [
|
12782
12782
|
{
|
12783
|
-
"path": "dist/chunk-
|
12783
|
+
"path": "dist/chunk-54M5AZBC.js",
|
12784
12784
|
"kind": "import-statement"
|
12785
12785
|
}
|
12786
12786
|
],
|
@@ -12853,16 +12853,16 @@
|
|
12853
12853
|
"inputs": {},
|
12854
12854
|
"bytes": 1822
|
12855
12855
|
},
|
12856
|
-
"dist/HLSView-
|
12856
|
+
"dist/HLSView-3P77BW5S.js.map": {
|
12857
12857
|
"imports": [],
|
12858
12858
|
"exports": [],
|
12859
12859
|
"inputs": {},
|
12860
|
-
"bytes":
|
12860
|
+
"bytes": 59786
|
12861
12861
|
},
|
12862
|
-
"dist/HLSView-
|
12862
|
+
"dist/HLSView-3P77BW5S.js": {
|
12863
12863
|
"imports": [
|
12864
12864
|
{
|
12865
|
-
"path": "dist/chunk-
|
12865
|
+
"path": "dist/chunk-54M5AZBC.js",
|
12866
12866
|
"kind": "import-statement"
|
12867
12867
|
},
|
12868
12868
|
{
|
@@ -12982,7 +12982,7 @@
|
|
12982
12982
|
"entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
|
12983
12983
|
"inputs": {
|
12984
12984
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
12985
|
-
"bytesInOutput":
|
12985
|
+
"bytesInOutput": 17821
|
12986
12986
|
},
|
12987
12987
|
"src/Prebuilt/components/HlsStatsOverlay.jsx": {
|
12988
12988
|
"bytesInOutput": 3521
|
@@ -13024,15 +13024,15 @@
|
|
13024
13024
|
"bytesInOutput": 3992
|
13025
13025
|
}
|
13026
13026
|
},
|
13027
|
-
"bytes":
|
13027
|
+
"bytes": 37440
|
13028
13028
|
},
|
13029
|
-
"dist/chunk-
|
13029
|
+
"dist/chunk-54M5AZBC.js.map": {
|
13030
13030
|
"imports": [],
|
13031
13031
|
"exports": [],
|
13032
13032
|
"inputs": {},
|
13033
|
-
"bytes":
|
13033
|
+
"bytes": 3101864
|
13034
13034
|
},
|
13035
|
-
"dist/chunk-
|
13035
|
+
"dist/chunk-54M5AZBC.js": {
|
13036
13036
|
"imports": [
|
13037
13037
|
{
|
13038
13038
|
"path": "react",
|
@@ -15280,7 +15280,7 @@
|
|
15280
15280
|
"external": true
|
15281
15281
|
},
|
15282
15282
|
{
|
15283
|
-
"path": "dist/HLSView-
|
15283
|
+
"path": "dist/HLSView-3P77BW5S.js",
|
15284
15284
|
"kind": "dynamic-import"
|
15285
15285
|
},
|
15286
15286
|
{
|
@@ -15702,7 +15702,7 @@
|
|
15702
15702
|
],
|
15703
15703
|
"inputs": {
|
15704
15704
|
"<define:process.env>": {
|
15705
|
-
"bytesInOutput":
|
15705
|
+
"bytesInOutput": 18089
|
15706
15706
|
},
|
15707
15707
|
"../../node_modules/lodash/lodash.js": {
|
15708
15708
|
"bytesInOutput": 224267
|
@@ -15998,7 +15998,7 @@
|
|
15998
15998
|
"src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.jsx": {
|
15999
15999
|
"bytesInOutput": 2866
|
16000
16000
|
},
|
16001
|
-
"src/Prebuilt/IconButton.
|
16001
|
+
"src/Prebuilt/IconButton.tsx": {
|
16002
16002
|
"bytesInOutput": 573
|
16003
16003
|
},
|
16004
16004
|
"src/Prebuilt/components/Toast/ToastManager.js": {
|
@@ -16125,13 +16125,13 @@
|
|
16125
16125
|
"bytesInOutput": 1948
|
16126
16126
|
},
|
16127
16127
|
"src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
|
16128
|
-
"bytesInOutput":
|
16128
|
+
"bytesInOutput": 10584
|
16129
16129
|
},
|
16130
16130
|
"src/Prebuilt/components/Header/StreamActions.tsx": {
|
16131
16131
|
"bytesInOutput": 10019
|
16132
16132
|
},
|
16133
16133
|
"../hms-video-store/dist/index.js": {
|
16134
|
-
"bytesInOutput":
|
16134
|
+
"bytesInOutput": 48463
|
16135
16135
|
},
|
16136
16136
|
"../../node_modules/reselect/es/index.js": {
|
16137
16137
|
"bytesInOutput": 2537
|
@@ -16226,8 +16226,8 @@
|
|
16226
16226
|
"src/Prebuilt/components/pdfAnnotator/pdfInfo.jsx": {
|
16227
16227
|
"bytesInOutput": 823
|
16228
16228
|
},
|
16229
|
-
"src/Prebuilt/components/VirtualBackground/VBToggle.
|
16230
|
-
"bytesInOutput":
|
16229
|
+
"src/Prebuilt/components/VirtualBackground/VBToggle.tsx": {
|
16230
|
+
"bytesInOutput": 985
|
16231
16231
|
},
|
16232
16232
|
"src/Prebuilt/components/Footer/ChatToggle.tsx": {
|
16233
16233
|
"bytesInOutput": 1404
|
@@ -16263,7 +16263,7 @@
|
|
16263
16263
|
"bytesInOutput": 3077
|
16264
16264
|
},
|
16265
16265
|
"src/Prebuilt/components/Preview/PreviewJoin.tsx": {
|
16266
|
-
"bytesInOutput":
|
16266
|
+
"bytesInOutput": 9619
|
16267
16267
|
},
|
16268
16268
|
"src/Prebuilt/layouts/SidePane.tsx": {
|
16269
16269
|
"bytesInOutput": 4579
|
@@ -16272,7 +16272,7 @@
|
|
16272
16272
|
"bytesInOutput": 735
|
16273
16273
|
},
|
16274
16274
|
"src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
|
16275
|
-
"bytesInOutput":
|
16275
|
+
"bytesInOutput": 7536
|
16276
16276
|
},
|
16277
16277
|
"src/Prebuilt/components/Streaming/Common.jsx": {
|
16278
16278
|
"bytesInOutput": 2247
|
@@ -16629,7 +16629,7 @@
|
|
16629
16629
|
"bytesInOutput": 651
|
16630
16630
|
}
|
16631
16631
|
},
|
16632
|
-
"bytes":
|
16632
|
+
"bytes": 1265247
|
16633
16633
|
}
|
16634
16634
|
}
|
16635
16635
|
}
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.2.
|
13
|
+
"version": "0.2.6-alpha.0",
|
14
14
|
"author": "100ms",
|
15
15
|
"license": "MIT",
|
16
16
|
"repository": {
|
@@ -82,10 +82,10 @@
|
|
82
82
|
"react": ">=17.0.2 <19.0.0"
|
83
83
|
},
|
84
84
|
"dependencies": {
|
85
|
-
"@100mslive/hls-player": "0.2.
|
86
|
-
"@100mslive/hms-virtual-background": "1.12.
|
87
|
-
"@100mslive/react-icons": "0.9.
|
88
|
-
"@100mslive/react-sdk": "0.9.
|
85
|
+
"@100mslive/hls-player": "0.2.6-alpha.0",
|
86
|
+
"@100mslive/hms-virtual-background": "1.12.6-alpha.0",
|
87
|
+
"@100mslive/react-icons": "0.9.6-alpha.0",
|
88
|
+
"@100mslive/react-sdk": "0.9.6-alpha.0",
|
89
89
|
"@100mslive/types-prebuilt": "0.12.6",
|
90
90
|
"@emoji-mart/data": "^1.0.6",
|
91
91
|
"@emoji-mart/react": "^1.0.1",
|
@@ -120,5 +120,5 @@
|
|
120
120
|
"uuid": "^8.3.2",
|
121
121
|
"worker-timers": "^7.0.40"
|
122
122
|
},
|
123
|
-
"gitHead": "
|
123
|
+
"gitHead": "ad5e1f4190299572b1b91c1951bb5d14788efac8"
|
124
124
|
}
|
@@ -22,6 +22,7 @@ import {
|
|
22
22
|
QuizIcon,
|
23
23
|
RecordIcon,
|
24
24
|
SettingsIcon,
|
25
|
+
VirtualBackgroundIcon,
|
25
26
|
} from '@100mslive/react-icons';
|
26
27
|
import { Box, Loading, Tooltip } from '../../../..';
|
27
28
|
import { Sheet } from '../../../../Sheet';
|
@@ -55,8 +56,6 @@ import { getFormattedCount } from '../../../common/utils';
|
|
55
56
|
// @ts-ignore: No implicit any
|
56
57
|
import { SIDE_PANE_OPTIONS } from '../../../common/constants';
|
57
58
|
|
58
|
-
// const VirtualBackground = React.lazy(() => import('../../../plugins/VirtualBackground/VirtualBackground'));
|
59
|
-
|
60
59
|
const MODALS = {
|
61
60
|
CHANGE_NAME: 'changeName',
|
62
61
|
SELF_ROLE_CHANGE: 'selfRoleChange',
|
@@ -92,10 +91,10 @@ export const MwebOptions = ({
|
|
92
91
|
const peerCount = useHMSStore(selectPeerCount);
|
93
92
|
const emojiCardRef = useRef(null);
|
94
93
|
const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
|
95
|
-
const { toggleAudio, toggleVideo } = useAVToggle();
|
94
|
+
const { toggleAudio, toggleVideo, isLocalVideoEnabled } = useAVToggle();
|
96
95
|
const noAVPermissions = !(toggleAudio || toggleVideo);
|
97
96
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
98
|
-
|
97
|
+
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
99
98
|
|
100
99
|
useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: 'MoreSettings' });
|
101
100
|
|
@@ -182,11 +181,17 @@ export const MwebOptions = ({
|
|
182
181
|
</ActionTile.Root>
|
183
182
|
) : null}
|
184
183
|
|
185
|
-
{
|
186
|
-
<
|
187
|
-
|
188
|
-
|
189
|
-
|
184
|
+
{isLocalVideoEnabled && !!elements?.virtual_background ? (
|
185
|
+
<ActionTile.Root
|
186
|
+
onClick={() => {
|
187
|
+
toggleVB();
|
188
|
+
setOpenOptionsSheet(false);
|
189
|
+
}}
|
190
|
+
>
|
191
|
+
<VirtualBackgroundIcon />
|
192
|
+
<ActionTile.Title>Virtual Background</ActionTile.Title>
|
193
|
+
</ActionTile.Root>
|
194
|
+
) : null}
|
190
195
|
|
191
196
|
{elements?.emoji_reactions && (
|
192
197
|
<ActionTile.Root
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
2
2
|
import {
|
3
|
-
HMSPoll,
|
4
3
|
HMSPollState,
|
5
4
|
selectLocalPeerRoleName,
|
6
5
|
selectPermissions,
|
6
|
+
selectPolls,
|
7
7
|
useHMSActions,
|
8
8
|
useHMSStore,
|
9
9
|
} from '@100mslive/react-sdk';
|
@@ -133,7 +133,7 @@ const AddMenu = () => {
|
|
133
133
|
active={interactionType === INTERACTION_TYPE.QUIZ}
|
134
134
|
/>
|
135
135
|
</Flex>
|
136
|
-
<Flex direction="column">
|
136
|
+
<Flex direction="column" css={{ mb: '$10' }}>
|
137
137
|
<Text variant="body2" css={{ mb: '$4' }}>{`Name this ${interactionType.toLowerCase()}`}</Text>
|
138
138
|
<Input
|
139
139
|
ref={inputRef}
|
@@ -194,20 +194,12 @@ const AddMenu = () => {
|
|
194
194
|
|
195
195
|
const PrevMenu = () => {
|
196
196
|
const hmsActions = useHMSActions();
|
197
|
-
const
|
197
|
+
const polls = useHMSStore(selectPolls);
|
198
|
+
const permissions = useHMSStore(selectPermissions);
|
198
199
|
|
199
200
|
useEffect(() => {
|
200
|
-
const listPolls = async () => {
|
201
|
-
const polls = await hmsActions.interactivityCenter.getPolls();
|
202
|
-
const sortedPolls = await polls
|
203
|
-
?.sort((a, b) => (b.createdAt?.getTime() || 0) - (a.createdAt?.getTime() || 0))
|
204
|
-
?.sort((a, b) => (b.state === 'started' ? 1 : 0) - (a.state === 'started' ? 1 : 0));
|
205
|
-
return sortedPolls;
|
206
|
-
};
|
207
|
-
|
208
201
|
const updatePolls = async () => {
|
209
|
-
|
210
|
-
setPolls(sortedPolls);
|
202
|
+
await hmsActions.interactivityCenter.getPolls();
|
211
203
|
};
|
212
204
|
|
213
205
|
updatePolls();
|
@@ -215,21 +207,19 @@ const PrevMenu = () => {
|
|
215
207
|
|
216
208
|
return polls?.length ? (
|
217
209
|
<Flex
|
210
|
+
direction="column"
|
218
211
|
css={{
|
219
|
-
|
220
|
-
|
221
|
-
pt: '$10',
|
212
|
+
width: '100%',
|
213
|
+
...(permissions?.pollWrite ? { borderTop: '$space$px solid $border_bright', paddingTop: '$10' } : {}),
|
222
214
|
}}
|
223
215
|
>
|
224
|
-
<
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
{
|
230
|
-
|
231
|
-
))}
|
232
|
-
</Flex>
|
216
|
+
<Text variant="h6" css={{ c: '$on_surface_high' }}>
|
217
|
+
Previous Polls and Quizzes
|
218
|
+
</Text>
|
219
|
+
<Flex direction="column" css={{ gap: '$10', mt: '$8' }}>
|
220
|
+
{polls?.map(poll => (
|
221
|
+
<InteractionCard key={poll.id} id={poll.id} title={poll.title} status={poll.state} />
|
222
|
+
))}
|
233
223
|
</Flex>
|
234
224
|
</Flex>
|
235
225
|
) : null;
|
@@ -268,7 +268,7 @@ export const PreviewControls = ({ hideSettings, vbEnabled }: { hideSettings: boo
|
|
268
268
|
>
|
269
269
|
<Flex css={{ gap: '$4' }}>
|
270
270
|
<AudioVideoToggle />
|
271
|
-
{
|
271
|
+
{vbEnabled ? <VBToggle /> : null}
|
272
272
|
</Flex>
|
273
273
|
{!hideSettings ? <PreviewSettings /> : null}
|
274
274
|
</Flex>
|
@@ -3,6 +3,7 @@ import { selectIsEffectsEnabled, selectIsLocalVideoEnabled, useHMSStore } from '
|
|
3
3
|
import { VirtualBackgroundIcon } from '@100mslive/react-icons';
|
4
4
|
import { Tooltip } from '../../../Tooltip';
|
5
5
|
import IconButton from '../../IconButton';
|
6
|
+
// @ts-ignore
|
6
7
|
import { useIsSidepaneTypeOpen, useSidepaneToggle } from '../AppData/useSidepane';
|
7
8
|
import { isSafari, SIDE_PANE_OPTIONS } from '../../common/constants';
|
8
9
|
|