Switch to importing more things from the main js-sdk export (#11377)

This commit is contained in:
Michael Telatynski 2023-08-10 09:01:14 +01:00 committed by GitHub
parent a1328d8ef7
commit ef385e6028
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 136 additions and 95 deletions

View file

@ -15,7 +15,7 @@ limitations under the License.
*/
import React from "react";
import { SERVICE_TYPES } from "matrix-js-sdk/src/service-types";
import { SERVICE_TYPES } from "matrix-js-sdk/src/matrix";
import { _t, pickBestLanguage } from "../../../languageHandler";
import DialogButtons from "../elements/DialogButtons";

View file

@ -16,8 +16,15 @@ limitations under the License.
import { useCallback, useEffect, useState } from "react";
import { M_POLL_START } from "matrix-js-sdk/src/@types/polls";
import { MatrixClient, Direction, EventTimeline, EventTimelineSet, Room } from "matrix-js-sdk/src/matrix";
import { Filter, IFilterDefinition } from "matrix-js-sdk/src/filter";
import {
MatrixClient,
Direction,
EventTimeline,
EventTimelineSet,
Room,
Filter,
IFilterDefinition,
} from "matrix-js-sdk/src/matrix";
import { logger } from "matrix-js-sdk/src/logger";
const getOldestEventTimestamp = (timelineSet?: EventTimelineSet): number | undefined => {

View file

@ -18,9 +18,8 @@ limitations under the License.
import React, { FC, useState, useMemo, useCallback } from "react";
import classNames from "classnames";
import { throttle } from "lodash";
import { RoomStateEvent } from "matrix-js-sdk/src/matrix";
import { RoomStateEvent, ISearchResults } from "matrix-js-sdk/src/matrix";
import { CallType } from "matrix-js-sdk/src/webrtc/call";
import { ISearchResults } from "matrix-js-sdk/src/@types/search";
import type { MatrixEvent, Room } from "matrix-js-sdk/src/matrix";
import { _t } from "../../../languageHandler";

View file

@ -17,10 +17,9 @@ limitations under the License.
*/
import React, { ReactNode } from "react";
import { SERVICE_TYPES } from "matrix-js-sdk/src/service-types";
import { SERVICE_TYPES, IDelegatedAuthConfig, M_AUTHENTICATION, HTTPError } from "matrix-js-sdk/src/matrix";
import { IThreepid, ThreepidMedium } from "matrix-js-sdk/src/@types/threepids";
import { logger } from "matrix-js-sdk/src/logger";
import { IDelegatedAuthConfig, M_AUTHENTICATION, HTTPError } from "matrix-js-sdk/src/matrix";
import { Icon as WarningIcon } from "../../../../../../res/img/feather-customised/warning-triangle.svg";
import { UserFriendlyError, _t } from "../../../../../languageHandler";

View file

@ -15,7 +15,7 @@ limitations under the License.
*/
import React, { FC, useState, useEffect, memo } from "react";
import { GroupCall } from "matrix-js-sdk/src/webrtc/groupCall";
import { GroupCall } from "matrix-js-sdk/src/matrix";
import { formatPreciseDuration } from "../../../DateUtils";