@sensiblestats/widget-react 0.118.2 → 0.118.4
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 +12 -0
- package/dist/index.cjs +9 -8
- 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 +9 -8
- package/dist/index.js.map +1 -1
- package/dist/styles.css +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @sensiblestats/widget-react
|
|
2
2
|
|
|
3
|
+
## 0.118.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- NBA Following card: Form & rest sits above Moneyline instead of under Total.
|
|
8
|
+
|
|
9
|
+
## 0.118.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Smart Acca: All markets is the first market option and opens by default, unless the visitor has a usual market.
|
|
14
|
+
|
|
3
15
|
## 0.118.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
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.4";
|
|
1570
1570
|
|
|
1571
1571
|
// src/config.ts
|
|
1572
1572
|
function normalizeUi(cfg) {
|
|
@@ -10850,8 +10850,8 @@ function NbaMonitorCard({ match, monitor, ui, slip }) {
|
|
|
10850
10850
|
] }, t.key) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", {}, t.key)) })
|
|
10851
10851
|
] })
|
|
10852
10852
|
] }),
|
|
10853
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(MarketAccordion, { match, monitor, ui, slip }),
|
|
10854
10853
|
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(NbaFormSection, { match, monitor, ui }, `form-${match.matchId}`),
|
|
10854
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(MarketAccordion, { match, monitor, ui, slip }),
|
|
10855
10855
|
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(NbaPropsSection, { match, monitor, ui, slip }, match.matchId)
|
|
10856
10856
|
] });
|
|
10857
10857
|
}
|
|
@@ -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: [
|
|
@@ -18442,8 +18443,8 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
|
|
|
18442
18443
|
.ss-w-nbaform-chip--dark { background: var(--ss-w-nav); color: #fff; }
|
|
18443
18444
|
.ss-w-nbaform-chip--light { background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); }
|
|
18444
18445
|
.ss-w-nbaform-section { min-width: 0; }
|
|
18445
|
-
/* Sits right
|
|
18446
|
-
.ss-w-
|
|
18446
|
+
/* Sits right before the market accordion: match its 6px row gap, not the card's 10px. */
|
|
18447
|
+
.ss-w-nbaform-section + .ss-w-acc { margin-top: -4px; }
|
|
18447
18448
|
.ss-w-nbaform-sum { margin-left: auto; flex: none; font-size: 11px; font-weight: 700; color: var(--ss-w-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
18448
18449
|
.ss-w-nbaform-body { gap: 6px; min-width: 0; }
|
|
18449
18450
|
.ss-w-nbaform-seg--1 { grid-template-columns: minmax(0, 1fr); }
|