jaml-ui 6.0.1 → 7.0.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/dist/chunks/{JimboSwipeDeck-DUwjKBbo.js → JimboSwipeDeck-BYXDxmy7.js} +890 -759
- package/dist/chunks/JimboSwipeDeck-BYXDxmy7.js.map +1 -0
- package/dist/components/DeckSprite.d.ts +13 -0
- package/dist/components/JamlIdeVisual.d.ts +0 -2
- package/dist/components/filterStory/FilterStory.d.ts +16 -0
- package/dist/components/jamlyzer/JamlyzerSeedCard.d.ts +0 -1
- package/dist/decode/motelyItemDecoder.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +6688 -6500
- package/dist/index.js.map +1 -1
- package/dist/lib/jaml/jaml.d.ts +3 -0
- package/dist/motd/motd.d.ts +10 -0
- package/dist/motd/motdData.generated.d.ts +1 -0
- package/dist/motd.js +164 -0
- package/dist/motd.js.map +1 -0
- package/dist/motely.js +353 -74
- package/dist/motely.js.map +1 -1
- package/dist/ui/JimboDock.d.ts +0 -1
- package/dist/ui/JimboSeedBatchInput.d.ts +29 -0
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui.d.ts +3 -1
- package/dist/ui.js +47 -46
- package/package.json +41 -42
- package/dist/chunks/JimboSwipeDeck-DUwjKBbo.js.map +0 -1
|
@@ -24,3 +24,16 @@ export interface DeckSpriteProps {
|
|
|
24
24
|
* `resolveJamlAssetUrl` so consumers can override the asset base URL.
|
|
25
25
|
*/
|
|
26
26
|
export declare function DeckSprite({ deck, stake, size, className, style }: DeckSpriteProps): React.JSX.Element;
|
|
27
|
+
export interface StakeSpriteProps {
|
|
28
|
+
/** Stake name (e.g. "White", "Red", "Green", "Gold Stake"). */
|
|
29
|
+
stake: string;
|
|
30
|
+
/** Rendered width & height in pixels (1:1 sticker chip). */
|
|
31
|
+
size?: number;
|
|
32
|
+
className?: string;
|
|
33
|
+
style?: React.CSSProperties;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Balatro stake sticker chip (White, Red, Green, Blue, Black, Purple, Orange, Gold).
|
|
37
|
+
* Draws the isolated stake sticker directly from stickers.png.
|
|
38
|
+
*/
|
|
39
|
+
export declare function StakeSprite({ stake, size, className, style }: StakeSpriteProps): React.JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { SpriteSheetType } from '../sprites/spriteMapper.js';
|
|
3
2
|
export type JamlZone = "must" | "should" | "mustnot";
|
|
4
3
|
export interface JamlVisualClause {
|
|
5
4
|
id: string;
|
|
@@ -29,7 +28,6 @@ export interface JamlIdeVisualProps {
|
|
|
29
28
|
/** Tap the "?" mystery tile to add a new clause to a zone (Pass 2 wires this to the cascade picker). */
|
|
30
29
|
onAddClause?: (zone: JamlZone) => void;
|
|
31
30
|
}
|
|
32
|
-
export declare function clauseSpriteSheet(type: string): SpriteSheetType | undefined;
|
|
33
31
|
export declare function ClauseSprite({ clause, size }: {
|
|
34
32
|
clause: JamlVisualClause;
|
|
35
33
|
size?: number;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface FilterStoryProps {
|
|
2
|
+
/** Full JAML document — the filter AS the author wrote it. */
|
|
3
|
+
source: string;
|
|
4
|
+
/** Seeds kept for their string alone. They get a crown. No justification asked. */
|
|
5
|
+
crowns?: readonly string[];
|
|
6
|
+
/** Highest ante column the arc timeline renders. Default 8. */
|
|
7
|
+
maxAnte?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A filter as a run story: the author's essay up top, the must/should clauses
|
|
12
|
+
* as a score-weighted ante arc, and the kept seeds as a wall of flippable
|
|
13
|
+
* cards. The filter file is the artifact — this renders what the author
|
|
14
|
+
* MEANT, description verbatim, typos and all.
|
|
15
|
+
*/
|
|
16
|
+
export declare function FilterStory({ source, crowns, maxAnte, className }: FilterStoryProps): import("react").JSX.Element;
|
|
@@ -17,5 +17,4 @@ export interface SeedMilestoneHit {
|
|
|
17
17
|
label: string;
|
|
18
18
|
tone: "green" | "orange" | "purple" | "blue" | "red";
|
|
19
19
|
}
|
|
20
|
-
export declare function extractSeedMilestones(result: MotelyJamlyzerSeedResult, clauses?: JamlClause[], maxMilestones?: number): SeedMilestoneHit[];
|
|
21
20
|
export declare function JamlyzerSeedCard({ result, selected, pinned, onSelect, onTogglePin, clauses, className, style, }: JamlyzerSeedCardProps): React.JSX.Element;
|
|
@@ -58,3 +58,4 @@ export declare function motelyStandardcardSuitName(input: MotelyItemInput): "Clu
|
|
|
58
58
|
export declare function decodeMotelyItemName(input: MotelyItemInput): string;
|
|
59
59
|
export declare function decodeMotelyItem(input: MotelyItemInput): DecodedMotelyItem | null;
|
|
60
60
|
export declare function decodeMotelyItemToJamlCard(input: MotelyItemInput, scale?: number): MotelyJamlCard | null;
|
|
61
|
+
export * from './motelySprite.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ export { type DailyRitual, parseRitual } from './lib/daily/ritual.js';
|
|
|
14
14
|
export { parseJaml, type JamlClause, type JamlClauseKind, type JamlItemType, type JamlFilter, matchClauseToItem, matchClauseToAnte, matchMotelyItemToClause, } from './lib/jaml/jaml.js';
|
|
15
15
|
export { estimateJamlRarity, estimateEtaSeconds, formatOneIn, formatEta, type JamlRarityEstimate, type ClauseRarityEstimate, type RarityFlag, type RaritySeverity, type RarityClauseKind, } from './lib/jaml/rarity.js';
|
|
16
16
|
export { RARITY_DATA, type RarityData } from './lib/jaml/rarityData.generated.js';
|
|
17
|
-
export { DeckSprite, DECK_SPRITE_POS, STAKE_SPRITE_POS, type DeckSpriteProps, } from './components/DeckSprite.js';
|
|
17
|
+
export { DeckSprite, StakeSprite, DECK_SPRITE_POS, STAKE_SPRITE_POS, type DeckSpriteProps, type StakeSpriteProps, } from './components/DeckSprite.js';
|
|
18
|
+
export { motelyItemTypeToSprite, motelyItemToSprite, type MotelySpriteCell, } from './decode/motelySprite.js';
|
|
18
19
|
export { DeckStakePicker, DECK_PICKER_NAMES, STAKE_PICKER_NAMES, type DeckStakePickerProps, } from './components/DeckStakePicker.js';
|
|
19
20
|
export { StandardCard } from './components/StandardCard.js';
|
|
20
21
|
export { CardSuit, CardRank, CardEnhancement, CardSeal, CardEdition, } from './components/cardEnums.js';
|