virtua 0.49.2 → 0.50.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.
Files changed (59) hide show
  1. package/README.md +39 -5
  2. package/lib/angular/ListItem.d.ts +1 -0
  3. package/lib/angular/VList.d.ts +85 -0
  4. package/lib/angular/Virtualizer.d.ts +141 -0
  5. package/lib/angular/WindowVirtualizer.d.ts +103 -0
  6. package/lib/angular/index.d.ts +6 -0
  7. package/lib/angular/index.js +1148 -0
  8. package/lib/angular/index.js.map +1 -0
  9. package/lib/angular/utils.d.ts +19 -0
  10. package/lib/core/index.cjs +237 -233
  11. package/lib/core/index.cjs.map +1 -1
  12. package/lib/core/index.d.ts +6 -6
  13. package/lib/core/index.js +272 -272
  14. package/lib/core/index.js.map +1 -1
  15. package/lib/index.cjs +529 -499
  16. package/lib/index.cjs.map +1 -1
  17. package/lib/index.d.ts +2 -2
  18. package/lib/index.js +321 -315
  19. package/lib/index.js.map +1 -1
  20. package/lib/react/VGrid.d.ts +2 -2
  21. package/lib/react/VList.d.ts +3 -3
  22. package/lib/react/Virtualizer.d.ts +3 -3
  23. package/lib/react/WindowVirtualizer.d.ts +3 -3
  24. package/lib/react/index.d.ts +9 -9
  25. package/lib/react/types.d.ts +1 -1
  26. package/lib/solid/VList.d.ts +3 -6
  27. package/lib/solid/Virtualizer.d.ts +2 -5
  28. package/lib/solid/WindowVirtualizer.d.ts +2 -5
  29. package/lib/solid/index.cjs +331 -323
  30. package/lib/solid/index.cjs.map +1 -1
  31. package/lib/solid/index.d.ts +7 -7
  32. package/lib/solid/index.js +249 -257
  33. package/lib/solid/index.js.map +1 -1
  34. package/lib/solid/index.jsx +1224 -1566
  35. package/lib/solid/index.jsx.map +1 -1
  36. package/lib/solid/types.d.ts +1 -1
  37. package/lib/svelte/ListItem.svelte +12 -2
  38. package/lib/svelte/VList.svelte +2 -0
  39. package/lib/svelte/VList.type.d.ts +3 -3
  40. package/lib/svelte/Virtualizer.svelte +2 -0
  41. package/lib/svelte/Virtualizer.type.d.ts +8 -3
  42. package/lib/svelte/WindowVirtualizer.type.d.ts +2 -2
  43. package/lib/svelte/index.d.ts +6 -6
  44. package/lib/svelte/index.js +4 -4
  45. package/lib/svelte/types.d.ts +1 -1
  46. package/lib/svelte/utils.d.ts +7 -0
  47. package/lib/svelte/utils.js +11 -11
  48. package/lib/svelte/utils.js.map +1 -1
  49. package/lib/vue/VList.d.ts +2 -3
  50. package/lib/vue/Virtualizer.d.ts +3 -4
  51. package/lib/vue/WindowVirtualizer.d.ts +2 -3
  52. package/lib/vue/index.cjs +327 -317
  53. package/lib/vue/index.cjs.map +1 -1
  54. package/lib/vue/index.d.ts +6 -6
  55. package/lib/vue/index.js +284 -284
  56. package/lib/vue/index.js.map +1 -1
  57. package/lib/vue/utils.d.ts +1 -1
  58. package/package.json +40 -17
  59. package/lib/svelte/index.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import React, { type JSX, type CSSProperties, type ReactNode, type Ref } from "react";
2
- import { type ViewportComponentAttributes } from "./types.js";
1
+ import { default as React, JSX, CSSProperties, ReactNode, Ref } from 'react';
2
+ import { ViewportComponentAttributes } from './types.js';
3
3
  /**
4
4
  * Props of customized cell component for {@link VGrid}.
5
5
  */
@@ -1,6 +1,6 @@
1
- import { type ReactElement, type Ref } from "react";
2
- import { type ViewportComponentAttributes } from "./types.js";
3
- import { type VirtualizerHandle, type VirtualizerProps } from "./Virtualizer.js";
1
+ import { ReactElement, Ref } from 'react';
2
+ import { ViewportComponentAttributes } from './types.js';
3
+ import { VirtualizerHandle, VirtualizerProps } from './Virtualizer.js';
4
4
  /**
5
5
  * Methods of {@link VList}.
6
6
  */
@@ -1,6 +1,6 @@
1
- import { type JSX, type ReactElement, type ReactNode, type RefObject, type Ref } from "react";
2
- import { type CacheSnapshot, type ScrollToIndexOpts } from "../core/index.js";
3
- import { type CustomContainerComponent, type CustomItemComponent } from "./types.js";
1
+ import { JSX, ReactElement, ReactNode, RefObject, Ref } from 'react';
2
+ import { CacheSnapshot, ScrollToIndexOpts } from '../core/index.js';
3
+ import { CustomContainerComponent, CustomItemComponent } from './types.js';
4
4
  /**
5
5
  * Methods of {@link Virtualizer}.
6
6
  */
@@ -1,6 +1,6 @@
1
- import { type JSX, type ReactElement, type ReactNode, type Ref } from "react";
2
- import { type CacheSnapshot, type ScrollToIndexOpts } from "../core/index.js";
3
- import { type CustomContainerComponent, type CustomItemComponent } from "./types.js";
1
+ import { JSX, ReactElement, ReactNode, Ref } from 'react';
2
+ import { CacheSnapshot, ScrollToIndexOpts } from '../core/index.js';
3
+ import { CustomContainerComponent, CustomItemComponent } from './types.js';
4
4
  /**
5
5
  * Methods of {@link WindowVirtualizer}.
6
6
  */
@@ -1,9 +1,9 @@
1
- export { VList } from "./VList.js";
2
- export type { VListProps, VListHandle } from "./VList.js";
3
- export { Virtualizer } from "./Virtualizer.js";
4
- export type { VirtualizerProps, VirtualizerHandle } from "./Virtualizer.js";
5
- export { WindowVirtualizer } from "./WindowVirtualizer.js";
6
- export type { WindowVirtualizerProps, WindowVirtualizerHandle, } from "./WindowVirtualizer.js";
7
- export { VGrid as experimental_VGrid } from "./VGrid.js";
8
- export type { VGridItemResize, VGridProps, VGridHandle, CustomCellComponent, CustomCellComponentProps, } from "./VGrid.js";
9
- export type * from "./types.js";
1
+ export { VList } from './VList.js';
2
+ export type { VListProps, VListHandle } from './VList.js';
3
+ export { Virtualizer } from './Virtualizer.js';
4
+ export type { VirtualizerProps, VirtualizerHandle } from './Virtualizer.js';
5
+ export { WindowVirtualizer } from './WindowVirtualizer.js';
6
+ export type { WindowVirtualizerProps, WindowVirtualizerHandle, } from './WindowVirtualizer.js';
7
+ export { VGrid as experimental_VGrid } from './VGrid.js';
8
+ export type { VGridItemResize, VGridProps, VGridHandle, CustomCellComponent, CustomCellComponentProps, } from './VGrid.js';
9
+ export type * from './types.js';
@@ -1,4 +1,4 @@
1
- import type { ComponentType, CSSProperties, LegacyRef, ReactNode } from "react";
1
+ import { ComponentType, CSSProperties, LegacyRef, ReactNode } from 'react';
2
2
  export type ViewportComponentAttributes = Pick<React.HTMLAttributes<HTMLElement>, "className" | "style" | "id" | "role" | "tabIndex" | "onKeyDown" | "onWheel"> & React.AriaAttributes;
3
3
  export interface CustomContainerComponentProps {
4
4
  style: CSSProperties;
@@ -1,9 +1,6 @@
1
- /**
2
- * @jsxImportSource solid-js
3
- */
4
- import { type JSX } from "solid-js";
5
- import { type ViewportComponentAttributes } from "./types.js";
6
- import { type VirtualizerHandle, type VirtualizerProps } from "./Virtualizer.js";
1
+ import { JSX } from 'solid-js';
2
+ import { ViewportComponentAttributes } from './types.js';
3
+ import { VirtualizerHandle, VirtualizerProps } from './Virtualizer.js';
7
4
  /**
8
5
  * Methods of {@link VList}.
9
6
  */
@@ -1,8 +1,5 @@
1
- /**
2
- * @jsxImportSource solid-js
3
- */
4
- import { type JSX, type ValidComponent, type Accessor } from "solid-js";
5
- import { type ScrollToIndexOpts, type CacheSnapshot } from "../core/index.js";
1
+ import { JSX, ValidComponent, Accessor } from 'solid-js';
2
+ import { ScrollToIndexOpts, CacheSnapshot } from '../core/index.js';
6
3
  /**
7
4
  * Methods of {@link Virtualizer}.
8
5
  */
@@ -1,8 +1,5 @@
1
- /**
2
- * @jsxImportSource solid-js
3
- */
4
- import { type JSX, type Accessor } from "solid-js";
5
- import { type ScrollToIndexOpts, type CacheSnapshot } from "../core/index.js";
1
+ import { JSX, Accessor } from 'solid-js';
2
+ import { ScrollToIndexOpts, CacheSnapshot } from '../core/index.js';
6
3
  /**
7
4
  * Methods of {@link WindowVirtualizer}.
8
5
  */