@behio/storefront-sdk 2.25.1 → 2.26.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-Btc3Nduh.d.mts → client-BuL50_BZ.d.mts} +6 -0
- package/dist/{client-Btc3Nduh.d.ts → client-BuL50_BZ.d.ts} +6 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/dist/next.d.mts +1 -1
- package/dist/next.d.ts +1 -1
- package/dist/react.d.mts +7 -0
- package/dist/react.d.ts +7 -0
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/package.json +1 -1
|
@@ -3104,6 +3104,12 @@ interface ProductReviewsResponse {
|
|
|
3104
3104
|
limit: number;
|
|
3105
3105
|
averageRating: number;
|
|
3106
3106
|
reviewCount: number;
|
|
3107
|
+
/** Available on backends with purchaser-only review moderation. */
|
|
3108
|
+
submission?: {
|
|
3109
|
+
requiresVerifiedPurchase: boolean;
|
|
3110
|
+
canSubmit: boolean;
|
|
3111
|
+
reason: "LOGIN_REQUIRED" | "PURCHASE_REQUIRED" | "ALREADY_REVIEWED" | null;
|
|
3112
|
+
};
|
|
3107
3113
|
}
|
|
3108
3114
|
/** Returned by `catalog.notifyWhenAvailable()` — back-in-stock subscription. */
|
|
3109
3115
|
interface BackInStockSubscription {
|
|
@@ -3104,6 +3104,12 @@ interface ProductReviewsResponse {
|
|
|
3104
3104
|
limit: number;
|
|
3105
3105
|
averageRating: number;
|
|
3106
3106
|
reviewCount: number;
|
|
3107
|
+
/** Available on backends with purchaser-only review moderation. */
|
|
3108
|
+
submission?: {
|
|
3109
|
+
requiresVerifiedPurchase: boolean;
|
|
3110
|
+
canSubmit: boolean;
|
|
3111
|
+
reason: "LOGIN_REQUIRED" | "PURCHASE_REQUIRED" | "ALREADY_REVIEWED" | null;
|
|
3112
|
+
};
|
|
3107
3113
|
}
|
|
3108
3114
|
/** Returned by `catalog.notifyWhenAvailable()` — back-in-stock subscription. */
|
|
3109
3115
|
interface BackInStockSubscription {
|
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 Booking, y as BookingCategory, z as BookingConfig, D as BookingCreateInput, E as BookingCreated, F as BookingLocale, G as BookingLocation, H as BookingManageSlotsQuery, I as BookingService, J as BookingSlot, K as BookingSlots, L as BookingSlotsQuery, M as BookingStaff, N as BookingStatus, O as Bundle, Q as BundleCatalogQuery, R as BundleItem, T as Cart, U as CartBundleLine, V as CartBundleLineItem, W as CartDiscount, X as CartItem, Y as CartItemProduct, Z as CartLinkClaimed, _ as CartPromotion, $ as CartSummaryEvent, a0 as Category, a1 as CategoryDetail, a2 as CertificateVerification, a3 as CheckoutAddress, a4 as CheckoutInput, a5 as CheckoutPaymentMethod, a6 as CheckoutPreview, a7 as CheckoutResult, a8 as CheckoutSettings, a9 as CookieConsentInput, aa as CourseAttachment, ab as CourseCertificate, ac as CourseComment, ad as CourseCommentReply, ae as CourseCommentsList, af as CourseDetail, ag as CourseLesson, ah as CourseListItem, ai as CourseModule, aj as CoursePostedComment, ak as CourseProgress, al as CourseTutorMessage, am as CourseTutorThread, an as CrossSellItem, ao as CurrencyDisplayFormat, ap as CustomerAddress, aq as CustomerBadge, ar as CustomerChallenge, as as CustomerGamification, at as CustomerGamificationQuery, au as CustomerProfile, av as DigitalDownload, aw as DownloadUrl, ax as Facet, ay as FacetAvailability, az as FacetCategory, aA as FacetLabel, aB as FacetPriceRange, aC as FacetRange, aD as FacetRatingBucket, aE as FacetValue, aF as FacetsResponse, aG as FilterField, aH as FulfillmentStatus, aI as FulfillmentStatuses, aJ as GamificationRefreshResult, aK as GiftCardBalance, aL as GiftCardPurchaseInput, aM as GiftCardPurchaseResult, aN as GiftCardSummary, aO as LessonNote, aP as LessonQuiz, aQ as LoginInput, aR as LoyaltyBalance, aS as LoyaltyNextTier, aT as LoyaltyProgram, aU as LoyaltyQuery, aV as LoyaltyReferralResult, aW as LoyaltySummary, aX as LoyaltyTier, aY as LoyaltyTierPerks, aZ as LoyaltyTransaction, a_ as Menu, a$ as MenuItem, b0 as MenuItemRef, b1 as MenuItemType, b2 as MessageResponse, b3 as NewsletterOptInDefault, b4 as NewsletterSubscribeInput, b5 as NewsletterSubscribeResult, b6 as NewsletterUnsubscribeResult, b7 as OrderAccessRequestResponse, b8 as OrderAccessVerifyResponse, b9 as OrderDetail, ba as OrderDiscount, bb as OrderDocument, bc as OrderItem, bd as OrderListItem, be as OrderPaymentInstructions, bf as OrderPickupPoint, bg as OrderShipment, bh as OrderStatus, bi as OrderStatusHistory, bj as OrderStatuses, bk as OrderTracking, bl as Page, bm as PageAttachment, bn as PageDetail, bo as PaginatedResponse, bp as PaymentInstrument, bq as PaymentStatus, br as PaymentStatuses, bs as PaymentSwift, bt as PickupPoint, bu as PickupPointHours, bv as PickupPointsInput, bw as PickupWidgetConfig, bx as PriceDisplay, by as ProductAssetGroup, bz as ProductAssetItem, bA as ProductAvailability, bB as ProductGroup, bC as ProductLabel, bD as ProductListItem, bE as ProductMedia, bF as ProductMediaVariant, bG as ProductParameter, bH as ProductParameterGroup, bI as ProductParametersResponse, bJ as ProductPrice, bK as ProductPromotionSummary, bL as ProductReview, bM as ProductReviewsResponse, bN as ProductSibling, bO as ProductSort, bP as ProductSortValue, bQ as ProductVolumePrice, bR as ProductsQuery, bS as QuizAnswerInput, bT as QuizAnswerResult, bU as QuizQuestion, bV as QuizResult, bW as QuoteItem, bX as QuoteRequest, bY as RegisterInput, bZ as RegisterResult, b_ as RequestInterceptor, b$ as RequestInterceptorConfig, c0 as ResponseInterceptor, c1 as ResponseInterceptorData, c2 as ReturnRequest, c3 as ReturnRequestItem, c4 as ReturnStatus, c5 as ReturnStatusItem, c6 as ReturnableOrder, c7 as ReturnableOrderItem, c8 as SdkError, c9 as ShippingMethodSummary, ca as ShippingPublicConfig, cb as ShippingQuote, cc as ShippingQuoteInput, cd as ShopAppearance, ce as ShopCommerce, cf as ShopInfo, cg as ShopScript, ch as ShopScriptPlacement, ci as ShopScriptType, cj as ShopScripts, ck as ShopSeo, cl as ShopSeoIdentity, cm as SiteFormField, cn as SiteFormFieldOption, co as SiteFormFieldType, cp as Sitemap, cq as SitemapEntry, cr as StockBehavior, cs as StockMode, ct as StorefrontCollection, cu as StorefrontCollectionField, cv as StorefrontCollectionFieldType, cw as StorefrontCollectionItem, cx as StorefrontCollectionQuery, cy as StorefrontFaqGroup, cz as StorefrontFaqGroupSummary, cA as StorefrontFaqGroups, cB as StorefrontFaqItem, cC as StorefrontFaqQuery, cD as StorefrontForm, cE as StorefrontFormFieldErrorCode, cF as StorefrontFormFile, cG as StorefrontFormSettings, cH as StorefrontFormSubmitInput, cI as StorefrontFormSubmitResult, cJ as StorefrontFormUpload, cK as SubmitQuoteInput, cL as SubmitReturnInput, cM as SubmitReviewInput, cN as SubmitWithdrawalInput, cO as Subscription, cP as SubscriptionAction, cQ as SubscriptionFrequency, cR as SubscriptionItem, cS as SubscriptionStatus, cT as TaxBreakdownLine, cU as VariantAxis, cV as VariantAxisValue, cW as WishlistItem, cX as WithdrawalAcknowledgement, cY as WithdrawalFlag, cZ as WithdrawalSettings, c_ as WithdrawalWindow, c$ as clearCartSummary, d0 as err, d1 as ok, d2 as publishCartSummary, d3 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-BuL50_BZ.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 Booking, y as BookingCategory, z as BookingConfig, D as BookingCreateInput, E as BookingCreated, F as BookingLocale, G as BookingLocation, H as BookingManageSlotsQuery, I as BookingService, J as BookingSlot, K as BookingSlots, L as BookingSlotsQuery, M as BookingStaff, N as BookingStatus, O as Bundle, Q as BundleCatalogQuery, R as BundleItem, T as Cart, U as CartBundleLine, V as CartBundleLineItem, W as CartDiscount, X as CartItem, Y as CartItemProduct, Z as CartLinkClaimed, _ as CartPromotion, $ as CartSummaryEvent, a0 as Category, a1 as CategoryDetail, a2 as CertificateVerification, a3 as CheckoutAddress, a4 as CheckoutInput, a5 as CheckoutPaymentMethod, a6 as CheckoutPreview, a7 as CheckoutResult, a8 as CheckoutSettings, a9 as CookieConsentInput, aa as CourseAttachment, ab as CourseCertificate, ac as CourseComment, ad as CourseCommentReply, ae as CourseCommentsList, af as CourseDetail, ag as CourseLesson, ah as CourseListItem, ai as CourseModule, aj as CoursePostedComment, ak as CourseProgress, al as CourseTutorMessage, am as CourseTutorThread, an as CrossSellItem, ao as CurrencyDisplayFormat, ap as CustomerAddress, aq as CustomerBadge, ar as CustomerChallenge, as as CustomerGamification, at as CustomerGamificationQuery, au as CustomerProfile, av as DigitalDownload, aw as DownloadUrl, ax as Facet, ay as FacetAvailability, az as FacetCategory, aA as FacetLabel, aB as FacetPriceRange, aC as FacetRange, aD as FacetRatingBucket, aE as FacetValue, aF as FacetsResponse, aG as FilterField, aH as FulfillmentStatus, aI as FulfillmentStatuses, aJ as GamificationRefreshResult, aK as GiftCardBalance, aL as GiftCardPurchaseInput, aM as GiftCardPurchaseResult, aN as GiftCardSummary, aO as LessonNote, aP as LessonQuiz, aQ as LoginInput, aR as LoyaltyBalance, aS as LoyaltyNextTier, aT as LoyaltyProgram, aU as LoyaltyQuery, aV as LoyaltyReferralResult, aW as LoyaltySummary, aX as LoyaltyTier, aY as LoyaltyTierPerks, aZ as LoyaltyTransaction, a_ as Menu, a$ as MenuItem, b0 as MenuItemRef, b1 as MenuItemType, b2 as MessageResponse, b3 as NewsletterOptInDefault, b4 as NewsletterSubscribeInput, b5 as NewsletterSubscribeResult, b6 as NewsletterUnsubscribeResult, b7 as OrderAccessRequestResponse, b8 as OrderAccessVerifyResponse, b9 as OrderDetail, ba as OrderDiscount, bb as OrderDocument, bc as OrderItem, bd as OrderListItem, be as OrderPaymentInstructions, bf as OrderPickupPoint, bg as OrderShipment, bh as OrderStatus, bi as OrderStatusHistory, bj as OrderStatuses, bk as OrderTracking, bl as Page, bm as PageAttachment, bn as PageDetail, bo as PaginatedResponse, bp as PaymentInstrument, bq as PaymentStatus, br as PaymentStatuses, bs as PaymentSwift, bt as PickupPoint, bu as PickupPointHours, bv as PickupPointsInput, bw as PickupWidgetConfig, bx as PriceDisplay, by as ProductAssetGroup, bz as ProductAssetItem, bA as ProductAvailability, bB as ProductGroup, bC as ProductLabel, bD as ProductListItem, bE as ProductMedia, bF as ProductMediaVariant, bG as ProductParameter, bH as ProductParameterGroup, bI as ProductParametersResponse, bJ as ProductPrice, bK as ProductPromotionSummary, bL as ProductReview, bM as ProductReviewsResponse, bN as ProductSibling, bO as ProductSort, bP as ProductSortValue, bQ as ProductVolumePrice, bR as ProductsQuery, bS as QuizAnswerInput, bT as QuizAnswerResult, bU as QuizQuestion, bV as QuizResult, bW as QuoteItem, bX as QuoteRequest, bY as RegisterInput, bZ as RegisterResult, b_ as RequestInterceptor, b$ as RequestInterceptorConfig, c0 as ResponseInterceptor, c1 as ResponseInterceptorData, c2 as ReturnRequest, c3 as ReturnRequestItem, c4 as ReturnStatus, c5 as ReturnStatusItem, c6 as ReturnableOrder, c7 as ReturnableOrderItem, c8 as SdkError, c9 as ShippingMethodSummary, ca as ShippingPublicConfig, cb as ShippingQuote, cc as ShippingQuoteInput, cd as ShopAppearance, ce as ShopCommerce, cf as ShopInfo, cg as ShopScript, ch as ShopScriptPlacement, ci as ShopScriptType, cj as ShopScripts, ck as ShopSeo, cl as ShopSeoIdentity, cm as SiteFormField, cn as SiteFormFieldOption, co as SiteFormFieldType, cp as Sitemap, cq as SitemapEntry, cr as StockBehavior, cs as StockMode, ct as StorefrontCollection, cu as StorefrontCollectionField, cv as StorefrontCollectionFieldType, cw as StorefrontCollectionItem, cx as StorefrontCollectionQuery, cy as StorefrontFaqGroup, cz as StorefrontFaqGroupSummary, cA as StorefrontFaqGroups, cB as StorefrontFaqItem, cC as StorefrontFaqQuery, cD as StorefrontForm, cE as StorefrontFormFieldErrorCode, cF as StorefrontFormFile, cG as StorefrontFormSettings, cH as StorefrontFormSubmitInput, cI as StorefrontFormSubmitResult, cJ as StorefrontFormUpload, cK as SubmitQuoteInput, cL as SubmitReturnInput, cM as SubmitReviewInput, cN as SubmitWithdrawalInput, cO as Subscription, cP as SubscriptionAction, cQ as SubscriptionFrequency, cR as SubscriptionItem, cS as SubscriptionStatus, cT as TaxBreakdownLine, cU as VariantAxis, cV as VariantAxisValue, cW as WishlistItem, cX as WithdrawalAcknowledgement, cY as WithdrawalFlag, cZ as WithdrawalSettings, c_ as WithdrawalWindow, c$ as clearCartSummary, d0 as err, d1 as ok, d2 as publishCartSummary, d3 as toSdkError } from './client-BuL50_BZ.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 Booking, y as BookingCategory, z as BookingConfig, D as BookingCreateInput, E as BookingCreated, F as BookingLocale, G as BookingLocation, H as BookingManageSlotsQuery, I as BookingService, J as BookingSlot, K as BookingSlots, L as BookingSlotsQuery, M as BookingStaff, N as BookingStatus, O as Bundle, Q as BundleCatalogQuery, R as BundleItem, T as Cart, U as CartBundleLine, V as CartBundleLineItem, W as CartDiscount, X as CartItem, Y as CartItemProduct, Z as CartLinkClaimed, _ as CartPromotion, $ as CartSummaryEvent, a0 as Category, a1 as CategoryDetail, a2 as CertificateVerification, a3 as CheckoutAddress, a4 as CheckoutInput, a5 as CheckoutPaymentMethod, a6 as CheckoutPreview, a7 as CheckoutResult, a8 as CheckoutSettings, a9 as CookieConsentInput, aa as CourseAttachment, ab as CourseCertificate, ac as CourseComment, ad as CourseCommentReply, ae as CourseCommentsList, af as CourseDetail, ag as CourseLesson, ah as CourseListItem, ai as CourseModule, aj as CoursePostedComment, ak as CourseProgress, al as CourseTutorMessage, am as CourseTutorThread, an as CrossSellItem, ao as CurrencyDisplayFormat, ap as CustomerAddress, aq as CustomerBadge, ar as CustomerChallenge, as as CustomerGamification, at as CustomerGamificationQuery, au as CustomerProfile, av as DigitalDownload, aw as DownloadUrl, ax as Facet, ay as FacetAvailability, az as FacetCategory, aA as FacetLabel, aB as FacetPriceRange, aC as FacetRange, aD as FacetRatingBucket, aE as FacetValue, aF as FacetsResponse, aG as FilterField, aH as FulfillmentStatus, aI as FulfillmentStatuses, aJ as GamificationRefreshResult, aK as GiftCardBalance, aL as GiftCardPurchaseInput, aM as GiftCardPurchaseResult, aN as GiftCardSummary, aO as LessonNote, aP as LessonQuiz, aQ as LoginInput, aR as LoyaltyBalance, aS as LoyaltyNextTier, aT as LoyaltyProgram, aU as LoyaltyQuery, aV as LoyaltyReferralResult, aW as LoyaltySummary, aX as LoyaltyTier, aY as LoyaltyTierPerks, aZ as LoyaltyTransaction, a_ as Menu, a$ as MenuItem, b0 as MenuItemRef, b1 as MenuItemType, b2 as MessageResponse, b3 as NewsletterOptInDefault, b4 as NewsletterSubscribeInput, b5 as NewsletterSubscribeResult, b6 as NewsletterUnsubscribeResult, b7 as OrderAccessRequestResponse, b8 as OrderAccessVerifyResponse, b9 as OrderDetail, ba as OrderDiscount, bb as OrderDocument, bc as OrderItem, bd as OrderListItem, be as OrderPaymentInstructions, bf as OrderPickupPoint, bg as OrderShipment, bh as OrderStatus, bi as OrderStatusHistory, bj as OrderStatuses, bk as OrderTracking, bl as Page, bm as PageAttachment, bn as PageDetail, bo as PaginatedResponse, bp as PaymentInstrument, bq as PaymentStatus, br as PaymentStatuses, bs as PaymentSwift, bt as PickupPoint, bu as PickupPointHours, bv as PickupPointsInput, bw as PickupWidgetConfig, bx as PriceDisplay, by as ProductAssetGroup, bz as ProductAssetItem, bA as ProductAvailability, bB as ProductGroup, bC as ProductLabel, bD as ProductListItem, bE as ProductMedia, bF as ProductMediaVariant, bG as ProductParameter, bH as ProductParameterGroup, bI as ProductParametersResponse, bJ as ProductPrice, bK as ProductPromotionSummary, bL as ProductReview, bM as ProductReviewsResponse, bN as ProductSibling, bO as ProductSort, bP as ProductSortValue, bQ as ProductVolumePrice, bR as ProductsQuery, bS as QuizAnswerInput, bT as QuizAnswerResult, bU as QuizQuestion, bV as QuizResult, bW as QuoteItem, bX as QuoteRequest, bY as RegisterInput, bZ as RegisterResult, b_ as RequestInterceptor, b$ as RequestInterceptorConfig, c0 as ResponseInterceptor, c1 as ResponseInterceptorData, c2 as ReturnRequest, c3 as ReturnRequestItem, c4 as ReturnStatus, c5 as ReturnStatusItem, c6 as ReturnableOrder, c7 as ReturnableOrderItem, c8 as SdkError, c9 as ShippingMethodSummary, ca as ShippingPublicConfig, cb as ShippingQuote, cc as ShippingQuoteInput, cd as ShopAppearance, ce as ShopCommerce, cf as ShopInfo, cg as ShopScript, ch as ShopScriptPlacement, ci as ShopScriptType, cj as ShopScripts, ck as ShopSeo, cl as ShopSeoIdentity, cm as SiteFormField, cn as SiteFormFieldOption, co as SiteFormFieldType, cp as Sitemap, cq as SitemapEntry, cr as StockBehavior, cs as StockMode, ct as StorefrontCollection, cu as StorefrontCollectionField, cv as StorefrontCollectionFieldType, cw as StorefrontCollectionItem, cx as StorefrontCollectionQuery, cy as StorefrontFaqGroup, cz as StorefrontFaqGroupSummary, cA as StorefrontFaqGroups, cB as StorefrontFaqItem, cC as StorefrontFaqQuery, cD as StorefrontForm, cE as StorefrontFormFieldErrorCode, cF as StorefrontFormFile, cG as StorefrontFormSettings, cH as StorefrontFormSubmitInput, cI as StorefrontFormSubmitResult, cJ as StorefrontFormUpload, cK as SubmitQuoteInput, cL as SubmitReturnInput, cM as SubmitReviewInput, cN as SubmitWithdrawalInput, cO as Subscription, cP as SubscriptionAction, cQ as SubscriptionFrequency, cR as SubscriptionItem, cS as SubscriptionStatus, cT as TaxBreakdownLine, cU as VariantAxis, cV as VariantAxisValue, cW as WishlistItem, cX as WithdrawalAcknowledgement, cY as WithdrawalFlag, cZ as WithdrawalSettings, c_ as WithdrawalWindow, c$ as clearCartSummary, d0 as err, d1 as ok, d2 as publishCartSummary, d3 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-BuL50_BZ.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 Booking, y as BookingCategory, z as BookingConfig, D as BookingCreateInput, E as BookingCreated, F as BookingLocale, G as BookingLocation, H as BookingManageSlotsQuery, I as BookingService, J as BookingSlot, K as BookingSlots, L as BookingSlotsQuery, M as BookingStaff, N as BookingStatus, O as Bundle, Q as BundleCatalogQuery, R as BundleItem, T as Cart, U as CartBundleLine, V as CartBundleLineItem, W as CartDiscount, X as CartItem, Y as CartItemProduct, Z as CartLinkClaimed, _ as CartPromotion, $ as CartSummaryEvent, a0 as Category, a1 as CategoryDetail, a2 as CertificateVerification, a3 as CheckoutAddress, a4 as CheckoutInput, a5 as CheckoutPaymentMethod, a6 as CheckoutPreview, a7 as CheckoutResult, a8 as CheckoutSettings, a9 as CookieConsentInput, aa as CourseAttachment, ab as CourseCertificate, ac as CourseComment, ad as CourseCommentReply, ae as CourseCommentsList, af as CourseDetail, ag as CourseLesson, ah as CourseListItem, ai as CourseModule, aj as CoursePostedComment, ak as CourseProgress, al as CourseTutorMessage, am as CourseTutorThread, an as CrossSellItem, ao as CurrencyDisplayFormat, ap as CustomerAddress, aq as CustomerBadge, ar as CustomerChallenge, as as CustomerGamification, at as CustomerGamificationQuery, au as CustomerProfile, av as DigitalDownload, aw as DownloadUrl, ax as Facet, ay as FacetAvailability, az as FacetCategory, aA as FacetLabel, aB as FacetPriceRange, aC as FacetRange, aD as FacetRatingBucket, aE as FacetValue, aF as FacetsResponse, aG as FilterField, aH as FulfillmentStatus, aI as FulfillmentStatuses, aJ as GamificationRefreshResult, aK as GiftCardBalance, aL as GiftCardPurchaseInput, aM as GiftCardPurchaseResult, aN as GiftCardSummary, aO as LessonNote, aP as LessonQuiz, aQ as LoginInput, aR as LoyaltyBalance, aS as LoyaltyNextTier, aT as LoyaltyProgram, aU as LoyaltyQuery, aV as LoyaltyReferralResult, aW as LoyaltySummary, aX as LoyaltyTier, aY as LoyaltyTierPerks, aZ as LoyaltyTransaction, a_ as Menu, a$ as MenuItem, b0 as MenuItemRef, b1 as MenuItemType, b2 as MessageResponse, b3 as NewsletterOptInDefault, b4 as NewsletterSubscribeInput, b5 as NewsletterSubscribeResult, b6 as NewsletterUnsubscribeResult, b7 as OrderAccessRequestResponse, b8 as OrderAccessVerifyResponse, b9 as OrderDetail, ba as OrderDiscount, bb as OrderDocument, bc as OrderItem, bd as OrderListItem, be as OrderPaymentInstructions, bf as OrderPickupPoint, bg as OrderShipment, bh as OrderStatus, bi as OrderStatusHistory, bj as OrderStatuses, bk as OrderTracking, bl as Page, bm as PageAttachment, bn as PageDetail, bo as PaginatedResponse, bp as PaymentInstrument, bq as PaymentStatus, br as PaymentStatuses, bs as PaymentSwift, bt as PickupPoint, bu as PickupPointHours, bv as PickupPointsInput, bw as PickupWidgetConfig, bx as PriceDisplay, by as ProductAssetGroup, bz as ProductAssetItem, bA as ProductAvailability, bB as ProductGroup, bC as ProductLabel, bD as ProductListItem, bE as ProductMedia, bF as ProductMediaVariant, bG as ProductParameter, bH as ProductParameterGroup, bI as ProductParametersResponse, bJ as ProductPrice, bK as ProductPromotionSummary, bL as ProductReview, bM as ProductReviewsResponse, bN as ProductSibling, bO as ProductSort, bP as ProductSortValue, bQ as ProductVolumePrice, bR as ProductsQuery, bS as QuizAnswerInput, bT as QuizAnswerResult, bU as QuizQuestion, bV as QuizResult, bW as QuoteItem, bX as QuoteRequest, bY as RegisterInput, bZ as RegisterResult, b_ as RequestInterceptor, b$ as RequestInterceptorConfig, c0 as ResponseInterceptor, c1 as ResponseInterceptorData, c2 as ReturnRequest, c3 as ReturnRequestItem, c4 as ReturnStatus, c5 as ReturnStatusItem, c6 as ReturnableOrder, c7 as ReturnableOrderItem, c8 as SdkError, c9 as ShippingMethodSummary, ca as ShippingPublicConfig, cb as ShippingQuote, cc as ShippingQuoteInput, cd as ShopAppearance, ce as ShopCommerce, cf as ShopInfo, cg as ShopScript, ch as ShopScriptPlacement, ci as ShopScriptType, cj as ShopScripts, ck as ShopSeo, cl as ShopSeoIdentity, cm as SiteFormField, cn as SiteFormFieldOption, co as SiteFormFieldType, cp as Sitemap, cq as SitemapEntry, cr as StockBehavior, cs as StockMode, ct as StorefrontCollection, cu as StorefrontCollectionField, cv as StorefrontCollectionFieldType, cw as StorefrontCollectionItem, cx as StorefrontCollectionQuery, cy as StorefrontFaqGroup, cz as StorefrontFaqGroupSummary, cA as StorefrontFaqGroups, cB as StorefrontFaqItem, cC as StorefrontFaqQuery, cD as StorefrontForm, cE as StorefrontFormFieldErrorCode, cF as StorefrontFormFile, cG as StorefrontFormSettings, cH as StorefrontFormSubmitInput, cI as StorefrontFormSubmitResult, cJ as StorefrontFormUpload, cK as SubmitQuoteInput, cL as SubmitReturnInput, cM as SubmitReviewInput, cN as SubmitWithdrawalInput, cO as Subscription, cP as SubscriptionAction, cQ as SubscriptionFrequency, cR as SubscriptionItem, cS as SubscriptionStatus, cT as TaxBreakdownLine, cU as VariantAxis, cV as VariantAxisValue, cW as WishlistItem, cX as WithdrawalAcknowledgement, cY as WithdrawalFlag, cZ as WithdrawalSettings, c_ as WithdrawalWindow, c$ as clearCartSummary, d0 as err, d1 as ok, d2 as publishCartSummary, d3 as toSdkError } from './client-BuL50_BZ.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Format a price amount with currency using Intl.NumberFormat.
|
package/dist/index.js
CHANGED
|
@@ -470,6 +470,7 @@ var ERROR_MESSAGES = {
|
|
|
470
470
|
"be.storefront.returnItemsRequired": "Vratka mus\xED obsahovat alespo\u0148 jednu polo\u017Eku.",
|
|
471
471
|
"be.storefront.returnRequestNotFound": "\u017D\xE1dost o vr\xE1cen\xED nenalezena.",
|
|
472
472
|
"be.storefront.reviewNotFound": "Recenze nenalezena.",
|
|
473
|
+
"be.storefront.reviewVerifiedPurchaseRequired": "Tuto akci mohou prov\xE9st jen ov\u011B\u0159en\xED kupuj\xEDc\xED tohoto produktu.",
|
|
473
474
|
"be.storefront.saleEnded": "Prodej produktu {name} skon\u010Dil.",
|
|
474
475
|
"be.storefront.saleNotStarted": "Prodej produktu {name} je\u0161t\u011B neza\u010Dal.",
|
|
475
476
|
"be.storefront.shippingAddressRequired": "Fyzick\xE9 produkty vy\u017Eaduj\xED doru\u010Dovac\xED adresu.",
|
|
@@ -756,6 +757,7 @@ var ERROR_MESSAGES = {
|
|
|
756
757
|
"be.storefront.returnItemsRequired": "Vratka mus\xED obsahova\u0165 aspo\u0148 jednu polo\u017Eku.",
|
|
757
758
|
"be.storefront.returnRequestNotFound": "\u017Diados\u0165 o vr\xE1tenie sa nena\u0161la.",
|
|
758
759
|
"be.storefront.reviewNotFound": "Recenzia sa nena\u0161la.",
|
|
760
|
+
"be.storefront.reviewVerifiedPurchaseRequired": "T\xFAto akciu m\xF4\u017Eu vykona\u0165 len overen\xED kupuj\xFAci tohto produktu.",
|
|
759
761
|
"be.storefront.saleEnded": "Predaj produktu {name} sa skon\u010Dil.",
|
|
760
762
|
"be.storefront.saleNotStarted": "Predaj produktu {name} sa e\u0161te neza\u010Dal.",
|
|
761
763
|
"be.storefront.shippingAddressRequired": "Fyzick\xE9 produkty vy\u017Eaduj\xFA doru\u010Dovaciu adresu.",
|
|
@@ -1042,6 +1044,7 @@ var ERROR_MESSAGES = {
|
|
|
1042
1044
|
"be.storefront.returnItemsRequired": "At least one item is required for a return request",
|
|
1043
1045
|
"be.storefront.returnRequestNotFound": "Return request not found",
|
|
1044
1046
|
"be.storefront.reviewNotFound": "Review not found",
|
|
1047
|
+
"be.storefront.reviewVerifiedPurchaseRequired": "Only verified purchasers of this product can perform this action.",
|
|
1045
1048
|
"be.storefront.saleEnded": "Sale for {name} has ended",
|
|
1046
1049
|
"be.storefront.saleNotStarted": "Sale for {name} has not started yet",
|
|
1047
1050
|
"be.storefront.shippingAddressRequired": "Physical products require a delivery address.",
|
package/dist/index.mjs
CHANGED
|
@@ -470,6 +470,7 @@ var ERROR_MESSAGES = {
|
|
|
470
470
|
"be.storefront.returnItemsRequired": "Vratka mus\xED obsahovat alespo\u0148 jednu polo\u017Eku.",
|
|
471
471
|
"be.storefront.returnRequestNotFound": "\u017D\xE1dost o vr\xE1cen\xED nenalezena.",
|
|
472
472
|
"be.storefront.reviewNotFound": "Recenze nenalezena.",
|
|
473
|
+
"be.storefront.reviewVerifiedPurchaseRequired": "Tuto akci mohou prov\xE9st jen ov\u011B\u0159en\xED kupuj\xEDc\xED tohoto produktu.",
|
|
473
474
|
"be.storefront.saleEnded": "Prodej produktu {name} skon\u010Dil.",
|
|
474
475
|
"be.storefront.saleNotStarted": "Prodej produktu {name} je\u0161t\u011B neza\u010Dal.",
|
|
475
476
|
"be.storefront.shippingAddressRequired": "Fyzick\xE9 produkty vy\u017Eaduj\xED doru\u010Dovac\xED adresu.",
|
|
@@ -756,6 +757,7 @@ var ERROR_MESSAGES = {
|
|
|
756
757
|
"be.storefront.returnItemsRequired": "Vratka mus\xED obsahova\u0165 aspo\u0148 jednu polo\u017Eku.",
|
|
757
758
|
"be.storefront.returnRequestNotFound": "\u017Diados\u0165 o vr\xE1tenie sa nena\u0161la.",
|
|
758
759
|
"be.storefront.reviewNotFound": "Recenzia sa nena\u0161la.",
|
|
760
|
+
"be.storefront.reviewVerifiedPurchaseRequired": "T\xFAto akciu m\xF4\u017Eu vykona\u0165 len overen\xED kupuj\xFAci tohto produktu.",
|
|
759
761
|
"be.storefront.saleEnded": "Predaj produktu {name} sa skon\u010Dil.",
|
|
760
762
|
"be.storefront.saleNotStarted": "Predaj produktu {name} sa e\u0161te neza\u010Dal.",
|
|
761
763
|
"be.storefront.shippingAddressRequired": "Fyzick\xE9 produkty vy\u017Eaduj\xFA doru\u010Dovaciu adresu.",
|
|
@@ -1042,6 +1044,7 @@ var ERROR_MESSAGES = {
|
|
|
1042
1044
|
"be.storefront.returnItemsRequired": "At least one item is required for a return request",
|
|
1043
1045
|
"be.storefront.returnRequestNotFound": "Return request not found",
|
|
1044
1046
|
"be.storefront.reviewNotFound": "Review not found",
|
|
1047
|
+
"be.storefront.reviewVerifiedPurchaseRequired": "Only verified purchasers of this product can perform this action.",
|
|
1045
1048
|
"be.storefront.saleEnded": "Sale for {name} has ended",
|
|
1046
1049
|
"be.storefront.saleNotStarted": "Sale for {name} has not started yet",
|
|
1047
1050
|
"be.storefront.shippingAddressRequired": "Physical products require a delivery address.",
|
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-BuL50_BZ.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-BuL50_BZ.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
|
@@ -3141,6 +3141,12 @@ interface ProductReviewsResponse {
|
|
|
3141
3141
|
limit: number;
|
|
3142
3142
|
averageRating: number;
|
|
3143
3143
|
reviewCount: number;
|
|
3144
|
+
/** Available on backends with purchaser-only review moderation. */
|
|
3145
|
+
submission?: {
|
|
3146
|
+
requiresVerifiedPurchase: boolean;
|
|
3147
|
+
canSubmit: boolean;
|
|
3148
|
+
reason: "LOGIN_REQUIRED" | "PURCHASE_REQUIRED" | "ALREADY_REVIEWED" | null;
|
|
3149
|
+
};
|
|
3144
3150
|
}
|
|
3145
3151
|
/** Returned by `catalog.notifyWhenAvailable()` — back-in-stock subscription. */
|
|
3146
3152
|
interface BackInStockSubscription {
|
|
@@ -6039,6 +6045,7 @@ declare function useProductReviews(productId: string | undefined, options?: {
|
|
|
6039
6045
|
limit?: number;
|
|
6040
6046
|
enabled?: boolean;
|
|
6041
6047
|
initialData?: ProductReviewsResponse;
|
|
6048
|
+
scope?: string;
|
|
6042
6049
|
}): _tanstack_react_query.UseQueryResult<NoInfer<ProductReviewsResponse>, Error>;
|
|
6043
6050
|
declare function useSubmitReview(): _tanstack_react_query.UseMutationResult<{
|
|
6044
6051
|
id: string;
|
package/dist/react.d.ts
CHANGED
|
@@ -3141,6 +3141,12 @@ interface ProductReviewsResponse {
|
|
|
3141
3141
|
limit: number;
|
|
3142
3142
|
averageRating: number;
|
|
3143
3143
|
reviewCount: number;
|
|
3144
|
+
/** Available on backends with purchaser-only review moderation. */
|
|
3145
|
+
submission?: {
|
|
3146
|
+
requiresVerifiedPurchase: boolean;
|
|
3147
|
+
canSubmit: boolean;
|
|
3148
|
+
reason: "LOGIN_REQUIRED" | "PURCHASE_REQUIRED" | "ALREADY_REVIEWED" | null;
|
|
3149
|
+
};
|
|
3144
3150
|
}
|
|
3145
3151
|
/** Returned by `catalog.notifyWhenAvailable()` — back-in-stock subscription. */
|
|
3146
3152
|
interface BackInStockSubscription {
|
|
@@ -6039,6 +6045,7 @@ declare function useProductReviews(productId: string | undefined, options?: {
|
|
|
6039
6045
|
limit?: number;
|
|
6040
6046
|
enabled?: boolean;
|
|
6041
6047
|
initialData?: ProductReviewsResponse;
|
|
6048
|
+
scope?: string;
|
|
6042
6049
|
}): _tanstack_react_query.UseQueryResult<NoInfer<ProductReviewsResponse>, Error>;
|
|
6043
6050
|
declare function useSubmitReview(): _tanstack_react_query.UseMutationResult<{
|
|
6044
6051
|
id: string;
|
package/dist/react.js
CHANGED
|
@@ -4995,7 +4995,7 @@ var import_react_query51 = require("@tanstack/react-query");
|
|
|
4995
4995
|
function useProductReviews(productId, options) {
|
|
4996
4996
|
const { client } = useBehio();
|
|
4997
4997
|
return (0, import_react_query51.useQuery)({
|
|
4998
|
-
queryKey: ["behio", "reviews", productId, options?.page ?? 1, options?.limit ?? 20],
|
|
4998
|
+
queryKey: ["behio", "reviews", productId, options?.page ?? 1, options?.limit ?? 20, ...options?.scope ? [options.scope] : []],
|
|
4999
4999
|
queryFn: () => unwrap(client.reviews.getProductReviews(productId, options?.page, options?.limit)),
|
|
5000
5000
|
initialData: options?.initialData,
|
|
5001
5001
|
staleTime: 3e4,
|
package/dist/react.mjs
CHANGED
|
@@ -4872,7 +4872,7 @@ import { useQuery as useQuery45, useMutation as useMutation19, useQueryClient as
|
|
|
4872
4872
|
function useProductReviews(productId, options) {
|
|
4873
4873
|
const { client } = useBehio();
|
|
4874
4874
|
return useQuery45({
|
|
4875
|
-
queryKey: ["behio", "reviews", productId, options?.page ?? 1, options?.limit ?? 20],
|
|
4875
|
+
queryKey: ["behio", "reviews", productId, options?.page ?? 1, options?.limit ?? 20, ...options?.scope ? [options.scope] : []],
|
|
4876
4876
|
queryFn: () => unwrap(client.reviews.getProductReviews(productId, options?.page, options?.limit)),
|
|
4877
4877
|
initialData: options?.initialData,
|
|
4878
4878
|
staleTime: 3e4,
|