yt-uikit 0.10.109 → 0.10.110
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.
|
@@ -96,6 +96,10 @@ export interface uploadImageAddonInterface {
|
|
|
96
96
|
subtitle: string;
|
|
97
97
|
uploadedText: string;
|
|
98
98
|
}
|
|
99
|
+
export interface RatingsData {
|
|
100
|
+
enableRatings: boolean;
|
|
101
|
+
showRatingsCountLineLevel: boolean;
|
|
102
|
+
}
|
|
99
103
|
export interface CartProps {
|
|
100
104
|
isOpen: boolean;
|
|
101
105
|
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -223,6 +227,7 @@ export interface CartProps {
|
|
|
223
227
|
showFreebieMilestone?: boolean;
|
|
224
228
|
showFloatingCart?: boolean;
|
|
225
229
|
floatingCartData?: FloatingCartDataProps;
|
|
230
|
+
ratingsData?: RatingsData;
|
|
226
231
|
cartTimerInMinutes?: number;
|
|
227
232
|
cartTimerCustomText?: string;
|
|
228
233
|
imageAspectSelector?: "square" | "portrait";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Checkpoint } from "./Cart";
|
|
2
|
+
import type { CartProps, Checkpoint } from "./Cart";
|
|
3
3
|
import type { cartConfigInterface } from "./CartDrawer";
|
|
4
4
|
import { freebieMilestoneProps } from "./NextFreebieRow";
|
|
5
5
|
import { type ItemSwapData, type ItemSwapProduct, type ItemSwapRequest } from "./ItemSwap";
|
|
@@ -7,6 +7,7 @@ type CartProductsListProps = {
|
|
|
7
7
|
addCartItem?: (product: any, quantity?: number, triggeredFrom?: string) => Promise<any>;
|
|
8
8
|
removeCartItem: (lineItemKey: string, triggeredFrom?: string, ytRequest?: boolean) => Promise<any>;
|
|
9
9
|
cartConfigData?: cartConfigInterface;
|
|
10
|
+
ratingsData?: CartProps["ratingsData"];
|
|
10
11
|
getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
|
|
11
12
|
handleIncrement: (lineItemKey: string | number, newQuantity: number, properties?: {
|
|
12
13
|
[key: string]: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { cartConfigInterface } from "./CartDrawer";
|
|
3
|
-
|
|
3
|
+
import type { RatingsData } from "./Cart";
|
|
4
|
+
declare const _default: React.MemoExoticComponent<({ product: variant, handleDecrement, handleIncrement, removeCartItem, addCartItem, isDev, themeColor, primaryTextColor, secondaryTextColor, tertiaryColor, tertiaryTextColor, showQtySelector, themeTextColor, showEditOptionOnProducts, percentageOff, removeFreebieFromCart, showDeleteOnFreebies, imageAspectSelector, cartComponentsCornerType, cartComponentsCornerRadius, backgroundSubdued, backgroundColor, showDiscountOnMRP, freeLabelText, showVariantsInClaimSection, cartConfigData, ratingsData, getProductDetailsByVariantId, isLargeScreen, }: {
|
|
4
5
|
product: any;
|
|
5
6
|
addCartItem?: ((product: any, quantity?: number | undefined, triggeredFrom?: string | undefined) => Promise<any>) | undefined;
|
|
6
7
|
removeCartItem?: ((lineItemKey: string, triggeredFrom?: string | undefined, ytRequest?: boolean | undefined) => Promise<any>) | undefined;
|
|
@@ -29,6 +30,7 @@ declare const _default: React.MemoExoticComponent<({ product: variant, handleDec
|
|
|
29
30
|
freeLabelText?: string | undefined;
|
|
30
31
|
showVariantsInClaimSection?: boolean | undefined;
|
|
31
32
|
cartConfigData?: cartConfigInterface | undefined;
|
|
33
|
+
ratingsData?: RatingsData | undefined;
|
|
32
34
|
getProductDetailsByVariantId?: ((handle: string, variantId?: string | undefined) => Promise<any>) | undefined;
|
|
33
35
|
isLargeScreen?: boolean | undefined;
|
|
34
36
|
}) => React.JSX.Element>;
|