yt-uikit 0.8.15-productTier-freebie-update.2 → 0.8.15-productTier-freebie-update.3

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.
@@ -1,20 +1,10 @@
1
1
  import React from "react";
2
- import { RewardCouponWithIcon } from "../CouponFrame/CouponFrame";
3
2
  import { stickyCartCustomizationDataProps } from "./StickyCart";
4
3
  import { CartOffersCarousalProps } from "./CartOffersCarousel";
5
4
  import { freebieMilestoneProps } from "./NextFreebieRow";
6
5
  import { GSTSectionCustomizationProps } from "./GSTSection";
7
6
  import { BundlePayload } from "../BundleBlock/Bundle";
8
7
  import { type FloatingCartDataProps } from "./FloatingCart";
9
- export interface RewardCoupon {
10
- couponTemplateId: number;
11
- name: string;
12
- couponType: string;
13
- discountPercentage: number | null;
14
- discountValue: number | null;
15
- minimumOrderValue: number | null;
16
- pointsRequired: number | null;
17
- }
18
8
  export interface Checkpoint {
19
9
  couponTemplateId: number;
20
10
  couponType: string;
@@ -88,7 +78,6 @@ export interface CartProps {
88
78
  handleDecrement: (productId: number, newQuantity?: number) => Promise<any>;
89
79
  bundleProducts?: any;
90
80
  showBundle?: boolean;
91
- showCouponOptions?: boolean;
92
81
  isUserSignedIn?: boolean;
93
82
  loyaltyIcon?: string;
94
83
  discountAmountOff?: number;
@@ -98,8 +87,6 @@ export interface CartProps {
98
87
  removeDiscount?: () => Promise<any>;
99
88
  applyDiscount?: () => Promise<any>;
100
89
  discountApplied?: boolean;
101
- rewardCoupons?: RewardCoupon[];
102
- userTotalPoints?: number;
103
90
  joinNowFunction?: () => void;
104
91
  checkoutFunction: (templateId?: number) => Promise<any>;
105
92
  guestLoyaltyPercentage?: number;
@@ -111,16 +98,11 @@ export interface CartProps {
111
98
  showCartLevelAltPay?: boolean;
112
99
  redemptionRate: number;
113
100
  pointsRewardRate: number;
114
- showGuestDiscountCoupon?: boolean;
115
- guestRewardCoupon?: RewardCouponWithIcon;
116
- applyTemplateDiscount?: (templateId?: number) => Promise<any>;
117
101
  exploreCtaRedirectLink?: string;
118
102
  discountAmountApplied?: number;
119
103
  minimumCartValue?: number;
120
104
  discountInCheckoutButton?: boolean | string;
121
105
  isStickyCheckout?: boolean;
122
- showDiscountsListToGuestUsers?: boolean;
123
- showApplyCouponsButtonToGuestUsers?: boolean;
124
106
  handleCheckpointCrossed?: (checkpoint: Checkpoint, cartAmount: number) => Promise<any>;
125
107
  customCartProgressBarCriteria?: string;
126
108
  primaryTextColor?: string;
@@ -165,7 +147,6 @@ export interface CartProps {
165
147
  productPercentageOffMapping: {
166
148
  [variantId: string]: number;
167
149
  };
168
- productTagsMapping?: Map<string, string[]>;
169
150
  removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
170
151
  postalCodeList?: number[];
171
152
  enableGeoLocationDeliveryRestriction?: boolean;
@@ -18,7 +18,6 @@ type CartProductsListProps = {
18
18
  productPercentageOffMapping: {
19
19
  [variantId: string]: number;
20
20
  };
21
- productTagsMapping?: Map<string, string[]>;
22
21
  removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
23
22
  showDeleteOnFreebies?: boolean;
24
23
  freebieCouponTemplates: Checkpoint[];
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- declare const ProductCard: ({ product: variant, handleDecrement, handleIncrement, removeCartItem, addCartItem, isDev, themeColor, primaryTextColor, secondaryTextColor, tertiaryColor, tertiaryTextColor, showQtySelector, themeTextColor, showEditOptionOnProducts, percentageOff, tags, removeFreebieFromCart, showDeleteOnFreebies, imageAspectSelector, cartComponentsCornerType, cartComponentsCornerRadius, backgroundSubdued, backgroundColor, showDiscountOnMRP, }: {
2
+ declare const ProductCard: ({ product: variant, handleDecrement, handleIncrement, removeCartItem, addCartItem, isDev, themeColor, primaryTextColor, secondaryTextColor, tertiaryColor, tertiaryTextColor, showQtySelector, themeTextColor, showEditOptionOnProducts, percentageOff, removeFreebieFromCart, showDeleteOnFreebies, imageAspectSelector, cartComponentsCornerType, cartComponentsCornerRadius, backgroundSubdued, backgroundColor, showDiscountOnMRP, }: {
3
3
  product: any;
4
4
  addCartItem?: ((product: any) => Promise<any>) | undefined;
5
5
  removeCartItem?: ((product: any) => Promise<any>) | undefined;
@@ -17,7 +17,6 @@ declare const ProductCard: ({ product: variant, handleDecrement, handleIncrement
17
17
  themeTextColor?: string | undefined;
18
18
  showEditOptionOnProducts?: boolean | undefined;
19
19
  percentageOff?: number | undefined;
20
- tags?: any;
21
20
  removeFreebieFromCart?: ((lineItemKey: string) => Promise<void>) | undefined;
22
21
  showDeleteOnFreebies?: boolean | undefined;
23
22
  imageAspectSelector?: "square" | "portrait" | undefined;
@@ -0,0 +1,63 @@
1
+ import React from "react";
2
+ export interface LoyaltyPageConfigType {
3
+ heroDesktopImage?: string;
4
+ heroMobileImage?: string;
5
+ heroTitle?: string;
6
+ heroSubtitle?: string;
7
+ heroTextAlignment?: "left" | "center" | "right";
8
+ heroSubtitleFontSize?: string;
9
+ heroSubtitleColor?: string;
10
+ heroSubtitleFontWeight?: string;
11
+ heroTitleFontSize?: string;
12
+ heroTitleColor?: string;
13
+ heroRegistrationCTAVisibility?: boolean;
14
+ primaryColor?: string;
15
+ primaryContrastColor?: string;
16
+ secondaryColor?: string;
17
+ secondaryContrastColor?: string;
18
+ accentColor?: string;
19
+ borderColor?: string;
20
+ themeRoundness?: string;
21
+ heroBannerVisibility?: "show" | "hide";
22
+ stepsVisibility?: "show" | "hide";
23
+ waysToEarnVisibility?: "show" | "hide";
24
+ customSectionVisibility?: "show" | "hide";
25
+ footerSignupVisibility?: "show" | "hide";
26
+ customSectionImagePosition?: "left" | "right";
27
+ customSectionTitle?: string;
28
+ customSectionSubtitle?: string;
29
+ customSectionTitleFontSize?: string;
30
+ customSectionSubtitleFontSize?: string;
31
+ customSectionImage?: string;
32
+ customSectionTextAlignment?: "left" | "center" | "right";
33
+ customSectionTitleColor?: string;
34
+ customSectionSubtitleColor?: string;
35
+ stepsTitle?: string;
36
+ stepsSubtitle?: string;
37
+ step1Title?: string;
38
+ step1Description?: string;
39
+ step2Title?: string;
40
+ step2Description?: string;
41
+ step3Title?: string;
42
+ step3Description?: string;
43
+ footerCustomText?: string;
44
+ footerSignupSubtext?: string;
45
+ }
46
+ export interface BrandConfigType {
47
+ newSignupTokens?: number;
48
+ firstOrderTokens?: number;
49
+ instagramFollowPoints?: number;
50
+ twitterFollowPoints?: number;
51
+ facebookFollowPoints?: number;
52
+ youtubeSubscriptionPoints?: number;
53
+ rewardToLeaveReview?: number;
54
+ birthdayPoints?: number;
55
+ referralPointsForReferrer?: number;
56
+ tokenCreditPercentage?: number;
57
+ brandTokenName?: string;
58
+ }
59
+ declare const LoyaltyPageBlock: ({ config, brandConfig, }: {
60
+ config: LoyaltyPageConfigType;
61
+ brandConfig?: BrandConfigType | undefined;
62
+ }) => React.JSX.Element;
63
+ export default LoyaltyPageBlock;
@@ -1,7 +1,6 @@
1
1
  export { default as Nudge } from "./Nudge";
2
2
  export { default as SpinnerWheel } from "./SpinnerWheel";
3
3
  export { default as Cart } from "./Cart";
4
- export { default as CouponFrame } from "./CouponFrame";
5
4
  export { default as Bundle } from "./BundleBlock";
6
5
  export { default as BundleLoader } from "./BundleBlock/Loader";
7
6
  export { default as ProductOffers, ProductsOffersConfigType, CartCheckpoint, } from "./ProductOffersBlock/ProductsOffers";