@trii/components 2.0.31 → 2.0.34
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 +53 -55
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +2 -1
- package/dist/cjs/types/components/EditContactModal/components/Section/General/General.d.ts +1 -0
- package/dist/cjs/types/components/EditContactModal/hooks/useEditContact/types/UseEditContact.d.ts +0 -3
- package/dist/cjs/types/components/EditContactModal/shared/BusinessInfoLabel/BusinessInfoLabel.d.ts +2 -1
- package/dist/cjs/types/components/EditContactModal/shared/ContactInfoLabel/ContactInfoLabel.d.ts +1 -0
- package/dist/cjs/types/components/EditContactModal/shared/ContactInfoLabel/components/index.d.ts +0 -1
- package/dist/cjs/types/components/EditContactModal/shared/EntityCustomFieldLabel/EntityCustomFieldLabel.d.ts +2 -1
- package/dist/cjs/types/components/EditContactModal/shared/EntityInfoLabel/EntityInfoLabel.d.ts +1 -0
- package/dist/esm/index.js +53 -55
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +2 -1
- package/dist/esm/types/components/EditContactModal/components/Section/General/General.d.ts +1 -0
- package/dist/esm/types/components/EditContactModal/hooks/useEditContact/types/UseEditContact.d.ts +0 -3
- package/dist/esm/types/components/EditContactModal/shared/BusinessInfoLabel/BusinessInfoLabel.d.ts +2 -1
- package/dist/esm/types/components/EditContactModal/shared/ContactInfoLabel/ContactInfoLabel.d.ts +1 -0
- package/dist/esm/types/components/EditContactModal/shared/ContactInfoLabel/components/index.d.ts +0 -1
- package/dist/esm/types/components/EditContactModal/shared/EntityCustomFieldLabel/EntityCustomFieldLabel.d.ts +2 -1
- package/dist/esm/types/components/EditContactModal/shared/EntityInfoLabel/EntityInfoLabel.d.ts +1 -0
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ export type AddressInformationProps = {
|
|
|
5
5
|
baseUrl?: string;
|
|
6
6
|
spaceId?: string;
|
|
7
7
|
t: (key: string) => string;
|
|
8
|
+
onEntityUpdated?: (entity: unknown) => void;
|
|
8
9
|
};
|
|
9
|
-
declare const AddressInformation: ({ entityType, entityData, baseUrl, spaceId, t }: AddressInformationProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const AddressInformation: ({ entityType, entityData, baseUrl, spaceId, t, onEntityUpdated, }: AddressInformationProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default AddressInformation;
|
|
@@ -9,6 +9,7 @@ export interface GeneralProps {
|
|
|
9
9
|
spaceId?: string;
|
|
10
10
|
t: (key: string) => string;
|
|
11
11
|
currentUser?: UserTrii | null;
|
|
12
|
+
onEntityUpdated?: (entity: unknown) => void;
|
|
12
13
|
}
|
|
13
14
|
declare const General: (props: GeneralProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export default General;
|
package/dist/esm/types/components/EditContactModal/hooks/useEditContact/types/UseEditContact.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import type { UseMultipleSelectReturnType } from '../../useMultipleSelect';
|
|
|
7
7
|
import type { ILabel } from '@trii/types/dist/Contacts';
|
|
8
8
|
import type { ChannelType } from '@trii/types/dist/Common/Channels';
|
|
9
9
|
import type { Dayjs } from 'dayjs';
|
|
10
|
-
import type { SimplifiedBusiness } from '../../../shared/ContactInfoLabel/components/BusinessSelect/types';
|
|
11
10
|
type UseEditContact = {
|
|
12
11
|
field: {
|
|
13
12
|
imsMercadolibre: IContactAddress[];
|
|
@@ -35,7 +34,6 @@ type UseEditContact = {
|
|
|
35
34
|
secondaryCountry: UseFieldType;
|
|
36
35
|
customProperties: Property[];
|
|
37
36
|
labelMultipleSelect: UseMultipleSelectReturnType<ILabel[]>;
|
|
38
|
-
selectedBusiness: SimplifiedBusiness[];
|
|
39
37
|
};
|
|
40
38
|
action: {
|
|
41
39
|
setCustomProperties: (customProperties: Property[]) => void;
|
|
@@ -50,7 +48,6 @@ type UseEditContact = {
|
|
|
50
48
|
replaceAddress: (addressId: string, newAddress: IContactAddress) => void;
|
|
51
49
|
addWhatsappVerified: (newAddress: IContactAddress) => void;
|
|
52
50
|
setBirthDate: (date: Dayjs | null) => void;
|
|
53
|
-
setSelectedBusiness: (business: SimplifiedBusiness[]) => void;
|
|
54
51
|
resetToInitialContactInformation: () => void;
|
|
55
52
|
resetSelectedBusiness: () => void;
|
|
56
53
|
resetBirthDate: () => void;
|
package/dist/esm/types/components/EditContactModal/shared/BusinessInfoLabel/BusinessInfoLabel.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ type Props = {
|
|
|
10
10
|
baseUrl?: string;
|
|
11
11
|
spaceId?: string;
|
|
12
12
|
businessId?: string;
|
|
13
|
+
onEntityUpdated?: (entity: unknown) => void;
|
|
13
14
|
};
|
|
14
|
-
declare const BusinessInfoLabel: ({ title, value, isNotEditable, inputType, options, displayValue, constructUpdateObject, baseUrl, spaceId, businessId, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare const BusinessInfoLabel: ({ title, value, isNotEditable, inputType, options, displayValue, constructUpdateObject, baseUrl, spaceId, businessId, onEntityUpdated, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export default BusinessInfoLabel;
|
|
@@ -13,6 +13,7 @@ type Props = {
|
|
|
13
13
|
baseUrl?: string;
|
|
14
14
|
spaceId?: string;
|
|
15
15
|
t: (key: string) => string;
|
|
16
|
+
onEntityUpdated?: (entity: unknown) => void;
|
|
16
17
|
};
|
|
17
|
-
declare const EntityCustomFieldLabel: ({ property, entity, entityType, entityId, customContactFields, userTrii, baseUrl, spaceId, t, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare const EntityCustomFieldLabel: ({ property, entity, entityType, entityId, customContactFields, userTrii, baseUrl, spaceId, t, onEntityUpdated, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export default EntityCustomFieldLabel;
|