@payrails/web-sdk 5.5.0 → 5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payrails/web-sdk",
3
- "version": "5.5.0",
3
+ "version": "5.6.0",
4
4
  "description": "SDK providing tokenization options on the client for merchants",
5
5
  "main": "index.js",
6
6
  "types": "payrails.d.ts",
@@ -215,6 +215,10 @@
215
215
  background-color: rgba(59, 64, 71, 1);
216
216
  }
217
217
 
218
+ .payrails-dropin-component--single input[type='radio'] {
219
+ display: none;
220
+ }
221
+
218
222
  .payrails-dropin-item input[type='radio'] {
219
223
  appearance: none;
220
224
  -webkit-appearance: none;
package/payrails.d.ts CHANGED
@@ -749,6 +749,7 @@ declare class GooglePayButton extends PayrailsElementWithStoreInstrumentCheckbox
749
749
  interface DropinElementEvents extends PaymentEvents {
750
750
  onActivate?: () => void;
751
751
  onDeactivate?: () => void;
752
+ onAvailable?: () => void;
752
753
  }
753
754
  interface DropinElementStyles {
754
755
  base?: Partial<CSSStyleDeclaration>;
@@ -859,6 +860,7 @@ declare class Dropin extends PayrailsElement {
859
860
  constructor(collectContainer: PayrailsCollectContainer, clientConfig: PayrailsClientOptions, dropinConfig: DropinOptions, execution: WorkflowExecution, sdkConfig: SdkConfiguration);
860
861
  private createStoredInstrumentElement;
861
862
  private createMercadoPagoButton;
863
+ private get totalPaymentOptions();
862
864
  private createCreditCardButton;
863
865
  private createGooglePayButton;
864
866
  private createPayPalButton;
@@ -876,6 +878,7 @@ interface StorablePaymentMethodConfiguration extends StoreInstrumentElementOptio
876
878
  }
877
879
  interface DropinOptions {
878
880
  paymentMethodsConfiguration?: {
881
+ preselectFirstPaymentOption?: boolean;
879
882
  cards?: {
880
883
  showCardHolderName?: boolean;
881
884
  showExistingCards?: boolean;