@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.
- package/dist/builders.d.ts +3 -3
- package/dist/builders.js +15 -4
- package/dist/builders.js.map +1 -1
- package/dist/{effect-wTKhHDhB.d.ts → effect-CW3s399G.d.ts} +62 -21
- package/dist/{entityAccess-DWkf9MFx.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-BBBFTgQp.d.ts → index-C5Firrg9.d.ts} +4 -4
- package/dist/index.d.ts +20 -12
- package/dist/index.js +4684 -725
- 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 +8005 -688
- package/dist/patterns/index.js +3865 -460
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +3696 -304
- package/dist/patterns/registry.json +3696 -304
- package/dist/{schema-ZPExOj0F.d.ts → schema-BG7mDO7m.d.ts} +5708 -5622
- package/dist/{trait-B9VCCiUM.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-BxiymBBS.d.ts → types-DwAE_Qu-.d.ts} +41 -2
- package/package.json +1 -1
package/dist/mock/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { O as OrbitalSchema } from '../schema-
|
|
2
|
-
export { E as EntityAccessPolicies, e as entityAccessPolicies, a as entityAccessPoliciesByStoreKey, b as entityAccessTable } from '../entityAccess-
|
|
3
|
-
import { a as EntityPersistence, E as EntityField, F as FieldValue, f as EntityRow } from '../effect-
|
|
4
|
-
import '../trait-
|
|
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
|
|
package/dist/mock/index.js
CHANGED
|
@@ -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
|
-
|
|
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(
|
|
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(),
|