jaml-ui 4.6.0 → 6.0.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.
@@ -5,8 +5,9 @@ export interface DeckStakePickerProps {
5
5
  stake: string;
6
6
  onDeckChange: (deck: string) => void;
7
7
  onStakeChange: (stake: string) => void;
8
+ layout?: "stack" | "row";
8
9
  className?: string;
9
10
  }
10
11
  /** New-run deck + stake cyclers. Sprites from the atlas, names from Motely enums. */
11
- export declare function DeckStakePicker({ deck, stake, onDeckChange, onStakeChange, className, }: DeckStakePickerProps): import("react").JSX.Element;
12
+ export declare function DeckStakePicker({ deck, stake, onDeckChange, onStakeChange, layout, className, }: DeckStakePickerProps): import("react").JSX.Element;
12
13
  export { DECKS as DECK_PICKER_NAMES, STAKES as STAKE_PICKER_NAMES };
@@ -0,0 +1,17 @@
1
+ export interface SeedCalculusProps {
2
+ /**
3
+ * Measured rarity source. When present with at least one hit, rarity is
4
+ * `seedsChecked / hits` and the rarity dial is locked — "measure it beats
5
+ * any formula". Wire it to a live search's `matchingSeeds / totalSeedsSearched`.
6
+ */
7
+ measured?: {
8
+ hits: number;
9
+ seedsChecked: number;
10
+ };
11
+ /** Starting "1 in N" rarity when not measured. Default 346,736,850. */
12
+ defaultRarityOneIn?: number;
13
+ /** Starting rig speed in seeds/sec. Default 3,300,000. */
14
+ defaultSeedsPerSecond?: number;
15
+ className?: string;
16
+ }
17
+ export declare function SeedCalculus({ measured, defaultRarityOneIn, defaultSeedsPerSecond, className, }: SeedCalculusProps): import("react").JSX.Element;
@@ -4,6 +4,15 @@ export type SeedHit = {
4
4
  seed: string;
5
5
  score: number;
6
6
  };
7
+ export type SeedSearchPhase = "idle" | "booting" | "searching" | "done" | "cancelled" | "error";
8
+ export type SeedSearchStats = {
9
+ seedsSearched: number;
10
+ matchingSeeds: number;
11
+ /** 0-1. */
12
+ percentComplete: number;
13
+ seedsPerSecond: number;
14
+ elapsedMs: number;
15
+ };
7
16
  export declare function LiveJamlIde({ defaultJaml }: {
8
17
  defaultJaml?: string;
9
18
  }): import("react").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -24,5 +24,6 @@ export { SeedLab, LiveJamlIde, STARTER_JAML, JAMLYZE_JAML, type SeedHit } from '
24
24
  export { JamlIdeVisual, type JamlIdeVisualProps } from './components/JamlIdeVisual.js';
25
25
  export { JamlIdeToolbar, type JamlIdeToolbarProps, type JamlIdeMode } from './components/JamlIdeToolbar.js';
26
26
  export { JamlMapPreview, type JamlMapPreviewProps } from './components/JamlMapPreview.js';
27
+ export { SeedCalculus, type SeedCalculusProps } from './components/SeedCalculus.js';
27
28
  export * from './ui.js';
28
29
  export * from './json-render/index.js';