@authme/identity-verification 2.8.22 → 2.8.23

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 (3) hide show
  1. package/index.cjs +9 -4
  2. package/index.js +9 -4
  3. package/package.json +6 -6
package/index.cjs CHANGED
@@ -31934,7 +31934,11 @@ const ocrResultModal = arg => {
31934
31934
  domInput.setAttribute(key, attribute[key]);
31935
31935
  });
31936
31936
  }
31937
- domInput.addEventListener('input', () => {
31937
+ domInput.addEventListener('input', event => {
31938
+ if (domInput.getAttribute('data-date')) {
31939
+ const target = event.target;
31940
+ target.value = target.value.replace(/[^0-9]/g, '');
31941
+ }
31938
31942
  validateFields() ? btnConfirmStatus(false) : btnConfirmStatus(true);
31939
31943
  // btnConfirmStatus(Object.values(validateMap).some((i: any) => i.validate === false));
31940
31944
  });
@@ -32313,7 +32317,8 @@ const ocrResultModal = arg => {
32313
32317
  attribute: (() => {
32314
32318
  if (item.dateFormat) {
32315
32319
  return {
32316
- inputmode: 'numeric'
32320
+ inputmode: 'numeric',
32321
+ 'data-date': true
32317
32322
  };
32318
32323
  }
32319
32324
  return {};
@@ -37216,8 +37221,8 @@ class AuthmeIdentityVerification extends engine.AuthmeFunctionModule {
37216
37221
  }
37217
37222
 
37218
37223
  var name = "authme/sdk";
37219
- var version$1 = "2.8.22";
37220
- var date = "2025-06-17T00:38:30+0000";
37224
+ var version$1 = "2.8.23";
37225
+ var date = "2025-06-23T02:36:05+0000";
37221
37226
  var packageInfo = {
37222
37227
  name: name,
37223
37228
  version: version$1,
package/index.js CHANGED
@@ -31926,7 +31926,11 @@ const ocrResultModal = arg => {
31926
31926
  domInput.setAttribute(key, attribute[key]);
31927
31927
  });
31928
31928
  }
31929
- domInput.addEventListener('input', () => {
31929
+ domInput.addEventListener('input', event => {
31930
+ if (domInput.getAttribute('data-date')) {
31931
+ const target = event.target;
31932
+ target.value = target.value.replace(/[^0-9]/g, '');
31933
+ }
31930
31934
  validateFields() ? btnConfirmStatus(false) : btnConfirmStatus(true);
31931
31935
  // btnConfirmStatus(Object.values(validateMap).some((i: any) => i.validate === false));
31932
31936
  });
@@ -32305,7 +32309,8 @@ const ocrResultModal = arg => {
32305
32309
  attribute: (() => {
32306
32310
  if (item.dateFormat) {
32307
32311
  return {
32308
- inputmode: 'numeric'
32312
+ inputmode: 'numeric',
32313
+ 'data-date': true
32309
32314
  };
32310
32315
  }
32311
32316
  return {};
@@ -37208,8 +37213,8 @@ class AuthmeIdentityVerification extends AuthmeFunctionModule {
37208
37213
  }
37209
37214
 
37210
37215
  var name = "authme/sdk";
37211
- var version$1 = "2.8.22";
37212
- var date = "2025-06-17T00:38:30+0000";
37216
+ var version$1 = "2.8.23";
37217
+ var date = "2025-06-23T02:36:05+0000";
37213
37218
  var packageInfo = {
37214
37219
  name: name,
37215
37220
  version: version$1,
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@authme/identity-verification",
3
- "version": "2.8.22",
3
+ "version": "2.8.23",
4
4
  "peerDependencies": {
5
5
  "core-js": "^3.6.0",
6
6
  "lottie-web": "^5.9.2",
7
7
  "rxjs": "^7.4.0",
8
- "@authme/core": "2.8.22",
9
- "@authme/engine": "2.8.22",
10
- "@authme/id-recognition": "2.8.22",
11
- "@authme/liveness": "2.8.22",
12
- "@authme/util": "2.8.22"
8
+ "@authme/core": "2.8.23",
9
+ "@authme/engine": "2.8.23",
10
+ "@authme/id-recognition": "2.8.23",
11
+ "@authme/liveness": "2.8.23",
12
+ "@authme/util": "2.8.23"
13
13
  },
14
14
  "module": "./index.js",
15
15
  "main": "./index.cjs",