@legendapp/list 2.1.0-beta.3 → 2.1.0-beta.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.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.mjs +1 -1
  3. package/package.json +8 -4
package/index.js CHANGED
@@ -758,7 +758,7 @@ var ContainersInner = typedMemo(function ContainersInner2({ horizontal, numColum
758
758
  const columnWrapperStyle = ctx.columnWrapperStyle;
759
759
  const [totalSize, otherAxisSize] = useArr$(["totalSize", "otherAxisSize"]);
760
760
  useDOMOrder(ref);
761
- const style = horizontal ? { minHeight: otherAxisSize, width: totalSize } : { height: totalSize, minWidth: otherAxisSize };
761
+ const style = horizontal ? { minHeight: otherAxisSize, position: "relative", width: totalSize } : { height: totalSize, minWidth: otherAxisSize, position: "relative" };
762
762
  if (columnWrapperStyle && numColumns > 1) {
763
763
  const { columnGap, rowGap, gap } = columnWrapperStyle;
764
764
  const gapX = columnGap || gap || 0;
package/index.mjs CHANGED
@@ -737,7 +737,7 @@ var ContainersInner = typedMemo(function ContainersInner2({ horizontal, numColum
737
737
  const columnWrapperStyle = ctx.columnWrapperStyle;
738
738
  const [totalSize, otherAxisSize] = useArr$(["totalSize", "otherAxisSize"]);
739
739
  useDOMOrder(ref);
740
- const style = horizontal ? { minHeight: otherAxisSize, width: totalSize } : { height: totalSize, minWidth: otherAxisSize };
740
+ const style = horizontal ? { minHeight: otherAxisSize, position: "relative", width: totalSize } : { height: totalSize, minWidth: otherAxisSize, position: "relative" };
741
741
  if (columnWrapperStyle && numColumns > 1) {
742
742
  const { columnGap, rowGap, gap } = columnWrapperStyle;
743
743
  const gapX = columnGap || gap || 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/list",
3
- "version": "2.1.0-beta.3",
3
+ "version": "2.1.0-beta.5",
4
4
  "description": "Legend List is a drop-in replacement for FlatList with much better performance and supporting dynamically sized items.",
5
5
  "sideEffects": false,
6
6
  "private": false,
@@ -13,9 +13,13 @@
13
13
  "peerDependencies": {
14
14
  "react": "*"
15
15
  },
16
- "optionalDependencies": {
17
- "react-native": "*",
18
- "react-dom": "*"
16
+ "peerDependenciesMeta": {
17
+ "react-dom": {
18
+ "optional": true
19
+ },
20
+ "react-native": {
21
+ "optional": true
22
+ }
19
23
  },
20
24
  "author": "Legend <contact@legendapp.com> (https://github.com/LegendApp)",
21
25
  "keywords": [