@cimplify/sdk 0.87.0 → 0.88.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 +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/advanced.js +20 -20
- package/dist/advanced.mjs +1 -1
- package/dist/{chunk-PWDX5N2M.js → chunk-6JA4HBBD.js} +2 -2
- package/dist/{chunk-RCGSHS2Q.mjs → chunk-A7NODD4Q.mjs} +12 -1
- package/dist/{chunk-FWEF2DHR.js → chunk-GHFDYM5K.js} +66 -10
- package/dist/{chunk-J7JDCPNW.mjs → chunk-VU5LFNEX.mjs} +1 -1
- package/dist/{chunk-P3352VXA.js → chunk-W5BVGAO6.js} +48 -37
- package/dist/{chunk-U57TYZLD.mjs → chunk-ZU4ZRYUR.mjs} +66 -10
- package/dist/{client-BMOdyC1F.d.mts → client-B-8ceVyt.d.mts} +2 -2
- package/dist/{client-BvWtk822.d.ts → client-B3FBDfTg.d.ts} +2 -2
- package/dist/{client-BIt37FjS.d.mts → client-D0PrO1-Q.d.ts} +17 -6
- package/dist/{client-Dfl6WY2F.d.ts → client-r5VSGFRU.d.mts} +17 -6
- package/dist/{index-DW6JifS1.d.ts → index-C-Pxrzna.d.ts} +3 -3
- package/dist/{index-BxOJ3BLn.d.mts → index-DLulxmF1.d.mts} +3 -3
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +69 -69
- package/dist/index.mjs +3 -3
- package/dist/{payment-DJrvivO_.d.ts → payment-Cfoo9MT7.d.ts} +1 -1
- package/dist/{payment-CLp__KpE.d.mts → payment-TnJUoHqL.d.mts} +1 -1
- package/dist/{price-B7_UzClY.d.ts → price-CCDSrIsc.d.ts} +1 -1
- package/dist/{price-Ddk8Vr8z.d.mts → price-CM0zVSyM.d.mts} +1 -1
- package/dist/{product-C0Lr81ze.d.mts → product-DoA36Eqh.d.mts} +22 -0
- package/dist/{product-C0Lr81ze.d.ts → product-DoA36Eqh.d.ts} +22 -0
- package/dist/react.d.mts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +16 -16
- package/dist/react.mjs +2 -2
- package/dist/{server-P2G43ENi.d.ts → server-CHfYeTAa.d.ts} +1 -1
- package/dist/{server-0TnEJt8U.d.mts → server-CI1CUFVu.d.mts} +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +7 -7
- package/dist/server.mjs +2 -2
- package/dist/styles.css +1 -1
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +22 -22
- package/dist/testing/suite.mjs +3 -3
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.js +78 -78
- package/dist/testing.mjs +4 -4
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkT7Z25EY4_js = require('./chunk-T7Z25EY4.js');
|
|
4
4
|
var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkW5BVGAO6_js = require('./chunk-W5BVGAO6.js');
|
|
6
|
+
var chunkGHFDYM5K_js = require('./chunk-GHFDYM5K.js');
|
|
7
7
|
var chunkPTPOQVXS_js = require('./chunk-PTPOQVXS.js');
|
|
8
8
|
var chunkAETVRBKI_js = require('./chunk-AETVRBKI.js');
|
|
9
9
|
require('./chunk-OWW5GUSB.js');
|
|
@@ -27,9 +27,9 @@ async function signInSilent(opts) {
|
|
|
27
27
|
} catch {
|
|
28
28
|
}
|
|
29
29
|
const callbackUri = opts.callbackUri ?? "/auth/callback";
|
|
30
|
-
const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await
|
|
31
|
-
const pkce = await
|
|
32
|
-
const state =
|
|
30
|
+
const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await chunkGHFDYM5K_js.getAuthorizationEndpoint(opts.issuer ?? chunkGHFDYM5K_js.DEFAULT_ISSUER);
|
|
31
|
+
const pkce = await chunkGHFDYM5K_js.generatePkce();
|
|
32
|
+
const state = chunkGHFDYM5K_js.generateState();
|
|
33
33
|
const params = new URLSearchParams({
|
|
34
34
|
response_type: RESPONSE_TYPE_CODE,
|
|
35
35
|
response_mode: RESPONSE_MODE_WEB_MESSAGE,
|
|
@@ -159,259 +159,259 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
|
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "ActivityService", {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkW5BVGAO6_js.ActivityService; }
|
|
163
163
|
});
|
|
164
164
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
165
165
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkW5BVGAO6_js.CimplifyClient; }
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "DeliveryService", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkW5BVGAO6_js.DeliveryService; }
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "PlacesService", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkW5BVGAO6_js.PlacesService; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "StoreCreditQueries", {
|
|
177
177
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkW5BVGAO6_js.StoreCreditQueries; }
|
|
179
179
|
});
|
|
180
180
|
Object.defineProperty(exports, "SubscriptionService", {
|
|
181
181
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkW5BVGAO6_js.SubscriptionService; }
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "SupportService", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkW5BVGAO6_js.SupportService; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "UploadService", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkW5BVGAO6_js.UploadService; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkW5BVGAO6_js.createCimplifyClient; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkGHFDYM5K_js.AUTHORIZATION_TYPE; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "AUTH_MUTATION", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkGHFDYM5K_js.AUTH_MUTATION; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "AuthService", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkGHFDYM5K_js.AuthService; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "BusinessService", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkGHFDYM5K_js.BusinessService; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "CHECKOUT_MODE", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkGHFDYM5K_js.CHECKOUT_MODE; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "CHECKOUT_MUTATION", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkGHFDYM5K_js.CHECKOUT_MUTATION; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "CHECKOUT_STEP", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkGHFDYM5K_js.CHECKOUT_STEP; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "CONTACT_TYPE", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkGHFDYM5K_js.CONTACT_TYPE; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "CartOperations", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkGHFDYM5K_js.CartOperations; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkGHFDYM5K_js.CatalogueQueries; }
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkGHFDYM5K_js.CheckoutService; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "CheckoutService", {
|
|
241
241
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkGHFDYM5K_js.CheckoutService; }
|
|
243
243
|
});
|
|
244
244
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
245
245
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkGHFDYM5K_js.CimplifyElement; }
|
|
247
247
|
});
|
|
248
248
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
249
249
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkGHFDYM5K_js.CimplifyElements; }
|
|
251
251
|
});
|
|
252
252
|
Object.defineProperty(exports, "DEFAULT_COUNTRY", {
|
|
253
253
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunkGHFDYM5K_js.DEFAULT_COUNTRY; }
|
|
255
255
|
});
|
|
256
256
|
Object.defineProperty(exports, "DEFAULT_CURRENCY", {
|
|
257
257
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunkGHFDYM5K_js.DEFAULT_CURRENCY; }
|
|
259
259
|
});
|
|
260
260
|
Object.defineProperty(exports, "DEVICE_TYPE", {
|
|
261
261
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunkGHFDYM5K_js.DEVICE_TYPE; }
|
|
263
263
|
});
|
|
264
264
|
Object.defineProperty(exports, "ELEMENTS_AUTH_CONTACT_TYPES", {
|
|
265
265
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunkGHFDYM5K_js.ELEMENTS_AUTH_CONTACT_TYPES; }
|
|
267
267
|
});
|
|
268
268
|
Object.defineProperty(exports, "ELEMENTS_AUTH_MODES", {
|
|
269
269
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunkGHFDYM5K_js.ELEMENTS_AUTH_MODES; }
|
|
271
271
|
});
|
|
272
272
|
Object.defineProperty(exports, "ELEMENTS_AUTH_PROMPTS", {
|
|
273
273
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunkGHFDYM5K_js.ELEMENTS_AUTH_PROMPTS; }
|
|
275
275
|
});
|
|
276
276
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
277
277
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
278
|
+
get: function () { return chunkGHFDYM5K_js.ELEMENT_TYPES; }
|
|
279
279
|
});
|
|
280
280
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
281
281
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
282
|
+
get: function () { return chunkGHFDYM5K_js.EVENT_TYPES; }
|
|
283
283
|
});
|
|
284
284
|
Object.defineProperty(exports, "FxService", {
|
|
285
285
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
286
|
+
get: function () { return chunkGHFDYM5K_js.FxService; }
|
|
287
287
|
});
|
|
288
288
|
Object.defineProperty(exports, "InventoryService", {
|
|
289
289
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
290
|
+
get: function () { return chunkGHFDYM5K_js.InventoryService; }
|
|
291
291
|
});
|
|
292
292
|
Object.defineProperty(exports, "LINK_MUTATION", {
|
|
293
293
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
294
|
+
get: function () { return chunkGHFDYM5K_js.LINK_MUTATION; }
|
|
295
295
|
});
|
|
296
296
|
Object.defineProperty(exports, "LINK_QUERY", {
|
|
297
297
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
298
|
+
get: function () { return chunkGHFDYM5K_js.LINK_QUERY; }
|
|
299
299
|
});
|
|
300
300
|
Object.defineProperty(exports, "LinkService", {
|
|
301
301
|
enumerable: true,
|
|
302
|
-
get: function () { return
|
|
302
|
+
get: function () { return chunkGHFDYM5K_js.LinkService; }
|
|
303
303
|
});
|
|
304
304
|
Object.defineProperty(exports, "LiteService", {
|
|
305
305
|
enumerable: true,
|
|
306
|
-
get: function () { return
|
|
306
|
+
get: function () { return chunkGHFDYM5K_js.LiteService; }
|
|
307
307
|
});
|
|
308
308
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
309
309
|
enumerable: true,
|
|
310
|
-
get: function () { return
|
|
310
|
+
get: function () { return chunkGHFDYM5K_js.MESSAGE_TYPES; }
|
|
311
311
|
});
|
|
312
312
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
|
|
313
313
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
314
|
+
get: function () { return chunkGHFDYM5K_js.MOBILE_MONEY_PROVIDER; }
|
|
315
315
|
});
|
|
316
316
|
Object.defineProperty(exports, "ORDER_MUTATION", {
|
|
317
317
|
enumerable: true,
|
|
318
|
-
get: function () { return
|
|
318
|
+
get: function () { return chunkGHFDYM5K_js.ORDER_MUTATION; }
|
|
319
319
|
});
|
|
320
320
|
Object.defineProperty(exports, "ORDER_TYPE", {
|
|
321
321
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
322
|
+
get: function () { return chunkGHFDYM5K_js.ORDER_TYPE; }
|
|
323
323
|
});
|
|
324
324
|
Object.defineProperty(exports, "OrderQueries", {
|
|
325
325
|
enumerable: true,
|
|
326
|
-
get: function () { return
|
|
326
|
+
get: function () { return chunkGHFDYM5K_js.OrderQueries; }
|
|
327
327
|
});
|
|
328
328
|
Object.defineProperty(exports, "PAYMENT_METHOD", {
|
|
329
329
|
enumerable: true,
|
|
330
|
-
get: function () { return
|
|
330
|
+
get: function () { return chunkGHFDYM5K_js.PAYMENT_METHOD; }
|
|
331
331
|
});
|
|
332
332
|
Object.defineProperty(exports, "PAYMENT_MUTATION", {
|
|
333
333
|
enumerable: true,
|
|
334
|
-
get: function () { return
|
|
334
|
+
get: function () { return chunkGHFDYM5K_js.PAYMENT_MUTATION; }
|
|
335
335
|
});
|
|
336
336
|
Object.defineProperty(exports, "PAYMENT_STATE", {
|
|
337
337
|
enumerable: true,
|
|
338
|
-
get: function () { return
|
|
338
|
+
get: function () { return chunkGHFDYM5K_js.PAYMENT_STATE; }
|
|
339
339
|
});
|
|
340
340
|
Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
|
|
341
341
|
enumerable: true,
|
|
342
|
-
get: function () { return
|
|
342
|
+
get: function () { return chunkGHFDYM5K_js.PICKUP_TIME_TYPE; }
|
|
343
343
|
});
|
|
344
344
|
Object.defineProperty(exports, "SchedulingService", {
|
|
345
345
|
enumerable: true,
|
|
346
|
-
get: function () { return
|
|
346
|
+
get: function () { return chunkGHFDYM5K_js.SchedulingService; }
|
|
347
347
|
});
|
|
348
348
|
Object.defineProperty(exports, "combine", {
|
|
349
349
|
enumerable: true,
|
|
350
|
-
get: function () { return
|
|
350
|
+
get: function () { return chunkGHFDYM5K_js.combine; }
|
|
351
351
|
});
|
|
352
352
|
Object.defineProperty(exports, "combineObject", {
|
|
353
353
|
enumerable: true,
|
|
354
|
-
get: function () { return
|
|
354
|
+
get: function () { return chunkGHFDYM5K_js.combineObject; }
|
|
355
355
|
});
|
|
356
356
|
Object.defineProperty(exports, "createElements", {
|
|
357
357
|
enumerable: true,
|
|
358
|
-
get: function () { return
|
|
358
|
+
get: function () { return chunkGHFDYM5K_js.createElements; }
|
|
359
359
|
});
|
|
360
360
|
Object.defineProperty(exports, "err", {
|
|
361
361
|
enumerable: true,
|
|
362
|
-
get: function () { return
|
|
362
|
+
get: function () { return chunkGHFDYM5K_js.err; }
|
|
363
363
|
});
|
|
364
364
|
Object.defineProperty(exports, "flatMap", {
|
|
365
365
|
enumerable: true,
|
|
366
|
-
get: function () { return
|
|
366
|
+
get: function () { return chunkGHFDYM5K_js.flatMap; }
|
|
367
367
|
});
|
|
368
368
|
Object.defineProperty(exports, "fromPromise", {
|
|
369
369
|
enumerable: true,
|
|
370
|
-
get: function () { return
|
|
370
|
+
get: function () { return chunkGHFDYM5K_js.fromPromise; }
|
|
371
371
|
});
|
|
372
372
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
373
373
|
enumerable: true,
|
|
374
|
-
get: function () { return
|
|
374
|
+
get: function () { return chunkGHFDYM5K_js.generateIdempotencyKey; }
|
|
375
375
|
});
|
|
376
376
|
Object.defineProperty(exports, "getOrElse", {
|
|
377
377
|
enumerable: true,
|
|
378
|
-
get: function () { return
|
|
378
|
+
get: function () { return chunkGHFDYM5K_js.getOrElse; }
|
|
379
379
|
});
|
|
380
380
|
Object.defineProperty(exports, "isErr", {
|
|
381
381
|
enumerable: true,
|
|
382
|
-
get: function () { return
|
|
382
|
+
get: function () { return chunkGHFDYM5K_js.isErr; }
|
|
383
383
|
});
|
|
384
384
|
Object.defineProperty(exports, "isOk", {
|
|
385
385
|
enumerable: true,
|
|
386
|
-
get: function () { return
|
|
386
|
+
get: function () { return chunkGHFDYM5K_js.isOk; }
|
|
387
387
|
});
|
|
388
388
|
Object.defineProperty(exports, "mapError", {
|
|
389
389
|
enumerable: true,
|
|
390
|
-
get: function () { return
|
|
390
|
+
get: function () { return chunkGHFDYM5K_js.mapError; }
|
|
391
391
|
});
|
|
392
392
|
Object.defineProperty(exports, "mapResult", {
|
|
393
393
|
enumerable: true,
|
|
394
|
-
get: function () { return
|
|
394
|
+
get: function () { return chunkGHFDYM5K_js.mapResult; }
|
|
395
395
|
});
|
|
396
396
|
Object.defineProperty(exports, "ok", {
|
|
397
397
|
enumerable: true,
|
|
398
|
-
get: function () { return
|
|
398
|
+
get: function () { return chunkGHFDYM5K_js.ok; }
|
|
399
399
|
});
|
|
400
400
|
Object.defineProperty(exports, "startSignIn", {
|
|
401
401
|
enumerable: true,
|
|
402
|
-
get: function () { return
|
|
402
|
+
get: function () { return chunkGHFDYM5K_js.startSignIn; }
|
|
403
403
|
});
|
|
404
404
|
Object.defineProperty(exports, "toNullable", {
|
|
405
405
|
enumerable: true,
|
|
406
|
-
get: function () { return
|
|
406
|
+
get: function () { return chunkGHFDYM5K_js.toNullable; }
|
|
407
407
|
});
|
|
408
408
|
Object.defineProperty(exports, "tryCatch", {
|
|
409
409
|
enumerable: true,
|
|
410
|
-
get: function () { return
|
|
410
|
+
get: function () { return chunkGHFDYM5K_js.tryCatch; }
|
|
411
411
|
});
|
|
412
412
|
Object.defineProperty(exports, "unwrap", {
|
|
413
413
|
enumerable: true,
|
|
414
|
-
get: function () { return
|
|
414
|
+
get: function () { return chunkGHFDYM5K_js.unwrap; }
|
|
415
415
|
});
|
|
416
416
|
Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
|
|
417
417
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, getVariantDisplayName, isCimplifyAsset, resolveGallery } from './chunk-OZDDHSIB.mjs';
|
|
2
2
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
|
|
3
|
-
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-
|
|
4
|
-
import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-
|
|
5
|
-
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, ELEMENTS_AUTH_CONTACT_TYPES, ELEMENTS_AUTH_MODES, ELEMENTS_AUTH_PROMPTS, 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, startSignIn, toNullable, tryCatch, unwrap } from './chunk-
|
|
3
|
+
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-A7NODD4Q.mjs';
|
|
4
|
+
import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-ZU4ZRYUR.mjs';
|
|
5
|
+
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, ELEMENTS_AUTH_CONTACT_TYPES, ELEMENTS_AUTH_MODES, ELEMENTS_AUTH_PROMPTS, 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, startSignIn, toNullable, tryCatch, unwrap } from './chunk-ZU4ZRYUR.mjs';
|
|
6
6
|
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-KFLGQGMC.mjs';
|
|
7
7
|
export { CimplifyError, ERROR_HINTS, ErrorCode, IdempotencyMismatchError, ZERO, currencyCode, enrichError, getErrorHint, isCimplifyError, isIdempotencyMismatchError, isQuoteConflictRequiringConsent, isQuoteError, isRetryableError, isSupportedCurrency, money, moneyFromNumber } from './chunk-K5EN2W2Q.mjs';
|
|
8
8
|
import './chunk-3G6RQLXK.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aO as Money, ad as CurrencyCode } from './product-
|
|
1
|
+
import { aO as Money, ad as CurrencyCode } from './product-DoA36Eqh.js';
|
|
2
2
|
|
|
3
3
|
type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
|
|
4
4
|
type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtn_momo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aO as Money, ad as CurrencyCode } from './product-
|
|
1
|
+
import { aO as Money, ad as CurrencyCode } from './product-DoA36Eqh.mjs';
|
|
2
2
|
|
|
3
3
|
type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
|
|
4
4
|
type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtn_momo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-
|
|
1
|
+
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-DoA36Eqh.js';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-
|
|
1
|
+
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-DoA36Eqh.mjs';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|
|
@@ -1005,6 +1005,24 @@ interface components {
|
|
|
1005
1005
|
zip_code: string;
|
|
1006
1006
|
};
|
|
1007
1007
|
};
|
|
1008
|
+
/**
|
|
1009
|
+
* @description Business-wide defaults for the auto-pricing engine. Products and variants
|
|
1010
|
+
* override `default_markup_pct`; everything else is the fallback for a business
|
|
1011
|
+
* that hasn't tuned per-item.
|
|
1012
|
+
*/
|
|
1013
|
+
AutoPricingPreferences: {
|
|
1014
|
+
/**
|
|
1015
|
+
* @description Fallback markup percent applied over cost when a product sets none.
|
|
1016
|
+
* `None` means no business-wide default — suggestions rely on per-product markup.
|
|
1017
|
+
*/
|
|
1018
|
+
default_markup_pct?: string | null;
|
|
1019
|
+
/** @description Suggested prices round to the nearest multiple of this amount. */
|
|
1020
|
+
rounding_increment?: string;
|
|
1021
|
+
/** @description When a delivery lowers cost, also suggest lowering the price. Off keeps the margin. */
|
|
1022
|
+
suggest_on_cost_drop?: boolean;
|
|
1023
|
+
/** @description Apply suggestions on receipt without a review step. */
|
|
1024
|
+
apply_automatically?: boolean;
|
|
1025
|
+
};
|
|
1008
1026
|
AutocompletePrediction: {
|
|
1009
1027
|
description: string;
|
|
1010
1028
|
place_id: string;
|
|
@@ -2659,6 +2677,8 @@ interface components {
|
|
|
2659
2677
|
InventoryPreferences: {
|
|
2660
2678
|
/** @description Basic inventory tracking settings */
|
|
2661
2679
|
tracking: components["schemas"]["InventoryTrackingPreferences"];
|
|
2680
|
+
/** @description Markup-driven selling-price suggestions when a delivery changes cost */
|
|
2681
|
+
auto_pricing?: components["schemas"]["AutoPricingPreferences"];
|
|
2662
2682
|
};
|
|
2663
2683
|
/** @description Information about inventory status */
|
|
2664
2684
|
InventoryStatus: {
|
|
@@ -3534,6 +3554,8 @@ interface components {
|
|
|
3534
3554
|
display_mode?: null | components["schemas"]["DisplayMode"];
|
|
3535
3555
|
/** Format: int32 */
|
|
3536
3556
|
min_order_quantity?: number | null;
|
|
3557
|
+
default_markup_pct?: string | null;
|
|
3558
|
+
auto_apply_markup: boolean;
|
|
3537
3559
|
};
|
|
3538
3560
|
ProductAvailabilityNowView: {
|
|
3539
3561
|
is_available: boolean;
|
|
@@ -1005,6 +1005,24 @@ interface components {
|
|
|
1005
1005
|
zip_code: string;
|
|
1006
1006
|
};
|
|
1007
1007
|
};
|
|
1008
|
+
/**
|
|
1009
|
+
* @description Business-wide defaults for the auto-pricing engine. Products and variants
|
|
1010
|
+
* override `default_markup_pct`; everything else is the fallback for a business
|
|
1011
|
+
* that hasn't tuned per-item.
|
|
1012
|
+
*/
|
|
1013
|
+
AutoPricingPreferences: {
|
|
1014
|
+
/**
|
|
1015
|
+
* @description Fallback markup percent applied over cost when a product sets none.
|
|
1016
|
+
* `None` means no business-wide default — suggestions rely on per-product markup.
|
|
1017
|
+
*/
|
|
1018
|
+
default_markup_pct?: string | null;
|
|
1019
|
+
/** @description Suggested prices round to the nearest multiple of this amount. */
|
|
1020
|
+
rounding_increment?: string;
|
|
1021
|
+
/** @description When a delivery lowers cost, also suggest lowering the price. Off keeps the margin. */
|
|
1022
|
+
suggest_on_cost_drop?: boolean;
|
|
1023
|
+
/** @description Apply suggestions on receipt without a review step. */
|
|
1024
|
+
apply_automatically?: boolean;
|
|
1025
|
+
};
|
|
1008
1026
|
AutocompletePrediction: {
|
|
1009
1027
|
description: string;
|
|
1010
1028
|
place_id: string;
|
|
@@ -2659,6 +2677,8 @@ interface components {
|
|
|
2659
2677
|
InventoryPreferences: {
|
|
2660
2678
|
/** @description Basic inventory tracking settings */
|
|
2661
2679
|
tracking: components["schemas"]["InventoryTrackingPreferences"];
|
|
2680
|
+
/** @description Markup-driven selling-price suggestions when a delivery changes cost */
|
|
2681
|
+
auto_pricing?: components["schemas"]["AutoPricingPreferences"];
|
|
2662
2682
|
};
|
|
2663
2683
|
/** @description Information about inventory status */
|
|
2664
2684
|
InventoryStatus: {
|
|
@@ -3534,6 +3554,8 @@ interface components {
|
|
|
3534
3554
|
display_mode?: null | components["schemas"]["DisplayMode"];
|
|
3535
3555
|
/** Format: int32 */
|
|
3536
3556
|
min_order_quantity?: number | null;
|
|
3557
|
+
default_markup_pct?: string | null;
|
|
3558
|
+
auto_apply_markup: boolean;
|
|
3537
3559
|
};
|
|
3538
3560
|
ProductAvailabilityNowView: {
|
|
3539
3561
|
is_available: boolean;
|
package/dist/react.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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-DQlIdqsi.mjs';
|
|
3
3
|
export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.mjs';
|
|
4
|
-
import { ac as CimplifyClient, c4 as OrderType, cp as ProcessCheckoutResult, a9 as CheckoutStatus, aa as CheckoutStatusContext, aW as EnrichedOrderItem, aV as EnrichedOrder, w as Business, bt as Location, cG as ReorderResult, c2 as OrderStatus, bJ as Order, cr as QuoteBundleSelectionInput, cs as QuoteCompositeSelectionInput, cl as PriceQuote, cv as QuoteUiMessage, d0 as Service, r as AvailableSlot, au as DayAvailability, am as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, d9 as SessionMessage, c as ActivityRecommendation, aw as DeliveryFeeResponse, ay as DeliveryOptionsResponse, b8 as FxRateResponse, di as StoreCreditBalance, dk as StorefrontBootstrap, X as ChatWidgetStarter, W as ChatMessage, h as AddressInfo, n as AuthenticatedData, aU as ElementsOptions, cf as PaymentMethodInfo, aS as ElementsCheckoutResult, co as ProcessCheckoutOptions, af as CimplifyElements, bk as LineItem, dc as Staff, cX as Room } from './client-
|
|
4
|
+
import { ac as CimplifyClient, c4 as OrderType, cp as ProcessCheckoutResult, a9 as CheckoutStatus, aa as CheckoutStatusContext, aW as EnrichedOrderItem, aV as EnrichedOrder, w as Business, bt as Location, cG as ReorderResult, c2 as OrderStatus, bJ as Order, cr as QuoteBundleSelectionInput, cs as QuoteCompositeSelectionInput, cl as PriceQuote, cv as QuoteUiMessage, d0 as Service, r as AvailableSlot, au as DayAvailability, am as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, d9 as SessionMessage, c as ActivityRecommendation, aw as DeliveryFeeResponse, ay as DeliveryOptionsResponse, b8 as FxRateResponse, di as StoreCreditBalance, dk as StorefrontBootstrap, X as ChatWidgetStarter, W as ChatMessage, h as AddressInfo, n as AuthenticatedData, aU as ElementsOptions, cf as PaymentMethodInfo, aS as ElementsCheckoutResult, co as ProcessCheckoutOptions, af as CimplifyElements, bk as LineItem, dc as Staff, cX as Room } from './client-r5VSGFRU.mjs';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import { ad as CurrencyCode, aZ as Product, aQ as Pagination, V as CimplifyError, bb as ProductWithDetails, S as Category, aO as Money, E as BundleSelectionInput, a1 as ComponentSelectionInput, D as BundleSelectionData, aa as CompositeSelectionData, W as Collection, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, b7 as ProductTimeProfile, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, G as BundleSummary, a8 as CompositePriceResult, bs as SubscriptionWithDetails, br as SubscriptionStatus, bo as Subscription, ae as CustomAttributeDefinition, bc as PropertyFacet, b1 as ProductBillingPlan, bQ as VariantView, bK as VariantAxisWithValues, f as AddOnWithOptions, y as BundleComponentView, z as BundlePriceType, a6 as CompositeGroupView, as as DisplayCart, b3 as ProductInputField, bi as SaleInfo, bD as UpcomingSale, av as DurationUnit, t as BoundaryKind, bk as SchedulingMode, al as DepositType, af as CustomAttributeValue, b4 as ProductProperty, be as QuantityPricingTier } from './product-
|
|
7
|
-
import { P as ProductWithPrice } from './price-
|
|
6
|
+
import { ad as CurrencyCode, aZ as Product, aQ as Pagination, V as CimplifyError, bb as ProductWithDetails, S as Category, aO as Money, E as BundleSelectionInput, a1 as ComponentSelectionInput, D as BundleSelectionData, aa as CompositeSelectionData, W as Collection, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, b7 as ProductTimeProfile, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, G as BundleSummary, a8 as CompositePriceResult, bs as SubscriptionWithDetails, br as SubscriptionStatus, bo as Subscription, ae as CustomAttributeDefinition, bc as PropertyFacet, b1 as ProductBillingPlan, bQ as VariantView, bK as VariantAxisWithValues, f as AddOnWithOptions, y as BundleComponentView, z as BundlePriceType, a6 as CompositeGroupView, as as DisplayCart, b3 as ProductInputField, bi as SaleInfo, bD as UpcomingSale, av as DurationUnit, t as BoundaryKind, bk as SchedulingMode, al as DepositType, af as CustomAttributeValue, b4 as ProductProperty, be as QuantityPricingTier } from './product-DoA36Eqh.mjs';
|
|
7
|
+
import { P as ProductWithPrice } from './price-CM0zVSyM.mjs';
|
|
8
8
|
import { ClassValue } from 'clsx';
|
|
9
9
|
import { Matcher } from 'react-day-picker';
|
|
10
|
-
import './payment-
|
|
10
|
+
import './payment-TnJUoHqL.mjs';
|
|
11
11
|
|
|
12
12
|
interface UserIdentity {
|
|
13
13
|
uid: string;
|
package/dist/react.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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-DQlIdqsi.js';
|
|
3
3
|
export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.js';
|
|
4
|
-
import { ac as CimplifyClient, c4 as OrderType, cp as ProcessCheckoutResult, a9 as CheckoutStatus, aa as CheckoutStatusContext, aW as EnrichedOrderItem, aV as EnrichedOrder, w as Business, bt as Location, cG as ReorderResult, c2 as OrderStatus, bJ as Order, cr as QuoteBundleSelectionInput, cs as QuoteCompositeSelectionInput, cl as PriceQuote, cv as QuoteUiMessage, d0 as Service, r as AvailableSlot, au as DayAvailability, am as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, d9 as SessionMessage, c as ActivityRecommendation, aw as DeliveryFeeResponse, ay as DeliveryOptionsResponse, b8 as FxRateResponse, di as StoreCreditBalance, dk as StorefrontBootstrap, X as ChatWidgetStarter, W as ChatMessage, h as AddressInfo, n as AuthenticatedData, aU as ElementsOptions, cf as PaymentMethodInfo, aS as ElementsCheckoutResult, co as ProcessCheckoutOptions, af as CimplifyElements, bk as LineItem, dc as Staff, cX as Room } from './client-
|
|
4
|
+
import { ac as CimplifyClient, c4 as OrderType, cp as ProcessCheckoutResult, a9 as CheckoutStatus, aa as CheckoutStatusContext, aW as EnrichedOrderItem, aV as EnrichedOrder, w as Business, bt as Location, cG as ReorderResult, c2 as OrderStatus, bJ as Order, cr as QuoteBundleSelectionInput, cs as QuoteCompositeSelectionInput, cl as PriceQuote, cv as QuoteUiMessage, d0 as Service, r as AvailableSlot, au as DayAvailability, am as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, d9 as SessionMessage, c as ActivityRecommendation, aw as DeliveryFeeResponse, ay as DeliveryOptionsResponse, b8 as FxRateResponse, di as StoreCreditBalance, dk as StorefrontBootstrap, X as ChatWidgetStarter, W as ChatMessage, h as AddressInfo, n as AuthenticatedData, aU as ElementsOptions, cf as PaymentMethodInfo, aS as ElementsCheckoutResult, co as ProcessCheckoutOptions, af as CimplifyElements, bk as LineItem, dc as Staff, cX as Room } from './client-D0PrO1-Q.js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import { ad as CurrencyCode, aZ as Product, aQ as Pagination, V as CimplifyError, bb as ProductWithDetails, S as Category, aO as Money, E as BundleSelectionInput, a1 as ComponentSelectionInput, D as BundleSelectionData, aa as CompositeSelectionData, W as Collection, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, b7 as ProductTimeProfile, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, G as BundleSummary, a8 as CompositePriceResult, bs as SubscriptionWithDetails, br as SubscriptionStatus, bo as Subscription, ae as CustomAttributeDefinition, bc as PropertyFacet, b1 as ProductBillingPlan, bQ as VariantView, bK as VariantAxisWithValues, f as AddOnWithOptions, y as BundleComponentView, z as BundlePriceType, a6 as CompositeGroupView, as as DisplayCart, b3 as ProductInputField, bi as SaleInfo, bD as UpcomingSale, av as DurationUnit, t as BoundaryKind, bk as SchedulingMode, al as DepositType, af as CustomAttributeValue, b4 as ProductProperty, be as QuantityPricingTier } from './product-
|
|
7
|
-
import { P as ProductWithPrice } from './price-
|
|
6
|
+
import { ad as CurrencyCode, aZ as Product, aQ as Pagination, V as CimplifyError, bb as ProductWithDetails, S as Category, aO as Money, E as BundleSelectionInput, a1 as ComponentSelectionInput, D as BundleSelectionData, aa as CompositeSelectionData, W as Collection, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, b7 as ProductTimeProfile, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, G as BundleSummary, a8 as CompositePriceResult, bs as SubscriptionWithDetails, br as SubscriptionStatus, bo as Subscription, ae as CustomAttributeDefinition, bc as PropertyFacet, b1 as ProductBillingPlan, bQ as VariantView, bK as VariantAxisWithValues, f as AddOnWithOptions, y as BundleComponentView, z as BundlePriceType, a6 as CompositeGroupView, as as DisplayCart, b3 as ProductInputField, bi as SaleInfo, bD as UpcomingSale, av as DurationUnit, t as BoundaryKind, bk as SchedulingMode, al as DepositType, af as CustomAttributeValue, b4 as ProductProperty, be as QuantityPricingTier } from './product-DoA36Eqh.js';
|
|
7
|
+
import { P as ProductWithPrice } from './price-CCDSrIsc.js';
|
|
8
8
|
import { ClassValue } from 'clsx';
|
|
9
9
|
import { Matcher } from 'react-day-picker';
|
|
10
|
-
import './payment-
|
|
10
|
+
import './payment-Cfoo9MT7.js';
|
|
11
11
|
|
|
12
12
|
interface UserIdentity {
|
|
13
13
|
uid: string;
|
package/dist/react.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkT7Z25EY4_js = require('./chunk-T7Z25EY4.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkW5BVGAO6_js = require('./chunk-W5BVGAO6.js');
|
|
6
|
+
var chunkGHFDYM5K_js = require('./chunk-GHFDYM5K.js');
|
|
7
7
|
var chunkPTPOQVXS_js = require('./chunk-PTPOQVXS.js');
|
|
8
8
|
var chunkAETVRBKI_js = require('./chunk-AETVRBKI.js');
|
|
9
9
|
require('./chunk-OWW5GUSB.js');
|
|
@@ -1132,7 +1132,7 @@ var DEFAULT_COUNTRY = "US";
|
|
|
1132
1132
|
function createDefaultClient() {
|
|
1133
1133
|
const processRef = globalThis.process;
|
|
1134
1134
|
const envPublicKey = processRef?.env?.NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY || "";
|
|
1135
|
-
return
|
|
1135
|
+
return chunkW5BVGAO6_js.createCimplifyClient({ publicKey: envPublicKey });
|
|
1136
1136
|
}
|
|
1137
1137
|
function getStoredLocationId() {
|
|
1138
1138
|
if (typeof window === "undefined" || !window.localStorage) {
|
|
@@ -3444,7 +3444,7 @@ function CimplifySignInButton({
|
|
|
3444
3444
|
const onClick = async () => {
|
|
3445
3445
|
if (busy || disabled || !signInOpts.clientId) return;
|
|
3446
3446
|
setBusy(true);
|
|
3447
|
-
await
|
|
3447
|
+
await chunkGHFDYM5K_js.startSignIn({
|
|
3448
3448
|
...signInOpts,
|
|
3449
3449
|
onSuccess: () => {
|
|
3450
3450
|
setBusy(false);
|
|
@@ -6121,15 +6121,15 @@ function AuthElement({
|
|
|
6121
6121
|
}, [onReady, onAuthenticated, onError]);
|
|
6122
6122
|
React14.useEffect(() => {
|
|
6123
6123
|
if (!elements || !containerRef.current) return;
|
|
6124
|
-
const element = elements.create(
|
|
6124
|
+
const element = elements.create(chunkGHFDYM5K_js.ELEMENT_TYPES.AUTH, { prefillEmail });
|
|
6125
6125
|
elementRef.current = element;
|
|
6126
|
-
element.on(
|
|
6126
|
+
element.on(chunkGHFDYM5K_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
|
|
6127
6127
|
element.on(
|
|
6128
|
-
|
|
6128
|
+
chunkGHFDYM5K_js.EVENT_TYPES.AUTHENTICATED,
|
|
6129
6129
|
(data) => onAuthenticatedRef.current?.(data)
|
|
6130
6130
|
);
|
|
6131
6131
|
element.on(
|
|
6132
|
-
|
|
6132
|
+
chunkGHFDYM5K_js.EVENT_TYPES.ERROR,
|
|
6133
6133
|
(data) => onErrorRef.current?.(data)
|
|
6134
6134
|
);
|
|
6135
6135
|
element.mount(containerRef.current);
|
|
@@ -6158,15 +6158,15 @@ function AddressElement({
|
|
|
6158
6158
|
}, [onReady, onChange, onError]);
|
|
6159
6159
|
React14.useEffect(() => {
|
|
6160
6160
|
if (!elements || !containerRef.current) return;
|
|
6161
|
-
const element = elements.create(
|
|
6161
|
+
const element = elements.create(chunkGHFDYM5K_js.ELEMENT_TYPES.ADDRESS, { mode });
|
|
6162
6162
|
elementRef.current = element;
|
|
6163
|
-
element.on(
|
|
6163
|
+
element.on(chunkGHFDYM5K_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
|
|
6164
6164
|
element.on(
|
|
6165
|
-
|
|
6165
|
+
chunkGHFDYM5K_js.EVENT_TYPES.CHANGE,
|
|
6166
6166
|
(data) => onChangeRef.current?.(data)
|
|
6167
6167
|
);
|
|
6168
6168
|
element.on(
|
|
6169
|
-
|
|
6169
|
+
chunkGHFDYM5K_js.EVENT_TYPES.ERROR,
|
|
6170
6170
|
(data) => onErrorRef.current?.(data)
|
|
6171
6171
|
);
|
|
6172
6172
|
element.mount(containerRef.current);
|
|
@@ -6196,15 +6196,15 @@ function PaymentElement({
|
|
|
6196
6196
|
}, [onReady, onChange, onError]);
|
|
6197
6197
|
React14.useEffect(() => {
|
|
6198
6198
|
if (!elements || !containerRef.current) return;
|
|
6199
|
-
const element = elements.create(
|
|
6199
|
+
const element = elements.create(chunkGHFDYM5K_js.ELEMENT_TYPES.PAYMENT, { amount, currency });
|
|
6200
6200
|
elementRef.current = element;
|
|
6201
|
-
element.on(
|
|
6201
|
+
element.on(chunkGHFDYM5K_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
|
|
6202
6202
|
element.on(
|
|
6203
|
-
|
|
6203
|
+
chunkGHFDYM5K_js.EVENT_TYPES.CHANGE,
|
|
6204
6204
|
(data) => onChangeRef.current?.(data)
|
|
6205
6205
|
);
|
|
6206
6206
|
element.on(
|
|
6207
|
-
|
|
6207
|
+
chunkGHFDYM5K_js.EVENT_TYPES.ERROR,
|
|
6208
6208
|
(data) => onErrorRef.current?.(data)
|
|
6209
6209
|
);
|
|
6210
6210
|
element.mount(containerRef.current);
|
package/dist/react.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { DURATION_UNIT, getVariantDisplayName, INPUT_FIELD_TYPE, PRODUCT_TYPE, BOUNDARY_KIND, resolveGallery, RENDER_HINT, DEFAULT_CDN_BASE_URL } from './chunk-OZDDHSIB.mjs';
|
|
3
3
|
export { getVariantDisplayName } from './chunk-OZDDHSIB.mjs';
|
|
4
|
-
import { createCimplifyClient } from './chunk-
|
|
5
|
-
import { ELEMENT_TYPES, EVENT_TYPES, startSignIn } from './chunk-
|
|
4
|
+
import { createCimplifyClient } from './chunk-A7NODD4Q.mjs';
|
|
5
|
+
import { ELEMENT_TYPES, EVENT_TYPES, startSignIn } from './chunk-ZU4ZRYUR.mjs';
|
|
6
6
|
import { parsePrice, formatMoney, formatPrice, getProductCurrency, getUnitPriceAtQuantity, isOnSale, getDiscountPercentage, getBasePrice, getPriceRange, formatPriceRange } from './chunk-KFLGQGMC.mjs';
|
|
7
7
|
import { isSupportedCurrency } from './chunk-K5EN2W2Q.mjs';
|
|
8
8
|
import './chunk-3G6RQLXK.mjs';
|