jaml-ui 4.4.0 → 4.6.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/assets/jammy-seed-mascot.png +0 -0
- package/dist/assets/8BitDeck-B09C1jGy.png +0 -0
- package/dist/assets/BlindChips-Bnvhn76w.png +0 -0
- package/dist/assets/Boosters-Bqv_YhIn.png +0 -0
- package/dist/assets/Editions-B3YPqPOl.png +0 -0
- package/dist/assets/Enhancers-DhIlUuTX.png +0 -0
- package/dist/assets/Jokers-1egXSFFQ.png +0 -0
- package/dist/assets/Tarots-DkrFk7iW.png +0 -0
- package/dist/assets/Vouchers-Cdp8BeSE.png +0 -0
- package/dist/assets/balatro-stake-chips-BdO-bw7c.png +0 -0
- package/dist/assets/jammy-seed-mascot-BdoW3O33.png +0 -0
- package/dist/assets/m6x11plus-C8RqtTtG.ttf +0 -0
- package/dist/assets/stickers-B6y5vEyc.png +0 -0
- package/dist/assets/tags-BdxcVWR4.png +0 -0
- package/dist/chunks/JimboSwipeDeck-DbzWak3V.js +2051 -0
- package/dist/chunks/JimboSwipeDeck-DbzWak3V.js.map +1 -0
- package/dist/chunks/spriteMapper-gImEz0wa.js +501 -0
- package/dist/chunks/spriteMapper-gImEz0wa.js.map +1 -0
- package/dist/components/DailyRitualView.d.ts +17 -0
- package/dist/components/DeckStakePicker.d.ts +12 -0
- package/dist/components/JamlIdeToolbar.d.ts +2 -5
- package/dist/components/JamlIdeVisual.d.ts +2 -1
- package/dist/components/Jamlyzer.d.ts +14 -2
- package/dist/components/JamlyzerBulk.d.ts +5 -4
- package/dist/components/JamlyzerView.d.ts +1 -12
- package/dist/components/SeedLab.d.ts +12 -0
- package/dist/components/jamlSeedUtils.d.ts +1 -0
- package/dist/components/jamlyzer/JamlyzerAnteDetails.d.ts +4 -0
- package/dist/components/jamlyzer/JamlyzerErraticDeck.d.ts +2 -2
- package/dist/components/jamlyzer/JamlyzerPackSection.d.ts +1 -5
- package/dist/components/jamlyzer/JamlyzerPulls.d.ts +2 -2
- package/dist/components/jamlyzer/JamlyzerSeedCard.d.ts +21 -0
- package/dist/components/jamlyzer/JamlyzerTape.d.ts +10 -0
- package/dist/components/jamlyzer/highlight.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/decode/motelyItemDecoder.d.ts +1 -0
- package/dist/decode/motelySprite.d.ts +10 -13
- package/dist/decode/motelySpriteLut.generated.d.ts +2 -0
- package/dist/index.d.ts +13 -1
- package/dist/index.js +20802 -17361
- package/dist/index.js.map +1 -1
- package/dist/json-render/JimboJsonRenderer.d.ts +21 -0
- package/dist/json-render/catalog.d.ts +304 -180
- package/dist/json-render/index.d.ts +5 -30
- package/dist/json-render/registry.d.ts +2 -12
- package/dist/lib/daily/ritual.d.ts +43 -0
- package/dist/lib/jaml/{parseClauses.d.ts → jaml.d.ts} +17 -13
- package/dist/lib/jaml/rarity.d.ts +53 -0
- package/dist/lib/jaml/rarityData.generated.d.ts +727 -0
- package/dist/ui/JimboApp.d.ts +8 -6
- package/dist/ui/JimboBackground.d.ts +5 -13
- package/dist/ui/JimboButton.d.ts +1 -1
- package/dist/ui/JimboDock.d.ts +21 -0
- package/dist/ui/JimboMascot.d.ts +51 -5
- package/dist/ui/JimboOrbitalMenu.d.ts +81 -9
- package/dist/ui/JimboPanelSpinner.d.ts +14 -0
- package/dist/ui/JimboSeedCopyChip.d.ts +1 -2
- package/dist/ui/JimboShopBelt.d.ts +9 -0
- package/dist/ui/dockTree.d.ts +31 -0
- package/dist/ui/hooks.d.ts +1 -1
- package/dist/ui/jammySeedMascotImage.d.ts +1 -1
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui/orbitalLayout.d.ts +149 -0
- package/dist/ui/orbitalMenuStore.d.ts +70 -0
- package/dist/ui/tokens.d.ts +9 -36
- package/dist/ui/useMotionPreference.d.ts +19 -0
- package/dist/ui.d.ts +17 -3
- package/dist/ui.js +77 -34
- package/dist/vocab.d.ts +26 -0
- package/package.json +36 -40
- package/README.md +0 -78
- package/assets/fonts/README.md +0 -14
- package/dist/chunks/JimboSwipeDeck-Cbe5Jdmw.js +0 -986
- package/dist/chunks/JimboSwipeDeck-Cbe5Jdmw.js.map +0 -1
- package/dist/chunks/motelyItemDecoder-Cb-RjvQ0.js +0 -692
- package/dist/chunks/motelyItemDecoder-Cb-RjvQ0.js.map +0 -1
- package/dist/chunks/spriteMapper-Dfr2_j0_.js +0 -501
- package/dist/chunks/spriteMapper-Dfr2_j0_.js.map +0 -1
- package/dist/components/jamlyzer/JamlyzerRail.d.ts +0 -14
- package/dist/json-render/builders/analyzer.d.ts +0 -23
- package/dist/json-render/builders/encyclopedia.d.ts +0 -14
- package/dist/json-render/builders/search.d.ts +0 -24
- package/dist/json-render/components/domain.d.ts +0 -59
- package/dist/json-render/components/game.d.ts +0 -18
- package/dist/json-render/components/layout.d.ts +0 -47
- package/dist/json-render/components/mascot.d.ts +0 -23
- package/dist/json-render/components/reference.d.ts +0 -39
- package/dist/json-render/engine.d.ts +0 -38
- package/dist/json-render/knowledge/bosses.d.ts +0 -18
- package/dist/json-render/knowledge/decks.d.ts +0 -22
- package/dist/json-render/knowledge/jokers.d.ts +0 -23
- package/dist/json-render/knowledge/synergies.d.ts +0 -21
- package/dist/lib/motely/jamlParse.d.ts +0 -4
- package/dist/lib/motely/runtime.d.ts +0 -1
- package/dist/motely.d.ts +0 -4
- package/dist/motely.js +0 -84
- package/dist/motely.js.map +0 -1
package/README.md
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
# jaml-ui
|
|
2
|
-
|
|
3
|
-
Zero-dependency JSON-to-React engine (`json-render`) + Balatro card sprite rendering for MCP Apps.
|
|
4
|
-
|
|
5
|
-
## What's inside
|
|
6
|
-
|
|
7
|
-
- **`json-render`** — a tiny, zero-dep JSON-to-React engine in `src/json-render`. A JsonNode tree + a registry = rendered UI. Ships with a Balatro catalog (`Panel`, `Stack`, `Grid`, `SeedCard`, `SearchStats`, `JamlGameCard`, ...).
|
|
8
|
-
- **Balatro card sprites** — canvas-based `JamlGameCard`, `StandardCard`, `DeckSprite`, plus sprite metadata.
|
|
9
|
-
- **MCP App example** — `examples/mcp-seed-finder` is a single-file MCP App that talks to an MCP server and renders search results with `json-render`.
|
|
10
|
-
|
|
11
|
-
## Install
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npm install jaml-ui motely-wasm react react-dom
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
`motely-wasm` is a peer dependency — boot it once before rendering.
|
|
18
|
-
|
|
19
|
-
## Quick start — render JSON UI
|
|
20
|
-
|
|
21
|
-
```tsx
|
|
22
|
-
import { render, balatroRegistry } from "jaml-ui";
|
|
23
|
-
|
|
24
|
-
const spec = {
|
|
25
|
-
type: "Panel",
|
|
26
|
-
props: { title: "Hello" },
|
|
27
|
-
children: [
|
|
28
|
-
{ type: "Text", props: { body: "Seed: ALEEB", variant: "title" } },
|
|
29
|
-
{ type: "JamlGameCard", props: { type: "joker", card: { name: "Blueprint" } } },
|
|
30
|
-
],
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export default function App() {
|
|
34
|
-
return <div>{render(spec, balatroRegistry)}</div>;
|
|
35
|
-
}
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Boot motely-wasm
|
|
39
|
-
|
|
40
|
-
`motely-wasm` ships embedded — the boot resources travel inside the module, so `boot()` takes no argument.
|
|
41
|
-
|
|
42
|
-
```tsx
|
|
43
|
-
import bootsharp from "motely-wasm";
|
|
44
|
-
|
|
45
|
-
if (bootsharp.getStatus() === bootsharp.BootStatus.Standby) await bootsharp.boot();
|
|
46
|
-
```
|
|
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
|
-
|
|
50
|
-
## MCP App example
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
cd examples/mcp-seed-finder
|
|
54
|
-
pnpm install
|
|
55
|
-
pnpm dev
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## Package exports
|
|
59
|
-
|
|
60
|
-
| Entry | What's in it |
|
|
61
|
-
| ----- | ------------ |
|
|
62
|
-
| `jaml-ui` | json-render engine, Balatro registry/catalog, card components |
|
|
63
|
-
| `jaml-ui/ui` | Jimbo CSS tokens only |
|
|
64
|
-
| `jaml-ui/core` | Sprite metadata, asset URLs, canvas `Layer` — no React, no motely-wasm |
|
|
65
|
-
| `jaml-ui/motely` | `bootsharp` + `Motely` re-exports, item decoders |
|
|
66
|
-
|
|
67
|
-
## Scripts
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
pnpm build # Vite library build → dist/
|
|
71
|
-
pnpm dev # vite build --watch
|
|
72
|
-
pnpm typecheck # tsc --noEmit
|
|
73
|
-
pnpm lint # ESLint
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
## License
|
|
77
|
-
|
|
78
|
-
MIT — see [LICENSE](LICENSE). Font files in `assets/fonts/` are third-party assets by Daniel Linssen; attribution required when redistributing or displaying the pixel fonts.
|
package/assets/fonts/README.md
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# Fonts
|
|
2
|
-
|
|
3
|
-
| File | Family | Notes |
|
|
4
|
-
|------|--------|--------|
|
|
5
|
-
| `m6x11.ttf` | `m6x11` | Base pixel font. Prefer sizes 16, 32, 48, … |
|
|
6
|
-
| `m6x11plus.ttf` | `m6x11plus` | Extended charset (+6 width, taller metrics). Prefer 18, 36, 54, … |
|
|
7
|
-
|
|
8
|
-
`m6x11plusplus.otf` is a legacy bundle copy; **do not use** for new work — use the `.ttf` files above.
|
|
9
|
-
|
|
10
|
-
## Attribution
|
|
11
|
-
|
|
12
|
-
UI fonts by [Daniel Linssen](https://managore.itch.io/) — free to use with attribution.
|
|
13
|
-
|
|
14
|
-
Include credit in your app README or notices when shipping jaml-ui consumers (for example: “UI fonts by Daniel Linssen — https://managore.itch.io/”).
|