-
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
base: master
Are you sure you want to change the base?
chore(react-provider
): Updating FluentProvider
types to avoid implicit import in API definition
#33590
Conversation
react-provider
): Updating FluentProvider
types to avoid implicit import in API definition
📊 Bundle size report
🤖 This report was generated against 95af8ed946f334198a8d26c3ae939dab1163911d |
Pull request demo site: URL |
@@ -0,0 +1,7 @@ | |||
{ |
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.
🕵🏾♀️ visual regressions to review in the fluentuiv9 Visual Regression Report
Avatar Converged 2 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Avatar Converged.Badge Mask RTL.chromium.png | 4 | Changed |
Avatar Converged.badgeMask.chromium.png | 41 | Changed |
Drawer 2 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Drawer.Full Overlay High Contrast.chromium.png | 2247 | Changed |
Drawer.Full Overlay RTL.chromium.png | 1167 | Changed |
…hore/react-provider/correctTypings
@@ -1,17 +1,21 @@ | |||
import * as React from 'react'; | |||
import { ForwardRefComponent } from '@fluentui/react-utilities'; |
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.
import { ForwardRefComponent } from '@fluentui/react-utilities'; | |
import type { ForwardRefComponent } from '@fluentui/react-utilities'; |
We should wait until #33599 is merged so that API related failures in other packages go away. |
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