@sensiblestats/widget-react 0.66.1 → 0.67.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/dist/index.js CHANGED
@@ -34,6 +34,7 @@ var STRINGS = {
34
34
  showMore: (n) => `Show ${n} more`,
35
35
  oddsLabel: "Odds",
36
36
  liveLabel: "Live",
37
+ yourMarketTag: "Your market",
37
38
  marketFloorLabel: "Market price \xB7 not a value pick",
38
39
  addToSlip: "Add to slip",
39
40
  marketPrices: "Market prices",
@@ -333,6 +334,7 @@ var STRINGS = {
333
334
  showMore: (n) => `${n} tane daha g\xF6ster`,
334
335
  oddsLabel: "Oran",
335
336
  liveLabel: "Canl\u0131",
337
+ yourMarketTag: "\u0130lgilendi\u011Fin bahis",
336
338
  marketFloorLabel: "Piyasa oran\u0131 \xB7 de\u011Fer bahsi de\u011Fil",
337
339
  addToSlip: "Kupona ekle",
338
340
  marketPrices: "Piyasa fiyatlar\u0131",
@@ -660,6 +662,7 @@ function normalizeUi(cfg) {
660
662
  showMore: strings.showMore,
661
663
  oddsLabel: strings.oddsLabel,
662
664
  liveLabel: strings.liveLabel,
665
+ yourMarketTag: strings.yourMarketTag,
663
666
  marketFloorLabel: strings.marketFloorLabel,
664
667
  marketPrices: strings.marketPrices,
665
668
  moreLines: strings.moreLines,
@@ -1295,7 +1298,8 @@ function toMarketOddsVM(card) {
1295
1298
  marketDeveloperName: str(card.marketDeveloperName),
1296
1299
  mainLine: str(card.mainLine),
1297
1300
  pinEnabled: card.pinEnabled === true,
1298
- statText: card.insight && typeof card.insight === "object" ? str(card.insight.text) : void 0
1301
+ statText: card.insight && typeof card.insight === "object" ? str(card.insight.text) : void 0,
1302
+ tag: card.tag === "your_market" ? "your_market" : void 0
1299
1303
  };
1300
1304
  }
1301
1305
  function toOddsMovementVM(card) {
@@ -1911,7 +1915,10 @@ function MarketOddsCard({ vm, ui, slip, monitor, inSlipIds, hideHeader, pinRef }
1911
1915
  /* @__PURE__ */ jsx14("span", { className: "ss-w-bi-team", children: vm.awayTeamName }),
1912
1916
  /* @__PURE__ */ jsx14(Crest2, { kind: "team", url: vm.awayCrest, name: vm.awayTeamName })
1913
1917
  ] }) : vm.fixture ? /* @__PURE__ */ jsx14("span", { className: "ss-w-mo-teams", children: vm.fixture }) : null,
1914
- vm.market ? /* @__PURE__ */ jsx14("div", { className: "ss-w-mo-market-row", children: /* @__PURE__ */ jsx14("span", { className: "ss-w-mo-market", children: vm.market }) }) : null
1918
+ vm.market ? /* @__PURE__ */ jsxs9("div", { className: "ss-w-mo-market-row", children: [
1919
+ /* @__PURE__ */ jsx14("span", { className: "ss-w-mo-market", children: vm.market }),
1920
+ vm.tag === "your_market" ? /* @__PURE__ */ jsx14("span", { className: "ss-w-mo-tag", children: ui?.yourMarketTag ?? "Your market" }) : null
1921
+ ] }) : null
1915
1922
  ] }) : null
1916
1923
  ] }),
1917
1924
  vm.statText && !hideHeader && !pinRef ? /* @__PURE__ */ jsx14("div", { className: "ss-w-mo-stat", children: vm.statText }) : null,
@@ -8546,6 +8553,7 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
8546
8553
  .ss-w-mo-teams { font-size: 13px; font-weight: 650; color: var(--ss-w-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
8547
8554
  .ss-w-mo-market-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
8548
8555
  .ss-w-mo-market { font-size: 11.5px; font-weight: 600; color: var(--ss-w-faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
8556
+ .ss-w-mo-tag { flex: none; font-size: 10.5px; font-weight: 700; line-height: 1.4; color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 12%, transparent); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
8549
8557
  .ss-w-mo-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--ss-w-accent); font: inherit; font-size: 11.5px; font-weight: 600; padding: 2px 0; cursor: pointer; }
8550
8558
  .ss-w-mo-more:hover { text-decoration: underline; }
8551
8559
  .ss-w-mo-more-chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }