@digiform/wizard 0.3.0 → 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 (89) hide show
  1. package/core/src/types/guards.js +0 -12
  2. package/core/src/utils/apiBodyUtils.js +43 -75
  3. package/features/form-runtime/components/FormFooter.d.ts +5 -0
  4. package/features/form-runtime/hooks/useValidationEvents.d.ts +0 -1
  5. package/features/state-management/machines/formMachine.d.ts +3 -0
  6. package/features/state-management/machines/types.d.ts +4 -0
  7. package/features/state-management/machines/useFormMachine.d.ts +18 -0
  8. package/index.d.ts +2 -8
  9. package/index.js +2 -108
  10. package/package.json +1 -30
  11. package/styles.css +1 -1
  12. package/ui/src/lib/utils/templateUtils.js +11 -43
  13. package/wizard/src/features/api-integration/services/ApiCallService.js +65 -74
  14. package/wizard/src/features/dialog-system/components/ActionDialog/ActionDialog.js +39 -43
  15. package/wizard/src/features/dialog-system/components/ConfirmationDialog/ConfirmationDialog.js +37 -41
  16. package/wizard/src/features/dialog-system/components/EmailVerificationDialog/EmailVerificationDialog.js +44 -45
  17. package/wizard/src/features/form-runtime/FormWizard/FormWizard.js +56 -78
  18. package/wizard/src/features/form-runtime/components/FormField.js +28 -28
  19. package/wizard/src/features/form-runtime/components/FormFooter.js +53 -184
  20. package/wizard/src/features/form-runtime/components/FormSection/FormSection.js +152 -196
  21. package/wizard/src/features/form-runtime/components/FormStep/FormStep.js +82 -91
  22. package/wizard/src/features/form-runtime/components/StepProgressIndicator/StepProgressIndicator.js +24 -30
  23. package/wizard/src/features/form-runtime/config/configResolver.js +10 -14
  24. package/wizard/src/features/form-runtime/config/templateLoader.js +71 -108
  25. package/wizard/src/features/form-runtime/hooks/useComponentTriggers.js +45 -88
  26. package/wizard/src/features/form-runtime/hooks/useFieldEventHandlers.js +27 -41
  27. package/wizard/src/features/form-runtime/hooks/useFormFieldState.js +5 -5
  28. package/wizard/src/features/form-runtime/hooks/useValidationEvents.js +22 -25
  29. package/wizard/src/features/form-runtime/utils/errorUtils.js +31 -42
  30. package/wizard/src/features/form-runtime/utils/formDirtyStateSync.js +26 -37
  31. package/wizard/src/features/form-runtime/utils/logger.js +12 -12
  32. package/wizard/src/features/form-runtime/utils/validationUX.js +14 -55
  33. package/wizard/src/features/state-management/machines/actions/navigationActions.js +13 -8
  34. package/wizard/src/features/state-management/machines/componentTriggerEngine.js +167 -432
  35. package/wizard/src/features/state-management/machines/formMachine.js +558 -677
  36. package/wizard/src/features/state-management/machines/useFormMachine.js +172 -190
  37. package/wizard/src/features/trigger-action-system/components/ActionManager.js +35 -86
  38. package/wizard/src/features/validation-system/validation/SchemaBuilder.js +28 -82
  39. package/wizard/src/features/validation-system/validation/ValidationCache.js +11 -27
  40. package/wizard/src/features/validation-system/validation/ValidationEngine.js +24 -29
  41. package/wizard/src/features/validation-system/validation/ValidationExecutor.js +26 -58
  42. package/FormWizard.d.ts +0 -10
  43. package/core/src/types/api.js +0 -12
  44. package/core/src/types/form-config.js +0 -60
  45. package/core/src/types/form-wizard-config-schema.js +0 -113
  46. package/core/src/types/validation.js +0 -61
  47. package/features/api-integration.d.ts +0 -2
  48. package/features/api-integration.js +0 -17
  49. package/features/dialog-system.d.ts +0 -2
  50. package/features/dialog-system.js +0 -9
  51. package/features/form-runtime/utils/formSaver.d.ts +0 -22
  52. package/features/form-runtime.d.ts +0 -2
  53. package/features/form-runtime.js +0 -63
  54. package/features/index.d.ts +0 -11
  55. package/features/state-management/components/ValidationBuilder/ValidationBuilder.d.ts +0 -9
  56. package/features/state-management/machines/__tests__/setup.d.ts +0 -0
  57. package/features/state-management/machines/__tests__/vitest.config.d.ts +0 -2
  58. package/features/state-management/machines/actions/validationActions.d.ts +0 -68
  59. package/features/state-management/machines/lazyLoading.d.ts +0 -34
  60. package/features/state-management/machines/validation/index.d.ts +0 -5
  61. package/features/state-management/machines/validation/validateField.d.ts +0 -2
  62. package/features/state-management/machines/validation/validateForm.d.ts +0 -2
  63. package/features/state-management/machines/validation/validateSection.d.ts +0 -2
  64. package/features/state-management/machines/validation/validateStep.d.ts +0 -2
  65. package/features/state-management/machines/validation/validationTypes.d.ts +0 -1
  66. package/features/state-management.d.ts +0 -2
  67. package/features/state-management.js +0 -21
  68. package/features/trigger-action-system/components/FieldWarning/FieldWarning.d.ts +0 -20
  69. package/features/trigger-action-system.d.ts +0 -2
  70. package/features/trigger-action-system.js +0 -12
  71. package/features/validation-system.d.ts +0 -2
  72. package/features/validation-system.js +0 -23
  73. package/styles/index.d.ts +0 -0
  74. package/ui/src/components/badge/badge.js +0 -20
  75. package/ui/src/components/badge/badge.module.css.js +0 -12
  76. package/wizard/src/features/api-integration/services/ActionExecutor.js +0 -339
  77. package/wizard/src/features/api-integration/services/ApiCallExecutor.js +0 -6
  78. package/wizard/src/features/api-integration/services/DialogExecutor.js +0 -6
  79. package/wizard/src/features/api-integration/services/GenericTriggerService.js +0 -284
  80. package/wizard/src/features/api-integration/services/NavigationExecutor.js +0 -6
  81. package/wizard/src/features/form-runtime/config/templateConfig.js +0 -156
  82. package/wizard/src/features/form-runtime/config/templateUtils.js +0 -14
  83. package/wizard/src/features/form-runtime/utils/validation.js +0 -100
  84. package/wizard/src/features/trigger-action-system/components/ActionLoadingIndicator/ActionLoadingIndicator.js +0 -46
  85. package/wizard/src/features/trigger-action-system/components/ActionLoadingIndicator/ActionLoadingIndicator.module.css.js +0 -30
  86. package/wizard/src/features/trigger-action-system/utils/GenericTriggerEngine.js +0 -376
  87. package/wizard/src/features/validation-system/components/ValidationDebugger.js +0 -69
  88. package/wizard/src/features/validation-system/validation/tanstackSchemaAdapter.js +0 -17
  89. package/wizard/src/features/validation-system/validation/validationService.js +0 -74
@@ -1,12 +0,0 @@
1
- "use client";
2
- const e = {
3
- string: ["text", "email", "tel", "password", "textarea", "select"],
4
- number: ["number", "range"],
5
- boolean: ["checkbox", "radio"],
6
- array: ["select", "checkbox-group", "radio-group"],
7
- object: [],
8
- null: []
9
- };
10
- export {
11
- e as TYPE_COMPATIBILITY
12
- };
@@ -1,60 +0,0 @@
1
- "use client";
2
- import { z as o } from "zod";
3
- const t = o.object({
4
- team: o.string()
5
- }), a = o.object({
6
- primaryStorage: o.string(),
7
- fallbackPaths: o.array(o.string()).optional(),
8
- staticAssets: o.string().optional(),
9
- templates: o.union([o.string(), t]).optional()
10
- }), e = o.object({
11
- enabled: o.boolean(),
12
- maxBackups: o.number().int().positive(),
13
- backupPath: o.string()
14
- }), n = o.object({
15
- strategy: o.enum(["filesystem", "memory", "database"]),
16
- paths: a,
17
- fileExtension: o.string(),
18
- createDirectories: o.boolean(),
19
- backup: e.optional()
20
- }), i = o.object({
21
- strictMode: o.boolean(),
22
- validateOnLoad: o.boolean(),
23
- allowMigration: o.boolean()
24
- }), r = o.object({
25
- minVersion: o.string(),
26
- maxVersion: o.string()
27
- }), s = o.object({
28
- version: o.string(),
29
- lastUpdated: o.string().datetime(),
30
- compatibility: r
31
- }), c = o.object({
32
- autoBackup: o.boolean(),
33
- formTemplates: o.boolean(),
34
- formVersioning: o.boolean(),
35
- formSharing: o.boolean()
36
- }), l = o.object({
37
- enabled: o.boolean(),
38
- sourceDirectories: o.array(o.string()),
39
- preserveOriginals: o.boolean(),
40
- logMigration: o.boolean()
41
- }), m = o.object({
42
- $schema: o.string().optional(),
43
- storage: n,
44
- validation: i.optional(),
45
- metadata: s.optional(),
46
- features: c.optional(),
47
- migration: l.optional()
48
- });
49
- export {
50
- e as BackupConfigSchema,
51
- r as CompatibilitySchema,
52
- c as FeaturesConfigSchema,
53
- m as FormConfigSchema,
54
- s as MetadataConfigSchema,
55
- l as MigrationConfigSchema,
56
- n as StorageConfigSchema,
57
- a as StoragePathsSchema,
58
- t as TemplateStorageConfigSchema,
59
- i as ValidationConfigSchema
60
- };
@@ -1,113 +0,0 @@
1
- "use client";
2
- import { z as o } from "zod";
3
- const i = o.object({
4
- id: o.string(),
5
- type: o.string(),
6
- label: o.string().optional(),
7
- required: o.boolean().optional(),
8
- validation: o.record(o.unknown()).optional(),
9
- triggers: o.array(
10
- o.object({
11
- type: o.string(),
12
- condition: o.unknown().optional(),
13
- actions: o.array(
14
- o.object({
15
- type: o.string(),
16
- config: o.unknown().optional()
17
- })
18
- )
19
- })
20
- ).optional()
21
- }).passthrough(), e = o.object({
22
- id: o.string(),
23
- title: o.string().optional(),
24
- mode: o.enum(["readOnly", "editable", "default", "isEditable"]).optional(),
25
- components: o.array(i),
26
- showTitle: o.boolean().optional(),
27
- showActionLink: o.boolean().optional(),
28
- editText: o.string().optional(),
29
- cancelText: o.string().optional(),
30
- saveText: o.string().optional(),
31
- // biome-ignore lint/suspicious/noExplicitAny: preserves backward compat (was `any` in hand-written interface)
32
- genericTriggerActions: o.any().optional(),
33
- visibilityConditions: o.unknown().optional(),
34
- triggerContexts: o.object({
35
- supportsSectionSave: o.boolean(),
36
- showSaveButton: o.boolean(),
37
- autoSaveOnNavigate: o.boolean()
38
- }).optional(),
39
- fieldValidation: o.unknown().optional()
40
- // Complex nested structure, validate at runtime
41
- }).passthrough(), t = o.object({
42
- next: o.object({
43
- label: o.string(),
44
- enabled: o.boolean()
45
- }),
46
- previous: o.object({
47
- label: o.string(),
48
- enabled: o.boolean()
49
- })
50
- }), a = o.object({
51
- label: o.string().optional(),
52
- showPercentage: o.boolean().optional(),
53
- duration: o.number().optional(),
54
- size: o.enum(["sm", "md", "lg"]).optional(),
55
- variant: o.enum(["default", "minimal", "branded", "striped"]).optional(),
56
- animationSpeed: o.enum(["slow", "normal", "fast"]).optional(),
57
- completionMessage: o.string().optional(),
58
- apiEndpoint: o.object({
59
- endpoint: o.string(),
60
- method: o.enum(["GET", "POST", "PUT", "DELETE"]).optional(),
61
- successStatus: o.union([o.number(), o.array(o.number())]).optional()
62
- }).optional()
63
- }).optional(), r = o.object({
64
- id: o.string(),
65
- title: o.string(),
66
- displayTitle: o.boolean().optional(),
67
- showStepNumber: o.boolean().optional(),
68
- sections: o.array(e).optional(),
69
- navigation: t,
70
- actions: o.array(o.unknown()).optional(),
71
- // biome-ignore lint/suspicious/noExplicitAny: preserves backward compat (was `any` in hand-written interface)
72
- genericTriggerActions: o.any().optional(),
73
- waitForLoader: o.boolean().optional(),
74
- loaderConfig: a
75
- }).passthrough(), l = o.object({
76
- id: o.string(),
77
- templateId: o.string(),
78
- navigation: t.partial().optional(),
79
- readonly: o.boolean().optional(),
80
- title: o.string().optional(),
81
- stepIndex: o.number().optional(),
82
- componentOverrides: o.record(o.unknown()).optional(),
83
- sectionOverrides: o.record(o.unknown()).optional(),
84
- showStepNumber: o.boolean().optional(),
85
- actions: o.array(o.unknown()).optional()
86
- }).passthrough(), s = o.object({
87
- schemaVersion: o.number().optional(),
88
- // Version tracking for lazy migration
89
- id: o.string(),
90
- title: o.string(),
91
- description: o.string().optional(),
92
- steps: o.array(o.union([r, l])),
93
- validationMessageStyle: o.enum(["withLabel", "simple"]).optional(),
94
- // biome-ignore lint/suspicious/noExplicitAny: preserves backward compat (was `any` in hand-written interface)
95
- genericTriggerActions: o.any().optional()
96
- }).passthrough();
97
- function c(n) {
98
- return s.safeParse(n);
99
- }
100
- function g(n) {
101
- return n?.schemaVersion ?? 1;
102
- }
103
- export {
104
- i as FormComponentSchema,
105
- e as FormSectionSchema,
106
- r as FormStepSchema,
107
- s as FormWizardConfigSchema,
108
- a as StepLoaderConfigSchema,
109
- t as StepNavigationSchema,
110
- l as TemplateStepSchema,
111
- g as getSchemaVersion,
112
- c as validateFormConfig
113
- };
@@ -1,61 +0,0 @@
1
- "use client";
2
- const l = {
3
- required: {
4
- withLabel: (e) => `${e} is verplicht`,
5
- simple: () => "Dit veld is verplicht"
6
- },
7
- minLength: {
8
- withLabel: (e, i) => `${e} moet minimaal ${i} tekens lang zijn`,
9
- simple: (e) => `Dit veld moet minimaal ${e} tekens lang zijn`
10
- },
11
- maxLength: {
12
- withLabel: (e, i) => `${e} moet maximaal ${i} tekens lang zijn`,
13
- simple: (e) => `Dit veld moet maximaal ${e} tekens lang zijn`
14
- },
15
- pattern: {
16
- withLabel: (e) => `${e} formaat is ongeldig`,
17
- simple: () => "Dit veld formaat is ongeldig"
18
- },
19
- email: {
20
- withLabel: (e) => `${e} moet een geldig e-mailadres zijn`,
21
- simple: () => "Dit veld moet een geldig e-mailadres zijn"
22
- },
23
- min: {
24
- withLabel: (e, i) => `${e} moet minimaal ${i} zijn`,
25
- simple: (e) => `Dit veld moet minimaal ${e} zijn`
26
- },
27
- max: {
28
- withLabel: (e, i) => `${e} moet maximaal ${i} zijn`,
29
- simple: (e) => `Dit veld moet maximaal ${e} zijn`
30
- },
31
- minItems: {
32
- withLabel: (e, i) => `${e} moet minimaal ${i} items hebben`,
33
- simple: (e) => `Dit veld moet minimaal ${e} items hebben`
34
- },
35
- maxItems: {
36
- withLabel: (e, i) => `${e} moet maximaal ${i} items hebben`,
37
- simple: (e) => `Dit veld moet maximaal ${e} items hebben`
38
- },
39
- url: {
40
- withLabel: (e) => `${e} moet een geldige URL zijn`,
41
- simple: () => "Dit veld moet een geldige URL zijn"
42
- },
43
- phone: {
44
- withLabel: (e) => `${e} moet een geldig telefoonnummer zijn`,
45
- simple: () => "Dit veld moet een geldig telefoonnummer zijn"
46
- }
47
- }, n = {
48
- // For components that need labeled messages (ValidationBuilder, etc.)
49
- withLabel: (e, i, ...m) => l[e].withLabel(i, ...m),
50
- // For components that need simple messages (createZodSchema, etc.)
51
- simple: (e, ...i) => l[e].simple(...i),
52
- // Dynamic message selection based on form configuration (defaults to withLabel)
53
- auto: (e, i, m = "withLabel", ...t) => {
54
- const a = l[e];
55
- return m === "simple" ? a.simple(...t) : a.withLabel(i, ...t);
56
- }
57
- };
58
- export {
59
- l as DEFAULT_VALIDATION_MESSAGES,
60
- n as getValidationMessage
61
- };
@@ -1,2 +0,0 @@
1
- export * from './api-integration/index'
2
- export {}
@@ -1,17 +0,0 @@
1
- "use client";
2
- import { ActionExecutor as e } from "../wizard/src/features/api-integration/services/ActionExecutor.js";
3
- import { ApiCallExecutor as c } from "../wizard/src/features/api-integration/services/ApiCallExecutor.js";
4
- import { ApiCallService as x } from "../wizard/src/features/api-integration/services/ApiCallService.js";
5
- import { DialogExecutor as f } from "../wizard/src/features/api-integration/services/DialogExecutor.js";
6
- import { EnhancedActionExecutor as n } from "../wizard/src/features/api-integration/components/EnhancedActionExecutor/EnhancedActionExecutor.js";
7
- import { GenericTriggerService as l } from "../wizard/src/features/api-integration/services/GenericTriggerService.js";
8
- import { NavigationExecutor as E } from "../wizard/src/features/api-integration/services/NavigationExecutor.js";
9
- export {
10
- e as ActionExecutor,
11
- c as ApiCallExecutor,
12
- x as ApiCallService,
13
- f as DialogExecutor,
14
- n as EnhancedActionExecutor,
15
- l as GenericTriggerService,
16
- E as NavigationExecutor
17
- };
@@ -1,2 +0,0 @@
1
- export * from './dialog-system/index'
2
- export {}
@@ -1,9 +0,0 @@
1
- "use client";
2
- import { ActionDialog as r } from "../wizard/src/features/dialog-system/components/ActionDialog/ActionDialog.js";
3
- import { ConfirmationDialog as a } from "../wizard/src/features/dialog-system/components/ConfirmationDialog/ConfirmationDialog.js";
4
- import { EmailVerificationDialog as f } from "../wizard/src/features/dialog-system/components/EmailVerificationDialog/EmailVerificationDialog.js";
5
- export {
6
- r as ActionDialog,
7
- a as ConfirmationDialog,
8
- f as EmailVerificationDialog
9
- };
@@ -1,22 +0,0 @@
1
- import { FormWizardConfig } from '../../../../../core/src/index.ts';
2
- export interface SaveResult {
3
- success: boolean;
4
- error?: {
5
- message: string;
6
- code?: string;
7
- };
8
- metadata?: {
9
- filePath?: string;
10
- timestamp?: number;
11
- };
12
- }
13
- /**
14
- * Save form configuration using the pluggable save provider system
15
- * This is a self-contained function that doesn't rely on external utilities
16
- */
17
- export declare function saveFormConfig(projectId: string, wizardId: string, config: FormWizardConfig): Promise<SaveResult>;
18
- /**
19
- * Load form configuration
20
- * Companion function to saveFormConfig for loading saved forms
21
- */
22
- export declare function loadFormConfig(projectId: string, wizardId: string): Promise<FormWizardConfig | null>;
@@ -1,2 +0,0 @@
1
- export * from './form-runtime/index'
2
- export {}
@@ -1,63 +0,0 @@
1
- "use client";
2
- import { adaptComponentForRegistry as r } from "../wizard/src/features/form-runtime/ComponentAdapterComplete/ComponentAdapterComplete.js";
3
- import { default as o } from "../wizard/src/features/form-runtime/FormWizard/FormWizard.js";
4
- import { default as i } from "../wizard/src/features/form-runtime/components/FormField.js";
5
- import { default as s } from "../wizard/src/features/form-runtime/components/FormSection/FormSection.js";
6
- import { default as n } from "../wizard/src/features/form-runtime/components/FormStep/FormStep.js";
7
- import { getAvailableGenericTemplatesSync as d, getTemplateInfo as T, validateTemplateReferences as f } from "../wizard/src/features/form-runtime/config/templateUtils.js";
8
- import { getUsedTemplateIds as u, hasTemplateSteps as x, resolveFormWizardConfig as I } from "../wizard/src/features/form-runtime/config/configResolver.js";
9
- import { getLockMessage as A, getTemplateConfig as F, getTemplateDisplayConfig as C, getTemplatePermissions as y, getTemplateTypeFromInput as E, isActionAllowed as M, isGenericTemplateInput as S, isStepLocked as V, isTeamTemplateInput as b, validateTemplateAction as h } from "../wizard/src/features/form-runtime/config/templateConfig.js";
10
- import { clearTemplateCache as k, getAvailableGenericTemplates as G, getAvailableTemplates as R, getTemplateMetadata as U, loadTemplate as L, resolveTemplateStep as w } from "../wizard/src/features/form-runtime/config/templateLoader.js";
11
- import { useComponentTriggers as N, useFieldTriggerMonitor as W } from "../wizard/src/features/form-runtime/hooks/useComponentTriggers.js";
12
- import { getErrorDebugInfo as P, getFirstErrorMessage as _, getMostRelevantError as j, parseAllErrors as q, parseError as B } from "../wizard/src/features/form-runtime/utils/errorUtils.js";
13
- import { validateComponentValue as J, validateRule as K } from "../wizard/src/features/form-runtime/utils/validation.js";
14
- import { VALIDATION_TIMING as X, clearUserInteractionTracking as Y, getDisplayErrorMessage as Z, getValidationTiming as $, hasUserInteracted as ee, markFieldAsUserInteracted as te, shouldShowValidationError as re, updateValidationCache as ae } from "../wizard/src/features/form-runtime/utils/validationUX.js";
15
- import { evaluateVisibility as le, getVisibilityDependencies as ie } from "../wizard/src/features/form-runtime/utils/visibilityUtils.js";
16
- export {
17
- r as ComponentAdapterComplete,
18
- i as FormField,
19
- s as FormSection,
20
- n as FormStep,
21
- o as FormWizard,
22
- X as VALIDATION_TIMING,
23
- k as clearTemplateCache,
24
- Y as clearUserInteractionTracking,
25
- le as evaluateVisibility,
26
- G as getAvailableGenericTemplates,
27
- d as getAvailableGenericTemplatesSync,
28
- R as getAvailableTemplates,
29
- Z as getDisplayErrorMessage,
30
- P as getErrorDebugInfo,
31
- _ as getFirstErrorMessage,
32
- A as getLockMessage,
33
- j as getMostRelevantError,
34
- F as getTemplateConfig,
35
- C as getTemplateDisplayConfig,
36
- T as getTemplateInfo,
37
- U as getTemplateMetadata,
38
- y as getTemplatePermissions,
39
- E as getTemplateTypeFromInput,
40
- u as getUsedTemplateIds,
41
- $ as getValidationTiming,
42
- ie as getVisibilityDependencies,
43
- x as hasTemplateSteps,
44
- ee as hasUserInteracted,
45
- M as isActionAllowed,
46
- S as isGenericTemplateInput,
47
- V as isStepLocked,
48
- b as isTeamTemplateInput,
49
- L as loadTemplate,
50
- te as markFieldAsUserInteracted,
51
- q as parseAllErrors,
52
- B as parseError,
53
- I as resolveFormWizardConfig,
54
- w as resolveTemplateStep,
55
- re as shouldShowValidationError,
56
- ae as updateValidationCache,
57
- N as useComponentTriggers,
58
- W as useFieldTriggerMonitor,
59
- J as validateComponentValue,
60
- K as validateRule,
61
- h as validateTemplateAction,
62
- f as validateTemplateReferences
63
- };
@@ -1,11 +0,0 @@
1
- /**
2
- * Form Wizard Component Features
3
- *
4
- * Feature-based exports for the form wizard component
5
- */
6
- export * from './api-integration';
7
- export * from './dialog-system';
8
- export * from './form-runtime';
9
- export * from './state-management';
10
- export * from './trigger-action-system';
11
- export * from './validation-system';
@@ -1,9 +0,0 @@
1
- import { ComponentValidation } from '../../machines/validation/validationTypes';
2
- interface ValidationBuilderProps {
3
- componentType: string;
4
- componentLabel: string;
5
- validation: ComponentValidation;
6
- onChange: (validation: ComponentValidation) => void;
7
- }
8
- export declare const ValidationBuilder: React.FC<ValidationBuilderProps>;
9
- export {};
@@ -1,2 +0,0 @@
1
- declare const _default: import('vite').UserConfig;
2
- export default _default;
@@ -1,68 +0,0 @@
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;
@@ -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,2 +0,0 @@
1
- export * from './state-management/index'
2
- export {}
@@ -1,21 +0,0 @@
1
- "use client";
2
- import { ComponentTriggerEngine as o, createExecutionPlan as r, determineTriggerContext as i, evaluateComponentTriggers as t, findComponentActions as g, findComponentTriggers as m, findDirtyComponentsForNavigation as s, findDirtyComponentsWithTriggers as a, getTriggersForAction as p, hasComponentActions as c, hasComponentTriggers as C } from "../wizard/src/features/state-management/machines/componentTriggerEngine.js";
3
- import { FormMachineContext as h, useFormMachine as T, useFormMachineProvider as d } from "../wizard/src/features/state-management/machines/useFormMachine.js";
4
- import { formMachine as u } from "../wizard/src/features/state-management/machines/formMachine.js";
5
- export {
6
- o as ComponentTriggerEngine,
7
- h as FormMachineContext,
8
- r as createExecutionPlan,
9
- i as determineTriggerContext,
10
- t as evaluateComponentTriggers,
11
- g as findComponentActions,
12
- m as findComponentTriggers,
13
- s as findDirtyComponentsForNavigation,
14
- a as findDirtyComponentsWithTriggers,
15
- u as formMachine,
16
- p as getTriggersForAction,
17
- c as hasComponentActions,
18
- C as hasComponentTriggers,
19
- T as useFormMachine,
20
- d as useFormMachineProvider
21
- };
@@ -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;
@@ -1,2 +0,0 @@
1
- export * from './trigger-action-system/index'
2
- export {}
@@ -1,12 +0,0 @@
1
- "use client";
2
- import { ActionLoadingIndicator as o } from "../wizard/src/features/trigger-action-system/components/ActionLoadingIndicator/ActionLoadingIndicator.js";
3
- import { ActionManager as n } from "../wizard/src/features/trigger-action-system/components/ActionManager.js";
4
- import { ComponentAlert as g } from "../wizard/src/features/trigger-action-system/components/ComponentAlert/ComponentAlert.js";
5
- import { GenericTriggerEngine as a, createTriggerContext as m } from "../wizard/src/features/trigger-action-system/utils/GenericTriggerEngine.js";
6
- export {
7
- o as ActionLoadingIndicator,
8
- n as ActionManager,
9
- g as ComponentAlert,
10
- a as GenericTriggerEngine,
11
- m as createTriggerContext
12
- };
@@ -1,2 +0,0 @@
1
- export * from './validation-system/index'
2
- export {}
@@ -1,23 +0,0 @@
1
- "use client";
2
- import { default as t } from "../wizard/src/features/validation-system/components/ValidationDebugger.js";
3
- import { createTanStackSchema as n, validateWithTanStack as o, validateWithTanStackReturnArray as l } from "../wizard/src/features/validation-system/validation/tanstackSchemaAdapter.js";
4
- import { ValidationEngine as d, createValidationEngine as m, defaultValidationEngine as p } from "../wizard/src/features/validation-system/validation/ValidationEngine.js";
5
- import { findComponentById as f, getAllComponents as g, getStepComponents as S, isFormValid as s, isStepValid as u, validateField as v, validateFieldReturnArray as V, validateForm as x, validateStep as F } from "../wizard/src/features/validation-system/validation/validationService.js";
6
- export {
7
- t as ValidationDebugger,
8
- d as ValidationEngine,
9
- n as createTanStackSchema,
10
- m as createValidationEngine,
11
- p as defaultValidationEngine,
12
- f as findComponentById,
13
- g as getAllComponents,
14
- S as getStepComponents,
15
- s as isFormValid,
16
- u as isStepValid,
17
- v as validateField,
18
- V as validateFieldReturnArray,
19
- x as validateForm,
20
- F as validateStep,
21
- o as validateWithTanStack,
22
- l as validateWithTanStackReturnArray
23
- };
package/styles/index.d.ts DELETED
File without changes