jaml-ui 2.3.1 → 2.5.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.
- package/dist/assets/searchPoolWorker-DA5uFkl3.js +2 -0
- package/dist/assets/searchPoolWorker-DA5uFkl3.js.map +1 -0
- package/dist/chunks/{jamlSeeds-CKHvpjhC.js → jamlSeeds-CRthre97.js} +23 -20
- package/dist/chunks/{jamlSeeds-CKHvpjhC.js.map → jamlSeeds-CRthre97.js.map} +1 -1
- package/dist/chunks/runtime-D7eHq1kP.js +2060 -0
- package/dist/chunks/{runtime-Dx5VPTsV.js.map → runtime-D7eHq1kP.js.map} +1 -1
- package/dist/chunks/{searchPoolWorker-CEK2FyxS.js → searchPoolWorker-649yzf3l.js} +2 -2
- package/dist/chunks/searchPoolWorker-649yzf3l.js.map +1 -0
- package/dist/chunks/spriteMapper-BqG15k6f.js +2496 -0
- package/dist/chunks/{spriteMapper-C8uYedXB.js.map → spriteMapper-BqG15k6f.js.map} +1 -1
- package/dist/chunks/{ui-BK5rM4AS.js → ui-DwggmAYr.js} +1084 -1164
- package/dist/chunks/ui-DwggmAYr.js.map +1 -0
- package/dist/components/JamlAestheticSelector.d.ts +1 -1
- package/dist/components/JamlCurator.d.ts +1 -0
- package/dist/components/JamlIdeVisual.d.ts +0 -2
- package/dist/components/JimmolateEditor.d.ts +1 -1
- package/dist/components/SeedFinderApp.d.ts +1 -1
- package/dist/core.js +13 -10
- package/dist/core.js.map +1 -1
- package/dist/hooks/useAnalyzer.d.ts +1 -6
- package/dist/hooks/useSearch.d.ts +3 -4
- package/dist/hooks/useSearchPool.d.ts +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +8436 -5646
- package/dist/index.js.map +1 -1
- package/dist/json-render/builders/analyzer.d.ts +23 -0
- package/dist/json-render/builders/encyclopedia.d.ts +14 -0
- package/dist/json-render/builders/search.d.ts +24 -0
- package/dist/json-render/catalog.d.ts +179 -0
- package/dist/json-render/components/domain.d.ts +58 -0
- package/dist/json-render/components/game.d.ts +22 -0
- package/dist/json-render/components/layout.d.ts +50 -0
- package/dist/json-render/components/reference.d.ts +38 -0
- package/dist/json-render/engine.d.ts +38 -0
- package/dist/json-render/index.d.ts +28 -0
- package/dist/json-render/knowledge/bosses.d.ts +18 -0
- package/dist/json-render/knowledge/decks.d.ts +22 -0
- package/dist/json-render/knowledge/jokers.d.ts +23 -0
- package/dist/json-render/knowledge/synergies.d.ts +21 -0
- package/dist/json-render/registry.d.ts +14 -0
- package/dist/lib/hooks/useSeedAnalyzer.d.ts +2 -14
- package/dist/lib/motely/runtime.d.ts +31 -4
- package/dist/lib/types.d.ts +1 -1
- package/dist/lib/utils.d.ts +2 -0
- package/dist/motely.d.ts +3 -3
- package/dist/motely.js +93 -73
- package/dist/motely.js.map +1 -1
- package/dist/ui/JimboPanelSplitter.d.ts +8 -0
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui/showcase.d.ts +38 -0
- package/dist/ui.d.ts +0 -1
- package/dist/ui.js +2 -2
- package/package.json +39 -44
- package/dist/assets/searchPoolWorker-BdrYmnig.js +0 -2
- package/dist/assets/searchPoolWorker-BdrYmnig.js.map +0 -1
- package/dist/chunks/runtime-Dx5VPTsV.js +0 -2031
- package/dist/chunks/searchPoolWorker-CEK2FyxS.js.map +0 -1
- package/dist/chunks/spriteMapper-C8uYedXB.js +0 -2455
- package/dist/chunks/ui-BK5rM4AS.js.map +0 -1
- package/dist/r3f/Card3D.d.ts +0 -48
- package/dist/r3f/CardTable.d.ts +0 -35
- package/dist/r3f.d.ts +0 -2
- package/dist/r3f.js +0 -275
- package/dist/r3f.js.map +0 -1
- package/dist/ui/JimboCookLever.d.ts +0 -30
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function JamlCurator(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SpriteSheetType } from '../sprites/spriteMapper.js';
|
|
2
1
|
export type JamlZone = "must" | "should" | "mustnot";
|
|
3
2
|
export interface JamlVisualClause {
|
|
4
3
|
id: string;
|
|
@@ -28,5 +27,4 @@ export interface JamlIdeVisualProps {
|
|
|
28
27
|
/** Tap the "?" mystery tile to add a new clause to a zone (Pass 2 wires this to the cascade picker). */
|
|
29
28
|
onAddClause?: (zone: JamlZone) => void;
|
|
30
29
|
}
|
|
31
|
-
export declare function clauseSpriteSheet(type: string): SpriteSheetType | undefined;
|
|
32
30
|
export declare function JamlIdeVisual({ filter, onChange, onEditClause, onAddClause }: JamlIdeVisualProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A Jimmolate predicate: per-seed JavaScript that runs INSIDE the Motely search
|
|
3
|
-
* loop (bound to `
|
|
3
|
+
* loop (bound to `Jimmolate.findSeed` pre-boot — see lib/motely/runtime.ts),
|
|
4
4
|
* layered on top of the JAML must/should/mustNot clauses. Return `true` to keep
|
|
5
5
|
* a seed, `false` to reject it.
|
|
6
6
|
*/
|
package/dist/core.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
3
|
-
|
|
4
|
-
function
|
|
1
|
+
import { S as e, _ as t, a as n, b 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 _, x as v, y } from "./chunks/spriteMapper-BqG15k6f.js";
|
|
2
|
+
import { i as b, n as x, r as S, t as C } from "./chunks/jamlSeeds-CRthre97.js";
|
|
3
|
+
v(), b(), y();
|
|
4
|
+
function w(e, t) {
|
|
5
5
|
return {
|
|
6
6
|
x: a[e] ?? 0,
|
|
7
|
-
y:
|
|
7
|
+
y: c[t] ?? 0
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return
|
|
10
|
+
function T(e) {
|
|
11
|
+
return o[e];
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function E(e) {
|
|
14
14
|
for (let t of e) {
|
|
15
|
-
let e =
|
|
15
|
+
let e = i[t];
|
|
16
16
|
if (e) return e;
|
|
17
17
|
}
|
|
18
18
|
return {
|
|
@@ -21,6 +21,9 @@ function C(e) {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
|
-
|
|
24
|
+
//#region src/core.ts
|
|
25
|
+
y();
|
|
26
|
+
//#endregion
|
|
27
|
+
export { l as BOOSTER_PACKS, n as BOSSES, f as CONSUMABLE_FACES, h as EDITION_MAP, i as ENHANCER_MAP, r as JAML_ASSET_FILES, u as JOKERS, g as JOKER_FACES, S 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, t as TAROTS_AND_PLANETS, _ as VOUCHERS, E as getEnhancerPosition, T as getSealPosition, m as getSpriteData, w as getStandardCardPosition, C as mergeSeedsIntoJaml, x as parseJamlSeeds, e as resolveJamlAssetUrl };
|
|
25
28
|
|
|
26
29
|
//# sourceMappingURL=core.js.map
|
package/dist/core.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.js","names":[],"sources":["../src/utils/gameCardUtils.ts"],"sourcesContent":["import { RANK_MAP, SUIT_MAP, SEAL_MAP, ENHANCER_MAP, type SpritePos } from \"../sprites/spriteData.js\";\n\nexport function getStandardCardPosition(rank: string, suit: string): SpritePos {\n return { x: RANK_MAP[rank] ?? 0, y: SUIT_MAP[suit] ?? 0 };\n}\n\nexport function getSealPosition(seal: string): SpritePos | undefined {\n return SEAL_MAP[seal];\n}\n\nexport function getEnhancerPosition(modifiers: string[]): SpritePos {\n for (const m of modifiers) {\n const pos = ENHANCER_MAP[m];\n if (pos) return pos;\n }\n return { x: 1, y: 0 };\n}\n"
|
|
1
|
+
{"version":3,"file":"core.js","names":[],"sources":["../src/utils/gameCardUtils.ts","../src/core.ts"],"sourcesContent":["import { RANK_MAP, SUIT_MAP, SEAL_MAP, ENHANCER_MAP, type SpritePos } from \"../sprites/spriteData.js\";\n\nexport function getStandardCardPosition(rank: string, suit: string): SpritePos {\n return { x: RANK_MAP[rank] ?? 0, y: SUIT_MAP[suit] ?? 0 };\n}\n\nexport function getSealPosition(seal: string): SpritePos | undefined {\n return SEAL_MAP[seal];\n}\n\nexport function getEnhancerPosition(modifiers: string[]): SpritePos {\n for (const m of modifiers) {\n const pos = ENHANCER_MAP[m];\n if (pos) return pos;\n }\n return { x: 1, y: 0 };\n}\n","export {\n JAML_ASSET_FILES,\n resolveJamlAssetUrl,\n type JamlAssetFile,\n type JamlAssetKey,\n} from \"./assets.js\";\n\nexport { Layer, type LayerOptions } from \"./render/Layer.js\";\n\nexport { getSpriteData, type SpriteData, type SpriteSheetType } from \"./sprites/spriteMapper.js\";\nexport {\n SPRITE_SHEETS,\n JOKERS,\n JOKER_FACES,\n TAROTS_AND_PLANETS,\n CONSUMABLE_FACES,\n VOUCHERS,\n BOSSES,\n TAGS,\n BOOSTER_PACKS,\n EDITION_MAP,\n STICKER_MAP,\n RANK_MAP,\n SUIT_MAP,\n ENHANCER_MAP,\n SEAL_MAP,\n type SpritePos,\n type SpriteEntry,\n type SpriteSheetInfo,\n} from \"./sprites/spriteData.js\";\n\n\nexport { getStandardCardPosition, getSealPosition, getEnhancerPosition } from \"./utils/gameCardUtils.js\";\n\nexport { mergeSeedsIntoJaml, parseJamlSeeds } from \"./lib/jaml/jamlSeeds.js\";\n"],"mappings":";;;AAEA,SAAA,EAAA,GAAA,GAAA;;;;;AAEA;AAEA,SAAA,EAAA,GAAA;;AAEA;AAEA,SAAA,EAAA,GAAA;;;;;;;;;AAMA;;;ECaO"}
|
|
@@ -6,10 +6,5 @@ export declare function useAnalyzer(): {
|
|
|
6
6
|
analyze: (seed: string, jaml: string) => void;
|
|
7
7
|
clearError: () => void;
|
|
8
8
|
tallyLabels: string[];
|
|
9
|
-
rawAnalysis:
|
|
10
|
-
error?: string;
|
|
11
|
-
deck: import('motely-wasm/motely/enums').MotelyDeck;
|
|
12
|
-
antes: Array<import('motely-wasm/motely/analysis').JamlyzerAnte>;
|
|
13
|
-
rolls: import('motely-wasm/motely/analysis').JamlyzerRolls;
|
|
14
|
-
}> | null;
|
|
9
|
+
rawAnalysis: any;
|
|
15
10
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { JimmolateProbe } from '../lib/motely/runtime.js';
|
|
2
1
|
export interface SearchResult {
|
|
3
2
|
seed: string;
|
|
4
3
|
score: number;
|
|
@@ -16,9 +15,9 @@ export interface UseSearchState {
|
|
|
16
15
|
tallyLabels: string[];
|
|
17
16
|
}
|
|
18
17
|
export declare function useSearch(): {
|
|
19
|
-
startAesthetic: (jaml: string, aesthetic: number, predicate?:
|
|
20
|
-
startSeedList: (jaml: string, seeds: string[], predicate?:
|
|
21
|
-
startRandom: (jaml: string, count: number, predicate?:
|
|
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>;
|
|
22
21
|
cancel: () => void;
|
|
23
22
|
reset: () => void;
|
|
24
23
|
clearError: () => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { JamlCardRenderer, type JamlCardRendererProps } from './render/CanvasRen
|
|
|
2
2
|
export { JamlGameCard, JamlVoucher, JamlTag, JamlBoss, resolveAnalyzerShopItem, type JamlGameCardProps, type AnalyzerShopItem, type AnalyzerResolvedItem, } from './components/GameCard.js';
|
|
3
3
|
export { JamlMapPreview, type JamlMapPreviewProps } from './components/JamlMapPreview.js';
|
|
4
4
|
export { JamlIde, type JamlIdeProps, type JamlIdeSearchResult, type JamlVisualFilter, type JamlVisualClause, type JamlZone, } from './components/JamlIde.js';
|
|
5
|
+
export { JamlCurator } from './components/JamlCurator.js';
|
|
5
6
|
export { JamlIdeVisual, type JamlIdeVisualProps, } from './components/JamlIdeVisual.js';
|
|
6
7
|
export { JamlCodeEditor, type JamlCodeEditorProps, } from './components/JamlCodeEditor.js';
|
|
7
8
|
export * from './ui.js';
|
|
@@ -13,6 +14,7 @@ export { DeckSprite, DECK_SPRITE_POS, STAKE_SPRITE_POS, type DeckSpriteProps, }
|
|
|
13
14
|
export { MotelyVersionBadge, type MotelyVersionBadgeProps, type MotelyCapabilities, } from './components/MotelyVersionBadge.js';
|
|
14
15
|
export { MotelyHello, type MotelyHelloProps } from './components/MotelyHello.js';
|
|
15
16
|
export { JamlSpeedometer, type JamlSpeedometerProps, type JamlSpeedometerStatus, } from './components/JamlSpeedometer.js';
|
|
17
|
+
export { Showcase, type ShowcaseFilter, type ShowcaseLiveStats, type ShowcaseProps, type ShowcaseRecentFind, } from './ui/showcase.js';
|
|
16
18
|
export { extractVisualJamlItems, type JamlPreviewGroups, type JamlPreviewItem, type JamlPreviewSection, type JamlPreviewVisualType, } from './utils/jamlMapPreview.js';
|
|
17
19
|
export { useMotelyStream, type StreamItem, type StreamState } from './hooks/useShopStream.js';
|
|
18
20
|
export { useSearch, type SearchResult, type SearchMode, type SearchStatus, type UseSearchState, } from './hooks/useSearch.js';
|
|
@@ -20,10 +22,11 @@ export { useSearchPool, type StartPoolOptions, type UseSearchPoolOptions, type U
|
|
|
20
22
|
export { useAnalyzer, type AnalyzerStatus, } from './hooks/useAnalyzer.js';
|
|
21
23
|
export { PaginatedFilterBrowser, type PaginatedFilterBrowserProps, type FilterItem, } from './components/PaginatedFilterBrowser.js';
|
|
22
24
|
export { JamlAestheticSelector, type JamlAestheticSelectorProps, } from './components/JamlAestheticSelector.js';
|
|
23
|
-
export { JamlAesthetic } from 'motely-wasm
|
|
25
|
+
export { JamlAesthetic } from 'motely-wasm';
|
|
24
26
|
export { JamlSeedInput, type JamlSeedInputProps, type JamlSeedInputVariant, } from './components/JamlSeedInput.js';
|
|
25
27
|
export { normalizeJamlSeed } from './components/jamlSeedUtils.js';
|
|
26
28
|
export { JamlSeedSpinner, type JamlSeedSpinnerProps, } from './components/JamlSeedSpinner.js';
|
|
27
29
|
export { Jamlyzer, type JamlyzerProps } from './components/Jamlyzer.js';
|
|
28
30
|
export { RunConfigModal, type RunConfigModalProps } from './components/RunConfigModal.js';
|
|
29
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';
|
|
32
|
+
export * from './json-render/index.js';
|