@sensiblestats/widget-react 0.135.0 → 0.136.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/dist/styles.css CHANGED
@@ -386,6 +386,8 @@
386
386
  .ss-w-nba-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
387
387
  .ss-w-nba-head-l { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
388
388
  .ss-w-nba-meta { margin: 0; font-size: 11px; color: var(--ss-w-faint); line-height: 1.3; }
389
+ .ss-w-nba-meta .ss-w-bi-crest { display: inline-block; width: 14px; height: 14px; vertical-align: -3px; margin: 0 2px; }
390
+ .ss-w-nba-meta .ss-w-bi-crest-mono { display: inline-grid; font-size: 7px; }
389
391
  .ss-w-nba-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ss-w-ink); overflow-wrap: anywhere; }
390
392
  .ss-w-nba-chip{font-size:11px;font-weight:600;white-space:nowrap;border-radius:999px;padding:3px 8px;border:1px solid var(--ss-w-line)}
391
393
  .ss-w-nba-chip { flex: none; color: var(--ss-w-warn); border-color: var(--ss-w-warn); }
@@ -592,7 +594,9 @@
592
594
  .ss-w-mo-stat { font-size: 12px; color: var(--ss-w-ink); background: color-mix(in srgb, var(--ss-w-accent) 9%, var(--ss-w-panel)); border-radius: 8px; padding: 7px 9px; }
593
595
  .ss-w-mo-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--ss-w-line); }
594
596
  .ss-w-mo-row:last-child { border-bottom: none; }
595
- .ss-w-mo-sel { font-size: 12.5px; font-weight: 600; color: var(--ss-w-ink); flex: 1; min-width: 0; }
597
+ /* min-content, not 0: a long slip label (it-IT "Aggiungi alla schedina") otherwise squeezes the
598
+ label narrower than one word and the name runs into the price. The slip button wraps instead. */
599
+ .ss-w-mo-sel { font-size: 12.5px; font-weight: 600; color: var(--ss-w-ink); flex: 1; min-width: min-content; }
596
600
  .ss-w-mo-price { margin-left: auto; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; color: var(--ss-w-accent); }
597
601
  /* Movement: BOTH directions share --ss-w-faint on purpose. Green-good/red-bad would frame a
598
602
  shortening price as a discount, which inverts what it actually means for the bettor. */
@@ -603,7 +607,8 @@
603
607
  a flex row, and must NOT follow the badge into the insight card's odds column. */
604
608
  .ss-w-mo-row .ss-w-move { margin-left: auto; }
605
609
  .ss-w-mo-row .ss-w-move + .ss-w-mo-price { margin-left: 0; }
606
- .ss-w-mo-row .ss-w-slip { margin: 0; flex: none; }
610
+ .ss-w-mo-row .ss-w-slip { margin: 0; flex: 0 1 auto; min-width: 0; }
611
+ .ss-w-mo-row .ss-w-slip-btn { white-space: normal; text-align: center; }
607
612
  .ss-w-mo-foot { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ss-w-faint); }
608
613
  .ss-w-allmk-wrap { position: relative; display: inline-flex; flex: none; margin-left: auto; }
609
614
  .ss-w-allmk-wrap--chip { margin-left: 0; }
@@ -1756,6 +1761,7 @@
1756
1761
  .ss-w-nbamon-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
1757
1762
  .ss-w-nbamon-side--home { flex-direction: row-reverse; text-align: right; }
1758
1763
  .ss-w-nbamon-badge { flex: none; display: grid; place-items: center; min-width: 34px; height: 26px; padding: 0 5px; border-radius: 7px; background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); font-size: 11px; font-weight: 800; letter-spacing: .03em; color: var(--ss-w-ink); }
1764
+ .ss-w-nbamon-badge--img { width: 26px; min-width: 0; padding: 2px; box-sizing: border-box; object-fit: contain; }
1759
1765
  .ss-w-nbamon-team { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
1760
1766
  .ss-w-nbamon-city { font-size: 10.5px; font-weight: 600; color: var(--ss-w-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1761
1767
  .ss-w-nbamon-nick { font-size: 13px; font-weight: 800; color: var(--ss-w-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@@ -2082,6 +2088,7 @@
2082
2088
  .ss-w-props-jn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
2083
2089
  .ss-w-props-jn--home { background: var(--ss-w-home); }
2084
2090
  .ss-w-props-jn--away { background: var(--ss-w-away); }
2091
+ .ss-w-props-shot { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: top center; background: var(--ss-w-bubble); }
2085
2092
  .ss-w-props-pn { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
2086
2093
  .ss-w-props-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2087
2094
  .ss-w-props-meta { font-size: 11px; color: var(--ss-w-faint); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-react",
3
- "version": "0.135.0",
3
+ "version": "0.136.1",
4
4
  "description": "Embeddable SensibleStats chat widget for React.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -39,7 +39,7 @@
39
39
  "prepublishOnly": "yarn build"
40
40
  },
41
41
  "dependencies": {
42
- "@sensiblestats/widget-sdk": "^0.97.0",
42
+ "@sensiblestats/widget-sdk": "^0.98.0",
43
43
  "react-markdown": "^9.0.1",
44
44
  "remark-gfm": "^4.0.0"
45
45
  },