@regulaforensics/idv-gui 3.2.290 → 3.2.292-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
@@ -1,4 +1,5 @@
1
1
  import { FunctionComponent } from 'preact';
2
+ import { JSX } from 'preact';
2
3
 
3
4
  declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
4
5
  abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
@@ -52,9 +53,9 @@ export declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig>
52
53
  static getIdentifier: () => string;
53
54
  }
54
55
 
55
- export declare const GuiIdvReactComponent: FunctionComponent<IdvModuleProps<GuiModuleProps | GuiModulePropsUnknown, GuiModuleConfig> & {
56
+ export declare const GuiIdvReactComponent: ({ isProcessing: setIsProcessingCallback, moduleProps, perform, devSettings, }: IdvModuleProps<GuiModuleProps, GuiModuleConfig> & {
56
57
  devSettings?: GuiModuleDevSettings;
57
- }>;
58
+ }) => JSX.Element;
58
59
 
59
60
  export declare const GuiIdvSteps: {
60
61
  readonly INFO: "INFO";
@@ -88,37 +89,36 @@ export declare const GuiModuleError: {
88
89
  export declare type GuiModuleError = (typeof GuiModuleError)[keyof typeof GuiModuleError];
89
90
 
90
91
  export declare type GuiModuleProps = {
91
- [K in keyof GuiModulePropsMap]: {
92
- templateId: K;
93
- templateLayout: GuiModulePropsMap[K];
94
- dataSource?: QuestionsDataSource | null;
95
- properties?: SessionPropertiesItem[];
96
- sessionId?: string;
97
- serviceToken?: string;
98
- backgroundColor?: string;
99
- selectionLimit?: number;
100
- };
101
- }[keyof GuiModulePropsMap];
102
-
103
- declare type GuiModulePropsMap = {
104
- [GuiIdvSteps.INFO]: UIInfoScreenClientConfig;
105
- [GuiIdvSteps.INFO_DETAILS]: UIInfoDetailsScreenClientConfig;
106
- [GuiIdvSteps.PROGRESS]: UIProgressScreenClientConfig;
107
- [GuiIdvSteps.STATUS]: UIStatusScreenClientConfig;
108
- [GuiIdvSteps.QUESTIONS]: UIQuestionsScreenClientConfig;
109
- [GuiIdvSteps.CAMERA]: UICameraScreenClientConfig;
110
- [GuiIdvSteps.GALLERY]: UIGalleryScreenClientConfig;
111
- [GuiIdvSteps.GEOLOCATION]: UIGeolocationScreenClientConfig;
112
- };
113
-
114
- export declare type GuiModulePropsUnknown = {
115
- templateId: string;
116
- templateLayout?: Record<string, any>;
117
- dataSource?: Record<string, unknown> | null;
118
- sessionId?: string;
119
- serviceToken?: string;
92
+ templateId: typeof GuiIdvSteps.INFO;
93
+ templateLayout: UIInfoScreenClientConfig;
94
+ } | {
95
+ templateId: typeof GuiIdvSteps.INFO_DETAILS;
96
+ templateLayout: UIInfoDetailsScreenClientConfig;
97
+ } | {
98
+ templateId: typeof GuiIdvSteps.STATUS;
99
+ templateLayout: UIStatusScreenClientConfig;
100
+ } | {
101
+ templateId: typeof GuiIdvSteps.PROGRESS;
102
+ templateLayout: UIProgressScreenClientConfig;
103
+ } | {
104
+ templateId: typeof GuiIdvSteps.GALLERY;
105
+ templateLayout: UIGalleryScreenClientConfig;
120
106
  backgroundColor?: string;
121
107
  selectionLimit?: number;
108
+ } | {
109
+ templateId: typeof GuiIdvSteps.CAMERA;
110
+ templateLayout: UICameraScreenClientConfig;
111
+ backgroundColor?: string;
112
+ selectionLimit?: number;
113
+ } | {
114
+ templateId: typeof GuiIdvSteps.GEOLOCATION;
115
+ templateLayout: UIGeolocationScreenClientConfig;
116
+ getLocationTimeout?: number;
117
+ } | {
118
+ templateId: typeof GuiIdvSteps.QUESTIONS;
119
+ templateLayout: UIQuestionsScreenClientConfig;
120
+ dataSource?: QuestionsDataSource | null;
121
+ properties?: SessionPropertiesItem[];
122
122
  };
123
123
 
124
124
  export declare const IDV_UI_ICONS: {
@@ -171,9 +171,9 @@ declare type JsonObject = {
171
171
 
172
172
  declare type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
173
173
 
174
- declare type PerformType = (typeof performType)[keyof typeof performType] | undefined;
174
+ declare type PerformType = (typeof PerformTypes)[keyof typeof PerformTypes] | undefined;
175
175
 
176
- declare const performType: {
176
+ declare const PerformTypes: {
177
177
  readonly FORM: "form";
178
178
  readonly DATA: "data";
179
179
  };
@@ -358,6 +358,7 @@ declare type UIGeolocationScreenClientConfig = {
358
358
  backgroundColor?: string;
359
359
  popups: [UIGeolocationPopupSystemRestrictedOnly];
360
360
  askEveryTime?: boolean;
361
+ getLocationTimeout?: number;
361
362
  };
362
363
 
363
364
  declare type UIImage = {