@rebilly/framepay 5.161.0 → 5.162.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 +8 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -196,6 +196,13 @@ export declare class CardElement {
196
196
  focus(options?: {
197
197
  target?: string;
198
198
  }): void;
199
+ /**
200
+ * Visually invalidate a field without emitting merchant `change` (e.g. gateway CVV/EXP mismatch).
201
+ * @param options.target - Combined card subfield, e.g. "cardCvv" or "cardExpiration".
202
+ */
203
+ invalidate(options?: {
204
+ target?: string;
205
+ }): void;
199
206
  destroy(): void;
200
207
  on: IframeElementBusOn;
201
208
  validate(): Promise<void>;
@@ -386,6 +393,7 @@ export declare class FieldNotification {
386
393
  readonly ready: "ready";
387
394
  readonly autoFillStart: "auto-fill-start";
388
395
  readonly autoFillCancel: "auto-fill-cancel";
396
+ readonly clearExternalInvalid: "clear-external-invalid";
389
397
  };
390
398
  type: FieldNotificationType;
391
399
  content: NotificationContent | FieldError;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebilly/framepay",
3
- "version": "5.161.0",
3
+ "version": "5.162.0",
4
4
  "description": "A wrapper to load Rebilly's FramePay library and provide TypeScript types",
5
5
  "type": "module",
6
6
  "license": "MIT",