@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
|
"contracts": {
|
|
5
5
|
"form": {
|
|
6
6
|
"emits": [
|
|
@@ -162,13 +162,6 @@
|
|
|
162
162
|
"type": "object"
|
|
163
163
|
}
|
|
164
164
|
},
|
|
165
|
-
{
|
|
166
|
-
"event": "VIEW",
|
|
167
|
-
"trigger": "action",
|
|
168
|
-
"payload": {
|
|
169
|
-
"type": "object"
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
165
|
{
|
|
173
166
|
"event": "NAVIGATE",
|
|
174
167
|
"trigger": "action",
|
|
@@ -203,13 +196,6 @@
|
|
|
203
196
|
"payload": {
|
|
204
197
|
"type": "object"
|
|
205
198
|
}
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"event": "VIEW",
|
|
209
|
-
"trigger": "action",
|
|
210
|
-
"payload": {
|
|
211
|
-
"type": "object"
|
|
212
|
-
}
|
|
213
199
|
}
|
|
214
200
|
],
|
|
215
201
|
"requires": [],
|
|
@@ -539,7 +525,7 @@
|
|
|
539
525
|
"dashboard-grid": {
|
|
540
526
|
"emits": [],
|
|
541
527
|
"requires": [],
|
|
542
|
-
"entityAware":
|
|
528
|
+
"entityAware": true
|
|
543
529
|
},
|
|
544
530
|
"stats": {
|
|
545
531
|
"emits": [],
|
|
@@ -627,19 +613,25 @@
|
|
|
627
613
|
"dialogue-box": {
|
|
628
614
|
"emits": [
|
|
629
615
|
{
|
|
630
|
-
"event": "
|
|
631
|
-
"trigger": "
|
|
616
|
+
"event": "COMPLETE",
|
|
617
|
+
"trigger": "action",
|
|
632
618
|
"payload": {
|
|
633
|
-
"type": "
|
|
619
|
+
"type": "object"
|
|
634
620
|
}
|
|
635
621
|
},
|
|
636
622
|
{
|
|
637
|
-
"event": "
|
|
638
|
-
"trigger": "
|
|
623
|
+
"event": "CHOICE",
|
|
624
|
+
"trigger": "action",
|
|
639
625
|
"payload": {
|
|
640
|
-
"type": "
|
|
641
|
-
}
|
|
642
|
-
|
|
626
|
+
"type": "object"
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"event": "ADVANCE",
|
|
631
|
+
"trigger": "action",
|
|
632
|
+
"payload": {
|
|
633
|
+
"type": "object"
|
|
634
|
+
}
|
|
643
635
|
}
|
|
644
636
|
],
|
|
645
637
|
"requires": [],
|
|
@@ -1081,6 +1073,127 @@
|
|
|
1081
1073
|
],
|
|
1082
1074
|
"requires": [],
|
|
1083
1075
|
"entityAware": true
|
|
1076
|
+
},
|
|
1077
|
+
"action-buttons": {
|
|
1078
|
+
"emits": [
|
|
1079
|
+
{
|
|
1080
|
+
"event": "ACTION",
|
|
1081
|
+
"trigger": "action",
|
|
1082
|
+
"payload": {
|
|
1083
|
+
"type": "object"
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
],
|
|
1087
|
+
"requires": [],
|
|
1088
|
+
"entityAware": false
|
|
1089
|
+
},
|
|
1090
|
+
"d-pad": {
|
|
1091
|
+
"emits": [
|
|
1092
|
+
{
|
|
1093
|
+
"event": "DIRECTION",
|
|
1094
|
+
"trigger": "action",
|
|
1095
|
+
"payload": {
|
|
1096
|
+
"type": "object"
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
],
|
|
1100
|
+
"requires": [],
|
|
1101
|
+
"entityAware": false
|
|
1102
|
+
},
|
|
1103
|
+
"isometric-canvas": {
|
|
1104
|
+
"emits": [
|
|
1105
|
+
{
|
|
1106
|
+
"event": "TILE_CLICK",
|
|
1107
|
+
"trigger": "action",
|
|
1108
|
+
"payload": {
|
|
1109
|
+
"type": "object"
|
|
1110
|
+
}
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"event": "UNIT_CLICK",
|
|
1114
|
+
"trigger": "action",
|
|
1115
|
+
"payload": {
|
|
1116
|
+
"type": "object"
|
|
1117
|
+
}
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"event": "TILE_HOVER",
|
|
1121
|
+
"trigger": "action",
|
|
1122
|
+
"payload": {
|
|
1123
|
+
"type": "object"
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
"event": "TILE_LEAVE",
|
|
1128
|
+
"trigger": "action",
|
|
1129
|
+
"payload": {
|
|
1130
|
+
"type": "object"
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
],
|
|
1134
|
+
"requires": [],
|
|
1135
|
+
"entityAware": true
|
|
1136
|
+
},
|
|
1137
|
+
"trait-slot": {
|
|
1138
|
+
"emits": [
|
|
1139
|
+
{
|
|
1140
|
+
"event": "CLICK",
|
|
1141
|
+
"trigger": "action",
|
|
1142
|
+
"payload": {
|
|
1143
|
+
"type": "object"
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"event": "REMOVE",
|
|
1148
|
+
"trigger": "action",
|
|
1149
|
+
"payload": {
|
|
1150
|
+
"type": "object"
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
],
|
|
1154
|
+
"requires": [],
|
|
1155
|
+
"entityAware": true
|
|
1156
|
+
},
|
|
1157
|
+
"world-map-board": {
|
|
1158
|
+
"emits": [
|
|
1159
|
+
{
|
|
1160
|
+
"event": "HERO_SELECT",
|
|
1161
|
+
"trigger": "action",
|
|
1162
|
+
"payload": {
|
|
1163
|
+
"type": "object"
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
"event": "HERO_MOVE",
|
|
1168
|
+
"trigger": "action",
|
|
1169
|
+
"payload": {
|
|
1170
|
+
"type": "object"
|
|
1171
|
+
}
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
"event": "BATTLE_ENCOUNTER",
|
|
1175
|
+
"trigger": "action",
|
|
1176
|
+
"payload": {
|
|
1177
|
+
"type": "object"
|
|
1178
|
+
}
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
"event": "FEATURE_ENTER",
|
|
1182
|
+
"trigger": "action",
|
|
1183
|
+
"payload": {
|
|
1184
|
+
"type": "object"
|
|
1185
|
+
}
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
"event": "TILE_CLICK",
|
|
1189
|
+
"trigger": "action",
|
|
1190
|
+
"payload": {
|
|
1191
|
+
"type": "object"
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
],
|
|
1195
|
+
"requires": [],
|
|
1196
|
+
"entityAware": true
|
|
1084
1197
|
}
|
|
1085
1198
|
}
|
|
1086
1199
|
}
|