@sensiblestats/widget-react 0.165.3 → 0.166.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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # @sensiblestats/widget-react
2
2
 
3
+ ## 0.166.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6ce80c5: Combo card legs carry their sport and player; an NBA, NFL or tennis leg goes to the slip under its own sport.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [6ce80c5]
12
+ - @sensiblestats/widget-sdk@0.122.0
13
+
3
14
  ## 0.165.3
4
15
 
5
16
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1422,7 +1422,7 @@ function parseCustomTotal(text2, format2) {
1422
1422
  }
1423
1423
 
1424
1424
  // src/version.generated.ts
1425
- var WIDGET_REACT_VERSION = "0.165.3";
1425
+ var WIDGET_REACT_VERSION = "0.166.0";
1426
1426
 
1427
1427
  // src/config.ts
1428
1428
  var COLOR_KEYS = ["accent", "cta", "surface", "ink"];
@@ -2317,6 +2317,8 @@ function toComboLegVM(leg) {
2317
2317
  const hasStat = !!insightId && !!statText;
2318
2318
  if (price === void 0 || matchOddsId === void 0 || matchId === void 0 || !home || !away || !selectionLabel) return null;
2319
2319
  const line = str(leg.line);
2320
+ const sport = (0, import_widget_sdk.slipSportOf)(str(leg.sport));
2321
+ const player = str(leg.player);
2320
2322
  const rawFact = leg.fact && typeof leg.fact === "object" ? leg.fact : void 0;
2321
2323
  const direction2 = leg.direction === "over" || leg.direction === "under" ? leg.direction : void 0;
2322
2324
  const fact = rawFact && direction2 && Number.isInteger(rawFact.hits) && Number.isInteger(rawFact.games) && Number.isInteger(rawFact.window) && rawFact.games >= 5 && rawFact.hits >= 0 && rawFact.hits <= rawFact.games && rawFact.games <= rawFact.window ? { hits: rawFact.hits, games: rawFact.games, window: rawFact.window, direction: direction2 } : void 0;
@@ -2341,6 +2343,8 @@ function toComboLegVM(leg) {
2341
2343
  quotedAtUtc: str(leg.quotedAtUtc),
2342
2344
  ...hasStat ? { insightId, statText } : {},
2343
2345
  ...fact ? { fact } : {},
2346
+ ...sport ? { sport } : {},
2347
+ ...player ? { player } : {},
2344
2348
  pinEnabled: leg.pinEnabled === true
2345
2349
  };
2346
2350
  }