@sensiblestats/widget-react 0.33.0 → 0.33.1
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 +6 -0
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @sensiblestats/widget-react
|
|
2
2
|
|
|
3
|
+
## 0.33.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c60b673: Club widget now swaps the live dashboard for the post-match dashboard when a match ends, instead of leaving the last live card frozen on screen.
|
|
8
|
+
|
|
3
9
|
## 0.33.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -787,6 +787,9 @@ function useLiveDashboardPoll({ messages, dispatch, getLiveDashboard }) {
|
|
|
787
787
|
} else {
|
|
788
788
|
dispatch({ kind: "LIVE_REFRESH", messageId: current.messageId, cards: payload.cards, greeting: payload.greeting });
|
|
789
789
|
}
|
|
790
|
+
} else if (payload?.phase === "postMatch" && current.kind === "live") {
|
|
791
|
+
dispatch({ kind: "LIVE_TRANSITION", messageId: current.messageId, dashboard: payload });
|
|
792
|
+
window.clearInterval(id);
|
|
790
793
|
} else {
|
|
791
794
|
if (current.kind === "live") {
|
|
792
795
|
window.clearInterval(id);
|