@payrails/web-sdk 5.3.0 → 5.5.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.3.0",
3
+ "version": "5.5.0",
4
4
  "description": "SDK providing tokenization options on the client for merchants",
5
5
  "main": "index.js",
6
6
  "types": "payrails.d.ts",
@@ -16,10 +16,11 @@
16
16
 
17
17
  width: 100%;
18
18
  height: 40px;
19
+ box-shadow: none;
19
20
 
20
21
  background: #015bbb;
21
22
  border-radius: 4px;
22
- box-shadow: none;
23
+ border: none;
23
24
 
24
25
  font-size: 14px;
25
26
  color: #fff;
@@ -476,6 +477,12 @@
476
477
  }
477
478
  }
478
479
 
480
+ button.payrails-generic-button {
481
+ border: none;
482
+ outline: none;
483
+ box-shadow: none;
484
+ }
485
+
479
486
  .payrails-generic-button * {
480
487
  box-sizing: border-box;
481
488
  }
package/payrails.d.ts CHANGED
@@ -392,6 +392,7 @@ interface ICollectOptions$1 {
392
392
  declare class CollectContainer extends Container {
393
393
  #private;
394
394
  type: string;
395
+ private bus;
395
396
  constructor(options: any, metaData: any, skyflowElements: any, context: any);
396
397
  create: (input: CollectElementInput$1, options?: any) => CollectElement;
397
398
  collect: (options?: ICollectOptions$1) => Promise<unknown>;
@@ -426,6 +427,7 @@ interface ICollectOptions {
426
427
  declare class ComposableContainer extends Container {
427
428
  #private;
428
429
  type: string;
430
+ private bus;
429
431
  constructor(options: any, metaData: any, skyflowElements: any, context: any);
430
432
  create: (input: CollectElementInput, options?: any) => ComposableElement;
431
433
  on: (eventName: string, handler: any) => void;
@@ -446,6 +448,7 @@ interface ISkyflow {
446
448
  }
447
449
  declare class Skyflow {
448
450
  #private;
451
+ private bus;
449
452
  constructor(config: ISkyflow);
450
453
  static init(config: ISkyflow): Skyflow;
451
454
  container(type: ContainerType, options?: Record<string, any>): CollectContainer | ComposableContainer;
@@ -698,6 +701,21 @@ declare enum AuthorizationFailureReasons {
698
701
  UNKNOWN_ERROR = "UNKNOWN_ERROR"
699
702
  }
700
703
 
704
+ interface ButtonOptions {
705
+ id: string;
706
+ events?: PayrailsSDKEvents & {
707
+ onClick?: () => Promise<void>;
708
+ };
709
+ translations: {
710
+ label: string;
711
+ };
712
+ styles?: {
713
+ base?: Partial<CSSStyleDeclaration>;
714
+ loading?: Partial<CSSStyleDeclaration>;
715
+ hover?: Partial<CSSStyleDeclaration>;
716
+ };
717
+ }
718
+
701
719
  interface GooglePayButtonOptions extends StoreInstrumentElementOptions {
702
720
  environment?: PayrailsEnvironment;
703
721
  merchantInfo?: google.payments.api.MerchantInfo;
@@ -737,21 +755,6 @@ interface DropinElementStyles {
737
755
  active?: Partial<CSSStyleDeclaration>;
738
756
  }
739
757
 
740
- interface ButtonOptions {
741
- id: string;
742
- events?: PayrailsSDKEvents & {
743
- onClick?: () => Promise<void>;
744
- };
745
- translations: {
746
- label: string;
747
- };
748
- styles?: {
749
- base?: Partial<CSSStyleDeclaration>;
750
- loading?: Partial<CSSStyleDeclaration>;
751
- hover?: Partial<CSSStyleDeclaration>;
752
- };
753
- }
754
-
755
758
  interface GenericRedirectButtonOptions {
756
759
  styles?: ButtonOptions['styles'];
757
760
  translations?: {
@@ -771,7 +774,10 @@ declare class GenericRedirectButton extends PayrailsElement {
771
774
  }
772
775
 
773
776
  interface GenericRedirectDropinOptions {
774
- styles?: DropinElementStyles;
777
+ styles?: {
778
+ element?: DropinElementStyles;
779
+ mercadoPago?: ButtonOptions['styles'];
780
+ };
775
781
  translations?: {
776
782
  label?: string;
777
783
  button?: GenericRedirectButtonOptions['translations'];
@@ -905,7 +911,7 @@ interface DropinOptions {
905
911
  applePayButton?: ApplePayButtonOptions['styles'];
906
912
  cardForm?: CardFormOptions['styles'];
907
913
  cardPaymentButton?: CardPaymentButtonOptions['styles'];
908
- mercadoPago?: GenericRedirectDropinOptions['styles'];
914
+ mercadoPago?: ButtonOptions['styles'];
909
915
  };
910
916
  }
911
917
 
@@ -1128,4 +1134,4 @@ interface TokenizeOptions {
1128
1134
  storeInstrument?: boolean;
1129
1135
  }
1130
1136
 
1131
- export { ApplePayButtonOptions, AuthorizationFailureReasons, CardFormOptions, CardListOptions, CardPaymentButtonOptions, DropinOptions, ElementType, GooglePayButtonOptions, InitOptions, PaymentEvents, PaypalButtonOptions, Payrails, PayrailsAmount, PayrailsClientOptions, PayrailsContainerType, PayrailsSecureField, SaveInstrumentResponse, WorkflowExecutionResponse };
1137
+ export { ApplePayButtonOptions, AuthorizationFailureReasons, CardFormOptions, CardListOptions, CardPaymentButtonOptions, DropinOptions, ElementType, GooglePayButtonOptions, InitOptions, PaymentEvents, PaypalButtonOptions, Payrails, PayrailsAmount, PayrailsClientOptions, PayrailsContainerType, PayrailsEnvironment, PayrailsSecureField, SaveInstrumentResponse, WorkflowExecutionResponse };