From 358f535f09113d2c71fbd98894e9b733d0986bd1 Mon Sep 17 00:00:00 2001 From: inokawa <48897392+inokawa@users.noreply.github.com> Date: Fri, 27 Oct 2023 22:19:08 +0900 Subject: [PATCH] 0.15.5 --- docs/API.md | 14 +++---- docs/interfaces/CacheSnapshot.md | 2 +- docs/interfaces/CustomCellComponentProps.md | 4 +- docs/interfaces/CustomItemComponentProps.md | 4 +- .../CustomViewportComponentProps.md | 10 ++--- docs/interfaces/ScrollToIndexOpts.md | 5 ++- docs/interfaces/VGridHandle.md | 12 +++--- docs/interfaces/VGridProps.md | 33 +++++++++++----- docs/interfaces/VListHandle.md | 14 +++---- docs/interfaces/VListProps.md | 39 +++++++++++++------ docs/interfaces/WVListHandle.md | 2 +- docs/interfaces/WVListProps.md | 33 +++++++++++----- package-lock.json | 4 +- package.json | 2 +- 14 files changed, 112 insertions(+), 66 deletions(-) diff --git a/docs/API.md b/docs/API.md index 21b29c8ee..9e4c581cd 100644 --- a/docs/API.md +++ b/docs/API.md @@ -100,11 +100,11 @@ node_modules/@types/react/index.d.ts:395 ### ScrollToIndexAlign -Ƭ **ScrollToIndexAlign**: ``"start"`` \| ``"center"`` \| ``"end"`` +Ƭ **ScrollToIndexAlign**: ``"start"`` \| ``"center"`` \| ``"end"`` \| ``"nearest"`` #### Defined in -[src/core/types.ts:19](https://github.com/inokawa/virtua/blob/87b45b35/src/core/types.ts#L19) +[src/core/types.ts:19](https://github.com/inokawa/virtua/blob/23d719c8/src/core/types.ts#L19) ___ @@ -114,17 +114,17 @@ ___ #### Defined in -[src/react/VGrid.tsx:49](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L49) +[src/react/VGrid.tsx:49](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L49) ___ ### ViewportComponentAttributes -Ƭ **ViewportComponentAttributes**: `Pick`<`React.HTMLAttributes`<`HTMLElement`\>, ``"className"`` \| ``"style"`` \| ``"id"`` \| ``"role"`` \| ``"tabIndex"``\> & `React.AriaAttributes` +Ƭ **ViewportComponentAttributes**: `Pick`<`React.HTMLAttributes`<`HTMLElement`\>, ``"className"`` \| ``"style"`` \| ``"id"`` \| ``"role"`` \| ``"tabIndex"`` \| ``"onKeyDown"``\> & `React.AriaAttributes` #### Defined in -[src/react/Viewport.tsx:9](https://github.com/inokawa/virtua/blob/87b45b35/src/react/Viewport.tsx#L9) +[src/react/Viewport.tsx:9](https://github.com/inokawa/virtua/blob/23d719c8/src/react/Viewport.tsx#L9) ___ @@ -134,7 +134,7 @@ ___ #### Defined in -[src/react/Viewport.tsx:63](https://github.com/inokawa/virtua/blob/87b45b35/src/react/Viewport.tsx#L63) +[src/react/Viewport.tsx:63](https://github.com/inokawa/virtua/blob/23d719c8/src/react/Viewport.tsx#L63) ___ @@ -144,4 +144,4 @@ ___ #### Defined in -[src/react/ListItem.tsx:22](https://github.com/inokawa/virtua/blob/87b45b35/src/react/ListItem.tsx#L22) +[src/react/ListItem.tsx:22](https://github.com/inokawa/virtua/blob/23d719c8/src/react/ListItem.tsx#L22) diff --git a/docs/interfaces/CacheSnapshot.md b/docs/interfaces/CacheSnapshot.md index 15dd5ec98..68c2db554 100644 --- a/docs/interfaces/CacheSnapshot.md +++ b/docs/interfaces/CacheSnapshot.md @@ -18,4 +18,4 @@ Serializable cache snapshot. #### Defined in -[src/core/types.ts:16](https://github.com/inokawa/virtua/blob/87b45b35/src/core/types.ts#L16) +[src/core/types.ts:16](https://github.com/inokawa/virtua/blob/23d719c8/src/core/types.ts#L16) diff --git a/docs/interfaces/CustomCellComponentProps.md b/docs/interfaces/CustomCellComponentProps.md index 7ed76e1a1..a53b41201 100644 --- a/docs/interfaces/CustomCellComponentProps.md +++ b/docs/interfaces/CustomCellComponentProps.md @@ -17,7 +17,7 @@ Props of customized cell component for [VGrid](../API.md#vgrid). #### Defined in -[src/react/VGrid.tsx:45](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L45) +[src/react/VGrid.tsx:45](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L45) ___ @@ -27,4 +27,4 @@ ___ #### Defined in -[src/react/VGrid.tsx:46](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L46) +[src/react/VGrid.tsx:46](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L46) diff --git a/docs/interfaces/CustomItemComponentProps.md b/docs/interfaces/CustomItemComponentProps.md index 800d99352..8b8cc1f3f 100644 --- a/docs/interfaces/CustomItemComponentProps.md +++ b/docs/interfaces/CustomItemComponentProps.md @@ -17,7 +17,7 @@ Props of customized item component for [VList](../API.md#vlist). #### Defined in -[src/react/ListItem.tsx:18](https://github.com/inokawa/virtua/blob/87b45b35/src/react/ListItem.tsx#L18) +[src/react/ListItem.tsx:18](https://github.com/inokawa/virtua/blob/23d719c8/src/react/ListItem.tsx#L18) ___ @@ -27,4 +27,4 @@ ___ #### Defined in -[src/react/ListItem.tsx:19](https://github.com/inokawa/virtua/blob/87b45b35/src/react/ListItem.tsx#L19) +[src/react/ListItem.tsx:19](https://github.com/inokawa/virtua/blob/23d719c8/src/react/ListItem.tsx#L19) diff --git a/docs/interfaces/CustomViewportComponentProps.md b/docs/interfaces/CustomViewportComponentProps.md index 86a57cff8..f0ea48837 100644 --- a/docs/interfaces/CustomViewportComponentProps.md +++ b/docs/interfaces/CustomViewportComponentProps.md @@ -22,7 +22,7 @@ Renderable item elements. #### Defined in -[src/react/Viewport.tsx:22](https://github.com/inokawa/virtua/blob/87b45b35/src/react/Viewport.tsx#L22) +[src/react/Viewport.tsx:22](https://github.com/inokawa/virtua/blob/23d719c8/src/react/Viewport.tsx#L22) ___ @@ -34,7 +34,7 @@ Attributes that should be passed to the scrollable element. #### Defined in -[src/react/Viewport.tsx:26](https://github.com/inokawa/virtua/blob/87b45b35/src/react/Viewport.tsx#L26) +[src/react/Viewport.tsx:26](https://github.com/inokawa/virtua/blob/23d719c8/src/react/Viewport.tsx#L26) ___ @@ -46,7 +46,7 @@ Total height of items. It's undefined if component is not vertically scrollable. #### Defined in -[src/react/Viewport.tsx:30](https://github.com/inokawa/virtua/blob/87b45b35/src/react/Viewport.tsx#L30) +[src/react/Viewport.tsx:30](https://github.com/inokawa/virtua/blob/23d719c8/src/react/Viewport.tsx#L30) ___ @@ -58,7 +58,7 @@ Total width of items. It's undefined if component is not horizontally scrollable #### Defined in -[src/react/Viewport.tsx:34](https://github.com/inokawa/virtua/blob/87b45b35/src/react/Viewport.tsx#L34) +[src/react/Viewport.tsx:34](https://github.com/inokawa/virtua/blob/23d719c8/src/react/Viewport.tsx#L34) ___ @@ -70,4 +70,4 @@ Currently component is scrolling or not. #### Defined in -[src/react/Viewport.tsx:38](https://github.com/inokawa/virtua/blob/87b45b35/src/react/Viewport.tsx#L38) +[src/react/Viewport.tsx:38](https://github.com/inokawa/virtua/blob/23d719c8/src/react/Viewport.tsx#L38) diff --git a/docs/interfaces/ScrollToIndexOpts.md b/docs/interfaces/ScrollToIndexOpts.md index 93434d4ca..51a70b448 100644 --- a/docs/interfaces/ScrollToIndexOpts.md +++ b/docs/interfaces/ScrollToIndexOpts.md @@ -18,10 +18,11 @@ Alignment of item. - `start`(default): Align the item to the start of the list. - `center`: Align the item to the center of the list. - `end`: Align the item to the end of the list. +- `nearest`: If the item is already completely visible, don't scroll. Otherwise scroll until it becomes visible. That is similar behavior to [`nearest` option of scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView). #### Defined in -[src/core/types.ts:29](https://github.com/inokawa/virtua/blob/87b45b35/src/core/types.ts#L29) +[src/core/types.ts:30](https://github.com/inokawa/virtua/blob/23d719c8/src/core/types.ts#L30) ___ @@ -35,4 +36,4 @@ If true, scrolling animates smoothly with [`behavior: smooth` of scrollTo](https #### Defined in -[src/core/types.ts:35](https://github.com/inokawa/virtua/blob/87b45b35/src/core/types.ts#L35) +[src/core/types.ts:36](https://github.com/inokawa/virtua/blob/23d719c8/src/core/types.ts#L36) diff --git a/docs/interfaces/VGridHandle.md b/docs/interfaces/VGridHandle.md index d7fa67faa..3e17c37c6 100644 --- a/docs/interfaces/VGridHandle.md +++ b/docs/interfaces/VGridHandle.md @@ -37,7 +37,7 @@ Scroll to the item specified by index. #### Defined in -[src/react/VGrid.tsx:136](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L136) +[src/react/VGrid.tsx:136](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L136) ___ @@ -60,7 +60,7 @@ Scroll to the given offset. #### Defined in -[src/react/VGrid.tsx:142](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L142) +[src/react/VGrid.tsx:142](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L142) ___ @@ -83,7 +83,7 @@ Scroll by the given offset. #### Defined in -[src/react/VGrid.tsx:148](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L148) +[src/react/VGrid.tsx:148](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L148) ## Properties @@ -95,7 +95,7 @@ Get current scrollTop or scrollLeft. #### Defined in -[src/react/VGrid.tsx:122](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L122) +[src/react/VGrid.tsx:122](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L122) ___ @@ -107,7 +107,7 @@ Get current scrollHeight or scrollWidth. #### Defined in -[src/react/VGrid.tsx:126](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L126) +[src/react/VGrid.tsx:126](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L126) ___ @@ -119,4 +119,4 @@ Get current offsetHeight or offsetWidth. #### Defined in -[src/react/VGrid.tsx:130](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L130) +[src/react/VGrid.tsx:130](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L130) diff --git a/docs/interfaces/VGridProps.md b/docs/interfaces/VGridProps.md index 8ecb63f90..f8ca10699 100644 --- a/docs/interfaces/VGridProps.md +++ b/docs/interfaces/VGridProps.md @@ -26,6 +26,7 @@ Props of [VGrid](../API.md#vgrid). - [id](VGridProps.md#id) - [role](VGridProps.md#role) - [tabIndex](VGridProps.md#tabindex) +- [onKeyDown](VGridProps.md#onkeydown) - [aria-activedescendant](VGridProps.md#aria-activedescendant) - [aria-atomic](VGridProps.md#aria-atomic) - [aria-autocomplete](VGridProps.md#aria-autocomplete) @@ -106,7 +107,7 @@ A function to create elements rendered by this component. #### Defined in -[src/react/VGrid.tsx:158](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L158) +[src/react/VGrid.tsx:158](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L158) ___ @@ -118,7 +119,7 @@ Total row length of grid. #### Defined in -[src/react/VGrid.tsx:171](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L171) +[src/react/VGrid.tsx:171](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L171) ___ @@ -130,7 +131,7 @@ Total column length of grid. #### Defined in -[src/react/VGrid.tsx:175](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L175) +[src/react/VGrid.tsx:175](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L175) ___ @@ -146,7 +147,7 @@ Cell height hint for unmeasured items. It's recommended to specify this prop if #### Defined in -[src/react/VGrid.tsx:180](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L180) +[src/react/VGrid.tsx:180](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L180) ___ @@ -162,7 +163,7 @@ Cell width hint for unmeasured items. It's recommended to specify this prop if i #### Defined in -[src/react/VGrid.tsx:185](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L185) +[src/react/VGrid.tsx:185](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L185) ___ @@ -178,7 +179,7 @@ Number of items to render above/below the visible bounds of the grid. You can in #### Defined in -[src/react/VGrid.tsx:190](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L190) +[src/react/VGrid.tsx:190](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L190) ___ @@ -190,7 +191,7 @@ If set, the specified amount of rows will be mounted in the initial rendering re #### Defined in -[src/react/VGrid.tsx:194](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L194) +[src/react/VGrid.tsx:194](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L194) ___ @@ -202,7 +203,7 @@ If set, the specified amount of cols will be mounted in the initial rendering re #### Defined in -[src/react/VGrid.tsx:198](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L198) +[src/react/VGrid.tsx:198](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L198) ___ @@ -221,7 +222,7 @@ Customized components for advanced usage. #### Defined in -[src/react/VGrid.tsx:202](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VGrid.tsx#L202) +[src/react/VGrid.tsx:202](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VGrid.tsx#L202) ___ @@ -295,6 +296,20 @@ node_modules/@types/react/index.d.ts:1967 ___ +### onKeyDown + +• `Optional` **onKeyDown**: `KeyboardEventHandler`<`HTMLElement`\> + +#### Inherited from + +ViewportComponentAttributes.onKeyDown + +#### Defined in + +node_modules/@types/react/index.d.ts:1484 + +___ + ### aria-activedescendant • `Optional` **aria-activedescendant**: `string` diff --git a/docs/interfaces/VListHandle.md b/docs/interfaces/VListHandle.md index a0450cd03..4ae834965 100644 --- a/docs/interfaces/VListHandle.md +++ b/docs/interfaces/VListHandle.md @@ -38,7 +38,7 @@ Scroll to the item specified by index. #### Defined in -[src/react/VList.tsx:73](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L73) +[src/react/VList.tsx:73](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L73) ___ @@ -60,7 +60,7 @@ Scroll to the given offset. #### Defined in -[src/react/VList.tsx:78](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L78) +[src/react/VList.tsx:78](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L78) ___ @@ -82,7 +82,7 @@ Scroll by the given offset. #### Defined in -[src/react/VList.tsx:83](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L83) +[src/react/VList.tsx:83](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L83) ## Properties @@ -94,7 +94,7 @@ Get current [CacheSnapshot](CacheSnapshot.md). #### Defined in -[src/react/VList.tsx:55](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L55) +[src/react/VList.tsx:55](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L55) ___ @@ -106,7 +106,7 @@ Get current scrollTop or scrollLeft. #### Defined in -[src/react/VList.tsx:59](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L59) +[src/react/VList.tsx:59](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L59) ___ @@ -118,7 +118,7 @@ Get current scrollHeight or scrollWidth. #### Defined in -[src/react/VList.tsx:63](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L63) +[src/react/VList.tsx:63](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L63) ___ @@ -130,4 +130,4 @@ Get current offsetHeight or offsetWidth. #### Defined in -[src/react/VList.tsx:67](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L67) +[src/react/VList.tsx:67](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L67) diff --git a/docs/interfaces/VListProps.md b/docs/interfaces/VListProps.md index 49e306d0d..005661956 100644 --- a/docs/interfaces/VListProps.md +++ b/docs/interfaces/VListProps.md @@ -29,6 +29,7 @@ Props of [VList](../API.md#vlist). - [id](VListProps.md#id) - [role](VListProps.md#role) - [tabIndex](VListProps.md#tabindex) +- [onKeyDown](VListProps.md#onkeydown) - [aria-activedescendant](VListProps.md#aria-activedescendant) - [aria-atomic](VListProps.md#aria-atomic) - [aria-autocomplete](VListProps.md#aria-autocomplete) @@ -93,7 +94,7 @@ Elements rendered by this component. #### Defined in -[src/react/VList.tsx:93](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L93) +[src/react/VList.tsx:93](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L93) ___ @@ -109,7 +110,7 @@ Number of items to render above/below the visible bounds of the list. You can in #### Defined in -[src/react/VList.tsx:98](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L98) +[src/react/VList.tsx:98](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L98) ___ @@ -124,7 +125,7 @@ Item size hint for unmeasured items. It will help to reduce scroll jump when ite #### Defined in -[src/react/VList.tsx:105](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L105) +[src/react/VList.tsx:105](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L105) ___ @@ -136,7 +137,7 @@ If set, the specified amount of items will be mounted in the initial rendering r #### Defined in -[src/react/VList.tsx:109](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L109) +[src/react/VList.tsx:109](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L109) ___ @@ -148,7 +149,7 @@ While true is set, scroll position will be maintained from the end not usual sta #### Defined in -[src/react/VList.tsx:113](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L113) +[src/react/VList.tsx:113](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L113) ___ @@ -160,7 +161,7 @@ If true, rendered as a horizontally scrollable list. Otherwise rendered as a ver #### Defined in -[src/react/VList.tsx:117](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L117) +[src/react/VList.tsx:117](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L117) ___ @@ -172,7 +173,7 @@ If true, some styles will be adjusted to be suitable for bottom-to-top scrolling #### Defined in -[src/react/VList.tsx:121](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L121) +[src/react/VList.tsx:121](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L121) ___ @@ -184,7 +185,7 @@ You can restore cache by passing a [CacheSnapshot](CacheSnapshot.md) on mount. T #### Defined in -[src/react/VList.tsx:125](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L125) +[src/react/VList.tsx:125](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L125) ___ @@ -203,7 +204,7 @@ Customized components for advanced usage. #### Defined in -[src/react/VList.tsx:129](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L129) +[src/react/VList.tsx:129](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L129) ___ @@ -229,7 +230,7 @@ Callback invoked whenever scroll offset changes. #### Defined in -[src/react/VList.tsx:145](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L145) +[src/react/VList.tsx:145](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L145) ___ @@ -249,7 +250,7 @@ Callback invoked when scrolling stops. #### Defined in -[src/react/VList.tsx:149](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L149) +[src/react/VList.tsx:149](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L149) ___ @@ -276,7 +277,7 @@ Callback invoked when visible items range changes. #### Defined in -[src/react/VList.tsx:153](https://github.com/inokawa/virtua/blob/87b45b35/src/react/VList.tsx#L153) +[src/react/VList.tsx:153](https://github.com/inokawa/virtua/blob/23d719c8/src/react/VList.tsx#L153) ___ @@ -350,6 +351,20 @@ node_modules/@types/react/index.d.ts:1967 ___ +### onKeyDown + +• `Optional` **onKeyDown**: `KeyboardEventHandler`<`HTMLElement`\> + +#### Inherited from + +ViewportComponentAttributes.onKeyDown + +#### Defined in + +node_modules/@types/react/index.d.ts:1484 + +___ + ### aria-activedescendant • `Optional` **aria-activedescendant**: `string` diff --git a/docs/interfaces/WVListHandle.md b/docs/interfaces/WVListHandle.md index 35589a1ec..ba146b1e2 100644 --- a/docs/interfaces/WVListHandle.md +++ b/docs/interfaces/WVListHandle.md @@ -18,4 +18,4 @@ Get current [CacheSnapshot](CacheSnapshot.md). #### Defined in -[src/react/WVList.tsx:54](https://github.com/inokawa/virtua/blob/87b45b35/src/react/WVList.tsx#L54) +[src/react/WVList.tsx:54](https://github.com/inokawa/virtua/blob/23d719c8/src/react/WVList.tsx#L54) diff --git a/docs/interfaces/WVListProps.md b/docs/interfaces/WVListProps.md index c8c7f1fcc..3d27de4ef 100644 --- a/docs/interfaces/WVListProps.md +++ b/docs/interfaces/WVListProps.md @@ -26,6 +26,7 @@ Props of [WVList](../API.md#wvlist). - [id](WVListProps.md#id) - [role](WVListProps.md#role) - [tabIndex](WVListProps.md#tabindex) +- [onKeyDown](WVListProps.md#onkeydown) - [aria-activedescendant](WVListProps.md#aria-activedescendant) - [aria-atomic](WVListProps.md#aria-atomic) - [aria-autocomplete](WVListProps.md#aria-autocomplete) @@ -90,7 +91,7 @@ Elements rendered by this component. #### Defined in -[src/react/WVList.tsx:64](https://github.com/inokawa/virtua/blob/87b45b35/src/react/WVList.tsx#L64) +[src/react/WVList.tsx:64](https://github.com/inokawa/virtua/blob/23d719c8/src/react/WVList.tsx#L64) ___ @@ -106,7 +107,7 @@ Number of items to render above/below the visible bounds of the list. You can in #### Defined in -[src/react/WVList.tsx:69](https://github.com/inokawa/virtua/blob/87b45b35/src/react/WVList.tsx#L69) +[src/react/WVList.tsx:69](https://github.com/inokawa/virtua/blob/23d719c8/src/react/WVList.tsx#L69) ___ @@ -121,7 +122,7 @@ Item size hint for unmeasured items. It will help to reduce scroll jump when ite #### Defined in -[src/react/WVList.tsx:76](https://github.com/inokawa/virtua/blob/87b45b35/src/react/WVList.tsx#L76) +[src/react/WVList.tsx:76](https://github.com/inokawa/virtua/blob/23d719c8/src/react/WVList.tsx#L76) ___ @@ -133,7 +134,7 @@ If set, the specified amount of items will be mounted in the initial rendering r #### Defined in -[src/react/WVList.tsx:80](https://github.com/inokawa/virtua/blob/87b45b35/src/react/WVList.tsx#L80) +[src/react/WVList.tsx:80](https://github.com/inokawa/virtua/blob/23d719c8/src/react/WVList.tsx#L80) ___ @@ -145,7 +146,7 @@ If true, rendered as a horizontally scrollable list. Otherwise rendered as a ver #### Defined in -[src/react/WVList.tsx:84](https://github.com/inokawa/virtua/blob/87b45b35/src/react/WVList.tsx#L84) +[src/react/WVList.tsx:84](https://github.com/inokawa/virtua/blob/23d719c8/src/react/WVList.tsx#L84) ___ @@ -157,7 +158,7 @@ You can restore cache by passing a [CacheSnapshot](CacheSnapshot.md) on mount. T #### Defined in -[src/react/WVList.tsx:88](https://github.com/inokawa/virtua/blob/87b45b35/src/react/WVList.tsx#L88) +[src/react/WVList.tsx:88](https://github.com/inokawa/virtua/blob/23d719c8/src/react/WVList.tsx#L88) ___ @@ -176,7 +177,7 @@ Customized components for advanced usage. #### Defined in -[src/react/WVList.tsx:92](https://github.com/inokawa/virtua/blob/87b45b35/src/react/WVList.tsx#L92) +[src/react/WVList.tsx:92](https://github.com/inokawa/virtua/blob/23d719c8/src/react/WVList.tsx#L92) ___ @@ -196,7 +197,7 @@ Callback invoked when scrolling stops. #### Defined in -[src/react/WVList.tsx:107](https://github.com/inokawa/virtua/blob/87b45b35/src/react/WVList.tsx#L107) +[src/react/WVList.tsx:107](https://github.com/inokawa/virtua/blob/23d719c8/src/react/WVList.tsx#L107) ___ @@ -223,7 +224,7 @@ Callback invoked when visible items range changes. #### Defined in -[src/react/WVList.tsx:111](https://github.com/inokawa/virtua/blob/87b45b35/src/react/WVList.tsx#L111) +[src/react/WVList.tsx:111](https://github.com/inokawa/virtua/blob/23d719c8/src/react/WVList.tsx#L111) ___ @@ -297,6 +298,20 @@ node_modules/@types/react/index.d.ts:1967 ___ +### onKeyDown + +• `Optional` **onKeyDown**: `KeyboardEventHandler`<`HTMLElement`\> + +#### Inherited from + +ViewportComponentAttributes.onKeyDown + +#### Defined in + +node_modules/@types/react/index.d.ts:1484 + +___ + ### aria-activedescendant • `Optional` **aria-activedescendant**: `string` diff --git a/package-lock.json b/package-lock.json index 4cc4be784..d607ef9aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "virtua", - "version": "0.15.4", + "version": "0.15.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "virtua", - "version": "0.15.4", + "version": "0.15.5", "license": "MIT", "devDependencies": { "@babel/plugin-transform-react-pure-annotations": "7.22.5", diff --git a/package.json b/package.json index dd27d1aaa..907a9b989 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "virtua", - "version": "0.15.4", + "version": "0.15.5", "description": "A zero-config, fast and small (~3kB) virtual list (and grid) component for React.", "main": "lib/index.js", "module": "lib/index.mjs",