@u-krupaveho-kraba/form-schemas 0.3.0 → 0.4.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 CHANGED
@@ -36,6 +36,20 @@ if (!result.success) {
36
36
  }
37
37
  ```
38
38
 
39
+ ### Types
40
+
41
+ Every schema's inferred type ships alongside it. The four most-reached-for
42
+ shapes are exported under their plain names as well as the historical
43
+ `*SchemaOutput` ones:
44
+
45
+ ```ts
46
+ import type { Form, FormTheme, Variant, CampaignItem } from "@topol/form-schemas";
47
+ ```
48
+
49
+ `Variant`/`CampaignItem` here are the **wire** shapes, carrying `definition`
50
+ (an inline form or a `{ref}` pointer). The *editor-facing* equivalents, which
51
+ carry a resolved `form` instead, live in `@topol/form-editor-schemas`.
52
+
39
53
  ### Generating JSON Schema
40
54
 
41
55
  Both schema families can be serialized to standard JSON Schema (draft
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@u-krupaveho-kraba/form-schemas",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Zod schemas for Topol form JSON (validation gate + AI generation)",
5
5
  "author": "Topol.io",
6
6
  "license": "ISC",