@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
|
@@ -4,7 +4,7 @@ import { ShopifyClient, ShopifyConfig, CartCookieAdapter, NormalizedCart, Attrib
|
|
|
4
4
|
import { C as CookieAdapter, R as RouterAdapter, U as UserContextAdapter, P as PerformanceAdapter } from '../types-SKDHauqk.mjs';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { SWRConfiguration } from 'swr';
|
|
7
|
-
import { S as ScriptAutoFreeGiftConfig, n as PlusMemberSettingsMetafields, U as UseAutoRemoveFreeGiftsOptions } from '../types-
|
|
7
|
+
import { S as ScriptAutoFreeGiftConfig, n as PlusMemberSettingsMetafields, U as UseAutoRemoveFreeGiftsOptions } from '../types-CM5QrlnE.mjs';
|
|
8
8
|
import 'decimal.js';
|
|
9
9
|
|
|
10
10
|
interface ShopifyContextValue {
|
package/dist/provider/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { ShopifyClient, ShopifyConfig, CartCookieAdapter, NormalizedCart, Attrib
|
|
|
4
4
|
import { C as CookieAdapter, R as RouterAdapter, U as UserContextAdapter, P as PerformanceAdapter } from '../types-SKDHauqk.js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { SWRConfiguration } from 'swr';
|
|
7
|
-
import { S as ScriptAutoFreeGiftConfig, n as PlusMemberSettingsMetafields, U as UseAutoRemoveFreeGiftsOptions } from '../types-
|
|
7
|
+
import { S as ScriptAutoFreeGiftConfig, n as PlusMemberSettingsMetafields, U as UseAutoRemoveFreeGiftsOptions } from '../types-CM5QrlnE.js';
|
|
8
8
|
import 'decimal.js';
|
|
9
9
|
|
|
10
10
|
interface ShopifyContextValue {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NormalizedLineItem, MoneyV2, NormalizedProductVariant, NormalizedProduct, NormalizedCart } from '@anker-in/shopify-sdk';
|
|
1
|
+
import { NormalizedLineItem, MoneyV2, NormalizedProductVariant, NormalizedProduct, BuyerIdentityInput, NormalizedCart } from '@anker-in/shopify-sdk';
|
|
2
2
|
import Decimal from 'decimal.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -166,10 +166,7 @@ interface AddToCartInput {
|
|
|
166
166
|
/** 全量更新 codes,默认是追加 */
|
|
167
167
|
replaceExistingCodes?: boolean;
|
|
168
168
|
/** Buyer identity for cart creation */
|
|
169
|
-
buyerIdentity?:
|
|
170
|
-
email?: string;
|
|
171
|
-
countryCode?: string;
|
|
172
|
-
};
|
|
169
|
+
buyerIdentity?: BuyerIdentityInput;
|
|
173
170
|
/** GTM tracking parameters */
|
|
174
171
|
gtmParams?: Omit<GtmParams, 'brand'>;
|
|
175
172
|
/** Force create new cart */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NormalizedLineItem, MoneyV2, NormalizedProductVariant, NormalizedProduct, NormalizedCart } from '@anker-in/shopify-sdk';
|
|
1
|
+
import { NormalizedLineItem, MoneyV2, NormalizedProductVariant, NormalizedProduct, BuyerIdentityInput, NormalizedCart } from '@anker-in/shopify-sdk';
|
|
2
2
|
import Decimal from 'decimal.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -166,10 +166,7 @@ interface AddToCartInput {
|
|
|
166
166
|
/** 全量更新 codes,默认是追加 */
|
|
167
167
|
replaceExistingCodes?: boolean;
|
|
168
168
|
/** Buyer identity for cart creation */
|
|
169
|
-
buyerIdentity?:
|
|
170
|
-
email?: string;
|
|
171
|
-
countryCode?: string;
|
|
172
|
-
};
|
|
169
|
+
buyerIdentity?: BuyerIdentityInput;
|
|
173
170
|
/** GTM tracking parameters */
|
|
174
171
|
gtmParams?: Omit<GtmParams, 'brand'>;
|
|
175
172
|
/** Force create new cart */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anker-in/shopify-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-beta.1",
|
|
4
4
|
"description": "React hooks and components for Shopify SDK",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"decimal.js": "^10.6.0",
|
|
32
32
|
"js-cookie": "^3.0.5",
|
|
33
33
|
"swr": "^2.2.0",
|
|
34
|
-
"@anker-in/shopify-sdk": "1.1
|
|
34
|
+
"@anker-in/shopify-sdk": "1.2.0-beta.1",
|
|
35
35
|
"@anker-in/shopify-core": "1.0.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
@@ -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/typescript-config": "0.0.1",
|
|
51
|
+
"@repo/eslint-config": "0.0.1"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|