@almadar/core 10.74.0 → 10.76.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 +14 -3
- package/dist/builders.js.map +1 -1
- package/dist/{effect-C0MRXCwF.d.ts → effect-wTKhHDhB.d.ts} +5 -5
- package/dist/{entityAccess-CpfvoNOd.d.ts → entityAccess-DWkf9MFx.d.ts} +14 -2
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory/index.js +6 -2
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +14 -3
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/{index-D4jODKSD.d.ts → index-BBBFTgQp.d.ts} +4 -4
- package/dist/index.d.ts +12 -11
- package/dist/index.js +94 -10
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +16 -2
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +11 -5
- package/dist/patterns/index.js +5 -3
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +3 -1
- package/dist/patterns/registry.json +3 -1
- package/dist/{schema-DJY7OUOM.d.ts → schema-ZPExOj0F.d.ts} +192 -89
- package/dist/{trait-D1zKrxnf.d.ts → trait-B9VCCiUM.d.ts} +23 -22
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +27 -5
- package/dist/types/index.js.map +1 -1
- package/dist/{types-BdiOJCat.d.ts → types-BxiymBBS.d.ts} +17 -3
- package/package.json +2 -2
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, g as Trait, T as TraitEventListener, h as CallSiteConfig, j 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-wTKhHDhB.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-ZPExOj0F.js';
|
|
3
|
+
import { b as TraitConfig, g as Trait, T as TraitEventListener, h as CallSiteConfig, j as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-B9VCCiUM.js';
|
|
4
4
|
import { S as SExpr } from './expression-Fk8bQWef.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
package/dist/builders.js
CHANGED
|
@@ -101,7 +101,8 @@ var FIELD_TYPES = [
|
|
|
101
101
|
"trait",
|
|
102
102
|
"slot",
|
|
103
103
|
"pattern",
|
|
104
|
-
"node"
|
|
104
|
+
"node",
|
|
105
|
+
"event"
|
|
105
106
|
];
|
|
106
107
|
z.enum(FIELD_TYPES);
|
|
107
108
|
var RelationCardinalitySchema = z.enum([
|
|
@@ -194,6 +195,7 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
194
195
|
scalarVariant("slot"),
|
|
195
196
|
scalarVariant("pattern"),
|
|
196
197
|
scalarVariant("node"),
|
|
198
|
+
scalarVariant("event"),
|
|
197
199
|
scalarVariant("money"),
|
|
198
200
|
scalarVariant("file"),
|
|
199
201
|
// Enum variant — REQUIRES non-empty values.
|
|
@@ -559,7 +561,11 @@ var TraitEntityFieldSchema = z.object({
|
|
|
559
561
|
"image",
|
|
560
562
|
"trait",
|
|
561
563
|
"slot",
|
|
562
|
-
"pattern"
|
|
564
|
+
"pattern",
|
|
565
|
+
// `node` was missing here while being a real `TraitFieldType` member
|
|
566
|
+
// — the same latent-drift trap `event` would otherwise repeat.
|
|
567
|
+
"node",
|
|
568
|
+
"event"
|
|
563
569
|
]),
|
|
564
570
|
required: z.boolean().optional(),
|
|
565
571
|
default: TraitConfigValueSchema.optional(),
|
|
@@ -669,7 +675,8 @@ var TraitEventListenerSchema = z.object({
|
|
|
669
675
|
});
|
|
670
676
|
var RequiredFieldSchema = z.object({
|
|
671
677
|
name: z.string().min(1),
|
|
672
|
-
|
|
678
|
+
// `node` was missing here too (same drift as TraitEntityFieldSchema above).
|
|
679
|
+
type: z.enum(["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image", "trait", "slot", "pattern", "node", "event"]),
|
|
673
680
|
description: z.string().optional()
|
|
674
681
|
});
|
|
675
682
|
var TraitReferenceSchema = z.object({
|
|
@@ -1306,6 +1313,10 @@ var ExpectDeclarationSchema = z.discriminatedUnion("kind", [
|
|
|
1306
1313
|
kind: z.literal("event"),
|
|
1307
1314
|
traitName: z.string().min(1, "Expected event trait name is required"),
|
|
1308
1315
|
event: z.string().min(1, "Expected event name is required")
|
|
1316
|
+
}),
|
|
1317
|
+
z.object({
|
|
1318
|
+
kind: z.literal("page"),
|
|
1319
|
+
path: z.string().min(1, "Expected page path is required")
|
|
1309
1320
|
})
|
|
1310
1321
|
]);
|
|
1311
1322
|
function isEntityReference(entity) {
|