yt-uikit 0.7.403-feature-product-offer-refactor.12 → 0.7.403-feature-product-offer-refactor.14
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/ProductOffersBlock/ProductOffersCoupon.d.ts +2 -2
- package/dist/esm/components/ProductOffersBlock/ProductOffersList.d.ts +2 -2
- package/dist/esm/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +3 -3
- package/dist/esm/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +3 -3
- package/dist/esm/components/ProductOffersBlock/ProductsOffers.d.ts +5 -2
- package/dist/esm/index.js +68 -68
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersCoupon.d.ts +2 -2
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersList.d.ts +2 -2
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +3 -3
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +3 -3
- package/dist/esm/types/components/ProductOffersBlock/ProductsOffers.d.ts +5 -2
- package/dist/index.d.ts +1 -2
- package/package.json +1 -1
|
@@ -4,9 +4,9 @@ import { ProductsOffersConfigType } from "./ProductsOffers";
|
|
|
4
4
|
interface ProductOffersCouponProps {
|
|
5
5
|
offersToShow: CartCheckpoint[];
|
|
6
6
|
offersConfig?: ProductsOffersConfigType | null;
|
|
7
|
+
getOfferCardMessage: (offer: CartCheckpoint) => string;
|
|
7
8
|
setSelectedOffer: (offer: CartCheckpoint | null) => void;
|
|
8
9
|
setShowPopup: (show: boolean) => void;
|
|
9
|
-
getOfferMessage: (offer: CartCheckpoint) => string;
|
|
10
10
|
}
|
|
11
|
-
export declare const ProductOffersCoupon: ({ offersToShow, offersConfig, setSelectedOffer, setShowPopup,
|
|
11
|
+
export declare const ProductOffersCoupon: ({ offersToShow, offersConfig, getOfferCardMessage, setSelectedOffer, setShowPopup, }: ProductOffersCouponProps) => React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -4,9 +4,9 @@ import { ProductsOffersConfigType } from "./ProductsOffers";
|
|
|
4
4
|
interface ProductOffersListProps {
|
|
5
5
|
offersToShow: CartCheckpoint[];
|
|
6
6
|
offersConfig: ProductsOffersConfigType;
|
|
7
|
+
getOfferCardMessage: (offer: CartCheckpoint) => string;
|
|
7
8
|
setSelectedOffer: (offer: CartCheckpoint | null) => void;
|
|
8
9
|
setShowPopup: (show: boolean) => void;
|
|
9
|
-
getOfferMessage: (offer: CartCheckpoint) => string;
|
|
10
10
|
}
|
|
11
|
-
export declare const ProductOffersList: ({ offersToShow, offersConfig, setSelectedOffer, setShowPopup,
|
|
11
|
+
export declare const ProductOffersList: ({ offersToShow, offersConfig, getOfferCardMessage, setSelectedOffer, setShowPopup, }: ProductOffersListProps) => React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CartCheckpoint } from "./ProductsOffers";
|
|
2
|
+
import { CartCheckpoint, OfferTermsAndConditions } from "./ProductsOffers";
|
|
3
3
|
import { ProductsOffersConfigType } from "./ProductsOffers";
|
|
4
|
-
export declare const ProductOffersTermsMobilePopover: ({ showPopup, selectedOffer,
|
|
4
|
+
export declare const ProductOffersTermsMobilePopover: ({ showPopup, selectedOffer, selectedOfferTerms, onClose, offersConfig, }: {
|
|
5
5
|
showPopup: boolean;
|
|
6
6
|
selectedOffer: CartCheckpoint | null;
|
|
7
|
+
selectedOfferTerms: OfferTermsAndConditions | null;
|
|
7
8
|
onClose: () => void;
|
|
8
|
-
getOfferMessage: (offer: CartCheckpoint) => string;
|
|
9
9
|
offersConfig?: ProductsOffersConfigType | null | undefined;
|
|
10
10
|
}) => React.ReactPortal | null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CartCheckpoint } from "./ProductsOffers";
|
|
2
|
+
import { CartCheckpoint, OfferTermsAndConditions } from "./ProductsOffers";
|
|
3
3
|
import { ProductsOffersConfigType } from "./ProductsOffers";
|
|
4
|
-
export declare const ProductOffersTermsPopup: ({ showPopup, selectedOffer,
|
|
4
|
+
export declare const ProductOffersTermsPopup: ({ showPopup, selectedOffer, selectedOfferTerms, onClose, offersConfig, }: {
|
|
5
5
|
showPopup: boolean;
|
|
6
6
|
selectedOffer: CartCheckpoint | null;
|
|
7
|
+
selectedOfferTerms: OfferTermsAndConditions | null;
|
|
7
8
|
onClose: () => void;
|
|
8
|
-
getOfferMessage: (offer: CartCheckpoint) => string;
|
|
9
9
|
offersConfig?: ProductsOffersConfigType | null | undefined;
|
|
10
10
|
}) => React.ReactPortal | null;
|
|
@@ -20,9 +20,12 @@ export interface CartCheckpoint extends Checkpoint {
|
|
|
20
20
|
discountPercentage?: number | null;
|
|
21
21
|
discountId?: number | null;
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
export interface OfferTermsAndConditions {
|
|
24
|
+
offerMessage: string;
|
|
25
|
+
terms: string[];
|
|
26
|
+
}
|
|
27
|
+
declare const ProductsOffers: ({ offersConfig, offers, }: {
|
|
24
28
|
offersConfig?: ProductsOffersConfigType | null | undefined;
|
|
25
29
|
offers: CartCheckpoint[];
|
|
26
|
-
getOfferMessage: (offer: CartCheckpoint) => string;
|
|
27
30
|
}) => React.JSX.Element;
|
|
28
31
|
export default ProductsOffers;
|
package/dist/index.d.ts
CHANGED
|
@@ -750,10 +750,9 @@ interface CartCheckpoint extends Checkpoint {
|
|
|
750
750
|
discountPercentage?: number | null;
|
|
751
751
|
discountId?: number | null;
|
|
752
752
|
}
|
|
753
|
-
declare const ProductsOffers: ({ offersConfig, offers,
|
|
753
|
+
declare const ProductsOffers: ({ offersConfig, offers, }: {
|
|
754
754
|
offersConfig?: ProductsOffersConfigType | null | undefined;
|
|
755
755
|
offers: CartCheckpoint[];
|
|
756
|
-
getOfferMessage: (offer: CartCheckpoint) => string;
|
|
757
756
|
}) => React.JSX.Element;
|
|
758
757
|
|
|
759
758
|
export { Bundle, BundleLoader, Cart, CartCheckpoint, CouponFrame, Nudge, ProductsOffers as ProductOffers, ProductsOffersConfigType, SpinnerWheel };
|