@incodetech/web 0.0.0-dev-20260709-36b8e7c1 → 0.0.0-dev-20260710-d193e0c7

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.
@@ -777,19 +777,22 @@ var IncodeFlowContent = ({ config, onFinish, onError }) => {
777
777
  if (currentStep === "DYNAMIC_FORMS") return /* @__PURE__ */ u("div", {
778
778
  class: "IncodeFlow",
779
779
  children: /* @__PURE__ */ u(Component, {
780
- config: { screens: flowConfig.screens.map((s) => ({
781
- title: s.title,
782
- hideTitle: s.hideTitle,
783
- questions: s.questions.map((q) => ({
784
- questionId: q.questionId,
785
- question: q.question,
786
- inputType: q.inputType,
787
- isOptional: q.isOptional,
788
- overrides: q.overrides ?? void 0,
789
- isPredefined: q.isPredefined,
790
- options: q.options
791
- }))
792
- })) },
780
+ config: {
781
+ screens: flowConfig.screens.map((s) => ({
782
+ title: s.title,
783
+ hideTitle: s.hideTitle,
784
+ questions: s.questions.map((q) => ({
785
+ questionId: q.questionId,
786
+ question: q.question,
787
+ inputType: q.inputType,
788
+ isOptional: q.isOptional,
789
+ overrides: q.overrides ?? void 0,
790
+ isPredefined: q.isPredefined,
791
+ options: q.options
792
+ }))
793
+ })),
794
+ prefillValue: config.loginHintPrefill
795
+ },
793
796
  onFinish: () => flowManager.completeModule(),
794
797
  onError: (error) => {
795
798
  onError?.(error ?? "Dynamic forms error");
@@ -16,6 +16,8 @@ declare type ClientIdSessionBootstrap = {
16
16
 
17
17
  declare type FlowBaseConfig = {
18
18
  authHint?: string;
19
+ /** Login-hint prefill forwarded to the Dynamic Forms module's `prefillValue`. Distinct from `authHint`. */
20
+ loginHintPrefill?: string;
19
21
  wasmConfig?: WasmConfig;
20
22
  lang?: string;
21
23
  disableDashboardTheme?: boolean;
@@ -80,6 +80,7 @@ declare type MapModuleConfigOptions = {
80
80
  config: Record<string, unknown>;
81
81
  workflowId: string;
82
82
  authHint?: string;
83
+ loginHintPrefill?: string;
83
84
  lang?: string;
84
85
  mergeSessionRecordings?: boolean;
85
86
  ageAssurance?: boolean;
@@ -140,6 +141,8 @@ declare type WorkflowBaseConfig = {
140
141
  isDesktop?: boolean;
141
142
  /** Authentication hint for AUTHENTICATION module. Required when workflow includes face authentication. */
142
143
  authHint?: string;
144
+ /** Login-hint prefill forwarded to the DYNAMIC_FORMS module's `prefillValue`. Distinct from `authHint`. */
145
+ loginHintPrefill?: string;
143
146
  onModuleLoading?: (moduleKey: string) => void;
144
147
  onModuleLoaded?: (moduleKey: string) => void;
145
148
  onUrlUuidRefreshed?: (urlUuid: string) => void;
@@ -265,12 +265,16 @@ function useWorkflowInitialization(options) {
265
265
  //#region src/modules/workflow/workflow.tsx
266
266
  var LazyHomeScreen = z(() => import("../homeScreen-B6T0JVh8.js").then((module) => ({ default: module.HomeScreen })));
267
267
  function mapModuleConfig(options) {
268
- const { moduleKey, config, workflowId, authHint, lang, mergeSessionRecordings, ageAssurance } = options;
268
+ const { moduleKey, config, workflowId, authHint, loginHintPrefill, lang, mergeSessionRecordings, ageAssurance } = options;
269
269
  switch (moduleKey) {
270
270
  case "AUTHENTICATION": return {
271
271
  ...config,
272
272
  authHint
273
273
  };
274
+ case "DYNAMIC_FORMS": return {
275
+ ...config,
276
+ prefillValue: loginHintPrefill
277
+ };
274
278
  case "REDIRECT_TO_MOBILE": return {
275
279
  ...config,
276
280
  flowId: workflowId,
@@ -402,6 +406,7 @@ var IncodeWorkflowReady = ({ config, workflowManager: initialManager, onFinish,
402
406
  config: workflowState.config,
403
407
  workflowId: workflowState.workflowConfig.id,
404
408
  authHint: config.authHint,
409
+ loginHintPrefill: config.loginHintPrefill,
405
410
  lang: config.lang,
406
411
  mergeSessionRecordings: workflowState.workflowConfig.mergeSessionRecordings,
407
412
  ageAssurance: workflowState.workflowConfig.ageAssurance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260709-36b8e7c1",
3
+ "version": "0.0.0-dev-20260710-d193e0c7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
@@ -291,7 +291,7 @@
291
291
  "qrcode": "^1.5.4",
292
292
  "signature_pad": "^5.1.3",
293
293
  "tailwindcss": "^4.1.17",
294
- "@incodetech/core": "0.0.0-dev-20260709-36b8e7c1"
294
+ "@incodetech/core": "0.0.0-dev-20260710-d193e0c7"
295
295
  },
296
296
  "devDependencies": {
297
297
  "@microsoft/api-extractor": "^7.53.3",