virtua 0.17.4 → 0.17.6

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.
@@ -71,7 +71,7 @@ export interface VListProps extends ViewportComponentAttributes {
71
71
  */
72
72
  initialItemCount?: number;
73
73
  /**
74
- * 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.
74
+ * While true is set, scroll position will be maintained from the end not usual start when items are added to/removed from start. It's recommended to set false if you add to/remove from mid/end of the list because it can cause unexpected behavior. This prop is useful for reverse infinite scrolling.
75
75
  */
76
76
  shift?: boolean;
77
77
  /**
@@ -79,7 +79,7 @@ export interface VListProps extends ViewportComponentAttributes {
79
79
  */
80
80
  horizontal?: boolean;
81
81
  /**
82
- * If true, some styles will be adjusted to be suitable for bottom-to-top scrolling.
82
+ * If true, items are aligned to the end of the list when total size of items are smaller than viewport size. It's useful for chat like app.
83
83
  */
84
84
  reverse?: boolean;
85
85
  /**
@@ -43,7 +43,7 @@ export interface WVListProps extends ViewportComponentAttributes {
43
43
  */
44
44
  initialItemCount?: number;
45
45
  /**
46
- * 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.
46
+ * While true is set, scroll position will be maintained from the end not usual start when items are added to/removed from start. It's recommended to set false if you add to/remove from mid/end of the list because it can cause unexpected behavior. This prop is useful for reverse infinite scrolling.
47
47
  */
48
48
  shift?: boolean;
49
49
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virtua",
3
- "version": "0.17.4",
3
+ "version": "0.17.6",
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",
@@ -25,7 +25,7 @@
25
25
  "storybook": "storybook dev -p 6006",
26
26
  "storybook:rtl": "STORYBOOK_RTL=1 npm run storybook",
27
27
  "storybook:build": "storybook build",
28
- "storybook:test": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"npm run storybook -- --quiet --no-open\" \"wait-on tcp:6006 && test-storybook\"",
28
+ "storybook:test": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"npm run storybook -- --no-open\" \"wait-on tcp:6006 && test-storybook\"",
29
29
  "e2e": "npx playwright test",
30
30
  "typedoc": "typedoc",
31
31
  "size": "size-limit",
@@ -45,19 +45,19 @@
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": "^11.0.0",
49
- "@storybook/addon-storysource": "7.6.2",
50
- "@storybook/react": "7.6.2",
51
- "@storybook/react-vite": "^7.6.0",
52
- "@storybook/source-loader": "7.6.2",
48
+ "@size-limit/preset-small-lib": "^11.0.1",
49
+ "@storybook/addon-storysource": "7.6.4",
50
+ "@storybook/react": "7.6.4",
51
+ "@storybook/react-vite": "^7.6.4",
52
+ "@storybook/source-loader": "7.6.4",
53
53
  "@storybook/test-runner": "0.16.0",
54
- "@tanstack/react-virtual": "3.0.0-beta.68",
54
+ "@tanstack/react-virtual": "3.0.1",
55
55
  "@testing-library/react": "14.1.2",
56
- "@types/react": "18.2.39",
56
+ "@types/react": "18.2.43",
57
57
  "@types/react-beautiful-dnd": "13.1.7",
58
58
  "@types/react-virtualized": "9.21.28",
59
59
  "@types/react-window": "1.8.8",
60
- "@typescript-eslint/parser": "6.12.0",
60
+ "@typescript-eslint/parser": "6.13.2",
61
61
  "concurrently": "8.2.2",
62
62
  "eslint": "8.54.0",
63
63
  "eslint-plugin-react-hooks": "4.6.0",
@@ -76,16 +76,16 @@
76
76
  "react-virtuoso": "4.6.2",
77
77
  "react-window": "1.8.10",
78
78
  "rimraf": "5.0.5",
79
- "rollup": "4.5.2",
79
+ "rollup": "4.7.0",
80
80
  "rollup-plugin-banner2": "1.2.2",
81
- "size-limit": "^11.0.0",
82
- "storybook": "^7.6.0",
81
+ "size-limit": "^11.0.1",
82
+ "storybook": "^7.6.4",
83
83
  "ts-jest": "29.1.1",
84
- "typedoc": "0.25.4",
84
+ "typedoc": "0.25.3",
85
85
  "typedoc-plugin-markdown": "3.17.1",
86
86
  "typescript": "5.3.2",
87
- "virtua": "^0.17.2",
88
- "vite": "5.0.4",
87
+ "virtua": "^0.17.5",
88
+ "vite": "5.0.7",
89
89
  "wait-on": "7.2.0"
90
90
  },
91
91
  "peerDependencies": {