yt-uikit 0.10.26 → 0.10.27
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,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./bundle.scss";
|
|
3
|
+
import { FilterGroup } from "./BundleBuilder/SortAndFilter";
|
|
3
4
|
interface ShopifyCurrency {
|
|
4
5
|
rate: number;
|
|
5
6
|
active: string;
|
|
@@ -258,6 +259,7 @@ type ByobStyle = {
|
|
|
258
259
|
discountBadgeVisibility?: boolean;
|
|
259
260
|
discountBadgeDisplay?: "discount-on-compare" | "discount-on-price";
|
|
260
261
|
discountDisplayType?: string;
|
|
262
|
+
fetchAllProductsAtOnce?: boolean;
|
|
261
263
|
};
|
|
262
264
|
type FixedStyle = {
|
|
263
265
|
titleFontSize: string;
|
|
@@ -376,6 +378,7 @@ export type BundlePayload = {
|
|
|
376
378
|
customProductsQuantity?: number | null;
|
|
377
379
|
reviewRatingType?: "none" | "ratingOnly" | "ratingAndReviewCount";
|
|
378
380
|
appName?: string;
|
|
381
|
+
workWithoutPagination?: boolean;
|
|
379
382
|
pageHeader?: {
|
|
380
383
|
title?: string;
|
|
381
384
|
description?: string;
|
|
@@ -438,6 +441,7 @@ export type BundleProps = {
|
|
|
438
441
|
fetchFn: (filters?: any, bundleTier?: number, cursor?: string | null) => Promise<ProductData[]>;
|
|
439
442
|
setCursorData: (cursorData: CursorData) => void;
|
|
440
443
|
};
|
|
444
|
+
categoryFilters?: Record<number, FilterGroup | FilterGroup[]>;
|
|
441
445
|
};
|
|
442
446
|
export declare const currencyPrice: (price: number | string | undefined) => string | undefined;
|
|
443
447
|
export declare const getCurrencySymbol: (genSymbol: string, _storeCurrencyCode?: string) => string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "../bundle.scss";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { AnalyticsEventParams, BundlePayload, CursorData, ProductData, ProductDetails } from "../Bundle";
|
|
4
|
+
import { FilterGroup } from "./SortAndFilter";
|
|
4
5
|
export declare function QuantitySelectorForBundle({ quantity, setQuantity, remainingQuantity, handleAddToBundle, variantId, product, handleRemoveItem, hideAddToBundle, selectedVariantInventoryQty, }: {
|
|
5
6
|
quantity: number;
|
|
6
7
|
setQuantity: React.Dispatch<React.SetStateAction<number>>;
|
|
@@ -45,6 +46,7 @@ type BundleBuilderProps = {
|
|
|
45
46
|
fetchFn: (filters?: any, bundleTier?: number, cursor?: string | null) => Promise<ProductData[]>;
|
|
46
47
|
setCursorData: (cursorData: CursorData) => void;
|
|
47
48
|
};
|
|
49
|
+
categoryFilters?: Record<number, FilterGroup | FilterGroup[]>;
|
|
48
50
|
};
|
|
49
51
|
declare const BundleBuilder: React.FC<BundleBuilderProps>;
|
|
50
52
|
export default BundleBuilder;
|