quickblox-react-ui-kit 0.3.0-beta.3 → 0.3.0
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/Stubs.d.ts +1 -1
- package/dist/Data/dto/file/RemoteFileDTO.d.ts +1 -1
- package/dist/Data/dto/message/RemoteMessageDTO.d.ts +1 -1
- package/dist/Data/dto/user/LocalUserDTO.d.ts +1 -1
- package/dist/Data/dto/user/RemoteUserDTO.d.ts +2 -2
- package/dist/Domain/entity/FileEntity.d.ts +1 -1
- package/dist/Domain/entity/UserEntity.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/AIComponents/AIAssist/AIAssist.d.ts +2 -1
- package/dist/Presentation/Views/Dialog/AIComponents/AITranslate/AITranslate.d.ts +2 -1
- package/dist/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessageFlow.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.d.ts +2 -2
- package/dist/Presentation/Views/Dialog/MessageContextMenu/MessageContextMenu.d.ts +2 -1
- package/dist/Presentation/Views/Dialog/MessageItem/MessageItem.d.ts +2 -1
- package/dist/Presentation/Views/DialogInfo/DialogInfo.d.ts +1 -0
- package/dist/Presentation/Views/DialogList/DialogList.d.ts +1 -0
- package/dist/Presentation/Views/EditDialog/EditDialog.d.ts +2 -1
- package/dist/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.d.ts +1 -0
- package/dist/Presentation/Views/PreviewDialog/PreviewDialog.d.ts +1 -0
- package/dist/Presentation/providers/QuickBloxUIKitProvider/useQBConnection.d.ts +1 -0
- package/dist/Presentation/ui-components/DialogWindow/DialogWindow.d.ts +3 -2
- package/dist/Presentation/ui-components/Dropdown/DropdownOption.d.ts +2 -1
- package/dist/Presentation/ui-components/MessageInput/AttachmentUploader/AttachmentUploader.d.ts +1 -0
- package/dist/Presentation/ui-components/MessageInput/MessageInput.d.ts +1 -0
- package/dist/index-ui.js +776 -710
- package/dist/index-ui.js.map +1 -1
- package/dist/qb-api-calls/index.d.ts +8 -7
- package/global.d.ts +2513 -546
- package/package.json +2 -2
- package/src/App.scss +3 -0
- package/src/Data/Creator.ts +1 -2
- package/src/Data/Stubs.ts +4 -5
- package/src/Data/dto/file/RemoteFileDTO.ts +2 -2
- package/src/Data/dto/message/RemoteMessageDTO.ts +1 -1
- package/src/Data/dto/user/LocalUserDTO.ts +2 -2
- package/src/Data/dto/user/RemoteUserDTO.ts +4 -4
- package/src/Data/mapper/FileRemoteDTOMapper.ts +8 -6
- package/src/Data/mapper/MessageRemoteDTOMapper.ts +1 -1
- package/src/Data/mapper/UserLocalDTOMapper.ts +2 -2
- package/src/Data/mapper/UserRemoteDTOMapper.ts +2 -2
- package/src/Data/repository/MessagesRepository.ts +2 -2
- package/src/Data/repository/UsersRepository.ts +1 -1
- package/src/Data/source/remote/Mapper/FileDTOMapper.ts +23 -23
- package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +2 -2
- package/src/Data/source/remote/Mapper/UserDTOMapper.ts +0 -2
- package/src/Data/source/remote/RemoteDataSource.ts +50 -8
- package/src/Domain/entity/FileEntity.ts +1 -1
- package/src/Domain/entity/UserEntity.ts +1 -11
- package/src/Domain/use_cases/UpdateDialogUseCase.ts +6 -1
- package/src/Domain/use_cases/base/Subscribable/SubscriptionPerformer.ts +1 -1
- package/src/Presentation/Views/Dialog/AIComponents/AIAssist/AIAssist.scss +5 -0
- package/src/Presentation/Views/Dialog/AIComponents/AIAssist/AIAssist.tsx +9 -2
- package/src/Presentation/Views/Dialog/AIComponents/AITranslate/AITranslate.scss +10 -0
- package/src/Presentation/Views/Dialog/AIComponents/AITranslate/AITranslate.tsx +16 -7
- package/src/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.scss +7 -2
- package/src/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.tsx +12 -3
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.scss +1 -1
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessageFlow.tsx +9 -5
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.scss +31 -1
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.tsx +7 -7
- package/src/Presentation/Views/Dialog/MessageContextMenu/MessageContextMenu.tsx +17 -6
- package/src/Presentation/Views/Dialog/MessageItem/MessageItem.tsx +6 -0
- package/src/Presentation/Views/Dialog/useDialogViewModel.ts +1 -0
- package/src/Presentation/Views/DialogInfo/DialogInfo.scss +11 -1
- package/src/Presentation/Views/DialogInfo/DialogInfo.tsx +36 -18
- package/src/Presentation/Views/DialogInfo/UsersList/useUsersListViewModel.ts +1 -0
- package/src/Presentation/Views/DialogList/DialogList.scss +5 -0
- package/src/Presentation/Views/DialogList/DialogList.tsx +12 -2
- package/src/Presentation/Views/DialogList/useDialogListViewModel.ts +33 -16
- package/src/Presentation/Views/EditDialog/EditDialog.scss +11 -0
- package/src/Presentation/Views/EditDialog/EditDialog.tsx +9 -1
- package/src/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.tsx +14 -0
- package/src/Presentation/Views/InviteMembers/useInviteMembersViewModel.ts +1 -11
- package/src/Presentation/Views/PreviewDialog/PreviewDialog.tsx +4 -0
- package/src/Presentation/icons/media/video-file.svg +2 -2
- package/src/Presentation/layouts/Desktop/QuickBloxUIKitDesktopLayout.tsx +426 -499
- package/src/Presentation/providers/QuickBloxUIKitProvider/useQBConnection.ts +16 -0
- package/src/Presentation/ui-components/DialogWindow/DialogWindow.scss +11 -0
- package/src/Presentation/ui-components/DialogWindow/DialogWindow.tsx +4 -1
- package/src/Presentation/ui-components/Dropdown/Dropdown.scss +4 -0
- package/src/Presentation/ui-components/Dropdown/Dropdown.tsx +1 -1
- package/src/Presentation/ui-components/Dropdown/DropdownOption.tsx +9 -1
- package/src/Presentation/ui-components/MessageInput/AttachmentUploader/AttachmentUploader.tsx +3 -0
- package/src/Presentation/ui-components/MessageInput/MessageInput.scss +18 -4
- package/src/Presentation/ui-components/MessageInput/MessageInput.tsx +8 -2
- package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.tsx +2 -2
- package/src/Presentation/ui-components/SettingsItem/SettingsItem.stories.tsx +2 -0
- package/src/index.scss +5 -2
- package/src/qb-api-calls/index.ts +58 -49
- package/storybook-static/758.53b4954a.iframe.bundle.js +14 -0
- package/storybook-static/{758.e75a5a47.iframe.bundle.js.map → 758.53b4954a.iframe.bundle.js.map} +1 -1
- package/storybook-static/{Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.90aa44c5.iframe.bundle.js → Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.6665bbfb.iframe.bundle.js} +1 -1
- package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.cf340397.iframe.bundle.js +1 -0
- package/storybook-static/{Presentation-ui-components-Dropdown-Dropdown-stories.aacf2ec2.iframe.bundle.js → Presentation-ui-components-Dropdown-Dropdown-stories.b32a1e17.iframe.bundle.js} +1 -1
- package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.c2ead6a5.iframe.bundle.js +1 -0
- package/storybook-static/{Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.1661d95b.iframe.bundle.js → Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.527e000e.iframe.bundle.js} +1 -1
- package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.2ff75703.iframe.bundle.js +1 -0
- package/storybook-static/{docs-Introduction-mdx.ac401482.iframe.bundle.js → docs-Introduction-mdx.bcb06844.iframe.bundle.js} +2 -2
- package/storybook-static/{docs-Introduction-mdx.ac401482.iframe.bundle.js.map → docs-Introduction-mdx.bcb06844.iframe.bundle.js.map} +1 -1
- package/storybook-static/iframe.html +2 -2
- package/storybook-static/project.json +1 -1
- package/storybook-static/{runtime~main.e945879b.iframe.bundle.js → runtime~main.7ee2126e.iframe.bundle.js} +1 -1
- package/storybook-static/static/css/{Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.e720ff21.chunk.css → Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.bee082ca.chunk.css} +2 -2
- package/storybook-static/static/css/{Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.e720ff21.chunk.css.map → Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.bee082ca.chunk.css.map} +1 -1
- package/storybook-static/static/css/{Presentation-ui-components-DialogWindow-DialogWindow-stories.6fb3af8d.chunk.css → Presentation-ui-components-DialogWindow-DialogWindow-stories.4f813450.chunk.css} +2 -2
- package/storybook-static/static/css/Presentation-ui-components-DialogWindow-DialogWindow-stories.4f813450.chunk.css.map +1 -0
- package/storybook-static/static/css/{Presentation-ui-components-Dropdown-Dropdown-stories.66965d64.chunk.css → Presentation-ui-components-Dropdown-Dropdown-stories.e37f549d.chunk.css} +2 -2
- package/storybook-static/static/css/Presentation-ui-components-Dropdown-Dropdown-stories.e37f549d.chunk.css.map +1 -0
- package/storybook-static/static/css/{Presentation-ui-components-MessageInput-MessageInput-stories.0e99d80b.chunk.css → Presentation-ui-components-MessageInput-MessageInput-stories.7eb916fc.chunk.css} +2 -2
- package/storybook-static/static/css/Presentation-ui-components-MessageInput-MessageInput-stories.7eb916fc.chunk.css.map +1 -0
- package/storybook-static/static/css/{main.6fa55a2c.css → main.a921485c.css} +2 -2
- package/storybook-static/static/css/{main.6fa55a2c.css.map → main.a921485c.css.map} +1 -1
- package/storybook-static/static/media/video-file.dbd1f8c63a3769f9e9a027f0922d56b2.svg +3 -0
- package/storybook-static/758.e75a5a47.iframe.bundle.js +0 -14
- package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.3523a670.iframe.bundle.js +0 -1
- package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.262a0cf2.iframe.bundle.js +0 -1
- package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.8f6fca84.iframe.bundle.js +0 -1
- package/storybook-static/static/css/Presentation-ui-components-DialogWindow-DialogWindow-stories.6fb3af8d.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-Dropdown-Dropdown-stories.66965d64.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-MessageInput-MessageInput-stories.0e99d80b.chunk.css.map +0 -1
- package/storybook-static/static/media/video-file.dc2971be489b2af7b1c04dcc55bfe881.svg +0 -3
package/dist/Data/Stubs.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare class Stubs {
|
|
|
23
23
|
static createPrivateDialogQBWithEmptyValues(): QBChatDialog;
|
|
24
24
|
static createGroupDialogQBWithEmptyValues(): QBChatDialog;
|
|
25
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;
|
|
26
|
-
static createUserEntityWithParams(id: number, full_name: string, email: string, login: string, created_at: string, updated_at: string, last_request_at:
|
|
26
|
+
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
27
|
static createDialogsForTest(): Array<DialogEntity>;
|
|
28
28
|
static createUsersForTest(): Array<UserEntity>;
|
|
29
29
|
static createMessagesForTest(): Array<MessageEntity>;
|
|
@@ -6,9 +6,9 @@ export declare class RemoteUserDTO {
|
|
|
6
6
|
login: string;
|
|
7
7
|
created_at: string;
|
|
8
8
|
updated_at: string;
|
|
9
|
-
last_request_at:
|
|
9
|
+
last_request_at: number;
|
|
10
10
|
custom_data: string | null;
|
|
11
11
|
user_tags: string | null;
|
|
12
|
-
blob_id: number |
|
|
12
|
+
blob_id: number | null;
|
|
13
13
|
constructor();
|
|
14
14
|
}
|
|
@@ -11,6 +11,7 @@ interface AIAssistProps {
|
|
|
11
11
|
messageToAssist?: MessageEntity;
|
|
12
12
|
messageHistory?: MessageEntity[];
|
|
13
13
|
currentUserId?: number;
|
|
14
|
+
disableAction?: boolean;
|
|
14
15
|
}
|
|
15
|
-
export default function AIAssist({ loading, AIAssistWidget, maxTokens, onLoading, onError, messageToAssist, messageHistory, currentUserId, }: AIAssistProps): JSX.Element;
|
|
16
|
+
export default function AIAssist({ loading, AIAssistWidget, maxTokens, onLoading, onError, messageToAssist, messageHistory, currentUserId, disableAction, }: AIAssistProps): JSX.Element;
|
|
16
17
|
export {};
|
|
@@ -15,6 +15,7 @@ interface AITranslateComponentProps {
|
|
|
15
15
|
messageToTranslate?: MessageEntity;
|
|
16
16
|
messageHistory?: MessageEntity[];
|
|
17
17
|
currentUserId?: number;
|
|
18
|
+
disableAction?: boolean;
|
|
18
19
|
}
|
|
19
|
-
export default function AITranslate({ AITranslateWidget, originalTextMessage, loading, defaultLanguage, languages, maxTokens, onLoading, onError, onTranslated, messageToTranslate, messageHistory, currentUserId, }: AITranslateComponentProps): JSX.Element;
|
|
20
|
+
export default function AITranslate({ AITranslateWidget, originalTextMessage, loading, defaultLanguage, languages, maxTokens, onLoading, onError, onTranslated, messageToTranslate, messageHistory, currentUserId, disableAction, }: AITranslateComponentProps): JSX.Element;
|
|
20
21
|
export {};
|
|
@@ -17,6 +17,7 @@ type AIRephraseWidgetProps = {
|
|
|
17
17
|
rephraseTones: Tone[];
|
|
18
18
|
theme?: UiKitTheme;
|
|
19
19
|
setPrevValueText: FunctionTypeStringToVoid;
|
|
20
|
+
disableActions?: boolean;
|
|
20
21
|
};
|
|
21
22
|
declare const AIRephraseWidget: React.FC<AIRephraseWidgetProps>;
|
|
22
23
|
export default AIRephraseWidget;
|
|
@@ -8,6 +8,7 @@ type ForwardMessageFlowProps = {
|
|
|
8
8
|
currentDialog: DialogEntity;
|
|
9
9
|
currentUserName: string;
|
|
10
10
|
onSendData: (dialogs: DialogEntity[], messages: MessageEntity[], relatedText: string) => void;
|
|
11
|
+
disableActions: boolean;
|
|
11
12
|
};
|
|
12
13
|
declare const ForwardMessageFlow: React.FC<ForwardMessageFlowProps>;
|
|
13
14
|
export default ForwardMessageFlow;
|
package/dist/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import './InputForForwarding.scss';
|
|
1
|
+
/// <reference types="react" />
|
|
3
2
|
import { FunctionTypeStringToVoid, FunctionTypeVoidToVoid } from '../../../../../CommonTypes/BaseViewModel';
|
|
3
|
+
import './InputForForwarding.scss';
|
|
4
4
|
type InputForForwardingProps = {
|
|
5
5
|
inputText: string;
|
|
6
6
|
onChange: FunctionTypeStringToVoid;
|
|
@@ -8,5 +8,6 @@ export type MessageContextMenuProps = {
|
|
|
8
8
|
enableReplying: boolean;
|
|
9
9
|
onReply: FunctionTypeMessageEntityToVoid;
|
|
10
10
|
onForward: FunctionTypeMessageEntityToVoid;
|
|
11
|
+
disableActions?: boolean;
|
|
11
12
|
};
|
|
12
|
-
export default function MessageContextMenu({ message, enableReplying, enableForwarding, onReply, onForward, }: MessageContextMenuProps): JSX.Element;
|
|
13
|
+
export default function MessageContextMenu({ message, enableReplying, enableForwarding, onReply, onForward, disableActions, }: MessageContextMenuProps): JSX.Element;
|
|
@@ -18,5 +18,6 @@ export type MessageItemProps = {
|
|
|
18
18
|
listRef?: RefObject<HTMLDivElement>;
|
|
19
19
|
messagesToView: MessageEntity[];
|
|
20
20
|
onError: (messageError: string) => void;
|
|
21
|
+
disableAction?: boolean;
|
|
21
22
|
};
|
|
22
|
-
export default function MessageItem({ message, currentUserId, enableForwarding, enableReplying, onReply, onForward, listRef, messagesToView, AITranslateWidget, AIAssistWidget, maxTokens, defaultTranslationLanguage, languagesForAITranslate, onError, }: MessageItemProps): JSX.Element | null;
|
|
23
|
+
export default function MessageItem({ message, currentUserId, enableForwarding, enableReplying, onReply, onForward, listRef, messagesToView, AITranslateWidget, AIAssistWidget, maxTokens, defaultTranslationLanguage, languagesForAITranslate, onError, disableAction, }: MessageItemProps): JSX.Element | null;
|
|
@@ -15,6 +15,7 @@ type HeaderDialogsProps = {
|
|
|
15
15
|
subHeaderContent?: React.ReactNode;
|
|
16
16
|
upHeaderContent?: React.ReactNode;
|
|
17
17
|
rootStyles?: React.CSSProperties;
|
|
18
|
+
disableAction?: boolean;
|
|
18
19
|
};
|
|
19
20
|
declare const DialogInfo: React.FC<HeaderDialogsProps>;
|
|
20
21
|
export default DialogInfo;
|
|
@@ -25,6 +25,7 @@ type DialogsProps = {
|
|
|
25
25
|
onCreateDialog?: FunctionTypeVoidToVoid;
|
|
26
26
|
dialogListViewModel: DialogListViewModel;
|
|
27
27
|
additionalSettings?: DialogsComponentSettings;
|
|
28
|
+
disableAction?: boolean;
|
|
28
29
|
scrollableHeight?: number;
|
|
29
30
|
};
|
|
30
31
|
declare const DialogList: React.FC<DialogsProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import './EditDialog.scss';
|
|
3
2
|
import { FunctionTypeEditDialogParamsToVoid, FunctionTypeVoidToVoid } from '../../../CommonTypes/BaseViewModel';
|
|
4
3
|
import { DialogType } from '../../../Domain/entity/DialogTypes';
|
|
4
|
+
import './EditDialog.scss';
|
|
5
5
|
export declare const TypeOpenDialog: {
|
|
6
6
|
readonly edit: "edit";
|
|
7
7
|
readonly create: "create";
|
|
@@ -14,6 +14,7 @@ type EditDialogProps = {
|
|
|
14
14
|
typeAddEditDialog: OpenDialogArcheType;
|
|
15
15
|
clickUpdatedHandler?: FunctionTypeEditDialogParamsToVoid;
|
|
16
16
|
clickCancelHandler?: FunctionTypeVoidToVoid;
|
|
17
|
+
disableActions?: boolean;
|
|
17
18
|
};
|
|
18
19
|
declare const EditDialog: React.FC<EditDialogProps>;
|
|
19
20
|
export default EditDialog;
|
|
@@ -5,6 +5,7 @@ type CreateNewDialogFlowProps = {
|
|
|
5
5
|
dialogsViewModel: DialogListViewModel;
|
|
6
6
|
onFinished: (newEntity: DialogEntity) => void;
|
|
7
7
|
onCancel?: () => void;
|
|
8
|
+
isOnline: boolean;
|
|
8
9
|
};
|
|
9
10
|
declare const CreateNewDialogFlow: React.FC<CreateNewDialogFlowProps>;
|
|
10
11
|
export default CreateNewDialogFlow;
|
|
@@ -31,6 +31,7 @@ type PreviewDialogsProps = {
|
|
|
31
31
|
theme?: PreviewDialogsTheme;
|
|
32
32
|
onLeaveDialog: FunctionTypeDialogEntityToVoid;
|
|
33
33
|
additionalSettings?: PreviewDialogSettings;
|
|
34
|
+
disableActions?: boolean;
|
|
34
35
|
};
|
|
35
36
|
declare const PreviewDialog: React.FC<PreviewDialogsProps>;
|
|
36
37
|
export default PreviewDialog;
|
|
@@ -2,6 +2,7 @@ import ConnectionRepository from '../../../Data/repository/ConnectionRepository'
|
|
|
2
2
|
type QBConnectionInfo = {
|
|
3
3
|
connectionRepository: ConnectionRepository;
|
|
4
4
|
browserOnline: boolean;
|
|
5
|
+
connectionStatus: boolean;
|
|
5
6
|
};
|
|
6
7
|
declare const useQBConnection: () => QBConnectionInfo;
|
|
7
8
|
export default useQBConnection;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
2
|
import './DialogWindow.scss';
|
|
3
3
|
interface DialogWindowProps {
|
|
4
4
|
open: boolean;
|
|
@@ -6,6 +6,7 @@ interface DialogWindowProps {
|
|
|
6
6
|
children: ReactElement | ReactElement[];
|
|
7
7
|
onClose?: VoidFunction;
|
|
8
8
|
className?: string;
|
|
9
|
+
disableActions?: boolean;
|
|
9
10
|
}
|
|
10
|
-
export default function DialogWindow({ children, onClose, open, title, className, }: DialogWindowProps):
|
|
11
|
+
export default function DialogWindow({ children, onClose, open, title, className, disableActions, }: DialogWindowProps): React.ReactPortal | null;
|
|
11
12
|
export {};
|
|
@@ -2,11 +2,12 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
export interface Option {
|
|
3
3
|
value: string;
|
|
4
4
|
label: string;
|
|
5
|
+
disabled?: boolean;
|
|
5
6
|
leftIcon?: ReactElement;
|
|
6
7
|
rightIcon?: ReactElement;
|
|
7
8
|
}
|
|
8
9
|
interface DropdownOptionProps extends Option {
|
|
9
10
|
onSelect: (value: string) => void;
|
|
10
11
|
}
|
|
11
|
-
export default function DropdownOption({ label, value, leftIcon, rightIcon, onSelect, }: DropdownOptionProps): JSX.Element;
|
|
12
|
+
export default function DropdownOption({ label, value, disabled, leftIcon, rightIcon, onSelect, }: DropdownOptionProps): JSX.Element;
|
|
12
13
|
export {};
|
package/dist/Presentation/ui-components/MessageInput/AttachmentUploader/AttachmentUploader.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
type AttachmentMessageProps = {
|
|
3
3
|
icon: React.ReactNode;
|
|
4
4
|
onChangeFile: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
+
disableAction: boolean;
|
|
5
6
|
};
|
|
6
7
|
declare const AttachmentUploader: React.FC<AttachmentMessageProps>;
|
|
7
8
|
export default AttachmentUploader;
|