@schema-forms-data/react 0.3.21

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 SchemaForms
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # @schema-forms-data/react
2
+
3
+ [![npm](https://img.shields.io/npm/v/@schema-forms-data/react)](https://www.npmjs.com/package/@schema-forms-data/react)
4
+ [![license](https://img.shields.io/badge/license-MIT-blue.svg)](../../LICENSE)
5
+
6
+ **Meta-package** — re-exports everything from all SchemaForms packages in one install.
7
+
8
+ ## Install
9
+
10
+ ```bash
11
+ npm install @schema-forms-data/react react-hook-form lucide-react
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ ```tsx
17
+ // Instead of installing 4 separate packages:
18
+ import { FormRenderer, BuilderProvider, Canvas } from "@schema-forms-data/react";
19
+ import type { FormSchema, FieldType } from "@schema-forms-data/react";
20
+ ```
21
+
22
+ This package re-exports from:
23
+
24
+ - `@schema-forms-data/core` — types, enums, utilities
25
+ - `@schema-forms-data/templates` — TemplateProvider, template registry, preset blocks
26
+ - `@schema-forms-data/renderer` — FormRenderer, RendererContext
27
+ - `@schema-forms-data/builder` — BuilderProvider, Canvas, ConfigPanel, Palette
28
+
29
+ ## When to use individual packages instead
30
+
31
+ Use individual packages when:
32
+
33
+ - You only need the **renderer** (smaller bundle, no `@dnd-kit` in the output)
34
+ - You only need the **builder** (no react-hook-form required)
35
+ - You're building a micro-frontend and need fine-grained control
36
+
37
+ ## License
38
+
39
+ MIT © [SchemaForms](https://github.com/SchemaForms)