-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rich text and user mention components (DHIS2-15522) (#1525)
* feat: add rich text editor/parser components "Moved" from d2-ui-rich-text. * feat: moved RichText and UserMention out of Intepretation components RichText has the Jest tests from the old d2-ui implementation. * feat: add inputHeight prop to control textarea rows This allows for customization of the textarea height. * fix: respect new lines in preview mode DHIS2-15536 * fix: use same styles for text in edit and preview mode DHIS2-15537 * fix: add prop for controlling autofocus DHIS2-15541 * fix: keep toolbar fixed in edit/preview mode DHIS2-15539 * fix: add prop for controlling resizable textarea DHIS2-15540 * fix: make textarea resize according to parent DHIS2-15535 * fix: show search results for the same query (DHIS2-15542) When the same query is run multiple times, data does not change and the useEffect does not trigger. By looking at fetching instead, we can set data every time the query is completed. * fix: port help text in the rich text editor fix (DHIS2-15781) * fix: position caret between bold/italic markers DHIS2-17344 * feat(rich-text): enable heading and lists (DHIS2-17357) * fix: fix user list positioning with wrapping text (DHIS2-17347) * fix: close user list when clicking outside of it (DHIS2-17345) * fix: add a space and put caret after smileys * fix: close user list when clicking outside (DHIS2-17345) This fix is to solve the issue of a click on a list item not selecting the user. Also, a fix for the list positioning when there are newlines in the text. * fix: position the caret between bold/italic markers (DHIS2-17344) This fix is for when using Ctrl + B/I, now the same callback used when clicking the B/I buttons in the toolbar is used. * fix: avoid sending \n in the user search (DHIS2-17523) They cause the user search request to fail with a 400 error. --------- Co-authored-by: Jen Jones Arnesen <[email protected]>
- Loading branch information
1 parent
fdf1b9f
commit 5681126
Showing
27 changed files
with
854 additions
and
131 deletions.
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export * from './Interpretation/index.js' | ||
export * from './Message/index.js' | ||
export * from './RichTextEditor/index.js' | ||
export * from './getInterpretationAccess.js' |
Oops, something went wrong.