@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,12 @@
1
+ import { DialogConfig, TemplateDialogConfig } from '../../../../../../core/src/index.ts';
2
+ interface DialogEditorProps {
3
+ config: DialogConfig;
4
+ availableSteps: Array<{
5
+ id: string;
6
+ title: string;
7
+ }>;
8
+ onUpdate: (config: DialogConfig | TemplateDialogConfig) => void;
9
+ errors?: Record<string, string>;
10
+ }
11
+ declare const DialogEditor: import('react').NamedExoticComponent<DialogEditorProps>;
12
+ export { DialogEditor };
@@ -0,0 +1,12 @@
1
+ import { default as React, ReactElement } from 'react';
2
+ interface DialogProps {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ title: string;
6
+ children: ReactElement;
7
+ buttonStart?: ReactElement;
8
+ buttonEnd?: ReactElement;
9
+ className?: string;
10
+ }
11
+ declare const ModalDialog: React.FC<DialogProps>;
12
+ export default ModalDialog;
@@ -0,0 +1,10 @@
1
+ type VerifyEmailDialogProps = {
2
+ onConfirm: () => void;
3
+ open?: boolean;
4
+ email: string;
5
+ hasChanged?: boolean;
6
+ closeModal: () => void;
7
+ modalIsOpen: boolean;
8
+ };
9
+ declare const VerifyEmailDialog: ({ onConfirm, open, email, hasChanged, closeModal, modalIsOpen, }: VerifyEmailDialogProps) => import("react/jsx-runtime").JSX.Element | null;
10
+ export default VerifyEmailDialog;
@@ -0,0 +1,4 @@
1
+ export * from './components/ConfirmDialog';
2
+ export * from './components/DialogEditor/DialogEditor';
3
+ export * from './components/ModalDialog/ModalDialog';
4
+ export * from './components/VerifyEmailDialog/VerifyEmailDialog';
@@ -0,0 +1,3 @@
1
+ declare const ActionsPanel: import('react').MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element | null>;
2
+ export { ActionsPanel };
3
+ export default ActionsPanel;
@@ -0,0 +1,9 @@
1
+ import { ActionTrigger, FormAction } from '../../../../../../../core/src/index.ts';
2
+ interface SortableActionItemProps {
3
+ action: FormAction;
4
+ index: number;
5
+ trigger: ActionTrigger;
6
+ }
7
+ declare const SortableActionItem: import('react').NamedExoticComponent<SortableActionItemProps>;
8
+ export { SortableActionItem };
9
+ export default SortableActionItem;
@@ -0,0 +1,4 @@
1
+ export type * from './ActionsPanel/ActionsPanel';
2
+ export { default as ActionsPanel } from './ActionsPanel/ActionsPanel';
3
+ export type * from './SortableActionItem/SortableActionItem';
4
+ export { default as SortableActionItem } from './SortableActionItem/SortableActionItem';
@@ -0,0 +1 @@
1
+ export declare const FormBuilderActionsMenu: React.FC;
@@ -0,0 +1,3 @@
1
+ export { FormBuilderActionsMenu } from './FormBuilderActionsMenu/FormBuilderActionsMenu';
2
+ export { menuItemRegistry } from './registry';
3
+ export type { MenuItemComponent, MenuItemComponentProps, MenuItemConfig, } from './types';
@@ -0,0 +1,2 @@
1
+ import { MenuItemComponentProps } from '../../types';
2
+ export declare const CreateTemplateMenuItem: React.FC<MenuItemComponentProps>;
@@ -0,0 +1,2 @@
1
+ import { MenuItemComponentProps } from '../../types';
2
+ export declare const ExampleMenuItem: React.FC<MenuItemComponentProps>;
@@ -0,0 +1,2 @@
1
+ import { menuItemRegistry } from '../registry';
2
+ export { menuItemRegistry };
@@ -0,0 +1,9 @@
1
+ import { MenuItemComponent, MenuItemRegistry } from './types';
2
+ declare class MenuItemRegistryImpl implements MenuItemRegistry {
3
+ private items;
4
+ register(item: MenuItemComponent): void;
5
+ getItems(): MenuItemComponent[];
6
+ getVisibleItems(): MenuItemComponent[];
7
+ }
8
+ export declare const menuItemRegistry: MenuItemRegistryImpl;
9
+ export {};
@@ -0,0 +1,44 @@
1
+ export interface MenuItemComponentProps {
2
+ /**
3
+ * Unique identifier for the menu item
4
+ */
5
+ id: string;
6
+ }
7
+ export interface MenuItemConfig {
8
+ /**
9
+ * Unique identifier for the menu item
10
+ */
11
+ id: string;
12
+ /**
13
+ * Display order in the menu (lower numbers appear first)
14
+ */
15
+ order: number;
16
+ /**
17
+ * Whether the menu item should be visible
18
+ */
19
+ visible: boolean;
20
+ }
21
+ export interface MenuItemComponent {
22
+ /**
23
+ * Configuration for the menu item
24
+ */
25
+ config: MenuItemConfig;
26
+ /**
27
+ * React component to render
28
+ */
29
+ component: React.ComponentType<MenuItemComponentProps>;
30
+ }
31
+ export interface MenuItemRegistry {
32
+ /**
33
+ * Register a menu item component
34
+ */
35
+ register: (item: MenuItemComponent) => void;
36
+ /**
37
+ * Get all registered menu items sorted by order
38
+ */
39
+ getItems: () => MenuItemComponent[];
40
+ /**
41
+ * Get visible menu items sorted by order
42
+ */
43
+ getVisibleItems: () => MenuItemComponent[];
44
+ }
@@ -0,0 +1,74 @@
1
+ import { ButtonProps } from '../../../../../../../ui/src/design-system/index.ts';
2
+ /**
3
+ * Configuration interface for preview URL generation
4
+ */
5
+ export interface PreviewConfig {
6
+ /** Base URL for preview (e.g., "/forms", "/preview") */
7
+ baseUrl?: string;
8
+ /** URL pattern with placeholders (e.g., "/{project}/{wizardId}/preview") */
9
+ urlPattern?: string;
10
+ /** Custom URL generator function */
11
+ customUrlGenerator?: (project: string, wizardId: string) => string;
12
+ }
13
+ /**
14
+ * Props for the PreviewButton component
15
+ */
16
+ export interface PreviewButtonProps {
17
+ /** Project identifier */
18
+ project?: string;
19
+ /** Form/Wizard identifier */
20
+ wizardId?: string;
21
+ /** Whether to show the preview button */
22
+ show?: boolean;
23
+ /** Preview configuration */
24
+ config?: PreviewConfig;
25
+ /** Button variant */
26
+ appearance?: ButtonProps["appearance"];
27
+ /** Button size */
28
+ size?: "default" | "sm" | "lg" | "icon";
29
+ /** Additional CSS classes */
30
+ className?: string;
31
+ /** Custom onClick handler (called before opening preview) */
32
+ onClick?: () => void;
33
+ /** Whether to show text label with icon */
34
+ showLabel?: boolean;
35
+ /** Custom label text */
36
+ label?: string;
37
+ /** Custom tooltip text */
38
+ tooltip?: string;
39
+ /** Target for window.open */
40
+ target?: "_blank" | "_self" | "_parent" | "_top";
41
+ /** Disable the button */
42
+ disabled?: boolean;
43
+ }
44
+ /**
45
+ * PreviewButton Component
46
+ *
47
+ * @example
48
+ * ```tsx
49
+ * // Basic usage
50
+ * <PreviewButton project="my-project" wizardId="form-1" />
51
+ *
52
+ * // With custom configuration
53
+ * <PreviewButton
54
+ * project="my-project"
55
+ * wizardId="form-1"
56
+ * config={{
57
+ * baseUrl: "/app/preview",
58
+ * urlPattern: "/{project}/{wizardId}"
59
+ * }}
60
+ * />
61
+ *
62
+ * // With custom URL generator
63
+ * <PreviewButton
64
+ * project="my-project"
65
+ * wizardId="form-1"
66
+ * config={{
67
+ * customUrlGenerator: (project, wizardId) =>
68
+ * `https://preview.example.com/${project}/${wizardId}`
69
+ * }}
70
+ * />
71
+ * ```
72
+ */
73
+ export declare const PreviewButton: React.FC<PreviewButtonProps>;
74
+ export default PreviewButton;
@@ -0,0 +1,8 @@
1
+ interface SaveDropdownButtonProps {
2
+ onSave: () => void;
3
+ onPublish?: () => void;
4
+ isSaving: boolean;
5
+ hasUnsavedChanges: boolean;
6
+ }
7
+ export declare const SaveDropdownButton: React.FC<SaveDropdownButtonProps>;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Button components for the form builder
3
+ */
4
+ export type { PreviewButtonProps, PreviewConfig } from './PreviewButton/PreviewButton';
5
+ export { PreviewButton } from './PreviewButton/PreviewButton';
6
+ export { SaveDropdownButton } from './SaveDropdownButton/SaveDropdownButton';
@@ -0,0 +1,15 @@
1
+ import { ComponentConfig } from '../../../../../../../core/src/index.ts';
2
+ interface AdminRenderCanvasItemsProps {
3
+ sectionId: string;
4
+ stepId: string;
5
+ components: ComponentConfig[];
6
+ flowData?: Record<string, unknown>;
7
+ onUpdateFlowData?: (key: string, value: unknown) => void;
8
+ onComponentClick?: (componentId: string) => void;
9
+ onComponentDelete?: (componentId: string) => void;
10
+ loaderStatuses?: Record<string, "idle" | "loading" | "success" | "error">;
11
+ readOnly?: boolean;
12
+ validationErrors?: Record<string, string>;
13
+ }
14
+ declare const AdminRenderCanvasItems: React.FC<AdminRenderCanvasItemsProps>;
15
+ export default AdminRenderCanvasItems;
@@ -0,0 +1,3 @@
1
+ declare const Canvas: React.FC;
2
+ export { Canvas };
3
+ export default Canvas;
@@ -0,0 +1,16 @@
1
+ import { ComponentConfig } from '../../../../../../../core/src/index.ts';
2
+ import { default as React } from 'react';
3
+ interface CanvasComponentProps {
4
+ component: ComponentConfig;
5
+ stepId: string;
6
+ sectionId?: string;
7
+ isFormView?: boolean;
8
+ isDraggable?: boolean;
9
+ onValueChange?: (value: unknown) => void;
10
+ additionalProps?: {
11
+ apiStatus?: "idle" | "loading" | "success" | "error";
12
+ [key: string]: unknown;
13
+ };
14
+ }
15
+ declare const CanvasComponent: React.FC<CanvasComponentProps>;
16
+ export default CanvasComponent;
@@ -0,0 +1,13 @@
1
+ import { ComponentConfig } from '../../../../../../../core/src/index.ts';
2
+ export declare const SortableComponent: React.FC<{
3
+ component: ComponentConfig;
4
+ stepId: string;
5
+ sectionId: string;
6
+ onUpdateFlowData?: (key: string, value: unknown) => void;
7
+ onComponentClick?: (componentId: string) => void;
8
+ onComponentDelete?: (componentId: string) => void;
9
+ loaderStatuses: Record<string, "idle" | "loading" | "success" | "error">;
10
+ readOnly: boolean;
11
+ validationErrors: Record<string, string>;
12
+ }>;
13
+ export default SortableComponent;
@@ -0,0 +1,8 @@
1
+ export type * from './AdminRenderCanvasItems/AdminRenderCanvasItems';
2
+ export { default as AdminRenderCanvasItems } from './AdminRenderCanvasItems/AdminRenderCanvasItems';
3
+ export type * from './Canvas/Canvas';
4
+ export { default as Canvas } from './Canvas/Canvas';
5
+ export type * from './CanvasComponent/CanvasComponent';
6
+ export { default as CanvasComponent } from './CanvasComponent/CanvasComponent';
7
+ export type * from './SortableComponent/SortableComponent';
8
+ export { default as SortableComponent } from './SortableComponent/SortableComponent';
@@ -0,0 +1,7 @@
1
+ import { ComponentDefinition } from '../../../../../component-registry/types';
2
+ interface FormWizardComponentItemProps {
3
+ componentType: ComponentDefinition;
4
+ stepId: string;
5
+ }
6
+ declare const FormWizardComponentItem: React.FC<FormWizardComponentItemProps>;
7
+ export default FormWizardComponentItem;
@@ -0,0 +1,6 @@
1
+ interface FormWizardComponentsPanelProps {
2
+ stepId: string;
3
+ }
4
+ declare const FormWizardComponentsPanel: React.FC<FormWizardComponentsPanelProps>;
5
+ export { FormWizardComponentsPanel };
6
+ export default FormWizardComponentsPanel;
@@ -0,0 +1,20 @@
1
+ import { ComponentConfig } from '../../../../../../../core/src/index.ts';
2
+ interface SortableComponentItemProps {
3
+ /** The component configuration to render */
4
+ component: ComponentConfig;
5
+ /** The step ID this component belongs to */
6
+ stepId: string;
7
+ /** The section ID this component belongs to */
8
+ sectionId: string;
9
+ }
10
+ /**
11
+ * Individual sortable component item
12
+ * Single Responsibility: Renders a single draggable form component
13
+ * Open/Closed: Can be extended with new component types without modification
14
+ * Liskov Substitution: Can be used anywhere a component item is needed
15
+ * Interface Segregation: Clean interface focused on component rendering
16
+ * Dependency Inversion: Depends on component registry abstraction
17
+ */
18
+ declare const SortableComponentItem: React.FC<SortableComponentItemProps>;
19
+ export { SortableComponentItem };
20
+ export default SortableComponentItem;
@@ -0,0 +1,6 @@
1
+ export type * from './FormWizardComponentItem/FormWizardComponentItem';
2
+ export { default as FormWizardComponentItem } from './FormWizardComponentItem/FormWizardComponentItem';
3
+ export type * from './FormWizardComponentsPanel/FormWizardComponentsPanel';
4
+ export { default as FormWizardComponentsPanel } from './FormWizardComponentsPanel/FormWizardComponentsPanel';
5
+ export type * from './SortableComponentItem/SortableComponentItem';
6
+ export { default as SortableComponentItem } from './SortableComponentItem/SortableComponentItem';
@@ -0,0 +1,5 @@
1
+ interface AdminFormContentProps extends React.HTMLAttributes<HTMLDivElement> {
2
+ children: React.ReactNode;
3
+ }
4
+ declare const AdminFormContent: React.FC<AdminFormContentProps>;
5
+ export default AdminFormContent;
@@ -0,0 +1,23 @@
1
+ import { FormWizardConfig } from '../../../../../../../core/src/index.ts';
2
+ export interface FormBuilderProps {
3
+ initialConfig?: FormWizardConfig;
4
+ onSave?: (config: FormWizardConfig) => Promise<void> | void;
5
+ onPublish?: (config: FormWizardConfig) => Promise<void> | void;
6
+ onLoad?: (project: string, wizardId: string) => Promise<FormWizardConfig> | FormWizardConfig;
7
+ project?: string;
8
+ wizardId?: string;
9
+ showPreviewButton?: boolean;
10
+ previewUrl?: string;
11
+ /**
12
+ * Whether to use the pluggable save provider system
13
+ * When true, uses the FormSaveProvider from context
14
+ * When false, falls back to legacy save methods
15
+ */
16
+ useProviderSystem?: boolean;
17
+ /**
18
+ * Custom navigation handler for back button
19
+ */
20
+ onNavigateToForms?: () => void;
21
+ }
22
+ declare const FormBuilder: React.FC<FormBuilderProps>;
23
+ export default FormBuilder;
@@ -0,0 +1,4 @@
1
+ export type * from './AdminFormContent/AdminFormContent';
2
+ export { default as AdminFormContent } from './AdminFormContent/AdminFormContent';
3
+ export type * from './FormBuilder/FormBuilder';
4
+ export { default as FormBuilder } from './FormBuilder/FormBuilder';
@@ -0,0 +1,3 @@
1
+ declare const AdminPropertiesPanel: React.FC;
2
+ export { AdminPropertiesPanel };
3
+ export default AdminPropertiesPanel;
@@ -0,0 +1,10 @@
1
+ import { ComponentCondition } from '../../../../../../../core/src/index.ts';
2
+ import { default as React } from 'react';
3
+ interface ConditionsTabProps {
4
+ entityType: "component" | "section";
5
+ entityId: string;
6
+ conditions?: ComponentCondition[];
7
+ onConditionsChange: (conditions: ComponentCondition[]) => void;
8
+ }
9
+ declare const ConditionsTab: React.FC<ConditionsTabProps>;
10
+ export default ConditionsTab;
@@ -0,0 +1,13 @@
1
+ import { NavigationConfig } from '../../../../../../../core/src/index.ts';
2
+ interface NavigationEditorProps {
3
+ config: NavigationConfig;
4
+ availableSteps: Array<{
5
+ id: string;
6
+ title: string;
7
+ }>;
8
+ onUpdate: (config: NavigationConfig) => void;
9
+ errors?: Record<string, string>;
10
+ }
11
+ declare const NavigationEditor: import('react').NamedExoticComponent<NavigationEditorProps>;
12
+ export { NavigationEditor };
13
+ export default NavigationEditor;
@@ -0,0 +1,2 @@
1
+ declare const NavigationSettings: () => import("react/jsx-runtime").JSX.Element | null;
2
+ export default NavigationSettings;
@@ -0,0 +1,8 @@
1
+ import { FormSectionConfig } from '../../../../../../../core/src/index.ts';
2
+ interface SectionConfigEditorProps {
3
+ section: FormSectionConfig;
4
+ onPropertyChange: (field: string, value: unknown) => void;
5
+ disabled?: boolean;
6
+ }
7
+ declare const SectionConfigEditor: React.FC<SectionConfigEditorProps>;
8
+ export default SectionConfigEditor;
@@ -0,0 +1,10 @@
1
+ export type * from './AdminPropertiesPanel/AdminPropertiesPanel';
2
+ export { default as AdminPropertiesPanel } from './AdminPropertiesPanel/AdminPropertiesPanel';
3
+ export type * from './ConditionsTab/ConditionsTab';
4
+ export { default as ConditionsTab } from './ConditionsTab/ConditionsTab';
5
+ export type * from './NavigationEditor/NavigationEditor';
6
+ export { default as NavigationEditor } from './NavigationEditor/NavigationEditor';
7
+ export type * from './NavigationSettings/NavigationSettings';
8
+ export { default as NavigationSettings } from './NavigationSettings/NavigationSettings';
9
+ export type * from './SectionConfigEditor/SectionConfigEditor';
10
+ export { default as SectionConfigEditor } from './SectionConfigEditor/SectionConfigEditor';
@@ -0,0 +1,7 @@
1
+ interface FieldValueButtonProps {
2
+ onClick: () => void;
3
+ hasSelection?: boolean;
4
+ disabled?: boolean;
5
+ }
6
+ declare const FieldValueButton: React.FC<FieldValueButtonProps>;
7
+ export default FieldValueButton;
@@ -0,0 +1,19 @@
1
+ interface FormField {
2
+ id: string;
3
+ label: string;
4
+ stepTitle: string;
5
+ stepIndex: number;
6
+ sectionId?: string;
7
+ path: string;
8
+ type: string;
9
+ }
10
+ interface FormFieldSelectorProps {
11
+ open: boolean;
12
+ onOpenChange: (open: boolean) => void;
13
+ currentStepId: string;
14
+ onSelectField: (field: FormField) => void;
15
+ selectedFieldPath?: string;
16
+ allowAllSteps?: boolean;
17
+ }
18
+ declare const FormFieldSelector: React.FC<FormFieldSelectorProps>;
19
+ export default FormFieldSelector;
@@ -0,0 +1,4 @@
1
+ export type * from './FieldValueButton/FieldValueButton';
2
+ export { default as FieldValueButton } from './FieldValueButton/FieldValueButton';
3
+ export type * from './FormFieldSelector/FormFieldSelector';
4
+ export { default as FormFieldSelector } from './FormFieldSelector/FormFieldSelector';
@@ -0,0 +1,13 @@
1
+ export * from './actions';
2
+ export * from './canvas';
3
+ export { CanvasComponent } from './canvas';
4
+ export * from './components-panel';
5
+ export * from './core';
6
+ export { FormBuilder } from './core';
7
+ export * from './editors';
8
+ export { AdminPropertiesPanel } from './editors';
9
+ export * from './fields';
10
+ export * from './layout';
11
+ export { FormHeader } from './layout';
12
+ export * from './sections';
13
+ export * from './steps';
@@ -0,0 +1,11 @@
1
+ interface FormFooterProps {
2
+ navigation?: {
3
+ next?: {
4
+ label: string;
5
+ enabled: boolean;
6
+ };
7
+ };
8
+ children?: React.ReactNode;
9
+ }
10
+ declare const FormFooter: React.FC<FormFooterProps>;
11
+ export default FormFooter;
@@ -0,0 +1,15 @@
1
+ interface FormFooterBaseProps extends React.HTMLAttributes<HTMLDivElement> {
2
+ navigation?: {
3
+ next?: {
4
+ label: string;
5
+ enabled: boolean;
6
+ };
7
+ };
8
+ children?: React.ReactNode;
9
+ isDisplayOnly?: boolean;
10
+ onNext?: () => void;
11
+ isLastStep?: boolean;
12
+ isDisabled?: boolean;
13
+ }
14
+ declare const FormFooterBase: React.FC<FormFooterBaseProps>;
15
+ export default FormFooterBase;
@@ -0,0 +1,35 @@
1
+ export interface FormHeaderProps {
2
+ title?: string;
3
+ stepNumber?: number | {
4
+ current: number;
5
+ total: number;
6
+ };
7
+ navigation?: {
8
+ previous?: {
9
+ label: string;
10
+ enabled: boolean;
11
+ action?: string;
12
+ };
13
+ isFirstStep?: boolean;
14
+ isLastStep?: boolean;
15
+ steps?: Array<{
16
+ id: string;
17
+ title: string;
18
+ }>;
19
+ };
20
+ showStepNumber?: boolean;
21
+ onNavigate?: (stepId: string) => void;
22
+ isEditing?: boolean;
23
+ children?: React.ReactNode;
24
+ /**
25
+ * If true, renders the header in display-only mode (buttons not clickable)
26
+ * Used in admin/builder view to show how the header would look
27
+ */
28
+ isDisplayOnly?: boolean;
29
+ }
30
+ /**
31
+ * This is the base FormHeader component that handles rendering.
32
+ * For user-facing forms, use UserFormHeader from packages/form-wizard/user/FormHeader
33
+ */
34
+ export declare const FormHeaderBase: React.FC<FormHeaderProps>;
35
+ export default FormHeaderBase;
@@ -0,0 +1,6 @@
1
+ export type * from './FormFooter';
2
+ export { default as FormFooter } from './FormFooter';
3
+ export type * from './FormFooterBase';
4
+ export { default as FormFooterBase } from './FormFooterBase';
5
+ export type * from './FormHeader/FormHeader';
6
+ export { default as FormHeader } from './FormHeader/FormHeader';
@@ -0,0 +1 @@
1
+ export declare const RightPanel: React.FC;
@@ -0,0 +1 @@
1
+ export { RightPanel } from './RightPanel/RightPanel';
@@ -0,0 +1,14 @@
1
+ interface AdminFormSectionProps {
2
+ children?: React.ReactNode;
3
+ sectionId: string;
4
+ stepId: string;
5
+ isDraggable?: boolean;
6
+ canDelete?: boolean;
7
+ onMoveSection?: (direction: "up" | "down") => void;
8
+ onDeleteSection?: () => void;
9
+ flowData?: Record<string, unknown>;
10
+ onUpdateFlowData?: (key: string, value: unknown) => void;
11
+ loaderStatuses?: Record<string, "idle" | "loading" | "success" | "error">;
12
+ }
13
+ declare const AdminFormSection: React.FC<AdminFormSectionProps>;
14
+ export default AdminFormSection;
@@ -0,0 +1,13 @@
1
+ import { FormSectionConfig } from '../../../../../../../core/src/index.ts';
2
+ interface SectionContainerProps {
3
+ section: FormSectionConfig;
4
+ stepId: string;
5
+ canDelete: boolean;
6
+ onMoveSection?: (direction: "up" | "down") => void;
7
+ onDeleteSection?: () => void;
8
+ flowData?: Record<string, unknown>;
9
+ onUpdateFlowData?: (key: string, value: unknown) => void;
10
+ loaderStatuses?: Record<string, "idle" | "loading" | "success" | "error">;
11
+ }
12
+ export declare function SectionContainer({ section, stepId, canDelete, onMoveSection, onDeleteSection, flowData, onUpdateFlowData, loaderStatuses, }: SectionContainerProps): import("react/jsx-runtime").JSX.Element;
13
+ export default SectionContainer;
@@ -0,0 +1,4 @@
1
+ export type * from './AdminFormSection/AdminFormSection';
2
+ export { default as AdminFormSection } from './AdminFormSection/AdminFormSection';
3
+ export type * from './SectionContainer/SectionContainer';
4
+ export { default as SectionContainer } from './SectionContainer/SectionContainer';
@@ -0,0 +1,7 @@
1
+ import { FormStepConfig, TemplateStepConfig } from '../../../../../../../core/src/index.ts';
2
+ interface AdminStepSettingsProps {
3
+ stepId: string;
4
+ step: FormStepConfig | TemplateStepConfig;
5
+ }
6
+ declare const AdminStepSettings: React.FC<AdminStepSettingsProps>;
7
+ export default AdminStepSettings;
@@ -0,0 +1,18 @@
1
+ import { FormStepConfig, TemplateStepConfig } from '../../../../../../../core/src/index.ts';
2
+ interface SortableStepItemProps {
3
+ step: FormStepConfig | TemplateStepConfig;
4
+ index: number;
5
+ currentStepIndex: number;
6
+ editingStepId: string | null;
7
+ editingTitle: string;
8
+ onStepChange: (index: number) => void;
9
+ onStepTitleDoubleClick: (stepId: string, title: string) => void;
10
+ onTitleChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
11
+ onTitleSave: (stepId: string, e: React.FormEvent) => void;
12
+ onRemoveStep: (stepId: string) => void;
13
+ onDuplicateStep: (stepIndex: number) => void;
14
+ onSaveAsTemplate?: (step: FormStepConfig) => void;
15
+ stepsLength: number;
16
+ }
17
+ export declare const SortableStepItem: React.FC<SortableStepItemProps>;
18
+ export default SortableStepItem;