Switch to importing client from main js-sdk export (#11370)

This commit is contained in:
Michael Telatynski 2023-08-09 08:18:41 +01:00 committed by GitHub
parent e0d498e338
commit c3574c2050
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
155 changed files with 259 additions and 268 deletions

View file

@ -15,8 +15,7 @@ limitations under the License.
*/
import React, { useContext, useEffect } from "react";
import { MatrixEvent, MatrixError } from "matrix-js-sdk/src/matrix";
import { IPreviewUrlResponse, MatrixClient } from "matrix-js-sdk/src/client";
import { MatrixEvent, MatrixError, IPreviewUrlResponse, MatrixClient } from "matrix-js-sdk/src/matrix";
import { logger } from "matrix-js-sdk/src/logger";
import { useStateToggle } from "../../../hooks/useStateToggle";

View file

@ -16,8 +16,7 @@ limitations under the License.
import React, { ComponentProps, createRef, ReactNode } from "react";
import { decode } from "html-entities";
import { MatrixEvent } from "matrix-js-sdk/src/matrix";
import { IPreviewUrlResponse } from "matrix-js-sdk/src/client";
import { MatrixEvent, IPreviewUrlResponse } from "matrix-js-sdk/src/matrix";
import { Linkify } from "../../../HtmlUtils";
import SettingsStore from "../../../settings/SettingsStore";

View file

@ -30,9 +30,9 @@ import {
UserEvent,
JoinRule,
EventType,
ClientEvent,
} from "matrix-js-sdk/src/matrix";
import { throttle } from "lodash";
import { ClientEvent } from "matrix-js-sdk/src/client";
import { _t } from "../../../languageHandler";
import dis from "../../../dispatcher/dispatcher";

View file

@ -15,10 +15,9 @@ limitations under the License.
*/
import classNames from "classnames";
import { IEventRelation, Room } from "matrix-js-sdk/src/matrix";
import { IEventRelation, Room, MatrixClient } from "matrix-js-sdk/src/matrix";
import { M_POLL_START } from "matrix-js-sdk/src/@types/polls";
import React, { createContext, ReactElement, ReactNode, useContext, useRef } from "react";
import { MatrixClient } from "matrix-js-sdk/src/client";
import { THREAD_RELATION_TYPE } from "matrix-js-sdk/src/models/thread";
import { _t } from "../../../languageHandler";

View file

@ -15,8 +15,7 @@ limitations under the License.
*/
import React, { useContext } from "react";
import { EventType, Room, User } from "matrix-js-sdk/src/matrix";
import { MatrixClient } from "matrix-js-sdk/src/client";
import { EventType, Room, User, MatrixClient } from "matrix-js-sdk/src/matrix";
import MatrixClientContext from "../../../contexts/MatrixClientContext";
import RoomContext from "../../../contexts/RoomContext";

View file

@ -15,8 +15,7 @@ limitations under the License.
*/
import React, { FC } from "react";
import { Room, JoinRule } from "matrix-js-sdk/src/matrix";
import { MatrixClient } from "matrix-js-sdk/src/client";
import { Room, JoinRule, MatrixClient } from "matrix-js-sdk/src/matrix";
import { _t } from "../../../languageHandler";
import RightPanelStore from "../../../stores/right-panel/RightPanelStore";

View file

@ -14,8 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import { EventType, RoomType, Room, RoomEvent } from "matrix-js-sdk/src/matrix";
import { ClientEvent } from "matrix-js-sdk/src/client";
import { EventType, RoomType, Room, RoomEvent, ClientEvent } from "matrix-js-sdk/src/matrix";
import React, { useContext, useEffect, useState } from "react";
import MatrixClientContext from "../../../contexts/MatrixClientContext";

View file

@ -15,10 +15,9 @@ limitations under the License.
*/
import React from "react";
import { Room } from "matrix-js-sdk/src/matrix";
import { Room, ClientEvent } from "matrix-js-sdk/src/matrix";
import { logger } from "matrix-js-sdk/src/logger";
import { IWidget } from "matrix-widget-api";
import { ClientEvent } from "matrix-js-sdk/src/client";
import { _t, _td } from "../../../languageHandler";
import AppTile from "../elements/AppTile";