jaml-ui 1.0.2 → 2.0.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/README.md +1 -15
- package/dist/assets/searchPoolWorker-CGxhF1pC.js +2 -0
- package/dist/assets/searchPoolWorker-CGxhF1pC.js.map +1 -0
- package/dist/chunks/{motelyItemFormats-Dyq1BINO.js → runtime-CW7XHgOy.js} +465 -278
- package/dist/chunks/runtime-CW7XHgOy.js.map +1 -0
- package/dist/chunks/searchPoolWorker-CEdClSPb.js +11 -0
- package/dist/chunks/searchPoolWorker-CEdClSPb.js.map +1 -0
- package/dist/chunks/{ui-LfKBGL5-.js → ui-CyhuNM51.js} +736 -680
- package/dist/chunks/ui-CyhuNM51.js.map +1 -0
- package/dist/components/JamlAestheticSelector.d.ts +1 -1
- package/dist/components/JamlIdeToolbar.d.ts +2 -3
- package/dist/components/JimmolateEditor.d.ts +47 -0
- package/dist/components/SeedFinderApp.d.ts +1 -1
- package/dist/components/jamlMap/JokerPicker.d.ts +2 -2
- package/dist/components/jamlMap/MysterySlot.d.ts +2 -2
- package/dist/components/jamlMap/jokerRarity.d.ts +6 -0
- package/dist/decode/motelyItemDecoder.d.ts +0 -2
- package/dist/hooks/useSearch.d.ts +3 -3
- package/dist/hooks/useSearchPool.d.ts +1 -1
- package/dist/index.d.ts +1 -4
- package/dist/index.js +12835 -4177
- package/dist/index.js.map +1 -1
- package/dist/lib/jaml/jamlLangCodemirror.d.ts +13 -0
- package/dist/lib/motely/motelyCompatEnums.d.ts +349 -0
- package/dist/lib/motely/runtime.d.ts +7 -4
- package/dist/lib/types.d.ts +1 -1
- package/dist/motely.d.ts +3 -2
- package/dist/motely.js +48 -220
- package/dist/motely.js.map +1 -1
- package/dist/r3f/Card3D.d.ts +55 -0
- package/dist/r3f/CardTable.d.ts +35 -0
- package/dist/r3f.d.ts +2 -0
- package/dist/ui/JimboPicker.d.ts +28 -0
- package/dist/ui/hooks.d.ts +1 -3
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui.d.ts +1 -0
- package/dist/ui.js +3 -2
- package/package.json +25 -19
- package/dist/assets/searchPoolWorker-DHh9a5GD.js +0 -40
- package/dist/assets/searchPoolWorker-DHh9a5GD.js.map +0 -1
- package/dist/chunks/motelyItemFormats-Dyq1BINO.js.map +0 -1
- package/dist/chunks/searchPoolWorker-DgRqVj_q.js +0 -8
- package/dist/chunks/searchPoolWorker-DgRqVj_q.js.map +0 -1
- package/dist/chunks/ui-LfKBGL5-.js.map +0 -1
- package/dist/components/JamlCurator.d.ts +0 -1
- package/dist/components/Jamlyzer.d.ts +0 -8
- package/dist/hooks/useAnalyzer.d.ts +0 -16
- package/dist/lib/hooks/useSeedAnalyzer.d.ts +0 -13
- package/dist/lib/utils.d.ts +0 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CompletionContext, CompletionResult } from '@codemirror/autocomplete';
|
|
2
|
+
/**
|
|
3
|
+
* CodeMirror completion source backed by jaml-lang's context-aware completions.
|
|
4
|
+
* Tap into `joker: ` and you get the joker list; type `Blue` and it narrows to
|
|
5
|
+
* Blueprint. Keys insert `label: `, values insert the bare value.
|
|
6
|
+
*/
|
|
7
|
+
export declare function jamlCompletionSource(context: CompletionContext): CompletionResult | null;
|
|
8
|
+
/**
|
|
9
|
+
* CodeMirror lint source backed by jaml-lang diagnostics (YAML syntax + Zod
|
|
10
|
+
* structural validation). The Motely WASM engine stays the final authority;
|
|
11
|
+
* this is the fast structural gate.
|
|
12
|
+
*/
|
|
13
|
+
export declare const jamlLinter: import('@codemirror/state').Extension;
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
export declare enum MotelyItemEdition {
|
|
2
|
+
None = 0,
|
|
3
|
+
Foil = 1,
|
|
4
|
+
Holographic = 2,
|
|
5
|
+
Polychrome = 3,
|
|
6
|
+
Negative = 4
|
|
7
|
+
}
|
|
8
|
+
export declare enum MotelyItemSeal {
|
|
9
|
+
None = 0,
|
|
10
|
+
Gold = 1,
|
|
11
|
+
Red = 2,
|
|
12
|
+
Blue = 3,
|
|
13
|
+
Purple = 4
|
|
14
|
+
}
|
|
15
|
+
export declare enum MotelyItemEnhancement {
|
|
16
|
+
None = 0,
|
|
17
|
+
Bonus = 1,
|
|
18
|
+
Mult = 2,
|
|
19
|
+
Wild = 3,
|
|
20
|
+
Glass = 4,
|
|
21
|
+
Steel = 5,
|
|
22
|
+
Stone = 6,
|
|
23
|
+
Gold = 7,
|
|
24
|
+
Lucky = 8
|
|
25
|
+
}
|
|
26
|
+
export declare enum MotelyStandardcardRank {
|
|
27
|
+
Two = 0,
|
|
28
|
+
Three = 1,
|
|
29
|
+
Four = 2,
|
|
30
|
+
Five = 3,
|
|
31
|
+
Six = 4,
|
|
32
|
+
Seven = 5,
|
|
33
|
+
Eight = 6,
|
|
34
|
+
Nine = 7,
|
|
35
|
+
Ten = 8,
|
|
36
|
+
Jack = 9,
|
|
37
|
+
Queen = 10,
|
|
38
|
+
King = 11,
|
|
39
|
+
Ace = 12
|
|
40
|
+
}
|
|
41
|
+
export declare enum MotelyStandardcardSuit {
|
|
42
|
+
Clubs = 0,
|
|
43
|
+
Diamonds = 1,
|
|
44
|
+
Hearts = 2,
|
|
45
|
+
Spades = 3
|
|
46
|
+
}
|
|
47
|
+
export declare enum MotelyJoker {
|
|
48
|
+
Joker = 0,
|
|
49
|
+
GreedyJoker = 1,
|
|
50
|
+
LustyJoker = 2,
|
|
51
|
+
WrathfulJoker = 3,
|
|
52
|
+
GluttonousJoker = 4,
|
|
53
|
+
JollyJoker = 5,
|
|
54
|
+
ZanyJoker = 6,
|
|
55
|
+
MadJoker = 7,
|
|
56
|
+
CrazyJoker = 8,
|
|
57
|
+
DrollJoker = 9,
|
|
58
|
+
SlyJoker = 10,
|
|
59
|
+
WilyJoker = 11,
|
|
60
|
+
CleverJoker = 12,
|
|
61
|
+
DeviousJoker = 13,
|
|
62
|
+
CraftyJoker = 14,
|
|
63
|
+
HalfJoker = 15,
|
|
64
|
+
CreditCard = 16,
|
|
65
|
+
Banner = 17,
|
|
66
|
+
MysticSummit = 18,
|
|
67
|
+
EightBall = 19,
|
|
68
|
+
Misprint = 20,
|
|
69
|
+
RaisedFist = 21,
|
|
70
|
+
ChaostheClown = 22,
|
|
71
|
+
ScaryFace = 23,
|
|
72
|
+
AbstractJoker = 24,
|
|
73
|
+
DelayedGratification = 25,
|
|
74
|
+
GrosMichel = 26,
|
|
75
|
+
EvenSteven = 27,
|
|
76
|
+
OddTodd = 28,
|
|
77
|
+
Scholar = 29,
|
|
78
|
+
BusinessCard = 30,
|
|
79
|
+
Supernova = 31,
|
|
80
|
+
RideTheBus = 32,
|
|
81
|
+
Egg = 33,
|
|
82
|
+
Runner = 34,
|
|
83
|
+
IceCream = 35,
|
|
84
|
+
Splash = 36,
|
|
85
|
+
BlueJoker = 37,
|
|
86
|
+
FacelessJoker = 38,
|
|
87
|
+
GreenJoker = 39,
|
|
88
|
+
Superposition = 40,
|
|
89
|
+
ToDoList = 41,
|
|
90
|
+
Cavendish = 42,
|
|
91
|
+
RedCard = 43,
|
|
92
|
+
SquareJoker = 44,
|
|
93
|
+
RiffRaff = 45,
|
|
94
|
+
Photograph = 46,
|
|
95
|
+
ReservedParking = 47,
|
|
96
|
+
MailInRebate = 48,
|
|
97
|
+
Hallucination = 49,
|
|
98
|
+
FortuneTeller = 50,
|
|
99
|
+
Juggler = 51,
|
|
100
|
+
Drunkard = 52,
|
|
101
|
+
GoldenJoker = 53,
|
|
102
|
+
Popcorn = 54,
|
|
103
|
+
WalkieTalkie = 55,
|
|
104
|
+
SmileyFace = 56,
|
|
105
|
+
GoldenTicket = 57,
|
|
106
|
+
Swashbuckler = 58,
|
|
107
|
+
HangingChad = 59,
|
|
108
|
+
ShootTheMoon = 60,
|
|
109
|
+
JokerStencil = 61,
|
|
110
|
+
FourFingers = 62,
|
|
111
|
+
Mime = 63,
|
|
112
|
+
CeremonialDagger = 64,
|
|
113
|
+
MarbleJoker = 65,
|
|
114
|
+
LoyaltyCard = 66,
|
|
115
|
+
Dusk = 67,
|
|
116
|
+
Fibonacci = 68,
|
|
117
|
+
SteelJoker = 69,
|
|
118
|
+
Hack = 70,
|
|
119
|
+
Pareidolia = 71,
|
|
120
|
+
SpaceJoker = 72,
|
|
121
|
+
Burglar = 73,
|
|
122
|
+
Blackboard = 74,
|
|
123
|
+
SixthSense = 75,
|
|
124
|
+
Constellation = 76,
|
|
125
|
+
Hiker = 77,
|
|
126
|
+
CardSharp = 78,
|
|
127
|
+
Madness = 79,
|
|
128
|
+
Seance = 80,
|
|
129
|
+
Vampire = 81,
|
|
130
|
+
Shortcut = 82,
|
|
131
|
+
Hologram = 83,
|
|
132
|
+
Cloud9 = 84,
|
|
133
|
+
Rocket = 85,
|
|
134
|
+
MidasMask = 86,
|
|
135
|
+
Luchador = 87,
|
|
136
|
+
GiftCard = 88,
|
|
137
|
+
TurtleBean = 89,
|
|
138
|
+
Erosion = 90,
|
|
139
|
+
ToTheMoon = 91,
|
|
140
|
+
StoneJoker = 92,
|
|
141
|
+
LuckyCat = 93,
|
|
142
|
+
Bull = 94,
|
|
143
|
+
DietCola = 95,
|
|
144
|
+
TradingCard = 96,
|
|
145
|
+
FlashCard = 97,
|
|
146
|
+
SpareTrousers = 98,
|
|
147
|
+
Ramen = 99,
|
|
148
|
+
Seltzer = 100,
|
|
149
|
+
Castle = 101,
|
|
150
|
+
MrBones = 102,
|
|
151
|
+
Acrobat = 103,
|
|
152
|
+
SockAndBuskin = 104,
|
|
153
|
+
Troubadour = 105,
|
|
154
|
+
Certificate = 106,
|
|
155
|
+
SmearedJoker = 107,
|
|
156
|
+
Throwback = 108,
|
|
157
|
+
RoughGem = 109,
|
|
158
|
+
Bloodstone = 110,
|
|
159
|
+
Arrowhead = 111,
|
|
160
|
+
OnyxAgate = 112,
|
|
161
|
+
GlassJoker = 113,
|
|
162
|
+
Showman = 114,
|
|
163
|
+
FlowerPot = 115,
|
|
164
|
+
MerryAndy = 116,
|
|
165
|
+
OopsAll6s = 117,
|
|
166
|
+
TheIdol = 118,
|
|
167
|
+
SeeingDouble = 119,
|
|
168
|
+
Matador = 120,
|
|
169
|
+
Satellite = 121,
|
|
170
|
+
Cartomancer = 122,
|
|
171
|
+
Astronomer = 123,
|
|
172
|
+
Bootstraps = 124,
|
|
173
|
+
DNA = 125,
|
|
174
|
+
Vagabond = 126,
|
|
175
|
+
Baron = 127,
|
|
176
|
+
Obelisk = 128,
|
|
177
|
+
BaseballCard = 129,
|
|
178
|
+
AncientJoker = 130,
|
|
179
|
+
Campfire = 131,
|
|
180
|
+
Blueprint = 132,
|
|
181
|
+
WeeJoker = 133,
|
|
182
|
+
HitTheRoad = 134,
|
|
183
|
+
TheDuo = 135,
|
|
184
|
+
TheTrio = 136,
|
|
185
|
+
TheFamily = 137,
|
|
186
|
+
TheOrder = 138,
|
|
187
|
+
TheTribe = 139,
|
|
188
|
+
Stuntman = 140,
|
|
189
|
+
InvisibleJoker = 141,
|
|
190
|
+
Brainstorm = 142,
|
|
191
|
+
DriversLicense = 143,
|
|
192
|
+
BurntJoker = 144,
|
|
193
|
+
Canio = 145,
|
|
194
|
+
Triboulet = 146,
|
|
195
|
+
Yorick = 147,
|
|
196
|
+
Chicot = 148,
|
|
197
|
+
Perkeo = 149
|
|
198
|
+
}
|
|
199
|
+
export declare enum MotelyJokerCommon {
|
|
200
|
+
Joker = 0,
|
|
201
|
+
GreedyJoker = 1,
|
|
202
|
+
LustyJoker = 2,
|
|
203
|
+
WrathfulJoker = 3,
|
|
204
|
+
GluttonousJoker = 4,
|
|
205
|
+
JollyJoker = 5,
|
|
206
|
+
ZanyJoker = 6,
|
|
207
|
+
MadJoker = 7,
|
|
208
|
+
CrazyJoker = 8,
|
|
209
|
+
DrollJoker = 9,
|
|
210
|
+
SlyJoker = 10,
|
|
211
|
+
WilyJoker = 11,
|
|
212
|
+
CleverJoker = 12,
|
|
213
|
+
DeviousJoker = 13,
|
|
214
|
+
CraftyJoker = 14,
|
|
215
|
+
HalfJoker = 15,
|
|
216
|
+
CreditCard = 16,
|
|
217
|
+
Banner = 17,
|
|
218
|
+
MysticSummit = 18,
|
|
219
|
+
EightBall = 19,
|
|
220
|
+
Misprint = 20,
|
|
221
|
+
RaisedFist = 21,
|
|
222
|
+
ChaostheClown = 22,
|
|
223
|
+
ScaryFace = 23,
|
|
224
|
+
AbstractJoker = 24,
|
|
225
|
+
DelayedGratification = 25,
|
|
226
|
+
GrosMichel = 26,
|
|
227
|
+
EvenSteven = 27,
|
|
228
|
+
OddTodd = 28,
|
|
229
|
+
Scholar = 29,
|
|
230
|
+
BusinessCard = 30,
|
|
231
|
+
Supernova = 31,
|
|
232
|
+
RideTheBus = 32,
|
|
233
|
+
Egg = 33,
|
|
234
|
+
Runner = 34,
|
|
235
|
+
IceCream = 35,
|
|
236
|
+
Splash = 36,
|
|
237
|
+
BlueJoker = 37,
|
|
238
|
+
FacelessJoker = 38,
|
|
239
|
+
GreenJoker = 39,
|
|
240
|
+
Superposition = 40,
|
|
241
|
+
ToDoList = 41,
|
|
242
|
+
Cavendish = 42,
|
|
243
|
+
RedCard = 43,
|
|
244
|
+
SquareJoker = 44,
|
|
245
|
+
RiffRaff = 45,
|
|
246
|
+
Photograph = 46,
|
|
247
|
+
ReservedParking = 47,
|
|
248
|
+
MailInRebate = 48,
|
|
249
|
+
Hallucination = 49,
|
|
250
|
+
FortuneTeller = 50,
|
|
251
|
+
Juggler = 51,
|
|
252
|
+
Drunkard = 52,
|
|
253
|
+
GoldenJoker = 53,
|
|
254
|
+
Popcorn = 54,
|
|
255
|
+
WalkieTalkie = 55,
|
|
256
|
+
SmileyFace = 56,
|
|
257
|
+
GoldenTicket = 57,
|
|
258
|
+
Swashbuckler = 58,
|
|
259
|
+
HangingChad = 59,
|
|
260
|
+
ShootTheMoon = 60
|
|
261
|
+
}
|
|
262
|
+
export declare enum MotelyJokerUncommon {
|
|
263
|
+
JokerStencil = 0,
|
|
264
|
+
FourFingers = 1,
|
|
265
|
+
Mime = 2,
|
|
266
|
+
CeremonialDagger = 3,
|
|
267
|
+
MarbleJoker = 4,
|
|
268
|
+
LoyaltyCard = 5,
|
|
269
|
+
Dusk = 6,
|
|
270
|
+
Fibonacci = 7,
|
|
271
|
+
SteelJoker = 8,
|
|
272
|
+
Hack = 9,
|
|
273
|
+
Pareidolia = 10,
|
|
274
|
+
SpaceJoker = 11,
|
|
275
|
+
Burglar = 12,
|
|
276
|
+
Blackboard = 13,
|
|
277
|
+
SixthSense = 14,
|
|
278
|
+
Constellation = 15,
|
|
279
|
+
Hiker = 16,
|
|
280
|
+
CardSharp = 17,
|
|
281
|
+
Madness = 18,
|
|
282
|
+
Seance = 19,
|
|
283
|
+
Vampire = 20,
|
|
284
|
+
Shortcut = 21,
|
|
285
|
+
Hologram = 22,
|
|
286
|
+
Cloud9 = 23,
|
|
287
|
+
Rocket = 24,
|
|
288
|
+
MidasMask = 25,
|
|
289
|
+
Luchador = 26,
|
|
290
|
+
GiftCard = 27,
|
|
291
|
+
TurtleBean = 28,
|
|
292
|
+
Erosion = 29,
|
|
293
|
+
ToTheMoon = 30,
|
|
294
|
+
StoneJoker = 31,
|
|
295
|
+
LuckyCat = 32,
|
|
296
|
+
Bull = 33,
|
|
297
|
+
DietCola = 34,
|
|
298
|
+
TradingCard = 35,
|
|
299
|
+
FlashCard = 36,
|
|
300
|
+
SpareTrousers = 37,
|
|
301
|
+
Ramen = 38,
|
|
302
|
+
Seltzer = 39,
|
|
303
|
+
Castle = 40,
|
|
304
|
+
MrBones = 41,
|
|
305
|
+
Acrobat = 42,
|
|
306
|
+
SockAndBuskin = 43,
|
|
307
|
+
Troubadour = 44,
|
|
308
|
+
Certificate = 45,
|
|
309
|
+
SmearedJoker = 46,
|
|
310
|
+
Throwback = 47,
|
|
311
|
+
RoughGem = 48,
|
|
312
|
+
Bloodstone = 49,
|
|
313
|
+
Arrowhead = 50,
|
|
314
|
+
OnyxAgate = 51,
|
|
315
|
+
GlassJoker = 52,
|
|
316
|
+
Showman = 53,
|
|
317
|
+
FlowerPot = 54,
|
|
318
|
+
MerryAndy = 55,
|
|
319
|
+
OopsAll6s = 56,
|
|
320
|
+
TheIdol = 57,
|
|
321
|
+
SeeingDouble = 58,
|
|
322
|
+
Matador = 59,
|
|
323
|
+
Satellite = 60,
|
|
324
|
+
Cartomancer = 61,
|
|
325
|
+
Astronomer = 62,
|
|
326
|
+
Bootstraps = 63
|
|
327
|
+
}
|
|
328
|
+
export declare enum MotelyJokerRare {
|
|
329
|
+
DNA = 0,
|
|
330
|
+
Vagabond = 1,
|
|
331
|
+
Baron = 2,
|
|
332
|
+
Obelisk = 3,
|
|
333
|
+
BaseballCard = 4,
|
|
334
|
+
AncientJoker = 5,
|
|
335
|
+
Campfire = 6,
|
|
336
|
+
Blueprint = 7,
|
|
337
|
+
WeeJoker = 8,
|
|
338
|
+
HitTheRoad = 9,
|
|
339
|
+
TheDuo = 10,
|
|
340
|
+
TheTrio = 11,
|
|
341
|
+
TheFamily = 12,
|
|
342
|
+
TheOrder = 13,
|
|
343
|
+
TheTribe = 14,
|
|
344
|
+
Stuntman = 15,
|
|
345
|
+
InvisibleJoker = 16,
|
|
346
|
+
Brainstorm = 17,
|
|
347
|
+
DriversLicense = 18,
|
|
348
|
+
BurntJoker = 19
|
|
349
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { Motely } from 'motely-wasm';
|
|
2
1
|
export type MotelyRuntimeStatus = "idle" | "booting" | "ready" | "error";
|
|
3
|
-
type JimmolateProbe =
|
|
4
|
-
/** Swap the active Jimmolate predicate. Safe before or after boot. */
|
|
2
|
+
type JimmolateProbe = (seed: string, score: number, tallies: number[]) => boolean;
|
|
3
|
+
/** Swap the active Jimmolate predicate and enable filtering. Safe before or after boot. */
|
|
5
4
|
export declare function setJimmolateProbe(pred: JimmolateProbe): void;
|
|
6
|
-
/** Reset
|
|
5
|
+
/** Reset to pass-through and disable filtering (the engine's default: every survivor matches). */
|
|
7
6
|
export declare function clearJimmolateProbe(): void;
|
|
8
7
|
export declare const MOTELY_BIN_PATH = "/motely-wasm/bin";
|
|
8
|
+
/** True once the optional File System extension was bound before boot. */
|
|
9
|
+
export declare function isFileSystemReady(): boolean;
|
|
10
|
+
/** The error from a failed or absent File System init, if any. */
|
|
11
|
+
export declare function getFileSystemError(): unknown;
|
|
9
12
|
export declare function ensureMotelyReady(): Promise<void>;
|
|
10
13
|
export {};
|
package/dist/lib/types.d.ts
CHANGED
package/dist/motely.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { default as bootsharp
|
|
2
|
-
export {
|
|
1
|
+
export { default as bootsharp } from 'motely-wasm';
|
|
2
|
+
export { Program as Motely } from 'motely-wasm/motely/wasm';
|
|
3
|
+
export { decodeMotelyItem, decodeMotelyItemToJamlCard, motelyItemTypeName, motelyItemCategory, motelyItemDisplayName, motelyItemRenderCategory, motelyItemEditionName, motelyItemSealName, motelyItemEnhancementName, motelyStandardcardRankName, motelyStandardcardSuitName, decodeMotelyItemName, resolveMotelyItemType, type DecodedMotelyItem, type MotelyItemInput, type MotelyJamlCard, type MotelyRenderableCategory, type MotelyRuntimeItem, } from './decode/motelyItemDecoder.js';
|
|
3
4
|
export { motelyItemToSprite, getMotelySpriteByName, type MotelySpriteData, } from './decode/motelySprite.js';
|
|
4
5
|
export { motelyBossDisplayName, motelyBossDisplayNameFromKey, motelyBoosterPackDisplayName, motelyBoosterPackDisplayNameFromKey, motelyItemDisplayNameFromKey, motelyItemDisplayNameFromValue, motelyTagDisplayName, motelyTagDisplayNameFromKey, motelyVoucherDisplayName, motelyVoucherDisplayNameFromKey, } from './motelyDisplay.js';
|
|
5
6
|
export { useJamlLibrary, type JamlLibraryStatus, type UseJamlLibraryState, } from './hooks/useJamlLibrary.js';
|