@incodetech/web 0.0.0-dev-20260219-dfbf2ff → 0.0.0-dev-20260220-bec1051
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/Trans-CkYswaqC.js +33 -0
- package/dist/authentication/authentication.es.js +2 -2
- package/dist/base.css +50 -11
- package/dist/{baseTutorial-B9sBivde.js → baseTutorial-BdLJBzYE.js} +36 -58
- package/dist/curp-validation/curp-validation.es.js +5 -4
- package/dist/{faceMatch-IT9RDlHh.js → faceMatch-iEplxPox.js} +1 -1
- package/dist/flow/flow.es.js +213 -197
- package/dist/flow/styles.css +143 -0
- package/dist/geolocation/geolocation.es.js +692 -0
- package/dist/geolocation/styles.css +126 -0
- package/dist/governmentValidation/governmentValidation.es.js +9 -8
- package/dist/id/id.es.js +4 -3
- package/dist/processing-Dnu3slQ9.js +18 -0
- package/dist/selfie/selfie.es.js +3 -3
- package/dist/spinner-C-EwvA9l.js +46 -0
- package/dist/{tutorial-DOCCLz7v.js → tutorial-BXPpH_2c.js} +11 -10
- package/dist/types/geolocation.d.ts +32 -0
- package/dist/useTranslation-CD9ZxEvP.js +22 -0
- package/package.json +9 -2
- package/dist/processing-us1m6bZt.js +0 -17
- package/dist/spinner-BERSXem_.js +0 -65
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.17 | 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
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.IncodeGeolocationPage .IncodeGeolocationIconWrapper {
|
|
12
|
+
flex: 1;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
display: flex;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.IncodeGeolocationPage .IncodeGeolocationIconWrapper svg {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodePageTitleContainer {
|
|
24
|
+
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodePageTitle {
|
|
28
|
+
text-align: left;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodeGeolocationPermissionSections {
|
|
32
|
+
margin-top: var(--spacing-24, var(--spacing-24, 24px));
|
|
33
|
+
gap: var(--spacing-24, var(--spacing-24, 24px));
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
width: 100%;
|
|
36
|
+
display: flex;
|
|
37
|
+
overflow-y: auto;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodeGeolocationPermissionSection {
|
|
41
|
+
gap: var(--spacing-16, var(--spacing-16, 16px));
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
display: flex;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodeGeolocationPermissionSectionTitle {
|
|
47
|
+
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
48
|
+
font-family: var(--primitive-typography-family-dm-sans);
|
|
49
|
+
font-size: var(--typography-headline-h4-size);
|
|
50
|
+
font-weight: var(--typography-headline-h4-weight);
|
|
51
|
+
line-height: var(--typography-headline-h4-line-height);
|
|
52
|
+
letter-spacing: var(--typography-headline-h4-letter-spacing);
|
|
53
|
+
color: var(--color-text-body-primary, var(--text-body-primary));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodeGeolocationPermissionStepsList {
|
|
57
|
+
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
58
|
+
gap: var(--spacing-12, var(--spacing-12, 12px));
|
|
59
|
+
padding: var(--spacing-0, var(--spacing-none, 0px));
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
list-style-type: none;
|
|
62
|
+
display: flex;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodeGeolocationPermissionStep {
|
|
66
|
+
align-items: center;
|
|
67
|
+
gap: var(--spacing-16, var(--spacing-16, 16px));
|
|
68
|
+
display: flex;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodeGeolocationPermissionStepIcon {
|
|
72
|
+
aspect-ratio: 1;
|
|
73
|
+
height: var(--spacing-40, var(--spacing-40, 40px));
|
|
74
|
+
min-height: var(--spacing-40, var(--spacing-40, 40px));
|
|
75
|
+
width: var(--spacing-40, var(--spacing-40, 40px));
|
|
76
|
+
min-width: var(--spacing-40, var(--spacing-40, 40px));
|
|
77
|
+
border-radius: var(--radius-small, var(--border-radius-small));
|
|
78
|
+
background-color: var(--color-surface-neutral-50, var(--surface-neutral-50));
|
|
79
|
+
justify-content: center;
|
|
80
|
+
align-items: center;
|
|
81
|
+
display: flex;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodeGeolocationPermissionStepImg {
|
|
85
|
+
object-fit: contain;
|
|
86
|
+
width: 100%;
|
|
87
|
+
height: 100%;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodeGeolocationPermissionStepImgPaddedSettings {
|
|
91
|
+
padding: var(--spacing-8, var(--spacing-8, 8px));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodeGeolocationPermissionStepImgPaddedBrowser {
|
|
95
|
+
padding: 5px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodeGeolocationPermissionStepText {
|
|
99
|
+
font-size: var(--text-16, var(--primitive-typography-size-16));
|
|
100
|
+
--tw-leading: var(--leading-snug, 1.375);
|
|
101
|
+
line-height: var(--leading-snug, 1.375);
|
|
102
|
+
--tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
|
|
103
|
+
font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
|
|
104
|
+
color: var(--color-text-body-secondary, var(--text-body-secondary));
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodeGeolocationPermissionStepTextBold {
|
|
108
|
+
--tw-font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
|
|
109
|
+
font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
|
|
110
|
+
color: var(--color-text-body-primary, var(--text-body-primary));
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodeGeolocationPermissionArrow {
|
|
114
|
+
vertical-align: middle;
|
|
115
|
+
display: inline-block;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@property --tw-leading {
|
|
119
|
+
syntax: "*";
|
|
120
|
+
inherits: false
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@property --tw-font-weight {
|
|
124
|
+
syntax: "*";
|
|
125
|
+
inherits: false
|
|
126
|
+
}
|
|
@@ -3,11 +3,12 @@ import { createGovernmentValidationManager as h } from "@incodetech/core/governm
|
|
|
3
3
|
import "../vendor-preact-CjD4WiuC.js";
|
|
4
4
|
import "@incodetech/core";
|
|
5
5
|
import "../instance-B-q0ZREN.js";
|
|
6
|
-
import { u as g
|
|
7
|
-
import { I, P as r } from "../incodeComponent-3T8Qyjnt.js";
|
|
8
|
-
import { E as
|
|
6
|
+
import { u as g } from "../useTranslation-CD9ZxEvP.js";
|
|
7
|
+
import { I as f, P as r } from "../incodeComponent-3T8Qyjnt.js";
|
|
8
|
+
import { E as I } from "../errorIcon-DjGwgLyL.js";
|
|
9
9
|
import { S as c } from "../successIcon-DV200b2L.js";
|
|
10
|
-
import { O as
|
|
10
|
+
import { O as C } from "../otpInput-BZD0CPE9.js";
|
|
11
|
+
import { S as V } from "../spinner-C-EwvA9l.js";
|
|
11
12
|
const G = ({ size: i = 32 }) => /* @__PURE__ */ n(
|
|
12
13
|
"svg",
|
|
13
14
|
{
|
|
@@ -38,7 +39,7 @@ const G = ({ size: i = 32 }) => /* @__PURE__ */ n(
|
|
|
38
39
|
/* @__PURE__ */ n(a, { size: 64 }),
|
|
39
40
|
/* @__PURE__ */ n("p", { class: "IncodeGovtValidationText", children: e }),
|
|
40
41
|
t ? /* @__PURE__ */ n("p", { class: "IncodeGovtValidationText", children: t }) : null
|
|
41
|
-
] }) }) }), w = ({ title: i, subtitle: a }) => /* @__PURE__ */ n("div", { class: "IncodeGovtValidation IncodeGovtValidation--loading", children: /* @__PURE__ */ n(r, { className: "IncodeGovtValidationPage", children: /* @__PURE__ */ n(
|
|
42
|
+
] }) }) }), w = ({ title: i, subtitle: a }) => /* @__PURE__ */ n("div", { class: "IncodeGovtValidation IncodeGovtValidation--loading", children: /* @__PURE__ */ n(r, { className: "IncodeGovtValidationPage", children: /* @__PURE__ */ n(V, { title: i, subtitle: a, fullScreen: !1 }) }) }), S = ({
|
|
42
43
|
config: i,
|
|
43
44
|
onFinish: a
|
|
44
45
|
}) => {
|
|
@@ -83,7 +84,7 @@ const G = ({ size: i = 32 }) => /* @__PURE__ */ n(
|
|
|
83
84
|
/* @__PURE__ */ n("p", { children: e("otp.focus") })
|
|
84
85
|
] }),
|
|
85
86
|
/* @__PURE__ */ n(
|
|
86
|
-
|
|
87
|
+
C,
|
|
87
88
|
{
|
|
88
89
|
resendTimer: t.status === "awaitingOtp" ? t.resendTimer : 0,
|
|
89
90
|
canResend: t.status === "awaitingOtp" ? t.canResend : !1,
|
|
@@ -101,7 +102,7 @@ const G = ({ size: i = 32 }) => /* @__PURE__ */ n(
|
|
|
101
102
|
o,
|
|
102
103
|
{
|
|
103
104
|
variant: "error",
|
|
104
|
-
icon:
|
|
105
|
+
icon: I,
|
|
105
106
|
title: `${e("ineCheck.failure1")} ${e("ineCheck.failure2")}`
|
|
106
107
|
}
|
|
107
108
|
) : t.status === "unknown" ? /* @__PURE__ */ n(
|
|
@@ -115,7 +116,7 @@ const G = ({ size: i = 32 }) => /* @__PURE__ */ n(
|
|
|
115
116
|
}, k = ({
|
|
116
117
|
config: i,
|
|
117
118
|
onFinish: a
|
|
118
|
-
}) => /* @__PURE__ */ n(
|
|
119
|
+
}) => /* @__PURE__ */ n(f, { children: i ? /* @__PURE__ */ n(S, { config: i, onFinish: a }) : null });
|
|
119
120
|
p(
|
|
120
121
|
k,
|
|
121
122
|
"incode-government-validation"
|
package/dist/id/id.es.js
CHANGED
|
@@ -2,11 +2,12 @@ import { u as e, S as C, B as h, c as I, r as A, a as R } from "../incodeModule-
|
|
|
2
2
|
import { createIdCaptureManager as S } from "@incodetech/core/id";
|
|
3
3
|
import { d as L, y as f, k as z, D as U, A as Z } from "../vendor-preact-CjD4WiuC.js";
|
|
4
4
|
import "@incodetech/core";
|
|
5
|
-
import { L as b, B as N, P as O } from "../baseTutorial-
|
|
5
|
+
import { L as b, B as N, P as O } from "../baseTutorial-BdLJBzYE.js";
|
|
6
6
|
import { P as x, I as G } from "../incodeComponent-3T8Qyjnt.js";
|
|
7
|
-
import { P as $ } from "../processing-
|
|
7
|
+
import { P as $ } from "../processing-Dnu3slQ9.js";
|
|
8
8
|
import "../instance-B-q0ZREN.js";
|
|
9
|
-
import { u as c
|
|
9
|
+
import { u as c } from "../useTranslation-CD9ZxEvP.js";
|
|
10
|
+
import { T as _, S as Q } from "../spinner-C-EwvA9l.js";
|
|
10
11
|
const j = ({ className: n }) => /* @__PURE__ */ e(
|
|
11
12
|
"svg",
|
|
12
13
|
{
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { u as i } from "./incodeModule-DPTWfWvu.js";
|
|
2
|
+
import { S as t } from "./spinner-C-EwvA9l.js";
|
|
3
|
+
import { u as e } from "./useTranslation-CD9ZxEvP.js";
|
|
4
|
+
const l = () => {
|
|
5
|
+
const { t: r } = e();
|
|
6
|
+
return /* @__PURE__ */ i(
|
|
7
|
+
t,
|
|
8
|
+
{
|
|
9
|
+
title: r("loadingCircle.hangOn"),
|
|
10
|
+
subtitle: r("loadingCircle.validating"),
|
|
11
|
+
size: "large",
|
|
12
|
+
fullScreen: !0
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
l as P
|
|
18
|
+
};
|
package/dist/selfie/selfie.es.js
CHANGED
|
@@ -2,10 +2,10 @@ import { r as o, u as r, a as u } from "../incodeModule-DPTWfWvu.js";
|
|
|
2
2
|
import { createSelfieManager as a } from "@incodetech/core/selfie";
|
|
3
3
|
import "../vendor-preact-CjD4WiuC.js";
|
|
4
4
|
import "@incodetech/core";
|
|
5
|
-
import { P as l } from "../baseTutorial-
|
|
5
|
+
import { P as l } from "../baseTutorial-BdLJBzYE.js";
|
|
6
6
|
import { I as m } from "../incodeComponent-3T8Qyjnt.js";
|
|
7
|
-
import { P as f } from "../processing-
|
|
8
|
-
import { T as p, C as c } from "../tutorial-
|
|
7
|
+
import { P as f } from "../processing-Dnu3slQ9.js";
|
|
8
|
+
import { T as p, C as c } from "../tutorial-BXPpH_2c.js";
|
|
9
9
|
const d = ({
|
|
10
10
|
config: e,
|
|
11
11
|
onFinish: s,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { u as n, c as t, L as p, S as r } from "./incodeModule-DPTWfWvu.js";
|
|
2
|
+
import { k as s } from "./vendor-preact-CjD4WiuC.js";
|
|
3
|
+
const S = ({ children: e, className: c }) => /* @__PURE__ */ n("h2", { class: `IncodeTitle ${c ?? ""}`, children: e }), m = {
|
|
4
|
+
small: 24,
|
|
5
|
+
medium: 48,
|
|
6
|
+
large: 64
|
|
7
|
+
}, u = ({
|
|
8
|
+
title: e,
|
|
9
|
+
subtitle: c,
|
|
10
|
+
size: i = "medium",
|
|
11
|
+
fullScreen: a = !0,
|
|
12
|
+
className: d
|
|
13
|
+
}) => {
|
|
14
|
+
const o = m[i], l = t(
|
|
15
|
+
"IncodeSpinner",
|
|
16
|
+
a && "IncodeSpinnerFullScreen",
|
|
17
|
+
d
|
|
18
|
+
);
|
|
19
|
+
return /* @__PURE__ */ n(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
class: l,
|
|
23
|
+
"data-testid": "spinner",
|
|
24
|
+
"data-title": e,
|
|
25
|
+
"data-subtitle": c,
|
|
26
|
+
"data-size": i,
|
|
27
|
+
children: /* @__PURE__ */ n("div", { class: "IncodeSpinnerContent", children: [
|
|
28
|
+
/* @__PURE__ */ n(p, { size: o }),
|
|
29
|
+
(e || c) && /* @__PURE__ */ n(s, { children: [
|
|
30
|
+
/* @__PURE__ */ n(r, { size: 16 }),
|
|
31
|
+
/* @__PURE__ */ n("div", { class: "IncodeSpinnerText", children: [
|
|
32
|
+
e && /* @__PURE__ */ n(S, { className: "IncodeSpinnerTitle", children: e }),
|
|
33
|
+
c && /* @__PURE__ */ n(s, { children: [
|
|
34
|
+
e && /* @__PURE__ */ n(r, { size: 12 }),
|
|
35
|
+
/* @__PURE__ */ n("p", { class: "IncodeSpinnerSubtitle", children: c })
|
|
36
|
+
] })
|
|
37
|
+
] })
|
|
38
|
+
] })
|
|
39
|
+
] })
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
u as S,
|
|
45
|
+
S as T
|
|
46
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { u as t, S as a, B as h, c as I, L } from "./incodeModule-DPTWfWvu.js";
|
|
2
2
|
import { g as D, d as R, k as _, A as S, y as O } from "./vendor-preact-CjD4WiuC.js";
|
|
3
|
-
import { u as d
|
|
4
|
-
import { S as
|
|
3
|
+
import { u as d } from "./useTranslation-CD9ZxEvP.js";
|
|
4
|
+
import { S as v } from "./successIcon-DV200b2L.js";
|
|
5
5
|
import { P as p } from "./incodeComponent-3T8Qyjnt.js";
|
|
6
|
+
import { S as A, T as M } from "./spinner-C-EwvA9l.js";
|
|
6
7
|
import "./instance-B-q0ZREN.js";
|
|
7
|
-
import { B as w } from "./baseTutorial-
|
|
8
|
+
import { B as w } from "./baseTutorial-BdLJBzYE.js";
|
|
8
9
|
const m = ({
|
|
9
10
|
title: i,
|
|
10
11
|
description: e,
|
|
@@ -400,7 +401,7 @@ const m = ({
|
|
|
400
401
|
getReady: e("notifications.getReady")
|
|
401
402
|
}[i];
|
|
402
403
|
return o ? /* @__PURE__ */ t("div", { class: "IncodeNotification", children: /* @__PURE__ */ t("p", { class: "IncodeNotificationText", children: o }) }) : null;
|
|
403
|
-
},
|
|
404
|
+
}, et = ({ manager: i, state: e, onFinish: n }) => {
|
|
404
405
|
const {
|
|
405
406
|
captureStatus: o,
|
|
406
407
|
stream: r,
|
|
@@ -410,7 +411,7 @@ const m = ({
|
|
|
410
411
|
assistedOnboarding: f
|
|
411
412
|
} = e, [E, u] = R(!1), { t: g } = d();
|
|
412
413
|
return o === "initializing" ? /* @__PURE__ */ t(
|
|
413
|
-
|
|
414
|
+
A,
|
|
414
415
|
{
|
|
415
416
|
fullScreen: !0,
|
|
416
417
|
title: g("v2.selfie.camera.loading"),
|
|
@@ -480,9 +481,9 @@ const m = ({
|
|
|
480
481
|
}
|
|
481
482
|
) : o === "success" ? /* @__PURE__ */ t(p, { className: "IncodeCaptureSuccessPage", children: /* @__PURE__ */ t("div", { class: "IncodeCaptureSuccessContainer", children: [
|
|
482
483
|
/* @__PURE__ */ t(a, { size: 160 }),
|
|
483
|
-
/* @__PURE__ */ t(
|
|
484
|
+
/* @__PURE__ */ t(v, { size: 64 }),
|
|
484
485
|
/* @__PURE__ */ t(a, { size: 16 }),
|
|
485
|
-
/* @__PURE__ */ t(
|
|
486
|
+
/* @__PURE__ */ t(M, { children: g("idv2.capture.processing.success") })
|
|
486
487
|
] }) }) : null;
|
|
487
488
|
}, Q = ({ stream: i, mirrored: e }) => {
|
|
488
489
|
const n = S(null);
|
|
@@ -506,7 +507,7 @@ const m = ({
|
|
|
506
507
|
/* @__PURE__ */ t(a, { size: 16 }),
|
|
507
508
|
/* @__PURE__ */ t("h2", { class: "IncodeCaptureUploadingTitle", children: i("idv2.capture.processing.uploading") })
|
|
508
509
|
] }) });
|
|
509
|
-
},
|
|
510
|
+
}, it = ({ manager: i }) => {
|
|
510
511
|
const { t: e } = d(), [n, o] = R(!1), [r, s] = R(null);
|
|
511
512
|
O(() => {
|
|
512
513
|
import("./selfieTutorial-Dm_p0ke9.js").then((c) => {
|
|
@@ -531,6 +532,6 @@ const m = ({
|
|
|
531
532
|
) : null;
|
|
532
533
|
};
|
|
533
534
|
export {
|
|
534
|
-
|
|
535
|
-
|
|
535
|
+
et as C,
|
|
536
|
+
it as T
|
|
536
537
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FC } from 'preact/compat';
|
|
2
|
+
import { GeolocationConfig } from '@incodetech/core/geolocation';
|
|
3
|
+
|
|
4
|
+
declare const Geolocation_2: FC<GeolocationProps>;
|
|
5
|
+
export { Geolocation_2 as Geolocation }
|
|
6
|
+
|
|
7
|
+
declare type GeolocationProps = IncodeModuleProps<GeolocationConfig>;
|
|
8
|
+
|
|
9
|
+
declare type IncodeModuleProps<TConfig, TResult = void> = {
|
|
10
|
+
/**
|
|
11
|
+
* Module configuration required to render the flow.
|
|
12
|
+
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
13
|
+
*/
|
|
14
|
+
config?: TConfig;
|
|
15
|
+
/**
|
|
16
|
+
* Callback invoked when the module completes successfully.
|
|
17
|
+
* @param result - Optional result data from the module completion
|
|
18
|
+
*/
|
|
19
|
+
onFinish?: (result?: TResult) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Callback invoked when a fatal module error occurs.
|
|
22
|
+
*/
|
|
23
|
+
onError?: (error: string | undefined) => void;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { }
|
|
27
|
+
|
|
28
|
+
declare global {
|
|
29
|
+
interface HTMLElementTagNameMap {
|
|
30
|
+
'incode-geolocation': HTMLElement & IncodeModuleProps<GeolocationConfig>;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { d as o, y as s } from "./vendor-preact-CjD4WiuC.js";
|
|
2
|
+
import { g } from "./instance-B-q0ZREN.js";
|
|
3
|
+
function c() {
|
|
4
|
+
const n = g(), [, t] = o(0), [d, r] = o(n.isInitialized);
|
|
5
|
+
return s(() => {
|
|
6
|
+
const e = () => {
|
|
7
|
+
t((a) => a + 1);
|
|
8
|
+
}, i = () => {
|
|
9
|
+
r(!0), t((a) => a + 1);
|
|
10
|
+
};
|
|
11
|
+
return n.on("languageChanged", e), n.on("initialized", i), n.on("loaded", e), () => {
|
|
12
|
+
n.off("languageChanged", e), n.off("initialized", i), n.off("loaded", e);
|
|
13
|
+
};
|
|
14
|
+
}, [n]), {
|
|
15
|
+
t: n.t.bind(n),
|
|
16
|
+
ready: d,
|
|
17
|
+
i18n: n
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
c as u
|
|
22
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260220-bec1051",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -66,6 +66,13 @@
|
|
|
66
66
|
},
|
|
67
67
|
"./curp-validation/styles.css": {
|
|
68
68
|
"default": "./dist/curp-validation/styles.css"
|
|
69
|
+
},
|
|
70
|
+
"./geolocation": {
|
|
71
|
+
"types": "./dist/types/geolocation.d.ts",
|
|
72
|
+
"import": "./dist/geolocation/geolocation.es.js"
|
|
73
|
+
},
|
|
74
|
+
"./geolocation/styles.css": {
|
|
75
|
+
"default": "./dist/geolocation/styles.css"
|
|
69
76
|
}
|
|
70
77
|
},
|
|
71
78
|
"files": [
|
|
@@ -79,7 +86,7 @@
|
|
|
79
86
|
"libphonenumber-js": "^1.11.0",
|
|
80
87
|
"preact-custom-element": "^4.6.0",
|
|
81
88
|
"tailwindcss": "^4.1.17",
|
|
82
|
-
"@incodetech/core": "0.0.0-dev-
|
|
89
|
+
"@incodetech/core": "0.0.0-dev-20260220-bec1051"
|
|
83
90
|
},
|
|
84
91
|
"devDependencies": {
|
|
85
92
|
"@microsoft/api-extractor": "^7.53.3",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { u as e } from "./incodeModule-DPTWfWvu.js";
|
|
2
|
-
import { u as i, S as n } from "./spinner-BERSXem_.js";
|
|
3
|
-
const l = () => {
|
|
4
|
-
const { t: r } = i();
|
|
5
|
-
return /* @__PURE__ */ e(
|
|
6
|
-
n,
|
|
7
|
-
{
|
|
8
|
-
title: r("loadingCircle.hangOn"),
|
|
9
|
-
subtitle: r("loadingCircle.validating"),
|
|
10
|
-
size: "large",
|
|
11
|
-
fullScreen: !0
|
|
12
|
-
}
|
|
13
|
-
);
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
l as P
|
|
17
|
-
};
|
package/dist/spinner-BERSXem_.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { d as r, y as p, k as t } from "./vendor-preact-CjD4WiuC.js";
|
|
2
|
-
import { g as u } from "./instance-B-q0ZREN.js";
|
|
3
|
-
import { u as e, c as g, L as h, S as l } from "./incodeModule-DPTWfWvu.js";
|
|
4
|
-
function T() {
|
|
5
|
-
const n = u(), [, a] = r(0), [s, o] = r(n.isInitialized);
|
|
6
|
-
return p(() => {
|
|
7
|
-
const i = () => {
|
|
8
|
-
a((d) => d + 1);
|
|
9
|
-
}, c = () => {
|
|
10
|
-
o(!0), a((d) => d + 1);
|
|
11
|
-
};
|
|
12
|
-
return n.on("languageChanged", i), n.on("initialized", c), n.on("loaded", i), () => {
|
|
13
|
-
n.off("languageChanged", i), n.off("initialized", c), n.off("loaded", i);
|
|
14
|
-
};
|
|
15
|
-
}, [n]), {
|
|
16
|
-
t: n.t.bind(n),
|
|
17
|
-
ready: s,
|
|
18
|
-
i18n: n
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
const I = ({ children: n, className: a }) => /* @__PURE__ */ e("h2", { class: `IncodeTitle ${a ?? ""}`, children: n }), S = {
|
|
22
|
-
small: 24,
|
|
23
|
-
medium: 48,
|
|
24
|
-
large: 64
|
|
25
|
-
}, C = ({
|
|
26
|
-
title: n,
|
|
27
|
-
subtitle: a,
|
|
28
|
-
size: s = "medium",
|
|
29
|
-
fullScreen: o = !0,
|
|
30
|
-
className: i
|
|
31
|
-
}) => {
|
|
32
|
-
const c = S[s], d = g(
|
|
33
|
-
"IncodeSpinner",
|
|
34
|
-
o && "IncodeSpinnerFullScreen",
|
|
35
|
-
i
|
|
36
|
-
);
|
|
37
|
-
return /* @__PURE__ */ e(
|
|
38
|
-
"div",
|
|
39
|
-
{
|
|
40
|
-
class: d,
|
|
41
|
-
"data-testid": "spinner",
|
|
42
|
-
"data-title": n,
|
|
43
|
-
"data-subtitle": a,
|
|
44
|
-
"data-size": s,
|
|
45
|
-
children: /* @__PURE__ */ e("div", { class: "IncodeSpinnerContent", children: [
|
|
46
|
-
/* @__PURE__ */ e(h, { size: c }),
|
|
47
|
-
(n || a) && /* @__PURE__ */ e(t, { children: [
|
|
48
|
-
/* @__PURE__ */ e(l, { size: 16 }),
|
|
49
|
-
/* @__PURE__ */ e("div", { class: "IncodeSpinnerText", children: [
|
|
50
|
-
n && /* @__PURE__ */ e(I, { className: "IncodeSpinnerTitle", children: n }),
|
|
51
|
-
a && /* @__PURE__ */ e(t, { children: [
|
|
52
|
-
n && /* @__PURE__ */ e(l, { size: 12 }),
|
|
53
|
-
/* @__PURE__ */ e("p", { class: "IncodeSpinnerSubtitle", children: a })
|
|
54
|
-
] })
|
|
55
|
-
] })
|
|
56
|
-
] })
|
|
57
|
-
] })
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
};
|
|
61
|
-
export {
|
|
62
|
-
C as S,
|
|
63
|
-
I as T,
|
|
64
|
-
T as u
|
|
65
|
-
};
|