@sensiblestats/widget-react 0.122.0 → 0.122.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 +8 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @sensiblestats/widget-react
|
|
2
2
|
|
|
3
|
+
## 0.122.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Ask for live match states in the host language: `getStates` and `postStates` take an optional locale, and the widget passes its host language.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @sensiblestats/widget-sdk@0.86.1
|
|
10
|
+
|
|
3
11
|
## 0.122.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1186,7 +1186,7 @@ function parseOddsFormat(value) {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
|
|
1188
1188
|
// src/version.generated.ts
|
|
1189
|
-
var WIDGET_REACT_VERSION = "0.122.
|
|
1189
|
+
var WIDGET_REACT_VERSION = "0.122.1";
|
|
1190
1190
|
|
|
1191
1191
|
// src/config.ts
|
|
1192
1192
|
function hostTag(cfg) {
|
|
@@ -19320,8 +19320,8 @@ function StatsWidget(props) {
|
|
|
19320
19320
|
[built, operatorUserId, anonymousUserId]
|
|
19321
19321
|
);
|
|
19322
19322
|
const getStates = (0, import_react99.useCallback)(
|
|
19323
|
-
(matchIds, nbaGameIds, nflGameIds) => built ? built.conversation.getStates(matchIds, nbaGameIds, nflGameIds) : Promise.resolve(null),
|
|
19324
|
-
[built]
|
|
19323
|
+
(matchIds, nbaGameIds, nflGameIds) => built ? built.conversation.getStates(matchIds, nbaGameIds, nflGameIds, requestTag) : Promise.resolve(null),
|
|
19324
|
+
[built, requestTag]
|
|
19325
19325
|
);
|
|
19326
19326
|
const pinnedMatchIds = (0, import_react99.useMemo)(
|
|
19327
19327
|
() => footballMatchPinIds(monitor.pins),
|