@cimplify/sdk 0.51.1 → 0.52.1

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 (51) hide show
  1. package/dist/advanced.d.mts +1 -1
  2. package/dist/advanced.d.ts +1 -1
  3. package/dist/advanced.js +23 -22
  4. package/dist/advanced.mjs +4 -3
  5. package/dist/chunk-3G6RQLXK.mjs +21 -0
  6. package/dist/{chunk-GUZXQSGI.mjs → chunk-4QDCMYYB.mjs} +10 -21
  7. package/dist/{chunk-CAG3TEXO.js → chunk-7A3D3LFI.js} +4 -4
  8. package/dist/{chunk-6RP6OPYO.js → chunk-7Y2O3E4D.js} +3 -3
  9. package/dist/{chunk-Z2AYLZDF.mjs → chunk-AMZXALF6.mjs} +1 -21
  10. package/dist/{chunk-VOWMB2KR.js → chunk-EQLT46ZR.js} +75 -78
  11. package/dist/{chunk-FXACV333.mjs → chunk-GLAVTDDE.mjs} +55 -58
  12. package/dist/chunk-OWW5GUSB.js +28 -0
  13. package/dist/{chunk-GEWFWQYK.js → chunk-Q5VGDCQF.js} +235 -234
  14. package/dist/{chunk-632JEJUS.mjs → chunk-R3F55BRN.mjs} +2 -1
  15. package/dist/{chunk-QCS6D4XW.mjs → chunk-RDORJT7Y.mjs} +2 -2
  16. package/dist/{chunk-XY2DFX5K.mjs → chunk-TD3AY34U.mjs} +1 -1
  17. package/dist/{chunk-FJQC4VSN.js → chunk-W6CCBNGL.js} +68 -79
  18. package/dist/{chunk-TKOTACKZ.js → chunk-XA3ZNR75.js} +0 -26
  19. package/dist/{client-CF2pmEE9.d.mts → client-C6J_RGlr.d.mts} +27 -45
  20. package/dist/{client-B6x53-Al.d.ts → client-CX7IFIkL.d.ts} +27 -45
  21. package/dist/{client-BbrCopIS.d.mts → client-DdefKjcs.d.mts} +1 -1
  22. package/dist/{client-BvEjhvwq.d.ts → client-Lt7uGLmT.d.ts} +1 -1
  23. package/dist/index.d.mts +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +110 -109
  26. package/dist/index.mjs +5 -4
  27. package/dist/react.d.mts +1 -1
  28. package/dist/react.d.ts +1 -1
  29. package/dist/react.js +86 -85
  30. package/dist/react.mjs +5 -4
  31. package/dist/server/evict.d.mts +31 -0
  32. package/dist/server/evict.d.ts +31 -0
  33. package/dist/server/evict.js +75 -0
  34. package/dist/server/evict.mjs +73 -0
  35. package/dist/server.d.mts +11 -48
  36. package/dist/server.d.ts +11 -48
  37. package/dist/server.js +7 -76
  38. package/dist/server.mjs +6 -74
  39. package/dist/testing/msw.js +4 -3
  40. package/dist/testing/msw.mjs +3 -2
  41. package/dist/testing/suite.d.mts +2 -2
  42. package/dist/testing/suite.d.ts +2 -2
  43. package/dist/testing/suite.js +26 -25
  44. package/dist/testing/suite.mjs +7 -6
  45. package/dist/testing.d.mts +2 -2
  46. package/dist/testing.d.ts +2 -2
  47. package/dist/testing.js +82 -81
  48. package/dist/testing.mjs +8 -7
  49. package/dist/utils.js +30 -29
  50. package/dist/utils.mjs +3 -2
  51. package/package.json +7 -1
package/dist/utils.js CHANGED
@@ -1,8 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
4
- var chunk6RP6OPYO_js = require('./chunk-6RP6OPYO.js');
5
- require('./chunk-TKOTACKZ.js');
4
+ var chunk7Y2O3E4D_js = require('./chunk-7Y2O3E4D.js');
5
+ require('./chunk-XA3ZNR75.js');
6
+ require('./chunk-OWW5GUSB.js');
6
7
 
7
8
 
8
9
 
@@ -20,109 +21,109 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
20
21
  });
21
22
  Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
22
23
  enumerable: true,
23
- get: function () { return chunk6RP6OPYO_js.CURRENCY_SYMBOLS; }
24
+ get: function () { return chunk7Y2O3E4D_js.CURRENCY_SYMBOLS; }
24
25
  });
25
26
  Object.defineProperty(exports, "MOBILE_MONEY_PROVIDERS", {
26
27
  enumerable: true,
27
- get: function () { return chunk6RP6OPYO_js.MOBILE_MONEY_PROVIDERS; }
28
+ get: function () { return chunk7Y2O3E4D_js.MOBILE_MONEY_PROVIDERS; }
28
29
  });
29
30
  Object.defineProperty(exports, "categorizePaymentError", {
30
31
  enumerable: true,
31
- get: function () { return chunk6RP6OPYO_js.categorizePaymentError; }
32
+ get: function () { return chunk7Y2O3E4D_js.categorizePaymentError; }
32
33
  });
33
34
  Object.defineProperty(exports, "detectMobileMoneyProvider", {
34
35
  enumerable: true,
35
- get: function () { return chunk6RP6OPYO_js.detectMobileMoneyProvider; }
36
+ get: function () { return chunk7Y2O3E4D_js.detectMobileMoneyProvider; }
36
37
  });
37
38
  Object.defineProperty(exports, "formatMoney", {
38
39
  enumerable: true,
39
- get: function () { return chunk6RP6OPYO_js.formatMoney; }
40
+ get: function () { return chunk7Y2O3E4D_js.formatMoney; }
40
41
  });
41
42
  Object.defineProperty(exports, "formatNumberCompact", {
42
43
  enumerable: true,
43
- get: function () { return chunk6RP6OPYO_js.formatNumberCompact; }
44
+ get: function () { return chunk7Y2O3E4D_js.formatNumberCompact; }
44
45
  });
45
46
  Object.defineProperty(exports, "formatPrice", {
46
47
  enumerable: true,
47
- get: function () { return chunk6RP6OPYO_js.formatPrice; }
48
+ get: function () { return chunk7Y2O3E4D_js.formatPrice; }
48
49
  });
49
50
  Object.defineProperty(exports, "formatPriceAdjustment", {
50
51
  enumerable: true,
51
- get: function () { return chunk6RP6OPYO_js.formatPriceAdjustment; }
52
+ get: function () { return chunk7Y2O3E4D_js.formatPriceAdjustment; }
52
53
  });
53
54
  Object.defineProperty(exports, "formatPriceCompact", {
54
55
  enumerable: true,
55
- get: function () { return chunk6RP6OPYO_js.formatPriceCompact; }
56
+ get: function () { return chunk7Y2O3E4D_js.formatPriceCompact; }
56
57
  });
57
58
  Object.defineProperty(exports, "formatPriceWithTax", {
58
59
  enumerable: true,
59
- get: function () { return chunk6RP6OPYO_js.formatPriceWithTax; }
60
+ get: function () { return chunk7Y2O3E4D_js.formatPriceWithTax; }
60
61
  });
61
62
  Object.defineProperty(exports, "formatProductPrice", {
62
63
  enumerable: true,
63
- get: function () { return chunk6RP6OPYO_js.formatProductPrice; }
64
+ get: function () { return chunk7Y2O3E4D_js.formatProductPrice; }
64
65
  });
65
66
  Object.defineProperty(exports, "getBasePrice", {
66
67
  enumerable: true,
67
- get: function () { return chunk6RP6OPYO_js.getBasePrice; }
68
+ get: function () { return chunk7Y2O3E4D_js.getBasePrice; }
68
69
  });
69
70
  Object.defineProperty(exports, "getCurrencySymbol", {
70
71
  enumerable: true,
71
- get: function () { return chunk6RP6OPYO_js.getCurrencySymbol; }
72
+ get: function () { return chunk7Y2O3E4D_js.getCurrencySymbol; }
72
73
  });
73
74
  Object.defineProperty(exports, "getDiscountPercentage", {
74
75
  enumerable: true,
75
- get: function () { return chunk6RP6OPYO_js.getDiscountPercentage; }
76
+ get: function () { return chunk7Y2O3E4D_js.getDiscountPercentage; }
76
77
  });
77
78
  Object.defineProperty(exports, "getDisplayPrice", {
78
79
  enumerable: true,
79
- get: function () { return chunk6RP6OPYO_js.getDisplayPrice; }
80
+ get: function () { return chunk7Y2O3E4D_js.getDisplayPrice; }
80
81
  });
81
82
  Object.defineProperty(exports, "getMarkupPercentage", {
82
83
  enumerable: true,
83
- get: function () { return chunk6RP6OPYO_js.getMarkupPercentage; }
84
+ get: function () { return chunk7Y2O3E4D_js.getMarkupPercentage; }
84
85
  });
85
86
  Object.defineProperty(exports, "getProductCurrency", {
86
87
  enumerable: true,
87
- get: function () { return chunk6RP6OPYO_js.getProductCurrency; }
88
+ get: function () { return chunk7Y2O3E4D_js.getProductCurrency; }
88
89
  });
89
90
  Object.defineProperty(exports, "getTaxAmount", {
90
91
  enumerable: true,
91
- get: function () { return chunk6RP6OPYO_js.getTaxAmount; }
92
+ get: function () { return chunk7Y2O3E4D_js.getTaxAmount; }
92
93
  });
93
94
  Object.defineProperty(exports, "hasTaxInfo", {
94
95
  enumerable: true,
95
- get: function () { return chunk6RP6OPYO_js.hasTaxInfo; }
96
+ get: function () { return chunk7Y2O3E4D_js.hasTaxInfo; }
96
97
  });
97
98
  Object.defineProperty(exports, "isOnSale", {
98
99
  enumerable: true,
99
- get: function () { return chunk6RP6OPYO_js.isOnSale; }
100
+ get: function () { return chunk7Y2O3E4D_js.isOnSale; }
100
101
  });
101
102
  Object.defineProperty(exports, "isPaymentStatusFailure", {
102
103
  enumerable: true,
103
- get: function () { return chunk6RP6OPYO_js.isPaymentStatusFailure; }
104
+ get: function () { return chunk7Y2O3E4D_js.isPaymentStatusFailure; }
104
105
  });
105
106
  Object.defineProperty(exports, "isPaymentStatusRequiresAction", {
106
107
  enumerable: true,
107
- get: function () { return chunk6RP6OPYO_js.isPaymentStatusRequiresAction; }
108
+ get: function () { return chunk7Y2O3E4D_js.isPaymentStatusRequiresAction; }
108
109
  });
109
110
  Object.defineProperty(exports, "isPaymentStatusSuccess", {
110
111
  enumerable: true,
111
- get: function () { return chunk6RP6OPYO_js.isPaymentStatusSuccess; }
112
+ get: function () { return chunk7Y2O3E4D_js.isPaymentStatusSuccess; }
112
113
  });
113
114
  Object.defineProperty(exports, "isTaxInclusive", {
114
115
  enumerable: true,
115
- get: function () { return chunk6RP6OPYO_js.isTaxInclusive; }
116
+ get: function () { return chunk7Y2O3E4D_js.isTaxInclusive; }
116
117
  });
117
118
  Object.defineProperty(exports, "normalizePaymentResponse", {
118
119
  enumerable: true,
119
- get: function () { return chunk6RP6OPYO_js.normalizePaymentResponse; }
120
+ get: function () { return chunk7Y2O3E4D_js.normalizePaymentResponse; }
120
121
  });
121
122
  Object.defineProperty(exports, "normalizeStatusResponse", {
122
123
  enumerable: true,
123
- get: function () { return chunk6RP6OPYO_js.normalizeStatusResponse; }
124
+ get: function () { return chunk7Y2O3E4D_js.normalizeStatusResponse; }
124
125
  });
125
126
  Object.defineProperty(exports, "parsePrice", {
126
127
  enumerable: true,
127
- get: function () { return chunk6RP6OPYO_js.parsePrice; }
128
+ get: function () { return chunk7Y2O3E4D_js.parsePrice; }
128
129
  });
package/dist/utils.mjs CHANGED
@@ -1,3 +1,4 @@
1
1
  export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
2
- export { CURRENCY_SYMBOLS, MOBILE_MONEY_PROVIDERS, categorizePaymentError, detectMobileMoneyProvider, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getMarkupPercentage, getProductCurrency, getTaxAmount, hasTaxInfo, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isTaxInclusive, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-XY2DFX5K.mjs';
3
- import './chunk-Z2AYLZDF.mjs';
2
+ export { CURRENCY_SYMBOLS, MOBILE_MONEY_PROVIDERS, categorizePaymentError, detectMobileMoneyProvider, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getMarkupPercentage, getProductCurrency, getTaxAmount, hasTaxInfo, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isTaxInclusive, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-TD3AY34U.mjs';
3
+ import './chunk-AMZXALF6.mjs';
4
+ import './chunk-3G6RQLXK.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cimplify/sdk",
3
- "version": "0.51.1",
3
+ "version": "0.52.1",
4
4
  "description": "Cimplify Commerce SDK for storefronts",
5
5
  "keywords": [
6
6
  "cimplify",
@@ -47,6 +47,12 @@
47
47
  "import": "./dist/server.mjs",
48
48
  "require": "./dist/server.js"
49
49
  },
50
+ "./server/evict": {
51
+ "types": "./dist/server/evict.d.ts",
52
+ "react-server": "./dist/server/evict.mjs",
53
+ "import": "./dist/server/evict.mjs",
54
+ "require": "./dist/server/evict.js"
55
+ },
50
56
  "./mock": {
51
57
  "types": "./dist/mock/library.d.ts",
52
58
  "import": "./dist/mock/library.mjs",