@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/dist/index.js
CHANGED
|
@@ -1383,7 +1383,7 @@ function parseCustomTotal(text2, format2) {
|
|
|
1383
1383
|
}
|
|
1384
1384
|
|
|
1385
1385
|
// src/version.generated.ts
|
|
1386
|
-
var WIDGET_REACT_VERSION = "0.
|
|
1386
|
+
var WIDGET_REACT_VERSION = "0.164.0";
|
|
1387
1387
|
|
|
1388
1388
|
// src/config.ts
|
|
1389
1389
|
var COLOR_KEYS = ["accent", "cta", "surface", "ink"];
|
|
@@ -23724,8 +23724,10 @@ function StatsWidgetBody(props) {
|
|
|
23724
23724
|
}, [controller.state.messages]);
|
|
23725
23725
|
const requestTag = hostTag(cfg);
|
|
23726
23726
|
const clubFixturesResult = useClubFixtures(built?.conversation ?? null);
|
|
23727
|
+
const operatorUserId = cfg?.userContext?.operatorUserId;
|
|
23728
|
+
const anonymousUserId = cfg?.userContext?.anonymousUserId;
|
|
23727
23729
|
const monitor = useLiveMonitor({
|
|
23728
|
-
getLiveMonitor: (pins) => built ? built.conversation.getLiveMonitor(pins, requestTag) : Promise.resolve(null),
|
|
23730
|
+
getLiveMonitor: (pins) => built ? built.conversation.getLiveMonitor(pins, requestTag, operatorUserId, anonymousUserId) : Promise.resolve(null),
|
|
23729
23731
|
getMarketOdds: (matchId, dev, sport) => built ? built.conversation.getMarketOdds(matchId, dev, sport) : Promise.resolve(null),
|
|
23730
23732
|
getPlayerProps: (matchId, sport) => built ? built.conversation.getPlayerProps(matchId, sport, requestTag) : Promise.resolve(null),
|
|
23731
23733
|
storageKey: `ss-w-pins:${cfg?.operatorId ?? ""}:${cfg?.userContext?.operatorUserId ?? "anon"}`,
|
|
@@ -23734,8 +23736,6 @@ function StatsWidgetBody(props) {
|
|
|
23734
23736
|
clubEnabled: clubFixturesResult.enabled,
|
|
23735
23737
|
record: record2
|
|
23736
23738
|
});
|
|
23737
|
-
const operatorUserId = cfg?.userContext?.operatorUserId;
|
|
23738
|
-
const anonymousUserId = cfg?.userContext?.anonymousUserId;
|
|
23739
23739
|
const getSchedule = useCallback32(
|
|
23740
23740
|
(localDate, utcOffsetMinutes) => built ? built.conversation.getSchedule(localDate, utcOffsetMinutes, operatorUserId, anonymousUserId) : Promise.resolve(null),
|
|
23741
23741
|
[built, operatorUserId, anonymousUserId]
|