@sensiblestats/widget-sdk 0.41.0 → 0.42.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,10 +1,16 @@
1
1
  # @sensiblestats/widget-sdk
2
2
 
3
+ ## 0.42.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Match odds card, stage 3: a price card the server sends for the market the user bets on carries `tag: "your_market"`, and the card shows a "Your market" / "İlgilendiğin bahis" label on its market line. A card with no tag or an unknown tag shows no label.
8
+
3
9
  ## 0.41.0
4
10
 
5
11
  ### Minor Changes
6
12
 
7
- - Match odds card, stage 2: a price card draws its stat above the rows; a price that moved opens its history in the Odds tab instead of an odds pin; three or more price cards of one turn, one per fixture, draw as one compact list.
13
+ - `MarketOddsCard` gains an optional `insight` (`{ insightId, ruleId, text }`), the stat a price card draws above its rows, and the barrel exports its type, `MarketOddsCardInsight`. A server that sends no `insight` gives the card as before.
8
14
 
9
15
  ## 0.40.0
10
16
 
package/dist/index.d.cts CHANGED
@@ -493,6 +493,8 @@ interface MarketOddsCard {
493
493
  kickoffLabel?: string | null;
494
494
  /** The strongest stat for this card's market and fixture, already in the turn's language. */
495
495
  insight?: MarketOddsCardInsight | null;
496
+ /** Why the server sent this card unasked: `your_market` for the market the user bets on. */
497
+ tag?: string | null;
496
498
  [key: string]: unknown;
497
499
  }
498
500
  interface MarketOddsCardInsight {
package/dist/index.d.ts CHANGED
@@ -493,6 +493,8 @@ interface MarketOddsCard {
493
493
  kickoffLabel?: string | null;
494
494
  /** The strongest stat for this card's market and fixture, already in the turn's language. */
495
495
  insight?: MarketOddsCardInsight | null;
496
+ /** Why the server sent this card unasked: `your_market` for the market the user bets on. */
497
+ tag?: string | null;
496
498
  [key: string]: unknown;
497
499
  }
498
500
  interface MarketOddsCardInsight {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-sdk",
3
- "version": "0.41.0",
3
+ "version": "0.42.0",
4
4
  "description": "Headless browser SDK for the SensibleStats chat widget gateway.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",