@kachingappz/bundles-js 1.0.1 → 1.1.1

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.
@@ -301,12 +301,14 @@ declare type DealBlock = {
301
301
  showBothPrices: boolean;
302
302
  unitLabel?: string;
303
303
  useProductCompareAtPrice: boolean;
304
+ hideFullPrice?: boolean;
304
305
  showPricesWithoutDecimals?: boolean;
305
306
  priceRounding: boolean;
306
307
  priceRoundingPrecision: PriceRoundingPrecision;
307
308
  updateNativePrice?: boolean;
308
309
  updateNativePriceType?: "item" | "bundle";
309
310
  showTotalPriceInAddToCartButton?: boolean;
311
+ includeUpsellsInDealBarPrice?: boolean;
310
312
  skipCart: boolean;
311
313
  showVariantsForSingleQuantity: boolean;
312
314
  preselectedDealBarId: string | null;
@@ -403,7 +405,7 @@ declare type DefaultSortOption = "relevance" | "newest-first" | "price-low-to-hi
403
405
 
404
406
  declare type DiscountType = "default" | "percentage" | "amount" | "specific";
405
407
 
406
- export declare const fetchKachingBundlesData: (storefront: HydrogenV2Storefront | ReactHydrogenStorefront | ShopifyStorefrontApiClient | StorefrontCredentials, { productId, dealBlockId, country, language, }: {
408
+ export declare const fetchKachingBundlesData: (storefront: HydrogenV2Storefront | HydrogenStorefrontClient | ReactHydrogenStorefront | ShopifyStorefrontApiClient | StorefrontCredentials, { productId, dealBlockId, country, language, }: {
407
409
  productId: string;
408
410
  dealBlockId?: string;
409
411
  country?: string;
@@ -453,6 +455,7 @@ declare interface GlobalConfig {
453
455
  includeSellingPlans: boolean;
454
456
  includeAvailableQuantity: boolean;
455
457
  customApiHost: string | null;
458
+ appEmbedCheckToken?: string | null;
456
459
  keepQuantityInput: boolean;
457
460
  ignoreDeselect: boolean;
458
461
  ignoreUnitPrice: boolean;
@@ -507,7 +510,6 @@ declare interface GlobalConfig {
507
510
  "system.deal_page_percentage_off"?: string;
508
511
  "system.deal_page_price_each"?: string;
509
512
  "system.deal_page_quantity_for_price"?: string;
510
- "system.deal_page_save_up_to"?: string;
511
513
  "system.deal_page_in_your_box"?: string;
512
514
  "system.deal_page_in_your_box_count"?: string;
513
515
  "system.deal_page_in_box_count"?: string;
@@ -516,11 +518,10 @@ declare interface GlobalConfig {
516
518
  "system.deal_page_box_full"?: string;
517
519
  "system.deal_page_sold_out"?: string;
518
520
  "system.deal_page_start_your_box"?: string;
519
- "system.deal_page_not_a_full_box"?: string;
521
+ "system.deal_page_not_a_box_size"?: string;
520
522
  "system.deal_page_full_price_for_now"?: string;
521
523
  "system.deal_page_percentage_unlocked"?: string;
522
524
  "system.deal_page_box_of"?: string;
523
- "system.deal_page_no_box_price"?: string;
524
525
  "system.deal_page_track_box_full"?: string;
525
526
  "system.deal_page_nudge_start_percentage_one"?: string;
526
527
  "system.deal_page_nudge_start_percentage_other"?: string;
@@ -538,12 +539,10 @@ declare interface GlobalConfig {
538
539
  "system.deal_page_nudge_more_fixed_other"?: string;
539
540
  "system.deal_page_nudge_more_fixed_few"?: string;
540
541
  "system.deal_page_nudge_more_fixed_many"?: string;
541
- "system.deal_page_nudge_best_price"?: string;
542
- "system.deal_page_nudge_box_full"?: string;
543
- "system.deal_page_nudge_below_minimum_one"?: string;
544
- "system.deal_page_nudge_below_minimum_other"?: string;
545
- "system.deal_page_nudge_below_minimum_few"?: string;
546
- "system.deal_page_nudge_below_minimum_many"?: string;
542
+ "system.deal_page_nudge_not_a_box_size_one"?: string;
543
+ "system.deal_page_nudge_not_a_box_size_other"?: string;
544
+ "system.deal_page_nudge_not_a_box_size_few"?: string;
545
+ "system.deal_page_nudge_not_a_box_size_many"?: string;
547
546
  "system.deal_page_subtotal"?: string;
548
547
  "system.deal_page_box_discount"?: string;
549
548
  "system.deal_page_box_price_saving"?: string;
@@ -571,7 +570,6 @@ declare interface GlobalConfig {
571
570
  "system.deal_page_default_add_to_box"?: string;
572
571
  "system.deal_page_default_add_box_to_cart"?: string;
573
572
  "system.deal_page_items_range"?: string;
574
- "system.deal_page_minimum"?: string;
575
573
  "system.deal_page_tip_box_size"?: string;
576
574
  "system.deal_page_tip_on_its_own"?: string;
577
575
  "system.deal_page_about_this_price"?: string;
@@ -585,6 +583,7 @@ declare interface GlobalConfig {
585
583
  label?: string | null;
586
584
  };
587
585
  featureFlags: {
586
+ accelerated_checkout_additional_items?: boolean;
588
587
  atc_total_price?: boolean;
589
588
  cart_change_response_rewrite?: boolean;
590
589
  cart_interceptor_dedupe_disabled?: boolean;
@@ -630,6 +629,21 @@ declare type Highlights = {
630
629
  customIconGID?: string | null;
631
630
  };
632
631
 
632
+ declare interface HydrogenStorefrontClient {
633
+ graphql(query: string, options?: {
634
+ variables?: Record<string, unknown>;
635
+ }): Promise<{
636
+ data: unknown;
637
+ errors?: readonly {
638
+ message: string;
639
+ }[];
640
+ }>;
641
+ i18n: {
642
+ country: string;
643
+ language: string;
644
+ };
645
+ }
646
+
633
647
  declare interface HydrogenV2Storefront {
634
648
  query: (query: string, options?: {
635
649
  variables?: Record<string, unknown>;
@@ -800,6 +814,7 @@ declare type ProgressiveGifts = {
800
814
  hideLockedGifts: boolean;
801
815
  showLockedGiftLabels: boolean;
802
816
  showLockedGiftProducts: boolean;
817
+ includeInCompareAt?: boolean;
803
818
  gifts: ProgressiveGift[];
804
819
  titleColor: Color;
805
820
  titleAlignment: "start" | "center" | "end";