@incodetech/core 0.0.0-dev-20260302-e38ab90 → 0.0.0-dev-20260302-10177f1
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.
|
@@ -1311,6 +1311,15 @@ const _idCaptureMachine = setup({
|
|
|
1311
1311
|
context.frameCapturer?.getLatestCanvas();
|
|
1312
1312
|
},
|
|
1313
1313
|
clearUploadFailure: assign(({ context }) => getClearUploadFailureValues(context)),
|
|
1314
|
+
clearStreamForRetry: assign(({ context }) => {
|
|
1315
|
+
performStopMediaStream(context);
|
|
1316
|
+
performDisposeProvider(context);
|
|
1317
|
+
return {
|
|
1318
|
+
stream: void 0,
|
|
1319
|
+
provider: void 0,
|
|
1320
|
+
frameCapturer: void 0
|
|
1321
|
+
};
|
|
1322
|
+
}),
|
|
1314
1323
|
decrementAttemptsRemaining: assign(({ context }) => ({ attemptsRemaining: context.attemptsRemaining - 1 })),
|
|
1315
1324
|
setUploadErrorFromUploadValidation: assign({ uploadError: ({ context }) => getUploadValidationError(context) }),
|
|
1316
1325
|
stopMediaRecording: ({ context }) => {
|
|
@@ -1852,9 +1861,13 @@ const _idCaptureMachine = setup({
|
|
|
1852
1861
|
}, { target: "success" }] },
|
|
1853
1862
|
uploadError: { on: { CONTINUE_FROM_ERROR: [
|
|
1854
1863
|
{
|
|
1855
|
-
target: "
|
|
1864
|
+
target: "checkingStream",
|
|
1856
1865
|
guard: "hasAttemptsRemaining",
|
|
1857
|
-
actions: [
|
|
1866
|
+
actions: [
|
|
1867
|
+
"resetDetection",
|
|
1868
|
+
"clearUploadFailure",
|
|
1869
|
+
"clearStreamForRetry"
|
|
1870
|
+
]
|
|
1858
1871
|
},
|
|
1859
1872
|
{
|
|
1860
1873
|
target: "#idCapture.frontFinished",
|
package/dist/id.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import "./endpoints-DsYhzvVt.esm.js";
|
|
|
5
5
|
import "./streamingEvents-Cf-UwbXh.esm.js";
|
|
6
6
|
import "./deepsightService-BaQxZ72c.esm.js";
|
|
7
7
|
import "./api-BgBQu3t4.esm.js";
|
|
8
|
-
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-
|
|
8
|
+
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-C5k61nTP.esm.js";
|
|
9
9
|
import "./stats-Df76BRkJ.esm.js";
|
|
10
10
|
|
|
11
11
|
export { ID_ERROR_CODES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
package/dist/index.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import "./endpoints-DsYhzvVt.esm.js";
|
|
|
5
5
|
import { c as getDeviceClass, l as getBrowser, o as checkPermission, s as requestPermission } from "./streamingEvents-Cf-UwbXh.esm.js";
|
|
6
6
|
import "./deepsightService-BaQxZ72c.esm.js";
|
|
7
7
|
import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-BgBQu3t4.esm.js";
|
|
8
|
-
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-
|
|
8
|
+
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-C5k61nTP.esm.js";
|
|
9
9
|
import "./stats-Df76BRkJ.esm.js";
|
|
10
10
|
|
|
11
11
|
//#region src/setup.ts
|