@behio/storefront-sdk 2.17.0 → 2.19.0
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/README.md +23 -0
- package/dist/{client-CKg4F98v.d.mts → client-CeIGiIf2.d.mts} +22 -1
- package/dist/{client-CKg4F98v.d.ts → client-CeIGiIf2.d.ts} +22 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -3
- package/dist/index.mjs +6 -3
- package/dist/next.d.mts +1 -1
- package/dist/next.d.ts +1 -1
- package/dist/react.d.mts +21 -0
- package/dist/react.d.ts +21 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -75,6 +75,29 @@ if (orderResult.error) throw new Error(orderResult.error.message);
|
|
|
75
75
|
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
+
### Websites without a shop (2.17.1)
|
|
79
|
+
|
|
80
|
+
Every Behio storefront belongs to a site. A site starts as a website: shop
|
|
81
|
+
info, SEO, pages, blogs, forms, collections and analytics work with its key,
|
|
82
|
+
and categories and featured products return empty lists. The other shop
|
|
83
|
+
endpoints (products, cart, checkout, customer accounts, orders) answer 404 with
|
|
84
|
+
the code `be.storefront.siteKeyNotAllowed` until the merchant adds a shop to
|
|
85
|
+
the website, in the Behio admin or with the MCP tool `site-commerce-enable`.
|
|
86
|
+
From then on the same key and the same site id serve the shop too, and the shop
|
|
87
|
+
shares the website's name, languages, logo, appearance and SEO.
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
import { errorCode } from '@behio/storefront-sdk';
|
|
91
|
+
|
|
92
|
+
const {data, error} = await storefront.catalog.getProducts({limit: 12});
|
|
93
|
+
if (errorCode(error) === 'be.storefront.siteKeyNotAllowed') {
|
|
94
|
+
// Website without a shop: hide the shop navigation instead of an error page.
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
`errorMessage(error, locale)` returns a translated sentence for this code in
|
|
99
|
+
cs, sk and en.
|
|
100
|
+
|
|
78
101
|
Paid orders may briefly return `contentDeliveryPending: true` while purchased
|
|
79
102
|
files and course access are being assigned. Render this state in the initial
|
|
80
103
|
receipt HTML and refresh the authenticated order detail until it clears. Tell
|
|
@@ -180,6 +180,18 @@ interface CheckoutSettings {
|
|
|
180
180
|
/** Price presentation mode (Eshop.priceDisplay). See `CheckoutSettings.priceDisplay`. */
|
|
181
181
|
type PriceDisplay = "INCL_VAT" | "EXCL_VAT" | "CUSTOMER_CHOICE";
|
|
182
182
|
type CurrencyDisplayFormat = "SYMBOL_BEFORE" | "SYMBOL_AFTER" | "CODE";
|
|
183
|
+
/**
|
|
184
|
+
* Selling state of the site (SDK 2.18.0). `NONE` = website without a shop,
|
|
185
|
+
* `ADDED` = shop being set up (orders are accepted), `LIVE` = selling,
|
|
186
|
+
* `PAUSED` = not accepting orders right now: cart writes, checkout and gift
|
|
187
|
+
* card purchases answer 403 `be.storefront.shopPaused`. Keep the catalog
|
|
188
|
+
* visible and replace the buy buttons with a notice.
|
|
189
|
+
*/
|
|
190
|
+
interface ShopCommerce {
|
|
191
|
+
state: "NONE" | "ADDED" | "LIVE" | "PAUSED";
|
|
192
|
+
/** False for PAUSED and for a website without a shop. */
|
|
193
|
+
acceptsOrders: boolean;
|
|
194
|
+
}
|
|
183
195
|
interface ShopInfo {
|
|
184
196
|
/** Merchant default catalog order, normalized to the public sort values. */
|
|
185
197
|
defaultProductSort?: ProductSortValue;
|
|
@@ -195,6 +207,15 @@ interface ShopInfo {
|
|
|
195
207
|
enabled: boolean;
|
|
196
208
|
message: string | null;
|
|
197
209
|
};
|
|
210
|
+
/** Selling state. Optional because cached payloads predating SDK 2.18.0 may still be served; missing = accepting orders. */
|
|
211
|
+
commerce?: ShopCommerce;
|
|
212
|
+
/**
|
|
213
|
+
* IANA time zone of the site (SDK 2.19.0), e.g. "Europe/Prague". Format dates
|
|
214
|
+
* with `Intl.DateTimeFormat(locale, {timeZone})` so the server render and the
|
|
215
|
+
* browser agree (no hydration mismatch) and show the merchant's day. Optional
|
|
216
|
+
* because cached payloads predating 2.19.0 may still be served.
|
|
217
|
+
*/
|
|
218
|
+
timezone?: string;
|
|
198
219
|
id: string;
|
|
199
220
|
name: string;
|
|
200
221
|
domain: string;
|
|
@@ -4220,4 +4241,4 @@ declare function clearCartSummary(): void;
|
|
|
4220
4241
|
/** Publish only authoritative current totals; server cart consumers call this after hydration and revalidation. */
|
|
4221
4242
|
declare function publishCartSummary(summary: CartSummaryEvent): void;
|
|
4222
4243
|
|
|
4223
|
-
export { type CourseCommentReply as $, type ActivePromotion as A, BehioStorefront as B, type CookieConsent as C, type Cart as D, type CartBundleLine as E, type CartBundleLineItem as F, type CartDiscount as G, type CartItem as H, type CartItemProduct as I, type CartLinkClaimed as J, type CartPromotion as K, type CartSummaryEvent as L, type Category as M, type CategoryDetail as N, type CertificateVerification as O, type ProductDetail as P, type CheckoutAddress as Q, type CheckoutInput as R, type SdkResult as S, type CheckoutPaymentMethod as T, type CheckoutPreview as U, type CheckoutResult as V, type CheckoutSettings as W, type CookieConsentInput as X, type CourseAttachment as Y, type CourseCertificate as Z, type CourseComment as _, type ProductVariant as a, type OrderPaymentInstructions as a$, type CourseCommentsList as a0, type CourseDetail as a1, type CourseLesson as a2, type CourseListItem as a3, type CourseModule as a4, type CoursePostedComment as a5, type CourseProgress as a6, type CourseTutorMessage as a7, type CourseTutorThread as a8, type CrossSellItem as a9, type LessonNote as aA, type LessonQuiz as aB, type LoginInput as aC, type LoyaltyBalance as aD, type LoyaltyNextTier as aE, type LoyaltyProgram as aF, type LoyaltyQuery as aG, type LoyaltyReferralResult as aH, type LoyaltySummary as aI, type LoyaltyTier as aJ, type LoyaltyTierPerks as aK, type LoyaltyTransaction as aL, type Menu as aM, type MenuItem as aN, type MenuItemRef as aO, type MenuItemType as aP, type MessageResponse as aQ, type NewsletterOptInDefault as aR, type NewsletterSubscribeInput as aS, type NewsletterSubscribeResult as aT, type NewsletterUnsubscribeResult as aU, type OrderAccessRequestResponse as aV, type OrderAccessVerifyResponse as aW, type OrderDetail as aX, type OrderDiscount as aY, type OrderItem as aZ, type OrderListItem as a_, type CurrencyDisplayFormat as aa, type CustomerAddress as ab, type CustomerBadge as ac, type CustomerChallenge as ad, type CustomerGamification as ae, type CustomerGamificationQuery as af, type CustomerProfile as ag, type DigitalDownload as ah, type DownloadUrl as ai, type Facet as aj, type FacetAvailability as ak, type FacetCategory as al, type FacetLabel as am, type FacetPriceRange as an, type FacetRange as ao, type FacetRatingBucket as ap, type FacetValue as aq, type FacetsResponse as ar, type FilterField as as, type FulfillmentStatus as at, FulfillmentStatuses as au, type GamificationRefreshResult as av, type GiftCardBalance as aw, type GiftCardPurchaseInput as ax, type GiftCardPurchaseResult as ay, type GiftCardSummary as az, type StorefrontFormFieldError as b, type
|
|
4244
|
+
export { type CourseCommentReply as $, type ActivePromotion as A, BehioStorefront as B, type CookieConsent as C, type Cart as D, type CartBundleLine as E, type CartBundleLineItem as F, type CartDiscount as G, type CartItem as H, type CartItemProduct as I, type CartLinkClaimed as J, type CartPromotion as K, type CartSummaryEvent as L, type Category as M, type CategoryDetail as N, type CertificateVerification as O, type ProductDetail as P, type CheckoutAddress as Q, type CheckoutInput as R, type SdkResult as S, type CheckoutPaymentMethod as T, type CheckoutPreview as U, type CheckoutResult as V, type CheckoutSettings as W, type CookieConsentInput as X, type CourseAttachment as Y, type CourseCertificate as Z, type CourseComment as _, type ProductVariant as a, type OrderPaymentInstructions as a$, type CourseCommentsList as a0, type CourseDetail as a1, type CourseLesson as a2, type CourseListItem as a3, type CourseModule as a4, type CoursePostedComment as a5, type CourseProgress as a6, type CourseTutorMessage as a7, type CourseTutorThread as a8, type CrossSellItem as a9, type LessonNote as aA, type LessonQuiz as aB, type LoginInput as aC, type LoyaltyBalance as aD, type LoyaltyNextTier as aE, type LoyaltyProgram as aF, type LoyaltyQuery as aG, type LoyaltyReferralResult as aH, type LoyaltySummary as aI, type LoyaltyTier as aJ, type LoyaltyTierPerks as aK, type LoyaltyTransaction as aL, type Menu as aM, type MenuItem as aN, type MenuItemRef as aO, type MenuItemType as aP, type MessageResponse as aQ, type NewsletterOptInDefault as aR, type NewsletterSubscribeInput as aS, type NewsletterSubscribeResult as aT, type NewsletterUnsubscribeResult as aU, type OrderAccessRequestResponse as aV, type OrderAccessVerifyResponse as aW, type OrderDetail as aX, type OrderDiscount as aY, type OrderItem as aZ, type OrderListItem as a_, type CurrencyDisplayFormat as aa, type CustomerAddress as ab, type CustomerBadge as ac, type CustomerChallenge as ad, type CustomerGamification as ae, type CustomerGamificationQuery as af, type CustomerProfile as ag, type DigitalDownload as ah, type DownloadUrl as ai, type Facet as aj, type FacetAvailability as ak, type FacetCategory as al, type FacetLabel as am, type FacetPriceRange as an, type FacetRange as ao, type FacetRatingBucket as ap, type FacetValue as aq, type FacetsResponse as ar, type FilterField as as, type FulfillmentStatus as at, FulfillmentStatuses as au, type GamificationRefreshResult as av, type GiftCardBalance as aw, type GiftCardPurchaseInput as ax, type GiftCardPurchaseResult as ay, type GiftCardSummary as az, type StorefrontFormFieldError as b, type ShopCommerce as b$, type OrderPickupPoint as b0, type OrderShipment as b1, type OrderStatus as b2, type OrderStatusHistory as b3, OrderStatuses as b4, type OrderTracking as b5, type Page as b6, type PageAttachment as b7, type PageDetail as b8, type PaginatedResponse as b9, type ProductSortValue as bA, type ProductVolumePrice as bB, type ProductsQuery as bC, type QuizAnswerInput as bD, type QuizAnswerResult as bE, type QuizQuestion as bF, type QuizResult as bG, type QuoteItem as bH, type QuoteRequest as bI, type RegisterInput as bJ, type RegisterResult as bK, type RequestInterceptor as bL, type RequestInterceptorConfig as bM, type ResponseInterceptor as bN, type ResponseInterceptorData as bO, type ReturnRequest as bP, type ReturnRequestItem as bQ, type ReturnStatus as bR, type ReturnStatusItem as bS, type ReturnableOrder as bT, type ReturnableOrderItem as bU, type SdkError as bV, type ShippingMethodSummary as bW, type ShippingPublicConfig as bX, type ShippingQuote as bY, type ShippingQuoteInput as bZ, type ShopAppearance as b_, type PaymentInstrument as ba, type PaymentStatus as bb, PaymentStatuses as bc, type PaymentSwift as bd, type PickupPoint as be, type PickupPointHours as bf, type PickupPointsInput as bg, type PickupWidgetConfig as bh, type PriceDisplay as bi, type ProductAssetGroup as bj, type ProductAssetItem as bk, type ProductAvailability as bl, type ProductGroup as bm, type ProductLabel as bn, type ProductListItem as bo, type ProductMedia as bp, type ProductMediaVariant as bq, type ProductParameter as br, type ProductParameterGroup as bs, type ProductParametersResponse as bt, type ProductPrice as bu, type ProductPromotionSummary as bv, type ProductReview as bw, type ProductReviewsResponse as bx, type ProductSibling as by, ProductSort as bz, type AddToCartInput as c, type ShopInfo as c0, type ShopScript as c1, type ShopScriptPlacement as c2, type ShopScriptType as c3, type ShopScripts as c4, type ShopSeo as c5, type ShopSeoIdentity as c6, type SiteFormField as c7, type SiteFormFieldOption as c8, type SiteFormFieldType as c9, type VariantAxisValue as cA, type WishlistItem as cB, clearCartSummary as cC, err as cD, ok as cE, publishCartSummary as cF, toSdkError as cG, type Sitemap as ca, type SitemapEntry as cb, type StockBehavior as cc, type StockMode as cd, type StorefrontCollection as ce, type StorefrontCollectionField as cf, type StorefrontCollectionFieldType as cg, type StorefrontCollectionItem as ch, type StorefrontCollectionQuery as ci, type StorefrontForm as cj, type StorefrontFormFieldErrorCode as ck, type StorefrontFormFile as cl, type StorefrontFormSettings as cm, type StorefrontFormSubmitInput as cn, type StorefrontFormSubmitResult as co, type StorefrontFormUpload as cp, type SubmitQuoteInput as cq, type SubmitReturnInput as cr, type SubmitReviewInput as cs, type Subscription as ct, type SubscriptionAction as cu, type SubscriptionFrequency as cv, type SubscriptionItem as cw, type SubscriptionStatus as cx, type TaxBreakdownLine as cy, type VariantAxis as cz, type AddressDetail as d, type AddressSuggestion as e, type AddressType as f, AddressTypes as g, type AuthTokens as h, type BackInStockSubscription as i, type BadgeTone as j, BehioApiError as k, type BehioErrorCode as l, type BehioEventHandler as m, type BehioEventType as n, BehioNetworkError as o, type BehioStorefrontConfig as p, type Blog as q, type BlogPostDetail as r, type BlogPostListItem as s, type BlogPostsPage as t, type BlogPostsQuery as u, type BlogSettings as v, type BlogTag as w, type Bundle as x, type BundleCatalogQuery as y, type BundleItem as z };
|
|
@@ -180,6 +180,18 @@ interface CheckoutSettings {
|
|
|
180
180
|
/** Price presentation mode (Eshop.priceDisplay). See `CheckoutSettings.priceDisplay`. */
|
|
181
181
|
type PriceDisplay = "INCL_VAT" | "EXCL_VAT" | "CUSTOMER_CHOICE";
|
|
182
182
|
type CurrencyDisplayFormat = "SYMBOL_BEFORE" | "SYMBOL_AFTER" | "CODE";
|
|
183
|
+
/**
|
|
184
|
+
* Selling state of the site (SDK 2.18.0). `NONE` = website without a shop,
|
|
185
|
+
* `ADDED` = shop being set up (orders are accepted), `LIVE` = selling,
|
|
186
|
+
* `PAUSED` = not accepting orders right now: cart writes, checkout and gift
|
|
187
|
+
* card purchases answer 403 `be.storefront.shopPaused`. Keep the catalog
|
|
188
|
+
* visible and replace the buy buttons with a notice.
|
|
189
|
+
*/
|
|
190
|
+
interface ShopCommerce {
|
|
191
|
+
state: "NONE" | "ADDED" | "LIVE" | "PAUSED";
|
|
192
|
+
/** False for PAUSED and for a website without a shop. */
|
|
193
|
+
acceptsOrders: boolean;
|
|
194
|
+
}
|
|
183
195
|
interface ShopInfo {
|
|
184
196
|
/** Merchant default catalog order, normalized to the public sort values. */
|
|
185
197
|
defaultProductSort?: ProductSortValue;
|
|
@@ -195,6 +207,15 @@ interface ShopInfo {
|
|
|
195
207
|
enabled: boolean;
|
|
196
208
|
message: string | null;
|
|
197
209
|
};
|
|
210
|
+
/** Selling state. Optional because cached payloads predating SDK 2.18.0 may still be served; missing = accepting orders. */
|
|
211
|
+
commerce?: ShopCommerce;
|
|
212
|
+
/**
|
|
213
|
+
* IANA time zone of the site (SDK 2.19.0), e.g. "Europe/Prague". Format dates
|
|
214
|
+
* with `Intl.DateTimeFormat(locale, {timeZone})` so the server render and the
|
|
215
|
+
* browser agree (no hydration mismatch) and show the merchant's day. Optional
|
|
216
|
+
* because cached payloads predating 2.19.0 may still be served.
|
|
217
|
+
*/
|
|
218
|
+
timezone?: string;
|
|
198
219
|
id: string;
|
|
199
220
|
name: string;
|
|
200
221
|
domain: string;
|
|
@@ -4220,4 +4241,4 @@ declare function clearCartSummary(): void;
|
|
|
4220
4241
|
/** Publish only authoritative current totals; server cart consumers call this after hydration and revalidation. */
|
|
4221
4242
|
declare function publishCartSummary(summary: CartSummaryEvent): void;
|
|
4222
4243
|
|
|
4223
|
-
export { type CourseCommentReply as $, type ActivePromotion as A, BehioStorefront as B, type CookieConsent as C, type Cart as D, type CartBundleLine as E, type CartBundleLineItem as F, type CartDiscount as G, type CartItem as H, type CartItemProduct as I, type CartLinkClaimed as J, type CartPromotion as K, type CartSummaryEvent as L, type Category as M, type CategoryDetail as N, type CertificateVerification as O, type ProductDetail as P, type CheckoutAddress as Q, type CheckoutInput as R, type SdkResult as S, type CheckoutPaymentMethod as T, type CheckoutPreview as U, type CheckoutResult as V, type CheckoutSettings as W, type CookieConsentInput as X, type CourseAttachment as Y, type CourseCertificate as Z, type CourseComment as _, type ProductVariant as a, type OrderPaymentInstructions as a$, type CourseCommentsList as a0, type CourseDetail as a1, type CourseLesson as a2, type CourseListItem as a3, type CourseModule as a4, type CoursePostedComment as a5, type CourseProgress as a6, type CourseTutorMessage as a7, type CourseTutorThread as a8, type CrossSellItem as a9, type LessonNote as aA, type LessonQuiz as aB, type LoginInput as aC, type LoyaltyBalance as aD, type LoyaltyNextTier as aE, type LoyaltyProgram as aF, type LoyaltyQuery as aG, type LoyaltyReferralResult as aH, type LoyaltySummary as aI, type LoyaltyTier as aJ, type LoyaltyTierPerks as aK, type LoyaltyTransaction as aL, type Menu as aM, type MenuItem as aN, type MenuItemRef as aO, type MenuItemType as aP, type MessageResponse as aQ, type NewsletterOptInDefault as aR, type NewsletterSubscribeInput as aS, type NewsletterSubscribeResult as aT, type NewsletterUnsubscribeResult as aU, type OrderAccessRequestResponse as aV, type OrderAccessVerifyResponse as aW, type OrderDetail as aX, type OrderDiscount as aY, type OrderItem as aZ, type OrderListItem as a_, type CurrencyDisplayFormat as aa, type CustomerAddress as ab, type CustomerBadge as ac, type CustomerChallenge as ad, type CustomerGamification as ae, type CustomerGamificationQuery as af, type CustomerProfile as ag, type DigitalDownload as ah, type DownloadUrl as ai, type Facet as aj, type FacetAvailability as ak, type FacetCategory as al, type FacetLabel as am, type FacetPriceRange as an, type FacetRange as ao, type FacetRatingBucket as ap, type FacetValue as aq, type FacetsResponse as ar, type FilterField as as, type FulfillmentStatus as at, FulfillmentStatuses as au, type GamificationRefreshResult as av, type GiftCardBalance as aw, type GiftCardPurchaseInput as ax, type GiftCardPurchaseResult as ay, type GiftCardSummary as az, type StorefrontFormFieldError as b, type
|
|
4244
|
+
export { type CourseCommentReply as $, type ActivePromotion as A, BehioStorefront as B, type CookieConsent as C, type Cart as D, type CartBundleLine as E, type CartBundleLineItem as F, type CartDiscount as G, type CartItem as H, type CartItemProduct as I, type CartLinkClaimed as J, type CartPromotion as K, type CartSummaryEvent as L, type Category as M, type CategoryDetail as N, type CertificateVerification as O, type ProductDetail as P, type CheckoutAddress as Q, type CheckoutInput as R, type SdkResult as S, type CheckoutPaymentMethod as T, type CheckoutPreview as U, type CheckoutResult as V, type CheckoutSettings as W, type CookieConsentInput as X, type CourseAttachment as Y, type CourseCertificate as Z, type CourseComment as _, type ProductVariant as a, type OrderPaymentInstructions as a$, type CourseCommentsList as a0, type CourseDetail as a1, type CourseLesson as a2, type CourseListItem as a3, type CourseModule as a4, type CoursePostedComment as a5, type CourseProgress as a6, type CourseTutorMessage as a7, type CourseTutorThread as a8, type CrossSellItem as a9, type LessonNote as aA, type LessonQuiz as aB, type LoginInput as aC, type LoyaltyBalance as aD, type LoyaltyNextTier as aE, type LoyaltyProgram as aF, type LoyaltyQuery as aG, type LoyaltyReferralResult as aH, type LoyaltySummary as aI, type LoyaltyTier as aJ, type LoyaltyTierPerks as aK, type LoyaltyTransaction as aL, type Menu as aM, type MenuItem as aN, type MenuItemRef as aO, type MenuItemType as aP, type MessageResponse as aQ, type NewsletterOptInDefault as aR, type NewsletterSubscribeInput as aS, type NewsletterSubscribeResult as aT, type NewsletterUnsubscribeResult as aU, type OrderAccessRequestResponse as aV, type OrderAccessVerifyResponse as aW, type OrderDetail as aX, type OrderDiscount as aY, type OrderItem as aZ, type OrderListItem as a_, type CurrencyDisplayFormat as aa, type CustomerAddress as ab, type CustomerBadge as ac, type CustomerChallenge as ad, type CustomerGamification as ae, type CustomerGamificationQuery as af, type CustomerProfile as ag, type DigitalDownload as ah, type DownloadUrl as ai, type Facet as aj, type FacetAvailability as ak, type FacetCategory as al, type FacetLabel as am, type FacetPriceRange as an, type FacetRange as ao, type FacetRatingBucket as ap, type FacetValue as aq, type FacetsResponse as ar, type FilterField as as, type FulfillmentStatus as at, FulfillmentStatuses as au, type GamificationRefreshResult as av, type GiftCardBalance as aw, type GiftCardPurchaseInput as ax, type GiftCardPurchaseResult as ay, type GiftCardSummary as az, type StorefrontFormFieldError as b, type ShopCommerce as b$, type OrderPickupPoint as b0, type OrderShipment as b1, type OrderStatus as b2, type OrderStatusHistory as b3, OrderStatuses as b4, type OrderTracking as b5, type Page as b6, type PageAttachment as b7, type PageDetail as b8, type PaginatedResponse as b9, type ProductSortValue as bA, type ProductVolumePrice as bB, type ProductsQuery as bC, type QuizAnswerInput as bD, type QuizAnswerResult as bE, type QuizQuestion as bF, type QuizResult as bG, type QuoteItem as bH, type QuoteRequest as bI, type RegisterInput as bJ, type RegisterResult as bK, type RequestInterceptor as bL, type RequestInterceptorConfig as bM, type ResponseInterceptor as bN, type ResponseInterceptorData as bO, type ReturnRequest as bP, type ReturnRequestItem as bQ, type ReturnStatus as bR, type ReturnStatusItem as bS, type ReturnableOrder as bT, type ReturnableOrderItem as bU, type SdkError as bV, type ShippingMethodSummary as bW, type ShippingPublicConfig as bX, type ShippingQuote as bY, type ShippingQuoteInput as bZ, type ShopAppearance as b_, type PaymentInstrument as ba, type PaymentStatus as bb, PaymentStatuses as bc, type PaymentSwift as bd, type PickupPoint as be, type PickupPointHours as bf, type PickupPointsInput as bg, type PickupWidgetConfig as bh, type PriceDisplay as bi, type ProductAssetGroup as bj, type ProductAssetItem as bk, type ProductAvailability as bl, type ProductGroup as bm, type ProductLabel as bn, type ProductListItem as bo, type ProductMedia as bp, type ProductMediaVariant as bq, type ProductParameter as br, type ProductParameterGroup as bs, type ProductParametersResponse as bt, type ProductPrice as bu, type ProductPromotionSummary as bv, type ProductReview as bw, type ProductReviewsResponse as bx, type ProductSibling as by, ProductSort as bz, type AddToCartInput as c, type ShopInfo as c0, type ShopScript as c1, type ShopScriptPlacement as c2, type ShopScriptType as c3, type ShopScripts as c4, type ShopSeo as c5, type ShopSeoIdentity as c6, type SiteFormField as c7, type SiteFormFieldOption as c8, type SiteFormFieldType as c9, type VariantAxisValue as cA, type WishlistItem as cB, clearCartSummary as cC, err as cD, ok as cE, publishCartSummary as cF, toSdkError as cG, type Sitemap as ca, type SitemapEntry as cb, type StockBehavior as cc, type StockMode as cd, type StorefrontCollection as ce, type StorefrontCollectionField as cf, type StorefrontCollectionFieldType as cg, type StorefrontCollectionItem as ch, type StorefrontCollectionQuery as ci, type StorefrontForm as cj, type StorefrontFormFieldErrorCode as ck, type StorefrontFormFile as cl, type StorefrontFormSettings as cm, type StorefrontFormSubmitInput as cn, type StorefrontFormSubmitResult as co, type StorefrontFormUpload as cp, type SubmitQuoteInput as cq, type SubmitReturnInput as cr, type SubmitReviewInput as cs, type Subscription as ct, type SubscriptionAction as cu, type SubscriptionFrequency as cv, type SubscriptionItem as cw, type SubscriptionStatus as cx, type TaxBreakdownLine as cy, type VariantAxis as cz, type AddressDetail as d, type AddressSuggestion as e, type AddressType as f, AddressTypes as g, type AuthTokens as h, type BackInStockSubscription as i, type BadgeTone as j, BehioApiError as k, type BehioErrorCode as l, type BehioEventHandler as m, type BehioEventType as n, BehioNetworkError as o, type BehioStorefrontConfig as p, type Blog as q, type BlogPostDetail as r, type BlogPostListItem as s, type BlogPostsPage as t, type BlogPostsQuery as u, type BlogSettings as v, type BlogTag as w, type Bundle as x, type BundleCatalogQuery as y, type BundleItem as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-
|
|
2
|
-
export { A as ActivePromotion, c as AddToCartInput, d as AddressDetail, e as AddressSuggestion, f as AddressType, g as AddressTypes, h as AuthTokens, i as BackInStockSubscription, j as BadgeTone, k as BehioApiError, l as BehioErrorCode, m as BehioEventHandler, n as BehioEventType, o as BehioNetworkError, p as BehioStorefrontConfig, q as Blog, r as BlogPostDetail, s as BlogPostListItem, t as BlogPostsPage, u as BlogPostsQuery, v as BlogSettings, w as BlogTag, x as Bundle, y as BundleCatalogQuery, z as BundleItem, D as Cart, E as CartBundleLine, F as CartBundleLineItem, G as CartDiscount, H as CartItem, I as CartItemProduct, J as CartLinkClaimed, K as CartPromotion, L as CartSummaryEvent, M as Category, N as CategoryDetail, O as CertificateVerification, Q as CheckoutAddress, R as CheckoutInput, T as CheckoutPaymentMethod, U as CheckoutPreview, V as CheckoutResult, W as CheckoutSettings, X as CookieConsentInput, Y as CourseAttachment, Z as CourseCertificate, _ as CourseComment, $ as CourseCommentReply, a0 as CourseCommentsList, a1 as CourseDetail, a2 as CourseLesson, a3 as CourseListItem, a4 as CourseModule, a5 as CoursePostedComment, a6 as CourseProgress, a7 as CourseTutorMessage, a8 as CourseTutorThread, a9 as CrossSellItem, aa as CurrencyDisplayFormat, ab as CustomerAddress, ac as CustomerBadge, ad as CustomerChallenge, ae as CustomerGamification, af as CustomerGamificationQuery, ag as CustomerProfile, ah as DigitalDownload, ai as DownloadUrl, aj as Facet, ak as FacetAvailability, al as FacetCategory, am as FacetLabel, an as FacetPriceRange, ao as FacetRange, ap as FacetRatingBucket, aq as FacetValue, ar as FacetsResponse, as as FilterField, at as FulfillmentStatus, au as FulfillmentStatuses, av as GamificationRefreshResult, aw as GiftCardBalance, ax as GiftCardPurchaseInput, ay as GiftCardPurchaseResult, az as GiftCardSummary, aA as LessonNote, aB as LessonQuiz, aC as LoginInput, aD as LoyaltyBalance, aE as LoyaltyNextTier, aF as LoyaltyProgram, aG as LoyaltyQuery, aH as LoyaltyReferralResult, aI as LoyaltySummary, aJ as LoyaltyTier, aK as LoyaltyTierPerks, aL as LoyaltyTransaction, aM as Menu, aN as MenuItem, aO as MenuItemRef, aP as MenuItemType, aQ as MessageResponse, aR as NewsletterOptInDefault, aS as NewsletterSubscribeInput, aT as NewsletterSubscribeResult, aU as NewsletterUnsubscribeResult, aV as OrderAccessRequestResponse, aW as OrderAccessVerifyResponse, aX as OrderDetail, aY as OrderDiscount, aZ as OrderItem, a_ as OrderListItem, a$ as OrderPaymentInstructions, b0 as OrderPickupPoint, b1 as OrderShipment, b2 as OrderStatus, b3 as OrderStatusHistory, b4 as OrderStatuses, b5 as OrderTracking, b6 as Page, b7 as PageAttachment, b8 as PageDetail, b9 as PaginatedResponse, ba as PaymentInstrument, bb as PaymentStatus, bc as PaymentStatuses, bd as PaymentSwift, be as PickupPoint, bf as PickupPointHours, bg as PickupPointsInput, bh as PickupWidgetConfig, bi as PriceDisplay, bj as ProductAssetGroup, bk as ProductAssetItem, bl as ProductAvailability, bm as ProductGroup, bn as ProductLabel, bo as ProductListItem, bp as ProductMedia, bq as ProductMediaVariant, br as ProductParameter, bs as ProductParameterGroup, bt as ProductParametersResponse, bu as ProductPrice, bv as ProductPromotionSummary, bw as ProductReview, bx as ProductReviewsResponse, by as ProductSibling, bz as ProductSort, bA as ProductSortValue, bB as ProductVolumePrice, bC as ProductsQuery, bD as QuizAnswerInput, bE as QuizAnswerResult, bF as QuizQuestion, bG as QuizResult, bH as QuoteItem, bI as QuoteRequest, bJ as RegisterInput, bK as RegisterResult, bL as RequestInterceptor, bM as RequestInterceptorConfig, bN as ResponseInterceptor, bO as ResponseInterceptorData, bP as ReturnRequest, bQ as ReturnRequestItem, bR as ReturnStatus, bS as ReturnStatusItem, bT as ReturnableOrder, bU as ReturnableOrderItem, bV as SdkError, bW as ShippingMethodSummary, bX as ShippingPublicConfig, bY as ShippingQuote, bZ as ShippingQuoteInput, b_ as ShopAppearance, b$ as
|
|
1
|
+
import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-CeIGiIf2.mjs';
|
|
2
|
+
export { A as ActivePromotion, c as AddToCartInput, d as AddressDetail, e as AddressSuggestion, f as AddressType, g as AddressTypes, h as AuthTokens, i as BackInStockSubscription, j as BadgeTone, k as BehioApiError, l as BehioErrorCode, m as BehioEventHandler, n as BehioEventType, o as BehioNetworkError, p as BehioStorefrontConfig, q as Blog, r as BlogPostDetail, s as BlogPostListItem, t as BlogPostsPage, u as BlogPostsQuery, v as BlogSettings, w as BlogTag, x as Bundle, y as BundleCatalogQuery, z as BundleItem, D as Cart, E as CartBundleLine, F as CartBundleLineItem, G as CartDiscount, H as CartItem, I as CartItemProduct, J as CartLinkClaimed, K as CartPromotion, L as CartSummaryEvent, M as Category, N as CategoryDetail, O as CertificateVerification, Q as CheckoutAddress, R as CheckoutInput, T as CheckoutPaymentMethod, U as CheckoutPreview, V as CheckoutResult, W as CheckoutSettings, X as CookieConsentInput, Y as CourseAttachment, Z as CourseCertificate, _ as CourseComment, $ as CourseCommentReply, a0 as CourseCommentsList, a1 as CourseDetail, a2 as CourseLesson, a3 as CourseListItem, a4 as CourseModule, a5 as CoursePostedComment, a6 as CourseProgress, a7 as CourseTutorMessage, a8 as CourseTutorThread, a9 as CrossSellItem, aa as CurrencyDisplayFormat, ab as CustomerAddress, ac as CustomerBadge, ad as CustomerChallenge, ae as CustomerGamification, af as CustomerGamificationQuery, ag as CustomerProfile, ah as DigitalDownload, ai as DownloadUrl, aj as Facet, ak as FacetAvailability, al as FacetCategory, am as FacetLabel, an as FacetPriceRange, ao as FacetRange, ap as FacetRatingBucket, aq as FacetValue, ar as FacetsResponse, as as FilterField, at as FulfillmentStatus, au as FulfillmentStatuses, av as GamificationRefreshResult, aw as GiftCardBalance, ax as GiftCardPurchaseInput, ay as GiftCardPurchaseResult, az as GiftCardSummary, aA as LessonNote, aB as LessonQuiz, aC as LoginInput, aD as LoyaltyBalance, aE as LoyaltyNextTier, aF as LoyaltyProgram, aG as LoyaltyQuery, aH as LoyaltyReferralResult, aI as LoyaltySummary, aJ as LoyaltyTier, aK as LoyaltyTierPerks, aL as LoyaltyTransaction, aM as Menu, aN as MenuItem, aO as MenuItemRef, aP as MenuItemType, aQ as MessageResponse, aR as NewsletterOptInDefault, aS as NewsletterSubscribeInput, aT as NewsletterSubscribeResult, aU as NewsletterUnsubscribeResult, aV as OrderAccessRequestResponse, aW as OrderAccessVerifyResponse, aX as OrderDetail, aY as OrderDiscount, aZ as OrderItem, a_ as OrderListItem, a$ as OrderPaymentInstructions, b0 as OrderPickupPoint, b1 as OrderShipment, b2 as OrderStatus, b3 as OrderStatusHistory, b4 as OrderStatuses, b5 as OrderTracking, b6 as Page, b7 as PageAttachment, b8 as PageDetail, b9 as PaginatedResponse, ba as PaymentInstrument, bb as PaymentStatus, bc as PaymentStatuses, bd as PaymentSwift, be as PickupPoint, bf as PickupPointHours, bg as PickupPointsInput, bh as PickupWidgetConfig, bi as PriceDisplay, bj as ProductAssetGroup, bk as ProductAssetItem, bl as ProductAvailability, bm as ProductGroup, bn as ProductLabel, bo as ProductListItem, bp as ProductMedia, bq as ProductMediaVariant, br as ProductParameter, bs as ProductParameterGroup, bt as ProductParametersResponse, bu as ProductPrice, bv as ProductPromotionSummary, bw as ProductReview, bx as ProductReviewsResponse, by as ProductSibling, bz as ProductSort, bA as ProductSortValue, bB as ProductVolumePrice, bC as ProductsQuery, bD as QuizAnswerInput, bE as QuizAnswerResult, bF as QuizQuestion, bG as QuizResult, bH as QuoteItem, bI as QuoteRequest, bJ as RegisterInput, bK as RegisterResult, bL as RequestInterceptor, bM as RequestInterceptorConfig, bN as ResponseInterceptor, bO as ResponseInterceptorData, bP as ReturnRequest, bQ as ReturnRequestItem, bR as ReturnStatus, bS as ReturnStatusItem, bT as ReturnableOrder, bU as ReturnableOrderItem, bV as SdkError, bW as ShippingMethodSummary, bX as ShippingPublicConfig, bY as ShippingQuote, bZ as ShippingQuoteInput, b_ as ShopAppearance, b$ as ShopCommerce, c0 as ShopInfo, c1 as ShopScript, c2 as ShopScriptPlacement, c3 as ShopScriptType, c4 as ShopScripts, c5 as ShopSeo, c6 as ShopSeoIdentity, c7 as SiteFormField, c8 as SiteFormFieldOption, c9 as SiteFormFieldType, ca as Sitemap, cb as SitemapEntry, cc as StockBehavior, cd as StockMode, ce as StorefrontCollection, cf as StorefrontCollectionField, cg as StorefrontCollectionFieldType, ch as StorefrontCollectionItem, ci as StorefrontCollectionQuery, cj as StorefrontForm, ck as StorefrontFormFieldErrorCode, cl as StorefrontFormFile, cm as StorefrontFormSettings, cn as StorefrontFormSubmitInput, co as StorefrontFormSubmitResult, cp as StorefrontFormUpload, cq as SubmitQuoteInput, cr as SubmitReturnInput, cs as SubmitReviewInput, ct as Subscription, cu as SubscriptionAction, cv as SubscriptionFrequency, cw as SubscriptionItem, cx as SubscriptionStatus, cy as TaxBreakdownLine, cz as VariantAxis, cA as VariantAxisValue, cB as WishlistItem, cC as clearCartSummary, cD as err, cE as ok, cF as publishCartSummary, cG as toSdkError } from './client-CeIGiIf2.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Format a price amount with currency using Intl.NumberFormat.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-
|
|
2
|
-
export { A as ActivePromotion, c as AddToCartInput, d as AddressDetail, e as AddressSuggestion, f as AddressType, g as AddressTypes, h as AuthTokens, i as BackInStockSubscription, j as BadgeTone, k as BehioApiError, l as BehioErrorCode, m as BehioEventHandler, n as BehioEventType, o as BehioNetworkError, p as BehioStorefrontConfig, q as Blog, r as BlogPostDetail, s as BlogPostListItem, t as BlogPostsPage, u as BlogPostsQuery, v as BlogSettings, w as BlogTag, x as Bundle, y as BundleCatalogQuery, z as BundleItem, D as Cart, E as CartBundleLine, F as CartBundleLineItem, G as CartDiscount, H as CartItem, I as CartItemProduct, J as CartLinkClaimed, K as CartPromotion, L as CartSummaryEvent, M as Category, N as CategoryDetail, O as CertificateVerification, Q as CheckoutAddress, R as CheckoutInput, T as CheckoutPaymentMethod, U as CheckoutPreview, V as CheckoutResult, W as CheckoutSettings, X as CookieConsentInput, Y as CourseAttachment, Z as CourseCertificate, _ as CourseComment, $ as CourseCommentReply, a0 as CourseCommentsList, a1 as CourseDetail, a2 as CourseLesson, a3 as CourseListItem, a4 as CourseModule, a5 as CoursePostedComment, a6 as CourseProgress, a7 as CourseTutorMessage, a8 as CourseTutorThread, a9 as CrossSellItem, aa as CurrencyDisplayFormat, ab as CustomerAddress, ac as CustomerBadge, ad as CustomerChallenge, ae as CustomerGamification, af as CustomerGamificationQuery, ag as CustomerProfile, ah as DigitalDownload, ai as DownloadUrl, aj as Facet, ak as FacetAvailability, al as FacetCategory, am as FacetLabel, an as FacetPriceRange, ao as FacetRange, ap as FacetRatingBucket, aq as FacetValue, ar as FacetsResponse, as as FilterField, at as FulfillmentStatus, au as FulfillmentStatuses, av as GamificationRefreshResult, aw as GiftCardBalance, ax as GiftCardPurchaseInput, ay as GiftCardPurchaseResult, az as GiftCardSummary, aA as LessonNote, aB as LessonQuiz, aC as LoginInput, aD as LoyaltyBalance, aE as LoyaltyNextTier, aF as LoyaltyProgram, aG as LoyaltyQuery, aH as LoyaltyReferralResult, aI as LoyaltySummary, aJ as LoyaltyTier, aK as LoyaltyTierPerks, aL as LoyaltyTransaction, aM as Menu, aN as MenuItem, aO as MenuItemRef, aP as MenuItemType, aQ as MessageResponse, aR as NewsletterOptInDefault, aS as NewsletterSubscribeInput, aT as NewsletterSubscribeResult, aU as NewsletterUnsubscribeResult, aV as OrderAccessRequestResponse, aW as OrderAccessVerifyResponse, aX as OrderDetail, aY as OrderDiscount, aZ as OrderItem, a_ as OrderListItem, a$ as OrderPaymentInstructions, b0 as OrderPickupPoint, b1 as OrderShipment, b2 as OrderStatus, b3 as OrderStatusHistory, b4 as OrderStatuses, b5 as OrderTracking, b6 as Page, b7 as PageAttachment, b8 as PageDetail, b9 as PaginatedResponse, ba as PaymentInstrument, bb as PaymentStatus, bc as PaymentStatuses, bd as PaymentSwift, be as PickupPoint, bf as PickupPointHours, bg as PickupPointsInput, bh as PickupWidgetConfig, bi as PriceDisplay, bj as ProductAssetGroup, bk as ProductAssetItem, bl as ProductAvailability, bm as ProductGroup, bn as ProductLabel, bo as ProductListItem, bp as ProductMedia, bq as ProductMediaVariant, br as ProductParameter, bs as ProductParameterGroup, bt as ProductParametersResponse, bu as ProductPrice, bv as ProductPromotionSummary, bw as ProductReview, bx as ProductReviewsResponse, by as ProductSibling, bz as ProductSort, bA as ProductSortValue, bB as ProductVolumePrice, bC as ProductsQuery, bD as QuizAnswerInput, bE as QuizAnswerResult, bF as QuizQuestion, bG as QuizResult, bH as QuoteItem, bI as QuoteRequest, bJ as RegisterInput, bK as RegisterResult, bL as RequestInterceptor, bM as RequestInterceptorConfig, bN as ResponseInterceptor, bO as ResponseInterceptorData, bP as ReturnRequest, bQ as ReturnRequestItem, bR as ReturnStatus, bS as ReturnStatusItem, bT as ReturnableOrder, bU as ReturnableOrderItem, bV as SdkError, bW as ShippingMethodSummary, bX as ShippingPublicConfig, bY as ShippingQuote, bZ as ShippingQuoteInput, b_ as ShopAppearance, b$ as
|
|
1
|
+
import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-CeIGiIf2.js';
|
|
2
|
+
export { A as ActivePromotion, c as AddToCartInput, d as AddressDetail, e as AddressSuggestion, f as AddressType, g as AddressTypes, h as AuthTokens, i as BackInStockSubscription, j as BadgeTone, k as BehioApiError, l as BehioErrorCode, m as BehioEventHandler, n as BehioEventType, o as BehioNetworkError, p as BehioStorefrontConfig, q as Blog, r as BlogPostDetail, s as BlogPostListItem, t as BlogPostsPage, u as BlogPostsQuery, v as BlogSettings, w as BlogTag, x as Bundle, y as BundleCatalogQuery, z as BundleItem, D as Cart, E as CartBundleLine, F as CartBundleLineItem, G as CartDiscount, H as CartItem, I as CartItemProduct, J as CartLinkClaimed, K as CartPromotion, L as CartSummaryEvent, M as Category, N as CategoryDetail, O as CertificateVerification, Q as CheckoutAddress, R as CheckoutInput, T as CheckoutPaymentMethod, U as CheckoutPreview, V as CheckoutResult, W as CheckoutSettings, X as CookieConsentInput, Y as CourseAttachment, Z as CourseCertificate, _ as CourseComment, $ as CourseCommentReply, a0 as CourseCommentsList, a1 as CourseDetail, a2 as CourseLesson, a3 as CourseListItem, a4 as CourseModule, a5 as CoursePostedComment, a6 as CourseProgress, a7 as CourseTutorMessage, a8 as CourseTutorThread, a9 as CrossSellItem, aa as CurrencyDisplayFormat, ab as CustomerAddress, ac as CustomerBadge, ad as CustomerChallenge, ae as CustomerGamification, af as CustomerGamificationQuery, ag as CustomerProfile, ah as DigitalDownload, ai as DownloadUrl, aj as Facet, ak as FacetAvailability, al as FacetCategory, am as FacetLabel, an as FacetPriceRange, ao as FacetRange, ap as FacetRatingBucket, aq as FacetValue, ar as FacetsResponse, as as FilterField, at as FulfillmentStatus, au as FulfillmentStatuses, av as GamificationRefreshResult, aw as GiftCardBalance, ax as GiftCardPurchaseInput, ay as GiftCardPurchaseResult, az as GiftCardSummary, aA as LessonNote, aB as LessonQuiz, aC as LoginInput, aD as LoyaltyBalance, aE as LoyaltyNextTier, aF as LoyaltyProgram, aG as LoyaltyQuery, aH as LoyaltyReferralResult, aI as LoyaltySummary, aJ as LoyaltyTier, aK as LoyaltyTierPerks, aL as LoyaltyTransaction, aM as Menu, aN as MenuItem, aO as MenuItemRef, aP as MenuItemType, aQ as MessageResponse, aR as NewsletterOptInDefault, aS as NewsletterSubscribeInput, aT as NewsletterSubscribeResult, aU as NewsletterUnsubscribeResult, aV as OrderAccessRequestResponse, aW as OrderAccessVerifyResponse, aX as OrderDetail, aY as OrderDiscount, aZ as OrderItem, a_ as OrderListItem, a$ as OrderPaymentInstructions, b0 as OrderPickupPoint, b1 as OrderShipment, b2 as OrderStatus, b3 as OrderStatusHistory, b4 as OrderStatuses, b5 as OrderTracking, b6 as Page, b7 as PageAttachment, b8 as PageDetail, b9 as PaginatedResponse, ba as PaymentInstrument, bb as PaymentStatus, bc as PaymentStatuses, bd as PaymentSwift, be as PickupPoint, bf as PickupPointHours, bg as PickupPointsInput, bh as PickupWidgetConfig, bi as PriceDisplay, bj as ProductAssetGroup, bk as ProductAssetItem, bl as ProductAvailability, bm as ProductGroup, bn as ProductLabel, bo as ProductListItem, bp as ProductMedia, bq as ProductMediaVariant, br as ProductParameter, bs as ProductParameterGroup, bt as ProductParametersResponse, bu as ProductPrice, bv as ProductPromotionSummary, bw as ProductReview, bx as ProductReviewsResponse, by as ProductSibling, bz as ProductSort, bA as ProductSortValue, bB as ProductVolumePrice, bC as ProductsQuery, bD as QuizAnswerInput, bE as QuizAnswerResult, bF as QuizQuestion, bG as QuizResult, bH as QuoteItem, bI as QuoteRequest, bJ as RegisterInput, bK as RegisterResult, bL as RequestInterceptor, bM as RequestInterceptorConfig, bN as ResponseInterceptor, bO as ResponseInterceptorData, bP as ReturnRequest, bQ as ReturnRequestItem, bR as ReturnStatus, bS as ReturnStatusItem, bT as ReturnableOrder, bU as ReturnableOrderItem, bV as SdkError, bW as ShippingMethodSummary, bX as ShippingPublicConfig, bY as ShippingQuote, bZ as ShippingQuoteInput, b_ as ShopAppearance, b$ as ShopCommerce, c0 as ShopInfo, c1 as ShopScript, c2 as ShopScriptPlacement, c3 as ShopScriptType, c4 as ShopScripts, c5 as ShopSeo, c6 as ShopSeoIdentity, c7 as SiteFormField, c8 as SiteFormFieldOption, c9 as SiteFormFieldType, ca as Sitemap, cb as SitemapEntry, cc as StockBehavior, cd as StockMode, ce as StorefrontCollection, cf as StorefrontCollectionField, cg as StorefrontCollectionFieldType, ch as StorefrontCollectionItem, ci as StorefrontCollectionQuery, cj as StorefrontForm, ck as StorefrontFormFieldErrorCode, cl as StorefrontFormFile, cm as StorefrontFormSettings, cn as StorefrontFormSubmitInput, co as StorefrontFormSubmitResult, cp as StorefrontFormUpload, cq as SubmitQuoteInput, cr as SubmitReturnInput, cs as SubmitReviewInput, ct as Subscription, cu as SubscriptionAction, cv as SubscriptionFrequency, cw as SubscriptionItem, cx as SubscriptionStatus, cy as TaxBreakdownLine, cz as VariantAxis, cA as VariantAxisValue, cB as WishlistItem, cC as clearCartSummary, cD as err, cE as ok, cF as publishCartSummary, cG as toSdkError } from './client-CeIGiIf2.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Format a price amount with currency using Intl.NumberFormat.
|
package/dist/index.js
CHANGED
|
@@ -463,7 +463,8 @@ var ERROR_MESSAGES = {
|
|
|
463
463
|
"be.storefront.shippingQuoteStale": "Ko\u0161\xEDk se od kalkulace dopravy zm\u011Bnil. Na\u010Dt\u011Bte mo\u017Enosti dopravy znovu.",
|
|
464
464
|
"be.storefront.shopMaintenance": "Obchod je v \xFAdr\u017Eb\u011B. Zkuste to pros\xEDm pozd\u011Bji.",
|
|
465
465
|
"be.storefront.shopNotAvailable": "E-shop nen\xED dostupn\xFD.",
|
|
466
|
-
"be.storefront.
|
|
466
|
+
"be.storefront.shopPaused": "Obchod te\u010F nep\u0159ij\xEDm\xE1 objedn\xE1vky.",
|
|
467
|
+
"be.storefront.siteKeyNotAllowed": "Tento web zat\xEDm neprod\xE1v\xE1, tak\u017Ee obchodn\xED endpointy jako katalog, ko\u0161\xEDk a pokladna nejsou pro jeho kl\xED\u010D dostupn\xE9. Prodej zapnete p\u0159id\xE1n\xEDm obchodu k webu v Behiu (site-commerce-enable).",
|
|
467
468
|
"be.storefront.siteOwnerMissing": "Web nem\xE1 vlastn\xEDka (e-shop ani web).",
|
|
468
469
|
"be.storefront.someProductsNotFound": "N\u011Bkter\xE9 produkty nebyly nalezeny.",
|
|
469
470
|
"be.storefront.stockBusyRetry": "Zbo\u017E\xED si pr\xE1v\u011B kupuje v\xEDc lid\xED najednou, zkuste to pros\xEDm znovu.",
|
|
@@ -727,7 +728,8 @@ var ERROR_MESSAGES = {
|
|
|
727
728
|
"be.storefront.shippingQuoteStale": "Ko\u0161\xEDk sa od kalkul\xE1cie dopravy zmenil. Na\u010D\xEDtajte mo\u017Enosti dopravy znova.",
|
|
728
729
|
"be.storefront.shopMaintenance": "Obchod je v \xFAdr\u017Ebe. Sk\xFAste to pros\xEDm nesk\xF4r.",
|
|
729
730
|
"be.storefront.shopNotAvailable": "E-shop nie je dostupn\xFD.",
|
|
730
|
-
"be.storefront.
|
|
731
|
+
"be.storefront.shopPaused": "Obchod teraz neprij\xEDma objedn\xE1vky.",
|
|
732
|
+
"be.storefront.siteKeyNotAllowed": "Tento web zatia\u013E nepred\xE1va, tak\u017Ee obchodn\xE9 endpointy ako katal\xF3g, ko\u0161\xEDk a poklad\u0148a nie s\xFA pre jeho k\u013E\xFA\u010D dostupn\xE9. Predaj zapnete pridan\xEDm obchodu k webu v Behiu (site-commerce-enable).",
|
|
731
733
|
"be.storefront.siteOwnerMissing": "Web nem\xE1 vlastn\xEDka (e-shop ani web).",
|
|
732
734
|
"be.storefront.someProductsNotFound": "Niektor\xE9 produkty sa nena\u0161li.",
|
|
733
735
|
"be.storefront.stockBusyRetry": "Tovar si pr\xE1ve kupuje viac \u013Eud\xED naraz, sk\xFAste to pros\xEDm znova.",
|
|
@@ -991,7 +993,8 @@ var ERROR_MESSAGES = {
|
|
|
991
993
|
"be.storefront.shippingQuoteStale": "Cart has changed since the shipping quote was issued, re-fetch shipping",
|
|
992
994
|
"be.storefront.shopMaintenance": "The shop is under maintenance. Please try again later.",
|
|
993
995
|
"be.storefront.shopNotAvailable": "Shop is not available",
|
|
994
|
-
"be.storefront.
|
|
996
|
+
"be.storefront.shopPaused": "The shop is not accepting orders right now.",
|
|
997
|
+
"be.storefront.siteKeyNotAllowed": "This website does not sell yet, so shop endpoints such as the catalog, cart and checkout are not available for its key. Add a shop to the website in Behio (site-commerce-enable) to start selling.",
|
|
995
998
|
"be.storefront.siteOwnerMissing": "The site has no owner (neither e-shop nor website)",
|
|
996
999
|
"be.storefront.someProductsNotFound": "One or more products were not found",
|
|
997
1000
|
"be.storefront.stockBusyRetry": "Many people are buying this item right now, please try again.",
|
package/dist/index.mjs
CHANGED
|
@@ -463,7 +463,8 @@ var ERROR_MESSAGES = {
|
|
|
463
463
|
"be.storefront.shippingQuoteStale": "Ko\u0161\xEDk se od kalkulace dopravy zm\u011Bnil. Na\u010Dt\u011Bte mo\u017Enosti dopravy znovu.",
|
|
464
464
|
"be.storefront.shopMaintenance": "Obchod je v \xFAdr\u017Eb\u011B. Zkuste to pros\xEDm pozd\u011Bji.",
|
|
465
465
|
"be.storefront.shopNotAvailable": "E-shop nen\xED dostupn\xFD.",
|
|
466
|
-
"be.storefront.
|
|
466
|
+
"be.storefront.shopPaused": "Obchod te\u010F nep\u0159ij\xEDm\xE1 objedn\xE1vky.",
|
|
467
|
+
"be.storefront.siteKeyNotAllowed": "Tento web zat\xEDm neprod\xE1v\xE1, tak\u017Ee obchodn\xED endpointy jako katalog, ko\u0161\xEDk a pokladna nejsou pro jeho kl\xED\u010D dostupn\xE9. Prodej zapnete p\u0159id\xE1n\xEDm obchodu k webu v Behiu (site-commerce-enable).",
|
|
467
468
|
"be.storefront.siteOwnerMissing": "Web nem\xE1 vlastn\xEDka (e-shop ani web).",
|
|
468
469
|
"be.storefront.someProductsNotFound": "N\u011Bkter\xE9 produkty nebyly nalezeny.",
|
|
469
470
|
"be.storefront.stockBusyRetry": "Zbo\u017E\xED si pr\xE1v\u011B kupuje v\xEDc lid\xED najednou, zkuste to pros\xEDm znovu.",
|
|
@@ -727,7 +728,8 @@ var ERROR_MESSAGES = {
|
|
|
727
728
|
"be.storefront.shippingQuoteStale": "Ko\u0161\xEDk sa od kalkul\xE1cie dopravy zmenil. Na\u010D\xEDtajte mo\u017Enosti dopravy znova.",
|
|
728
729
|
"be.storefront.shopMaintenance": "Obchod je v \xFAdr\u017Ebe. Sk\xFAste to pros\xEDm nesk\xF4r.",
|
|
729
730
|
"be.storefront.shopNotAvailable": "E-shop nie je dostupn\xFD.",
|
|
730
|
-
"be.storefront.
|
|
731
|
+
"be.storefront.shopPaused": "Obchod teraz neprij\xEDma objedn\xE1vky.",
|
|
732
|
+
"be.storefront.siteKeyNotAllowed": "Tento web zatia\u013E nepred\xE1va, tak\u017Ee obchodn\xE9 endpointy ako katal\xF3g, ko\u0161\xEDk a poklad\u0148a nie s\xFA pre jeho k\u013E\xFA\u010D dostupn\xE9. Predaj zapnete pridan\xEDm obchodu k webu v Behiu (site-commerce-enable).",
|
|
731
733
|
"be.storefront.siteOwnerMissing": "Web nem\xE1 vlastn\xEDka (e-shop ani web).",
|
|
732
734
|
"be.storefront.someProductsNotFound": "Niektor\xE9 produkty sa nena\u0161li.",
|
|
733
735
|
"be.storefront.stockBusyRetry": "Tovar si pr\xE1ve kupuje viac \u013Eud\xED naraz, sk\xFAste to pros\xEDm znova.",
|
|
@@ -991,7 +993,8 @@ var ERROR_MESSAGES = {
|
|
|
991
993
|
"be.storefront.shippingQuoteStale": "Cart has changed since the shipping quote was issued, re-fetch shipping",
|
|
992
994
|
"be.storefront.shopMaintenance": "The shop is under maintenance. Please try again later.",
|
|
993
995
|
"be.storefront.shopNotAvailable": "Shop is not available",
|
|
994
|
-
"be.storefront.
|
|
996
|
+
"be.storefront.shopPaused": "The shop is not accepting orders right now.",
|
|
997
|
+
"be.storefront.siteKeyNotAllowed": "This website does not sell yet, so shop endpoints such as the catalog, cart and checkout are not available for its key. Add a shop to the website in Behio (site-commerce-enable) to start selling.",
|
|
995
998
|
"be.storefront.siteOwnerMissing": "The site has no owner (neither e-shop nor website)",
|
|
996
999
|
"be.storefront.someProductsNotFound": "One or more products were not found",
|
|
997
1000
|
"be.storefront.stockBusyRetry": "Many people are buying this item right now, please try again.",
|
package/dist/next.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-
|
|
1
|
+
import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-CeIGiIf2.mjs';
|
|
2
2
|
|
|
3
3
|
interface GetBehioOptions extends Partial<BehioStorefrontConfig> {
|
|
4
4
|
/** Override the cart session cookie name (default: "behio_cart_session"). */
|
package/dist/next.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-
|
|
1
|
+
import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-CeIGiIf2.js';
|
|
2
2
|
|
|
3
3
|
interface GetBehioOptions extends Partial<BehioStorefrontConfig> {
|
|
4
4
|
/** Override the cart session cookie name (default: "behio_cart_session"). */
|
package/dist/react.d.mts
CHANGED
|
@@ -236,6 +236,18 @@ interface CheckoutSettings {
|
|
|
236
236
|
/** Price presentation mode (Eshop.priceDisplay). See `CheckoutSettings.priceDisplay`. */
|
|
237
237
|
type PriceDisplay = "INCL_VAT" | "EXCL_VAT" | "CUSTOMER_CHOICE";
|
|
238
238
|
type CurrencyDisplayFormat = "SYMBOL_BEFORE" | "SYMBOL_AFTER" | "CODE";
|
|
239
|
+
/**
|
|
240
|
+
* Selling state of the site (SDK 2.18.0). `NONE` = website without a shop,
|
|
241
|
+
* `ADDED` = shop being set up (orders are accepted), `LIVE` = selling,
|
|
242
|
+
* `PAUSED` = not accepting orders right now: cart writes, checkout and gift
|
|
243
|
+
* card purchases answer 403 `be.storefront.shopPaused`. Keep the catalog
|
|
244
|
+
* visible and replace the buy buttons with a notice.
|
|
245
|
+
*/
|
|
246
|
+
interface ShopCommerce {
|
|
247
|
+
state: "NONE" | "ADDED" | "LIVE" | "PAUSED";
|
|
248
|
+
/** False for PAUSED and for a website without a shop. */
|
|
249
|
+
acceptsOrders: boolean;
|
|
250
|
+
}
|
|
239
251
|
interface ShopInfo {
|
|
240
252
|
/** Merchant default catalog order, normalized to the public sort values. */
|
|
241
253
|
defaultProductSort?: ProductSortValue;
|
|
@@ -251,6 +263,15 @@ interface ShopInfo {
|
|
|
251
263
|
enabled: boolean;
|
|
252
264
|
message: string | null;
|
|
253
265
|
};
|
|
266
|
+
/** Selling state. Optional because cached payloads predating SDK 2.18.0 may still be served; missing = accepting orders. */
|
|
267
|
+
commerce?: ShopCommerce;
|
|
268
|
+
/**
|
|
269
|
+
* IANA time zone of the site (SDK 2.19.0), e.g. "Europe/Prague". Format dates
|
|
270
|
+
* with `Intl.DateTimeFormat(locale, {timeZone})` so the server render and the
|
|
271
|
+
* browser agree (no hydration mismatch) and show the merchant's day. Optional
|
|
272
|
+
* because cached payloads predating 2.19.0 may still be served.
|
|
273
|
+
*/
|
|
274
|
+
timezone?: string;
|
|
254
275
|
id: string;
|
|
255
276
|
name: string;
|
|
256
277
|
domain: string;
|
package/dist/react.d.ts
CHANGED
|
@@ -236,6 +236,18 @@ interface CheckoutSettings {
|
|
|
236
236
|
/** Price presentation mode (Eshop.priceDisplay). See `CheckoutSettings.priceDisplay`. */
|
|
237
237
|
type PriceDisplay = "INCL_VAT" | "EXCL_VAT" | "CUSTOMER_CHOICE";
|
|
238
238
|
type CurrencyDisplayFormat = "SYMBOL_BEFORE" | "SYMBOL_AFTER" | "CODE";
|
|
239
|
+
/**
|
|
240
|
+
* Selling state of the site (SDK 2.18.0). `NONE` = website without a shop,
|
|
241
|
+
* `ADDED` = shop being set up (orders are accepted), `LIVE` = selling,
|
|
242
|
+
* `PAUSED` = not accepting orders right now: cart writes, checkout and gift
|
|
243
|
+
* card purchases answer 403 `be.storefront.shopPaused`. Keep the catalog
|
|
244
|
+
* visible and replace the buy buttons with a notice.
|
|
245
|
+
*/
|
|
246
|
+
interface ShopCommerce {
|
|
247
|
+
state: "NONE" | "ADDED" | "LIVE" | "PAUSED";
|
|
248
|
+
/** False for PAUSED and for a website without a shop. */
|
|
249
|
+
acceptsOrders: boolean;
|
|
250
|
+
}
|
|
239
251
|
interface ShopInfo {
|
|
240
252
|
/** Merchant default catalog order, normalized to the public sort values. */
|
|
241
253
|
defaultProductSort?: ProductSortValue;
|
|
@@ -251,6 +263,15 @@ interface ShopInfo {
|
|
|
251
263
|
enabled: boolean;
|
|
252
264
|
message: string | null;
|
|
253
265
|
};
|
|
266
|
+
/** Selling state. Optional because cached payloads predating SDK 2.18.0 may still be served; missing = accepting orders. */
|
|
267
|
+
commerce?: ShopCommerce;
|
|
268
|
+
/**
|
|
269
|
+
* IANA time zone of the site (SDK 2.19.0), e.g. "Europe/Prague". Format dates
|
|
270
|
+
* with `Intl.DateTimeFormat(locale, {timeZone})` so the server render and the
|
|
271
|
+
* browser agree (no hydration mismatch) and show the merchant's day. Optional
|
|
272
|
+
* because cached payloads predating 2.19.0 may still be served.
|
|
273
|
+
*/
|
|
274
|
+
timezone?: string;
|
|
254
275
|
id: string;
|
|
255
276
|
name: string;
|
|
256
277
|
domain: string;
|