@sensiblestats/widget-sdk 0.30.0 → 0.31.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,19 @@
1
1
  # @sensiblestats/widget-sdk
2
2
 
3
+ ## 0.31.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Betting cards (insight, market-odds, odds-movement) now render a server-supplied `kickoffLabel`
8
+ in the operator's timezone and language when present, falling back to browser-zone formatting of
9
+ `kickoffUtc` for older servers.
10
+
11
+ ## 0.30.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Greeting dashboard tiles can now carry an opaque `actionRef`: when the server binds a tile to a tool, a tap forwards the ref (resolved server-side, skipping the LLM planning turn) and `actionValue` stays as the fallback. Adds `actionRef` to `GreetingDashboardTile`; `MessageList` forwards it on tap when present.
16
+
3
17
  ## 0.30.0
4
18
 
5
19
  ### Minor Changes
package/dist/index.d.cts CHANGED
@@ -80,6 +80,7 @@ interface GreetingDashboardTile {
80
80
  badgeText?: string | null;
81
81
  imageUrls?: string[] | null;
82
82
  actionValue: string;
83
+ actionRef?: string | null;
83
84
  signal: GreetingDashboardSignalRef;
84
85
  }
85
86
  interface GreetingDashboard {
@@ -452,6 +453,8 @@ interface BettingInsight {
452
453
  kickoffUtc?: string;
453
454
  isMarketFloor?: boolean;
454
455
  pinEnabled?: boolean;
456
+ /** Server-rendered kickoff chip in the operator's zone + language (e.g. "Today 19:00"). Prefer over local formatting of kickoffUtc. */
457
+ kickoffLabel?: string | null;
455
458
  [key: string]: unknown;
456
459
  }
457
460
  interface BettingInsightEventData {
@@ -490,6 +493,8 @@ interface MarketOddsCard {
490
493
  homeTeamImagePath?: string | null;
491
494
  awayTeamImagePath?: string | null;
492
495
  competitionImagePath?: string | null;
496
+ /** Server-rendered kickoff chip in the operator's zone + language. Prefer over local formatting of kickoffUtc. */
497
+ kickoffLabel?: string | null;
493
498
  [key: string]: unknown;
494
499
  }
495
500
  interface MarketOddsEventData {
@@ -535,6 +540,8 @@ interface OddsMovementCard {
535
540
  isSuspended?: boolean;
536
541
  pinEnabled?: boolean;
537
542
  matchOddsId?: number | null;
543
+ /** Server-rendered kickoff chip in the operator's zone + language. Prefer over local formatting of kickoffUtc. */
544
+ kickoffLabel?: string | null;
538
545
  [key: string]: unknown;
539
546
  }
540
547
  interface OddsMovementEventData {
package/dist/index.d.ts CHANGED
@@ -80,6 +80,7 @@ interface GreetingDashboardTile {
80
80
  badgeText?: string | null;
81
81
  imageUrls?: string[] | null;
82
82
  actionValue: string;
83
+ actionRef?: string | null;
83
84
  signal: GreetingDashboardSignalRef;
84
85
  }
85
86
  interface GreetingDashboard {
@@ -452,6 +453,8 @@ interface BettingInsight {
452
453
  kickoffUtc?: string;
453
454
  isMarketFloor?: boolean;
454
455
  pinEnabled?: boolean;
456
+ /** Server-rendered kickoff chip in the operator's zone + language (e.g. "Today 19:00"). Prefer over local formatting of kickoffUtc. */
457
+ kickoffLabel?: string | null;
455
458
  [key: string]: unknown;
456
459
  }
457
460
  interface BettingInsightEventData {
@@ -490,6 +493,8 @@ interface MarketOddsCard {
490
493
  homeTeamImagePath?: string | null;
491
494
  awayTeamImagePath?: string | null;
492
495
  competitionImagePath?: string | null;
496
+ /** Server-rendered kickoff chip in the operator's zone + language. Prefer over local formatting of kickoffUtc. */
497
+ kickoffLabel?: string | null;
493
498
  [key: string]: unknown;
494
499
  }
495
500
  interface MarketOddsEventData {
@@ -535,6 +540,8 @@ interface OddsMovementCard {
535
540
  isSuspended?: boolean;
536
541
  pinEnabled?: boolean;
537
542
  matchOddsId?: number | null;
543
+ /** Server-rendered kickoff chip in the operator's zone + language. Prefer over local formatting of kickoffUtc. */
544
+ kickoffLabel?: string | null;
538
545
  [key: string]: unknown;
539
546
  }
540
547
  interface OddsMovementEventData {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-sdk",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "description": "Headless browser SDK for the SensibleStats chat widget gateway.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",