@incodetech/core 0.0.0-dev-20260219-dfbf2ff → 0.0.0-dev-20260220-1acec07
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.
|
@@ -1166,11 +1166,9 @@ const hasUploadValidationErrorGuard = ({ context }) => {
|
|
|
1166
1166
|
const isFrontModeGuard = ({ context }) => context.currentMode === "front" || context.currentMode === "passport";
|
|
1167
1167
|
const isOnlyFrontGuard = ({ context }) => context.config.onlyFront;
|
|
1168
1168
|
const shouldContinueToBackGuard = ({ context }) => {
|
|
1169
|
-
if (context.currentMode
|
|
1170
|
-
if (context.currentMode !== "front") return false;
|
|
1169
|
+
if (context.currentMode !== "front" && context.currentMode !== "passport") return false;
|
|
1171
1170
|
if (context.config.onlyFront) return false;
|
|
1172
1171
|
if (context.config.onlyBack) return false;
|
|
1173
|
-
if (!context.config.enableId && context.config.enablePassport) return false;
|
|
1174
1172
|
if (context.uploadResponse?.skipBackIdCapture) return false;
|
|
1175
1173
|
return true;
|
|
1176
1174
|
};
|
|
@@ -2047,7 +2045,7 @@ function mapState(snapshot) {
|
|
|
2047
2045
|
}
|
|
2048
2046
|
if (snapshot.matches("capture")) {
|
|
2049
2047
|
const captureStatus = getCaptureStatus(snapshot);
|
|
2050
|
-
const needsBackCapture = context.currentMode === "front" && !context.config.onlyFront && !context.config.onlyBack;
|
|
2048
|
+
const needsBackCapture = (context.currentMode === "front" || context.currentMode === "passport") && !context.config.onlyFront && !context.config.onlyBack && !context.uploadResponse?.skipBackIdCapture;
|
|
2051
2049
|
return {
|
|
2052
2050
|
status: "capture",
|
|
2053
2051
|
captureStatus: captureStatus ?? "initializing",
|
package/dist/id.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import "./src-CKB3MNL0.esm.js";
|
|
|
4
4
|
import "./endpoints-CAXIQnl3.esm.js";
|
|
5
5
|
import "./deepsightService-CZC8YaHN.esm.js";
|
|
6
6
|
import "./api-Cqrn4bGi.esm.js";
|
|
7
|
-
import { a as processId, c as stopStream, d as ID_ERROR_CODES, i as initializeIdCapture, l as uploadIdImage, n as createIdCaptureActor, o as startRecordingSession, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-
|
|
7
|
+
import { a as processId, c as stopStream, d as ID_ERROR_CODES, i as initializeIdCapture, l as uploadIdImage, n as createIdCaptureActor, o as startRecordingSession, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-CIYeuxyf.esm.js";
|
|
8
8
|
import "./stats-C0Z_4KzW.esm.js";
|
|
9
9
|
|
|
10
10
|
export { ID_ERROR_CODES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
package/dist/index.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import { D as createApi_default, o as warmupWasm, r as WasmUtilProvider } from "
|
|
|
4
4
|
import "./endpoints-CAXIQnl3.esm.js";
|
|
5
5
|
import "./deepsightService-CZC8YaHN.esm.js";
|
|
6
6
|
import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-Cqrn4bGi.esm.js";
|
|
7
|
-
import { _ as createSession, a as processId, c as stopStream, d as ID_ERROR_CODES, f as getDisableIpify, g as resetSessionInit, h as isSessionInitialized, i as initializeIdCapture, l as uploadIdImage, m as initializeSession, n as createIdCaptureActor, o as startRecordingSession, p as getSessionFeatures, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-
|
|
7
|
+
import { _ as createSession, a as processId, c as stopStream, d as ID_ERROR_CODES, f as getDisableIpify, g as resetSessionInit, h as isSessionInitialized, i as initializeIdCapture, l as uploadIdImage, m as initializeSession, n as createIdCaptureActor, o as startRecordingSession, p as getSessionFeatures, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-CIYeuxyf.esm.js";
|
|
8
8
|
import "./stats-C0Z_4KzW.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/setup.ts
|