jaml-ui 0.27.0 → 0.29.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/README.md +13 -17
- package/dist/assets/{searchPoolWorker-CejAnH4a.js → searchPoolWorker-C4xj1WA_.js} +9 -4
- package/dist/assets/searchPoolWorker-C4xj1WA_.js.map +1 -0
- package/dist/chunks/{Layer-BBPJFHfs.js → Layer-Ckd_T6Fw.js} +1 -1
- package/dist/chunks/{Layer-BBPJFHfs.js.map → Layer-Ckd_T6Fw.js.map} +1 -1
- package/dist/chunks/{assets-RWUiFSTc.js → assets-D80i9sMq.js} +1 -1
- package/dist/chunks/{assets-RWUiFSTc.js.map → assets-D80i9sMq.js.map} +1 -1
- package/dist/chunks/runtime-C-It0krH.js +10 -0
- package/dist/chunks/runtime-C-It0krH.js.map +1 -0
- package/dist/chunks/{searchPoolWorker-CTtPOuxF.js → searchPoolWorker-hVVM49SD.js} +2 -2
- package/dist/chunks/searchPoolWorker-hVVM49SD.js.map +1 -0
- package/dist/chunks/{spriteMapper-CFjN0_TV.js → spriteMapper-C4_5G1Z6.js} +10 -6
- package/dist/chunks/spriteMapper-C4_5G1Z6.js.map +1 -0
- package/dist/chunks/{tokens-B65Fzble.js → tokens-Qrhlekc4.js} +1 -1
- package/dist/chunks/{tokens-B65Fzble.js.map → tokens-Qrhlekc4.js.map} +1 -1
- package/dist/chunks/ui-D_9HO9OO.js +3127 -0
- package/dist/chunks/ui-D_9HO9OO.js.map +1 -0
- package/dist/components/JamlAestheticSelector.d.ts +2 -3
- package/dist/components/JamlIdeToolbar.d.ts +3 -1
- package/dist/components/JamlSeedInput.d.ts +14 -4
- package/dist/components/JamlSeedSpinner.d.ts +7 -0
- package/dist/components/Jamlyzer.d.ts +5 -1
- package/dist/components/PaginatedFilterBrowser.d.ts +3 -0
- package/dist/components/RunConfigModal.d.ts +1 -1
- package/dist/components/jamlSeedUtils.d.ts +1 -0
- package/dist/config.d.ts +7 -4
- package/dist/core.js +8 -8
- package/dist/core.js.map +1 -1
- package/dist/decode/motelyItemFormats.d.ts +3124 -0
- package/dist/hooks/useAnalyzer.d.ts +0 -11
- package/dist/hooks/useIntersectionObserver.d.ts +1 -1
- package/dist/hooks/useMotelyRuntime.d.ts +2 -2
- package/dist/hooks/useSearch.d.ts +3 -3
- package/dist/index.d.ts +3 -7
- package/dist/index.js +3590 -4352
- package/dist/index.js.map +1 -1
- package/dist/lib/hooks/useDragScroll.d.ts +1 -1
- package/dist/lib/motely/runtime.d.ts +3 -0
- package/dist/motely.d.ts +3 -2
- package/dist/motely.js +2101 -24
- package/dist/motely.js.map +1 -1
- package/dist/providers/MotelyProvider.d.ts +11 -0
- package/dist/r3f.js +4 -4
- package/dist/r3f.js.map +1 -1
- package/dist/ui/JimboBadge.d.ts +2 -3
- package/dist/ui/JimboPanelSpinner.d.ts +15 -0
- package/dist/ui/JimboTextInput.d.ts +5 -0
- package/dist/ui/PanelSplitter.d.ts +2 -1
- package/dist/ui/footer.d.ts +7 -1
- package/dist/ui/hooks.d.ts +2 -3
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui/panel.d.ts +2 -4
- package/dist/ui.d.ts +3 -0
- package/dist/ui.js +3 -3
- package/jaml.schema.json +341 -287
- package/package.json +20 -24
- package/DESIGN.md +0 -236
- package/dist/assets/searchPoolWorker-CejAnH4a.js.map +0 -1
- package/dist/chunks/motelyItemDecoder-CRhfNIGU.js +0 -219
- package/dist/chunks/motelyItemDecoder-CRhfNIGU.js.map +0 -1
- package/dist/chunks/searchPoolWorker-CTtPOuxF.js.map +0 -1
- package/dist/chunks/spriteMapper-CFjN0_TV.js.map +0 -1
- package/dist/chunks/ui-BBUfR6RM.js +0 -1386
- package/dist/chunks/ui-BBUfR6RM.js.map +0 -1
- package/dist/components/AnalyzerExplorer.d.ts +0 -47
- package/dist/motelyBoot.d.ts +0 -15
- package/dist/ui/ide/DeckSprite.d.ts +0 -1
- package/dist/ui/ide/RegexTool.d.ts +0 -3
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ npm install jaml-ui react react-dom
|
|
|
12
12
|
|
|
13
13
|
| Entry | Contents |
|
|
14
14
|
| ----- | -------- |
|
|
15
|
-
| `jaml-ui` | Game card components, JAML IDE,
|
|
15
|
+
| `jaml-ui` | Game card components, JAML IDE, hooks |
|
|
16
16
|
| `jaml-ui/ui` | Jimbo design system — JimboPanel, JimboButton, JimboModal, tokens |
|
|
17
17
|
| `jaml-ui/core` | Pure asset helpers, sprite metadata, decode utilities (no React) |
|
|
18
18
|
| `jaml-ui/motely` | motely-wasm decode helpers (requires `motely-wasm` peer) |
|
|
@@ -21,7 +21,7 @@ npm install jaml-ui react react-dom
|
|
|
21
21
|
## Quick start
|
|
22
22
|
|
|
23
23
|
```tsx
|
|
24
|
-
import { JamlGameCard,
|
|
24
|
+
import { JamlGameCard, JamlIde } from "jaml-ui";
|
|
25
25
|
import { JimboPanel, JimboButton } from "jaml-ui/ui";
|
|
26
26
|
```
|
|
27
27
|
|
|
@@ -63,15 +63,6 @@ import { JamlIde } from "jaml-ui";
|
|
|
63
63
|
/>
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
### Analyzer Explorer
|
|
67
|
-
|
|
68
|
-
```tsx
|
|
69
|
-
import { AnalyzerExplorer } from "jaml-ui";
|
|
70
|
-
|
|
71
|
-
// antes: AnalyzerAnteView[] — stream from motely-wasm createSearchContext
|
|
72
|
-
<AnalyzerExplorer antes={antes} totalAntes={8} highlights={highlights} />
|
|
73
|
-
```
|
|
74
|
-
|
|
75
66
|
### JAML Map Preview
|
|
76
67
|
|
|
77
68
|
```tsx
|
|
@@ -115,15 +106,18 @@ const nextConfig = { transpilePackages: ["jaml-ui"] };
|
|
|
115
106
|
|
|
116
107
|
## Search Worker Architecture
|
|
117
108
|
|
|
118
|
-
The library provides `useSearch` and `useAnalyzer` helpers that use `motely-wasm`'s Bootsharp-generated ES module directly.
|
|
119
|
-
|
|
109
|
+
The library provides `useSearch` and `useAnalyzer` helpers that use `motely-wasm`'s Bootsharp-generated ES module directly. Bootsharp handles the runtime bridge: import the generated package, boot the package `bin/` directory, then call `Motely`.
|
|
110
|
+
|
|
111
|
+
```ts
|
|
112
|
+
import bootsharp, { Motely } from "motely-wasm";
|
|
113
|
+
|
|
114
|
+
await bootsharp.boot("/motely-wasm/bin");
|
|
115
|
+
const status = Motely.validateJaml(jaml);
|
|
116
|
+
```
|
|
120
117
|
|
|
121
118
|
```tsx
|
|
122
119
|
import { useSearch, useJamlLibrary } from "jaml-ui/motely";
|
|
123
120
|
|
|
124
|
-
const search = useSearch();
|
|
125
|
-
search.start(jaml, 10_000);
|
|
126
|
-
|
|
127
121
|
// result: { seed: string, score: number, tallyColumns?: number[] }
|
|
128
122
|
```
|
|
129
123
|
|
|
@@ -142,6 +136,8 @@ await library.saveFile("filters/example.jaml", source);
|
|
|
142
136
|
| Peer | Required for |
|
|
143
137
|
| ---- | ------------ |
|
|
144
138
|
| `react`, `react-dom` | All components |
|
|
145
|
-
| `
|
|
139
|
+
| `react-icons` | Components that render icons (optional peer) |
|
|
146
140
|
| `@rewaffle/bootsharp-file-system` | Optional JAML library folder mount support |
|
|
147
141
|
| `three`, `@react-three/fiber`, `@react-three/drei`, `@react-spring/three` | `jaml-ui/r3f` only |
|
|
142
|
+
|
|
143
|
+
`motely-wasm` is a direct dependency (currently `^17.7.0`) — it ships with `jaml-ui` rather than as a peer, but is externalized from the bundle so consumers control how the Bootsharp runtime is served (see *Search Worker Architecture* above).
|