virtua 0.14.0 → 0.15.0

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.
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  import { CustomViewportComponent, ViewportComponentAttributes } from "./Viewport";
3
3
  import { CustomItemComponent } from "./ListItem";
4
- import { CacheSnapshot, ScrollToIndexAlign } from "../core/types";
4
+ import { CacheSnapshot, ScrollToIndexOpts } from "../core/types";
5
5
  type CustomItemComponentOrElement = keyof JSX.IntrinsicElements | CustomItemComponent;
6
6
  /**
7
7
  * Methods of {@link VList}.
@@ -26,9 +26,9 @@ export interface VListHandle {
26
26
  /**
27
27
  * Scroll to the item specified by index.
28
28
  * @param index index of item
29
- * @param align alignment of item
29
+ * @param opts options
30
30
  */
31
- scrollToIndex(index: number, align?: ScrollToIndexAlign): void;
31
+ scrollToIndex(index: number, opts?: ScrollToIndexOpts): void;
32
32
  /**
33
33
  * Scroll to the given offset.
34
34
  * @param offset offset from start
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virtua",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "A zero-config, fast and small (~3kB) virtual list (and grid) component for React.",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.mjs",
@@ -37,55 +37,54 @@
37
37
  "@dnd-kit/sortable": "7.0.2",
38
38
  "@emotion/react": "11.10.8",
39
39
  "@emotion/styled": "11.10.8",
40
- "@faker-js/faker": "8.1.0",
40
+ "@faker-js/faker": "8.2.0",
41
41
  "@mui/material": "5.14.11",
42
- "@playwright/test": "^1.37.0",
42
+ "@playwright/test": "^1.39.0",
43
43
  "@radix-ui/colors": "2.1.0",
44
44
  "@radix-ui/react-scroll-area": "1.0.5",
45
45
  "@rollup/plugin-babel": "6.0.4",
46
46
  "@rollup/plugin-terser": "0.4.4",
47
47
  "@rollup/plugin-typescript": "11.1.5",
48
- "@size-limit/preset-small-lib": "^9.0.0",
49
- "@storybook/addon-storysource": "7.4.5",
50
- "@storybook/react": "7.4.5",
51
- "@storybook/react-vite": "^7.4.5",
48
+ "@size-limit/preset-small-lib": "^10.0.1",
49
+ "@storybook/addon-storysource": "7.5.1",
50
+ "@storybook/react": "7.5.1",
51
+ "@storybook/react-vite": "^7.5.1",
52
52
  "@storybook/test-runner": "0.13.0",
53
53
  "@tanstack/react-virtual": "3.0.0-alpha.0",
54
54
  "@testing-library/react": "14.0.0",
55
- "@types/react": "18.2.23",
55
+ "@types/react": "18.2.31",
56
56
  "@types/react-beautiful-dnd": "13.1.4",
57
- "@types/react-virtualized": "9.21.22",
58
- "@types/react-window": "1.8.5",
59
- "@typescript-eslint/parser": "6.7.4",
57
+ "@types/react-virtualized": "9.21.26",
58
+ "@types/react-window": "1.8.7",
59
+ "@typescript-eslint/parser": "6.9.0",
60
60
  "concurrently": "8.2.0",
61
- "eslint": "8.50.0",
61
+ "eslint": "8.52.0",
62
62
  "eslint-plugin-react-hooks": "4.6.0",
63
- "jest": "29.6.2",
64
- "jest-environment-jsdom": "29.6.2",
63
+ "jest": "29.7.0",
64
+ "jest-environment-jsdom": "29.7.0",
65
65
  "re-resizable": "6.9.11",
66
66
  "react": "18.2.0",
67
67
  "react-beautiful-dnd": "13.1.1",
68
68
  "react-content-loader": "6.2.1",
69
- "react-cool-virtual": "0.7.0",
70
69
  "react-dom": "18.2.0",
71
70
  "react-is": "18.2.0",
72
71
  "react-merge-refs": "2.0.2",
73
72
  "react-pull-to-refresh": "2.0.1",
74
73
  "react-select": "5.7.4",
75
74
  "react-virtualized": "9.22.5",
76
- "react-virtuoso": "4.6.0",
75
+ "react-virtuoso": "4.6.2",
77
76
  "react-window": "1.8.9",
78
77
  "rimraf": "5.0.1",
79
- "rollup": "4.1.1",
78
+ "rollup": "4.1.4",
80
79
  "rollup-plugin-banner2": "1.2.2",
81
- "size-limit": "^9.0.0",
82
- "storybook": "^7.4.5",
80
+ "size-limit": "^10.0.1",
81
+ "storybook": "^7.5.1",
83
82
  "ts-jest": "29.1.1",
84
83
  "typedoc": "0.24.8",
85
84
  "typedoc-plugin-markdown": "3.15.4",
86
85
  "typescript": "5.2.2",
87
- "virtua": "^0.13.0",
88
- "vite": "4.4.9",
86
+ "virtua": "^0.14.0",
87
+ "vite": "4.5.0",
89
88
  "wait-on": "7.0.1"
90
89
  },
91
90
  "peerDependencies": {