quickblox-react-ui-kit 0.3.0-beta.4 → 0.3.1-beta.1

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.
Files changed (105) hide show
  1. package/dist/CommonTypes/CommonTypes.d.ts +142 -0
  2. package/dist/CommonTypes/FunctionResult.d.ts +0 -54
  3. package/dist/Data/DefaultConfigurations.d.ts +2 -2
  4. package/dist/Data/Stubs.d.ts +5 -4
  5. package/dist/Data/dto/dialog/LocalDialogDTO.d.ts +1 -1
  6. package/dist/Data/dto/dialog/RemoteDialogDTO.d.ts +1 -1
  7. package/dist/Data/source/remote/Mapper/MessageDTOMapper.d.ts +1 -0
  8. package/dist/Domain/entity/LastMessageEntity.d.ts +1 -1
  9. package/dist/Presentation/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.d.ts +3 -1
  10. package/dist/Presentation/ui-components/TextField/TextField.d.ts +2 -2
  11. package/dist/QBconfig.d.ts +2 -76
  12. package/dist/index-ui.js +985 -973
  13. package/dist/index-ui.js.map +1 -1
  14. package/dist/qb-api-calls/index.d.ts +13 -12
  15. package/dist/utils/formatFileSize.d.ts +1 -0
  16. package/dist/utils/parse.d.ts +1 -0
  17. package/global.d.ts +159 -2836
  18. package/package.json +4 -2
  19. package/src/App.tsx +2 -1
  20. package/src/CommonTypes/CommonTypes.ts +228 -0
  21. package/src/CommonTypes/FunctionResult.ts +0 -59
  22. package/src/Data/Creator.ts +1 -0
  23. package/src/Data/DefaultConfigurations.ts +6 -2
  24. package/src/Data/Stubs.ts +30 -29
  25. package/src/Data/dto/dialog/LocalDialogDTO.ts +2 -2
  26. package/src/Data/dto/dialog/RemoteDialogDTO.ts +2 -2
  27. package/src/Data/mapper/DialogLocalDTOMapper.ts +4 -10
  28. package/src/Data/mapper/DialogRemoteDTOMapper.ts +5 -10
  29. package/src/Data/repository/ConnectionRepository.ts +1 -0
  30. package/src/Data/repository/UsersRepository.ts +1 -1
  31. package/src/Data/source/local/ChatLocalStorageDataSource.ts +14 -14
  32. package/src/Data/source/remote/Mapper/DialogDTOMapper.ts +65 -47
  33. package/src/Data/source/remote/Mapper/FileDTOMapper.ts +4 -0
  34. package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +1 -0
  35. package/src/Data/source/remote/Mapper/UserDTOMapper.ts +1 -0
  36. package/src/Data/source/remote/RemoteDataSource.ts +31 -10
  37. package/src/Domain/entity/LastMessageEntity.ts +1 -1
  38. package/src/Presentation/Views/Dialog/useDialogViewModel.ts +8 -0
  39. package/src/Presentation/Views/DialogInfo/DialogInfo.tsx +1 -1
  40. package/src/Presentation/Views/DialogList/DialogList.tsx +65 -2
  41. package/src/Presentation/Views/EditDialog/EditDialog.tsx +4 -3
  42. package/src/Presentation/Views/InviteMembers/InviteMembers.tsx +9 -1
  43. package/src/Presentation/Views/PreviewDialog/PreviewDialog.tsx +1 -0
  44. package/src/Presentation/layouts/Desktop/QuickBloxUIKitDesktopLayout.tsx +388 -515
  45. package/src/Presentation/layouts/TestStage/LoginView/Login.tsx +7 -11
  46. package/src/Presentation/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +30 -2
  47. package/src/Presentation/ui-components/SettingsItem/SettingsItem.stories.tsx +1 -0
  48. package/src/Presentation/ui-components/TextField/TextField.tsx +58 -48
  49. package/src/QBconfig.ts +13 -11
  50. package/src/qb-api-calls/index.ts +39 -14
  51. package/src/utils/formatFileSize.ts +8 -0
  52. package/src/utils/parse.ts +2 -0
  53. package/storybook-static/703.1137fb37.iframe.bundle.js +33 -0
  54. package/storybook-static/703.1137fb37.iframe.bundle.js.map +1 -0
  55. package/storybook-static/{758.53b4954a.iframe.bundle.js → 938.56e9d83c.iframe.bundle.js} +1 -14
  56. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.1b74ae55.iframe.bundle.js +14 -0
  57. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.1b74ae55.iframe.bundle.js.map +1 -0
  58. package/storybook-static/Presentation-ui-components-Button-Button-stories.84103f20.iframe.bundle.js +14 -0
  59. package/storybook-static/Presentation-ui-components-Button-Button-stories.84103f20.iframe.bundle.js.map +1 -0
  60. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.bf9005d3.iframe.bundle.js +14 -0
  61. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.bf9005d3.iframe.bundle.js.map +1 -0
  62. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.f81a8e38.iframe.bundle.js +14 -0
  63. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.f81a8e38.iframe.bundle.js.map +1 -0
  64. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.141a3ae7.iframe.bundle.js +14 -0
  65. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.141a3ae7.iframe.bundle.js.map +1 -0
  66. package/storybook-static/Presentation-ui-components-Header-Header-stories.9f45c30e.iframe.bundle.js +14 -0
  67. package/storybook-static/Presentation-ui-components-Header-Header-stories.9f45c30e.iframe.bundle.js.map +1 -0
  68. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.af01e15d.iframe.bundle.js +14 -0
  69. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.af01e15d.iframe.bundle.js.map +1 -0
  70. package/storybook-static/Presentation-ui-components-Message-Message-stories.264d251d.iframe.bundle.js +14 -0
  71. package/storybook-static/Presentation-ui-components-Message-Message-stories.264d251d.iframe.bundle.js.map +1 -0
  72. package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.0c6310aa.iframe.bundle.js +1 -0
  73. package/storybook-static/{Presentation-ui-components-Placeholder-Placeholder-stories.871f508c.iframe.bundle.js → Presentation-ui-components-Placeholder-Placeholder-stories.97287936.iframe.bundle.js} +14 -1
  74. package/storybook-static/Presentation-ui-components-Placeholder-Placeholder-stories.97287936.iframe.bundle.js.map +1 -0
  75. package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.a9f5cd67.iframe.bundle.js +14 -0
  76. package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.a9f5cd67.iframe.bundle.js.map +1 -0
  77. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.429a72d5.iframe.bundle.js +14 -0
  78. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.429a72d5.iframe.bundle.js.map +1 -0
  79. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.fd8caf6c.iframe.bundle.js +14 -0
  80. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.fd8caf6c.iframe.bundle.js.map +1 -0
  81. package/storybook-static/{Presentation-ui-components-Toast-Toast-stories.55e63162.iframe.bundle.js → Presentation-ui-components-Toast-Toast-stories.b903385b.iframe.bundle.js} +14 -1
  82. package/storybook-static/Presentation-ui-components-Toast-Toast-stories.b903385b.iframe.bundle.js.map +1 -0
  83. package/storybook-static/{Presentation-ui-components-UserListItem-UserListItem-stories.04d3eefe.iframe.bundle.js → Presentation-ui-components-UserListItem-UserListItem-stories.8781472b.iframe.bundle.js} +14 -1
  84. package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.8781472b.iframe.bundle.js.map +1 -0
  85. package/storybook-static/{docs-Introduction-mdx.ac401482.iframe.bundle.js → docs-Introduction-mdx.bcb06844.iframe.bundle.js} +2 -2
  86. package/storybook-static/{docs-Introduction-mdx.ac401482.iframe.bundle.js.map → docs-Introduction-mdx.bcb06844.iframe.bundle.js.map} +1 -1
  87. package/storybook-static/iframe.html +2 -2
  88. package/storybook-static/{main.597d432b.iframe.bundle.js → main.2f6d7582.iframe.bundle.js} +1 -1
  89. package/storybook-static/project.json +1 -1
  90. package/storybook-static/runtime~main.8d5710fb.iframe.bundle.js +1 -0
  91. package/webpack.config.js +2 -1
  92. package/storybook-static/758.53b4954a.iframe.bundle.js.map +0 -1
  93. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.cf806856.iframe.bundle.js +0 -1
  94. package/storybook-static/Presentation-ui-components-Button-Button-stories.4fac7996.iframe.bundle.js +0 -1
  95. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.6665bbfb.iframe.bundle.js +0 -1
  96. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.cf340397.iframe.bundle.js +0 -1
  97. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.b32a1e17.iframe.bundle.js +0 -1
  98. package/storybook-static/Presentation-ui-components-Header-Header-stories.073c4507.iframe.bundle.js +0 -1
  99. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.9bf3fb63.iframe.bundle.js +0 -1
  100. package/storybook-static/Presentation-ui-components-Message-Message-stories.343dfae0.iframe.bundle.js +0 -1
  101. package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.c2ead6a5.iframe.bundle.js +0 -1
  102. package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.527e000e.iframe.bundle.js +0 -1
  103. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.2ff75703.iframe.bundle.js +0 -1
  104. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.4a2eef3e.iframe.bundle.js +0 -1
  105. package/storybook-static/runtime~main.12da9712.iframe.bundle.js +0 -1
@@ -0,0 +1,142 @@
1
+ import { QBSystemMessage, QBUser, ChatMessageAttachment, QBChatDialog, QBChatNewMessage, QBConfig } from 'quickblox';
2
+ import { Tone } from '../Presentation/Views/Dialog/AIWidgets/Tone';
3
+ export type ProxyConfig = {
4
+ api: string;
5
+ servername: string;
6
+ port: string;
7
+ };
8
+ export interface WidgetConfig {
9
+ organizationName: string;
10
+ openAIModel: string;
11
+ apiKey: string;
12
+ maxTokens: number;
13
+ useDefault: boolean;
14
+ proxyConfig: ProxyConfig;
15
+ }
16
+ export interface AITranslateWidgetConfig extends WidgetConfig {
17
+ defaultLanguage: string;
18
+ languages: string[];
19
+ }
20
+ export interface AIRephraseWidgetConfig extends WidgetConfig {
21
+ defaultTone: string;
22
+ Tones: Tone[];
23
+ }
24
+ export interface QBUIKitConfig extends QBConfig {
25
+ credentials: {
26
+ appId: number;
27
+ accountKey: string;
28
+ authKey: string;
29
+ authSecret: string;
30
+ sessionToken: string;
31
+ };
32
+ configAIApi: {
33
+ AIAnswerAssistWidgetConfig: WidgetConfig;
34
+ AITranslateWidgetConfig: AITranslateWidgetConfig;
35
+ AIRephraseWidgetConfig: AIRephraseWidgetConfig;
36
+ };
37
+ appConfig: {
38
+ maxFileSize: number;
39
+ sessionTimeOut: number;
40
+ chatProtocol: {
41
+ active: number;
42
+ };
43
+ debug: boolean;
44
+ enableForwarding: boolean;
45
+ enableReplying: boolean;
46
+ regexUserName?: string;
47
+ endpoints: {
48
+ api: string;
49
+ chat: string;
50
+ };
51
+ streamManagement: {
52
+ enable: boolean;
53
+ };
54
+ };
55
+ }
56
+ interface QBSystemMessageExtension {
57
+ [key: string]: string | undefined;
58
+ notification_type: string;
59
+ action?: 'read' | 'delete';
60
+ }
61
+ export interface QBUIKitSystemMessage extends QBSystemMessage {
62
+ extension?: QBSystemMessageExtension | Dictionary<any> | undefined;
63
+ }
64
+ export declare enum QBChatDialogType {
65
+ PUBLIC_GROUP = 1,
66
+ GROUP = 2,
67
+ PRIVATE = 3
68
+ }
69
+ export interface QBUIKitChatDialog extends QBChatDialog {
70
+ /** ID of the dialog. Generated automatically by the server after dialog creation. */
71
+ _id: string;
72
+ /** ID of dialog's owner. */
73
+ user_id: QBUser['id'];
74
+ /** Date & time when a record was created, filled automatically. */
75
+ created_at: string;
76
+ /** Date & time when a record was created, filled automatically. */
77
+ updated_at: string;
78
+ /**
79
+ * Type of dialog. Possible values are:
80
+ * - type=1 (`PUBLIC_GROUP`)
81
+ * - type=2 (`GROUP`)
82
+ * - type=3 (`PRIVATE`)
83
+ */
84
+ type: QBChatDialogType;
85
+ /**
86
+ * Name of a group chat. Makes sense if type=1 (`PUBLIC_GROUP`) or type=2 (`GROUP`).
87
+ * The maximum length for the dialog name is 200 symbols.
88
+ */
89
+ name: string;
90
+ /**
91
+ * Photo of a group chat. Makes sense if type=1 (`PUBLIC_GROUP`) or type=2 (`GROUP`).
92
+ * Can contain a link to a file in Content module, Custom Objects module or just a web link.
93
+ */
94
+ photo: null | string;
95
+ /**
96
+ * JID of XMPP room for group chat to connect. Nil if type=3 (PRIVATE).
97
+ * Generated automatically by the server after dialog creation.
98
+ */
99
+ xmpp_room_jid: string | null;
100
+ /** Array of users' IDs - dialog occupants. Does not make sense if type=1 (PUBLIC_GROUP). */
101
+ occupants_ids: number[];
102
+ /** Last sent message in this dialog. */
103
+ last_message: string | null;
104
+ /** Timestamp of last sent message in this dialog. */
105
+ last_message_date_sent: number | null;
106
+ /** ID of the user who sent last message in this dialog. */
107
+ last_message_user_id: QBUser['id'] | null;
108
+ /** ID of last message in this dialog. */
109
+ last_message_id: string | null;
110
+ /** Number of unread messages in this dialog for a current user. */
111
+ unread_messages_count: number | null;
112
+ /**
113
+ * - Information about class and fields in Custom Objects.
114
+ * - Any dialog can be extended using Custom Objects to store additional parameters.
115
+ */
116
+ data?: {
117
+ /** Class name in Custom Objects. */
118
+ class_name: string;
119
+ /** Field name of class in Custom Objects. Can be many: 1..N. */
120
+ [field_name_N: string]: QBCustomField;
121
+ };
122
+ new_occupants_ids?: number[];
123
+ joined?: boolean;
124
+ }
125
+ export interface QBUIKitChatNewMessage extends QBChatNewMessage {
126
+ type: 'chat' | 'groupchat';
127
+ body: string;
128
+ notification_type?: string;
129
+ dialog_id: QBChatDialog['_id'];
130
+ extension: {
131
+ attachments?: ChatMessageAttachment[];
132
+ save_to_history: 0 | 1;
133
+ dialog_id: QBChatDialog['_id'];
134
+ notification_type?: string;
135
+ sender_id?: QBUser['id'];
136
+ qb_message_action?: 'forward' | 'reply';
137
+ origin_sender_name?: string;
138
+ qb_original_messages?: string;
139
+ };
140
+ markable: 0 | 1;
141
+ }
142
+ export {};
@@ -1,58 +1,4 @@
1
- import { Tone } from '../Presentation/Views/Dialog/AIWidgets/Tone';
2
1
  export type FunctionResult<T> = {
3
2
  result: T | T[] | boolean;
4
3
  error: any;
5
4
  };
6
- export type ProxyConfig = {
7
- api: string;
8
- servername: string;
9
- port: string;
10
- };
11
- export interface WidgetConfig {
12
- organizationName: string;
13
- openAIModel: string;
14
- apiKey: string;
15
- maxTokens: number;
16
- useDefault: boolean;
17
- proxyConfig: ProxyConfig;
18
- }
19
- export interface AITranslateWidgetConfig extends WidgetConfig {
20
- defaultLanguage: string;
21
- languages: string[];
22
- }
23
- export interface AIRephraseWidgetConfig extends WidgetConfig {
24
- defaultTone: string;
25
- Tones: Tone[];
26
- }
27
- export interface QBConfig {
28
- credentials: {
29
- appId: number;
30
- accountKey: string;
31
- authKey: string;
32
- authSecret: string;
33
- sessionToken: string;
34
- };
35
- configAIApi: {
36
- AIAnswerAssistWidgetConfig: WidgetConfig;
37
- AITranslateWidgetConfig: AITranslateWidgetConfig;
38
- AIRephraseWidgetConfig: AIRephraseWidgetConfig;
39
- };
40
- appConfig: {
41
- maxFileSize: number;
42
- sessionTimeOut: number;
43
- chatProtocol: {
44
- active: number;
45
- };
46
- debug: boolean;
47
- enableForwarding: boolean;
48
- enableReplying: boolean;
49
- regexUserName?: string;
50
- endpoints: {
51
- api: string;
52
- chat: string;
53
- };
54
- streamManagement: {
55
- enable: boolean;
56
- };
57
- };
58
- }
@@ -1,7 +1,7 @@
1
- import { ProxyConfig, QBConfig } from '../CommonTypes/FunctionResult';
1
+ import { AITranslateWidgetConfig, ProxyConfig, QBUIKitConfig } from '../CommonTypes/CommonTypes';
2
2
  export declare class DefaultConfigurations {
3
3
  static getDefaultProxyConfig(): ProxyConfig;
4
4
  static getDefaultLanguageForAITranslate(configAITranslate: AITranslateWidgetConfig): string;
5
5
  static getAdditionalLanguagesForAITranslate(configAITranslate: AITranslateWidgetConfig): string[];
6
- static getDefaultQBConfig(): QBConfig;
6
+ static getDefaultQBConfig(): QBUIKitConfig;
7
7
  }
@@ -6,6 +6,7 @@ import { MessageEntity } from '../Domain/entity/MessageEntity';
6
6
  import ChatMessageAttachmentEntity from '../Domain/entity/ChatMessageAttachmentEntity';
7
7
  import { LocalDataSource } from './source/local/LocalDataSource';
8
8
  import { FileEntity } from '../Domain/entity/FileEntity';
9
+ import { QBUIKitChatDialog } from '../CommonTypes/CommonTypes';
9
10
  export declare class Stubs {
10
11
  static createMessageEntityWithParams(id: string, dialogId: string, message: string, created_at: string, date_sent: number, updated_at: string, delivered_ids: Array<number>, read_ids: Array<number>, read: number, sender_id: number, recipient_id: number, attachments?: ChatMessageAttachmentEntity[], notification_type?: string, dialog_type?: DialogType): MessageEntity;
11
12
  static createFileEntityWithDefaultValues(): FileEntity;
@@ -19,10 +20,10 @@ export declare class Stubs {
19
20
  static createDialogDTOByTypeWithDefaultValues(dialogType: DialogType): RemoteDialogDTO;
20
21
  static createArrayDialogDTOByTypeWithDefaultValues(count: number, dialogType: DialogType): RemoteDialogDTO[];
21
22
  static createArrayPublicDialogDTO(): RemoteDialogDTO[];
22
- static createPublicDialogQBWithEmptyValues(): QBChatDialog;
23
- static createPrivateDialogQBWithEmptyValues(): QBChatDialog;
24
- static createGroupDialogQBWithEmptyValues(): QBChatDialog;
25
- static createDialogEntityWithParams(dialogType: DialogType, id: string, name: string, dateSentLastMessage: string, textLastMessage: string, userIdLastMessage: number, ownerId: string, unreadMessageCount: number, updatedAt: string, participantId: number, photo?: string, participantIds?: number[]): DialogEntity;
23
+ static createPublicDialogQBWithEmptyValues(): QBUIKitChatDialog;
24
+ static createPrivateDialogQBWithEmptyValues(): QBUIKitChatDialog;
25
+ static createGroupDialogQBWithEmptyValues(): QBUIKitChatDialog;
26
+ static createDialogEntityWithParams(dialogType: DialogType, id: string, name: string, dateSentLastMessage: number, textLastMessage: string, userIdLastMessage: number, ownerId: string, unreadMessageCount: number, updatedAt: string, participantId: number, photo?: string, participantIds?: number[]): DialogEntity;
26
27
  static createUserEntityWithParams(id: number, full_name: string, email: string, login: string, created_at: string, updated_at: string, last_request_at: number, custom_data?: string | null, user_tags?: string | null, blob_id?: string, photo?: string): UserEntity;
27
28
  static createDialogsForTest(): Array<DialogEntity>;
28
29
  static createUsersForTest(): Array<UserEntity>;
@@ -7,7 +7,7 @@ export declare class LocalDialogDTO {
7
7
  participantsIds: Array<number>;
8
8
  updatedAt: string;
9
9
  lastMessageText: string;
10
- lastMessageDateSent: string;
10
+ lastMessageDateSent: number;
11
11
  lastMessageUserId: string;
12
12
  unreadMessageCount: number;
13
13
  name: string;
@@ -9,7 +9,7 @@ export declare class RemoteDialogDTO {
9
9
  updatedAt: string;
10
10
  lastMessageText: string;
11
11
  lastMessageUserId: string;
12
- lastMessageDateSent: string;
12
+ lastMessageDateSent: number;
13
13
  lastMessageId: string;
14
14
  unreadMessageCount: number;
15
15
  name: string;
@@ -1,3 +1,4 @@
1
+ import { ChatMessageAttachment, QBChatMessage } from 'quickblox/quickblox';
1
2
  import { IDTOMapper } from './IDTOMapper';
2
3
  import { RemoteMessageDTO } from '../../../dto/message/RemoteMessageDTO';
3
4
  import ChatMessageAttachmentEntity from '../../../../Domain/entity/ChatMessageAttachmentEntity';
@@ -1,5 +1,5 @@
1
1
  export interface LastMessageEntity {
2
2
  text: string;
3
- dateSent: string;
3
+ dateSent: number;
4
4
  userId: number;
5
5
  }
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import 'react-toastify/dist/ReactToastify.css';
2
3
  import { ProviderProps } from '../ProviderProps';
3
4
  import { LocalDataSource } from '../../../Data/source/local/LocalDataSource';
4
5
  import { AuthorizationData, LoginData, RemoteDataSource } from '../../../Data/source/remote/RemoteDataSource';
@@ -6,6 +7,7 @@ import { BaseUseCase } from '../../../Domain/use_cases/base/BaseUseCase';
6
7
  import ConnectionRepository from '../../../Data/repository/ConnectionRepository';
7
8
  import EventMessagesRepository from '../../../Data/repository/EventMessagesRepository';
8
9
  import { CallBackFunction } from '../../../Domain/use_cases/base/IUseCase';
10
+ import { QBUIKitConfig } from '../../../CommonTypes/CommonTypes';
9
11
  type AccountData = {
10
12
  appId: number;
11
13
  accountKey: string;
@@ -16,7 +18,7 @@ type AccountData = {
16
18
  export type InitParams = {
17
19
  maxFileSize: number;
18
20
  accountData: AccountData;
19
- qbConfig: QBConfig;
21
+ qbConfig: QBUIKitConfig;
20
22
  loginData?: LoginData;
21
23
  };
22
24
  type QuickBloxProviderProps = ProviderProps & InitParams;
@@ -9,5 +9,5 @@ interface TextFieldProps extends Omit<HTMLInputProps, 'onChange'> {
9
9
  value: string;
10
10
  onChange: (value: string) => void;
11
11
  }
12
- export default function TextField({ label, icon, loading, disabled, className, id, value, onChange, ...inputProps }: TextFieldProps): JSX.Element;
13
- export {};
12
+ declare const TextField: import("react").ForwardRefExoticComponent<Pick<TextFieldProps, "id" | "name" | "size" | "type" | "value" | "children" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "className" | "onClick" | "key" | "color" | "height" | "translate" | "width" | "onChange" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "placeholder" | "readOnly" | "required" | "src" | "step" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "icon" | "loading"> & import("react").RefAttributes<HTMLInputElement>>;
13
+ export default TextField;
@@ -1,76 +1,2 @@
1
- export declare const QBConfig: {
2
- credentials: {
3
- appId: number;
4
- accountKey: string;
5
- authKey: string;
6
- authSecret: string;
7
- sessionToken: string;
8
- };
9
- configAIApi: {
10
- AIAnswerAssistWidgetConfig: {
11
- organizationName: string;
12
- openAIModel: string;
13
- apiKey: string;
14
- maxTokens: number;
15
- useDefault: boolean;
16
- proxyConfig: {
17
- api: string;
18
- servername: string;
19
- port: string;
20
- };
21
- };
22
- AITranslateWidgetConfig: {
23
- organizationName: string;
24
- openAIModel: string;
25
- apiKey: string;
26
- maxTokens: number;
27
- useDefault: boolean;
28
- defaultLanguage: string;
29
- languages: string[];
30
- proxyConfig: {
31
- api: string;
32
- servername: string;
33
- port: string;
34
- };
35
- };
36
- AIRephraseWidgetConfig: {
37
- organizationName: string;
38
- openAIModel: string;
39
- apiKey: string;
40
- maxTokens: number;
41
- useDefault: boolean;
42
- defaultTone: string;
43
- Tones: {
44
- name: string;
45
- description: string;
46
- iconEmoji: string;
47
- }[];
48
- proxyConfig: {
49
- api: string;
50
- servername: string;
51
- port: string;
52
- };
53
- };
54
- };
55
- appConfig: {
56
- maxFileSize: number;
57
- sessionTimeOut: number;
58
- chatProtocol: {
59
- active: number;
60
- };
61
- debug: boolean;
62
- enableForwarding: boolean;
63
- enableReplying: boolean;
64
- regexUserName: string;
65
- endpoints: {
66
- api: string;
67
- chat: string;
68
- };
69
- on: {
70
- sessionExpired(handleResponse: any, retry: any): Promise<void>;
71
- };
72
- streamManagement: {
73
- enable: boolean;
74
- };
75
- };
76
- };
1
+ import { QBUIKitConfig } from './CommonTypes/CommonTypes';
2
+ export declare const QBConfig: QBUIKitConfig;