vlist 2.7.2 → 2.8.1
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 +43 -5
- package/README.md +33 -4
- package/dist/config.d.ts +11 -2
- package/dist/config.js +1 -1
- package/dist/core/types.d.ts +4 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/plugins/autosize/plugin.d.ts +1 -1
- package/dist/plugins/scale/plugin.d.ts +2 -0
- package/dist/size.json +1 -1
- package/dist/types.d.ts +20 -7
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Because a pinned item cannot grow, content that changes size after the
|
|
9
9
|
* measurement (an image that loads or fails, a font swap, lazy content)
|
|
10
10
|
* needs a fresh measurement. `load` and `error` events from descendants
|
|
11
|
-
* trigger one automatically.
|
|
11
|
+
* trigger one automatically; `list.remeasure(index?)` does it on demand.
|
|
12
12
|
*
|
|
13
13
|
* Priority 5 — runs before grid/masonry (10) so the measured cache
|
|
14
14
|
* is in place before layout plugins consume it.
|
|
@@ -4,4 +4,6 @@ export interface ScalePluginConfig {
|
|
|
4
4
|
force?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare function scale<T extends VListItem = VListItem>(_config?: ScalePluginConfig): VListPlugin<T>;
|
|
7
|
+
/** Internal: the config entry installs the compatibility stub without warning. */
|
|
8
|
+
export declare function createScalePlugin<T extends VListItem = VListItem>(warn: boolean): VListPlugin<T>;
|
|
7
9
|
//# sourceMappingURL=plugin.d.ts.map
|
package/dist/size.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"base":{"minified":"27.8","gzipped":"9.9","minBytes":28421,"gzBytes":10106},"synthetic":{"minified":"35.0","gzipped":"12.5","minBytes":35888,"gzBytes":12764},"a11y":{"minified":"31.0","gzipped":"11.1","minBytes":31753,"gzBytes":11336},"selection":{"minified":"37.1","gzipped":"12.7","minBytes":38030,"gzBytes":12989},"data":{"minified":"41.4","gzipped":"14.7","minBytes":42378,"gzBytes":15034},"scrollbar":{"minified":"34.8","gzipped":"11.9","minBytes":35686,"gzBytes":12164},"sortable":{"minified":"37.2","gzipped":"12.9","minBytes":38099,"gzBytes":13194},"groups":{"minified":"43.7","gzipped":"15.2","minBytes":44759,"gzBytes":15564},"page":{"minified":"30.2","gzipped":"10.6","minBytes":30907,"gzBytes":10881},"snapshots":{"minified":"31.0","gzipped":"11.0","minBytes":31775,"gzBytes":11288},"transition":{"minified":"34.4","gzipped":"11.8","minBytes":35208,"gzBytes":12123},"autosize":{"minified":"30.
|
|
1
|
+
{"base":{"minified":"27.8","gzipped":"9.9","minBytes":28421,"gzBytes":10106},"synthetic":{"minified":"35.0","gzipped":"12.5","minBytes":35888,"gzBytes":12764},"a11y":{"minified":"31.0","gzipped":"11.1","minBytes":31753,"gzBytes":11336},"selection":{"minified":"37.1","gzipped":"12.7","minBytes":38030,"gzBytes":12989},"data":{"minified":"41.4","gzipped":"14.7","minBytes":42378,"gzBytes":15034},"scrollbar":{"minified":"34.8","gzipped":"11.9","minBytes":35686,"gzBytes":12164},"sortable":{"minified":"37.2","gzipped":"12.9","minBytes":38099,"gzBytes":13194},"groups":{"minified":"43.7","gzipped":"15.2","minBytes":44759,"gzBytes":15564},"page":{"minified":"30.2","gzipped":"10.6","minBytes":30907,"gzBytes":10881},"snapshots":{"minified":"31.0","gzipped":"11.0","minBytes":31775,"gzBytes":11288},"transition":{"minified":"34.4","gzipped":"11.8","minBytes":35208,"gzBytes":12123},"autosize":{"minified":"30.8","gzipped":"10.9","minBytes":31529,"gzBytes":11174},"grid":{"minified":"34.8","gzipped":"12.3","minBytes":35665,"gzBytes":12628},"table":{"minified":"46.1","gzipped":"15.7","minBytes":47219,"gzBytes":16074},"masonry":{"minified":"39.0","gzipped":"14.0","minBytes":39947,"gzBytes":14298},"tree":{"minified":"43.0","gzipped":"14.9","minBytes":44065,"gzBytes":15269},"search":{"minified":"36.9","gzipped":"13.0","minBytes":37743,"gzBytes":13361},"carousel":{"minified":"37.6","gzipped":"13.4","minBytes":38503,"gzBytes":13746}}
|
package/dist/types.d.ts
CHANGED
|
@@ -292,14 +292,19 @@ export interface ScrollConfig {
|
|
|
292
292
|
*/
|
|
293
293
|
wrap?: boolean;
|
|
294
294
|
/**
|
|
295
|
-
* Scrollbar
|
|
296
|
-
*
|
|
297
|
-
*
|
|
298
|
-
* - `
|
|
299
|
-
*
|
|
300
|
-
*
|
|
295
|
+
* Scrollbar selection depends on the entry:
|
|
296
|
+
* - Core reads only `'none'`, which hides the native scrollbar via CSS.
|
|
297
|
+
* Omission, `'native'` and options objects do not install a custom scrollbar.
|
|
298
|
+
* - `vlist/config` installs `scrollbar()` for omission or an options object;
|
|
299
|
+
* `'native'` and `'none'` skip that plugin. An explicit `scrollbar()` plugin
|
|
300
|
+
* controls its own native-scrollbar hiding independently.
|
|
301
301
|
*/
|
|
302
|
-
scrollbar?:
|
|
302
|
+
scrollbar?:
|
|
303
|
+
/** Browser scrollbar. Stays available on the native default in 3.0; the
|
|
304
|
+
* `vlist/synthetic` entry has no browser scrollbar and uses `scrollbar()`. */
|
|
305
|
+
"native"
|
|
306
|
+
/** Hide the browser scrollbar. Stays available on the native default in 3.0. */
|
|
307
|
+
| "none" | ScrollbarOptions;
|
|
303
308
|
/** External scroll element for window scrolling */
|
|
304
309
|
element?: Window;
|
|
305
310
|
/** Scroll idle detection timeout in ms (default: 150) */
|
|
@@ -310,6 +315,11 @@ export interface ScrollConfig {
|
|
|
310
315
|
* `"bounded"` sizes the content to a viewport-multiple runway and rebases a
|
|
311
316
|
* logical origin near the edges, supporting unbounded item counts without
|
|
312
317
|
* compressing the scroll space.
|
|
318
|
+
*
|
|
319
|
+
* @deprecated Removed in 3.0. Native scrolling stays the default of `vlist`; for
|
|
320
|
+
* lists beyond the browser's element size limit, import `createVList` from
|
|
321
|
+
* `vlist/synthetic` instead of using bounded mode. Bounded remains supported in 2.x.
|
|
322
|
+
* See https://vlist.io/docs/migration-v3
|
|
313
323
|
*/
|
|
314
324
|
mode?: "native" | "bounded";
|
|
315
325
|
/**
|
|
@@ -319,6 +329,9 @@ export interface ScrollConfig {
|
|
|
319
329
|
* more native-scroll headroom and less frequent rebasing, at the cost of a
|
|
320
330
|
* bigger content element. Clamped up to a minimum of 1.5 so native scroll and
|
|
321
331
|
* touch momentum always have some room.
|
|
332
|
+
*
|
|
333
|
+
* @deprecated Removed with bounded mode in 3.0.
|
|
334
|
+
* See https://vlist.io/docs/migration-v3
|
|
322
335
|
*/
|
|
323
336
|
runway?: number;
|
|
324
337
|
}
|