@cimplify/sdk 0.67.0 → 0.69.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 (49) hide show
  1. package/dist/advanced.d.mts +1 -1
  2. package/dist/advanced.d.ts +1 -1
  3. package/dist/advanced.js +20 -20
  4. package/dist/advanced.mjs +1 -1
  5. package/dist/{chunk-SSLFZPAI.js → chunk-5HAUJBOK.js} +35 -35
  6. package/dist/{chunk-FNK6UZOE.mjs → chunk-5UYNERYE.mjs} +2 -2
  7. package/dist/{chunk-SXGFJEME.js → chunk-I4MP2XZS.js} +73 -7
  8. package/dist/{chunk-JAPCAZN4.mjs → chunk-KNPE4WCQ.mjs} +1 -1
  9. package/dist/{chunk-FVGVJ4TC.mjs → chunk-O3ECKVOM.mjs} +73 -7
  10. package/dist/{chunk-QQMDEGAK.mjs → chunk-SOV4H6PQ.mjs} +177 -50
  11. package/dist/{chunk-SH6HJW4A.js → chunk-TBSDZN2W.js} +4 -4
  12. package/dist/{chunk-3QSW33RG.js → chunk-WCSAZRNC.js} +179 -49
  13. package/dist/{client-DVFQoDtI.d.ts → client-CO2s-kxY.d.ts} +57 -19
  14. package/dist/{client-CQlEWH5j.d.ts → client-DUpz-PGs.d.ts} +1 -1
  15. package/dist/{client-Dd82KQ_G.d.mts → client-DZ-nbVnb.d.mts} +1 -1
  16. package/dist/{client-ByI_3jfL.d.mts → client-K_n5ceLI.d.mts} +57 -19
  17. package/dist/index.d.mts +2 -2
  18. package/dist/index.d.ts +2 -2
  19. package/dist/index.js +89 -72
  20. package/dist/index.mjs +15 -10
  21. package/dist/mock/cli.mjs +73 -7
  22. package/dist/mock/library.js +73 -7
  23. package/dist/mock/library.mjs +73 -7
  24. package/dist/mock/msw.js +73 -7
  25. package/dist/mock/msw.mjs +73 -7
  26. package/dist/react.d.mts +197 -40
  27. package/dist/react.d.ts +197 -40
  28. package/dist/react.js +1241 -567
  29. package/dist/react.mjs +824 -155
  30. package/dist/server.d.mts +2 -2
  31. package/dist/server.d.ts +2 -2
  32. package/dist/server.js +7 -7
  33. package/dist/server.mjs +2 -2
  34. package/dist/{sign-in-RFuWZOgF.d.mts → sign-in-DQlIdqsi.d.mts} +8 -0
  35. package/dist/{sign-in-RFuWZOgF.d.ts → sign-in-DQlIdqsi.d.ts} +8 -0
  36. package/dist/styles.css +1 -1
  37. package/dist/testing/msw.js +2 -2
  38. package/dist/testing/msw.mjs +1 -1
  39. package/dist/testing/suite.d.mts +2 -2
  40. package/dist/testing/suite.d.ts +2 -2
  41. package/dist/testing/suite.js +23 -23
  42. package/dist/testing/suite.mjs +4 -4
  43. package/dist/testing.d.mts +17 -17
  44. package/dist/testing.d.ts +17 -17
  45. package/dist/testing.js +79 -79
  46. package/dist/testing.mjs +5 -5
  47. package/package.json +1 -1
  48. package/registry/index.json +0 -9
  49. package/registry/account.json +0 -15
package/dist/testing.js CHANGED
@@ -1,29 +1,29 @@
1
1
  'use strict';
2
2
 
3
- var chunkSH6HJW4A_js = require('./chunk-SH6HJW4A.js');
4
- require('./chunk-SXGFJEME.js');
5
- require('./chunk-SSLFZPAI.js');
6
- require('./chunk-3QSW33RG.js');
3
+ var chunkTBSDZN2W_js = require('./chunk-TBSDZN2W.js');
4
+ require('./chunk-I4MP2XZS.js');
5
+ require('./chunk-5HAUJBOK.js');
6
+ require('./chunk-WCSAZRNC.js');
7
7
  require('./chunk-7Y2O3E4D.js');
8
8
  require('./chunk-XA3ZNR75.js');
9
9
  require('./chunk-OWW5GUSB.js');
10
10
  var zod = require('zod');
11
11
 
12
12
  var PUBLIC_SCHEMAS = {
13
- Brand: chunkSH6HJW4A_js.BrandSchema,
14
- AddItemPayload: chunkSH6HJW4A_js.AddItemPayloadSchema,
15
- Cart: chunkSH6HJW4A_js.CartSchema,
16
- CartItem: chunkSH6HJW4A_js.CartItemSchema,
17
- CartPricing: chunkSH6HJW4A_js.CartPricingSchema,
18
- CheckoutBody: chunkSH6HJW4A_js.CheckoutBodySchema,
19
- CheckoutResponse: chunkSH6HJW4A_js.CheckoutResponseSchema,
20
- VariantInfo: chunkSH6HJW4A_js.VariantInfoSchema
13
+ Brand: chunkTBSDZN2W_js.BrandSchema,
14
+ AddItemPayload: chunkTBSDZN2W_js.AddItemPayloadSchema,
15
+ Cart: chunkTBSDZN2W_js.CartSchema,
16
+ CartItem: chunkTBSDZN2W_js.CartItemSchema,
17
+ CartPricing: chunkTBSDZN2W_js.CartPricingSchema,
18
+ CheckoutBody: chunkTBSDZN2W_js.CheckoutBodySchema,
19
+ CheckoutResponse: chunkTBSDZN2W_js.CheckoutResponseSchema,
20
+ VariantInfo: chunkTBSDZN2W_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 = chunkSH6HJW4A_js.cimplifyRegistry.get(schema);
26
- const json = zod.z.toJSONSchema(schema, { metadata: chunkSH6HJW4A_js.cimplifyRegistry });
25
+ const meta = chunkTBSDZN2W_js.cimplifyRegistry.get(schema);
26
+ const json = zod.z.toJSONSchema(schema, { metadata: chunkTBSDZN2W_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
- chunkSH6HJW4A_js.BrandSchema,
39
- chunkSH6HJW4A_js.AddItemPayloadSchema,
40
- chunkSH6HJW4A_js.CartSchema,
41
- chunkSH6HJW4A_js.CartItemSchema,
42
- chunkSH6HJW4A_js.CartPricingSchema,
43
- chunkSH6HJW4A_js.CheckoutBodySchema,
44
- chunkSH6HJW4A_js.CheckoutResponseSchema,
45
- chunkSH6HJW4A_js.VariantInfoSchema
38
+ chunkTBSDZN2W_js.BrandSchema,
39
+ chunkTBSDZN2W_js.AddItemPayloadSchema,
40
+ chunkTBSDZN2W_js.CartSchema,
41
+ chunkTBSDZN2W_js.CartItemSchema,
42
+ chunkTBSDZN2W_js.CartPricingSchema,
43
+ chunkTBSDZN2W_js.CheckoutBodySchema,
44
+ chunkTBSDZN2W_js.CheckoutResponseSchema,
45
+ chunkTBSDZN2W_js.VariantInfoSchema
46
46
  ]) {
47
- const meta = chunkSH6HJW4A_js.cimplifyRegistry.get(schema);
47
+ const meta = chunkTBSDZN2W_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 chunkSH6HJW4A_js.AddItemPayloadSchema; }
55
+ get: function () { return chunkTBSDZN2W_js.AddItemPayloadSchema; }
56
56
  });
57
57
  Object.defineProperty(exports, "AddOnDetailsSchema", {
58
58
  enumerable: true,
59
- get: function () { return chunkSH6HJW4A_js.AddOnDetailsSchema; }
59
+ get: function () { return chunkTBSDZN2W_js.AddOnDetailsSchema; }
60
60
  });
61
61
  Object.defineProperty(exports, "AddOnGroupDetailsSchema", {
62
62
  enumerable: true,
63
- get: function () { return chunkSH6HJW4A_js.AddOnGroupDetailsSchema; }
63
+ get: function () { return chunkTBSDZN2W_js.AddOnGroupDetailsSchema; }
64
64
  });
65
65
  Object.defineProperty(exports, "AddOnInDetailsSchema", {
66
66
  enumerable: true,
67
- get: function () { return chunkSH6HJW4A_js.AddOnInDetailsSchema; }
67
+ get: function () { return chunkTBSDZN2W_js.AddOnInDetailsSchema; }
68
68
  });
69
69
  Object.defineProperty(exports, "AddOnOptionDetailsSchema", {
70
70
  enumerable: true,
71
- get: function () { return chunkSH6HJW4A_js.AddOnOptionDetailsSchema; }
71
+ get: function () { return chunkTBSDZN2W_js.AddOnOptionDetailsSchema; }
72
72
  });
73
73
  Object.defineProperty(exports, "AuthorizationTypeSchema", {
74
74
  enumerable: true,
75
- get: function () { return chunkSH6HJW4A_js.AuthorizationTypeSchema; }
75
+ get: function () { return chunkTBSDZN2W_js.AuthorizationTypeSchema; }
76
76
  });
77
77
  Object.defineProperty(exports, "BrandContactSchema", {
78
78
  enumerable: true,
79
- get: function () { return chunkSH6HJW4A_js.BrandContactSchema; }
79
+ get: function () { return chunkTBSDZN2W_js.BrandContactSchema; }
80
80
  });
81
81
  Object.defineProperty(exports, "BrandFaqSchema", {
82
82
  enumerable: true,
83
- get: function () { return chunkSH6HJW4A_js.BrandFaqSchema; }
83
+ get: function () { return chunkTBSDZN2W_js.BrandFaqSchema; }
84
84
  });
85
85
  Object.defineProperty(exports, "BrandHeroSchema", {
86
86
  enumerable: true,
87
- get: function () { return chunkSH6HJW4A_js.BrandHeroSchema; }
87
+ get: function () { return chunkTBSDZN2W_js.BrandHeroSchema; }
88
88
  });
89
89
  Object.defineProperty(exports, "BrandNavLinkSchema", {
90
90
  enumerable: true,
91
- get: function () { return chunkSH6HJW4A_js.BrandNavLinkSchema; }
91
+ get: function () { return chunkTBSDZN2W_js.BrandNavLinkSchema; }
92
92
  });
93
93
  Object.defineProperty(exports, "BrandPolicyPageSchema", {
94
94
  enumerable: true,
95
- get: function () { return chunkSH6HJW4A_js.BrandPolicyPageSchema; }
95
+ get: function () { return chunkTBSDZN2W_js.BrandPolicyPageSchema; }
96
96
  });
97
97
  Object.defineProperty(exports, "BrandPolicySectionSchema", {
98
98
  enumerable: true,
99
- get: function () { return chunkSH6HJW4A_js.BrandPolicySectionSchema; }
99
+ get: function () { return chunkTBSDZN2W_js.BrandPolicySectionSchema; }
100
100
  });
101
101
  Object.defineProperty(exports, "BrandSchema", {
102
102
  enumerable: true,
103
- get: function () { return chunkSH6HJW4A_js.BrandSchema; }
103
+ get: function () { return chunkTBSDZN2W_js.BrandSchema; }
104
104
  });
105
105
  Object.defineProperty(exports, "BrandSocialSchema", {
106
106
  enumerable: true,
107
- get: function () { return chunkSH6HJW4A_js.BrandSocialSchema; }
107
+ get: function () { return chunkTBSDZN2W_js.BrandSocialSchema; }
108
108
  });
109
109
  Object.defineProperty(exports, "BundleResolvedSchema", {
110
110
  enumerable: true,
111
- get: function () { return chunkSH6HJW4A_js.BundleResolvedSchema; }
111
+ get: function () { return chunkTBSDZN2W_js.BundleResolvedSchema; }
112
112
  });
113
113
  Object.defineProperty(exports, "BundleSelectionInputSchema", {
114
114
  enumerable: true,
115
- get: function () { return chunkSH6HJW4A_js.BundleSelectionInputSchema; }
115
+ get: function () { return chunkTBSDZN2W_js.BundleSelectionInputSchema; }
116
116
  });
117
117
  Object.defineProperty(exports, "CartItemSchema", {
118
118
  enumerable: true,
119
- get: function () { return chunkSH6HJW4A_js.CartItemSchema; }
119
+ get: function () { return chunkTBSDZN2W_js.CartItemSchema; }
120
120
  });
121
121
  Object.defineProperty(exports, "CartPricingSchema", {
122
122
  enumerable: true,
123
- get: function () { return chunkSH6HJW4A_js.CartPricingSchema; }
123
+ get: function () { return chunkTBSDZN2W_js.CartPricingSchema; }
124
124
  });
125
125
  Object.defineProperty(exports, "CartSchema", {
126
126
  enumerable: true,
127
- get: function () { return chunkSH6HJW4A_js.CartSchema; }
127
+ get: function () { return chunkTBSDZN2W_js.CartSchema; }
128
128
  });
129
129
  Object.defineProperty(exports, "CheckoutBodySchema", {
130
130
  enumerable: true,
131
- get: function () { return chunkSH6HJW4A_js.CheckoutBodySchema; }
131
+ get: function () { return chunkTBSDZN2W_js.CheckoutBodySchema; }
132
132
  });
133
133
  Object.defineProperty(exports, "CheckoutCustomerSchema", {
134
134
  enumerable: true,
135
- get: function () { return chunkSH6HJW4A_js.CheckoutCustomerSchema; }
135
+ get: function () { return chunkTBSDZN2W_js.CheckoutCustomerSchema; }
136
136
  });
137
137
  Object.defineProperty(exports, "CheckoutResponseSchema", {
138
138
  enumerable: true,
139
- get: function () { return chunkSH6HJW4A_js.CheckoutResponseSchema; }
139
+ get: function () { return chunkTBSDZN2W_js.CheckoutResponseSchema; }
140
140
  });
141
141
  Object.defineProperty(exports, "ChosenPriceSchema", {
142
142
  enumerable: true,
143
- get: function () { return chunkSH6HJW4A_js.ChosenPriceSchema; }
143
+ get: function () { return chunkTBSDZN2W_js.ChosenPriceSchema; }
144
144
  });
145
145
  Object.defineProperty(exports, "CompositeResolvedSchema", {
146
146
  enumerable: true,
147
- get: function () { return chunkSH6HJW4A_js.CompositeResolvedSchema; }
147
+ get: function () { return chunkTBSDZN2W_js.CompositeResolvedSchema; }
148
148
  });
149
149
  Object.defineProperty(exports, "CompositeSelectionInputSchema", {
150
150
  enumerable: true,
151
- get: function () { return chunkSH6HJW4A_js.CompositeSelectionInputSchema; }
151
+ get: function () { return chunkTBSDZN2W_js.CompositeSelectionInputSchema; }
152
152
  });
153
153
  Object.defineProperty(exports, "CountryCodeSchema", {
154
154
  enumerable: true,
155
- get: function () { return chunkSH6HJW4A_js.CountryCodeSchema; }
155
+ get: function () { return chunkTBSDZN2W_js.CountryCodeSchema; }
156
156
  });
157
157
  Object.defineProperty(exports, "CurrencyCodeSchema", {
158
158
  enumerable: true,
159
- get: function () { return chunkSH6HJW4A_js.CurrencyCodeSchema; }
159
+ get: function () { return chunkTBSDZN2W_js.CurrencyCodeSchema; }
160
160
  });
161
161
  Object.defineProperty(exports, "CustomerInputValueSchema", {
162
162
  enumerable: true,
163
- get: function () { return chunkSH6HJW4A_js.CustomerInputValueSchema; }
163
+ get: function () { return chunkTBSDZN2W_js.CustomerInputValueSchema; }
164
164
  });
165
165
  Object.defineProperty(exports, "DiscountDetailsSchema", {
166
166
  enumerable: true,
167
- get: function () { return chunkSH6HJW4A_js.DiscountDetailsSchema; }
167
+ get: function () { return chunkTBSDZN2W_js.DiscountDetailsSchema; }
168
168
  });
169
169
  Object.defineProperty(exports, "IsoDateTimeSchema", {
170
170
  enumerable: true,
171
- get: function () { return chunkSH6HJW4A_js.IsoDateTimeSchema; }
171
+ get: function () { return chunkTBSDZN2W_js.IsoDateTimeSchema; }
172
172
  });
173
173
  Object.defineProperty(exports, "LineTypeSchema", {
174
174
  enumerable: true,
175
- get: function () { return chunkSH6HJW4A_js.LineTypeSchema; }
175
+ get: function () { return chunkTBSDZN2W_js.LineTypeSchema; }
176
176
  });
177
177
  Object.defineProperty(exports, "LocaleSchema", {
178
178
  enumerable: true,
179
- get: function () { return chunkSH6HJW4A_js.LocaleSchema; }
179
+ get: function () { return chunkTBSDZN2W_js.LocaleSchema; }
180
180
  });
181
181
  Object.defineProperty(exports, "MoneyLooseSchema", {
182
182
  enumerable: true,
183
- get: function () { return chunkSH6HJW4A_js.MoneyLooseSchema; }
183
+ get: function () { return chunkTBSDZN2W_js.MoneyLooseSchema; }
184
184
  });
185
185
  Object.defineProperty(exports, "MoneySchema", {
186
186
  enumerable: true,
187
- get: function () { return chunkSH6HJW4A_js.MoneySchema; }
187
+ get: function () { return chunkTBSDZN2W_js.MoneySchema; }
188
188
  });
189
189
  Object.defineProperty(exports, "NextActionSchema", {
190
190
  enumerable: true,
191
- get: function () { return chunkSH6HJW4A_js.NextActionSchema; }
191
+ get: function () { return chunkTBSDZN2W_js.NextActionSchema; }
192
192
  });
193
193
  Object.defineProperty(exports, "PhoneE164Schema", {
194
194
  enumerable: true,
195
- get: function () { return chunkSH6HJW4A_js.PhoneE164Schema; }
195
+ get: function () { return chunkTBSDZN2W_js.PhoneE164Schema; }
196
196
  });
197
197
  Object.defineProperty(exports, "ProductTypeSchema", {
198
198
  enumerable: true,
199
- get: function () { return chunkSH6HJW4A_js.ProductTypeSchema; }
199
+ get: function () { return chunkTBSDZN2W_js.ProductTypeSchema; }
200
200
  });
201
201
  Object.defineProperty(exports, "SchemaViolationError", {
202
202
  enumerable: true,
203
- get: function () { return chunkSH6HJW4A_js.SchemaViolationError; }
203
+ get: function () { return chunkTBSDZN2W_js.SchemaViolationError; }
204
204
  });
205
205
  Object.defineProperty(exports, "SeedNameSchema", {
206
206
  enumerable: true,
207
- get: function () { return chunkSH6HJW4A_js.SeedNameSchema; }
207
+ get: function () { return chunkTBSDZN2W_js.SeedNameSchema; }
208
208
  });
209
209
  Object.defineProperty(exports, "SelectedAddOnOptionSchema", {
210
210
  enumerable: true,
211
- get: function () { return chunkSH6HJW4A_js.SelectedAddOnOptionSchema; }
211
+ get: function () { return chunkTBSDZN2W_js.SelectedAddOnOptionSchema; }
212
212
  });
213
213
  Object.defineProperty(exports, "ServiceStatusSchema", {
214
214
  enumerable: true,
215
- get: function () { return chunkSH6HJW4A_js.ServiceStatusSchema; }
215
+ get: function () { return chunkTBSDZN2W_js.ServiceStatusSchema; }
216
216
  });
217
217
  Object.defineProperty(exports, "TimestampSchema", {
218
218
  enumerable: true,
219
- get: function () { return chunkSH6HJW4A_js.TimestampSchema; }
219
+ get: function () { return chunkTBSDZN2W_js.TimestampSchema; }
220
220
  });
221
221
  Object.defineProperty(exports, "VariantDetailsSchema", {
222
222
  enumerable: true,
223
- get: function () { return chunkSH6HJW4A_js.VariantDetailsSchema; }
223
+ get: function () { return chunkTBSDZN2W_js.VariantDetailsSchema; }
224
224
  });
225
225
  Object.defineProperty(exports, "VariantDisplayAttributeSchema", {
226
226
  enumerable: true,
227
- get: function () { return chunkSH6HJW4A_js.VariantDisplayAttributeSchema; }
227
+ get: function () { return chunkTBSDZN2W_js.VariantDisplayAttributeSchema; }
228
228
  });
229
229
  Object.defineProperty(exports, "VariantInfoSchema", {
230
230
  enumerable: true,
231
- get: function () { return chunkSH6HJW4A_js.VariantInfoSchema; }
231
+ get: function () { return chunkTBSDZN2W_js.VariantInfoSchema; }
232
232
  });
233
233
  Object.defineProperty(exports, "assertAddItemPayload", {
234
234
  enumerable: true,
235
- get: function () { return chunkSH6HJW4A_js.assertAddItemPayload; }
235
+ get: function () { return chunkTBSDZN2W_js.assertAddItemPayload; }
236
236
  });
237
237
  Object.defineProperty(exports, "assertBrand", {
238
238
  enumerable: true,
239
- get: function () { return chunkSH6HJW4A_js.assertBrand; }
239
+ get: function () { return chunkTBSDZN2W_js.assertBrand; }
240
240
  });
241
241
  Object.defineProperty(exports, "assertCart", {
242
242
  enumerable: true,
243
- get: function () { return chunkSH6HJW4A_js.assertCart; }
243
+ get: function () { return chunkTBSDZN2W_js.assertCart; }
244
244
  });
245
245
  Object.defineProperty(exports, "assertCartItem", {
246
246
  enumerable: true,
247
- get: function () { return chunkSH6HJW4A_js.assertCartItem; }
247
+ get: function () { return chunkTBSDZN2W_js.assertCartItem; }
248
248
  });
249
249
  Object.defineProperty(exports, "assertCheckoutBody", {
250
250
  enumerable: true,
251
- get: function () { return chunkSH6HJW4A_js.assertCheckoutBody; }
251
+ get: function () { return chunkTBSDZN2W_js.assertCheckoutBody; }
252
252
  });
253
253
  Object.defineProperty(exports, "assertCheckoutResponse", {
254
254
  enumerable: true,
255
- get: function () { return chunkSH6HJW4A_js.assertCheckoutResponse; }
255
+ get: function () { return chunkTBSDZN2W_js.assertCheckoutResponse; }
256
256
  });
257
257
  Object.defineProperty(exports, "cimplifyRegistry", {
258
258
  enumerable: true,
259
- get: function () { return chunkSH6HJW4A_js.cimplifyRegistry; }
259
+ get: function () { return chunkTBSDZN2W_js.cimplifyRegistry; }
260
260
  });
261
261
  Object.defineProperty(exports, "createTestClient", {
262
262
  enumerable: true,
263
- get: function () { return chunkSH6HJW4A_js.createTestClient; }
263
+ get: function () { return chunkTBSDZN2W_js.createTestClient; }
264
264
  });
265
265
  Object.defineProperty(exports, "fixtures", {
266
266
  enumerable: true,
267
- get: function () { return chunkSH6HJW4A_js.fixtures; }
267
+ get: function () { return chunkTBSDZN2W_js.fixtures; }
268
268
  });
269
269
  Object.defineProperty(exports, "makeAssertion", {
270
270
  enumerable: true,
271
- get: function () { return chunkSH6HJW4A_js.makeAssertion; }
271
+ get: function () { return chunkTBSDZN2W_js.makeAssertion; }
272
272
  });
273
273
  Object.defineProperty(exports, "registerSchema", {
274
274
  enumerable: true,
275
- get: function () { return chunkSH6HJW4A_js.registerSchema; }
275
+ get: function () { return chunkTBSDZN2W_js.registerSchema; }
276
276
  });
277
277
  exports.exportJsonSchemas = exportJsonSchemas;
278
278
  exports.listRegisteredSchemas = listRegisteredSchemas;
package/dist/testing.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-FNK6UZOE.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-FNK6UZOE.mjs';
3
- import './chunk-FVGVJ4TC.mjs';
4
- import './chunk-JAPCAZN4.mjs';
5
- import './chunk-QQMDEGAK.mjs';
1
+ import { VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-5UYNERYE.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-5UYNERYE.mjs';
3
+ import './chunk-O3ECKVOM.mjs';
4
+ import './chunk-KNPE4WCQ.mjs';
5
+ import './chunk-SOV4H6PQ.mjs';
6
6
  import './chunk-TD3AY34U.mjs';
7
7
  import './chunk-AMZXALF6.mjs';
8
8
  import './chunk-3G6RQLXK.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cimplify/sdk",
3
- "version": "0.67.0",
3
+ "version": "0.69.0",
4
4
  "description": "Cimplify Commerce SDK for storefronts",
5
5
  "keywords": [
6
6
  "cimplify",
@@ -660,15 +660,6 @@
660
660
  "cn"
661
661
  ]
662
662
  },
663
- {
664
- "name": "account",
665
- "title": "CimplifyAccount",
666
- "description": "Iframe wrapper for the Cimplify account portal — sign-in, orders, addresses, settings.",
667
- "type": "component",
668
- "registryDependencies": [
669
- "cn"
670
- ]
671
- },
672
663
  {
673
664
  "name": "billing-plan-selector",
674
665
  "title": "BillingPlanSelector",
@@ -1,15 +0,0 @@
1
- {
2
- "name": "account",
3
- "title": "CimplifyAccount",
4
- "description": "Iframe wrapper for the Cimplify account portal — sign-in, orders, addresses, settings.",
5
- "type": "component",
6
- "registryDependencies": [
7
- "cn"
8
- ],
9
- "files": [
10
- {
11
- "path": "account.tsx",
12
- "content": "\"use client\";\n\nimport React, { useEffect, useRef, useState, useMemo } from \"react\";\nimport type { CimplifyClient } from \"../client\";\nimport { useOptionalCimplify } from \"@cimplify/sdk/react\";\nimport { cn } from \"@cimplify/sdk/react\";\n\nexport interface CimplifyAccountProps {\n /** CimplifyClient instance. Falls back to provider context. */\n client?: CimplifyClient;\n /** Override the Link base URL. */\n linkUrl?: string;\n /** Initial section to show: \"dashboard\" | \"orders\" | \"addresses\" | \"payment-methods\" | \"sessions\" | \"settings\". */\n section?: string;\n /**\n * Per-merchant scope for the embedded account widget. When set, the\n * widget filters orders/subs/sessions to this business and hides\n * cross-merchant surfaces. Defaults to the client's configured\n * business ID so storefronts get scoping for free.\n */\n businessId?: string;\n /**\n * Display name of the embedding merchant — shown in the widget's\n * scoping footer (\"Showing your account with Acme Threads only.\").\n * Optional but recommended for trust signal.\n */\n merchantName?: string;\n /** Appearance variables — passed to Link for theming. */\n appearance?: {\n theme?: \"light\" | \"dark\";\n variables?: {\n primaryColor?: string;\n fontFamily?: string;\n borderRadius?: string;\n };\n };\n /** Called when the user logs out from the account portal. */\n onLogout?: () => void;\n /** Additional CSS class for the container. */\n className?: string;\n}\n\nconst DEFAULT_LINK_URL = \"https://link.cimplify.io\";\n\nexport function CimplifyAccount({\n client: clientProp,\n linkUrl,\n section,\n businessId: businessIdProp,\n merchantName,\n appearance,\n onLogout,\n className,\n}: CimplifyAccountProps): React.ReactElement {\n const context = useOptionalCimplify();\n const client = clientProp ?? context?.client;\n const resolvedLinkUrl = linkUrl || DEFAULT_LINK_URL;\n const resolvedBusinessId = businessIdProp || client?.getBusinessId?.() || \"\";\n\n const iframeRef = useRef<HTMLIFrameElement | null>(null);\n const [height, setHeight] = useState(400);\n const [isReady, setIsReady] = useState(false);\n\n const iframeSrc = useMemo(() => {\n const path = section ? `/elements/account/${section}` : \"/elements/account\";\n const url = new URL(path, resolvedLinkUrl);\n if (resolvedBusinessId) url.searchParams.set(\"businessId\", resolvedBusinessId);\n return url.toString();\n }, [resolvedLinkUrl, section, resolvedBusinessId]);\n\n // Listen for messages from the iframe\n useEffect(() => {\n function handleMessage(event: MessageEvent) {\n if (!event.data || typeof event.data !== \"object\") return;\n\n // Only accept messages from our iframe\n if (iframeRef.current?.contentWindow && event.source !== iframeRef.current.contentWindow) {\n return;\n }\n\n switch (event.data.type) {\n case \"ready\":\n setIsReady(true);\n if (typeof event.data.height === \"number\") {\n setHeight(event.data.height);\n }\n // Send init with token + appearance\n sendInit();\n break;\n\n case \"height_change\":\n if (typeof event.data.height === \"number\") {\n setHeight(event.data.height);\n }\n break;\n\n case \"logout_complete\":\n onLogout?.();\n break;\n }\n }\n\n window.addEventListener(\"message\", handleMessage);\n return () => window.removeEventListener(\"message\", handleMessage);\n }, [appearance, client, onLogout]);\n\n function sendInit() {\n const contentWindow = iframeRef.current?.contentWindow;\n if (!contentWindow) return;\n\n const token = client?.getAccessToken?.();\n contentWindow.postMessage(\n {\n type: \"init\",\n token: token ?? undefined,\n appearance: appearance ?? undefined,\n businessId: resolvedBusinessId || undefined,\n merchantName: merchantName ?? undefined,\n },\n resolvedLinkUrl,\n );\n }\n\n return (\n <div\n data-cimplify-account\n className={cn(\"relative overflow-hidden\", className)}\n >\n {!isReady && (\n <div className=\"flex items-center justify-center py-16\">\n <div className=\"w-6 h-6 border-2 border-border border-t-foreground rounded-full animate-spin\" />\n </div>\n )}\n <iframe\n ref={iframeRef}\n src={iframeSrc}\n style={{\n border: \"none\",\n width: \"100%\",\n height: `${height}px`,\n display: isReady ? \"block\" : \"none\",\n overflow: \"hidden\",\n background: \"transparent\",\n }}\n allow=\"geolocation\"\n sandbox=\"allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox\"\n />\n </div>\n );\n}\n"
13
- }
14
- ]
15
- }