@sensiblestats/widget-react 0.90.0 → 0.92.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/styles.css CHANGED
@@ -488,6 +488,8 @@
488
488
  .ss-w-mo-row .ss-w-move + .ss-w-mo-price { margin-left: 0; }
489
489
  .ss-w-mo-row .ss-w-slip { margin: 0; flex: none; }
490
490
  .ss-w-mo-foot { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ss-w-faint); }
491
+ .ss-w-allmk-wrap { position: relative; display: inline-flex; flex: none; margin-left: auto; }
492
+ .ss-w-allmk-wrap--chip { margin-left: 0; }
491
493
  .ss-w-allmk { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; background: none; border: 0; font: inherit; font-size: 11.5px; font-weight: 700; color: var(--ss-w-accent); white-space: nowrap; cursor: pointer; }
492
494
  .ss-w-allmk svg { width: 13px; height: 13px; flex: none; }
493
495
  .ss-w-allmk:hover { text-decoration: underline; }
@@ -1185,6 +1187,40 @@
1185
1187
  .ss-w-mon-vs { font-size: 12px; font-weight: 700; color: var(--ss-w-faint); text-transform: uppercase; }
1186
1188
  .ss-w-mon-score { display: flex; align-items: baseline; justify-content: center; font-size: 26px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; color: var(--ss-w-ink); }
1187
1189
  .ss-w-mon-score i { font-style: normal; color: var(--ss-w-faint); font-weight: 500; margin: 0 4px; }
1190
+ .ss-w-nbamon-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
1191
+ .ss-w-nbamon-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
1192
+ .ss-w-nbamon-side--home { flex-direction: row-reverse; text-align: right; }
1193
+ .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); }
1194
+ .ss-w-nbamon-team { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
1195
+ .ss-w-nbamon-city { font-size: 10.5px; font-weight: 600; color: var(--ss-w-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1196
+ .ss-w-nbamon-nick { font-size: 13px; font-weight: 800; color: var(--ss-w-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1197
+ .ss-w-nbamon-ls { width: 100%; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; text-align: center; color: var(--ss-w-ink); }
1198
+ .ss-w-nbamon-ls th, .ss-w-nbamon-ls td { padding: 3px 4px; font-weight: 500; }
1199
+ .ss-w-nbamon-ls thead th { font-size: 10px; font-weight: 700; color: var(--ss-w-faint); border-bottom: 1px solid var(--ss-w-line); }
1200
+ .ss-w-nbamon-ls tbody th { text-align: left; font-weight: 800; }
1201
+ .ss-w-nbamon-ls .ss-w-nbamon-total { font-weight: 800; }
1202
+ .ss-w-nbamon-ls td.ss-w-nbamon-cur { color: var(--ss-w-neg); font-weight: 800; }
1203
+ .ss-w-nbamon-dash { color: var(--ss-w-faint); }
1204
+ .ss-w-nbamon-tos { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--ss-w-faint); }
1205
+ /* Scoreboard strip: one 122px tile per followed game, scrolling sideways inside its own box so the
1206
+ panel never gains a horizontal scroll. */
1207
+ .ss-w-strip { position: relative; flex: none; display: flex; gap: 8px; padding: 8px 12px; background: var(--ss-w-bubble); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
1208
+ .ss-w-strip::-webkit-scrollbar { display: none; }
1209
+ .ss-w-strip-tile { flex: none; box-sizing: border-box; width: 122px; display: flex; flex-direction: column; gap: 3px; padding: 6px 8px 7px; border: 1px solid var(--ss-w-line); border-radius: 10px; background: var(--ss-w-panel); font: inherit; color: var(--ss-w-ink); text-align: left; cursor: pointer; }
1210
+ .ss-w-strip-tile[aria-pressed="true"] { border-color: var(--ss-w-accent); box-shadow: inset 0 0 0 1px var(--ss-w-accent); }
1211
+ .ss-w-strip-tile:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
1212
+ .ss-w-strip-status { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ss-w-faint); }
1213
+ .ss-w-strip-status--live { color: var(--ss-w-neg); }
1214
+ .ss-w-strip-when { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1215
+ .ss-w-strip-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ss-w-neg); }
1216
+ .ss-w-strip-sport { flex: none; margin-left: auto; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; color: var(--ss-w-warn); }
1217
+ .ss-w-strip-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; min-width: 0; }
1218
+ .ss-w-strip-row .ss-w-bi-crest { width: 16px; height: 16px; }
1219
+ .ss-w-strip-row .ss-w-bi-crest-mono { font-size: 8px; }
1220
+ .ss-w-strip-badge { display: grid; place-items: center; min-width: 22px; height: 16px; padding: 0 3px; border-radius: 4px; background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); font-size: 8.5px; font-weight: 800; letter-spacing: .02em; color: var(--ss-w-ink); }
1221
+ .ss-w-strip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 650; }
1222
+ .ss-w-strip-score { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
1223
+ .ss-w-strip-row--muted .ss-w-strip-name, .ss-w-strip-row--muted .ss-w-strip-score { color: var(--ss-w-faint); }
1188
1224
  .ss-w-mon-scorers { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; column-gap: 10px; font-size: 11.5px; color: var(--ss-w-faint); }
1189
1225
  .ss-w-mon-scorers-col { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
1190
1226
  .ss-w-mon-scorers-col li { overflow-wrap: anywhere; }
@@ -1503,6 +1539,8 @@
1503
1539
  .ss-w-drow:last-child { border-bottom: none; }
1504
1540
  .ss-w-drow-when { font-size: 11px; font-weight: 700; color: var(--ss-w-faint); font-variant-numeric: tabular-nums; }
1505
1541
  .ss-w-drow-when--live { color: var(--ss-w-neg); }
1542
+ .ss-w-drow-when--two { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
1543
+ .ss-w-drow-when--two > span:last-child { font-size: 10px; font-weight: 600; }
1506
1544
  /* Each side ellipsises independently: a single joined string truncates the away team off the end,
1507
1545
  which is the u350 betting-card truncation one layer down. */
1508
1546
  .ss-w-drow-fx { display: flex; align-items: center; gap: 6px; min-width: 0; }
@@ -1518,6 +1556,7 @@
1518
1556
  .ss-w-drow-sc--idle { color: var(--ss-w-faint); font-weight: 600; }
1519
1557
  .ss-w-drow--live { background: color-mix(in srgb, var(--ss-w-neg) 5%, transparent); border-radius: 8px; padding: 7px 6px; margin: 0 -6px; border-bottom: none; }
1520
1558
  .ss-w-drow-crest { width: 16px; height: 16px; flex: none; border-radius: 50%; object-fit: contain; background: var(--ss-w-bubble); }
1559
+ .ss-w-drow-crest--abbr { width: 26px; height: 16px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 800; letter-spacing: .02em; line-height: 1; color: var(--ss-w-faint); background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); box-sizing: border-box; }
1521
1560
 
1522
1561
  .ss-w-stale { font-size: 11px; font-weight: 600; color: var(--ss-w-cta); background: color-mix(in srgb, var(--ss-w-cta) 12%, var(--ss-w-panel)); border-radius: 8px; padding: 6px 9px; }
1523
1562
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-react",
3
- "version": "0.90.0",
3
+ "version": "0.92.0",
4
4
  "description": "Embeddable SensibleStats chat widget for React.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -38,7 +38,7 @@
38
38
  "prepublishOnly": "yarn build"
39
39
  },
40
40
  "dependencies": {
41
- "@sensiblestats/widget-sdk": "^0.60.0",
41
+ "@sensiblestats/widget-sdk": "^0.62.0",
42
42
  "react-markdown": "^9.0.1",
43
43
  "remark-gfm": "^4.0.0"
44
44
  },