@soma-vertical-web/multi-lib-sacurai 0.0.1
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/ContentTypes/Cart/index.d.ts +3 -0
- package/cms/ContentTypes/CommonPage/CommonPage.d.ts +3 -0
- package/cms/ContentTypes/CommonPage/DataScreening.d.ts +6 -0
- package/cms/ContentTypes/FlagsAndTags/index.d.ts +3 -0
- package/cms/ContentTypes/Footer/Footer.d.ts +3 -0
- package/cms/ContentTypes/Header/index.d.ts +3 -0
- package/cms/ContentTypes/HelpButton/FormatHelpButtonContent.d.ts +13 -0
- package/cms/ContentTypes/HelpButton/HelpButtonContent.d.ts +3 -0
- package/cms/ContentTypes/LPCadastro/LPCadastroContent.d.ts +4 -0
- package/cms/ContentTypes/PDP/PDPContent.d.ts +3 -0
- package/cms/ContentTypes/PLP/PLPContent.d.ts +3 -0
- package/cms/ContentTypes/PLP/Redirects/Redirects.d.ts +32 -0
- package/cms/ContentTypes/Search/SearchContent.d.ts +3 -0
- package/cms/ContentTypes/Search/SearchPageContent.d.ts +3 -0
- package/cms/ContentTypes/Search/SearchPageScreening.d.ts +3 -0
- package/cms/ContentTypes/Tipbar/Tipbar.d.ts +3 -0
- package/cms/ContentTypes/Tipbar/TipbarScreening.d.ts +3 -0
- package/cms/Factories/common.d.ts +7 -0
- package/cms/Factories/contentType.d.ts +9 -0
- package/cms/Factories/index.d.ts +2 -0
- package/cms/Factories/section.d.ts +7 -0
- package/cms/Sections/Banner/Component.d.ts +7 -0
- package/cms/Sections/Banner/Composite/Content.d.ts +4 -0
- package/cms/Sections/Banner/adapter.d.ts +32 -0
- package/cms/Sections/Banner/index.d.ts +8 -0
- package/cms/Sections/BannerCarousel/BannerCarousel.d.ts +3 -0
- package/cms/Sections/BannerCarousel/Composite/Controllers.d.ts +3 -0
- package/cms/Sections/BannerCarousel/index.d.ts +8 -0
- package/cms/Sections/BennefitsBar/Component.d.ts +3 -0
- package/cms/Sections/BennefitsBar/index.d.ts +8 -0
- package/cms/Sections/EmbedLive/Component.d.ts +4 -0
- package/cms/Sections/ErrorBoundary/index.d.ts +18 -0
- package/cms/Sections/ImageGrid/Component.d.ts +3 -0
- package/cms/Sections/Newsletter/Component.d.ts +3 -0
- package/cms/Sections/PopupModal/Component.d.ts +4 -0
- package/cms/Sections/PopupModal/Composite/FormSection.d.ts +4 -0
- package/cms/Sections/PopupModal/Composite/Success.d.ts +4 -0
- package/cms/Sections/ProductCarousel/Composite/CommonShelf.d.ts +4 -0
- package/cms/Sections/ProductCarousel/Composite/RecommendationShelf.d.ts +4 -0
- package/cms/Sections/ProductCarousel/ProductCarousel.d.ts +4 -0
- package/cms/Sections/ProductCarousel/request.d.ts +24 -0
- package/cms/Sections/SectionZone.d.ts +5 -0
- package/cms/Sections/TextAccordion/Component.d.ts +3 -0
- package/cms/Sections/TextContent/Component.d.ts +3 -0
- package/cms/Sections/TextContent/Composite/Content.d.ts +6 -0
- package/cms/Sections/TextContent/Composite/ContentWrapper.d.ts +3 -0
- package/cms/Sections/TextContent/adapter.d.ts +3 -0
- package/cms/Sections/TextContent/index.d.ts +5 -0
- package/cms/Sections/_common/Accordion.d.ts +2 -0
- package/cms/Sections/_common/BannerItem.d.ts +5 -0
- package/cms/Sections/_common/TextStructure.d.ts +17 -0
- package/cms/Sections/_common/interfaces.d.ts +8 -0
- package/cms/helpers/index.d.ts +11 -0
- package/cms/index.d.ts +27 -0
- package/cms/server.d.ts +45 -0
- package/constants.d.ts +49 -0
- package/contexts/contexts/GlobalContext.d.ts +12 -0
- package/contexts/contexts/NextContext.d.ts +14 -0
- package/contexts/contexts/Session.d.ts +5 -0
- package/contexts/contexts/cart/AddToCart.d.ts +6 -0
- package/contexts/contexts/cart/Context.d.ts +6 -0
- package/contexts/contexts/cart/MiniCartData.d.ts +7 -0
- package/contexts/contexts/cart/UIContext.d.ts +6 -0
- package/contexts/contexts/cms/FlagsAndTagsContext.d.ts +27 -0
- package/contexts/contexts/cms/PDPContentContext.d.ts +6 -0
- package/contexts/contexts/cms/PLPContentContext.d.ts +4 -0
- package/contexts/contexts/events/EventContext.d.ts +6 -0
- package/contexts/contexts/header/HeaderCategoryContext.d.ts +7 -0
- package/contexts/contexts/header/HeaderContext.d.ts +6 -0
- package/contexts/contexts/header/MenuMobileContext.d.ts +7 -0
- package/contexts/contexts/header/TipBarContext.d.ts +6 -0
- package/contexts/contexts/header/UserMenuContext.d.ts +6 -0
- package/contexts/contexts/newsletter/Context.d.ts +6 -0
- package/contexts/contexts/pdp/PDPContext.d.ts +6 -0
- package/contexts/contexts/pdp/PDPDataContext.d.ts +4 -0
- package/contexts/contexts/plp/FilterContext.d.ts +6 -0
- package/contexts/contexts/plp/PLPConstants.d.ts +6 -0
- package/contexts/contexts/plp/PLPContext.d.ts +6 -0
- package/contexts/contexts/plp/PLPInfiniteContext.tsx.d.ts +6 -0
- package/contexts/contexts/plp/PLPNavigationContext.d.ts +6 -0
- package/contexts/contexts/product-card/ProductCardContext.d.ts +6 -0
- package/contexts/contexts/search/Constants.d.ts +6 -0
- package/contexts/contexts/search/Facets.d.ts +5 -0
- package/contexts/contexts/search/Products.d.ts +5 -0
- package/contexts/contexts/search/Root.d.ts +5 -0
- package/contexts/contexts/search/Search.d.ts +5 -0
- package/contexts/contexts/search/SuggestedTerms.d.ts +5 -0
- package/contexts/contexts/search/TopSearches.d.ts +6 -0
- package/contexts/hooks/useBackPDC.d.ts +3 -0
- package/contexts/hooks/useClipboard.d.ts +4 -0
- package/contexts/hooks/useDisableZoom.d.ts +1 -0
- package/contexts/hooks/useLocalStorage.d.ts +1 -0
- package/contexts/hooks/useMediator.d.ts +1 -0
- package/contexts/hooks/useOnClickOutside.d.ts +3 -0
- package/contexts/hooks/useOnScreen.d.ts +4 -0
- package/contexts/hooks/useOperations.d.ts +19 -0
- package/contexts/hooks/useScrollRestoration.d.ts +3 -0
- package/contexts/hooks/useScrollRestorationInfinite.d.ts +4 -0
- package/contexts/hooks/useSentinel.d.ts +11 -0
- package/contexts/hooks/useTouchZoomPan.d.ts +8 -0
- package/contexts/index.d.ts +159 -0
- package/contexts/store/cart.d.ts +11 -0
- package/contexts/store/header.d.ts +24 -0
- package/contexts/store/helpers.d.ts +3 -0
- package/contexts/store/pdp.d.ts +28 -0
- package/contexts/store/plp.d.ts +3 -0
- package/contexts/store/wishlist.d.ts +12 -0
- package/data/api/DitoIngest/sendDitoEvent.d.ts +3 -0
- package/data/api/catalog/index.d.ts +2 -0
- package/data/api/catalog/kit/index.d.ts +11 -0
- package/data/api/catalog/product/info/index.d.ts +10 -0
- package/data/api/catalog/product/similars/index.d.ts +3 -0
- package/data/api/checkout/address/index.d.ts +21 -0
- package/data/api/checkout/index.d.ts +4 -0
- package/data/api/checkout/order-form/attachments/index.d.ts +17 -0
- package/data/api/checkout/order-form/attachments/marketing-data/index.d.ts +21 -0
- package/data/api/checkout/order-form/attachments/open-text-field/index.d.ts +18 -0
- package/data/api/checkout/order-form/coupon/index.d.ts +15 -0
- package/data/api/checkout/order-form/custom-data/index.d.ts +17 -0
- package/data/api/checkout/order-form/index.d.ts +15 -0
- package/data/api/checkout/order-form/items/index.d.ts +23 -0
- package/data/api/checkout/order-form/items/remove-all/index.d.ts +13 -0
- package/data/api/checkout/order-form/items/update/index.d.ts +25 -0
- package/data/api/checkout/order-form/messages/remove-all/index.d.ts +13 -0
- package/data/api/checkout/order-form/offerings/index.d.ts +19 -0
- package/data/api/checkout/order-form/orderform/index.d.ts +14 -0
- package/data/api/checkout/order-form/profile/index.d.ts +25 -0
- package/data/api/checkout/order-form/seller-code/index.d.ts +13 -0
- package/data/api/checkout/order-form/shipping/index.d.ts +17 -0
- package/data/api/checkout/order-form/shipping/update/index.d.ts +36 -0
- package/data/api/checkout/region/index.d.ts +33 -0
- package/data/api/checkout/simulation/index.d.ts +30 -0
- package/data/api/cms/content-type/index.d.ts +3 -0
- package/data/api/cms/index.d.ts +12 -0
- package/data/api/fetchVtex.d.ts +5 -0
- 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/api/search/autoCompleteSuggestions/index.d.ts +11 -0
- package/data/api/search/crosseling/index.d.ts +91 -0
- package/data/api/search/facets/index.d.ts +4 -0
- package/data/api/search/index.d.ts +6 -0
- package/data/api/search/product/index.d.ts +3 -0
- package/data/api/search/searchFetch.d.ts +3 -0
- package/data/api/search/suggestedTerms/index.d.ts +12 -0
- package/data/api/search/topSearch/index.d.ts +3 -0
- package/data/api/wishlist/products/index.d.ts +3 -0
- package/data/helpers/cart/index.d.ts +247 -0
- package/data/helpers/catalog/index.d.ts +38 -0
- package/data/helpers/cms/index.d.ts +10 -0
- package/data/helpers/events/index.d.ts +29 -0
- package/data/helpers/plp/index.d.ts +85 -0
- package/data/helpers/product/generalInfo.d.ts +19 -0
- package/data/helpers/product/image.d.ts +17 -0
- package/data/helpers/product/index.d.ts +7 -0
- package/data/helpers/product/orderSizes.d.ts +3 -0
- package/data/helpers/product/price.d.ts +5 -0
- package/data/helpers/product/skuInfos.d.ts +21 -0
- package/data/helpers/product/thumb.d.ts +3 -0
- package/data/helpers/search/facets.d.ts +48 -0
- package/data/helpers/search/index.d.ts +12 -0
- package/data/helpers/search/product/index.d.ts +279 -0
- package/data/helpers/search/product/utils/canonical.d.ts +1 -0
- package/data/helpers/search/product/utils/enhanceSku.d.ts +9 -0
- package/data/helpers/search/product/utils/images.d.ts +7 -0
- package/data/helpers/search/product/utils/productStock.d.ts +7 -0
- package/data/helpers/search/product/utils/propertyValue.d.ts +20 -0
- package/data/helpers/search/product/utils/sanitizeHtml.d.ts +18 -0
- package/data/helpers/search/product/utils/sku.d.ts +5 -0
- package/data/helpers/search/product/utils/slugify.d.ts +1 -0
- package/data/helpers/search/root.d.ts +11 -0
- package/data/helpers/search/search.d.ts +9 -0
- package/data/helpers/utils/cms.d.ts +4 -0
- package/data/helpers/utils/cookies.d.ts +2 -0
- package/data/helpers/utils/debounce.d.ts +1 -0
- package/data/helpers/utils/generateSlug.d.ts +1 -0
- package/data/helpers/utils/getAltTextFromUrl.d.ts +1 -0
- package/data/helpers/utils/getAuthenticatedUser.d.ts +4 -0
- package/data/helpers/utils/index.d.ts +8 -0
- package/data/helpers/utils/inputValidation.d.ts +7 -0
- package/data/helpers/utils/stringToSHA1.d.ts +1 -0
- package/data/helpers/utils/throttle.d.ts +1 -0
- package/data/helpers/utils/timer.d.ts +2 -0
- package/data/index.d.ts +14 -0
- package/index-BNgFxeJv.js +4 -0
- package/index-CTiZEtIS.mjs +1906 -0
- package/index-D_ZsOrBB.mjs +1924 -0
- package/index-DlymQH4i.js +4 -0
- package/index.d.ts +5 -0
- package/index.js +58 -0
- package/index.mjs +20192 -0
- package/index2.js +1 -0
- package/index2.mjs +1729 -0
- package/layout/index.d.ts +349 -0
- package/layout/team-component/AddToCart/AddToCart.d.ts +37 -0
- package/layout/team-component/AddToCart/Composite/Card/Card.d.ts +7 -0
- package/layout/team-component/AddToCart/Composite/Card/Content.d.ts +7 -0
- package/layout/team-component/AddToCart/Composite/Card/Media.d.ts +7 -0
- package/layout/team-component/AddToCart/Composite/Card/Name.d.ts +7 -0
- package/layout/team-component/AddToCart/Composite/Card/PriceQuantity.d.ts +7 -0
- package/layout/team-component/AddToCart/Composite/Card/StyleSize.d.ts +7 -0
- package/layout/team-component/AddToCart/Composite/Layout/Content.d.ts +9 -0
- package/layout/team-component/AddToCart/Composite/Layout/Footer.d.ts +9 -0
- package/layout/team-component/AddToCart/Composite/Layout/Items.d.ts +9 -0
- package/layout/team-component/AddToCart/Composite/Modal.d.ts +7 -0
- package/layout/team-component/AddToCart/Composite/Root.d.ts +7 -0
- package/layout/team-component/AddToCart/Composite/Tooltip.d.ts +7 -0
- package/layout/team-component/AddToCart/helpers.d.ts +5 -0
- package/layout/team-component/AddToCart/index.d.ts +7 -0
- package/layout/team-component/BackToTop/BackToTop.d.ts +4 -0
- package/layout/team-component/BackToTop/index.d.ts +1 -0
- package/layout/team-component/BuyPackage/BuyPackage.d.ts +4 -0
- package/layout/team-component/BuyPackage/Composite/GroupCart.d.ts +4 -0
- package/layout/team-component/BuyPackage/Composite/Header.d.ts +4 -0
- package/layout/team-component/BuyPackage/helpers.d.ts +5 -0
- package/layout/team-component/BuyPackage/index.d.ts +1 -0
- package/layout/team-component/Filter/Composite/Content.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Empty.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/Colors.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/Price/Label.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/Price/Price.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/Price/index.d.ts +1 -0
- package/layout/team-component/Filter/Composite/Item/Sizes.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/Toggle.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/index.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Loading.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Modal.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Root.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Selected.d.ts +7 -0
- package/layout/team-component/Filter/Filter.d.ts +47 -0
- package/layout/team-component/Filter/helpers.d.ts +8 -0
- package/layout/team-component/Filter/index.d.ts +2 -0
- package/layout/team-component/Footer/Composite/Devices/Column.Desktop.d.ts +4 -0
- package/layout/team-component/Footer/Composite/Devices/Column.Mobile.d.ts +4 -0
- package/layout/team-component/Footer/Composite/Devices/Index.d.ts +4 -0
- package/layout/team-component/Footer/Composite/Item.d.ts +4 -0
- package/layout/team-component/Footer/Composite/LegalInformation.d.ts +4 -0
- package/layout/team-component/Footer/Composite/OtherCollection.d.ts +5 -0
- package/layout/team-component/Footer/Composite/Stamps.d.ts +5 -0
- package/layout/team-component/Footer/Composite/Support/index.d.ts +3 -0
- package/layout/team-component/Footer/Composite/Support/item.d.ts +3 -0
- package/layout/team-component/Footer/Composite/Wrapper.d.ts +7 -0
- package/layout/team-component/Footer/Footer.d.ts +7 -0
- package/layout/team-component/Footer/index.d.ts +4 -0
- package/layout/team-component/Form/Composite/Content.d.ts +4 -0
- package/layout/team-component/Form/Composite/FieldGroup.d.ts +7 -0
- package/layout/team-component/Form/Composite/FieldWrapper.d.ts +7 -0
- package/layout/team-component/Form/Composite/FormError.d.ts +4 -0
- package/layout/team-component/Form/Composite/Success.d.ts +4 -0
- package/layout/team-component/Form/Composite/index.d.ts +4 -0
- package/layout/team-component/Form/Form.d.ts +11 -0
- package/layout/team-component/Form/FormContext.d.ts +5 -0
- package/layout/team-component/Form/index.d.ts +1 -0
- package/layout/team-component/FreightCalculation/Composite/Freight/DeliveryInfo.d.ts +4 -0
- package/layout/team-component/FreightCalculation/Composite/Freight/Option.d.ts +4 -0
- package/layout/team-component/FreightCalculation/Composite/Freight/OptionContainer.d.ts +4 -0
- package/layout/team-component/FreightCalculation/Composite/Freight/OptionGrid.d.ts +4 -0
- package/layout/team-component/FreightCalculation/Composite/PostalCode/Container.d.ts +4 -0
- package/layout/team-component/FreightCalculation/Composite/PostalCode/DeliveryInfoBar.d.ts +4 -0
- package/layout/team-component/FreightCalculation/Composite/PostalCode/Input.d.ts +4 -0
- package/layout/team-component/FreightCalculation/Composite/ShippingFreight.d.ts +4 -0
- package/layout/team-component/FreightCalculation/Composite/ShippingFreightContainer.d.ts +4 -0
- package/layout/team-component/FreightCalculation/Composite/Tooltip.d.ts +7 -0
- package/layout/team-component/FreightCalculation/FreightCalculation.d.ts +4 -0
- package/layout/team-component/FreightCalculation/helpers.d.ts +4 -0
- package/layout/team-component/FreightCalculation/index.d.ts +1 -0
- package/layout/team-component/Header/Composite/Bag.d.ts +7 -0
- package/layout/team-component/Header/Composite/Categories.d.ts +5 -0
- package/layout/team-component/Header/Composite/HeaderDesktopWrapper.d.ts +9 -0
- package/layout/team-component/Header/Composite/HeaderMobileWrapper.d.ts +9 -0
- package/layout/team-component/Header/Composite/SearchButton.d.ts +2 -0
- package/layout/team-component/Header/Composite/SubMenu.d.ts +5 -0
- package/layout/team-component/Header/Composite/WishList.d.ts +5 -0
- package/layout/team-component/Header/index.d.ts +7 -0
- package/layout/team-component/HelpButton/Composite/Body.d.ts +4 -0
- package/layout/team-component/HelpButton/Composite/CallToAction.d.ts +7 -0
- package/layout/team-component/HelpButton/Composite/Wrapper.d.ts +4 -0
- package/layout/team-component/HelpButton/HelpButton.d.ts +4 -0
- package/layout/team-component/HelpButton/index.d.ts +1 -0
- package/layout/team-component/ImageZoom/Composite/ButtonClose.d.ts +4 -0
- package/layout/team-component/ImageZoom/Composite/Common/BlurImage.d.ts +3 -0
- package/layout/team-component/ImageZoom/Composite/Desktop/ImageDesktop.d.ts +5 -0
- package/layout/team-component/ImageZoom/Composite/Desktop/ImagesThumbs.d.ts +5 -0
- package/layout/team-component/ImageZoom/Composite/Desktop/WrapperDesktop.d.ts +4 -0
- package/layout/team-component/ImageZoom/Composite/Mobile/Carousel.d.ts +7 -0
- package/layout/team-component/ImageZoom/Composite/Mobile/ImageMobile.d.ts +7 -0
- package/layout/team-component/ImageZoom/Composite/Mobile/ImageZoom.d.ts +7 -0
- package/layout/team-component/ImageZoom/Composite/Mobile/WrapperMobile.d.ts +4 -0
- package/layout/team-component/ImageZoom/Composite/Mobile/ZoomPopup.d.ts +7 -0
- package/layout/team-component/ImageZoom/ImageZoom.d.ts +7 -0
- package/layout/team-component/ImageZoom/index.d.ts +1 -0
- package/layout/team-component/Link/Link.d.ts +4 -0
- package/layout/team-component/Link/index.d.ts +1 -0
- package/layout/team-component/Link/interfaces.d.ts +17 -0
- package/layout/team-component/Media/Image.d.ts +4 -0
- package/layout/team-component/Media/Video.d.ts +4 -0
- package/layout/team-component/Media/index.d.ts +5 -0
- package/layout/team-component/Menu/Composite/Common/Thumbnail.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Desktop/Categories.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Desktop/MenuRoot.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Desktop/SubCategories/SubCategories.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Mobile/Body/Body.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Mobile/Body/Category/Banner.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Mobile/Body/Category/Category.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Mobile/Body/Category/List.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Mobile/Body/Category/SubCategory.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Mobile/Body/Category/Title.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Mobile/Body/Category/index.d.ts +22 -0
- package/layout/team-component/Menu/Composite/Mobile/Header/Header.d.ts +5 -0
- package/layout/team-component/Menu/Composite/Mobile/MenuRoot.d.ts +4 -0
- package/layout/team-component/Menu/Composite/Mobile/Navigation/Bar.d.ts +5 -0
- package/layout/team-component/Menu/Composite/Mobile/Navigation/BarItem.d.ts +7 -0
- package/layout/team-component/Menu/MenuDesktop.d.ts +15 -0
- package/layout/team-component/Menu/MenuMobile.d.ts +18 -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/team-component/Notify/Composite/Controls.d.ts +7 -0
- package/layout/team-component/Notify/Composite/Form.d.ts +7 -0
- package/layout/team-component/Notify/Composite/Loading.d.ts +7 -0
- package/layout/team-component/Notify/Composite/Selector.d.ts +7 -0
- package/layout/team-component/Notify/Composite/Status.d.ts +7 -0
- package/layout/team-component/Notify/helpers.d.ts +3 -0
- package/layout/team-component/Notify/index.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/BreadCrumb.d.ts +5 -0
- package/layout/team-component/PLPNavigation/Composite/Content.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Filters.d.ts +5 -0
- package/layout/team-component/PLPNavigation/Composite/Root.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Selected/Item.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Selected/Selected.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Selected/index.d.ts +1 -0
- package/layout/team-component/PLPNavigation/Composite/Selected/interfaces.d.ts +10 -0
- package/layout/team-component/PLPNavigation/Composite/Total.d.ts +5 -0
- package/layout/team-component/PLPNavigation/PLPNavigation.d.ts +31 -0
- package/layout/team-component/PLPNavigation/index.d.ts +1 -0
- package/layout/team-component/ProductCard/Composite/Actions/Actions.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Actions/BuyButton.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Actions/Header.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Media/Media.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Media/Video.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/OutStock.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Price.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Root.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Selectors/SizeSelector/Item.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Selectors/SizeSelector/SkuItem.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Selectors/SizeSelector.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Selectors/StyleSelector.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Title.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Wrapper.d.ts +7 -0
- package/layout/team-component/ProductCard/ProductCard.d.ts +51 -0
- package/layout/team-component/ProductCard/index.d.ts +1 -0
- package/layout/team-component/ProductList/Composite/Banner.d.ts +7 -0
- package/layout/team-component/ProductList/Composite/Card/Actions.d.ts +7 -0
- package/layout/team-component/ProductList/Composite/Card/Card.d.ts +7 -0
- package/layout/team-component/ProductList/Composite/Card/index.d.ts +1 -0
- package/layout/team-component/ProductList/Composite/Root.d.ts +7 -0
- package/layout/team-component/ProductList/ProductList.d.ts +17 -0
- package/layout/team-component/ProductList/helpers.d.ts +13 -0
- package/layout/team-component/ProductList/index.d.ts +2 -0
- package/layout/team-component/ProductVariationList/Composite/List.d.ts +7 -0
- package/layout/team-component/ProductVariationList/Composite/Option.d.ts +7 -0
- package/layout/team-component/ProductVariationList/Composite/Root.d.ts +7 -0
- package/layout/team-component/ProductVariationList/Composite/Title.d.ts +7 -0
- package/layout/team-component/ProductVariationList/ProductVariationList.d.ts +19 -0
- package/layout/team-component/ProductVariationList/index.d.ts +1 -0
- package/layout/team-component/Sort/Composite/Button.d.ts +4 -0
- package/layout/team-component/Sort/Composite/Item.d.ts +4 -0
- package/layout/team-component/Sort/Composite/List.d.ts +4 -0
- package/layout/team-component/Sort/Composite/ListWrapper.d.ts +4 -0
- package/layout/team-component/Sort/Composite/Root.d.ts +4 -0
- package/layout/team-component/Sort/Sort.d.ts +7 -0
- package/layout/team-component/Sort/index.d.ts +1 -0
- package/layout/team-component/Table/Composite/Head.d.ts +4 -0
- package/layout/team-component/Table/Composite/Root.d.ts +4 -0
- package/layout/team-component/Table/Composite/Rows.d.ts +4 -0
- package/layout/team-component/Table/Table.d.ts +6 -0
- package/layout/team-component/Table/index.d.ts +1 -0
- package/layout/team-component/Timer/index.d.ts +4 -0
- package/layout/team-component/TipBar/Composite/Fields/Copy.d.ts +3 -0
- package/layout/team-component/TipBar/Composite/Fields/CountDown.d.ts +3 -0
- package/layout/team-component/TipBar/Composite/Fields/Coupon.d.ts +3 -0
- package/layout/team-component/TipBar/Composite/Fields/FieldsScreening.d.ts +3 -0
- package/layout/team-component/TipBar/Composite/Fields/TextContent.d.ts +3 -0
- package/layout/team-component/TipBar/Composite/Root.d.ts +7 -0
- package/layout/team-component/TipBar/Composite/Structure/Carousel.d.ts +9 -0
- package/layout/team-component/TipBar/Composite/Structure/Container.d.ts +3 -0
- package/layout/team-component/TipBar/Composite/Structure/Item.d.ts +3 -0
- package/layout/team-component/TipBar/Composite/Support/CloseBtn.d.ts +3 -0
- package/layout/team-component/TipBar/index.d.ts +7 -0
- package/layout/team-component/UserMenu/Composite/Content.d.ts +7 -0
- package/layout/team-component/UserMenu/Composite/Credits.d.ts +7 -0
- package/layout/team-component/UserMenu/Composite/Login.d.ts +10 -0
- package/layout/team-component/UserMenu/Composite/Menu.d.ts +7 -0
- package/layout/team-component/UserMenu/Composite/Modal.d.ts +7 -0
- package/layout/team-component/UserMenu/Composite/Root.d.ts +7 -0
- package/layout/team-component/UserMenu/Composite/Tooltip.d.ts +7 -0
- package/layout/team-component/UserMenu/UserMenu.d.ts +34 -0
- package/layout/team-component/UserMenu/helpers.d.ts +7 -0
- package/layout/team-component/UserMenu/index.d.ts +7 -0
- package/layout/template/LPCadastro/index.d.ts +3 -0
- package/layout/template/MiniCart/Composite/Card/Card.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Card/Composite/Actions.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Card/Composite/Gift.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Card/Composite/Media.d.ts +9 -0
- package/layout/template/MiniCart/Composite/Card/Composite/Name.d.ts +10 -0
- package/layout/template/MiniCart/Composite/Card/Composite/Price.d.ts +8 -0
- package/layout/template/MiniCart/Composite/Card/Composite/Sku.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Card/Composite/Stepper.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Card/Composite/Style.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Card/Composite/Wishlist.d.ts +4 -0
- package/layout/template/MiniCart/Composite/Card/helpers.d.ts +8 -0
- package/layout/template/MiniCart/Composite/Card/index.d.ts +45 -0
- package/layout/template/MiniCart/Composite/Cashback.d.ts +7 -0
- package/layout/template/MiniCart/Composite/CouponSeller/CouponSeller.d.ts +7 -0
- package/layout/template/MiniCart/Composite/CouponSeller/index.d.ts +1 -0
- package/layout/template/MiniCart/Composite/Feedback.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Field/Field.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Field/Input.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Field/index.d.ts +1 -0
- 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 +7 -0
- package/layout/template/MiniCart/Composite/Modal/Footer/Discount/index.d.ts +1 -0
- package/layout/template/MiniCart/Composite/Modal/Footer/Footer.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Modal/Footer/Resume/Items.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Modal/Footer/Resume/Totals.d.ts +5 -0
- package/layout/template/MiniCart/Composite/Modal/Footer/index.d.ts +1 -0
- package/layout/template/MiniCart/Composite/Modal/Header.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Notifications/Item/Item.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Notifications/Item/index.d.ts +1 -0
- package/layout/template/MiniCart/Composite/Notifications/Notifications.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Notifications/index.d.ts +1 -0
- package/layout/template/MiniCart/Composite/Shipping/Shipping.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Shipping/index.d.ts +1 -0
- package/layout/template/MiniCart/Composite/TagMessage.d.ts +5 -0
- package/layout/template/MiniCart/Composite/Variations/Options.d.ts +17 -0
- package/layout/template/MiniCart/Composite/Variations/ProductVariations.d.ts +4 -0
- package/layout/template/MiniCart/Composite/Variations/VariationList.d.ts +3 -0
- package/layout/template/MiniCart/MiniCart.d.ts +4 -0
- package/layout/template/MiniCart/helpers.d.ts +7 -0
- package/layout/template/MiniCart/index.d.ts +51 -0
- package/layout/template/PDC/Composite/Empty/Empty.d.ts +7 -0
- package/layout/template/PDC/Composite/Empty/index.d.ts +1 -0
- package/layout/template/PDC/Composite/Filters/Filters.d.ts +5 -0
- package/layout/template/PDC/Composite/Filters/helpers.d.ts +4 -0
- package/layout/template/PDC/Composite/Filters/index.d.ts +1 -0
- package/layout/template/PDC/Composite/Grid/Banners.d.ts +7 -0
- package/layout/template/PDC/Composite/Grid/Grid.d.ts +7 -0
- package/layout/template/PDC/Composite/Grid/NavigationTotal.d.ts +7 -0
- package/layout/template/PDC/Composite/Grid/index.d.ts +1 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +7 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Banners/index.d.ts +1 -0
- package/layout/template/PDC/Composite/InfiniteScroller/InfiniteScroller.d.ts +5 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Loading/Loading.d.ts +7 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Loading/index.d.ts +1 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Anchor.d.ts +7 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +7 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +9 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +7 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +7 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +21 -0
- package/layout/template/PDC/Composite/InfiniteScroller/index.d.ts +1 -0
- package/layout/template/PDC/Composite/Navigation/Navigation.d.ts +5 -0
- package/layout/template/PDC/Composite/Navigation/index.d.ts +1 -0
- package/layout/template/PDC/Composite/Notification/Notification.d.ts +7 -0
- package/layout/template/PDC/Composite/Notification/index.d.ts +1 -0
- package/layout/template/PDC/Composite/Pagination/Arrow/Arrow.d.ts +7 -0
- package/layout/template/PDC/Composite/Pagination/Arrow/index.d.ts +1 -0
- package/layout/template/PDC/Composite/Pagination/Arrow/interfaces.d.ts +8 -0
- package/layout/template/PDC/Composite/Pagination/Layout/Layout.d.ts +7 -0
- package/layout/template/PDC/Composite/Pagination/Layout/index.d.ts +1 -0
- package/layout/template/PDC/Composite/Pagination/PageEllipses/PageEllipses.d.ts +7 -0
- package/layout/template/PDC/Composite/Pagination/PageEllipses/index.d.ts +1 -0
- package/layout/template/PDC/Composite/Pagination/PageEllipses/interfaces.d.ts +10 -0
- package/layout/template/PDC/Composite/Pagination/Pages/Pages.d.ts +7 -0
- package/layout/template/PDC/Composite/Pagination/Pages/index.d.ts +1 -0
- package/layout/template/PDC/Composite/Pagination/Pages/interfaces.d.ts +7 -0
- package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +7 -0
- package/layout/template/PDC/Composite/Pagination/helpers.d.ts +11 -0
- package/layout/template/PDC/Composite/Pagination/index.d.ts +1 -0
- package/layout/template/PDC/Composite/Products/Products.d.ts +7 -0
- package/layout/template/PDC/Composite/Products/index.d.ts +1 -0
- package/layout/template/PDC/Composite/Spinner/index.d.ts +7 -0
- package/layout/template/PDC/PDC.d.ts +7 -0
- package/layout/template/PDC/index.d.ts +39 -0
- package/layout/template/PDP/Composite/BreadCrumb/index.d.ts +7 -0
- package/layout/template/PDP/Composite/Containers/Gallery.d.ts +3 -0
- package/layout/template/PDP/Composite/Containers/Main.d.ts +3 -0
- package/layout/template/PDP/Composite/Containers/PDP.d.ts +3 -0
- package/layout/template/PDP/Composite/Containers/Secondary.d.ts +3 -0
- package/layout/template/PDP/Composite/Containers/index.d.ts +6 -0
- package/layout/template/PDP/Composite/Credits/index.d.ts +7 -0
- package/layout/template/PDP/Composite/Gallery/Carousel.d.ts +13 -0
- package/layout/template/PDP/Composite/Gallery/Image.d.ts +9 -0
- package/layout/template/PDP/Composite/Gallery/Video.d.ts +6 -0
- package/layout/template/PDP/Composite/Gallery/Wrapper.d.ts +4 -0
- package/layout/template/PDP/Composite/Gallery/index.d.ts +7 -0
- package/layout/template/PDP/Composite/Info/Divider.d.ts +4 -0
- package/layout/template/PDP/Composite/Info/MainContent/Actions/AddToCart.d.ts +4 -0
- package/layout/template/PDP/Composite/Info/MainContent/Actions/AddToCartObserver.d.ts +6 -0
- package/layout/template/PDP/Composite/Info/MainContent/Actions/AddToWishlist.d.ts +4 -0
- package/layout/template/PDP/Composite/Info/MainContent/Actions/index.d.ts +4 -0
- package/layout/template/PDP/Composite/Info/MainContent/BottomNavigation/Actions.d.ts +4 -0
- package/layout/template/PDP/Composite/Info/MainContent/BottomNavigation/index.d.ts +4 -0
- package/layout/template/PDP/Composite/Info/MainContent/Header/GoldenTag.d.ts +9 -0
- package/layout/template/PDP/Composite/Info/MainContent/Header/index.d.ts +8 -0
- package/layout/template/PDP/Composite/Info/MainContent/Links/index.d.ts +4 -0
- package/layout/template/PDP/Composite/Info/MainContent/Price/index.d.ts +4 -0
- package/layout/template/PDP/Composite/Info/MainContent/ProductMeasurements/index.d.ts +4 -0
- package/layout/template/PDP/Composite/Info/MainContent/Root.d.ts +4 -0
- package/layout/template/PDP/Composite/Info/MainContent/Similars/AccessibilityInfo.d.ts +2 -0
- package/layout/template/PDP/Composite/Info/MainContent/Similars/Items.d.ts +4 -0
- package/layout/template/PDP/Composite/Info/MainContent/Similars/ToggleWrapper.d.ts +4 -0
- package/layout/template/PDP/Composite/Info/MainContent/Similars/index.d.ts +3 -0
- package/layout/template/PDP/Composite/Info/MainContent/Sizes/index.d.ts +4 -0
- package/layout/template/PDP/Composite/Info/MainContent/SubSectionWrapper.d.ts +4 -0
- package/layout/template/PDP/Composite/Info/Root.d.ts +6 -0
- package/layout/template/PDP/Composite/Info/SecondaryContent/DescriptionsTabs.d.ts +2 -0
- package/layout/template/PDP/Composite/Info/SecondaryContent/Freight.d.ts +4 -0
- package/layout/template/PDP/index.d.ts +21 -0
- package/layout/template/QuickShop/Composite/Body.d.ts +4 -0
- package/layout/template/QuickShop/Composite/Header.d.ts +3 -0
- package/layout/template/QuickShop/Composite/Similars.d.ts +7 -0
- package/layout/template/QuickShop/index.d.ts +3 -0
- 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 +5 -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/layout/template/SearchResult/Composite/Empty.d.ts +7 -0
- package/layout/template/SearchResult/Composite/Grid.d.ts +7 -0
- package/layout/template/SearchResult/Composite/GridHeader.d.ts +3 -0
- package/layout/template/SearchResult/Composite/Loading.d.ts +7 -0
- package/layout/template/SearchResult/Composite/Sort.d.ts +4 -0
- package/layout/template/SearchResult/SearchContent.d.ts +4 -0
- package/layout/template/SearchResult/SearchResult.d.ts +7 -0
- package/layout/template/SearchResult/index.d.ts +1 -0
- package/layout/template/WishList/Composite/Feedback.d.ts +11 -0
- package/layout/template/WishList/Composite/Grid.d.ts +7 -0
- package/layout/template/WishList/Composite/Init.d.ts +11 -0
- package/layout/template/WishList/Composite/Toggle.d.ts +7 -0
- package/layout/template/WishList/WishList.d.ts +26 -0
- package/layout/template/WishList/helpers.d.ts +12 -0
- package/layout/template/WishList/index.d.ts +1 -0
- package/layout/utils/DraftJsLinkWrapper/index.d.ts +4 -0
- package/layout/utils/ErrorBoundary/index.d.ts +17 -0
- package/layout/utils/EventCollector/index.d.ts +5 -0
- package/layout/utils/ExternalScripts/index.d.ts +5 -0
- package/layout/utils/LinkOrNotLink/index.d.ts +4 -0
- package/layout/utils/Observer/index.d.ts +4 -0
- package/layout/utils/ObserverOrNot/index.d.ts +10 -0
- package/layout/utils/ProductShelf/Composite/Card.d.ts +7 -0
- package/layout/utils/ProductShelf/Composite/Shelf.d.ts +4 -0
- package/layout/utils/ProductShelf/Composite/Title.d.ts +4 -0
- package/layout/utils/ProductShelf/index.d.ts +8 -0
- package/layout/utils/SessionEvent/index.d.ts +3 -0
- package/layout/utils/Skeleton/index.d.ts +2 -0
- package/layout/utils/SnackBar/index.d.ts +7 -0
- package/package.json +20 -0
- package/scripts/helpers/index.d.ts +3 -0
- package/scripts/index.d.ts +4 -0
- package/server.d.ts +58 -0
- package/style.css +1 -0
- package/types/cms/ContentTypes/Cart/index.d.ts +46 -0
- package/types/cms/ContentTypes/CommonPage/index.d.ts +34 -0
- package/types/cms/ContentTypes/FlagsAndTags/index.d.ts +56 -0
- package/types/cms/ContentTypes/Footer/index.d.ts +91 -0
- package/types/cms/ContentTypes/Header/index.d.ts +62 -0
- package/types/cms/ContentTypes/HelpButton/index.d.ts +48 -0
- package/types/cms/ContentTypes/LPLojas/index.d.ts +12 -0
- package/types/cms/ContentTypes/LookbookPage/index.d.ts +43 -0
- package/types/cms/ContentTypes/Multimarcas/index.d.ts +5 -0
- package/types/cms/ContentTypes/NotFoundPage/index.d.ts +17 -0
- package/types/cms/ContentTypes/PDP/index.d.ts +21 -0
- package/types/cms/ContentTypes/PLP/index.d.ts +47 -0
- package/types/cms/ContentTypes/PolicyPage/index.d.ts +38 -0
- package/types/cms/ContentTypes/PreHome/index.d.ts +21 -0
- package/types/cms/ContentTypes/Redirects/index.d.ts +25 -0
- package/types/cms/ContentTypes/Search/index.d.ts +31 -0
- package/types/cms/ContentTypes/Tipbar/index.d.ts +55 -0
- package/types/cms/ContentTypes/Wishlist/index.d.ts +17 -0
- package/types/cms/Factories/index.d.ts +69 -0
- package/types/cms/Sections/Banner/index.d.ts +50 -0
- package/types/cms/Sections/BannerCarousel/index.d.ts +37 -0
- package/types/cms/Sections/BennefitsBar/index.d.ts +23 -0
- package/types/cms/Sections/EmbedLive/index.d.ts +13 -0
- package/types/cms/Sections/HeaderSubmenu/index.d.ts +35 -0
- package/types/cms/Sections/ImageGrid/index.d.ts +10 -0
- package/types/cms/Sections/ListProductsBanners/index.d.ts +13 -0
- package/types/cms/Sections/Newsletter/index.d.ts +26 -0
- package/types/cms/Sections/PopupModal/index.d.ts +26 -0
- package/types/cms/Sections/ProductCarousel/index.d.ts +84 -0
- package/types/cms/Sections/SectionZone/index.d.ts +83 -0
- package/types/cms/Sections/TextAccordion/index.d.ts +15 -0
- package/types/cms/Sections/TextContent/index.d.ts +35 -0
- package/types/cms/Sections/_common/index.d.ts +8 -0
- package/types/constants.d.ts +378 -0
- package/types/contexts/contexts/cart/index.d.ts +17 -0
- package/types/contexts/contexts/cms/FlagsAndTags.d.ts +9 -0
- package/types/contexts/contexts/global.d.ts +20 -0
- package/types/contexts/contexts/header.d.ts +32 -0
- package/types/contexts/contexts/next.d.ts +11 -0
- package/types/contexts/contexts/pdp.d.ts +77 -0
- package/types/contexts/contexts/plp.d.ts +99 -0
- package/types/contexts/contexts/search.d.ts +84 -0
- package/types/contexts/contexts/session.d.ts +87 -0
- package/types/contexts/hooks/index.d.ts +19 -0
- package/types/contexts/store/cart.d.ts +212 -0
- package/types/contexts/store/header.d.ts +18 -0
- package/types/contexts/store/helpers.d.ts +7 -0
- package/types/contexts/store/pdp.d.ts +21 -0
- package/types/contexts/store/wishlist.d.ts +17 -0
- package/types/data/api/catalog/kit/index.d.ts +0 -0
- package/types/data/api/catalog/portal/index.d.ts +26 -0
- package/types/data/api/catalog/product/index.d.ts +50 -0
- package/types/data/api/checkout/address/index.d.ts +20 -0
- package/types/data/api/checkout/order-form/index.d.ts +328 -0
- package/types/data/api/checkout/order-form/profile/index.d.ts +17 -0
- package/types/data/api/checkout/order-form/shipping/index.d.ts +23 -0
- package/types/data/api/checkout/simulation/index.d.ts +64 -0
- package/types/data/api/cms/index.d.ts +18 -0
- package/types/data/api/dito-ingest/index.d.ts +65 -0
- package/types/data/api/index.d.ts +16 -0
- package/types/data/api/search/facets/index.d.ts +89 -0
- package/types/data/api/search/index.d.ts +149 -0
- package/types/data/api/search/product/index.d.ts +70 -0
- package/types/data/events/index.d.ts +113 -0
- package/types/data/helpers/index.d.ts +42 -0
- package/types/global/product/index.d.ts +419 -0
- package/types/layout/team-components/AddToCart/index.d.ts +87 -0
- package/types/layout/team-components/BackToTop/index.d.ts +11 -0
- package/types/layout/team-components/BuyPackage/index.d.ts +61 -0
- package/types/layout/team-components/Filter/Item/Price/index.d.ts +6 -0
- package/types/layout/team-components/Filter/Item/index.d.ts +29 -0
- package/types/layout/team-components/Filter/index.d.ts +76 -0
- package/types/layout/team-components/Footer/index.d.ts +61 -0
- package/types/layout/team-components/Form/index.d.ts +45 -0
- package/types/layout/team-components/FreightCalculation/index.d.ts +284 -0
- package/types/layout/team-components/Header/index.d.ts +81 -0
- package/types/layout/team-components/HelpButton/index.d.ts +31 -0
- package/types/layout/team-components/ImageZoom/index.d.ts +70 -0
- package/types/layout/team-components/Media/index.d.ts +12 -0
- package/types/layout/team-components/Menu/Desktop/index.d.ts +15 -0
- package/types/layout/team-components/Menu/Mobile/Body/Category/index.d.ts +23 -0
- package/types/layout/team-components/Menu/Mobile/Body/index.d.ts +3 -0
- package/types/layout/team-components/Menu/Mobile/index.d.ts +52 -0
- package/types/layout/team-components/Menu/index.d.ts +13 -0
- package/types/layout/team-components/Newsletter/index.d.ts +101 -0
- package/types/layout/team-components/Notify/index.d.ts +52 -0
- package/types/layout/team-components/PLPNavigation/index.d.ts +27 -0
- package/types/layout/team-components/PreHome/index.d.ts +6 -0
- package/types/layout/team-components/ProductCard/Selectors/index.d.ts +49 -0
- package/types/layout/team-components/ProductCard/index.d.ts +86 -0
- package/types/layout/team-components/ProductList/index.d.ts +53 -0
- package/types/layout/team-components/ProductVariationList/index.d.ts +15 -0
- package/types/layout/team-components/Sort/index.d.ts +21 -0
- package/types/layout/team-components/Table/index.d.ts +22 -0
- package/types/layout/team-components/Timer/index.d.ts +15 -0
- package/types/layout/team-components/TipBar/index.d.ts +69 -0
- package/types/layout/team-components/UserMenu/index.d.ts +57 -0
- package/types/layout/templates/LPCadastro/index.d.ts +33 -0
- package/types/layout/templates/MiniCart/index.d.ts +198 -0
- package/types/layout/templates/Multimarcas/index.d.ts +28 -0
- package/types/layout/templates/PDP/index.d.ts +149 -0
- package/types/layout/templates/PLP/index.d.ts +124 -0
- package/types/layout/templates/QuickShop/index.d.ts +22 -0
- package/types/layout/templates/SearchModal/index.d.ts +41 -0
- package/types/layout/templates/SearchResult/index.d.ts +44 -0
- package/types/layout/templates/Wishlist/index.d.ts +21 -0
- package/types/layout/utils/index.d.ts +47 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { FetchFunctionsProps } from '../../../../types/data/api';
|
|
2
|
+
import * as yup from 'yup';
|
|
3
|
+
declare const schema: yup.ArraySchema<{
|
|
4
|
+
value: string;
|
|
5
|
+
key: string;
|
|
6
|
+
}[], yup.AnyObject, "", "">;
|
|
7
|
+
type SchemaType = yup.InferType<typeof schema>;
|
|
8
|
+
export declare function getSearchCrossellingProducts({ apiUrl, body, fetchOptions }: FetchFunctionsProps<SchemaType>): Promise<{
|
|
9
|
+
node: {
|
|
10
|
+
sku: any;
|
|
11
|
+
gtin: any;
|
|
12
|
+
name: any;
|
|
13
|
+
description: any;
|
|
14
|
+
releaseDate: any;
|
|
15
|
+
slug: any;
|
|
16
|
+
video: any;
|
|
17
|
+
categories: any;
|
|
18
|
+
categoriesIds: any;
|
|
19
|
+
collection: any;
|
|
20
|
+
collectionId: any;
|
|
21
|
+
id: any;
|
|
22
|
+
brand: {
|
|
23
|
+
name: any;
|
|
24
|
+
brandName: any;
|
|
25
|
+
};
|
|
26
|
+
seo: {
|
|
27
|
+
description: any;
|
|
28
|
+
title: any;
|
|
29
|
+
canonical: string;
|
|
30
|
+
};
|
|
31
|
+
cluster: {
|
|
32
|
+
generals: any;
|
|
33
|
+
highlights: never[];
|
|
34
|
+
};
|
|
35
|
+
availability: {
|
|
36
|
+
status: boolean;
|
|
37
|
+
};
|
|
38
|
+
breadcrumbList: {
|
|
39
|
+
itemListElement: any[];
|
|
40
|
+
numberOfItems: any;
|
|
41
|
+
};
|
|
42
|
+
image: {
|
|
43
|
+
alternateName: string;
|
|
44
|
+
url: string;
|
|
45
|
+
keywords: string;
|
|
46
|
+
}[];
|
|
47
|
+
offers: {
|
|
48
|
+
lowPrice: number;
|
|
49
|
+
highPrice: number;
|
|
50
|
+
offers: {
|
|
51
|
+
availability: boolean;
|
|
52
|
+
listPrice: number;
|
|
53
|
+
price: number;
|
|
54
|
+
priceValidUntil: string;
|
|
55
|
+
priceCurrency: string;
|
|
56
|
+
installments: import('../../../../types/global/product').InstallmentType[];
|
|
57
|
+
lowPrice: number;
|
|
58
|
+
quantity: number;
|
|
59
|
+
seller: {
|
|
60
|
+
identifier: string;
|
|
61
|
+
};
|
|
62
|
+
}[];
|
|
63
|
+
};
|
|
64
|
+
additionalProperty: ({
|
|
65
|
+
name: string;
|
|
66
|
+
value: Record<string, string>;
|
|
67
|
+
valueReference: "ATTACHMENT";
|
|
68
|
+
} | {
|
|
69
|
+
propertyID: string;
|
|
70
|
+
name: string;
|
|
71
|
+
value: string;
|
|
72
|
+
valueReference: {
|
|
73
|
+
valueReference: "ATTRIBUTE";
|
|
74
|
+
visible: boolean;
|
|
75
|
+
};
|
|
76
|
+
} | {
|
|
77
|
+
name: string;
|
|
78
|
+
value: string;
|
|
79
|
+
valueReference: "SPECIFICATION";
|
|
80
|
+
})[];
|
|
81
|
+
isVariantOf: {
|
|
82
|
+
productGroupID: any;
|
|
83
|
+
hasVariant: any;
|
|
84
|
+
};
|
|
85
|
+
installments: {
|
|
86
|
+
count: number;
|
|
87
|
+
value: number;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
}[] | undefined>;
|
|
91
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FetchFunctionsProps } from '../../../../types/data/api';
|
|
2
|
+
import * as yup from 'yup';
|
|
3
|
+
declare const schema: yup.ObjectSchema<{
|
|
4
|
+
query: string | undefined;
|
|
5
|
+
locale: string | undefined;
|
|
6
|
+
}, yup.AnyObject, {
|
|
7
|
+
query: undefined;
|
|
8
|
+
locale: undefined;
|
|
9
|
+
}, "">;
|
|
10
|
+
type SchemaType = yup.InferType<typeof schema>;
|
|
11
|
+
export declare function getSearchSuggestedTerms({ apiUrl, body, fetchOptions }: FetchFunctionsProps<SchemaType>): Promise<any>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { FetchPriority } from '../../../types/contexts/hooks';
|
|
2
|
+
import { OrderFormItem, OrderForm, SelectedAddress } from '../../../types/data/api/checkout/order-form';
|
|
3
|
+
import { AddToCart, CartItem, CartItemOptionalProps, CartItemStore, OrderFormConstants, NotificationsStore, OptionalOrderForm } from '../../../types/contexts/store/cart';
|
|
4
|
+
|
|
5
|
+
export declare const VALUE_REFERENCES: {
|
|
6
|
+
readonly attachment: "ATTACHMENT";
|
|
7
|
+
readonly specification: "SPECIFICATION";
|
|
8
|
+
readonly attribute: "ATTRIBUTE";
|
|
9
|
+
};
|
|
10
|
+
export declare const promiseDefault: Promise<boolean>;
|
|
11
|
+
export declare const initialState: {
|
|
12
|
+
id: string;
|
|
13
|
+
isOpen: boolean;
|
|
14
|
+
items: never[];
|
|
15
|
+
loading: boolean;
|
|
16
|
+
marketingData: null;
|
|
17
|
+
messages: never[];
|
|
18
|
+
openTextField: {};
|
|
19
|
+
paymentData: null;
|
|
20
|
+
shippingData: null;
|
|
21
|
+
totalizers: never[];
|
|
22
|
+
itemMetadata: never[];
|
|
23
|
+
recentlyAddedProducts: never[];
|
|
24
|
+
addCoupon: () => Promise<boolean>;
|
|
25
|
+
addItem: () => Promise<boolean>;
|
|
26
|
+
addSellerCode: () => Promise<boolean>;
|
|
27
|
+
addMarketingData: () => Promise<boolean>;
|
|
28
|
+
emptyCart: () => {};
|
|
29
|
+
removeItem: () => Promise<boolean>;
|
|
30
|
+
setIsOpen: () => {};
|
|
31
|
+
shipping: () => Promise<boolean>;
|
|
32
|
+
shippingUpdate: () => Promise<boolean>;
|
|
33
|
+
toggleServiceToProduct: () => Promise<boolean>;
|
|
34
|
+
updateItemQuantity: () => Promise<boolean>;
|
|
35
|
+
insertProfileEmail: () => Promise<boolean>;
|
|
36
|
+
setRecentlyAddedProducts: () => {};
|
|
37
|
+
};
|
|
38
|
+
export declare const isGift: (price: number) => price is 0;
|
|
39
|
+
export declare const getCategories: (productCategoryIds: string, productCategories: {
|
|
40
|
+
[key: string]: string;
|
|
41
|
+
}) => string[];
|
|
42
|
+
export declare const createItemOrder: (item: OrderFormItem, CONSTANTS?: OrderFormConstants) => CartItemStore;
|
|
43
|
+
export declare const addItemOrder: (items: CartItemStore[], item: AddToCart | AddToCart[]) => AddToCart[];
|
|
44
|
+
export declare const removeQuantity: (items: CartItemStore[], id: string) => {
|
|
45
|
+
updateItems: {
|
|
46
|
+
id: string;
|
|
47
|
+
index: number;
|
|
48
|
+
quantity: number;
|
|
49
|
+
seller: string;
|
|
50
|
+
}[];
|
|
51
|
+
filterItems: {
|
|
52
|
+
id: string;
|
|
53
|
+
index: number;
|
|
54
|
+
quantity: number;
|
|
55
|
+
seller: string;
|
|
56
|
+
}[];
|
|
57
|
+
};
|
|
58
|
+
export declare const updateQuantity: (items: CartItemStore[], id: string, quantity: number) => {
|
|
59
|
+
id: string;
|
|
60
|
+
index: number;
|
|
61
|
+
quantity: number;
|
|
62
|
+
seller: string;
|
|
63
|
+
sku: string;
|
|
64
|
+
}[];
|
|
65
|
+
export declare const findItemIndex: (items: CartItemStore[], id: string) => number;
|
|
66
|
+
export declare const findTotalizerValue: (totalizers: Array<{
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
value: number;
|
|
70
|
+
}>, id: string) => number;
|
|
71
|
+
export declare const getTotalizer: (items: CartItemStore[]) => {
|
|
72
|
+
totalItems: number;
|
|
73
|
+
total: number;
|
|
74
|
+
subTotal: number;
|
|
75
|
+
};
|
|
76
|
+
export declare const getTotalItems: (items?: CartItemStore[]) => number;
|
|
77
|
+
export declare const orderFormValues: (orderForm: OrderForm, CONSTANTS?: OrderFormConstants) => {
|
|
78
|
+
id: string;
|
|
79
|
+
items: CartItemStore[];
|
|
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;
|
|
91
|
+
messages: any[];
|
|
92
|
+
selectableGifts: any[];
|
|
93
|
+
totalizers: Array<{
|
|
94
|
+
id: string;
|
|
95
|
+
name: string;
|
|
96
|
+
value: number;
|
|
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;
|
|
141
|
+
};
|
|
142
|
+
export declare const updateItemSellerExternal: (items: CartItemStore[], productId: string) => boolean;
|
|
143
|
+
export declare const getSize: (item: CartItem, NAME_SPLIT_SYMBOL: string) => string;
|
|
144
|
+
export declare const getCode: (data: string, value: string, statusOk?: boolean) => {
|
|
145
|
+
code: number;
|
|
146
|
+
value: string;
|
|
147
|
+
statusOk: boolean;
|
|
148
|
+
};
|
|
149
|
+
export declare const wishlistArray: (productNode: CartItem, wishlist: CartItem[]) => {
|
|
150
|
+
slug: string;
|
|
151
|
+
sku: string;
|
|
152
|
+
name: string;
|
|
153
|
+
gtin: string;
|
|
154
|
+
id: string;
|
|
155
|
+
brand: {
|
|
156
|
+
name: string;
|
|
157
|
+
brandName: string;
|
|
158
|
+
};
|
|
159
|
+
isVariantOf: {
|
|
160
|
+
hasVariant: Array<{
|
|
161
|
+
sku: string;
|
|
162
|
+
name: string;
|
|
163
|
+
gtin: string;
|
|
164
|
+
id: string;
|
|
165
|
+
brand: {
|
|
166
|
+
name: string;
|
|
167
|
+
brandName: string;
|
|
168
|
+
};
|
|
169
|
+
isVariantOf: {
|
|
170
|
+
productGroupID: string;
|
|
171
|
+
name: string;
|
|
172
|
+
};
|
|
173
|
+
image: Array<{
|
|
174
|
+
url: string;
|
|
175
|
+
alternateName: string;
|
|
176
|
+
}>;
|
|
177
|
+
offers: {
|
|
178
|
+
lowPrice: number;
|
|
179
|
+
offers: Array<{
|
|
180
|
+
availability: string;
|
|
181
|
+
price: number;
|
|
182
|
+
listPrice: number;
|
|
183
|
+
quantity: number;
|
|
184
|
+
seller: {
|
|
185
|
+
identifier: string;
|
|
186
|
+
};
|
|
187
|
+
}>;
|
|
188
|
+
};
|
|
189
|
+
}>;
|
|
190
|
+
productGroupID: string;
|
|
191
|
+
name: string;
|
|
192
|
+
additionalProperty: Array<{
|
|
193
|
+
propertyID: string;
|
|
194
|
+
name: string;
|
|
195
|
+
value: any;
|
|
196
|
+
valueReference: string;
|
|
197
|
+
}>;
|
|
198
|
+
};
|
|
199
|
+
categories: Array<string>;
|
|
200
|
+
referenceId: Array<{
|
|
201
|
+
Key: string;
|
|
202
|
+
Value: string;
|
|
203
|
+
}>;
|
|
204
|
+
image: Array<{
|
|
205
|
+
url: string;
|
|
206
|
+
alternateName: string;
|
|
207
|
+
}>;
|
|
208
|
+
offers: {
|
|
209
|
+
lowPrice: number;
|
|
210
|
+
offers: Array<{
|
|
211
|
+
availability: string;
|
|
212
|
+
price: number;
|
|
213
|
+
listPrice: number;
|
|
214
|
+
quantity: number;
|
|
215
|
+
seller: {
|
|
216
|
+
identifier: string;
|
|
217
|
+
};
|
|
218
|
+
priceValidUntil: string;
|
|
219
|
+
priceCurrency: string;
|
|
220
|
+
itemCondition: string;
|
|
221
|
+
}>;
|
|
222
|
+
};
|
|
223
|
+
}[];
|
|
224
|
+
export declare const getRemoveId: (productId: string, items?: CartItemStore[] | boolean) => Promise<boolean> | Promise<string>;
|
|
225
|
+
export declare const getValue: <K extends keyof OptionalOrderForm>(order: OptionalOrderForm, key?: K) => Promise<boolean> | Promise<Awaited<OptionalOrderForm[K]>>;
|
|
226
|
+
export declare const updateOrderFormPromise: (callback: () => Promise<OptionalOrderForm | boolean>) => Promise<false | OptionalOrderForm>;
|
|
227
|
+
export declare const getQuantity: (quantity: number, index: number) => number;
|
|
228
|
+
export declare const findOptions: (options?: CartItemOptionalProps[], items?: OptionalOrderForm["items"]) => CartItemOptionalProps[];
|
|
229
|
+
export declare const mergeOptionsPromise: (res: Promise<Array<CartItemOptionalProps> | undefined>, options?: CartItemOptionalProps[]) => Promise<CartItemOptionalProps[]>;
|
|
230
|
+
export declare const fetchCartAPI: (url: string, params: {
|
|
231
|
+
priority?: FetchPriority;
|
|
232
|
+
body: Record<string, unknown>;
|
|
233
|
+
}, skipSanitize?: boolean, CONSTANTS?: OrderFormConstants) => Promise<any>;
|
|
234
|
+
export declare const addNotification: (state: NotificationsStore, message: string, callback?: () => void) => {
|
|
235
|
+
notifications: import('../../../types/contexts/store/cart').NotificationStore[];
|
|
236
|
+
};
|
|
237
|
+
export declare const marketingTagsBuilder: (marketingTags: string | string[]) => string[];
|
|
238
|
+
export declare const mountMarketingData: (searchParams: URLSearchParams) => {
|
|
239
|
+
utmipage?: string | undefined;
|
|
240
|
+
utmiPart?: string | undefined;
|
|
241
|
+
utmiCampaign?: string | undefined;
|
|
242
|
+
utmCampaign?: string | undefined;
|
|
243
|
+
utmMedium?: string | undefined;
|
|
244
|
+
utmSource?: string | undefined;
|
|
245
|
+
};
|
|
246
|
+
export declare const getUrlParameter: (name: string) => string | null | undefined;
|
|
247
|
+
export declare const createNewAddress: (postalCode: string, geo: object | null, country?: string) => SelectedAddress[];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CreateEmptySeoCategoryProps, CreateSeoCategoryProps, FindCategoryProps, SimilarsResponseData, SimilarType } from '../../../types/data/api/catalog/product';
|
|
2
|
+
import { CollectionPageType } from '../../../types/data/api/catalog/portal';
|
|
3
|
+
import { ProductType_APICatalog } from '../../../types/global/product';
|
|
4
|
+
import { TEXTURE_IMAGEType } from '../../../types/constants';
|
|
5
|
+
|
|
6
|
+
export declare const createEmptySeoCategory: ({ canonical, seo, slug }: CreateEmptySeoCategoryProps) => {
|
|
7
|
+
id: number;
|
|
8
|
+
Title: string;
|
|
9
|
+
MetaTagDescription: string;
|
|
10
|
+
name: string;
|
|
11
|
+
hasChildren: boolean;
|
|
12
|
+
url: string;
|
|
13
|
+
children: never[];
|
|
14
|
+
};
|
|
15
|
+
export declare const createSeoCategory: ({ canonical, category, previousImages, seo }: CreateSeoCategoryProps) => {
|
|
16
|
+
category: string;
|
|
17
|
+
title: string;
|
|
18
|
+
description: string;
|
|
19
|
+
alternates: {
|
|
20
|
+
canonical: string;
|
|
21
|
+
};
|
|
22
|
+
openGraph: {
|
|
23
|
+
type: string;
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
images: any[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare const findCategory: ({ items, parent, apiUrl, find }: FindCategoryProps) => import('../../../types/data/api/catalog/product').CategoryTree | undefined;
|
|
30
|
+
export declare const notFindCategoryError: (error: Error) => void;
|
|
31
|
+
export declare const isCollectionPageType: (x: any) => x is CollectionPageType;
|
|
32
|
+
export declare const responseAdapter: (data: ProductType_APICatalog) => {
|
|
33
|
+
collection: string[];
|
|
34
|
+
categoryId: string;
|
|
35
|
+
current_collection: string[];
|
|
36
|
+
items: import('../../../types/global/product').ItemType_APICatalog[];
|
|
37
|
+
};
|
|
38
|
+
export declare const formattedSimilars: (data: SimilarsResponseData[], filterTexture: TEXTURE_IMAGEType) => SimilarType[];
|
|
@@ -0,0 +1,10 @@
|
|
|
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;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventsFunctionType, ProductsPersisteDataType, PersistedDataType } from '../../../types/data/events';
|
|
2
|
+
import { SizeInfoType } from '../../../types/global/product';
|
|
3
|
+
|
|
4
|
+
export declare const pushDatalayer: ({ event, data, }: {
|
|
5
|
+
event?: string;
|
|
6
|
+
data?: any;
|
|
7
|
+
}) => void;
|
|
8
|
+
export declare const eventsFunctions: EventsFunctionType;
|
|
9
|
+
export declare const getAvailablesSizes: (sizes: SizeInfoType[]) => string;
|
|
10
|
+
export declare const getCategories: (breadcrumbList: string[]) => {
|
|
11
|
+
item_category3?: string | undefined;
|
|
12
|
+
item_category2?: string | undefined;
|
|
13
|
+
item_category?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
export declare const getProductListInfoFromHead: () => string[];
|
|
16
|
+
export declare const getPersistedData: () => any;
|
|
17
|
+
export declare const findDataInPersistedData: (persistedData: ProductsPersisteDataType, sku: string) => PersistedDataType;
|
|
18
|
+
export declare const updatePersistedData: ({ persistedData, type, sku, newData, }: {
|
|
19
|
+
persistedData: ProductsPersisteDataType;
|
|
20
|
+
type: "add" | "remove";
|
|
21
|
+
sku: string;
|
|
22
|
+
newData?: PersistedDataType;
|
|
23
|
+
}) => void;
|
|
24
|
+
export declare const getPageCategoryAndDepartmentFromSlug: () => {
|
|
25
|
+
page_category: string;
|
|
26
|
+
page_departament: string;
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { State } from '../../../types/data/api/search/index';
|
|
2
|
+
import { ProductSearchResultPage } from '../../../types/data/api/search/product';
|
|
3
|
+
import { ProductNode_PDC } from '../../../types/global/product';
|
|
4
|
+
import { PLPBanners, Page, PLPInfiniteContextProps } from '../../../types/contexts/contexts/plp';
|
|
5
|
+
|
|
6
|
+
export declare const deepEqual: (a: any, b: any) => boolean;
|
|
7
|
+
export declare const hasStateChangedExceptPage: (prev: State, next: State, excludeKey?: keyof State) => boolean;
|
|
8
|
+
export declare const fetchPage: (payload: State) => Promise<ProductSearchResultPage>;
|
|
9
|
+
export declare const createProduct: () => ProductNode_PDC;
|
|
10
|
+
export declare const getBanners: (banners: PLPBanners, page: number, columns: number, itemsPerPage?: number) => {
|
|
11
|
+
placedBanners: number[];
|
|
12
|
+
taken: Set<number>;
|
|
13
|
+
};
|
|
14
|
+
export declare const getPositions: (banners: PLPBanners, page: number, columns: number, itemsPerPage?: number) => {
|
|
15
|
+
banners: number[];
|
|
16
|
+
products: number[];
|
|
17
|
+
};
|
|
18
|
+
export declare const createPages: (page: number, data?: ProductSearchResultPage, itemsPerPage?: number) => {
|
|
19
|
+
loading: boolean;
|
|
20
|
+
page: number;
|
|
21
|
+
pagination: {
|
|
22
|
+
nextPage: boolean;
|
|
23
|
+
previousPage: boolean;
|
|
24
|
+
startCursor: string;
|
|
25
|
+
endCursor: string;
|
|
26
|
+
count: number;
|
|
27
|
+
total: number;
|
|
28
|
+
};
|
|
29
|
+
products: ProductNode_PDC[];
|
|
30
|
+
}[];
|
|
31
|
+
export declare const createPage: (pages: Page[], newPage: number) => Page[];
|
|
32
|
+
export declare const createPagination: () => {
|
|
33
|
+
nextPage: boolean;
|
|
34
|
+
previousPage: boolean;
|
|
35
|
+
startCursor: string;
|
|
36
|
+
endCursor: string;
|
|
37
|
+
count: number;
|
|
38
|
+
total: number;
|
|
39
|
+
};
|
|
40
|
+
export declare const getVisibleBanners: (pages: Page[], banners: PLPBanners, products: PLPInfiniteContextProps["products"], bannersPositions: PLPInfiniteContextProps["banners"], count: number) => ({
|
|
41
|
+
columns: number;
|
|
42
|
+
position_grid: number;
|
|
43
|
+
} & {
|
|
44
|
+
borderTop: boolean;
|
|
45
|
+
textStructure: string;
|
|
46
|
+
textStructureReduced: string;
|
|
47
|
+
enableIcon: boolean;
|
|
48
|
+
textStructureButtonIcon: string;
|
|
49
|
+
textStructureButtonLabel: string;
|
|
50
|
+
textStructureButtonSize: import('@soma-vertical-web/foundations').TSizesSmallExtended;
|
|
51
|
+
textStructureButtonHref: string;
|
|
52
|
+
textStructureMode: import('@soma-vertical-web/foundations').TMode;
|
|
53
|
+
textStructureAlignment: import('../../../types/cms/Sections/TextContent').ContentAlignment;
|
|
54
|
+
showTextStructureExpander: boolean;
|
|
55
|
+
} & {
|
|
56
|
+
promotion_id: string;
|
|
57
|
+
promotion_name: string;
|
|
58
|
+
creative_name: string;
|
|
59
|
+
creative_slot: string;
|
|
60
|
+
isHeroBanner: boolean;
|
|
61
|
+
backgroundColor: string;
|
|
62
|
+
contentOrder: string;
|
|
63
|
+
video: string;
|
|
64
|
+
position: import('../../../types/cms/Sections/Banner').Position;
|
|
65
|
+
image: string;
|
|
66
|
+
imageHref: string;
|
|
67
|
+
imageOpacity: boolean;
|
|
68
|
+
altImage: string;
|
|
69
|
+
showTimer: boolean;
|
|
70
|
+
timerEnd: string;
|
|
71
|
+
timerInit: string;
|
|
72
|
+
timerMode: import('@soma-vertical-web/foundations').TMode;
|
|
73
|
+
timerSize: string;
|
|
74
|
+
contentAlignment: import('../../../types/cms/Sections/Banner').ContentAlignment;
|
|
75
|
+
title: string;
|
|
76
|
+
href?: string;
|
|
77
|
+
index?: number;
|
|
78
|
+
headerVariant: import('@soma-vertical-web/core-components/src/lib/Header/interfaces').VariantsType;
|
|
79
|
+
})[];
|
|
80
|
+
export declare const getRandomVideoPerRow: (positions: number[], columns: number) => number[];
|
|
81
|
+
export declare const getProductsWithVideo: (products: ProductNode_PDC["node"][], columns: number) => number[];
|
|
82
|
+
export declare const createBreadcrumb: (root: string[]) => {
|
|
83
|
+
href: string;
|
|
84
|
+
name: string;
|
|
85
|
+
}[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HasVariant } from '../../../types/global/product';
|
|
2
|
+
|
|
3
|
+
export declare const splitNameAndSizeFromFullName: (fullName: string, NAME_SPLIT_SYMBOL: string) => {
|
|
4
|
+
name: string;
|
|
5
|
+
size: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const getColorAndSizeFromSkuName: (skuName: string, NAME_SPLIT_SYMBOL: string) => {
|
|
8
|
+
color?: undefined;
|
|
9
|
+
size?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
color: string;
|
|
12
|
+
size: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const getSKUName: (item: HasVariant, key?: string) => string;
|
|
15
|
+
export declare const getProductNameWithoutSku: (fullName: string, skuName: string) => string;
|
|
16
|
+
/**
|
|
17
|
+
* TODO: check if this function is still needed
|
|
18
|
+
*/
|
|
19
|
+
export declare const removeSlashes: (text: string) => string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ProductCardProps } from '../../../types/layout/team-components/ProductCard';
|
|
2
|
+
import { GetFirstImagesProps } from '../../../types/data/helpers';
|
|
3
|
+
|
|
4
|
+
export declare const resizingImg: (url: string, imageResize: {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}) => string;
|
|
8
|
+
export declare const updatedResizedImg: (url: string, imageResize: {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
}) => string;
|
|
12
|
+
export declare const getFirstImages: ({ images, label }: GetFirstImagesProps) => ProductCardProps["image"];
|
|
13
|
+
/**
|
|
14
|
+
* TODO: check if this function is still needed
|
|
15
|
+
*/
|
|
16
|
+
export declare const getAspectRatio: (aspectRatio: string) => number;
|
|
17
|
+
export declare const setVideoPlay: (isIntersection: boolean, element: HTMLVideoElement | null, url?: string) => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ParsePriceProps } from '../../../types/data/helpers/index';
|
|
2
|
+
|
|
3
|
+
export declare const formatPriceToCurrency: (value: number, hasDecimal?: boolean) => string;
|
|
4
|
+
export declare const freightParsePrice: ({ valueInCents, hasFree, freeTaxMessage }: ParsePriceProps) => string;
|
|
5
|
+
export declare const getDiscountPercent: (listPrice: number, price: number) => number;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HasVariant } from '../../../types/global/product';
|
|
2
|
+
import { Sizes } from '../../../types/contexts/contexts/pdp';
|
|
3
|
+
import { GetSkuInfosProps } from '../../../types/data/helpers';
|
|
4
|
+
|
|
5
|
+
export declare const getSkuInfos: ({ items, NAME_SPLIT_SYMBOL }: GetSkuInfosProps) => {
|
|
6
|
+
sizes: Sizes;
|
|
7
|
+
allSizesAvailable: boolean;
|
|
8
|
+
price: number;
|
|
9
|
+
listPrice: number;
|
|
10
|
+
installments: import('../../../types/contexts/contexts/pdp').Installments;
|
|
11
|
+
};
|
|
12
|
+
export declare const disableSKU: (item: HasVariant) => boolean;
|
|
13
|
+
export declare const getValidOffer: (offers: HasVariant["offers"]["offers"], mainSellerId: string) => {
|
|
14
|
+
listPrice: number;
|
|
15
|
+
price: number;
|
|
16
|
+
availability: string;
|
|
17
|
+
quantity?: number;
|
|
18
|
+
seller: {
|
|
19
|
+
identifier: string;
|
|
20
|
+
};
|
|
21
|
+
} | undefined;
|