@rebilly/framepay 5.34.4 → 5.36.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -143,9 +143,7 @@ export declare interface ButtonStyleDeclaration {
143
143
 
144
144
  export declare class Card extends PaymentMethod {
145
145
  Brands: typeof SupportedCardBrands;
146
- mount(target: HTMLElement | string, fieldType?: FieldType, extraData?: {
147
- initialValue?: string;
148
- }): CardElement;
146
+ mount(target: HTMLElement | string, fieldType?: FieldType, extraData?: FieldExtraData): CardElement;
149
147
  }
150
148
 
151
149
  export declare const CARD_CVV_TYPES: {
@@ -368,6 +366,11 @@ export declare const FIELD_TYPES: {
368
366
 
369
367
  export declare type FieldError = string | FramepayError;
370
368
 
369
+ export declare interface FieldExtraData {
370
+ initialValue?: string | null;
371
+ cardType?: string;
372
+ }
373
+
371
374
  /**
372
375
  * Structure defining a message sent from a field instance to its mounting element.
373
376
  * Used as the content of a Message sent with postMessage.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebilly/framepay",
3
- "version": "5.34.4",
3
+ "version": "5.36.0",
4
4
  "description": "A wrapper to load Rebilly's FramePay library and provide TypeScript types",
5
5
  "type": "module",
6
6
  "license": "MIT",