@sensiblestats/widget-sdk 0.25.0 → 0.25.2

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,17 @@
1
1
  # @sensiblestats/widget-sdk
2
2
 
3
+ ## 0.25.2
4
+
5
+ ### Patch Changes
6
+
7
+ - aed14de: Redesign the club post-match dashboard cards: result card now shows team crests and a big score, goals card shows per-goal icons, stats card renders split comparison bars oriented by venue, and top performer / next fixture cards get a player avatar and next-opponent teaser. Adds crest URLs and numeric stat fields to the widget-sdk post-match types backing these cards.
8
+
9
+ ## 0.25.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 4eed68b: Fix the post-match "Match stats" card rendering each team's stats under the opposite team. The row values are club-first, but the card was always drawing the club value on the left while the result card above renders home-left/away-right — so when the club played away (e.g. Liverpool at Ipswich) the club's stats appeared under the home team. The card now orients by venue via a new `clubIsHome` field, matching the result card.
14
+
3
15
  ## 0.25.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.cts CHANGED
@@ -221,6 +221,9 @@ interface PostMatchResultData {
221
221
  competition?: string | null;
222
222
  kickoffLabel: string;
223
223
  resultLabel: string;
224
+ homeCrestUrl?: string | null;
225
+ awayCrestUrl?: string | null;
226
+ outcome: 'win' | 'draw' | 'loss';
224
227
  }
225
228
  interface PostMatchGoalLine {
226
229
  text: string;
@@ -233,9 +236,14 @@ interface PostMatchStatRow {
233
236
  label: string;
234
237
  clubValue: string;
235
238
  oppValue: string;
239
+ clubNum: number;
240
+ oppNum: number;
236
241
  }
237
242
  interface PostMatchStatsData {
238
243
  rows: PostMatchStatRow[];
244
+ clubIsHome: boolean;
245
+ homeName: string;
246
+ awayName: string;
239
247
  }
240
248
  interface PostMatchTopPerformerData {
241
249
  playerName: string;
package/dist/index.d.ts CHANGED
@@ -221,6 +221,9 @@ interface PostMatchResultData {
221
221
  competition?: string | null;
222
222
  kickoffLabel: string;
223
223
  resultLabel: string;
224
+ homeCrestUrl?: string | null;
225
+ awayCrestUrl?: string | null;
226
+ outcome: 'win' | 'draw' | 'loss';
224
227
  }
225
228
  interface PostMatchGoalLine {
226
229
  text: string;
@@ -233,9 +236,14 @@ interface PostMatchStatRow {
233
236
  label: string;
234
237
  clubValue: string;
235
238
  oppValue: string;
239
+ clubNum: number;
240
+ oppNum: number;
236
241
  }
237
242
  interface PostMatchStatsData {
238
243
  rows: PostMatchStatRow[];
244
+ clubIsHome: boolean;
245
+ homeName: string;
246
+ awayName: string;
239
247
  }
240
248
  interface PostMatchTopPerformerData {
241
249
  playerName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-sdk",
3
- "version": "0.25.0",
3
+ "version": "0.25.2",
4
4
  "description": "Headless browser SDK for the SensibleStats chat widget gateway.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",