@unissey-web/web-components 5.0.0-rc.2 → 5.0.0-rc.4
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/{_commonjsHelpers-cef27602.js → _commonjsHelpers-02146103.js} +1 -1
- package/dist/button.js +2 -2
- package/dist/{direction-card-df682b7a.js → direction-card-143ab05d.js} +2 -2
- package/dist/{en-e76ed5a0.js → en-066d960b.js} +4 -1
- package/dist/file-upload.js +20 -21
- package/dist/full-capture.js +6 -6
- package/dist/image-capture-directions.js +4 -4
- package/dist/index.d.ts +26 -13
- package/dist/index.js +18 -8
- package/dist/{lit-element-ac3d3a27.js → lit-element-83035a6f.js} +101 -294
- package/dist/picture-editor.js +47 -54
- package/dist/picture-recorder.js +5 -5
- package/dist/reference-capture.js +6 -6
- package/dist/retry-result.js +6 -6
- package/dist/selfie-capture.js +6 -6
- package/dist/variables-be2b795f.js +99 -0
- package/dist/video-record-directions.js +4 -4
- package/dist/{video-recorder-4435620b.js → video-recorder-74d5f262.js} +250 -225
- package/dist/video-recorder.js +5 -5
- package/package.json +2 -2
- package/dist/variables-b4a2d316.js +0 -99
|
@@ -4,4 +4,4 @@ function commonjsRequire (path) {
|
|
|
4
4
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { commonjsRequire as a, commonjsGlobal as c };
|
package/dist/button.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper } from './lit-element-
|
|
2
|
-
import {
|
|
1
|
+
import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper } from './lit-element-83035a6f.js';
|
|
2
|
+
import { e as buttonsVars, d as defaultVars } from './variables-be2b795f.js';
|
|
3
3
|
|
|
4
4
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
5
5
|
var Button = /*#__PURE__*/function (_LitElement) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper } from './lit-element-
|
|
2
|
-
import { d as defaultVars,
|
|
1
|
+
import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper } from './lit-element-83035a6f.js';
|
|
2
|
+
import { d as defaultVars, c as directionCardsVars } from './variables-be2b795f.js';
|
|
3
3
|
|
|
4
4
|
var _templateObject$1;
|
|
5
5
|
var directionsStyle = i(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n .layout {\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .item {\n margin-top: 15px;\n width: 100%;\n }\n"])));
|
|
@@ -21,7 +21,10 @@ var videoRecorder = {
|
|
|
21
21
|
capture: "Record a video",
|
|
22
22
|
retry: "Retry",
|
|
23
23
|
errors: {
|
|
24
|
-
noFace: "We couldn't detect a face, please try again."
|
|
24
|
+
noFace: "We couldn't detect a face, please try again.",
|
|
25
|
+
activeChallenge: "Action failed. Please try again.",
|
|
26
|
+
sdkError: "There has been an error while processing",
|
|
27
|
+
unsupportedFaceDetector: "The face detector is not supported on the current device, please try again."
|
|
25
28
|
},
|
|
26
29
|
hints: {
|
|
27
30
|
up: "Move your face up",
|
package/dist/file-upload.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper, e as _objectSpread2,
|
|
2
|
-
import { E as EN } from './en-
|
|
3
|
-
import { f as fileUploadVars } from './variables-
|
|
4
|
-
import {
|
|
1
|
+
import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper, e as _objectSpread2, f as _asyncToGenerator, g as _regenerator } from './lit-element-83035a6f.js';
|
|
2
|
+
import { E as EN } from './en-066d960b.js';
|
|
3
|
+
import { f as fileUploadVars } from './variables-be2b795f.js';
|
|
4
|
+
import { c as commonjsGlobal } from './_commonjsHelpers-02146103.js';
|
|
5
5
|
|
|
6
6
|
var heic2any$1 = {exports: {}};
|
|
7
7
|
|
|
@@ -319,54 +319,53 @@ var FileUpload = /*#__PURE__*/function (_LitElement) {
|
|
|
319
319
|
}, {
|
|
320
320
|
key: "handleFileSelection",
|
|
321
321
|
value: function () {
|
|
322
|
-
var _handleFileSelection = _asyncToGenerator(
|
|
322
|
+
var _handleFileSelection = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(files) {
|
|
323
323
|
var file, _this$validateFile, isFileValid, error, convertedFile;
|
|
324
|
-
return
|
|
325
|
-
while (1) switch (_context.
|
|
324
|
+
return _regenerator().w(function (_context) {
|
|
325
|
+
while (1) switch (_context.n) {
|
|
326
326
|
case 0:
|
|
327
327
|
if (!(files.length === 1)) {
|
|
328
|
-
_context.
|
|
328
|
+
_context.n = 5;
|
|
329
329
|
break;
|
|
330
330
|
}
|
|
331
331
|
file = files.item(0);
|
|
332
332
|
_this$validateFile = _objectSpread2({}, this.validateFile("".concat(file === null || file === void 0 ? void 0 : file.type), (file === null || file === void 0 ? void 0 : file.size) || 0)), isFileValid = _this$validateFile.valid, error = _this$validateFile.error;
|
|
333
333
|
if (!isFileValid) {
|
|
334
|
-
_context.
|
|
334
|
+
_context.n = 4;
|
|
335
335
|
break;
|
|
336
336
|
}
|
|
337
337
|
if (!(file && file.type === "image/heic")) {
|
|
338
|
-
_context.
|
|
338
|
+
_context.n = 2;
|
|
339
339
|
break;
|
|
340
340
|
}
|
|
341
|
-
_context.
|
|
341
|
+
_context.n = 1;
|
|
342
342
|
return heic2any({
|
|
343
343
|
blob: file,
|
|
344
344
|
toType: "image/jpg"
|
|
345
345
|
});
|
|
346
|
-
case
|
|
347
|
-
convertedFile = _context.
|
|
346
|
+
case 1:
|
|
347
|
+
convertedFile = _context.v;
|
|
348
348
|
this.dispatchEvent(new CustomEvent("change", {
|
|
349
349
|
detail: {
|
|
350
350
|
file: convertedFile
|
|
351
351
|
}
|
|
352
352
|
}));
|
|
353
|
-
_context.
|
|
353
|
+
_context.n = 3;
|
|
354
354
|
break;
|
|
355
|
-
case
|
|
355
|
+
case 2:
|
|
356
356
|
this.dispatchEvent(new CustomEvent("change", {
|
|
357
357
|
detail: {
|
|
358
358
|
file: file
|
|
359
359
|
}
|
|
360
360
|
}));
|
|
361
|
-
case
|
|
361
|
+
case 3:
|
|
362
362
|
this.error = "";
|
|
363
|
-
_context.
|
|
363
|
+
_context.n = 5;
|
|
364
364
|
break;
|
|
365
|
-
case
|
|
365
|
+
case 4:
|
|
366
366
|
this.error = error;
|
|
367
|
-
case
|
|
368
|
-
|
|
369
|
-
return _context.stop();
|
|
367
|
+
case 5:
|
|
368
|
+
return _context.a(2);
|
|
370
369
|
}
|
|
371
370
|
}, _callee, this);
|
|
372
371
|
}));
|
package/dist/full-capture.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper } from './lit-element-
|
|
1
|
+
import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper } from './lit-element-83035a6f.js';
|
|
2
2
|
import { selfieCaptureStrings } from './selfie-capture.js';
|
|
3
3
|
import { referenceCaptureStrings } from './reference-capture.js';
|
|
4
4
|
import './button.js';
|
|
5
|
-
import './en-
|
|
6
|
-
import './video-recorder-
|
|
7
|
-
import './_commonjsHelpers-
|
|
8
|
-
import './variables-
|
|
5
|
+
import './en-066d960b.js';
|
|
6
|
+
import './video-recorder-74d5f262.js';
|
|
7
|
+
import './_commonjsHelpers-02146103.js';
|
|
8
|
+
import './variables-be2b795f.js';
|
|
9
9
|
import './video-record-directions.js';
|
|
10
|
-
import './direction-card-
|
|
10
|
+
import './direction-card-143ab05d.js';
|
|
11
11
|
import './image-capture-directions.js';
|
|
12
12
|
import './file-upload.js';
|
|
13
13
|
import './picture-recorder.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, i, e as _objectSpread2 } from './lit-element-
|
|
2
|
-
import { d as directionsStyle } from './direction-card-
|
|
3
|
-
import { d as defaultVars } from './variables-
|
|
4
|
-
import { E as EN } from './en-
|
|
1
|
+
import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, i, e as _objectSpread2 } from './lit-element-83035a6f.js';
|
|
2
|
+
import { d as directionsStyle } from './direction-card-143ab05d.js';
|
|
3
|
+
import { d as defaultVars } from './variables-be2b795f.js';
|
|
4
|
+
import { E as EN } from './en-066d960b.js';
|
|
5
5
|
|
|
6
6
|
var _templateObject$3;
|
|
7
7
|
var FaceCardPicto = /*#__PURE__*/function (_LitElement) {
|
package/dist/index.d.ts
CHANGED
|
@@ -93,6 +93,9 @@ declare const EN: {
|
|
|
93
93
|
retry: string;
|
|
94
94
|
errors: {
|
|
95
95
|
noFace: string;
|
|
96
|
+
activeChallenge: string;
|
|
97
|
+
sdkError: string;
|
|
98
|
+
unsupportedFaceDetector: string;
|
|
96
99
|
};
|
|
97
100
|
hints: {
|
|
98
101
|
up: string;
|
|
@@ -180,6 +183,9 @@ declare const EN: {
|
|
|
180
183
|
retry: string;
|
|
181
184
|
errors: {
|
|
182
185
|
noFace: string;
|
|
186
|
+
activeChallenge: string;
|
|
187
|
+
sdkError: string;
|
|
188
|
+
unsupportedFaceDetector: string;
|
|
183
189
|
};
|
|
184
190
|
hints: {
|
|
185
191
|
up: string;
|
|
@@ -238,6 +244,9 @@ declare const EN: {
|
|
|
238
244
|
retry: string;
|
|
239
245
|
errors: {
|
|
240
246
|
noFace: string;
|
|
247
|
+
activeChallenge: string;
|
|
248
|
+
sdkError: string;
|
|
249
|
+
unsupportedFaceDetector: string;
|
|
241
250
|
};
|
|
242
251
|
hints: {
|
|
243
252
|
up: string;
|
|
@@ -298,15 +307,15 @@ declare class Recorder extends LitElement {
|
|
|
298
307
|
};
|
|
299
308
|
mediaType: string;
|
|
300
309
|
faceChecker: FaceChecker;
|
|
301
|
-
instructionMessage: string;
|
|
302
|
-
instructionTimer: number;
|
|
303
310
|
instructions: string[];
|
|
304
|
-
instructionNumber: number;
|
|
305
311
|
defaultStrings: {
|
|
306
312
|
capture: string;
|
|
307
313
|
retry: string;
|
|
308
314
|
errors: {
|
|
309
315
|
noFace: string;
|
|
316
|
+
activeChallenge: string;
|
|
317
|
+
sdkError: string;
|
|
318
|
+
unsupportedFaceDetector: string;
|
|
310
319
|
};
|
|
311
320
|
hints: {
|
|
312
321
|
up: string;
|
|
@@ -350,8 +359,8 @@ declare class Recorder extends LitElement {
|
|
|
350
359
|
willRetryCapture: boolean;
|
|
351
360
|
isCameraFlipped: boolean;
|
|
352
361
|
faceDetectionFails: boolean;
|
|
362
|
+
activeChallengeFails: boolean;
|
|
353
363
|
disableDebugMode: boolean;
|
|
354
|
-
actionToDisplay: string | undefined;
|
|
355
364
|
actionState: "success" | "error" | undefined;
|
|
356
365
|
static properties: {
|
|
357
366
|
preset: {
|
|
@@ -409,15 +418,6 @@ declare class Recorder extends LitElement {
|
|
|
409
418
|
instructions: {
|
|
410
419
|
state: boolean;
|
|
411
420
|
};
|
|
412
|
-
instructionMessage: {
|
|
413
|
-
state: boolean;
|
|
414
|
-
};
|
|
415
|
-
instructionTimer: {
|
|
416
|
-
state: boolean;
|
|
417
|
-
};
|
|
418
|
-
actionToDisplay: {
|
|
419
|
-
state: boolean;
|
|
420
|
-
};
|
|
421
421
|
isActionSuccessful: {
|
|
422
422
|
state: boolean;
|
|
423
423
|
};
|
|
@@ -436,6 +436,7 @@ declare class Recorder extends LitElement {
|
|
|
436
436
|
private releaseSdkJs;
|
|
437
437
|
private sdkJsListener_status;
|
|
438
438
|
private sdkJsListener_faceInfo;
|
|
439
|
+
private handleError;
|
|
439
440
|
private sdkJsListener_issue;
|
|
440
441
|
private sdkJsListener_activeChallenge;
|
|
441
442
|
private buildSessionConfig;
|
|
@@ -641,6 +642,9 @@ declare const selfieCaptureStrings: {
|
|
|
641
642
|
retry: string;
|
|
642
643
|
errors: {
|
|
643
644
|
noFace: string;
|
|
645
|
+
activeChallenge: string;
|
|
646
|
+
sdkError: string;
|
|
647
|
+
unsupportedFaceDetector: string;
|
|
644
648
|
};
|
|
645
649
|
hints: {
|
|
646
650
|
up: string;
|
|
@@ -798,6 +802,9 @@ declare const referenceCaptureStrings: {
|
|
|
798
802
|
retry: string;
|
|
799
803
|
errors: {
|
|
800
804
|
noFace: string;
|
|
805
|
+
activeChallenge: string;
|
|
806
|
+
sdkError: string;
|
|
807
|
+
unsupportedFaceDetector: string;
|
|
801
808
|
};
|
|
802
809
|
hints: {
|
|
803
810
|
up: string;
|
|
@@ -943,6 +950,9 @@ declare const fullCaptureStrings: {
|
|
|
943
950
|
retry: string;
|
|
944
951
|
errors: {
|
|
945
952
|
noFace: string;
|
|
953
|
+
activeChallenge: string;
|
|
954
|
+
sdkError: string;
|
|
955
|
+
unsupportedFaceDetector: string;
|
|
946
956
|
};
|
|
947
957
|
hints: {
|
|
948
958
|
up: string;
|
|
@@ -1004,6 +1014,9 @@ declare const fullCaptureStrings: {
|
|
|
1004
1014
|
retry: string;
|
|
1005
1015
|
errors: {
|
|
1006
1016
|
noFace: string;
|
|
1017
|
+
activeChallenge: string;
|
|
1018
|
+
sdkError: string;
|
|
1019
|
+
unsupportedFaceDetector: string;
|
|
1007
1020
|
};
|
|
1008
1021
|
hints: {
|
|
1009
1022
|
up: string;
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export { Button } from './button.js';
|
|
2
|
-
import { R as Recorder } from './video-recorder-
|
|
3
|
-
export { A as Animation, C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-
|
|
2
|
+
import { R as Recorder } from './video-recorder-74d5f262.js';
|
|
3
|
+
export { A as Animation, C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-74d5f262.js';
|
|
4
4
|
export { VideoRecordDirections } from './video-record-directions.js';
|
|
5
5
|
export { PictureRecorder } from './picture-recorder.js';
|
|
6
6
|
export { PictureEditor } from './picture-editor.js';
|
|
7
7
|
export { FileUpload } from './file-upload.js';
|
|
8
8
|
export { ImageCaptureDirections } from './image-capture-directions.js';
|
|
9
|
-
import { _ as _inherits, a as _createClass, b as _classCallCheck, c as _callSuper } from './lit-element-
|
|
9
|
+
import { _ as _inherits, a as _createClass, b as _classCallCheck, c as _callSuper } from './lit-element-83035a6f.js';
|
|
10
10
|
export { RetryResult } from './retry-result.js';
|
|
11
11
|
export { SelfieCapture } from './selfie-capture.js';
|
|
12
12
|
export { ReferenceCapture } from './reference-capture.js';
|
|
13
13
|
export { FullCapture } from './full-capture.js';
|
|
14
|
-
export { D as DirectionCard } from './direction-card-
|
|
15
|
-
export { E as EN } from './en-
|
|
16
|
-
import './variables-
|
|
17
|
-
import './_commonjsHelpers-
|
|
14
|
+
export { D as DirectionCard } from './direction-card-143ab05d.js';
|
|
15
|
+
export { E as EN } from './en-066d960b.js';
|
|
16
|
+
import './variables-be2b795f.js';
|
|
17
|
+
import './_commonjsHelpers-02146103.js';
|
|
18
18
|
|
|
19
19
|
// @ts-ignore
|
|
20
20
|
|
|
@@ -32,7 +32,10 @@ var videoRecorder = {
|
|
|
32
32
|
capture: "Enregistrer une vidéo",
|
|
33
33
|
retry: "Réessayer",
|
|
34
34
|
errors: {
|
|
35
|
-
noFace: "Votre visage n'a pas pu être détecté, veuillez réessayer."
|
|
35
|
+
noFace: "Votre visage n'a pas pu être détecté, veuillez réessayer.",
|
|
36
|
+
activeChallenge: "Action échouée. Veuillez réessayer.",
|
|
37
|
+
sdkError: "Une erreur s'est produite lors du traitement",
|
|
38
|
+
unsupportedFaceDetector: "Le détecteur de visage n'est pas supporté sur l'appareil actuel, veuillez réessayer."
|
|
36
39
|
},
|
|
37
40
|
hints: {
|
|
38
41
|
up: "Plus vers le haut",
|
|
@@ -152,11 +155,18 @@ var AcquisitionPreset = /*#__PURE__*/function (AcquisitionPreset) {
|
|
|
152
155
|
}({});
|
|
153
156
|
var IadMode = /*#__PURE__*/function (IadMode) {
|
|
154
157
|
IadMode["DISABLED"] = "disabled";
|
|
158
|
+
// No IAD (equivalent to keep 'iadConfig' undefined)
|
|
155
159
|
IadMode["INTEGRITY"] = "integrity";
|
|
160
|
+
// No IAD measures as such, but compute a hash to ensure that the media is not corrupted after capture
|
|
156
161
|
IadMode["BASIC"] = "basic";
|
|
162
|
+
// IadMode.MEDIA_INTEGRITY + Basic IAD check (Virtual Camera and Emulators detection). No Randomness.
|
|
157
163
|
IadMode["PASSIVE"] = "passive";
|
|
164
|
+
// IadMode.BASIC + passive randomness when applicable = All passive countermeasures: Substantial passive (with randomness) countermeasures when applicable, otherwise Baseline (passive) countermeasures
|
|
158
165
|
IadMode["SUBSTANTIAL"] = "substantial";
|
|
166
|
+
// IadMode.PASSIVE + Active Challenge when passive randomness is not applicable
|
|
167
|
+
/** @deprecated Use 'INTEGRITY' instead */
|
|
159
168
|
IadMode["MEDIA_INTEGRITY"] = "integrity";
|
|
169
|
+
/** @deprecated Use 'BASIC' instead - but it requires preparation 'data'*/
|
|
160
170
|
IadMode["PASSIVE_LT"] = "basic";
|
|
161
171
|
return IadMode;
|
|
162
172
|
}({});
|