@almadar/core 10.61.0 → 10.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builders.d.ts +3 -3
- package/dist/builders.js +10 -0
- package/dist/builders.js.map +1 -1
- package/dist/{effect-a1W_hXyG.d.ts → effect-CgDrWfKW.d.ts} +60 -8
- package/dist/{entityAccess-DU_mdtr5.d.ts → entityAccess-Dr7XPoi_.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +10 -0
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/{index-C-qK6t2U.d.ts → index-D2rQS1PS.d.ts} +4 -4
- package/dist/index.d.ts +11 -11
- package/dist/index.js +855 -15
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +30 -0
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +11 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +1788 -15
- package/dist/patterns/index.js +835 -13
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +817 -10
- package/dist/patterns/registry.json +817 -10
- package/dist/{schema-Dj4GC3Vo.d.ts → schema-KdqDOMXm.d.ts} +2 -2
- package/dist/{trait-DgZ5Exel.d.ts → trait-CesmHKZ2.d.ts} +1 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +16 -1
- package/dist/types/index.js.map +1 -1
- package/dist/{types-CGjZ7Odu.d.ts → types-mYXAkmBy.d.ts} +2 -2
- package/package.json +1 -1
package/dist/patterns/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
// src/patterns/patterns-registry.json
|
|
4
4
|
var patterns_registry_default = {
|
|
5
5
|
version: "1.0.0",
|
|
6
|
-
exportedAt: "2026-08-
|
|
6
|
+
exportedAt: "2026-08-20T23:14:19.545Z",
|
|
7
7
|
patterns: {
|
|
8
8
|
"entity-table": {
|
|
9
9
|
type: "entity-table",
|
|
@@ -1239,6 +1239,7 @@ var patterns_registry_default = {
|
|
|
1239
1239
|
tier: "organisms",
|
|
1240
1240
|
family: "core",
|
|
1241
1241
|
description: "Detail view panel for drawers/sidebars",
|
|
1242
|
+
fieldsContract: "display",
|
|
1242
1243
|
suggestedFor: [
|
|
1243
1244
|
"drawer content",
|
|
1244
1245
|
"side panels",
|
|
@@ -1520,6 +1521,54 @@ var patterns_registry_default = {
|
|
|
1520
1521
|
]
|
|
1521
1522
|
}
|
|
1522
1523
|
},
|
|
1524
|
+
backAction: {
|
|
1525
|
+
types: [
|
|
1526
|
+
"object"
|
|
1527
|
+
],
|
|
1528
|
+
description: "Navigation-back affordance. Renders top-LEFT before the title (OS/back convention \u2014 Almadar_UX \xA78.4), spatially separated from the right-aligned action buttons + close X. Never inferred from actions[] labels.",
|
|
1529
|
+
properties: {
|
|
1530
|
+
label: {
|
|
1531
|
+
types: [
|
|
1532
|
+
"string"
|
|
1533
|
+
]
|
|
1534
|
+
},
|
|
1535
|
+
icon: {
|
|
1536
|
+
types: [
|
|
1537
|
+
"icon",
|
|
1538
|
+
"string"
|
|
1539
|
+
]
|
|
1540
|
+
},
|
|
1541
|
+
onClick: {
|
|
1542
|
+
types: [
|
|
1543
|
+
"function"
|
|
1544
|
+
]
|
|
1545
|
+
},
|
|
1546
|
+
event: {
|
|
1547
|
+
types: [
|
|
1548
|
+
"string"
|
|
1549
|
+
]
|
|
1550
|
+
},
|
|
1551
|
+
navigatesTo: {
|
|
1552
|
+
types: [
|
|
1553
|
+
"string"
|
|
1554
|
+
]
|
|
1555
|
+
},
|
|
1556
|
+
variant: {
|
|
1557
|
+
types: [
|
|
1558
|
+
"string"
|
|
1559
|
+
],
|
|
1560
|
+
enumValues: [
|
|
1561
|
+
"primary",
|
|
1562
|
+
"secondary",
|
|
1563
|
+
"ghost",
|
|
1564
|
+
"danger"
|
|
1565
|
+
]
|
|
1566
|
+
}
|
|
1567
|
+
},
|
|
1568
|
+
propertyRequired: [
|
|
1569
|
+
"label"
|
|
1570
|
+
]
|
|
1571
|
+
},
|
|
1523
1572
|
footer: {
|
|
1524
1573
|
types: [
|
|
1525
1574
|
"node"
|
|
@@ -1554,6 +1603,26 @@ var patterns_registry_default = {
|
|
|
1554
1603
|
types: [
|
|
1555
1604
|
"string"
|
|
1556
1605
|
]
|
|
1606
|
+
},
|
|
1607
|
+
type: {
|
|
1608
|
+
types: [
|
|
1609
|
+
"string"
|
|
1610
|
+
]
|
|
1611
|
+
},
|
|
1612
|
+
values: {
|
|
1613
|
+
types: [
|
|
1614
|
+
"array"
|
|
1615
|
+
],
|
|
1616
|
+
items: {
|
|
1617
|
+
types: [
|
|
1618
|
+
"string"
|
|
1619
|
+
]
|
|
1620
|
+
}
|
|
1621
|
+
},
|
|
1622
|
+
relation: {
|
|
1623
|
+
types: [
|
|
1624
|
+
"string"
|
|
1625
|
+
]
|
|
1557
1626
|
}
|
|
1558
1627
|
},
|
|
1559
1628
|
required: [
|
|
@@ -1618,6 +1687,48 @@ var patterns_registry_default = {
|
|
|
1618
1687
|
"boolean"
|
|
1619
1688
|
],
|
|
1620
1689
|
description: "Show actions flag"
|
|
1690
|
+
},
|
|
1691
|
+
relationsData: {
|
|
1692
|
+
types: [
|
|
1693
|
+
"object"
|
|
1694
|
+
],
|
|
1695
|
+
description: "Relation display data: { fieldName: [{value, label}] } \u2014 injected server-side by the runtime (relation-option injection) or bound by compiled codegen; resolves stored foreign ids to display names.",
|
|
1696
|
+
mapValue: {
|
|
1697
|
+
types: [
|
|
1698
|
+
"array"
|
|
1699
|
+
],
|
|
1700
|
+
items: {
|
|
1701
|
+
types: [
|
|
1702
|
+
"object"
|
|
1703
|
+
],
|
|
1704
|
+
properties: {
|
|
1705
|
+
value: {
|
|
1706
|
+
types: [
|
|
1707
|
+
"string"
|
|
1708
|
+
]
|
|
1709
|
+
},
|
|
1710
|
+
label: {
|
|
1711
|
+
types: [
|
|
1712
|
+
"string"
|
|
1713
|
+
]
|
|
1714
|
+
},
|
|
1715
|
+
description: {
|
|
1716
|
+
types: [
|
|
1717
|
+
"string"
|
|
1718
|
+
]
|
|
1719
|
+
},
|
|
1720
|
+
disabled: {
|
|
1721
|
+
types: [
|
|
1722
|
+
"boolean"
|
|
1723
|
+
]
|
|
1724
|
+
}
|
|
1725
|
+
},
|
|
1726
|
+
required: [
|
|
1727
|
+
"value",
|
|
1728
|
+
"label"
|
|
1729
|
+
]
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1621
1732
|
}
|
|
1622
1733
|
}
|
|
1623
1734
|
},
|
|
@@ -1692,9 +1803,10 @@ var patterns_registry_default = {
|
|
|
1692
1803
|
},
|
|
1693
1804
|
status: {
|
|
1694
1805
|
types: [
|
|
1695
|
-
"object"
|
|
1806
|
+
"object",
|
|
1807
|
+
"string"
|
|
1696
1808
|
],
|
|
1697
|
-
description: "Status badge",
|
|
1809
|
+
description: "Status badge \u2014 a bare string (an entity's status field bound directly, e.g. `status: @entity.status`) renders as a default-variant badge",
|
|
1698
1810
|
properties: {
|
|
1699
1811
|
label: {
|
|
1700
1812
|
types: [
|
|
@@ -1889,6 +2001,7 @@ var patterns_registry_default = {
|
|
|
1889
2001
|
tier: "organisms",
|
|
1890
2002
|
family: "core",
|
|
1891
2003
|
description: "Complete form with fields and actions",
|
|
2004
|
+
fieldsContract: "form",
|
|
1892
2005
|
suggestedFor: [
|
|
1893
2006
|
"create forms",
|
|
1894
2007
|
"edit forms",
|
|
@@ -2121,6 +2234,11 @@ var patterns_registry_default = {
|
|
|
2121
2234
|
types: [
|
|
2122
2235
|
"boolean"
|
|
2123
2236
|
]
|
|
2237
|
+
},
|
|
2238
|
+
hint: {
|
|
2239
|
+
types: [
|
|
2240
|
+
"string"
|
|
2241
|
+
]
|
|
2124
2242
|
}
|
|
2125
2243
|
}
|
|
2126
2244
|
}
|
|
@@ -2273,6 +2391,42 @@ var patterns_registry_default = {
|
|
|
2273
2391
|
},
|
|
2274
2392
|
default: {}
|
|
2275
2393
|
},
|
|
2394
|
+
fieldOverrides: {
|
|
2395
|
+
types: [
|
|
2396
|
+
"array"
|
|
2397
|
+
],
|
|
2398
|
+
description: "Per-field display-copy overrides (label/placeholder/hint), merged by field name over the schema-enriched fields.",
|
|
2399
|
+
items: {
|
|
2400
|
+
types: [
|
|
2401
|
+
"object"
|
|
2402
|
+
],
|
|
2403
|
+
properties: {
|
|
2404
|
+
name: {
|
|
2405
|
+
types: [
|
|
2406
|
+
"string"
|
|
2407
|
+
]
|
|
2408
|
+
},
|
|
2409
|
+
label: {
|
|
2410
|
+
types: [
|
|
2411
|
+
"string"
|
|
2412
|
+
]
|
|
2413
|
+
},
|
|
2414
|
+
placeholder: {
|
|
2415
|
+
types: [
|
|
2416
|
+
"string"
|
|
2417
|
+
]
|
|
2418
|
+
},
|
|
2419
|
+
hint: {
|
|
2420
|
+
types: [
|
|
2421
|
+
"string"
|
|
2422
|
+
]
|
|
2423
|
+
}
|
|
2424
|
+
},
|
|
2425
|
+
required: [
|
|
2426
|
+
"name"
|
|
2427
|
+
]
|
|
2428
|
+
}
|
|
2429
|
+
},
|
|
2276
2430
|
conditionalFields: {
|
|
2277
2431
|
types: [
|
|
2278
2432
|
"object",
|
|
@@ -2399,7 +2553,12 @@ var patterns_registry_default = {
|
|
|
2399
2553
|
formValues: {
|
|
2400
2554
|
types: [
|
|
2401
2555
|
"object"
|
|
2402
|
-
]
|
|
2556
|
+
],
|
|
2557
|
+
mapValue: {
|
|
2558
|
+
types: [
|
|
2559
|
+
"object"
|
|
2560
|
+
]
|
|
2561
|
+
}
|
|
2403
2562
|
},
|
|
2404
2563
|
globalVariables: {
|
|
2405
2564
|
types: [
|
|
@@ -2426,7 +2585,12 @@ var patterns_registry_default = {
|
|
|
2426
2585
|
entity: {
|
|
2427
2586
|
types: [
|
|
2428
2587
|
"object"
|
|
2429
|
-
]
|
|
2588
|
+
],
|
|
2589
|
+
mapValue: {
|
|
2590
|
+
types: [
|
|
2591
|
+
"object"
|
|
2592
|
+
]
|
|
2593
|
+
}
|
|
2430
2594
|
}
|
|
2431
2595
|
},
|
|
2432
2596
|
propertyRequired: [
|
|
@@ -2615,6 +2779,11 @@ var patterns_registry_default = {
|
|
|
2615
2779
|
types: [
|
|
2616
2780
|
"boolean"
|
|
2617
2781
|
]
|
|
2782
|
+
},
|
|
2783
|
+
hint: {
|
|
2784
|
+
types: [
|
|
2785
|
+
"string"
|
|
2786
|
+
]
|
|
2618
2787
|
}
|
|
2619
2788
|
}
|
|
2620
2789
|
}
|
|
@@ -2698,6 +2867,7 @@ var patterns_registry_default = {
|
|
|
2698
2867
|
tier: "organisms",
|
|
2699
2868
|
family: "core",
|
|
2700
2869
|
description: "Alias for form \u2014 Complete form with fields and actions",
|
|
2870
|
+
fieldsContract: "form",
|
|
2701
2871
|
suggestedFor: [
|
|
2702
2872
|
"create forms",
|
|
2703
2873
|
"edit forms",
|
|
@@ -2930,6 +3100,11 @@ var patterns_registry_default = {
|
|
|
2930
3100
|
types: [
|
|
2931
3101
|
"boolean"
|
|
2932
3102
|
]
|
|
3103
|
+
},
|
|
3104
|
+
hint: {
|
|
3105
|
+
types: [
|
|
3106
|
+
"string"
|
|
3107
|
+
]
|
|
2933
3108
|
}
|
|
2934
3109
|
}
|
|
2935
3110
|
}
|
|
@@ -3082,6 +3257,42 @@ var patterns_registry_default = {
|
|
|
3082
3257
|
},
|
|
3083
3258
|
default: {}
|
|
3084
3259
|
},
|
|
3260
|
+
fieldOverrides: {
|
|
3261
|
+
types: [
|
|
3262
|
+
"array"
|
|
3263
|
+
],
|
|
3264
|
+
description: "Per-field display-copy overrides (label/placeholder/hint), merged by field name over the schema-enriched fields.",
|
|
3265
|
+
items: {
|
|
3266
|
+
types: [
|
|
3267
|
+
"object"
|
|
3268
|
+
],
|
|
3269
|
+
properties: {
|
|
3270
|
+
name: {
|
|
3271
|
+
types: [
|
|
3272
|
+
"string"
|
|
3273
|
+
]
|
|
3274
|
+
},
|
|
3275
|
+
label: {
|
|
3276
|
+
types: [
|
|
3277
|
+
"string"
|
|
3278
|
+
]
|
|
3279
|
+
},
|
|
3280
|
+
placeholder: {
|
|
3281
|
+
types: [
|
|
3282
|
+
"string"
|
|
3283
|
+
]
|
|
3284
|
+
},
|
|
3285
|
+
hint: {
|
|
3286
|
+
types: [
|
|
3287
|
+
"string"
|
|
3288
|
+
]
|
|
3289
|
+
}
|
|
3290
|
+
},
|
|
3291
|
+
required: [
|
|
3292
|
+
"name"
|
|
3293
|
+
]
|
|
3294
|
+
}
|
|
3295
|
+
},
|
|
3085
3296
|
conditionalFields: {
|
|
3086
3297
|
types: [
|
|
3087
3298
|
"object",
|
|
@@ -3208,7 +3419,12 @@ var patterns_registry_default = {
|
|
|
3208
3419
|
formValues: {
|
|
3209
3420
|
types: [
|
|
3210
3421
|
"object"
|
|
3211
|
-
]
|
|
3422
|
+
],
|
|
3423
|
+
mapValue: {
|
|
3424
|
+
types: [
|
|
3425
|
+
"object"
|
|
3426
|
+
]
|
|
3427
|
+
}
|
|
3212
3428
|
},
|
|
3213
3429
|
globalVariables: {
|
|
3214
3430
|
types: [
|
|
@@ -3235,7 +3451,12 @@ var patterns_registry_default = {
|
|
|
3235
3451
|
entity: {
|
|
3236
3452
|
types: [
|
|
3237
3453
|
"object"
|
|
3238
|
-
]
|
|
3454
|
+
],
|
|
3455
|
+
mapValue: {
|
|
3456
|
+
types: [
|
|
3457
|
+
"object"
|
|
3458
|
+
]
|
|
3459
|
+
}
|
|
3239
3460
|
}
|
|
3240
3461
|
},
|
|
3241
3462
|
propertyRequired: [
|
|
@@ -3424,6 +3645,11 @@ var patterns_registry_default = {
|
|
|
3424
3645
|
types: [
|
|
3425
3646
|
"boolean"
|
|
3426
3647
|
]
|
|
3648
|
+
},
|
|
3649
|
+
hint: {
|
|
3650
|
+
types: [
|
|
3651
|
+
"string"
|
|
3652
|
+
]
|
|
3427
3653
|
}
|
|
3428
3654
|
}
|
|
3429
3655
|
}
|
|
@@ -12817,7 +13043,7 @@ var patterns_registry_default = {
|
|
|
12817
13043
|
types: [
|
|
12818
13044
|
"object"
|
|
12819
13045
|
],
|
|
12820
|
-
description: "Current user info (optional - auto-populated from auth context if not provided)",
|
|
13046
|
+
description: "Current user info (optional - auto-populated from auth context if not provided). Accepts `null` as well as `undefined`: the `.lolo` substrate's signed-out spelling is `(if @config.viewerName {\u2026} null)`, and the compiled path passes that `null` through verbatim.",
|
|
12821
13047
|
properties: {
|
|
12822
13048
|
name: {
|
|
12823
13049
|
types: [
|
|
@@ -12836,8 +13062,7 @@ var patterns_registry_default = {
|
|
|
12836
13062
|
}
|
|
12837
13063
|
},
|
|
12838
13064
|
propertyRequired: [
|
|
12839
|
-
"name"
|
|
12840
|
-
"email"
|
|
13065
|
+
"name"
|
|
12841
13066
|
]
|
|
12842
13067
|
},
|
|
12843
13068
|
headerActions: {
|
|
@@ -40055,6 +40280,28 @@ var patterns_registry_default = {
|
|
|
40055
40280
|
}
|
|
40056
40281
|
]
|
|
40057
40282
|
},
|
|
40283
|
+
keyMap: {
|
|
40284
|
+
types: [
|
|
40285
|
+
"object"
|
|
40286
|
+
],
|
|
40287
|
+
description: "Maps a keydown `e.code` \u2192 the board's SEMANTIC event (device-agnostic input), emitted as `UI:{event}` \u2014 same contract as the game canvas keyMap.",
|
|
40288
|
+
mapValue: {
|
|
40289
|
+
types: [
|
|
40290
|
+
"string"
|
|
40291
|
+
]
|
|
40292
|
+
}
|
|
40293
|
+
},
|
|
40294
|
+
keyUpMap: {
|
|
40295
|
+
types: [
|
|
40296
|
+
"object"
|
|
40297
|
+
],
|
|
40298
|
+
description: "Maps a keyup `e.code` \u2192 the board's SEMANTIC event.",
|
|
40299
|
+
mapValue: {
|
|
40300
|
+
types: [
|
|
40301
|
+
"string"
|
|
40302
|
+
]
|
|
40303
|
+
}
|
|
40304
|
+
},
|
|
40058
40305
|
isLoading: {
|
|
40059
40306
|
types: [
|
|
40060
40307
|
"boolean"
|
|
@@ -46767,6 +47014,566 @@ var patterns_registry_default = {
|
|
|
46767
47014
|
]
|
|
46768
47015
|
}
|
|
46769
47016
|
}
|
|
47017
|
+
},
|
|
47018
|
+
"fx-overlay": {
|
|
47019
|
+
type: "fx-overlay",
|
|
47020
|
+
category: "container",
|
|
47021
|
+
tier: "molecules",
|
|
47022
|
+
family: "core",
|
|
47023
|
+
description: "FxOverlay component",
|
|
47024
|
+
suggestedFor: [
|
|
47025
|
+
"overlay",
|
|
47026
|
+
"fx overlay"
|
|
47027
|
+
],
|
|
47028
|
+
typicalSize: "medium",
|
|
47029
|
+
propsSchema: {
|
|
47030
|
+
items: {
|
|
47031
|
+
types: [
|
|
47032
|
+
"array"
|
|
47033
|
+
],
|
|
47034
|
+
description: "Live screen-space fx entries (the mechanic's fx list filtered to `space == \"screen\"`); mount starts each item's animation, ttl decay unmounts it.",
|
|
47035
|
+
required: true,
|
|
47036
|
+
items: {
|
|
47037
|
+
types: [
|
|
47038
|
+
"object"
|
|
47039
|
+
],
|
|
47040
|
+
properties: {
|
|
47041
|
+
id: {
|
|
47042
|
+
types: [
|
|
47043
|
+
"string"
|
|
47044
|
+
]
|
|
47045
|
+
},
|
|
47046
|
+
type: {
|
|
47047
|
+
types: [
|
|
47048
|
+
"string"
|
|
47049
|
+
]
|
|
47050
|
+
},
|
|
47051
|
+
effect: {
|
|
47052
|
+
types: [
|
|
47053
|
+
"string"
|
|
47054
|
+
],
|
|
47055
|
+
enumValues: [
|
|
47056
|
+
"confetti",
|
|
47057
|
+
"flash",
|
|
47058
|
+
"shake",
|
|
47059
|
+
"sparkle",
|
|
47060
|
+
"float-text",
|
|
47061
|
+
"streak-glow"
|
|
47062
|
+
]
|
|
47063
|
+
},
|
|
47064
|
+
message: {
|
|
47065
|
+
types: [
|
|
47066
|
+
"string"
|
|
47067
|
+
]
|
|
47068
|
+
},
|
|
47069
|
+
color: {
|
|
47070
|
+
types: [
|
|
47071
|
+
"string"
|
|
47072
|
+
]
|
|
47073
|
+
},
|
|
47074
|
+
size: {
|
|
47075
|
+
types: [
|
|
47076
|
+
"number"
|
|
47077
|
+
]
|
|
47078
|
+
},
|
|
47079
|
+
x: {
|
|
47080
|
+
types: [
|
|
47081
|
+
"number"
|
|
47082
|
+
]
|
|
47083
|
+
},
|
|
47084
|
+
z: {
|
|
47085
|
+
types: [
|
|
47086
|
+
"number"
|
|
47087
|
+
]
|
|
47088
|
+
},
|
|
47089
|
+
y: {
|
|
47090
|
+
types: [
|
|
47091
|
+
"number"
|
|
47092
|
+
]
|
|
47093
|
+
},
|
|
47094
|
+
ttl: {
|
|
47095
|
+
types: [
|
|
47096
|
+
"number"
|
|
47097
|
+
]
|
|
47098
|
+
},
|
|
47099
|
+
maxTtl: {
|
|
47100
|
+
types: [
|
|
47101
|
+
"number"
|
|
47102
|
+
]
|
|
47103
|
+
},
|
|
47104
|
+
bornAt: {
|
|
47105
|
+
types: [
|
|
47106
|
+
"number"
|
|
47107
|
+
]
|
|
47108
|
+
},
|
|
47109
|
+
space: {
|
|
47110
|
+
types: [
|
|
47111
|
+
"string"
|
|
47112
|
+
],
|
|
47113
|
+
enumValues: [
|
|
47114
|
+
"world",
|
|
47115
|
+
"screen"
|
|
47116
|
+
]
|
|
47117
|
+
},
|
|
47118
|
+
particleCount: {
|
|
47119
|
+
types: [
|
|
47120
|
+
"number"
|
|
47121
|
+
]
|
|
47122
|
+
},
|
|
47123
|
+
vx: {
|
|
47124
|
+
types: [
|
|
47125
|
+
"number"
|
|
47126
|
+
]
|
|
47127
|
+
},
|
|
47128
|
+
vy: {
|
|
47129
|
+
types: [
|
|
47130
|
+
"number"
|
|
47131
|
+
]
|
|
47132
|
+
},
|
|
47133
|
+
vz: {
|
|
47134
|
+
types: [
|
|
47135
|
+
"number"
|
|
47136
|
+
]
|
|
47137
|
+
}
|
|
47138
|
+
},
|
|
47139
|
+
required: [
|
|
47140
|
+
"id",
|
|
47141
|
+
"type",
|
|
47142
|
+
"ttl"
|
|
47143
|
+
]
|
|
47144
|
+
}
|
|
47145
|
+
},
|
|
47146
|
+
tickMs: {
|
|
47147
|
+
types: [
|
|
47148
|
+
"number"
|
|
47149
|
+
],
|
|
47150
|
+
description: "The fx mechanic's decay tick period in ms; per-item animation duration = maxTtl \xD7 tickMs. Default 500."
|
|
47151
|
+
},
|
|
47152
|
+
children: {
|
|
47153
|
+
types: [
|
|
47154
|
+
"node"
|
|
47155
|
+
],
|
|
47156
|
+
description: "Wrapped content \u2014 the `shake` target and the overlay's bounds."
|
|
47157
|
+
},
|
|
47158
|
+
className: {
|
|
47159
|
+
types: [
|
|
47160
|
+
"string"
|
|
47161
|
+
],
|
|
47162
|
+
description: "Additional class names on the outermost element."
|
|
47163
|
+
}
|
|
47164
|
+
}
|
|
47165
|
+
},
|
|
47166
|
+
"draw-fx-layer": {
|
|
47167
|
+
type: "draw-fx-layer",
|
|
47168
|
+
category: "game",
|
|
47169
|
+
tier: "molecules",
|
|
47170
|
+
family: "game",
|
|
47171
|
+
description: "DrawFxLayer component",
|
|
47172
|
+
suggestedFor: [
|
|
47173
|
+
"draw",
|
|
47174
|
+
"layer",
|
|
47175
|
+
"draw fx layer"
|
|
47176
|
+
],
|
|
47177
|
+
typicalSize: "medium",
|
|
47178
|
+
propsSchema: {
|
|
47179
|
+
id: {
|
|
47180
|
+
types: [
|
|
47181
|
+
"string"
|
|
47182
|
+
],
|
|
47183
|
+
description: "Optional source-tagged hit-test handle \u2014 the host indexes the drawable's ScenePos\u2192id so a pointer/raycast at that cell resolves to this id (unit/entity click). No id \u2192 the host emits only the coordinate (tile click)."
|
|
47184
|
+
},
|
|
47185
|
+
type: {
|
|
47186
|
+
types: [
|
|
47187
|
+
"unknown"
|
|
47188
|
+
],
|
|
47189
|
+
description: "type prop",
|
|
47190
|
+
required: true
|
|
47191
|
+
},
|
|
47192
|
+
items: {
|
|
47193
|
+
types: [
|
|
47194
|
+
"array"
|
|
47195
|
+
],
|
|
47196
|
+
description: 'The live fx entries \u2014 the mechanic\'s `@entity.fx` list passed whole; `space: "screen"` entries are skipped (the overlay owns those).',
|
|
47197
|
+
required: true,
|
|
47198
|
+
items: {
|
|
47199
|
+
types: [
|
|
47200
|
+
"object"
|
|
47201
|
+
],
|
|
47202
|
+
properties: {
|
|
47203
|
+
id: {
|
|
47204
|
+
types: [
|
|
47205
|
+
"string"
|
|
47206
|
+
]
|
|
47207
|
+
},
|
|
47208
|
+
type: {
|
|
47209
|
+
types: [
|
|
47210
|
+
"string"
|
|
47211
|
+
]
|
|
47212
|
+
},
|
|
47213
|
+
position: {
|
|
47214
|
+
types: [
|
|
47215
|
+
"object"
|
|
47216
|
+
],
|
|
47217
|
+
scenePos: true,
|
|
47218
|
+
properties: {
|
|
47219
|
+
x: {
|
|
47220
|
+
types: [
|
|
47221
|
+
"number"
|
|
47222
|
+
]
|
|
47223
|
+
},
|
|
47224
|
+
y: {
|
|
47225
|
+
types: [
|
|
47226
|
+
"number"
|
|
47227
|
+
]
|
|
47228
|
+
},
|
|
47229
|
+
z: {
|
|
47230
|
+
types: [
|
|
47231
|
+
"number"
|
|
47232
|
+
]
|
|
47233
|
+
}
|
|
47234
|
+
},
|
|
47235
|
+
required: [
|
|
47236
|
+
"x",
|
|
47237
|
+
"y"
|
|
47238
|
+
]
|
|
47239
|
+
},
|
|
47240
|
+
x: {
|
|
47241
|
+
types: [
|
|
47242
|
+
"number"
|
|
47243
|
+
]
|
|
47244
|
+
},
|
|
47245
|
+
z: {
|
|
47246
|
+
types: [
|
|
47247
|
+
"number"
|
|
47248
|
+
]
|
|
47249
|
+
},
|
|
47250
|
+
y: {
|
|
47251
|
+
types: [
|
|
47252
|
+
"number"
|
|
47253
|
+
]
|
|
47254
|
+
},
|
|
47255
|
+
message: {
|
|
47256
|
+
types: [
|
|
47257
|
+
"string"
|
|
47258
|
+
]
|
|
47259
|
+
},
|
|
47260
|
+
ttl: {
|
|
47261
|
+
types: [
|
|
47262
|
+
"number"
|
|
47263
|
+
]
|
|
47264
|
+
},
|
|
47265
|
+
maxTtl: {
|
|
47266
|
+
types: [
|
|
47267
|
+
"number"
|
|
47268
|
+
]
|
|
47269
|
+
},
|
|
47270
|
+
bornAt: {
|
|
47271
|
+
types: [
|
|
47272
|
+
"number"
|
|
47273
|
+
]
|
|
47274
|
+
},
|
|
47275
|
+
space: {
|
|
47276
|
+
types: [
|
|
47277
|
+
"string"
|
|
47278
|
+
],
|
|
47279
|
+
enumValues: [
|
|
47280
|
+
"world",
|
|
47281
|
+
"screen"
|
|
47282
|
+
]
|
|
47283
|
+
},
|
|
47284
|
+
effect: {
|
|
47285
|
+
types: [
|
|
47286
|
+
"string"
|
|
47287
|
+
],
|
|
47288
|
+
enumValues: [
|
|
47289
|
+
"confetti",
|
|
47290
|
+
"flash",
|
|
47291
|
+
"shake",
|
|
47292
|
+
"sparkle",
|
|
47293
|
+
"float-text",
|
|
47294
|
+
"streak-glow"
|
|
47295
|
+
]
|
|
47296
|
+
},
|
|
47297
|
+
color: {
|
|
47298
|
+
types: [
|
|
47299
|
+
"string"
|
|
47300
|
+
]
|
|
47301
|
+
},
|
|
47302
|
+
size: {
|
|
47303
|
+
types: [
|
|
47304
|
+
"number"
|
|
47305
|
+
]
|
|
47306
|
+
},
|
|
47307
|
+
vx: {
|
|
47308
|
+
types: [
|
|
47309
|
+
"number"
|
|
47310
|
+
]
|
|
47311
|
+
},
|
|
47312
|
+
vy: {
|
|
47313
|
+
types: [
|
|
47314
|
+
"number"
|
|
47315
|
+
]
|
|
47316
|
+
},
|
|
47317
|
+
vz: {
|
|
47318
|
+
types: [
|
|
47319
|
+
"number"
|
|
47320
|
+
]
|
|
47321
|
+
},
|
|
47322
|
+
particleCount: {
|
|
47323
|
+
types: [
|
|
47324
|
+
"number"
|
|
47325
|
+
]
|
|
47326
|
+
}
|
|
47327
|
+
},
|
|
47328
|
+
required: [
|
|
47329
|
+
"id",
|
|
47330
|
+
"type",
|
|
47331
|
+
"x",
|
|
47332
|
+
"ttl"
|
|
47333
|
+
]
|
|
47334
|
+
}
|
|
47335
|
+
},
|
|
47336
|
+
presets: {
|
|
47337
|
+
types: [
|
|
47338
|
+
"array"
|
|
47339
|
+
],
|
|
47340
|
+
description: "Consumer-declared effect vocabulary \u2014 one row per fx `type` (look + recipe). Unknown types fall back to a neutral spark burst.",
|
|
47341
|
+
items: {
|
|
47342
|
+
types: [
|
|
47343
|
+
"object"
|
|
47344
|
+
],
|
|
47345
|
+
properties: {
|
|
47346
|
+
type: {
|
|
47347
|
+
types: [
|
|
47348
|
+
"string"
|
|
47349
|
+
]
|
|
47350
|
+
},
|
|
47351
|
+
color: {
|
|
47352
|
+
types: [
|
|
47353
|
+
"string"
|
|
47354
|
+
]
|
|
47355
|
+
},
|
|
47356
|
+
color2: {
|
|
47357
|
+
types: [
|
|
47358
|
+
"string"
|
|
47359
|
+
]
|
|
47360
|
+
},
|
|
47361
|
+
size: {
|
|
47362
|
+
types: [
|
|
47363
|
+
"number"
|
|
47364
|
+
]
|
|
47365
|
+
},
|
|
47366
|
+
shape: {
|
|
47367
|
+
types: [
|
|
47368
|
+
"string"
|
|
47369
|
+
],
|
|
47370
|
+
enumValues: [
|
|
47371
|
+
"spark",
|
|
47372
|
+
"ring",
|
|
47373
|
+
"puff",
|
|
47374
|
+
"streak"
|
|
47375
|
+
]
|
|
47376
|
+
},
|
|
47377
|
+
count: {
|
|
47378
|
+
types: [
|
|
47379
|
+
"number"
|
|
47380
|
+
]
|
|
47381
|
+
},
|
|
47382
|
+
glow: {
|
|
47383
|
+
types: [
|
|
47384
|
+
"number"
|
|
47385
|
+
]
|
|
47386
|
+
},
|
|
47387
|
+
gravity: {
|
|
47388
|
+
types: [
|
|
47389
|
+
"number"
|
|
47390
|
+
]
|
|
47391
|
+
},
|
|
47392
|
+
vx: {
|
|
47393
|
+
types: [
|
|
47394
|
+
"number"
|
|
47395
|
+
]
|
|
47396
|
+
},
|
|
47397
|
+
vy: {
|
|
47398
|
+
types: [
|
|
47399
|
+
"number"
|
|
47400
|
+
]
|
|
47401
|
+
},
|
|
47402
|
+
vz: {
|
|
47403
|
+
types: [
|
|
47404
|
+
"number"
|
|
47405
|
+
]
|
|
47406
|
+
},
|
|
47407
|
+
space: {
|
|
47408
|
+
types: [
|
|
47409
|
+
"string"
|
|
47410
|
+
],
|
|
47411
|
+
enumValues: [
|
|
47412
|
+
"world",
|
|
47413
|
+
"screen"
|
|
47414
|
+
]
|
|
47415
|
+
},
|
|
47416
|
+
effect: {
|
|
47417
|
+
types: [
|
|
47418
|
+
"string"
|
|
47419
|
+
],
|
|
47420
|
+
enumValues: [
|
|
47421
|
+
"confetti",
|
|
47422
|
+
"flash",
|
|
47423
|
+
"shake",
|
|
47424
|
+
"sparkle",
|
|
47425
|
+
"float-text",
|
|
47426
|
+
"streak-glow"
|
|
47427
|
+
]
|
|
47428
|
+
},
|
|
47429
|
+
particleCount: {
|
|
47430
|
+
types: [
|
|
47431
|
+
"number"
|
|
47432
|
+
]
|
|
47433
|
+
}
|
|
47434
|
+
},
|
|
47435
|
+
required: [
|
|
47436
|
+
"type"
|
|
47437
|
+
]
|
|
47438
|
+
}
|
|
47439
|
+
},
|
|
47440
|
+
art: {
|
|
47441
|
+
types: [
|
|
47442
|
+
"object"
|
|
47443
|
+
],
|
|
47444
|
+
description: "Vector art per fx type (an asset-art map: type \u2192 anim-state \u2192 drawables); a type's `idle` state wins over sprites/procedural.",
|
|
47445
|
+
mapValue: {
|
|
47446
|
+
types: [
|
|
47447
|
+
"object"
|
|
47448
|
+
],
|
|
47449
|
+
mapValue: {
|
|
47450
|
+
types: [
|
|
47451
|
+
"array"
|
|
47452
|
+
],
|
|
47453
|
+
items: {
|
|
47454
|
+
types: [
|
|
47455
|
+
"object"
|
|
47456
|
+
],
|
|
47457
|
+
drawableSlot: true
|
|
47458
|
+
}
|
|
47459
|
+
}
|
|
47460
|
+
}
|
|
47461
|
+
},
|
|
47462
|
+
sprites: {
|
|
47463
|
+
types: [
|
|
47464
|
+
"object"
|
|
47465
|
+
],
|
|
47466
|
+
description: "Sprite asset per fx type (an asset-manifest effects map) \u2014 used when no vector art matches.",
|
|
47467
|
+
mapValue: {
|
|
47468
|
+
types: [
|
|
47469
|
+
"object"
|
|
47470
|
+
],
|
|
47471
|
+
properties: {
|
|
47472
|
+
url: {
|
|
47473
|
+
types: [
|
|
47474
|
+
"asset"
|
|
47475
|
+
]
|
|
47476
|
+
},
|
|
47477
|
+
role: {
|
|
47478
|
+
types: [
|
|
47479
|
+
"string"
|
|
47480
|
+
]
|
|
47481
|
+
},
|
|
47482
|
+
category: {
|
|
47483
|
+
types: [
|
|
47484
|
+
"string"
|
|
47485
|
+
]
|
|
47486
|
+
},
|
|
47487
|
+
animations: {
|
|
47488
|
+
types: [
|
|
47489
|
+
"array"
|
|
47490
|
+
],
|
|
47491
|
+
items: {
|
|
47492
|
+
types: [
|
|
47493
|
+
"string"
|
|
47494
|
+
]
|
|
47495
|
+
}
|
|
47496
|
+
},
|
|
47497
|
+
style: {
|
|
47498
|
+
types: [
|
|
47499
|
+
"string"
|
|
47500
|
+
],
|
|
47501
|
+
enumValues: [
|
|
47502
|
+
"pixel",
|
|
47503
|
+
"vector",
|
|
47504
|
+
"hd",
|
|
47505
|
+
"1-bit",
|
|
47506
|
+
"isometric"
|
|
47507
|
+
]
|
|
47508
|
+
},
|
|
47509
|
+
variant: {
|
|
47510
|
+
types: [
|
|
47511
|
+
"string"
|
|
47512
|
+
]
|
|
47513
|
+
},
|
|
47514
|
+
dimension: {
|
|
47515
|
+
types: [
|
|
47516
|
+
"string"
|
|
47517
|
+
],
|
|
47518
|
+
enumValues: [
|
|
47519
|
+
"2d",
|
|
47520
|
+
"3d"
|
|
47521
|
+
]
|
|
47522
|
+
},
|
|
47523
|
+
aspect: {
|
|
47524
|
+
types: [
|
|
47525
|
+
"string"
|
|
47526
|
+
],
|
|
47527
|
+
enumValues: [
|
|
47528
|
+
"1:1",
|
|
47529
|
+
"16:9",
|
|
47530
|
+
"5:7",
|
|
47531
|
+
"8:1"
|
|
47532
|
+
]
|
|
47533
|
+
},
|
|
47534
|
+
atlas: {
|
|
47535
|
+
types: [
|
|
47536
|
+
"asset"
|
|
47537
|
+
]
|
|
47538
|
+
},
|
|
47539
|
+
sprite: {
|
|
47540
|
+
types: [
|
|
47541
|
+
"string"
|
|
47542
|
+
]
|
|
47543
|
+
},
|
|
47544
|
+
name: {
|
|
47545
|
+
types: [
|
|
47546
|
+
"string"
|
|
47547
|
+
]
|
|
47548
|
+
},
|
|
47549
|
+
thumbnailUrl: {
|
|
47550
|
+
types: [
|
|
47551
|
+
"string"
|
|
47552
|
+
]
|
|
47553
|
+
}
|
|
47554
|
+
},
|
|
47555
|
+
required: [
|
|
47556
|
+
"url",
|
|
47557
|
+
"role",
|
|
47558
|
+
"category"
|
|
47559
|
+
]
|
|
47560
|
+
}
|
|
47561
|
+
},
|
|
47562
|
+
tickMs: {
|
|
47563
|
+
types: [
|
|
47564
|
+
"number"
|
|
47565
|
+
],
|
|
47566
|
+
description: "The fx mechanic's decay tick period in ms; lifetime = maxTtl \xD7 tickMs. Default 500."
|
|
47567
|
+
},
|
|
47568
|
+
textColor: {
|
|
47569
|
+
types: [
|
|
47570
|
+
"string"
|
|
47571
|
+
],
|
|
47572
|
+
description: "Floating-message text color when an item declares none. Default `#ffe066`."
|
|
47573
|
+
}
|
|
47574
|
+
},
|
|
47575
|
+
drawable: true,
|
|
47576
|
+
drawHost: true
|
|
46770
47577
|
}
|
|
46771
47578
|
},
|
|
46772
47579
|
categories: [
|
|
@@ -47751,7 +48558,7 @@ var integrators_registry_default = {
|
|
|
47751
48558
|
// src/patterns/component-mapping.json
|
|
47752
48559
|
var component_mapping_default = {
|
|
47753
48560
|
version: "1.0.0",
|
|
47754
|
-
exportedAt: "2026-08-
|
|
48561
|
+
exportedAt: "2026-08-20T23:14:19.545Z",
|
|
47755
48562
|
mappings: {
|
|
47756
48563
|
"page-header": {
|
|
47757
48564
|
component: "PageHeader",
|
|
@@ -49144,6 +49951,16 @@ var component_mapping_default = {
|
|
|
49144
49951
|
component: "AlgoGraphCanvas",
|
|
49145
49952
|
importPath: "@/components/learning/molecules/AlgoGraphCanvas",
|
|
49146
49953
|
category: "learning"
|
|
49954
|
+
},
|
|
49955
|
+
"fx-overlay": {
|
|
49956
|
+
component: "FxOverlay",
|
|
49957
|
+
importPath: "@/components/core/molecules/FxOverlay",
|
|
49958
|
+
category: "container"
|
|
49959
|
+
},
|
|
49960
|
+
"draw-fx-layer": {
|
|
49961
|
+
component: "DrawFxLayer",
|
|
49962
|
+
importPath: "@/components/game/molecules/DrawFxLayer",
|
|
49963
|
+
category: "game"
|
|
49147
49964
|
}
|
|
49148
49965
|
}
|
|
49149
49966
|
};
|
|
@@ -49151,7 +49968,7 @@ var component_mapping_default = {
|
|
|
49151
49968
|
// src/patterns/event-contracts.json
|
|
49152
49969
|
var event_contracts_default = {
|
|
49153
49970
|
version: "1.0.0",
|
|
49154
|
-
exportedAt: "2026-08-
|
|
49971
|
+
exportedAt: "2026-08-20T23:14:19.545Z",
|
|
49155
49972
|
contracts: {
|
|
49156
49973
|
form: {
|
|
49157
49974
|
emits: [
|
|
@@ -50389,6 +51206,7 @@ var PATTERN_TYPES = [
|
|
|
50389
51206
|
"doc-sidebar",
|
|
50390
51207
|
"doc-toc",
|
|
50391
51208
|
"document-viewer",
|
|
51209
|
+
"draw-fx-layer",
|
|
50392
51210
|
"draw-group",
|
|
50393
51211
|
"draw-mesh",
|
|
50394
51212
|
"draw-shape",
|
|
@@ -50424,6 +51242,7 @@ var PATTERN_TYPES = [
|
|
|
50424
51242
|
"form-layout",
|
|
50425
51243
|
"form-section",
|
|
50426
51244
|
"form-section-header",
|
|
51245
|
+
"fx-overlay",
|
|
50427
51246
|
"game-audio-toggle",
|
|
50428
51247
|
"game-hud",
|
|
50429
51248
|
"game-icon",
|
|
@@ -51056,6 +51875,9 @@ function eventListPropsOf(patternType) {
|
|
|
51056
51875
|
eventListPropsCache.set(patternType, out);
|
|
51057
51876
|
return out;
|
|
51058
51877
|
}
|
|
51878
|
+
function getPatternFieldsContract(patternType) {
|
|
51879
|
+
return getPatternDefinition(patternType)?.fieldsContract;
|
|
51880
|
+
}
|
|
51059
51881
|
function isDrawablePattern(patternType) {
|
|
51060
51882
|
const definition = getPatternDefinition(patternType);
|
|
51061
51883
|
if (!definition) return false;
|
|
@@ -51095,6 +51917,6 @@ function propHostsDrawables(schema) {
|
|
|
51095
51917
|
return false;
|
|
51096
51918
|
}
|
|
51097
51919
|
|
|
51098
|
-
export { COMPONENT_MAPPING, EVENT_CONTRACTS, INTEGRATORS_REGISTRY, PATTERN_REGISTRY, PATTERN_TYPES, buildRecommendationContext, collectRenderUiPatternTypes, component_mapping_default as componentMapping, event_contracts_default as eventContracts, eventKeyPropsOf, eventListPropsOf, findCompatiblePatterns, formatRecommendationsForPrompt, generatePatternDescription, getAllPatternTypes, getComponentForPattern, getEmittedEvents, getEntityCardinality, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPatternActionsRef, getPatternDefinition, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, integrators_registry_default as integratorsRegistry, isContentBodyPattern, isContentBodyPatternType, isDrawHostPattern, isDrawablePattern, isEntityAwarePattern, isMainSlotRenderUi, isValidPatternType, isValueInputPattern, patterns_registry_default as patternsRegistry, recommendPatterns, registry, renderUiPatternTypesOf };
|
|
51920
|
+
export { COMPONENT_MAPPING, EVENT_CONTRACTS, INTEGRATORS_REGISTRY, PATTERN_REGISTRY, PATTERN_TYPES, buildRecommendationContext, collectRenderUiPatternTypes, component_mapping_default as componentMapping, event_contracts_default as eventContracts, eventKeyPropsOf, eventListPropsOf, findCompatiblePatterns, formatRecommendationsForPrompt, generatePatternDescription, getAllPatternTypes, getComponentForPattern, getEmittedEvents, getEntityCardinality, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPatternActionsRef, getPatternDefinition, getPatternFieldsContract, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, integrators_registry_default as integratorsRegistry, isContentBodyPattern, isContentBodyPatternType, isDrawHostPattern, isDrawablePattern, isEntityAwarePattern, isMainSlotRenderUi, isValidPatternType, isValueInputPattern, patterns_registry_default as patternsRegistry, recommendPatterns, registry, renderUiPatternTypesOf };
|
|
51099
51921
|
//# sourceMappingURL=index.js.map
|
|
51100
51922
|
//# sourceMappingURL=index.js.map
|