element-web/src
Thor Arne Johansen 6392759bec
Replace `SecurityCustomisations` with `CryptoSetupExtension` (#12342)
* Changed call sites from customisations/security to ModuleRunner.extensions

* Updated depenndecy and added tests

* Fixed style and formatting with prettier

* Fix according to Element PR comments

* Fixing issues raised in PR review

* Removed commented code. Improved encapsulation. Removed noisy logging

* Improved language of comment about calling the factory

* Refactor to get better encapsulation

* Find a better name. Provide explicit reset function. Provide more TSDoc

* Simplify mock for cryptoSetup, and add assertion for exception message.

* Remove unused className property. Adjust TSDoc comments

* Fix linting  and code style issues

* Added test to ensure we canregister anduse experimental extensions

* Fix linting and code-style issues

* Added test to ensure only on registration of experimental extensions

* Added test toensure call to getDehydratedDeviceCallback()

* Test what happens when there is no implementation

* Iterating cryptoSetup tests

* Lint/prettier fix

* Assert both branches when checking for dehydrationkey callback

* Update src/modules/ModuleRunner.ts

Language and formatting

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Update src/modules/ModuleRunner.ts

Reset by setting a fresh ExtensionsManager

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Update src/modules/ModuleRunner.ts

Use regular comment instead of TSDoc style comment

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Update test/MatrixClientPeg-test.ts

No need to extend the base class

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Update src/modules/ModuleRunner.ts

Fix spelling

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Update src/modules/ModuleRunner.ts

Fix spelling

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Update src/modules/ModuleRunner.ts

Fix TSDoc formatting

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Simplify mock setup

* Simplified mock and cleaned up a bit

* Keeping track of extensions is an implementation detail internal to ExtensionsManager.  Language and punctuation

* Addressed issues and comments from PR review

* Update src/modules/ModuleRunner.ts

Keep the flags to track implementations as direct properties

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Fix flattening of implementation map

* Update src/modules/ModuleRunner.ts

Fix whitespace

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2024-04-12 15:15:17 +00:00
..
@types Improve types for `sendEvent` (#12335) 2024-03-25 12:48:48 +00:00
accessibility Improve Forward Dialog a11y by switching to roving tab index interactions (#12306) 2024-03-08 14:45:15 +00:00
actions
async-components/views/dialogs Replace `SecurityCustomisations` with `CryptoSetupExtension` (#12342) 2024-04-12 15:15:17 +00:00
audio Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
autocomplete Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
components Replace `SecurityCustomisations` with `CryptoSetupExtension` (#12342) 2024-04-12 15:15:17 +00:00
contexts Improve AccessibleButton & related types (#12075) 2023-12-20 14:42:31 +00:00
customisations Reuse media content/info types from the js-sdk (#12308) 2024-03-11 09:30:00 +00:00
dispatcher Focus the thread panel when clicking on an item in the TAC (#12410) 2024-04-10 13:13:08 +00:00
editor Improve types for `sendEvent` (#12335) 2024-03-25 12:48:48 +00:00
effects
emojipicker
events Stop displaying verification done messages in timeline (#11932) 2023-12-01 09:12:38 +00:00
hooks Fix link modal not shown after access upgrade (#12411) 2024-04-12 13:27:21 +00:00
i18n/strings Add activity toggle for TAC (#12413) 2024-04-12 13:18:09 +00:00
indexing Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
integrations
mjolnir Improve types for `sendStateEvent` (#12331) 2024-03-20 14:27:29 +00:00
models Fix external guest access url for unencrypted rooms (#12345) 2024-03-28 12:25:00 +00:00
modules Replace `SecurityCustomisations` with `CryptoSetupExtension` (#12342) 2024-04-12 15:15:17 +00:00
notifications
performance
rageshake Add A-Element-R labels to rageshakes if rust (#12251) 2024-02-15 19:45:46 +00:00
resizer
settings Add activity toggle for TAC (#12413) 2024-04-12 13:18:09 +00:00
slash-commands Improve types for `sendEvent` (#12335) 2024-03-25 12:48:48 +00:00
stores TAC: Release Announcement (#12380) 2024-04-08 08:43:59 +00:00
toasts Replace `SecurityCustomisations` with `CryptoSetupExtension` (#12342) 2024-04-12 15:15:17 +00:00
usercontent
utils Allow popping out a Jitsi widget to respect Desktop `web_base_url` config (#12376) 2024-03-26 16:27:11 +00:00
voice-broadcast Improve types for `sendEvent` (#12335) 2024-03-25 12:48:48 +00:00
widgets Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
workers
AddThreepid.ts
AsyncWrapper.tsx
Avatar.ts
BasePlatform.ts Fix Native OIDC for Element Desktop (#12253) 2024-02-19 15:10:11 +00:00
BlurhashEncoder.ts
ContentMessages.ts Improve types for `sendEvent` (#12335) 2024-03-25 12:48:48 +00:00
DateUtils.ts
DecryptionFailureTracker.ts Increase decryption failure grace period (#12298) 2024-02-29 15:29:59 +00:00
DeviceListener.ts
Editing.ts
HtmlUtils.tsx Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
IConfigOptions.ts Call guest access link creation to join calls as a non registered user via the EC SPA (#12259) 2024-03-07 15:38:53 +00:00
IdentityAuthClient.tsx Fix Identity Server terms accepting not working as expected (#12109) 2024-01-08 10:27:03 +00:00
ImageUtils.ts
KeyBindingsDefaults.ts
KeyBindingsManager.ts
Keyboard.ts
LegacyCallHandler.tsx
Lifecycle.ts Replace `SecurityCustomisations` with `CryptoSetupExtension` (#12342) 2024-04-12 15:15:17 +00:00
Livestream.ts
Login.ts Replace `SecurityCustomisations` with `CryptoSetupExtension` (#12342) 2024-04-12 15:15:17 +00:00
Markdown.ts
MatrixClientPeg.ts Replace `SecurityCustomisations` with `CryptoSetupExtension` (#12342) 2024-04-12 15:15:17 +00:00
MediaDeviceHandler.ts
Modal.tsx Refine styles of menus, toasts, popovers, and modals (#12332) 2024-03-13 13:38:32 +00:00
NodeAnimator.tsx Fix regression around read receipt animation from refs changes (#12100) 2024-01-03 11:36:11 +00:00
Notifier.ts Remove Cypress & Playwright in their entirety (#12145) 2024-01-16 09:48:49 +00:00
PageTypes.ts
PasswordReset.ts
PlatformPeg.ts
PosthogAnalytics.ts
PosthogTrackers.ts Update dependency @vector-im/compound-web to v0.9.4 (#11891) 2023-12-14 11:10:01 +00:00
Presence.ts
Registration.tsx
Resend.ts Switch to importing models/Room from main js-sdk export (#11361) 2023-08-04 07:36:16 +00:00
Roles.ts
RoomAliasCache.ts
RoomInvite.tsx
RoomNotifs.ts Mark as Unread (#12254) 2024-03-19 13:28:20 +00:00
Rooms.ts
ScalarAuthClient.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
ScalarMessaging.ts Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
SdkConfig.ts
Searching.ts
SecurityManager.ts Replace `SecurityCustomisations` with `CryptoSetupExtension` (#12342) 2024-04-12 15:15:17 +00:00
SendHistoryManager.ts
SlashCommands.tsx Merge branch 'develop' into andybalaam/stas-demydiuk-membership-type3 2024-03-20 17:25:23 +00:00
SlidingSyncManager.ts Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
Terms.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
TextForEvent.tsx Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
Typeguards.ts
Unread.ts Pop out of Threads Activity Centre (#12136) 2024-02-07 13:49:40 +00:00
UserActivity.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
UserAddress.ts
Views.ts
VoipUserMapper.ts Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
WhoIsTyping.ts
WorkerManager.ts
boundThreepids.ts
call-types.ts Extract types for re-use in matrix-js-sdk.d.ts (#12350) 2024-03-19 10:19:38 +00:00
createRoom.ts Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
email.ts
identifiers.ts
index.ts
languageHandler.tsx
linkify-matrix.ts Enable redirected media by default (#12142) 2024-02-11 07:32:57 +00:00
phonenumber.ts
sendTimePerformanceMetrics.ts
sentry.ts Update dependency @sentry/browser to v7.94.1 (#12171) 2024-01-24 09:23:54 +00:00
shouldHideEvent.ts Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
theme.ts Revert "Make EC widget theme reactive - Update widget url when the theme chan…" (#12382) 2024-03-28 12:04:14 +00:00
verification.ts Remove references to `matrix-js-sdk/src/crypto/verification` (#12365) 2024-03-25 17:44:45 +00:00