This commit is contained in:
Timo
2025-03-13 16:58:14 +01:00
committed by Robin
parent adb5934f0b
commit 46f5c44db0
43 changed files with 87 additions and 84 deletions

View File

@@ -125,7 +125,6 @@
"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,11 +24,6 @@
"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

@@ -11,7 +11,7 @@ import {
} from "../reactions"; } from "../reactions";
// Extend Matrix JS SDK types via Typescript declaration merging to support unspecced event fields and types // Extend Matrix JS SDK types via Typescript declaration merging to support unspecced event fields and types
declare module "matrix-js-sdk/src/types" { declare module "matrix-js-sdk/lib/types" {
export interface TimelineEvents { export interface TimelineEvents {
[ElementCallReactionEventType]: ECallReactionEventContent; [ElementCallReactionEventType]: ECallReactionEventContent;
} }

View File

@@ -21,7 +21,7 @@ import { logger } from "matrix-js-sdk/lib/logger";
import { type ISyncStateData, type SyncState } from "matrix-js-sdk/lib/sync"; import { type ISyncStateData, type SyncState } from "matrix-js-sdk/lib/sync";
import { ClientEvent, type MatrixClient } from "matrix-js-sdk"; import { ClientEvent, type MatrixClient } from "matrix-js-sdk";
import type { WidgetApi } from "matrix-widget-api"; import type { WidgetApi } from "matrix-js-sdk/lib/matrix-widget-api";
import { ErrorPage } from "./FullScreenView"; import { ErrorPage } from "./FullScreenView";
import { widget } from "./widget"; import { widget } from "./widget";
import { import {

View File

@@ -16,7 +16,7 @@ import {
} from "react"; } from "react";
import { useNavigate, useLocation } from "react-router-dom"; import { useNavigate, useLocation } from "react-router-dom";
import { captureException } from "@sentry/react"; import { captureException } from "@sentry/react";
import { sleep } from "matrix-js-sdk/src/utils"; import { sleep } from "matrix-js-sdk/lib/utils";
import { Trans, useTranslation } from "react-i18next"; import { Trans, useTranslation } from "react-i18next";
import { logger } from "matrix-js-sdk/lib/logger"; import { logger } from "matrix-js-sdk/lib/logger";
import { Button, Text } from "@vector-im/compound-web"; import { Button, Text } from "@vector-im/compound-web";

View File

@@ -6,7 +6,7 @@ Please see LICENSE in the repository root for full details.
*/ */
import { useCallback } from "react"; import { useCallback } from "react";
import { InteractiveAuth } from "matrix-js-sdk/src/interactive-auth"; import { InteractiveAuth } from "matrix-js-sdk";
import { import {
createClient, createClient,
type LoginResponse, type LoginResponse,

View File

@@ -6,7 +6,7 @@ Please see LICENSE in the repository root for full details.
*/ */
import { useState, useEffect, useCallback, useRef } from "react"; import { useState, useEffect, useCallback, useRef } from "react";
import { InteractiveAuth } from "matrix-js-sdk/src/interactive-auth"; import { InteractiveAuth } from "matrix-js-sdk";
import { import {
createClient, createClient,
type MatrixClient, type MatrixClient,

View File

@@ -6,7 +6,7 @@ Please see LICENSE in the repository root for full details.
*/ */
import { useEffect, useCallback, useRef, useState } from "react"; import { useEffect, useCallback, useRef, useState } from "react";
import { secureRandomString } from "matrix-js-sdk/src/randomstring"; import { secureRandomString } from "matrix-js-sdk";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { logger } from "matrix-js-sdk/lib/logger"; import { logger } from "matrix-js-sdk/lib/logger";

View File

@@ -6,7 +6,7 @@ Please see LICENSE in the repository root for full details.
*/ */
import { useCallback } from "react"; import { useCallback } from "react";
import { secureRandomString } from "matrix-js-sdk/src/randomstring"; import { secureRandomString } from "matrix-js-sdk";
import { useClient } from "../ClientContext"; import { useClient } from "../ClientContext";
import { useInteractiveRegistration } from "../auth/useInteractiveRegistration"; import { useInteractiveRegistration } from "../auth/useInteractiveRegistration";

View File

@@ -7,8 +7,8 @@ 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 MatrixClient } from "matrix-js-sdk";
import { type RoomMember } from "matrix-js-sdk/src/models/room-member"; import { type RoomMember } from "matrix-js-sdk";
import { type Room } from "matrix-js-sdk/src/models/room"; 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";

View File

@@ -6,7 +6,7 @@ Please see LICENSE in the repository root for full details.
*/ */
import { type FC, useCallback, useState, type FormEventHandler } from "react"; import { type FC, useCallback, useState, type FormEventHandler } from "react";
import { secureRandomString } from "matrix-js-sdk/src/randomstring"; import { secureRandomString } from "matrix-js-sdk";
import { Trans, useTranslation } from "react-i18next"; import { Trans, useTranslation } from "react-i18next";
import { Button, Heading, Text } from "@vector-im/compound-web"; import { Button, Heading, Text } from "@vector-im/compound-web";
import { logger } from "matrix-js-sdk/lib/logger"; import { logger } from "matrix-js-sdk/lib/logger";

View File

@@ -5,14 +5,21 @@ 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 Room, RoomEvent } from "matrix-js-sdk/src/models/room"; type MatrixClient,
import { type RoomMember } from "matrix-js-sdk/src/models/room-member"; type RoomMember,
type Room,
RoomEvent,
EventTimeline,
EventType,
JoinRule,
KnownMembership,
} from "matrix-js-sdk";
import { useState, useEffect } from "react"; import { useState, useEffect } from "react";
import { EventTimeline, EventType, JoinRule } from "matrix-js-sdk"; import {
import { type MatrixRTCSession } from "matrix-js-sdk/lib/matrixrtc"; MatrixRTCSessionManagerEvents,
import { MatrixRTCSessionManagerEvents } from "matrix-js-sdk/lib/matrixrtcManager"; type MatrixRTCSession,
import { KnownMembership } from "matrix-js-sdk/src/types"; } from "matrix-js-sdk/lib/matrixrtc";
import { getKeyForRoom } from "../e2ee/sharedKeyManagement"; import { getKeyForRoom } from "../e2ee/sharedKeyManagement";

View File

@@ -7,11 +7,11 @@ Please see LICENSE in the repository root for full details.
import { type Span } from "@opentelemetry/api"; import { type Span } from "@opentelemetry/api";
import { type MatrixCall } from "matrix-js-sdk"; import { type MatrixCall } from "matrix-js-sdk";
import { CallEvent } from "matrix-js-sdk/src/webrtc/call"; import { CallEvent } from "matrix-js-sdk/lib/webrtc/call";
import { import {
type TransceiverStats, type TransceiverStats,
type CallFeedStats, type CallFeedStats,
} from "matrix-js-sdk/src/webrtc/stats/statsReport"; } from "matrix-js-sdk/lib/webrtc/stats/statsReport";
import { ObjectFlattener } from "./ObjectFlattener"; import { ObjectFlattener } from "./ObjectFlattener";
import { ElementCallOpenTelemetry } from "./otel"; import { ElementCallOpenTelemetry } from "./otel";

View File

@@ -6,7 +6,7 @@ Please see LICENSE in the repository root for full details.
*/ */
import opentelemetry, { type Span } from "@opentelemetry/api"; import opentelemetry, { type Span } from "@opentelemetry/api";
import { type TrackStats } from "matrix-js-sdk/src/webrtc/stats/statsReport"; import { type TrackStats } from "matrix-js-sdk/lib/webrtc/stats/statsReport";
import { type ElementCallOpenTelemetry } from "./otel"; import { type ElementCallOpenTelemetry } from "./otel";
import { OTelCallMediaStreamTrackSpan } from "./OTelCallMediaStreamTrackSpan"; import { OTelCallMediaStreamTrackSpan } from "./OTelCallMediaStreamTrackSpan";

View File

@@ -9,7 +9,7 @@ import { type Span } from "@opentelemetry/api";
import { import {
type CallFeedStats, type CallFeedStats,
type TrackStats, type TrackStats,
} from "matrix-js-sdk/src/webrtc/stats/statsReport"; } from "matrix-js-sdk/lib/webrtc/stats/statsReport";
import { type ElementCallOpenTelemetry } from "./otel"; import { type ElementCallOpenTelemetry } from "./otel";
import { OTelCallAbstractMediaStreamSpan } from "./OTelCallAbstractMediaStreamSpan"; import { OTelCallAbstractMediaStreamSpan } from "./OTelCallAbstractMediaStreamSpan";

View File

@@ -5,7 +5,7 @@ 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 TrackStats } from "matrix-js-sdk/src/webrtc/stats/statsReport"; import { type TrackStats } from "matrix-js-sdk/lib/webrtc/stats/statsReport";
import opentelemetry, { type Span } from "@opentelemetry/api"; import opentelemetry, { type Span } from "@opentelemetry/api";
import { type ElementCallOpenTelemetry } from "./otel"; import { type ElementCallOpenTelemetry } from "./otel";

View File

@@ -9,7 +9,7 @@ import { type Span } from "@opentelemetry/api";
import { import {
type TrackStats, type TrackStats,
type TransceiverStats, type TransceiverStats,
} from "matrix-js-sdk/src/webrtc/stats/statsReport"; } from "matrix-js-sdk/lib/webrtc/stats/statsReport";
import { type ElementCallOpenTelemetry } from "./otel"; import { type ElementCallOpenTelemetry } from "./otel";
import { OTelCallAbstractMediaStreamSpan } from "./OTelCallAbstractMediaStreamSpan"; import { OTelCallAbstractMediaStreamSpan } from "./OTelCallAbstractMediaStreamSpan";

View File

@@ -22,19 +22,19 @@ import {
type CallState, type CallState,
type MatrixCall, type MatrixCall,
type VoipEvent, type VoipEvent,
} from "matrix-js-sdk/src/webrtc/call"; } from "matrix-js-sdk/lib/webrtc/call";
import { import {
type CallsByUserAndDevice, type CallsByUserAndDevice,
type GroupCallError, type GroupCallError,
GroupCallEvent, GroupCallEvent,
type GroupCallStatsReport, type GroupCallStatsReport,
} from "matrix-js-sdk/src/webrtc/groupCall"; } from "matrix-js-sdk/lib/webrtc/groupCall";
import { import {
type ConnectionStatsReport, type ConnectionStatsReport,
type ByteSentStatsReport, type ByteSentStatsReport,
type SummaryStatsReport, type SummaryStatsReport,
type CallFeedReport, type CallFeedReport,
} from "matrix-js-sdk/src/webrtc/stats/statsReport"; } from "matrix-js-sdk/lib/webrtc/stats/statsReport";
import { ElementCallOpenTelemetry } from "./otel"; import { ElementCallOpenTelemetry } from "./otel";
import { ObjectFlattener } from "./ObjectFlattener"; import { ObjectFlattener } from "./ObjectFlattener";

View File

@@ -5,12 +5,12 @@ 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 GroupCallStatsReport } from "matrix-js-sdk/src/webrtc/groupCall"; import { type GroupCallStatsReport } from "matrix-js-sdk/lib/webrtc/groupCall";
import { import {
type AudioConcealment, type AudioConcealment,
type ByteSentStatsReport, type ByteSentStatsReport,
type ConnectionStatsReport, type ConnectionStatsReport,
} from "matrix-js-sdk/src/webrtc/stats/statsReport"; } from "matrix-js-sdk/lib/webrtc/stats/statsReport";
import { describe, expect, it } from "vitest"; import { describe, expect, it } from "vitest";
import { ObjectFlattener } from "../../src/otel/ObjectFlattener"; import { ObjectFlattener } from "../../src/otel/ObjectFlattener";

View File

@@ -5,13 +5,13 @@ 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 Attributes } from "@opentelemetry/api"; import { type Attributes } from "@opentelemetry/api";
import { type VoipEvent } from "matrix-js-sdk/src/webrtc/call"; import { type VoipEvent } from "matrix-js-sdk/lib/webrtc/call";
import { type GroupCallStatsReport } from "matrix-js-sdk/src/webrtc/groupCall"; import { type GroupCallStatsReport } from "matrix-js-sdk/lib/webrtc/groupCall";
import { import {
type ByteSentStatsReport, type ByteSentStatsReport,
type ConnectionStatsReport, type ConnectionStatsReport,
type SummaryStatsReport, type SummaryStatsReport,
} from "matrix-js-sdk/src/webrtc/stats/statsReport"; } from "matrix-js-sdk/lib/webrtc/stats/statsReport";
export class ObjectFlattener { export class ObjectFlattener {
public static flattenReportObject( public static flattenReportObject(

View File

@@ -6,9 +6,12 @@ Please see LICENSE in the repository root for full details.
*/ */
import { type MatrixClient } from "matrix-js-sdk"; import { type MatrixClient } from "matrix-js-sdk";
import { type MatrixEvent } from "matrix-js-sdk/src/models/event"; import {
import { type User, UserEvent } from "matrix-js-sdk/src/models/user"; type MatrixEvent,
import { type FileType } from "matrix-js-sdk/src/http-api"; type User,
UserEvent,
type FileType,
} from "matrix-js-sdk";
import { useState, useCallback, useEffect } from "react"; import { useState, useCallback, useEffect } from "react";
import { logger } from "matrix-js-sdk/lib/logger"; import { logger } from "matrix-js-sdk/lib/logger";

View File

@@ -12,7 +12,7 @@ import {
} from "matrix-js-sdk/lib/matrixrtc"; } from "matrix-js-sdk/lib/matrixrtc";
import { logger } from "matrix-js-sdk/lib/logger"; import { logger } from "matrix-js-sdk/lib/logger";
import { type MatrixEvent, MatrixEventEvent } from "matrix-js-sdk"; import { type MatrixEvent, MatrixEventEvent } from "matrix-js-sdk";
import { type ReactionEventContent } from "matrix-js-sdk/src/types"; import { type ReactionEventContent } from "matrix-js-sdk/lib/types";
import { import {
RelationType, RelationType,
EventType, EventType,

View File

@@ -5,7 +5,7 @@ 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 RelationType } from "matrix-js-sdk/src/types"; import { type RelationType } from "matrix-js-sdk";
import catSoundOgg from "../sound/reactions/cat.ogg?url"; import catSoundOgg from "../sound/reactions/cat.ogg?url";
import catSoundMp3 from "../sound/reactions/cat.mp3?url"; import catSoundMp3 from "../sound/reactions/cat.mp3?url";

View File

@@ -26,7 +26,7 @@ import {
import { JoinRule, type Room } from "matrix-js-sdk"; 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-js-sdk/lib/matrix-widget-api";
import { import {
ElementWidgetActions, ElementWidgetActions,
type JoinCallData, type JoinCallData,

View File

@@ -34,7 +34,7 @@ import { logger } from "matrix-js-sdk/lib/logger";
import LogoMark from "../icons/LogoMark.svg?react"; import LogoMark from "../icons/LogoMark.svg?react";
import LogoType from "../icons/LogoType.svg?react"; import LogoType from "../icons/LogoType.svg?react";
import type { IWidgetApiRequest } from "matrix-widget-api"; import type { IWidgetApiRequest } from "matrix-js-sdk/lib/matrix-widget-api";
import { import {
EndCallButton, EndCallButton,
MicButton, MicButton,

View File

@@ -12,7 +12,7 @@ import {
useEffect, useEffect,
useMemo, useMemo,
} from "react"; } from "react";
import { type IWidgetApiRequest } from "matrix-widget-api"; import { type IWidgetApiRequest } from "matrix-js-sdk/lib/matrix-widget-api";
import { logger } from "matrix-js-sdk/lib/logger"; import { logger } from "matrix-js-sdk/lib/logger";
import { import {

View File

@@ -13,13 +13,13 @@ import {
useRef, useRef,
type JSX, type JSX,
} from "react"; } from "react";
import { type MatrixError } from "matrix-js-sdk";
import { logger } from "matrix-js-sdk/lib/logger"; import { logger } from "matrix-js-sdk/lib/logger";
import { Trans, useTranslation } from "react-i18next"; import { Trans, useTranslation } from "react-i18next";
import { import {
CheckIcon, CheckIcon,
UnknownSolidIcon, UnknownSolidIcon,
} from "@vector-im/compound-design-tokens/assets/web/icons"; } from "@vector-im/compound-design-tokens/assets/web/icons";
import { type MatrixError } from "matrix-js-sdk/src/http-api";
import { useClientLegacy } from "../ClientContext"; import { useClientLegacy } from "../ClientContext";
import { ErrorPage, FullScreenView, LoadingPage } from "../FullScreenView"; import { ErrorPage, FullScreenView, LoadingPage } from "../FullScreenView";

View File

@@ -6,7 +6,7 @@ Please see LICENSE in the repository root for full details.
*/ */
import { vi, type Mocked, test, expect } from "vitest"; import { vi, type Mocked, test, expect } from "vitest";
import { type RoomState } from "matrix-js-sdk/src/models/room-state"; import { type RoomState } from "matrix-js-sdk";
import { PosthogAnalytics } from "../../src/analytics/PosthogAnalytics"; import { PosthogAnalytics } from "../../src/analytics/PosthogAnalytics";
import { checkForParallelCalls } from "../../src/room/checkForParallelCalls"; import { checkForParallelCalls } from "../../src/room/checkForParallelCalls";

View File

@@ -5,8 +5,7 @@ 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 { EventType } from "matrix-js-sdk/src/@types/event"; import { EventType, type RoomState } from "matrix-js-sdk";
import { type RoomState } from "matrix-js-sdk/src/models/room-state";
import { PosthogAnalytics } from "../analytics/PosthogAnalytics"; import { PosthogAnalytics } from "../analytics/PosthogAnalytics";

View File

@@ -10,12 +10,9 @@ import {
MatrixRTCSessionEvent, MatrixRTCSessionEvent,
} from "matrix-js-sdk/lib/matrixrtc"; } from "matrix-js-sdk/lib/matrixrtc";
import { useCallback, useEffect, useState } from "react"; import { useCallback, useEffect, useState } from "react";
import { deepCompare } from "matrix-js-sdk/src/utils"; import { deepCompare } from "matrix-js-sdk/lib/utils";
import { logger } from "matrix-js-sdk/lib/logger"; import { logger } from "matrix-js-sdk/lib/logger";
import { import { type LivekitFocus, isLivekitFocus } from "matrix-js-sdk/lib/matrixrtc";
type LivekitFocus,
isLivekitFocus,
} from "matrix-js-sdk/lib/matrixrtc";
/** /**
* Gets the currently active (livekit) focus for a MatrixRTC session * Gets the currently active (livekit) focus for a MatrixRTC session

View File

@@ -13,18 +13,20 @@ import {
type ComponentType, type ComponentType,
type SVGAttributes, type SVGAttributes,
} from "react"; } from "react";
import { logger } from "matrix-js-sdk/lib/logger";
import { EventType } from "matrix-js-sdk/src/@types/event";
import { import {
JoinRule,
EventType,
SyncState,
MatrixError,
KnownMembership,
ClientEvent, ClientEvent,
type MatrixClient, type MatrixClient,
type RoomSummary, type RoomSummary,
RoomEvent,
type Room,
} from "matrix-js-sdk"; } from "matrix-js-sdk";
import { SyncState } from "matrix-js-sdk/src/sync"; import { logger } from "matrix-js-sdk/lib/logger";
import { type MatrixRTCSession } from "matrix-js-sdk/lib/matrixrtc"; import { type MatrixRTCSession } from "matrix-js-sdk/lib/matrixrtc";
import { RoomEvent, type Room } from "matrix-js-sdk/src/models/room";
import { KnownMembership } from "matrix-js-sdk/src/types";
import { JoinRule, MatrixError } from "matrix-js-sdk";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { import {
AdminIcon, AdminIcon,

View File

@@ -6,7 +6,7 @@ Please see LICENSE in the repository root for full details.
*/ */
import { type ChangeEvent, type FC, useCallback } from "react"; import { type ChangeEvent, type FC, useCallback } from "react";
import { secureRandomString } from "matrix-js-sdk/src/randomstring"; import { secureRandomString } from "matrix-js-sdk";
import { Trans, useTranslation } from "react-i18next"; import { Trans, useTranslation } from "react-i18next";
import { Button, Text } from "@vector-im/compound-web"; import { Button, Text } from "@vector-im/compound-web";
import { logger } from "matrix-js-sdk/lib/logger"; import { logger } from "matrix-js-sdk/lib/logger";

View File

@@ -30,7 +30,7 @@ Please see LICENSE in the repository root for full details.
import EventEmitter from "events"; import EventEmitter from "events";
import { throttle } from "lodash-es"; import { throttle } from "lodash-es";
import { type Logger, logger } from "matrix-js-sdk/lib/logger"; import { type Logger, logger } from "matrix-js-sdk/lib/logger";
import { secureRandomString } from "matrix-js-sdk/src/randomstring"; import { secureRandomString } from "matrix-js-sdk";
import { type LoggingMethod } from "loglevel"; import { type LoggingMethod } from "loglevel";
import type loglevel from "loglevel"; import type loglevel from "loglevel";

View File

@@ -12,7 +12,7 @@ import {
type MatrixClient, type MatrixClient,
type MatrixEvent, type MatrixEvent,
} from "matrix-js-sdk"; } from "matrix-js-sdk";
import { type CryptoApi } from "matrix-js-sdk/src/crypto-api"; import { type CryptoApi } from "matrix-js-sdk/lib/crypto-api";
import { getLogsForReport } from "./rageshake"; import { getLogsForReport } from "./rageshake";
import { useClient } from "../ClientContext"; import { useClient } from "../ClientContext";

View File

@@ -16,7 +16,7 @@ import {
vi, vi,
} from "vitest"; } from "vitest";
import EventEmitter from "events"; import EventEmitter from "events";
import { WidgetApiToWidgetAction } from "matrix-widget-api"; import { WidgetApiToWidgetAction } from "matrix-js-sdk/lib/matrix-widget-api";
import { useTheme } from "./useTheme"; import { useTheme } from "./useTheme";
import { getUrlParams } from "./UrlParams"; import { getUrlParams } from "./UrlParams";

View File

@@ -6,8 +6,8 @@ Please see LICENSE in the repository root for full details.
*/ */
import { useEffect, useLayoutEffect, useRef, useState } from "react"; import { useEffect, useLayoutEffect, useRef, useState } from "react";
import { WidgetApiToWidgetAction } from "matrix-widget-api"; import { WidgetApiToWidgetAction } from "matrix-js-sdk/lib/matrix-widget-api";
import { type IThemeChangeActionRequest } from "matrix-widget-api/lib/interfaces/ThemeChangeAction"; import { type IThemeChangeActionRequest } from "matrix-js-sdk/lib/matrix-widget-api";
import { getUrlParams } from "./UrlParams"; import { getUrlParams } from "./UrlParams";
import { widget } from "./widget"; import { widget } from "./widget";

View File

@@ -14,14 +14,14 @@ import { mockMatrixRoom } from "./test";
// Ideally these tests would be in ./displayname.test.ts but I can't figure out how to // Ideally these tests would be in ./displayname.test.ts but I can't figure out how to
// just spy on the removeHiddenChars() function without impacting the other tests. // just spy on the removeHiddenChars() function without impacting the other tests.
// So, these tests are in this separate test file. // So, these tests are in this separate test file.
vi.mock("matrix-js-sdk/src/utils"); vi.mock("matrix-js-sdk/lib/utils");
describe("shouldDisambiguate", () => { describe("shouldDisambiguate", () => {
// eslint-disable-next-line @typescript-eslint/consistent-type-imports // eslint-disable-next-line @typescript-eslint/consistent-type-imports
let jsUtils: typeof import("matrix-js-sdk/src/utils"); let jsUtils: typeof import("matrix-js-sdk/lib/utils");
beforeAll(async () => { beforeAll(async () => {
jsUtils = await import("matrix-js-sdk/src/utils"); jsUtils = await import("matrix-js-sdk/lib/utils");
vi.spyOn(jsUtils, "removeHiddenChars").mockImplementation((str) => str); vi.spyOn(jsUtils, "removeHiddenChars").mockImplementation((str) => str);
}); });
afterEach(() => { afterEach(() => {

View File

@@ -8,7 +8,7 @@ Please see LICENSE in the repository root for full details.
import { import {
removeDirectionOverrideChars, removeDirectionOverrideChars,
removeHiddenChars as removeHiddenCharsUncached, removeHiddenChars as removeHiddenCharsUncached,
} from "matrix-js-sdk/src/utils"; } from "matrix-js-sdk/lib/utils";
import type { Room } from "matrix-js-sdk"; import type { Room } from "matrix-js-sdk";
import type { CallMembership } from "matrix-js-sdk/lib/matrixrtc"; import type { CallMembership } from "matrix-js-sdk/lib/matrixrtc";

View File

@@ -5,8 +5,8 @@ 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/src/store/indexeddb"; import { IndexedDBStore } from "matrix-js-sdk";
import { MemoryStore } from "matrix-js-sdk/src/store/memory"; import { MemoryStore } from "matrix-js-sdk";
import { import {
createClient, createClient,
type ICreateClientOpts, type ICreateClientOpts,
@@ -14,12 +14,11 @@ import {
Visibility, Visibility,
} from "matrix-js-sdk"; } from "matrix-js-sdk";
import { ClientEvent } from "matrix-js-sdk"; import { ClientEvent } from "matrix-js-sdk";
import { type ISyncStateData, type SyncState } from "matrix-js-sdk/src/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/src/randomstring"; import { secureRandomBase64Url } from "matrix-js-sdk";
import type { MatrixClient } from "matrix-js-sdk"; import type { MatrixClient, Room } from "matrix-js-sdk";
import type { Room } from "matrix-js-sdk/src/models/room";
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

@@ -5,8 +5,7 @@ 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 ICreateClientOpts } from "matrix-js-sdk"; import { type ICreateClientOpts, MatrixError } from "matrix-js-sdk";
import { MatrixError } from "matrix-js-sdk/src/http-api";
import { logger } from "matrix-js-sdk/lib/logger"; import { logger } from "matrix-js-sdk/lib/logger";
import { Config } from "../config/Config"; import { Config } from "../config/Config";

View File

@@ -8,10 +8,13 @@ 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 MatrixClient } from "matrix-js-sdk";
import { type RoomMember } from "matrix-js-sdk"; import { type RoomMember } from "matrix-js-sdk";
import { type CallMembership, type MatrixRTCSession } from "matrix-js-sdk/lib/matrixrtc"; import {
type CallMembership,
type MatrixRTCSession,
} from "matrix-js-sdk/lib/matrixrtc";
import { BehaviorSubject, of } from "rxjs"; import { BehaviorSubject, of } from "rxjs";
import { vitest } from "vitest"; import { vitest } from "vitest";
import { type RelationsContainer } from "matrix-js-sdk/src/models/relations-container"; import { type RelationsContainer } from "matrix-js-sdk";
import EventEmitter from "events"; import EventEmitter from "events";
import { E2eeType } from "../e2ee/e2eeType"; import { E2eeType } from "../e2ee/e2eeType";

View File

@@ -12,10 +12,10 @@ import {
WidgetApi, WidgetApi,
MatrixCapabilities, MatrixCapabilities,
WidgetApiToWidgetAction, WidgetApiToWidgetAction,
} from "matrix-widget-api"; } from "matrix-js-sdk/lib/matrix-widget-api";
import type { MatrixClient } from "matrix-js-sdk"; import type { MatrixClient } from "matrix-js-sdk";
import type { IWidgetApiRequest } from "matrix-widget-api"; import type { IWidgetApiRequest } from "matrix-js-sdk/lib/matrix-widget-api";
import { LazyEventEmitter } from "./LazyEventEmitter"; import { LazyEventEmitter } from "./LazyEventEmitter";
import { getUrlParams } from "./UrlParams"; import { getUrlParams } from "./UrlParams";
import { Config } from "./config/Config"; import { Config } from "./config/Config";

View File

@@ -6512,7 +6512,7 @@ matrix-events-sdk@0.0.1:
unhomoglyph "^1.0.6" unhomoglyph "^1.0.6"
uuid "11" uuid "11"
matrix-widget-api@1.11.0, matrix-widget-api@^1.10.0: matrix-widget-api@^1.10.0:
version "1.11.0" version "1.11.0"
resolved "https://registry.yarnpkg.com/matrix-widget-api/-/matrix-widget-api-1.11.0.tgz#2f548b11a7c0df789d5d4fdb5cc9ef7af8aef3da" resolved "https://registry.yarnpkg.com/matrix-widget-api/-/matrix-widget-api-1.11.0.tgz#2f548b11a7c0df789d5d4fdb5cc9ef7af8aef3da"
integrity sha512-ED/9hrJqDWVLeED0g1uJnYRhINh3ZTquwurdM+Hc8wLVJIQ8G/r7A7z74NC+8bBIHQ1Jo7i1Uq5CoJp/TzFYrA== integrity sha512-ED/9hrJqDWVLeED0g1uJnYRhINh3ZTquwurdM+Hc8wLVJIQ8G/r7A7z74NC+8bBIHQ1Jo7i1Uq5CoJp/TzFYrA==