jaml-ui 0.27.0 → 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.
- package/README.md +13 -17
- package/dist/assets/{searchPoolWorker-CejAnH4a.js → searchPoolWorker-C4xj1WA_.js} +9 -4
- package/dist/assets/searchPoolWorker-C4xj1WA_.js.map +1 -0
- package/dist/chunks/{Layer-BBPJFHfs.js → Layer-Ckd_T6Fw.js} +1 -1
- package/dist/chunks/{Layer-BBPJFHfs.js.map → Layer-Ckd_T6Fw.js.map} +1 -1
- package/dist/chunks/{assets-RWUiFSTc.js → assets-D80i9sMq.js} +1 -1
- package/dist/chunks/{assets-RWUiFSTc.js.map → assets-D80i9sMq.js.map} +1 -1
- package/dist/chunks/runtime-C-It0krH.js +10 -0
- package/dist/chunks/runtime-C-It0krH.js.map +1 -0
- package/dist/chunks/{searchPoolWorker-CTtPOuxF.js → searchPoolWorker-hVVM49SD.js} +2 -2
- package/dist/chunks/searchPoolWorker-hVVM49SD.js.map +1 -0
- package/dist/chunks/{spriteMapper-CFjN0_TV.js → spriteMapper-C4_5G1Z6.js} +10 -6
- package/dist/chunks/spriteMapper-C4_5G1Z6.js.map +1 -0
- package/dist/chunks/{tokens-B65Fzble.js → tokens-Qrhlekc4.js} +1 -1
- package/dist/chunks/{tokens-B65Fzble.js.map → tokens-Qrhlekc4.js.map} +1 -1
- package/dist/chunks/ui-D_9HO9OO.js +3127 -0
- package/dist/chunks/ui-D_9HO9OO.js.map +1 -0
- package/dist/components/JamlAestheticSelector.d.ts +2 -3
- package/dist/components/JamlIdeToolbar.d.ts +3 -1
- package/dist/components/JamlSeedInput.d.ts +14 -4
- package/dist/components/JamlSeedSpinner.d.ts +7 -0
- package/dist/components/Jamlyzer.d.ts +5 -1
- package/dist/components/PaginatedFilterBrowser.d.ts +3 -0
- package/dist/components/RunConfigModal.d.ts +1 -1
- package/dist/components/jamlSeedUtils.d.ts +1 -0
- package/dist/config.d.ts +7 -4
- package/dist/core.js +8 -8
- package/dist/core.js.map +1 -1
- package/dist/decode/motelyItemFormats.d.ts +3124 -0
- package/dist/hooks/useAnalyzer.d.ts +0 -11
- package/dist/hooks/useIntersectionObserver.d.ts +1 -1
- package/dist/hooks/useMotelyRuntime.d.ts +2 -2
- package/dist/hooks/useSearch.d.ts +3 -3
- package/dist/index.d.ts +3 -7
- package/dist/index.js +3590 -4352
- package/dist/index.js.map +1 -1
- package/dist/lib/hooks/useDragScroll.d.ts +1 -1
- package/dist/lib/motely/runtime.d.ts +3 -0
- package/dist/motely.d.ts +3 -2
- package/dist/motely.js +2101 -24
- package/dist/motely.js.map +1 -1
- package/dist/providers/MotelyProvider.d.ts +11 -0
- package/dist/r3f.js +4 -4
- package/dist/r3f.js.map +1 -1
- package/dist/ui/JimboBadge.d.ts +2 -3
- package/dist/ui/JimboPanelSpinner.d.ts +15 -0
- package/dist/ui/JimboTextInput.d.ts +5 -0
- package/dist/ui/PanelSplitter.d.ts +2 -1
- package/dist/ui/footer.d.ts +7 -1
- package/dist/ui/hooks.d.ts +2 -3
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui/panel.d.ts +2 -4
- package/dist/ui.d.ts +3 -0
- package/dist/ui.js +3 -3
- package/jaml.schema.json +341 -287
- package/package.json +20 -24
- package/DESIGN.md +0 -236
- package/dist/assets/searchPoolWorker-CejAnH4a.js.map +0 -1
- package/dist/chunks/motelyItemDecoder-CRhfNIGU.js +0 -219
- package/dist/chunks/motelyItemDecoder-CRhfNIGU.js.map +0 -1
- package/dist/chunks/searchPoolWorker-CTtPOuxF.js.map +0 -1
- package/dist/chunks/spriteMapper-CFjN0_TV.js.map +0 -1
- package/dist/chunks/ui-BBUfR6RM.js +0 -1386
- package/dist/chunks/ui-BBUfR6RM.js.map +0 -1
- package/dist/components/AnalyzerExplorer.d.ts +0 -47
- package/dist/motelyBoot.d.ts +0 -15
- package/dist/ui/ide/DeckSprite.d.ts +0 -1
- package/dist/ui/ide/RegexTool.d.ts +0 -3
|
@@ -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;
|
|
@@ -4,7 +4,7 @@ export interface UseIntersectionObserverOptions extends IntersectionObserverInit
|
|
|
4
4
|
/**
|
|
5
5
|
* Encapsulates IntersectionObserver logic.
|
|
6
6
|
*/
|
|
7
|
-
export declare function useIntersectionObserver(
|
|
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,5 @@
|
|
|
1
|
-
import { MotelyRuntimeStatus } from '../
|
|
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;
|
|
@@ -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
|
@@ -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,11 +19,10 @@ 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, } 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
|
-
export { JamlSeedInput, type JamlSeedInputProps, } from './components/JamlSeedInput.js';
|
|
24
|
+
export { JamlSeedInput, type JamlSeedInputProps, type JamlSeedInputVariant, } from './components/JamlSeedInput.js';
|
|
25
|
+
export { normalizeJamlSeed } from './components/jamlSeedUtils.js';
|
|
26
|
+
export { JamlSeedSpinner, type JamlSeedSpinnerProps, } from './components/JamlSeedSpinner.js';
|
|
31
27
|
export { setJamlAssetBaseUrl, setMotelyDisplayEnums, setMotelyDecoderEnums, getJamlAssetBaseUrl, getMotelyEnums, } from './config.js';
|
|
32
28
|
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';
|