@storepecker/storefront-core 2.6.1 → 2.6.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.
Files changed (65) hide show
  1. package/dist/api/index.cjs +28 -19
  2. package/dist/api/index.d.cts +20 -7
  3. package/dist/api/index.d.ts +20 -7
  4. package/dist/api/index.js +11 -3
  5. package/dist/{cart-DV1HcSC6.d.ts → cart-BGIsIZdM.d.ts} +1 -1
  6. package/dist/{cart-lJvJzaoH.d.cts → cart-CyN2JQTw.d.cts} +1 -1
  7. package/dist/checkout/index.cjs +1 -1
  8. package/dist/checkout/index.d.cts +3 -3
  9. package/dist/checkout/index.d.ts +3 -3
  10. package/dist/checkout/index.js +1 -1
  11. package/dist/{chunk-PARH5TBK.cjs → chunk-5BT3MH4A.cjs} +3 -3
  12. package/dist/{chunk-EGFOTJPC.js → chunk-5XVHYPOC.js} +1 -1
  13. package/dist/{chunk-OTMTHA5C.cjs → chunk-6LS5F4R3.cjs} +80 -0
  14. package/dist/{chunk-F45S7UWC.js → chunk-CBKJ3Y2I.js} +80 -1
  15. package/dist/{chunk-QAC72HKO.js → chunk-H32TICAM.js} +14 -13
  16. package/dist/{chunk-6Q7QMPOQ.js → chunk-ICKTXS6B.js} +1 -1
  17. package/dist/{chunk-HAQWCNDY.cjs → chunk-IG4BW3ZB.cjs} +3 -3
  18. package/dist/{chunk-KLNKIQQM.cjs → chunk-IVKJJLG7.cjs} +2 -2
  19. package/dist/{chunk-SMHJRNCR.cjs → chunk-LCMJYFHC.cjs} +14 -13
  20. package/dist/{chunk-6NFWEJSD.js → chunk-PGBYYKFQ.js} +5 -5
  21. package/dist/{chunk-CUR7CHR5.js → chunk-TY5NK7NW.js} +1 -1
  22. package/dist/{chunk-L43KF3AC.js → chunk-W6BDMNSU.js} +1 -1
  23. package/dist/{chunk-B3BXKMQA.cjs → chunk-YLLAP3H2.cjs} +2 -2
  24. package/dist/{chunk-DY7PNIB3.cjs → chunk-ZQOESVVE.cjs} +21 -21
  25. package/dist/{collections-fGX_D_Mi.d.cts → collections-8YdINtUf.d.cts} +1 -1
  26. package/dist/{collections-kERS_kZw.d.ts → collections-ycrA2cPL.d.ts} +1 -1
  27. package/dist/components/address-form.cjs +5 -4
  28. package/dist/components/address-form.js +4 -3
  29. package/dist/components/digital-product-download-modal.d.cts +2 -2
  30. package/dist/components/digital-product-download-modal.d.ts +2 -2
  31. package/dist/components/index.cjs +7 -7
  32. package/dist/components/index.d.cts +5 -5
  33. package/dist/components/index.d.ts +5 -5
  34. package/dist/components/index.js +5 -5
  35. package/dist/components/share-button.cjs +4 -3
  36. package/dist/components/share-button.d.cts +1 -1
  37. package/dist/components/share-button.d.ts +1 -1
  38. package/dist/components/share-button.js +3 -2
  39. package/dist/components/theme-data-initializer.d.cts +5 -5
  40. package/dist/components/theme-data-initializer.d.ts +5 -5
  41. package/dist/hooks/index.cjs +23 -22
  42. package/dist/hooks/index.d.cts +4 -4
  43. package/dist/hooks/index.d.ts +4 -4
  44. package/dist/hooks/index.js +8 -7
  45. package/dist/{blog-DDOl23BM.d.cts → instagram-CqJBZ-0X.d.ts} +29 -2
  46. package/dist/{blog-ICspYuDq.d.ts → instagram-D4JUT4ZU.d.cts} +29 -2
  47. package/dist/models/index.d.cts +6 -6
  48. package/dist/models/index.d.ts +6 -6
  49. package/dist/{orders-CGhcSTMg.d.ts → orders-9_scVq_M.d.cts} +3 -2
  50. package/dist/{orders-1vcg6whk.d.cts → orders-C1XZr8tx.d.ts} +3 -2
  51. package/dist/{pixelEvents-BEzVCIBj.d.ts → pixelEvents-D0sH22Er.d.ts} +4 -4
  52. package/dist/{pixelEvents-Bob6N-g5.d.cts → pixelEvents-uiPHbiAQ.d.cts} +4 -4
  53. package/dist/{product-B8elBN21.d.cts → product-CZtFWhxO.d.cts} +3 -0
  54. package/dist/{product-B8elBN21.d.ts → product-CZtFWhxO.d.ts} +3 -0
  55. package/dist/store/index.cjs +8 -8
  56. package/dist/store/index.d.cts +7 -7
  57. package/dist/store/index.d.ts +7 -7
  58. package/dist/store/index.js +3 -3
  59. package/dist/utils/index.cjs +31 -27
  60. package/dist/utils/index.d.cts +13 -9
  61. package/dist/utils/index.d.ts +13 -9
  62. package/dist/utils/index.js +4 -4
  63. package/dist/{wishlist-B-bvvOxv.d.ts → wishlist-CRNbfFIx.d.ts} +1 -1
  64. package/dist/{wishlist-BdpIFX5_.d.cts → wishlist-Cx9Vrszq.d.cts} +1 -1
  65. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- import { f as ProductDetail, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-B8elBN21.js';
2
- export { h as ADDRESS_FORM_SESSION_KEY, i as ALLOWED_COUNTRIES, D as DEFAULT_TOAST_CONFIG, j as PRODUCT_STATUSES, g as SLICE_STATUS, U as USER_CART, k as USER_CREDENTIALS, l as USER_CRED_REFRESH_TOKEN, m as USER_CRED_TOKEN, p as pathNameMap } from '../product-B8elBN21.js';
3
- import { C as Cart } from '../cart-DV1HcSC6.js';
1
+ import { f as ProductDetail, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-CZtFWhxO.js';
2
+ export { h as ADDRESS_FORM_SESSION_KEY, i as ALLOWED_COUNTRIES, D as DEFAULT_TOAST_CONFIG, j as PRODUCT_STATUSES, g as SLICE_STATUS, U as USER_CART, k as USER_CREDENTIALS, l as USER_CRED_REFRESH_TOKEN, m as USER_CRED_TOKEN, p as pathNameMap } from '../product-CZtFWhxO.js';
3
+ import { C as Cart } from '../cart-BGIsIZdM.js';
4
4
  export { S as SnapstoreConfig, g as getApiEndpoint, a as getCloudFront, b as getConfig, c as getPhonePeApiEndpoint, d as getPublicApiEndpoint, e as getSecretKey, f as getStoreId, i as initConfig } from '../index-DTyIuLuI.js';
5
- import { S as SectionFilters } from '../pixelEvents-BEzVCIBj.js';
6
- export { A as AvailableFilter, B as Banner, a as Blogs, C as Category, b as CategoryHighlights, c as Collections, d as ColorScheme, F as FilterOption, e as FilterType, f as Footer, H as HeaderCategory, g as Hero, h as HomePageContents, I as ImageWithText, L as LocationData, i as Logo, M as Menuitem, N as NavBar, j as NavElement, k as NavElementOld, P as PageHeaderProps, l as PageMeta, m as PageProps, n as PagePropsFull, o as PreFooter, p as ProductCollection, q as ProductHighlight, R as RibbonBar, r as RibbonMessage, s as Section, t as SectionType, u as SliderSettings, v as SocialLinks, w as SocialMedia, x as StoreReview, y as SubCategory, z as SubCategorySection, T as TemplateTheme, D as Theme, V as ValueHighlights, E as pixelEvents, G as preFooterContent } from '../pixelEvents-BEzVCIBj.js';
5
+ import { S as SectionFilters } from '../pixelEvents-D0sH22Er.js';
6
+ export { A as AvailableFilter, B as Banner, a as Blogs, C as Category, b as CategoryHighlights, c as Collections, d as ColorScheme, F as FilterOption, e as FilterType, f as Footer, H as HeaderCategory, g as Hero, h as HomePageContents, I as ImageWithText, L as LocationData, i as Logo, M as Menuitem, N as NavBar, j as NavElement, k as NavElementOld, P as PageHeaderProps, l as PageMeta, m as PageProps, n as PagePropsFull, o as PreFooter, p as ProductCollection, q as ProductHighlight, R as RibbonBar, r as RibbonMessage, s as Section, t as SectionType, u as SliderSettings, v as SocialLinks, w as SocialMedia, x as StoreReview, y as SubCategory, z as SubCategorySection, T as TemplateTheme, D as Theme, V as ValueHighlights, E as pixelEvents, G as preFooterContent } from '../pixelEvents-D0sH22Er.js';
7
+ import { O as Order } from '../orders-C1XZr8tx.js';
7
8
  import { AxiosResponse } from 'axios';
8
9
  import { a as PhonePe } from '../phonepe-dWMLZel6.js';
9
10
  import 'react-toastify';
10
- import '../collections-kERS_kZw.js';
11
- import '../orders-CGhcSTMg.js';
11
+ import '../collections-ycrA2cPL.js';
12
12
 
13
13
  declare function setAuthTokenChangeCallback(callback: (token: string | undefined) => void): void;
14
14
  declare const Auth: {
@@ -57,7 +57,7 @@ declare function generateCacheKey(endpoint: string, params?: Record<string, any>
57
57
  declare const LocalCart: {
58
58
  get(): Cart.Root | null;
59
59
  set(cart: any): void;
60
- add(product: ProductDetail.Root): void;
60
+ add(product: ProductDetail.Root, quantity?: number): void;
61
61
  remove(product: ProductDetail.Root): void;
62
62
  updateQuantity(product: ProductDetail.Root, quantity: number): void;
63
63
  clear(): void;
@@ -90,6 +90,10 @@ declare function getAddressMeta(countryCode: string): Promise<{
90
90
  postalLabel: string;
91
91
  hasPostal: boolean;
92
92
  }>;
93
+ declare function getOrderStatus(order: Order.Root | Order.OrderSummary): {
94
+ title: string;
95
+ info?: string;
96
+ };
93
97
 
94
98
  declare class PhonepePayment {
95
99
  private readonly amount;
@@ -207,4 +211,4 @@ declare function isProductCustomized(customizationInputs: Array<{
207
211
  [key: string]: any;
208
212
  }> | undefined, productId: number): boolean;
209
213
 
210
- export { Auth, CacheManager, LocalCart, PhonepePayment, SectionFilters, authRoutes, cache, calculateDiscountPercent, clearCache, constructFilter, convertObjectToParams, convertToCurrency, cropImage, debounce, deleteCache, digestMessage, findMatchingVariant, findSimilarVariant, formatBookingDateTime, formatDateTime, formatPostalLabel, generateCacheKey, generateTimeOptions, getAddressMeta, getAvailableDaysText, getCache, getDelayInMilliseconds, getNextAvailableDate, getParamsFromURL, getQueryParams, getTimeConstraints, getUniqueId, hasCache, invalidateCache, isAvailableDay, isColorVariantType, isExpired, isProductCustomized, isVariantCombinationAvailable, pluralize, protectedRoutes, publicRoutes, pushParamsToURL, setAuthTokenChangeCallback, setCache, shareLink, timeFromNow, urls };
214
+ export { Auth, CacheManager, LocalCart, PhonepePayment, SectionFilters, authRoutes, cache, calculateDiscountPercent, clearCache, constructFilter, convertObjectToParams, convertToCurrency, cropImage, debounce, deleteCache, digestMessage, findMatchingVariant, findSimilarVariant, formatBookingDateTime, formatDateTime, formatPostalLabel, generateCacheKey, generateTimeOptions, getAddressMeta, getAvailableDaysText, getCache, getDelayInMilliseconds, getNextAvailableDate, getOrderStatus, getParamsFromURL, getQueryParams, getTimeConstraints, getUniqueId, hasCache, invalidateCache, isAvailableDay, isColorVariantType, isExpired, isProductCustomized, isVariantCombinationAvailable, pluralize, protectedRoutes, publicRoutes, pushParamsToURL, setAuthTokenChangeCallback, setCache, shareLink, timeFromNow, urls };
@@ -1,11 +1,11 @@
1
1
  export { authRoutes, protectedRoutes, publicRoutes, routes_default as urls } from '../chunk-4C4NTH6O.js';
2
2
  export { findMatchingVariant, findSimilarVariant, isColorVariantType, isVariantCombinationAvailable } from '../chunk-HEFA67WK.js';
3
- export { cart_default as LocalCart } from '../chunk-QAC72HKO.js';
3
+ export { cart_default as LocalCart } from '../chunk-H32TICAM.js';
4
4
  export { pixelEvents } from '../chunk-WFDKKOO7.js';
5
- export { isExpired, timeFromNow } from '../chunk-HSF2D56O.js';
6
5
  export { CacheManager, cache, clearCache, deleteCache, generateCacheKey, getCache, hasCache, invalidateCache, setCache } from '../chunk-OSM73ETC.js';
7
- import { digestMessage } from '../chunk-F45S7UWC.js';
8
- export { constructFilter, convertObjectToParams, convertToCurrency, digestMessage, formatDateTime, formatPostalLabel, getAddressMeta, getDelayInMilliseconds, getParamsFromURL, getQueryParams, pluralize, pushParamsToURL, shareLink } from '../chunk-F45S7UWC.js';
6
+ import { digestMessage } from '../chunk-CBKJ3Y2I.js';
7
+ export { constructFilter, convertObjectToParams, convertToCurrency, digestMessage, formatDateTime, formatPostalLabel, getAddressMeta, getDelayInMilliseconds, getOrderStatus, getParamsFromURL, getQueryParams, pluralize, pushParamsToURL, shareLink } from '../chunk-CBKJ3Y2I.js';
8
+ export { isExpired, timeFromNow } from '../chunk-HSF2D56O.js';
9
9
  export { auth_default as Auth, setAuthTokenChangeCallback } from '../chunk-WEMNXIRS.js';
10
10
  export { ADDRESS_FORM_SESSION_KEY, ALLOWED_COUNTRIES, DEFAULT_TOAST_CONFIG, PRODUCT_STATUSES, SLICE_STATUS, USER_CART, USER_CREDENTIALS, USER_CRED_REFRESH_TOKEN, USER_CRED_TOKEN, pathNameMap } from '../chunk-BQ256JKN.js';
11
11
  import { getPhonePeApiEndpoint, getPublicApiEndpoint } from '../chunk-JQMLHRWL.js';
@@ -1,4 +1,4 @@
1
- import { f as ProductDetail } from './product-B8elBN21.js';
1
+ import { f as ProductDetail } from './product-CZtFWhxO.js';
2
2
 
3
3
  declare namespace Wishlist {
4
4
  interface Root {
@@ -1,4 +1,4 @@
1
- import { f as ProductDetail } from './product-B8elBN21.cjs';
1
+ import { f as ProductDetail } from './product-CZtFWhxO.cjs';
2
2
 
3
3
  declare namespace Wishlist {
4
4
  interface Root {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storepecker/storefront-core",
3
- "version": "2.6.1",
3
+ "version": "2.6.3",
4
4
  "description": "Shared logic and utilities for Snapstore themes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",