@sensiblestats/widget-react 0.118.1 → 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/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.1";
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
- marketKey: preset.marketKey,
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
- marketOptions.map((m) => /* @__PURE__ */ jsx127("option", { value: m.key, children: m.usual ? `${ui.v8UsualPrefix}${m.label}` : m.label }, m.key)),
15428
- /* @__PURE__ */ jsx127("option", { value: ALL_MARKETS, children: ui.v8AllMarkets })
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: [
@@ -18404,6 +18405,8 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
18404
18405
  .ss-w-nbaform-chip--dark { background: var(--ss-w-nav); color: #fff; }
18405
18406
  .ss-w-nbaform-chip--light { background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); }
18406
18407
  .ss-w-nbaform-section { min-width: 0; }
18408
+ /* Sits right after the market accordion: match its 6px row gap, not the card's 10px. */
18409
+ .ss-w-acc + .ss-w-nbaform-section { margin-top: -4px; }
18407
18410
  .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; }
18408
18411
  .ss-w-nbaform-body { gap: 6px; min-width: 0; }
18409
18412
  .ss-w-nbaform-seg--1 { grid-template-columns: minmax(0, 1fr); }