@incodetech/welcome 1.85.0-20251218170039.0 → 1.85.0-20251218222520.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.
@@ -1,4 +1,4 @@
1
- declare const FEATURE_FLAGS: readonly ["id_text_barcode_readability", "selfie_local_lenses_check_web", "id_model_hebrew_back_id", "id_face_readability", "new_id_capture_ux_least_risky_clients", "id_test_aa", "id_iou_check", "iad_checks", "iad_c_checks", "new_fingerprint", "mp_test_hashed_id"];
1
+ declare const FEATURE_FLAGS: readonly ["id_text_barcode_readability", "selfie_local_lenses_check_web", "id_model_hebrew_back_id", "id_face_readability", "new_id_capture_ux_least_risky_clients", "id_test_aa", "id_iou_check", "iad_checks", "iad_c_checks", "new_fingerprint", "mp_test_hashed_id", "darwinium_profiling"];
2
2
  type FeatureFlag = (typeof FEATURE_FLAGS)[number];
3
3
  type FeatureFlags = {
4
4
  [key in FeatureFlag]: boolean;
@@ -7453,7 +7453,8 @@ const FEATURE_FLAGS = [
7453
7453
  "iad_checks",
7454
7454
  "iad_c_checks",
7455
7455
  "new_fingerprint",
7456
- "mp_test_hashed_id"
7456
+ "mp_test_hashed_id",
7457
+ "darwinium_profiling"
7457
7458
  ], GLOBAL_FLAGS = ["new_fingerprint"], ID_MODULE_FLAGS = [
7458
7459
  "id_face_readability",
7459
7460
  "id_test_aa",
@@ -7479,7 +7480,8 @@ const clientApiKey = "client-GBTzsiJ99rvyZQdNXDFkftx3ZoMF1TED2rsB3m3IUqc", featu
7479
7480
  iad_c_checks: !1,
7480
7481
  id_iou_check: !0,
7481
7482
  new_fingerprint: !1,
7482
- mp_test_hashed_id: !1
7483
+ mp_test_hashed_id: !1,
7484
+ darwinium_profiling: !1
7483
7485
  }, clientExperimentIds = {
7484
7486
  new_id_capture_ux_least_risky_clients: "experimentV2"
7485
7487
  };
@@ -8287,7 +8289,7 @@ class MlWasmJSApi {
8287
8289
  );
8288
8290
  }
8289
8291
  }
8290
- const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251218170039.0";
8292
+ const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251218222520.0";
8291
8293
  function e$2(Be, Le) {
8292
8294
  return function(Ye, tt) {
8293
8295
  return Object.prototype.hasOwnProperty.call(Ye, tt);
@@ -26960,6 +26962,7 @@ const FlexCenter = (Be) => /* @__PURE__ */ jsx$1(Flex, { justify: "center", alig
26960
26962
  margin-right: auto;
26961
26963
  transition: background-color 0.2s ease;
26962
26964
  touch-action: manipulation;
26965
+ cursor: pointer;
26963
26966
  text-align: ${(Be) => Be.textAlign || "center"};
26964
26967
  border: 1.5px solid ${(Be) => Be.borderColor || Be.tokens.button.primary.border.default};
26965
26968
  background: ${(Be) => Be.backgroundColor || Be.bg || Be.tokens.button.primary.surface.default};
@@ -26984,6 +26987,7 @@ const FlexCenter = (Be) => /* @__PURE__ */ jsx$1(Flex, { justify: "center", alig
26984
26987
  }
26985
26988
 
26986
26989
  &:disabled {
26990
+ cursor: not-allowed;
26987
26991
  background-color: ${(Be) => Be.tokens.button.primary.surface.disabled};
26988
26992
  border: 1px solid ${(Be) => Be.borderColor || Be.tokens.button.primary.border.disabled};
26989
26993
  color: ${(Be) => Be.tokens.button.primary.text.disabled};
@@ -27001,29 +27005,20 @@ const FlexCenter = (Be) => /* @__PURE__ */ jsx$1(Flex, { justify: "center", alig
27001
27005
  width: 100%;
27002
27006
  height: 56px;
27003
27007
 
27004
- &:focus-visible {
27005
- outline: ${(Be) => Be.tokens.focus.ringWidth} solid ${(Be) => Be.tokens.focus.ringColor};
27006
- outline-offset: ${(Be) => Be.tokens.focus.ringOffset};
27007
- }
27008
-
27009
27008
  &:disabled {
27010
27009
  opacity: 0.5;
27011
- }
27010
+ cursor: not-allowed;
27011
+ }
27012
27012
  }
27013
27013
 
27014
27014
  &.secondary {
27015
27015
  background: transparent;
27016
27016
  color: ${(Be) => Be.color || Be.tokens.button.secondary.text.default};
27017
27017
  border: 1.5px solid ${(Be) => Be.borderColor || Be.tokens.button.secondary.border.default};
27018
-
27019
- &:focus-visible {
27020
- outline: ${(Be) => Be.tokens.focus.ringWidth} solid ${(Be) => Be.tokens.focus.ringColor};
27021
- outline-offset: ${(Be) => Be.tokens.focus.ringOffset};
27022
- }
27023
27018
  }
27024
27019
 
27025
27020
  svg {
27026
- display: block;
27021
+ display: block;
27027
27022
  }
27028
27023
  `, Button$b = ({
27029
27024
  children: Be,
@@ -27039,6 +27034,7 @@ const FlexCenter = (Be) => /* @__PURE__ */ jsx$1(Flex, { justify: "center", alig
27039
27034
  StyledButton$e,
27040
27035
  {
27041
27036
  as: "button",
27037
+ type: "button",
27042
27038
  tokens: nt,
27043
27039
  $isLoading: Ye,
27044
27040
  ...tt,
@@ -27245,7 +27241,9 @@ const FlexCenter = (Be) => /* @__PURE__ */ jsx$1(Flex, { justify: "center", alig
27245
27241
  Box,
27246
27242
  {
27247
27243
  as: "button",
27244
+ type: "button",
27248
27245
  onClick: ht,
27246
+ "aria-label": "Close",
27249
27247
  position: "absolute",
27250
27248
  right: ((Ye == null ? void 0 : Ye.position) ?? "right") === "right" ? ft : void 0,
27251
27249
  left: ((Ye == null ? void 0 : Ye.position) ?? "right") === "left" ? ft : void 0,
@@ -27254,6 +27252,7 @@ const FlexCenter = (Be) => /* @__PURE__ */ jsx$1(Flex, { justify: "center", alig
27254
27252
  backgroundColor: "transparent",
27255
27253
  border: "none",
27256
27254
  p: 0,
27255
+ cursor: "pointer",
27257
27256
  zIndex: 1e4,
27258
27257
  children: /* @__PURE__ */ jsx$1(XIcon, { color: Ye == null ? void 0 : Ye.color })
27259
27258
  }
@@ -27858,6 +27857,8 @@ const FlexCenter = (Be) => /* @__PURE__ */ jsx$1(Flex, { justify: "center", alig
27858
27857
  Box,
27859
27858
  {
27860
27859
  as: "button",
27860
+ type: "button",
27861
+ "aria-label": "Clear",
27861
27862
  position: "absolute",
27862
27863
  right: Ct.spacing[6],
27863
27864
  top: "50%",
@@ -151447,7 +151448,7 @@ const getSardineContext = () => sardineContext, createSardineContextFromSardine
151447
151448
  SardineUserID: void 0
151448
151449
  }
151449
151450
  }));
151450
- await loadDwnSDK(), dwnContext = createDwnContext(), shouldDoSardineContextFromSardine(tt) && (await loadSardineSDK(Le), sardineContext = createSardineContextFromSardine({
151451
+ getFeatureFlag("darwinium_profiling") && (await loadDwnSDK(), dwnContext = createDwnContext()), shouldDoSardineContextFromSardine(tt) && (await loadSardineSDK(Le), sardineContext = createSardineContextFromSardine({
151451
151452
  sardineClientId: tt.SardineClientID,
151452
151453
  sardineSessionKey: tt.SardineSessionKey,
151453
151454
  sardineUserId: tt.SardineUserID,
@@ -173311,8 +173312,8 @@ const StyledPath = dt.path`
173311
173312
  viewBox: "0 0 64 64",
173312
173313
  fill: "none",
173313
173314
  xmlns: "http://www.w3.org/2000/svg",
173315
+ "aria-hidden": "true",
173314
173316
  children: [
173315
- /* @__PURE__ */ jsxRuntimeExports.jsx("title", { children: "Camera button" }),
173316
173317
  /* @__PURE__ */ jsxRuntimeExports.jsx(
173317
173318
  "path",
173318
173319
  {
@@ -173365,7 +173366,17 @@ const StyledPath = dt.path`
173365
173366
  children: Ye("selfiev2.manualCapture.instructions")
173366
173367
  }
173367
173368
  ),
173368
- /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$b, { variant: "link", onClick: Be, disabled: Le, hFull: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CameraButton, {}) }) })
173369
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
173370
+ Button$b,
173371
+ {
173372
+ variant: "link",
173373
+ onClick: Be,
173374
+ disabled: Le,
173375
+ hFull: !0,
173376
+ "aria-label": Ye("selfiev2.manualCapture.captureButton"),
173377
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(CameraButton, {})
173378
+ }
173379
+ ) })
173369
173380
  ]
173370
173381
  }
173371
173382
  );
@@ -200105,6 +200116,19 @@ const createCaptureIdApi = (Be) => {
200105
200116
  padding: ${tokens.spacing[4]} ${tokens.spacing[6]};
200106
200117
  text-align: right;
200107
200118
  height: 135px;
200119
+ transition: background-color 0.2s ease;
200120
+ touch-action: manipulation;
200121
+ cursor: pointer;
200122
+
200123
+ &:focus-visible {
200124
+ outline: ${tokens.focus.ringWidth} solid ${tokens.focus.ringColor};
200125
+ outline-offset: ${tokens.focus.ringOffset};
200126
+ }
200127
+
200128
+ &:disabled {
200129
+ cursor: not-allowed;
200130
+ opacity: 0.6;
200131
+ }
200108
200132
  `, OldChooserButtonIconContainer = dt(FlexItem)`
200109
200133
  margin: auto;
200110
200134
  flex: 1;
@@ -200122,11 +200146,14 @@ const createCaptureIdApi = (Be) => {
200122
200146
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
200123
200147
  OldStyledChooserButton,
200124
200148
  {
200149
+ type: "button",
200125
200150
  onClick: nt,
200126
200151
  $bg: ft.color.surface.secondary[50],
200127
200152
  $border: ft.color.border.primary,
200128
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { hFull: !0, "data-testid": `chooser-button-${Be}`, children: [
200129
- /* @__PURE__ */ jsxRuntimeExports.jsx(OldChooserButtonIconContainer, { children: Le }),
200153
+ "aria-label": `${Ye}: ${tt}`,
200154
+ "data-testid": `chooser-button-${Be}`,
200155
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { hFull: !0, children: [
200156
+ /* @__PURE__ */ jsxRuntimeExports.jsx(OldChooserButtonIconContainer, { "aria-hidden": "true", children: Le }),
200130
200157
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
200131
200158
  Flex,
200132
200159
  {
@@ -200161,7 +200188,7 @@ const createCaptureIdApi = (Be) => {
200161
200188
  ),
200162
200189
  /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: 1 })
200163
200190
  ] }),
200164
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ArrowIcon, {}) })
200191
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ArrowIcon, {}) })
200165
200192
  ]
200166
200193
  }
200167
200194
  )
@@ -200184,8 +200211,21 @@ const createCaptureIdApi = (Be) => {
200184
200211
  display: flex;
200185
200212
  align-items: center;
200186
200213
  justify-content: space-between;
200214
+ transition: background-color 0.2s ease;
200215
+ touch-action: manipulation;
200216
+ cursor: pointer;
200187
200217
 
200188
200218
  border-radius: ${({ $isFirst: Be, $isLast: Le }) => Be && Le ? "16px" : Be ? "16px 16px 0 0" : Le ? "0 0 16px 16px" : "0"};
200219
+
200220
+ &:focus-visible {
200221
+ outline: ${tokens.focus.ringWidth} solid ${tokens.focus.ringColor};
200222
+ outline-offset: ${tokens.focus.ringOffset};
200223
+ }
200224
+
200225
+ &:disabled {
200226
+ cursor: not-allowed;
200227
+ opacity: 0.6;
200228
+ }
200189
200229
  `, NewChooserButton = ({
200190
200230
  id: Be,
200191
200231
  icon: Le,
@@ -200198,59 +200238,51 @@ const createCaptureIdApi = (Be) => {
200198
200238
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
200199
200239
  NewStyledChooserButton,
200200
200240
  {
200241
+ type: "button",
200201
200242
  onClick: tt,
200202
200243
  $bg: ht.color.surface.neutral.light,
200203
200244
  $border: ht.color.border.primary,
200204
200245
  $isFirst: nt,
200205
200246
  $isLast: ft,
200206
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
200207
- Flex,
200208
- {
200209
- hFull: !0,
200210
- wFull: !0,
200211
- "data-testid": `chooser-button-${Be}`,
200212
- alignItems: "center",
200213
- align: "center",
200214
- gap: "12px",
200215
- children: [
200216
- Le,
200217
- /* @__PURE__ */ jsxRuntimeExports.jsxs(
200218
- Flex,
200219
- {
200220
- flex: 2,
200221
- direction: "row",
200222
- wrap: "nowrap",
200223
- justify: "space-between",
200224
- align: "center",
200225
- children: [
200226
- /* @__PURE__ */ jsxRuntimeExports.jsx(
200227
- Flex,
200247
+ "aria-label": Ye,
200248
+ "data-testid": `chooser-button-${Be}`,
200249
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { hFull: !0, wFull: !0, alignItems: "center", align: "center", gap: "12px", children: [
200250
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { "aria-hidden": "true", children: Le }),
200251
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
200252
+ Flex,
200253
+ {
200254
+ flex: 2,
200255
+ direction: "row",
200256
+ wrap: "nowrap",
200257
+ justify: "space-between",
200258
+ align: "center",
200259
+ children: [
200260
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
200261
+ Flex,
200262
+ {
200263
+ align: "center",
200264
+ flex: 1,
200265
+ maxW: "160px",
200266
+ h: "18px",
200267
+ textOverflow: "ellipsis",
200268
+ overflow: "visible",
200269
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
200270
+ Text$7,
200228
200271
  {
200229
- align: "center",
200230
- flex: 1,
200231
- maxW: "160px",
200232
- h: "18px",
200233
- textOverflow: "ellipsis",
200272
+ fontWeight: 500,
200273
+ textAlign: "left",
200274
+ color: ht.color.text.body.primary,
200234
200275
  overflow: "visible",
200235
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
200236
- Text$7,
200237
- {
200238
- fontWeight: 500,
200239
- textAlign: "left",
200240
- color: ht.color.text.body.primary,
200241
- overflow: "visible",
200242
- children: Ye
200243
- }
200244
- )
200276
+ children: Ye
200245
200277
  }
200246
- ),
200247
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ArrowIcon$1, {}) })
200248
- ]
200249
- }
200250
- )
200251
- ]
200252
- }
200253
- )
200278
+ )
200279
+ }
200280
+ ),
200281
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ArrowIcon$1, {}) })
200282
+ ]
200283
+ }
200284
+ )
200285
+ ] })
200254
200286
  }
200255
200287
  );
200256
200288
  }, Chooser = () => {
@@ -365872,7 +365904,7 @@ function FlowRenderer({
365872
365904
  else {
365873
365905
  vt(!0);
365874
365906
  const { redirectionUrl: Wt } = await getFinishStatus(void 0, { token: Be });
365875
- (Lt = (Nt = getDwnContext()) == null ? void 0 : Nt.collect()) == null || Lt.then(($t) => {
365907
+ getFeatureFlag("darwinium_profiling") && ((Lt = (Nt = getDwnContext()) == null ? void 0 : Nt.collect()) == null || Lt.then(($t) => {
365876
365908
  addEvent({
365877
365909
  code: "externalRiskSDKInitialized",
365878
365910
  payload: {
@@ -365881,7 +365913,7 @@ function FlowRenderer({
365881
365913
  },
365882
365914
  token: Be
365883
365915
  });
365884
- }).catch(console.error), bt.flowCompleted(Dt), Ye({ redirectionUrl: Wt });
365916
+ }).catch(console.error)), bt.flowCompleted(Dt), Ye({ redirectionUrl: Wt });
365885
365917
  }
365886
365918
  };
365887
365919
  return kt ? /* @__PURE__ */ jsxRuntimeExports.jsx(Spinner$6, {}) : It ? /* @__PURE__ */ jsxRuntimeExports.jsx(