@anker-in/shopify-react 0.1.1-beta.31 → 0.1.1-beta.33

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.
@@ -53,7 +53,8 @@ function ShopifyProvider({
53
53
  cartCookieAdapter = browserCartCookieAdapter,
54
54
  routerAdapter,
55
55
  userAdapter,
56
- children
56
+ children,
57
+ performanceAdapter
57
58
  }) {
58
59
  const client = useMemo(() => {
59
60
  return createShopifyClient(config, locale);
@@ -67,7 +68,8 @@ function ShopifyProvider({
67
68
  cookieAdapter,
68
69
  cartCookieAdapter,
69
70
  routerAdapter,
70
- userAdapter
71
+ userAdapter,
72
+ performanceAdapter
71
73
  };
72
74
  }, [
73
75
  client,
@@ -77,6 +79,7 @@ function ShopifyProvider({
77
79
  cookieAdapter,
78
80
  cartCookieAdapter,
79
81
  routerAdapter,
82
+ performanceAdapter,
80
83
  userAdapter
81
84
  ]);
82
85
  return /* @__PURE__ */ jsx(ShopifyContext.Provider, { value, children });
@@ -396,7 +399,6 @@ var useCalcAutoFreeGift = (cart, autoFreeGiftConfig, customer, lines) => {
396
399
  const effectiveCart = useMemo(() => {
397
400
  return cart;
398
401
  }, [lines, cart]);
399
- console.log("effectiveCart useCalcAutoFreeGift", effectiveCart);
400
402
  const { activeCampaign, subtotal } = useMemo(() => {
401
403
  for (const campaign of autoFreeGiftConfig) {
402
404
  const { rule_conditions = [], rule_result } = campaign;
@@ -412,7 +414,6 @@ var useCalcAutoFreeGift = (cart, autoFreeGiftConfig, customer, lines) => {
412
414
  all_store_variant: spend_get_reward.main_product?.all_store_variant || false
413
415
  }
414
416
  );
415
- console.log("matchedSubtotal useCalcAutoFreeGift", matchedSubtotal);
416
417
  if (matchedSubtotal > 0) {
417
418
  return { activeCampaign: campaign, subtotal: matchedSubtotal };
418
419
  }
@@ -1132,7 +1133,8 @@ function CartProvider({
1132
1133
  cart,
1133
1134
  mutateCart,
1134
1135
  isCartLoading: isCartLoading || isCodeChanging,
1135
- setLoadingState
1136
+ setLoadingState,
1137
+ metafieldIdentifiers
1136
1138
  });
1137
1139
  const removeCustomAttributes = useCallback(
1138
1140
  (attributes2) => {