@rizom/brain 0.2.0-alpha.80 → 0.2.0-alpha.82
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/brain.js +720 -693
- package/dist/entities.d.ts +25 -5
- package/dist/entities.js +64 -64
- package/dist/entities.js.map +11 -10
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/interfaces.js.map +1 -1
- package/dist/migrations/entity-service/0001_sleepy_mandroid.sql +1 -0
- package/dist/migrations/entity-service/meta/0001_snapshot.json +139 -0
- package/dist/migrations/entity-service/meta/_journal.json +7 -0
- package/dist/plugins.d.ts +22 -5
- package/dist/plugins.js +71 -71
- package/dist/plugins.js.map +19 -18
- package/dist/services.d.ts +19 -2
- package/dist/services.js +68 -68
- package/dist/services.js.map +10 -9
- package/dist/site.js +178 -178
- package/dist/site.js.map +34 -30
- package/dist/templates.d.ts +3 -3
- package/dist/templates.js.map +1 -1
- package/package.json +1 -1
package/dist/templates.d.ts
CHANGED
|
@@ -68,13 +68,13 @@ interface RuntimeScript {
|
|
|
68
68
|
* @param TSchema - Type validated by schema (e.g., with optional url/typeLabel)
|
|
69
69
|
* @param TComponent - Type expected by component (e.g., with required url/typeLabel)
|
|
70
70
|
*/
|
|
71
|
-
declare function createTypedComponent<TSchema, TComponent = TSchema>(schema: z.ZodType<TSchema>, component: ComponentType<TComponent>): ComponentType<unknown>;
|
|
71
|
+
declare function createTypedComponent<TSchema, TComponent = TSchema>(schema: z.ZodType<TSchema, z.ZodTypeDef, unknown>, component: ComponentType<TComponent>): ComponentType<unknown>;
|
|
72
72
|
/**
|
|
73
73
|
* Unified template interface that bundles content generation and view rendering
|
|
74
74
|
* This is the single source of truth for what constitutes a template
|
|
75
75
|
*/
|
|
76
76
|
interface Template extends Omit<z.infer<typeof TemplateSchema>, "schema" | "layout" | "formatter"> {
|
|
77
|
-
schema: z.
|
|
77
|
+
schema: z.ZodType<unknown, z.ZodTypeDef, unknown>;
|
|
78
78
|
layout?: {
|
|
79
79
|
component?: ComponentType<unknown>;
|
|
80
80
|
fullscreen?: boolean;
|
|
@@ -100,7 +100,7 @@ interface Template extends Omit<z.infer<typeof TemplateSchema>, "schema" | "layo
|
|
|
100
100
|
* @param TComponent - Type expected by component (after enrichment)
|
|
101
101
|
*/
|
|
102
102
|
declare function createTemplate<TSchema = unknown, TComponent = TSchema>(template: Omit<Template, "layout" | "schema"> & {
|
|
103
|
-
schema: z.ZodType<TSchema>;
|
|
103
|
+
schema: z.ZodType<TSchema, z.ZodTypeDef, unknown>;
|
|
104
104
|
layout?: {
|
|
105
105
|
component?: ComponentType<TComponent>;
|
|
106
106
|
fullscreen?: boolean;
|