@basis-theory/web-elements 1.4.0 → 1.6.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/CHANGELOG.md +21 -0
- package/dist/bundle/index.js +1 -1
- package/dist/main/index.js +597 -2
- package/dist/module/module.js +614 -3
- package/dist/package.json +2 -1
- package/dist/types/index.d.ts +126 -84
- package/dist/types/types/elements/elements.d.ts +2 -0
- package/dist/types/types/elements/services/sessions.d.ts +11 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/version.d.ts +1 -0
- package/package.json +2 -1
package/dist/module/module.js
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
function $parcel$export(e, n, v, s) {
|
|
3
3
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
4
4
|
}
|
|
5
|
+
|
|
6
|
+
function $parcel$exportWildcard(dest, source) {
|
|
7
|
+
Object.keys(source).forEach(function(key) {
|
|
8
|
+
if (key === 'default' || key === '__esModule' || Object.prototype.hasOwnProperty.call(dest, key)) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(dest, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return source[key];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
return dest;
|
|
21
|
+
}
|
|
5
22
|
var $65168f0452925da7$exports = {};
|
|
6
23
|
|
|
7
24
|
$parcel$export($65168f0452925da7$exports, "basistheory", () => $65168f0452925da7$export$cbe2892587230861);
|
|
@@ -267,6 +284,7 @@ const $2cc07a9862fd14af$export$2b0a6e5a1c78018f = (elementsClientUrl)=>{
|
|
|
267
284
|
resolve(window.BasisTheoryElements);
|
|
268
285
|
return;
|
|
269
286
|
}
|
|
287
|
+
// TODO refactor/remove this fallback
|
|
270
288
|
let url = `https://${undefined}/elements`;
|
|
271
289
|
if (typeof elementsClientUrl !== 'undefined') try {
|
|
272
290
|
const urlObject = new URL(elementsClientUrl);
|
|
@@ -290,14 +308,607 @@ const $2cc07a9862fd14af$export$2b0a6e5a1c78018f = (elementsClientUrl)=>{
|
|
|
290
308
|
|
|
291
309
|
|
|
292
310
|
|
|
311
|
+
var $6a2f0bfcc5905f21$exports = {};
|
|
312
|
+
const $6a2f0bfcc5905f21$var$version = '1.6.0';
|
|
313
|
+
$6a2f0bfcc5905f21$exports = {
|
|
314
|
+
version: $6a2f0bfcc5905f21$var$version
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
|
|
293
318
|
const $65168f0452925da7$var$TEST_ENV = 'js.flock-dev.com';
|
|
294
319
|
const $65168f0452925da7$var$DEFAULT_ENV = 'js.basistheory.com';
|
|
295
320
|
const $65168f0452925da7$export$cbe2892587230861 = async (apiKey, options)=>{
|
|
296
321
|
if (!apiKey) throw new Error('API key is required');
|
|
297
322
|
const env = options?._devMode ? $65168f0452925da7$var$TEST_ENV : $65168f0452925da7$var$DEFAULT_ENV;
|
|
298
|
-
const elements = await (0, $2cc07a9862fd14af$export$2b0a6e5a1c78018f)(`https://${env}/elements`);
|
|
299
|
-
return elements.init(apiKey, `https://${env}/hosted-elements
|
|
323
|
+
const elements = await (0, $2cc07a9862fd14af$export$2b0a6e5a1c78018f)(`https://${env}/web-elements/${(0, $6a2f0bfcc5905f21$exports.version)}/client/index.js`);
|
|
324
|
+
return elements.init(apiKey, `https://${env}/web-elements/${(0, $6a2f0bfcc5905f21$exports.version)}/hosted-elements/`, false, options?.disableTelemetry ?? false, options?.useSameOriginApi ?? false);
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
var $e8df50a6ced49e58$exports = {};
|
|
329
|
+
var $8142f8fc8bbedd0b$exports = {};
|
|
330
|
+
var $6011935a2a75da1d$exports = {};
|
|
331
|
+
|
|
332
|
+
$parcel$export($6011935a2a75da1d$exports, "VISA", () => $6011935a2a75da1d$export$1748c2651c2c6e25);
|
|
333
|
+
$parcel$export($6011935a2a75da1d$exports, "MASTERCARD", () => $6011935a2a75da1d$export$1c604828de4cf9cf);
|
|
334
|
+
$parcel$export($6011935a2a75da1d$exports, "AMERICAN_EXPRESS", () => $6011935a2a75da1d$export$67c5e4e99638ee87);
|
|
335
|
+
$parcel$export($6011935a2a75da1d$exports, "DINERS_CLUB", () => $6011935a2a75da1d$export$fcf88132c9601d5d);
|
|
336
|
+
$parcel$export($6011935a2a75da1d$exports, "DISCOVER", () => $6011935a2a75da1d$export$27b2e48e28163360);
|
|
337
|
+
$parcel$export($6011935a2a75da1d$exports, "JCB", () => $6011935a2a75da1d$export$bf30f1ca7b266454);
|
|
338
|
+
$parcel$export($6011935a2a75da1d$exports, "UNION_PAY", () => $6011935a2a75da1d$export$8ed8e9ea6bbca19f);
|
|
339
|
+
$parcel$export($6011935a2a75da1d$exports, "MAESTRO", () => $6011935a2a75da1d$export$f08651c87c943e8);
|
|
340
|
+
$parcel$export($6011935a2a75da1d$exports, "ELO", () => $6011935a2a75da1d$export$c4b8f606caaecf2c);
|
|
341
|
+
$parcel$export($6011935a2a75da1d$exports, "MIR", () => $6011935a2a75da1d$export$58f9d4150439d06e);
|
|
342
|
+
$parcel$export($6011935a2a75da1d$exports, "HIPER", () => $6011935a2a75da1d$export$8f50e2757841117b);
|
|
343
|
+
$parcel$export($6011935a2a75da1d$exports, "HIPERCARD", () => $6011935a2a75da1d$export$adb072c9761d9e59);
|
|
344
|
+
$parcel$export($6011935a2a75da1d$exports, "DEFAULT_CARD_TYPES", () => $6011935a2a75da1d$export$35b475386df8059d);
|
|
345
|
+
const $6011935a2a75da1d$export$1748c2651c2c6e25 = {
|
|
346
|
+
niceType: 'Visa',
|
|
347
|
+
type: 'visa',
|
|
348
|
+
patterns: [
|
|
349
|
+
4
|
|
350
|
+
],
|
|
351
|
+
gaps: [
|
|
352
|
+
4,
|
|
353
|
+
8,
|
|
354
|
+
12
|
|
355
|
+
],
|
|
356
|
+
lengths: [
|
|
357
|
+
16,
|
|
358
|
+
18,
|
|
359
|
+
19
|
|
360
|
+
],
|
|
361
|
+
code: {
|
|
362
|
+
name: 'CVV',
|
|
363
|
+
size: 3
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
const $6011935a2a75da1d$export$1c604828de4cf9cf = {
|
|
367
|
+
niceType: 'Mastercard',
|
|
368
|
+
type: 'mastercard',
|
|
369
|
+
patterns: [
|
|
370
|
+
[
|
|
371
|
+
51,
|
|
372
|
+
55
|
|
373
|
+
],
|
|
374
|
+
[
|
|
375
|
+
2221,
|
|
376
|
+
2229
|
|
377
|
+
],
|
|
378
|
+
[
|
|
379
|
+
223,
|
|
380
|
+
229
|
|
381
|
+
],
|
|
382
|
+
[
|
|
383
|
+
23,
|
|
384
|
+
26
|
|
385
|
+
],
|
|
386
|
+
[
|
|
387
|
+
270,
|
|
388
|
+
271
|
|
389
|
+
],
|
|
390
|
+
2720
|
|
391
|
+
],
|
|
392
|
+
gaps: [
|
|
393
|
+
4,
|
|
394
|
+
8,
|
|
395
|
+
12
|
|
396
|
+
],
|
|
397
|
+
lengths: [
|
|
398
|
+
16
|
|
399
|
+
],
|
|
400
|
+
code: {
|
|
401
|
+
name: 'CVC',
|
|
402
|
+
size: 3
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
const $6011935a2a75da1d$export$67c5e4e99638ee87 = {
|
|
406
|
+
niceType: 'American Express',
|
|
407
|
+
type: 'american-express',
|
|
408
|
+
patterns: [
|
|
409
|
+
34,
|
|
410
|
+
37
|
|
411
|
+
],
|
|
412
|
+
gaps: [
|
|
413
|
+
4,
|
|
414
|
+
10
|
|
415
|
+
],
|
|
416
|
+
lengths: [
|
|
417
|
+
15
|
|
418
|
+
],
|
|
419
|
+
code: {
|
|
420
|
+
name: 'CID',
|
|
421
|
+
size: 4
|
|
422
|
+
}
|
|
300
423
|
};
|
|
424
|
+
const $6011935a2a75da1d$export$fcf88132c9601d5d = {
|
|
425
|
+
niceType: 'Diners Club',
|
|
426
|
+
type: 'diners-club',
|
|
427
|
+
patterns: [
|
|
428
|
+
[
|
|
429
|
+
300,
|
|
430
|
+
305
|
|
431
|
+
],
|
|
432
|
+
36,
|
|
433
|
+
38,
|
|
434
|
+
39
|
|
435
|
+
],
|
|
436
|
+
gaps: [
|
|
437
|
+
4,
|
|
438
|
+
10
|
|
439
|
+
],
|
|
440
|
+
lengths: [
|
|
441
|
+
14,
|
|
442
|
+
16,
|
|
443
|
+
19
|
|
444
|
+
],
|
|
445
|
+
code: {
|
|
446
|
+
name: 'CVV',
|
|
447
|
+
size: 3
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
const $6011935a2a75da1d$export$27b2e48e28163360 = {
|
|
451
|
+
niceType: 'Discover',
|
|
452
|
+
type: 'discover',
|
|
453
|
+
patterns: [
|
|
454
|
+
6011,
|
|
455
|
+
[
|
|
456
|
+
644,
|
|
457
|
+
649
|
|
458
|
+
],
|
|
459
|
+
65
|
|
460
|
+
],
|
|
461
|
+
gaps: [
|
|
462
|
+
4,
|
|
463
|
+
8,
|
|
464
|
+
12
|
|
465
|
+
],
|
|
466
|
+
lengths: [
|
|
467
|
+
16,
|
|
468
|
+
19
|
|
469
|
+
],
|
|
470
|
+
code: {
|
|
471
|
+
name: 'CID',
|
|
472
|
+
size: 3
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
const $6011935a2a75da1d$export$bf30f1ca7b266454 = {
|
|
476
|
+
niceType: 'JCB',
|
|
477
|
+
type: 'jcb',
|
|
478
|
+
patterns: [
|
|
479
|
+
2131,
|
|
480
|
+
1800,
|
|
481
|
+
[
|
|
482
|
+
3528,
|
|
483
|
+
3589
|
|
484
|
+
]
|
|
485
|
+
],
|
|
486
|
+
gaps: [
|
|
487
|
+
4,
|
|
488
|
+
8,
|
|
489
|
+
12
|
|
490
|
+
],
|
|
491
|
+
lengths: [
|
|
492
|
+
16,
|
|
493
|
+
17,
|
|
494
|
+
18,
|
|
495
|
+
19
|
|
496
|
+
],
|
|
497
|
+
code: {
|
|
498
|
+
name: 'CVV',
|
|
499
|
+
size: 3
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
const $6011935a2a75da1d$export$8ed8e9ea6bbca19f = {
|
|
503
|
+
niceType: 'UnionPay',
|
|
504
|
+
type: 'unionpay',
|
|
505
|
+
patterns: [
|
|
506
|
+
620,
|
|
507
|
+
[
|
|
508
|
+
62100,
|
|
509
|
+
62182
|
|
510
|
+
],
|
|
511
|
+
[
|
|
512
|
+
62184,
|
|
513
|
+
62187
|
|
514
|
+
],
|
|
515
|
+
[
|
|
516
|
+
62185,
|
|
517
|
+
62197
|
|
518
|
+
],
|
|
519
|
+
[
|
|
520
|
+
62200,
|
|
521
|
+
62205
|
|
522
|
+
],
|
|
523
|
+
[
|
|
524
|
+
622010,
|
|
525
|
+
622999
|
|
526
|
+
],
|
|
527
|
+
622018,
|
|
528
|
+
[
|
|
529
|
+
62207,
|
|
530
|
+
62209
|
|
531
|
+
],
|
|
532
|
+
[
|
|
533
|
+
623,
|
|
534
|
+
626
|
|
535
|
+
],
|
|
536
|
+
6270,
|
|
537
|
+
6272,
|
|
538
|
+
6276,
|
|
539
|
+
[
|
|
540
|
+
627700,
|
|
541
|
+
627779
|
|
542
|
+
],
|
|
543
|
+
[
|
|
544
|
+
627781,
|
|
545
|
+
627799
|
|
546
|
+
],
|
|
547
|
+
[
|
|
548
|
+
6282,
|
|
549
|
+
6289
|
|
550
|
+
],
|
|
551
|
+
6291,
|
|
552
|
+
6292,
|
|
553
|
+
810,
|
|
554
|
+
[
|
|
555
|
+
8110,
|
|
556
|
+
8131
|
|
557
|
+
],
|
|
558
|
+
[
|
|
559
|
+
8132,
|
|
560
|
+
8151
|
|
561
|
+
],
|
|
562
|
+
[
|
|
563
|
+
8152,
|
|
564
|
+
8163
|
|
565
|
+
],
|
|
566
|
+
[
|
|
567
|
+
8164,
|
|
568
|
+
8171
|
|
569
|
+
]
|
|
570
|
+
],
|
|
571
|
+
gaps: [
|
|
572
|
+
4,
|
|
573
|
+
8,
|
|
574
|
+
12
|
|
575
|
+
],
|
|
576
|
+
lengths: [
|
|
577
|
+
14,
|
|
578
|
+
15,
|
|
579
|
+
16,
|
|
580
|
+
17,
|
|
581
|
+
18,
|
|
582
|
+
19
|
|
583
|
+
],
|
|
584
|
+
code: {
|
|
585
|
+
name: 'CVN',
|
|
586
|
+
size: 3
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
const $6011935a2a75da1d$export$f08651c87c943e8 = {
|
|
590
|
+
niceType: 'Maestro',
|
|
591
|
+
type: 'maestro',
|
|
592
|
+
patterns: [
|
|
593
|
+
493698,
|
|
594
|
+
[
|
|
595
|
+
500000,
|
|
596
|
+
504174
|
|
597
|
+
],
|
|
598
|
+
[
|
|
599
|
+
504176,
|
|
600
|
+
506698
|
|
601
|
+
],
|
|
602
|
+
[
|
|
603
|
+
506779,
|
|
604
|
+
508999
|
|
605
|
+
],
|
|
606
|
+
[
|
|
607
|
+
56,
|
|
608
|
+
59
|
|
609
|
+
],
|
|
610
|
+
63,
|
|
611
|
+
67,
|
|
612
|
+
6
|
|
613
|
+
],
|
|
614
|
+
gaps: [
|
|
615
|
+
4,
|
|
616
|
+
8,
|
|
617
|
+
12
|
|
618
|
+
],
|
|
619
|
+
lengths: [
|
|
620
|
+
12,
|
|
621
|
+
13,
|
|
622
|
+
14,
|
|
623
|
+
15,
|
|
624
|
+
16,
|
|
625
|
+
17,
|
|
626
|
+
18,
|
|
627
|
+
19
|
|
628
|
+
],
|
|
629
|
+
code: {
|
|
630
|
+
name: 'CVC',
|
|
631
|
+
size: 3
|
|
632
|
+
}
|
|
633
|
+
};
|
|
634
|
+
const $6011935a2a75da1d$export$c4b8f606caaecf2c = {
|
|
635
|
+
niceType: 'Elo',
|
|
636
|
+
type: 'elo',
|
|
637
|
+
patterns: [
|
|
638
|
+
401178,
|
|
639
|
+
401179,
|
|
640
|
+
438935,
|
|
641
|
+
457631,
|
|
642
|
+
457632,
|
|
643
|
+
431274,
|
|
644
|
+
451416,
|
|
645
|
+
457393,
|
|
646
|
+
504175,
|
|
647
|
+
[
|
|
648
|
+
506699,
|
|
649
|
+
506778
|
|
650
|
+
],
|
|
651
|
+
[
|
|
652
|
+
509000,
|
|
653
|
+
509999
|
|
654
|
+
],
|
|
655
|
+
627780,
|
|
656
|
+
636297,
|
|
657
|
+
636368,
|
|
658
|
+
[
|
|
659
|
+
650031,
|
|
660
|
+
650033
|
|
661
|
+
],
|
|
662
|
+
[
|
|
663
|
+
650035,
|
|
664
|
+
650051
|
|
665
|
+
],
|
|
666
|
+
[
|
|
667
|
+
650405,
|
|
668
|
+
650439
|
|
669
|
+
],
|
|
670
|
+
[
|
|
671
|
+
650485,
|
|
672
|
+
650538
|
|
673
|
+
],
|
|
674
|
+
[
|
|
675
|
+
650541,
|
|
676
|
+
650598
|
|
677
|
+
],
|
|
678
|
+
[
|
|
679
|
+
650700,
|
|
680
|
+
650718
|
|
681
|
+
],
|
|
682
|
+
[
|
|
683
|
+
650720,
|
|
684
|
+
650727
|
|
685
|
+
],
|
|
686
|
+
[
|
|
687
|
+
650901,
|
|
688
|
+
650978
|
|
689
|
+
],
|
|
690
|
+
[
|
|
691
|
+
651652,
|
|
692
|
+
651679
|
|
693
|
+
],
|
|
694
|
+
[
|
|
695
|
+
655000,
|
|
696
|
+
655019
|
|
697
|
+
],
|
|
698
|
+
[
|
|
699
|
+
655021,
|
|
700
|
+
655058
|
|
701
|
+
]
|
|
702
|
+
],
|
|
703
|
+
gaps: [
|
|
704
|
+
4,
|
|
705
|
+
8,
|
|
706
|
+
12
|
|
707
|
+
],
|
|
708
|
+
lengths: [
|
|
709
|
+
16
|
|
710
|
+
],
|
|
711
|
+
code: {
|
|
712
|
+
name: 'CVE',
|
|
713
|
+
size: 3
|
|
714
|
+
}
|
|
715
|
+
};
|
|
716
|
+
const $6011935a2a75da1d$export$58f9d4150439d06e = {
|
|
717
|
+
niceType: 'Mir',
|
|
718
|
+
type: 'mir',
|
|
719
|
+
patterns: [
|
|
720
|
+
[
|
|
721
|
+
2200,
|
|
722
|
+
2204
|
|
723
|
+
]
|
|
724
|
+
],
|
|
725
|
+
gaps: [
|
|
726
|
+
4,
|
|
727
|
+
8,
|
|
728
|
+
12
|
|
729
|
+
],
|
|
730
|
+
lengths: [
|
|
731
|
+
16,
|
|
732
|
+
17,
|
|
733
|
+
18,
|
|
734
|
+
19
|
|
735
|
+
],
|
|
736
|
+
code: {
|
|
737
|
+
name: 'CVP2',
|
|
738
|
+
size: 3
|
|
739
|
+
}
|
|
740
|
+
};
|
|
741
|
+
const $6011935a2a75da1d$export$8f50e2757841117b = {
|
|
742
|
+
niceType: 'Hiper',
|
|
743
|
+
type: 'hiper',
|
|
744
|
+
patterns: [
|
|
745
|
+
637095,
|
|
746
|
+
63737423,
|
|
747
|
+
63743358,
|
|
748
|
+
637568,
|
|
749
|
+
637599,
|
|
750
|
+
637609,
|
|
751
|
+
637612
|
|
752
|
+
],
|
|
753
|
+
gaps: [
|
|
754
|
+
4,
|
|
755
|
+
8,
|
|
756
|
+
12
|
|
757
|
+
],
|
|
758
|
+
lengths: [
|
|
759
|
+
16
|
|
760
|
+
],
|
|
761
|
+
code: {
|
|
762
|
+
name: 'CVC',
|
|
763
|
+
size: 3
|
|
764
|
+
}
|
|
765
|
+
};
|
|
766
|
+
const $6011935a2a75da1d$export$adb072c9761d9e59 = {
|
|
767
|
+
niceType: 'Hipercard',
|
|
768
|
+
type: 'hipercard',
|
|
769
|
+
patterns: [
|
|
770
|
+
606282
|
|
771
|
+
],
|
|
772
|
+
gaps: [
|
|
773
|
+
4,
|
|
774
|
+
8,
|
|
775
|
+
12
|
|
776
|
+
],
|
|
777
|
+
lengths: [
|
|
778
|
+
16
|
|
779
|
+
],
|
|
780
|
+
code: {
|
|
781
|
+
name: 'CVC',
|
|
782
|
+
size: 3
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
const $6011935a2a75da1d$export$35b475386df8059d = [
|
|
786
|
+
$6011935a2a75da1d$export$1748c2651c2c6e25,
|
|
787
|
+
$6011935a2a75da1d$export$1c604828de4cf9cf,
|
|
788
|
+
$6011935a2a75da1d$export$67c5e4e99638ee87,
|
|
789
|
+
$6011935a2a75da1d$export$fcf88132c9601d5d,
|
|
790
|
+
$6011935a2a75da1d$export$27b2e48e28163360,
|
|
791
|
+
$6011935a2a75da1d$export$bf30f1ca7b266454,
|
|
792
|
+
$6011935a2a75da1d$export$8ed8e9ea6bbca19f,
|
|
793
|
+
$6011935a2a75da1d$export$f08651c87c943e8,
|
|
794
|
+
$6011935a2a75da1d$export$c4b8f606caaecf2c,
|
|
795
|
+
$6011935a2a75da1d$export$58f9d4150439d06e,
|
|
796
|
+
$6011935a2a75da1d$export$8f50e2757841117b,
|
|
797
|
+
$6011935a2a75da1d$export$adb072c9761d9e59
|
|
798
|
+
];
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
var $5c7474255e842807$exports = {};
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
var $aa1f0e8f3ba99285$exports = {};
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
var $0b7f2ce91f71c8fb$exports = {};
|
|
808
|
+
|
|
809
|
+
$parcel$export($0b7f2ce91f71c8fb$exports, "ELEMENTS_TYPES", () => $0b7f2ce91f71c8fb$export$8141e4f9a897abe6);
|
|
810
|
+
const $0b7f2ce91f71c8fb$export$8141e4f9a897abe6 = [
|
|
811
|
+
'card',
|
|
812
|
+
'cardExpirationDate',
|
|
813
|
+
'cardNumber',
|
|
814
|
+
'cardVerificationCode',
|
|
815
|
+
'data',
|
|
816
|
+
'text'
|
|
817
|
+
];
|
|
818
|
+
var $0b7f2ce91f71c8fb$var$InputMode = /*#__PURE__*/ function(InputMode) {
|
|
819
|
+
InputMode["DECIMAL"] = "decimal";
|
|
820
|
+
InputMode["EMAIL"] = "email";
|
|
821
|
+
InputMode["NONE"] = "none";
|
|
822
|
+
InputMode["NUMERIC"] = "numeric";
|
|
823
|
+
InputMode["SEARCH"] = "search";
|
|
824
|
+
InputMode["TEL"] = "tel";
|
|
825
|
+
InputMode["TEXT"] = "text";
|
|
826
|
+
InputMode["URL"] = "url";
|
|
827
|
+
return InputMode;
|
|
828
|
+
}($0b7f2ce91f71c8fb$var$InputMode || {});
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
var $0d76f51751e4f2ad$exports = {};
|
|
832
|
+
var $0c6d355f47a965d8$exports = {};
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
var $b875617dcfcf7e35$exports = {};
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
var $2d2d2fbdd48375e5$exports = {};
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
var $4ed5db2a8eab95d6$exports = {};
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
$parcel$exportWildcard($0d76f51751e4f2ad$exports, $0c6d355f47a965d8$exports);
|
|
845
|
+
$parcel$exportWildcard($0d76f51751e4f2ad$exports, $b875617dcfcf7e35$exports);
|
|
846
|
+
$parcel$exportWildcard($0d76f51751e4f2ad$exports, $2d2d2fbdd48375e5$exports);
|
|
847
|
+
$parcel$exportWildcard($0d76f51751e4f2ad$exports, $4ed5db2a8eab95d6$exports);
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
var $5c3fd4ec5ab25a5b$exports = {};
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
var $ce70703c3ce2f3a0$exports = {};
|
|
854
|
+
|
|
855
|
+
$parcel$export($ce70703c3ce2f3a0$exports, "SAFE_CSS_PROPERTIES", () => $ce70703c3ce2f3a0$export$e2bf52fc7723ec89);
|
|
856
|
+
$parcel$export($ce70703c3ce2f3a0$exports, "SAFE_CSS_PROPERTIES_ALTERNATES", () => $ce70703c3ce2f3a0$export$e22a44f86989e3f4);
|
|
857
|
+
$parcel$export($ce70703c3ce2f3a0$exports, "SAFE_CSS_PROPERTIES_WITH_ALTERNATES", () => $ce70703c3ce2f3a0$export$b5b27feb4cf29129);
|
|
858
|
+
$parcel$export($ce70703c3ce2f3a0$exports, "CARD_ELEMENT_STYLE_VARIANT_SELECTORS", () => $ce70703c3ce2f3a0$export$fc323aec0bf844b);
|
|
859
|
+
$parcel$export($ce70703c3ce2f3a0$exports, "CARD_ELEMENT_STYLE_VARIANTS", () => $ce70703c3ce2f3a0$export$a15fff7fac404fd9);
|
|
860
|
+
$parcel$export($ce70703c3ce2f3a0$exports, "CARD_ELEMENT_STYLE_FONTS_ATTR", () => $ce70703c3ce2f3a0$export$c3a88e1ff160bfd6);
|
|
861
|
+
const $ce70703c3ce2f3a0$export$e2bf52fc7723ec89 = [
|
|
862
|
+
'backgroundColor',
|
|
863
|
+
'color',
|
|
864
|
+
'fontFamily',
|
|
865
|
+
'fontSize',
|
|
866
|
+
'fontSmooth',
|
|
867
|
+
'fontStyle',
|
|
868
|
+
'fontVariant',
|
|
869
|
+
'fontWeight',
|
|
870
|
+
'lineHeight',
|
|
871
|
+
'letterSpacing',
|
|
872
|
+
'textAlign',
|
|
873
|
+
'padding',
|
|
874
|
+
'textDecoration',
|
|
875
|
+
'textShadow',
|
|
876
|
+
'textTransform'
|
|
877
|
+
];
|
|
878
|
+
const $ce70703c3ce2f3a0$export$e22a44f86989e3f4 = {
|
|
879
|
+
fontSmooth: [
|
|
880
|
+
'-webkit-font-smoothing',
|
|
881
|
+
'-moz-osx-font-smoothing'
|
|
882
|
+
]
|
|
883
|
+
};
|
|
884
|
+
const $ce70703c3ce2f3a0$export$b5b27feb4cf29129 = Object.keys($ce70703c3ce2f3a0$export$e22a44f86989e3f4);
|
|
885
|
+
const $ce70703c3ce2f3a0$export$fc323aec0bf844b = [
|
|
886
|
+
':hover',
|
|
887
|
+
':focus',
|
|
888
|
+
':read-only',
|
|
889
|
+
'::placeholder',
|
|
890
|
+
'::selection',
|
|
891
|
+
':disabled'
|
|
892
|
+
];
|
|
893
|
+
const $ce70703c3ce2f3a0$export$a15fff7fac404fd9 = [
|
|
894
|
+
'base',
|
|
895
|
+
'complete',
|
|
896
|
+
'invalid',
|
|
897
|
+
'empty'
|
|
898
|
+
];
|
|
899
|
+
const $ce70703c3ce2f3a0$export$c3a88e1ff160bfd6 = 'fonts';
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
$parcel$exportWildcard($8142f8fc8bbedd0b$exports, $6011935a2a75da1d$exports);
|
|
903
|
+
$parcel$exportWildcard($8142f8fc8bbedd0b$exports, $5c7474255e842807$exports);
|
|
904
|
+
$parcel$exportWildcard($8142f8fc8bbedd0b$exports, $aa1f0e8f3ba99285$exports);
|
|
905
|
+
$parcel$exportWildcard($8142f8fc8bbedd0b$exports, $0b7f2ce91f71c8fb$exports);
|
|
906
|
+
$parcel$exportWildcard($8142f8fc8bbedd0b$exports, $0d76f51751e4f2ad$exports);
|
|
907
|
+
$parcel$exportWildcard($8142f8fc8bbedd0b$exports, $5c3fd4ec5ab25a5b$exports);
|
|
908
|
+
$parcel$exportWildcard($8142f8fc8bbedd0b$exports, $ce70703c3ce2f3a0$exports);
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
$parcel$exportWildcard($e8df50a6ced49e58$exports, $8142f8fc8bbedd0b$exports);
|
|
301
912
|
|
|
302
913
|
|
|
303
914
|
/**
|
|
@@ -305,4 +916,4 @@ const $65168f0452925da7$export$cbe2892587230861 = async (apiKey, options)=>{
|
|
|
305
916
|
*/ if (typeof window !== 'undefined' && document.currentScript && !window.basistheory) window.basistheory = (0, $65168f0452925da7$export$cbe2892587230861);
|
|
306
917
|
|
|
307
918
|
|
|
308
|
-
export {$65168f0452925da7$export$cbe2892587230861 as basistheory};
|
|
919
|
+
export {$65168f0452925da7$export$cbe2892587230861 as basistheory, $6011935a2a75da1d$export$1748c2651c2c6e25 as VISA, $6011935a2a75da1d$export$1c604828de4cf9cf as MASTERCARD, $6011935a2a75da1d$export$67c5e4e99638ee87 as AMERICAN_EXPRESS, $6011935a2a75da1d$export$fcf88132c9601d5d as DINERS_CLUB, $6011935a2a75da1d$export$27b2e48e28163360 as DISCOVER, $6011935a2a75da1d$export$bf30f1ca7b266454 as JCB, $6011935a2a75da1d$export$8ed8e9ea6bbca19f as UNION_PAY, $6011935a2a75da1d$export$f08651c87c943e8 as MAESTRO, $6011935a2a75da1d$export$c4b8f606caaecf2c as ELO, $6011935a2a75da1d$export$58f9d4150439d06e as MIR, $6011935a2a75da1d$export$8f50e2757841117b as HIPER, $6011935a2a75da1d$export$adb072c9761d9e59 as HIPERCARD, $6011935a2a75da1d$export$35b475386df8059d as DEFAULT_CARD_TYPES, $0b7f2ce91f71c8fb$export$8141e4f9a897abe6 as ELEMENTS_TYPES, $ce70703c3ce2f3a0$export$e2bf52fc7723ec89 as SAFE_CSS_PROPERTIES, $ce70703c3ce2f3a0$export$e22a44f86989e3f4 as SAFE_CSS_PROPERTIES_ALTERNATES, $ce70703c3ce2f3a0$export$b5b27feb4cf29129 as SAFE_CSS_PROPERTIES_WITH_ALTERNATES, $ce70703c3ce2f3a0$export$fc323aec0bf844b as CARD_ELEMENT_STYLE_VARIANT_SELECTORS, $ce70703c3ce2f3a0$export$a15fff7fac404fd9 as CARD_ELEMENT_STYLE_VARIANTS, $ce70703c3ce2f3a0$export$c3a88e1ff160bfd6 as CARD_ELEMENT_STYLE_FONTS_ATTR};
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basis-theory/web-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"repository": "https://github.com/basis-theory/web-elements",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"!/bundle"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
|
+
"prebuild": "TARGET_DIR=../../web-elements/src node ../scripts/web-elements/write-version-file.js",
|
|
18
19
|
"build:dev": "yarn clean && yarn generateTypes && parcel build && npx size-limit",
|
|
19
20
|
"build": "node ../scripts/web-elements/prepare.js && yarn generateTypes && parcel build --no-cache",
|
|
20
21
|
"clean": "rimraf dist .parcel-cache",
|