@unissey-web/sdk-angular 3.7.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/README.md +311 -0
- package/dist/unissey-sdk/README.md +311 -0
- package/dist/unissey-sdk/bundles/unissey-web-sdk-angular.umd.js +1117 -0
- package/dist/unissey-sdk/bundles/unissey-web-sdk-angular.umd.js.map +1 -0
- package/dist/unissey-sdk/esm2015/lib/components/button/button.component.js +27 -0
- package/dist/unissey-sdk/esm2015/lib/components/file-upload/file-upload.component.js +62 -0
- package/dist/unissey-sdk/esm2015/lib/components/full-capture/full-capture.component.js +85 -0
- package/dist/unissey-sdk/esm2015/lib/components/image-capture-directions/image-capture-directions.component.js +30 -0
- package/dist/unissey-sdk/esm2015/lib/components/picture-editor/picture-editor.component.js +66 -0
- package/dist/unissey-sdk/esm2015/lib/components/picture-recorder/picture-recorder.component.js +127 -0
- package/dist/unissey-sdk/esm2015/lib/components/reference-capture/reference-capture.component.js +135 -0
- package/dist/unissey-sdk/esm2015/lib/components/retry-result/retry-result.component.js +69 -0
- package/dist/unissey-sdk/esm2015/lib/components/selfie-capture/selfie.component.js +139 -0
- package/dist/unissey-sdk/esm2015/lib/components/unissey-sdk-widget.component.js +22 -0
- package/dist/unissey-sdk/esm2015/lib/components/video-capture-directions/video-capture-directions.component.js +31 -0
- package/dist/unissey-sdk/esm2015/lib/components/video-recorder/video-recorder.component.js +168 -0
- package/dist/unissey-sdk/esm2015/lib/translations/en.js +11 -0
- package/dist/unissey-sdk/esm2015/lib/unissey-sdk.module.js +78 -0
- package/dist/unissey-sdk/esm2015/lib/unissey-sdk.service.js +14 -0
- package/dist/unissey-sdk/esm2015/lib/utils/components.js +2 -0
- package/dist/unissey-sdk/esm2015/lib/utils/types.js +2 -0
- package/dist/unissey-sdk/esm2015/public-api.js +21 -0
- package/dist/unissey-sdk/esm2015/unissey-web-sdk-angular.js +5 -0
- package/dist/unissey-sdk/fesm2015/unissey-web-sdk-angular.js +1028 -0
- package/dist/unissey-sdk/fesm2015/unissey-web-sdk-angular.js.map +1 -0
- package/dist/unissey-sdk/lib/components/button/button.component.d.ts +9 -0
- package/dist/unissey-sdk/lib/components/file-upload/file-upload.component.d.ts +39 -0
- package/dist/unissey-sdk/lib/components/full-capture/full-capture.component.d.ts +59 -0
- package/dist/unissey-sdk/lib/components/image-capture-directions/image-capture-directions.component.d.ts +15 -0
- package/dist/unissey-sdk/lib/components/picture-editor/picture-editor.component.d.ts +29 -0
- package/dist/unissey-sdk/lib/components/picture-recorder/picture-recorder.component.d.ts +56 -0
- package/dist/unissey-sdk/lib/components/reference-capture/reference-capture.component.d.ts +96 -0
- package/dist/unissey-sdk/lib/components/retry-result/retry-result.component.d.ts +36 -0
- package/dist/unissey-sdk/lib/components/selfie-capture/selfie.component.d.ts +97 -0
- package/dist/unissey-sdk/lib/components/unissey-sdk-widget.component.d.ts +10 -0
- package/dist/unissey-sdk/lib/components/video-capture-directions/video-capture-directions.component.d.ts +16 -0
- package/dist/unissey-sdk/lib/components/video-recorder/video-recorder.component.d.ts +156 -0
- package/dist/unissey-sdk/lib/translations/en.d.ts +239 -0
- package/dist/unissey-sdk/lib/unissey-sdk.module.d.ts +19 -0
- package/dist/unissey-sdk/lib/unissey-sdk.service.d.ts +6 -0
- package/dist/unissey-sdk/lib/utils/components.d.ts +64 -0
- package/dist/unissey-sdk/lib/utils/types.d.ts +30 -0
- package/dist/unissey-sdk/package.json +20 -0
- package/dist/unissey-sdk/public-api.d.ts +18 -0
- package/dist/unissey-sdk/unissey-web-sdk-angular.d.ts +5 -0
- package/package.json +76 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnChanges, OnInit, SimpleChanges } from "@angular/core";
|
|
2
|
+
import "@unissey-web/web-components/dist/video-record-directions";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class VideoCaptureDirectionsComponent implements OnChanges, OnInit {
|
|
5
|
+
strings: {
|
|
6
|
+
position: string;
|
|
7
|
+
face: string;
|
|
8
|
+
light: string;
|
|
9
|
+
camera: string;
|
|
10
|
+
};
|
|
11
|
+
instructions: string;
|
|
12
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VideoCaptureDirectionsComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VideoCaptureDirectionsComponent, "unissey-video-capture-directions", never, { "strings": "strings"; }, {}, never, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from "@angular/core";
|
|
2
|
+
import "@unissey-web/web-components/dist/video-recorder";
|
|
3
|
+
import { Capture, RecorderReady, WebComponentRecorderReadyEvent, WebComponentRecordEvent } from "../../utils/types";
|
|
4
|
+
import { VideoRecorderProps } from "../../utils/components";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class VideoRecorderComponent implements OnChanges, OnInit, AfterViewInit, OnDestroy {
|
|
7
|
+
private renderer;
|
|
8
|
+
strings?: {
|
|
9
|
+
capture: string;
|
|
10
|
+
retry: string;
|
|
11
|
+
errors: {
|
|
12
|
+
noFace: string;
|
|
13
|
+
};
|
|
14
|
+
hints: {
|
|
15
|
+
up: string;
|
|
16
|
+
down: string;
|
|
17
|
+
perfect: string;
|
|
18
|
+
right: string;
|
|
19
|
+
left: string;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
closer: string;
|
|
24
|
+
record: string;
|
|
25
|
+
nil: string;
|
|
26
|
+
};
|
|
27
|
+
forbiddenActionMessages: {
|
|
28
|
+
visibility: string;
|
|
29
|
+
focus: string;
|
|
30
|
+
keyboard: string;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
cameraErrorMessages: {
|
|
34
|
+
permissionDenied: string;
|
|
35
|
+
openFailed: string;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
rotationWhileCapturingErrorMessage: string; /**
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
activeChallengeMessages: {
|
|
42
|
+
rotateLeft: string;
|
|
43
|
+
rotateRight: string;
|
|
44
|
+
rotateUp: string;
|
|
45
|
+
rotateDown: string;
|
|
46
|
+
};
|
|
47
|
+
} | undefined;
|
|
48
|
+
preset?: VideoRecorderProps["preset"];
|
|
49
|
+
config?: VideoRecorderProps["config"];
|
|
50
|
+
instructionMessages?: VideoRecorderProps["instructionMessages"];
|
|
51
|
+
faceChecker?: VideoRecorderProps["faceChecker"];
|
|
52
|
+
displayFlipCameraBtn?: VideoRecorderProps["displayFlipCameraBtn"];
|
|
53
|
+
hideCaptureBtn?: VideoRecorderProps["hideCaptureBtn"];
|
|
54
|
+
logLevel?: VideoRecorderProps["logLevel"];
|
|
55
|
+
record: EventEmitter<Capture>;
|
|
56
|
+
recorderReady: EventEmitter<RecorderReady>;
|
|
57
|
+
recordStarting: EventEmitter<void>;
|
|
58
|
+
recordCapturing: EventEmitter<void>;
|
|
59
|
+
recordInterrupted: EventEmitter<void>;
|
|
60
|
+
recordCompleted: EventEmitter<Capture>;
|
|
61
|
+
issue: EventEmitter<string>;
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
private recorderRef;
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
stringifiedStrings?: string;
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
stringifiedConfig?: string;
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
stringifiedInstructionMessages?: string;
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
private issueUnlistenFct?;
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
private recorderUnlistenFct?;
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
private recorderReadyUnlistenFct?;
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
private recordStartingUnlistenFct?;
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
private recordCapturingUnlistenFct?;
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
private recordInterruptedUnlistenFct?;
|
|
102
|
+
/**
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
private recordCompletedUnlistenFct?;
|
|
106
|
+
constructor(renderer: Renderer2);
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
ngOnInit(): void;
|
|
111
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
112
|
+
/**
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
115
|
+
onRecord(event: WebComponentRecordEvent): void;
|
|
116
|
+
/**
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
onRecorderReady(event: WebComponentRecorderReadyEvent): void;
|
|
120
|
+
/**
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
onRecordStarting(event: CustomEvent): void;
|
|
124
|
+
/**
|
|
125
|
+
* @internal
|
|
126
|
+
*/
|
|
127
|
+
onRecordCapturing(event: CustomEvent): void;
|
|
128
|
+
/**
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
131
|
+
onRecordInterrupted(event: CustomEvent): void;
|
|
132
|
+
/**
|
|
133
|
+
* @internal
|
|
134
|
+
*/
|
|
135
|
+
onRecordCompleted(event: CustomEvent<{
|
|
136
|
+
media: Blob;
|
|
137
|
+
metadata: string;
|
|
138
|
+
}>): void;
|
|
139
|
+
/**
|
|
140
|
+
* @internal
|
|
141
|
+
*/
|
|
142
|
+
onRecordIssue(event: CustomEvent<{
|
|
143
|
+
issueType: string;
|
|
144
|
+
value: string;
|
|
145
|
+
}>): void;
|
|
146
|
+
/**
|
|
147
|
+
* @internal
|
|
148
|
+
*/
|
|
149
|
+
ngAfterViewInit(): void;
|
|
150
|
+
/**
|
|
151
|
+
* @internal
|
|
152
|
+
*/
|
|
153
|
+
ngOnDestroy(): void;
|
|
154
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VideoRecorderComponent, never>;
|
|
155
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VideoRecorderComponent, "unissey-video-recorder", never, { "strings": "strings"; "preset": "preset"; "config": "config"; "instructionMessages": "instructionMessages"; "faceChecker": "faceChecker"; "displayFlipCameraBtn": "displayFlipCameraBtn"; "hideCaptureBtn": "hideCaptureBtn"; "logLevel": "logLevel"; }, { "record": "record"; "recorderReady": "recorderReady"; "recordStarting": "recordStarting"; "recordCapturing": "recordCapturing"; "recordInterrupted": "recordInterrupted"; "recordCompleted": "recordCompleted"; "issue": "issue"; }, never, ["[slot=actions]"]>;
|
|
156
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
export declare const EN: {
|
|
2
|
+
videoRecorder: {
|
|
3
|
+
capture: string;
|
|
4
|
+
retry: string;
|
|
5
|
+
errors: {
|
|
6
|
+
noFace: string;
|
|
7
|
+
};
|
|
8
|
+
hints: {
|
|
9
|
+
up: string;
|
|
10
|
+
down: string;
|
|
11
|
+
perfect: string;
|
|
12
|
+
right: string;
|
|
13
|
+
left: string;
|
|
14
|
+
closer: string;
|
|
15
|
+
record: string;
|
|
16
|
+
nil: string;
|
|
17
|
+
};
|
|
18
|
+
forbiddenActionMessages: {
|
|
19
|
+
visibility: string;
|
|
20
|
+
focus: string;
|
|
21
|
+
keyboard: string;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
cameraErrorMessages: {
|
|
25
|
+
permissionDenied: string;
|
|
26
|
+
openFailed: string;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
rotationWhileCapturingErrorMessage: string;
|
|
30
|
+
activeChallengeMessages: {
|
|
31
|
+
rotateLeft: string;
|
|
32
|
+
rotateRight: string;
|
|
33
|
+
rotateUp: string;
|
|
34
|
+
rotateDown: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
pictureRecorder: {
|
|
38
|
+
capture: string;
|
|
39
|
+
};
|
|
40
|
+
imageCaptureDirections: {
|
|
41
|
+
document: string;
|
|
42
|
+
face: string;
|
|
43
|
+
light: string;
|
|
44
|
+
};
|
|
45
|
+
videoRecordDirections: {
|
|
46
|
+
position: string;
|
|
47
|
+
face: string;
|
|
48
|
+
light: string;
|
|
49
|
+
camera: string;
|
|
50
|
+
};
|
|
51
|
+
pictureEditor: {
|
|
52
|
+
validate: string;
|
|
53
|
+
};
|
|
54
|
+
fileUpload: {
|
|
55
|
+
badType: string;
|
|
56
|
+
maxSize: string;
|
|
57
|
+
text: string;
|
|
58
|
+
};
|
|
59
|
+
retryResult: {
|
|
60
|
+
default: string;
|
|
61
|
+
retryMessage: string;
|
|
62
|
+
retriesLeft: {
|
|
63
|
+
_1: string;
|
|
64
|
+
_2: string;
|
|
65
|
+
_3: string;
|
|
66
|
+
};
|
|
67
|
+
retryBtn: string;
|
|
68
|
+
finishBtn: string;
|
|
69
|
+
covideMask: string;
|
|
70
|
+
brightness: string;
|
|
71
|
+
};
|
|
72
|
+
selfieCapture: {
|
|
73
|
+
back: string;
|
|
74
|
+
directionSubtitle: string;
|
|
75
|
+
recordBtnLabel: string;
|
|
76
|
+
title: string;
|
|
77
|
+
recordSubtitle: string;
|
|
78
|
+
acquisitionDuration: {
|
|
79
|
+
base: string;
|
|
80
|
+
singular: string;
|
|
81
|
+
plural: string;
|
|
82
|
+
};
|
|
83
|
+
directions: {
|
|
84
|
+
position: string;
|
|
85
|
+
face: string;
|
|
86
|
+
light: string;
|
|
87
|
+
camera: string;
|
|
88
|
+
};
|
|
89
|
+
recorder: {
|
|
90
|
+
capture: string;
|
|
91
|
+
retry: string;
|
|
92
|
+
errors: {
|
|
93
|
+
noFace: string;
|
|
94
|
+
};
|
|
95
|
+
hints: {
|
|
96
|
+
up: string;
|
|
97
|
+
down: string;
|
|
98
|
+
perfect: string;
|
|
99
|
+
right: string;
|
|
100
|
+
left: string;
|
|
101
|
+
closer: string;
|
|
102
|
+
record: string;
|
|
103
|
+
nil: string;
|
|
104
|
+
};
|
|
105
|
+
forbiddenActionMessages: {
|
|
106
|
+
visibility: string;
|
|
107
|
+
focus: string;
|
|
108
|
+
keyboard: string;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
cameraErrorMessages: {
|
|
112
|
+
permissionDenied: string;
|
|
113
|
+
openFailed: string;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
rotationWhileCapturingErrorMessage: string;
|
|
117
|
+
activeChallengeMessages: {
|
|
118
|
+
rotateLeft: string;
|
|
119
|
+
rotateRight: string;
|
|
120
|
+
rotateUp: string;
|
|
121
|
+
rotateDown: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
referenceCapture: {
|
|
126
|
+
back: string;
|
|
127
|
+
title: string;
|
|
128
|
+
captureTitle: string;
|
|
129
|
+
editorTitle: string;
|
|
130
|
+
directionSubtitle: string;
|
|
131
|
+
pictureRecordSubtitle: string;
|
|
132
|
+
videoRecordSubtitle: string;
|
|
133
|
+
uploadBtn: string;
|
|
134
|
+
pictureBtn: string;
|
|
135
|
+
recordVidBtn: string;
|
|
136
|
+
retryPictureCaptureBtn: string;
|
|
137
|
+
retryVideoCaptureBtn: string;
|
|
138
|
+
replayValidation: string;
|
|
139
|
+
editor: {
|
|
140
|
+
validate: string;
|
|
141
|
+
};
|
|
142
|
+
directions: {
|
|
143
|
+
document: string;
|
|
144
|
+
face: string;
|
|
145
|
+
light: string;
|
|
146
|
+
};
|
|
147
|
+
videoRecorder: {
|
|
148
|
+
capture: string;
|
|
149
|
+
retry: string;
|
|
150
|
+
errors: {
|
|
151
|
+
noFace: string;
|
|
152
|
+
};
|
|
153
|
+
hints: {
|
|
154
|
+
up: string;
|
|
155
|
+
down: string;
|
|
156
|
+
perfect: string;
|
|
157
|
+
right: string;
|
|
158
|
+
left: string;
|
|
159
|
+
closer: string;
|
|
160
|
+
record: string;
|
|
161
|
+
nil: string;
|
|
162
|
+
};
|
|
163
|
+
forbiddenActionMessages: {
|
|
164
|
+
visibility: string;
|
|
165
|
+
focus: string;
|
|
166
|
+
keyboard: string;
|
|
167
|
+
default: string;
|
|
168
|
+
};
|
|
169
|
+
cameraErrorMessages: {
|
|
170
|
+
permissionDenied: string;
|
|
171
|
+
openFailed: string;
|
|
172
|
+
default: string;
|
|
173
|
+
};
|
|
174
|
+
rotationWhileCapturingErrorMessage: string;
|
|
175
|
+
activeChallengeMessages: {
|
|
176
|
+
rotateLeft: string;
|
|
177
|
+
rotateRight: string;
|
|
178
|
+
rotateUp: string;
|
|
179
|
+
rotateDown: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
pictureRecorder: {
|
|
183
|
+
capture: string;
|
|
184
|
+
};
|
|
185
|
+
fileUpload: {
|
|
186
|
+
badType: string;
|
|
187
|
+
maxSize: string;
|
|
188
|
+
text: string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
targetCapture: {
|
|
192
|
+
back: string;
|
|
193
|
+
directionSubtitle: string;
|
|
194
|
+
recordBtnLabel: string;
|
|
195
|
+
title: string;
|
|
196
|
+
recordSubtitle: string;
|
|
197
|
+
directions: {
|
|
198
|
+
position: string;
|
|
199
|
+
face: string;
|
|
200
|
+
light: string;
|
|
201
|
+
camera: string;
|
|
202
|
+
};
|
|
203
|
+
recorder: {
|
|
204
|
+
capture: string;
|
|
205
|
+
retry: string;
|
|
206
|
+
errors: {
|
|
207
|
+
noFace: string;
|
|
208
|
+
};
|
|
209
|
+
hints: {
|
|
210
|
+
up: string;
|
|
211
|
+
down: string;
|
|
212
|
+
perfect: string;
|
|
213
|
+
right: string;
|
|
214
|
+
left: string;
|
|
215
|
+
closer: string;
|
|
216
|
+
record: string;
|
|
217
|
+
nil: string;
|
|
218
|
+
};
|
|
219
|
+
forbiddenActionMessages: {
|
|
220
|
+
visibility: string;
|
|
221
|
+
focus: string;
|
|
222
|
+
keyboard: string;
|
|
223
|
+
default: string;
|
|
224
|
+
};
|
|
225
|
+
cameraErrorMessages: {
|
|
226
|
+
permissionDenied: string;
|
|
227
|
+
openFailed: string;
|
|
228
|
+
default: string;
|
|
229
|
+
};
|
|
230
|
+
rotationWhileCapturingErrorMessage: string;
|
|
231
|
+
activeChallengeMessages: {
|
|
232
|
+
rotateLeft: string;
|
|
233
|
+
rotateRight: string;
|
|
234
|
+
rotateUp: string;
|
|
235
|
+
rotateDown: string;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/button/button.component";
|
|
3
|
+
import * as i2 from "./components/file-upload/file-upload.component";
|
|
4
|
+
import * as i3 from "./components/full-capture/full-capture.component";
|
|
5
|
+
import * as i4 from "./components/selfie-capture/selfie.component";
|
|
6
|
+
import * as i5 from "./components/image-capture-directions/image-capture-directions.component";
|
|
7
|
+
import * as i6 from "./components/picture-editor/picture-editor.component";
|
|
8
|
+
import * as i7 from "./components/picture-recorder/picture-recorder.component";
|
|
9
|
+
import * as i8 from "./components/reference-capture/reference-capture.component";
|
|
10
|
+
import * as i9 from "./components/retry-result/retry-result.component";
|
|
11
|
+
import * as i10 from "./components/video-capture-directions/video-capture-directions.component";
|
|
12
|
+
import * as i11 from "./components/video-recorder/video-recorder.component";
|
|
13
|
+
import * as i12 from "./components/unissey-sdk-widget.component";
|
|
14
|
+
import * as i13 from "@angular/common";
|
|
15
|
+
export declare class UnisseySdkModule {
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UnisseySdkModule, never>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UnisseySdkModule, [typeof i1.ButtonComponent, typeof i2.FileUploadComponent, typeof i3.FullCaptureComponent, typeof i4.SelfieCaptureComponent, typeof i5.ImageCaptureDirectionsComponent, typeof i6.PictureEditorComponent, typeof i7.PictureRecorderComponent, typeof i8.ReferenceCaptureComponent, typeof i9.RetryResultComponent, typeof i10.VideoCaptureDirectionsComponent, typeof i11.VideoRecorderComponent, typeof i12.UnisseySdkComponent], [typeof i13.CommonModule], [typeof i1.ButtonComponent, typeof i2.FileUploadComponent, typeof i3.FullCaptureComponent, typeof i4.SelfieCaptureComponent, typeof i5.ImageCaptureDirectionsComponent, typeof i6.PictureEditorComponent, typeof i7.PictureRecorderComponent, typeof i8.ReferenceCaptureComponent, typeof i9.RetryResultComponent, typeof i10.VideoCaptureDirectionsComponent, typeof i11.VideoRecorderComponent, typeof i12.UnisseySdkComponent]>;
|
|
18
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UnisseySdkModule>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Button, FileUpload, ImageCaptureDirections, PictureEditor, PictureRecorder, RetryResult, VideoRecordDirections, Recorder, ReferenceCapture, SelfieCapture, FullCapture, DirectionCard, OverlayHints } from "@unissey-web/web-components";
|
|
2
|
+
/**
|
|
3
|
+
* From T, extract properties matching with the C condition
|
|
4
|
+
*/
|
|
5
|
+
declare type SubType<T, C> = Pick<T, {
|
|
6
|
+
[K in keyof T]: T[K] extends C ? K : never;
|
|
7
|
+
}[keyof T]>;
|
|
8
|
+
/**
|
|
9
|
+
* Wrapper around the standard Omit type, where it will discard
|
|
10
|
+
*/
|
|
11
|
+
declare type OmitNever<T extends Record<string, unknown>> = {
|
|
12
|
+
[K in keyof T as T[K] extends never ? never : K]: T[K];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Packs shared properties types into an intersection
|
|
16
|
+
*/
|
|
17
|
+
declare type SharedProperties<A, B> = OmitNever<Pick<A & B, keyof A & keyof B>>;
|
|
18
|
+
declare type WebComponentProperties<W, P extends Record<string, unknown>> = SharedProperties<W, SubType<P, {
|
|
19
|
+
attribute: string;
|
|
20
|
+
type: unknown;
|
|
21
|
+
}>>;
|
|
22
|
+
export declare type ButtonProps = {
|
|
23
|
+
[K in keyof WebComponentProperties<Button, typeof Button["properties"]>]: Button[K];
|
|
24
|
+
};
|
|
25
|
+
export declare type DirectionCardProps = {
|
|
26
|
+
[K in keyof WebComponentProperties<DirectionCard, typeof DirectionCard["properties"]>]: DirectionCard[K];
|
|
27
|
+
};
|
|
28
|
+
export declare type ImageCaptureDirectionsProps = {
|
|
29
|
+
[K in keyof WebComponentProperties<ImageCaptureDirections, typeof ImageCaptureDirections["properties"]>]: ImageCaptureDirections[K];
|
|
30
|
+
};
|
|
31
|
+
export declare type FileUploadProps = {
|
|
32
|
+
[K in keyof WebComponentProperties<FileUpload, typeof FileUpload["properties"]>]: FileUpload[K];
|
|
33
|
+
};
|
|
34
|
+
export declare type OverlayHintsProps = {
|
|
35
|
+
[K in keyof WebComponentProperties<OverlayHints, typeof OverlayHints["properties"]>]: OverlayHints[K];
|
|
36
|
+
};
|
|
37
|
+
export declare type PictureEditorProps = {
|
|
38
|
+
[K in keyof WebComponentProperties<PictureEditor, typeof PictureEditor["properties"]>]: PictureEditor[K];
|
|
39
|
+
};
|
|
40
|
+
export declare type PictureRecorderProps = {
|
|
41
|
+
[K in keyof WebComponentProperties<PictureRecorder, typeof PictureRecorder["properties"]>]: PictureRecorder[K];
|
|
42
|
+
};
|
|
43
|
+
export declare type RetryResultProps = {
|
|
44
|
+
[K in keyof WebComponentProperties<RetryResult, typeof RetryResult["properties"]>]: RetryResult[K];
|
|
45
|
+
};
|
|
46
|
+
export declare type VideoRecordDirectionsProps = {
|
|
47
|
+
[K in keyof WebComponentProperties<VideoRecordDirections, typeof VideoRecordDirections["properties"]>]: VideoRecordDirections[K];
|
|
48
|
+
};
|
|
49
|
+
export declare type ReferenceCaptureProps = {
|
|
50
|
+
[K in keyof WebComponentProperties<ReferenceCapture, typeof ReferenceCapture["properties"]>]: ReferenceCapture[K];
|
|
51
|
+
};
|
|
52
|
+
export declare type SelfieCaptureProps = {
|
|
53
|
+
[K in keyof WebComponentProperties<SelfieCapture, typeof SelfieCapture["properties"]>]: SelfieCapture[K];
|
|
54
|
+
};
|
|
55
|
+
export declare type FullCaptureProps = {
|
|
56
|
+
[K in keyof WebComponentProperties<FullCapture, typeof FullCapture["properties"]>]: FullCapture[K];
|
|
57
|
+
};
|
|
58
|
+
export declare type VideoRecorderProps = {
|
|
59
|
+
[K in keyof WebComponentProperties<Recorder, typeof Recorder["properties"]>]: Recorder[K];
|
|
60
|
+
};
|
|
61
|
+
export declare type VideoRecordDirectionsDomMapping = {
|
|
62
|
+
[K in keyof VideoRecorderProps]: keyof typeof Recorder["properties"][K]["attribute"];
|
|
63
|
+
};
|
|
64
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare type Capture = {
|
|
2
|
+
media: Blob;
|
|
3
|
+
metadata: unknown;
|
|
4
|
+
};
|
|
5
|
+
export declare type RecorderReady = {
|
|
6
|
+
recorderElmt?: HTMLElement;
|
|
7
|
+
mediaType: string;
|
|
8
|
+
contentKind?: string;
|
|
9
|
+
acquisitionTime: number;
|
|
10
|
+
};
|
|
11
|
+
export declare type Selfie = Capture;
|
|
12
|
+
export declare type Reference = {
|
|
13
|
+
media: Blob;
|
|
14
|
+
};
|
|
15
|
+
export declare type Data = {
|
|
16
|
+
selfie: Blob;
|
|
17
|
+
reference: Blob;
|
|
18
|
+
metadata: unknown;
|
|
19
|
+
};
|
|
20
|
+
export declare type WebComponentDataEvent = CustomEvent<Data>;
|
|
21
|
+
export declare type WebComponentReferenceEvent = CustomEvent<Reference>;
|
|
22
|
+
export declare type WebComponentRecordEvent = CustomEvent<{
|
|
23
|
+
media: Blob;
|
|
24
|
+
metadata: unknown;
|
|
25
|
+
}>;
|
|
26
|
+
export declare type WebComponentSelfieEvent = CustomEvent<{
|
|
27
|
+
media: Blob;
|
|
28
|
+
metadata: unknown;
|
|
29
|
+
}>;
|
|
30
|
+
export declare type WebComponentRecorderReadyEvent = CustomEvent<RecorderReady>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@unissey-web/sdk-angular",
|
|
3
|
+
"description": "Unissey's Angular SDK",
|
|
4
|
+
"version": "3.7.2",
|
|
5
|
+
"peerDependencies": {
|
|
6
|
+
"@angular/common": "^12.1.1 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
|
|
7
|
+
"@angular/core": "^12.1.1 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"tslib": "^2.0.0",
|
|
11
|
+
"@unissey-web/web-components": "3.8.0-rc"
|
|
12
|
+
},
|
|
13
|
+
"main": "bundles/unissey-web-sdk-angular.umd.js",
|
|
14
|
+
"module": "fesm2015/unissey-web-sdk-angular.js",
|
|
15
|
+
"es2015": "fesm2015/unissey-web-sdk-angular.js",
|
|
16
|
+
"esm2015": "esm2015/unissey-web-sdk-angular.js",
|
|
17
|
+
"fesm2015": "fesm2015/unissey-web-sdk-angular.js",
|
|
18
|
+
"typings": "unissey-web-sdk-angular.d.ts",
|
|
19
|
+
"sideEffects": false
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from "./lib/components/button/button.component";
|
|
2
|
+
export * from "./lib/unissey-sdk.service";
|
|
3
|
+
export * from "./lib/components/unissey-sdk-widget.component";
|
|
4
|
+
export * from "./lib/components/reference-capture/reference-capture.component";
|
|
5
|
+
export * from "./lib/components/full-capture/full-capture.component";
|
|
6
|
+
export * from "./lib/components/selfie-capture/selfie.component";
|
|
7
|
+
export * from "./lib/components/image-capture-directions/image-capture-directions.component";
|
|
8
|
+
export * from "./lib/components/picture-editor/picture-editor.component";
|
|
9
|
+
export * from "./lib/components/picture-recorder/picture-recorder.component";
|
|
10
|
+
export * from "./lib/components/file-upload/file-upload.component";
|
|
11
|
+
export * from "./lib/components/retry-result/retry-result.component";
|
|
12
|
+
export * from "./lib/components/video-capture-directions/video-capture-directions.component";
|
|
13
|
+
export * from "./lib/components/video-recorder/video-recorder.component";
|
|
14
|
+
export * from "./lib/unissey-sdk.module";
|
|
15
|
+
export * from "./lib/utils/types";
|
|
16
|
+
export * from "./lib/utils/components";
|
|
17
|
+
export type { IadConfig, ActiveChallengeConfig, VideoLength, RecordingConfig, ColorRGBA, OverlayColors, OverlayConfig, CameraConfig, SessionConfig, FaceChecker, InstructionMessage, } from "@unissey-web/web-components";
|
|
18
|
+
export { IadMode, FacingMode, VideoResolutionPreset, VideoOrientation, OverlayDisplayMode, AcquisitionPreset, EN, FR, } from "@unissey-web/web-components";
|
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@unissey-web/sdk-angular",
|
|
3
|
+
"version": "3.7.2",
|
|
4
|
+
"description": "Unissey's Angular SDK",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"scripts": {
|
|
9
|
+
"ng": "ng",
|
|
10
|
+
"start": "ng serve",
|
|
11
|
+
"dev": "rimraf storybook-static && npm run docs:json && start-storybook -p 6009 --ci",
|
|
12
|
+
"build": "ng build",
|
|
13
|
+
"build:pkgs": "rimraf dist && npm run build -- --configuration=production",
|
|
14
|
+
"postbuild:pkgs": "npm run update-wc-version",
|
|
15
|
+
"prepublishOnly": "node ./lifecycles/prepublishOnly.js",
|
|
16
|
+
"build:pkg": "rimraf dist && npm run build",
|
|
17
|
+
"test": "ng test --no-watch --no-progress --browsers ChromeHeadless",
|
|
18
|
+
"lint": "ng lint",
|
|
19
|
+
"docs:html": "compodoc -p ./tsconfig.json -d docs",
|
|
20
|
+
"docs:json": "compodoc -p ./tsconfig.json -e json -d .",
|
|
21
|
+
"storybook": "rimraf storybook-static && npm run docs:json && start-storybook -p 6009 --ci",
|
|
22
|
+
"build:storybook": "npm run docs:json && build-storybook",
|
|
23
|
+
"update-wc-version": "node update-web-component.mjs"
|
|
24
|
+
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"directory": "dist/unissey-sdk"
|
|
27
|
+
},
|
|
28
|
+
"license": "ISC",
|
|
29
|
+
"private": false,
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@angular/animations": "~12.2.17",
|
|
32
|
+
"@angular/common": "~12.2.17",
|
|
33
|
+
"@angular/compiler": "~12.2.17",
|
|
34
|
+
"@angular/core": "~12.2.17",
|
|
35
|
+
"@angular/forms": "~12.2.17",
|
|
36
|
+
"@angular/platform-browser": "~12.2.17",
|
|
37
|
+
"@angular/platform-browser-dynamic": "~12.2.17",
|
|
38
|
+
"@angular/router": "~12.2.17",
|
|
39
|
+
"@storybook/addon-docs": "^6.5.15",
|
|
40
|
+
"@storybook/builder-webpack5": "^6.5.15",
|
|
41
|
+
"@storybook/manager-webpack5": "^6.5.15",
|
|
42
|
+
"rxjs": "~6.6.0",
|
|
43
|
+
"tslib": "^2.0.0",
|
|
44
|
+
"zone.js": "~0.11.3",
|
|
45
|
+
"@unissey-web/web-components": "file:packages/web-components"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@angular-devkit/build-angular": "~12.2.18",
|
|
49
|
+
"@angular/cli": "~12.2.18",
|
|
50
|
+
"@angular/compiler-cli": "~12.2.17",
|
|
51
|
+
"@babel/core": "^7.17.0",
|
|
52
|
+
"@compodoc/compodoc": "^1.1.18",
|
|
53
|
+
"@storybook/addon-actions": "^6.4.18",
|
|
54
|
+
"@storybook/addon-cssresources": "^6.2.9",
|
|
55
|
+
"@storybook/addon-essentials": "^6.4.18",
|
|
56
|
+
"@storybook/addon-links": "^6.4.18",
|
|
57
|
+
"@storybook/addon-postcss": "^2.0.0",
|
|
58
|
+
"@storybook/angular": "^6.4.18",
|
|
59
|
+
"@types/jasmine": "~3.6.0",
|
|
60
|
+
"@types/node": "^12.11.1",
|
|
61
|
+
"babel-loader": "^8.2.3",
|
|
62
|
+
"codelyzer": "^6.0.0",
|
|
63
|
+
"jasmine-core": "~3.8.0",
|
|
64
|
+
"jasmine-spec-reporter": "~5.0.0",
|
|
65
|
+
"karma": "~6.4.1",
|
|
66
|
+
"karma-chrome-launcher": "~3.1.0",
|
|
67
|
+
"karma-coverage": "~2.0.3",
|
|
68
|
+
"karma-jasmine": "~4.0.0",
|
|
69
|
+
"karma-jasmine-html-reporter": "^1.7.0",
|
|
70
|
+
"ng-packagr": "^12.2.7",
|
|
71
|
+
"protractor": "~7.0.0",
|
|
72
|
+
"ts-node": "~8.3.0",
|
|
73
|
+
"tslint": "~6.1.0",
|
|
74
|
+
"typescript": "~4.3.5"
|
|
75
|
+
}
|
|
76
|
+
}
|