quickblox-react-ui-kit 0.2.7-release-final → 0.2.8-beta.7
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/CommonTypes/BaseViewModel.d.ts +1 -0
- package/dist/Data/source/remote/Mapper/MessageDTOMapper.d.ts +8 -1
- package/dist/Presentation/Views/Dialog/DialogHeader/DialogHeader.d.ts +2 -1
- package/dist/Presentation/Views/Dialog/DialogHeader/RenderLeftActions/RenderLeftActions.d.ts +10 -0
- package/dist/Presentation/Views/Dialog/DialogHeader/RenderRightActions/RenderRightActions.d.ts +10 -0
- package/dist/Presentation/Views/Dialog/Message/IncomingMessage/MessageContentComponent/MessageContentComponent.d.ts +1 -0
- package/dist/Presentation/Views/DialogInfo/DialogInfo.d.ts +1 -0
- package/dist/Presentation/Views/{MembersList → DialogInfo/MembersList}/MembersList.d.ts +2 -2
- package/dist/Presentation/Views/DialogList/DialogList.d.ts +1 -0
- package/dist/Presentation/Views/DialogListHeader/DialogListHeader.d.ts +2 -2
- package/dist/Presentation/Views/PreviewDialog/PreviewDialogContextMenu/PreviewDialogContextMenu.d.ts +13 -0
- package/dist/Presentation/components/containers/SectionList/hooks/useMobileLayout.d.ts +1 -1
- package/dist/Presentation/layouts/Desktop/DesktopLayout.d.ts +3 -1
- package/dist/Presentation/layouts/Desktop/QuickBloxUIKitDesktopLayout.d.ts +1 -0
- package/dist/index-ui.js +27457 -494
- package/dist/index-ui.js.map +1 -0
- package/package.json +1 -1
- package/dist/Presentation/Views/Dialog/RenderDialogHeaderNavigator/RenderDialogHeaderNavigator.d.ts +0 -9
|
@@ -32,6 +32,7 @@ export type FunctionTypeReplyMessagesParamsToBoolean = (replyData: ReplyMessages
|
|
|
32
32
|
export type FunctionTypeForwardMessagesParamsToBoolean = (forwardingData: ForwardMessagesParams) => Promise<boolean>;
|
|
33
33
|
export type FunctionTypeFileToToVoid = (file: File) => void;
|
|
34
34
|
export type FunctionTypeMessageEntityToVoid = (message: MessageEntity) => void;
|
|
35
|
+
export type FunctionDialogEntityToVoid = (dialog: DialogEntity) => void;
|
|
35
36
|
export type FunctionTypeFileToToBoolean = (file: File) => Promise<boolean>;
|
|
36
37
|
export type FunctionTypePaginationToVoid = (pagination: Pagination) => void;
|
|
37
38
|
export type FunctionTypeVoidToVoid = () => void;
|
|
@@ -10,8 +10,15 @@ export declare class MessageDTOMapper implements IDTOMapper {
|
|
|
10
10
|
static convertToQBChatNewMessage(messages: RemoteMessageDTO[]): QBChatMessage[];
|
|
11
11
|
static translateOriginalDataToJSON(qb_original_message?: QBChatMessage[]): string;
|
|
12
12
|
static translateJSONToOriginalData(json_data?: string): QBChatMessage[] | undefined;
|
|
13
|
+
static FORWARD_MESSAGE_PREFIX: string;
|
|
14
|
+
static REPLY_MESSAGE_PREFIX: string;
|
|
15
|
+
static ATTACHMENT_PREFIX: string;
|
|
16
|
+
static MEDIA_CONTENT_ENTITY_PREFIX: string;
|
|
17
|
+
private static isForwardedOrRepliedMessage;
|
|
18
|
+
private static isMediaOrAttachmentMessage;
|
|
13
19
|
static formatMessage(qbMessage: string): string;
|
|
14
|
-
|
|
20
|
+
static getMessageParts(qbMessage: string): string[];
|
|
21
|
+
private static splitMessageParts;
|
|
15
22
|
private static validateDTO;
|
|
16
23
|
private static validateQBMessage;
|
|
17
24
|
}
|
|
@@ -4,7 +4,8 @@ import UiKitTheme from '../../../themes/UiKitTheme';
|
|
|
4
4
|
type DialogHeaderProps = {
|
|
5
5
|
dialogName: string;
|
|
6
6
|
renderAvatar: React.ReactNode;
|
|
7
|
-
|
|
7
|
+
renderLeftActions: React.ReactNode;
|
|
8
|
+
renderRightActions: React.ReactNode;
|
|
8
9
|
countMembers?: number;
|
|
9
10
|
theme?: UiKitTheme;
|
|
10
11
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './RenderLeftActions.scss';
|
|
3
|
+
import { FunctionTypeVoidToVoid } from '../../../../../CommonTypes/BaseViewModel';
|
|
4
|
+
import UiKitTheme from '../../../../themes/UiKitTheme';
|
|
5
|
+
type RenderLeftActionsProps = {
|
|
6
|
+
onClickBack: FunctionTypeVoidToVoid;
|
|
7
|
+
theme?: UiKitTheme;
|
|
8
|
+
};
|
|
9
|
+
declare const RenderLeftActions: React.FC<RenderLeftActionsProps>;
|
|
10
|
+
export default RenderLeftActions;
|
package/dist/Presentation/Views/Dialog/DialogHeader/RenderRightActions/RenderRightActions.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './RenderRightActions.scss';
|
|
3
|
+
import { FunctionTypeVoidToVoid } from '../../../../../CommonTypes/BaseViewModel';
|
|
4
|
+
import UiKitTheme from '../../../../themes/UiKitTheme';
|
|
5
|
+
type RenderRightActionsProps = {
|
|
6
|
+
onClickInfo: FunctionTypeVoidToVoid;
|
|
7
|
+
theme?: UiKitTheme;
|
|
8
|
+
};
|
|
9
|
+
declare const RenderRightActions: React.FC<RenderRightActionsProps>;
|
|
10
|
+
export default RenderRightActions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './MembersList.scss';
|
|
3
|
-
import { FunctionTypeVoidToVoid } from '
|
|
4
|
-
import { UserEntity } from '
|
|
3
|
+
import { FunctionTypeVoidToVoid } from '../../../../CommonTypes/BaseViewModel';
|
|
4
|
+
import { UserEntity } from '../../../../Domain/entity/UserEntity';
|
|
5
5
|
type MembersListProps = {
|
|
6
6
|
closeInformationHandler: FunctionTypeVoidToVoid;
|
|
7
7
|
members: UserEntity[];
|
|
@@ -20,6 +20,7 @@ type DialogsProps = {
|
|
|
20
20
|
onDialogSelectHandler?: FunctionTypeViewModelToVoid<DialogEntity>;
|
|
21
21
|
dialogsViewModel: DialogListViewModel;
|
|
22
22
|
additionalSettings?: DialogsComponentSettings;
|
|
23
|
+
scrollableHeight?: number;
|
|
23
24
|
};
|
|
24
25
|
declare const DialogList: React.FC<DialogsProps>;
|
|
25
26
|
export default DialogList;
|
|
@@ -6,8 +6,8 @@ type DialogListHeaderProps = {
|
|
|
6
6
|
title?: string;
|
|
7
7
|
clickSearchHandler?: FunctionTypeVoidToVoid;
|
|
8
8
|
touchSearchHandler?: FunctionTypeVoidToVoid;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
clickActionHandler?: FunctionTypeVoidToVoid;
|
|
10
|
+
touchActionHandler?: FunctionTypeVoidToVoid;
|
|
11
11
|
theme?: UiKitTheme;
|
|
12
12
|
settings?: any;
|
|
13
13
|
};
|
package/dist/Presentation/Views/PreviewDialog/PreviewDialogContextMenu/PreviewDialogContextMenu.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './PreviewDialogContextMenu.scss';
|
|
3
|
+
import UiKitTheme from '../../../themes/UiKitTheme';
|
|
4
|
+
import { DialogEntity } from '../../../../Domain/entity/DialogEntity';
|
|
5
|
+
import { FunctionDialogEntityToVoid } from '../../../../CommonTypes/BaseViewModel';
|
|
6
|
+
interface PreviewDialogContextMenuProps {
|
|
7
|
+
theme?: UiKitTheme;
|
|
8
|
+
dialog: DialogEntity;
|
|
9
|
+
onLeave: FunctionDialogEntityToVoid;
|
|
10
|
+
enableLeaveDialog: boolean;
|
|
11
|
+
}
|
|
12
|
+
export default function PreviewDialogContextMenu(props: PreviewDialogContextMenuProps): JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function useMobileLayout(): boolean;
|
|
1
|
+
export default function useMobileLayout(): (number | boolean)[];
|
|
@@ -6,6 +6,8 @@ type LayoutItems = {
|
|
|
6
6
|
dialogMessagesView: React.ReactNode;
|
|
7
7
|
dialogInfoView: React.ReactNode;
|
|
8
8
|
theme?: UiKitTheme;
|
|
9
|
+
mainContainerStyles?: React.CSSProperties;
|
|
10
|
+
onHeightChange?: (height: number) => void;
|
|
9
11
|
};
|
|
10
|
-
declare function DesktopLayout({ dialogsView, dialogMessagesView, dialogInfoView, theme, }: LayoutItems): JSX.Element;
|
|
12
|
+
declare function DesktopLayout({ dialogsView, dialogMessagesView, dialogInfoView, theme, onHeightChange, mainContainerStyles, }: LayoutItems): JSX.Element;
|
|
11
13
|
export default DesktopLayout;
|
|
@@ -12,6 +12,7 @@ type QuickBloxUIKitDesktopLayoutProps = {
|
|
|
12
12
|
AIRephrase?: AIWidgetPlaceHolder;
|
|
13
13
|
AITranslate?: AIWidgetPlaceHolder;
|
|
14
14
|
AIAssist?: AIWidgetPlaceHolder;
|
|
15
|
+
uikitHeightOffset?: string;
|
|
15
16
|
};
|
|
16
17
|
declare const QuickBloxUIKitDesktopLayout: React.FC<QuickBloxUIKitDesktopLayoutProps>;
|
|
17
18
|
export default QuickBloxUIKitDesktopLayout;
|