@incodetech/web 2.2.0-rc.0 → 2.2.0-rc.2

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 (130) hide show
  1. package/dist/ae-signature/ae-signature.es.js +3 -3
  2. package/dist/antifraud/antifraud.es.js +3 -3
  3. package/dist/authentication/authentication.es.js +4 -4
  4. package/dist/{autoFocusTitle-gLba2mgp.js → autoFocusTitle-Edt8-trP.js} +1 -1
  5. package/dist/certificate-issuance/certificate-issuance.es.js +9 -9
  6. package/dist/{checkbox-C38Elx0O.js → checkbox-gbHumlEi.js} +3 -3
  7. package/dist/{connectionError-DAeXp8sE.js → connectionError-CvH1vnCt.js} +3 -3
  8. package/dist/consent/consent.es.js +7 -7
  9. package/dist/{countrySelector-2t-ZTgGo.js → countrySelector-DzLvpCfs.js} +2 -2
  10. package/dist/cross-document-data-match/cross-document-data-match.es.js +3 -3
  11. package/dist/curp-validation/curp-validation.es.js +14 -14
  12. package/dist/{customFields-B8HQZ7Mh.js → customFields-DiOcfhlB.js} +9 -9
  13. package/dist/{customWatchlist-_tUmZ855.js → customWatchlist-CC9ZN7fk.js} +5 -5
  14. package/dist/{dashboardTheme-CVliZSR-.js → dashboardTheme-FtPiizV0.js} +2 -2
  15. package/dist/{dateInputComposed-eRcbt_SL.js → dateInputComposed-3jXySs6M.js} +4 -4
  16. package/dist/dateInputComposed-BMauTxWJ.js +1 -0
  17. package/dist/document-capture/document-capture.es.js +1 -1
  18. package/dist/documentCapture-CcnnR36G.js +2 -0
  19. package/dist/{documentCapture-BvEGCYj-.js → documentCapture-Dc9Q2wYc.js} +14 -14
  20. package/dist/{dropdownComposed-OHDHzt1Q.js → dropdownComposed-Bk8viDop.js} +3 -3
  21. package/dist/dropdownComposed-DLaj01jA.js +1 -0
  22. package/dist/{dynamicForms-P-4E42IA.js → dynamicForms-BZB8JDkM.js} +10 -10
  23. package/dist/ekyb/ekyb.es.js +1 -1
  24. package/dist/{ekybModule-DmjkzVWE.js → ekybModule-C9UhcxKV.js} +13 -13
  25. package/dist/ekybModule-QcD4hQFD.js +2 -0
  26. package/dist/ekyc/ekyc.es.js +1 -1
  27. package/dist/{ekycModule-Da1Fm7ai.js → ekycModule-Cp7kPhFr.js} +11 -11
  28. package/dist/ekycModule-DqX1bTFN.js +2 -0
  29. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  30. package/dist/{electronic-signature-yamI6zHM.js → electronic-signature-DGL6y3os.js} +9 -9
  31. package/dist/email/email.es.js +7 -7
  32. package/dist/{emailInput-B0P2Q-pk.js → emailInput-Du_BH960.js} +3 -3
  33. package/dist/{expiredId-BXXE3srN.js → expiredId-Cf7_dJQE.js} +5 -5
  34. package/dist/{extensibility-iJYzpW6H.js → extensibility-CFhCNmsm.js} +23 -24
  35. package/dist/extensibility.es.js +21 -21
  36. package/dist/face-match/face-match.es.js +1 -1
  37. package/dist/{faceMatch-VtEZvsen.js → faceMatch-BOJD6ZCq.js} +7 -7
  38. package/dist/faceMatch-Dhm-H0Pg.js +2 -0
  39. package/dist/field-comparison/field-comparison.es.js +1 -1
  40. package/dist/{fieldComparison-NLdDSOEh.js → fieldComparison-D_cMCcwa.js} +8 -8
  41. package/dist/fieldComparison-Fnup635x.js +2 -0
  42. package/dist/{finalSuccessScreen-DryADx1n.js → finalSuccessScreen-DL08U8_o.js} +9 -9
  43. package/dist/fiscal-qr/fiscal-qr.es.js +8 -8
  44. package/dist/flow/flow.es.js +15 -15
  45. package/dist/geolocation/geolocation.es.js +7 -7
  46. package/dist/government-validation/government-validation.es.js +8 -8
  47. package/dist/{homeScreen-Pv3v_0ji.js → homeScreen-D2XpU5z_.js} +6 -6
  48. package/dist/{icons--ezYG2Fb.js → icons-CIjsoS44.js} +1 -1
  49. package/dist/id/id.es.js +19 -20
  50. package/dist/id-selfie-flow/id-selfie-flow.es.js +8 -9
  51. package/dist/id-verification/id-verification.es.js +4 -4
  52. package/dist/{idOcr-gsIXHq6R.js → idOcr-DkmZyLVu.js} +9 -9
  53. package/dist/identity-reuse/identity-reuse.es.js +5 -5
  54. package/dist/{incode-logo-rGFjZHqi.js → incode-logo-DkPbEPiI.js} +1 -1
  55. package/dist/{incodeComponent-K9ZWg302.js → incodeComponent-B6hBTDEE.js} +59 -14
  56. package/dist/{incodeModule-CcLzar_X.js → incodeModule-CCI32xbn.js} +9 -3
  57. package/dist/index.es.js +2 -2
  58. package/dist/{inputComposed-BeROn635.js → inputComposed-CGB8zKbd.js} +3 -3
  59. package/dist/inputComposed-DDFdXKT3.js +1 -0
  60. package/dist/{mandatoryConsent-BtqB-FxY.js → mandatoryConsent-L7Tpj3tg.js} +7 -7
  61. package/dist/{manualCaptureButton-t_oIol88.js → manualCaptureButton-B3ZD52_f.js} +4 -4
  62. package/dist/{manualCaptureButton-quGa2ufS.js → manualCaptureButton-ByWujoAK.js} +9 -11
  63. package/dist/{modal-BjjJFpZu.js → modal-9-lPt5Hj.js} +2 -2
  64. package/dist/{optionAccessibleLabel-DgfHD_mx.js → optionAccessibleLabel-Cc91L4JK.js} +4 -4
  65. package/dist/{otpInput-D5dLXrmC.js → otpInput-BWiL_nBW.js} +5 -5
  66. package/dist/{pdfViewer-vud1VZv6.js → pdfViewer-BbRv7mHX.js} +2 -2
  67. package/dist/pdfViewer-DHgpC35P.js +2 -0
  68. package/dist/phone/phone.es.js +8 -8
  69. package/dist/{phoneInputComposed-CeVWTS_O.js → phoneInputComposed-Bvy15RAe.js} +4 -4
  70. package/dist/{processing-BsvHyDWa.js → processing-DN0NyNqR.js} +1 -1
  71. package/dist/qe-signature/qe-signature.es.js +3 -3
  72. package/dist/{radioGroupComposed-DzNGUbZQ.js → radioGroupComposed-CPFZJOtR.js} +5 -5
  73. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +12 -12
  74. package/dist/{richText-CTHBpZOw.js → richText-DnGJiTPl.js} +1 -1
  75. package/dist/selfie/selfie.es.js +7 -7
  76. package/dist/signature/signature.es.js +7 -7
  77. package/dist/{snackbar-C9Mqrh0e.js → snackbar-zbTKBgCx.js} +1 -1
  78. package/dist/{spacer-CDlQd12V.js → spacer-C6GdxqM-.js} +2 -2
  79. package/dist/{spinner-CLZ2fz4u.js → spinner-CaEPC8gQ.js} +4 -4
  80. package/dist/{statusPage--GVFSUJp.js → statusPage-C-2V2g63.js} +3 -3
  81. package/dist/{tabs-DweBZTV2.js → tabs-BjLPiKhZ.js} +1 -1
  82. package/dist/{tutorial-BZZC93Ur.js → tutorial-B1F5C8Si.js} +9 -9
  83. package/dist/types/ae-signature.d.ts +28 -2
  84. package/dist/types/antifraud.d.ts +28 -2
  85. package/dist/types/authentication.d.ts +28 -2
  86. package/dist/types/certificate-issuance.d.ts +28 -2
  87. package/dist/types/consent.d.ts +28 -2
  88. package/dist/types/cross-document-data-match.d.ts +28 -2
  89. package/dist/types/curp-validation.d.ts +28 -2
  90. package/dist/types/document-capture.d.ts +28 -2
  91. package/dist/types/ekyb.d.ts +28 -2
  92. package/dist/types/ekyc.d.ts +28 -2
  93. package/dist/types/electronic-signature.d.ts +28 -2
  94. package/dist/types/email.d.ts +28 -2
  95. package/dist/types/extensibility.d.ts +58 -2
  96. package/dist/types/face-match.d.ts +28 -2
  97. package/dist/types/field-comparison.d.ts +28 -2
  98. package/dist/types/fiscal-qr.d.ts +28 -2
  99. package/dist/types/flow.d.ts +43 -3
  100. package/dist/types/geolocation.d.ts +28 -2
  101. package/dist/types/government-validation.d.ts +28 -2
  102. package/dist/types/id-selfie-flow.d.ts +28 -2
  103. package/dist/types/id-verification.d.ts +28 -2
  104. package/dist/types/id.d.ts +28 -2
  105. package/dist/types/identity-reuse.d.ts +28 -2
  106. package/dist/types/index.d.ts +49 -0
  107. package/dist/types/phone.d.ts +28 -2
  108. package/dist/types/qe-signature.d.ts +28 -2
  109. package/dist/types/selfie.d.ts +28 -2
  110. package/dist/types/signature.d.ts +28 -2
  111. package/dist/types/video-selfie.d.ts +28 -2
  112. package/dist/types/watchlist.d.ts +28 -2
  113. package/dist/types/workflow.d.ts +44 -3
  114. package/dist/{uiConfig-B5ASPUL4.js → uiConfig-D7ezQeZ7.js} +42 -5
  115. package/dist/{useModuleLoader-D_YpuVsS.js → useModuleLoader-DVvqx4RT.js} +18 -18
  116. package/dist/{verificationResult-B8HwR07t.js → verificationResult-tgNeUuHO.js} +7 -7
  117. package/dist/video-selfie/video-selfie.es.js +14 -15
  118. package/dist/watchlist/watchlist.es.js +5 -5
  119. package/dist/{watchlistForBusiness-D8Is99bZ.js → watchlistForBusiness-3bO7BVcy.js} +8 -8
  120. package/dist/workflow/workflow.es.js +12 -12
  121. package/package.json +2 -2
  122. package/dist/dateInputComposed-ks0-opuq.js +0 -1
  123. package/dist/documentCapture-DdHdRPzR.js +0 -2
  124. package/dist/dropdownComposed-kjG4UblM.js +0 -1
  125. package/dist/ekybModule-CiaxFHXo.js +0 -2
  126. package/dist/ekycModule-BVt10kgv.js +0 -2
  127. package/dist/faceMatch-D4XFihTc.js +0 -2
  128. package/dist/fieldComparison-B_r9Bal7.js +0 -2
  129. package/dist/inputComposed-CADVQW-o.js +0 -1
  130. package/dist/pdfViewer-CZb6obcZ.js +0 -2
@@ -111,15 +111,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
111
111
  };
112
112
 
113
113
  /**
114
- * Per-instance asset/animation overrides for a single mounted SDK module.
114
+ * Per-instance overrides for a single mounted SDK module.
115
115
  *
116
116
  * These ride on the module's `config` prop and are published once at the
117
117
  * module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
118
- * reads them via {@link useInstanceOverrides} without any prop drilling.
118
+ * or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
119
+ * any prop drilling.
119
120
  */
120
121
  declare type InstanceOverrides = {
121
122
  assets?: AssetOverrides;
122
123
  animations?: AnimationOverrides;
124
+ spinner?: SpinnerPresentation;
123
125
  };
124
126
 
125
127
  declare type LottieAnimationData = {
@@ -131,6 +133,30 @@ declare type LottieAnimationData = {
131
133
  h: number;
132
134
  };
133
135
 
136
+ /**
137
+ * Host-facing loader presentation, settable globally via
138
+ * `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
139
+ *
140
+ * Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
141
+ * which keeps it localizable — a literal string here would freeze in whatever
142
+ * language the host typed it in when the user switches language mid-flow — and
143
+ * leaves one source of truth for user-facing strings.
144
+ */
145
+ declare type SpinnerPresentation = {
146
+ renderMode?: SpinnerRenderMode;
147
+ size?: SpinnerSize;
148
+ };
149
+
150
+ /**
151
+ * Which parts of a loader render.
152
+ *
153
+ * An enum rather than a pair of booleans so the meaningless fourth state —
154
+ * neither icon nor text, i.e. a blank screen — is unrepresentable.
155
+ */
156
+ declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
157
+
158
+ declare type SpinnerSize = 'small' | 'medium' | 'large';
159
+
134
160
  /** An SVG imported as a Preact component (the `?react` import shape). */
135
161
  declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
136
162
 
@@ -126,15 +126,17 @@ export declare const IncodeWorkflow: FC<IncodeWorkflowProps>;
126
126
  declare type IncodeWorkflowProps = IncodeModuleProps<WorkflowComponentConfig, FinishStatus>;
127
127
 
128
128
  /**
129
- * Per-instance asset/animation overrides for a single mounted SDK module.
129
+ * Per-instance overrides for a single mounted SDK module.
130
130
  *
131
131
  * These ride on the module's `config` prop and are published once at the
132
132
  * module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
133
- * reads them via {@link useInstanceOverrides} without any prop drilling.
133
+ * or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
134
+ * any prop drilling.
134
135
  */
135
136
  declare type InstanceOverrides = {
136
137
  assets?: AssetOverrides;
137
138
  animations?: AnimationOverrides;
139
+ spinner?: SpinnerPresentation;
138
140
  };
139
141
 
140
142
  declare type LottieAnimationData = {
@@ -175,12 +177,45 @@ declare type SelfLoadingWorkflowRuntimeConfig = WorkflowBaseConfig & SelfLoading
175
177
  interviewId?: never;
176
178
  };
177
179
 
178
- declare type SpinnerConfig = {
180
+ /**
181
+ * The presentation fields plus the legacy inline copy accepted by
182
+ * `<incode-flow>` / `<incode-workflow>`.
183
+ */
184
+ declare type SpinnerConfig = SpinnerPresentation & {
185
+ /**
186
+ * @deprecated Set loader copy via i18n translations (`loadingCircle.holdOn`).
187
+ * TODO(2.3.0): remove.
188
+ */
179
189
  title?: string;
190
+ /**
191
+ * @deprecated Set loader copy via i18n translations (`loadingCircle.validating`).
192
+ * TODO(2.3.0): remove.
193
+ */
180
194
  subtitle?: string;
195
+ };
196
+
197
+ /**
198
+ * Host-facing loader presentation, settable globally via
199
+ * `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
200
+ *
201
+ * Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
202
+ * which keeps it localizable — a literal string here would freeze in whatever
203
+ * language the host typed it in when the user switches language mid-flow — and
204
+ * leaves one source of truth for user-facing strings.
205
+ */
206
+ declare type SpinnerPresentation = {
207
+ renderMode?: SpinnerRenderMode;
181
208
  size?: SpinnerSize;
182
209
  };
183
210
 
211
+ /**
212
+ * Which parts of a loader render.
213
+ *
214
+ * An enum rather than a pair of booleans so the meaningless fourth state —
215
+ * neither icon nor text, i.e. a blank screen — is unrepresentable.
216
+ */
217
+ declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
218
+
184
219
  declare type SpinnerSize = 'small' | 'medium' | 'large';
185
220
 
186
221
  /** An SVG imported as a Preact component (the `?react` import shape). */
@@ -216,6 +251,12 @@ declare type WorkflowBaseConfig = {
216
251
  disableDashboardTheme?: boolean;
217
252
  wasmConfig?: WasmConfig | false;
218
253
  spinnerConfig?: SpinnerConfig;
254
+ /**
255
+ * Per-instance loader presentation for this workflow and its modules.
256
+ * Overrides the global `setup({ uiConfig: { spinner } })` value. Copy stays
257
+ * in i18n.
258
+ */
259
+ spinner?: SpinnerPresentation;
219
260
  customModuleCallback?: CustomModuleCallback;
220
261
  /** Whether the device is a desktop. Determines desktop-to-mobile redirect injection. Defaults to true. */
221
262
  isDesktop?: boolean;
@@ -2969,8 +2969,34 @@ var Trans = ({ i18nKey, boldClass = "IncodeTransBold", arrowClass = "IncodeTrans
2969
2969
  };
2970
2970
  //#endregion
2971
2971
  //#region src/shared/uiConfig/uiConfig.ts
2972
- var uiConfig = {};
2972
+ /** Tier 1: set by the host via `setup({ uiConfig })` / `setUiConfig`. Wins. */
2973
+ var hostUiConfig = {};
2974
+ /** Tier 2: derived from the tenant's dashboard theme. Fills the gaps. */
2975
+ var themeUiConfig = {};
2976
+ /**
2977
+ * Cached composition of the two tiers. `useSyncExternalStore` requires
2978
+ * `getSnapshot` to return a referentially stable value — composing on every
2979
+ * call would hand Preact a new object each time and loop forever — so the
2980
+ * merge happens once per write instead.
2981
+ */
2982
+ var snapshot = {};
2973
2983
  var listeners = /* @__PURE__ */ new Set();
2984
+ function withoutUndefined(value) {
2985
+ const defined = {};
2986
+ for (const key of Object.keys(value)) if (value[key] !== void 0) defined[key] = value[key];
2987
+ return defined;
2988
+ }
2989
+ /**
2990
+ * Host fields win over theme fields; a host field left `undefined` counts as
2991
+ * "not specified" and lets the theme through, rather than blanking it.
2992
+ */
2993
+ function publish() {
2994
+ snapshot = {
2995
+ ...themeUiConfig,
2996
+ ...withoutUndefined(hostUiConfig)
2997
+ };
2998
+ for (const listener of listeners) listener();
2999
+ }
2974
3000
  function subscribe(listener) {
2975
3001
  listeners.add(listener);
2976
3002
  return () => {
@@ -2978,17 +3004,28 @@ function subscribe(listener) {
2978
3004
  };
2979
3005
  }
2980
3006
  function getSnapshot() {
2981
- return uiConfig;
3007
+ return snapshot;
2982
3008
  }
2983
3009
  /**
2984
3010
  * Sets global UI configuration defaults for `@incodetech/ui`.
3011
+ *
3012
+ * Replaces (does not merge with) the previous host-supplied config, so omitting
3013
+ * a field clears it. The dashboard theme is held separately and is unaffected.
2985
3014
  */
2986
3015
  function setUiConfig(next) {
2987
- uiConfig = next;
2988
- for (const listener of listeners) listener();
3016
+ hostUiConfig = next;
3017
+ publish();
3018
+ }
3019
+ /**
3020
+ * Internal: publishes the branding fields derived from the tenant's dashboard
3021
+ * theme. Not exported from the package — hosts use {@link setUiConfig}.
3022
+ */
3023
+ function setThemeUiConfig(next) {
3024
+ themeUiConfig = next;
3025
+ publish();
2989
3026
  }
2990
3027
  function useUiConfig() {
2991
3028
  return C(subscribe, getSnapshot);
2992
3029
  }
2993
3030
  //#endregion
2994
- export { hasI18nInstance as a, readStoredLanguage as c, useTranslation as i, getLanguageEmoji as l, useUiConfig as n, setI18nInstance as o, Trans as r, createI18n as s, setUiConfig as t, supportedLanguages as u };
3031
+ export { useTranslation as a, createI18n as c, supportedLanguages as d, Trans as i, readStoredLanguage as l, setUiConfig as n, hasI18nInstance as o, useUiConfig as r, setI18nInstance as s, setThemeUiConfig as t, getLanguageEmoji as u };
@@ -1,8 +1,8 @@
1
- import { a as hasI18nInstance, o as setI18nInstance, s as createI18n } from "./uiConfig-B5ASPUL4.js";
1
+ import { c as createI18n, o as hasI18nInstance, s as setI18nInstance } from "./uiConfig-D7ezQeZ7.js";
2
2
  import { _ as y, l as A, p as d, v as u } from "./vendor-preact-mvwZ8mJj.js";
3
- import { a as getStandaloneSetupPolicy, n as preloadDashboardTheme } from "./dashboardTheme-CVliZSR-.js";
4
- import "./incodeComponent-K9ZWg302.js";
5
- import { r as Button } from "./incode-logo-rGFjZHqi.js";
3
+ import { a as getStandaloneSetupPolicy, n as preloadDashboardTheme } from "./dashboardTheme-FtPiizV0.js";
4
+ import "./incodeComponent-B6hBTDEE.js";
5
+ import { r as Button } from "./incode-logo-DkPbEPiI.js";
6
6
  import { initializeWasmUtil, resolveWasmConfig, setWasmConfig, upgradeToWasmHttpClient, warmupWasm } from "@incodetech/core/wasm";
7
7
  import { isDesktopOrEmulated } from "@incodetech/core/device";
8
8
  import { createOrchestratedFlowManager, getFlow, getRequiredWasmPipelines } from "@incodetech/core/flow";
@@ -14,7 +14,7 @@ function isDesktopOrEmulated$1() {
14
14
  //#endregion
15
15
  //#region src/modules/flow/flowInit.ts
16
16
  var lazyIdModule = () => import("./id/id.es.js").then((m) => m.Id);
17
- var loadLazyHomeScreen = () => import("./homeScreen-Pv3v_0ji.js").then((m) => m.HomeScreen);
17
+ var loadLazyHomeScreen = () => import("./homeScreen-D2XpU5z_.js").then((m) => m.HomeScreen);
18
18
  var homeScreenPreloadPromise;
19
19
  /**
20
20
  * Headless flow keys: backend-only steps with no UI. `<incode-flow>` renders
@@ -78,31 +78,31 @@ var LAZY_UI_MODULES = {
78
78
  ID_CAPTURE: lazyIdModule,
79
79
  TUTORIAL_ID: lazyIdModule,
80
80
  SECOND_ID: lazyIdModule,
81
- FACE_MATCH: () => import("./faceMatch-D4XFihTc.js").then((m) => m.FaceMatch),
81
+ FACE_MATCH: () => import("./faceMatch-Dhm-H0Pg.js").then((m) => m.FaceMatch),
82
82
  CURP_VALIDATION: () => import("./curp-validation/curp-validation.es.js").then((m) => m.CurpValidation),
83
83
  GOVT_VALIDATION_PROVISIONING: () => import("./government-validation/government-validation.es.js").then((m) => m.GovernmentValidation),
84
84
  INE_VALIDATION: () => import("./government-validation/government-validation.es.js").then((m) => m.GovernmentValidation),
85
85
  GEOLOCATION: () => import("./geolocation/geolocation.es.js").then((m) => m.Geolocation),
86
- EXTERNAL_VERIFICATION: () => import("./ekycModule-BVt10kgv.js").then((m) => m.EkycModule),
87
- EKYB: () => import("./ekybModule-CiaxFHXo.js").then((m) => m.EkybModule),
88
- DOCUMENT_CAPTURE: () => import("./documentCapture-DdHdRPzR.js").then((m) => m.DocumentCapture),
89
- ADDRESS: () => import("./documentCapture-DdHdRPzR.js").then((m) => m.DocumentCapture),
86
+ EXTERNAL_VERIFICATION: () => import("./ekycModule-DqX1bTFN.js").then((m) => m.EkycModule),
87
+ EKYB: () => import("./ekybModule-QcD4hQFD.js").then((m) => m.EkybModule),
88
+ DOCUMENT_CAPTURE: () => import("./documentCapture-CcnnR36G.js").then((m) => m.DocumentCapture),
89
+ ADDRESS: () => import("./documentCapture-CcnnR36G.js").then((m) => m.DocumentCapture),
90
90
  COMBINED_CONSENT: () => import("./consent/consent.es.js").then((m) => m.Consent),
91
- MANDATORY_CONSENT: () => import("./mandatoryConsent-BtqB-FxY.js").then((m) => m.MandatoryConsent),
92
- ML_CONSENT: () => import("./mandatoryConsent-BtqB-FxY.js").then((m) => m.MandatoryConsent),
91
+ MANDATORY_CONSENT: () => import("./mandatoryConsent-L7Tpj3tg.js").then((m) => m.MandatoryConsent),
92
+ ML_CONSENT: () => import("./mandatoryConsent-L7Tpj3tg.js").then((m) => m.MandatoryConsent),
93
93
  SIGNATURE: () => import("./signature/signature.es.js").then((m) => m.Signature),
94
- ID_OCR: () => import("./idOcr-gsIXHq6R.js").then((m) => m.IdOcr),
94
+ ID_OCR: () => import("./idOcr-DkmZyLVu.js").then((m) => m.IdOcr),
95
95
  ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((m) => m.Antifraud),
96
- CUSTOM_FIELDS: () => import("./customFields-B8HQZ7Mh.js").then((m) => m.CustomFields),
96
+ CUSTOM_FIELDS: () => import("./customFields-DiOcfhlB.js").then((m) => m.CustomFields),
97
97
  WATCHLIST: () => import("./watchlist/watchlist.es.js").then((m) => m.Watchlist),
98
- WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-D8Is99bZ.js").then((m) => m.WatchlistForBusiness),
99
- INCODE_WATCHLIST: () => import("./customWatchlist-_tUmZ855.js").then((m) => m.CustomWatchlist),
98
+ WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-3bO7BVcy.js").then((m) => m.WatchlistForBusiness),
99
+ INCODE_WATCHLIST: () => import("./customWatchlist-CC9ZN7fk.js").then((m) => m.CustomWatchlist),
100
100
  AE_SIGNATURE: () => import("./ae-signature/ae-signature.es.js").then((m) => m.AeSignature),
101
101
  QE_SIGNATURE: () => import("./qe-signature/qe-signature.es.js").then((m) => m.QeSignature),
102
102
  CROSS_DOCUMENT_DATA_MATCH: () => import("./cross-document-data-match/cross-document-data-match.es.js").then((m) => m.CrossDocumentDataMatch),
103
- DYNAMIC_FORMS: () => import("./dynamicForms-P-4E42IA.js").then((m) => m.DynamicForms),
103
+ DYNAMIC_FORMS: () => import("./dynamicForms-BZB8JDkM.js").then((m) => m.DynamicForms),
104
104
  CERTIFICATE_ISSUANCE: () => import("./certificate-issuance/certificate-issuance.es.js").then((m) => m.CertificateIssuance),
105
- FIELD_COMPARISON: () => import("./fieldComparison-B_r9Bal7.js").then((m) => m.FieldComparison),
105
+ FIELD_COMPARISON: () => import("./fieldComparison-Fnup635x.js").then((m) => m.FieldComparison),
106
106
  FISCAL_QR: () => import("./fiscal-qr/fiscal-qr.es.js").then((m) => m.FiscalQr),
107
107
  VIDEO_ONBOARDING: () => import("./video-selfie/video-selfie.es.js").then((m) => m.VideoSelfie)
108
108
  };
@@ -1,12 +1,12 @@
1
- import { i as useTranslation } from "./uiConfig-B5ASPUL4.js";
1
+ import { a as useTranslation } from "./uiConfig-D7ezQeZ7.js";
2
2
  import { S as k, v as u } from "./vendor-preact-mvwZ8mJj.js";
3
- import { o as Page } from "./incodeComponent-K9ZWg302.js";
4
- import { t as Spacer } from "./spacer-CDlQd12V.js";
5
- import { t as Spinner } from "./spinner-CLZ2fz4u.js";
6
- import { n as ErrorIcon, r as Button } from "./incode-logo-rGFjZHqi.js";
7
- import { v as WarningIcon } from "./icons--ezYG2Fb.js";
3
+ import { o as Page } from "./incodeComponent-B6hBTDEE.js";
4
+ import { t as Spacer } from "./spacer-C6GdxqM-.js";
5
+ import { t as Spinner } 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 AutoFocusTitle } from "./autoFocusTitle-gLba2mgp.js";
9
+ import { t as AutoFocusTitle } from "./autoFocusTitle-Edt8-trP.js";
10
10
  //#region src/shared/verificationResult/verificationResult.tsx
11
11
  var SUBTITLE_ID = "IncodeVerificationResultSubtitle";
12
12
  var VerificationResult = ({ status, submittingTitle, successTitle, failureTitle, warningTitle, submittingSubtitle, errorMessage, onRetry, onSkip, retryLabel, skipLabel, hideFooterBranding = true, footerBrandingSlot }) => {
@@ -1,15 +1,15 @@
1
- import { i as useTranslation } from "../uiConfig-B5ASPUL4.js";
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, p as d, v as u } from "../vendor-preact-mvwZ8mJj.js";
3
- import { _ as useModuleTerminalCallbacks, a as TerminalErrorPage, d as useTimeoutHandle, l as TransitionSpinner, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-K9ZWg302.js";
4
- import { n as LoadingIcon, u as cn } from "../spacer-CDlQd12V.js";
5
- import { n as Title } from "../spinner-CLZ2fz4u.js";
6
- import { r as Button } from "../incode-logo-rGFjZHqi.js";
7
- import "../icons--ezYG2Fb.js";
3
+ import { _ as useModuleTerminalCallbacks, a as TerminalErrorPage, d as useTimeoutHandle, l as TransitionSpinner, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-B6hBTDEE.js";
4
+ import { d as cn, n as LoadingIcon } from "../spacer-C6GdxqM-.js";
5
+ import { n as Title } from "../spinner-CaEPC8gQ.js";
6
+ import { r as Button } from "../incode-logo-DkPbEPiI.js";
7
+ import "../icons-CIjsoS44.js";
8
8
  import { t as SuccessIcon } from "../successIcon-Bj8Y9CuI.js";
9
- import { a as CameraView, r as preloadCaptureAnimations } from "../manualCaptureButton-t_oIol88.js";
10
- import { n as Permissions } from "../manualCaptureButton-quGa2ufS.js";
11
- import { t as registerIncodeModuleElement } from "../incodeModule-CcLzar_X.js";
12
- import { a as IdFlipModal, c as VideoSelfieTutorial, i as IdMask, l as useVideoSelfiePermissions, n as SwitchingCameraScreen, o as preloadIdFlipAnimation, r as StepsHeader, s as SelfieMask, t as VideoSelfieFinalSuccessScreen } from "../finalSuccessScreen-DryADx1n.js";
9
+ import { a as CameraView, r as preloadCaptureAnimations } from "../manualCaptureButton-B3ZD52_f.js";
10
+ import { n as Permissions } from "../manualCaptureButton-ByWujoAK.js";
11
+ import { t as registerIncodeModuleElement } from "../incodeModule-CCI32xbn.js";
12
+ import { a as IdFlipModal, c as VideoSelfieTutorial, i as IdMask, l as useVideoSelfiePermissions, n as SwitchingCameraScreen, o as preloadIdFlipAnimation, r as StepsHeader, s as SelfieMask, t as VideoSelfieFinalSuccessScreen } from "../finalSuccessScreen-DL08U8_o.js";
13
13
  import { eventModuleNames, eventScreenNames, screenEvent, videoSelfieEvents } from "@incodetech/core/events";
14
14
  import { createConsentRecorder, createVideoSelfieCameraWarmer, createVideoSelfieRecordingManager, facingModeForStep, getVideoSelfieQuestions, getVoiceConsentPhrase, resolveVideoSelfieSteps, warmupVideoSelfieWasm } from "@incodetech/core/video-selfie";
15
15
  //#region src/modules/video-selfie/poaMask.tsx
@@ -383,13 +383,12 @@ var SpeechMask = ({ composite, speechToTextCheck, numberOfTries, onDone }) => {
383
383
  //#endregion
384
384
  //#region src/modules/video-selfie/finalizingScreen.tsx
385
385
  var VideoSelfieFinalizingScreen = () => {
386
- const { t } = useTranslation();
387
386
  return /* @__PURE__ */ u(Page, {
388
387
  hideHeader: true,
389
- children: /* @__PURE__ */ u(TransitionSpinner, { spinnerConfig: {
390
- title: t("videoSelfie.finalProcessingTitle"),
391
- subtitle: t("videoSelfie.finalProcessingSubtitle")
392
- } })
388
+ children: /* @__PURE__ */ u(TransitionSpinner, {
389
+ titleKey: "videoSelfie.finalProcessingTitle",
390
+ subtitleKey: "videoSelfie.finalProcessingSubtitle"
391
+ })
393
392
  });
394
393
  };
395
394
  //#endregion
@@ -1,10 +1,10 @@
1
- import { i as useTranslation } from "../uiConfig-B5ASPUL4.js";
1
+ import { a as useTranslation } from "../uiConfig-D7ezQeZ7.js";
2
2
  import { _ as y, v as u } from "../vendor-preact-mvwZ8mJj.js";
3
- import { _ as useModuleTerminalCallbacks, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-K9ZWg302.js";
4
- import { n as LoadingIcon } from "../spacer-CDlQd12V.js";
3
+ import { _ as useModuleTerminalCallbacks, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-B6hBTDEE.js";
4
+ import { n as LoadingIcon } from "../spacer-C6GdxqM-.js";
5
5
  import { t as SuccessIcon } from "../successIcon-Bj8Y9CuI.js";
6
- import { t as StatusPage } from "../statusPage--GVFSUJp.js";
7
- import { t as registerIncodeModuleElement } from "../incodeModule-CcLzar_X.js";
6
+ import { t as StatusPage } from "../statusPage-C-2V2g63.js";
7
+ import { t as registerIncodeModuleElement } from "../incodeModule-CCI32xbn.js";
8
8
  import { createWatchlistManager } from "@incodetech/core/watchlist";
9
9
  //#region src/modules/watchlist/watchlist.tsx
10
10
  var WatchlistContent = ({ manager: externalManager, onFinish }) => {
@@ -1,13 +1,13 @@
1
- import { i as useTranslation } from "./uiConfig-B5ASPUL4.js";
1
+ import { a as useTranslation } from "./uiConfig-D7ezQeZ7.js";
2
2
  import { _ as y, 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-K9ZWg302.js";
4
- import { n as LoadingIcon } from "./spacer-CDlQd12V.js";
5
- import { r as Button } from "./incode-logo-rGFjZHqi.js";
3
+ import { _ as useModuleTerminalCallbacks, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "./incodeComponent-B6hBTDEE.js";
4
+ import { n as LoadingIcon } from "./spacer-C6GdxqM-.js";
5
+ import { r as Button } from "./incode-logo-DkPbEPiI.js";
6
6
  import { t as SuccessIcon } from "./successIcon-Bj8Y9CuI.js";
7
- import { t as StatusPage } from "./statusPage--GVFSUJp.js";
8
- import { t as InputComposed } from "./inputComposed-BeROn635.js";
9
- import { t as registerIncodeModuleElement } from "./incodeModule-CcLzar_X.js";
10
- import { t as CountrySelector } from "./countrySelector-2t-ZTgGo.js";
7
+ import { t as StatusPage } from "./statusPage-C-2V2g63.js";
8
+ import { t as InputComposed } from "./inputComposed-CGB8zKbd.js";
9
+ import { t as registerIncodeModuleElement } from "./incodeModule-CCI32xbn.js";
10
+ import { t as CountrySelector } from "./countrySelector-DzLvpCfs.js";
11
11
  import { createWatchlistForBusinessManager } from "@incodetech/core/watchlist-for-business";
12
12
  //#region src/modules/watchlist-for-business/watchlistForBusiness.tsx
13
13
  var WatchlistForBusinessContent = ({ onFinish }) => {
@@ -1,10 +1,10 @@
1
- import { c as readStoredLanguage, i as useTranslation, t as setUiConfig } from "../uiConfig-B5ASPUL4.js";
1
+ import { a as useTranslation, l as readStoredLanguage, t as setThemeUiConfig } from "../uiConfig-D7ezQeZ7.js";
2
2
  import { _ as y, c as z, l as A, o as P, p as d, v as u } from "../vendor-preact-mvwZ8mJj.js";
3
- import { i as fetchAndApplyTheme } from "../dashboardTheme-CVliZSR-.js";
4
- import { a as TerminalErrorPage, i as ResolvedConfigProvider, l as TransitionSpinner, o as Page, t as IncodeComponent, y as useManager } from "../incodeComponent-K9ZWg302.js";
5
- import { t as AutoFocusTitle } from "../autoFocusTitle-gLba2mgp.js";
6
- import { t as registerIncodeModuleElement } from "../incodeModule-CcLzar_X.js";
7
- import { a as resolveApiKey, g as setupSDK, i as HEADLESS_WORKFLOW_MODULE_KEYS, l as LAZY_UI_MODULES, o as extractIncodeStatus, s as UnsupportedModule, t as useModuleLoader, v as isDesktopOrEmulated } from "../useModuleLoader-D_YpuVsS.js";
3
+ import { i as fetchAndApplyTheme } from "../dashboardTheme-FtPiizV0.js";
4
+ import { a as TerminalErrorPage, i as ResolvedConfigProvider, l as TransitionSpinner, o as Page, t as IncodeComponent, y as useManager } from "../incodeComponent-B6hBTDEE.js";
5
+ import { t as AutoFocusTitle } from "../autoFocusTitle-Edt8-trP.js";
6
+ import { t as registerIncodeModuleElement } from "../incodeModule-CCI32xbn.js";
7
+ import { a as resolveApiKey, g as setupSDK, i as HEADLESS_WORKFLOW_MODULE_KEYS, l as LAZY_UI_MODULES, o as extractIncodeStatus, s as UnsupportedModule, t as useModuleLoader, v as isDesktopOrEmulated } from "../useModuleLoader-DVvqx4RT.js";
8
8
  import { resolveWasmConfig, upgradeToWasmHttpClient, warmupWasm } from "@incodetech/core/wasm";
9
9
  import { classifyScoreStatus } from "@incodetech/core/flow";
10
10
  import { bootstrapSession, refreshQrUrlUuid } from "@incodetech/core/session";
@@ -226,7 +226,7 @@ function useWorkflowInitialization(options) {
226
226
  });
227
227
  if (signal.aborted) return;
228
228
  const themePromise = options.disableDashboardTheme ? Promise.resolve() : fetchWorkflowTheme().then((result) => {
229
- if (result.uiConfig) setUiConfig(result.uiConfig);
229
+ if (result.uiConfig) setThemeUiConfig(result.uiConfig);
230
230
  });
231
231
  warmupWorkflowWasm(options.wasmConfig);
232
232
  if (signal.aborted) return;
@@ -265,7 +265,7 @@ function useWorkflowInitialization(options) {
265
265
  }
266
266
  //#endregion
267
267
  //#region src/modules/workflow/workflow.tsx
268
- var LazyHomeScreen = z(() => import("../homeScreen-Pv3v_0ji.js").then((module) => ({ default: module.HomeScreen })));
268
+ var LazyHomeScreen = z(() => import("../homeScreen-D2XpU5z_.js").then((module) => ({ default: module.HomeScreen })));
269
269
  function mapModuleConfig(options) {
270
270
  const { moduleKey, config, workflowId, authHint, loginHintPrefill, lang, mergeSessionRecordings, ageAssurance } = options;
271
271
  switch (moduleKey) {
@@ -356,12 +356,12 @@ var IncodeWorkflowReady = ({ config, workflowManager: initialManager, onFinish,
356
356
  onError,
357
357
  showFinishScreen
358
358
  ]);
359
- const hideSpinnerText = !(config.spinnerConfig?.title || config.spinnerConfig?.subtitle);
359
+ const spinnerRenderMode = config.spinnerConfig?.title || config.spinnerConfig?.subtitle ? "spinnerAndText" : "spinnerOnly";
360
360
  const renderSpinner = () => /* @__PURE__ */ u("div", {
361
361
  class: "IncodeWorkflow",
362
362
  children: /* @__PURE__ */ u(TransitionSpinner, {
363
363
  spinnerConfig: config.spinnerConfig,
364
- hideText: hideSpinnerText
364
+ renderMode: spinnerRenderMode
365
365
  })
366
366
  });
367
367
  const handleModuleError = (error, _errorCode, moduleErrorCode) => {
@@ -438,7 +438,7 @@ var IncodeWorkflowContent = ({ config, onFinish, onError }) => {
438
438
  if (readStoredLanguage()) return;
439
439
  if (config.lang && i18n.language !== config.lang) i18n.changeLanguage(config.lang);
440
440
  }, [config.lang, i18n]);
441
- const hideSpinnerText = !(config.spinnerConfig?.title || config.spinnerConfig?.subtitle);
441
+ const spinnerRenderMode = config.spinnerConfig?.title || config.spinnerConfig?.subtitle ? "spinnerAndText" : "spinnerOnly";
442
442
  if (initState.status === "error") return /* @__PURE__ */ u("div", {
443
443
  class: "IncodeWorkflow",
444
444
  children: /* @__PURE__ */ u(TerminalErrorPage, { message: initState.error })
@@ -447,7 +447,7 @@ var IncodeWorkflowContent = ({ config, onFinish, onError }) => {
447
447
  class: "IncodeWorkflow",
448
448
  children: /* @__PURE__ */ u(TransitionSpinner, {
449
449
  spinnerConfig: config.spinnerConfig,
450
- hideText: hideSpinnerText
450
+ renderMode: spinnerRenderMode
451
451
  })
452
452
  });
453
453
  return /* @__PURE__ */ u(IncodeWorkflowReady, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "2.2.0-rc.0",
3
+ "version": "2.2.0-rc.2",
4
4
  "license": "ISC",
5
5
  "repository": {
6
6
  "type": "git",
@@ -292,7 +292,7 @@
292
292
  "qrcode": "^1.5.4",
293
293
  "signature_pad": "^5.1.3",
294
294
  "tailwindcss": "^4.1.17",
295
- "@incodetech/core": "2.2.0-rc.0"
295
+ "@incodetech/core": "2.2.0-rc.2"
296
296
  },
297
297
  "devDependencies": {
298
298
  "@microsoft/api-extractor": "^7.53.3",
@@ -1 +0,0 @@
1
- import "./dateInputComposed-eRcbt_SL.js";
@@ -1,2 +0,0 @@
1
- import { t as DocumentCapture } from "./documentCapture-BvEGCYj-.js";
2
- export { DocumentCapture };
@@ -1 +0,0 @@
1
- import "./dropdownComposed-OHDHzt1Q.js";
@@ -1,2 +0,0 @@
1
- import { t as EkybModule } from "./ekybModule-DmjkzVWE.js";
2
- export { EkybModule };
@@ -1,2 +0,0 @@
1
- import { t as EkycModule } from "./ekycModule-Da1Fm7ai.js";
2
- export { EkycModule };
@@ -1,2 +0,0 @@
1
- import { t as FaceMatch } from "./faceMatch-VtEZvsen.js";
2
- export { FaceMatch };
@@ -1,2 +0,0 @@
1
- import { t as FieldComparison } from "./fieldComparison-NLdDSOEh.js";
2
- export { FieldComparison };
@@ -1 +0,0 @@
1
- import "./inputComposed-BeROn635.js";
@@ -1,2 +0,0 @@
1
- import { t as PdfViewer } from "./pdfViewer-vud1VZv6.js";
2
- export { PdfViewer };