@gr4vy/secure-fields 0.5.3 → 0.5.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ # v0.5.4 (Fri Sep 16 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fix: Ensure a field is only marked as invalid if it has been blurred [#46](https://github.com/gr4vy/secure-fields/pull/46) ([@cbetta](https://github.com/cbetta) [@luca-gr4vy](https://github.com/luca-gr4vy))
6
+
7
+ #### 🏠 Internal
8
+
9
+ - task: sdk updates [#49](https://github.com/gr4vy/secure-fields/pull/49) ([@luca-gr4vy](https://github.com/luca-gr4vy))
10
+ - task: rename expiration to expiry [#48](https://github.com/gr4vy/secure-fields/pull/48) ([@luca-gr4vy](https://github.com/luca-gr4vy))
11
+
12
+ #### Authors: 2
13
+
14
+ - Cristiano Betta ([@cbetta](https://github.com/cbetta))
15
+ - Luca Allievi ([@luca-gr4vy](https://github.com/luca-gr4vy))
16
+
17
+ ---
18
+
1
19
  # v0.5.3 (Thu Sep 15 2022)
2
20
 
3
21
  #### 🏠 Internal
package/lib/index.d.ts CHANGED
@@ -30,4 +30,4 @@ declare class SecureFields {
30
30
  setDebug(debug: boolean): void;
31
31
  }
32
32
  export { SecureFields };
33
- export type { Field, Styles, StylesTuple } from './types';
33
+ export type { Config, CombinedEvents, Field, FieldType, FieldEvent, Styles, StylesTuple, } from './types';
package/lib/input.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { Field, FieldEvent, StylesTuple } from './types';
1
+ import { Field, FieldType, FieldEvent, StylesTuple } from './types';
2
2
  declare type Options = Omit<Field, 'element' | 'type'>;
3
3
  declare type EventListener = (event: FieldEvent['type'], callback: (...args: any[]) => void) => void;
4
4
  declare class SecureInput {
5
5
  frameUrl: string;
6
6
  parentOrigin: string;
7
7
  frame: HTMLIFrameElement;
8
- type: 'number' | 'securityCode' | 'expiryDate';
8
+ type: FieldType;
9
9
  options: Options;
10
10
  addEventListener: EventListener;
11
11
  removeEventListener: EventListener;
package/lib/types.d.ts CHANGED
@@ -5,7 +5,7 @@ export declare type Config = {
5
5
  gr4vyId: string;
6
6
  sessionId: string;
7
7
  };
8
- export declare type FieldType = 'number' | 'securityCode' | 'expirationDate';
8
+ export declare type FieldType = 'number' | 'securityCode' | 'expiryDate';
9
9
  export declare type Field = {
10
10
  type: FieldType;
11
11
  placeholder?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gr4vy/secure-fields",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Gr4vy-hosted secure fields offering advanced theming, PCI compliance, event handling, and more.",
5
5
  "main": "lib/index",
6
6
  "types": "lib/index",
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "76e60e2b2f07b6fb9058f60e657e9bb7d5092a75"
54
+ "gitHead": "160286f5462c6ee37f5566082aee130ca3710400"
55
55
  }