@regulaforensics/idv-gui 4.0.518-nightly → 4.0.656-rc

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/index.d.ts CHANGED
@@ -5,6 +5,13 @@ import { IdvModuleProps } from '../../interfaces-idv/src';
5
5
  import { ImageBase } from '../../interfaces-idv/src';
6
6
  import { JSX } from 'preact';
7
7
 
8
+ declare const CLIENT_VALIDATOR_TYPE: {
9
+ readonly NOT_EMPTY: "notEmpty";
10
+ readonly REGEX: "regex";
11
+ };
12
+
13
+ declare type CLIENT_VALIDATOR_TYPE = (typeof CLIENT_VALIDATOR_TYPE)[keyof typeof CLIENT_VALIDATOR_TYPE];
14
+
8
15
  declare const ContentMode: {
9
16
  readonly ASPECT_FILL: "ASPECT_FILL";
10
17
  readonly ASPECT_FIT: "ASPECT_FIT";
@@ -56,6 +63,7 @@ export declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig>
56
63
  devSettings?: GuiModuleDevSettings;
57
64
  }): void;
58
65
  connectedCallback(): void;
66
+ static cancel(): void;
59
67
  private render;
60
68
  disconnectedCallback(): void;
61
69
  static isReady(): boolean;
@@ -147,6 +155,7 @@ export declare type GuiModuleProps = {
147
155
  templateId: typeof GuiIdvSteps.GEOLOCATION;
148
156
  templateLayout: UIGeolocationScreenClientConfig;
149
157
  getLocationTimeout?: number;
158
+ locationAccuracy?: LocationAccuracy;
150
159
  } | {
151
160
  templateId: typeof GuiIdvSteps.QUESTIONS;
152
161
  templateLayout: UIQuestionsScreenClientConfig;
@@ -218,9 +227,17 @@ declare type JsonObject = {
218
227
 
219
228
  declare type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
220
229
 
230
+ declare enum LocationAccuracy {
231
+ HIGH = "HIGH",
232
+ BALANCED = "BALANCED",
233
+ LOW = "LOW",
234
+ PASSIVE = "PASSIVE"
235
+ }
236
+
221
237
  declare type LocationSettings = {
222
238
  askEveryTime: boolean;
223
239
  getLocationTimeout: number;
240
+ locationAccuracy: LocationAccuracy;
224
241
  };
225
242
 
226
243
  declare type PopupActionButton = {
@@ -284,7 +301,7 @@ declare type QuestionsDataSource = {
284
301
  questions: QuestionDataSource[];
285
302
  };
286
303
 
287
- declare type QuestionsItemTypes = Array<UITextQuestion | UISelectorQuestion | UIMultiSelectorQuestion | UIMultiSelectorButtonsQuestion | UIMultiSelectorOptionsQuestion>;
304
+ declare type QuestionsItem = UITextQuestion | UISelectorQuestion | UIMultiSelectorQuestion | UIMultiSelectorButtonsQuestion | UIMultiSelectorOptionsQuestion;
288
305
 
289
306
  declare const RootElementTypes: {
290
307
  readonly SCAFFOLD: "scaffold";
@@ -329,10 +346,11 @@ declare type TextAlignment = (typeof TextAlignment)[keyof typeof TextAlignment];
329
346
 
330
347
  declare type UIButton = {
331
348
  actionId?: string;
332
- type?: 'RESPONSE_BODY' | 'FORM';
349
+ type?: 'RESPONSE_BODY' | 'FORM' | 'URL';
333
350
  title?: UILabel;
334
351
  image?: UIImage;
335
352
  responseBody?: JsonObject;
353
+ url?: string;
336
354
  backgroundColor?: string;
337
355
  cornerRadius?: number;
338
356
  highlightColor?: string;
@@ -393,6 +411,7 @@ declare type UIDeviceTransferScreenClientConfig = {
393
411
  backgroundImage?: UIImage;
394
412
  qr?: {
395
413
  color?: string;
414
+ backgroundColor?: string;
396
415
  };
397
416
  };
398
417
 
@@ -519,10 +538,11 @@ declare type UIImage = ImageBase & {
519
538
 
520
539
  declare type UIImageButton = {
521
540
  actionId?: string;
522
- type?: 'DATA' | 'FORM';
541
+ type?: 'DATA' | 'FORM' | 'URL';
523
542
  paddings?: UIPaddings;
524
543
  image: UIImage;
525
544
  responseBody?: JsonObject;
545
+ url?: string;
526
546
  backgroundColor?: string;
527
547
  highlightColor?: string;
528
548
  hoverColor?: string;
@@ -630,7 +650,7 @@ declare type UIQuestionsScreenClientConfig = {
630
650
  title?: UILabel;
631
651
  buttons?: UIButton[];
632
652
  questions: {
633
- itemTypes: QuestionsItemTypes;
653
+ itemTypes: QuestionsItem[];
634
654
  backgroundColor?: string;
635
655
  };
636
656
  backgroundColor?: string;
@@ -766,21 +786,18 @@ declare type UploadFileToTemp = (file: File, onProgress: (sentBytes: number, tot
766
786
  }>;
767
787
 
768
788
  declare type Validator = {
769
- type: typeof VALIDATOR_TYPE.NOT_EMPTY;
789
+ type: typeof CLIENT_VALIDATOR_TYPE.NOT_EMPTY;
770
790
  message: string;
771
791
  } | {
772
- type: typeof VALIDATOR_TYPE.REGEX;
792
+ type: typeof CLIENT_VALIDATOR_TYPE.REGEX;
773
793
  message: string;
774
794
  regex: string;
795
+ } | {
796
+ type: string;
797
+ message: string;
798
+ passed?: boolean | null;
775
799
  };
776
800
 
777
- declare const VALIDATOR_TYPE: {
778
- readonly NOT_EMPTY: "notEmpty";
779
- readonly REGEX: "regex";
780
- };
781
-
782
- declare type VALIDATOR_TYPE = (typeof VALIDATOR_TYPE)[keyof typeof VALIDATOR_TYPE];
783
-
784
801
  declare type WithWeightProp<T> = T & {
785
802
  weight?: number;
786
803
  };