@almadar/core 10.28.0 → 10.29.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,4584 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- /**
4
- * Field Types for Orbital Units
5
- *
6
- * Extracted from schema/data-entities.ts for the orbitals module.
7
- * These types define the field structure within orbital entities.
8
- *
9
- * @packageDocumentation
10
- */
11
-
12
- /**
13
- * Supported field types for entity fields.
14
- *
15
- * @example
16
- * { name: 'status', type: 'enum', values: ['draft', 'published'] }
17
- * { name: 'authorId', type: 'relation', relation: { entity: 'User', cardinality: 'one' } }
18
- */
19
- type FieldType = 'string' | 'number' | 'boolean' | 'date' | 'timestamp' | 'datetime' | 'array' | 'object' | 'enum' | 'relation' | 'trait' | 'slot' | 'pattern';
20
- declare const FieldTypeSchema: z.ZodEnum<["string", "number", "boolean", "date", "timestamp", "datetime", "array", "object", "enum", "relation", "trait", "slot", "pattern"]>;
21
- /**
22
- * Cardinality for relation fields.
23
- * Matches Rust compiler's Cardinality enum.
24
- */
25
- type RelationCardinality = 'one' | 'many' | 'one-to-many' | 'many-to-one' | 'many-to-many';
26
- /**
27
- * Configuration for relation fields (foreign keys).
28
- * Matches Rust compiler's RelationDefinition format.
29
- */
30
- interface RelationConfig {
31
- /** Target entity name (e.g., 'User', 'Task') - matches Rust's `entity` field */
32
- entity: string;
33
- /** Field on target entity (defaults to 'id') */
34
- field?: string;
35
- /**
36
- * Cardinality: one, many, one-to-many, many-to-one, many-to-many
37
- * Matches Rust compiler's cardinality format
38
- */
39
- cardinality?: RelationCardinality;
40
- /** Delete behavior */
41
- onDelete?: 'cascade' | 'nullify' | 'restrict';
42
- /**
43
- * Foreign key field name (for legacy compatibility).
44
- * @deprecated Use field instead
45
- */
46
- foreignKey?: string;
47
- /**
48
- * Target entity name (for legacy compatibility).
49
- * @deprecated Use entity instead
50
- */
51
- target?: string;
52
- /**
53
- * Cardinality type alias (for legacy compatibility).
54
- * @deprecated Use cardinality instead
55
- */
56
- type?: RelationCardinality;
57
- }
58
- declare const RelationConfigSchema: z.ZodEffects<z.ZodObject<{
59
- entity: z.ZodString;
60
- field: z.ZodOptional<z.ZodString>;
61
- cardinality: z.ZodOptional<z.ZodEnum<["one", "many", "one-to-many", "many-to-one", "many-to-many"]>>;
62
- onDelete: z.ZodOptional<z.ZodEnum<["cascade", "nullify", "restrict"]>>;
63
- foreignKey: z.ZodOptional<z.ZodString>;
64
- target: z.ZodOptional<z.ZodString>;
65
- type: z.ZodOptional<z.ZodEnum<["one", "many", "one-to-many", "many-to-one", "many-to-many"]>>;
66
- }, "strip", z.ZodTypeAny, {
67
- entity: string;
68
- field?: string | undefined;
69
- cardinality?: "one" | "many" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
70
- onDelete?: "cascade" | "nullify" | "restrict" | undefined;
71
- foreignKey?: string | undefined;
72
- target?: string | undefined;
73
- type?: "one" | "many" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
74
- }, {
75
- entity: string;
76
- field?: string | undefined;
77
- cardinality?: "one" | "many" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
78
- onDelete?: "cascade" | "nullify" | "restrict" | undefined;
79
- foreignKey?: string | undefined;
80
- target?: string | undefined;
81
- type?: "one" | "many" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
82
- }>, RelationConfig, {
83
- entity: string;
84
- field?: string | undefined;
85
- cardinality?: "one" | "many" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
86
- onDelete?: "cascade" | "nullify" | "restrict" | undefined;
87
- foreignKey?: string | undefined;
88
- target?: string | undefined;
89
- type?: "one" | "many" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
90
- }>;
91
- /**
92
- * Field format validators for string fields.
93
- */
94
- type FieldFormat = 'email' | 'url' | 'phone' | 'date' | 'datetime' | 'uuid'
95
- /** Render hint: this string field stores an image URL. Mock adapters
96
- * generate a deterministic picsum.photos URL; UI patterns can branch
97
- * to an `<img>` instead of a `<typography>`. */
98
- | 'image'
99
- /** Render hint: avatar-shaped image (square, small). */
100
- | 'avatar'
101
- /** Render hint: thumbnail image (small landscape). */
102
- | 'thumbnail';
103
- declare const FieldFormatSchema: z.ZodEnum<["email", "url", "phone", "date", "datetime", "uuid", "image", "avatar", "thumbnail"]>;
104
- /**
105
- * Field-type tags that don't carry a type-dependent payload. The base
106
- * `EntityField` shape applies as-is.
107
- */
108
- type ScalarFieldType = 'string' | 'number' | 'boolean' | 'date' | 'timestamp' | 'datetime' | 'trait' | 'slot' | 'pattern';
109
- /** Fields shared across every variant. */
110
- interface EntityFieldBase {
111
- /**
112
- * Field name (camelCase). Optional for nested item/property descriptors
113
- * where the name is implied by the parent (`items`, `properties[k]`).
114
- * Mirrors Rust's `FieldDefinition.name: Option<String>`.
115
- */
116
- name?: string;
117
- /** Whether the field is required */
118
- required?: boolean;
119
- /** Default value */
120
- default?: unknown;
121
- /** Validation format */
122
- format?: FieldFormat;
123
- /** Minimum value (for number) or length (for string) */
124
- min?: number;
125
- /** Maximum value or length */
126
- max?: number;
127
- /** Object property schemas keyed by property name (for object type).
128
- * Mirrors Rust's `FieldDefinition.properties: Option<HashMap<String,
129
- * FieldDefinition>>`. Populated by the lolo lowerer when a field /
130
- * config slot's type expression resolves to a struct shape
131
- * (`TypeExpr::Object`), including named-type aliases like `[MetricSpec]`. */
132
- properties?: Record<string, EntityField>;
133
- /** Runtime-managed widget state (authored `@intrinsic` in `.lolo`). Exempt
134
- * from the explicit-binding rule and never a domain-data bind target. */
135
- intrinsic?: boolean;
136
- /** Human/semantic description (authored `@description "..."` in `.lolo`).
137
- * Authoring/build-time metadata — factory-signature catalog, embeddings,
138
- * curation field-matching; the runtime ignores it. */
139
- description?: string;
140
- /** User-vocabulary synonyms (authored `@synonyms "..."` in `.lolo`).
141
- * Free text feeding catalog search / curation field-matching. */
142
- synonyms?: string;
143
- }
144
- /**
145
- * Scalar / structural fields — no type-dependent payload required.
146
- * `values?` is permitted as an OPTIONAL UI/validation hint (e.g. lolo's
147
- * `'a' | 'b' | 'c'` string-union sugar lowers to `type: 'string', values:
148
- * [...]`). Only `EnumEntityField` MANDATES values.
149
- */
150
- interface ScalarEntityField extends EntityFieldBase {
151
- type: ScalarFieldType;
152
- /** Optional vocabulary hint for scalar fields (e.g. string unions
153
- * authored as `'a'|'b'|'c'` in lolo). Not required at this variant. */
154
- values?: string[];
155
- }
156
- /** `type: 'enum'` REQUIRES the closed vocabulary in `values`. */
157
- interface EnumEntityField extends EntityFieldBase {
158
- type: 'enum';
159
- /** Closed string vocabulary the field accepts. */
160
- values: string[];
161
- }
162
- /** `type: 'relation'` REQUIRES the relation target binding. */
163
- interface RelationEntityField extends EntityFieldBase {
164
- type: 'relation';
165
- /** Relation target binding (entity + cardinality). */
166
- relation: RelationConfig;
167
- }
168
- /** `type: 'array'` — element schema in `items` strongly preferred but
169
- * optional for legacy compatibility with codegen-emitted scalar-array
170
- * fields (e.g. `{type: 'array', default: []}`). The lolo lowerer + Rust
171
- * validator catch typed-element-required cases downstream. */
172
- interface ArrayEntityField extends EntityFieldBase {
173
- type: 'array';
174
- /** Element schema for the array. */
175
- items?: EntityField;
176
- }
177
- /**
178
- * `type: 'object'` — a fixed-key struct (fields in `properties`) OR a
179
- * dynamic-key map (`Map K V` in `.lolo`; the uniform value schema lives in
180
- * `items`, mirroring an array's element schema). A distinct variant so `items`
181
- * is statically allowed only on object/array fields, never on scalars.
182
- */
183
- interface ObjectEntityField extends EntityFieldBase {
184
- type: 'object';
185
- /** Uniform value schema for a dynamic-key map (`Map K V`). */
186
- items?: EntityField;
187
- }
188
- /**
189
- * Entity field definition — discriminated union by `type`. Each variant
190
- * statically enforces its dependent payload (`values` for enum,
191
- * `relation` for relation, `items` for array) so TS / Zod / JSON Schema
192
- * consumers all agree on the dependency, not just the Rust validator.
193
- *
194
- * @example
195
- * { name: 'status', type: 'enum', values: ['draft', 'published'] }
196
- * { name: 'authorId', type: 'relation', relation: { entity: 'User', cardinality: 'one' } }
197
- * { name: 'tags', type: 'array', items: { type: 'string' } }
198
- */
199
- type EntityField = ScalarEntityField | EnumEntityField | RelationEntityField | ArrayEntityField | ObjectEntityField;
200
- /**
201
- * Zod schema for `EntityField`. Preprocess normalizes:
202
- * - legacy `type` aliases (text → string, int → number, etc.)
203
- * - legacy `enum: string[]` alias → `values: string[]`
204
- *
205
- * Branches on `type` so TS narrows the parsed output to the matching
206
- * discriminated-union variant.
207
- */
208
- declare const EntityFieldSchema: z.ZodType<EntityField, z.ZodTypeDef, unknown>;
209
- type EntityFieldInput = z.input<typeof EntityFieldSchema>;
210
- /** Alias for EntityField - preferred name */
211
- type Field = EntityField;
212
- /** Alias for EntityFieldSchema - preferred name */
213
- declare const FieldSchema: z.ZodType<EntityField, z.ZodTypeDef, unknown>;
214
-
215
- /**
216
- * Asset Types for Semantic Asset References
217
- *
218
- * Defines types for abstracting asset paths into semantic references.
219
- * Assets are resolved from SemanticAssetRef to actual paths at compile time.
220
- *
221
- * @packageDocumentation
222
- */
223
-
224
- /**
225
- * Entity roles in game contexts
226
- */
227
- declare const ENTITY_ROLES: readonly ["player", "enemy", "npc", "item", "tile", "projectile", "effect", "ui", "decoration", "vehicle"];
228
- type EntityRole = (typeof ENTITY_ROLES)[number];
229
- declare const EntityRoleSchema: z.ZodEnum<["player", "enemy", "npc", "item", "tile", "projectile", "effect", "ui", "decoration", "vehicle"]>;
230
- /**
231
- * Visual art styles for games
232
- */
233
- declare const VISUAL_STYLES: readonly ["pixel", "vector", "hd", "1-bit", "isometric"];
234
- type VisualStyle = (typeof VISUAL_STYLES)[number];
235
- declare const VisualStyleSchema: z.ZodEnum<["pixel", "vector", "hd", "1-bit", "isometric"]>;
236
- /**
237
- * Whether the asset is a 2D sprite/image or a 3D model. Set by the consuming
238
- * canvas: the same entity role is a 2D sprite-sheet on a tile board and a 3D
239
- * rigged model on a 3D board.
240
- */
241
- declare const ASSET_DIMENSIONS: readonly ["2d", "3d"];
242
- type AssetDimension = (typeof ASSET_DIMENSIONS)[number];
243
- declare const AssetDimensionSchema: z.ZodEnum<["2d", "3d"]>;
244
- /**
245
- * Rendering aspect ratio of an asset: square (tiles/sprites/portraits/icons),
246
- * 16:9 (scene backdrops), 5:7 (cards), 8:1 (effect frame strips).
247
- */
248
- declare const ASSET_ASPECTS: readonly ["1:1", "16:9", "5:7", "8:1"];
249
- type AssetAspect = (typeof ASSET_ASPECTS)[number];
250
- declare const AssetAspectSchema: z.ZodEnum<["1:1", "16:9", "5:7", "8:1"]>;
251
- /**
252
- * Animation names matching a sprite sheet's row layout. Canonical home for
253
- * this vocabulary — `@almadar/ui`'s `spriteAnimationTypes.ts` re-exports it
254
- * rather than redeclaring, so board `.lolo` config and the render library
255
- * agree on one enum.
256
- */
257
- declare const ANIMATION_NAMES: readonly ["idle", "walk", "attack", "hit", "death"];
258
- type AnimationName = (typeof ANIMATION_NAMES)[number];
259
- declare const AnimationNameSchema: z.ZodEnum<["idle", "walk", "attack", "hit", "death"]>;
260
- /** Sheet file directions (physical PNG files a sprite sheet ships as). */
261
- declare const SPRITE_DIRECTIONS: readonly ["se", "sw"];
262
- type SpriteDirection = (typeof SPRITE_DIRECTIONS)[number];
263
- declare const SpriteDirectionSchema: z.ZodEnum<["se", "sw"]>;
264
- /**
265
- * Definition for a single named animation within a sprite sheet: which row
266
- * it occupies, how many frames it has, and its playback rate. This is the
267
- * shape actually consumed by `@almadar/ui`'s sprite-sheet renderer
268
- * (`spriteAnimation.ts`'s `frameRect`/`getCurrentFrameFromDef`) — moved here
269
- * verbatim rather than reconciled with a differently-shaped guess, since
270
- * `@almadar/ui`'s version is the one with real production consumers.
271
- */
272
- interface AnimationDef {
273
- /** Row index in the sprite sheet (0-based; each animation occupies one row). */
274
- row: number;
275
- /** Number of frames in this animation. */
276
- frames: number;
277
- /** Frames per second. */
278
- frameRate: number;
279
- /** Whether the animation loops. */
280
- loop: boolean;
281
- }
282
- declare const AnimationDefSchema: z.ZodObject<{
283
- row: z.ZodNumber;
284
- frames: z.ZodNumber;
285
- frameRate: z.ZodNumber;
286
- loop: z.ZodBoolean;
287
- }, "strip", z.ZodTypeAny, {
288
- row: number;
289
- frames: number;
290
- frameRate: number;
291
- loop: boolean;
292
- }, {
293
- row: number;
294
- frames: number;
295
- frameRate: number;
296
- loop: boolean;
297
- }>;
298
- /**
299
- * Parsed sprite-sheet atlas JSON — the contract a `spriteSheet`-role `Asset.url`
300
- * resolves to when fetched (see `Asset.url` usage in `@almadar/ui`'s
301
- * `useUnitSpriteAtlas`). A unit's `sprite?: Asset` stays the static single-pose
302
- * image; `spriteSheet?: Asset` is a SEPARATE reference whose URL points at a
303
- * `SpriteSheetAtlas`-shaped JSON manifest (e.g. `.../guardian-sprite-sheet.json`),
304
- * not a PNG. Frame-cutting geometry lives here, not inlined onto `Asset` — an
305
- * `Asset` traveling through `render-ui` every tick stays small.
306
- */
307
- interface SpriteSheetAtlas {
308
- /** Unit archetype key. */
309
- unit?: string;
310
- /** Visual type key. */
311
- type?: string;
312
- /** Width of a single frame in pixels. */
313
- frameWidth: number;
314
- /** Height of a single frame in pixels. */
315
- frameHeight: number;
316
- /** Number of columns (frames per row). */
317
- columns: number;
318
- /** Number of rows (animations). */
319
- rows: number;
320
- /** Directions present as physical PNG files. */
321
- directions: SpriteDirection[];
322
- /** Relative PNG sheet paths per direction. */
323
- sheets: Partial<Record<SpriteDirection, string>>;
324
- /** Animation row layout keyed by animation name. */
325
- animations: Partial<Record<AnimationName, AnimationDef>>;
326
- }
327
- declare const SpriteSheetAtlasSchema: z.ZodObject<{
328
- unit: z.ZodOptional<z.ZodString>;
329
- type: z.ZodOptional<z.ZodString>;
330
- frameWidth: z.ZodNumber;
331
- frameHeight: z.ZodNumber;
332
- columns: z.ZodNumber;
333
- rows: z.ZodNumber;
334
- directions: z.ZodArray<z.ZodEnum<["se", "sw"]>, "many">;
335
- sheets: z.ZodRecord<z.ZodEnum<["se", "sw"]>, z.ZodString>;
336
- animations: z.ZodRecord<z.ZodEnum<["idle", "walk", "attack", "hit", "death"]>, z.ZodObject<{
337
- row: z.ZodNumber;
338
- frames: z.ZodNumber;
339
- frameRate: z.ZodNumber;
340
- loop: z.ZodBoolean;
341
- }, "strip", z.ZodTypeAny, {
342
- row: number;
343
- frames: number;
344
- frameRate: number;
345
- loop: boolean;
346
- }, {
347
- row: number;
348
- frames: number;
349
- frameRate: number;
350
- loop: boolean;
351
- }>>;
352
- }, "strip", z.ZodTypeAny, {
353
- frameWidth: number;
354
- frameHeight: number;
355
- columns: number;
356
- rows: number;
357
- directions: ("se" | "sw")[];
358
- sheets: Partial<Record<"se" | "sw", string>>;
359
- animations: Partial<Record<"idle" | "walk" | "attack" | "hit" | "death", {
360
- row: number;
361
- frames: number;
362
- frameRate: number;
363
- loop: boolean;
364
- }>>;
365
- type?: string | undefined;
366
- unit?: string | undefined;
367
- }, {
368
- frameWidth: number;
369
- frameHeight: number;
370
- columns: number;
371
- rows: number;
372
- directions: ("se" | "sw")[];
373
- sheets: Partial<Record<"se" | "sw", string>>;
374
- animations: Partial<Record<"idle" | "walk" | "attack" | "hit" | "death", {
375
- row: number;
376
- frames: number;
377
- frameRate: number;
378
- loop: boolean;
379
- }>>;
380
- type?: string | undefined;
381
- unit?: string | undefined;
382
- }>;
383
- /**
384
- * One named sub-rectangle inside a packed sheet. Mirrors the ShoeBox /
385
- * TexturePacker `<SubTexture>` element every Kenney `Spritesheet/*.xml` ships
386
- * (`x`/`y`/`width`/`height` = the rect in the sheet PNG; `frameX`/`frameY`/
387
- * `frameWidth`/`frameHeight` = the trim/pad offsets for sprites packed with
388
- * transparent edges removed — optional, present only on trimmed atlases).
389
- */
390
- interface SubTexture {
391
- x: number;
392
- y: number;
393
- width: number;
394
- height: number;
395
- frameX?: number;
396
- frameY?: number;
397
- frameWidth?: number;
398
- frameHeight?: number;
399
- }
400
- declare const SubTextureSchema: z.ZodObject<{
401
- x: z.ZodNumber;
402
- y: z.ZodNumber;
403
- width: z.ZodNumber;
404
- height: z.ZodNumber;
405
- frameX: z.ZodOptional<z.ZodNumber>;
406
- frameY: z.ZodOptional<z.ZodNumber>;
407
- frameWidth: z.ZodOptional<z.ZodNumber>;
408
- frameHeight: z.ZodOptional<z.ZodNumber>;
409
- }, "strip", z.ZodTypeAny, {
410
- x: number;
411
- y: number;
412
- width: number;
413
- height: number;
414
- frameWidth?: number | undefined;
415
- frameHeight?: number | undefined;
416
- frameX?: number | undefined;
417
- frameY?: number | undefined;
418
- }, {
419
- x: number;
420
- y: number;
421
- width: number;
422
- height: number;
423
- frameWidth?: number | undefined;
424
- frameHeight?: number | undefined;
425
- frameX?: number | undefined;
426
- frameY?: number | undefined;
427
- }>;
428
- /**
429
- * A packed sheet + its named sub-rectangles — the canonical parse target for a
430
- * Kenney `Spritesheet/*.xml` atlas. A STATIC tile/prop/UI Asset references one
431
- * of these: `{ url: <sheet.png>, atlas: <this.json>, sprite: "grass.png" }` →
432
- * the renderer fetches the sheet + atlas ONCE and blits the named sub-rect,
433
- * instead of loading N individual PNGs. (Animated actors use `SpriteSheetAtlas`
434
- * instead; a uniform-grid tile page uses `Tilesheet`.)
435
- */
436
- interface TextureAtlas {
437
- /** Relative path to the sheet PNG the sub-rects index into (the atlas's own `imagePath`). */
438
- imagePath: string;
439
- /** Sub-rectangles keyed by their atlas name (e.g. `"grass.png"`). */
440
- subTextures: Record<string, SubTexture>;
441
- }
442
- declare const TextureAtlasSchema: z.ZodObject<{
443
- imagePath: z.ZodString;
444
- subTextures: z.ZodRecord<z.ZodString, z.ZodObject<{
445
- x: z.ZodNumber;
446
- y: z.ZodNumber;
447
- width: z.ZodNumber;
448
- height: z.ZodNumber;
449
- frameX: z.ZodOptional<z.ZodNumber>;
450
- frameY: z.ZodOptional<z.ZodNumber>;
451
- frameWidth: z.ZodOptional<z.ZodNumber>;
452
- frameHeight: z.ZodOptional<z.ZodNumber>;
453
- }, "strip", z.ZodTypeAny, {
454
- x: number;
455
- y: number;
456
- width: number;
457
- height: number;
458
- frameWidth?: number | undefined;
459
- frameHeight?: number | undefined;
460
- frameX?: number | undefined;
461
- frameY?: number | undefined;
462
- }, {
463
- x: number;
464
- y: number;
465
- width: number;
466
- height: number;
467
- frameWidth?: number | undefined;
468
- frameHeight?: number | undefined;
469
- frameX?: number | undefined;
470
- frameY?: number | undefined;
471
- }>>;
472
- }, "strip", z.ZodTypeAny, {
473
- imagePath: string;
474
- subTextures: Record<string, {
475
- x: number;
476
- y: number;
477
- width: number;
478
- height: number;
479
- frameWidth?: number | undefined;
480
- frameHeight?: number | undefined;
481
- frameX?: number | undefined;
482
- frameY?: number | undefined;
483
- }>;
484
- }, {
485
- imagePath: string;
486
- subTextures: Record<string, {
487
- x: number;
488
- y: number;
489
- width: number;
490
- height: number;
491
- frameWidth?: number | undefined;
492
- frameHeight?: number | undefined;
493
- frameX?: number | undefined;
494
- frameY?: number | undefined;
495
- }>;
496
- }>;
497
- /**
498
- * A uniform-grid tile page — the shape a Kenney `Tilesheet/` sheet takes (e.g.
499
- * Pirate Pack: "each tile is 64×64, no margin"). Tiles are cut by `(col,row)`
500
- * index rather than by named rect. `names` is present only when a sibling
501
- * `.xml`/`.txt` supplies an index→name list; otherwise a tile is addressed by
502
- * its `"col,row"` (or flat index) via `Asset.sprite`.
503
- */
504
- interface Tilesheet {
505
- /** Relative path to the tile sheet PNG. */
506
- imagePath: string;
507
- /** Width of one tile cell in pixels. */
508
- tileWidth: number;
509
- /** Height of one tile cell in pixels. */
510
- tileHeight: number;
511
- /** Number of columns in the grid. */
512
- columns: number;
513
- /** Number of rows in the grid. */
514
- rows: number;
515
- /** Outer margin before the first tile, in pixels (default 0). */
516
- margin?: number;
517
- /** Gap between adjacent tiles, in pixels (default 0). */
518
- spacing?: number;
519
- /** Optional index→name labels when a descriptor supplies them. */
520
- names?: string[];
521
- }
522
- declare const TilesheetSchema: z.ZodObject<{
523
- imagePath: z.ZodString;
524
- tileWidth: z.ZodNumber;
525
- tileHeight: z.ZodNumber;
526
- columns: z.ZodNumber;
527
- rows: z.ZodNumber;
528
- margin: z.ZodOptional<z.ZodNumber>;
529
- spacing: z.ZodOptional<z.ZodNumber>;
530
- names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
531
- }, "strip", z.ZodTypeAny, {
532
- columns: number;
533
- rows: number;
534
- imagePath: string;
535
- tileWidth: number;
536
- tileHeight: number;
537
- margin?: number | undefined;
538
- spacing?: number | undefined;
539
- names?: string[] | undefined;
540
- }, {
541
- columns: number;
542
- rows: number;
543
- imagePath: string;
544
- tileWidth: number;
545
- tileHeight: number;
546
- margin?: number | undefined;
547
- spacing?: number | undefined;
548
- names?: string[] | undefined;
549
- }>;
550
- /**
551
- * Semantic reference to an asset (not a hardcoded path).
552
- * Resolved to actual paths at compile time via asset maps.
553
- */
554
- interface SemanticAssetRef {
555
- /**
556
- * Entity role — a free string. Core no longer constrains the vocabulary to
557
- * `EntityRole` (that enum stays an exported shared reference for the asset
558
- * tool + renderer); genre boards may use their own roles (`boss`, `tower`, …).
559
- */
560
- role: string;
561
- /** Sub-category within role (hero, slime, coin, etc.) */
562
- category: string;
563
- /** Required animations for this entity */
564
- animations?: string[];
565
- /** Visual style preference */
566
- style?: VisualStyle;
567
- /** Variant identifier (for multiple versions) */
568
- variant?: string;
569
- /** 2D sprite vs 3D model — the rendering dimension the consuming canvas needs. */
570
- dimension?: AssetDimension;
571
- /** Rendering aspect ratio (square sprite/portrait/tile, 16:9 backdrop, 5:7 card, 8:1 fx-strip). */
572
- aspect?: AssetAspect;
573
- }
574
- declare const SemanticAssetRefSchema: z.ZodObject<{
575
- role: z.ZodString;
576
- category: z.ZodString;
577
- animations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
578
- style: z.ZodOptional<z.ZodEnum<["pixel", "vector", "hd", "1-bit", "isometric"]>>;
579
- variant: z.ZodOptional<z.ZodString>;
580
- dimension: z.ZodOptional<z.ZodEnum<["2d", "3d"]>>;
581
- aspect: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "5:7", "8:1"]>>;
582
- }, "strip", z.ZodTypeAny, {
583
- role: string;
584
- category: string;
585
- animations?: string[] | undefined;
586
- style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
587
- variant?: string | undefined;
588
- dimension?: "2d" | "3d" | undefined;
589
- aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
590
- }, {
591
- role: string;
592
- category: string;
593
- animations?: string[] | undefined;
594
- style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
595
- variant?: string | undefined;
596
- dimension?: "2d" | "3d" | undefined;
597
- aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
598
- }>;
599
- /**
600
- * The single asset type: a `SemanticAssetRef` (role/dimension/animations/aspect/style)
601
- * WITH its resolved URL folded in. Used everywhere an asset is referenced — a lolo
602
- * board `assetManifest` (`Map string Asset`), every `@almadar/ui` game prop, the
603
- * asset-workflow's resolved/pool assets, and the inspector picker. Replaces the bare
604
- * `AssetUrl`-string asset field so the render metadata travels WITH the asset (no
605
- * pixel-dimension or filename heuristics needed to know sheet-vs-frame / 2d-vs-3d).
606
- */
607
- interface Asset extends SemanticAssetRef {
608
- /** The resolved asset URL. When `atlas`/`sprite` are set this is the SHEET png; otherwise a standalone image. */
609
- url: AssetUrl;
610
- /**
611
- * Optional atlas JSON (a `TextureAtlas` or `Tilesheet`) that slices `url`.
612
- * When present with `sprite`, the renderer fetches sheet + atlas once and
613
- * blits one sub-rect instead of loading a standalone PNG. Absent → `url` is
614
- * a plain whole-image asset (the existing, non-atlas path).
615
- */
616
- atlas?: AssetUrl;
617
- /**
618
- * The sub-texture selector within `atlas`: a `SubTexture` name for a
619
- * `TextureAtlas` (e.g. `"grass.png"`), or a `"col,row"`/flat index for a
620
- * `Tilesheet`. Only meaningful alongside `atlas`.
621
- */
622
- sprite?: string;
623
- /** Optional display name (inspector picker). */
624
- name?: string;
625
- /** Optional thumbnail URL (inspector picker grid). */
626
- thumbnailUrl?: string;
627
- }
628
- declare const AssetSchema: z.ZodObject<{
629
- role: z.ZodString;
630
- category: z.ZodString;
631
- animations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
632
- style: z.ZodOptional<z.ZodEnum<["pixel", "vector", "hd", "1-bit", "isometric"]>>;
633
- variant: z.ZodOptional<z.ZodString>;
634
- dimension: z.ZodOptional<z.ZodEnum<["2d", "3d"]>>;
635
- aspect: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "5:7", "8:1"]>>;
636
- } & {
637
- url: z.ZodString;
638
- atlas: z.ZodOptional<z.ZodString>;
639
- sprite: z.ZodOptional<z.ZodString>;
640
- name: z.ZodOptional<z.ZodString>;
641
- thumbnailUrl: z.ZodOptional<z.ZodString>;
642
- }, "strip", z.ZodTypeAny, {
643
- url: string;
644
- role: string;
645
- category: string;
646
- name?: string | undefined;
647
- animations?: string[] | undefined;
648
- style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
649
- variant?: string | undefined;
650
- dimension?: "2d" | "3d" | undefined;
651
- aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
652
- atlas?: string | undefined;
653
- sprite?: string | undefined;
654
- thumbnailUrl?: string | undefined;
655
- }, {
656
- url: string;
657
- role: string;
658
- category: string;
659
- name?: string | undefined;
660
- animations?: string[] | undefined;
661
- style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
662
- variant?: string | undefined;
663
- dimension?: "2d" | "3d" | undefined;
664
- aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
665
- atlas?: string | undefined;
666
- sprite?: string | undefined;
667
- thumbnailUrl?: string | undefined;
668
- }>;
669
- /**
670
- * Single browsable asset in the inspector picker catalog.
671
- * Backs the asset/icon pickers — a flat list the inspector renders for
672
- * the user to choose from when a config field's type is `'asset'`.
673
- */
674
- interface AssetCatalogEntry {
675
- /** Resolvable URL to the asset. */
676
- url: string;
677
- /** Display name for the asset. */
678
- name: string;
679
- /** Grouping category within the catalog. */
680
- category: string;
681
- /** Asset kind the picker dispatches on. */
682
- kind: 'image' | 'spritesheet' | 'audio' | 'scene' | 'portrait' | 'model' | 'other';
683
- /** Optional thumbnail URL for grid previews. */
684
- thumbnailUrl?: string;
685
- /** 2D sprite vs 3D model — the asset's actual rendering dimension. */
686
- dimension?: AssetDimension;
687
- /** The asset's actual rendering aspect ratio. */
688
- aspect?: AssetAspect;
689
- }
690
- declare const AssetCatalogEntrySchema: z.ZodObject<{
691
- url: z.ZodString;
692
- name: z.ZodString;
693
- category: z.ZodString;
694
- kind: z.ZodEnum<["image", "spritesheet", "audio", "scene", "portrait", "model", "other"]>;
695
- thumbnailUrl: z.ZodOptional<z.ZodString>;
696
- dimension: z.ZodOptional<z.ZodEnum<["2d", "3d"]>>;
697
- aspect: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "5:7", "8:1"]>>;
698
- }, "strip", z.ZodTypeAny, {
699
- url: string;
700
- name: string;
701
- category: string;
702
- kind: "image" | "spritesheet" | "audio" | "scene" | "portrait" | "model" | "other";
703
- dimension?: "2d" | "3d" | undefined;
704
- aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
705
- thumbnailUrl?: string | undefined;
706
- }, {
707
- url: string;
708
- name: string;
709
- category: string;
710
- kind: "image" | "spritesheet" | "audio" | "scene" | "portrait" | "model" | "other";
711
- dimension?: "2d" | "3d" | undefined;
712
- aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
713
- thumbnailUrl?: string | undefined;
714
- }>;
715
- /**
716
- * Flat list of browsable assets surfaced by the inspector pickers.
717
- */
718
- type AssetCatalog = AssetCatalogEntry[];
719
- declare const AssetCatalogSchema: z.ZodArray<z.ZodObject<{
720
- url: z.ZodString;
721
- name: z.ZodString;
722
- category: z.ZodString;
723
- kind: z.ZodEnum<["image", "spritesheet", "audio", "scene", "portrait", "model", "other"]>;
724
- thumbnailUrl: z.ZodOptional<z.ZodString>;
725
- dimension: z.ZodOptional<z.ZodEnum<["2d", "3d"]>>;
726
- aspect: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "5:7", "8:1"]>>;
727
- }, "strip", z.ZodTypeAny, {
728
- url: string;
729
- name: string;
730
- category: string;
731
- kind: "image" | "spritesheet" | "audio" | "scene" | "portrait" | "model" | "other";
732
- dimension?: "2d" | "3d" | undefined;
733
- aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
734
- thumbnailUrl?: string | undefined;
735
- }, {
736
- url: string;
737
- name: string;
738
- category: string;
739
- kind: "image" | "spritesheet" | "audio" | "scene" | "portrait" | "model" | "other";
740
- dimension?: "2d" | "3d" | undefined;
741
- aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
742
- thumbnailUrl?: string | undefined;
743
- }>, "many">;
744
- /**
745
- * Asset-reference URL marker. A plain alias over `string` — the value is a
746
- * resolvable asset URL — but the named type lets the pattern-sync tool
747
- * (`tools/almadar-pattern-sync/parser.ts`) detect a component prop as an asset
748
- * field (tagged `asset`) the same way `EventKey`/`LucideIcon` are detected by
749
- * type identity. Components annotate image/url props as `AssetUrl` (`src`,
750
- * `backgroundImage`, `avatar`, …); the generator emits a `string` config knob
751
- * declared as the `asset` config type, which the property inspector dispatches
752
- * an AssetPicker on. Not branded — asset urls originate from user data, so cast
753
- * friction would buy nothing; the value is the marker the tool finds.
754
- */
755
- type AssetUrl = string;
756
- /**
757
- * A neutral position in scene space: 2D (`x`,`y`) or optionally 3D (`x`,`y`,`z`).
758
- * The single coordinate type shared by every drawable descriptor and camera pose
759
- * across the 2D and 3D canvas hosts, so a scene composes from the same `{x,y,z?}`
760
- * regardless of projection or painter. Logical, not pixel — the host's projector
761
- * maps a `ScenePos` to screen space.
762
- */
763
- interface ScenePos {
764
- x: number;
765
- y: number;
766
- z?: number;
767
- }
768
- declare const ScenePosSchema: z.ZodObject<{
769
- x: z.ZodNumber;
770
- y: z.ZodNumber;
771
- z: z.ZodOptional<z.ZodNumber>;
772
- }, "strip", z.ZodTypeAny, {
773
- x: number;
774
- y: number;
775
- z?: number | undefined;
776
- }, {
777
- x: number;
778
- y: number;
779
- z?: number | undefined;
780
- }>;
781
- /**
782
- * Camera behaviors, unifying the former per-host vocab (2D `camera` string +
783
- * 3D `cameraMode`). `isometric`/`top-down` are fixed framings; `follow`/`chase`
784
- * track a target; `perspective` is the 3D dramatic framing.
785
- */
786
- declare const CAMERA_MODES: readonly ["isometric", "perspective", "top-down", "follow", "chase"];
787
- type CameraMode = (typeof CAMERA_MODES)[number];
788
- declare const CameraModeSchema: z.ZodEnum<["isometric", "perspective", "top-down", "follow", "chase"]>;
789
- /**
790
- * A neutral camera pose shared by the 2D and 3D canvas hosts, so `type: canvas`
791
- * carries one camera object regardless of painter. `pos`/`target` are `ScenePos`
792
- * (logical scene space, not pixels); `zoom` scales the view (the former `scale`);
793
- * `fov` is the 3D field of view; `mode` selects the framing/tracking behavior.
794
- * Every field is optional — an omitted camera means the host's default framing.
795
- */
796
- interface Camera {
797
- pos?: ScenePos;
798
- target?: ScenePos;
799
- zoom?: number;
800
- fov?: number;
801
- mode?: CameraMode;
802
- }
803
- declare const CameraSchema: z.ZodObject<{
804
- pos: z.ZodOptional<z.ZodObject<{
805
- x: z.ZodNumber;
806
- y: z.ZodNumber;
807
- z: z.ZodOptional<z.ZodNumber>;
808
- }, "strip", z.ZodTypeAny, {
809
- x: number;
810
- y: number;
811
- z?: number | undefined;
812
- }, {
813
- x: number;
814
- y: number;
815
- z?: number | undefined;
816
- }>>;
817
- target: z.ZodOptional<z.ZodObject<{
818
- x: z.ZodNumber;
819
- y: z.ZodNumber;
820
- z: z.ZodOptional<z.ZodNumber>;
821
- }, "strip", z.ZodTypeAny, {
822
- x: number;
823
- y: number;
824
- z?: number | undefined;
825
- }, {
826
- x: number;
827
- y: number;
828
- z?: number | undefined;
829
- }>>;
830
- zoom: z.ZodOptional<z.ZodNumber>;
831
- fov: z.ZodOptional<z.ZodNumber>;
832
- mode: z.ZodOptional<z.ZodEnum<["isometric", "perspective", "top-down", "follow", "chase"]>>;
833
- }, "strip", z.ZodTypeAny, {
834
- target?: {
835
- x: number;
836
- y: number;
837
- z?: number | undefined;
838
- } | undefined;
839
- pos?: {
840
- x: number;
841
- y: number;
842
- z?: number | undefined;
843
- } | undefined;
844
- zoom?: number | undefined;
845
- fov?: number | undefined;
846
- mode?: "isometric" | "perspective" | "top-down" | "follow" | "chase" | undefined;
847
- }, {
848
- target?: {
849
- x: number;
850
- y: number;
851
- z?: number | undefined;
852
- } | undefined;
853
- pos?: {
854
- x: number;
855
- y: number;
856
- z?: number | undefined;
857
- } | undefined;
858
- zoom?: number | undefined;
859
- fov?: number | undefined;
860
- mode?: "isometric" | "perspective" | "top-down" | "follow" | "chase" | undefined;
861
- }>;
862
- type SemanticAssetRefInput = z.input<typeof SemanticAssetRefSchema>;
863
- type AnimationDefInput = z.input<typeof AnimationDefSchema>;
864
- type AssetCatalogEntryInput = z.input<typeof AssetCatalogEntrySchema>;
865
- type SpriteSheetAtlasInput = z.input<typeof SpriteSheetAtlasSchema>;
866
- /**
867
- * Creates a semantic asset key from role and category.
868
- *
869
- * Generates a unique asset identifier by combining role and category
870
- * with a colon separator. Used for asset management and lookup.
871
- *
872
- * @param {EntityRole} role - Entity role (e.g., 'player', 'enemy')
873
- * @param {string} category - Asset category (e.g., 'sprite', 'animation')
874
- * @returns {string} Asset key in format 'role:category'
875
- *
876
- * @example
877
- * createAssetKey('player', 'sprite'); // returns 'player:sprite'
878
- * createAssetKey('enemy', 'animation'); // returns 'enemy:animation'
879
- */
880
- declare function createAssetKey(role: EntityRole, category: string): string;
881
- /**
882
- * Parses an asset key into role and category components.
883
- *
884
- * Deconstructs an asset key string (format 'role:category') into its
885
- * constituent parts. Returns null if the key format is invalid.
886
- *
887
- * @param {string} key - Asset key in format 'role:category'
888
- * @returns {{ role: string; category: string } | null} Parsed components or null
889
- *
890
- * @example
891
- * parseAssetKey('player:sprite'); // returns { role: 'player', category: 'sprite' }
892
- * parseAssetKey('enemy:animation'); // returns { role: 'enemy', category: 'animation' }
893
- * parseAssetKey('invalid'); // returns null
894
- */
895
- declare function parseAssetKey(key: string): {
896
- role: string;
897
- category: string;
898
- } | null;
899
- /**
900
- * Gets common animations for an entity role.
901
- *
902
- * Returns an array of default animation names appropriate for the
903
- * specified entity role. Used for asset configuration and validation.
904
- *
905
- * @param {EntityRole} role - Entity role
906
- * @returns {string[]} Array of default animation names
907
- *
908
- * @example
909
- * getDefaultAnimationsForRole('player'); // returns ['idle', 'run', 'jump', 'fall', 'attack', 'hurt', 'die']
910
- * getDefaultAnimationsForRole('enemy'); // returns ['idle', 'walk', 'attack', 'hurt', 'die']
911
- */
912
- declare function getDefaultAnimationsForRole(role: EntityRole): string[];
913
- /**
914
- * Validates that an asset reference has required animations.
915
- *
916
- * Checks if an asset reference contains all required animations.
917
- * Returns an error message if validation fails, or null if valid.
918
- *
919
- * @param {SemanticAssetRef} assetRef - Asset reference to validate
920
- * @param {string[]} requiredAnimations - Required animation names
921
- * @returns {string | null} Error message or null if valid
922
- *
923
- * @example
924
- * validateAssetAnimations(assetRef, ['idle', 'run']); // returns null if valid
925
- * validateAssetAnimations(assetRef, ['missing-animation']); // returns error message
926
- */
927
- declare function validateAssetAnimations(assetRef: SemanticAssetRef, requiredAnimations: string[]): {
928
- valid: boolean;
929
- missing: string[];
930
- };
931
-
932
- /**
933
- * Entity Types for Orbital Units
934
- *
935
- * Defines the OrbitalEntity type - the nucleus of an Orbital Unit.
936
- *
937
- * @packageDocumentation
938
- */
939
-
940
- /**
941
- * Entity persistence types.
942
- *
943
- * - persistent: Stored in database (has collection)
944
- * - runtime: Exists only at runtime (not persisted)
945
- */
946
- type EntityPersistence = 'persistent' | 'runtime';
947
- declare const EntityPersistenceSchema: z.ZodEnum<["persistent", "runtime"]>;
948
- /**
949
- * OrbitalEntity - the nucleus of an Orbital Unit.
950
- *
951
- * This is a simplified entity definition optimized for orbital composition.
952
- * Collection names are derived automatically from persistence type if not provided.
953
- */
954
- interface OrbitalEntity {
955
- /** Entity name (PascalCase, e.g., "Task", "User") */
956
- name: string;
957
- /** Entity persistence type (defaults to 'persistent' if not specified) */
958
- persistence?: EntityPersistence;
959
- /** Whether this entity's state is shared across all bound traits (vs per-trait copy). Orthogonal to persistence. */
960
- shared?: boolean;
961
- /** Collection name (auto-derived if not provided for persistent entities) */
962
- collection?: string;
963
- /** Entity fields */
964
- fields: EntityField[];
965
- /** Pre-authored instances (seed data or static reference data) */
966
- instances?: EntityRow[];
967
- /** Auto-add createdAt/updatedAt timestamps */
968
- timestamps?: boolean;
969
- /** Soft delete support */
970
- softDelete?: boolean;
971
- /** Human-readable description */
972
- description?: string;
973
- /** Visual prompt for AI generation */
974
- visual_prompt?: string;
975
- /** Semantic asset reference for visual representation (games) */
976
- assetRef?: SemanticAssetRef;
977
- }
978
- declare const OrbitalEntitySchema: z.ZodObject<{
979
- name: z.ZodString;
980
- persistence: z.ZodDefault<z.ZodEnum<["persistent", "runtime"]>>;
981
- shared: z.ZodOptional<z.ZodBoolean>;
982
- collection: z.ZodOptional<z.ZodString>;
983
- fields: z.ZodArray<z.ZodType<EntityField, z.ZodTypeDef, unknown>, "many">;
984
- instances: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
985
- timestamps: z.ZodOptional<z.ZodBoolean>;
986
- softDelete: z.ZodOptional<z.ZodBoolean>;
987
- description: z.ZodOptional<z.ZodString>;
988
- visual_prompt: z.ZodOptional<z.ZodString>;
989
- assetRef: z.ZodOptional<z.ZodObject<{
990
- role: z.ZodString;
991
- category: z.ZodString;
992
- animations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
993
- style: z.ZodOptional<z.ZodEnum<["pixel", "vector", "hd", "1-bit", "isometric"]>>;
994
- variant: z.ZodOptional<z.ZodString>;
995
- dimension: z.ZodOptional<z.ZodEnum<["2d", "3d"]>>;
996
- aspect: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "5:7", "8:1"]>>;
997
- }, "strip", z.ZodTypeAny, {
998
- role: string;
999
- category: string;
1000
- animations?: string[] | undefined;
1001
- style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
1002
- variant?: string | undefined;
1003
- dimension?: "2d" | "3d" | undefined;
1004
- aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
1005
- }, {
1006
- role: string;
1007
- category: string;
1008
- animations?: string[] | undefined;
1009
- style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
1010
- variant?: string | undefined;
1011
- dimension?: "2d" | "3d" | undefined;
1012
- aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
1013
- }>>;
1014
- }, "strip", z.ZodTypeAny, {
1015
- name: string;
1016
- persistence: "persistent" | "runtime";
1017
- fields: EntityField[];
1018
- description?: string | undefined;
1019
- shared?: boolean | undefined;
1020
- collection?: string | undefined;
1021
- instances?: Record<string, unknown>[] | undefined;
1022
- timestamps?: boolean | undefined;
1023
- softDelete?: boolean | undefined;
1024
- visual_prompt?: string | undefined;
1025
- assetRef?: {
1026
- role: string;
1027
- category: string;
1028
- animations?: string[] | undefined;
1029
- style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
1030
- variant?: string | undefined;
1031
- dimension?: "2d" | "3d" | undefined;
1032
- aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
1033
- } | undefined;
1034
- }, {
1035
- name: string;
1036
- fields: unknown[];
1037
- description?: string | undefined;
1038
- persistence?: "persistent" | "runtime" | undefined;
1039
- shared?: boolean | undefined;
1040
- collection?: string | undefined;
1041
- instances?: Record<string, unknown>[] | undefined;
1042
- timestamps?: boolean | undefined;
1043
- softDelete?: boolean | undefined;
1044
- visual_prompt?: string | undefined;
1045
- assetRef?: {
1046
- role: string;
1047
- category: string;
1048
- animations?: string[] | undefined;
1049
- style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
1050
- variant?: string | undefined;
1051
- dimension?: "2d" | "3d" | undefined;
1052
- aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
1053
- } | undefined;
1054
- }>;
1055
- type OrbitalEntityInput = z.input<typeof OrbitalEntitySchema>;
1056
- /** Alias for OrbitalEntity - preferred name */
1057
- type Entity = OrbitalEntity;
1058
- /** Alias for OrbitalEntitySchema - preferred name */
1059
- declare const EntitySchema: z.ZodObject<{
1060
- name: z.ZodString;
1061
- persistence: z.ZodDefault<z.ZodEnum<["persistent", "runtime"]>>;
1062
- shared: z.ZodOptional<z.ZodBoolean>;
1063
- collection: z.ZodOptional<z.ZodString>;
1064
- fields: z.ZodArray<z.ZodType<EntityField, z.ZodTypeDef, unknown>, "many">;
1065
- instances: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
1066
- timestamps: z.ZodOptional<z.ZodBoolean>;
1067
- softDelete: z.ZodOptional<z.ZodBoolean>;
1068
- description: z.ZodOptional<z.ZodString>;
1069
- visual_prompt: z.ZodOptional<z.ZodString>;
1070
- assetRef: z.ZodOptional<z.ZodObject<{
1071
- role: z.ZodString;
1072
- category: z.ZodString;
1073
- animations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1074
- style: z.ZodOptional<z.ZodEnum<["pixel", "vector", "hd", "1-bit", "isometric"]>>;
1075
- variant: z.ZodOptional<z.ZodString>;
1076
- dimension: z.ZodOptional<z.ZodEnum<["2d", "3d"]>>;
1077
- aspect: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "5:7", "8:1"]>>;
1078
- }, "strip", z.ZodTypeAny, {
1079
- role: string;
1080
- category: string;
1081
- animations?: string[] | undefined;
1082
- style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
1083
- variant?: string | undefined;
1084
- dimension?: "2d" | "3d" | undefined;
1085
- aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
1086
- }, {
1087
- role: string;
1088
- category: string;
1089
- animations?: string[] | undefined;
1090
- style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
1091
- variant?: string | undefined;
1092
- dimension?: "2d" | "3d" | undefined;
1093
- aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
1094
- }>>;
1095
- }, "strip", z.ZodTypeAny, {
1096
- name: string;
1097
- persistence: "persistent" | "runtime";
1098
- fields: EntityField[];
1099
- description?: string | undefined;
1100
- shared?: boolean | undefined;
1101
- collection?: string | undefined;
1102
- instances?: Record<string, unknown>[] | undefined;
1103
- timestamps?: boolean | undefined;
1104
- softDelete?: boolean | undefined;
1105
- visual_prompt?: string | undefined;
1106
- assetRef?: {
1107
- role: string;
1108
- category: string;
1109
- animations?: string[] | undefined;
1110
- style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
1111
- variant?: string | undefined;
1112
- dimension?: "2d" | "3d" | undefined;
1113
- aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
1114
- } | undefined;
1115
- }, {
1116
- name: string;
1117
- fields: unknown[];
1118
- description?: string | undefined;
1119
- persistence?: "persistent" | "runtime" | undefined;
1120
- shared?: boolean | undefined;
1121
- collection?: string | undefined;
1122
- instances?: Record<string, unknown>[] | undefined;
1123
- timestamps?: boolean | undefined;
1124
- softDelete?: boolean | undefined;
1125
- visual_prompt?: string | undefined;
1126
- assetRef?: {
1127
- role: string;
1128
- category: string;
1129
- animations?: string[] | undefined;
1130
- style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
1131
- variant?: string | undefined;
1132
- dimension?: "2d" | "3d" | undefined;
1133
- aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
1134
- } | undefined;
1135
- }>;
1136
- /**
1137
- * Derives the collection name for a persistent entity.
1138
- *
1139
- * Generates the database collection name by converting the entity name
1140
- * to lowercase and adding an 's' suffix (simple pluralization).
1141
- * Returns undefined for non-persistent (runtime) entities.
1142
- *
1143
- * @param {OrbitalEntity} entity - Entity to derive collection name for
1144
- * @returns {string | undefined} Collection name or undefined for non-persistent entities
1145
- *
1146
- * @example
1147
- * deriveCollection({ name: 'User', persistence: 'persistent' }); // returns 'users'
1148
- * deriveCollection({ name: 'Task', persistence: 'runtime' }); // returns undefined
1149
- */
1150
- declare function deriveCollection(entity: OrbitalEntity): string | undefined;
1151
- /**
1152
- * Checks if an entity is runtime-only (not persisted).
1153
- *
1154
- * Type guard to determine if an entity exists only at runtime
1155
- * and is not stored in the database.
1156
- *
1157
- * @param {OrbitalEntity} entity - Entity to check
1158
- * @returns {boolean} True if entity is runtime-only, false otherwise
1159
- *
1160
- * @example
1161
- * isRuntimeEntity({ persistence: 'runtime' }); // returns true
1162
- * isRuntimeEntity({ persistence: 'persistent' }); // returns false
1163
- */
1164
- declare function isRuntimeEntity(entity: OrbitalEntity): boolean;
1165
- /**
1166
- * Checks whether an entity's persistence mode allows `persistence` /
1167
- * `collection` overrides at the factory call site.
1168
- *
1169
- * Only `persistent` entities (explicit or default) support these overrides.
1170
- * Runtime entities are fixed; callers must not expose `persistence` or
1171
- * `collection` params for them.
1172
- *
1173
- * @param persistence - The entity persistence mode (undefined = default persistent)
1174
- * @returns True when overrides are allowed, false otherwise
1175
- *
1176
- * @example
1177
- * persistenceModeAllowsOverrides('persistent'); // returns true
1178
- * persistenceModeAllowsOverrides('runtime'); // returns false
1179
- * persistenceModeAllowsOverrides(undefined); // returns true (default persistent)
1180
- */
1181
- declare function persistenceModeAllowsOverrides(persistence: EntityPersistence | undefined): boolean;
1182
- /**
1183
- * A single field value at runtime.
1184
- * Union of all possible types from FieldType: string, number, boolean, date, array, nested.
1185
- * The nested-record branch's index signature tolerates `undefined` so that
1186
- * TypeScript optional properties (`x?: string`, carrying `string | undefined`)
1187
- * on EntityRow extenders typecheck without ceremony. At JSON serialization
1188
- * time `undefined` is equivalent to "key absent" and never appears on the
1189
- * wire; the inclusion here is a pure type-surface accommodation.
1190
- */
1191
- type FieldValue = string | number | boolean | Date | null | string[] | FieldValue[] | {
1192
- [key: string]: FieldValue | undefined;
1193
- };
1194
- /**
1195
- * Runtime guard for `FieldValue` — narrows interpreter-produced `unknown`
1196
- * values at typed substrate boundaries (e.g. `IntegrationContext.http` body).
1197
- */
1198
- declare function isFieldValue(value: unknown): value is FieldValue;
1199
- /**
1200
- * One instance of an entity with actual field values.
1201
- * The shape is determined by the Entity definition at schema time.
1202
- *
1203
- * @example
1204
- * // Entity defines: Patient { fullName: string, age: number, active: boolean }
1205
- * // EntityRow is: { id: "p1", fullName: "Sarah", age: 34, active: true }
1206
- */
1207
- type EntityRow = {
1208
- id?: string;
1209
- } & Record<string, FieldValue | undefined>;
1210
- /**
1211
- * A field-TYPED `EntityRow` — the SINGLE entity type, refined with a concrete
1212
- * field SHAPE `S`. Non-optional members of `S` are REQUIRED, each with its real
1213
- * type; the result stays `& EntityRow`, so the index signature is intact and
1214
- * every other field is still field-open — any domain entity that provides those
1215
- * fields satisfies it.
1216
- *
1217
- * One declaration, two jobs: (1) TypeScript enforces the bound entity has the
1218
- * fields WITH their types (a behavior binding a thinner/mistyped entity fails to
1219
- * typecheck); and (2) pattern-sync reads the same type and writes the entity
1220
- * prop's field shape (`properties` + `requiredFields`) onto the registry, so
1221
- * lolo-ui emits a COMPLETE `entity { … }` (every field, typed + demo-seeded) and
1222
- * the `ORB_X_ENTITY_PROP_CONTRACT` validator rejects an incompatible bind at
1223
- * `orbital validate`. (A raw `EntityRow & { rating: number }` intersection is
1224
- * equivalent for one-off shapes.)
1225
- *
1226
- * @example
1227
- * // HeroOrganism renders entity.title / entity.subtitle:
1228
- * entity?: EntityWith<{ title: string; subtitle?: string }>;
1229
- * // entity.title → string (required)
1230
- * // entity.subtitle → string | undefined (optional)
1231
- * // entity.other → FieldValue | undefined (still field-open)
1232
- */
1233
- type EntityWith<S extends object> = EntityRow & S;
1234
- /**
1235
- * Collection of entity instances keyed by entity name.
1236
- * Used by OrbPreview mockData, OrbitalServerRuntime state, data grids, etc.
1237
- *
1238
- * @example
1239
- * const data: EntityData = {
1240
- * Patient: [{ id: "1", fullName: "Sarah", age: 34 }],
1241
- * QueueEntry: [{ id: "1", patientName: "Sarah", waitMinutes: 12 }],
1242
- * };
1243
- */
1244
- type EntityData = Record<string, EntityRow[]>;
1245
-
1246
- /**
1247
- * Pattern Types (Auto-Generated)
1248
- *
1249
- * DO NOT EDIT MANUALLY — regenerated by almadar-pattern-sync `patterns` command.
1250
- *
1251
- * Generated: 2026-07-09T14:00:33.238Z
1252
- * Pattern count: 261
1253
- */
1254
-
1255
- /**
1256
- * Object-typed pattern prop value. Represents dynamic config objects
1257
- * within pattern props (e.g., style, assetManifest, payload).
1258
- */
1259
- type PatternPropValue = Record<string, FieldValue | undefined>;
1260
- /**
1261
- * All valid pattern type names from @almadar/core/patterns registry.
1262
- * Use this type in render-ui effects for compile-time validation.
1263
- */
1264
- type PatternType = 'about-page-template' | 'accordion' | 'action-palette' | 'action-tile' | 'activation-block' | 'alert' | 'algorithm-canvas' | 'animated-counter' | 'animated-graphic' | 'animated-reveal' | 'article-section' | 'aside' | 'atlas-image' | 'atlas-panel' | 'auth-layout' | 'avatar' | 'badge' | 'behavior-view' | 'biology-canvas' | 'bloom-quiz-block' | 'book-chapter-view' | 'book-cover-page' | 'book-nav-bar' | 'book-table-of-contents' | 'book-viewer' | 'box' | 'branching-logic-builder' | 'breadcrumb' | 'button' | 'calendar-grid' | 'canvas' | 'canvas-2d' | 'card' | 'carousel' | 'case-study-card' | 'case-study-organism' | 'center' | 'chart' | 'chart-legend' | 'chat-bar' | 'checkbox' | 'chemistry-canvas' | 'choice-button' | 'code-block' | 'code-runner-panel' | 'community-links' | 'conditional-wrapper' | 'confetti-effect' | 'confirm-dialog' | 'connection-block' | 'container' | 'content-renderer' | 'content-section' | 'control-button' | 'control-grid' | 'counter-template' | 'cta-banner' | 'dashboard-grid' | 'dashboard-layout' | 'data-grid' | 'data-list' | 'date-range-picker' | 'date-range-selector' | 'day-cell' | 'detail-panel' | 'dialog' | 'dialogue-bubble' | 'divider' | 'doc-breadcrumb' | 'doc-pagination' | 'doc-search' | 'doc-sidebar' | 'doc-toc' | 'document-viewer' | 'draw-shape' | 'draw-shape-layer' | 'draw-sprite' | 'draw-sprite-layer' | 'draw-text' | 'draw-text-layer' | 'drawer' | 'drawer-slot' | 'edge-decoration' | 'empty-state' | 'entity-cards' | 'entity-list' | 'entity-table' | 'error-boundary' | 'error-state' | 'feature-card' | 'feature-detail-page-template' | 'feature-grid' | 'feature-grid-organism' | 'file-tree' | 'filter-group' | 'filter-pill' | 'flex' | 'flip-card' | 'flip-container' | 'floating-action-button' | 'form' | 'form-actions' | 'form-field' | 'form-layout' | 'form-section' | 'form-section-header' | 'game-audio-toggle' | 'game-hud' | 'game-icon' | 'game-menu' | 'game-shell' | 'generic-app-template' | 'geometric-pattern' | 'gradient-divider' | 'graph-canvas' | 'graph-view' | 'grid' | 'header' | 'health-bar' | 'hero-organism' | 'hero-section' | 'hstack' | 'icon' | 'infinite-scroll-sentinel' | 'input' | 'input-group' | 'install-box' | 'jazari-state-machine' | 'label' | 'landing-page-template' | 'law-reference-tooltip' | 'learning-canvas' | 'lightbox' | 'likert-scale' | 'line-chart' | 'loading-state' | 'map-view' | 'markdown-content' | 'marketing-footer' | 'marketing-stat-card' | 'master-detail' | 'master-detail-layout' | 'math-canvas' | 'matrix-question' | 'media-gallery' | 'menu' | 'meter' | 'modal' | 'modal-slot' | 'module-card' | 'navigation' | 'notification' | 'number-stepper' | 'option-constraint-group' | 'orbital-visualization' | 'overlay' | 'page-header' | 'pagination' | 'pattern-tile' | 'physics-canvas' | 'popover' | 'positioned-canvas' | 'pricing-card' | 'pricing-grid' | 'pricing-organism' | 'pricing-page-template' | 'progress-bar' | 'progress-dots' | 'pull-quote' | 'pull-to-refresh' | 'qr-scanner' | 'quiz-block' | 'radio' | 'range-slider' | 'reflection-block' | 'relation-select' | 'repeatable-form-section' | 'reply-tree' | 'rich-block-editor' | 'runtime-debugger' | 'scaled-diagram' | 'score-display' | 'search-input' | 'section' | 'section-header' | 'segment-renderer' | 'select' | 'sequence-bar' | 'service-catalog' | 'showcase-card' | 'showcase-organism' | 'side-panel' | 'sidebar' | 'signature-pad' | 'simple-grid' | 'skeleton' | 'social-proof' | 'sortable-list' | 'spacer' | 'sparkline' | 'spinner' | 'split' | 'split-pane' | 'split-section' | 'stack' | 'star-rating' | 'stat-badge' | 'stat-card' | 'stat-display' | 'state-graph' | 'state-json-view' | 'state-machine-view' | 'stats-grid' | 'stats-organism' | 'status-dot' | 'step-flow' | 'step-flow-organism' | 'subagent-trace-panel' | 'svg-branch' | 'svg-connection' | 'svg-flow' | 'svg-grid' | 'svg-lobe' | 'svg-mesh' | 'svg-morph' | 'svg-node' | 'svg-pulse' | 'svg-ring' | 'svg-shield' | 'svg-stack' | 'swipeable-row' | 'switch' | 'tabbed-container' | 'table-view' | 'tabs' | 'tag-cloud' | 'tag-input' | 'team-card' | 'team-organism' | 'text-highlight' | 'textarea' | 'theme-toggle' | 'time-slot-cell' | 'timeline' | 'timer-display' | 'toast-slot' | 'tooltip' | 'trait-frame' | 'trait-slot' | 'trend-indicator' | 'typewriter-text' | 'typography' | 'ui-slot-renderer' | 'upload-drop-zone' | 'version-diff' | 'violation-alert' | 'vote-stack' | 'vstack' | 'wizard-container' | 'wizard-navigation' | 'wizard-progress';
1265
- /**
1266
- * Pattern props map — each pattern type maps to its valid props interface.
1267
- */
1268
- interface PatternPropsMap {
1269
- 'about-page-template': {
1270
- type: 'about-page-template';
1271
- entity: PatternPropValue | string;
1272
- className?: string;
1273
- };
1274
- 'accordion': {
1275
- type: 'accordion';
1276
- items: unknown[] | string;
1277
- multiple?: boolean | string;
1278
- defaultOpenItems?: unknown[] | string;
1279
- defaultOpen?: unknown[] | string;
1280
- openItems?: unknown[] | string;
1281
- onItemToggle?: ((...args: unknown[]) => unknown) | string;
1282
- className?: string;
1283
- toggleEvent?: string;
1284
- };
1285
- 'action-palette': {
1286
- type: 'action-palette';
1287
- actions: unknown[] | string;
1288
- usedActionIds?: unknown[] | string;
1289
- allowDuplicates?: boolean | string;
1290
- categoryColors?: PatternPropValue | string;
1291
- size?: string;
1292
- label?: string;
1293
- className?: string;
1294
- };
1295
- 'action-tile': {
1296
- type: 'action-tile';
1297
- className?: string;
1298
- isLoading?: boolean | string;
1299
- error?: PatternPropValue | string;
1300
- sortBy?: string;
1301
- sortDirection?: string;
1302
- searchValue?: string;
1303
- page?: number | string;
1304
- pageSize?: number | string;
1305
- totalCount?: number | string;
1306
- activeFilters?: PatternPropValue | string;
1307
- selectedIds?: unknown[] | string;
1308
- action: PatternPropValue | string;
1309
- size?: string;
1310
- disabled?: boolean | string;
1311
- categoryColors?: PatternPropValue | string;
1312
- };
1313
- 'activation-block': {
1314
- type: 'activation-block';
1315
- question: string;
1316
- savedResponse?: string;
1317
- saveEvent?: string;
1318
- className?: string;
1319
- };
1320
- 'alert': {
1321
- type: 'alert';
1322
- children?: unknown | string;
1323
- message?: string;
1324
- variant?: string;
1325
- title?: string;
1326
- dismissible?: boolean | string;
1327
- onDismiss?: ((...args: unknown[]) => unknown) | string;
1328
- onClose?: ((...args: unknown[]) => unknown) | string;
1329
- actions?: unknown | string;
1330
- className?: string;
1331
- dismissEvent?: string;
1332
- };
1333
- 'algorithm-canvas': {
1334
- type: 'algorithm-canvas';
1335
- className?: string;
1336
- width?: number | string;
1337
- height?: number | string;
1338
- title?: string;
1339
- backgroundColor?: string;
1340
- bars?: unknown[] | string;
1341
- cells?: unknown[] | string;
1342
- pointers?: unknown[] | string;
1343
- shapes?: unknown[] | string;
1344
- interactive?: boolean | string;
1345
- animate?: boolean | string;
1346
- onShapeClick?: ((...args: unknown[]) => unknown) | string;
1347
- isLoading?: boolean | string;
1348
- error?: PatternPropValue | string;
1349
- };
1350
- 'animated-counter': {
1351
- type: 'animated-counter';
1352
- value: number | string;
1353
- duration?: number | string;
1354
- prefix?: string;
1355
- suffix?: string;
1356
- className?: string;
1357
- };
1358
- 'animated-graphic': {
1359
- type: 'animated-graphic';
1360
- className?: string;
1361
- src?: unknown | string;
1362
- svgContent?: string;
1363
- animation?: string;
1364
- animate?: boolean | string;
1365
- duration?: number | string;
1366
- delay?: number | string;
1367
- easing?: string;
1368
- width?: string | number;
1369
- height?: string | number;
1370
- strokeColor?: string;
1371
- fillColor?: string;
1372
- alt?: string;
1373
- };
1374
- 'animated-reveal': {
1375
- type: 'animated-reveal';
1376
- className?: string;
1377
- trigger?: string;
1378
- animation?: string;
1379
- duration?: number | string;
1380
- delay?: number | string;
1381
- threshold?: number | string;
1382
- once?: boolean | string;
1383
- animate?: boolean | string;
1384
- easing?: string;
1385
- children: unknown | ((...args: unknown[]) => unknown) | string;
1386
- };
1387
- 'article-section': {
1388
- type: 'article-section';
1389
- title: string;
1390
- children: unknown | string;
1391
- maxWidth?: string;
1392
- className?: string;
1393
- };
1394
- 'aside': {
1395
- type: 'aside';
1396
- className?: string;
1397
- children?: unknown | string;
1398
- };
1399
- 'atlas-image': {
1400
- type: 'atlas-image';
1401
- asset?: PatternPropValue | string;
1402
- size?: number | string;
1403
- width?: number | string;
1404
- height?: number | string;
1405
- fill?: boolean | string;
1406
- fit?: string;
1407
- alt?: string;
1408
- className?: string;
1409
- style?: PatternPropValue | string;
1410
- 'aria-hidden'?: boolean | string;
1411
- };
1412
- 'atlas-panel': {
1413
- type: 'atlas-panel';
1414
- asset?: PatternPropValue | string;
1415
- borderSlice?: number | string;
1416
- borderWidth?: number | string;
1417
- mode?: string;
1418
- className?: string;
1419
- style?: PatternPropValue | string;
1420
- children?: unknown | string;
1421
- 'aria-hidden'?: boolean | string;
1422
- };
1423
- 'auth-layout': {
1424
- type: 'auth-layout';
1425
- appName?: string;
1426
- logo?: unknown | string;
1427
- backgroundImage?: unknown | string;
1428
- showBranding?: boolean | string;
1429
- brandingContent?: unknown | string;
1430
- };
1431
- 'avatar': {
1432
- type: 'avatar';
1433
- src?: unknown | string;
1434
- alt?: string;
1435
- name?: string;
1436
- initials?: string;
1437
- icon?: unknown | string;
1438
- size?: string;
1439
- status?: string;
1440
- badge?: string | number;
1441
- className?: string;
1442
- onClick?: ((...args: unknown[]) => unknown) | string;
1443
- action?: string;
1444
- actionPayload?: PatternPropValue | string;
1445
- };
1446
- 'badge': {
1447
- type: 'badge';
1448
- className?: string;
1449
- variant?: string;
1450
- size?: string;
1451
- amount?: number | string;
1452
- label?: string | number;
1453
- icon?: unknown | string;
1454
- iconAsset?: PatternPropValue | string;
1455
- onRemove?: ((...args: unknown[]) => unknown) | string;
1456
- removeLabel?: string;
1457
- };
1458
- 'behavior-view': {
1459
- type: 'behavior-view';
1460
- data: PatternPropValue | string;
1461
- };
1462
- 'biology-canvas': {
1463
- type: 'biology-canvas';
1464
- className?: string;
1465
- width?: number | string;
1466
- height?: number | string;
1467
- title?: string;
1468
- backgroundColor?: string;
1469
- nodes?: unknown[] | string;
1470
- edges?: unknown[] | string;
1471
- shapes?: unknown[] | string;
1472
- interactive?: boolean | string;
1473
- animate?: boolean | string;
1474
- onShapeClick?: ((...args: unknown[]) => unknown) | string;
1475
- isLoading?: boolean | string;
1476
- error?: PatternPropValue | string;
1477
- };
1478
- 'bloom-quiz-block': {
1479
- type: 'bloom-quiz-block';
1480
- level: string;
1481
- question: string;
1482
- answer: string;
1483
- index?: number | string;
1484
- isAnswered?: boolean | string;
1485
- answerEvent?: string;
1486
- className?: string;
1487
- };
1488
- 'book-chapter-view': {
1489
- type: 'book-chapter-view';
1490
- className?: string;
1491
- chapter: PatternPropValue | string;
1492
- orbitalSchema?: PatternPropValue | string;
1493
- direction?: string;
1494
- };
1495
- 'book-cover-page': {
1496
- type: 'book-cover-page';
1497
- className?: string;
1498
- title: string;
1499
- subtitle?: string;
1500
- author?: string;
1501
- coverImageUrl?: unknown | string;
1502
- direction?: string;
1503
- };
1504
- 'book-nav-bar': {
1505
- type: 'book-nav-bar';
1506
- className?: string;
1507
- currentPage: number | string;
1508
- totalPages: number | string;
1509
- chapterTitle?: string;
1510
- direction?: string;
1511
- };
1512
- 'book-table-of-contents': {
1513
- type: 'book-table-of-contents';
1514
- className?: string;
1515
- parts: PatternPropValue | unknown[] | string;
1516
- currentChapterId?: string;
1517
- direction?: string;
1518
- };
1519
- 'book-viewer': {
1520
- type: 'book-viewer';
1521
- className?: string;
1522
- isLoading?: boolean | string;
1523
- error?: PatternPropValue | string;
1524
- sortBy?: string;
1525
- sortDirection?: string;
1526
- searchValue?: string;
1527
- page?: number | string;
1528
- pageSize?: number | string;
1529
- totalCount?: number | string;
1530
- activeFilters?: PatternPropValue | string;
1531
- selectedIds?: unknown[] | string;
1532
- entity?: PatternPropValue | unknown[] | string;
1533
- initialPage?: number | string;
1534
- fieldMap?: PatternPropValue | string;
1535
- };
1536
- 'box': {
1537
- type: 'box';
1538
- className?: string;
1539
- 'data-theme'?: string;
1540
- padding?: string;
1541
- paddingX?: string;
1542
- paddingY?: string;
1543
- margin?: string;
1544
- marginX?: string;
1545
- marginY?: string;
1546
- bg?: string;
1547
- border?: boolean | string;
1548
- rounded?: string;
1549
- shadow?: string;
1550
- display?: string;
1551
- fullWidth?: boolean | string;
1552
- fullHeight?: boolean | string;
1553
- overflow?: string;
1554
- position?: string;
1555
- as?: unknown | string;
1556
- action?: string;
1557
- actionPayload?: PatternPropValue | string;
1558
- hoverEvent?: string;
1559
- tapReveal?: boolean | string;
1560
- maxWidth?: string;
1561
- children?: unknown | string;
1562
- };
1563
- 'branching-logic-builder': {
1564
- type: 'branching-logic-builder';
1565
- questions: unknown[] | PatternPropValue | string;
1566
- rules: unknown[] | PatternPropValue | string;
1567
- onRulesChange?: ((...args: unknown[]) => unknown) | string;
1568
- rulesChangeEvent?: string;
1569
- readOnly?: boolean | string;
1570
- className?: string;
1571
- };
1572
- 'breadcrumb': {
1573
- type: 'breadcrumb';
1574
- items: unknown[] | string;
1575
- separator?: unknown | string;
1576
- maxItems?: number | string;
1577
- className?: string;
1578
- };
1579
- 'button': {
1580
- type: 'button';
1581
- className?: string;
1582
- variant?: string;
1583
- size?: string;
1584
- isLoading?: boolean | string;
1585
- leftIcon?: unknown | string;
1586
- rightIcon?: unknown | string;
1587
- icon?: unknown | string;
1588
- iconRight?: unknown | string;
1589
- iconAsset?: PatternPropValue | string;
1590
- action?: string;
1591
- actionPayload?: PatternPropValue | string;
1592
- label?: string;
1593
- disabled?: boolean | string;
1594
- 'data-testid'?: string;
1595
- };
1596
- 'calendar-grid': {
1597
- type: 'calendar-grid';
1598
- weekStart?: unknown | string;
1599
- timeSlots?: unknown[] | string;
1600
- events?: PatternPropValue | unknown[] | string;
1601
- onSlotClick?: ((...args: unknown[]) => unknown) | string;
1602
- onDayClick?: ((...args: unknown[]) => unknown) | string;
1603
- onEventClick?: ((...args: unknown[]) => unknown) | string;
1604
- className?: string;
1605
- longPressEvent?: string;
1606
- longPressPayload?: PatternPropValue | string;
1607
- swipeLeftEvent?: string;
1608
- swipeRightEvent?: string;
1609
- dayWindow?: number | string;
1610
- };
1611
- 'canvas': {
1612
- type: 'canvas';
1613
- mode?: string;
1614
- drawables?: unknown[] | string;
1615
- camera?: PatternPropValue | string;
1616
- projection?: string;
1617
- className?: string;
1618
- isLoading?: boolean | string;
1619
- unitScale?: number | string;
1620
- showMinimap?: boolean | string;
1621
- backgroundImage?: unknown | PatternPropValue | string;
1622
- backgroundColor?: string;
1623
- worldWidth?: number | string;
1624
- worldHeight?: number | string;
1625
- pixelsPerUnit?: number | string;
1626
- showGrid?: boolean | string;
1627
- shadows?: boolean | string;
1628
- showCoordinates?: boolean | string;
1629
- showTileInfo?: boolean | string;
1630
- fogOfWar?: unknown[] | string;
1631
- tileClickEvent?: string;
1632
- unitClickEvent?: string;
1633
- tileHoverEvent?: string;
1634
- tileLeaveEvent?: string;
1635
- featureClickEvent?: string;
1636
- keyMap?: PatternPropValue | string;
1637
- keyUpMap?: PatternPropValue | string;
1638
- };
1639
- 'canvas-2d': {
1640
- type: 'canvas-2d';
1641
- className?: string;
1642
- isLoading?: boolean | string;
1643
- error?: PatternPropValue | string;
1644
- projection?: string;
1645
- drawables?: unknown[] | string;
1646
- backgroundImage?: unknown | PatternPropValue | string;
1647
- tileClickEvent?: string;
1648
- unitClickEvent?: string;
1649
- tileHoverEvent?: string;
1650
- tileLeaveEvent?: string;
1651
- keyMap?: PatternPropValue | string;
1652
- keyUpMap?: PatternPropValue | string;
1653
- camera?: string;
1654
- scale?: number | string;
1655
- showMinimap?: boolean | string;
1656
- followTarget?: PatternPropValue | string;
1657
- cameraPos?: PatternPropValue | string;
1658
- bgColor?: string;
1659
- };
1660
- 'card': {
1661
- type: 'card';
1662
- className?: string;
1663
- variant?: string;
1664
- padding?: string;
1665
- title?: string;
1666
- subtitle?: string;
1667
- shadow?: string;
1668
- look?: string;
1669
- children?: unknown | string;
1670
- action?: string;
1671
- loading?: boolean | string;
1672
- };
1673
- 'carousel': {
1674
- type: 'carousel';
1675
- items: unknown[] | string;
1676
- renderItem?: ((...args: unknown[]) => unknown) | string;
1677
- children?: ((...args: unknown[]) => unknown) | string;
1678
- autoPlay?: boolean | string;
1679
- autoPlayInterval?: number | string;
1680
- showDots?: boolean | string;
1681
- showArrows?: boolean | string;
1682
- loop?: boolean | string;
1683
- slideChangeEvent?: string;
1684
- slideChangePayload?: PatternPropValue | string;
1685
- className?: string;
1686
- };
1687
- 'case-study-card': {
1688
- type: 'case-study-card';
1689
- title: string;
1690
- description: string;
1691
- category: string;
1692
- categoryColor?: string;
1693
- href: string;
1694
- linkLabel?: string;
1695
- className?: string;
1696
- };
1697
- 'case-study-organism': {
1698
- type: 'case-study-organism';
1699
- className?: string;
1700
- isLoading?: boolean | string;
1701
- error?: PatternPropValue | string;
1702
- sortBy?: string;
1703
- sortDirection?: string;
1704
- searchValue?: string;
1705
- page?: number | string;
1706
- pageSize?: number | string;
1707
- totalCount?: number | string;
1708
- activeFilters?: PatternPropValue | string;
1709
- selectedIds?: unknown[] | string;
1710
- entity?: PatternPropValue | unknown[] | string;
1711
- heading?: string;
1712
- subtitle?: string;
1713
- };
1714
- 'center': {
1715
- type: 'center';
1716
- inline?: boolean | string;
1717
- horizontal?: boolean | string;
1718
- vertical?: boolean | string;
1719
- minHeight?: string | number;
1720
- fullHeight?: boolean | string;
1721
- fullWidth?: boolean | string;
1722
- className?: string;
1723
- style?: PatternPropValue | string;
1724
- children: unknown | string;
1725
- as?: unknown | string;
1726
- };
1727
- 'chart': {
1728
- type: 'chart';
1729
- title?: string;
1730
- subtitle?: string;
1731
- chartType?: string;
1732
- look?: string;
1733
- series?: unknown[] | string;
1734
- data?: unknown[] | string;
1735
- scatterData?: unknown[] | string;
1736
- height?: number | string;
1737
- showLegend?: boolean | string;
1738
- showValues?: boolean | string;
1739
- stack?: string;
1740
- timeAxis?: boolean | string;
1741
- drillEvent?: string;
1742
- actions?: unknown[] | string;
1743
- isLoading?: boolean | string;
1744
- error?: PatternPropValue | string;
1745
- className?: string;
1746
- };
1747
- 'chart-legend': {
1748
- type: 'chart-legend';
1749
- items: unknown[] | string;
1750
- className?: string;
1751
- direction?: string;
1752
- };
1753
- 'chat-bar': {
1754
- type: 'chat-bar';
1755
- className?: string;
1756
- isLoading?: boolean | string;
1757
- error?: PatternPropValue | string;
1758
- sortBy?: string;
1759
- sortDirection?: string;
1760
- searchValue?: string;
1761
- page?: number | string;
1762
- pageSize?: number | string;
1763
- totalCount?: number | string;
1764
- activeFilters?: PatternPropValue | string;
1765
- selectedIds?: unknown[] | string;
1766
- status?: string;
1767
- activeGate?: string;
1768
- jepaValidity?: number | string;
1769
- placeholder?: string;
1770
- context?: string;
1771
- };
1772
- 'checkbox': {
1773
- type: 'checkbox';
1774
- className?: string;
1775
- checked?: boolean | string;
1776
- defaultChecked?: boolean | string;
1777
- label?: string;
1778
- onChange?: ((...args: unknown[]) => unknown) | string;
1779
- };
1780
- 'chemistry-canvas': {
1781
- type: 'chemistry-canvas';
1782
- className?: string;
1783
- width?: number | string;
1784
- height?: number | string;
1785
- title?: string;
1786
- backgroundColor?: string;
1787
- atoms?: unknown[] | string;
1788
- bonds?: unknown[] | string;
1789
- arrows?: unknown[] | string;
1790
- shapes?: unknown[] | string;
1791
- interactive?: boolean | string;
1792
- animate?: boolean | string;
1793
- onShapeClick?: ((...args: unknown[]) => unknown) | string;
1794
- isLoading?: boolean | string;
1795
- error?: PatternPropValue | string;
1796
- };
1797
- 'choice-button': {
1798
- type: 'choice-button';
1799
- text: string;
1800
- index?: number | string;
1801
- assetUrl?: PatternPropValue | string;
1802
- icon?: unknown | string;
1803
- disabled?: boolean | string;
1804
- selected?: boolean | string;
1805
- onClick?: ((...args: unknown[]) => unknown) | string;
1806
- action?: string;
1807
- payload?: PatternPropValue | string;
1808
- className?: string;
1809
- };
1810
- 'code-block': {
1811
- type: 'code-block';
1812
- code?: string;
1813
- language?: string;
1814
- showCopyButton?: boolean | string;
1815
- showLanguageBadge?: boolean | string;
1816
- maxHeight?: string | number;
1817
- foldable?: boolean | string;
1818
- className?: string;
1819
- editable?: boolean | string;
1820
- onChange?: ((...args: unknown[]) => unknown) | string;
1821
- errorLines?: PatternPropValue | string;
1822
- title?: string;
1823
- mode?: string;
1824
- diff?: unknown[] | string;
1825
- oldValue?: string;
1826
- newValue?: string;
1827
- showLineNumbers?: boolean | string;
1828
- wordWrap?: boolean | string;
1829
- files?: unknown[] | string;
1830
- actions?: unknown[] | string;
1831
- isLoading?: boolean | string;
1832
- error?: PatternPropValue | string;
1833
- showCopy?: boolean | string;
1834
- };
1835
- 'code-runner-panel': {
1836
- type: 'code-runner-panel';
1837
- code: string;
1838
- language: string;
1839
- runnable?: boolean | string;
1840
- onRun?: ((...args: unknown[]) => unknown) | string;
1841
- runEvent?: string;
1842
- className?: string;
1843
- };
1844
- 'community-links': {
1845
- type: 'community-links';
1846
- github?: PatternPropValue | string;
1847
- discord?: PatternPropValue | string;
1848
- twitter?: PatternPropValue | string;
1849
- heading?: string;
1850
- subtitle?: string;
1851
- className?: string;
1852
- };
1853
- 'conditional-wrapper': {
1854
- type: 'conditional-wrapper';
1855
- condition?: unknown | string;
1856
- context: PatternPropValue | string;
1857
- children: unknown | string;
1858
- fallback?: unknown | string;
1859
- animate?: boolean | string;
1860
- };
1861
- 'confetti-effect': {
1862
- type: 'confetti-effect';
1863
- trigger: boolean | string;
1864
- duration?: number | string;
1865
- particleCount?: number | string;
1866
- className?: string;
1867
- };
1868
- 'confirm-dialog': {
1869
- type: 'confirm-dialog';
1870
- isOpen?: boolean | string;
1871
- onClose?: ((...args: unknown[]) => unknown) | string;
1872
- onConfirm?: ((...args: unknown[]) => unknown) | string;
1873
- title: string;
1874
- message?: string | unknown;
1875
- description?: string | unknown;
1876
- confirmText?: string;
1877
- confirmLabel?: string;
1878
- cancelText?: string;
1879
- cancelLabel?: string;
1880
- variant?: string;
1881
- size?: string;
1882
- isLoading?: boolean | string;
1883
- error?: PatternPropValue | string;
1884
- className?: string;
1885
- };
1886
- 'connection-block': {
1887
- type: 'connection-block';
1888
- content: string;
1889
- className?: string;
1890
- };
1891
- 'container': {
1892
- type: 'container';
1893
- size?: string;
1894
- maxWidth?: string;
1895
- padding?: string;
1896
- center?: boolean | string;
1897
- className?: string;
1898
- children?: unknown | string;
1899
- as?: unknown | string;
1900
- };
1901
- 'content-renderer': {
1902
- type: 'content-renderer';
1903
- className?: string;
1904
- isLoading?: boolean | string;
1905
- error?: PatternPropValue | string;
1906
- sortBy?: string;
1907
- sortDirection?: string;
1908
- searchValue?: string;
1909
- page?: number | string;
1910
- pageSize?: number | string;
1911
- totalCount?: number | string;
1912
- activeFilters?: PatternPropValue | string;
1913
- selectedIds?: unknown[] | string;
1914
- content?: string;
1915
- segments?: unknown[] | string;
1916
- direction?: string;
1917
- };
1918
- 'content-section': {
1919
- type: 'content-section';
1920
- children: unknown | string;
1921
- background?: string;
1922
- padding?: string;
1923
- id?: string;
1924
- className?: string;
1925
- };
1926
- 'control-button': {
1927
- type: 'control-button';
1928
- assetUrl?: PatternPropValue | string;
1929
- label?: string;
1930
- icon?: unknown | string;
1931
- size?: string;
1932
- shape?: string;
1933
- variant?: string;
1934
- onPress?: ((...args: unknown[]) => unknown) | string;
1935
- onRelease?: ((...args: unknown[]) => unknown) | string;
1936
- pressEvent?: string;
1937
- releaseEvent?: string;
1938
- pressed?: boolean | string;
1939
- disabled?: boolean | string;
1940
- className?: string;
1941
- };
1942
- 'control-grid': {
1943
- type: 'control-grid';
1944
- kind: string;
1945
- buttons?: unknown[] | string;
1946
- layout?: string;
1947
- includeDiagonals?: boolean | string;
1948
- onAction?: ((...args: unknown[]) => unknown) | string;
1949
- actionEvent?: string;
1950
- onDirection?: ((...args: unknown[]) => unknown) | string;
1951
- directionEvent?: string;
1952
- directionEvents?: PatternPropValue | string;
1953
- directionReleaseEvents?: PatternPropValue | string;
1954
- directionAssets?: PatternPropValue | string;
1955
- size?: string;
1956
- disabled?: boolean | string;
1957
- className?: string;
1958
- };
1959
- 'counter-template': {
1960
- type: 'counter-template';
1961
- entity: PatternPropValue | string;
1962
- className?: string;
1963
- onIncrement?: ((...args: unknown[]) => unknown) | string;
1964
- onDecrement?: ((...args: unknown[]) => unknown) | string;
1965
- onReset?: ((...args: unknown[]) => unknown) | string;
1966
- incrementEvent?: string;
1967
- decrementEvent?: string;
1968
- resetEvent?: string;
1969
- title?: string;
1970
- showReset?: boolean | string;
1971
- size?: string;
1972
- variant?: string;
1973
- };
1974
- 'cta-banner': {
1975
- type: 'cta-banner';
1976
- title: string;
1977
- subtitle?: string;
1978
- primaryAction?: PatternPropValue | string;
1979
- secondaryAction?: PatternPropValue | string;
1980
- background?: string;
1981
- align?: string;
1982
- className?: string;
1983
- };
1984
- 'dashboard-grid': {
1985
- type: 'dashboard-grid';
1986
- className?: string;
1987
- isLoading?: boolean | string;
1988
- error?: PatternPropValue | string;
1989
- sortBy?: string;
1990
- sortDirection?: string;
1991
- searchValue?: string;
1992
- page?: number | string;
1993
- pageSize?: number | string;
1994
- totalCount?: number | string;
1995
- activeFilters?: PatternPropValue | string;
1996
- selectedIds?: unknown[] | string;
1997
- columns?: number | string;
1998
- gap?: string;
1999
- cells: unknown[] | string;
2000
- };
2001
- 'dashboard-layout': {
2002
- type: 'dashboard-layout';
2003
- appName?: string;
2004
- logo?: unknown | string;
2005
- navItems?: unknown[] | string;
2006
- user?: PatternPropValue | string;
2007
- headerActions?: unknown | string;
2008
- showSearch?: boolean | string;
2009
- searchEvent?: string;
2010
- onSearchSubmit?: ((...args: unknown[]) => unknown) | string;
2011
- topBarActions?: unknown[] | string;
2012
- notifications?: unknown[] | string;
2013
- notificationClickEvent?: string;
2014
- onNotificationClick?: ((...args: unknown[]) => unknown) | string;
2015
- showThemeToggle?: boolean | string;
2016
- sidebarFooter?: unknown | string;
2017
- currentPath?: string;
2018
- onSignOut?: ((...args: unknown[]) => unknown) | string;
2019
- layoutMode?: string;
2020
- children?: unknown | string;
2021
- };
2022
- 'data-grid': {
2023
- type: 'data-grid';
2024
- dragGroup?: string;
2025
- accepts?: string;
2026
- sortable?: boolean | string;
2027
- dropEvent?: string;
2028
- reorderEvent?: string;
2029
- positionEvent?: string;
2030
- dndItemIdField?: string;
2031
- dndRoot?: boolean | string;
2032
- entity: PatternPropValue | unknown[] | string;
2033
- fields?: unknown[] | string;
2034
- columns?: unknown[] | string;
2035
- itemActions?: unknown[] | string;
2036
- maxInlineActions?: number | string;
2037
- scrollX?: boolean | string;
2038
- cols?: number | string;
2039
- gap?: string;
2040
- minCardWidth?: number | string;
2041
- className?: string;
2042
- isLoading?: boolean | string;
2043
- error?: PatternPropValue | string;
2044
- imageField?: string;
2045
- selectable?: boolean | string;
2046
- selectionEvent?: string;
2047
- infiniteScroll?: boolean | string;
2048
- loadMoreEvent?: string;
2049
- hasMore?: boolean | string;
2050
- children?: ((...args: unknown[]) => unknown) | string;
2051
- renderItem?: ((...args: unknown[]) => unknown) | string;
2052
- pageSize?: number | string;
2053
- look?: string;
2054
- };
2055
- 'data-list': {
2056
- type: 'data-list';
2057
- dragGroup?: string;
2058
- accepts?: string;
2059
- sortable?: boolean | string;
2060
- dropEvent?: string;
2061
- reorderEvent?: string;
2062
- positionEvent?: string;
2063
- dndItemIdField?: string;
2064
- dndRoot?: boolean | string;
2065
- entity: PatternPropValue | unknown[] | string;
2066
- fields?: unknown[] | string;
2067
- columns?: unknown[] | string;
2068
- itemActions?: unknown[] | string;
2069
- maxInlineActions?: number | string;
2070
- itemClickEvent?: string;
2071
- gap?: string;
2072
- variant?: string;
2073
- groupBy?: string;
2074
- senderField?: string;
2075
- currentUser?: string;
2076
- className?: string;
2077
- isLoading?: boolean | string;
2078
- error?: PatternPropValue | string;
2079
- reorderable?: boolean | string;
2080
- swipeLeftEvent?: string;
2081
- swipeLeftActions?: unknown[] | string;
2082
- swipeRightEvent?: string;
2083
- swipeRightActions?: unknown[] | string;
2084
- longPressEvent?: string;
2085
- infiniteScroll?: boolean | string;
2086
- loadMoreEvent?: string;
2087
- hasMore?: boolean | string;
2088
- children?: ((...args: unknown[]) => unknown) | string;
2089
- renderItem?: ((...args: unknown[]) => unknown) | string;
2090
- pageSize?: number | string;
2091
- look?: string;
2092
- };
2093
- 'date-range-picker': {
2094
- type: 'date-range-picker';
2095
- from?: string;
2096
- to?: string;
2097
- event?: string;
2098
- onChange?: ((...args: unknown[]) => unknown) | string;
2099
- presets?: unknown[] | string;
2100
- fromLabel?: string;
2101
- toLabel?: string;
2102
- className?: string;
2103
- };
2104
- 'date-range-selector': {
2105
- type: 'date-range-selector';
2106
- options?: unknown[] | string;
2107
- selected?: string;
2108
- onSelect?: ((...args: unknown[]) => unknown) | string;
2109
- className?: string;
2110
- };
2111
- 'day-cell': {
2112
- type: 'day-cell';
2113
- date?: unknown | string;
2114
- isToday?: boolean | string;
2115
- onClick?: ((...args: unknown[]) => unknown) | string;
2116
- className?: string;
2117
- };
2118
- 'detail-panel': {
2119
- type: 'detail-panel';
2120
- className?: string;
2121
- isLoading?: boolean | string;
2122
- error?: PatternPropValue | string;
2123
- sortBy?: string;
2124
- sortDirection?: string;
2125
- searchValue?: string;
2126
- page?: number | string;
2127
- pageSize?: number | string;
2128
- totalCount?: number | string;
2129
- activeFilters?: PatternPropValue | string;
2130
- selectedIds?: unknown[] | string;
2131
- entity?: PatternPropValue | string;
2132
- title?: string;
2133
- subtitle?: string;
2134
- status?: PatternPropValue | string;
2135
- avatar?: unknown | string;
2136
- sections?: unknown[] | string;
2137
- actions?: unknown[] | string;
2138
- footer?: unknown | string;
2139
- slideOver?: boolean | string;
2140
- fields: unknown[] | string;
2141
- fieldNames?: unknown[] | string;
2142
- initialData?: PatternPropValue | string;
2143
- mode?: string;
2144
- position?: string;
2145
- width?: string;
2146
- displayFields?: unknown[] | string;
2147
- showActions?: boolean | string;
2148
- };
2149
- 'dialog': {
2150
- type: 'dialog';
2151
- className?: string;
2152
- children?: unknown | string;
2153
- };
2154
- 'dialogue-bubble': {
2155
- type: 'dialogue-bubble';
2156
- speaker?: string;
2157
- text: string;
2158
- portrait?: PatternPropValue | string;
2159
- position?: string;
2160
- mood?: string;
2161
- revealedChars?: number | string;
2162
- className?: string;
2163
- };
2164
- 'divider': {
2165
- type: 'divider';
2166
- orientation?: string;
2167
- label?: string;
2168
- variant?: string;
2169
- className?: string;
2170
- };
2171
- 'doc-breadcrumb': {
2172
- type: 'doc-breadcrumb';
2173
- items: unknown[] | string;
2174
- className?: string;
2175
- };
2176
- 'doc-pagination': {
2177
- type: 'doc-pagination';
2178
- prev?: PatternPropValue | string;
2179
- next?: PatternPropValue | string;
2180
- className?: string;
2181
- };
2182
- 'doc-search': {
2183
- type: 'doc-search';
2184
- placeholder?: string;
2185
- onSearch?: ((...args: unknown[]) => unknown) | string;
2186
- className?: string;
2187
- };
2188
- 'doc-sidebar': {
2189
- type: 'doc-sidebar';
2190
- items: unknown[] | string;
2191
- className?: string;
2192
- };
2193
- 'doc-toc': {
2194
- type: 'doc-toc';
2195
- items: unknown[] | string;
2196
- activeId?: string;
2197
- className?: string;
2198
- };
2199
- 'document-viewer': {
2200
- type: 'document-viewer';
2201
- title?: string;
2202
- src?: unknown | string;
2203
- content?: string;
2204
- documentType?: string;
2205
- currentPage?: number | string;
2206
- totalPages?: number | string;
2207
- height?: number | string;
2208
- showToolbar?: boolean | string;
2209
- showDownload?: boolean | string;
2210
- showPrint?: boolean | string;
2211
- actions?: unknown[] | string;
2212
- documents?: unknown[] | string;
2213
- isLoading?: boolean | string;
2214
- error?: PatternPropValue | string;
2215
- className?: string;
2216
- };
2217
- 'draw-shape': {
2218
- type: 'draw-shape';
2219
- id?: string;
2220
- shape: string;
2221
- position: PatternPropValue | string;
2222
- anchor?: PatternPropValue | string;
2223
- width?: number | string;
2224
- height?: number | string;
2225
- radiusX?: number | string;
2226
- radiusY?: number | string;
2227
- offsetX?: number | string;
2228
- offsetY?: number | string;
2229
- points?: unknown[] | string;
2230
- fill?: string;
2231
- stroke?: string;
2232
- strokeWidth?: number | string;
2233
- opacity?: number | string;
2234
- };
2235
- 'draw-shape-layer': {
2236
- type: 'draw-shape-layer';
2237
- id?: string;
2238
- items: unknown[] | string;
2239
- };
2240
- 'draw-sprite': {
2241
- type: 'draw-sprite';
2242
- id?: string;
2243
- position: PatternPropValue | string;
2244
- asset: PatternPropValue | string;
2245
- anchor?: PatternPropValue | string;
2246
- width?: number | string;
2247
- height?: number | string;
2248
- frame?: PatternPropValue | string;
2249
- flipX?: boolean | string;
2250
- rotation?: number | string;
2251
- opacity?: number | string;
2252
- shadow?: PatternPropValue | string;
2253
- };
2254
- 'draw-sprite-layer': {
2255
- type: 'draw-sprite-layer';
2256
- id?: string;
2257
- items: unknown[] | string;
2258
- };
2259
- 'draw-text': {
2260
- type: 'draw-text';
2261
- id?: string;
2262
- text: string;
2263
- position: PatternPropValue | string;
2264
- anchor?: PatternPropValue | string;
2265
- offsetX?: number | string;
2266
- offsetY?: number | string;
2267
- color: string;
2268
- font?: string;
2269
- align?: PatternPropValue | string;
2270
- baseline?: PatternPropValue | string;
2271
- opacity?: number | string;
2272
- };
2273
- 'draw-text-layer': {
2274
- type: 'draw-text-layer';
2275
- id?: string;
2276
- items: unknown[] | string;
2277
- };
2278
- 'drawer': {
2279
- type: 'drawer';
2280
- isOpen?: boolean | string;
2281
- onClose?: ((...args: unknown[]) => unknown) | string;
2282
- title?: string;
2283
- children?: unknown | string;
2284
- footer?: unknown | string;
2285
- position?: string;
2286
- width?: string;
2287
- showCloseButton?: boolean | string;
2288
- closeOnOverlayClick?: boolean | string;
2289
- closeOnEscape?: boolean | string;
2290
- className?: string;
2291
- closeEvent?: string;
2292
- };
2293
- 'drawer-slot': {
2294
- type: 'drawer-slot';
2295
- children?: unknown | string;
2296
- title?: string;
2297
- position?: string;
2298
- size?: string;
2299
- className?: string;
2300
- isLoading?: boolean | string;
2301
- error?: PatternPropValue | string;
2302
- entity?: string;
2303
- sourceTrait?: string;
2304
- };
2305
- 'edge-decoration': {
2306
- type: 'edge-decoration';
2307
- variant?: string;
2308
- side?: string;
2309
- opacity?: number | string;
2310
- color?: string;
2311
- strokeWidth?: number | string;
2312
- width?: number | string;
2313
- className?: string;
2314
- };
2315
- 'empty-state': {
2316
- type: 'empty-state';
2317
- icon?: unknown | string;
2318
- title?: string;
2319
- message?: string;
2320
- description?: string;
2321
- actionLabel?: string;
2322
- onAction?: ((...args: unknown[]) => unknown) | string;
2323
- className?: string;
2324
- destructive?: boolean | string;
2325
- variant?: string;
2326
- actionEvent?: string;
2327
- look?: string;
2328
- };
2329
- 'entity-cards': {
2330
- type: 'entity-cards';
2331
- entity?: PatternPropValue | unknown[] | string;
2332
- className?: string;
2333
- isLoading?: boolean | string;
2334
- error?: PatternPropValue | string;
2335
- sortBy?: string;
2336
- sortDirection?: string;
2337
- searchValue?: string;
2338
- page?: number | string;
2339
- pageSize?: number | string;
2340
- totalCount?: number | string;
2341
- activeFilters?: PatternPropValue | string;
2342
- selectedIds?: unknown[] | string;
2343
- minCardWidth?: number | string;
2344
- maxCols?: number | string;
2345
- gap?: string;
2346
- alignItems?: string;
2347
- children?: unknown | string;
2348
- fields: unknown[] | string;
2349
- fieldNames?: unknown[] | string;
2350
- columns?: unknown[] | string;
2351
- itemActions?: unknown[] | string;
2352
- showTotal?: boolean | string;
2353
- showAvatar?: boolean | string;
2354
- variant?: string;
2355
- imageField?: string;
2356
- };
2357
- 'entity-list': {
2358
- type: 'entity-list';
2359
- className?: string;
2360
- isLoading?: boolean | string;
2361
- error?: PatternPropValue | string;
2362
- sortBy?: string;
2363
- sortDirection?: string;
2364
- searchValue?: string;
2365
- page?: number | string;
2366
- pageSize?: number | string;
2367
- totalCount?: number | string;
2368
- activeFilters?: PatternPropValue | string;
2369
- selectedIds?: unknown[] | string;
2370
- entity?: PatternPropValue | unknown[] | string;
2371
- entityType?: string;
2372
- selectable?: boolean | string;
2373
- itemActions?: ((...args: unknown[]) => unknown) | unknown[] | string;
2374
- showDividers?: boolean | string;
2375
- variant?: string;
2376
- emptyMessage?: string;
2377
- renderItem?: ((...args: unknown[]) => unknown) | string;
2378
- children?: unknown | string;
2379
- fields: unknown[] | string;
2380
- fieldNames?: unknown[] | string;
2381
- };
2382
- 'entity-table': {
2383
- type: 'entity-table';
2384
- className?: string;
2385
- isLoading?: boolean | string;
2386
- error?: PatternPropValue | string;
2387
- sortBy?: string;
2388
- sortDirection?: string;
2389
- searchValue?: string;
2390
- page?: number | string;
2391
- pageSize?: number | string;
2392
- totalCount?: number | string;
2393
- activeFilters?: PatternPropValue | string;
2394
- selectedIds?: unknown[] | string;
2395
- entity?: PatternPropValue | unknown[] | string;
2396
- fields: unknown[] | string;
2397
- columns?: unknown[] | string;
2398
- itemActions?: unknown[] | string;
2399
- emptyIcon?: unknown | string;
2400
- emptyTitle?: string;
2401
- emptyDescription?: string;
2402
- emptyAction?: PatternPropValue | string;
2403
- selectable?: boolean | string;
2404
- searchable?: boolean | string;
2405
- searchPlaceholder?: string;
2406
- rowActions?: unknown[] | string;
2407
- bulkActions?: unknown[] | string;
2408
- headerActions?: unknown | string;
2409
- showTotal?: boolean | string;
2410
- look?: string;
2411
- };
2412
- 'error-boundary': {
2413
- type: 'error-boundary';
2414
- children: unknown | string;
2415
- fallback?: unknown | ((...args: unknown[]) => unknown) | string;
2416
- className?: string;
2417
- onError?: ((...args: unknown[]) => unknown) | string;
2418
- };
2419
- 'error-state': {
2420
- type: 'error-state';
2421
- title?: string;
2422
- message?: string;
2423
- description?: string;
2424
- onRetry?: ((...args: unknown[]) => unknown) | string;
2425
- className?: string;
2426
- retryEvent?: string;
2427
- };
2428
- 'feature-card': {
2429
- type: 'feature-card';
2430
- icon?: unknown | string;
2431
- title: string;
2432
- description: string;
2433
- href?: string;
2434
- linkLabel?: string;
2435
- variant?: string;
2436
- size?: string;
2437
- className?: string;
2438
- };
2439
- 'feature-detail-page-template': {
2440
- type: 'feature-detail-page-template';
2441
- entity: PatternPropValue | string;
2442
- className?: string;
2443
- };
2444
- 'feature-grid': {
2445
- type: 'feature-grid';
2446
- items: unknown[] | string;
2447
- columns?: number | string;
2448
- gap?: string;
2449
- className?: string;
2450
- };
2451
- 'feature-grid-organism': {
2452
- type: 'feature-grid-organism';
2453
- className?: string;
2454
- isLoading?: boolean | string;
2455
- error?: PatternPropValue | string;
2456
- sortBy?: string;
2457
- sortDirection?: string;
2458
- searchValue?: string;
2459
- page?: number | string;
2460
- pageSize?: number | string;
2461
- totalCount?: number | string;
2462
- activeFilters?: PatternPropValue | string;
2463
- selectedIds?: unknown[] | string;
2464
- entity?: PatternPropValue | unknown[] | string;
2465
- columns?: number | string;
2466
- heading?: string;
2467
- subtitle?: string;
2468
- };
2469
- 'file-tree': {
2470
- type: 'file-tree';
2471
- tree: unknown[] | string;
2472
- selectedPath?: string;
2473
- onFileSelect?: ((...args: unknown[]) => unknown) | string;
2474
- className?: string;
2475
- indent?: number | string;
2476
- };
2477
- 'filter-group': {
2478
- type: 'filter-group';
2479
- entity: string;
2480
- filters: unknown[] | string;
2481
- onFilterChange?: ((...args: unknown[]) => unknown) | string;
2482
- onClearAll?: ((...args: unknown[]) => unknown) | string;
2483
- className?: string;
2484
- variant?: string;
2485
- showIcon?: boolean | string;
2486
- query?: string;
2487
- isLoading?: boolean | string;
2488
- look?: string;
2489
- };
2490
- 'filter-pill': {
2491
- type: 'filter-pill';
2492
- className?: string;
2493
- variant?: string;
2494
- size?: string;
2495
- label?: string | number;
2496
- icon?: unknown | string;
2497
- onRemove?: ((...args: unknown[]) => unknown) | string;
2498
- removable?: boolean | string;
2499
- onClick?: ((...args: unknown[]) => unknown) | string;
2500
- clickEvent?: string;
2501
- removeEvent?: string;
2502
- };
2503
- 'flex': {
2504
- type: 'flex';
2505
- direction?: string;
2506
- wrap?: string;
2507
- align?: string;
2508
- justify?: string;
2509
- gap?: string;
2510
- inline?: boolean | string;
2511
- grow?: boolean | number | string;
2512
- shrink?: boolean | number | string;
2513
- basis?: string | number;
2514
- className?: string;
2515
- children: unknown | string;
2516
- as?: unknown | string;
2517
- };
2518
- 'flip-card': {
2519
- type: 'flip-card';
2520
- front: unknown | string;
2521
- back: unknown | string;
2522
- flipped?: boolean | string;
2523
- onFlip?: ((...args: unknown[]) => unknown) | string;
2524
- className?: string;
2525
- height?: string;
2526
- };
2527
- 'flip-container': {
2528
- type: 'flip-container';
2529
- flipped: boolean | string;
2530
- className?: string;
2531
- children: unknown | string;
2532
- onClick?: ((...args: unknown[]) => unknown) | string;
2533
- };
2534
- 'floating-action-button': {
2535
- type: 'floating-action-button';
2536
- action?: string;
2537
- actionPayload?: PatternPropValue | string;
2538
- actions?: unknown[] | string;
2539
- icon?: unknown | string;
2540
- onClick?: ((...args: unknown[]) => unknown) | string;
2541
- variant?: string;
2542
- label?: string;
2543
- position?: string;
2544
- className?: string;
2545
- };
2546
- 'form': {
2547
- type: 'form';
2548
- children?: unknown | string;
2549
- onSubmit?: string;
2550
- onCancel?: string;
2551
- layout?: string;
2552
- gap?: string;
2553
- className?: string;
2554
- entity?: PatternPropValue | unknown[] | string;
2555
- mode?: string;
2556
- fields: unknown[] | string;
2557
- initialData?: PatternPropValue | string;
2558
- isLoading?: boolean | string;
2559
- error?: PatternPropValue | string;
2560
- submitLabel?: string;
2561
- cancelLabel?: string;
2562
- showCancel?: boolean | string;
2563
- showSubmit?: boolean | string;
2564
- title?: string;
2565
- submitEvent?: string;
2566
- cancelEvent?: string;
2567
- relationsData?: PatternPropValue | string;
2568
- relationsLoading?: PatternPropValue | string;
2569
- conditionalFields?: PatternPropValue | boolean | string;
2570
- hiddenCalculations?: unknown[] | boolean | string;
2571
- violationTriggers?: unknown[] | boolean | string;
2572
- evaluationContext?: PatternPropValue | string;
2573
- sections?: unknown[] | string;
2574
- onFieldChange?: ((...args: unknown[]) => unknown) | string;
2575
- configPath?: string;
2576
- repeatable?: boolean | string;
2577
- };
2578
- 'form-actions': {
2579
- type: 'form-actions';
2580
- className?: string;
2581
- isLoading?: boolean | string;
2582
- error?: PatternPropValue | string;
2583
- sortBy?: string;
2584
- sortDirection?: string;
2585
- searchValue?: string;
2586
- page?: number | string;
2587
- pageSize?: number | string;
2588
- totalCount?: number | string;
2589
- activeFilters?: PatternPropValue | string;
2590
- selectedIds?: unknown[] | string;
2591
- children: unknown | string;
2592
- sticky?: boolean | string;
2593
- align?: string;
2594
- };
2595
- 'form-field': {
2596
- type: 'form-field';
2597
- label: string;
2598
- required?: boolean | string;
2599
- error?: string;
2600
- hint?: string;
2601
- className?: string;
2602
- children: unknown | string;
2603
- };
2604
- 'form-layout': {
2605
- type: 'form-layout';
2606
- className?: string;
2607
- isLoading?: boolean | string;
2608
- error?: PatternPropValue | string;
2609
- sortBy?: string;
2610
- sortDirection?: string;
2611
- searchValue?: string;
2612
- page?: number | string;
2613
- pageSize?: number | string;
2614
- totalCount?: number | string;
2615
- activeFilters?: PatternPropValue | string;
2616
- selectedIds?: unknown[] | string;
2617
- children: unknown | string;
2618
- dividers?: boolean | string;
2619
- };
2620
- 'form-section': {
2621
- type: 'form-section';
2622
- children?: unknown | string;
2623
- onSubmit?: string;
2624
- onCancel?: string;
2625
- layout?: string;
2626
- gap?: string;
2627
- className?: string;
2628
- entity?: PatternPropValue | unknown[] | string;
2629
- mode?: string;
2630
- fields: unknown[] | string;
2631
- initialData?: PatternPropValue | string;
2632
- isLoading?: boolean | string;
2633
- error?: PatternPropValue | string;
2634
- submitLabel?: string;
2635
- cancelLabel?: string;
2636
- showCancel?: boolean | string;
2637
- showSubmit?: boolean | string;
2638
- title?: string;
2639
- submitEvent?: string;
2640
- cancelEvent?: string;
2641
- relationsData?: PatternPropValue | string;
2642
- relationsLoading?: PatternPropValue | string;
2643
- conditionalFields?: PatternPropValue | boolean | string;
2644
- hiddenCalculations?: unknown[] | boolean | string;
2645
- violationTriggers?: unknown[] | boolean | string;
2646
- evaluationContext?: PatternPropValue | string;
2647
- sections?: unknown[] | string;
2648
- onFieldChange?: ((...args: unknown[]) => unknown) | string;
2649
- configPath?: string;
2650
- repeatable?: boolean | string;
2651
- };
2652
- 'form-section-header': {
2653
- type: 'form-section-header';
2654
- title: string;
2655
- subtitle?: string;
2656
- isCollapsed?: boolean | string;
2657
- onToggle?: ((...args: unknown[]) => unknown) | string;
2658
- badge?: string;
2659
- badgeVariant?: string;
2660
- icon?: unknown | string;
2661
- hasErrors?: boolean | string;
2662
- isComplete?: boolean | string;
2663
- className?: string;
2664
- };
2665
- 'game-audio-toggle': {
2666
- type: 'game-audio-toggle';
2667
- size?: string;
2668
- className?: string;
2669
- isLoading?: boolean | string;
2670
- error?: PatternPropValue | string;
2671
- onAsset?: PatternPropValue | string;
2672
- offAsset?: PatternPropValue | string;
2673
- };
2674
- 'game-hud': {
2675
- type: 'game-hud';
2676
- position?: string;
2677
- stats?: unknown[] | string;
2678
- items?: unknown[] | string;
2679
- elements?: unknown[] | string;
2680
- size?: string;
2681
- className?: string;
2682
- transparent?: boolean | string;
2683
- };
2684
- 'game-icon': {
2685
- type: 'game-icon';
2686
- assetUrl?: PatternPropValue | string;
2687
- icon: unknown | string;
2688
- size?: number | string;
2689
- alt?: string;
2690
- className?: string;
2691
- };
2692
- 'game-menu': {
2693
- type: 'game-menu';
2694
- title: string;
2695
- subtitle?: string;
2696
- options?: unknown[] | string;
2697
- menuItems?: unknown[] | string;
2698
- onSelect?: ((...args: unknown[]) => unknown) | string;
2699
- background?: string;
2700
- logo?: PatternPropValue | string;
2701
- className?: string;
2702
- };
2703
- 'game-shell': {
2704
- type: 'game-shell';
2705
- appName?: string;
2706
- hud?: unknown | string;
2707
- addons?: unknown | string;
2708
- controls?: unknown | string;
2709
- overlay?: unknown | string;
2710
- className?: string;
2711
- showTopBar?: boolean | string;
2712
- children?: unknown | string;
2713
- backgroundAsset?: PatternPropValue | string;
2714
- hudBackgroundAsset?: PatternPropValue | string;
2715
- fontFamily?: string;
2716
- };
2717
- 'generic-app-template': {
2718
- type: 'generic-app-template';
2719
- entity: PatternPropValue | string;
2720
- className?: string;
2721
- title: string;
2722
- subtitle?: string;
2723
- children: unknown | string;
2724
- headerActions?: unknown | string;
2725
- footer?: unknown | string;
2726
- };
2727
- 'geometric-pattern': {
2728
- type: 'geometric-pattern';
2729
- variant?: string;
2730
- mode?: string;
2731
- opacity?: number | string;
2732
- color?: string;
2733
- scale?: number | string;
2734
- strokeWidth?: number | string;
2735
- children?: unknown | string;
2736
- className?: string;
2737
- };
2738
- 'gradient-divider': {
2739
- type: 'gradient-divider';
2740
- color?: string;
2741
- className?: string;
2742
- };
2743
- 'graph-canvas': {
2744
- type: 'graph-canvas';
2745
- title?: string;
2746
- nodes?: unknown[] | string;
2747
- edges?: unknown[] | string;
2748
- height?: number | string;
2749
- showLabels?: boolean | string;
2750
- interactive?: boolean | string;
2751
- draggable?: boolean | string;
2752
- actions?: unknown[] | string;
2753
- onNodeClick?: ((...args: unknown[]) => unknown) | string;
2754
- onNodeDoubleClick?: ((...args: unknown[]) => unknown) | string;
2755
- nodeClickEvent?: string;
2756
- selectedNodeId?: string;
2757
- repulsion?: number | string;
2758
- linkDistance?: number | string;
2759
- nodeSpacing?: number | string;
2760
- linkOpacity?: number | string;
2761
- layout?: string;
2762
- isLoading?: boolean | string;
2763
- error?: PatternPropValue | string;
2764
- className?: string;
2765
- };
2766
- 'graph-view': {
2767
- type: 'graph-view';
2768
- nodes: unknown[] | string;
2769
- edges: unknown[] | string;
2770
- onNodeClick?: ((...args: unknown[]) => unknown) | string;
2771
- onNodeHover?: ((...args: unknown[]) => unknown) | string;
2772
- width?: number | string;
2773
- height?: number | string;
2774
- className?: string;
2775
- showLabels?: boolean | string;
2776
- zoomToFit?: boolean | string;
2777
- };
2778
- 'grid': {
2779
- type: 'grid';
2780
- cols?: number | string | PatternPropValue;
2781
- rows?: number | string;
2782
- gap?: string;
2783
- rowGap?: string;
2784
- colGap?: string;
2785
- alignItems?: string;
2786
- justifyItems?: string;
2787
- flow?: string;
2788
- className?: string;
2789
- style?: PatternPropValue | string;
2790
- children: unknown | string;
2791
- as?: unknown | string;
2792
- };
2793
- 'header': {
2794
- type: 'header';
2795
- logo?: unknown | string;
2796
- logoSrc?: unknown | string;
2797
- brandName?: string;
2798
- navigationItems?: unknown[] | string;
2799
- showMenuToggle?: boolean | string;
2800
- isMenuOpen?: boolean | string;
2801
- onMenuToggle?: ((...args: unknown[]) => unknown) | string;
2802
- showSearch?: boolean | string;
2803
- searchPlaceholder?: string;
2804
- onSearch?: ((...args: unknown[]) => unknown) | string;
2805
- userAvatar?: PatternPropValue | string;
2806
- userName?: string;
2807
- onUserClick?: ((...args: unknown[]) => unknown) | string;
2808
- actions?: unknown | string;
2809
- sticky?: boolean | string;
2810
- variant?: string;
2811
- look?: string;
2812
- onLogoClick?: ((...args: unknown[]) => unknown) | string;
2813
- className?: string;
2814
- isLoading?: boolean | string;
2815
- error?: PatternPropValue | string;
2816
- };
2817
- 'health-bar': {
2818
- type: 'health-bar';
2819
- current: number | string;
2820
- max: number | string;
2821
- format?: string;
2822
- level?: number | string;
2823
- showLabel?: boolean | string;
2824
- labelSuffix?: string;
2825
- size?: string;
2826
- className?: string;
2827
- animated?: boolean | string;
2828
- frameAsset?: PatternPropValue | string;
2829
- fillAsset?: PatternPropValue | string;
2830
- };
2831
- 'hero-organism': {
2832
- type: 'hero-organism';
2833
- className?: string;
2834
- isLoading?: boolean | string;
2835
- error?: PatternPropValue | string;
2836
- sortBy?: string;
2837
- sortDirection?: string;
2838
- searchValue?: string;
2839
- page?: number | string;
2840
- pageSize?: number | string;
2841
- totalCount?: number | string;
2842
- activeFilters?: PatternPropValue | string;
2843
- selectedIds?: unknown[] | string;
2844
- entity?: PatternPropValue | string;
2845
- children?: unknown | string;
2846
- };
2847
- 'hero-section': {
2848
- type: 'hero-section';
2849
- tag?: string;
2850
- tagVariant?: string;
2851
- title: string;
2852
- titleAccent?: string;
2853
- subtitle: string;
2854
- primaryAction?: PatternPropValue | string;
2855
- secondaryAction?: PatternPropValue | string;
2856
- installCommand?: string;
2857
- image?: PatternPropValue | string;
2858
- imagePosition?: string;
2859
- background?: string;
2860
- align?: string;
2861
- backgroundElement?: unknown | string;
2862
- children?: unknown | string;
2863
- className?: string;
2864
- };
2865
- 'hstack': {
2866
- type: 'hstack';
2867
- };
2868
- 'icon': {
2869
- type: 'icon';
2870
- icon?: unknown | string;
2871
- name?: string;
2872
- size?: string;
2873
- color?: string;
2874
- animation?: string;
2875
- className?: string;
2876
- strokeWidth?: number | string;
2877
- style?: PatternPropValue | string;
2878
- };
2879
- 'infinite-scroll-sentinel': {
2880
- type: 'infinite-scroll-sentinel';
2881
- loadMoreEvent: string;
2882
- loadMorePayload?: PatternPropValue | string;
2883
- isLoading?: boolean | string;
2884
- hasMore?: boolean | string;
2885
- threshold?: string;
2886
- className?: string;
2887
- };
2888
- 'input': {
2889
- type: 'input';
2890
- className?: string;
2891
- placeholder?: string;
2892
- value?: string | number;
2893
- disabled?: boolean | string;
2894
- action?: string;
2895
- inputType?: string;
2896
- label?: string;
2897
- helperText?: string;
2898
- error?: string;
2899
- leftIcon?: unknown | string;
2900
- rightIcon?: unknown | string;
2901
- icon?: unknown | string;
2902
- clearable?: boolean | string;
2903
- onClear?: ((...args: unknown[]) => unknown) | string;
2904
- options?: unknown[] | string;
2905
- rows?: number | string;
2906
- onChange?: ((...args: unknown[]) => unknown) | string;
2907
- };
2908
- 'input-group': {
2909
- type: 'input-group';
2910
- leftAddon?: unknown | unknown | string;
2911
- rightAddon?: unknown | unknown | string;
2912
- className?: string;
2913
- };
2914
- 'install-box': {
2915
- type: 'install-box';
2916
- command: string;
2917
- label?: string;
2918
- className?: string;
2919
- };
2920
- 'jazari-state-machine': {
2921
- type: 'jazari-state-machine';
2922
- className?: string;
2923
- isLoading?: boolean | string;
2924
- error?: PatternPropValue | string;
2925
- schema?: PatternPropValue | string;
2926
- trait?: PatternPropValue | string;
2927
- traitIndex?: number | string;
2928
- entityFields?: unknown[] | string;
2929
- direction?: string;
2930
- };
2931
- 'label': {
2932
- type: 'label';
2933
- className?: string;
2934
- text?: string;
2935
- htmlFor?: string;
2936
- required?: boolean | string;
2937
- };
2938
- 'landing-page-template': {
2939
- type: 'landing-page-template';
2940
- entity: PatternPropValue | string;
2941
- className?: string;
2942
- variant?: string;
2943
- featureColumns?: number | string;
2944
- };
2945
- 'law-reference-tooltip': {
2946
- type: 'law-reference-tooltip';
2947
- reference: PatternPropValue | string;
2948
- children: unknown | string;
2949
- position?: string;
2950
- className?: string;
2951
- };
2952
- 'learning-canvas': {
2953
- type: 'learning-canvas';
2954
- className?: string;
2955
- width?: number | string;
2956
- height?: number | string;
2957
- backgroundColor?: string;
2958
- shapes?: unknown[] | string;
2959
- interactive?: boolean | string;
2960
- animate?: boolean | string;
2961
- onShapeClick?: ((...args: unknown[]) => unknown) | string;
2962
- onShapeHover?: ((...args: unknown[]) => unknown) | string;
2963
- isLoading?: boolean | string;
2964
- error?: PatternPropValue | string;
2965
- };
2966
- 'lightbox': {
2967
- type: 'lightbox';
2968
- images: unknown[] | string;
2969
- currentIndex?: number | string;
2970
- isOpen?: boolean | string;
2971
- showCounter?: boolean | string;
2972
- closeAction?: string;
2973
- onClose?: ((...args: unknown[]) => unknown) | string;
2974
- onIndexChange?: ((...args: unknown[]) => unknown) | string;
2975
- className?: string;
2976
- };
2977
- 'likert-scale': {
2978
- type: 'likert-scale';
2979
- question?: string;
2980
- options?: unknown[] | string;
2981
- value?: number | string;
2982
- onChange?: ((...args: unknown[]) => unknown) | string;
2983
- changeEvent?: string;
2984
- disabled?: boolean | string;
2985
- size?: string;
2986
- variant?: string;
2987
- className?: string;
2988
- };
2989
- 'line-chart': {
2990
- type: 'line-chart';
2991
- data: unknown[] | string;
2992
- width?: number | string;
2993
- height?: number | string;
2994
- showGrid?: boolean | string;
2995
- showValues?: boolean | string;
2996
- showArea?: boolean | string;
2997
- lineColor?: string;
2998
- areaColor?: string;
2999
- className?: string;
3000
- };
3001
- 'loading-state': {
3002
- type: 'loading-state';
3003
- title?: string;
3004
- message?: string;
3005
- className?: string;
3006
- };
3007
- 'map-view': {
3008
- type: 'map-view';
3009
- markers?: unknown[] | string;
3010
- routes?: unknown[] | string;
3011
- centerLat?: number | string;
3012
- centerLng?: number | string;
3013
- zoom?: number | string;
3014
- height?: string;
3015
- onMarkerClick?: ((...args: unknown[]) => unknown) | string;
3016
- onMapClick?: ((...args: unknown[]) => unknown) | string;
3017
- mapClickEvent?: string;
3018
- markerClickEvent?: string;
3019
- showClickedPin?: boolean | string;
3020
- className?: string;
3021
- showAttribution?: boolean | string;
3022
- };
3023
- 'markdown-content': {
3024
- type: 'markdown-content';
3025
- content: string;
3026
- direction?: string;
3027
- className?: string;
3028
- };
3029
- 'marketing-footer': {
3030
- type: 'marketing-footer';
3031
- columns: unknown[] | string;
3032
- copyright?: string;
3033
- logo?: PatternPropValue | string;
3034
- className?: string;
3035
- };
3036
- 'marketing-stat-card': {
3037
- type: 'marketing-stat-card';
3038
- value: string;
3039
- label: string;
3040
- size?: string;
3041
- className?: string;
3042
- };
3043
- 'master-detail': {
3044
- type: 'master-detail';
3045
- className?: string;
3046
- isLoading?: boolean | string;
3047
- error?: PatternPropValue | string;
3048
- sortBy?: string;
3049
- sortDirection?: string;
3050
- searchValue?: string;
3051
- page?: number | string;
3052
- pageSize?: number | string;
3053
- totalCount?: number | string;
3054
- activeFilters?: PatternPropValue | string;
3055
- selectedIds?: unknown[] | string;
3056
- entity?: PatternPropValue | unknown[] | string;
3057
- masterFields: unknown[] | string;
3058
- detailFields?: unknown[] | string;
3059
- loading?: boolean | string;
3060
- };
3061
- 'master-detail-layout': {
3062
- type: 'master-detail-layout';
3063
- master: unknown | string;
3064
- detail: unknown | string;
3065
- emptyDetail?: unknown | string;
3066
- hasSelection?: boolean | string;
3067
- masterWidth?: string;
3068
- className?: string;
3069
- masterClassName?: string;
3070
- detailClassName?: string;
3071
- };
3072
- 'math-canvas': {
3073
- type: 'math-canvas';
3074
- className?: string;
3075
- width?: number | string;
3076
- height?: number | string;
3077
- title?: string;
3078
- xMin?: number | string;
3079
- xMax?: number | string;
3080
- yMin?: number | string;
3081
- yMax?: number | string;
3082
- showAxes?: boolean | string;
3083
- showGrid?: boolean | string;
3084
- gridStep?: number | string;
3085
- curves?: unknown[] | string;
3086
- points?: unknown[] | string;
3087
- vectors?: unknown[] | string;
3088
- shapes?: unknown[] | string;
3089
- interactive?: boolean | string;
3090
- animate?: boolean | string;
3091
- onShapeClick?: ((...args: unknown[]) => unknown) | string;
3092
- isLoading?: boolean | string;
3093
- error?: PatternPropValue | string;
3094
- };
3095
- 'matrix-question': {
3096
- type: 'matrix-question';
3097
- title?: string;
3098
- rows: unknown[] | string;
3099
- columns?: unknown[] | string;
3100
- values?: PatternPropValue | string;
3101
- onChange?: ((...args: unknown[]) => unknown) | string;
3102
- changeEvent?: string;
3103
- disabled?: boolean | string;
3104
- size?: string;
3105
- className?: string;
3106
- };
3107
- 'media-gallery': {
3108
- type: 'media-gallery';
3109
- className?: string;
3110
- isLoading?: boolean | string;
3111
- error?: PatternPropValue | string;
3112
- sortBy?: string;
3113
- sortDirection?: string;
3114
- searchValue?: string;
3115
- page?: number | string;
3116
- pageSize?: number | string;
3117
- totalCount?: number | string;
3118
- activeFilters?: PatternPropValue | string;
3119
- selectedIds?: unknown[] | string;
3120
- entity?: PatternPropValue | unknown[] | string;
3121
- title?: string;
3122
- items?: unknown[] | string;
3123
- columns?: number | string;
3124
- selectable?: boolean | string;
3125
- selectedItems?: unknown[] | string;
3126
- selectionEvent?: string;
3127
- showUpload?: boolean | string;
3128
- actions?: unknown[] | string;
3129
- aspectRatio?: string;
3130
- };
3131
- 'menu': {
3132
- type: 'menu';
3133
- trigger: unknown | string;
3134
- items: unknown[] | string;
3135
- position?: string;
3136
- className?: string;
3137
- header?: unknown | string;
3138
- footer?: unknown | string;
3139
- };
3140
- 'meter': {
3141
- type: 'meter';
3142
- value: number | string;
3143
- min?: number | string;
3144
- max?: number | string;
3145
- label?: string;
3146
- unit?: string;
3147
- variant?: string;
3148
- thresholds?: unknown[] | string;
3149
- segments?: number | string;
3150
- showValue?: boolean | string;
3151
- size?: string;
3152
- actions?: unknown[] | string;
3153
- isLoading?: boolean | string;
3154
- error?: PatternPropValue | string;
3155
- className?: string;
3156
- };
3157
- 'modal': {
3158
- type: 'modal';
3159
- isOpen?: boolean | string;
3160
- onClose?: ((...args: unknown[]) => unknown) | string;
3161
- title?: string;
3162
- children?: unknown | string;
3163
- footer?: unknown | string;
3164
- size?: string;
3165
- showCloseButton?: boolean | string;
3166
- closeOnOverlayClick?: boolean | string;
3167
- closeOnEscape?: boolean | string;
3168
- className?: string;
3169
- closeEvent?: string;
3170
- swipeDownToClose?: boolean | string;
3171
- look?: string;
3172
- };
3173
- 'modal-slot': {
3174
- type: 'modal-slot';
3175
- children?: unknown | string;
3176
- title?: string;
3177
- size?: string;
3178
- className?: string;
3179
- isLoading?: boolean | string;
3180
- error?: PatternPropValue | string;
3181
- entity?: string;
3182
- sourceTrait?: string;
3183
- };
3184
- 'module-card': {
3185
- type: 'module-card';
3186
- data: PatternPropValue | string;
3187
- };
3188
- 'navigation': {
3189
- type: 'navigation';
3190
- items: unknown[] | string;
3191
- orientation?: string;
3192
- className?: string;
3193
- isLoading?: boolean | string;
3194
- error?: PatternPropValue | string;
3195
- };
3196
- 'notification': {
3197
- type: 'notification';
3198
- variant?: string;
3199
- message: string;
3200
- title?: string;
3201
- duration?: number | string;
3202
- dismissible?: boolean | string;
3203
- onDismiss?: ((...args: unknown[]) => unknown) | string;
3204
- actionLabel?: string;
3205
- onAction?: ((...args: unknown[]) => unknown) | string;
3206
- badge?: string | number;
3207
- className?: string;
3208
- dismissEvent?: string;
3209
- actionEvent?: string;
3210
- };
3211
- 'number-stepper': {
3212
- type: 'number-stepper';
3213
- value?: number | string;
3214
- min?: number | string;
3215
- max?: number | string;
3216
- step?: number | string;
3217
- size?: string;
3218
- disabled?: boolean | string;
3219
- onChange?: ((...args: unknown[]) => unknown) | string;
3220
- action?: string;
3221
- actionPayload?: PatternPropValue | string;
3222
- className?: string;
3223
- label?: string;
3224
- };
3225
- 'option-constraint-group': {
3226
- type: 'option-constraint-group';
3227
- groupId: string;
3228
- title: string;
3229
- description?: string;
3230
- options: unknown[] | string;
3231
- constraint?: PatternPropValue | string;
3232
- selected?: unknown[] | string;
3233
- onChange?: ((...args: unknown[]) => unknown) | string;
3234
- changeEvent?: string;
3235
- size?: string;
3236
- className?: string;
3237
- };
3238
- 'orbital-visualization': {
3239
- type: 'orbital-visualization';
3240
- schema?: PatternPropValue | string;
3241
- complexity?: number | string;
3242
- size?: string;
3243
- showLabel?: boolean | string;
3244
- animated?: boolean | string;
3245
- onClick?: ((...args: unknown[]) => unknown) | string;
3246
- className?: string;
3247
- isLoading?: boolean | string;
3248
- error?: PatternPropValue | string;
3249
- };
3250
- 'overlay': {
3251
- type: 'overlay';
3252
- isVisible?: boolean | string;
3253
- onClick?: ((...args: unknown[]) => unknown) | string;
3254
- className?: string;
3255
- blur?: boolean | string;
3256
- action?: string;
3257
- };
3258
- 'page-header': {
3259
- type: 'page-header';
3260
- title?: string | number;
3261
- subtitle?: string | number;
3262
- showBack?: boolean | string;
3263
- backEvent?: string;
3264
- breadcrumbs?: unknown[] | string;
3265
- status?: PatternPropValue | string;
3266
- actions?: unknown[] | string;
3267
- isLoading?: boolean | string;
3268
- error?: PatternPropValue | string;
3269
- tabs?: unknown[] | string;
3270
- activeTab?: string;
3271
- onTabChange?: ((...args: unknown[]) => unknown) | string;
3272
- children?: unknown | string;
3273
- className?: string;
3274
- };
3275
- 'pagination': {
3276
- type: 'pagination';
3277
- currentPage: number | string;
3278
- totalPages: number | string;
3279
- onPageChange?: ((...args: unknown[]) => unknown) | string;
3280
- showPageSize?: boolean | string;
3281
- pageSizeOptions?: unknown[] | string;
3282
- pageSize?: number | string;
3283
- onPageSizeChange?: ((...args: unknown[]) => unknown) | string;
3284
- showJumpToPage?: boolean | string;
3285
- showTotal?: boolean | string;
3286
- totalItems?: number | string;
3287
- maxVisiblePages?: number | string;
3288
- className?: string;
3289
- pageChangeEvent?: string;
3290
- pageSizeChangeEvent?: string;
3291
- };
3292
- 'pattern-tile': {
3293
- type: 'pattern-tile';
3294
- variant?: string;
3295
- size?: number | string;
3296
- color?: string;
3297
- strokeWidth?: number | string;
3298
- className?: string;
3299
- };
3300
- 'physics-canvas': {
3301
- type: 'physics-canvas';
3302
- className?: string;
3303
- width?: number | string;
3304
- height?: number | string;
3305
- title?: string;
3306
- backgroundColor?: string;
3307
- bodies?: unknown[] | string;
3308
- constraints?: unknown[] | string;
3309
- showVelocity?: boolean | string;
3310
- showForces?: boolean | string;
3311
- velocityScale?: number | string;
3312
- forceScale?: number | string;
3313
- shapes?: unknown[] | string;
3314
- interactive?: boolean | string;
3315
- animate?: boolean | string;
3316
- onShapeClick?: ((...args: unknown[]) => unknown) | string;
3317
- isLoading?: boolean | string;
3318
- error?: PatternPropValue | string;
3319
- };
3320
- 'popover': {
3321
- type: 'popover';
3322
- content: unknown | string;
3323
- children: unknown | string;
3324
- position?: string;
3325
- trigger?: string;
3326
- showArrow?: boolean | string;
3327
- className?: string;
3328
- };
3329
- 'positioned-canvas': {
3330
- type: 'positioned-canvas';
3331
- items: PatternPropValue | unknown[] | string;
3332
- width?: number | string;
3333
- height?: number | string;
3334
- selectedId?: string;
3335
- editable?: boolean | string;
3336
- onSelect?: ((...args: unknown[]) => unknown) | string;
3337
- onMove?: ((...args: unknown[]) => unknown) | string;
3338
- selectEvent?: string;
3339
- moveEvent?: string;
3340
- className?: string;
3341
- };
3342
- 'pricing-card': {
3343
- type: 'pricing-card';
3344
- name: string;
3345
- price: string;
3346
- description?: string;
3347
- features: unknown[] | string;
3348
- action: PatternPropValue | string;
3349
- highlighted?: boolean | string;
3350
- badge?: string;
3351
- className?: string;
3352
- };
3353
- 'pricing-grid': {
3354
- type: 'pricing-grid';
3355
- plans: unknown[] | string;
3356
- className?: string;
3357
- };
3358
- 'pricing-organism': {
3359
- type: 'pricing-organism';
3360
- className?: string;
3361
- isLoading?: boolean | string;
3362
- error?: PatternPropValue | string;
3363
- sortBy?: string;
3364
- sortDirection?: string;
3365
- searchValue?: string;
3366
- page?: number | string;
3367
- pageSize?: number | string;
3368
- totalCount?: number | string;
3369
- activeFilters?: PatternPropValue | string;
3370
- selectedIds?: unknown[] | string;
3371
- entity?: PatternPropValue | unknown[] | string;
3372
- heading?: string;
3373
- subtitle?: string;
3374
- };
3375
- 'pricing-page-template': {
3376
- type: 'pricing-page-template';
3377
- entity: PatternPropValue | string;
3378
- className?: string;
3379
- };
3380
- 'progress-bar': {
3381
- type: 'progress-bar';
3382
- value: number | string;
3383
- max?: number | string;
3384
- progressType?: string;
3385
- variant?: string;
3386
- color?: string;
3387
- showPercentage?: boolean | string;
3388
- showLabel?: boolean | string;
3389
- label?: string;
3390
- size?: string;
3391
- steps?: number | string;
3392
- className?: string;
3393
- };
3394
- 'progress-dots': {
3395
- type: 'progress-dots';
3396
- count: number | string;
3397
- currentIndex: number | string;
3398
- getState?: ((...args: unknown[]) => unknown) | string;
3399
- onDotClick?: ((...args: unknown[]) => unknown) | string;
3400
- className?: string;
3401
- size?: string;
3402
- };
3403
- 'pull-quote': {
3404
- type: 'pull-quote';
3405
- children: string;
3406
- className?: string;
3407
- };
3408
- 'pull-to-refresh': {
3409
- type: 'pull-to-refresh';
3410
- refreshEvent: string;
3411
- refreshPayload?: PatternPropValue | string;
3412
- threshold?: number | string;
3413
- children: unknown | string;
3414
- className?: string;
3415
- };
3416
- 'qr-scanner': {
3417
- type: 'qr-scanner';
3418
- onScan?: ((...args: unknown[]) => unknown) | string;
3419
- scanEvent?: string;
3420
- onError?: ((...args: unknown[]) => unknown) | string;
3421
- facingMode?: string;
3422
- paused?: boolean | string;
3423
- showOverlay?: boolean | string;
3424
- showCameraControls?: boolean | string;
3425
- fallback?: unknown | string;
3426
- className?: string;
3427
- };
3428
- 'quiz-block': {
3429
- type: 'quiz-block';
3430
- question: string;
3431
- answer: string;
3432
- className?: string;
3433
- };
3434
- 'radio': {
3435
- type: 'radio';
3436
- className?: string;
3437
- options?: unknown[] | string;
3438
- value?: string;
3439
- action?: string;
3440
- label?: string;
3441
- helperText?: string;
3442
- error?: string;
3443
- size?: string;
3444
- };
3445
- 'range-slider': {
3446
- type: 'range-slider';
3447
- className?: string;
3448
- min?: number | string;
3449
- max?: number | string;
3450
- value?: number | string;
3451
- step?: number | string;
3452
- showTooltip?: boolean | string;
3453
- showTicks?: boolean | string;
3454
- buffered?: number | string;
3455
- size?: string;
3456
- disabled?: boolean | string;
3457
- action?: string;
3458
- actionPayload?: PatternPropValue | string;
3459
- onChange?: ((...args: unknown[]) => unknown) | string;
3460
- formatValue?: ((...args: unknown[]) => unknown) | string;
3461
- };
3462
- 'reflection-block': {
3463
- type: 'reflection-block';
3464
- prompt: string;
3465
- index: number | string;
3466
- savedNote?: string;
3467
- saveEvent?: string;
3468
- className?: string;
3469
- };
3470
- 'relation-select': {
3471
- type: 'relation-select';
3472
- value?: string;
3473
- onChange?: ((...args: unknown[]) => unknown) | string;
3474
- options: unknown[] | string;
3475
- placeholder?: string;
3476
- required?: boolean | string;
3477
- disabled?: boolean | string;
3478
- isLoading?: boolean | string;
3479
- error?: string;
3480
- clearable?: boolean | string;
3481
- name?: string;
3482
- className?: string;
3483
- searchPlaceholder?: string;
3484
- emptyMessage?: string;
3485
- };
3486
- 'repeatable-form-section': {
3487
- type: 'repeatable-form-section';
3488
- sectionType: string;
3489
- title: string;
3490
- items: unknown[] | string;
3491
- renderItem: ((...args: unknown[]) => unknown) | string;
3492
- minItems?: number | string;
3493
- maxItems?: number | string;
3494
- allowReorder?: boolean | string;
3495
- addLabel?: string;
3496
- emptyMessage?: string;
3497
- readOnly?: boolean | string;
3498
- className?: string;
3499
- onAdd?: ((...args: unknown[]) => unknown) | string;
3500
- onRemove?: ((...args: unknown[]) => unknown) | string;
3501
- onReorder?: ((...args: unknown[]) => unknown) | string;
3502
- trackAddedInState?: boolean | string;
3503
- currentState?: string;
3504
- showAuditInfo?: boolean | string;
3505
- };
3506
- 'reply-tree': {
3507
- type: 'reply-tree';
3508
- nodes: PatternPropValue | unknown[] | string;
3509
- maxDepth?: number | string;
3510
- onVote?: ((...args: unknown[]) => unknown) | string;
3511
- onReply?: ((...args: unknown[]) => unknown) | string;
3512
- onFlag?: ((...args: unknown[]) => unknown) | string;
3513
- onContinueThread?: ((...args: unknown[]) => unknown) | string;
3514
- voteEvent?: string;
3515
- replyEvent?: string;
3516
- flagEvent?: string;
3517
- continueThreadEvent?: string;
3518
- showActions?: boolean | string;
3519
- className?: string;
3520
- };
3521
- 'rich-block-editor': {
3522
- type: 'rich-block-editor';
3523
- initialBlocks?: PatternPropValue | unknown[] | string;
3524
- onChange?: ((...args: unknown[]) => unknown) | string;
3525
- changeEvent?: string;
3526
- readOnly?: boolean | string;
3527
- placeholder?: string;
3528
- enableBlocks?: boolean | string;
3529
- showToolbar?: boolean | string;
3530
- className?: string;
3531
- };
3532
- 'runtime-debugger': {
3533
- type: 'runtime-debugger';
3534
- position?: string;
3535
- defaultCollapsed?: boolean | string;
3536
- className?: string;
3537
- mode?: string;
3538
- defaultTab?: string;
3539
- schema?: PatternPropValue | string;
3540
- };
3541
- 'scaled-diagram': {
3542
- type: 'scaled-diagram';
3543
- children: unknown | string;
3544
- className?: string;
3545
- };
3546
- 'score-display': {
3547
- type: 'score-display';
3548
- assetUrl?: PatternPropValue | string;
3549
- value: number | string;
3550
- score?: number | string;
3551
- label?: string;
3552
- icon?: unknown | string;
3553
- size?: string;
3554
- className?: string;
3555
- locale?: string;
3556
- };
3557
- 'search-input': {
3558
- type: 'search-input';
3559
- value?: string;
3560
- onSearch?: ((...args: unknown[]) => unknown) | string;
3561
- debounceMs?: number | string;
3562
- isLoading?: boolean | string;
3563
- placeholder?: string;
3564
- clearable?: boolean | string;
3565
- className?: string;
3566
- event?: string;
3567
- entity?: string;
3568
- query?: string;
3569
- };
3570
- 'section': {
3571
- type: 'section';
3572
- title?: string;
3573
- description?: string;
3574
- action?: unknown | string;
3575
- padding?: string;
3576
- variant?: string;
3577
- divider?: boolean | string;
3578
- className?: string;
3579
- children: unknown | string;
3580
- headerClassName?: string;
3581
- contentClassName?: string;
3582
- as?: unknown | string;
3583
- isLoading?: boolean | string;
3584
- error?: PatternPropValue | string;
3585
- };
3586
- 'section-header': {
3587
- type: 'section-header';
3588
- title: string;
3589
- subtitle?: string;
3590
- align?: string;
3591
- level?: number | string;
3592
- className?: string;
3593
- };
3594
- 'segment-renderer': {
3595
- type: 'segment-renderer';
3596
- segments: unknown[] | string;
3597
- className?: string;
3598
- containerClassName?: string;
3599
- userProgress?: PatternPropValue | string;
3600
- onRunCodeSimulation?: ((...args: unknown[]) => unknown) | string;
3601
- onRenderVisualization?: ((...args: unknown[]) => unknown) | string;
3602
- };
3603
- 'select': {
3604
- type: 'select';
3605
- className?: string;
3606
- options?: unknown[] | string;
3607
- groups?: unknown[] | string;
3608
- placeholder?: string;
3609
- value?: string | unknown[];
3610
- action?: string;
3611
- error?: string;
3612
- multiple?: boolean | string;
3613
- searchable?: boolean | string;
3614
- clearable?: boolean | string;
3615
- onChange?: ((...args: unknown[]) => unknown) | string;
3616
- onValueChange?: ((...args: unknown[]) => unknown) | string;
3617
- };
3618
- 'sequence-bar': {
3619
- type: 'sequence-bar';
3620
- slots: unknown[] | string;
3621
- maxSlots: number | string;
3622
- onSlotDrop?: ((...args: unknown[]) => unknown) | string;
3623
- onSlotRemove?: ((...args: unknown[]) => unknown) | string;
3624
- slotDropEvent?: string;
3625
- slotRemoveEvent?: string;
3626
- playing?: boolean | string;
3627
- currentStep?: number | string;
3628
- categoryColors?: PatternPropValue | string;
3629
- slotFeedback?: unknown[] | string;
3630
- size?: string;
3631
- className?: string;
3632
- };
3633
- 'service-catalog': {
3634
- type: 'service-catalog';
3635
- services: unknown[] | string;
3636
- className?: string;
3637
- };
3638
- 'showcase-card': {
3639
- type: 'showcase-card';
3640
- title: string;
3641
- description?: string;
3642
- image: PatternPropValue | string;
3643
- href?: string;
3644
- badge?: string;
3645
- accentColor?: string;
3646
- className?: string;
3647
- };
3648
- 'showcase-organism': {
3649
- type: 'showcase-organism';
3650
- className?: string;
3651
- isLoading?: boolean | string;
3652
- error?: PatternPropValue | string;
3653
- sortBy?: string;
3654
- sortDirection?: string;
3655
- searchValue?: string;
3656
- page?: number | string;
3657
- pageSize?: number | string;
3658
- totalCount?: number | string;
3659
- activeFilters?: PatternPropValue | string;
3660
- selectedIds?: unknown[] | string;
3661
- entity?: PatternPropValue | unknown[] | string;
3662
- columns?: number | string;
3663
- heading?: string;
3664
- subtitle?: string;
3665
- };
3666
- 'side-panel': {
3667
- type: 'side-panel';
3668
- title: string;
3669
- children: unknown | string;
3670
- isOpen: boolean | string;
3671
- onClose: ((...args: unknown[]) => unknown) | string;
3672
- width?: string;
3673
- position?: string;
3674
- showOverlay?: boolean | string;
3675
- className?: string;
3676
- closeEvent?: string;
3677
- };
3678
- 'sidebar': {
3679
- type: 'sidebar';
3680
- className?: string;
3681
- isLoading?: boolean | string;
3682
- error?: PatternPropValue | string;
3683
- logo?: unknown | string;
3684
- logoSrc?: unknown | string;
3685
- brandName?: string;
3686
- items: unknown[] | string;
3687
- userSection?: unknown | string;
3688
- footerContent?: unknown | string;
3689
- collapsed?: boolean | string;
3690
- defaultCollapsed?: boolean | string;
3691
- collapseChangeEvent?: string;
3692
- hideCollapseButton?: boolean | string;
3693
- showCloseButton?: boolean | string;
3694
- closeEvent?: string;
3695
- logoClickEvent?: string;
3696
- };
3697
- 'signature-pad': {
3698
- type: 'signature-pad';
3699
- label?: string;
3700
- helperText?: string;
3701
- strokeColor?: string;
3702
- strokeWidth?: number | string;
3703
- height?: number | string;
3704
- readOnly?: boolean | string;
3705
- value?: string;
3706
- onChange?: ((...args: unknown[]) => unknown) | string;
3707
- signEvent?: string;
3708
- clearEvent?: string;
3709
- isLoading?: boolean | string;
3710
- error?: PatternPropValue | string;
3711
- className?: string;
3712
- };
3713
- 'simple-grid': {
3714
- type: 'simple-grid';
3715
- minChildWidth?: number | string;
3716
- maxCols?: number | string;
3717
- cols?: number | string;
3718
- gap?: string;
3719
- className?: string;
3720
- children: unknown | string;
3721
- };
3722
- 'skeleton': {
3723
- type: 'skeleton';
3724
- variant?: string;
3725
- rows?: number | string;
3726
- columns?: number | string;
3727
- fields?: number | string;
3728
- className?: string;
3729
- };
3730
- 'social-proof': {
3731
- type: 'social-proof';
3732
- items: unknown[] | string;
3733
- variant?: string;
3734
- className?: string;
3735
- };
3736
- 'sortable-list': {
3737
- type: 'sortable-list';
3738
- items: PatternPropValue | unknown[] | string;
3739
- renderItem: ((...args: unknown[]) => unknown) | string;
3740
- reorderEvent: string;
3741
- reorderPayload?: PatternPropValue | string;
3742
- dragHandlePosition?: string;
3743
- className?: string;
3744
- };
3745
- 'spacer': {
3746
- type: 'spacer';
3747
- size?: string;
3748
- axis?: string;
3749
- className?: string;
3750
- };
3751
- 'sparkline': {
3752
- type: 'sparkline';
3753
- data: unknown[] | string;
3754
- color?: string;
3755
- width?: number | string;
3756
- height?: number | string;
3757
- strokeWidth?: number | string;
3758
- fill?: boolean | string;
3759
- className?: string;
3760
- };
3761
- 'spinner': {
3762
- type: 'spinner';
3763
- className?: string;
3764
- size?: string;
3765
- overlay?: boolean | string;
3766
- };
3767
- 'split': {
3768
- type: 'split';
3769
- ratio?: string;
3770
- gap?: string;
3771
- reverse?: boolean | string;
3772
- stackOnMobile?: boolean | string;
3773
- stackBreakpoint?: string;
3774
- align?: string;
3775
- className?: string;
3776
- leftClassName?: string;
3777
- rightClassName?: string;
3778
- children: unknown[] | string;
3779
- isLoading?: boolean | string;
3780
- error?: PatternPropValue | string;
3781
- };
3782
- 'split-pane': {
3783
- type: 'split-pane';
3784
- direction?: string;
3785
- ratio?: number | string;
3786
- minSize?: number | string;
3787
- resizable?: boolean | string;
3788
- left: unknown | string;
3789
- right: unknown | string;
3790
- className?: string;
3791
- leftClassName?: string;
3792
- rightClassName?: string;
3793
- };
3794
- 'split-section': {
3795
- type: 'split-section';
3796
- title: string;
3797
- description: string | unknown;
3798
- bullets?: unknown[] | string;
3799
- image?: PatternPropValue | string;
3800
- imagePosition?: string;
3801
- background?: string;
3802
- children?: unknown | string;
3803
- className?: string;
3804
- };
3805
- 'stack': {
3806
- type: 'stack';
3807
- direction?: string;
3808
- gap?: string;
3809
- align?: string;
3810
- justify?: string;
3811
- wrap?: boolean | string;
3812
- reverse?: boolean | string;
3813
- flex?: boolean | string;
3814
- className?: string;
3815
- style?: PatternPropValue | string;
3816
- children?: unknown | string;
3817
- as?: unknown | string;
3818
- onClick?: ((...args: unknown[]) => unknown) | string;
3819
- onKeyDown?: ((...args: unknown[]) => unknown) | string;
3820
- role?: string;
3821
- tabIndex?: number | string;
3822
- action?: string;
3823
- actionPayload?: PatternPropValue | string;
3824
- responsive?: boolean | string;
3825
- };
3826
- 'star-rating': {
3827
- type: 'star-rating';
3828
- value?: number | string;
3829
- max?: number | string;
3830
- readOnly?: boolean | string;
3831
- precision?: string;
3832
- size?: string;
3833
- action?: string;
3834
- actionPayload?: PatternPropValue | string;
3835
- onChange?: ((...args: unknown[]) => unknown) | string;
3836
- className?: string;
3837
- label?: string;
3838
- };
3839
- 'stat-badge': {
3840
- type: 'stat-badge';
3841
- assetUrl?: PatternPropValue | string;
3842
- iconUrl?: PatternPropValue | string;
3843
- label: string;
3844
- value?: number | string;
3845
- max?: number | string;
3846
- source?: string;
3847
- field?: string;
3848
- format?: string;
3849
- icon?: unknown | string;
3850
- size?: string;
3851
- variant?: string;
3852
- className?: string;
3853
- };
3854
- 'stat-card': {
3855
- type: 'stat-card';
3856
- className?: string;
3857
- isLoading?: boolean | string;
3858
- error?: PatternPropValue | string;
3859
- sortBy?: string;
3860
- sortDirection?: string;
3861
- searchValue?: string;
3862
- page?: number | string;
3863
- pageSize?: number | string;
3864
- totalCount?: number | string;
3865
- activeFilters?: PatternPropValue | string;
3866
- selectedIds?: unknown[] | string;
3867
- entity?: PatternPropValue | unknown[] | string;
3868
- label?: string;
3869
- title?: string;
3870
- value?: string | number | unknown[];
3871
- previousValue?: number | string;
3872
- currentValue?: number | string;
3873
- trend?: number | string;
3874
- trendDirection?: string;
3875
- invertTrend?: boolean | string;
3876
- icon?: unknown | string;
3877
- iconBg?: string;
3878
- iconColor?: string;
3879
- subtitle?: string;
3880
- action?: PatternPropValue | string;
3881
- metrics?: unknown[] | string;
3882
- compact?: boolean | string;
3883
- sparklineData?: unknown[] | string;
3884
- };
3885
- 'stat-display': {
3886
- type: 'stat-display';
3887
- label: string;
3888
- value: number | string;
3889
- max?: number | string;
3890
- target?: number | string;
3891
- trend?: number | string;
3892
- trendPolarity?: string;
3893
- trendFormat?: string;
3894
- sparklineData?: unknown[] | string;
3895
- clickEvent?: string;
3896
- prefix?: string;
3897
- suffix?: string;
3898
- icon?: unknown | string;
3899
- iconBg?: string;
3900
- iconColor?: string;
3901
- format?: string;
3902
- size?: string;
3903
- variant?: string;
3904
- compact?: boolean | string;
3905
- look?: string;
3906
- className?: string;
3907
- isLoading?: boolean | string;
3908
- error?: PatternPropValue | string;
3909
- };
3910
- 'state-graph': {
3911
- type: 'state-graph';
3912
- states: unknown[] | string;
3913
- transitions?: unknown[] | string;
3914
- currentState?: string;
3915
- selectedState?: string;
3916
- addingFrom?: string;
3917
- initialState?: string;
3918
- width?: number | string;
3919
- height?: number | string;
3920
- nodeClickEvent?: string;
3921
- className?: string;
3922
- };
3923
- 'state-json-view': {
3924
- type: 'state-json-view';
3925
- name: string;
3926
- initialState: string;
3927
- states: unknown[] | string;
3928
- transitions: unknown[] | string;
3929
- label?: string;
3930
- defaultExpanded?: boolean | string;
3931
- className?: string;
3932
- };
3933
- 'state-machine-view': {
3934
- type: 'state-machine-view';
3935
- className?: string;
3936
- isLoading?: boolean | string;
3937
- error?: PatternPropValue | string;
3938
- layoutData?: PatternPropValue | string;
3939
- renderStateNode?: ((...args: unknown[]) => unknown) | string;
3940
- };
3941
- 'stats-grid': {
3942
- type: 'stats-grid';
3943
- stats: unknown[] | string;
3944
- columns?: number | string;
3945
- className?: string;
3946
- };
3947
- 'stats-organism': {
3948
- type: 'stats-organism';
3949
- className?: string;
3950
- isLoading?: boolean | string;
3951
- error?: PatternPropValue | string;
3952
- sortBy?: string;
3953
- sortDirection?: string;
3954
- searchValue?: string;
3955
- page?: number | string;
3956
- pageSize?: number | string;
3957
- totalCount?: number | string;
3958
- activeFilters?: PatternPropValue | string;
3959
- selectedIds?: unknown[] | string;
3960
- entity?: PatternPropValue | unknown[] | string;
3961
- columns?: number | string;
3962
- };
3963
- 'status-dot': {
3964
- type: 'status-dot';
3965
- className?: string;
3966
- status?: string;
3967
- pulse?: boolean | string;
3968
- size?: string;
3969
- label?: string;
3970
- };
3971
- 'step-flow': {
3972
- type: 'step-flow';
3973
- steps: unknown[] | string;
3974
- orientation?: string;
3975
- showConnectors?: boolean | string;
3976
- className?: string;
3977
- };
3978
- 'step-flow-organism': {
3979
- type: 'step-flow-organism';
3980
- className?: string;
3981
- isLoading?: boolean | string;
3982
- error?: PatternPropValue | string;
3983
- sortBy?: string;
3984
- sortDirection?: string;
3985
- searchValue?: string;
3986
- page?: number | string;
3987
- pageSize?: number | string;
3988
- totalCount?: number | string;
3989
- activeFilters?: PatternPropValue | string;
3990
- selectedIds?: unknown[] | string;
3991
- entity?: PatternPropValue | unknown[] | string;
3992
- orientation?: string;
3993
- showConnectors?: boolean | string;
3994
- heading?: string;
3995
- subtitle?: string;
3996
- };
3997
- 'subagent-trace-panel': {
3998
- type: 'subagent-trace-panel';
3999
- className?: string;
4000
- isLoading?: boolean | string;
4001
- error?: PatternPropValue | string;
4002
- sortBy?: string;
4003
- sortDirection?: string;
4004
- searchValue?: string;
4005
- page?: number | string;
4006
- pageSize?: number | string;
4007
- totalCount?: number | string;
4008
- activeFilters?: PatternPropValue | string;
4009
- selectedIds?: unknown[] | string;
4010
- subagents: unknown[] | string;
4011
- focusedOrbital?: string;
4012
- disclosureLevel: number | string;
4013
- open: boolean | string;
4014
- onClose?: ((...args: unknown[]) => unknown) | string;
4015
- coordinatorActivities?: unknown[] | string;
4016
- coordinatorMessages?: unknown[] | string;
4017
- mode?: string;
4018
- };
4019
- 'svg-branch': {
4020
- type: 'svg-branch';
4021
- x?: number | string;
4022
- y?: number | string;
4023
- variant?: string;
4024
- branches?: number | string;
4025
- size?: number | string;
4026
- color?: string;
4027
- opacity?: number | string;
4028
- className?: string;
4029
- asRoot?: boolean | string;
4030
- width?: number | string;
4031
- height?: number | string;
4032
- };
4033
- 'svg-connection': {
4034
- type: 'svg-connection';
4035
- x1?: number | string;
4036
- y1?: number | string;
4037
- x2?: number | string;
4038
- y2?: number | string;
4039
- variant?: string;
4040
- color?: string;
4041
- strokeWidth?: number | string;
4042
- opacity?: number | string;
4043
- className?: string;
4044
- asRoot?: boolean | string;
4045
- width?: number | string;
4046
- height?: number | string;
4047
- };
4048
- 'svg-flow': {
4049
- type: 'svg-flow';
4050
- points?: unknown[] | string;
4051
- color?: string;
4052
- strokeWidth?: number | string;
4053
- animated?: boolean | string;
4054
- opacity?: number | string;
4055
- className?: string;
4056
- asRoot?: boolean | string;
4057
- width?: number | string;
4058
- height?: number | string;
4059
- };
4060
- 'svg-grid': {
4061
- type: 'svg-grid';
4062
- x?: number | string;
4063
- y?: number | string;
4064
- cols?: number | string;
4065
- rows?: number | string;
4066
- spacing?: number | string;
4067
- nodeRadius?: number | string;
4068
- color?: string;
4069
- opacity?: number | string;
4070
- className?: string;
4071
- highlights?: unknown[] | string;
4072
- asRoot?: boolean | string;
4073
- width?: number | string;
4074
- height?: number | string;
4075
- };
4076
- 'svg-lobe': {
4077
- type: 'svg-lobe';
4078
- cx?: number | string;
4079
- cy?: number | string;
4080
- rx?: number | string;
4081
- ry?: number | string;
4082
- rotation?: number | string;
4083
- shells?: number | string;
4084
- color?: string;
4085
- opacity?: number | string;
4086
- className?: string;
4087
- asRoot?: boolean | string;
4088
- width?: number | string;
4089
- height?: number | string;
4090
- };
4091
- 'svg-mesh': {
4092
- type: 'svg-mesh';
4093
- cx?: number | string;
4094
- cy?: number | string;
4095
- nodes?: number | string;
4096
- radius?: number | string;
4097
- color?: string;
4098
- connectionDensity?: number | string;
4099
- opacity?: number | string;
4100
- className?: string;
4101
- asRoot?: boolean | string;
4102
- width?: number | string;
4103
- height?: number | string;
4104
- };
4105
- 'svg-morph': {
4106
- type: 'svg-morph';
4107
- x?: number | string;
4108
- y?: number | string;
4109
- size?: number | string;
4110
- variant?: string;
4111
- color?: string;
4112
- opacity?: number | string;
4113
- className?: string;
4114
- asRoot?: boolean | string;
4115
- width?: number | string;
4116
- height?: number | string;
4117
- };
4118
- 'svg-node': {
4119
- type: 'svg-node';
4120
- x?: number | string;
4121
- y?: number | string;
4122
- r?: number | string;
4123
- variant?: string;
4124
- color?: string;
4125
- opacity?: number | string;
4126
- className?: string;
4127
- label?: string;
4128
- asRoot?: boolean | string;
4129
- width?: number | string;
4130
- height?: number | string;
4131
- };
4132
- 'svg-pulse': {
4133
- type: 'svg-pulse';
4134
- cx?: number | string;
4135
- cy?: number | string;
4136
- rings?: number | string;
4137
- maxRadius?: number | string;
4138
- color?: string;
4139
- animated?: boolean | string;
4140
- opacity?: number | string;
4141
- className?: string;
4142
- asRoot?: boolean | string;
4143
- width?: number | string;
4144
- height?: number | string;
4145
- };
4146
- 'svg-ring': {
4147
- type: 'svg-ring';
4148
- cx?: number | string;
4149
- cy?: number | string;
4150
- r?: number | string;
4151
- variant?: string;
4152
- color?: string;
4153
- strokeWidth?: number | string;
4154
- opacity?: number | string;
4155
- className?: string;
4156
- label?: string;
4157
- asRoot?: boolean | string;
4158
- width?: number | string;
4159
- height?: number | string;
4160
- };
4161
- 'svg-shield': {
4162
- type: 'svg-shield';
4163
- x?: number | string;
4164
- y?: number | string;
4165
- size?: number | string;
4166
- variant?: string;
4167
- color?: string;
4168
- opacity?: number | string;
4169
- className?: string;
4170
- asRoot?: boolean | string;
4171
- width?: number | string;
4172
- height?: number | string;
4173
- };
4174
- 'svg-stack': {
4175
- type: 'svg-stack';
4176
- x?: number | string;
4177
- y?: number | string;
4178
- layers?: number | string;
4179
- width?: number | string;
4180
- height?: number | string;
4181
- color?: string;
4182
- opacity?: number | string;
4183
- className?: string;
4184
- labels?: unknown[] | string;
4185
- asRoot?: boolean | string;
4186
- svgWidth?: number | string;
4187
- svgHeight?: number | string;
4188
- };
4189
- 'swipeable-row': {
4190
- type: 'swipeable-row';
4191
- leftActions?: unknown[] | string;
4192
- rightActions?: unknown[] | string;
4193
- threshold?: number | string;
4194
- children: unknown | string;
4195
- itemData?: PatternPropValue | string;
4196
- className?: string;
4197
- };
4198
- 'switch': {
4199
- type: 'switch';
4200
- checked?: boolean | string;
4201
- defaultChecked?: boolean | string;
4202
- onChange?: ((...args: unknown[]) => unknown) | string;
4203
- disabled?: boolean | string;
4204
- label?: string;
4205
- id?: string;
4206
- name?: string;
4207
- className?: string;
4208
- };
4209
- 'tabbed-container': {
4210
- type: 'tabbed-container';
4211
- tabs: unknown[] | string;
4212
- defaultTab?: string;
4213
- activeTab?: string;
4214
- onTabChange?: ((...args: unknown[]) => unknown) | string;
4215
- position?: string;
4216
- className?: string;
4217
- };
4218
- 'table-view': {
4219
- type: 'table-view';
4220
- dragGroup?: string;
4221
- accepts?: string;
4222
- sortable?: boolean | string;
4223
- dropEvent?: string;
4224
- reorderEvent?: string;
4225
- positionEvent?: string;
4226
- dndItemIdField?: string;
4227
- dndRoot?: boolean | string;
4228
- entity: PatternPropValue | unknown[] | string;
4229
- columns?: unknown[] | string;
4230
- fields?: unknown[] | string;
4231
- itemActions?: unknown[] | string;
4232
- maxInlineActions?: number | string;
4233
- selectable?: boolean | string;
4234
- selectEvent?: string;
4235
- selectedIds?: unknown[] | string;
4236
- sortEvent?: string;
4237
- sortColumn?: string;
4238
- sortDirection?: string;
4239
- className?: string;
4240
- emptyMessage?: string;
4241
- isLoading?: boolean | string;
4242
- error?: PatternPropValue | string;
4243
- groupBy?: string;
4244
- pageSize?: number | string;
4245
- children?: ((...args: unknown[]) => unknown) | string;
4246
- renderItem?: ((...args: unknown[]) => unknown) | string;
4247
- look?: string;
4248
- };
4249
- 'tabs': {
4250
- type: 'tabs';
4251
- items?: unknown[] | string;
4252
- tabs?: unknown[] | string;
4253
- defaultActiveTab?: string;
4254
- activeTab?: string;
4255
- onTabChange?: ((...args: unknown[]) => unknown) | string;
4256
- tabChangeEvent?: string;
4257
- variant?: string;
4258
- orientation?: string;
4259
- className?: string;
4260
- };
4261
- 'tag-cloud': {
4262
- type: 'tag-cloud';
4263
- tags: unknown[] | string;
4264
- variant?: string;
4265
- className?: string;
4266
- };
4267
- 'tag-input': {
4268
- type: 'tag-input';
4269
- value: unknown[] | string;
4270
- onChange?: ((...args: unknown[]) => unknown) | string;
4271
- placeholder?: string;
4272
- disabled?: boolean | string;
4273
- variant?: string;
4274
- unique?: boolean | string;
4275
- helperText?: string;
4276
- className?: string;
4277
- addEvent?: string;
4278
- removeEvent?: string;
4279
- };
4280
- 'team-card': {
4281
- type: 'team-card';
4282
- name: string;
4283
- nameAr?: string;
4284
- role: string;
4285
- bio: string;
4286
- avatar?: unknown | PatternPropValue | string;
4287
- className?: string;
4288
- };
4289
- 'team-organism': {
4290
- type: 'team-organism';
4291
- className?: string;
4292
- isLoading?: boolean | string;
4293
- error?: PatternPropValue | string;
4294
- sortBy?: string;
4295
- sortDirection?: string;
4296
- searchValue?: string;
4297
- page?: number | string;
4298
- pageSize?: number | string;
4299
- totalCount?: number | string;
4300
- activeFilters?: PatternPropValue | string;
4301
- selectedIds?: unknown[] | string;
4302
- entity?: PatternPropValue | unknown[] | string;
4303
- heading?: string;
4304
- subtitle?: string;
4305
- };
4306
- 'text-highlight': {
4307
- type: 'text-highlight';
4308
- highlightType: string;
4309
- isActive?: boolean | string;
4310
- onClick?: ((...args: unknown[]) => unknown) | string;
4311
- onMouseEnter?: ((...args: unknown[]) => unknown) | string;
4312
- onMouseLeave?: ((...args: unknown[]) => unknown) | string;
4313
- annotationId?: string;
4314
- className?: string;
4315
- children: unknown | string;
4316
- action?: string;
4317
- hoverEvent?: string;
4318
- };
4319
- 'textarea': {
4320
- type: 'textarea';
4321
- className?: string;
4322
- placeholder?: string;
4323
- rows?: number | string;
4324
- action?: string;
4325
- error?: string;
4326
- onChange?: ((...args: unknown[]) => unknown) | string;
4327
- };
4328
- 'theme-toggle': {
4329
- type: 'theme-toggle';
4330
- className?: string;
4331
- size?: string;
4332
- showLabel?: boolean | string;
4333
- };
4334
- 'time-slot-cell': {
4335
- type: 'time-slot-cell';
4336
- time: string;
4337
- onClick?: ((...args: unknown[]) => unknown) | string;
4338
- className?: string;
4339
- children?: unknown | string;
4340
- isOccupied?: boolean | string;
4341
- };
4342
- 'timeline': {
4343
- type: 'timeline';
4344
- className?: string;
4345
- isLoading?: boolean | string;
4346
- error?: PatternPropValue | string;
4347
- entity?: PatternPropValue | unknown[] | string;
4348
- title?: string;
4349
- items?: unknown[] | string;
4350
- fields: unknown[] | string;
4351
- itemActions?: unknown[] | string;
4352
- look?: string;
4353
- };
4354
- 'timer-display': {
4355
- type: 'timer-display';
4356
- seconds: number | string;
4357
- running?: boolean | string;
4358
- format?: string;
4359
- size?: string;
4360
- className?: string;
4361
- lowThreshold?: number | string;
4362
- iconAsset?: PatternPropValue | string;
4363
- };
4364
- 'toast-slot': {
4365
- type: 'toast-slot';
4366
- children?: unknown | string;
4367
- variant?: string;
4368
- title?: string;
4369
- duration?: number | string;
4370
- className?: string;
4371
- isLoading?: boolean | string;
4372
- error?: PatternPropValue | string;
4373
- entity?: string;
4374
- sourceTrait?: string;
4375
- };
4376
- 'tooltip': {
4377
- type: 'tooltip';
4378
- content: unknown | string;
4379
- children: unknown | string;
4380
- position?: string;
4381
- delay?: number | string;
4382
- hideDelay?: number | string;
4383
- showArrow?: boolean | string;
4384
- className?: string;
4385
- };
4386
- 'trait-frame': {
4387
- type: 'trait-frame';
4388
- traitName: string;
4389
- fallback?: unknown | string;
4390
- };
4391
- 'trait-slot': {
4392
- type: 'trait-slot';
4393
- slotNumber: number | string;
4394
- equippedItem?: PatternPropValue | string;
4395
- locked?: boolean | string;
4396
- lockLabel?: string;
4397
- selected?: boolean | string;
4398
- size?: string;
4399
- showTooltip?: boolean | string;
4400
- categoryColors?: PatternPropValue | string;
4401
- tooltipFrameUrl?: PatternPropValue | string;
4402
- className?: string;
4403
- isLoading?: boolean | string;
4404
- error?: PatternPropValue | string;
4405
- onItemDrop?: ((...args: unknown[]) => unknown) | string;
4406
- draggable?: boolean | string;
4407
- onDragStart?: ((...args: unknown[]) => unknown) | string;
4408
- feedback?: string;
4409
- onClick?: ((...args: unknown[]) => unknown) | string;
4410
- onRemove?: ((...args: unknown[]) => unknown) | string;
4411
- clickEvent?: string;
4412
- removeEvent?: string;
4413
- dropEvent?: string;
4414
- };
4415
- 'trend-indicator': {
4416
- type: 'trend-indicator';
4417
- className?: string;
4418
- value?: number | string;
4419
- direction?: string;
4420
- showValue?: boolean | string;
4421
- invert?: boolean | string;
4422
- label?: string;
4423
- size?: string;
4424
- };
4425
- 'typewriter-text': {
4426
- type: 'typewriter-text';
4427
- text: string;
4428
- speed?: number | string;
4429
- startDelay?: number | string;
4430
- className?: string;
4431
- onComplete?: ((...args: unknown[]) => unknown) | string;
4432
- };
4433
- 'typography': {
4434
- type: 'typography';
4435
- variant?: string;
4436
- level?: number | string;
4437
- color?: string;
4438
- align?: string;
4439
- weight?: string;
4440
- size?: string;
4441
- truncate?: boolean | string;
4442
- overflow?: string;
4443
- as?: unknown | string;
4444
- id?: string;
4445
- className?: string;
4446
- style?: PatternPropValue | string;
4447
- content?: unknown | string;
4448
- children?: unknown | string;
4449
- };
4450
- 'ui-slot-renderer': {
4451
- type: 'ui-slot-renderer';
4452
- includeHud?: boolean | string;
4453
- hudMode?: string;
4454
- includeFloating?: boolean | string;
4455
- className?: string;
4456
- isLoading?: boolean | string;
4457
- error?: PatternPropValue | string;
4458
- entity?: string;
4459
- suspense?: boolean | PatternPropValue | string;
4460
- };
4461
- 'upload-drop-zone': {
4462
- type: 'upload-drop-zone';
4463
- accept?: string;
4464
- maxSize?: number | string;
4465
- maxFiles?: number | string;
4466
- label?: string;
4467
- description?: string;
4468
- icon?: unknown | string;
4469
- disabled?: boolean | string;
4470
- action?: string;
4471
- actionPayload?: PatternPropValue | string;
4472
- onFiles?: ((...args: unknown[]) => unknown) | string;
4473
- className?: string;
4474
- };
4475
- 'version-diff': {
4476
- type: 'version-diff';
4477
- revisions: unknown[] | PatternPropValue | string;
4478
- beforeId?: string;
4479
- afterId?: string;
4480
- view?: string;
4481
- onSelectBefore?: ((...args: unknown[]) => unknown) | string;
4482
- onSelectAfter?: ((...args: unknown[]) => unknown) | string;
4483
- onRevert?: ((...args: unknown[]) => unknown) | string;
4484
- selectBeforeEvent?: string;
4485
- selectAfterEvent?: string;
4486
- revertEvent?: string;
4487
- language?: string;
4488
- className?: string;
4489
- };
4490
- 'violation-alert': {
4491
- type: 'violation-alert';
4492
- violation: PatternPropValue | string;
4493
- severity?: string;
4494
- dismissible?: boolean | string;
4495
- onDismiss?: ((...args: unknown[]) => unknown) | string;
4496
- onNavigateToField?: ((...args: unknown[]) => unknown) | string;
4497
- compact?: boolean | string;
4498
- className?: string;
4499
- message?: string;
4500
- };
4501
- 'vote-stack': {
4502
- type: 'vote-stack';
4503
- count: number | string;
4504
- userVote?: string;
4505
- onVote?: ((...args: unknown[]) => unknown) | string;
4506
- voteEvent?: string;
4507
- disabled?: boolean | string;
4508
- size?: string;
4509
- variant?: string;
4510
- className?: string;
4511
- label?: string;
4512
- };
4513
- 'vstack': {
4514
- type: 'vstack';
4515
- };
4516
- 'wizard-container': {
4517
- type: 'wizard-container';
4518
- steps: unknown[] | string;
4519
- currentStep?: number | string;
4520
- onStepChange?: ((...args: unknown[]) => unknown) | string;
4521
- onComplete?: ((...args: unknown[]) => unknown) | string;
4522
- showProgress?: boolean | string;
4523
- allowBack?: boolean | string;
4524
- compact?: boolean | string;
4525
- className?: string;
4526
- isLoading?: boolean | string;
4527
- error?: PatternPropValue | string;
4528
- nextEvent?: string;
4529
- backEvent?: string;
4530
- completeEvent?: string;
4531
- };
4532
- 'wizard-navigation': {
4533
- type: 'wizard-navigation';
4534
- currentStep: number | string;
4535
- totalSteps: number | string;
4536
- isValid?: boolean | string;
4537
- showBack?: boolean | string;
4538
- showNext?: boolean | string;
4539
- showComplete?: boolean | string;
4540
- backLabel?: string;
4541
- nextLabel?: string;
4542
- completeLabel?: string;
4543
- onBack?: string;
4544
- onNext?: string;
4545
- onComplete?: string;
4546
- onBackClick?: ((...args: unknown[]) => unknown) | string;
4547
- onNextClick?: ((...args: unknown[]) => unknown) | string;
4548
- onCompleteClick?: ((...args: unknown[]) => unknown) | string;
4549
- compact?: boolean | string;
4550
- className?: string;
4551
- };
4552
- 'wizard-progress': {
4553
- type: 'wizard-progress';
4554
- steps?: unknown[] | string;
4555
- currentStep: number | string;
4556
- onStepClick?: ((...args: unknown[]) => unknown) | string;
4557
- allowNavigation?: boolean | string;
4558
- compact?: boolean | string;
4559
- className?: string;
4560
- stepClickEvent?: string;
4561
- };
4562
- }
4563
- /**
4564
- * Get the props type for a specific pattern.
4565
- */
4566
- type PatternProps<T extends PatternType> = PatternPropsMap[T];
4567
- /**
4568
- * Type-safe pattern configuration.
4569
- */
4570
- type PatternConfig<T extends PatternType = PatternType> = PatternPropsMap[T];
4571
- /**
4572
- * Discriminated union of all pattern configs.
4573
- */
4574
- type AnyPatternConfig = PatternPropsMap[PatternType];
4575
- /**
4576
- * Array of all pattern type names (for runtime validation).
4577
- */
4578
- declare const PATTERN_TYPES: PatternType[];
4579
- /**
4580
- * Check if a string is a valid pattern type.
4581
- */
4582
- declare function isValidPatternType(type: string): type is PatternType;
4583
-
4584
- export { type PatternConfig as $, type AnyPatternConfig as A, CameraModeSchema as B, CAMERA_MODES as C, CameraSchema as D, type EntityField as E, type FieldValue as F, ENTITY_ROLES as G, type EntityData as H, type EntityFieldInput as I, EntityFieldSchema as J, EntityPersistenceSchema as K, type EntityRole as L, EntityRoleSchema as M, EntitySchema as N, type EntityWith as O, type EnumEntityField as P, type Field as Q, type RelationConfig as R, type FieldFormat as S, FieldFormatSchema as T, FieldSchema as U, type FieldType as V, FieldTypeSchema as W, type OrbitalEntity as X, type OrbitalEntityInput as Y, OrbitalEntitySchema as Z, PATTERN_TYPES as _, type EntityPersistence as a, type PatternProps as a0, type PatternPropsMap as a1, type PatternType as a2, RelationConfigSchema as a3, type RelationEntityField as a4, SPRITE_DIRECTIONS as a5, type ScalarEntityField as a6, type ScenePos as a7, ScenePosSchema as a8, type SemanticAssetRef as a9, type SemanticAssetRefInput as aa, SemanticAssetRefSchema as ab, type SpriteDirection as ac, SpriteDirectionSchema as ad, type SpriteSheetAtlas as ae, type SpriteSheetAtlasInput as af, SpriteSheetAtlasSchema as ag, type SubTexture as ah, SubTextureSchema as ai, type TextureAtlas as aj, TextureAtlasSchema as ak, type Tilesheet as al, TilesheetSchema as am, VISUAL_STYLES as an, type VisualStyle as ao, VisualStyleSchema as ap, createAssetKey as aq, deriveCollection as ar, getDefaultAnimationsForRole as as, isFieldValue as at, isRuntimeEntity as au, isValidPatternType as av, parseAssetKey as aw, persistenceModeAllowsOverrides as ax, validateAssetAnimations as ay, type EntityRow as b, type Entity as c, ANIMATION_NAMES as d, ASSET_ASPECTS as e, ASSET_DIMENSIONS as f, type AnimationDef as g, type AnimationDefInput as h, AnimationDefSchema as i, type AnimationName as j, AnimationNameSchema as k, type ArrayEntityField as l, type Asset as m, type AssetAspect as n, AssetAspectSchema as o, type AssetCatalog as p, type AssetCatalogEntry as q, type AssetCatalogEntryInput as r, AssetCatalogEntrySchema as s, AssetCatalogSchema as t, type AssetDimension as u, AssetDimensionSchema as v, AssetSchema as w, type AssetUrl as x, type Camera as y, type CameraMode as z };