@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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @sensiblestats/widget-react
2
2
 
3
+ ## 0.67.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Match odds card, stage 3: a price card the server sends for the market the user bets on carries `tag: "your_market"`, and the card shows a "Your market" / "İlgilendiğin bahis" label on its market line. A card with no tag or an unknown tag shows no label.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @sensiblestats/widget-sdk@0.42.0
13
+
3
14
  ## 0.66.1
4
15
 
5
16
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -72,6 +72,7 @@ var STRINGS = {
72
72
  showMore: (n) => `Show ${n} more`,
73
73
  oddsLabel: "Odds",
74
74
  liveLabel: "Live",
75
+ yourMarketTag: "Your market",
75
76
  marketFloorLabel: "Market price \xB7 not a value pick",
76
77
  addToSlip: "Add to slip",
77
78
  marketPrices: "Market prices",
@@ -371,6 +372,7 @@ var STRINGS = {
371
372
  showMore: (n) => `${n} tane daha g\xF6ster`,
372
373
  oddsLabel: "Oran",
373
374
  liveLabel: "Canl\u0131",
375
+ yourMarketTag: "\u0130lgilendi\u011Fin bahis",
374
376
  marketFloorLabel: "Piyasa oran\u0131 \xB7 de\u011Fer bahsi de\u011Fil",
375
377
  addToSlip: "Kupona ekle",
376
378
  marketPrices: "Piyasa fiyatlar\u0131",
@@ -698,6 +700,7 @@ function normalizeUi(cfg) {
698
700
  showMore: strings.showMore,
699
701
  oddsLabel: strings.oddsLabel,
700
702
  liveLabel: strings.liveLabel,
703
+ yourMarketTag: strings.yourMarketTag,
701
704
  marketFloorLabel: strings.marketFloorLabel,
702
705
  marketPrices: strings.marketPrices,
703
706
  moreLines: strings.moreLines,
@@ -1333,7 +1336,8 @@ function toMarketOddsVM(card) {
1333
1336
  marketDeveloperName: str(card.marketDeveloperName),
1334
1337
  mainLine: str(card.mainLine),
1335
1338
  pinEnabled: card.pinEnabled === true,
1336
- statText: card.insight && typeof card.insight === "object" ? str(card.insight.text) : void 0
1339
+ statText: card.insight && typeof card.insight === "object" ? str(card.insight.text) : void 0,
1340
+ tag: card.tag === "your_market" ? "your_market" : void 0
1337
1341
  };
1338
1342
  }
1339
1343
  function toOddsMovementVM(card) {
@@ -1949,7 +1953,10 @@ function MarketOddsCard({ vm, ui, slip, monitor, inSlipIds, hideHeader, pinRef }
1949
1953
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "ss-w-bi-team", children: vm.awayTeamName }),
1950
1954
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Crest2, { kind: "team", url: vm.awayCrest, name: vm.awayTeamName })
1951
1955
  ] }) : vm.fixture ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "ss-w-mo-teams", children: vm.fixture }) : null,
1952
- vm.market ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "ss-w-mo-market-row", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "ss-w-mo-market", children: vm.market }) }) : null
1956
+ vm.market ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "ss-w-mo-market-row", children: [
1957
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "ss-w-mo-market", children: vm.market }),
1958
+ vm.tag === "your_market" ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "ss-w-mo-tag", children: ui?.yourMarketTag ?? "Your market" }) : null
1959
+ ] }) : null
1953
1960
  ] }) : null
1954
1961
  ] }),
1955
1962
  vm.statText && !hideHeader && !pinRef ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "ss-w-mo-stat", children: vm.statText }) : null,
@@ -8584,6 +8591,7 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
8584
8591
  .ss-w-mo-teams { font-size: 13px; font-weight: 650; color: var(--ss-w-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
8585
8592
  .ss-w-mo-market-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
8586
8593
  .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; }
8594
+ .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; }
8587
8595
  .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; }
8588
8596
  .ss-w-mo-more:hover { text-decoration: underline; }
8589
8597
  .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; }