@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/dist/index.js
CHANGED
|
@@ -1528,7 +1528,7 @@ function parseOddsFormat(value) {
|
|
|
1528
1528
|
}
|
|
1529
1529
|
|
|
1530
1530
|
// src/version.generated.ts
|
|
1531
|
-
var WIDGET_REACT_VERSION = "0.118.
|
|
1531
|
+
var WIDGET_REACT_VERSION = "0.118.3";
|
|
1532
1532
|
|
|
1533
1533
|
// src/config.ts
|
|
1534
1534
|
function normalizeUi(cfg) {
|
|
@@ -15315,7 +15315,8 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
|
|
|
15315
15315
|
const openingView = {
|
|
15316
15316
|
legs: preset.legs,
|
|
15317
15317
|
total: asTotal(preset.totalTarget, totals),
|
|
15318
|
-
|
|
15318
|
+
// All markets opens unless the visitor has a usual market, which is never beaten.
|
|
15319
|
+
marketKey: marketOptions && !marketOptions.some((m) => m.usual) ? null : preset.marketKey,
|
|
15319
15320
|
gamesId: opening.option?.id ?? null,
|
|
15320
15321
|
matchIds: opening.option ? opening.option.matchIds : preset.matchIds,
|
|
15321
15322
|
// The server never widens by itself: an all-games preset with no ids asks for it.
|
|
@@ -15424,8 +15425,8 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
|
|
|
15424
15425
|
if (picked !== view.marketKey) ask({ ...view, marketKey: picked });
|
|
15425
15426
|
},
|
|
15426
15427
|
children: [
|
|
15427
|
-
|
|
15428
|
-
/* @__PURE__ */ jsx127("option", { value:
|
|
15428
|
+
/* @__PURE__ */ jsx127("option", { value: ALL_MARKETS, children: ui.v8AllMarkets }),
|
|
15429
|
+
marketOptions.map((m) => /* @__PURE__ */ jsx127("option", { value: m.key, children: m.usual ? `${ui.v8UsualPrefix}${m.label}` : m.label }, m.key))
|
|
15429
15430
|
]
|
|
15430
15431
|
}
|
|
15431
15432
|
) })
|
|
@@ -15486,7 +15487,7 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
|
|
|
15486
15487
|
)) })
|
|
15487
15488
|
] }) : null,
|
|
15488
15489
|
ready && singles && widenedNote && !empty2 ? /* @__PURE__ */ jsx127("p", { className: "ss-w-v8-builder-note", "data-kind": "widened", children: ui.v8SinglesWidened(marketName) }) : null,
|
|
15489
|
-
ready && !widenedNote && !empty2 && preset.widenedForMarket === true && onOpeningChoice ? /* @__PURE__ */ jsx127("p", { className: "ss-w-v8-builder-note", children: ui.v8Widened }) : null,
|
|
15490
|
+
ready && !widenedNote && !empty2 && preset.widenedForMarket === true && onOpeningChoice && view.marketKey !== null ? /* @__PURE__ */ jsx127("p", { className: "ss-w-v8-builder-note", children: ui.v8Widened }) : null,
|
|
15490
15491
|
startedNote ? /* @__PURE__ */ jsx127("p", { className: "ss-w-v8-builder-note", "data-kind": "started", role: "status", children: ui.slipStarted }) : null,
|
|
15491
15492
|
status2 === "loading" ? /* @__PURE__ */ jsx127("p", { className: "ss-w-v8-builder-note", "data-kind": "loading", children: ui.v8BuilderLoading }) : null,
|
|
15492
15493
|
status2 === "error" ? /* @__PURE__ */ jsxs113(Fragment36, { children: [
|