@storepecker/storefront-core 2.5.3 → 2.5.4

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 (69) hide show
  1. package/dist/api/index.cjs +74 -45
  2. package/dist/api/index.d.cts +33 -7
  3. package/dist/api/index.d.ts +33 -7
  4. package/dist/api/index.js +25 -4
  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 +23 -23
  8. package/dist/checkout/index.d.cts +3 -3
  9. package/dist/checkout/index.d.ts +3 -3
  10. package/dist/checkout/index.js +3 -3
  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-DXQX7ZIL.cjs → chunk-LZADKC4Y.cjs} +6 -0
  21. package/dist/{chunk-S3ZZ3ZA7.js → chunk-ME6Z7TZW.js} +6 -1
  22. package/dist/{chunk-P252YNRA.js → chunk-PGBYYKFQ.js} +6 -6
  23. package/dist/{chunk-PZJT2Y5B.cjs → chunk-QSHOJ3NJ.cjs} +7 -7
  24. package/dist/{chunk-CUR7CHR5.js → chunk-TY5NK7NW.js} +1 -1
  25. package/dist/{chunk-NXQIWB36.js → chunk-VYHAWRJR.js} +2 -2
  26. package/dist/{chunk-L43KF3AC.js → chunk-W6BDMNSU.js} +1 -1
  27. package/dist/{chunk-B3BXKMQA.cjs → chunk-YLLAP3H2.cjs} +2 -2
  28. package/dist/{chunk-FU46MZTI.cjs → chunk-ZQOESVVE.cjs} +23 -23
  29. package/dist/{collections-fGX_D_Mi.d.cts → collections-8YdINtUf.d.cts} +1 -1
  30. package/dist/{collections-kERS_kZw.d.ts → collections-ycrA2cPL.d.ts} +1 -1
  31. package/dist/components/address-form.cjs +5 -4
  32. package/dist/components/address-form.js +4 -3
  33. package/dist/components/digital-product-download-modal.d.cts +2 -2
  34. package/dist/components/digital-product-download-modal.d.ts +2 -2
  35. package/dist/components/index.cjs +7 -7
  36. package/dist/components/index.d.cts +5 -5
  37. package/dist/components/index.d.ts +5 -5
  38. package/dist/components/index.js +5 -5
  39. package/dist/components/share-button.cjs +4 -3
  40. package/dist/components/share-button.d.cts +1 -1
  41. package/dist/components/share-button.d.ts +1 -1
  42. package/dist/components/share-button.js +3 -2
  43. package/dist/components/theme-data-initializer.d.cts +5 -5
  44. package/dist/components/theme-data-initializer.d.ts +5 -5
  45. package/dist/hooks/index.cjs +31 -30
  46. package/dist/hooks/index.d.cts +4 -4
  47. package/dist/hooks/index.d.ts +4 -4
  48. package/dist/hooks/index.js +10 -9
  49. package/dist/{booking-Bpj3o6Av.d.cts → instagram-CqJBZ-0X.d.ts} +56 -2
  50. package/dist/{booking-cbb8kh2L.d.ts → instagram-D4JUT4ZU.d.cts} +56 -2
  51. package/dist/models/index.d.cts +6 -6
  52. package/dist/models/index.d.ts +6 -6
  53. package/dist/{orders-BhmpycYJ.d.ts → orders-9_scVq_M.d.cts} +3 -2
  54. package/dist/{orders-CGwKT5L-.d.cts → orders-C1XZr8tx.d.ts} +3 -2
  55. package/dist/{pixelEvents-CA14Tvrs.d.ts → pixelEvents-D0sH22Er.d.ts} +14 -7
  56. package/dist/{pixelEvents-Do1wT3z_.d.cts → pixelEvents-uiPHbiAQ.d.cts} +14 -7
  57. package/dist/{product-B8elBN21.d.cts → product-CZtFWhxO.d.cts} +3 -0
  58. package/dist/{product-B8elBN21.d.ts → product-CZtFWhxO.d.ts} +3 -0
  59. package/dist/store/index.cjs +9 -9
  60. package/dist/store/index.d.cts +7 -7
  61. package/dist/store/index.d.ts +7 -7
  62. package/dist/store/index.js +4 -4
  63. package/dist/utils/index.cjs +31 -27
  64. package/dist/utils/index.d.cts +13 -9
  65. package/dist/utils/index.d.ts +13 -9
  66. package/dist/utils/index.js +4 -4
  67. package/dist/{wishlist-B-bvvOxv.d.ts → wishlist-CRNbfFIx.d.ts} +1 -1
  68. package/dist/{wishlist-BdpIFX5_.d.cts → wishlist-Cx9Vrszq.d.cts} +1 -1
  69. package/package.json +1 -1
@@ -2,11 +2,11 @@
2
2
 
3
3
  var chunkGTV42PDK_cjs = require('../chunk-GTV42PDK.cjs');
4
4
  var chunk2AHH3XBW_cjs = require('../chunk-2AHH3XBW.cjs');
5
- var chunkSMHJRNCR_cjs = require('../chunk-SMHJRNCR.cjs');
5
+ var chunkLCMJYFHC_cjs = require('../chunk-LCMJYFHC.cjs');
6
6
  var chunkK44JZ5NL_cjs = require('../chunk-K44JZ5NL.cjs');
7
- var chunkBBRB475I_cjs = require('../chunk-BBRB475I.cjs');
8
7
  var chunkLJUGNSQQ_cjs = require('../chunk-LJUGNSQQ.cjs');
9
- var chunkOTMTHA5C_cjs = require('../chunk-OTMTHA5C.cjs');
8
+ var chunk6LS5F4R3_cjs = require('../chunk-6LS5F4R3.cjs');
9
+ var chunkBBRB475I_cjs = require('../chunk-BBRB475I.cjs');
10
10
  var chunkBBRXE57K_cjs = require('../chunk-BBRXE57K.cjs');
11
11
  var chunkNE3ZHELZ_cjs = require('../chunk-NE3ZHELZ.cjs');
12
12
  var chunkN3CTXRFT_cjs = require('../chunk-N3CTXRFT.cjs');
@@ -87,7 +87,7 @@ var constructPaymentPayload = async (amount, orderId, userId, phoneNumber, merch
87
87
  const dataPayload = JSON.stringify(paymentPayload);
88
88
  console.log(dataPayload);
89
89
  const dataBase64 = Buffer.from(dataPayload).toString("base64");
90
- const checksum = await chunkOTMTHA5C_cjs.digestMessage(`${dataBase64}/pg/v1/pay${saltKey}`);
90
+ const checksum = await chunk6LS5F4R3_cjs.digestMessage(`${dataBase64}/pg/v1/pay${saltKey}`);
91
91
  const finalChecksum = `${checksum}###${saltIndex}`;
92
92
  return {
93
93
  base64Payload: dataBase64,
@@ -95,7 +95,7 @@ var constructPaymentPayload = async (amount, orderId, userId, phoneNumber, merch
95
95
  };
96
96
  };
97
97
  var createXVerifyHeader = async (merchantId, transactionId, saltKey, saltIndex) => {
98
- const checksum = await chunkOTMTHA5C_cjs.digestMessage(
98
+ const checksum = await chunk6LS5F4R3_cjs.digestMessage(
99
99
  `/pg/v1/status/${merchantId}/${transactionId}${saltKey}`
100
100
  );
101
101
  const finalChecksum = `${checksum}###${saltIndex}`;
@@ -355,20 +355,12 @@ Object.defineProperty(exports, "isVariantCombinationAvailable", {
355
355
  });
356
356
  Object.defineProperty(exports, "LocalCart", {
357
357
  enumerable: true,
358
- get: function () { return chunkSMHJRNCR_cjs.cart_default; }
358
+ get: function () { return chunkLCMJYFHC_cjs.cart_default; }
359
359
  });
360
360
  Object.defineProperty(exports, "pixelEvents", {
361
361
  enumerable: true,
362
362
  get: function () { return chunkK44JZ5NL_cjs.pixelEvents; }
363
363
  });
364
- Object.defineProperty(exports, "isExpired", {
365
- enumerable: true,
366
- get: function () { return chunkBBRB475I_cjs.isExpired; }
367
- });
368
- Object.defineProperty(exports, "timeFromNow", {
369
- enumerable: true,
370
- get: function () { return chunkBBRB475I_cjs.timeFromNow; }
371
- });
372
364
  Object.defineProperty(exports, "CacheManager", {
373
365
  enumerable: true,
374
366
  get: function () { return chunkLJUGNSQQ_cjs.CacheManager; }
@@ -407,55 +399,67 @@ Object.defineProperty(exports, "setCache", {
407
399
  });
408
400
  Object.defineProperty(exports, "constructFilter", {
409
401
  enumerable: true,
410
- get: function () { return chunkOTMTHA5C_cjs.constructFilter; }
402
+ get: function () { return chunk6LS5F4R3_cjs.constructFilter; }
411
403
  });
412
404
  Object.defineProperty(exports, "convertObjectToParams", {
413
405
  enumerable: true,
414
- get: function () { return chunkOTMTHA5C_cjs.convertObjectToParams; }
406
+ get: function () { return chunk6LS5F4R3_cjs.convertObjectToParams; }
415
407
  });
416
408
  Object.defineProperty(exports, "convertToCurrency", {
417
409
  enumerable: true,
418
- get: function () { return chunkOTMTHA5C_cjs.convertToCurrency; }
410
+ get: function () { return chunk6LS5F4R3_cjs.convertToCurrency; }
419
411
  });
420
412
  Object.defineProperty(exports, "digestMessage", {
421
413
  enumerable: true,
422
- get: function () { return chunkOTMTHA5C_cjs.digestMessage; }
414
+ get: function () { return chunk6LS5F4R3_cjs.digestMessage; }
423
415
  });
424
416
  Object.defineProperty(exports, "formatDateTime", {
425
417
  enumerable: true,
426
- get: function () { return chunkOTMTHA5C_cjs.formatDateTime; }
418
+ get: function () { return chunk6LS5F4R3_cjs.formatDateTime; }
427
419
  });
428
420
  Object.defineProperty(exports, "formatPostalLabel", {
429
421
  enumerable: true,
430
- get: function () { return chunkOTMTHA5C_cjs.formatPostalLabel; }
422
+ get: function () { return chunk6LS5F4R3_cjs.formatPostalLabel; }
431
423
  });
432
424
  Object.defineProperty(exports, "getAddressMeta", {
433
425
  enumerable: true,
434
- get: function () { return chunkOTMTHA5C_cjs.getAddressMeta; }
426
+ get: function () { return chunk6LS5F4R3_cjs.getAddressMeta; }
435
427
  });
436
428
  Object.defineProperty(exports, "getDelayInMilliseconds", {
437
429
  enumerable: true,
438
- get: function () { return chunkOTMTHA5C_cjs.getDelayInMilliseconds; }
430
+ get: function () { return chunk6LS5F4R3_cjs.getDelayInMilliseconds; }
431
+ });
432
+ Object.defineProperty(exports, "getOrderStatus", {
433
+ enumerable: true,
434
+ get: function () { return chunk6LS5F4R3_cjs.getOrderStatus; }
439
435
  });
440
436
  Object.defineProperty(exports, "getParamsFromURL", {
441
437
  enumerable: true,
442
- get: function () { return chunkOTMTHA5C_cjs.getParamsFromURL; }
438
+ get: function () { return chunk6LS5F4R3_cjs.getParamsFromURL; }
443
439
  });
444
440
  Object.defineProperty(exports, "getQueryParams", {
445
441
  enumerable: true,
446
- get: function () { return chunkOTMTHA5C_cjs.getQueryParams; }
442
+ get: function () { return chunk6LS5F4R3_cjs.getQueryParams; }
447
443
  });
448
444
  Object.defineProperty(exports, "pluralize", {
449
445
  enumerable: true,
450
- get: function () { return chunkOTMTHA5C_cjs.pluralize; }
446
+ get: function () { return chunk6LS5F4R3_cjs.pluralize; }
451
447
  });
452
448
  Object.defineProperty(exports, "pushParamsToURL", {
453
449
  enumerable: true,
454
- get: function () { return chunkOTMTHA5C_cjs.pushParamsToURL; }
450
+ get: function () { return chunk6LS5F4R3_cjs.pushParamsToURL; }
455
451
  });
456
452
  Object.defineProperty(exports, "shareLink", {
457
453
  enumerable: true,
458
- get: function () { return chunkOTMTHA5C_cjs.shareLink; }
454
+ get: function () { return chunk6LS5F4R3_cjs.shareLink; }
455
+ });
456
+ Object.defineProperty(exports, "isExpired", {
457
+ enumerable: true,
458
+ get: function () { return chunkBBRB475I_cjs.isExpired; }
459
+ });
460
+ Object.defineProperty(exports, "timeFromNow", {
461
+ enumerable: true,
462
+ get: function () { return chunkBBRB475I_cjs.timeFromNow; }
459
463
  });
460
464
  Object.defineProperty(exports, "Auth", {
461
465
  enumerable: true,
@@ -1,14 +1,14 @@
1
- import { f as ProductDetail, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-B8elBN21.cjs';
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.cjs';
3
- import { C as Cart } from '../cart-lJvJzaoH.cjs';
1
+ import { f as ProductDetail, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-CZtFWhxO.cjs';
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.cjs';
3
+ import { C as Cart } from '../cart-CyN2JQTw.cjs';
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.cjs';
5
- import { S as SectionFilters } from '../pixelEvents-Do1wT3z_.cjs';
6
- export { A as AvailableFilter, B as Banner, C as Category, a as CategoryHighlights, b as Collections, c as ColorScheme, F as FilterOption, d as FilterType, e as Footer, H as HeaderCategory, f as Hero, g as HomePageContents, I as ImageWithText, L as LocationData, h as Logo, M as Menuitem, N as NavBar, i as NavElement, j as NavElementOld, P as PageHeaderProps, k as PageMeta, l as PageProps, m as PagePropsFull, n as PreFooter, o as ProductCollection, p as ProductHighlight, R as RibbonBar, q as RibbonMessage, r as Section, s as SectionType, t as SliderSettings, u as SocialLinks, v as SocialMedia, w as StoreReview, x as SubCategory, y as SubCategorySection, T as TemplateTheme, z as Theme, V as ValueHighlights, D as pixelEvents, E as preFooterContent } from '../pixelEvents-Do1wT3z_.cjs';
5
+ import { S as SectionFilters } from '../pixelEvents-uiPHbiAQ.cjs';
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-uiPHbiAQ.cjs';
7
+ import { O as Order } from '../orders-9_scVq_M.cjs';
7
8
  import { AxiosResponse } from 'axios';
8
9
  import { a as PhonePe } from '../phonepe-dWMLZel6.cjs';
9
10
  import 'react-toastify';
10
- import '../collections-fGX_D_Mi.cjs';
11
- import '../orders-CGwKT5L-.cjs';
11
+ import '../collections-8YdINtUf.cjs';
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,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-CA14Tvrs.js';
6
- export { A as AvailableFilter, B as Banner, C as Category, a as CategoryHighlights, b as Collections, c as ColorScheme, F as FilterOption, d as FilterType, e as Footer, H as HeaderCategory, f as Hero, g as HomePageContents, I as ImageWithText, L as LocationData, h as Logo, M as Menuitem, N as NavBar, i as NavElement, j as NavElementOld, P as PageHeaderProps, k as PageMeta, l as PageProps, m as PagePropsFull, n as PreFooter, o as ProductCollection, p as ProductHighlight, R as RibbonBar, q as RibbonMessage, r as Section, s as SectionType, t as SliderSettings, u as SocialLinks, v as SocialMedia, w as StoreReview, x as SubCategory, y as SubCategorySection, T as TemplateTheme, z as Theme, V as ValueHighlights, D as pixelEvents, E as preFooterContent } from '../pixelEvents-CA14Tvrs.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-BhmpycYJ.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.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "Shared logic and utilities for Snapstore themes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",