@soma-vertical-web/multi-lib 0.0.75 → 1.0.0

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 (117) hide show
  1. package/SearchPageScreening-BryoK-U4.js +4 -0
  2. package/SearchPageScreening-DER0_wzr.mjs +1812 -0
  3. package/cms/ContentTypes/Cart/index.d.ts +3 -0
  4. package/cms/ContentTypes/CommonPage/CommonPage.d.ts +1 -1
  5. package/cms/ContentTypes/FlagsAndTags/index.d.ts +3 -0
  6. package/cms/ContentTypes/Footer/Footer.d.ts +1 -1
  7. package/cms/ContentTypes/HelpButton/HelpButtonContent.d.ts +1 -1
  8. package/cms/ContentTypes/LPCadastro/LPCadastroContent.d.ts +1 -1
  9. package/cms/ContentTypes/PDP/PDPContent.d.ts +1 -1
  10. package/cms/ContentTypes/PLP/PLPContent.d.ts +1 -1
  11. package/cms/ContentTypes/{Redirects → PLP/Redirects}/Redirects.d.ts +1 -1
  12. package/cms/ContentTypes/Search/SearchContent.d.ts +1 -1
  13. package/cms/Sections/Banner/Composite/Content.d.ts +1 -1
  14. package/cms/Sections/SectionZone.d.ts +1 -1
  15. package/cms/Sections/TextAccordion/Component.d.ts +1 -1
  16. package/cms/Sections/TextContent/Component.d.ts +1 -1
  17. package/cms/Sections/TextContent/Composite/ContentWrapper.d.ts +1 -1
  18. package/cms/index.d.ts +4 -4
  19. package/cms/server.d.ts +8 -6
  20. package/contexts/contexts/Session.d.ts +1 -1
  21. package/contexts/contexts/cart/Context.d.ts +1 -1
  22. package/contexts/contexts/cms/FlagsAndTagsContext.d.ts +3 -5
  23. package/contexts/hooks/useOperations.d.ts +3 -2
  24. package/contexts/index.d.ts +5 -15
  25. package/data/api/checkout/region/index.d.ts +1 -1
  26. package/data/api/cms/index.d.ts +10 -11
  27. package/data/helpers/cart/index.d.ts +62 -13
  28. package/data/helpers/cms/index.d.ts +9 -10
  29. package/data/helpers/utils/cms.d.ts +4 -0
  30. package/index.js +17 -41
  31. package/index.mjs +10194 -11375
  32. package/index2.js +1 -1
  33. package/index2.mjs +786 -744
  34. package/layout/index.d.ts +12 -10
  35. package/layout/team-component/Footer/Footer.d.ts +1 -1
  36. package/layout/team-component/Header/Composite/HeaderMobileWrapper.d.ts +1 -2
  37. package/layout/team-component/Header/index.d.ts +1 -1
  38. package/layout/team-component/ProductCard/Composite/Selectors/SizeSelector.d.ts +1 -1
  39. package/layout/team-component/ProductCard/ProductCard.d.ts +1 -1
  40. package/layout/team-component/Timer/index.d.ts +1 -1
  41. package/layout/team-component/UserMenu/index.d.ts +1 -1
  42. package/layout/template/MiniCart/Composite/Card/Composite/Sku.d.ts +1 -1
  43. package/layout/template/MiniCart/Composite/Card/index.d.ts +1 -1
  44. package/layout/template/MiniCart/Composite/Modal/Body/Body.d.ts +7 -0
  45. package/layout/template/MiniCart/Composite/Modal/Body/CouponTag/CouponTag.d.ts +9 -0
  46. package/layout/template/MiniCart/Composite/Modal/Body/CouponTag/index.d.ts +1 -0
  47. package/layout/template/MiniCart/Composite/Modal/Body/Promotion/Promotion.d.ts +9 -0
  48. package/layout/template/MiniCart/Composite/Modal/Body/Promotion/helper.d.ts +5 -0
  49. package/layout/template/MiniCart/Composite/Modal/Body/Promotion/index.d.ts +1 -0
  50. package/layout/template/MiniCart/Composite/Modal/Body/index.d.ts +1 -0
  51. package/layout/template/MiniCart/Composite/Modal/Footer/Discount/Discount.d.ts +1 -1
  52. package/layout/template/MiniCart/Composite/Modal/Footer/Resume/Totals.d.ts +1 -5
  53. package/layout/template/MiniCart/Composite/Notifications/Notifications.d.ts +1 -1
  54. package/layout/template/MiniCart/MiniCart.d.ts +1 -1
  55. package/layout/template/MiniCart/index.d.ts +3 -5
  56. package/layout/template/PDC/Composite/Products/Products.d.ts +1 -1
  57. package/layout/template/PDC/index.d.ts +1 -1
  58. package/layout/template/PDP/Composite/Info/MainContent/Actions/index.d.ts +1 -1
  59. package/layout/template/PDP/Composite/Info/MainContent/BottomNavigation/index.d.ts +1 -1
  60. package/layout/template/PDP/Composite/Info/MainContent/Header/GoldenTag.d.ts +9 -0
  61. package/layout/template/PDP/index.d.ts +2 -1
  62. package/layout/template/QuickShop/Composite/Body.d.ts +1 -1
  63. package/layout/template/SearchModal/Composite/AutoComplete.d.ts +7 -0
  64. package/layout/template/SearchModal/Composite/Header.d.ts +3 -0
  65. package/layout/template/SearchModal/Composite/Recommendations.d.ts +3 -0
  66. package/layout/template/SearchModal/Composite/Trends.d.ts +4 -0
  67. package/layout/template/SearchModal/SearchModal.d.ts +7 -0
  68. package/layout/template/SearchModal/helpers.d.ts +3 -0
  69. package/layout/template/SearchModal/index.d.ts +1 -0
  70. package/package.json +1 -1
  71. package/style.css +1 -1
  72. package/types/cms/ContentTypes/Cart/index.d.ts +46 -0
  73. package/types/cms/ContentTypes/CommonPage/index.d.ts +5 -4
  74. package/types/cms/ContentTypes/FlagsAndTags/index.d.ts +18 -9
  75. package/types/cms/ContentTypes/Footer/index.d.ts +7 -5
  76. package/types/cms/ContentTypes/Header/index.d.ts +4 -4
  77. package/types/cms/ContentTypes/HelpButton/index.d.ts +5 -6
  78. package/types/cms/ContentTypes/PDP/index.d.ts +6 -6
  79. package/types/cms/ContentTypes/PLP/index.d.ts +7 -6
  80. package/types/cms/ContentTypes/Redirects/index.d.ts +2 -2
  81. package/types/cms/ContentTypes/Search/index.d.ts +7 -7
  82. package/types/cms/ContentTypes/Tipbar/index.d.ts +4 -3
  83. package/types/cms/Sections/Banner/index.d.ts +3 -5
  84. package/types/cms/Sections/BannerCarousel/index.d.ts +2 -3
  85. package/types/cms/Sections/BennefitsBar/index.d.ts +2 -6
  86. package/types/cms/Sections/Newsletter/index.d.ts +2 -7
  87. package/types/cms/Sections/ProductCarousel/index.d.ts +5 -29
  88. package/types/cms/Sections/SectionZone/index.d.ts +81 -0
  89. package/types/cms/Sections/TextContent/index.d.ts +5 -2
  90. package/types/constants.d.ts +36 -0
  91. package/types/contexts/contexts/pdp.d.ts +2 -1
  92. package/types/contexts/contexts/plp.d.ts +3 -1
  93. package/types/contexts/store/cart.d.ts +12 -0
  94. package/types/data/api/checkout/order-form/index.d.ts +19 -0
  95. package/types/data/api/cms/index.d.ts +5 -4
  96. package/types/data/api/index.d.ts +1 -1
  97. package/types/layout/team-components/BuyPackage/index.d.ts +2 -20
  98. package/types/layout/team-components/Footer/index.d.ts +2 -0
  99. package/types/layout/team-components/Header/index.d.ts +3 -2
  100. package/types/layout/team-components/ProductCard/Selectors/index.d.ts +2 -0
  101. package/types/layout/team-components/ProductCard/index.d.ts +2 -1
  102. package/types/layout/team-components/ProductList/index.d.ts +3 -1
  103. package/types/layout/team-components/Timer/index.d.ts +8 -1
  104. package/types/layout/team-components/UserMenu/index.d.ts +3 -1
  105. package/types/layout/templates/LPCadastro/index.d.ts +5 -4
  106. package/types/layout/templates/MiniCart/index.d.ts +7 -1
  107. package/types/layout/templates/PDP/index.d.ts +4 -2
  108. package/types/layout/templates/PLP/index.d.ts +2 -1
  109. package/types/layout/templates/QuickShop/index.d.ts +2 -1
  110. package/types/layout/templates/SearchModal/index.d.ts +42 -0
  111. package/data/api/cms/backup/index.d.ts +0 -11
  112. package/index-BBxYNFkz.mjs +0 -416
  113. package/index-BR_9YNfn.mjs +0 -421
  114. package/index-CwBIv223.js +0 -1
  115. package/index-DL877zTH.js +0 -1
  116. package/layout/template/MiniCart/Composite/Modal/Body.d.ts +0 -7
  117. package/types/cms/Sections/SectionZone/intex.d.ts +0 -64
@@ -3,6 +3,7 @@ import { EditorState } from 'draft-js';
3
3
  import { CSSProperties } from 'react';
4
4
  import { FACET_CROSS_SELLING_MAP, ObjectFitsDefault, PLP_FILTERS_SORT } from '../constants';
5
5
  import { VariantsExtended } from '@soma-vertical-web/core-components/src/lib/Button/interfaces';
6
+ import { ToggleSizeProps } from '@soma-vertical-web/core-components/src/lib/ToggleSize/interfaces';
6
7
 
7
8
  export interface CrossSellingFacet {
8
9
  key: keyof typeof FACET_CROSS_SELLING_MAP;
@@ -13,6 +14,7 @@ export interface CrossSellingFacet {
13
14
  */
14
15
  export type InputSizes = Exclude<Size, 'textarea-size'>;
15
16
  export type ACCESSIBILITY_INFOType = boolean;
17
+ export type ACTIVE_BENNEFITS_BAR_TITLEType = boolean;
16
18
  export type ADD_TO_CARTType = Record<string, Record<string, string>>;
17
19
  export type ALIGNMENT_MENUType = 'flex-start' | 'center' | 'flex-end';
18
20
  export type AUTH_TOKEN_COOKIEType = string;
@@ -99,6 +101,12 @@ export type MINICART_CONFIGType = {
99
101
  promo_code_button: string;
100
102
  giftPackage: string;
101
103
  };
104
+ product_card: {
105
+ sku: {
106
+ size: ToggleSizeProps['size'];
107
+ variation: ToggleSizeProps['variation'];
108
+ };
109
+ };
102
110
  };
103
111
  export type NAME_SPLIT_SYMBOLType = string;
104
112
  export type NEWSLETTER_CONFIGSType = {
@@ -209,6 +217,30 @@ export type PRODUCT_IMAGE_DIMENSIONSType = {
209
217
  export type QUICKSHOPType = {
210
218
  title: string;
211
219
  };
220
+ export type SEARCH_MODALType = {
221
+ HEADER: {
222
+ TITLE: string;
223
+ };
224
+ AUTOCOMPLETE: {
225
+ PLACEHOLDER: string;
226
+ NO_RESULTS: {
227
+ NO_RESULTS_TERM_TEXT: string;
228
+ NO_RESULTS_TERM_URL: string;
229
+ };
230
+ };
231
+ EMPTY: {
232
+ ALL_TERMS: string;
233
+ ALL_TERMS_LABEL: string;
234
+ NOT_FOUND: string;
235
+ NOT_FOUND_P: string;
236
+ };
237
+ TRENDS: {
238
+ TITLE: string;
239
+ ALL_TERMS_URL: string;
240
+ ALL_TERMS_LABEL: string;
241
+ QTY_TERMS: number;
242
+ };
243
+ };
212
244
  export type SEARCH_PAGE_ITEM_THRESHOLDType = number;
213
245
  export type SEARCH_RESULTType = {
214
246
  EMPTY: {
@@ -328,6 +360,10 @@ export type NEWSLETTER_CONFIGS = {
328
360
  };
329
361
  };
330
362
  };
363
+ export type TEXTCONTENT_EXPANDEDType = {
364
+ less: string;
365
+ more: string;
366
+ };
331
367
  export type WISHLIST_INFOType = {
332
368
  messages: {
333
369
  add: string;
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { ImageType, ProductType_PDP } from '../../global/product';
3
- import { TagCommercialConsumer } from '../../cms/ContentTypes/FlagsAndTags';
3
+ import { FlagGoldenPdp, TagCommercialConsumer } from '../../cms/ContentTypes/FlagsAndTags';
4
4
  import { UseBackPDCProps } from '../hooks';
5
5
  import { PDP_INFOType, NAME_SPLIT_SYMBOLType, TEXTURE_IMAGEType } from '../../constants';
6
6
 
@@ -48,6 +48,7 @@ export type PDPDataContextProps = {
48
48
  icon: string;
49
49
  };
50
50
  flagPdp?: TagCommercialConsumer;
51
+ flagGoldenPdp?: FlagGoldenPdp;
51
52
  };
52
53
  items: ProductType_PDP['items'];
53
54
  sizes: Sizes;
@@ -3,7 +3,7 @@ import { ProductSearchResultPage } from '../../data/api/search/product';
3
3
  import { State } from '../../data/api/search';
4
4
  import { BannerType } from '../../cms/Sections/Banner';
5
5
  import { HasVariant, ProductType_PDC } from '../../global/product';
6
- import { BUY_BUTTON_LABELSType, ICONSType, ITEMS_DEFAULT_SORTType, ITEMS_PER_PAGEType, ITEMS_PER_SECTIONType, MAIN_IMAGEType, NEWSLETTER_CONFIGSType, NOTIFY_INFOType, PDC_NAVIGATIONType, PLP_FILTERS_COLORSType, PLP_FILTERS_EMPTYType, PLP_FILTERS_TITLEType, PLP_FILTERSType, PLP_GRID_SCROLL_BACKType, PLP_INFINITE_SCROLLType, PLP_NOT_RESULTType, PLP_PRODUCT_SIMILAR_DELAYType, PLP_SHOW_VIDEO_ON_PRODUCT_CARDType, PLP_SIZE_ORDERType, PLP_SORT_DEFAULTType, PRODUCT_CARD_IMAGE_ASPECT_RATIOType, PRODUCT_CARD_TEXTSType, PRODUCT_CARD_TOP_WISHLIST_TOGGLEType, PRODUCT_IMAGE_DIMENSIONSType, SEARCH_PAGE_ITEM_THRESHOLDType, SEARCH_TOTAL_PORTAL_IDType, SECOND_IMAGEType, StoreConfigType, TEXTURE_IMAGEType, VARIANT_PAGINATIONType, Z_INDEX_WARType } from '../../constants';
6
+ import { BUY_BUTTON_LABELSType, ICONSType, ITEMS_DEFAULT_SORTType, ITEMS_PER_PAGEType, ITEMS_PER_SECTIONType, MAIN_IMAGEType, NEWSLETTER_CONFIGSType, NOTIFY_INFOType, PDC_NAVIGATIONType, PLP_FILTERS_COLORSType, PLP_FILTERS_EMPTYType, PLP_FILTERS_TITLEType, PLP_FILTERSType, PLP_GRID_SCROLL_BACKType, PLP_INFINITE_SCROLLType, PLP_NOT_RESULTType, PLP_PRODUCT_SIMILAR_DELAYType, PLP_SHOW_VIDEO_ON_PRODUCT_CARDType, PLP_SIZE_ORDERType, PLP_SORT_DEFAULTType, PRODUCT_CARD_IMAGE_ASPECT_RATIOType, PRODUCT_CARD_TEXTSType, PRODUCT_CARD_TOP_WISHLIST_TOGGLEType, PRODUCT_IMAGE_DIMENSIONSType, SEARCH_PAGE_ITEM_THRESHOLDType, SEARCH_TOTAL_PORTAL_IDType, SECOND_IMAGEType, StoreConfigType, TEXTCONTENT_EXPANDEDType, TEXTURE_IMAGEType, TIME_ZONEType, VARIANT_PAGINATIONType, Z_INDEX_WARType } from '../../constants';
7
7
 
8
8
  export type PLPBanners = ({
9
9
  columns: number;
@@ -89,6 +89,8 @@ export interface PLPConstantsProviderProps extends PropsWithChildren {
89
89
  SEARCH_TOTAL_PORTAL_ID: SEARCH_TOTAL_PORTAL_IDType;
90
90
  SECOND_IMAGE: SECOND_IMAGEType;
91
91
  TEXTURE_IMAGE: TEXTURE_IMAGEType;
92
+ TEXTCONTENT_EXPANDED?: TEXTCONTENT_EXPANDEDType;
93
+ TIME_ZONE: TIME_ZONEType;
92
94
  VARIANT_PAGINATION: VARIANT_PAGINATIONType;
93
95
  Z_INDEX_WAR: Z_INDEX_WARType;
94
96
  StoreConfig_MainSellerId: StoreConfigType['mainSeller']['id'];
@@ -4,6 +4,7 @@ import { ShippingOption, ShippingData } from '../../data/api/checkout/order-form
4
4
  import { SearchProduct, SearchSort } from '../../data/api/search';
5
5
  import { ItemType_APICatalog } from '../../global/product';
6
6
  import { MAIN_IMAGEType } from '../../constants';
7
+ import { ICartContent } from '../../cms/ContentTypes/Cart';
7
8
 
8
9
  /**
9
10
  * TODO: Fix notification type
@@ -25,9 +26,18 @@ export interface AddToCart {
25
26
  id: string;
26
27
  index?: number;
27
28
  }
29
+ export interface CartPromotionRules {
30
+ promotionId: string;
31
+ valueType: string;
32
+ totalValueToActivate: number;
33
+ remainingValueToActivate: number;
34
+ completeness: number;
35
+ isCompleted: boolean;
36
+ }
28
37
  export interface CartProviderProps extends PropsWithChildren {
29
38
  SELLER_CODE_VALIDATION_KEYS: Record<string, string>;
30
39
  CARTPROVIDER_MESSAGE_PRODUCT_REMOVE?: string;
40
+ data?: ICartContent;
31
41
  }
32
42
  export type CodeResponseStatus = {
33
43
  code?: number | string;
@@ -58,6 +68,8 @@ export interface CartContextProps extends Omit<CartProviderProps, 'SELLER_CODE_V
58
68
  removeCoupon(): Promise<void>;
59
69
  removeSellerCode(): Promise<void>;
60
70
  removeCEP(): Promise<void>;
71
+ promotionRules: CartPromotionRules | null;
72
+ setPromotionRules(rules: CartPromotionRules | null): void;
61
73
  }
62
74
  export interface OptionalOrderForm {
63
75
  clientProfileData?: OrderForm['clientProfileData'];
@@ -307,3 +307,22 @@ export interface Total {
307
307
  name: string;
308
308
  value: number;
309
309
  }
310
+ export interface SelectedAddress {
311
+ addressId?: string | null;
312
+ addressType?: string | null;
313
+ receiverName?: string | null;
314
+ postalCode?: string | null;
315
+ city?: string | null;
316
+ state?: string | null;
317
+ country?: string | null;
318
+ street?: string | null;
319
+ number?: string | null;
320
+ neighborhood?: string | null;
321
+ complement?: string | null;
322
+ reference?: string | null;
323
+ geoCoordinates?: GeoCoordinates | GLfloat[] | null | [];
324
+ }
325
+ export interface GeoCoordinates {
326
+ latitude: GLfloat;
327
+ longitude: GLfloat;
328
+ }
@@ -1,16 +1,17 @@
1
- import { ReadonlyRequestCookies } from 'next/dist/server/web/spec-extension/adapters/request-cookies';
2
-
3
1
  export interface ReplaceTargetForPreviewProps extends GetContentTypeProps {
4
2
  documents: Array<any>;
5
3
  }
6
4
  export interface GetContentTypeProps {
7
5
  contentType: string;
8
- NextCookies?: () => ReadonlyRequestCookies;
9
6
  previewId?: string;
7
+ previewMode?: boolean;
10
8
  CMS_PROJECT_NAME: string;
11
9
  storeId: string;
12
10
  }
13
- export interface GetCMSContentTypeProps extends Omit<GetContentTypeProps, 'NextCookies' | 'contentType'> {
11
+ export interface GetContentTypeParams extends Omit<GetContentTypeProps, 'contentType' | 'CMS_PROJECT_NAME'> {
12
+ name: string;
13
+ }
14
+ export interface GetCMSContentTypeProps extends Omit<GetContentTypeProps, 'contentType'> {
14
15
  contentType: string | null;
15
16
  documentId?: string | null;
16
17
  versionId?: string | null;
@@ -1,5 +1,5 @@
1
1
  export interface FetchOptions {
2
- method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
2
+ method?: RequestInit['method'];
3
3
  body?: Record<string, unknown>;
4
4
  headers?: Record<string, string>;
5
5
  skipSanitize?: boolean;
@@ -1,4 +1,4 @@
1
- import { BUY_BUTTON_LABELSType, BUY_PACKAGEType, FREIGHT_CALCULATIONType, ICONSType, MAIN_IMAGEType, PLP_GRID_SCROLL_BACKType, PLP_INFINITE_SCROLLType, PLP_SHOW_VIDEO_ON_PRODUCT_CARDType, PRODUCT_CARD_IMAGE_ASPECT_RATIOType, PRODUCT_CARD_TEXTSType, PRODUCT_CARD_TOP_WISHLIST_TOGGLEType, PRODUCT_IMAGE_DIMENSIONSType, SECOND_IMAGEType, StoreConfigType, TEXTURE_IMAGEType, Z_INDEX_WARType } from '../../../constants';
1
+ import { ProductCarouselConstants } from '../../../cms/Sections/SectionZone/index';
2
2
  import { ProductType_PDC, HasVariant, ProductNode_PDC } from '../../../global/product';
3
3
 
4
4
  export interface SelectedItemType {
@@ -26,28 +26,10 @@ export interface CarouselPagination {
26
26
  /**
27
27
  * TODO: remover wishlist comp as props
28
28
  */
29
- export interface BuyPackageProps {
29
+ export interface BuyPackageProps extends ProductCarouselConstants {
30
30
  inView: boolean;
31
31
  products: ProductNode_PDC[];
32
32
  innerRef: (node?: Element | null) => void;
33
- CONSTANTS: {
34
- BUY_BUTTON_LABELS: BUY_BUTTON_LABELSType;
35
- BUY_PACKAGE: BUY_PACKAGEType;
36
- FREIGHT_CALCULATION: FREIGHT_CALCULATIONType;
37
- ICONS: ICONSType;
38
- MAIN_IMAGE: MAIN_IMAGEType;
39
- PLP_GRID_SCROLL_BACK: PLP_GRID_SCROLL_BACKType;
40
- PLP_INFINITE_SCROLL: PLP_INFINITE_SCROLLType;
41
- PLP_SHOW_VIDEO_ON_PRODUCT_CARD: PLP_SHOW_VIDEO_ON_PRODUCT_CARDType;
42
- PRODUCT_CARD_IMAGE_ASPECT_RATIO: PRODUCT_CARD_IMAGE_ASPECT_RATIOType;
43
- PRODUCT_CARD_TEXTS: PRODUCT_CARD_TEXTSType;
44
- PRODUCT_CARD_TOP_WISHLIST_TOGGLE: PRODUCT_CARD_TOP_WISHLIST_TOGGLEType;
45
- PRODUCT_IMAGE_DIMENSIONS: PRODUCT_IMAGE_DIMENSIONSType;
46
- SECOND_IMAGE: SECOND_IMAGEType;
47
- StoreConfig_MainSellerId: StoreConfigType['mainSeller']['id'];
48
- TEXTURE_IMAGE: TEXTURE_IMAGEType;
49
- Z_INDEX_WAR: Z_INDEX_WARType;
50
- };
51
33
  }
52
34
  export interface BuyPackageProductCardProps {
53
35
  item: ProductType_PDC;
@@ -4,6 +4,7 @@ import { HTMLAttributes, ReactNode } from 'react';
4
4
  import { ICONSType } from '../../../constants';
5
5
 
6
6
  export interface IFooter {
7
+ className?: string;
7
8
  data: IFooterContent;
8
9
  adornment?: Omit<IAdornment, 'start' | 'end'>;
9
10
  payments?: PaymentInfo;
@@ -14,6 +15,7 @@ export interface IFooter {
14
15
  }>;
15
16
  LEGAL_INFORMATION_TEXT: string;
16
17
  ICONS: ICONSType;
18
+ hasFooterStamps?: boolean;
17
19
  }
18
20
  export interface IFooterProps extends HTMLAttributes<HTMLDivElement> {
19
21
  children: ReactNode;
@@ -2,7 +2,7 @@ import { SolidVariantsType, VariantsType } from '@soma-vertical-web/core-compone
2
2
  import { Dispatch, PropsWithChildren, ReactNode, RefObject, SetStateAction } from 'react';
3
3
  import { HeaderCategories, HeaderNavLinks } from '../../../cms/ContentTypes/Header';
4
4
  import { AddToCartProviderProps } from '../../team-components/AddToCart';
5
- import { ALIGNMENT_MENUType, COMPONENT_LISTType, ICONSType, MENU_MOB_BTN_SIDEType, MENU_INFOType, MENU_NAVIGATION_BAR_ALLOWEDType, Z_INDEX_WARType, StoreConfigType, MINICART_CONFIGType, NAME_SPLIT_SYMBOLType, PLP_NOT_RESULTType, TEXTURE_IMAGEType, TOGGLE_STYLE_MODIFIERType } from '../../../constants';
5
+ import { ALIGNMENT_MENUType, COMPONENT_LISTType, ICONSType, MENU_MOB_BTN_SIDEType, MENU_INFOType, MENU_NAVIGATION_BAR_ALLOWEDType, Z_INDEX_WARType, StoreConfigType, MINICART_CONFIGType, NAME_SPLIT_SYMBOLType, PLP_NOT_RESULTType, TEXTURE_IMAGEType, TOGGLE_STYLE_MODIFIERType, TIPBAR_CONFIGSType } from '../../../constants';
6
6
  import { DataSubmenu } from '../../../cms/Sections/HeaderSubmenu';
7
7
 
8
8
  export type HeaderPositionsType = 'absolute' | 'relative';
@@ -23,6 +23,7 @@ type HEADER_CONSTANTS = {
23
23
  MINICART_CONFIG: MINICART_CONFIGType;
24
24
  NAME_SPLIT_SYMBOL: NAME_SPLIT_SYMBOLType;
25
25
  PLP_NOT_RESULT: PLP_NOT_RESULTType;
26
+ TIPBAR_CONFIGS: TIPBAR_CONFIGSType;
26
27
  TEXTURE_IMAGE: TEXTURE_IMAGEType;
27
28
  TOGGLE_STYLE_MODIFIER: TOGGLE_STYLE_MODIFIERType;
28
29
  Z_INDEX_WAR: Z_INDEX_WARType;
@@ -75,6 +76,6 @@ export interface HeaderContainerProps {
75
76
  minicartStyleModifiers?: string;
76
77
  menuV2?: ReactNode;
77
78
  storeConfig: StoreConfigType;
78
- SearchModal: React.ComponentType<any>;
79
+ className?: string;
79
80
  }
80
81
  export {};
@@ -2,6 +2,7 @@ import { ToggleSizeProps } from '@soma-vertical-web/core-components/src/lib/Togg
2
2
  import { HasVariant, ProductType_PDC } from '../../../../global/product';
3
3
  import { HTMLAttributes } from 'react';
4
4
  import { SimilarType } from '../../../../data/api/catalog/product';
5
+ import { PLP_SIZE_ORDERType } from '../../../../../types/constants';
5
6
 
6
7
  export interface ProductSize {
7
8
  label: string;
@@ -25,6 +26,7 @@ export interface SizeSelectorItemProps extends HTMLAttributes<HTMLButtonElement>
25
26
  export interface SizeSelectorProps extends HTMLAttributes<HTMLDivElement>, Pick<SizeSkuItemProps, 'setNotify'> {
26
27
  isMobile?: boolean;
27
28
  callback?(item: HasVariant | null): void;
29
+ PLP_SIZE_ORDER: PLP_SIZE_ORDERType;
28
30
  }
29
31
  export interface StyleSelectorItemProps extends Pick<ToggleSizeProps, 'size'>, Pick<StyleSelectorProps, 'callback'> {
30
32
  active?: boolean;
@@ -3,7 +3,7 @@ import { Dispatch, HTMLAttributes, PropsWithChildren, RefObject, SetStateAction
3
3
  import { TagProps } from '@soma-vertical-web/core-components/src/lib/Tag/interfaces';
4
4
  import { HasVariant, ProductType_PDC } from '../../../global/product';
5
5
  import { TagCommercialConsumer } from '../../../cms/ContentTypes/FlagsAndTags';
6
- import { BUY_BUTTON_LABELSType, PLP_INFINITE_SCROLLType, MAIN_IMAGEType, PLP_GRID_SCROLL_BACKType, PLP_SHOW_VIDEO_ON_PRODUCT_CARDType, PRODUCT_CARD_IMAGE_ASPECT_RATIOType, PRODUCT_CARD_TEXTSType, PRODUCT_CARD_TOP_WISHLIST_TOGGLEType, PRODUCT_IMAGE_DIMENSIONSType, SECOND_IMAGEType, TEXTURE_IMAGEType, Z_INDEX_WARType, StoreConfigType, ICONSType } from '../../../constants';
6
+ import { BUY_BUTTON_LABELSType, PLP_INFINITE_SCROLLType, MAIN_IMAGEType, PLP_GRID_SCROLL_BACKType, PLP_SHOW_VIDEO_ON_PRODUCT_CARDType, PRODUCT_CARD_IMAGE_ASPECT_RATIOType, PRODUCT_CARD_TEXTSType, PRODUCT_CARD_TOP_WISHLIST_TOGGLEType, PRODUCT_IMAGE_DIMENSIONSType, SECOND_IMAGEType, TEXTURE_IMAGEType, Z_INDEX_WARType, StoreConfigType, ICONSType, PLP_SIZE_ORDERType } from '../../../constants';
7
7
  import { SizeSkuItemProps, StyleSelectorProps } from './Selectors';
8
8
 
9
9
  /**
@@ -23,6 +23,7 @@ export interface RootProps extends HTMLAttributes<HTMLDivElement> {
23
23
  MAIN_IMAGE: MAIN_IMAGEType;
24
24
  PLP_GRID_SCROLL_BACK: PLP_GRID_SCROLL_BACKType;
25
25
  PLP_SHOW_VIDEO_ON_PRODUCT_CARD: PLP_SHOW_VIDEO_ON_PRODUCT_CARDType;
26
+ PLP_SIZE_ORDER: PLP_SIZE_ORDERType;
26
27
  PRODUCT_CARD_IMAGE_ASPECT_RATIO: PRODUCT_CARD_IMAGE_ASPECT_RATIOType;
27
28
  PRODUCT_CARD_TEXTS: PRODUCT_CARD_TEXTSType;
28
29
  PRODUCT_CARD_TOP_WISHLIST_TOGGLE: PRODUCT_CARD_TOP_WISHLIST_TOGGLEType;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes, MutableRefObject } from 'react';
2
- import { PLP_INFINITE_SCROLLType, PLP_PRODUCT_SIMILAR_DELAYType, PRODUCT_CARD_IMAGE_ASPECT_RATIOType, TEXTURE_IMAGEType } from '../../../constants';
2
+ import { PLP_INFINITE_SCROLLType, PLP_PRODUCT_SIMILAR_DELAYType, PLP_SIZE_ORDERType, PRODUCT_CARD_IMAGE_ASPECT_RATIOType, TEXTURE_IMAGEType } from '../../../constants';
3
3
  import { HasVariant, ProductType_PDC } from '../../../global/product';
4
4
  import { ProductCardProps, RootProps as ProductCard_RootProps } from '../ProductCard';
5
5
  import { TagCommercialConsumer } from '../../../cms/ContentTypes/FlagsAndTags';
@@ -20,6 +20,7 @@ export interface BannerItemProps extends HTMLAttributes<HTMLDivElement>, BannerP
20
20
  export type ProductListCard_CONSTANTS = ProductCard_RootProps['CONSTANTS'] & {
21
21
  PLP_INFINITE_SCROLL: PLP_INFINITE_SCROLLType;
22
22
  PLP_PRODUCT_SIMILAR_DELAY: PLP_PRODUCT_SIMILAR_DELAYType;
23
+ PLP_SIZE_ORDER: PLP_SIZE_ORDERType;
23
24
  };
24
25
  export interface ProductListCardProps extends HTMLAttributes<HTMLDivElement> {
25
26
  item: ProductCardProps;
@@ -46,6 +47,7 @@ export interface CardProps {
46
47
  CONSTANTS: {
47
48
  PLP_INFINITE_SCROLL: PLP_INFINITE_SCROLLType;
48
49
  PLP_PRODUCT_SIMILAR_DELAY: PLP_PRODUCT_SIMILAR_DELAYType;
50
+ PLP_SIZE_ORDER: PLP_SIZE_ORDERType;
49
51
  TEXTURE_IMAGE?: TEXTURE_IMAGEType;
50
52
  };
51
53
  }
@@ -1,8 +1,15 @@
1
1
  import { TimerProps } from '@soma-vertical-web/core-components/src/lib/Timer/interfaces';
2
2
  import { TIME_ZONEType } from '../../../constants';
3
3
 
4
+ export type TimerType = 'default' | 'compact';
5
+ export interface TimerDigitProps {
6
+ value: number;
7
+ label?: string;
8
+ suppressHydrationWarning?: boolean;
9
+ }
4
10
  export type TeamTimerProps = TimerProps & {
5
11
  dateEnd: Date;
6
12
  dateInit?: Date;
7
- TIME_ZONE?: TIME_ZONEType;
13
+ TIME_ZONE: TIME_ZONEType;
14
+ type?: TimerType;
8
15
  };
@@ -48,8 +48,10 @@ export interface CreditsProps extends HTMLAttributes<HTMLDivElement> {
48
48
  link?: string;
49
49
  total: number;
50
50
  }
51
- export interface UserMenuProps extends Pick<UserMenu_RootProps, 'isOpen' | 'setIsOpen' | 'target'>, HTMLAttributes<HTMLDivElement> {
51
+ export interface UserMenuProps extends Pick<UserMenu_RootProps, 'isOpen' | 'setIsOpen'>, HTMLAttributes<HTMLDivElement> {
52
52
  description?: string;
53
53
  text?: string;
54
54
  storeConfig: StoreConfigType;
55
+ mobileUserMenuTarget?: UserMenu_RootProps['target'];
56
+ desktopUserMenuTarget?: UserMenu_RootProps['target'];
55
57
  }
@@ -1,5 +1,6 @@
1
+ import { ComponentType } from 'react';
1
2
  import { ICONSType } from '../../../constants';
2
- import { GetContentTypeProps } from '../../../data/api/cms';
3
+ import { GetContentTypeParams } from '../../../data/api/cms';
3
4
 
4
5
  export interface LPCadastroContentProps {
5
6
  requiredMessage: string;
@@ -26,7 +27,7 @@ export interface LPCadastroProps {
26
27
  ICONS: ICONSType;
27
28
  POPUP_SUBMITTED_STORAGE: string;
28
29
  }
29
- export interface LPCadastroContentTypeProps extends Omit<GetContentTypeProps, 'contentType'> {
30
- SectionZone: React.ComponentType<any>;
31
- LPCadastro: React.ComponentType<any>;
30
+ export interface LPCadastroContentTypeProps extends GetContentTypeParams {
31
+ SectionZone: ComponentType<any>;
32
+ LPCadastro: ComponentType<any>;
32
33
  }
@@ -1,7 +1,7 @@
1
1
  import { ButtonProps } from '@soma-vertical-web/core-components/src/lib/Button/interfaces';
2
2
  import { ToggleSizeProps } from '@soma-vertical-web/core-components/src/lib/ToggleSize/interfaces';
3
3
  import { CartContextProps, CartItemStore, NotificationsStore, NotificationStore } from '../../../contexts/store/cart';
4
- import { ICONSType, MESSAGE_CASHBACKType, MINICART_CONFIGType, NAME_SPLIT_SYMBOLType, PLP_NOT_RESULTType, StoreConfigType, TEXTURE_IMAGEType, TOGGLE_STYLE_MODIFIERType, Z_INDEX_WARType } from '../../../constants';
4
+ import { ICONSType, MESSAGE_CASHBACKType, MINICART_CONFIGType, NAME_SPLIT_SYMBOLType, PLP_NOT_RESULTType, StoreConfigType, TEXTURE_IMAGEType, TIPBAR_CONFIGSType, TOGGLE_STYLE_MODIFIERType, Z_INDEX_WARType } from '../../../constants';
5
5
  import { InputCustomProps } from '@soma-vertical-web/core-components/src/lib/TextField/interfaces';
6
6
  import { PropsWithChildren } from 'react';
7
7
 
@@ -88,6 +88,7 @@ export type MiniCartProps = {
88
88
  NAME_SPLIT_SYMBOL: NAME_SPLIT_SYMBOLType;
89
89
  PLP_NOT_RESULT: PLP_NOT_RESULTType;
90
90
  TEXTURE_IMAGE: TEXTURE_IMAGEType;
91
+ TIPBAR_CONFIGS: TIPBAR_CONFIGSType;
91
92
  TOGGLE_STYLE_MODIFIER: TOGGLE_STYLE_MODIFIERType;
92
93
  Z_INDEX_WAR: Z_INDEX_WARType;
93
94
  storeConfig: StoreConfigType;
@@ -113,9 +114,12 @@ export type StyleCardProps = {
113
114
  };
114
115
  export interface SkuCardProps extends StyleCardProps {
115
116
  NAME_SPLIT_SYMBOL: NAME_SPLIT_SYMBOLType;
117
+ MINICART_CONFIG: MINICART_CONFIGType;
116
118
  }
117
119
  export interface GiftProps extends Pick<CartItemStore, 'bundleItems' | 'offerings'>, CommonActionConstants {
118
120
  uniqueId: string;
121
+ ICONS: ICONSType;
122
+ MINICART_CONFIG: MINICART_CONFIGType;
119
123
  }
120
124
  export interface WishlistActionProps extends ActionsProps {
121
125
  handleSendEvent: StepperProps['handleSendEvent'];
@@ -145,6 +149,7 @@ export type DiscountProps = PropsWithChildren<{
145
149
  className?: string;
146
150
  ICONS: ICONSType;
147
151
  MINICART_CONFIG: MINICART_CONFIGType;
152
+ Z_INDEX_WAR: Z_INDEX_WARType;
148
153
  }>;
149
154
  export interface ResumeItemsProps {
150
155
  discount: number;
@@ -161,6 +166,7 @@ export interface ModalBodyProps extends PropsWithChildren {
161
166
  NAME_SPLIT_SYMBOL: NAME_SPLIT_SYMBOLType;
162
167
  TEXTURE_IMAGE: TEXTURE_IMAGEType;
163
168
  TOGGLE_STYLE_MODIFIER: TOGGLE_STYLE_MODIFIERType;
169
+ TIPBAR_CONFIGS: TIPBAR_CONFIGSType;
164
170
  PLP_NOT_RESULT: PLP_NOT_RESULTType;
165
171
  }
166
172
  export type ModalHeaderProps = {
@@ -1,4 +1,4 @@
1
- import { BUY_BUTTON_LABELSType, CURRENCYType, DELIVERY_INFO_BOXES_ALLOWEDType, FREIGHT_CALCULATIONType, ICONSType, MEASUREMENTS_SIZESType, NEWSLETTER_CONFIGSType, NOTIFY_INFOType, PDP_INFOType, PLP_SIZE_ORDERType, PRODUCT_CARD_TEXTSType, PRODUCT_IMAGE_DIMENSIONSType, TEXTURE_IMAGEType, TOGGLE_STYLE_MODIFIERType, Z_INDEX_WARType } from '../../../constants';
1
+ import { BUY_BUTTON_LABELSType, CURRENCYType, DELIVERY_INFO_BOXES_ALLOWEDType, FREIGHT_CALCULATIONType, ICONSType, MEASUREMENTS_SIZESType, NEWSLETTER_CONFIGSType, NOTIFY_INFOType, PDP_INFOType, PLP_SIZE_ORDERType, PRODUCT_CARD_TEXTSType, PRODUCT_IMAGE_DIMENSIONSType, TEXTURE_IMAGEType, TIME_ZONEType, TOGGLE_STYLE_MODIFIERType, Z_INDEX_WARType } from '../../../constants';
2
2
  import { Sizes as BtnSizes } from '@soma-vertical-web/core-components/src/lib/Button/interfaces';
3
3
  import { ProductInfoProps } from '@soma-vertical-web/core-components/src/lib/ProductInfo/interfaces';
4
4
  import { Dispatch, HTMLAttributes, PropsWithChildren, SetStateAction } from 'react';
@@ -73,6 +73,7 @@ export interface PDPActionsProps {
73
73
  };
74
74
  BUY_BUTTON_LABELS: BUY_BUTTON_LABELSType;
75
75
  ICONS: ICONSType;
76
+ TIME_ZONE: TIME_ZONEType;
76
77
  Z_INDEX_WAR: Z_INDEX_WARType;
77
78
  }
78
79
  export interface AddToCartProps {
@@ -94,8 +95,9 @@ export interface BottomNavigationProps {
94
95
  };
95
96
  BUY_BUTTON_LABELS: BUY_BUTTON_LABELSType;
96
97
  Z_INDEX_WAR: Z_INDEX_WARType;
98
+ TIME_ZONE: TIME_ZONEType;
97
99
  }
98
- export type BottomNavigationActionsProps = Omit<BottomNavigationProps, 'Z_INDEX_WAR'>;
100
+ export type BottomNavigationActionsProps = Omit<BottomNavigationProps, 'TIME_ZONE' | 'Z_INDEX_WAR'>;
99
101
  export type PDPLinksProps = {
100
102
  ICONS: ICONSType;
101
103
  PDP_INFO: PDP_INFOType;
@@ -1,7 +1,7 @@
1
1
  import { HTMLAttributes, PropsWithChildren } from 'react';
2
2
  import { AvailabilityNotifyProps } from '../../../../types/layout/team-components/Notify';
3
3
  import { BannerType } from '../../../cms/Sections/Banner';
4
- import { BUY_BUTTON_LABELSType, ICONSType, ITEMS_DEFAULT_SORTType, ITEMS_PER_PAGEType, ITEMS_PER_SECTIONType, MAIN_IMAGEType, NEWSLETTER_CONFIGSType, NOTIFY_INFOType, PLP_GRID_SCROLL_BACKType, PLP_INFINITE_SCROLLType, PLP_PRODUCT_SIMILAR_DELAYType, PLP_SHOW_VIDEO_ON_PRODUCT_CARDType, PRODUCT_CARD_IMAGE_ASPECT_RATIOType, PRODUCT_CARD_TEXTSType, PRODUCT_CARD_TOP_WISHLIST_TOGGLEType, PRODUCT_IMAGE_DIMENSIONSType, SEARCH_PAGE_ITEM_THRESHOLDType, SECOND_IMAGEType, StoreConfigType, TEXTURE_IMAGEType, VARIANT_PAGINATIONType, PLP_NOT_RESULTType, Z_INDEX_WARType } from '../../../constants';
4
+ import { BUY_BUTTON_LABELSType, ICONSType, ITEMS_DEFAULT_SORTType, ITEMS_PER_PAGEType, ITEMS_PER_SECTIONType, MAIN_IMAGEType, NEWSLETTER_CONFIGSType, NOTIFY_INFOType, PLP_GRID_SCROLL_BACKType, PLP_INFINITE_SCROLLType, PLP_PRODUCT_SIMILAR_DELAYType, PLP_SHOW_VIDEO_ON_PRODUCT_CARDType, PRODUCT_CARD_IMAGE_ASPECT_RATIOType, PRODUCT_CARD_TEXTSType, PRODUCT_CARD_TOP_WISHLIST_TOGGLEType, PRODUCT_IMAGE_DIMENSIONSType, SEARCH_PAGE_ITEM_THRESHOLDType, SECOND_IMAGEType, StoreConfigType, TEXTURE_IMAGEType, VARIANT_PAGINATIONType, PLP_NOT_RESULTType, Z_INDEX_WARType, PLP_SIZE_ORDERType } from '../../../constants';
5
5
  import { Page, PLPConstantsContextProps } from '../../../contexts/contexts/plp';
6
6
  import { ProductType_PDC } from '../../../global/product';
7
7
  import { ProductCardProps } from '../../team-components/ProductCard';
@@ -104,6 +104,7 @@ export interface ProductsProps {
104
104
  PLP_INFINITE_SCROLL: PLP_INFINITE_SCROLLType;
105
105
  PLP_PRODUCT_SIMILAR_DELAY: PLP_PRODUCT_SIMILAR_DELAYType;
106
106
  PLP_SHOW_VIDEO_ON_PRODUCT_CARD: PLP_SHOW_VIDEO_ON_PRODUCT_CARDType;
107
+ PLP_SIZE_ORDER: PLP_SIZE_ORDERType;
107
108
  PRODUCT_CARD_IMAGE_ASPECT_RATIO: PRODUCT_CARD_IMAGE_ASPECT_RATIOType;
108
109
  PRODUCT_CARD_TEXTS: PRODUCT_CARD_TEXTSType;
109
110
  PRODUCT_CARD_TOP_WISHLIST_TOGGLE: PRODUCT_CARD_TOP_WISHLIST_TOGGLEType;
@@ -1,4 +1,4 @@
1
- import { BUY_BUTTON_LABELSType, ICONSType, QUICKSHOPType, TEXTURE_IMAGEType, TOGGLE_STYLE_MODIFIERType } from '../../../constants';
1
+ import { BUY_BUTTON_LABELSType, ICONSType, QUICKSHOPType, TEXTURE_IMAGEType, TIME_ZONEType, TOGGLE_STYLE_MODIFIERType } from '../../../constants';
2
2
  import { PDPSizesProps } from '../PDP';
3
3
 
4
4
  export type SimilarsProps = {
@@ -8,6 +8,7 @@ export type SimilarsProps = {
8
8
  export interface BodyProps extends PDPSizesProps, SimilarsProps {
9
9
  callBackProductAdded?: Function;
10
10
  BUY_BUTTON_LABELS: BUY_BUTTON_LABELSType;
11
+ TIME_ZONE: TIME_ZONEType;
11
12
  }
12
13
  export interface QuickShopProps extends BodyProps {
13
14
  QUICKSHOP: QUICKSHOPType;
@@ -0,0 +1,42 @@
1
+ import { ComponentType, Dispatch, PropsWithChildren, SetStateAction } from 'react';
2
+ import { ICONSType, ITEMS_DEFAULT_SORTType, ITEMS_PER_PAGEType, SEARCH_MODALType } from '../../../../types/constants';
3
+ import { SearchContentProps } from '../../../cms/ContentTypes/Search';
4
+
5
+ export interface SearchModalProps extends PropsWithChildren {
6
+ Recommendations?: ComponentType<any>;
7
+ trends?: boolean;
8
+ CONSTANTS: {
9
+ SEARCH_MODAL: SEARCH_MODALType;
10
+ ICONS: ICONSType;
11
+ ITEMS_PER_PAGE: ITEMS_PER_PAGEType;
12
+ ITEMS_DEFAULT_SORT: ITEMS_DEFAULT_SORTType;
13
+ };
14
+ cmsConfig?: SearchContentProps;
15
+ className?: string;
16
+ }
17
+ export interface SearchModalHeaderProps {
18
+ title: string;
19
+ ICONS: ICONSType;
20
+ }
21
+ export interface SearchModalAutoCompleteProps {
22
+ placeholder: string;
23
+ noResultsTitle: string;
24
+ noResultsLabel: string;
25
+ noResultsTermUrl: string;
26
+ noResultsTermText: string;
27
+ handleClose: () => void;
28
+ setTerm: Dispatch<SetStateAction<string>>;
29
+ ICONS: ICONSType;
30
+ ITEMS_DEFAULT_SORT: ITEMS_DEFAULT_SORTType;
31
+ ITEMS_PER_PAGE: ITEMS_PER_PAGEType;
32
+ SEARCH_MODAL: SEARCH_MODALType;
33
+ }
34
+ export interface TrendsModalProps {
35
+ title: string;
36
+ allTermsLabel: string;
37
+ allTermsUrl: string;
38
+ qtyTrends: number;
39
+ handleClose: () => void;
40
+ ICONS: ICONSType;
41
+ ITEMS_PER_PAGE: ITEMS_PER_PAGEType;
42
+ }
@@ -1,11 +0,0 @@
1
- import { GetContentTypeProps } from '../../../../types/data/api/cms';
2
-
3
- export declare function cmsBackup(props: GetContentTypeProps): Promise<{
4
- success: boolean;
5
- fileName: string;
6
- error?: undefined;
7
- } | {
8
- success: boolean;
9
- error: {};
10
- fileName?: undefined;
11
- }>;