@100mslive/roomkit-react 0.3.15-alpha.0 → 0.3.15-alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Diagnostics/ConnectivityTest.d.ts +2 -1
- package/dist/{HLSView-O5Q56UX5.js → HLSView-IBBAZRGB.js} +2 -2
- package/dist/{HLSView-FF3HBXLE.css → HLSView-PFCSCJTH.css} +3 -3
- package/dist/{HLSView-FF3HBXLE.css.map → HLSView-PFCSCJTH.css.map} +1 -1
- package/dist/{chunk-J3IYEHND.js → chunk-25Y7QR25.js} +51 -13
- package/dist/{chunk-J3IYEHND.js.map → chunk-25Y7QR25.js.map} +3 -3
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +52 -14
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +17 -17
- package/dist/meta.esbuild.json +29 -29
- package/package.json +7 -7
- package/src/Diagnostics/ConnectivityTest.tsx +27 -5
- package/src/Diagnostics/Diagnostics.tsx +19 -5
- package/src/Diagnostics/components.tsx +0 -2
- /package/dist/{HLSView-O5Q56UX5.js.map → HLSView-IBBAZRGB.js.map} +0 -0
package/dist/meta.esbuild.json
CHANGED
@@ -4951,7 +4951,7 @@
|
|
4951
4951
|
"format": "cjs"
|
4952
4952
|
},
|
4953
4953
|
"../hms-video-store/dist/index.js": {
|
4954
|
-
"bytes":
|
4954
|
+
"bytes": 356558,
|
4955
4955
|
"imports": [
|
4956
4956
|
{
|
4957
4957
|
"path": "../../node_modules/reselect/es/index.js",
|
@@ -10943,7 +10943,7 @@
|
|
10943
10943
|
],
|
10944
10944
|
"format": "esm"
|
10945
10945
|
},
|
10946
|
-
"../../../../../../../tmp/tmp-2786-
|
10946
|
+
"../../../../../../../tmp/tmp-2786-nYumfKEcA2YY/1906ec3fbfb3/tldraw.css": {
|
10947
10947
|
"bytes": 80111,
|
10948
10948
|
"imports": [
|
10949
10949
|
{
|
@@ -10993,7 +10993,7 @@
|
|
10993
10993
|
}
|
10994
10994
|
]
|
10995
10995
|
},
|
10996
|
-
"../../../../../../../tmp/tmp-2786-
|
10996
|
+
"../../../../../../../tmp/tmp-2786-nYumfKEcA2YY/1906ec3fb880/index.css": {
|
10997
10997
|
"bytes": 597,
|
10998
10998
|
"imports": [
|
10999
10999
|
{
|
@@ -11002,7 +11002,7 @@
|
|
11002
11002
|
"external": true
|
11003
11003
|
},
|
11004
11004
|
{
|
11005
|
-
"path": "../../../../../../../tmp/tmp-2786-
|
11005
|
+
"path": "../../../../../../../tmp/tmp-2786-nYumfKEcA2YY/1906ec3fbfb3/tldraw.css",
|
11006
11006
|
"kind": "import-rule",
|
11007
11007
|
"original": "@tldraw/tldraw/tldraw.css"
|
11008
11008
|
}
|
@@ -11077,7 +11077,7 @@
|
|
11077
11077
|
"original": "../../common/constants"
|
11078
11078
|
},
|
11079
11079
|
{
|
11080
|
-
"path": "../../../../../../../tmp/tmp-2786-
|
11080
|
+
"path": "../../../../../../../tmp/tmp-2786-nYumfKEcA2YY/1906ec3fb880/index.css",
|
11081
11081
|
"kind": "import-statement",
|
11082
11082
|
"original": "@100mslive/hms-whiteboard/index.css"
|
11083
11083
|
},
|
@@ -14100,7 +14100,7 @@
|
|
14100
14100
|
"format": "esm"
|
14101
14101
|
},
|
14102
14102
|
"src/Diagnostics/components.tsx": {
|
14103
|
-
"bytes":
|
14103
|
+
"bytes": 2724,
|
14104
14104
|
"imports": [
|
14105
14105
|
{
|
14106
14106
|
"path": "react",
|
@@ -14469,7 +14469,7 @@
|
|
14469
14469
|
"format": "esm"
|
14470
14470
|
},
|
14471
14471
|
"src/Diagnostics/ConnectivityTest.tsx": {
|
14472
|
-
"bytes":
|
14472
|
+
"bytes": 11975,
|
14473
14473
|
"imports": [
|
14474
14474
|
{
|
14475
14475
|
"path": "react",
|
@@ -14591,7 +14591,7 @@
|
|
14591
14591
|
"format": "esm"
|
14592
14592
|
},
|
14593
14593
|
"src/Diagnostics/Diagnostics.tsx": {
|
14594
|
-
"bytes":
|
14594
|
+
"bytes": 5171,
|
14595
14595
|
"imports": [
|
14596
14596
|
{
|
14597
14597
|
"path": "react",
|
@@ -14899,7 +14899,7 @@
|
|
14899
14899
|
"dist/index.js": {
|
14900
14900
|
"imports": [
|
14901
14901
|
{
|
14902
|
-
"path": "dist/chunk-
|
14902
|
+
"path": "dist/chunk-25Y7QR25.js",
|
14903
14903
|
"kind": "import-statement"
|
14904
14904
|
}
|
14905
14905
|
],
|
@@ -14975,16 +14975,16 @@
|
|
14975
14975
|
"inputs": {},
|
14976
14976
|
"bytes": 1882
|
14977
14977
|
},
|
14978
|
-
"dist/HLSView-
|
14978
|
+
"dist/HLSView-IBBAZRGB.js.map": {
|
14979
14979
|
"imports": [],
|
14980
14980
|
"exports": [],
|
14981
14981
|
"inputs": {},
|
14982
14982
|
"bytes": 100275
|
14983
14983
|
},
|
14984
|
-
"dist/HLSView-
|
14984
|
+
"dist/HLSView-IBBAZRGB.js": {
|
14985
14985
|
"imports": [
|
14986
14986
|
{
|
14987
|
-
"path": "dist/chunk-
|
14987
|
+
"path": "dist/chunk-25Y7QR25.js",
|
14988
14988
|
"kind": "import-statement"
|
14989
14989
|
},
|
14990
14990
|
{
|
@@ -15162,7 +15162,7 @@
|
|
15162
15162
|
"default"
|
15163
15163
|
],
|
15164
15164
|
"entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
|
15165
|
-
"cssBundle": "dist/HLSView-
|
15165
|
+
"cssBundle": "dist/HLSView-PFCSCJTH.css",
|
15166
15166
|
"inputs": {
|
15167
15167
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
15168
15168
|
"bytesInOutput": 27671
|
@@ -15221,13 +15221,13 @@
|
|
15221
15221
|
},
|
15222
15222
|
"bytes": 61702
|
15223
15223
|
},
|
15224
|
-
"dist/chunk-
|
15224
|
+
"dist/chunk-25Y7QR25.js.map": {
|
15225
15225
|
"imports": [],
|
15226
15226
|
"exports": [],
|
15227
15227
|
"inputs": {},
|
15228
|
-
"bytes":
|
15228
|
+
"bytes": 3439867
|
15229
15229
|
},
|
15230
|
-
"dist/chunk-
|
15230
|
+
"dist/chunk-25Y7QR25.js": {
|
15231
15231
|
"imports": [
|
15232
15232
|
{
|
15233
15233
|
"path": "react",
|
@@ -17700,7 +17700,7 @@
|
|
17700
17700
|
"external": true
|
17701
17701
|
},
|
17702
17702
|
{
|
17703
|
-
"path": "dist/HLSView-
|
17703
|
+
"path": "dist/HLSView-IBBAZRGB.js",
|
17704
17704
|
"kind": "dynamic-import"
|
17705
17705
|
},
|
17706
17706
|
{
|
@@ -18284,7 +18284,7 @@
|
|
18284
18284
|
],
|
18285
18285
|
"inputs": {
|
18286
18286
|
"<define:process.env>": {
|
18287
|
-
"bytesInOutput":
|
18287
|
+
"bytesInOutput": 17912
|
18288
18288
|
},
|
18289
18289
|
"../../node_modules/lodash/lodash.js": {
|
18290
18290
|
"bytesInOutput": 224289
|
@@ -19153,7 +19153,7 @@
|
|
19153
19153
|
"src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
|
19154
19154
|
"bytesInOutput": 2830
|
19155
19155
|
},
|
19156
|
-
"../../../../../../../tmp/tmp-2786-
|
19156
|
+
"../../../../../../../tmp/tmp-2786-nYumfKEcA2YY/1906ec3fb880/index.css": {
|
19157
19157
|
"bytesInOutput": 0
|
19158
19158
|
},
|
19159
19159
|
"src/Prebuilt/common/PeersSorter.ts": {
|
@@ -19298,10 +19298,10 @@
|
|
19298
19298
|
"bytesInOutput": 27
|
19299
19299
|
},
|
19300
19300
|
"src/Diagnostics/Diagnostics.tsx": {
|
19301
|
-
"bytesInOutput":
|
19301
|
+
"bytesInOutput": 5593
|
19302
19302
|
},
|
19303
19303
|
"src/Diagnostics/components.tsx": {
|
19304
|
-
"bytesInOutput":
|
19304
|
+
"bytesInOutput": 2444
|
19305
19305
|
},
|
19306
19306
|
"src/Diagnostics/AudioTest.tsx": {
|
19307
19307
|
"bytesInOutput": 6270
|
@@ -19313,13 +19313,13 @@
|
|
19313
19313
|
"bytesInOutput": 4380
|
19314
19314
|
},
|
19315
19315
|
"src/Diagnostics/ConnectivityTest.tsx": {
|
19316
|
-
"bytesInOutput":
|
19316
|
+
"bytesInOutput": 13489
|
19317
19317
|
},
|
19318
19318
|
"src/Diagnostics/VideoTest.tsx": {
|
19319
19319
|
"bytesInOutput": 2577
|
19320
19320
|
}
|
19321
19321
|
},
|
19322
|
-
"bytes":
|
19322
|
+
"bytes": 1424074
|
19323
19323
|
},
|
19324
19324
|
"dist/index.css.map": {
|
19325
19325
|
"imports": [],
|
@@ -19381,22 +19381,22 @@
|
|
19381
19381
|
}
|
19382
19382
|
],
|
19383
19383
|
"inputs": {
|
19384
|
-
"../../../../../../../tmp/tmp-2786-
|
19384
|
+
"../../../../../../../tmp/tmp-2786-nYumfKEcA2YY/1906ec3fbfb3/tldraw.css": {
|
19385
19385
|
"bytesInOutput": 75223
|
19386
19386
|
},
|
19387
|
-
"../../../../../../../tmp/tmp-2786-
|
19387
|
+
"../../../../../../../tmp/tmp-2786-nYumfKEcA2YY/1906ec3fb880/index.css": {
|
19388
19388
|
"bytesInOutput": 401
|
19389
19389
|
}
|
19390
19390
|
},
|
19391
19391
|
"bytes": 75901
|
19392
19392
|
},
|
19393
|
-
"dist/HLSView-
|
19393
|
+
"dist/HLSView-PFCSCJTH.css.map": {
|
19394
19394
|
"imports": [],
|
19395
19395
|
"exports": [],
|
19396
19396
|
"inputs": {},
|
19397
19397
|
"bytes": 122402
|
19398
19398
|
},
|
19399
|
-
"dist/HLSView-
|
19399
|
+
"dist/HLSView-PFCSCJTH.css": {
|
19400
19400
|
"imports": [
|
19401
19401
|
{
|
19402
19402
|
"path": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap",
|
@@ -19450,10 +19450,10 @@
|
|
19450
19450
|
}
|
19451
19451
|
],
|
19452
19452
|
"inputs": {
|
19453
|
-
"../../../../../../../tmp/tmp-2786-
|
19453
|
+
"../../../../../../../tmp/tmp-2786-nYumfKEcA2YY/1906ec3fbfb3/tldraw.css": {
|
19454
19454
|
"bytesInOutput": 75223
|
19455
19455
|
},
|
19456
|
-
"../../../../../../../tmp/tmp-2786-
|
19456
|
+
"../../../../../../../tmp/tmp-2786-nYumfKEcA2YY/1906ec3fb880/index.css": {
|
19457
19457
|
"bytesInOutput": 401
|
19458
19458
|
}
|
19459
19459
|
},
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.3.15-alpha.
|
13
|
+
"version": "0.3.15-alpha.2",
|
14
14
|
"author": "100ms",
|
15
15
|
"license": "MIT",
|
16
16
|
"repository": {
|
@@ -75,12 +75,12 @@
|
|
75
75
|
"react": ">=17.0.2 <19.0.0"
|
76
76
|
},
|
77
77
|
"dependencies": {
|
78
|
-
"@100mslive/hls-player": "0.3.15-alpha.
|
78
|
+
"@100mslive/hls-player": "0.3.15-alpha.2",
|
79
79
|
"@100mslive/hms-noise-cancellation": "0.0.1",
|
80
|
-
"@100mslive/hms-virtual-background": "1.13.15-alpha.
|
81
|
-
"@100mslive/hms-whiteboard": "0.0.5-alpha.
|
82
|
-
"@100mslive/react-icons": "0.10.15-alpha.
|
83
|
-
"@100mslive/react-sdk": "0.10.15-alpha.
|
80
|
+
"@100mslive/hms-virtual-background": "1.13.15-alpha.2",
|
81
|
+
"@100mslive/hms-whiteboard": "0.0.5-alpha.2",
|
82
|
+
"@100mslive/react-icons": "0.10.15-alpha.2",
|
83
|
+
"@100mslive/react-sdk": "0.10.15-alpha.2",
|
84
84
|
"@100mslive/types-prebuilt": "0.12.9",
|
85
85
|
"@emoji-mart/data": "^1.0.6",
|
86
86
|
"@emoji-mart/react": "^1.0.1",
|
@@ -116,5 +116,5 @@
|
|
116
116
|
"uuid": "^8.3.2",
|
117
117
|
"worker-timers": "^7.0.40"
|
118
118
|
},
|
119
|
-
"gitHead": "
|
119
|
+
"gitHead": "da2cd3ce25b00c03fd1305ff2f151fcb5e0840e8"
|
120
120
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React, { useContext, useState } from 'react';
|
2
2
|
import { ConnectivityCheckResult, ConnectivityState, DiagnosticsRTCStats } from '@100mslive/react-sdk';
|
3
|
-
import { CheckCircleIcon, CrossCircleIcon, LinkIcon } from '@100mslive/react-icons';
|
3
|
+
import { CheckCircleIcon, CrossCircleIcon, EyeCloseIcon, EyeOpenIcon, LinkIcon } from '@100mslive/react-icons';
|
4
4
|
import { DiagnosticsContext, TestContainer, TestFooter } from './components';
|
5
5
|
import { Button } from '../Button';
|
6
6
|
import { Box, Flex } from '../Layout';
|
@@ -26,13 +26,17 @@ const ConnectivityStateMessage = {
|
|
26
26
|
|
27
27
|
export const ConnectivityTestStepResult = ({
|
28
28
|
title,
|
29
|
+
status = 'Connected',
|
29
30
|
success,
|
30
31
|
children,
|
31
32
|
}: {
|
32
33
|
title: string;
|
34
|
+
status?: string;
|
33
35
|
success?: boolean;
|
34
36
|
children: React.ReactNode;
|
35
37
|
}) => {
|
38
|
+
const [hideDetails, setHideDetails] = useState(false);
|
39
|
+
|
36
40
|
return (
|
37
41
|
<Box css={{ my: '$10', p: '$10', r: '$1', bg: '$surface_bright' }}>
|
38
42
|
<Text css={{ c: '$on_primary_medium', mb: '$6' }}>{title}</Text>
|
@@ -42,7 +46,7 @@ export const ConnectivityTestStepResult = ({
|
|
42
46
|
<CheckCircleIcon width="1.5rem" height="1.5rem" />
|
43
47
|
</Text>
|
44
48
|
<Text variant="lg" css={{ ml: '$4' }}>
|
45
|
-
|
49
|
+
{status}
|
46
50
|
</Text>
|
47
51
|
</Flex>
|
48
52
|
) : (
|
@@ -55,7 +59,25 @@ export const ConnectivityTestStepResult = ({
|
|
55
59
|
</Text>
|
56
60
|
</Flex>
|
57
61
|
)}
|
58
|
-
<
|
62
|
+
<Flex
|
63
|
+
onClick={() => setHideDetails(!hideDetails)}
|
64
|
+
align="center"
|
65
|
+
gap="2"
|
66
|
+
css={{
|
67
|
+
color: '$primary_bright',
|
68
|
+
}}
|
69
|
+
>
|
70
|
+
{hideDetails ? <EyeOpenIcon /> : <EyeCloseIcon />}
|
71
|
+
<Text
|
72
|
+
variant="caption"
|
73
|
+
css={{
|
74
|
+
color: '$primary_bright',
|
75
|
+
}}
|
76
|
+
>
|
77
|
+
{hideDetails ? 'View' : 'Hide'} detailed information
|
78
|
+
</Text>
|
79
|
+
</Flex>
|
80
|
+
{!hideDetails ? <Box>{children}</Box> : null}
|
59
81
|
</Box>
|
60
82
|
);
|
61
83
|
};
|
@@ -131,7 +153,7 @@ const SignallingResult = ({ result }: { result?: ConnectivityCheckResult['signal
|
|
131
153
|
|
132
154
|
const AudioStats = ({ stats }: { stats: DiagnosticsRTCStats | undefined }) => {
|
133
155
|
return (
|
134
|
-
<ConnectivityTestStepResult title="Audio" success={!!stats?.bytesSent}>
|
156
|
+
<ConnectivityTestStepResult title="Audio" status="Received" success={!!stats?.bytesSent}>
|
135
157
|
{stats && (
|
136
158
|
<Flex css={{ flexWrap: 'wrap' }}>
|
137
159
|
<DetailedInfo title="Bytes Sent" value={formatBytes(stats.bytesSent)} />
|
@@ -149,7 +171,7 @@ const AudioStats = ({ stats }: { stats: DiagnosticsRTCStats | undefined }) => {
|
|
149
171
|
|
150
172
|
const VideoStats = ({ stats }: { stats: DiagnosticsRTCStats | undefined }) => {
|
151
173
|
return (
|
152
|
-
<ConnectivityTestStepResult title="Video" success={!!stats?.bytesSent}>
|
174
|
+
<ConnectivityTestStepResult title="Video" status="Received" success={!!stats?.bytesSent}>
|
153
175
|
{stats && (
|
154
176
|
<Flex css={{ flexWrap: 'wrap' }}>
|
155
177
|
<DetailedInfo title="Bytes Sent" value={formatBytes(stats.bytesSent)} />
|
@@ -21,15 +21,31 @@ const Container = ({ children }: { children: React.ReactNode }) => (
|
|
21
21
|
<Box
|
22
22
|
css={{
|
23
23
|
px: '120px',
|
24
|
-
|
24
|
+
pt: '120px',
|
25
|
+
pb: '24px',
|
25
26
|
bg: '$background_dim',
|
26
27
|
lineHeight: '1.5',
|
27
28
|
'-webkit-text-size-adjust': '100%',
|
28
29
|
position: 'relative',
|
29
|
-
|
30
|
+
h: `calc(100% - 108px)`,
|
30
31
|
'@lg': {
|
31
32
|
p: '$12',
|
32
33
|
},
|
34
|
+
overflowY: 'auto',
|
35
|
+
'::-webkit-scrollbar-track': {
|
36
|
+
WebkitBoxShadow: 'inset 0 0 6px rgba(0, 0, 0, 0.3)',
|
37
|
+
boxShadow: 'inset 0 0 6px rgba(0, 0, 0, 0.3)',
|
38
|
+
backgroundColor: 'transparent',
|
39
|
+
},
|
40
|
+
'::-webkit-scrollbar': {
|
41
|
+
width: '6px',
|
42
|
+
height: '6px',
|
43
|
+
backgroundColor: 'transparent',
|
44
|
+
},
|
45
|
+
'::-webkit-scrollbar-thumb': {
|
46
|
+
backgroundColor: '#657080',
|
47
|
+
borderRadius: '5px',
|
48
|
+
},
|
33
49
|
}}
|
34
50
|
>
|
35
51
|
{children}
|
@@ -68,9 +84,7 @@ const DiagnosticsStep = () => {
|
|
68
84
|
return (
|
69
85
|
<Box css={{ border: '1px solid $border_default', r: '$1', w: '75%', maxWidth: '65rem', '@lg': { w: '100%' } }}>
|
70
86
|
<DiagnosticsStepHeader />
|
71
|
-
<
|
72
|
-
<DiagnosticsStepTest />
|
73
|
-
</Box>
|
87
|
+
<DiagnosticsStepTest />
|
74
88
|
</Box>
|
75
89
|
);
|
76
90
|
};
|
File without changes
|