@regulaforensics/idv-gui 0.1.113-nightly → 0.1.115-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.
Files changed (3) hide show
  1. package/dist/index.d.ts +55 -21
  2. package/dist/main.js +1753 -1745
  3. package/package.json +5 -1
package/dist/index.d.ts CHANGED
@@ -4,21 +4,30 @@ declare enum ContentMode {
4
4
  FILL = "FILL"
5
5
  }
6
6
 
7
- declare const GuiIdv: React.FC<IdvModuleProps<GuiProps, GuiModulesConfig>> & IdvModuleMethods;
7
+ declare const GuiIdv: React.FC<IdvModuleProps<GuiModuleProps, GuiModuleConfig>> & IdvModuleMethods;
8
8
  export default GuiIdv;
9
9
 
10
- export declare enum GuiIdvSteps {
11
- INFO = "INFO",
12
- INFO_DETAILS = "INFO_DETAILS",
13
- STATUS = "STATUS",
14
- PROGRESS = "PROGRESS"
15
- }
10
+ declare const GuiIdvSteps: {
11
+ readonly INFO: "INFO";
12
+ readonly INFO_DETAILS: "INFO_DETAILS";
13
+ readonly STATUS: "STATUS";
14
+ readonly PROGRESS: "PROGRESS";
15
+ };
16
+
17
+ declare type GuiModuleConfig = Record<string, any>;
16
18
 
17
- declare type GuiModulesConfig = Record<string, any>;
19
+ declare type GuiModuleProps = {
20
+ [K in keyof GuiModulePropsMap]: {
21
+ templateId?: K;
22
+ templateLayout?: GuiModulePropsMap[K];
23
+ };
24
+ }[keyof GuiModulePropsMap];
18
25
 
19
- export declare type GuiProps = {
20
- templateLayout?: TemplateLayout;
21
- templateId: string;
26
+ declare type GuiModulePropsMap = {
27
+ [GuiIdvSteps.INFO]: UIInfoScreenClientConfig;
28
+ [GuiIdvSteps.INFO_DETAILS]: UIInfoDetailsScreenClientConfig;
29
+ [GuiIdvSteps.PROGRESS]: UIProgressScreenClientConfig;
30
+ [GuiIdvSteps.STATUS]: UIStatusScreenClientConfig;
22
31
  };
23
32
 
24
33
  declare type IdvModuleMethods = {
@@ -39,16 +48,6 @@ declare type IdvModuleProps<T, R> = {
39
48
 
40
49
  export declare const MODULE_NAME = "GUI";
41
50
 
42
- export declare type TemplateLayout = {
43
- title?: UILabel;
44
- description?: UILabel;
45
- buttons?: UIButton[];
46
- footer?: UIInfoFooterView;
47
- details?: UIDetailsList;
48
- header?: UIInfoHeaderView;
49
- progressView?: UIProgressView;
50
- } & Record<string, any>;
51
-
52
51
  /** Common UI elements types */
53
52
  declare enum TextAlignment {
54
53
  LEFT = "LEFT",
@@ -88,6 +87,15 @@ declare type UIImage = {
88
87
  cornerRadius?: number;
89
88
  };
90
89
 
90
+ declare type UIInfoDetailsScreenClientConfig = {
91
+ header?: UIInfoHeaderView;
92
+ title?: UILabel;
93
+ details?: UIDetailsList;
94
+ buttons?: UIButton[];
95
+ footer?: UIInfoFooterView;
96
+ backgroundColor?: string;
97
+ };
98
+
91
99
  declare type UIInfoFooterView = {
92
100
  signature?: UIImage;
93
101
  };
@@ -96,6 +104,16 @@ declare type UIInfoHeaderView = {
96
104
  closeButton?: UIButton;
97
105
  };
98
106
 
107
+ declare type UIInfoScreenClientConfig = {
108
+ header?: UIInfoHeaderView;
109
+ title?: UILabel;
110
+ image?: UIImage;
111
+ description?: UILabel;
112
+ buttons?: UIButton[];
113
+ footer?: UIInfoFooterView;
114
+ backgroundColor?: string;
115
+ };
116
+
99
117
  declare type UILabel = {
100
118
  text?: string;
101
119
  fontName?: string;
@@ -106,9 +124,25 @@ declare type UILabel = {
106
124
  cornerRadius?: number;
107
125
  };
108
126
 
127
+ declare type UIProgressScreenClientConfig = {
128
+ header?: UIInfoHeaderView;
129
+ progressView?: UIProgressView;
130
+ footer?: UIInfoFooterView;
131
+ backgroundColor?: string;
132
+ };
133
+
109
134
  declare type UIProgressView = {
110
135
  title?: UILabel;
111
136
  indicatorColor: string;
112
137
  };
113
138
 
139
+ declare type UIStatusScreenClientConfig = {
140
+ header?: UIInfoHeaderView;
141
+ image?: UIImage;
142
+ title?: UILabel;
143
+ buttons?: UIButton[];
144
+ footer?: UIInfoFooterView;
145
+ backgroundColor?: string;
146
+ };
147
+
114
148
  export { }