@incodetech/web 0.0.0-dev-20260819-1f18df1b → 0.0.0-dev-20260820-6f816e8f

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.
@@ -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-46IdDitW.js";
4
4
  import { O as ErrorIcon } from "../dropdownComposed-BXvfDIml.js";
5
5
  import { t as registerIncodeModuleElement } from "../incodeModule-DM_YoMkO.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-DWVDSshx.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-C9Sz8duH.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
@@ -95,7 +95,7 @@ var LAZY_UI_MODULES = {
95
95
  ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((m) => m.Antifraud),
96
96
  CUSTOM_FIELDS: () => import("./customFields-48qv7gi3.js").then((m) => m.CustomFields),
97
97
  WATCHLIST: () => import("./watchlist/watchlist.es.js").then((m) => m.Watchlist),
98
- WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-BcFt4JCt.js").then((m) => m.WatchlistForBusiness),
98
+ WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-D2CEzLc3.js").then((m) => m.WatchlistForBusiness),
99
99
  INCODE_WATCHLIST: () => import("./customWatchlist-sQQR4l1B.js").then((m) => m.CustomWatchlist),
100
100
  AE_SIGNATURE: () => import("./ae-signature/ae-signature.es.js").then((m) => m.AeSignature),
101
101
  QE_SIGNATURE: () => import("./qe-signature/qe-signature.es.js").then((m) => m.QeSignature),
@@ -7,9 +7,9 @@ import { t as registerIncodeModuleElement } from "./incodeModule-DM_YoMkO.js";
7
7
  import { t as CountrySelector } from "./countrySelector-Dvsb0mzZ.js";
8
8
  import { createWatchlistForBusinessManager } from "@incodetech/core/watchlist-for-business";
9
9
  //#region src/modules/watchlist-for-business/watchlistForBusiness.tsx
10
- var WatchlistForBusinessContent = ({ onFinish }) => {
10
+ var WatchlistForBusinessContent = ({ manager: externalManager, onFinish }) => {
11
11
  const { t } = useTranslation();
12
- const [state, manager] = useManager(() => createWatchlistForBusinessManager());
12
+ const [state, manager] = useManager(() => externalManager ?? createWatchlistForBusinessManager(), { manageLifecycle: !externalManager });
13
13
  y(() => {
14
14
  manager.load();
15
15
  }, [manager]);
@@ -31,17 +31,20 @@ var WatchlistForBusinessContent = ({ onFinish }) => {
31
31
  });
32
32
  if (state.status === "form" || state.status === "idle") {
33
33
  const formState = state.status === "form" ? state : null;
34
+ const businessNameError = formState?.validationErrors?.businessName;
34
35
  return /* @__PURE__ */ u(Page, {
35
36
  className: "IncodeWatchlistForBusinessPage",
36
37
  title: t("watchlistForBusiness.title"),
37
38
  hideFooterBranding: true,
39
+ "data-testid": "watchlist-for-business-page",
38
40
  children: /* @__PURE__ */ u("form", {
39
41
  class: "IncodeWatchlistForBusinessForm",
42
+ "data-testid": "watchlist-for-business-form",
43
+ noValidate: true,
40
44
  onSubmit: (e) => {
41
45
  e.preventDefault();
42
46
  manager.submit();
43
47
  },
44
- autoComplete: "off",
45
48
  children: [
46
49
  /* @__PURE__ */ u(CountrySelector, {
47
50
  id: "watchlist-for-business-country",
@@ -54,12 +57,17 @@ var WatchlistForBusinessContent = ({ onFinish }) => {
54
57
  id: "businessName",
55
58
  name: "businessName",
56
59
  label: t("watchlistForBusiness.businessName"),
60
+ "data-testid": "watchlist-for-business-name",
61
+ autoComplete: "organization",
62
+ required: true,
63
+ error: businessNameError ? t(businessNameError) : void 0,
64
+ showErrorIcon: !!businessNameError,
57
65
  value: formState?.businessName ?? "",
58
66
  onInput: (e) => manager.setBusinessName(e.target.value)
59
67
  }),
60
68
  /* @__PURE__ */ u(Button, {
61
69
  type: "submit",
62
- disabled: !formState?.isValid,
70
+ disabled: formState ? !formState.canSubmit : false,
63
71
  "data-testid": "watchlist-for-business-submit",
64
72
  children: t("watchlistForBusiness.continue")
65
73
  })
@@ -69,8 +77,11 @@ var WatchlistForBusinessContent = ({ onFinish }) => {
69
77
  }
70
78
  return null;
71
79
  };
72
- var WatchlistForBusinessWithLocalConfig = ({ onFinish }) => /* @__PURE__ */ u(IncodeComponent, { children: /* @__PURE__ */ u(WatchlistForBusinessContent, { onFinish }) });
73
- var WatchlistForBusiness = withStandaloneModuleBootstrap(WatchlistForBusinessWithLocalConfig, "WATCHLIST_BUSINESS");
80
+ var WatchlistForBusinessWithLocalConfig = ({ manager, onFinish }) => /* @__PURE__ */ u(IncodeComponent, { children: /* @__PURE__ */ u(WatchlistForBusinessContent, {
81
+ manager,
82
+ onFinish
83
+ }) });
84
+ var WatchlistForBusiness = withStandaloneModuleBootstrap(WatchlistForBusinessWithLocalConfig, "WATCHLIST_BUSINESS", { supportsExternalManager: true });
74
85
  registerIncodeModuleElement(WatchlistForBusiness, "incode-watchlist-for-business");
75
86
  //#endregion
76
87
  export { WatchlistForBusiness };
@@ -3,7 +3,7 @@ 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-DWTEq66U.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-46IdDitW.js";
5
5
  import { t as registerIncodeModuleElement } from "../incodeModule-DM_YoMkO.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-DWVDSshx.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-C9Sz8duH.js";
7
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260819-1f18df1b",
3
+ "version": "0.0.0-dev-20260820-6f816e8f",
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-20260819-1f18df1b"
295
+ "@incodetech/core": "0.0.0-dev-20260820-6f816e8f"
296
296
  },
297
297
  "devDependencies": {
298
298
  "@microsoft/api-extractor": "^7.53.3",