@digiform/wizard 0.1.7 → 0.2.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/FormWizard.d.ts +10 -0
- package/features/api-integration/components/EnhancedActionExecutor/EnhancedActionExecutor.d.ts +23 -0
- package/features/api-integration/index.d.ts +12 -0
- package/features/api-integration/services/ActionExecutor.d.ts +18 -0
- package/features/api-integration/services/ApiCallExecutor.d.ts +2 -0
- package/features/api-integration/services/ApiCallService.d.ts +40 -0
- package/features/api-integration/services/DialogExecutor.d.ts +2 -0
- package/features/api-integration/services/GenericTriggerService.d.ts +118 -0
- package/features/api-integration/services/NavigationExecutor.d.ts +2 -0
- package/features/dialog-system/components/ActionDialog/ActionDialog.d.ts +11 -0
- package/features/dialog-system/components/ConfirmationDialog/ConfirmationDialog.d.ts +11 -0
- package/features/dialog-system/components/EmailVerificationDialog/EmailVerificationDialog.d.ts +11 -0
- package/features/dialog-system/index.d.ts +8 -0
- package/features/form-runtime/ComponentAdapterComplete/ComponentAdapterComplete.d.ts +19 -0
- package/features/form-runtime/FormWizard/FormWizard.d.ts +10 -0
- package/features/form-runtime/components/FormField.d.ts +7 -0
- package/features/form-runtime/components/FormFooter.d.ts +5 -0
- package/features/form-runtime/components/FormHeader.d.ts +9 -0
- package/features/form-runtime/components/FormSection/FormSection.d.ts +6 -0
- package/features/form-runtime/components/FormStep/FormStep.d.ts +2 -0
- package/features/form-runtime/components/ProgressLoaderRuntime.d.ts +12 -0
- package/features/form-runtime/components/StepProgressIndicator/StepProgressIndicator.d.ts +2 -0
- package/features/form-runtime/components/displayValue/displayValue.d.ts +21 -0
- package/features/form-runtime/components/index.d.ts +3 -0
- package/features/form-runtime/components/renderers/DisplayModeRenderer/DisplayModeRenderer.d.ts +7 -0
- package/features/form-runtime/components/renderers/InteractiveFieldRenderer/InteractiveFieldRenderer.d.ts +13 -0
- package/features/form-runtime/config/configResolver.d.ts +14 -0
- package/features/form-runtime/config/index.d.ts +9 -0
- package/features/form-runtime/config/templateConfig.d.ts +148 -0
- package/features/form-runtime/config/templateLoader.d.ts +25 -0
- package/features/form-runtime/config/templateUtils.d.ts +12 -0
- package/features/form-runtime/context/LoaderContext.d.ts +31 -0
- package/features/form-runtime/hooks/index.d.ts +1 -0
- package/features/form-runtime/hooks/useApiActions.d.ts +42 -0
- package/features/form-runtime/hooks/useComponentTriggers.d.ts +42 -0
- package/features/form-runtime/hooks/useComponentVisibility.d.ts +13 -0
- package/features/form-runtime/hooks/useFieldEventHandlers.d.ts +14 -0
- package/features/form-runtime/hooks/useFormContext.d.ts +4 -0
- package/features/form-runtime/hooks/useFormFieldState.d.ts +13 -0
- package/features/form-runtime/hooks/useValidationEvents.d.ts +13 -0
- package/features/form-runtime/index.d.ts +12 -0
- package/features/form-runtime/utils/componentDisplayValue.d.ts +9 -0
- package/features/form-runtime/utils/errorUtils.d.ts +13 -0
- package/features/form-runtime/utils/fieldHelpers.d.ts +38 -0
- package/features/form-runtime/utils/formDataBuilder.d.ts +7 -0
- package/features/form-runtime/utils/formDirtyStateSync.d.ts +77 -0
- package/features/form-runtime/utils/formSaver.d.ts +22 -0
- package/features/form-runtime/utils/index.d.ts +4 -0
- package/features/form-runtime/utils/logger.d.ts +70 -0
- package/features/form-runtime/utils/validation.d.ts +3 -0
- package/features/form-runtime/utils/validationUX.d.ts +70 -0
- package/features/form-runtime/utils/visibilityUtils.d.ts +13 -0
- package/features/index.d.ts +11 -0
- package/features/state-management/components/ValidationBuilder/ValidationBuilder.d.ts +9 -0
- package/features/state-management/index.d.ts +8 -0
- package/features/state-management/machines/__tests__/setup.d.ts +0 -0
- package/features/state-management/machines/__tests__/testUtils.d.ts +78 -0
- package/features/state-management/machines/__tests__/vitest.config.d.ts +2 -0
- package/features/state-management/machines/actions/componentActions.d.ts +10 -0
- package/features/state-management/machines/actions/navigationActions.d.ts +50 -0
- package/features/state-management/machines/actions/saveActions.d.ts +38 -0
- package/features/state-management/machines/actions/validationActions.d.ts +68 -0
- package/features/state-management/machines/componentTriggerEngine.d.ts +90 -0
- package/features/state-management/machines/formMachine.d.ts +216 -0
- package/features/state-management/machines/guards/navigationGuards.d.ts +32 -0
- package/features/state-management/machines/guards/saveGuards.d.ts +55 -0
- package/features/state-management/machines/guards/triggerGuards.d.ts +24 -0
- package/features/state-management/machines/helpers/triggerHelpers.d.ts +14 -0
- package/features/state-management/machines/index.d.ts +4 -0
- package/features/state-management/machines/lazyLoading.d.ts +34 -0
- package/features/state-management/machines/performance.d.ts +80 -0
- package/features/state-management/machines/types.d.ts +315 -0
- package/features/state-management/machines/useFormMachine.d.ts +1508 -0
- package/features/state-management/machines/validation/index.d.ts +5 -0
- package/features/state-management/machines/validation/validateField.d.ts +2 -0
- package/features/state-management/machines/validation/validateForm.d.ts +2 -0
- package/features/state-management/machines/validation/validateSection.d.ts +2 -0
- package/features/state-management/machines/validation/validateStep.d.ts +2 -0
- package/features/state-management/machines/validation/validationTypes.d.ts +1 -0
- package/features/trigger-action-system/components/ActionLoadingIndicator/ActionLoadingIndicator.d.ts +8 -0
- package/features/trigger-action-system/components/ActionManager.d.ts +6 -0
- package/features/trigger-action-system/components/ComponentAlert/ComponentAlert.d.ts +10 -0
- package/features/trigger-action-system/components/FieldWarning/FieldWarning.d.ts +20 -0
- package/features/trigger-action-system/index.d.ts +10 -0
- package/features/trigger-action-system/utils/GenericTriggerEngine.d.ts +118 -0
- package/features/trigger-action-system/utils/triggerActionSystem.d.ts +193 -0
- package/features/validation-system/components/ValidationDebugger.d.ts +2 -0
- package/features/validation-system/index.d.ts +7 -0
- package/features/validation-system/validation/ActionValidation.d.ts +54 -0
- package/features/validation-system/validation/SchemaBuilder.d.ts +36 -0
- package/features/validation-system/validation/ValidationCache.d.ts +36 -0
- package/features/validation-system/validation/ValidationEngine.d.ts +86 -0
- package/features/validation-system/validation/ValidationExecutor.d.ts +36 -0
- package/features/validation-system/validation/index.d.ts +38 -0
- package/features/validation-system/validation/secureValidatorEngine.d.ts +64 -0
- package/features/validation-system/validation/tanstackSchemaAdapter.d.ts +15 -0
- package/features/validation-system/validation/validationService.d.ts +43 -0
- package/index.cjs +231 -284
- package/index.cjs.map +1 -1
- package/index.d.ts +8 -0
- package/index.js +231 -284
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/index.d.ts +0 -0
- package/styles.css +10 -18
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ActionArgs } from 'xstate';
|
|
2
|
+
import { FormMachineContext, FormMachineEvents } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Custom action to evaluate component triggers
|
|
5
|
+
*/
|
|
6
|
+
export declare const evaluateComponentTriggers: ({ context, event, self, }: ActionArgs<FormMachineContext, FormMachineEvents, FormMachineEvents>) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Custom action to execute a specific component action
|
|
9
|
+
*/
|
|
10
|
+
export declare const executeComponentAction: ({ context, event, self, }: ActionArgs<FormMachineContext, FormMachineEvents, FormMachineEvents>) => void;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ActionArgs } from 'xstate';
|
|
2
|
+
import { FormMachineContext, FormMachineEvents } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Navigate to the next step
|
|
5
|
+
*/
|
|
6
|
+
export declare const navigateToNextStep: import('xstate').ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
7
|
+
/**
|
|
8
|
+
* Navigate to the previous step
|
|
9
|
+
*/
|
|
10
|
+
export declare const navigateToPreviousStep: import('xstate').ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
11
|
+
/**
|
|
12
|
+
* Navigate to a specific step by ID
|
|
13
|
+
*/
|
|
14
|
+
export declare const navigateToStep: import('xstate').ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
15
|
+
/**
|
|
16
|
+
* Navigate to a specific step by pending navigation
|
|
17
|
+
*/
|
|
18
|
+
export declare const navigateToStepFromPending: import('xstate').ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
19
|
+
/**
|
|
20
|
+
* Set pending navigation for next step
|
|
21
|
+
*/
|
|
22
|
+
export declare const setPendingNextNavigation: import('xstate').ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
23
|
+
/**
|
|
24
|
+
* Set pending navigation for previous step
|
|
25
|
+
*/
|
|
26
|
+
export declare const setPendingPreviousNavigation: import('xstate').ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
27
|
+
/**
|
|
28
|
+
* Set pending navigation for specific step
|
|
29
|
+
*/
|
|
30
|
+
export declare const setPendingStepNavigation: import('xstate').ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
31
|
+
/**
|
|
32
|
+
* Set pending navigation based on event
|
|
33
|
+
*/
|
|
34
|
+
export declare const setPendingNavigationFromEvent: import('xstate').ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
35
|
+
/**
|
|
36
|
+
* Clear pending navigation and allow navigation
|
|
37
|
+
*/
|
|
38
|
+
export declare const clearPendingNavigation: import('xstate').ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
39
|
+
/**
|
|
40
|
+
* Clear pending navigation and block navigation
|
|
41
|
+
*/
|
|
42
|
+
export declare const clearPendingNavigationAndBlock: import('xstate').ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
43
|
+
/**
|
|
44
|
+
* Reset form to initial state
|
|
45
|
+
*/
|
|
46
|
+
export declare const resetForm: import('xstate').ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
47
|
+
/**
|
|
48
|
+
* Execute pending navigation by sending appropriate event
|
|
49
|
+
*/
|
|
50
|
+
export declare const executePendingNavigation: ({ context, self, }: ActionArgs<FormMachineContext, FormMachineEvents, FormMachineEvents>) => void;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ActionArgs } from 'xstate';
|
|
2
|
+
import { FormMachineContext, FormMachineEvents } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Start save process
|
|
5
|
+
*/
|
|
6
|
+
export declare const startSave: import('xstate').ActionFunction<FormMachineContext, FormMachineEvents, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
7
|
+
/**
|
|
8
|
+
* Mark save dialog as shown
|
|
9
|
+
*/
|
|
10
|
+
export declare const markSaveDialogShown: import('xstate').ActionFunction<FormMachineContext, FormMachineEvents, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
11
|
+
/**
|
|
12
|
+
* Create execution plan for save context
|
|
13
|
+
*/
|
|
14
|
+
export declare const createSaveExecutionPlan: import('xstate').ActionFunction<FormMachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
15
|
+
/**
|
|
16
|
+
* Execute save actions from plan
|
|
17
|
+
*/
|
|
18
|
+
export declare const executeSaveActions: ({ context, self, }: ActionArgs<FormMachineContext, FormMachineEvents, FormMachineEvents>) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Complete save verification
|
|
21
|
+
*/
|
|
22
|
+
export declare const completeSaveVerification: import('xstate').ActionFunction<FormMachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
23
|
+
/**
|
|
24
|
+
* Cancel save verification
|
|
25
|
+
*/
|
|
26
|
+
export declare const cancelSaveVerification: import('xstate').ActionFunction<FormMachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
27
|
+
/**
|
|
28
|
+
* Complete save process and reset state
|
|
29
|
+
*/
|
|
30
|
+
export declare const completeSave: import('xstate').ActionFunction<FormMachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
31
|
+
/**
|
|
32
|
+
* Check if all verifications are complete and send completion event
|
|
33
|
+
*/
|
|
34
|
+
export declare const checkSaveVerificationCompletion: ({ context, self, }: ActionArgs<FormMachineContext, FormMachineEvents, FormMachineEvents>) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Execute pending navigation after save completion
|
|
37
|
+
*/
|
|
38
|
+
export declare const executePendingNavigationAfterSave: ({ context, self, }: ActionArgs<FormMachineContext, FormMachineEvents, FormMachineEvents>) => void;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ActionFunction } from 'xstate';
|
|
2
|
+
import { FormMachineContext, FormMachineEvents } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Set form data for a specific field (optimized to reduce object spreading)
|
|
5
|
+
*/
|
|
6
|
+
export declare const setFormData: ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
7
|
+
/**
|
|
8
|
+
* Set field state for a component (optimized to reduce deep object spreading)
|
|
9
|
+
*/
|
|
10
|
+
export declare const setFieldState: ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
11
|
+
/**
|
|
12
|
+
* Mark field as touched during validation (optimized to avoid unnecessary updates)
|
|
13
|
+
*/
|
|
14
|
+
export declare const markFieldTouched: ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
15
|
+
/**
|
|
16
|
+
* Set form validation errors
|
|
17
|
+
*/
|
|
18
|
+
export declare const setFormErrors: ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
19
|
+
/**
|
|
20
|
+
* Set submission state
|
|
21
|
+
*/
|
|
22
|
+
export declare const setSubmittingTrue: ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
23
|
+
export declare const setSubmittingFalse: ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
24
|
+
/**
|
|
25
|
+
* Set form submission errors
|
|
26
|
+
*/
|
|
27
|
+
export declare const setSubmissionError: ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
28
|
+
/**
|
|
29
|
+
* Start section editing by creating backup (optimized backup creation)
|
|
30
|
+
*/
|
|
31
|
+
export declare const startSectionEdit: ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
32
|
+
/**
|
|
33
|
+
* Cancel section editing by restoring from backup (optimized restoration)
|
|
34
|
+
*/
|
|
35
|
+
export declare const cancelSectionEdit: ActionFunction<any, any, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
36
|
+
/**
|
|
37
|
+
* Set field change validation warning
|
|
38
|
+
*/
|
|
39
|
+
export declare const setFieldValidationWarning: ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
40
|
+
/**
|
|
41
|
+
* Dismiss field validation warning
|
|
42
|
+
*/
|
|
43
|
+
export declare const dismissFieldValidationWarning: ActionFunction<any, any, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
44
|
+
/**
|
|
45
|
+
* Start field verification process
|
|
46
|
+
*/
|
|
47
|
+
export declare const startFieldVerification: ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
48
|
+
/**
|
|
49
|
+
* Complete field verification process
|
|
50
|
+
*/
|
|
51
|
+
export declare const completeFieldVerification: ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
52
|
+
/**
|
|
53
|
+
* Clear field changes and validation state
|
|
54
|
+
*/
|
|
55
|
+
export declare const clearFieldChanges: ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
56
|
+
/**
|
|
57
|
+
* Update form validity based on current step
|
|
58
|
+
*/
|
|
59
|
+
export declare const updateFormValidity: ActionFunction<import('xstate').MachineContext, import('xstate').AnyEventObject, import('xstate').EventObject, import('xstate').NonReducibleUnknown, import('xstate').ProvidedActor, never, never, never, never>;
|
|
60
|
+
/**
|
|
61
|
+
* Reset TanStack Form dirty state for a specific field
|
|
62
|
+
* This action is called via event to reset TanStack Form's field meta state
|
|
63
|
+
*/
|
|
64
|
+
export declare const resetFieldTanStackState: ({ context, event, self, }: {
|
|
65
|
+
context: FormMachineContext;
|
|
66
|
+
event: FormMachineEvents;
|
|
67
|
+
self: any;
|
|
68
|
+
}) => void;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ComponentAction, ComponentTrigger, FormWizardConfig, TriggerContext } from '../../../../../core/src/index.ts';
|
|
2
|
+
import { FormMachineContext } from './types';
|
|
3
|
+
export interface TriggerEvaluationContext {
|
|
4
|
+
componentId: string;
|
|
5
|
+
currentValue: unknown;
|
|
6
|
+
originalValue: unknown;
|
|
7
|
+
eventType: "valueChange" | "focus" | "blur" | "navigationAttempt";
|
|
8
|
+
triggerContext: TriggerContext;
|
|
9
|
+
formData: Record<string, unknown>;
|
|
10
|
+
formContext: FormMachineContext;
|
|
11
|
+
}
|
|
12
|
+
export interface TriggerExecution {
|
|
13
|
+
trigger: ComponentTrigger;
|
|
14
|
+
componentId: string;
|
|
15
|
+
context: TriggerContext;
|
|
16
|
+
actions: ComponentAction[];
|
|
17
|
+
timestamp: number;
|
|
18
|
+
}
|
|
19
|
+
export interface ContextExecutionPlan {
|
|
20
|
+
context: TriggerContext;
|
|
21
|
+
executions: TriggerExecution[];
|
|
22
|
+
totalActions: number;
|
|
23
|
+
requiresUserInteraction: boolean;
|
|
24
|
+
timestamp?: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Create execution plan for a specific trigger context (optimized with caching)
|
|
28
|
+
*/
|
|
29
|
+
export declare function createExecutionPlan(config: FormWizardConfig, context: TriggerContext, stepIndex: number, formContext: FormMachineContext): ContextExecutionPlan;
|
|
30
|
+
/**
|
|
31
|
+
* Determine trigger context based on event type and form state
|
|
32
|
+
*/
|
|
33
|
+
export declare function determineTriggerContext(eventType: string, _formState?: unknown): TriggerContext;
|
|
34
|
+
/**
|
|
35
|
+
* Evaluate all triggers for a component and return which ones should fire
|
|
36
|
+
*/
|
|
37
|
+
export declare function evaluateComponentTriggers(config: FormWizardConfig, context: TriggerEvaluationContext): {
|
|
38
|
+
trigger: ComponentTrigger;
|
|
39
|
+
shouldFire: boolean;
|
|
40
|
+
}[];
|
|
41
|
+
/**
|
|
42
|
+
* Find all triggers for a specific component (optimized with cache)
|
|
43
|
+
*/
|
|
44
|
+
export declare function findComponentTriggers(config: FormWizardConfig, componentId: string): ComponentTrigger[];
|
|
45
|
+
/**
|
|
46
|
+
* Find all actions for a specific component (optimized with cache)
|
|
47
|
+
*/
|
|
48
|
+
export declare function findComponentActions(config: FormWizardConfig, componentId: string): ComponentAction[];
|
|
49
|
+
/**
|
|
50
|
+
* Get triggers that are associated with specific actions
|
|
51
|
+
*/
|
|
52
|
+
export declare function getTriggersForAction(config: FormWizardConfig, componentId: string, _actionId: string): ComponentTrigger[];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a component has any triggers configured
|
|
55
|
+
*/
|
|
56
|
+
export declare function hasComponentTriggers(config: FormWizardConfig, componentId: string): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Check if a component has any actions configured
|
|
59
|
+
*/
|
|
60
|
+
export declare function hasComponentActions(config: FormWizardConfig, componentId: string): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Find components with dirty triggers that should execute in a specific context
|
|
63
|
+
* Used for navigation evaluation to check if triggers should be executed before allowing navigation
|
|
64
|
+
*/
|
|
65
|
+
export declare function findDirtyComponentsWithTriggers(config: FormWizardConfig, currentStepIndex: number, formContext: FormMachineContext, triggerContext?: TriggerContext): Array<{
|
|
66
|
+
componentId: string;
|
|
67
|
+
trigger: ComponentTrigger;
|
|
68
|
+
actions: ComponentAction[];
|
|
69
|
+
}>;
|
|
70
|
+
/**
|
|
71
|
+
* Find components with dirty triggers for navigation contexts
|
|
72
|
+
* This is a convenience method for step navigation scenarios
|
|
73
|
+
*/
|
|
74
|
+
export declare function findDirtyComponentsForNavigation(config: FormWizardConfig, currentStepIndex: number, formContext: FormMachineContext, navigationType?: "step" | "section"): {
|
|
75
|
+
componentId: string;
|
|
76
|
+
trigger: ComponentTrigger;
|
|
77
|
+
actions: ComponentAction[];
|
|
78
|
+
}[];
|
|
79
|
+
export declare const ComponentTriggerEngine: {
|
|
80
|
+
createExecutionPlan: typeof createExecutionPlan;
|
|
81
|
+
determineTriggerContext: typeof determineTriggerContext;
|
|
82
|
+
evaluateComponentTriggers: typeof evaluateComponentTriggers;
|
|
83
|
+
findComponentTriggers: typeof findComponentTriggers;
|
|
84
|
+
findComponentActions: typeof findComponentActions;
|
|
85
|
+
getTriggersForAction: typeof getTriggersForAction;
|
|
86
|
+
hasComponentTriggers: typeof hasComponentTriggers;
|
|
87
|
+
hasComponentActions: typeof hasComponentActions;
|
|
88
|
+
findDirtyComponentsWithTriggers: typeof findDirtyComponentsWithTriggers;
|
|
89
|
+
findDirtyComponentsForNavigation: typeof findDirtyComponentsForNavigation;
|
|
90
|
+
};
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { DialogConfig } from '../../../../../core/src/index.ts';
|
|
2
|
+
import { FormFieldValue, FormMachineContext } from './types';
|
|
3
|
+
export declare const formMachine: import('xstate').StateMachine<FormMachineContext, {
|
|
4
|
+
type: "SET_DATA";
|
|
5
|
+
key: string;
|
|
6
|
+
value: FormFieldValue;
|
|
7
|
+
} | {
|
|
8
|
+
type: "SET_FIELD_STATE";
|
|
9
|
+
componentId: string;
|
|
10
|
+
state: Partial<FormMachineContext["fieldStates"][string]>;
|
|
11
|
+
} | {
|
|
12
|
+
type: "VALIDATE_FIELD";
|
|
13
|
+
componentId: string;
|
|
14
|
+
} | {
|
|
15
|
+
type: "VALIDATE_SECTION";
|
|
16
|
+
sectionId: string;
|
|
17
|
+
} | {
|
|
18
|
+
type: "VALIDATE_STEP";
|
|
19
|
+
stepId: string;
|
|
20
|
+
} | {
|
|
21
|
+
type: "VALIDATE_FORM";
|
|
22
|
+
} | {
|
|
23
|
+
type: "START_SECTION_EDIT";
|
|
24
|
+
sectionId: string;
|
|
25
|
+
componentIds: string[];
|
|
26
|
+
} | {
|
|
27
|
+
type: "CANCEL_SECTION_EDIT";
|
|
28
|
+
sectionId: string;
|
|
29
|
+
} | {
|
|
30
|
+
type: "NEXT";
|
|
31
|
+
} | {
|
|
32
|
+
type: "PREVIOUS";
|
|
33
|
+
} | {
|
|
34
|
+
type: "GO_TO_STEP";
|
|
35
|
+
stepId: string;
|
|
36
|
+
} | {
|
|
37
|
+
type: "REQUEST_NAVIGATION";
|
|
38
|
+
navigationType: "next" | "previous" | "step";
|
|
39
|
+
stepId?: string;
|
|
40
|
+
} | {
|
|
41
|
+
type: "SUBMIT";
|
|
42
|
+
} | {
|
|
43
|
+
type: "SUBMIT_SUCCESS";
|
|
44
|
+
} | {
|
|
45
|
+
type: "SUBMIT_ERROR";
|
|
46
|
+
error: Error;
|
|
47
|
+
} | {
|
|
48
|
+
type: "RESET";
|
|
49
|
+
} | {
|
|
50
|
+
type: "EXECUTE_ACTIONS";
|
|
51
|
+
trigger: import('../../../../../core/src/index.ts').ActionTrigger;
|
|
52
|
+
} | {
|
|
53
|
+
type: "EXECUTE_TRIGGER";
|
|
54
|
+
trigger: import('../../../../../core/src/index.ts').ActionTrigger;
|
|
55
|
+
} | {
|
|
56
|
+
type: "ACTION_START";
|
|
57
|
+
actionId: string;
|
|
58
|
+
} | {
|
|
59
|
+
type: "ACTION_SUCCESS";
|
|
60
|
+
actionId: string;
|
|
61
|
+
result: unknown;
|
|
62
|
+
} | {
|
|
63
|
+
type: "ACTION_ERROR";
|
|
64
|
+
actionId: string;
|
|
65
|
+
error: Error;
|
|
66
|
+
} | {
|
|
67
|
+
type: "ACTIONS_COMPLETED";
|
|
68
|
+
results: Record<string, unknown>;
|
|
69
|
+
} | {
|
|
70
|
+
type: "SHOW_ACTION_DIALOG";
|
|
71
|
+
dialogConfig: DialogConfig;
|
|
72
|
+
} | {
|
|
73
|
+
type: "HIDE_ACTION_DIALOG";
|
|
74
|
+
} | {
|
|
75
|
+
type: "DIALOG_BUTTON_CLICK";
|
|
76
|
+
buttonAction: string;
|
|
77
|
+
} | {
|
|
78
|
+
type: "FIELD_CHANGED";
|
|
79
|
+
fieldId: string;
|
|
80
|
+
oldValue: unknown;
|
|
81
|
+
newValue: unknown;
|
|
82
|
+
} | {
|
|
83
|
+
type: "TRIGGER_FIELD_WARNING";
|
|
84
|
+
fieldId: string;
|
|
85
|
+
warning: import('../../../../../core/src/index.ts').FieldWarning;
|
|
86
|
+
} | {
|
|
87
|
+
type: "DISMISS_FIELD_WARNING";
|
|
88
|
+
fieldId: string;
|
|
89
|
+
warningId?: string;
|
|
90
|
+
} | {
|
|
91
|
+
type: "SHOW_FIELD_WARNING";
|
|
92
|
+
fieldId: string;
|
|
93
|
+
warningId: string;
|
|
94
|
+
message: string;
|
|
95
|
+
warningType?: "warning" | "error" | "info";
|
|
96
|
+
} | {
|
|
97
|
+
type: "START_FIELD_VERIFICATION";
|
|
98
|
+
fieldId: string;
|
|
99
|
+
config: import('../../../../../core/src/index.ts').VerificationConfig;
|
|
100
|
+
} | {
|
|
101
|
+
type: "FIELD_VERIFICATION_COMPLETE";
|
|
102
|
+
fieldId: string;
|
|
103
|
+
result: unknown;
|
|
104
|
+
success: boolean;
|
|
105
|
+
} | {
|
|
106
|
+
type: "CLEAR_FIELD_CHANGES";
|
|
107
|
+
fieldId?: string;
|
|
108
|
+
} | {
|
|
109
|
+
type: "EVALUATE_COMPONENT_TRIGGERS";
|
|
110
|
+
componentId: string;
|
|
111
|
+
eventType: "valueChange" | "focus" | "blur";
|
|
112
|
+
value?: unknown;
|
|
113
|
+
} | {
|
|
114
|
+
type: "TRIGGER_COMPONENT_ACTION";
|
|
115
|
+
componentId: string;
|
|
116
|
+
triggerId: string;
|
|
117
|
+
actionId: string;
|
|
118
|
+
eventType?: "valueChange" | "focus" | "blur" | "navigationAttempt" | "sectionSave";
|
|
119
|
+
} | {
|
|
120
|
+
type: "COMPONENT_ACTION_START";
|
|
121
|
+
componentId: string;
|
|
122
|
+
actionId: string;
|
|
123
|
+
} | {
|
|
124
|
+
type: "COMPONENT_ACTION_COMPLETE";
|
|
125
|
+
componentId: string;
|
|
126
|
+
actionId: string;
|
|
127
|
+
result?: unknown;
|
|
128
|
+
} | {
|
|
129
|
+
type: "COMPONENT_ACTION_FAILED";
|
|
130
|
+
componentId: string;
|
|
131
|
+
actionId: string;
|
|
132
|
+
error: Error;
|
|
133
|
+
} | {
|
|
134
|
+
type: "SHOW_COMPONENT_ALERT";
|
|
135
|
+
componentId: string;
|
|
136
|
+
alert: import('./types').ComponentAlert;
|
|
137
|
+
} | {
|
|
138
|
+
type: "DISMISS_COMPONENT_ALERT";
|
|
139
|
+
componentId: string;
|
|
140
|
+
alertId?: string;
|
|
141
|
+
} | {
|
|
142
|
+
type: "CLEAR_COMPONENT_ALERT";
|
|
143
|
+
componentId: string;
|
|
144
|
+
} | {
|
|
145
|
+
type: "SET_COMPONENT_ORIGINAL_VALUE";
|
|
146
|
+
componentId: string;
|
|
147
|
+
value: unknown;
|
|
148
|
+
source?: "initialized" | "api_populated" | "user_reset" | "user_verified" | "edit_start";
|
|
149
|
+
} | {
|
|
150
|
+
type: "MARK_COMPONENT_AS_POPULATED";
|
|
151
|
+
componentId: string;
|
|
152
|
+
value: unknown;
|
|
153
|
+
} | {
|
|
154
|
+
type: "EXECUTE_CONTEXT_ACTION";
|
|
155
|
+
execution: import('./componentTriggerEngine').TriggerExecution;
|
|
156
|
+
action: import('../../../../../core/src/index.ts').ComponentAction;
|
|
157
|
+
} | {
|
|
158
|
+
type: "CONTEXT_ACTION_COMPLETE";
|
|
159
|
+
componentId: string;
|
|
160
|
+
actionId: string;
|
|
161
|
+
result: unknown;
|
|
162
|
+
} | {
|
|
163
|
+
type: "CONTEXT_ACTIONS_COMPLETE";
|
|
164
|
+
results?: Record<string, unknown>;
|
|
165
|
+
} | {
|
|
166
|
+
type: "EXECUTE_CONTEXT_ACTIONS";
|
|
167
|
+
executionPlan: import('./componentTriggerEngine').ContextExecutionPlan;
|
|
168
|
+
} | {
|
|
169
|
+
type: "EXECUTE_FIELD_CHANGE_ACTIONS";
|
|
170
|
+
executionPlan: import('./componentTriggerEngine').ContextExecutionPlan;
|
|
171
|
+
componentId: string;
|
|
172
|
+
eventType: string;
|
|
173
|
+
value: unknown;
|
|
174
|
+
} | {
|
|
175
|
+
type: "SHOW_DIALOG";
|
|
176
|
+
dialog: DialogConfig;
|
|
177
|
+
} | {
|
|
178
|
+
type: "TRIGGER_ACTIONS_COMPLETE";
|
|
179
|
+
} | {
|
|
180
|
+
type: "DIALOG_VERIFIED";
|
|
181
|
+
} | {
|
|
182
|
+
type: "DIALOG_CANCELLED";
|
|
183
|
+
} | {
|
|
184
|
+
type: "RESET_FIELD_TANSTACK_STATE";
|
|
185
|
+
componentId: string;
|
|
186
|
+
form?: import('./types').MinimalFormApi;
|
|
187
|
+
} | {
|
|
188
|
+
type: "UPDATE_COMPONENT_ORIGINAL_VALUE";
|
|
189
|
+
componentId: string;
|
|
190
|
+
} | {
|
|
191
|
+
type: "COMPONENT_ACTION_ERROR";
|
|
192
|
+
componentId: string;
|
|
193
|
+
actionId: string;
|
|
194
|
+
error: Error;
|
|
195
|
+
} | {
|
|
196
|
+
type: "START_SAVE";
|
|
197
|
+
initiator: "sectionButton" | "navigation";
|
|
198
|
+
sectionId: string;
|
|
199
|
+
} | {
|
|
200
|
+
type: "SAVE_VALIDATION_SUCCESS";
|
|
201
|
+
sectionId: string;
|
|
202
|
+
executionPlan: import('./componentTriggerEngine').ContextExecutionPlan;
|
|
203
|
+
} | {
|
|
204
|
+
type: "SAVE_VALIDATION_FAILED";
|
|
205
|
+
sectionId: string;
|
|
206
|
+
errors: Record<string, string[]>;
|
|
207
|
+
} | {
|
|
208
|
+
type: "SAVE_DIALOG_SHOWN";
|
|
209
|
+
componentId: string;
|
|
210
|
+
actionId: string;
|
|
211
|
+
dialogId: string;
|
|
212
|
+
} | {
|
|
213
|
+
type: "SAVE_ACTIONS_COMPLETE";
|
|
214
|
+
sectionId: string;
|
|
215
|
+
results: Record<string, unknown>;
|
|
216
|
+
}, Record<string, import('xstate').AnyActorRef>, import('xstate').ProvidedActor, import('xstate').ParameterizedObject, import('xstate').ParameterizedObject, string, import('xstate').StateValue, string, Partial<FormMachineContext>, import('xstate').NonReducibleUnknown, import('xstate').EventObject, import('xstate').MetaObject, any>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if navigation is allowed (fast property access)
|
|
3
|
+
*/
|
|
4
|
+
export declare const canNavigate: ({ context }: any) => any;
|
|
5
|
+
/**
|
|
6
|
+
* Check if pending navigation is for next step
|
|
7
|
+
*/
|
|
8
|
+
export declare const isPendingNextNavigation: ({ context }: any) => boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Check if pending navigation is for previous step
|
|
11
|
+
*/
|
|
12
|
+
export declare const isPendingPreviousNavigation: ({ context }: any) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Check if pending navigation is for specific step
|
|
15
|
+
*/
|
|
16
|
+
export declare const isPendingStepNavigation: ({ context }: any) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Check if there are save triggers that need execution before next navigation (cached)
|
|
19
|
+
*/
|
|
20
|
+
export declare const hasSaveTriggersForNext: ({ context }: any) => boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Check if there are dirty components with triggers for next navigation (optimized with early returns)
|
|
23
|
+
*/
|
|
24
|
+
export declare const hasDirtyComponentsForNextNavigation: ({ context }: any) => boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Check if navigation should proceed normally without triggers (optimized with early returns)
|
|
27
|
+
*/
|
|
28
|
+
export declare const shouldProceedWithNormalNavigation: ({ context }: any) => boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Check if save context has actions to execute (cached)
|
|
31
|
+
*/
|
|
32
|
+
export declare const hasSaveContextActions: ({ context }: any) => boolean;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { FormMachineContext } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Check if save validation passes and has actions to execute
|
|
4
|
+
*/
|
|
5
|
+
export declare const canExecuteSaveActions: ({ context, }: {
|
|
6
|
+
context: FormMachineContext;
|
|
7
|
+
}) => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Check if save is in progress
|
|
10
|
+
*/
|
|
11
|
+
export declare const isSaveInProgress: ({ context, }: {
|
|
12
|
+
context: FormMachineContext;
|
|
13
|
+
}) => boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Check if there's a section being saved
|
|
16
|
+
*/
|
|
17
|
+
export declare const hasSavingSection: ({ context, }: {
|
|
18
|
+
context: FormMachineContext;
|
|
19
|
+
}) => boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Check if save has validation errors
|
|
22
|
+
*/
|
|
23
|
+
export declare const hasSaveValidationErrors: ({ context, }: {
|
|
24
|
+
context: FormMachineContext;
|
|
25
|
+
}) => boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Check if all save verifications are complete
|
|
28
|
+
*/
|
|
29
|
+
export declare const allSaveVerificationsComplete: ({ context, }: {
|
|
30
|
+
context: FormMachineContext;
|
|
31
|
+
}) => boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Check if section mode is editable
|
|
34
|
+
*/
|
|
35
|
+
export declare const isSectionEditable: ({ context, }: {
|
|
36
|
+
context: FormMachineContext;
|
|
37
|
+
}) => boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Check if save was initiated by navigation
|
|
40
|
+
*/
|
|
41
|
+
export declare const isSaveInitiatedByNavigation: ({ context, }: {
|
|
42
|
+
context: FormMachineContext;
|
|
43
|
+
}) => boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Check if save execution plan exists and has actions
|
|
46
|
+
*/
|
|
47
|
+
export declare const hasSaveExecutionPlan: ({ context, }: {
|
|
48
|
+
context: FormMachineContext;
|
|
49
|
+
}) => boolean | null;
|
|
50
|
+
/**
|
|
51
|
+
* Check if save actions are completed
|
|
52
|
+
*/
|
|
53
|
+
export declare const areSaveActionsCompleted: ({ context, }: {
|
|
54
|
+
context: FormMachineContext;
|
|
55
|
+
}) => boolean;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if there are dirty components with triggers for navigation (optimized with early returns)
|
|
3
|
+
*/
|
|
4
|
+
export declare const hasDirtyComponentsWithTriggers: ({ context }: any) => boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Check if component trigger actions need to be executed (optimized with early returns)
|
|
7
|
+
*/
|
|
8
|
+
export declare const needsComponentTriggerActions: ({ context }: any) => boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Check if all component trigger actions are completed (optimized with early returns)
|
|
11
|
+
*/
|
|
12
|
+
export declare const allComponentTriggerActionsCompleted: ({ context }: any) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Check if component has pending actions (optimized with early returns)
|
|
15
|
+
*/
|
|
16
|
+
export declare const componentHasPendingActions: ({ context, event }: any) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Check if trigger is waiting for user action (fast property access)
|
|
19
|
+
*/
|
|
20
|
+
export declare const isTriggerWaitingForAction: ({ context }: any) => boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Check if trigger execution is complete (optimized boolean check)
|
|
23
|
+
*/
|
|
24
|
+
export declare const isTriggerExecutionComplete: ({ context }: any) => boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentAction, ComponentTrigger, FormWizardConfig } from '../../../../../../core/src/index.ts';
|
|
2
|
+
import { FormMachineContext } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Helper function to find component triggers in the config (optimized with ComponentTriggerEngine cache)
|
|
5
|
+
*/
|
|
6
|
+
export declare function findComponentTriggers(config: FormWizardConfig, componentId: string): ComponentTrigger[];
|
|
7
|
+
/**
|
|
8
|
+
* Helper function to find component actions in the config (optimized with ComponentTriggerEngine cache)
|
|
9
|
+
*/
|
|
10
|
+
export declare function findComponentActions(config: FormWizardConfig, componentId: string): ComponentAction[];
|
|
11
|
+
/**
|
|
12
|
+
* Helper function to evaluate if a trigger condition is met (optimized with early returns)
|
|
13
|
+
*/
|
|
14
|
+
export declare function evaluateTriggerCondition(trigger: ComponentTrigger, componentId: string, value: unknown, eventType: "valueChange" | "focus" | "blur", context: FormMachineContext): boolean;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ComponentTriggerEngine } from './componentTriggerEngine';
|
|
2
|
+
export { formMachine } from './formMachine';
|
|
3
|
+
export type { ComponentActionExecution, ComponentAlert, ComponentTriggerState, FormMachineContext as FormMachineContextType, FormMachineEvents, } from './types';
|
|
4
|
+
export { FormMachineContext, useFormMachine, useFormMachineProvider, } from './useFormMachine';
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
};
|