-
Notifications
You must be signed in to change notification settings - Fork 2.9k
chore: Upgrade Popper to Floating UI #21828
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
Closed
Closed
Changes from 71 commits
Commits
Show all changes
106 commits
Select commit
Hold shift + click to select a range
0b3d545
init
ling1726 707a4a1
final touches
ling1726 36904c7
Change files
ling1726 4bd223f
Merge branch 'master' into chore/floating-ui
ling1726 9738d0c
support imperative handle
ling1726 ccfbfd5
Merge branch 'master' into chore/floating-ui
ling1726 8ca61b2
debounce
ling1726 005166f
changes
ling1726 fb1c088
finally understood scroll jumping fix
ling1726 cfe0909
disableTether and positionFixed
ling1726 5196d59
gpu accel
ling1726 02b0f8c
remove firstUpdate concept
ling1726 1eec43e
change doc
ling1726 7e89d6f
merge master
ling1726 f5cb3c1
merge master
ling1726 9775df4
hide middleware and intersection observer
ling1726 7bb4808
remove old middleware
ling1726 4b34449
remove popper from deps
ling1726 636b23c
cleanup event listeners
ling1726 add88c4
update md
ling1726 d793aab
cleanup
ling1726 212326f
cleanup
ling1726 f178729
add autofocus warning
ling1726 b4f21e9
fix tests
ling1726 a6f909d
fix lint
ling1726 2a6c646
fix typing
ling1726 11ea988
Merge remote-tracking branch 'origin/master' into chore/floating-ui
ling1726 6d3bbd2
fix types
ling1726 d44bc44
bump to latest prerelease
ling1726 1957163
use custom offset middleware
ling1726 15e84d8
cleanup
ling1726 999261f
add comment
ling1726 6b12cca
unnecessary export
ling1726 4249318
cleanup
ling1726 f15c862
remove unnecessary middleware wrapper
ling1726 3393023
import middleware correctly
ling1726 566c787
fix rtl placement
ling1726 f4142fc
rtl independent placement
ling1726 593cd9e
alignment rtl handled by floating ui
ling1726 050ea14
use hide middleware twice
ling1726 be6a273
use only @floating-ui/dom
ling1726 4b89ff5
merge master
ling1726 4541dd0
dedupe lock
ling1726 7a891e2
fix typos
ling1726 19da8b2
mergeArrowOffset
ling1726 86bd0ef
rename getBasePlacement to getSide
ling1726 574556e
docs for debounce
ling1726 4eefe8e
rename toggleScrollListener
ling1726 44f1bd6
rename constants
ling1726 0c26ea5
nit
ling1726 a545823
update shift middleware
ling1726 1db7e04
rename middleware to base*
ling1726 c44a724
rename to intersecting middleware
ling1726 865a07e
remove middleawre spreading
ling1726 39fe5f6
fix typo
ling1726 0f789cd
update change files
ling1726 7ccb4a6
refactor docs to use new offset values
ling1726 7560f97
import type
ling1726 7943657
import type
ling1726 81e678f
PopperVirtualElement to PositioningVirtualElement
ling1726 b55f428
fix positioning helper tests
ling1726 462d537
Popper to Floating UI
ling1726 162ff51
simplify effects
ling1726 5ef2430
remove unsed useIsFirstMount
ling1726 f59159d
improve middleware types
ling1726 d60fda3
debounce as named export
ling1726 6388ba6
add position fixed comment
ling1726 6cb837a
local functions for assignments
ling1726 bfc3076
hasScrollParent util
ling1726 6b178c8
Merge branch 'master' into chore/floating-ui
ling1726 68ec50c
bump, remove custom offset middleware
ling1726 aef9ff8
create separate ref hooks for elements
ling1726 08c7f3d
fix useFirstMount tests
ling1726 13d0e10
Change files
ling1726 5bd005e
Merge remote-tracking branch 'origin/master' into chore/floating-ui
ling1726 db1de63
add extra data- attribute
ling1726 4c5d39d
pr issues
ling1726 1e178b2
add comment
ling1726 199597c
move usePopper to top
ling1726 77386bd
update md
ling1726 604471b
update API
ling1726 9d4ceeb
fix tests
ling1726 8e25099
copy types to retain TS minbar
ling1726 fffea0b
Merge branch 'master' into chore/floating-ui
ling1726 e33610f
patch floating ui for minbar test
ling1726 661689d
remove type layer
ling1726 dbcbf8f
Merge branch 'master' into chore/floating-ui
ling1726 03b40a2
update md
ling1726 7b770a1
Merge branch 'master' into chore/floating-ui
ling1726 f277cf5
remove first mount update
ling1726 4f15da7
remove unnecessary changefile
ling1726 d10771f
Merge branch 'master' into chore/floating-ui
ling1726 a6e32ef
use window from context
ling1726 ef658f4
remove jsdoc
ling1726 4fae144
update API to wrap around floating UI completely
ling1726 d6d41f8
update react-positioning usages
ling1726 b296be4
remove export *
ling1726 02309b9
remove poppse from hook names
ling1726 c2b3a49
merge master
ling1726 4759559
Merge branch 'chore/floating-ui' of https://github.com/ling1726/fluen…
ling1726 b961173
remove duplicate import
ling1726 3e24d1c
Update change/@fluentui-react-popover-7c1b5c26-eb72-4d8b-8951-f6a5501…
ling1726 c21ca5a
Update change/@fluentui-react-tooltip-3f810af7-b574-4988-bf02-21dbdde…
ling1726 b880b4a
change file
ling1726 31f605f
Merge branch 'chore/floating-ui' of https://github.com/ling1726/fluen…
ling1726 8445272
Update change/@fluentui-react-menu-16ea1e78-a70f-4378-9515-49a0254f32…
ling1726 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-positioning-deff0906-26f7-49f7-8e84-fd138709d245.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "prerelease", | ||
| "comment": "BREAKING: Upgrade PopperJS for FloatingUI", | ||
| "packageName": "@fluentui/react-positioning", | ||
| "email": "lingfangao@hotmail.com", | ||
| "dependentChangeType": "patch" | ||
| } |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-tooltip-3f810af7-b574-4988-bf02-21dbdde3e0db.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "prerelease", | ||
| "comment": "fix: update usages of positioning API", | ||
| "packageName": "@fluentui/react-tooltip", | ||
| "email": "lingfangao@hotmail.com", | ||
| "dependentChangeType": "patch" | ||
| } | ||
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export const DATA_POSITIONING_INTERSECTING = 'data-popper-is-intersecting'; | ||
|
ling1726 marked this conversation as resolved.
|
||
| export const DATA_POSITIONING_ESCAPED = 'data-popper-escaped'; | ||
| export const DATA_POSITIONING_HIDDEN = 'data-popper-reference-hidden'; | ||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.