@cimplify/sdk 0.83.0 → 0.85.0

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 +3 -3
  2. package/dist/advanced.d.ts +3 -3
  3. package/dist/{chunk-ODEPW244.js → chunk-A6J7W6DH.js} +2 -2
  4. package/dist/{chunk-I6RE4BKH.mjs → chunk-DU4IX2I2.mjs} +1 -1
  5. package/dist/{chunk-PLTP6HWW.mjs → chunk-GIFVSWYJ.mjs} +18 -18
  6. package/dist/{chunk-FKBXZ2A6.js → chunk-NWTCBGJ2.js} +18 -18
  7. package/dist/{client-Cogz7C1t.d.mts → client-BEhIE0Dm.d.mts} +2 -2
  8. package/dist/{client-Cq3B-WXv.d.ts → client-BT5gaiGR.d.ts} +2 -2
  9. package/dist/{client-DnHP_2Jw.d.mts → client-DLtwQ-jI.d.mts} +2 -2
  10. package/dist/{client-xc2aQSB4.d.ts → client-WKKxIiF1.d.ts} +2 -2
  11. package/dist/{index-C4xE31-D.d.ts → index-BrC1x2kK.d.ts} +3 -3
  12. package/dist/{index-Dy8D3r9b.d.mts → index-DZz6hdrT.d.mts} +3 -3
  13. package/dist/index.d.mts +6 -6
  14. package/dist/index.d.ts +6 -6
  15. package/dist/mock/cli.mjs +657 -353
  16. package/dist/mock/library.js +18 -18
  17. package/dist/mock/library.mjs +18 -18
  18. package/dist/mock/msw.js +18 -18
  19. package/dist/mock/msw.mjs +18 -18
  20. package/dist/{payment-nH9OCUg2.d.ts → payment-D1f3ZQPC.d.ts} +1 -1
  21. package/dist/{payment-T_0MUE9o.d.mts → payment-Dh-6cRcV.d.mts} +1 -1
  22. package/dist/{price-Bg7hujK_.d.mts → price-4T7dlhxM.d.mts} +5 -1
  23. package/dist/{price-B8WMoldA.d.ts → price-CQdOJoX-.d.ts} +5 -1
  24. package/dist/{product-DXhjLQ_w.d.mts → product-RJMIdCAf.d.mts} +39 -2
  25. package/dist/{product-DXhjLQ_w.d.ts → product-RJMIdCAf.d.ts} +39 -2
  26. package/dist/react.d.mts +51 -5
  27. package/dist/react.d.ts +51 -5
  28. package/dist/react.js +137 -27
  29. package/dist/react.mjs +136 -28
  30. package/dist/{server-DaovvB9J.d.mts → server-DjK98UW-.d.mts} +1 -1
  31. package/dist/{server-ZGCyuz4V.d.ts → server-DvThXldo.d.ts} +1 -1
  32. package/dist/server.d.mts +4 -4
  33. package/dist/server.d.ts +4 -4
  34. package/dist/styles.css +1 -1
  35. package/dist/testing/msw.d.mts +2 -2
  36. package/dist/testing/msw.d.ts +2 -2
  37. package/dist/testing/msw.js +2 -2
  38. package/dist/testing/msw.mjs +1 -1
  39. package/dist/testing/suite.d.mts +6 -6
  40. package/dist/testing/suite.d.ts +6 -6
  41. package/dist/testing/suite.js +21 -21
  42. package/dist/testing/suite.mjs +2 -2
  43. package/dist/testing.d.mts +20 -20
  44. package/dist/testing.d.ts +20 -20
  45. package/dist/testing.js +77 -77
  46. package/dist/testing.mjs +3 -3
  47. package/dist/utils.d.mts +4 -4
  48. package/dist/utils.d.ts +4 -4
  49. package/package.json +21 -21
  50. package/registry/default-product-layout.json +1 -1
  51. package/registry/retail-product-card.json +1 -1
package/dist/testing.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { z } from 'zod';
2
2
  import { $ZodType } from 'zod/v4/core';
3
- export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-Cq3B-WXv.js';
4
- import './client-xc2aQSB4.js';
5
- import './product-DXhjLQ_w.js';
6
- import './payment-nH9OCUg2.js';
7
- import './server-ZGCyuz4V.js';
3
+ export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-BT5gaiGR.js';
4
+ import './client-WKKxIiF1.js';
5
+ import './product-RJMIdCAf.js';
6
+ import './payment-D1f3ZQPC.js';
7
+ import './server-DvThXldo.js';
8
8
  import 'hono';
9
9
 
10
10
  /**
@@ -54,8 +54,8 @@ declare const CountryCodeSchema: z.ZodString;
54
54
  declare const LocaleSchema: z.ZodString;
55
55
  declare const PhoneE164Schema: z.ZodString;
56
56
  declare const SeedNameSchema: z.ZodEnum<{
57
- empty: "empty";
58
57
  default: "default";
58
+ empty: "empty";
59
59
  "reesa-storefront": "reesa-storefront";
60
60
  restaurant: "restaurant";
61
61
  retail: "retail";
@@ -71,11 +71,11 @@ declare const ProductTypeSchema: z.ZodEnum<{
71
71
  composite: "composite";
72
72
  }>;
73
73
  declare const LineTypeSchema: z.ZodEnum<{
74
- simple: "simple";
75
74
  service: "service";
76
75
  digital: "digital";
77
76
  bundle: "bundle";
78
77
  composite: "composite";
78
+ simple: "simple";
79
79
  }>;
80
80
  declare const ServiceStatusSchema: z.ZodEnum<{
81
81
  pending: "pending";
@@ -365,8 +365,8 @@ declare const BrandSchema: z.ZodObject<{
365
365
  }, z.core.$strip>;
366
366
  mock: z.ZodObject<{
367
367
  seed: z.ZodEnum<{
368
- empty: "empty";
369
368
  default: "default";
369
+ empty: "empty";
370
370
  "reesa-storefront": "reesa-storefront";
371
371
  restaurant: "restaurant";
372
372
  retail: "retail";
@@ -531,7 +531,7 @@ declare const assertBrand: (value: unknown) => asserts value is {
531
531
  summary: string;
532
532
  };
533
533
  mock: {
534
- seed: "empty" | "default" | "reesa-storefront" | "restaurant" | "retail" | "services" | "grocery" | "fashion";
534
+ seed: "default" | "empty" | "reesa-storefront" | "restaurant" | "retail" | "services" | "grocery" | "fashion";
535
535
  businessId: string;
536
536
  };
537
537
  trustItems?: {
@@ -780,11 +780,11 @@ declare const CartItemSchema: z.ZodObject<{
780
780
  quantity: z.ZodNumber;
781
781
  line_key: z.ZodString;
782
782
  line_type: z.ZodEnum<{
783
- simple: "simple";
784
783
  service: "service";
785
784
  digital: "digital";
786
785
  bundle: "bundle";
787
786
  composite: "composite";
787
+ simple: "simple";
788
788
  }>;
789
789
  name: z.ZodString;
790
790
  description: z.ZodOptional<z.ZodString>;
@@ -926,7 +926,7 @@ declare const assertCartItem: (value: unknown) => asserts value is {
926
926
  item_id: string;
927
927
  quantity: number;
928
928
  line_key: string;
929
- line_type: "simple" | "service" | "digital" | "bundle" | "composite";
929
+ line_type: "service" | "digital" | "bundle" | "composite" | "simple";
930
930
  name: string;
931
931
  is_available: boolean;
932
932
  base_price: string;
@@ -1079,11 +1079,11 @@ declare const CartSchema: z.ZodObject<{
1079
1079
  quantity: z.ZodNumber;
1080
1080
  line_key: z.ZodString;
1081
1081
  line_type: z.ZodEnum<{
1082
- simple: "simple";
1083
1082
  service: "service";
1084
1083
  digital: "digital";
1085
1084
  bundle: "bundle";
1086
1085
  composite: "composite";
1086
+ simple: "simple";
1087
1087
  }>;
1088
1088
  name: z.ZodString;
1089
1089
  description: z.ZodOptional<z.ZodString>;
@@ -1256,7 +1256,7 @@ declare const assertCart: (value: unknown) => asserts value is {
1256
1256
  item_id: string;
1257
1257
  quantity: number;
1258
1258
  line_key: string;
1259
- line_type: "simple" | "service" | "digital" | "bundle" | "composite";
1259
+ line_type: "service" | "digital" | "bundle" | "composite" | "simple";
1260
1260
  name: string;
1261
1261
  is_available: boolean;
1262
1262
  base_price: string;
@@ -1475,10 +1475,10 @@ declare const assertCheckoutBody: (value: unknown) => asserts value is {
1475
1475
  };
1476
1476
  declare const AuthorizationTypeSchema: z.ZodEnum<{
1477
1477
  phone: "phone";
1478
+ address: "address";
1478
1479
  otp: "otp";
1479
1480
  pin: "pin";
1480
1481
  birthday: "birthday";
1481
- address: "address";
1482
1482
  }>;
1483
1483
  declare const NextActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1484
1484
  type: z.ZodLiteral<"none">;
@@ -1498,10 +1498,10 @@ declare const CheckoutResponseSchema: z.ZodObject<{
1498
1498
  requires_authorization: z.ZodBoolean;
1499
1499
  authorization_type: z.ZodOptional<z.ZodEnum<{
1500
1500
  phone: "phone";
1501
+ address: "address";
1501
1502
  otp: "otp";
1502
1503
  pin: "pin";
1503
1504
  birthday: "birthday";
1504
- address: "address";
1505
1505
  }>>;
1506
1506
  next_action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1507
1507
  type: z.ZodLiteral<"none">;
@@ -1538,7 +1538,7 @@ declare const assertCheckoutResponse: (value: unknown) => asserts value is {
1538
1538
  display_text?: string | undefined;
1539
1539
  };
1540
1540
  payment_reference?: string | undefined;
1541
- authorization_type?: "phone" | "otp" | "pin" | "birthday" | "address" | undefined;
1541
+ authorization_type?: "phone" | "address" | "otp" | "pin" | "birthday" | undefined;
1542
1542
  provider?: string | undefined;
1543
1543
  authorization_url?: string | undefined;
1544
1544
  display_text?: string | undefined;
@@ -1737,8 +1737,8 @@ declare const PUBLIC_SCHEMAS: {
1737
1737
  }, z.core.$strip>;
1738
1738
  mock: z.ZodObject<{
1739
1739
  seed: z.ZodEnum<{
1740
- empty: "empty";
1741
1740
  default: "default";
1741
+ empty: "empty";
1742
1742
  "reesa-storefront": "reesa-storefront";
1743
1743
  restaurant: "restaurant";
1744
1744
  retail: "retail";
@@ -1798,11 +1798,11 @@ declare const PUBLIC_SCHEMAS: {
1798
1798
  quantity: z.ZodNumber;
1799
1799
  line_key: z.ZodString;
1800
1800
  line_type: z.ZodEnum<{
1801
- simple: "simple";
1802
1801
  service: "service";
1803
1802
  digital: "digital";
1804
1803
  bundle: "bundle";
1805
1804
  composite: "composite";
1805
+ simple: "simple";
1806
1806
  }>;
1807
1807
  name: z.ZodString;
1808
1808
  description: z.ZodOptional<z.ZodString>;
@@ -1970,11 +1970,11 @@ declare const PUBLIC_SCHEMAS: {
1970
1970
  quantity: z.ZodNumber;
1971
1971
  line_key: z.ZodString;
1972
1972
  line_type: z.ZodEnum<{
1973
- simple: "simple";
1974
1973
  service: "service";
1975
1974
  digital: "digital";
1976
1975
  bundle: "bundle";
1977
1976
  composite: "composite";
1977
+ simple: "simple";
1978
1978
  }>;
1979
1979
  name: z.ZodString;
1980
1980
  description: z.ZodOptional<z.ZodString>;
@@ -2152,10 +2152,10 @@ declare const PUBLIC_SCHEMAS: {
2152
2152
  requires_authorization: z.ZodBoolean;
2153
2153
  authorization_type: z.ZodOptional<z.ZodEnum<{
2154
2154
  phone: "phone";
2155
+ address: "address";
2155
2156
  otp: "otp";
2156
2157
  pin: "pin";
2157
2158
  birthday: "birthday";
2158
- address: "address";
2159
2159
  }>>;
2160
2160
  next_action: z.ZodDiscriminatedUnion<[z.ZodObject<{
2161
2161
  type: z.ZodLiteral<"none">;
package/dist/testing.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkODEPW244_js = require('./chunk-ODEPW244.js');
4
- require('./chunk-FKBXZ2A6.js');
3
+ var chunkA6J7W6DH_js = require('./chunk-A6J7W6DH.js');
4
+ require('./chunk-NWTCBGJ2.js');
5
5
  require('./chunk-GFM5JW45.js');
6
6
  require('./chunk-HPN5R3K2.js');
7
7
  require('./chunk-7Y2O3E4D.js');
@@ -10,20 +10,20 @@ require('./chunk-OWW5GUSB.js');
10
10
  var zod = require('zod');
11
11
 
12
12
  var PUBLIC_SCHEMAS = {
13
- Brand: chunkODEPW244_js.BrandSchema,
14
- AddItemPayload: chunkODEPW244_js.AddItemPayloadSchema,
15
- Cart: chunkODEPW244_js.CartSchema,
16
- CartItem: chunkODEPW244_js.CartItemSchema,
17
- CartPricing: chunkODEPW244_js.CartPricingSchema,
18
- CheckoutBody: chunkODEPW244_js.CheckoutBodySchema,
19
- CheckoutResponse: chunkODEPW244_js.CheckoutResponseSchema,
20
- VariantInfo: chunkODEPW244_js.VariantInfoSchema
13
+ Brand: chunkA6J7W6DH_js.BrandSchema,
14
+ AddItemPayload: chunkA6J7W6DH_js.AddItemPayloadSchema,
15
+ Cart: chunkA6J7W6DH_js.CartSchema,
16
+ CartItem: chunkA6J7W6DH_js.CartItemSchema,
17
+ CartPricing: chunkA6J7W6DH_js.CartPricingSchema,
18
+ CheckoutBody: chunkA6J7W6DH_js.CheckoutBodySchema,
19
+ CheckoutResponse: chunkA6J7W6DH_js.CheckoutResponseSchema,
20
+ VariantInfo: chunkA6J7W6DH_js.VariantInfoSchema
21
21
  };
22
22
  function exportJsonSchemas() {
23
23
  const out = {};
24
24
  for (const [name, schema] of Object.entries(PUBLIC_SCHEMAS)) {
25
- const meta = chunkODEPW244_js.cimplifyRegistry.get(schema);
26
- const json = zod.z.toJSONSchema(schema, { metadata: chunkODEPW244_js.cimplifyRegistry });
25
+ const meta = chunkA6J7W6DH_js.cimplifyRegistry.get(schema);
26
+ const json = zod.z.toJSONSchema(schema, { metadata: chunkA6J7W6DH_js.cimplifyRegistry });
27
27
  if (meta) {
28
28
  json.$id = meta.id;
29
29
  json["x-cimplify-version"] = meta.version;
@@ -35,16 +35,16 @@ function exportJsonSchemas() {
35
35
  function listRegisteredSchemas() {
36
36
  const entries = [];
37
37
  for (const schema of [
38
- chunkODEPW244_js.BrandSchema,
39
- chunkODEPW244_js.AddItemPayloadSchema,
40
- chunkODEPW244_js.CartSchema,
41
- chunkODEPW244_js.CartItemSchema,
42
- chunkODEPW244_js.CartPricingSchema,
43
- chunkODEPW244_js.CheckoutBodySchema,
44
- chunkODEPW244_js.CheckoutResponseSchema,
45
- chunkODEPW244_js.VariantInfoSchema
38
+ chunkA6J7W6DH_js.BrandSchema,
39
+ chunkA6J7W6DH_js.AddItemPayloadSchema,
40
+ chunkA6J7W6DH_js.CartSchema,
41
+ chunkA6J7W6DH_js.CartItemSchema,
42
+ chunkA6J7W6DH_js.CartPricingSchema,
43
+ chunkA6J7W6DH_js.CheckoutBodySchema,
44
+ chunkA6J7W6DH_js.CheckoutResponseSchema,
45
+ chunkA6J7W6DH_js.VariantInfoSchema
46
46
  ]) {
47
- const meta = chunkODEPW244_js.cimplifyRegistry.get(schema);
47
+ const meta = chunkA6J7W6DH_js.cimplifyRegistry.get(schema);
48
48
  if (meta) entries.push({ schema, meta });
49
49
  }
50
50
  return entries;
@@ -52,227 +52,227 @@ function listRegisteredSchemas() {
52
52
 
53
53
  Object.defineProperty(exports, "AddItemPayloadSchema", {
54
54
  enumerable: true,
55
- get: function () { return chunkODEPW244_js.AddItemPayloadSchema; }
55
+ get: function () { return chunkA6J7W6DH_js.AddItemPayloadSchema; }
56
56
  });
57
57
  Object.defineProperty(exports, "AddOnDetailsSchema", {
58
58
  enumerable: true,
59
- get: function () { return chunkODEPW244_js.AddOnDetailsSchema; }
59
+ get: function () { return chunkA6J7W6DH_js.AddOnDetailsSchema; }
60
60
  });
61
61
  Object.defineProperty(exports, "AddOnGroupDetailsSchema", {
62
62
  enumerable: true,
63
- get: function () { return chunkODEPW244_js.AddOnGroupDetailsSchema; }
63
+ get: function () { return chunkA6J7W6DH_js.AddOnGroupDetailsSchema; }
64
64
  });
65
65
  Object.defineProperty(exports, "AddOnInDetailsSchema", {
66
66
  enumerable: true,
67
- get: function () { return chunkODEPW244_js.AddOnInDetailsSchema; }
67
+ get: function () { return chunkA6J7W6DH_js.AddOnInDetailsSchema; }
68
68
  });
69
69
  Object.defineProperty(exports, "AddOnOptionDetailsSchema", {
70
70
  enumerable: true,
71
- get: function () { return chunkODEPW244_js.AddOnOptionDetailsSchema; }
71
+ get: function () { return chunkA6J7W6DH_js.AddOnOptionDetailsSchema; }
72
72
  });
73
73
  Object.defineProperty(exports, "AuthorizationTypeSchema", {
74
74
  enumerable: true,
75
- get: function () { return chunkODEPW244_js.AuthorizationTypeSchema; }
75
+ get: function () { return chunkA6J7W6DH_js.AuthorizationTypeSchema; }
76
76
  });
77
77
  Object.defineProperty(exports, "BrandContactSchema", {
78
78
  enumerable: true,
79
- get: function () { return chunkODEPW244_js.BrandContactSchema; }
79
+ get: function () { return chunkA6J7W6DH_js.BrandContactSchema; }
80
80
  });
81
81
  Object.defineProperty(exports, "BrandFaqSchema", {
82
82
  enumerable: true,
83
- get: function () { return chunkODEPW244_js.BrandFaqSchema; }
83
+ get: function () { return chunkA6J7W6DH_js.BrandFaqSchema; }
84
84
  });
85
85
  Object.defineProperty(exports, "BrandHeroSchema", {
86
86
  enumerable: true,
87
- get: function () { return chunkODEPW244_js.BrandHeroSchema; }
87
+ get: function () { return chunkA6J7W6DH_js.BrandHeroSchema; }
88
88
  });
89
89
  Object.defineProperty(exports, "BrandNavLinkSchema", {
90
90
  enumerable: true,
91
- get: function () { return chunkODEPW244_js.BrandNavLinkSchema; }
91
+ get: function () { return chunkA6J7W6DH_js.BrandNavLinkSchema; }
92
92
  });
93
93
  Object.defineProperty(exports, "BrandPolicyPageSchema", {
94
94
  enumerable: true,
95
- get: function () { return chunkODEPW244_js.BrandPolicyPageSchema; }
95
+ get: function () { return chunkA6J7W6DH_js.BrandPolicyPageSchema; }
96
96
  });
97
97
  Object.defineProperty(exports, "BrandPolicySectionSchema", {
98
98
  enumerable: true,
99
- get: function () { return chunkODEPW244_js.BrandPolicySectionSchema; }
99
+ get: function () { return chunkA6J7W6DH_js.BrandPolicySectionSchema; }
100
100
  });
101
101
  Object.defineProperty(exports, "BrandSchema", {
102
102
  enumerable: true,
103
- get: function () { return chunkODEPW244_js.BrandSchema; }
103
+ get: function () { return chunkA6J7W6DH_js.BrandSchema; }
104
104
  });
105
105
  Object.defineProperty(exports, "BrandSocialSchema", {
106
106
  enumerable: true,
107
- get: function () { return chunkODEPW244_js.BrandSocialSchema; }
107
+ get: function () { return chunkA6J7W6DH_js.BrandSocialSchema; }
108
108
  });
109
109
  Object.defineProperty(exports, "BundleResolvedSchema", {
110
110
  enumerable: true,
111
- get: function () { return chunkODEPW244_js.BundleResolvedSchema; }
111
+ get: function () { return chunkA6J7W6DH_js.BundleResolvedSchema; }
112
112
  });
113
113
  Object.defineProperty(exports, "BundleSelectionInputSchema", {
114
114
  enumerable: true,
115
- get: function () { return chunkODEPW244_js.BundleSelectionInputSchema; }
115
+ get: function () { return chunkA6J7W6DH_js.BundleSelectionInputSchema; }
116
116
  });
117
117
  Object.defineProperty(exports, "CartItemSchema", {
118
118
  enumerable: true,
119
- get: function () { return chunkODEPW244_js.CartItemSchema; }
119
+ get: function () { return chunkA6J7W6DH_js.CartItemSchema; }
120
120
  });
121
121
  Object.defineProperty(exports, "CartPricingSchema", {
122
122
  enumerable: true,
123
- get: function () { return chunkODEPW244_js.CartPricingSchema; }
123
+ get: function () { return chunkA6J7W6DH_js.CartPricingSchema; }
124
124
  });
125
125
  Object.defineProperty(exports, "CartSchema", {
126
126
  enumerable: true,
127
- get: function () { return chunkODEPW244_js.CartSchema; }
127
+ get: function () { return chunkA6J7W6DH_js.CartSchema; }
128
128
  });
129
129
  Object.defineProperty(exports, "CheckoutBodySchema", {
130
130
  enumerable: true,
131
- get: function () { return chunkODEPW244_js.CheckoutBodySchema; }
131
+ get: function () { return chunkA6J7W6DH_js.CheckoutBodySchema; }
132
132
  });
133
133
  Object.defineProperty(exports, "CheckoutCustomerSchema", {
134
134
  enumerable: true,
135
- get: function () { return chunkODEPW244_js.CheckoutCustomerSchema; }
135
+ get: function () { return chunkA6J7W6DH_js.CheckoutCustomerSchema; }
136
136
  });
137
137
  Object.defineProperty(exports, "CheckoutResponseSchema", {
138
138
  enumerable: true,
139
- get: function () { return chunkODEPW244_js.CheckoutResponseSchema; }
139
+ get: function () { return chunkA6J7W6DH_js.CheckoutResponseSchema; }
140
140
  });
141
141
  Object.defineProperty(exports, "ChosenPriceSchema", {
142
142
  enumerable: true,
143
- get: function () { return chunkODEPW244_js.ChosenPriceSchema; }
143
+ get: function () { return chunkA6J7W6DH_js.ChosenPriceSchema; }
144
144
  });
145
145
  Object.defineProperty(exports, "CompositeResolvedSchema", {
146
146
  enumerable: true,
147
- get: function () { return chunkODEPW244_js.CompositeResolvedSchema; }
147
+ get: function () { return chunkA6J7W6DH_js.CompositeResolvedSchema; }
148
148
  });
149
149
  Object.defineProperty(exports, "CompositeSelectionInputSchema", {
150
150
  enumerable: true,
151
- get: function () { return chunkODEPW244_js.CompositeSelectionInputSchema; }
151
+ get: function () { return chunkA6J7W6DH_js.CompositeSelectionInputSchema; }
152
152
  });
153
153
  Object.defineProperty(exports, "CountryCodeSchema", {
154
154
  enumerable: true,
155
- get: function () { return chunkODEPW244_js.CountryCodeSchema; }
155
+ get: function () { return chunkA6J7W6DH_js.CountryCodeSchema; }
156
156
  });
157
157
  Object.defineProperty(exports, "CurrencyCodeSchema", {
158
158
  enumerable: true,
159
- get: function () { return chunkODEPW244_js.CurrencyCodeSchema; }
159
+ get: function () { return chunkA6J7W6DH_js.CurrencyCodeSchema; }
160
160
  });
161
161
  Object.defineProperty(exports, "CustomerInputValueSchema", {
162
162
  enumerable: true,
163
- get: function () { return chunkODEPW244_js.CustomerInputValueSchema; }
163
+ get: function () { return chunkA6J7W6DH_js.CustomerInputValueSchema; }
164
164
  });
165
165
  Object.defineProperty(exports, "DiscountDetailsSchema", {
166
166
  enumerable: true,
167
- get: function () { return chunkODEPW244_js.DiscountDetailsSchema; }
167
+ get: function () { return chunkA6J7W6DH_js.DiscountDetailsSchema; }
168
168
  });
169
169
  Object.defineProperty(exports, "IsoDateTimeSchema", {
170
170
  enumerable: true,
171
- get: function () { return chunkODEPW244_js.IsoDateTimeSchema; }
171
+ get: function () { return chunkA6J7W6DH_js.IsoDateTimeSchema; }
172
172
  });
173
173
  Object.defineProperty(exports, "LineTypeSchema", {
174
174
  enumerable: true,
175
- get: function () { return chunkODEPW244_js.LineTypeSchema; }
175
+ get: function () { return chunkA6J7W6DH_js.LineTypeSchema; }
176
176
  });
177
177
  Object.defineProperty(exports, "LocaleSchema", {
178
178
  enumerable: true,
179
- get: function () { return chunkODEPW244_js.LocaleSchema; }
179
+ get: function () { return chunkA6J7W6DH_js.LocaleSchema; }
180
180
  });
181
181
  Object.defineProperty(exports, "MoneyLooseSchema", {
182
182
  enumerable: true,
183
- get: function () { return chunkODEPW244_js.MoneyLooseSchema; }
183
+ get: function () { return chunkA6J7W6DH_js.MoneyLooseSchema; }
184
184
  });
185
185
  Object.defineProperty(exports, "MoneySchema", {
186
186
  enumerable: true,
187
- get: function () { return chunkODEPW244_js.MoneySchema; }
187
+ get: function () { return chunkA6J7W6DH_js.MoneySchema; }
188
188
  });
189
189
  Object.defineProperty(exports, "NextActionSchema", {
190
190
  enumerable: true,
191
- get: function () { return chunkODEPW244_js.NextActionSchema; }
191
+ get: function () { return chunkA6J7W6DH_js.NextActionSchema; }
192
192
  });
193
193
  Object.defineProperty(exports, "PhoneE164Schema", {
194
194
  enumerable: true,
195
- get: function () { return chunkODEPW244_js.PhoneE164Schema; }
195
+ get: function () { return chunkA6J7W6DH_js.PhoneE164Schema; }
196
196
  });
197
197
  Object.defineProperty(exports, "ProductTypeSchema", {
198
198
  enumerable: true,
199
- get: function () { return chunkODEPW244_js.ProductTypeSchema; }
199
+ get: function () { return chunkA6J7W6DH_js.ProductTypeSchema; }
200
200
  });
201
201
  Object.defineProperty(exports, "SchemaViolationError", {
202
202
  enumerable: true,
203
- get: function () { return chunkODEPW244_js.SchemaViolationError; }
203
+ get: function () { return chunkA6J7W6DH_js.SchemaViolationError; }
204
204
  });
205
205
  Object.defineProperty(exports, "SeedNameSchema", {
206
206
  enumerable: true,
207
- get: function () { return chunkODEPW244_js.SeedNameSchema; }
207
+ get: function () { return chunkA6J7W6DH_js.SeedNameSchema; }
208
208
  });
209
209
  Object.defineProperty(exports, "SelectedAddOnOptionSchema", {
210
210
  enumerable: true,
211
- get: function () { return chunkODEPW244_js.SelectedAddOnOptionSchema; }
211
+ get: function () { return chunkA6J7W6DH_js.SelectedAddOnOptionSchema; }
212
212
  });
213
213
  Object.defineProperty(exports, "ServiceStatusSchema", {
214
214
  enumerable: true,
215
- get: function () { return chunkODEPW244_js.ServiceStatusSchema; }
215
+ get: function () { return chunkA6J7W6DH_js.ServiceStatusSchema; }
216
216
  });
217
217
  Object.defineProperty(exports, "TimestampSchema", {
218
218
  enumerable: true,
219
- get: function () { return chunkODEPW244_js.TimestampSchema; }
219
+ get: function () { return chunkA6J7W6DH_js.TimestampSchema; }
220
220
  });
221
221
  Object.defineProperty(exports, "VariantDetailsSchema", {
222
222
  enumerable: true,
223
- get: function () { return chunkODEPW244_js.VariantDetailsSchema; }
223
+ get: function () { return chunkA6J7W6DH_js.VariantDetailsSchema; }
224
224
  });
225
225
  Object.defineProperty(exports, "VariantDisplayAttributeSchema", {
226
226
  enumerable: true,
227
- get: function () { return chunkODEPW244_js.VariantDisplayAttributeSchema; }
227
+ get: function () { return chunkA6J7W6DH_js.VariantDisplayAttributeSchema; }
228
228
  });
229
229
  Object.defineProperty(exports, "VariantInfoSchema", {
230
230
  enumerable: true,
231
- get: function () { return chunkODEPW244_js.VariantInfoSchema; }
231
+ get: function () { return chunkA6J7W6DH_js.VariantInfoSchema; }
232
232
  });
233
233
  Object.defineProperty(exports, "assertAddItemPayload", {
234
234
  enumerable: true,
235
- get: function () { return chunkODEPW244_js.assertAddItemPayload; }
235
+ get: function () { return chunkA6J7W6DH_js.assertAddItemPayload; }
236
236
  });
237
237
  Object.defineProperty(exports, "assertBrand", {
238
238
  enumerable: true,
239
- get: function () { return chunkODEPW244_js.assertBrand; }
239
+ get: function () { return chunkA6J7W6DH_js.assertBrand; }
240
240
  });
241
241
  Object.defineProperty(exports, "assertCart", {
242
242
  enumerable: true,
243
- get: function () { return chunkODEPW244_js.assertCart; }
243
+ get: function () { return chunkA6J7W6DH_js.assertCart; }
244
244
  });
245
245
  Object.defineProperty(exports, "assertCartItem", {
246
246
  enumerable: true,
247
- get: function () { return chunkODEPW244_js.assertCartItem; }
247
+ get: function () { return chunkA6J7W6DH_js.assertCartItem; }
248
248
  });
249
249
  Object.defineProperty(exports, "assertCheckoutBody", {
250
250
  enumerable: true,
251
- get: function () { return chunkODEPW244_js.assertCheckoutBody; }
251
+ get: function () { return chunkA6J7W6DH_js.assertCheckoutBody; }
252
252
  });
253
253
  Object.defineProperty(exports, "assertCheckoutResponse", {
254
254
  enumerable: true,
255
- get: function () { return chunkODEPW244_js.assertCheckoutResponse; }
255
+ get: function () { return chunkA6J7W6DH_js.assertCheckoutResponse; }
256
256
  });
257
257
  Object.defineProperty(exports, "cimplifyRegistry", {
258
258
  enumerable: true,
259
- get: function () { return chunkODEPW244_js.cimplifyRegistry; }
259
+ get: function () { return chunkA6J7W6DH_js.cimplifyRegistry; }
260
260
  });
261
261
  Object.defineProperty(exports, "createTestClient", {
262
262
  enumerable: true,
263
- get: function () { return chunkODEPW244_js.createTestClient; }
263
+ get: function () { return chunkA6J7W6DH_js.createTestClient; }
264
264
  });
265
265
  Object.defineProperty(exports, "fixtures", {
266
266
  enumerable: true,
267
- get: function () { return chunkODEPW244_js.fixtures; }
267
+ get: function () { return chunkA6J7W6DH_js.fixtures; }
268
268
  });
269
269
  Object.defineProperty(exports, "makeAssertion", {
270
270
  enumerable: true,
271
- get: function () { return chunkODEPW244_js.makeAssertion; }
271
+ get: function () { return chunkA6J7W6DH_js.makeAssertion; }
272
272
  });
273
273
  Object.defineProperty(exports, "registerSchema", {
274
274
  enumerable: true,
275
- get: function () { return chunkODEPW244_js.registerSchema; }
275
+ get: function () { return chunkA6J7W6DH_js.registerSchema; }
276
276
  });
277
277
  exports.exportJsonSchemas = exportJsonSchemas;
278
278
  exports.listRegisteredSchemas = listRegisteredSchemas;
package/dist/testing.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-I6RE4BKH.mjs';
2
- export { AddItemPayloadSchema, AddOnDetailsSchema, AddOnGroupDetailsSchema, AddOnInDetailsSchema, AddOnOptionDetailsSchema, AuthorizationTypeSchema, BrandContactSchema, BrandFaqSchema, BrandHeroSchema, BrandNavLinkSchema, BrandPolicyPageSchema, BrandPolicySectionSchema, BrandSchema, BrandSocialSchema, BundleResolvedSchema, BundleSelectionInputSchema, CartItemSchema, CartPricingSchema, CartSchema, CheckoutBodySchema, CheckoutCustomerSchema, CheckoutResponseSchema, ChosenPriceSchema, CompositeResolvedSchema, CompositeSelectionInputSchema, CountryCodeSchema, CurrencyCodeSchema, CustomerInputValueSchema, DiscountDetailsSchema, IsoDateTimeSchema, LineTypeSchema, LocaleSchema, MoneyLooseSchema, MoneySchema, NextActionSchema, PhoneE164Schema, ProductTypeSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema } from './chunk-I6RE4BKH.mjs';
3
- import './chunk-PLTP6HWW.mjs';
1
+ import { VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-DU4IX2I2.mjs';
2
+ export { AddItemPayloadSchema, AddOnDetailsSchema, AddOnGroupDetailsSchema, AddOnInDetailsSchema, AddOnOptionDetailsSchema, AuthorizationTypeSchema, BrandContactSchema, BrandFaqSchema, BrandHeroSchema, BrandNavLinkSchema, BrandPolicyPageSchema, BrandPolicySectionSchema, BrandSchema, BrandSocialSchema, BundleResolvedSchema, BundleSelectionInputSchema, CartItemSchema, CartPricingSchema, CartSchema, CheckoutBodySchema, CheckoutCustomerSchema, CheckoutResponseSchema, ChosenPriceSchema, CompositeResolvedSchema, CompositeSelectionInputSchema, CountryCodeSchema, CurrencyCodeSchema, CustomerInputValueSchema, DiscountDetailsSchema, IsoDateTimeSchema, LineTypeSchema, LocaleSchema, MoneyLooseSchema, MoneySchema, NextActionSchema, PhoneE164Schema, ProductTypeSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema } from './chunk-DU4IX2I2.mjs';
3
+ import './chunk-GIFVSWYJ.mjs';
4
4
  import './chunk-NWUEWUX2.mjs';
5
5
  import './chunk-7BM56JET.mjs';
6
6
  import './chunk-TD3AY34U.mjs';
package/dist/utils.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, q as getProductCurrency, r as getTaxAmount, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-Dy8D3r9b.mjs';
2
- import './product-DXhjLQ_w.mjs';
3
- import './price-Bg7hujK_.mjs';
4
- import './payment-T_0MUE9o.mjs';
1
+ export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, q as getProductCurrency, r as getTaxAmount, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-DZz6hdrT.mjs';
2
+ import './product-RJMIdCAf.mjs';
3
+ import './price-4T7dlhxM.mjs';
4
+ import './payment-Dh-6cRcV.mjs';
5
5
  import 'libphonenumber-js';
package/dist/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, q as getProductCurrency, r as getTaxAmount, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-C4xE31-D.js';
2
- import './product-DXhjLQ_w.js';
3
- import './price-B8WMoldA.js';
4
- import './payment-nH9OCUg2.js';
1
+ export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, q as getProductCurrency, r as getTaxAmount, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-BrC1x2kK.js';
2
+ import './product-RJMIdCAf.js';
3
+ import './price-CQdOJoX-.js';
4
+ import './payment-D1f3ZQPC.js';
5
5
  import 'libphonenumber-js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cimplify/sdk",
3
- "version": "0.83.0",
3
+ "version": "0.85.0",
4
4
  "description": "Cimplify Commerce SDK for storefronts",
5
5
  "keywords": [
6
6
  "cimplify",
@@ -110,7 +110,7 @@
110
110
  "schema:add": "bun scripts/schema-add.ts"
111
111
  },
112
112
  "peerDependencies": {
113
- "@paystack/inline-js": "^2.22.8",
113
+ "@paystack/inline-js": "^2.23.0",
114
114
  "react": ">=17.0.0",
115
115
  "msw": ">=2.0.0",
116
116
  "vitest": ">=2.0.0",
@@ -134,35 +134,35 @@
134
134
  }
135
135
  },
136
136
  "devDependencies": {
137
- "@cloudflare/workers-types": "^4.20260503.1",
138
- "@hono/node-server": "^1.13.7",
139
- "@opennextjs/aws": "^3.7.10",
137
+ "@cloudflare/workers-types": "^4.20260616.1",
138
+ "@hono/node-server": "^2.0.5",
139
+ "@opennextjs/aws": "^4.0.3",
140
140
  "@opennextjs/cloudflare": "^1.19.11",
141
- "@tailwindcss/cli": "4.2.2",
141
+ "@tailwindcss/cli": "4.3.1",
142
142
  "@testing-library/dom": "^10.4.1",
143
143
  "@testing-library/react": "^16.3.2",
144
- "@types/node": "^25.6.0",
144
+ "@types/node": "^25.9.3",
145
145
  "@types/react": "^19.2.14",
146
- "@types/react-dom": "^19",
147
- "@typescript/native-preview": "^7.0.0-dev.20260503.1",
148
- "hono": "^4.7.7",
146
+ "@types/react-dom": "^19.2.3",
147
+ "@typescript/native-preview": "^7.0.0-dev.20260616.1",
148
+ "hono": "^4.12.25",
149
149
  "jsdom": "^29.1.1",
150
- "msw": "^2.14.2",
151
- "react": "^19.2.5",
152
- "react-dom": "^19.2.5",
153
- "tailwindcss": "4.2.2",
150
+ "msw": "^2.14.6",
151
+ "react": "^19.2.7",
152
+ "react-dom": "^19.2.7",
153
+ "tailwindcss": "4.3.1",
154
154
  "tsup": "^8.5.1",
155
- "typescript": "5.9.3",
156
- "vitest": "^4.1.5"
155
+ "typescript": "6.0.3",
156
+ "vitest": "^4.1.9"
157
157
  },
158
158
  "dependencies": {
159
- "@base-ui/react": "^1.4.1",
159
+ "@base-ui/react": "^1.5.0",
160
160
  "clsx": "^2.1.1",
161
- "date-fns": "^4.1.0",
161
+ "date-fns": "^4.4.0",
162
162
  "jose": "^6.2.3",
163
- "libphonenumber-js": "1.12.41",
164
- "react-day-picker": "^9.14.0",
165
- "tailwind-merge": "^3.5.0",
163
+ "libphonenumber-js": "1.13.6",
164
+ "react-day-picker": "^10.0.1",
165
+ "tailwind-merge": "^3.6.0",
166
166
  "xss": "^1.0.15",
167
167
  "zod": "^4.4.3"
168
168
  }