yt-uikit 0.8.7-shadowdomBundlenew.0 → 0.8.7

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 (53) hide show
  1. package/dist/esm/components/BundleBlock/Bundle.d.ts +0 -1
  2. package/dist/esm/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +0 -1
  3. package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +0 -2
  4. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +0 -4
  5. package/dist/esm/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +0 -1
  6. package/dist/esm/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +0 -1
  7. package/dist/esm/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +1 -1
  8. package/dist/esm/components/Cart/Cart.d.ts +0 -1
  9. package/dist/esm/components/Cart/FloatingCart.d.ts +23 -0
  10. package/dist/esm/components/Cart/FreebieClaimManager.d.ts +0 -1
  11. package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +0 -1
  12. package/dist/esm/components/Cart/FreebieClaimOverlayCard.d.ts +0 -1
  13. package/dist/esm/components/Cart/FreebieClaimSection.d.ts +0 -1
  14. package/dist/esm/components/Cart/FreebieClaimSectionCard.d.ts +0 -1
  15. package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +0 -1
  16. package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +0 -1
  17. package/dist/esm/components/index.d.ts +0 -1
  18. package/dist/esm/index.d.ts +0 -1
  19. package/dist/esm/index.js +1068 -399
  20. package/dist/esm/types/components/BundleBlock/Bundle.d.ts +0 -1
  21. package/dist/esm/types/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +0 -1
  22. package/dist/esm/types/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +0 -2
  23. package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +0 -4
  24. package/dist/esm/types/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +0 -1
  25. package/dist/esm/types/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +0 -1
  26. package/dist/esm/types/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +1 -1
  27. package/dist/esm/types/components/Cart/Cart.d.ts +0 -1
  28. package/dist/esm/types/components/Cart/FloatingCart.d.ts +23 -0
  29. package/dist/esm/types/components/Cart/FreebieClaimManager.d.ts +0 -1
  30. package/dist/esm/types/components/Cart/FreebieClaimOverlay.d.ts +0 -1
  31. package/dist/esm/types/components/Cart/FreebieClaimOverlayCard.d.ts +0 -1
  32. package/dist/esm/types/components/Cart/FreebieClaimSection.d.ts +0 -1
  33. package/dist/esm/types/components/Cart/FreebieClaimSectionCard.d.ts +0 -1
  34. package/dist/esm/types/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +0 -1
  35. package/dist/esm/types/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +0 -1
  36. package/dist/esm/types/components/index.d.ts +0 -1
  37. package/dist/esm/types/index.d.ts +0 -1
  38. package/dist/esm/types/utils/freebieProductUtils.d.ts +2 -1
  39. package/dist/esm/utils/freebieProductUtils.d.ts +2 -1
  40. package/dist/index.d.ts +1 -8
  41. package/package.json +1 -1
  42. package/dist/esm/components/BundleBlock/ProductGridSkeleton/ProductGridSkeleton.d.ts +0 -5
  43. package/dist/esm/components/BundleBlock/VolumeBundle/temp.d.ts +0 -3
  44. package/dist/esm/components/Cart/FreebieClaim.d.ts +0 -17
  45. package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.styled.d.ts +0 -49
  46. package/dist/esm/hooks/useShadowConfetti.d.ts +0 -1
  47. package/dist/esm/shadowStyles.d.ts +0 -1
  48. package/dist/esm/types/components/BundleBlock/ProductGridSkeleton/ProductGridSkeleton.d.ts +0 -5
  49. package/dist/esm/types/components/BundleBlock/VolumeBundle/temp.d.ts +0 -3
  50. package/dist/esm/types/components/Cart/FreebieClaim.d.ts +0 -17
  51. package/dist/esm/types/components/Cart/VariantSelectionPopup/MobileVariantPopover.styled.d.ts +0 -49
  52. package/dist/esm/types/hooks/useShadowConfetti.d.ts +0 -1
  53. package/dist/esm/types/shadowStyles.d.ts +0 -1
@@ -376,7 +376,6 @@ export type BundleProps = {
376
376
  };
377
377
  bundleHeaderBackgroundColor?: string;
378
378
  currentProductId?: string;
379
- shadowRoot?: ShadowRoot | null;
380
379
  };
381
380
  export declare const currencyPrice: (price: number | string | undefined) => string | undefined;
382
381
  export declare const getCurrencySymbol: (genSymbol: string, storeCurrencyCode?: string) => string;
@@ -33,7 +33,6 @@ type BundleBuilderProps = {
33
33
  price: number;
34
34
  compareAtPrice: number;
35
35
  };
36
- shadowRoot?: ShadowRoot | null;
37
36
  };
38
37
  declare const BundleBuilder: React.FC<BundleBuilderProps>;
39
38
  export default BundleBuilder;
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
2
  import { Customizations, ProductDetails } from "../Bundle";
3
3
  import "../bundle.scss";
4
- import "./bundleBuilderTracker.style.css";
5
4
  type BundleBuilderTrackerProps = {
6
5
  builderTiers?: {
7
6
  type: string;
@@ -46,7 +45,6 @@ type BundleBuilderTrackerProps = {
46
45
  renderingOnPage: boolean;
47
46
  handleRemoveItemProductTier: (variantId: string, currentTier: number) => void;
48
47
  storeCurrencyCode?: string;
49
- shadowRoot?: ShadowRoot | null;
50
48
  };
51
49
  export declare const BundleBuilderTrackerBar: React.FC<BundleBuilderTrackerProps>;
52
50
  export default BundleBuilderTrackerBar;
@@ -1,9 +1,6 @@
1
1
  import React from "react";
2
2
  import { ProductDetails, Customizations } from "../Bundle";
3
- import "./bundleProductDetailsModal.style.css";
4
3
  import "../bundle.scss";
5
- import "../BundleBuilder/bundleBuilder.style.css";
6
- type ShadowRoot = globalThis.ShadowRoot;
7
4
  type BundleProductDetailsModalProps = {
8
5
  handleAddToBundle: (variantId: string, product: ProductDetails, quantity: number) => void;
9
6
  selectedProducts: {
@@ -24,7 +21,6 @@ type BundleProductDetailsModalProps = {
24
21
  averageRating: number;
25
22
  ratingCount: number;
26
23
  };
27
- shadowRoot?: ShadowRoot | null;
28
24
  };
29
25
  declare const BundleProductDetailsModal: React.ForwardRefExoticComponent<BundleProductDetailsModalProps & React.RefAttributes<HTMLDivElement>>;
30
26
  export default BundleProductDetailsModal;
@@ -34,7 +34,6 @@ interface ProductVariantSelectorProps {
34
34
  variantType?: string;
35
35
  variantId?: string;
36
36
  primaryProductId?: string;
37
- shadowRoot?: ShadowRoot | null;
38
37
  }
39
38
  export declare const ProductVariantSelector: React.FC<ProductVariantSelectorProps>;
40
39
  export {};
@@ -17,7 +17,6 @@ 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;
21
20
  }
22
21
  declare const VariantSelectorModal: React.FC<VariantSelectorModalProps>;
23
22
  export default VariantSelectorModal;
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
2
  import { BundleProps } from "../Bundle";
3
- export default function VolumeBundle({ bundle, addToCartFunction, currentProductId, shadowRoot }: BundleProps): React.JSX.Element;
3
+ export default function VolumeBundle({ bundle, addToCartFunction, currentProductId, }: BundleProps): React.JSX.Element;
@@ -224,7 +224,6 @@ export interface CartProps {
224
224
  showApplyCoupon?: boolean;
225
225
  enableConfetti?: boolean;
226
226
  showCheckoutButtonPaymentIcons?: boolean;
227
- shouldCheckInventoryQuantity?: boolean;
228
227
  comboBundleData?: BundlePayload;
229
228
  comboBundleAddToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
230
229
  variantId: string;
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ import { Checkpoint } from "./Cart";
3
+ export interface FloatingCartProps {
4
+ setIsCartOpen: (isOpen: boolean) => void;
5
+ isCartOpen?: boolean;
6
+ cartCheckpoints?: Checkpoint[];
7
+ customCartProgressBarCriteria?: string;
8
+ floatingCartData?: FloatingCartDataProps;
9
+ effectiveQuantityForProgressBar?: number;
10
+ cartComponentsCornerType?: "rounded" | "sharp";
11
+ cartComponentsCornerRadius?: number;
12
+ }
13
+ export type FloatingCartDataProps = {
14
+ enableFloatingCart: boolean;
15
+ backgroundColor: string;
16
+ bannerBackgroundColor: string;
17
+ textColor: string;
18
+ buttonColor: string;
19
+ bannerFooterText: string;
20
+ showOnPages: string[];
21
+ };
22
+ declare const FloatingCart: React.FC<FloatingCartProps>;
23
+ export default FloatingCart;
@@ -12,7 +12,6 @@ interface FreebieClaimManagerProps {
12
12
  imageAspectSelector?: "square" | "portrait";
13
13
  freebieCouponTemplates?: Checkpoint[];
14
14
  isCartDrawerOpen?: boolean;
15
- shouldCheckInventoryQuantity?: boolean;
16
15
  }
17
16
  declare const FreebieClaimManager: React.FC<FreebieClaimManagerProps>;
18
17
  export default FreebieClaimManager;
@@ -12,7 +12,6 @@ interface FreebieClaimOverlayProps {
12
12
  freebieCouponTemplates?: Checkpoint[];
13
13
  freebieClaimData?: any;
14
14
  isCartDrawerOpen?: boolean;
15
- shouldCheckInventoryQuantity?: boolean;
16
15
  }
17
16
  declare const FreebieClaimOverlay: React.FC<FreebieClaimOverlayProps>;
18
17
  export default FreebieClaimOverlay;
@@ -4,7 +4,6 @@ interface FreebieClaimOverlayCardProps {
4
4
  imageAspectSelector?: "square" | "portrait";
5
5
  freebieCouponTemplates?: any[];
6
6
  accentColor?: string;
7
- shouldCheckInventoryQuantity?: boolean;
8
7
  }
9
8
  declare const FreebieClaimOverlayCard: React.FC<FreebieClaimOverlayCardProps>;
10
9
  export default FreebieClaimOverlayCard;
@@ -12,7 +12,6 @@ interface FreebieClaimSectionProps {
12
12
  maxFreebiesInTier?: number;
13
13
  tierName?: string;
14
14
  freebieClaimData?: any;
15
- shouldCheckInventoryQuantity?: boolean;
16
15
  }
17
16
  declare const FreebieClaimSection: React.FC<FreebieClaimSectionProps>;
18
17
  export default FreebieClaimSection;
@@ -11,7 +11,6 @@ interface FreebieClaimSectionCardProps {
11
11
  isSelected?: boolean;
12
12
  isDisabled?: boolean;
13
13
  onToggleSelection?: (productId: string) => void;
14
- shouldCheckInventoryQuantity?: boolean;
15
14
  }
16
15
  declare const FreebieClaimSectionCard: React.FC<FreebieClaimSectionCardProps>;
17
16
  export default FreebieClaimSectionCard;
@@ -13,7 +13,6 @@ type DesktopVariantPopupProps = {
13
13
  productClaimCtaButtonText?: string;
14
14
  backgroundSubdued?: string;
15
15
  primaryTextColor?: string;
16
- shouldCheckInventoryQuantity?: boolean;
17
16
  };
18
17
  declare const DesktopVariantPopup: React.ForwardRefExoticComponent<DesktopVariantPopupProps & React.RefAttributes<HTMLDivElement>>;
19
18
  export default DesktopVariantPopup;
@@ -13,7 +13,6 @@ type MobileVariantPopupProps = {
13
13
  productClaimCtaButtonText?: string;
14
14
  backgroundSubdued?: string;
15
15
  primaryTextColor?: string;
16
- shouldCheckInventoryQuantity?: boolean;
17
16
  };
18
17
  declare const MobileVariantPopup: React.ForwardRefExoticComponent<MobileVariantPopupProps & React.RefAttributes<HTMLDivElement>>;
19
18
  export default MobileVariantPopup;
@@ -5,4 +5,3 @@ 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";
@@ -1,2 +1 @@
1
1
  export * from "./components";
2
- export { ytBundleShadowCss } from "./shadowStyles";