@incodetech/web 0.0.0-dev-20260714-84eb7a5b → 0.0.0-dev-20260714-324b5b5f

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.
@@ -5,8 +5,7 @@ import { u as useManager } from "../hooks-CNu7o-v8.js";
5
5
  import { t as IncodeComponent } from "../incodeComponent-CfzJGETt.js";
6
6
  import { t as TransitionSpinner } from "../transitionSpinner-CuNCqHNi.js";
7
7
  import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
8
- 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, y as TerminalErrorPage } from "../useModuleLoader-DtWjpKDk.js";
9
- import { getDeviceClass } from "@incodetech/core/device";
8
+ import { _ as warmupWasmIfNeeded, a as resolveApiKey, b as TerminalErrorPage, 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, y as isDesktopOrEmulated } from "../useModuleLoader-BBAMPkPg.js";
10
9
  import { getRequiredWasmPipelines } from "@incodetech/core/flow";
11
10
  import { bootstrapSession, refreshQrUrlUuid } from "@incodetech/core/session";
12
11
  //#region src/shared/processing/useDelayedFlag.ts
@@ -160,7 +159,7 @@ function maybePreloadHomeScreen(flowManager) {
160
159
  if (flowManager.getState().presentation.shouldPrefetchHome) preloadHomeScreen();
161
160
  }
162
161
  function maybePreloadRedirectToMobile() {
163
- if (getDeviceClass() === "desktop") preloadRedirectToMobile();
162
+ if (isDesktopOrEmulated()) preloadRedirectToMobile();
164
163
  }
165
164
  function useFlowInitialization(options) {
166
165
  const { lang, disableDashboardTheme, enableHome, onError, useCPF } = options;
@@ -5,7 +5,7 @@ import { t as Page } from "./page-DidH_RkX.js";
5
5
  import { t as Button } from "./button-Dz6AsbmF.js";
6
6
  import { t as ErrorIcon } from "./errorIcon-BA4T6iy-.js";
7
7
  import { initializeWasmUtil, resolveWasmConfig, setWasmConfig, upgradeToWasmHttpClient, warmupWasm } from "@incodetech/core/wasm";
8
- import { getDeviceClass } from "@incodetech/core/device";
8
+ import { isDesktopOrEmulated } from "@incodetech/core/device";
9
9
  import { createOrchestratedFlowManager, getFlow, getRequiredWasmPipelines } from "@incodetech/core/flow";
10
10
  import { getFinishStatus, initializeSession } from "@incodetech/core/session";
11
11
  import { api } from "@incodetech/core/http";
@@ -74,6 +74,11 @@ var TerminalErrorPage = ({ message, onRetry }) => {
74
74
  });
75
75
  };
76
76
  //#endregion
77
+ //#region src/shared/device/redirectDeviceClassification.ts
78
+ function isDesktopOrEmulated$1() {
79
+ return isDesktopOrEmulated();
80
+ }
81
+ //#endregion
77
82
  //#region src/styles/generatePalette.ts
78
83
  function hexToHsl(hex) {
79
84
  let normalizedHex = hex.replace("#", "");
@@ -349,7 +354,7 @@ function preloadRedirectToMobile() {
349
354
  }
350
355
  function createFlowManager(options = {}) {
351
356
  const scopedLazyModules = {};
352
- const isDesktop = options.isDesktop ?? getDeviceClass() === "desktop";
357
+ const isDesktop = options.isDesktop ?? isDesktopOrEmulated$1();
353
358
  const { enableHome, ...flowFetchOptions } = options;
354
359
  let endScreen = {
355
360
  endScreenTitle: null,
@@ -673,4 +678,4 @@ function usePrefetchNextModule(steps, currentStepIndex, modules, currentModuleLo
673
678
  ]);
674
679
  }
675
680
  //#endregion
676
- export { warmupWasmIfNeeded as _, resolveApiKey as a, HEADLESS_FLOW_MODULE_KEYS as c, fetchTheme as d, initializeFlowManager as f, setupSDK as g, preloadRedirectToMobile as h, HEADLESS_WORKFLOW_MODULE_KEYS as i, LAZY_UI_MODULES as l, preloadHomeScreen as m, useModulePreloader as n, extractIncodeStatus as o, preloadFirstModule as p, usePrefetchNextModule as r, UnsupportedModule as s, useModuleLoader as t, createFlowManager as u, fetchAndApplyTheme as v, TerminalErrorPage as y };
681
+ export { warmupWasmIfNeeded as _, resolveApiKey as a, TerminalErrorPage as b, HEADLESS_FLOW_MODULE_KEYS as c, fetchTheme as d, initializeFlowManager as f, setupSDK as g, preloadRedirectToMobile as h, HEADLESS_WORKFLOW_MODULE_KEYS as i, LAZY_UI_MODULES as l, preloadHomeScreen as m, useModulePreloader as n, extractIncodeStatus as o, preloadFirstModule as p, usePrefetchNextModule as r, UnsupportedModule as s, useModuleLoader as t, createFlowManager as u, fetchAndApplyTheme as v, isDesktopOrEmulated$1 as y };
@@ -7,9 +7,8 @@ import { t as Page } from "../page-DidH_RkX.js";
7
7
  import { t as TransitionSpinner } from "../transitionSpinner-CuNCqHNi.js";
8
8
  import { t as AutoFocusTitle } from "../autoFocusTitle-uXtAKBTO.js";
9
9
  import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
10
- 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 fetchAndApplyTheme, y as TerminalErrorPage } from "../useModuleLoader-DtWjpKDk.js";
10
+ import { a as resolveApiKey, b as TerminalErrorPage, 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 fetchAndApplyTheme, y as isDesktopOrEmulated } from "../useModuleLoader-BBAMPkPg.js";
11
11
  import { resolveWasmConfig, upgradeToWasmHttpClient, warmupWasm } from "@incodetech/core/wasm";
12
- import { getDeviceClass } from "@incodetech/core/device";
13
12
  import { classifyScoreStatus } from "@incodetech/core/flow";
14
13
  import { bootstrapSession, refreshQrUrlUuid } from "@incodetech/core/session";
15
14
  import { createWorkflowManager } from "@incodetech/core/workflow";
@@ -149,7 +148,7 @@ function createWorkflowUIManager(options = {}) {
149
148
  return createWorkflowManager({
150
149
  customModuleCallback: options.customModuleCallback,
151
150
  interviewId: options.interviewId,
152
- isDesktop: options.isDesktop ?? getDeviceClass() === "desktop"
151
+ isDesktop: options.isDesktop ?? isDesktopOrEmulated()
153
152
  });
154
153
  }
155
154
  function warmupWorkflowWasm(wasmConfig) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260714-84eb7a5b",
3
+ "version": "0.0.0-dev-20260714-324b5b5f",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
@@ -291,7 +291,7 @@
291
291
  "qrcode": "^1.5.4",
292
292
  "signature_pad": "^5.1.3",
293
293
  "tailwindcss": "^4.1.17",
294
- "@incodetech/core": "0.0.0-dev-20260714-84eb7a5b"
294
+ "@incodetech/core": "0.0.0-dev-20260714-324b5b5f"
295
295
  },
296
296
  "devDependencies": {
297
297
  "@microsoft/api-extractor": "^7.53.3",