Skip to content

feat(react-popover): expose base hooks and types for Popover and PopoverSurface#35901

Open
dmytrokirpa wants to merge 4 commits intomicrosoft:masterfrom
dmytrokirpa:feat/react-popover-expose-base-hooks
Open

feat(react-popover): expose base hooks and types for Popover and PopoverSurface#35901
dmytrokirpa wants to merge 4 commits intomicrosoft:masterfrom
dmytrokirpa:feat/react-popover-expose-base-hooks

Conversation

@dmytrokirpa
Copy link
Copy Markdown
Contributor

Summary

  • Exports usePopoverBase_unstable, PopoverBaseProps, and PopoverBaseState from @fluentui/react-popover public index
  • Exports usePopoverSurfaceBase_unstable, PopoverSurfaceBaseProps, and PopoverSurfaceBaseState from @fluentui/react-popover public index
  • Updates renderPopoverSurface_unstable to accept PopoverSurfaceBaseState instead of PopoverSurfaceState — the render function uses only structural/behavioral props (withArrow, arrowRef, arrowClassName, inline, mountNode) which are all retained in the base state

All hooks and types were already implemented in the component source files (added in PR #35635) but gated behind comments in index.ts.

Tracking: #35562

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 25, 2026

📊 Bundle size report

✅ No changes found

@github-actions
Copy link
Copy Markdown

Pull request demo site: URL

@@ -0,0 +1,7 @@
{
Copy link
Copy Markdown

@github-actions github-actions bot Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵🏾‍♀️ visual changes to review in the Visual Change Report

vr-tests-react-components/Avatar Converged 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Avatar Converged.badgeMask.normal.chromium.png 5 Changed
vr-tests-react-components/CalendarCompat 4 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/CalendarCompat.multiDayView - Dark Mode.default.chromium.png 1098 Changed
vr-tests-react-components/CalendarCompat.multiDayView - High Contrast.default.chromium.png 1197 Changed
vr-tests-react-components/CalendarCompat.multiDayView.default.chromium.png 482 Changed
vr-tests-react-components/CalendarCompat.multiDayView.default.chromium_1.png 481 Changed
vr-tests-react-components/Charts-DonutChart 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Charts-DonutChart.Dynamic.default.chromium.png 5581 Changed
vr-tests-react-components/Menu Converged - submenuIndicator slotted content 2 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Menu Converged - submenuIndicator slotted content.default - RTL.submenus open.chromium.png 404 Changed
vr-tests-react-components/Menu Converged - submenuIndicator slotted content.default.submenus open.chromium.png 413 Changed
vr-tests-react-components/Positioning 2 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Positioning.Positioning end.chromium.png 622 Changed
vr-tests-react-components/Positioning.Positioning end.updated 2 times.chromium.png 734 Changed
vr-tests-react-components/ProgressBar converged 3 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/ProgressBar converged.Indeterminate + thickness - Dark Mode.default.chromium.png 86 Changed
vr-tests-react-components/ProgressBar converged.Indeterminate + thickness - High Contrast.default.chromium.png 53 Changed
vr-tests-react-components/ProgressBar converged.Indeterminate + thickness.default.chromium.png 54 Changed

There were 1 duplicate changes discarded. Check the build logs for more information.

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.

1 participant