@kachingappz/bundles-js 1.0.0 → 1.1.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/README.md +39 -1
- package/dist/bundles-js.iife.js +12 -11
- package/dist/index.d.ts +20 -2
- package/dist/index.js +150 -140
- package/dist/kaching-bundle-component/index.d.ts +20 -2
- package/dist/kaching-bundle-component/index.js +165 -155
- package/dist/react/index.cjs +12 -11
- package/dist/react/index.d.ts +20 -2
- package/dist/react/index.js +376 -355
- package/package.json +5 -3
|
@@ -243,6 +243,8 @@ declare type DealBarProgressiveGiftStyle = {
|
|
|
243
243
|
labelBackgroundColor: Color;
|
|
244
244
|
labelTextColor: Color;
|
|
245
245
|
labelTextSize: number;
|
|
246
|
+
backgroundColor?: Color | null;
|
|
247
|
+
selectedBackgroundColor?: Color | null;
|
|
246
248
|
textColor: Color;
|
|
247
249
|
selectedTextColor: Color;
|
|
248
250
|
textSize: number;
|
|
@@ -401,7 +403,7 @@ declare type DefaultSortOption = "relevance" | "newest-first" | "price-low-to-hi
|
|
|
401
403
|
|
|
402
404
|
declare type DiscountType = "default" | "percentage" | "amount" | "specific";
|
|
403
405
|
|
|
404
|
-
export declare const fetchKachingBundlesData: (storefront: HydrogenV2Storefront | ReactHydrogenStorefront | ShopifyStorefrontApiClient | StorefrontCredentials, { productId, dealBlockId, country, language, }: {
|
|
406
|
+
export declare const fetchKachingBundlesData: (storefront: HydrogenV2Storefront | HydrogenStorefrontClient | ReactHydrogenStorefront | ShopifyStorefrontApiClient | StorefrontCredentials, { productId, dealBlockId, country, language, }: {
|
|
405
407
|
productId: string;
|
|
406
408
|
dealBlockId?: string;
|
|
407
409
|
country?: string;
|
|
@@ -505,7 +507,6 @@ declare interface GlobalConfig {
|
|
|
505
507
|
"system.deal_page_percentage_off"?: string;
|
|
506
508
|
"system.deal_page_price_each"?: string;
|
|
507
509
|
"system.deal_page_quantity_for_price"?: string;
|
|
508
|
-
"system.deal_page_save_up_to"?: string;
|
|
509
510
|
"system.deal_page_in_your_box"?: string;
|
|
510
511
|
"system.deal_page_in_your_box_count"?: string;
|
|
511
512
|
"system.deal_page_in_box_count"?: string;
|
|
@@ -583,6 +584,7 @@ declare interface GlobalConfig {
|
|
|
583
584
|
label?: string | null;
|
|
584
585
|
};
|
|
585
586
|
featureFlags: {
|
|
587
|
+
accelerated_checkout_additional_items?: boolean;
|
|
586
588
|
atc_total_price?: boolean;
|
|
587
589
|
cart_change_response_rewrite?: boolean;
|
|
588
590
|
cart_interceptor_dedupe_disabled?: boolean;
|
|
@@ -628,6 +630,21 @@ declare type Highlights = {
|
|
|
628
630
|
customIconGID?: string | null;
|
|
629
631
|
};
|
|
630
632
|
|
|
633
|
+
declare interface HydrogenStorefrontClient {
|
|
634
|
+
graphql(query: string, options?: {
|
|
635
|
+
variables?: Record<string, unknown>;
|
|
636
|
+
}): Promise<{
|
|
637
|
+
data: unknown;
|
|
638
|
+
errors?: readonly {
|
|
639
|
+
message: string;
|
|
640
|
+
}[];
|
|
641
|
+
}>;
|
|
642
|
+
i18n: {
|
|
643
|
+
country: string;
|
|
644
|
+
language: string;
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
|
|
631
648
|
declare interface HydrogenV2Storefront {
|
|
632
649
|
query: (query: string, options?: {
|
|
633
650
|
variables?: Record<string, unknown>;
|
|
@@ -798,6 +815,7 @@ declare type ProgressiveGifts = {
|
|
|
798
815
|
hideLockedGifts: boolean;
|
|
799
816
|
showLockedGiftLabels: boolean;
|
|
800
817
|
showLockedGiftProducts: boolean;
|
|
818
|
+
includeInCompareAt?: boolean;
|
|
801
819
|
gifts: ProgressiveGift[];
|
|
802
820
|
titleColor: Color;
|
|
803
821
|
titleAlignment: "start" | "center" | "end";
|