virtua 0.7.0 → 0.8.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.
- package/README.md +1 -1
- package/lib/core/cache.d.ts +1 -1
- package/lib/core/store.d.ts +10 -7
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/lib/react/VList.d.ts +4 -0
- package/package.json +18 -18
package/lib/react/VList.d.ts
CHANGED
|
@@ -66,6 +66,10 @@ export interface VListProps extends ViewportComponentAttributes {
|
|
|
66
66
|
* If set, the specified amount of items will be mounted in the initial rendering regardless of the container size. This prop is mostly for SSR.
|
|
67
67
|
*/
|
|
68
68
|
initialItemCount?: number;
|
|
69
|
+
/**
|
|
70
|
+
* While true is set, scroll position will be maintained from the end not usual start when items are shifted/unshifted. It is useful for reverse infinite scrolling.
|
|
71
|
+
*/
|
|
72
|
+
shift?: boolean;
|
|
69
73
|
/**
|
|
70
74
|
* If true, rendered as a horizontally scrollable list. Otherwise rendered as a vertically scrollable list.
|
|
71
75
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "virtua",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.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",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "rollup -c",
|
|
22
22
|
"tsc": "tsc -p . --noEmit",
|
|
23
|
-
"test": "jest",
|
|
23
|
+
"test": "jest --silent",
|
|
24
24
|
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
|
|
25
25
|
"storybook": "storybook dev -p 6006",
|
|
26
26
|
"storybook:build": "storybook build",
|
|
@@ -38,27 +38,27 @@
|
|
|
38
38
|
"@emotion/styled": "11.10.8",
|
|
39
39
|
"@faker-js/faker": "8.0.2",
|
|
40
40
|
"@mui/material": "5.14.2",
|
|
41
|
-
"@playwright/test": "^1.
|
|
41
|
+
"@playwright/test": "^1.37.0",
|
|
42
42
|
"@rollup/plugin-babel": "6.0.3",
|
|
43
43
|
"@rollup/plugin-terser": "0.4.3",
|
|
44
44
|
"@rollup/plugin-typescript": "11.1.2",
|
|
45
45
|
"@size-limit/preset-small-lib": "^8.2.6",
|
|
46
|
-
"@storybook/addon-storysource": "7.2.
|
|
47
|
-
"@storybook/react": "7.2.
|
|
48
|
-
"@storybook/react-vite": "^7.2.
|
|
49
|
-
"@storybook/test-runner": "0.
|
|
46
|
+
"@storybook/addon-storysource": "7.2.3",
|
|
47
|
+
"@storybook/react": "7.2.3",
|
|
48
|
+
"@storybook/react-vite": "^7.2.3",
|
|
49
|
+
"@storybook/test-runner": "0.13.0",
|
|
50
50
|
"@tanstack/react-virtual": "3.0.0-alpha.0",
|
|
51
51
|
"@testing-library/react": "14.0.0",
|
|
52
|
-
"@types/react": "18.2.
|
|
52
|
+
"@types/react": "18.2.20",
|
|
53
53
|
"@types/react-virtualized": "9.21.22",
|
|
54
54
|
"@types/react-window": "1.8.5",
|
|
55
|
-
"@typescript-eslint/parser": "6.
|
|
55
|
+
"@typescript-eslint/parser": "6.3.0",
|
|
56
56
|
"concurrently": "8.2.0",
|
|
57
|
-
"eslint": "8.
|
|
57
|
+
"eslint": "8.47.0",
|
|
58
58
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
59
|
-
"jest": "29.6.
|
|
60
|
-
"jest-environment-jsdom": "29.6.
|
|
61
|
-
"re-resizable": "6.9.
|
|
59
|
+
"jest": "29.6.2",
|
|
60
|
+
"jest-environment-jsdom": "29.6.2",
|
|
61
|
+
"re-resizable": "6.9.11",
|
|
62
62
|
"react": "18.2.0",
|
|
63
63
|
"react-content-loader": "6.2.1",
|
|
64
64
|
"react-cool-virtual": "0.7.0",
|
|
@@ -68,19 +68,19 @@
|
|
|
68
68
|
"react-pull-to-refresh": "2.0.1",
|
|
69
69
|
"react-select": "5.7.4",
|
|
70
70
|
"react-virtualized": "9.22.5",
|
|
71
|
-
"react-virtuoso": "4.
|
|
71
|
+
"react-virtuoso": "4.5.0",
|
|
72
72
|
"react-window": "1.8.9",
|
|
73
73
|
"rimraf": "5.0.1",
|
|
74
|
-
"rollup": "3.
|
|
74
|
+
"rollup": "3.28.0",
|
|
75
75
|
"rollup-plugin-banner2": "1.2.2",
|
|
76
76
|
"size-limit": "^8.2.6",
|
|
77
|
-
"storybook": "^7.2.
|
|
77
|
+
"storybook": "^7.2.3",
|
|
78
78
|
"ts-jest": "29.1.1",
|
|
79
79
|
"typedoc": "0.24.8",
|
|
80
80
|
"typedoc-plugin-markdown": "3.15.4",
|
|
81
81
|
"typescript": "5.1.6",
|
|
82
|
-
"virtua": "^0.
|
|
83
|
-
"vite": "4.4.
|
|
82
|
+
"virtua": "^0.7.0",
|
|
83
|
+
"vite": "4.4.9",
|
|
84
84
|
"wait-on": "7.0.1"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|