@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.
Files changed (21) hide show
  1. package/dist/cjs/index.js +53 -55
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +2 -1
  4. package/dist/cjs/types/components/EditContactModal/components/Section/General/General.d.ts +1 -0
  5. package/dist/cjs/types/components/EditContactModal/hooks/useEditContact/types/UseEditContact.d.ts +0 -3
  6. package/dist/cjs/types/components/EditContactModal/shared/BusinessInfoLabel/BusinessInfoLabel.d.ts +2 -1
  7. package/dist/cjs/types/components/EditContactModal/shared/ContactInfoLabel/ContactInfoLabel.d.ts +1 -0
  8. package/dist/cjs/types/components/EditContactModal/shared/ContactInfoLabel/components/index.d.ts +0 -1
  9. package/dist/cjs/types/components/EditContactModal/shared/EntityCustomFieldLabel/EntityCustomFieldLabel.d.ts +2 -1
  10. package/dist/cjs/types/components/EditContactModal/shared/EntityInfoLabel/EntityInfoLabel.d.ts +1 -0
  11. package/dist/esm/index.js +53 -55
  12. package/dist/esm/index.js.map +1 -1
  13. package/dist/esm/types/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +2 -1
  14. package/dist/esm/types/components/EditContactModal/components/Section/General/General.d.ts +1 -0
  15. package/dist/esm/types/components/EditContactModal/hooks/useEditContact/types/UseEditContact.d.ts +0 -3
  16. package/dist/esm/types/components/EditContactModal/shared/BusinessInfoLabel/BusinessInfoLabel.d.ts +2 -1
  17. package/dist/esm/types/components/EditContactModal/shared/ContactInfoLabel/ContactInfoLabel.d.ts +1 -0
  18. package/dist/esm/types/components/EditContactModal/shared/ContactInfoLabel/components/index.d.ts +0 -1
  19. package/dist/esm/types/components/EditContactModal/shared/EntityCustomFieldLabel/EntityCustomFieldLabel.d.ts +2 -1
  20. package/dist/esm/types/components/EditContactModal/shared/EntityInfoLabel/EntityInfoLabel.d.ts +1 -0
  21. 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;
@@ -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;
@@ -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 BaseProps = {
13
13
  spaceId?: string;
14
14
  contactId?: string;
15
15
  t: (key: string) => string;
16
+ onEntityUpdated?: (entity: unknown) => void;
16
17
  };
17
18
  type BirthdayProps = BaseProps & {
18
19
  inputType: 'birthday';
@@ -1,2 +1 @@
1
- export { default as BusinessSelect } from './BusinessSelect';
2
1
  export { default as DateSelect } from './DateSelect';
@@ -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;
@@ -9,6 +9,7 @@ type SharedProps = {
9
9
  baseUrl?: string;
10
10
  spaceId?: string;
11
11
  minWidth?: string | number;
12
+ onEntityUpdated?: (entity: unknown) => void;
12
13
  };
13
14
  type ContactBaseProps = SharedProps & {
14
15
  entityType: 'contact';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/components",
3
- "version": "2.0.31",
3
+ "version": "2.0.34",
4
4
  "description": "Trii components package",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",