@sensiblestats/widget-react 0.138.2 → 0.139.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/CHANGELOG.md +11 -0
- package/dist/index.cjs +6 -2
- 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 +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -207,6 +207,7 @@ var BUNDLED_EN_GB = {
|
|
|
207
207
|
"widget.v8Paused": "No priced games in this sport right now. Stats and questions still work.",
|
|
208
208
|
"widget.v8NoGamesToday": "No games today",
|
|
209
209
|
"widget.v8Miss": "No combo comes near that total in these games.",
|
|
210
|
+
"widget.v8Nearest": "No combo lands on that total in these games. This is the closest.",
|
|
210
211
|
"widget.v8UseAllGames": "Use all games",
|
|
211
212
|
"widget.v8BuilderShow": "Show me",
|
|
212
213
|
"widget.v8BuilderIn": "in",
|
|
@@ -1298,7 +1299,7 @@ function parseOddsFormat(value) {
|
|
|
1298
1299
|
}
|
|
1299
1300
|
|
|
1300
1301
|
// src/version.generated.ts
|
|
1301
|
-
var WIDGET_REACT_VERSION = "0.
|
|
1302
|
+
var WIDGET_REACT_VERSION = "0.139.0";
|
|
1302
1303
|
|
|
1303
1304
|
// src/config.ts
|
|
1304
1305
|
function hostTag(cfg) {
|
|
@@ -1598,6 +1599,7 @@ function normalizeUi(cfg, loaded) {
|
|
|
1598
1599
|
v8PausedNext: strings.v8PausedNext,
|
|
1599
1600
|
v8NoGamesToday: strings.v8NoGamesToday,
|
|
1600
1601
|
v8Miss: strings.v8Miss,
|
|
1602
|
+
v8Nearest: strings.v8Nearest,
|
|
1601
1603
|
v8UseAllGames: strings.v8UseAllGames,
|
|
1602
1604
|
v8Out: strings.v8Out,
|
|
1603
1605
|
v8More: strings.v8More,
|
|
@@ -17187,7 +17189,7 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
|
|
|
17187
17189
|
ask(next);
|
|
17188
17190
|
};
|
|
17189
17191
|
const canNarrow = preset.matchIds.length > 0;
|
|
17190
|
-
const suggested = grid?.status === "miss" ? grid.legCountThatLands : null;
|
|
17192
|
+
const suggested = grid?.status === "miss" || grid?.nearest === true ? grid.legCountThatLands : null;
|
|
17191
17193
|
const legButtons = Array.from(/* @__PURE__ */ new Set([
|
|
17192
17194
|
...BASE_LEGS,
|
|
17193
17195
|
...[preset.legs, suggested].filter((n) => n !== null && n > 4)
|
|
@@ -17328,7 +17330,9 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
|
|
|
17328
17330
|
] }) : null,
|
|
17329
17331
|
rows && rows.length > 0 ? /* @__PURE__ */ jsxs124(Fragment43, { children: [
|
|
17330
17332
|
/* @__PURE__ */ jsxs124("div", { className: "ss-w-v8-builder-rows", children: [
|
|
17333
|
+
grid?.nearest === true ? /* @__PURE__ */ jsx141("p", { className: "ss-w-v8-builder-note", "data-kind": "nearest", children: ui.v8Nearest }) : null,
|
|
17331
17334
|
/* @__PURE__ */ jsx141("ol", { className: "ss-w-combo-legs", role: "list", children: rows.map((leg) => /* @__PURE__ */ jsx141(ComboLegRow, { leg, addToSlipEnabled: !!slip.onAddToSlip, ui, slip: rowSlip, hold: !confirmed, closed: !preMatchOpen(leg.kickoffUtc, Date.now()) }, leg.key)) }),
|
|
17335
|
+
grid && grid.requestedLegs > 1 && grid.total !== null && grid.totalFormats !== null && grid.multiplication !== null ? /* @__PURE__ */ jsx141("div", { className: "ss-w-combo-math", children: oddsFormat === "decimal" ? grid.multiplication : formatOdds(grid.totalFormats, oddsFormat) }) : null,
|
|
17332
17336
|
grid && grid.requestedLegs > 1 ? /* @__PURE__ */ jsx141(AddAllToSlipButton, { legs: rows, slip: rowSlip, ui, labels: { add: ui.v8AddAll, done: ui.allInSlip }, combo, sizeless: true, hold: !confirmed, onStartedGame: () => {
|
|
17333
17337
|
setStartedNote(true);
|
|
17334
17338
|
void request(lastRequest.current);
|