quickblox-react-ui-kit 0.2.8-beta.7 → 0.2.8-beta.8
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/Presentation/Views/DialogList/DialogList.d.ts +2 -1
- package/dist/Presentation/Views/{CreateDialog → Flow/CreateDialog}/CreateDialog.d.ts +1 -1
- package/dist/Presentation/Views/{CreateDialogFlow → Flow/CreateDialogFlow}/CreateNewDialogFlow.d.ts +1 -1
- package/dist/Presentation/Views/Flow/LeaveDialogFlow/LeaveDialogFlow.d.ts +9 -0
- package/dist/Presentation/Views/PreviewDialog/PreviewDialog.d.ts +2 -0
- package/dist/index-ui.js +498 -408
- package/dist/index-ui.js.map +1 -1
- package/package.json +2 -2
- package/dist/Presentation/layouts/TestStage/TestStageMarkup.d.ts +0 -4
|
@@ -41,6 +41,7 @@ export type FunctionTypeBooleanToVoid = (value: boolean) => void;
|
|
|
41
41
|
export type FunctionTypeEditDialogParamsToVoid = (params: EditDialogParams) => void;
|
|
42
42
|
export type FunctionTypeDialogEntityToDialogEntity = (entity: GroupDialogEntity) => Promise<DialogEntity>;
|
|
43
43
|
export type FunctionTypeDialogEntityToBoolean = (entity: GroupDialogEntity) => Promise<boolean>;
|
|
44
|
+
export type FunctionTypeDialogEntityToVoid = (entity: DialogEntity) => void;
|
|
44
45
|
export type FunctionTypeFileToFileEntity = (file: File) => Promise<FileEntity>;
|
|
45
46
|
export type FunctionTypeJSXElement = () => JSX.Element;
|
|
46
47
|
export type FunctionTypeFileWithContextToToVoid = (file: File, context: IChatMessage[], additionalSettings?: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './DialogList.scss';
|
|
3
|
-
import { FunctionTypeViewModelToVoid } from '../../../CommonTypes/BaseViewModel';
|
|
3
|
+
import { FunctionTypeDialogEntityToVoid, FunctionTypeViewModelToVoid } from '../../../CommonTypes/BaseViewModel';
|
|
4
4
|
import { ThemeNames } from '../PreviewDialog/PreviewDialog';
|
|
5
5
|
import { DialogListViewModel } from './DialogListViewModel';
|
|
6
6
|
import { DialogEntity } from '../../../Domain/entity/DialogEntity';
|
|
@@ -18,6 +18,7 @@ type DialogsProps = {
|
|
|
18
18
|
subHeaderContent?: React.ReactNode;
|
|
19
19
|
upHeaderContent?: React.ReactNode;
|
|
20
20
|
onDialogSelectHandler?: FunctionTypeViewModelToVoid<DialogEntity>;
|
|
21
|
+
onLeaveDialog: FunctionTypeDialogEntityToVoid;
|
|
21
22
|
dialogsViewModel: DialogListViewModel;
|
|
22
23
|
additionalSettings?: DialogsComponentSettings;
|
|
23
24
|
scrollableHeight?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './CreateDialog.scss';
|
|
3
|
-
import { FunctionTypeVoidToVoid } from '
|
|
3
|
+
import { FunctionTypeVoidToVoid } from '../../../../CommonTypes/BaseViewModel';
|
|
4
4
|
type CreateDialogProps = {
|
|
5
5
|
createPrivateDialogClickHandler: FunctionTypeVoidToVoid;
|
|
6
6
|
createPrivateDialogTouchHandler: FunctionTypeVoidToVoid;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DialogListViewModel } from '../../DialogList/DialogListViewModel';
|
|
3
|
+
import { DialogEntity } from '../../../../Domain/entity/DialogEntity';
|
|
4
|
+
type LeaveDialogFlowProps = {
|
|
5
|
+
dialogsViewModel: DialogListViewModel;
|
|
6
|
+
dialog: DialogEntity;
|
|
7
|
+
};
|
|
8
|
+
declare const LeaveDialogFlow: React.FC<LeaveDialogFlowProps>;
|
|
9
|
+
export default LeaveDialogFlow;
|
|
@@ -3,6 +3,7 @@ import './PreviewDialog.scss';
|
|
|
3
3
|
import { DialogType } from '../../../Domain/entity/DialogTypes';
|
|
4
4
|
import PreviewDialogViewModel from './PreviewDialogViewModel';
|
|
5
5
|
import UiKitTheme from '../../themes/UiKitTheme';
|
|
6
|
+
import { FunctionTypeDialogEntityToVoid } from '../../../CommonTypes/BaseViewModel';
|
|
6
7
|
export type ThemeNames = 'light' | 'dark' | 'custom';
|
|
7
8
|
type PreviewDialogsTheme = {
|
|
8
9
|
themeName?: ThemeNames;
|
|
@@ -28,6 +29,7 @@ type PreviewDialogsProps = {
|
|
|
28
29
|
unreadMessageCount?: number;
|
|
29
30
|
message_date_time_sent?: string;
|
|
30
31
|
theme?: PreviewDialogsTheme;
|
|
32
|
+
onLeaveDialog: FunctionTypeDialogEntityToVoid;
|
|
31
33
|
additionalSettings?: PreviewDialogSettings;
|
|
32
34
|
};
|
|
33
35
|
declare const PreviewDialog: React.FC<PreviewDialogsProps>;
|