@100mslive/roomkit-react 0.2.2 → 0.2.3-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2063,89 +2063,12 @@
2063
2063
  ],
2064
2064
  "format": "esm"
2065
2065
  },
2066
- "src/Prebuilt/primitives/DialogContent.jsx": {
2067
- "bytes": 8379,
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": 4205,
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/Theme/index.tsx",
2094
+ "path": "src/Modal/index.ts",
2172
2095
  "kind": "import-statement",
2173
- "original": "../../Theme"
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/primitives/DialogContent.jsx",
2109
+ "path": "src/Prebuilt/images/transaction_error.svg",
2182
2110
  "kind": "import-statement",
2183
- "original": "../primitives/DialogContent"
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": 2131,
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": [
@@ -4158,6 +4167,17 @@
4158
4167
  ],
4159
4168
  "format": "cjs"
4160
4169
  },
4170
+ "../../node_modules/lodash.isequal/index.js": {
4171
+ "bytes": 49598,
4172
+ "imports": [
4173
+ {
4174
+ "path": "<define:process.env>",
4175
+ "kind": "import-statement",
4176
+ "external": true
4177
+ }
4178
+ ],
4179
+ "format": "cjs"
4180
+ },
4161
4181
  "../../node_modules/webrtc-adapter/src/js/utils.js": {
4162
4182
  "bytes": 7988,
4163
4183
  "imports": [
@@ -4478,7 +4498,7 @@
4478
4498
  "format": "cjs"
4479
4499
  },
4480
4500
  "../hms-video-store/dist/index.js": {
4481
- "bytes": 320781,
4501
+ "bytes": 321585,
4482
4502
  "imports": [
4483
4503
  {
4484
4504
  "path": "../../node_modules/reselect/es/index.js",
@@ -4500,6 +4520,11 @@
4500
4520
  "kind": "import-statement",
4501
4521
  "original": "ua-parser-js"
4502
4522
  },
4523
+ {
4524
+ "path": "../../node_modules/lodash.isequal/index.js",
4525
+ "kind": "import-statement",
4526
+ "original": "lodash.isequal"
4527
+ },
4503
4528
  {
4504
4529
  "path": "uuid",
4505
4530
  "kind": "import-statement",
@@ -4515,6 +4540,11 @@
4515
4540
  "kind": "import-statement",
4516
4541
  "original": "webrtc-adapter"
4517
4542
  },
4543
+ {
4544
+ "path": "../../node_modules/lodash.isequal/index.js",
4545
+ "kind": "import-statement",
4546
+ "original": "lodash.isequal"
4547
+ },
4518
4548
  {
4519
4549
  "path": "uuid",
4520
4550
  "kind": "import-statement",
@@ -8700,7 +8730,7 @@
8700
8730
  "format": "esm"
8701
8731
  },
8702
8732
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
8703
- "bytes": 2475,
8733
+ "bytes": 2675,
8704
8734
  "imports": [
8705
8735
  {
8706
8736
  "path": "@100mslive/hms-virtual-background",
@@ -8732,7 +8762,7 @@
8732
8762
  "format": "esm"
8733
8763
  },
8734
8764
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
8735
- "bytes": 6047,
8765
+ "bytes": 6884,
8736
8766
  "imports": [
8737
8767
  {
8738
8768
  "path": "react",
@@ -10920,7 +10950,7 @@
10920
10950
  "format": "esm"
10921
10951
  },
10922
10952
  "src/Prebuilt/components/ConferenceScreen.tsx": {
10923
- "bytes": 6700,
10953
+ "bytes": 6739,
10924
10954
  "imports": [
10925
10955
  {
10926
10956
  "path": "react",
@@ -10932,6 +10962,11 @@
10932
10962
  "kind": "import-statement",
10933
10963
  "external": true
10934
10964
  },
10965
+ {
10966
+ "path": "uuid",
10967
+ "kind": "import-statement",
10968
+ "external": true
10969
+ },
10935
10970
  {
10936
10971
  "path": "@100mslive/react-sdk",
10937
10972
  "kind": "import-statement",
@@ -11016,7 +11051,7 @@
11016
11051
  "format": "esm"
11017
11052
  },
11018
11053
  "src/Prebuilt/components/ErrorBoundary.jsx": {
11019
- "bytes": 3259,
11054
+ "bytes": 3396,
11020
11055
  "imports": [
11021
11056
  {
11022
11057
  "path": "react",
@@ -11048,11 +11083,6 @@
11048
11083
  "kind": "import-statement",
11049
11084
  "original": "../../Tooltip"
11050
11085
  },
11051
- {
11052
- "path": "src/Prebuilt/components/AuthToken.jsx",
11053
- "kind": "import-statement",
11054
- "original": "./AuthToken"
11055
- },
11056
11086
  {
11057
11087
  "path": "<define:process.env>",
11058
11088
  "kind": "import-statement",
@@ -12603,7 +12633,7 @@
12603
12633
  "dist/index.js": {
12604
12634
  "imports": [
12605
12635
  {
12606
- "path": "dist/chunk-AMKCMJY4.js",
12636
+ "path": "dist/chunk-USVBISD5.js",
12607
12637
  "kind": "import-statement"
12608
12638
  }
12609
12639
  ],
@@ -12676,16 +12706,16 @@
12676
12706
  "inputs": {},
12677
12707
  "bytes": 1822
12678
12708
  },
12679
- "dist/HLSView-LVQBZ4PX.js.map": {
12709
+ "dist/HLSView-XUM6YSBP.js.map": {
12680
12710
  "imports": [],
12681
12711
  "exports": [],
12682
12712
  "inputs": {},
12683
12713
  "bytes": 58852
12684
12714
  },
12685
- "dist/HLSView-LVQBZ4PX.js": {
12715
+ "dist/HLSView-XUM6YSBP.js": {
12686
12716
  "imports": [
12687
12717
  {
12688
- "path": "dist/chunk-AMKCMJY4.js",
12718
+ "path": "dist/chunk-USVBISD5.js",
12689
12719
  "kind": "import-statement"
12690
12720
  },
12691
12721
  {
@@ -12849,13 +12879,13 @@
12849
12879
  },
12850
12880
  "bytes": 36970
12851
12881
  },
12852
- "dist/chunk-AMKCMJY4.js.map": {
12882
+ "dist/chunk-USVBISD5.js.map": {
12853
12883
  "imports": [],
12854
12884
  "exports": [],
12855
12885
  "inputs": {},
12856
- "bytes": 3009138
12886
+ "bytes": 3082138
12857
12887
  },
12858
- "dist/chunk-AMKCMJY4.js": {
12888
+ "dist/chunk-USVBISD5.js": {
12859
12889
  "imports": [
12860
12890
  {
12861
12891
  "path": "react",
@@ -13213,12 +13243,7 @@
13213
13243
  "external": true
13214
13244
  },
13215
13245
  {
13216
- "path": "@100mslive/react-icons",
13217
- "kind": "import-statement",
13218
- "external": true
13219
- },
13220
- {
13221
- "path": "react",
13246
+ "path": "uuid",
13222
13247
  "kind": "import-statement",
13223
13248
  "external": true
13224
13249
  },
@@ -13607,6 +13632,16 @@
13607
13632
  "kind": "import-statement",
13608
13633
  "external": true
13609
13634
  },
13635
+ {
13636
+ "path": "@100mslive/react-icons",
13637
+ "kind": "import-statement",
13638
+ "external": true
13639
+ },
13640
+ {
13641
+ "path": "react",
13642
+ "kind": "import-statement",
13643
+ "external": true
13644
+ },
13610
13645
  {
13611
13646
  "path": "@100mslive/react-sdk",
13612
13647
  "kind": "import-statement",
@@ -15078,7 +15113,7 @@
15078
15113
  "external": true
15079
15114
  },
15080
15115
  {
15081
- "path": "dist/HLSView-LVQBZ4PX.js",
15116
+ "path": "dist/HLSView-XUM6YSBP.js",
15082
15117
  "kind": "dynamic-import"
15083
15118
  },
15084
15119
  {
@@ -15500,7 +15535,7 @@
15500
15535
  ],
15501
15536
  "inputs": {
15502
15537
  "<define:process.env>": {
15503
- "bytesInOutput": 18038
15538
+ "bytesInOutput": 18105
15504
15539
  },
15505
15540
  "../../node_modules/lodash/lodash.js": {
15506
15541
  "bytesInOutput": 224265
@@ -15508,6 +15543,9 @@
15508
15543
  "../../node_modules/ua-parser-js/src/ua-parser.js": {
15509
15544
  "bytesInOutput": 42469
15510
15545
  },
15546
+ "../../node_modules/lodash.isequal/index.js": {
15547
+ "bytesInOutput": 26591
15548
+ },
15511
15549
  "../../node_modules/sdp/sdp.js": {
15512
15550
  "bytesInOutput": 22279
15513
15551
  },
@@ -15764,16 +15802,16 @@
15764
15802
  "bytesInOutput": 5393
15765
15803
  },
15766
15804
  "src/Prebuilt/components/AuthToken.jsx": {
15767
- "bytesInOutput": 3501
15805
+ "bytesInOutput": 3632
15768
15806
  },
15769
15807
  "src/Prebuilt/AppContext.tsx": {
15770
15808
  "bytesInOutput": 577
15771
15809
  },
15772
- "src/Prebuilt/primitives/DialogContent.jsx": {
15773
- "bytesInOutput": 7656
15810
+ "src/Prebuilt/images/transaction_error.svg": {
15811
+ "bytesInOutput": 4698
15774
15812
  },
15775
15813
  "src/Prebuilt/components/ConferenceScreen.tsx": {
15776
- "bytesInOutput": 6030
15814
+ "bytesInOutput": 6071
15777
15815
  },
15778
15816
  "src/Prebuilt/components/Footer/Footer.tsx": {
15779
15817
  "bytesInOutput": 3348
@@ -15848,7 +15886,7 @@
15848
15886
  "bytesInOutput": 2476
15849
15887
  },
15850
15888
  "src/Prebuilt/components/RoleChangeModal.jsx": {
15851
- "bytesInOutput": 6094
15889
+ "bytesInOutput": 6079
15852
15890
  },
15853
15891
  "src/Prebuilt/components/hooks/useDropdownSelection.jsx": {
15854
15892
  "bytesInOutput": 93
@@ -15866,7 +15904,7 @@
15866
15904
  "bytesInOutput": 1486
15867
15905
  },
15868
15906
  "src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts": {
15869
- "bytesInOutput": 1320
15907
+ "bytesInOutput": 1436
15870
15908
  },
15871
15909
  "src/Prebuilt/components/Settings/SettingsModal.jsx": {
15872
15910
  "bytesInOutput": 8539
@@ -15895,6 +15933,9 @@
15895
15933
  "src/Prebuilt/components/Streaming/ResolutionInput.jsx": {
15896
15934
  "bytesInOutput": 2940
15897
15935
  },
15936
+ "src/Prebuilt/primitives/DialogContent.jsx": {
15937
+ "bytesInOutput": 7670
15938
+ },
15898
15939
  "src/Prebuilt/components/StatsForNerds.jsx": {
15899
15940
  "bytesInOutput": 9587
15900
15941
  },
@@ -15923,7 +15964,7 @@
15923
15964
  "bytesInOutput": 10019
15924
15965
  },
15925
15966
  "../hms-video-store/dist/index.js": {
15926
- "bytesInOutput": 48225
15967
+ "bytesInOutput": 48434
15927
15968
  },
15928
15969
  "../../node_modules/reselect/es/index.js": {
15929
15970
  "bytesInOutput": 2537
@@ -15959,7 +16000,7 @@
15959
16000
  "bytesInOutput": 11866
15960
16001
  },
15961
16002
  "../../node_modules/webrtc-adapter/src/js/common_shim.js": {
15962
- "bytesInOutput": 12451
16003
+ "bytesInOutput": 12446
15963
16004
  },
15964
16005
  "src/Prebuilt/components/Header/AdditionalRoomState.jsx": {
15965
16006
  "bytesInOutput": 6823
@@ -16214,7 +16255,7 @@
16214
16255
  "bytesInOutput": 1050
16215
16256
  },
16216
16257
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
16217
- "bytesInOutput": 6018
16258
+ "bytesInOutput": 6776
16218
16259
  },
16219
16260
  "src/Prebuilt/components/VirtualBackground/VBCollection.tsx": {
16220
16261
  "bytesInOutput": 1157
@@ -16223,7 +16264,7 @@
16223
16264
  "bytesInOutput": 1161
16224
16265
  },
16225
16266
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
16226
- "bytesInOutput": 3124
16267
+ "bytesInOutput": 3387
16227
16268
  },
16228
16269
  "src/Prebuilt/components/VirtualBackground/constants.ts": {
16229
16270
  "bytesInOutput": 714
@@ -16319,7 +16360,7 @@
16319
16360
  "bytesInOutput": 739
16320
16361
  },
16321
16362
  "src/Prebuilt/components/ErrorBoundary.jsx": {
16322
- "bytesInOutput": 3317
16363
+ "bytesInOutput": 3509
16323
16364
  },
16324
16365
  "src/Prebuilt/components/init/Init.jsx": {
16325
16366
  "bytesInOutput": 666
@@ -16346,7 +16387,7 @@
16346
16387
  "bytesInOutput": 27
16347
16388
  },
16348
16389
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
16349
- "bytesInOutput": 7908
16390
+ "bytesInOutput": 7914
16350
16391
  },
16351
16392
  "src/Prebuilt/components/Toast/ToastBatcher.js": {
16352
16393
  "bytesInOutput": 1768
@@ -16418,7 +16459,7 @@
16418
16459
  "bytesInOutput": 651
16419
16460
  }
16420
16461
  },
16421
- "bytes": 1223368
16462
+ "bytes": 1256589
16422
16463
  }
16423
16464
  }
16424
16465
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.2.2",
13
+ "version": "0.2.3-alpha.1",
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.2",
86
- "@100mslive/hms-virtual-background": "1.12.2",
87
- "@100mslive/react-icons": "0.9.2",
88
- "@100mslive/react-sdk": "0.9.2",
89
- "@100mslive/types-prebuilt": "0.12.5",
85
+ "@100mslive/hls-player": "0.2.3-alpha.1",
86
+ "@100mslive/hms-virtual-background": "1.12.3-alpha.1",
87
+ "@100mslive/react-icons": "0.9.3-alpha.1",
88
+ "@100mslive/react-sdk": "0.9.3-alpha.1",
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": "e1fee68a01f0166cc2c5e19a39c7b0119e0a3bd8"
123
+ "gitHead": "186da3cb403754304f9e22daa325d046c0d4b2a4"
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 { styled } from '../../Theme';
5
+ import { Dialog } from '../../Modal';
6
+ import { Text } from '../../Text';
6
7
  import { useHMSPrebuiltContext } from '../AppContext';
7
- import { ErrorDialog } from '../primitives/DialogContent';
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 <ErrorDialog title={error.title}>{error.body}</ErrorDialog>;
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: 'Room code is disabled',
70
- body: ErrorWithSupportLink('Room code corresponding to this link is no more active.'),
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: ErrorWithSupportLink('We could not find a room code corresponding to this link.'),
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: ErrorWithSupportLink(`Endpoint is not reachable. ${error.description}.`),
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: ErrorWithSupportLink('We could not find a room corresponding to this link.'),
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: ErrorWithSupportLink('You can re-enable this from the developer section in Dashboard.'),
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: ErrorWithSupportLink(
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;