quickblox-react-ui-kit 0.2.6-patch → 0.2.7-release-final
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/Creator.d.ts +30 -0
- package/dist/Data/Stubs.d.ts +3 -3
- 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 +1 -1
- package/dist/Data/source/exception/RepositoryException.d.ts +1 -1
- package/dist/Data/source/remote/Mapper/MessageDTOMapper.d.ts +2 -2
- package/dist/Domain/entity/MessageEntity.d.ts +1 -1
- package/dist/Domain/entity/UserEntity.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIComponents/AIAssistComponent/AIAssistComponent.d.ts +4 -3
- package/dist/Presentation/Views/Dialog/AIComponents/AITranslateComponent/AITranslateComponent.d.ts +4 -3
- package/dist/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/{AttachmentMessage/AttachmentMessage.d.ts → AttachmentUploader/AttachmentUploader.d.ts} +2 -2
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/{ItemForListComponent/ItemDialogList.d.ts → DialogListItem/DialogListItem.d.ts} +8 -8
- package/dist/Presentation/Views/Dialog/Message/IncomingForwardedMessage/IncomingForwardedMessage.d.ts +27 -0
- package/dist/Presentation/Views/Dialog/{IncomingMessage → Message/IncomingMessage}/IncomingMessage.d.ts +6 -5
- package/dist/Presentation/Views/Dialog/Message/IncomingMessage/MessageContentComponent/MessageContentComponent.d.ts +11 -0
- package/dist/Presentation/Views/Dialog/Message/IncomingRepliedMessage/IncomingRepliedMessage.d.ts +27 -0
- package/dist/Presentation/Views/Dialog/Message/MessageAttachment/AudioAttachment/AudioAttachment.d.ts +8 -0
- package/dist/Presentation/Views/Dialog/Message/MessageAttachment/DefaultAttachment/DefaultAttachment.d.ts +8 -0
- package/dist/Presentation/Views/Dialog/Message/MessageAttachment/ImageAttachment/ImageAttachment.d.ts +8 -0
- package/dist/Presentation/Views/Dialog/Message/MessageAttachment/MessageAttachment.d.ts +11 -0
- package/dist/Presentation/Views/Dialog/Message/MessageAttachment/VideoAttachment/VideoAttachment.d.ts +8 -0
- package/dist/Presentation/Views/Dialog/Message/MessageContextMenu/MessageContextMenu.d.ts +15 -0
- package/dist/Presentation/Views/Dialog/Message/OutgoinForwardedMessage/OutgoinForwardedMessage.d.ts +18 -0
- package/dist/Presentation/Views/Dialog/{ContextMenu/MessageContextMenu/MessageContextMenu.d.ts → Message/OutgoingMessage/OutgoingMessage.d.ts} +6 -5
- package/dist/Presentation/Views/Dialog/Message/OutgoingRepliedMessage/OutgoingRepliedMessage.d.ts +16 -0
- package/dist/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.d.ts +2 -2
- package/dist/Presentation/components/containers/SectionList/hooks/createUseComponent.d.ts +3 -0
- package/dist/Presentation/components/containers/SectionList/hooks/index.d.ts +4 -0
- package/dist/Presentation/components/containers/SectionList/hooks/useMobileLayout.d.ts +1 -0
- package/dist/Presentation/components/containers/SectionList/hooks/usePrevious.d.ts +1 -0
- package/dist/Presentation/components/containers/SectionList/hooks/useVisibility.d.ts +1 -0
- package/dist/Presentation/components/containers/SectionList/index.d.ts +4 -0
- package/dist/Presentation/components/containers/SectionList/useComponent.d.ts +28 -0
- package/dist/index-ui.d.ts +2 -2
- package/dist/index-ui.js +538 -350
- package/dist/utils/DateTimeFormatter.d.ts +1 -0
- package/global.d.ts +4 -5
- package/package.json +5 -5
- package/dist/Presentation/Views/Dialog/AudioAttachmentComponent/AudioAttachmentComponent.d.ts +0 -8
- package/dist/Presentation/Views/Dialog/DefaultAttachmentComponent/DefaultAttachmentComponent.d.ts +0 -8
- package/dist/Presentation/Views/Dialog/ImageAttachmentComponent/ImageAttachmentComponent.d.ts +0 -8
- package/dist/Presentation/Views/Dialog/IncomingForwardedRepliedMessage/IncomingForwardedRepliedMessage.d.ts +0 -25
- package/dist/Presentation/Views/Dialog/IncomingMessage/AttachmentContentComponent/AttachmentContentComponent.d.ts +0 -8
- package/dist/Presentation/Views/Dialog/IncomingMessage/MessageContentComponent/MessageContentComponent.d.ts +0 -10
- package/dist/Presentation/Views/Dialog/OutgoingForwardedRepliedMessage/OutgoingForwardedRepliedMessage.d.ts +0 -17
- package/dist/Presentation/Views/Dialog/OutgoingMessage/OutgoingMessage.d.ts +0 -14
- package/dist/Presentation/Views/Dialog/VideoAttachmentComponent/VideoAttachmentComponent.d.ts +0 -8
- /package/dist/Presentation/Views/Dialog/{HighLightLink → Message/HighLightLink}/HighLightLink.d.ts +0 -0
- /package/dist/Presentation/Views/Dialog/{IncomingMessage → Message/IncomingMessage}/AvatarContentIncomingUser/AvatarContentIncomingUser.d.ts +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const formatDate: (inputDate: string) => string;
|
|
1
2
|
export declare const getDateShortFormatEU: (dateTimeToFormat: number) => string;
|
|
2
3
|
export declare const getTimeShort24hFormat: (dateTimeToFormat: number) => string;
|
|
3
4
|
export declare const formatShortTime3: (dateTimeToFormat: number) => string;
|
package/global.d.ts
CHANGED
|
@@ -102,7 +102,7 @@ interface QBUser {
|
|
|
102
102
|
last_request_at: string;
|
|
103
103
|
external_user_id: null;
|
|
104
104
|
facebook_id: string | null;
|
|
105
|
-
blob_id: null;
|
|
105
|
+
blob_id: number | string | null;
|
|
106
106
|
custom_data: string | null;
|
|
107
107
|
age_over16: boolean;
|
|
108
108
|
allow_statistics_analysis: boolean;
|
|
@@ -214,7 +214,7 @@ interface QBChatNewMessage {
|
|
|
214
214
|
dialog_id: QBChatDialog['_id'];
|
|
215
215
|
notification_type?: string;
|
|
216
216
|
sender_id?: QBUser['id'];
|
|
217
|
-
qb_message_action?:
|
|
217
|
+
qb_message_action?: 'forward' | 'reply';
|
|
218
218
|
origin_sender_name?: string;
|
|
219
219
|
qb_original_messages?: string;
|
|
220
220
|
};
|
|
@@ -238,7 +238,7 @@ interface QBChatMessage {
|
|
|
238
238
|
/** Date ISO string */
|
|
239
239
|
updated_at: string;
|
|
240
240
|
notification_type?: string;
|
|
241
|
-
qb_message_action?:
|
|
241
|
+
qb_message_action?: 'forward' | 'reply';
|
|
242
242
|
origin_sender_name?: string;
|
|
243
243
|
qb_original_messages?: string;
|
|
244
244
|
}
|
|
@@ -249,7 +249,6 @@ interface QBMessageStatusParams {
|
|
|
249
249
|
userId: QBUser['id'];
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
|
|
253
252
|
interface QBChatXMPPMessage {
|
|
254
253
|
id: string;
|
|
255
254
|
dialog_id: QBChatDialog['_id'];
|
|
@@ -611,7 +610,7 @@ interface QBUsersModule {
|
|
|
611
610
|
interface QBGetUserMediaParams {
|
|
612
611
|
audio: MediaStreamConstraints['audio'];
|
|
613
612
|
video: MediaStreamConstraints['video'];
|
|
614
|
-
/**
|
|
613
|
+
/** id attribute of HTMLVideoElement */
|
|
615
614
|
elemId?: string;
|
|
616
615
|
options?: {
|
|
617
616
|
muted?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quickblox-react-ui-kit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7-release-final",
|
|
4
4
|
"main": "dist/index-ui.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"@types/react": "^18.0.26",
|
|
26
26
|
"@types/react-dom": "^18.0.9",
|
|
27
27
|
"classnames": "^2.3.2",
|
|
28
|
-
"qb-ai-answer-assistant": "^0.1.
|
|
29
|
-
"qb-ai-core": "^0.1.
|
|
30
|
-
"qb-ai-rephrase": "^0.1.
|
|
31
|
-
"qb-ai-translate": "^0.1.
|
|
28
|
+
"qb-ai-answer-assistant": "^0.1.2",
|
|
29
|
+
"qb-ai-core": "^0.1.3",
|
|
30
|
+
"qb-ai-rephrase": "^0.1.2",
|
|
31
|
+
"qb-ai-translate": "^0.1.2",
|
|
32
32
|
"react": "^18.2.0",
|
|
33
33
|
"react-dom": "^18.2.0",
|
|
34
34
|
"react-router-dom": "^6.11.1",
|
package/dist/Presentation/Views/Dialog/AudioAttachmentComponent/AudioAttachmentComponent.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './AudioAttachmentComponent.scss';
|
|
3
|
-
import { FileEntity } from '../../../../Domain/entity/FileEntity';
|
|
4
|
-
type AudioAttachmentComponentProps = {
|
|
5
|
-
audioFile: FileEntity;
|
|
6
|
-
};
|
|
7
|
-
declare const AudioAttachmentComponent: React.FC<AudioAttachmentComponentProps>;
|
|
8
|
-
export default AudioAttachmentComponent;
|
package/dist/Presentation/Views/Dialog/DefaultAttachmentComponent/DefaultAttachmentComponent.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './DefaultAttachmentComponent.scss';
|
|
3
|
-
type DefaultAttachmentComponentProps = {
|
|
4
|
-
fileName: string;
|
|
5
|
-
fileUrl: string;
|
|
6
|
-
};
|
|
7
|
-
declare const DefaultAttachmentComponent: React.FC<DefaultAttachmentComponentProps>;
|
|
8
|
-
export default DefaultAttachmentComponent;
|
package/dist/Presentation/Views/Dialog/ImageAttachmentComponent/ImageAttachmentComponent.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './ImageAttachmentComponent.scss';
|
|
3
|
-
import { FileEntity } from '../../../../Domain/entity/FileEntity';
|
|
4
|
-
type ImageAttachmentComponentProps = {
|
|
5
|
-
imageFile: FileEntity;
|
|
6
|
-
};
|
|
7
|
-
declare const ImageAttachmentComponent: React.FC<ImageAttachmentComponentProps>;
|
|
8
|
-
export default ImageAttachmentComponent;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './IncomingForwardedRepliedMessage.scss';
|
|
3
|
-
import { MessageEntity } from '../../../../Domain/entity/MessageEntity';
|
|
4
|
-
import UiKitTheme from '../../../themes/UiKitTheme';
|
|
5
|
-
import { FunctionTypeMessageEntityToVoid } from '../../../../CommonTypes/BaseViewModel';
|
|
6
|
-
import { AIMessageWidget } from '../AIWidgets/AIMessageWidget';
|
|
7
|
-
declare function IncomingForwardedRepliedMessage(props: {
|
|
8
|
-
theme: UiKitTheme | undefined;
|
|
9
|
-
messages: MessageEntity[];
|
|
10
|
-
onReply: FunctionTypeMessageEntityToVoid;
|
|
11
|
-
onForward: FunctionTypeMessageEntityToVoid;
|
|
12
|
-
repliedUserName: string;
|
|
13
|
-
renderOringinalMessage: React.ReactNode;
|
|
14
|
-
typeMessage: string;
|
|
15
|
-
AITranslation?: AIMessageWidget;
|
|
16
|
-
AIAnswerToMessage?: AIMessageWidget;
|
|
17
|
-
onStartLoader: () => void;
|
|
18
|
-
onStopLoader: () => void;
|
|
19
|
-
onErrorToast: (messageError: string) => void;
|
|
20
|
-
currentUserId?: number;
|
|
21
|
-
messagesToView: MessageEntity[];
|
|
22
|
-
enableForwarding: boolean;
|
|
23
|
-
enableReplying: boolean;
|
|
24
|
-
}): JSX.Element;
|
|
25
|
-
export default IncomingForwardedRepliedMessage;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import ChatMessageAttachmentEntity from '../../../../../Domain/entity/ChatMessageAttachmentEntity';
|
|
3
|
-
import UiKitTheme from '../../../../themes/UiKitTheme';
|
|
4
|
-
declare function AttachmentContentComponent(props: {
|
|
5
|
-
attachment: ChatMessageAttachmentEntity;
|
|
6
|
-
theme: UiKitTheme | undefined;
|
|
7
|
-
}): JSX.Element;
|
|
8
|
-
export default AttachmentContentComponent;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MessageEntity } from '../../../../../Domain/entity/MessageEntity';
|
|
3
|
-
import UiKitTheme from '../../../../themes/UiKitTheme';
|
|
4
|
-
declare function MessageContentComponent(props: {
|
|
5
|
-
mc: MessageEntity;
|
|
6
|
-
originalTextMessage: boolean;
|
|
7
|
-
widgetTextContent: string;
|
|
8
|
-
theme: UiKitTheme | undefined;
|
|
9
|
-
}): JSX.Element;
|
|
10
|
-
export default MessageContentComponent;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './OutgoingForwardedRepliedMessage.scss';
|
|
3
|
-
import { MessageEntity } from '../../../../Domain/entity/MessageEntity';
|
|
4
|
-
import UiKitTheme from '../../../themes/UiKitTheme';
|
|
5
|
-
import { FunctionTypeMessageEntityToVoid } from '../../../../CommonTypes/BaseViewModel';
|
|
6
|
-
declare function OutgoingForwardedRepliedMessage(props: {
|
|
7
|
-
theme: UiKitTheme | undefined;
|
|
8
|
-
messages: MessageEntity[];
|
|
9
|
-
onReply: FunctionTypeMessageEntityToVoid;
|
|
10
|
-
onForward: FunctionTypeMessageEntityToVoid;
|
|
11
|
-
repliedUserName: string;
|
|
12
|
-
renderOringinalMessage: React.ReactNode;
|
|
13
|
-
typeMessage: string;
|
|
14
|
-
enableForwarding: boolean;
|
|
15
|
-
enableReplying: boolean;
|
|
16
|
-
}): JSX.Element;
|
|
17
|
-
export default OutgoingForwardedRepliedMessage;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './OutgoingMessage.scss';
|
|
3
|
-
import { MessageEntity } from '../../../../Domain/entity/MessageEntity';
|
|
4
|
-
import UiKitTheme from '../../../themes/UiKitTheme';
|
|
5
|
-
import { FunctionTypeMessageEntityToVoid } from '../../../../CommonTypes/BaseViewModel';
|
|
6
|
-
export declare function OutgoingMessage(props: {
|
|
7
|
-
message: MessageEntity;
|
|
8
|
-
onReply: FunctionTypeMessageEntityToVoid;
|
|
9
|
-
onForward: FunctionTypeMessageEntityToVoid;
|
|
10
|
-
theme: UiKitTheme | undefined;
|
|
11
|
-
element: JSX.Element;
|
|
12
|
-
enableForwarding: boolean;
|
|
13
|
-
enableReplying: boolean;
|
|
14
|
-
}): JSX.Element;
|
package/dist/Presentation/Views/Dialog/VideoAttachmentComponent/VideoAttachmentComponent.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './VideoAttachmentComponent.scss';
|
|
3
|
-
import { FileEntity } from '../../../../Domain/entity/FileEntity';
|
|
4
|
-
type VideoAttachmentComponentProps = {
|
|
5
|
-
videoFile: FileEntity;
|
|
6
|
-
};
|
|
7
|
-
declare const VideoAttachmentComponent: React.FC<VideoAttachmentComponentProps>;
|
|
8
|
-
export default VideoAttachmentComponent;
|
/package/dist/Presentation/Views/Dialog/{HighLightLink → Message/HighLightLink}/HighLightLink.d.ts
RENAMED
|
File without changes
|