@sensiblestats/widget-react 0.107.0 → 0.107.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 +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1250,7 +1250,7 @@ function isEnglishLocale(locale) {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
|
|
1252
1252
|
// src/version.generated.ts
|
|
1253
|
-
var WIDGET_REACT_VERSION = "0.107.
|
|
1253
|
+
var WIDGET_REACT_VERSION = "0.107.1";
|
|
1254
1254
|
|
|
1255
1255
|
// src/config.ts
|
|
1256
1256
|
function normalizeUi(cfg) {
|
|
@@ -8240,9 +8240,7 @@ function MonitorMatchCard({ match, promotedPins, monitor, ui, slip, onAsk }) {
|
|
|
8240
8240
|
] }),
|
|
8241
8241
|
live && match.facts && match.facts.length > 0 && /* @__PURE__ */ jsx57(LiveFactBlock, { facts: match.facts, matchId: match.matchId, ui, slip, onAsk }),
|
|
8242
8242
|
/* @__PURE__ */ jsx57("div", { className: "ss-w-mon-stats", children: orderedRows.map((row) => {
|
|
8243
|
-
const
|
|
8244
|
-
const homePct = total > 0 ? row.homeNum / total * 75 : 0;
|
|
8245
|
-
const awayPct = total > 0 ? row.awayNum / total * 75 : 0;
|
|
8243
|
+
const { home, away } = splitWidths2(row.homeNum, row.awayNum);
|
|
8246
8244
|
const promoted = isPromoted(row, promotedPins);
|
|
8247
8245
|
const selection = chipSelection(row.market, match.matchId, slip.conversationId);
|
|
8248
8246
|
return /* @__PURE__ */ jsxs52("div", { className: promoted ? "ss-w-mon-stat ss-w-mon-pstrip" : "ss-w-mon-stat", children: [
|
|
@@ -8252,8 +8250,8 @@ function MonitorMatchCard({ match, promotedPins, monitor, ui, slip, onAsk }) {
|
|
|
8252
8250
|
/* @__PURE__ */ jsx57("span", { className: "ss-w-mon-stat-v ss-w-mon-stat-v--away", children: row.awayValue })
|
|
8253
8251
|
] }),
|
|
8254
8252
|
/* @__PURE__ */ jsxs52("div", { className: "ss-w-mon-bar", children: [
|
|
8255
|
-
/* @__PURE__ */ jsx57("b", { className: "ss-w-mon-bar-home", style: { width:
|
|
8256
|
-
/* @__PURE__ */ jsx57("i", { className: "ss-w-mon-bar-away", style: { width:
|
|
8253
|
+
/* @__PURE__ */ jsx57("b", { className: "ss-w-mon-bar-home", style: { width: home } }),
|
|
8254
|
+
/* @__PURE__ */ jsx57("i", { className: "ss-w-mon-bar-away", style: { width: away } })
|
|
8257
8255
|
] }),
|
|
8258
8256
|
row.market && !row.market.isSuspended && /* @__PURE__ */ jsxs52("div", { className: promoted ? "ss-w-mon-stat-mkt ss-w-mon-mkt" : "ss-w-mon-stat-mkt", children: [
|
|
8259
8257
|
/* @__PURE__ */ jsxs52("span", { children: [
|