@hanzo/commerce 7.3.7 → 7.3.8
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/components/cart/cart-panel/promo-code.tsx +7 -4
- package/components/checkout/payment-step-form/contact-form.tsx +3 -2
- package/components/checkout/payment-step-form/index.tsx +1 -1
- package/components/checkout/shipping-step-form.tsx +12 -9
- package/hanzo-ui.d.ts +108 -0
- package/package.json +3 -3
- package/tsconfig.json +3 -1
- package/dist/components/Icons.d.ts +0 -18
- package/dist/components/Icons.jsx +0 -19
- package/dist/components/Icons.jsx.map +0 -1
- package/dist/components/add-to-cart-widget.d.ts +0 -11
- package/dist/components/add-to-cart-widget.jsx +0 -99
- package/dist/components/add-to-cart-widget.jsx.map +0 -1
- package/dist/components/buy/buy-card.d.ts +0 -30
- package/dist/components/buy/buy-card.jsx +0 -123
- package/dist/components/buy/buy-card.jsx.map +0 -1
- package/dist/components/buy/carousel-buy-card.d.ts +0 -12
- package/dist/components/buy/carousel-buy-card.jsx +0 -99
- package/dist/components/buy/carousel-buy-card.jsx.map +0 -1
- package/dist/components/buy/multi-family/all-variants-carousel.d.ts +0 -4
- package/dist/components/buy/multi-family/all-variants-carousel.jsx +0 -147
- package/dist/components/buy/multi-family/all-variants-carousel.jsx.map +0 -1
- package/dist/components/buy/multi-family/family-carousel/index.d.ts +0 -4
- package/dist/components/buy/multi-family/family-carousel/index.jsx +0 -34
- package/dist/components/buy/multi-family/family-carousel/index.jsx.map +0 -1
- package/dist/components/buy/multi-family/family-carousel/slide.d.ts +0 -11
- package/dist/components/buy/multi-family/family-carousel/slide.jsx +0 -41
- package/dist/components/buy/multi-family/family-carousel/slide.jsx.map +0 -1
- package/dist/components/buy/multi-family/family-carousel/state.d.ts +0 -20
- package/dist/components/buy/multi-family/family-carousel/state.js +0 -59
- package/dist/components/buy/multi-family/family-carousel/state.js.map +0 -1
- package/dist/components/buy/multi-family/index.d.ts +0 -2
- package/dist/components/buy/multi-family/index.js +0 -3
- package/dist/components/buy/multi-family/index.js.map +0 -1
- package/dist/components/buy/single-family-selector.d.ts +0 -15
- package/dist/components/buy/single-family-selector.jsx +0 -31
- package/dist/components/buy/single-family-selector.jsx.map +0 -1
- package/dist/components/buy/title-and-byline.d.ts +0 -8
- package/dist/components/buy/title-and-byline.jsx +0 -9
- package/dist/components/buy/title-and-byline.jsx.map +0 -1
- package/dist/components/cart/cart-panel/cart-line-item.d.ts +0 -11
- package/dist/components/cart/cart-panel/cart-line-item.jsx +0 -39
- package/dist/components/cart/cart-panel/cart-line-item.jsx.map +0 -1
- package/dist/components/cart/cart-panel/index.d.ts +0 -19
- package/dist/components/cart/cart-panel/index.jsx +0 -79
- package/dist/components/cart/cart-panel/index.jsx.map +0 -1
- package/dist/components/cart/cart-panel/promo-code.d.ts +0 -4
- package/dist/components/cart/cart-panel/promo-code.jsx +0 -73
- package/dist/components/cart/cart-panel/promo-code.jsx.map +0 -1
- package/dist/components/cart/cart-panel/total-area.d.ts +0 -7
- package/dist/components/cart/cart-panel/total-area.jsx +0 -37
- package/dist/components/cart/cart-panel/total-area.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/card-icon-row.d.ts +0 -2
- package/dist/components/checkout/payment-step-form/card-icon-row.jsx +0 -22
- package/dist/components/checkout/payment-step-form/card-icon-row.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/card-icons/amex.d.ts +0 -4
- package/dist/components/checkout/payment-step-form/card-icons/amex.jsx +0 -12
- package/dist/components/checkout/payment-step-form/card-icons/amex.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/card-icons/diners-club.d.ts +0 -4
- package/dist/components/checkout/payment-step-form/card-icons/diners-club.jsx +0 -10
- package/dist/components/checkout/payment-step-form/card-icons/diners-club.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/card-icons/discover.d.ts +0 -4
- package/dist/components/checkout/payment-step-form/card-icons/discover.jsx +0 -12
- package/dist/components/checkout/payment-step-form/card-icons/discover.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/card-icons/jcb.d.ts +0 -4
- package/dist/components/checkout/payment-step-form/card-icons/jcb.jsx +0 -23
- package/dist/components/checkout/payment-step-form/card-icons/jcb.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/card-icons/mastercard.d.ts +0 -4
- package/dist/components/checkout/payment-step-form/card-icons/mastercard.jsx +0 -12
- package/dist/components/checkout/payment-step-form/card-icons/mastercard.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/card-icons/visa.d.ts +0 -4
- package/dist/components/checkout/payment-step-form/card-icons/visa.jsx +0 -10
- package/dist/components/checkout/payment-step-form/card-icons/visa.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/cc-button.d.ts +0 -3
- package/dist/components/checkout/payment-step-form/cc-button.jsx +0 -9
- package/dist/components/checkout/payment-step-form/cc-button.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/contact-form.d.ts +0 -5
- package/dist/components/checkout/payment-step-form/contact-form.jsx +0 -21
- package/dist/components/checkout/payment-step-form/contact-form.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/crypto-icons/btc.d.ts +0 -4
- package/dist/components/checkout/payment-step-form/crypto-icons/btc.jsx +0 -8
- package/dist/components/checkout/payment-step-form/crypto-icons/btc.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/crypto-icons/eth.d.ts +0 -4
- package/dist/components/checkout/payment-step-form/crypto-icons/eth.jsx +0 -17
- package/dist/components/checkout/payment-step-form/crypto-icons/eth.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/crypto-icons/usdt.d.ts +0 -4
- package/dist/components/checkout/payment-step-form/crypto-icons/usdt.jsx +0 -10
- package/dist/components/checkout/payment-step-form/crypto-icons/usdt.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/index.d.ts +0 -4
- package/dist/components/checkout/payment-step-form/index.jsx +0 -85
- package/dist/components/checkout/payment-step-form/index.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/methods/bank-transfer.d.ts +0 -4
- package/dist/components/checkout/payment-step-form/methods/bank-transfer.jsx +0 -44
- package/dist/components/checkout/payment-step-form/methods/bank-transfer.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/methods/card.d.ts +0 -4
- package/dist/components/checkout/payment-step-form/methods/card.jsx +0 -182
- package/dist/components/checkout/payment-step-form/methods/card.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/methods/crypto.d.ts +0 -9
- package/dist/components/checkout/payment-step-form/methods/crypto.jsx +0 -167
- package/dist/components/checkout/payment-step-form/methods/crypto.jsx.map +0 -1
- package/dist/components/checkout/payment-step-form/methods/index.d.ts +0 -6
- package/dist/components/checkout/payment-step-form/methods/index.js +0 -21
- package/dist/components/checkout/payment-step-form/methods/index.js.map +0 -1
- package/dist/components/checkout/shipping-step-form.d.ts +0 -3
- package/dist/components/checkout/shipping-step-form.jsx +0 -105
- package/dist/components/checkout/shipping-step-form.jsx.map +0 -1
- package/dist/components/index.d.ts +0 -8
- package/dist/components/index.js +0 -9
- package/dist/components/index.js.map +0 -1
- package/dist/components/item/product-card.d.ts +0 -7
- package/dist/components/item/product-card.jsx +0 -21
- package/dist/components/item/product-card.jsx.map +0 -1
- package/dist/components/item-selector/button.d.ts +0 -4
- package/dist/components/item-selector/button.jsx +0 -65
- package/dist/components/item-selector/button.jsx.map +0 -1
- package/dist/components/item-selector/carousel/index.d.ts +0 -12
- package/dist/components/item-selector/carousel/index.jsx +0 -101
- package/dist/components/item-selector/carousel/index.jsx.map +0 -1
- package/dist/components/item-selector/carousel/slider.d.ts +0 -8
- package/dist/components/item-selector/carousel/slider.jsx +0 -11
- package/dist/components/item-selector/carousel/slider.jsx.map +0 -1
- package/dist/components/item-selector/index.d.ts +0 -2
- package/dist/components/item-selector/index.js +0 -3
- package/dist/components/item-selector/index.js.map +0 -1
- package/dist/components/item-selector/quantity-indicator.d.ts +0 -9
- package/dist/components/item-selector/quantity-indicator.jsx +0 -23
- package/dist/components/item-selector/quantity-indicator.jsx.map +0 -1
- package/dist/components/node-tabs/index.d.ts +0 -14
- package/dist/components/node-tabs/index.jsx +0 -48
- package/dist/components/node-tabs/index.jsx.map +0 -1
- package/dist/components/node-tabs/node-image.d.ts +0 -6
- package/dist/components/node-tabs/node-image.jsx +0 -12
- package/dist/components/node-tabs/node-image.jsx.map +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -5
- package/dist/index.js.map +0 -1
- package/dist/service/context.d.ts +0 -8
- package/dist/service/context.jsx +0 -20
- package/dist/service/context.jsx.map +0 -1
- package/dist/service/debug.d.ts +0 -10
- package/dist/service/debug.js +0 -30
- package/dist/service/debug.js.map +0 -1
- package/dist/service/impls/standalone/actual-line-item.d.ts +0 -40
- package/dist/service/impls/standalone/actual-line-item.js +0 -84
- package/dist/service/impls/standalone/actual-line-item.js.map +0 -1
- package/dist/service/impls/standalone/get-instance.d.ts +0 -2
- package/dist/service/impls/standalone/get-instance.js +0 -39
- package/dist/service/impls/standalone/get-instance.js.map +0 -1
- package/dist/service/impls/standalone/index.d.ts +0 -67
- package/dist/service/impls/standalone/index.js +0 -416
- package/dist/service/impls/standalone/index.js.map +0 -1
- package/dist/service/impls/standalone/order/firebase.d.ts +0 -2
- package/dist/service/impls/standalone/order/firebase.js +0 -13
- package/dist/service/impls/standalone/order/firebase.js.map +0 -1
- package/dist/service/impls/standalone/order/index.d.ts +0 -24
- package/dist/service/impls/standalone/order/index.js +0 -61
- package/dist/service/impls/standalone/order/index.js.map +0 -1
- package/dist/service/impls/standalone/persistence.d.ts +0 -4
- package/dist/service/impls/standalone/persistence.js +0 -22
- package/dist/service/impls/standalone/persistence.js.map +0 -1
- package/dist/service/path-utils.d.ts +0 -7
- package/dist/service/path-utils.js +0 -16
- package/dist/service/path-utils.js.map +0 -1
- package/dist/service/sep.d.ts +0 -6
- package/dist/service/sep.js +0 -6
- package/dist/service/sep.js.map +0 -1
- package/dist/types/category-node.d.ts +0 -36
- package/dist/types/category-node.js +0 -2
- package/dist/types/category-node.js.map +0 -1
- package/dist/types/checkout.d.ts +0 -33
- package/dist/types/checkout.js +0 -2
- package/dist/types/checkout.js.map +0 -1
- package/dist/types/commerce-config.d.ts +0 -11
- package/dist/types/commerce-config.js +0 -2
- package/dist/types/commerce-config.js.map +0 -1
- package/dist/types/commerce-service.d.ts +0 -109
- package/dist/types/commerce-service.js +0 -2
- package/dist/types/commerce-service.js.map +0 -1
- package/dist/types/components/Icons.d.ts +0 -18
- package/dist/types/components/add-to-cart-widget.d.ts +0 -11
- package/dist/types/components/buy/buy-card.d.ts +0 -30
- package/dist/types/components/buy/carousel-buy-card.d.ts +0 -12
- package/dist/types/components/buy/multi-family/all-variants-carousel.d.ts +0 -4
- package/dist/types/components/buy/multi-family/family-carousel/index.d.ts +0 -4
- package/dist/types/components/buy/multi-family/family-carousel/slide.d.ts +0 -11
- package/dist/types/components/buy/multi-family/family-carousel/state.d.ts +0 -20
- package/dist/types/components/buy/multi-family/index.d.ts +0 -2
- package/dist/types/components/buy/single-family-selector.d.ts +0 -15
- package/dist/types/components/buy/title-and-byline.d.ts +0 -8
- package/dist/types/components/cart/cart-panel/cart-line-item.d.ts +0 -11
- package/dist/types/components/cart/cart-panel/index.d.ts +0 -19
- package/dist/types/components/cart/cart-panel/promo-code.d.ts +0 -4
- package/dist/types/components/cart/cart-panel/total-area.d.ts +0 -7
- package/dist/types/components/checkout/payment-step-form/card-icon-row.d.ts +0 -2
- package/dist/types/components/checkout/payment-step-form/card-icons/amex.d.ts +0 -4
- package/dist/types/components/checkout/payment-step-form/card-icons/diners-club.d.ts +0 -4
- package/dist/types/components/checkout/payment-step-form/card-icons/discover.d.ts +0 -4
- package/dist/types/components/checkout/payment-step-form/card-icons/jcb.d.ts +0 -4
- package/dist/types/components/checkout/payment-step-form/card-icons/mastercard.d.ts +0 -4
- package/dist/types/components/checkout/payment-step-form/card-icons/visa.d.ts +0 -4
- package/dist/types/components/checkout/payment-step-form/cc-button.d.ts +0 -3
- package/dist/types/components/checkout/payment-step-form/contact-form.d.ts +0 -5
- package/dist/types/components/checkout/payment-step-form/crypto-icons/btc.d.ts +0 -4
- package/dist/types/components/checkout/payment-step-form/crypto-icons/eth.d.ts +0 -4
- package/dist/types/components/checkout/payment-step-form/crypto-icons/usdt.d.ts +0 -4
- package/dist/types/components/checkout/payment-step-form/index.d.ts +0 -4
- package/dist/types/components/checkout/payment-step-form/methods/bank-transfer.d.ts +0 -4
- package/dist/types/components/checkout/payment-step-form/methods/card.d.ts +0 -4
- package/dist/types/components/checkout/payment-step-form/methods/crypto.d.ts +0 -9
- package/dist/types/components/checkout/payment-step-form/methods/index.d.ts +0 -6
- package/dist/types/components/checkout/shipping-step-form.d.ts +0 -3
- package/dist/types/components/index.d.ts +0 -8
- package/dist/types/components/item/product-card.d.ts +0 -7
- package/dist/types/components/item-selector/button.d.ts +0 -4
- package/dist/types/components/item-selector/carousel/index.d.ts +0 -12
- package/dist/types/components/item-selector/carousel/slider.d.ts +0 -8
- package/dist/types/components/item-selector/index.d.ts +0 -2
- package/dist/types/components/item-selector/quantity-indicator.d.ts +0 -9
- package/dist/types/components/node-tabs/index.d.ts +0 -14
- package/dist/types/components/node-tabs/node-image.d.ts +0 -6
- package/dist/types/family.d.ts +0 -16
- package/dist/types/family.js +0 -2
- package/dist/types/family.js.map +0 -1
- package/dist/types/index.d.ts +0 -13
- package/dist/types/index.js +0 -8
- package/dist/types/index.js.map +0 -1
- package/dist/types/item-selector.d.ts +0 -72
- package/dist/types/item-selector.js +0 -2
- package/dist/types/item-selector.js.map +0 -1
- package/dist/types/line-item.d.ts +0 -14
- package/dist/types/line-item.js +0 -2
- package/dist/types/line-item.js.map +0 -1
- package/dist/types/multi-family-selector-props.d.ts +0 -16
- package/dist/types/multi-family-selector-props.js +0 -2
- package/dist/types/multi-family-selector-props.js.map +0 -1
- package/dist/types/product.d.ts +0 -15
- package/dist/types/product.js +0 -2
- package/dist/types/product.js.map +0 -1
- package/dist/types/promo.d.ts +0 -7
- package/dist/types/promo.js +0 -2
- package/dist/types/promo.js.map +0 -1
- package/dist/types/selection-ui-specifier.d.ts +0 -40
- package/dist/types/selection-ui-specifier.js +0 -2
- package/dist/types/selection-ui-specifier.js.map +0 -1
- package/dist/types/service/context.d.ts +0 -8
- package/dist/types/service/debug.d.ts +0 -10
- package/dist/types/service/impls/standalone/actual-line-item.d.ts +0 -40
- package/dist/types/service/impls/standalone/get-instance.d.ts +0 -2
- package/dist/types/service/impls/standalone/index.d.ts +0 -67
- package/dist/types/service/impls/standalone/order/firebase.d.ts +0 -2
- package/dist/types/service/impls/standalone/order/index.d.ts +0 -24
- package/dist/types/service/impls/standalone/persistence.d.ts +0 -4
- package/dist/types/service/path-utils.d.ts +0 -7
- package/dist/types/service/sep.d.ts +0 -6
- package/dist/types/string-mutator.d.ts +0 -9
- package/dist/types/string-mutator.js +0 -2
- package/dist/types/string-mutator.js.map +0 -1
- package/dist/types/token-separators.d.ts +0 -6
- package/dist/types/token-separators.js +0 -2
- package/dist/types/token-separators.js.map +0 -1
- package/dist/types/types/category-node.d.ts +0 -36
- package/dist/types/types/checkout.d.ts +0 -33
- package/dist/types/types/commerce-config.d.ts +0 -11
- package/dist/types/types/commerce-service.d.ts +0 -109
- package/dist/types/types/family.d.ts +0 -16
- package/dist/types/types/index.d.ts +0 -13
- package/dist/types/types/item-selector.d.ts +0 -72
- package/dist/types/types/line-item.d.ts +0 -14
- package/dist/types/types/multi-family-selector-props.d.ts +0 -16
- package/dist/types/types/product.d.ts +0 -15
- package/dist/types/types/promo.d.ts +0 -7
- package/dist/types/types/selection-ui-specifier.d.ts +0 -40
- package/dist/types/types/string-mutator.d.ts +0 -9
- package/dist/types/types/token-separators.d.ts +0 -6
- package/dist/types/util/analytics.d.ts +0 -9
- package/dist/types/util/countries.d.ts +0 -7
- package/dist/types/util/error.d.ts +0 -1
- package/dist/types/util/index.d.ts +0 -15
- package/dist/types/util/item-selector-options-accessor.d.ts +0 -3
- package/dist/types/util/line-item-ref.d.ts +0 -8
- package/dist/types/util/multi-family-selector-options-accessor.d.ts +0 -3
- package/dist/types/util/obs-string-mutator.d.ts +0 -8
- package/dist/types/util/product-media-accessor.d.ts +0 -29
- package/dist/types/util/promo-codes.d.ts +0 -3
- package/dist/types/util/selection-ui-specifiers.d.ts +0 -3
- package/dist/types/util/square-payment.d.ts +0 -7
- package/dist/types/util/use-sync-sku-param-w-current-item.d.ts +0 -2
- package/dist/util/analytics.d.ts +0 -9
- package/dist/util/analytics.js +0 -10
- package/dist/util/analytics.js.map +0 -1
- package/dist/util/countries.d.ts +0 -7
- package/dist/util/countries.js +0 -197
- package/dist/util/countries.js.map +0 -1
- package/dist/util/error.d.ts +0 -1
- package/dist/util/error.js +0 -22
- package/dist/util/error.js.map +0 -1
- package/dist/util/index.d.ts +0 -15
- package/dist/util/index.js +0 -54
- package/dist/util/index.js.map +0 -1
- package/dist/util/item-selector-options-accessor.d.ts +0 -3
- package/dist/util/item-selector-options-accessor.js +0 -27
- package/dist/util/item-selector-options-accessor.js.map +0 -1
- package/dist/util/line-item-ref.d.ts +0 -8
- package/dist/util/line-item-ref.js +0 -15
- package/dist/util/line-item-ref.js.map +0 -1
- package/dist/util/multi-family-selector-options-accessor.d.ts +0 -3
- package/dist/util/multi-family-selector-options-accessor.js +0 -11
- package/dist/util/multi-family-selector-options-accessor.js.map +0 -1
- package/dist/util/obs-string-mutator.d.ts +0 -8
- package/dist/util/obs-string-mutator.js +0 -15
- package/dist/util/obs-string-mutator.js.map +0 -1
- package/dist/util/product-media-accessor.d.ts +0 -29
- package/dist/util/product-media-accessor.js +0 -22
- package/dist/util/product-media-accessor.js.map +0 -1
- package/dist/util/promo-codes.d.ts +0 -3
- package/dist/util/promo-codes.js +0 -101
- package/dist/util/promo-codes.js.map +0 -1
- package/dist/util/selection-ui-specifiers.d.ts +0 -3
- package/dist/util/selection-ui-specifiers.js +0 -24
- package/dist/util/selection-ui-specifiers.js.map +0 -1
- package/dist/util/square-payment.d.ts +0 -7
- package/dist/util/square-payment.js +0 -30
- package/dist/util/square-payment.js.map +0 -1
- package/dist/util/use-sync-sku-param-w-current-item.d.ts +0 -2
- package/dist/util/use-sync-sku-param-w-current-item.js +0 -61
- package/dist/util/use-sync-sku-param-w-current-item.js.map +0 -1
package/dist/types/family.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ImageDef } from '@hanzo/ui/types';
|
|
2
|
-
import type Product from './product';
|
|
3
|
-
interface Family {
|
|
4
|
-
id: string;
|
|
5
|
-
title: string;
|
|
6
|
-
titleShort?: string;
|
|
7
|
-
parentTitle?: string;
|
|
8
|
-
byline?: string;
|
|
9
|
-
desc?: string;
|
|
10
|
-
img?: ImageDef;
|
|
11
|
-
products: Product[];
|
|
12
|
-
}
|
|
13
|
-
interface ObsFamilyRef {
|
|
14
|
-
get family(): Family | undefined;
|
|
15
|
-
}
|
|
16
|
-
export { type Family, type ObsFamilyRef };
|
package/dist/types/family.js
DELETED
package/dist/types/family.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"family.js","sourceRoot":"","sources":["../../types/family.ts"],"names":[],"mappings":"AAsBA,OAAO,EAGN,CAAA"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type { default as CommerceService } from './commerce-service';
|
|
2
|
-
export type { default as CommerceConfig } from './commerce-config';
|
|
3
|
-
export type { default as MultiFamilySelectorProps } from './multi-family-selector-props';
|
|
4
|
-
export type { default as Product } from './product';
|
|
5
|
-
export type { default as Promo } from './promo';
|
|
6
|
-
export type { default as TokenSeparators } from './token-separators';
|
|
7
|
-
export * from './category-node';
|
|
8
|
-
export * from './checkout';
|
|
9
|
-
export * from './family';
|
|
10
|
-
export * from './item-selector';
|
|
11
|
-
export * from './line-item';
|
|
12
|
-
export * from './selection-ui-specifier';
|
|
13
|
-
export * from './string-mutator';
|
package/dist/types/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './category-node';
|
|
2
|
-
export * from './checkout';
|
|
3
|
-
export * from './family';
|
|
4
|
-
export * from './item-selector';
|
|
5
|
-
export * from './line-item';
|
|
6
|
-
export * from './selection-ui-specifier';
|
|
7
|
-
export * from './string-mutator';
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,0BAA0B,CAAA;AACxC,cAAc,kBAAkB,CAAA"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { LineItem, ObsLineItemRef } from './line-item';
|
|
2
|
-
interface ItemSelector {
|
|
3
|
-
items: LineItem[];
|
|
4
|
-
selectedItemRef: ObsLineItemRef;
|
|
5
|
-
selectSku: (sku: string) => void;
|
|
6
|
-
}
|
|
7
|
-
/** default: 'text' */
|
|
8
|
-
type ItemButton = 'text' | 'image-and-text' | 'image';
|
|
9
|
-
type ItemSelectorOptions = {
|
|
10
|
-
/**
|
|
11
|
-
* default: short
|
|
12
|
-
* 'short': product.shortTitle if defined
|
|
13
|
-
* 'long': always us product.title, even if .shortTitle is defined
|
|
14
|
-
* 'none': do not show title AND BYLINE
|
|
15
|
-
*
|
|
16
|
-
* (NOTE: *not* the same as buttonType = 'none')
|
|
17
|
-
*/
|
|
18
|
-
familyTitle?: 'none' | 'long' | 'short';
|
|
19
|
-
/** only if title shown
|
|
20
|
-
* default: false */
|
|
21
|
-
showFamilyByline?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Whether the item label includes the Family name.
|
|
24
|
-
* eg, 'Minted Bar, 1oz' vs '1oz'
|
|
25
|
-
* default: false.
|
|
26
|
-
*/
|
|
27
|
-
showFamilyInOption?: boolean;
|
|
28
|
-
/** default: true if it exists */
|
|
29
|
-
showByline?: boolean;
|
|
30
|
-
/** default: true */
|
|
31
|
-
showPrice?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Show the current item quantity along with title and price.
|
|
34
|
-
* default: false
|
|
35
|
-
*/
|
|
36
|
-
showQuantity?: boolean;
|
|
37
|
-
buttonType?: ItemButton;
|
|
38
|
-
/** (button selector only) default: false */
|
|
39
|
-
horizButtons?: boolean;
|
|
40
|
-
/** (carousel selector only)
|
|
41
|
-
* affects sort. See below.
|
|
42
|
-
* default: false */
|
|
43
|
-
showSlider?: boolean;
|
|
44
|
-
/** default true */
|
|
45
|
-
showButtonIfOnlyOne?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Sort by cost.
|
|
48
|
-
* If it's a carousel selector and 'showSlider' is true,
|
|
49
|
-
* defaults to 'asc', unless another value is explicitly specified.
|
|
50
|
-
* Otherwise, defaults to 'none'
|
|
51
|
-
* */
|
|
52
|
-
sort?: 'none' | 'asc' | 'desc';
|
|
53
|
-
};
|
|
54
|
-
interface _ItemSelectorCompProps {
|
|
55
|
-
clx?: string;
|
|
56
|
-
itemClx?: string;
|
|
57
|
-
soleItemClx?: string;
|
|
58
|
-
/** type-specific props for ItemSelector's.
|
|
59
|
-
* eg, Carousel options.
|
|
60
|
-
*/
|
|
61
|
-
ext?: any;
|
|
62
|
-
/** List selectors will scroll.
|
|
63
|
-
* Used internally
|
|
64
|
-
* default: false */
|
|
65
|
-
scrollable?: boolean;
|
|
66
|
-
options?: ItemSelectorOptions;
|
|
67
|
-
mobile?: boolean;
|
|
68
|
-
}
|
|
69
|
-
type ItemSelectorCompProps = Omit<_ItemSelectorCompProps, 'scrollable'>;
|
|
70
|
-
interface ItemSelectorProps extends ItemSelector, _ItemSelectorCompProps {
|
|
71
|
-
}
|
|
72
|
-
export { type ItemSelector, type ItemSelectorCompProps, type ItemSelectorOptions, type ItemSelectorProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"item-selector.js","sourceRoot":"","sources":["../../types/item-selector.ts"],"names":[],"mappings":"AA2FA,OAAO,EAKN,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type Product from './product';
|
|
2
|
-
interface LineItem extends Product {
|
|
3
|
-
/** all observable */
|
|
4
|
-
get quantity(): number;
|
|
5
|
-
get canDecrement(): boolean;
|
|
6
|
-
get isInCart(): boolean;
|
|
7
|
-
increment(): void;
|
|
8
|
-
decrement(): void;
|
|
9
|
-
get title(): string;
|
|
10
|
-
}
|
|
11
|
-
interface ObsLineItemRef {
|
|
12
|
-
get item(): LineItem | undefined;
|
|
13
|
-
}
|
|
14
|
-
export type { LineItem, ObsLineItemRef };
|
package/dist/types/line-item.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"line-item.js","sourceRoot":"","sources":["../../types/line-item.ts"],"names":[],"mappings":""}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Dimensions } from '@hanzo/ui/types';
|
|
2
|
-
import type { Family } from './family';
|
|
3
|
-
import type { ItemSelectorOptions } from './item-selector';
|
|
4
|
-
import type { MultiFamilySelectorOptions } from './selection-ui-specifier';
|
|
5
|
-
import type { CategoryNode } from './category-node';
|
|
6
|
-
interface MultiFamilySelectorProps {
|
|
7
|
-
families: Family[];
|
|
8
|
-
parent: CategoryNode;
|
|
9
|
-
clx?: string;
|
|
10
|
-
itemClx?: string;
|
|
11
|
-
itemOptions?: ItemSelectorOptions;
|
|
12
|
-
selectorOptions?: MultiFamilySelectorOptions;
|
|
13
|
-
mediaConstraint?: Dimensions;
|
|
14
|
-
mobile?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export { type MultiFamilySelectorProps as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multi-family-selector-props.js","sourceRoot":"","sources":["../../types/multi-family-selector-props.ts"],"names":[],"mappings":"AAmBA,OAAO,EAA4C,CAAA"}
|
package/dist/types/product.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ImageDef, MediaStackDef } from '@hanzo/ui/types';
|
|
2
|
-
interface Product extends MediaStackDef {
|
|
3
|
-
id: string;
|
|
4
|
-
sku: string;
|
|
5
|
-
fullTitle?: string;
|
|
6
|
-
optionLabel: string;
|
|
7
|
-
optionLabelShort?: string;
|
|
8
|
-
familyId: string;
|
|
9
|
-
familyTitle: string;
|
|
10
|
-
byline?: string;
|
|
11
|
-
desc?: string;
|
|
12
|
-
price: number;
|
|
13
|
-
optionImg?: ImageDef;
|
|
14
|
-
}
|
|
15
|
-
export { type Product as default };
|
package/dist/types/product.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product.js","sourceRoot":"","sources":["../../types/product.ts"],"names":[],"mappings":"AAkBA,OAAO,EAEN,CAAA"}
|
package/dist/types/promo.d.ts
DELETED
package/dist/types/promo.js
DELETED
package/dist/types/promo.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"promo.js","sourceRoot":"","sources":["../../types/promo.ts"],"names":[],"mappings":"AAOA,OAAO,EAEN,CAAA"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { ItemSelectorOptions } from './item-selector';
|
|
2
|
-
type SingleFamilySelector = 'buttons' | 'carousel';
|
|
3
|
-
type MultiFamilySelector = 'family-carousel' | 'all-variants-carousel';
|
|
4
|
-
type MultiFamilySelectorOptions = {
|
|
5
|
-
/**
|
|
6
|
-
* Show title of parent node of families.
|
|
7
|
-
* eg,
|
|
8
|
-
* Lux Credit
|
|
9
|
-
* Black Card
|
|
10
|
-
*
|
|
11
|
-
* vs just Black Card
|
|
12
|
-
*
|
|
13
|
-
* ( parent CategoryNode.label)
|
|
14
|
-
*
|
|
15
|
-
* (goes to one line if only one family)
|
|
16
|
-
* default: true
|
|
17
|
-
* */
|
|
18
|
-
showParentTitle?: boolean;
|
|
19
|
-
/** parent CategoryNode.subNodesLabel
|
|
20
|
-
*
|
|
21
|
-
* default: 'none'
|
|
22
|
-
*/
|
|
23
|
-
parentByline?: 'none' | 'own-line' | 'comma-sep' | 'colon-sep';
|
|
24
|
-
/** show horiz image buttons of
|
|
25
|
-
* all sibling items below item info
|
|
26
|
-
* default: true*/
|
|
27
|
-
showItemSwatches?: boolean;
|
|
28
|
-
};
|
|
29
|
-
interface SelectionUISpecifier {
|
|
30
|
-
multiFamily?: {
|
|
31
|
-
type: MultiFamilySelector;
|
|
32
|
-
selectorOptions?: MultiFamilySelectorOptions;
|
|
33
|
-
itemOptions?: ItemSelectorOptions;
|
|
34
|
-
};
|
|
35
|
-
singleFamily?: {
|
|
36
|
-
type: SingleFamilySelector;
|
|
37
|
-
options?: ItemSelectorOptions;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export { type SelectionUISpecifier, type ItemSelectorOptions, type SingleFamilySelector, type MultiFamilySelector, type MultiFamilySelectorOptions };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selection-ui-specifier.js","sourceRoot":"","sources":["../../types/selection-ui-specifier.ts"],"names":[],"mappings":"AA6CA,OAAO,EAMN,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { type PropsWithChildren } from 'react';
|
|
2
|
-
import type CommerceService from '../types/commerce-service';
|
|
3
|
-
import type { CommerceConfig } from '../types';
|
|
4
|
-
declare const useCommerce: () => CommerceService;
|
|
5
|
-
declare const CommerceProvider: React.FC<PropsWithChildren & {
|
|
6
|
-
config: CommerceConfig;
|
|
7
|
-
}>;
|
|
8
|
-
export { useCommerce, CommerceProvider };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { CategoryNode, CategoryNodeRole, Family, LineItem } from '../types';
|
|
2
|
-
export declare const categoryNodeDump: (node: CategoryNode, level?: number) => void;
|
|
3
|
-
export declare const selectedFamiliesDump: (result: Family[]) => string;
|
|
4
|
-
export declare const peekDump: (result: {
|
|
5
|
-
role: CategoryNodeRole;
|
|
6
|
-
family: Family | undefined;
|
|
7
|
-
families: Family[] | undefined;
|
|
8
|
-
node: CategoryNode | undefined;
|
|
9
|
-
item: LineItem | undefined;
|
|
10
|
-
} | string) => string;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { ImageDef, MediaTransform, VideoDef } from '@hanzo/ui/types';
|
|
2
|
-
import type { Product, LineItem, CommerceService } from '../../../types';
|
|
3
|
-
interface ActualLineItemSnapshot {
|
|
4
|
-
sku: string;
|
|
5
|
-
familyId: string;
|
|
6
|
-
title: string;
|
|
7
|
-
price: number;
|
|
8
|
-
quantity: number;
|
|
9
|
-
timeAdded: number;
|
|
10
|
-
timeModified: number;
|
|
11
|
-
}
|
|
12
|
-
declare class ActualLineItem implements LineItem {
|
|
13
|
-
qu: number;
|
|
14
|
-
id: string;
|
|
15
|
-
sku: string;
|
|
16
|
-
fullTitle?: string;
|
|
17
|
-
optionLabel: string;
|
|
18
|
-
optionLabelShort?: string;
|
|
19
|
-
familyTitle: string;
|
|
20
|
-
familyId: string;
|
|
21
|
-
byline?: string;
|
|
22
|
-
desc?: string;
|
|
23
|
-
price: number;
|
|
24
|
-
img?: ImageDef;
|
|
25
|
-
video?: VideoDef;
|
|
26
|
-
animation?: string;
|
|
27
|
-
mediaTransform?: MediaTransform;
|
|
28
|
-
optionImg?: ImageDef;
|
|
29
|
-
timeAdded: number;
|
|
30
|
-
timeModified: number;
|
|
31
|
-
constructor(prod: Product, snap?: ActualLineItemSnapshot);
|
|
32
|
-
get title(): string;
|
|
33
|
-
takeSnapshot: (cmmc: CommerceService) => ActualLineItemSnapshot;
|
|
34
|
-
get canDecrement(): boolean;
|
|
35
|
-
get quantity(): number;
|
|
36
|
-
get isInCart(): boolean;
|
|
37
|
-
increment(): void;
|
|
38
|
-
decrement(): void;
|
|
39
|
-
}
|
|
40
|
-
export { type ActualLineItemSnapshot, ActualLineItem as default };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import type { CommerceService, Family, LineItem, SelectedPaths, CategoryNode, CategoryNodeRole, Promo } from '../../../types';
|
|
2
|
-
import { type ActualLineItemSnapshot } from './actual-line-item';
|
|
3
|
-
import { getInstance } from './get-instance';
|
|
4
|
-
type StandaloneServiceOptions = {
|
|
5
|
-
dbName: string;
|
|
6
|
-
ordersTable: string;
|
|
7
|
-
localStorageKey: string;
|
|
8
|
-
};
|
|
9
|
-
interface StandaloneServiceSnapshot {
|
|
10
|
-
items: ActualLineItemSnapshot[];
|
|
11
|
-
}
|
|
12
|
-
declare class StandaloneService implements CommerceService {
|
|
13
|
-
private _familyMap;
|
|
14
|
-
private _rootNode;
|
|
15
|
-
private _selectedPaths;
|
|
16
|
-
private _promo;
|
|
17
|
-
private _options;
|
|
18
|
-
private _currentFamily;
|
|
19
|
-
private _currentItem;
|
|
20
|
-
constructor(families: Family[], rootNode: CategoryNode, options: StandaloneServiceOptions, serviceSnapshot?: StandaloneServiceSnapshot);
|
|
21
|
-
getFamilyById(id: string): Family | undefined;
|
|
22
|
-
getNodeAtPath(skuPath: string): CategoryNode | undefined;
|
|
23
|
-
peek(skuPath: string): {
|
|
24
|
-
role: CategoryNodeRole;
|
|
25
|
-
family: Family | undefined;
|
|
26
|
-
families: Family[] | undefined;
|
|
27
|
-
node: CategoryNode | undefined;
|
|
28
|
-
item: LineItem | undefined;
|
|
29
|
-
} | string;
|
|
30
|
-
getSelectedNodesAtLevel: (level: number) => CategoryNode[] | undefined;
|
|
31
|
-
get options(): StandaloneServiceOptions;
|
|
32
|
-
createOrder(email: string, name?: string): Promise<string | undefined>;
|
|
33
|
-
updateOrderShippingInfo(orderId: string, shippingInfo: any): Promise<void>;
|
|
34
|
-
updateOrderPaymentInfo(orderId: string, paymentInfo: any): Promise<void>;
|
|
35
|
-
takeSnapshot: () => StandaloneServiceSnapshot;
|
|
36
|
-
get recentItem(): {
|
|
37
|
-
item: LineItem;
|
|
38
|
-
modified: number;
|
|
39
|
-
} | undefined;
|
|
40
|
-
private get _cartItems();
|
|
41
|
-
get cartItems(): LineItem[];
|
|
42
|
-
get cartEmpty(): boolean;
|
|
43
|
-
get cartTotal(): number;
|
|
44
|
-
_promoValue_unsafe(value: number): number;
|
|
45
|
-
get promoAppliedCartTotal(): number;
|
|
46
|
-
itemPromoPrice(item: LineItem): number | undefined;
|
|
47
|
-
get cartQuantity(): number;
|
|
48
|
-
get appliedPromo(): Promo | null;
|
|
49
|
-
setAppliedPromo(promo: Promo | null): void;
|
|
50
|
-
getItemBySku: (skuToFind: string | undefined) => LineItem | undefined;
|
|
51
|
-
setCurrentItem: (skuToFind: string | undefined) => boolean;
|
|
52
|
-
get item(): LineItem | undefined;
|
|
53
|
-
get currentItem(): LineItem | undefined;
|
|
54
|
-
setCurrentFamily(id: string | undefined): boolean;
|
|
55
|
-
get currentFamily(): Family | undefined;
|
|
56
|
-
get family(): Family | undefined;
|
|
57
|
-
selectPaths(sel: SelectedPaths): Family[];
|
|
58
|
-
selectPath(skuPath: string): Family[];
|
|
59
|
-
get selectedPaths(): SelectedPaths;
|
|
60
|
-
get selectedFamilies(): Family[];
|
|
61
|
-
private _reduceNode;
|
|
62
|
-
private _processAndValidate;
|
|
63
|
-
get selectedItems(): LineItem[];
|
|
64
|
-
get hasSelection(): boolean;
|
|
65
|
-
getFamilySubtotal(familyId: string): number;
|
|
66
|
-
}
|
|
67
|
-
export { type StandaloneServiceOptions, type StandaloneServiceSnapshot, StandaloneService, getInstance };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { ActualLineItemSnapshot } from '../actual-line-item';
|
|
2
|
-
declare const createOrder: (email: string, items: ActualLineItemSnapshot[], options: {
|
|
3
|
-
dbName: string;
|
|
4
|
-
ordersTable: string;
|
|
5
|
-
}, name?: string) => Promise<{
|
|
6
|
-
success: boolean;
|
|
7
|
-
error: any;
|
|
8
|
-
id?: string;
|
|
9
|
-
}>;
|
|
10
|
-
declare const updateOrderShippingInfo: (orderId: string, shippingInfo: any, options: {
|
|
11
|
-
dbName: string;
|
|
12
|
-
ordersTable: string;
|
|
13
|
-
}) => Promise<{
|
|
14
|
-
success: boolean;
|
|
15
|
-
error: any;
|
|
16
|
-
}>;
|
|
17
|
-
declare const updateOrderPaymentInfo: (orderId: string, paymentInfo: any, options: {
|
|
18
|
-
dbName: string;
|
|
19
|
-
ordersTable: string;
|
|
20
|
-
}) => Promise<{
|
|
21
|
-
success: boolean;
|
|
22
|
-
error: any;
|
|
23
|
-
}>;
|
|
24
|
-
export { createOrder, updateOrderShippingInfo, updateOrderPaymentInfo };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { StandaloneService, type StandaloneServiceSnapshot } from './index';
|
|
2
|
-
declare const readSnapshot: (key: string) => StandaloneServiceSnapshot | undefined;
|
|
3
|
-
declare const writeSnapshotsOnChange: (cmmc: StandaloneService, key: string) => void;
|
|
4
|
-
export { readSnapshot, writeSnapshotsOnChange };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { SelectedPaths } from '../types';
|
|
2
|
-
export declare const getSelectedPaths: (skuPath: string) => {
|
|
3
|
-
paths: SelectedPaths;
|
|
4
|
-
level: number;
|
|
5
|
-
};
|
|
6
|
-
export declare const getParentPath: (skuPath: string) => string;
|
|
7
|
-
export declare const lastToken: (skuPath: string) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"string-mutator.js","sourceRoot":"","sources":["../../types/string-mutator.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token-separators.js","sourceRoot":"","sources":["../../types/token-separators.ts"],"names":[],"mappings":"AAMA,OAAO,EAAmC,CAAA"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
interface CategoryNode {
|
|
3
|
-
skuToken: string;
|
|
4
|
-
label: string;
|
|
5
|
-
/**
|
|
6
|
-
* Explicitly marks this node as a "last user-visible" / "outermost" Category.
|
|
7
|
-
* Normally, a node is "outermost" when it has no subnodes
|
|
8
|
-
* (and thus is a family with products -- "single-family")
|
|
9
|
-
* But if it *has* subnodes, and its subNodes are actually sibling families
|
|
10
|
-
* of a Category, it must be marked as "outermost" ("multi-family")
|
|
11
|
-
* */
|
|
12
|
-
outermost?: boolean;
|
|
13
|
-
img?: string | ReactNode;
|
|
14
|
-
imgAR?: number;
|
|
15
|
-
/**
|
|
16
|
-
* One word prompt that describes the 'meaning' of
|
|
17
|
-
* the subnodes.
|
|
18
|
-
* For example, if a node is 'Lux Credit',
|
|
19
|
-
* it's subNodesLabel might be 'Level', so some UI's
|
|
20
|
-
* might be configured to render 'Level: Black'
|
|
21
|
-
*
|
|
22
|
-
* or something like...
|
|
23
|
-
*
|
|
24
|
-
* <Tabs title={parentNode.label + ': ' + parentNode.subNodesLabel} values={families.map((f) => (f.shortName))} />
|
|
25
|
-
*
|
|
26
|
-
* ...which renders
|
|
27
|
-
*
|
|
28
|
-
* Lux Credit Levels:
|
|
29
|
-
* Black Elite Founder Sovereign
|
|
30
|
-
*/
|
|
31
|
-
subNodesLabel?: string;
|
|
32
|
-
subNodes?: CategoryNode[];
|
|
33
|
-
}
|
|
34
|
-
type CategoryNodeRole = 'single-family' | 'family-in-multi-family' | 'multi-family' | 'non-outermost';
|
|
35
|
-
type SelectedPaths = Record<number, string[]>;
|
|
36
|
-
export type { CategoryNodeRole, CategoryNode, SelectedPaths };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { ComponentType } from 'react';
|
|
2
|
-
import type { UseFormReturn } from 'react-hook-form';
|
|
3
|
-
type TransactionStatus = 'unpaid' | 'paid' | 'confirmed' | 'error';
|
|
4
|
-
interface CheckoutStepComponentProps {
|
|
5
|
-
onDone: () => void;
|
|
6
|
-
orderId: string | undefined;
|
|
7
|
-
setOrderId: (orderId: string | undefined) => void;
|
|
8
|
-
}
|
|
9
|
-
interface CheckoutStep {
|
|
10
|
-
name: string;
|
|
11
|
-
label?: string;
|
|
12
|
-
Comp: ComponentType<CheckoutStepComponentProps>;
|
|
13
|
-
}
|
|
14
|
-
type ContactFormType = UseFormReturn<{
|
|
15
|
-
name: string;
|
|
16
|
-
email: string;
|
|
17
|
-
}, any, {
|
|
18
|
-
name: string;
|
|
19
|
-
email: string;
|
|
20
|
-
}>;
|
|
21
|
-
interface PaymentMethodComponentProps {
|
|
22
|
-
onDone: () => void;
|
|
23
|
-
transactionStatus: TransactionStatus;
|
|
24
|
-
setTransactionStatus: (status: TransactionStatus) => void;
|
|
25
|
-
storePaymentInfo: (paymentInfo: any) => Promise<void>;
|
|
26
|
-
contactForm: ContactFormType;
|
|
27
|
-
}
|
|
28
|
-
interface PaymentMethodDesc {
|
|
29
|
-
value: string;
|
|
30
|
-
label: string;
|
|
31
|
-
Comp: ComponentType<PaymentMethodComponentProps>;
|
|
32
|
-
}
|
|
33
|
-
export { type TransactionStatus, type CheckoutStepComponentProps, type CheckoutStep, type PaymentMethodComponentProps, type PaymentMethodDesc, type ContactFormType, };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ServiceOptions } from '..';
|
|
2
|
-
import type { CategoryNode } from './category-node';
|
|
3
|
-
import type { Family } from './family';
|
|
4
|
-
import type { SelectionUISpecifier } from './selection-ui-specifier';
|
|
5
|
-
interface CommerceConfig {
|
|
6
|
-
families: Family[];
|
|
7
|
-
rootNode: CategoryNode;
|
|
8
|
-
options?: ServiceOptions;
|
|
9
|
-
uiSpecifiers?: Record<string, SelectionUISpecifier>;
|
|
10
|
-
}
|
|
11
|
-
export { type CommerceConfig as default };
|