@kachingappz/bundles-js 1.1.9 → 1.2.0
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/bundles-js.iife.js +19 -19
- package/dist/index.d.ts +18 -9
- package/dist/index.js +305 -213
- package/dist/kaching-bundle-component/index.d.ts +18 -9
- package/dist/kaching-bundle-component/index.js +354 -273
- package/dist/react/index.cjs +19 -19
- package/dist/react/index.d.ts +18 -9
- package/dist/react/index.js +328 -250
- package/package.json +3 -2
|
@@ -321,6 +321,10 @@ declare type DealBlock = {
|
|
|
321
321
|
cornerRadius: number;
|
|
322
322
|
spacing?: number;
|
|
323
323
|
selectedProductIds: number[];
|
|
324
|
+
selectedVariants?: {
|
|
325
|
+
productId: number;
|
|
326
|
+
variantIds: number[];
|
|
327
|
+
}[];
|
|
324
328
|
selectedCollectionIds: number[];
|
|
325
329
|
excludedProductIds: number[];
|
|
326
330
|
excludedCollectionIds?: number[];
|
|
@@ -413,13 +417,7 @@ declare type DefaultSortOption = "relevance" | "newest-first" | "price-low-to-hi
|
|
|
413
417
|
|
|
414
418
|
declare type DiscountType = "default" | "percentage" | "amount" | "specific";
|
|
415
419
|
|
|
416
|
-
export declare const fetchKachingBundlesData: (storefront:
|
|
417
|
-
productId: string;
|
|
418
|
-
dealBlockId?: string;
|
|
419
|
-
abTestVariantId?: string;
|
|
420
|
-
country?: string;
|
|
421
|
-
language?: string;
|
|
422
|
-
}) => Promise<KachingBundlesData | null>;
|
|
420
|
+
export declare const fetchKachingBundlesData: (storefront: KachingBundlesStorefront, options: KachingBundlesDataOptions) => Promise<KachingBundlesData | null>;
|
|
423
421
|
|
|
424
422
|
declare type Font = {
|
|
425
423
|
size: string | number;
|
|
@@ -590,6 +588,7 @@ declare interface GlobalConfig {
|
|
|
590
588
|
"system.deal_page_remove_subscription_only_items"?: string;
|
|
591
589
|
"system.deal_page_items_range"?: string;
|
|
592
590
|
"system.deal_page_tip_box_size"?: string;
|
|
591
|
+
"system.deal_page_tip_price_per_item"?: string;
|
|
593
592
|
"system.deal_page_about_this_price"?: string;
|
|
594
593
|
"system.deal_page_rating"?: string;
|
|
595
594
|
"system.deal_page_rating_count_one"?: string;
|
|
@@ -662,7 +661,6 @@ declare interface GlobalConfig {
|
|
|
662
661
|
low_priority_scripts?: boolean;
|
|
663
662
|
native_swatches_disabled?: boolean;
|
|
664
663
|
observe_external_selling_plan?: boolean;
|
|
665
|
-
observe_form_selling_plan?: boolean;
|
|
666
664
|
percentage_cents_rounding_workaround?: boolean;
|
|
667
665
|
preserve_variant_selections?: boolean;
|
|
668
666
|
price_rounding_v2?: boolean;
|
|
@@ -670,6 +668,7 @@ declare interface GlobalConfig {
|
|
|
670
668
|
propagate_picker_option_changes?: boolean;
|
|
671
669
|
remove_variant_change_delay?: boolean;
|
|
672
670
|
rever_non_returnable?: boolean;
|
|
671
|
+
selected_variants?: boolean;
|
|
673
672
|
show_single_variant_name?: boolean;
|
|
674
673
|
split_bxgy_items?: boolean;
|
|
675
674
|
split_quantity_break_items?: boolean;
|
|
@@ -677,7 +676,6 @@ declare interface GlobalConfig {
|
|
|
677
676
|
pos_extension?: boolean;
|
|
678
677
|
variant_gallery_switch?: boolean;
|
|
679
678
|
variant_images?: boolean;
|
|
680
|
-
widget_scroll_guard?: boolean;
|
|
681
679
|
};
|
|
682
680
|
shopCustomStyles: string;
|
|
683
681
|
shopDealPageCustomStyles?: string;
|
|
@@ -725,6 +723,7 @@ export declare interface KachingBundlesData {
|
|
|
725
723
|
dealBlock: DealBlock;
|
|
726
724
|
product: Product;
|
|
727
725
|
otherProducts: Product[];
|
|
726
|
+
mixAndMatchSwapProducts: Product[];
|
|
728
727
|
mediaImages: {
|
|
729
728
|
gid: string;
|
|
730
729
|
url: string;
|
|
@@ -735,6 +734,16 @@ export declare interface KachingBundlesData {
|
|
|
735
734
|
};
|
|
736
735
|
}
|
|
737
736
|
|
|
737
|
+
declare interface KachingBundlesDataOptions {
|
|
738
|
+
productId: string;
|
|
739
|
+
dealBlockId?: string;
|
|
740
|
+
abTestVariantId?: string;
|
|
741
|
+
country?: string;
|
|
742
|
+
language?: string;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
declare type KachingBundlesStorefront = HydrogenV2Storefront | HydrogenStorefrontClient | ReactHydrogenStorefront | ShopifyStorefrontApiClient | StorefrontCredentials;
|
|
746
|
+
|
|
738
747
|
declare type LowStockAlert = {
|
|
739
748
|
threshold: number;
|
|
740
749
|
message: string;
|