@incodetech/web 0.0.0-dev-20260407-4ad99b2 → 0.0.0-dev-20260407-690b1a8
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.
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
|
|
2
|
+
import { c as n, r } from "../loadingIcon-Bpl85Irq.js";
|
|
3
|
+
import { t as i } from "../spinner-myFOTQZH.js";
|
|
4
|
+
import { t as a } from "../incodeModule-Bf6yJ8RB.js";
|
|
5
|
+
import { createCrossDocumentDataMatchManager as o } from "@incodetech/core/cross-document-data-match";
|
|
6
|
+
//#region src/modules/cross-document-data-match/cross-document-data-match.tsx
|
|
7
|
+
var s = ({ onFinish: r }) => {
|
|
8
|
+
let [a, s] = n(() => o());
|
|
9
|
+
return e(() => {
|
|
10
|
+
s.load();
|
|
11
|
+
}, [s]), e(() => {
|
|
12
|
+
a.status === "finished" && r?.();
|
|
13
|
+
}, [a.status, r]), /* @__PURE__ */ t(i, { fullScreen: !0 });
|
|
14
|
+
}, c = ({ onFinish: e }) => /* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(s, { onFinish: e }) });
|
|
15
|
+
a(c, "incode-cross-document-data-match");
|
|
16
|
+
//#endregion
|
|
17
|
+
export { c as CrossDocumentDataMatch };
|
package/dist/flow/flow.es.js
CHANGED
|
@@ -1696,7 +1696,8 @@ var H = () => import("../id/id.es.js").then((e) => e.Id), Ge = {
|
|
|
1696
1696
|
COMBINED_CONSENT: () => import("../consent/consent.es.js").then((e) => e.Consent),
|
|
1697
1697
|
MANDATORY_CONSENT: () => import("../mandatoryConsent-B99XyHyX.js").then((e) => e.MandatoryConsent),
|
|
1698
1698
|
SIGNATURE: () => import("../signature/signature.es.js").then((e) => e.Signature),
|
|
1699
|
-
ANTIFRAUD: () => import("../antifraud/antifraud.es.js").then((e) => e.Antifraud)
|
|
1699
|
+
ANTIFRAUD: () => import("../antifraud/antifraud.es.js").then((e) => e.Antifraud),
|
|
1700
|
+
CROSS_DOCUMENT_DATA_MATCH: () => import("../cross-document-data-match/cross-document-data-match.es.js").then((e) => e.CrossDocumentDataMatch)
|
|
1700
1701
|
};
|
|
1701
1702
|
function W() {
|
|
1702
1703
|
return re({ lazyModules: Ge });
|
|
@@ -2271,6 +2272,24 @@ var Ze = ({ config: e, onFinish: n, onError: r }) => {
|
|
|
2271
2272
|
}
|
|
2272
2273
|
}, `mandatory-consent-${f.currentStepIndex}`)
|
|
2273
2274
|
});
|
|
2275
|
+
if (t === "ANTIFRAUD") return /* @__PURE__ */ d("div", {
|
|
2276
|
+
class: "IncodeFlow",
|
|
2277
|
+
children: /* @__PURE__ */ d(u, {
|
|
2278
|
+
onFinish: () => p.completeModule(),
|
|
2279
|
+
onError: (e) => {
|
|
2280
|
+
r?.(e ?? "Antifraud check error");
|
|
2281
|
+
}
|
|
2282
|
+
}, `antifraud-${f.currentStepIndex}`)
|
|
2283
|
+
});
|
|
2284
|
+
if (t === "CROSS_DOCUMENT_DATA_MATCH") return /* @__PURE__ */ d("div", {
|
|
2285
|
+
class: "IncodeFlow",
|
|
2286
|
+
children: /* @__PURE__ */ d(u, {
|
|
2287
|
+
onFinish: () => p.completeModule(),
|
|
2288
|
+
onError: (e) => {
|
|
2289
|
+
r?.(e ?? "Cross document data match error");
|
|
2290
|
+
}
|
|
2291
|
+
}, `cross-document-data-match-${f.currentStepIndex}`)
|
|
2292
|
+
});
|
|
2274
2293
|
}
|
|
2275
2294
|
return null;
|
|
2276
2295
|
}, $ = ({ config: e, onFinish: t = () => {}, onError: n }) => /* @__PURE__ */ d(_, { children: e ? /* @__PURE__ */ d(Ze, {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CrossDocumentDataMatchConfig } from '@incodetech/core/cross-document-data-match';
|
|
2
|
+
import { FC } from 'preact/compat';
|
|
3
|
+
|
|
4
|
+
export declare const CrossDocumentDataMatch: FC<CrossDocumentDataMatchProps>;
|
|
5
|
+
|
|
6
|
+
declare type CrossDocumentDataMatchProps = IncodeModuleProps<CrossDocumentDataMatchConfig>;
|
|
7
|
+
|
|
8
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
9
|
+
/**
|
|
10
|
+
* Module configuration required to render the flow.
|
|
11
|
+
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
12
|
+
*/
|
|
13
|
+
config?: TConfig;
|
|
14
|
+
/**
|
|
15
|
+
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
16
|
+
*/
|
|
17
|
+
manager?: TManager;
|
|
18
|
+
/**
|
|
19
|
+
* Callback invoked when the module completes successfully.
|
|
20
|
+
* @param result - Optional result data from the module completion
|
|
21
|
+
*/
|
|
22
|
+
onFinish?: (result?: TResult) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Callback invoked when a fatal module error occurs.
|
|
25
|
+
*/
|
|
26
|
+
onError?: (error: string | undefined) => void;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260407-
|
|
3
|
+
"version": "0.0.0-dev-20260407-690b1a8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -126,6 +126,10 @@
|
|
|
126
126
|
},
|
|
127
127
|
"./antifraud/styles.css": {
|
|
128
128
|
"default": "./dist/antifraud/styles.css"
|
|
129
|
+
},
|
|
130
|
+
"./cross-document-data-match": {
|
|
131
|
+
"types": "./dist/types/cross-document-data-match.d.ts",
|
|
132
|
+
"import": "./dist/cross-document-data-match/cross-document-data-match.es.js"
|
|
129
133
|
}
|
|
130
134
|
},
|
|
131
135
|
"files": [
|
|
@@ -144,7 +148,7 @@
|
|
|
144
148
|
"qrcode": "^1.5.4",
|
|
145
149
|
"signature_pad": "^5.1.3",
|
|
146
150
|
"tailwindcss": "^4.1.17",
|
|
147
|
-
"@incodetech/core": "0.0.0-dev-20260407-
|
|
151
|
+
"@incodetech/core": "0.0.0-dev-20260407-690b1a8"
|
|
148
152
|
},
|
|
149
153
|
"devDependencies": {
|
|
150
154
|
"@microsoft/api-extractor": "^7.53.3",
|