@regulaforensics/idv-gui 3.2.289-nightly → 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,39 +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
- getLocationTimeout?: number;
101
- };
102
- }[keyof GuiModulePropsMap];
103
-
104
- declare type GuiModulePropsMap = {
105
- [GuiIdvSteps.INFO]: UIInfoScreenClientConfig;
106
- [GuiIdvSteps.INFO_DETAILS]: UIInfoDetailsScreenClientConfig;
107
- [GuiIdvSteps.PROGRESS]: UIProgressScreenClientConfig;
108
- [GuiIdvSteps.STATUS]: UIStatusScreenClientConfig;
109
- [GuiIdvSteps.QUESTIONS]: UIQuestionsScreenClientConfig;
110
- [GuiIdvSteps.CAMERA]: UICameraScreenClientConfig;
111
- [GuiIdvSteps.GALLERY]: UIGalleryScreenClientConfig;
112
- [GuiIdvSteps.GEOLOCATION]: UIGeolocationScreenClientConfig;
113
- };
114
-
115
- export declare type GuiModulePropsUnknown = {
116
- templateId: string;
117
- templateLayout?: Record<string, any>;
118
- dataSource?: Record<string, unknown> | null;
119
- sessionId?: string;
120
- 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;
121
106
  backgroundColor?: string;
122
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;
123
116
  getLocationTimeout?: number;
117
+ } | {
118
+ templateId: typeof GuiIdvSteps.QUESTIONS;
119
+ templateLayout: UIQuestionsScreenClientConfig;
120
+ dataSource?: QuestionsDataSource | null;
121
+ properties?: SessionPropertiesItem[];
124
122
  };
125
123
 
126
124
  export declare const IDV_UI_ICONS: {