Bump react-window from 1.8.11 to 2.1.2
Type: Pull Request
State: Open
Association: Contributor
Comments: 3
(9 months ago)
(9 months ago)
Bumps react-window from 1.8.11 to 2.1.2.
Release notes
Sourced from react-window's releases.
2.1.2
Prevent
ResizeObserverAPI from being called at all if an explicitListheight (orGridwidth and height) is provided.Thanks to
@tnajdekfor the PR!2.1.1
Grids with only one row no longer incorrectly set cell height to 100%.
2.1.0
Improved ARIA support:
- Add better default ARIA attributes for outer
HTMLDivElement- Add optional
ariaAttributesprop to row and cell renderers to simplify better ARIA attributes for user-rendered cells- Remove intermediate
HTMLDivElementfromListandGrid
- This may enable more/better custom CSS styling
- This may also enable adding an optional
childrenprop toListandGridfor e.g. overlays/tooltips- Add optional
tagNameprop; defaults to"div"but can be changed to e.g."ul"// Example of how to use new `ariaAttributes` prop function RowComponent({ ariaAttributes, index, style, ...rest }: RowComponentProps<object>) { return ( <div style={style} {...ariaAttributes}> ... </div> ); }Added optional
childrenprop to better support edge cases like sticky rows.Minor changes to
onRowsRenderedandonCellsRenderedcallbacks to make it easier to differentiate between visible items and items rendered due to overscan settings. These methods will now receive two params– the first for visible rows and the second for all rows (including overscan), e.g.:function onRowsRendered( visibleRows: { startIndex: number; stopIndex: number; }, allRows: { startIndex: number; stopIndex: number; } ): void { // ... </tr></table>
... (truncated)
Changelog
Sourced from react-window's changelog.
2.1.2
Prevent
ResizeObserverAPI from being called at all if an explicitListheight (orGridwidth and height) is provided.2.1.1
Grids with only one row no longer incorrectly set cell height to 100%.
2.1.0
Improved ARIA support:
- Add better default ARIA attributes for outer
HTMLDivElement- Add optional
ariaAttributesprop to row and cell renderers to simplify better ARIA attributes for user-rendered cells- Remove intermediate
HTMLDivElementfromListandGrid
- This may enable more/better custom CSS styling
- This may also enable adding an optional
childrenprop toListandGridfor e.g. overlays/tooltips- Add optional
tagNameprop; defaults to"div"but can be changed to e.g."ul"// Example of how to use new `ariaAttributes` prop function RowComponent({ ariaAttributes, index, style, ...rest }: RowComponentProps<object>) { return ( <div style={style} {...ariaAttributes}> ... </div> ); }Added optional
childrenprop to better support edge cases like sticky rows.Minor changes to
onRowsRenderedandonCellsRenderedcallbacks to make it easier to differentiate between visible items and items rendered due to overscan settings. These methods will now receive two params– the first for visible rows and the second for all rows (including overscan), e.g.:function onRowsRendered( visibleRows: { startIndex: number; stopIndex: number; }, allRows: { startIndex: number; stopIndex: number; } ): void { </tr></table>
... (truncated)
Commits
dbd044c2.1.1 -> 2.1.2079b878Removed unnecessary mock reset778bb05Mark style param required in useResizeObserver2cd8402Fix ResizeObserver being used even with size provided (#855)e83054bImage compression0ec4930Updated image aspect ratio a bit to make the example more visually interesting0b871d6Update example code93ed665Example of variable height images (#854)4f2a0f2README: Update upgrade examples0727e22Add more v1 -> v2 migration examples (#848)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
0
0
+0
-0
Package Dependencies
Technical Details
| ID: | 8758714 |
| UUID: | 3466558326 |
| Node ID: | PR_kwDOLiT3086rL2Ze |
| Host: | GitHub |
| Repository: | codeharborhub/codeharborhub.github.io |