@100mslive/roomkit-react 0.3.25-alpha.5 → 0.3.25-alpha.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/VideoTile/StyledVideoTile.d.ts +1 -606
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +5 -18
- 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 +5 -18
- package/dist/index.js.map +2 -2
- package/dist/meta.cjs.json +14 -34
- package/dist/meta.esbuild.json +14 -34
- package/package.json +8 -9
- package/src/Prebuilt/components/VideoLayouts/Grid.tsx +29 -32
- package/src/VideoTile/StyledVideoTile.tsx +2 -15
package/dist/meta.cjs.json
CHANGED
@@ -915,13 +915,8 @@
|
|
915
915
|
"format": "esm"
|
916
916
|
},
|
917
917
|
"src/VideoTile/StyledVideoTile.tsx": {
|
918
|
-
"bytes":
|
918
|
+
"bytes": 2855,
|
919
919
|
"imports": [
|
920
|
-
{
|
921
|
-
"path": "framer-motion",
|
922
|
-
"kind": "import-statement",
|
923
|
-
"external": true
|
924
|
-
},
|
925
920
|
{
|
926
921
|
"path": "src/Layout/index.tsx",
|
927
922
|
"kind": "import-statement",
|
@@ -10706,18 +10701,13 @@
|
|
10706
10701
|
"format": "esm"
|
10707
10702
|
},
|
10708
10703
|
"src/Prebuilt/components/VideoLayouts/Grid.tsx": {
|
10709
|
-
"bytes":
|
10704
|
+
"bytes": 1272,
|
10710
10705
|
"imports": [
|
10711
10706
|
{
|
10712
10707
|
"path": "react",
|
10713
10708
|
"kind": "import-statement",
|
10714
10709
|
"external": true
|
10715
10710
|
},
|
10716
|
-
{
|
10717
|
-
"path": "framer-motion",
|
10718
|
-
"kind": "import-statement",
|
10719
|
-
"external": true
|
10720
|
-
},
|
10721
10711
|
{
|
10722
10712
|
"path": "@100mslive/react-sdk",
|
10723
10713
|
"kind": "import-statement",
|
@@ -11331,7 +11321,7 @@
|
|
11331
11321
|
],
|
11332
11322
|
"format": "esm"
|
11333
11323
|
},
|
11334
|
-
"../../../../../../../tmp/tmp-
|
11324
|
+
"../../../../../../../tmp/tmp-2818-oB6vj1kKCmoZ/1937275e5d72/tldraw.css": {
|
11335
11325
|
"bytes": 80111,
|
11336
11326
|
"imports": [
|
11337
11327
|
{
|
@@ -11381,7 +11371,7 @@
|
|
11381
11371
|
}
|
11382
11372
|
]
|
11383
11373
|
},
|
11384
|
-
"../../../../../../../tmp/tmp-
|
11374
|
+
"../../../../../../../tmp/tmp-2818-oB6vj1kKCmoZ/1937275e5590/index.css": {
|
11385
11375
|
"bytes": 597,
|
11386
11376
|
"imports": [
|
11387
11377
|
{
|
@@ -11390,7 +11380,7 @@
|
|
11390
11380
|
"external": true
|
11391
11381
|
},
|
11392
11382
|
{
|
11393
|
-
"path": "../../../../../../../tmp/tmp-
|
11383
|
+
"path": "../../../../../../../tmp/tmp-2818-oB6vj1kKCmoZ/1937275e5d72/tldraw.css",
|
11394
11384
|
"kind": "import-rule",
|
11395
11385
|
"original": "@tldraw/tldraw/tldraw.css"
|
11396
11386
|
}
|
@@ -11465,7 +11455,7 @@
|
|
11465
11455
|
"original": "../../common/constants"
|
11466
11456
|
},
|
11467
11457
|
{
|
11468
|
-
"path": "../../../../../../../tmp/tmp-
|
11458
|
+
"path": "../../../../../../../tmp/tmp-2818-oB6vj1kKCmoZ/1937275e5590/index.css",
|
11469
11459
|
"kind": "import-statement",
|
11470
11460
|
"original": "@100mslive/hms-whiteboard/index.css"
|
11471
11461
|
},
|
@@ -15729,7 +15719,7 @@
|
|
15729
15719
|
"imports": [],
|
15730
15720
|
"exports": [],
|
15731
15721
|
"inputs": {},
|
15732
|
-
"bytes":
|
15722
|
+
"bytes": 3624022
|
15733
15723
|
},
|
15734
15724
|
"dist/index.cjs.js": {
|
15735
15725
|
"imports": [
|
@@ -15873,11 +15863,6 @@
|
|
15873
15863
|
"kind": "require-call",
|
15874
15864
|
"external": true
|
15875
15865
|
},
|
15876
|
-
{
|
15877
|
-
"path": "framer-motion",
|
15878
|
-
"kind": "require-call",
|
15879
|
-
"external": true
|
15880
|
-
},
|
15881
15866
|
{
|
15882
15867
|
"path": "@radix-ui/react-dropdown-menu",
|
15883
15868
|
"kind": "require-call",
|
@@ -18113,11 +18098,6 @@
|
|
18113
18098
|
"kind": "require-call",
|
18114
18099
|
"external": true
|
18115
18100
|
},
|
18116
|
-
{
|
18117
|
-
"path": "framer-motion",
|
18118
|
-
"kind": "require-call",
|
18119
|
-
"external": true
|
18120
|
-
},
|
18121
18101
|
{
|
18122
18102
|
"path": "react",
|
18123
18103
|
"kind": "require-call",
|
@@ -19077,7 +19057,7 @@
|
|
19077
19057
|
"cssBundle": "dist/index.cjs.css",
|
19078
19058
|
"inputs": {
|
19079
19059
|
"<define:process.env>": {
|
19080
|
-
"bytesInOutput":
|
19060
|
+
"bytesInOutput": 18041
|
19081
19061
|
},
|
19082
19062
|
"../../node_modules/lodash/lodash.js": {
|
19083
19063
|
"bytesInOutput": 224306
|
@@ -19251,7 +19231,7 @@
|
|
19251
19231
|
"bytesInOutput": 27
|
19252
19232
|
},
|
19253
19233
|
"src/VideoTile/StyledVideoTile.tsx": {
|
19254
|
-
"bytesInOutput":
|
19234
|
+
"bytesInOutput": 2481
|
19255
19235
|
},
|
19256
19236
|
"src/VideoList/index.tsx": {
|
19257
19237
|
"bytesInOutput": 27
|
@@ -19923,7 +19903,7 @@
|
|
19923
19903
|
"bytesInOutput": 1796
|
19924
19904
|
},
|
19925
19905
|
"src/Prebuilt/components/VideoLayouts/Grid.tsx": {
|
19926
|
-
"bytesInOutput":
|
19906
|
+
"bytesInOutput": 1268
|
19927
19907
|
},
|
19928
19908
|
"src/Prebuilt/components/hooks/useTileLayout.tsx": {
|
19929
19909
|
"bytesInOutput": 3866
|
@@ -19955,7 +19935,7 @@
|
|
19955
19935
|
"src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
|
19956
19936
|
"bytesInOutput": 3051
|
19957
19937
|
},
|
19958
|
-
"../../../../../../../tmp/tmp-
|
19938
|
+
"../../../../../../../tmp/tmp-2818-oB6vj1kKCmoZ/1937275e5590/index.css": {
|
19959
19939
|
"bytesInOutput": 0
|
19960
19940
|
},
|
19961
19941
|
"src/Prebuilt/common/PeersSorter.ts": {
|
@@ -20190,7 +20170,7 @@
|
|
20190
20170
|
"bytesInOutput": 2777
|
20191
20171
|
}
|
20192
20172
|
},
|
20193
|
-
"bytes":
|
20173
|
+
"bytes": 1504405
|
20194
20174
|
},
|
20195
20175
|
"dist/index.cjs.css.map": {
|
20196
20176
|
"imports": [],
|
@@ -20252,10 +20232,10 @@
|
|
20252
20232
|
}
|
20253
20233
|
],
|
20254
20234
|
"inputs": {
|
20255
|
-
"../../../../../../../tmp/tmp-
|
20235
|
+
"../../../../../../../tmp/tmp-2818-oB6vj1kKCmoZ/1937275e5d72/tldraw.css": {
|
20256
20236
|
"bytesInOutput": 75223
|
20257
20237
|
},
|
20258
|
-
"../../../../../../../tmp/tmp-
|
20238
|
+
"../../../../../../../tmp/tmp-2818-oB6vj1kKCmoZ/1937275e5590/index.css": {
|
20259
20239
|
"bytesInOutput": 401
|
20260
20240
|
}
|
20261
20241
|
},
|
package/dist/meta.esbuild.json
CHANGED
@@ -915,13 +915,8 @@
|
|
915
915
|
"format": "esm"
|
916
916
|
},
|
917
917
|
"src/VideoTile/StyledVideoTile.tsx": {
|
918
|
-
"bytes":
|
918
|
+
"bytes": 2855,
|
919
919
|
"imports": [
|
920
|
-
{
|
921
|
-
"path": "framer-motion",
|
922
|
-
"kind": "import-statement",
|
923
|
-
"external": true
|
924
|
-
},
|
925
920
|
{
|
926
921
|
"path": "src/Layout/index.tsx",
|
927
922
|
"kind": "import-statement",
|
@@ -10706,18 +10701,13 @@
|
|
10706
10701
|
"format": "esm"
|
10707
10702
|
},
|
10708
10703
|
"src/Prebuilt/components/VideoLayouts/Grid.tsx": {
|
10709
|
-
"bytes":
|
10704
|
+
"bytes": 1272,
|
10710
10705
|
"imports": [
|
10711
10706
|
{
|
10712
10707
|
"path": "react",
|
10713
10708
|
"kind": "import-statement",
|
10714
10709
|
"external": true
|
10715
10710
|
},
|
10716
|
-
{
|
10717
|
-
"path": "framer-motion",
|
10718
|
-
"kind": "import-statement",
|
10719
|
-
"external": true
|
10720
|
-
},
|
10721
10711
|
{
|
10722
10712
|
"path": "@100mslive/react-sdk",
|
10723
10713
|
"kind": "import-statement",
|
@@ -11331,7 +11321,7 @@
|
|
11331
11321
|
],
|
11332
11322
|
"format": "esm"
|
11333
11323
|
},
|
11334
|
-
"../../../../../../../tmp/tmp-
|
11324
|
+
"../../../../../../../tmp/tmp-2818-N5QtmU3NbPS5/1937275e6453/tldraw.css": {
|
11335
11325
|
"bytes": 80111,
|
11336
11326
|
"imports": [
|
11337
11327
|
{
|
@@ -11381,7 +11371,7 @@
|
|
11381
11371
|
}
|
11382
11372
|
]
|
11383
11373
|
},
|
11384
|
-
"../../../../../../../tmp/tmp-
|
11374
|
+
"../../../../../../../tmp/tmp-2818-N5QtmU3NbPS5/1937275e5cb1/index.css": {
|
11385
11375
|
"bytes": 597,
|
11386
11376
|
"imports": [
|
11387
11377
|
{
|
@@ -11390,7 +11380,7 @@
|
|
11390
11380
|
"external": true
|
11391
11381
|
},
|
11392
11382
|
{
|
11393
|
-
"path": "../../../../../../../tmp/tmp-
|
11383
|
+
"path": "../../../../../../../tmp/tmp-2818-N5QtmU3NbPS5/1937275e6453/tldraw.css",
|
11394
11384
|
"kind": "import-rule",
|
11395
11385
|
"original": "@tldraw/tldraw/tldraw.css"
|
11396
11386
|
}
|
@@ -11465,7 +11455,7 @@
|
|
11465
11455
|
"original": "../../common/constants"
|
11466
11456
|
},
|
11467
11457
|
{
|
11468
|
-
"path": "../../../../../../../tmp/tmp-
|
11458
|
+
"path": "../../../../../../../tmp/tmp-2818-N5QtmU3NbPS5/1937275e5cb1/index.css",
|
11469
11459
|
"kind": "import-statement",
|
11470
11460
|
"original": "@100mslive/hms-whiteboard/index.css"
|
11471
11461
|
},
|
@@ -15729,7 +15719,7 @@
|
|
15729
15719
|
"imports": [],
|
15730
15720
|
"exports": [],
|
15731
15721
|
"inputs": {},
|
15732
|
-
"bytes":
|
15722
|
+
"bytes": 3663945
|
15733
15723
|
},
|
15734
15724
|
"dist/index.js": {
|
15735
15725
|
"imports": [
|
@@ -15873,11 +15863,6 @@
|
|
15873
15863
|
"kind": "import-statement",
|
15874
15864
|
"external": true
|
15875
15865
|
},
|
15876
|
-
{
|
15877
|
-
"path": "framer-motion",
|
15878
|
-
"kind": "import-statement",
|
15879
|
-
"external": true
|
15880
|
-
},
|
15881
15866
|
{
|
15882
15867
|
"path": "@radix-ui/react-dropdown-menu",
|
15883
15868
|
"kind": "import-statement",
|
@@ -18113,11 +18098,6 @@
|
|
18113
18098
|
"kind": "import-statement",
|
18114
18099
|
"external": true
|
18115
18100
|
},
|
18116
|
-
{
|
18117
|
-
"path": "framer-motion",
|
18118
|
-
"kind": "import-statement",
|
18119
|
-
"external": true
|
18120
|
-
},
|
18121
18101
|
{
|
18122
18102
|
"path": "react",
|
18123
18103
|
"kind": "import-statement",
|
@@ -19143,7 +19123,7 @@
|
|
19143
19123
|
"cssBundle": "dist/index.css",
|
19144
19124
|
"inputs": {
|
19145
19125
|
"<define:process.env>": {
|
19146
|
-
"bytesInOutput":
|
19126
|
+
"bytesInOutput": 18041
|
19147
19127
|
},
|
19148
19128
|
"../../node_modules/lodash/lodash.js": {
|
19149
19129
|
"bytesInOutput": 224301
|
@@ -19317,7 +19297,7 @@
|
|
19317
19297
|
"bytesInOutput": 27
|
19318
19298
|
},
|
19319
19299
|
"src/VideoTile/StyledVideoTile.tsx": {
|
19320
|
-
"bytesInOutput":
|
19300
|
+
"bytesInOutput": 2481
|
19321
19301
|
},
|
19322
19302
|
"src/VideoList/index.tsx": {
|
19323
19303
|
"bytesInOutput": 27
|
@@ -19989,7 +19969,7 @@
|
|
19989
19969
|
"bytesInOutput": 1698
|
19990
19970
|
},
|
19991
19971
|
"src/Prebuilt/components/VideoLayouts/Grid.tsx": {
|
19992
|
-
"bytesInOutput":
|
19972
|
+
"bytesInOutput": 1204
|
19993
19973
|
},
|
19994
19974
|
"src/Prebuilt/components/hooks/useTileLayout.tsx": {
|
19995
19975
|
"bytesInOutput": 3834
|
@@ -20021,7 +20001,7 @@
|
|
20021
20001
|
"src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
|
20022
20002
|
"bytesInOutput": 2830
|
20023
20003
|
},
|
20024
|
-
"../../../../../../../tmp/tmp-
|
20004
|
+
"../../../../../../../tmp/tmp-2818-N5QtmU3NbPS5/1937275e5cb1/index.css": {
|
20025
20005
|
"bytesInOutput": 0
|
20026
20006
|
},
|
20027
20007
|
"src/Prebuilt/common/PeersSorter.ts": {
|
@@ -20256,7 +20236,7 @@
|
|
20256
20236
|
"bytesInOutput": 2632
|
20257
20237
|
}
|
20258
20238
|
},
|
20259
|
-
"bytes":
|
20239
|
+
"bytes": 1449490
|
20260
20240
|
},
|
20261
20241
|
"dist/index.css.map": {
|
20262
20242
|
"imports": [],
|
@@ -20318,10 +20298,10 @@
|
|
20318
20298
|
}
|
20319
20299
|
],
|
20320
20300
|
"inputs": {
|
20321
|
-
"../../../../../../../tmp/tmp-
|
20301
|
+
"../../../../../../../tmp/tmp-2818-N5QtmU3NbPS5/1937275e6453/tldraw.css": {
|
20322
20302
|
"bytesInOutput": 75223
|
20323
20303
|
},
|
20324
|
-
"../../../../../../../tmp/tmp-
|
20304
|
+
"../../../../../../../tmp/tmp-2818-N5QtmU3NbPS5/1937275e5cb1/index.css": {
|
20325
20305
|
"bytesInOutput": 401
|
20326
20306
|
}
|
20327
20307
|
},
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.3.25-alpha.
|
13
|
+
"version": "0.3.25-alpha.6",
|
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.25-alpha.
|
79
|
-
"@100mslive/hms-noise-cancellation": "0.0.
|
80
|
-
"@100mslive/hms-virtual-background": "1.13.25-alpha.
|
81
|
-
"@100mslive/hms-whiteboard": "0.0.15-alpha.
|
82
|
-
"@100mslive/react-icons": "0.10.25-alpha.
|
83
|
-
"@100mslive/react-sdk": "0.10.25-alpha.
|
78
|
+
"@100mslive/hls-player": "0.3.25-alpha.6",
|
79
|
+
"@100mslive/hms-noise-cancellation": "0.0.1",
|
80
|
+
"@100mslive/hms-virtual-background": "1.13.25-alpha.6",
|
81
|
+
"@100mslive/hms-whiteboard": "0.0.15-alpha.6",
|
82
|
+
"@100mslive/react-icons": "0.10.25-alpha.6",
|
83
|
+
"@100mslive/react-sdk": "0.10.25-alpha.6",
|
84
84
|
"@100mslive/types-prebuilt": "0.12.12",
|
85
85
|
"@emoji-mart/data": "^1.0.6",
|
86
86
|
"@emoji-mart/react": "^1.0.1",
|
@@ -102,7 +102,6 @@
|
|
102
102
|
"@stitches/react": "1.3.1-1",
|
103
103
|
"emoji-mart": "^5.2.2",
|
104
104
|
"eventemitter2": "^6.4.9",
|
105
|
-
"framer-motion": "^11.11.0",
|
106
105
|
"lodash.merge": "^4.6.2",
|
107
106
|
"qrcode.react": "^3.1.0",
|
108
107
|
"react-dom": "^18.2.0",
|
@@ -118,5 +117,5 @@
|
|
118
117
|
"uuid": "^8.3.2",
|
119
118
|
"worker-timers": "^7.0.40"
|
120
119
|
},
|
121
|
-
"gitHead": "
|
120
|
+
"gitHead": "9d7dcf30165c3a75bbe97b82f2c6af5fb5d69c88"
|
122
121
|
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { AnimatePresence } from 'framer-motion';
|
3
2
|
import { TrackWithPeerAndDimensions } from '@100mslive/react-sdk';
|
4
3
|
import { Box } from '../../../Layout';
|
5
4
|
// @ts-ignore: No implicit Any
|
@@ -10,37 +9,35 @@ export const Grid = React.forwardRef<HTMLDivElement, { tiles: TrackWithPeerAndDi
|
|
10
9
|
({ tiles, edgeToEdge }, ref) => {
|
11
10
|
const videoTileProps = useVideoTileContext();
|
12
11
|
return (
|
13
|
-
<
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
</Box>
|
43
|
-
</AnimatePresence>
|
12
|
+
<Box
|
13
|
+
ref={ref}
|
14
|
+
css={{
|
15
|
+
flex: '1 1 0',
|
16
|
+
gap: '$4',
|
17
|
+
display: 'flex',
|
18
|
+
placeContent: 'center',
|
19
|
+
alignItems: 'center',
|
20
|
+
justifyContent: 'center',
|
21
|
+
flexFlow: 'row wrap',
|
22
|
+
minHeight: 0,
|
23
|
+
'@lg': { gap: edgeToEdge ? 0 : '$4' },
|
24
|
+
}}
|
25
|
+
>
|
26
|
+
{tiles?.map(tile => {
|
27
|
+
return (
|
28
|
+
<VideoTile
|
29
|
+
key={tile.track?.id || tile.peer?.id}
|
30
|
+
width={tile.width}
|
31
|
+
height={tile.height}
|
32
|
+
peerId={tile.peer?.id}
|
33
|
+
trackId={tile.track?.id}
|
34
|
+
rootCSS={{ padding: 0 }}
|
35
|
+
objectFit="contain"
|
36
|
+
{...videoTileProps}
|
37
|
+
/>
|
38
|
+
);
|
39
|
+
})}
|
40
|
+
</Box>
|
44
41
|
);
|
45
42
|
},
|
46
43
|
);
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { motion } from 'framer-motion';
|
2
1
|
import { Box } from '../Layout';
|
3
2
|
import { styled } from '../Theme';
|
4
3
|
import { flexCenter } from '../utils';
|
@@ -7,18 +6,6 @@ export const Root = styled('div', {
|
|
7
6
|
padding: '0.75rem',
|
8
7
|
});
|
9
8
|
|
10
|
-
const MotionRoot = motion(Root);
|
11
|
-
MotionRoot.defaultProps = {
|
12
|
-
layout: true,
|
13
|
-
transition: {
|
14
|
-
type: 'spring',
|
15
|
-
stiffness: 300,
|
16
|
-
damping: 30,
|
17
|
-
mass: 1,
|
18
|
-
duration: 0.15,
|
19
|
-
},
|
20
|
-
};
|
21
|
-
|
22
9
|
const Container = styled('div', {
|
23
10
|
width: '100%',
|
24
11
|
height: '100%',
|
@@ -137,7 +124,7 @@ const AvatarContainer = styled(Box, {
|
|
137
124
|
});
|
138
125
|
|
139
126
|
interface VideoTileType {
|
140
|
-
Root: typeof
|
127
|
+
Root: typeof Root;
|
141
128
|
Container: typeof Container;
|
142
129
|
Overlay: typeof Overlay;
|
143
130
|
Info: typeof Info;
|
@@ -148,7 +135,7 @@ interface VideoTileType {
|
|
148
135
|
}
|
149
136
|
|
150
137
|
export const StyledVideoTile: VideoTileType = {
|
151
|
-
Root
|
138
|
+
Root,
|
152
139
|
Container,
|
153
140
|
Overlay,
|
154
141
|
Info,
|