@100mslive/roomkit-react 0.2.6-alpha.1 → 0.2.6-alpha.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-Z7XVENMR.js → HLSView-7QXLQ4KD.js} +2 -2
- package/dist/Prebuilt/common/constants.d.ts +0 -1
- package/dist/{chunk-6ELWJ7YI.js → chunk-ZJU5GUBY.js} +381 -365
- package/dist/chunk-ZJU5GUBY.js.map +7 -0
- package/dist/index.cjs.js +6875 -6859
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +156 -151
- package/dist/meta.esbuild.json +161 -156
- package/package.json +6 -6
- package/src/Prebuilt/App.tsx +7 -8
- package/src/Prebuilt/common/constants.ts +1 -1
- package/src/Prebuilt/components/AppData/AppData.tsx +16 -1
- package/src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx +15 -25
- package/src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx +1 -1
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +0 -1
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +29 -12
- package/dist/chunk-6ELWJ7YI.js.map +0 -7
- package/src/Prebuilt/plugins/VirtualBackground/VirtualBackground.jsx +0 -112
- package/src/Prebuilt/plugins/VirtualBackground/vbutils.js +0 -66
- /package/dist/{HLSView-Z7XVENMR.js.map → HLSView-7QXLQ4KD.js.map} +0 -0
package/dist/meta.esbuild.json
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
"format": "esm"
|
27
27
|
},
|
28
28
|
"src/Prebuilt/common/constants.ts": {
|
29
|
-
"bytes":
|
29
|
+
"bytes": 4269,
|
30
30
|
"imports": [
|
31
31
|
{
|
32
32
|
"path": "@100mslive/react-sdk",
|
@@ -2068,6 +2068,111 @@
|
|
2068
2068
|
],
|
2069
2069
|
"format": "esm"
|
2070
2070
|
},
|
2071
|
+
"../../node_modules/lodash/lodash.js": {
|
2072
|
+
"bytes": 544098,
|
2073
|
+
"imports": [
|
2074
|
+
{
|
2075
|
+
"path": "<define:process.env>",
|
2076
|
+
"kind": "import-statement",
|
2077
|
+
"external": true
|
2078
|
+
}
|
2079
|
+
],
|
2080
|
+
"format": "cjs"
|
2081
|
+
},
|
2082
|
+
"src/Prebuilt/provider/roomLayoutProvider/constants/index.ts": {
|
2083
|
+
"bytes": 1549,
|
2084
|
+
"imports": [
|
2085
|
+
{
|
2086
|
+
"path": "@100mslive/types-prebuilt/elements/join_form",
|
2087
|
+
"kind": "import-statement",
|
2088
|
+
"external": true
|
2089
|
+
},
|
2090
|
+
{
|
2091
|
+
"path": "<define:process.env>",
|
2092
|
+
"kind": "import-statement",
|
2093
|
+
"external": true
|
2094
|
+
}
|
2095
|
+
],
|
2096
|
+
"format": "esm"
|
2097
|
+
},
|
2098
|
+
"src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts": {
|
2099
|
+
"bytes": 2489,
|
2100
|
+
"imports": [
|
2101
|
+
{
|
2102
|
+
"path": "react",
|
2103
|
+
"kind": "import-statement",
|
2104
|
+
"external": true
|
2105
|
+
},
|
2106
|
+
{
|
2107
|
+
"path": "src/Prebuilt/provider/roomLayoutProvider/constants/index.ts",
|
2108
|
+
"kind": "import-statement",
|
2109
|
+
"original": "../constants"
|
2110
|
+
},
|
2111
|
+
{
|
2112
|
+
"path": "<define:process.env>",
|
2113
|
+
"kind": "import-statement",
|
2114
|
+
"external": true
|
2115
|
+
},
|
2116
|
+
{
|
2117
|
+
"path": "<runtime>",
|
2118
|
+
"kind": "import-statement",
|
2119
|
+
"external": true
|
2120
|
+
}
|
2121
|
+
],
|
2122
|
+
"format": "esm"
|
2123
|
+
},
|
2124
|
+
"src/Prebuilt/provider/roomLayoutProvider/index.tsx": {
|
2125
|
+
"bytes": 1857,
|
2126
|
+
"imports": [
|
2127
|
+
{
|
2128
|
+
"path": "react",
|
2129
|
+
"kind": "import-statement",
|
2130
|
+
"external": true
|
2131
|
+
},
|
2132
|
+
{
|
2133
|
+
"path": "../../node_modules/lodash/lodash.js",
|
2134
|
+
"kind": "import-statement",
|
2135
|
+
"original": "lodash"
|
2136
|
+
},
|
2137
|
+
{
|
2138
|
+
"path": "src/Prebuilt/components/AppData/useUISettings.js",
|
2139
|
+
"kind": "import-statement",
|
2140
|
+
"original": "../../components/AppData/useUISettings"
|
2141
|
+
},
|
2142
|
+
{
|
2143
|
+
"path": "src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts",
|
2144
|
+
"kind": "import-statement",
|
2145
|
+
"original": "./hooks/useFetchRoomLayout"
|
2146
|
+
},
|
2147
|
+
{
|
2148
|
+
"path": "<define:process.env>",
|
2149
|
+
"kind": "import-statement",
|
2150
|
+
"external": true
|
2151
|
+
}
|
2152
|
+
],
|
2153
|
+
"format": "esm"
|
2154
|
+
},
|
2155
|
+
"src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts": {
|
2156
|
+
"bytes": 2273,
|
2157
|
+
"imports": [
|
2158
|
+
{
|
2159
|
+
"path": "@100mslive/types-prebuilt",
|
2160
|
+
"kind": "import-statement",
|
2161
|
+
"external": true
|
2162
|
+
},
|
2163
|
+
{
|
2164
|
+
"path": "src/Prebuilt/provider/roomLayoutProvider/index.tsx",
|
2165
|
+
"kind": "import-statement",
|
2166
|
+
"original": ".."
|
2167
|
+
},
|
2168
|
+
{
|
2169
|
+
"path": "<define:process.env>",
|
2170
|
+
"kind": "import-statement",
|
2171
|
+
"external": true
|
2172
|
+
}
|
2173
|
+
],
|
2174
|
+
"format": "esm"
|
2175
|
+
},
|
2071
2176
|
"src/Prebuilt/components/AppData/useSidepane.js": {
|
2072
2177
|
"bytes": 2509,
|
2073
2178
|
"imports": [
|
@@ -2100,7 +2205,7 @@
|
|
2100
2205
|
"format": "esm"
|
2101
2206
|
},
|
2102
2207
|
"src/Prebuilt/components/AppData/AppData.tsx": {
|
2103
|
-
"bytes":
|
2208
|
+
"bytes": 5537,
|
2104
2209
|
"imports": [
|
2105
2210
|
{
|
2106
2211
|
"path": "react",
|
@@ -2117,6 +2222,11 @@
|
|
2117
2222
|
"kind": "import-statement",
|
2118
2223
|
"original": "../Settings/LayoutSettings"
|
2119
2224
|
},
|
2225
|
+
{
|
2226
|
+
"path": "src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts",
|
2227
|
+
"kind": "import-statement",
|
2228
|
+
"original": "../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen"
|
2229
|
+
},
|
2120
2230
|
{
|
2121
2231
|
"path": "src/Prebuilt/components/hooks/useUserPreferences.jsx",
|
2122
2232
|
"kind": "import-statement",
|
@@ -3088,111 +3198,6 @@
|
|
3088
3198
|
],
|
3089
3199
|
"format": "esm"
|
3090
3200
|
},
|
3091
|
-
"../../node_modules/lodash/lodash.js": {
|
3092
|
-
"bytes": 544098,
|
3093
|
-
"imports": [
|
3094
|
-
{
|
3095
|
-
"path": "<define:process.env>",
|
3096
|
-
"kind": "import-statement",
|
3097
|
-
"external": true
|
3098
|
-
}
|
3099
|
-
],
|
3100
|
-
"format": "cjs"
|
3101
|
-
},
|
3102
|
-
"src/Prebuilt/provider/roomLayoutProvider/constants/index.ts": {
|
3103
|
-
"bytes": 1549,
|
3104
|
-
"imports": [
|
3105
|
-
{
|
3106
|
-
"path": "@100mslive/types-prebuilt/elements/join_form",
|
3107
|
-
"kind": "import-statement",
|
3108
|
-
"external": true
|
3109
|
-
},
|
3110
|
-
{
|
3111
|
-
"path": "<define:process.env>",
|
3112
|
-
"kind": "import-statement",
|
3113
|
-
"external": true
|
3114
|
-
}
|
3115
|
-
],
|
3116
|
-
"format": "esm"
|
3117
|
-
},
|
3118
|
-
"src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts": {
|
3119
|
-
"bytes": 2489,
|
3120
|
-
"imports": [
|
3121
|
-
{
|
3122
|
-
"path": "react",
|
3123
|
-
"kind": "import-statement",
|
3124
|
-
"external": true
|
3125
|
-
},
|
3126
|
-
{
|
3127
|
-
"path": "src/Prebuilt/provider/roomLayoutProvider/constants/index.ts",
|
3128
|
-
"kind": "import-statement",
|
3129
|
-
"original": "../constants"
|
3130
|
-
},
|
3131
|
-
{
|
3132
|
-
"path": "<define:process.env>",
|
3133
|
-
"kind": "import-statement",
|
3134
|
-
"external": true
|
3135
|
-
},
|
3136
|
-
{
|
3137
|
-
"path": "<runtime>",
|
3138
|
-
"kind": "import-statement",
|
3139
|
-
"external": true
|
3140
|
-
}
|
3141
|
-
],
|
3142
|
-
"format": "esm"
|
3143
|
-
},
|
3144
|
-
"src/Prebuilt/provider/roomLayoutProvider/index.tsx": {
|
3145
|
-
"bytes": 1857,
|
3146
|
-
"imports": [
|
3147
|
-
{
|
3148
|
-
"path": "react",
|
3149
|
-
"kind": "import-statement",
|
3150
|
-
"external": true
|
3151
|
-
},
|
3152
|
-
{
|
3153
|
-
"path": "../../node_modules/lodash/lodash.js",
|
3154
|
-
"kind": "import-statement",
|
3155
|
-
"original": "lodash"
|
3156
|
-
},
|
3157
|
-
{
|
3158
|
-
"path": "src/Prebuilt/components/AppData/useUISettings.js",
|
3159
|
-
"kind": "import-statement",
|
3160
|
-
"original": "../../components/AppData/useUISettings"
|
3161
|
-
},
|
3162
|
-
{
|
3163
|
-
"path": "src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts",
|
3164
|
-
"kind": "import-statement",
|
3165
|
-
"original": "./hooks/useFetchRoomLayout"
|
3166
|
-
},
|
3167
|
-
{
|
3168
|
-
"path": "<define:process.env>",
|
3169
|
-
"kind": "import-statement",
|
3170
|
-
"external": true
|
3171
|
-
}
|
3172
|
-
],
|
3173
|
-
"format": "esm"
|
3174
|
-
},
|
3175
|
-
"src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts": {
|
3176
|
-
"bytes": 2273,
|
3177
|
-
"imports": [
|
3178
|
-
{
|
3179
|
-
"path": "@100mslive/types-prebuilt",
|
3180
|
-
"kind": "import-statement",
|
3181
|
-
"external": true
|
3182
|
-
},
|
3183
|
-
{
|
3184
|
-
"path": "src/Prebuilt/provider/roomLayoutProvider/index.tsx",
|
3185
|
-
"kind": "import-statement",
|
3186
|
-
"original": ".."
|
3187
|
-
},
|
3188
|
-
{
|
3189
|
-
"path": "<define:process.env>",
|
3190
|
-
"kind": "import-statement",
|
3191
|
-
"external": true
|
3192
|
-
}
|
3193
|
-
],
|
3194
|
-
"format": "esm"
|
3195
|
-
},
|
3196
3201
|
"src/Prebuilt/common/hooks.ts": {
|
3197
3202
|
"bytes": 3796,
|
3198
3203
|
"imports": [
|
@@ -6272,7 +6277,7 @@
|
|
6272
6277
|
"format": "esm"
|
6273
6278
|
},
|
6274
6279
|
"src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
|
6275
|
-
"bytes":
|
6280
|
+
"bytes": 7747,
|
6276
6281
|
"imports": [
|
6277
6282
|
{
|
6278
6283
|
"path": "react",
|
@@ -6759,7 +6764,7 @@
|
|
6759
6764
|
"format": "esm"
|
6760
6765
|
},
|
6761
6766
|
"src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx": {
|
6762
|
-
"bytes":
|
6767
|
+
"bytes": 2171,
|
6763
6768
|
"imports": [
|
6764
6769
|
{
|
6765
6770
|
"path": "react",
|
@@ -8798,7 +8803,7 @@
|
|
8798
8803
|
"format": "esm"
|
8799
8804
|
},
|
8800
8805
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
8801
|
-
"bytes":
|
8806
|
+
"bytes": 7273,
|
8802
8807
|
"imports": [
|
8803
8808
|
{
|
8804
8809
|
"path": "react",
|
@@ -9144,7 +9149,7 @@
|
|
9144
9149
|
"format": "esm"
|
9145
9150
|
},
|
9146
9151
|
"src/Prebuilt/components/Preview/PreviewJoin.tsx": {
|
9147
|
-
"bytes":
|
9152
|
+
"bytes": 9972,
|
9148
9153
|
"imports": [
|
9149
9154
|
{
|
9150
9155
|
"path": "react",
|
@@ -12329,7 +12334,7 @@
|
|
12329
12334
|
"format": "esm"
|
12330
12335
|
},
|
12331
12336
|
"src/Prebuilt/App.tsx": {
|
12332
|
-
"bytes":
|
12337
|
+
"bytes": 10479,
|
12333
12338
|
"imports": [
|
12334
12339
|
{
|
12335
12340
|
"path": "react",
|
@@ -12780,7 +12785,7 @@
|
|
12780
12785
|
"dist/index.js": {
|
12781
12786
|
"imports": [
|
12782
12787
|
{
|
12783
|
-
"path": "dist/chunk-
|
12788
|
+
"path": "dist/chunk-ZJU5GUBY.js",
|
12784
12789
|
"kind": "import-statement"
|
12785
12790
|
}
|
12786
12791
|
],
|
@@ -12853,16 +12858,16 @@
|
|
12853
12858
|
"inputs": {},
|
12854
12859
|
"bytes": 1822
|
12855
12860
|
},
|
12856
|
-
"dist/HLSView-
|
12861
|
+
"dist/HLSView-7QXLQ4KD.js.map": {
|
12857
12862
|
"imports": [],
|
12858
12863
|
"exports": [],
|
12859
12864
|
"inputs": {},
|
12860
12865
|
"bytes": 59786
|
12861
12866
|
},
|
12862
|
-
"dist/HLSView-
|
12867
|
+
"dist/HLSView-7QXLQ4KD.js": {
|
12863
12868
|
"imports": [
|
12864
12869
|
{
|
12865
|
-
"path": "dist/chunk-
|
12870
|
+
"path": "dist/chunk-ZJU5GUBY.js",
|
12866
12871
|
"kind": "import-statement"
|
12867
12872
|
},
|
12868
12873
|
{
|
@@ -13026,13 +13031,13 @@
|
|
13026
13031
|
},
|
13027
13032
|
"bytes": 37440
|
13028
13033
|
},
|
13029
|
-
"dist/chunk-
|
13034
|
+
"dist/chunk-ZJU5GUBY.js.map": {
|
13030
13035
|
"imports": [],
|
13031
13036
|
"exports": [],
|
13032
13037
|
"inputs": {},
|
13033
|
-
"bytes":
|
13038
|
+
"bytes": 3103545
|
13034
13039
|
},
|
13035
|
-
"dist/chunk-
|
13040
|
+
"dist/chunk-ZJU5GUBY.js": {
|
13036
13041
|
"imports": [
|
13037
13042
|
{
|
13038
13043
|
"path": "react",
|
@@ -13374,6 +13379,21 @@
|
|
13374
13379
|
"kind": "import-statement",
|
13375
13380
|
"external": true
|
13376
13381
|
},
|
13382
|
+
{
|
13383
|
+
"path": "react",
|
13384
|
+
"kind": "import-statement",
|
13385
|
+
"external": true
|
13386
|
+
},
|
13387
|
+
{
|
13388
|
+
"path": "@100mslive/types-prebuilt/elements/join_form",
|
13389
|
+
"kind": "import-statement",
|
13390
|
+
"external": true
|
13391
|
+
},
|
13392
|
+
{
|
13393
|
+
"path": "react",
|
13394
|
+
"kind": "import-statement",
|
13395
|
+
"external": true
|
13396
|
+
},
|
13377
13397
|
{
|
13378
13398
|
"path": "@100mslive/react-sdk",
|
13379
13399
|
"kind": "import-statement",
|
@@ -13684,21 +13704,6 @@
|
|
13684
13704
|
"kind": "import-statement",
|
13685
13705
|
"external": true
|
13686
13706
|
},
|
13687
|
-
{
|
13688
|
-
"path": "react",
|
13689
|
-
"kind": "import-statement",
|
13690
|
-
"external": true
|
13691
|
-
},
|
13692
|
-
{
|
13693
|
-
"path": "@100mslive/types-prebuilt/elements/join_form",
|
13694
|
-
"kind": "import-statement",
|
13695
|
-
"external": true
|
13696
|
-
},
|
13697
|
-
{
|
13698
|
-
"path": "react",
|
13699
|
-
"kind": "import-statement",
|
13700
|
-
"external": true
|
13701
|
-
},
|
13702
13707
|
{
|
13703
13708
|
"path": "react-use",
|
13704
13709
|
"kind": "import-statement",
|
@@ -15280,7 +15285,7 @@
|
|
15280
15285
|
"external": true
|
15281
15286
|
},
|
15282
15287
|
{
|
15283
|
-
"path": "dist/HLSView-
|
15288
|
+
"path": "dist/HLSView-7QXLQ4KD.js",
|
15284
15289
|
"kind": "dynamic-import"
|
15285
15290
|
},
|
15286
15291
|
{
|
@@ -15702,7 +15707,7 @@
|
|
15702
15707
|
],
|
15703
15708
|
"inputs": {
|
15704
15709
|
"<define:process.env>": {
|
15705
|
-
"bytesInOutput":
|
15710
|
+
"bytesInOutput": 18180
|
15706
15711
|
},
|
15707
15712
|
"../../node_modules/lodash/lodash.js": {
|
15708
15713
|
"bytesInOutput": 224267
|
@@ -15750,7 +15755,7 @@
|
|
15750
15755
|
"bytesInOutput": 5061
|
15751
15756
|
},
|
15752
15757
|
"src/Prebuilt/common/constants.ts": {
|
15753
|
-
"bytesInOutput":
|
15758
|
+
"bytesInOutput": 3385
|
15754
15759
|
},
|
15755
15760
|
"src/Theme/ThemeProvider.tsx": {
|
15756
15761
|
"bytesInOutput": 1926
|
@@ -15954,10 +15959,10 @@
|
|
15954
15959
|
"bytesInOutput": 887
|
15955
15960
|
},
|
15956
15961
|
"src/Prebuilt/App.tsx": {
|
15957
|
-
"bytesInOutput":
|
15962
|
+
"bytesInOutput": 7656
|
15958
15963
|
},
|
15959
15964
|
"src/Prebuilt/components/AppData/AppData.tsx": {
|
15960
|
-
"bytesInOutput":
|
15965
|
+
"bytesInOutput": 5077
|
15961
15966
|
},
|
15962
15967
|
"src/Prebuilt/components/Settings/LayoutSettings.tsx": {
|
15963
15968
|
"bytesInOutput": 2705
|
@@ -15974,6 +15979,18 @@
|
|
15974
15979
|
"src/Prebuilt/components/Settings/common.ts": {
|
15975
15980
|
"bytesInOutput": 241
|
15976
15981
|
},
|
15982
|
+
"src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts": {
|
15983
|
+
"bytesInOutput": 1436
|
15984
|
+
},
|
15985
|
+
"src/Prebuilt/provider/roomLayoutProvider/index.tsx": {
|
15986
|
+
"bytesInOutput": 1118
|
15987
|
+
},
|
15988
|
+
"src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts": {
|
15989
|
+
"bytesInOutput": 2254
|
15990
|
+
},
|
15991
|
+
"src/Prebuilt/provider/roomLayoutProvider/constants/index.ts": {
|
15992
|
+
"bytesInOutput": 1486
|
15993
|
+
},
|
15977
15994
|
"src/Prebuilt/components/AppData/useSidepane.js": {
|
15978
15995
|
"bytesInOutput": 1934
|
15979
15996
|
},
|
@@ -16050,7 +16067,7 @@
|
|
16050
16067
|
"bytesInOutput": 178
|
16051
16068
|
},
|
16052
16069
|
"src/Prebuilt/components/PIP/PIPComponent.jsx": {
|
16053
|
-
"bytesInOutput":
|
16070
|
+
"bytesInOutput": 2338
|
16054
16071
|
},
|
16055
16072
|
"src/Prebuilt/components/PIP/PIPManager.js": {
|
16056
16073
|
"bytesInOutput": 9164
|
@@ -16070,18 +16087,6 @@
|
|
16070
16087
|
"src/Prebuilt/common/hooks.ts": {
|
16071
16088
|
"bytesInOutput": 2675
|
16072
16089
|
},
|
16073
|
-
"src/Prebuilt/provider/roomLayoutProvider/index.tsx": {
|
16074
|
-
"bytesInOutput": 1118
|
16075
|
-
},
|
16076
|
-
"src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts": {
|
16077
|
-
"bytesInOutput": 2256
|
16078
|
-
},
|
16079
|
-
"src/Prebuilt/provider/roomLayoutProvider/constants/index.ts": {
|
16080
|
-
"bytesInOutput": 1486
|
16081
|
-
},
|
16082
|
-
"src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts": {
|
16083
|
-
"bytesInOutput": 1436
|
16084
|
-
},
|
16085
16090
|
"src/Prebuilt/components/Settings/SettingsModal.jsx": {
|
16086
16091
|
"bytesInOutput": 8963
|
16087
16092
|
},
|
@@ -16272,7 +16277,7 @@
|
|
16272
16277
|
"bytesInOutput": 735
|
16273
16278
|
},
|
16274
16279
|
"src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
|
16275
|
-
"bytesInOutput":
|
16280
|
+
"bytesInOutput": 7536
|
16276
16281
|
},
|
16277
16282
|
"src/Prebuilt/components/Streaming/Common.jsx": {
|
16278
16283
|
"bytesInOutput": 2247
|
@@ -16314,7 +16319,7 @@
|
|
16314
16319
|
"bytesInOutput": 4015
|
16315
16320
|
},
|
16316
16321
|
"src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx": {
|
16317
|
-
"bytesInOutput":
|
16322
|
+
"bytesInOutput": 2078
|
16318
16323
|
},
|
16319
16324
|
"src/Prebuilt/components/Polls/common/utils.ts": {
|
16320
16325
|
"bytesInOutput": 480
|
@@ -16422,7 +16427,7 @@
|
|
16422
16427
|
"bytesInOutput": 1050
|
16423
16428
|
},
|
16424
16429
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
16425
|
-
"bytesInOutput":
|
16430
|
+
"bytesInOutput": 7244
|
16426
16431
|
},
|
16427
16432
|
"src/Prebuilt/components/VirtualBackground/VBCollection.tsx": {
|
16428
16433
|
"bytesInOutput": 1157
|
@@ -16629,7 +16634,7 @@
|
|
16629
16634
|
"bytesInOutput": 651
|
16630
16635
|
}
|
16631
16636
|
},
|
16632
|
-
"bytes":
|
16637
|
+
"bytes": 1266496
|
16633
16638
|
}
|
16634
16639
|
}
|
16635
16640
|
}
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.2.6-alpha.
|
13
|
+
"version": "0.2.6-alpha.3",
|
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.6-alpha.
|
86
|
-
"@100mslive/hms-virtual-background": "1.12.6-alpha.
|
87
|
-
"@100mslive/react-icons": "0.9.6-alpha.
|
88
|
-
"@100mslive/react-sdk": "0.9.6-alpha.
|
85
|
+
"@100mslive/hls-player": "0.2.6-alpha.3",
|
86
|
+
"@100mslive/hms-virtual-background": "1.12.6-alpha.3",
|
87
|
+
"@100mslive/react-icons": "0.9.6-alpha.3",
|
88
|
+
"@100mslive/react-sdk": "0.9.6-alpha.3",
|
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": "e1e1ecc82a980ca298ecb36c81c35ab7500b06b4"
|
124
124
|
}
|
package/src/Prebuilt/App.tsx
CHANGED
@@ -96,8 +96,8 @@ export const HMSPrebuilt = React.forwardRef<HMSPrebuiltRefType, HMSPrebuiltProps
|
|
96
96
|
ref,
|
97
97
|
) => {
|
98
98
|
const reactiveStore = useRef<HMSPrebuiltRefType>();
|
99
|
-
|
100
99
|
const [hydrated, setHydrated] = React.useState(false);
|
100
|
+
|
101
101
|
useEffect(() => {
|
102
102
|
setHydrated(true);
|
103
103
|
const hms = new HMSReactiveStore();
|
@@ -122,14 +122,13 @@ export const HMSPrebuilt = React.forwardRef<HMSPrebuiltRefType, HMSPrebuiltProps
|
|
122
122
|
(ref as MutableRefObject<HMSPrebuiltRefType>).current = { ...reactiveStore.current };
|
123
123
|
}, [ref]);
|
124
124
|
|
125
|
-
|
126
|
-
|
127
|
-
|
125
|
+
useEffect(() => {
|
126
|
+
// leave room when component unmounts
|
127
|
+
return () => {
|
128
128
|
VBHandler.reset();
|
129
129
|
reactiveStore?.current?.hmsActions.leave();
|
130
|
-
}
|
131
|
-
|
132
|
-
);
|
130
|
+
};
|
131
|
+
}, []);
|
133
132
|
|
134
133
|
const endpointsObj = endpoints as
|
135
134
|
| {
|
@@ -214,7 +213,6 @@ export const HMSPrebuilt = React.forwardRef<HMSPrebuiltRefType, HMSPrebuiltProps
|
|
214
213
|
},
|
215
214
|
}}
|
216
215
|
>
|
217
|
-
<AppData />
|
218
216
|
<Init />
|
219
217
|
<DialogContainerProvider dialogContainerSelector={containerSelector}>
|
220
218
|
<Box
|
@@ -291,6 +289,7 @@ function AppRoutes({
|
|
291
289
|
return (
|
292
290
|
<AppStateContext.Provider value={{ rejoin }}>
|
293
291
|
<>
|
292
|
+
{activeState !== PrebuiltStates.LEAVE && <AppData />}
|
294
293
|
<ToastContainer />
|
295
294
|
<Notifications />
|
296
295
|
<MwebLandscapePrompt />
|
@@ -46,8 +46,8 @@ export const APP_DATA = {
|
|
46
46
|
disableNotifications: 'disableNotifications',
|
47
47
|
pollState: 'pollState',
|
48
48
|
background: 'background',
|
49
|
-
backgroundType: 'backgroundType',
|
50
49
|
};
|
50
|
+
|
51
51
|
export const UI_SETTINGS = {
|
52
52
|
isAudioOnly: 'isAudioOnly',
|
53
53
|
maxTileCount: 'maxTileCount',
|
@@ -10,6 +10,7 @@ import {
|
|
10
10
|
useRecordingStreaming,
|
11
11
|
} from '@100mslive/react-sdk';
|
12
12
|
import { LayoutMode } from '../Settings/LayoutSettings';
|
13
|
+
import { useRoomLayoutConferencingScreen } from '../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';
|
13
14
|
//@ts-ignore
|
14
15
|
import { UserPreferencesKeys, useUserPreferences } from '../hooks/useUserPreferences';
|
15
16
|
// @ts-ignore
|
@@ -60,7 +61,6 @@ const initialAppData = {
|
|
60
61
|
[APP_DATA.activeScreensharePeerId]: '',
|
61
62
|
[APP_DATA.disableNotifications]: false,
|
62
63
|
[APP_DATA.background]: 'none',
|
63
|
-
[APP_DATA.backgroundType]: 'none',
|
64
64
|
[APP_DATA.pollState]: {
|
65
65
|
[POLL_STATE.pollInView]: '',
|
66
66
|
[POLL_STATE.view]: '',
|
@@ -71,6 +71,8 @@ export const AppData = React.memo(() => {
|
|
71
71
|
const hmsActions = useHMSActions();
|
72
72
|
const [preferences = {}] = useUserPreferences(UserPreferencesKeys.UI_SETTINGS);
|
73
73
|
const appData = useHMSStore(selectFullAppData);
|
74
|
+
const { elements } = useRoomLayoutConferencingScreen();
|
75
|
+
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
74
76
|
|
75
77
|
useEffect(() => {
|
76
78
|
hmsActions.initAppData({
|
@@ -103,6 +105,19 @@ export const AppData = React.memo(() => {
|
|
103
105
|
hmsActions.setAppData(APP_DATA.subscribedNotifications, preferences.subscribedNotifications, true);
|
104
106
|
}, [preferences.subscribedNotifications, hmsActions]);
|
105
107
|
|
108
|
+
useEffect(() => {
|
109
|
+
let defaultMediaURL;
|
110
|
+
elements?.virtual_background?.background_media?.forEach(media => {
|
111
|
+
if (media.default && media.url) {
|
112
|
+
defaultMediaURL = media.url;
|
113
|
+
}
|
114
|
+
});
|
115
|
+
if (defaultMediaURL) {
|
116
|
+
hmsActions.setAppData(APP_DATA.background, defaultMediaURL);
|
117
|
+
toggleVB();
|
118
|
+
}
|
119
|
+
}, [hmsActions, elements?.virtual_background?.background_media, toggleVB]);
|
120
|
+
|
106
121
|
return <ResetStreamingStart />;
|
107
122
|
});
|
108
123
|
|