@incodetech/welcome 1.85.0-20251219230908.0 → 1.85.0-20251222210650.0

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.
@@ -238,8 +238,12 @@ tokboxApiKey, darkMode, hostingApp, unsafeMode, customHeaders, fingerprintApiKey
238
238
  setTheme: <T extends import('../../types/src').IncodeTheme>(customTheme: T) => import('../../types/src').IncodeTheme;
239
239
  sendOTPSMS: typeof sendOTPSMS;
240
240
  compareOTP: typeof compareOTP;
241
- getFinishStatus: (flowId: string, { token }: {
241
+ getFinishStatus: (flowId: string, { token, payload, }: {
242
242
  token: string;
243
+ payload?: {
244
+ provider: string;
245
+ value: string;
246
+ };
243
247
  }) => Promise<{
244
248
  redirectionUrl: string;
245
249
  action: "none" | "approved" | "rejected";
@@ -1,5 +1,9 @@
1
- declare const getFinishStatus: (flowId: string | undefined | null, { token }: {
1
+ declare const getFinishStatus: (flowId: string | undefined | null, { token, payload, }: {
2
2
  token: string;
3
+ payload?: {
4
+ provider: string;
5
+ value: string;
6
+ };
3
7
  }) => Promise<{
4
8
  redirectionUrl: string;
5
9
  action: 'approved' | 'rejected' | 'none';
@@ -8289,7 +8289,7 @@ class MlWasmJSApi {
8289
8289
  );
8290
8290
  }
8291
8291
  }
8292
- const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251219230908.0";
8292
+ const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251222210650.0";
8293
8293
  function e$2(Be, Le) {
8294
8294
  return function(Ye, tt) {
8295
8295
  return Object.prototype.hasOwnProperty.call(Ye, tt);
@@ -298985,11 +298985,17 @@ function renderFiscalQr(Be, { onSuccess: Le, session: Ye }) {
298985
298985
  tt
298986
298986
  );
298987
298987
  }
298988
- const getFinishStatus = (Be, { token: Le }) => api.get(`/omni/finish-status${Be ? `?flowId=${Be}` : ""}`, {
298988
+ const getFinishStatus = (Be, {
298989
+ token: Le,
298990
+ payload: Ye
298991
+ }) => api.get(`/omni/finish-status${Be ? `?flowId=${Be}` : ""}`, {
298992
+ params: {
298993
+ payload: Ye
298994
+ },
298989
298995
  headers: {
298990
298996
  "X-Incode-Hardware-Id": Le
298991
298997
  }
298992
- }).then((Ye) => Ye.data);
298998
+ }).then((tt) => tt.data);
298993
298999
  var lib = {}, ErrorCorrectLevel = {
298994
299000
  L: 1,
298995
299001
  M: 0,
@@ -365966,7 +365972,7 @@ function FlowRenderer({
365966
365972
  }
365967
365973
  if (!At) return null;
365968
365974
  const Tt = At.flowModules, Rt = Tt[yt], Bt = async () => {
365969
- var Nt, Lt;
365975
+ var Nt;
365970
365976
  const Dt = Tt.length;
365971
365977
  bt.stepCompleted(Rt.key, yt, Dt);
365972
365978
  const Pt = yt + 1;
@@ -365974,17 +365980,14 @@ function FlowRenderer({
365974
365980
  bt.stepStarted(Tt[Pt].key, Pt, Dt), Ct(Pt);
365975
365981
  else {
365976
365982
  vt(!0);
365977
- const { redirectionUrl: Wt } = await getFinishStatus(void 0, { token: Be });
365978
- getFeatureFlag("darwinium_profiling") && ((Lt = (Nt = getDwnContext()) == null ? void 0 : Nt.collect()) == null || Lt.then(($t) => {
365979
- addEvent({
365980
- code: "externalRiskSDKInitialized",
365981
- payload: {
365982
- riskService: "dwn",
365983
- dwnData: { blob: $t }
365984
- },
365985
- token: Be
365986
- });
365987
- }).catch(console.error)), bt.flowCompleted(Dt), Ye({ redirectionUrl: Wt });
365983
+ const Lt = await ((Nt = getDwnContext()) == null ? void 0 : Nt.collect()), Wt = {
365984
+ provider: Lt ? "drw" : "",
365985
+ value: Lt || ""
365986
+ }, { redirectionUrl: $t } = await getFinishStatus(void 0, {
365987
+ token: Be,
365988
+ payload: Wt
365989
+ });
365990
+ bt.flowCompleted(Dt), Ye({ redirectionUrl: $t });
365988
365991
  }
365989
365992
  };
365990
365993
  return kt ? /* @__PURE__ */ jsxRuntimeExports.jsx(Spinner$6, {}) : It ? /* @__PURE__ */ jsxRuntimeExports.jsx(