jaml-ui 4.2.6 → 4.2.9
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/chunks/JimboMascot-DJAe76lw.js +771 -0
- package/dist/chunks/JimboMascot-DJAe76lw.js.map +1 -0
- package/dist/chunks/motelyItemDecoder-Cb-RjvQ0.js +692 -0
- package/dist/chunks/motelyItemDecoder-Cb-RjvQ0.js.map +1 -0
- package/dist/chunks/{spriteMapper-BiDkbZrD.js → spriteMapper-Dfr2_j0_.js} +55 -34
- package/dist/chunks/{spriteMapper-BiDkbZrD.js.map → spriteMapper-Dfr2_j0_.js.map} +1 -1
- package/dist/components/JamlCodeEditor.d.ts +1 -2
- package/dist/components/JamlSeedInput.d.ts +24 -0
- package/dist/components/JamlSeedSpinner.d.ts +10 -0
- package/dist/components/JamlyzerBulk.d.ts +6 -2
- package/dist/components/jamlyzer/JamlyzerAnteDetails.d.ts +14 -0
- package/dist/components/jamlyzer/JamlyzerErraticDeck.d.ts +8 -0
- package/dist/components/jamlyzer/JamlyzerEvents.d.ts +6 -0
- package/dist/components/jamlyzer/JamlyzerItemCard.d.ts +9 -0
- package/dist/components/jamlyzer/JamlyzerPackSection.d.ts +9 -0
- package/dist/components/jamlyzer/JamlyzerPulls.d.ts +8 -0
- package/dist/components/jamlyzer/JamlyzerRail.d.ts +14 -0
- package/dist/components/jamlyzer/highlight.d.ts +5 -0
- package/dist/components/jamlyzer/names.d.ts +8 -0
- package/dist/core.js +2 -2
- package/dist/index.d.ts +5 -1
- package/dist/index.js +21490 -3766
- package/dist/index.js.map +1 -1
- package/dist/json-render/components/domain.d.ts +3 -2
- package/dist/json-render/components/layout.d.ts +2 -6
- package/dist/json-render/components/mascot.d.ts +10 -9
- package/dist/json-render/components/reference.d.ts +3 -2
- package/dist/lib/jaml/jamlLangCodemirror.d.ts +13 -0
- package/dist/lib/jaml/jamlSeeds.d.ts +7 -0
- package/dist/lib/motely/jamlParse.d.ts +4 -0
- package/dist/lib/motely/runtime.d.ts +1 -0
- package/dist/motely.js +44 -717
- package/dist/motely.js.map +1 -1
- package/dist/ui/JimboApp.d.ts +15 -0
- package/dist/ui/JimboBadge.d.ts +12 -0
- package/dist/ui/JimboButton.d.ts +1 -1
- package/dist/ui/JimboCodeSurface.d.ts +12 -0
- package/dist/ui/JimboDivider.d.ts +7 -0
- package/dist/ui/JimboErrorBlock.d.ts +8 -0
- package/dist/ui/JimboGrid.d.ts +14 -0
- package/dist/ui/JimboInset.d.ts +4 -0
- package/dist/ui/JimboLayout.d.ts +26 -0
- package/dist/ui/JimboMascot.d.ts +12 -0
- package/dist/ui/JimboOrbitalMenu.d.ts +15 -0
- package/dist/ui/JimboPanel.d.ts +10 -3
- package/dist/ui/JimboSectionHeader.d.ts +8 -0
- package/dist/ui/JimboSeedCopyChip.d.ts +16 -0
- package/dist/ui/JimboSpacer.d.ts +7 -0
- package/dist/ui/JimboSpinner.d.ts +19 -0
- package/dist/ui/JimboStatusPill.d.ts +8 -0
- package/dist/ui/JimboSwipeDeck.d.ts +17 -0
- package/dist/ui/JimboTextInput.d.ts +5 -3
- package/dist/ui/JimboWordmark.d.ts +7 -0
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui/jimboFlankNav.d.ts +17 -0
- package/dist/ui/jimboTabs.d.ts +5 -0
- package/dist/ui/tokens.d.ts +20 -9
- package/dist/ui.d.ts +19 -0
- package/dist/ui.js +28 -7
- package/package.json +18 -11
- package/dist/.gitkeep +0 -0
- package/dist/chunks/JimboBackground-CB7u0r54.js +0 -214
- package/dist/chunks/JimboBackground-CB7u0r54.js.map +0 -1
- /package/dist/{json-render/components → ui}/jammySeedMascotImage.d.ts +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
export interface JamlCodeEditorProps {
|
|
3
2
|
value: string;
|
|
4
3
|
onChange: (value: string) => void;
|
|
5
4
|
placeholder?: string;
|
|
6
5
|
minHeight?: number;
|
|
7
6
|
}
|
|
8
|
-
export declare function JamlCodeEditor({ value, onChange, placeholder, minHeight, }: JamlCodeEditorProps):
|
|
7
|
+
export declare function JamlCodeEditor({ value, onChange, placeholder, minHeight, }: JamlCodeEditorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type JamlSeedInputVariant = "normal" | "dark" | "alt";
|
|
3
|
+
export interface JamlSeedInputProps {
|
|
4
|
+
value?: string;
|
|
5
|
+
onChange?: (seed: string) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
label?: React.ReactNode;
|
|
8
|
+
variant?: JamlSeedInputVariant;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
autoFocus?: boolean;
|
|
12
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
13
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
14
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
name?: string;
|
|
17
|
+
id?: string;
|
|
18
|
+
title?: string;
|
|
19
|
+
"aria-label"?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Balatro-style seed input constrained to the real 8-character format.
|
|
23
|
+
*/
|
|
24
|
+
export declare const JamlSeedInput: React.ForwardRefExoticComponent<JamlSeedInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { JamlSeedInputProps } from './JamlSeedInput.js';
|
|
3
|
+
export interface JamlSeedSpinnerProps extends Omit<JamlSeedInputProps, "onChange"> {
|
|
4
|
+
seeds?: string[];
|
|
5
|
+
onChange?: (seed: string) => void;
|
|
6
|
+
onCopy?: (seed: string) => void;
|
|
7
|
+
/** When true, center field is editable. Default false — browse + copy chip. */
|
|
8
|
+
editable?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function JamlSeedSpinner({ seeds, value, onChange, onCopy, editable, label, placeholder, variant, className, style, ...inputProps }: JamlSeedSpinnerProps): React.JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { MotelyJamlyzerSeedResult } from 'motely-wasm';
|
|
3
2
|
import { ParsedJamlClause } from '../lib/jaml/parseClauses.js';
|
|
4
3
|
export interface JamlyzerBulkProps {
|
|
@@ -13,4 +12,9 @@ export interface JamlyzerBulkProps {
|
|
|
13
12
|
deck?: number;
|
|
14
13
|
stake?: number;
|
|
15
14
|
}
|
|
16
|
-
export declare function
|
|
15
|
+
export declare function ClauseHitPanel({ clause, hitAntes, tally, }: {
|
|
16
|
+
clause: ParsedJamlClause;
|
|
17
|
+
hitAntes: number[];
|
|
18
|
+
tally?: number;
|
|
19
|
+
}): import("react").JSX.Element;
|
|
20
|
+
export declare function JamlyzerBulk({ results, jamlText, clauses: clausesProp, tallies, deck, stake }: JamlyzerBulkProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MotelyJamlyzerAnteResult } from 'motely-wasm';
|
|
2
|
+
export declare function ResolvedItem({ value, scale }: {
|
|
3
|
+
value: number;
|
|
4
|
+
scale: number;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
export interface JamlyzerAnteDetailsProps {
|
|
7
|
+
ante: MotelyJamlyzerAnteResult | undefined;
|
|
8
|
+
selectedAnte: number;
|
|
9
|
+
minAnte: number;
|
|
10
|
+
maxAnte: number;
|
|
11
|
+
onSelectAnte: (ante: number) => void;
|
|
12
|
+
}
|
|
13
|
+
/** Spinner-driven single-ante detail: boss, voucher, tags, shop queue, packs. */
|
|
14
|
+
export declare function JamlyzerAnteDetails({ ante, selectedAnte, minAnte, maxAnte, onSelectAnte, }: JamlyzerAnteDetailsProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MotelyItem } from 'motely-wasm';
|
|
2
|
+
import { ParsedJamlClause } from '../../lib/jaml/parseClauses.js';
|
|
3
|
+
export interface JamlyzerErraticDeckProps {
|
|
4
|
+
cards: MotelyItem[];
|
|
5
|
+
matches: Map<string, ParsedJamlClause[]>;
|
|
6
|
+
}
|
|
7
|
+
/** The randomized starting deck when playing the Erratic deck. */
|
|
8
|
+
export declare function JamlyzerErraticDeck({ cards, matches }: JamlyzerErraticDeckProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MotelyJamlyzerSeedResult } from 'motely-wasm';
|
|
2
|
+
export interface JamlyzerEventsProps {
|
|
3
|
+
events: MotelyJamlyzerSeedResult["events"];
|
|
4
|
+
}
|
|
5
|
+
/** Probabilistic event roll outcomes (Lucky cards, Cavendish, Wheel, …). */
|
|
6
|
+
export declare function JamlyzerEvents({ events }: JamlyzerEventsProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MotelyItem } from 'motely-wasm';
|
|
2
|
+
export interface JamlyzerItemCardProps {
|
|
3
|
+
item: MotelyItem;
|
|
4
|
+
scale?: number;
|
|
5
|
+
/** Glow class from selectHighlight, applied to the card itself. */
|
|
6
|
+
highlight?: string;
|
|
7
|
+
}
|
|
8
|
+
/** One decoded Motely item rendered as a game card, with clause-match glow. */
|
|
9
|
+
export declare function JamlyzerItemCard({ item, scale, highlight }: JamlyzerItemCardProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MotelyJamlyzerAnteResult } from 'motely-wasm';
|
|
2
|
+
import { ParsedJamlClause } from '../../lib/jaml/parseClauses.js';
|
|
3
|
+
export interface JamlyzerPackSectionProps {
|
|
4
|
+
pack: MotelyJamlyzerAnteResult["packs"][number];
|
|
5
|
+
ante: number;
|
|
6
|
+
matches: Map<string, ParsedJamlClause[]>;
|
|
7
|
+
}
|
|
8
|
+
/** One booster pack: name + card count, then the cards inside. */
|
|
9
|
+
export declare function JamlyzerPackSection({ pack, ante, matches }: JamlyzerPackSectionProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MotelyJamlyzerAnteResult } from 'motely-wasm';
|
|
2
|
+
import { ParsedJamlClause } from '../../lib/jaml/parseClauses.js';
|
|
3
|
+
export interface JamlyzerPullsProps {
|
|
4
|
+
ante: MotelyJamlyzerAnteResult;
|
|
5
|
+
matches: Map<string, ParsedJamlClause[]>;
|
|
6
|
+
}
|
|
7
|
+
/** Extra-card pulls (Judgement, Wraith, tags, …) and the voucher sequence. */
|
|
8
|
+
export declare function JamlyzerPulls({ ante, matches }: JamlyzerPullsProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ParsedJamlClause } from '../../lib/jaml/parseClauses.js';
|
|
2
|
+
export interface JamlyzerRailProps {
|
|
3
|
+
/** All parsed JAML clauses; the scoreboard lists them above the ante buttons. */
|
|
4
|
+
clauses: ParsedJamlClause[];
|
|
5
|
+
/** Per-should-clause tally values, in JAML order. */
|
|
6
|
+
tallies?: number[] | Int32Array;
|
|
7
|
+
anteNumbers: number[];
|
|
8
|
+
availableAntes: Set<number>;
|
|
9
|
+
selectedAnte: number;
|
|
10
|
+
onSelectAnte: (ante: number) => void;
|
|
11
|
+
onHoverClause: (clause: ParsedJamlClause | null) => void;
|
|
12
|
+
}
|
|
13
|
+
/** Left rail: clause scoreboard (hover to spotlight matches) + ante picker. */
|
|
14
|
+
export declare function JamlyzerRail({ clauses, tallies, anteNumbers, availableAntes, selectedAnte, onSelectAnte, onHoverClause, }: JamlyzerRailProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ParsedJamlClause, JamlItemType } from '../../lib/jaml/parseClauses.js';
|
|
2
|
+
import { MotelyRenderableCategory } from '../../decode/motelyItemDecoder.js';
|
|
3
|
+
export declare function itemTypeOfCategory(category: MotelyRenderableCategory): JamlItemType;
|
|
4
|
+
export declare function buildMatchMap(clauses: ParsedJamlClause[]): Map<string, ParsedJamlClause[]>;
|
|
5
|
+
export declare function selectHighlight(itemType: JamlItemType, name: string, ante: number, matches: Map<string, ParsedJamlClause[]>): string | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MotelyBoosterPack, MotelyBossBlind, MotelyTag, MotelyVoucher, MotelyDeck, MotelyStake } from 'motely-wasm';
|
|
2
|
+
export declare function splitCamelCase(key: string): string;
|
|
3
|
+
export declare function packDisplayName(pack: MotelyBoosterPack): string;
|
|
4
|
+
export declare function bossDisplayName(boss: MotelyBossBlind): string;
|
|
5
|
+
export declare function tagDisplayName(tag: MotelyTag): string;
|
|
6
|
+
export declare function voucherDisplayName(voucher: MotelyVoucher): string;
|
|
7
|
+
export declare function deckDisplayName(deck: MotelyDeck): string;
|
|
8
|
+
export declare function stakeDisplayName(stake: MotelyStake): string;
|
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as r, S as t, a as o, R as E } from "./chunks/spriteMapper-
|
|
2
|
-
import { B as T, b as f, C as R, c as C, J as O, d as M, e as c, f as u, g as L, T as N, h as m, V as p, i as I, r as g } from "./chunks/spriteMapper-
|
|
1
|
+
import { E as r, S as t, a as o, R as E } from "./chunks/spriteMapper-Dfr2_j0_.js";
|
|
2
|
+
import { B as T, b as f, C as R, c as C, J as O, d as M, e as c, f as u, g as L, T as N, h as m, V as p, i as I, r as g } from "./chunks/spriteMapper-Dfr2_j0_.js";
|
|
3
3
|
import { L as J } from "./chunks/Layer-B5y9UIAt.js";
|
|
4
4
|
function e(a, s) {
|
|
5
5
|
return { x: E[a] ?? 0, y: o[s] ?? 0 };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,10 @@ export { parseJamlClauses, type ParsedJamlClause, type JamlClauseKind, type Jaml
|
|
|
7
7
|
export { DeckSprite, DECK_SPRITE_POS, STAKE_SPRITE_POS, type DeckSpriteProps, } from './components/DeckSprite.js';
|
|
8
8
|
export { StandardCard } from './components/StandardCard.js';
|
|
9
9
|
export { CardSuit, CardRank, CardEnhancement, CardSeal, CardEdition, } from './components/cardEnums.js';
|
|
10
|
+
export { JamlMapEditor, CategoryMenu, MysterySlot, JokerPicker, CategoryPicker, type JamlMapEditorProps, type MysterySlotProps, type SlotSelection, type SlotCategory, type JokerPickerProps, type JokerRarity, 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';
|
|
11
|
+
export { JamlIde, type JamlIdeProps, type JamlIdeSearchResult, type JamlVisualFilter, type JamlVisualClause, type JamlZone, } from './components/JamlIde.js';
|
|
12
|
+
export { JamlIdeVisual, type JamlIdeVisualProps } from './components/JamlIdeVisual.js';
|
|
13
|
+
export { JamlIdeToolbar, type JamlIdeToolbarProps, type JamlIdeMode } from './components/JamlIdeToolbar.js';
|
|
14
|
+
export { JamlMapPreview, type JamlMapPreviewProps } from './components/JamlMapPreview.js';
|
|
10
15
|
export * from './ui.js';
|
|
11
|
-
export * from './motely.js';
|
|
12
16
|
export * from './json-render/index.js';
|