@gr4vy/secure-fields 1.6.0 → 1.7.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.
- package/CHANGELOG.md +24 -0
- package/README.md +8 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v1.7.0 (Tue May 16 2023)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- feat: add an input empty state [#301](https://github.com/gr4vy/secure-fields/pull/301) ([@theturboboy](https://github.com/theturboboy))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Andrei Haidukevich ([@theturboboy](https://github.com/theturboboy))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v1.6.1 (Wed May 10 2023)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- fix: background color invalid style [#297](https://github.com/gr4vy/secure-fields/pull/297) ([@luca-gr4vy](https://github.com/luca-gr4vy))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Luca Allievi ([@luca-gr4vy](https://github.com/luca-gr4vy))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v1.6.0 (Tue May 09 2023)
|
|
2
26
|
|
|
3
27
|
#### 🏠 Internal
|
package/README.md
CHANGED
|
@@ -68,8 +68,9 @@ secureFields.addEventListener(SecureFields.Events.CARD_VAULT_SUCCESS, () =>
|
|
|
68
68
|
console.log('Card tokenized successfully')
|
|
69
69
|
)
|
|
70
70
|
|
|
71
|
-
secureFields.addEventListener(
|
|
72
|
-
|
|
71
|
+
secureFields.addEventListener(
|
|
72
|
+
SecureFields.Events.CARD_VAULT_FAILURE,
|
|
73
|
+
(data) => console.log('Card tokenization failed', data) // data.status, data.code, data.message
|
|
73
74
|
)
|
|
74
75
|
|
|
75
76
|
number.addEventListener('input', (data) => {
|
|
@@ -195,11 +196,11 @@ The following events can be listened to by attaching an event handler to a field
|
|
|
195
196
|
|
|
196
197
|
Some of these provide additional useful data like the card BIN, validation status, and scheme. For example, the input event on a card number field might include `{ schema: 'visa', codeLabel: 'CVV', valid: true, ... }`.
|
|
197
198
|
|
|
198
|
-
| Name | Description | Example
|
|
199
|
-
| ------- | ------------------------------------------------ |
|
|
200
|
-
| `blur` | Triggered when the field loses focus. | `cardNumberField.addEventListener('blur', (data) => { console.log(data) /* { type: 'number' } */ })`
|
|
201
|
-
| `focus` | Triggered when the field gains focus. | `cardNumberField.addEventListener('focus', (data) => { console.log(data) /* { type: 'number' } */ })`
|
|
202
|
-
| `input` | Triggered when the field value has been changed. | `cardNumberField.addEventListener('input', (data) => { console.log(data) /* { type: 'number', schema: 'visa', codeLabel: 'CVV', valid: true } */` |
|
|
199
|
+
| Name | Description | Example |
|
|
200
|
+
| ------- | ------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
201
|
+
| `blur` | Triggered when the field loses focus. | `cardNumberField.addEventListener('blur', (data) => { console.log(data) /* { type: 'number' } */ })` |
|
|
202
|
+
| `focus` | Triggered when the field gains focus. | `cardNumberField.addEventListener('focus', (data) => { console.log(data) /* { type: 'number' } */ })` |
|
|
203
|
+
| `input` | Triggered when the field value has been changed. | `cardNumberField.addEventListener('input', (data) => { console.log(data) /* { type: 'number', schema: 'visa', codeLabel: 'CVV', valid: true, empty: true } */` |
|
|
203
204
|
|
|
204
205
|
### API reference
|
|
205
206
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gr4vy/secure-fields",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
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",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "59582bb84f3f37338e17c14e2f34749077f2dcf2"
|
|
57
57
|
}
|