feat: implement portal compat#22510
Conversation
📊 Bundle size report🤖 This report was generated against 1defa2ccd7519da0ce385c6a28cd8b441b63b683 |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 813a407:
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 1defa2ccd7519da0ce385c6a28cd8b441b63b683 (build) |
ling1726
left a comment
There was a problem hiding this comment.
Not entirely sure how we will document this, do you mind adding a usage example to the README ?
Done in 1711b12. |
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 938 | 909 | 5000 | |
| Button | mount | 539 | 570 | 5000 | |
| FluentProvider | mount | 1945 | 1909 | 5000 | |
| FluentProviderWithTheme | mount | 300 | 326 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 232 | 241 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 278 | 291 | 10 | |
| MakeStyles | mount | 1573 | 1582 | 50000 |
…eat/portal-compat � Conflicts: � packages/react-components/package.json � packages/react-components/src/index.ts � packages/react-portal-compat/package.json
…eat/portal-compat � Conflicts: � packages/react-components/package.json
Hotell
left a comment
There was a problem hiding this comment.
pipeline is failing because api extractor - pls regenerate
|
FYI: I also updated (created) README for |
* feat: implement portal compat * use react-components as peerDependency * add readme * use "useThemeClassName" from react-components * fix dependencies * update API file * fix versions * cleanup dependencies on react-portal-compat-context * move context to react-portal-compat-context * address PR feedback * cleanup versions * change file * fix path in comment * apply suggestion for readme * bump pkg to rc * restore change * add runtime warning * make package public * add changelog * restore version change & beachball config * fix version in dependencies * update README files * update API files
New Behavior
This PR adds implementation to
@fluentui/react-portal-compatbased on RFC #21774.Proposed API
@fluentui/react-portal-compatpackageConsumers that want compat in their apps:
<FluentProvider theme={theme}> - {props.children} + <PortalCompatProvider>{props.children}</PortalCompatProvider> </FluentProvider>Changes fully implemented for v0 & v8 in ##22541, demo in #22510.
👀 Check demo to see how it works.
Related Issue(s)
Follows #22466.