element-portable/src/components/views/elements
Johannes Marbach abd39c61b1
Add support for MD / HTML in room topics (#8215)
* Add support for MD / HTML in room topics

Setting MD / HTML supported:
- /topic command
- Room settings overlay
- Space settings overlay

Display of MD / HTML supported:
- /topic command
- Room header
- Space home

Based on extensible events as defined in [MSC1767]

Fixes: vector-im/element-web#5180
Signed-off-by: Johannes Marbach <johannesm@element.io>

[MSC1767]: matrix-org/matrix-spec-proposals#1767

* Fix build error

* Add comment to explain origin of styles

Co-authored-by: Travis Ralston <travpc@gmail.com>

* Empty commit to retrigger build

* Fix import grouping

* Fix useTopic test

* Add tests for HtmlUtils

* Add slash command test

* Add further serialize test

* Fix ternary formatting

Co-authored-by: Travis Ralston <travpc@gmail.com>

* Add blank line

Co-authored-by: Travis Ralston <travpc@gmail.com>

* Properly mock SettingsStore access

* Remove trailing space

* Assert on HTML content and add test for plain text in HTML parameter

* Appease the linter

* Fix JSDoc comment

* Fix toEqual call formatting

* Repurpose test for literal HTML case

* Empty commit to fix CI

Co-authored-by: Travis Ralston <travpc@gmail.com>
Co-authored-by: Travis Ralston <travisr@matrix.org>
2022-06-07 14:20:32 -06:00
..
crypto Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
AccessibleButton.tsx Fix: AccessibleButton does not set disabled attribute (PSF-1055) (#8682) 2022-05-27 07:13:50 +00:00
AccessibleTooltipButton.tsx Improve tooltip positioning 2022-05-12 14:05:55 +02:00
ActionButton.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
AddressSelector.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
AddressTile.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
AppPermission.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
AppTile.tsx Fix disappearing widget poput button (#8754) 2022-06-06 12:00:18 +02:00
AppWarning.tsx Eslint - require copyright header rule (#8514) 2022-05-06 09:09:28 +00:00
CopyableText.tsx Live location sharing - open location in OpenStreetMap (PSF-1040) (#8695) 2022-05-27 11:58:39 +02:00
DesktopCapturerSourcePicker.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
DialogButtons.tsx Fix visual bugs on AccessSecretStorageDialog (#8160) 2022-05-11 12:33:21 +00:00
DialPadBackspaceButton.tsx Call view accessibility fixes (#7439) 2022-01-04 08:57:46 +00:00
DirectorySearchBox.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
Draggable.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
Dropdown.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
EditableItemList.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
EditableText.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
EditableTextContainer.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
EffectsOverlay.tsx Replace deprecated String#substr with String#slice (#8314) 2022-04-14 07:52:42 +00:00
ErrorBoundary.tsx Run a minor code quality checker over the repo (#8524) 2022-05-09 22:52:05 +00:00
EventListSummary.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
EventTilePreview.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
ExternalLink.tsx Add descriptions to ambiguous links for screen readers (#7310) 2021-12-09 13:04:06 +01:00
FacePile.tsx Improve tooltip positioning 2022-05-12 14:05:55 +02:00
Field.tsx Only jump to date after pressing the 'go' button (#8548) 2022-05-10 12:49:05 -04:00
GenericEventListSummary.tsx Fix misalignment with Event List Summaries (#7865) 2022-02-22 08:35:58 +00:00
ImageView.tsx Fix not being able to open avatars in lightbox (#8598) 2022-05-14 16:07:54 +00:00
InfoTooltip.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
InlineSpinner.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
InteractiveTooltip.tsx Apply corrections identified by SonarQube (#8457) 2022-05-03 22:04:37 +01:00
InviteReason.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
IRCTimelineProfileResizer.tsx Apply corrections identified by SonarQube (#8457) 2022-05-03 22:04:37 +01:00
JoinRuleDropdown.tsx Improve subspaces and some utilities around room/space creation 2021-07-23 08:46:20 +01:00
LabelledCheckbox.tsx Add an option to ignore (block) a user when reporting their events (#8471) 2022-05-18 16:20:55 +00:00
LabelledToggleSwitch.tsx Add an option to ignore (block) a user when reporting their events (#8471) 2022-05-18 16:20:55 +00:00
LanguageDropdown.tsx Run a minor code quality checker over the repo (#8524) 2022-05-09 22:52:05 +00:00
LazyRenderList.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
Linkify.tsx Fix issues with the new topic dialog (#8608) 2022-05-16 14:10:00 +02:00
Measured.tsx Fix thread summary layout for narrow right panel timeline (#7838) 2022-02-23 14:03:46 +00:00
MiniAvatarUploader.tsx Improve welcome screen, add opt-out analytics (#8474) 2022-05-09 15:10:22 +02:00
PersistedElement.tsx Make PiP motion smoother and react to window resizes correctly (#8747) 2022-06-02 18:11:28 +00:00
PersistentApp.tsx Make PiP motion smoother and react to window resizes correctly (#8747) 2022-06-02 18:11:28 +00:00
Pill.tsx Remove duplicate tooltip from user pills (#8512) 2022-05-06 21:26:32 +00:00
PollCreateDialog.tsx Support "closed" polls whose votes are not visible until they are ended (#7842) 2022-02-21 10:21:35 +00:00
PowerSelector.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
ProgressBar.tsx Auto-fix lint errors 2021-06-29 13:11:58 +01:00
QRCode.tsx Auto-fix lint errors 2021-06-29 13:11:58 +01:00
ReplyChain.tsx Use AccessibleButton for 'In reply to' link button on ReplyChain (#8726) 2022-05-31 15:52:12 -06:00
ResizeHandle.tsx Eslint - require copyright header rule (#8514) 2022-05-06 09:09:28 +00:00
RoomAliasField.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
RoomFacePile.tsx Change spaceroomfacepile tooltip if memberlist is shown (#8571) 2022-05-12 15:47:19 +02:00
RoomName.tsx Prefer RoomStateEvent.Update where possible as it fires far less (#7878) 2022-02-24 14:39:25 +00:00
RoomTopic.tsx Add support for MD / HTML in room topics (#8215) 2022-06-07 14:20:32 -06:00
SearchWarning.tsx Improve the styling of search initialization errors. 2022-05-09 11:20:36 +02:00
ServerPicker.tsx Replace "Element" with a brand const (#8074) 2022-03-23 16:31:25 +00:00
SettingsFlag.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
Slider.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
SpellCheckLanguagesDropdown.tsx Run a minor code quality checker over the repo (#8524) 2022-05-09 22:52:05 +00:00
Spinner.tsx Auto fix 2021-10-22 17:23:37 -05:00
Spoiler.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
SSOButtons.tsx Update matrix-analytics-events to @matrix-org/analytics-events (#8778) 2022-06-07 20:08:36 +01:00
StyledCheckbox.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
StyledRadioButton.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
StyledRadioGroup.tsx Associate room alias warning with public option in settings (#7430) 2022-01-03 09:55:09 +01:00
SyntaxHighlight.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
Tag.tsx Extract Tag to its own component (#8309) 2022-04-19 09:52:20 +01:00
TagComposer.tsx Extract Tag to its own component (#8309) 2022-04-19 09:52:20 +01:00
TextWithTooltip.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
ToggleSwitch.tsx Auto fix 2021-10-22 17:23:37 -05:00
Tooltip.tsx Improve tooltip positioning 2022-05-12 14:05:55 +02:00
TooltipButton.tsx Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
TooltipTarget.tsx Use a default for ignoreHover when not supplied (#8617) 2022-05-16 20:26:19 -04:00
TruncatedList.tsx Run a minor code quality checker over the repo (#8524) 2022-05-09 22:52:05 +00:00
Validation.tsx Improve taken username warning in registration for when request fails (#7621) 2022-01-25 10:45:41 +00:00