@maestro-js/form 1.0.0-alpha.0
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 +386 -0
- package/dist/index.d.ts +183 -0
- package/dist/index.js +888 -0
- package/package.json +46 -0
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@maestro-js/form",
|
|
3
|
+
"description": "Headless React form primitives with client and server validation, hidden inputs for custom components, controlled/uncontrolled state management, and Standard Schema (Zod) FormData parsing with automatic type coercion. Use when building custom form components that need native constraint validation, server error integration, file upload handling, or type-safe FormData parsing. Provides HeadlessForm root component, useValidation/useWarningState/useControlledState/useReset hooks, HiddenInput/HiddenFileInput/HiddenSelect components, parseFormData/parseFormDataClientSide utilities, and composeValidators.",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"default": "./dist/index.js"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"version": "1.0.0-alpha.0",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "restricted"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"license": "UNLICENSED",
|
|
19
|
+
"repository": "https://github.com/Marcato-Partners/maestro-js",
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=22.18.0"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": ">=19"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"lodash.get": "^4.4.2",
|
|
28
|
+
"lodash.set": "^4.3.2"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@standard-schema/spec": "^1.1.0",
|
|
32
|
+
"@types/lodash.get": "^4.4.9",
|
|
33
|
+
"@types/lodash.set": "^4.3.9",
|
|
34
|
+
"@types/node": "^22.0.0",
|
|
35
|
+
"@types/react": "^19.0.0",
|
|
36
|
+
"tsx": "^4.21.0",
|
|
37
|
+
"zod": "^4.0.0"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsup --config ../../tsup.config.ts",
|
|
41
|
+
"typecheck": "tsc --noEmit",
|
|
42
|
+
"test": "NODE_OPTIONS=\"--import tsx\" beartest ./tests/**/*",
|
|
43
|
+
"format": "prettier --write src/",
|
|
44
|
+
"lint": "prettier --check src/"
|
|
45
|
+
}
|
|
46
|
+
}
|