@sensiblestats/widget-react 0.61.2 → 0.61.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sensiblestats/widget-react
2
2
 
3
+ ## 0.61.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Guess the XI draws each line with the provider's right-to-left numbering (right back on the right). Career Path shows the player's photo once the career is solved or failed.
8
+
3
9
  ## 0.61.2
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -5561,7 +5561,7 @@ function CareerPathGame({
5561
5561
  /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(GameHeader, { title, eyebrow: s.eyebrow, right, onBack, backLabel: ui.back }),
5562
5562
  /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "ss-g-body", children: [
5563
5563
  /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "ss-g-cp-card", children: [
5564
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Silhouette, { size: 64, variant: isOver ? "default" : "mystery" }),
5564
+ isOver && clientState?.revealedPlayerName ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(PlayerAvatar, { className: "ss-g-cp-photo", name: clientState.revealedPlayerName, imagePath: clientState.revealedPlayerImagePath }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Silhouette, { size: 64, variant: isOver ? "default" : "mystery" }),
5565
5565
  /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "ss-g-cp-card-text", children: [
5566
5566
  /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "ss-g-cp-card-title", children: isOver && clientState?.revealedPlayerName ? clientState.revealedPlayerName : s.mysteryPlayer }),
5567
5567
  clientState?.hintLine ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "ss-g-cp-hint", children: clientState.hintLine }) : !isOver ? /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("span", { className: "ss-g-cp-locks", children: [
@@ -5977,7 +5977,8 @@ function toRows(positions) {
5977
5977
  bucket.push(p);
5978
5978
  byRow.set(rowKey, bucket);
5979
5979
  });
5980
- return [...byRow.keys()].sort((a, b) => b - a).map((k) => byRow.get(k));
5980
+ const col = (p) => Number(p.slot?.split(":")[1]) || 0;
5981
+ return [...byRow.keys()].sort((a, b) => b - a).map((k) => [...byRow.get(k)].sort((a, b) => col(b) - col(a)));
5981
5982
  }
5982
5983
  function formationLabel(rowsAttackFirst) {
5983
5984
  if (rowsAttackFirst.length < 2) return "";
@@ -8533,6 +8534,8 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
8533
8534
  .ss-g-mt-portrait .ss-g-sil { font-size: 46px; }
8534
8535
  .ss-g-mt-photo { width: 132px; height: 132px; margin-bottom: 30px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ss-g-accent-tint); color: var(--ss-w-accent); font: 800 40px var(--ss-g-font-display); }
8535
8536
  .ss-g-mt-photo img { width: 100%; height: 100%; object-fit: cover; }
8537
+ .ss-g-cp-photo { width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ss-g-accent-tint); color: var(--ss-w-accent); font: 800 22px var(--ss-g-font-display); }
8538
+ .ss-g-cp-photo img { width: 100%; height: 100%; object-fit: cover; }
8536
8539
  .ss-g-mt-reveal-name { position: absolute; bottom: 6px; left: 12px; right: 12px; text-align: center; font: 800 20px var(--ss-g-font-display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
8537
8540
  .ss-g-mt-known { display: grid; gap: 6px; padding: 12px; }
8538
8541
  .ss-g-mt-known-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }