@anker-in/shopify-react 0.1.1-beta.41 → 0.1.1-beta.43

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,4 +1,4 @@
1
- import { NormalizedProductVariant, NormalizedProduct, MoneyV2, NormalizedCart, MailingAddress } from '@anker-in/shopify-sdk';
1
+ import { NormalizedProductVariant, NormalizedProduct, MoneyV2, NormalizedCart } from '@anker-in/shopify-sdk';
2
2
 
3
3
  /**
4
4
  * Tracking Types
@@ -495,10 +495,9 @@ type PlusMemberSettingsMetafields = {
495
495
  confirmBtn: string;
496
496
  };
497
497
  };
498
- type SelectedPlusMemberProduct = {
499
- product: NormalizedProduct;
500
- variant: NormalizedProductVariant;
501
- } | null;
498
+ type SelectedPlusMemberVariant = (NormalizedProductVariant & {
499
+ product: NormalizedProduct | undefined;
500
+ }) | undefined;
502
501
  type DeliveryCustomData = {
503
502
  discount_code?: string[];
504
503
  allow_nextday_delivery?: boolean;
@@ -510,9 +509,5 @@ type DeliveryCustomData = {
510
509
  is_presale?: boolean;
511
510
  plus_type?: DeliveryPlusType;
512
511
  };
513
- type DeliveryData = {
514
- deliveryAddress: MailingAddress;
515
- deliveryCustomData: DeliveryCustomData;
516
- };
517
512
 
518
- 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 };
513
+ 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, gaTrack as h, trackBeginCheckoutGA as i, trackBuyNowGA as j, trackAddToCartFBQ as k, trackBuyNowFBQ as l, trackAddToCartGA as t };
@@ -1,4 +1,4 @@
1
- import { NormalizedProductVariant, NormalizedProduct, MoneyV2, NormalizedCart, MailingAddress } from '@anker-in/shopify-sdk';
1
+ import { NormalizedProductVariant, NormalizedProduct, MoneyV2, NormalizedCart } from '@anker-in/shopify-sdk';
2
2
 
3
3
  /**
4
4
  * Tracking Types
@@ -495,10 +495,9 @@ type PlusMemberSettingsMetafields = {
495
495
  confirmBtn: string;
496
496
  };
497
497
  };
498
- type SelectedPlusMemberProduct = {
499
- product: NormalizedProduct;
500
- variant: NormalizedProductVariant;
501
- } | null;
498
+ type SelectedPlusMemberVariant = (NormalizedProductVariant & {
499
+ product: NormalizedProduct | undefined;
500
+ }) | undefined;
502
501
  type DeliveryCustomData = {
503
502
  discount_code?: string[];
504
503
  allow_nextday_delivery?: boolean;
@@ -510,9 +509,5 @@ type DeliveryCustomData = {
510
509
  is_presale?: boolean;
511
510
  plus_type?: DeliveryPlusType;
512
511
  };
513
- type DeliveryData = {
514
- deliveryAddress: MailingAddress;
515
- deliveryCustomData: DeliveryCustomData;
516
- };
517
512
 
518
- 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 };
513
+ 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, gaTrack as h, trackBeginCheckoutGA as i, trackBuyNowGA as j, trackAddToCartFBQ as k, trackBuyNowFBQ as l, 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.41",
3
+ "version": "0.1.1-beta.43",
4
4
  "description": "React hooks and components for Shopify SDK",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -47,8 +47,8 @@
47
47
  "react-dom": "^19.1.0",
48
48
  "tsup": "^8.0.0",
49
49
  "typescript": "5.9.2",
50
- "@repo/typescript-config": "0.0.0",
51
- "@repo/eslint-config": "0.0.0"
50
+ "@repo/eslint-config": "0.0.0",
51
+ "@repo/typescript-config": "0.0.0"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"