@digiform/wizard 0.3.1 → 0.3.2
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/features/form-runtime/components/FormFooter.d.ts +5 -0
- package/features/form-runtime/hooks/useValidationEvents.d.ts +0 -1
- package/features/state-management/machines/formMachine.d.ts +3 -0
- package/features/state-management/machines/types.d.ts +4 -0
- package/features/state-management/machines/useFormMachine.d.ts +18 -0
- package/package.json +1 -3
- package/styles.css +1 -1
- package/wizard/src/features/api-integration/services/ApiCallService.js +65 -74
- package/wizard/src/features/dialog-system/components/ActionDialog/ActionDialog.js +39 -43
- package/wizard/src/features/dialog-system/components/ConfirmationDialog/ConfirmationDialog.js +37 -41
- package/wizard/src/features/dialog-system/components/EmailVerificationDialog/EmailVerificationDialog.js +44 -45
- package/wizard/src/features/form-runtime/FormWizard/FormWizard.js +54 -79
- package/wizard/src/features/form-runtime/components/FormFooter.js +53 -184
- package/wizard/src/features/form-runtime/components/FormSection/FormSection.js +150 -194
- package/wizard/src/features/form-runtime/components/FormStep/FormStep.js +83 -92
- package/wizard/src/features/form-runtime/components/StepProgressIndicator/StepProgressIndicator.js +24 -30
- package/wizard/src/features/form-runtime/config/templateLoader.js +48 -55
- package/wizard/src/features/form-runtime/hooks/useComponentTriggers.js +44 -63
- package/wizard/src/features/form-runtime/hooks/useFieldEventHandlers.js +26 -40
- package/wizard/src/features/form-runtime/hooks/useValidationEvents.js +22 -25
- package/wizard/src/features/form-runtime/utils/formDirtyStateSync.js +26 -37
- package/wizard/src/features/form-runtime/utils/logger.js +12 -12
- package/wizard/src/features/state-management/machines/actions/navigationActions.js +13 -8
- package/wizard/src/features/state-management/machines/componentTriggerEngine.js +167 -432
- package/wizard/src/features/state-management/machines/formMachine.js +558 -677
- package/wizard/src/features/state-management/machines/useFormMachine.js +172 -190
- package/wizard/src/features/trigger-action-system/components/ActionManager.js +35 -86
- package/wizard/src/features/validation-system/validation/SchemaBuilder.js +28 -82
- package/wizard/src/features/validation-system/validation/ValidationCache.js +11 -27
- package/wizard/src/features/validation-system/validation/ValidationExecutor.js +26 -58
- package/features/form-runtime/utils/formSaver.d.ts +0 -22
- package/features/state-management/components/ValidationBuilder/ValidationBuilder.d.ts +0 -9
- package/features/state-management/machines/__tests__/setup.d.ts +0 -0
- package/features/state-management/machines/__tests__/vitest.config.d.ts +0 -2
- package/features/state-management/machines/actions/validationActions.d.ts +0 -68
- package/features/state-management/machines/lazyLoading.d.ts +0 -34
- package/features/state-management/machines/validation/index.d.ts +0 -5
- package/features/state-management/machines/validation/validateField.d.ts +0 -2
- package/features/state-management/machines/validation/validateForm.d.ts +0 -2
- package/features/state-management/machines/validation/validateSection.d.ts +0 -2
- package/features/state-management/machines/validation/validateStep.d.ts +0 -2
- package/features/state-management/machines/validation/validationTypes.d.ts +0 -1
- package/features/trigger-action-system/components/FieldWarning/FieldWarning.d.ts +0 -20
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Lazy loading utilities for form machine modules
|
|
3
|
-
* Enables code splitting and reduced initial bundle size
|
|
4
|
-
*/
|
|
5
|
-
export declare const lazyImports: {
|
|
6
|
-
ComponentTriggerEngine: () => Promise<{
|
|
7
|
-
createExecutionPlan: typeof import('./componentTriggerEngine').createExecutionPlan;
|
|
8
|
-
determineTriggerContext: typeof import('./componentTriggerEngine').determineTriggerContext;
|
|
9
|
-
evaluateComponentTriggers: typeof import('./componentTriggerEngine').evaluateComponentTriggers;
|
|
10
|
-
findComponentTriggers: typeof import('./componentTriggerEngine').findComponentTriggers;
|
|
11
|
-
findComponentActions: typeof import('./componentTriggerEngine').findComponentActions;
|
|
12
|
-
getTriggersForAction: typeof import('./componentTriggerEngine').getTriggersForAction;
|
|
13
|
-
hasComponentTriggers: typeof import('./componentTriggerEngine').hasComponentTriggers;
|
|
14
|
-
hasComponentActions: typeof import('./componentTriggerEngine').hasComponentActions;
|
|
15
|
-
findDirtyComponentsWithTriggers: typeof import('./componentTriggerEngine').findDirtyComponentsWithTriggers;
|
|
16
|
-
findDirtyComponentsForNavigation: typeof import('./componentTriggerEngine').findDirtyComponentsForNavigation;
|
|
17
|
-
}>;
|
|
18
|
-
saveActions: () => Promise<typeof import("./actions/saveActions")>;
|
|
19
|
-
validationActions: () => Promise<typeof import("./actions/validationActions")>;
|
|
20
|
-
navigationGuards: () => Promise<typeof import("./guards/navigationGuards")>;
|
|
21
|
-
triggerGuards: () => Promise<typeof import("./guards/triggerGuards")>;
|
|
22
|
-
saveGuards: () => Promise<typeof import("./guards/saveGuards")>;
|
|
23
|
-
};
|
|
24
|
-
export declare const featureModules: {
|
|
25
|
-
advancedTriggers: Promise<any>;
|
|
26
|
-
complexValidation: Promise<any>;
|
|
27
|
-
saveFeatures: Promise<any>;
|
|
28
|
-
};
|
|
29
|
-
export declare const preloadCriticalModules: () => Promise<void>;
|
|
30
|
-
export declare const isModuleLoaded: (moduleName: keyof typeof lazyImports) => boolean;
|
|
31
|
-
export declare const bundleMonitor: {
|
|
32
|
-
trackModuleLoad: (moduleName: string, size?: number) => void;
|
|
33
|
-
trackBundleSize: () => void;
|
|
34
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { type ComponentConfig, type ComponentValidation, DEFAULT_VALIDATION_MESSAGES, getValidationMessage, type SecureCustomValidator, type ValidationRule, } from '../../../../../../core/src/index.ts';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FieldWarning as FieldWarningType } from '../../../../../../core/src/index.ts';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
interface FieldWarningProps {
|
|
4
|
-
warning: FieldWarningType;
|
|
5
|
-
onDismiss?: (warningId: string) => void;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const FieldWarning: React.FC<FieldWarningProps>;
|
|
9
|
-
interface FieldWarningListProps {
|
|
10
|
-
fieldId: string;
|
|
11
|
-
warnings: FieldWarningType[];
|
|
12
|
-
onDismiss?: (warningId: string) => void;
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Component to display multiple warnings for a field
|
|
17
|
-
* Handles spacing and layout of multiple warnings
|
|
18
|
-
*/
|
|
19
|
-
export declare const FieldWarningList: React.FC<FieldWarningListProps>;
|
|
20
|
-
export default FieldWarning;
|