docbrown/app/javascript/utilities
Suzanne Aitchison 494d92d74c
Create mention autocomplete: initial storybook component (#12831)
* initial setup of component

* initial styles applied

* add some initial docs

* small tweaks to story

* add some very initial tests

* tweaks to styles to add border bottom

* add some preact tests

* import default style in jsx, ignore in jest

* WIP - create MentionAutocompleteListener, attempt to position popover

* position dropdown correctly, exit selection in various scenarios

* refactor

* make sure cursor placed correctly after selection

* only import autocomplete when needed

* rename files, add jsdoc

* update tests and story notes

* tidy up scss file

* fix story styling

* fix aria label in story

* fix issue with key event not triggering in mobile

* position dropdown at input left if small screen

* fix issue with deleting and re-entering

* don't trigger search if directly following a letter or number

* stop change event being fired with highihted text

* move regex out of function into constant
2021-03-05 13:18:26 +00:00
..
__tests__ Add paste image (#10212) 2021-02-04 10:58:56 -05:00
connect Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
Constants [deploy] 🚀 Feature: Draw Command for connect with image annotations (#10136) 2020-10-07 16:06:22 +02:00
http Moved src/utils out of src/ folder to utilities/ folder. (#7875) 2020-05-15 10:07:42 -04:00
search Prep work to sync mobile search in #10424 (#11525) 2020-11-30 06:13:06 -05:00
codeFullscreenModeSwitcher.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
debounceAction.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
dragAndDrop.js Drag and drop an image in the editor (#10145) 2020-09-04 14:12:59 -04:00
dragAndUpload.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00
pasteImage.js Add paste image (#10212) 2021-02-04 10:58:56 -05:00
sendFollowUser.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
textAreaUtils.js Create mention autocomplete: initial storybook component (#12831) 2021-03-05 13:18:26 +00:00
viewport.js Use faster JS selection methods (#11409) 2020-11-16 17:35:50 +01:00