@sensiblestats/widget-react 0.33.0 → 0.33.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @sensiblestats/widget-react
2
2
 
3
+ ## 0.33.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 2d55861: Betting cards: drop the league name from the header when a team pair fills it. The demoted competition now shows as its crest only, with the name kept in the meta title tooltip so it stays discoverable. Frees space in the tight header; the competition-as-hero case (no team pair) still shows the name.
8
+
9
+ ## 0.33.1
10
+
11
+ ### Patch Changes
12
+
13
+ - c60b673: Club widget now swaps the live dashboard for the post-match dashboard when a match ends, instead of leaving the last live card frozen on screen.
14
+
3
15
  ## 0.33.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -787,6 +787,9 @@ function useLiveDashboardPoll({ messages, dispatch, getLiveDashboard }) {
787
787
  } else {
788
788
  dispatch({ kind: "LIVE_REFRESH", messageId: current.messageId, cards: payload.cards, greeting: payload.greeting });
789
789
  }
790
+ } else if (payload?.phase === "postMatch" && current.kind === "live") {
791
+ dispatch({ kind: "LIVE_TRANSITION", messageId: current.messageId, dashboard: payload });
792
+ window.clearInterval(id);
790
793
  } else {
791
794
  if (current.kind === "live") {
792
795
  window.clearInterval(id);
@@ -1600,10 +1603,7 @@ function InsightCard({ it, ui, slip, monitor }) {
1600
1603
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ss-w-bi-live-dot", "aria-hidden": "true" }),
1601
1604
  ui?.liveLabel ?? "Live"
1602
1605
  ] }) : null,
1603
- compInMeta ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "ss-w-bi-comp-meta", children: [
1604
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Crest2, { kind: "comp", url: it.competitionCrest, name: it.competition }),
1605
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ss-w-bi-comp", children: it.competition })
1606
- ] }) : null,
1606
+ compInMeta ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ss-w-bi-comp-meta", title: it.competition, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Crest2, { kind: "comp", url: it.competitionCrest, name: it.competition }) }) : null,
1607
1607
  kickoff ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "ss-w-bi-kick", children: [
1608
1608
  kickoff.dayLabel,
1609
1609
  " ",