@regulaforensics/idv-gui 3.10.568-nightly → 3.10.569-nightly

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";
@@ -293,7 +300,7 @@ declare type QuestionsDataSource = {
293
300
  questions: QuestionDataSource[];
294
301
  };
295
302
 
296
- declare type QuestionsItemTypes = Array<UITextQuestion | UISelectorQuestion | UIMultiSelectorQuestion | UIMultiSelectorButtonsQuestion | UIMultiSelectorOptionsQuestion>;
303
+ declare type QuestionsItem = UITextQuestion | UISelectorQuestion | UIMultiSelectorQuestion | UIMultiSelectorButtonsQuestion | UIMultiSelectorOptionsQuestion;
297
304
 
298
305
  declare const RootElementTypes: {
299
306
  readonly SCAFFOLD: "scaffold";
@@ -639,7 +646,7 @@ declare type UIQuestionsScreenClientConfig = {
639
646
  title?: UILabel;
640
647
  buttons?: UIButton[];
641
648
  questions: {
642
- itemTypes: QuestionsItemTypes;
649
+ itemTypes: QuestionsItem[];
643
650
  backgroundColor?: string;
644
651
  };
645
652
  backgroundColor?: string;
@@ -775,21 +782,18 @@ declare type UploadFileToTemp = (file: File, onProgress: (sentBytes: number, tot
775
782
  }>;
776
783
 
777
784
  declare type Validator = {
778
- type: typeof VALIDATOR_TYPE.NOT_EMPTY;
785
+ type: typeof CLIENT_VALIDATOR_TYPE.NOT_EMPTY;
779
786
  message: string;
780
787
  } | {
781
- type: typeof VALIDATOR_TYPE.REGEX;
788
+ type: typeof CLIENT_VALIDATOR_TYPE.REGEX;
782
789
  message: string;
783
790
  regex: string;
791
+ } | {
792
+ type: string;
793
+ message: string;
794
+ passed?: boolean | null;
784
795
  };
785
796
 
786
- declare const VALIDATOR_TYPE: {
787
- readonly NOT_EMPTY: "notEmpty";
788
- readonly REGEX: "regex";
789
- };
790
-
791
- declare type VALIDATOR_TYPE = (typeof VALIDATOR_TYPE)[keyof typeof VALIDATOR_TYPE];
792
-
793
797
  declare type WithWeightProp<T> = T & {
794
798
  weight?: number;
795
799
  };