@unissey-web/web-components 5.0.0-alpha.8 → 5.0.0-beta.2

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/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-ac3d3a27.js';
2
- import { b as buttonsVars, d as defaultVars } from './variables-55f57e89.js';
2
+ import { b as buttonsVars, d as defaultVars } from './variables-b4a2d316.js';
3
3
 
4
4
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
5
5
  var Button = /*#__PURE__*/function (_LitElement) {
@@ -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-ac3d3a27.js';
2
- import { d as defaultVars, e as directionCardsVars } from './variables-55f57e89.js';
2
+ import { d as defaultVars, e as directionCardsVars } from './variables-b4a2d316.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"])));
@@ -1,6 +1,6 @@
1
1
  import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper, e as _objectSpread2, g as _asyncToGenerator, h as _regeneratorRuntime } from './lit-element-ac3d3a27.js';
2
2
  import { E as EN } from './en-e76ed5a0.js';
3
- import { f as fileUploadVars } from './variables-55f57e89.js';
3
+ import { f as fileUploadVars } from './variables-b4a2d316.js';
4
4
  import { a as commonjsGlobal } from './_commonjsHelpers-cef27602.js';
5
5
 
6
6
  var heic2any$1 = {exports: {}};
@@ -3,11 +3,11 @@ import { selfieCaptureStrings } from './selfie-capture.js';
3
3
  import { referenceCaptureStrings } from './reference-capture.js';
4
4
  import './button.js';
5
5
  import './en-e76ed5a0.js';
6
- import './video-recorder-14345052.js';
6
+ import './video-recorder-a6eb63ef.js';
7
7
  import './_commonjsHelpers-cef27602.js';
8
- import './variables-55f57e89.js';
8
+ import './variables-b4a2d316.js';
9
9
  import './video-record-directions.js';
10
- import './direction-card-277681c3.js';
10
+ import './direction-card-df682b7a.js';
11
11
  import './image-capture-directions.js';
12
12
  import './file-upload.js';
13
13
  import './picture-recorder.js';
@@ -1,6 +1,6 @@
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-ac3d3a27.js';
2
- import { d as directionsStyle } from './direction-card-277681c3.js';
3
- import { d as defaultVars } from './variables-55f57e89.js';
2
+ import { d as directionsStyle } from './direction-card-df682b7a.js';
3
+ import { d as defaultVars } from './variables-b4a2d316.js';
4
4
  import { E as EN } from './en-e76ed5a0.js';
5
5
 
6
6
  var _templateObject$3;
package/dist/index.d.ts CHANGED
@@ -61,6 +61,27 @@ declare class OverlayHints extends LitElement {
61
61
  render(): lit_html.TemplateResult<1>;
62
62
  }
63
63
 
64
+ declare class Animation extends LitElement {
65
+ animationPath: string | undefined;
66
+ loop: boolean;
67
+ autoplay: boolean;
68
+ static properties: {
69
+ animationPath: {
70
+ attribute: string;
71
+ type: StringConstructor;
72
+ };
73
+ loop: {
74
+ attribute: string;
75
+ type: BooleanConstructor;
76
+ };
77
+ autoplay: {
78
+ attribute: string;
79
+ type: BooleanConstructor;
80
+ };
81
+ };
82
+ render(): lit_html.TemplateResult<1>;
83
+ }
84
+
64
85
  declare class CameraVideoOutlinedIcon extends LitElement {
65
86
  static styles: lit.CSSResult;
66
87
  render(): lit_html.TemplateResult<1>;
@@ -277,7 +298,6 @@ declare class Recorder extends LitElement {
277
298
  };
278
299
  mediaType: string;
279
300
  faceChecker: FaceChecker;
280
- instructionMessages: InstructionMessage[];
281
301
  instructionMessage: string;
282
302
  instructionTimer: number;
283
303
  instructions: string[];
@@ -331,6 +351,8 @@ declare class Recorder extends LitElement {
331
351
  isCameraFlipped: boolean;
332
352
  faceDetectionFails: boolean;
333
353
  disableDebugMode: boolean;
354
+ actionToDisplay: string | undefined;
355
+ actionState: "success" | "error" | undefined;
334
356
  static properties: {
335
357
  preset: {
336
358
  attribute: string;
@@ -360,10 +382,6 @@ declare class Recorder extends LitElement {
360
382
  attribute: string;
361
383
  type: NumberConstructor;
362
384
  };
363
- instructionMessages: {
364
- attribute: string;
365
- type: ArrayConstructor;
366
- };
367
385
  disableDebugMode: {
368
386
  attribute: string;
369
387
  type: BooleanConstructor;
@@ -397,6 +415,12 @@ declare class Recorder extends LitElement {
397
415
  instructionTimer: {
398
416
  state: boolean;
399
417
  };
418
+ actionToDisplay: {
419
+ state: boolean;
420
+ };
421
+ isActionSuccessful: {
422
+ state: boolean;
423
+ };
400
424
  };
401
425
  constructor();
402
426
  retryCapture(): Promise<void>;
@@ -1091,7 +1115,18 @@ type IadConfig = {
1091
1115
  activeChallengeConfig?: ActiveChallengeConfig;
1092
1116
  };
1093
1117
  type ActiveChallengeConfig = {
1094
- maxSecondsBetweenActions?: number;
1118
+ maxSecondsBetweenActions: number;
1119
+ numberOfInstructions?: number;
1120
+ disableAutomaticDetection?: boolean;
1121
+ additionalRecord?: boolean;
1122
+ selfieBeforeAction?: number;
1123
+ customActions?: CustomAction[];
1124
+ };
1125
+ type CustomAction = {
1126
+ durationSec: number;
1127
+ position: number;
1128
+ label: string;
1129
+ message: string;
1095
1130
  };
1096
1131
  type VideoLength = {
1097
1132
  type: "duration";
@@ -1177,4 +1212,4 @@ interface SessionConfig {
1177
1212
  };
1178
1213
  }
1179
1214
 
1180
- export { AcquisitionPreset, ActiveChallengeConfig, Button, CameraConfig, CameraVideoOutlinedIcon, ColorRGBA, DirectionCard, EN, FR, FaceChecker, FacingMode, FileUpload, FullCapture, IadConfig, IadMode, ImageCaptureDirections, InstructionMessage, LogLevel, OverlayColors, OverlayConfig, OverlayDisplayMode, OverlayHints, PictureEditor, PictureRecorder, Recorder, RecorderExt, RecorderOptions$1 as RecorderOptions, RecordingConfig, ReferenceCapture, RetryResult, SelfieCapture, SessionConfig, VideoLength, VideoOrientation, VideoRecordDirections, VideoResolutionPreset };
1215
+ export { AcquisitionPreset, ActiveChallengeConfig, Animation, Button, CameraConfig, CameraVideoOutlinedIcon, ColorRGBA, CustomAction, DirectionCard, EN, FR, FaceChecker, FacingMode, FileUpload, FullCapture, IadConfig, IadMode, ImageCaptureDirections, InstructionMessage, 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-14345052.js';
3
- export { C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-14345052.js';
2
+ import { R as Recorder } from './video-recorder-a6eb63ef.js';
3
+ export { A as Animation, C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-a6eb63ef.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,9 +11,9 @@ 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-277681c3.js';
14
+ export { D as DirectionCard } from './direction-card-df682b7a.js';
15
15
  export { E as EN } from './en-e76ed5a0.js';
16
- import './variables-55f57e89.js';
16
+ import './variables-b4a2d316.js';
17
17
  import './_commonjsHelpers-cef27602.js';
18
18
 
19
19
  // @ts-ignore
@@ -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-ac3d3a27.js';
2
2
  import { E as EN } from './en-e76ed5a0.js';
3
- import { R as Recorder, b as buildPacked } from './video-recorder-14345052.js';
3
+ import { R as Recorder, b as buildPacked } from './video-recorder-a6eb63ef.js';
4
4
  import './_commonjsHelpers-cef27602.js';
5
- import './variables-55f57e89.js';
5
+ import './variables-b4a2d316.js';
6
6
  import './button.js';
7
7
 
8
8
  var _templateObject$1;
@@ -3,10 +3,10 @@ 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-14345052.js';
6
+ import { b as buildPacked } from './video-recorder-a6eb63ef.js';
7
7
  import { E as EN } from './en-e76ed5a0.js';
8
- import { c as referenceCaptureVars } from './variables-55f57e89.js';
9
- import './direction-card-277681c3.js';
8
+ import { c as referenceCaptureVars } from './variables-b4a2d316.js';
9
+ import './direction-card-df682b7a.js';
10
10
  import './_commonjsHelpers-cef27602.js';
11
11
 
12
12
  var _templateObject$1;
@@ -1,6 +1,6 @@
1
1
  import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, i } from './lit-element-ac3d3a27.js';
2
2
  import './button.js';
3
- import { d as defaultVars, a as retryResultVars } from './variables-55f57e89.js';
3
+ import { d as defaultVars, a as retryResultVars } from './variables-b4a2d316.js';
4
4
  import { E as EN } from './en-e76ed5a0.js';
5
5
 
6
6
  var _templateObject$3;
@@ -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-ac3d3a27.js';
2
2
  import { E as EN } from './en-e76ed5a0.js';
3
- import { b as buildPacked } from './video-recorder-14345052.js';
3
+ import { b as buildPacked } from './video-recorder-a6eb63ef.js';
4
4
  import './video-record-directions.js';
5
5
  import './button.js';
6
- import { s as selfieCaptureVars } from './variables-55f57e89.js';
6
+ import { s as selfieCaptureVars } from './variables-b4a2d316.js';
7
7
  import './_commonjsHelpers-cef27602.js';
8
- import './direction-card-277681c3.js';
8
+ import './direction-card-df682b7a.js';
9
9
 
10
10
  var _templateObject$1;
11
11
  var BackArrowIcon = /*#__PURE__*/function (_LitElement) {
@@ -14,7 +14,7 @@ var recorderVars = {
14
14
  instructionsTimerFontWeight: i(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["var(--uni-recorder-instructions-timer-font-weight, bold)"]))),
15
15
  instructionsTimerPositionTop: i(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["var(--uni-recorder-instructions-timer-position-top, 90%)"]))),
16
16
  instructionsTimerPositionLeft: i(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["var(--uni-recorder-instructions-timer-position-left, 3%)"]))),
17
- instructionsPositionTop: i(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["var(--uni-recorder-instructions-position-top, 85%)"]))),
17
+ instructionsPositionTop: i(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["var(--uni-recorder-instructions-position-top, -10%)"]))),
18
18
  instructionsPadding: i(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["var(--uni-recorder-instructions-padding, 0px)"]))),
19
19
  videoFilter: i(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["var(--uni-recorder-video-filter, none)"])))
20
20
  };
@@ -1,6 +1,6 @@
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-ac3d3a27.js';
2
- import { d as directionsStyle } from './direction-card-277681c3.js';
3
- import { d as defaultVars } from './variables-55f57e89.js';
2
+ import { d as directionsStyle } from './direction-card-df682b7a.js';
3
+ import { d as defaultVars } from './variables-b4a2d316.js';
4
4
  import { E as EN } from './en-e76ed5a0.js';
5
5
 
6
6
  var _templateObject$4;