@incodetech/web 0.0.0-dev-20260728-dcd649b0 → 0.0.0-dev-20260728-ee28c8bd

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.
Files changed (132) hide show
  1. package/dist/ae-signature/ae-signature.es.js +3 -3
  2. package/dist/antifraud/antifraud.es.js +3 -4
  3. package/dist/authentication/authentication.es.js +4 -5
  4. package/dist/{autoFocusTitle-C4ex-p3U.js → autoFocusTitle-iZIKJfYJ.js} +1 -1
  5. package/dist/{bottomSheet-DrR-FvEE.js → bottomSheet-Cp8DLulN.js} +1 -1
  6. package/dist/{captureNotification-BKIIr0wi.js → captureNotification-BQY39v7i.js} +7 -7
  7. package/dist/certificate-issuance/certificate-issuance.es.js +10 -11
  8. package/dist/{checkbox-DZr7yccY.js → checkbox-Bar2Q75h.js} +3 -3
  9. package/dist/{connectionError-CM34jCfn.js → connectionError-Bs---N1P.js} +3 -3
  10. package/dist/consent/consent.es.js +7 -8
  11. package/dist/{countrySelector-wz7n3Ca6.js → countrySelector-nRjpjFZr.js} +2 -2
  12. package/dist/cross-document-data-match/cross-document-data-match.es.js +3 -4
  13. package/dist/curp-validation/curp-validation.es.js +14 -15
  14. package/dist/{customFields-BbJYJVME.js → customFields-DyqSOnx8.js} +10 -11
  15. package/dist/{customWatchlist-DiuZBbou.js → customWatchlist-CeQUQIin.js} +6 -7
  16. package/dist/{dashboardTheme-BGgG5U4B.js → dashboardTheme-BBWzF-Rl.js} +1 -1
  17. package/dist/dateInputComposed-CGMz5UVE.js +1 -0
  18. package/dist/{dateInputComposed-B78ejqWm.js → dateInputComposed-_hgrTAHv.js} +4 -4
  19. package/dist/document-capture/document-capture.es.js +1 -1
  20. package/dist/{documentCapture-Cm7xoulO.js → documentCapture-BwpJPSY5.js} +16 -17
  21. package/dist/documentCapture-yT6CEcrV.js +2 -0
  22. package/dist/{dropdownComposed-jDTWDmRK.js → dropdownComposed-Df6I0kfH.js} +4 -4
  23. package/dist/dropdownComposed-ZNxRG80x.js +1 -0
  24. package/dist/{dynamicForms-DM_Ng5zK.js → dynamicForms-DXy7cuoB.js} +12 -13
  25. package/dist/ekyb/ekyb.es.js +1 -1
  26. package/dist/{ekybModule-C0m_eYjt.js → ekybModule-B3OL8Jz0.js} +14 -15
  27. package/dist/ekybModule-Cjw56N-p.js +2 -0
  28. package/dist/ekyc/ekyc.es.js +1 -1
  29. package/dist/{ekycModule-D1rxGsAx.js → ekycModule-Cl-dSGS3.js} +12 -13
  30. package/dist/ekycModule-DBpLOI2s.js +2 -0
  31. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  32. package/dist/{electronic-signature-dSFqCD4z.js → electronic-signature-2q7K_-4S.js} +10 -11
  33. package/dist/email/email.es.js +7 -8
  34. package/dist/{emailInput-DM5luQfd.js → emailInput-BV-CgWNJ.js} +3 -3
  35. package/dist/{expiredId-BFrvoRJx.js → expiredId-DFathPvh.js} +5 -5
  36. package/dist/{extensibility-CtmqxLcR.js → extensibility-BFvvP4V2.js} +30 -31
  37. package/dist/extensibility.es.js +23 -24
  38. package/dist/face-match/face-match.es.js +1 -1
  39. package/dist/faceMatch-C3ruQ-2t.js +2 -0
  40. package/dist/{faceMatch-Dg56pj5e.js → faceMatch-DeBTtmW8.js} +7 -8
  41. package/dist/field-comparison/field-comparison.es.js +1 -1
  42. package/dist/fieldComparison-DA4TmYaP.js +2 -0
  43. package/dist/{fieldComparison-DzzJINc3.js → fieldComparison-GJQ5DacH.js} +8 -9
  44. package/dist/fiscal-qr/fiscal-qr.es.js +8 -9
  45. package/dist/flow/flow.es.js +7 -17
  46. package/dist/flow/styles.css +0 -97
  47. package/dist/geolocation/geolocation.es.js +8 -9
  48. package/dist/government-validation/government-validation.es.js +8 -9
  49. package/dist/{homeScreen-Cdmb_vVe.js → homeScreen-C13L_5E7.js} +6 -6
  50. package/dist/{icons-DW9DSJ16.js → icons-DDslhJwK.js} +2 -2
  51. package/dist/id/id.es.js +15 -16
  52. package/dist/id-verification/id-verification.es.js +4 -5
  53. package/dist/{idOcr-BPy2bNQ3.js → idOcr-CNM3ENPW.js} +10 -11
  54. package/dist/identity-reuse/identity-reuse.es.js +5 -6
  55. package/dist/{incode-logo-wxiGOOpK.js → incode-logo-BfEQiVwv.js} +1 -1
  56. package/dist/{hooks-CesbGQdO.js → incodeComponent-DbuDabZM.js} +67 -8
  57. package/dist/{incodeModule-BC-BLasM.js → incodeModule-CWPPP3RX.js} +2 -2
  58. package/dist/index.es.js +2 -2
  59. package/dist/inputComposed-CWWfge4m.js +1 -0
  60. package/dist/{inputComposed-CejoWawJ.js → inputComposed-DyOp4913.js} +4 -4
  61. package/dist/{mandatoryConsent-BsIe3qzi.js → mandatoryConsent-Cg_zIcY1.js} +6 -7
  62. package/dist/{modal-8VrcGJVO.js → modal-DWVP-wFJ.js} +3 -3
  63. package/dist/{optionAccessibleLabel-BWJD_8Gf.js → optionAccessibleLabel-CJODcySE.js} +5 -5
  64. package/dist/{otpInput-DA84A_VA.js → otpInput-BwCTe5DW.js} +5 -5
  65. package/dist/{pdf-BYHLDKvG.js → pdf-DmATU8Co.js} +1 -1
  66. package/dist/{pdfViewer-B9zEowl2.js → pdfViewer-CEamEnkS.js} +3 -3
  67. package/dist/pdfViewer-D7yXDe2C.js +2 -0
  68. package/dist/{permissions-CSH29_ur.js → permissions-B59Yz1WE.js} +8 -8
  69. package/dist/phone/phone.es.js +8 -9
  70. package/dist/{phoneInputComposed-_jPhIwjI.js → phoneInputComposed-FIxKA289.js} +5 -5
  71. package/dist/{processing-Di1OhgZf.js → processing-cWTcAmb0.js} +1 -1
  72. package/dist/qe-signature/qe-signature.es.js +3 -3
  73. package/dist/{radioGroupComposed-osFatGIs.js → radioGroupComposed-Dhukt-7o.js} +5 -5
  74. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +13 -14
  75. package/dist/{richText-b9gTASSs.js → richText-CdJoyVMH.js} +2 -2
  76. package/dist/selfie/selfie.es.js +6 -7
  77. package/dist/signature/signature.es.js +8 -9
  78. package/dist/{snackbar-RF4sGCbJ.js → snackbar-CAhCVEPK.js} +1 -1
  79. package/dist/{spacer-BTetNBo1.js → spacer-xw40ekwM.js} +9 -9
  80. package/dist/{spinner-WiDswxbO.js → spinner-BXQ7_eed.js} +1 -1
  81. package/dist/{statusPage-N_aUw0s8.js → statusPage-CpTNjvgk.js} +3 -3
  82. package/dist/{tabs-DIKKY4Mm.js → tabs-BXS3PjHE.js} +1 -1
  83. package/dist/{tutorial-zVJcDHjJ.js → tutorial-CmnpJOSN.js} +8 -8
  84. package/dist/{uiConfig-CwW-ALgf.js → uiConfig-CXjf9USC.js} +1 -1
  85. package/dist/{useModuleLoader-B9z7CWtS.js → useModuleLoader-Biobk4Tw.js} +18 -20
  86. package/dist/{verificationResult-Cs1e_oSd.js → verificationResult-kFjl5_9K.js} +8 -8
  87. package/dist/video-selfie/video-selfie.es.js +13 -14
  88. package/dist/watchlist/watchlist.es.js +6 -7
  89. package/dist/{watchlistForBusiness-dxBg0kNh.js → watchlistForBusiness-4PiP8wVj.js} +9 -10
  90. package/dist/workflow/workflow.es.js +7 -8
  91. package/package.json +2 -11
  92. package/dist/cpf-ocr/cpf-ocr.es.js +0 -2
  93. package/dist/cpf-ocr/styles.css +0 -45
  94. package/dist/cpfOcr-DSaUS0pr.js +0 -2
  95. package/dist/cpfOcr-DmmsMi8H.js +0 -91
  96. package/dist/dateInputComposed-DAHxycbD.js +0 -1
  97. package/dist/documentCapture-BGSL-slo.js +0 -2
  98. package/dist/dropdownComposed-BecQiLQw.js +0 -1
  99. package/dist/ekybModule-Ddc7uvk_.js +0 -2
  100. package/dist/ekycModule-BUoHAnT7.js +0 -2
  101. package/dist/faceMatch-B_9BtCX3.js +0 -2
  102. package/dist/fieldComparison-BHTY0bHo.js +0 -2
  103. package/dist/incodeComponent-CMcbgpFE.js +0 -64
  104. package/dist/inputComposed-Bi0esMNI.js +0 -1
  105. package/dist/pdfViewer-Bt77CsK7.js +0 -2
  106. package/dist/types/cpf-ocr.d.ts +0 -143
  107. /package/dist/{aligndevicelottie-t8IVRvKe.js → aligndevicelottie-BjTimcBP.js} +0 -0
  108. /package/dist/{back-horizontal-hint-DoWBTFBn.js → back-horizontal-hint-CzsSwNtZ.js} +0 -0
  109. /package/dist/{back-tutorial-Sa9INxfJ.js → back-tutorial-C-IKYN_q.js} +0 -0
  110. /package/dist/{back-vertical-hint-DOWwAjxY.js → back-vertical-hint-C7dxEdEh.js} +0 -0
  111. /package/dist/{backdevicelottie--JZVcmsk.js → backdevicelottie-Cx2kiMEX.js} +0 -0
  112. /package/dist/{blurdevicelottie-D8d1O-r6.js → blurdevicelottie-4yFix9E8.js} +0 -0
  113. /package/dist/{browser-ponyfill-nzh6PjuB.js → browser-ponyfill-D1icr7Vh.js} +0 -0
  114. /package/dist/{defineProperty-BsIK7Gws.js → defineProperty-BbpBna-2.js} +0 -0
  115. /package/dist/{flip-animation-BVOJ5NB8.js → flip-animation-A-yVbFVH.js} +0 -0
  116. /package/dist/{front-horizontal-hint-DRuiRF-y.js → front-horizontal-hint-DYxWgGKI.js} +0 -0
  117. /package/dist/{front-vertical-hint-B8ZOrYhL.js → front-vertical-hint-CzlxVSQB.js} +0 -0
  118. /package/dist/{frontdevicelottie-DGU1DFsb.js → frontdevicelottie-Dl0lwBuC.js} +0 -0
  119. /package/dist/{glaredevicelottie-Dqjzhp2v.js → glaredevicelottie-CWu-Dn9r.js} +0 -0
  120. /package/dist/{id-laser-h-BH1QBCyl.js → id-laser-h-BVmX_IOw.js} +0 -0
  121. /package/dist/{id-laser-v-CiaNHMJb.js → id-laser-v-Bkm7n4bH.js} +0 -0
  122. /package/dist/{id-tutorial-a8vX2mra.js → id-tutorial-CalDlCwr.js} +0 -0
  123. /package/dist/{lottie_light-Cd-ULGyI.js → lottie_light-Cu005p6V.js} +0 -0
  124. /package/dist/{modal.hooks-uiP0j4Vi.js → modal.hooks-BvXzNWvY.js} +0 -0
  125. /package/dist/{numberedStep-Bds5VtrK.js → numberedStep-DUs77Gy3.js} +0 -0
  126. /package/dist/{passport-horizontal-hint-CRORO_2a.js → passport-horizontal-hint-DJQIorOg.js} +0 -0
  127. /package/dist/{passport-tutorial-DKJLRh0R.js → passport-tutorial-B85bIDro.js} +0 -0
  128. /package/dist/{passport-vertical-hint-D89fHlZY.js → passport-vertical-hint-CIjdflxJ.js} +0 -0
  129. /package/dist/{registerIncodeElement-D2haQTcv.js → registerIncodeElement-BduCekz5.js} +0 -0
  130. /package/dist/{requiredLabelHint-C1OeAqVi.js → requiredLabelHint-Dx0WS2cR.js} +0 -0
  131. /package/dist/{selfieTutorial-BQybE1dK.js → selfieTutorial-Dt7Scw4z.js} +0 -0
  132. /package/dist/{successIcon-hJafyodN.js → successIcon-Bj8Y9CuI.js} +0 -0
@@ -1,45 +0,0 @@
1
- /*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
2
- .IncodeCpfOcrPage {
3
- width: 100%;
4
- height: 100%;
5
- animation: fadeIn var(--motion-fade-in-duration, .7s) ease-out;
6
- margin-inline: auto;
7
- animation-fill-mode: both;
8
- }
9
-
10
- @media (min-width: 48rem) {
11
- .IncodeCpfOcrPage.IncodePageContainer {
12
- align-items: stretch;
13
- }
14
- }
15
-
16
- .IncodeCpfOcrPage .IncodePageInner {
17
- height: 100%;
18
- min-height: var(--spacing-0, var(--spacing-none, 0px));
19
- }
20
-
21
- .IncodeCpfOcrPage .IncodePageContent {
22
- min-height: var(--spacing-0, var(--spacing-none, 0px));
23
- }
24
-
25
- .IncodeCpfOcrPage .IncodeCpfOcr {
26
- height: 100%;
27
- min-height: var(--spacing-0, var(--spacing-none, 0px));
28
- width: 100%;
29
- max-width: var(--incode-form-max-w);
30
- align-items: center;
31
- gap: var(--spacing-16, var(--spacing-16, 16px));
32
- flex-direction: column;
33
- flex: 1;
34
- display: flex;
35
- }
36
-
37
- .IncodeCpfOcrPage .IncodeCpfOcrLoading {
38
- height: 100%;
39
- min-height: var(--spacing-0, var(--spacing-none, 0px));
40
- flex-direction: column;
41
- flex: 1;
42
- justify-content: center;
43
- align-items: center;
44
- display: flex;
45
- }
@@ -1,2 +0,0 @@
1
- import { t as CpfOcr } from "./cpfOcr-DmmsMi8H.js";
2
- export { CpfOcr };
@@ -1,91 +0,0 @@
1
- import { _ as y, p as d, v as u } from "./vendor-preact-mvwZ8mJj.js";
2
- import { g as useManager, i as Page, m as useModuleTerminalCallbacks, t as withStandaloneModuleBootstrap } from "./hooks-CesbGQdO.js";
3
- import { t as Spacer } from "./spacer-BTetNBo1.js";
4
- import { t as Spinner } from "./spinner-WiDswxbO.js";
5
- import { r as Button } from "./incode-logo-wxiGOOpK.js";
6
- import { t as VerificationResult } from "./verificationResult-Cs1e_oSd.js";
7
- import { t as InputComposed } from "./inputComposed-CejoWawJ.js";
8
- import { createCpfOcrManager } from "@incodetech/core/cpf-ocr";
9
- //#region src/modules/cpf-ocr/cpfOcr.tsx
10
- var getInputState = (state) => {
11
- if (state.status === "inputting") return {
12
- cpf: state.cpf,
13
- isValid: state.isValid
14
- };
15
- return {
16
- cpf: "",
17
- isValid: false
18
- };
19
- };
20
- var CpfOcrWithLocalConfig = ({ manager: externalManager, onFinish, onError }) => {
21
- const [state, manager] = useManager(() => externalManager ?? createCpfOcrManager(), { manageLifecycle: !externalManager });
22
- const [hasBlurred, setHasBlurred] = d(false);
23
- const [hasEdited, setHasEdited] = d(false);
24
- const [isFocused, setIsFocused] = d(false);
25
- useModuleTerminalCallbacks({
26
- status: state.status === "finished" ? "finished" : "loading",
27
- onFinish: () => onFinish?.()
28
- });
29
- y(() => {
30
- if (state.status === "error") onError?.(state.error);
31
- }, [state, onError]);
32
- if (state.status === "idle" || state.status === "loading" || state.status === "submitting") return /* @__PURE__ */ u(Page, {
33
- className: "IncodeCpfOcrPage",
34
- children: /* @__PURE__ */ u("div", {
35
- class: "IncodeCpfOcrLoading",
36
- children: /* @__PURE__ */ u(Spinner, { fullScreen: false })
37
- })
38
- });
39
- if (state.status === "error") return /* @__PURE__ */ u(VerificationResult, {
40
- status: "failure",
41
- failureTitle: "Não foi possível verificar o CPF",
42
- onRetry: () => manager.retry()
43
- });
44
- if (state.status === "finished") return null;
45
- const inputState = getInputState(state);
46
- const isComplete = inputState.cpf.replace(/\D/g, "").length === 11;
47
- const cpfError = hasEdited && !inputState.isValid && (isComplete || hasBlurred && !isFocused) ? "Insira um CPF válido" : void 0;
48
- return /* @__PURE__ */ u(Page, {
49
- className: "IncodeCpfOcrPage",
50
- title: "Insira e verifique o número do seu CPF",
51
- children: /* @__PURE__ */ u("div", {
52
- class: "IncodeCpfOcr",
53
- children: [
54
- /* @__PURE__ */ u(Spacer, { size: 32 }),
55
- /* @__PURE__ */ u(InputComposed, {
56
- id: "cpf-ocr-input",
57
- label: "",
58
- value: inputState.cpf,
59
- placeholder: "Seu CPF",
60
- maxLength: 14,
61
- inputMode: "numeric",
62
- "aria-label": "CPF",
63
- onInput: (event) => {
64
- setHasEdited(true);
65
- manager.setCpf(event.target.value);
66
- },
67
- onFocus: () => {
68
- setIsFocused(true);
69
- },
70
- onBlur: () => {
71
- setIsFocused(false);
72
- setHasBlurred(true);
73
- },
74
- error: cpfError,
75
- showErrorIcon: true
76
- }),
77
- /* @__PURE__ */ u(Spacer, {}),
78
- /* @__PURE__ */ u(Button, {
79
- type: "button",
80
- onClick: () => manager.submit(),
81
- disabled: !inputState.isValid,
82
- "data-testid": "cpf-ocr-continue",
83
- children: "Continuar"
84
- })
85
- ]
86
- })
87
- });
88
- };
89
- var CpfOcr = withStandaloneModuleBootstrap(CpfOcrWithLocalConfig, "CPF_OCR", { supportsExternalManager: true });
90
- //#endregion
91
- export { CpfOcr as t };
@@ -1 +0,0 @@
1
- import "./dateInputComposed-B78ejqWm.js";
@@ -1,2 +0,0 @@
1
- import { t as DocumentCapture } from "./documentCapture-Cm7xoulO.js";
2
- export { DocumentCapture };
@@ -1 +0,0 @@
1
- import "./dropdownComposed-jDTWDmRK.js";
@@ -1,2 +0,0 @@
1
- import { t as EkybModule } from "./ekybModule-C0m_eYjt.js";
2
- export { EkybModule };
@@ -1,2 +0,0 @@
1
- import { t as EkycModule } from "./ekycModule-D1rxGsAx.js";
2
- export { EkycModule };
@@ -1,2 +0,0 @@
1
- import { t as FaceMatch } from "./faceMatch-Dg56pj5e.js";
2
- export { FaceMatch };
@@ -1,2 +0,0 @@
1
- import { t as FieldComparison } from "./fieldComparison-DzzJINc3.js";
2
- export { FieldComparison };
@@ -1,64 +0,0 @@
1
- import { i as useTranslation } from "./uiConfig-CwW-ALgf.js";
2
- import { _ as y, l as A, p as d, r as $, v as u } from "./vendor-preact-mvwZ8mJj.js";
3
- import { h as useScreenOrientation } from "./hooks-CesbGQdO.js";
4
- import { isIPad } from "@incodetech/core/device";
5
- //#region src/shared/icons/rotate-icon.svg
6
- var rotate_icon_default = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%3e%3cg%20fill='%2320263D'%3e%3cpath%20d='M84.12%2027.54l-2.58-2.58L65.036%208.456l-2.58-2.58c-3.127-3.127-8.58-2.764-12.157.81L6.69%2050.306c-3.574%203.574-3.938%209.027-.81%2012.158l21.66%2021.66c3.128%203.127%208.58%202.764%2012.157-.81l43.617-43.616c3.574-3.578%203.937-9.03.806-12.158zm-5.524%208.617l-42.439%2042.44c-1.3%201.3-3.28%201.432-4.42.296l-20.63-20.63c-1.14-1.14-1.008-3.12.297-4.42l42.438-42.44c1.302-1.3%203.282-1.432%204.422-.296l1.031%201.032c1.14%201.14%201.009%203.12-.296%204.421-1.302%201.301-1.433%203.281-.297%204.421L69.02%2031.297c1.14%201.14%203.12%201.01%204.421-.296%201.301-1.301%203.281-1.432%204.421-.296l1.031%201.031c1.137%201.14%201.005%203.12-.296%204.421zM51.885%2090a3.135%203.135%200%2001-2.22-5.351l8.925-8.925a3.138%203.138%200%20014.646.233l3.308%204.046c10.114-5.374%2017.081-15.994%2017.178-28.14a3.136%203.136%200%20013.136-3.113h.026a3.14%203.14%200%20013.112%203.161C89.835%2072.746%2072.746%2089.835%2051.911%2090h-.026zM38.115%200a3.135%203.135%200%20012.22%205.351l-8.925%208.925a3.125%203.125%200%2001-2.378.915%203.138%203.138%200%2001-2.272-1.147l-3.308-4.046C13.34%2015.37%206.373%2025.99%206.274%2038.138a3.14%203.14%200%2001-3.139%203.112h-.026a3.139%203.139%200%2001-3.11-3.161C.166%2017.254%2017.255.165%2038.09%200h.026z'/%3e%3c/g%3e%3c/svg%3e";
7
- //#endregion
8
- //#region src/shared/landscapeBlocker/landscapeBlocker.tsx
9
- function usePortalContainer() {
10
- const [container, setContainer] = d(null);
11
- const containerRef = A(null);
12
- y(() => {
13
- const el = document.createElement("div");
14
- el.setAttribute("data-incode-landscape-portal", "");
15
- document.body.appendChild(el);
16
- containerRef.current = el;
17
- setContainer(el);
18
- return () => {
19
- el.remove();
20
- containerRef.current = null;
21
- };
22
- }, []);
23
- return container;
24
- }
25
- function LandscapeBlocker() {
26
- const { t } = useTranslation();
27
- const container = usePortalContainer();
28
- if (!container) return null;
29
- return $(/* @__PURE__ */ u("div", {
30
- class: "IncodeLandscapeBlocker",
31
- children: [
32
- /* @__PURE__ */ u("img", {
33
- class: "IncodeLandscapeBlocker-icon",
34
- src: rotate_icon_default,
35
- alt: "",
36
- "aria-hidden": true
37
- }),
38
- /* @__PURE__ */ u("p", {
39
- class: "IncodeLandscapeBlocker-text",
40
- children: t("common.landscape")
41
- }),
42
- /* @__PURE__ */ u("p", {
43
- class: "IncodeLandscapeBlocker-text",
44
- children: isIPad() ? t("common.rotateIpad") : t("common.rotate")
45
- })
46
- ]
47
- }), container);
48
- }
49
- //#endregion
50
- //#region src/shared/componentRoot/incodeComponent.tsx
51
- /**
52
- * Wraps UI modules with the standard container.
53
- * Shows a landscape blocker overlay on mobile (excluding iPad) when device is rotated to landscape.
54
- */
55
- function IncodeComponent({ children }) {
56
- const { isLandscapeMobile } = useScreenOrientation();
57
- return /* @__PURE__ */ u("div", {
58
- class: "IncodeComponent",
59
- tabIndex: 0,
60
- children: [children, isLandscapeMobile ? /* @__PURE__ */ u(LandscapeBlocker, {}) : null]
61
- });
62
- }
63
- //#endregion
64
- export { LandscapeBlocker as n, IncodeComponent as t };
@@ -1 +0,0 @@
1
- import "./inputComposed-CejoWawJ.js";
@@ -1,2 +0,0 @@
1
- import { t as PdfViewer } from "./pdfViewer-B9zEowl2.js";
2
- export { PdfViewer };
@@ -1,143 +0,0 @@
1
- import { CpfOcrManager } from '@incodetech/core/cpf-ocr';
2
- import { DeepPartial } from '@incodetech/core/flow';
3
- import { FC } from 'preact/compat';
4
- import { FlowModuleConfig } from '@incodetech/core/flow';
5
- import { FunctionComponent } from 'preact';
6
- import { SVGProps } from 'preact/compat';
7
-
8
- /**
9
- * Allowlisted keys for overridable Lottie animations
10
- */
11
- declare type AnimationKey = 'id.tutorial.front' | 'id.tutorial.back' | 'id.tutorial.passport' | 'id.flip' | 'id.processing' | 'selfie.tutorial' | 'loader.spinner';
12
-
13
- /**
14
- * A customer-supplied replacement for a built-in Lottie animation.
15
- *
16
- * - `LottieAnimationData` — a parsed Lottie JSON object.
17
- * - `{ url }` — fetched and cached at runtime.
18
- * - `{ animationData }` — explicit object form.
19
- */
20
- declare type AnimationOverride = LottieAnimationData | {
21
- url: string;
22
- } | {
23
- animationData: LottieAnimationData;
24
- };
25
-
26
- declare type AnimationOverrides = Partial<Record<AnimationKey, AnimationOverride>>;
27
-
28
- /**
29
- * Allowlisted keys for overridable branded SVG illustrations
30
- */
31
- 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';
32
-
33
- /**
34
- * A customer-supplied replacement for a built-in SVG illustration.
35
- *
36
- * - `string` — a URL, or raw `<svg …>` markup (detected by a leading `<`).
37
- * - `{ url }` — fetched and rendered via `<img>`; no script execution.
38
- * - `{ raw }` — inline markup; sanitized before injection.
39
- * - `{ svg }` — a precompiled component, for build-time integrations.
40
- */
41
- declare type AssetOverride = string | {
42
- url: string;
43
- } | {
44
- raw: string;
45
- } | {
46
- svg: SvgComponent;
47
- };
48
-
49
- declare type AssetOverrides = Partial<Record<AssetKey, AssetOverride>>;
50
-
51
- /**
52
- * A module `config` intersected with the per-instance override maps. Typed at
53
- * the UI boundary so core config types (e.g. `IdCaptureConfig`) stay untouched;
54
- * `FlowConfig` also declares the maps directly.
55
- */
56
- declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides;
57
-
58
- export declare const CpfOcr: FC<Omit<CpfOcrProps, "config"> & {
59
- config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
60
- }>;
61
-
62
- declare type CpfOcrProps = IncodeModuleProps<FlowModuleConfig['CPF_OCR'], void, CpfOcrManager>;
63
-
64
- /**
65
- * Extra context passed to `onFinish` alongside the result. Lets a host decide
66
- * how to react to the terminal state without inspecting the DOM. Only the
67
- * workflow module sets these fields today.
68
- */
69
- declare type IncodeFinishMeta = {
70
- /**
71
- * True when the SDK owns the terminal screen — it has already rendered its
72
- * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
73
- * screen), so the host should not render its own completion screen on top.
74
- * `onFinish` still fires so the host can run side effects (e.g. notify an
75
- * OAuth parent).
76
- *
77
- * Advisory only: the SDK cannot stop a host from rendering. This works solely
78
- * because the host reads this flag — a host that ignores it will still
79
- * replace the SDK screen. Not a guarantee.
80
- */
81
- sdkOwnsTerminalScreen?: boolean;
82
- };
83
-
84
- declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = ConfigWithOverrides<TConfig>> = {
85
- /**
86
- * Module configuration required to render the flow.
87
- * For Web Components, this is typically assigned via `element.config = ...`.
88
- *
89
- * Also carries optional per-instance `assets`/`animations` override maps;
90
- * they override the global `setup({ uiConfig })` values for this
91
- * element only and are ignored by the core manager.
92
- */
93
- config?: TConfigInput;
94
- /**
95
- * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
96
- */
97
- manager?: TManager;
98
- /**
99
- * Callback invoked when the module completes successfully.
100
- * @param result - Optional result data from the module completion
101
- * @param meta - Optional context about how the module resolved (e.g. whether
102
- * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
103
- */
104
- onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
105
- /**
106
- * Callback invoked when a fatal module error occurs.
107
- *
108
- * @param error - Human-readable error message.
109
- * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
110
- * the workflow and flow modules on QR validation failures —
111
- * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
112
- * @param moduleErrorCode - Optional machine-readable error code (e.g. a
113
- * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
114
- * branch on the specific terminal error without parsing the message string.
115
- */
116
- onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
117
- };
118
-
119
- /**
120
- * Per-instance asset/animation overrides for a single mounted SDK module.
121
- *
122
- * These ride on the module's `config` prop and are published once at the
123
- * module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
124
- * reads them via {@link useInstanceOverrides} without any prop drilling.
125
- */
126
- declare type InstanceOverrides = {
127
- assets?: AssetOverrides;
128
- animations?: AnimationOverrides;
129
- };
130
-
131
- declare type LottieAnimationData = {
132
- fr: number;
133
- v: string;
134
- ip: number;
135
- op: number;
136
- w: number;
137
- h: number;
138
- };
139
-
140
- /** An SVG imported as a Preact component (the `?react` import shape). */
141
- declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
142
-
143
- export { }