@almadar/core 7.5.0 → 7.5.1
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-CBp9-Qwa.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-Bvgo3r3r.d.ts} +105 -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
package/dist/builders.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TraitEventContract, E as Entity, a as TraitEventListener, b as TraitConfig, c as EntityField, d as EntityPersistence, e as EntityRow, U as UseDeclaration, f as EntityRef, g as TraitRef, P as PageRef, O as OrbitalDefinition, h as OrbitalSchema, i as Trait, j as Page, k as PageRefObject, l as TraitReference } from './schema-
|
|
1
|
+
import { T as TraitEventContract, E as Entity, a as TraitEventListener, b as TraitConfig, c as EntityField, d as EntityPersistence, e as EntityRow, U as UseDeclaration, f as EntityRef, g as TraitRef, P as PageRef, O as OrbitalDefinition, h as OrbitalSchema, i as Trait, j as Page, k as PageRefObject, l as TraitReference } from './schema-Bvgo3r3r.js';
|
|
2
2
|
import { S as SExpr } from './expression-eBO9-SQM.js';
|
|
3
|
-
export { C as ComposeBehaviorsInput, a as ComposeBehaviorsResult, E as EventWiringEntry, L as LayoutStrategy, b as applyEventWiring, c as composeBehaviors, d as detectLayoutStrategy } from './compose-behaviors-
|
|
3
|
+
export { C as ComposeBehaviorsInput, a as ComposeBehaviorsResult, E as EventWiringEntry, L as LayoutStrategy, b as applyEventWiring, c as composeBehaviors, d as detectLayoutStrategy } from './compose-behaviors-CBp9-Qwa.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '@almadar/patterns';
|
|
6
6
|
|
package/dist/builders.js
CHANGED
|
@@ -292,6 +292,13 @@ var TraitConfigValueSchema = z.lazy(
|
|
|
292
292
|
])
|
|
293
293
|
);
|
|
294
294
|
var TraitConfigSchema = z.record(TraitConfigValueSchema);
|
|
295
|
+
var ConfigFieldDeclarationSchema = z.object({
|
|
296
|
+
type: z.string(),
|
|
297
|
+
default: TraitConfigValueSchema.optional()
|
|
298
|
+
});
|
|
299
|
+
var DeclaredTraitConfigSchema = z.record(
|
|
300
|
+
ConfigFieldDeclarationSchema
|
|
301
|
+
);
|
|
295
302
|
var TraitCategorySchema = z.enum([
|
|
296
303
|
"lifecycle",
|
|
297
304
|
"temporal",
|
|
@@ -458,7 +465,8 @@ var TraitSchema = z.object({
|
|
|
458
465
|
ticks: z.array(TraitTickSchema).optional(),
|
|
459
466
|
emits: z.array(TraitEventContractSchema).optional(),
|
|
460
467
|
listens: z.array(TraitEventListenerSchema).optional(),
|
|
461
|
-
ui: z.record(z.unknown()).optional()
|
|
468
|
+
ui: z.record(z.unknown()).optional(),
|
|
469
|
+
config: DeclaredTraitConfigSchema.optional()
|
|
462
470
|
});
|
|
463
471
|
var TraitRefSchema = z.union([
|
|
464
472
|
z.string().min(1),
|