@regulaforensics/idv-gui 0.1.217-nightly → 0.1.248-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,24 +1,25 @@
1
- import { JSX as JSX_2 } from 'react/jsx-runtime';
1
+ import { FunctionComponent } from 'preact';
2
+ import { JSX } from 'preact';
2
3
 
3
4
  declare function AgeIcon({ size }: {
4
5
  size?: number;
5
6
  color?: string;
6
- }): JSX_2.Element;
7
+ }): JSX.Element;
7
8
 
8
9
  declare function AndroidIcon({ size, color }: {
9
10
  size?: number;
10
11
  color?: string;
11
- }): JSX_2.Element;
12
+ }): JSX.Element;
12
13
 
13
14
  declare function ArrowIcon({ size }: {
14
15
  size?: number;
15
16
  color?: string;
16
- }): JSX_2.Element;
17
+ }): JSX.Element;
17
18
 
18
19
  declare function BackIcon({ size }: {
19
20
  size?: number;
20
21
  color?: string;
21
- }): JSX_2.Element;
22
+ }): JSX.Element;
22
23
 
23
24
  declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
24
25
  abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
@@ -28,7 +29,7 @@ declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unkno
28
29
  declare function BiometricIcon({ size }: {
29
30
  size?: number;
30
31
  color?: string;
31
- }): JSX_2.Element;
32
+ }): JSX.Element;
32
33
 
33
34
  declare const ContentMode: {
34
35
  readonly ASPECT_FILL: "ASPECT_FILL";
@@ -59,10 +60,9 @@ declare type DropdownControl = {
59
60
  declare function ErrorIcon({ size, color }: {
60
61
  size?: number;
61
62
  color?: string;
62
- }): JSX_2.Element;
63
+ }): JSX.Element;
63
64
 
64
- declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig> {
65
- private _root;
65
+ export declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig> {
66
66
  private _mounted;
67
67
  props: IdvModuleProps<GuiModuleProps, GuiModuleConfig> | null;
68
68
  constructor();
@@ -72,15 +72,13 @@ declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig> {
72
72
  private render;
73
73
  disconnectedCallback(): void;
74
74
  static isReady(): boolean;
75
- static getSupportedTemplates: () => ("INFO" | "INFO_DETAILS" | "STATUS" | "PROGRESS" | "QUESTIONS" | "CAMERA" | "GALLERY")[];
76
- static initialize(modulesConfig: Record<string, unknown>): void;
75
+ static getSupportedTemplates: () => ("INFO" | "INFO_DETAILS" | "STATUS" | "PROGRESS" | "QUESTIONS" | "CAMERA" | "GALLERY" | "GEOLOCATION")[];
76
+ static initialize(_modulesConfig: Record<string, unknown>): void;
77
77
  static deinitialize(): void;
78
78
  static getIdentifier: () => string;
79
79
  }
80
- export { GuiIdv }
81
- export default GuiIdv;
82
80
 
83
- export declare const GuiIdvReactComponent: React.FC<IdvModuleProps<GuiModuleProps | GuiModulePropsUnknown, GuiModuleConfig>>;
81
+ export declare const GuiIdvReactComponent: FunctionComponent<IdvModuleProps<GuiModuleProps | GuiModulePropsUnknown, GuiModuleConfig>>;
84
82
 
85
83
  export declare const GuiIdvSteps: {
86
84
  readonly INFO: "INFO";
@@ -90,13 +88,12 @@ export declare const GuiIdvSteps: {
90
88
  readonly QUESTIONS: "QUESTIONS";
91
89
  readonly CAMERA: "CAMERA";
92
90
  readonly GALLERY: "GALLERY";
91
+ readonly GEOLOCATION: "GEOLOCATION";
93
92
  };
94
93
 
95
94
  export declare type GuiIdvSteps = (typeof GuiIdvSteps)[keyof typeof GuiIdvSteps];
96
95
 
97
- export declare const GuiIdvStyleInjectionWrapper: React.FC<{
98
- children: React.ReactNode;
99
- }>;
96
+ export declare const GuiIdvStyleInjectionWrapper: FunctionComponent;
100
97
 
101
98
  declare type GuiModuleConfig = Record<string, any>;
102
99
 
@@ -127,6 +124,7 @@ declare type GuiModulePropsMap = {
127
124
  [GuiIdvSteps.QUESTIONS]: UIQuestionsScreenClientConfig;
128
125
  [GuiIdvSteps.CAMERA]: UICameraScreenClientConfig;
129
126
  [GuiIdvSteps.GALLERY]: UIGalleryScreenClientConfig;
127
+ [GuiIdvSteps.GEOLOCATION]: UIGeolocationScreenClientConfig;
130
128
  };
131
129
 
132
130
  export declare type GuiModulePropsUnknown = {
@@ -157,11 +155,6 @@ export declare const IDV_UI_ICONS: {
157
155
  readonly POWERED_BY: "signature";
158
156
  readonly SUCCESS: "success";
159
157
  readonly DEFAULT: "empty";
160
- readonly ONBOARDING_SCAN_ID: "onboardingScanYourId";
161
- readonly ONBOARDING_READ_RFID: "onboardingReadRfidChip";
162
- readonly ONBOARDING_TAKE_SELFIE: "onboardgTakeASelfie";
163
- readonly PREPARE_DOCUMENT_STEP: "prepareDocumentStep";
164
- readonly PREPARE_LIVENESS_STEP: "prepareLivenessStep";
165
158
  readonly CIRCLE_SELECTED: "radio_selected";
166
159
  readonly CIRCLE_NORMAL: "radio_normal";
167
160
  readonly SQUARE_SELECTED: "square_selected";
@@ -179,7 +172,7 @@ export declare const idvIconComponents: {
179
172
  warning_icon: typeof WarningIcon;
180
173
  spinner: ({ indicatorColor }: {
181
174
  indicatorColor?: string;
182
- }) => JSX_2.Element;
175
+ }) => JSX.Element;
183
176
  failure: typeof ErrorIcon;
184
177
  age: typeof AgeIcon;
185
178
  android: typeof AndroidIcon;
@@ -187,7 +180,7 @@ export declare const idvIconComponents: {
187
180
  apple: ({ size, color }: {
188
181
  size?: number;
189
182
  color?: string;
190
- }) => JSX_2.Element;
183
+ }) => JSX.Element;
191
184
  back: typeof BackIcon;
192
185
  biometricIcon: typeof BiometricIcon;
193
186
  info: typeof InfoIcon;
@@ -196,44 +189,39 @@ export declare const idvIconComponents: {
196
189
  cross: ({ size, color }: {
197
190
  size?: number;
198
191
  color?: string;
199
- }) => JSX_2.Element;
192
+ }) => JSX.Element;
200
193
  regulaLogo: ({ size, color }: {
201
194
  size?: number;
202
195
  color?: string;
203
- }) => JSX_2.Element;
204
- empty: () => JSX_2.Element;
196
+ }) => JSX.Element;
197
+ empty: () => JSX.Element;
205
198
  signature: typeof PoweredByRegula;
206
199
  success: ({ size, color }: {
207
200
  size?: number;
208
201
  color?: string;
209
- }) => JSX_2.Element;
210
- onboardingScanYourId: () => JSX_2.Element;
211
- onboardingReadRfidChip: () => JSX_2.Element;
212
- onboardgTakeASelfie: () => JSX_2.Element;
213
- prepareDocumentStep: () => JSX_2.Element;
214
- prepareLivenessStep: () => JSX_2.Element;
215
- radio_selected: () => JSX_2.Element;
216
- radio_normal: () => JSX_2.Element;
217
- square_selected: () => JSX_2.Element;
218
- square_normal: () => JSX_2.Element;
202
+ }) => JSX.Element;
203
+ radio_selected: () => JSX.Element;
204
+ radio_normal: () => JSX.Element;
205
+ square_selected: () => JSX.Element;
206
+ square_normal: () => JSX.Element;
219
207
  selected: ({ color }: {
220
208
  color?: string | undefined;
221
- }) => JSX_2.Element;
209
+ }) => JSX.Element;
222
210
  chevronDown: ({ color }: {
223
211
  color?: string | undefined;
224
- }) => JSX_2.Element;
212
+ }) => JSX.Element;
225
213
  close_icon: ({ size, color }: {
226
214
  size?: number;
227
215
  color?: string;
228
- }) => JSX_2.Element;
216
+ }) => JSX.Element;
229
217
  gallery: ({ size, color }: {
230
218
  size?: number;
231
219
  color?: string;
232
- }) => JSX_2.Element;
220
+ }) => JSX.Element;
233
221
  camera: ({ size, color }: {
234
222
  size?: number;
235
223
  color?: string;
236
- }) => JSX_2.Element;
224
+ }) => JSX.Element;
237
225
  };
238
226
 
239
227
  declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
@@ -247,7 +235,7 @@ declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
247
235
  declare function InfoIcon({ size, color }: {
248
236
  size?: number;
249
237
  color?: string;
250
- }): JSX_2.Element;
238
+ }): JSX.Element;
251
239
 
252
240
  declare type JsonArray = JsonValue[];
253
241
 
@@ -257,7 +245,7 @@ declare type JsonObject = {
257
245
 
258
246
  declare type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
259
247
 
260
- declare function PoweredByRegula(): JSX_2.Element;
248
+ declare function PoweredByRegula(): JSX.Element;
261
249
 
262
250
  declare type QuestionDataSource = {
263
251
  id: string | number;
@@ -344,7 +332,7 @@ declare type TextAlignment = (typeof TextAlignment)[keyof typeof TextAlignment];
344
332
  declare function ToMobileIcon({ size }: {
345
333
  size?: number;
346
334
  color?: string;
347
- }): JSX_2.Element;
335
+ }): JSX.Element;
348
336
 
349
337
  declare type UIButton = {
350
338
  type?: 'RESPONSE_BODY' | 'FORM';
@@ -416,6 +404,24 @@ declare type UIGalleryScreenClientConfig = {
416
404
  selectionLimit?: number;
417
405
  };
418
406
 
407
+ declare type UIGeolocationScreenClientConfig = {
408
+ header?: UIInfoHeaderView;
409
+ title?: UILabel;
410
+ image?: UIImage;
411
+ description?: UILabel;
412
+ buttons?: UIButton[];
413
+ footer?: UIInfoFooterView;
414
+ backgroundColor?: string;
415
+ popup: {
416
+ image?: UIImage;
417
+ title?: UILabel;
418
+ message?: UILabel;
419
+ backgroundColor?: string;
420
+ closeButton: UIButton;
421
+ cornerRadius: number;
422
+ };
423
+ };
424
+
419
425
  declare type UIImage = {
420
426
  imageURL?: string;
421
427
  base64?: string;
@@ -555,7 +561,7 @@ declare type UITextQuestion = QuestionItem & {
555
561
  declare function UnderageIcon({ size }: {
556
562
  size?: number;
557
563
  color?: string;
558
- }): JSX_2.Element;
564
+ }): JSX.Element;
559
565
 
560
566
  declare type Validator = {
561
567
  type: typeof VALIDATOR_TYPE.NOT_EMPTY;
@@ -576,6 +582,6 @@ declare type VALIDATOR_TYPE = (typeof VALIDATOR_TYPE)[keyof typeof VALIDATOR_TYP
576
582
  declare function WarningIcon({ size, color }: {
577
583
  size?: number;
578
584
  color?: string;
579
- }): JSX_2.Element;
585
+ }): JSX.Element;
580
586
 
581
587
  export { }