@rebilly/framepay 1.49.0 → 1.51.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 +11 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -45,6 +45,7 @@ export declare class BankElement {
45
45
  mount(): void;
46
46
  unmount(): void;
47
47
  destroy(): void;
48
+ focus(): void;
48
49
  on<T extends keyof BaseElementEventMap>(eventType: T, delegate: (...args: BaseElementEventMap[T]) => void): void;
49
50
  }
50
51
 
@@ -211,6 +212,15 @@ export declare class CardElement {
211
212
 
212
213
  mount(): void;
213
214
  unmount(): void;
215
+ /**
216
+ * Focus on the card field
217
+ * @param options
218
+ * @param options.target - For combined card fields, specify the target field to focus on.
219
+ * For example, this could be "cardNumber" or "cardCvv".
220
+ */
221
+ focus(options?: {
222
+ target?: string;
223
+ }): void;
214
224
  destroy(): void;
215
225
  on<T extends keyof BaseElementEventMap>(eventType: T, delegate: (...args: BaseElementEventMap[T]) => void): void;
216
226
  }
@@ -637,6 +647,7 @@ export declare class IbanElement {
637
647
  mount(): void;
638
648
  unmount(): void;
639
649
  destroy(): void;
650
+ focus(): void;
640
651
  on<T extends keyof BaseElementEventMap>(eventType: T, delegate: (...args: BaseElementEventMap[T]) => void): void;
641
652
  }
642
653
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebilly/framepay",
3
- "version": "1.49.0",
3
+ "version": "1.51.0",
4
4
  "description": "A wrapper to load Rebilly's FramePay library and provide TypeScript types",
5
5
  "type": "module",
6
6
  "license": "MIT",