@anker-in/shopify-react 0.1.1-beta.1 → 0.1.1-beta.10

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,7 +1,8 @@
1
1
  import * as swr_mutation from 'swr/mutation';
2
2
  import { SWRMutationConfiguration } from 'swr/mutation';
3
- import { CartLineInput as CartLineInput$1, NormalizedCart, UpdateCartLinesOptions, HasMetafieldsIdentifier, NormalizedProduct, NormalizedProductVariant, NormalizedLineItem, Media, NormalizedCollection, CollectionsConnection, NormalizedBlog, NormalizedArticle } from '@anker-in/shopify-sdk';
4
- import { A as AddToCartLineItem, G as GtmParams, B as BuyNowTrackConfig, d as PlusMemberShippingMethodConfig, e as PlusMemberSettingsMetafields, D as DeliveryPlusType, f as SelectedPlusMemberProduct, i as DeliveryData } from './types-CICUnw0v.mjs';
3
+ import * as _anker_in_shopify_sdk from '@anker-in/shopify-sdk';
4
+ import { CartLineInput as CartLineInput$1, NormalizedCart, UpdateCartLinesOptions, HasMetafieldsIdentifier, NormalizedProduct, NormalizedProductVariant, NormalizedLineItem, Attribute as Attribute$1, Media, NormalizedCollection, CollectionsConnection, NormalizedBlog, NormalizedArticle } from '@anker-in/shopify-sdk';
5
+ import { A as AddToCartLineItem, G as GtmParams, B as BuyNowTrackConfig, d as PlusMemberShippingMethodConfig, e as PlusMemberSettingsMetafields, D as DeliveryPlusType, f as SelectedPlusMemberProduct, h as DeliveryData } from './types-CUv-lzQk.mjs';
5
6
  import Decimal from 'decimal.js';
6
7
  import * as swr from 'swr';
7
8
  import swr__default, { SWRConfiguration } from 'swr';
@@ -427,8 +428,108 @@ type AutoFreeGiftList = AutoFreeGiftItem[] | [];
427
428
  * 此 Hook 不产生任何副作用。
428
429
  * 使用示例:
429
430
  * const { qualifyingGift, nextTierGoal, activeCampaign, isLoading } = useCalcAutoFreeGift(cart, autoFreeGiftConfig);
431
+ *
432
+ * 也可以传入 lines 参数来计算加购前的赠品:
433
+ * const { qualifyingGift, nextTierGoal, activeCampaign, isLoading } = useCalcAutoFreeGift(cart, autoFreeGiftConfig, customer, lines);
430
434
  */
431
- declare const useCalcAutoFreeGift: (cart: any, autoFreeGiftConfig: AutoFreeGiftConfig, customer: any) => FunctionGiftResult;
435
+ declare const useCalcAutoFreeGift: (cart: any, autoFreeGiftConfig: AutoFreeGiftConfig, customer: any, lines?: AddToCartLineItem[]) => FunctionGiftResult;
436
+
437
+ interface GiveawayProduct {
438
+ handle: string;
439
+ sku: string;
440
+ }
441
+ interface Breakpoint {
442
+ breakpoint: string;
443
+ giveawayProducts: GiveawayProduct[];
444
+ }
445
+ interface Campaign {
446
+ activityAvailableQuery?: string;
447
+ activityQroperty?: string;
448
+ breakpoints?: Array<{
449
+ breakpoint: string;
450
+ giveawayProducts: GiveawayProduct[];
451
+ }>;
452
+ includeTags?: string[];
453
+ useTotalAmount?: boolean;
454
+ }
455
+ interface UseScriptAutoFreeGiftResult {
456
+ involvedLines: NormalizedLineItem[];
457
+ reorder: (a: NormalizedLineItem, b: NormalizedLineItem) => number;
458
+ disableCodeRemove: boolean;
459
+ nextFreeGiftLevel: Breakpoint | null;
460
+ freeGiftLevel: Breakpoint | null;
461
+ involvedSubTotal: Decimal;
462
+ giftProductsResult?: NormalizedProduct[];
463
+ }
464
+ declare const useScriptAutoFreeGift: ({ campaign, _giveaway, cart, locale: providedLocale, lines, }: {
465
+ campaign: Campaign | null;
466
+ _giveaway: string;
467
+ cart: NormalizedCart | undefined;
468
+ locale?: string;
469
+ lines?: AddToCartLineItem[];
470
+ }) => UseScriptAutoFreeGiftResult;
471
+
472
+ interface UseCalcGiftsFromLinesOptions {
473
+ /** Lines to calculate gifts from (AddToCartLineItem format) */
474
+ lines: AddToCartLineItem[];
475
+ /** Auto free gift configuration (Function gift) */
476
+ autoFreeGiftConfig?: AutoFreeGiftConfig;
477
+ /** Customer information (required for function gift) */
478
+ customer?: any;
479
+ /** Script gift campaign configuration */
480
+ scriptCampaign?: any;
481
+ /** Script giveaway attribute key */
482
+ scriptGiveawayKey?: string;
483
+ /** Locale for product fetching (optional, will use from ShopifyProvider if not provided) */
484
+ locale?: string;
485
+ }
486
+ interface UseCalcGiftsFromLinesResult {
487
+ /** Function gift calculation result */
488
+ functionGift: FunctionGiftResult;
489
+ /** Script gift calculation result */
490
+ scriptGift: UseScriptAutoFreeGiftResult;
491
+ /** All gift lines that need to be added to cart (combined from both) */
492
+ allGiftLines: CartLineInput[];
493
+ /** Whether any gifts are available */
494
+ hasGifts: boolean;
495
+ }
496
+ /**
497
+ * Calculate gifts from AddToCartLineItem[] before adding to cart
498
+ * Supports both function-based gifts (useCalcAutoFreeGift) and script-based gifts (useScriptAutoFreeGift)
499
+ *
500
+ * Automatically uses locale from ShopifyProvider and cart from CartContext if not provided.
501
+ *
502
+ * @example
503
+ * ```tsx
504
+ * // Basic usage (locale from context, customer required for function gift)
505
+ * const { allGiftLines, hasGifts } = useCalcGiftsFromLines({
506
+ * lines: [{ variant: myVariant, quantity: 2 }],
507
+ * customer: currentCustomer,
508
+ * autoFreeGiftConfig: functionGiftConfig,
509
+ * scriptCampaign: scriptGiftConfig,
510
+ * })
511
+ *
512
+ * // Script gift only (no customer needed)
513
+ * const { allGiftLines, hasGifts } = useCalcGiftsFromLines({
514
+ * lines: [{ variant: myVariant, quantity: 2 }],
515
+ * scriptCampaign: scriptGiftConfig,
516
+ * })
517
+ *
518
+ * // With custom locale
519
+ * const { allGiftLines, hasGifts } = useCalcGiftsFromLines({
520
+ * lines: [{ variant: myVariant, quantity: 2 }],
521
+ * customer: currentCustomer,
522
+ * locale: 'fr',
523
+ * autoFreeGiftConfig: functionGiftConfig,
524
+ * })
525
+ *
526
+ * // Then add both products and gifts to cart
527
+ * await addToCart({
528
+ * lineItems: [...lines, ...allGiftLines]
529
+ * })
530
+ * ```
531
+ */
532
+ declare function useCalcGiftsFromLines({ lines, customer, scriptGiveawayKey, }: UseCalcGiftsFromLinesOptions): UseCalcGiftsFromLinesResult;
432
533
 
433
534
  declare enum OrderDiscountType {
434
535
  PERCENTAGE = 1,// 百分比折扣
@@ -633,6 +734,39 @@ declare const usePlusMemberDeliveryCodes: ({ deliveryData, }: {
633
734
  deliveryData?: DeliveryData;
634
735
  }) => string[] | undefined;
635
736
 
737
+ interface UseUpdatePlusMemberDeliveryOptionsProps {
738
+ /** SWR mutation configuration */
739
+ options?: SWRMutationConfiguration<any, Error, 'update-cart-delivery-options', {
740
+ deliveryData: DeliveryData;
741
+ }>;
742
+ }
743
+ /**
744
+ * Hook to update cart delivery options based on plus member delivery data
745
+ *
746
+ * This hook extracts the selected delivery option from delivery custom data and
747
+ * maps it to the appropriate delivery option handle from the cart's deliveryGroups.
748
+ * It then triggers the update-cart-delivery-options mutation to apply the selection.
749
+ *
750
+ * The hook handles:
751
+ * - Extracting delivery option code from deliveryCustomData.selected_delivery_option
752
+ * - Finding the matching delivery option in cart.deliveryGroups
753
+ * - Triggering the cart update with the correct delivery option handle
754
+ *
755
+ * @param props - Hook properties
756
+ * @returns useSWRMutation result with trigger and loading state
757
+ *
758
+ * @example
759
+ * ```tsx
760
+ * const { trigger, isMutating } = useUpdatePlusMemberDeliveryOptions()
761
+ *
762
+ * // Trigger update with delivery data
763
+ * await trigger({ deliveryData })
764
+ * ```
765
+ */
766
+ declare const useUpdatePlusMemberDeliveryOptions: ({ options, }: UseUpdatePlusMemberDeliveryOptionsProps) => swr_mutation.SWRMutationResponse<any, Error, "update-cart-delivery-options", {
767
+ deliveryData: DeliveryData;
768
+ }>;
769
+
636
770
  type Attribute = {
637
771
  key: string;
638
772
  value: string;
@@ -711,7 +845,7 @@ type ExportCart = {
711
845
  };
712
846
  taxesIncluded?: boolean;
713
847
  lineItems: ExportLineItem[];
714
- totallineItemsDiscount?: number;
848
+ totalLineItemsDiscount?: number;
715
849
  orderDiscounts?: number;
716
850
  lineItemsSubtotalPrice: number;
717
851
  subtotalPrice: number;
@@ -804,23 +938,20 @@ declare const usePlusMemberCheckoutCustomAttributes: <TProduct = any, TVariant =
804
938
 
805
939
  /**
806
940
  * useAutoRemovePlusMemberInCart Hook
807
- * 自动移除购物车中的会员产品
941
+ * 付费会员身份自动移除购物车中的会员产品
808
942
  * 年费会员删除月费会员产品,月费会员删除年费会员产品
809
943
  */
810
944
 
811
945
  interface UseAutoRemovePlusMemberInCartProps {
812
- /** Plus Member 配置 */
813
- metafields: PlusMemberSettingsMetafields;
814
- /** 用户是否是月费会员 */
815
- isMonthlyPlus?: boolean;
816
- /** 用户是否是年费会员 */
817
- isAnnualPlus?: boolean;
946
+ profile: any;
947
+ cart?: NormalizedCart;
948
+ memberSetting: PlusMemberSettingsMetafields;
818
949
  }
819
950
  /**
820
951
  * 自动移除购物车中的会员产品
821
952
  *
822
953
  * @param props - Hook 参数
823
- * @param props.metafields - Plus Member 配置
954
+ * @param props.memberSetting - Plus Member 配置
824
955
  * @param props.isMonthlyPlus - 用户是否是月费会员
825
956
  * @param props.isAnnualPlus - 用户是否是年费会员
826
957
  *
@@ -829,13 +960,12 @@ interface UseAutoRemovePlusMemberInCartProps {
829
960
  * const { profile } = useProfile()
830
961
  *
831
962
  * useAutoRemovePlusMemberInCart({
832
- * metafields: plusMemberSettings,
833
- * isMonthlyPlus: profile?.isMonthlyPlus,
834
- * isAnnualPlus: profile?.isAnnualPlus,
963
+ * cart,
964
+ * profile,
835
965
  * })
836
966
  * ```
837
967
  */
838
- declare function useAutoRemovePlusMemberInCart({ metafields, isMonthlyPlus, isAnnualPlus, }: UseAutoRemovePlusMemberInCartProps): void;
968
+ declare function useAutoRemovePlusMemberInCart({ cart, profile, memberSetting, }: UseAutoRemovePlusMemberInCartProps): void;
839
969
 
840
970
  /**
841
971
  * useHasPlusMemberInCart Hook
@@ -896,11 +1026,42 @@ interface HasPlusMemberInCartResult {
896
1026
  */
897
1027
  declare function useHasPlusMemberInCart({ memberSetting, cart, }: UseHasPlusMemberInCartProps): HasPlusMemberInCartResult;
898
1028
 
1029
+ /**
1030
+ * 返回需要添加到购物车的 Plus Member 产品
1031
+ *
1032
+ * 该 hook 会根据用户选择的会员模式和购物车现有状态,
1033
+ * 返回需要添加的会员产品。如果不需要添加会员产品,则返回 undefined。
1034
+ *
1035
+ * @param props - Hook 参数
1036
+ * @param props.cart - 购物车数据
1037
+ * @returns Plus Member 产品对象或 undefined
1038
+ *
1039
+ * @example
1040
+ * ```tsx
1041
+ * const plusMemberProduct = useAddPlusMemberProductsToCart({
1042
+ * cart,
1043
+ * })
1044
+ *
1045
+ * // plusMemberProduct 格式:
1046
+ * // {
1047
+ * // product: NormalizedProduct,
1048
+ * // variant: NormalizedProductVariant
1049
+ * // }
1050
+ * // 或 undefined (当不需要添加会员产品时)
1051
+ * ```
1052
+ */
1053
+ declare function useAddPlusMemberProductsToCart({ cart, profile, }: {
1054
+ cart: NormalizedCart;
1055
+ profile?: any;
1056
+ }): {
1057
+ product: _anker_in_shopify_sdk.NormalizedProduct;
1058
+ variant: _anker_in_shopify_sdk.NormalizedProductVariant;
1059
+ } | undefined;
1060
+
899
1061
  interface PlusMemberProviderProps<TProduct = any, TVariant = any, TProfile = any> {
900
1062
  variant: TVariant;
901
1063
  product: TProduct;
902
- metafields: PlusMemberSettingsMetafields;
903
- shopCommon?: Record<string, any>;
1064
+ memberSetting: PlusMemberSettingsMetafields;
904
1065
  initialSelectedPlusMemberMode?: DeliveryPlusType;
905
1066
  profile?: TProfile;
906
1067
  locale?: string;
@@ -913,7 +1074,6 @@ interface PlusMemberProviderProps<TProduct = any, TVariant = any, TProfile = any
913
1074
  * @param variant - Product variant
914
1075
  * @param product - Product
915
1076
  * @param metafields - Plus member settings from metafields
916
- * @param shopCommon - Shop common settings
917
1077
  * @param initialSelectedPlusMemberMode - Initial selected mode (default: 'free')
918
1078
  * @param profile - User profile
919
1079
  * @param locale - Locale code
@@ -924,8 +1084,7 @@ interface PlusMemberProviderProps<TProduct = any, TVariant = any, TProfile = any
924
1084
  * <PlusMemberProvider
925
1085
  * variant={variant}
926
1086
  * product={product}
927
- * metafields={memberSettings}
928
- * shopCommon={shopCommon}
1087
+ * memberSetting={memberSetting}
929
1088
  * profile={profile}
930
1089
  * locale={locale}
931
1090
  * >
@@ -933,7 +1092,7 @@ interface PlusMemberProviderProps<TProduct = any, TVariant = any, TProfile = any
933
1092
  * </PlusMemberProvider>
934
1093
  * ```
935
1094
  */
936
- declare const PlusMemberProvider: <TProduct = any, TVariant = any, TProfile = any>({ variant, product, shopCommon, metafields, initialSelectedPlusMemberMode, profile, locale, children, }: PropsWithChildren<PlusMemberProviderProps<TProduct, TVariant, TProfile>>) => react_jsx_runtime.JSX.Element;
1095
+ declare const PlusMemberProvider: <TProduct = any, TVariant = any, TProfile = any>({ variant, product, memberSetting, initialSelectedPlusMemberMode, profile, locale, children, }: PropsWithChildren<PlusMemberProviderProps<TProduct, TVariant, TProfile>>) => react_jsx_runtime.JSX.Element;
937
1096
 
938
1097
  declare const getReferralAttributes: () => {
939
1098
  key: string;
@@ -969,40 +1128,6 @@ declare const useCartItemQuantityLimit: ({ cart, cartItem, config, }: {
969
1128
  max: number;
970
1129
  };
971
1130
 
972
- interface GiveawayProduct {
973
- handle: string;
974
- sku: string;
975
- }
976
- interface Breakpoint {
977
- breakpoint: string;
978
- giveawayProducts: GiveawayProduct[];
979
- }
980
- interface Campaign {
981
- activityAvailableQuery?: string;
982
- activityQroperty?: string;
983
- breakpoints?: Array<{
984
- breakpoint: string;
985
- giveawayProducts: GiveawayProduct[];
986
- }>;
987
- includeTags?: string[];
988
- useTotalAmount?: boolean;
989
- }
990
- interface UseScriptAutoFreeGiftResult {
991
- involvedLines: NormalizedLineItem[];
992
- reorder: (a: NormalizedLineItem, b: NormalizedLineItem) => number;
993
- disableCodeRemove: boolean;
994
- nextFreeGiftLevel: Breakpoint | null;
995
- freeGiftLevel: Breakpoint | null;
996
- involvedSubTotal: Decimal;
997
- giftProductsResult?: NormalizedProduct[];
998
- }
999
- declare const useScriptAutoFreeGift: ({ campaign, _giveaway, cart, locale: providedLocale, }: {
1000
- campaign: Campaign | null;
1001
- _giveaway: string;
1002
- cart: NormalizedCart | undefined;
1003
- locale?: string;
1004
- }) => UseScriptAutoFreeGiftResult;
1005
-
1006
1131
  declare const useUpdateLineCodeAmountAttributes: ({ cart, mutateCart, isCartLoading, setLoadingState, metafieldIdentifiers, }: {
1007
1132
  cart?: NormalizedCart;
1008
1133
  mutateCart: (cart: NormalizedCart | undefined) => void;
@@ -1044,23 +1169,30 @@ declare const CODE_AMOUNT_KEY = "_sku_code_money";
1044
1169
  declare const SCRIPT_CODE_AMOUNT_KEY = "_code_money";
1045
1170
  declare const MAIN_PRODUCT_CODE: string[];
1046
1171
 
1172
+ /**
1173
+ * Normalize AddToCartLineItem[] to NormalizedLineItem[] format
1174
+ * This is used to calculate gifts from lines before they are added to cart
1175
+ */
1176
+ declare function normalizeAddToCartLines(lines: AddToCartLineItem[]): NormalizedLineItem[];
1177
+ /**
1178
+ * Create a mock cart structure from AddToCartLineItem[]
1179
+ * This is useful for calculating gifts before actual cart operations
1180
+ */
1181
+ declare function createMockCartFromLines(lines: AddToCartLineItem[], existingCart?: any): any;
1182
+
1047
1183
  declare const getQuery: () => Record<string, string>;
1048
1184
  declare function atobID(id: string): string | undefined;
1049
1185
  declare function btoaID(id: string, type?: 'ProductVariant' | 'Product'): string;
1050
1186
 
1051
1187
  declare const getMatchedMainProductSubTotal: (cartData: any, variant_list: AutoFreeGiftMainProduct["variant_id_list"], main_product: AutoFreeGiftMainProduct) => any;
1188
+ declare const safeParse: (str: string) => any;
1052
1189
  declare const getDiscountEnvAttributeValue: (attributes?: {
1053
1190
  key: string;
1054
1191
  value: string;
1055
1192
  }[]) => any;
1056
- declare const isAttributesEqual: (attrs1?: {
1193
+ declare const checkAttributesUpdateNeeded: (oldAttributes: Attribute$1[], newAttributes: Attribute$1[], customAttributesNeedRemove: {
1057
1194
  key: string;
1058
- value: string;
1059
- }[], attrs2?: {
1060
- key: string;
1061
- value: string;
1062
1195
  }[]) => boolean;
1063
- declare const safeParseJson: (str: string) => any;
1064
1196
  declare function preCheck(rule_conditions: RuleCondition[], userTags: string[], currentDealsTypes: string[]): boolean;
1065
1197
  declare const formatScriptAutoFreeGift: ({ scriptAutoFreeGiftResult, gradient_gifts, locale, }: {
1066
1198
  scriptAutoFreeGiftResult: UseScriptAutoFreeGiftResult;
@@ -1847,4 +1979,4 @@ declare function getCachedGeoLocation(cacheKey?: string): GeoLocationData | unde
1847
1979
  */
1848
1980
  declare function clearGeoLocationCache(cacheKey?: string): void;
1849
1981
 
1850
- export { defaultSWRMutationConfiguration as $, type AddCartLinesInput as A, type BuyNowInput as B, type CreateCartInput as C, type DiscountLabel as D, type GiftProductItem as E, RuleType as F, type GiftProduct as G, BuyRuleType as H, type FunctionGiftResult as I, type FormattedGift as J, type CartLineInput as K, type AutoFreeGiftItem as L, type MainProductInfo as M, type AutoFreeGiftList as N, type OrderDiscountResult as O, OrderDiscountType as P, OrderBasePriceType as Q, type RemoveCartLinesInput as R, SpendMoneyType as S, type TieredDiscount as T, type UpdateCartAttributesInput as U, type VariantItem as V, type OrderDiscountConfig as W, PriceDiscountType as X, PriceBasePriceType as Y, type PriceDiscountConfig as Z, currencyCodeMapping as _, useAddCartLines as a, usePlusAnnualProductVariant as a$, CUSTOMER_ATTRIBUTE_KEY as a0, CUSTOMER_SCRIPT_GIFT_KEY as a1, CODE_AMOUNT_KEY as a2, SCRIPT_CODE_AMOUNT_KEY as a3, MAIN_PRODUCT_CODE as a4, getQuery as a5, atobID as a6, btoaID as a7, getMatchedMainProductSubTotal as a8, getDiscountEnvAttributeValue as a9, type UseAllCollectionsOptions as aA, useAllCollections as aB, type UseCollectionsOptions as aC, useCollections as aD, type UseBlogOptions as aE, useBlog as aF, type UseAllBlogsOptions as aG, useAllBlogs as aH, type UseArticleOptions as aI, useArticle as aJ, type UseArticlesOptions as aK, useArticles as aL, type UseArticlesInBlogOptions as aM, useArticlesInBlog as aN, type SearchResultType as aO, type SearchResultItem as aP, type SearchResult as aQ, type UseSearchOptions as aR, useSearch as aS, type SiteInfo as aT, type UseSiteOptions as aU, useSite as aV, type ShippingMethodsContext as aW, type PlusMemberContextValue as aX, PlusMemberContext as aY, usePlusMemberContext as aZ, usePlusMonthlyProductVariant as a_, isAttributesEqual as aa, safeParseJson as ab, preCheck as ac, formatScriptAutoFreeGift as ad, formatFunctionAutoFreeGift as ae, useSelectedOptions as af, type SelectedOptionsResult as ag, type UseProductOptions as ah, useProduct as ai, type UseAllProductsOptions as aj, useAllProducts as ak, type UseProductsByHandlesOptions as al, useProductsByHandles as am, type Options as an, useVariant as ao, type UsePriceOptions as ap, type UsePriceResult as aq, usePrice as ar, useProductUrl as as, useUpdateVariantQuery as at, type ImageMedia as au, type VideoMedia as av, type VariantMedia as aw, useVariantMedia as ax, type UseCollectionOptions as ay, useCollection as az, useUpdateCartLines as b, type UseShippingMethodsOptions as b0, type UseShippingMethodsResult as b1, useShippingMethods as b2, useShippingMethodAvailableCheck as b3, useReplaceCartPlusMember as b4, usePlusMemberDeliveryCodes as b5, usePlusMemberItemCustomAttributes as b6, type CustomerOrder as b7, type Customer as b8, usePlusMemberCheckoutCustomAttributes as b9, type ExportCart as bA, type UseAutoRemovePlusMemberInCartProps as ba, useAutoRemovePlusMemberInCart as bb, type UseHasPlusMemberInCartProps as bc, type HasPlusMemberInCartResult as bd, useHasPlusMemberInCart as be, type PlusMemberProviderProps as bf, PlusMemberProvider as bg, type UseIntersectionOptions as bh, useIntersection as bi, type UseExposureOptions as bj, useExposure as bk, type GeoLocationData as bl, type LocaleMapping as bm, type UseGeoLocationOptions as bn, useGeoLocation as bo, getCachedGeoLocation as bp, clearGeoLocationCache as bq, type Attribute as br, type Discount as bs, type Image as bt, type Measurement as bu, type ExportSelectedOption as bv, type ExportProductVariant as bw, type ExportDiscountAllocations as bx, type ExportLineItem as by, type ExportDiscounts as bz, useRemoveCartLines as c, type ApplyCartCodesInput as d, useApplyCartCodes as e, type RemoveCartCodesInput as f, useRemoveCartCodes as g, useUpdateCartAttributes as h, type UseBuyNowOptions as i, useBuyNow as j, useCalcAutoFreeGift as k, useCalcOrderDiscount as l, getReferralAttributes as m, useCartAttributes as n, useCartItemQuantityLimit as o, type UseScriptAutoFreeGiftResult as p, useScriptAutoFreeGift as q, useUpdateLineCodeAmountAttributes as r, type AutoFreeGift as s, type AutoFreeGiftMainProduct as t, useCreateCart as u, type AutoFreeGiftConfig as v, type RuleCondition as w, type Config as x, type GiftTier as y, type RewardItem as z };
1982
+ export { PriceBasePriceType as $, type AddCartLinesInput as A, type BuyNowInput as B, type CreateCartInput as C, type DiscountLabel as D, type Config as E, type GiftTier as F, type GiftProduct as G, type RewardItem as H, type GiftProductItem as I, RuleType as J, BuyRuleType as K, type FunctionGiftResult as L, type MainProductInfo as M, type FormattedGift as N, type OrderDiscountResult as O, type CartLineInput as P, type AutoFreeGiftItem as Q, type RemoveCartLinesInput as R, SpendMoneyType as S, type AutoFreeGiftList as T, type UpdateCartAttributesInput as U, type VariantItem as V, OrderDiscountType as W, OrderBasePriceType as X, type TieredDiscount as Y, type OrderDiscountConfig as Z, PriceDiscountType as _, useAddCartLines as a, type ShippingMethodsContext as a$, type PriceDiscountConfig as a0, currencyCodeMapping as a1, defaultSWRMutationConfiguration as a2, CUSTOMER_ATTRIBUTE_KEY as a3, CUSTOMER_SCRIPT_GIFT_KEY as a4, CODE_AMOUNT_KEY as a5, SCRIPT_CODE_AMOUNT_KEY as a6, MAIN_PRODUCT_CODE as a7, getQuery as a8, atobID as a9, type VideoMedia as aA, type VariantMedia as aB, useVariantMedia as aC, type UseCollectionOptions as aD, useCollection as aE, type UseAllCollectionsOptions as aF, useAllCollections as aG, type UseCollectionsOptions as aH, useCollections as aI, type UseBlogOptions as aJ, useBlog as aK, type UseAllBlogsOptions as aL, useAllBlogs as aM, type UseArticleOptions as aN, useArticle as aO, type UseArticlesOptions as aP, useArticles as aQ, type UseArticlesInBlogOptions as aR, useArticlesInBlog as aS, type SearchResultType as aT, type SearchResultItem as aU, type SearchResult as aV, type UseSearchOptions as aW, useSearch as aX, type SiteInfo as aY, type UseSiteOptions as aZ, useSite as a_, btoaID as aa, normalizeAddToCartLines as ab, createMockCartFromLines as ac, getMatchedMainProductSubTotal as ad, safeParse as ae, getDiscountEnvAttributeValue as af, checkAttributesUpdateNeeded as ag, preCheck as ah, formatScriptAutoFreeGift as ai, formatFunctionAutoFreeGift as aj, useSelectedOptions as ak, type SelectedOptionsResult as al, type UseProductOptions as am, useProduct as an, type UseAllProductsOptions as ao, useAllProducts as ap, type UseProductsByHandlesOptions as aq, useProductsByHandles as ar, type Options as as, useVariant as at, type UsePriceOptions as au, type UsePriceResult as av, usePrice as aw, useProductUrl as ax, useUpdateVariantQuery as ay, type ImageMedia as az, useUpdateCartLines as b, type PlusMemberContextValue as b0, PlusMemberContext as b1, usePlusMemberContext as b2, usePlusMonthlyProductVariant as b3, usePlusAnnualProductVariant as b4, type UseShippingMethodsOptions as b5, type UseShippingMethodsResult as b6, useShippingMethods as b7, useShippingMethodAvailableCheck as b8, useReplaceCartPlusMember as b9, type Discount as bA, type Image as bB, type Measurement as bC, type ExportSelectedOption as bD, type ExportProductVariant as bE, type ExportDiscountAllocations as bF, type ExportLineItem as bG, type ExportDiscounts as bH, type ExportCart as bI, usePlusMemberDeliveryCodes as ba, type UseUpdatePlusMemberDeliveryOptionsProps as bb, useUpdatePlusMemberDeliveryOptions as bc, usePlusMemberItemCustomAttributes as bd, type CustomerOrder as be, type Customer as bf, usePlusMemberCheckoutCustomAttributes as bg, type UseAutoRemovePlusMemberInCartProps as bh, useAutoRemovePlusMemberInCart as bi, type UseHasPlusMemberInCartProps as bj, type HasPlusMemberInCartResult as bk, useHasPlusMemberInCart as bl, useAddPlusMemberProductsToCart as bm, type PlusMemberProviderProps as bn, PlusMemberProvider as bo, type UseIntersectionOptions as bp, useIntersection as bq, type UseExposureOptions as br, useExposure as bs, type GeoLocationData as bt, type LocaleMapping as bu, type UseGeoLocationOptions as bv, useGeoLocation as bw, getCachedGeoLocation as bx, clearGeoLocationCache as by, type Attribute as bz, useRemoveCartLines as c, type ApplyCartCodesInput as d, useApplyCartCodes as e, type RemoveCartCodesInput as f, useRemoveCartCodes as g, useUpdateCartAttributes as h, type UseBuyNowOptions as i, useBuyNow as j, useCalcAutoFreeGift as k, type UseCalcGiftsFromLinesOptions as l, type UseCalcGiftsFromLinesResult as m, useCalcGiftsFromLines as n, useCalcOrderDiscount as o, getReferralAttributes as p, useCartAttributes as q, useCartItemQuantityLimit as r, type UseScriptAutoFreeGiftResult as s, useScriptAutoFreeGift as t, useCreateCart as u, useUpdateLineCodeAmountAttributes as v, type AutoFreeGift as w, type AutoFreeGiftMainProduct as x, type AutoFreeGiftConfig as y, type RuleCondition as z };