@payrails/web-sdk 5.25.0 → 5.25.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payrails/web-sdk",
3
- "version": "5.25.0",
3
+ "version": "5.25.2",
4
4
  "description": "SDK providing tokenization options on the client for merchants",
5
5
  "main": "index.js",
6
6
  "types": "payrails.d.ts",
@@ -80,7 +80,7 @@
80
80
  }
81
81
  50%,
82
82
  100% {
83
- opacity: .2;
83
+ opacity: 0.2;
84
84
  }
85
85
  }
86
86
 
@@ -259,6 +259,7 @@
259
259
  width: 24px;
260
260
  margin-right: 7px;
261
261
  }
262
+
262
263
  #payrails-dropin-component {
263
264
  border-radius: 0;
264
265
  box-shadow: none;
@@ -647,76 +648,76 @@
647
648
  }
648
649
 
649
650
  button.payrails-generic-button {
650
- border: none;
651
- outline: none;
652
- box-shadow: none;
653
- margin: 0;
651
+ border: none;
652
+ outline: none;
653
+ box-shadow: none;
654
+ margin: 0;
654
655
  }
655
656
 
656
657
  .payrails-generic-button * {
657
- box-sizing: border-box;
658
+ box-sizing: border-box;
658
659
  }
659
660
 
660
661
  .payrails-generic-button .dot-flashing-container {
661
- width: 100%;
662
- display: flex;
663
- justify-content: center;
664
- align-items: center;
665
- position: relative;
662
+ width: 100%;
663
+ display: flex;
664
+ justify-content: center;
665
+ align-items: center;
666
+ position: relative;
666
667
  }
667
668
 
668
669
  .payrails-generic-button .dot-flashing-text {
669
- visibility: hidden;
670
+ visibility: hidden;
670
671
  }
671
672
 
672
673
  .payrails-generic-button .dot-flashing {
673
- position: absolute;
674
- left: auto;
675
- right: auto;
676
- width: 10px;
677
- height: 10px;
678
- border-radius: 5px;
679
- background-color: currentColor;
680
- color: currentColor;
681
- animation: dot-flashing 1s infinite linear alternate;
682
- animation-delay: 0.5s;
674
+ position: absolute;
675
+ left: auto;
676
+ right: auto;
677
+ width: 10px;
678
+ height: 10px;
679
+ border-radius: 5px;
680
+ background-color: currentColor;
681
+ color: currentColor;
682
+ animation: dot-flashing 1s infinite linear alternate;
683
+ animation-delay: 0.5s;
683
684
  }
684
685
  .payrails-generic-button .dot-flashing::before,
685
686
  .payrails-generic-button .dot-flashing::after {
686
- content: '';
687
- display: inline-block;
688
- position: absolute;
689
- top: 0;
687
+ content: '';
688
+ display: inline-block;
689
+ position: absolute;
690
+ top: 0;
690
691
  }
691
692
  .payrails-generic-button .dot-flashing::before {
692
- left: -15px;
693
- width: 10px;
694
- height: 10px;
695
- border-radius: 5px;
696
- background-color: currentColor;
697
- color: currentColor;
698
- animation: dot-flashing 1s infinite alternate;
699
- animation-delay: 0s;
693
+ left: -15px;
694
+ width: 10px;
695
+ height: 10px;
696
+ border-radius: 5px;
697
+ background-color: currentColor;
698
+ color: currentColor;
699
+ animation: dot-flashing 1s infinite alternate;
700
+ animation-delay: 0s;
700
701
  }
701
702
  .payrails-generic-button .dot-flashing::after {
702
- left: 15px;
703
- width: 10px;
704
- height: 10px;
705
- border-radius: 5px;
706
- background-color: currentColor;
707
- color: currentColor;
708
- animation: dot-flashing 1s infinite alternate;
709
- animation-delay: 1s;
703
+ left: 15px;
704
+ width: 10px;
705
+ height: 10px;
706
+ border-radius: 5px;
707
+ background-color: currentColor;
708
+ color: currentColor;
709
+ animation: dot-flashing 1s infinite alternate;
710
+ animation-delay: 1s;
710
711
  }
711
712
 
712
713
  @keyframes dot-flashing {
713
- 0% {
714
- opacity: 1;
715
- }
716
- 50%,
717
- 100% {
718
- opacity: .2;
719
- }
714
+ 0% {
715
+ opacity: 1;
716
+ }
717
+ 50%,
718
+ 100% {
719
+ opacity: 0.2;
720
+ }
720
721
  }
721
722
 
722
723
  #payrails-paypal-button-wrapper {
package/payrails.d.ts CHANGED
@@ -612,7 +612,7 @@ declare class PayrailsCollectContainer implements Mountable {
612
612
  private attachCustomEventHandler;
613
613
  private formatBin;
614
614
  private get elementToFieldMap();
615
- fetchBinLookup: (bin: string) => Promise<string | BinLookupResponse | {
615
+ fetchBinLookup: (bin: string) => Promise<BinLookupResponse | {
616
616
  bin: string;
617
617
  }>;
618
618
  }
@@ -1324,6 +1324,7 @@ interface PaymentEvents {
1324
1324
  onPaymentButtonClicked?: (e?: {
1325
1325
  bin?: string;
1326
1326
  }) => Promise<boolean>;
1327
+ onAuthorizeRequestStart?: () => void;
1327
1328
  onPaymentSessionExpired?: () => void;
1328
1329
  onThreeDSecureChallenge?: () => void;
1329
1330
  }