@formspec/build 0.1.0-alpha.51 → 0.1.0-alpha.53
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/dist/analyzer/builtin-brands.d.ts +13 -0
- package/dist/analyzer/builtin-brands.d.ts.map +1 -0
- package/dist/analyzer/class-analyzer.d.ts.map +1 -1
- package/dist/analyzer/tsdoc-parser.d.ts.map +1 -1
- package/dist/browser.cjs +17 -0
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.ts +8 -2
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +19 -0
- package/dist/browser.js.map +1 -1
- package/dist/build-alpha.d.ts +21 -0
- package/dist/build-beta.d.ts +21 -0
- package/dist/build-internal.d.ts +21 -0
- package/dist/build.d.ts +21 -0
- package/dist/cli/logger.d.ts +22 -0
- package/dist/cli/logger.d.ts.map +1 -0
- package/dist/cli.cjs +326 -214
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +314 -205
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +274 -205
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +277 -205
- package/dist/index.js.map +1 -1
- package/dist/internals.cjs +219 -172
- package/dist/internals.cjs.map +1 -1
- package/dist/internals.js +220 -172
- package/dist/internals.js.map +1 -1
- package/dist/json-schema/generator.d.ts +6 -1
- package/dist/json-schema/generator.d.ts.map +1 -1
- package/dist/ui-schema/generator.d.ts +6 -1
- package/dist/ui-schema/generator.d.ts.map +1 -1
- package/package.json +11 -5
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Routes through the canonical IR pipeline: Chain DSL → FormIR → JSON Schema 2020-12.
|
|
5
5
|
*/
|
|
6
|
-
import type { FormElement, FormSpec, MetadataPolicyInput } from "@formspec/core";
|
|
6
|
+
import type { FormElement, FormSpec, LoggerLike, MetadataPolicyInput } from "@formspec/core";
|
|
7
7
|
import { type JsonSchema2020 } from "./ir-generator.js";
|
|
8
8
|
/**
|
|
9
9
|
* Options for generating JSON Schema from a Chain DSL form.
|
|
@@ -23,6 +23,11 @@ export interface GenerateJsonSchemaOptions {
|
|
|
23
23
|
readonly enumSerialization?: "enum" | "oneOf";
|
|
24
24
|
/** Metadata resolution policy for chain DSL generation. */
|
|
25
25
|
readonly metadata?: MetadataPolicyInput | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Optional logger for diagnostic output. Defaults to a no-op logger so
|
|
28
|
+
* existing callers produce no output.
|
|
29
|
+
*/
|
|
30
|
+
readonly logger?: LoggerLike | undefined;
|
|
26
31
|
}
|
|
27
32
|
/**
|
|
28
33
|
* Generates a JSON Schema 2020-12 from a FormSpec.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../src/json-schema/generator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../src/json-schema/generator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAG7F,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAE3B;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C;;;OAGG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9C,2DAA2D;IAC3D,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACpD;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CAC1C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,SAAS,WAAW,EAAE,EACjE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EACjB,OAAO,CAAC,EAAE,yBAAyB,GAClC,cAAc,CAiBhB"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Routes through the canonical IR pipeline: Chain DSL → FormIR → UI Schema.
|
|
5
5
|
*/
|
|
6
|
-
import type { FormElement, FormSpec, MetadataPolicyInput } from "@formspec/core";
|
|
6
|
+
import type { FormElement, FormSpec, LoggerLike, MetadataPolicyInput } from "@formspec/core";
|
|
7
7
|
import type { UISchema } from "./types.js";
|
|
8
8
|
/**
|
|
9
9
|
* Options for generating a UI Schema from a Chain DSL form.
|
|
@@ -13,6 +13,11 @@ import type { UISchema } from "./types.js";
|
|
|
13
13
|
export interface GenerateUiSchemaOptions {
|
|
14
14
|
/** Metadata resolution policy for chain DSL UI generation. */
|
|
15
15
|
readonly metadata?: MetadataPolicyInput | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Optional logger for diagnostic output. Defaults to a no-op logger so
|
|
18
|
+
* existing callers produce no output.
|
|
19
|
+
*/
|
|
20
|
+
readonly logger?: LoggerLike | undefined;
|
|
16
21
|
}
|
|
17
22
|
/**
|
|
18
23
|
* Generates a JSON Forms UI Schema from a FormSpec.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../src/ui-schema/generator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../src/ui-schema/generator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAI7F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,8DAA8D;IAC9D,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACpD;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CAC1C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,SAAS,WAAW,EAAE,EAC/D,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EACjB,OAAO,CAAC,EAAE,uBAAuB,GAChC,QAAQ,CAUV"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formspec/build",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.53",
|
|
4
4
|
"description": "Build tools to compile FormSpec forms to JSON Schema and UI Schema",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -33,16 +33,22 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"zod": "^3.25.0",
|
|
36
|
-
"@formspec/analysis": "0.1.0-alpha.
|
|
37
|
-
"@formspec/config": "0.1.0-alpha.
|
|
38
|
-
"@formspec/core": "0.1.0-alpha.
|
|
36
|
+
"@formspec/analysis": "0.1.0-alpha.53",
|
|
37
|
+
"@formspec/config": "0.1.0-alpha.53",
|
|
38
|
+
"@formspec/core": "0.1.0-alpha.53"
|
|
39
|
+
},
|
|
40
|
+
"optionalDependencies": {
|
|
41
|
+
"pino": "^9.0.0",
|
|
42
|
+
"pino-pretty": "^11.0.0"
|
|
39
43
|
},
|
|
40
44
|
"peerDependencies": {
|
|
41
45
|
"typescript": "^5.0.0"
|
|
42
46
|
},
|
|
43
47
|
"devDependencies": {
|
|
48
|
+
"pino": "^9.0.0",
|
|
49
|
+
"pino-pretty": "^11.0.0",
|
|
44
50
|
"vitest": "^3.0.0",
|
|
45
|
-
"@formspec/dsl": "0.1.0-alpha.
|
|
51
|
+
"@formspec/dsl": "0.1.0-alpha.53"
|
|
46
52
|
},
|
|
47
53
|
"publishConfig": {
|
|
48
54
|
"access": "public"
|