@sensiblestats/widget-embed 0.27.0 → 0.29.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 +51 -0
- package/dist/embed.global.js +121 -58
- package/dist/embed.global.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
1
1
|
# @sensiblestats/widget-embed
|
|
2
2
|
|
|
3
|
+
## 0.29.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f3f845c: Auto-transition the club fan dashboard from preMatch to live without a reload.
|
|
8
|
+
|
|
9
|
+
Widget SDK: mirror the live dashboard's server contracts — `LiveScoreData` gains
|
|
10
|
+
`minute`/`clockRunning`/crest URLs, `LiveEventLine` gains a typed `minute`/`type`/`side`
|
|
11
|
+
(plus optional `player`/`playerOff`), `LiveStatRow` gains numeric `clubNum`/`oppNum`,
|
|
12
|
+
and `LiveStatsData` gains a typed `momentum: MomentumPoint[]` series plus a
|
|
13
|
+
`clubIsHome`/`homeName`/`awayName` venue signal (mirroring the existing `ClubIsHome`
|
|
14
|
+
pattern on `RestingNextData`/`PostMatchNextData`).
|
|
15
|
+
|
|
16
|
+
Widget React: adds a `useLiveClock` hook that ticks the displayed live minute forward
|
|
17
|
+
once per real minute between 60s polls, so the clock doesn't look frozen. The tick is
|
|
18
|
+
capped at minute+15 so a stuck `clockRunning:true` (no live→postMatch transition landed)
|
|
19
|
+
holds instead of climbing past stoppage time.
|
|
20
|
+
|
|
21
|
+
Widget React: redesigns the live score card — team crests (falling back to a coloured
|
|
22
|
+
initials chip when a crest URL is missing or fails to load), a pulsing Live pill wired
|
|
23
|
+
to the ticking clock, and a scorers line derived from the timeline's goal events.
|
|
24
|
+
Introduces the shared `--ss-w-home`/`--ss-w-away`/`--ss-w-track` colour tokens the
|
|
25
|
+
timeline and stats cards will also use.
|
|
26
|
+
|
|
27
|
+
Widget React: redesigns the live events timeline into a compact two-sided view — each
|
|
28
|
+
club's events sit on their own side of a centre spine, most-recent 3 shown with a "See
|
|
29
|
+
more" toggle for the rest. Goals get a bold name and an accented minute badge, yellow/red
|
|
30
|
+
cards get a coloured card mark, substitutions show both players, and unrecognised event
|
|
31
|
+
types fall back to a neutral dot instead of breaking.
|
|
32
|
+
|
|
33
|
+
Widget React: redesigns the live stats card — every row is now a home/away split bar
|
|
34
|
+
(guarded against a 0/0 stat, which renders an even split rather than a NaN width) plus
|
|
35
|
+
a new `MomentumWave` component that plots the per-minute momentum series as a filled
|
|
36
|
+
area wave with a dashed baseline and a "now" dot, falling back to the plain-text
|
|
37
|
+
momentum label when no series is available. Both the split bars and the wave now
|
|
38
|
+
colour by VENUE (`--ss-w-home`/`--ss-w-away`, keyed off the new `clubIsHome` field) so
|
|
39
|
+
the same team reads as the same colour across the score, timeline, and stats cards —
|
|
40
|
+
club-positive momentum fills with the club's own venue colour rather than always
|
|
41
|
+
painting the club as "home". The colour legend uses the real home/away team names.
|
|
42
|
+
|
|
43
|
+
Widget React: the 60s live poll now refreshes the dashboard's greeting/lead line
|
|
44
|
+
alongside its cards, so it no longer goes stale (e.g. reading "0–0" while the score
|
|
45
|
+
card already shows "0–2"). A poll response without a greeting leaves the existing
|
|
46
|
+
one in place rather than clearing it.
|
|
47
|
+
|
|
48
|
+
## 0.28.0
|
|
49
|
+
|
|
50
|
+
### Minor Changes
|
|
51
|
+
|
|
52
|
+
- Betting-insight card redesigned to one action line: the fixture (team pair, or prose string, else competition) becomes the header hero, the competition and kickoff demote to the header-right meta, and market · selection · odds · Add-to-slip render together on a single action row.
|
|
53
|
+
|
|
3
54
|
## 0.27.0
|
|
4
55
|
|
|
5
56
|
### Minor Changes
|