jaml-ui 2.0.0 → 2.1.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/assets/searchPoolWorker-BgC_66wv.js +2 -0
- package/dist/assets/searchPoolWorker-BgC_66wv.js.map +1 -0
- package/dist/chunks/{runtime-CW7XHgOy.js → runtime-DAQf1WrX.js} +365 -374
- package/dist/chunks/{runtime-CW7XHgOy.js.map → runtime-DAQf1WrX.js.map} +1 -1
- package/dist/chunks/{searchPoolWorker-CEdClSPb.js → searchPoolWorker-BO7D6obp.js} +2 -2
- package/dist/chunks/searchPoolWorker-BO7D6obp.js.map +1 -0
- package/dist/chunks/{spriteMapper-C2mqQHLj.js → spriteMapper-C8uYedXB.js} +5 -2
- package/dist/chunks/{spriteMapper-C2mqQHLj.js.map → spriteMapper-C8uYedXB.js.map} +1 -1
- package/dist/chunks/{ui-CyhuNM51.js → ui-BXbEyxHZ.js} +39 -39
- package/dist/chunks/{ui-CyhuNM51.js.map → ui-BXbEyxHZ.js.map} +1 -1
- package/dist/components/JamlIdeToolbar.d.ts +3 -2
- package/dist/components/JimmolateEditor.d.ts +7 -7
- package/dist/core.js +6 -6
- package/dist/hooks/useSearch.d.ts +3 -3
- package/dist/index.js +3917 -3920
- package/dist/index.js.map +1 -1
- package/dist/lib/motely/runtime.d.ts +0 -6
- package/dist/motely.js +34 -34
- package/dist/r3f/Card3D.d.ts +8 -15
- package/dist/r3f.js +275 -0
- package/dist/r3f.js.map +1 -0
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +8 -4
- package/dist/assets/searchPoolWorker-CGxhF1pC.js +0 -2
- package/dist/assets/searchPoolWorker-CGxhF1pC.js.map +0 -1
- package/dist/chunks/searchPoolWorker-CEdClSPb.js.map +0 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
export type JamlIdeMode = "visual" | "code" | "map" | "results";
|
|
1
|
+
export type JamlIdeMode = "visual" | "code" | "map" | "results" | "jamlyzer";
|
|
2
2
|
export interface JamlIdeToolbarProps {
|
|
3
3
|
mode: JamlIdeMode;
|
|
4
4
|
onModeChange: (mode: JamlIdeMode) => void;
|
|
5
5
|
resultCount?: number;
|
|
6
6
|
showResultsTab?: boolean;
|
|
7
|
+
showJamlyzerTab?: boolean;
|
|
7
8
|
className?: string;
|
|
8
9
|
onSearch?: () => void;
|
|
9
10
|
isSearching?: boolean;
|
|
10
11
|
onLoadFile?: () => void;
|
|
11
12
|
isLoadingFile?: boolean;
|
|
12
13
|
}
|
|
13
|
-
export declare function JamlIdeToolbar({ mode, onModeChange, resultCount, showResultsTab, className, onSearch, isSearching, onLoadFile, isLoadingFile, }: JamlIdeToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function JamlIdeToolbar({ mode, onModeChange, resultCount, showResultsTab, showJamlyzerTab, className, onSearch, isSearching, onLoadFile, isLoadingFile, }: JamlIdeToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A Jimmolate predicate: per-seed JavaScript that runs
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* A Jimmolate predicate: per-seed JavaScript that runs INSIDE the Motely search
|
|
3
|
+
* loop (bound to `Motely.jimmolateProbe` pre-boot — see lib/motely/runtime.ts),
|
|
4
|
+
* layered on top of the JAML must/should/mustNot clauses. Return `true` to keep
|
|
5
|
+
* a seed, `false` to reject it.
|
|
6
6
|
*/
|
|
7
|
-
export type JimmolatePredicate = (seed: string,
|
|
7
|
+
export type JimmolatePredicate = (seed: string, deck?: number, stake?: number) => boolean;
|
|
8
8
|
/** Result of compiling the predicate source. */
|
|
9
9
|
export interface JimmolateCompileResult {
|
|
10
10
|
predicate: JimmolatePredicate | null;
|
|
@@ -12,11 +12,11 @@ export interface JimmolateCompileResult {
|
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Compile a Jimmolate source body into a callable predicate. The body runs with
|
|
15
|
-
* `seed`, `
|
|
15
|
+
* `seed`, `deck`, and `stake` in scope and is expected to `return` a boolean.
|
|
16
16
|
*
|
|
17
17
|
* NOTE: this evaluates user-authored JavaScript via `new Function` BY DESIGN —
|
|
18
18
|
* Jimmolate is "bring your own filter". It runs only on the author's machine
|
|
19
|
-
* against their own seeds, exactly like the C#-side
|
|
19
|
+
* against their own seeds, exactly like the C#-side probe it feeds.
|
|
20
20
|
*/
|
|
21
21
|
export declare function compileJimmolate(source: string): JimmolateCompileResult;
|
|
22
22
|
export interface JimmolateEditorProps {
|
package/dist/core.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s,
|
|
1
|
+
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, l as c, m as l, o as u, p as d, r as f, s as p, u as m, v as h, x as g, y as _ } from "./chunks/spriteMapper-C8uYedXB.js";
|
|
2
2
|
import { n as v, r as y, t as b } from "./chunks/jamlSeeds-CKHvpjhC.js";
|
|
3
3
|
//#region src/utils/gameCardUtils.ts
|
|
4
4
|
function x(e, t) {
|
|
5
5
|
return {
|
|
6
|
-
x:
|
|
7
|
-
y:
|
|
6
|
+
x: a[e] ?? 0,
|
|
7
|
+
y: o[t] ?? 0
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
10
|
function S(e) {
|
|
11
|
-
return
|
|
11
|
+
return d[e];
|
|
12
12
|
}
|
|
13
13
|
function C(e) {
|
|
14
14
|
for (let t of e) {
|
|
15
|
-
let e =
|
|
15
|
+
let e = c[t];
|
|
16
16
|
if (e) return e;
|
|
17
17
|
}
|
|
18
18
|
return {
|
|
@@ -21,6 +21,6 @@ function C(e) {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
|
-
export {
|
|
24
|
+
export { t as BOOSTER_PACKS, u as BOSSES, p as CONSUMABLE_FACES, r as EDITION_MAP, c as ENHANCER_MAP, n as JAML_ASSET_FILES, m as JOKERS, i as JOKER_FACES, y as Layer, a as RANK_MAP, d as SEAL_MAP, l as SPRITE_SHEETS, s as STICKER_MAP, o as SUIT_MAP, e as TAGS, h as TAROTS_AND_PLANETS, _ as VOUCHERS, C as getEnhancerPosition, S as getSealPosition, f as getSpriteData, x as getStandardCardPosition, b as mergeSeedsIntoJaml, v as parseJamlSeeds, g as resolveJamlAssetUrl };
|
|
25
25
|
|
|
26
26
|
//# sourceMappingURL=core.js.map
|
|
@@ -15,9 +15,9 @@ export interface UseSearchState {
|
|
|
15
15
|
tallyLabels: string[];
|
|
16
16
|
}
|
|
17
17
|
export declare function useSearch(): {
|
|
18
|
-
startAesthetic: (jaml: string, aesthetic: number
|
|
19
|
-
startSeedList: (jaml: string, seeds: string[]
|
|
20
|
-
startRandom: (jaml: string, count: number
|
|
18
|
+
startAesthetic: (jaml: string, aesthetic: number) => Promise<void>;
|
|
19
|
+
startSeedList: (jaml: string, seeds: string[]) => Promise<void>;
|
|
20
|
+
startRandom: (jaml: string, count: number) => Promise<void>;
|
|
21
21
|
cancel: () => void;
|
|
22
22
|
reset: () => void;
|
|
23
23
|
clearError: () => void;
|