@rebilly/framepay 1.52.0 → 1.52.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +35 -35
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -36,7 +36,7 @@ export declare class ApplePayElement {
36
36
  }
37
37
 
38
38
  /**
39
- * Abstraction layer for the base element set to become a bban account field.
39
+ * Abstraction layer for the IframeElement set to become a bban account field.
40
40
  * Used to hide the internal implementation.
41
41
  */
42
42
  export declare class BankElement {
@@ -46,35 +46,7 @@ export declare class BankElement {
46
46
  unmount(): void;
47
47
  destroy(): void;
48
48
  focus(): void;
49
- on<T extends keyof BaseElementEventMap>(eventType: T, delegate: (...args: BaseElementEventMap[T]) => void): void;
50
- }
51
-
52
- export declare interface BaseElementEventMap {
53
- [FieldNotification.TYPES.ready]: [];
54
- [FieldNotification.TYPES.focus]: [{
55
- content: string;
56
- }];
57
- [FieldNotification.TYPES.error]: [FramepayError];
58
- [FieldNotification.TYPES.valid]: [
59
- {
60
- valid: boolean;
61
- source: string;
62
- completed?: boolean;
63
- }
64
- ];
65
- [FieldNotification.TYPES.blur]: [{
66
- content: string;
67
- }];
68
- [FieldNotification.TYPES.autoFillStart]: [];
69
- [FieldNotification.TYPES.autoFillCancel]: [];
70
- change: [
71
- {
72
- error: NotificationContent | FieldError;
73
- source: string;
74
- completed?: boolean;
75
- valid?: boolean;
76
- }
77
- ];
49
+ on<T extends keyof IframeElementEventMap>(eventType: T, delegate: (...args: IframeElementEventMap[T]) => void): void;
78
50
  }
79
51
 
80
52
  export declare interface BaseStyleDeclaration {
@@ -203,7 +175,7 @@ export declare interface CardConfig {
203
175
  export declare type CardCvvType = ValueOf<typeof CARD_CVV_TYPES>;
204
176
 
205
177
  /**
206
- * Abstraction layer for the base element set to become a payment card field.
178
+ * Abstraction layer for the IframeElement set to become a payment card field.
207
179
  * Used to hide the internal implementation.
208
180
  */
209
181
  export declare class CardElement {
@@ -222,7 +194,7 @@ export declare class CardElement {
222
194
  target?: string;
223
195
  }): void;
224
196
  destroy(): void;
225
- on<T extends keyof BaseElementEventMap>(eventType: T, delegate: (...args: BaseElementEventMap[T]) => void): void;
197
+ on<T extends keyof IframeElementEventMap>(eventType: T, delegate: (...args: IframeElementEventMap[T]) => void): void;
226
198
  }
227
199
 
228
200
  export declare type CardExpirationType = ValueOf<typeof CARD_EXPIRATION_TYPES>;
@@ -573,7 +545,7 @@ export declare interface GooglePayConfig {
573
545
  }
574
546
 
575
547
  /**
576
- * Abstraction layer for the base element set to become a Google Pay field.
548
+ * Abstraction layer for the IframeElement set to become a Google Pay field.
577
549
  * Used to hide the internal implementation.
578
550
  */
579
551
  export declare class GooglePayElement {
@@ -640,7 +612,7 @@ export declare class Iban extends PaymentMethod {
640
612
  }
641
613
 
642
614
  /**
643
- * Abstraction layer for the base element set to become a bban account field.
615
+ * Abstraction layer for the IframeElement set to become a bban account field.
644
616
  * Used to hide the internal implementation.
645
617
  */
646
618
  export declare class IbanElement {
@@ -650,7 +622,7 @@ export declare class IbanElement {
650
622
  unmount(): void;
651
623
  destroy(): void;
652
624
  focus(): void;
653
- on<T extends keyof BaseElementEventMap>(eventType: T, delegate: (...args: BaseElementEventMap[T]) => void): void;
625
+ on<T extends keyof IframeElementEventMap>(eventType: T, delegate: (...args: IframeElementEventMap[T]) => void): void;
654
626
  }
655
627
 
656
628
  export declare type IbanElementSourceReplaceNames = Partial<typeof PUBLIC_FIELD_SOURCE_NAMES_REPLACE_MAP.iban>;
@@ -664,6 +636,34 @@ export declare interface IconConfig {
664
636
  color?: string;
665
637
  }
666
638
 
639
+ export declare interface IframeElementEventMap {
640
+ [FieldNotification.TYPES.ready]: [];
641
+ [FieldNotification.TYPES.focus]: [{
642
+ content: string;
643
+ }];
644
+ [FieldNotification.TYPES.error]: [FramepayError];
645
+ [FieldNotification.TYPES.valid]: [
646
+ {
647
+ valid: boolean;
648
+ source: string;
649
+ completed?: boolean;
650
+ }
651
+ ];
652
+ [FieldNotification.TYPES.blur]: [{
653
+ content: string;
654
+ }];
655
+ [FieldNotification.TYPES.autoFillStart]: [];
656
+ [FieldNotification.TYPES.autoFillCancel]: [];
657
+ change: [
658
+ {
659
+ error: NotificationContent | FieldError;
660
+ source: string;
661
+ completed?: boolean;
662
+ valid?: boolean;
663
+ }
664
+ ];
665
+ }
666
+
667
667
  export declare interface InvalidField {
668
668
  field?: string;
669
669
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebilly/framepay",
3
- "version": "1.52.0",
3
+ "version": "1.52.2",
4
4
  "description": "A wrapper to load Rebilly's FramePay library and provide TypeScript types",
5
5
  "type": "module",
6
6
  "license": "MIT",