jaml-ui 0.27.0 → 0.28.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.
Files changed (52) hide show
  1. package/README.md +11 -6
  2. package/dist/assets/{searchPoolWorker-CejAnH4a.js → searchPoolWorker-BtlROziN.js} +9 -4
  3. package/dist/assets/searchPoolWorker-BtlROziN.js.map +1 -0
  4. package/dist/chunks/Layer-BBPJFHfs.js.map +1 -1
  5. package/dist/chunks/assets-RWUiFSTc.js.map +1 -1
  6. package/dist/chunks/motelyItemDecoder-BvFrQpaI.js +2061 -0
  7. package/dist/chunks/motelyItemDecoder-BvFrQpaI.js.map +1 -0
  8. package/dist/chunks/{searchPoolWorker-CTtPOuxF.js → searchPoolWorker-D1xR43D2.js} +2 -2
  9. package/dist/chunks/searchPoolWorker-D1xR43D2.js.map +1 -0
  10. package/dist/chunks/spriteMapper-CFjN0_TV.js.map +1 -1
  11. package/dist/chunks/tokens-B65Fzble.js.map +1 -1
  12. package/dist/chunks/ui-BEtq_JNg.js +3229 -0
  13. package/dist/chunks/ui-BEtq_JNg.js.map +1 -0
  14. package/dist/components/JamlAestheticSelector.d.ts +2 -3
  15. package/dist/components/JamlIdeToolbar.d.ts +3 -1
  16. package/dist/components/JamlSeedInput.d.ts +14 -4
  17. package/dist/components/JamlSeedSpinner.d.ts +7 -0
  18. package/dist/components/Jamlyzer.d.ts +5 -1
  19. package/dist/components/RunConfigModal.d.ts +1 -1
  20. package/dist/components/jamlSeedUtils.d.ts +1 -0
  21. package/dist/config.d.ts +5 -4
  22. package/dist/core.js.map +1 -1
  23. package/dist/decode/motelyItemFormats.d.ts +3124 -0
  24. package/dist/hooks/useIntersectionObserver.d.ts +1 -1
  25. package/dist/hooks/useMotelyRuntime.d.ts +1 -1
  26. package/dist/hooks/useSearch.d.ts +3 -3
  27. package/dist/index.d.ts +4 -2
  28. package/dist/index.js +3297 -3259
  29. package/dist/index.js.map +1 -1
  30. package/dist/lib/hooks/useDragScroll.d.ts +1 -1
  31. package/dist/motely.d.ts +2 -2
  32. package/dist/motely.js +23 -22
  33. package/dist/motely.js.map +1 -1
  34. package/dist/r3f.js.map +1 -1
  35. package/dist/ui/JimboPanelSpinner.d.ts +15 -0
  36. package/dist/ui/footer.d.ts +7 -1
  37. package/dist/ui/hooks.d.ts +2 -2
  38. package/dist/ui/jimbo.css +1 -1
  39. package/dist/ui.d.ts +2 -0
  40. package/dist/ui.js +3 -3
  41. package/jaml.schema.json +1219 -1165
  42. package/package.json +20 -22
  43. package/DESIGN.md +0 -236
  44. package/dist/assets/searchPoolWorker-CejAnH4a.js.map +0 -1
  45. package/dist/chunks/motelyItemDecoder-CRhfNIGU.js +0 -219
  46. package/dist/chunks/motelyItemDecoder-CRhfNIGU.js.map +0 -1
  47. package/dist/chunks/searchPoolWorker-CTtPOuxF.js.map +0 -1
  48. package/dist/chunks/ui-BBUfR6RM.js +0 -1386
  49. package/dist/chunks/ui-BBUfR6RM.js.map +0 -1
  50. package/dist/motelyBoot.d.ts +0 -15
  51. package/dist/ui/ide/DeckSprite.d.ts +0 -1
  52. package/dist/ui/ide/RegexTool.d.ts +0 -3
package/README.md CHANGED
@@ -115,15 +115,18 @@ const nextConfig = { transpilePackages: ["jaml-ui"] };
115
115
 
116
116
  ## Search Worker Architecture
117
117
 
118
- The library provides `useSearch` and `useAnalyzer` helpers that use `motely-wasm`'s Bootsharp-generated ES module directly.
119
- Importing `jaml-ui/motely` boots `motely-wasm` once at module scope. Search results stay the plain Balatro seed shape: `seed`, `score`, and optional tally columns.
118
+ 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`.
119
+
120
+ ```ts
121
+ import bootsharp, { Motely } from "motely-wasm";
122
+
123
+ await bootsharp.boot("/motely-wasm/bin");
124
+ const status = Motely.validateJaml(jaml);
125
+ ```
120
126
 
121
127
  ```tsx
122
128
  import { useSearch, useJamlLibrary } from "jaml-ui/motely";
123
129
 
124
- const search = useSearch();
125
- search.start(jaml, 10_000);
126
-
127
130
  // result: { seed: string, score: number, tallyColumns?: number[] }
128
131
  ```
129
132
 
@@ -142,6 +145,8 @@ await library.saveFile("filters/example.jaml", source);
142
145
  | Peer | Required for |
143
146
  | ---- | ------------ |
144
147
  | `react`, `react-dom` | All components |
145
- | `motely-wasm ^16.0.1` | `jaml-ui/motely`, `AnalyzerExplorer`, `useSearch`, `useAnalyzer`, `useJamlLibrary` data |
148
+ | `react-icons` | Components that render icons (optional peer) |
146
149
  | `@rewaffle/bootsharp-file-system` | Optional JAML library folder mount support |
147
150
  | `three`, `@react-three/fiber`, `@react-three/drei`, `@react-spring/three` | `jaml-ui/r3f` only |
151
+
152
+ `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).