@incodetech/web 2.2.0-rc.1 → 2.2.0-rc.3
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 +3 -3
- package/dist/antifraud/antifraud.es.js +3 -3
- package/dist/authentication/authentication.es.js +4 -4
- package/dist/{autoFocusTitle-D7VzaZ2P.js → autoFocusTitle-Edt8-trP.js} +1 -1
- package/dist/certificate-issuance/certificate-issuance.es.js +8 -8
- package/dist/{checkbox-Jgwh943i.js → checkbox-gbHumlEi.js} +3 -3
- package/dist/{connectionError-Bl5E35Qm.js → connectionError-CvH1vnCt.js} +2 -2
- package/dist/consent/consent.es.js +6 -6
- package/dist/{countrySelector-Sd-u1WGf.js → countrySelector-DzLvpCfs.js} +1 -1
- package/dist/cross-document-data-match/cross-document-data-match.es.js +3 -3
- package/dist/curp-validation/curp-validation.es.js +13 -13
- package/dist/{customFields-CiEguXX9.js → customFields-DiOcfhlB.js} +8 -8
- package/dist/{customWatchlist-BSAW87qq.js → customWatchlist-CC9ZN7fk.js} +4 -4
- package/dist/{dateInputComposed-D0WEYWkS.js → dateInputComposed-3jXySs6M.js} +4 -4
- package/dist/dateInputComposed-BMauTxWJ.js +1 -0
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/documentCapture-CcnnR36G.js +2 -0
- package/dist/{documentCapture-GFNkI1ly.js → documentCapture-Dc9Q2wYc.js} +13 -13
- package/dist/{dropdownComposed-BXleSN7n.js → dropdownComposed-Bk8viDop.js} +3 -3
- package/dist/dropdownComposed-DLaj01jA.js +1 -0
- package/dist/{dynamicForms-DU5fT72-.js → dynamicForms-BZB8JDkM.js} +9 -9
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-CMcpoTgh.js → ekybModule-C9UhcxKV.js} +12 -12
- package/dist/ekybModule-QcD4hQFD.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/{ekycModule-BTO8iIwh.js → ekycModule-Cp7kPhFr.js} +10 -10
- package/dist/ekycModule-DqX1bTFN.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-COBKJBjU.js → electronic-signature-DGL6y3os.js} +8 -8
- package/dist/email/email.es.js +6 -6
- package/dist/{emailInput-mPPvterQ.js → emailInput-Du_BH960.js} +2 -2
- package/dist/{expiredId-CD5ETLV9.js → expiredId-Cf7_dJQE.js} +4 -4
- package/dist/{extensibility-DBilbbhC.js → extensibility-CFhCNmsm.js} +22 -23
- package/dist/extensibility.es.js +20 -20
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/{faceMatch-CwDBO9Is.js → faceMatch-BOJD6ZCq.js} +6 -6
- package/dist/faceMatch-Dhm-H0Pg.js +2 -0
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/{fieldComparison-dDvSYYQP.js → fieldComparison-D_cMCcwa.js} +7 -7
- package/dist/fieldComparison-Fnup635x.js +2 -0
- package/dist/{finalSuccessScreen-B9kb72WR.js → finalSuccessScreen-DL08U8_o.js} +8 -8
- package/dist/fiscal-qr/fiscal-qr.es.js +7 -7
- package/dist/flow/flow.es.js +11 -11
- package/dist/geolocation/geolocation.es.js +6 -6
- package/dist/government-validation/government-validation.es.js +7 -7
- package/dist/{homeScreen-Dycy1yhN.js → homeScreen-D2XpU5z_.js} +5 -5
- package/dist/{icons-D0cfSCBM.js → icons-CIjsoS44.js} +1 -1
- package/dist/id/id.es.js +18 -19
- package/dist/id-selfie-flow/id-selfie-flow.es.js +7 -8
- package/dist/id-verification/id-verification.es.js +4 -4
- package/dist/{idOcr-riTHUOlr.js → idOcr-DkmZyLVu.js} +8 -8
- package/dist/identity-reuse/identity-reuse.es.js +4 -4
- package/dist/{incode-logo-cGsd55rc.js → incode-logo-DkPbEPiI.js} +1 -1
- package/dist/{incodeComponent-B-daxouV.js → incodeComponent-B6hBTDEE.js} +57 -12
- package/dist/{incodeModule-uyUrSSUM.js → incodeModule-CCI32xbn.js} +9 -3
- package/dist/{inputComposed-Pp_XN1-h.js → inputComposed-CGB8zKbd.js} +3 -3
- package/dist/inputComposed-DDFdXKT3.js +1 -0
- package/dist/{mandatoryConsent-DSAjFc0h.js → mandatoryConsent-L7Tpj3tg.js} +6 -6
- package/dist/{manualCaptureButton-BY8dRhGA.js → manualCaptureButton-B3ZD52_f.js} +3 -3
- package/dist/{manualCaptureButton-BldgUGso.js → manualCaptureButton-ByWujoAK.js} +8 -10
- package/dist/{modal-BlczH_pL.js → modal-9-lPt5Hj.js} +2 -2
- package/dist/{optionAccessibleLabel-Dmz3eRsO.js → optionAccessibleLabel-Cc91L4JK.js} +3 -3
- package/dist/{otpInput-B3vUjmBF.js → otpInput-BWiL_nBW.js} +4 -4
- package/dist/{pdfViewer-BGFFFvmi.js → pdfViewer-BbRv7mHX.js} +2 -2
- package/dist/pdfViewer-DHgpC35P.js +2 -0
- package/dist/phone/phone.es.js +7 -7
- package/dist/{phoneInputComposed-D1ZBsd4S.js → phoneInputComposed-Bvy15RAe.js} +4 -4
- package/dist/{processing-vGhs5Gvb.js → processing-DN0NyNqR.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +3 -3
- package/dist/{radioGroupComposed-CYPHpI6a.js → radioGroupComposed-CPFZJOtR.js} +4 -4
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +11 -11
- package/dist/{richText-2OnIN9ff.js → richText-DnGJiTPl.js} +1 -1
- package/dist/selfie/selfie.es.js +7 -7
- package/dist/signature/signature.es.js +6 -6
- package/dist/{snackbar-BzyWgQ7J.js → snackbar-zbTKBgCx.js} +1 -1
- package/dist/{spacer-Bnmh-DfR.js → spacer-C6GdxqM-.js} +1 -1
- package/dist/{spinner-HP_c74K-.js → spinner-CaEPC8gQ.js} +4 -4
- package/dist/{statusPage-C0vTVW0Q.js → statusPage-C-2V2g63.js} +3 -3
- package/dist/{tabs-B_TxQ9ZQ.js → tabs-BjLPiKhZ.js} +1 -1
- package/dist/{tutorial-Cuy2ZEG9.js → tutorial-B1F5C8Si.js} +8 -8
- package/dist/types/ae-signature.d.ts +28 -2
- package/dist/types/antifraud.d.ts +28 -2
- package/dist/types/authentication.d.ts +28 -2
- package/dist/types/certificate-issuance.d.ts +28 -2
- package/dist/types/consent.d.ts +28 -2
- package/dist/types/cross-document-data-match.d.ts +28 -2
- package/dist/types/curp-validation.d.ts +28 -2
- package/dist/types/document-capture.d.ts +28 -2
- package/dist/types/ekyb.d.ts +28 -2
- package/dist/types/ekyc.d.ts +28 -2
- package/dist/types/electronic-signature.d.ts +28 -2
- package/dist/types/email.d.ts +28 -2
- package/dist/types/extensibility.d.ts +55 -2
- package/dist/types/face-match.d.ts +28 -2
- package/dist/types/field-comparison.d.ts +28 -2
- package/dist/types/fiscal-qr.d.ts +28 -2
- package/dist/types/flow.d.ts +43 -3
- package/dist/types/geolocation.d.ts +28 -2
- package/dist/types/government-validation.d.ts +28 -2
- package/dist/types/id-selfie-flow.d.ts +28 -2
- package/dist/types/id-verification.d.ts +28 -2
- package/dist/types/id.d.ts +28 -2
- package/dist/types/identity-reuse.d.ts +28 -2
- package/dist/types/index.d.ts +46 -0
- package/dist/types/phone.d.ts +28 -2
- package/dist/types/qe-signature.d.ts +28 -2
- package/dist/types/selfie.d.ts +28 -2
- package/dist/types/signature.d.ts +28 -2
- package/dist/types/video-selfie.d.ts +28 -2
- package/dist/types/watchlist.d.ts +28 -2
- package/dist/types/workflow.d.ts +44 -3
- package/dist/{useModuleLoader-BImpfi_R.js → useModuleLoader-DVvqx4RT.js} +16 -16
- package/dist/{verificationResult-IUf0w1aR.js → verificationResult-tgNeUuHO.js} +6 -6
- package/dist/video-selfie/video-selfie.es.js +13 -14
- package/dist/watchlist/watchlist.es.js +4 -4
- package/dist/{watchlistForBusiness-zT9gCfTc.js → watchlistForBusiness-3bO7BVcy.js} +7 -7
- package/dist/workflow/workflow.es.js +9 -9
- package/package.json +2 -2
- package/dist/dateInputComposed-DKQJz0kJ.js +0 -1
- package/dist/documentCapture-sB2_X-we.js +0 -2
- package/dist/dropdownComposed-DE-VJgcR.js +0 -1
- package/dist/ekybModule-CR9A6Fqb.js +0 -2
- package/dist/ekycModule-CewwzYvk.js +0 -2
- package/dist/faceMatch-2pfSeXeA.js +0 -2
- package/dist/fieldComparison-DUYp39WI.js +0 -2
- package/dist/inputComposed-CABc288U.js +0 -1
- package/dist/pdfViewer-4xNYiBI1.js +0 -2
package/dist/phone/phone.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as useTranslation } from "../uiConfig-D7ezQeZ7.js";
|
|
2
2
|
import { h as q, v as u } from "../vendor-preact-mvwZ8mJj.js";
|
|
3
|
-
import { _ as useModuleTerminalCallbacks, g as isTerminalModuleState, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-
|
|
4
|
-
import { t as Spacer } from "../spacer-
|
|
5
|
-
import { r as Button } from "../incode-logo-
|
|
6
|
-
import { t as OtpInput } from "../otpInput-
|
|
7
|
-
import { t as Checkbox } from "../checkbox-
|
|
8
|
-
import { t as PhoneInputComposed } from "../phoneInputComposed-
|
|
9
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
3
|
+
import { _ as useModuleTerminalCallbacks, g as isTerminalModuleState, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-B6hBTDEE.js";
|
|
4
|
+
import { t as Spacer } from "../spacer-C6GdxqM-.js";
|
|
5
|
+
import { r as Button } from "../incode-logo-DkPbEPiI.js";
|
|
6
|
+
import { t as OtpInput } from "../otpInput-BWiL_nBW.js";
|
|
7
|
+
import { t as Checkbox } from "../checkbox-gbHumlEi.js";
|
|
8
|
+
import { t as PhoneInputComposed } from "../phoneInputComposed-Bvy15RAe.js";
|
|
9
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-CCI32xbn.js";
|
|
10
10
|
import { createPhoneManager } from "@incodetech/core/phone";
|
|
11
11
|
//#region src/modules/phone/phone.tsx
|
|
12
12
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { S as k, _ as y, a as D, d as T, h as q, l as A, p as d, v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
2
|
-
import { n as ErrorIcon } from "./incode-logo-
|
|
3
|
-
import "./icons-
|
|
2
|
+
import { n as ErrorIcon } from "./incode-logo-DkPbEPiI.js";
|
|
3
|
+
import "./icons-CIjsoS44.js";
|
|
4
4
|
import { t as SuccessIcon } from "./successIcon-Bj8Y9CuI.js";
|
|
5
|
-
import { t as InputComposed } from "./inputComposed-
|
|
6
|
-
import { t as DropdownComposed } from "./dropdownComposed-
|
|
5
|
+
import { t as InputComposed } from "./inputComposed-CGB8zKbd.js";
|
|
6
|
+
import { t as DropdownComposed } from "./dropdownComposed-Bk8viDop.js";
|
|
7
7
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/metadata.min.json.js
|
|
8
8
|
var metadata_min_json_default = {
|
|
9
9
|
"version": 4,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
2
|
-
import { l as TransitionSpinner } from "./incodeComponent-
|
|
2
|
+
import { l as TransitionSpinner } from "./incodeComponent-B6hBTDEE.js";
|
|
3
3
|
//#region src/shared/processing/processing.tsx
|
|
4
4
|
var Processing = () => {
|
|
5
5
|
return /* @__PURE__ */ u(TransitionSpinner, {});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v as u } from "../vendor-preact-mvwZ8mJj.js";
|
|
2
|
-
import { r as withStandaloneModuleBootstrap } from "../incodeComponent-
|
|
3
|
-
import { n as ElectronicSignature } from "../electronic-signature-
|
|
4
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
2
|
+
import { r as withStandaloneModuleBootstrap } from "../incodeComponent-B6hBTDEE.js";
|
|
3
|
+
import { n as ElectronicSignature } from "../electronic-signature-DGL6y3os.js";
|
|
4
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-CCI32xbn.js";
|
|
5
5
|
//#region src/modules/qe-signature/qe-signature.tsx
|
|
6
6
|
var QeSignatureWithLocalConfig = ({ config, manager, onFinish, onError }) => {
|
|
7
7
|
return /* @__PURE__ */ u(ElectronicSignature, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as useTranslation } from "./uiConfig-D7ezQeZ7.js";
|
|
2
2
|
import { a as D, p as d, v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
3
|
-
import {
|
|
4
|
-
import { n as ErrorIcon } from "./incode-logo-
|
|
5
|
-
import "./icons-
|
|
6
|
-
import { t as InputComposed } from "./inputComposed-
|
|
3
|
+
import { d as cn } from "./spacer-C6GdxqM-.js";
|
|
4
|
+
import { n as ErrorIcon } from "./incode-logo-DkPbEPiI.js";
|
|
5
|
+
import "./icons-CIjsoS44.js";
|
|
6
|
+
import { t as InputComposed } from "./inputComposed-CGB8zKbd.js";
|
|
7
7
|
//#region src/shared/errorParams.ts
|
|
8
8
|
/**
|
|
9
9
|
* Resolves error params by translating the `fieldName` key
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as __commonJSMin } from "../rolldown-runtime--E5BIlTp.js";
|
|
2
2
|
import { a as useTranslation, i as Trans } from "../uiConfig-D7ezQeZ7.js";
|
|
3
3
|
import { S as k, _ as y, h as q, l as A, m as g, p as d, v as u } from "../vendor-preact-mvwZ8mJj.js";
|
|
4
|
-
import { _ as useModuleTerminalCallbacks, c as usePageUiConfig, l as TransitionSpinner, r as withStandaloneModuleBootstrap, s as VerifiedByIncodeLogo, t as IncodeComponent, y as useManager } from "../incodeComponent-
|
|
5
|
-
import { t as Spacer } from "../spacer-
|
|
6
|
-
import { n as ErrorIcon, r as Button, t as incode_logo_default } from "../incode-logo-
|
|
7
|
-
import "../extensibility-
|
|
8
|
-
import "../icons-
|
|
4
|
+
import { _ as useModuleTerminalCallbacks, c as usePageUiConfig, l as TransitionSpinner, r as withStandaloneModuleBootstrap, s as VerifiedByIncodeLogo, t as IncodeComponent, y as useManager } from "../incodeComponent-B6hBTDEE.js";
|
|
5
|
+
import { t as Spacer } from "../spacer-C6GdxqM-.js";
|
|
6
|
+
import { n as ErrorIcon, r as Button, t as incode_logo_default } from "../incode-logo-DkPbEPiI.js";
|
|
7
|
+
import "../extensibility-CFhCNmsm.js";
|
|
8
|
+
import "../icons-CIjsoS44.js";
|
|
9
9
|
import { t as SuccessIcon } from "../successIcon-Bj8Y9CuI.js";
|
|
10
|
-
import { t as AutoFocusTitle } from "../autoFocusTitle-
|
|
11
|
-
import { n as formatResendTimer, r as useResendTimerAnnouncements } from "../otpInput-
|
|
12
|
-
import { r as getCountryByCallingCode, t as PhoneInputComposed } from "../phoneInputComposed-
|
|
10
|
+
import { t as AutoFocusTitle } from "../autoFocusTitle-Edt8-trP.js";
|
|
11
|
+
import { n as formatResendTimer, r as useResendTimerAnnouncements } from "../otpInput-BWiL_nBW.js";
|
|
12
|
+
import { r as getCountryByCallingCode, t as PhoneInputComposed } from "../phoneInputComposed-Bvy15RAe.js";
|
|
13
13
|
import { t as registerIncodeElement } from "../registerIncodeElement-BduCekz5.js";
|
|
14
|
-
import { t as Snackbar } from "../snackbar-
|
|
15
|
-
import { t as Tabs } from "../tabs-
|
|
14
|
+
import { t as Snackbar } from "../snackbar-zbTKBgCx.js";
|
|
15
|
+
import { t as Tabs } from "../tabs-BjLPiKhZ.js";
|
|
16
16
|
import { createRedirectToMobileManager } from "@incodetech/core/redirect-to-mobile";
|
|
17
17
|
//#region src/modules/redirect-to-mobile/redirectHeader.tsx
|
|
18
18
|
var RedirectHeader = ({ logoSrc }) => {
|
|
@@ -2820,7 +2820,7 @@ var RedirectToMobileContent = ({ config, manager: externalManager, services, onF
|
|
|
2820
2820
|
}
|
|
2821
2821
|
}, [state.status, onContinue]);
|
|
2822
2822
|
const content = (() => {
|
|
2823
|
-
if (state.status === "idle" || state.status === "loading") return /* @__PURE__ */ u(TransitionSpinner, {
|
|
2823
|
+
if (state.status === "idle" || state.status === "loading") return /* @__PURE__ */ u(TransitionSpinner, { renderMode: "spinnerOnly" });
|
|
2824
2824
|
if (state.status === "redirecting") return /* @__PURE__ */ u(QrScreen, {
|
|
2825
2825
|
redirectUrl: state.redirectUrl,
|
|
2826
2826
|
phonePrefix: state.phonePrefix,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as preact_markup_module_default, v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
2
|
-
import {
|
|
2
|
+
import { u as purify } from "./spacer-C6GdxqM-.js";
|
|
3
3
|
import { t as _defineProperty } from "./defineProperty-BbpBna-2.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/marked@17.0.5/node_modules/marked/lib/marked.esm.js
|
|
5
5
|
var _Class;
|
package/dist/selfie/selfie.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _ as y, v as u } from "../vendor-preact-mvwZ8mJj.js";
|
|
2
|
-
import { _ as useModuleTerminalCallbacks, g as isTerminalModuleState, l as TransitionSpinner, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-
|
|
3
|
-
import { i as preloadAnimations } from "../spacer-
|
|
4
|
-
import { t as Processing } from "../processing-
|
|
5
|
-
import { n as Capture, t as Tutorial } from "../tutorial-
|
|
6
|
-
import { n as Permissions } from "../manualCaptureButton-
|
|
7
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
2
|
+
import { _ as useModuleTerminalCallbacks, g as isTerminalModuleState, l as TransitionSpinner, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-B6hBTDEE.js";
|
|
3
|
+
import { i as preloadAnimations } from "../spacer-C6GdxqM-.js";
|
|
4
|
+
import { t as Processing } from "../processing-DN0NyNqR.js";
|
|
5
|
+
import { n as Capture, t as Tutorial } from "../tutorial-B1F5C8Si.js";
|
|
6
|
+
import { n as Permissions } from "../manualCaptureButton-ByWujoAK.js";
|
|
7
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-CCI32xbn.js";
|
|
8
8
|
import { createSelfieManager } from "@incodetech/core/selfie";
|
|
9
9
|
//#region src/modules/selfie/preloadTutorialAssets.ts
|
|
10
10
|
var started = false;
|
|
@@ -30,7 +30,7 @@ var SelfieContent = ({ config, manager: externalManager, onFinish, onError }) =>
|
|
|
30
30
|
onError,
|
|
31
31
|
error: state.status === "error" ? state.error : void 0
|
|
32
32
|
});
|
|
33
|
-
if (state.status === "idle" || state.status === "loading") return /* @__PURE__ */ u(TransitionSpinner, {
|
|
33
|
+
if (state.status === "idle" || state.status === "loading") return /* @__PURE__ */ u(TransitionSpinner, { renderMode: "spinnerOnly" });
|
|
34
34
|
if (state.status === "tutorial") return /* @__PURE__ */ u(Tutorial, {
|
|
35
35
|
manager,
|
|
36
36
|
ageAssurance: state.ageAssurance
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as useTranslation } from "../uiConfig-D7ezQeZ7.js";
|
|
2
2
|
import { _ as y, a as D, h as q, l as A, p as d, u as F, v as u } from "../vendor-preact-mvwZ8mJj.js";
|
|
3
|
-
import { _ as useModuleTerminalCallbacks, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-
|
|
4
|
-
import { t as Spacer } from "../spacer-
|
|
5
|
-
import { r as Button } from "../incode-logo-
|
|
6
|
-
import "../extensibility-
|
|
7
|
-
import { t as VerificationResult } from "../verificationResult-
|
|
8
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
3
|
+
import { _ as useModuleTerminalCallbacks, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-B6hBTDEE.js";
|
|
4
|
+
import { t as Spacer } from "../spacer-C6GdxqM-.js";
|
|
5
|
+
import { r as Button } from "../incode-logo-DkPbEPiI.js";
|
|
6
|
+
import "../extensibility-CFhCNmsm.js";
|
|
7
|
+
import { t as VerificationResult } from "../verificationResult-tgNeUuHO.js";
|
|
8
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-CCI32xbn.js";
|
|
9
9
|
import { t as _defineProperty } from "../defineProperty-BbpBna-2.js";
|
|
10
10
|
import { createSignatureManager } from "@incodetech/core/signature";
|
|
11
11
|
//#region ../../node_modules/.pnpm/signature_pad@5.1.3/node_modules/signature_pad/dist/signature_pad.js
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
2
|
-
import {
|
|
2
|
+
import { d as cn } from "./spacer-C6GdxqM-.js";
|
|
3
3
|
//#region src/shared/snackbar/snackbar.tsx
|
|
4
4
|
var Snackbar = ({ variant = "neutral", children, className, ariaLive = "polite" }) => {
|
|
5
5
|
return /* @__PURE__ */ u("div", {
|
|
@@ -2341,4 +2341,4 @@ var Spacer = ({ size, className, direction = "vertical" }) => {
|
|
|
2341
2341
|
return /* @__PURE__ */ u("div", { class: `${className || ""}` });
|
|
2342
2342
|
};
|
|
2343
2343
|
//#endregion
|
|
2344
|
-
export { useAnimationData as a, InstanceOverridesProvider as c, preloadAnimations as i,
|
|
2344
|
+
export { useAnimationData as a, InstanceOverridesProvider as c, cn as d, preloadAnimations as i, useInstanceOverrides as l, LoadingIcon as n, Lottie as o, AnimatedAsset as r, Asset as s, Spacer as t, purify$1 as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as k, _ as y, a as D, l as A, v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
2
|
-
import {
|
|
2
|
+
import { d as cn, n as LoadingIcon, t as Spacer } from "./spacer-C6GdxqM-.js";
|
|
3
3
|
//#region src/shared/typography/typography.tsx
|
|
4
4
|
var Title = D(({ children, className, ...rest }, ref) => {
|
|
5
5
|
return /* @__PURE__ */ u("h2", {
|
|
@@ -48,7 +48,7 @@ var sizeMap = {
|
|
|
48
48
|
medium: 48,
|
|
49
49
|
large: 64
|
|
50
50
|
};
|
|
51
|
-
var Spinner = ({ title, subtitle, ariaLabel, size = "medium", fullScreen = true, className, presentational = false }) => {
|
|
51
|
+
var Spinner = ({ title, subtitle, ariaLabel, size = "medium", fullScreen = true, className, presentational = false, hideIcon = false }) => {
|
|
52
52
|
const iconSize = sizeMap[size];
|
|
53
53
|
const titleRef = A(null);
|
|
54
54
|
const containerRef = A(null);
|
|
@@ -63,7 +63,7 @@ var Spinner = ({ title, subtitle, ariaLabel, size = "medium", fullScreen = true,
|
|
|
63
63
|
]);
|
|
64
64
|
return /* @__PURE__ */ u("div", {
|
|
65
65
|
ref: containerRef,
|
|
66
|
-
class: cn("IncodeSpinner", fullScreen && "IncodeSpinnerFullScreen", className),
|
|
66
|
+
class: cn("IncodeSpinner", fullScreen && "IncodeSpinnerFullScreen", hideIcon && "IncodeSpinnerTextOnly", className),
|
|
67
67
|
"data-testid": "spinner",
|
|
68
68
|
"data-title": title,
|
|
69
69
|
"data-subtitle": subtitle,
|
|
@@ -76,7 +76,7 @@ var Spinner = ({ title, subtitle, ariaLabel, size = "medium", fullScreen = true,
|
|
|
76
76
|
children: /* @__PURE__ */ u("div", {
|
|
77
77
|
class: "IncodeSpinnerContent",
|
|
78
78
|
"aria-hidden": ariaLabel ? true : void 0,
|
|
79
|
-
children: [/* @__PURE__ */ u(LoadingIcon, { size: iconSize }), (title || subtitle) && /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: 16 }), /* @__PURE__ */ u("div", {
|
|
79
|
+
children: [!hideIcon && /* @__PURE__ */ u(LoadingIcon, { size: iconSize }), (title || subtitle) && /* @__PURE__ */ u(k, { children: [!hideIcon && /* @__PURE__ */ u(Spacer, { size: 16 }), /* @__PURE__ */ u("div", {
|
|
80
80
|
class: "IncodeSpinnerText",
|
|
81
81
|
children: [title && /* @__PURE__ */ u(Title, {
|
|
82
82
|
ref: titleRef,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as g, v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
2
|
-
import { o as Page } from "./incodeComponent-
|
|
3
|
-
import { t as Spacer } from "./spacer-
|
|
4
|
-
import { t as AutoFocusTitle } from "./autoFocusTitle-
|
|
2
|
+
import { o as Page } from "./incodeComponent-B6hBTDEE.js";
|
|
3
|
+
import { t as Spacer } from "./spacer-C6GdxqM-.js";
|
|
4
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-Edt8-trP.js";
|
|
5
5
|
//#region src/shared/statusPage/statusPage.tsx
|
|
6
6
|
var StatusPage = ({ variant, icon, title, subtitle, hideFooterBranding, actions, isLive }) => {
|
|
7
7
|
const subtitleId = `${g()}-subtitle`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as Q, g as x, m as g, p as d, v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
2
|
-
import {
|
|
2
|
+
import { d as cn } from "./spacer-C6GdxqM-.js";
|
|
3
3
|
//#region src/shared/tabs/tabs.tsx
|
|
4
4
|
var TabsContext = Q(null);
|
|
5
5
|
var useTabsContext = () => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as useTranslation } from "./uiConfig-D7ezQeZ7.js";
|
|
2
2
|
import { S as k, _ as y, d as T, h as q, l as A, m as g, p as d, v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
3
|
-
import { l as TransitionSpinner, o as Page } from "./incodeComponent-
|
|
4
|
-
import { a as useAnimationData, n as LoadingIcon, o as Lottie, t as Spacer
|
|
5
|
-
import { n as Title } from "./spinner-
|
|
6
|
-
import { n as ErrorIcon, r as Button } from "./incode-logo-
|
|
7
|
-
import { v as WarningIcon } from "./icons-
|
|
3
|
+
import { l as TransitionSpinner, o as Page } from "./incodeComponent-B6hBTDEE.js";
|
|
4
|
+
import { a as useAnimationData, d as cn, n as LoadingIcon, o as Lottie, t as Spacer } from "./spacer-C6GdxqM-.js";
|
|
5
|
+
import { n as Title } from "./spinner-CaEPC8gQ.js";
|
|
6
|
+
import { n as ErrorIcon, r as Button } from "./incode-logo-DkPbEPiI.js";
|
|
7
|
+
import { v as WarningIcon } from "./icons-CIjsoS44.js";
|
|
8
8
|
import { t as SuccessIcon } from "./successIcon-Bj8Y9CuI.js";
|
|
9
|
-
import { t as Modal } from "./modal-
|
|
10
|
-
import { t as ManualCaptureButton } from "./manualCaptureButton-
|
|
9
|
+
import { t as Modal } from "./modal-9-lPt5Hj.js";
|
|
10
|
+
import { t as ManualCaptureButton } from "./manualCaptureButton-ByWujoAK.js";
|
|
11
11
|
//#region src/shared/errorContent/errorContent.tsx
|
|
12
12
|
var ErrorContent = ({ title, description, attemptsRemaining, onButtonClick, "data-testid": testId }) => {
|
|
13
13
|
const { t } = useTranslation();
|
|
@@ -603,7 +603,7 @@ var Capture = ({ manager, state }) => {
|
|
|
603
603
|
y(() => {
|
|
604
604
|
if (detectionStatus === "manualCapture") manualCaptureRef.current?.focus();
|
|
605
605
|
}, [detectionStatus]);
|
|
606
|
-
if (captureStatus === "initializing") return /* @__PURE__ */ u(TransitionSpinner, {
|
|
606
|
+
if (captureStatus === "initializing") return /* @__PURE__ */ u(TransitionSpinner, { subtitleKey: "loadingCircle.preparingCamera" });
|
|
607
607
|
if (captureStatus === "detecting") {
|
|
608
608
|
if (detectionStatus === "offline") return /* @__PURE__ */ u(Page, { title: "No internet connection" });
|
|
609
609
|
const getBorderState = () => {
|
|
@@ -117,15 +117,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Per-instance
|
|
120
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
121
121
|
*
|
|
122
122
|
* These ride on the module's `config` prop and are published once at the
|
|
123
123
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
124
|
-
* reads them via {@link useInstanceOverrides} without
|
|
124
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
125
|
+
* any prop drilling.
|
|
125
126
|
*/
|
|
126
127
|
declare type InstanceOverrides = {
|
|
127
128
|
assets?: AssetOverrides;
|
|
128
129
|
animations?: AnimationOverrides;
|
|
130
|
+
spinner?: SpinnerPresentation;
|
|
129
131
|
};
|
|
130
132
|
|
|
131
133
|
declare type LottieAnimationData = {
|
|
@@ -137,6 +139,30 @@ declare type LottieAnimationData = {
|
|
|
137
139
|
h: number;
|
|
138
140
|
};
|
|
139
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Host-facing loader presentation, settable globally via
|
|
144
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
145
|
+
*
|
|
146
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
147
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
148
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
149
|
+
* leaves one source of truth for user-facing strings.
|
|
150
|
+
*/
|
|
151
|
+
declare type SpinnerPresentation = {
|
|
152
|
+
renderMode?: SpinnerRenderMode;
|
|
153
|
+
size?: SpinnerSize;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Which parts of a loader render.
|
|
158
|
+
*
|
|
159
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
160
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
161
|
+
*/
|
|
162
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
163
|
+
|
|
164
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
165
|
+
|
|
140
166
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
141
167
|
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
142
168
|
|
|
@@ -117,15 +117,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Per-instance
|
|
120
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
121
121
|
*
|
|
122
122
|
* These ride on the module's `config` prop and are published once at the
|
|
123
123
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
124
|
-
* reads them via {@link useInstanceOverrides} without
|
|
124
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
125
|
+
* any prop drilling.
|
|
125
126
|
*/
|
|
126
127
|
declare type InstanceOverrides = {
|
|
127
128
|
assets?: AssetOverrides;
|
|
128
129
|
animations?: AnimationOverrides;
|
|
130
|
+
spinner?: SpinnerPresentation;
|
|
129
131
|
};
|
|
130
132
|
|
|
131
133
|
declare type LottieAnimationData = {
|
|
@@ -137,6 +139,30 @@ declare type LottieAnimationData = {
|
|
|
137
139
|
h: number;
|
|
138
140
|
};
|
|
139
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Host-facing loader presentation, settable globally via
|
|
144
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
145
|
+
*
|
|
146
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
147
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
148
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
149
|
+
* leaves one source of truth for user-facing strings.
|
|
150
|
+
*/
|
|
151
|
+
declare type SpinnerPresentation = {
|
|
152
|
+
renderMode?: SpinnerRenderMode;
|
|
153
|
+
size?: SpinnerSize;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Which parts of a loader render.
|
|
158
|
+
*
|
|
159
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
160
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
161
|
+
*/
|
|
162
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
163
|
+
|
|
164
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
165
|
+
|
|
140
166
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
141
167
|
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
142
168
|
|
|
@@ -119,15 +119,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
119
119
|
};
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
|
-
* Per-instance
|
|
122
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
123
123
|
*
|
|
124
124
|
* These ride on the module's `config` prop and are published once at the
|
|
125
125
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
126
|
-
* reads them via {@link useInstanceOverrides} without
|
|
126
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
127
|
+
* any prop drilling.
|
|
127
128
|
*/
|
|
128
129
|
declare type InstanceOverrides = {
|
|
129
130
|
assets?: AssetOverrides;
|
|
130
131
|
animations?: AnimationOverrides;
|
|
132
|
+
spinner?: SpinnerPresentation;
|
|
131
133
|
};
|
|
132
134
|
|
|
133
135
|
declare type LottieAnimationData = {
|
|
@@ -139,6 +141,30 @@ declare type LottieAnimationData = {
|
|
|
139
141
|
h: number;
|
|
140
142
|
};
|
|
141
143
|
|
|
144
|
+
/**
|
|
145
|
+
* Host-facing loader presentation, settable globally via
|
|
146
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
147
|
+
*
|
|
148
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
149
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
150
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
151
|
+
* leaves one source of truth for user-facing strings.
|
|
152
|
+
*/
|
|
153
|
+
declare type SpinnerPresentation = {
|
|
154
|
+
renderMode?: SpinnerRenderMode;
|
|
155
|
+
size?: SpinnerSize;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Which parts of a loader render.
|
|
160
|
+
*
|
|
161
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
162
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
163
|
+
*/
|
|
164
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
165
|
+
|
|
166
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
167
|
+
|
|
142
168
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
143
169
|
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
144
170
|
|
|
@@ -119,15 +119,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
119
119
|
};
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
|
-
* Per-instance
|
|
122
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
123
123
|
*
|
|
124
124
|
* These ride on the module's `config` prop and are published once at the
|
|
125
125
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
126
|
-
* reads them via {@link useInstanceOverrides} without
|
|
126
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
127
|
+
* any prop drilling.
|
|
127
128
|
*/
|
|
128
129
|
declare type InstanceOverrides = {
|
|
129
130
|
assets?: AssetOverrides;
|
|
130
131
|
animations?: AnimationOverrides;
|
|
132
|
+
spinner?: SpinnerPresentation;
|
|
131
133
|
};
|
|
132
134
|
|
|
133
135
|
declare type LottieAnimationData = {
|
|
@@ -139,6 +141,30 @@ declare type LottieAnimationData = {
|
|
|
139
141
|
h: number;
|
|
140
142
|
};
|
|
141
143
|
|
|
144
|
+
/**
|
|
145
|
+
* Host-facing loader presentation, settable globally via
|
|
146
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
147
|
+
*
|
|
148
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
149
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
150
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
151
|
+
* leaves one source of truth for user-facing strings.
|
|
152
|
+
*/
|
|
153
|
+
declare type SpinnerPresentation = {
|
|
154
|
+
renderMode?: SpinnerRenderMode;
|
|
155
|
+
size?: SpinnerSize;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Which parts of a loader render.
|
|
160
|
+
*
|
|
161
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
162
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
163
|
+
*/
|
|
164
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
165
|
+
|
|
166
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
167
|
+
|
|
142
168
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
143
169
|
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
144
170
|
|
package/dist/types/consent.d.ts
CHANGED
|
@@ -117,15 +117,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Per-instance
|
|
120
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
121
121
|
*
|
|
122
122
|
* These ride on the module's `config` prop and are published once at the
|
|
123
123
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
124
|
-
* reads them via {@link useInstanceOverrides} without
|
|
124
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
125
|
+
* any prop drilling.
|
|
125
126
|
*/
|
|
126
127
|
declare type InstanceOverrides = {
|
|
127
128
|
assets?: AssetOverrides;
|
|
128
129
|
animations?: AnimationOverrides;
|
|
130
|
+
spinner?: SpinnerPresentation;
|
|
129
131
|
};
|
|
130
132
|
|
|
131
133
|
declare type LottieAnimationData = {
|
|
@@ -137,6 +139,30 @@ declare type LottieAnimationData = {
|
|
|
137
139
|
h: number;
|
|
138
140
|
};
|
|
139
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Host-facing loader presentation, settable globally via
|
|
144
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
145
|
+
*
|
|
146
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
147
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
148
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
149
|
+
* leaves one source of truth for user-facing strings.
|
|
150
|
+
*/
|
|
151
|
+
declare type SpinnerPresentation = {
|
|
152
|
+
renderMode?: SpinnerRenderMode;
|
|
153
|
+
size?: SpinnerSize;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Which parts of a loader render.
|
|
158
|
+
*
|
|
159
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
160
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
161
|
+
*/
|
|
162
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
163
|
+
|
|
164
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
165
|
+
|
|
140
166
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
141
167
|
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
142
168
|
|
|
@@ -117,15 +117,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Per-instance
|
|
120
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
121
121
|
*
|
|
122
122
|
* These ride on the module's `config` prop and are published once at the
|
|
123
123
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
124
|
-
* reads them via {@link useInstanceOverrides} without
|
|
124
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
125
|
+
* any prop drilling.
|
|
125
126
|
*/
|
|
126
127
|
declare type InstanceOverrides = {
|
|
127
128
|
assets?: AssetOverrides;
|
|
128
129
|
animations?: AnimationOverrides;
|
|
130
|
+
spinner?: SpinnerPresentation;
|
|
129
131
|
};
|
|
130
132
|
|
|
131
133
|
declare type LottieAnimationData = {
|
|
@@ -137,6 +139,30 @@ declare type LottieAnimationData = {
|
|
|
137
139
|
h: number;
|
|
138
140
|
};
|
|
139
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Host-facing loader presentation, settable globally via
|
|
144
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
145
|
+
*
|
|
146
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
147
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
148
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
149
|
+
* leaves one source of truth for user-facing strings.
|
|
150
|
+
*/
|
|
151
|
+
declare type SpinnerPresentation = {
|
|
152
|
+
renderMode?: SpinnerRenderMode;
|
|
153
|
+
size?: SpinnerSize;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Which parts of a loader render.
|
|
158
|
+
*
|
|
159
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
160
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
161
|
+
*/
|
|
162
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
163
|
+
|
|
164
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
165
|
+
|
|
140
166
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
141
167
|
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
142
168
|
|
|
@@ -117,15 +117,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Per-instance
|
|
120
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
121
121
|
*
|
|
122
122
|
* These ride on the module's `config` prop and are published once at the
|
|
123
123
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
124
|
-
* reads them via {@link useInstanceOverrides} without
|
|
124
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
125
|
+
* any prop drilling.
|
|
125
126
|
*/
|
|
126
127
|
declare type InstanceOverrides = {
|
|
127
128
|
assets?: AssetOverrides;
|
|
128
129
|
animations?: AnimationOverrides;
|
|
130
|
+
spinner?: SpinnerPresentation;
|
|
129
131
|
};
|
|
130
132
|
|
|
131
133
|
declare type LottieAnimationData = {
|
|
@@ -137,6 +139,30 @@ declare type LottieAnimationData = {
|
|
|
137
139
|
h: number;
|
|
138
140
|
};
|
|
139
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Host-facing loader presentation, settable globally via
|
|
144
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
145
|
+
*
|
|
146
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
147
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
148
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
149
|
+
* leaves one source of truth for user-facing strings.
|
|
150
|
+
*/
|
|
151
|
+
declare type SpinnerPresentation = {
|
|
152
|
+
renderMode?: SpinnerRenderMode;
|
|
153
|
+
size?: SpinnerSize;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Which parts of a loader render.
|
|
158
|
+
*
|
|
159
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
160
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
161
|
+
*/
|
|
162
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
163
|
+
|
|
164
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
165
|
+
|
|
140
166
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
141
167
|
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
142
168
|
|