Skip to content
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

Conversation

khmakoto
Copy link
Member

@khmakoto khmakoto commented Jan 9, 2025

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> to FluentProvider, we remove the implicit reference to @fluentui/tokens in the API file.

Related Issue(s)

@khmakoto khmakoto requested a review from a team as a code owner January 9, 2025 01:07
@github-actions github-actions bot added this to the January Project Cycle Q1 2025 milestone Jan 9, 2025
@khmakoto khmakoto changed the title chore: Updating FluentProvider types to avoid implicit import in API definition chore(react-provider): Updating FluentProvider types to avoid implicit import in API definition Jan 9, 2025
Copy link

github-actions bot commented Jan 9, 2025

📊 Bundle size report

✅ No changes found

Copy link

github-actions bot commented Jan 9, 2025

Pull request demo site: URL

@khmakoto
Copy link
Member Author

khmakoto commented Jan 9, 2025

We should wait until #33599 is merged so that API related failures in other packages go away.

@khmakoto khmakoto requested a review from a team as a code owner January 9, 2025 22:48
@khmakoto khmakoto requested review from mltejera, a team and Mitch-At-Work as code owners January 9, 2025 23:16
@Hotell
Copy link
Contributor

Hotell commented Jan 10, 2025

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.

  • they mention swc -> swc has nothing to do with types we produce
  • they mention "missing dependency" -> that's strange as the dependency chain goes react-provider->react-theme->tokens meaning all the .d.ts necessary are in place and work as expected

regarding the explicit types:

@Hotell Hotell changed the title chore(react-provider): Updating FluentProvider types to avoid implicit import in API definition chore(react-provider): Updating FluentProvider types to avoid implicit import in API definition Jan 10, 2025
Humberto Makoto Morimoto Burgos added 2 commits January 10, 2025 10:15
@khmakoto khmakoto removed request for a team, mltejera and Mitch-At-Work January 11, 2025 22:51
@khmakoto khmakoto removed the request for review from a team January 14, 2025 00:23
@khmakoto khmakoto merged commit a8c0c46 into microsoft:master Jan 14, 2025
16 checks passed
@khmakoto khmakoto deleted the chore/react-provider/correctTypings branch January 14, 2025 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: index.d.ts for @fluentui/react-provider references a non-dependency
6 participants