@payrails/web-sdk 5.23.0-RC.0 → 5.24.0-RC.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.23.0-RC.0",
3
+ "version": "5.24.0-RC.0",
4
4
  "description": "SDK providing tokenization options on the client for merchants",
5
5
  "main": "index.js",
6
6
  "types": "payrails.d.ts",
package/payrails.d.ts CHANGED
@@ -707,6 +707,7 @@ declare class PayrailsElementWithPaymentInstallmentsDropdown extends PayrailsEle
707
707
  interface StoreInstrumentElementOptions extends ElementOptions {
708
708
  showStoreInstrumentCheckbox?: boolean;
709
709
  alwaysStoreInstrument?: boolean;
710
+ defaultStoreInstrumentState?: 'checked' | 'unchecked';
710
711
  translations?: {
711
712
  labels?: {
712
713
  storeInstrument?: string;
@@ -1069,6 +1070,9 @@ interface PaypalButtonOptions extends StoreInstrumentElementOptions {
1069
1070
  declare class PaypalButton extends PayrailsElementWithStoreInstrumentCheckbox {
1070
1071
  protected options?: PaypalButtonOptions | undefined;
1071
1072
  private static instance;
1073
+ private renderDebounceTimeout;
1074
+ private currentAbortController;
1075
+ private isRendering;
1072
1076
  constructor(options?: PaypalButtonOptions | undefined);
1073
1077
  private paymentExecutor;
1074
1078
  private button;
@@ -1076,6 +1080,7 @@ declare class PaypalButton extends PayrailsElementWithStoreInstrumentCheckbox {
1076
1080
  private buttonWrapperId;
1077
1081
  private checkboxWrapperId;
1078
1082
  private loadPaypal;
1083
+ private debouncedRender;
1079
1084
  private get paypalScriptConfig();
1080
1085
  private createPaypalButton;
1081
1086
  private createPayPalButtonConfig;