[Dev] TeactN: Support project-wise and action payload typing

This commit is contained in:
Alexander Zinchuk 2022-03-19 21:19:05 +01:00
parent f126e79d79
commit 10749c62ca
249 changed files with 329 additions and 274 deletions

View File

@ -1,5 +1,5 @@
import { FC, useEffect } from './lib/teact/teact';
import React, { getDispatch, withGlobal } from './lib/teact/teactn';
import React, { FC, useEffect } from './lib/teact/teact';
import { getDispatch, withGlobal } from './modules';
import { GlobalState } from './global/types';

View File

@ -1,4 +1,4 @@
import { getDispatch, getGlobal } from '../lib/teact/teactn';
import { getDispatch, getGlobal } from '../modules';
import { DEBUG } from '../config';

View File

@ -1,5 +1,5 @@
import React, { FC, useEffect, memo } from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { GlobalState } from '../../global/types';

View File

@ -2,7 +2,7 @@ import { FormEvent } from 'react';
import React, {
FC, useState, useEffect, useCallback, memo, useRef,
} from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { GlobalState } from '../../global/types';
import { IS_TOUCH_ENV } from '../../util/environment';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useState,
} from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { GlobalState } from '../../global/types';

View File

@ -5,7 +5,7 @@ import monkeyPath from '../../assets/monkey.svg';
import React, {
FC, memo, useCallback, useEffect, useLayoutEffect, useRef, useState,
} from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { GlobalState } from '../../global/types';
import { LangCode } from '../../types';

View File

@ -2,7 +2,7 @@ import QrCreator from 'qr-creator';
import React, {
FC, useEffect, useRef, memo, useCallback,
} from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { GlobalState } from '../../global/types';
import { LangCode } from '../../types';

View File

@ -1,6 +1,6 @@
import { ChangeEvent } from 'react';
import React, { FC, useState, memo } from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { GlobalState } from '../../global/types';

View File

@ -1,7 +1,7 @@
import React, {
FC, useState, memo, useCallback, useRef,
} from '../../lib/teact/teact';
import { withGlobal } from '../../lib/teact/teactn';
import { withGlobal } from '../../modules';
import { ApiCountryCode } from '../../api/types';

View File

@ -2,7 +2,7 @@ import { GroupCallParticipant } from '../../lib/secret-sauce';
import React, {
FC, memo, useEffect,
} from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { ApiGroupCall } from '../../api/types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo, useState } from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import ConfirmDialog from '../ui/ConfirmDialog';
import Checkbox from '../ui/Checkbox';

View File

@ -5,7 +5,7 @@ import {
import React, {
FC, memo, useCallback, useEffect, useMemo, useRef, useState,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import '../../../modules/actions/calls';
import { IAnchorPosition } from '../../../types';

View File

@ -2,7 +2,7 @@ import { GroupCallParticipant as TypeGroupCallParticipant, THRESHOLD } from '../
import React, {
FC, memo, useMemo, useRef,
} from '../../../lib/teact/teact';
import { withGlobal } from '../../../lib/teact/teactn';
import { withGlobal } from '../../../modules';
import { ApiChat, ApiUser } from '../../../api/types';

View File

@ -1,6 +1,6 @@
import { GroupCallParticipant as TypeGroupCallParticipant } from '../../../lib/secret-sauce';
import React, { FC, memo, useMemo } from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import useLang from '../../../hooks/useLang';
import { selectActiveGroupCall } from '../../../modules/selectors/calls';

View File

@ -2,7 +2,7 @@ import { GroupCallParticipant } from '../../../lib/secret-sauce';
import React, {
FC, memo, useCallback, useEffect, useState,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { IAnchorPosition } from '../../../types';

View File

@ -2,7 +2,7 @@ import { GroupCallParticipant } from '../../../lib/secret-sauce';
import React, {
FC, memo, useCallback, useMemo, useState,
} from '../../../lib/teact/teact';
import { withGlobal } from '../../../lib/teact/teactn';
import { withGlobal } from '../../../modules';
import GroupCallParticipantVideo from './GroupCallParticipantVideo';
import { selectActiveGroupCall } from '../../../modules/selectors/calls';
import buildClassName from '../../../util/buildClassName';

View File

@ -1,6 +1,6 @@
import { getUserStreams, GroupCallParticipant as TypeGroupCallParticipant, THRESHOLD } from '../../../lib/secret-sauce';
import React, { FC, memo, useCallback } from '../../../lib/teact/teact';
import { withGlobal } from '../../../lib/teact/teactn';
import { withGlobal } from '../../../modules';
import { ApiChat, ApiUser } from '../../../api/types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect, useMemo,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { ApiChat, ApiGroupCall, ApiUser } from '../../../api/types';

View File

@ -2,7 +2,7 @@ import { GroupCallConnectionState } from '../../../lib/secret-sauce';
import React, {
FC, memo, useEffect, useMemo, useRef, useState,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import buildClassName from '../../../util/buildClassName';
import { vibrateShort } from '../../../util/vibrate';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState,
} from '../../lib/teact/teact';
import { getDispatch } from '../../lib/teact/teactn';
import { getDispatch } from '../../modules';
import {
ApiAudio, ApiMediaFormat, ApiMessage, ApiVoice,

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect,
} from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { GlobalState } from '../../global/types';
import { ApiChat, ApiCountryCode, ApiUser } from '../../api/types';

View File

@ -1,5 +1,5 @@
import React, { FC, useCallback } from '../../lib/teact/teact';
import { getDispatch } from '../../lib/teact/teactn';
import { getDispatch } from '../../modules';
import buildClassName from '../../util/buildClassName';

View File

@ -1,5 +1,5 @@
import React, { FC, useCallback, memo } from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { ApiChat } from '../../api/types';

View File

@ -1,5 +1,5 @@
import React, { FC, useCallback, memo } from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { ApiMessage } from '../../api/types';
import { IAlbum } from '../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, useCallback, memo, useRef, useEffect, useState,
} from '../../lib/teact/teact';
import { getDispatch } from '../../lib/teact/teactn';
import { getDispatch } from '../../modules';
import { ApiMessage } from '../../api/types';

View File

@ -5,7 +5,7 @@ import { ApiGroupCall } from '../../api/types';
import buildClassName from '../../util/buildClassName';
import Link from '../ui/Link';
import { getDispatch } from '../../lib/teact/teactn';
import { getDispatch } from '../../modules';
type OwnProps = {
className?: string;

View File

@ -2,7 +2,7 @@ import { MouseEvent as ReactMouseEvent } from 'react';
import React, {
FC, useEffect, useCallback, memo,
} from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { ApiChat, ApiTypingStatus } from '../../api/types';
import { GlobalState } from '../../global/types';

View File

@ -1,5 +1,5 @@
import React, { FC, useCallback } from '../../lib/teact/teact';
import { getDispatch } from '../../lib/teact/teactn';
import { getDispatch } from '../../modules';
import { ApiMessage } from '../../api/types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo } from '../../lib/teact/teact';
import { withGlobal } from '../../lib/teact/teactn';
import { withGlobal } from '../../modules';
import { ApiChat, ApiUser } from '../../api/types';

View File

@ -1,5 +1,5 @@
import React, { FC, useCallback, memo } from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { selectChat, selectIsChatWithSelf, selectUser } from '../../modules/selectors';
import {

View File

@ -2,7 +2,7 @@ import { MouseEvent as ReactMouseEvent } from 'react';
import React, {
FC, useEffect, useCallback, memo,
} from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { ApiUser, ApiTypingStatus, ApiUserStatus } from '../../api/types';
import { GlobalState } from '../../global/types';

View File

@ -1,7 +1,7 @@
import React, {
FC, useEffect, useCallback, memo, useState,
} from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { ApiUser, ApiChat, ApiUserStatus } from '../../api/types';
import { GlobalState } from '../../global/types';

View File

@ -1,6 +1,6 @@
import { RefObject } from 'react';
import React, { FC, memo } from '../../lib/teact/teact';
import { getGlobal } from '../../lib/teact/teactn';
import { getGlobal } from '../../modules';
import { ApiMediaFormat } from '../../api/types';

View File

@ -3,7 +3,7 @@ import { ChangeEvent } from 'react';
import React, {
FC, memo, useCallback, useState,
} from '../../lib/teact/teact';
import { getDispatch } from '../../lib/teact/teactn';
import { getDispatch } from '../../modules';
import { ApiReportReason } from '../../api/types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo, useCallback } from '../../lib/teact/teact';
import { getDispatch } from '../../lib/teact/teactn';
import { getDispatch } from '../../modules';
import convertPunycode from '../../lib/punycode';
import {

View File

@ -1,5 +1,5 @@
import React, { FC, useCallback, memo } from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import useLang from '../../hooks/useLang';
import { selectChatMessage } from '../../modules/selectors';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect, useRef,
} from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { ApiSticker, ApiStickerSet } from '../../api/types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo } from '../../lib/teact/teact';
import { withGlobal } from '../../lib/teact/teactn';
import { withGlobal } from '../../modules';
import { ApiUser, ApiTypingStatus } from '../../api/types';

View File

@ -1,5 +1,5 @@
import React, { FC, useEffect } from '../../lib/teact/teact';
import { getDispatch, getGlobal, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, getGlobal, withGlobal } from '../../modules';
import { ApiMediaFormat } from '../../api/types';
import { GlobalState } from '../../global/types';

View File

@ -5,7 +5,7 @@ import { ApiChat, ApiUser } from '../../api/types';
import buildClassName from '../../util/buildClassName';
import Link from '../ui/Link';
import { getDispatch } from '../../lib/teact/teactn';
import { getDispatch } from '../../modules';
type OwnProps = {
className?: string;

View File

@ -1,6 +1,6 @@
import { MouseEvent } from 'react';
import React from '../../../lib/teact/teact';
import { getDispatch } from '../../../lib/teact/teactn';
import { getDispatch } from '../../../modules';
import { ApiFormattedText, ApiMessageEntity, ApiMessageEntityTypes } from '../../../api/types';
import renderText, { TextFilter } from './renderText';

View File

@ -2,7 +2,7 @@ import {
useCallback, useEffect, useRef, useState,
} from '../../../lib/teact/teact';
import safePlay from '../../../util/safePlay';
import { getDispatch } from '../../../lib/teact/teactn';
import { getDispatch } from '../../../modules';
import useMedia from '../../../hooks/useMedia';
import { ActiveEmojiInteraction } from '../../../global/types';
import useFlag from '../../../hooks/useFlag';

View File

@ -1,7 +1,7 @@
import React, {
FC, useCallback, memo, useMemo, useState,
} from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { ApiChatFolder } from '../../api/types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect, useRef, useState,
} from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { LeftColumnContent, SettingsScreens } from '../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useLayoutEffect, useMemo, useRef,
} from '../../../lib/teact/teact';
import { getDispatch, getGlobal, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, getGlobal, withGlobal } from '../../../modules';
import useLang, { LangFn } from '../../../hooks/useLang';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect, useMemo, useRef,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { ApiChatFolder } from '../../../api/types';
import { SettingsScreens } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useMemo, useEffect,
} from '../../../lib/teact/teact';
import { getDispatch } from '../../../lib/teact/teactn';
import { getDispatch } from '../../../modules';
import { SettingsScreens } from '../../../types';
import { FolderEditDispatch } from '../../../hooks/reducers/useFoldersReducer';

View File

@ -1,7 +1,7 @@
import React, {
FC, useEffect, useCallback, useMemo, memo,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { ApiUser, ApiUserStatus } from '../../../api/types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo, useCallback } from '../../../lib/teact/teact';
import { withGlobal } from '../../../lib/teact/teactn';
import { withGlobal } from '../../../modules';
import { ApiChatFolder, ApiSticker } from '../../../api/types';
import { SettingsScreens } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { ISettings, LeftColumnContent } from '../../../types';
import { ApiChat } from '../../../api/types';

View File

@ -1,7 +1,7 @@
import React, {
FC, useCallback, useEffect, useMemo, memo,
} from '../../../lib/teact/teact';
import { getDispatch, getGlobal, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, getGlobal, withGlobal } from '../../../modules';
import { ApiChat } from '../../../api/types';

View File

@ -1,7 +1,7 @@
import React, {
FC, useState, useCallback, useEffect, memo,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { ChatCreationProgress } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { AudioOrigin, LoadMoreDirection } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import {
ApiChat, ApiUser, ApiMessage, ApiMessageOutgoingStatus,

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { ApiChat, ApiMessage } from '../../../api/types';
import { LoadMoreDirection } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo, useState,
} from '../../../lib/teact/teact';
import { getDispatch, getGlobal, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, getGlobal, withGlobal } from '../../../modules';
import { ApiChat, ApiMessage } from '../../../api/types';
import { LoadMoreDirection } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo, useRef,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { ApiMessage } from '../../../api/types';
import { LoadMoreDirection } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useState, useMemo, useRef,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { GlobalSearchContent } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo,
} from '../../../lib/teact/teact';
import { withGlobal } from '../../../lib/teact/teactn';
import { withGlobal } from '../../../modules';
import { ApiChat, ApiUser } from '../../../api/types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo, useRef,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { LoadMoreDirection } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo, useRef,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { LoadMoreDirection, MediaViewerOrigin } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, useEffect, useCallback, useRef, memo,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { ApiUser } from '../../../api/types';

View File

@ -1,7 +1,7 @@
import React, {
FC, useMemo, useState, memo, useRef, useCallback, useEffect,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { ApiUser } from '../../../api/types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo, useCallback } from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { SettingsScreens, ISettings } from '../../../types';

View File

@ -2,7 +2,7 @@ import { ChangeEvent } from 'react';
import React, {
FC, useState, useCallback, memo, useEffect, useMemo,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { ApiMediaFormat } from '../../../api/types';
import { ProfileEditProgress, SettingsScreens } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, useCallback, memo, useRef, useState,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { SettingsScreens, ISettings, TimeFormat } from '../../../types';
import { ApiSticker, ApiStickerSet } from '../../../api/types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useEffect, useCallback, useRef,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { SettingsScreens, ThemeKey, UPLOADING_WALLPAPER_SLUG } from '../../../types';
import { ApiWallpaper } from '../../../api/types';

View File

@ -2,7 +2,7 @@ import { ChangeEvent, MutableRefObject, RefObject } from 'react';
import React, {
FC, memo, useCallback, useEffect, useRef, useState,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { SettingsScreens, ThemeKey } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo, useState,
} from '../../../lib/teact/teact';
import { getDispatch } from '../../../lib/teact/teactn';
import { getDispatch } from '../../../modules';
import { SettingsScreens } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect, useMemo, useState,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { ISettings, LangCode, SettingsScreens } from '../../../types';
import { ApiLanguage } from '../../../api/types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo, useEffect } from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { SettingsScreens } from '../../../types';
import { ApiUser } from '../../../api/types';

View File

@ -3,7 +3,7 @@ import useDebounce from '../../../hooks/useDebounce';
import React, {
FC, memo, useCallback, useEffect,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { SettingsScreens } from '../../../types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo, useEffect } from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { PrivacyVisibility, SettingsScreens } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect, useMemo,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { ApiSession } from '../../../api/types';
import { SettingsScreens } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { ApiChat, ApiCountryCode, ApiUser } from '../../../api/types';
import { SettingsScreens } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo,
} from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { ApiChat, ApiUser } from '../../../api/types';
import { ApiPrivacySettings, SettingsScreens } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo, useState,
} from '../../../lib/teact/teact';
import { getDispatch, getGlobal, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, getGlobal, withGlobal } from '../../../modules';
import { GlobalState } from '../../../global/types';
import { ApiPrivacySettings, SettingsScreens } from '../../../types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo, useCallback } from '../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../modules';
import { SettingsScreens } from '../../../types';
import { ApiAvailableReaction } from '../../../api/types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useMemo, useCallback,
} from '../../../../lib/teact/teact';
import { getGlobal } from '../../../../lib/teact/teactn';
import { getGlobal } from '../../../../modules';
import { SettingsScreens } from '../../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect, useMemo, useState,
} from '../../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../../modules';
import { SettingsScreens } from '../../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useMemo, useCallback, useState, useEffect,
} from '../../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../../modules';
import { ApiChatFolder } from '../../../../api/types';
import { SettingsScreens } from '../../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect,
} from '../../../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../../../modules';
import { GlobalState } from '../../../../global/types';
import { SettingsScreens } from '../../../../types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo } from '../../../../lib/teact/teact';
import { withGlobal } from '../../../../lib/teact/teactn';
import { withGlobal } from '../../../../modules';
import { ApiSticker } from '../../../../api/types';
import { SettingsScreens } from '../../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useEffect, useRef, useState,
} from '../../../../lib/teact/teact';
import { withGlobal } from '../../../../lib/teact/teactn';
import { withGlobal } from '../../../../modules';
import { ApiSticker } from '../../../../api/types';
import { SettingsScreens } from '../../../../types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo } from '../../../../lib/teact/teact';
import { withGlobal } from '../../../../lib/teact/teactn';
import { withGlobal } from '../../../../modules';
import { ApiSticker } from '../../../../api/types';
import { SettingsScreens } from '../../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useEffect, useRef, useState,
} from '../../../../lib/teact/teact';
import { withGlobal } from '../../../../lib/teact/teactn';
import { withGlobal } from '../../../../modules';
import { ApiSticker } from '../../../../api/types';
import { SettingsScreens } from '../../../../types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo } from '../../../../lib/teact/teact';
import { withGlobal } from '../../../../lib/teact/teactn';
import { withGlobal } from '../../../../modules';
import { ApiSticker } from '../../../../api/types';
import { SettingsScreens } from '../../../../types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo, useEffect } from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import {
ApiContact, ApiError, ApiInviteInfo, ApiPhoto,

View File

@ -1,5 +1,5 @@
import { FC, memo, useEffect } from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { Thread } from '../../global/types';
import { ApiMediaFormat, ApiMessage } from '../../api/types';

View File

@ -1,7 +1,7 @@
import React, {
FC, useMemo, useState, memo, useRef, useCallback, useEffect,
} from '../../lib/teact/teact';
import { getDispatch, getGlobal, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, getGlobal, withGlobal } from '../../modules';
import { ApiChat, MAIN_THREAD_ID } from '../../api/types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo, useCallback } from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import useLang from '../../hooks/useLang';

View File

@ -1,7 +1,7 @@
import React, {
FC, useEffect, memo, useCallback,
} from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { LangCode } from '../../types';
import { ApiMessage, ApiUpdateAuthorizationStateType, ApiUpdateConnectionStateType } from '../../api/types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo } from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { ApiNotification } from '../../api/types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo, useCallback } from '../../lib/teact/teact';
import { getDispatch } from '../../lib/teact/teactn';
import { getDispatch } from '../../modules';
import { ensureProtocol } from '../../util/ensureProtocol';
import renderText from '../common/helpers/renderText';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect, useMemo, useRef, useState,
} from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import {
ApiChat, ApiDimensions, ApiMediaFormat, ApiMessage, ApiUser,

View File

@ -4,7 +4,7 @@ import React, {
useCallback,
useMemo,
} from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { ApiMessage } from '../../api/types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo, useCallback } from '../../lib/teact/teact';
import { withGlobal } from '../../lib/teact/teactn';
import { withGlobal } from '../../modules';
import {
ApiChat, ApiDimensions, ApiMediaFormat, ApiMessage, ApiUser,

View File

@ -1,5 +1,5 @@
import React, { FC, useCallback } from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { ApiChat, ApiMessage, ApiUser } from '../../api/types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useEffect, useMemo, useRef,
} from '../../lib/teact/teact';
import { withGlobal } from '../../lib/teact/teactn';
import { withGlobal } from '../../modules';
import { ApiUser, ApiMessage, ApiChat } from '../../api/types';
import { FocusDirection } from '../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, useCallback, useEffect, useMemo,
} from '../../lib/teact/teact';
import { getDispatch, withGlobal } from '../../lib/teact/teactn';
import { getDispatch, withGlobal } from '../../modules';
import { AudioOrigin } from '../../types';
import {

Some files were not shown because too many files have changed in this diff Show More