Switch to importing models/{event-timeline{,set},user,device,event-status} from main js-sdk export (#11368)
This commit is contained in:
parent
b08bdf7e0d
commit
368b6b9355
40 changed files with 106 additions and 73 deletions
|
@ -16,7 +16,7 @@
|
|||
|
||||
import React from "react";
|
||||
import { render, screen } from "@testing-library/react";
|
||||
import { Device } from "matrix-js-sdk/src/models/device";
|
||||
import { Device } from "matrix-js-sdk/src/matrix";
|
||||
import { MatrixClient } from "matrix-js-sdk/src/client";
|
||||
|
||||
import { stubClient } from "../../../test-utils";
|
||||
|
|
|
@ -27,6 +27,7 @@ import {
|
|||
EventType,
|
||||
CryptoApi,
|
||||
DeviceVerificationStatus,
|
||||
Device,
|
||||
} from "matrix-js-sdk/src/matrix";
|
||||
import {
|
||||
Phase,
|
||||
|
@ -34,7 +35,6 @@ import {
|
|||
VerificationRequestEvent,
|
||||
} from "matrix-js-sdk/src/crypto/verification/request/VerificationRequest";
|
||||
import { UserTrustLevel } from "matrix-js-sdk/src/crypto/CrossSigning";
|
||||
import { Device } from "matrix-js-sdk/src/models/device";
|
||||
import { defer } from "matrix-js-sdk/src/utils";
|
||||
import { EventEmitter } from "events";
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||
|
||||
import { act, render, waitFor } from "@testing-library/react";
|
||||
import React, { ComponentProps } from "react";
|
||||
import { User } from "matrix-js-sdk/src/models/user";
|
||||
import { User, TypedEventEmitter, Device, MatrixClient } from "matrix-js-sdk/src/matrix";
|
||||
import { mocked, Mocked } from "jest-mock";
|
||||
import {
|
||||
EmojiMapping,
|
||||
|
@ -28,7 +28,6 @@ import {
|
|||
VerifierEvent,
|
||||
VerifierEventHandlerMap,
|
||||
} from "matrix-js-sdk/src/crypto-api/verification";
|
||||
import { TypedEventEmitter, Device, MatrixClient } from "matrix-js-sdk/src/matrix";
|
||||
|
||||
import VerificationPanel from "../../../../src/components/views/right_panel/VerificationPanel";
|
||||
import { flushPromises, stubClient } from "../../../test-utils";
|
||||
|
|
|
@ -17,8 +17,7 @@ limitations under the License.
|
|||
|
||||
import React from "react";
|
||||
import { act, render, RenderResult } from "@testing-library/react";
|
||||
import { Room, MatrixClient, RoomState, RoomMember } from "matrix-js-sdk/src/matrix";
|
||||
import { User } from "matrix-js-sdk/src/models/user";
|
||||
import { Room, MatrixClient, RoomState, RoomMember, User } from "matrix-js-sdk/src/matrix";
|
||||
import { compare } from "matrix-js-sdk/src/utils";
|
||||
|
||||
import { MatrixClientPeg } from "../../../../src/MatrixClientPeg";
|
||||
|
|
|
@ -17,9 +17,8 @@ limitations under the License.
|
|||
import React from "react";
|
||||
import "jest-mock";
|
||||
import { screen, act, render } from "@testing-library/react";
|
||||
import { MatrixEvent, MsgType, RelationType, NotificationCountType, Room } from "matrix-js-sdk/src/matrix";
|
||||
import { MatrixEvent, MsgType, RelationType, NotificationCountType, Room, EventStatus } from "matrix-js-sdk/src/matrix";
|
||||
import { PendingEventOrdering } from "matrix-js-sdk/src/client";
|
||||
import { EventStatus } from "matrix-js-sdk/src/models/event-status";
|
||||
import { ReceiptType } from "matrix-js-sdk/src/@types/read_receipts";
|
||||
|
||||
import type { MatrixClient } from "matrix-js-sdk/src/client";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue