yt-uikit 0.9.25-missing-classnames.0 → 0.9.26-debugging-recs.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.
@@ -6,23 +6,31 @@ export interface ProcessedFreebieProduct {
6
6
  availableVariants: any[];
7
7
  displayVariantCount: number;
8
8
  effectiveDiscount: number;
9
+ effectiveDiscountPercentage: number;
9
10
  effectivePrice: number;
10
11
  dealAmount: number;
11
12
  showOptions: boolean;
12
13
  isFree: boolean;
14
+ isNoDiscount: boolean;
13
15
  }
14
- /**
15
- * Process freebie product data to extract pricing, variant, and display information
16
- * Consolidates expensive calculations that were happening in multiple components
17
- */
16
+ export declare const normalizeShopifyId: (value: unknown) => string | undefined;
17
+ export declare const isSameShopifyId: (left: unknown, right: unknown) => boolean;
18
+ export declare const getAvailableFreebieVariants: (product: any) => any[];
19
+ export declare const getClaimAllowedVariantIds: (product: any) => string[];
20
+ export declare const getClaimableFreebieVariants: (product: any) => any[];
21
+ export declare const getFirstClaimableVariantId: (product: any) => string | undefined;
22
+ export declare const hasClaimableFreebieVariant: (product: any) => boolean;
23
+ export declare const getFreebieProductTier: (product: any, freebieCouponTemplates?: any[]) => any;
24
+ export declare const getSelectedCountForFreebieTier: (selectedProductIds: string[], tierId: number | undefined, freebieProducts: any[]) => number;
25
+ export declare const isFreebieTierLimitReached: ({ product, selectedProductIds, freebieProducts, freebieCouponTemplates, fallbackMaxFreebies, fallbackLimitReached, }: {
26
+ product: any;
27
+ selectedProductIds: string[];
28
+ freebieProducts: any[];
29
+ freebieCouponTemplates?: any[] | undefined;
30
+ fallbackMaxFreebies?: number | undefined;
31
+ fallbackLimitReached?: boolean | undefined;
32
+ }) => boolean;
33
+ export declare const checkpointIncludesVariant: (checkpoint: any, variantGid?: string) => boolean;
34
+ export declare const getTotalClaimableFreebies: (freebieProducts: any[], freebieCouponTemplates?: any[], fallbackMaxFreebies?: number) => number;
18
35
  export declare const processFreebieProduct: (product: any, freebieCouponTemplates?: any[], localVariantId?: string) => ProcessedFreebieProduct;
19
- /**
20
- * Get initial variant ID with deal amount preference
21
- * Used by FreebieClaimSectionCard for smart variant selection
22
- *
23
- * Priority order:
24
- * 1. First variant with a deal amount that is also claim-allowed
25
- * 2. First variant from _claim_allowed_variants (the actual claimable variants)
26
- * 3. Fallback to first available variant
27
- */
28
36
  export declare const getInitialVariantWithDealAmount: (availableVariants: any[], freebieCouponTemplates?: any[], claimAllowedVariants?: string[]) => string | undefined;
@@ -0,0 +1,10 @@
1
+ export declare const logProductRecsDebug: (...args: any[]) => void;
2
+ export declare const summarizeVariantForProductRecsDebug: (variant: any) => {
3
+ id: any;
4
+ title: any;
5
+ available: any;
6
+ option1: any;
7
+ option2: any;
8
+ option3: any;
9
+ } | undefined;
10
+ export declare const summarizeProductVariantsForProductRecsDebug: (product: any) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yt-uikit",
3
- "version": "0.9.25-missing-classnames.0",
3
+ "version": "0.9.26-debugging-recs.0",
4
4
  "description": "YourToken UI Kit",
5
5
  "scripts": {
6
6
  "rollup": "rm -rf dist && tsc && rollup -c",