yt-uikit 0.7.403-feature-product-offer-refactor.11 → 0.7.403-feature-product-offer-refactor.13
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 +4 -4
- package/dist/esm/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +4 -4
- package/dist/esm/components/ProductOffersBlock/ProductsOffers.d.ts +6 -2
- package/dist/esm/index.js +403 -403
- 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 +4 -4
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +4 -4
- package/dist/esm/types/components/ProductOffersBlock/ProductsOffers.d.ts +6 -2
- package/dist/index.d.ts +2 -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
|
-
}) => React.
|
|
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
|
-
}) => React.
|
|
10
|
+
}) => React.ReactPortal | null;
|
|
@@ -13,15 +13,19 @@ export interface ProductsOffersConfigType {
|
|
|
13
13
|
viewDetailsTitle?: string;
|
|
14
14
|
alignment?: "left" | "middle" | "right";
|
|
15
15
|
iconVisibility?: boolean;
|
|
16
|
+
popupIsolationStrategy?: "revert" | "revert-layer" | "unset" | "initial" | "inherit" | "none";
|
|
16
17
|
}
|
|
17
18
|
export interface CartCheckpoint extends Checkpoint {
|
|
18
19
|
customCartProgressBarCriteria?: string | null;
|
|
19
20
|
discountPercentage?: number | null;
|
|
20
21
|
discountId?: number | null;
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
+
export interface OfferTermsAndConditions {
|
|
24
|
+
offerMessage: string;
|
|
25
|
+
terms: string[];
|
|
26
|
+
}
|
|
27
|
+
declare const ProductsOffers: ({ offersConfig, offers, }: {
|
|
23
28
|
offersConfig?: ProductsOffersConfigType | null | undefined;
|
|
24
29
|
offers: CartCheckpoint[];
|
|
25
|
-
getOfferMessage: (offer: CartCheckpoint) => string;
|
|
26
30
|
}) => React.JSX.Element;
|
|
27
31
|
export default ProductsOffers;
|
package/dist/index.d.ts
CHANGED
|
@@ -743,16 +743,16 @@ interface ProductsOffersConfigType {
|
|
|
743
743
|
viewDetailsTitle?: string;
|
|
744
744
|
alignment?: "left" | "middle" | "right";
|
|
745
745
|
iconVisibility?: boolean;
|
|
746
|
+
popupIsolationStrategy?: "revert" | "revert-layer" | "unset" | "initial" | "inherit" | "none";
|
|
746
747
|
}
|
|
747
748
|
interface CartCheckpoint extends Checkpoint {
|
|
748
749
|
customCartProgressBarCriteria?: string | null;
|
|
749
750
|
discountPercentage?: number | null;
|
|
750
751
|
discountId?: number | null;
|
|
751
752
|
}
|
|
752
|
-
declare const ProductsOffers: ({ offersConfig, offers,
|
|
753
|
+
declare const ProductsOffers: ({ offersConfig, offers, }: {
|
|
753
754
|
offersConfig?: ProductsOffersConfigType | null | undefined;
|
|
754
755
|
offers: CartCheckpoint[];
|
|
755
|
-
getOfferMessage: (offer: CartCheckpoint) => string;
|
|
756
756
|
}) => React.JSX.Element;
|
|
757
757
|
|
|
758
758
|
export { Bundle, BundleLoader, Cart, CartCheckpoint, CouponFrame, Nudge, ProductsOffers as ProductOffers, ProductsOffersConfigType, SpinnerWheel };
|