@ishibashi0112/spreadsheet-grid 0.34.0 → 0.35.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 CHANGED
@@ -44,7 +44,7 @@ npm install @ishibashi0112/spreadsheet-grid
44
44
  # yarn add @ishibashi0112/spreadsheet-grid
45
45
  ```
46
46
 
47
- Requires **react** and **react-dom** `>= 19` as peer dependencies (install them in your app if you have not already). `@tanstack/react-virtual` is a regular dependency and is installed automatically.
47
+ Requires **react** and **react-dom** `>= 19` as peer dependencies (install them in your app if you have not already). `@tanstack/virtual-core` (the framework-agnostic core of TanStack Virtual) is a regular dependency and is installed automatically; the React adapter is bundled with the grid.
48
48
 
49
49
  ## Styles
50
50
 
@@ -333,7 +333,7 @@ npm install @ishibashi0112/spreadsheet-grid
333
333
  # yarn add @ishibashi0112/spreadsheet-grid
334
334
  ```
335
335
 
336
- peer 依存として **react** / **react-dom** `>= 19` が必要です(未導入なら利用側で入れてください)。`@tanstack/react-virtual` は通常依存として自動的に入ります。
336
+ peer 依存として **react** / **react-dom** `>= 19` が必要です(未導入なら利用側で入れてください)。`@tanstack/virtual-core`(TanStack Virtual のフレームワーク非依存コア)は通常依存として自動的に入ります。React 向けアダプタはグリッド側に同梱しています。
337
337
 
338
338
  ### スタイル
339
339
 
@@ -0,0 +1,5 @@
1
+ import { Virtualizer, type PartialKeys, type VirtualizerOptions } from '@tanstack/virtual-core';
2
+ export type UseVirtualizerCoreOptions<TScrollElement extends Element, TItemElement extends Element> = PartialKeys<VirtualizerOptions<TScrollElement, TItemElement>, 'observeElementRect' | 'observeElementOffset' | 'scrollToFn'> & {
3
+ useFlushSync?: boolean;
4
+ };
5
+ export declare function useVirtualizerCore<TScrollElement extends Element, TItemElement extends Element = Element>(options: UseVirtualizerCoreOptions<TScrollElement, TItemElement>): Virtualizer<TScrollElement, TItemElement>;