@incodetech/web 0.0.0-dev-20260723-e73d5099 → 0.0.0-dev-20260723-397b76d8
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/ae-signature/ae-signature.es.js +5 -3
- package/dist/antifraud/antifraud.es.js +6 -5
- package/dist/authentication/authentication.es.js +7 -6
- package/dist/{autoFocusTitle-IN4TR7QN.js → autoFocusTitle-DIuy3fAL.js} +1 -1
- package/dist/{bottomSheet-DIxxFBUN.js → bottomSheet-DLa3gA9I.js} +1 -1
- package/dist/{captureNotification-DatgEL_T.js → captureNotification-CYNo5vI6.js} +8 -8
- package/dist/certificate-issuance/certificate-issuance.es.js +13 -13
- package/dist/{checkbox-BZ3Vuawq.js → checkbox-CWH3awlJ.js} +3 -3
- package/dist/{connectionError-BILGlQvh.js → connectionError-CkMyPEEa.js} +3 -3
- package/dist/consent/consent.es.js +10 -11
- package/dist/{countrySelector-DSCcBRMz.js → countrySelector-7r0JHTbz.js} +2 -2
- package/dist/cpf-ocr/cpf-ocr.es.js +1 -1
- package/dist/{cpfOcr-DCIXCw5X.js → cpfOcr-C7oATNXA.js} +9 -10
- package/dist/cpfOcr-O8X5O6z1.js +2 -0
- package/dist/cross-document-data-match/cross-document-data-match.es.js +6 -5
- package/dist/curp-validation/curp-validation.es.js +17 -19
- package/dist/{customFields-CFRWCs3I.js → customFields-BgFMUeIp.js} +13 -13
- package/dist/{customWatchlist-CAGzLeIU.js → customWatchlist-DMz7aerw.js} +9 -8
- package/dist/dashboardTheme-C6I2WQPK.js +223 -0
- package/dist/dateInputComposed-6wvZi6m1.js +1 -0
- package/dist/{dateInputComposed-Dy8s_pst.js → dateInputComposed-BBgQB4tl.js} +4 -4
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/{documentCapture-Cdksl5DR.js → documentCapture-BC6DBpAG.js} +19 -19
- package/dist/documentCapture-diUvht9m.js +2 -0
- package/dist/{dropdownComposed-BHoaSeXB.js → dropdownComposed-C0IZ1uRF.js} +4 -4
- package/dist/dropdownComposed-DBnwuqE4.js +1 -0
- package/dist/{dynamicForms-CujcVUvG.js → dynamicForms-skhwHeCx.js} +14 -14
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-CtJT7I0D.js → ekybModule-bGDvjIj7.js} +17 -17
- package/dist/ekybModule-bUgBSy9a.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-D-ZKad8r.js +2 -0
- package/dist/{ekycModule-Clgu1ydz.js → ekycModule-DVVAasG2.js} +15 -15
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-C-eiNR8V.js → electronic-signature-Dy0hN6lu.js} +11 -12
- package/dist/email/email.es.js +10 -10
- package/dist/{emailInput-BIXyslAC.js → emailInput-CGDc3flM.js} +3 -3
- package/dist/{expiredId-DE_SO8Iy.js → expiredId-CDxPLhiW.js} +5 -5
- package/dist/{extensibility-Dv0Z50OE.js → extensibility-DMroM1OU.js} +37 -42
- package/dist/extensibility.es.js +24 -28
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-DxRtNWtc.js +2 -0
- package/dist/{faceMatch-DVkAPLup.js → faceMatch-si9UUQ3_.js} +10 -11
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/{fieldComparison-BbgIcdF5.js → fieldComparison-CR15MASU.js} +11 -11
- package/dist/fieldComparison-MLm7cnmM.js +2 -0
- package/dist/fiscal-qr/fiscal-qr.es.js +12 -11
- package/dist/flow/flow.es.js +10 -13
- package/dist/geolocation/geolocation.es.js +11 -11
- package/dist/government-validation/government-validation.es.js +11 -11
- package/dist/{homeScreen-CqhuW7le.js → homeScreen-0T3uPq2I.js} +6 -8
- package/dist/{page-DidH_RkX.js → hooks-Bl4BccV8.js} +374 -5
- package/dist/{icons-w6luRFtW.js → icons-CqDMnQ1g.js} +2 -2
- package/dist/id/id.es.js +22 -25
- package/dist/id-verification/id-verification.es.js +5 -5
- package/dist/{idOcr-Y8dKRIN4.js → idOcr-C9Cj1ino.js} +13 -13
- package/dist/identity-reuse/identity-reuse.es.js +6 -7
- package/dist/{incode-logo-57XFniXU.js → incode-logo-DasIBJw8.js} +64 -1
- package/dist/{incodeComponent-BCd_bJev.js → incodeComponent-DHbfYA-r.js} +2 -2
- package/dist/{incodeModule-Bgg06vwW.js → incodeModule-BiwGYtcv.js} +1 -1
- package/dist/index.es.js +14 -5
- package/dist/{inputComposed-DzyxybSu.js → inputComposed-C1Z4OxHI.js} +4 -4
- package/dist/inputComposed-DL1YD59E.js +1 -0
- package/dist/{mandatoryConsent-DnoDgtOT.js → mandatoryConsent-DEGcSJhx.js} +9 -10
- package/dist/{modal-C-Q9km3s.js → modal-BgjeiOv5.js} +3 -3
- package/dist/{optionAccessibleLabel-RW68xECf.js → optionAccessibleLabel-DAvz9vdG.js} +5 -5
- package/dist/{otpInput-H_Y9R8B8.js → otpInput-DLnLXnJo.js} +5 -5
- package/dist/{pdf-BAb2ezmC.js → pdf-BYHLDKvG.js} +1 -1
- package/dist/{pdfViewer-XeOSCt-S.js → pdfViewer-BVnrfnFA.js} +3 -3
- package/dist/{permissions-J6qPq98P.js → permissions-Bcn-2yHb.js} +9 -11
- package/dist/phone/phone.es.js +11 -11
- package/dist/{phoneInputComposed-DaBNd-wY.js → phoneInputComposed-CJavLkBe.js} +5 -5
- package/dist/{processing-BN2Mgw0p.js → processing-DBuq4_4J.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +5 -3
- package/dist/{radioGroupComposed-D2qsp3Vx.js → radioGroupComposed-YO_U82bM.js} +5 -5
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +15 -17
- package/dist/{richText-D-G1XXAw.js → richText-Bbp3TPzi.js} +1 -1
- package/dist/selfie/selfie.es.js +9 -9
- package/dist/signature/signature.es.js +11 -11
- package/dist/{snackbar-BsV5S3Z7.js → snackbar-CSODaFW4.js} +1 -1
- package/dist/{loadingIcon-B0ysgiNq.js → spacer-I8ILMQiA.js} +68 -68
- package/dist/{spinner-BMeIEK1d.js → spinner-YXqSOUqg.js} +45 -4
- package/dist/{statusPage-DPNU-L3H.js → statusPage-DUejG583.js} +3 -3
- package/dist/{tabs-CYtIZmR0.js → tabs-CG7W9rbn.js} +1 -1
- package/dist/{tutorial-CTCp3mrv.js → tutorial-hXqxb0q5.js} +10 -12
- package/dist/types/ae-signature.d.ts +6 -3
- package/dist/types/antifraud.d.ts +6 -3
- package/dist/types/authentication.d.ts +6 -3
- package/dist/types/certificate-issuance.d.ts +6 -3
- package/dist/types/consent.d.ts +6 -3
- package/dist/types/cpf-ocr.d.ts +56 -5
- package/dist/types/cross-document-data-match.d.ts +6 -3
- package/dist/types/curp-validation.d.ts +6 -3
- package/dist/types/document-capture.d.ts +6 -3
- package/dist/types/ekyb.d.ts +6 -3
- package/dist/types/ekyc.d.ts +6 -3
- package/dist/types/electronic-signature.d.ts +2 -2
- package/dist/types/email.d.ts +6 -26
- package/dist/types/extensibility.d.ts +2 -2
- package/dist/types/face-match.d.ts +6 -25
- package/dist/types/field-comparison.d.ts +6 -3
- package/dist/types/fiscal-qr.d.ts +9 -5
- package/dist/types/flow.d.ts +2 -2
- package/dist/types/geolocation.d.ts +6 -3
- package/dist/types/government-validation.d.ts +6 -3
- package/dist/types/id-verification.d.ts +2 -2
- package/dist/types/id.d.ts +6 -3
- package/dist/types/identity-reuse.d.ts +2 -2
- package/dist/types/index.d.ts +23 -1
- package/dist/types/phone.d.ts +6 -27
- package/dist/types/qe-signature.d.ts +6 -3
- package/dist/types/redirect-to-mobile.d.ts +4 -1
- package/dist/types/selfie.d.ts +6 -3
- package/dist/types/signature.d.ts +6 -3
- package/dist/types/video-selfie.d.ts +6 -9
- package/dist/types/watchlist.d.ts +6 -3
- package/dist/types/workflow.d.ts +2 -2
- package/dist/{i18n-CushpmmJ.js → uiConfig-DSGyRMSC.js} +26 -3
- package/dist/{useModuleLoader-BTo4NZuV.js → useModuleLoader-V8kW4raN.js} +32 -180
- package/dist/{verificationResult-xubIOKNi.js → verificationResult-4X7V8KzA.js} +8 -9
- package/dist/video-selfie/video-selfie.es.js +16 -19
- package/dist/watchlist/watchlist.es.js +9 -8
- package/dist/{watchlistForBusiness-BWaVfgeV.js → watchlistForBusiness-DWg7G4IB.js} +12 -12
- package/dist/workflow/workflow.es.js +17 -14
- package/package.json +2 -2
- package/dist/button-Dz6AsbmF.js +0 -40
- package/dist/cpfOcr-BToIikZC.js +0 -2
- package/dist/dateInputComposed-DDtUFSrC.js +0 -1
- package/dist/documentCapture-CgBRyZHX.js +0 -2
- package/dist/dropdownComposed-4RQ6KcIz.js +0 -1
- package/dist/ekybModule-CIhe-NjG.js +0 -2
- package/dist/ekycModule-CYdRFXyJ.js +0 -2
- package/dist/errorIcon-BA4T6iy-.js +0 -26
- package/dist/faceMatch-BnDfDC5l.js +0 -2
- package/dist/fieldComparison-DeH3dh5a.js +0 -2
- package/dist/hooks-CxG4XS7P.js +0 -175
- package/dist/inputComposed-CrmMDnMp.js +0 -1
- package/dist/spinner-BCDCoi9C.js +0 -1
- package/dist/terminalErrorPage-DwH-JDg0.js +0 -71
- package/dist/transitionSpinner-B7mmwUrc.js +0 -30
- package/dist/typography-BZIpjo97.js +0 -45
- package/dist/uiConfig-D2_wawvr.js +0 -25
- /package/dist/{aligndevicelottie-C9Mrj6AB.js → aligndevicelottie-t8IVRvKe.js} +0 -0
- /package/dist/{back-horizontal-hint-B-EHEYFx.js → back-horizontal-hint-Dk3Qx2Jy.js} +0 -0
- /package/dist/{back-tutorial-Bkm8BMI-.js → back-tutorial-Sa9INxfJ.js} +0 -0
- /package/dist/{back-vertical-hint-Yo_1LFB2.js → back-vertical-hint-BSXiELAo.js} +0 -0
- /package/dist/{backdevicelottie-FrU5aQgi.js → backdevicelottie--JZVcmsk.js} +0 -0
- /package/dist/{blurdevicelottie-jfRWrBAA.js → blurdevicelottie-D8d1O-r6.js} +0 -0
- /package/dist/{browser-ponyfill-vwGrGxYJ.js → browser-ponyfill-R_VWu0FU.js} +0 -0
- /package/dist/{defineProperty-BZW5EcGC.js → defineProperty-BsIK7Gws.js} +0 -0
- /package/dist/{flip-animation-RSWxSh3p.js → flip-animation-CulASaCy.js} +0 -0
- /package/dist/{front-horizontal-hint-BxmjB6HQ.js → front-horizontal-hint-GlNgmYkY.js} +0 -0
- /package/dist/{front-vertical-hint-BS4R8Ge4.js → front-vertical-hint-Bn2FOrKQ.js} +0 -0
- /package/dist/{frontdevicelottie-CvMs7jnY.js → frontdevicelottie-DGU1DFsb.js} +0 -0
- /package/dist/{glaredevicelottie-B_g3-Xay.js → glaredevicelottie-Dqjzhp2v.js} +0 -0
- /package/dist/{id-laser-h-DS31CxU-.js → id-laser-h-BXX4SvZX.js} +0 -0
- /package/dist/{id-laser-v-Cb982xnA.js → id-laser-v-BXUywa3r.js} +0 -0
- /package/dist/{id-tutorial-D2hF8yoN.js → id-tutorial-Dss1CIkf.js} +0 -0
- /package/dist/{lottie_light-B0mE6Bs2.js → lottie_light-XgO-x03h.js} +0 -0
- /package/dist/{modal.hooks-ZrzmHAUa.js → modal.hooks-BbFC-AOq.js} +0 -0
- /package/dist/{numberedStep-BOfeDZfJ.js → numberedStep-DtIEG6uM.js} +0 -0
- /package/dist/{passport-horizontal-hint-B0YSV7zH.js → passport-horizontal-hint-C0gW3Rvi.js} +0 -0
- /package/dist/{passport-tutorial-DvynHyve.js → passport-tutorial-B6e9nM9w.js} +0 -0
- /package/dist/{passport-vertical-hint-g5QGlFT5.js → passport-vertical-hint-lrBhacG3.js} +0 -0
- /package/dist/{registerIncodeElement-ClG0mgIF.js → registerIncodeElement-C9y6CNCw.js} +0 -0
- /package/dist/{requiredLabelHint-DmD8ZCH-.js → requiredLabelHint-Dx0WS2cR.js} +0 -0
- /package/dist/{selfieTutorial-eySh67am.js → selfieTutorial-DfjgQ9w5.js} +0 -0
- /package/dist/{successIcon-B5mGvdx1.js → successIcon-BshEyvXA.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useTranslation } from "../uiConfig-DSGyRMSC.js";
|
|
2
2
|
import { _ as y, v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as SuccessIcon } from "../successIcon-
|
|
7
|
-
import { t as StatusPage } from "../statusPage-
|
|
8
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
3
|
+
import { g as useManager, m as useModuleTerminalCallbacks, t as withStandaloneModuleBootstrap } from "../hooks-Bl4BccV8.js";
|
|
4
|
+
import { n as LoadingIcon } from "../spacer-I8ILMQiA.js";
|
|
5
|
+
import { t as IncodeComponent } from "../incodeComponent-DHbfYA-r.js";
|
|
6
|
+
import { t as SuccessIcon } from "../successIcon-BshEyvXA.js";
|
|
7
|
+
import { t as StatusPage } from "../statusPage-DUejG583.js";
|
|
8
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-BiwGYtcv.js";
|
|
9
9
|
import { createWatchlistManager } from "@incodetech/core/watchlist";
|
|
10
10
|
//#region src/modules/watchlist/watchlist.tsx
|
|
11
11
|
var WatchlistContent = ({ onFinish }) => {
|
|
@@ -30,7 +30,8 @@ var WatchlistContent = ({ onFinish }) => {
|
|
|
30
30
|
subtitle: t("watchList.wontTake")
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
|
-
var
|
|
33
|
+
var WatchlistWithLocalConfig = ({ onFinish }) => /* @__PURE__ */ u(IncodeComponent, { children: /* @__PURE__ */ u(WatchlistContent, { onFinish }) });
|
|
34
|
+
var Watchlist = withStandaloneModuleBootstrap(WatchlistWithLocalConfig, "WATCHLIST");
|
|
34
35
|
registerIncodeModuleElement(Watchlist, "incode-watchlist");
|
|
35
36
|
//#endregion
|
|
36
37
|
export { Watchlist };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useTranslation } from "./uiConfig-DSGyRMSC.js";
|
|
2
2
|
import { _ as y, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as CountrySelector } from "./countrySelector-DSCcBRMz.js";
|
|
3
|
+
import { g as useManager, i as Page, m as useModuleTerminalCallbacks, t as withStandaloneModuleBootstrap } from "./hooks-Bl4BccV8.js";
|
|
4
|
+
import { n as LoadingIcon } from "./spacer-I8ILMQiA.js";
|
|
5
|
+
import { r as Button } from "./incode-logo-DasIBJw8.js";
|
|
6
|
+
import { t as IncodeComponent } from "./incodeComponent-DHbfYA-r.js";
|
|
7
|
+
import { t as SuccessIcon } from "./successIcon-BshEyvXA.js";
|
|
8
|
+
import { t as StatusPage } from "./statusPage-DUejG583.js";
|
|
9
|
+
import { t as InputComposed } from "./inputComposed-C1Z4OxHI.js";
|
|
10
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-BiwGYtcv.js";
|
|
11
|
+
import { t as CountrySelector } from "./countrySelector-7r0JHTbz.js";
|
|
13
12
|
import { createWatchlistForBusinessManager } from "@incodetech/core/watchlist-for-business";
|
|
14
13
|
//#region src/modules/watchlist-for-business/watchlistForBusiness.tsx
|
|
15
14
|
var WatchlistForBusinessContent = ({ onFinish }) => {
|
|
@@ -74,7 +73,8 @@ var WatchlistForBusinessContent = ({ onFinish }) => {
|
|
|
74
73
|
}
|
|
75
74
|
return null;
|
|
76
75
|
};
|
|
77
|
-
var
|
|
76
|
+
var WatchlistForBusinessWithLocalConfig = ({ onFinish }) => /* @__PURE__ */ u(IncodeComponent, { children: /* @__PURE__ */ u(WatchlistForBusinessContent, { onFinish }) });
|
|
77
|
+
var WatchlistForBusiness = withStandaloneModuleBootstrap(WatchlistForBusinessWithLocalConfig, "WATCHLIST_BUSINESS");
|
|
78
78
|
registerIncodeModuleElement(WatchlistForBusiness, "incode-watchlist-for-business");
|
|
79
79
|
//#endregion
|
|
80
80
|
export { WatchlistForBusiness };
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as readStoredLanguage, i as useTranslation, t as setUiConfig } from "../uiConfig-DSGyRMSC.js";
|
|
2
2
|
import { _ as y, c as z, l as A, o as P, p as d, v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-Bgg06vwW.js";
|
|
10
|
-
import { t as TerminalErrorPage } from "../terminalErrorPage-DwH-JDg0.js";
|
|
11
|
-
import { a as resolveApiKey, g as setupSDK, i as HEADLESS_WORKFLOW_MODULE_KEYS, l as LAZY_UI_MODULES, o as extractIncodeStatus, s as UnsupportedModule, t as useModuleLoader, v as fetchAndApplyTheme, y as isDesktopOrEmulated } from "../useModuleLoader-BTo4NZuV.js";
|
|
3
|
+
import { i as fetchAndApplyTheme } from "../dashboardTheme-C6I2WQPK.js";
|
|
4
|
+
import { g as useManager, i as Page, n as ResolvedConfigProvider, r as TerminalErrorPage, s as TransitionSpinner } from "../hooks-Bl4BccV8.js";
|
|
5
|
+
import { t as IncodeComponent } from "../incodeComponent-DHbfYA-r.js";
|
|
6
|
+
import { t as AutoFocusTitle } from "../autoFocusTitle-DIuy3fAL.js";
|
|
7
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-BiwGYtcv.js";
|
|
8
|
+
import { a as resolveApiKey, g as setupSDK, i as HEADLESS_WORKFLOW_MODULE_KEYS, l as LAZY_UI_MODULES, o as extractIncodeStatus, s as UnsupportedModule, t as useModuleLoader, v as isDesktopOrEmulated } from "../useModuleLoader-V8kW4raN.js";
|
|
12
9
|
import { resolveWasmConfig, upgradeToWasmHttpClient, warmupWasm } from "@incodetech/core/wasm";
|
|
13
10
|
import { classifyScoreStatus } from "@incodetech/core/flow";
|
|
14
11
|
import { bootstrapSession, refreshQrUrlUuid } from "@incodetech/core/session";
|
|
@@ -131,6 +128,12 @@ var LAZY_WORKFLOW_MODULES = {
|
|
|
131
128
|
ID: () => import("../id-verification/id-verification.es.js").then((m) => m.IdVerification),
|
|
132
129
|
IDENTITY_REUSE: () => import("../identity-reuse/identity-reuse.es.js").then((m) => m.IdentityReuse)
|
|
133
130
|
};
|
|
131
|
+
function setupWorkflowSDK(options) {
|
|
132
|
+
return setupSDK({
|
|
133
|
+
...options,
|
|
134
|
+
preloadFlow: false
|
|
135
|
+
});
|
|
136
|
+
}
|
|
134
137
|
async function fetchWorkflowTheme() {
|
|
135
138
|
try {
|
|
136
139
|
const theme = await fetchAndApplyTheme();
|
|
@@ -218,7 +221,7 @@ function useWorkflowInitialization(options) {
|
|
|
218
221
|
resolvedInterviewId = session.interviewId;
|
|
219
222
|
} else throw new Error("Workflow requires token, or configurationId with apiKey or clientId");
|
|
220
223
|
if (signal.aborted) return;
|
|
221
|
-
await
|
|
224
|
+
await setupWorkflowSDK({
|
|
222
225
|
token: resolvedToken,
|
|
223
226
|
lang: options.lang
|
|
224
227
|
});
|
|
@@ -263,7 +266,7 @@ function useWorkflowInitialization(options) {
|
|
|
263
266
|
}
|
|
264
267
|
//#endregion
|
|
265
268
|
//#region src/modules/workflow/workflow.tsx
|
|
266
|
-
var LazyHomeScreen = z(() => import("../homeScreen-
|
|
269
|
+
var LazyHomeScreen = z(() => import("../homeScreen-0T3uPq2I.js").then((module) => ({ default: module.HomeScreen })));
|
|
267
270
|
function mapModuleConfig(options) {
|
|
268
271
|
const { moduleKey, config, workflowId, authHint, loginHintPrefill, lang, mergeSessionRecordings, ageAssurance } = options;
|
|
269
272
|
switch (moduleKey) {
|
|
@@ -455,11 +458,11 @@ var IncodeWorkflowContent = ({ config, onFinish, onError }) => {
|
|
|
455
458
|
onError
|
|
456
459
|
});
|
|
457
460
|
};
|
|
458
|
-
var IncodeWorkflow = ({ config, onFinish, onError }) => /* @__PURE__ */ u(IncodeComponent, { children: config ? /* @__PURE__ */ u(IncodeWorkflowContent, {
|
|
461
|
+
var IncodeWorkflow = ({ config, onFinish, onError }) => /* @__PURE__ */ u(IncodeComponent, { children: config ? /* @__PURE__ */ u(ResolvedConfigProvider, { children: /* @__PURE__ */ u(IncodeWorkflowContent, {
|
|
459
462
|
config,
|
|
460
463
|
onFinish,
|
|
461
464
|
onError
|
|
462
|
-
}) : null });
|
|
465
|
+
}) }) : null });
|
|
463
466
|
registerIncodeModuleElement(IncodeWorkflow, "incode-workflow");
|
|
464
467
|
//#endregion
|
|
465
468
|
export { IncodeWorkflow, mapModuleConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260723-
|
|
3
|
+
"version": "0.0.0-dev-20260723-397b76d8",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
"qrcode": "^1.5.4",
|
|
292
292
|
"signature_pad": "^5.1.3",
|
|
293
293
|
"tailwindcss": "^4.1.17",
|
|
294
|
-
"@incodetech/core": "0.0.0-dev-20260723-
|
|
294
|
+
"@incodetech/core": "0.0.0-dev-20260723-397b76d8"
|
|
295
295
|
},
|
|
296
296
|
"devDependencies": {
|
|
297
297
|
"@microsoft/api-extractor": "^7.53.3",
|
package/dist/button-Dz6AsbmF.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { a as D, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import { n as cn, t as LoadingIcon } from "./loadingIcon-B0ysgiNq.js";
|
|
3
|
-
//#region src/shared/button/button.tsx
|
|
4
|
-
var LOADER_SIZE = 30;
|
|
5
|
-
var variantClass = {
|
|
6
|
-
primary: "IncodeButtonPrimary",
|
|
7
|
-
secondary: "IncodeButtonSecondary",
|
|
8
|
-
link: "IncodeButtonLink"
|
|
9
|
-
};
|
|
10
|
-
var sizeClass = {
|
|
11
|
-
L: "IncodeButtonL",
|
|
12
|
-
M: "IncodeButtonM",
|
|
13
|
-
S: "IncodeButtonS",
|
|
14
|
-
inline: "IncodeButtonInline"
|
|
15
|
-
};
|
|
16
|
-
var Button = D((props, ref) => {
|
|
17
|
-
const { isLoading = false, variant = "primary", size = "L", icon, class: className, type = "button", children, disabled, ...rest } = props;
|
|
18
|
-
const iconOnly = !children && !!icon;
|
|
19
|
-
const showLoader = isLoading && size === "L";
|
|
20
|
-
const renderContent = () => {
|
|
21
|
-
if (showLoader) return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(LoadingIcon, { size: LOADER_SIZE }), children ? /* @__PURE__ */ u("span", {
|
|
22
|
-
class: "IncodeButtonLoadingLabel",
|
|
23
|
-
children
|
|
24
|
-
}) : null] });
|
|
25
|
-
if (iconOnly) return icon;
|
|
26
|
-
if (icon) return /* @__PURE__ */ u(k, { children: [children, icon] });
|
|
27
|
-
return children;
|
|
28
|
-
};
|
|
29
|
-
return /* @__PURE__ */ u("button", {
|
|
30
|
-
ref,
|
|
31
|
-
...rest,
|
|
32
|
-
class: cn("IncodeButton", variantClass[variant], sizeClass[size], showLoader ? "IncodeButtonLoading" : "", iconOnly ? "IncodeButtonIconOnly" : "", className),
|
|
33
|
-
disabled: disabled || showLoader,
|
|
34
|
-
"aria-busy": showLoader || void 0,
|
|
35
|
-
type,
|
|
36
|
-
children: renderContent()
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
//#endregion
|
|
40
|
-
export { Button as t };
|
package/dist/cpfOcr-BToIikZC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./dateInputComposed-Dy8s_pst.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./dropdownComposed-BHoaSeXB.js";
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
//#region src/shared/icons/errorIcon.tsx
|
|
3
|
-
var ErrorIcon = ({ size = 32 }) => {
|
|
4
|
-
return /* @__PURE__ */ u("svg", {
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
-
width: size,
|
|
7
|
-
height: size,
|
|
8
|
-
viewBox: "0 0 64 64",
|
|
9
|
-
fill: "none",
|
|
10
|
-
class: "IncodeErrorIcon",
|
|
11
|
-
"aria-hidden": "true",
|
|
12
|
-
children: [/* @__PURE__ */ u("path", {
|
|
13
|
-
"fill-rule": "evenodd",
|
|
14
|
-
"clip-rule": "evenodd",
|
|
15
|
-
d: "M32 6.66669C18.032 6.66669 6.66669 18.0294 6.66669 32C6.66669 45.968 18.032 57.3334 32 57.3334C45.968 57.3334 57.3334 45.968 57.3334 32C57.3334 18.0294 45.968 6.66669 32 6.66669Z",
|
|
16
|
-
fill: "var(--icon-status-negative)"
|
|
17
|
-
}), /* @__PURE__ */ u("path", {
|
|
18
|
-
"fill-rule": "evenodd",
|
|
19
|
-
"clip-rule": "evenodd",
|
|
20
|
-
d: "M39.6426 39.6368C39.2533 40.0261 38.7413 40.2235 38.2293 40.2235C37.7146 40.2235 37.2053 40.0261 36.8133 39.6368L31.9973 34.8181L27.1946 39.6208C26.4133 40.4021 25.1467 40.4021 24.3653 39.6208C23.5867 38.8395 23.5867 37.5755 24.3653 36.7941L29.168 31.9915L24.3627 27.1835C23.5813 26.4021 23.5813 25.1381 24.3627 24.3568C25.144 23.5755 26.408 23.5755 27.1893 24.3568L31.9946 29.1621L36.8 24.3595C37.5813 23.5781 38.8453 23.5781 39.6266 24.3595C40.408 25.1381 40.408 26.4048 39.6266 27.1861L34.824 31.9915L39.6426 36.8075C40.424 37.5888 40.424 38.8555 39.6426 39.6368Z",
|
|
21
|
-
fill: "var(--icon-neutral-0)"
|
|
22
|
-
})]
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
//#endregion
|
|
26
|
-
export { ErrorIcon as t };
|
package/dist/hooks-CxG4XS7P.js
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { _ as y, d as T, h as q, l as A, p as d, s as gn } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import { ScreenOrientationProvider, createScreenOrientationObserver, getDeviceClass } from "@incodetech/core/device";
|
|
3
|
-
import "@incodetech/core/events";
|
|
4
|
-
import "@incodetech/core/feature-management";
|
|
5
|
-
//#region src/hooks/useManager.ts
|
|
6
|
-
/**
|
|
7
|
-
* Hook for subscribing to manager state updates
|
|
8
|
-
* @param factory - Factory function that creates the manager instance
|
|
9
|
-
* @param options - Configuration options
|
|
10
|
-
* @returns Tuple of [state, manager]
|
|
11
|
-
*/
|
|
12
|
-
function useManager(factory, options = {}) {
|
|
13
|
-
const { autoLoad = true, manageLifecycle = true } = options;
|
|
14
|
-
const [manager] = d(factory);
|
|
15
|
-
const [state, setState] = d(() => manager.getState());
|
|
16
|
-
y(() => {
|
|
17
|
-
const unsubscribe = manager.subscribe(setState);
|
|
18
|
-
if (manageLifecycle && autoLoad && manager.load) manager.load();
|
|
19
|
-
return () => {
|
|
20
|
-
unsubscribe();
|
|
21
|
-
if (manageLifecycle) manager.stop?.();
|
|
22
|
-
};
|
|
23
|
-
}, [
|
|
24
|
-
manager,
|
|
25
|
-
autoLoad,
|
|
26
|
-
manageLifecycle
|
|
27
|
-
]);
|
|
28
|
-
return [state, manager];
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/hooks/useScreenOrientation.ts
|
|
32
|
-
var observerInstance = null;
|
|
33
|
-
function getObserver() {
|
|
34
|
-
if (!observerInstance) observerInstance = createScreenOrientationObserver(new ScreenOrientationProvider(), getDeviceClass());
|
|
35
|
-
return observerInstance;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Hook that returns whether the device is in landscape mode on mobile (excluding iPad and desktop).
|
|
39
|
-
* Use this to show a landscape blocker overlay when true.
|
|
40
|
-
*/
|
|
41
|
-
function useScreenOrientation() {
|
|
42
|
-
const [isLandscapeMobile, setIsLandscapeMobile] = d(false);
|
|
43
|
-
y(() => {
|
|
44
|
-
const observer = getObserver();
|
|
45
|
-
setIsLandscapeMobile(observer.isLandscapeMobile);
|
|
46
|
-
return observer.subscribe((value) => {
|
|
47
|
-
gn(() => setIsLandscapeMobile(value));
|
|
48
|
-
});
|
|
49
|
-
}, []);
|
|
50
|
-
return { isLandscapeMobile };
|
|
51
|
-
}
|
|
52
|
-
//#endregion
|
|
53
|
-
//#region src/hooks/useModuleTerminalCallbacks.ts
|
|
54
|
-
function isModuleTerminalStatus(status) {
|
|
55
|
-
return status === "finished" || status === "error" || status === "closed" || status === "failed";
|
|
56
|
-
}
|
|
57
|
-
function isTerminalModuleState(state) {
|
|
58
|
-
return isModuleTerminalStatus(state.status);
|
|
59
|
-
}
|
|
60
|
-
function useModuleTerminalCallbacks({ status, onFinish, output, onError, error, errorCode, moduleErrorCode, errorStatuses }) {
|
|
61
|
-
const terminalFiredRef = A(false);
|
|
62
|
-
y(() => {
|
|
63
|
-
if (terminalFiredRef.current) return;
|
|
64
|
-
if (status === "finished") {
|
|
65
|
-
terminalFiredRef.current = true;
|
|
66
|
-
onFinish?.(output);
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
if (status === "closed") {
|
|
70
|
-
terminalFiredRef.current = true;
|
|
71
|
-
onError?.(void 0);
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
if ((errorStatuses ?? ["error"]).includes(status)) {
|
|
75
|
-
terminalFiredRef.current = true;
|
|
76
|
-
if (moduleErrorCode !== void 0) onError?.(error, errorCode, moduleErrorCode);
|
|
77
|
-
else onError?.(error, errorCode);
|
|
78
|
-
}
|
|
79
|
-
}, [
|
|
80
|
-
status,
|
|
81
|
-
onFinish,
|
|
82
|
-
output,
|
|
83
|
-
onError,
|
|
84
|
-
error,
|
|
85
|
-
errorCode,
|
|
86
|
-
moduleErrorCode,
|
|
87
|
-
errorStatuses
|
|
88
|
-
]);
|
|
89
|
-
}
|
|
90
|
-
//#endregion
|
|
91
|
-
//#region src/hooks/useFormScrollable.ts
|
|
92
|
-
/**
|
|
93
|
-
* Tracks whether an element's content overflows its visible area vertically.
|
|
94
|
-
* Re-evaluates on element resize and whenever `depCount` changes
|
|
95
|
-
* (e.g. number of form fields).
|
|
96
|
-
*/
|
|
97
|
-
function useFormScrollable(ref, depCount) {
|
|
98
|
-
const [isScrollable, setIsScrollable] = d(false);
|
|
99
|
-
y(() => {
|
|
100
|
-
const el = ref.current;
|
|
101
|
-
if (!el) return;
|
|
102
|
-
const check = () => setIsScrollable(el.scrollHeight > el.clientHeight);
|
|
103
|
-
check();
|
|
104
|
-
const ro = new ResizeObserver(check);
|
|
105
|
-
ro.observe(el);
|
|
106
|
-
return () => ro.disconnect();
|
|
107
|
-
}, [depCount, ref]);
|
|
108
|
-
return isScrollable;
|
|
109
|
-
}
|
|
110
|
-
//#endregion
|
|
111
|
-
//#region src/hooks/useMediaQuery.ts
|
|
112
|
-
var MOBILE_QUERY = "(max-width: 767px)";
|
|
113
|
-
function useMediaQuery(query) {
|
|
114
|
-
const [matches, setMatches] = d(() => typeof window !== "undefined" && window.matchMedia(query).matches);
|
|
115
|
-
y(() => {
|
|
116
|
-
if (typeof window === "undefined") return;
|
|
117
|
-
const mql = window.matchMedia(query);
|
|
118
|
-
const onChange = () => setMatches(mql.matches);
|
|
119
|
-
mql.addEventListener("change", onChange);
|
|
120
|
-
return () => mql.removeEventListener("change", onChange);
|
|
121
|
-
}, [query]);
|
|
122
|
-
return matches;
|
|
123
|
-
}
|
|
124
|
-
function useIsMobileDeviceWidth() {
|
|
125
|
-
return useMediaQuery(MOBILE_QUERY);
|
|
126
|
-
}
|
|
127
|
-
//#endregion
|
|
128
|
-
//#region src/hooks/useEventListener.ts
|
|
129
|
-
function useEventListener(eventName, handler) {
|
|
130
|
-
y(() => {
|
|
131
|
-
window.addEventListener(eventName, handler);
|
|
132
|
-
return () => window.removeEventListener(eventName, handler);
|
|
133
|
-
}, [eventName, handler]);
|
|
134
|
-
}
|
|
135
|
-
//#endregion
|
|
136
|
-
//#region src/hooks/useResizeObserver.ts
|
|
137
|
-
function useResizeObserver(ref, onResize) {
|
|
138
|
-
y(() => {
|
|
139
|
-
const element = ref.current;
|
|
140
|
-
if (!element || typeof ResizeObserver === "undefined") {
|
|
141
|
-
onResize();
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
144
|
-
onResize();
|
|
145
|
-
const resizeObserver = new ResizeObserver(onResize);
|
|
146
|
-
resizeObserver.observe(element);
|
|
147
|
-
return () => resizeObserver.disconnect();
|
|
148
|
-
}, [ref, onResize]);
|
|
149
|
-
}
|
|
150
|
-
//#endregion
|
|
151
|
-
//#region src/hooks/useTimeout.ts
|
|
152
|
-
/**
|
|
153
|
-
* Imperative one-shot timeout handle for user-triggered delays. Clears any
|
|
154
|
-
* pending timer on unmount.
|
|
155
|
-
*/
|
|
156
|
-
function useTimeoutHandle() {
|
|
157
|
-
const timerRef = A();
|
|
158
|
-
const clear = q(() => {
|
|
159
|
-
if (timerRef.current !== void 0) {
|
|
160
|
-
window.clearTimeout(timerRef.current);
|
|
161
|
-
timerRef.current = void 0;
|
|
162
|
-
}
|
|
163
|
-
}, []);
|
|
164
|
-
const schedule = q((callback, delayMs) => {
|
|
165
|
-
clear();
|
|
166
|
-
timerRef.current = window.setTimeout(callback, delayMs);
|
|
167
|
-
}, [clear]);
|
|
168
|
-
y(() => clear, [clear]);
|
|
169
|
-
return T(() => ({
|
|
170
|
-
schedule,
|
|
171
|
-
clear
|
|
172
|
-
}), [schedule, clear]);
|
|
173
|
-
}
|
|
174
|
-
//#endregion
|
|
175
|
-
export { useFormScrollable as a, useScreenOrientation as c, useIsMobileDeviceWidth as i, useManager as l, useResizeObserver as n, isTerminalModuleState as o, useEventListener as r, useModuleTerminalCallbacks as s, useTimeoutHandle as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./inputComposed-DzyxybSu.js";
|
package/dist/spinner-BCDCoi9C.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./spinner-BMeIEK1d.js";
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { n as useTranslation } from "./i18n-CushpmmJ.js";
|
|
2
|
-
import { _ as y, l as A, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import { t as Page } from "./page-DidH_RkX.js";
|
|
4
|
-
import { t as Button } from "./button-Dz6AsbmF.js";
|
|
5
|
-
import { t as ErrorIcon } from "./errorIcon-BA4T6iy-.js";
|
|
6
|
-
//#region src/shared/terminalErrorPage/terminalErrorPage.tsx
|
|
7
|
-
/**
|
|
8
|
-
* Terminal error screen shown by `<incode-flow>` / `<incode-workflow>` when
|
|
9
|
-
* the SDK reaches an unrecoverable error state — both during initialization
|
|
10
|
-
* (e.g. `/omni/start` or `/omni/workflow/info` returns `4028` "not activated")
|
|
11
|
-
* and during the flow/workflow lifecycle (e.g. `/omni/workflow/process/node`,
|
|
12
|
-
* `/omni/finish-status`, or a child module's terminal error).
|
|
13
|
-
*
|
|
14
|
-
* When the error carries a backend-provided `error`/`message` (surfaced via
|
|
15
|
-
* `IncodeApiError.message` from core's service wrappers), it's rendered
|
|
16
|
-
* verbatim as the subtitle. Generic transport failures fall back to a
|
|
17
|
-
* translated default.
|
|
18
|
-
*
|
|
19
|
-
* Layout: `Page` is used for the Incode logo + optional "Verified by Incode"
|
|
20
|
-
* footer only — the title/subtitle/titleTopSlot slots are deliberately *not*
|
|
21
|
-
* used so we can vertically center the status block (icon + title + message)
|
|
22
|
-
* within the available height at every viewport size. The Try again button
|
|
23
|
-
* is anchored to the bottom of the content area. The screen intentionally
|
|
24
|
-
* has no close button — the only exit is "Try again", which delegates to
|
|
25
|
-
* `onRetry`.
|
|
26
|
-
*/
|
|
27
|
-
var TerminalErrorPage = ({ message, onRetry }) => {
|
|
28
|
-
const { t } = useTranslation();
|
|
29
|
-
const titleRef = A(null);
|
|
30
|
-
y(() => {
|
|
31
|
-
titleRef.current?.focus();
|
|
32
|
-
}, []);
|
|
33
|
-
const handleRetry = () => {
|
|
34
|
-
if (onRetry) {
|
|
35
|
-
onRetry();
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
if (typeof window !== "undefined") window.location.reload();
|
|
39
|
-
};
|
|
40
|
-
return /* @__PURE__ */ u(Page, {
|
|
41
|
-
className: "IncodeTerminalErrorPage",
|
|
42
|
-
"data-testid": "terminal-error-page",
|
|
43
|
-
children: /* @__PURE__ */ u("div", {
|
|
44
|
-
class: "IncodeTerminalErrorPageBody",
|
|
45
|
-
children: [/* @__PURE__ */ u("div", {
|
|
46
|
-
class: "IncodeTerminalErrorPageStatus",
|
|
47
|
-
children: [
|
|
48
|
-
/* @__PURE__ */ u(ErrorIcon, { size: 64 }),
|
|
49
|
-
/* @__PURE__ */ u("h2", {
|
|
50
|
-
ref: titleRef,
|
|
51
|
-
class: "IncodeTerminalErrorPageTitle",
|
|
52
|
-
tabIndex: -1,
|
|
53
|
-
children: t("common.somethingWentWrong")
|
|
54
|
-
}),
|
|
55
|
-
/* @__PURE__ */ u("p", {
|
|
56
|
-
class: "IncodeTerminalErrorPageMessage",
|
|
57
|
-
children: message ?? t("common.unexpectedError")
|
|
58
|
-
})
|
|
59
|
-
]
|
|
60
|
-
}), /* @__PURE__ */ u("div", {
|
|
61
|
-
class: "IncodeTerminalErrorPageFooter",
|
|
62
|
-
children: /* @__PURE__ */ u(Button, {
|
|
63
|
-
onClick: handleRetry,
|
|
64
|
-
children: t("common.tryAgain")
|
|
65
|
-
})
|
|
66
|
-
})]
|
|
67
|
-
})
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
//#endregion
|
|
71
|
-
export { TerminalErrorPage as t };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { n as useTranslation } from "./i18n-CushpmmJ.js";
|
|
2
|
-
import { v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import { t as Spinner } from "./spinner-BMeIEK1d.js";
|
|
4
|
-
import "./spinner-BCDCoi9C.js";
|
|
5
|
-
//#region src/shared/processing/transitionSpinner.tsx
|
|
6
|
-
/**
|
|
7
|
-
* Canonical "we're getting ready / processing" loader.
|
|
8
|
-
*
|
|
9
|
-
* Renders a container-filling `Spinner` with the unified `loadingCircle.holdOn`
|
|
10
|
-
* / `loadingCircle.validating` copy at `size="large"` so every cross-module
|
|
11
|
-
* transition looks identical to the user. Optional `spinnerConfig` overrides
|
|
12
|
-
* any of `title`, `subtitle`, or `size` for consumers that already exposed
|
|
13
|
-
* those. Pass `hideText` to render the spinner icon on its own.
|
|
14
|
-
*/
|
|
15
|
-
var TransitionSpinner = ({ spinnerConfig, className, hideText = false, presentational = false }) => {
|
|
16
|
-
const { t } = useTranslation();
|
|
17
|
-
const title = hideText ? void 0 : spinnerConfig?.title ?? t("loadingCircle.holdOn");
|
|
18
|
-
const subtitle = hideText ? void 0 : spinnerConfig?.subtitle ?? t("loadingCircle.validating");
|
|
19
|
-
return /* @__PURE__ */ u(Spinner, {
|
|
20
|
-
title,
|
|
21
|
-
subtitle,
|
|
22
|
-
ariaLabel: presentational ? void 0 : [title, subtitle].filter(Boolean).join(". ") || void 0,
|
|
23
|
-
size: spinnerConfig?.size ?? "large",
|
|
24
|
-
fullScreen: true,
|
|
25
|
-
className,
|
|
26
|
-
presentational
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
//#endregion
|
|
30
|
-
export { TransitionSpinner as t };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { a as D, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import { n as cn } from "./loadingIcon-B0ysgiNq.js";
|
|
3
|
-
//#region src/shared/typography/typography.tsx
|
|
4
|
-
var Title = D(({ children, className, ...rest }, ref) => {
|
|
5
|
-
return /* @__PURE__ */ u("h2", {
|
|
6
|
-
ref,
|
|
7
|
-
class: `IncodeTitle ${className ?? ""}`,
|
|
8
|
-
...rest,
|
|
9
|
-
children
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
var TypographyH1 = D(({ children, className, ...rest }, ref) => {
|
|
13
|
-
return /* @__PURE__ */ u("h1", {
|
|
14
|
-
ref,
|
|
15
|
-
class: cn("IncodeTypographyH1", className),
|
|
16
|
-
...rest,
|
|
17
|
-
children
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
var TypographyH3 = ({ children, className }) => {
|
|
21
|
-
return /* @__PURE__ */ u("h3", {
|
|
22
|
-
class: cn("IncodeTypographyH3", className),
|
|
23
|
-
children
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
var TypographyH4 = ({ children, className }) => {
|
|
27
|
-
return /* @__PURE__ */ u("h4", {
|
|
28
|
-
class: cn("IncodeTypographyH4", className),
|
|
29
|
-
children
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
var TypographyH5 = ({ children, className }) => {
|
|
33
|
-
return /* @__PURE__ */ u("h5", {
|
|
34
|
-
class: cn("IncodeTypographyH5", className),
|
|
35
|
-
children
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
var TypographyP = ({ children, className }) => {
|
|
39
|
-
return /* @__PURE__ */ u("p", {
|
|
40
|
-
class: cn("IncodeTypographyP", className),
|
|
41
|
-
children
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
//#endregion
|
|
45
|
-
export { TypographyH5 as a, TypographyH4 as i, TypographyH1 as n, TypographyP as o, TypographyH3 as r, Title as t };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { i as C } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
//#region src/shared/uiConfig/uiConfig.ts
|
|
3
|
-
var uiConfig = {};
|
|
4
|
-
var listeners = /* @__PURE__ */ new Set();
|
|
5
|
-
function subscribe(listener) {
|
|
6
|
-
listeners.add(listener);
|
|
7
|
-
return () => {
|
|
8
|
-
listeners.delete(listener);
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
function getSnapshot() {
|
|
12
|
-
return uiConfig;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Sets global UI configuration defaults for `@incodetech/ui`.
|
|
16
|
-
*/
|
|
17
|
-
function setUiConfig(next) {
|
|
18
|
-
uiConfig = next;
|
|
19
|
-
for (const listener of listeners) listener();
|
|
20
|
-
}
|
|
21
|
-
function useUiConfig() {
|
|
22
|
-
return C(subscribe, getSnapshot);
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
export { useUiConfig as n, setUiConfig as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|