@regulaforensics/idv-gui 2.5.176-nightly → 2.5.178-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,8 +1,3 @@
1
- declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
2
- abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
3
- abstract setProps(config: IdvModuleProps<TModuleProps, TModulesConfig>): void;
4
- }
5
-
6
1
  declare const ContentMode: {
7
2
  readonly ASPECT_FILL: "ASPECT_FILL";
8
3
  readonly ASPECT_FIT: "ASPECT_FIT";
@@ -29,27 +24,9 @@ declare type DropdownControl = {
29
24
  expandButton?: UIImage;
30
25
  };
31
26
 
32
- declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig> {
33
- private _root;
34
- private _mounted;
35
- props: IdvModuleProps<GuiModuleProps, GuiModuleConfig> | null;
36
- constructor();
37
- static displayName: string;
38
- setProps(props: IdvModuleProps<GuiModuleProps, GuiModuleConfig>): void;
39
- connectedCallback(): void;
40
- private render;
41
- disconnectedCallback(): void;
42
- static isReady(): boolean;
43
- static getSupportedTemplates: () => ("INFO" | "INFO_DETAILS" | "STATUS" | "PROGRESS" | "QUESTIONS")[];
44
- static initialize(modulesConfig: Record<string, unknown>): void;
45
- static deinitialize(): void;
46
- static getIdentifier: () => string;
47
- }
48
- export { GuiIdv }
27
+ declare const GuiIdv: React.FC<IdvModuleProps<GuiModuleProps | GuiModulePropsUnknown, GuiModuleConfig>> & IdvModuleMethods;
49
28
  export default GuiIdv;
50
29
 
51
- export declare const GuiIdvReactComponent: React.FC<IdvModuleProps<GuiModuleProps | GuiModulePropsUnknown, GuiModuleConfig>>;
52
-
53
30
  export declare const GuiIdvSteps: {
54
31
  readonly INFO: "INFO";
55
32
  readonly INFO_DETAILS: "INFO_DETAILS";
@@ -60,10 +37,6 @@ export declare const GuiIdvSteps: {
60
37
 
61
38
  export declare type GuiIdvSteps = (typeof GuiIdvSteps)[keyof typeof GuiIdvSteps];
62
39
 
63
- export declare const GuiIdvStyleInjectionWrapper: React.FC<{
64
- children: React.ReactNode;
65
- }>;
66
-
67
40
  declare type GuiModuleConfig = Record<string, any>;
68
41
 
69
42
  export declare const GuiModuleError: {
@@ -133,10 +106,18 @@ export declare const IDV_UI_ICONS: {
133
106
 
134
107
  export declare type IDV_UI_ICONS = (typeof IDV_UI_ICONS)[keyof typeof IDV_UI_ICONS];
135
108
 
136
- declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
109
+ declare type IdvModuleMethods = {
110
+ isReady: () => boolean;
111
+ getSupportedTemplates: () => string[];
112
+ getIdentifier: () => string;
113
+ initialize: (modulesConfig: Record<string, any>) => void;
114
+ deinitialize?: () => void;
115
+ };
116
+
117
+ declare type IdvModuleProps<T, R> = {
137
118
  isProcessing?: (isProcessing: boolean) => void;
138
- moduleProps: TModuleProps;
139
- modulesConfig?: TModulesConfig;
119
+ moduleProps: T;
120
+ modulesConfig?: R;
140
121
  perform: (data: any) => void;
141
122
  idvEventListener: (module: string, data: any) => void;
142
123
  };