@almadar/core 10.80.0 → 10.82.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 +38 -0
- package/dist/builders.js.map +1 -1
- package/dist/{effect-C4uehm-r.d.ts → effect-Baldm2vM.d.ts} +369 -4
- package/dist/{entityAccess-BMKFgmsc.d.ts → entityAccess-CDYT7WWR.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory/index.js +980 -10
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +38 -0
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/{index-DqUnw2Oo.d.ts → index-R8PyPrGg.d.ts} +4 -4
- package/dist/index.d.ts +10 -10
- package/dist/index.js +2135 -406
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +38 -0
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +21 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +4045 -608
- package/dist/patterns/index.js +1963 -405
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +1004 -402
- package/dist/patterns/patterns-registry.json +933 -1
- package/dist/patterns/registry.json +933 -1
- package/dist/patterns/services-registry.json +1171 -424
- package/dist/{schema-Cma07_18.d.ts → schema-1KQUz2pE.d.ts} +2 -2
- package/dist/{trait-BXkQKZbO.d.ts → trait-Dsp0vmGp.d.ts} +1 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +176 -1
- package/dist/types/index.js.map +1 -1
- package/dist/{types-DoAKLgCZ.d.ts → types-DJYozDXK.d.ts} +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-
|
|
2
|
-
import { i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-
|
|
3
|
-
import { E as EntityField, a as EntityPersistence } from '../effect-
|
|
1
|
+
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-1KQUz2pE.js';
|
|
2
|
+
import { i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-Dsp0vmGp.js';
|
|
3
|
+
import { E as EntityField, a as EntityPersistence } from '../effect-Baldm2vM.js';
|
|
4
4
|
import { MakeTraitRefOpts } from '../builders.js';
|
|
5
5
|
import '../expression-Fk8bQWef.js';
|
|
6
6
|
import 'zod';
|
|
@@ -362,6 +362,44 @@ z.object({
|
|
|
362
362
|
azimuth: z.number().optional(),
|
|
363
363
|
elevation: z.number().optional()
|
|
364
364
|
});
|
|
365
|
+
var MANIFEST_ENTRY_KINDS = ["model", "image", "spritesheet", "audio", "json"];
|
|
366
|
+
var ManifestEntryKindSchema = z.enum(MANIFEST_ENTRY_KINDS);
|
|
367
|
+
var SoundEntrySchema = z.object({
|
|
368
|
+
path: z.union([z.string(), z.array(z.string())]),
|
|
369
|
+
volume: z.number().optional(),
|
|
370
|
+
loop: z.boolean().optional(),
|
|
371
|
+
poolSize: z.number().optional(),
|
|
372
|
+
autostart: z.boolean().optional(),
|
|
373
|
+
crossfade: z.boolean().optional(),
|
|
374
|
+
crossfadeDurationMs: z.number().optional()
|
|
375
|
+
});
|
|
376
|
+
z.record(z.string(), SoundEntrySchema);
|
|
377
|
+
var MANIFEST_CANVAS_AFFINITIES = ["isometric", "hex", "flat", "side", "3d", "none"];
|
|
378
|
+
var ManifestCanvasAffinitySchema = z.enum(MANIFEST_CANVAS_AFFINITIES);
|
|
379
|
+
var MANIFEST_SOURCE_CATALOGS = ["kenny", "kekec-assets", "iram-assets", "trait-wars-assets", "kflow-assets"];
|
|
380
|
+
var ManifestSourceCatalogSchema = z.enum(MANIFEST_SOURCE_CATALOGS);
|
|
381
|
+
var MANIFEST_ASSET_LICENSES = ["CC0", "proprietary"];
|
|
382
|
+
var ManifestAssetLicenseSchema = z.enum(MANIFEST_ASSET_LICENSES);
|
|
383
|
+
var ManifestFrameSpecSchema = z.union([
|
|
384
|
+
z.object({ kind: z.literal("iso-tile"), w: z.number(), h: z.number() }),
|
|
385
|
+
z.object({ kind: z.literal("sprite-sheet"), frame: z.number(), cols: z.number(), rows: z.number() }),
|
|
386
|
+
z.string().min(1),
|
|
387
|
+
z.null()
|
|
388
|
+
]);
|
|
389
|
+
z.object({
|
|
390
|
+
url: z.string(),
|
|
391
|
+
name: z.string(),
|
|
392
|
+
category: z.string(),
|
|
393
|
+
kind: ManifestEntryKindSchema,
|
|
394
|
+
width: z.number(),
|
|
395
|
+
height: z.number(),
|
|
396
|
+
canvasAffinity: ManifestCanvasAffinitySchema,
|
|
397
|
+
genreAffinity: z.array(z.string()),
|
|
398
|
+
swapClass: z.string(),
|
|
399
|
+
sourceCatalog: ManifestSourceCatalogSchema,
|
|
400
|
+
frameSpec: ManifestFrameSpecSchema,
|
|
401
|
+
license: ManifestAssetLicenseSchema.optional()
|
|
402
|
+
});
|
|
365
403
|
var SExprDataSchema = z.lazy(
|
|
366
404
|
() => z.union([SExprAtomSchema, z.array(SExprDataSchema)])
|
|
367
405
|
);
|