jaml-ui 4.1.0 → 4.1.2

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/README.md CHANGED
@@ -37,12 +37,16 @@ export default function App() {
37
37
 
38
38
  ## Boot motely-wasm
39
39
 
40
+ `motely-wasm` ships embedded — the boot resources travel inside the module, so `boot()` takes no argument.
41
+
40
42
  ```tsx
41
43
  import bootsharp from "motely-wasm";
42
44
 
43
- await bootsharp.boot("/motely-wasm/bin");
45
+ if (bootsharp.getStatus() === bootsharp.BootStatus.Standby) await bootsharp.boot();
44
46
  ```
45
47
 
48
+ Boot once per JS realm. Each web worker is its own realm, so a worker fleet boots one engine apiece — see the fleet section in the [motely-wasm README](https://www.npmjs.com/package/motely-wasm) for the module-worker and `MessagePort` rules that keep a worker from hanging.
49
+
46
50
  ## MCP App example
47
51
 
48
52
  ```bash
@@ -5,7 +5,7 @@ export interface JamlyzerViewProps {
5
5
  result: MotelyJamlyzerSeedResult;
6
6
  deck?: MotelyDeck;
7
7
  stake?: MotelyStake;
8
- /** @deprecated Ante rail is now driven by the returned `antes` data, including ante 0. */
8
+ /** Maximum ante number to display in the rail. Antes 0–39 are valid in Balatro. */
9
9
  maxAnte?: number;
10
10
  /** Raw JAML text used to derive clause identities for highlighting. */
11
11
  jamlText?: string;
@@ -16,4 +16,4 @@ export interface JamlyzerViewProps {
16
16
  /** Called when the user hovers a clause in the scoreboard. */
17
17
  onHoverClause?: (clause: ParsedJamlClause | null) => void;
18
18
  }
19
- export declare function JamlyzerView({ result, deck, stake, jamlText, clauses: clausesProp, tallies, onHoverClause }: JamlyzerViewProps): React.JSX.Element;
19
+ export declare function JamlyzerView({ result, deck, stake, maxAnte: maxAnteProp, jamlText, clauses: clausesProp, tallies, onHoverClause, }: JamlyzerViewProps): React.JSX.Element;