@incodetech/web 0.0.0-dev-20260224-1accab3 → 0.0.0-dev-20260224-fd86d93
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.
- package/dist/flow/flow.es.js +14 -16
- package/dist/types/authentication.d.ts +2 -2
- package/package.json +2 -2
package/dist/flow/flow.es.js
CHANGED
|
@@ -15,7 +15,7 @@ import { authenticationMachine as q } from "@incodetech/core/authentication";
|
|
|
15
15
|
import { curpValidationMachine as Y } from "@incodetech/core/curp-validation";
|
|
16
16
|
import { governmentValidationMachine as Z } from "@incodetech/core/government-validation";
|
|
17
17
|
import { s as J } from "../setup-BhetRn4n.js";
|
|
18
|
-
import { s as
|
|
18
|
+
import { s as v } from "../uiConfig-DEqynrWx.js";
|
|
19
19
|
function Q(e) {
|
|
20
20
|
let t = e.replace("#", "");
|
|
21
21
|
t.length === 3 && (t = t.split("").map((s) => s + s).join(""));
|
|
@@ -132,15 +132,15 @@ async function oe() {
|
|
|
132
132
|
const e = await re();
|
|
133
133
|
return e.main && ee(e.main, e.buttonColor), e;
|
|
134
134
|
}
|
|
135
|
-
const
|
|
135
|
+
const T = () => import("../id/id.es.js").then((e) => e.Id), S = {
|
|
136
136
|
PHONE: () => import("../phone/phone.es.js").then((e) => e.Phone),
|
|
137
137
|
EMAIL: () => import("../email/email.es.js").then((e) => e.Email),
|
|
138
138
|
SELFIE: () => import("../selfie/selfie.es.js").then((e) => e.Selfie),
|
|
139
139
|
AUTHENTICATION: () => import("../authentication/authentication.es.js").then((e) => e.Authentication),
|
|
140
|
-
ID:
|
|
141
|
-
TUTORIAL_ID:
|
|
142
|
-
SECOND_ID:
|
|
143
|
-
THIRD_ID:
|
|
140
|
+
ID: T,
|
|
141
|
+
TUTORIAL_ID: T,
|
|
142
|
+
SECOND_ID: T,
|
|
143
|
+
THIRD_ID: T,
|
|
144
144
|
FACE_MATCH: () => import("../faceMatch-iEplxPox.js").then((e) => e.FaceMatch),
|
|
145
145
|
CURP_VALIDATION: () => import("../curp-validation/curp-validation.es.js").then((e) => e.CurpValidation),
|
|
146
146
|
GOVT_VALIDATION_PROVISIONING: () => import("../governmentValidation/governmentValidation.es.js").then(
|
|
@@ -179,7 +179,7 @@ async function P() {
|
|
|
179
179
|
logoSrc: e.logo,
|
|
180
180
|
hideFooterBranding: e.hideFooterBranding
|
|
181
181
|
};
|
|
182
|
-
return
|
|
182
|
+
return v(t), { theme: e, uiConfig: t };
|
|
183
183
|
} catch {
|
|
184
184
|
return {};
|
|
185
185
|
}
|
|
@@ -295,7 +295,7 @@ function se(e) {
|
|
|
295
295
|
if (d?.status === "ready") {
|
|
296
296
|
const c = O(r);
|
|
297
297
|
if (c)
|
|
298
|
-
return o.current = c.flowManager, c.uiConfig &&
|
|
298
|
+
return o.current = c.flowManager, c.uiConfig && v(c.uiConfig), { status: "ready", flowManager: c.flowManager };
|
|
299
299
|
}
|
|
300
300
|
const s = U();
|
|
301
301
|
return o.current = s, d?.status === "error" ? {
|
|
@@ -311,7 +311,7 @@ function se(e) {
|
|
|
311
311
|
if (d?.status === "loading") {
|
|
312
312
|
d.readyPromise.then(() => {
|
|
313
313
|
const c = O(r);
|
|
314
|
-
c && (o.current = c.flowManager, c.uiConfig &&
|
|
314
|
+
c && (o.current = c.flowManager, c.uiConfig && v(c.uiConfig), i({ status: "ready", flowManager: c.flowManager }));
|
|
315
315
|
}).catch((c) => {
|
|
316
316
|
const p = c instanceof Error ? c.message : "Preload failed";
|
|
317
317
|
i({
|
|
@@ -328,7 +328,7 @@ function se(e) {
|
|
|
328
328
|
try {
|
|
329
329
|
await N({ apiURL: t, token: r, lang: a });
|
|
330
330
|
const c = u ? Promise.resolve() : P().then((p) => {
|
|
331
|
-
p.uiConfig &&
|
|
331
|
+
p.uiConfig && v(p.uiConfig);
|
|
332
332
|
});
|
|
333
333
|
f.flowManager.load(), await c, i({ status: "ready", flowManager: f.flowManager });
|
|
334
334
|
} catch (c) {
|
|
@@ -491,20 +491,18 @@ const de = ({
|
|
|
491
491
|
},
|
|
492
492
|
`selfie-${n.currentStepIndex}`
|
|
493
493
|
) });
|
|
494
|
-
if (i === "AUTHENTICATION")
|
|
495
|
-
|
|
496
|
-
return e.authHint ? /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
|
|
494
|
+
if (i === "AUTHENTICATION")
|
|
495
|
+
return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
|
|
497
496
|
d,
|
|
498
497
|
{
|
|
499
|
-
config: { ...
|
|
498
|
+
config: { ...h, authHint: e.authHint },
|
|
500
499
|
onFinish: () => o.completeModule(),
|
|
501
500
|
onError: (c) => {
|
|
502
501
|
r?.(c ?? "Authentication error");
|
|
503
502
|
}
|
|
504
503
|
},
|
|
505
504
|
`authentication-${n.currentStepIndex}`
|
|
506
|
-
) })
|
|
507
|
-
}
|
|
505
|
+
) });
|
|
508
506
|
if (i === "PHONE")
|
|
509
507
|
return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
|
|
510
508
|
d,
|
|
@@ -4,7 +4,7 @@ import { FC } from 'preact/compat';
|
|
|
4
4
|
export declare const Authentication: FC<AuthenticationProps>;
|
|
5
5
|
|
|
6
6
|
declare type AuthenticationProps = IncodeModuleProps<AuthenticationConfig & {
|
|
7
|
-
authHint
|
|
7
|
+
authHint?: string;
|
|
8
8
|
}>;
|
|
9
9
|
|
|
10
10
|
declare type IncodeModuleProps<TConfig, TResult = void> = {
|
|
@@ -28,6 +28,6 @@ export { }
|
|
|
28
28
|
|
|
29
29
|
declare global {
|
|
30
30
|
interface HTMLElementTagNameMap {
|
|
31
|
-
'incode-authentication': HTMLElement & IncodeModuleProps<AuthenticationConfig & { authHint
|
|
31
|
+
'incode-authentication': HTMLElement & IncodeModuleProps<AuthenticationConfig & { authHint?: string }>;
|
|
32
32
|
}
|
|
33
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260224-
|
|
3
|
+
"version": "0.0.0-dev-20260224-fd86d93",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"libphonenumber-js": "^1.11.0",
|
|
87
87
|
"preact-custom-element": "^4.6.0",
|
|
88
88
|
"tailwindcss": "^4.1.17",
|
|
89
|
-
"@incodetech/core": "0.0.0-dev-20260224-
|
|
89
|
+
"@incodetech/core": "0.0.0-dev-20260224-fd86d93"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@microsoft/api-extractor": "^7.53.3",
|