@unissey-web/web-components 5.0.0-alpha.7 → 5.0.0-beta.1

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-a3e2576c.js';
6
+ import './video-recorder-1c6c128e.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[];
@@ -328,10 +348,11 @@ declare class Recorder extends LitElement {
328
348
  error: string;
329
349
  sdkJsStatus: StatusEvent;
330
350
  willRetryCapture: boolean;
331
- retryCount: number;
332
351
  isCameraFlipped: boolean;
333
352
  faceDetectionFails: boolean;
334
353
  disableDebugMode: boolean;
354
+ actionToDisplay: string | undefined;
355
+ actionState: "success" | "error" | undefined;
335
356
  static properties: {
336
357
  preset: {
337
358
  attribute: string;
@@ -361,10 +382,6 @@ declare class Recorder extends LitElement {
361
382
  attribute: string;
362
383
  type: NumberConstructor;
363
384
  };
364
- instructionMessages: {
365
- attribute: string;
366
- type: ArrayConstructor;
367
- };
368
385
  disableDebugMode: {
369
386
  attribute: string;
370
387
  type: BooleanConstructor;
@@ -398,6 +415,12 @@ declare class Recorder extends LitElement {
398
415
  instructionTimer: {
399
416
  state: boolean;
400
417
  };
418
+ actionToDisplay: {
419
+ state: boolean;
420
+ };
421
+ isActionSuccessful: {
422
+ state: boolean;
423
+ };
401
424
  };
402
425
  constructor();
403
426
  retryCapture(): Promise<void>;
@@ -1089,11 +1112,17 @@ declare enum IadMode {
1089
1112
  type IadConfig = {
1090
1113
  mode: IadMode;
1091
1114
  data?: string;
1092
- retryCount?: number;
1093
1115
  activeChallengeConfig?: ActiveChallengeConfig;
1094
1116
  };
1095
1117
  type ActiveChallengeConfig = {
1096
1118
  maxSecondsBetweenActions?: number;
1119
+ customActions?: CustomAction[];
1120
+ };
1121
+ type CustomAction = {
1122
+ durationSec: number;
1123
+ position: number;
1124
+ label: string;
1125
+ message: string;
1097
1126
  };
1098
1127
  type VideoLength = {
1099
1128
  type: "duration";
@@ -1179,4 +1208,4 @@ interface SessionConfig {
1179
1208
  };
1180
1209
  }
1181
1210
 
1182
- 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 };
1211
+ export { AcquisitionPreset, ActiveChallengeConfig, Animation, 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 };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { Button } from './button.js';
2
- import { R as Recorder } from './video-recorder-a3e2576c.js';
3
- export { C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-a3e2576c.js';
2
+ import { R as Recorder } from './video-recorder-1c6c128e.js';
3
+ export { A as Animation, C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-1c6c128e.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-a3e2576c.js';
3
+ import { R as Recorder, b as buildPacked } from './video-recorder-1c6c128e.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-a3e2576c.js';
6
+ import { b as buildPacked } from './video-recorder-1c6c128e.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-a3e2576c.js';
3
+ import { b as buildPacked } from './video-recorder-1c6c128e.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;