@behio/storefront-sdk 2.14.1 → 2.15.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/dist/{client-DB_ve5Fp.d.mts → client-DF78Zgb0.d.mts} +18 -0
- package/dist/{client-DB_ve5Fp.d.ts → client-DF78Zgb0.d.ts} +18 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -0
- package/dist/index.mjs +6 -0
- package/dist/next.d.mts +1 -1
- package/dist/next.d.ts +1 -1
- package/dist/react.d.mts +18 -0
- package/dist/react.d.ts +18 -0
- package/package.json +1 -1
|
@@ -153,6 +153,15 @@ interface CheckoutSettings {
|
|
|
153
153
|
showLowStock: boolean;
|
|
154
154
|
/** Stock level at (and below) which the low-stock nudge shows. */
|
|
155
155
|
lowStockThreshold: number;
|
|
156
|
+
/**
|
|
157
|
+
* Cart reservations are on: pieces put into a cart are guaranteed to that
|
|
158
|
+
* cart until `CartItem.reservedUntil` and nobody else can buy them. True only
|
|
159
|
+
* when the merchant enabled it and the shop tracks stock (`stockMode`
|
|
160
|
+
* TRACKED). Render the countdown from the cart line, not from this flag.
|
|
161
|
+
*/
|
|
162
|
+
cartReservationEnabled: boolean;
|
|
163
|
+
/** Default reservation length in minutes (0 when off). A product can override it, so never compute the countdown from this number. */
|
|
164
|
+
cartReservationMinutes: number;
|
|
156
165
|
/** Google Places address autocomplete is enabled; mount the UX when true. */
|
|
157
166
|
addressAutocompleteEnabled: boolean;
|
|
158
167
|
/**
|
|
@@ -1335,6 +1344,13 @@ interface CartItem {
|
|
|
1335
1344
|
decreaseTo: number | null;
|
|
1336
1345
|
increaseTo: number | null;
|
|
1337
1346
|
};
|
|
1347
|
+
/**
|
|
1348
|
+
* Cart reservation: until this moment (epoch milliseconds) the pieces on this
|
|
1349
|
+
* line are guaranteed to this cart. Null = not reserved (reservations off,
|
|
1350
|
+
* product excluded, or already expired). Expiry is lazy, nothing is pushed
|
|
1351
|
+
* when it passes, so re-fetch the cart. Older servers omit it.
|
|
1352
|
+
*/
|
|
1353
|
+
reservedUntil?: number | null;
|
|
1338
1354
|
/**
|
|
1339
1355
|
* Eshop product ID of the sellable unit on this line. A variant is its own
|
|
1340
1356
|
* product, so this is the exact product/variant the customer added — use it
|
|
@@ -1485,6 +1501,8 @@ interface CartBundleLine {
|
|
|
1485
1501
|
decreaseTo: number | null;
|
|
1486
1502
|
increaseTo: number | null;
|
|
1487
1503
|
};
|
|
1504
|
+
/** Cart reservation end (epoch milliseconds) for this bundle line; null = not reserved or expired. Older servers omit it. */
|
|
1505
|
+
reservedUntil?: number | null;
|
|
1488
1506
|
minQuantity: number;
|
|
1489
1507
|
maxQuantity: number | null;
|
|
1490
1508
|
remainingStock: number | null;
|
|
@@ -153,6 +153,15 @@ interface CheckoutSettings {
|
|
|
153
153
|
showLowStock: boolean;
|
|
154
154
|
/** Stock level at (and below) which the low-stock nudge shows. */
|
|
155
155
|
lowStockThreshold: number;
|
|
156
|
+
/**
|
|
157
|
+
* Cart reservations are on: pieces put into a cart are guaranteed to that
|
|
158
|
+
* cart until `CartItem.reservedUntil` and nobody else can buy them. True only
|
|
159
|
+
* when the merchant enabled it and the shop tracks stock (`stockMode`
|
|
160
|
+
* TRACKED). Render the countdown from the cart line, not from this flag.
|
|
161
|
+
*/
|
|
162
|
+
cartReservationEnabled: boolean;
|
|
163
|
+
/** Default reservation length in minutes (0 when off). A product can override it, so never compute the countdown from this number. */
|
|
164
|
+
cartReservationMinutes: number;
|
|
156
165
|
/** Google Places address autocomplete is enabled; mount the UX when true. */
|
|
157
166
|
addressAutocompleteEnabled: boolean;
|
|
158
167
|
/**
|
|
@@ -1335,6 +1344,13 @@ interface CartItem {
|
|
|
1335
1344
|
decreaseTo: number | null;
|
|
1336
1345
|
increaseTo: number | null;
|
|
1337
1346
|
};
|
|
1347
|
+
/**
|
|
1348
|
+
* Cart reservation: until this moment (epoch milliseconds) the pieces on this
|
|
1349
|
+
* line are guaranteed to this cart. Null = not reserved (reservations off,
|
|
1350
|
+
* product excluded, or already expired). Expiry is lazy, nothing is pushed
|
|
1351
|
+
* when it passes, so re-fetch the cart. Older servers omit it.
|
|
1352
|
+
*/
|
|
1353
|
+
reservedUntil?: number | null;
|
|
1338
1354
|
/**
|
|
1339
1355
|
* Eshop product ID of the sellable unit on this line. A variant is its own
|
|
1340
1356
|
* product, so this is the exact product/variant the customer added — use it
|
|
@@ -1485,6 +1501,8 @@ interface CartBundleLine {
|
|
|
1485
1501
|
decreaseTo: number | null;
|
|
1486
1502
|
increaseTo: number | null;
|
|
1487
1503
|
};
|
|
1504
|
+
/** Cart reservation end (epoch milliseconds) for this bundle line; null = not reserved or expired. Older servers omit it. */
|
|
1505
|
+
reservedUntil?: number | null;
|
|
1488
1506
|
minQuantity: number;
|
|
1489
1507
|
maxQuantity: number | null;
|
|
1490
1508
|
remainingStock: number | null;
|
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 ShippingQuote, bY as ShippingQuoteInput, bZ as ShopAppearance, b_ as ShopInfo, b$ as ShopScript, c0 as ShopScriptPlacement, c1 as ShopScriptType, c2 as ShopScripts, c3 as ShopSeo, c4 as ShopSeoIdentity, c5 as SiteFormField, c6 as SiteFormFieldOption, c7 as SiteFormFieldType, c8 as Sitemap, c9 as SitemapEntry, ca as StockBehavior, cb as StockMode, cc as StorefrontForm, cd as StorefrontFormFieldErrorCode, ce as StorefrontFormFile, cf as StorefrontFormSettings, cg as StorefrontFormSubmitInput, ch as StorefrontFormSubmitResult, ci as StorefrontFormUpload, cj as SubmitQuoteInput, ck as SubmitReturnInput, cl as SubmitReviewInput, cm as Subscription, cn as SubscriptionAction, co as SubscriptionFrequency, cp as SubscriptionItem, cq as SubscriptionStatus, cr as TaxBreakdownLine, cs as VariantAxis, ct as VariantAxisValue, cu as WishlistItem, cv as clearCartSummary, cw as err, cx as ok, cy as publishCartSummary, cz as toSdkError } from './client-
|
|
1
|
+
import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-DF78Zgb0.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 ShippingQuote, bY as ShippingQuoteInput, bZ as ShopAppearance, b_ as ShopInfo, b$ as ShopScript, c0 as ShopScriptPlacement, c1 as ShopScriptType, c2 as ShopScripts, c3 as ShopSeo, c4 as ShopSeoIdentity, c5 as SiteFormField, c6 as SiteFormFieldOption, c7 as SiteFormFieldType, c8 as Sitemap, c9 as SitemapEntry, ca as StockBehavior, cb as StockMode, cc as StorefrontForm, cd as StorefrontFormFieldErrorCode, ce as StorefrontFormFile, cf as StorefrontFormSettings, cg as StorefrontFormSubmitInput, ch as StorefrontFormSubmitResult, ci as StorefrontFormUpload, cj as SubmitQuoteInput, ck as SubmitReturnInput, cl as SubmitReviewInput, cm as Subscription, cn as SubscriptionAction, co as SubscriptionFrequency, cp as SubscriptionItem, cq as SubscriptionStatus, cr as TaxBreakdownLine, cs as VariantAxis, ct as VariantAxisValue, cu as WishlistItem, cv as clearCartSummary, cw as err, cx as ok, cy as publishCartSummary, cz as toSdkError } from './client-DF78Zgb0.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 ShippingQuote, bY as ShippingQuoteInput, bZ as ShopAppearance, b_ as ShopInfo, b$ as ShopScript, c0 as ShopScriptPlacement, c1 as ShopScriptType, c2 as ShopScripts, c3 as ShopSeo, c4 as ShopSeoIdentity, c5 as SiteFormField, c6 as SiteFormFieldOption, c7 as SiteFormFieldType, c8 as Sitemap, c9 as SitemapEntry, ca as StockBehavior, cb as StockMode, cc as StorefrontForm, cd as StorefrontFormFieldErrorCode, ce as StorefrontFormFile, cf as StorefrontFormSettings, cg as StorefrontFormSubmitInput, ch as StorefrontFormSubmitResult, ci as StorefrontFormUpload, cj as SubmitQuoteInput, ck as SubmitReturnInput, cl as SubmitReviewInput, cm as Subscription, cn as SubscriptionAction, co as SubscriptionFrequency, cp as SubscriptionItem, cq as SubscriptionStatus, cr as TaxBreakdownLine, cs as VariantAxis, ct as VariantAxisValue, cu as WishlistItem, cv as clearCartSummary, cw as err, cx as ok, cy as publishCartSummary, cz as toSdkError } from './client-
|
|
1
|
+
import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-DF78Zgb0.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 ShippingQuote, bY as ShippingQuoteInput, bZ as ShopAppearance, b_ as ShopInfo, b$ as ShopScript, c0 as ShopScriptPlacement, c1 as ShopScriptType, c2 as ShopScripts, c3 as ShopSeo, c4 as ShopSeoIdentity, c5 as SiteFormField, c6 as SiteFormFieldOption, c7 as SiteFormFieldType, c8 as Sitemap, c9 as SitemapEntry, ca as StockBehavior, cb as StockMode, cc as StorefrontForm, cd as StorefrontFormFieldErrorCode, ce as StorefrontFormFile, cf as StorefrontFormSettings, cg as StorefrontFormSubmitInput, ch as StorefrontFormSubmitResult, ci as StorefrontFormUpload, cj as SubmitQuoteInput, ck as SubmitReturnInput, cl as SubmitReviewInput, cm as Subscription, cn as SubscriptionAction, co as SubscriptionFrequency, cp as SubscriptionItem, cq as SubscriptionStatus, cr as TaxBreakdownLine, cs as VariantAxis, ct as VariantAxisValue, cu as WishlistItem, cv as clearCartSummary, cw as err, cx as ok, cy as publishCartSummary, cz as toSdkError } from './client-DF78Zgb0.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Format a price amount with currency using Intl.NumberFormat.
|
package/dist/index.js
CHANGED
|
@@ -464,6 +464,8 @@ var ERROR_MESSAGES = {
|
|
|
464
464
|
"be.storefront.siteKeyNotAllowed": "Tento kl\xED\u010D pat\u0159\xED webu bez napojen\xE9ho e-shopu, obchodn\xED endpointy pro n\u011Bj nejsou dostupn\xE9.",
|
|
465
465
|
"be.storefront.siteOwnerMissing": "Web nem\xE1 vlastn\xEDka (e-shop ani web).",
|
|
466
466
|
"be.storefront.someProductsNotFound": "N\u011Bkter\xE9 produkty nebyly nalezeny.",
|
|
467
|
+
"be.storefront.stockBusyRetry": "Zbo\u017E\xED si pr\xE1v\u011B kupuje v\xEDc lid\xED najednou, zkuste to pros\xEDm znovu.",
|
|
468
|
+
"be.storefront.stockReservedByOthers": "Zb\xFDvaj\xEDc\xED kusy produktu {name} m\xE1 pr\xE1v\u011B v ko\u0161\xEDku n\u011Bkdo jin\xFD. Zkuste to pros\xEDm za chv\xEDli.",
|
|
467
469
|
"be.storefront.stripeConnectFailed": "Stripe nevr\xE1til propojen\xFD \xFA\u010Det.",
|
|
468
470
|
"be.storefront.stripeConnectNotConfigured": "Stripe Connect nen\xED na serveru nastaven\xFD.",
|
|
469
471
|
"be.storefront.stripeMethodNotFound": "Platebn\xED metoda Stripe nenalezena.",
|
|
@@ -724,6 +726,8 @@ var ERROR_MESSAGES = {
|
|
|
724
726
|
"be.storefront.siteKeyNotAllowed": "Tento k\u013E\xFA\u010D patr\xED webu bez napojen\xE9ho e-shopu, obchodn\xE9 endpointy pre\u0148 nie s\xFA dostupn\xE9.",
|
|
725
727
|
"be.storefront.siteOwnerMissing": "Web nem\xE1 vlastn\xEDka (e-shop ani web).",
|
|
726
728
|
"be.storefront.someProductsNotFound": "Niektor\xE9 produkty sa nena\u0161li.",
|
|
729
|
+
"be.storefront.stockBusyRetry": "Tovar si pr\xE1ve kupuje viac \u013Eud\xED naraz, sk\xFAste to pros\xEDm znova.",
|
|
730
|
+
"be.storefront.stockReservedByOthers": "Zost\xE1vaj\xFAce kusy produktu {name} m\xE1 pr\xE1ve v ko\u0161\xEDku niekto in\xFD. Sk\xFAste to pros\xEDm o chv\xED\u013Eu.",
|
|
727
731
|
"be.storefront.stripeConnectFailed": "Stripe nevr\xE1til prepojen\xFD \xFA\u010Det.",
|
|
728
732
|
"be.storefront.stripeConnectNotConfigured": "Stripe Connect nie je na serveri nastaven\xFD.",
|
|
729
733
|
"be.storefront.stripeMethodNotFound": "Platobn\xE1 met\xF3da Stripe sa nena\u0161la.",
|
|
@@ -984,6 +988,8 @@ var ERROR_MESSAGES = {
|
|
|
984
988
|
"be.storefront.siteKeyNotAllowed": "This key belongs to a website without a linked e-shop, commerce endpoints are not available for it",
|
|
985
989
|
"be.storefront.siteOwnerMissing": "The site has no owner (neither e-shop nor website)",
|
|
986
990
|
"be.storefront.someProductsNotFound": "One or more products were not found",
|
|
991
|
+
"be.storefront.stockBusyRetry": "Many people are buying this item right now, please try again.",
|
|
992
|
+
"be.storefront.stockReservedByOthers": "The remaining pieces of {name} are currently reserved in someone else's cart. Please try again in a moment.",
|
|
987
993
|
"be.storefront.stripeConnectFailed": "Stripe did not return a connected account",
|
|
988
994
|
"be.storefront.stripeConnectNotConfigured": "Stripe Connect is not configured on the server",
|
|
989
995
|
"be.storefront.stripeMethodNotFound": "Stripe payment method not found",
|
package/dist/index.mjs
CHANGED
|
@@ -464,6 +464,8 @@ var ERROR_MESSAGES = {
|
|
|
464
464
|
"be.storefront.siteKeyNotAllowed": "Tento kl\xED\u010D pat\u0159\xED webu bez napojen\xE9ho e-shopu, obchodn\xED endpointy pro n\u011Bj nejsou dostupn\xE9.",
|
|
465
465
|
"be.storefront.siteOwnerMissing": "Web nem\xE1 vlastn\xEDka (e-shop ani web).",
|
|
466
466
|
"be.storefront.someProductsNotFound": "N\u011Bkter\xE9 produkty nebyly nalezeny.",
|
|
467
|
+
"be.storefront.stockBusyRetry": "Zbo\u017E\xED si pr\xE1v\u011B kupuje v\xEDc lid\xED najednou, zkuste to pros\xEDm znovu.",
|
|
468
|
+
"be.storefront.stockReservedByOthers": "Zb\xFDvaj\xEDc\xED kusy produktu {name} m\xE1 pr\xE1v\u011B v ko\u0161\xEDku n\u011Bkdo jin\xFD. Zkuste to pros\xEDm za chv\xEDli.",
|
|
467
469
|
"be.storefront.stripeConnectFailed": "Stripe nevr\xE1til propojen\xFD \xFA\u010Det.",
|
|
468
470
|
"be.storefront.stripeConnectNotConfigured": "Stripe Connect nen\xED na serveru nastaven\xFD.",
|
|
469
471
|
"be.storefront.stripeMethodNotFound": "Platebn\xED metoda Stripe nenalezena.",
|
|
@@ -724,6 +726,8 @@ var ERROR_MESSAGES = {
|
|
|
724
726
|
"be.storefront.siteKeyNotAllowed": "Tento k\u013E\xFA\u010D patr\xED webu bez napojen\xE9ho e-shopu, obchodn\xE9 endpointy pre\u0148 nie s\xFA dostupn\xE9.",
|
|
725
727
|
"be.storefront.siteOwnerMissing": "Web nem\xE1 vlastn\xEDka (e-shop ani web).",
|
|
726
728
|
"be.storefront.someProductsNotFound": "Niektor\xE9 produkty sa nena\u0161li.",
|
|
729
|
+
"be.storefront.stockBusyRetry": "Tovar si pr\xE1ve kupuje viac \u013Eud\xED naraz, sk\xFAste to pros\xEDm znova.",
|
|
730
|
+
"be.storefront.stockReservedByOthers": "Zost\xE1vaj\xFAce kusy produktu {name} m\xE1 pr\xE1ve v ko\u0161\xEDku niekto in\xFD. Sk\xFAste to pros\xEDm o chv\xED\u013Eu.",
|
|
727
731
|
"be.storefront.stripeConnectFailed": "Stripe nevr\xE1til prepojen\xFD \xFA\u010Det.",
|
|
728
732
|
"be.storefront.stripeConnectNotConfigured": "Stripe Connect nie je na serveri nastaven\xFD.",
|
|
729
733
|
"be.storefront.stripeMethodNotFound": "Platobn\xE1 met\xF3da Stripe sa nena\u0161la.",
|
|
@@ -984,6 +988,8 @@ var ERROR_MESSAGES = {
|
|
|
984
988
|
"be.storefront.siteKeyNotAllowed": "This key belongs to a website without a linked e-shop, commerce endpoints are not available for it",
|
|
985
989
|
"be.storefront.siteOwnerMissing": "The site has no owner (neither e-shop nor website)",
|
|
986
990
|
"be.storefront.someProductsNotFound": "One or more products were not found",
|
|
991
|
+
"be.storefront.stockBusyRetry": "Many people are buying this item right now, please try again.",
|
|
992
|
+
"be.storefront.stockReservedByOthers": "The remaining pieces of {name} are currently reserved in someone else's cart. Please try again in a moment.",
|
|
987
993
|
"be.storefront.stripeConnectFailed": "Stripe did not return a connected account",
|
|
988
994
|
"be.storefront.stripeConnectNotConfigured": "Stripe Connect is not configured on the server",
|
|
989
995
|
"be.storefront.stripeMethodNotFound": "Stripe payment method not found",
|
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-DF78Zgb0.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-DF78Zgb0.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
|
@@ -209,6 +209,15 @@ interface CheckoutSettings {
|
|
|
209
209
|
showLowStock: boolean;
|
|
210
210
|
/** Stock level at (and below) which the low-stock nudge shows. */
|
|
211
211
|
lowStockThreshold: number;
|
|
212
|
+
/**
|
|
213
|
+
* Cart reservations are on: pieces put into a cart are guaranteed to that
|
|
214
|
+
* cart until `CartItem.reservedUntil` and nobody else can buy them. True only
|
|
215
|
+
* when the merchant enabled it and the shop tracks stock (`stockMode`
|
|
216
|
+
* TRACKED). Render the countdown from the cart line, not from this flag.
|
|
217
|
+
*/
|
|
218
|
+
cartReservationEnabled: boolean;
|
|
219
|
+
/** Default reservation length in minutes (0 when off). A product can override it, so never compute the countdown from this number. */
|
|
220
|
+
cartReservationMinutes: number;
|
|
212
221
|
/** Google Places address autocomplete is enabled; mount the UX when true. */
|
|
213
222
|
addressAutocompleteEnabled: boolean;
|
|
214
223
|
/**
|
|
@@ -1391,6 +1400,13 @@ interface CartItem {
|
|
|
1391
1400
|
decreaseTo: number | null;
|
|
1392
1401
|
increaseTo: number | null;
|
|
1393
1402
|
};
|
|
1403
|
+
/**
|
|
1404
|
+
* Cart reservation: until this moment (epoch milliseconds) the pieces on this
|
|
1405
|
+
* line are guaranteed to this cart. Null = not reserved (reservations off,
|
|
1406
|
+
* product excluded, or already expired). Expiry is lazy, nothing is pushed
|
|
1407
|
+
* when it passes, so re-fetch the cart. Older servers omit it.
|
|
1408
|
+
*/
|
|
1409
|
+
reservedUntil?: number | null;
|
|
1394
1410
|
/**
|
|
1395
1411
|
* Eshop product ID of the sellable unit on this line. A variant is its own
|
|
1396
1412
|
* product, so this is the exact product/variant the customer added — use it
|
|
@@ -1541,6 +1557,8 @@ interface CartBundleLine {
|
|
|
1541
1557
|
decreaseTo: number | null;
|
|
1542
1558
|
increaseTo: number | null;
|
|
1543
1559
|
};
|
|
1560
|
+
/** Cart reservation end (epoch milliseconds) for this bundle line; null = not reserved or expired. Older servers omit it. */
|
|
1561
|
+
reservedUntil?: number | null;
|
|
1544
1562
|
minQuantity: number;
|
|
1545
1563
|
maxQuantity: number | null;
|
|
1546
1564
|
remainingStock: number | null;
|
package/dist/react.d.ts
CHANGED
|
@@ -209,6 +209,15 @@ interface CheckoutSettings {
|
|
|
209
209
|
showLowStock: boolean;
|
|
210
210
|
/** Stock level at (and below) which the low-stock nudge shows. */
|
|
211
211
|
lowStockThreshold: number;
|
|
212
|
+
/**
|
|
213
|
+
* Cart reservations are on: pieces put into a cart are guaranteed to that
|
|
214
|
+
* cart until `CartItem.reservedUntil` and nobody else can buy them. True only
|
|
215
|
+
* when the merchant enabled it and the shop tracks stock (`stockMode`
|
|
216
|
+
* TRACKED). Render the countdown from the cart line, not from this flag.
|
|
217
|
+
*/
|
|
218
|
+
cartReservationEnabled: boolean;
|
|
219
|
+
/** Default reservation length in minutes (0 when off). A product can override it, so never compute the countdown from this number. */
|
|
220
|
+
cartReservationMinutes: number;
|
|
212
221
|
/** Google Places address autocomplete is enabled; mount the UX when true. */
|
|
213
222
|
addressAutocompleteEnabled: boolean;
|
|
214
223
|
/**
|
|
@@ -1391,6 +1400,13 @@ interface CartItem {
|
|
|
1391
1400
|
decreaseTo: number | null;
|
|
1392
1401
|
increaseTo: number | null;
|
|
1393
1402
|
};
|
|
1403
|
+
/**
|
|
1404
|
+
* Cart reservation: until this moment (epoch milliseconds) the pieces on this
|
|
1405
|
+
* line are guaranteed to this cart. Null = not reserved (reservations off,
|
|
1406
|
+
* product excluded, or already expired). Expiry is lazy, nothing is pushed
|
|
1407
|
+
* when it passes, so re-fetch the cart. Older servers omit it.
|
|
1408
|
+
*/
|
|
1409
|
+
reservedUntil?: number | null;
|
|
1394
1410
|
/**
|
|
1395
1411
|
* Eshop product ID of the sellable unit on this line. A variant is its own
|
|
1396
1412
|
* product, so this is the exact product/variant the customer added — use it
|
|
@@ -1541,6 +1557,8 @@ interface CartBundleLine {
|
|
|
1541
1557
|
decreaseTo: number | null;
|
|
1542
1558
|
increaseTo: number | null;
|
|
1543
1559
|
};
|
|
1560
|
+
/** Cart reservation end (epoch milliseconds) for this bundle line; null = not reserved or expired. Older servers omit it. */
|
|
1561
|
+
reservedUntil?: number | null;
|
|
1544
1562
|
minQuantity: number;
|
|
1545
1563
|
maxQuantity: number | null;
|
|
1546
1564
|
remainingStock: number | null;
|