@sensiblestats/widget-react 0.107.0 → 0.107.2
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 +13 -0
- package/README.md +3 -1
- package/dist/index.cjs +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @sensiblestats/widget-react
|
|
2
2
|
|
|
3
|
+
## 0.107.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @sensiblestats/widget-sdk@0.74.1
|
|
9
|
+
|
|
10
|
+
## 0.107.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Live match stat bars fill the whole width, with no grey gap between home and away.
|
|
15
|
+
|
|
3
16
|
## 0.107.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -35,7 +35,9 @@ Common `config` fields:
|
|
|
35
35
|
- `baseUrl` — the widget gateway URL.
|
|
36
36
|
- `locale` — `'en'` or `'tr'` for the widget's own chrome text.
|
|
37
37
|
- `userContext` — `{ operatorUserId, defaultLanguage }` to tie the conversation
|
|
38
|
-
and personalization to your signed-in user.
|
|
38
|
+
and personalization to your signed-in user. `operatorUserId` travels from the
|
|
39
|
+
browser, so make it a random, non-guessable value you map to the user on your
|
|
40
|
+
side (a UUID works): never an account number, email, username or sequential id.
|
|
39
41
|
- White-label branding — `logoUrl`, `headerTitle`, `accent`, `cta`, `surface`,
|
|
40
42
|
`ink`. Absent → the default SensibleStats look.
|
|
41
43
|
- `page` — the page the widget sits on, `{ sport, kind?, matchId?, competitionId? }`, so the
|
package/dist/index.cjs
CHANGED
|
@@ -1288,7 +1288,7 @@ function isEnglishLocale(locale) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
|
|
1290
1290
|
// src/version.generated.ts
|
|
1291
|
-
var WIDGET_REACT_VERSION = "0.107.
|
|
1291
|
+
var WIDGET_REACT_VERSION = "0.107.2";
|
|
1292
1292
|
|
|
1293
1293
|
// src/config.ts
|
|
1294
1294
|
function normalizeUi(cfg) {
|
|
@@ -8278,9 +8278,7 @@ function MonitorMatchCard({ match, promotedPins, monitor, ui, slip, onAsk }) {
|
|
|
8278
8278
|
] }),
|
|
8279
8279
|
live && match.facts && match.facts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(LiveFactBlock, { facts: match.facts, matchId: match.matchId, ui, slip, onAsk }),
|
|
8280
8280
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "ss-w-mon-stats", children: orderedRows.map((row) => {
|
|
8281
|
-
const
|
|
8282
|
-
const homePct = total > 0 ? row.homeNum / total * 75 : 0;
|
|
8283
|
-
const awayPct = total > 0 ? row.awayNum / total * 75 : 0;
|
|
8281
|
+
const { home, away } = splitWidths2(row.homeNum, row.awayNum);
|
|
8284
8282
|
const promoted = isPromoted(row, promotedPins);
|
|
8285
8283
|
const selection = chipSelection(row.market, match.matchId, slip.conversationId);
|
|
8286
8284
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: promoted ? "ss-w-mon-stat ss-w-mon-pstrip" : "ss-w-mon-stat", children: [
|
|
@@ -8290,8 +8288,8 @@ function MonitorMatchCard({ match, promotedPins, monitor, ui, slip, onAsk }) {
|
|
|
8290
8288
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "ss-w-mon-stat-v ss-w-mon-stat-v--away", children: row.awayValue })
|
|
8291
8289
|
] }),
|
|
8292
8290
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "ss-w-mon-bar", children: [
|
|
8293
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("b", { className: "ss-w-mon-bar-home", style: { width:
|
|
8294
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("i", { className: "ss-w-mon-bar-away", style: { width:
|
|
8291
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("b", { className: "ss-w-mon-bar-home", style: { width: home } }),
|
|
8292
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("i", { className: "ss-w-mon-bar-away", style: { width: away } })
|
|
8295
8293
|
] }),
|
|
8296
8294
|
row.market && !row.market.isSuspended && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: promoted ? "ss-w-mon-stat-mkt ss-w-mon-mkt" : "ss-w-mon-stat-mkt", children: [
|
|
8297
8295
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { children: [
|