@sensiblestats/widget-react 0.83.0 → 0.84.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/dist/index.js CHANGED
@@ -1177,6 +1177,7 @@ function toMarketOddsVM(card) {
1177
1177
  mainLine: str(card.mainLine),
1178
1178
  pinEnabled: card.pinEnabled === true,
1179
1179
  statText: card.insight && typeof card.insight === "object" ? str(card.insight.text) : void 0,
1180
+ statTexts: Array.isArray(card.insights) ? card.insights.map((i) => str(i?.text)).filter((t) => !!t) : void 0,
1180
1181
  tag: card.tag === "your_market" ? "your_market" : void 0,
1181
1182
  live: card.live ?? null,
1182
1183
  marketCount: typeof card.marketCount === "number" && Number.isFinite(card.marketCount) ? card.marketCount : void 0
@@ -4429,7 +4430,7 @@ function MarketOddsCard({ vm, ui, slip, monitor, inSlipIds, hideHeader, pinRef }
4429
4430
  ] }) : null
4430
4431
  ] }) : null
4431
4432
  ] }),
4432
- vm.statText && !hideHeader && !pinRef ? /* @__PURE__ */ jsx18("div", { className: "ss-w-mo-stat", children: vm.statText }) : null,
4433
+ !hideHeader && !pinRef ? (vm.statTexts && vm.statTexts.length > 0 ? vm.statTexts : vm.statText ? [vm.statText] : []).map((text, i) => /* @__PURE__ */ jsx18("div", { className: "ss-w-mo-stat", children: text }, i)) : null,
4433
4434
  isClosed ? /* @__PURE__ */ jsx18("div", { className: "ss-w-mo-closed", children: closedReason === "suspended" ? /* @__PURE__ */ jsx18("span", { children: ui?.liveCard.suspended ?? "Market suspended" }) : closedReason === "no_live_price" ? /* @__PURE__ */ jsx18("span", { children: ui?.liveCard.noPrice ?? "No live price available" }) : closedReason === "full_time" ? /* @__PURE__ */ jsx18("span", { children: ui?.liveCard.fullTime ?? "Full time" }) : null }) : /* @__PURE__ */ jsxs14(Fragment2, { children: [
4434
4435
  /* @__PURE__ */ jsxs14("div", { className: "ss-w-mo-rows", children: [
4435
4436
  vm.mainRows.map((row) => /* @__PURE__ */ jsx18(OddsRow, { vm, row, ui, slip, inSlipIds, history, suppressSlip: isStale }, row.key)),