@digiform/builder 0.1.7 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/FormBuilder.d.ts +24 -0
  2. package/client.d.ts +18 -0
  3. package/component-registry/components/alert.d.ts +4 -0
  4. package/component-registry/components/button.d.ts +4 -0
  5. package/component-registry/components/checkbox.d.ts +9 -0
  6. package/component-registry/components/code-input/code-input.d.ts +4 -0
  7. package/component-registry/components/dropdown.d.ts +1 -0
  8. package/component-registry/components/heading.d.ts +4 -0
  9. package/component-registry/components/index.d.ts +35 -0
  10. package/component-registry/components/paragraph.d.ts +4 -0
  11. package/component-registry/components/progress-loader.d.ts +4 -0
  12. package/component-registry/components/radioGroup.d.ts +1 -0
  13. package/component-registry/components/text.d.ts +2 -0
  14. package/component-registry/components/textarea.d.ts +2 -0
  15. package/component-registry/createFormFieldComponent.d.ts +52 -0
  16. package/component-registry/index.d.ts +3 -0
  17. package/component-registry/types.d.ts +42 -0
  18. package/component-registry/utils.d.ts +33 -0
  19. package/component-registry/validation.d.ts +141 -0
  20. package/component-registry/validationBridge.d.ts +10 -0
  21. package/components/ConnectionErrorScreen/ConnectionErrorScreen.d.ts +10 -0
  22. package/components/DatabaseStatusIndicator/DatabaseStatusIndicator.d.ts +24 -0
  23. package/config/SecureConfigLoader.d.ts +57 -0
  24. package/config/hooks.d.ts +2 -0
  25. package/config/index.d.ts +5 -0
  26. package/config/types.d.ts +94 -0
  27. package/configReader-BkMPr3Ju.js.map +1 -1
  28. package/configReader-CbGTKRUP.cjs.map +1 -1
  29. package/design-system/components/ComponentSourceBadge/ComponentSourceBadge.d.ts +15 -0
  30. package/design-system/components/FormFieldWrapper/FormFieldWrapper.d.ts +18 -0
  31. package/design-system/custom/config/date-preset.config.d.ts +7 -0
  32. package/design-system/custom/config/email-preset.config.d.ts +7 -0
  33. package/design-system/custom/config/index.d.ts +10 -0
  34. package/design-system/custom/config/number-preset.config.d.ts +7 -0
  35. package/design-system/custom/config/tel-preset.config.d.ts +7 -0
  36. package/design-system/custom/index.d.ts +17 -0
  37. package/design-system/custom/utils/create-preset-config.d.ts +74 -0
  38. package/design-system/generated/rhc-catalog.generated.d.ts +9360 -0
  39. package/design-system/index.d.ts +15 -0
  40. package/design-system/rhc/components.d.ts +12 -0
  41. package/design-system/rhc/config/alert.config.d.ts +5 -0
  42. package/design-system/rhc/config/button.config.d.ts +8 -0
  43. package/design-system/rhc/config/checkbox.config.d.ts +4 -0
  44. package/design-system/rhc/config/form-builder.config.d.ts +74 -0
  45. package/design-system/rhc/config/heading.config.d.ts +5 -0
  46. package/design-system/rhc/config/index.d.ts +9 -0
  47. package/design-system/rhc/config/paragraph.config.d.ts +8 -0
  48. package/design-system/rhc/config/radio-group.config.d.ts +5 -0
  49. package/design-system/rhc/config/select.config.d.ts +5 -0
  50. package/design-system/rhc/config/text-input.config.d.ts +5 -0
  51. package/design-system/rhc/config/textarea.config.d.ts +4 -0
  52. package/design-system/rhc/index.d.ts +1 -0
  53. package/design-system/rhc/utils/create-config.d.ts +76 -0
  54. package/design-system/rhc/utils/generate-schema.d.ts +20 -0
  55. package/design-system/types.d.ts +22 -0
  56. package/error-boundaries/BaseErrorBoundary/BaseErrorBoundary.d.ts +31 -0
  57. package/error-boundaries/ComponentErrorBoundary/ComponentErrorBoundary.d.ts +9 -0
  58. package/error-boundaries/ErrorBoundaryTest/ErrorBoundaryTest.d.ts +2 -0
  59. package/error-boundaries/FlowBuilderErrorBoundary/FlowBuilderErrorBoundary.d.ts +7 -0
  60. package/error-boundaries/index.d.ts +1 -0
  61. package/features/condition-editor/components/ConditionEditor/ConditionEditor.d.ts +17 -0
  62. package/features/condition-editor/components/ConditionItem/ConditionItem.d.ts +17 -0
  63. package/features/condition-editor/components/ConditionOperatorSelect/ConditionOperatorSelect.d.ts +8 -0
  64. package/features/condition-editor/components/ConditionRow/ConditionRow.d.ts +14 -0
  65. package/features/condition-editor/components/ConditionSummary/ConditionSummary.d.ts +7 -0
  66. package/features/condition-editor/components/ConditionTargetSelect/ConditionTargetSelect.d.ts +14 -0
  67. package/features/condition-editor/components/ConditionValueInput/ConditionValueInput.d.ts +10 -0
  68. package/features/condition-editor/components/EditConditionForm/EditConditionForm.d.ts +13 -0
  69. package/features/condition-editor/components/ExistingCondition/ExistingCondition.d.ts +13 -0
  70. package/features/condition-editor/components/LogicalConnector/LogicalConnector.d.ts +8 -0
  71. package/features/condition-editor/components/LogicalOperatorToggle/LogicalOperatorToggle.d.ts +13 -0
  72. package/features/condition-editor/components/NewConditionBuilder/NewConditionBuilder.d.ts +10 -0
  73. package/features/condition-editor/components/NewConditionRow/NewConditionRow.d.ts +15 -0
  74. package/features/condition-editor/components/VisibilityConditionBuilder/VisibilityConditionBuilder.d.ts +17 -0
  75. package/features/condition-editor/components/hooks/useTargetComponents.d.ts +6 -0
  76. package/features/condition-editor/components/utils/conditionUtils.d.ts +7 -0
  77. package/features/condition-editor/components/visibilityHelpers.d.ts +21 -0
  78. package/features/condition-editor/index.d.ts +17 -0
  79. package/features/dialog-system/components/ConfirmDialog.d.ts +12 -0
  80. package/features/dialog-system/components/DialogEditor/DialogEditor.d.ts +12 -0
  81. package/features/dialog-system/components/ModalDialog/ModalDialog.d.ts +12 -0
  82. package/features/dialog-system/components/VerifyEmailDialog/VerifyEmailDialog.d.ts +10 -0
  83. package/features/dialog-system/index.d.ts +4 -0
  84. package/features/form-builder/components/actions/ActionsPanel/ActionsPanel.d.ts +3 -0
  85. package/features/form-builder/components/actions/SortableActionItem/SortableActionItem.d.ts +9 -0
  86. package/features/form-builder/components/actions/index.d.ts +4 -0
  87. package/features/form-builder/components/actions-menu/FormBuilderActionsMenu/FormBuilderActionsMenu.d.ts +1 -0
  88. package/features/form-builder/components/actions-menu/index.d.ts +3 -0
  89. package/features/form-builder/components/actions-menu/items/CreateTemplateMenuItem/CreateTemplateMenuItem.d.ts +2 -0
  90. package/features/form-builder/components/actions-menu/items/ExampleMenuItem/ExampleMenuItem.d.ts +2 -0
  91. package/features/form-builder/components/actions-menu/items/index.d.ts +2 -0
  92. package/features/form-builder/components/actions-menu/registry.d.ts +9 -0
  93. package/features/form-builder/components/actions-menu/types.d.ts +44 -0
  94. package/features/form-builder/components/buttons/PreviewButton/PreviewButton.d.ts +74 -0
  95. package/features/form-builder/components/buttons/SaveDropdownButton/SaveDropdownButton.d.ts +8 -0
  96. package/features/form-builder/components/buttons/index.d.ts +6 -0
  97. package/features/form-builder/components/canvas/AdminRenderCanvasItems/AdminRenderCanvasItems.d.ts +15 -0
  98. package/features/form-builder/components/canvas/Canvas/Canvas.d.ts +3 -0
  99. package/features/form-builder/components/canvas/CanvasComponent/CanvasComponent.d.ts +16 -0
  100. package/features/form-builder/components/canvas/SortableComponent/SortableComponent.d.ts +13 -0
  101. package/features/form-builder/components/canvas/index.d.ts +8 -0
  102. package/features/form-builder/components/components-panel/FormWizardComponentItem/FormWizardComponentItem.d.ts +7 -0
  103. package/features/form-builder/components/components-panel/FormWizardComponentsPanel/FormWizardComponentsPanel.d.ts +6 -0
  104. package/features/form-builder/components/components-panel/SortableComponentItem/SortableComponentItem.d.ts +20 -0
  105. package/features/form-builder/components/components-panel/index.d.ts +6 -0
  106. package/features/form-builder/components/core/AdminFormContent/AdminFormContent.d.ts +5 -0
  107. package/features/form-builder/components/core/FormBuilder/FormBuilder.d.ts +23 -0
  108. package/features/form-builder/components/core/index.d.ts +4 -0
  109. package/features/form-builder/components/editors/AdminPropertiesPanel/AdminPropertiesPanel.d.ts +3 -0
  110. package/features/form-builder/components/editors/ConditionsTab/ConditionsTab.d.ts +10 -0
  111. package/features/form-builder/components/editors/NavigationEditor/NavigationEditor.d.ts +13 -0
  112. package/features/form-builder/components/editors/NavigationSettings/NavigationSettings.d.ts +2 -0
  113. package/features/form-builder/components/editors/SectionConfigEditor/SectionConfigEditor.d.ts +8 -0
  114. package/features/form-builder/components/editors/index.d.ts +10 -0
  115. package/features/form-builder/components/fields/FieldValueButton/FieldValueButton.d.ts +7 -0
  116. package/features/form-builder/components/fields/FormFieldSelector/FormFieldSelector.d.ts +19 -0
  117. package/features/form-builder/components/fields/index.d.ts +4 -0
  118. package/features/form-builder/components/index.d.ts +13 -0
  119. package/features/form-builder/components/layout/FormFooter.d.ts +11 -0
  120. package/features/form-builder/components/layout/FormFooterBase.d.ts +15 -0
  121. package/features/form-builder/components/layout/FormHeader/FormHeader.d.ts +35 -0
  122. package/features/form-builder/components/layout/index.d.ts +6 -0
  123. package/features/form-builder/components/panels/RightPanel/RightPanel.d.ts +1 -0
  124. package/features/form-builder/components/panels/index.d.ts +1 -0
  125. package/features/form-builder/components/sections/AdminFormSection/AdminFormSection.d.ts +14 -0
  126. package/features/form-builder/components/sections/SectionContainer/SectionContainer.d.ts +13 -0
  127. package/features/form-builder/components/sections/index.d.ts +4 -0
  128. package/features/form-builder/components/steps/AdminStepSettings/AdminStepSettings.d.ts +7 -0
  129. package/features/form-builder/components/steps/SortableStepItem/SortableStepItem.d.ts +18 -0
  130. package/features/form-builder/components/steps/StepLockIndicator/StepLockIndicator.d.ts +18 -0
  131. package/features/form-builder/components/steps/StepsList/StepsList.d.ts +3 -0
  132. package/features/form-builder/components/steps/index.d.ts +8 -0
  133. package/features/form-builder/context/FormBuilderContext.d.ts +30 -0
  134. package/features/form-builder/context/ResolvedStepContext.d.ts +9 -0
  135. package/features/form-builder/hooks/useCurrentStep.d.ts +18 -0
  136. package/features/form-builder/hooks/useDragAndDrop.d.ts +16 -0
  137. package/features/form-builder/hooks/useDragFeedback.d.ts +32 -0
  138. package/features/form-builder/hooks/useHoldToDrag.d.ts +18 -0
  139. package/features/form-builder/hooks/usePreviewConfig.d.ts +23 -0
  140. package/features/form-builder/hooks/useSectionOperations.d.ts +7 -0
  141. package/features/form-builder/index.d.ts +10 -0
  142. package/features/form-builder/providers/DragAndDropProvider/DragAndDropProvider.d.ts +8 -0
  143. package/features/form-builder/utils/PropertyLockIndicator/PropertyLockIndicator.d.ts +30 -0
  144. package/features/form-builder/utils/bodyConversionUtils.d.ts +35 -0
  145. package/features/form-builder/utils/collisionDetection.d.ts +6 -0
  146. package/features/form-management/components/FormBuilderView/FormBuilderView.d.ts +17 -0
  147. package/features/form-management/components/FormExplorer/FormExplorer.d.ts +38 -0
  148. package/features/form-management/components/FormExplorerCore/FormExplorerCore.d.ts +67 -0
  149. package/features/form-management/components/FormManager/FormManager.d.ts +43 -0
  150. package/features/form-management/components/FormSectionList/FormSectionList.d.ts +1 -0
  151. package/features/form-management/components/FormsView/FormsView.d.ts +40 -0
  152. package/features/form-management/components/NewFormDialog/NewFormDialog.d.ts +25 -0
  153. package/features/form-management/components/NewProjectDialog/NewProjectDialog.d.ts +23 -0
  154. package/features/form-management/components/ProjectCard/ProjectCard.d.ts +9 -0
  155. package/features/form-management/components/ProjectsView/ProjectsView.d.ts +20 -0
  156. package/features/form-management/components/SearchInput/SearchInput.d.ts +9 -0
  157. package/features/form-management/components/ViewCard/ViewCard.d.ts +40 -0
  158. package/features/form-management/components/pages/FormBuilderPage.d.ts +3 -0
  159. package/features/form-management/components/pages/FormsPage.d.ts +3 -0
  160. package/features/form-management/components/pages/ProjectsPage.d.ts +16 -0
  161. package/features/form-management/components/pages/index.d.ts +13 -0
  162. package/features/form-management/hooks/index.d.ts +9 -0
  163. package/features/form-management/hooks/useFormActions.d.ts +20 -0
  164. package/features/form-management/hooks/useFormData.d.ts +13 -0
  165. package/features/form-management/hooks/useFormExplorerState.d.ts +26 -0
  166. package/features/form-management/hooks/useFormOperations.d.ts +17 -0
  167. package/features/form-management/hooks/useFormsQuery.d.ts +50 -0
  168. package/features/form-management/hooks/useProjectActions.d.ts +25 -0
  169. package/features/form-management/hooks/useProjectOperations.d.ts +10 -0
  170. package/features/form-management/hooks/useProjectsData.d.ts +13 -0
  171. package/features/form-management/index.d.ts +29 -0
  172. package/features/form-management/layout/BaseHeader/BaseHeader.d.ts +1 -0
  173. package/features/form-management/layout/BaseLayout/BaseLayout.d.ts +25 -0
  174. package/features/form-management/providers/QueryProvider.d.ts +8 -0
  175. package/features/form-management/types/viewTypes.d.ts +53 -0
  176. package/features/form-management/utils/configInitializer.d.ts +4 -0
  177. package/features/index.d.ts +9 -0
  178. package/features/property-editors/components/ComponentValidationEditor/ComponentValidationEditor.d.ts +12 -0
  179. package/features/property-editors/components/GenericPropertyEditor/GenericPropertyEditor.d.ts +13 -0
  180. package/features/property-editors/components/ProgressLoaderEditor/ProgressLoaderEditor.d.ts +12 -0
  181. package/features/property-editors/components/RadioGroupEditor/RadioGroupEditor.d.ts +3 -0
  182. package/features/property-editors/components/SelectEditor/SelectEditor.d.ts +3 -0
  183. package/features/property-editors/components/ValidationRuleEditor/ValidationRuleEditor.d.ts +23 -0
  184. package/features/property-editors/components/ValidationRuleListItem/ValidationRuleListItem.d.ts +9 -0
  185. package/features/property-editors/components/ValidationRuleSheet/ValidationRuleSheet.d.ts +14 -0
  186. package/features/property-editors/index.d.ts +5 -0
  187. package/features/property-editors/types/schema.d.ts +66 -0
  188. package/features/property-editors/types/types.d.ts +23 -0
  189. package/features/template-system/components/CreateTemplateDialog/CreateTemplateDialog.d.ts +17 -0
  190. package/features/template-system/components/DeleteTemplateDialog/DeleteTemplateDialog.d.ts +11 -0
  191. package/features/template-system/components/DuplicateTemplateDialog/DuplicateTemplateDialog.d.ts +11 -0
  192. package/features/template-system/components/EditTemplateDialog/EditTemplateDialog.d.ts +10 -0
  193. package/features/template-system/components/EnhancedTemplateBrowser/EnhancedTemplateBrowser.d.ts +11 -0
  194. package/features/template-system/components/TemplateContextMenu/TemplateContextMenu.d.ts +12 -0
  195. package/features/template-system/hooks/useTemplateGovernance.d.ts +46 -0
  196. package/features/template-system/hooks/useTemplatePermissions.d.ts +104 -0
  197. package/features/template-system/hooks/useTemplateStepTitle.d.ts +5 -0
  198. package/features/template-system/index.d.ts +17 -0
  199. package/features/template-system/services/TemplateStorageService.d.ts +52 -0
  200. package/features/template-system/utils/templateApplication.d.ts +75 -0
  201. package/features/template-system/utils/templateCategories.d.ts +105 -0
  202. package/features/template-system/utils/templateConfig.d.ts +148 -0
  203. package/features/template-system/utils/templateDeletion.d.ts +44 -0
  204. package/features/template-system/utils/templateDuplication.d.ts +65 -0
  205. package/features/template-system/utils/templateGovernance.d.ts +54 -0
  206. package/features/template-system/utils/templateLoader.d.ts +25 -0
  207. package/features/template-system/utils/templateMetadataOperations.d.ts +40 -0
  208. package/features/template-system/utils/templateUtils.d.ts +12 -0
  209. package/features/trigger-action-system/components/ActionConfigurationSheet/ActionConfigurationSheet.d.ts +9 -0
  210. package/features/trigger-action-system/components/ActionEditor/ActionEditor.d.ts +15 -0
  211. package/features/trigger-action-system/components/ActionsList/ActionsList.d.ts +8 -0
  212. package/features/trigger-action-system/components/ComponentTriggerActionEditor/ComponentTriggerActionEditor.d.ts +8 -0
  213. package/features/trigger-action-system/components/TriggerContextSelector/TriggerContextSelector.d.ts +9 -0
  214. package/features/trigger-action-system/index.d.ts +5 -0
  215. package/features/visual-mapping/components/ApiCallEditor/ApiCallEditor.d.ts +15 -0
  216. package/features/visual-mapping/components/ApiResponsePreview/ApiResponsePreview.d.ts +8 -0
  217. package/features/visual-mapping/components/ApiStructureTree/ApiStructureTree.d.ts +10 -0
  218. package/features/visual-mapping/components/CompactApiTestButton/CompactApiTestButton.d.ts +11 -0
  219. package/features/visual-mapping/components/ConnectionCircle/ConnectionCircle.d.ts +8 -0
  220. package/features/visual-mapping/components/ConnectionLines/ConnectionLines.d.ts +8 -0
  221. package/features/visual-mapping/components/CurrentMappingsDisplay/CurrentMappingsDisplay.d.ts +5 -0
  222. package/features/visual-mapping/components/EmptyFormFieldsMessage/EmptyFormFieldsMessage.d.ts +1 -0
  223. package/features/visual-mapping/components/FormFieldItem/FormFieldItem.d.ts +9 -0
  224. package/features/visual-mapping/components/FormFieldsList/FormFieldsList.d.ts +9 -0
  225. package/features/visual-mapping/components/KeyValueEditor/KeyValueEditor.d.ts +39 -0
  226. package/features/visual-mapping/components/MappingActionsDropdownMenu/MappingActionsDropdownMenu.d.ts +9 -0
  227. package/features/visual-mapping/components/MappingConnections/MappingConnections.d.ts +10 -0
  228. package/features/visual-mapping/components/RequestBodyEditor/RequestBodyEditor.d.ts +10 -0
  229. package/features/visual-mapping/components/SearchBar/SearchBar.d.ts +25 -0
  230. package/features/visual-mapping/components/VisualApiMappingInterface/VisualApiMappingInterface.d.ts +9 -0
  231. package/features/visual-mapping/components/index.d.ts +2 -0
  232. package/features/visual-mapping/components/typeCompatibility.d.ts +4 -0
  233. package/features/visual-mapping/components/utils/getFormFieldDataType.d.ts +2 -0
  234. package/features/visual-mapping/index.d.ts +18 -0
  235. package/features/visual-mapping/utils/apiBodyUtils.d.ts +1 -0
  236. package/index.d.ts +35 -0
  237. package/integrations/NextJSIntegration.d.ts +23 -0
  238. package/integrations/ReactRouterIntegration.d.ts +16 -0
  239. package/integrations/index.d.ts +12 -0
  240. package/integrations/react-router/FormBuilderPage/FormBuilderPage.d.ts +23 -0
  241. package/integrations/react-router/FormsPage.d.ts +18 -0
  242. package/integrations/react-router/index.d.ts +11 -0
  243. package/package.json +1 -1
  244. package/providers/FormSaveContext.d.ts +20 -0
  245. package/providers/FormSaveProvider.d.ts +93 -0
  246. package/providers/ThemeProvider.d.ts +2 -0
  247. package/providers/index.d.ts +9 -0
  248. package/server.d.ts +8 -0
  249. package/storage/FilesystemStorageProvider.d.ts +19 -0
  250. package/storage/NullStorageProvider.d.ts +15 -0
  251. package/storage/PgLiteSyncProvider.d.ts +41 -0
  252. package/storage/StorageProviderFactory.d.ts +77 -0
  253. package/storage/ZeroConfigFilesystemStorageProvider.d.ts +157 -0
  254. package/storage/database-schemas.d.ts +17901 -0
  255. package/storage/database-types.d.ts +194 -0
  256. package/storage/index.d.ts +17 -0
  257. package/storage/types.d.ts +195 -0
  258. package/store/formBuilderStore.d.ts +287 -0
  259. package/store/index.d.ts +7 -0
  260. package/store/initialState/templates.d.ts +22 -0
  261. package/styles/index.d.ts +0 -0
  262. package/utils/configInitializer.d.ts +11 -0
  263. package/utils/configReader.d.ts +13 -0
  264. package/utils/fieldChangeValidation.d.ts +127 -0
  265. package/utils/fileStorage.d.ts +253 -0
  266. package/utils/formSaver.d.ts +22 -0
  267. package/utils/formsExplorer.d.ts +128 -0
  268. package/utils/index.d.ts +2 -0
  269. package/utils/routeUtils.d.ts +85 -0
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Template Governance Configuration
3
+ *
4
+ * This file allows developers to easily configure which templates should be editable
5
+ * and which should be read-only (locked) during development.
6
+ */
7
+ export interface TemplateGovernanceRule {
8
+ /** Template ID or pattern to match */
9
+ templateId: string | RegExp;
10
+ /** Whether this template should be locked (read-only) */
11
+ isLocked: boolean;
12
+ /** Reason for locking the template */
13
+ lockReason?: string;
14
+ /** Description of the governance rule */
15
+ description?: string;
16
+ }
17
+ /**
18
+ * Template Governance Rules
19
+ *
20
+ * Add rules here to control which templates can be edited.
21
+ * Rules are evaluated in order, first match wins.
22
+ */
23
+ export declare const TEMPLATE_GOVERNANCE_RULES: TemplateGovernanceRule[];
24
+ /**
25
+ * Development Mode Configuration
26
+ *
27
+ * Set this to true during development to make all templates editable
28
+ * regardless of the governance rules above.
29
+ */
30
+ export declare const DEVELOPMENT_MODE: boolean;
31
+ /**
32
+ * Check if a template should be locked based on governance rules
33
+ */
34
+ export declare function isTemplateLocked(templateId: string): {
35
+ isLocked: boolean;
36
+ lockReason?: string;
37
+ };
38
+ /**
39
+ * Get human-readable governance information for a template
40
+ */
41
+ export declare function getTemplateGovernanceInfo(templateId: string): {
42
+ isLocked: boolean;
43
+ lockReason?: string;
44
+ description?: string;
45
+ matchedRule?: TemplateGovernanceRule;
46
+ };
47
+ /**
48
+ * Override governance for specific template (useful for testing)
49
+ */
50
+ export declare function overrideTemplateGovernance(templateId: string, isLocked: boolean, lockReason?: string): void;
51
+ /**
52
+ * Clear all governance overrides (useful for testing cleanup)
53
+ */
54
+ export declare function clearGovernanceOverrides(): void;
@@ -0,0 +1,25 @@
1
+ import { FormStepConfig, FormTemplate, StepNavigation, TemplateStepConfig } from '../../../../../core/src/index.ts';
2
+ /**
3
+ * Loads a template by ID, handling both generic and team templates
4
+ */
5
+ export declare function loadTemplate(templateId: string): Promise<FormTemplate>;
6
+ /**
7
+ * Resolves a template step reference to a full FormStepConfig
8
+ */
9
+ export declare function resolveTemplateStep(templateStep: TemplateStepConfig, defaultNavigation?: StepNavigation, stepIndex?: number): Promise<FormStepConfig>;
10
+ /**
11
+ * Gets template metadata without loading the full template
12
+ */
13
+ export declare function getTemplateMetadata(templateId: string): Promise<import('../../../../../core/src/index.ts').TemplateMetadata>;
14
+ /**
15
+ * Lists available templates from both generic and team sources
16
+ */
17
+ export declare function getAvailableTemplates(): Promise<string[]>;
18
+ /**
19
+ * Lists available generic templates only (for backward compatibility)
20
+ */
21
+ export declare function getAvailableGenericTemplates(): string[];
22
+ /**
23
+ * Clears the template cache (useful for development/testing)
24
+ */
25
+ export declare function clearTemplateCache(): void;
@@ -0,0 +1,40 @@
1
+ import { FileStorageResult, Template, TemplateCategory, TemplateMetadata, TemplateStorageConfig } from '../../../utils/fileStorage';
2
+ /**
3
+ * Interface for template metadata updates
4
+ */
5
+ export interface TemplateMetadataUpdate {
6
+ name?: string;
7
+ description?: string;
8
+ tags?: string[];
9
+ }
10
+ /**
11
+ * Interface for metadata validation result
12
+ */
13
+ export interface MetadataValidationResult {
14
+ isValid: boolean;
15
+ errors: string[];
16
+ }
17
+ /**
18
+ * Update template metadata
19
+ */
20
+ export declare function updateTemplateMetadata(templateId: string, category: TemplateCategory, updates: TemplateMetadataUpdate, storageConfig: TemplateStorageConfig): Promise<FileStorageResult<Template>>;
21
+ /**
22
+ * Validate template metadata
23
+ */
24
+ export declare function validateTemplateMetadata(metadata: Partial<TemplateMetadata>): MetadataValidationResult;
25
+ /**
26
+ * Create a template for duplication with new ID and metadata
27
+ */
28
+ export declare function createTemplateForDuplication<T extends Template>(sourceTemplate: T, newName: string): T;
29
+ /**
30
+ * Generate a unique template name to avoid conflicts
31
+ */
32
+ export declare function generateUniqueTemplateName(baseName: string, category: TemplateCategory, storageConfig: TemplateStorageConfig): Promise<string>;
33
+ /**
34
+ * Check if a template name is unique within a category
35
+ */
36
+ export declare function isTemplateNameUnique(name: string, category: TemplateCategory, storageConfig: TemplateStorageConfig, excludeTemplateId?: string): Promise<boolean>;
37
+ /**
38
+ * Increment template usage count
39
+ */
40
+ export declare function incrementTemplateUsage(templateId: string, category: TemplateCategory, storageConfig: TemplateStorageConfig): Promise<FileStorageResult<void>>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Loader-specific template functions for form-builder-component
3
+ *
4
+ * This file only contains functions that depend on the local templateLoader.
5
+ * All other template utilities should be imported directly from @libs/shared/utils
6
+ */
7
+ export declare const getAvailableGenericTemplatesSync: () => string[];
8
+ export declare const getTemplateInfo: (templateId: string) => Promise<any>;
9
+ export declare const validateTemplateReferences: (config: import('../../../../../core/src/index.ts').FormWizardConfig) => Promise<{
10
+ isValid: boolean;
11
+ errors: string[];
12
+ }>;
@@ -0,0 +1,9 @@
1
+ import { ActionTrigger, FormAction } from '../../../../../../core/src/index.ts';
2
+ interface ActionConfigurationSheetProps {
3
+ open: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ creatingActionTrigger?: ActionTrigger | null;
6
+ onActionCreate?: (actionData: Omit<FormAction, "id" | "order">) => void;
7
+ }
8
+ declare const ActionConfigurationSheet: import('react').NamedExoticComponent<ActionConfigurationSheetProps>;
9
+ export { ActionConfigurationSheet };
@@ -0,0 +1,15 @@
1
+ import { FormAction } from '../../../../../../core/src/index.ts';
2
+ interface ActionEditorProps {
3
+ action: FormAction;
4
+ availableSteps: Array<{
5
+ id: string;
6
+ title: string;
7
+ }>;
8
+ onUpdate: (updates: Partial<FormAction>) => void;
9
+ onSave: () => void;
10
+ onDelete: () => void;
11
+ onCancel: () => void;
12
+ isCreating?: boolean;
13
+ }
14
+ declare const ActionEditor: import('react').NamedExoticComponent<ActionEditorProps>;
15
+ export { ActionEditor };
@@ -0,0 +1,8 @@
1
+ import { ActionTrigger, FormAction } from '../../../../../../core/src/index.ts';
2
+ interface ActionsListProps {
3
+ onStepLoadActions: FormAction[];
4
+ onStepFinishActions: FormAction[];
5
+ onActionAdd: (trigger: ActionTrigger) => void;
6
+ }
7
+ declare const ActionsList: import('react').NamedExoticComponent<ActionsListProps>;
8
+ export { ActionsList };
@@ -0,0 +1,8 @@
1
+ import { ComponentTrigger } from '../../../../../../core/src/index.ts';
2
+ interface ComponentTriggerActionEditorProps {
3
+ triggers?: ComponentTrigger[];
4
+ onTriggersUpdate: (triggers: ComponentTrigger[]) => void;
5
+ className?: string;
6
+ }
7
+ declare const ComponentTriggerActionEditor: React.FC<ComponentTriggerActionEditorProps>;
8
+ export default ComponentTriggerActionEditor;
@@ -0,0 +1,9 @@
1
+ import { TriggerContextConfig } from '../../../../../../core/src/index.ts';
2
+ interface TriggerContextSelectorProps {
3
+ contexts?: TriggerContextConfig[];
4
+ onContextsUpdate: (contexts: TriggerContextConfig[]) => void;
5
+ className?: string;
6
+ }
7
+ declare const TriggerContextSelector: React.FC<TriggerContextSelectorProps>;
8
+ export { TriggerContextSelector };
9
+ export default TriggerContextSelector;
@@ -0,0 +1,5 @@
1
+ export * from './components/ActionConfigurationSheet/ActionConfigurationSheet';
2
+ export * from './components/ActionEditor/ActionEditor';
3
+ export * from './components/ActionsList/ActionsList';
4
+ export { default as ComponentTriggerActionEditor } from './components/ComponentTriggerActionEditor/ComponentTriggerActionEditor';
5
+ export * from './components/TriggerContextSelector/TriggerContextSelector';
@@ -0,0 +1,15 @@
1
+ import { ApiCallConfig } from '../../../../../../core/src/index.ts';
2
+ interface ApiCallEditorProps {
3
+ config: ApiCallConfig;
4
+ onUpdate: (config: ApiCallConfig) => void;
5
+ onSave?: () => void;
6
+ isCreating?: boolean;
7
+ errors?: Record<string, string>;
8
+ stepId?: string;
9
+ actionId?: string;
10
+ }
11
+ export interface ApiCallEditorRef {
12
+ getCurrentConfig: () => ApiCallConfig;
13
+ }
14
+ declare const ApiCallEditor: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<ApiCallEditorProps & import('react').RefAttributes<ApiCallEditorRef>>>;
15
+ export { ApiCallEditor };
@@ -0,0 +1,8 @@
1
+ import { ApiCallConfig, ApiResponseData } from '../../../../../../core/src/index.ts';
2
+ interface ApiResponsePreviewProps {
3
+ config: ApiCallConfig;
4
+ onResponseData: (data: ApiResponseData) => void;
5
+ className?: string;
6
+ }
7
+ export declare const ApiResponsePreview: import('react').NamedExoticComponent<ApiResponsePreviewProps>;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ApiFieldNode, VisualMapping } from '../../../../../../core/src/index.ts';
2
+ interface ApiStructureTreeProps {
3
+ nodes: ApiFieldNode[];
4
+ onNodeSelect: (nodeId: string | null) => void;
5
+ selectedNodeId: string | null;
6
+ visualMappings: VisualMapping[];
7
+ onToggleExpand?: (nodeId: string) => void;
8
+ }
9
+ export declare const ApiStructureTree: import('react').NamedExoticComponent<ApiStructureTreeProps>;
10
+ export {};
@@ -0,0 +1,11 @@
1
+ import { ApiCallConfig, ApiResponseData } from '../../../../../../core/src/index.ts';
2
+ interface CompactApiTestButtonProps {
3
+ config: ApiCallConfig;
4
+ onResponseData: (data: ApiResponseData) => void;
5
+ apiResponseData?: ApiResponseData | null;
6
+ }
7
+ export declare const CompactApiTestButton: {
8
+ ({ config, onResponseData, apiResponseData, }: CompactApiTestButtonProps): import("react/jsx-runtime").JSX.Element;
9
+ displayName: string;
10
+ };
11
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare const ConnectionCircle: ({ type, isMapped, isCompatibleTarget, compatibilityLevel, isSelected, }: {
2
+ type: string;
3
+ isMapped: boolean;
4
+ isCompatibleTarget?: boolean;
5
+ compatibilityLevel?: string;
6
+ isSelected: boolean;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export default ConnectionCircle;
@@ -0,0 +1,8 @@
1
+ import { VisualMapping } from '../../../../../../core/src/index.ts';
2
+ interface ConnectionLinesProps {
3
+ visualMappings: VisualMapping[];
4
+ containerRef: React.RefObject<HTMLDivElement>;
5
+ }
6
+ export declare const findFormElementByPath: (container: HTMLElement, formPath: string) => HTMLElement | null;
7
+ declare const ConnectionLines: import('react').NamedExoticComponent<ConnectionLinesProps>;
8
+ export { ConnectionLines };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Displays the current visual API mappings with remove functionality.
3
+ * Follows Single Responsibility Principle by handling only the display of existing mappings.
4
+ */
5
+ export declare const CurrentMappingsDisplay: () => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare const EmptyFormFieldsMessage: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { FormFieldNode } from '../../../../../../core/src/index.ts';
2
+ interface FormFieldItemProps {
3
+ field: FormFieldNode;
4
+ onSelect: (fieldPath: string) => void;
5
+ isSelected: boolean;
6
+ isMapped: boolean;
7
+ }
8
+ export declare const FormFieldItem: import('react').NamedExoticComponent<FormFieldItemProps>;
9
+ export default FormFieldItem;
@@ -0,0 +1,9 @@
1
+ import { FormFieldNode, VisualMapping } from '../../../../../../core/src/index.ts';
2
+ interface FormFieldsListProps {
3
+ fields: FormFieldNode[];
4
+ onFieldSelect: (fieldPath: string | null) => void;
5
+ selectedFieldPath: string | null;
6
+ visualMappings: VisualMapping[];
7
+ }
8
+ export declare const FormFieldsList: import('react').NamedExoticComponent<FormFieldsListProps>;
9
+ export {};
@@ -0,0 +1,39 @@
1
+ export interface KeyValueItem {
2
+ id: string;
3
+ key: string;
4
+ value: string;
5
+ }
6
+ export interface SelectOption {
7
+ value: string;
8
+ label: string;
9
+ }
10
+ export interface SelectFieldConfig {
11
+ placeholder?: string;
12
+ options: SelectOption[];
13
+ getValue: (item: KeyValueItem) => string;
14
+ onChange: (id: string, value: string) => void;
15
+ className?: string;
16
+ }
17
+ export interface FieldSelectorConfig {
18
+ currentStepId: string;
19
+ onSelectField: (fieldId: string, selectedField: {
20
+ path: string;
21
+ label: string;
22
+ }) => void;
23
+ targetField?: "key" | "value";
24
+ }
25
+ interface KeyValueEditorProps {
26
+ items: KeyValueItem[];
27
+ onChange: (id: string, updates: Partial<KeyValueItem>) => void;
28
+ onRemove: (id: string) => void;
29
+ keyPlaceholder?: string;
30
+ valuePlaceholder?: string;
31
+ selectConfig?: SelectFieldConfig;
32
+ fieldSelectorConfig?: FieldSelectorConfig;
33
+ showFieldSelector?: boolean;
34
+ showFieldSelectorOnKey?: boolean;
35
+ showFieldSelectorOnValue?: boolean;
36
+ showRemoveCondition?: (item: KeyValueItem) => boolean;
37
+ }
38
+ declare const KeyValueEditor: import('react').NamedExoticComponent<KeyValueEditorProps>;
39
+ export default KeyValueEditor;
@@ -0,0 +1,9 @@
1
+ interface MappingActionsDropdownMenuProps {
2
+ onRefresh?: () => void;
3
+ onClearSaved?: () => void;
4
+ onClearAll?: () => void;
5
+ showClearSaved?: boolean;
6
+ showClearAll?: boolean;
7
+ }
8
+ export declare function MappingActionsDropdownMenu({ onRefresh, onClearSaved, onClearAll, showClearSaved, showClearAll, }: MappingActionsDropdownMenuProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,10 @@
1
+ import { VisualMapping } from '../../../../../../core/src/index.ts';
2
+ import { RefObject } from 'react';
3
+ interface MappingConnectionsProps {
4
+ mappings: VisualMapping[];
5
+ containerRef: RefObject<HTMLDivElement>;
6
+ leftPanelRef: RefObject<HTMLDivElement>;
7
+ rightPanelRef: RefObject<HTMLDivElement>;
8
+ }
9
+ export declare const MappingConnections: import('react').NamedExoticComponent<MappingConnectionsProps>;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ApiCallConfig } from '../../../../../../core/src/index.ts';
2
+ interface RequestBodyEditorProps {
3
+ apiCall: ApiCallConfig;
4
+ onUpdate?: (updates: Partial<ApiCallConfig>) => void;
5
+ }
6
+ export interface RequestBodyEditorRef {
7
+ getCurrentConfig: () => Partial<ApiCallConfig>;
8
+ }
9
+ declare const RequestBodyEditor: import('react').ForwardRefExoticComponent<RequestBodyEditorProps & import('react').RefAttributes<RequestBodyEditorRef>>;
10
+ export default RequestBodyEditor;
@@ -0,0 +1,25 @@
1
+ interface SearchBarProps {
2
+ isOpen: boolean;
3
+ searchTerm: string;
4
+ onToggle: () => void;
5
+ onSearchChange: (term: string) => void;
6
+ onClear: () => void;
7
+ placeholder?: string;
8
+ className?: string;
9
+ }
10
+ export declare const SearchToggleButton: import('react').NamedExoticComponent<{
11
+ isOpen: boolean;
12
+ onToggle: () => void;
13
+ className?: string;
14
+ }>;
15
+ export declare const SearchInputBar: import('react').NamedExoticComponent<{
16
+ isOpen: boolean;
17
+ searchTerm: string;
18
+ onSearchChange: (term: string) => void;
19
+ onClear: () => void;
20
+ onToggle: () => void;
21
+ placeholder?: string;
22
+ className?: string;
23
+ }>;
24
+ export declare const SearchBar: import('react').NamedExoticComponent<SearchBarProps>;
25
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ApiCallConfig } from '../../../../../../core/src/index.ts';
2
+ interface VisualApiMappingInterfaceProps {
3
+ config: ApiCallConfig;
4
+ onUpdate: (config: ApiCallConfig) => void;
5
+ className?: string;
6
+ }
7
+ export type DataTypeKey = "string" | "number" | "boolean" | "array" | "object" | "null" | "undefined";
8
+ export declare const VisualApiMappingInterface: import('react').NamedExoticComponent<VisualApiMappingInterfaceProps>;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ export { ApiStructureTree } from './ApiStructureTree/ApiStructureTree';
2
+ export { FormFieldsList } from './FormFieldsList/FormFieldsList';
@@ -0,0 +1,4 @@
1
+ export declare const checkTypeCompatibility: (apiType: string, formType: string) => boolean;
2
+ export declare const getCompatibilityLevel: (apiType: string, formType: string) => "perfect" | "compatible" | "warning" | "error";
3
+ export declare const getCompatibilityMessage: (apiType: string, formType: string) => string;
4
+ export declare const getCompatibilityColor: (apiType: string, formType: string) => string;
@@ -0,0 +1,2 @@
1
+ import { DataTypeKey } from '../VisualApiMappingInterface/VisualApiMappingInterface';
2
+ export declare const getFormFieldDataType: (fieldType: string) => DataTypeKey;
@@ -0,0 +1,18 @@
1
+ export * from './components/ApiCallEditor/ApiCallEditor';
2
+ export * from './components/ApiResponsePreview/ApiResponsePreview';
3
+ export * from './components/ApiStructureTree/ApiStructureTree';
4
+ export * from './components/CompactApiTestButton/CompactApiTestButton';
5
+ export * from './components/ConnectionCircle/ConnectionCircle';
6
+ export * from './components/ConnectionLines/ConnectionLines';
7
+ export * from './components/CurrentMappingsDisplay/CurrentMappingsDisplay';
8
+ export * from './components/EmptyFormFieldsMessage/EmptyFormFieldsMessage';
9
+ export * from './components/FormFieldItem/FormFieldItem';
10
+ export * from './components/FormFieldsList/FormFieldsList';
11
+ export * from './components/MappingActionsDropdownMenu/MappingActionsDropdownMenu';
12
+ export * from './components/MappingConnections/MappingConnections';
13
+ export * from './components/RequestBodyEditor/RequestBodyEditor';
14
+ export * from './components/SearchBar/SearchBar';
15
+ export * from './components/typeCompatibility';
16
+ export * from './components/utils/getFormFieldDataType';
17
+ export * from './components/VisualApiMappingInterface/VisualApiMappingInterface';
18
+ export * from './utils/apiBodyUtils';
@@ -0,0 +1 @@
1
+ export { compileApiRequestBody, getValueFromFormData, interpolateTemplate, interpolateObjectTemplate, setNestedValue, getAvailableFormFields, } from '../../../../../core/src/index.ts';
package/index.d.ts ADDED
@@ -0,0 +1,35 @@
1
+ export { isFormFieldComponent } from './component-registry/components';
2
+ export type { ComponentValue } from '../../ui/src/index.ts';
3
+ export { renderComponent } from '../../ui/src/index.ts';
4
+ export { DEFAULT_FORM_CONFIG, type FormConfig, type FormStorageConfig, useFormConfiguration, } from './config';
5
+ export { FlowBuilderErrorBoundary } from './error-boundaries';
6
+ export * from './features/condition-editor';
7
+ export * from './features/dialog-system';
8
+ export * from './features/form-builder';
9
+ export * from './features/form-management';
10
+ /** @deprecated Use ProjectsView, FormsView, FormBuilderView with NavigationProvider instead */
11
+ export type { FormExplorerProps } from './features/form-management/components/FormExplorer/FormExplorer';
12
+ /** @deprecated Use ProjectsView, FormsView, FormBuilderView with NavigationProvider instead */
13
+ export { FormExplorer } from './features/form-management/components/FormExplorer/FormExplorer';
14
+ export type {
15
+ /** @deprecated Use FormBuilderView directly - FormBuilderPage requires react-router-dom */
16
+ FormBuilderPageProps,
17
+ /** @deprecated Use FormsView directly - FormsPage requires react-router-dom */
18
+ FormsPageProps, ProjectsPageProps, } from './features/form-management/components/pages';
19
+ export {
20
+ /** @deprecated Use FormBuilderView directly - FormBuilderPage requires react-router-dom */
21
+ FormBuilderPage,
22
+ /** @deprecated Use FormsView directly - FormsPage requires react-router-dom */
23
+ FormsPage, ProjectsPage, } from './features/form-management/components/pages';
24
+ export * from './features/property-editors';
25
+ export * from './features/template-system';
26
+ export { TemplateStorageService } from './features/template-system/services/TemplateStorageService';
27
+ export * from './features/trigger-action-system';
28
+ export * from './features/visual-mapping';
29
+ export * from './providers';
30
+ export type { CreateFormRequest, CreateProjectRequest, FileStorageError, FormBuilderSettings, FormFile, FormMetadata, FormStorageProvider, GenericTemplate, PersonalTemplate, SharedTemplate, StorageResult, TeamTemplate, TemplateCategory, TemplateCategoryInfo, TemplateDirectory, TemplateFile, TemplateStorageConfig, } from './storage/types';
31
+ export type { ComponentConfig, FormSectionConfig, FormStepConfig, FormWizardConfig, StepNavigation, StepNavigationItem, StepTemplate, TemplateHistoryEntry, } from './store';
32
+ export { useCanUndo, useCurrentSection, useFormBuilderActions, useFormBuilderStore, useFormConfig, useFormSteps, useHasUnsavedChanges, useIsSaving, useLastSavedAt, useSaveError, useSelectedSectionId, useSelectedStepId, } from './store';
33
+ export * from './utils';
34
+ export { getDatabaseConfig, resolveConfigVariables, } from './utils/configReader';
35
+ export { type FormOperationsConfig, formatProjectName, getStorageProvider, loadFormConfigFromExplorer, registerStorageStrategy, type StorageStrategy, } from './utils/formsExplorer';
@@ -0,0 +1,23 @@
1
+ import { FormManagerProps } from '../features/form-management/components/FormManager/FormManager';
2
+ export interface NextJSFormManagerProps {
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ initialView?: FormManagerProps["initialView"];
6
+ config?: FormManagerProps["config"];
7
+ previewUrl?: FormManagerProps["previewUrl"];
8
+ getPreviewUrl?: FormManagerProps["getPreviewUrl"];
9
+ showPreview?: FormManagerProps["showPreview"];
10
+ project?: string;
11
+ wizardId?: string;
12
+ }
13
+ /**
14
+ * FormManager with Next.js App Router integration
15
+ * Use this when you're using Next.js 13+ App Router
16
+ */
17
+ export declare const NextJSFormManager: React.FC<NextJSFormManagerProps>;
18
+ /**
19
+ * FormManager with Next.js Pages Router integration
20
+ * Use this when you're using Next.js Pages Router (legacy)
21
+ */
22
+ export declare const NextJSPagesFormManager: React.FC<NextJSFormManagerProps>;
23
+ export default NextJSFormManager;
@@ -0,0 +1,16 @@
1
+ import { FormManagerProps } from '../features/form-management/components/FormManager/FormManager';
2
+ export interface ReactRouterFormManagerProps {
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ initialView?: FormManagerProps["initialView"];
6
+ config?: FormManagerProps["config"];
7
+ previewUrl?: FormManagerProps["previewUrl"];
8
+ getPreviewUrl?: FormManagerProps["getPreviewUrl"];
9
+ showPreview?: FormManagerProps["showPreview"];
10
+ }
11
+ /**
12
+ * FormManager with React Router integration
13
+ * Use this when you're using react-router-dom
14
+ */
15
+ export declare const ReactRouterFormManager: React.FC<ReactRouterFormManagerProps>;
16
+ export default ReactRouterFormManager;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Framework integrations for FormManager
3
+ *
4
+ * These integrations provide seamless compatibility with different React frameworks
5
+ * while maintaining the core FormManager's framework-agnostic design.
6
+ */
7
+ export type { FormManagerProps, RouterIntegration, } from '../features/form-management/components/FormManager/FormManager';
8
+ export { default as FormManager } from '../features/form-management/components/FormManager/FormManager';
9
+ export type { NextJSFormManagerProps } from './NextJSIntegration';
10
+ export { NextJSFormManager, NextJSPagesFormManager } from './NextJSIntegration';
11
+ export type { ReactRouterFormManagerProps } from './ReactRouterIntegration';
12
+ export { ReactRouterFormManager } from './ReactRouterIntegration';
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ import { FormConfig } from '../../../config/types';
3
+ export interface FormBuilderPageProps {
4
+ /**
5
+ * Optional form configuration
6
+ */
7
+ config?: FormConfig;
8
+ /**
9
+ * Optional CSS class name
10
+ */
11
+ className?: string;
12
+ /**
13
+ * Optional inline styles
14
+ */
15
+ style?: React.CSSProperties;
16
+ }
17
+ /**
18
+ * Standalone FormBuilderPage component for user-defined routing
19
+ * Shows the form builder for a specific form
20
+ *
21
+ * @deprecated Use FormBuilderView directly with your framework's param reading
22
+ */
23
+ export declare const FormBuilderPage: React.FC<FormBuilderPageProps>;
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export interface FormsPageProps {
3
+ /**
4
+ * Optional CSS class name
5
+ */
6
+ className?: string;
7
+ /**
8
+ * Optional inline styles
9
+ */
10
+ style?: React.CSSProperties;
11
+ }
12
+ /**
13
+ * Standalone FormsPage component for user-defined routing
14
+ * Shows forms within a specific project
15
+ *
16
+ * @deprecated Use FormsView directly with your framework's param reading
17
+ */
18
+ export declare const FormsPage: React.FC<FormsPageProps>;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * React Router integrations for form management
3
+ *
4
+ * @deprecated Use standalone view components with NavigationProvider instead
5
+ */
6
+ export type { ReactRouterFormManagerProps } from '../ReactRouterIntegration';
7
+ export { ReactRouterFormManager } from '../ReactRouterIntegration';
8
+ export type { FormBuilderPageProps } from './FormBuilderPage/FormBuilderPage';
9
+ export { FormBuilderPage } from './FormBuilderPage/FormBuilderPage';
10
+ export type { FormsPageProps } from './FormsPage';
11
+ export { FormsPage } from './FormsPage';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digiform/builder",
3
- "version": "0.1.7",
3
+ "version": "0.2.1",
4
4
  "description": "React form builder for creating and managing configurable multi-step forms",
5
5
  "author": "VladAfanasev",
6
6
  "license": "MIT",
@@ -0,0 +1,20 @@
1
+ import { ReactNode } from 'react';
2
+ import { FormSaveProvider } from './FormSaveProvider';
3
+ interface FormSaveProviderProps {
4
+ provider?: FormSaveProvider;
5
+ children: ReactNode;
6
+ }
7
+ /**
8
+ * Form save provider component
9
+ * Wrap your app with this to configure the save functionality
10
+ */
11
+ export declare const FormSaveProviderComponent: ({ provider, children, }: FormSaveProviderProps) => import("react/jsx-runtime").JSX.Element;
12
+ /**
13
+ * Hook to get the current form save provider
14
+ */
15
+ export declare const useFormSaveProvider: () => FormSaveProvider;
16
+ /**
17
+ * Hook to check if a save provider is configured
18
+ */
19
+ export declare const useHasFormSaveProvider: () => boolean;
20
+ export {};