yt-uikit 0.8.15-productTier-freebie-update.2 → 0.8.15-productTier-freebie-update.4
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.
- package/dist/esm/components/Cart/Cart.d.ts +0 -19
- package/dist/esm/components/Cart/CartProductsList.d.ts +0 -1
- package/dist/esm/components/Cart/ProductCard.d.ts +1 -2
- package/dist/esm/components/index.d.ts +0 -1
- package/dist/esm/index.js +452 -452
- package/dist/esm/types/components/Cart/Cart.d.ts +0 -19
- package/dist/esm/types/components/Cart/CartProductsList.d.ts +0 -1
- package/dist/esm/types/components/Cart/ProductCard.d.ts +1 -2
- package/dist/esm/types/components/index.d.ts +0 -1
- package/dist/index.d.ts +1 -32
- package/package.json +1 -1
|
@@ -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,
|
|
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;
|
|
@@ -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";
|
package/dist/index.d.ts
CHANGED
|
@@ -60,19 +60,6 @@ interface WheelProps {
|
|
|
60
60
|
}
|
|
61
61
|
declare const SpinnerWheel: React.FC<WheelProps>;
|
|
62
62
|
|
|
63
|
-
interface RewardCouponWithIcon extends RewardCoupon {
|
|
64
|
-
icon?: React.ReactElement | null;
|
|
65
|
-
}
|
|
66
|
-
type CouponFrameProps = {
|
|
67
|
-
couponActive: boolean;
|
|
68
|
-
rewardCoupon: RewardCouponWithIcon;
|
|
69
|
-
currency: string;
|
|
70
|
-
handleApply: (templateId?: number) => Promise<any>;
|
|
71
|
-
pointsCoupon?: boolean;
|
|
72
|
-
pointsToBeUsed?: number;
|
|
73
|
-
};
|
|
74
|
-
declare const CouponFrame: React.FC<CouponFrameProps>;
|
|
75
|
-
|
|
76
63
|
interface ShopifyCurrency {
|
|
77
64
|
rate: number;
|
|
78
65
|
active: string;
|
|
@@ -531,15 +518,6 @@ type FloatingCartDataProps = {
|
|
|
531
518
|
showOnPages: string[];
|
|
532
519
|
};
|
|
533
520
|
|
|
534
|
-
interface RewardCoupon {
|
|
535
|
-
couponTemplateId: number;
|
|
536
|
-
name: string;
|
|
537
|
-
couponType: string;
|
|
538
|
-
discountPercentage: number | null;
|
|
539
|
-
discountValue: number | null;
|
|
540
|
-
minimumOrderValue: number | null;
|
|
541
|
-
pointsRequired: number | null;
|
|
542
|
-
}
|
|
543
521
|
interface Checkpoint {
|
|
544
522
|
couponTemplateId: number;
|
|
545
523
|
couponType: string;
|
|
@@ -600,7 +578,6 @@ interface CartProps {
|
|
|
600
578
|
handleDecrement: (productId: number, newQuantity?: number) => Promise<any>;
|
|
601
579
|
bundleProducts?: any;
|
|
602
580
|
showBundle?: boolean;
|
|
603
|
-
showCouponOptions?: boolean;
|
|
604
581
|
isUserSignedIn?: boolean;
|
|
605
582
|
loyaltyIcon?: string;
|
|
606
583
|
discountAmountOff?: number;
|
|
@@ -610,8 +587,6 @@ interface CartProps {
|
|
|
610
587
|
removeDiscount?: () => Promise<any>;
|
|
611
588
|
applyDiscount?: () => Promise<any>;
|
|
612
589
|
discountApplied?: boolean;
|
|
613
|
-
rewardCoupons?: RewardCoupon[];
|
|
614
|
-
userTotalPoints?: number;
|
|
615
590
|
joinNowFunction?: () => void;
|
|
616
591
|
checkoutFunction: (templateId?: number) => Promise<any>;
|
|
617
592
|
guestLoyaltyPercentage?: number;
|
|
@@ -623,16 +598,11 @@ interface CartProps {
|
|
|
623
598
|
showCartLevelAltPay?: boolean;
|
|
624
599
|
redemptionRate: number;
|
|
625
600
|
pointsRewardRate: number;
|
|
626
|
-
showGuestDiscountCoupon?: boolean;
|
|
627
|
-
guestRewardCoupon?: RewardCouponWithIcon;
|
|
628
|
-
applyTemplateDiscount?: (templateId?: number) => Promise<any>;
|
|
629
601
|
exploreCtaRedirectLink?: string;
|
|
630
602
|
discountAmountApplied?: number;
|
|
631
603
|
minimumCartValue?: number;
|
|
632
604
|
discountInCheckoutButton?: boolean | string;
|
|
633
605
|
isStickyCheckout?: boolean;
|
|
634
|
-
showDiscountsListToGuestUsers?: boolean;
|
|
635
|
-
showApplyCouponsButtonToGuestUsers?: boolean;
|
|
636
606
|
handleCheckpointCrossed?: (checkpoint: Checkpoint, cartAmount: number) => Promise<any>;
|
|
637
607
|
customCartProgressBarCriteria?: string;
|
|
638
608
|
primaryTextColor?: string;
|
|
@@ -677,7 +647,6 @@ interface CartProps {
|
|
|
677
647
|
productPercentageOffMapping: {
|
|
678
648
|
[variantId: string]: number;
|
|
679
649
|
};
|
|
680
|
-
productTagsMapping?: Map<string, string[]>;
|
|
681
650
|
removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
|
|
682
651
|
postalCodeList?: number[];
|
|
683
652
|
enableGeoLocationDeliveryRestriction?: boolean;
|
|
@@ -776,4 +745,4 @@ declare const ProductsOffers: ({ offersConfig, offers, }: {
|
|
|
776
745
|
offers: CartCheckpoint[];
|
|
777
746
|
}) => React.JSX.Element;
|
|
778
747
|
|
|
779
|
-
export { Bundle, BundleLoader, Cart, CartCheckpoint,
|
|
748
|
+
export { Bundle, BundleLoader, Cart, CartCheckpoint, Nudge, ProductsOffers as ProductOffers, ProductsOffersConfigType, SpinnerWheel };
|