@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 +6 -0
- package/dist/index.cjs +17 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -9
- package/dist/index.js.map +1 -1
- package/dist/styles.css +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -823,7 +823,8 @@ var BUNDLED_EN_GB = {
|
|
|
823
823
|
"widget.tennis.headToHead": "Head to head",
|
|
824
824
|
"widget.tennis.movedSince": "Moved since {date}",
|
|
825
825
|
"widget.tennis.unchangedSince": "Unchanged since {date}",
|
|
826
|
-
"widget.tennis.updated": "updated {time}"
|
|
826
|
+
"widget.tennis.updated": "updated {time}",
|
|
827
|
+
"widget.tennis.vs": "vs"
|
|
827
828
|
};
|
|
828
829
|
|
|
829
830
|
// src/strings/fill.ts
|
|
@@ -1178,7 +1179,7 @@ function parseOddsFormat(value) {
|
|
|
1178
1179
|
}
|
|
1179
1180
|
|
|
1180
1181
|
// src/version.generated.ts
|
|
1181
|
-
var WIDGET_REACT_VERSION = "0.124.
|
|
1182
|
+
var WIDGET_REACT_VERSION = "0.124.1";
|
|
1182
1183
|
|
|
1183
1184
|
// src/config.ts
|
|
1184
1185
|
function hostTag(cfg) {
|
|
@@ -11413,10 +11414,7 @@ function WinnerPrice({ match, t, price, ui, slip }) {
|
|
|
11413
11414
|
] : [];
|
|
11414
11415
|
if (!price && match.phase === "fullTime") return /* @__PURE__ */ jsx85(Fragment21, {});
|
|
11415
11416
|
return /* @__PURE__ */ jsxs80("section", { className: "ss-w-tn-sec", children: [
|
|
11416
|
-
/* @__PURE__ */
|
|
11417
|
-
t.labels.matchWinner,
|
|
11418
|
-
price ? ` \xB7 ${price.bookmaker}` : ""
|
|
11419
|
-
] }),
|
|
11417
|
+
/* @__PURE__ */ jsx85("h4", { className: "ss-w-tn-h", children: t.labels.matchWinner }),
|
|
11420
11418
|
price && common ? /* @__PURE__ */ jsxs80(Fragment21, { children: [
|
|
11421
11419
|
/* @__PURE__ */ jsx85("div", { className: "ss-w-tn-prices", children: sides.map((s) => /* @__PURE__ */ jsxs80("div", { className: "ss-w-tn-pside", children: [
|
|
11422
11420
|
/* @__PURE__ */ jsx85("span", { className: "ss-w-tn-pname", children: s.player.shortName }),
|
|
@@ -11478,7 +11476,8 @@ function HeadToHead({ t, ui }) {
|
|
|
11478
11476
|
function TennisMonitorCard({ match, monitor, ui, slip, onAsk }) {
|
|
11479
11477
|
const t = match.tennis;
|
|
11480
11478
|
if (!t) return /* @__PURE__ */ jsx85(UnavailableCard, { match, monitor, ui, sport: "tennis" });
|
|
11481
|
-
const
|
|
11479
|
+
const preMatch = match.phase === "preMatch";
|
|
11480
|
+
const kickoff = preMatch && !t.header.timeTba && t.header.startsAtUtc ? ui.bettingKickoff(t.header.startsAtUtc) : null;
|
|
11482
11481
|
const round = t.header.round ? ui.tennis.round[t.header.round] ?? t.header.round : null;
|
|
11483
11482
|
const surface = t.header.surface ? surfaceLabel(ui, t.header.surface) : null;
|
|
11484
11483
|
const ask = () => {
|
|
@@ -11493,10 +11492,13 @@ function TennisMonitorCard({ match, monitor, ui, slip, onAsk }) {
|
|
|
11493
11492
|
};
|
|
11494
11493
|
return /* @__PURE__ */ jsx85("div", { className: "ss-w-mon-item", children: /* @__PURE__ */ jsxs80("div", { className: "ss-w-mon ss-w-tn-card", children: [
|
|
11495
11494
|
/* @__PURE__ */ jsxs80("div", { className: "ss-w-mon-top", children: [
|
|
11496
|
-
match.phase === "live" && /* @__PURE__ */
|
|
11495
|
+
match.phase === "live" && /* @__PURE__ */ jsxs80("span", { className: "ss-w-fandash-live-pill", children: [
|
|
11496
|
+
/* @__PURE__ */ jsx85("span", { className: "ss-w-fandash-live-dot", "aria-hidden": "true" }),
|
|
11497
|
+
ui.liveLabel
|
|
11498
|
+
] }),
|
|
11497
11499
|
match.phase === "fullTime" && /* @__PURE__ */ jsx85("span", { className: "ss-w-mon-pill", children: ui.fullTimeLabel }),
|
|
11498
11500
|
match.phase === "postponed" && /* @__PURE__ */ jsx85("span", { className: "ss-w-mon-pill", children: ui.postponedLabel }),
|
|
11499
|
-
t.header.timeTba && /* @__PURE__ */ jsx85("span", { className: "ss-w-mon-pill", children: ui.tennis.timeTba }),
|
|
11501
|
+
preMatch && t.header.timeTba && /* @__PURE__ */ jsx85("span", { className: "ss-w-mon-pill", children: ui.tennis.timeTba }),
|
|
11500
11502
|
kickoff && /* @__PURE__ */ jsxs80("span", { className: "ss-w-mon-pill", children: [
|
|
11501
11503
|
kickoff.dayLabel,
|
|
11502
11504
|
" \xB7 ",
|
|
@@ -18377,6 +18379,10 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
|
|
|
18377
18379
|
.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; }
|
|
18378
18380
|
.ss-w-trow:last-child { border-bottom: none; }
|
|
18379
18381
|
.ss-w-trow--noprice { grid-template-columns: 56px minmax(0,1fr); }
|
|
18382
|
+
.ss-w-trow--pin { grid-template-columns: 56px minmax(0,1fr) 56px 22px; }
|
|
18383
|
+
.ss-w-trow--pin.ss-w-trow--noprice { grid-template-columns: 56px minmax(0,1fr) 22px; }
|
|
18384
|
+
.ss-w-trow-open { padding: 0; font: inherit; color: inherit; text-align: left; background: none; border: none; cursor: pointer; }
|
|
18385
|
+
.ss-w-trow-open:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; border-radius: 6px; }
|
|
18380
18386
|
.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; }
|
|
18381
18387
|
.ss-w-trow-when--tba { font-size: 10px; font-weight: 600; line-height: 1.15; }
|
|
18382
18388
|
.ss-w-trow-live { color: var(--ss-w-neg); }
|
|
@@ -18409,6 +18415,8 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
|
|
|
18409
18415
|
.ss-w-tn-pname { font-size: 11px; font-weight: 650; color: var(--ss-w-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
18410
18416
|
.ss-w-tn-pside .ss-w-trow-prices { flex-direction: row; }
|
|
18411
18417
|
.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; }
|
|
18418
|
+
.ss-w-tn-pside .ss-w-trow-price { border: none; background: none; }
|
|
18419
|
+
.ss-w-tn-pside .ss-w-trow-prices .ss-w-slip { flex: 1; }
|
|
18412
18420
|
.ss-w-tn-pside .ss-w-move { justify-content: center; }
|
|
18413
18421
|
.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; }
|
|
18414
18422
|
.ss-w-tn-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,auto) minmax(0,1fr); align-items: center; gap: 6px 8px; }
|