Commit d897307
feat: Add Emoji Picker Option (#854)
* shows the emojis, keyboard navigation yet to be setup
* fixed lint and styled emoji picker
* added support for keyboard shortcuts, and cleanup
* add more reasonable color to emojiMenu
* added emoji option to slashmenu
* optimized emojipicker for slower network
* finally made the emoji menu accessible through the slash menu
* cleanup and add comments
* add the appropriate typescript code, removed ts errors
* added dark mode, moved styles to css file
* fixed lint
* resolve conflict
* Started refactor
* added the empji item to slash menu and setup onclick, only eng locale for now
* get the emoji.tsx to render the emoji inline
* add option to show or hide emoji suggestion menu
* added locales and fixed type issue
* generalize emojimenu component and move dependencies to react dir
* create a new dir inlineContent and retent at and structure it
* Added grid suggestion menu to component context + refactor
* Updated package lock
* Small fixes
* unlink columns length from css, and a new prop gridCols
* More cleanup & implemented PR feedback
* Change emojis to use text instead of custom IC & fixed styles
* Added empty grid items and loaders
* Small fix
* Added docs & small fixes
* Small dep array fix
* Implemented PR feedback
* Added `openSuggestionMenu` docs
* Added e2e tests
* Updated snapshots
* Fully split regular & grid suggestion menu code
* Implemented remaining feedback and updated tests
* Added `emojiPicker` to `BlockNoteViewProps` docs
* Updated tests
* Updated screenshots
* Updated docs
* Added missing files
* Small fix + regen files
---------
Co-authored-by: Matthew Lipski <matthewlipski@gmail.com>
Co-authored-by: Matthew Lipski <50169049+matthewlipski@users.noreply.github.com>1 parent 762b569 commit d897307
File tree
138 files changed
+2642
-403
lines changed- docs
- pages/docs
- advanced
- editor-basics
- ui-components
- public/img/screenshots
- examples/03-ui-components
- 11-uppy-file-panel
- 12-custom-ui
- packages
- ariakit/src
- suggestionMenu/gridSuggestionMenu
- core
- src
- blocks
- editor
- extensions
- SideMenu
- SuggestionMenu
- i18n/locales
- mantine/src
- suggestionMenu/gridSuggestionMenu
- react/src
- components/SuggestionMenu
- GridSuggestionMenu
- hooks
- hooks
- editor
- shadcn/src
- suggestionMenu
- gridSuggestionMenu
- playground/src
- tests/src
- end-to-end
- ariakit
- ariakit.test.ts-snapshots
- emojipicker
- shadcn
- shadcn.test.ts-snapshots
- theming
- theming.test.ts-snapshots
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
138 files changed
+2642
-403
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| 124 | + | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
Loading
Loading
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments