jaml-ui 0.26.6 → 0.28.1

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 (53) hide show
  1. package/README.md +11 -6
  2. package/dist/assets/{searchPoolWorker-CejAnH4a.js → searchPoolWorker-BtlROziN.js} +9 -4
  3. package/dist/assets/searchPoolWorker-BtlROziN.js.map +1 -0
  4. package/dist/chunks/Layer-BBPJFHfs.js.map +1 -1
  5. package/dist/chunks/assets-RWUiFSTc.js.map +1 -1
  6. package/dist/chunks/motelyItemDecoder-BvFrQpaI.js +2061 -0
  7. package/dist/chunks/motelyItemDecoder-BvFrQpaI.js.map +1 -0
  8. package/dist/chunks/{searchPoolWorker-CTtPOuxF.js → searchPoolWorker-D1xR43D2.js} +2 -2
  9. package/dist/chunks/searchPoolWorker-D1xR43D2.js.map +1 -0
  10. package/dist/chunks/spriteMapper-CFjN0_TV.js.map +1 -1
  11. package/dist/chunks/tokens-B65Fzble.js.map +1 -1
  12. package/dist/chunks/ui-BEtq_JNg.js +3229 -0
  13. package/dist/chunks/ui-BEtq_JNg.js.map +1 -0
  14. package/dist/components/JamlAestheticSelector.d.ts +2 -3
  15. package/dist/components/JamlIdeToolbar.d.ts +3 -1
  16. package/dist/components/JamlSeedInput.d.ts +14 -4
  17. package/dist/components/JamlSeedSpinner.d.ts +7 -0
  18. package/dist/components/Jamlyzer.d.ts +5 -1
  19. package/dist/components/RunConfigModal.d.ts +1 -1
  20. package/dist/components/jamlSeedUtils.d.ts +1 -0
  21. package/dist/config.d.ts +5 -4
  22. package/dist/core.js.map +1 -1
  23. package/dist/decode/motelyItemFormats.d.ts +3124 -0
  24. package/dist/hooks/useIntersectionObserver.d.ts +1 -1
  25. package/dist/hooks/useMotelyRuntime.d.ts +1 -1
  26. package/dist/hooks/useSearch.d.ts +3 -3
  27. package/dist/index.d.ts +4 -2
  28. package/dist/index.js +3298 -3268
  29. package/dist/index.js.map +1 -1
  30. package/dist/lib/hooks/useDragScroll.d.ts +1 -1
  31. package/dist/motely.d.ts +2 -2
  32. package/dist/motely.js +23 -22
  33. package/dist/motely.js.map +1 -1
  34. package/dist/r3f.js.map +1 -1
  35. package/dist/ui/JimboPanelSpinner.d.ts +15 -0
  36. package/dist/ui/footer.d.ts +7 -1
  37. package/dist/ui/hooks.d.ts +2 -2
  38. package/dist/ui/jimbo.css +1 -1
  39. package/dist/ui/jimboText.d.ts +4 -6
  40. package/dist/ui/panel.d.ts +1 -2
  41. package/dist/ui.d.ts +2 -0
  42. package/dist/ui.js +3 -3
  43. package/jaml.schema.json +1219 -1165
  44. package/package.json +20 -22
  45. package/DESIGN.md +0 -236
  46. package/dist/assets/searchPoolWorker-CejAnH4a.js.map +0 -1
  47. package/dist/chunks/motelyItemDecoder-Bg12hhB2.js +0 -248
  48. package/dist/chunks/motelyItemDecoder-Bg12hhB2.js.map +0 -1
  49. package/dist/chunks/searchPoolWorker-CTtPOuxF.js.map +0 -1
  50. package/dist/chunks/ui-ByciFBYB.js +0 -1387
  51. package/dist/chunks/ui-ByciFBYB.js.map +0 -1
  52. package/dist/motelyBoot.d.ts +0 -15
  53. package/dist/ui/ide/DeckSprite.d.ts +0 -1
@@ -4,7 +4,7 @@ export interface UseIntersectionObserverOptions extends IntersectionObserverInit
4
4
  /**
5
5
  * Encapsulates IntersectionObserver logic.
6
6
  */
7
- export declare function useIntersectionObserver(options?: UseIntersectionObserverOptions): {
7
+ export declare function useIntersectionObserver({ root, rootMargin, threshold, freezeOnceVisible, }?: UseIntersectionObserverOptions): {
8
8
  ref: (node: Element | null) => void;
9
9
  entry: IntersectionObserverEntry | null;
10
10
  };
@@ -1,4 +1,4 @@
1
- import { MotelyRuntimeStatus } from '../motelyBoot.js';
1
+ export type MotelyRuntimeStatus = "idle" | "booting" | "ready" | "error";
2
2
  export interface UseMotelyRuntimeState {
3
3
  status: MotelyRuntimeStatus;
4
4
  ready: boolean;
@@ -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) => Promise<void>;
19
- startSeedList: (jaml: string, seeds: string[]) => Promise<void>;
20
- startRandom: (jaml: string, count: number) => Promise<void>;
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>;
21
21
  cancel: () => void;
22
22
  reset: () => void;
23
23
  clearError: () => void;
package/dist/index.d.ts CHANGED
@@ -23,10 +23,12 @@ export { useSearch, type SearchResult, type SearchMode, type SearchStatus, type
23
23
  export { useSearchPool, type StartPoolOptions, type UseSearchPoolOptions, type UseSearchPoolState, } from './hooks/useSearchPool.js';
24
24
  export { useAnalyzer, type AnalyzerStatus, } from './hooks/useAnalyzer.js';
25
25
  export { useJamlLibrary, type JamlLibraryStatus, type UseJamlLibraryState, } from './hooks/useJamlLibrary.js';
26
- export { useMotelyRuntime, useMotelyRuntimeOwner, type UseMotelyRuntimeState, } from './hooks/useMotelyRuntime.js';
26
+ export { useMotelyRuntime, useMotelyRuntimeOwner, type UseMotelyRuntimeState, type MotelyRuntimeStatus, } from './hooks/useMotelyRuntime.js';
27
27
  export { motelyItemRenderCategory } from './decode/motelyItemDecoder.js';
28
28
  export { PaginatedFilterBrowser, type PaginatedFilterBrowserProps, type FilterItem, } from './components/PaginatedFilterBrowser.js';
29
29
  export { JamlAestheticSelector, type JamlAestheticSelectorProps, type JamlAestheticOption, } from './components/JamlAestheticSelector.js';
30
- export { JamlSeedInput, type JamlSeedInputProps, } from './components/JamlSeedInput.js';
30
+ export { JamlSeedInput, type JamlSeedInputProps, type JamlSeedInputVariant, } from './components/JamlSeedInput.js';
31
+ export { normalizeJamlSeed } from './components/jamlSeedUtils.js';
32
+ export { JamlSeedSpinner, type JamlSeedSpinnerProps, } from './components/JamlSeedSpinner.js';
31
33
  export { setJamlAssetBaseUrl, setMotelyDisplayEnums, setMotelyDecoderEnums, getJamlAssetBaseUrl, getMotelyEnums, } from './config.js';
32
34
  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';