quickblox-react-ui-kit 0.2.8-beta.14 → 0.2.8-beta.16
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 +2 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/Message/Message.d.ts +2 -0
- package/dist/Presentation/Views/DialogInfo/UsersList/UsersListViewModel.d.ts +2 -1
- package/dist/Presentation/Views/EditDialog/UserAvatar/UserAvatar.d.ts +1 -1
- package/dist/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.d.ts +1 -0
- package/dist/index-ui.js +832 -202
- package/dist/index-ui.js.map +1 -1
- package/dist/utils/DateTimeFormatter.d.ts +1 -0
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ import { FileEntity } from '../Domain/entity/FileEntity';
|
|
|
6
6
|
import { IChatMessage } from '../Data/source/AISource';
|
|
7
7
|
import { Tone } from '../Presentation/Views/Dialog/AIWidgets/Tone';
|
|
8
8
|
import { MessageEntity } from '../Domain/entity/MessageEntity';
|
|
9
|
+
import { UserEntity } from '../Domain/entity/UserEntity';
|
|
9
10
|
export default class BaseViewModel<TResult> {
|
|
10
11
|
get entity(): TResult;
|
|
11
12
|
set entity(value: TResult);
|
|
@@ -36,6 +37,7 @@ export type FunctionDialogEntityToVoid = (dialog: DialogEntity) => void;
|
|
|
36
37
|
export type FunctionTypeFileToToBoolean = (file: File) => Promise<boolean>;
|
|
37
38
|
export type FunctionTypePaginationToVoid = (pagination: Pagination) => void;
|
|
38
39
|
export type FunctionTypeVoidToVoid = () => void;
|
|
40
|
+
export type FunctionTypeUserIdToUserEntity = (id: number) => Promise<UserEntity>;
|
|
39
41
|
export type FunctionTypeStringToVoid = (value: string) => void;
|
|
40
42
|
export type FunctionTypeBooleanToVoid = (value: boolean) => void;
|
|
41
43
|
export type FunctionTypeEditDialogParamsToVoid = (params: EditDialogParams) => void;
|
|
@@ -3,6 +3,7 @@ import { FunctionTypeBooleanToVoid, FunctionTypeMessageEntityToVoid, FunctionTyp
|
|
|
3
3
|
import { MessageEntity } from '../../../../Domain/entity/MessageEntity';
|
|
4
4
|
import UiKitTheme from '../../../themes/UiKitTheme';
|
|
5
5
|
import { AIMessageWidget } from '../AIWidgets/AIMessageWidget';
|
|
6
|
+
import { GetUserNameFct } from './IncomingMessage/IncomingMessage';
|
|
6
7
|
type MessageProps = {
|
|
7
8
|
message: MessageEntity;
|
|
8
9
|
userId: number;
|
|
@@ -14,6 +15,7 @@ type MessageProps = {
|
|
|
14
15
|
AIAssistWidget: AIMessageWidget;
|
|
15
16
|
onReply: FunctionTypeMessageEntityToVoid;
|
|
16
17
|
onForward: FunctionTypeMessageEntityToVoid;
|
|
18
|
+
defaultGetSenderName: GetUserNameFct;
|
|
17
19
|
theme?: UiKitTheme;
|
|
18
20
|
enableForwarding: boolean;
|
|
19
21
|
enableReplying: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import BaseViewModel, { FunctionTypeVoidToVoid } from '../../../../CommonTypes/BaseViewModel';
|
|
1
|
+
import BaseViewModel, { FunctionTypeUserIdToUserEntity, FunctionTypeVoidToVoid } from '../../../../CommonTypes/BaseViewModel';
|
|
2
2
|
import { UserEntity } from '../../../../Domain/entity/UserEntity';
|
|
3
3
|
import { DialogEntity } from '../../../../Domain/entity/DialogEntity';
|
|
4
4
|
export interface UsersListViewModel extends BaseViewModel<DialogEntity> {
|
|
@@ -7,4 +7,5 @@ export interface UsersListViewModel extends BaseViewModel<DialogEntity> {
|
|
|
7
7
|
users: UserEntity[];
|
|
8
8
|
getUsers: FunctionTypeVoidToVoid;
|
|
9
9
|
release: FunctionTypeVoidToVoid;
|
|
10
|
+
getUserById: FunctionTypeUserIdToUserEntity;
|
|
10
11
|
}
|
|
@@ -3,7 +3,7 @@ import './UserAvatar.scss';
|
|
|
3
3
|
import { IconTheme } from '../../../components/UI/svgs/Icons/IconsCommonTypes';
|
|
4
4
|
import { FunctionTypeVoidToVoid } from '../../../../CommonTypes/BaseViewModel';
|
|
5
5
|
type UserAvatarProps = {
|
|
6
|
-
urlAvatar
|
|
6
|
+
urlAvatar?: string;
|
|
7
7
|
iconTheme?: IconTheme;
|
|
8
8
|
clickRemoveAvatarHandler?: FunctionTypeVoidToVoid;
|
|
9
9
|
};
|