-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
Merged
+1,781
−581
Merged
Changes from all commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
03e86dd
Added demo
matthewlipski e45f5a1
Replaced demo toolbar with actual toolbar
matthewlipski d9902bf
Properly fixed dropdowns
matthewlipski af12646
- Fixed link button popover close dismissing virtual keyboard
matthewlipski 1d4fbe3
Added transition to toolbar
matthewlipski 07d9ff7
Replaced hook with pure CSS
matthewlipski faa72b5
Added docs
matthewlipski d070f14
Removed redundant `direction` prop
matthewlipski ece1f83
Merged main
matthewlipski e23b2f3
Refactored `useVirtualViewportRect`
matthewlipski 57b68bf
Fixed some SSR issues
matthewlipski dfb89ac
Removed `portalRoot` prop
matthewlipski 5a5fcd1
Merge branch 'main' into mobile-toolbar-demo
matthewlipski 4b920a1
Implemented PR feedback
matthewlipski 52933c2
Removed unused component
matthewlipski 8a03207
Small fix
matthewlipski f779a4b
Increased mobile formatting toolbar tap target size
matthewlipski 19428d4
- Fixed `getActiveStyles` with empty selections
matthewlipski a174fef
Refactored `FormattingToolbarController` to handle whether the deskto…
matthewlipski 51aa828
Made mobile toolbar only appear when attached editor instance is focused
matthewlipski 9c748cc
Fixed toolbar select desktop regression
matthewlipski 3a95797
Increased required threshold to detect orientation change
matthewlipski 69c6a71
Fixed formatting toolbar not opening when using touch-capable device …
matthewlipski a42e93c
Made mobile formatting toolbar center-aligned
matthewlipski 1d0ef95
Small fix
matthewlipski e441113
docs: name the mobile toolbar layouts + add layout toggle to the exam…
YousefED 09692f4
Merge remote-tracking branch 'origin/mobile-toolbar-demo' into mobile…
matthewlipski d4079d4
Made `.bn-scroll-host` class name apply all necessary styles automati…
matthewlipski b05f7ab
Added second editor to example
matthewlipski cef137d
Cached `isTouchDevice` result
matthewlipski be8838e
Cleaned up portal element context
matthewlipski 51b89d0
Moved injected styles to stylesheet
matthewlipski 83c2a00
Added `hide` middleware to `GenericPopover`
matthewlipski 22c7645
Minor fixes
matthewlipski 9a9f218
Fixed popovers
matthewlipski 384ffd2
Implemented PR feedback
matthewlipski 5696c41
Small fix
matthewlipski b54dcf5
Fixed Android gap
matthewlipski 2656d73
Small fixes
matthewlipski 0f80e42
Small docs change
matthewlipski 852849f
Merge branch 'main' into mobile-toolbar-demo
YousefED 0ec8997
Updated docs
matthewlipski b43ca12
Made formatting toolbar smooth in docs & playground
matthewlipski 9feb488
Added warning when `interactive-widget` is not set
matthewlipski 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 e3dde99
Merge branch 'main' into mobile-toolbar-demo
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 3351b2e
chore(docs): allow only the private 172.16/12 range for dev origins
YousefED 27f48e8
Merge branch 'mobile-toolbar-demo' into portals-cleanup-v2
YousefED 05d2e3b
feat(react): warn about the viewport meta tag from the view, in devel…
YousefED aaef894
docs(examples): show the mobile toolbar example in the playground
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 3265ebc
Merge branch 'mobile-toolbar-demo' into portals-cleanup-v2
matthewlipski 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.