@sensiblestats/widget-react 0.124.0 → 0.124.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sensiblestats/widget-react
2
2
 
3
+ ## 0.124.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Tennis: the pin sits inline on schedule rows, the followed card hides the kickoff chip once live, drops the bookmaker name, draws prices it cannot add as plain text and stretches addable prices into full-width buttons.
8
+
3
9
  ## 0.124.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -861,7 +861,8 @@ var BUNDLED_EN_GB = {
861
861
  "widget.tennis.headToHead": "Head to head",
862
862
  "widget.tennis.movedSince": "Moved since {date}",
863
863
  "widget.tennis.unchangedSince": "Unchanged since {date}",
864
- "widget.tennis.updated": "updated {time}"
864
+ "widget.tennis.updated": "updated {time}",
865
+ "widget.tennis.vs": "vs"
865
866
  };
866
867
 
867
868
  // src/strings/fill.ts
@@ -1216,7 +1217,7 @@ function parseOddsFormat(value) {
1216
1217
  }
1217
1218
 
1218
1219
  // src/version.generated.ts
1219
- var WIDGET_REACT_VERSION = "0.124.0";
1220
+ var WIDGET_REACT_VERSION = "0.124.1";
1220
1221
 
1221
1222
  // src/config.ts
1222
1223
  function hostTag(cfg) {
@@ -11451,10 +11452,7 @@ function WinnerPrice({ match, t, price, ui, slip }) {
11451
11452
  ] : [];
11452
11453
  if (!price && match.phase === "fullTime") return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_jsx_runtime85.Fragment, {});
11453
11454
  return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("section", { className: "ss-w-tn-sec", children: [
11454
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("h4", { className: "ss-w-tn-h", children: [
11455
- t.labels.matchWinner,
11456
- price ? ` \xB7 ${price.bookmaker}` : ""
11457
- ] }),
11455
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("h4", { className: "ss-w-tn-h", children: t.labels.matchWinner }),
11458
11456
  price && common ? /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_jsx_runtime85.Fragment, { children: [
11459
11457
  /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "ss-w-tn-prices", children: sides.map((s) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "ss-w-tn-pside", children: [
11460
11458
  /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "ss-w-tn-pname", children: s.player.shortName }),
@@ -11516,7 +11514,8 @@ function HeadToHead({ t, ui }) {
11516
11514
  function TennisMonitorCard({ match, monitor, ui, slip, onAsk }) {
11517
11515
  const t = match.tennis;
11518
11516
  if (!t) return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(UnavailableCard, { match, monitor, ui, sport: "tennis" });
11519
- const kickoff = !t.header.timeTba && t.header.startsAtUtc ? ui.bettingKickoff(t.header.startsAtUtc) : null;
11517
+ const preMatch = match.phase === "preMatch";
11518
+ const kickoff = preMatch && !t.header.timeTba && t.header.startsAtUtc ? ui.bettingKickoff(t.header.startsAtUtc) : null;
11520
11519
  const round = t.header.round ? ui.tennis.round[t.header.round] ?? t.header.round : null;
11521
11520
  const surface = t.header.surface ? surfaceLabel(ui, t.header.surface) : null;
11522
11521
  const ask = () => {
@@ -11531,10 +11530,13 @@ function TennisMonitorCard({ match, monitor, ui, slip, onAsk }) {
11531
11530
  };
11532
11531
  return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "ss-w-mon-item", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "ss-w-mon ss-w-tn-card", children: [
11533
11532
  /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "ss-w-mon-top", children: [
11534
- match.phase === "live" && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "ss-w-fandash-live-pill", children: ui.liveLabel }),
11533
+ match.phase === "live" && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("span", { className: "ss-w-fandash-live-pill", children: [
11534
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "ss-w-fandash-live-dot", "aria-hidden": "true" }),
11535
+ ui.liveLabel
11536
+ ] }),
11535
11537
  match.phase === "fullTime" && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "ss-w-mon-pill", children: ui.fullTimeLabel }),
11536
11538
  match.phase === "postponed" && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "ss-w-mon-pill", children: ui.postponedLabel }),
11537
- t.header.timeTba && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "ss-w-mon-pill", children: ui.tennis.timeTba }),
11539
+ preMatch && t.header.timeTba && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "ss-w-mon-pill", children: ui.tennis.timeTba }),
11538
11540
  kickoff && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("span", { className: "ss-w-mon-pill", children: [
11539
11541
  kickoff.dayLabel,
11540
11542
  " \xB7 ",
@@ -18415,6 +18417,10 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
18415
18417
  .ss-w-trow { display: grid; grid-template-columns: 56px minmax(0,1fr) 56px; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--ss-w-line); min-width: 0; }
18416
18418
  .ss-w-trow:last-child { border-bottom: none; }
18417
18419
  .ss-w-trow--noprice { grid-template-columns: 56px minmax(0,1fr); }
18420
+ .ss-w-trow--pin { grid-template-columns: 56px minmax(0,1fr) 56px 22px; }
18421
+ .ss-w-trow--pin.ss-w-trow--noprice { grid-template-columns: 56px minmax(0,1fr) 22px; }
18422
+ .ss-w-trow-open { padding: 0; font: inherit; color: inherit; text-align: left; background: none; border: none; cursor: pointer; }
18423
+ .ss-w-trow-open:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; border-radius: 6px; }
18418
18424
  .ss-w-trow-when { min-width: 0; font-size: 11px; font-weight: 700; color: var(--ss-w-faint); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
18419
18425
  .ss-w-trow-when--tba { font-size: 10px; font-weight: 600; line-height: 1.15; }
18420
18426
  .ss-w-trow-live { color: var(--ss-w-neg); }
@@ -18447,6 +18453,8 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
18447
18453
  .ss-w-tn-pname { font-size: 11px; font-weight: 650; color: var(--ss-w-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
18448
18454
  .ss-w-tn-pside .ss-w-trow-prices { flex-direction: row; }
18449
18455
  .ss-w-tn-pside .ss-w-trow-price, .ss-w-tn-pside .ss-w-trow-prices .ss-w-slip-btn.ss-w-slip-btn--price { padding: 7px 0; font-size: 14px; }
18456
+ .ss-w-tn-pside .ss-w-trow-price { border: none; background: none; }
18457
+ .ss-w-tn-pside .ss-w-trow-prices .ss-w-slip { flex: 1; }
18450
18458
  .ss-w-tn-pside .ss-w-move { justify-content: center; }
18451
18459
  .ss-w-tn-note { margin: 0; font-size: 10.5px; font-weight: 600; line-height: 1.35; color: var(--ss-w-faint); overflow-wrap: anywhere; }
18452
18460
  .ss-w-tn-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,auto) minmax(0,1fr); align-items: center; gap: 6px 8px; }