@sensiblestats/widget-react 0.163.0 → 0.164.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 +11 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @sensiblestats/widget-react
|
|
2
2
|
|
|
3
|
+
## 0.164.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Send the visitor ids with the live monitor request, as headers.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @sensiblestats/widget-sdk@0.120.0
|
|
13
|
+
|
|
3
14
|
## 0.163.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1422,7 +1422,7 @@ function parseCustomTotal(text2, format2) {
|
|
|
1422
1422
|
}
|
|
1423
1423
|
|
|
1424
1424
|
// src/version.generated.ts
|
|
1425
|
-
var WIDGET_REACT_VERSION = "0.
|
|
1425
|
+
var WIDGET_REACT_VERSION = "0.164.0";
|
|
1426
1426
|
|
|
1427
1427
|
// src/config.ts
|
|
1428
1428
|
var COLOR_KEYS = ["accent", "cta", "surface", "ink"];
|
|
@@ -23763,8 +23763,10 @@ function StatsWidgetBody(props) {
|
|
|
23763
23763
|
}, [controller.state.messages]);
|
|
23764
23764
|
const requestTag = hostTag(cfg);
|
|
23765
23765
|
const clubFixturesResult = useClubFixtures(built?.conversation ?? null);
|
|
23766
|
+
const operatorUserId = cfg?.userContext?.operatorUserId;
|
|
23767
|
+
const anonymousUserId = cfg?.userContext?.anonymousUserId;
|
|
23766
23768
|
const monitor = useLiveMonitor({
|
|
23767
|
-
getLiveMonitor: (pins) => built ? built.conversation.getLiveMonitor(pins, requestTag) : Promise.resolve(null),
|
|
23769
|
+
getLiveMonitor: (pins) => built ? built.conversation.getLiveMonitor(pins, requestTag, operatorUserId, anonymousUserId) : Promise.resolve(null),
|
|
23768
23770
|
getMarketOdds: (matchId, dev, sport) => built ? built.conversation.getMarketOdds(matchId, dev, sport) : Promise.resolve(null),
|
|
23769
23771
|
getPlayerProps: (matchId, sport) => built ? built.conversation.getPlayerProps(matchId, sport, requestTag) : Promise.resolve(null),
|
|
23770
23772
|
storageKey: `ss-w-pins:${cfg?.operatorId ?? ""}:${cfg?.userContext?.operatorUserId ?? "anon"}`,
|
|
@@ -23773,8 +23775,6 @@ function StatsWidgetBody(props) {
|
|
|
23773
23775
|
clubEnabled: clubFixturesResult.enabled,
|
|
23774
23776
|
record: record2
|
|
23775
23777
|
});
|
|
23776
|
-
const operatorUserId = cfg?.userContext?.operatorUserId;
|
|
23777
|
-
const anonymousUserId = cfg?.userContext?.anonymousUserId;
|
|
23778
23778
|
const getSchedule = (0, import_react131.useCallback)(
|
|
23779
23779
|
(localDate, utcOffsetMinutes) => built ? built.conversation.getSchedule(localDate, utcOffsetMinutes, operatorUserId, anonymousUserId) : Promise.resolve(null),
|
|
23780
23780
|
[built, operatorUserId, anonymousUserId]
|