feat(react-headless-components-preview): add Provider component#36000
Open
dmytrokirpa wants to merge 1 commit intomicrosoft:masterfrom
Open
feat(react-headless-components-preview): add Provider component#36000dmytrokirpa wants to merge 1 commit intomicrosoft:masterfrom
dmytrokirpa wants to merge 1 commit intomicrosoft:masterfrom
Conversation
|
Pull request demo site: URL |
fad19e2 to
f70c577
Compare
📊 Bundle size report
🤖 This report was generated against 3d2d9bf0e07e05f2320e5400efe6c01759426534 |
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
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.

This pull request introduces a new headless
Providercomponent to thereact-headless-components-previewpackage, enabling consumers to wrap their applications with Fluent UI context providers without styling concerns. The addition includes the component implementation, related hooks, type definitions, rendering logic, context value utilities, and comprehensive tests. It also updates dependencies to support the new functionality.New Provider component and related APIs:
Providercomponent (Provider.tsx) that wraps required Fluent UI context providers, along with its hook (useProvider), rendering logic (renderProvider), context value utilities (useProviderContextValues), and type definitions (Provider.types.ts). [1] [2] [3] [4] [5]Provider,useProvider,renderProvider, and related types in the package's main entry points (index.ts,src/Provider.ts,src/components/Provider/index.ts). [1] [2] [3]Testing:
Providercomponent, covering default rendering and custom directionality (dirprop).API documentation:
Providercomponent, its props, state, and hooks. [1] [2] [3] [4]Dependency updates:
@fluentui/react-providerand@fluentui/react-tabsteras dependencies to support the new Provider implementation. [1] [2]