@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.
- package/dist/hooks/index.d.mts +112 -168
- package/dist/hooks/index.d.ts +112 -168
- package/dist/hooks/index.js +122 -310
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +122 -307
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +127 -311
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +127 -308
- package/dist/index.mjs.map +1 -1
- package/dist/provider/index.d.mts +1 -1
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.js +54 -55
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +54 -55
- package/dist/provider/index.mjs.map +1 -1
- package/dist/{types-y1Wa95P3.d.mts → types-CMMWxyUF.d.mts} +5 -10
- package/dist/{types-y1Wa95P3.d.ts → types-CMMWxyUF.d.ts} +5 -10
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NormalizedProductVariant, NormalizedProduct, MoneyV2, NormalizedCart
|
|
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
|
|
499
|
-
product: NormalizedProduct;
|
|
500
|
-
|
|
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
|
|
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
|
|
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
|
|
499
|
-
product: NormalizedProduct;
|
|
500
|
-
|
|
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
|
|
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.
|
|
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/
|
|
51
|
-
"@repo/
|
|
50
|
+
"@repo/eslint-config": "0.0.0",
|
|
51
|
+
"@repo/typescript-config": "0.0.0"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|