Update all non-major dependencies (#29194)

* Update all non-major dependencies

* Delint

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Prettier

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
renovate[bot] 2025-02-05 13:25:06 +00:00 committed by GitHub
parent 7cafa0d1a4
commit 4a381c2a10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1404 changed files with 4120 additions and 3708 deletions

View File

@ -9,7 +9,7 @@ import * as fs from "fs";
import * as childProcess from "child_process"; import * as childProcess from "child_process";
import * as semver from "semver"; import * as semver from "semver";
import { BuildConfig } from "./BuildConfig"; import { type BuildConfig } from "./BuildConfig";
// This expects to be run from ./scripts/install.ts // This expects to be run from ./scripts/install.ts

View File

@ -11,7 +11,7 @@ import type { Locator, Page } from "@playwright/test";
import { test, expect } from "../../element-web-test"; import { test, expect } from "../../element-web-test";
import { SettingLevel } from "../../../src/settings/SettingLevel"; import { SettingLevel } from "../../../src/settings/SettingLevel";
import { Layout } from "../../../src/settings/enums/Layout"; import { Layout } from "../../../src/settings/enums/Layout";
import { ElementAppPage } from "../../pages/ElementAppPage"; import { type ElementAppPage } from "../../pages/ElementAppPage";
// Find and click "Reply" button // Find and click "Reply" button
const clickButtonReply = async (tile: Locator) => { const clickButtonReply = async (tile: Locator) => {

View File

@ -16,8 +16,8 @@ import {
enableKeyBackup, enableKeyBackup,
verify, verify,
} from "./utils"; } from "./utils";
import { Bot } from "../../pages/bot"; import { type Bot } from "../../pages/bot";
import { ElementAppPage } from "../../pages/ElementAppPage"; import { type ElementAppPage } from "../../pages/ElementAppPage";
import { isDendrite } from "../../plugins/homeserver/dendrite"; import { isDendrite } from "../../plugins/homeserver/dendrite";
const checkDMRoom = async (page: Page) => { const checkDMRoom = async (page: Page) => {

View File

@ -6,13 +6,13 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Locator, type Page } from "@playwright/test"; import { type Locator, type Page } from "@playwright/test";
import { test, expect } from "../../element-web-test"; import { test, expect } from "../../element-web-test";
import { viewRoomSummaryByName } from "../right-panel/utils"; import { viewRoomSummaryByName } from "../right-panel/utils";
import { isDendrite } from "../../plugins/homeserver/dendrite"; import { isDendrite } from "../../plugins/homeserver/dendrite";
import { completeCreateSecretStorageDialog, createBot, logIntoElement } from "./utils.ts"; import { completeCreateSecretStorageDialog, createBot, logIntoElement } from "./utils.ts";
import { Client } from "../../pages/client.ts"; import { type Client } from "../../pages/client.ts";
const ROOM_NAME = "Test room"; const ROOM_NAME = "Test room";
const NAME = "Alice"; const NAME = "Alice";

View File

@ -20,7 +20,7 @@ import {
logIntoElement, logIntoElement,
waitForVerificationRequest, waitForVerificationRequest,
} from "./utils"; } from "./utils";
import { Bot } from "../../pages/bot"; import { type Bot } from "../../pages/bot";
test.describe("Device verification", { tag: "@no-webkit" }, () => { test.describe("Device verification", { tag: "@no-webkit" }, () => {
let aliceBotClient: Bot; let aliceBotClient: Bot;

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Locator } from "@playwright/test"; import { type Locator } from "@playwright/test";
import { expect, test } from "../../element-web-test"; import { expect, test } from "../../element-web-test";
import { import {
@ -19,7 +19,7 @@ import {
verify, verify,
} from "./utils"; } from "./utils";
import { bootstrapCrossSigningForClient } from "../../pages/client.ts"; import { bootstrapCrossSigningForClient } from "../../pages/client.ts";
import { ElementAppPage } from "../../pages/ElementAppPage.ts"; import { type ElementAppPage } from "../../pages/ElementAppPage.ts";
test.describe("Cryptography", function () { test.describe("Cryptography", function () {
test.use({ test.use({

View File

@ -5,7 +5,7 @@
* Please see LICENSE files in the repository root for full details. * Please see LICENSE files in the repository root for full details.
*/ */
import { GeneratedSecretStorageKey } from "matrix-js-sdk/src/crypto-api"; import { type GeneratedSecretStorageKey } from "matrix-js-sdk/src/crypto-api";
import { test, expect } from "../../element-web-test"; import { test, expect } from "../../element-web-test";
import { createBot, deleteCachedSecrets, logIntoElement } from "./utils"; import { createBot, deleteCachedSecrets, logIntoElement } from "./utils";

View File

@ -11,7 +11,7 @@ import { type Preset, type Visibility } from "matrix-js-sdk/src/matrix";
import type { Page } from "@playwright/test"; import type { Page } from "@playwright/test";
import { test, expect } from "../../element-web-test"; import { test, expect } from "../../element-web-test";
import { doTwoWaySasVerification, awaitVerifier } from "./utils"; import { doTwoWaySasVerification, awaitVerifier } from "./utils";
import { Client } from "../../pages/client"; import { type Client } from "../../pages/client";
test.describe("User verification", () => { test.describe("User verification", () => {
// note that there are other tests that check user verification works in `crypto.spec.ts`. // note that there are other tests that check user verification works in `crypto.spec.ts`.

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { expect, JSHandle, type Page } from "@playwright/test"; import { expect, type JSHandle, type Page } from "@playwright/test";
import type { ICreateRoomOpts, MatrixClient } from "matrix-js-sdk/src/matrix"; import type { ICreateRoomOpts, MatrixClient } from "matrix-js-sdk/src/matrix";
import type { import type {
@ -18,9 +18,9 @@ import type {
Verifier, Verifier,
VerifierEvent, VerifierEvent,
} from "matrix-js-sdk/src/crypto-api"; } from "matrix-js-sdk/src/crypto-api";
import { Credentials, HomeserverInstance } from "../../plugins/homeserver"; import { type Credentials, type HomeserverInstance } from "../../plugins/homeserver";
import { Client } from "../../pages/client"; import { type Client } from "../../pages/client";
import { ElementAppPage } from "../../pages/ElementAppPage"; import { type ElementAppPage } from "../../pages/ElementAppPage";
import { Bot } from "../../pages/bot"; import { Bot } from "../../pages/bot";
/** /**

View File

@ -5,10 +5,10 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { APIRequestContext } from "playwright-core"; import { type APIRequestContext } from "playwright-core";
import { KeyBackupInfo } from "matrix-js-sdk/src/crypto-api"; import { type KeyBackupInfo } from "matrix-js-sdk/src/crypto-api";
import { HomeserverInstance } from "../plugins/homeserver"; import { type HomeserverInstance } from "../plugins/homeserver";
import { ClientServerApi } from "../plugins/utils/api.ts"; import { ClientServerApi } from "../plugins/utils/api.ts";
/** /**

View File

@ -6,11 +6,11 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Locator, Page } from "@playwright/test"; import { type Locator, type Page } from "@playwright/test";
import type { EventType, IContent, ISendEventResponse, MsgType, Visibility } from "matrix-js-sdk/src/matrix"; import type { EventType, IContent, ISendEventResponse, MsgType, Visibility } from "matrix-js-sdk/src/matrix";
import { expect, test } from "../../element-web-test"; import { expect, test } from "../../element-web-test";
import { ElementAppPage } from "../../pages/ElementAppPage"; import { type ElementAppPage } from "../../pages/ElementAppPage";
import { SettingLevel } from "../../../src/settings/SettingLevel"; import { SettingLevel } from "../../../src/settings/SettingLevel";
import { isDendrite } from "../../plugins/homeserver/dendrite"; import { isDendrite } from "../../plugins/homeserver/dendrite";

View File

@ -10,7 +10,7 @@ import { expect, test as base } from "../../element-web-test";
import { selectHomeserver } from "../utils"; import { selectHomeserver } from "../utils";
import { emailHomeserver } from "../../plugins/homeserver/synapse/emailHomeserver.ts"; import { emailHomeserver } from "../../plugins/homeserver/synapse/emailHomeserver.ts";
import { isDendrite } from "../../plugins/homeserver/dendrite"; import { isDendrite } from "../../plugins/homeserver/dendrite";
import { Credentials } from "../../plugins/homeserver"; import { type Credentials } from "../../plugins/homeserver";
const email = "user@nowhere.dummy"; const email = "user@nowhere.dummy";

View File

@ -10,7 +10,7 @@ import { Bot } from "../../pages/bot";
import type { Locator, Page } from "@playwright/test"; import type { Locator, Page } from "@playwright/test";
import type { ElementAppPage } from "../../pages/ElementAppPage"; import type { ElementAppPage } from "../../pages/ElementAppPage";
import { test, expect } from "../../element-web-test"; import { test, expect } from "../../element-web-test";
import { Credentials } from "../../plugins/homeserver"; import { type Credentials } from "../../plugins/homeserver";
import { isDendrite } from "../../plugins/homeserver/dendrite"; import { isDendrite } from "../../plugins/homeserver/dendrite";
test.describe("Lazy Loading", () => { test.describe("Lazy Loading", () => {

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Locator, Page } from "@playwright/test"; import { type Locator, type Page } from "@playwright/test";
import { test, expect } from "../../element-web-test"; import { test, expect } from "../../element-web-test";

View File

@ -6,11 +6,11 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Page } from "playwright-core"; import { type Page } from "playwright-core";
import { expect, test } from "../../element-web-test"; import { expect, test } from "../../element-web-test";
import { selectHomeserver } from "../utils"; import { selectHomeserver } from "../utils";
import { Credentials, HomeserverInstance } from "../../plugins/homeserver"; import { type Credentials, type HomeserverInstance } from "../../plugins/homeserver";
import { consentHomeserver } from "../../plugins/homeserver/synapse/consentHomeserver.ts"; import { consentHomeserver } from "../../plugins/homeserver/synapse/consentHomeserver.ts";
import { isDendrite } from "../../plugins/homeserver/dendrite"; import { isDendrite } from "../../plugins/homeserver/dendrite";

View File

@ -6,9 +6,9 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Page, expect, TestInfo } from "@playwright/test"; import { type Page, expect, type TestInfo } from "@playwright/test";
import { Credentials, HomeserverInstance } from "../../plugins/homeserver"; import { type Credentials, type HomeserverInstance } from "../../plugins/homeserver";
/** Visit the login page, choose to log in with "OAuth test", register a new account, and redirect back to Element /** Visit the login page, choose to log in with "OAuth test", register a new account, and redirect back to Element
*/ */

View File

@ -8,7 +8,7 @@ Please see LICENSE files in the repository root for full details.
/* See readme.md for tips on writing these tests. */ /* See readme.md for tips on writing these tests. */
import { Locator, Page } from "playwright-core"; import { type Locator, type Page } from "playwright-core";
import { test, expect } from "../../element-web-test"; import { test, expect } from "../../element-web-test";

View File

@ -6,8 +6,8 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { MailpitClient } from "mailpit-api"; import { type MailpitClient } from "mailpit-api";
import { Page } from "@playwright/test"; import { type Page } from "@playwright/test";
import { expect } from "../../element-web-test"; import { expect } from "../../element-web-test";

View File

@ -8,7 +8,7 @@ Please see LICENSE files in the repository root for full details.
*/ */
import { test as base, expect } from "../../element-web-test"; import { test as base, expect } from "../../element-web-test";
import { Credentials } from "../../plugins/homeserver"; import { type Credentials } from "../../plugins/homeserver";
import { isDendrite } from "../../plugins/homeserver/dendrite"; import { isDendrite } from "../../plugins/homeserver/dendrite";
const test = base.extend<{ const test = base.extend<{

View File

@ -6,12 +6,12 @@
* Please see LICENSE files in the repository root for full details. * Please see LICENSE files in the repository root for full details.
*/ */
import { Page } from "@playwright/test"; import { type Page } from "@playwright/test";
import { test as base, expect } from "../../element-web-test"; import { test as base, expect } from "../../element-web-test";
import { Client } from "../../pages/client"; import { type Client } from "../../pages/client";
import { ElementAppPage } from "../../pages/ElementAppPage"; import { type ElementAppPage } from "../../pages/ElementAppPage";
import { Bot } from "../../pages/bot"; import { type Bot } from "../../pages/bot";
type RoomRef = { name: string; roomId: string }; type RoomRef = { name: string; roomId: string };

View File

@ -8,7 +8,7 @@ Please see LICENSE files in the repository root for full details.
import { test, expect } from "../../element-web-test"; import { test, expect } from "../../element-web-test";
import type { Bot } from "../../pages/bot"; import type { Bot } from "../../pages/bot";
import type { Client } from "../../pages/client"; import type { Client } from "../../pages/client";
import { ElementAppPage } from "../../pages/ElementAppPage"; import { type ElementAppPage } from "../../pages/ElementAppPage";
test.describe("Poll history", () => { test.describe("Poll history", () => {
type CreatePollOptions = { type CreatePollOptions = {

View File

@ -9,9 +9,9 @@ Please see LICENSE files in the repository root for full details.
import type { JSHandle, Page } from "@playwright/test"; import type { JSHandle, Page } from "@playwright/test";
import type { MatrixEvent, Room, IndexedDBStore, ReceiptType } from "matrix-js-sdk/src/matrix"; import type { MatrixEvent, Room, IndexedDBStore, ReceiptType } from "matrix-js-sdk/src/matrix";
import { test as base, expect } from "../../element-web-test"; import { test as base, expect } from "../../element-web-test";
import { Bot } from "../../pages/bot"; import { type Bot } from "../../pages/bot";
import { Client } from "../../pages/client"; import { type Client } from "../../pages/client";
import { ElementAppPage } from "../../pages/ElementAppPage"; import { type ElementAppPage } from "../../pages/ElementAppPage";
type RoomRef = { name: string; roomId: string }; type RoomRef = { name: string; roomId: string };

View File

@ -9,8 +9,8 @@ Please see LICENSE files in the repository root for full details.
import type { JSHandle } from "@playwright/test"; import type { JSHandle } from "@playwright/test";
import type { MatrixEvent, ISendEventResponse, ReceiptType } from "matrix-js-sdk/src/matrix"; import type { MatrixEvent, ISendEventResponse, ReceiptType } from "matrix-js-sdk/src/matrix";
import { expect } from "../../element-web-test"; import { expect } from "../../element-web-test";
import { ElementAppPage } from "../../pages/ElementAppPage"; import { type ElementAppPage } from "../../pages/ElementAppPage";
import { Bot } from "../../pages/bot"; import { type Bot } from "../../pages/bot";
import { test } from "."; import { test } from ".";
import { isDendrite } from "../../plugins/homeserver/dendrite"; import { isDendrite } from "../../plugins/homeserver/dendrite";

View File

@ -6,7 +6,7 @@
* Please see LICENSE files in the repository root for full details. * Please see LICENSE files in the repository root for full details.
*/ */
import { Page } from "@playwright/test"; import { type Page } from "@playwright/test";
import { test as base, expect } from "../../element-web-test"; import { test as base, expect } from "../../element-web-test";

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Download, type Page } from "@playwright/test"; import { type Download, type Page } from "@playwright/test";
import { test, expect } from "../../element-web-test"; import { test, expect } from "../../element-web-test";
import { viewRoomSummaryByName } from "./utils"; import { viewRoomSummaryByName } from "./utils";

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Locator, type Page } from "@playwright/test"; import { type Locator, type Page } from "@playwright/test";
import { test, expect } from "../../element-web-test"; import { test, expect } from "../../element-web-test";
import { checkRoomSummaryCard, viewRoomSummaryByName } from "./utils"; import { checkRoomSummaryCard, viewRoomSummaryByName } from "./utils";

View File

@ -8,7 +8,7 @@ Please see LICENSE files in the repository root for full details.
import { type Page, expect } from "@playwright/test"; import { type Page, expect } from "@playwright/test";
import { ElementAppPage } from "../../pages/ElementAppPage"; import { type ElementAppPage } from "../../pages/ElementAppPage";
export async function viewRoomSummaryByName(page: Page, app: ElementAppPage, name: string): Promise<void> { export async function viewRoomSummaryByName(page: Page, app: ElementAppPage, name: string): Promise<void> {
await app.viewRoomByName(name); await app.viewRoomByName(name);

View File

@ -6,10 +6,10 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Page } from "@playwright/test"; import { type Page } from "@playwright/test";
import { test, expect } from "../../element-web-test"; import { test, expect } from "../../element-web-test";
import { ElementAppPage } from "../../pages/ElementAppPage"; import { type ElementAppPage } from "../../pages/ElementAppPage";
test.describe("Room Header", () => { test.describe("Room Header", () => {
test.use({ test.use({

View File

@ -6,9 +6,9 @@
* Please see LICENSE files in the repository root for full details. * Please see LICENSE files in the repository root for full details.
*/ */
import { Locator, Page } from "@playwright/test"; import { type Locator, type Page } from "@playwright/test";
import { ElementAppPage } from "../../../pages/ElementAppPage"; import { type ElementAppPage } from "../../../pages/ElementAppPage";
import { test as base, expect } from "../../../element-web-test"; import { test as base, expect } from "../../../element-web-test";
import { SettingLevel } from "../../../../src/settings/SettingLevel"; import { SettingLevel } from "../../../../src/settings/SettingLevel";
import { Layout } from "../../../../src/settings/enums/Layout"; import { Layout } from "../../../../src/settings/enums/Layout";

View File

@ -5,7 +5,7 @@
* Please see LICENSE files in the repository root for full details. * Please see LICENSE files in the repository root for full details.
*/ */
import { GeneratedSecretStorageKey } from "matrix-js-sdk/src/crypto-api"; import { type GeneratedSecretStorageKey } from "matrix-js-sdk/src/crypto-api";
import { test, expect } from "."; import { test, expect } from ".";
import { import {

View File

@ -5,10 +5,10 @@
* Please see LICENSE files in the repository root for full details. * Please see LICENSE files in the repository root for full details.
*/ */
import { Page } from "@playwright/test"; import { type Page } from "@playwright/test";
import { GeneratedSecretStorageKey } from "matrix-js-sdk/src/crypto-api"; import { type GeneratedSecretStorageKey } from "matrix-js-sdk/src/crypto-api";
import { ElementAppPage } from "../../../pages/ElementAppPage"; import { type ElementAppPage } from "../../../pages/ElementAppPage";
import { test as base, expect } from "../../../element-web-test"; import { test as base, expect } from "../../../element-web-test";
export { expect }; export { expect };

View File

@ -6,7 +6,7 @@
* Please see LICENSE files in the repository root for full details. * Please see LICENSE files in the repository root for full details.
*/ */
import { Locator } from "@playwright/test"; import { type Locator } from "@playwright/test";
import { test, expect } from "../../element-web-test"; import { test, expect } from "../../element-web-test";

View File

@ -6,8 +6,8 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Page, Request } from "@playwright/test"; import { type Page, type Request } from "@playwright/test";
import { GenericContainer, StartedTestContainer, Wait } from "testcontainers"; import { GenericContainer, type StartedTestContainer, Wait } from "testcontainers";
import { test as base, expect } from "../../element-web-test"; import { test as base, expect } from "../../element-web-test";
import type { ElementAppPage } from "../../pages/ElementAppPage"; import type { ElementAppPage } from "../../pages/ElementAppPage";

View File

@ -9,7 +9,7 @@ Please see LICENSE files in the repository root for full details.
import type { Locator, Page } from "@playwright/test"; import type { Locator, Page } from "@playwright/test";
import { test, expect } from "../../element-web-test"; import { test, expect } from "../../element-web-test";
import type { Preset, ICreateRoomOpts } from "matrix-js-sdk/src/matrix"; import type { Preset, ICreateRoomOpts } from "matrix-js-sdk/src/matrix";
import { ElementAppPage } from "../../pages/ElementAppPage"; import { type ElementAppPage } from "../../pages/ElementAppPage";
import { isDendrite } from "../../plugins/homeserver/dendrite"; import { isDendrite } from "../../plugins/homeserver/dendrite";
async function openSpaceCreateMenu(page: Page): Promise<Locator> { async function openSpaceCreateMenu(page: Page): Promise<Locator> {

View File

@ -6,14 +6,14 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { JSHandle, Locator, Page } from "@playwright/test"; import { type JSHandle, type Locator, type Page } from "@playwright/test";
import type { MatrixEvent, IContent, Room } from "matrix-js-sdk/src/matrix"; import type { MatrixEvent, IContent, Room } from "matrix-js-sdk/src/matrix";
import { test as base, expect } from "../../../element-web-test"; import { test as base, expect } from "../../../element-web-test";
import { Bot } from "../../../pages/bot"; import { type Bot } from "../../../pages/bot";
import { Client } from "../../../pages/client"; import { type Client } from "../../../pages/client";
import { ElementAppPage } from "../../../pages/ElementAppPage"; import { type ElementAppPage } from "../../../pages/ElementAppPage";
import { Credentials } from "../../../plugins/homeserver"; import { type Credentials } from "../../../plugins/homeserver";
type RoomRef = { name: string; roomId: string }; type RoomRef = { name: string; roomId: string };

View File

@ -13,8 +13,8 @@ import type { ISendEventResponse, EventType, MsgType } from "matrix-js-sdk/src/m
import { test, expect } from "../../element-web-test"; import { test, expect } from "../../element-web-test";
import { SettingLevel } from "../../../src/settings/SettingLevel"; import { SettingLevel } from "../../../src/settings/SettingLevel";
import { Layout } from "../../../src/settings/enums/Layout"; import { Layout } from "../../../src/settings/enums/Layout";
import { Client } from "../../pages/client"; import { type Client } from "../../pages/client";
import { ElementAppPage } from "../../pages/ElementAppPage"; import { type ElementAppPage } from "../../pages/ElementAppPage";
import { Bot } from "../../pages/bot"; import { Bot } from "../../pages/bot";
// The avatar size used in the timeline // The avatar size used in the timeline

View File

@ -12,7 +12,7 @@ import { uniqueId } from "lodash";
import { expect, type Page } from "@playwright/test"; import { expect, type Page } from "@playwright/test";
import type { ClientEvent, MatrixEvent, Room } from "matrix-js-sdk/src/matrix"; import type { ClientEvent, MatrixEvent, Room } from "matrix-js-sdk/src/matrix";
import { Client } from "../pages/client"; import { type Client } from "../pages/client";
/** /**
* Resolves when room state matches predicate. * Resolves when room state matches predicate.

View File

@ -10,8 +10,8 @@ import * as fs from "node:fs";
import type { Page } from "@playwright/test"; import type { Page } from "@playwright/test";
import { test, expect } from "../../element-web-test"; import { test, expect } from "../../element-web-test";
import { ElementAppPage } from "../../pages/ElementAppPage"; import { type ElementAppPage } from "../../pages/ElementAppPage";
import { Credentials } from "../../plugins/homeserver"; import { type Credentials } from "../../plugins/homeserver";
import type { UserWidget } from "../../../src/utils/WidgetUtils-types.ts"; import type { UserWidget } from "../../../src/utils/WidgetUtils-types.ts";
const STICKER_PICKER_WIDGET_ID = "fake-sticker-picker"; const STICKER_PICKER_WIDGET_ID = "fake-sticker-picker";

View File

@ -11,7 +11,7 @@ Please see LICENSE files in the repository root for full details.
import type { IWidget } from "matrix-widget-api/src/interfaces/IWidget"; import type { IWidget } from "matrix-widget-api/src/interfaces/IWidget";
import type { MatrixEvent, RoomStateEvent } from "matrix-js-sdk/src/matrix"; import type { MatrixEvent, RoomStateEvent } from "matrix-js-sdk/src/matrix";
import { test, expect } from "../../element-web-test"; import { test, expect } from "../../element-web-test";
import { Client } from "../../pages/client"; import { type Client } from "../../pages/client";
const DEMO_WIDGET_ID = "demo-widget-id"; const DEMO_WIDGET_ID = "demo-widget-id";
const DEMO_WIDGET_NAME = "Demo Widget"; const DEMO_WIDGET_NAME = "Demo Widget";

View File

@ -8,12 +8,12 @@ Please see LICENSE files in the repository root for full details.
import { import {
expect as baseExpect, expect as baseExpect,
Locator, type Locator,
Page, type Page,
ExpectMatcherState, type ExpectMatcherState,
ElementHandle, type ElementHandle,
PlaywrightTestArgs, type PlaywrightTestArgs,
Fixtures as _Fixtures, type Fixtures as _Fixtures,
} from "@playwright/test"; } from "@playwright/test";
import { sanitizeForFilePath } from "playwright-core/lib/utils"; import { sanitizeForFilePath } from "playwright-core/lib/utils";
import AxeBuilder from "@axe-core/playwright"; import AxeBuilder from "@axe-core/playwright";
@ -21,13 +21,13 @@ import _ from "lodash";
import { extname } from "node:path"; import { extname } from "node:path";
import type { IConfigOptions } from "../src/IConfigOptions"; import type { IConfigOptions } from "../src/IConfigOptions";
import { Credentials } from "./plugins/homeserver"; import { type Credentials } from "./plugins/homeserver";
import { ElementAppPage } from "./pages/ElementAppPage"; import { ElementAppPage } from "./pages/ElementAppPage";
import { Crypto } from "./pages/crypto"; import { Crypto } from "./pages/crypto";
import { Toasts } from "./pages/toasts"; import { Toasts } from "./pages/toasts";
import { Bot, CreateBotOpts } from "./pages/bot"; import { Bot, type CreateBotOpts } from "./pages/bot";
import { Webserver } from "./plugins/webserver"; import { Webserver } from "./plugins/webserver";
import { Options, Services, test as base } from "./services.ts"; import { type Options, type Services, test as base } from "./services.ts";
// Enable experimental service worker support // Enable experimental service worker support
// See https://playwright.dev/docs/service-workers-experimental#how-to-enable // See https://playwright.dev/docs/service-workers-experimental#how-to-enable

View File

@ -5,8 +5,8 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { BrowserContext, Page, TestInfo } from "@playwright/test"; import { type BrowserContext, type Page, type TestInfo } from "@playwright/test";
import { Readable } from "stream"; import { type Readable } from "stream";
import stripAnsi from "strip-ansi"; import stripAnsi from "strip-ansi";
export class Logger { export class Logger {

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { JSHandle, Page } from "@playwright/test"; import { type JSHandle, type Page } from "@playwright/test";
import { uniqueId } from "lodash"; import { uniqueId } from "lodash";
import { type MatrixClient } from "matrix-js-sdk/src/matrix"; import { type MatrixClient } from "matrix-js-sdk/src/matrix";

View File

@ -6,8 +6,8 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { JSHandle, Page } from "@playwright/test"; import { type JSHandle, type Page } from "@playwright/test";
import { PageFunctionOn } from "playwright-core/types/structs"; import { type PageFunctionOn } from "playwright-core/types/structs";
import { Network } from "./network"; import { Network } from "./network";
import type { import type {
@ -28,7 +28,7 @@ import type {
EmptyObject, EmptyObject,
} from "matrix-js-sdk/src/matrix"; } from "matrix-js-sdk/src/matrix";
import type { RoomMessageEventContent } from "matrix-js-sdk/src/types"; import type { RoomMessageEventContent } from "matrix-js-sdk/src/types";
import { Credentials } from "../plugins/homeserver"; import { type Credentials } from "../plugins/homeserver";
export class Client { export class Client {
public network: Network; public network: Network;

View File

@ -6,9 +6,9 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { APIRequestContext, Page, expect } from "@playwright/test"; import { type APIRequestContext, type Page, expect } from "@playwright/test";
import { HomeserverInstance } from "../plugins/homeserver"; import { type HomeserverInstance } from "../plugins/homeserver";
export class Crypto { export class Crypto {
public constructor( public constructor(

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Locator, Page } from "@playwright/test"; import { type Locator, type Page } from "@playwright/test";
import type { SettingLevel } from "../../src/settings/SettingLevel"; import type { SettingLevel } from "../../src/settings/SettingLevel";

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Page, expect, Locator } from "@playwright/test"; import { type Page, expect, type Locator } from "@playwright/test";
export class Toasts { export class Toasts {
public constructor(private readonly page: Page) {} public constructor(private readonly page: Page) {}

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Options } from "../../../services.ts"; import { type Options } from "../../../services.ts";
export const isDendrite = ({ homeserverType }: Options): boolean => { export const isDendrite = ({ homeserverType }: Options): boolean => {
return homeserverType === "dendrite" || homeserverType === "pinecone"; return homeserverType === "dendrite" || homeserverType === "pinecone";

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { ClientServerApi } from "../utils/api.ts"; import { type ClientServerApi } from "../utils/api.ts";
export interface HomeserverInstance { export interface HomeserverInstance {
readonly baseUrl: string; readonly baseUrl: string;

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Fixtures } from "../../../element-web-test.ts"; import { type Fixtures } from "../../../element-web-test.ts";
export const consentHomeserver: Fixtures = { export const consentHomeserver: Fixtures = {
_homeserver: [ _homeserver: [

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Fixtures } from "../../../element-web-test.ts"; import { type Fixtures } from "../../../element-web-test.ts";
export const emailHomeserver: Fixtures = { export const emailHomeserver: Fixtures = {
_homeserver: [ _homeserver: [

View File

@ -9,7 +9,7 @@ Please see LICENSE files in the repository root for full details.
import { TestContainers } from "testcontainers"; import { TestContainers } from "testcontainers";
import { OAuthServer } from "../../oauth_server"; import { OAuthServer } from "../../oauth_server";
import { Fixtures } from "../../../element-web-test.ts"; import { type Fixtures } from "../../../element-web-test.ts";
export const legacyOAuthHomeserver: Fixtures = { export const legacyOAuthHomeserver: Fixtures = {
oAuthServer: [ oAuthServer: [

View File

@ -7,7 +7,7 @@ Please see LICENSE files in the repository root for full details.
*/ */
import { MatrixAuthenticationServiceContainer } from "../../../testcontainers/mas.ts"; import { MatrixAuthenticationServiceContainer } from "../../../testcontainers/mas.ts";
import { Fixtures } from "../../../element-web-test.ts"; import { type Fixtures } from "../../../element-web-test.ts";
export const masHomeserver: Fixtures = { export const masHomeserver: Fixtures = {
mas: [ mas: [

View File

@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Fixtures } from "../../../element-web-test.ts"; import { type Fixtures } from "../../../element-web-test.ts";
export const uiaLongSessionTimeoutHomeserver: Fixtures = { export const uiaLongSessionTimeoutHomeserver: Fixtures = {
synapseConfig: [ synapseConfig: [

View File

@ -8,8 +8,8 @@ Please see LICENSE files in the repository root for full details.
import http from "http"; import http from "http";
import express from "express"; import express from "express";
import { AddressInfo } from "net"; import { type AddressInfo } from "net";
import { TestInfo } from "@playwright/test"; import { type TestInfo } from "@playwright/test";
import { randB64Bytes } from "../utils/rand.ts"; import { randB64Bytes } from "../utils/rand.ts";

View File

@ -5,9 +5,9 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { APIRequestContext } from "@playwright/test"; import { type APIRequestContext } from "@playwright/test";
import { Credentials } from "../homeserver"; import { type Credentials } from "../homeserver";
export type Verb = "GET" | "POST" | "PUT" | "DELETE"; export type Verb = "GET" | "POST" | "PUT" | "DELETE";

View File

@ -7,7 +7,7 @@ Please see LICENSE files in the repository root for full details.
*/ */
import * as http from "http"; import * as http from "http";
import { AddressInfo } from "net"; import { type AddressInfo } from "net";
export class Webserver { export class Webserver {
private server?: http.Server; private server?: http.Server;

View File

@ -6,18 +6,18 @@ Please see LICENSE files in the repository root for full details.
*/ */
import { test as base } from "@playwright/test"; import { test as base } from "@playwright/test";
import { MailpitClient } from "mailpit-api"; import { type MailpitClient } from "mailpit-api";
import { Network, StartedNetwork } from "testcontainers"; import { Network, type StartedNetwork } from "testcontainers";
import { PostgreSqlContainer, StartedPostgreSqlContainer } from "@testcontainers/postgresql"; import { PostgreSqlContainer, type StartedPostgreSqlContainer } from "@testcontainers/postgresql";
import { SynapseConfig, SynapseContainer } from "./testcontainers/synapse.ts"; import { type SynapseConfig, SynapseContainer } from "./testcontainers/synapse.ts";
import { Logger } from "./logger.ts"; import { Logger } from "./logger.ts";
import { StartedMatrixAuthenticationServiceContainer } from "./testcontainers/mas.ts"; import { type StartedMatrixAuthenticationServiceContainer } from "./testcontainers/mas.ts";
import { HomeserverContainer, StartedHomeserverContainer } from "./testcontainers/HomeserverContainer.ts"; import { type HomeserverContainer, type StartedHomeserverContainer } from "./testcontainers/HomeserverContainer.ts";
import { MailhogContainer, StartedMailhogContainer } from "./testcontainers/mailpit.ts"; import { MailhogContainer, type StartedMailhogContainer } from "./testcontainers/mailpit.ts";
import { OAuthServer } from "./plugins/oauth_server"; import { type OAuthServer } from "./plugins/oauth_server";
import { DendriteContainer, PineconeContainer } from "./testcontainers/dendrite.ts"; import { DendriteContainer, PineconeContainer } from "./testcontainers/dendrite.ts";
import { HomeserverType } from "./plugins/homeserver"; import { type HomeserverType } from "./plugins/homeserver";
export interface TestFixtures { export interface TestFixtures {
mailpitClient: MailpitClient; mailpitClient: MailpitClient;

View File

@ -5,11 +5,11 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { AbstractStartedContainer, GenericContainer } from "testcontainers"; import { type AbstractStartedContainer, type GenericContainer } from "testcontainers";
import { APIRequestContext, TestInfo } from "@playwright/test"; import { type APIRequestContext, type TestInfo } from "@playwright/test";
import { HomeserverInstance } from "../plugins/homeserver"; import { type HomeserverInstance } from "../plugins/homeserver";
import { StartedMatrixAuthenticationServiceContainer } from "./mas.ts"; import { type StartedMatrixAuthenticationServiceContainer } from "./mas.ts";
export interface HomeserverContainer<Config> extends GenericContainer { export interface HomeserverContainer<Config> extends GenericContainer {
withConfigField(key: string, value: any): this; withConfigField(key: string, value: any): this;

View File

@ -12,8 +12,8 @@ import { set } from "lodash";
import { randB64Bytes } from "../plugins/utils/rand.ts"; import { randB64Bytes } from "../plugins/utils/rand.ts";
import { StartedSynapseContainer } from "./synapse.ts"; import { StartedSynapseContainer } from "./synapse.ts";
import { deepCopy } from "../plugins/utils/object.ts"; import { deepCopy } from "../plugins/utils/object.ts";
import { HomeserverContainer } from "./HomeserverContainer.ts"; import { type HomeserverContainer } from "./HomeserverContainer.ts";
import { StartedMatrixAuthenticationServiceContainer } from "./mas.ts"; import { type StartedMatrixAuthenticationServiceContainer } from "./mas.ts";
const DEFAULT_CONFIG = { const DEFAULT_CONFIG = {
version: 2, version: 2,

View File

@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { AbstractStartedContainer, GenericContainer, StartedTestContainer, Wait } from "testcontainers"; import { AbstractStartedContainer, GenericContainer, type StartedTestContainer, Wait } from "testcontainers";
import { MailpitClient } from "mailpit-api"; import { MailpitClient } from "mailpit-api";
export class MailhogContainer extends GenericContainer { export class MailhogContainer extends GenericContainer {

View File

@ -5,13 +5,19 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { AbstractStartedContainer, GenericContainer, StartedTestContainer, Wait, ExecResult } from "testcontainers"; import {
import { StartedPostgreSqlContainer } from "@testcontainers/postgresql"; AbstractStartedContainer,
GenericContainer,
type StartedTestContainer,
Wait,
type ExecResult,
} from "testcontainers";
import { type StartedPostgreSqlContainer } from "@testcontainers/postgresql";
import * as YAML from "yaml"; import * as YAML from "yaml";
import { getFreePort } from "../plugins/utils/port.ts"; import { getFreePort } from "../plugins/utils/port.ts";
import { deepCopy } from "../plugins/utils/object.ts"; import { deepCopy } from "../plugins/utils/object.ts";
import { Credentials } from "../plugins/homeserver"; import { type Credentials } from "../plugins/homeserver";
const DEFAULT_CONFIG = { const DEFAULT_CONFIG = {
http: { http: {

View File

@ -5,19 +5,25 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { AbstractStartedContainer, GenericContainer, RestartOptions, StartedTestContainer, Wait } from "testcontainers"; import {
import { APIRequestContext, TestInfo } from "@playwright/test"; AbstractStartedContainer,
GenericContainer,
type RestartOptions,
type StartedTestContainer,
Wait,
} from "testcontainers";
import { type APIRequestContext, type TestInfo } from "@playwright/test";
import crypto from "node:crypto"; import crypto from "node:crypto";
import * as YAML from "yaml"; import * as YAML from "yaml";
import { set } from "lodash"; import { set } from "lodash";
import { getFreePort } from "../plugins/utils/port.ts"; import { getFreePort } from "../plugins/utils/port.ts";
import { randB64Bytes } from "../plugins/utils/rand.ts"; import { randB64Bytes } from "../plugins/utils/rand.ts";
import { Credentials } from "../plugins/homeserver"; import { type Credentials } from "../plugins/homeserver";
import { deepCopy } from "../plugins/utils/object.ts"; import { deepCopy } from "../plugins/utils/object.ts";
import { HomeserverContainer, StartedHomeserverContainer } from "./HomeserverContainer.ts"; import { type HomeserverContainer, type StartedHomeserverContainer } from "./HomeserverContainer.ts";
import { StartedMatrixAuthenticationServiceContainer } from "./mas.ts"; import { type StartedMatrixAuthenticationServiceContainer } from "./mas.ts";
import { Api, ClientServerApi, Verb } from "../plugins/utils/api.ts"; import { Api, ClientServerApi, type Verb } from "../plugins/utils/api.ts";
const TAG = "develop@sha256:06b88d1ca4985c50db14aa5cf4ec83d19dc1ad30ad33b79233493ccd169a477f"; const TAG = "develop@sha256:06b88d1ca4985c50db14aa5cf4ec83d19dc1ad30ad33b79233493ccd169a477f";

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { JSXElementConstructor } from "react"; import { type JSXElementConstructor } from "react";
export type { NonEmptyArray, XOR, Writeable } from "matrix-js-sdk/src/matrix"; export type { NonEmptyArray, XOR, Writeable } from "matrix-js-sdk/src/matrix";

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import * as commonmark from "commonmark"; import type * as commonmark from "commonmark";
declare module "commonmark" { declare module "commonmark" {
export type Attr = [key: string, value: string]; export type Attr = [key: string, value: string];

View File

@ -11,40 +11,40 @@ import "matrix-js-sdk/src/@types/global"; // load matrix-js-sdk's type extension
import "@types/modernizr"; import "@types/modernizr";
import type { logger } from "matrix-js-sdk/src/logger"; import type { logger } from "matrix-js-sdk/src/logger";
import ContentMessages from "../ContentMessages"; import type ContentMessages from "../ContentMessages";
import { IMatrixClientPeg } from "../MatrixClientPeg"; import { type IMatrixClientPeg } from "../MatrixClientPeg";
import ToastStore from "../stores/ToastStore"; import type ToastStore from "../stores/ToastStore";
import DeviceListener from "../DeviceListener"; import type DeviceListener from "../DeviceListener";
import { RoomListStore } from "../stores/room-list/Interface"; import { type RoomListStore } from "../stores/room-list/Interface";
import { PlatformPeg } from "../PlatformPeg"; import { type PlatformPeg } from "../PlatformPeg";
import RoomListLayoutStore from "../stores/room-list/RoomListLayoutStore"; import type RoomListLayoutStore from "../stores/room-list/RoomListLayoutStore";
import { IntegrationManagers } from "../integrations/IntegrationManagers"; import { type IntegrationManagers } from "../integrations/IntegrationManagers";
import { ModalManager } from "../Modal"; import { type ModalManager } from "../Modal";
import SettingsStore from "../settings/SettingsStore"; import type SettingsStore from "../settings/SettingsStore";
import { Notifier } from "../Notifier"; import { type Notifier } from "../Notifier";
import RightPanelStore from "../stores/right-panel/RightPanelStore"; import type RightPanelStore from "../stores/right-panel/RightPanelStore";
import WidgetStore from "../stores/WidgetStore"; import type WidgetStore from "../stores/WidgetStore";
import LegacyCallHandler from "../LegacyCallHandler"; import type LegacyCallHandler from "../LegacyCallHandler";
import UserActivity from "../UserActivity"; import type UserActivity from "../UserActivity";
import { ModalWidgetStore } from "../stores/ModalWidgetStore"; import { type ModalWidgetStore } from "../stores/ModalWidgetStore";
import { WidgetLayoutStore } from "../stores/widgets/WidgetLayoutStore"; import { type WidgetLayoutStore } from "../stores/widgets/WidgetLayoutStore";
import VoipUserMapper from "../VoipUserMapper"; import type VoipUserMapper from "../VoipUserMapper";
import { SpaceStoreClass } from "../stores/spaces/SpaceStore"; import { type SpaceStoreClass } from "../stores/spaces/SpaceStore";
import TypingStore from "../stores/TypingStore"; import type TypingStore from "../stores/TypingStore";
import { EventIndexPeg } from "../indexing/EventIndexPeg"; import { type EventIndexPeg } from "../indexing/EventIndexPeg";
import { VoiceRecordingStore } from "../stores/VoiceRecordingStore"; import { type VoiceRecordingStore } from "../stores/VoiceRecordingStore";
import PerformanceMonitor from "../performance"; import type PerformanceMonitor from "../performance";
import UIStore from "../stores/UIStore"; import type UIStore from "../stores/UIStore";
import { SetupEncryptionStore } from "../stores/SetupEncryptionStore"; import { type SetupEncryptionStore } from "../stores/SetupEncryptionStore";
import { RoomScrollStateStore } from "../stores/RoomScrollStateStore"; import { type RoomScrollStateStore } from "../stores/RoomScrollStateStore";
import { ConsoleLogger, IndexedDBLogStore } from "../rageshake/rageshake"; import { type ConsoleLogger, type IndexedDBLogStore } from "../rageshake/rageshake";
import ActiveWidgetStore from "../stores/ActiveWidgetStore"; import type ActiveWidgetStore from "../stores/ActiveWidgetStore";
import AutoRageshakeStore from "../stores/AutoRageshakeStore"; import type AutoRageshakeStore from "../stores/AutoRageshakeStore";
import { IConfigOptions } from "../IConfigOptions"; import { type IConfigOptions } from "../IConfigOptions";
import { MatrixDispatcher } from "../dispatcher/dispatcher"; import { type MatrixDispatcher } from "../dispatcher/dispatcher";
import { DeepReadonly } from "./common"; import { type DeepReadonly } from "./common";
import MatrixChat from "../components/structures/MatrixChat"; import type MatrixChat from "../components/structures/MatrixChat";
import { InitialCryptoSetupStore } from "../stores/InitialCryptoSetupStore"; import { type InitialCryptoSetupStore } from "../stores/InitialCryptoSetupStore";
/* eslint-disable @typescript-eslint/naming-convention */ /* eslint-disable @typescript-eslint/naming-convention */

View File

@ -6,7 +6,9 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import React, { PropsWithChildren } from "react"; import { type PropsWithChildren } from "react";
import type React from "react";
declare module "react" { declare module "react" {
// Fix forwardRef types for Generic components - https://stackoverflow.com/a/58473012 // Fix forwardRef types for Generic components - https://stackoverflow.com/a/58473012

View File

@ -9,21 +9,23 @@ Please see LICENSE files in the repository root for full details.
*/ */
import { import {
IAddThreePidOnlyBody, type IAddThreePidOnlyBody,
IRequestMsisdnTokenResponse, type IRequestMsisdnTokenResponse,
IRequestTokenResponse, type IRequestTokenResponse,
MatrixClient, type MatrixClient,
MatrixError, MatrixError,
HTTPError, HTTPError,
IThreepid, type IThreepid,
UIAResponse, type UIAResponse,
} from "matrix-js-sdk/src/matrix"; } from "matrix-js-sdk/src/matrix";
import Modal from "./Modal"; import Modal from "./Modal";
import { _t, UserFriendlyError } from "./languageHandler"; import { _t, UserFriendlyError } from "./languageHandler";
import IdentityAuthClient from "./IdentityAuthClient"; import IdentityAuthClient from "./IdentityAuthClient";
import { SSOAuthEntry } from "./components/views/auth/InteractiveAuthEntryComponents"; import { SSOAuthEntry } from "./components/views/auth/InteractiveAuthEntryComponents";
import InteractiveAuthDialog, { InteractiveAuthDialogProps } from "./components/views/dialogs/InteractiveAuthDialog"; import InteractiveAuthDialog, {
type InteractiveAuthDialogProps,
} from "./components/views/dialogs/InteractiveAuthDialog";
function getIdServerDomain(matrixClient: MatrixClient): string { function getIdServerDomain(matrixClient: MatrixClient): string {
const idBaseUrl = matrixClient.getIdentityServerUrl(true); const idBaseUrl = matrixClient.getIdentityServerUrl(true);

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import React, { ReactNode, Suspense } from "react"; import React, { type ReactNode, Suspense } from "react";
import { _t } from "./languageHandler"; import { _t } from "./languageHandler";
import BaseDialog from "./components/views/dialogs/BaseDialog"; import BaseDialog from "./components/views/dialogs/BaseDialog";

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { RoomMember, User, Room, ResizeMethod } from "matrix-js-sdk/src/matrix"; import { type RoomMember, type User, type Room, type ResizeMethod } from "matrix-js-sdk/src/matrix";
import { useIdColorHash } from "@vector-im/compound-web"; import { useIdColorHash } from "@vector-im/compound-web";
import DMRoomMap from "./utils/DMRoomMap"; import DMRoomMap from "./utils/DMRoomMap";

View File

@ -10,25 +10,25 @@ Please see LICENSE files in the repository root for full details.
*/ */
import { import {
MatrixClient, type MatrixClient,
MatrixEvent, type MatrixEvent,
Room, type Room,
SSOAction, type SSOAction,
encodeUnpaddedBase64, encodeUnpaddedBase64,
OidcRegistrationClientMetadata, type OidcRegistrationClientMetadata,
} from "matrix-js-sdk/src/matrix"; } from "matrix-js-sdk/src/matrix";
import { logger } from "matrix-js-sdk/src/logger"; import { logger } from "matrix-js-sdk/src/logger";
import dis from "./dispatcher/dispatcher"; import dis from "./dispatcher/dispatcher";
import BaseEventIndexManager from "./indexing/BaseEventIndexManager"; import type BaseEventIndexManager from "./indexing/BaseEventIndexManager";
import { ActionPayload } from "./dispatcher/payloads"; import { type ActionPayload } from "./dispatcher/payloads";
import { CheckUpdatesPayload } from "./dispatcher/payloads/CheckUpdatesPayload"; import { type CheckUpdatesPayload } from "./dispatcher/payloads/CheckUpdatesPayload";
import { Action } from "./dispatcher/actions"; import { Action } from "./dispatcher/actions";
import { hideToast as hideUpdateToast } from "./toasts/UpdateToast"; import { hideToast as hideUpdateToast } from "./toasts/UpdateToast";
import { MatrixClientPeg } from "./MatrixClientPeg"; import { MatrixClientPeg } from "./MatrixClientPeg";
import { idbLoad, idbSave, idbDelete } from "./utils/StorageAccess"; import { idbLoad, idbSave, idbDelete } from "./utils/StorageAccess";
import { ViewRoomPayload } from "./dispatcher/payloads/ViewRoomPayload"; import { type ViewRoomPayload } from "./dispatcher/payloads/ViewRoomPayload";
import { IConfigOptions } from "./IConfigOptions"; import { type IConfigOptions } from "./IConfigOptions";
import SdkConfig from "./SdkConfig"; import SdkConfig from "./SdkConfig";
import { buildAndEncodePickleKey, encryptPickleKey } from "./utils/tokens/pickling"; import { buildAndEncodePickleKey, encryptPickleKey } from "./utils/tokens/pickling";
import Favicon from "./favicon.ts"; import Favicon from "./favicon.ts";

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Request, Response } from "./workers/blurhash.worker.ts"; import { type Request, type Response } from "./workers/blurhash.worker.ts";
import { WorkerManager } from "./WorkerManager"; import { WorkerManager } from "./WorkerManager";
import blurhashWorkerFactory from "./workers/blurhashWorkerFactory"; import blurhashWorkerFactory from "./workers/blurhashWorkerFactory";

View File

@ -9,23 +9,23 @@ Please see LICENSE files in the repository root for full details.
*/ */
import { import {
MatrixClient, type MatrixClient,
MsgType, MsgType,
HTTPError, HTTPError,
IEventRelation, type IEventRelation,
ISendEventResponse, type ISendEventResponse,
MatrixEvent, type MatrixEvent,
UploadOpts, type UploadOpts,
UploadProgress, type UploadProgress,
THREAD_RELATION_TYPE, THREAD_RELATION_TYPE,
} from "matrix-js-sdk/src/matrix"; } from "matrix-js-sdk/src/matrix";
import { import {
ImageInfo, type ImageInfo,
AudioInfo, type AudioInfo,
VideoInfo, type VideoInfo,
EncryptedFile, type EncryptedFile,
MediaEventContent, type MediaEventContent,
MediaEventInfo, type MediaEventInfo,
} from "matrix-js-sdk/src/types"; } from "matrix-js-sdk/src/types";
import encrypt from "matrix-encrypt-attachment"; import encrypt from "matrix-encrypt-attachment";
import extractPngChunks from "png-chunks-extract"; import extractPngChunks from "png-chunks-extract";
@ -38,11 +38,11 @@ import Modal from "./Modal";
import Spinner from "./components/views/elements/Spinner"; import Spinner from "./components/views/elements/Spinner";
import { Action } from "./dispatcher/actions"; import { Action } from "./dispatcher/actions";
import { import {
UploadCanceledPayload, type UploadCanceledPayload,
UploadErrorPayload, type UploadErrorPayload,
UploadFinishedPayload, type UploadFinishedPayload,
UploadProgressPayload, type UploadProgressPayload,
UploadStartedPayload, type UploadStartedPayload,
} from "./dispatcher/payloads/UploadPayload"; } from "./dispatcher/payloads/UploadPayload";
import { RoomUpload } from "./models/RoomUpload"; import { RoomUpload } from "./models/RoomUpload";
import SettingsStore from "./settings/SettingsStore"; import SettingsStore from "./settings/SettingsStore";

View File

@ -7,7 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { AuthDict, MatrixClient, MatrixError, UIAResponse } from "matrix-js-sdk/src/matrix"; import { type AuthDict, type MatrixClient, MatrixError, type UIAResponse } from "matrix-js-sdk/src/matrix";
import { SSOAuthEntry } from "./components/views/auth/InteractiveAuthEntryComponents"; import { SSOAuthEntry } from "./components/views/auth/InteractiveAuthEntryComponents";
import Modal from "./Modal"; import Modal from "./Modal";

View File

@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Optional } from "matrix-events-sdk"; import { type Optional } from "matrix-events-sdk";
import { _t, getUserLanguage } from "./languageHandler"; import { _t, getUserLanguage } from "./languageHandler";
import { getUserTimezone } from "./TimezoneHandler"; import { getUserTimezone } from "./TimezoneHandler";

View File

@ -7,8 +7,8 @@ Please see LICENSE files in the repository root for full details.
*/ */
import ScalableBloomFilter from "bloom-filters/dist/bloom/scalable-bloom-filter"; import ScalableBloomFilter from "bloom-filters/dist/bloom/scalable-bloom-filter";
import { HttpApiEvent, MatrixClient, MatrixEventEvent, MatrixEvent } from "matrix-js-sdk/src/matrix"; import { HttpApiEvent, type MatrixClient, MatrixEventEvent, type MatrixEvent } from "matrix-js-sdk/src/matrix";
import { Error as ErrorEvent } from "@matrix-org/analytics-events/types/typescript/Error"; import { type Error as ErrorEvent } from "@matrix-org/analytics-events/types/typescript/Error";
import { DecryptionFailureCode, CryptoEvent } from "matrix-js-sdk/src/crypto-api"; import { DecryptionFailureCode, CryptoEvent } from "matrix-js-sdk/src/crypto-api";
import { PosthogAnalytics } from "./PosthogAnalytics"; import { PosthogAnalytics } from "./PosthogAnalytics";

View File

@ -7,17 +7,17 @@ Please see LICENSE files in the repository root for full details.
*/ */
import { import {
MatrixEvent, type MatrixEvent,
ClientEvent, ClientEvent,
EventType, EventType,
MatrixClient, type MatrixClient,
RoomStateEvent, RoomStateEvent,
SyncState, type SyncState,
ClientStoppedError, ClientStoppedError,
} from "matrix-js-sdk/src/matrix"; } from "matrix-js-sdk/src/matrix";
import { logger } from "matrix-js-sdk/src/logger"; import { logger } from "matrix-js-sdk/src/logger";
import { CryptoEvent, KeyBackupInfo } from "matrix-js-sdk/src/crypto-api"; import { CryptoEvent, type KeyBackupInfo } from "matrix-js-sdk/src/crypto-api";
import { CryptoSessionStateChange } from "@matrix-org/analytics-events/types/typescript/CryptoSessionStateChange"; import { type CryptoSessionStateChange } from "@matrix-org/analytics-events/types/typescript/CryptoSessionStateChange";
import { PosthogAnalytics } from "./PosthogAnalytics"; import { PosthogAnalytics } from "./PosthogAnalytics";
import dis from "./dispatcher/dispatcher"; import dis from "./dispatcher/dispatcher";
@ -35,12 +35,12 @@ import {
showToast as showUnverifiedSessionsToast, showToast as showUnverifiedSessionsToast,
} from "./toasts/UnverifiedSessionToast"; } from "./toasts/UnverifiedSessionToast";
import { isSecretStorageBeingAccessed } from "./SecurityManager"; import { isSecretStorageBeingAccessed } from "./SecurityManager";
import { ActionPayload } from "./dispatcher/payloads"; import { type ActionPayload } from "./dispatcher/payloads";
import { Action } from "./dispatcher/actions"; import { Action } from "./dispatcher/actions";
import SdkConfig from "./SdkConfig"; import SdkConfig from "./SdkConfig";
import PlatformPeg from "./PlatformPeg"; import PlatformPeg from "./PlatformPeg";
import { recordClientInformation, removeClientInformation } from "./utils/device/clientInformation"; import { recordClientInformation, removeClientInformation } from "./utils/device/clientInformation";
import SettingsStore, { CallbackFn } from "./settings/SettingsStore"; import SettingsStore, { type CallbackFn } from "./settings/SettingsStore";
import { UIFeature } from "./settings/UIFeature"; import { UIFeature } from "./settings/UIFeature";
import { isBulkUnverifiedDeviceReminderSnoozed } from "./utils/device/snoozeBulkUnverifiedDeviceReminder"; import { isBulkUnverifiedDeviceReminderSnoozed } from "./utils/device/snoozeBulkUnverifiedDeviceReminder";
import { getUserDeviceIds } from "./utils/crypto/deviceInfo"; import { getUserDeviceIds } from "./utils/crypto/deviceInfo";

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { TimelineRenderingType } from "./contexts/RoomContext"; import { type TimelineRenderingType } from "./contexts/RoomContext";
export const editorRoomKey = (roomId: string, context: TimelineRenderingType): string => export const editorRoomKey = (roomId: string, context: TimelineRenderingType): string =>
`mx_edit_room_${roomId}_${context}`; `mx_edit_room_${roomId}_${context}`;

View File

@ -9,13 +9,13 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import React, { LegacyRef, ReactNode } from "react"; import React, { type LegacyRef, type ReactNode } from "react";
import sanitizeHtml, { IOptions } from "sanitize-html"; import sanitizeHtml, { type IOptions } from "sanitize-html";
import classNames from "classnames"; import classNames from "classnames";
import katex from "katex"; import katex from "katex";
import { decode } from "html-entities"; import { decode } from "html-entities";
import { IContent } from "matrix-js-sdk/src/matrix"; import { type IContent } from "matrix-js-sdk/src/matrix";
import { Optional } from "matrix-events-sdk"; import { type Optional } from "matrix-events-sdk";
import escapeHtml from "escape-html"; import escapeHtml from "escape-html";
import { getEmojiFromUnicode } from "@matrix-org/emojibase-bindings"; import { getEmojiFromUnicode } from "@matrix-org/emojibase-bindings";

View File

@ -7,9 +7,9 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { IClientWellKnown } from "matrix-js-sdk/src/matrix"; import { type IClientWellKnown } from "matrix-js-sdk/src/matrix";
import { ValidatedServerConfig } from "./utils/ValidatedServerConfig"; import { type ValidatedServerConfig } from "./utils/ValidatedServerConfig";
// Convention decision: All config options are lower_snake_case // Convention decision: All config options are lower_snake_case
// We use an isolated file for the interface so we can mess around with the eslint options. // We use an isolated file for the interface so we can mess around with the eslint options.

View File

@ -7,7 +7,7 @@ Please see LICENSE files in the repository root for full details.
*/ */
import React from "react"; import React from "react";
import { SERVICE_TYPES, createClient, MatrixClient, MatrixError } from "matrix-js-sdk/src/matrix"; import { SERVICE_TYPES, createClient, type MatrixClient, MatrixError } from "matrix-js-sdk/src/matrix";
import { logger } from "matrix-js-sdk/src/logger"; import { logger } from "matrix-js-sdk/src/logger";
import { MatrixClientPeg } from "./MatrixClientPeg"; import { MatrixClientPeg } from "./MatrixClientPeg";

View File

@ -10,7 +10,7 @@ Please see LICENSE files in the repository root for full details.
import { IS_MAC, Key } from "./Keyboard"; import { IS_MAC, Key } from "./Keyboard";
import SettingsStore from "./settings/SettingsStore"; import SettingsStore from "./settings/SettingsStore";
import SdkConfig from "./SdkConfig"; import SdkConfig from "./SdkConfig";
import { IKeyBindingsProvider, KeyBinding } from "./KeyBindingsManager"; import { type IKeyBindingsProvider, type KeyBinding } from "./KeyBindingsManager";
import { CATEGORIES, CategoryName, KeyBindingAction } from "./accessibility/KeyboardShortcuts"; import { CATEGORIES, CategoryName, KeyBindingAction } from "./accessibility/KeyboardShortcuts";
import { getKeyboardShortcuts } from "./accessibility/KeyboardShortcutUtils"; import { getKeyboardShortcuts } from "./accessibility/KeyboardShortcutUtils";

View File

@ -7,7 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { KeyBindingAction } from "./accessibility/KeyboardShortcuts"; import { type KeyBindingAction } from "./accessibility/KeyboardShortcuts";
import { defaultBindingsProvider } from "./KeyBindingsDefaults"; import { defaultBindingsProvider } from "./KeyBindingsDefaults";
import { IS_MAC } from "./Keyboard"; import { IS_MAC } from "./Keyboard";

View File

@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import React from "react"; import type React from "react";
export const Key = { export const Key = {
HOME: "Home", HOME: "Home",

View File

@ -12,14 +12,14 @@ Please see LICENSE files in the repository root for full details.
import React from "react"; import React from "react";
import { MatrixError, RuleId, TweakName, SyncState, TypedEventEmitter } from "matrix-js-sdk/src/matrix"; import { MatrixError, RuleId, TweakName, SyncState, TypedEventEmitter } from "matrix-js-sdk/src/matrix";
import { import {
CallError, type CallError,
CallErrorCode, CallErrorCode,
CallEvent, CallEvent,
CallParty, CallParty,
CallState, CallState,
CallType, CallType,
FALLBACK_ICE_SERVER, FALLBACK_ICE_SERVER,
MatrixCall, type MatrixCall,
} from "matrix-js-sdk/src/webrtc/call"; } from "matrix-js-sdk/src/webrtc/call";
import { logger } from "matrix-js-sdk/src/logger"; import { logger } from "matrix-js-sdk/src/logger";
import { PushProcessor } from "matrix-js-sdk/src/pushprocessor"; import { PushProcessor } from "matrix-js-sdk/src/pushprocessor";
@ -48,9 +48,9 @@ import { Container, WidgetLayoutStore } from "./stores/widgets/WidgetLayoutStore
import IncomingLegacyCallToast, { getIncomingLegacyCallToastKey } from "./toasts/IncomingLegacyCallToast"; import IncomingLegacyCallToast, { getIncomingLegacyCallToastKey } from "./toasts/IncomingLegacyCallToast";
import ToastStore from "./stores/ToastStore"; import ToastStore from "./stores/ToastStore";
import Resend from "./Resend"; import Resend from "./Resend";
import { ViewRoomPayload } from "./dispatcher/payloads/ViewRoomPayload"; import { type ViewRoomPayload } from "./dispatcher/payloads/ViewRoomPayload";
import { InviteKind } from "./components/views/dialogs/InviteDialogTypes"; import { InviteKind } from "./components/views/dialogs/InviteDialogTypes";
import { OpenInviteDialogPayload } from "./dispatcher/payloads/OpenInviteDialogPayload"; import { type OpenInviteDialogPayload } from "./dispatcher/payloads/OpenInviteDialogPayload";
import { findDMForUser } from "./utils/dm/findDMForUser"; import { findDMForUser } from "./utils/dm/findDMForUser";
import { getJoinedNonFunctionalMembers } from "./utils/room/getJoinedNonFunctionalMembers"; import { getJoinedNonFunctionalMembers } from "./utils/room/getJoinedNonFunctionalMembers";
import { localNotificationsAreSilenced } from "./utils/notifications"; import { localNotificationsAreSilenced } from "./utils/notifications";

View File

@ -9,13 +9,19 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { ReactNode } from "react"; import { type ReactNode } from "react";
import { createClient, MatrixClient, SSOAction, OidcTokenRefresher, decodeBase64 } from "matrix-js-sdk/src/matrix"; import {
import { AESEncryptedSecretStoragePayload } from "matrix-js-sdk/src/types"; createClient,
import { QueryDict } from "matrix-js-sdk/src/utils"; type MatrixClient,
SSOAction,
type OidcTokenRefresher,
decodeBase64,
} from "matrix-js-sdk/src/matrix";
import { type AESEncryptedSecretStoragePayload } from "matrix-js-sdk/src/types";
import { type QueryDict } from "matrix-js-sdk/src/utils";
import { logger } from "matrix-js-sdk/src/logger"; import { logger } from "matrix-js-sdk/src/logger";
import { IMatrixClientCreds, MatrixClientPeg, MatrixClientPegAssignOpts } from "./MatrixClientPeg"; import { type IMatrixClientCreds, MatrixClientPeg, type MatrixClientPegAssignOpts } from "./MatrixClientPeg";
import { ModuleRunner } from "./modules/ModuleRunner"; import { ModuleRunner } from "./modules/ModuleRunner";
import EventIndexPeg from "./indexing/EventIndexPeg"; import EventIndexPeg from "./indexing/EventIndexPeg";
import createMatrixClient from "./utils/createMatrixClient"; import createMatrixClient from "./utils/createMatrixClient";
@ -50,12 +56,12 @@ import { setSentryUser } from "./sentry";
import SdkConfig from "./SdkConfig"; import SdkConfig from "./SdkConfig";
import { DialogOpener } from "./utils/DialogOpener"; import { DialogOpener } from "./utils/DialogOpener";
import { Action } from "./dispatcher/actions"; import { Action } from "./dispatcher/actions";
import { OverwriteLoginPayload } from "./dispatcher/payloads/OverwriteLoginPayload"; import { type OverwriteLoginPayload } from "./dispatcher/payloads/OverwriteLoginPayload";
import { SdkContextClass } from "./contexts/SDKContext"; import { SdkContextClass } from "./contexts/SDKContext";
import { messageForLoginError } from "./utils/ErrorUtils"; import { messageForLoginError } from "./utils/ErrorUtils";
import { completeOidcLogin } from "./utils/oidc/authorize"; import { completeOidcLogin } from "./utils/oidc/authorize";
import { getOidcErrorMessage } from "./utils/oidc/error"; import { getOidcErrorMessage } from "./utils/oidc/error";
import { OidcClientStore } from "./stores/oidc/OidcClientStore"; import { type OidcClientStore } from "./stores/oidc/OidcClientStore";
import { import {
getStoredOidcClientId, getStoredOidcClientId,
getStoredOidcIdTokenClaims, getStoredOidcIdTokenClaims,

View File

@ -6,8 +6,8 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import React, { ReactElement } from "react"; import React, { type ReactElement } from "react";
import sanitizeHtml, { IOptions } from "sanitize-html"; import sanitizeHtml, { type IOptions } from "sanitize-html";
import { merge } from "lodash"; import { merge } from "lodash";
import _Linkify from "linkify-react"; import _Linkify from "linkify-react";

View File

@ -6,8 +6,8 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { ClientWidgetApi } from "matrix-widget-api"; import { type ClientWidgetApi } from "matrix-widget-api";
import { MatrixClient } from "matrix-js-sdk/src/matrix"; import { type MatrixClient } from "matrix-js-sdk/src/matrix";
import SdkConfig from "./SdkConfig"; import SdkConfig from "./SdkConfig";
import { ElementWidgetActions } from "./stores/widgets/ElementWidgetActions"; import { ElementWidgetActions } from "./stores/widgets/ElementWidgetActions";

View File

@ -9,19 +9,19 @@ Please see LICENSE files in the repository root for full details.
import { import {
createClient, createClient,
MatrixClient, type MatrixClient,
LoginFlow, type LoginFlow,
DELEGATED_OIDC_COMPATIBILITY, DELEGATED_OIDC_COMPATIBILITY,
ILoginFlow, type ILoginFlow,
LoginRequest, type LoginRequest,
OidcClientConfig, type OidcClientConfig,
} from "matrix-js-sdk/src/matrix"; } from "matrix-js-sdk/src/matrix";
import { logger } from "matrix-js-sdk/src/logger"; import { logger } from "matrix-js-sdk/src/logger";
import { IMatrixClientCreds } from "./MatrixClientPeg"; import { type IMatrixClientCreds } from "./MatrixClientPeg";
import { ModuleRunner } from "./modules/ModuleRunner"; import { ModuleRunner } from "./modules/ModuleRunner";
import { getOidcClientId } from "./utils/oidc/registerClient"; import { getOidcClientId } from "./utils/oidc/registerClient";
import { IConfigOptions } from "./IConfigOptions"; import { type IConfigOptions } from "./IConfigOptions";
import SdkConfig from "./SdkConfig"; import SdkConfig from "./SdkConfig";
import { isUserRegistrationSupported } from "./utils/oidc/isUserRegistrationSupported"; import { isUserRegistrationSupported } from "./utils/oidc/isUserRegistrationSupported";

View File

@ -12,14 +12,14 @@ Please see LICENSE files in the repository root for full details.
import { import {
EventTimeline, EventTimeline,
EventTimelineSet, EventTimelineSet,
ICreateClientOpts, type ICreateClientOpts,
IStartClientOpts, type IStartClientOpts,
MatrixClient, type MatrixClient,
MemoryStore, MemoryStore,
PendingEventOrdering, PendingEventOrdering,
RoomNameState, type RoomNameState,
RoomNameType, RoomNameType,
TokenRefreshFunction, type TokenRefreshFunction,
} from "matrix-js-sdk/src/matrix"; } from "matrix-js-sdk/src/matrix";
import { VerificationMethod } from "matrix-js-sdk/src/types"; import { VerificationMethod } from "matrix-js-sdk/src/types";
import * as utils from "matrix-js-sdk/src/utils"; import * as utils from "matrix-js-sdk/src/utils";

View File

@ -8,16 +8,16 @@ Please see LICENSE files in the repository root for full details.
*/ */
import React, { StrictMode } from "react"; import React, { StrictMode } from "react";
import { createRoot, Root } from "react-dom/client"; import { createRoot, type Root } from "react-dom/client";
import classNames from "classnames"; import classNames from "classnames";
import { IDeferred, defer } from "matrix-js-sdk/src/utils"; import { type IDeferred, defer } from "matrix-js-sdk/src/utils";
import { TypedEventEmitter } from "matrix-js-sdk/src/matrix"; import { TypedEventEmitter } from "matrix-js-sdk/src/matrix";
import { Glass, TooltipProvider } from "@vector-im/compound-web"; import { Glass, TooltipProvider } from "@vector-im/compound-web";
import defaultDispatcher from "./dispatcher/dispatcher"; import defaultDispatcher from "./dispatcher/dispatcher";
import AsyncWrapper from "./AsyncWrapper"; import AsyncWrapper from "./AsyncWrapper";
import { Defaultize } from "./@types/common"; import { type Defaultize } from "./@types/common";
import { ActionPayload } from "./dispatcher/payloads"; import { type ActionPayload } from "./dispatcher/payloads";
const DIALOG_CONTAINER_ID = "mx_Dialog_Container"; const DIALOG_CONTAINER_ID = "mx_Dialog_Container";
const STATIC_DIALOG_CONTAINER_ID = "mx_Dialog_StaticContainer"; const STATIC_DIALOG_CONTAINER_ID = "mx_Dialog_StaticContainer";

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import React, { Key, MutableRefObject, ReactElement, RefCallback } from "react"; import React, { type Key, type MutableRefObject, type ReactElement, type RefCallback } from "react";
interface IChildProps { interface IChildProps {
style: React.CSSProperties; style: React.CSSProperties;

View File

@ -10,21 +10,21 @@ Please see LICENSE files in the repository root for full details.
*/ */
import { import {
MatrixEvent, type MatrixEvent,
MatrixEventEvent, MatrixEventEvent,
Room, type Room,
RoomEvent, RoomEvent,
ClientEvent, ClientEvent,
MsgType, MsgType,
SyncState, SyncState,
SyncStateData, type SyncStateData,
IRoomTimelineData, type IRoomTimelineData,
M_LOCATION, M_LOCATION,
EventType, EventType,
TypedEventEmitter, TypedEventEmitter,
} from "matrix-js-sdk/src/matrix"; } from "matrix-js-sdk/src/matrix";
import { logger } from "matrix-js-sdk/src/logger"; import { logger } from "matrix-js-sdk/src/logger";
import { PermissionChanged as PermissionChangedEvent } from "@matrix-org/analytics-events/types/typescript/PermissionChanged"; import { type PermissionChanged as PermissionChangedEvent } from "@matrix-org/analytics-events/types/typescript/PermissionChanged";
import { MatrixRTCSession } from "matrix-js-sdk/src/matrixrtc"; import { MatrixRTCSession } from "matrix-js-sdk/src/matrixrtc";
import { MatrixClientPeg } from "./MatrixClientPeg"; import { MatrixClientPeg } from "./MatrixClientPeg";

View File

@ -7,7 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { createClient, IRequestTokenResponse, MatrixClient } from "matrix-js-sdk/src/matrix"; import { createClient, type IRequestTokenResponse, type MatrixClient } from "matrix-js-sdk/src/matrix";
import { _t } from "./languageHandler"; import { _t } from "./languageHandler";

View File

@ -7,10 +7,10 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import BasePlatform from "./BasePlatform"; import type BasePlatform from "./BasePlatform";
import defaultDispatcher from "./dispatcher/dispatcher"; import defaultDispatcher from "./dispatcher/dispatcher";
import { Action } from "./dispatcher/actions"; import { Action } from "./dispatcher/actions";
import { PlatformSetPayload } from "./dispatcher/payloads/PlatformSetPayload"; import { type PlatformSetPayload } from "./dispatcher/payloads/PlatformSetPayload";
/* /*
* Holds the current instance of the `Platform` to use across the codebase. * Holds the current instance of the `Platform` to use across the codebase.

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { Request, Response } from "./workers/playback.worker"; import { type Request, type Response } from "./workers/playback.worker";
import { WorkerManager } from "./WorkerManager"; import { WorkerManager } from "./WorkerManager";
import playbackWorkerFactory from "./workers/playbackWorkerFactory"; import playbackWorkerFactory from "./workers/playbackWorkerFactory";

View File

@ -6,20 +6,20 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import posthog, { CaptureOptions, PostHog, Properties } from "posthog-js"; import posthog, { type CaptureOptions, type PostHog, type Properties } from "posthog-js";
import { MatrixClient } from "matrix-js-sdk/src/matrix"; import { type MatrixClient } from "matrix-js-sdk/src/matrix";
import { logger } from "matrix-js-sdk/src/logger"; import { logger } from "matrix-js-sdk/src/logger";
import { UserProperties } from "@matrix-org/analytics-events/types/typescript/UserProperties"; import { type UserProperties } from "@matrix-org/analytics-events/types/typescript/UserProperties";
import { Signup } from "@matrix-org/analytics-events/types/typescript/Signup"; import { type Signup } from "@matrix-org/analytics-events/types/typescript/Signup";
import PlatformPeg from "./PlatformPeg"; import PlatformPeg from "./PlatformPeg";
import SdkConfig from "./SdkConfig"; import SdkConfig from "./SdkConfig";
import { MatrixClientPeg } from "./MatrixClientPeg"; import { MatrixClientPeg } from "./MatrixClientPeg";
import SettingsStore from "./settings/SettingsStore"; import SettingsStore from "./settings/SettingsStore";
import { ScreenName } from "./PosthogTrackers"; import { type ScreenName } from "./PosthogTrackers";
import { ActionPayload } from "./dispatcher/payloads"; import { type ActionPayload } from "./dispatcher/payloads";
import { Action } from "./dispatcher/actions"; import { Action } from "./dispatcher/actions";
import { SettingUpdatedPayload } from "./dispatcher/payloads/SettingUpdatedPayload"; import { type SettingUpdatedPayload } from "./dispatcher/payloads/SettingUpdatedPayload";
import dis from "./dispatcher/dispatcher"; import dis from "./dispatcher/dispatcher";
import { Layout } from "./settings/enums/Layout"; import { Layout } from "./settings/enums/Layout";

View File

@ -6,10 +6,10 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { PureComponent, SyntheticEvent } from "react"; import { PureComponent, type SyntheticEvent } from "react";
import { WebScreen as ScreenEvent } from "@matrix-org/analytics-events/types/typescript/WebScreen"; import { type WebScreen as ScreenEvent } from "@matrix-org/analytics-events/types/typescript/WebScreen";
import { Interaction as InteractionEvent } from "@matrix-org/analytics-events/types/typescript/Interaction"; import { type Interaction as InteractionEvent } from "@matrix-org/analytics-events/types/typescript/Interaction";
import { PinUnpinAction } from "@matrix-org/analytics-events/types/typescript/PinUnpinAction"; import { type PinUnpinAction } from "@matrix-org/analytics-events/types/typescript/PinUnpinAction";
import PageType from "./PageTypes"; import PageType from "./PageTypes";
import Views from "./Views"; import Views from "./Views";

View File

@ -14,7 +14,7 @@ import { SetPresence } from "matrix-js-sdk/src/matrix";
import { MatrixClientPeg } from "./MatrixClientPeg"; import { MatrixClientPeg } from "./MatrixClientPeg";
import dis from "./dispatcher/dispatcher"; import dis from "./dispatcher/dispatcher";
import Timer from "./utils/Timer"; import Timer from "./utils/Timer";
import { ActionPayload } from "./dispatcher/payloads"; import { type ActionPayload } from "./dispatcher/payloads";
// Time in ms after that a user is considered as unavailable/away // Time in ms after that a user is considered as unavailable/away
const UNAVAILABLE_TIME_MS = 3 * 60 * 1000; // 3 mins const UNAVAILABLE_TIME_MS = 3 * 60 * 1000; // 3 mins

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import { MatrixEvent, EventStatus, Room, MatrixClient } from "matrix-js-sdk/src/matrix"; import { type MatrixEvent, EventStatus, type Room, type MatrixClient } from "matrix-js-sdk/src/matrix";
import { logger } from "matrix-js-sdk/src/logger"; import { logger } from "matrix-js-sdk/src/logger";
import dis from "./dispatcher/dispatcher"; import dis from "./dispatcher/dispatcher";

View File

@ -6,11 +6,11 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
*/ */
import React, { ComponentProps } from "react"; import React, { type ComponentProps } from "react";
import { Room, MatrixEvent, MatrixClient, User, EventType } from "matrix-js-sdk/src/matrix"; import { type Room, type MatrixEvent, type MatrixClient, type User, EventType } from "matrix-js-sdk/src/matrix";
import { logger } from "matrix-js-sdk/src/logger"; import { logger } from "matrix-js-sdk/src/logger";
import MultiInviter, { CompletionStates } from "./utils/MultiInviter"; import MultiInviter, { type CompletionStates } from "./utils/MultiInviter";
import Modal from "./Modal"; import Modal from "./Modal";
import { _t } from "./languageHandler"; import { _t } from "./languageHandler";
import InviteDialog from "./components/views/dialogs/InviteDialog"; import InviteDialog from "./components/views/dialogs/InviteDialog";
@ -18,7 +18,7 @@ import BaseAvatar from "./components/views/avatars/BaseAvatar";
import { mediaFromMxc } from "./customisations/Media"; import { mediaFromMxc } from "./customisations/Media";
import ErrorDialog from "./components/views/dialogs/ErrorDialog"; import ErrorDialog from "./components/views/dialogs/ErrorDialog";
import { InviteKind } from "./components/views/dialogs/InviteDialogTypes"; import { InviteKind } from "./components/views/dialogs/InviteDialogTypes";
import { Member } from "./utils/direct-messages"; import { type Member } from "./utils/direct-messages";
export interface IInviteResult { export interface IInviteResult {
states: CompletionStates; states: CompletionStates;

Some files were not shown because too many files have changed in this diff Show More