@almadar/core 10.6.0 → 10.8.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 +23 -3
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-CJgreUHY.d.ts → compose-behaviors-9xDCK9IA.d.ts} +1 -1
- package/dist/factory/index.d.ts +3 -3
- package/dist/index.d.ts +7 -7
- package/dist/index.js +24 -4
- package/dist/index.js.map +1 -1
- package/dist/{schema-Cq9DUnFw.d.ts → schema-C3osccoR.d.ts} +287 -1
- package/dist/{trait-BsnLnedq.d.ts → trait-DwxDJ6PP.d.ts} +168 -3
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.js +24 -4
- package/dist/types/index.js.map +1 -1
- package/dist/{types-CdXuGm8S.d.ts → types-zx68_GSb.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-DwxDJ6PP.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-C3osccoR.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-9xDCK9IA.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,14 @@ 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()
|
|
179
|
+
});
|
|
180
|
+
SemanticAssetRefSchema.extend({
|
|
181
|
+
url: z.string(),
|
|
182
|
+
name: z.string().optional(),
|
|
183
|
+
thumbnailUrl: z.string().optional()
|
|
166
184
|
});
|
|
167
185
|
z.object({
|
|
168
186
|
basePath: z.string(),
|
|
@@ -190,7 +208,9 @@ var AssetCatalogEntrySchema = z.object({
|
|
|
190
208
|
name: z.string(),
|
|
191
209
|
category: z.string(),
|
|
192
210
|
kind: z.enum(["image", "spritesheet", "audio", "scene", "portrait", "model", "other"]),
|
|
193
|
-
thumbnailUrl: z.string().optional()
|
|
211
|
+
thumbnailUrl: z.string().optional(),
|
|
212
|
+
dimension: AssetDimensionSchema.optional(),
|
|
213
|
+
aspect: AssetAspectSchema.optional()
|
|
194
214
|
});
|
|
195
215
|
z.array(AssetCatalogEntrySchema);
|
|
196
216
|
|