@100mslive/roomkit-react 0.3.24-alpha.1 → 0.3.24-alpha.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +49 -35
- package/dist/index.cjs.js.map +2 -2
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +49 -35
- package/dist/index.js.map +2 -2
- package/dist/meta.cjs.json +13 -13
- package/dist/meta.esbuild.json +13 -13
- package/package.json +7 -7
- package/src/Prebuilt/components/StatsForNerds.jsx +65 -51
package/dist/meta.cjs.json
CHANGED
@@ -4734,7 +4734,7 @@
|
|
4734
4734
|
"format": "esm"
|
4735
4735
|
},
|
4736
4736
|
"src/Prebuilt/components/StatsForNerds.jsx": {
|
4737
|
-
"bytes":
|
4737
|
+
"bytes": 13474,
|
4738
4738
|
"imports": [
|
4739
4739
|
{
|
4740
4740
|
"path": "react",
|
@@ -5774,7 +5774,7 @@
|
|
5774
5774
|
"format": "cjs"
|
5775
5775
|
},
|
5776
5776
|
"../hms-video-store/dist/index.js": {
|
5777
|
-
"bytes":
|
5777
|
+
"bytes": 372809,
|
5778
5778
|
"imports": [
|
5779
5779
|
{
|
5780
5780
|
"path": "../../node_modules/reselect/es/index.js",
|
@@ -11316,7 +11316,7 @@
|
|
11316
11316
|
],
|
11317
11317
|
"format": "esm"
|
11318
11318
|
},
|
11319
|
-
"../../../../../../../tmp/tmp-
|
11319
|
+
"../../../../../../../tmp/tmp-2756-jmLWB4qRMUIt/192b91b3b4d2/tldraw.css": {
|
11320
11320
|
"bytes": 80111,
|
11321
11321
|
"imports": [
|
11322
11322
|
{
|
@@ -11366,7 +11366,7 @@
|
|
11366
11366
|
}
|
11367
11367
|
]
|
11368
11368
|
},
|
11369
|
-
"../../../../../../../tmp/tmp-
|
11369
|
+
"../../../../../../../tmp/tmp-2756-jmLWB4qRMUIt/192b91b3af30/index.css": {
|
11370
11370
|
"bytes": 597,
|
11371
11371
|
"imports": [
|
11372
11372
|
{
|
@@ -11375,7 +11375,7 @@
|
|
11375
11375
|
"external": true
|
11376
11376
|
},
|
11377
11377
|
{
|
11378
|
-
"path": "../../../../../../../tmp/tmp-
|
11378
|
+
"path": "../../../../../../../tmp/tmp-2756-jmLWB4qRMUIt/192b91b3b4d2/tldraw.css",
|
11379
11379
|
"kind": "import-rule",
|
11380
11380
|
"original": "@tldraw/tldraw/tldraw.css"
|
11381
11381
|
}
|
@@ -11450,7 +11450,7 @@
|
|
11450
11450
|
"original": "../../common/constants"
|
11451
11451
|
},
|
11452
11452
|
{
|
11453
|
-
"path": "../../../../../../../tmp/tmp-
|
11453
|
+
"path": "../../../../../../../tmp/tmp-2756-jmLWB4qRMUIt/192b91b3af30/index.css",
|
11454
11454
|
"kind": "import-statement",
|
11455
11455
|
"original": "@100mslive/hms-whiteboard/index.css"
|
11456
11456
|
},
|
@@ -15719,7 +15719,7 @@
|
|
15719
15719
|
"imports": [],
|
15720
15720
|
"exports": [],
|
15721
15721
|
"inputs": {},
|
15722
|
-
"bytes":
|
15722
|
+
"bytes": 3616081
|
15723
15723
|
},
|
15724
15724
|
"dist/index.cjs.js": {
|
15725
15725
|
"imports": [
|
@@ -19052,7 +19052,7 @@
|
|
19052
19052
|
"cssBundle": "dist/index.cjs.css",
|
19053
19053
|
"inputs": {
|
19054
19054
|
"<define:process.env>": {
|
19055
|
-
"bytesInOutput":
|
19055
|
+
"bytesInOutput": 18026
|
19056
19056
|
},
|
19057
19057
|
"../../node_modules/lodash/lodash.js": {
|
19058
19058
|
"bytesInOutput": 224308
|
@@ -19544,7 +19544,7 @@
|
|
19544
19544
|
"bytesInOutput": 8368
|
19545
19545
|
},
|
19546
19546
|
"src/Prebuilt/components/StatsForNerds.jsx": {
|
19547
|
-
"bytesInOutput":
|
19547
|
+
"bytesInOutput": 15803
|
19548
19548
|
},
|
19549
19549
|
"src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx": {
|
19550
19550
|
"bytesInOutput": 5478
|
@@ -19930,7 +19930,7 @@
|
|
19930
19930
|
"src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
|
19931
19931
|
"bytesInOutput": 3051
|
19932
19932
|
},
|
19933
|
-
"../../../../../../../tmp/tmp-
|
19933
|
+
"../../../../../../../tmp/tmp-2756-jmLWB4qRMUIt/192b91b3af30/index.css": {
|
19934
19934
|
"bytesInOutput": 0
|
19935
19935
|
},
|
19936
19936
|
"src/Prebuilt/common/PeersSorter.ts": {
|
@@ -20165,7 +20165,7 @@
|
|
20165
20165
|
"bytesInOutput": 2777
|
20166
20166
|
}
|
20167
20167
|
},
|
20168
|
-
"bytes":
|
20168
|
+
"bytes": 1503287
|
20169
20169
|
},
|
20170
20170
|
"dist/index.cjs.css.map": {
|
20171
20171
|
"imports": [],
|
@@ -20227,10 +20227,10 @@
|
|
20227
20227
|
}
|
20228
20228
|
],
|
20229
20229
|
"inputs": {
|
20230
|
-
"../../../../../../../tmp/tmp-
|
20230
|
+
"../../../../../../../tmp/tmp-2756-jmLWB4qRMUIt/192b91b3b4d2/tldraw.css": {
|
20231
20231
|
"bytesInOutput": 75223
|
20232
20232
|
},
|
20233
|
-
"../../../../../../../tmp/tmp-
|
20233
|
+
"../../../../../../../tmp/tmp-2756-jmLWB4qRMUIt/192b91b3af30/index.css": {
|
20234
20234
|
"bytesInOutput": 401
|
20235
20235
|
}
|
20236
20236
|
},
|
package/dist/meta.esbuild.json
CHANGED
@@ -4734,7 +4734,7 @@
|
|
4734
4734
|
"format": "esm"
|
4735
4735
|
},
|
4736
4736
|
"src/Prebuilt/components/StatsForNerds.jsx": {
|
4737
|
-
"bytes":
|
4737
|
+
"bytes": 13474,
|
4738
4738
|
"imports": [
|
4739
4739
|
{
|
4740
4740
|
"path": "react",
|
@@ -5774,7 +5774,7 @@
|
|
5774
5774
|
"format": "cjs"
|
5775
5775
|
},
|
5776
5776
|
"../hms-video-store/dist/index.js": {
|
5777
|
-
"bytes":
|
5777
|
+
"bytes": 372809,
|
5778
5778
|
"imports": [
|
5779
5779
|
{
|
5780
5780
|
"path": "../../node_modules/reselect/es/index.js",
|
@@ -11316,7 +11316,7 @@
|
|
11316
11316
|
],
|
11317
11317
|
"format": "esm"
|
11318
11318
|
},
|
11319
|
-
"../../../../../../../tmp/tmp-
|
11319
|
+
"../../../../../../../tmp/tmp-2756-F4n0ffGDhVYP/192b91b3b4f3/tldraw.css": {
|
11320
11320
|
"bytes": 80111,
|
11321
11321
|
"imports": [
|
11322
11322
|
{
|
@@ -11366,7 +11366,7 @@
|
|
11366
11366
|
}
|
11367
11367
|
]
|
11368
11368
|
},
|
11369
|
-
"../../../../../../../tmp/tmp-
|
11369
|
+
"../../../../../../../tmp/tmp-2756-F4n0ffGDhVYP/192b91b3b431/index.css": {
|
11370
11370
|
"bytes": 597,
|
11371
11371
|
"imports": [
|
11372
11372
|
{
|
@@ -11375,7 +11375,7 @@
|
|
11375
11375
|
"external": true
|
11376
11376
|
},
|
11377
11377
|
{
|
11378
|
-
"path": "../../../../../../../tmp/tmp-
|
11378
|
+
"path": "../../../../../../../tmp/tmp-2756-F4n0ffGDhVYP/192b91b3b4f3/tldraw.css",
|
11379
11379
|
"kind": "import-rule",
|
11380
11380
|
"original": "@tldraw/tldraw/tldraw.css"
|
11381
11381
|
}
|
@@ -11450,7 +11450,7 @@
|
|
11450
11450
|
"original": "../../common/constants"
|
11451
11451
|
},
|
11452
11452
|
{
|
11453
|
-
"path": "../../../../../../../tmp/tmp-
|
11453
|
+
"path": "../../../../../../../tmp/tmp-2756-F4n0ffGDhVYP/192b91b3b431/index.css",
|
11454
11454
|
"kind": "import-statement",
|
11455
11455
|
"original": "@100mslive/hms-whiteboard/index.css"
|
11456
11456
|
},
|
@@ -15719,7 +15719,7 @@
|
|
15719
15719
|
"imports": [],
|
15720
15720
|
"exports": [],
|
15721
15721
|
"inputs": {},
|
15722
|
-
"bytes":
|
15722
|
+
"bytes": 3655831
|
15723
15723
|
},
|
15724
15724
|
"dist/index.js": {
|
15725
15725
|
"imports": [
|
@@ -19118,7 +19118,7 @@
|
|
19118
19118
|
"cssBundle": "dist/index.css",
|
19119
19119
|
"inputs": {
|
19120
19120
|
"<define:process.env>": {
|
19121
|
-
"bytesInOutput":
|
19121
|
+
"bytesInOutput": 18026
|
19122
19122
|
},
|
19123
19123
|
"../../node_modules/lodash/lodash.js": {
|
19124
19124
|
"bytesInOutput": 224303
|
@@ -19610,7 +19610,7 @@
|
|
19610
19610
|
"bytesInOutput": 7700
|
19611
19611
|
},
|
19612
19612
|
"src/Prebuilt/components/StatsForNerds.jsx": {
|
19613
|
-
"bytesInOutput":
|
19613
|
+
"bytesInOutput": 14466
|
19614
19614
|
},
|
19615
19615
|
"src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx": {
|
19616
19616
|
"bytesInOutput": 5008
|
@@ -19996,7 +19996,7 @@
|
|
19996
19996
|
"src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
|
19997
19997
|
"bytesInOutput": 2830
|
19998
19998
|
},
|
19999
|
-
"../../../../../../../tmp/tmp-
|
19999
|
+
"../../../../../../../tmp/tmp-2756-F4n0ffGDhVYP/192b91b3b431/index.css": {
|
20000
20000
|
"bytesInOutput": 0
|
20001
20001
|
},
|
20002
20002
|
"src/Prebuilt/common/PeersSorter.ts": {
|
@@ -20231,7 +20231,7 @@
|
|
20231
20231
|
"bytesInOutput": 2632
|
20232
20232
|
}
|
20233
20233
|
},
|
20234
|
-
"bytes":
|
20234
|
+
"bytes": 1448424
|
20235
20235
|
},
|
20236
20236
|
"dist/index.css.map": {
|
20237
20237
|
"imports": [],
|
@@ -20293,10 +20293,10 @@
|
|
20293
20293
|
}
|
20294
20294
|
],
|
20295
20295
|
"inputs": {
|
20296
|
-
"../../../../../../../tmp/tmp-
|
20296
|
+
"../../../../../../../tmp/tmp-2756-F4n0ffGDhVYP/192b91b3b4f3/tldraw.css": {
|
20297
20297
|
"bytesInOutput": 75223
|
20298
20298
|
},
|
20299
|
-
"../../../../../../../tmp/tmp-
|
20299
|
+
"../../../../../../../tmp/tmp-2756-F4n0ffGDhVYP/192b91b3b431/index.css": {
|
20300
20300
|
"bytesInOutput": 401
|
20301
20301
|
}
|
20302
20302
|
},
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.3.24-alpha.
|
13
|
+
"version": "0.3.24-alpha.3",
|
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.24-alpha.
|
78
|
+
"@100mslive/hls-player": "0.3.24-alpha.3",
|
79
79
|
"@100mslive/hms-noise-cancellation": "0.0.1",
|
80
|
-
"@100mslive/hms-virtual-background": "1.13.24-alpha.
|
81
|
-
"@100mslive/hms-whiteboard": "0.0.14-alpha.
|
82
|
-
"@100mslive/react-icons": "0.10.24-alpha.
|
83
|
-
"@100mslive/react-sdk": "0.10.24-alpha.
|
80
|
+
"@100mslive/hms-virtual-background": "1.13.24-alpha.3",
|
81
|
+
"@100mslive/hms-whiteboard": "0.0.14-alpha.3",
|
82
|
+
"@100mslive/react-icons": "0.10.24-alpha.3",
|
83
|
+
"@100mslive/react-sdk": "0.10.24-alpha.3",
|
84
84
|
"@100mslive/types-prebuilt": "0.12.12",
|
85
85
|
"@emoji-mart/data": "^1.0.6",
|
86
86
|
"@emoji-mart/react": "^1.0.1",
|
@@ -117,5 +117,5 @@
|
|
117
117
|
"uuid": "^8.3.2",
|
118
118
|
"worker-timers": "^7.0.40"
|
119
119
|
},
|
120
|
-
"gitHead": "
|
120
|
+
"gitHead": "39b5967555e20082c474b7fe188d757e1912fc15"
|
121
121
|
}
|
@@ -54,8 +54,8 @@ export const StatsForNerds = ({ open, onOpenChange }) => {
|
|
54
54
|
<Sheet.Content
|
55
55
|
css={{
|
56
56
|
bg: '$surface_dim',
|
57
|
-
overflowY: 'auto',
|
58
57
|
px: '$4',
|
58
|
+
pb: '$4',
|
59
59
|
}}
|
60
60
|
>
|
61
61
|
<Sheet.Title css={{ py: '$10', px: '$8', alignItems: 'center' }}>
|
@@ -69,62 +69,76 @@ export const StatsForNerds = ({ open, onOpenChange }) => {
|
|
69
69
|
</Flex>
|
70
70
|
</Sheet.Title>
|
71
71
|
<HorizontalDivider />
|
72
|
-
<Flex justify="start" gap={4} css={{ m: '$10 0' }}>
|
73
|
-
<Switch checked={showStatsOnTiles} onCheckedChange={setShowStatsOnTiles} />
|
74
|
-
<Text variant="body2" css={{ fontWeight: '$semiBold' }}>
|
75
|
-
Show Stats on Tiles
|
76
|
-
</Text>
|
77
|
-
</Flex>
|
78
|
-
{/* Select */}
|
79
72
|
<Flex
|
80
73
|
direction="column"
|
81
74
|
css={{
|
82
|
-
|
83
|
-
|
84
|
-
|
75
|
+
mr: '-$2',
|
76
|
+
overflowY: 'auto',
|
77
|
+
maxHeight: '65vh',
|
78
|
+
pr: '$6',
|
79
|
+
pl: '$4',
|
85
80
|
}}
|
86
81
|
>
|
87
|
-
<
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
82
|
+
<Flex justify="start" gap={4} css={{ m: '$10 0' }}>
|
83
|
+
<Switch checked={showStatsOnTiles} onCheckedChange={setShowStatsOnTiles} />
|
84
|
+
<Text variant="body2" css={{ fontWeight: '$semiBold' }}>
|
85
|
+
Show Stats on Tiles
|
86
|
+
</Text>
|
87
|
+
</Flex>
|
88
|
+
{/* Select */}
|
89
|
+
<Flex
|
90
|
+
direction="column"
|
91
|
+
css={{
|
92
|
+
mb: '$12',
|
93
|
+
position: 'relative',
|
94
|
+
minWidth: 0,
|
95
|
+
}}
|
96
|
+
>
|
97
|
+
<Label variant="body2" css={{ c: '$on_surface_high' }}>
|
98
|
+
Stats For
|
99
|
+
</Label>
|
100
|
+
<Dropdown.Root data-testid="dialog_select_Stats For" open={openDropdown} onOpenChange={setOpenDropdown}>
|
101
|
+
<DialogDropdownTrigger
|
102
|
+
title={selectedStat.label || 'Select Stats'}
|
103
|
+
css={{ mt: '$4' }}
|
104
|
+
titleCSS={{ mx: 0 }}
|
105
|
+
open={openDropdown}
|
106
|
+
ref={ref}
|
107
|
+
/>
|
108
|
+
<Dropdown.Portal>
|
109
|
+
<Dropdown.Content align="start" sideOffset={8} css={{ w: ref.current?.clientWidth, zIndex: 1000 }}>
|
110
|
+
{statsOptions.map(option => {
|
111
|
+
const isSelected = option.id === selectedStat.id && option.layer === selectedStat.layer;
|
112
|
+
return (
|
113
|
+
<Dropdown.Item
|
114
|
+
key={`${option.id}-${option.layer || ''}`}
|
115
|
+
onClick={() => {
|
116
|
+
setSelectedStat(option);
|
117
|
+
}}
|
118
|
+
css={{
|
119
|
+
px: '$9',
|
120
|
+
bg: isSelected ? selectionBg : undefined,
|
121
|
+
c: isSelected ? '$on_primary_high' : '$on_primary_high',
|
122
|
+
}}
|
123
|
+
>
|
124
|
+
{option.label}
|
125
|
+
</Dropdown.Item>
|
126
|
+
);
|
127
|
+
})}
|
128
|
+
</Dropdown.Content>
|
129
|
+
</Dropdown.Portal>
|
130
|
+
</Dropdown.Root>
|
131
|
+
</Flex>
|
132
|
+
{/* Stats */}
|
133
|
+
{selectedStat.id === 'local-peer' ? (
|
134
|
+
<LocalPeerStats />
|
135
|
+
) : (
|
136
|
+
<TrackStats trackID={selectedStat.id} layer={selectedStat.layer} local={selectedStat.local} />
|
137
|
+
)}
|
138
|
+
<Flex justify="start" gap={4} css={{ m: '$10 0', w: '100%' }}>
|
139
|
+
<DebugInfo details={details} />
|
140
|
+
</Flex>
|
121
141
|
</Flex>
|
122
|
-
{/* Stats */}
|
123
|
-
{selectedStat.id === 'local-peer' ? (
|
124
|
-
<LocalPeerStats />
|
125
|
-
) : (
|
126
|
-
<TrackStats trackID={selectedStat.id} layer={selectedStat.layer} local={selectedStat.local} />
|
127
|
-
)}
|
128
142
|
</Sheet.Content>
|
129
143
|
</Sheet.Root>
|
130
144
|
) : (
|