@growupsell/commerce 1.0.0-alpha.2 → 1.0.0-alpha.3

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.
@@ -1,4 +1,4 @@
1
- import { C as Cart, l as OrderType, d as CartTotals, U as TaxDetails, j as DeliveryEstimate, g as CategoryTree, f as Category, B as Brand, e as CatalogSettings, x as ProductSection, p as ProductBlock, y as ProductSectionItem, w as ProductSearchOptions, P as Page, t as ProductListItem, u as ProductOverview, q as ProductDetail, r as ProductFilterConfig, V as VariantGroup, S as SearchSuggestion, O as Offer, J as PromoCode, G as GiftCard, Q as RewardPointSettings, L as ReviewListItem, N as ReviewSummary, K as ReviewEligibility, R as Review, E as ProductSku, i as CustomerProfile, h as CheckoutSettings, o as PlaceOrderResult, A as AdvanceOrder, n as PendingPayment, m as PaymentMethodType } from './checkout-CwpFl6qt.js';
1
+ import { C as Cart, l as OrderType, d as CartTotals, W as TaxDetails, j as DeliveryEstimate, g as CategoryTree, f as Category, B as Brand, e as CatalogSettings, z as ProductSection, p as ProductBlock, E as ProductSectionItem, y as ProductSearchOptions, P as Page, t as ProductListItem, u as ProductListOptions, w as ProductOverview, q as ProductDetail, r as ProductFilterConfig, X as VariantGroup, U as SearchSuggestion, O as Offer, L as PromoCode, G as GiftCard, T as RewardPointSettings, N as ReviewListItem, S as ReviewSummary, M as ReviewEligibility, R as Review, I as ProductSku, i as CustomerProfile, h as CheckoutSettings, o as PlaceOrderResult, A as AdvanceOrder, n as PendingPayment, m as PaymentMethodType } from './checkout-DDNMdKbR.js';
2
2
 
3
3
  /** The editor the merchant wrote the post with; decides how `body` sections are styled. */
4
4
  type BlogEditor = 'quill' | 'ckeditor' | 'froala';
@@ -193,8 +193,6 @@ interface Business {
193
193
  name: string | null;
194
194
  description: string | null;
195
195
  legalName: string | null;
196
- gstNumber: string | null;
197
- panNumber: string | null;
198
196
  isTemplate: boolean;
199
197
  /** `type` is the kind of business, e.g. `retail`, `restaurant`, `services`. */
200
198
  category: {
@@ -686,12 +684,7 @@ interface ProductsApi {
686
684
  */
687
685
  search(options?: ProductSearchOptions): Promise<Page<ProductListItem>>;
688
686
  /** Products (not SKUs), e.g. for home-page sliders. Only available products. */
689
- list(options?: {
690
- ids?: readonly number[];
691
- categoryIds?: readonly number[];
692
- limit?: number;
693
- offset?: number;
694
- }): Promise<Page<ProductOverview>>;
687
+ list(options?: ProductListOptions): Promise<Page<ProductOverview>>;
695
688
  detail(id: number): Promise<ProductDetail>;
696
689
  /** Price range and specification filters, for the business or one category. */
697
690
  filterConfig(options?: {
@@ -1,5 +1,5 @@
1
- export { A as AddCartItemInput, c as AddressesApi, d as AnyFetch, e as AuthApi, g as BinaryResponse, h as BlogApi, o as BusinessApi, C as CancelCodItemsInput, r as CartAddressesInput, s as CartApi, t as CatalogApi, u as ChangePasswordInput, v as CheckoutApi, w as Client, x as ClientOptions, y as ConfirmEmailChangeInput, z as ConfirmPhoneChangeInput, E as ContentImageUpload, J as CreateAdvanceOrderInput, K as CreateExchangeInput, L as CreateReturnInput, M as CreateReviewInput, N as CreateSubscriptionInput, O as Credentials, Q as CustomManufacturingApi, T as CustomPageContentInput, W as CustomPagesApi, X as CustomerApi, _ as DocumentOptions, a4 as ExchangesApi, a6 as FaqApi, a7 as FaqInput, a8 as FetchInitLike, a9 as FetchLike, aa as FetchResponseLike, ab as FormDataLike, ah as FormsApi, aj as HelpdeskApi, ak as HttpMethod, al as InquiryInput, ap as LiveSupportApi, ar as LoginInput, as as LookupApi, at as MoveDirection, au as NewsletterApi, az as OrderListOptions, aD as OrdersApi, aG as PaymentsApi, aH as PlaceOrderOptions, aI as PoliciesApi, aK as PolicyInput, aM as ProductPageApi, aN as ProductSectionItemTargetInput, aO as ProductsApi, aP as PromotionsApi, aR as PushApi, aT as Query, aU as QueryValue, aV as RazorpayResult, aW as RegisterInput, aX as RequestFn, aY as RequestOptions, aZ as ResetPasswordInput, b1 as ReturnsApi, b2 as ReviewPhoto, b3 as ReviewsApi, b4 as SessionApi, bf as SubscriptionsApi, bh as ThemeContentApi, bl as UnauthorizedEvent, bm as UpdateProfileInput, bn as UpdateReviewInput, bo as UploadFile, bq as VerifyOtpInput, bs as WishlistApi, bu as createClient } from '../client-D4JNDM6j.js';
2
- export { w as ProductSearchOptions, H as ProductSort } from '../checkout-CwpFl6qt.js';
1
+ export { A as AddCartItemInput, c as AddressesApi, d as AnyFetch, e as AuthApi, g as BinaryResponse, h as BlogApi, o as BusinessApi, C as CancelCodItemsInput, r as CartAddressesInput, s as CartApi, t as CatalogApi, u as ChangePasswordInput, v as CheckoutApi, w as Client, x as ClientOptions, y as ConfirmEmailChangeInput, z as ConfirmPhoneChangeInput, E as ContentImageUpload, J as CreateAdvanceOrderInput, K as CreateExchangeInput, L as CreateReturnInput, M as CreateReviewInput, N as CreateSubscriptionInput, O as Credentials, Q as CustomManufacturingApi, T as CustomPageContentInput, W as CustomPagesApi, X as CustomerApi, _ as DocumentOptions, a4 as ExchangesApi, a6 as FaqApi, a7 as FaqInput, a8 as FetchInitLike, a9 as FetchLike, aa as FetchResponseLike, ab as FormDataLike, ah as FormsApi, aj as HelpdeskApi, ak as HttpMethod, al as InquiryInput, ap as LiveSupportApi, ar as LoginInput, as as LookupApi, at as MoveDirection, au as NewsletterApi, az as OrderListOptions, aD as OrdersApi, aG as PaymentsApi, aH as PlaceOrderOptions, aI as PoliciesApi, aK as PolicyInput, aM as ProductPageApi, aN as ProductSectionItemTargetInput, aO as ProductsApi, aP as PromotionsApi, aR as PushApi, aT as Query, aU as QueryValue, aV as RazorpayResult, aW as RegisterInput, aX as RequestFn, aY as RequestOptions, aZ as ResetPasswordInput, b1 as ReturnsApi, b2 as ReviewPhoto, b3 as ReviewsApi, b4 as SessionApi, bf as SubscriptionsApi, bh as ThemeContentApi, bl as UnauthorizedEvent, bm as UpdateProfileInput, bn as UpdateReviewInput, bo as UploadFile, bq as VerifyOtpInput, bs as WishlistApi, bu as createClient } from '../client-RzekAHeO.js';
2
+ export { u as ProductListOptions, v as ProductListSort, y as ProductSearchOptions, J as ProductSort } from '../checkout-DDNMdKbR.js';
3
3
 
4
4
  type ApiErrorKind = 'http' | 'network' | 'timeout' | 'parse';
5
5
  /**
@@ -2,7 +2,7 @@ import "../chunk-NNKXIBK4.js";
2
2
  import {
3
3
  GrowupsellApiError,
4
4
  createClient
5
- } from "../chunk-AI2CWQ22.js";
5
+ } from "../chunk-BORVKACK.js";
6
6
  export {
7
7
  GrowupsellApiError,
8
8
  createClient
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { A as AddCartItemInput, a as Address, b as AddressInput, c as AddressesApi, d as AnyFetch, e as AuthApi, f as AuthResult, B as BankTransferOption, g as BinaryResponse, h as BlogApi, i as BlogAuthor, j as BlogCategory, k as BlogEditor, l as BlogPost, m as BlogPostSummary, n as Business, o as BusinessApi, p as BusinessMedia, q as BusinessSettings, C as CancelCodItemsInput, r as CartAddressesInput, s as CartApi, t as CatalogApi, u as ChangePasswordInput, v as CheckoutApi, w as Client, x as ClientOptions, y as ConfirmEmailChangeInput, z as ConfirmPhoneChangeInput, D as ContentImage, E as ContentImageUpload, F as ContentImageUsage, G as ContentPlatform, H as Country, I as CountryState, J as CreateAdvanceOrderInput, K as CreateExchangeInput, L as CreateReturnInput, M as CreateReviewInput, N as CreateSubscriptionInput, O as Credentials, P as Currency, Q as CustomManufacturingApi, R as CustomPage, S as CustomPageContent, T as CustomPageContentInput, U as CustomPageHero, V as CustomPageSection, W as CustomPagesApi, X as CustomerApi, Y as CustomerSettings, Z as DeliveryStatus, _ as DocumentOptions, $ as ExchangeDetail, a0 as ExchangeListItem, a1 as ExchangeResult, a2 as ExchangeTargetSku, a3 as ExchangeType, a4 as ExchangesApi, a5 as Faq, a6 as FaqApi, a7 as FaqInput, a8 as FetchInitLike, a9 as FetchLike, aa as FetchResponseLike, ab as FormDataLike, ac as FormField, ad as FormFieldOption, ae as FormFieldType, af as FormSummary, ag as FormValue, ah as FormsApi, ai as GuestSession, aj as HelpdeskApi, ak as HttpMethod, al as InquiryInput, am as InvoiceFormat, an as InvoicePayment, ao as InvoicePaymentStatus, ap as LiveSupportApi, aq as LiveSupportWidget, ar as LoginInput, as as LookupApi, at as MoveDirection, au as NewsletterApi, av as OrderAddress, aw as OrderDetail, ax as OrderLine, ay as OrderListItem, az as OrderListOptions, aA as OrderPaymentEntry, aB as OrderStatus, aC as OrderSummary, aD as OrdersApi, aE as PaymentConfirmation, aF as PaymentStatus, aG as PaymentsApi, aH as PlaceOrderOptions, aI as PoliciesApi, aJ as Policy, aK as PolicyInput, aL as PolicyType, aM as ProductPageApi, aN as ProductSectionItemTargetInput, aO as ProductsApi, aP as PromotionsApi, aQ as PublicForm, aR as PushApi, aS as PushSubscriptionJson, aT as Query, aU as QueryValue, aV as RazorpayResult, aW as RegisterInput, aX as RequestFn, aY as RequestOptions, aZ as ResetPasswordInput, a_ as ReturnRequest, a$ as ReturnStatus, b0 as ReturnableItem, b1 as ReturnsApi, b2 as ReviewPhoto, b3 as ReviewsApi, b4 as SessionApi, b5 as Shipment, b6 as SignedInCustomer, b7 as SocialLinks, b8 as Subscription, b9 as SubscriptionDelivery, ba as SubscriptionDeliveryItem, bb as SubscriptionHold, bc as SubscriptionInterval, bd as SubscriptionInvoice, be as SubscriptionStatus, bf as SubscriptionsApi, bg as ThemeContent, bh as ThemeContentApi, bi as ThemeSettings, bj as ThemeSettingsUpdate, bk as TrackingInfo, bl as UnauthorizedEvent, bm as UpdateProfileInput, bn as UpdateReviewInput, bo as UploadFile, bp as UploadedFile, bq as VerifyOtpInput, br as Weekday, bs as WishlistApi, bt as WishlistItem, bu as createClient } from './client-D4JNDM6j.js';
1
+ export { A as AddCartItemInput, a as Address, b as AddressInput, c as AddressesApi, d as AnyFetch, e as AuthApi, f as AuthResult, B as BankTransferOption, g as BinaryResponse, h as BlogApi, i as BlogAuthor, j as BlogCategory, k as BlogEditor, l as BlogPost, m as BlogPostSummary, n as Business, o as BusinessApi, p as BusinessMedia, q as BusinessSettings, C as CancelCodItemsInput, r as CartAddressesInput, s as CartApi, t as CatalogApi, u as ChangePasswordInput, v as CheckoutApi, w as Client, x as ClientOptions, y as ConfirmEmailChangeInput, z as ConfirmPhoneChangeInput, D as ContentImage, E as ContentImageUpload, F as ContentImageUsage, G as ContentPlatform, H as Country, I as CountryState, J as CreateAdvanceOrderInput, K as CreateExchangeInput, L as CreateReturnInput, M as CreateReviewInput, N as CreateSubscriptionInput, O as Credentials, P as Currency, Q as CustomManufacturingApi, R as CustomPage, S as CustomPageContent, T as CustomPageContentInput, U as CustomPageHero, V as CustomPageSection, W as CustomPagesApi, X as CustomerApi, Y as CustomerSettings, Z as DeliveryStatus, _ as DocumentOptions, $ as ExchangeDetail, a0 as ExchangeListItem, a1 as ExchangeResult, a2 as ExchangeTargetSku, a3 as ExchangeType, a4 as ExchangesApi, a5 as Faq, a6 as FaqApi, a7 as FaqInput, a8 as FetchInitLike, a9 as FetchLike, aa as FetchResponseLike, ab as FormDataLike, ac as FormField, ad as FormFieldOption, ae as FormFieldType, af as FormSummary, ag as FormValue, ah as FormsApi, ai as GuestSession, aj as HelpdeskApi, ak as HttpMethod, al as InquiryInput, am as InvoiceFormat, an as InvoicePayment, ao as InvoicePaymentStatus, ap as LiveSupportApi, aq as LiveSupportWidget, ar as LoginInput, as as LookupApi, at as MoveDirection, au as NewsletterApi, av as OrderAddress, aw as OrderDetail, ax as OrderLine, ay as OrderListItem, az as OrderListOptions, aA as OrderPaymentEntry, aB as OrderStatus, aC as OrderSummary, aD as OrdersApi, aE as PaymentConfirmation, aF as PaymentStatus, aG as PaymentsApi, aH as PlaceOrderOptions, aI as PoliciesApi, aJ as Policy, aK as PolicyInput, aL as PolicyType, aM as ProductPageApi, aN as ProductSectionItemTargetInput, aO as ProductsApi, aP as PromotionsApi, aQ as PublicForm, aR as PushApi, aS as PushSubscriptionJson, aT as Query, aU as QueryValue, aV as RazorpayResult, aW as RegisterInput, aX as RequestFn, aY as RequestOptions, aZ as ResetPasswordInput, a_ as ReturnRequest, a$ as ReturnStatus, b0 as ReturnableItem, b1 as ReturnsApi, b2 as ReviewPhoto, b3 as ReviewsApi, b4 as SessionApi, b5 as Shipment, b6 as SignedInCustomer, b7 as SocialLinks, b8 as Subscription, b9 as SubscriptionDelivery, ba as SubscriptionDeliveryItem, bb as SubscriptionHold, bc as SubscriptionInterval, bd as SubscriptionInvoice, be as SubscriptionStatus, bf as SubscriptionsApi, bg as ThemeContent, bh as ThemeContentApi, bi as ThemeSettings, bj as ThemeSettingsUpdate, bk as TrackingInfo, bl as UnauthorizedEvent, bm as UpdateProfileInput, bn as UpdateReviewInput, bo as UploadFile, bp as UploadedFile, bq as VerifyOtpInput, br as Weekday, bs as WishlistApi, bt as WishlistItem, bu as createClient } from './client-RzekAHeO.js';
2
2
  export { ApiErrorKind, GrowupsellApiError } from './http/index.js';
3
3
  export { DEFAULT_LISTING_CRITERIA, JsonLd, LISTING_PAGE_SIZE, PageMetadata, ProductPricing, ProductPurchase, ProductPurchaseInput, PurchaseLimit, PurchaseLimitInput, PurchaseMode, RatingBreakdownRow, VariantSelection, absoluteUrl, articleJsonLd, breadcrumbJsonLd, categoryAndDescendants, discountPercent, faqJsonLd, faqsFromSections, formatSelectedVariants, htmlToText, imagesFor, instagramEmbedUrl, isEmail, isOtp, isPhone, isVideoFileUrl, listingQuery, listingSearchOptions, organizationJsonLd, pageMetadata, parseListingQuery, parseSelectedVariants, productJsonLd, productPricing, productPurchase, promoCodeStatus, purchaseLimit, purchaseMode, quantityLimitFor, ratingBreakdown, roundToHalfStar, sectionItemsFor, serializeJsonLd, siteOrigin, slugify, specificationsFor, toE164, truncateText, videoEmbed, webSiteJsonLd, withCategory, youtubeEmbedUrl, youtubeThumbnailUrl, youtubeVideoId, youtubeWatchUrl } from './rules/index.js';
4
- export { C as CheckoutPreview, a as CheckoutPreviewInput, L as ListingCriteria, b as ListingQuery, P as PaymentOptions, c as PaymentOptionsInput, V as VariantChoice, d as checkoutPreview, e as defaultSelection, g as giftCardBalance, i as isSelectionComplete, p as paymentOptions, r as requiresShippingAddress, f as resolveSku, s as selectOption, h as sellableSkus, v as variantChoices } from './sku-C3SGyRqT.js';
4
+ export { C as CheckoutPreview, a as CheckoutPreviewInput, L as ListingCriteria, b as ListingQuery, P as PaymentOptions, c as PaymentOptionsInput, V as VariantChoice, d as checkoutPreview, e as defaultSelection, g as giftCardBalance, i as isSelectionComplete, p as paymentOptions, r as requiresShippingAddress, f as resolveSku, s as selectOption, h as sellableSkus, v as variantChoices } from './sku-ViHXTvEw.js';
5
5
  export { ActionResult, AuthOutcome, AuthState, AuthStore, BusinessSection, BusinessState, BusinessStore, CartDeliveryState, CartLinePending, CartPending, CartState, CartStore, CatalogState, CatalogStore, CheckoutOrder, CheckoutPhase, CheckoutState, CheckoutStore, EventBus, GrowupsellEvent, GrowupsellStores, GrowupsellStoresOptions, Identity, ListingFacets, ListingInput, ListingQueryInput, ListingState, ListingStore, LoadStatus, ProductDetailInput, ProductDetailState, ProductDetailStore, REFERRAL_TTL_MS, ReferralState, ReferralStore, SearchSuggestionsOptions, SearchSuggestionsState, SearchSuggestionsStore, SessionState, SessionStore, StorageAdapter, Store, StoreError, StoreErrorKind, StoreSeeds, ThemeConfigState, ThemeConfigStore, ThemeSectionState, WishlistState, WishlistStore, cartItemCount, cartLineForSku, checkoutPreviewFor, createGrowupsellStores, createMemoryStorage, isInWishlist, paymentOptionsFor } from './stores/index.js';
6
- export { A as AdvanceOrder, a as AppliedOffer, b as AppliedPromoCode, B as Brand, C as Cart, c as CartLine, d as CartTotals, e as CatalogSettings, f as Category, g as CategoryTree, h as CheckoutSettings, i as CustomerProfile, D as DeliveryChargeType, j as DeliveryEstimate, F as FulfillmentMode, G as GiftCard, O as Offer, k as OfferScope, l as OrderType, P as Page, m as PaymentMethodType, n as PendingPayment, o as PlaceOrderResult, p as ProductBlock, q as ProductDetail, r as ProductFilterConfig, s as ProductImage, t as ProductListItem, u as ProductOverview, v as ProductPolicies, w as ProductSearchOptions, x as ProductSection, y as ProductSectionItem, z as ProductSectionItemTarget, E as ProductSku, H as ProductSort, I as ProductSpecificationGroup, J as PromoCode, R as Review, K as ReviewEligibility, L as ReviewListItem, M as ReviewReply, N as ReviewSummary, Q as RewardPointSettings, S as SearchSuggestion, T as SpecificationScope, U as TaxDetails, V as VariantGroup, W as VariantOption } from './checkout-CwpFl6qt.js';
6
+ export { A as AdvanceOrder, a as AppliedOffer, b as AppliedPromoCode, B as Brand, C as Cart, c as CartLine, d as CartTotals, e as CatalogSettings, f as Category, g as CategoryTree, h as CheckoutSettings, i as CustomerProfile, D as DeliveryChargeType, j as DeliveryEstimate, F as FulfillmentMode, G as GiftCard, O as Offer, k as OfferScope, l as OrderType, P as Page, m as PaymentMethodType, n as PendingPayment, o as PlaceOrderResult, p as ProductBlock, q as ProductDetail, r as ProductFilterConfig, s as ProductImage, t as ProductListItem, u as ProductListOptions, v as ProductListSort, w as ProductOverview, x as ProductPolicies, y as ProductSearchOptions, z as ProductSection, E as ProductSectionItem, H as ProductSectionItemTarget, I as ProductSku, J as ProductSort, K as ProductSpecificationGroup, L as PromoCode, R as Review, M as ReviewEligibility, N as ReviewListItem, Q as ReviewReply, S as ReviewSummary, T as RewardPointSettings, U as SearchSuggestion, V as SpecificationScope, W as TaxDetails, X as VariantGroup, Y as VariantOption } from './checkout-DDNMdKbR.js';
package/dist/index.js CHANGED
@@ -42,11 +42,11 @@ import {
42
42
  createMemoryStorage,
43
43
  isInWishlist,
44
44
  paymentOptionsFor
45
- } from "./chunk-DHBRITDW.js";
45
+ } from "./chunk-HGCKDE7D.js";
46
46
  import {
47
47
  GrowupsellApiError,
48
48
  createClient
49
- } from "./chunk-AI2CWQ22.js";
49
+ } from "./chunk-BORVKACK.js";
50
50
  import {
51
51
  DEFAULT_LISTING_CRITERIA,
52
52
  LISTING_PAGE_SIZE,
@@ -1,7 +1,7 @@
1
1
  import { ProductSearchOptions } from '../http/index.js';
2
2
  import { CategoryTree, ProductImage, ProductSectionItem, PromoCode, FulfillmentMode, CheckoutSettings, CustomerProfile, ProductSku, ProductDetail, CartLine, ReviewSummary, ProductSection, ProductSpecificationGroup } from '../index.js';
3
3
  import { ListingCriteria, ListingQuery } from '../index.js';
4
- export { C as CheckoutPreview, a as CheckoutPreviewInput, P as PaymentOptions, c as PaymentOptionsInput, V as VariantChoice, d as checkoutPreview, e as defaultSelection, g as giftCardBalance, i as isSelectionComplete, p as paymentOptions, r as requiresShippingAddress, f as resolveSku, s as selectOption, h as sellableSkus, v as variantChoices } from '../sku-C3SGyRqT.js';
4
+ export { C as CheckoutPreview, a as CheckoutPreviewInput, P as PaymentOptions, c as PaymentOptionsInput, V as VariantChoice, d as checkoutPreview, e as defaultSelection, g as giftCardBalance, i as isSelectionComplete, p as paymentOptions, r as requiresShippingAddress, f as resolveSku, s as selectOption, h as sellableSkus, v as variantChoices } from '../sku-ViHXTvEw.js';
5
5
 
6
6
  /** Catalog rules: working with the category tree. */
7
7
 
@@ -1,4 +1,4 @@
1
- import { G as GiftCard, l as OrderType, c as CartLine, Q as RewardPointSettings, H as ProductSort, W as VariantOption, q as ProductDetail, V as VariantGroup, E as ProductSku } from './checkout-CwpFl6qt.js';
1
+ import { G as GiftCard, l as OrderType, c as CartLine, T as RewardPointSettings, J as ProductSort, Y as VariantOption, q as ProductDetail, X as VariantGroup, I as ProductSku } from './checkout-DDNMdKbR.js';
2
2
 
3
3
  /**
4
4
  * Checkout previews: what the shopper sees before placing the order. The backend calculates
@@ -244,6 +244,10 @@ interface CatalogState {
244
244
  /** Which catalog features the merchant switched on (reviews, brands, categories…). */
245
245
  settings: CatalogSettings | null;
246
246
  }
247
+ /**
248
+ * Loads itself at the first `subscribe()` (an adapter hook mounting; never on the server) while
249
+ * still `idle`, unless the `autoLoad` option is false. Seeded parts are never requested.
250
+ */
247
251
  interface CatalogStore extends Store<CatalogState> {
248
252
  /**
249
253
  * Loads what is not loaded yet, categories and settings in parallel. Calls made while a load
@@ -568,7 +572,10 @@ interface GrowupsellStoresOptions {
568
572
  customerTokenTtlMs?: number;
569
573
  /** How long a captured referral code is kept. Default 7 days (ADR-025, D2). */
570
574
  referralTtlMs?: number;
571
- /** After hydration, load the cart (when a token exists) and the wishlist (when signed in). Default true. */
575
+ /**
576
+ * After hydration, load the cart (when a token exists) and the wishlist (when signed in); load
577
+ * the catalog at its first `subscribe()` unless seeded. Default true.
578
+ */
572
579
  autoLoad?: boolean;
573
580
  /** Server-fetched data the stores start with (SSR). */
574
581
  seeds?: Partial<StoreSeeds>;
@@ -7,8 +7,8 @@ import {
7
7
  createMemoryStorage,
8
8
  isInWishlist,
9
9
  paymentOptionsFor
10
- } from "../chunk-DHBRITDW.js";
11
- import "../chunk-AI2CWQ22.js";
10
+ } from "../chunk-HGCKDE7D.js";
11
+ import "../chunk-BORVKACK.js";
12
12
  import "../chunk-W2CJSBV4.js";
13
13
  export {
14
14
  REFERRAL_TTL_MS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@growupsell/commerce",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0-alpha.3",
4
4
  "description": "All Growupsell business logic: HTTP client, business rules and state stores. No framework, no browser globals, zero dependencies.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",