-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
chore(react-provider): Updating FluentProvider
types to avoid implicit import in API definition
#33590
Merged
khmakoto
merged 12 commits into
microsoft:master
from
khmakoto:chore/react-provider/correctTypings
Jan 14, 2025
Merged
chore(react-provider): Updating FluentProvider
types to avoid implicit import in API definition
#33590
khmakoto
merged 12 commits into
microsoft:master
from
khmakoto:chore/react-provider/correctTypings
Jan 14, 2025
Conversation
This file contains 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
react-provider
): Updating FluentProvider
types to avoid implicit import in API definition
📊 Bundle size report✅ No changes found |
Pull request demo site: URL |
fabricteam
reviewed
Jan 9, 2025
change/@fluentui-react-provider-9f506bc2-b69a-4140-b85e-67b97c87e955.json
Show resolved
Hide resolved
…hore/react-provider/correctTypings
spmonahan
reviewed
Jan 9, 2025
...ges/react-components/react-provider/library/src/components/FluentProvider/FluentProvider.tsx
Outdated
Show resolved
Hide resolved
spmonahan
approved these changes
Jan 9, 2025
We should wait until #33599 is merged so that API related failures in other packages go away. |
I checked the referenced issue but it seems like there is some confusion which might actually be on the user side regarding pnpm setup etc.
regarding the explicit types:
|
Hotell
reviewed
Jan 10, 2025
...ges/react-components/react-provider/library/src/components/FluentProvider/FluentProvider.tsx
Outdated
Show resolved
Hide resolved
...ges/react-components/react-provider/library/src/components/FluentProvider/FluentProvider.tsx
Outdated
Show resolved
Hide resolved
react-provider
): Updating FluentProvider
types to avoid implicit import in API definitionFluentProvider
types to avoid implicit import in API definition
Hotell
reviewed
Jan 13, 2025
change/@fluentui-react-provider-9f506bc2-b69a-4140-b85e-67b97c87e955.json
Outdated
Show resolved
Hide resolved
Hotell
approved these changes
Jan 13, 2025
…87e955.json Co-authored-by: Martin Hochel <[email protected]>
ling1726
approved these changes
Jan 14, 2025
sopranopillow
approved these changes
Jan 14, 2025
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Previous Behavior
Because of type expansion due to inference of the
FluentProvider
, the API definition for@fluentui/react-provider
included an implicit import of@fluentui/tokens
.New Behavior
By adding an explicit type of
ForwardRefComponent<FluentProviderProps>
toFluentProvider
, we remove the implicit reference to@fluentui/tokens
in the API file.Related Issue(s)
@fluentui/react-provider
references a non-dependency #33189