@sensiblestats/widget-react 0.113.0 → 0.114.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 +12 -0
- package/dist/index.cjs +26 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +26 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -62,7 +62,7 @@ var STRINGS = {
|
|
|
62
62
|
fullTime: "Full time"
|
|
63
63
|
},
|
|
64
64
|
yourMarketTag: "Your market",
|
|
65
|
-
marketFloorLabel: "Market price
|
|
65
|
+
marketFloorLabel: "Market price",
|
|
66
66
|
addToSlip: "Add to slip",
|
|
67
67
|
marketPrices: "Market prices",
|
|
68
68
|
moreLines: "More lines",
|
|
@@ -323,6 +323,7 @@ var STRINGS = {
|
|
|
323
323
|
v8Draws: (n) => n === 1 ? "draw" : "draws",
|
|
324
324
|
v8MarketAria: "Market",
|
|
325
325
|
v8GamesAria: "Games",
|
|
326
|
+
v8AllMarkets: "All markets",
|
|
326
327
|
v8UsualPrefix: "\u2605 Your usual: ",
|
|
327
328
|
v8LeaguesGroup: "Leagues",
|
|
328
329
|
v8GamesGroup: "Games",
|
|
@@ -742,7 +743,7 @@ var STRINGS = {
|
|
|
742
743
|
fullTime: "Ma\xE7 bitti"
|
|
743
744
|
},
|
|
744
745
|
yourMarketTag: "\u0130lgilendi\u011Fin bahis",
|
|
745
|
-
marketFloorLabel: "Piyasa oran\u0131
|
|
746
|
+
marketFloorLabel: "Piyasa oran\u0131",
|
|
746
747
|
addToSlip: "Kupona ekle",
|
|
747
748
|
marketPrices: "Piyasa oranlar\u0131",
|
|
748
749
|
moreLines: "Di\u011Fer \xE7izgiler",
|
|
@@ -1003,6 +1004,7 @@ var STRINGS = {
|
|
|
1003
1004
|
v8Draws: () => "beraberlik",
|
|
1004
1005
|
v8MarketAria: "Market",
|
|
1005
1006
|
v8GamesAria: "Ma\xE7lar",
|
|
1007
|
+
v8AllMarkets: "T\xFCm marketler",
|
|
1006
1008
|
v8UsualPrefix: "\u2605 Her zamanki: ",
|
|
1007
1009
|
v8LeaguesGroup: "Ligler",
|
|
1008
1010
|
v8GamesGroup: "Ma\xE7lar",
|
|
@@ -1439,7 +1441,7 @@ function parseOddsFormat(value) {
|
|
|
1439
1441
|
}
|
|
1440
1442
|
|
|
1441
1443
|
// src/version.generated.ts
|
|
1442
|
-
var WIDGET_REACT_VERSION = "0.
|
|
1444
|
+
var WIDGET_REACT_VERSION = "0.114.1";
|
|
1443
1445
|
|
|
1444
1446
|
// src/config.ts
|
|
1445
1447
|
function normalizeUi(cfg) {
|
|
@@ -1726,6 +1728,7 @@ function normalizeUi(cfg) {
|
|
|
1726
1728
|
v8Meetings: strings.v8Meetings,
|
|
1727
1729
|
v8Draws: strings.v8Draws,
|
|
1728
1730
|
v8MarketAria: strings.v8MarketAria,
|
|
1731
|
+
v8AllMarkets: strings.v8AllMarkets,
|
|
1729
1732
|
v8GamesAria: strings.v8GamesAria,
|
|
1730
1733
|
v8UsualPrefix: strings.v8UsualPrefix,
|
|
1731
1734
|
v8LeaguesGroup: strings.v8LeaguesGroup,
|
|
@@ -7464,7 +7467,7 @@ function InsightCard({ it, ui, slip, monitor }) {
|
|
|
7464
7467
|
/* @__PURE__ */ jsx33(AddToSlipButton, { it, slip, ui })
|
|
7465
7468
|
] })
|
|
7466
7469
|
] }),
|
|
7467
|
-
it.isMarketFloor ? /* @__PURE__ */ jsx33("span", { className: "ss-w-bi-floor", children: ui?.marketFloorLabel ?? "Market price
|
|
7470
|
+
it.isMarketFloor ? /* @__PURE__ */ jsx33("span", { className: "ss-w-bi-floor", children: ui?.marketFloorLabel ?? "Market price" }) : null,
|
|
7468
7471
|
/* @__PURE__ */ jsx33(ReasonStrip, { it }),
|
|
7469
7472
|
it.disclaimer ? /* @__PURE__ */ jsx33("p", { className: "ss-w-bi-disc", children: it.disclaimer }) : null
|
|
7470
7473
|
] });
|
|
@@ -14895,6 +14898,7 @@ function openingGames(preset) {
|
|
|
14895
14898
|
const option = options.find((o) => o.id === preset.gamesOptionId) ?? options.find((o) => sameIds(o.matchIds, preset.matchIds)) ?? null;
|
|
14896
14899
|
return option ? { options, option } : { options: null, option: null };
|
|
14897
14900
|
}
|
|
14901
|
+
var ALL_MARKETS = "*";
|
|
14898
14902
|
var usableMarkets = (preset) => preset.marketOptions && preset.marketOptions.some((m) => m.key === preset.marketKey) ? preset.marketOptions : null;
|
|
14899
14903
|
function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, sport, operatorUserId, anonymousUserId, onCoolOff }) {
|
|
14900
14904
|
const { oddsFormat } = useOddsSettings();
|
|
@@ -14921,7 +14925,7 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
|
|
|
14921
14925
|
const [widenedNote, setWidenedNote] = useState67(saved?.widenedNote ?? false);
|
|
14922
14926
|
const requestFor = (v) => ({
|
|
14923
14927
|
sport,
|
|
14924
|
-
marketKey: v.marketKey,
|
|
14928
|
+
...v.marketKey !== null ? { marketKey: v.marketKey } : {},
|
|
14925
14929
|
matchIds: v.widen ? [] : v.matchIds,
|
|
14926
14930
|
legs: v.legs,
|
|
14927
14931
|
// The total row is hidden for Singles, so a total picked earlier must not narrow them; the pick stays in state for the way back.
|
|
@@ -14976,7 +14980,7 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
|
|
|
14976
14980
|
useEffect42(() => {
|
|
14977
14981
|
if (market) setSeen(market);
|
|
14978
14982
|
}, [market]);
|
|
14979
|
-
const marketName = marketOptions?.find((m) => m.key === view.marketKey)?.label ?? market ?? seen;
|
|
14983
|
+
const marketName = view.marketKey === null ? null : marketOptions?.find((m) => m.key === view.marketKey)?.label ?? market ?? seen;
|
|
14980
14984
|
const paused = ready && grid.status === "paused";
|
|
14981
14985
|
const coolOff = status === "ready" && grid === null;
|
|
14982
14986
|
const empty2 = ready && (grid.status === "miss" || grid.status === "ok" && (rows === null || rows.length === 0));
|
|
@@ -15008,9 +15012,22 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
|
|
|
15008
15012
|
] }) }) : conversation ? /* @__PURE__ */ jsxs110(Fragment36, { children: [
|
|
15009
15013
|
marketOptions ? /* @__PURE__ */ jsxs110("div", { className: "ss-w-v8-builder-ln", children: [
|
|
15010
15014
|
/* @__PURE__ */ jsx124("span", { className: "ss-w-v8-builder-w", children: ui.v8BuilderShow }),
|
|
15011
|
-
/* @__PURE__ */ jsx124("div", { className: "ss-w-v8-slot", "data-mine": marketOptions.find((m) => m.key === view.marketKey)?.usual || void 0, children: /* @__PURE__ */
|
|
15012
|
-
|
|
15013
|
-
|
|
15015
|
+
/* @__PURE__ */ jsx124("div", { className: "ss-w-v8-slot", "data-mine": marketOptions.find((m) => m.key === view.marketKey)?.usual || void 0, children: /* @__PURE__ */ jsxs110(
|
|
15016
|
+
"select",
|
|
15017
|
+
{
|
|
15018
|
+
className: "ss-w-v8-select",
|
|
15019
|
+
"aria-label": ui.v8MarketAria,
|
|
15020
|
+
value: view.marketKey ?? ALL_MARKETS,
|
|
15021
|
+
onChange: (e) => {
|
|
15022
|
+
const picked = e.target.value === ALL_MARKETS ? null : e.target.value;
|
|
15023
|
+
if (picked !== view.marketKey) ask({ ...view, marketKey: picked });
|
|
15024
|
+
},
|
|
15025
|
+
children: [
|
|
15026
|
+
marketOptions.map((m) => /* @__PURE__ */ jsx124("option", { value: m.key, children: m.usual ? `${ui.v8UsualPrefix}${m.label}` : m.label }, m.key)),
|
|
15027
|
+
/* @__PURE__ */ jsx124("option", { value: ALL_MARKETS, children: ui.v8AllMarkets })
|
|
15028
|
+
]
|
|
15029
|
+
}
|
|
15030
|
+
) })
|
|
15014
15031
|
] }) : marketName ? /* @__PURE__ */ jsxs110("div", { className: "ss-w-v8-builder-ln", children: [
|
|
15015
15032
|
/* @__PURE__ */ jsx124("span", { className: "ss-w-v8-builder-w", children: ui.v8BuilderShow }),
|
|
15016
15033
|
/* @__PURE__ */ jsx124("span", { className: "ss-w-v8-builder-market", children: marketName })
|