@unissey-web/web-components 5.5.0-rc.1 → 6.0.0-alpha.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.
- package/dist/_commonjsHelpers-02146103.js +7 -0
- package/dist/button.js +2 -2
- package/dist/{direction-card-88c5d34f.js → direction-card-fd8d8d8b.js} +1 -1
- package/dist/{en-27ff3a75.js → en-57f1198e.js} +4 -12
- package/dist/file-upload.js +5 -23
- package/dist/full-capture.js +5 -5
- package/dist/image-capture-directions.js +3 -3
- package/dist/index.d.ts +1 -99
- package/dist/index.js +11 -36
- package/dist/picture-editor.js +1 -1
- package/dist/picture-recorder.js +4 -4
- package/dist/reference-capture.js +5 -5
- package/dist/retry-result.js +2 -2
- package/dist/selfie-capture.js +5 -5
- package/dist/{variables-513bd26a.js → variables-0db5ef1b.js} +31 -33
- package/dist/video-record-directions.js +3 -3
- package/dist/video-recorder-f89d5b58.js +1495 -0
- package/dist/video-recorder.js +4 -4
- package/package.json +3 -3
- package/dist/utils-474188c7.js +0 -21
- package/dist/video-recorder-31ce7f04.js +0 -1605
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
|
+
|
|
3
|
+
function commonjsRequire (path) {
|
|
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
|
+
}
|
|
6
|
+
|
|
7
|
+
export { commonjsRequire as a, commonjsGlobal as c };
|
package/dist/button.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper } from './lit-element-c42ac26e.js';
|
|
2
|
-
import { e as buttonsVars, d as defaultVars } from './variables-
|
|
2
|
+
import { e as buttonsVars, d as defaultVars } from './variables-0db5ef1b.js';
|
|
3
3
|
|
|
4
4
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
5
5
|
var Button = /*#__PURE__*/function (_LitElement) {
|
|
@@ -38,7 +38,7 @@ Button.properties = {
|
|
|
38
38
|
type: Boolean
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
Button.styles = i(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n @media screen and (max-width: 576px) {\n .btn {\n width: ", ";\n }\n }\n\n :host {\n }\n\n .btn {\n display: inline-block;\n align-items: center;\n vertical-align: top;\n padding: ", ";\n border: ", ";\n border-color: ", ";\n border-radius: ", ";\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n font-size: ", ";\n text-transform: ", ";\n }\n\n .btn:hover {\n background-color: ", ";\n }\n\n .btn:
|
|
41
|
+
Button.styles = i(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n @media screen and (max-width: 576px) {\n .btn {\n width: ", ";\n }\n }\n\n :host {\n }\n\n .btn {\n display: inline-block;\n align-items: center;\n vertical-align: top;\n padding: ", ";\n border: ", ";\n border-color: ", ";\n border-radius: ", ";\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n font-size: ", ";\n text-transform: ", ";\n }\n\n .btn:hover {\n background-color: ", ";\n }\n\n .btn:disabled {\n cursor: default;\n background-color: ", ";\n border-color: ", ";\n }\n\n .btn-outlined {\n color: ", ";\n background-color: ", ";\n border: ", ";\n }\n\n .btn-outlined:hover {\n background-color: ", ";\n }\n\n .box {\n display: block;\n text-align: center;\n }\n\n .label {\n margin: 0 10px;\n }\n\n .item-center {\n display: inline-block;\n vertical-align: middle;\n }\n "])), buttonsVars.smWidth, buttonsVars.padding, buttonsVars.border, defaultVars.colors.primary, buttonsVars.borderRadius, defaultVars.colors.primary, defaultVars.colors.white, buttonsVars.fontSize, buttonsVars.textTransform, defaultVars.colors.primaryLighter, buttonsVars.btnDisabledBgColor, buttonsVars.btnDisabledBgColor, defaultVars.colors.primary, defaultVars.colors.white, buttonsVars.outlinedBorders, buttonsVars.btnDisabledBgColor);
|
|
42
42
|
customElements.define("uni-button", Button);
|
|
43
43
|
|
|
44
44
|
export { Button };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper } from './lit-element-c42ac26e.js';
|
|
2
|
-
import { d as defaultVars, c as directionCardsVars } from './variables-
|
|
2
|
+
import { d as defaultVars, c as directionCardsVars } from './variables-0db5ef1b.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"])));
|
|
@@ -49,18 +49,10 @@ var videoRecorder = {
|
|
|
49
49
|
},
|
|
50
50
|
rotationWhileCapturingErrorMessage: "Please don't rotate the device during acquisition.",
|
|
51
51
|
activeChallengeMessages: {
|
|
52
|
-
rotateLeft: 'Turn head to the <strong
|
|
53
|
-
rotateRight: 'Turn head to the <strong
|
|
54
|
-
rotateUp: 'Turn head <strong
|
|
55
|
-
rotateDown: 'Turn head <strong
|
|
56
|
-
},
|
|
57
|
-
accessibility: {
|
|
58
|
-
flipCamera: "Switch camera",
|
|
59
|
-
turnLeft: "Turn left",
|
|
60
|
-
turnRight: "Turn right",
|
|
61
|
-
turnUp: "Turn up",
|
|
62
|
-
turnDown: "Turn down",
|
|
63
|
-
videoFeed: "Camera feed for identity verification"
|
|
52
|
+
rotateLeft: 'Turn head to the <strong font-size: 18px">left</strong>',
|
|
53
|
+
rotateRight: 'Turn head to the <strong font-size: 18px">right</strong>',
|
|
54
|
+
rotateUp: 'Turn head <strong font-size: 18px">up</strong>',
|
|
55
|
+
rotateDown: 'Turn head <strong font-size: 18px">down</strong>'
|
|
64
56
|
}
|
|
65
57
|
};
|
|
66
58
|
var pictureRecorder = {
|
package/dist/file-upload.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass,
|
|
2
|
-
import { E as EN } from './en-
|
|
3
|
-
import { f as fileUploadVars } from './variables-
|
|
4
|
-
import { c as commonjsGlobal
|
|
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-c42ac26e.js';
|
|
2
|
+
import { E as EN } from './en-57f1198e.js';
|
|
3
|
+
import { f as fileUploadVars } from './variables-0db5ef1b.js';
|
|
4
|
+
import { c as commonjsGlobal } from './_commonjsHelpers-02146103.js';
|
|
5
5
|
|
|
6
6
|
var heic2any$1 = {exports: {}};
|
|
7
7
|
|
|
@@ -296,23 +296,11 @@ var FileUpload = /*#__PURE__*/function (_LitElement) {
|
|
|
296
296
|
_this.strings = _objectSpread2({}, defaultStrings);
|
|
297
297
|
_this.error = "";
|
|
298
298
|
_this.inited = false;
|
|
299
|
-
_this.handleKeyboardSelection = function (e) {
|
|
300
|
-
if (e.code === KEY_ENTER || e.code === KEY_SPACE) {
|
|
301
|
-
_this.handleClick();
|
|
302
|
-
}
|
|
303
|
-
};
|
|
304
299
|
_this.handleFileSelection = _this.handleFileSelection.bind(_this);
|
|
305
300
|
return _this;
|
|
306
301
|
}
|
|
307
302
|
_inherits(FileUpload, _LitElement);
|
|
308
303
|
return _createClass(FileUpload, [{
|
|
309
|
-
key: "connectedCallback",
|
|
310
|
-
value: function connectedCallback() {
|
|
311
|
-
_superPropGet(FileUpload, "connectedCallback", this, 3)([]);
|
|
312
|
-
this.setAttribute("tabindex", "0");
|
|
313
|
-
this.addEventListener("keydown", this.handleKeyboardSelection);
|
|
314
|
-
}
|
|
315
|
-
}, {
|
|
316
304
|
key: "validateFile",
|
|
317
305
|
value: function validateFile(type, size) {
|
|
318
306
|
var error = "";
|
|
@@ -420,12 +408,6 @@ var FileUpload = /*#__PURE__*/function (_LitElement) {
|
|
|
420
408
|
value: function updated() {
|
|
421
409
|
if (!this.inited) this.init();
|
|
422
410
|
}
|
|
423
|
-
}, {
|
|
424
|
-
key: "disconnectedCallback",
|
|
425
|
-
value: function disconnectedCallback() {
|
|
426
|
-
_superPropGet(FileUpload, "disconnectedCallback", this, 3)([]);
|
|
427
|
-
this.removeEventListener("keydown", this.handleKeyboardSelection);
|
|
428
|
-
}
|
|
429
411
|
}, {
|
|
430
412
|
key: "render",
|
|
431
413
|
value: function render() {
|
|
@@ -453,7 +435,7 @@ FileUpload.properties = {
|
|
|
453
435
|
state: true
|
|
454
436
|
}
|
|
455
437
|
};
|
|
456
|
-
FileUpload.styles = i(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n #drop-zone {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ", ";\n text-align: center;\n\n width: ", ";\n height: ", ";\n border: ", ";\n background-color: ", ";\n\n cursor: pointer;\n }\n\n
|
|
438
|
+
FileUpload.styles = i(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n #drop-zone {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ", ";\n text-align: center;\n\n width: ", ";\n height: ", ";\n border: ", ";\n background-color: ", ";\n\n cursor: pointer;\n }\n\n .text {\n color: ", ";\n font-size: ", ";\n }\n\n .error {\n display: inline-block;\n margin-top: 40px;\n color: ", ";\n font-size: ", ";\n }\n "])), fileUploadVars.padding, fileUploadVars.width, fileUploadVars.height, fileUploadVars.border, fileUploadVars.backgroundColor, fileUploadVars.textColor, fileUploadVars.textFontSize, fileUploadVars.errorTextColor, fileUploadVars.errorTextFontSize);
|
|
457
439
|
customElements.define("uni-file-upload", FileUpload);
|
|
458
440
|
|
|
459
441
|
export { FileUpload };
|
package/dist/full-capture.js
CHANGED
|
@@ -2,12 +2,12 @@ import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b
|
|
|
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 './
|
|
8
|
-
import './variables-
|
|
5
|
+
import './en-57f1198e.js';
|
|
6
|
+
import './video-recorder-f89d5b58.js';
|
|
7
|
+
import './_commonjsHelpers-02146103.js';
|
|
8
|
+
import './variables-0db5ef1b.js';
|
|
9
9
|
import './video-record-directions.js';
|
|
10
|
-
import './direction-card-
|
|
10
|
+
import './direction-card-fd8d8d8b.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
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-c42ac26e.js';
|
|
2
|
-
import { d as directionsStyle } from './direction-card-
|
|
3
|
-
import { d as defaultVars } from './variables-
|
|
4
|
-
import { E as EN } from './en-
|
|
2
|
+
import { d as directionsStyle } from './direction-card-fd8d8d8b.js';
|
|
3
|
+
import { d as defaultVars } from './variables-0db5ef1b.js';
|
|
4
|
+
import { E as EN } from './en-57f1198e.js';
|
|
5
5
|
|
|
6
6
|
var _templateObject$3;
|
|
7
7
|
var FaceCardPicto = /*#__PURE__*/function (_LitElement) {
|
package/dist/index.d.ts
CHANGED
|
@@ -125,14 +125,6 @@ declare const EN: {
|
|
|
125
125
|
rotateUp: string;
|
|
126
126
|
rotateDown: string;
|
|
127
127
|
};
|
|
128
|
-
accessibility: {
|
|
129
|
-
flipCamera: string;
|
|
130
|
-
turnLeft: string;
|
|
131
|
-
turnRight: string;
|
|
132
|
-
turnUp: string;
|
|
133
|
-
turnDown: string;
|
|
134
|
-
videoFeed: string;
|
|
135
|
-
};
|
|
136
128
|
};
|
|
137
129
|
pictureRecorder: {
|
|
138
130
|
capture: string;
|
|
@@ -223,14 +215,6 @@ declare const EN: {
|
|
|
223
215
|
rotateUp: string;
|
|
224
216
|
rotateDown: string;
|
|
225
217
|
};
|
|
226
|
-
accessibility: {
|
|
227
|
-
flipCamera: string;
|
|
228
|
-
turnLeft: string;
|
|
229
|
-
turnRight: string;
|
|
230
|
-
turnUp: string;
|
|
231
|
-
turnDown: string;
|
|
232
|
-
videoFeed: string;
|
|
233
|
-
};
|
|
234
218
|
};
|
|
235
219
|
};
|
|
236
220
|
referenceCapture: {
|
|
@@ -292,14 +276,6 @@ declare const EN: {
|
|
|
292
276
|
rotateUp: string;
|
|
293
277
|
rotateDown: string;
|
|
294
278
|
};
|
|
295
|
-
accessibility: {
|
|
296
|
-
flipCamera: string;
|
|
297
|
-
turnLeft: string;
|
|
298
|
-
turnRight: string;
|
|
299
|
-
turnUp: string;
|
|
300
|
-
turnDown: string;
|
|
301
|
-
videoFeed: string;
|
|
302
|
-
};
|
|
303
279
|
};
|
|
304
280
|
pictureRecorder: {
|
|
305
281
|
capture: string;
|
|
@@ -313,25 +289,6 @@ declare const EN: {
|
|
|
313
289
|
};
|
|
314
290
|
type I18n = typeof EN;
|
|
315
291
|
|
|
316
|
-
type SdkNotification = {
|
|
317
|
-
message: string;
|
|
318
|
-
type: "info" | "error";
|
|
319
|
-
};
|
|
320
|
-
type NotificationCallback = (notification: SdkNotification) => void;
|
|
321
|
-
declare class NotificationThrottler {
|
|
322
|
-
private nextNotification;
|
|
323
|
-
private isProcessing;
|
|
324
|
-
private readRate;
|
|
325
|
-
private readonly notificationCallback;
|
|
326
|
-
private readonly targetElement;
|
|
327
|
-
constructor(notificationCallback: NotificationCallback, readRate: number | undefined, targetElement: HTMLElement);
|
|
328
|
-
setReadRate(rate: number): void;
|
|
329
|
-
private execAndDelay;
|
|
330
|
-
private processCycleEnd;
|
|
331
|
-
getIsProcessing(): boolean;
|
|
332
|
-
sendNotification(notification: SdkNotification): void;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
292
|
declare class Recorder extends LitElement {
|
|
336
293
|
session: UnisseySession | null;
|
|
337
294
|
sessionPromise: Promise<void> | null;
|
|
@@ -384,14 +341,6 @@ declare class Recorder extends LitElement {
|
|
|
384
341
|
rotateUp: string;
|
|
385
342
|
rotateDown: string;
|
|
386
343
|
};
|
|
387
|
-
accessibility: {
|
|
388
|
-
flipCamera: string;
|
|
389
|
-
turnLeft: string;
|
|
390
|
-
turnRight: string;
|
|
391
|
-
turnUp: string;
|
|
392
|
-
turnDown: string;
|
|
393
|
-
videoFeed: string;
|
|
394
|
-
};
|
|
395
344
|
};
|
|
396
345
|
strings: Partial<typeof EN.videoRecorder>;
|
|
397
346
|
captureButtonPicto: lit_html.TemplateResult<1>;
|
|
@@ -401,7 +350,6 @@ declare class Recorder extends LitElement {
|
|
|
401
350
|
disconnected: boolean;
|
|
402
351
|
initSessionInprogress: boolean;
|
|
403
352
|
hints: HintType;
|
|
404
|
-
internalHints: HintType | undefined;
|
|
405
353
|
error: string;
|
|
406
354
|
sdkJsStatus: StatusEvent;
|
|
407
355
|
willRetryCapture: boolean;
|
|
@@ -499,7 +447,6 @@ declare class Recorder extends LitElement {
|
|
|
499
447
|
state: boolean;
|
|
500
448
|
};
|
|
501
449
|
};
|
|
502
|
-
notificationThrotler: NotificationThrottler;
|
|
503
450
|
constructor();
|
|
504
451
|
retryCapture(): Promise<void>;
|
|
505
452
|
capture(): Promise<void>;
|
|
@@ -605,8 +552,6 @@ declare class FileUpload extends LitElement {
|
|
|
605
552
|
error: string;
|
|
606
553
|
inited: boolean;
|
|
607
554
|
constructor();
|
|
608
|
-
connectedCallback(): void;
|
|
609
|
-
handleKeyboardSelection: (e: KeyboardEvent) => void;
|
|
610
555
|
static properties: {
|
|
611
556
|
supportedTypes: {
|
|
612
557
|
attribute: string;
|
|
@@ -635,7 +580,6 @@ declare class FileUpload extends LitElement {
|
|
|
635
580
|
handleClick(): void;
|
|
636
581
|
init(): void;
|
|
637
582
|
updated(): void;
|
|
638
|
-
disconnectedCallback(): void;
|
|
639
583
|
static styles: lit.CSSResult;
|
|
640
584
|
render(): lit_html.TemplateResult<1>;
|
|
641
585
|
}
|
|
@@ -754,14 +698,6 @@ declare const selfieCaptureStrings: {
|
|
|
754
698
|
rotateUp: string;
|
|
755
699
|
rotateDown: string;
|
|
756
700
|
};
|
|
757
|
-
accessibility: {
|
|
758
|
-
flipCamera: string;
|
|
759
|
-
turnLeft: string;
|
|
760
|
-
turnRight: string;
|
|
761
|
-
turnUp: string;
|
|
762
|
-
turnDown: string;
|
|
763
|
-
videoFeed: string;
|
|
764
|
-
};
|
|
765
701
|
};
|
|
766
702
|
};
|
|
767
703
|
type RecorderOptions$1 = Partial<{
|
|
@@ -927,14 +863,6 @@ declare const referenceCaptureStrings: {
|
|
|
927
863
|
rotateUp: string;
|
|
928
864
|
rotateDown: string;
|
|
929
865
|
};
|
|
930
|
-
accessibility: {
|
|
931
|
-
flipCamera: string;
|
|
932
|
-
turnLeft: string;
|
|
933
|
-
turnRight: string;
|
|
934
|
-
turnUp: string;
|
|
935
|
-
turnDown: string;
|
|
936
|
-
videoFeed: string;
|
|
937
|
-
};
|
|
938
866
|
};
|
|
939
867
|
pictureRecorder: {
|
|
940
868
|
capture: string;
|
|
@@ -1089,14 +1017,6 @@ declare const fullCaptureStrings: {
|
|
|
1089
1017
|
rotateUp: string;
|
|
1090
1018
|
rotateDown: string;
|
|
1091
1019
|
};
|
|
1092
|
-
accessibility: {
|
|
1093
|
-
flipCamera: string;
|
|
1094
|
-
turnLeft: string;
|
|
1095
|
-
turnRight: string;
|
|
1096
|
-
turnUp: string;
|
|
1097
|
-
turnDown: string;
|
|
1098
|
-
videoFeed: string;
|
|
1099
|
-
};
|
|
1100
1020
|
};
|
|
1101
1021
|
pictureRecorder: {
|
|
1102
1022
|
capture: string;
|
|
@@ -1161,14 +1081,6 @@ declare const fullCaptureStrings: {
|
|
|
1161
1081
|
rotateUp: string;
|
|
1162
1082
|
rotateDown: string;
|
|
1163
1083
|
};
|
|
1164
|
-
accessibility: {
|
|
1165
|
-
flipCamera: string;
|
|
1166
|
-
turnLeft: string;
|
|
1167
|
-
turnRight: string;
|
|
1168
|
-
turnUp: string;
|
|
1169
|
-
turnDown: string;
|
|
1170
|
-
videoFeed: string;
|
|
1171
|
-
};
|
|
1172
1084
|
};
|
|
1173
1085
|
};
|
|
1174
1086
|
};
|
|
@@ -1246,17 +1158,7 @@ declare enum AcquisitionPreset {
|
|
|
1246
1158
|
DOC_VIDEO = "doc-video",
|
|
1247
1159
|
DOC_IMAGE = "doc-image"
|
|
1248
1160
|
}
|
|
1249
|
-
declare enum IadMode {
|
|
1250
|
-
DISABLED = "disabled",
|
|
1251
|
-
INTEGRITY = "integrity",
|
|
1252
|
-
BASIC = "basic",
|
|
1253
|
-
PASSIVE = "passive",
|
|
1254
|
-
SUBSTANTIAL = "substantial",
|
|
1255
|
-
MEDIA_INTEGRITY = "integrity",
|
|
1256
|
-
PASSIVE_LT = "basic"
|
|
1257
|
-
}
|
|
1258
1161
|
type IadConfig = {
|
|
1259
|
-
mode: IadMode;
|
|
1260
1162
|
data?: string;
|
|
1261
1163
|
activeChallengeConfig?: ActiveChallengeConfig;
|
|
1262
1164
|
};
|
|
@@ -1358,4 +1260,4 @@ interface SessionConfig {
|
|
|
1358
1260
|
};
|
|
1359
1261
|
}
|
|
1360
1262
|
|
|
1361
|
-
export { AcquisitionPreset, ActiveChallengeConfig, Animation, Button, CameraConfig, CameraVideoOutlinedIcon, ColorRGBA, CustomAction, DirectionCard, EN, FR, FaceChecker, FacingMode, FileUpload, FullCapture, IadConfig,
|
|
1263
|
+
export { AcquisitionPreset, ActiveChallengeConfig, Animation, Button, CameraConfig, CameraVideoOutlinedIcon, ColorRGBA, CustomAction, DirectionCard, EN, FR, FaceChecker, FacingMode, FileUpload, FullCapture, IadConfig, ImageCaptureDirections, LogLevel, OverlayColors, OverlayConfig, OverlayDisplayMode, OverlayHints, PictureEditor, PictureRecorder, Recorder, RecorderExt, RecorderOptions$1 as RecorderOptions, RecordingConfig, ReferenceCapture, RetryResult, SelfieCapture, SessionConfig, VideoLength, VideoOrientation, VideoRecordDirections, VideoResolutionPreset };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-f89d5b58.js';
|
|
3
|
+
export { A as Animation, C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-f89d5b58.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';
|
|
@@ -11,10 +11,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 './
|
|
14
|
+
export { D as DirectionCard } from './direction-card-fd8d8d8b.js';
|
|
15
|
+
export { E as EN } from './en-57f1198e.js';
|
|
16
|
+
import './variables-0db5ef1b.js';
|
|
17
|
+
import './_commonjsHelpers-02146103.js';
|
|
18
18
|
|
|
19
19
|
// @ts-ignore
|
|
20
20
|
|
|
@@ -60,18 +60,10 @@ var videoRecorder = {
|
|
|
60
60
|
},
|
|
61
61
|
rotationWhileCapturingErrorMessage: "Veuillez ne pas tourner l'appareil pendant l'acquisition.",
|
|
62
62
|
activeChallengeMessages: {
|
|
63
|
-
rotateLeft: 'Tournez la tête à <strong
|
|
64
|
-
rotateRight: 'Tournez la tête à <strong
|
|
65
|
-
rotateUp: 'Pivotez la tête en <strong
|
|
66
|
-
rotateDown: 'Pivotez la tête en <strong
|
|
67
|
-
},
|
|
68
|
-
accessibility: {
|
|
69
|
-
flipCamera: "Changer de caméra",
|
|
70
|
-
turnLeft: "Tourner à gauche",
|
|
71
|
-
turnRight: "Tourner à droite",
|
|
72
|
-
turnUp: "Tourner vers le haut",
|
|
73
|
-
turnDown: "Tourner vers le bas",
|
|
74
|
-
videoFeed: "Flux caméra pour la vérification d'identité"
|
|
63
|
+
rotateLeft: 'Tournez la tête à <strong font-size: 18px">gauche</strong>',
|
|
64
|
+
rotateRight: 'Tournez la tête à <strong font-size: 18px">droite</strong>',
|
|
65
|
+
rotateUp: 'Pivotez la tête en <strong font-size: 18px">haut</strong>',
|
|
66
|
+
rotateDown: 'Pivotez la tête en <strong font-size: 18px">bas</strong>'
|
|
75
67
|
}
|
|
76
68
|
};
|
|
77
69
|
var pictureRecorder = {
|
|
@@ -161,23 +153,6 @@ var AcquisitionPreset = /*#__PURE__*/function (AcquisitionPreset) {
|
|
|
161
153
|
AcquisitionPreset["DOC_IMAGE"] = "doc-image";
|
|
162
154
|
return AcquisitionPreset;
|
|
163
155
|
}({});
|
|
164
|
-
var IadMode = /*#__PURE__*/function (IadMode) {
|
|
165
|
-
IadMode["DISABLED"] = "disabled";
|
|
166
|
-
// No IAD (equivalent to keep 'iadConfig' undefined)
|
|
167
|
-
IadMode["INTEGRITY"] = "integrity";
|
|
168
|
-
// No IAD measures as such, but compute a hash to ensure that the media is not corrupted after capture
|
|
169
|
-
IadMode["BASIC"] = "basic";
|
|
170
|
-
// IadMode.MEDIA_INTEGRITY + Basic IAD check (Virtual Camera and Emulators detection). No Randomness.
|
|
171
|
-
IadMode["PASSIVE"] = "passive";
|
|
172
|
-
// IadMode.BASIC + passive randomness when applicable = All passive countermeasures: Substantial passive (with randomness) countermeasures when applicable, otherwise Baseline (passive) countermeasures
|
|
173
|
-
IadMode["SUBSTANTIAL"] = "substantial";
|
|
174
|
-
// IadMode.PASSIVE + Active Challenge when passive randomness is not applicable
|
|
175
|
-
/** @deprecated Use 'INTEGRITY' instead */
|
|
176
|
-
IadMode["MEDIA_INTEGRITY"] = "integrity";
|
|
177
|
-
/** @deprecated Use 'BASIC' instead - but it requires preparation 'data'*/
|
|
178
|
-
IadMode["PASSIVE_LT"] = "basic";
|
|
179
|
-
return IadMode;
|
|
180
|
-
}({});
|
|
181
156
|
|
|
182
157
|
// This is actually a public subset of the actual type defined in sdk.js
|
|
183
158
|
|
|
@@ -219,4 +194,4 @@ var FacingMode = /*#__PURE__*/function (FacingMode) {
|
|
|
219
194
|
return FacingMode;
|
|
220
195
|
}({});
|
|
221
196
|
|
|
222
|
-
export { AcquisitionPreset, FR, FacingMode,
|
|
197
|
+
export { AcquisitionPreset, FR, FacingMode, LogLevel, OverlayDisplayMode, Recorder, RecorderExt, VideoOrientation, VideoResolutionPreset };
|
package/dist/picture-editor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, i, e as _objectSpread2, f as _asyncToGenerator, g as _regenerator, h as _superPropGet } from './lit-element-c42ac26e.js';
|
|
2
|
-
import { E as EN } from './en-
|
|
2
|
+
import { E as EN } from './en-57f1198e.js';
|
|
3
3
|
|
|
4
4
|
var _templateObject$2;
|
|
5
5
|
var RotateLeftIcon = /*#__PURE__*/function (_LitElement) {
|
package/dist/picture-recorder.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, e as _objectSpread2 } from './lit-element-c42ac26e.js';
|
|
2
|
-
import { R as Recorder, b as buildPacked } from './video-recorder-
|
|
3
|
-
import { E as EN } from './en-
|
|
4
|
-
import './
|
|
5
|
-
import './variables-
|
|
2
|
+
import { R as Recorder, b as buildPacked } from './video-recorder-f89d5b58.js';
|
|
3
|
+
import { E as EN } from './en-57f1198e.js';
|
|
4
|
+
import './_commonjsHelpers-02146103.js';
|
|
5
|
+
import './variables-0db5ef1b.js';
|
|
6
6
|
import './button.js';
|
|
7
7
|
|
|
8
8
|
var _templateObject$1;
|
|
@@ -3,11 +3,11 @@ import './button.js';
|
|
|
3
3
|
import './image-capture-directions.js';
|
|
4
4
|
import './file-upload.js';
|
|
5
5
|
import './picture-recorder.js';
|
|
6
|
-
import { b as buildPacked } from './video-recorder-
|
|
7
|
-
import { E as EN } from './en-
|
|
8
|
-
import { a as referenceCaptureVars } from './variables-
|
|
9
|
-
import './direction-card-
|
|
10
|
-
import './
|
|
6
|
+
import { b as buildPacked } from './video-recorder-f89d5b58.js';
|
|
7
|
+
import { E as EN } from './en-57f1198e.js';
|
|
8
|
+
import { a as referenceCaptureVars } from './variables-0db5ef1b.js';
|
|
9
|
+
import './direction-card-fd8d8d8b.js';
|
|
10
|
+
import './_commonjsHelpers-02146103.js';
|
|
11
11
|
|
|
12
12
|
var _templateObject$1;
|
|
13
13
|
var UploadIcon = /*#__PURE__*/function (_LitElement) {
|
package/dist/retry-result.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, i } from './lit-element-c42ac26e.js';
|
|
2
2
|
import './button.js';
|
|
3
|
-
import { d as defaultVars, r as retryResultVars } from './variables-
|
|
4
|
-
import { E as EN } from './en-
|
|
3
|
+
import { d as defaultVars, r as retryResultVars } from './variables-0db5ef1b.js';
|
|
4
|
+
import { E as EN } from './en-57f1198e.js';
|
|
5
5
|
|
|
6
6
|
var _templateObject$3;
|
|
7
7
|
var GenericHintIcon = /*#__PURE__*/function (_LitElement) {
|
package/dist/selfie-capture.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, i } from './lit-element-c42ac26e.js';
|
|
2
|
-
import { E as EN } from './en-
|
|
3
|
-
import { b as buildPacked } from './video-recorder-
|
|
2
|
+
import { E as EN } from './en-57f1198e.js';
|
|
3
|
+
import { b as buildPacked } from './video-recorder-f89d5b58.js';
|
|
4
4
|
import './video-record-directions.js';
|
|
5
5
|
import './button.js';
|
|
6
|
-
import { s as selfieCaptureVars } from './variables-
|
|
7
|
-
import './
|
|
8
|
-
import './direction-card-
|
|
6
|
+
import { s as selfieCaptureVars } from './variables-0db5ef1b.js';
|
|
7
|
+
import './_commonjsHelpers-02146103.js';
|
|
8
|
+
import './direction-card-fd8d8d8b.js';
|
|
9
9
|
|
|
10
10
|
var _templateObject$1;
|
|
11
11
|
var BackArrowIcon = /*#__PURE__*/function (_LitElement) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i, d as _taggedTemplateLiteral } from './lit-element-c42ac26e.js';
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58, _templateObject59, _templateObject60, _templateObject61, _templateObject62, _templateObject63, _templateObject64, _templateObject65, _templateObject66, _templateObject67, _templateObject68, _templateObject69, _templateObject70, _templateObject71, _templateObject72, _templateObject73, _templateObject74, _templateObject75
|
|
3
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58, _templateObject59, _templateObject60, _templateObject61, _templateObject62, _templateObject63, _templateObject64, _templateObject65, _templateObject66, _templateObject67, _templateObject68, _templateObject69, _templateObject70, _templateObject71, _templateObject72, _templateObject73, _templateObject74, _templateObject75;
|
|
4
4
|
var recorderVars = {
|
|
5
5
|
borderRadius: i(_templateObject || (_templateObject = _taggedTemplateLiteral(["var(--uni-recorder-border-radius, 10px)"]))),
|
|
6
6
|
buttonsMargin: i(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["var(--uni-recorder-buttons-margin, 30px 0)"]))),
|
|
@@ -59,44 +59,42 @@ var fileUploadVars = {
|
|
|
59
59
|
width: i(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["var(--uni-file-upload-width, 80%)"]))),
|
|
60
60
|
height: i(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["var(--uni-file-upload-height, 80%)"]))),
|
|
61
61
|
border: i(_templateObject45 || (_templateObject45 = _taggedTemplateLiteral(["var(--uni-file-upload-border, dashed 2px #eee)"]))),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
errorTextFontSize: i(_templateObject51 || (_templateObject51 = _taggedTemplateLiteral(["var(--uni-file-upload-err-txt-font-size, 16px)"])))
|
|
62
|
+
backgroundColor: i(_templateObject46 || (_templateObject46 = _taggedTemplateLiteral(["var(--uni-file-upload-bg-color, #fafafa)"]))),
|
|
63
|
+
textColor: i(_templateObject47 || (_templateObject47 = _taggedTemplateLiteral(["var(--uni-file-upload-txt-color, #ccc)"]))),
|
|
64
|
+
textFontSize: i(_templateObject48 || (_templateObject48 = _taggedTemplateLiteral(["var(--uni-file-upload-txt-font-size, 20px)"]))),
|
|
65
|
+
errorTextColor: i(_templateObject49 || (_templateObject49 = _taggedTemplateLiteral(["var(--uni-file-upload-err-txt-color, #333)"]))),
|
|
66
|
+
errorTextFontSize: i(_templateObject50 || (_templateObject50 = _taggedTemplateLiteral(["var(--uni-file-upload-err-txt-font-size, 16px)"])))
|
|
68
67
|
};
|
|
69
68
|
var buttonsVars = {
|
|
70
|
-
padding: i(
|
|
71
|
-
border: i(
|
|
72
|
-
borderRadius: i(
|
|
73
|
-
fontSize: i(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
smWidth: i(_templateObject61 || (_templateObject61 = _taggedTemplateLiteral(["var(--uni-btn-sm-width, 250px)"])))
|
|
69
|
+
padding: i(_templateObject51 || (_templateObject51 = _taggedTemplateLiteral(["var(--uni-btn-padding, 8px 15px)"]))),
|
|
70
|
+
border: i(_templateObject52 || (_templateObject52 = _taggedTemplateLiteral(["var(--uni-btn-border, solid 1px)"]))),
|
|
71
|
+
borderRadius: i(_templateObject53 || (_templateObject53 = _taggedTemplateLiteral(["var(--uni-btn-border-radius, 7px)"]))),
|
|
72
|
+
fontSize: i(_templateObject54 || (_templateObject54 = _taggedTemplateLiteral(["var(--uni-btn-font-size, 14px)"]))),
|
|
73
|
+
textTransform: i(_templateObject55 || (_templateObject55 = _taggedTemplateLiteral(["var(--uni-btn-text-transform, normal)"]))),
|
|
74
|
+
outlinedBorders: i(_templateObject56 || (_templateObject56 = _taggedTemplateLiteral(["var(--uni-btn-border-outlined, solid 1px)"]))),
|
|
75
|
+
btnLabelMargin: i(_templateObject57 || (_templateObject57 = _taggedTemplateLiteral(["var(--uni-btn-label-margin, 10px 0px)"]))),
|
|
76
|
+
btnDisabledBgColor: i(_templateObject58 || (_templateObject58 = _taggedTemplateLiteral(["var(--uni-btn-disabled-bg-color, #eee)"]))),
|
|
77
|
+
smWidth: i(_templateObject59 || (_templateObject59 = _taggedTemplateLiteral(["var(--uni-btn-sm-width, 250px)"])))
|
|
80
78
|
};
|
|
81
79
|
var directionCardsVars = {
|
|
82
|
-
padding: i(
|
|
83
|
-
margin: i(
|
|
84
|
-
width: i(
|
|
85
|
-
radius: i(
|
|
86
|
-
fontSize: i(
|
|
87
|
-
fontWeight: i(
|
|
88
|
-
textMarginLeft: i(
|
|
89
|
-
iconHeight: i(
|
|
90
|
-
iconWidth: i(
|
|
91
|
-
backgroundColor: i(
|
|
80
|
+
padding: i(_templateObject60 || (_templateObject60 = _taggedTemplateLiteral(["var(--uni-card-padding, 8px 4%)"]))),
|
|
81
|
+
margin: i(_templateObject61 || (_templateObject61 = _taggedTemplateLiteral(["var(--uni-card-margin, 0px)"]))),
|
|
82
|
+
width: i(_templateObject62 || (_templateObject62 = _taggedTemplateLiteral(["var(--uni-card-width, 92%)"]))),
|
|
83
|
+
radius: i(_templateObject63 || (_templateObject63 = _taggedTemplateLiteral(["var(--uni-card-border-radius, 20px)"]))),
|
|
84
|
+
fontSize: i(_templateObject64 || (_templateObject64 = _taggedTemplateLiteral(["var(--uni-card-font-size, 16px)"]))),
|
|
85
|
+
fontWeight: i(_templateObject65 || (_templateObject65 = _taggedTemplateLiteral(["var(--uni-card-font-weight, normal)"]))),
|
|
86
|
+
textMarginLeft: i(_templateObject66 || (_templateObject66 = _taggedTemplateLiteral(["var(--uni-card-text-margin-left, 25px)"]))),
|
|
87
|
+
iconHeight: i(_templateObject67 || (_templateObject67 = _taggedTemplateLiteral(["var(--uni-card-icon-height, 55px)"]))),
|
|
88
|
+
iconWidth: i(_templateObject68 || (_templateObject68 = _taggedTemplateLiteral(["var(--uni-card-icon-width, auto)"]))),
|
|
89
|
+
backgroundColor: i(_templateObject69 || (_templateObject69 = _taggedTemplateLiteral(["var(--uni-card-bg-color, #f2f5f8)"])))
|
|
92
90
|
};
|
|
93
91
|
var retryResultVars = {
|
|
94
|
-
retriesColor: i(
|
|
95
|
-
fontSizeMd: i(
|
|
96
|
-
lineHeightMd: i(
|
|
97
|
-
fontSizeSm: i(
|
|
98
|
-
lineHeightSm: i(
|
|
99
|
-
iconWidth: i(
|
|
92
|
+
retriesColor: i(_templateObject70 || (_templateObject70 = _taggedTemplateLiteral(["var(--uni-retry-result-retries-color, grey)"]))),
|
|
93
|
+
fontSizeMd: i(_templateObject71 || (_templateObject71 = _taggedTemplateLiteral(["var(--uni-retry-result-font-size-md, 22px)"]))),
|
|
94
|
+
lineHeightMd: i(_templateObject72 || (_templateObject72 = _taggedTemplateLiteral(["var(--uni-retry-result-line-height-md, 24px)"]))),
|
|
95
|
+
fontSizeSm: i(_templateObject73 || (_templateObject73 = _taggedTemplateLiteral(["var(--uni-retry-result-font-size-sm, 16px)"]))),
|
|
96
|
+
lineHeightSm: i(_templateObject74 || (_templateObject74 = _taggedTemplateLiteral(["var(--uni-retry-result-line-height-sm, 18px)"]))),
|
|
97
|
+
iconWidth: i(_templateObject75 || (_templateObject75 = _taggedTemplateLiteral(["var(--uni-retry-result-icon-width, 150px)"])))
|
|
100
98
|
};
|
|
101
99
|
|
|
102
100
|
export { referenceCaptureVars as a, recorderVars as b, directionCardsVars as c, defaultVars as d, buttonsVars as e, fileUploadVars as f, retryResultVars as r, selfieCaptureVars as s };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, e as _objectSpread2 } from './lit-element-c42ac26e.js';
|
|
2
|
-
import { d as directionsStyle } from './direction-card-
|
|
3
|
-
import { d as defaultVars } from './variables-
|
|
4
|
-
import { E as EN } from './en-
|
|
2
|
+
import { d as directionsStyle } from './direction-card-fd8d8d8b.js';
|
|
3
|
+
import { d as defaultVars } from './variables-0db5ef1b.js';
|
|
4
|
+
import { E as EN } from './en-57f1198e.js';
|
|
5
5
|
|
|
6
6
|
var _templateObject$4;
|
|
7
7
|
var LightPicto = /*#__PURE__*/function (_LitElement) {
|