@incodetech/core 0.0.0-dev-20261201-5456180d → 0.0.0-dev-20261201-e37652f8

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 (88) hide show
  1. package/dist/{FaceDetectionProvider-DH7QsBFD.esm.js → FaceDetectionProvider-DQYbHLxC.esm.js} +4 -4
  2. package/dist/{addressSearch-Cxpb5vKl.esm.js → addressSearch-gginelz3.esm.js} +28 -26
  3. package/dist/ae-signature.esm.js +1 -1
  4. package/dist/{apiError-BVYipHwI.esm.js → apiError-BRiJu_rv.esm.js} +1 -1
  5. package/dist/authentication.esm.js +2 -2
  6. package/dist/{authenticationManager-Kfm9HxbR.esm.js → authenticationManager-CrBlRkAd.esm.js} +3 -3
  7. package/dist/{authenticationStateMachine-DCVCf6tZ.esm.js → authenticationStateMachine-DLwEyCeH.esm.js} +3 -3
  8. package/dist/consent.d.ts +1 -1
  9. package/dist/{consentManager-vI6QHkHU.d.ts → consentManager-Bow34QP_.d.ts} +9 -9
  10. package/dist/{deepsightCaptureConfig-BfIw-FNj.esm.js → deepsightCaptureConfig-BVJANeRn.esm.js} +2 -2
  11. package/dist/{deepsightLoader-DCSozoXG.esm.js → deepsightLoader-C6nKqY9Q.esm.js} +4 -4
  12. package/dist/{desktopCameraElection-C7OkCslA.esm.js → desktopCameraElection-BAq-Kaiq.esm.js} +4 -4
  13. package/dist/document-capture.d.ts +1 -1
  14. package/dist/document-signature.esm.js +1 -1
  15. package/dist/{documentCaptureManager-sJWgqtUy.d.ts → documentCaptureManager-DOgJTJ4F.d.ts} +4 -4
  16. package/dist/{documentSignatureStateMachine-C1CsjsVW.esm.js → documentSignatureStateMachine-Btlg3q7j.esm.js} +1 -1
  17. package/dist/dynamic-forms.esm.js +2 -2
  18. package/dist/{dynamicFormsManager-DhyIhZ1C.esm.js → dynamicFormsManager-SbEUnFoF.esm.js} +1 -1
  19. package/dist/{dynamicFormsStateMachine-CDyk9sXA.esm.js → dynamicFormsStateMachine-Dxv36mAP.esm.js} +1 -1
  20. package/dist/ekyb.esm.js +2 -2
  21. package/dist/{ekybManager-4ESLrIAZ.esm.js → ekybManager-xhoOX9O9.esm.js} +1 -1
  22. package/dist/{ekybStateMachine-BVQ7DyO1.esm.js → ekybStateMachine-CCjUH0j3.esm.js} +183 -56
  23. package/dist/ekyc-prefill.d.ts +1 -1
  24. package/dist/ekyc-prefill.esm.js +2 -2
  25. package/dist/ekyc.d.ts +3 -0
  26. package/dist/ekyc.esm.js +3 -3
  27. package/dist/{ekycManager-k0d38zcZ.esm.js → ekycManager-DrGuK0kT.esm.js} +1 -1
  28. package/dist/{ekycPrefillManager-3nHwnh_4.esm.js → ekycPrefillManager-C9kdwCC6.esm.js} +2 -2
  29. package/dist/{ekycPrefillManager-BwmPXfhY.d.ts → ekycPrefillManager-Di6aMx68.d.ts} +4 -4
  30. package/dist/{ekycPrefillStateMachine-bz_k9jTV.esm.js → ekycPrefillStateMachine-DiQifkkd.esm.js} +8 -87
  31. package/dist/{ekycStateMachine-BudF0QZu.esm.js → ekycStateMachine-BmMdLe2G.esm.js} +298 -125
  32. package/dist/{ekycUtils-BnTyeA-_.esm.js → ekycUtils-DfBNTcvX.esm.js} +41 -5
  33. package/dist/electronic-signature.esm.js +1 -1
  34. package/dist/{electronicSignatureManager-BMalzzyT.esm.js → electronicSignatureManager-C6liTNbu.esm.js} +1 -1
  35. package/dist/extensibility.d.ts +6 -6
  36. package/dist/extensibility.esm.js +13 -13
  37. package/dist/{faceCaptureManagerFactory-cQl5HDIn.esm.js → faceCaptureManagerFactory-OL8BWaIW.esm.js} +2 -2
  38. package/dist/{faceCaptureSetup-DzWl2VJI.esm.js → faceCaptureSetup-DQVtmb1q.esm.js} +7 -7
  39. package/dist/{feature-management-BVxb2LDw.esm.js → feature-management-D_T-MG_i.esm.js} +1 -1
  40. package/dist/feature-management.esm.js +1 -1
  41. package/dist/flow.esm.js +3 -3
  42. package/dist/{flowCompletionService-DK-fZm71.esm.js → flowCompletionService-L0J63ui-.esm.js} +1 -1
  43. package/dist/{flowServices-DO_evfcT.esm.js → flowServices-3OXrEqDE.esm.js} +5 -5
  44. package/dist/formDefinitionsRollout-B-c4yO2z.esm.js +30 -0
  45. package/dist/{formErrors-lSfh7Y8J.esm.js → formErrors-kpskZLNT.esm.js} +39 -180
  46. package/dist/geolocation.d.ts +1 -1
  47. package/dist/geolocation.esm.js +2 -2
  48. package/dist/{geolocationManager-DcuPbxtE.esm.js → geolocationManager-CREfQNgO.esm.js} +1 -1
  49. package/dist/{geolocationManager-CENrvxpK.d.ts → geolocationManager-Del2ddmt.d.ts} +1 -1
  50. package/dist/{geolocationStateMachine-C2r0HXYO.esm.js → geolocationStateMachine-D9_bBr19.esm.js} +1 -1
  51. package/dist/id-ocr.d.ts +1 -1
  52. package/dist/id-selfie-flow.esm.js +6 -6
  53. package/dist/id.esm.js +3 -3
  54. package/dist/{idCaptureManager-B3e-0VFl.esm.js → idCaptureManager-B5ZN7scK.esm.js} +4 -4
  55. package/dist/{idCaptureServices-CoHVsKtz.esm.js → idCaptureServices-7zZ457LW.esm.js} +2 -2
  56. package/dist/{idCaptureStateMachine-Cbg0iyXR.esm.js → idCaptureStateMachine-FP4j-qeT.esm.js} +11 -11
  57. package/dist/{idOcrManager-DflRx-_u.d.ts → idOcrManager-C0C7lFGd.d.ts} +1 -1
  58. package/dist/index.esm.js +1 -1
  59. package/dist/kyb-checks.esm.js +2 -2
  60. package/dist/{kybChecksManager-BDHpxk15.esm.js → kybChecksManager-tUsFKBCN.esm.js} +1 -1
  61. package/dist/{kybChecksStateMachine-UIwv8ipY.esm.js → kybChecksStateMachine-D1q4K7Xr.esm.js} +3 -3
  62. package/dist/mandatory-consent.d.ts +1 -1
  63. package/dist/{mandatoryConsentManager-ESpx168S.d.ts → mandatoryConsentManager-De9ZX6o4.d.ts} +5 -5
  64. package/dist/qe-signature.esm.js +1 -1
  65. package/dist/{recordingService-G0FrtpAb.esm.js → recordingService-OcyZO_w6.esm.js} +1 -1
  66. package/dist/{runChildModule-Dgi34yo9.esm.js → runChildModule-BuZFd3Df.esm.js} +1 -1
  67. package/dist/{sdkVersion-CrFzbh9y.esm.js → sdkVersion-BY8g-EEL.esm.js} +1 -1
  68. package/dist/selfie.esm.js +7 -7
  69. package/dist/{selfieErrorUtils-DR2Gve4F.esm.js → selfieErrorUtils-DIVWh0ih.esm.js} +1 -1
  70. package/dist/{selfieManager-B3Jd7q4s.esm.js → selfieManager-DQ5xB8y6.esm.js} +3 -3
  71. package/dist/{selfieStateMachine-DM40H79_.esm.js → selfieStateMachine-fyNh2r31.esm.js} +3 -3
  72. package/dist/{session-C7-dU7kj.esm.js → session-DKnCv6zu.esm.js} +4 -4
  73. package/dist/session.esm.js +4 -4
  74. package/dist/{sessionInitializer-NEJvsqjQ.esm.js → sessionInitializer-q5b8Qwr3.esm.js} +4 -4
  75. package/dist/{setup-DXnJ1L0L.esm.js → setup-JGwc0kgu.esm.js} +5 -5
  76. package/dist/trim-OmrUb6mG.esm.js +297 -0
  77. package/dist/trueSight-9VsfHXFt.esm.js +1 -0
  78. package/dist/{trueSightService-MNEZaA-i.esm.js → trueSightService-Dx8AqgKD.esm.js} +1 -1
  79. package/dist/uppercase-CwlIuiwR.esm.js +115 -0
  80. package/dist/video-selfie.esm.js +3 -3
  81. package/dist/{videoSelfieCameraWarmer-CPrXznbc.esm.js → videoSelfieCameraWarmer-AoMytGBD.esm.js} +3 -3
  82. package/dist/wasm.esm.js +1 -1
  83. package/dist/workflow.d.ts +4 -4
  84. package/dist/workflow.esm.js +19 -19
  85. package/package.json +1 -1
  86. package/dist/definitionSource-B9WTvQb9.esm.js +0 -30
  87. package/dist/resolveForm-DaaQSVWp.esm.js +0 -146
  88. package/dist/trueSight-CjUsM1U4.esm.js +0 -1
@@ -1,146 +0,0 @@
1
- //#region src/shared/displayErrors.ts
2
- const DYNAMIC_REQUIRED_KEY = "verification.errors.fieldRequiredDynamic";
3
- //#endregion
4
- //#region src/internal/forms/checkSupport.ts
5
- const GROUP_POLICIES = /* @__PURE__ */ new Set(["hide", "forceShow"]);
6
- const OMIT_WHEN_EMPTY = "payload.omitWhenEmpty";
7
- /**
8
- * Compares `major.minor` vocabulary versions. The compiler's twin is
9
- * `compareVersions` in `packages/form-definitions/scripts/lib/checks.mjs`;
10
- * both are tested against that package's `fixtures/vocabularyVersions.json`.
11
- */
12
- function compareVocabulary(a, b) {
13
- const [aMajor = 0, aMinor = 0] = a.split(".").map(Number);
14
- const [bMajor = 0, bMinor = 0] = b.split(".").map(Number);
15
- return aMajor - bMajor || aMinor - bMinor;
16
- }
17
- /**
18
- * Whether this build can use a definition. Any id or versioned flag it
19
- * doesn't implement makes the definition unsupported, so the caller falls
20
- * back to its bundled definition or current form. Presentation hints
21
- * (widget, keyboard, autofill) never fail: an unknown hint falls back to the
22
- * platform default.
23
- */
24
- function checkSupport(definition, ids) {
25
- const problems = [];
26
- const need = (category, known, id, path) => {
27
- if (!known.has(id)) problems.push({
28
- category,
29
- id,
30
- path
31
- });
32
- };
33
- if (!ids.schemaVersions.includes(definition.schemaVersion)) problems.push({
34
- category: "schemaVersion",
35
- id: String(definition.schemaVersion),
36
- path: "schemaVersion"
37
- });
38
- if (compareVocabulary(definition.vocabulary, ids.vocabulary) > 0) problems.push({
39
- category: "vocabulary",
40
- id: definition.vocabulary,
41
- path: "vocabulary"
42
- });
43
- const checkField = (field, path) => {
44
- need("kind", ids.kinds, field.kind, `${path}.kind`);
45
- need("group", ids.groups, field.group, `${path}.group`);
46
- field.rules?.forEach((rule, i) => need("rule", ids.rules, rule.id, `${path}.rules[${i}]`));
47
- field.input?.format?.forEach((t, i) => need("transform", ids.transforms, t.id, `${path}.input.format[${i}]`));
48
- field.payload?.transforms?.forEach((t, i) => need("transform", ids.transforms, t.id, `${path}.payload.transforms[${i}]`));
49
- if (field.payload?.omitWhenEmpty === true) need("flag", ids.flags, OMIT_WHEN_EMPTY, `${path}.${OMIT_WHEN_EMPTY}`);
50
- if (field.optionsRef) need("optionList", ids.optionLists, field.optionsRef, `${path}.optionsRef`);
51
- if (field.suggestionsRef) need("optionList", ids.optionLists, field.suggestionsRef, `${path}.suggestionsRef`);
52
- field.requiredWhen?.forEach((condition, i) => {
53
- const keys = Object.keys(condition);
54
- if (keys.length !== 1) problems.push({
55
- category: "condition",
56
- id: keys.join("+") || "(empty)",
57
- path: `${path}.requiredWhen[${i}]`
58
- });
59
- for (const key of keys) need("condition", ids.conditions, key, `${path}.requiredWhen[${i}]`);
60
- });
61
- field.prefill?.forEach((id, i) => need("prefillSource", ids.prefillSources, id, `${path}.prefill[${i}]`));
62
- const lock = field.phone?.lockCountry;
63
- if (typeof lock === "string" && lock !== "whenPhoneRisk") problems.push({
64
- category: "phoneLock",
65
- id: lock,
66
- path: `${path}.phone`
67
- });
68
- };
69
- definition.fields.forEach((field) => checkField(field, `fields.${field.name}`));
70
- definition.groups?.forEach((policy) => {
71
- need("group", ids.groups, policy.group, `groups.${policy.group}`);
72
- if (!GROUP_POLICIES.has(policy.whenDisabled)) problems.push({
73
- category: "groupPolicy",
74
- id: policy.whenDisabled,
75
- path: `groups.${policy.group}`
76
- });
77
- });
78
- definition.groupRules?.forEach((rule, i) => {
79
- need("groupRule", ids.groupRules, rule.id, `groupRules[${i}]`);
80
- const cases = rule.id === "rulesByOption" ? rule.params?.cases : void 0;
81
- if (cases && typeof cases === "object" && !Array.isArray(cases)) for (const [value, rules] of Object.entries(cases)) {
82
- if (!Array.isArray(rules)) continue;
83
- rules.forEach((ref, j) => {
84
- const id = ref?.id;
85
- need("rule", ids.rules, typeof id === "string" ? id : "(missing)", `groupRules[${i}].params.cases.${value}[${j}]`);
86
- });
87
- }
88
- });
89
- definition.collections?.forEach((collection) => {
90
- need("group", ids.groups, collection.group, `collections.${collection.id}`);
91
- collection.fields.forEach((field) => checkField(field, `collections.${collection.id}.fields.${field.name}`));
92
- });
93
- return problems.length === 0 ? { supported: true } : {
94
- supported: false,
95
- problems
96
- };
97
- }
98
- //#endregion
99
- //#region src/internal/forms/resolveForm.ts
100
- const FORCE_SHOW = "forceShow";
101
- const WHEN_PHONE_RISK = "whenPhoneRisk";
102
- /**
103
- * Resolves a definition against module configuration: which fields show,
104
- * which are required, whether the phone is locked, and which group rules and
105
- * collections apply. Pure and synchronous, so it runs inside an assign action.
106
- *
107
- * Call `checkSupport` first for any definition that wasn't bundled with this
108
- * build; `resolveForm` ignores ids it doesn't know.
109
- */
110
- function resolveForm(definition, context) {
111
- const forcedGroups = new Set((definition.groups ?? []).filter((policy) => policy.whenDisabled === FORCE_SHOW).map((policy) => policy.group));
112
- const isOn = (group) => context.groups[group] === true;
113
- const isShown = (group) => isOn(group) || forcedGroups.has(group);
114
- const riskAddons = new Set(context.riskAddons ?? []);
115
- const shownFields = definition.fields.filter((field) => isShown(field.group));
116
- const shownNames = new Set(shownFields.map((field) => field.name));
117
- const fields = shownFields.map((field) => {
118
- const conditions = field.requiredWhen ?? [];
119
- const addonRequired = conditions.some((condition) => condition.riskAddon !== void 0 && riskAddons.has(condition.riskAddon));
120
- const requiredIfFilled = conditions.map((condition) => condition.fieldFilled).filter((name) => name !== void 0 && shownNames.has(name));
121
- const lock = field.phone?.lockCountry;
122
- return {
123
- field,
124
- required: field.required === true || addonRequired,
125
- requiredIfFilled,
126
- forced: !isOn(field.group),
127
- phoneLocked: field.kind === "phone" && (lock === true || lock === WHEN_PHONE_RISK && context.phoneRisk === true)
128
- };
129
- });
130
- const order = shownFields.map((field) => field.name);
131
- return {
132
- definition,
133
- fields,
134
- groupRules: (definition.groupRules ?? []).map((rule) => ({
135
- rule,
136
- fields: order.filter((name) => rule.fields.includes(name))
137
- })).filter((resolved) => resolved.fields.length > 0),
138
- collections: (definition.collections ?? []).filter((collection) => isShown(collection.group)).map((collection) => ({
139
- collection,
140
- min: collection.min ?? 0,
141
- max: collection.max
142
- }))
143
- };
144
- }
145
- //#endregion
146
- export { checkSupport as n, DYNAMIC_REQUIRED_KEY as r, resolveForm as t };
@@ -1 +0,0 @@
1
- import "./trueSightService-MNEZaA-i.esm.js";