@sensiblestats/widget-react 0.119.0 → 0.120.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 +18 -0
- package/dist/index.cjs +1361 -1178
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1361 -1178
- package/dist/index.js.map +1 -1
- package/dist/styles.css +32 -1
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -1316,7 +1316,8 @@
|
|
|
1316
1316
|
.ss-w-sportchip[aria-pressed="true"] { color: #fff; background: var(--ss-w-accent); border-color: var(--ss-w-accent); }
|
|
1317
1317
|
.ss-w-sportchip-count { font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
|
|
1318
1318
|
.ss-w-sportchip:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 1px; }
|
|
1319
|
-
|
|
1319
|
+
/* top: -14px cancels .ss-w-mon-list's 14px padding: sticky insets measure from the scroller's content box, so top: 0 left a strip where rows showed through above the bar. */
|
|
1320
|
+
.ss-w-lp-bar, .ss-w-mp-head { position: sticky; top: -14px; z-index: 2; margin: 0 -14px; padding: 6px 11px 8px; background: var(--ss-w-panel); }
|
|
1320
1321
|
.ss-w-lp-bar { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
|
|
1321
1322
|
.ss-w-lp-bar::-webkit-scrollbar { display: none; }
|
|
1322
1323
|
.ss-w-lp-bar > * { flex: none; }
|
|
@@ -1603,6 +1604,36 @@
|
|
|
1603
1604
|
.ss-w-nbamon-ls td.ss-w-nbamon-cur { color: var(--ss-w-neg); font-weight: 800; }
|
|
1604
1605
|
.ss-w-nbamon-dash { color: var(--ss-w-faint); }
|
|
1605
1606
|
.ss-w-nbamon-tos { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--ss-w-faint); }
|
|
1607
|
+
.ss-w-nflmon-sit { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border-radius: 8px; background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); }
|
|
1608
|
+
.ss-w-nflmon-pos { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #fff; }
|
|
1609
|
+
.ss-w-nflmon-pos--home { background: var(--ss-w-home); }
|
|
1610
|
+
.ss-w-nflmon-pos--away { background: var(--ss-w-away); }
|
|
1611
|
+
/* white on the lighter dark-theme team colours is under 4.5:1 */
|
|
1612
|
+
@media (prefers-color-scheme: dark) { .ss-w-root[data-ss-w-theme="auto"] .ss-w-nflmon-pos { color: var(--ss-w-nav); } }
|
|
1613
|
+
.ss-w-root[data-ss-w-theme="dark"] .ss-w-nflmon-pos { color: var(--ss-w-nav); }
|
|
1614
|
+
.ss-w-nflmon-ball { flex: none; width: 10px; height: 6px; border-radius: 50%; background: currentColor; }
|
|
1615
|
+
.ss-w-nflmon-dd { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
|
|
1616
|
+
.ss-w-nflmon-last, .ss-w-nflmon-feed { min-width: 0; }
|
|
1617
|
+
.ss-w-nflmon-label { display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 600; color: var(--ss-w-faint); }
|
|
1618
|
+
.ss-w-nflmon-last-text { font-size: 12px; line-height: 1.4; color: var(--ss-w-ink); overflow-wrap: anywhere; }
|
|
1619
|
+
/* subgrid lines the team, text and time columns up across rows */
|
|
1620
|
+
.ss-w-nflmon-plays { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto 1fr auto; row-gap: 4px; }
|
|
1621
|
+
.ss-w-nflmon-play { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; grid-template-columns: subgrid; align-items: baseline; column-gap: 6px; padding-left: 7px; border-left: 3px solid var(--ss-w-line); font-size: 11.5px; line-height: 1.35; }
|
|
1622
|
+
.ss-w-nflmon-play--home { border-left-color: var(--ss-w-home); }
|
|
1623
|
+
.ss-w-nflmon-play--away { border-left-color: var(--ss-w-away); }
|
|
1624
|
+
.ss-w-nflmon-tag { margin-right: 2px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ss-w-ink); }
|
|
1625
|
+
.ss-w-nflmon-tag--turnover { color: var(--ss-w-faint); }
|
|
1626
|
+
.ss-w-nflmon-tag--td, .ss-w-nflmon-tag--fg, .ss-w-nflmon-tag--safety { color: var(--ss-w-accent); }
|
|
1627
|
+
.ss-w-nflmon-abbr { font-weight: 800; color: var(--ss-w-ink); }
|
|
1628
|
+
.ss-w-nflmon-text { min-width: 0; color: var(--ss-w-faint); overflow-wrap: anywhere; }
|
|
1629
|
+
.ss-w-nflmon-when { font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ss-w-faint); }
|
|
1630
|
+
.ss-w-nflmon-wp { padding-top: 10px; border-top: 1px solid var(--ss-w-line); }
|
|
1631
|
+
.ss-w-nflmon-wp .ss-w-fandash-live-mom { margin-top: 0; padding-top: 0; border-top: none; }
|
|
1632
|
+
.ss-w-nflmon-wp-key { display: flex; justify-content: center; gap: 14px; margin-top: 6px; font-size: 10.5px; font-weight: 800; color: var(--ss-w-faint); }
|
|
1633
|
+
.ss-w-nflmon-wp-team { display: inline-flex; align-items: center; gap: 5px; }
|
|
1634
|
+
.ss-w-nflmon-wp-team::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
|
|
1635
|
+
.ss-w-nflmon-wp-team--home::before { background: var(--ss-w-home); }
|
|
1636
|
+
.ss-w-nflmon-wp-team--away::before { background: var(--ss-w-away); }
|
|
1606
1637
|
/* Scoreboard strip: one 122px tile per followed game, scrolling sideways inside its own box so the
|
|
1607
1638
|
panel never gains a horizontal scroll. */
|
|
1608
1639
|
.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; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sensiblestats/widget-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.120.1",
|
|
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.
|
|
41
|
+
"@sensiblestats/widget-sdk": "^0.84.0",
|
|
42
42
|
"react-markdown": "^9.0.1",
|
|
43
43
|
"remark-gfm": "^4.0.0"
|
|
44
44
|
},
|