@metaobjectsdev/codegen-ts-tanstack 1.0.0-rc.1 → 1.0.0-rc.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metaobjectsdev/codegen-ts-tanstack",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.3",
|
|
4
4
|
"description": "TanStack codegen for metaobjects — TanStack Query hooks for every entity, plus TanStack Table column definitions and grid-state hooks for entities declaring a layout.dataGrid.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@metaobjectsdev/metadata": "1.0.0-rc.
|
|
48
|
-
"@metaobjectsdev/codegen-ts": "1.0.0-rc.
|
|
47
|
+
"@metaobjectsdev/metadata": "1.0.0-rc.3",
|
|
48
|
+
"@metaobjectsdev/codegen-ts": "1.0.0-rc.3",
|
|
49
49
|
"ts-poet": "^6.10.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
// pass the SAME `tphSubtypeGrids` predicate to both, or a TPH subtype gets
|
|
23
23
|
// a .grid.ts with no .columns.tsx beside it (#287).
|
|
24
24
|
|
|
25
|
-
import {
|
|
25
|
+
import type { MetaObject } from "@metaobjectsdev/metadata";
|
|
26
26
|
import {
|
|
27
27
|
perEntity,
|
|
28
28
|
type Generator,
|
|
@@ -151,4 +151,4 @@ export const tanstackGridHook = function tanstackGridHook(opts?: TanstackGridHoo
|
|
|
151
151
|
generator.target = opts.target;
|
|
152
152
|
}
|
|
153
153
|
return generator;
|
|
154
|
-
} as GeneratorFactory<TanstackGridHookOpts |
|
|
154
|
+
} as GeneratorFactory<TanstackGridHookOpts | undefined>;
|
package/src/reference/grid.ts
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
// hooks.ts (the query hook a grid usually pairs with),
|
|
23
23
|
// grid-hook.ts (pass it the SAME `tphSubtypeGrids` predicate).
|
|
24
24
|
|
|
25
|
-
import {
|
|
25
|
+
import type { MetaObject } from "@metaobjectsdev/metadata";
|
|
26
26
|
import {
|
|
27
27
|
perEntity,
|
|
28
28
|
type Generator,
|
|
@@ -114,4 +114,4 @@ export const tanstackGrid = function tanstackGrid(opts?: TanstackGridOpts): Gene
|
|
|
114
114
|
generator.target = opts.target;
|
|
115
115
|
}
|
|
116
116
|
return generator;
|
|
117
|
-
} as GeneratorFactory<TanstackGridOpts |
|
|
117
|
+
} as GeneratorFactory<TanstackGridOpts | undefined>;
|
package/src/reference/hooks.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
// prepend to it, or replace the call entirely with your own renderer.
|
|
21
21
|
// composes-with: entity.ts (imports the table/schemas these hooks fetch/validate against).
|
|
22
22
|
|
|
23
|
-
import {
|
|
23
|
+
import type { MetaObject } from "@metaobjectsdev/metadata";
|
|
24
24
|
import {
|
|
25
25
|
perEntity,
|
|
26
26
|
type Generator,
|
|
@@ -109,4 +109,4 @@ export const tanstackQuery = function tanstackQuery(opts?: TanstackQueryOpts): G
|
|
|
109
109
|
generator.target = opts.target;
|
|
110
110
|
}
|
|
111
111
|
return generator;
|
|
112
|
-
} as GeneratorFactory<TanstackQueryOpts |
|
|
112
|
+
} as GeneratorFactory<TanstackQueryOpts | undefined>;
|