@sensiblestats/widget-react 0.118.2 → 0.118.3
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 +6 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1566,7 +1566,7 @@ function parseOddsFormat(value) {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
|
|
1568
1568
|
// src/version.generated.ts
|
|
1569
|
-
var WIDGET_REACT_VERSION = "0.118.
|
|
1569
|
+
var WIDGET_REACT_VERSION = "0.118.3";
|
|
1570
1570
|
|
|
1571
1571
|
// src/config.ts
|
|
1572
1572
|
function normalizeUi(cfg) {
|
|
@@ -15353,7 +15353,8 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
|
|
|
15353
15353
|
const openingView = {
|
|
15354
15354
|
legs: preset.legs,
|
|
15355
15355
|
total: asTotal(preset.totalTarget, totals),
|
|
15356
|
-
|
|
15356
|
+
// All markets opens unless the visitor has a usual market, which is never beaten.
|
|
15357
|
+
marketKey: marketOptions && !marketOptions.some((m) => m.usual) ? null : preset.marketKey,
|
|
15357
15358
|
gamesId: opening.option?.id ?? null,
|
|
15358
15359
|
matchIds: opening.option ? opening.option.matchIds : preset.matchIds,
|
|
15359
15360
|
// The server never widens by itself: an all-games preset with no ids asks for it.
|
|
@@ -15462,8 +15463,8 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
|
|
|
15462
15463
|
if (picked !== view.marketKey) ask({ ...view, marketKey: picked });
|
|
15463
15464
|
},
|
|
15464
15465
|
children: [
|
|
15465
|
-
|
|
15466
|
-
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)("option", { value:
|
|
15466
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)("option", { value: ALL_MARKETS, children: ui.v8AllMarkets }),
|
|
15467
|
+
marketOptions.map((m) => /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("option", { value: m.key, children: m.usual ? `${ui.v8UsualPrefix}${m.label}` : m.label }, m.key))
|
|
15467
15468
|
]
|
|
15468
15469
|
}
|
|
15469
15470
|
) })
|
|
@@ -15524,7 +15525,7 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
|
|
|
15524
15525
|
)) })
|
|
15525
15526
|
] }) : null,
|
|
15526
15527
|
ready && singles && widenedNote && !empty2 ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("p", { className: "ss-w-v8-builder-note", "data-kind": "widened", children: ui.v8SinglesWidened(marketName) }) : null,
|
|
15527
|
-
ready && !widenedNote && !empty2 && preset.widenedForMarket === true && onOpeningChoice ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("p", { className: "ss-w-v8-builder-note", children: ui.v8Widened }) : null,
|
|
15528
|
+
ready && !widenedNote && !empty2 && preset.widenedForMarket === true && onOpeningChoice && view.marketKey !== null ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("p", { className: "ss-w-v8-builder-note", children: ui.v8Widened }) : null,
|
|
15528
15529
|
startedNote ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("p", { className: "ss-w-v8-builder-note", "data-kind": "started", role: "status", children: ui.slipStarted }) : null,
|
|
15529
15530
|
status2 === "loading" ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("p", { className: "ss-w-v8-builder-note", "data-kind": "loading", children: ui.v8BuilderLoading }) : null,
|
|
15530
15531
|
status2 === "error" ? /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
|