@gr4vy/secure-fields-react 1.9.0 → 1.10.1
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 +3 -0
- package/lib/components/Field/Field.js +2 -2
- package/lib/components/Field/Field.js.map +1 -1
- package/lib/style.css +10 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v1.10.1 (Thu Jun 15 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- feat: pass html attributes to field wrapper [#346](https://github.com/gr4vy/secure-fields/pull/346) ([@luca-gr4vy](https://github.com/luca-gr4vy))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Luca Allievi ([@luca-gr4vy](https://github.com/luca-gr4vy))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v1.10.0 (Wed Jun 14 2023)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- feat: secure input default styles [#353](https://github.com/gr4vy/secure-fields/pull/353) ([@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.8.0 (Mon Jun 12 2023)
|
|
2
26
|
|
|
3
27
|
#### 🚀 Enhancement
|
package/README.md
CHANGED
|
@@ -21,6 +21,9 @@ npm install @gr4vy/secure-fields-react --save-prod
|
|
|
21
21
|
To use Secure Fields, import the `SecureFields` Provider component and wrap your app with it, making sure you pass the necessary configuration props and any event handlers.
|
|
22
22
|
|
|
23
23
|
```jsx
|
|
24
|
+
require('@gr4vy/secure-fields-react/lib/style.css') // default styles
|
|
25
|
+
// import '@gr4vy/secure-fields-react/lib/style.css'
|
|
26
|
+
|
|
24
27
|
const { SecureFields } = require(`@gr4vy/secure-fields-react`)
|
|
25
28
|
// import { SecureFields } from (`@gr4vy/secure-fields-react)
|
|
26
29
|
|
|
@@ -16,9 +16,9 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
16
16
|
var react_1 = require("react");
|
|
17
17
|
var use_secure_input_1 = require("../../hooks/use-secure-input");
|
|
18
18
|
var Field = function (props) {
|
|
19
|
-
var ref = (0, react_1.useRef)();
|
|
19
|
+
var ref = (0, react_1.useRef)(null);
|
|
20
20
|
(0, use_secure_input_1.useSecureInput)(__assign(__assign({}, props), { ref: ref }));
|
|
21
|
-
return (0, jsx_runtime_1.jsx)("input", { ref: ref });
|
|
21
|
+
return (0, jsx_runtime_1.jsx)("input", __assign({ ref: ref }, props));
|
|
22
22
|
};
|
|
23
23
|
exports.Field = Field;
|
|
24
24
|
//# sourceMappingURL=Field.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../src/components/Field/Field.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+BAA8B;AAC9B,iEAAuD;AAGhD,IAAM,KAAK,GAAG,UAAC,KAAiB;IACrC,IAAM,GAAG,GAAG,IAAA,cAAM,
|
|
1
|
+
{"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../src/components/Field/Field.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+BAA8B;AAC9B,iEAAuD;AAGhD,IAAM,KAAK,GAAG,UAAC,KAAiB;IACrC,IAAM,GAAG,GAAG,IAAA,cAAM,EAAC,IAAI,CAAC,CAAA;IACxB,IAAA,iCAAc,wBAAM,KAAK,KAAE,GAAG,KAAA,IAAG,CAAA;IACjC,OAAO,2CAAO,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CAAA;AACvC,CAAC,CAAA;AAJY,QAAA,KAAK,SAIjB"}
|
package/lib/style.css
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gr4vy/secure-fields-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.1",
|
|
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",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"prepare": "ts-patch install -s",
|
|
22
|
-
"build": "tsc -p tsconfig.prod.json",
|
|
22
|
+
"build": "tsc -p tsconfig.prod.json && cp ../secure-fields/src/style.css ./lib/style.css",
|
|
23
23
|
"clean": "rm -rf lib *.tgz",
|
|
24
24
|
"dev": "TOKEN=$(yarn --silent token) webpack serve --config webpack.dev.js",
|
|
25
25
|
"lint": "eslint src --ext ts,tsx",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"react-dom": ">=17.0.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@gr4vy/secure-fields": "^1.
|
|
42
|
+
"@gr4vy/secure-fields": "^1.10.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@testing-library/react-hooks": "^8.0.1",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "73d52d8c6c31581d6dc22d0c8841c528b1d58b99"
|
|
55
55
|
}
|