-
Notifications
You must be signed in to change notification settings - Fork 1.3k
chore: RAC storybook updates, Loader api fix #8381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
snowystinger
wants to merge
20
commits into
main
Choose a base branch
from
ts-RAC-explicit-modules
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 17 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1b1a5b4
chore: make module boundaries explicit
snowystinger 839a311
fix s2 illustrations
snowystinger 10f0fb9
fix lint and ts for React 18/19
snowystinger 9d10e62
fix 16, 17
snowystinger f66bcf2
Merge branch 'main' into ts-more-explicit-modules
snowystinger 10e1e2f
Merge branch 'main' into ts-more-explicit-modules
snowystinger b420bfc
fix return types to work with isolated modules for renderOverrides
snowystinger bc8f241
fix inference
snowystinger b499c68
chore: ts explicit module boundary RAC
snowystinger def0d48
remove the harder to deal with satisfies
snowystinger 3cfc455
Merge branch 'main' into ts-RAC-explicit-modules
snowystinger adf8a2a
Merge branch 'main' into ts-RAC-explicit-modules
snowystinger 0a31622
Merge branch 'main' into ts-RAC-explicit-modules
snowystinger f8999f6
Merge branch 'main' into ts-RAC-explicit-modules
snowystinger dc76b1a
revert changes to source
snowystinger 5e103b8
fix story
snowystinger 8821f23
add back in loader fixes
snowystinger e3fe809
Merge branch 'main' into ts-RAC-explicit-modules
snowystinger 2f94e81
fix copy-pasta
snowystinger d3091c1
Merge branch 'ts-RAC-explicit-modules' of github.com:adobe/react-spec…
snowystinger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -511,7 +511,7 @@ export interface GridListLoadingSentinelProps extends Omit<LoadMoreSentinelProps | |
isLoading?: boolean | ||
} | ||
|
||
export const UNSTABLE_GridListLoadingSentinel = createLeafComponent('loader', function GridListLoadingIndicator<T extends object>(props: GridListLoadingSentinelProps, ref: ForwardedRef<HTMLDivElement>, item: Node<T>) { | ||
export const UNSTABLE_GridListLoadingSentinel = /*#__PURE__*/ createLeafComponent('loader', function GridListLoadingIndicator(props: GridListLoadingSentinelProps, ref: ForwardedRef<Element>, item: Node<object>) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why did the ref type here change to Element by the way? Since it gets attached explicitly to a div shouldn't the old type be ok? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, copy pasta |
||
let state = useContext(ListStateContext)!; | ||
let {isVirtualized} = useContext(CollectionRendererContext); | ||
let {isLoading, onLoadMore, scrollOffset, ...otherProps} = props; | ||
|
@@ -546,7 +546,7 @@ export const UNSTABLE_GridListLoadingSentinel = createLeafComponent('loader', fu | |
{...mergeProps(filterDOMProps(props as any))} | ||
role="row" | ||
aria-rowindex={isVirtualized ? item.index + 1 : undefined} | ||
ref={ref}> | ||
ref={ref as ForwardedRef<HTMLDivElement>}> | ||
<div | ||
aria-colindex={isVirtualized ? 1 : undefined} | ||
role="gridcell"> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the generic
T
seems to be unused if I've understood the types correctlyThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I think you are right, not sure why I used the generic tbh but this looks correct