@soma-vertical-web/multi-lib 0.0.49 → 0.0.51
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/SearchPageScreening-BIyp1dAW.mjs +112 -0
- package/SearchPageScreening-gO7dG13l.js +1 -0
- package/cms/ContentTypes/Search/SearchContentScreening.d.ts +3 -0
- package/cms/Sections/Newsletter/Component.d.ts +5 -0
- package/cms/index.d.ts +5 -0
- package/cms/server.d.ts +1 -0
- package/contexts/contexts/newsletter/Context.d.ts +6 -0
- package/contexts/contexts/pdp/PDPDataContext.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 +29 -1
- 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/cms/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 +5966 -5240
- package/index2.js +1 -1
- package/index2.mjs +846 -835
- package/layout/index.d.ts +5 -1
- package/layout/team-component/Header/Composite/HeaderDesktopWrapper.d.ts +1 -3
- package/layout/team-component/Header/Composite/HeaderMobileWrapper.d.ts +1 -3
- package/layout/team-component/Header/Composite/SearchButton.d.ts +1 -5
- package/layout/team-component/Header/index.d.ts +1 -1
- 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/Search/index.d.ts +31 -0
- package/types/cms/ContentTypes/Tipbar/index.d.ts +1 -0
- package/types/constants.d.ts +34 -0
- package/types/contexts/contexts/pdp.d.ts +3 -1
- package/types/contexts/store/cart.d.ts +3 -0
- package/types/data/api/cms/index.d.ts +2 -1
- package/types/data/events/index.d.ts +1 -0
- package/types/data/helpers/index.d.ts +5 -1
- package/types/layout/team-components/Header/index.d.ts +1 -5
- package/types/layout/team-components/Newsletter/index.d.ts +13 -2
- package/types/layout/templates/PDP/index.d.ts +1 -0
package/types/constants.d.ts
CHANGED
|
@@ -136,3 +136,37 @@ export type StoreConfigType = {
|
|
|
136
136
|
hideUnavailableItems: boolean;
|
|
137
137
|
};
|
|
138
138
|
};
|
|
139
|
+
export type MASTER_DATA_ENTITY = {
|
|
140
|
+
newsletter: string;
|
|
141
|
+
client: string;
|
|
142
|
+
address: string;
|
|
143
|
+
stores: string;
|
|
144
|
+
sellers: string;
|
|
145
|
+
};
|
|
146
|
+
export type NEWSLETTER_CONFIGS = {
|
|
147
|
+
messages: {
|
|
148
|
+
success_title: string;
|
|
149
|
+
success_description: string;
|
|
150
|
+
invalid_name: string;
|
|
151
|
+
invalid_email: string;
|
|
152
|
+
invalid_generic: string;
|
|
153
|
+
required_field: string;
|
|
154
|
+
error: string;
|
|
155
|
+
accept_terms_and_conditions: string;
|
|
156
|
+
terms_and_conditions_not_accepted: string;
|
|
157
|
+
lgpd: string;
|
|
158
|
+
notify: string;
|
|
159
|
+
};
|
|
160
|
+
inputNamePlaceholder: string;
|
|
161
|
+
inputEmailPlaceholder: string;
|
|
162
|
+
submitLabel: string;
|
|
163
|
+
hasTermsAndConditions: boolean;
|
|
164
|
+
hasLoadingState: boolean;
|
|
165
|
+
interactionSizeDesk: string;
|
|
166
|
+
interactionSizeMob: string;
|
|
167
|
+
form: {
|
|
168
|
+
status: {
|
|
169
|
+
error: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
@@ -4,7 +4,7 @@ import { Sizes as BtnSizes } from '@soma-vertical-web/core-components/src/lib/Bu
|
|
|
4
4
|
import { ImageType, ProductType_PDP } from '../../global/product';
|
|
5
5
|
import { TagCommercialConsumer } from '../../cms/ContentTypes/FlagsAndTags';
|
|
6
6
|
import { UseBackPDCProps } from '../hooks';
|
|
7
|
-
import { PDP_INFOType, NAME_SPLIT_SYMBOLType } from '../../constants';
|
|
7
|
+
import { PDP_INFOType, NAME_SPLIT_SYMBOLType, TEXTURE_IMAGEType } from '../../constants';
|
|
8
8
|
|
|
9
9
|
export type SimilarsType = {
|
|
10
10
|
currentSimilarInfo: {
|
|
@@ -83,6 +83,7 @@ export interface SubSectionProps extends PropsWithChildren {
|
|
|
83
83
|
export interface GalleryWrapperProps {
|
|
84
84
|
productImgs: ImageType[];
|
|
85
85
|
PRODUCT_IMAGE_DIMENSIONS: any;
|
|
86
|
+
ImageZoom: React.ComponentType<any>;
|
|
86
87
|
}
|
|
87
88
|
export interface PDPActionsProps {
|
|
88
89
|
showWishlist?: boolean;
|
|
@@ -112,4 +113,5 @@ export interface PDPDataProviderProps extends PropsWithChildren {
|
|
|
112
113
|
isKit: boolean;
|
|
113
114
|
PDP_INFO: PDP_INFOType;
|
|
114
115
|
NAME_SPLIT_SYMBOL: NAME_SPLIT_SYMBOLType;
|
|
116
|
+
TEXTURE_IMAGE: TEXTURE_IMAGEType;
|
|
115
117
|
}
|
|
@@ -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'];
|
|
@@ -5,7 +5,8 @@ export interface ReplaceTargetForPreviewProps extends GetContentTypeProps {
|
|
|
5
5
|
}
|
|
6
6
|
export interface GetContentTypeProps {
|
|
7
7
|
contentType: string;
|
|
8
|
-
NextCookies
|
|
8
|
+
NextCookies?: () => ReadonlyRequestCookies;
|
|
9
|
+
previewId?: string;
|
|
9
10
|
CMS_PROJECT_NAME: string;
|
|
10
11
|
storeId: string;
|
|
11
12
|
}
|
|
@@ -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,5 @@
|
|
|
1
1
|
import { SolidVariantsType, VariantsType } from '@soma-vertical-web/core-components/src/lib/Header/interfaces';
|
|
2
|
-
import {
|
|
2
|
+
import { PropsWithChildren, ReactNode, RefObject } from 'react';
|
|
3
3
|
import { HeaderCategories, HeaderNavLinks } from '../../../cms/ContentTypes/Header';
|
|
4
4
|
import { AddToCartProviderProps } from '../../team-components/AddToCart';
|
|
5
5
|
import { ALIGNMENT_MENUType, COMPONENT_LISTType, ICONSType, MENU_MOB_BTN_SIDEType, MENU_INFOType, MENU_NAVIGATION_BAR_ALLOWEDType, Z_INDEX_WARType, StoreConfigType } from '../../../constants';
|
|
@@ -56,10 +56,6 @@ export type HeaderConfigsType = {
|
|
|
56
56
|
};
|
|
57
57
|
export type HeaderContainerProps = {
|
|
58
58
|
miniCart: ReactNode;
|
|
59
|
-
SearchModal: ComponentType<any>;
|
|
60
59
|
tipBar?: ReactNode;
|
|
61
60
|
};
|
|
62
|
-
export type HeaderWrappersProps = {
|
|
63
|
-
SearchModal: ComponentType<any>;
|
|
64
|
-
};
|
|
65
61
|
export {};
|
|
@@ -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 {};
|