@almadar/core 10.13.0 → 10.14.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 +38 -0
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-CmTHzC3Z.d.ts → compose-behaviors-Ds6d_mMY.d.ts} +1 -1
- package/dist/factory/index.d.ts +3 -3
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +38 -0
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +39 -1
- package/dist/index.js.map +1 -1
- package/dist/{schema-DisJeRQc.d.ts → schema-BVcq7eXk.d.ts} +1459 -1459
- package/dist/{trait-Bwhkhv3V.d.ts → trait-Ctj2l6ma.d.ts} +271 -2
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.js +39 -1
- package/dist/types/index.js.map +1 -1
- package/dist/{types-CIi6Vxmc.d.ts → types-QQ9BTzkx.d.ts} +1 -1
- package/package.json +1 -1
package/dist/factory/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, h as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, q as TraitOverlay } from '../types-
|
|
2
|
-
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryPageSignature, i as FactorySignatureCatalog, j as FactorySignatureEntityField, k as FactoryTraitSignature, m as JsonSchema, n as JsonSchemaType, J as JsonValue, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, r as TraitOverlayEntry, s as TraitOverlayListener } from '../types-
|
|
3
|
-
import { g as EntityPersistence, f as EntityField, j as TraitReference } from '../trait-
|
|
1
|
+
import { g as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, h as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, q as TraitOverlay } from '../types-QQ9BTzkx.js';
|
|
2
|
+
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryPageSignature, i as FactorySignatureCatalog, j as FactorySignatureEntityField, k as FactoryTraitSignature, m as JsonSchema, n as JsonSchemaType, J as JsonValue, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, r as TraitOverlayEntry, s as TraitOverlayListener } from '../types-QQ9BTzkx.js';
|
|
3
|
+
import { g as EntityPersistence, f as EntityField, j as TraitReference } from '../trait-Ctj2l6ma.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../expression-BUIi9ezJ.js';
|
|
6
6
|
import '@almadar/patterns';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-
|
|
2
|
-
import { f as EntityField, g as EntityPersistence, C as CallSiteConfig, $ as CallSiteConfigEntry, a as Trait } from '../trait-
|
|
1
|
+
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-BVcq7eXk.js';
|
|
2
|
+
import { f as EntityField, g as EntityPersistence, C as CallSiteConfig, $ as CallSiteConfigEntry, a as Trait } from '../trait-Ctj2l6ma.js';
|
|
3
3
|
import { MakeTraitRefOpts } from '../builders.js';
|
|
4
4
|
import '../expression-BUIi9ezJ.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '@almadar/patterns';
|
|
7
|
-
import '../compose-behaviors-
|
|
7
|
+
import '../compose-behaviors-Ds6d_mMY.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Orbital factory manifest types — shared across all packages.
|
|
@@ -185,6 +185,42 @@ z.object({
|
|
|
185
185
|
sheets: z.record(SpriteDirectionSchema, z.string()),
|
|
186
186
|
animations: z.record(AnimationNameSchema, AnimationDefSchema)
|
|
187
187
|
});
|
|
188
|
+
var SubTextureSchema = z.object({
|
|
189
|
+
x: z.number().nonnegative(),
|
|
190
|
+
y: z.number().nonnegative(),
|
|
191
|
+
width: z.number().positive(),
|
|
192
|
+
height: z.number().positive(),
|
|
193
|
+
frameX: z.number().optional(),
|
|
194
|
+
frameY: z.number().optional(),
|
|
195
|
+
frameWidth: z.number().positive().optional(),
|
|
196
|
+
frameHeight: z.number().positive().optional()
|
|
197
|
+
});
|
|
198
|
+
z.object({
|
|
199
|
+
imagePath: z.string(),
|
|
200
|
+
subTextures: z.record(z.string(), SubTextureSchema)
|
|
201
|
+
});
|
|
202
|
+
z.object({
|
|
203
|
+
imagePath: z.string(),
|
|
204
|
+
tileWidth: z.number().positive(),
|
|
205
|
+
tileHeight: z.number().positive(),
|
|
206
|
+
columns: z.number().int().positive(),
|
|
207
|
+
rows: z.number().int().positive(),
|
|
208
|
+
margin: z.number().nonnegative().optional(),
|
|
209
|
+
spacing: z.number().nonnegative().optional(),
|
|
210
|
+
names: z.array(z.string()).optional()
|
|
211
|
+
});
|
|
212
|
+
var PACK_CLASSES = ["board-tileset", "character-kit", "shared-primitive"];
|
|
213
|
+
z.enum(PACK_CLASSES);
|
|
214
|
+
var CharacterKitLayerSchema = z.object({
|
|
215
|
+
slot: z.enum(["body", "head", "face", "hair", "facialHair", "shirt", "pants", "shoes", "accessory"]),
|
|
216
|
+
url: z.string(),
|
|
217
|
+
atlas: z.string().optional(),
|
|
218
|
+
sprite: z.string().optional()
|
|
219
|
+
});
|
|
220
|
+
z.object({
|
|
221
|
+
pack: z.string(),
|
|
222
|
+
layers: z.array(CharacterKitLayerSchema)
|
|
223
|
+
});
|
|
188
224
|
var SemanticAssetRefSchema = z.object({
|
|
189
225
|
role: EntityRoleSchema,
|
|
190
226
|
category: z.string().min(1),
|
|
@@ -196,6 +232,8 @@ var SemanticAssetRefSchema = z.object({
|
|
|
196
232
|
});
|
|
197
233
|
SemanticAssetRefSchema.extend({
|
|
198
234
|
url: z.string(),
|
|
235
|
+
atlas: z.string().optional(),
|
|
236
|
+
sprite: z.string().optional(),
|
|
199
237
|
name: z.string().optional(),
|
|
200
238
|
thumbnailUrl: z.string().optional()
|
|
201
239
|
});
|