This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 828
Commands for plain text editor #10567
Merged
artcodespace
merged 76 commits into
develop
from
alunturner/mentions-for-plain-text-editor
Apr 27, 2023
Merged
Changes from 15 commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
b305cc9
add the handlers for when autocomplete is open plus rough / handling
f092fb1
hack in using the wysiwyg autocomplete
86883f8
switch to using onSelect for the behaviour
d300050
expand comment
092fd71
add a handle command function to replace text
9f2e7f1
add event firing step
e29b2e4
Merge remote-tracking branch 'origin/develop' into alunturner/mention…
26b995d
Merge remote-tracking branch 'origin/develop' into alunturner/mention…
47d0d53
fix TS errors for RefObject
ac776b4
extract common functionality to new util
7de5f45
use util for plain text mode
5f89098
use util for rich text mode
ba8999c
remove unused imports
46f5309
make util able to handle either type of keyboard event
f857c14
fix TS error for mxClient
26baf97
lift all new code into main component prior to extracting to custom hook
380e265
shift logic into custom hook
e0fa7dd
rename ref to editorRef for clarity
76f46b4
remove comment
5d971b3
try to add cypress test for behaviour
14fd02b
remove unused imports
e08f450
fix various lint/TS errors for CI
6a40aa6
update cypress test
69a6ca4
add test for pressing escape to close autocomplete
c092b3e
expand cypress tests
262c7c0
add typing while autocomplete open test
3e845e4
Merge remote-tracking branch 'origin/develop' into alunturner/mention…
590650e
refactor to single piece of state and update comments
7ac2318
update comment
1d03122
extract functions for testing
cc357ae
add first tests
aac6630
improve tests
80108c7
Merge remote-tracking branch 'origin/develop' into alunturner/mention…
7e9a230
remove console log
2eb1203
call useSuggestion hook from different location
3ad7c45
update useSuggestion hook tests
9db2a45
improve cypress tests
b55ba4f
Merge remote-tracking branch 'origin/develop' into alunturner/mention…
f83d074
remove unused import
368ce13
fix selector in cypress test
449521a
add another set of util tests
c29d945
remove .only
db43084
remove .only
138b40e
Merge remote-tracking branch 'origin/develop' into alunturner/mention…
c7d653e
remove import
b52eeb2
improve cypress tests
3198acb
remove .only
6647bb5
add comment
750dea4
improve comments
a467a2b
tidy up tests
c934f9a
Merge remote-tracking branch 'origin/develop' into alunturner/mention…
8eb1d6a
Merge branch 'develop' into alunturner/mentions-for-plain-text-editor
artcodespace aeeca8c
Merge remote-tracking branch 'origin/develop' into alunturner/mention…
b3ca730
consolidate all cypress tests to one
cc17e0e
add early return
d883727
fix typo, add documentation
1a627ed
add early return, tidy up comments
bec06f9
change function expression to function declaration
6fdee58
add documentation
7948fa7
fix broken test
26663b5
Merge remote-tracking branch 'origin/develop' into alunturner/mention…
799f9a2
add check to cypress tests
eeb3c6c
update types
ab5abb4
update comment
9b8ee00
update comments
88840bf
shift ref declaration inside the hook
ed1b78c
remove unused import
d0d2f4d
Merge remote-tracking branch 'origin/develop' into alunturner/mention…
fe01f99
update cypress test and add comments
0d1852c
update usePlainTextListener comments
cbcb170
apply suggested changes to useSuggestion
6f3b7f0
update tests
66871b6
Merge remote-tracking branch 'origin/develop' into alunturner/mention…
da6ae51
Merge branch 'develop' into alunturner/mentions-for-plain-text-editor
43828d5
Merge branch 'develop' into alunturner/mentions-for-plain-text-editor
t3chguy 3c374e0
Merge branch 'develop' into alunturner/mentions-for-plain-text-editor
artcodespace 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 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 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we assert that the autocomplete options reappear after backspace?