yt-uikit 0.10.65 → 0.10.66

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.
@@ -110,7 +110,15 @@ export interface LoyaltyWaysToRedeemFreebieConfig {
110
110
  gating?: LoyaltyWaysToRedeemFreebieGating;
111
111
  current?: number;
112
112
  target?: number;
113
+ /**
114
+ * Explicit progress unit ("orders" / "points" / ...). Optional override —
115
+ * when `rewardTierCriteria` is provided the unit (and currency) are derived
116
+ * from it, mirroring the widget's `getFreebieProgress`.
117
+ */
113
118
  unit?: string;
119
+ /** Tier qualification criteria — drives the unit + currency of the progress. */
120
+ rewardTierCriteria?: "ltv" | "loyalty_points" | "payment" | null;
121
+ purchaseValueMethod?: "order_count" | "purchase_value" | null;
114
122
  tierName?: string;
115
123
  code?: string;
116
124
  ctaTitle?: string;
@@ -125,6 +133,9 @@ export interface LoyaltyWaysToRedeemConfig extends LoyaltySectionConfig {
125
133
  balanceCtaText?: string;
126
134
  ctaText?: string;
127
135
  currencyCode?: string;
136
+ /** Single currently-active coupon code (shown as a pill above the grid). */
137
+ activeCoupon?: string;
138
+ activeCouponLabel?: string;
128
139
  freebies?: LoyaltyWaysToRedeemFreebieConfig[];
129
140
  items?: LoyaltyWaysToRedeemItemConfig[];
130
141
  }
@@ -202,6 +213,7 @@ export interface LoyaltyPageProps {
202
213
  onRewardsButtonClick?: LoyaltyActionHandler;
203
214
  onRedeemClick?: LoyaltyActionHandler<[item: LoyaltyWaysToRedeemItemConfig]>;
204
215
  onEarnMoreClick?: LoyaltyActionHandler;
216
+ onActiveCouponCopy?: LoyaltyActionHandler<[code: string]>;
205
217
  }
206
- export declare const LoyaltyPageBlock: ({ config, signedIn, referralLocked, userData, onBannerButtonClick, onReferralButtonClick, onReferralCopyClick, onRewardsButtonClick, onRedeemClick, onEarnMoreClick, }: LoyaltyPageProps) => React.JSX.Element;
218
+ export declare const LoyaltyPageBlock: ({ config, signedIn, referralLocked, userData, onBannerButtonClick, onReferralButtonClick, onReferralCopyClick, onRewardsButtonClick, onRedeemClick, onEarnMoreClick, onActiveCouponCopy, }: LoyaltyPageProps) => React.JSX.Element;
207
219
  export default LoyaltyPageBlock;