@incodetech/web 2.4.1-agentic → 2.4.1-agentic.1
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/THIRD_PARTY_NOTICES.txt +1 -4
- package/dist/{GeolocationPermissionDenied-CUt-uebQ.js → GeolocationPermissionDenied-ClGp0a23.js} +13 -8
- package/dist/ae-signature/ae-signature.es.js +4 -4
- package/dist/{af-ZA-BWKMRc6V.js → af-ZA-BKpmmWDe.js} +75 -865
- package/dist/{ageVerification-CMIp0I--.js → ageVerification-CtuJDuRV.js} +11 -8
- package/dist/{am-DPyjIvQV.js → am-CW_ro5Ws.js} +75 -865
- package/dist/antifraud/antifraud.es.js +5 -4
- package/dist/{applyStudioConfig-DxtP9221.js → applyStudioConfig-C6-Ak0q6.js} +5 -4
- package/dist/{ar-AE-CxCvbyoW.js → ar-AE-D9h8UMbm.js} +75 -865
- package/dist/{ar-10SoqF1i.js → ar-B5ToweVl.js} +75 -865
- package/dist/{ar-EG-B1hHB55j.js → ar-EG-DQqE9B26.js} +75 -865
- package/dist/assertClassBrand-DJr5K93j.js +17 -0
- package/dist/asset-Ctwd_20H.js +355 -0
- package/dist/authentication/authentication.es.js +7 -5
- package/dist/{autoFocusTitle-BxsSeMSB.js → autoFocusTitle-CzaCWWW5.js} +2 -2
- package/dist/{az-cmuBNn_5.js → az-DAZq-CQj.js} +75 -865
- package/dist/{back-horizontal-hint-Dl2C4J4u.js → back-horizontal-hint-qzSaNkEU.js} +1 -1
- package/dist/{back-vertical-hint-CM4_HjWk.js → back-vertical-hint-DkYLOege.js} +1 -1
- package/dist/base.css +1 -1
- package/dist/{baseTutorial-BGU2Gcly.js → baseTutorial-CF6WiVYt.js} +10 -7
- package/dist/{bn-CuGYlngZ.js → bn-DRTyq2Y9.js} +75 -865
- package/dist/{bottomSheet-x20yd6eP.js → bottomSheet-DylE2INk.js} +3 -3
- package/dist/{bs-vwpJzaHm.js → bs-B8q0B86-.js} +75 -865
- package/dist/{ca-DXZs5vtr.js → ca-DvsHXRB-.js} +75 -865
- package/dist/cameraOverlay-DNf0PEF4.js +2 -0
- package/dist/{cameraOverlayHeader-BxutAKy-.js → cameraOverlayHeader-CuVGnyXI.js} +9 -8
- package/dist/{cameraView-DVzaEGW8.js → cameraView-D9ZxLKtA.js} +3 -3
- package/dist/capture-0jMDSGCE.js +762 -0
- package/dist/{tutorial-BKPHj5To.js → capture-BlGlXoTx.js} +13 -36
- package/dist/capture-DKBA5j5A.js +3 -0
- package/dist/capture-D_Dwrj1F.js +2 -0
- package/dist/captureButtonIcon-A9kn2E_m.js +1 -0
- package/dist/captureFocusContext-9789qOe3.js +729 -0
- package/dist/captureFooter-B6WUFQCV.js +47 -0
- package/dist/{ceb-CmhS_VOs.js → ceb-pvlomXHV.js} +75 -865
- package/dist/certificate-issuance/certificate-issuance.es.js +23 -13
- package/dist/{check-icon-BWTjhSuA.js → check-icon-BdHltEK6.js} +1 -1
- package/dist/{checkbox-BC26Qbxh.js → checkbox-BwUQ0Rs9.js} +4 -4
- package/dist/chooser-CmG71-lh.js +1589 -0
- package/dist/connectionError-DexRpKWs.js +90 -0
- package/dist/consent/consent.es.js +16 -12
- package/dist/{countryFlag-DXSVHiby.js → countryFlag-CQMfCnE9.js} +1 -1
- package/dist/{countrySelector-0PDDFsZF.js → countrySelector-C0OEKMqL.js} +4 -4
- package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
- package/dist/{cs-CZ-Dg5O-Vom.js → cs-CZ-GgvnJLMj.js} +75 -865
- package/dist/{cs-CoJlE7De.js → cs-DB5PLEdt.js} +75 -865
- package/dist/curp-validation/curp-validation.es.js +34 -19
- package/dist/curp-validation/styles.css +1 -1
- package/dist/curp-validation/styles.css.js +1 -1
- package/dist/{customFields-COYGTuuK.js → customFields-DQgRumW0.js} +17 -11
- package/dist/{customWatchlist-B0wY6Rwb.js → customWatchlist-BbC0fA-6.js} +8 -6
- package/dist/{da-DK-C_JAndM-.js → da-DK-ZhpcfE_F.js} +75 -865
- package/dist/{dashboardTheme-COBidrbH.js → dashboardTheme-DtXsx9IK.js} +1 -1
- package/dist/{dateInputComposed-QkmLGLHg.js → dateInputComposed-1IcnucPq.js} +5 -5
- package/dist/dateInputComposed-BFlCk-sg.js +1 -0
- package/dist/{de-11hHLedu.js → de-DEBjzaow.js} +75 -865
- package/dist/{denied-Btt81vUD.js → denied-CwdVWAUw.js} +12 -9
- package/dist/devWarn-CW20j1Qd.js +9 -0
- package/dist/{deviceWallet-BeTpokSL.js → deviceWallet-CMjguFJO.js} +4 -4
- package/dist/{digitalIdRedirect-BnljwZV3.js → digitalIdRedirect-MNty16-5.js} +4 -4
- package/dist/{digitalIdUpload-DNhqqMHT.js → digitalIdUpload-CUzTaoaI.js} +39 -15
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/document-capture/styles.css +1 -1
- package/dist/document-capture/styles.css.js +1 -1
- package/dist/{documentCapture-uAKPK1U-.js → documentCapture-BUMyJ8vw.js} +94 -32
- package/dist/documentCapture-rECLkwpi.js +2 -0
- package/dist/dropdownComposed-C9sLQE6i.js +1 -0
- package/dist/{dropdownComposed-D_RQd0Z9.js → dropdownComposed-x3ewHxbT.js} +4 -4
- package/dist/dynamic-forms/dynamic-forms.es.js +20 -15
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-B5IEiSyi.js +2 -0
- package/dist/{ekybModule-Bsqag_MS.js → ekybModule-C5hEBLMs.js} +27 -23
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-B7OFnP3H.js +2 -0
- package/dist/{ekycModule-WlhVn8AO.js → ekycModule-TVKk0qdS.js} +26 -20
- package/dist/{el-CRGmVrep.js → el-Dplr_D5N.js} +75 -865
- package/dist/{el-GR-CjtJiRTo.js → el-GR-IZ4reOR7.js} +75 -865
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-Cm2BEiQu.js → electronic-signature-BMda_cf3.js} +49 -34
- package/dist/email/email.es.js +15 -11
- package/dist/{emailInput-JmK2JIFS.js → emailInput-BI8gWC0D.js} +4 -4
- package/dist/{en-DG-Cruu6Woh.js → en-DG-C6tsWvHi.js} +75 -865
- package/dist/{en-CSjoG3e4.js → en-Db1L_u7B.js} +75 -865
- package/dist/{errorContent-zY4jb6uY.js → errorContent-pPAgyy2i.js} +10 -7
- package/dist/es-419-DxKrJq7W.js +5 -0
- package/dist/{es-C_LAY-Yu.js → es-C5unKsaF.js} +75 -865
- package/dist/{es-ES-D7O0P5Mg.js → es-ES-sHbsufzT.js} +75 -865
- package/dist/{es-MX-DVzFaANh.js → es-MX-Cd_DCR0A.js} +75 -865
- package/dist/{et-DdSwjU5d.js → et-BoGq2cx8.js} +76 -866
- package/dist/{expiredId-DpbWqSzB.js → expiredId-DWjw94rT.js} +12 -8
- package/dist/extensibility.es.js +85 -41
- package/dist/{fa-IR-CdK8XLkS.js → fa-IR-DuUxGXrf.js} +75 -865
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-B2aMz3X2.js +2 -0
- package/dist/{faceMatch-B0IzR9_u.js → faceMatch-DV7NxYu_.js} +15 -10
- package/dist/{fi-FI-CYlEPu44.js → fi-FI-DMOBNTjA.js} +75 -865
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-BY2XXsp3.js +2 -0
- package/dist/{fieldComparison-OwGIeOM5.js → fieldComparison-CFLU1h6n.js} +15 -11
- package/dist/{fieldLabelHint-gdoE5nLQ.js → fieldLabelHint-CjrLxBaj.js} +3 -3
- package/dist/{finalSuccessScreen-BM9oeJDH.js → finalSuccessScreen-C50L96j9.js} +20 -16
- package/dist/fiscal-qr/fiscal-qr.es.js +24 -18
- package/dist/flipAnimation-8x-qdtF_.js +33 -0
- package/dist/flipCapturedCardEligibility-DLr9F2g2.js +210 -0
- package/dist/flow/flow.es.js +183 -167
- package/dist/flow/shell/styles.css +1 -1
- package/dist/flow/shell/styles.css.js +1 -1
- package/dist/flow/styles.css +1 -1
- package/dist/{formField-C3MNhFKI.js → formField-CfQKYeGF.js} +3 -3
- package/dist/{fr-CA-DD_s9NuV.js → fr-CA-DZ8jlsp3.js} +75 -865
- package/dist/{fr-C4cP8ZNE.js → fr-DSR-AP0e.js} +75 -865
- package/dist/{front-horizontal-hint-Dol0Lpc6.js → front-horizontal-hint-DOphQZg2.js} +1 -1
- package/dist/{front-vertical-hint-CAhAzw92.js → front-vertical-hint-S6PcS9_m.js} +1 -1
- package/dist/geolocation/geolocation.es.js +15 -10
- package/dist/government-validation/government-validation.es.js +7 -6
- package/dist/{he-D3fvMZAl.js → he-N5dfJeyd.js} +75 -865
- package/dist/{hi-DLf6_opn.js → hi-JR6K9zbd.js} +75 -865
- package/dist/{hmn-DzoODzbN.js → hmn-j2YA7FxW.js} +75 -865
- package/dist/{homeScreen-D1Xd93In.js → homeScreen-C3pPw52y.js} +17 -11
- package/dist/{incodeComponent-C1Bz5Qou.js → hooks-BFP0WaJM.js} +14 -308
- package/dist/{hr-C-jP0DrB.js → hr-8cOdwB0t.js} +75 -865
- package/dist/{ht-CVt9koJf.js → ht-DDNL4C__.js} +75 -865
- package/dist/{hu-9fSzIeAd.js → hu-CynQQUFQ.js} +75 -865
- package/dist/i18n-Dp014ljG.js +942 -0
- package/dist/{icons-BdiCuWFP.js → icons-c-hFaG4L.js} +129 -32
- package/dist/id/id.es.js +101 -197
- package/dist/id/styles.css +1 -1
- package/dist/id/styles.css.js +1 -1
- package/dist/{id-back-of-card-CHFxXTEq.js → id-back-of-card-Bk6ZQUE9.js} +1 -1
- package/dist/{id-back-of-card-vertical-CUBdKGbw.js → id-back-of-card-vertical-BZo00s50.js} +1 -1
- package/dist/{id-front-of-card-DplNJr13.js → id-front-of-card-BJ96se7u.js} +1 -1
- package/dist/{id-front-of-card-vertical-D1duHEsV.js → id-front-of-card-vertical-DSfJB0lX.js} +1 -1
- package/dist/{id-Dgi5uGHK.js → id-o_Yg0n8W.js} +75 -865
- package/dist/id-selfie-flow/id-selfie-flow.es.js +12 -11
- package/dist/id-selfie-flow/styles.css +1 -1
- package/dist/id-verification/id-verification.es.js +6 -5
- package/dist/idFlipTransition-DXdtXYza.js +158 -0
- package/dist/{idOcr-sknZwQNF.js → idOcr-CjqfkRJ7.js} +18 -14
- package/dist/identity-reuse/identity-reuse.es.js +28 -18
- package/dist/incodeComponent-DtKh-UUm.js +237 -0
- package/dist/{incodeModule-DJToJb00.js → incodeModule-DCHXAeYU.js} +5 -5
- package/dist/index.es.js +4 -3
- package/dist/{inputComposed-BuE0iZlw.js → inputComposed-CmVsaHOa.js} +4 -4
- package/dist/inputComposed-DvGrso7g.js +1 -0
- package/dist/{it-CEFstYFG.js → it-BXevrtHn.js} +75 -865
- package/dist/{ja-BNdVd9B6.js → ja-DiTXnTx-.js} +75 -865
- package/dist/{ja-JP-B5TPMV1q.js → ja-JP-D1IRWR-p.js} +75 -865
- package/dist/{jv-CMxkkXUk.js → jv-Us70GzGp.js} +75 -865
- package/dist/{ka-C70bUmEK.js → ka-BSsWQ4yU.js} +75 -865
- package/dist/{kk-C_55EmWt.js → kk-D5R6r4H7.js} +75 -865
- package/dist/{km-D4Ig0NhN.js → km-CCCb2Rnt.js} +79 -869
- package/dist/{ko-KP-BwBB8ahu.js → ko-KP-JF4khv1Y.js} +75 -865
- package/dist/{ko-DfUa3dzQ.js → ko-kQioCg2w.js} +75 -865
- package/dist/{ky-CnJichOm.js → ky-CLOemVjC.js} +75 -865
- package/dist/kyb-checks/kyb-checks.es.js +2 -0
- package/dist/kyb-checks/styles.css +2 -0
- package/dist/kyb-checks/styles.css.js +1 -0
- package/dist/kybChecksModule-C6Y9Hxpr.js +329 -0
- package/dist/kybChecksModule-r3MIpFhS.js +2 -0
- package/dist/{lo-ww1DXVAP.js → lo-tzHUt1CQ.js} +75 -865
- package/dist/{lt-IJ8qpluI.js → lt-B2ZI-Cgu.js} +76 -866
- package/dist/{lv-DMfsmqyK.js → lv-BJnxtSYw.js} +76 -866
- package/dist/{mandatoryConsent-Bp8sQoiu.js → mandatoryConsent-BiQuEZRu.js} +20 -14
- package/dist/{manualCaptureButton-Cd-FY05-.js → manualCaptureButton-BRSmPTeR.js} +8 -7
- package/dist/{manualCaptureButton-BXOTp2PS.js → manualCaptureButton-Dw0MMSkc.js} +17 -13
- package/dist/{mk-ByafmFak.js → mk-Cj7Iw2Q4.js} +75 -865
- package/dist/{mn-DjO9p3xN.js → mn-CA_rNxtz.js} +75 -865
- package/dist/{ms-3Vf1QpHl.js → ms-BydA1Zjz.js} +75 -865
- package/dist/{my-C5hpE5P1.js → my-gFKufKaG.js} +75 -865
- package/dist/{nb-NO-DGCWCOul.js → nb-NO-CDsGQbOZ.js} +75 -865
- package/dist/{ne-CpJxcVhV.js → ne-Cyfi0vFI.js} +75 -865
- package/dist/{nl-R2RykJHB.js → nl-e1gbmAFO.js} +75 -865
- package/dist/{numberedStep-CqgNwc_a.js → numberedStep-CeN77hnQ.js} +1 -1
- package/dist/{optionAccessibleLabel-BQl8HooZ.js → optionAccessibleLabel-BTUieMxH.js} +6 -6
- package/dist/{otpInput-B_iLvmIn.js → otpInput-D3L3QhnR.js} +24 -17
- package/dist/{page-utEpSa9Z.js → page-U6jZ7BBI.js} +69 -23
- package/dist/{pageUiConfig-rOL18JSI.js → pageUiConfig-Qf6ItVv9.js} +6 -14
- package/dist/{passport-horizontal-hint-BfTXA2LB.js → passport-horizontal-hint-Ddsh6fUS.js} +1 -1
- package/dist/{passport-vertical-hint-C7dzd2ks.js → passport-vertical-hint-Dukxq6-T.js} +1 -1
- package/dist/{passwordInputComposed-NtiseM85.js → passwordInputComposed-CW_1DcB8.js} +5 -5
- package/dist/{pdf-BnPw8ZaT.js → pdf-Bd5QplFS.js} +2 -17
- package/dist/{pdfViewer-DNMZsDFD.js → pdfViewer-BrqSEtbr.js} +11 -14
- package/dist/pdfViewer-rDnnHzmw.js +2 -0
- package/dist/{permissions-CCEc9lKM.js → permissions-KUDhffd9.js} +36 -23
- package/dist/phone/phone.es.js +16 -12
- package/dist/{phoneInputComposed-ByiK_6Hu.js → phoneInputComposed-DlJMTavK.js} +6 -6
- package/dist/{pl-B1LgnPj1.js → pl-BSMcCWS-.js} +75 -865
- package/dist/preloadableLazy-C8_OYaTC.js +37 -0
- package/dist/{processing-Ci_Kl-Rh.js → processing-B5EH7yNg.js} +2 -2
- package/dist/{progressBar-Caj-Vu1e.js → progressBar-CSpS29pV.js} +2 -2
- package/dist/{pt-CPVeH0hD.js → pt-BNFC2quK.js} +75 -865
- package/dist/{pt-BR-DSJDHb-K.js → pt-BR-bH8DC2gH.js} +75 -865
- package/dist/{pt-PT-BWJTVPZY.js → pt-PT-B8PXmgwU.js} +75 -865
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/{radioGroupComposed-CocqpoKe.js → radioGroupComposed-CW8ElYSR.js} +4 -4
- package/dist/radioGroupComposed-flIYNffL.js +1 -0
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +19 -21
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/redirect-to-mobile/styles.css.js +1 -1
- package/dist/{registerIncodeElement-Dtw9dM3O.js → registerIncodeElement-oiLvm6xq.js} +1 -1
- package/dist/{reload-icon-BR1POqkD.js → reload-icon-FD2e9Wet.js} +1 -1
- package/dist/{resendTimer-ODOCcKyh.js → resendTimer-D1H3gwkI.js} +2 -2
- package/dist/richText-sUdTiRDE.js +1761 -0
- package/dist/{ro-8gGEWeHO.js → ro-DnN8QNYa.js} +75 -865
- package/dist/{ru-C4EVku5S.js → ru-DAwUFXHq.js} +75 -865
- package/dist/{ru-RU-Dr0NOGjg.js → ru-RU-Coxt0VCU.js} +75 -865
- package/dist/{sanitizeSvg-ilJ8VQmH.js → sanitizeSvg-OdNh1mqY.js} +1 -1
- package/dist/selfie/selfie.es.js +30 -14
- package/dist/selfie/styles.css +1 -1
- package/dist/selfie/styles.css.js +1 -1
- package/dist/signature/signature.es.js +18 -13
- package/dist/{sk-BSTzMa__.js → sk-AB8sSlNw.js} +77 -867
- package/dist/{sl-_HvO-HVX.js → sl-6Dfzfi7s.js} +75 -865
- package/dist/{smsTabContent-CWBrtP4u.js → smsTabContent-CBEKgzFv.js} +32 -23
- package/dist/{so-pyCaqonl.js → so-X5BdrDvV.js} +75 -865
- package/dist/spacer-Jaru_3sb.js +82 -0
- package/dist/spinner-51btbot0.js +407 -0
- package/dist/{sr-Bpxtt0kk.js → sr-JHjMcbGs.js} +75 -865
- package/dist/{sr-Latn-BjueCJSI.js → sr-Latn-DgT7eTG2.js} +80 -870
- package/dist/sr-YU-BBhB_G63.js +5 -0
- package/dist/{sv-SE-sv5v6ZWe.js → sv-SE-CvX8mC8T.js} +75 -865
- package/dist/{sw-BseJSmdR.js → sw-CN0TdnY4.js} +75 -865
- package/dist/{th-C2G8Ur12.js → th-BmFntKib.js} +75 -865
- package/dist/{th-TH-D0WNW-3l.js → th-TH-CWr4z3JK.js} +75 -865
- package/dist/themes/dark.css +1 -1
- package/dist/themes/light.css +1 -1
- package/dist/{tl-PH-CwafDrED.js → tl-PH-BRIbtBRN.js} +75 -865
- package/dist/{tl-CBOmxz5r.js → tl-rzkk5P_n.js} +75 -865
- package/dist/{tr-C4iH8UJx.js → tr-DKuVBwqW.js} +76 -866
- package/dist/{transitionSpinner-DbrWrpRU.js → transitionSpinner-Di0XBAix.js} +5 -4
- package/dist/tutorial-C9psDR2i.js +28 -0
- package/dist/types/extensibility.d.ts +6 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/types/kyb-checks.d.ts +209 -0
- package/dist/{typography-BF9d8wEc.js → typography-CiGhKJGx.js} +2 -2
- package/dist/uiConfig-BJAuZQWc.js +77 -0
- package/dist/{uk-BGYlvKb_.js → uk-CXjqq4lX.js} +75 -865
- package/dist/{uk-UA-CbxzkCL_.js → uk-UA-BIE9WByU.js} +75 -865
- package/dist/{ur-BQgtsAfv.js → ur-vNGesC3r.js} +75 -865
- package/dist/{useCameraPreview-BmkAmzAs.js → useCameraPreview-Bd7AYE9h.js} +1 -1
- package/dist/useCaptureHelpButton-Dj-jESrS.js +43 -0
- package/dist/{useIsDarkTheme-COJZngNK.js → useIsDarkTheme-Bu9CvKxW.js} +1 -1
- package/dist/{useModuleLoader-CceEKjsh.js → useModuleLoader-BBCNkJmc.js} +2 -2
- package/dist/{uz-DqOg1Fdv.js → uz-Gmw1XRgv.js} +75 -865
- package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-DHGqBGMH.js} +19 -1
- package/dist/{verificationResult-m99Ragq6.js → verificationResult-Clxdxm_s.js} +18 -10
- package/dist/{vi-COxdKkHn.js → vi-DTxxRUw0.js} +75 -865
- package/dist/video-selfie/video-selfie.es.js +50 -33
- package/dist/watchlist/watchlist.es.js +8 -6
- package/dist/{watchlistForBusiness-C2zxbavl.js → watchlistForBusiness-CpFp2EYX.js} +16 -11
- package/dist/{withEndScreenTexts-BwNU-8-X.js → withEndScreenTexts-Bd3mof3s.js} +204 -41
- package/dist/workflow/styles.css +1 -1
- package/dist/workflow/workflow.es.js +19 -15
- package/dist/{zh-CN-DfvYQGdE.js → zh-CN-aB48G_R1.js} +76 -866
- package/dist/{zh-CPQoDPxf.js → zh-DjtyfO4e.js} +75 -865
- package/dist/{zh-HANT-B4LzHH2y.js → zh-HANT-8p8SH8C3.js} +75 -865
- package/dist/{zh-TW-DtvvhBYL.js → zh-TW-CCsz9gKq.js} +75 -865
- package/package.json +22 -10
- package/dist/browser-ponyfill-CHlXHPpU.js +0 -441
- package/dist/cameraOverlay-Be1PFI8S.js +0 -2
- package/dist/dateInputComposed-CONPVayx.js +0 -1
- package/dist/devWarn-Cr7MglXv.js +0 -2628
- package/dist/documentCapture-DGCraCO3.js +0 -2
- package/dist/dropdownComposed-DyZXfcTf.js +0 -1
- package/dist/ekybModule-D-czIusz.js +0 -2
- package/dist/ekycModule-CkBRa6h2.js +0 -2
- package/dist/es-419-CTB15v-l.js +0 -3231
- package/dist/esm-BTUEHyry.js +0 -430
- package/dist/faceMatch-CRbIcwK2.js +0 -2
- package/dist/fieldComparison-DKQNK0-r.js +0 -2
- package/dist/flipAnimation-D-5tokFC.js +0 -3275
- package/dist/inputComposed-5mLbxAZJ.js +0 -1
- package/dist/pdfViewer-7FzYV8l3.js +0 -2
- package/dist/radioGroupComposed-DlQ-fNrF.js +0 -1
- package/dist/richText-CRWB2afV.js +0 -1549
- package/dist/spacer-CwyNauIk.js +0 -733
- package/dist/spinner-DEZJxLSc.js +0 -88
- package/dist/sr-YU-xCb5qxap.js +0 -3235
- package/dist/useCaptureHelpButton-D40hYyD7.js +0 -88
- /package/dist/{aligndevicelottie-BHWuptBk.js → aligndevicelottie-BEKzL4SB.js} +0 -0
- /package/dist/{back-tutorial-BYZr11eV.js → back-tutorial-B9W63fa-.js} +0 -0
- /package/dist/{backdevicelottie-JflQKxT_.js → backdevicelottie-DsN8QBV3.js} +0 -0
- /package/dist/{blurdevicelottie-CWuMQEHL.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
- /package/dist/{countryDefinitions-6FOOLcB2.js → countryDefinitions-RBVGM1D_.js} +0 -0
- /package/dist/{defineProperty-CUC2zCmh.js → defineProperty-E9wRIIo9.js} +0 -0
- /package/dist/{flip-animation-BqTKEBcW.js → flip-animation-DJVnWWL5.js} +0 -0
- /package/dist/{frontdevicelottie-BWD-NCfG.js → frontdevicelottie-DiW1Wmya.js} +0 -0
- /package/dist/{glaredevicelottie-Cjy50jGc.js → glaredevicelottie-CK-fnX_s.js} +0 -0
- /package/dist/{helpButtonConfig-BFragC_J.js → helpButtonConfig-CjbrBQaV.js} +0 -0
- /package/dist/{id-laser-h-By7lMim8.js → id-laser-h-6Am_cjM8.js} +0 -0
- /package/dist/{id-laser-v-BCPAN2x5.js → id-laser-v-DXoF3flH.js} +0 -0
- /package/dist/{id-tutorial-B9cUQuf0.js → id-tutorial-DkKH3eTE.js} +0 -0
- /package/dist/{lottie_light-DywVSPMT.js → lottie_light-B819EhaL.js} +0 -0
- /package/dist/{passport-tutorial-TSZzEGqb.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
- /package/dist/{pdf.worker.min-D7ZNTVBZ.js → pdf.worker.min-DzBNMoKS.js} +0 -0
- /package/dist/{policyUrls-Bpacx_pp.js → policyUrls-Benduf-R.js} +0 -0
- /package/dist/{purify.es-DZazHwBu.js → purify.es-CSPoFViI.js} +0 -0
- /package/dist/{realtimeFeedbackConfig-DeZksjlR.js → realtimeFeedbackConfig-tBX94SOm.js} +0 -0
- /package/dist/{selfieTutorial-CLJAEuXG.js → selfieTutorial-DnsRD1Z9.js} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { i as useTranslation } from "./i18n-Dp014ljG.js";
|
|
2
|
+
import { b as u, d as T } from "./vendor-preact-DHGqBGMH.js";
|
|
3
|
+
import { i as useUiConfig } from "./uiConfig-BJAuZQWc.js";
|
|
4
|
+
import { s as useInstanceOverrides } from "./asset-Ctwd_20H.js";
|
|
5
|
+
import { t as Spinner } from "./spinner-51btbot0.js";
|
|
5
6
|
//#region src/shared/spinner/resolveSpinnerPresentation.ts
|
|
6
7
|
/**
|
|
7
8
|
* Collapses the per-instance and global tiers into one presentation, mirroring
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { i as useTranslation } from "./i18n-Dp014ljG.js";
|
|
2
|
+
import { b as u, m as d } from "./vendor-preact-DHGqBGMH.js";
|
|
3
|
+
import { a as useAnimationData } from "./spinner-51btbot0.js";
|
|
4
|
+
import { t as BaseTutorial } from "./baseTutorial-CF6WiVYt.js";
|
|
5
|
+
//#region src/modules/selfie/tutorial.tsx
|
|
6
|
+
var Tutorial = ({ manager, ageAssurance = false }) => {
|
|
7
|
+
const { t } = useTranslation();
|
|
8
|
+
const [isLoading, setIsLoading] = d(false);
|
|
9
|
+
const { data: animationData, isOverride } = useAnimationData("selfie.tutorial");
|
|
10
|
+
const handleContinue = async () => {
|
|
11
|
+
setIsLoading(true);
|
|
12
|
+
await manager.nextStep();
|
|
13
|
+
};
|
|
14
|
+
return /* @__PURE__ */ u(BaseTutorial, {
|
|
15
|
+
animationData,
|
|
16
|
+
recolor: !isOverride,
|
|
17
|
+
title: t(ageAssurance ? "face.tutorial.ageAssuranceTitle" : "face.tutorial.title"),
|
|
18
|
+
titleId: "face-tutorial-heading",
|
|
19
|
+
subtitle: t(ageAssurance ? "face.tutorial.ageAssuranceSubtitle" : "face.tutorial.subtitle"),
|
|
20
|
+
onContinue: handleContinue,
|
|
21
|
+
buttonText: t(ageAssurance ? "face.tutorial.ageAssuranceStartCapture" : "face.tutorial.startCapture"),
|
|
22
|
+
disclaimerText: t("face.tutorial.autoCapture"),
|
|
23
|
+
isLoading,
|
|
24
|
+
className: "IncodeSelfieTutorial"
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Tutorial as t };
|
|
@@ -971,6 +971,7 @@ declare type PageProps = {
|
|
|
971
971
|
className?: string;
|
|
972
972
|
logo?: {
|
|
973
973
|
src?: string;
|
|
974
|
+
/** @deprecated Has no effect: the logo is sized by its shape. */
|
|
974
975
|
height?: string;
|
|
975
976
|
};
|
|
976
977
|
hideFooterBranding?: boolean;
|
|
@@ -1184,7 +1185,7 @@ export declare const SelfieTutorial: ({ manager, ageAssurance }: TutorialProps)
|
|
|
1184
1185
|
*/
|
|
1185
1186
|
export declare function setUiConfig(next: UiConfig): void;
|
|
1186
1187
|
|
|
1187
|
-
export declare const Spacer:
|
|
1188
|
+
export declare const Spacer: FunctionComponent<SpacerProps>;
|
|
1188
1189
|
|
|
1189
1190
|
declare type SpacerProps = {
|
|
1190
1191
|
size?: number | string;
|
|
@@ -1397,6 +1398,10 @@ export declare const TypographyP: FC<TitleProps>;
|
|
|
1397
1398
|
export declare type UiConfig = {
|
|
1398
1399
|
logoSrc?: string;
|
|
1399
1400
|
logoDarkSrc?: string;
|
|
1401
|
+
/**
|
|
1402
|
+
* @deprecated Has no effect: the header sizes the logo by its shape
|
|
1403
|
+
* (customer logo sizing guideline).
|
|
1404
|
+
*/
|
|
1400
1405
|
logoHeight?: string;
|
|
1401
1406
|
subtitle?: string;
|
|
1402
1407
|
hideHeader?: boolean;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -332,6 +332,10 @@ declare type TranslationValue = string | Record<string, unknown>;
|
|
|
332
332
|
export declare type UiConfig = {
|
|
333
333
|
logoSrc?: string;
|
|
334
334
|
logoDarkSrc?: string;
|
|
335
|
+
/**
|
|
336
|
+
* @deprecated Has no effect: the header sizes the logo by its shape
|
|
337
|
+
* (customer logo sizing guideline).
|
|
338
|
+
*/
|
|
335
339
|
logoHeight?: string;
|
|
336
340
|
subtitle?: string;
|
|
337
341
|
hideHeader?: boolean;
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
2
|
+
import { FC } from 'preact/compat';
|
|
3
|
+
import { FunctionComponent } from 'preact';
|
|
4
|
+
import { KybChecksConfig } from '@incodetech/core/kyb-checks';
|
|
5
|
+
import { KybChecksManager } from '@incodetech/core/kyb-checks';
|
|
6
|
+
import { KybChecksResult } from '@incodetech/core/kyb-checks';
|
|
7
|
+
import { SessionExpiredError } from '@incodetech/core/session';
|
|
8
|
+
import { SVGProps } from 'preact/compat';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Allowlisted keys for overridable Lottie animations
|
|
12
|
+
*/
|
|
13
|
+
declare type AnimationKey = 'id.tutorial.front' | 'id.tutorial.back' | 'id.tutorial.passport' | 'id.flip' | 'id.processing' | 'selfie.tutorial' | 'loader.spinner';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A customer-supplied replacement for a built-in Lottie animation.
|
|
17
|
+
*
|
|
18
|
+
* - `LottieAnimationData` — a parsed Lottie JSON object.
|
|
19
|
+
* - `{ url }` — fetched and cached at runtime.
|
|
20
|
+
* - `{ animationData }` — explicit object form.
|
|
21
|
+
*/
|
|
22
|
+
declare type AnimationOverride = LottieAnimationData | {
|
|
23
|
+
url: string;
|
|
24
|
+
} | {
|
|
25
|
+
animationData: LottieAnimationData;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
declare type AnimationOverrides = Partial<Record<AnimationKey, AnimationOverride>>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Allowlisted keys for overridable branded SVG illustrations
|
|
32
|
+
*/
|
|
33
|
+
declare type AssetKey = 'faceMatch.success' | 'faceMatch.fail' | 'documentCapture.tutorial' | 'id.uploadScreen' | 'id.ageVerification.dob' | 'id.ageVerification.scan' | 'id.ageVerification.privacy' | 'videoSelfie.success' | 'videoSelfie.fail' | 'videoSelfie.tutorial.permission' | 'videoSelfie.tutorial.selfie' | 'videoSelfie.tutorial.frontId' | 'videoSelfie.tutorial.backId' | 'videoSelfie.tutorial.poa' | 'videoSelfie.tutorial.questions' | 'videoSelfie.tutorial.speech' | 'loader.spinner';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* A customer-supplied replacement for a built-in SVG illustration.
|
|
37
|
+
*
|
|
38
|
+
* - `string` — a URL, or raw `<svg …>` markup (detected by a leading `<`).
|
|
39
|
+
* - `{ url }` — fetched and rendered via `<img>`; no script execution.
|
|
40
|
+
* - `{ raw }` — inline markup; sanitized before injection.
|
|
41
|
+
* - `{ svg }` — a precompiled component, for build-time integrations.
|
|
42
|
+
*/
|
|
43
|
+
declare type AssetOverride = string | {
|
|
44
|
+
url: string;
|
|
45
|
+
} | {
|
|
46
|
+
raw: string;
|
|
47
|
+
} | {
|
|
48
|
+
svg: SvgComponent;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
declare type AssetOverrides = Partial<Record<AssetKey, AssetOverride>>;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* A module `config` intersected with the per-instance override maps. Typed at
|
|
55
|
+
* the UI boundary so core config types (e.g. `IdCaptureConfig`) stay untouched;
|
|
56
|
+
* `FlowConfig` also declares the maps directly.
|
|
57
|
+
*/
|
|
58
|
+
declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides & ModuleCancelOptions;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
62
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
63
|
+
* workflow module sets these fields today.
|
|
64
|
+
*/
|
|
65
|
+
declare type IncodeFinishMeta = {
|
|
66
|
+
/**
|
|
67
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
68
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
69
|
+
* screen), so the host should not render its own completion screen on top.
|
|
70
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
71
|
+
* OAuth parent).
|
|
72
|
+
*
|
|
73
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
74
|
+
* because the host reads this flag — a host that ignores it will still
|
|
75
|
+
* replace the SDK screen. Not a guarantee.
|
|
76
|
+
*/
|
|
77
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* True when the workflow is OAuth2-secured. The OAuth authorization server
|
|
80
|
+
* owns the redirect back to the client's `redirect_uri`, so the host must not
|
|
81
|
+
* navigate to `redirectionUrl` itself. A host redirect drops the `error` and
|
|
82
|
+
* `state` parameters, and the client reads a failed authentication as a
|
|
83
|
+
* success. The workflow always sets it on finish; treat a missing value as
|
|
84
|
+
* unknown.
|
|
85
|
+
*/
|
|
86
|
+
oauth2Secured?: boolean;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = ConfigWithOverrides<TConfig>> = {
|
|
90
|
+
/**
|
|
91
|
+
* Module configuration required to render the flow.
|
|
92
|
+
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
93
|
+
*
|
|
94
|
+
* Also carries optional per-instance `assets`/`animations` override maps;
|
|
95
|
+
* they override the global `setup({ uiConfig })` values for this
|
|
96
|
+
* element only and are ignored by the core manager.
|
|
97
|
+
*/
|
|
98
|
+
config?: TConfigInput;
|
|
99
|
+
/**
|
|
100
|
+
* Optional pre-built manager. The host owns its ordinary lifecycle.
|
|
101
|
+
* Session expiry always stops it to release capture resources, even when
|
|
102
|
+
* supplied by the host. Create a new manager for a replacement session;
|
|
103
|
+
* do not reuse the stopped instance in another mounted module.
|
|
104
|
+
*/
|
|
105
|
+
manager?: TManager;
|
|
106
|
+
/**
|
|
107
|
+
* Callback invoked when the module completes successfully.
|
|
108
|
+
* @param result - Optional result data from the module completion
|
|
109
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
110
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
111
|
+
*/
|
|
112
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
113
|
+
/**
|
|
114
|
+
* Callback invoked when a fatal module error occurs.
|
|
115
|
+
*
|
|
116
|
+
* @param error - Human-readable error message.
|
|
117
|
+
* @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
|
|
118
|
+
* the workflow and flow modules on QR validation failures —
|
|
119
|
+
* `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
|
|
120
|
+
* @param moduleErrorCode - Optional machine-readable error code (e.g. a
|
|
121
|
+
* `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
|
|
122
|
+
* branch on the specific terminal error without parsing the message string.
|
|
123
|
+
* @param details - Structured session-expiry error with statusCode 401 and
|
|
124
|
+
* code/type SESSION_EXPIRED. The first three arguments stay compatible.
|
|
125
|
+
*/
|
|
126
|
+
onError?: ModuleErrorHandler;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
131
|
+
*
|
|
132
|
+
* These ride on the module's `config` prop and are published once at the
|
|
133
|
+
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
134
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
135
|
+
* any prop drilling.
|
|
136
|
+
*/
|
|
137
|
+
declare type InstanceOverrides = {
|
|
138
|
+
assets?: AssetOverrides;
|
|
139
|
+
animations?: AnimationOverrides;
|
|
140
|
+
spinner?: SpinnerPresentation;
|
|
141
|
+
/**
|
|
142
|
+
* `true` hides the unsupported-browser screen for this element; `false`
|
|
143
|
+
* forces it on. Wins over `setup({ uiConfig })`. When both are omitted, the
|
|
144
|
+
* session Flow's setting applies. `<incode-flow>` and `<incode-workflow>`
|
|
145
|
+
* ignore it and always use their server setting.
|
|
146
|
+
*/
|
|
147
|
+
disableUnsupportedBrowserScreen?: boolean;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
export declare const KybChecksModule: FC<Omit<KybChecksModuleProps, "config"> & {
|
|
151
|
+
config?: (Omit<KybChecksConfig, "modules"> & DeepPartial<Pick<KybChecksConfig, "modules">>) | undefined;
|
|
152
|
+
}>;
|
|
153
|
+
|
|
154
|
+
declare type KybChecksModuleProps = IncodeModuleProps<KybChecksConfig, KybChecksResult, KybChecksManager>;
|
|
155
|
+
|
|
156
|
+
declare type LottieAnimationData = {
|
|
157
|
+
fr: number;
|
|
158
|
+
v: string;
|
|
159
|
+
ip: number;
|
|
160
|
+
op: number;
|
|
161
|
+
w: number;
|
|
162
|
+
h: number;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Behavior option on a module's `config` (flow, workflow or standalone module).
|
|
167
|
+
* Not a theme option: it decides whether the end user may quit, so it is set by
|
|
168
|
+
* the integrator's code and never read from a Studio export or the dashboard.
|
|
169
|
+
*/
|
|
170
|
+
declare type ModuleCancelOptions = {
|
|
171
|
+
allowUserToCancel?: boolean;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
declare type ModuleErrorHandler = (message: string | undefined, errorCode?: number, moduleErrorCode?: string, details?: SessionExpiredError) => void;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Host-facing loader presentation, settable globally via
|
|
178
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
179
|
+
*
|
|
180
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
181
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
182
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
183
|
+
* leaves one source of truth for user-facing strings.
|
|
184
|
+
*/
|
|
185
|
+
declare type SpinnerPresentation = {
|
|
186
|
+
renderMode?: SpinnerRenderMode;
|
|
187
|
+
size?: SpinnerSize;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Which parts of a loader render.
|
|
192
|
+
*
|
|
193
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
194
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
195
|
+
*/
|
|
196
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
197
|
+
|
|
198
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
199
|
+
|
|
200
|
+
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
201
|
+
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
202
|
+
|
|
203
|
+
export { }
|
|
204
|
+
|
|
205
|
+
declare global {
|
|
206
|
+
interface HTMLElementTagNameMap {
|
|
207
|
+
'incode-kyb-checks': HTMLElement & import('preact').ComponentProps<typeof KybChecksModule>;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { b as u, i as D } from "./vendor-preact-DHGqBGMH.js";
|
|
2
|
+
import { n as cn } from "./spacer-Jaru_3sb.js";
|
|
3
3
|
//#region src/shared/typography/typography.tsx
|
|
4
4
|
var Title = D(({ children, className, ...rest }, ref) => {
|
|
5
5
|
return /* @__PURE__ */ u("h2", {
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { r as C } from "./vendor-preact-DHGqBGMH.js";
|
|
2
|
+
//#region src/shared/uiConfig/uiConfig.ts
|
|
3
|
+
/** Tier 1: set by the host via `setup({ uiConfig })` / `setUiConfig`. Wins. */
|
|
4
|
+
var hostUiConfig = {};
|
|
5
|
+
/** Tier 2: derived from the tenant's dashboard theme. Fills the gaps. */
|
|
6
|
+
var themeUiConfig = {};
|
|
7
|
+
/**
|
|
8
|
+
* Cached composition of the two tiers. `useSyncExternalStore` requires
|
|
9
|
+
* `getSnapshot` to return a referentially stable value — composing on every
|
|
10
|
+
* call would hand Preact a new object each time and loop forever — so the
|
|
11
|
+
* merge happens once per write instead.
|
|
12
|
+
*/
|
|
13
|
+
var snapshot = {};
|
|
14
|
+
var listeners = /* @__PURE__ */ new Set();
|
|
15
|
+
function withoutUndefined(value) {
|
|
16
|
+
const defined = {};
|
|
17
|
+
for (const key of Object.keys(value)) if (value[key] !== void 0) defined[key] = value[key];
|
|
18
|
+
return defined;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Host fields win over theme fields; a host field left `undefined` counts as
|
|
22
|
+
* "not specified" and lets the theme through, rather than blanking it.
|
|
23
|
+
*/
|
|
24
|
+
function publish() {
|
|
25
|
+
snapshot = {
|
|
26
|
+
...themeUiConfig,
|
|
27
|
+
...withoutUndefined(hostUiConfig)
|
|
28
|
+
};
|
|
29
|
+
for (const listener of listeners) listener();
|
|
30
|
+
}
|
|
31
|
+
function subscribe(listener) {
|
|
32
|
+
listeners.add(listener);
|
|
33
|
+
return () => {
|
|
34
|
+
listeners.delete(listener);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function getSnapshot() {
|
|
38
|
+
return snapshot;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Sets global UI configuration defaults for `@incodetech/web`.
|
|
42
|
+
*
|
|
43
|
+
* Replaces (does not merge with) the previous host-supplied config, so omitting
|
|
44
|
+
* a field clears it. The dashboard theme is held separately and is unaffected.
|
|
45
|
+
*/
|
|
46
|
+
function setUiConfig(next) {
|
|
47
|
+
hostUiConfig = next;
|
|
48
|
+
publish();
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Merges fields into the host config, leaving unlisted fields as they are.
|
|
52
|
+
*
|
|
53
|
+
* Unlike {@link setUiConfig}, which replaces, this applies one source of
|
|
54
|
+
* config without disturbing what the host set elsewhere — so applying a
|
|
55
|
+
* Studio export cannot drop a host's `assets` or `spinner`. `undefined`
|
|
56
|
+
* values are skipped, so an unset field never clears a good one.
|
|
57
|
+
*/
|
|
58
|
+
function patchUiConfig(partial) {
|
|
59
|
+
hostUiConfig = {
|
|
60
|
+
...hostUiConfig,
|
|
61
|
+
...withoutUndefined(partial)
|
|
62
|
+
};
|
|
63
|
+
publish();
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Internal: publishes the branding fields derived from the tenant's dashboard
|
|
67
|
+
* theme. Not exported from the package — hosts use {@link setUiConfig}.
|
|
68
|
+
*/
|
|
69
|
+
function setThemeUiConfig(next) {
|
|
70
|
+
themeUiConfig = next;
|
|
71
|
+
publish();
|
|
72
|
+
}
|
|
73
|
+
function useUiConfig() {
|
|
74
|
+
return C(subscribe, getSnapshot);
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
export { useUiConfig as i, setThemeUiConfig as n, setUiConfig as r, patchUiConfig as t };
|