@sensiblestats/widget-sdk 0.30.1 → 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,13 @@
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
+
3
11
  ## 0.30.1
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -453,6 +453,8 @@ interface BettingInsight {
453
453
  kickoffUtc?: string;
454
454
  isMarketFloor?: boolean;
455
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;
456
458
  [key: string]: unknown;
457
459
  }
458
460
  interface BettingInsightEventData {
@@ -491,6 +493,8 @@ interface MarketOddsCard {
491
493
  homeTeamImagePath?: string | null;
492
494
  awayTeamImagePath?: string | null;
493
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;
494
498
  [key: string]: unknown;
495
499
  }
496
500
  interface MarketOddsEventData {
@@ -536,6 +540,8 @@ interface OddsMovementCard {
536
540
  isSuspended?: boolean;
537
541
  pinEnabled?: boolean;
538
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;
539
545
  [key: string]: unknown;
540
546
  }
541
547
  interface OddsMovementEventData {
package/dist/index.d.ts CHANGED
@@ -453,6 +453,8 @@ interface BettingInsight {
453
453
  kickoffUtc?: string;
454
454
  isMarketFloor?: boolean;
455
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;
456
458
  [key: string]: unknown;
457
459
  }
458
460
  interface BettingInsightEventData {
@@ -491,6 +493,8 @@ interface MarketOddsCard {
491
493
  homeTeamImagePath?: string | null;
492
494
  awayTeamImagePath?: string | null;
493
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;
494
498
  [key: string]: unknown;
495
499
  }
496
500
  interface MarketOddsEventData {
@@ -536,6 +540,8 @@ interface OddsMovementCard {
536
540
  isSuspended?: boolean;
537
541
  pinEnabled?: boolean;
538
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;
539
545
  [key: string]: unknown;
540
546
  }
541
547
  interface OddsMovementEventData {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-sdk",
3
- "version": "0.30.1",
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",