@zealicsolutions/web-ui 1.0.96 → 1.0.97-beta.1

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.
@@ -6,7 +6,7 @@ interface VariableFormatterProps {
6
6
  stateObject: StateConfigType;
7
7
  variable: VariablePayload;
8
8
  leaf: {
9
- text: string;
9
+ text: string | number;
10
10
  };
11
11
  }
12
12
  export declare const VariableFormatter: React.FC<VariableFormatterProps>;
@@ -0,0 +1,67 @@
1
+ import { StateConfigType } from 'containers/types/types';
2
+ import { VariablePayload } from '../types';
3
+ /**
4
+ * Debugging utility to help troubleshoot variable state issues
5
+ * @param variable The variable payload from the Rich Text Editor
6
+ * @param stateObject The current state object (localStateObject or stateConfig)
7
+ * @param logToConsole Whether to log debug information to console (default: true)
8
+ * @returns Debug information object
9
+ */
10
+ export declare const debugVariableState: (variable: VariablePayload, stateObject: StateConfigType, logToConsole?: boolean) => {
11
+ variable: {
12
+ id: string;
13
+ text: string;
14
+ dataModelFieldId: string | undefined;
15
+ pmiObjectName: string | undefined;
16
+ dataFieldName: string | undefined;
17
+ dataType: string | undefined;
18
+ format: import("../types").DataDisplayFormatType | undefined;
19
+ defaultValue: string | number | boolean | null | undefined;
20
+ };
21
+ stateObject: {
22
+ exists: boolean;
23
+ keys: string[];
24
+ totalKeys: number;
25
+ };
26
+ lookup: {
27
+ keyExists: boolean;
28
+ rawValue: string | boolean | import("containers/types/types").FormDataStateConfig | import("containers/types/types").ActionEventType | import("containers/types/types").BaseStateValue | null | undefined;
29
+ valueType: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
30
+ };
31
+ recommendations: string[];
32
+ };
33
+ /**
34
+ * Enhanced version of debugVariableState that also shows potential matches
35
+ * @param variable The variable payload
36
+ * @param stateObject The current state object
37
+ * @param logToConsole Whether to log to console
38
+ * @returns Debug info with potential matches
39
+ */
40
+ export declare const debugVariableStateDetailed: (variable: VariablePayload, stateObject: StateConfigType, logToConsole?: boolean) => {
41
+ potentialMatches: {
42
+ key: string;
43
+ value: unknown;
44
+ reason: string;
45
+ }[];
46
+ variable: {
47
+ id: string;
48
+ text: string;
49
+ dataModelFieldId: string | undefined;
50
+ pmiObjectName: string | undefined;
51
+ dataFieldName: string | undefined;
52
+ dataType: string | undefined;
53
+ format: import("../types").DataDisplayFormatType | undefined;
54
+ defaultValue: string | number | boolean | null | undefined;
55
+ };
56
+ stateObject: {
57
+ exists: boolean;
58
+ keys: string[];
59
+ totalKeys: number;
60
+ };
61
+ lookup: {
62
+ keyExists: boolean;
63
+ rawValue: string | boolean | import("containers/types/types").FormDataStateConfig | import("containers/types/types").ActionEventType | import("containers/types/types").BaseStateValue | null | undefined;
64
+ valueType: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
65
+ };
66
+ recommendations: string[];
67
+ };
@@ -404,7 +404,7 @@ export interface DatePickerMoleculeType extends BaseMoleculeType {
404
404
  export interface TimePickerMoleculeType extends BaseMoleculeType {
405
405
  type: 'time_picker' | 'time_picker_display';
406
406
  config: {
407
- props?: any;
407
+ props?: Record<string, unknown>;
408
408
  };
409
409
  properties: {
410
410
  text: TextProperties;
@@ -571,10 +571,10 @@ export interface BinaryRadioButtonsMoleculeType extends BaseMoleculeType {
571
571
  };
572
572
  }
573
573
  export type Molecule = StrictUnion<SimpleTextMoleculeType | TextMoleculeType | ConsentFieldMoleculeType | PasswordSetupMoleculeType | StepperMoleculeType | ChecklistsMoleculeType | AccordionMoleculeType | MenuMoleculeType | DrawerMoleculeType | TabsMoleculeType | DividerMoleculeType | LinkMoleculeType | VideoMoleculeType | ImageMoleculeType | ButtonMoleculeType | ChipMoleculeType | BadgeMoleculeType | AlertMoleculeType | BasicTextFieldMoleculeType | RatingMoleculeType | SwitchMoleculeType | SliderMoleculeType | SelectMoleculeType | DatePickerMoleculeType | TimePickerMoleculeType | EmailInputFieldMoleculeType | PhoneNumberInputFieldMoleculeType | NumericInputFieldMoleculeType | CurrencyInputFieldMoleculeType | AvatarMoleculeType | VisitMoleculeType | CalendarMoleculeType | DateCalendarMoleculeType | SpeedDialMoleculeType | CheckboxMoleculeType | BinaryRadioButtonsMoleculeType> & Partial<{
574
- form: UseFormReturn<any>;
574
+ form: UseFormReturn<Record<string, unknown>>;
575
575
  formData: AnyObject;
576
576
  setFormData: Dispatch<SetStateAction<AnyObject>>;
577
577
  }>;
578
- export type ConsentType = any;
579
- export type VisitMoleculeProps = any;
578
+ export type ConsentType = Record<string, unknown>;
579
+ export type VisitMoleculeProps = Record<string, unknown>;
580
580
  export {};