bry-biometric-collector 2.2.12 → 2.2.13
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.
- package/README.md +14 -1
- package/dist/{CameraBtn_eb7e334d_2.2.12.js → CameraBtn_31d94392_2.2.13.js} +1 -1
- package/dist/{DocumentCollector_e2e48632_2.2.12.js → DocumentCollector_6ba4de1e_2.2.13.js} +3 -3
- package/dist/{FaceCollector_63ba171b_2.2.12.js → FaceCollector_4288f8a7_2.2.13.js} +5 -5
- package/dist/bry-biometric-collector-main.js +1 -1
- package/dist/{fingersApi_43c7dd77_2.2.12.js → fingersApi_eb89129b_2.2.13.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{main_4d732675_2.2.12.js → main_b9bc8eeb_2.2.13.js} +1793 -1823
- package/package.json +1 -1
- /package/dist/{en-us_dfe3f804_2.2.12.js → en-us_dfe3f804_2.2.13.js} +0 -0
- /package/dist/{es-cl_14b74e4b_2.2.12.js → es-cl_14b74e4b_2.2.13.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_2.2.12.js → face_api_0e3ce8c8_2.2.13.js} +0 -0
- /package/dist/{index-no-detector_acb82d83_2.2.12.js → index-no-detector_acb82d83_2.2.13.js} +0 -0
- /package/dist/{pt-br_2a12cf43_2.2.12.js → pt-br_2a12cf43_2.2.13.js} +0 -0
package/README.md
CHANGED
@@ -130,6 +130,12 @@ Currently supported tag parameters:
|
|
130
130
|
|
131
131
|
Example: `extension_url_mozilla="https://www.bry.com.br/downloads/extension/v2/api/v1/extension-api.js"`
|
132
132
|
|
133
|
+
- **evaluate_photo**: Wether to enable photo evaluation in the facial capture process. If enabled, the evaluation endpoint also has to be set.
|
134
|
+
|
135
|
+
Default: `true`
|
136
|
+
|
137
|
+
Example: `evaluate_photo=false`
|
138
|
+
|
133
139
|
- **show_capture_button**: Wether to hide capture button. If you enable a button to trigger manual capture, it will be shown below the video.
|
134
140
|
|
135
141
|
Default: `true`
|
@@ -178,7 +184,7 @@ Currently supported tag parameters:
|
|
178
184
|
|
179
185
|
The Web-component exports a series of functions that the host environment may call. These functions are called by simply getting the html element from the page and invoking them. The following actions can be performed during run-time from the host environment:
|
180
186
|
|
181
|
-
- **setBioAcJWTToken**\*:
|
187
|
+
- **setBioAcJWTToken**\*: Sets the JTWToken to perform face validations on the specified back-end. This configuration is necessary when the `evaluate_photo` parameter has a value of `true`. Receives a string _token_, a string for the base URL, and a string path to the evaluate biometrics endpoint. This endpoint was previously used for both fingers and face validations, now however, we only use it for face validation. The endpoint should accept a post containing in the body an object with a list of BodyParts, such as described [here](src/lib/remote/bioacService.ts). The return is expected to be an object containing a list called bodyParts conforming to the BodyPartReturnType interface, but also a field called icaoWarnings containing an array of unconformities in string form.
|
182
188
|
|
183
189
|
Example:
|
184
190
|
|
@@ -503,6 +509,13 @@ The web component listens to and emits a few events. The events emitted are:
|
|
503
509
|
|
504
510
|
- **face-scrapped**: When the user scraps their face (by clicking capture again after having saved their picture) this event gets emitted without any data.
|
505
511
|
|
512
|
+
- **face-unconformities-validated**: When the photo is captured and after evaluating it, an event of this kind is emitted with their picture like so:
|
513
|
+
|
514
|
+
```ts
|
515
|
+
{detail: {bodyParts[{bodyPart:'FACE', data: string, livenessBlob: string *, livenessResult: string}]}
|
516
|
+
* only if liveness_enable=true
|
517
|
+
```
|
518
|
+
|
506
519
|
- **export-face**: When the user saves their face (by clicking finish), an event of this kind is emitted with their picture like so:
|
507
520
|
|
508
521
|
```ts
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { aS as U, S, r as B, t as Z, w as H, x as n, y as L, z as x, C as g, D as _, I as u, J as k, W as y, ac as I, b2 as A, b3 as D, L as T, b4 as V, b5 as R, N as w, b6 as h, E, G as O, b7 as N, b8 as z, aN as q, aO as j, O as F, Q as K, aP as G, aG as P, X as J } from "./
|
1
|
+
import { aS as U, S, r as B, t as Z, w as H, x as n, y as L, z as x, C as g, D as _, I as u, J as k, W as y, ac as I, b2 as A, b3 as D, L as T, b4 as V, b5 as R, N as w, b6 as h, E, G as O, b7 as N, b8 as z, aN as q, aO as j, O as F, Q as K, aP as G, aG as P, X as J } from "./main_b9bc8eeb_2.2.13.js";
|
2
2
|
var C = /* @__PURE__ */ ((m) => (m.OK = "OK", m.DEVICE_NOT_FOUND_ERROR = "DEVICE_NOT_FOUND_ERROR", m.CAMERA_DENIED_ERROR = "CAMERA_DENIED_ERROR", m.CAMERA_IN_USE_ERROR = "CAMERA_IN_USE_ERROR", m.CAMERA_CLOSED_ERROR = "CAMERA_CLOSED_ERROR", m.CAMERA_UNSUPPORTED = "CAMERA_UNSUPPORTED", m.CAMERA_ORIENTATION_PORTRAIT = "CAMERA_ORIENTATION_PORTRAIT", m.CAMERA_ORIENTATION_LANDSCAPE = "CAMERA_ORIENTATION_LANDSCAPE", m))(C || {});
|
3
3
|
const Q = U(
|
4
4
|
"OK"
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { S as ri, r as ci, t as Ft, w as ui, x as J, y as ae, z as p, N as M, C as se, D as d, E as r, O as X, P as Se, Q as x, R as Te, I as G, J as A, T as je, Y as ge, V as fe, W as fi, U as De, X as di, Z as pe, _ as Ye, a0 as ft, K as dt, a1 as Xe, a3 as ht, a5 as ze, a6 as Je, a7 as Re, a8 as bt, a9 as mt, ac as _t, ab as hi, ad as Pe, ae as Qe, ak as gt, $ as bi, al as mi, am as _i, an as gi, ao as pi, ap as wi, L as m, aq as Ge, ar as Ci, aA as vi, az as Ze, f as Ae, aB as pt, aC as we, aD as ki, aE as Ei, as as xe, aF as yi, aG as Di, aH as Ri, aV as Pi, aI as Ce, aJ as Ai, aK as wt, G as oe, aL as Fe, aM as Si, aN as Oe, aO as Ie, aP as Le, B as K, H as z, aS as Ct, at as $e, aT as Ti, aU as Fi, aW as ve, aQ as vt, l as Oi, aY as Ii, aZ as Li, a_ as kt, a$ as Et, b1 as Bi } from "./
|
2
|
-
import { C as Y, c as $, a as Ni, b as Wi } from "./
|
1
|
+
import { S as ri, r as ci, t as Ft, w as ui, x as J, y as ae, z as p, N as M, C as se, D as d, E as r, O as X, P as Se, Q as x, R as Te, I as G, J as A, T as je, Y as ge, V as fe, W as fi, U as De, X as di, Z as pe, _ as Ye, a0 as ft, K as dt, a1 as Xe, a3 as ht, a5 as ze, a6 as Je, a7 as Re, a8 as bt, a9 as mt, ac as _t, ab as hi, ad as Pe, ae as Qe, ak as gt, $ as bi, al as mi, am as _i, an as gi, ao as pi, ap as wi, L as m, aq as Ge, ar as Ci, aA as vi, az as Ze, f as Ae, aB as pt, aC as we, aD as ki, aE as Ei, as as xe, aF as yi, aG as Di, aH as Ri, aV as Pi, aI as Ce, aJ as Ai, aK as wt, G as oe, aL as Fe, aM as Si, aN as Oe, aO as Ie, aP as Le, B as K, H as z, aS as Ct, at as $e, aT as Ti, aU as Fi, aW as ve, aQ as vt, l as Oi, aY as Ii, aZ as Li, a_ as kt, a$ as Et, b1 as Bi } from "./main_b9bc8eeb_2.2.13.js";
|
2
|
+
import { C as Y, c as $, a as Ni, b as Wi } from "./CameraBtn_31d94392_2.2.13.js";
|
3
3
|
function yt(s) {
|
4
4
|
let e, i, o;
|
5
5
|
return {
|
@@ -820,7 +820,7 @@ function xi(s, e, i) {
|
|
820
820
|
let t;
|
821
821
|
if (Ue >= Zi) {
|
822
822
|
Ue = 0;
|
823
|
-
const O = await Ti(), B = await import("./face_api_0e3ce8c8_2.2.
|
823
|
+
const O = await Ti(), B = await import("./face_api_0e3ce8c8_2.2.13.js");
|
824
824
|
let D;
|
825
825
|
D = B.detectSingleFace(L, O), t = await D.withFaceLandmarks(), N.getContext("2d")?.clearRect(0, 0, N.width, N.height);
|
826
826
|
} else
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { S as Ei, r as ki, t as Vt, w as Ri, x as S, y as de, z as h, B as L, C as ae, D as f, E as u, G as ve, H as U, I as F, J as I, K as xe, $ as yi, L as m, M as ie, N as M, O as te, P as Ye, Q as ue, R as Ze, T as Pt, U as Xe, V as Ae, W as oa, X as na, Y as ct, Z as Me, _ as St, a0 as Zt, a1 as Lt, a2 as ra, a3 as xt, a4 as Ne, a5 as Qe, a6 as pe, a7 as Ft, a8 as Dt, a9 as Re, aa as ca, ab as ua, ac as $t, ad as ut, ae as Mt, af as fa, ag as ft, ah as ei, ai as ti, aj as ii, ak as ai, al as da, am as ma, an as ha, ao as ba, ap as _a, aq as dt, ar as ga, as as mt, at as Q, au as ht, av as bt, A as Wt, aw as Je, ax as _t, ay as pa, az as Pe, aA as va, f as gt, aB as si, aC as Ge, aD as Bt, aE as Ca, aF as wa, aG as Ea, aH as ka, aI as We, aJ as Ra, aK as li, aL as wt, aM as ya, aN as $e, aO as et, aP as tt, aQ as vt, aR as Oi, aS as oi, l as pt, aT as Oa, aU as Ia, aV as Ta, aW as Be, aX as Ut, aY as Aa, aZ as Na, a_ as ni, a$ as Ct, b0 as Pa, b1 as Sa } from "./
|
2
|
-
import { C as z, c as ce, a as La, b as Fa } from "./
|
1
|
+
import { S as Ei, r as ki, t as Vt, w as Ri, x as S, y as de, z as h, B as L, C as ae, D as f, E as u, G as ve, H as U, I as F, J as I, K as xe, $ as yi, L as m, M as ie, N as M, O as te, P as Ye, Q as ue, R as Ze, T as Pt, U as Xe, V as Ae, W as oa, X as na, Y as ct, Z as Me, _ as St, a0 as Zt, a1 as Lt, a2 as ra, a3 as xt, a4 as Ne, a5 as Qe, a6 as pe, a7 as Ft, a8 as Dt, a9 as Re, aa as ca, ab as ua, ac as $t, ad as ut, ae as Mt, af as fa, ag as ft, ah as ei, ai as ti, aj as ii, ak as ai, al as da, am as ma, an as ha, ao as ba, ap as _a, aq as dt, ar as ga, as as mt, at as Q, au as ht, av as bt, A as Wt, aw as Je, ax as _t, ay as pa, az as Pe, aA as va, f as gt, aB as si, aC as Ge, aD as Bt, aE as Ca, aF as wa, aG as Ea, aH as ka, aI as We, aJ as Ra, aK as li, aL as wt, aM as ya, aN as $e, aO as et, aP as tt, aQ as vt, aR as Oi, aS as oi, l as pt, aT as Oa, aU as Ia, aV as Ta, aW as Be, aX as Ut, aY as Aa, aZ as Na, a_ as ni, a$ as Ct, b0 as Pa, b1 as Sa } from "./main_b9bc8eeb_2.2.13.js";
|
2
|
+
import { C as z, c as ce, a as La, b as Fa } from "./CameraBtn_31d94392_2.2.13.js";
|
3
3
|
function Da(a) {
|
4
4
|
let e, t, s = (
|
5
5
|
/*$_*/
|
@@ -1207,7 +1207,7 @@ function rs(a, e, t) {
|
|
1207
1207
|
timerProgressBar: !0
|
1208
1208
|
});
|
1209
1209
|
_a(async () => {
|
1210
|
-
m(ut, C = !1, C), m(ai, $ = !1, $), m(Me, v = !1, v), m(Xe, d = dt.FRONT_CAMERA, d), m(ce, o = z.OK, o), Ke && m(xe, w = !1, w), ie() && (import("./index-no-detector_acb82d83_2.2.
|
1210
|
+
m(ut, C = !1, C), m(ai, $ = !1, $), m(Me, v = !1, v), m(Xe, d = dt.FRONT_CAMERA, d), m(ce, o = z.OK, o), Ke && m(xe, w = !1, w), ie() && (import("./index-no-detector_acb82d83_2.2.13.js"), Ti()), H && (await ga(Et), Ue = !0), await Le(), Ni();
|
1211
1211
|
});
|
1212
1212
|
function Tt(i, p) {
|
1213
1213
|
i.clearRect(0, 0, q.width, q.height), i.save(), Ve == "blur" ? (i.filter = `blur(${p.width / 60}px)`, i.rect(0, 0, q.width, q.height)) : Ve != "none" ? (i.fillStyle = Ve, i.fillRect(0, 0, q.width, q.height)) : (i.beginPath(), i.rect(0, 0, q.width, q.height));
|
@@ -1377,7 +1377,7 @@ function rs(a, e, t) {
|
|
1377
1377
|
m(Me, v = !0, v);
|
1378
1378
|
try {
|
1379
1379
|
if (H) {
|
1380
|
-
const [i] = await (await import("./face_api_0e3ce8c8_2.2.
|
1380
|
+
const [i] = await (await import("./face_api_0e3ce8c8_2.2.13.js")).extractFaces(P, [_e]), p = i.toDataURL("image/jpeg").split(",");
|
1381
1381
|
m(He, x = p[0], x), m(Re, K = p[1], K), m(Qe, V = p[1], V);
|
1382
1382
|
let k, R;
|
1383
1383
|
({ bodyParts: k, icaoWarnings: R } = await bt(K, Se)), window.dispatchEvent(new CustomEvent(
|
@@ -1558,7 +1558,7 @@ function rs(a, e, t) {
|
|
1558
1558
|
let i;
|
1559
1559
|
if (Rt >= ns) {
|
1560
1560
|
Rt = 0;
|
1561
|
-
const p = await Oa(), k = await import("./face_api_0e3ce8c8_2.2.
|
1561
|
+
const p = await Oa(), k = await import("./face_api_0e3ce8c8_2.2.13.js");
|
1562
1562
|
let R;
|
1563
1563
|
R = k.detectSingleFace(q, p), i = await R.withFaceLandmarks(), ne.getContext("2d")?.clearRect(0, 0, ne.width, ne.height);
|
1564
1564
|
} else
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { u as D, $ as C, n as y, g, i as b, a as M, s as l, b as h, c as U, F, d as x, e as c, v, f as P, A as B, h as S, j as E, k as W, l as k, m as X, o as w, p as $, q as G } from "./
|
1
|
+
import { u as D, $ as C, n as y, g, i as b, a as M, s as l, b as h, c as U, F, d as x, e as c, v, f as P, A as B, h as S, j as E, k as W, l as k, m as X, o as w, p as $, q as G } from "./main_b9bc8eeb_2.2.13.js";
|
2
2
|
const d = D(C);
|
3
3
|
var V = /* @__PURE__ */ ((n) => (n.EXTENSION_MISSING = "EXTENSION_MISSING", n.USER_CANCELLED = "USER_CANCELLED", n.UNAUTHORIZED_EXTENSION = "UNAUTHORIZED_EXTENSION", n.SCANNER_NOT_FOUND = "SCANNER_NOT_FOUND", n.EXTENSION_MODULE_NOT_INSTALLED = "EXTENSION_MODULE_NOT_INSTALLED", n.FINGER_NOT_REMOVED = "FINGER_NOT_REMOVED", n.UNKNOWN_ERROR = "UNKNOWN_ERROR", n.EVALUATE_BIOMETRICS_TIMEOUT = "EVALUATE_BIOMETRICS_TIMEOUT", n.EVALUATE_BIOMETRICS_NETWORK_ISSUE = "EVALUATE_BIOMETRICS_NETWORK_ISSUE", n))(V || {});
|
4
4
|
class s extends Error {
|
package/dist/index.js
CHANGED