jaml-ui 4.6.0 → 6.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/assets.js +38 -0
- package/dist/assets.js.map +1 -0
- package/dist/chunks/{JimboSwipeDeck-DbzWak3V.js → JimboSwipeDeck-eog6nv7F.js} +509 -438
- package/dist/chunks/JimboSwipeDeck-eog6nv7F.js.map +1 -0
- package/dist/components/SeedCalculus.d.ts +17 -0
- package/dist/components/SeedLab.d.ts +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9878 -10272
- package/dist/index.js.map +1 -1
- package/dist/motely.js +696 -0
- package/dist/motely.js.map +1 -0
- package/dist/{chunks/spriteMapper-gImEz0wa.js → sprites.js} +61 -124
- package/dist/sprites.js.map +1 -0
- package/dist/ui/JimboSlider.d.ts +11 -0
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui.d.ts +1 -0
- package/dist/ui.js +39 -38
- package/package.json +136 -122
- package/dist/chunks/JimboSwipeDeck-DbzWak3V.js.map +0 -1
- package/dist/chunks/Layer-B5y9UIAt.js +0 -19
- package/dist/chunks/Layer-B5y9UIAt.js.map +0 -1
- package/dist/chunks/spriteMapper-gImEz0wa.js.map +0 -1
- package/dist/core.d.ts +0 -5
- package/dist/core.js +0 -41
- package/dist/core.js.map +0 -1
|
@@ -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';
|