@sensiblestats/widget-react 0.15.0 → 0.16.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 +12 -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 +12 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @sensiblestats/widget-react
|
|
2
2
|
|
|
3
|
+
## 0.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 399d6bf: Label market-floor betting insight cards with a distinct "Market price · not a value pick" pill, so a screenshot of one can never read as a recommendation. Older servers that never send `isMarketFloor` render cards exactly as before.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [399d6bf]
|
|
12
|
+
- @sensiblestats/widget-sdk@0.14.0
|
|
13
|
+
|
|
3
14
|
## 0.15.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -57,6 +57,7 @@ var STRINGS = {
|
|
|
57
57
|
hideStats: "Hide stats",
|
|
58
58
|
oddsLabel: "Odds",
|
|
59
59
|
liveLabel: "Live",
|
|
60
|
+
marketFloorLabel: "Market price \xB7 not a value pick",
|
|
60
61
|
addToSlip: "Add to slip",
|
|
61
62
|
marketPrices: "Market prices",
|
|
62
63
|
moreLines: "More lines",
|
|
@@ -110,6 +111,7 @@ var STRINGS = {
|
|
|
110
111
|
hideStats: "\u0130statistikleri gizle",
|
|
111
112
|
oddsLabel: "Oran",
|
|
112
113
|
liveLabel: "Canl\u0131",
|
|
114
|
+
marketFloorLabel: "Piyasa oran\u0131 \xB7 de\u011Fer bahsi de\u011Fil",
|
|
113
115
|
addToSlip: "Kupona ekle",
|
|
114
116
|
marketPrices: "Piyasa fiyatlar\u0131",
|
|
115
117
|
moreLines: "Di\u011Fer \xE7izgiler",
|
|
@@ -180,6 +182,7 @@ function normalizeUi(cfg) {
|
|
|
180
182
|
hideStats: strings.hideStats,
|
|
181
183
|
oddsLabel: strings.oddsLabel,
|
|
182
184
|
liveLabel: strings.liveLabel,
|
|
185
|
+
marketFloorLabel: strings.marketFloorLabel,
|
|
183
186
|
marketPrices: strings.marketPrices,
|
|
184
187
|
moreLines: strings.moreLines,
|
|
185
188
|
hideLines: strings.hideLines,
|
|
@@ -396,6 +399,7 @@ function toInsightVM(insight) {
|
|
|
396
399
|
matchId: typeof insight.matchId === "number" ? insight.matchId : 0,
|
|
397
400
|
matchOddsId,
|
|
398
401
|
addToSlipEnabled: insight.addToSlipEnabled === true,
|
|
402
|
+
isMarketFloor: insight.isMarketFloor === true,
|
|
399
403
|
oddsDecimal: typeof oddsValue === "number" && Number.isFinite(oddsValue) ? oddsValue : void 0,
|
|
400
404
|
quotedAtUtc: str(insight.odds?.quotedAtUtc),
|
|
401
405
|
previousOdds: previous !== void 0 && direction !== void 0 ? previous.toFixed(2) : void 0,
|
|
@@ -1014,10 +1018,13 @@ function StatsDisclosure({ it, ui }) {
|
|
|
1014
1018
|
function InsightCard({ it, ui, slip }) {
|
|
1015
1019
|
const live = it.isLive || it.phase === "live";
|
|
1016
1020
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "ss-w-binsight", children: [
|
|
1017
|
-
live
|
|
1018
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
+
live || it.isMarketFloor ? /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "ss-w-bi-status", children: [
|
|
1022
|
+
live ? /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "ss-w-bi-live", children: [
|
|
1023
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "ss-w-bi-live-dot", "aria-hidden": "true" }),
|
|
1024
|
+
ui?.liveLabel ?? "Live"
|
|
1025
|
+
] }) : null,
|
|
1026
|
+
it.isMarketFloor ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "ss-w-bi-floor", children: ui?.marketFloorLabel ?? "Market price \xB7 not a value pick" }) : null
|
|
1027
|
+
] }) : null,
|
|
1021
1028
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "ss-w-bi-head", children: [
|
|
1022
1029
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "ss-w-bi-mkt", children: [
|
|
1023
1030
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "ss-w-bi-market", children: it.market }),
|
|
@@ -1647,6 +1654,7 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
|
|
|
1647
1654
|
.ss-w-bi-comp { font-size: 10.5px; color: var(--ss-w-faint); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
1648
1655
|
.ss-w-bi-live { font-size: 8.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #c0392b; border-radius: 4px; padding: 1px 5px; display: inline-flex; align-items: center; gap: 4px; flex: none; }
|
|
1649
1656
|
.ss-w-bi-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
|
|
1657
|
+
.ss-w-bi-floor { font-size: 8.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ss-w-faint); background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); border-radius: 4px; padding: 1px 5px; display: inline-flex; align-items: center; flex: none; }
|
|
1650
1658
|
.ss-w-bi-head { display: flex; align-items: flex-start; gap: 10px; }
|
|
1651
1659
|
.ss-w-bi-mkt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
1652
1660
|
.ss-w-bi-market { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--ss-w-ink); }
|