@almadar/core 10.6.0 → 10.7.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 +18 -3
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-CJgreUHY.d.ts → compose-behaviors-B96ChDbl.d.ts} +1 -1
- package/dist/factory/index.d.ts +3 -3
- package/dist/index.d.ts +7 -7
- package/dist/index.js +19 -4
- package/dist/index.js.map +1 -1
- package/dist/{schema-Cq9DUnFw.d.ts → schema-QKCaijbj.d.ts} +287 -1
- package/dist/{trait-BsnLnedq.d.ts → trait-BkW6nFHo.d.ts} +117 -3
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.js +19 -4
- package/dist/types/index.js.map +1 -1
- package/dist/{types-CdXuGm8S.d.ts → types-R0vBMx1v.d.ts} +1 -1
- package/package.json +1 -1
package/dist/builders.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as TraitConfig, U as UISlot, E as Effect, a as Trait, R as RenderBinding, b as RenderUIEffect, c as TraitEventContract, d as Entity, e as TraitEventListener, f as EntityField, g as EntityPersistence, h as EntityRow, i as TraitRef, j as TraitReference } from './trait-
|
|
2
|
-
import { O as OrbitalSchema, U as UseDeclaration, E as EntityRef, P as PageRef, a as OrbitalDefinition, b as Page, c as PageRefObject } from './schema-
|
|
1
|
+
import { T as TraitConfig, U as UISlot, E as Effect, a as Trait, R as RenderBinding, b as RenderUIEffect, c as TraitEventContract, d as Entity, e as TraitEventListener, f as EntityField, g as EntityPersistence, h as EntityRow, i as TraitRef, j as TraitReference } from './trait-BkW6nFHo.js';
|
|
2
|
+
import { O as OrbitalSchema, U as UseDeclaration, E as EntityRef, P as PageRef, a as OrbitalDefinition, b as Page, c as PageRefObject } from './schema-QKCaijbj.js';
|
|
3
3
|
import { S as SExpr } from './expression-BUIi9ezJ.js';
|
|
4
|
-
export { C as ComposeBehaviorsInput, a as ComposeBehaviorsResult, E as EventWiringEntry, L as LayoutStrategy, b as applyEventWiring, c as composeBehaviors, d as detectLayoutStrategy } from './compose-behaviors-
|
|
4
|
+
export { C as ComposeBehaviorsInput, a as ComposeBehaviorsResult, E as EventWiringEntry, L as LayoutStrategy, b as applyEventWiring, c as composeBehaviors, d as detectLayoutStrategy } from './compose-behaviors-B96ChDbl.js';
|
|
5
5
|
import { AnyPatternConfig } from '@almadar/patterns';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
package/dist/builders.js
CHANGED
|
@@ -100,7 +100,6 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
100
100
|
scalarVariant("date"),
|
|
101
101
|
scalarVariant("timestamp"),
|
|
102
102
|
scalarVariant("datetime"),
|
|
103
|
-
scalarVariant("object"),
|
|
104
103
|
scalarVariant("trait"),
|
|
105
104
|
scalarVariant("slot"),
|
|
106
105
|
scalarVariant("pattern"),
|
|
@@ -121,6 +120,14 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
121
120
|
...baseFieldShape,
|
|
122
121
|
type: z.literal("array"),
|
|
123
122
|
items: EntityFieldSchema.optional()
|
|
123
|
+
}),
|
|
124
|
+
// Object variant — fixed-key struct (`properties`) or dynamic-key
|
|
125
|
+
// map (`Map K V`, uniform value schema in `items`).
|
|
126
|
+
z.object({
|
|
127
|
+
...baseFieldShape,
|
|
128
|
+
type: z.literal("object"),
|
|
129
|
+
items: EntityFieldSchema.optional(),
|
|
130
|
+
values: z.array(z.string()).optional()
|
|
124
131
|
})
|
|
125
132
|
])
|
|
126
133
|
);
|
|
@@ -140,6 +147,10 @@ var ENTITY_ROLES = [
|
|
|
140
147
|
var EntityRoleSchema = z.enum(ENTITY_ROLES);
|
|
141
148
|
var VISUAL_STYLES = ["pixel", "vector", "hd", "1-bit", "isometric"];
|
|
142
149
|
var VisualStyleSchema = z.enum(VISUAL_STYLES);
|
|
150
|
+
var ASSET_DIMENSIONS = ["2d", "3d"];
|
|
151
|
+
var AssetDimensionSchema = z.enum(ASSET_DIMENSIONS);
|
|
152
|
+
var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1"];
|
|
153
|
+
var AssetAspectSchema = z.enum(ASSET_ASPECTS);
|
|
143
154
|
var GAME_TYPES = [
|
|
144
155
|
"platformer",
|
|
145
156
|
"roguelike",
|
|
@@ -162,7 +173,9 @@ var SemanticAssetRefSchema = z.object({
|
|
|
162
173
|
category: z.string().min(1),
|
|
163
174
|
animations: z.array(z.string()).optional(),
|
|
164
175
|
style: VisualStyleSchema.optional(),
|
|
165
|
-
variant: z.string().optional()
|
|
176
|
+
variant: z.string().optional(),
|
|
177
|
+
dimension: AssetDimensionSchema.optional(),
|
|
178
|
+
aspect: AssetAspectSchema.optional()
|
|
166
179
|
});
|
|
167
180
|
z.object({
|
|
168
181
|
basePath: z.string(),
|
|
@@ -190,7 +203,9 @@ var AssetCatalogEntrySchema = z.object({
|
|
|
190
203
|
name: z.string(),
|
|
191
204
|
category: z.string(),
|
|
192
205
|
kind: z.enum(["image", "spritesheet", "audio", "scene", "portrait", "model", "other"]),
|
|
193
|
-
thumbnailUrl: z.string().optional()
|
|
206
|
+
thumbnailUrl: z.string().optional(),
|
|
207
|
+
dimension: AssetDimensionSchema.optional(),
|
|
208
|
+
aspect: AssetAspectSchema.optional()
|
|
194
209
|
});
|
|
195
210
|
z.array(AssetCatalogEntrySchema);
|
|
196
211
|
|