@almadar/patterns 2.45.0 → 2.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/patterns-registry.json
2
2
  var patterns_registry_default = {
3
3
  version: "1.0.0",
4
- exportedAt: "2026-06-17T02:07:52.301Z",
4
+ exportedAt: "2026-06-17T02:56:15.601Z",
5
5
  patterns: {
6
6
  "entity-table": {
7
7
  type: "entity-table",
@@ -14052,6 +14052,323 @@ var patterns_registry_default = {
14052
14052
  ],
14053
14053
  description: "Unit draw-size multiplier",
14054
14054
  default: 1
14055
+ },
14056
+ tiles: {
14057
+ types: [
14058
+ "array"
14059
+ ],
14060
+ description: "Direct tile data \u2014 forwarded to BattleBoard; takes priority over entity.",
14061
+ items: {
14062
+ types: [
14063
+ "object"
14064
+ ],
14065
+ properties: {
14066
+ id: {
14067
+ types: [
14068
+ "string"
14069
+ ]
14070
+ },
14071
+ x: {
14072
+ types: [
14073
+ "number"
14074
+ ]
14075
+ },
14076
+ y: {
14077
+ types: [
14078
+ "number"
14079
+ ]
14080
+ },
14081
+ z: {
14082
+ types: [
14083
+ "number"
14084
+ ]
14085
+ },
14086
+ terrain: {
14087
+ types: [
14088
+ "string"
14089
+ ]
14090
+ },
14091
+ type: {
14092
+ types: [
14093
+ "string"
14094
+ ]
14095
+ },
14096
+ terrainSprite: {
14097
+ types: [
14098
+ "asset"
14099
+ ]
14100
+ },
14101
+ passable: {
14102
+ types: [
14103
+ "boolean"
14104
+ ]
14105
+ },
14106
+ movementCost: {
14107
+ types: [
14108
+ "number"
14109
+ ]
14110
+ },
14111
+ tileType: {
14112
+ types: [
14113
+ "string"
14114
+ ]
14115
+ },
14116
+ elevation: {
14117
+ types: [
14118
+ "number"
14119
+ ]
14120
+ }
14121
+ },
14122
+ required: [
14123
+ "x",
14124
+ "y"
14125
+ ]
14126
+ }
14127
+ },
14128
+ units: {
14129
+ types: [
14130
+ "array"
14131
+ ],
14132
+ description: "Direct unit data \u2014 forwarded to BattleBoard; takes priority over entity.",
14133
+ items: {
14134
+ types: [
14135
+ "object"
14136
+ ],
14137
+ properties: {
14138
+ id: {
14139
+ types: [
14140
+ "string"
14141
+ ]
14142
+ },
14143
+ position: {
14144
+ types: [
14145
+ "object"
14146
+ ],
14147
+ properties: {
14148
+ x: {
14149
+ types: [
14150
+ "number"
14151
+ ]
14152
+ },
14153
+ y: {
14154
+ types: [
14155
+ "number"
14156
+ ]
14157
+ }
14158
+ },
14159
+ required: [
14160
+ "x",
14161
+ "y"
14162
+ ]
14163
+ },
14164
+ x: {
14165
+ types: [
14166
+ "number"
14167
+ ]
14168
+ },
14169
+ y: {
14170
+ types: [
14171
+ "number"
14172
+ ]
14173
+ },
14174
+ z: {
14175
+ types: [
14176
+ "number"
14177
+ ]
14178
+ },
14179
+ sprite: {
14180
+ types: [
14181
+ "object"
14182
+ ]
14183
+ },
14184
+ unitType: {
14185
+ types: [
14186
+ "string"
14187
+ ]
14188
+ },
14189
+ heroId: {
14190
+ types: [
14191
+ "string"
14192
+ ]
14193
+ },
14194
+ name: {
14195
+ types: [
14196
+ "string"
14197
+ ]
14198
+ },
14199
+ team: {
14200
+ types: [
14201
+ "string"
14202
+ ],
14203
+ enumValues: [
14204
+ "player",
14205
+ "enemy",
14206
+ "neutral"
14207
+ ]
14208
+ },
14209
+ faction: {
14210
+ types: [
14211
+ "string"
14212
+ ],
14213
+ enumValues: [
14214
+ "player",
14215
+ "enemy",
14216
+ "neutral"
14217
+ ]
14218
+ },
14219
+ health: {
14220
+ types: [
14221
+ "number"
14222
+ ]
14223
+ },
14224
+ maxHealth: {
14225
+ types: [
14226
+ "number"
14227
+ ]
14228
+ },
14229
+ traits: {
14230
+ types: [
14231
+ "array"
14232
+ ],
14233
+ items: {
14234
+ types: [
14235
+ "object"
14236
+ ],
14237
+ properties: {
14238
+ name: {
14239
+ types: [
14240
+ "string"
14241
+ ]
14242
+ },
14243
+ currentState: {
14244
+ types: [
14245
+ "string"
14246
+ ]
14247
+ },
14248
+ states: {
14249
+ types: [
14250
+ "array"
14251
+ ],
14252
+ items: {
14253
+ types: [
14254
+ "string"
14255
+ ]
14256
+ }
14257
+ },
14258
+ cooldown: {
14259
+ types: [
14260
+ "number"
14261
+ ]
14262
+ }
14263
+ },
14264
+ required: [
14265
+ "name",
14266
+ "currentState",
14267
+ "states",
14268
+ "cooldown"
14269
+ ]
14270
+ }
14271
+ },
14272
+ previousPosition: {
14273
+ types: [
14274
+ "object"
14275
+ ],
14276
+ properties: {
14277
+ x: {
14278
+ types: [
14279
+ "number"
14280
+ ]
14281
+ },
14282
+ y: {
14283
+ types: [
14284
+ "number"
14285
+ ]
14286
+ }
14287
+ },
14288
+ required: [
14289
+ "x",
14290
+ "y"
14291
+ ]
14292
+ },
14293
+ elevation: {
14294
+ types: [
14295
+ "number"
14296
+ ]
14297
+ }
14298
+ },
14299
+ required: [
14300
+ "id"
14301
+ ]
14302
+ }
14303
+ },
14304
+ features: {
14305
+ types: [
14306
+ "array"
14307
+ ],
14308
+ description: "Direct feature data \u2014 forwarded to BattleBoard; takes priority over entity.",
14309
+ items: {
14310
+ types: [
14311
+ "object"
14312
+ ],
14313
+ properties: {
14314
+ id: {
14315
+ types: [
14316
+ "string"
14317
+ ]
14318
+ },
14319
+ x: {
14320
+ types: [
14321
+ "number"
14322
+ ]
14323
+ },
14324
+ y: {
14325
+ types: [
14326
+ "number"
14327
+ ]
14328
+ },
14329
+ z: {
14330
+ types: [
14331
+ "number"
14332
+ ]
14333
+ },
14334
+ type: {
14335
+ types: [
14336
+ "string"
14337
+ ]
14338
+ },
14339
+ sprite: {
14340
+ types: [
14341
+ "object"
14342
+ ]
14343
+ },
14344
+ assetUrl: {
14345
+ types: [
14346
+ "object"
14347
+ ]
14348
+ },
14349
+ color: {
14350
+ types: [
14351
+ "string"
14352
+ ]
14353
+ },
14354
+ elevation: {
14355
+ types: [
14356
+ "number"
14357
+ ]
14358
+ }
14359
+ },
14360
+ required: [
14361
+ "x",
14362
+ "y",
14363
+ "type"
14364
+ ]
14365
+ }
14366
+ },
14367
+ assetManifest: {
14368
+ types: [
14369
+ "string"
14370
+ ],
14371
+ description: "Direct asset manifest \u2014 forwarded to BattleBoard; takes priority over entity."
14055
14372
  }
14056
14373
  }
14057
14374
  },
@@ -37018,6 +37335,323 @@ var patterns_registry_default = {
37018
37335
  description: "Single board-state entity row (or array). The internal `useBattleState`",
37019
37336
  kind: "entity",
37020
37337
  cardinality: "collection"
37338
+ },
37339
+ tiles: {
37340
+ types: [
37341
+ "array"
37342
+ ],
37343
+ description: "Direct tile data \u2014 takes priority over entity-derived tiles.",
37344
+ items: {
37345
+ types: [
37346
+ "object"
37347
+ ],
37348
+ properties: {
37349
+ id: {
37350
+ types: [
37351
+ "string"
37352
+ ]
37353
+ },
37354
+ x: {
37355
+ types: [
37356
+ "number"
37357
+ ]
37358
+ },
37359
+ y: {
37360
+ types: [
37361
+ "number"
37362
+ ]
37363
+ },
37364
+ z: {
37365
+ types: [
37366
+ "number"
37367
+ ]
37368
+ },
37369
+ terrain: {
37370
+ types: [
37371
+ "string"
37372
+ ]
37373
+ },
37374
+ type: {
37375
+ types: [
37376
+ "string"
37377
+ ]
37378
+ },
37379
+ terrainSprite: {
37380
+ types: [
37381
+ "asset"
37382
+ ]
37383
+ },
37384
+ passable: {
37385
+ types: [
37386
+ "boolean"
37387
+ ]
37388
+ },
37389
+ movementCost: {
37390
+ types: [
37391
+ "number"
37392
+ ]
37393
+ },
37394
+ tileType: {
37395
+ types: [
37396
+ "string"
37397
+ ]
37398
+ },
37399
+ elevation: {
37400
+ types: [
37401
+ "number"
37402
+ ]
37403
+ }
37404
+ },
37405
+ required: [
37406
+ "x",
37407
+ "y"
37408
+ ]
37409
+ }
37410
+ },
37411
+ units: {
37412
+ types: [
37413
+ "array"
37414
+ ],
37415
+ description: "Direct unit data \u2014 takes priority over entity-derived units.",
37416
+ items: {
37417
+ types: [
37418
+ "object"
37419
+ ],
37420
+ properties: {
37421
+ id: {
37422
+ types: [
37423
+ "string"
37424
+ ]
37425
+ },
37426
+ position: {
37427
+ types: [
37428
+ "object"
37429
+ ],
37430
+ properties: {
37431
+ x: {
37432
+ types: [
37433
+ "number"
37434
+ ]
37435
+ },
37436
+ y: {
37437
+ types: [
37438
+ "number"
37439
+ ]
37440
+ }
37441
+ },
37442
+ required: [
37443
+ "x",
37444
+ "y"
37445
+ ]
37446
+ },
37447
+ x: {
37448
+ types: [
37449
+ "number"
37450
+ ]
37451
+ },
37452
+ y: {
37453
+ types: [
37454
+ "number"
37455
+ ]
37456
+ },
37457
+ z: {
37458
+ types: [
37459
+ "number"
37460
+ ]
37461
+ },
37462
+ sprite: {
37463
+ types: [
37464
+ "object"
37465
+ ]
37466
+ },
37467
+ unitType: {
37468
+ types: [
37469
+ "string"
37470
+ ]
37471
+ },
37472
+ heroId: {
37473
+ types: [
37474
+ "string"
37475
+ ]
37476
+ },
37477
+ name: {
37478
+ types: [
37479
+ "string"
37480
+ ]
37481
+ },
37482
+ team: {
37483
+ types: [
37484
+ "string"
37485
+ ],
37486
+ enumValues: [
37487
+ "player",
37488
+ "enemy",
37489
+ "neutral"
37490
+ ]
37491
+ },
37492
+ faction: {
37493
+ types: [
37494
+ "string"
37495
+ ],
37496
+ enumValues: [
37497
+ "player",
37498
+ "enemy",
37499
+ "neutral"
37500
+ ]
37501
+ },
37502
+ health: {
37503
+ types: [
37504
+ "number"
37505
+ ]
37506
+ },
37507
+ maxHealth: {
37508
+ types: [
37509
+ "number"
37510
+ ]
37511
+ },
37512
+ traits: {
37513
+ types: [
37514
+ "array"
37515
+ ],
37516
+ items: {
37517
+ types: [
37518
+ "object"
37519
+ ],
37520
+ properties: {
37521
+ name: {
37522
+ types: [
37523
+ "string"
37524
+ ]
37525
+ },
37526
+ currentState: {
37527
+ types: [
37528
+ "string"
37529
+ ]
37530
+ },
37531
+ states: {
37532
+ types: [
37533
+ "array"
37534
+ ],
37535
+ items: {
37536
+ types: [
37537
+ "string"
37538
+ ]
37539
+ }
37540
+ },
37541
+ cooldown: {
37542
+ types: [
37543
+ "number"
37544
+ ]
37545
+ }
37546
+ },
37547
+ required: [
37548
+ "name",
37549
+ "currentState",
37550
+ "states",
37551
+ "cooldown"
37552
+ ]
37553
+ }
37554
+ },
37555
+ previousPosition: {
37556
+ types: [
37557
+ "object"
37558
+ ],
37559
+ properties: {
37560
+ x: {
37561
+ types: [
37562
+ "number"
37563
+ ]
37564
+ },
37565
+ y: {
37566
+ types: [
37567
+ "number"
37568
+ ]
37569
+ }
37570
+ },
37571
+ required: [
37572
+ "x",
37573
+ "y"
37574
+ ]
37575
+ },
37576
+ elevation: {
37577
+ types: [
37578
+ "number"
37579
+ ]
37580
+ }
37581
+ },
37582
+ required: [
37583
+ "id"
37584
+ ]
37585
+ }
37586
+ },
37587
+ features: {
37588
+ types: [
37589
+ "array"
37590
+ ],
37591
+ description: "Direct feature data \u2014 takes priority over entity-derived features.",
37592
+ items: {
37593
+ types: [
37594
+ "object"
37595
+ ],
37596
+ properties: {
37597
+ id: {
37598
+ types: [
37599
+ "string"
37600
+ ]
37601
+ },
37602
+ x: {
37603
+ types: [
37604
+ "number"
37605
+ ]
37606
+ },
37607
+ y: {
37608
+ types: [
37609
+ "number"
37610
+ ]
37611
+ },
37612
+ z: {
37613
+ types: [
37614
+ "number"
37615
+ ]
37616
+ },
37617
+ type: {
37618
+ types: [
37619
+ "string"
37620
+ ]
37621
+ },
37622
+ sprite: {
37623
+ types: [
37624
+ "object"
37625
+ ]
37626
+ },
37627
+ assetUrl: {
37628
+ types: [
37629
+ "object"
37630
+ ]
37631
+ },
37632
+ color: {
37633
+ types: [
37634
+ "string"
37635
+ ]
37636
+ },
37637
+ elevation: {
37638
+ types: [
37639
+ "number"
37640
+ ]
37641
+ }
37642
+ },
37643
+ required: [
37644
+ "x",
37645
+ "y",
37646
+ "type"
37647
+ ]
37648
+ }
37649
+ },
37650
+ assetManifest: {
37651
+ types: [
37652
+ "string"
37653
+ ],
37654
+ description: "Direct asset manifest \u2014 takes priority over entity-derived manifest."
37021
37655
  }
37022
37656
  }
37023
37657
  },
@@ -43665,7 +44299,7 @@ var integrators_registry_default = {
43665
44299
  // src/component-mapping.json
43666
44300
  var component_mapping_default = {
43667
44301
  version: "1.0.0",
43668
- exportedAt: "2026-06-17T02:07:52.301Z",
44302
+ exportedAt: "2026-06-17T02:56:15.601Z",
43669
44303
  mappings: {
43670
44304
  "page-header": {
43671
44305
  component: "PageHeader",
@@ -45170,7 +45804,7 @@ var component_mapping_default = {
45170
45804
  // src/event-contracts.json
45171
45805
  var event_contracts_default = {
45172
45806
  version: "1.0.0",
45173
- exportedAt: "2026-06-17T02:07:52.301Z",
45807
+ exportedAt: "2026-06-17T02:56:15.601Z",
45174
45808
  contracts: {
45175
45809
  form: {
45176
45810
  emits: [