@getopenpay/openpay-js 0.3.9 → 0.3.13-alpha.bdbda7a

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
@@ -7,7 +7,13 @@ import { z } from 'zod';
7
7
 
8
8
  declare type AllCallbacks = {
9
9
  onFocus?: (elementId: string, field: AllFieldNames) => void;
10
- onBlur?: (elementId: string, field: AllFieldNames) => void;
10
+ onBlur?: (
11
+ elementId: string,
12
+ field: AllFieldNames,
13
+ extraArgs?: {
14
+ obfuscatedValue?: string;
15
+ }
16
+ ) => void;
11
17
  onChange?: (elementId: string, field: AllFieldNames, errors?: string[]) => void;
12
18
  onLoad?: (totalAmountAtoms?: number, currency?: string) => void;
13
19
  onLoadError?: (message: string) => void;
@@ -518,6 +524,12 @@ declare type LoopCryptoFlowCustomParams =
518
524
  | {
519
525
  customer: Omit<CustomerResponse, 'paymentMethods' | 'merchants' | 'dateCreated'>;
520
526
  payin: PayInCompleteEvent;
527
+ mode: 'checkout';
528
+ success: true;
529
+ }
530
+ | {
531
+ customer: Omit<CustomerResponse, 'paymentMethods' | 'merchants' | 'dateCreated'>;
532
+ mode: 'setup';
521
533
  success: true;
522
534
  }
523
535
  | {
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as e, O as i, l as r, m as s } from "./index-CwsGN1jX.js";
1
+ import { F as e, O as i, l as r, m as s } from "./index-DyStz6kE.js";
2
2
  import "penpal";
3
3
  import "uuid";
4
4
  export {