@arudovwen/form-builder-react 1.6.3 → 1.6.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/README.md +5 -1
- package/dist/form-builder.es.js +1 -1
- package/dist/form-builder.umd.js +13 -13
- package/dist/{index-C1hmK0J7.js → index-Cr7HZu5N.js} +3145 -2976
- package/dist/{logic-flow-BjzG2Elt.js → logic-flow-CD82VQN6.js} +1 -1
- package/package.json +1 -1
- package/types/utils/default-templates.d.ts +70 -0
package/README.md
CHANGED
|
@@ -8,6 +8,8 @@ The **Form Builder Package** is a reusable library designed to simplify the crea
|
|
|
8
8
|
|
|
9
9
|
- **Drag-and-Drop Support**: Easily add and arrange form elements.
|
|
10
10
|
- **Customizable Components**: Modify form elements to suit your needs.
|
|
11
|
+
- **Form Templates**: Built-in and customizable form templates.
|
|
12
|
+
- **Conversational View**: Provide a modern, interactive, one-question-at-a-time form filling experience (similar to Typeform).
|
|
11
13
|
- **Dynamic Rendering**: Automatically update forms based on user input or configuration.
|
|
12
14
|
- **TypeScript Support**: Fully typed for better developer experience.
|
|
13
15
|
- **Lightweight and Fast**: Built with modern tools for optimal performance.
|
|
@@ -105,6 +107,8 @@ export default App;
|
|
|
105
107
|
| `publishLoading` | `boolean` | Shows loading icon on the publish button. |
|
|
106
108
|
| `onTitleChange` | `(newTitle: string) => void` | Callback function triggered when the form title is renamed. |
|
|
107
109
|
| `uploadUrl` | `string` | Base URL used for uploading files inside the builder/viewer. |
|
|
110
|
+
| `templates` | `any[]` | Array of predefined templates available in the builder (default templates are included automatically). |
|
|
111
|
+
| `onAddTemplate` | `() => void` | Callback function triggered when adding an external template. |
|
|
108
112
|
|
|
109
113
|
### Props for `FormViewer`
|
|
110
114
|
|
|
@@ -117,7 +121,7 @@ export default App;
|
|
|
117
121
|
| `ignoreValidation` | `boolean` | Whether form validation rules should be bypassed or enforced. |
|
|
118
122
|
| `isReadOnly` | `boolean` | Determines if the viewer is read-only (fields cannot be interacted with). |
|
|
119
123
|
| `loading` | `boolean` | Indicates whether the form viewer is in a loading state. |
|
|
120
|
-
| `renderType` | `'single' \| 'multi'` | Determines how the form renders (single page
|
|
124
|
+
| `renderType` | `'single' \| 'multi' \| 'conversational'` | Determines how the form renders (single page, multi-step, or one-question-at-a-time). |
|
|
121
125
|
| `children` | `React.ReactNode` | Children to append inside the form wrapper. |
|
|
122
126
|
| `hideFooter` | `boolean` | Hides the default Submit actions footers when set to true. |
|
|
123
127
|
| `onGetValues` | `(data: any) => void` | Callback triggered to fetch form values dynamically as they change. |
|
package/dist/form-builder.es.js
CHANGED