quickblox-react-ui-kit 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Data/source/remote/Mapper/DialogDTOMapper.d.ts +2 -0
- package/dist/Data/source/remote/RemoteDataSource.d.ts +2 -2
- package/dist/Domain/use_cases/base/Subscribable/SubscriptionPerformer.d.ts +1 -1
- package/dist/Presentation/components/UI/Dialogs/MessagesView/HighLightLink/HighLightLink.d.ts +9 -0
- package/dist/index-ui.js +44 -11
- package/dist/qb-api-calls/index.d.ts +16 -5
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IDTOMapper } from './IDTOMapper';
|
|
2
2
|
export declare class DialogDTOMapper implements IDTOMapper {
|
|
3
|
+
private readonly currentUserId;
|
|
4
|
+
constructor(currentUserId: number);
|
|
3
5
|
fromDTO<TArg, TResult>(dto: TArg): Promise<TResult>;
|
|
4
6
|
toTDO<TArg, TResult>(qbEntity: TArg): Promise<TResult>;
|
|
5
7
|
private static validateDTO;
|
|
@@ -6,6 +6,7 @@ import { RemoteUsersDTO } from '../../dto/user/RemoteUsersDTO';
|
|
|
6
6
|
import { RemoteMessagesDTO } from '../../dto/message/RemoteMessagesDTO';
|
|
7
7
|
import { RemoteFileDTO } from '../../dto/file/RemoteFileDTO';
|
|
8
8
|
import { Pagination } from '../../../Domain/repository/Pagination';
|
|
9
|
+
import { IDTOMapper } from './Mapper/IDTOMapper';
|
|
9
10
|
import { QBInitParams } from '../../../qb-api-calls';
|
|
10
11
|
import { NotificationTypes } from '../../../Domain/entity/NotificationTypes';
|
|
11
12
|
import { SubscriptionPerformer } from '../../../Domain/use_cases/base/Subscribable/SubscriptionPerformer';
|
|
@@ -28,7 +29,6 @@ export type AuthorizationData = {
|
|
|
28
29
|
};
|
|
29
30
|
export declare class RemoteDataSource implements IRemoteDataSource {
|
|
30
31
|
get needInit(): boolean;
|
|
31
|
-
private dialogDTOMapper;
|
|
32
32
|
private userDTOMapper;
|
|
33
33
|
private messageDTOMapper;
|
|
34
34
|
private fileDTOMapper;
|
|
@@ -39,6 +39,7 @@ export declare class RemoteDataSource implements IRemoteDataSource {
|
|
|
39
39
|
setInitSDKSuccessed(): void;
|
|
40
40
|
private _authInformation;
|
|
41
41
|
get authInformation(): AuthorizationData | undefined;
|
|
42
|
+
getCurrentDialogDTOMapper(): IDTOMapper;
|
|
42
43
|
constructor();
|
|
43
44
|
setUpMockStorage(): Promise<void>;
|
|
44
45
|
private createUserSession;
|
|
@@ -57,7 +58,6 @@ export declare class RemoteDataSource implements IRemoteDataSource {
|
|
|
57
58
|
initEventsHandlers(): void;
|
|
58
59
|
releaseEventsHandlers(): void;
|
|
59
60
|
loginWithUser(authParams: LoginData): Promise<void>;
|
|
60
|
-
private getDialogsFirstPage;
|
|
61
61
|
getDialogs(pagination?: Pagination): Promise<RemoteDialogsDTO>;
|
|
62
62
|
createDialog(dto: RemoteDialogDTO): Promise<RemoteDialogDTO>;
|
|
63
63
|
updateDialog(dto: RemoteDialogDTO): Promise<RemoteDialogDTO>;
|
|
@@ -19,6 +19,6 @@ export declare class SubscriptionPerformer<TArg> implements ISubscribable<TArg>
|
|
|
19
19
|
release(): void;
|
|
20
20
|
constructor();
|
|
21
21
|
subscribe(callBack: CallBackFunction<TArg>, typeEvent?: string, nameEvent?: string): void;
|
|
22
|
-
informSubscribers(arg
|
|
22
|
+
informSubscribers(arg?: TArg, eventType?: string, event?: string): void;
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './HighLightLink.scss';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const isURL: (str: string) => boolean;
|
|
4
|
+
export declare const messageHasUrls: (message: string) => boolean;
|
|
5
|
+
type HighLightLinkProps = {
|
|
6
|
+
messageText: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const HighLightLink: React.FC<HighLightLinkProps>;
|
|
9
|
+
export {};
|