jaml-ui 0.28.1 → 0.29.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.
Files changed (47) hide show
  1. package/README.md +2 -11
  2. package/dist/assets/{searchPoolWorker-BtlROziN.js → searchPoolWorker-C4xj1WA_.js} +2 -2
  3. package/dist/assets/searchPoolWorker-C4xj1WA_.js.map +1 -0
  4. package/dist/chunks/{Layer-BBPJFHfs.js → Layer-Ckd_T6Fw.js} +1 -1
  5. package/dist/chunks/{Layer-BBPJFHfs.js.map → Layer-Ckd_T6Fw.js.map} +1 -1
  6. package/dist/chunks/{assets-RWUiFSTc.js → assets-D80i9sMq.js} +1 -1
  7. package/dist/chunks/{assets-RWUiFSTc.js.map → assets-D80i9sMq.js.map} +1 -1
  8. package/dist/chunks/runtime-C-It0krH.js +10 -0
  9. package/dist/chunks/runtime-C-It0krH.js.map +1 -0
  10. package/dist/chunks/{searchPoolWorker-D1xR43D2.js → searchPoolWorker-hVVM49SD.js} +2 -2
  11. package/dist/chunks/searchPoolWorker-hVVM49SD.js.map +1 -0
  12. package/dist/chunks/{spriteMapper-CFjN0_TV.js → spriteMapper-C4_5G1Z6.js} +10 -6
  13. package/dist/chunks/{spriteMapper-CFjN0_TV.js.map → spriteMapper-C4_5G1Z6.js.map} +1 -1
  14. package/dist/chunks/{tokens-B65Fzble.js → tokens-Qrhlekc4.js} +1 -1
  15. package/dist/chunks/{tokens-B65Fzble.js.map → tokens-Qrhlekc4.js.map} +1 -1
  16. package/dist/chunks/{ui-BEtq_JNg.js → ui-D_9HO9OO.js} +684 -786
  17. package/dist/chunks/ui-D_9HO9OO.js.map +1 -0
  18. package/dist/components/PaginatedFilterBrowser.d.ts +3 -0
  19. package/dist/config.d.ts +2 -0
  20. package/dist/core.js +8 -8
  21. package/dist/hooks/useAnalyzer.d.ts +0 -11
  22. package/dist/hooks/useMotelyRuntime.d.ts +2 -2
  23. package/dist/index.d.ts +0 -6
  24. package/dist/index.js +3206 -4006
  25. package/dist/index.js.map +1 -1
  26. package/dist/lib/motely/runtime.d.ts +3 -0
  27. package/dist/motely.d.ts +2 -1
  28. package/dist/motely.js +2101 -25
  29. package/dist/motely.js.map +1 -1
  30. package/dist/providers/MotelyProvider.d.ts +11 -0
  31. package/dist/r3f.js +4 -4
  32. package/dist/ui/JimboBadge.d.ts +2 -3
  33. package/dist/ui/JimboTextInput.d.ts +5 -0
  34. package/dist/ui/PanelSplitter.d.ts +2 -1
  35. package/dist/ui/hooks.d.ts +0 -1
  36. package/dist/ui/jimbo.css +1 -1
  37. package/dist/ui/panel.d.ts +2 -4
  38. package/dist/ui.d.ts +1 -0
  39. package/dist/ui.js +3 -3
  40. package/jaml.schema.json +1218 -1218
  41. package/package.json +3 -5
  42. package/dist/assets/searchPoolWorker-BtlROziN.js.map +0 -1
  43. package/dist/chunks/motelyItemDecoder-BvFrQpaI.js +0 -2061
  44. package/dist/chunks/motelyItemDecoder-BvFrQpaI.js.map +0 -1
  45. package/dist/chunks/searchPoolWorker-D1xR43D2.js.map +0 -1
  46. package/dist/chunks/ui-BEtq_JNg.js.map +0 -1
  47. package/dist/components/AnalyzerExplorer.d.ts +0 -47
@@ -2,6 +2,9 @@ export interface FilterItem {
2
2
  id: string;
3
3
  name: string;
4
4
  description: string;
5
+ deckText?: string;
6
+ stakeText?: string;
7
+ targetItems?: string[];
5
8
  authorText?: string;
6
9
  dateText?: string;
7
10
  statsText?: string;
package/dist/config.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  export declare let jamlAssetBaseUrl: string;
2
2
  export declare let motelyEnums: Record<string, unknown> | null;
3
+ export declare let motelyBinPath: string;
3
4
  export declare function setJamlAssetBaseUrl(url: string): void;
5
+ export declare function setMotelyBinPath(path: string): void;
4
6
  export declare function setMotelyEnums(motely: Record<string, unknown> | null): void;
5
7
  export declare const setMotelyDisplayEnums: typeof setMotelyEnums;
6
8
  export declare const setMotelyDecoderEnums: typeof setMotelyEnums;
package/dist/core.js CHANGED
@@ -1,19 +1,19 @@
1
- import { n as e, t } from "./chunks/assets-RWUiFSTc.js";
2
- import { t as n } from "./chunks/Layer-BBPJFHfs.js";
3
- import { _ as r, a as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, o as p, p as m, r as h, s as g, u as _, v } from "./chunks/spriteMapper-CFjN0_TV.js";
1
+ import { n as e, t } from "./chunks/assets-D80i9sMq.js";
2
+ import { _ as n, a as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, o as f, p, r as m, s as h, u as g, v as _ } from "./chunks/spriteMapper-C4_5G1Z6.js";
3
+ import { t as v } from "./chunks/Layer-Ckd_T6Fw.js";
4
4
  //#region src/utils/gameCardUtils.ts
5
5
  function y(e, t) {
6
6
  return {
7
- x: o[e] ?? 0,
8
- y: l[t] ?? 0
7
+ x: a[e] ?? 0,
8
+ y: c[t] ?? 0
9
9
  };
10
10
  }
11
11
  function b(e) {
12
- return s[e];
12
+ return o[e];
13
13
  }
14
14
  function x(e) {
15
15
  for (let t of e) {
16
- let e = a[t];
16
+ let e = i[t];
17
17
  if (e) return e;
18
18
  }
19
19
  return {
@@ -22,6 +22,6 @@ function x(e) {
22
22
  };
23
23
  }
24
24
  //#endregion
25
- export { u as BOOSTER_PACKS, i as BOSSES, p as CONSUMABLE_FACES, g as EDITION_MAP, a as ENHANCER_MAP, t as JAML_ASSET_FILES, d as JOKERS, _ as JOKER_FACES, n as Layer, o as RANK_MAP, s as SEAL_MAP, m as SPRITE_SHEETS, f as STICKER_MAP, l as SUIT_MAP, c as TAGS, r as TAROTS_AND_PLANETS, v as VOUCHERS, x as getEnhancerPosition, b as getSealPosition, h as getSpriteData, y as getStandardCardPosition, e as resolveJamlAssetUrl };
25
+ export { l as BOOSTER_PACKS, r as BOSSES, f as CONSUMABLE_FACES, h as EDITION_MAP, i as ENHANCER_MAP, t as JAML_ASSET_FILES, u as JOKERS, g as JOKER_FACES, v as Layer, a as RANK_MAP, o as SEAL_MAP, p as SPRITE_SHEETS, d as STICKER_MAP, c as SUIT_MAP, s as TAGS, n as TAROTS_AND_PLANETS, _ as VOUCHERS, x as getEnhancerPosition, b as getSealPosition, m as getSpriteData, y as getStandardCardPosition, e as resolveJamlAssetUrl };
26
26
 
27
27
  //# sourceMappingURL=core.js.map
@@ -1,16 +1,5 @@
1
- import { MotelySeedAnalysis } from 'motely-wasm/motely/analysis';
2
- import { AnalyzerAnteView } from '../components/AnalyzerExplorer.js';
3
1
  export type AnalyzerStatus = "idle" | "running" | "done" | "error";
4
- export interface UseAnalyzerState {
5
- antes: AnalyzerAnteView[];
6
- score: number | null;
7
- status: AnalyzerStatus;
8
- error: string | null;
9
- tallyLabels: string[];
10
- rawAnalysis: MotelySeedAnalysis | null;
11
- }
12
2
  export declare function useAnalyzer(): {
13
- antes: AnalyzerAnteView[];
14
3
  score: number | null;
15
4
  status: AnalyzerStatus;
16
5
  error: string | null;
@@ -1,4 +1,5 @@
1
- export type MotelyRuntimeStatus = "idle" | "booting" | "ready" | "error";
1
+ import { MotelyRuntimeStatus } from '../lib/motely/runtime.js';
2
+ export type { MotelyRuntimeStatus };
2
3
  export interface UseMotelyRuntimeState {
3
4
  status: MotelyRuntimeStatus;
4
5
  ready: boolean;
@@ -8,4 +9,3 @@ export interface UseMotelyRuntimeState {
8
9
  ensureReady: () => Promise<void>;
9
10
  }
10
11
  export declare function useMotelyRuntime(): UseMotelyRuntimeState;
11
- export declare function useMotelyRuntimeOwner(): void;
package/dist/index.d.ts CHANGED
@@ -1,8 +1,5 @@
1
- export { JAML_ASSET_FILES, resolveJamlAssetUrl, type JamlAssetFile, type JamlAssetKey, } from './assets.js';
2
- export { Layer, type LayerOptions } from './render/Layer.js';
3
1
  export { JamlCardRenderer, type JamlCardRendererProps } from './render/CanvasRenderer.js';
4
2
  export { JamlGameCard, JamlVoucher, JamlTag, JamlBoss, resolveAnalyzerShopItem, type JamlGameCardProps, type AnalyzerShopItem, type AnalyzerResolvedItem, } from './components/GameCard.js';
5
- export { AnalyzerExplorer, type AnalyzerAnteView, type AnalyzerBadge, type AnalyzerExplorerProps, type AnalyzerFact, type AnalyzerHighlight, type AnalyzerItem, } from './components/AnalyzerExplorer.js';
6
3
  export { JamlMapPreview, type JamlMapPreviewProps } from './components/JamlMapPreview.js';
7
4
  export { JamlIde, type JamlIdeProps, type JamlIdeSearchResult, type JamlVisualFilter, type JamlVisualClause, type JamlZone, } from './components/JamlIde.js';
8
5
  export { JamlCurator } from './components/JamlCurator.js';
@@ -22,9 +19,6 @@ export { useMotelyStream, type StreamItem, type StreamState } from './hooks/useS
22
19
  export { useSearch, type SearchResult, type SearchMode, type SearchStatus, type UseSearchState, } from './hooks/useSearch.js';
23
20
  export { useSearchPool, type StartPoolOptions, type UseSearchPoolOptions, type UseSearchPoolState, } from './hooks/useSearchPool.js';
24
21
  export { useAnalyzer, type AnalyzerStatus, } from './hooks/useAnalyzer.js';
25
- export { useJamlLibrary, type JamlLibraryStatus, type UseJamlLibraryState, } from './hooks/useJamlLibrary.js';
26
- export { useMotelyRuntime, useMotelyRuntimeOwner, type UseMotelyRuntimeState, type MotelyRuntimeStatus, } from './hooks/useMotelyRuntime.js';
27
- export { motelyItemRenderCategory } from './decode/motelyItemDecoder.js';
28
22
  export { PaginatedFilterBrowser, type PaginatedFilterBrowserProps, type FilterItem, } from './components/PaginatedFilterBrowser.js';
29
23
  export { JamlAestheticSelector, type JamlAestheticSelectorProps, type JamlAestheticOption, } from './components/JamlAestheticSelector.js';
30
24
  export { JamlSeedInput, type JamlSeedInputProps, type JamlSeedInputVariant, } from './components/JamlSeedInput.js';