@almadar/core 10.76.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.
@@ -1,7 +1,7 @@
1
- import { O as OrbitalSchema } from '../schema-ZPExOj0F.js';
2
- export { E as EntityAccessPolicies, e as entityAccessPolicies, a as entityAccessPoliciesByStoreKey, b as entityAccessTable } from '../entityAccess-DWkf9MFx.js';
3
- import { a as EntityPersistence, E as EntityField, F as FieldValue, f as EntityRow } from '../effect-wTKhHDhB.js';
4
- import '../trait-B9VCCiUM.js';
1
+ import { O as OrbitalSchema } from '../schema-BG7mDO7m.js';
2
+ export { E as EntityAccessPolicies, e as entityAccessPolicies, a as entityAccessPoliciesByStoreKey, b as entityAccessTable } from '../entityAccess-B-CK9j-I.js';
3
+ import { a as EntityPersistence, E as EntityField, F as FieldValue, f as EntityRow } from '../effect-CW3s399G.js';
4
+ import '../trait-jWk0BInU.js';
5
5
  import '../expression-Fk8bQWef.js';
6
6
  import 'zod';
7
7
 
@@ -396,7 +396,9 @@ var FIELD_TYPES = [
396
396
  "slot",
397
397
  "pattern",
398
398
  "node",
399
- "event"
399
+ "event",
400
+ "scalar",
401
+ "union"
400
402
  ];
401
403
  z.enum(FIELD_TYPES);
402
404
  var RelationCardinalitySchema = z.enum([
@@ -492,12 +494,20 @@ var EntityFieldSchema = z.lazy(() => {
492
494
  scalarVariant("event"),
493
495
  scalarVariant("money"),
494
496
  scalarVariant("file"),
497
+ scalarVariant("scalar"),
495
498
  // Enum variant — REQUIRES non-empty values.
496
499
  z.object({
497
500
  ...baseFieldShape,
498
501
  type: z.literal("enum"),
499
502
  values: z.array(z.string()).min(1, "Enum field requires a non-empty `values` array")
500
503
  }),
504
+ // Union variant — tagged struct union; values = variant names,
505
+ // per-variant shapes in `properties` (absent on named recursion).
506
+ z.object({
507
+ ...baseFieldShape,
508
+ type: z.literal("union"),
509
+ values: z.array(z.string()).min(1, "Union field requires a non-empty `values` array")
510
+ }),
501
511
  // Relation variant — REQUIRES relation config.
502
512
  z.object({
503
513
  ...baseFieldShape,
@@ -540,8 +550,8 @@ var ASSET_DIMENSIONS = ["2d", "3d"];
540
550
  var AssetDimensionSchema = z.enum(ASSET_DIMENSIONS);
541
551
  var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1"];
542
552
  var AssetAspectSchema = z.enum(ASSET_ASPECTS);
543
- var ANIMATION_NAMES = ["idle", "walk", "attack", "hit", "death"];
544
- var AnimationNameSchema = z.enum(ANIMATION_NAMES);
553
+ var ANIMATION_NAMES = ["idle", "walk", "skate", "jump", "fall", "attack", "hit", "death"];
554
+ z.enum(ANIMATION_NAMES);
545
555
  var SPRITE_DIRECTIONS = ["se", "sw", "ne", "nw"];
546
556
  var SpriteDirectionSchema = z.enum(SPRITE_DIRECTIONS);
547
557
  var SHEET_PROJECTIONS = ["iso", "front", "back", "top", "perspective"];
@@ -561,7 +571,7 @@ z.object({
561
571
  rows: z.number().int().positive(),
562
572
  directions: z.array(SpriteDirectionSchema),
563
573
  sheets: z.record(SpriteDirectionSchema, z.string()),
564
- animations: z.record(AnimationNameSchema, AnimationDefSchema),
574
+ animations: z.record(z.string(), AnimationDefSchema),
565
575
  projections: z.object({
566
576
  iso: z.record(SpriteDirectionSchema, z.string()).optional(),
567
577
  front: z.string().optional(),