@almadar/patterns 2.0.1 → 2.0.3
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/component-mapping.json +1 -1
- package/dist/event-contracts.json +137 -24
- package/dist/index.d.ts +883 -84
- package/dist/index.js +427 -51
- package/dist/index.js.map +1 -1
- package/dist/patterns-registry.json +289 -26
- package/dist/registry.json +289 -26
- package/package.json +4 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"exportedAt": "2026-03-
|
|
3
|
+
"exportedAt": "2026-03-05T06:51:24.222Z",
|
|
4
4
|
"patterns": {
|
|
5
5
|
"entity-table": {
|
|
6
6
|
"type": "entity-table",
|
|
@@ -476,6 +476,18 @@
|
|
|
476
476
|
"boolean"
|
|
477
477
|
],
|
|
478
478
|
"description": "Show total count in pagination"
|
|
479
|
+
},
|
|
480
|
+
"showAvatar": {
|
|
481
|
+
"types": [
|
|
482
|
+
"boolean"
|
|
483
|
+
],
|
|
484
|
+
"description": "Show avatar/image field on cards"
|
|
485
|
+
},
|
|
486
|
+
"variant": {
|
|
487
|
+
"types": [
|
|
488
|
+
"string"
|
|
489
|
+
],
|
|
490
|
+
"description": "Visual variant for the card grid"
|
|
479
491
|
}
|
|
480
492
|
}
|
|
481
493
|
},
|
|
@@ -2153,6 +2165,12 @@
|
|
|
2153
2165
|
"unknown"
|
|
2154
2166
|
],
|
|
2155
2167
|
"description": "Metrics to display (schema format) - accepts readonly for compatibility with generated const arrays"
|
|
2168
|
+
},
|
|
2169
|
+
"compact": {
|
|
2170
|
+
"types": [
|
|
2171
|
+
"boolean"
|
|
2172
|
+
],
|
|
2173
|
+
"description": "Compact display mode"
|
|
2156
2174
|
}
|
|
2157
2175
|
}
|
|
2158
2176
|
},
|
|
@@ -2167,6 +2185,84 @@
|
|
|
2167
2185
|
],
|
|
2168
2186
|
"typicalSize": "large",
|
|
2169
2187
|
"propsSchema": {
|
|
2188
|
+
"entity": {
|
|
2189
|
+
"types": [
|
|
2190
|
+
"string"
|
|
2191
|
+
],
|
|
2192
|
+
"description": "Entity name for schema-driven integration"
|
|
2193
|
+
},
|
|
2194
|
+
"data": {
|
|
2195
|
+
"types": [
|
|
2196
|
+
"array"
|
|
2197
|
+
],
|
|
2198
|
+
"description": "Data array provided by the trait via render-ui"
|
|
2199
|
+
},
|
|
2200
|
+
"className": {
|
|
2201
|
+
"types": [
|
|
2202
|
+
"string"
|
|
2203
|
+
],
|
|
2204
|
+
"description": "Additional CSS classes"
|
|
2205
|
+
},
|
|
2206
|
+
"isLoading": {
|
|
2207
|
+
"types": [
|
|
2208
|
+
"boolean"
|
|
2209
|
+
],
|
|
2210
|
+
"description": "Loading state indicator"
|
|
2211
|
+
},
|
|
2212
|
+
"error": {
|
|
2213
|
+
"types": [
|
|
2214
|
+
"object"
|
|
2215
|
+
],
|
|
2216
|
+
"description": "Error state"
|
|
2217
|
+
},
|
|
2218
|
+
"sortBy": {
|
|
2219
|
+
"types": [
|
|
2220
|
+
"string"
|
|
2221
|
+
],
|
|
2222
|
+
"description": "Current sort field"
|
|
2223
|
+
},
|
|
2224
|
+
"sortDirection": {
|
|
2225
|
+
"types": [
|
|
2226
|
+
"string"
|
|
2227
|
+
],
|
|
2228
|
+
"description": "Current sort direction"
|
|
2229
|
+
},
|
|
2230
|
+
"searchValue": {
|
|
2231
|
+
"types": [
|
|
2232
|
+
"string"
|
|
2233
|
+
],
|
|
2234
|
+
"description": "Current search query value"
|
|
2235
|
+
},
|
|
2236
|
+
"page": {
|
|
2237
|
+
"types": [
|
|
2238
|
+
"number"
|
|
2239
|
+
],
|
|
2240
|
+
"description": "Current page number"
|
|
2241
|
+
},
|
|
2242
|
+
"pageSize": {
|
|
2243
|
+
"types": [
|
|
2244
|
+
"number"
|
|
2245
|
+
],
|
|
2246
|
+
"description": "Number of items per page"
|
|
2247
|
+
},
|
|
2248
|
+
"totalCount": {
|
|
2249
|
+
"types": [
|
|
2250
|
+
"number"
|
|
2251
|
+
],
|
|
2252
|
+
"description": "Total number of items"
|
|
2253
|
+
},
|
|
2254
|
+
"activeFilters": {
|
|
2255
|
+
"types": [
|
|
2256
|
+
"object"
|
|
2257
|
+
],
|
|
2258
|
+
"description": "Active filters"
|
|
2259
|
+
},
|
|
2260
|
+
"selectedIds": {
|
|
2261
|
+
"types": [
|
|
2262
|
+
"array"
|
|
2263
|
+
],
|
|
2264
|
+
"description": "Currently selected item IDs"
|
|
2265
|
+
},
|
|
2170
2266
|
"columns": {
|
|
2171
2267
|
"types": [
|
|
2172
2268
|
"number"
|
|
@@ -2185,12 +2281,6 @@
|
|
|
2185
2281
|
],
|
|
2186
2282
|
"description": "Cell definitions",
|
|
2187
2283
|
"required": true
|
|
2188
|
-
},
|
|
2189
|
-
"className": {
|
|
2190
|
-
"types": [
|
|
2191
|
-
"string"
|
|
2192
|
-
],
|
|
2193
|
-
"description": "Additional CSS classes"
|
|
2194
2284
|
}
|
|
2195
2285
|
}
|
|
2196
2286
|
},
|
|
@@ -3390,6 +3480,12 @@
|
|
|
3390
3480
|
"badgesize"
|
|
3391
3481
|
],
|
|
3392
3482
|
"description": "size prop"
|
|
3483
|
+
},
|
|
3484
|
+
"amount": {
|
|
3485
|
+
"types": [
|
|
3486
|
+
"number"
|
|
3487
|
+
],
|
|
3488
|
+
"description": "Numeric count or amount to display in badge"
|
|
3393
3489
|
}
|
|
3394
3490
|
}
|
|
3395
3491
|
},
|
|
@@ -3598,6 +3694,30 @@
|
|
|
3598
3694
|
"string"
|
|
3599
3695
|
],
|
|
3600
3696
|
"description": "Declarative event name — emits UI:{action} via eventBus on card click"
|
|
3697
|
+
},
|
|
3698
|
+
"isSelected": {
|
|
3699
|
+
"types": [
|
|
3700
|
+
"boolean"
|
|
3701
|
+
],
|
|
3702
|
+
"description": "Whether the card is selected (highlighted state)"
|
|
3703
|
+
},
|
|
3704
|
+
"name": {
|
|
3705
|
+
"types": [
|
|
3706
|
+
"string"
|
|
3707
|
+
],
|
|
3708
|
+
"description": "Card name (alias for title)"
|
|
3709
|
+
},
|
|
3710
|
+
"level": {
|
|
3711
|
+
"types": [
|
|
3712
|
+
"number"
|
|
3713
|
+
],
|
|
3714
|
+
"description": "Level indicator"
|
|
3715
|
+
},
|
|
3716
|
+
"maxLevel": {
|
|
3717
|
+
"types": [
|
|
3718
|
+
"number"
|
|
3719
|
+
],
|
|
3720
|
+
"description": "Maximum level"
|
|
3601
3721
|
}
|
|
3602
3722
|
}
|
|
3603
3723
|
},
|
|
@@ -7474,6 +7594,12 @@
|
|
|
7474
7594
|
"function"
|
|
7475
7595
|
],
|
|
7476
7596
|
"description": "Callback when user clicks sign out (optional - uses auth context signOut if not provided)"
|
|
7597
|
+
},
|
|
7598
|
+
"children": {
|
|
7599
|
+
"types": [
|
|
7600
|
+
"node"
|
|
7601
|
+
],
|
|
7602
|
+
"description": "Page content rendered inside the main area"
|
|
7477
7603
|
}
|
|
7478
7604
|
}
|
|
7479
7605
|
},
|
|
@@ -7619,6 +7745,12 @@
|
|
|
7619
7745
|
"boolean"
|
|
7620
7746
|
],
|
|
7621
7747
|
"description": "Whether to show the minimal top bar (default: true)"
|
|
7748
|
+
},
|
|
7749
|
+
"children": {
|
|
7750
|
+
"types": [
|
|
7751
|
+
"node"
|
|
7752
|
+
],
|
|
7753
|
+
"description": "Game content rendered inside the full-screen area"
|
|
7622
7754
|
}
|
|
7623
7755
|
}
|
|
7624
7756
|
},
|
|
@@ -8628,11 +8760,23 @@
|
|
|
8628
8760
|
],
|
|
8629
8761
|
"typicalSize": "large",
|
|
8630
8762
|
"propsSchema": {
|
|
8763
|
+
"entity": {
|
|
8764
|
+
"types": [
|
|
8765
|
+
"string"
|
|
8766
|
+
],
|
|
8767
|
+
"description": "Entity name for schema-driven integration"
|
|
8768
|
+
},
|
|
8769
|
+
"data": {
|
|
8770
|
+
"types": [
|
|
8771
|
+
"array"
|
|
8772
|
+
],
|
|
8773
|
+
"description": "Data array provided by the trait via render-ui"
|
|
8774
|
+
},
|
|
8631
8775
|
"className": {
|
|
8632
8776
|
"types": [
|
|
8633
8777
|
"string"
|
|
8634
8778
|
],
|
|
8635
|
-
"description": "
|
|
8779
|
+
"description": "Additional CSS classes"
|
|
8636
8780
|
},
|
|
8637
8781
|
"isLoading": {
|
|
8638
8782
|
"types": [
|
|
@@ -8642,21 +8786,63 @@
|
|
|
8642
8786
|
},
|
|
8643
8787
|
"error": {
|
|
8644
8788
|
"types": [
|
|
8645
|
-
"
|
|
8789
|
+
"object"
|
|
8646
8790
|
],
|
|
8647
8791
|
"description": "Error state"
|
|
8648
8792
|
},
|
|
8649
|
-
"
|
|
8793
|
+
"sortBy": {
|
|
8650
8794
|
"types": [
|
|
8651
8795
|
"string"
|
|
8652
8796
|
],
|
|
8653
|
-
"description": "
|
|
8797
|
+
"description": "Current sort field"
|
|
8798
|
+
},
|
|
8799
|
+
"sortDirection": {
|
|
8800
|
+
"types": [
|
|
8801
|
+
"string"
|
|
8802
|
+
],
|
|
8803
|
+
"description": "Current sort direction"
|
|
8804
|
+
},
|
|
8805
|
+
"searchValue": {
|
|
8806
|
+
"types": [
|
|
8807
|
+
"string"
|
|
8808
|
+
],
|
|
8809
|
+
"description": "Current search query value"
|
|
8810
|
+
},
|
|
8811
|
+
"page": {
|
|
8812
|
+
"types": [
|
|
8813
|
+
"number"
|
|
8814
|
+
],
|
|
8815
|
+
"description": "Current page number"
|
|
8816
|
+
},
|
|
8817
|
+
"pageSize": {
|
|
8818
|
+
"types": [
|
|
8819
|
+
"number"
|
|
8820
|
+
],
|
|
8821
|
+
"description": "Number of items per page"
|
|
8822
|
+
},
|
|
8823
|
+
"totalCount": {
|
|
8824
|
+
"types": [
|
|
8825
|
+
"number"
|
|
8826
|
+
],
|
|
8827
|
+
"description": "Total number of items"
|
|
8828
|
+
},
|
|
8829
|
+
"activeFilters": {
|
|
8830
|
+
"types": [
|
|
8831
|
+
"object"
|
|
8832
|
+
],
|
|
8833
|
+
"description": "Active filters"
|
|
8834
|
+
},
|
|
8835
|
+
"selectedIds": {
|
|
8836
|
+
"types": [
|
|
8837
|
+
"array"
|
|
8838
|
+
],
|
|
8839
|
+
"description": "Currently selected item IDs"
|
|
8654
8840
|
},
|
|
8655
8841
|
"tiles": {
|
|
8656
8842
|
"types": [
|
|
8657
8843
|
"array"
|
|
8658
8844
|
],
|
|
8659
|
-
"description": "
|
|
8845
|
+
"description": "EntityDisplayProps provides: className, isLoading, error, entity,"
|
|
8660
8846
|
},
|
|
8661
8847
|
"units": {
|
|
8662
8848
|
"types": [
|
|
@@ -8698,25 +8884,25 @@
|
|
|
8698
8884
|
"types": [
|
|
8699
8885
|
"function"
|
|
8700
8886
|
],
|
|
8701
|
-
"description": "--- Event handlers ---"
|
|
8887
|
+
"description": "--- Event handlers (legacy callbacks — prefer declarative event string props below) ---"
|
|
8702
8888
|
},
|
|
8703
8889
|
"onUnitClick": {
|
|
8704
8890
|
"types": [
|
|
8705
8891
|
"function"
|
|
8706
8892
|
],
|
|
8707
|
-
"description": "
|
|
8893
|
+
"description": "eslint-disable-next-line almadar/organism-no-callback-props"
|
|
8708
8894
|
},
|
|
8709
8895
|
"onTileHover": {
|
|
8710
8896
|
"types": [
|
|
8711
8897
|
"function"
|
|
8712
8898
|
],
|
|
8713
|
-
"description": "
|
|
8899
|
+
"description": "eslint-disable-next-line almadar/organism-no-callback-props"
|
|
8714
8900
|
},
|
|
8715
8901
|
"onTileLeave": {
|
|
8716
8902
|
"types": [
|
|
8717
8903
|
"function"
|
|
8718
8904
|
],
|
|
8719
|
-
"description": "
|
|
8905
|
+
"description": "eslint-disable-next-line almadar/organism-no-callback-props"
|
|
8720
8906
|
},
|
|
8721
8907
|
"tileClickEvent": {
|
|
8722
8908
|
"types": [
|
|
@@ -8778,6 +8964,18 @@
|
|
|
8778
8964
|
],
|
|
8779
8965
|
"description": "Extra scale multiplier for unit draw size. 1 = default."
|
|
8780
8966
|
},
|
|
8967
|
+
"boardWidth": {
|
|
8968
|
+
"types": [
|
|
8969
|
+
"number"
|
|
8970
|
+
],
|
|
8971
|
+
"description": "Board width in tiles (overrides tile-derived size)"
|
|
8972
|
+
},
|
|
8973
|
+
"boardHeight": {
|
|
8974
|
+
"types": [
|
|
8975
|
+
"number"
|
|
8976
|
+
],
|
|
8977
|
+
"description": "Board height in tiles (overrides tile-derived size)"
|
|
8978
|
+
},
|
|
8781
8979
|
"diamondTopY": {
|
|
8782
8980
|
"types": [
|
|
8783
8981
|
"number"
|
|
@@ -8818,7 +9016,7 @@
|
|
|
8818
9016
|
"types": [
|
|
8819
9017
|
"function"
|
|
8820
9018
|
],
|
|
8821
|
-
"description": "Callback to draw canvas effects after units"
|
|
9019
|
+
"description": "Callback to draw canvas effects after units (canvas-specific: cannot be declarative)"
|
|
8822
9020
|
},
|
|
8823
9021
|
"hasActiveEffects": {
|
|
8824
9022
|
"types": [
|
|
@@ -9457,10 +9655,81 @@
|
|
|
9457
9655
|
"propsSchema": {
|
|
9458
9656
|
"entity": {
|
|
9459
9657
|
"types": [
|
|
9460
|
-
"
|
|
9658
|
+
"string"
|
|
9461
9659
|
],
|
|
9462
|
-
"description": "
|
|
9463
|
-
|
|
9660
|
+
"description": "Entity name for schema-driven integration"
|
|
9661
|
+
},
|
|
9662
|
+
"data": {
|
|
9663
|
+
"types": [
|
|
9664
|
+
"array"
|
|
9665
|
+
],
|
|
9666
|
+
"description": "Data array provided by the trait via render-ui"
|
|
9667
|
+
},
|
|
9668
|
+
"className": {
|
|
9669
|
+
"types": [
|
|
9670
|
+
"string"
|
|
9671
|
+
],
|
|
9672
|
+
"description": "className prop"
|
|
9673
|
+
},
|
|
9674
|
+
"isLoading": {
|
|
9675
|
+
"types": [
|
|
9676
|
+
"boolean"
|
|
9677
|
+
],
|
|
9678
|
+
"description": "Loading state indicator"
|
|
9679
|
+
},
|
|
9680
|
+
"error": {
|
|
9681
|
+
"types": [
|
|
9682
|
+
"object"
|
|
9683
|
+
],
|
|
9684
|
+
"description": "Error state"
|
|
9685
|
+
},
|
|
9686
|
+
"sortBy": {
|
|
9687
|
+
"types": [
|
|
9688
|
+
"string"
|
|
9689
|
+
],
|
|
9690
|
+
"description": "Current sort field"
|
|
9691
|
+
},
|
|
9692
|
+
"sortDirection": {
|
|
9693
|
+
"types": [
|
|
9694
|
+
"string"
|
|
9695
|
+
],
|
|
9696
|
+
"description": "Current sort direction"
|
|
9697
|
+
},
|
|
9698
|
+
"searchValue": {
|
|
9699
|
+
"types": [
|
|
9700
|
+
"string"
|
|
9701
|
+
],
|
|
9702
|
+
"description": "Current search query value"
|
|
9703
|
+
},
|
|
9704
|
+
"page": {
|
|
9705
|
+
"types": [
|
|
9706
|
+
"number"
|
|
9707
|
+
],
|
|
9708
|
+
"description": "Current page number"
|
|
9709
|
+
},
|
|
9710
|
+
"pageSize": {
|
|
9711
|
+
"types": [
|
|
9712
|
+
"number"
|
|
9713
|
+
],
|
|
9714
|
+
"description": "Number of items per page"
|
|
9715
|
+
},
|
|
9716
|
+
"totalCount": {
|
|
9717
|
+
"types": [
|
|
9718
|
+
"number"
|
|
9719
|
+
],
|
|
9720
|
+
"description": "Total number of items"
|
|
9721
|
+
},
|
|
9722
|
+
"activeFilters": {
|
|
9723
|
+
"types": [
|
|
9724
|
+
"object"
|
|
9725
|
+
],
|
|
9726
|
+
"description": "Active filters"
|
|
9727
|
+
},
|
|
9728
|
+
"selectedIds": {
|
|
9729
|
+
"types": [
|
|
9730
|
+
"array"
|
|
9731
|
+
],
|
|
9732
|
+
"description": "Currently selected item IDs"
|
|
9464
9733
|
},
|
|
9465
9734
|
"scale": {
|
|
9466
9735
|
"types": [
|
|
@@ -9587,12 +9856,6 @@
|
|
|
9587
9856
|
"function"
|
|
9588
9857
|
],
|
|
9589
9858
|
"description": "resolveUnitFrame prop"
|
|
9590
|
-
},
|
|
9591
|
-
"className": {
|
|
9592
|
-
"types": [
|
|
9593
|
-
"string"
|
|
9594
|
-
],
|
|
9595
|
-
"description": "className prop"
|
|
9596
9859
|
}
|
|
9597
9860
|
}
|
|
9598
9861
|
},
|