@metaobjectsdev/codegen-ts-react 1.0.0-rc.5 → 1.0.0-rc.6
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/form-file.d.ts.map +1 -1
- package/dist/form-file.js +4 -0
- package/dist/form-file.js.map +1 -1
- package/package.json +3 -3
- package/src/form-file.ts +4 -0
- package/src/reference/form.ts +4 -0
package/dist/form-file.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-file.d.ts","sourceRoot":"","sources":["../src/form-file.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAA6B,KAAK,gBAAgB,EAExD,MAAM,4BAA4B,CAAC;AAGpC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"form-file.d.ts","sourceRoot":"","sources":["../src/form-file.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAA6B,KAAK,gBAAgB,EAExD,MAAM,4BAA4B,CAAC;AAGpC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,EAwChB,gBAAgB,CAAC,YAAY,CAAC,CAAC"}
|
package/dist/form-file.js
CHANGED
|
@@ -13,6 +13,10 @@ export const formFile = function formFile(opts) {
|
|
|
13
13
|
const userFilter = opts?.filter ?? (() => true);
|
|
14
14
|
const generator = {
|
|
15
15
|
name: "form-file",
|
|
16
|
+
// Marks this generator as part of the CLIENT UI tier — the runner aggregates it
|
|
17
|
+
// into ctx.config.includeUiTier so `agent/ui.md` describes a tier that this run
|
|
18
|
+
// actually emits, rather than one the metadata merely permits.
|
|
19
|
+
emitsUiTier: true,
|
|
16
20
|
// Always set: AND-composes the framework write-artifact guard
|
|
17
21
|
// (skips abstract types — no instance — and read-only projections —
|
|
18
22
|
// instantiable for read, never for write) with the optional user filter.
|
package/dist/form-file.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-file.js","sourceRoot":"","sources":["../src/form-file.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAyC,gBAAgB,EAAE,gBAAgB,EAAE,mBAAmB,EAChH,gBAAgB,GACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAO1D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,SAAS,QAAQ,CAAC,IAAmB;IAC3D,MAAM,UAAU,GAAG,IAAI,EAAE,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,SAAS,GAAc;QAC3B,IAAI,EAAE,WAAW;QACjB,8DAA8D;QAC9D,oEAAoE;QACpE,yEAAyE;QACzE,2EAA2E;QAC3E,yEAAyE;QACzE,6EAA6E;QAC7E,MAAM,EAAE,CAAC,CAAa,EAAE,EAAE;YACxB,mFAAmF;YACnF,mFAAmF;YACnF,oFAAoF;YACpF,kFAAkF;YAClF,qFAAqF;YACrF,gFAAgF;YAChF,OAAO,UAAU,CAAC,CAAC,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC;QAC9C,CAAC;QACD,QAAQ,EAAE,SAAS,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE;YAClC,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;gBACvB,MAAM,IAAI,KAAK,CA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AClF,qFAAqF;YACrF,gFAAgF;YAChF,OAAO,UAAU,CAAC,CAAC,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC;QAC9C,CAAC;QACD,QAAQ,EAAE,SAAS,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE;YAClC,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;gBACvB,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAC;YAC/E,CAAC;YACD,OAAO;gBACL,IAAI,EAAE,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,IAAI,MAAM,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,IAAI,WAAW,CAAC;gBAC9G,OAAO,EAAE,mBAAmB,CAC1B,cAAc,CAAC,MAAM,EAAE,GAAG,CAAC,aAAa,CAAC,EACzC,GAAG,CAAC,aAAa,CAAC,eAAe,CAClC;aACF,CAAC;QACJ,CAAC,CAAC;KACH,CAAC;IACF,IAAI,IAAI,EAAE,MAAM,EAAE,CAAC;QACjB,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IACjC,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAmC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metaobjectsdev/codegen-ts-react",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.6",
|
|
4
4
|
"description": "React codegen for metaobjects — emits <Entity>.form.tsx files using react-hook-form and @metaobjectsdev/react helpers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@metaobjectsdev/metadata": "1.0.0-rc.
|
|
49
|
-
"@metaobjectsdev/codegen-ts": "1.0.0-rc.
|
|
48
|
+
"@metaobjectsdev/metadata": "1.0.0-rc.6",
|
|
49
|
+
"@metaobjectsdev/codegen-ts": "1.0.0-rc.6",
|
|
50
50
|
"ts-poet": "^6.10.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
package/src/form-file.ts
CHANGED
|
@@ -22,6 +22,10 @@ export const formFile = function formFile(opts?: FormFileOpts): Generator {
|
|
|
22
22
|
const userFilter = opts?.filter ?? (() => true);
|
|
23
23
|
const generator: Generator = {
|
|
24
24
|
name: "form-file",
|
|
25
|
+
// Marks this generator as part of the CLIENT UI tier — the runner aggregates it
|
|
26
|
+
// into ctx.config.includeUiTier so `agent/ui.md` describes a tier that this run
|
|
27
|
+
// actually emits, rather than one the metadata merely permits.
|
|
28
|
+
emitsUiTier: true,
|
|
25
29
|
// Always set: AND-composes the framework write-artifact guard
|
|
26
30
|
// (skips abstract types — no instance — and read-only projections —
|
|
27
31
|
// instantiable for read, never for write) with the optional user filter.
|
package/src/reference/form.ts
CHANGED
|
@@ -47,6 +47,10 @@ export const formFile = function formFile(opts?: FormFileOpts): Generator {
|
|
|
47
47
|
const userFilter = opts?.filter ?? (() => true);
|
|
48
48
|
const generator: Generator = {
|
|
49
49
|
name: "form-file",
|
|
50
|
+
// Marks this generator as part of the CLIENT UI tier — the runner aggregates it
|
|
51
|
+
// into ctx.config.includeUiTier so `agent/ui.md` describes a tier that this run
|
|
52
|
+
// actually emits, rather than one the metadata merely permits.
|
|
53
|
+
emitsUiTier: true,
|
|
50
54
|
// Always set: AND-composes the framework write-artifact guard
|
|
51
55
|
// (skips abstract types — no instance — and read-only projections —
|
|
52
56
|
// instantiable for read, never for write) with the optional user filter.
|