@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.
- package/SearchPageScreening-BryoK-U4.js +4 -0
- package/SearchPageScreening-DER0_wzr.mjs +1812 -0
- package/cms/ContentTypes/Cart/index.d.ts +3 -0
- package/cms/ContentTypes/CommonPage/CommonPage.d.ts +1 -1
- package/cms/ContentTypes/FlagsAndTags/index.d.ts +3 -0
- package/cms/ContentTypes/Footer/Footer.d.ts +1 -1
- package/cms/ContentTypes/HelpButton/HelpButtonContent.d.ts +1 -1
- package/cms/ContentTypes/LPCadastro/LPCadastroContent.d.ts +1 -1
- package/cms/ContentTypes/PDP/PDPContent.d.ts +1 -1
- package/cms/ContentTypes/PLP/PLPContent.d.ts +1 -1
- package/cms/ContentTypes/{Redirects → PLP/Redirects}/Redirects.d.ts +1 -1
- package/cms/ContentTypes/Search/SearchContent.d.ts +1 -1
- package/cms/Sections/Banner/Composite/Content.d.ts +1 -1
- package/cms/Sections/SectionZone.d.ts +1 -1
- package/cms/Sections/TextAccordion/Component.d.ts +1 -1
- package/cms/Sections/TextContent/Component.d.ts +1 -1
- package/cms/Sections/TextContent/Composite/ContentWrapper.d.ts +1 -1
- package/cms/index.d.ts +4 -4
- package/cms/server.d.ts +8 -6
- package/contexts/contexts/Session.d.ts +1 -1
- package/contexts/contexts/cart/Context.d.ts +1 -1
- package/contexts/contexts/cms/FlagsAndTagsContext.d.ts +3 -5
- package/contexts/hooks/useOperations.d.ts +3 -2
- package/contexts/index.d.ts +5 -15
- package/data/api/checkout/region/index.d.ts +1 -1
- package/data/api/cms/index.d.ts +10 -11
- package/data/helpers/cart/index.d.ts +62 -13
- package/data/helpers/cms/index.d.ts +9 -10
- package/data/helpers/utils/cms.d.ts +4 -0
- package/index.js +17 -41
- package/index.mjs +10194 -11375
- package/index2.js +1 -1
- package/index2.mjs +786 -744
- package/layout/index.d.ts +12 -10
- package/layout/team-component/Footer/Footer.d.ts +1 -1
- package/layout/team-component/Header/Composite/HeaderMobileWrapper.d.ts +1 -2
- package/layout/team-component/Header/index.d.ts +1 -1
- package/layout/team-component/ProductCard/Composite/Selectors/SizeSelector.d.ts +1 -1
- package/layout/team-component/ProductCard/ProductCard.d.ts +1 -1
- package/layout/team-component/Timer/index.d.ts +1 -1
- package/layout/team-component/UserMenu/index.d.ts +1 -1
- package/layout/template/MiniCart/Composite/Card/Composite/Sku.d.ts +1 -1
- package/layout/template/MiniCart/Composite/Card/index.d.ts +1 -1
- package/layout/template/MiniCart/Composite/Modal/Body/Body.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Modal/Body/CouponTag/CouponTag.d.ts +9 -0
- package/layout/template/MiniCart/Composite/Modal/Body/CouponTag/index.d.ts +1 -0
- package/layout/template/MiniCart/Composite/Modal/Body/Promotion/Promotion.d.ts +9 -0
- package/layout/template/MiniCart/Composite/Modal/Body/Promotion/helper.d.ts +5 -0
- package/layout/template/MiniCart/Composite/Modal/Body/Promotion/index.d.ts +1 -0
- package/layout/template/MiniCart/Composite/Modal/Body/index.d.ts +1 -0
- package/layout/template/MiniCart/Composite/Modal/Footer/Discount/Discount.d.ts +1 -1
- package/layout/template/MiniCart/Composite/Modal/Footer/Resume/Totals.d.ts +1 -5
- package/layout/template/MiniCart/Composite/Notifications/Notifications.d.ts +1 -1
- package/layout/template/MiniCart/MiniCart.d.ts +1 -1
- package/layout/template/MiniCart/index.d.ts +3 -5
- package/layout/template/PDC/Composite/Products/Products.d.ts +1 -1
- package/layout/template/PDC/index.d.ts +1 -1
- package/layout/template/PDP/Composite/Info/MainContent/Actions/index.d.ts +1 -1
- package/layout/template/PDP/Composite/Info/MainContent/BottomNavigation/index.d.ts +1 -1
- package/layout/template/PDP/Composite/Info/MainContent/Header/GoldenTag.d.ts +9 -0
- package/layout/template/PDP/index.d.ts +2 -1
- package/layout/template/QuickShop/Composite/Body.d.ts +1 -1
- package/layout/template/SearchModal/Composite/AutoComplete.d.ts +7 -0
- package/layout/template/SearchModal/Composite/Header.d.ts +3 -0
- package/layout/template/SearchModal/Composite/Recommendations.d.ts +3 -0
- package/layout/template/SearchModal/Composite/Trends.d.ts +4 -0
- package/layout/template/SearchModal/SearchModal.d.ts +7 -0
- package/layout/template/SearchModal/helpers.d.ts +3 -0
- package/layout/template/SearchModal/index.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cms/ContentTypes/Cart/index.d.ts +46 -0
- package/types/cms/ContentTypes/CommonPage/index.d.ts +5 -4
- package/types/cms/ContentTypes/FlagsAndTags/index.d.ts +18 -9
- package/types/cms/ContentTypes/Footer/index.d.ts +7 -5
- package/types/cms/ContentTypes/Header/index.d.ts +4 -4
- package/types/cms/ContentTypes/HelpButton/index.d.ts +5 -6
- package/types/cms/ContentTypes/PDP/index.d.ts +6 -6
- package/types/cms/ContentTypes/PLP/index.d.ts +7 -6
- package/types/cms/ContentTypes/Redirects/index.d.ts +2 -2
- package/types/cms/ContentTypes/Search/index.d.ts +7 -7
- package/types/cms/ContentTypes/Tipbar/index.d.ts +4 -3
- package/types/cms/Sections/Banner/index.d.ts +3 -5
- package/types/cms/Sections/BannerCarousel/index.d.ts +2 -3
- package/types/cms/Sections/BennefitsBar/index.d.ts +2 -6
- package/types/cms/Sections/Newsletter/index.d.ts +2 -7
- package/types/cms/Sections/ProductCarousel/index.d.ts +5 -29
- package/types/cms/Sections/SectionZone/index.d.ts +81 -0
- package/types/cms/Sections/TextContent/index.d.ts +5 -2
- package/types/constants.d.ts +36 -0
- package/types/contexts/contexts/pdp.d.ts +2 -1
- package/types/contexts/contexts/plp.d.ts +3 -1
- package/types/contexts/store/cart.d.ts +12 -0
- package/types/data/api/checkout/order-form/index.d.ts +19 -0
- package/types/data/api/cms/index.d.ts +5 -4
- package/types/data/api/index.d.ts +1 -1
- package/types/layout/team-components/BuyPackage/index.d.ts +2 -20
- package/types/layout/team-components/Footer/index.d.ts +2 -0
- package/types/layout/team-components/Header/index.d.ts +3 -2
- package/types/layout/team-components/ProductCard/Selectors/index.d.ts +2 -0
- package/types/layout/team-components/ProductCard/index.d.ts +2 -1
- package/types/layout/team-components/ProductList/index.d.ts +3 -1
- package/types/layout/team-components/Timer/index.d.ts +8 -1
- package/types/layout/team-components/UserMenu/index.d.ts +3 -1
- package/types/layout/templates/LPCadastro/index.d.ts +5 -4
- package/types/layout/templates/MiniCart/index.d.ts +7 -1
- package/types/layout/templates/PDP/index.d.ts +4 -2
- package/types/layout/templates/PLP/index.d.ts +2 -1
- package/types/layout/templates/QuickShop/index.d.ts +2 -1
- package/types/layout/templates/SearchModal/index.d.ts +42 -0
- package/data/api/cms/backup/index.d.ts +0 -11
- package/index-BBxYNFkz.mjs +0 -416
- package/index-BR_9YNfn.mjs +0 -421
- package/index-CwBIv223.js +0 -1
- package/index-DL877zTH.js +0 -1
- package/layout/template/MiniCart/Composite/Modal/Body.d.ts +0 -7
- package/types/cms/Sections/SectionZone/intex.d.ts +0 -64
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CommonPageContentProps } from '../../../types/cms/ContentTypes/CommonPage';
|
|
2
2
|
|
|
3
|
-
export declare const CommonPageContent: ({ slug, SectionZone, COMMON_PAGE_COLUMN_GAP, identifyWhoIsFirst, ...props }: CommonPageContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
export declare const CommonPageContent: ({ slug, SectionZone, COMMON_PAGE_COLUMN_GAP, identifyWhoIsFirst, ...props }: CommonPageContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FooterContentProps } from '../../../types/cms/ContentTypes/Footer';
|
|
2
2
|
|
|
3
|
-
export declare const FooterContent: ({ PAYMENT_FLAGS_DICTIONARY, PAYMENT_FLAGS, LEGAL_INFORMATION_TEXT,
|
|
3
|
+
export declare const FooterContent: ({ className, PAYMENT_FLAGS_DICTIONARY, PAYMENT_FLAGS, LEGAL_INFORMATION_TEXT, ICONS, SectionZone, Footer, FooterSupport, ...props }: FooterContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HelpButtonContentProps } from '../../../types/cms/ContentTypes/HelpButton';
|
|
2
2
|
|
|
3
|
-
export declare const HelpButtonContent: ({ HelpButton, ICONS, className, ...
|
|
3
|
+
export declare const HelpButtonContent: ({ HelpButton, ICONS, className, ...props }: HelpButtonContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LPCadastroContentTypeProps } from '../../../types/layout/templates/LPCadastro';
|
|
2
2
|
|
|
3
|
-
declare const LPCadastroContent: ({ SectionZone, LPCadastro, ...props }: LPCadastroContentTypeProps) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
declare const LPCadastroContent: ({ SectionZone, LPCadastro, ...props }: LPCadastroContentTypeProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
|
|
4
4
|
export default LPCadastroContent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PDPContentProps } from '../../../types/cms/ContentTypes/PDP';
|
|
2
2
|
|
|
3
|
-
export declare const PDPContent: ({ children, productId, COMMON_PAGE_COLUMN_GAP, SectionZone, PDPContentProvider, ...props }: PDPContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
export declare const PDPContent: ({ children, productId, COMMON_PAGE_COLUMN_GAP, SectionZone, PDPContentProvider, ...props }: PDPContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PLPContentProps } from '../../../types/cms/ContentTypes/PLP';
|
|
2
2
|
|
|
3
|
-
export declare const PLPContent: ({ children, slug, SectionZone, COMMON_PAGE_COLUMN_GAP_PDC, PLPContentProvider, ...props }: PLPContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
export declare const PLPContent: ({ className, children, slug, SectionZone, COMMON_PAGE_COLUMN_GAP_PDC, PLPContentProvider, ...props }: PLPContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SearchContentProps } from '../../../types/cms/ContentTypes/Search';
|
|
2
2
|
|
|
3
|
-
export declare const SearchContent: ({ SectionZone,
|
|
3
|
+
export declare const SearchContent: ({ SectionZone, name, storeId, previewId, }: SearchContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { BannerContentProps } from '../../../../types/cms/Sections/Banner';
|
|
3
3
|
|
|
4
|
-
export declare const BannerContent: ({ data, videoUrl, priority, videoRef, ICONS, ...props }: BannerContentProps & HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const BannerContent: ({ data, videoUrl, priority, videoRef, ICONS, TEXTCONTENT_EXPANDED, TIME_ZONE, ...props }: BannerContentProps & HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
import { SectionZoneProps } from '../../types/cms/Sections/SectionZone
|
|
2
|
+
import { SectionZoneProps } from '../../types/cms/Sections/SectionZone';
|
|
3
3
|
|
|
4
4
|
declare const SectionZone: FunctionComponent<SectionZoneProps>;
|
|
5
5
|
export default SectionZone;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextAccordionSectionProps } from '../../../types/cms/Sections/TextAccordion';
|
|
2
2
|
|
|
3
|
-
export declare const TextAccordionSection: ({ data, id: sectionId, ICONS, }: TextAccordionSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const TextAccordionSection: ({ data, id: sectionId, ICONS, className }: TextAccordionSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextContentSectionProps } from '../../../types/cms/Sections/TextContent';
|
|
2
2
|
|
|
3
|
-
export declare const TextContentSection: ({ data, ICONS, }: TextContentSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const TextContentSection: ({ data, ICONS, TEXTCONTENT_EXPANDED, className, }: TextContentSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextContentProps } from '../../../../types/cms/Sections/TextContent';
|
|
2
2
|
|
|
3
|
-
export declare const TextContent: ({ data, ICONS }: TextContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const TextContent: ({ data, ICONS, TEXTCONTENT_EXPANDED }: TextContentProps) => import("react/jsx-runtime").JSX.Element;
|
package/cms/index.d.ts
CHANGED
|
@@ -9,19 +9,19 @@ export declare const clientCMS: {
|
|
|
9
9
|
} & import('react').HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
BennefitsBarSection: ({ data, CONSTANTS }: import('../types/cms/Sections/BennefitsBar').BennefitsBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
SingleBannerSection: (data: import('../types/cms/Sections/Banner').BannerSectionType) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
TextContentSection: ({ data, ICONS, }: import('../types/cms/Sections/TextContent').TextContentSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
TextContentSection: ({ data, ICONS, TEXTCONTENT_EXPANDED, className, }: import('../types/cms/Sections/TextContent').TextContentSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
BannerCarousel: (data: import('../types/cms/Sections/BannerCarousel').BannerCarouselProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
TextAccordionSection: ({ data, id: sectionId, ICONS, }: import('../types/cms/Sections/TextAccordion').TextAccordionSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
TextAccordionSection: ({ data, id: sectionId, ICONS, className }: import('../types/cms/Sections/TextAccordion').TextAccordionSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
TipbarScreening: ({ CONSTANTS, data }: import('../types/cms/ContentTypes/Tipbar').TipbarScreeningProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
ImageGrid: (data: import('../types/cms/Sections/ImageGrid').ImageGridSectionType) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
SearchPageScreening: ({ children, data, SectionZone, className, }: import('../types/cms/ContentTypes/Search').SearchPageScrenningProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
SearchContent: ({ SectionZone,
|
|
18
|
+
SearchContent: ({ SectionZone, name, storeId, previewId, }: import('../types/cms/ContentTypes/Search').SearchContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
NewsletterSection: ({ data: { componentIndex, ...props }, CONSTANTS, }: import('../types/cms/Sections/Newsletter').NewsLetterSectionType) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
PDPProductCarousel: ({ data, CONSTANTS, }: import('../types/cms/Sections/ProductCarousel').PDPProductCarouselProps) => import("react/jsx-runtime").JSX.Element[];
|
|
21
21
|
ProductCarousel: ({ data, CONSTANTS }: import('../types/cms/Sections/ProductCarousel').ProductCarouselProps) => import("react/jsx-runtime").JSX.Element[];
|
|
22
22
|
EmbedLive: ({ data }: import('../types/cms/Sections/EmbedLive').EmbedLiveProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
PopupModalSection: ({ data, CONSTANTS, }: import('../types/cms/Sections/PopupModal').PopupModalSectionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
-
SectionZone: import('react').FunctionComponent<import('../types/cms/Sections/SectionZone
|
|
24
|
+
SectionZone: import('react').FunctionComponent<import('../types/cms/Sections/SectionZone').SectionZoneProps>;
|
|
25
25
|
};
|
|
26
26
|
helpers: typeof helpers;
|
|
27
27
|
};
|
package/cms/server.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export declare const serverCMS: {
|
|
2
2
|
Components: {
|
|
3
|
-
CommonPageContent: ({ slug, SectionZone, COMMON_PAGE_COLUMN_GAP, identifyWhoIsFirst, ...props }: import('../types/cms/ContentTypes/CommonPage').CommonPageContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
CommonPageContent: ({ slug, SectionZone, COMMON_PAGE_COLUMN_GAP, identifyWhoIsFirst, ...props }: import('../types/cms/ContentTypes/CommonPage').CommonPageContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
|
|
4
|
+
CartContent: ({ children, ClientCartProvider, ...props }: import('../types/cms/ContentTypes/Cart').CartContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
5
|
+
FlagsAndTagsContent: ({ children, ClientFlagsAndTagsProvider, ...props }: import('../types/cms/ContentTypes/FlagsAndTags').FlagsAndTagsContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
|
|
4
6
|
HeaderContent: ({ children, ClientHeaderProvider, ...props }: import('../types/cms/ContentTypes/Header').HeaderContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
5
7
|
TipbarContent: ({ ClientTipbarContent, ...props }: import('../types/cms/ContentTypes/Tipbar').TipbarContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
6
|
-
FooterContent: ({ PAYMENT_FLAGS_DICTIONARY, PAYMENT_FLAGS, LEGAL_INFORMATION_TEXT,
|
|
7
|
-
PLPContent: ({ children, slug, SectionZone, COMMON_PAGE_COLUMN_GAP_PDC, PLPContentProvider, ...props }: import('../types/cms/ContentTypes/PLP').PLPContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
8
|
-
PDPContent: ({ children, productId, COMMON_PAGE_COLUMN_GAP, SectionZone, PDPContentProvider, ...props }: import('../types/cms/ContentTypes/PDP').PDPContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
8
|
+
FooterContent: ({ className, PAYMENT_FLAGS_DICTIONARY, PAYMENT_FLAGS, LEGAL_INFORMATION_TEXT, ICONS, SectionZone, Footer, FooterSupport, ...props }: import('../types/cms/ContentTypes/Footer').FooterContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
|
|
9
|
+
PLPContent: ({ className, children, slug, SectionZone, COMMON_PAGE_COLUMN_GAP_PDC, PLPContentProvider, ...props }: import('../types/cms/ContentTypes/PLP').PLPContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
|
|
10
|
+
PDPContent: ({ children, productId, COMMON_PAGE_COLUMN_GAP, SectionZone, PDPContentProvider, ...props }: import('../types/cms/ContentTypes/PDP').PDPContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
|
|
9
11
|
getRedirectData: ({ slug, ...props }: import('../types/cms/ContentTypes/Redirects').Redirects) => Promise<{
|
|
10
12
|
slug: string;
|
|
11
13
|
query: null;
|
|
@@ -37,7 +39,7 @@ export declare const serverCMS: {
|
|
|
37
39
|
description: string;
|
|
38
40
|
} | null>;
|
|
39
41
|
SearchPageContent: ({ children, SectionZone, className, ...props }: import('../types/cms/ContentTypes/Search').SearchPageContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
40
|
-
HelpButtonContent: ({ HelpButton, ICONS, className, ...
|
|
41
|
-
LPCadastroContent: ({ SectionZone, LPCadastro, ...props }: import('../types/layout/templates/LPCadastro').LPCadastroContentTypeProps) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
42
|
+
HelpButtonContent: ({ HelpButton, ICONS, className, ...props }: import('../types/cms/ContentTypes/HelpButton').HelpButtonContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
|
|
43
|
+
LPCadastroContent: ({ SectionZone, LPCadastro, ...props }: import('../types/layout/templates/LPCadastro').LPCadastroContentTypeProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
|
|
42
44
|
};
|
|
43
45
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ISessionContext, SessionProviderProps } from '../../types/contexts/contexts/session';
|
|
2
2
|
|
|
3
|
-
declare const SessionProvider: ({ children, AUTH_TOKEN_COOKIE }: SessionProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const SessionProvider: ({ children, AUTH_TOKEN_COOKIE, }: SessionProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare const useSession: () => ISessionContext;
|
|
5
5
|
export { SessionProvider, useSession };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CartContextProps, CartProviderProps } from '../../../types/contexts/store/cart';
|
|
2
2
|
|
|
3
3
|
declare const CartContext: import('react').Context<CartContextProps>;
|
|
4
|
-
declare const CartProvider: ({ children, SELLER_CODE_VALIDATION_KEYS, CARTPROVIDER_MESSAGE_PRODUCT_REMOVE, ...props }: CartProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const CartProvider: ({ children, SELLER_CODE_VALIDATION_KEYS, CARTPROVIDER_MESSAGE_PRODUCT_REMOVE, data, ...props }: CartProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare const useCartContext: () => CartContextProps;
|
|
6
6
|
export { CartContext, CartProvider, useCartContext };
|
|
@@ -14,16 +14,14 @@ export declare const useFlagsAndTags: () => {
|
|
|
14
14
|
institucional: {
|
|
15
15
|
items: import('../../../types/cms/ContentTypes/FlagsAndTags').FlagTagWithCluster[];
|
|
16
16
|
};
|
|
17
|
-
flagDiscount: import('../../../types/cms/ContentTypes/FlagsAndTags').
|
|
18
|
-
flagCart: {
|
|
19
|
-
flagHeader: import('../../../types/cms/ContentTypes/FlagsAndTags').CommonFlagType;
|
|
20
|
-
flagTotal: string;
|
|
21
|
-
};
|
|
17
|
+
flagDiscount: import('../../../types/cms/ContentTypes/FlagsAndTags').TagDiscountPercentage;
|
|
22
18
|
flagPdp: import('../../../types/cms/ContentTypes/FlagsAndTags').CommonFlagType;
|
|
19
|
+
flagGoldenPdp: import('../../../types/cms/ContentTypes/FlagsAndTags').FlagGoldenPdp;
|
|
23
20
|
};
|
|
24
21
|
getAvailableProductTag: (clusters: ProductType_PDC["cluster"]["highlights"]) => {
|
|
25
22
|
commercial: import('../../../types/cms/ContentTypes/FlagsAndTags').FlagTagWithCluster | undefined;
|
|
26
23
|
institucional: import('../../../types/cms/ContentTypes/FlagsAndTags').FlagTagWithCluster | undefined;
|
|
27
24
|
flagPdp: import('../../../types/cms/ContentTypes/FlagsAndTags').CommonFlagType;
|
|
25
|
+
flagGoldenPdp: import('../../../types/cms/ContentTypes/FlagsAndTags').FlagGoldenPdp | undefined;
|
|
28
26
|
};
|
|
29
27
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CartItemStore, AddToCart } from '../../types/contexts/store/cart';
|
|
2
|
-
import {
|
|
2
|
+
import { SelectedAddress } from '../../types/data/api/checkout/order-form';
|
|
3
|
+
import { ShippingOption, ShippingData, DeliveryMode } from '../../types/data/api/checkout/order-form/shipping';
|
|
3
4
|
|
|
4
5
|
declare const useOperations: () => {
|
|
5
6
|
addCoupon: (orderFormId: string, coupon: string) => Promise<any>;
|
|
@@ -11,7 +12,7 @@ declare const useOperations: () => {
|
|
|
11
12
|
getOrderForm: (orderFormId?: string, priority?: "low" | "high") => Promise<any>;
|
|
12
13
|
insertProfileEmail: (orderFormId: string, email: string) => Promise<any>;
|
|
13
14
|
removeItem: (orderFormId: string, itemsStore: CartItemStore[], productId: string) => Promise<any>;
|
|
14
|
-
shipping: (orderFormId: string, postalCode: string, country: string) => Promise<any>;
|
|
15
|
+
shipping: (orderFormId: string, postalCode: string, country: string, index: number, selectedAddresses: SelectedAddress[], deliveryMode?: DeliveryMode | null, setDeliveryWindow?: boolean) => Promise<any>;
|
|
15
16
|
shippingUpdate: (orderFormId: string, options?: ShippingOption[], selectedAddresses?: ShippingData["selectedAddresses"]) => Promise<any>;
|
|
16
17
|
updateItemQuantity: (orderFormId: string, items: CartItemStore[], productId: string, quantity: number, quantityOld: number) => Promise<any>;
|
|
17
18
|
};
|
package/contexts/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const contexts: {
|
|
|
13
13
|
};
|
|
14
14
|
cart: {
|
|
15
15
|
hook: () => import('../types/contexts/store/cart').CartContextProps;
|
|
16
|
-
provider: ({ children, SELLER_CODE_VALIDATION_KEYS, CARTPROVIDER_MESSAGE_PRODUCT_REMOVE, ...props }: import('../types/contexts/store/cart').CartProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
provider: ({ children, SELLER_CODE_VALIDATION_KEYS, CARTPROVIDER_MESSAGE_PRODUCT_REMOVE, data, ...props }: import('../types/contexts/store/cart').CartProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
};
|
|
18
18
|
cms: {
|
|
19
19
|
FlagsAndTags: {
|
|
@@ -28,17 +28,15 @@ export declare const contexts: {
|
|
|
28
28
|
institucional: {
|
|
29
29
|
items: import('../types/cms/ContentTypes/FlagsAndTags').FlagTagWithCluster[];
|
|
30
30
|
};
|
|
31
|
-
flagDiscount: import('../types/cms/ContentTypes/FlagsAndTags').
|
|
32
|
-
flagCart: {
|
|
33
|
-
flagHeader: import('../types/cms/ContentTypes/FlagsAndTags').CommonFlagType;
|
|
34
|
-
flagTotal: string;
|
|
35
|
-
};
|
|
31
|
+
flagDiscount: import('../types/cms/ContentTypes/FlagsAndTags').TagDiscountPercentage;
|
|
36
32
|
flagPdp: import('../types/cms/ContentTypes/FlagsAndTags').CommonFlagType;
|
|
33
|
+
flagGoldenPdp: import('../types/cms/ContentTypes/FlagsAndTags').FlagGoldenPdp;
|
|
37
34
|
};
|
|
38
35
|
getAvailableProductTag: (clusters: import('../types/global/product').ProductType_PDC["cluster"]["highlights"]) => {
|
|
39
36
|
commercial: import('../types/cms/ContentTypes/FlagsAndTags').FlagTagWithCluster | undefined;
|
|
40
37
|
institucional: import('../types/cms/ContentTypes/FlagsAndTags').FlagTagWithCluster | undefined;
|
|
41
38
|
flagPdp: import('../types/cms/ContentTypes/FlagsAndTags').CommonFlagType;
|
|
39
|
+
flagGoldenPdp: import('../types/cms/ContentTypes/FlagsAndTags').FlagGoldenPdp | undefined;
|
|
42
40
|
};
|
|
43
41
|
};
|
|
44
42
|
provider: ({ data, children, }: import('../types/contexts/contexts/cms/FlagsAndTags').FlagsAndTagsProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -117,17 +115,9 @@ export declare const contexts: {
|
|
|
117
115
|
hook: () => import('../types/contexts/contexts/search').SearchContextProps;
|
|
118
116
|
provider: ({ children, sort, state, count, collectionId, brand, searchParams, ITEMS_PER_PAGE }: import('../types/contexts/contexts/search').SearchProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
119
117
|
};
|
|
120
|
-
searchSuggestedTerms: {
|
|
121
|
-
hook: () => import('../types/contexts/contexts/search').SuggestedTermsContextProps;
|
|
122
|
-
provider: ({ children, ...props }: import('../types/contexts/contexts/search').SuggestedTermsProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
123
|
-
};
|
|
124
|
-
searchTopSearchs: {
|
|
125
|
-
hook: () => import('../types/contexts/contexts/search').TopSearchesContextProps;
|
|
126
|
-
provider: ({ children }: import('react').PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
127
|
-
};
|
|
128
118
|
session: {
|
|
129
119
|
hook: () => import('../types/contexts/contexts/session').ISessionContext;
|
|
130
|
-
provider: ({ children, AUTH_TOKEN_COOKIE }: import('../types/contexts/contexts/session').SessionProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
120
|
+
provider: ({ children, AUTH_TOKEN_COOKIE, }: import('../types/contexts/contexts/session').SessionProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
131
121
|
};
|
|
132
122
|
ui: {
|
|
133
123
|
hook: () => import('../types/contexts/contexts/cart').UIContextProps;
|
package/data/api/cms/index.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
/**
|
|
2
|
+
* fetch content type CMS
|
|
3
|
+
*
|
|
4
|
+
* @param {string} contentType - The type of content to fetch from Strapi.
|
|
5
|
+
* @param {string} params - Query parameters to append to the API request.
|
|
6
|
+
* @return {Promise<object>} The fetched data.
|
|
7
|
+
*/
|
|
8
|
+
export declare function fetchContentType<T>(contentType: string, params?: Record<string, unknown>, spreadData?: boolean): Promise<{
|
|
9
|
+
status: number | string;
|
|
10
|
+
data: T[] | T | null;
|
|
11
11
|
}>;
|
|
12
|
-
export * from './backup';
|
|
13
12
|
export * from './content-type';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchPriority } from '../../../types/contexts/hooks';
|
|
2
|
-
import { OrderFormItem, OrderForm } from '../../../types/data/api/checkout/order-form';
|
|
2
|
+
import { OrderFormItem, OrderForm, SelectedAddress } from '../../../types/data/api/checkout/order-form';
|
|
3
3
|
import { AddToCart, CartItem, CartItemOptionalProps, CartItemStore, OrderFormConstants, NotificationsStore, OptionalOrderForm } from '../../../types/contexts/store/cart';
|
|
4
4
|
|
|
5
5
|
export declare const VALUE_REFERENCES: {
|
|
@@ -25,15 +25,15 @@ export declare const initialState: {
|
|
|
25
25
|
addItem: () => Promise<boolean>;
|
|
26
26
|
addSellerCode: () => Promise<boolean>;
|
|
27
27
|
addMarketingData: () => Promise<boolean>;
|
|
28
|
-
emptyCart: () =>
|
|
28
|
+
emptyCart: () => {};
|
|
29
29
|
removeItem: () => Promise<boolean>;
|
|
30
|
-
setIsOpen: () =>
|
|
30
|
+
setIsOpen: () => {};
|
|
31
31
|
shipping: () => Promise<boolean>;
|
|
32
32
|
shippingUpdate: () => Promise<boolean>;
|
|
33
33
|
toggleServiceToProduct: () => Promise<boolean>;
|
|
34
34
|
updateItemQuantity: () => Promise<boolean>;
|
|
35
35
|
insertProfileEmail: () => Promise<boolean>;
|
|
36
|
-
setRecentlyAddedProducts: () =>
|
|
36
|
+
setRecentlyAddedProducts: () => {};
|
|
37
37
|
};
|
|
38
38
|
export declare const isGift: (price: number) => price is 0;
|
|
39
39
|
export declare const getCategories: (productCategoryIds: string, productCategories: {
|
|
@@ -76,20 +76,68 @@ export declare const getTotalizer: (items: CartItemStore[]) => {
|
|
|
76
76
|
export declare const getTotalItems: (items?: CartItemStore[]) => number;
|
|
77
77
|
export declare const orderFormValues: (orderForm: OrderForm, CONSTANTS?: OrderFormConstants) => {
|
|
78
78
|
id: string;
|
|
79
|
-
itemMetadata: {
|
|
80
|
-
items: import('../../../types/data/api/checkout/order-form').MetadataItem[];
|
|
81
|
-
} | null;
|
|
82
79
|
items: CartItemStore[];
|
|
83
|
-
|
|
80
|
+
salesChannel: string;
|
|
81
|
+
loggedIn: boolean;
|
|
82
|
+
isCheckedIn: boolean;
|
|
83
|
+
storeId: string | null;
|
|
84
|
+
checkedInPickupPointId: string | null;
|
|
85
|
+
allowManualPrice: boolean;
|
|
86
|
+
canEditData: boolean;
|
|
87
|
+
userProfileId: string | null;
|
|
88
|
+
userType: string | null;
|
|
89
|
+
ignoreProfileData: boolean;
|
|
90
|
+
value: number;
|
|
84
91
|
messages: any[];
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
shippingData: import('../../../types/data/api/checkout/order-form/shipping').ShippingData | null;
|
|
88
|
-
totalizers: {
|
|
92
|
+
selectableGifts: any[];
|
|
93
|
+
totalizers: Array<{
|
|
89
94
|
id: string;
|
|
90
95
|
name: string;
|
|
91
96
|
value: number;
|
|
92
|
-
}
|
|
97
|
+
}>;
|
|
98
|
+
shippingData: import('../../../types/data/api/checkout/order-form/shipping').ShippingData | null;
|
|
99
|
+
clientProfileData: import('../../../types/data/api/checkout/order-form/profile').ClientProfileData | null;
|
|
100
|
+
paymentData: import('../../../types/data/api/checkout/order-form').PaymentData;
|
|
101
|
+
marketingData: import('../../../types/data/api/checkout/order-form').OrderFormMarketingData | null;
|
|
102
|
+
sellers: Array<{
|
|
103
|
+
id: string;
|
|
104
|
+
name: string;
|
|
105
|
+
logo: string;
|
|
106
|
+
}>;
|
|
107
|
+
clientPreferencesData: {
|
|
108
|
+
locale: string;
|
|
109
|
+
optinNewsLetter: unknown;
|
|
110
|
+
};
|
|
111
|
+
commercialConditionData: unknown;
|
|
112
|
+
storePreferencesData: {
|
|
113
|
+
countryCode: string;
|
|
114
|
+
currencyCode: string;
|
|
115
|
+
currencyFormatInfo: {
|
|
116
|
+
currencyDecimalDigits: number;
|
|
117
|
+
currencyDecimalSeparator: string;
|
|
118
|
+
currencyGroupSeparator: string;
|
|
119
|
+
currencyGroupSize: number;
|
|
120
|
+
startsWithCurrencySymbol: boolean;
|
|
121
|
+
};
|
|
122
|
+
currencyLocale: number;
|
|
123
|
+
currencySymbol: string;
|
|
124
|
+
saveUserData: boolean;
|
|
125
|
+
timeZone: string;
|
|
126
|
+
};
|
|
127
|
+
giftRegistryData: unknown;
|
|
128
|
+
openTextField: Record<string, string | boolean>;
|
|
129
|
+
invoiceData: unknown;
|
|
130
|
+
customData: import('../../../types/data/api/checkout/order-form').OrderFormCustomData | null;
|
|
131
|
+
itemMetadata: {
|
|
132
|
+
items: import('../../../types/data/api/checkout/order-form').MetadataItem[];
|
|
133
|
+
} | null;
|
|
134
|
+
hooksData: unknown;
|
|
135
|
+
ratesAndBenefitsData: {
|
|
136
|
+
rateAndBenefitsIdentifiers: any[];
|
|
137
|
+
teaser: any[];
|
|
138
|
+
};
|
|
139
|
+
subscriptionData: import('../../../types/data/api/checkout/order-form').SubscriptionData | null;
|
|
140
|
+
itemsOrdination: unknown;
|
|
93
141
|
};
|
|
94
142
|
export declare const updateItemSellerExternal: (items: CartItemStore[], productId: string) => boolean;
|
|
95
143
|
export declare const getSize: (item: CartItem, NAME_SPLIT_SYMBOL: string) => string;
|
|
@@ -196,3 +244,4 @@ export declare const mountMarketingData: (searchParams: URLSearchParams) => {
|
|
|
196
244
|
utmSource?: string | undefined;
|
|
197
245
|
};
|
|
198
246
|
export declare const getUrlParameter: (name: string) => string | null | undefined;
|
|
247
|
+
export declare const createNewAddress: (postalCode: string, geo: object | null, country?: string) => SelectedAddress[];
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
error
|
|
10
|
-
fileName?: undefined;
|
|
1
|
+
export declare function strapiCMSData<T>(url: URL, params?: Record<string, unknown>, spreadData?: boolean): Promise<{
|
|
2
|
+
status: number | string;
|
|
3
|
+
data: T[];
|
|
4
|
+
error?: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function vtexCMSData<T>(contentType: string, url: URL, params?: Record<string, unknown>): Promise<{
|
|
7
|
+
status: number | string;
|
|
8
|
+
data: T[] | T | null;
|
|
9
|
+
error?: string;
|
|
11
10
|
}>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function fetchCMS(url: URL, params?: Record<string, unknown>, previewMode?: boolean): Promise<Response>;
|
|
2
|
+
export declare function createUrl(contentType: string, params: Record<string, unknown>): string;
|
|
3
|
+
export declare function spreadStrapiData<T>(data: T): T | null;
|
|
4
|
+
export declare function mergePreviewDocument<T>(contentType: string, documents?: T[], params?: Record<string, unknown>): Promise<any[]>;
|