@soma-vertical-web/multi-lib 0.0.50 → 0.0.52

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 (50) hide show
  1. package/cms/Sections/Newsletter/Component.d.ts +5 -0
  2. package/cms/index.d.ts +3 -0
  3. package/constants.d.ts +0 -2
  4. package/contexts/contexts/newsletter/Context.d.ts +6 -0
  5. package/contexts/contexts/pdp/PDPDataContext.d.ts +1 -1
  6. package/contexts/contexts/plp/PLPContext.d.ts +1 -1
  7. package/contexts/contexts/search/Facets.d.ts +1 -1
  8. package/contexts/hooks/useDisableZoom.d.ts +1 -0
  9. package/contexts/hooks/useLocalStorage.d.ts +1 -0
  10. package/contexts/hooks/useSentinel.d.ts +11 -0
  11. package/contexts/hooks/useTouchZoomPan.d.ts +8 -0
  12. package/contexts/index.d.ts +31 -3
  13. package/data/api/checkout/order-form/attachments/marketing-data/index.d.ts +1 -1
  14. package/data/api/checkout/order-form/seller-code/index.d.ts +1 -1
  15. package/data/api/master-data/index.d.ts +3 -0
  16. package/data/api/master-data/masterdata/index.d.ts +26 -0
  17. package/data/api/master-data/search/index.d.ts +61 -0
  18. package/data/api/master-data/update/index.d.ts +29 -0
  19. package/data/helpers/events/index.d.ts +1 -1
  20. package/data/helpers/product/thumb.d.ts +2 -2
  21. package/index-CkcBCfzG.js +1 -0
  22. package/index-catAI5a3.mjs +258 -0
  23. package/index.js +26 -26
  24. package/index.mjs +5432 -4716
  25. package/index2.js +1 -1
  26. package/index2.mjs +789 -692
  27. package/layout/index.d.ts +4 -0
  28. package/layout/team-component/Newsletter/Composite/Form.d.ts +7 -0
  29. package/layout/team-component/Newsletter/Composite/FormFields.d.ts +7 -0
  30. package/layout/team-component/Newsletter/Composite/Input.d.ts +7 -0
  31. package/layout/team-component/Newsletter/Composite/SubmitButton.d.ts +8 -0
  32. package/layout/team-component/Newsletter/Composite/Success.d.ts +10 -0
  33. package/layout/team-component/Newsletter/Composite/Terms.d.ts +7 -0
  34. package/layout/team-component/Newsletter/helpers.d.ts +21 -0
  35. package/layout/team-component/Newsletter/index.d.ts +7 -0
  36. package/layout/template/PDP/Composite/Gallery/Wrapper.d.ts +1 -1
  37. package/layout/template/PDP/Composite/Gallery/index.d.ts +1 -1
  38. package/package.json +1 -1
  39. package/server.d.ts +4 -1
  40. package/style.css +1 -1
  41. package/types/cms/ContentTypes/Tipbar/index.d.ts +1 -0
  42. package/types/constants.d.ts +35 -0
  43. package/types/contexts/contexts/pdp.d.ts +3 -1
  44. package/types/contexts/contexts/plp.d.ts +2 -0
  45. package/types/contexts/contexts/search.d.ts +3 -1
  46. package/types/contexts/store/cart.d.ts +3 -0
  47. package/types/data/events/index.d.ts +1 -0
  48. package/types/data/helpers/index.d.ts +5 -1
  49. package/types/layout/team-components/Newsletter/index.d.ts +13 -2
  50. package/types/layout/templates/PDP/index.d.ts +1 -0
@@ -54,6 +54,9 @@ export interface CartContextProps extends CartProviderProps {
54
54
  shippingUpdateOption(options?: ShippingOption[], postalCode?: string, country?: string): void;
55
55
  toggleGiftItemCart(uniqueId: string, idOffering: string, remove: boolean): Promise<boolean | CartItemStore[] | undefined>;
56
56
  updateItemQuantity(productId: string, quantity: number): Promise<string | boolean>;
57
+ removeCoupon(): Promise<void>;
58
+ removeSellerCode(): Promise<void>;
59
+ removeCEP(): Promise<void>;
57
60
  }
58
61
  export interface OptionalOrderForm {
59
62
  clientProfileData?: OrderForm['clientProfileData'];
@@ -56,6 +56,7 @@ export interface EventsFunctionType {
56
56
  storeUrl: string;
57
57
  MAIN_IMAGE: MAIN_IMAGEType;
58
58
  NAME_SPLIT_SYMBOL: NAME_SPLIT_SYMBOLType;
59
+ VENDOR_CODE?: string;
59
60
  };
60
61
  }
61
62
  export type SendDatalayerEventType = {
@@ -1,4 +1,4 @@
1
- import { ItemType_PDP } from '../../global/product';
1
+ import { ImageType, ItemType_PDP } from '../../global/product';
2
2
  import { MAIN_IMAGEType, NAME_SPLIT_SYMBOLType, SECOND_IMAGEType, TEXTURE_IMAGEType } from '../../constants';
3
3
  import { ProductCardProps } from '../../layout/team-components/ProductCard';
4
4
 
@@ -31,3 +31,7 @@ export interface RedirectItem {
31
31
  destination: string;
32
32
  permanent: string;
33
33
  }
34
+ export type GetThumbImageProps = {
35
+ images: ImageType[];
36
+ TEXTURE_IMAGE: TEXTURE_IMAGEType;
37
+ };
@@ -1,5 +1,6 @@
1
1
  import { TFeedbackDefault } from '@soma-vertical-web/foundations';
2
2
  import { Dispatch, FormEvent, HTMLAttributes, MouseEvent, MutableRefObject, PropsWithChildren, SetStateAction } from 'react';
3
+ import { ICONSType, MASTER_DATA_ENTITY, NEWSLETTER_CONFIGS } from '../../../constants';
3
4
 
4
5
  export declare const Variants: readonly ["horizontal", "vertical"];
5
6
  export type Variant = (typeof Variants)[number];
@@ -25,6 +26,10 @@ interface TextCommonProps {
25
26
  description?: string;
26
27
  lgpd?: string;
27
28
  }
29
+ interface BorderCommonProps {
30
+ borderTop?: boolean;
31
+ borderBottom?: boolean;
32
+ }
28
33
  interface RootFormCommonProps {
29
34
  variant?: Variant;
30
35
  formPayloadOptionals?: {
@@ -32,14 +37,14 @@ interface RootFormCommonProps {
32
37
  };
33
38
  masterDataEntity?: string;
34
39
  }
35
- export interface RootProps extends HTMLAttributes<HTMLDivElement>, TextCommonProps, RootFormCommonProps {
40
+ export interface RootProps extends HTMLAttributes<HTMLDivElement>, TextCommonProps, BorderCommonProps, RootFormCommonProps, Pick<NewsletterProviderProps, 'CONSTANTS'> {
36
41
  fields: FieldsProps[];
37
42
  masterDataNameField: string;
38
43
  masterDataEmailField: string;
39
44
  }
40
45
  export interface TextProps extends HTMLAttributes<HTMLDivElement>, Omit<TextCommonProps, 'lgpd'> {
41
46
  }
42
- export interface FormProps extends RootFormCommonProps {
47
+ export interface FormProps extends RootFormCommonProps, Pick<NewsletterProviderProps, 'CONSTANTS'> {
43
48
  }
44
49
  export type MasterDataFieldProps = {
45
50
  [key: string]: FormDataEntryValue;
@@ -60,6 +65,11 @@ export interface NewsletterProviderProps extends PropsWithChildren {
60
65
  masterDataNameField: string;
61
66
  masterDataEmailField: string;
62
67
  variant: Variant;
68
+ CONSTANTS: {
69
+ MASTER_DATA_ENTITY: MASTER_DATA_ENTITY;
70
+ NEWSLETTER_CONFIGS: NEWSLETTER_CONFIGS;
71
+ ICONS: ICONSType;
72
+ };
63
73
  }
64
74
  export interface NewsletterContextProps {
65
75
  formStatus: FormStatus;
@@ -75,5 +85,6 @@ export interface NewsletterContextProps {
75
85
  [key: string]: FormDataEntryValue;
76
86
  } | undefined, masterDataEntity?: string) => void;
77
87
  handleClickToSubmit: (e: MouseEvent<HTMLButtonElement>) => void;
88
+ resetNewsletter: () => void;
78
89
  }
79
90
  export {};
@@ -3,4 +3,5 @@ import { PRODUCT_IMAGE_DIMENSIONSType, TEXTURE_IMAGEType } from '../../../consta
3
3
  export type GalleryProps = {
4
4
  TEXTURE_IMAGE: TEXTURE_IMAGEType;
5
5
  PRODUCT_IMAGE_DIMENSIONS: PRODUCT_IMAGE_DIMENSIONSType;
6
+ ImageZoom: React.ComponentType<any>;
6
7
  };