mirror of
https://github.com/vector-im/element-web.git
synced 2026-03-02 12:01:41 +01:00
* Switch shared-components from yarn classic to pnpm Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch element-web from yarn classic to pnpm Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch CI to pnpm Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update docs & comments Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Hold back postcss to match yarn.lock & use workspace protocol Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tweak CI Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Rid the world of `$(res)` Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch to type=module Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix module import Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Make knip happy Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update playwright imports Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Make docker build happy Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Remove stale params Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix badly formatted logging Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch to lodash-es Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Make jest happier Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch element-web to ESM Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update testcontainers imports Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix modernizr cjs Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix modernizr cjs ignore files Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Move modernizr sonar exclusion to exclude everything Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update playwright tests for esm compat Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Add pnpm-link utility Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Test matrix-web-i18n Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Discard changes to src/vector/index.ts * Update playwright-common Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Use catalogs Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Improve pnpm-link script Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Use pnpm import to regenerate lockfile from yarn.lock Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
90 lines
5.0 KiB
Diff
90 lines
5.0 KiB
Diff
diff --git a/lib/ModuleApi.d.ts b/lib/ModuleApi.d.ts
|
|
index 917a7fc073ea208ed8e45ccca994ae2ca0493bb8..a2710c6f99b1c6a9186232f3d1aa4d5e8a903062 100644
|
|
--- a/lib/ModuleApi.d.ts
|
|
+++ b/lib/ModuleApi.d.ts
|
|
@@ -37,7 +37,7 @@ export interface ModuleApi {
|
|
* @returns Whether the user submitted the dialog or closed it, and the model returned by the
|
|
* dialog component if submitted.
|
|
*/
|
|
- openDialog<M extends object, P extends DialogProps = DialogProps, C extends DialogContent<P> = DialogContent<P>>(initialTitleOrOptions: string | ModuleUiDialogOptions, body: (props: P, ref: React.RefObject<C>) => React.ReactNode, props?: Omit<P, keyof DialogProps>): Promise<{
|
|
+ openDialog<M extends object, P extends DialogProps = DialogProps, C extends DialogContent<P> = DialogContent<P>>(initialTitleOrOptions: string | ModuleUiDialogOptions, body: (props: P, ref: React.RefObject<C | null>) => React.ReactNode, props?: Omit<P, keyof DialogProps>): Promise<{
|
|
didOkOrSubmit: boolean;
|
|
model: M;
|
|
}>;
|
|
diff --git a/lib/lifecycles/CryptoSetupExtensions.d.ts b/lib/lifecycles/CryptoSetupExtensions.d.ts
|
|
index cb5f2e5224f36e4a258caf782d49bf925dd552b9..d3474c6847c0c65e953219bf6616c1d8a2c37b62 100644
|
|
--- a/lib/lifecycles/CryptoSetupExtensions.d.ts
|
|
+++ b/lib/lifecycles/CryptoSetupExtensions.d.ts
|
|
@@ -66,8 +66,8 @@ export interface SetupEncryptionStoreProjection {
|
|
export interface ProvideCryptoSetupExtensions {
|
|
examineLoginResponse(response: any, credentials: ExtendedMatrixClientCreds): void;
|
|
persistCredentials(credentials: ExtendedMatrixClientCreds): void;
|
|
- getSecretStorageKey(): Uint8Array | null;
|
|
- createSecretStorageKey(): Uint8Array | null;
|
|
+ getSecretStorageKey(): Uint8Array<ArrayBuffer> | null;
|
|
+ createSecretStorageKey(): Uint8Array<ArrayBuffer> | null;
|
|
catchAccessSecretStorageError(e: Error): void;
|
|
setupEncryptionNeeded: (args: CryptoSetupArgs) => boolean;
|
|
/** @deprecated This callback is no longer used by matrix-react-sdk */
|
|
@@ -77,8 +77,8 @@ export interface ProvideCryptoSetupExtensions {
|
|
export declare abstract class CryptoSetupExtensionsBase implements ProvideCryptoSetupExtensions {
|
|
abstract examineLoginResponse(response: any, credentials: ExtendedMatrixClientCreds): void;
|
|
abstract persistCredentials(credentials: ExtendedMatrixClientCreds): void;
|
|
- abstract getSecretStorageKey(): Uint8Array | null;
|
|
- abstract createSecretStorageKey(): Uint8Array | null;
|
|
+ abstract getSecretStorageKey(): Uint8Array<ArrayBuffer> | null;
|
|
+ abstract createSecretStorageKey(): Uint8Array<ArrayBuffer> | null;
|
|
abstract catchAccessSecretStorageError(e: Error): void;
|
|
abstract setupEncryptionNeeded(args: CryptoSetupArgs): boolean;
|
|
/** `getDehydrationKeyCallback` is no longer used; we provide an empty impl for type compatibility. */
|
|
@@ -98,8 +98,8 @@ export declare class DefaultCryptoSetupExtensions extends CryptoSetupExtensionsB
|
|
SHOW_ENCRYPTION_SETUP_UI: boolean;
|
|
examineLoginResponse(response: any, credentials: ExtendedMatrixClientCreds): void;
|
|
persistCredentials(credentials: ExtendedMatrixClientCreds): void;
|
|
- getSecretStorageKey(): Uint8Array | null;
|
|
- createSecretStorageKey(): Uint8Array | null;
|
|
+ getSecretStorageKey(): Uint8Array<ArrayBuffer> | null;
|
|
+ createSecretStorageKey(): Uint8Array<ArrayBuffer> | null;
|
|
catchAccessSecretStorageError(e: Error): void;
|
|
setupEncryptionNeeded(args: CryptoSetupArgs): boolean;
|
|
getDehydrationKeyCallback(): ((keyInfo: SecretStorageKeyDescription, checkFunc: (key: Uint8Array) => void) => Promise<Uint8Array>) | null;
|
|
diff --git a/lib/lifecycles/CryptoSetupExtensions.js b/lib/lifecycles/CryptoSetupExtensions.js
|
|
index 5d422ed500ac5846e713a8e8ecddb3be75357b60..011c19fafd06d1f203df1383360c52a45e387dcf 100644
|
|
--- a/lib/lifecycles/CryptoSetupExtensions.js
|
|
+++ b/lib/lifecycles/CryptoSetupExtensions.js
|
|
@@ -124,34 +124,28 @@ var DefaultCryptoSetupExtensions = /*#__PURE__*/function (_CryptoSetupExtension)
|
|
(0, _createClass2["default"])(DefaultCryptoSetupExtensions, [{
|
|
key: "examineLoginResponse",
|
|
value: function examineLoginResponse(response, credentials) {
|
|
- console.log("Default empty examineLoginResponse() => void");
|
|
}
|
|
}, {
|
|
key: "persistCredentials",
|
|
value: function persistCredentials(credentials) {
|
|
- console.log("Default empty persistCredentials() => void");
|
|
}
|
|
}, {
|
|
key: "getSecretStorageKey",
|
|
value: function getSecretStorageKey() {
|
|
- console.log("Default empty getSecretStorageKey() => null");
|
|
return null;
|
|
}
|
|
}, {
|
|
key: "createSecretStorageKey",
|
|
value: function createSecretStorageKey() {
|
|
- console.log("Default empty createSecretStorageKey() => null");
|
|
return null;
|
|
}
|
|
}, {
|
|
key: "catchAccessSecretStorageError",
|
|
value: function catchAccessSecretStorageError(e) {
|
|
- console.log("Default catchAccessSecretStorageError() => void");
|
|
}
|
|
}, {
|
|
key: "setupEncryptionNeeded",
|
|
value: function setupEncryptionNeeded(args) {
|
|
- console.log("Default setupEncryptionNeeded() => false");
|
|
return false;
|
|
}
|
|
}, {
|