@incodetech/web 0.0.0-dev-20260320-c9bdba0 → 0.0.0-dev-20260320-e46eb90
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-Cm7gi0st.js → Trans-Bw5n8KhH.js} +2 -2
- package/dist/{addressAutocomplete-BIQwiDWk.js → addressAutocomplete-D7g-naeA.js} +6 -6
- package/dist/authentication/authentication.es.js +5 -5
- package/dist/base.css +93 -0
- package/dist/{button-zCdeDeEB.js → button-Yr39X4SE.js} +2 -2
- package/dist/{captureFooter-SNtyUXrI.js → captureFooter-Dum5qpdZ.js} +4 -4
- package/dist/checkbox-BkW6ZbEQ.js +137 -0
- package/dist/{chevronDown-DRVnB275.js → chevronDown-CsZysK60.js} +1 -1
- package/dist/{closeIcon-D2dmrZca.js → closeIcon-DrD_JWne.js} +1 -1
- package/dist/consent/consent.es.js +1889 -0
- package/dist/consent/styles.css +113 -0
- package/dist/curp-validation/curp-validation.es.js +11 -11
- package/dist/{dateInputComposed-C8WTSu9L.js → dateInputComposed-CjfYBUJj.js} +4 -4
- package/dist/{documentCapture-DWNK3phM.js → documentCapture-DGJU-4sT.js} +10 -10
- package/dist/{dropdownComposed-Cg6lQD2C.js → dropdownComposed-DLZ4R_VD.js} +5 -5
- package/dist/{ekybModule-DtMbgF08.js → ekybModule-CnuxaZ9k.js} +10 -10
- package/dist/{ekycModule-DEMkVZr2.js → ekycModule-BggwsBOH.js} +11 -11
- package/dist/email/email.es.js +6 -6
- package/dist/{errorContent-B3YzH-UQ.js → errorContent-LcOhVnBZ.js} +6 -6
- package/dist/{errorIcon-bIXk9nAy.js → errorIcon-DOyZZgsP.js} +1 -1
- package/dist/extensibility.es.js +56 -55
- package/dist/{faceMatch-BdMwIeBs.js → faceMatch-C5Sgst55.js} +5 -5
- package/dist/{fileIcon-E4B7hd8V.js → fileIcon--4cgz7hZ.js} +1 -1
- package/dist/{flipAnimation-CnXEIDH1.js → flipAnimation-CJfs4vnz.js} +379 -509
- package/dist/flow/flow.es.js +290 -275
- package/dist/flow/styles.css +149 -0
- package/dist/{formField-hlgxOSE6.js → formField-6BHE59Av.js} +8 -8
- package/dist/geolocation/geolocation.es.js +6 -6
- package/dist/governmentValidation/governmentValidation.es.js +10 -10
- package/dist/id/id.es.js +15 -15
- package/dist/{incodeModule-aE-LkKwM.js → incodeModule-Bxzkb7nW.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/{inputComposed-CyGtRLzv.js → inputComposed-n2VIh213.js} +5 -5
- package/dist/{manualCaptureButton-iYqQECzn.js → manualCaptureButton-CtHbJjgz.js} +9 -9
- package/dist/{otpInput-B3iNW8b5.js → otpInput-2bT7uNnk.js} +4 -4
- package/dist/{page-Dv0s0RPn.js → page-DO2rYslN.js} +2 -2
- package/dist/phone/phone.es.js +7 -7
- package/dist/{phoneInput-NVIE7YFb.js → phoneInput-B7gKhoUa.js} +3 -3
- package/dist/{phoneInputComposed-DNfU__MR.js → phoneInputComposed-C66n6e7L.js} +114 -100
- package/dist/{processing-BhY0-0xy.js → processing-BGKugkCh.js} +4 -4
- package/dist/selfie/selfie.es.js +6 -6
- package/dist/{spinner-BbVGMG-G.js → spinner-Djok6FY8.js} +2 -2
- package/dist/{successIcon-DN8LMqE2.js → successIcon-CjkBWk8J.js} +1 -1
- package/dist/{tutorial-CDJugc5j.js → tutorial-Dptz5zyj.js} +8 -8
- package/dist/types/consent.d.ts +36 -0
- package/dist/{uiConfig-Z6RT23Sl.js → uiConfig-CKJmKRCo.js} +1 -1
- package/dist/{useMediaQuery-CiSMgDyi.js → useMediaQuery-DSN9IIfj.js} +1 -1
- package/dist/{vendor-preact-BXf0bkEs.js → vendor-preact--mDTxXnt.js} +2 -1
- package/dist/{warningIcon-BBoCroUd.js → warningIcon-DgHOtF9T.js} +1 -1
- package/package.json +12 -2
|
@@ -1,184 +1,198 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { D as J, d as
|
|
3
|
-
import { w as X, g as
|
|
4
|
-
import { D as
|
|
5
|
-
import { E as q } from "./errorIcon-
|
|
6
|
-
import { S as _ } from "./successIcon-
|
|
7
|
-
import { a as e2 } from "./inputComposed-
|
|
8
|
-
import { P as
|
|
9
|
-
function
|
|
10
|
-
if (
|
|
11
|
-
return new
|
|
1
|
+
import { u as r } from "./button-Yr39X4SE.js";
|
|
2
|
+
import { D as J, d as L, A as x, T as M, y as Q, q as A } from "./vendor-preact--mDTxXnt.js";
|
|
3
|
+
import { w as X, g as I, c as j, b as k } from "./countries-DfLkrF0x.js";
|
|
4
|
+
import { D as z } from "./dropdownComposed-DLZ4R_VD.js";
|
|
5
|
+
import { E as q } from "./errorIcon-DOyZZgsP.js";
|
|
6
|
+
import { S as _ } from "./successIcon-CjkBWk8J.js";
|
|
7
|
+
import { a as e2 } from "./inputComposed-n2VIh213.js";
|
|
8
|
+
import { P as n2, p as b, A as g } from "./AsYouType-D1H_js4X.js";
|
|
9
|
+
function o2(e, o, a) {
|
|
10
|
+
if (o[e])
|
|
11
|
+
return new n2(e, o[e], a);
|
|
12
12
|
}
|
|
13
13
|
function t2() {
|
|
14
|
-
return X(
|
|
14
|
+
return X(o2, arguments);
|
|
15
15
|
}
|
|
16
16
|
const r2 = { AC: "40123", AD: "312345", AE: "501234567", AF: "701234567", AG: "2684641234", AI: "2642351234", AL: "672123456", AM: "77123456", AO: "923123456", AR: "91123456789", AS: "6847331234", AT: "664123456", AU: "412345678", AW: "5601234", AX: "412345678", AZ: "401234567", BA: "61123456", BB: "2462501234", BD: "1812345678", BE: "470123456", BF: "70123456", BG: "43012345", BH: "36001234", BI: "79561234", BJ: "0195123456", BL: "690001234", BM: "4413701234", BN: "7123456", BO: "71234567", BQ: "3181234", BR: "11961234567", BS: "2423591234", BT: "17123456", BW: "71123456", BY: "294911911", BZ: "6221234", CA: "5062345678", CC: "412345678", CD: "991234567", CF: "70012345", CG: "061234567", CH: "781234567", CI: "0123456789", CK: "71234", CL: "221234567", CM: "671234567", CN: "13123456789", CO: "3211234567", CR: "83123456", CU: "51234567", CV: "9911234", CW: "95181234", CX: "412345678", CY: "96123456", CZ: "601123456", DE: "15123456789", DJ: "77831001", DK: "34412345", DM: "7672251234", DO: "8092345678", DZ: "551234567", EC: "991234567", EE: "51234567", EG: "1001234567", EH: "650123456", ER: "7123456", ES: "612345678", ET: "911234567", FI: "412345678", FJ: "7012345", FK: "51234", FM: "3501234", FO: "211234", FR: "612345678", GA: "06031234", GB: "7400123456", GD: "4734031234", GE: "555123456", GF: "694201234", GG: "7781123456", GH: "231234567", GI: "57123456", GL: "221234", GM: "3012345", GN: "601123456", GP: "690001234", GQ: "222123456", GR: "6912345678", GT: "51234567", GU: "6713001234", GW: "955012345", GY: "6091234", HK: "51234567", HN: "91234567", HR: "921234567", HT: "34101234", HU: "201234567", ID: "812345678", IE: "850123456", IL: "502345678", IM: "7924123456", IN: "8123456789", IO: "3801234", IQ: "7912345678", IR: "9123456789", IS: "6111234", IT: "3123456789", JE: "7797712345", JM: "8762101234", JO: "790123456", JP: "9012345678", KE: "712123456", KG: "700123456", KH: "91234567", KI: "72001234", KM: "3212345", KN: "8697652917", KP: "1921234567", KR: "1020000000", KW: "50012345", KY: "3453231234", KZ: "7710009998", LA: "2023123456", LB: "71123456", LC: "7582845678", LI: "660234567", LK: "712345678", LR: "770123456", LS: "50123456", LT: "61234567", LU: "628123456", LV: "21234567", LY: "912345678", MA: "650123456", MC: "612345678", MD: "62112345", ME: "60123456", MF: "690001234", MG: "321234567", MH: "2351234", MK: "72345678", ML: "65012345", MM: "92123456", MN: "88123456", MO: "66123456", MP: "6702345678", MQ: "696201234", MR: "22123456", MS: "6644923456", MT: "96961234", MU: "52512345", MV: "7712345", MW: "991234567", MX: "2221234567", MY: "123456789", MZ: "821234567", NA: "811234567", NC: "751234", NE: "93123456", NF: "381234", NG: "8021234567", NI: "81234567", NL: "612345678", NO: "40612345", NP: "9841234567", NR: "5551234", NU: "8884012", NZ: "211234567", OM: "92123456", PA: "61234567", PE: "912345678", PF: "87123456", PG: "70123456", PH: "9051234567", PK: "3012345678", PL: "512345678", PM: "551234", PR: "7872345678", PS: "599123456", PT: "912345678", PW: "6201234", PY: "961456789", QA: "33123456", RE: "692123456", RO: "712034567", RS: "601234567", RU: "9123456789", RW: "720123456", SA: "512345678", SB: "7421234", SC: "2510123", SD: "911231234", SE: "701234567", SG: "81234567", SH: "51234", SI: "31234567", SJ: "41234567", SK: "912123456", SL: "25123456", SM: "66661212", SN: "701234567", SO: "71123456", SR: "7412345", SS: "977123456", ST: "9812345", SV: "70123456", SX: "7215205678", SY: "944567890", SZ: "76123456", TA: "8999", TC: "6492311234", TD: "63012345", TG: "90112345", TH: "812345678", TJ: "917123456", TK: "7290", TL: "77212345", TM: "66123456", TN: "20123456", TO: "7715123", TR: "5012345678", TT: "8682911234", TV: "901234", TW: "912345678", TZ: "621234567", UA: "501234567", UG: "712345678", US: "2015550123", UY: "94231234", UZ: "912345678", VA: "3123456789", VC: "7844301234", VE: "4121234567", VG: "2843001234", VI: "3406421234", VN: "912345678", VU: "5912345", WF: "821234", WS: "7212345", XK: "43201234", YE: "712345678", YT: "639012345", ZA: "711234567", ZM: "955123456", ZW: "712345678" };
|
|
17
|
-
function
|
|
18
|
-
return new
|
|
17
|
+
function y(e, o, a) {
|
|
18
|
+
return new g(a).input(`${o}${e}`).replace(o, "").trimStart();
|
|
19
19
|
}
|
|
20
|
-
function s2(
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
function s2(e, o) {
|
|
21
|
+
const a = e.replace(/\D/g, "");
|
|
22
|
+
if (a === o) return e;
|
|
23
|
+
if (!a.endsWith(o)) return null;
|
|
24
|
+
const s = a.length - o.length;
|
|
25
|
+
if (s <= 0) return e;
|
|
26
|
+
let i = 0;
|
|
27
|
+
for (let c = 0; c < e.length; c++)
|
|
28
|
+
if (/\d/.test(e[c]) && (i++, i === s))
|
|
29
|
+
return e.slice(c + 1).trimStart();
|
|
30
|
+
return e;
|
|
25
31
|
}
|
|
26
|
-
|
|
32
|
+
function a2(e) {
|
|
33
|
+
const o = t2(e, r2);
|
|
34
|
+
if (!o) return "";
|
|
35
|
+
const a = o.formatNational(), s = s2(a, o.nationalNumber);
|
|
36
|
+
if (s) return s;
|
|
37
|
+
const i = `+${k(e)}`;
|
|
38
|
+
return y(o.nationalNumber, i, e);
|
|
39
|
+
}
|
|
40
|
+
const c2 = J(
|
|
27
41
|
({
|
|
28
|
-
id:
|
|
29
|
-
label:
|
|
30
|
-
countryCode:
|
|
31
|
-
value:
|
|
32
|
-
placeholder:
|
|
33
|
-
error:
|
|
42
|
+
id: e,
|
|
43
|
+
label: o,
|
|
44
|
+
countryCode: a = "US",
|
|
45
|
+
value: s,
|
|
46
|
+
placeholder: i,
|
|
47
|
+
error: c,
|
|
34
48
|
helper: h,
|
|
35
|
-
showErrorIcon:
|
|
36
|
-
showHelperIcon:
|
|
49
|
+
showErrorIcon: D,
|
|
50
|
+
showHelperIcon: K,
|
|
37
51
|
disabled: N = !1,
|
|
38
|
-
disableCountrySelector:
|
|
52
|
+
disableCountrySelector: R = !1,
|
|
39
53
|
required: P,
|
|
40
|
-
onChange:
|
|
41
|
-
"aria-labelledby":
|
|
54
|
+
onChange: S,
|
|
55
|
+
"aria-labelledby": $,
|
|
42
56
|
"data-testid": W,
|
|
43
57
|
...F
|
|
44
58
|
}, H) => {
|
|
45
|
-
const [
|
|
46
|
-
() => j.map((
|
|
47
|
-
value:
|
|
48
|
-
label: `${
|
|
59
|
+
const [l, T] = L(a), [u, f] = L(""), G = x(!1), U = M(
|
|
60
|
+
() => j.map((t) => ({
|
|
61
|
+
value: t.code,
|
|
62
|
+
label: `${t.emoji} ${t.callingCode} ${t.name}`
|
|
49
63
|
})),
|
|
50
64
|
[]
|
|
51
|
-
),
|
|
52
|
-
() =>
|
|
53
|
-
[
|
|
54
|
-
), O =
|
|
55
|
-
() =>
|
|
56
|
-
[
|
|
65
|
+
), d = M(
|
|
66
|
+
() => I(l) ?? I("US"),
|
|
67
|
+
[l]
|
|
68
|
+
), O = M(
|
|
69
|
+
() => i ?? a2(l),
|
|
70
|
+
[i, l]
|
|
57
71
|
);
|
|
58
72
|
Q(() => {
|
|
59
|
-
if (
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
if (
|
|
63
|
-
|
|
64
|
-
const
|
|
65
|
-
|
|
73
|
+
if (G.current || !s || !d) return;
|
|
74
|
+
G.current = !0;
|
|
75
|
+
const t = s.startsWith("+") ? s : `+${s}`, n = b(t);
|
|
76
|
+
if (n?.isValid() && n.country) {
|
|
77
|
+
n.country !== l && T(n.country);
|
|
78
|
+
const p = new g(n.country);
|
|
79
|
+
f(p.input(n.nationalNumber));
|
|
66
80
|
}
|
|
67
|
-
}, [
|
|
68
|
-
const
|
|
69
|
-
(
|
|
70
|
-
const
|
|
81
|
+
}, [s, d, l]);
|
|
82
|
+
const C = A(
|
|
83
|
+
(t, n) => {
|
|
84
|
+
const p = `${n.callingCode}${t.replace(/\D/g, "")}`;
|
|
71
85
|
try {
|
|
72
|
-
const Y =
|
|
73
|
-
|
|
86
|
+
const Y = b(p, n.code);
|
|
87
|
+
S?.(p, Y?.isValid() ?? !1);
|
|
74
88
|
} catch {
|
|
75
|
-
|
|
89
|
+
S?.(p, !1);
|
|
76
90
|
}
|
|
77
91
|
},
|
|
78
|
-
[
|
|
92
|
+
[S]
|
|
79
93
|
), V = A(
|
|
80
|
-
(
|
|
81
|
-
|
|
82
|
-
const
|
|
83
|
-
|
|
94
|
+
(t) => {
|
|
95
|
+
T(t);
|
|
96
|
+
const n = I(t);
|
|
97
|
+
n && u && C(u, n);
|
|
84
98
|
},
|
|
85
|
-
[
|
|
99
|
+
[u, C]
|
|
86
100
|
), Z = A(
|
|
87
|
-
(
|
|
88
|
-
const
|
|
89
|
-
if (!
|
|
90
|
-
|
|
101
|
+
(t) => {
|
|
102
|
+
const n = t.target.value;
|
|
103
|
+
if (!d) {
|
|
104
|
+
f(n);
|
|
91
105
|
return;
|
|
92
106
|
}
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
107
|
+
const p = y(
|
|
108
|
+
n,
|
|
109
|
+
d.callingCode,
|
|
110
|
+
d.code
|
|
97
111
|
);
|
|
98
|
-
|
|
112
|
+
f(p), C(n, d);
|
|
99
113
|
},
|
|
100
|
-
[
|
|
101
|
-
), v = `${
|
|
102
|
-
return /* @__PURE__ */
|
|
103
|
-
|
|
114
|
+
[d, C]
|
|
115
|
+
), v = `${e}-country`, m = `${e}-phone`, E = `${m}-helper`, B = `${m}-error`, w = [h ? E : null, c ? B : null].filter(Boolean).join(" ");
|
|
116
|
+
return /* @__PURE__ */ r("div", { class: "IncodePhoneInputComposed", children: [
|
|
117
|
+
o && /* @__PURE__ */ r(
|
|
104
118
|
"label",
|
|
105
119
|
{
|
|
106
120
|
class: "IncodePhoneInputComposedLabel",
|
|
107
121
|
htmlFor: m,
|
|
108
|
-
"data-testid": `${
|
|
122
|
+
"data-testid": `${e}-label`,
|
|
109
123
|
children: [
|
|
110
|
-
|
|
111
|
-
P && /* @__PURE__ */
|
|
124
|
+
o,
|
|
125
|
+
P && /* @__PURE__ */ r("span", { class: "IncodePhoneInputComposedRequired", children: " *" })
|
|
112
126
|
]
|
|
113
127
|
}
|
|
114
128
|
),
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
|
|
129
|
+
/* @__PURE__ */ r(
|
|
130
|
+
z,
|
|
117
131
|
{
|
|
118
132
|
id: v,
|
|
119
133
|
options: U,
|
|
120
|
-
value:
|
|
134
|
+
value: l,
|
|
121
135
|
onChange: V,
|
|
122
|
-
disabled: N ||
|
|
136
|
+
disabled: N || R,
|
|
123
137
|
required: P,
|
|
124
138
|
searchable: !0,
|
|
125
139
|
searchPlaceholder: "Search countries...",
|
|
126
140
|
suppressMessages: !0,
|
|
127
141
|
"aria-label": "Select country code",
|
|
128
|
-
renderSelectedLabel: (
|
|
129
|
-
const
|
|
130
|
-
return
|
|
142
|
+
renderSelectedLabel: (t) => {
|
|
143
|
+
const n = I(t.value);
|
|
144
|
+
return n ? `${n.emoji} ${n.callingCode}` : t.label;
|
|
131
145
|
},
|
|
132
146
|
class: "IncodePhoneInputComposedDropdown",
|
|
133
|
-
siblingElement: /* @__PURE__ */
|
|
147
|
+
siblingElement: /* @__PURE__ */ r(
|
|
134
148
|
e2,
|
|
135
149
|
{
|
|
136
150
|
id: m,
|
|
137
151
|
ref: H,
|
|
138
152
|
type: "tel",
|
|
139
|
-
value:
|
|
153
|
+
value: u,
|
|
140
154
|
onInput: Z,
|
|
141
155
|
placeholder: O,
|
|
142
|
-
error:
|
|
156
|
+
error: c,
|
|
143
157
|
disabled: N,
|
|
144
158
|
required: P,
|
|
145
159
|
suppressMessages: !0,
|
|
146
|
-
"aria-label":
|
|
147
|
-
"aria-labelledby":
|
|
160
|
+
"aria-label": o ? void 0 : "Phone number",
|
|
161
|
+
"aria-labelledby": $,
|
|
148
162
|
"aria-describedby": w || void 0,
|
|
149
|
-
"aria-invalid":
|
|
163
|
+
"aria-invalid": c ? "true" : void 0,
|
|
150
164
|
"data-testid": W,
|
|
151
165
|
...F
|
|
152
166
|
}
|
|
153
167
|
)
|
|
154
168
|
}
|
|
155
169
|
),
|
|
156
|
-
|
|
170
|
+
c && /* @__PURE__ */ r(
|
|
157
171
|
"div",
|
|
158
172
|
{
|
|
159
173
|
class: "IncodePhoneInputComposedErrorWrapper",
|
|
160
|
-
"data-testid": `${
|
|
174
|
+
"data-testid": `${e}-error-wrapper`,
|
|
161
175
|
children: [
|
|
162
|
-
|
|
163
|
-
/* @__PURE__ */
|
|
176
|
+
D && /* @__PURE__ */ r("div", { class: "IncodePhoneInputComposedIconWrapper", children: /* @__PURE__ */ r(q, { size: 16 }) }),
|
|
177
|
+
/* @__PURE__ */ r("p", { id: B, class: "IncodePhoneInputComposedError", children: c })
|
|
164
178
|
]
|
|
165
179
|
}
|
|
166
180
|
),
|
|
167
|
-
h && !
|
|
181
|
+
h && !c && /* @__PURE__ */ r(
|
|
168
182
|
"div",
|
|
169
183
|
{
|
|
170
184
|
class: "IncodePhoneInputComposedHelperWrapper",
|
|
171
|
-
"data-testid": `${
|
|
185
|
+
"data-testid": `${e}-helper-wrapper`,
|
|
172
186
|
children: [
|
|
173
|
-
|
|
174
|
-
/* @__PURE__ */
|
|
187
|
+
K && /* @__PURE__ */ r("div", { class: "IncodePhoneInputComposedIconWrapper", children: /* @__PURE__ */ r(_, { size: 16 }) }),
|
|
188
|
+
/* @__PURE__ */ r("p", { id: E, class: "IncodePhoneInputComposedHelper", children: h })
|
|
175
189
|
]
|
|
176
190
|
}
|
|
177
191
|
)
|
|
178
192
|
] });
|
|
179
193
|
}
|
|
180
194
|
);
|
|
181
|
-
|
|
195
|
+
c2.displayName = "PhoneInputComposed";
|
|
182
196
|
export {
|
|
183
|
-
|
|
197
|
+
c2 as P
|
|
184
198
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as i, u as t } from "./button-
|
|
2
|
-
import { S as e } from "./spinner-
|
|
3
|
-
import "./uiConfig-
|
|
4
|
-
import "./vendor-preact
|
|
1
|
+
import { b as i, u as t } from "./button-Yr39X4SE.js";
|
|
2
|
+
import { S as e } from "./spinner-Djok6FY8.js";
|
|
3
|
+
import "./uiConfig-CKJmKRCo.js";
|
|
4
|
+
import "./vendor-preact--mDTxXnt.js";
|
|
5
5
|
const s = () => {
|
|
6
6
|
const { t: r } = i();
|
|
7
7
|
return /* @__PURE__ */ t(
|
package/dist/selfie/selfie.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { u as t, I as o, a as u } from "../button-
|
|
1
|
+
import { u as t, I as o, a as u } from "../button-Yr39X4SE.js";
|
|
2
2
|
import { createSelfieManager as l } from "@incodetech/core/selfie";
|
|
3
|
-
import "../vendor-preact
|
|
3
|
+
import "../vendor-preact--mDTxXnt.js";
|
|
4
4
|
import "@incodetech/core";
|
|
5
|
-
import { P as m } from "../manualCaptureButton-
|
|
6
|
-
import { r as f } from "../incodeModule-
|
|
7
|
-
import { P as c } from "../processing-
|
|
8
|
-
import { T as p, C as d } from "../tutorial-
|
|
5
|
+
import { P as m } from "../manualCaptureButton-CtHbJjgz.js";
|
|
6
|
+
import { r as f } from "../incodeModule-Bxzkb7nW.js";
|
|
7
|
+
import { P as c } from "../processing-BGKugkCh.js";
|
|
8
|
+
import { T as p, C as d } from "../tutorial-Dptz5zyj.js";
|
|
9
9
|
const g = ({
|
|
10
10
|
config: e,
|
|
11
11
|
manager: s,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as r, d as s, e as h, S as p } from "./button-
|
|
2
|
-
import { D as y, A as u, y as T, k as d } from "./vendor-preact
|
|
1
|
+
import { u as r, d as s, e as h, S as p } from "./button-Yr39X4SE.js";
|
|
2
|
+
import { D as y, A as u, y as T, k as d } from "./vendor-preact--mDTxXnt.js";
|
|
3
3
|
const I = y(
|
|
4
4
|
({ children: n, className: e, ...a }, c) => /* @__PURE__ */ r("h2", { ref: c, class: `IncodeTitle ${e ?? ""}`, ...a, children: n })
|
|
5
5
|
), H = ({ children: n, className: e }) => /* @__PURE__ */ r("h1", { class: s("IncodeTypographyH1", e), children: n }), f = ({ children: n, className: e }) => /* @__PURE__ */ r("h3", { class: s("IncodeTypographyH3", e), children: n }), z = ({ children: n, className: e }) => /* @__PURE__ */ r("h4", { class: s("IncodeTypographyH4", e), children: n }), v = ({ children: n, className: e }) => /* @__PURE__ */ r("h5", { class: s("IncodeTypographyH5", e), children: n }), x = ({ children: n, className: e }) => /* @__PURE__ */ r("p", { class: s("IncodeTypographyP", e), children: n }), S = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { u as t, S as _, b as g, d as N, B as F, e as y } from "./button-
|
|
2
|
-
import { A as a, y as p, g as w, q as V, k as L, d as I } from "./vendor-preact
|
|
3
|
-
import "./uiConfig-
|
|
4
|
-
import { S as P } from "./successIcon-
|
|
5
|
-
import { P as m } from "./page-
|
|
6
|
-
import { T as v, S as B } from "./spinner-
|
|
7
|
-
import { E as M } from "./errorContent-
|
|
8
|
-
import { M as U, B as H } from "./manualCaptureButton-
|
|
1
|
+
import { u as t, S as _, b as g, d as N, B as F, e as y } from "./button-Yr39X4SE.js";
|
|
2
|
+
import { A as a, y as p, g as w, q as V, k as L, d as I } from "./vendor-preact--mDTxXnt.js";
|
|
3
|
+
import "./uiConfig-CKJmKRCo.js";
|
|
4
|
+
import { S as P } from "./successIcon-CjkBWk8J.js";
|
|
5
|
+
import { P as m } from "./page-DO2rYslN.js";
|
|
6
|
+
import { T as v, S as B } from "./spinner-Djok6FY8.js";
|
|
7
|
+
import { E as M } from "./errorContent-LcOhVnBZ.js";
|
|
8
|
+
import { M as U, B as H } from "./manualCaptureButton-CtHbJjgz.js";
|
|
9
9
|
const h = ({
|
|
10
10
|
icon: i,
|
|
11
11
|
title: n,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ConsentConfig } from '@incodetech/core/consent';
|
|
2
|
+
import { ConsentManager } from '@incodetech/core/consent';
|
|
3
|
+
import { FC } from 'preact/compat';
|
|
4
|
+
|
|
5
|
+
export declare const Consent: FC<ConsentProps>;
|
|
6
|
+
|
|
7
|
+
declare type ConsentProps = IncodeModuleProps<ConsentConfig, void, ConsentManager>;
|
|
8
|
+
|
|
9
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
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
|
+
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
17
|
+
*/
|
|
18
|
+
manager?: TManager;
|
|
19
|
+
/**
|
|
20
|
+
* Callback invoked when the module completes successfully.
|
|
21
|
+
* @param result - Optional result data from the module completion
|
|
22
|
+
*/
|
|
23
|
+
onFinish?: (result?: TResult) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Callback invoked when a fatal module error occurs.
|
|
26
|
+
*/
|
|
27
|
+
onError?: (error: string | undefined) => void;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { }
|
|
31
|
+
|
|
32
|
+
declare global {
|
|
33
|
+
interface HTMLElementTagNameMap {
|
|
34
|
+
'incode-consent': HTMLElement & IncodeModuleProps<ConsentConfig, void, ConsentManager>;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScreenOrientationProvider as et, createScreenOrientationObserver as tt, getDeviceClass as nt } from "@incodetech/core";
|
|
2
|
-
import { d as it, y as st, a as rt, C as ot } from "./vendor-preact
|
|
2
|
+
import { d as it, y as st, a as rt, C as ot } from "./vendor-preact--mDTxXnt.js";
|
|
3
3
|
let ne = null;
|
|
4
4
|
function at() {
|
|
5
5
|
if (!ne) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260320-
|
|
3
|
+
"version": "0.0.0-dev-20260320-e46eb90",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -39,6 +39,13 @@
|
|
|
39
39
|
"./email/styles.css": {
|
|
40
40
|
"default": "./dist/email/styles.css"
|
|
41
41
|
},
|
|
42
|
+
"./consent": {
|
|
43
|
+
"types": "./dist/types/consent.d.ts",
|
|
44
|
+
"import": "./dist/consent/consent.es.js"
|
|
45
|
+
},
|
|
46
|
+
"./consent/styles.css": {
|
|
47
|
+
"default": "./dist/consent/styles.css"
|
|
48
|
+
},
|
|
42
49
|
"./id": {
|
|
43
50
|
"types": "./dist/types/id.d.ts",
|
|
44
51
|
"import": "./dist/id/id.es.js"
|
|
@@ -112,14 +119,17 @@
|
|
|
112
119
|
],
|
|
113
120
|
"dependencies": {
|
|
114
121
|
"@tailwindcss/vite": "^4.1.17",
|
|
122
|
+
"dompurify": "^3.3.3",
|
|
115
123
|
"i18next": "^25.7.1",
|
|
116
124
|
"i18next-browser-languagedetector": "^8.2.0",
|
|
117
125
|
"i18next-http-backend": "^3.0.2",
|
|
118
126
|
"libphonenumber-js": "^1.11.0",
|
|
127
|
+
"marked": "^17.0.5",
|
|
119
128
|
"preact-custom-element": "^4.6.0",
|
|
129
|
+
"preact-markup": "^2.1.1",
|
|
120
130
|
"qrcode": "^1.5.4",
|
|
121
131
|
"tailwindcss": "^4.1.17",
|
|
122
|
-
"@incodetech/core": "0.0.0-dev-20260320-
|
|
132
|
+
"@incodetech/core": "0.0.0-dev-20260320-e46eb90"
|
|
123
133
|
},
|
|
124
134
|
"devDependencies": {
|
|
125
135
|
"@microsoft/api-extractor": "^7.53.3",
|