@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.
- package/dist/cjs/components/RichTextViewer/components/VariableFormatter.d.ts +1 -1
- package/dist/cjs/components/RichTextViewer/utils/debugVariableState.d.ts +67 -0
- package/dist/cjs/containers/types/moleculeTypes.d.ts +4 -4
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/Consent/Consent.stories.d.ts +3 -3
- package/dist/cjs/molecules/DateCalendar/DateCalendar.d.ts +1 -1
- package/dist/esm/components/RichTextViewer/components/VariableFormatter.d.ts +1 -1
- package/dist/esm/components/RichTextViewer/components/VariableFormatter.js +1 -1
- package/dist/esm/components/RichTextViewer/components/VariableFormatter.js.map +1 -1
- package/dist/esm/components/RichTextViewer/utils/debugVariableState.d.ts +67 -0
- package/dist/esm/containers/types/moleculeTypes.d.ts +4 -4
- package/dist/esm/molecules/BaseMolecule.js.map +1 -1
- package/dist/esm/molecules/Consent/Consent.stories.d.ts +3 -3
- package/dist/esm/molecules/DateCalendar/DateCalendar.d.ts +1 -1
- package/dist/esm/molecules/DateCalendar/DateCalendar.js +1 -1
- package/dist/esm/molecules/DateCalendar/DateCalendar.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/package.json +1 -1
@@ -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?:
|
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<
|
574
|
+
form: UseFormReturn<Record<string, unknown>>;
|
575
575
|
formData: AnyObject;
|
576
576
|
setFormData: Dispatch<SetStateAction<AnyObject>>;
|
577
577
|
}>;
|
578
|
-
export type ConsentType =
|
579
|
-
export type VisitMoleculeProps =
|
578
|
+
export type ConsentType = Record<string, unknown>;
|
579
|
+
export type VisitMoleculeProps = Record<string, unknown>;
|
580
580
|
export {};
|