@payrails/web-sdk 5.7.0-RC.0 → 5.7.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.7.0-RC.0",
3
+ "version": "5.7.2",
4
4
  "description": "SDK providing tokenization options on the client for merchants",
5
5
  "main": "index.js",
6
6
  "types": "payrails.d.ts",
@@ -266,14 +266,22 @@
266
266
  align-items: center;
267
267
  }
268
268
 
269
+ .payrails-dropin-item.active .payrails-dropin-item-container {
270
+ margin-top: 10px;
271
+ }
272
+
269
273
  .payrails-dropin-item .payrails-store-instrument-icon {
270
274
  width: 24px;
271
275
  margin-right: 7px;
272
276
  }
273
277
 
274
- .payrails-dropin-item.payrails-store-instrument {
278
+ .payrails-dropin-item .payrails-store-instrument {
275
279
  display: block;
276
- margin-top: 20px !important;
280
+ margin-top: 8px;
281
+ }
282
+
283
+ .payrails-dropin-item .payrails-store-instrument label {
284
+ margin: 0;
277
285
  }
278
286
 
279
287
  .payrails-dropin-item .payrails-store-instrument input[type='checkbox'] {
@@ -335,6 +343,10 @@
335
343
  background-color: #000;
336
344
  }
337
345
 
346
+ #payrails-dropin-component #payrails-google-pay-button button {
347
+ margin: 0;
348
+ }
349
+
338
350
  #payrails-dropin-component label {
339
351
  line-height: 1;
340
352
  min-width: 100px;
@@ -485,6 +497,7 @@ button.payrails-generic-button {
485
497
  border: none;
486
498
  outline: none;
487
499
  box-shadow: none;
500
+ margin: 0;
488
501
  }
489
502
 
490
503
  .payrails-generic-button * {
@@ -555,7 +568,6 @@ button.payrails-generic-button {
555
568
 
556
569
  #payrails-paypal-button-wrapper {
557
570
  min-height: 44px;
558
- margin: 8px 4px;
559
571
  }
560
572
 
561
573
  #payrails-container-wrapper {
package/payrails.d.ts CHANGED
@@ -943,15 +943,14 @@ declare enum ThirdPartySDK {
943
943
  type FraudNetPageId = 'home-page' | 'search-result-page' | 'category-page' | 'product-detail-page' | 'cart-page' | 'inline-cart-page' | 'checkout-page';
944
944
  declare class FraudNet implements Mountable {
945
945
  private pageId;
946
- private sdkConfig;
946
+ private execution;
947
947
  private environment;
948
- constructor(pageId: FraudNetPageId, sdkConfig: SdkConfiguration, environment: PayrailsClientOptions['environment']);
948
+ constructor(pageId: FraudNetPageId, execution: WorkflowExecution, environment: PayrailsClientOptions['environment']);
949
949
  readonly guid: any;
950
950
  mount(): void;
951
951
  unmount(): void;
952
952
  private loadFraudnet;
953
953
  private readonly fnclsVal;
954
- private readonly execution;
955
954
  private readonly configId;
956
955
  private readonly scriptId;
957
956
  private get payPalConfig();
@@ -961,7 +960,7 @@ declare class FraudNet implements Mountable {
961
960
  interface PayrailsClientOptions {
962
961
  environment?: PayrailsEnvironment;
963
962
  events?: {
964
- onClientInitialized: (execution: WorkflowExecution) => void;
963
+ onClientInitialized: (execution?: WorkflowExecution) => void;
965
964
  };
966
965
  returnInfo?: ReturnInfo;
967
966
  telemetry?: {
@@ -1002,6 +1001,7 @@ declare class Payrails {
1002
1001
  genericRedirectButton(options?: GenericRedirectButtonOptions): GenericRedirectButton;
1003
1002
  getSavedPaypalAccounts(): StoredPaymentInstrument<PayPalMetadata>[];
1004
1003
  fraudNet(pageId: FraudNetPageId): FraudNet;
1004
+ private get safeExecution();
1005
1005
  private logIntegrationMode;
1006
1006
  private constructor();
1007
1007
  private getContainerLayout;
@@ -1045,7 +1045,7 @@ interface SdkConfiguration {
1045
1045
  };
1046
1046
  };
1047
1047
  };
1048
- execution: WorkflowExecutionResponse;
1048
+ execution?: WorkflowExecutionResponse;
1049
1049
  }
1050
1050
  interface PayrailsAmount {
1051
1051
  value: string;
@@ -1093,8 +1093,9 @@ interface CollectContainerOptions {
1093
1093
  base?: Partial<CSSStyleDeclaration>;
1094
1094
  };
1095
1095
  }
1096
+ type PayrailsSecureFieldEvent = 'CHANGE' | 'FOCUS' | 'BLUR' | 'READY' | 'SUBMIT';
1096
1097
  interface PayrailsSecureField {
1097
- on(eventName: string, handler: any): void;
1098
+ on(eventName: PayrailsSecureFieldEvent, handler: any): void;
1098
1099
  mount?: (domElement: any) => void;
1099
1100
  unmount?: () => void;
1100
1101
  getState?: () => {
@@ -1137,4 +1138,4 @@ interface TokenizeOptions {
1137
1138
  storeInstrument?: boolean;
1138
1139
  }
1139
1140
 
1140
- export { ApplePayButtonOptions, AuthorizationFailureReasons, CardFormOptions, CardListOptions, CardPaymentButtonOptions, DropinOptions, ElementType, GooglePayButtonOptions, InitOptions, PaymentEvents, PaypalButtonOptions, Payrails, PayrailsAmount, PayrailsClientOptions, PayrailsContainerType, PayrailsEnvironment, PayrailsSecureField, SaveInstrumentResponse, WorkflowExecutionResponse };
1141
+ export { ApplePayButtonOptions, AuthorizationFailureReasons, CardFormOptions, CardListOptions, CardPaymentButtonOptions, DropinOptions, ElementType, GooglePayButtonOptions, InitOptions, PaymentEvents, PaypalButtonOptions, Payrails, PayrailsAmount, PayrailsClientOptions, PayrailsContainerType, PayrailsEnvironment, PayrailsSecureField, PayrailsSecureFieldEvent, SaveInstrumentResponse, WorkflowExecutionResponse };