@100mslive/roomkit-react 0.2.2 → 0.2.3-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-LVQBZ4PX.js → HLSView-CVRPVOXD.js} +2 -2
- package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +2 -0
- package/dist/{chunk-AMKCMJY4.js → chunk-5W4IGFZA.js} +475 -446
- package/dist/chunk-5W4IGFZA.js.map +7 -0
- package/dist/index.cjs.js +563 -531
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +138 -121
- package/dist/meta.esbuild.json +141 -124
- package/package.json +7 -7
- package/src/Prebuilt/components/AuthToken.jsx +34 -30
- package/src/Prebuilt/components/ConferenceScreen.tsx +2 -1
- package/src/Prebuilt/components/ErrorBoundary.jsx +4 -2
- package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +10 -0
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +29 -12
- package/src/Prebuilt/images/transaction_error.svg +12 -0
- package/src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts +5 -3
- package/dist/chunk-AMKCMJY4.js.map +0 -7
- /package/dist/{HLSView-LVQBZ4PX.js.map → HLSView-CVRPVOXD.js.map} +0 -0
package/dist/meta.esbuild.json
CHANGED
@@ -2063,89 +2063,12 @@
|
|
2063
2063
|
],
|
2064
2064
|
"format": "esm"
|
2065
2065
|
},
|
2066
|
-
"src/Prebuilt/
|
2067
|
-
"bytes":
|
2068
|
-
"imports": [
|
2069
|
-
{
|
2070
|
-
"path": "react",
|
2071
|
-
"kind": "import-statement",
|
2072
|
-
"external": true
|
2073
|
-
},
|
2074
|
-
{
|
2075
|
-
"path": "@100mslive/react-icons",
|
2076
|
-
"kind": "import-statement",
|
2077
|
-
"external": true
|
2078
|
-
},
|
2079
|
-
{
|
2080
|
-
"path": "src/Button/index.tsx",
|
2081
|
-
"kind": "import-statement",
|
2082
|
-
"original": "../../Button"
|
2083
|
-
},
|
2084
|
-
{
|
2085
|
-
"path": "src/Checkbox/index.tsx",
|
2086
|
-
"kind": "import-statement",
|
2087
|
-
"original": "../../Checkbox"
|
2088
|
-
},
|
2089
|
-
{
|
2090
|
-
"path": "src/Divider/index.ts",
|
2091
|
-
"kind": "import-statement",
|
2092
|
-
"original": "../../Divider"
|
2093
|
-
},
|
2094
|
-
{
|
2095
|
-
"path": "src/IconButton/index.tsx",
|
2096
|
-
"kind": "import-statement",
|
2097
|
-
"original": "../../IconButton"
|
2098
|
-
},
|
2099
|
-
{
|
2100
|
-
"path": "src/Input/index.tsx",
|
2101
|
-
"kind": "import-statement",
|
2102
|
-
"original": "../../Input"
|
2103
|
-
},
|
2104
|
-
{
|
2105
|
-
"path": "src/Label/index.ts",
|
2106
|
-
"kind": "import-statement",
|
2107
|
-
"original": "../../Label"
|
2108
|
-
},
|
2109
|
-
{
|
2110
|
-
"path": "src/Layout/index.tsx",
|
2111
|
-
"kind": "import-statement",
|
2112
|
-
"original": "../../Layout"
|
2113
|
-
},
|
2114
|
-
{
|
2115
|
-
"path": "src/Modal/index.ts",
|
2116
|
-
"kind": "import-statement",
|
2117
|
-
"original": "../../Modal"
|
2118
|
-
},
|
2119
|
-
{
|
2120
|
-
"path": "src/Select/index.ts",
|
2121
|
-
"kind": "import-statement",
|
2122
|
-
"original": "../../Select"
|
2123
|
-
},
|
2124
|
-
{
|
2125
|
-
"path": "src/Switch/index.ts",
|
2126
|
-
"kind": "import-statement",
|
2127
|
-
"original": "../../Switch"
|
2128
|
-
},
|
2129
|
-
{
|
2130
|
-
"path": "src/Text/index.tsx",
|
2131
|
-
"kind": "import-statement",
|
2132
|
-
"original": "../../Text"
|
2133
|
-
},
|
2134
|
-
{
|
2135
|
-
"path": "<define:process.env>",
|
2136
|
-
"kind": "import-statement",
|
2137
|
-
"external": true
|
2138
|
-
},
|
2139
|
-
{
|
2140
|
-
"path": "<runtime>",
|
2141
|
-
"kind": "import-statement",
|
2142
|
-
"external": true
|
2143
|
-
}
|
2144
|
-
],
|
2145
|
-
"format": "esm"
|
2066
|
+
"src/Prebuilt/images/transaction_error.svg": {
|
2067
|
+
"bytes": 4603,
|
2068
|
+
"imports": []
|
2146
2069
|
},
|
2147
2070
|
"src/Prebuilt/components/AuthToken.jsx": {
|
2148
|
-
"bytes":
|
2071
|
+
"bytes": 4368,
|
2149
2072
|
"imports": [
|
2150
2073
|
{
|
2151
2074
|
"path": "react",
|
@@ -2168,9 +2091,14 @@
|
|
2168
2091
|
"external": true
|
2169
2092
|
},
|
2170
2093
|
{
|
2171
|
-
"path": "src/
|
2094
|
+
"path": "src/Modal/index.ts",
|
2172
2095
|
"kind": "import-statement",
|
2173
|
-
"original": "../../
|
2096
|
+
"original": "../../Modal"
|
2097
|
+
},
|
2098
|
+
{
|
2099
|
+
"path": "src/Text/index.tsx",
|
2100
|
+
"kind": "import-statement",
|
2101
|
+
"original": "../../Text"
|
2174
2102
|
},
|
2175
2103
|
{
|
2176
2104
|
"path": "src/Prebuilt/AppContext.tsx",
|
@@ -2178,9 +2106,9 @@
|
|
2178
2106
|
"original": "../AppContext"
|
2179
2107
|
},
|
2180
2108
|
{
|
2181
|
-
"path": "src/Prebuilt/
|
2109
|
+
"path": "src/Prebuilt/images/transaction_error.svg",
|
2182
2110
|
"kind": "import-statement",
|
2183
|
-
"original": "../
|
2111
|
+
"original": "../images/transaction_error.svg"
|
2184
2112
|
},
|
2185
2113
|
{
|
2186
2114
|
"path": "src/Prebuilt/components/AppData/useUISettings.js",
|
@@ -3137,7 +3065,7 @@
|
|
3137
3065
|
"format": "esm"
|
3138
3066
|
},
|
3139
3067
|
"src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts": {
|
3140
|
-
"bytes":
|
3068
|
+
"bytes": 2273,
|
3141
3069
|
"imports": [
|
3142
3070
|
{
|
3143
3071
|
"path": "@100mslive/types-prebuilt",
|
@@ -3621,6 +3549,87 @@
|
|
3621
3549
|
],
|
3622
3550
|
"format": "esm"
|
3623
3551
|
},
|
3552
|
+
"src/Prebuilt/primitives/DialogContent.jsx": {
|
3553
|
+
"bytes": 8379,
|
3554
|
+
"imports": [
|
3555
|
+
{
|
3556
|
+
"path": "react",
|
3557
|
+
"kind": "import-statement",
|
3558
|
+
"external": true
|
3559
|
+
},
|
3560
|
+
{
|
3561
|
+
"path": "@100mslive/react-icons",
|
3562
|
+
"kind": "import-statement",
|
3563
|
+
"external": true
|
3564
|
+
},
|
3565
|
+
{
|
3566
|
+
"path": "src/Button/index.tsx",
|
3567
|
+
"kind": "import-statement",
|
3568
|
+
"original": "../../Button"
|
3569
|
+
},
|
3570
|
+
{
|
3571
|
+
"path": "src/Checkbox/index.tsx",
|
3572
|
+
"kind": "import-statement",
|
3573
|
+
"original": "../../Checkbox"
|
3574
|
+
},
|
3575
|
+
{
|
3576
|
+
"path": "src/Divider/index.ts",
|
3577
|
+
"kind": "import-statement",
|
3578
|
+
"original": "../../Divider"
|
3579
|
+
},
|
3580
|
+
{
|
3581
|
+
"path": "src/IconButton/index.tsx",
|
3582
|
+
"kind": "import-statement",
|
3583
|
+
"original": "../../IconButton"
|
3584
|
+
},
|
3585
|
+
{
|
3586
|
+
"path": "src/Input/index.tsx",
|
3587
|
+
"kind": "import-statement",
|
3588
|
+
"original": "../../Input"
|
3589
|
+
},
|
3590
|
+
{
|
3591
|
+
"path": "src/Label/index.ts",
|
3592
|
+
"kind": "import-statement",
|
3593
|
+
"original": "../../Label"
|
3594
|
+
},
|
3595
|
+
{
|
3596
|
+
"path": "src/Layout/index.tsx",
|
3597
|
+
"kind": "import-statement",
|
3598
|
+
"original": "../../Layout"
|
3599
|
+
},
|
3600
|
+
{
|
3601
|
+
"path": "src/Modal/index.ts",
|
3602
|
+
"kind": "import-statement",
|
3603
|
+
"original": "../../Modal"
|
3604
|
+
},
|
3605
|
+
{
|
3606
|
+
"path": "src/Select/index.ts",
|
3607
|
+
"kind": "import-statement",
|
3608
|
+
"original": "../../Select"
|
3609
|
+
},
|
3610
|
+
{
|
3611
|
+
"path": "src/Switch/index.ts",
|
3612
|
+
"kind": "import-statement",
|
3613
|
+
"original": "../../Switch"
|
3614
|
+
},
|
3615
|
+
{
|
3616
|
+
"path": "src/Text/index.tsx",
|
3617
|
+
"kind": "import-statement",
|
3618
|
+
"original": "../../Text"
|
3619
|
+
},
|
3620
|
+
{
|
3621
|
+
"path": "<define:process.env>",
|
3622
|
+
"kind": "import-statement",
|
3623
|
+
"external": true
|
3624
|
+
},
|
3625
|
+
{
|
3626
|
+
"path": "<runtime>",
|
3627
|
+
"kind": "import-statement",
|
3628
|
+
"external": true
|
3629
|
+
}
|
3630
|
+
],
|
3631
|
+
"format": "esm"
|
3632
|
+
},
|
3624
3633
|
"src/Prebuilt/components/Streaming/ResolutionInput.jsx": {
|
3625
3634
|
"bytes": 2924,
|
3626
3635
|
"imports": [
|
@@ -4478,7 +4487,7 @@
|
|
4478
4487
|
"format": "cjs"
|
4479
4488
|
},
|
4480
4489
|
"../hms-video-store/dist/index.js": {
|
4481
|
-
"bytes":
|
4490
|
+
"bytes": 321476,
|
4482
4491
|
"imports": [
|
4483
4492
|
{
|
4484
4493
|
"path": "../../node_modules/reselect/es/index.js",
|
@@ -8700,7 +8709,7 @@
|
|
8700
8709
|
"format": "esm"
|
8701
8710
|
},
|
8702
8711
|
"src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
|
8703
|
-
"bytes":
|
8712
|
+
"bytes": 2675,
|
8704
8713
|
"imports": [
|
8705
8714
|
{
|
8706
8715
|
"path": "@100mslive/hms-virtual-background",
|
@@ -8732,7 +8741,7 @@
|
|
8732
8741
|
"format": "esm"
|
8733
8742
|
},
|
8734
8743
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
8735
|
-
"bytes":
|
8744
|
+
"bytes": 6884,
|
8736
8745
|
"imports": [
|
8737
8746
|
{
|
8738
8747
|
"path": "react",
|
@@ -10920,7 +10929,7 @@
|
|
10920
10929
|
"format": "esm"
|
10921
10930
|
},
|
10922
10931
|
"src/Prebuilt/components/ConferenceScreen.tsx": {
|
10923
|
-
"bytes":
|
10932
|
+
"bytes": 6739,
|
10924
10933
|
"imports": [
|
10925
10934
|
{
|
10926
10935
|
"path": "react",
|
@@ -10932,6 +10941,11 @@
|
|
10932
10941
|
"kind": "import-statement",
|
10933
10942
|
"external": true
|
10934
10943
|
},
|
10944
|
+
{
|
10945
|
+
"path": "uuid",
|
10946
|
+
"kind": "import-statement",
|
10947
|
+
"external": true
|
10948
|
+
},
|
10935
10949
|
{
|
10936
10950
|
"path": "@100mslive/react-sdk",
|
10937
10951
|
"kind": "import-statement",
|
@@ -11016,7 +11030,7 @@
|
|
11016
11030
|
"format": "esm"
|
11017
11031
|
},
|
11018
11032
|
"src/Prebuilt/components/ErrorBoundary.jsx": {
|
11019
|
-
"bytes":
|
11033
|
+
"bytes": 3396,
|
11020
11034
|
"imports": [
|
11021
11035
|
{
|
11022
11036
|
"path": "react",
|
@@ -11048,11 +11062,6 @@
|
|
11048
11062
|
"kind": "import-statement",
|
11049
11063
|
"original": "../../Tooltip"
|
11050
11064
|
},
|
11051
|
-
{
|
11052
|
-
"path": "src/Prebuilt/components/AuthToken.jsx",
|
11053
|
-
"kind": "import-statement",
|
11054
|
-
"original": "./AuthToken"
|
11055
|
-
},
|
11056
11065
|
{
|
11057
11066
|
"path": "<define:process.env>",
|
11058
11067
|
"kind": "import-statement",
|
@@ -12603,7 +12612,7 @@
|
|
12603
12612
|
"dist/index.js": {
|
12604
12613
|
"imports": [
|
12605
12614
|
{
|
12606
|
-
"path": "dist/chunk-
|
12615
|
+
"path": "dist/chunk-5W4IGFZA.js",
|
12607
12616
|
"kind": "import-statement"
|
12608
12617
|
}
|
12609
12618
|
],
|
@@ -12676,16 +12685,16 @@
|
|
12676
12685
|
"inputs": {},
|
12677
12686
|
"bytes": 1822
|
12678
12687
|
},
|
12679
|
-
"dist/HLSView-
|
12688
|
+
"dist/HLSView-CVRPVOXD.js.map": {
|
12680
12689
|
"imports": [],
|
12681
12690
|
"exports": [],
|
12682
12691
|
"inputs": {},
|
12683
12692
|
"bytes": 58852
|
12684
12693
|
},
|
12685
|
-
"dist/HLSView-
|
12694
|
+
"dist/HLSView-CVRPVOXD.js": {
|
12686
12695
|
"imports": [
|
12687
12696
|
{
|
12688
|
-
"path": "dist/chunk-
|
12697
|
+
"path": "dist/chunk-5W4IGFZA.js",
|
12689
12698
|
"kind": "import-statement"
|
12690
12699
|
},
|
12691
12700
|
{
|
@@ -12849,13 +12858,13 @@
|
|
12849
12858
|
},
|
12850
12859
|
"bytes": 36970
|
12851
12860
|
},
|
12852
|
-
"dist/chunk-
|
12861
|
+
"dist/chunk-5W4IGFZA.js.map": {
|
12853
12862
|
"imports": [],
|
12854
12863
|
"exports": [],
|
12855
12864
|
"inputs": {},
|
12856
|
-
"bytes":
|
12865
|
+
"bytes": 3013053
|
12857
12866
|
},
|
12858
|
-
"dist/chunk-
|
12867
|
+
"dist/chunk-5W4IGFZA.js": {
|
12859
12868
|
"imports": [
|
12860
12869
|
{
|
12861
12870
|
"path": "react",
|
@@ -13213,12 +13222,7 @@
|
|
13213
13222
|
"external": true
|
13214
13223
|
},
|
13215
13224
|
{
|
13216
|
-
"path": "
|
13217
|
-
"kind": "import-statement",
|
13218
|
-
"external": true
|
13219
|
-
},
|
13220
|
-
{
|
13221
|
-
"path": "react",
|
13225
|
+
"path": "uuid",
|
13222
13226
|
"kind": "import-statement",
|
13223
13227
|
"external": true
|
13224
13228
|
},
|
@@ -13607,6 +13611,16 @@
|
|
13607
13611
|
"kind": "import-statement",
|
13608
13612
|
"external": true
|
13609
13613
|
},
|
13614
|
+
{
|
13615
|
+
"path": "@100mslive/react-icons",
|
13616
|
+
"kind": "import-statement",
|
13617
|
+
"external": true
|
13618
|
+
},
|
13619
|
+
{
|
13620
|
+
"path": "react",
|
13621
|
+
"kind": "import-statement",
|
13622
|
+
"external": true
|
13623
|
+
},
|
13610
13624
|
{
|
13611
13625
|
"path": "@100mslive/react-sdk",
|
13612
13626
|
"kind": "import-statement",
|
@@ -15078,7 +15092,7 @@
|
|
15078
15092
|
"external": true
|
15079
15093
|
},
|
15080
15094
|
{
|
15081
|
-
"path": "dist/HLSView-
|
15095
|
+
"path": "dist/HLSView-CVRPVOXD.js",
|
15082
15096
|
"kind": "dynamic-import"
|
15083
15097
|
},
|
15084
15098
|
{
|
@@ -15500,7 +15514,7 @@
|
|
15500
15514
|
],
|
15501
15515
|
"inputs": {
|
15502
15516
|
"<define:process.env>": {
|
15503
|
-
"bytesInOutput":
|
15517
|
+
"bytesInOutput": 18076
|
15504
15518
|
},
|
15505
15519
|
"../../node_modules/lodash/lodash.js": {
|
15506
15520
|
"bytesInOutput": 224265
|
@@ -15695,7 +15709,7 @@
|
|
15695
15709
|
"bytesInOutput": 7824
|
15696
15710
|
},
|
15697
15711
|
"src/Stats/formatBytes.ts": {
|
15698
|
-
"bytesInOutput":
|
15712
|
+
"bytesInOutput": 471
|
15699
15713
|
},
|
15700
15714
|
"src/Stats/StyledStats.tsx": {
|
15701
15715
|
"bytesInOutput": 708
|
@@ -15764,16 +15778,16 @@
|
|
15764
15778
|
"bytesInOutput": 5393
|
15765
15779
|
},
|
15766
15780
|
"src/Prebuilt/components/AuthToken.jsx": {
|
15767
|
-
"bytesInOutput":
|
15781
|
+
"bytesInOutput": 3632
|
15768
15782
|
},
|
15769
15783
|
"src/Prebuilt/AppContext.tsx": {
|
15770
15784
|
"bytesInOutput": 577
|
15771
15785
|
},
|
15772
|
-
"src/Prebuilt/
|
15773
|
-
"bytesInOutput":
|
15786
|
+
"src/Prebuilt/images/transaction_error.svg": {
|
15787
|
+
"bytesInOutput": 4698
|
15774
15788
|
},
|
15775
15789
|
"src/Prebuilt/components/ConferenceScreen.tsx": {
|
15776
|
-
"bytesInOutput":
|
15790
|
+
"bytesInOutput": 6071
|
15777
15791
|
},
|
15778
15792
|
"src/Prebuilt/components/Footer/Footer.tsx": {
|
15779
15793
|
"bytesInOutput": 3348
|
@@ -15848,7 +15862,7 @@
|
|
15848
15862
|
"bytesInOutput": 2476
|
15849
15863
|
},
|
15850
15864
|
"src/Prebuilt/components/RoleChangeModal.jsx": {
|
15851
|
-
"bytesInOutput":
|
15865
|
+
"bytesInOutput": 6079
|
15852
15866
|
},
|
15853
15867
|
"src/Prebuilt/components/hooks/useDropdownSelection.jsx": {
|
15854
15868
|
"bytesInOutput": 93
|
@@ -15866,7 +15880,7 @@
|
|
15866
15880
|
"bytesInOutput": 1486
|
15867
15881
|
},
|
15868
15882
|
"src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts": {
|
15869
|
-
"bytesInOutput":
|
15883
|
+
"bytesInOutput": 1436
|
15870
15884
|
},
|
15871
15885
|
"src/Prebuilt/components/Settings/SettingsModal.jsx": {
|
15872
15886
|
"bytesInOutput": 8539
|
@@ -15895,8 +15909,11 @@
|
|
15895
15909
|
"src/Prebuilt/components/Streaming/ResolutionInput.jsx": {
|
15896
15910
|
"bytesInOutput": 2940
|
15897
15911
|
},
|
15912
|
+
"src/Prebuilt/primitives/DialogContent.jsx": {
|
15913
|
+
"bytesInOutput": 7670
|
15914
|
+
},
|
15898
15915
|
"src/Prebuilt/components/StatsForNerds.jsx": {
|
15899
|
-
"bytesInOutput":
|
15916
|
+
"bytesInOutput": 9585
|
15900
15917
|
},
|
15901
15918
|
"src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx": {
|
15902
15919
|
"bytesInOutput": 5008
|
@@ -15923,7 +15940,7 @@
|
|
15923
15940
|
"bytesInOutput": 10019
|
15924
15941
|
},
|
15925
15942
|
"../hms-video-store/dist/index.js": {
|
15926
|
-
"bytesInOutput":
|
15943
|
+
"bytesInOutput": 48273
|
15927
15944
|
},
|
15928
15945
|
"../../node_modules/reselect/es/index.js": {
|
15929
15946
|
"bytesInOutput": 2537
|
@@ -16214,7 +16231,7 @@
|
|
16214
16231
|
"bytesInOutput": 1050
|
16215
16232
|
},
|
16216
16233
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
16217
|
-
"bytesInOutput":
|
16234
|
+
"bytesInOutput": 6776
|
16218
16235
|
},
|
16219
16236
|
"src/Prebuilt/components/VirtualBackground/VBCollection.tsx": {
|
16220
16237
|
"bytesInOutput": 1157
|
@@ -16223,7 +16240,7 @@
|
|
16223
16240
|
"bytesInOutput": 1161
|
16224
16241
|
},
|
16225
16242
|
"src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
|
16226
|
-
"bytesInOutput":
|
16243
|
+
"bytesInOutput": 3387
|
16227
16244
|
},
|
16228
16245
|
"src/Prebuilt/components/VirtualBackground/constants.ts": {
|
16229
16246
|
"bytesInOutput": 714
|
@@ -16319,7 +16336,7 @@
|
|
16319
16336
|
"bytesInOutput": 739
|
16320
16337
|
},
|
16321
16338
|
"src/Prebuilt/components/ErrorBoundary.jsx": {
|
16322
|
-
"bytesInOutput":
|
16339
|
+
"bytesInOutput": 3509
|
16323
16340
|
},
|
16324
16341
|
"src/Prebuilt/components/init/Init.jsx": {
|
16325
16342
|
"bytesInOutput": 666
|
@@ -16418,7 +16435,7 @@
|
|
16418
16435
|
"bytesInOutput": 651
|
16419
16436
|
}
|
16420
16437
|
},
|
16421
|
-
"bytes":
|
16438
|
+
"bytes": 1229752
|
16422
16439
|
}
|
16423
16440
|
}
|
16424
16441
|
}
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.2.
|
13
|
+
"version": "0.2.3-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.2.
|
86
|
-
"@100mslive/hms-virtual-background": "1.12.
|
87
|
-
"@100mslive/react-icons": "0.9.
|
88
|
-
"@100mslive/react-sdk": "0.9.
|
89
|
-
"@100mslive/types-prebuilt": "0.12.
|
85
|
+
"@100mslive/hls-player": "0.2.3-alpha.0",
|
86
|
+
"@100mslive/hms-virtual-background": "1.12.3-alpha.0",
|
87
|
+
"@100mslive/react-icons": "0.9.3-alpha.0",
|
88
|
+
"@100mslive/react-sdk": "0.9.3-alpha.0",
|
89
|
+
"@100mslive/types-prebuilt": "0.12.6",
|
90
90
|
"@emoji-mart/data": "^1.0.6",
|
91
91
|
"@emoji-mart/react": "^1.0.1",
|
92
92
|
"@radix-ui/react-accordion": "1.0.0",
|
@@ -120,5 +120,5 @@
|
|
120
120
|
"uuid": "^8.3.2",
|
121
121
|
"worker-timers": "^7.0.40"
|
122
122
|
},
|
123
|
-
"gitHead": "
|
123
|
+
"gitHead": "d3d81cbff3a76e9db81ceb754ba3d0aa0a8ae3c0"
|
124
124
|
}
|
@@ -2,9 +2,10 @@ import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { useSessionStorage } from 'react-use';
|
3
3
|
import { v4 as uuid } from 'uuid';
|
4
4
|
import { useHMSActions } from '@100mslive/react-sdk';
|
5
|
-
import {
|
5
|
+
import { Dialog } from '../../Modal';
|
6
|
+
import { Text } from '../../Text';
|
6
7
|
import { useHMSPrebuiltContext } from '../AppContext';
|
7
|
-
import
|
8
|
+
import errorImage from '../images/transaction_error.svg';
|
8
9
|
import { useSetAppDataByKey } from './AppData/useUISettings';
|
9
10
|
import { UserPreferencesKeys } from './hooks/useUserPreferences';
|
10
11
|
import { APP_DATA } from '../common/constants';
|
@@ -57,65 +58,68 @@ const AuthToken = React.memo(({ authTokenByRoomCodeEndpoint, defaultAuthToken })
|
|
57
58
|
]);
|
58
59
|
|
59
60
|
if (error.title) {
|
60
|
-
return
|
61
|
+
return (
|
62
|
+
<Dialog.Root open={true}>
|
63
|
+
<Dialog.Content
|
64
|
+
css={{
|
65
|
+
maxWidth: '$100',
|
66
|
+
boxSizing: 'border-box',
|
67
|
+
p: '$10 $12',
|
68
|
+
display: 'flex',
|
69
|
+
flexDirection: 'column',
|
70
|
+
alignItems: 'center',
|
71
|
+
}}
|
72
|
+
>
|
73
|
+
<img src={errorImage} height={80} width={80} />
|
74
|
+
<Text variant="h4" css={{ textAlign: 'center', mb: '$4', mt: '$10' }}>
|
75
|
+
{error.title}
|
76
|
+
</Text>
|
77
|
+
<Text css={{ c: '$on_surface_medium', textAlign: 'center' }}>{error.body}</Text>
|
78
|
+
</Dialog.Content>
|
79
|
+
</Dialog.Root>
|
80
|
+
);
|
61
81
|
}
|
62
82
|
return null;
|
63
83
|
});
|
64
84
|
|
65
85
|
const convertError = error => {
|
66
86
|
console.error('[error]', { error });
|
87
|
+
console.warn(
|
88
|
+
'If you think this is a mistake on our side, please reach out to us over Discord:',
|
89
|
+
'https://discord.com/invite/kGdmszyzq2',
|
90
|
+
);
|
67
91
|
if (error.action === 'GET_TOKEN' && error.code === 403) {
|
68
92
|
return {
|
69
|
-
title: '
|
70
|
-
body:
|
93
|
+
title: 'Psst! This room is currently inactive.',
|
94
|
+
body: 'Please feel free to join another open room for more conversations. Thanks for stopping by!',
|
71
95
|
};
|
72
96
|
} else if (error.action === 'GET_TOKEN' && error.code === 404) {
|
73
97
|
return {
|
74
98
|
title: 'Room code does not exist',
|
75
|
-
body:
|
99
|
+
body: 'We could not find a room code corresponding to this link.',
|
76
100
|
};
|
77
101
|
} else if (error.action === 'GET_TOKEN' && error.code === 2003) {
|
78
102
|
return {
|
79
103
|
title: 'Endpoint is not reachable',
|
80
|
-
body:
|
104
|
+
body: `Endpoint is not reachable. ${error.description}.`,
|
81
105
|
};
|
82
106
|
} else if (error.response && error.response.status === 404) {
|
83
107
|
return {
|
84
108
|
title: 'Room does not exist',
|
85
|
-
body:
|
109
|
+
body: 'We could not find a room corresponding to this link.',
|
86
110
|
};
|
87
111
|
} else if (error.response && error.response.status === 403) {
|
88
112
|
return {
|
89
113
|
title: 'Accessing room using this link format is disabled',
|
90
|
-
body:
|
114
|
+
body: 'You can re-enable this from the developer section in Dashboard.',
|
91
115
|
};
|
92
116
|
} else {
|
93
117
|
console.error('Token API Error', error);
|
94
118
|
return {
|
95
119
|
title: 'Error fetching token',
|
96
|
-
body:
|
97
|
-
'An error occurred while fetching the app token. Please look into logs for more details.',
|
98
|
-
),
|
120
|
+
body: 'An error occurred while fetching the app token. Please look into logs for more details.',
|
99
121
|
};
|
100
122
|
}
|
101
123
|
};
|
102
124
|
|
103
|
-
const Link = styled('a', {
|
104
|
-
color: '#2f80e1',
|
105
|
-
});
|
106
|
-
|
107
|
-
export const ErrorWithSupportLink = errorMessage => (
|
108
|
-
<div>
|
109
|
-
{errorMessage} If you think this is a mistake on our side, please create{' '}
|
110
|
-
<Link target="_blank" href="https://github.com/100mslive/100ms-web/issues" rel="noreferrer">
|
111
|
-
an issue
|
112
|
-
</Link>{' '}
|
113
|
-
or reach out over{' '}
|
114
|
-
<Link target="_blank" href="https://discord.com/invite/kGdmszyzq2" rel="noreferrer">
|
115
|
-
Discord
|
116
|
-
</Link>
|
117
|
-
.
|
118
|
-
</div>
|
119
|
-
);
|
120
|
-
|
121
125
|
export default AuthToken;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import React, { useEffect, useRef, useState } from 'react';
|
2
2
|
import { DefaultConferencingScreen_Elements } from '@100mslive/types-prebuilt';
|
3
|
+
import { v4 as uuid } from 'uuid';
|
3
4
|
import {
|
4
5
|
HMSRoomState,
|
5
6
|
selectAppData,
|
@@ -79,7 +80,7 @@ export const ConferenceScreen = () => {
|
|
79
80
|
) {
|
80
81
|
hmsActions
|
81
82
|
.join({
|
82
|
-
userName: userName ||
|
83
|
+
userName: userName || uuid(),
|
83
84
|
authToken: authTokenInAppData,
|
84
85
|
initEndpoint: endpoints?.init,
|
85
86
|
settings: {
|
@@ -4,7 +4,6 @@ import { Button } from '../../Button';
|
|
4
4
|
import { Box, Flex } from '../../Layout';
|
5
5
|
import { Text } from '../../Text';
|
6
6
|
import { Tooltip } from '../../Tooltip';
|
7
|
-
import { ErrorWithSupportLink } from './AuthToken';
|
8
7
|
|
9
8
|
export class ErrorBoundary extends Component {
|
10
9
|
constructor(props) {
|
@@ -49,7 +48,10 @@ export class ErrorBoundary extends Component {
|
|
49
48
|
<Text>Something went wrong</Text>
|
50
49
|
<Text>Message: ${this.state.error}</Text>
|
51
50
|
<br />
|
52
|
-
|
51
|
+
Please reload to see if it works. If you think this is a mistake on our side, please reach out to us on
|
52
|
+
<a href="https://discord.com/invite/kGdmszyzq2" target="_blank" rel="noreferrer">
|
53
|
+
Discord
|
54
|
+
</a>
|
53
55
|
</div>
|
54
56
|
<Flex>
|
55
57
|
<Tooltip title="Reload page">
|
@@ -70,6 +70,16 @@ export class VBPlugin {
|
|
70
70
|
}
|
71
71
|
};
|
72
72
|
|
73
|
+
setPreset = (preset: string) => {
|
74
|
+
if (this.effectsPlugin) {
|
75
|
+
this.effectsPlugin.setPreset(preset);
|
76
|
+
}
|
77
|
+
};
|
78
|
+
|
79
|
+
getPreset = () => {
|
80
|
+
return this.effectsPlugin?.getPreset() || '';
|
81
|
+
};
|
82
|
+
|
73
83
|
removeEffects = async () => {
|
74
84
|
if (this.effectsPlugin) {
|
75
85
|
this.effectsPlugin?.removeEffects();
|