yt-uikit 0.10.59-widget-v2.0 → 0.10.59

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.
@@ -20,6 +20,9 @@ export declare const toggleProductSelectionAtom: import("jotai").WritableAtom<nu
20
20
  export declare const resetSelectionAtom: import("jotai").WritableAtom<null, [], void> & {
21
21
  init: null;
22
22
  };
23
+ export declare const removeProductSelectionAtom: import("jotai").WritableAtom<null, [productId: string], void> & {
24
+ init: null;
25
+ };
23
26
  export declare const initializeSelectionAtom: import("jotai").WritableAtom<null, [maxAllowed: number, tierName: string], void> & {
24
27
  init: null;
25
28
  };
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
2
  import { Checkpoint } from "./Cart";
3
+ import { FreebieRewardContext } from "../../utils/freebieUtils";
3
4
  interface FreebieClaimOverlayProps {
4
5
  freebieProductsInCart: any[];
5
6
  maxFreebiesInTier: number;
@@ -7,7 +8,7 @@ interface FreebieClaimOverlayProps {
7
8
  themeColor?: string;
8
9
  themeTextColor?: string;
9
10
  primaryTextColor?: string;
10
- addFreebieToCart: (selectedProductIds: string[]) => Promise<void>;
11
+ addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
11
12
  imageAspectSelector?: "square" | "portrait";
12
13
  freebieCouponTemplates?: Checkpoint[];
13
14
  freebieClaimData?: any;
@@ -5,6 +5,9 @@ interface FreebieClaimOverlayCardProps {
5
5
  freebieCouponTemplates?: any[];
6
6
  accentColor?: string;
7
7
  freebieProductsInCart?: any[];
8
+ selectedVariantId?: string;
9
+ onVariantChange: (variantId: string) => void;
10
+ isSubmitting: boolean;
8
11
  }
9
12
  declare const FreebieClaimOverlayCard: React.FC<FreebieClaimOverlayCardProps>;
10
13
  export default FreebieClaimOverlayCard;