-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
fix(react-popover): removes exposing of internal type FluentTriggerComponent #25411
Merged
bsunderhus
merged 1 commit into
microsoft:master
from
bsunderhus:react-popover/fix--removes-exposing-of-internal-type-FluentTriggerComponent
Oct 31, 2022
Merged
fix(react-popover): removes exposing of internal type FluentTriggerComponent #25411
bsunderhus
merged 1 commit into
microsoft:master
from
bsunderhus:react-popover/fix--removes-exposing-of-internal-type-FluentTriggerComponent
Oct 31, 2022
Conversation
This file contains 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
blocked by #25407 |
5 tasks
📊 Bundle size reportUnchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: ee9ca8f32362b41776a26e4eea182b39f378b6ee (build) |
bsunderhus
force-pushed
the
react-popover/fix--removes-exposing-of-internal-type-FluentTriggerComponent
branch
from
October 28, 2022 12:10
3f9ca1d
to
e79b408
Compare
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 1277 | 1288 | 5000 | |
Button | mount | 925 | 922 | 5000 | |
FluentProvider | mount | 1486 | 1491 | 5000 | |
FluentProviderWithTheme | mount | 574 | 576 | 10 | |
FluentProviderWithTheme | virtual-rerender | 541 | 533 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 576 | 571 | 10 | |
MakeStyles | mount | 1950 | 1982 | 50000 | |
SpinButton | mount | 2334 | 2332 | 5000 |
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 e79b408:
|
ling1726
approved these changes
Oct 31, 2022
marcosmoura
added a commit
to marcosmoura/fluentui
that referenced
this pull request
Oct 31, 2022
* master: (22 commits) fix(react-menu): removes exposing of internal type FluentTriggerComponent (microsoft#25410) fix(react-popover): removes exposing of internal type FluentTriggerComponent (microsoft#25411) applying package updates fix(react-tooltip): removes exposing of internal type FluentTriggerComponent (microsoft#25409) chore: Reducing bundle size of Stack by moving selector used in multiple places to local const (microsoft#25429) docs(rfcs): Simple component implementation (microsoft#25139) Fix migration publishing (microsoft#25422) Integrate storywright for story tests - As part of exploring screener alternative (microsoft#25399) fix(react-utilities): exposes internal methods used in API surface (microsoft#25406) fix(react-dialog): removes exposing of internal type FluentTriggerComponent (microsoft#25408) fix(react-context-selector): exposes internal type ContextSelector (microsoft#25404) fix(react-aria): exposes internal leaking types (microsoft#25403) fix(react-shared-contexts): exposes internal leaks used in the API surface (microsoft#25405) fix(react-positioning): exposes new typings to avoid exposing internal methods (microsoft#25407) applying package updates fix: Allowing DatePicker to be focusable within FocusZones by default (microsoft#25428) fix: Pad in slider so the thumb does not render outside the bounds of the root element (microsoft#25378) feat: Add enableScopedSelectors prop to Stack that, when true, makes the Stack styles selectors be more scoped to not be as expensive in style recalculation (microsoft#25397) fix(react-avatar): Remove gaps between AvatarGroupItem/OveflowButton and its outline (microsoft#25382) fix: Combobox text attribute ignored when empty string is passed (microsoft#24665) ...
NotWoods
pushed a commit
to NotWoods/fluentui
that referenced
this pull request
Nov 18, 2022
Hotell
pushed a commit
to Hotell/fluentui
that referenced
this pull request
Feb 9, 2023
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.
Current Behavior
As described in #25319
We have some internal leaks due to wrongly usage of
@internal
annotation, the newest API extraction tool will break on those scenariosNew Behavior
This PR solves internal leakages from
@fluentui/react-popover
by inline castingFluentTriggerComponent
usage to avoid leaking internal type, and adopting newSetVirtualMouseTarget
type to avoid leakingusePositioningMouseTarget
FluentTriggerComponent
(❓ shouldn't be external, inline cast to avoid leaking types)usePositioningMouseTarget
(❓ useSetVirtualMouseTarget
)