@idscan/idvc2 2.3.1 → 2.3.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/idvc.js +1 -1
- package/dist/js/environment/langs.ts +22 -2
- package/dist/networks/asyncLoader-844f-chunk.js +1 -0
- package/dist/networks/cdnLoader-8531-chunk.js +1 -0
- package/package.json +1 -1
- package/dist/networks/asyncLoader-87ca-chunk.js +0 -1
- package/dist/networks/cdnLoader-c56e-chunk.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CameraNotSupportedReason } from '../types/modules/camera.enum';
|
|
2
2
|
|
|
3
3
|
type LabelGroup = 'errorCodes' | 'hintTexts' | 'keyErrors' | 'typeError'
|
|
4
|
-
| 'camera' | 'general' | 'uploaderDescription' | 'documentsTypes';
|
|
4
|
+
| 'camera' | 'general' | 'uploaderDescription' | 'documentsTypes' | 'spinnerText';
|
|
5
5
|
|
|
6
6
|
type AllTypes = IErrorCodes | IHintTexts | KeyError | ITypeError
|
|
7
|
-
| ICameraLabels | IGeneral | IDocumentsTypes | IUploaderDescription;
|
|
7
|
+
| ICameraLabels | IGeneral | IDocumentsTypes | IUploaderDescription | ISpinnerText;
|
|
8
8
|
|
|
9
9
|
type Label = Record<LabelGroup, AllTypes>;
|
|
10
10
|
type AllLabels = Record<SupportedLanguage, Label>;
|
|
@@ -17,6 +17,7 @@ type GetTranslation = {
|
|
|
17
17
|
(groupName: 'typeError'): ITypeError,
|
|
18
18
|
(groupName: 'camera'): ICameraLabels,
|
|
19
19
|
(groupName: 'general'): IGeneral,
|
|
20
|
+
(groupName: 'spinnerText'): ISpinnerText,
|
|
20
21
|
(groupName: LabelGroup): AllTypes,
|
|
21
22
|
};
|
|
22
23
|
export type ErrorCodeNames =
|
|
@@ -103,6 +104,13 @@ interface IUploaderDescription {
|
|
|
103
104
|
textFacePosition: string,
|
|
104
105
|
}
|
|
105
106
|
|
|
107
|
+
interface ISpinnerText {
|
|
108
|
+
warmup: {
|
|
109
|
+
top: string,
|
|
110
|
+
bottom: string
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
106
114
|
export type CameraLabels = keyof ICameraLabels;
|
|
107
115
|
|
|
108
116
|
export const supportedLanguages = ['en', 'es'] as const;
|
|
@@ -190,6 +198,12 @@ const labels: AllLabels = {
|
|
|
190
198
|
GreenCard: 'Tarjeta Verde o Autorización de Empleo',
|
|
191
199
|
InternationalId: 'Identificación Internacional',
|
|
192
200
|
},
|
|
201
|
+
spinnerText: {
|
|
202
|
+
warmup: {
|
|
203
|
+
top: 'La red neuronal se está calentando',
|
|
204
|
+
bottom: 'La captura de documentos estará lista para su uso en breve',
|
|
205
|
+
},
|
|
206
|
+
},
|
|
193
207
|
},
|
|
194
208
|
en: {
|
|
195
209
|
errorCodes: {
|
|
@@ -273,6 +287,12 @@ const labels: AllLabels = {
|
|
|
273
287
|
textPass: 'Please make sure your ID fills up the entire camera screen <br> with little to no background, and the full MRZ code is included.',
|
|
274
288
|
textFacePosition: 'Please position your face to take up <br> the full camera screen with little to no background.',
|
|
275
289
|
},
|
|
290
|
+
spinnerText: {
|
|
291
|
+
warmup: {
|
|
292
|
+
top: 'Neural network is warming up',
|
|
293
|
+
bottom: 'Document capture will be ready to use shortly',
|
|
294
|
+
},
|
|
295
|
+
},
|
|
276
296
|
},
|
|
277
297
|
};
|
|
278
298
|
|