vlist 3.6.3 → 3.7.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.github.md +6 -6
- package/README.md +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/plugins/snapshots/plugin.d.ts +4 -0
- package/dist/plugins/table/plugin.d.ts +19 -0
- package/dist/size.json +1 -1
- package/dist/synthetic.js +1 -1
- package/dist/version.json +1 -1
- package/package.json +1 -1
package/README.github.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The virtual list library for every framework. Ultra efficient, batteries-included, and accessible with composable plugins.
|
|
4
4
|
|
|
5
|
-
**v3.
|
|
5
|
+
**v3.7.0** — `scroll.mode` on the one `vlist` entry: the default, `"auto"`, scrolls natively and hands a list past the browser's size limit to synthetic input, which draws its own scrollbar. Vue, Svelte, Solid and React entries in the package itself (`vlist/vue`, `vlist/svelte`, `vlist/solid`, `vlist/react`), feature-first and tree-shaken like the vanilla builder; the separate adapter packages are deprecated. See the [changelog](https://github.com/floor/vlist/blob/main/CHANGELOG.md).
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/vlist)
|
|
8
8
|
[](https://bundlephobia.com/package/vlist)
|
|
@@ -268,13 +268,13 @@ The touch-only `.vlist-item--touch-sort` class suppresses selection and callouts
|
|
|
268
268
|
| `vlist/synthetic` (deprecated) | 34.1 KB | 13.0 KB |
|
|
269
269
|
| `vlist/native` (alias) | 27.2 KB | 10.4 KB |
|
|
270
270
|
| `a11y()` | 32.6 KB | 12.4 KB |
|
|
271
|
-
| `selection()` | 37.4 KB | 13.
|
|
271
|
+
| `selection()` | 37.4 KB | 13.9 KB |
|
|
272
272
|
| `data()` | 40.8 KB | 15.2 KB |
|
|
273
273
|
| `scrollbar()` | 35.3 KB | 13.3 KB |
|
|
274
|
-
| `sortable()` | 39.2 KB | 14.
|
|
274
|
+
| `sortable()` | 39.2 KB | 14.0 KB |
|
|
275
275
|
| `groups()` | 43.7 KB | 16.1 KB |
|
|
276
276
|
| `page()` | 30.3 KB | 11.5 KB |
|
|
277
|
-
| `snapshots()` | 30.
|
|
277
|
+
| `snapshots()` | 30.8 KB | 11.7 KB |
|
|
278
278
|
| `transition()` | 33.9 KB | 12.4 KB |
|
|
279
279
|
| `autosize()` | 32.1 KB | 12.2 KB |
|
|
280
280
|
| `grid()` | 34.9 KB | 13.1 KB |
|
|
@@ -293,7 +293,7 @@ The touch-only `.vlist-item--touch-sort` class suppresses selection and callouts
|
|
|
293
293
|
| `vlist/react` `useVList` | 27.6 KB | 10.6 KB |
|
|
294
294
|
| `vlist/react` + `grid()` | 35.3 KB | 13.3 KB |
|
|
295
295
|
|
|
296
|
-
Sizes are tree-shaken totals from `bun run size`, not additive plugin costs. Plugin rows include the native default factory plus that plugin; framework rows add the entry, with the framework itself external. The base is **10,
|
|
296
|
+
Sizes are tree-shaken totals from `bun run size`, not additive plugin costs. Plugin rows include the native default factory plus that plugin; framework rows add the entry, with the framework itself external. The base is **10,678 bytes gzipped**, within the 10.6 KB budget (10,844 bytes). `bun run size` fails if a scenario fails to build, an unused plugin leaks into a bundle, or any published size exceeds its gzip budget. Synthetic input is **13,347 bytes** before plugins; with `scroll.mode`, a `vlist` list downloads the driver and its scrollbar as `synthetic-driver.js` (6.2 KB gzipped) only when it goes synthetic. The alias row measures the same source factory; the distributed alias re-exports it without duplicating the implementation.
|
|
297
297
|
|
|
298
298
|
Bundlephobia's badge measures the package's root entry, which re-exports every plugin, minified and gzipped as one bundle. With a tree-shaking bundler, an app that imports named exports from `vlist` bundles the base (**10.4 KB gzipped**) and the features it uses; the table's rows are each a combined size, not amounts to add up.
|
|
299
299
|
|
|
@@ -610,7 +610,7 @@ scrollbar({ autoHide?, autoHideDelay?, minThumbSize? })
|
|
|
610
610
|
transition({ duration?: 200, insert?: timing, remove?: timing })
|
|
611
611
|
sortable({ handle?: '.drag-handle' }) // drag-and-drop reordering
|
|
612
612
|
page() // no config — uses document scroll
|
|
613
|
-
snapshots({ autoSave: 'key' })
|
|
613
|
+
snapshots({ autoSave: 'key', restorePosition?: 'legacy' | 'anchor' }) // automatic sessionStorage save/restore
|
|
614
614
|
```
|
|
615
615
|
|
|
616
616
|
### Autosize
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The virtual list library for every framework. Ultra efficient, batteries-included, and accessible with composable plugins.
|
|
4
4
|
|
|
5
|
-
**v3.
|
|
5
|
+
**v3.7.0** — `scroll.mode` on the one `vlist` entry: the default, `"auto"`, scrolls natively and hands a list past the browser's size limit to synthetic input, which draws its own scrollbar. Vue, Svelte, Solid and React entries in the package itself (`vlist/vue`, `vlist/svelte`, `vlist/solid`, `vlist/react`), feature-first and tree-shaken like the vanilla builder; the separate adapter packages are deprecated. See the [changelog](https://github.com/floor/vlist/blob/main/CHANGELOG.md).
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/vlist)
|
|
8
8
|
[](https://bundlephobia.com/package/vlist)
|
|
@@ -135,13 +135,13 @@ The touch-only `.vlist-item--touch-sort` class suppresses selection and callouts
|
|
|
135
135
|
| `vlist/synthetic` (deprecated) | 34.1 KB | 13.0 KB |
|
|
136
136
|
| `vlist/native` (alias) | 27.2 KB | 10.4 KB |
|
|
137
137
|
| `a11y()` | 32.6 KB | 12.4 KB |
|
|
138
|
-
| `selection()` | 37.4 KB | 13.
|
|
138
|
+
| `selection()` | 37.4 KB | 13.9 KB |
|
|
139
139
|
| `data()` | 40.8 KB | 15.2 KB |
|
|
140
140
|
| `scrollbar()` | 35.3 KB | 13.3 KB |
|
|
141
|
-
| `sortable()` | 39.2 KB | 14.
|
|
141
|
+
| `sortable()` | 39.2 KB | 14.0 KB |
|
|
142
142
|
| `groups()` | 43.7 KB | 16.1 KB |
|
|
143
143
|
| `page()` | 30.3 KB | 11.5 KB |
|
|
144
|
-
| `snapshots()` | 30.
|
|
144
|
+
| `snapshots()` | 30.8 KB | 11.7 KB |
|
|
145
145
|
| `transition()` | 33.9 KB | 12.4 KB |
|
|
146
146
|
| `autosize()` | 32.1 KB | 12.2 KB |
|
|
147
147
|
| `grid()` | 34.9 KB | 13.1 KB |
|
|
@@ -160,7 +160,7 @@ The touch-only `.vlist-item--touch-sort` class suppresses selection and callouts
|
|
|
160
160
|
| `vlist/react` `useVList` | 27.6 KB | 10.6 KB |
|
|
161
161
|
| `vlist/react` + `grid()` | 35.3 KB | 13.3 KB |
|
|
162
162
|
|
|
163
|
-
Sizes are tree-shaken totals from `bun run size`, not additive plugin costs. Plugin rows include the native default factory plus that plugin; framework rows add the entry, with the framework itself external. The base is **10,
|
|
163
|
+
Sizes are tree-shaken totals from `bun run size`, not additive plugin costs. Plugin rows include the native default factory plus that plugin; framework rows add the entry, with the framework itself external. The base is **10,678 bytes gzipped**, within the 10.6 KB budget (10,844 bytes). `bun run size` fails if a scenario fails to build, an unused plugin leaks into a bundle, or any published size exceeds its gzip budget. Synthetic input is **13,347 bytes** before plugins; with `scroll.mode`, a `vlist` list downloads the driver and its scrollbar as `synthetic-driver.js` (6.2 KB gzipped) only when it goes synthetic. The alias row measures the same source factory; the distributed alias re-exports it without duplicating the implementation.
|
|
164
164
|
|
|
165
165
|
Bundlephobia's badge measures the package's root entry, which re-exports every plugin, minified and gzipped as one bundle. With a tree-shaking bundler, an app that imports named exports from `vlist` bundles the base (**10.4 KB gzipped**) and the features it uses; the table's rows are each a combined size, not amounts to add up.
|
|
166
166
|
|
package/dist/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export type { DataPluginConfig } from "./plugins/data";
|
|
|
32
32
|
export { groups } from "./plugins/groups";
|
|
33
33
|
export type { GroupsPluginConfig } from "./plugins/groups";
|
|
34
34
|
export { table, columnPin, columnReorder } from "./plugins/table";
|
|
35
|
-
export type { TablePluginConfig, TableSort, TableFeature, TableFeatureMethods, ColumnPinConfig, ColumnPinEvent, ColumnReorderConfig, ColumnReorderEvent } from "./plugins/table";
|
|
35
|
+
export type { TablePluginConfig, TableColumn, TableSort, TableFeature, TableFeatureMethods, ColumnPinConfig, ColumnPinEvent, ColumnReorderConfig, ColumnReorderEvent } from "./plugins/table";
|
|
36
36
|
export { sortable } from "./plugins/sortable";
|
|
37
37
|
export type { SortablePluginConfig } from "./plugins/sortable";
|
|
38
38
|
export { tree } from "./plugins/tree";
|