import cleanups

This commit is contained in:
Timo
2025-03-13 18:36:01 +01:00
committed by Robin
parent f0545ced65
commit 6f93a037cf
11 changed files with 18 additions and 21 deletions

View File

@@ -125,6 +125,7 @@
"vitest-axe": "^1.0.0-pre.3" "vitest-axe": "^1.0.0-pre.3"
}, },
"resolutions": { "resolutions": {
"@livekit/components-core/rxjs": "^7.8.1" "@livekit/components-core/rxjs": "^7.8.1",
"matrix-widget-api": "1.11.0"
} }
} }

View File

@@ -24,6 +24,11 @@
"matchDepNames": ["matrix-js-sdk"], "matchDepNames": ["matrix-js-sdk"],
"enabled": false "enabled": false
}, },
{
"groupName": "matrix-widget-api",
"matchDepNames": ["matrix-widget-api"],
"extends": ["schedule:weekly"]
},
{ {
"groupName": "Compound", "groupName": "Compound",
"matchPackageNames": ["@vector-im/compound-{/,}**"], "matchPackageNames": ["@vector-im/compound-{/,}**"],

View File

@@ -5,7 +5,6 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE in the repository root for full details. Please see LICENSE in the repository root for full details.
*/ */
import "matrix-js-sdk/lib/types";
import { type setLogLevel as setLKLogLevel } from "livekit-client"; import { type setLogLevel as setLKLogLevel } from "livekit-client";
import type { DurationFormat as PolyfillDurationFormat } from "@formatjs/intl-durationformat"; import type { DurationFormat as PolyfillDurationFormat } from "@formatjs/intl-durationformat";

View File

@@ -6,15 +6,13 @@ Please see LICENSE in the repository root for full details.
*/ */
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import { type MatrixClient } from "matrix-js-sdk";
import { type RoomMember } from "matrix-js-sdk";
import { type Room } from "matrix-js-sdk";
import { type FC, useCallback, type MouseEvent, useState } from "react"; import { type FC, useCallback, type MouseEvent, useState } from "react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { IconButton, Text } from "@vector-im/compound-web"; import { IconButton, Text } from "@vector-im/compound-web";
import { CloseIcon } from "@vector-im/compound-design-tokens/assets/web/icons"; import { CloseIcon } from "@vector-im/compound-design-tokens/assets/web/icons";
import classNames from "classnames"; import classNames from "classnames";
import type { RoomMember, Room, MatrixClient } from "matrix-js-sdk";
import { Avatar, Size } from "../Avatar"; import { Avatar, Size } from "../Avatar";
import styles from "./CallList.module.css"; import styles from "./CallList.module.css";
import { getRelativeRoomUrl } from "../utils/matrix"; import { getRelativeRoomUrl } from "../utils/matrix";

View File

@@ -5,10 +5,10 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE in the repository root for full details. Please see LICENSE in the repository root for full details.
*/ */
import { type MatrixClient } from "matrix-js-sdk";
import { import {
type MatrixEvent, type MatrixEvent,
type User, type User,
type MatrixClient,
UserEvent, UserEvent,
type FileType, type FileType,
} from "matrix-js-sdk"; } from "matrix-js-sdk";

View File

@@ -7,10 +7,9 @@ Please see LICENSE in the repository root for full details.
import { beforeEach, expect, type MockedFunction, test, vitest } from "vitest"; import { beforeEach, expect, type MockedFunction, test, vitest } from "vitest";
import { render, waitFor, screen } from "@testing-library/react"; import { render, waitFor, screen } from "@testing-library/react";
import { type MatrixClient } from "matrix-js-sdk"; import { type MatrixClient, JoinRule, type RoomState } from "matrix-js-sdk";
import { type MatrixRTCSession } from "matrix-js-sdk/lib/matrixrtc"; import { type MatrixRTCSession } from "matrix-js-sdk/lib/matrixrtc";
import { of } from "rxjs"; import { of } from "rxjs";
import { JoinRule, type RoomState } from "matrix-js-sdk";
import { BrowserRouter } from "react-router-dom"; import { BrowserRouter } from "react-router-dom";
import userEvent from "@testing-library/user-event"; import userEvent from "@testing-library/user-event";
import { type RelationsContainer } from "matrix-js-sdk/lib/models/relations-container"; import { type RelationsContainer } from "matrix-js-sdk/lib/models/relations-container";

View File

@@ -13,7 +13,7 @@ import {
useMemo, useMemo,
useState, useState,
} from "react"; } from "react";
import { type MatrixClient } from "matrix-js-sdk"; import { type MatrixClient, JoinRule, type Room } from "matrix-js-sdk";
import { import {
Room as LivekitRoom, Room as LivekitRoom,
isE2EESupported as isE2EESupportedBrowser, isE2EESupported as isE2EESupportedBrowser,
@@ -23,7 +23,6 @@ import {
MatrixRTCSessionEvent, MatrixRTCSessionEvent,
type MatrixRTCSession, type MatrixRTCSession,
} from "matrix-js-sdk/lib/matrixrtc"; } from "matrix-js-sdk/lib/matrixrtc";
import { JoinRule, type Room } from "matrix-js-sdk";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
import type { IWidgetApiRequest } from "matrix-widget-api"; import type { IWidgetApiRequest } from "matrix-widget-api";

View File

@@ -6,9 +6,8 @@ Please see LICENSE in the repository root for full details.
*/ */
import { useCallback } from "react"; import { useCallback } from "react";
import { type JoinRule } from "matrix-js-sdk";
import type { Room } from "matrix-js-sdk"; import type { JoinRule, Room } from "matrix-js-sdk";
import { useRoomState } from "./useRoomState"; import { useRoomState } from "./useRoomState";
export function useJoinRule(room: Room): JoinRule { export function useJoinRule(room: Room): JoinRule {

View File

@@ -5,20 +5,19 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE in the repository root for full details. Please see LICENSE in the repository root for full details.
*/ */
import { IndexedDBStore } from "matrix-js-sdk";
import { MemoryStore } from "matrix-js-sdk";
import { import {
ClientEvent,
createClient, createClient,
type ICreateClientOpts, IndexedDBStore,
MemoryStore,
Preset, Preset,
Visibility, Visibility,
} from "matrix-js-sdk"; } from "matrix-js-sdk";
import { ClientEvent } from "matrix-js-sdk";
import { type ISyncStateData, type SyncState } from "matrix-js-sdk/lib/sync"; import { type ISyncStateData, type SyncState } from "matrix-js-sdk/lib/sync";
import { logger } from "matrix-js-sdk/lib/logger"; import { logger } from "matrix-js-sdk/lib/logger";
import { secureRandomBase64Url } from "matrix-js-sdk/lib/randomstring"; import { secureRandomBase64Url } from "matrix-js-sdk/lib/randomstring";
import type { MatrixClient, Room } from "matrix-js-sdk"; import type { ICreateClientOpts, MatrixClient, Room } from "matrix-js-sdk";
import IndexedDBWorker from "../IndexedDBWorker?worker"; import IndexedDBWorker from "../IndexedDBWorker?worker";
import { generateUrlSearchParams, getUrlParams } from "../UrlParams"; import { generateUrlSearchParams, getUrlParams } from "../UrlParams";
import { Config } from "../config/Config"; import { Config } from "../config/Config";

View File

@@ -6,8 +6,6 @@ Please see LICENSE in the repository root for full details.
*/ */
import { ConnectionState } from "livekit-client"; import { ConnectionState } from "livekit-client";
import { type MatrixClient } from "matrix-js-sdk";
import { type RoomMember } from "matrix-js-sdk";
import { import {
type CallMembership, type CallMembership,
type MatrixRTCSession, type MatrixRTCSession,
@@ -17,6 +15,7 @@ import { vitest } from "vitest";
import { type RelationsContainer } from "matrix-js-sdk/lib/models/relations-container"; import { type RelationsContainer } from "matrix-js-sdk/lib/models/relations-container";
import EventEmitter from "events"; import EventEmitter from "events";
import type { RoomMember, MatrixClient } from "matrix-js-sdk";
import { E2eeType } from "../e2ee/e2eeType"; import { E2eeType } from "../e2ee/e2eeType";
import { CallViewModel } from "../state/CallViewModel"; import { CallViewModel } from "../state/CallViewModel";
import { mockLivekitRoom, mockMatrixRoom, MockRTCSession } from "./test"; import { mockLivekitRoom, mockMatrixRoom, MockRTCSession } from "./test";

View File

@@ -6,8 +6,7 @@ Please see LICENSE in the repository root for full details.
*/ */
import { logger } from "matrix-js-sdk/lib/logger"; import { logger } from "matrix-js-sdk/lib/logger";
import { EventType } from "matrix-js-sdk"; import { EventType, createRoomWidgetClient } from "matrix-js-sdk";
import { createRoomWidgetClient } from "matrix-js-sdk";
import { import {
WidgetApi, WidgetApi,
MatrixCapabilities, MatrixCapabilities,