@almadar/core 10.79.0 → 10.81.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 +39 -3
- package/dist/builders.js.map +1 -1
- package/dist/{effect-Mx_niZdY.d.ts → effect-BHoSW19_.d.ts} +259 -4
- package/dist/{entityAccess-C3_cjLNi.d.ts → entityAccess-0POr1WuY.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory/index.js +450 -164
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +39 -3
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/{index-B1N3gjT0.d.ts → index-rVlLkZJu.d.ts} +4 -4
- package/dist/index.d.ts +10 -10
- package/dist/index.js +1615 -574
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +28 -0
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +11 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +2707 -652
- package/dist/patterns/index.js +1441 -569
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +1004 -402
- package/dist/patterns/patterns-registry.json +423 -165
- package/dist/patterns/registry.json +423 -165
- package/dist/patterns/services-registry.json +1171 -424
- package/dist/{schema-CkTuSx6F.d.ts → schema-CkTTGH6l.d.ts} +38 -38
- package/dist/{trait-B1fI0lTU.d.ts → trait-D269f6pt.d.ts} +32 -2
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +175 -4
- package/dist/types/index.js.map +1 -1
- package/dist/{types-B53Myv7U.d.ts → types-7PHjoE7m.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-BHoSW19_.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-CkTTGH6l.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-D269f6pt.js';
|
|
4
4
|
import { S as SExpr } from './expression-Fk8bQWef.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
package/dist/builders.js
CHANGED
|
@@ -352,6 +352,34 @@ z.object({
|
|
|
352
352
|
azimuth: z.number().optional(),
|
|
353
353
|
elevation: z.number().optional()
|
|
354
354
|
});
|
|
355
|
+
var MANIFEST_ENTRY_KINDS = ["model", "image", "spritesheet", "audio", "json"];
|
|
356
|
+
var ManifestEntryKindSchema = z.enum(MANIFEST_ENTRY_KINDS);
|
|
357
|
+
var MANIFEST_CANVAS_AFFINITIES = ["isometric", "hex", "flat", "side", "3d", "none"];
|
|
358
|
+
var ManifestCanvasAffinitySchema = z.enum(MANIFEST_CANVAS_AFFINITIES);
|
|
359
|
+
var MANIFEST_SOURCE_CATALOGS = ["kenny", "kekec-assets", "iram-assets", "trait-wars-assets", "kflow-assets"];
|
|
360
|
+
var ManifestSourceCatalogSchema = z.enum(MANIFEST_SOURCE_CATALOGS);
|
|
361
|
+
var MANIFEST_ASSET_LICENSES = ["CC0", "proprietary"];
|
|
362
|
+
var ManifestAssetLicenseSchema = z.enum(MANIFEST_ASSET_LICENSES);
|
|
363
|
+
var ManifestFrameSpecSchema = z.union([
|
|
364
|
+
z.object({ kind: z.literal("iso-tile"), w: z.number(), h: z.number() }),
|
|
365
|
+
z.object({ kind: z.literal("sprite-sheet"), frame: z.number(), cols: z.number(), rows: z.number() }),
|
|
366
|
+
z.string().min(1),
|
|
367
|
+
z.null()
|
|
368
|
+
]);
|
|
369
|
+
z.object({
|
|
370
|
+
url: z.string(),
|
|
371
|
+
name: z.string(),
|
|
372
|
+
category: z.string(),
|
|
373
|
+
kind: ManifestEntryKindSchema,
|
|
374
|
+
width: z.number(),
|
|
375
|
+
height: z.number(),
|
|
376
|
+
canvasAffinity: ManifestCanvasAffinitySchema,
|
|
377
|
+
genreAffinity: z.array(z.string()),
|
|
378
|
+
swapClass: z.string(),
|
|
379
|
+
sourceCatalog: ManifestSourceCatalogSchema,
|
|
380
|
+
frameSpec: ManifestFrameSpecSchema,
|
|
381
|
+
license: ManifestAssetLicenseSchema.optional()
|
|
382
|
+
});
|
|
355
383
|
var SExprDataSchema = z.lazy(
|
|
356
384
|
() => z.union([SExprAtomSchema, z.array(SExprDataSchema)])
|
|
357
385
|
);
|
|
@@ -459,11 +487,17 @@ var StateSchema = z.object({
|
|
|
459
487
|
onEntry: z.array(z.string()).optional(),
|
|
460
488
|
onExit: z.array(z.string()).optional()
|
|
461
489
|
});
|
|
490
|
+
var PayloadTypeWhenSchema = z.object({
|
|
491
|
+
knob: z.string().min(1),
|
|
492
|
+
equals: z.string().min(1),
|
|
493
|
+
type: z.string().min(1)
|
|
494
|
+
});
|
|
462
495
|
var PayloadFieldSchema = z.object({
|
|
463
496
|
name: z.string().min(1),
|
|
464
497
|
type: z.string().min(1),
|
|
465
498
|
required: z.boolean().optional(),
|
|
466
|
-
properties: z.lazy(() => z.array(PayloadFieldSchema)).optional()
|
|
499
|
+
properties: z.lazy(() => z.array(PayloadFieldSchema)).optional(),
|
|
500
|
+
typeWhen: z.array(PayloadTypeWhenSchema).optional()
|
|
467
501
|
});
|
|
468
502
|
var EventSchema = z.object({
|
|
469
503
|
key: z.string().min(1, "Event key is required"),
|
|
@@ -516,7 +550,8 @@ var ConfigFieldItemsDeclarationSchema = z.lazy(
|
|
|
516
550
|
() => z.object({
|
|
517
551
|
type: z.string().optional(),
|
|
518
552
|
properties: z.record(TraitEntityFieldSchema).optional(),
|
|
519
|
-
items: ConfigFieldItemsDeclarationSchema.optional()
|
|
553
|
+
items: ConfigFieldItemsDeclarationSchema.optional(),
|
|
554
|
+
values: z.array(z.string()).optional()
|
|
520
555
|
})
|
|
521
556
|
);
|
|
522
557
|
var ConfigFieldDeclarationSchema = z.object({
|
|
@@ -632,7 +667,8 @@ var EventPayloadFieldSchema = z.object({
|
|
|
632
667
|
required: z.boolean().optional(),
|
|
633
668
|
description: z.string().optional(),
|
|
634
669
|
entityType: z.string().optional(),
|
|
635
|
-
properties: z.lazy(() => z.array(EventPayloadFieldSchema)).optional()
|
|
670
|
+
properties: z.lazy(() => z.array(EventPayloadFieldSchema)).optional(),
|
|
671
|
+
typeWhen: z.array(PayloadTypeWhenSchema).optional()
|
|
636
672
|
});
|
|
637
673
|
var TraitEventContractSchema = z.object({
|
|
638
674
|
/**
|