@cimplify/sdk 0.64.0 → 0.65.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.
- package/dist/advanced.d.mts +1 -1
- package/dist/advanced.d.ts +1 -1
- package/dist/advanced.js +20 -20
- package/dist/advanced.mjs +1 -1
- package/dist/{chunk-JGBDWEPJ.js → chunk-AVQL3TSJ.js} +3 -0
- package/dist/{chunk-SQ7U3BWY.mjs → chunk-PKYZBKZD.mjs} +1 -1
- package/dist/{chunk-I4IXPQIX.mjs → chunk-R6363CC7.mjs} +3 -0
- package/dist/{chunk-MW7ICTVK.js → chunk-VAMZPBA4.js} +35 -35
- package/dist/{chunk-6W3AH4QW.js → chunk-VKID3QUE.js} +2 -2
- package/dist/{chunk-F4WS3OIF.mjs → chunk-WDTFIIY6.mjs} +1 -1
- package/dist/{client-DKg-5OWu.d.mts → client-BS5lNWWH.d.mts} +5 -0
- package/dist/{client-Dfg_hmkP.d.ts → client-QTrsv6Gu.d.ts} +5 -0
- package/dist/{client-Bhvlelij.d.mts → client-XoswXzib.d.mts} +1 -1
- package/dist/{client-DlGJqSDd.d.ts → client-p1Iofyc9.d.ts} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +61 -61
- package/dist/index.mjs +2 -2
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +18 -17
- package/dist/react.mjs +4 -3
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +3 -3
- package/dist/server.mjs +2 -2
- package/dist/testing/suite.d.mts +2 -2
- package/dist/testing/suite.d.ts +2 -2
- package/dist/testing/suite.js +22 -22
- package/dist/testing/suite.mjs +3 -3
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +78 -78
- package/dist/testing.mjs +4 -4
- package/package.json +1 -1
- package/registry/product-card.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var chunk6DMHVQ42_js = require('./chunk-6DMHVQ42.js');
|
|
4
4
|
var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
|
|
5
5
|
var chunkDKT62WQW_js = require('./chunk-DKT62WQW.js');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var chunkVAMZPBA4_js = require('./chunk-VAMZPBA4.js');
|
|
7
|
+
var chunkAVQL3TSJ_js = require('./chunk-AVQL3TSJ.js');
|
|
8
8
|
var chunk7Y2O3E4D_js = require('./chunk-7Y2O3E4D.js');
|
|
9
9
|
var chunkXA3ZNR75_js = require('./chunk-XA3ZNR75.js');
|
|
10
10
|
require('./chunk-OWW5GUSB.js');
|
|
@@ -155,239 +155,239 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
|
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "ActivityService", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkVAMZPBA4_js.ActivityService; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkVAMZPBA4_js.CimplifyClient; }
|
|
163
163
|
});
|
|
164
164
|
Object.defineProperty(exports, "DeliveryService", {
|
|
165
165
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkVAMZPBA4_js.DeliveryService; }
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "PlacesService", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkVAMZPBA4_js.PlacesService; }
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "SubscriptionService", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkVAMZPBA4_js.SubscriptionService; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "SupportService", {
|
|
177
177
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkVAMZPBA4_js.SupportService; }
|
|
179
179
|
});
|
|
180
180
|
Object.defineProperty(exports, "UploadService", {
|
|
181
181
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkVAMZPBA4_js.UploadService; }
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkVAMZPBA4_js.createCimplifyClient; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkAVQL3TSJ_js.AUTHORIZATION_TYPE; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "AUTH_MUTATION", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkAVQL3TSJ_js.AUTH_MUTATION; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "AuthService", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkAVQL3TSJ_js.AuthService; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "BusinessService", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkAVQL3TSJ_js.BusinessService; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "CHECKOUT_MODE", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkAVQL3TSJ_js.CHECKOUT_MODE; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "CHECKOUT_MUTATION", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkAVQL3TSJ_js.CHECKOUT_MUTATION; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "CHECKOUT_STEP", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkAVQL3TSJ_js.CHECKOUT_STEP; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "CONTACT_TYPE", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkAVQL3TSJ_js.CONTACT_TYPE; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "CartOperations", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkAVQL3TSJ_js.CartOperations; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkAVQL3TSJ_js.CatalogueQueries; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkAVQL3TSJ_js.CheckoutService; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "CheckoutService", {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkAVQL3TSJ_js.CheckoutService; }
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkAVQL3TSJ_js.CimplifyElement; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
241
241
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkAVQL3TSJ_js.CimplifyElements; }
|
|
243
243
|
});
|
|
244
244
|
Object.defineProperty(exports, "DEFAULT_COUNTRY", {
|
|
245
245
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkAVQL3TSJ_js.DEFAULT_COUNTRY; }
|
|
247
247
|
});
|
|
248
248
|
Object.defineProperty(exports, "DEFAULT_CURRENCY", {
|
|
249
249
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkAVQL3TSJ_js.DEFAULT_CURRENCY; }
|
|
251
251
|
});
|
|
252
252
|
Object.defineProperty(exports, "DEVICE_TYPE", {
|
|
253
253
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunkAVQL3TSJ_js.DEVICE_TYPE; }
|
|
255
255
|
});
|
|
256
256
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
257
257
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunkAVQL3TSJ_js.ELEMENT_TYPES; }
|
|
259
259
|
});
|
|
260
260
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
261
261
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunkAVQL3TSJ_js.EVENT_TYPES; }
|
|
263
263
|
});
|
|
264
264
|
Object.defineProperty(exports, "FxService", {
|
|
265
265
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunkAVQL3TSJ_js.FxService; }
|
|
267
267
|
});
|
|
268
268
|
Object.defineProperty(exports, "InventoryService", {
|
|
269
269
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunkAVQL3TSJ_js.InventoryService; }
|
|
271
271
|
});
|
|
272
272
|
Object.defineProperty(exports, "LINK_MUTATION", {
|
|
273
273
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunkAVQL3TSJ_js.LINK_MUTATION; }
|
|
275
275
|
});
|
|
276
276
|
Object.defineProperty(exports, "LINK_QUERY", {
|
|
277
277
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
278
|
+
get: function () { return chunkAVQL3TSJ_js.LINK_QUERY; }
|
|
279
279
|
});
|
|
280
280
|
Object.defineProperty(exports, "LinkService", {
|
|
281
281
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
282
|
+
get: function () { return chunkAVQL3TSJ_js.LinkService; }
|
|
283
283
|
});
|
|
284
284
|
Object.defineProperty(exports, "LiteService", {
|
|
285
285
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
286
|
+
get: function () { return chunkAVQL3TSJ_js.LiteService; }
|
|
287
287
|
});
|
|
288
288
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
289
289
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
290
|
+
get: function () { return chunkAVQL3TSJ_js.MESSAGE_TYPES; }
|
|
291
291
|
});
|
|
292
292
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
|
|
293
293
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
294
|
+
get: function () { return chunkAVQL3TSJ_js.MOBILE_MONEY_PROVIDER; }
|
|
295
295
|
});
|
|
296
296
|
Object.defineProperty(exports, "ORDER_MUTATION", {
|
|
297
297
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
298
|
+
get: function () { return chunkAVQL3TSJ_js.ORDER_MUTATION; }
|
|
299
299
|
});
|
|
300
300
|
Object.defineProperty(exports, "ORDER_TYPE", {
|
|
301
301
|
enumerable: true,
|
|
302
|
-
get: function () { return
|
|
302
|
+
get: function () { return chunkAVQL3TSJ_js.ORDER_TYPE; }
|
|
303
303
|
});
|
|
304
304
|
Object.defineProperty(exports, "OrderQueries", {
|
|
305
305
|
enumerable: true,
|
|
306
|
-
get: function () { return
|
|
306
|
+
get: function () { return chunkAVQL3TSJ_js.OrderQueries; }
|
|
307
307
|
});
|
|
308
308
|
Object.defineProperty(exports, "PAYMENT_METHOD", {
|
|
309
309
|
enumerable: true,
|
|
310
|
-
get: function () { return
|
|
310
|
+
get: function () { return chunkAVQL3TSJ_js.PAYMENT_METHOD; }
|
|
311
311
|
});
|
|
312
312
|
Object.defineProperty(exports, "PAYMENT_MUTATION", {
|
|
313
313
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
314
|
+
get: function () { return chunkAVQL3TSJ_js.PAYMENT_MUTATION; }
|
|
315
315
|
});
|
|
316
316
|
Object.defineProperty(exports, "PAYMENT_STATE", {
|
|
317
317
|
enumerable: true,
|
|
318
|
-
get: function () { return
|
|
318
|
+
get: function () { return chunkAVQL3TSJ_js.PAYMENT_STATE; }
|
|
319
319
|
});
|
|
320
320
|
Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
|
|
321
321
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
322
|
+
get: function () { return chunkAVQL3TSJ_js.PICKUP_TIME_TYPE; }
|
|
323
323
|
});
|
|
324
324
|
Object.defineProperty(exports, "SchedulingService", {
|
|
325
325
|
enumerable: true,
|
|
326
|
-
get: function () { return
|
|
326
|
+
get: function () { return chunkAVQL3TSJ_js.SchedulingService; }
|
|
327
327
|
});
|
|
328
328
|
Object.defineProperty(exports, "combine", {
|
|
329
329
|
enumerable: true,
|
|
330
|
-
get: function () { return
|
|
330
|
+
get: function () { return chunkAVQL3TSJ_js.combine; }
|
|
331
331
|
});
|
|
332
332
|
Object.defineProperty(exports, "combineObject", {
|
|
333
333
|
enumerable: true,
|
|
334
|
-
get: function () { return
|
|
334
|
+
get: function () { return chunkAVQL3TSJ_js.combineObject; }
|
|
335
335
|
});
|
|
336
336
|
Object.defineProperty(exports, "createElements", {
|
|
337
337
|
enumerable: true,
|
|
338
|
-
get: function () { return
|
|
338
|
+
get: function () { return chunkAVQL3TSJ_js.createElements; }
|
|
339
339
|
});
|
|
340
340
|
Object.defineProperty(exports, "err", {
|
|
341
341
|
enumerable: true,
|
|
342
|
-
get: function () { return
|
|
342
|
+
get: function () { return chunkAVQL3TSJ_js.err; }
|
|
343
343
|
});
|
|
344
344
|
Object.defineProperty(exports, "flatMap", {
|
|
345
345
|
enumerable: true,
|
|
346
|
-
get: function () { return
|
|
346
|
+
get: function () { return chunkAVQL3TSJ_js.flatMap; }
|
|
347
347
|
});
|
|
348
348
|
Object.defineProperty(exports, "fromPromise", {
|
|
349
349
|
enumerable: true,
|
|
350
|
-
get: function () { return
|
|
350
|
+
get: function () { return chunkAVQL3TSJ_js.fromPromise; }
|
|
351
351
|
});
|
|
352
352
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
353
353
|
enumerable: true,
|
|
354
|
-
get: function () { return
|
|
354
|
+
get: function () { return chunkAVQL3TSJ_js.generateIdempotencyKey; }
|
|
355
355
|
});
|
|
356
356
|
Object.defineProperty(exports, "getOrElse", {
|
|
357
357
|
enumerable: true,
|
|
358
|
-
get: function () { return
|
|
358
|
+
get: function () { return chunkAVQL3TSJ_js.getOrElse; }
|
|
359
359
|
});
|
|
360
360
|
Object.defineProperty(exports, "isErr", {
|
|
361
361
|
enumerable: true,
|
|
362
|
-
get: function () { return
|
|
362
|
+
get: function () { return chunkAVQL3TSJ_js.isErr; }
|
|
363
363
|
});
|
|
364
364
|
Object.defineProperty(exports, "isOk", {
|
|
365
365
|
enumerable: true,
|
|
366
|
-
get: function () { return
|
|
366
|
+
get: function () { return chunkAVQL3TSJ_js.isOk; }
|
|
367
367
|
});
|
|
368
368
|
Object.defineProperty(exports, "mapError", {
|
|
369
369
|
enumerable: true,
|
|
370
|
-
get: function () { return
|
|
370
|
+
get: function () { return chunkAVQL3TSJ_js.mapError; }
|
|
371
371
|
});
|
|
372
372
|
Object.defineProperty(exports, "mapResult", {
|
|
373
373
|
enumerable: true,
|
|
374
|
-
get: function () { return
|
|
374
|
+
get: function () { return chunkAVQL3TSJ_js.mapResult; }
|
|
375
375
|
});
|
|
376
376
|
Object.defineProperty(exports, "ok", {
|
|
377
377
|
enumerable: true,
|
|
378
|
-
get: function () { return
|
|
378
|
+
get: function () { return chunkAVQL3TSJ_js.ok; }
|
|
379
379
|
});
|
|
380
380
|
Object.defineProperty(exports, "toNullable", {
|
|
381
381
|
enumerable: true,
|
|
382
|
-
get: function () { return
|
|
382
|
+
get: function () { return chunkAVQL3TSJ_js.toNullable; }
|
|
383
383
|
});
|
|
384
384
|
Object.defineProperty(exports, "tryCatch", {
|
|
385
385
|
enumerable: true,
|
|
386
|
-
get: function () { return
|
|
386
|
+
get: function () { return chunkAVQL3TSJ_js.tryCatch; }
|
|
387
387
|
});
|
|
388
388
|
Object.defineProperty(exports, "unwrap", {
|
|
389
389
|
enumerable: true,
|
|
390
|
-
get: function () { return
|
|
390
|
+
get: function () { return chunkAVQL3TSJ_js.unwrap; }
|
|
391
391
|
});
|
|
392
392
|
Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
|
|
393
393
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { generatePkce, generateState } from './chunk-2AU263DK.mjs';
|
|
|
2
2
|
export { CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, getVariantDisplayName, isCimplifyAsset, resolveGallery, startSignIn } from './chunk-2AU263DK.mjs';
|
|
3
3
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
|
|
4
4
|
import { getAuthorizationEndpoint, DEFAULT_ISSUER } from './chunk-XSOYJLMZ.mjs';
|
|
5
|
-
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-
|
|
6
|
-
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, toNullable, tryCatch, unwrap } from './chunk-
|
|
5
|
+
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-PKYZBKZD.mjs';
|
|
6
|
+
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, toNullable, tryCatch, unwrap } from './chunk-R6363CC7.mjs';
|
|
7
7
|
export { CURRENCY_SYMBOLS, MOBILE_MONEY_PROVIDERS, categorizePaymentError, detectMobileMoneyProvider, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceRange, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getMarkupPercentage, getPriceRange, getProductCurrency, getTaxAmount, getUnitPriceAtQuantity, hasTaxInfo, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isTaxInclusive, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-TD3AY34U.mjs';
|
|
8
8
|
export { CimplifyError, ERROR_HINTS, ErrorCode, IdempotencyMismatchError, ZERO, currencyCode, enrichError, getErrorHint, isCimplifyError, isIdempotencyMismatchError, isQuoteConflictRequiringConsent, isQuoteError, isRetryableError, isSupportedCurrency, money, moneyFromNumber } from './chunk-AMZXALF6.mjs';
|
|
9
9
|
import './chunk-3G6RQLXK.mjs';
|
package/dist/react.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-dr7m09nm.mjs';
|
|
3
3
|
export { A as AdConfig, g as getVariantDisplayName } from './sign-in-dr7m09nm.mjs';
|
|
4
|
-
import { ac as CimplifyClient, c0 as ProcessCheckoutResult, a9 as CheckoutStatus, aa as CheckoutStatusContext, w as Business, bd as Location, ch as ReorderResult, bK as OrderStatus, bt as Order, c2 as QuoteBundleSelectionInput, c3 as QuoteCompositeSelectionInput, bY as PriceQuote, c6 as QuoteUiMessage, cC as Service, r as AvailableSlot, au as DayAvailability, am as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, cL as SessionMessage, c as ActivityRecommendation, aw as DeliveryFeeResponse, aX as FxRateResponse, cU as StorefrontBootstrap, X as ChatWidgetStarter, W as ChatMessage, h as AddressInfo, n as AuthenticatedData, aL as ElementsOptions, bS as PaymentMethodInfo, aJ as ElementsCheckoutResult, b$ as ProcessCheckoutOptions, af as CimplifyElements, b4 as LineItem, cO as Staff, cx as Room } from './client-
|
|
4
|
+
import { ac as CimplifyClient, c0 as ProcessCheckoutResult, a9 as CheckoutStatus, aa as CheckoutStatusContext, w as Business, bd as Location, ch as ReorderResult, bK as OrderStatus, bt as Order, c2 as QuoteBundleSelectionInput, c3 as QuoteCompositeSelectionInput, bY as PriceQuote, c6 as QuoteUiMessage, cC as Service, r as AvailableSlot, au as DayAvailability, am as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, cL as SessionMessage, c as ActivityRecommendation, aw as DeliveryFeeResponse, aX as FxRateResponse, cU as StorefrontBootstrap, X as ChatWidgetStarter, W as ChatMessage, h as AddressInfo, n as AuthenticatedData, aL as ElementsOptions, bS as PaymentMethodInfo, aJ as ElementsCheckoutResult, b$ as ProcessCheckoutOptions, af as CimplifyElements, b4 as LineItem, cO as Staff, cx as Room } from './client-BS5lNWWH.mjs';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { ab as CurrencyCode, aX as Product, aO as Pagination, T as CimplifyError, b9 as ProductWithDetails, Q as Category, aM as Money, C as BundleSelectionInput, $ as ComponentSelectionInput, z as BundleSelectionData, a8 as CompositeSelectionData, U as Collection, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, b5 as ProductTimeProfile, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, E as BundleSummary, a6 as CompositePriceResult, bo as SubscriptionWithDetails, bn as SubscriptionStatus, bk as Subscription, ac as CustomAttributeDefinition, ba as PropertyFacet, a$ as ProductBillingPlan, bL as VariantView, bF as VariantAxisWithValues, f as AddOnWithOptions, w as BundleComponentView, x as BundlePriceType, a4 as CompositeGroupView, aq as DisplayCart, b1 as ProductInputField, bg as SchedulingMode, at as DurationUnit, ad as CustomAttributeValue, b2 as ProductProperty, bc as QuantityPricingTier } from './product-B_kS4Oxa.mjs';
|
|
7
7
|
import { P as ProductWithPrice } from './price-Cm0tU0V5.mjs';
|
package/dist/react.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-dr7m09nm.js';
|
|
3
3
|
export { A as AdConfig, g as getVariantDisplayName } from './sign-in-dr7m09nm.js';
|
|
4
|
-
import { ac as CimplifyClient, c0 as ProcessCheckoutResult, a9 as CheckoutStatus, aa as CheckoutStatusContext, w as Business, bd as Location, ch as ReorderResult, bK as OrderStatus, bt as Order, c2 as QuoteBundleSelectionInput, c3 as QuoteCompositeSelectionInput, bY as PriceQuote, c6 as QuoteUiMessage, cC as Service, r as AvailableSlot, au as DayAvailability, am as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, cL as SessionMessage, c as ActivityRecommendation, aw as DeliveryFeeResponse, aX as FxRateResponse, cU as StorefrontBootstrap, X as ChatWidgetStarter, W as ChatMessage, h as AddressInfo, n as AuthenticatedData, aL as ElementsOptions, bS as PaymentMethodInfo, aJ as ElementsCheckoutResult, b$ as ProcessCheckoutOptions, af as CimplifyElements, b4 as LineItem, cO as Staff, cx as Room } from './client-
|
|
4
|
+
import { ac as CimplifyClient, c0 as ProcessCheckoutResult, a9 as CheckoutStatus, aa as CheckoutStatusContext, w as Business, bd as Location, ch as ReorderResult, bK as OrderStatus, bt as Order, c2 as QuoteBundleSelectionInput, c3 as QuoteCompositeSelectionInput, bY as PriceQuote, c6 as QuoteUiMessage, cC as Service, r as AvailableSlot, au as DayAvailability, am as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, cL as SessionMessage, c as ActivityRecommendation, aw as DeliveryFeeResponse, aX as FxRateResponse, cU as StorefrontBootstrap, X as ChatWidgetStarter, W as ChatMessage, h as AddressInfo, n as AuthenticatedData, aL as ElementsOptions, bS as PaymentMethodInfo, aJ as ElementsCheckoutResult, b$ as ProcessCheckoutOptions, af as CimplifyElements, b4 as LineItem, cO as Staff, cx as Room } from './client-QTrsv6Gu.js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { ab as CurrencyCode, aX as Product, aO as Pagination, T as CimplifyError, b9 as ProductWithDetails, Q as Category, aM as Money, C as BundleSelectionInput, $ as ComponentSelectionInput, z as BundleSelectionData, a8 as CompositeSelectionData, U as Collection, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, b5 as ProductTimeProfile, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, E as BundleSummary, a6 as CompositePriceResult, bo as SubscriptionWithDetails, bn as SubscriptionStatus, bk as Subscription, ac as CustomAttributeDefinition, ba as PropertyFacet, a$ as ProductBillingPlan, bL as VariantView, bF as VariantAxisWithValues, f as AddOnWithOptions, w as BundleComponentView, x as BundlePriceType, a4 as CompositeGroupView, aq as DisplayCart, b1 as ProductInputField, bg as SchedulingMode, at as DurationUnit, ad as CustomAttributeValue, b2 as ProductProperty, bc as QuantityPricingTier } from './product-B_kS4Oxa.js';
|
|
7
7
|
import { P as ProductWithPrice } from './price-9T1Y47oS.js';
|
package/dist/react.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
var chunk6DMHVQ42_js = require('./chunk-6DMHVQ42.js');
|
|
5
5
|
require('./chunk-DKT62WQW.js');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var chunkVAMZPBA4_js = require('./chunk-VAMZPBA4.js');
|
|
7
|
+
var chunkAVQL3TSJ_js = require('./chunk-AVQL3TSJ.js');
|
|
8
8
|
var chunk7Y2O3E4D_js = require('./chunk-7Y2O3E4D.js');
|
|
9
9
|
var chunkXA3ZNR75_js = require('./chunk-XA3ZNR75.js');
|
|
10
10
|
require('./chunk-OWW5GUSB.js');
|
|
@@ -1087,7 +1087,7 @@ var DEFAULT_COUNTRY = "US";
|
|
|
1087
1087
|
function createDefaultClient() {
|
|
1088
1088
|
const processRef = globalThis.process;
|
|
1089
1089
|
const envPublicKey = processRef?.env?.NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY || "";
|
|
1090
|
-
return
|
|
1090
|
+
return chunkVAMZPBA4_js.createCimplifyClient({ publicKey: envPublicKey });
|
|
1091
1091
|
}
|
|
1092
1092
|
function getStoredLocationId() {
|
|
1093
1093
|
if (typeof window === "undefined" || !window.localStorage) {
|
|
@@ -5118,19 +5118,19 @@ function AuthElement({
|
|
|
5118
5118
|
}, [onReady, onAuthenticated, onRequiresOtp, onError]);
|
|
5119
5119
|
React12.useEffect(() => {
|
|
5120
5120
|
if (!elements || !containerRef.current) return;
|
|
5121
|
-
const element = elements.create(
|
|
5121
|
+
const element = elements.create(chunkAVQL3TSJ_js.ELEMENT_TYPES.AUTH, { prefillEmail });
|
|
5122
5122
|
elementRef.current = element;
|
|
5123
|
-
element.on(
|
|
5123
|
+
element.on(chunkAVQL3TSJ_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
|
|
5124
5124
|
element.on(
|
|
5125
|
-
|
|
5125
|
+
chunkAVQL3TSJ_js.EVENT_TYPES.AUTHENTICATED,
|
|
5126
5126
|
(data) => onAuthenticatedRef.current?.(data)
|
|
5127
5127
|
);
|
|
5128
5128
|
element.on(
|
|
5129
|
-
|
|
5129
|
+
chunkAVQL3TSJ_js.EVENT_TYPES.REQUIRES_OTP,
|
|
5130
5130
|
(data) => onRequiresOtpRef.current?.(data)
|
|
5131
5131
|
);
|
|
5132
5132
|
element.on(
|
|
5133
|
-
|
|
5133
|
+
chunkAVQL3TSJ_js.EVENT_TYPES.ERROR,
|
|
5134
5134
|
(data) => onErrorRef.current?.(data)
|
|
5135
5135
|
);
|
|
5136
5136
|
element.mount(containerRef.current);
|
|
@@ -5159,15 +5159,15 @@ function AddressElement({
|
|
|
5159
5159
|
}, [onReady, onChange, onError]);
|
|
5160
5160
|
React12.useEffect(() => {
|
|
5161
5161
|
if (!elements || !containerRef.current) return;
|
|
5162
|
-
const element = elements.create(
|
|
5162
|
+
const element = elements.create(chunkAVQL3TSJ_js.ELEMENT_TYPES.ADDRESS, { mode });
|
|
5163
5163
|
elementRef.current = element;
|
|
5164
|
-
element.on(
|
|
5164
|
+
element.on(chunkAVQL3TSJ_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
|
|
5165
5165
|
element.on(
|
|
5166
|
-
|
|
5166
|
+
chunkAVQL3TSJ_js.EVENT_TYPES.CHANGE,
|
|
5167
5167
|
(data) => onChangeRef.current?.(data)
|
|
5168
5168
|
);
|
|
5169
5169
|
element.on(
|
|
5170
|
-
|
|
5170
|
+
chunkAVQL3TSJ_js.EVENT_TYPES.ERROR,
|
|
5171
5171
|
(data) => onErrorRef.current?.(data)
|
|
5172
5172
|
);
|
|
5173
5173
|
element.mount(containerRef.current);
|
|
@@ -5197,15 +5197,15 @@ function PaymentElement({
|
|
|
5197
5197
|
}, [onReady, onChange, onError]);
|
|
5198
5198
|
React12.useEffect(() => {
|
|
5199
5199
|
if (!elements || !containerRef.current) return;
|
|
5200
|
-
const element = elements.create(
|
|
5200
|
+
const element = elements.create(chunkAVQL3TSJ_js.ELEMENT_TYPES.PAYMENT, { amount, currency });
|
|
5201
5201
|
elementRef.current = element;
|
|
5202
|
-
element.on(
|
|
5202
|
+
element.on(chunkAVQL3TSJ_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
|
|
5203
5203
|
element.on(
|
|
5204
|
-
|
|
5204
|
+
chunkAVQL3TSJ_js.EVENT_TYPES.CHANGE,
|
|
5205
5205
|
(data) => onChangeRef.current?.(data)
|
|
5206
5206
|
);
|
|
5207
5207
|
element.on(
|
|
5208
|
-
|
|
5208
|
+
chunkAVQL3TSJ_js.EVENT_TYPES.ERROR,
|
|
5209
5209
|
(data) => onErrorRef.current?.(data)
|
|
5210
5210
|
);
|
|
5211
5211
|
element.mount(containerRef.current);
|
|
@@ -10536,6 +10536,7 @@ function ProductCard({
|
|
|
10536
10536
|
if (ResolvedCard) {
|
|
10537
10537
|
return /* @__PURE__ */ jsxRuntime.jsx(ResolvedCard, { product, onQuickAdd, renderImage, renderLink });
|
|
10538
10538
|
}
|
|
10539
|
+
const descriptionPreview = stripHtmlToText(product.description);
|
|
10539
10540
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
10540
10541
|
imageUrl && /* @__PURE__ */ jsxRuntime.jsx(
|
|
10541
10542
|
"div",
|
|
@@ -10556,7 +10557,7 @@ function ProductCard({
|
|
|
10556
10557
|
),
|
|
10557
10558
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-cimplify-product-card-body": true, className: cn("p-4 flex flex-col gap-1", classNames?.body), children: [
|
|
10558
10559
|
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-cimplify-product-card-name": true, className: cn("font-semibold text-foreground leading-tight", classNames?.name), children: product.name }),
|
|
10559
|
-
|
|
10560
|
+
descriptionPreview && /* @__PURE__ */ jsxRuntime.jsx("span", { "data-cimplify-product-card-description": true, className: cn("text-sm text-muted-foreground line-clamp-2", classNames?.description), children: descriptionPreview }),
|
|
10560
10561
|
/* @__PURE__ */ jsxRuntime.jsx(Price, { amount: product.default_price, className: cn("text-sm font-medium text-foreground mt-1", classNames?.price) })
|
|
10561
10562
|
] })
|
|
10562
10563
|
] });
|
package/dist/react.mjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { DURATION_UNIT, getVariantDisplayName, INPUT_FIELD_TYPE, PRODUCT_TYPE, resolveGallery, startSignIn, RENDER_HINT } from './chunk-2AU263DK.mjs';
|
|
3
3
|
export { getVariantDisplayName } from './chunk-2AU263DK.mjs';
|
|
4
4
|
import './chunk-XSOYJLMZ.mjs';
|
|
5
|
-
import { createCimplifyClient } from './chunk-
|
|
6
|
-
import { ELEMENT_TYPES, EVENT_TYPES } from './chunk-
|
|
5
|
+
import { createCimplifyClient } from './chunk-PKYZBKZD.mjs';
|
|
6
|
+
import { ELEMENT_TYPES, EVENT_TYPES } from './chunk-R6363CC7.mjs';
|
|
7
7
|
import { formatPrice, parsePrice, getUnitPriceAtQuantity, isOnSale, getDiscountPercentage, getBasePrice, getPriceRange, formatPriceRange } from './chunk-TD3AY34U.mjs';
|
|
8
8
|
import { isSupportedCurrency } from './chunk-AMZXALF6.mjs';
|
|
9
9
|
import './chunk-3G6RQLXK.mjs';
|
|
@@ -10531,6 +10531,7 @@ function ProductCard({
|
|
|
10531
10531
|
if (ResolvedCard) {
|
|
10532
10532
|
return /* @__PURE__ */ jsx(ResolvedCard, { product, onQuickAdd, renderImage, renderLink });
|
|
10533
10533
|
}
|
|
10534
|
+
const descriptionPreview = stripHtmlToText(product.description);
|
|
10534
10535
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
10535
10536
|
imageUrl && /* @__PURE__ */ jsx(
|
|
10536
10537
|
"div",
|
|
@@ -10551,7 +10552,7 @@ function ProductCard({
|
|
|
10551
10552
|
),
|
|
10552
10553
|
/* @__PURE__ */ jsxs("div", { "data-cimplify-product-card-body": true, className: cn("p-4 flex flex-col gap-1", classNames?.body), children: [
|
|
10553
10554
|
/* @__PURE__ */ jsx("span", { "data-cimplify-product-card-name": true, className: cn("font-semibold text-foreground leading-tight", classNames?.name), children: product.name }),
|
|
10554
|
-
|
|
10555
|
+
descriptionPreview && /* @__PURE__ */ jsx("span", { "data-cimplify-product-card-description": true, className: cn("text-sm text-muted-foreground line-clamp-2", classNames?.description), children: descriptionPreview }),
|
|
10555
10556
|
/* @__PURE__ */ jsx(Price, { amount: product.default_price, className: cn("text-sm font-medium text-foreground mt-1", classNames?.price) })
|
|
10556
10557
|
] })
|
|
10557
10558
|
] });
|
package/dist/server.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ac as CimplifyClient } from './client-
|
|
2
|
-
export { J as CacheOptions, c7 as ReadRequestOptions, ct as Result } from './client-
|
|
1
|
+
import { ac as CimplifyClient } from './client-BS5lNWWH.mjs';
|
|
2
|
+
export { J as CacheOptions, c7 as ReadRequestOptions, ct as Result } from './client-BS5lNWWH.mjs';
|
|
3
3
|
export { Q as Category, T as CimplifyError, U as Collection, aX as Product, b9 as ProductWithDetails } from './product-B_kS4Oxa.mjs';
|
|
4
4
|
import { JWTVerifyResult } from 'jose';
|
|
5
5
|
import './payment-DVS7ZUEp.mjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ac as CimplifyClient } from './client-
|
|
2
|
-
export { J as CacheOptions, c7 as ReadRequestOptions, ct as Result } from './client-
|
|
1
|
+
import { ac as CimplifyClient } from './client-QTrsv6Gu.js';
|
|
2
|
+
export { J as CacheOptions, c7 as ReadRequestOptions, ct as Result } from './client-QTrsv6Gu.js';
|
|
3
3
|
export { Q as Category, T as CimplifyError, U as Collection, aX as Product, b9 as ProductWithDetails } from './product-B_kS4Oxa.js';
|
|
4
4
|
import { JWTVerifyResult } from 'jose';
|
|
5
5
|
import './payment-sn-yGL7v.js';
|
package/dist/server.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkDKT62WQW_js = require('./chunk-DKT62WQW.js');
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var chunkVAMZPBA4_js = require('./chunk-VAMZPBA4.js');
|
|
5
|
+
require('./chunk-AVQL3TSJ.js');
|
|
6
6
|
require('./chunk-7Y2O3E4D.js');
|
|
7
7
|
var chunkXA3ZNR75_js = require('./chunk-XA3ZNR75.js');
|
|
8
8
|
require('./chunk-OWW5GUSB.js');
|
|
@@ -27,7 +27,7 @@ function readEnv(...keys) {
|
|
|
27
27
|
var getServerClient = react.cache((opts = {}) => {
|
|
28
28
|
const baseUrl = opts.apiUrl ?? readEnv("CIMPLIFY_API_URL", "NEXT_PUBLIC_CIMPLIFY_API_URL") ?? defaultBaseUrl();
|
|
29
29
|
const publicKey = opts.secretKey ?? readEnv("CIMPLIFY_SECRET_KEY", "NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY") ?? "mock-dev";
|
|
30
|
-
const client =
|
|
30
|
+
const client = chunkVAMZPBA4_js.createCimplifyClient({
|
|
31
31
|
baseUrl,
|
|
32
32
|
publicKey,
|
|
33
33
|
suppressPublicKeyWarning: true
|
package/dist/server.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PKCE_COOKIE, decodePkceState, PKCE_COOKIE_PATH, DEFAULT_ISSUER } from './chunk-XSOYJLMZ.mjs';
|
|
2
|
-
import { createCimplifyClient } from './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
import { createCimplifyClient } from './chunk-PKYZBKZD.mjs';
|
|
3
|
+
import './chunk-R6363CC7.mjs';
|
|
4
4
|
import './chunk-TD3AY34U.mjs';
|
|
5
5
|
export { CimplifyError } from './chunk-AMZXALF6.mjs';
|
|
6
6
|
import './chunk-3G6RQLXK.mjs';
|
package/dist/testing/suite.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TestAPI } from 'vitest';
|
|
2
|
-
import { T as TestClientHandle } from '../client-
|
|
2
|
+
import { T as TestClientHandle } from '../client-XoswXzib.mjs';
|
|
3
3
|
import { C as CreateAppOptions } from '../server-D8rwqZQ6.mjs';
|
|
4
4
|
export { S as SeedName } from '../server-D8rwqZQ6.mjs';
|
|
5
|
-
import '../client-
|
|
5
|
+
import '../client-BS5lNWWH.mjs';
|
|
6
6
|
import '../product-B_kS4Oxa.mjs';
|
|
7
7
|
import '../payment-DVS7ZUEp.mjs';
|
|
8
8
|
import 'hono';
|
package/dist/testing/suite.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TestAPI } from 'vitest';
|
|
2
|
-
import { T as TestClientHandle } from '../client-
|
|
2
|
+
import { T as TestClientHandle } from '../client-p1Iofyc9.js';
|
|
3
3
|
import { C as CreateAppOptions } from '../server-BQzz921M.js';
|
|
4
4
|
export { S as SeedName } from '../server-BQzz921M.js';
|
|
5
|
-
import '../client-
|
|
5
|
+
import '../client-QTrsv6Gu.js';
|
|
6
6
|
import '../product-B_kS4Oxa.js';
|
|
7
7
|
import '../payment-sn-yGL7v.js';
|
|
8
8
|
import 'hono';
|