-
-
Notifications
You must be signed in to change notification settings - Fork 768
refactor(react): one vocabulary and simpler plumbing for portal elements #3052
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
Open
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
e0e3e90
Added `PortalContext`
matthewlipski 3773025
Refactored `PortalContext` to `PortalTarget`
matthewlipski 9b2b740
Refactored `PortalContext` to `PortalTarget`
matthewlipski 3c9c0b6
Fixed build
matthewlipski 72fce8f
Updated naming
matthewlipski 0fdf553
Fixed build
matthewlipski 543523d
Fixed naming omissions
matthewlipski f69f5c9
Always pass `editorPortalElement` to `portalRoot`
matthewlipski 85b9029
refactor(react): one vocabulary and simpler plumbing for portal elements
YousefED 473642d
refactor(ui): keep the portalElement prop's plain name in the UI libr…
YousefED 4ca626d
Added tests
matthewlipski 9e7dfa5
refactor(core)!: drop the portal option from editor.mount
YousefED bbb5ddf
small fixes
YousefED ceb93bd
refactor: require portalRoot and never fall back to the body
YousefED 3eb01f7
Merge branch 'portal-root-always-pass' into portals-cleanup-v2
YousefED c63532a
fix: pass the required portal element in the SettingsSelect examples
YousefED ea7aef9
Merge branch 'portals-context' into portals-cleanup-v2
YousefED 17eca72
test(mantine): pin the render profile of BlockNoteView around portals
YousefED 355ddc4
Merge branch 'mobile-toolbar-demo' into portals-cleanup-v2
YousefED 7c50b00
fix(mantine,ariakit): style portalled menus by their own class
YousefED 4150a35
feat(react): render a floating component's menus inside its wrapper
YousefED 4dbe297
fix(mantine): drop the toolbar focus trap
YousefED 4d3a67c
test(mantine): let commits settle before measuring the render profile
YousefED 9cfade6
fix(react): portal floating UI next to the editor element by default
YousefED ef72729
docs(react): drop the null portal target from the doc comments
YousefED 27f48e8
Merge branch 'mobile-toolbar-demo' into portals-cleanup-v2
YousefED bd0537a
fix(react): a nested BlockNoteView resolves its own portal element
YousefED 36e4a47
docs(react): state the preventFocusOnOpen contract
YousefED d94a980
test: link toolbar create and edit flows per skin
YousefED 261d5f6
Merge branch 'mobile-toolbar-demo' into portals-cleanup-v2
YousefED 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
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
Oops, something went wrong.
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.