@almadar/core 10.79.0 → 10.80.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 +3 -3
- package/dist/builders.js +11 -3
- package/dist/builders.js.map +1 -1
- package/dist/{effect-Mx_niZdY.d.ts → effect-C4uehm-r.d.ts} +1 -1
- package/dist/{entityAccess-C3_cjLNi.d.ts → entityAccess-BMKFgmsc.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory/index.js +50 -164
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +11 -3
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/{index-B1N3gjT0.d.ts → index-DqUnw2Oo.d.ts} +4 -4
- package/dist/index.d.ts +10 -10
- package/dist/index.js +66 -172
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +101 -219
- package/dist/patterns/index.js +53 -167
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +51 -165
- package/dist/patterns/registry.json +51 -165
- package/dist/{schema-CkTuSx6F.d.ts → schema-Cma07_18.d.ts} +38 -38
- package/dist/{trait-B1fI0lTU.d.ts → trait-BXkQKZbO.d.ts} +32 -2
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +12 -4
- package/dist/types/index.js.map +1 -1
- package/dist/{types-B53Myv7U.d.ts → types-DoAKLgCZ.d.ts} +2 -2
- package/package.json +1 -1
package/dist/builders.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, h as RenderBinding, i as RenderUIEffect, d as EntityId, e as Entity, E as EntityField, a as EntityPersistence, f as EntityRow } from './effect-
|
|
2
|
-
import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, b as ExpectDeclaration, P as PageRef, c as Page, d as PageRefObject } from './schema-
|
|
3
|
-
import { b as TraitConfig, h as Trait, T as TraitEventListener, i as CallSiteConfig, k as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-
|
|
1
|
+
import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, h as RenderBinding, i as RenderUIEffect, d as EntityId, e as Entity, E as EntityField, a as EntityPersistence, f as EntityRow } from './effect-C4uehm-r.js';
|
|
2
|
+
import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, b as ExpectDeclaration, P as PageRef, c as Page, d as PageRefObject } from './schema-Cma07_18.js';
|
|
3
|
+
import { b as TraitConfig, h as Trait, T as TraitEventListener, i as CallSiteConfig, k as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-BXkQKZbO.js';
|
|
4
4
|
import { S as SExpr } from './expression-Fk8bQWef.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
package/dist/builders.js
CHANGED
|
@@ -459,11 +459,17 @@ var StateSchema = z.object({
|
|
|
459
459
|
onEntry: z.array(z.string()).optional(),
|
|
460
460
|
onExit: z.array(z.string()).optional()
|
|
461
461
|
});
|
|
462
|
+
var PayloadTypeWhenSchema = z.object({
|
|
463
|
+
knob: z.string().min(1),
|
|
464
|
+
equals: z.string().min(1),
|
|
465
|
+
type: z.string().min(1)
|
|
466
|
+
});
|
|
462
467
|
var PayloadFieldSchema = z.object({
|
|
463
468
|
name: z.string().min(1),
|
|
464
469
|
type: z.string().min(1),
|
|
465
470
|
required: z.boolean().optional(),
|
|
466
|
-
properties: z.lazy(() => z.array(PayloadFieldSchema)).optional()
|
|
471
|
+
properties: z.lazy(() => z.array(PayloadFieldSchema)).optional(),
|
|
472
|
+
typeWhen: z.array(PayloadTypeWhenSchema).optional()
|
|
467
473
|
});
|
|
468
474
|
var EventSchema = z.object({
|
|
469
475
|
key: z.string().min(1, "Event key is required"),
|
|
@@ -516,7 +522,8 @@ var ConfigFieldItemsDeclarationSchema = z.lazy(
|
|
|
516
522
|
() => z.object({
|
|
517
523
|
type: z.string().optional(),
|
|
518
524
|
properties: z.record(TraitEntityFieldSchema).optional(),
|
|
519
|
-
items: ConfigFieldItemsDeclarationSchema.optional()
|
|
525
|
+
items: ConfigFieldItemsDeclarationSchema.optional(),
|
|
526
|
+
values: z.array(z.string()).optional()
|
|
520
527
|
})
|
|
521
528
|
);
|
|
522
529
|
var ConfigFieldDeclarationSchema = z.object({
|
|
@@ -632,7 +639,8 @@ var EventPayloadFieldSchema = z.object({
|
|
|
632
639
|
required: z.boolean().optional(),
|
|
633
640
|
description: z.string().optional(),
|
|
634
641
|
entityType: z.string().optional(),
|
|
635
|
-
properties: z.lazy(() => z.array(EventPayloadFieldSchema)).optional()
|
|
642
|
+
properties: z.lazy(() => z.array(EventPayloadFieldSchema)).optional(),
|
|
643
|
+
typeWhen: z.array(PayloadTypeWhenSchema).optional()
|
|
636
644
|
});
|
|
637
645
|
var TraitEventContractSchema = z.object({
|
|
638
646
|
/**
|