@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.
Files changed (43) hide show
  1. package/features/form-runtime/components/FormFooter.d.ts +5 -0
  2. package/features/form-runtime/hooks/useValidationEvents.d.ts +0 -1
  3. package/features/state-management/machines/formMachine.d.ts +3 -0
  4. package/features/state-management/machines/types.d.ts +4 -0
  5. package/features/state-management/machines/useFormMachine.d.ts +18 -0
  6. package/package.json +1 -3
  7. package/styles.css +1 -1
  8. package/wizard/src/features/api-integration/services/ApiCallService.js +65 -74
  9. package/wizard/src/features/dialog-system/components/ActionDialog/ActionDialog.js +39 -43
  10. package/wizard/src/features/dialog-system/components/ConfirmationDialog/ConfirmationDialog.js +37 -41
  11. package/wizard/src/features/dialog-system/components/EmailVerificationDialog/EmailVerificationDialog.js +44 -45
  12. package/wizard/src/features/form-runtime/FormWizard/FormWizard.js +54 -79
  13. package/wizard/src/features/form-runtime/components/FormFooter.js +53 -184
  14. package/wizard/src/features/form-runtime/components/FormSection/FormSection.js +150 -194
  15. package/wizard/src/features/form-runtime/components/FormStep/FormStep.js +83 -92
  16. package/wizard/src/features/form-runtime/components/StepProgressIndicator/StepProgressIndicator.js +24 -30
  17. package/wizard/src/features/form-runtime/config/templateLoader.js +48 -55
  18. package/wizard/src/features/form-runtime/hooks/useComponentTriggers.js +44 -63
  19. package/wizard/src/features/form-runtime/hooks/useFieldEventHandlers.js +26 -40
  20. package/wizard/src/features/form-runtime/hooks/useValidationEvents.js +22 -25
  21. package/wizard/src/features/form-runtime/utils/formDirtyStateSync.js +26 -37
  22. package/wizard/src/features/form-runtime/utils/logger.js +12 -12
  23. package/wizard/src/features/state-management/machines/actions/navigationActions.js +13 -8
  24. package/wizard/src/features/state-management/machines/componentTriggerEngine.js +167 -432
  25. package/wizard/src/features/state-management/machines/formMachine.js +558 -677
  26. package/wizard/src/features/state-management/machines/useFormMachine.js +172 -190
  27. package/wizard/src/features/trigger-action-system/components/ActionManager.js +35 -86
  28. package/wizard/src/features/validation-system/validation/SchemaBuilder.js +28 -82
  29. package/wizard/src/features/validation-system/validation/ValidationCache.js +11 -27
  30. package/wizard/src/features/validation-system/validation/ValidationExecutor.js +26 -58
  31. package/features/form-runtime/utils/formSaver.d.ts +0 -22
  32. package/features/state-management/components/ValidationBuilder/ValidationBuilder.d.ts +0 -9
  33. package/features/state-management/machines/__tests__/setup.d.ts +0 -0
  34. package/features/state-management/machines/__tests__/vitest.config.d.ts +0 -2
  35. package/features/state-management/machines/actions/validationActions.d.ts +0 -68
  36. package/features/state-management/machines/lazyLoading.d.ts +0 -34
  37. package/features/state-management/machines/validation/index.d.ts +0 -5
  38. package/features/state-management/machines/validation/validateField.d.ts +0 -2
  39. package/features/state-management/machines/validation/validateForm.d.ts +0 -2
  40. package/features/state-management/machines/validation/validateSection.d.ts +0 -2
  41. package/features/state-management/machines/validation/validateStep.d.ts +0 -2
  42. package/features/state-management/machines/validation/validationTypes.d.ts +0 -1
  43. 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,5 +0,0 @@
1
- export * from './validateField';
2
- export * from './validateForm';
3
- export * from './validateSection';
4
- export * from './validateStep';
5
- export * from './validationTypes';
@@ -1,2 +0,0 @@
1
- import { FormMachineContext } from '../types';
2
- export declare const validateField: (context: FormMachineContext, fieldName: string) => string | null;
@@ -1,2 +0,0 @@
1
- import { FormMachineContext } from '../types';
2
- export declare const validateForm: (context: FormMachineContext) => Record<string, string[]>;
@@ -1,2 +0,0 @@
1
- import { FormMachineContext } from '../types';
2
- export declare const validateSection: (context: FormMachineContext, sectionId: string) => Record<string, string[]>;
@@ -1,2 +0,0 @@
1
- import { FormMachineContext } from '../types';
2
- export declare const validateStep: (context: FormMachineContext, stepId: string) => Record<string, string[]>;
@@ -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;