@neofaceid/web-sdk 1.32.0 → 1.33.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/dist/index.d.ts +1 -1
- package/dist/neoface-id-sdk.es.js +34 -26
- package/dist/neoface-id-sdk.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1626,7 +1626,7 @@ export declare const validateToken: (applicationToken: string) => Promise<boolea
|
|
|
1626
1626
|
* MINOR: Incrementado quando adicionamos funcionalidades mantendo compatibilidade
|
|
1627
1627
|
* PATCH: Incrementado quando corrigimos bugs mantendo compatibilidade
|
|
1628
1628
|
*/
|
|
1629
|
-
export declare const VERSION = "1.
|
|
1629
|
+
export declare const VERSION = "1.33.0";
|
|
1630
1630
|
|
|
1631
1631
|
/**
|
|
1632
1632
|
* Executa `fn(sessionId)`. Se o servidor devolver 410 (sessão consumida/expirada),
|
|
@@ -10866,7 +10866,7 @@ const biometricDetection = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
10866
10866
|
initializeBiometricDetection,
|
|
10867
10867
|
isAdvancedDetectionAvailable
|
|
10868
10868
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10869
|
-
const VERSION = "1.
|
|
10869
|
+
const VERSION = "1.33.0";
|
|
10870
10870
|
const RELEASE_DATE = "2026-09-02";
|
|
10871
10871
|
let cachedSession = null;
|
|
10872
10872
|
function getCachedCaptureSession() {
|
|
@@ -12935,7 +12935,7 @@ class DocumentCaptureModal {
|
|
|
12935
12935
|
</div>
|
|
12936
12936
|
<div class="neoface-doc-instruction">
|
|
12937
12937
|
<svg class="neoface-doc-instruction-icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>
|
|
12938
|
-
<span>
|
|
12938
|
+
<span>Sem reflexo do flash sobre o texto</span>
|
|
12939
12939
|
</div>
|
|
12940
12940
|
</div>
|
|
12941
12941
|
</div>
|
|
@@ -12991,15 +12991,16 @@ class DocumentCaptureModal {
|
|
|
12991
12991
|
<div class="neoface-doc-body">
|
|
12992
12992
|
<div class="neoface-doc-preview-single">
|
|
12993
12993
|
<span class="neoface-doc-preview-label">${label}</span>
|
|
12994
|
-
<img class="neoface-doc-preview-img neoface-doc-preview-current" />
|
|
12994
|
+
<img class="neoface-doc-preview-img neoface-doc-preview-current" alt="Prévia do documento capturado" />
|
|
12995
12995
|
</div>
|
|
12996
|
-
|
|
12996
|
+
|
|
12997
|
+
<h3 class="neoface-doc-preview-question" id="neoface-doc-preview-question">Está legível?</h3>
|
|
12997
12998
|
<div class="neoface-doc-preview-hint">
|
|
12998
12999
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>
|
|
12999
|
-
<span>
|
|
13000
|
+
<span>Confira se dá para ler nome, número e data sem esforço.</span>
|
|
13000
13001
|
</div>
|
|
13001
13002
|
</div>
|
|
13002
|
-
|
|
13003
|
+
|
|
13003
13004
|
<div class="neoface-doc-footer">
|
|
13004
13005
|
<button class="neoface-doc-btn neoface-doc-btn-secondary neoface-doc-retake-btn">
|
|
13005
13006
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
@@ -13008,11 +13009,11 @@ class DocumentCaptureModal {
|
|
|
13008
13009
|
</svg>
|
|
13009
13010
|
Refazer
|
|
13010
13011
|
</button>
|
|
13011
|
-
<button class="neoface-doc-btn neoface-doc-btn-
|
|
13012
|
+
<button class="neoface-doc-btn neoface-doc-btn-primary neoface-doc-confirm-btn">
|
|
13012
13013
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
13013
13014
|
<path d="M20 6L9 17l-5-5"/>
|
|
13014
13015
|
</svg>
|
|
13015
|
-
${isLastStep ? "
|
|
13016
|
+
${isLastStep ? "Sim, enviar" : "Sim, próximo"}
|
|
13016
13017
|
</button>
|
|
13017
13018
|
</div>
|
|
13018
13019
|
|
|
@@ -13429,8 +13430,8 @@ class DocumentCaptureModal {
|
|
|
13429
13430
|
}
|
|
13430
13431
|
|
|
13431
13432
|
.neoface-doc-select-option:hover {
|
|
13432
|
-
background: rgba(0,
|
|
13433
|
-
border-color: rgba(0,
|
|
13433
|
+
background: rgba(0, 145, 246, 0.1);
|
|
13434
|
+
border-color: rgba(0, 145, 246, 0.4);
|
|
13434
13435
|
transform: translateX(4px);
|
|
13435
13436
|
}
|
|
13436
13437
|
|
|
@@ -13440,7 +13441,7 @@ class DocumentCaptureModal {
|
|
|
13440
13441
|
justify-content: center;
|
|
13441
13442
|
width: 44px;
|
|
13442
13443
|
height: 44px;
|
|
13443
|
-
background: rgba(0,
|
|
13444
|
+
background: rgba(0, 145, 246, 0.15);
|
|
13444
13445
|
border-radius: 12px;
|
|
13445
13446
|
color: #0091F6;
|
|
13446
13447
|
}
|
|
@@ -13476,8 +13477,8 @@ class DocumentCaptureModal {
|
|
|
13476
13477
|
align-items: center;
|
|
13477
13478
|
justify-content: center;
|
|
13478
13479
|
padding: 14px 16px;
|
|
13479
|
-
background: rgba(0,
|
|
13480
|
-
border: 1px solid rgba(0,
|
|
13480
|
+
background: rgba(0, 145, 246, 0.08);
|
|
13481
|
+
border: 1px solid rgba(0, 145, 246, 0.15);
|
|
13481
13482
|
border-radius: 10px;
|
|
13482
13483
|
color: rgba(255, 255, 255, 0.8);
|
|
13483
13484
|
font-size: 13px;
|
|
@@ -13494,13 +13495,13 @@ class DocumentCaptureModal {
|
|
|
13494
13495
|
flex-shrink: 0;
|
|
13495
13496
|
}
|
|
13496
13497
|
|
|
13497
|
-
/* Camera */
|
|
13498
|
+
/* Camera — ISO/IEC 7810 ID-1 (85.60 × 53.98 mm ≈ 1.586:1) */
|
|
13498
13499
|
.neoface-doc-camera-container {
|
|
13499
13500
|
position: relative;
|
|
13500
13501
|
background: #000;
|
|
13501
13502
|
border-radius: 16px;
|
|
13502
13503
|
overflow: hidden;
|
|
13503
|
-
aspect-ratio:
|
|
13504
|
+
aspect-ratio: 1.586 / 1;
|
|
13504
13505
|
}
|
|
13505
13506
|
|
|
13506
13507
|
.neoface-doc-video {
|
|
@@ -13522,20 +13523,19 @@ class DocumentCaptureModal {
|
|
|
13522
13523
|
pointer-events: none;
|
|
13523
13524
|
}
|
|
13524
13525
|
|
|
13526
|
+
/* Moldura Focus Frame — proporção ID-1 (1.586:1), sem borda contínua. */
|
|
13525
13527
|
.neoface-doc-frame {
|
|
13526
|
-
width:
|
|
13527
|
-
|
|
13528
|
+
width: 82%;
|
|
13529
|
+
aspect-ratio: 1.586 / 1;
|
|
13528
13530
|
position: relative;
|
|
13529
|
-
border: 2px dashed rgba(0, 200, 255, 0.5);
|
|
13530
13531
|
border-radius: 12px;
|
|
13531
|
-
background: rgba(0, 200, 255, 0.03);
|
|
13532
13532
|
}
|
|
13533
|
-
|
|
13533
|
+
|
|
13534
13534
|
.neoface-doc-corner {
|
|
13535
13535
|
position: absolute;
|
|
13536
13536
|
width: 28px;
|
|
13537
13537
|
height: 28px;
|
|
13538
|
-
border-color: #
|
|
13538
|
+
border-color: var(--nfid-action, #0059C4);
|
|
13539
13539
|
border-style: solid;
|
|
13540
13540
|
}
|
|
13541
13541
|
|
|
@@ -13624,23 +13624,31 @@ class DocumentCaptureModal {
|
|
|
13624
13624
|
width: 75%;
|
|
13625
13625
|
height: auto;
|
|
13626
13626
|
border-radius: 12px;
|
|
13627
|
-
border: 2px solid rgba(0,
|
|
13627
|
+
border: 2px solid rgba(0, 145, 246, 0.3);
|
|
13628
13628
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
|
13629
13629
|
}
|
|
13630
13630
|
|
|
13631
|
+
.neoface-doc-preview-question {
|
|
13632
|
+
margin: 12px 0 4px;
|
|
13633
|
+
font-size: 17px;
|
|
13634
|
+
font-weight: 700;
|
|
13635
|
+
color: var(--nfid-text, #0A1320);
|
|
13636
|
+
text-align: center;
|
|
13637
|
+
}
|
|
13638
|
+
|
|
13631
13639
|
.neoface-doc-preview-hint {
|
|
13632
13640
|
display: flex;
|
|
13633
13641
|
align-items: center;
|
|
13634
13642
|
gap: 10px;
|
|
13635
13643
|
padding: 12px 16px;
|
|
13636
|
-
background: rgba(0,
|
|
13637
|
-
border: 1px solid rgba(0,
|
|
13644
|
+
background: rgba(0, 145, 246, 0.08);
|
|
13645
|
+
border: 1px solid rgba(0, 145, 246, 0.15);
|
|
13638
13646
|
border-radius: 10px;
|
|
13639
13647
|
font-size: 13px;
|
|
13640
13648
|
color: rgba(255, 255, 255, 0.8);
|
|
13641
13649
|
margin-top: 8px;
|
|
13642
13650
|
}
|
|
13643
|
-
|
|
13651
|
+
|
|
13644
13652
|
.neoface-doc-preview-hint svg {
|
|
13645
13653
|
color: #0091F6;
|
|
13646
13654
|
flex-shrink: 0;
|
|
@@ -13675,7 +13683,7 @@ class DocumentCaptureModal {
|
|
|
13675
13683
|
|
|
13676
13684
|
.neoface-doc-btn-primary:hover {
|
|
13677
13685
|
transform: translateY(-2px);
|
|
13678
|
-
box-shadow: 0 6px 20px rgba(0,
|
|
13686
|
+
box-shadow: 0 6px 20px rgba(0, 145, 246, 0.4);
|
|
13679
13687
|
}
|
|
13680
13688
|
|
|
13681
13689
|
.neoface-doc-btn-success {
|