jaml-ui 4.0.0 → 4.0.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.
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/motely.js +754 -20
- package/dist/motely.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunks/motelySprite-BYsaes3N.js +0 -753
- package/dist/chunks/motelySprite-BYsaes3N.js.map +0 -1
- package/dist/lib/motely/motelyCompatEnums.d.ts +0 -349
package/dist/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { jsxs as i, jsx as r, Fragment as N } from "react/jsx-runtime";
|
|
|
3
3
|
import { useRef as X, useState as Z, useEffect as U, useCallback as F, useMemo as q, Fragment as fe } from "react";
|
|
4
4
|
import { f as g, b as Je, d as $, e as Me, h as _, C as we, E as Ee, a as re, R as ne, c as ve, g as K, S as Be, T as Pe, V as ee, r as L } from "./chunks/spriteMapper-BiDkbZrD.js";
|
|
5
5
|
import { L as k } from "./chunks/Layer-B5y9UIAt.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { decodeMotelyItem as Te, decodeMotelyItemToJamlCard as He } from "./motely.js";
|
|
7
|
+
import { decodeMotelyItemName as ot, getMotelySpriteByName as st, motelyItemCategory as it, motelyItemDisplayName as lt, motelyItemEditionName as ct, motelyItemEnhancementName as dt, motelyItemRenderCategory as gt, motelyItemSealName as mt, motelyItemToSprite as ut, motelyItemTypeName as Qt, motelyStandardcardRankName as Ct, motelyStandardcardSuitName as yt, resolveMotelyItemType as ht } from "./motely.js";
|
|
8
8
|
import { MotelyDeck as Re, MotelyStake as Oe, MotelyTag as Xe, MotelyBossBlind as Ze, MotelyVoucher as xe, MotelyBoosterPack as De } from "motely-wasm";
|
|
9
9
|
import * as TA from "motely-wasm";
|
|
10
10
|
import { default as ft } from "motely-wasm";
|
|
@@ -471,7 +471,7 @@ function $e(e) {
|
|
|
471
471
|
function _e(e) {
|
|
472
472
|
return x(Oe[e]);
|
|
473
473
|
}
|
|
474
|
-
function be({
|
|
474
|
+
function be({ item: e }) {
|
|
475
475
|
const A = q(
|
|
476
476
|
() => He(e, 0.85),
|
|
477
477
|
[e]
|
|
@@ -494,7 +494,7 @@ function eA({ pack: e }) {
|
|
|
494
494
|
" cards"
|
|
495
495
|
] })
|
|
496
496
|
] }),
|
|
497
|
-
/* @__PURE__ */ r("div", { className: "j-analyzer-card-row", children: e.items.map((A, t) => /* @__PURE__ */ r(be, {
|
|
497
|
+
/* @__PURE__ */ r("div", { className: "j-analyzer-card-row", children: e.items.map((A, t) => /* @__PURE__ */ r(be, { item: A }, t)) })
|
|
498
498
|
] });
|
|
499
499
|
}
|
|
500
500
|
function RA({ result: e, deck: A, stake: t, maxAnte: n = 8 }) {
|
|
@@ -722,7 +722,7 @@ function RA({ result: e, deck: A, stake: t, maxAnte: n = 8 }) {
|
|
|
722
722
|
] }),
|
|
723
723
|
/* @__PURE__ */ i("div", { className: "j-analyzer-section", children: [
|
|
724
724
|
/* @__PURE__ */ r("h3", { className: "j-analyzer-section-title", children: "Shop" }),
|
|
725
|
-
/* @__PURE__ */ r("div", { className: "j-analyzer-card-row", children: o.shopItems.map((c, m) => /* @__PURE__ */ r(be, {
|
|
725
|
+
/* @__PURE__ */ r("div", { className: "j-analyzer-card-row", children: o.shopItems.map((c, m) => /* @__PURE__ */ r(be, { item: c }, m)) })
|
|
726
726
|
] }),
|
|
727
727
|
o.packs.length > 0 && /* @__PURE__ */ i("div", { className: "j-analyzer-section", children: [
|
|
728
728
|
/* @__PURE__ */ r("h3", { className: "j-analyzer-section-title", children: "Packs" }),
|