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.
@@ -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 over each SCORED result
3
- * from the Motely search (bound to `Motely.jimmolatePredicate` pre-boot — see
4
- * lib/motely/runtime.ts), layered on top of the JAML must/should/mustNot
5
- * clauses. Return `true` to keep a seed, `false` to reject it.
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, score?: number, tallies?: number[]) => boolean;
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`, `score`, and `tallies` in scope and is expected to `return` a boolean.
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 predicate it feeds.
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, i as c, l, m as u, o as d, p as f, r as p, s as m, u as h, v as g, y as _ } from "./chunks/spriteMapper-C2mqQHLj.js";
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: i[e] ?? 0,
7
- y: s[t] ?? 0
6
+ x: a[e] ?? 0,
7
+ y: o[t] ?? 0
8
8
  };
9
9
  }
10
10
  function S(e) {
11
- return a[e];
11
+ return d[e];
12
12
  }
13
13
  function C(e) {
14
14
  for (let t of e) {
15
- let e = r[t];
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 { c as BOOSTER_PACKS, t as BOSSES, d as CONSUMABLE_FACES, m as EDITION_MAP, r as ENHANCER_MAP, _ as JAML_ASSET_FILES, l as JOKERS, h as JOKER_FACES, y as Layer, i as RANK_MAP, a as SEAL_MAP, f as SPRITE_SHEETS, u as STICKER_MAP, s as SUIT_MAP, o as TAGS, e as TAROTS_AND_PLANETS, g as VOUCHERS, C as getEnhancerPosition, S as getSealPosition, p as getSpriteData, x as getStandardCardPosition, b as mergeSeedsIntoJaml, v as parseJamlSeeds, n as resolveJamlAssetUrl };
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, predicate?: (seed: string, score?: number, tallies?: number[]) => boolean) => Promise<void>;
19
- startSeedList: (jaml: string, seeds: string[], predicate?: (seed: string, score?: number, tallies?: number[]) => boolean) => Promise<void>;
20
- startRandom: (jaml: string, count: number, predicate?: (seed: string, score?: number, tallies?: number[]) => boolean) => Promise<void>;
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;