@authme/identity-verification 2.8.7 → 2.8.8
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/index.cjs +9 -4
- package/index.js +9 -4
- package/package.json +6 -6
package/index.cjs
CHANGED
|
@@ -30570,7 +30570,8 @@ const ocrResultModal = arg => {
|
|
|
30570
30570
|
function groupInput({
|
|
30571
30571
|
name,
|
|
30572
30572
|
label,
|
|
30573
|
-
value
|
|
30573
|
+
value,
|
|
30574
|
+
type
|
|
30574
30575
|
}) {
|
|
30575
30576
|
const domGroupItem = document.createElement('div');
|
|
30576
30577
|
domGroupItem.classList.add('video-container__ocrResultModal-group-item');
|
|
@@ -30586,6 +30587,9 @@ const ocrResultModal = arg => {
|
|
|
30586
30587
|
domInput.type = 'text';
|
|
30587
30588
|
domInput.value = value;
|
|
30588
30589
|
domError.innerText = `${label}格式不符`;
|
|
30590
|
+
if (type === 'date') {
|
|
30591
|
+
domInput.placeholder = 'YYYY/MM/DD';
|
|
30592
|
+
}
|
|
30589
30593
|
domInput.addEventListener('input', () => {
|
|
30590
30594
|
validateFields() ? btnConfirmStatus(false) : btnConfirmStatus(true);
|
|
30591
30595
|
// btnConfirmStatus(Object.values(validateMap).some((i: any) => i.validate === false));
|
|
@@ -30850,7 +30854,8 @@ const ocrResultModal = arg => {
|
|
|
30850
30854
|
const domGroupItem = groupInput({
|
|
30851
30855
|
name: item.name,
|
|
30852
30856
|
label: item.name === 'issueReason' ? translateService.translate('sdk.ocr.verify.result.issueType') : translateService.translate(`sdk.ocr.verify.result.${item.name}`),
|
|
30853
|
-
value: item.dateFormat ? formatDate(item.value, item.dateFormat) : item.value
|
|
30857
|
+
value: item.dateFormat ? formatDate(item.value, item.dateFormat) : item.value,
|
|
30858
|
+
type: item.dateFormat ? 'date' : 'text'
|
|
30854
30859
|
});
|
|
30855
30860
|
domBody.appendChild(domGroupItem);
|
|
30856
30861
|
}
|
|
@@ -35653,8 +35658,8 @@ class AuthmeIdentityVerification extends engine.AuthmeFunctionModule {
|
|
|
35653
35658
|
}
|
|
35654
35659
|
|
|
35655
35660
|
var name = "authme/sdk";
|
|
35656
|
-
var version$1 = "2.8.
|
|
35657
|
-
var date = "2025-03-
|
|
35661
|
+
var version$1 = "2.8.8";
|
|
35662
|
+
var date = "2025-03-25T06:52:21+0000";
|
|
35658
35663
|
var packageInfo = {
|
|
35659
35664
|
name: name,
|
|
35660
35665
|
version: version$1,
|
package/index.js
CHANGED
|
@@ -30562,7 +30562,8 @@ const ocrResultModal = arg => {
|
|
|
30562
30562
|
function groupInput({
|
|
30563
30563
|
name,
|
|
30564
30564
|
label,
|
|
30565
|
-
value
|
|
30565
|
+
value,
|
|
30566
|
+
type
|
|
30566
30567
|
}) {
|
|
30567
30568
|
const domGroupItem = document.createElement('div');
|
|
30568
30569
|
domGroupItem.classList.add('video-container__ocrResultModal-group-item');
|
|
@@ -30578,6 +30579,9 @@ const ocrResultModal = arg => {
|
|
|
30578
30579
|
domInput.type = 'text';
|
|
30579
30580
|
domInput.value = value;
|
|
30580
30581
|
domError.innerText = `${label}格式不符`;
|
|
30582
|
+
if (type === 'date') {
|
|
30583
|
+
domInput.placeholder = 'YYYY/MM/DD';
|
|
30584
|
+
}
|
|
30581
30585
|
domInput.addEventListener('input', () => {
|
|
30582
30586
|
validateFields() ? btnConfirmStatus(false) : btnConfirmStatus(true);
|
|
30583
30587
|
// btnConfirmStatus(Object.values(validateMap).some((i: any) => i.validate === false));
|
|
@@ -30842,7 +30846,8 @@ const ocrResultModal = arg => {
|
|
|
30842
30846
|
const domGroupItem = groupInput({
|
|
30843
30847
|
name: item.name,
|
|
30844
30848
|
label: item.name === 'issueReason' ? translateService.translate('sdk.ocr.verify.result.issueType') : translateService.translate(`sdk.ocr.verify.result.${item.name}`),
|
|
30845
|
-
value: item.dateFormat ? formatDate(item.value, item.dateFormat) : item.value
|
|
30849
|
+
value: item.dateFormat ? formatDate(item.value, item.dateFormat) : item.value,
|
|
30850
|
+
type: item.dateFormat ? 'date' : 'text'
|
|
30846
30851
|
});
|
|
30847
30852
|
domBody.appendChild(domGroupItem);
|
|
30848
30853
|
}
|
|
@@ -35645,8 +35650,8 @@ class AuthmeIdentityVerification extends AuthmeFunctionModule {
|
|
|
35645
35650
|
}
|
|
35646
35651
|
|
|
35647
35652
|
var name = "authme/sdk";
|
|
35648
|
-
var version$1 = "2.8.
|
|
35649
|
-
var date = "2025-03-
|
|
35653
|
+
var version$1 = "2.8.8";
|
|
35654
|
+
var date = "2025-03-25T06:52:21+0000";
|
|
35650
35655
|
var packageInfo = {
|
|
35651
35656
|
name: name,
|
|
35652
35657
|
version: version$1,
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authme/identity-verification",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.8",
|
|
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.
|
|
9
|
-
"@authme/engine": "2.8.
|
|
10
|
-
"@authme/id-recognition": "2.8.
|
|
11
|
-
"@authme/util": "2.8.
|
|
12
|
-
"@authme/liveness": "2.8.
|
|
8
|
+
"@authme/core": "2.8.8",
|
|
9
|
+
"@authme/engine": "2.8.8",
|
|
10
|
+
"@authme/id-recognition": "2.8.8",
|
|
11
|
+
"@authme/util": "2.8.8",
|
|
12
|
+
"@authme/liveness": "2.8.8"
|
|
13
13
|
},
|
|
14
14
|
"module": "./index.js",
|
|
15
15
|
"main": "./index.cjs",
|