@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.
- package/cms/Sections/Newsletter/Component.d.ts +5 -0
- package/cms/index.d.ts +3 -0
- package/constants.d.ts +0 -2
- package/contexts/contexts/newsletter/Context.d.ts +6 -0
- package/contexts/contexts/pdp/PDPDataContext.d.ts +1 -1
- package/contexts/contexts/plp/PLPContext.d.ts +1 -1
- package/contexts/contexts/search/Facets.d.ts +1 -1
- package/contexts/hooks/useDisableZoom.d.ts +1 -0
- package/contexts/hooks/useLocalStorage.d.ts +1 -0
- package/contexts/hooks/useSentinel.d.ts +11 -0
- package/contexts/hooks/useTouchZoomPan.d.ts +8 -0
- package/contexts/index.d.ts +31 -3
- package/data/api/checkout/order-form/attachments/marketing-data/index.d.ts +1 -1
- package/data/api/checkout/order-form/seller-code/index.d.ts +1 -1
- package/data/api/master-data/index.d.ts +3 -0
- package/data/api/master-data/masterdata/index.d.ts +26 -0
- package/data/api/master-data/search/index.d.ts +61 -0
- package/data/api/master-data/update/index.d.ts +29 -0
- package/data/helpers/events/index.d.ts +1 -1
- package/data/helpers/product/thumb.d.ts +2 -2
- package/index-CkcBCfzG.js +1 -0
- package/index-catAI5a3.mjs +258 -0
- package/index.js +26 -26
- package/index.mjs +5432 -4716
- package/index2.js +1 -1
- package/index2.mjs +789 -692
- package/layout/index.d.ts +4 -0
- package/layout/team-component/Newsletter/Composite/Form.d.ts +7 -0
- package/layout/team-component/Newsletter/Composite/FormFields.d.ts +7 -0
- package/layout/team-component/Newsletter/Composite/Input.d.ts +7 -0
- package/layout/team-component/Newsletter/Composite/SubmitButton.d.ts +8 -0
- package/layout/team-component/Newsletter/Composite/Success.d.ts +10 -0
- package/layout/team-component/Newsletter/Composite/Terms.d.ts +7 -0
- package/layout/team-component/Newsletter/helpers.d.ts +21 -0
- package/layout/team-component/Newsletter/index.d.ts +7 -0
- package/layout/template/PDP/Composite/Gallery/Wrapper.d.ts +1 -1
- package/layout/template/PDP/Composite/Gallery/index.d.ts +1 -1
- package/package.json +1 -1
- package/server.d.ts +4 -1
- package/style.css +1 -1
- package/types/cms/ContentTypes/Tipbar/index.d.ts +1 -0
- package/types/constants.d.ts +35 -0
- package/types/contexts/contexts/pdp.d.ts +3 -1
- package/types/contexts/contexts/plp.d.ts +2 -0
- package/types/contexts/contexts/search.d.ts +3 -1
- package/types/contexts/store/cart.d.ts +3 -0
- package/types/data/events/index.d.ts +1 -0
- package/types/data/helpers/index.d.ts +5 -1
- package/types/layout/team-components/Newsletter/index.d.ts +13 -2
- 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'];
|
|
@@ -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 {};
|