@100mslive/roomkit-react 0.3.25-alpha.5 → 0.3.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -915,13 +915,8 @@
915
915
  "format": "esm"
916
916
  },
917
917
  "src/VideoTile/StyledVideoTile.tsx": {
918
- "bytes": 3105,
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",
@@ -5784,7 +5779,7 @@
5784
5779
  "format": "cjs"
5785
5780
  },
5786
5781
  "../hms-video-store/dist/index.js": {
5787
- "bytes": 375478,
5782
+ "bytes": 375470,
5788
5783
  "imports": [
5789
5784
  {
5790
5785
  "path": "../../node_modules/reselect/es/index.js",
@@ -10706,18 +10701,13 @@
10706
10701
  "format": "esm"
10707
10702
  },
10708
10703
  "src/Prebuilt/components/VideoLayouts/Grid.tsx": {
10709
- "bytes": 1428,
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-2850-gK6MwlEulps0/193620695a23/tldraw.css": {
11324
+ "../../../../../../../tmp/tmp-2768-XImgzmXdo4yS/1937323d5513/tldraw.css": {
11335
11325
  "bytes": 80111,
11336
11326
  "imports": [
11337
11327
  {
@@ -11381,7 +11371,7 @@
11381
11371
  }
11382
11372
  ]
11383
11373
  },
11384
- "../../../../../../../tmp/tmp-2850-gK6MwlEulps0/1936206959f2/index.css": {
11374
+ "../../../../../../../tmp/tmp-2768-XImgzmXdo4yS/1937323d4e31/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-2850-gK6MwlEulps0/193620695a23/tldraw.css",
11383
+ "path": "../../../../../../../tmp/tmp-2768-XImgzmXdo4yS/1937323d5513/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-2850-gK6MwlEulps0/1936206959f2/index.css",
11458
+ "path": "../../../../../../../tmp/tmp-2768-XImgzmXdo4yS/1937323d4e31/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": 3624707
15722
+ "bytes": 3623999
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": 18100
19060
+ "bytesInOutput": 17960
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": 2753
19234
+ "bytesInOutput": 2481
19255
19235
  },
19256
19236
  "src/VideoList/index.tsx": {
19257
19237
  "bytesInOutput": 27
@@ -19611,7 +19591,7 @@
19611
19591
  "bytesInOutput": 10613
19612
19592
  },
19613
19593
  "../hms-video-store/dist/index.js": {
19614
- "bytesInOutput": 54400
19594
+ "bytesInOutput": 54392
19615
19595
  },
19616
19596
  "../../node_modules/reselect/es/index.js": {
19617
19597
  "bytesInOutput": 2539
@@ -19923,7 +19903,7 @@
19923
19903
  "bytesInOutput": 1796
19924
19904
  },
19925
19905
  "src/Prebuilt/components/VideoLayouts/Grid.tsx": {
19926
- "bytesInOutput": 1422
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-2850-gK6MwlEulps0/1936206959f2/index.css": {
19938
+ "../../../../../../../tmp/tmp-2768-XImgzmXdo4yS/1937323d4e31/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": 1504890
20173
+ "bytes": 1504316
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-2850-gK6MwlEulps0/193620695a23/tldraw.css": {
20235
+ "../../../../../../../tmp/tmp-2768-XImgzmXdo4yS/1937323d5513/tldraw.css": {
20256
20236
  "bytesInOutput": 75223
20257
20237
  },
20258
- "../../../../../../../tmp/tmp-2850-gK6MwlEulps0/1936206959f2/index.css": {
20238
+ "../../../../../../../tmp/tmp-2768-XImgzmXdo4yS/1937323d4e31/index.css": {
20259
20239
  "bytesInOutput": 401
20260
20240
  }
20261
20241
  },
@@ -915,13 +915,8 @@
915
915
  "format": "esm"
916
916
  },
917
917
  "src/VideoTile/StyledVideoTile.tsx": {
918
- "bytes": 3105,
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",
@@ -5784,7 +5779,7 @@
5784
5779
  "format": "cjs"
5785
5780
  },
5786
5781
  "../hms-video-store/dist/index.js": {
5787
- "bytes": 375478,
5782
+ "bytes": 375470,
5788
5783
  "imports": [
5789
5784
  {
5790
5785
  "path": "../../node_modules/reselect/es/index.js",
@@ -10706,18 +10701,13 @@
10706
10701
  "format": "esm"
10707
10702
  },
10708
10703
  "src/Prebuilt/components/VideoLayouts/Grid.tsx": {
10709
- "bytes": 1428,
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-2850-wPuV5bZvLYyI/193620694fb1/tldraw.css": {
11324
+ "../../../../../../../tmp/tmp-2768-ra9xwqQ0AI2q/1937323d5502/tldraw.css": {
11335
11325
  "bytes": 80111,
11336
11326
  "imports": [
11337
11327
  {
@@ -11381,7 +11371,7 @@
11381
11371
  }
11382
11372
  ]
11383
11373
  },
11384
- "../../../../../../../tmp/tmp-2850-wPuV5bZvLYyI/193620694950/index.css": {
11374
+ "../../../../../../../tmp/tmp-2768-ra9xwqQ0AI2q/1937323d4d70/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-2850-wPuV5bZvLYyI/193620694fb1/tldraw.css",
11383
+ "path": "../../../../../../../tmp/tmp-2768-ra9xwqQ0AI2q/1937323d5502/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-2850-wPuV5bZvLYyI/193620694950/index.css",
11458
+ "path": "../../../../../../../tmp/tmp-2768-ra9xwqQ0AI2q/1937323d4d70/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": 3664606
15722
+ "bytes": 3663922
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": 18100
19126
+ "bytesInOutput": 17960
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": 2714
19300
+ "bytesInOutput": 2481
19321
19301
  },
19322
19302
  "src/VideoList/index.tsx": {
19323
19303
  "bytesInOutput": 27
@@ -19677,7 +19657,7 @@
19677
19657
  "bytesInOutput": 9861
19678
19658
  },
19679
19659
  "../hms-video-store/dist/index.js": {
19680
- "bytesInOutput": 54288
19660
+ "bytesInOutput": 54280
19681
19661
  },
19682
19662
  "../../node_modules/reselect/es/index.js": {
19683
19663
  "bytesInOutput": 2539
@@ -19989,7 +19969,7 @@
19989
19969
  "bytesInOutput": 1698
19990
19970
  },
19991
19971
  "src/Prebuilt/components/VideoLayouts/Grid.tsx": {
19992
- "bytesInOutput": 1316
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-2850-wPuV5bZvLYyI/193620694950/index.css": {
20004
+ "../../../../../../../tmp/tmp-2768-ra9xwqQ0AI2q/1937323d4d70/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": 1449894
20239
+ "bytes": 1449401
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-2850-wPuV5bZvLYyI/193620694fb1/tldraw.css": {
20301
+ "../../../../../../../tmp/tmp-2768-ra9xwqQ0AI2q/1937323d5502/tldraw.css": {
20322
20302
  "bytesInOutput": 75223
20323
20303
  },
20324
- "../../../../../../../tmp/tmp-2850-wPuV5bZvLYyI/193620694950/index.css": {
20304
+ "../../../../../../../tmp/tmp-2768-ra9xwqQ0AI2q/1937323d4d70/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.5",
13
+ "version": "0.3.25",
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.5",
79
- "@100mslive/hms-noise-cancellation": "0.0.2-alpha.7",
80
- "@100mslive/hms-virtual-background": "1.13.25-alpha.5",
81
- "@100mslive/hms-whiteboard": "0.0.15-alpha.5",
82
- "@100mslive/react-icons": "0.10.25-alpha.5",
83
- "@100mslive/react-sdk": "0.10.25-alpha.5",
78
+ "@100mslive/hls-player": "0.3.25",
79
+ "@100mslive/hms-noise-cancellation": "0.0.1",
80
+ "@100mslive/hms-virtual-background": "1.13.25",
81
+ "@100mslive/hms-whiteboard": "0.0.15",
82
+ "@100mslive/react-icons": "0.10.25",
83
+ "@100mslive/react-sdk": "0.10.25",
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": "0249eaabc39f8911a178a8cb5445cf7887639ab6"
120
+ "gitHead": "e053c9f11649cce8ef92c1d081e4236884d4f829"
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
- <AnimatePresence>
14
- <Box
15
- ref={ref}
16
- css={{
17
- flex: '1 1 0',
18
- gap: '$4',
19
- display: 'flex',
20
- placeContent: 'center',
21
- alignItems: 'center',
22
- justifyContent: 'center',
23
- flexFlow: 'row wrap',
24
- minHeight: 0,
25
- '@lg': { gap: edgeToEdge ? 0 : '$4' },
26
- }}
27
- >
28
- {tiles?.map(tile => {
29
- return (
30
- <VideoTile
31
- key={tile.track?.id || tile.peer?.id}
32
- width={tile.width}
33
- height={tile.height}
34
- peerId={tile.peer?.id}
35
- trackId={tile.track?.id}
36
- rootCSS={{ padding: 0 }}
37
- objectFit="contain"
38
- {...videoTileProps}
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 MotionRoot;
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: MotionRoot,
138
+ Root,
152
139
  Container,
153
140
  Overlay,
154
141
  Info,