@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 +14 -0
- package/package.json +1 -1
- package/schema/campaignItem.schema.json +2943 -1181
- package/schemas/campaign.js +34 -3
- package/schemas/element.js +4 -1
- package/schemas/elementProperties.js +52 -1
- package/schemas/step.js +4 -0
- package/types/schemas/campaign.d.ts +23795 -9959
- package/types/schemas/element.d.ts +697 -547
- package/types/schemas/elementProperties.d.ts +135 -76
- package/types/schemas/form.d.ts +2781 -2171
- package/types/schemas/formDisplay.d.ts +57 -57
- package/types/schemas/step.d.ts +304 -228
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
|