@getopenpay/openpay-js-react 0.2.18 → 0.2.19-alpha.b8b43a7

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/dist/index.d.ts CHANGED
@@ -192,10 +192,7 @@ export declare type ElementsFormChildrenProps = {
192
192
  googlePay: InitAirwallexGooglePayFlowResult;
193
193
  applePay: InitAirwallexApplePayFlowResult;
194
194
  };
195
- loop: {
196
- widget: LoopCryptoWidgetProps;
197
- config: LoopConnectConfig;
198
- } | null;
195
+ loop: LoopConfig;
199
196
  loaded: boolean;
200
197
  preview: DynamicPreview;
201
198
  };
@@ -324,6 +321,20 @@ declare interface InitializedEvent {
324
321
  entityId: string;
325
322
  }
326
323
 
324
+ export declare type LoopConfig =
325
+ | {
326
+ isAvailable: true;
327
+ isLoading: boolean;
328
+ widget: LoopCryptoWidgetProps;
329
+ config: LoopConnectConfig;
330
+ }
331
+ | {
332
+ isAvailable: false;
333
+ isLoading: boolean;
334
+ widget: null;
335
+ config: null;
336
+ };
337
+
327
338
  export declare interface LoopConnectConfig {
328
339
  apiKey: string;
329
340
  entityId: string;
@@ -340,20 +351,13 @@ declare type LoopCryptoFlowCustomParams =
340
351
  | {
341
352
  customer: Omit<CustomerResponse, 'paymentMethods' | 'merchants' | 'dateCreated'>;
342
353
  payin: PayInCompleteEvent;
343
- // TODO: Move these to nonCdeFormInput prop
344
- email?: string;
345
- firstName?: string;
346
- lastName?: string;
347
354
  success: true;
348
355
  }
349
356
  | {
350
- detail: PayInFailedEvent;
351
- // TODO: Move these to nonCdeFormInput prop
352
- email?: string;
353
- firstName?: string;
354
- lastName?: string;
357
+ failureDetails: PayInFailedEvent;
355
358
  success: false;
356
- };
359
+ }
360
+ | undefined;
357
361
 
358
362
  export declare type LoopCryptoWidgetProps = {
359
363
  paymentUsdAmount: number;