yt-uikit 0.8.6 → 0.8.7-shadowdomBundlenew.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/esm/components/BundleBlock/Bundle.d.ts +1 -0
  2. package/dist/esm/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +1 -0
  3. package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +2 -0
  4. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +4 -0
  5. package/dist/esm/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +1 -0
  6. package/dist/esm/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +1 -0
  7. package/dist/esm/components/BundleBlock/ProductGridSkeleton/ProductGridSkeleton.d.ts +5 -0
  8. package/dist/esm/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +1 -1
  9. package/dist/esm/components/BundleBlock/VolumeBundle/temp.d.ts +3 -0
  10. package/dist/esm/components/Cart/FreebieClaim.d.ts +17 -0
  11. package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.styled.d.ts +49 -0
  12. package/dist/esm/components/index.d.ts +1 -0
  13. package/dist/esm/hooks/useShadowConfetti.d.ts +1 -0
  14. package/dist/esm/index.d.ts +1 -0
  15. package/dist/esm/index.js +364 -1033
  16. package/dist/esm/shadowStyles.d.ts +1 -0
  17. package/dist/esm/types/components/BundleBlock/Bundle.d.ts +1 -0
  18. package/dist/esm/types/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +1 -0
  19. package/dist/esm/types/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +2 -0
  20. package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +4 -0
  21. package/dist/esm/types/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +1 -0
  22. package/dist/esm/types/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +1 -0
  23. package/dist/esm/types/components/BundleBlock/ProductGridSkeleton/ProductGridSkeleton.d.ts +5 -0
  24. package/dist/esm/types/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +1 -1
  25. package/dist/esm/types/components/BundleBlock/VolumeBundle/temp.d.ts +3 -0
  26. package/dist/esm/types/components/Cart/FreebieClaim.d.ts +17 -0
  27. package/dist/esm/types/components/Cart/VariantSelectionPopup/MobileVariantPopover.styled.d.ts +49 -0
  28. package/dist/esm/types/components/index.d.ts +1 -0
  29. package/dist/esm/types/hooks/useShadowConfetti.d.ts +1 -0
  30. package/dist/esm/types/index.d.ts +1 -0
  31. package/dist/esm/types/shadowStyles.d.ts +1 -0
  32. package/dist/index.d.ts +7 -1
  33. package/package.json +1 -1
  34. package/dist/esm/components/Cart/FloatingCart.d.ts +0 -23
  35. package/dist/esm/types/components/Cart/FloatingCart.d.ts +0 -23
@@ -376,6 +376,7 @@ export type BundleProps = {
376
376
  };
377
377
  bundleHeaderBackgroundColor?: string;
378
378
  currentProductId?: string;
379
+ shadowRoot?: ShadowRoot | null;
379
380
  };
380
381
  export declare const currencyPrice: (price: number | string | undefined) => string | undefined;
381
382
  export declare const getCurrencySymbol: (genSymbol: string, storeCurrencyCode?: string) => string;
@@ -33,6 +33,7 @@ type BundleBuilderProps = {
33
33
  price: number;
34
34
  compareAtPrice: number;
35
35
  };
36
+ shadowRoot?: ShadowRoot | null;
36
37
  };
37
38
  declare const BundleBuilder: React.FC<BundleBuilderProps>;
38
39
  export default BundleBuilder;
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { Customizations, ProductDetails } from "../Bundle";
3
3
  import "../bundle.scss";
4
+ import "./bundleBuilderTracker.style.css";
4
5
  type BundleBuilderTrackerProps = {
5
6
  builderTiers?: {
6
7
  type: string;
@@ -45,6 +46,7 @@ type BundleBuilderTrackerProps = {
45
46
  renderingOnPage: boolean;
46
47
  handleRemoveItemProductTier: (variantId: string, currentTier: number) => void;
47
48
  storeCurrencyCode?: string;
49
+ shadowRoot?: ShadowRoot | null;
48
50
  };
49
51
  export declare const BundleBuilderTrackerBar: React.FC<BundleBuilderTrackerProps>;
50
52
  export default BundleBuilderTrackerBar;
@@ -1,6 +1,9 @@
1
1
  import React from "react";
2
2
  import { ProductDetails, Customizations } from "../Bundle";
3
+ import "./bundleProductDetailsModal.style.css";
3
4
  import "../bundle.scss";
5
+ import "../BundleBuilder/bundleBuilder.style.css";
6
+ type ShadowRoot = globalThis.ShadowRoot;
4
7
  type BundleProductDetailsModalProps = {
5
8
  handleAddToBundle: (variantId: string, product: ProductDetails, quantity: number) => void;
6
9
  selectedProducts: {
@@ -21,6 +24,7 @@ type BundleProductDetailsModalProps = {
21
24
  averageRating: number;
22
25
  ratingCount: number;
23
26
  };
27
+ shadowRoot?: ShadowRoot | null;
24
28
  };
25
29
  declare const BundleProductDetailsModal: React.ForwardRefExoticComponent<BundleProductDetailsModalProps & React.RefAttributes<HTMLDivElement>>;
26
30
  export default BundleProductDetailsModal;
@@ -34,6 +34,7 @@ interface ProductVariantSelectorProps {
34
34
  variantType?: string;
35
35
  variantId?: string;
36
36
  primaryProductId?: string;
37
+ shadowRoot?: ShadowRoot | null;
37
38
  }
38
39
  export declare const ProductVariantSelector: React.FC<ProductVariantSelectorProps>;
39
40
  export {};
@@ -17,6 +17,7 @@ interface VariantSelectorModalProps {
17
17
  variantId?: string;
18
18
  onVariantChange: (index: number, variantId: string) => void;
19
19
  handleAddToCart: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => Promise<void>;
20
+ shadowRoot?: ShadowRoot | null;
20
21
  }
21
22
  declare const VariantSelectorModal: React.FC<VariantSelectorModalProps>;
22
23
  export default VariantSelectorModal;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import "./ProductGridSkeleton.css";
3
+ type ProductGridSkeletonProps = {};
4
+ declare const ProductGridSkeleton: React.FC<ProductGridSkeletonProps>;
5
+ export default ProductGridSkeleton;
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
2
  import { BundleProps } from "../Bundle";
3
- export default function VolumeBundle({ bundle, addToCartFunction, currentProductId, }: BundleProps): React.JSX.Element;
3
+ export default function VolumeBundle({ bundle, addToCartFunction, currentProductId, shadowRoot }: BundleProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { BundleProps } from "../Bundle";
3
+ export default function VolumeBundle({ bundle, addToCartFunction, currentProductId, }: BundleProps): React.JSX.Element;
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ type FreebieClaimProps = {
3
+ freebieProductsInCart: any;
4
+ freebieSectionTitle?: string;
5
+ themeColor?: string;
6
+ themeTextColor?: string;
7
+ checkpoints?: any;
8
+ addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>;
9
+ freebiesInCart: string[];
10
+ showFreebieClaimAsPopup?: boolean;
11
+ productClaimCtaButtonText?: string;
12
+ imageAspectSelector?: "square" | "portrait";
13
+ freebieCouponTemplates?: any;
14
+ };
15
+ export declare const FreebieClaimPopup: React.ForwardRefExoticComponent<FreebieClaimProps & React.RefAttributes<HTMLDivElement>>;
16
+ declare const FreebieClaim: React.FC<FreebieClaimProps>;
17
+ export default FreebieClaim;
@@ -0,0 +1,49 @@
1
+ /// <reference types="react" />
2
+ export declare const VariantSelectionPopupContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const ModalContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
+ $themeColor?: string | undefined;
5
+ $cornerRadius?: number | undefined;
6
+ $backgroundColor?: string | undefined;
7
+ }>> & string;
8
+ export declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
9
+ export declare const ProductDetails: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
10
+ export declare const ProductImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
11
+ export declare const ProductInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
+ export declare const ProductTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {
13
+ $themeColor?: string | undefined;
14
+ }>> & string;
15
+ export declare const ProductPrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
16
+ primaryTextColor?: string | undefined;
17
+ }>> & string;
18
+ export declare const OriginalPrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
19
+ export declare const ViewDetailsLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
20
+ export declare const OptionContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
21
+ export declare const OptionTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
22
+ export declare const OptionsWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
23
+ export declare const VariantOption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
24
+ $isSelected?: boolean | undefined;
25
+ $isDisabled?: boolean | undefined;
26
+ $themeColor?: string | undefined;
27
+ backgroundColor?: string | undefined;
28
+ }>> & string;
29
+ export declare const CartButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
30
+ $themeColor: string;
31
+ }>> & string;
32
+ export declare const LoaderContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
33
+ export declare const QuantitySelectorContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
34
+ export declare const MainSelectorContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
35
+ $backgroundColor: string;
36
+ }>> & string;
37
+ export declare const FlexContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
38
+ export declare const DetailsSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
39
+ export declare const PriceSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
40
+ export declare const LinkSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
41
+ export declare const ActionsSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
42
+ export declare const ReplaceButtonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
43
+ export declare const ReplaceButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
44
+ $themeColor?: string | undefined;
45
+ $cornerRadius?: number | undefined;
46
+ $cornerType?: string | undefined;
47
+ $disabled?: boolean | undefined;
48
+ }>> & string;
49
+ export declare const ReplaceButtonContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -5,3 +5,4 @@ export { default as CouponFrame } from "./CouponFrame";
5
5
  export { default as Bundle } from "./BundleBlock";
6
6
  export { default as BundleLoader } from "./BundleBlock/Loader";
7
7
  export { default as ProductOffers, ProductsOffersConfigType, CartCheckpoint, } from "./ProductOffersBlock/ProductsOffers";
8
+ export { default as ProductGridSkeleton } from "../components/BundleBlock/ProductGridSkeleton/ProductGridSkeleton";
@@ -0,0 +1 @@
1
+ export declare function useShadowConfetti(): (options: any) => void;
@@ -1 +1,2 @@
1
1
  export * from "./components";
2
+ export { ytBundleShadowCss } from "./shadowStyles";