diff --git a/scripts/package.sh b/scripts/package.sh index 6ad136a3..6aa0c982 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -1,3 +1,4 @@ +#!/bin/bash VERSION=$(jq -r ".version" package.json) PACKAGE=hydrogen-web-$VERSION.tar.gz yarn build diff --git a/src/lib.ts b/src/lib.ts index bf7679c6..9a8552c6 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -21,8 +21,10 @@ export {ConsoleReporter} from "./logging/ConsoleReporter"; export {Platform} from "./platform/web/Platform.js"; export {BlobHandle} from "./platform/web/dom/BlobHandle"; export {Client, LoadStatus} from "./matrix/Client.js"; +export {PasswordLoginMethod} from "./matrix/login/PasswordLoginMethod"; export {RoomStatus} from "./matrix/room/common"; export {FeatureSet, FeatureFlag} from "./features"; +export {KeyType} from "./matrix/ssss"; // export everything needed to observe state events on all rooms using session.observeRoomState export type {RoomStateHandler} from "./matrix/room/state/types"; export type {MemberChange} from "./matrix/room/members/RoomMember"; @@ -78,6 +80,7 @@ export {Navigation} from "./domain/navigation/Navigation.js"; export {ComposerViewModel} from "./domain/session/room/ComposerViewModel.js"; export {MessageComposer} from "./platform/web/ui/session/room/MessageComposer.js"; export {TemplateView} from "./platform/web/ui/general/TemplateView"; +export type {Builder} from "./platform/web/ui/general/TemplateView" export {ViewModel} from "./domain/ViewModel"; export {LoadingView} from "./platform/web/ui/general/LoadingView.js"; export {AvatarView} from "./platform/web/ui/AvatarView.js"; diff --git a/src/matrix/Session.js b/src/matrix/Session.js index 2d9ad66e..5283b2a9 100644 --- a/src/matrix/Session.js +++ b/src/matrix/Session.js @@ -261,7 +261,7 @@ export class Session { * Enable secret storage by providing the secret storage credential. * This will also see if there is a megolm key backup and try to enable that if so. * - * @param {string} type either "passphrase" or "recoverykey" + * @param {KeyType} type either KeyType.RecoveryKey (0) or KeyType.Passphrase (1) * @param {string} credential either the passphrase or the recovery key, depending on the type * @return {Promise} resolves or rejects after having tried to enable secret storage */