@digiform/builder 0.1.7 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FormBuilder.d.ts +24 -0
- package/client.cjs +1 -1
- package/client.d.ts +18 -0
- package/client.js +1 -1
- package/component-registry/components/alert.d.ts +4 -0
- package/component-registry/components/button.d.ts +4 -0
- package/component-registry/components/checkbox.d.ts +9 -0
- package/component-registry/components/code-input/code-input.d.ts +4 -0
- package/component-registry/components/dropdown.d.ts +1 -0
- package/component-registry/components/heading.d.ts +4 -0
- package/component-registry/components/index.d.ts +35 -0
- package/component-registry/components/paragraph.d.ts +4 -0
- package/component-registry/components/progress-loader.d.ts +4 -0
- package/component-registry/components/radioGroup.d.ts +1 -0
- package/component-registry/components/text.d.ts +2 -0
- package/component-registry/components/textarea.d.ts +2 -0
- package/component-registry/createFormFieldComponent.d.ts +52 -0
- package/component-registry/index.d.ts +3 -0
- package/component-registry/types.d.ts +42 -0
- package/component-registry/utils.d.ts +33 -0
- package/component-registry/validation.d.ts +141 -0
- package/component-registry/validationBridge.d.ts +10 -0
- package/components/ConnectionErrorScreen/ConnectionErrorScreen.d.ts +10 -0
- package/components/DatabaseStatusIndicator/DatabaseStatusIndicator.d.ts +24 -0
- package/config/SecureConfigLoader.d.ts +57 -0
- package/config/hooks.d.ts +2 -0
- package/config/index.d.ts +5 -0
- package/config/types.d.ts +94 -0
- package/{configReader-BkMPr3Ju.js → configReader-C49NagAF.js} +4936 -4988
- package/configReader-C49NagAF.js.map +1 -0
- package/{configReader-CbGTKRUP.cjs → configReader-CT1_bYSZ.cjs} +7 -7
- package/configReader-CT1_bYSZ.cjs.map +1 -0
- package/design-system/components/ComponentSourceBadge/ComponentSourceBadge.d.ts +15 -0
- package/design-system/components/FormFieldWrapper/FormFieldWrapper.d.ts +18 -0
- package/design-system/custom/config/date-preset.config.d.ts +7 -0
- package/design-system/custom/config/email-preset.config.d.ts +7 -0
- package/design-system/custom/config/index.d.ts +10 -0
- package/design-system/custom/config/number-preset.config.d.ts +7 -0
- package/design-system/custom/config/tel-preset.config.d.ts +7 -0
- package/design-system/custom/index.d.ts +17 -0
- package/design-system/custom/utils/create-preset-config.d.ts +74 -0
- package/design-system/generated/rhc-catalog.generated.d.ts +9360 -0
- package/design-system/index.d.ts +15 -0
- package/design-system/rhc/components.d.ts +12 -0
- package/design-system/rhc/config/alert.config.d.ts +5 -0
- package/design-system/rhc/config/button.config.d.ts +8 -0
- package/design-system/rhc/config/checkbox.config.d.ts +4 -0
- package/design-system/rhc/config/form-builder.config.d.ts +74 -0
- package/design-system/rhc/config/heading.config.d.ts +5 -0
- package/design-system/rhc/config/index.d.ts +9 -0
- package/design-system/rhc/config/paragraph.config.d.ts +8 -0
- package/design-system/rhc/config/radio-group.config.d.ts +5 -0
- package/design-system/rhc/config/select.config.d.ts +5 -0
- package/design-system/rhc/config/text-input.config.d.ts +5 -0
- package/design-system/rhc/config/textarea.config.d.ts +4 -0
- package/design-system/rhc/index.d.ts +1 -0
- package/design-system/rhc/utils/create-config.d.ts +76 -0
- package/design-system/rhc/utils/generate-schema.d.ts +20 -0
- package/design-system/types.d.ts +22 -0
- package/error-boundaries/BaseErrorBoundary/BaseErrorBoundary.d.ts +31 -0
- package/error-boundaries/ComponentErrorBoundary/ComponentErrorBoundary.d.ts +9 -0
- package/error-boundaries/ErrorBoundaryTest/ErrorBoundaryTest.d.ts +2 -0
- package/error-boundaries/FlowBuilderErrorBoundary/FlowBuilderErrorBoundary.d.ts +7 -0
- package/error-boundaries/index.d.ts +1 -0
- package/features/condition-editor/components/ConditionEditor/ConditionEditor.d.ts +17 -0
- package/features/condition-editor/components/ConditionItem/ConditionItem.d.ts +17 -0
- package/features/condition-editor/components/ConditionOperatorSelect/ConditionOperatorSelect.d.ts +8 -0
- package/features/condition-editor/components/ConditionRow/ConditionRow.d.ts +14 -0
- package/features/condition-editor/components/ConditionSummary/ConditionSummary.d.ts +7 -0
- package/features/condition-editor/components/ConditionTargetSelect/ConditionTargetSelect.d.ts +14 -0
- package/features/condition-editor/components/ConditionValueInput/ConditionValueInput.d.ts +10 -0
- package/features/condition-editor/components/EditConditionForm/EditConditionForm.d.ts +13 -0
- package/features/condition-editor/components/ExistingCondition/ExistingCondition.d.ts +13 -0
- package/features/condition-editor/components/LogicalConnector/LogicalConnector.d.ts +8 -0
- package/features/condition-editor/components/LogicalOperatorToggle/LogicalOperatorToggle.d.ts +13 -0
- package/features/condition-editor/components/NewConditionBuilder/NewConditionBuilder.d.ts +10 -0
- package/features/condition-editor/components/NewConditionRow/NewConditionRow.d.ts +15 -0
- package/features/condition-editor/components/VisibilityConditionBuilder/VisibilityConditionBuilder.d.ts +17 -0
- package/features/condition-editor/components/hooks/useTargetComponents.d.ts +6 -0
- package/features/condition-editor/components/utils/conditionUtils.d.ts +7 -0
- package/features/condition-editor/components/visibilityHelpers.d.ts +21 -0
- package/features/condition-editor/index.d.ts +17 -0
- package/features/dialog-system/components/ConfirmDialog.d.ts +12 -0
- package/features/dialog-system/components/DialogEditor/DialogEditor.d.ts +12 -0
- package/features/dialog-system/components/ModalDialog/ModalDialog.d.ts +12 -0
- package/features/dialog-system/components/VerifyEmailDialog/VerifyEmailDialog.d.ts +10 -0
- package/features/dialog-system/index.d.ts +4 -0
- package/features/form-builder/components/actions/ActionsPanel/ActionsPanel.d.ts +3 -0
- package/features/form-builder/components/actions/SortableActionItem/SortableActionItem.d.ts +9 -0
- package/features/form-builder/components/actions/index.d.ts +4 -0
- package/features/form-builder/components/actions-menu/FormBuilderActionsMenu/FormBuilderActionsMenu.d.ts +1 -0
- package/features/form-builder/components/actions-menu/index.d.ts +3 -0
- package/features/form-builder/components/actions-menu/items/CreateTemplateMenuItem/CreateTemplateMenuItem.d.ts +2 -0
- package/features/form-builder/components/actions-menu/items/ExampleMenuItem/ExampleMenuItem.d.ts +2 -0
- package/features/form-builder/components/actions-menu/items/index.d.ts +2 -0
- package/features/form-builder/components/actions-menu/registry.d.ts +9 -0
- package/features/form-builder/components/actions-menu/types.d.ts +44 -0
- package/features/form-builder/components/buttons/PreviewButton/PreviewButton.d.ts +74 -0
- package/features/form-builder/components/buttons/SaveDropdownButton/SaveDropdownButton.d.ts +8 -0
- package/features/form-builder/components/buttons/index.d.ts +6 -0
- package/features/form-builder/components/canvas/AdminRenderCanvasItems/AdminRenderCanvasItems.d.ts +15 -0
- package/features/form-builder/components/canvas/Canvas/Canvas.d.ts +3 -0
- package/features/form-builder/components/canvas/CanvasComponent/CanvasComponent.d.ts +16 -0
- package/features/form-builder/components/canvas/SortableComponent/SortableComponent.d.ts +13 -0
- package/features/form-builder/components/canvas/index.d.ts +8 -0
- package/features/form-builder/components/components-panel/FormWizardComponentItem/FormWizardComponentItem.d.ts +7 -0
- package/features/form-builder/components/components-panel/FormWizardComponentsPanel/FormWizardComponentsPanel.d.ts +6 -0
- package/features/form-builder/components/components-panel/SortableComponentItem/SortableComponentItem.d.ts +20 -0
- package/features/form-builder/components/components-panel/index.d.ts +6 -0
- package/features/form-builder/components/core/AdminFormContent/AdminFormContent.d.ts +5 -0
- package/features/form-builder/components/core/FormBuilder/FormBuilder.d.ts +23 -0
- package/features/form-builder/components/core/index.d.ts +4 -0
- package/features/form-builder/components/editors/AdminPropertiesPanel/AdminPropertiesPanel.d.ts +3 -0
- package/features/form-builder/components/editors/ConditionsTab/ConditionsTab.d.ts +10 -0
- package/features/form-builder/components/editors/NavigationEditor/NavigationEditor.d.ts +13 -0
- package/features/form-builder/components/editors/NavigationSettings/NavigationSettings.d.ts +2 -0
- package/features/form-builder/components/editors/SectionConfigEditor/SectionConfigEditor.d.ts +8 -0
- package/features/form-builder/components/editors/index.d.ts +10 -0
- package/features/form-builder/components/fields/FieldValueButton/FieldValueButton.d.ts +7 -0
- package/features/form-builder/components/fields/FormFieldSelector/FormFieldSelector.d.ts +19 -0
- package/features/form-builder/components/fields/index.d.ts +4 -0
- package/features/form-builder/components/index.d.ts +13 -0
- package/features/form-builder/components/layout/FormFooter.d.ts +11 -0
- package/features/form-builder/components/layout/FormFooterBase.d.ts +15 -0
- package/features/form-builder/components/layout/FormHeader/FormHeader.d.ts +35 -0
- package/features/form-builder/components/layout/index.d.ts +6 -0
- package/features/form-builder/components/panels/RightPanel/RightPanel.d.ts +1 -0
- package/features/form-builder/components/panels/index.d.ts +1 -0
- package/features/form-builder/components/sections/AdminFormSection/AdminFormSection.d.ts +14 -0
- package/features/form-builder/components/sections/SectionContainer/SectionContainer.d.ts +13 -0
- package/features/form-builder/components/sections/index.d.ts +4 -0
- package/features/form-builder/components/steps/AdminStepSettings/AdminStepSettings.d.ts +7 -0
- package/features/form-builder/components/steps/SortableStepItem/SortableStepItem.d.ts +18 -0
- package/features/form-builder/components/steps/StepLockIndicator/StepLockIndicator.d.ts +18 -0
- package/features/form-builder/components/steps/StepsList/StepsList.d.ts +3 -0
- package/features/form-builder/components/steps/index.d.ts +8 -0
- package/features/form-builder/context/FormBuilderContext.d.ts +30 -0
- package/features/form-builder/context/ResolvedStepContext.d.ts +9 -0
- package/features/form-builder/hooks/useCurrentStep.d.ts +18 -0
- package/features/form-builder/hooks/useDragAndDrop.d.ts +16 -0
- package/features/form-builder/hooks/useDragFeedback.d.ts +32 -0
- package/features/form-builder/hooks/useHoldToDrag.d.ts +18 -0
- package/features/form-builder/hooks/usePreviewConfig.d.ts +23 -0
- package/features/form-builder/hooks/useSectionOperations.d.ts +7 -0
- package/features/form-builder/index.d.ts +10 -0
- package/features/form-builder/providers/DragAndDropProvider/DragAndDropProvider.d.ts +8 -0
- package/features/form-builder/utils/PropertyLockIndicator/PropertyLockIndicator.d.ts +30 -0
- package/features/form-builder/utils/bodyConversionUtils.d.ts +35 -0
- package/features/form-builder/utils/collisionDetection.d.ts +6 -0
- package/features/form-management/components/FormBuilderView/FormBuilderView.d.ts +17 -0
- package/features/form-management/components/FormExplorer/FormExplorer.d.ts +38 -0
- package/features/form-management/components/FormExplorerCore/FormExplorerCore.d.ts +67 -0
- package/features/form-management/components/FormManager/FormManager.d.ts +43 -0
- package/features/form-management/components/FormSectionList/FormSectionList.d.ts +1 -0
- package/features/form-management/components/FormsView/FormsView.d.ts +40 -0
- package/features/form-management/components/NewFormDialog/NewFormDialog.d.ts +25 -0
- package/features/form-management/components/NewProjectDialog/NewProjectDialog.d.ts +23 -0
- package/features/form-management/components/ProjectCard/ProjectCard.d.ts +9 -0
- package/features/form-management/components/ProjectsView/ProjectsView.d.ts +20 -0
- package/features/form-management/components/SearchInput/SearchInput.d.ts +9 -0
- package/features/form-management/components/ViewCard/ViewCard.d.ts +40 -0
- package/features/form-management/components/pages/FormBuilderPage.d.ts +3 -0
- package/features/form-management/components/pages/FormsPage.d.ts +3 -0
- package/features/form-management/components/pages/ProjectsPage.d.ts +16 -0
- package/features/form-management/components/pages/index.d.ts +13 -0
- package/features/form-management/hooks/index.d.ts +9 -0
- package/features/form-management/hooks/useFormActions.d.ts +20 -0
- package/features/form-management/hooks/useFormData.d.ts +13 -0
- package/features/form-management/hooks/useFormExplorerState.d.ts +26 -0
- package/features/form-management/hooks/useFormOperations.d.ts +17 -0
- package/features/form-management/hooks/useFormsQuery.d.ts +50 -0
- package/features/form-management/hooks/useProjectActions.d.ts +25 -0
- package/features/form-management/hooks/useProjectOperations.d.ts +10 -0
- package/features/form-management/hooks/useProjectsData.d.ts +13 -0
- package/features/form-management/index.d.ts +29 -0
- package/features/form-management/layout/BaseHeader/BaseHeader.d.ts +1 -0
- package/features/form-management/layout/BaseLayout/BaseLayout.d.ts +25 -0
- package/features/form-management/providers/QueryProvider.d.ts +8 -0
- package/features/form-management/types/viewTypes.d.ts +53 -0
- package/features/form-management/utils/configInitializer.d.ts +4 -0
- package/features/index.d.ts +9 -0
- package/features/property-editors/components/ComponentValidationEditor/ComponentValidationEditor.d.ts +12 -0
- package/features/property-editors/components/GenericPropertyEditor/GenericPropertyEditor.d.ts +13 -0
- package/features/property-editors/components/ProgressLoaderEditor/ProgressLoaderEditor.d.ts +12 -0
- package/features/property-editors/components/RadioGroupEditor/RadioGroupEditor.d.ts +3 -0
- package/features/property-editors/components/SelectEditor/SelectEditor.d.ts +3 -0
- package/features/property-editors/components/ValidationRuleEditor/ValidationRuleEditor.d.ts +23 -0
- package/features/property-editors/components/ValidationRuleListItem/ValidationRuleListItem.d.ts +9 -0
- package/features/property-editors/components/ValidationRuleSheet/ValidationRuleSheet.d.ts +14 -0
- package/features/property-editors/index.d.ts +5 -0
- package/features/property-editors/types/schema.d.ts +66 -0
- package/features/property-editors/types/types.d.ts +23 -0
- package/features/template-system/components/CreateTemplateDialog/CreateTemplateDialog.d.ts +17 -0
- package/features/template-system/components/DeleteTemplateDialog/DeleteTemplateDialog.d.ts +11 -0
- package/features/template-system/components/DuplicateTemplateDialog/DuplicateTemplateDialog.d.ts +11 -0
- package/features/template-system/components/EditTemplateDialog/EditTemplateDialog.d.ts +10 -0
- package/features/template-system/components/EnhancedTemplateBrowser/EnhancedTemplateBrowser.d.ts +11 -0
- package/features/template-system/components/TemplateContextMenu/TemplateContextMenu.d.ts +12 -0
- package/features/template-system/hooks/useTemplateGovernance.d.ts +46 -0
- package/features/template-system/hooks/useTemplatePermissions.d.ts +104 -0
- package/features/template-system/hooks/useTemplateStepTitle.d.ts +5 -0
- package/features/template-system/index.d.ts +17 -0
- package/features/template-system/services/TemplateStorageService.d.ts +52 -0
- package/features/template-system/utils/templateApplication.d.ts +75 -0
- package/features/template-system/utils/templateCategories.d.ts +105 -0
- package/features/template-system/utils/templateConfig.d.ts +148 -0
- package/features/template-system/utils/templateDeletion.d.ts +44 -0
- package/features/template-system/utils/templateDuplication.d.ts +65 -0
- package/features/template-system/utils/templateGovernance.d.ts +54 -0
- package/features/template-system/utils/templateLoader.d.ts +25 -0
- package/features/template-system/utils/templateMetadataOperations.d.ts +40 -0
- package/features/template-system/utils/templateUtils.d.ts +12 -0
- package/features/trigger-action-system/components/ActionConfigurationSheet/ActionConfigurationSheet.d.ts +9 -0
- package/features/trigger-action-system/components/ActionEditor/ActionEditor.d.ts +15 -0
- package/features/trigger-action-system/components/ActionsList/ActionsList.d.ts +8 -0
- package/features/trigger-action-system/components/ComponentTriggerActionEditor/ComponentTriggerActionEditor.d.ts +8 -0
- package/features/trigger-action-system/components/TriggerContextSelector/TriggerContextSelector.d.ts +9 -0
- package/features/trigger-action-system/index.d.ts +5 -0
- package/features/visual-mapping/components/ApiCallEditor/ApiCallEditor.d.ts +15 -0
- package/features/visual-mapping/components/ApiResponsePreview/ApiResponsePreview.d.ts +8 -0
- package/features/visual-mapping/components/ApiStructureTree/ApiStructureTree.d.ts +10 -0
- package/features/visual-mapping/components/CompactApiTestButton/CompactApiTestButton.d.ts +11 -0
- package/features/visual-mapping/components/ConnectionCircle/ConnectionCircle.d.ts +8 -0
- package/features/visual-mapping/components/ConnectionLines/ConnectionLines.d.ts +8 -0
- package/features/visual-mapping/components/CurrentMappingsDisplay/CurrentMappingsDisplay.d.ts +5 -0
- package/features/visual-mapping/components/EmptyFormFieldsMessage/EmptyFormFieldsMessage.d.ts +1 -0
- package/features/visual-mapping/components/FormFieldItem/FormFieldItem.d.ts +9 -0
- package/features/visual-mapping/components/FormFieldsList/FormFieldsList.d.ts +9 -0
- package/features/visual-mapping/components/KeyValueEditor/KeyValueEditor.d.ts +39 -0
- package/features/visual-mapping/components/MappingActionsDropdownMenu/MappingActionsDropdownMenu.d.ts +9 -0
- package/features/visual-mapping/components/MappingConnections/MappingConnections.d.ts +10 -0
- package/features/visual-mapping/components/RequestBodyEditor/RequestBodyEditor.d.ts +10 -0
- package/features/visual-mapping/components/SearchBar/SearchBar.d.ts +25 -0
- package/features/visual-mapping/components/VisualApiMappingInterface/VisualApiMappingInterface.d.ts +9 -0
- package/features/visual-mapping/components/index.d.ts +2 -0
- package/features/visual-mapping/components/typeCompatibility.d.ts +4 -0
- package/features/visual-mapping/components/utils/getFormFieldDataType.d.ts +2 -0
- package/features/visual-mapping/index.d.ts +18 -0
- package/features/visual-mapping/utils/apiBodyUtils.d.ts +1 -0
- package/index.cjs +1 -1
- package/index.cjs.map +1 -1
- package/index.d.ts +35 -0
- package/index.js +3 -3
- package/index.js.map +1 -1
- package/integrations/NextJSIntegration.d.ts +23 -0
- package/integrations/ReactRouterIntegration.d.ts +16 -0
- package/integrations/index.d.ts +12 -0
- package/integrations/react-router/FormBuilderPage/FormBuilderPage.d.ts +23 -0
- package/integrations/react-router/FormsPage.d.ts +18 -0
- package/integrations/react-router/index.d.ts +11 -0
- package/package.json +1 -1
- package/providers/FormSaveContext.d.ts +20 -0
- package/providers/FormSaveProvider.d.ts +93 -0
- package/providers/ThemeProvider.d.ts +2 -0
- package/providers/index.d.ts +9 -0
- package/server.d.ts +8 -0
- package/storage/FilesystemStorageProvider.d.ts +19 -0
- package/storage/NullStorageProvider.d.ts +15 -0
- package/storage/PgLiteSyncProvider.d.ts +41 -0
- package/storage/StorageProviderFactory.d.ts +77 -0
- package/storage/ZeroConfigFilesystemStorageProvider.d.ts +157 -0
- package/storage/database-schemas.d.ts +17901 -0
- package/storage/database-types.d.ts +194 -0
- package/storage/index.d.ts +17 -0
- package/storage/types.d.ts +195 -0
- package/store/formBuilderStore.d.ts +287 -0
- package/store/index.d.ts +7 -0
- package/store/initialState/templates.d.ts +22 -0
- package/styles/index.d.ts +0 -0
- package/utils/configInitializer.d.ts +11 -0
- package/utils/configReader.d.ts +13 -0
- package/utils/fieldChangeValidation.d.ts +127 -0
- package/utils/fileStorage.d.ts +253 -0
- package/utils/formSaver.d.ts +22 -0
- package/utils/formsExplorer.d.ts +128 -0
- package/utils/index.d.ts +2 -0
- package/utils/routeUtils.d.ts +85 -0
- package/configReader-BkMPr3Ju.js.map +0 -1
- package/configReader-CbGTKRUP.cjs.map +0 -1
|
@@ -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,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,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,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';
|
package/features/form-builder/components/canvas/AdminRenderCanvasItems/AdminRenderCanvasItems.d.ts
ADDED
|
@@ -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,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,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,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,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,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,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,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;
|