jaml-ui 1.0.0 → 1.0.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.
Files changed (44) hide show
  1. package/dist/assets/{searchPoolWorker-DWobBIhl.js → searchPoolWorker-DHh9a5GD.js} +2 -2
  2. package/dist/assets/searchPoolWorker-DHh9a5GD.js.map +1 -0
  3. package/dist/chunks/{jamlSeeds-3ILzc_rj.js → jamlSeeds-CKHvpjhC.js} +1 -1
  4. package/dist/chunks/{jamlSeeds-3ILzc_rj.js.map → jamlSeeds-CKHvpjhC.js.map} +1 -1
  5. package/dist/chunks/{motelyItemFormats-CNrFzcCI.js → motelyItemFormats-Dyq1BINO.js} +275 -267
  6. package/dist/chunks/motelyItemFormats-Dyq1BINO.js.map +1 -0
  7. package/dist/chunks/{searchPoolWorker-tBaSbLZu.js → searchPoolWorker-DgRqVj_q.js} +2 -2
  8. package/dist/chunks/searchPoolWorker-DgRqVj_q.js.map +1 -0
  9. package/dist/chunks/{assets-Bb6wV80_.js → spriteMapper-C2mqQHLj.js} +2417 -2
  10. package/dist/chunks/spriteMapper-C2mqQHLj.js.map +1 -0
  11. package/dist/chunks/{ui-Dn8IIoV3.js → ui-LfKBGL5-.js} +675 -791
  12. package/dist/chunks/ui-LfKBGL5-.js.map +1 -0
  13. package/dist/core.js +7 -8
  14. package/dist/core.js.map +1 -1
  15. package/dist/index.d.ts +0 -1
  16. package/dist/index.js +1185 -1230
  17. package/dist/index.js.map +1 -1
  18. package/dist/lib/motely/runtime.d.ts +7 -0
  19. package/dist/motely.js +10 -11
  20. package/dist/motely.js.map +1 -1
  21. package/dist/ui/jimbo.css +1 -1
  22. package/dist/ui/jimboApp.d.ts +3 -6
  23. package/dist/ui/jimboBackground.d.ts +4 -8
  24. package/dist/ui/sprites.d.ts +2 -1
  25. package/dist/ui.d.ts +0 -2
  26. package/dist/ui.js +2 -3
  27. package/package.json +15 -39
  28. package/dist/assets/searchPoolWorker-DWobBIhl.js.map +0 -1
  29. package/dist/chunks/assets-Bb6wV80_.js.map +0 -1
  30. package/dist/chunks/motelyItemFormats-CNrFzcCI.js.map +0 -1
  31. package/dist/chunks/searchPoolWorker-tBaSbLZu.js.map +0 -1
  32. package/dist/chunks/spriteMapper-CajFGgUU.js +0 -2419
  33. package/dist/chunks/spriteMapper-CajFGgUU.js.map +0 -1
  34. package/dist/chunks/tokens-Qrhlekc4.js +0 -57
  35. package/dist/chunks/tokens-Qrhlekc4.js.map +0 -1
  36. package/dist/chunks/ui-Dn8IIoV3.js.map +0 -1
  37. package/dist/r3f/Card3D.d.ts +0 -25
  38. package/dist/r3f/JimboBillboard.d.ts +0 -10
  39. package/dist/r3f/JimboText3D.d.ts +0 -9
  40. package/dist/r3f.d.ts +0 -3
  41. package/dist/r3f.js +0 -235
  42. package/dist/r3f.js.map +0 -1
  43. package/dist/ui/JimboPanelSplitter.d.ts +0 -8
  44. package/dist/ui/showcase.d.ts +0 -38
package/dist/core.js CHANGED
@@ -1,19 +1,18 @@
1
- import { n as e, t } from "./chunks/assets-Bb6wV80_.js";
2
- import { _ as n, a as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, o as f, p, r as m, s as h, u as g, v as _ } from "./chunks/spriteMapper-CajFGgUU.js";
3
- import { n as v, r as y, t as b } from "./chunks/jamlSeeds-3ILzc_rj.js";
1
+ import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, o as d, p as f, r as p, s as m, u as h, v as g, y as _ } from "./chunks/spriteMapper-C2mqQHLj.js";
2
+ import { n as v, r as y, t as b } from "./chunks/jamlSeeds-CKHvpjhC.js";
4
3
  //#region src/utils/gameCardUtils.ts
5
4
  function x(e, t) {
6
5
  return {
7
- x: a[e] ?? 0,
8
- y: c[t] ?? 0
6
+ x: i[e] ?? 0,
7
+ y: s[t] ?? 0
9
8
  };
10
9
  }
11
10
  function S(e) {
12
- return o[e];
11
+ return a[e];
13
12
  }
14
13
  function C(e) {
15
14
  for (let t of e) {
16
- let e = i[t];
15
+ let e = r[t];
17
16
  if (e) return e;
18
17
  }
19
18
  return {
@@ -22,6 +21,6 @@ function C(e) {
22
21
  };
23
22
  }
24
23
  //#endregion
25
- export { l as BOOSTER_PACKS, r as BOSSES, f as CONSUMABLE_FACES, h as EDITION_MAP, i as ENHANCER_MAP, t as JAML_ASSET_FILES, u as JOKERS, g as JOKER_FACES, y as Layer, a as RANK_MAP, o as SEAL_MAP, p as SPRITE_SHEETS, d as STICKER_MAP, c as SUIT_MAP, s as TAGS, n as TAROTS_AND_PLANETS, _ as VOUCHERS, C as getEnhancerPosition, S as getSealPosition, m as getSpriteData, x as getStandardCardPosition, b as mergeSeedsIntoJaml, v as parseJamlSeeds, e as resolveJamlAssetUrl };
24
+ export { c as BOOSTER_PACKS, t as BOSSES, d as CONSUMABLE_FACES, m as EDITION_MAP, r as ENHANCER_MAP, _ as JAML_ASSET_FILES, l as JOKERS, h as JOKER_FACES, y as Layer, i as RANK_MAP, a as SEAL_MAP, f as SPRITE_SHEETS, u as STICKER_MAP, s as SUIT_MAP, o as TAGS, e as TAROTS_AND_PLANETS, g as VOUCHERS, C as getEnhancerPosition, S as getSealPosition, p as getSpriteData, x as getStandardCardPosition, b as mergeSeedsIntoJaml, v as parseJamlSeeds, n as resolveJamlAssetUrl };
26
25
 
27
26
  //# sourceMappingURL=core.js.map
package/dist/core.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"core.js","names":[],"sources":["../src/utils/gameCardUtils.ts"],"sourcesContent":["import { RANK_MAP, SUIT_MAP, SEAL_MAP, ENHANCER_MAP, type SpritePos } from \"../sprites/spriteData.js\";\n\nexport function getStandardCardPosition(rank: string, suit: string): SpritePos {\n return { x: RANK_MAP[rank] ?? 0, y: SUIT_MAP[suit] ?? 0 };\n}\n\nexport function getSealPosition(seal: string): SpritePos | undefined {\n return SEAL_MAP[seal];\n}\n\nexport function getEnhancerPosition(modifiers: string[]): SpritePos {\n for (const m of modifiers) {\n const pos = ENHANCER_MAP[m];\n if (pos) return pos;\n }\n return { x: 1, y: 0 };\n}\n"],"mappings":";;;;AAEA,SAAgB,EAAwB,GAAc,GAAyB;CAC3E,OAAO;EAAE,GAAG,EAAS,MAAS;EAAG,GAAG,EAAS,MAAS;CAAE;AAC5D;AAEA,SAAgB,EAAgB,GAAqC;CACjE,OAAO,EAAS;AACpB;AAEA,SAAgB,EAAoB,GAAgC;CAChE,KAAK,IAAM,KAAK,GAAW;EACvB,IAAM,IAAM,EAAa;EACzB,IAAI,GAAK,OAAO;CACpB;CACA,OAAO;EAAE,GAAG;EAAG,GAAG;CAAE;AACxB"}
1
+ {"version":3,"file":"core.js","names":[],"sources":["../src/utils/gameCardUtils.ts"],"sourcesContent":["import { RANK_MAP, SUIT_MAP, SEAL_MAP, ENHANCER_MAP, type SpritePos } from \"../sprites/spriteData.js\";\n\nexport function getStandardCardPosition(rank: string, suit: string): SpritePos {\n return { x: RANK_MAP[rank] ?? 0, y: SUIT_MAP[suit] ?? 0 };\n}\n\nexport function getSealPosition(seal: string): SpritePos | undefined {\n return SEAL_MAP[seal];\n}\n\nexport function getEnhancerPosition(modifiers: string[]): SpritePos {\n for (const m of modifiers) {\n const pos = ENHANCER_MAP[m];\n if (pos) return pos;\n }\n return { x: 1, y: 0 };\n}\n"],"mappings":";;;AAEA,SAAgB,EAAwB,GAAc,GAAyB;CAC3E,OAAO;EAAE,GAAG,EAAS,MAAS;EAAG,GAAG,EAAS,MAAS;CAAE;AAC5D;AAEA,SAAgB,EAAgB,GAAqC;CACjE,OAAO,EAAS;AACpB;AAEA,SAAgB,EAAoB,GAAgC;CAChE,KAAK,IAAM,KAAK,GAAW;EACvB,IAAM,IAAM,EAAa;EACzB,IAAI,GAAK,OAAO;CACpB;CACA,OAAO;EAAE,GAAG;EAAG,GAAG;CAAE;AACxB"}
package/dist/index.d.ts CHANGED
@@ -14,7 +14,6 @@ export { DeckSprite, DECK_SPRITE_POS, STAKE_SPRITE_POS, type DeckSpriteProps, }
14
14
  export { MotelyVersionBadge, type MotelyVersionBadgeProps, type MotelyCapabilities, } from './components/MotelyVersionBadge.js';
15
15
  export { MotelyHello, type MotelyHelloProps } from './components/MotelyHello.js';
16
16
  export { JamlSpeedometer, type JamlSpeedometerProps, type JamlSpeedometerStatus, } from './components/JamlSpeedometer.js';
17
- export { Showcase, type ShowcaseFilter, type ShowcaseLiveStats, type ShowcaseProps, type ShowcaseRecentFind, } from './ui/showcase.js';
18
17
  export { extractVisualJamlItems, type JamlPreviewGroups, type JamlPreviewItem, type JamlPreviewSection, type JamlPreviewVisualType, } from './utils/jamlMapPreview.js';
19
18
  export { useMotelyStream, type StreamItem, type StreamState } from './hooks/useShopStream.js';
20
19
  export { useSearch, type SearchResult, type SearchMode, type SearchStatus, type UseSearchState, } from './hooks/useSearch.js';