@gr4vy/secure-fields-react 2.3.0--canary.1104.46d8e0a.0 → 2.3.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 CHANGED
@@ -1,3 +1,38 @@
1
+ # v2.3.1 (Tue Apr 07 2026)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - load inputs after controller finished loading - TA-14121 [#1149](https://github.com/gr4vy/secure-fields/pull/1149) ([@luca-gr4vy](https://github.com/luca-gr4vy) [@GiordanoArman](https://github.com/GiordanoArman))
6
+ - feat: input masking on blur [#1142](https://github.com/gr4vy/secure-fields/pull/1142) ([@luca-gr4vy](https://github.com/luca-gr4vy) [@GiordanoArman](https://github.com/GiordanoArman))
7
+ - fix: eslint cli config issue [#1151](https://github.com/gr4vy/secure-fields/pull/1151) ([@luca-gr4vy](https://github.com/luca-gr4vy))
8
+
9
+ #### Authors: 2
10
+
11
+ - GiordanoArman ([@GiordanoArman](https://github.com/GiordanoArman))
12
+ - Luca Allievi ([@luca-gr4vy](https://github.com/luca-gr4vy))
13
+
14
+ ---
15
+
16
+ # v2.3.0 (Wed Mar 18 2026)
17
+
18
+ #### 🚀 Enhancement
19
+
20
+ - 3DS on Secure Fields [#1104](https://github.com/gr4vy/secure-fields/pull/1104) ([@GiordanoArman](https://github.com/GiordanoArman) [@luca-gr4vy](https://github.com/luca-gr4vy) [@gryevns](https://github.com/gryevns))
21
+ - feat: expose field clear method [#1103](https://github.com/gr4vy/secure-fields/pull/1103) ([@luca-gr4vy](https://github.com/luca-gr4vy))
22
+
23
+ #### 🏠 Internal
24
+
25
+ - fix: various vulnerabilities [#1119](https://github.com/gr4vy/secure-fields/pull/1119) ([@luca-gr4vy](https://github.com/luca-gr4vy))
26
+ - task: upgrade to eslint v9 [#1110](https://github.com/gr4vy/secure-fields/pull/1110) ([@luca-gr4vy](https://github.com/luca-gr4vy))
27
+
28
+ #### Authors: 3
29
+
30
+ - Gary Evans ([@gryevns](https://github.com/gryevns))
31
+ - GiordanoArman ([@GiordanoArman](https://github.com/GiordanoArman))
32
+ - Luca Allievi ([@luca-gr4vy](https://github.com/luca-gr4vy))
33
+
34
+ ---
35
+
1
36
  # v2.2.5 (Wed Jan 14 2026)
2
37
 
3
38
  #### 🐛 Bug Fix
@@ -10,18 +10,30 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
13
24
  Object.defineProperty(exports, "__esModule", { value: true });
14
25
  exports.Field = void 0;
15
26
  var jsx_runtime_1 = require("react/jsx-runtime");
16
27
  var react_1 = require("react");
17
28
  var use_secure_input_1 = require("../../hooks/use-secure-input");
18
29
  exports.Field = (0, react_1.forwardRef)(function (props, handleRef) {
30
+ var maskInput = props.maskInput, rest = __rest(props, ["maskInput"]);
19
31
  var ref = (0, react_1.useRef)(null);
20
32
  var field = (0, use_secure_input_1.useSecureInput)(__assign(__assign({}, props), { ref: ref }));
21
33
  (0, react_1.useImperativeHandle)(handleRef, function () { return ({
22
34
  clear: function () { var _a; return (_a = field === null || field === void 0 ? void 0 : field.clear) === null || _a === void 0 ? void 0 : _a.call(field); },
23
35
  }); }, [field]);
24
- return (0, jsx_runtime_1.jsx)("input", __assign({ ref: ref }, props));
36
+ return (0, jsx_runtime_1.jsx)("input", __assign({ ref: ref }, rest));
25
37
  });
26
38
  exports.Field.displayName = 'Field';
27
39
  //# sourceMappingURL=Field.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../src/components/Field/Field.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+BAA+D;AAC/D,iEAAuD;AAG1C,QAAA,KAAK,GAAG,IAAA,kBAAU,EAC7B,UAAC,KAAK,EAAE,SAAS;IACf,IAAM,GAAG,GAAG,IAAA,cAAM,EAAC,IAAI,CAAC,CAAA;IACxB,IAAM,KAAK,GAAG,IAAA,iCAAc,wBAAM,KAAK,KAAE,GAAG,KAAA,IAAG,CAAA;IAE/C,IAAA,2BAAmB,EACjB,SAAS,EACT,cAAM,OAAA,CAAC;QACL,KAAK,EAAE,sBAAM,OAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,qDAAI,CAAA,EAAA;KAC9B,CAAC,EAFI,CAEJ,EACF,CAAC,KAAK,CAAC,CACR,CAAA;IAED,OAAO,2CAAO,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CAAA;AACvC,CAAC,CACF,CAAA;AAED,aAAK,CAAC,WAAW,GAAG,OAAO,CAAA"}
1
+ {"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../src/components/Field/Field.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA+D;AAC/D,iEAAuD;AAG1C,QAAA,KAAK,GAAG,IAAA,kBAAU,EAC7B,UAAC,KAAK,EAAE,SAAS;IACP,IAAA,SAAS,GAAc,KAAK,UAAnB,EAAK,IAAI,UAAK,KAAK,EAA9B,aAAsB,CAAF,CAAU;IACpC,IAAM,GAAG,GAAG,IAAA,cAAM,EAAC,IAAI,CAAC,CAAA;IACxB,IAAM,KAAK,GAAG,IAAA,iCAAc,wBAAM,KAAK,KAAE,GAAG,KAAA,IAAG,CAAA;IAE/C,IAAA,2BAAmB,EACjB,SAAS,EACT,cAAM,OAAA,CAAC;QACL,KAAK,EAAE,sBAAM,OAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,qDAAI,CAAA,EAAA;KAC9B,CAAC,EAFI,CAEJ,EACF,CAAC,KAAK,CAAC,CACR,CAAA;IAED,OAAO,2CAAO,GAAG,EAAE,GAAG,IAAM,IAAI,EAAI,CAAA;AACtC,CAAC,CACF,CAAA;AAED,aAAK,CAAC,WAAW,GAAG,OAAO,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gr4vy/secure-fields-react",
3
- "version": "2.3.0--canary.1104.46d8e0a.0",
3
+ "version": "2.3.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",
@@ -22,7 +22,7 @@
22
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
- "lint": "eslint src/**/*.{ts,tsx}",
25
+ "lint": "eslint ./src --ext ts,tsx",
26
26
  "prebuild": "yarn clean",
27
27
  "prepack": "yarn build",
28
28
  "serve:watch": "yarn run watch",
@@ -41,7 +41,7 @@
41
41
  "react-dom": ">=17.0.0"
42
42
  },
43
43
  "dependencies": {
44
- "@gr4vy/secure-fields": "2.3.0--canary.1104.46d8e0a.0"
44
+ "@gr4vy/secure-fields": "^2.3.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@testing-library/react": "^12.1.5",
@@ -55,5 +55,5 @@
55
55
  "access": "public",
56
56
  "registry": "https://registry.npmjs.org"
57
57
  },
58
- "gitHead": "46d8e0a4cf2c18e2d580ff6e5b19662233f80184"
58
+ "gitHead": "84785fcb53b065bf2b5740bf7ded23b2214477f4"
59
59
  }