@almadar/core 7.5.0 → 7.6.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/dist/builders.d.ts +2 -2
- package/dist/builders.js +9 -1
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-BH2woEkf.d.ts → compose-behaviors-C_Vjyfmw.d.ts} +1 -1
- package/dist/domain-language/index.d.ts +1 -1
- package/dist/domain-language/index.js +9 -1
- package/dist/domain-language/index.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/{schema-C3iwMsTl.d.ts → schema-BQhPDGd_.d.ts} +119 -1
- package/dist/types/index.d.ts +15 -4
- package/dist/types/index.js +10 -2
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SExpr } from '../expression-eBO9-SQM.js';
|
|
2
|
-
import { E as Entity, j as Page, h as OrbitalSchema, i as Trait } from '../schema-
|
|
2
|
+
import { E as Entity, j as Page, h as OrbitalSchema, i as Trait } from '../schema-BQhPDGd_.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '@almadar/patterns';
|
|
5
5
|
|
|
@@ -3612,6 +3612,13 @@ var TraitConfigValueSchema = z.lazy(
|
|
|
3612
3612
|
])
|
|
3613
3613
|
);
|
|
3614
3614
|
var TraitConfigSchema = z.record(TraitConfigValueSchema);
|
|
3615
|
+
var ConfigFieldDeclarationSchema = z.object({
|
|
3616
|
+
type: z.string(),
|
|
3617
|
+
default: TraitConfigValueSchema.optional()
|
|
3618
|
+
});
|
|
3619
|
+
var DeclaredTraitConfigSchema = z.record(
|
|
3620
|
+
ConfigFieldDeclarationSchema
|
|
3621
|
+
);
|
|
3615
3622
|
var TraitCategorySchema = z.enum([
|
|
3616
3623
|
"lifecycle",
|
|
3617
3624
|
"temporal",
|
|
@@ -3778,7 +3785,8 @@ var TraitSchema = z.object({
|
|
|
3778
3785
|
ticks: z.array(TraitTickSchema).optional(),
|
|
3779
3786
|
emits: z.array(TraitEventContractSchema).optional(),
|
|
3780
3787
|
listens: z.array(TraitEventListenerSchema).optional(),
|
|
3781
|
-
ui: z.record(z.unknown()).optional()
|
|
3788
|
+
ui: z.record(z.unknown()).optional(),
|
|
3789
|
+
config: DeclaredTraitConfigSchema.optional()
|
|
3782
3790
|
});
|
|
3783
3791
|
var TraitRefSchema = z.union([
|
|
3784
3792
|
z.string().min(1),
|