@anker-in/shopify-react 1.2.3 → 1.3.0-beta.1
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 +6 -23
- package/dist/hooks/index.d.ts +6 -23
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- 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/{types-DfR13pDe.d.mts → types-CM5QrlnE.d.mts} +2 -5
- package/dist/{types-DfR13pDe.d.ts → types-CM5QrlnE.d.ts} +2 -5
- package/package.json +4 -4
package/dist/hooks/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as swr_mutation from 'swr/mutation';
|
|
2
2
|
import { SWRMutationConfiguration } from 'swr/mutation';
|
|
3
3
|
import * as _anker_in_shopify_sdk from '@anker-in/shopify-sdk';
|
|
4
|
-
import { CartLineInput, NormalizedCart, NormalizedProduct, NormalizedProductVariant, NormalizedLineItem, UpdateCartLinesOptions, HasMetafieldsIdentifier, Media, NormalizedCollection, CollectionsConnection, NormalizedBlog, NormalizedArticle, NormalizedAttribute } from '@anker-in/shopify-sdk';
|
|
5
|
-
import { h as UseAddToCartOptions, g as AddToCartInput, A as AddToCartLineItem, G as GtmParams, C as BuyNowTrackConfig, e as UseScriptAutoFreeGiftResult, m as PlusMemberShippingMethodConfig, n as PlusMemberSettingsMetafields, D as DeliveryPlusType, o as SelectedPlusMemberVariant } from '../types-
|
|
6
|
-
export { p as DeliveryCustomData, P as PLUS_MEMBER_TYPE, j as PlusMemberMode, l as PlusMemberShippingMethodMetafields, S as ScriptAutoFreeGiftConfig, k as ShippingMethodMode, U as UseAutoRemoveFreeGiftsOptions, a as UseAutoRemoveFreeGiftsResult, d as isAnyGift, c as isBuyGetGift, i as isFunctionGift, b as isScriptGift, u as useAutoRemoveFreeGifts, f as useScriptAutoFreeGift } from '../types-
|
|
4
|
+
import { CartLineInput, BuyerIdentityInput, NormalizedCart, NormalizedProduct, NormalizedProductVariant, NormalizedLineItem, UpdateCartLinesOptions, HasMetafieldsIdentifier, Media, NormalizedCollection, CollectionsConnection, NormalizedBlog, NormalizedArticle, NormalizedAttribute } from '@anker-in/shopify-sdk';
|
|
5
|
+
import { h as UseAddToCartOptions, g as AddToCartInput, A as AddToCartLineItem, G as GtmParams, C as BuyNowTrackConfig, e as UseScriptAutoFreeGiftResult, m as PlusMemberShippingMethodConfig, n as PlusMemberSettingsMetafields, D as DeliveryPlusType, o as SelectedPlusMemberVariant } from '../types-CM5QrlnE.mjs';
|
|
6
|
+
export { p as DeliveryCustomData, P as PLUS_MEMBER_TYPE, j as PlusMemberMode, l as PlusMemberShippingMethodMetafields, S as ScriptAutoFreeGiftConfig, k as ShippingMethodMode, U as UseAutoRemoveFreeGiftsOptions, a as UseAutoRemoveFreeGiftsResult, d as isAnyGift, c as isBuyGetGift, i as isFunctionGift, b as isScriptGift, u as useAutoRemoveFreeGifts, f as useScriptAutoFreeGift } from '../types-CM5QrlnE.mjs';
|
|
7
7
|
import * as swr from 'swr';
|
|
8
8
|
import swr__default, { SWRConfiguration } from 'swr';
|
|
9
9
|
import * as swr__internal from 'swr/_internal';
|
|
@@ -16,10 +16,7 @@ interface CreateCartInput {
|
|
|
16
16
|
/** Lines to add to the cart */
|
|
17
17
|
lines?: CartLineInput[];
|
|
18
18
|
/** Buyer identity for cart creation */
|
|
19
|
-
buyerIdentity?:
|
|
20
|
-
email?: string;
|
|
21
|
-
countryCode?: string;
|
|
22
|
-
};
|
|
19
|
+
buyerIdentity?: BuyerIdentityInput;
|
|
23
20
|
/** Discount codes */
|
|
24
21
|
discountCodes?: string[];
|
|
25
22
|
/** Custom attributes */
|
|
@@ -502,18 +499,7 @@ interface UpdateBuyerIdentityInput {
|
|
|
502
499
|
/** Cart ID (optional, will use cookie) */
|
|
503
500
|
cartId?: string;
|
|
504
501
|
/** Buyer identity information */
|
|
505
|
-
buyerIdentity:
|
|
506
|
-
/** The email address of the buyer */
|
|
507
|
-
email?: string;
|
|
508
|
-
/** The phone number of the buyer */
|
|
509
|
-
phone?: string;
|
|
510
|
-
/** The country where the buyer is located */
|
|
511
|
-
countryCode?: string;
|
|
512
|
-
/** The access token used to identify the customer */
|
|
513
|
-
customerAccessToken?: string;
|
|
514
|
-
/** The company location of the buyer */
|
|
515
|
-
companyLocationId?: string;
|
|
516
|
-
};
|
|
502
|
+
buyerIdentity: BuyerIdentityInput;
|
|
517
503
|
}
|
|
518
504
|
interface UseUpdateBuyerIdentityOptions {
|
|
519
505
|
/** Function to update cart state */
|
|
@@ -571,10 +557,7 @@ interface BuyNowInput {
|
|
|
571
557
|
value: string;
|
|
572
558
|
}>;
|
|
573
559
|
/** Buyer identity */
|
|
574
|
-
buyerIdentity?:
|
|
575
|
-
email?: string;
|
|
576
|
-
countryCode?: string;
|
|
577
|
-
};
|
|
560
|
+
buyerIdentity?: BuyerIdentityInput;
|
|
578
561
|
/** GTM tracking parameters */
|
|
579
562
|
gtmParams?: Omit<GtmParams, 'brand'>;
|
|
580
563
|
/** Facebook Pixel tracking configuration */
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as swr_mutation from 'swr/mutation';
|
|
2
2
|
import { SWRMutationConfiguration } from 'swr/mutation';
|
|
3
3
|
import * as _anker_in_shopify_sdk from '@anker-in/shopify-sdk';
|
|
4
|
-
import { CartLineInput, NormalizedCart, NormalizedProduct, NormalizedProductVariant, NormalizedLineItem, UpdateCartLinesOptions, HasMetafieldsIdentifier, Media, NormalizedCollection, CollectionsConnection, NormalizedBlog, NormalizedArticle, NormalizedAttribute } from '@anker-in/shopify-sdk';
|
|
5
|
-
import { h as UseAddToCartOptions, g as AddToCartInput, A as AddToCartLineItem, G as GtmParams, C as BuyNowTrackConfig, e as UseScriptAutoFreeGiftResult, m as PlusMemberShippingMethodConfig, n as PlusMemberSettingsMetafields, D as DeliveryPlusType, o as SelectedPlusMemberVariant } from '../types-
|
|
6
|
-
export { p as DeliveryCustomData, P as PLUS_MEMBER_TYPE, j as PlusMemberMode, l as PlusMemberShippingMethodMetafields, S as ScriptAutoFreeGiftConfig, k as ShippingMethodMode, U as UseAutoRemoveFreeGiftsOptions, a as UseAutoRemoveFreeGiftsResult, d as isAnyGift, c as isBuyGetGift, i as isFunctionGift, b as isScriptGift, u as useAutoRemoveFreeGifts, f as useScriptAutoFreeGift } from '../types-
|
|
4
|
+
import { CartLineInput, BuyerIdentityInput, NormalizedCart, NormalizedProduct, NormalizedProductVariant, NormalizedLineItem, UpdateCartLinesOptions, HasMetafieldsIdentifier, Media, NormalizedCollection, CollectionsConnection, NormalizedBlog, NormalizedArticle, NormalizedAttribute } from '@anker-in/shopify-sdk';
|
|
5
|
+
import { h as UseAddToCartOptions, g as AddToCartInput, A as AddToCartLineItem, G as GtmParams, C as BuyNowTrackConfig, e as UseScriptAutoFreeGiftResult, m as PlusMemberShippingMethodConfig, n as PlusMemberSettingsMetafields, D as DeliveryPlusType, o as SelectedPlusMemberVariant } from '../types-CM5QrlnE.js';
|
|
6
|
+
export { p as DeliveryCustomData, P as PLUS_MEMBER_TYPE, j as PlusMemberMode, l as PlusMemberShippingMethodMetafields, S as ScriptAutoFreeGiftConfig, k as ShippingMethodMode, U as UseAutoRemoveFreeGiftsOptions, a as UseAutoRemoveFreeGiftsResult, d as isAnyGift, c as isBuyGetGift, i as isFunctionGift, b as isScriptGift, u as useAutoRemoveFreeGifts, f as useScriptAutoFreeGift } from '../types-CM5QrlnE.js';
|
|
7
7
|
import * as swr from 'swr';
|
|
8
8
|
import swr__default, { SWRConfiguration } from 'swr';
|
|
9
9
|
import * as swr__internal from 'swr/_internal';
|
|
@@ -16,10 +16,7 @@ interface CreateCartInput {
|
|
|
16
16
|
/** Lines to add to the cart */
|
|
17
17
|
lines?: CartLineInput[];
|
|
18
18
|
/** Buyer identity for cart creation */
|
|
19
|
-
buyerIdentity?:
|
|
20
|
-
email?: string;
|
|
21
|
-
countryCode?: string;
|
|
22
|
-
};
|
|
19
|
+
buyerIdentity?: BuyerIdentityInput;
|
|
23
20
|
/** Discount codes */
|
|
24
21
|
discountCodes?: string[];
|
|
25
22
|
/** Custom attributes */
|
|
@@ -502,18 +499,7 @@ interface UpdateBuyerIdentityInput {
|
|
|
502
499
|
/** Cart ID (optional, will use cookie) */
|
|
503
500
|
cartId?: string;
|
|
504
501
|
/** Buyer identity information */
|
|
505
|
-
buyerIdentity:
|
|
506
|
-
/** The email address of the buyer */
|
|
507
|
-
email?: string;
|
|
508
|
-
/** The phone number of the buyer */
|
|
509
|
-
phone?: string;
|
|
510
|
-
/** The country where the buyer is located */
|
|
511
|
-
countryCode?: string;
|
|
512
|
-
/** The access token used to identify the customer */
|
|
513
|
-
customerAccessToken?: string;
|
|
514
|
-
/** The company location of the buyer */
|
|
515
|
-
companyLocationId?: string;
|
|
516
|
-
};
|
|
502
|
+
buyerIdentity: BuyerIdentityInput;
|
|
517
503
|
}
|
|
518
504
|
interface UseUpdateBuyerIdentityOptions {
|
|
519
505
|
/** Function to update cart state */
|
|
@@ -571,10 +557,7 @@ interface BuyNowInput {
|
|
|
571
557
|
value: string;
|
|
572
558
|
}>;
|
|
573
559
|
/** Buyer identity */
|
|
574
|
-
buyerIdentity?:
|
|
575
|
-
email?: string;
|
|
576
|
-
countryCode?: string;
|
|
577
|
-
};
|
|
560
|
+
buyerIdentity?: BuyerIdentityInput;
|
|
578
561
|
/** GTM tracking parameters */
|
|
579
562
|
gtmParams?: Omit<GtmParams, 'brand'>;
|
|
580
563
|
/** Facebook Pixel tracking configuration */
|