jaml-ui 0.32.1 → 1.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.
Files changed (37) hide show
  1. package/dist/assets/searchPoolWorker-DWobBIhl.js +40 -0
  2. package/dist/assets/searchPoolWorker-DWobBIhl.js.map +1 -0
  3. package/dist/chunks/motelyItemFormats-CNrFzcCI.js +1836 -0
  4. package/dist/chunks/motelyItemFormats-CNrFzcCI.js.map +1 -0
  5. package/dist/chunks/{searchPoolWorker-Dqhc9lfv.js → searchPoolWorker-tBaSbLZu.js} +2 -2
  6. package/dist/chunks/searchPoolWorker-tBaSbLZu.js.map +1 -0
  7. package/dist/chunks/{ui-UqEG1EZ9.js → ui-Dn8IIoV3.js} +809 -967
  8. package/dist/chunks/ui-Dn8IIoV3.js.map +1 -0
  9. package/dist/components/JamlAestheticSelector.d.ts +1 -1
  10. package/dist/components/SeedFinderApp.d.ts +7 -0
  11. package/dist/components/jamlMap/JokerPicker.d.ts +1 -1
  12. package/dist/components/jamlMap/MysterySlot.d.ts +1 -1
  13. package/dist/decode/motelyItemDecoder.d.ts +6 -0
  14. package/dist/hooks/searchPoolWorker.d.ts +1 -0
  15. package/dist/hooks/useAnalyzer.d.ts +2 -2
  16. package/dist/hooks/useSearch.d.ts +3 -3
  17. package/dist/hooks/useSearchPool.d.ts +2 -1
  18. package/dist/index.d.ts +2 -1
  19. package/dist/index.js +3677 -3366
  20. package/dist/index.js.map +1 -1
  21. package/dist/lib/hooks/useSeedAnalyzer.d.ts +1 -1
  22. package/dist/lib/types.d.ts +1 -1
  23. package/dist/motely.js +152 -1960
  24. package/dist/motely.js.map +1 -1
  25. package/dist/r3f.js +15 -15
  26. package/dist/ui/jimbo.css +1 -1
  27. package/dist/ui/panel.d.ts +14 -1
  28. package/dist/ui.d.ts +0 -1
  29. package/dist/ui.js +2 -2
  30. package/package.json +4 -4
  31. package/dist/assets/searchPoolWorker-6mF4VfgO.js +0 -40
  32. package/dist/assets/searchPoolWorker-6mF4VfgO.js.map +0 -1
  33. package/dist/chunks/runtime-Bklr4A-D.js +0 -10
  34. package/dist/chunks/runtime-Bklr4A-D.js.map +0 -1
  35. package/dist/chunks/searchPoolWorker-Dqhc9lfv.js.map +0 -1
  36. package/dist/chunks/ui-UqEG1EZ9.js.map +0 -1
  37. package/dist/ui/JimboButton.d.ts +0 -62
@@ -1,4 +1,4 @@
1
- import { JamlAesthetic } from 'motely-wasm/motely/filters/jaml';
1
+ import { JamlAesthetic } from 'motely-wasm';
2
2
  export interface JamlAestheticSelectorProps {
3
3
  value?: JamlAesthetic | null;
4
4
  onChange: (aesthetic: JamlAesthetic | null) => void;
@@ -0,0 +1,7 @@
1
+ import { MotelyDeck, MotelyStake } from 'motely-wasm';
2
+ export interface SeedFinderAppProps {
3
+ initialJaml?: string;
4
+ initialDeck?: keyof typeof MotelyDeck;
5
+ initialStake?: keyof typeof MotelyStake;
6
+ }
7
+ export declare function SeedFinderApp({ initialJaml, initialDeck, initialStake, }: SeedFinderAppProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { MotelyJokerRarity } from 'motely-wasm/motely/enums';
1
+ import { MotelyJokerRarity } from 'motely-wasm';
2
2
  import { SlotSelection } from './MysterySlot.js';
3
3
  export type JokerRarity = MotelyJokerRarity;
4
4
  export interface JokerPickerProps {
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { MotelyJokerRarity } from 'motely-wasm/motely/enums';
2
+ import { MotelyJokerRarity } from 'motely-wasm';
3
3
  import { SpriteSheetType } from '../../sprites/spriteMapper.js';
4
4
  export type JamlZone = "must" | "should" | "mustnot";
5
5
  /** The item category that can appear in a slot. */
@@ -20,6 +20,9 @@ export interface DecodedMotelyItem {
20
20
  enhancement: string | null;
21
21
  rank: string | null;
22
22
  suit: "Clubs" | "Diamonds" | "Hearts" | "Spades" | null;
23
+ isEternal: boolean;
24
+ isPerishable: boolean;
25
+ isRental: boolean;
23
26
  }
24
27
  export interface MotelyJamlCard {
25
28
  type: "joker" | "consumable" | "playing";
@@ -30,6 +33,9 @@ export interface MotelyJamlCard {
30
33
  enhancements?: string[];
31
34
  rank?: string;
32
35
  suit?: string;
36
+ isEternal?: boolean;
37
+ isPerishable?: boolean;
38
+ isRental?: boolean;
33
39
  scale?: number;
34
40
  };
35
41
  }
@@ -13,6 +13,7 @@ export interface PoolStartMessage {
13
13
  aesthetic?: number;
14
14
  deck?: number;
15
15
  stake?: number;
16
+ predicateStr?: string;
16
17
  }
17
18
  export interface PoolStopMessage {
18
19
  type: "stop";
@@ -8,8 +8,8 @@ export declare function useAnalyzer(): {
8
8
  tallyLabels: string[];
9
9
  rawAnalysis: Readonly<{
10
10
  error?: string;
11
- antes: Array<import('motely-wasm/motely/analysis').MotelyAnteAnalysis>;
12
- deck?: import('motely-wasm/motely/enums').MotelyDeck;
11
+ antes: Array<import('motely-wasm').MotelyAnteAnalysis>;
12
+ deck?: import('motely-wasm').MotelyDeck;
13
13
  erraticDeckComposition?: string;
14
14
  erraticDeckBreakdown?: string;
15
15
  }> | null;
@@ -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) => boolean) => Promise<void>;
19
- startSeedList: (jaml: string, seeds: string[], predicate?: (seed: string) => boolean) => Promise<void>;
20
- startRandom: (jaml: string, count: number, predicate?: (seed: string) => boolean) => Promise<void>;
18
+ startAesthetic: (jaml: string, aesthetic: number, predicate?: (seed: string, deck?: number, stake?: number) => boolean) => Promise<void>;
19
+ startSeedList: (jaml: string, seeds: string[], predicate?: (seed: string, deck?: number, stake?: number) => boolean) => Promise<void>;
20
+ startRandom: (jaml: string, count: number, predicate?: (seed: string, deck?: number, stake?: number) => boolean) => Promise<void>;
21
21
  cancel: () => void;
22
22
  reset: () => void;
23
23
  clearError: () => void;
@@ -1,4 +1,4 @@
1
- import { JamlAesthetic } from 'motely-wasm/motely/filters/jaml';
1
+ import { JamlAesthetic } from 'motely-wasm';
2
2
  import { SearchResult, SearchStatus } from './useSearch.js';
3
3
  export interface UseSearchPoolState {
4
4
  results: SearchResult[];
@@ -22,6 +22,7 @@ export interface StartPoolOptions {
22
22
  batchCharacterCount?: number;
23
23
  deck?: number;
24
24
  stake?: number;
25
+ predicateStr?: string;
25
26
  }
26
27
  export declare function useSearchPool(options?: UseSearchPoolOptions): {
27
28
  startRandom: (jaml: string, count: number, opts?: StartPoolOptions) => Promise<void>;
package/dist/index.d.ts CHANGED
@@ -22,9 +22,10 @@ export { useSearchPool, type StartPoolOptions, type UseSearchPoolOptions, type U
22
22
  export { useAnalyzer, type AnalyzerStatus, } from './hooks/useAnalyzer.js';
23
23
  export { PaginatedFilterBrowser, type PaginatedFilterBrowserProps, type FilterItem, } from './components/PaginatedFilterBrowser.js';
24
24
  export { JamlAestheticSelector, type JamlAestheticSelectorProps, } from './components/JamlAestheticSelector.js';
25
- export { JamlAesthetic } from 'motely-wasm/motely/filters/jaml';
25
+ export { JamlAesthetic } from 'motely-wasm';
26
26
  export { JamlSeedInput, type JamlSeedInputProps, type JamlSeedInputVariant, } from './components/JamlSeedInput.js';
27
27
  export { normalizeJamlSeed } from './components/jamlSeedUtils.js';
28
28
  export { JamlSeedSpinner, type JamlSeedSpinnerProps, } from './components/JamlSeedSpinner.js';
29
29
  export { Jamlyzer, type JamlyzerProps } from './components/Jamlyzer.js';
30
+ export { RunConfigModal, type RunConfigModalProps } from './components/RunConfigModal.js';
30
31
  export { JamlMapEditor, JokerPicker, MysterySlot, CategoryPicker, type JamlMapEditorProps, type JokerPickerProps, type JokerRarity, type MysterySlotProps, type SlotCategory, type SlotSelection, type CategoryPickerConfig, type CategoryPickerProps, VOUCHER_PICKER_CONFIG, TAG_PICKER_CONFIG, BOSS_PICKER_CONFIG, TAROT_PICKER_CONFIG, PLANET_PICKER_CONFIG, SPECTRAL_PICKER_CONFIG, PACK_PICKER_CONFIG, } from './components/jamlMap/index.js';