@incodetech/welcome 1.85.0-20251217192812.0 → 1.85.0-20251218163752.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.
@@ -88,7 +88,7 @@ declare class MlWasmJSApi {
88
88
  */
89
89
  allocateImageBuffers(imageWidth: number | null, imageHeight: number | null): Promise<void>;
90
90
  handleDetectionCallAndUpdateState(type: WasmPipelineType): Promise<void>;
91
- encryptImage(image: string): string;
91
+ ens(input: string): string;
92
92
  ckvcks(data: ArrayBuffer): void;
93
93
  isVirtualCamera(label: string | null): boolean;
94
94
  estimatePerformance(): string;
@@ -7699,7 +7699,7 @@ function getProfile(Be) {
7699
7699
  throw new Error(`Profile not found for type: ${Be}`);
7700
7700
  return Le;
7701
7701
  }
7702
- const wasmVersion = "v2.12.46";
7702
+ const wasmVersion = "v2.12.47";
7703
7703
  function generateBundle() {
7704
7704
  const Be = getFeatureFlag("id_text_barcode_readability") ? PipelineProfileName.IdCapture_3_02 : getFeatureFlag("id_model_hebrew_back_id") ? PipelineProfileName.IdCapture_2_02 : PipelineProfileName.IdCapture_2_01, Le = PipelineProfileName.SelfieWithQualityMetrics, Ye = PipelineProfileName.SelfieVideoSelfie, tt = PipelineProfileName.IdVideoSelfie_2_01;
7705
7705
  return [
@@ -7796,14 +7796,14 @@ class MlWasmJSApi {
7796
7796
  this.pipelineTypeToWasmEnum(Le)
7797
7797
  );
7798
7798
  }
7799
- encryptImage(Le) {
7799
+ ens(Le) {
7800
7800
  return this.checkWasmInitialization(
7801
- "Unable to encrypt the image, cpp API hasn't been initialized"
7802
- ), this.utilityApi.encryptImage(Le);
7801
+ "Unable to ens, cpp API hasn't been initialized"
7802
+ ), this.utilityApi.ens(Le);
7803
7803
  }
7804
7804
  ckvcks(Le) {
7805
7805
  this.checkWasmInitialization(
7806
- "Unable to compute video checksum, cpp API hasn't been initialized"
7806
+ "Unable to ckvcks, cpp API hasn't been initialized"
7807
7807
  ), this.utilityApi.ckvcks(Le);
7808
7808
  }
7809
7809
  isVirtualCamera(Le) {
@@ -8287,7 +8287,7 @@ class MlWasmJSApi {
8287
8287
  );
8288
8288
  }
8289
8289
  }
8290
- const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251217192812.0";
8290
+ const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251218163752.0";
8291
8291
  function e$2(Be, Le) {
8292
8292
  return function(Ye, tt) {
8293
8293
  return Object.prototype.hasOwnProperty.call(Ye, tt);
@@ -26978,6 +26978,11 @@ const FlexCenter = (Be) => /* @__PURE__ */ jsx$1(Flex, { justify: "center", alig
26978
26978
  background-color: ${(Be) => Be.tokens.button.primary.surface.pressed};
26979
26979
  }
26980
26980
 
26981
+ &:focus-visible {
26982
+ outline: ${(Be) => Be.tokens.focus.ringWidth} solid ${(Be) => Be.tokens.focus.ringColor};
26983
+ outline-offset: ${(Be) => Be.tokens.focus.ringOffset};
26984
+ }
26985
+
26981
26986
  &:disabled {
26982
26987
  background-color: ${(Be) => Be.tokens.button.primary.surface.disabled};
26983
26988
  border: 1px solid ${(Be) => Be.borderColor || Be.tokens.button.primary.border.disabled};
@@ -26996,6 +27001,11 @@ const FlexCenter = (Be) => /* @__PURE__ */ jsx$1(Flex, { justify: "center", alig
26996
27001
  width: 100%;
26997
27002
  height: 56px;
26998
27003
 
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
+
26999
27009
  &:disabled {
27000
27010
  opacity: 0.5;
27001
27011
  }
@@ -27005,6 +27015,11 @@ const FlexCenter = (Be) => /* @__PURE__ */ jsx$1(Flex, { justify: "center", alig
27005
27015
  background: transparent;
27006
27016
  color: ${(Be) => Be.color || Be.tokens.button.secondary.text.default};
27007
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
+ }
27008
27023
  }
27009
27024
 
27010
27025
  svg {
@@ -28459,7 +28474,24 @@ const buildButtonTokens = (Be, Le) => mergeWithOverrides(buildButtonBase(Be), Le
28459
28474
  primary: Be.text.body.primary,
28460
28475
  secondary: Be.text.body.secondary
28461
28476
  }
28462
- }), spinner$2 = buildSpinnerTokens(lightColors), animations = {
28477
+ }), spinner$2 = buildSpinnerTokens(lightColors), buildFocusBase = (Be) => ({
28478
+ /**
28479
+ * Focus ring thickness (2px minimum for WCAG compliance)
28480
+ */
28481
+ ringWidth: "2px",
28482
+ /**
28483
+ * Focus ring color - uses brand color for consistency and contrast
28484
+ */
28485
+ ringColor: Be.surface.primary[500],
28486
+ /**
28487
+ * Focus ring offset - creates space between element and ring
28488
+ */
28489
+ ringOffset: "2px",
28490
+ /**
28491
+ * Focus ring offset color - typically matches background
28492
+ */
28493
+ ringOffsetColor: Be.surface.neutral.light
28494
+ }), buildFocusTokens = (Be) => buildFocusBase(Be), focus = buildFocusTokens(lightColors), animations = {
28463
28495
  duration: {
28464
28496
  fast: "150ms",
28465
28497
  normal: "300ms",
@@ -28740,6 +28772,7 @@ const buildButtonTokens = (Be, Le) => mergeWithOverrides(buildButtonBase(Be), Le
28740
28772
  color: lightColors,
28741
28773
  typography: typography$1,
28742
28774
  spacing: spacing$1,
28775
+ focus,
28743
28776
  button,
28744
28777
  input,
28745
28778
  spinner: spinner$2
@@ -28886,14 +28919,14 @@ const buildColorPrimitives = (Be) => {
28886
28919
  )), mergeWithOverrides(Le, Ye);
28887
28920
  };
28888
28921
  function createTokens(Be = {}) {
28889
- var gt;
28922
+ var At;
28890
28923
  const Le = buildColorPrimitives(Be), Ye = buildReferenceWithOverrides(
28891
28924
  Le,
28892
- (gt = Be.reference) == null ? void 0 : gt.colors
28925
+ (At = Be.reference) == null ? void 0 : At.colors
28893
28926
  ), tt = mergeWithOverrides(
28894
28927
  typography$1,
28895
28928
  Be.typography
28896
- ), nt = buildButtonTokens(Ye, Be.button), ft = buildInputTokens(Ye), ht = buildSpinnerTokens(Ye, Be.spinner);
28929
+ ), nt = buildButtonTokens(Ye, Be.button), ft = buildInputTokens(Ye), ht = buildSpinnerTokens(Ye, Be.spinner), gt = buildFocusTokens(Ye);
28897
28930
  return {
28898
28931
  primitives: {
28899
28932
  color: Le,
@@ -28910,6 +28943,7 @@ function createTokens(Be = {}) {
28910
28943
  color: Ye,
28911
28944
  typography: tt,
28912
28945
  spacing: spacing$1,
28946
+ focus: gt,
28913
28947
  button: nt,
28914
28948
  input: ft,
28915
28949
  spinner: ht
@@ -159512,7 +159546,7 @@ async function identify({
159512
159546
  return api.post("/omni/oneToN/identify?returnIPDeviceLocation=true", {
159513
159547
  authReference: Ye,
159514
159548
  selfie: {
159515
- base64Image: await MlWasmJSApi$1.encryptImage(Be),
159549
+ base64Image: await MlWasmJSApi$1.ens(Be),
159516
159550
  faceCoordinates: Le,
159517
159551
  clientInfo: { deviceClass: getDeviceClass() }
159518
159552
  },
@@ -159531,7 +159565,7 @@ async function identifyInstantVerify({
159531
159565
  return api.post(
159532
159566
  "/omni/instant/verify/face",
159533
159567
  {
159534
- base64Image: await MlWasmJSApi$1.encryptImage(Le),
159568
+ base64Image: await MlWasmJSApi$1.ens(Le),
159535
159569
  faceCoordinates: Ye,
159536
159570
  clientInfo: { deviceClass: getDeviceClass() }
159537
159571
  },
@@ -159564,7 +159598,7 @@ async function oneToOneIdentify({
159564
159598
  videoRecordingId: ht,
159565
159599
  videoRecordingToken: gt,
159566
159600
  selfie: {
159567
- base64Image: await MlWasmJSApi$1.encryptImage(Be),
159601
+ base64Image: await MlWasmJSApi$1.ens(Be),
159568
159602
  clientInfo: { deviceClass: getDeviceClass() }
159569
159603
  }
159570
159604
  }).then((At) => At.data).catch((At) => {
@@ -161443,7 +161477,7 @@ class DeepsightVideoRecorder extends InterruptionHandler {
161443
161477
  try {
161444
161478
  const At = new Blob(ft, { type: this.mimeType }), xt = await trimLastNSeconds(At, 10);
161445
161479
  this.trimmedVideoBlob = xt;
161446
- const Et = MlWasmJSApi$1.encryptImage(
161480
+ const Et = MlWasmJSApi$1.ens(
161447
161481
  await toBase64(xt)
161448
161482
  );
161449
161483
  if (MlWasmJSApi$1.ckvcks(await xt.arrayBuffer()), !Ye) {
@@ -373784,7 +373818,7 @@ const Mask = dt.img`
373784
373818
  `, QRScannerMain = ({ token: Be, onSuccess: Le }) => {
373785
373819
  const [Ye, tt] = useState(""), nt = useRef(null), { t: ft } = useTranslation$1();
373786
373820
  useScreenEvents({
373787
- module: eventModuleNames.generateQR,
373821
+ module: eventModuleNames.qr,
373788
373822
  screen: eventScreenNames.qrScan,
373789
373823
  token: Be
373790
373824
  });