@anker-in/shopify-react 0.1.1-beta.40 → 0.1.1-beta.42

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.
@@ -98,6 +98,10 @@ type AddToCartLineItem = {
98
98
  key: string;
99
99
  value: string;
100
100
  }>;
101
+ coupon?: {
102
+ code: string;
103
+ amount: number;
104
+ };
101
105
  };
102
106
  interface AddToCartInput {
103
107
  /** Lines to add */
@@ -491,10 +495,9 @@ type PlusMemberSettingsMetafields = {
491
495
  confirmBtn: string;
492
496
  };
493
497
  };
494
- type SelectedPlusMemberProduct = {
495
- product: NormalizedProduct;
496
- variant: NormalizedProductVariant;
497
- } | null;
498
+ type SelectedPlusMemberVariant = (NormalizedProductVariant & {
499
+ product: NormalizedProduct | undefined;
500
+ }) | undefined;
498
501
  type DeliveryCustomData = {
499
502
  discount_code?: string[];
500
503
  allow_nextday_delivery?: boolean;
@@ -511,4 +514,4 @@ type DeliveryData = {
511
514
  deliveryCustomData: DeliveryCustomData;
512
515
  };
513
516
 
514
- export { type AddToCartLineItem as A, type BuyNowTrackConfig as B, DeliveryPlusType as D, type GtmParams as G, PLUS_MEMBER_TYPE as P, ShippingMethodMode as S, type UseAddToCartOptions as U, type AddToCartInput as a, PlusMemberMode as b, type PlusMemberShippingMethodMetafields as c, type PlusMemberShippingMethodConfig as d, type PlusMemberSettingsMetafields as e, type SelectedPlusMemberProduct as f, type DeliveryCustomData as g, type DeliveryData as h, gaTrack as i, trackBeginCheckoutGA as j, trackBuyNowGA as k, trackAddToCartFBQ as l, trackBuyNowFBQ as m, trackAddToCartGA as t };
517
+ export { type AddToCartLineItem as A, type BuyNowTrackConfig as B, DeliveryPlusType as D, type GtmParams as G, PLUS_MEMBER_TYPE as P, ShippingMethodMode as S, type UseAddToCartOptions as U, type AddToCartInput as a, PlusMemberMode as b, type PlusMemberShippingMethodMetafields as c, type PlusMemberShippingMethodConfig as d, type PlusMemberSettingsMetafields as e, type SelectedPlusMemberVariant as f, type DeliveryCustomData as g, type DeliveryData as h, gaTrack as i, trackBeginCheckoutGA as j, trackBuyNowGA as k, trackAddToCartFBQ as l, trackBuyNowFBQ as m, trackAddToCartGA as t };
@@ -98,6 +98,10 @@ type AddToCartLineItem = {
98
98
  key: string;
99
99
  value: string;
100
100
  }>;
101
+ coupon?: {
102
+ code: string;
103
+ amount: number;
104
+ };
101
105
  };
102
106
  interface AddToCartInput {
103
107
  /** Lines to add */
@@ -491,10 +495,9 @@ type PlusMemberSettingsMetafields = {
491
495
  confirmBtn: string;
492
496
  };
493
497
  };
494
- type SelectedPlusMemberProduct = {
495
- product: NormalizedProduct;
496
- variant: NormalizedProductVariant;
497
- } | null;
498
+ type SelectedPlusMemberVariant = (NormalizedProductVariant & {
499
+ product: NormalizedProduct | undefined;
500
+ }) | undefined;
498
501
  type DeliveryCustomData = {
499
502
  discount_code?: string[];
500
503
  allow_nextday_delivery?: boolean;
@@ -511,4 +514,4 @@ type DeliveryData = {
511
514
  deliveryCustomData: DeliveryCustomData;
512
515
  };
513
516
 
514
- export { type AddToCartLineItem as A, type BuyNowTrackConfig as B, DeliveryPlusType as D, type GtmParams as G, PLUS_MEMBER_TYPE as P, ShippingMethodMode as S, type UseAddToCartOptions as U, type AddToCartInput as a, PlusMemberMode as b, type PlusMemberShippingMethodMetafields as c, type PlusMemberShippingMethodConfig as d, type PlusMemberSettingsMetafields as e, type SelectedPlusMemberProduct as f, type DeliveryCustomData as g, type DeliveryData as h, gaTrack as i, trackBeginCheckoutGA as j, trackBuyNowGA as k, trackAddToCartFBQ as l, trackBuyNowFBQ as m, trackAddToCartGA as t };
517
+ export { type AddToCartLineItem as A, type BuyNowTrackConfig as B, DeliveryPlusType as D, type GtmParams as G, PLUS_MEMBER_TYPE as P, ShippingMethodMode as S, type UseAddToCartOptions as U, type AddToCartInput as a, PlusMemberMode as b, type PlusMemberShippingMethodMetafields as c, type PlusMemberShippingMethodConfig as d, type PlusMemberSettingsMetafields as e, type SelectedPlusMemberVariant as f, type DeliveryCustomData as g, type DeliveryData as h, gaTrack as i, trackBeginCheckoutGA as j, trackBuyNowGA as k, trackAddToCartFBQ as l, trackBuyNowFBQ as m, trackAddToCartGA as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anker-in/shopify-react",
3
- "version": "0.1.1-beta.40",
3
+ "version": "0.1.1-beta.42",
4
4
  "description": "React hooks and components for Shopify SDK",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -31,8 +31,8 @@
31
31
  "decimal.js": "^10.6.0",
32
32
  "js-cookie": "^3.0.5",
33
33
  "swr": "^2.2.0",
34
- "@anker-in/shopify-core": "0.1.1-beta.10",
35
- "@anker-in/shopify-sdk": "0.1.1-beta.17"
34
+ "@anker-in/shopify-sdk": "0.1.1-beta.17",
35
+ "@anker-in/shopify-core": "0.1.1-beta.10"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "react": ">=18.0.0",