@incodetech/web 0.0.0-dev-20260409-0e64d73 → 0.0.0-dev-20260414-56e3445

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.
@@ -6,7 +6,7 @@ import { t as c } from "../spinner-Bg7qBKjN.js";
6
6
  import "../spinner-QBqW9mDr.js";
7
7
  import { t as l } from "../incodeModule-C3p8eAh_.js";
8
8
  import { t as u } from "../redirectToMobile-D5bLaBcP.js";
9
- import { a as d, c as f, i as p, n as m, o as h, r as g, s as _, t as v, u as y } from "../useModuleLoader-CBGcrysg.js";
9
+ import { a as d, c as f, i as p, n as m, o as h, r as g, s as _, t as v, u as y } from "../useModuleLoader-C88o4x-e.js";
10
10
  import { getRequiredWasmPipelines as b } from "@incodetech/core/flow";
11
11
  //#region src/modules/flow/preloadFlow.ts
12
12
  var x = /* @__PURE__ */ new Map();
@@ -441,6 +441,15 @@ var D = ({ config: n, onFinish: a, onError: s }) => {
441
441
  }
442
442
  }, `antifraud-${x.currentStepIndex}`)
443
443
  });
444
+ if (e === "WATCHLIST") return /* @__PURE__ */ i("div", {
445
+ class: "IncodeFlow",
446
+ children: /* @__PURE__ */ i(f, {
447
+ onFinish: () => S.completeModule(),
448
+ onError: (e) => {
449
+ s?.(e ?? "Watchlist check error");
450
+ }
451
+ }, `watchlist-${x.currentStepIndex}`)
452
+ });
444
453
  if (e === "CROSS_DOCUMENT_DATA_MATCH") return /* @__PURE__ */ i("div", {
445
454
  class: "IncodeFlow",
446
455
  children: /* @__PURE__ */ i(f, {
@@ -458,6 +458,16 @@
458
458
  font-weight: var(--typography-button-m-underlined-weight);
459
459
  line-height: var(--typography-button-m-underlined-line-height);
460
460
  letter-spacing: var(--typography-button-m-underlined-letter-spacing);
461
+ font-family: var(--typography-button-family);
462
+ font-size: var(--typography-button-m-underlined-size);
463
+ font-weight: var(--typography-button-m-underlined-weight);
464
+ line-height: var(--typography-button-m-underlined-line-height);
465
+ letter-spacing: var(--typography-button-m-underlined-letter-spacing);
466
+ font-family: var(--typography-button-family);
467
+ font-size: var(--typography-button-m-underlined-size);
468
+ font-weight: var(--typography-button-m-underlined-weight);
469
+ line-height: var(--typography-button-m-underlined-line-height);
470
+ letter-spacing: var(--typography-button-m-underlined-letter-spacing);
461
471
  text-decoration-line: underline;
462
472
  text-decoration-style: solid;
463
473
  text-decoration-thickness: auto;
@@ -3999,6 +4009,96 @@
3999
4009
  }
4000
4010
  }
4001
4011
 
4012
+ @media (min-width: 40rem) {
4013
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4014
+ max-width: 40rem;
4015
+ }
4016
+ }
4017
+
4018
+ @media (min-width: 48rem) {
4019
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4020
+ max-width: 48rem;
4021
+ }
4022
+ }
4023
+
4024
+ @media (min-width: 64rem) {
4025
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4026
+ max-width: 64rem;
4027
+ }
4028
+ }
4029
+
4030
+ @media (min-width: 80rem) {
4031
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4032
+ max-width: 80rem;
4033
+ }
4034
+ }
4035
+
4036
+ @media (min-width: 96rem) {
4037
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4038
+ max-width: 96rem;
4039
+ }
4040
+ }
4041
+
4042
+ @media (min-width: 48rem) {
4043
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4044
+ max-height: var(--incode-page-max-h);
4045
+ max-width: var(--incode-page-max-w);
4046
+ }
4047
+
4048
+ @media not all and (min-width: 80rem) {
4049
+ @media (orientation: landscape) {
4050
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4051
+ max-height: var(--incode-page-max-h-landscape);
4052
+ }
4053
+ }
4054
+ }
4055
+ }
4056
+
4057
+ @media (min-width: 40rem) {
4058
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4059
+ max-width: 40rem;
4060
+ }
4061
+ }
4062
+
4063
+ @media (min-width: 48rem) {
4064
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4065
+ max-width: 48rem;
4066
+ }
4067
+ }
4068
+
4069
+ @media (min-width: 64rem) {
4070
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4071
+ max-width: 64rem;
4072
+ }
4073
+ }
4074
+
4075
+ @media (min-width: 80rem) {
4076
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4077
+ max-width: 80rem;
4078
+ }
4079
+ }
4080
+
4081
+ @media (min-width: 96rem) {
4082
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4083
+ max-width: 96rem;
4084
+ }
4085
+ }
4086
+
4087
+ @media (min-width: 48rem) {
4088
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4089
+ max-height: var(--incode-page-max-h);
4090
+ max-width: var(--incode-page-max-w);
4091
+ }
4092
+
4093
+ @media not all and (min-width: 80rem) {
4094
+ @media (orientation: landscape) {
4095
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4096
+ max-height: var(--incode-page-max-h-landscape);
4097
+ }
4098
+ }
4099
+ }
4100
+ }
4101
+
4002
4102
  .IncodeCommonIssuesFullScreen .IncodeModalContent {
4003
4103
  width: 100%;
4004
4104
  }
@@ -6575,6 +6675,31 @@
6575
6675
  display: flex;
6576
6676
  }
6577
6677
 
6678
+ .IncodeWatchlistStatusPage .IncodeWatchlistStatusContainer {
6679
+ flex-direction: column;
6680
+ flex: 1;
6681
+ align-items: center;
6682
+ display: flex;
6683
+ }
6684
+
6685
+ .IncodeWatchlistStatusPage .IncodeWatchlistStatusTitle {
6686
+ text-align: center;
6687
+ font-size: var(--text-2xl, 1.5rem);
6688
+ line-height: var(--tw-leading, var(--text-2xl--line-height, calc(2 / 1.5)));
6689
+ --tw-leading: 125%;
6690
+ --tw-font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
6691
+ line-height: 125%;
6692
+ font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
6693
+ --tw-tracking: -1px;
6694
+ letter-spacing: -1px;
6695
+ color: var(--color-text-body-primary, var(--text-body-800-primary));
6696
+ }
6697
+
6698
+ .IncodeWatchlistStatusPage .IncodeWatchlistStatusSubtitle {
6699
+ text-align: center;
6700
+ color: var(--color-text-body-secondary, var(--text-body-500-secondary));
6701
+ }
6702
+
6578
6703
  .IncodeVerificationResult .IncodePageContent {
6579
6704
  gap: var(--spacing-16, var(--spacing-16, 16px));
6580
6705
  padding-bottom: var(--spacing-16, var(--spacing-16, 16px));
@@ -0,0 +1,35 @@
1
+ import { FC } from 'preact/compat';
2
+ import { WatchlistConfig } from '@incodetech/core/watchlist';
3
+
4
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
5
+ /**
6
+ * Module configuration required to render the flow.
7
+ * For Web Components, this is typically assigned via `element.config = ...`.
8
+ */
9
+ config?: TConfig;
10
+ /**
11
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
12
+ */
13
+ manager?: TManager;
14
+ /**
15
+ * Callback invoked when the module completes successfully.
16
+ * @param result - Optional result data from the module completion
17
+ */
18
+ onFinish?: (result?: TResult) => void;
19
+ /**
20
+ * Callback invoked when a fatal module error occurs.
21
+ */
22
+ onError?: (error: string | undefined) => void;
23
+ };
24
+
25
+ export declare const Watchlist: FC<WatchlistProps>;
26
+
27
+ declare type WatchlistProps = IncodeModuleProps<WatchlistConfig>;
28
+
29
+ export { }
30
+
31
+ declare global {
32
+ interface HTMLElementTagNameMap {
33
+ 'incode-watchlist': HTMLElement & IncodeModuleProps<WatchlistConfig>;
34
+ }
35
+ }
@@ -134,6 +134,7 @@ function C(e) {
134
134
  if (e === "MANDATORY_CONSENT") return () => import("@incodetech/core/mandatory-consent").then((e) => e.mandatoryConsentMachine);
135
135
  if (e === "SIGNATURE") return () => import("@incodetech/core/signature").then((e) => e.signatureMachine);
136
136
  if (e === "ANTIFRAUD") return () => import("@incodetech/core/antifraud").then((e) => e.antifraudMachine);
137
+ if (e === "WATCHLIST") return () => import("@incodetech/core/watchlist").then((e) => e.watchlistMachine);
137
138
  }
138
139
  function w(e) {
139
140
  let t = {};
@@ -166,6 +167,7 @@ var T = {
166
167
  MANDATORY_CONSENT: () => import("./mandatoryConsent-2R7jBWsg.js").then((e) => e.MandatoryConsent),
167
168
  SIGNATURE: () => import("./signature/signature.es.js").then((e) => e.Signature),
168
169
  ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((e) => e.Antifraud),
170
+ WATCHLIST: () => import("./watchlist/watchlist.es.js").then((e) => e.Watchlist),
169
171
  CROSS_DOCUMENT_DATA_MATCH: () => import("./cross-document-data-match/cross-document-data-match.es.js").then((e) => e.CrossDocumentDataMatch)
170
172
  };
171
173
  function E() {
@@ -0,0 +1,50 @@
1
+ /*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
2
+ @layer properties {
3
+ @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
4
+ *, :before, :after, ::backdrop {
5
+ --tw-leading: initial;
6
+ --tw-font-weight: initial;
7
+ --tw-tracking: initial;
8
+ }
9
+ }
10
+ }
11
+
12
+ .IncodeWatchlistStatusPage .IncodeWatchlistStatusContainer {
13
+ flex-direction: column;
14
+ flex: 1;
15
+ align-items: center;
16
+ display: flex;
17
+ }
18
+
19
+ .IncodeWatchlistStatusPage .IncodeWatchlistStatusTitle {
20
+ text-align: center;
21
+ font-size: var(--text-2xl, 1.5rem);
22
+ line-height: var(--tw-leading, var(--text-2xl--line-height, calc(2 / 1.5)));
23
+ --tw-leading: 125%;
24
+ --tw-font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
25
+ line-height: 125%;
26
+ font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
27
+ --tw-tracking: -1px;
28
+ letter-spacing: -1px;
29
+ color: var(--color-text-body-primary, var(--text-body-800-primary));
30
+ }
31
+
32
+ .IncodeWatchlistStatusPage .IncodeWatchlistStatusSubtitle {
33
+ text-align: center;
34
+ color: var(--color-text-body-secondary, var(--text-body-500-secondary));
35
+ }
36
+
37
+ @property --tw-leading {
38
+ syntax: "*";
39
+ inherits: false
40
+ }
41
+
42
+ @property --tw-font-weight {
43
+ syntax: "*";
44
+ inherits: false
45
+ }
46
+
47
+ @property --tw-tracking {
48
+ syntax: "*";
49
+ inherits: false
50
+ }
@@ -0,0 +1,54 @@
1
+ import { n as e } from "../i18n-DGG1zc7t.js";
2
+ import { _ as t, l as n, v as r } from "../vendor-preact-D6SntenC.js";
3
+ import { c as i, r as a, t as o } from "../loadingIcon-B3xEpDvA.js";
4
+ import { t as s } from "../spacer-DCljE53A.js";
5
+ import { t as c } from "../page-kB-LDkaO.js";
6
+ import { t as l } from "../typography-zTCXRf-k.js";
7
+ import "../typography-CwxsnrN2.js";
8
+ import { t as u } from "../successIcon-Dklx5JWI.js";
9
+ import { t as d } from "../incodeModule-C3p8eAh_.js";
10
+ import { createWatchlistManager as f } from "@incodetech/core/watchlist";
11
+ //#region src/modules/watchlist/watchlistStatusPage.tsx
12
+ var p = ({ variant: e, icon: t, title: n, subtitle: i, titleRef: a }) => /* @__PURE__ */ r(c, {
13
+ className: `IncodeWatchlistStatusPage IncodeWatchlistStatusPage--${e}`,
14
+ children: [/* @__PURE__ */ r(s, { size: 40 }), /* @__PURE__ */ r("div", {
15
+ class: "IncodeWatchlistStatusContainer",
16
+ children: [
17
+ /* @__PURE__ */ r(s, { size: 120 }),
18
+ t,
19
+ /* @__PURE__ */ r(s, { size: 16 }),
20
+ /* @__PURE__ */ r(l, {
21
+ ref: a,
22
+ className: "IncodeWatchlistStatusTitle",
23
+ tabIndex: a ? -1 : void 0,
24
+ children: n
25
+ }),
26
+ i && /* @__PURE__ */ r("p", {
27
+ class: "IncodeWatchlistStatusSubtitle",
28
+ children: i
29
+ })
30
+ ]
31
+ })]
32
+ }), m = ({ onFinish: a }) => {
33
+ let { t: s } = e(), [c, l] = i(() => f()), d = n(null);
34
+ return t(() => {
35
+ l.load();
36
+ }, [l]), t(() => {
37
+ c.status === "finished" && a?.();
38
+ }, [c.status, a]), t(() => {
39
+ c.status === "success" && d.current?.focus();
40
+ }, [c.status]), c.status === "success" ? /* @__PURE__ */ r(p, {
41
+ variant: "success",
42
+ icon: /* @__PURE__ */ r(u, { size: 64 }),
43
+ title: s("watchList.complete"),
44
+ titleRef: d
45
+ }) : /* @__PURE__ */ r(p, {
46
+ variant: "loading",
47
+ icon: /* @__PURE__ */ r(o, { size: 64 }),
48
+ title: s("watchList.processing"),
49
+ subtitle: s("watchList.thisMigthTake")
50
+ });
51
+ }, h = ({ onFinish: e }) => /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(m, { onFinish: e }) });
52
+ d(h, "incode-watchlist");
53
+ //#endregion
54
+ export { h as Watchlist };
@@ -5,7 +5,7 @@ import { c as o, r as s } from "../loadingIcon-B3xEpDvA.js";
5
5
  import { t as c } from "../spinner-Bg7qBKjN.js";
6
6
  import "../spinner-QBqW9mDr.js";
7
7
  import { t as l } from "../incodeModule-C3p8eAh_.js";
8
- import { d as u, i as d, l as f, r as p, t as m } from "../useModuleLoader-CBGcrysg.js";
8
+ import { d as u, i as d, l as f, r as p, t as m } from "../useModuleLoader-C88o4x-e.js";
9
9
  import { resolveWasmConfig as h, warmupWasm as g } from "@incodetech/core/wasm";
10
10
  import { createWorkflowManager as _ } from "@incodetech/core/workflow";
11
11
  //#region src/modules/workflow/workflowInit.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260409-0e64d73",
3
+ "version": "0.0.0-dev-20260414-56e3445",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -162,7 +162,7 @@
162
162
  "qrcode": "^1.5.4",
163
163
  "signature_pad": "^5.1.3",
164
164
  "tailwindcss": "^4.1.17",
165
- "@incodetech/core": "0.0.0-dev-20260409-0e64d73"
165
+ "@incodetech/core": "0.0.0-dev-20260414-56e3445"
166
166
  },
167
167
  "devDependencies": {
168
168
  "@microsoft/api-extractor": "^7.53.3",