quickblox-react-ui-kit 0.1.3 → 0.1.5

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/README.md CHANGED
@@ -1,3 +1,11 @@
1
+ <div align="center">
2
+
3
+ <p>
4
+ <a href="https://discord.gg/c6bxq9BC"><img src="https://img.shields.io/discord/1042743094833065985?color=5865F2&logo=discord&logoColor=white&label=QuickBlox%20Discord%20server&style=for-the-badge" alt="Discord server" /></a>
5
+ </p>
6
+
7
+ </div>
8
+
1
9
  # Overview
2
10
 
3
11
  The QuickBlox UIKit for React is a comprehensive user interface kit specifically designed for building chat applications. It provides a collection of pre-built components, modules, and utilities that simplify the process of creating chat applications.
@@ -1,7 +1,9 @@
1
1
  import { SubscriptionPerformer } from '../../Domain/use_cases/base/Subscribable/SubscriptionPerformer';
2
2
  export default class ConnectionRepository extends SubscriptionPerformer<boolean> {
3
3
  private timerId;
4
- needInit: boolean;
4
+ private _needInit;
5
+ get needInit(): boolean;
6
+ set needInit(value: boolean);
5
7
  private chatConnectedStatus;
6
8
  isChatConnected(): boolean;
7
9
  constructor();
@@ -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';
@@ -27,18 +28,18 @@ export type AuthorizationData = {
27
28
  userName: string;
28
29
  };
29
30
  export declare class RemoteDataSource implements IRemoteDataSource {
30
- get needInit(): boolean;
31
- private dialogDTOMapper;
32
31
  private userDTOMapper;
33
32
  private messageDTOMapper;
34
33
  private fileDTOMapper;
35
34
  private _needInit;
36
35
  private _authProcessed;
37
36
  get authProcessed(): boolean;
37
+ get needInit(): boolean;
38
38
  setAuthProcessedSuccessed(): void;
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: TArg, eventType?: string, event?: string): void;
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 {};