@incodetech/web 0.0.0-dev-20260623-261da85a → 0.0.0-dev-20260625-d0b37b1e

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.
@@ -400,6 +400,10 @@ var IncodeFlowContent = ({ config, onFinish, onError }) => {
400
400
  class: "IncodeFlow",
401
401
  children: /* @__PURE__ */ u(TerminalErrorPage, { message: flowState.error })
402
402
  });
403
+ if (flowState.status === "completing") return /* @__PURE__ */ u("div", {
404
+ class: "IncodeFlow",
405
+ children: /* @__PURE__ */ u(TransitionSpinner, {})
406
+ });
403
407
  if (flowState.status === "finished") return null;
404
408
  if (flowState?.status === "ready") {
405
409
  const { currentStep, config: flowConfig, flow } = flowState;
@@ -10,7 +10,7 @@ import { t as registerIncodeModuleElement } from "../incodeModule-M8DszCee.js";
10
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-BNE_xKwo.js";
11
11
  import { resolveWasmConfig, upgradeToWasmHttpClient, warmupWasm } from "@incodetech/core/wasm";
12
12
  import { getDeviceClass } from "@incodetech/core/device";
13
- import { classifyScoreStatus, getTotalScoreStatus } from "@incodetech/core/flow";
13
+ import { classifyScoreStatus } from "@incodetech/core/flow";
14
14
  import { bootstrapSession, refreshQrUrlUuid } from "@incodetech/core/session";
15
15
  import { createWorkflowManager } from "@incodetech/core/workflow";
16
16
  //#region src/modules/workflow/finishScreenStatusIcons.tsx
@@ -90,15 +90,9 @@ var VARIANT_CONTENT = {
90
90
  }
91
91
  };
92
92
  /** Status-specific workflow completion screen (success / error / review). */
93
- var FinishScreenBySessionStatus = ({ scoreStatus, isDesktop }) => {
93
+ var FinishScreenBySessionStatus = ({ scoreStatus }) => {
94
94
  const { t } = useTranslation();
95
- const [variant, setVariant] = d(() => classifyScoreStatus(scoreStatus));
96
- y(() => {
97
- if (!isDesktop) return;
98
- const controller = new AbortController();
99
- getTotalScoreStatus(controller.signal).then((total) => setVariant(classifyScoreStatus(total))).catch(() => {});
100
- return () => controller.abort();
101
- }, [isDesktop]);
95
+ const variant = classifyScoreStatus(scoreStatus);
102
96
  const content = VARIANT_CONTENT[variant];
103
97
  const { Icon } = content;
104
98
  return /* @__PURE__ */ u(Page, {
@@ -382,13 +376,14 @@ var IncodeWorkflowReady = ({ config, workflowManager: initialManager, onFinish,
382
376
  class: "IncodeWorkflow",
383
377
  children: /* @__PURE__ */ u(TerminalErrorPage, { message: workflowState.error })
384
378
  });
379
+ if (workflowState.status === "completing") return /* @__PURE__ */ u("div", {
380
+ class: "IncodeWorkflow",
381
+ children: /* @__PURE__ */ u(TransitionSpinner, {})
382
+ });
385
383
  if (workflowState.status === "finished") {
386
384
  if (showFinishScreen) return /* @__PURE__ */ u("div", {
387
385
  class: "IncodeWorkflow",
388
- children: /* @__PURE__ */ u(FinishScreenBySessionStatus, {
389
- scoreStatus: workflowState.finishStatus.scoreStatus,
390
- isDesktop: config.isDesktop
391
- })
386
+ children: /* @__PURE__ */ u(FinishScreenBySessionStatus, { scoreStatus: workflowState.scoreStatus })
392
387
  });
393
388
  return null;
394
389
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260623-261da85a",
3
+ "version": "0.0.0-dev-20260625-d0b37b1e",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
@@ -264,7 +264,7 @@
264
264
  "qrcode": "^1.5.4",
265
265
  "signature_pad": "^5.1.3",
266
266
  "tailwindcss": "^4.1.17",
267
- "@incodetech/core": "0.0.0-dev-20260623-261da85a"
267
+ "@incodetech/core": "0.0.0-dev-20260625-d0b37b1e"
268
268
  },
269
269
  "devDependencies": {
270
270
  "@microsoft/api-extractor": "^7.53.3",