-
-
Notifications
You must be signed in to change notification settings - Fork 768
feat(core,react): public focus API with editor-UI-aware tracking #3028
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
20 commits
Select commit
Hold shift + click to select a range
a667938
feat(core,react): public focus API with editor-UI-aware tracking
YousefED 366979f
fix(core): make the focus unsubscribe idempotent
YousefED fb26579
fix(react): keep passing the editor to useEditorSelectionChange callb…
YousefED c230245
test(react): colocate the focus-hook tests as a browser unit test
YousefED dd80e8c
fix(react): update latest-ref callbacks at layout-effect timing
YousefED c4ebbfe
fix(react): re-read the focus snapshot when its inputs change
YousefED dd5b4ab
docs(react): state the latest-callback contract in the hook jsdoc
YousefED b78f144
refactor(core): drop the focus tracker's reference counting
YousefED 3a4b8bc
refactor(react): drop useEditorFocusChange
YousefED c9c09bd
refactor: cleanup EventManager
nperez0111 c178945
feat: add support for the `focus` event type to useEditorState
nperez0111 a0a19ee
refactor: base useEditorFocus on useEditorState instead
nperez0111 e1500d1
fix(react): keep per-option focus semantics under useEditorState
YousefED 1506e07
refactor: put back some changes
nperez0111 119c5ed
Merge branch 'portals-cleanup-v2' into mobile/focus-api
YousefED 4b901ce
test(react): port the useEditorFocus test off `editor.portalElement`
YousefED e1ca677
Merge branch 'portals-cleanup-v2' into mobile/focus-api
YousefED f78b104
Merge branch 'portals-cleanup-v2' into mobile/focus-api
YousefED cfe0afa
Merge branch 'portals-cleanup-v2' into mobile/focus-api
YousefED a71fd45
Merge branch 'portals-cleanup-v2' into mobile/focus-api
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
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.