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

feat(react-components, react-drawer, react-message-bar, react-swatch-picker-preview): Add missing context exports for Drawer, MessageBar, and SwatchPicker #31328

Merged
merged 7 commits into from May 13, 2024

Conversation

sopranopillow
Copy link
Contributor

@sopranopillow sopranopillow commented May 9, 2024

Previous Behavior

Some exports were missing which prevent being able to recompose Drawer, MessageBar, and SwatchPicker since useContextValues is required when recomposing.

This is blocking a partner from bumping their version of react-components.

New Behavior

Added missing exports.

@sopranopillow sopranopillow self-assigned this May 9, 2024
@sopranopillow sopranopillow requested review from marcosmoura and a team as code owners May 9, 2024 18:49
@fabricteam
Copy link
Collaborator

fabricteam commented May 9, 2024

Perf Analysis (@fluentui/react-components)

Scenario Render type Master Ticks PR Ticks Iterations Status
FluentProviderWithTheme virtual-rerender 32 27 10 Possible regression
All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 643 627 5000
Button mount 305 310 5000
Field mount 1104 1156 5000
FluentProvider mount 712 688 5000
FluentProviderWithTheme mount 77 79 10
FluentProviderWithTheme virtual-rerender 32 27 10 Possible regression
FluentProviderWithTheme virtual-rerender-with-unmount 67 79 10
MakeStyles mount 842 849 50000
Persona mount 1728 1693 5000
SpinButton mount 1367 1328 5000
SwatchPicker mount 1451 1506 5000

Copy link

codesandbox-ci bot commented May 9, 2024

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.

@fabricteam
Copy link
Collaborator

fabricteam commented May 9, 2024

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-components
react-components: entire library
1.139 MB
275.306 kB
1.139 MB
275.332 kB
205 B
26 B
react-swatch-picker-preview
@fluentui/react-swatch-picker-preview - package
108.862 kB
30.32 kB
109.013 kB
30.362 kB
151 B
42 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
71.55 kB
20.584 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
221.825 kB
62.568 kB
react-components
react-components: FluentProvider & webLightTheme
44.037 kB
14.418 kB
react-message-bar
MessageBar (all components)
24.204 kB
8.983 kB
react-portal-compat
PortalCompatProvider
8.39 kB
2.64 kB
🤖 This report was generated against bd0a0820115040f9024807d72b29c9f5766a732b

@fabricteam
Copy link
Collaborator

fabricteam commented May 9, 2024

🕵 fluentuiv9 No visual regressions between this PR and main

@sopranopillow sopranopillow requested a review from a team as a code owner May 9, 2024 19:16
@sopranopillow sopranopillow changed the title feat(react-components, react-drawer): Add missing Drawer context exports feat(react-components, react-drawer, react-message-bar, react-swatch-picker-preview): Add missing context exports for Drawer, MessageBar, and SwatchPicker May 9, 2024
@sopranopillow sopranopillow enabled auto-merge (squash) May 10, 2024 22:12
@sopranopillow sopranopillow merged commit 8b5031c into microsoft:master May 13, 2024
19 checks passed
@sopranopillow sopranopillow deleted the drawer-export-missing branch May 13, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants