@idscan/onboarding 2.2.6 → 2.2.8
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/dist/@types/Fingerprinting/src/@types/Data.d.ts +10 -0
- package/dist/@types/Fingerprinting/src/main.d.ts +29 -0
- package/dist/@types/Fingerprinting/src/modules/batteryInfo.d.ts +7 -0
- package/dist/@types/Fingerprinting/src/modules/browserInfo.d.ts +21 -0
- package/dist/@types/Fingerprinting/src/modules/canvasInfo.d.ts +1 -0
- package/dist/@types/Fingerprinting/src/modules/connectionInfo.d.ts +9 -0
- package/dist/@types/Fingerprinting/src/modules/fontsInfo.d.ts +3 -0
- package/dist/@types/Fingerprinting/src/modules/html5Info.d.ts +8 -0
- package/dist/@types/Fingerprinting/src/modules/ipWebRTCInfo.d.ts +1 -0
- package/dist/@types/Fingerprinting/src/modules/screenInfo.d.ts +14 -0
- package/dist/@types/Fingerprinting/src/modules/timeZoneInfo.d.ts +1 -0
- package/dist/@types/Fingerprinting/src/modules/videoCodecsInfo.d.ts +1 -0
- package/dist/@types/Fingerprinting/src/modules/webGLInfo.d.ts +10 -0
- package/dist/@types/Fingerprinting/src/utils/sha256.d.ts +2 -0
- package/dist/@types/src/@types/Api/Requests.d.ts +20 -0
- package/dist/@types/src/@types/Api/Responses.d.ts +95 -0
- package/dist/@types/src/@types/Data.d.ts +94 -0
- package/dist/@types/src/@types/IDVCTypes.d.ts +5 -0
- package/dist/@types/src/@types/Step.d.ts +41 -0
- package/dist/@types/src/@types/enums.d.ts +34 -0
- package/dist/@types/src/Wrapper.d.ts +43 -0
- package/dist/@types/src/config.d.ts +26 -0
- package/dist/@types/src/entry.d.ts +1 -0
- package/dist/@types/src/errors/ConfigError.d.ts +4 -0
- package/dist/@types/src/errors/FaceAuthorizationError.d.ts +6 -0
- package/dist/@types/src/errors/HttpError.d.ts +4 -0
- package/dist/@types/src/errors/NotValidApplicant.d.ts +4 -0
- package/dist/@types/src/errors/RequestTimeoutError.d.ts +4 -0
- package/dist/@types/src/errors/ValidationError.d.ts +6 -0
- package/dist/@types/src/errors/WrapperError.d.ts +5 -0
- package/dist/@types/src/helpers/fingerPrint.d.ts +40 -0
- package/dist/@types/src/helpers/typeGuard.d.ts +1 -0
- package/dist/@types/src/helpers/utils.d.ts +38 -0
- package/dist/@types/src/helpers/validators.d.ts +6 -0
- package/dist/@types/src/modules/Api.d.ts +17 -0
- package/dist/@types/src/modules/ConsentForm.d.ts +13 -0
- package/dist/@types/src/modules/Lib.d.ts +20 -0
- package/dist/@types/src/modules/Modal.d.ts +27 -0
- package/dist/@types/src/modules/QRCodeModal.d.ts +21 -0
- package/dist/@types/src/modules/Validation.d.ts +21 -0
- package/dist/@types/src/modules/ValidationModal.d.ts +14 -0
- package/dist/css/onboarding.css +1 -1
- package/dist/js/wrapper.js +1 -1
- package/dist/networks/156-9239-chunk.js +1 -0
- package/dist/networks/190-77ed-chunk.js +1 -0
- package/dist/networks/77-9e2f-chunk.js +1 -0
- package/dist/networks/Face-a2b7-chunk.js +1 -0
- package/dist/networks/MRZ-7d62-chunk.js +1 -0
- package/dist/networks/PDF-78d2-chunk.js +1 -0
- package/dist/networks/ZXing-5410-chunk.js +1 -0
- package/package.json +4 -3
- package/readme.md +7 -0
- package/dist/networks/156-6146-chunk.js +0 -1
- package/dist/networks/190-200f-chunk.js +0 -1
- package/dist/networks/77-eca7-chunk.js +0 -1
- package/dist/networks/Face-578d-chunk.js +0 -1
- package/dist/networks/MRZ-4756-chunk.js +0 -1
- package/dist/networks/PDF-8ef7-chunk.js +0 -1
- package/dist/networks/ZXing-e864-chunk.js +0 -1
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idscan/onboarding",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.8",
|
|
4
4
|
"description": "Wrapper of the IDVC library for DVS Online.",
|
|
5
5
|
"main": "dist/js/wrapper.js",
|
|
6
|
+
"types": "dist/@types/src/Wrapper.d.ts",
|
|
6
7
|
"files": [
|
|
7
8
|
"dist/**",
|
|
8
9
|
".npmignore",
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
"minor": "npm version minor"
|
|
20
21
|
},
|
|
21
22
|
"dependencies": {
|
|
22
|
-
"@idscan/idvc2": "^2.5.
|
|
23
|
+
"@idscan/idvc2": "^2.5.6",
|
|
23
24
|
"core-js": "^3.30.0",
|
|
24
25
|
"qrcode": "^1.5.1",
|
|
25
26
|
"regenerator-runtime": "^0.13.11"
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
"sass-loader": "^12.3.0",
|
|
57
58
|
"style-loader": "^3.3.1",
|
|
58
59
|
"ts-loader": "^9.4.2",
|
|
59
|
-
"typescript": "^
|
|
60
|
+
"typescript": "^5.0.4",
|
|
60
61
|
"webpack": "^5.81.0",
|
|
61
62
|
"webpack-cli": "^5.0.1",
|
|
62
63
|
"webpack-dev-server": "^4.11.1"
|
package/readme.md
CHANGED
|
@@ -148,11 +148,18 @@ btn.addEventListener('click', () => {
|
|
|
148
148
|
**updateConfig** (string) - the method that reinitialize wrapper with new config. Parameter is an JSON encoded IDVC config. Works only in demo mode.
|
|
149
149
|
|
|
150
150
|
## Version history
|
|
151
|
+
- **2.2.8**
|
|
152
|
+
- Updated IDVC component
|
|
153
|
+
|
|
154
|
+
- **2.2.7**
|
|
155
|
+
- Update TS types
|
|
156
|
+
|
|
151
157
|
- **2.2.6**
|
|
152
158
|
- Fixed config
|
|
153
159
|
|
|
154
160
|
- **2.2.5**
|
|
155
161
|
- Fixed build issue
|
|
162
|
+
- Added: webp support
|
|
156
163
|
|
|
157
164
|
- **2.2.4**
|
|
158
165
|
- Updated IDVC component
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __webpack_exports__={},generateFaceColorFromAngle=function(t){var n=Math.abs(Math.trunc(255-t));return n>200&&(n=200),n<50&&(n=50),"rgba(255,215,".concat(n.toString(),",0.3)")},binarize=function(t){var n,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:120,o=t.width*t.height,r=new Uint8ClampedArray(o);for(n=0;n<o;n+=1){var i=n<<2;77*t.data[i+0]+151*t.data[i+1]+28*t.data[i+2]>>8<e&&(r[n]=1)}return r},topPoint=function(t,n){return t-n},bottomPoint=function(t,n){return t+n},leftPoint=function(t,n){return t%n>1?t-1:-1},rightPoint=function(t,n){return(t+1)%n>=0?t+1:-1},topLeftPoint=function(t,n){return leftPoint(topPoint(t,n),n)},topRightPoint=function(t,n){return rightPoint(topPoint(t,n),n)},bottomLeftPoint=function(t,n){return leftPoint(bottomPoint(t,n),n)},bottomRightPoint=function(t,n){return rightPoint(bottomPoint(t,n),n)},getNeigbors=function(t,n){return[topLeftPoint,topPoint,topRightPoint,rightPoint,bottomRightPoint,bottomPoint,bottomLeftPoint,leftPoint].map((function(e){return e(t,n)}))},segmentize2=function(t,n){var e,o=[],r=[],i=t.length,u=0,a=function(){for(var e=function(n){return n>0&&0!==t[n]&&n<i};o.length;){var a=o.pop();if(!a)break;t[a]=0,r[u].add(a),getNeigbors(a,n).forEach((function(t){e(t)&&o.push(t)}))}};for(e=0;e<i;e+=1)0!==t[e]&&(r[u]=new Set,o.push(e),a(),u+=1);return r},getResizedSizes=function(t,n){var e=n.baseWidth,o=n.baseHeight,r=t,i=t;return e>o&&(i=(r=t)*o/e),o>e&&(r=(i=t)*e/o),{width:Math.trunc(r),height:Math.trunc(i)}},getCrop=function(t,n){var e=t.width/t.height,o=n.width/n.height,r={x:0,y:0,width:n.width,height:n.height};return e>o?(r.height=~~(n.width/e),r.y=(n.height-r.height)/2):(r.width=~~(r.height*e),r.x=(n.width-r.width)/2),r},POINT_FILL_STYLE="rgba(255, 255, 255, 0.5)",POINT_STROKE_STYLE="rgba(255, 255, 255, 0)",SCALE_FACTOR=.3,getColumn=function(t,n){return t%n},getRow=function(t,n){return Math.floor(t/n)},createCoordFromPointIdx=function(t,n){return[getColumn(t,n),getRow(t,n)]},notNull=function(t){return null!=t},coordinateSegment=function(t){var n=t.segments,e=t.width,o=t.scaleWidth,r=t.scaleHeight;return n.map((function(t){var n=Number.MAX_VALUE,i=Number.MAX_VALUE,u=Number.MIN_VALUE,a=Number.MIN_VALUE;t.forEach((function(t){var o=createCoordFromPointIdx(t,e);o[0]<n&&(n=o[0]),o[1]<i&&(i=o[1]),o[0]>u&&(u=o[0]),o[1]>a&&(a=o[1])}));var h=(u-n)*(a-i);return h>5&&h<500?{perimeter:h,x1:Math.trunc(n/SCALE_FACTOR/o),y1:Math.trunc(i/SCALE_FACTOR/r),x2:Math.trunc(u/SCALE_FACTOR/o),y2:Math.trunc(a/SCALE_FACTOR/r)}:null})).filter(notNull)},pointsProcess=function(t,n,e){var o=binarize(t);return coordinateSegment({segments:segmentize2(o,t.width),width:t.width,scaleWidth:n,scaleHeight:e})};onmessage=function(t){var n=t.data,e=pointsProcess(n.iData,n.resizedToBorderScaleWidth,n.resizedToBorderScaleHeight);postMessage({segments:e})};
|