@incodetech/web 0.0.0-dev-20260817-6f67bc98 → 0.0.0-dev-20260817-941e76d2
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/flow/flow.es.js
CHANGED
|
@@ -3,7 +3,7 @@ import { _ as y, c as z, d as T, l as A, o as P, p as d, v as u } from "../vendo
|
|
|
3
3
|
import { X as StatusPage, dt as TransitionSpinner, ot as ResolvedConfigProvider, st as TerminalErrorPage, tt as IncodeComponent, yt as useManager } from "../extensibility-DxtVAkbe.js";
|
|
4
4
|
import { O as ErrorIcon } from "../dropdownComposed-CH8FoLKA.js";
|
|
5
5
|
import { t as registerIncodeModuleElement } from "../incodeModule-CPafHixS.js";
|
|
6
|
-
import { _ as warmupWasmIfNeeded, a as resolveApiKey, c as HEADLESS_FLOW_MODULE_KEYS, d as fetchTheme, f as initializeFlowManager, h as preloadRedirectToMobile, l as LAZY_UI_MODULES, m as preloadHomeScreen, n as useModulePreloader, o as extractIncodeStatus, p as preloadFirstModule, r as usePrefetchNextModule, s as UnsupportedModule, t as useModuleLoader, u as createFlowManager, v as isDesktopOrEmulated } from "../useModuleLoader-
|
|
6
|
+
import { _ as warmupWasmIfNeeded, a as resolveApiKey, c as HEADLESS_FLOW_MODULE_KEYS, d as fetchTheme, f as initializeFlowManager, h as preloadRedirectToMobile, l as LAZY_UI_MODULES, m as preloadHomeScreen, n as useModulePreloader, o as extractIncodeStatus, p as preloadFirstModule, r as usePrefetchNextModule, s as UnsupportedModule, t as useModuleLoader, u as createFlowManager, v as isDesktopOrEmulated } from "../useModuleLoader-4l2qJOh_.js";
|
|
7
7
|
import { getRequiredWasmPipelines } from "@incodetech/core/flow";
|
|
8
8
|
import { bootstrapSession, refreshQrUrlUuid } from "@incodetech/core/session";
|
|
9
9
|
//#region src/shared/processing/useDelayedFlag.ts
|
|
@@ -3,7 +3,7 @@ import { _ as y, l as A, p as d, v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
|
3
3
|
import { a as getStandaloneSetupPolicy, n as preloadDashboardTheme } from "./dashboardTheme-ByBaYn9F.js";
|
|
4
4
|
import "./extensibility-DxtVAkbe.js";
|
|
5
5
|
import { k as Button } from "./dropdownComposed-CH8FoLKA.js";
|
|
6
|
-
import { initializeWasmUtil,
|
|
6
|
+
import { initializeWasmUtil, resolveWasmConfigForPipelines, setWasmConfig, upgradeToWasmHttpClient, warmupWasm } from "@incodetech/core/wasm";
|
|
7
7
|
import { isDesktopOrEmulated } from "@incodetech/core/device";
|
|
8
8
|
import { createOrchestratedFlowManager, getFlow, getRequiredWasmPipelines } from "@incodetech/core/flow";
|
|
9
9
|
import { getFinishStatus, initializeSession } from "@incodetech/core/session";
|
|
@@ -205,10 +205,7 @@ function warmupWasmIfNeeded(managerState, wasmConfig) {
|
|
|
205
205
|
if (managerState.currentStep === "REDIRECT_TO_MOBILE") return;
|
|
206
206
|
const requiredPipelines = getRequiredWasmPipelines(managerState.flow);
|
|
207
207
|
if (requiredPipelines.length > 0) {
|
|
208
|
-
const resolved =
|
|
209
|
-
...wasmConfig ?? {},
|
|
210
|
-
pipelines: requiredPipelines
|
|
211
|
-
});
|
|
208
|
+
const resolved = resolveWasmConfigForPipelines(requiredPipelines, wasmConfig);
|
|
212
209
|
const configToStore = {
|
|
213
210
|
...resolved,
|
|
214
211
|
pipelines: resolved.pipelines ? [...resolved.pipelines] : void 0
|
|
@@ -3,8 +3,8 @@ import { _ as y, c as z, l as A, o as P, p as d, v as u } from "../vendor-preact
|
|
|
3
3
|
import { i as fetchAndApplyTheme } from "../dashboardTheme-ByBaYn9F.js";
|
|
4
4
|
import { ct as Page, dt as TransitionSpinner, ot as ResolvedConfigProvider, rt as AutoFocusTitle, st as TerminalErrorPage, tt as IncodeComponent, yt as useManager } from "../extensibility-DxtVAkbe.js";
|
|
5
5
|
import { t as registerIncodeModuleElement } from "../incodeModule-CPafHixS.js";
|
|
6
|
-
import { a as resolveApiKey, g as setupSDK, i as HEADLESS_WORKFLOW_MODULE_KEYS, l as LAZY_UI_MODULES, o as extractIncodeStatus, s as UnsupportedModule, t as useModuleLoader, v as isDesktopOrEmulated } from "../useModuleLoader-
|
|
7
|
-
import {
|
|
6
|
+
import { a as resolveApiKey, g as setupSDK, i as HEADLESS_WORKFLOW_MODULE_KEYS, l as LAZY_UI_MODULES, o as extractIncodeStatus, s as UnsupportedModule, t as useModuleLoader, v as isDesktopOrEmulated } from "../useModuleLoader-4l2qJOh_.js";
|
|
7
|
+
import { resolveWasmConfigForPipelines, upgradeToWasmHttpClient, warmupWasm } from "@incodetech/core/wasm";
|
|
8
8
|
import { classifyScoreStatus } from "@incodetech/core/flow";
|
|
9
9
|
import { bootstrapSession, refreshQrUrlUuid } from "@incodetech/core/session";
|
|
10
10
|
import { createWorkflowManager } from "@incodetech/core/workflow";
|
|
@@ -155,15 +155,12 @@ function createWorkflowUIManager(options = {}) {
|
|
|
155
155
|
}
|
|
156
156
|
function warmupWorkflowWasm(wasmConfig) {
|
|
157
157
|
if (wasmConfig === false) return;
|
|
158
|
-
const resolved =
|
|
159
|
-
...wasmConfig,
|
|
160
|
-
pipelines: wasmConfig?.pipelines ?? ["selfie", "idCapture"]
|
|
161
|
-
});
|
|
158
|
+
const resolved = resolveWasmConfigForPipelines(wasmConfig?.pipelines ?? ["selfie", "idCapture"], wasmConfig);
|
|
162
159
|
const upgradeConfig = {
|
|
163
160
|
...resolved,
|
|
164
161
|
pipelines: resolved.pipelines ? [...resolved.pipelines] : void 0
|
|
165
162
|
};
|
|
166
|
-
warmupWasm(resolved).then(() => upgradeToWasmHttpClient(upgradeConfig)).catch((error) => {
|
|
163
|
+
return warmupWasm(resolved).then(() => upgradeToWasmHttpClient(upgradeConfig)).catch((error) => {
|
|
167
164
|
console.error("Workflow WASM warmup failed:", error);
|
|
168
165
|
});
|
|
169
166
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260817-
|
|
3
|
+
"version": "0.0.0-dev-20260817-941e76d2",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
"qrcode": "^1.5.4",
|
|
293
293
|
"signature_pad": "^5.1.3",
|
|
294
294
|
"tailwindcss": "^4.1.17",
|
|
295
|
-
"@incodetech/core": "0.0.0-dev-20260817-
|
|
295
|
+
"@incodetech/core": "0.0.0-dev-20260817-941e76d2"
|
|
296
296
|
},
|
|
297
297
|
"devDependencies": {
|
|
298
298
|
"@microsoft/api-extractor": "^7.53.3",
|