@trii/components 2.0.84 → 2.0.85
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/cjs/index.js +9 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +10 -10
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/types/components/EventsDialog/hooks/useEvent.d.ts +2 -16
- package/dist/types/components/EventsDialog/hooks/useTask.d.ts +1 -4
- package/dist/types/components/EventsDialog/types.d.ts +2 -10
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { IContact, IBusiness } from '@trii/types/dist/Contacts';
|
|
3
|
+
import { Spaces } from '@trii/types';
|
|
3
4
|
import { SxProps, Theme } from '@mui/material';
|
|
4
5
|
import { IContact as IContact$1, IBusiness as IBusiness$1 } from '@trii/types/dist/Contacts/contacts';
|
|
5
6
|
import React from 'react';
|
|
@@ -17,6 +18,7 @@ interface ContactInfoPopupProps {
|
|
|
17
18
|
avatarImgUrl?: string;
|
|
18
19
|
sx?: SxProps<Theme>;
|
|
19
20
|
navigate: (path: string) => void;
|
|
21
|
+
contactNameFormat?: Spaces.nameFormat;
|
|
20
22
|
}
|
|
21
23
|
declare const ContactInfoPopup: (props: ContactInfoPopupProps) => react_jsx_runtime.JSX.Element;
|
|
22
24
|
|
|
@@ -31,6 +33,7 @@ interface Props {
|
|
|
31
33
|
navigate: (path: string) => void;
|
|
32
34
|
googleMapsApiKey?: string;
|
|
33
35
|
onEntityUpdated?: (entity: IContact$1 | IBusiness$1) => void;
|
|
36
|
+
contactNameFormat?: Spaces.nameFormat;
|
|
34
37
|
}
|
|
35
38
|
declare const EditContactModal: (props: Props) => react_jsx_runtime.JSX.Element;
|
|
36
39
|
|
|
@@ -22,7 +22,7 @@ export interface SelectedContact {
|
|
|
22
22
|
export interface UseLinkContact {
|
|
23
23
|
state: {
|
|
24
24
|
search: string;
|
|
25
|
-
|
|
25
|
+
selectedContact: SelectedContact | null;
|
|
26
26
|
};
|
|
27
27
|
action: {
|
|
28
28
|
handleSelectContact: (contact: IContact) => void;
|
|
@@ -31,15 +31,6 @@ export interface UseLinkContact {
|
|
|
31
31
|
resetField: () => void;
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
export interface UseShareWithUsers {
|
|
35
|
-
field: {
|
|
36
|
-
userIds: string[];
|
|
37
|
-
};
|
|
38
|
-
action: {
|
|
39
|
-
setUserIds: (ids: string[]) => void;
|
|
40
|
-
resetField: () => void;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
34
|
export interface UseEvent {
|
|
44
35
|
titleField: UseFieldType;
|
|
45
36
|
descriptionField: UseFieldType;
|
|
@@ -53,7 +44,6 @@ export interface UseEvent {
|
|
|
53
44
|
recurrenceRule: string;
|
|
54
45
|
setRecurrenceRule: (rule: string) => void;
|
|
55
46
|
notifications: UseNotificationsType;
|
|
56
|
-
shareWithUsers: UseShareWithUsers;
|
|
57
47
|
linkContact: UseLinkContact;
|
|
58
48
|
create: () => {
|
|
59
49
|
title: string;
|
|
@@ -65,12 +55,8 @@ export interface UseEvent {
|
|
|
65
55
|
startAt: string;
|
|
66
56
|
endAt: string;
|
|
67
57
|
notifications: any[];
|
|
68
|
-
sharedWith: string[];
|
|
69
58
|
rule: string;
|
|
70
|
-
|
|
71
|
-
id: string;
|
|
72
|
-
name: string;
|
|
73
|
-
};
|
|
59
|
+
contactId: string | null;
|
|
74
60
|
};
|
|
75
61
|
resetFields: () => void;
|
|
76
62
|
}
|
|
@@ -52,7 +52,6 @@ export interface EventData {
|
|
|
52
52
|
rule?: string;
|
|
53
53
|
notifications?: Notification[];
|
|
54
54
|
relatedContactId?: string;
|
|
55
|
-
sharedWith?: string[];
|
|
56
55
|
}
|
|
57
56
|
/**
|
|
58
57
|
* Datos de una tarea
|
|
@@ -83,10 +82,7 @@ export type AddActivityRequestData = {
|
|
|
83
82
|
endAt: Date;
|
|
84
83
|
allDay: boolean;
|
|
85
84
|
notifications: EventNotificationFront[];
|
|
86
|
-
|
|
87
|
-
id: string;
|
|
88
|
-
name: string;
|
|
89
|
-
};
|
|
85
|
+
contactId?: string | null;
|
|
90
86
|
title: string;
|
|
91
87
|
details: string;
|
|
92
88
|
location: string;
|
|
@@ -94,7 +90,6 @@ export type AddActivityRequestData = {
|
|
|
94
90
|
eventTypeId: string;
|
|
95
91
|
calendarId: string;
|
|
96
92
|
repeatId: string;
|
|
97
|
-
sharedWith: string[];
|
|
98
93
|
rule?: string;
|
|
99
94
|
originalOccurrenceDate?: Date | string;
|
|
100
95
|
};
|
|
@@ -110,10 +105,7 @@ export type AddTaskRequestData = {
|
|
|
110
105
|
calendarId: string;
|
|
111
106
|
startAt: string;
|
|
112
107
|
description?: string;
|
|
113
|
-
|
|
114
|
-
id: string;
|
|
115
|
-
name: string;
|
|
116
|
-
};
|
|
108
|
+
contactId?: string | null;
|
|
117
109
|
};
|
|
118
110
|
/** Payload para actualizar una tarea */
|
|
119
111
|
export type UpdateTaskRequestData = {
|