formspec 0.1.0-alpha.27 → 0.1.0-alpha.28
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 +21 -0
- package/README.md +9 -3
- package/package.json +8 -7
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mike North
|
|
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
CHANGED
|
@@ -65,7 +65,6 @@ const resolvers = defineResolvers(OrderForm, {});
|
|
|
65
65
|
- `generateJsonSchema`
|
|
66
66
|
- `generateUiSchema`
|
|
67
67
|
- `writeSchemas`
|
|
68
|
-
- `buildMixedAuthoringSchemas`
|
|
69
68
|
|
|
70
69
|
### Runtime
|
|
71
70
|
|
|
@@ -76,14 +75,21 @@ const resolvers = defineResolvers(OrderForm, {});
|
|
|
76
75
|
- `InferSchema`
|
|
77
76
|
- `InferFormSchema`
|
|
78
77
|
- core field, layout, and state types
|
|
78
|
+
- resolver and validation helper types
|
|
79
|
+
|
|
80
|
+
### Utilities
|
|
81
|
+
|
|
82
|
+
- `createInitialFieldState`
|
|
83
|
+
- `validateForm`
|
|
84
|
+
- `logValidationIssues`
|
|
79
85
|
|
|
80
86
|
## When To Use Individual Packages
|
|
81
87
|
|
|
82
|
-
- Use `@formspec/build` directly for `generateSchemas()` and static TypeScript analysis.
|
|
88
|
+
- Use `@formspec/build` directly for `generateSchemas()`, `generateSchemasFromClass()`, `generateSchemasFromProgram()`, `buildMixedAuthoringSchemas()`, and static TypeScript analysis.
|
|
83
89
|
- Use `@formspec/eslint-plugin` for lint rules.
|
|
84
90
|
- Use `@formspec/cli` for build-time artifact generation from files.
|
|
85
91
|
- Use `@formspec/validator` for runtime JSON Schema validation.
|
|
86
92
|
|
|
87
93
|
## License
|
|
88
94
|
|
|
89
|
-
|
|
95
|
+
This package is part of the FormSpec monorepo and is released under the MIT License. See [LICENSE](./LICENSE) for details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "formspec",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.28",
|
|
4
4
|
"description": "Type-safe form specifications that compile to JSON Schema and JSON Forms UI Schema",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -15,13 +15,14 @@
|
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"dist",
|
|
18
|
-
"README.md"
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE"
|
|
19
20
|
],
|
|
20
21
|
"dependencies": {
|
|
21
|
-
"@formspec/core": "0.1.0-alpha.
|
|
22
|
-
"@formspec/dsl": "0.1.0-alpha.
|
|
23
|
-
"@formspec/build": "0.1.0-alpha.
|
|
24
|
-
"@formspec/runtime": "0.1.0-alpha.
|
|
22
|
+
"@formspec/core": "0.1.0-alpha.28",
|
|
23
|
+
"@formspec/dsl": "0.1.0-alpha.28",
|
|
24
|
+
"@formspec/build": "0.1.0-alpha.28",
|
|
25
|
+
"@formspec/runtime": "0.1.0-alpha.28"
|
|
25
26
|
},
|
|
26
27
|
"publishConfig": {
|
|
27
28
|
"access": "public"
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"type-safe",
|
|
35
36
|
"typescript"
|
|
36
37
|
],
|
|
37
|
-
"license": "
|
|
38
|
+
"license": "MIT",
|
|
38
39
|
"scripts": {
|
|
39
40
|
"build": "tsup && tsc --emitDeclarationOnly && declaration-file-normalizer dist/index.d.ts && pnpm run api-extractor:local",
|
|
40
41
|
"clean": "rm -rf dist temp",
|