@unissey-web/web-components 5.0.0-alpha.1 → 5.0.0-alpha.10

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-46dcd539.js';
6
+ import './video-recorder-9527aaeb.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>;
@@ -267,6 +288,8 @@ declare class Recorder extends LitElement {
267
288
  session: UnisseySession | null;
268
289
  sessionPromise: Promise<void> | null;
269
290
  config: SessionConfig$1;
291
+ sdkAngularVersion: string | undefined;
292
+ sdkReactVersion: string | undefined;
270
293
  preset: AcquisitionPreset$1;
271
294
  resultEvent: {
272
295
  name: string;
@@ -275,7 +298,6 @@ declare class Recorder extends LitElement {
275
298
  };
276
299
  mediaType: string;
277
300
  faceChecker: FaceChecker;
278
- instructionMessages: InstructionMessage[];
279
301
  instructionMessage: string;
280
302
  instructionTimer: number;
281
303
  instructions: string[];
@@ -326,10 +348,11 @@ declare class Recorder extends LitElement {
326
348
  error: string;
327
349
  sdkJsStatus: StatusEvent;
328
350
  willRetryCapture: boolean;
329
- retryCount: number;
330
351
  isCameraFlipped: boolean;
331
352
  faceDetectionFails: boolean;
332
353
  disableDebugMode: boolean;
354
+ actionToDisplay: string | undefined;
355
+ actionState: "success" | "error" | undefined;
333
356
  static properties: {
334
357
  preset: {
335
358
  attribute: string;
@@ -359,14 +382,18 @@ declare class Recorder extends LitElement {
359
382
  attribute: string;
360
383
  type: NumberConstructor;
361
384
  };
362
- instructionMessages: {
363
- attribute: string;
364
- type: ArrayConstructor;
365
- };
366
385
  disableDebugMode: {
367
386
  attribute: string;
368
387
  type: BooleanConstructor;
369
388
  };
389
+ sdkAngularVersion: {
390
+ attribute: string;
391
+ type: StringConstructor;
392
+ };
393
+ sdkReactVersion: {
394
+ attribute: string;
395
+ type: StringConstructor;
396
+ };
370
397
  hints: {
371
398
  state: boolean;
372
399
  };
@@ -388,6 +415,12 @@ declare class Recorder extends LitElement {
388
415
  instructionTimer: {
389
416
  state: boolean;
390
417
  };
418
+ actionToDisplay: {
419
+ state: boolean;
420
+ };
421
+ isActionSuccessful: {
422
+ state: boolean;
423
+ };
391
424
  };
392
425
  constructor();
393
426
  retryCapture(): Promise<void>;
@@ -1069,22 +1102,31 @@ declare enum AcquisitionPreset {
1069
1102
  }
1070
1103
  declare enum IadMode {
1071
1104
  DISABLED = "disabled",
1072
- INTEGRITY = "media-integrity",
1105
+ INTEGRITY = "integrity",
1073
1106
  BASELINE = "baseline",
1074
1107
  PASSIVE = "passive",
1075
1108
  SUBSTANTIAL = "substantial",
1076
- MEDIA_INTEGRITY = "media-integrity",
1109
+ MEDIA_INTEGRITY = "integrity",
1077
1110
  PASSIVE_LT = "baseline"
1078
1111
  }
1079
1112
  type IadConfig = {
1080
1113
  mode: IadMode;
1081
1114
  data?: string;
1082
- retryCount?: number;
1083
1115
  activeChallengeConfig?: ActiveChallengeConfig;
1084
1116
  };
1085
1117
  type ActiveChallengeConfig = {
1086
- numberOfActions?: number;
1087
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;
1088
1130
  };
1089
1131
  type VideoLength = {
1090
1132
  type: "duration";
@@ -1170,4 +1212,4 @@ interface SessionConfig {
1170
1212
  };
1171
1213
  }
1172
1214
 
1173
- 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, 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-46dcd539.js';
3
- export { C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-46dcd539.js';
2
+ import { R as Recorder } from './video-recorder-9527aaeb.js';
3
+ export { A as Animation, C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-9527aaeb.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
@@ -152,11 +152,11 @@ var AcquisitionPreset = /*#__PURE__*/function (AcquisitionPreset) {
152
152
  }({});
153
153
  var IadMode = /*#__PURE__*/function (IadMode) {
154
154
  IadMode["DISABLED"] = "disabled";
155
- IadMode["INTEGRITY"] = "media-integrity";
155
+ IadMode["INTEGRITY"] = "integrity";
156
156
  IadMode["BASELINE"] = "baseline";
157
157
  IadMode["PASSIVE"] = "passive";
158
158
  IadMode["SUBSTANTIAL"] = "substantial";
159
- IadMode["MEDIA_INTEGRITY"] = "media-integrity";
159
+ IadMode["MEDIA_INTEGRITY"] = "integrity";
160
160
  IadMode["PASSIVE_LT"] = "baseline";
161
161
  return IadMode;
162
162
  }({});
@@ -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-46dcd539.js';
3
+ import { R as Recorder, b as buildPacked } from './video-recorder-9527aaeb.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-46dcd539.js';
6
+ import { b as buildPacked } from './video-recorder-9527aaeb.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-46dcd539.js';
3
+ import { b as buildPacked } from './video-recorder-9527aaeb.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;