@100mslive/roomkit-react 0.3.24-alpha.4 → 0.3.24-alpha.5

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.
@@ -10737,7 +10737,7 @@
10737
10737
  "format": "esm"
10738
10738
  },
10739
10739
  "src/Prebuilt/components/hooks/useTileLayout.tsx": {
10740
- "bytes": 4413,
10740
+ "bytes": 4640,
10741
10741
  "imports": [
10742
10742
  {
10743
10743
  "path": "react",
@@ -11316,7 +11316,7 @@
11316
11316
  ],
11317
11317
  "format": "esm"
11318
11318
  },
11319
- "../../../../../../../tmp/tmp-2742-7046AemPVhFa/192dc2482d53/tldraw.css": {
11319
+ "../../../../../../../tmp/tmp-2760-or3ilBOu9hWT/192dcb751ea3/tldraw.css": {
11320
11320
  "bytes": 80111,
11321
11321
  "imports": [
11322
11322
  {
@@ -11366,7 +11366,7 @@
11366
11366
  }
11367
11367
  ]
11368
11368
  },
11369
- "../../../../../../../tmp/tmp-2742-7046AemPVhFa/192dc24826a0/index.css": {
11369
+ "../../../../../../../tmp/tmp-2760-or3ilBOu9hWT/192dcb7516a0/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-2742-7046AemPVhFa/192dc2482d53/tldraw.css",
11378
+ "path": "../../../../../../../tmp/tmp-2760-or3ilBOu9hWT/192dcb751ea3/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-2742-7046AemPVhFa/192dc24826a0/index.css",
11453
+ "path": "../../../../../../../tmp/tmp-2760-or3ilBOu9hWT/192dcb7516a0/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": 3617010
15722
+ "bytes": 3617265
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": 18025
19055
+ "bytesInOutput": 18006
19056
19056
  },
19057
19057
  "../../node_modules/lodash/lodash.js": {
19058
19058
  "bytesInOutput": 224308
@@ -19901,7 +19901,7 @@
19901
19901
  "bytesInOutput": 1268
19902
19902
  },
19903
19903
  "src/Prebuilt/components/hooks/useTileLayout.tsx": {
19904
- "bytesInOutput": 3865
19904
+ "bytesInOutput": 3917
19905
19905
  },
19906
19906
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx": {
19907
19907
  "bytesInOutput": 2048
@@ -19930,7 +19930,7 @@
19930
19930
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19931
19931
  "bytesInOutput": 3051
19932
19932
  },
19933
- "../../../../../../../tmp/tmp-2742-7046AemPVhFa/192dc24826a0/index.css": {
19933
+ "../../../../../../../tmp/tmp-2760-or3ilBOu9hWT/192dcb7516a0/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": 1503916
20168
+ "bytes": 1503949
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-2742-7046AemPVhFa/192dc2482d53/tldraw.css": {
20230
+ "../../../../../../../tmp/tmp-2760-or3ilBOu9hWT/192dcb751ea3/tldraw.css": {
20231
20231
  "bytesInOutput": 75223
20232
20232
  },
20233
- "../../../../../../../tmp/tmp-2742-7046AemPVhFa/192dc24826a0/index.css": {
20233
+ "../../../../../../../tmp/tmp-2760-or3ilBOu9hWT/192dcb7516a0/index.css": {
20234
20234
  "bytesInOutput": 401
20235
20235
  }
20236
20236
  },
@@ -10737,7 +10737,7 @@
10737
10737
  "format": "esm"
10738
10738
  },
10739
10739
  "src/Prebuilt/components/hooks/useTileLayout.tsx": {
10740
- "bytes": 4413,
10740
+ "bytes": 4640,
10741
10741
  "imports": [
10742
10742
  {
10743
10743
  "path": "react",
@@ -11316,7 +11316,7 @@
11316
11316
  ],
11317
11317
  "format": "esm"
11318
11318
  },
11319
- "../../../../../../../tmp/tmp-2742-hKYrv3hvQoeS/192dc2482d42/tldraw.css": {
11319
+ "../../../../../../../tmp/tmp-2760-AsFkHa5GB43e/192dcb751e92/tldraw.css": {
11320
11320
  "bytes": 80111,
11321
11321
  "imports": [
11322
11322
  {
@@ -11366,7 +11366,7 @@
11366
11366
  }
11367
11367
  ]
11368
11368
  },
11369
- "../../../../../../../tmp/tmp-2742-hKYrv3hvQoeS/192dc2482be1/index.css": {
11369
+ "../../../../../../../tmp/tmp-2760-AsFkHa5GB43e/192dcb751d41/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-2742-hKYrv3hvQoeS/192dc2482d42/tldraw.css",
11378
+ "path": "../../../../../../../tmp/tmp-2760-AsFkHa5GB43e/192dcb751e92/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-2742-hKYrv3hvQoeS/192dc2482be1/index.css",
11453
+ "path": "../../../../../../../tmp/tmp-2760-AsFkHa5GB43e/192dcb751d41/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": 3656840
15722
+ "bytes": 3657095
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": 18025
19121
+ "bytesInOutput": 18006
19122
19122
  },
19123
19123
  "../../node_modules/lodash/lodash.js": {
19124
19124
  "bytesInOutput": 224303
@@ -19967,7 +19967,7 @@
19967
19967
  "bytesInOutput": 1204
19968
19968
  },
19969
19969
  "src/Prebuilt/components/hooks/useTileLayout.tsx": {
19970
- "bytesInOutput": 3833
19970
+ "bytesInOutput": 3885
19971
19971
  },
19972
19972
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx": {
19973
19973
  "bytesInOutput": 1948
@@ -19996,7 +19996,7 @@
19996
19996
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19997
19997
  "bytesInOutput": 2830
19998
19998
  },
19999
- "../../../../../../../tmp/tmp-2742-hKYrv3hvQoeS/192dc2482be1/index.css": {
19999
+ "../../../../../../../tmp/tmp-2760-AsFkHa5GB43e/192dcb751d41/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": 1449017
20234
+ "bytes": 1449050
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-2742-hKYrv3hvQoeS/192dc2482d42/tldraw.css": {
20296
+ "../../../../../../../tmp/tmp-2760-AsFkHa5GB43e/192dcb751e92/tldraw.css": {
20297
20297
  "bytesInOutput": 75223
20298
20298
  },
20299
- "../../../../../../../tmp/tmp-2742-hKYrv3hvQoeS/192dc2482be1/index.css": {
20299
+ "../../../../../../../tmp/tmp-2760-AsFkHa5GB43e/192dcb751d41/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.4",
13
+ "version": "0.3.24-alpha.5",
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.4",
78
+ "@100mslive/hls-player": "0.3.24-alpha.5",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.24-alpha.4",
81
- "@100mslive/hms-whiteboard": "0.0.14-alpha.4",
82
- "@100mslive/react-icons": "0.10.24-alpha.4",
83
- "@100mslive/react-sdk": "0.10.24-alpha.4",
80
+ "@100mslive/hms-virtual-background": "1.13.24-alpha.5",
81
+ "@100mslive/hms-whiteboard": "0.0.14-alpha.5",
82
+ "@100mslive/react-icons": "0.10.24-alpha.5",
83
+ "@100mslive/react-sdk": "0.10.24-alpha.5",
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": "73e8ffadcba71e5b6c48fedf53923518066c4504"
120
+ "gitHead": "dc498407583217b11dc845e391849808c2ace147"
121
121
  }
@@ -77,7 +77,7 @@ export const useTileLayout = ({
77
77
  return rowElements;
78
78
  });
79
79
 
80
- const gap = edgeToEdge && isMobile ? 0 : 8; // gap between flex items
80
+ const gap = edgeToEdge ? 0 : 8; // gap between flex items
81
81
  const maxHeight = height - (maxRows - 1) * gap;
82
82
  const maxRowHeight = maxHeight / matrix.length;
83
83
  const aspectRatios =
@@ -115,9 +115,11 @@ export const useTileLayout = ({
115
115
  }
116
116
  }
117
117
  }
118
+ // Beam layout breaks at 480p resolution because the gap of $4 between tiles is not accounted for
119
+ // There could be more such cases, this is a generic fix
118
120
  for (let i = 0; i < row.length; i++) {
119
- row[i].width = tileWidth;
120
- row[i].height = tileHeight;
121
+ row[i].width = tileWidth - (gap / maxCols) * (maxCols - 1);
122
+ row[i].height = tileHeight - (gap / maxRows) * (maxRows - 1);
121
123
  }
122
124
  }
123
125
  }