@hanzo/commerce 7.8.1 → 7.8.2
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/index.d.ts +11 -3
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { useCommerce, CommerceProvider } from './service/context';
|
|
2
|
+
export { default as AddToCartWidget } from './components/add-to-cart-widget';
|
|
3
|
+
export { default as CarouselBuyCard } from './components/buy/carousel-buy-card';
|
|
4
|
+
export { default as CartPanel } from './components/cart/cart-panel';
|
|
5
|
+
export { default as Icons } from './components/Icons';
|
|
6
|
+
export { default as PaymentStepForm } from './components/checkout/payment-step-form';
|
|
7
|
+
export { default as ProductCard } from './components/item/product-card';
|
|
8
|
+
export { default as ShippingStepForm } from './components/checkout/shipping-step-form';
|
|
9
|
+
export { default as ButtonItemSelector } from './components/item-selector/button';
|
|
10
|
+
export { default as CarouselItemSelector, type CarouselItemSelectorPropsExt } from './components/item-selector/carousel';
|
|
3
11
|
export type { StandaloneServiceOptions as ServiceOptions } from './service/impls/standalone';
|
|
4
12
|
export { useSyncSkuParamWithCurrentItem, getFacetValuesMutator, formatCurrencyValue, ProductMediaAccessor, LineItemRef } from './util';
|
|
5
|
-
export
|
|
13
|
+
export { initSelectionUI, getSelectionUISpecifier } from './util/selection-ui-specifiers';
|
|
6
14
|
export { Commerce, CommerceApiError, hanzoCommerce } from './client';
|
|
7
15
|
export type { CommerceClientConfig, Balance, TierResponse, Transaction, Subscription, Plan, Payment, UsageRecord, Coupon, CouponType, CouponValidateResult, Discount, CheckoutItem, CheckoutSessionRequest, CheckoutSessionResponse, PaymentMethod, PaymentMethodType, Referral, Referrer, Affiliate, CreditGrant, } from './client';
|
|
8
16
|
export { Metering, DEFAULT_COMMERCE_URL, identityFromHeaders, HEADER_USER_ID, HEADER_ORG_ID, } from './metering';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { useCommerce, CommerceProvider } from './service/context';
|
|
2
|
+
export { default as AddToCartWidget } from './components/add-to-cart-widget';
|
|
3
|
+
export { default as CarouselBuyCard } from './components/buy/carousel-buy-card';
|
|
4
|
+
export { default as CartPanel } from './components/cart/cart-panel';
|
|
5
|
+
export { default as Icons } from './components/Icons';
|
|
6
|
+
export { default as PaymentStepForm } from './components/checkout/payment-step-form';
|
|
7
|
+
export { default as ProductCard } from './components/item/product-card';
|
|
8
|
+
export { default as ShippingStepForm } from './components/checkout/shipping-step-form';
|
|
9
|
+
export { default as ButtonItemSelector } from './components/item-selector/button';
|
|
10
|
+
export { default as CarouselItemSelector } from './components/item-selector/carousel';
|
|
3
11
|
export { useSyncSkuParamWithCurrentItem, getFacetValuesMutator, formatCurrencyValue, ProductMediaAccessor, LineItemRef } from './util';
|
|
4
|
-
export
|
|
12
|
+
export { initSelectionUI, getSelectionUISpecifier } from './util/selection-ui-specifiers';
|
|
5
13
|
// Commerce API client
|
|
6
14
|
export { Commerce, CommerceApiError, hanzoCommerce } from './client';
|
|
7
15
|
// Server-side usage metering (the one way every product meters to commerce)
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACjE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oCAAoC,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,yCAAyC,CAAA;AACpF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,0CAA0C,CAAA;AACtF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AACjF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAqC,MAAM,qCAAqC,CAAA;AAGxH,OAAO,EACL,8BAA8B,EAC9B,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACZ,MAAM,QAAQ,CAAA;AAEf,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AAEzF,sBAAsB;AACtB,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAyBpE,4EAA4E;AAC5E,OAAO,EACL,QAAQ,EACR,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,aAAa,GACd,MAAM,YAAY,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/commerce",
|
|
3
|
-
"version": "7.8.
|
|
3
|
+
"version": "7.8.2",
|
|
4
4
|
"description": "e-commerce framework.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react-square-web-payments-sdk": "^3.2.4"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@hanzo/ui": ">=8.26.
|
|
60
|
+
"@hanzo/ui": ">=8.26.1",
|
|
61
61
|
"@hookform/resolvers": ">=5",
|
|
62
62
|
"@radix-ui/react-radio-group": ">=1",
|
|
63
63
|
"lucide-react": ">=1",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"zod": ">=4"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@hanzo/ui": "8.26.
|
|
74
|
+
"@hanzo/ui": "8.26.1",
|
|
75
75
|
"@types/react": "19.2.18",
|
|
76
76
|
"@types/react-dom": "19.2.5",
|
|
77
77
|
"cross-fetch": "^4.1.0",
|