jaml-ui 0.28.1 → 0.30.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 +2 -11
- package/dist/assets/{searchPoolWorker-BtlROziN.js → searchPoolWorker-C4xj1WA_.js} +2 -2
- 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-D1xR43D2.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-CFjN0_TV.js.map → spriteMapper-C4_5G1Z6.js.map} +1 -1
- 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-BEtq_JNg.js → ui-D_9HO9OO.js} +684 -786
- package/dist/chunks/ui-D_9HO9OO.js.map +1 -0
- package/dist/components/PaginatedFilterBrowser.d.ts +3 -0
- package/dist/config.d.ts +2 -0
- package/dist/core.js +8 -8
- package/dist/hooks/useAnalyzer.d.ts +0 -11
- package/dist/hooks/useMotelyRuntime.d.ts +2 -2
- package/dist/index.d.ts +0 -6
- package/dist/index.js +3226 -4027
- package/dist/index.js.map +1 -1
- package/dist/lib/motely/runtime.d.ts +3 -0
- package/dist/motely.d.ts +2 -1
- package/dist/motely.js +2104 -25
- package/dist/motely.js.map +1 -1
- package/dist/providers/MotelyProvider.d.ts +11 -0
- package/dist/r3f.js +4 -4
- package/dist/ui/JimboBadge.d.ts +2 -3
- package/dist/ui/JimboTextInput.d.ts +5 -0
- package/dist/ui/PanelSplitter.d.ts +2 -1
- package/dist/ui/hooks.d.ts +0 -1
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui/panel.d.ts +2 -4
- package/dist/ui.d.ts +1 -0
- package/dist/ui.js +3 -3
- package/jaml.schema.json +1218 -1218
- package/package.json +3 -5
- package/dist/assets/searchPoolWorker-BtlROziN.js.map +0 -1
- package/dist/chunks/motelyItemDecoder-BvFrQpaI.js +0 -2061
- package/dist/chunks/motelyItemDecoder-BvFrQpaI.js.map +0 -1
- package/dist/chunks/searchPoolWorker-D1xR43D2.js.map +0 -1
- package/dist/chunks/ui-BEtq_JNg.js.map +0 -1
- package/dist/components/AnalyzerExplorer.d.ts +0 -47
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-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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:
|
|
8
|
-
y:
|
|
7
|
+
x: a[e] ?? 0,
|
|
8
|
+
y: c[t] ?? 0
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
function b(e) {
|
|
12
|
-
return
|
|
12
|
+
return o[e];
|
|
13
13
|
}
|
|
14
14
|
function x(e) {
|
|
15
15
|
for (let t of e) {
|
|
16
|
-
let e =
|
|
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 {
|
|
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
|
-
|
|
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';
|