@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @sensiblestats/widget-react
|
|
2
2
|
|
|
3
|
+
## 0.139.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Smart Acca builder: when no combo lands on the asked total, draw the closest combo with a note, its combined price line, and mark the leg count that lands. Payloads carry `nearest`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @sensiblestats/widget-sdk@0.101.0
|
|
13
|
+
|
|
3
14
|
## 0.138.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -246,6 +246,7 @@ var BUNDLED_EN_GB = {
|
|
|
246
246
|
"widget.v8Paused": "No priced games in this sport right now. Stats and questions still work.",
|
|
247
247
|
"widget.v8NoGamesToday": "No games today",
|
|
248
248
|
"widget.v8Miss": "No combo comes near that total in these games.",
|
|
249
|
+
"widget.v8Nearest": "No combo lands on that total in these games. This is the closest.",
|
|
249
250
|
"widget.v8UseAllGames": "Use all games",
|
|
250
251
|
"widget.v8BuilderShow": "Show me",
|
|
251
252
|
"widget.v8BuilderIn": "in",
|
|
@@ -1337,7 +1338,7 @@ function parseOddsFormat(value) {
|
|
|
1337
1338
|
}
|
|
1338
1339
|
|
|
1339
1340
|
// src/version.generated.ts
|
|
1340
|
-
var WIDGET_REACT_VERSION = "0.
|
|
1341
|
+
var WIDGET_REACT_VERSION = "0.139.0";
|
|
1341
1342
|
|
|
1342
1343
|
// src/config.ts
|
|
1343
1344
|
function hostTag(cfg) {
|
|
@@ -1637,6 +1638,7 @@ function normalizeUi(cfg, loaded) {
|
|
|
1637
1638
|
v8PausedNext: strings.v8PausedNext,
|
|
1638
1639
|
v8NoGamesToday: strings.v8NoGamesToday,
|
|
1639
1640
|
v8Miss: strings.v8Miss,
|
|
1641
|
+
v8Nearest: strings.v8Nearest,
|
|
1640
1642
|
v8UseAllGames: strings.v8UseAllGames,
|
|
1641
1643
|
v8Out: strings.v8Out,
|
|
1642
1644
|
v8More: strings.v8More,
|
|
@@ -17226,7 +17228,7 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
|
|
|
17226
17228
|
ask(next);
|
|
17227
17229
|
};
|
|
17228
17230
|
const canNarrow = preset.matchIds.length > 0;
|
|
17229
|
-
const suggested = grid?.status === "miss" ? grid.legCountThatLands : null;
|
|
17231
|
+
const suggested = grid?.status === "miss" || grid?.nearest === true ? grid.legCountThatLands : null;
|
|
17230
17232
|
const legButtons = Array.from(/* @__PURE__ */ new Set([
|
|
17231
17233
|
...BASE_LEGS,
|
|
17232
17234
|
...[preset.legs, suggested].filter((n) => n !== null && n > 4)
|
|
@@ -17367,7 +17369,9 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
|
|
|
17367
17369
|
] }) : null,
|
|
17368
17370
|
rows && rows.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(import_jsx_runtime141.Fragment, { children: [
|
|
17369
17371
|
/* @__PURE__ */ (0, import_jsx_runtime141.jsxs)("div", { className: "ss-w-v8-builder-rows", children: [
|
|
17372
|
+
grid?.nearest === true ? /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("p", { className: "ss-w-v8-builder-note", "data-kind": "nearest", children: ui.v8Nearest }) : null,
|
|
17370
17373
|
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)("ol", { className: "ss-w-combo-legs", role: "list", children: rows.map((leg) => /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(ComboLegRow, { leg, addToSlipEnabled: !!slip.onAddToSlip, ui, slip: rowSlip, hold: !confirmed, closed: !preMatchOpen(leg.kickoffUtc, Date.now()) }, leg.key)) }),
|
|
17374
|
+
grid && grid.requestedLegs > 1 && grid.total !== null && grid.totalFormats !== null && grid.multiplication !== null ? /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("div", { className: "ss-w-combo-math", children: oddsFormat === "decimal" ? grid.multiplication : formatOdds(grid.totalFormats, oddsFormat) }) : null,
|
|
17371
17375
|
grid && grid.requestedLegs > 1 ? /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(AddAllToSlipButton, { legs: rows, slip: rowSlip, ui, labels: { add: ui.v8AddAll, done: ui.allInSlip }, combo, sizeless: true, hold: !confirmed, onStartedGame: () => {
|
|
17372
17376
|
setStartedNote(true);
|
|
17373
17377
|
void request(lastRequest.current);
|