@ecomiq/storefront 0.1.0 → 0.1.2

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/nextjs.d.ts CHANGED
@@ -1,12 +1,14 @@
1
1
  import * as zod from 'zod';
2
2
  import { z } from 'zod';
3
3
  import { StorefrontSettings, StorefrontProductsParamsInput, StorefrontProductsResponse, StorefrontProductDetail, StorefrontCollection, StorefrontCollectionDetail, StorefrontPageListItem, StorefrontPageDetail, CartBuyerRequest, CartResponse, CartAddressesRequest, CartCheckoutReadResponse, ShippingOptionsResponse, CartShippingMethodPutRequest, CartCouponRequest, CartCreateRequest, CartCheckoutRequest, CartCheckoutResponse, CartPaymentReceiptResponse, CartPaymentMethodsResponse } from '@ecomiq/storefront/core';
4
+ export { E as EcomiqProvider, e as EcomiqProviderProps, g as EcomiqSignInCredentials, O as OptionGroup, P as ProductVariantSelector, j as ProductVariantSelectorProps, l as ProductVariantSelectorRenderProps, k as SelectedOptions, h as findStorefrontCmsPageBySlug, f as signInWithEcomiqCredentials, i as useStore } from './find-storefront-cms-page-DNwLo1iV.js';
4
5
  import * as _tanstack_react_query from '@tanstack/react-query';
5
- import { StorefrontProductsParamsInput as StorefrontProductsParamsInput$1, CartBuyerRequest as CartBuyerRequest$1, CartAddressesRequest as CartAddressesRequest$1, CartItemRequest, CartCheckoutRequest as CartCheckoutRequest$1, CartShippingMethodPutRequest as CartShippingMethodPutRequest$1, CartCouponRequest as CartCouponRequest$1, StorefrontPageSection } from '@ecomiq/storefront/react';
6
- export { O as OptionGroup, P as ProductVariantSelector, k as ProductVariantSelectorProps, m as ProductVariantSelectorRenderProps, S as SafeThemeInjector, l as SelectedOptions, f as findStorefrontCmsPageBySlug, s as sanitizeHtml, u as useStore } from './find-storefront-cms-page-Bo0-G1FK.js';
7
- import * as react from 'react';
8
- export { c as StorefrontCollection, a as StorefrontProduct, b as StorefrontProductDetail, d as StorefrontProductsParamsInput, h as StorefrontProductsResponse } from './store-CYBCpY6v.js';
6
+ import { StorefrontProductsParamsInput as StorefrontProductsParamsInput$1, CartBuyerRequest as CartBuyerRequest$1, CartAddressesRequest as CartAddressesRequest$1, CartItemRequest, CartCheckoutRequest as CartCheckoutRequest$1, CartShippingMethodPutRequest as CartShippingMethodPutRequest$1, CartCouponRequest as CartCouponRequest$1 } from '@ecomiq/storefront/react';
7
+ export { m as StorefrontCollection, e as StorefrontProduct, g as StorefrontProductDetail, a as StorefrontProductsParamsInput, f as StorefrontProductsResponse } from './collection-anMkdWa7.js';
9
8
  import 'zustand';
9
+ import 'react';
10
+ import 'better-auth/react';
11
+ import 'better-auth';
10
12
 
11
13
  /**
12
14
  * Devuelve el host completo de la request (ej. "plata950.ecomiq.pe", "localhost:3000").
@@ -41,7 +43,10 @@ type GetPublicStoreOptions = {
41
43
  /**
42
44
  * Obtiene la tienda pública: vía proxy `/api/store` o vía KV (`getCloudflareContext` + binding `ecomiq_clients_store`),
43
45
  * según `options.source` o `PUBLIC_STORE_SETTINGS_SOURCE`.
44
- * Usa el mismo criterio slug vs dominio que KV (`resolveStorefrontSettingsHost`).
46
+ *
47
+ * Identificador de tienda:
48
+ * 1. `slugStore` en `ecomiq.config.js` en la raíz del proyecto (prioridad, útil en localhost).
49
+ * 2. Si no, deriva del header `Host` (`resolveStorefrontSettingsHost`).
45
50
  */
46
51
  declare function getPublicStore(options?: GetPublicStoreOptions): Promise<PublicStoreResult>;
47
52
 
@@ -137,7 +142,12 @@ declare function resolveStorefrontSettingsHost(hostHeader: string): string;
137
142
  * - `*.ecomiq.app` → `storefront:snapshots:store:<slug>` (todo lo que va antes de `.ecomiq.app`, p. ej. `plata950`).
138
143
  * - Dominio propio (p. ej. `plata950.com`) → `storefront:snapshots:store:<dominio completo>`.
139
144
  */
145
+ declare function buildStorefrontKvSnapshotKeyFromStoreKey(storeKey: string): string;
140
146
  declare function buildStorefrontKvSnapshotKey(hostHeader: string): string;
147
+ /**
148
+ * Lee settings desde KV con clave ya resuelta (slug o dominio).
149
+ */
150
+ declare function getStorefrontSettingsFromKvByStoreKey(storeKey: string): Promise<StorefrontSettings>;
141
151
  /**
142
152
  * Lee settings desde KV (`ecomiq_clients_store`) usando la clave según el host.
143
153
  */
@@ -397,10 +407,10 @@ declare const CustomerMeSchema: z.ZodObject<{
397
407
  createdOn: z.ZodString;
398
408
  updatedOn: z.ZodNullable<z.ZodString>;
399
409
  }, "strip", z.ZodTypeAny, {
400
- id: string;
401
410
  status: string;
402
411
  phone: string;
403
412
  updatedOn: string | null;
413
+ id: string;
404
414
  createdOn: string;
405
415
  storeId: string;
406
416
  email: string;
@@ -443,10 +453,10 @@ declare const CustomerMeSchema: z.ZodObject<{
443
453
  loyaltyPoints: number;
444
454
  metadata?: unknown;
445
455
  }, {
446
- id: string;
447
456
  status: string;
448
457
  phone: string;
449
458
  updatedOn: string | null;
459
+ id: string;
450
460
  createdOn: string;
451
461
  storeId: string;
452
462
  email: string;
@@ -632,8 +642,8 @@ declare const CustomerOrderListItemSchema: z.ZodObject<{
632
642
  total: z.ZodNumber;
633
643
  status: z.ZodString;
634
644
  }, "strip", z.ZodTypeAny, {
635
- id: string;
636
645
  status: string;
646
+ id: string;
637
647
  productId: string | null;
638
648
  total: number;
639
649
  quantity: number;
@@ -646,8 +656,8 @@ declare const CustomerOrderListItemSchema: z.ZodObject<{
646
656
  variantTitle?: string | null | undefined;
647
657
  productHandle?: string | null | undefined;
648
658
  }, {
649
- id: string;
650
659
  status: string;
660
+ id: string;
651
661
  productId: string | null;
652
662
  total: number;
653
663
  quantity: number;
@@ -664,8 +674,8 @@ declare const CustomerOrderListItemSchema: z.ZodObject<{
664
674
  status: string;
665
675
  createdOn: string;
666
676
  items: {
667
- id: string;
668
677
  status: string;
678
+ id: string;
669
679
  productId: string | null;
670
680
  total: number;
671
681
  quantity: number;
@@ -708,8 +718,8 @@ declare const CustomerOrderListItemSchema: z.ZodObject<{
708
718
  status: string;
709
719
  createdOn: string;
710
720
  items: {
711
- id: string;
712
721
  status: string;
722
+ id: string;
713
723
  productId: string | null;
714
724
  total: number;
715
725
  quantity: number;
@@ -873,8 +883,8 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
873
883
  total: z.ZodNumber;
874
884
  status: z.ZodString;
875
885
  }, "strip", z.ZodTypeAny, {
876
- id: string;
877
886
  status: string;
887
+ id: string;
878
888
  productId: string | null;
879
889
  total: number;
880
890
  quantity: number;
@@ -887,8 +897,8 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
887
897
  variantTitle?: string | null | undefined;
888
898
  productHandle?: string | null | undefined;
889
899
  }, {
890
- id: string;
891
900
  status: string;
901
+ id: string;
892
902
  productId: string | null;
893
903
  total: number;
894
904
  quantity: number;
@@ -949,13 +959,13 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
949
959
  description?: string | null | undefined;
950
960
  }>, "many">;
951
961
  }, "strip", z.ZodTypeAny, {
952
- id: string;
953
962
  status: string;
954
963
  phone: string;
964
+ id: string;
955
965
  createdOn: string;
956
966
  items: {
957
- id: string;
958
967
  status: string;
968
+ id: string;
959
969
  productId: string | null;
960
970
  total: number;
961
971
  quantity: number;
@@ -1032,13 +1042,13 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
1032
1042
  shippingAddressSummary?: string | null | undefined;
1033
1043
  paymentAt?: string | null | undefined;
1034
1044
  }, {
1035
- id: string;
1036
1045
  status: string;
1037
1046
  phone: string;
1047
+ id: string;
1038
1048
  createdOn: string;
1039
1049
  items: {
1040
- id: string;
1041
1050
  status: string;
1051
+ id: string;
1042
1052
  productId: string | null;
1043
1053
  total: number;
1044
1054
  quantity: number;
@@ -1304,16 +1314,16 @@ declare const OrderDraftSchema: z.ZodObject<{
1304
1314
  scheduledTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1305
1315
  data: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1306
1316
  }, "strip", z.ZodTypeAny, {
1307
- id: string;
1308
1317
  name: string;
1318
+ id: string;
1309
1319
  data: Record<string, unknown>;
1310
1320
  total: number;
1311
1321
  subtotal: number;
1312
1322
  discountTotal: number;
1313
1323
  taxTotal: number;
1314
1324
  isTaxInclusive: boolean;
1315
- sellerId?: string | null | undefined;
1316
1325
  description?: string | null | undefined;
1326
+ sellerId?: string | null | undefined;
1317
1327
  estimatedDays?: number | null | undefined;
1318
1328
  pickupPointId?: string | null | undefined;
1319
1329
  scheduledDate?: string | null | undefined;
@@ -1327,10 +1337,10 @@ declare const OrderDraftSchema: z.ZodObject<{
1327
1337
  zoneCode?: string | null | undefined;
1328
1338
  }, {
1329
1339
  id: string;
1330
- sellerId?: string | null | undefined;
1331
1340
  name?: string | undefined;
1332
1341
  description?: string | null | undefined;
1333
1342
  data?: Record<string, unknown> | undefined;
1343
+ sellerId?: string | null | undefined;
1334
1344
  total?: number | undefined;
1335
1345
  subtotal?: number | undefined;
1336
1346
  estimatedDays?: number | null | undefined;
@@ -1351,8 +1361,8 @@ declare const OrderDraftSchema: z.ZodObject<{
1351
1361
  createdOn: z.ZodOptional<z.ZodString>;
1352
1362
  updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1353
1363
  }, "strip", z.ZodTypeAny, {
1354
- id: string;
1355
1364
  status: string;
1365
+ id: string;
1356
1366
  items: {
1357
1367
  id: string;
1358
1368
  total: number;
@@ -1381,16 +1391,16 @@ declare const OrderDraftSchema: z.ZodObject<{
1381
1391
  warranty: number;
1382
1392
  metadata: Record<string, unknown>;
1383
1393
  shippingMethods: {
1384
- id: string;
1385
1394
  name: string;
1395
+ id: string;
1386
1396
  data: Record<string, unknown>;
1387
1397
  total: number;
1388
1398
  subtotal: number;
1389
1399
  discountTotal: number;
1390
1400
  taxTotal: number;
1391
1401
  isTaxInclusive: boolean;
1392
- sellerId?: string | null | undefined;
1393
1402
  description?: string | null | undefined;
1403
+ sellerId?: string | null | undefined;
1394
1404
  estimatedDays?: number | null | undefined;
1395
1405
  pickupPointId?: string | null | undefined;
1396
1406
  scheduledDate?: string | null | undefined;
@@ -1458,8 +1468,8 @@ declare const OrderDraftSchema: z.ZodObject<{
1458
1468
  shareExpiresAt?: string | null | undefined;
1459
1469
  sharedAt?: string | null | undefined;
1460
1470
  }, {
1461
- id: string;
1462
1471
  status: string;
1472
+ id: string;
1463
1473
  draftNumber: string;
1464
1474
  phone?: string | null | undefined;
1465
1475
  updatedOn?: string | null | undefined;
@@ -1519,10 +1529,10 @@ declare const OrderDraftSchema: z.ZodObject<{
1519
1529
  metadata?: Record<string, unknown> | undefined;
1520
1530
  shippingMethods?: {
1521
1531
  id: string;
1522
- sellerId?: string | null | undefined;
1523
1532
  name?: string | undefined;
1524
1533
  description?: string | null | undefined;
1525
1534
  data?: Record<string, unknown> | undefined;
1535
+ sellerId?: string | null | undefined;
1526
1536
  total?: number | undefined;
1527
1537
  subtotal?: number | undefined;
1528
1538
  estimatedDays?: number | null | undefined;
@@ -1584,8 +1594,8 @@ declare function useStoreProducts(): {
1584
1594
  totalCount: number;
1585
1595
  totalPages: number;
1586
1596
  products: {
1587
- id: string;
1588
1597
  name: string;
1598
+ id: string;
1589
1599
  slug: string;
1590
1600
  price: number;
1591
1601
  variantCount: number;
@@ -1617,8 +1627,8 @@ declare function useStoreProducts(): {
1617
1627
  totalCount: number;
1618
1628
  totalPages: number;
1619
1629
  products: {
1620
- id: string;
1621
1630
  name: string;
1631
+ id: string;
1622
1632
  slug: string;
1623
1633
  price: number;
1624
1634
  variantCount: number;
@@ -1641,8 +1651,8 @@ declare function useStoreProducts(): {
1641
1651
  maxPrice?: number | null | undefined;
1642
1652
  }, unknown>, Error>;
1643
1653
  useProductBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
1644
- id: string;
1645
1654
  name: string;
1655
+ id: string;
1646
1656
  slug: string;
1647
1657
  images: {
1648
1658
  url: string;
@@ -1650,12 +1660,12 @@ declare function useStoreProducts(): {
1650
1660
  order?: number | undefined;
1651
1661
  }[];
1652
1662
  variants: {
1653
- id: string;
1654
1663
  options: {
1655
- name: string;
1656
1664
  value: string;
1665
+ name: string;
1657
1666
  key: string;
1658
1667
  }[];
1668
+ id: string;
1659
1669
  sku: string;
1660
1670
  images: {
1661
1671
  url: string;
@@ -1690,8 +1700,8 @@ declare function useStoreProducts(): {
1690
1700
  unitPrice: number;
1691
1701
  maxQuantity?: number | null | undefined;
1692
1702
  }[];
1693
- description?: string | null | undefined;
1694
1703
  status?: string | null | undefined;
1704
+ description?: string | null | undefined;
1695
1705
  tags?: string[] | null | undefined;
1696
1706
  category?: string | null | undefined;
1697
1707
  createdAt?: string | null | undefined;
@@ -1712,8 +1722,8 @@ declare function useStoreProducts(): {
1712
1722
  totalCount: number;
1713
1723
  totalPages: number;
1714
1724
  products: {
1715
- id: string;
1716
1725
  name: string;
1726
+ id: string;
1717
1727
  slug: string;
1718
1728
  price: number;
1719
1729
  variantCount: number;
@@ -1737,11 +1747,11 @@ declare function useStoreProducts(): {
1737
1747
  }, Error, {
1738
1748
  sort?: "price_asc" | "price_desc" | "name_asc" | "name_desc" | "newest" | undefined;
1739
1749
  sellerId?: string | undefined;
1740
- search?: string | undefined;
1741
1750
  inStock?: boolean | undefined;
1742
1751
  page?: number | undefined;
1743
1752
  pageSize?: number | undefined;
1744
1753
  category?: string | undefined;
1754
+ search?: string | undefined;
1745
1755
  minPrice?: number | undefined;
1746
1756
  maxPrice?: number | undefined;
1747
1757
  productType?: string | undefined;
@@ -1755,28 +1765,28 @@ declare function useStoreProducts(): {
1755
1765
  */
1756
1766
  declare function useStoreCollections(): {
1757
1767
  useStorefrontCollectionsList: () => _tanstack_react_query.UseQueryResult<{
1758
- id: string;
1768
+ type: string;
1759
1769
  name: string;
1770
+ id: string;
1760
1771
  slug: string;
1761
- type: string;
1762
1772
  productCount: number;
1763
1773
  description?: string | null | undefined;
1764
1774
  imageUrl?: string | null | undefined;
1765
1775
  }[], Error>;
1766
1776
  useCollectionBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
1767
- id: string;
1777
+ type: string;
1768
1778
  name: string;
1779
+ id: string;
1769
1780
  slug: string;
1770
- type: string;
1771
1781
  productCount: number;
1772
1782
  description?: string | null | undefined;
1773
1783
  imageUrl?: string | null | undefined;
1774
1784
  }, Error>;
1775
1785
  useRefreshStorefrontCollections: () => _tanstack_react_query.UseMutationResult<{
1776
- id: string;
1786
+ type: string;
1777
1787
  name: string;
1788
+ id: string;
1778
1789
  slug: string;
1779
- type: string;
1780
1790
  productCount: number;
1781
1791
  description?: string | null | undefined;
1782
1792
  imageUrl?: string | null | undefined;
@@ -1788,14 +1798,14 @@ declare function useStoreCollections(): {
1788
1798
  */
1789
1799
  declare function useStorePages(): {
1790
1800
  useStorefrontPagesList: () => _tanstack_react_query.UseQueryResult<{
1791
- id: string;
1792
1801
  name: string;
1802
+ id: string;
1793
1803
  slug: string;
1794
1804
  layout: string;
1795
1805
  }[], Error>;
1796
1806
  usePageBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
1797
- id: string;
1798
1807
  name: string;
1808
+ id: string;
1799
1809
  slug: string;
1800
1810
  layout: string;
1801
1811
  settings?: zod.objectOutputType<{
@@ -1813,12 +1823,12 @@ declare function useStorePages(): {
1813
1823
  title: zod.ZodOptional<zod.ZodString>;
1814
1824
  }, zod.ZodUnknown, "strip"> | undefined;
1815
1825
  sections?: {
1816
- id: string;
1817
1826
  type: string;
1827
+ id: string;
1818
1828
  order: number;
1819
1829
  blocks: {
1820
- id: string;
1821
1830
  type: string;
1831
+ id: string;
1822
1832
  order: number;
1823
1833
  settings?: Record<string, unknown> | undefined;
1824
1834
  }[];
@@ -1826,8 +1836,8 @@ declare function useStorePages(): {
1826
1836
  }[] | undefined;
1827
1837
  }, Error>;
1828
1838
  useRefreshStorefrontPages: () => _tanstack_react_query.UseMutationResult<{
1829
- id: string;
1830
1839
  name: string;
1840
+ id: string;
1831
1841
  slug: string;
1832
1842
  layout: string;
1833
1843
  }[], Error, void, unknown>;
@@ -1976,9 +1986,9 @@ declare function useStoreCart(): {
1976
1986
  };
1977
1987
  paymentMethods: {
1978
1988
  methods: {
1979
- isActive: boolean;
1980
- name: string;
1981
1989
  code: string;
1990
+ name: string;
1991
+ isActive: boolean;
1982
1992
  isDefault: boolean;
1983
1993
  sortOrder: number;
1984
1994
  kind: string;
@@ -2409,9 +2419,9 @@ declare function useStoreCart(): {
2409
2419
  }, unknown>;
2410
2420
  useGetCartPaymentMethods: (cartId?: string | null) => _tanstack_react_query.UseQueryResult<{
2411
2421
  methods: {
2412
- isActive: boolean;
2413
- name: string;
2414
2422
  code: string;
2423
+ name: string;
2424
+ isActive: boolean;
2415
2425
  isDefault: boolean;
2416
2426
  sortOrder: number;
2417
2427
  kind: string;
@@ -2620,11 +2630,6 @@ declare function useStoreCart(): {
2620
2630
  }, unknown>;
2621
2631
  };
2622
2632
 
2623
- type DefaultCmsSectionsRendererProps = {
2624
- sections: StorefrontPageSection[];
2625
- };
2626
- declare function DefaultCmsSectionsRenderer({ sections, }: DefaultCmsSectionsRendererProps): Promise<react.JSX.Element>;
2627
-
2628
2633
  declare const usePublicStore: () => zod.objectOutputType<{
2629
2634
  schemaVersion: zod.ZodNumber;
2630
2635
  generatedAt: zod.ZodString;
@@ -3205,4 +3210,4 @@ declare const usePublicStore: () => zod.objectOutputType<{
3205
3210
  }>;
3206
3211
  }, zod.ZodTypeAny, "passthrough"> | null;
3207
3212
 
3208
- export { type CustomerAddress, CustomerAddressSchema, type CustomerAddressUpsert, CustomerAddressUpsertSchema, type CustomerMe, CustomerMeSchema, type CustomerOrderDetailDto as CustomerOrderDetail, type CustomerOrderDetailDto, CustomerOrderDetailSchema, type CustomerOrderListItemDto as CustomerOrderListItem, type CustomerOrderListItemDto, CustomerOrderListItemSchema, type CustomerProfilePatch, CustomerProfilePatchSchema, type CustomerRegisterRequest, CustomerRegisterRequestSchema, DefaultCmsSectionsRenderer, type DefaultCmsSectionsRendererProps, ECOMIQ_CLIENTS_STORE_KV_BINDING, type PublicStoreSettingsSource, StoreApiClient, type StoreApiGetOptions, addCartCoupon, buildStorefrontKvSnapshotKey, checkoutCart, createCart, createCustomerAddress, createStoreApiClient, customerMeToProfilePatch, deleteCustomerAddress, getCart, getCartCheckout, getCartPaymentMethods, getCustomerAddresses, getCustomerMe, getCustomerOrder, getCustomerOrders, getHostname, getPublicStore, getSharedOrderDraft, getShippingOptions, getStoreApiBaseUrl, getStoreApiClient, getStorefrontCollectionBySlug, getStorefrontCollections, getStorefrontPageBySlug, getStorefrontPagePreview, getStorefrontPages, getStorefrontProductBySlug, getStorefrontProducts, getStorefrontSettings, getStorefrontSettingsFromKv, isCartNotActiveApiError, normalizeStoreHost, patchCartAddresses, patchCartBuyer, patchCustomer, putCartShippingMethod, registerCustomer, removeCartCoupon, resolvePublicStoreSettingsSource, resolveStorefrontSettingsHost, setClientStoreId, setServerRequestOrigin, setServerStoreId, storeApiClient, updateCustomerAddress, uploadPaymentReceipt, usePublicStore, useStoreCart, useStoreCollections, useStorePages, useStoreProducts };
3213
+ export { type CustomerAddress, CustomerAddressSchema, type CustomerAddressUpsert, CustomerAddressUpsertSchema, type CustomerMe, CustomerMeSchema, type CustomerOrderDetailDto as CustomerOrderDetail, type CustomerOrderDetailDto, CustomerOrderDetailSchema, type CustomerOrderListItemDto as CustomerOrderListItem, type CustomerOrderListItemDto, CustomerOrderListItemSchema, type CustomerProfilePatch, CustomerProfilePatchSchema, type CustomerRegisterRequest, CustomerRegisterRequestSchema, ECOMIQ_CLIENTS_STORE_KV_BINDING, type PublicStoreSettingsSource, StoreApiClient, type StoreApiGetOptions, addCartCoupon, buildStorefrontKvSnapshotKey, buildStorefrontKvSnapshotKeyFromStoreKey, checkoutCart, createCart, createCustomerAddress, createStoreApiClient, customerMeToProfilePatch, deleteCustomerAddress, getCart, getCartCheckout, getCartPaymentMethods, getCustomerAddresses, getCustomerMe, getCustomerOrder, getCustomerOrders, getHostname, getPublicStore, getSharedOrderDraft, getShippingOptions, getStoreApiBaseUrl, getStoreApiClient, getStorefrontCollectionBySlug, getStorefrontCollections, getStorefrontPageBySlug, getStorefrontPagePreview, getStorefrontPages, getStorefrontProductBySlug, getStorefrontProducts, getStorefrontSettings, getStorefrontSettingsFromKv, getStorefrontSettingsFromKvByStoreKey, isCartNotActiveApiError, normalizeStoreHost, patchCartAddresses, patchCartBuyer, patchCustomer, putCartShippingMethod, registerCustomer, removeCartCoupon, resolvePublicStoreSettingsSource, resolveStorefrontSettingsHost, setClientStoreId, setServerRequestOrigin, setServerStoreId, storeApiClient, updateCustomerAddress, uploadPaymentReceipt, usePublicStore, useStoreCart, useStoreCollections, useStorePages, useStoreProducts };