mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 22:36:27 +00:00
The workspace declared pkg/* and pkgs/* both, so one repo had two names for one concept and a package's home was a coin toss. The shared build tooling already lived in pkg/ui/scripts and pkgs reached back into it two levels up; now it is a sibling. hanzo.yml gates on pkg/ui, so the published library stays where CI already looks and the rest joins it. The publish glob follows: one root, one pattern, nothing invisible to it. Co-authored-by: Hanzo Dev <[email protected]>
46 lines
1.7 KiB
TypeScript
46 lines
1.7 KiB
TypeScript
export { useCommerce, CommerceProvider } from './service/context'
|
|
export { default as AddToCartWidget } from './components/add-to-cart-widget'
|
|
export { default as CarouselBuyCard } from './components/buy/carousel-buy-card'
|
|
export { default as CartPanel } from './components/cart/cart-panel'
|
|
export { default as Icons } from './components/Icons'
|
|
export { default as PaymentStepForm } from './components/checkout/payment-step-form'
|
|
export { default as ProductCard } from './components/item/product-card'
|
|
export { default as ShippingStepForm } from './components/checkout/shipping-step-form'
|
|
export { default as ButtonItemSelector } from './components/item-selector/button'
|
|
export { default as CarouselItemSelector, type CarouselItemSelectorPropsExt } from './components/item-selector/carousel'
|
|
// Impl-dependent, so leave w impl
|
|
export type { StandaloneServiceOptions as ServiceOptions } from './service/impls/standalone'
|
|
export { default as useSyncSkuParamWithCurrentItem } from './util/use-sync-sku-param-w-current-item'
|
|
export {
|
|
getFacetValuesMutator,
|
|
formatCurrencyValue,
|
|
ProductMediaAccessor,
|
|
LineItemRef
|
|
} from './util'
|
|
|
|
export { initSelectionUI, getSelectionUISpecifier } from './util/selection-ui-specifiers'
|
|
|
|
// Commerce API client
|
|
export { Commerce, CommerceApiError, hanzoCommerce } from './client'
|
|
export type {
|
|
CommerceClientConfig,
|
|
Transaction,
|
|
Subscription,
|
|
CreditGrant,
|
|
} from './client'
|
|
|
|
// Server-side usage metering (the one way every product meters to commerce)
|
|
export {
|
|
Metering,
|
|
DEFAULT_COMMERCE_URL,
|
|
identityFromHeaders,
|
|
HEADER_USER_ID,
|
|
HEADER_ORG_ID,
|
|
} from './metering'
|
|
export type {
|
|
MeteringConfig,
|
|
MeteringIdentity,
|
|
UsageEvent,
|
|
RecordResult,
|
|
AuthDecision,
|
|
} from './metering' |