@almadar/core 10.77.0 → 10.78.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 +15 -4
- package/dist/builders.js.map +1 -1
- package/dist/{effect-BHaHSAvM.d.ts → effect-CW3s399G.d.ts} +62 -21
- package/dist/{entityAccess-CqqGrG-7.d.ts → entityAccess-B-CK9j-I.d.ts} +1 -1
- package/dist/factory/index.d.ts +41 -5
- package/dist/factory/index.js +52480 -1
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +15 -4
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/{index-B8ZQ8lo5.d.ts → index-C5Firrg9.d.ts} +4 -4
- package/dist/index.d.ts +11 -11
- package/dist/index.js +4444 -559
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +14 -4
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +14 -1
- package/dist/patterns/index.d.ts +7756 -491
- package/dist/patterns/index.js +3816 -427
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +3647 -271
- package/dist/patterns/registry.json +3647 -271
- package/dist/{schema-Czlrw3bA.d.ts → schema-BG7mDO7m.d.ts} +5708 -5622
- package/dist/{trait-DCmf5iRN.d.ts → trait-jWk0BInU.d.ts} +597 -567
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +14 -3
- package/dist/types/index.js.map +1 -1
- package/dist/{types-Cb51Jqxe.d.ts → types-DwAE_Qu-.d.ts} +41 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-
|
|
2
|
-
import { h as CallSiteConfig, i as CallSiteConfigEntry, g as Trait } from '../trait-
|
|
3
|
-
import { E as EntityField, a as EntityPersistence } from '../effect-
|
|
1
|
+
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-BG7mDO7m.js';
|
|
2
|
+
import { h as CallSiteConfig, i as CallSiteConfigEntry, g as Trait } from '../trait-jWk0BInU.js';
|
|
3
|
+
import { E as EntityField, a as EntityPersistence } from '../effect-CW3s399G.js';
|
|
4
4
|
import { MakeTraitRefOpts } from '../builders.js';
|
|
5
5
|
import '../expression-Fk8bQWef.js';
|
|
6
6
|
import 'zod';
|
|
@@ -112,7 +112,9 @@ var FIELD_TYPES = [
|
|
|
112
112
|
"slot",
|
|
113
113
|
"pattern",
|
|
114
114
|
"node",
|
|
115
|
-
"event"
|
|
115
|
+
"event",
|
|
116
|
+
"scalar",
|
|
117
|
+
"union"
|
|
116
118
|
];
|
|
117
119
|
z.enum(FIELD_TYPES);
|
|
118
120
|
var RelationCardinalitySchema = z.enum([
|
|
@@ -208,12 +210,20 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
208
210
|
scalarVariant("event"),
|
|
209
211
|
scalarVariant("money"),
|
|
210
212
|
scalarVariant("file"),
|
|
213
|
+
scalarVariant("scalar"),
|
|
211
214
|
// Enum variant — REQUIRES non-empty values.
|
|
212
215
|
z.object({
|
|
213
216
|
...baseFieldShape,
|
|
214
217
|
type: z.literal("enum"),
|
|
215
218
|
values: z.array(z.string()).min(1, "Enum field requires a non-empty `values` array")
|
|
216
219
|
}),
|
|
220
|
+
// Union variant — tagged struct union; values = variant names,
|
|
221
|
+
// per-variant shapes in `properties` (absent on named recursion).
|
|
222
|
+
z.object({
|
|
223
|
+
...baseFieldShape,
|
|
224
|
+
type: z.literal("union"),
|
|
225
|
+
values: z.array(z.string()).min(1, "Union field requires a non-empty `values` array")
|
|
226
|
+
}),
|
|
217
227
|
// Relation variant — REQUIRES relation config.
|
|
218
228
|
z.object({
|
|
219
229
|
...baseFieldShape,
|
|
@@ -256,8 +266,8 @@ var ASSET_DIMENSIONS = ["2d", "3d"];
|
|
|
256
266
|
var AssetDimensionSchema = z.enum(ASSET_DIMENSIONS);
|
|
257
267
|
var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1"];
|
|
258
268
|
var AssetAspectSchema = z.enum(ASSET_ASPECTS);
|
|
259
|
-
var ANIMATION_NAMES = ["idle", "walk", "attack", "hit", "death"];
|
|
260
|
-
|
|
269
|
+
var ANIMATION_NAMES = ["idle", "walk", "skate", "jump", "fall", "attack", "hit", "death"];
|
|
270
|
+
z.enum(ANIMATION_NAMES);
|
|
261
271
|
var SPRITE_DIRECTIONS = ["se", "sw", "ne", "nw"];
|
|
262
272
|
var SpriteDirectionSchema = z.enum(SPRITE_DIRECTIONS);
|
|
263
273
|
var SHEET_PROJECTIONS = ["iso", "front", "back", "top", "perspective"];
|
|
@@ -277,7 +287,7 @@ z.object({
|
|
|
277
287
|
rows: z.number().int().positive(),
|
|
278
288
|
directions: z.array(SpriteDirectionSchema),
|
|
279
289
|
sheets: z.record(SpriteDirectionSchema, z.string()),
|
|
280
|
-
animations: z.record(
|
|
290
|
+
animations: z.record(z.string(), AnimationDefSchema),
|
|
281
291
|
projections: z.object({
|
|
282
292
|
iso: z.record(SpriteDirectionSchema, z.string()).optional(),
|
|
283
293
|
front: z.string().optional(),
|
|
@@ -655,6 +665,7 @@ var TraitEventContractSchema = z.object({
|
|
|
655
665
|
description: z.string().optional(),
|
|
656
666
|
synonyms: z.string().optional(),
|
|
657
667
|
tier: z.string().optional(),
|
|
668
|
+
definerKnob: z.string().optional(),
|
|
658
669
|
payloadSchema: z.array(EventPayloadFieldSchema).optional(),
|
|
659
670
|
scope: EventScopeSchema.optional()
|
|
660
671
|
});
|