@sensiblestats/widget-react 0.142.0 → 0.143.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 +11 -0
- package/dist/index.cjs +1911 -1876
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1321 -1286
- package/dist/index.js.map +1 -1
- package/dist/styles.css +7 -3
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -345,6 +345,7 @@
|
|
|
345
345
|
/* crests -- CSS background-image on a span, never <img> (matches .ss-w-ecard-crest precedent) */
|
|
346
346
|
.ss-w-bi-comp-logo { width: 16px; height: 16px; flex: none; display: block; border-radius: 50%; object-fit: contain; }
|
|
347
347
|
.ss-w-bi-crest { width: 24px; height: 24px; flex: none; display: block; border-radius: 50%; object-fit: contain; }
|
|
348
|
+
.ss-w-bi-crest--player { object-fit: cover; }
|
|
348
349
|
.ss-w-bi-crest-mono { display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 16%, var(--ss-w-panel)); }
|
|
349
350
|
.ss-w-bi-crest--abbr { width: auto; min-width: 26px; padding: 0 3px; border-radius: 4px; font-size: 8px; font-weight: 800; letter-spacing: .02em; box-sizing: border-box; }
|
|
350
351
|
|
|
@@ -1755,6 +1756,7 @@
|
|
|
1755
1756
|
.ss-w-mon-top { display: flex; align-items: center; gap: 8px; }
|
|
1756
1757
|
.ss-w-mon-pill { display: inline-flex; flex: none; align-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ss-w-faint); background: var(--ss-w-bubble); border-radius: 6px; padding: 3px 8px; }
|
|
1757
1758
|
.ss-w-mon-min { flex: none; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
|
|
1759
|
+
.ss-w-mon-comp-logo { display: inline-block; width: 14px; height: 14px; margin-inline-end: 4px; vertical-align: -3px; object-fit: contain; }
|
|
1758
1760
|
.ss-w-mon-comp { margin-left: auto; font-size: 11px; font-weight: 650; color: var(--ss-w-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1759
1761
|
/* Placeholder shapes for a pin with no data yet. Sizes match the real card's rows (24px crest,
|
|
1760
1762
|
26px score line, the 22px pin that sets the top row) so the card does not jump when data lands. */
|
|
@@ -2185,12 +2187,13 @@
|
|
|
2185
2187
|
.ss-w-props-fact-line { font-size: 11px; color: var(--ss-w-faint); }
|
|
2186
2188
|
.ss-w-props-fact .ss-w-props-price, .ss-w-props-fact .ss-w-slip-btn.ss-w-slip-btn--price { min-width: 56px; min-height: 44px; padding: 0 8px; justify-content: center; align-items: center; }
|
|
2187
2189
|
/* NFL Last 5 (u605): result rows, a spread chip where the game had an opening line, and the head-to-head list. */
|
|
2188
|
-
.ss-w-nflform-row { display: grid; grid-template-columns: 20px
|
|
2190
|
+
.ss-w-nflform-row { display: grid; grid-template-columns: 20px auto minmax(0, 1fr) 44px; gap: 8px; align-items: center; min-height: 36px; border-top: 1px solid var(--ss-w-line); }
|
|
2189
2191
|
.ss-w-nflform-badge { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; }
|
|
2190
2192
|
.ss-w-nflform-badge--win { background: var(--ss-w-pos); color: var(--ss-w-cta-ink); }
|
|
2191
2193
|
.ss-w-nflform-badge--loss { background: var(--ss-w-cta); color: var(--ss-w-cta-ink); }
|
|
2192
2194
|
.ss-w-nflform-badge--tie { background: var(--ss-w-track); color: var(--ss-w-ink); }
|
|
2193
|
-
.ss-w-nflform-opp { font-size: 12.5px; font-weight: 600; }
|
|
2195
|
+
.ss-w-nflform-opp { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
|
|
2196
|
+
.ss-w-nflform-opp .ss-w-v8-pic, .ss-w-nbaform-opp .ss-w-v8-pic, .ss-w-nbaform-rest .ss-w-v8-pic { width: 14px; height: 14px; margin-inline-end: 0; }
|
|
2194
2197
|
.ss-w-nflform-chipcell { justify-self: end; }
|
|
2195
2198
|
.ss-w-nflform-chip { padding: 2px 7px; border: 1px solid var(--ss-w-line); border-radius: 999px; background: var(--ss-w-bubble); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
|
|
2196
2199
|
.ss-w-nflform-score { font-size: 12.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
|
|
@@ -2226,7 +2229,8 @@
|
|
|
2226
2229
|
.ss-w-nbaform-badge { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 6px; font-size: 10.5px; font-weight: 800; color: #fff; }
|
|
2227
2230
|
.ss-w-nbaform-badge--w { background: var(--ss-w-pos); }
|
|
2228
2231
|
.ss-w-nbaform-badge--l { background: var(--ss-w-cta); color: var(--ss-w-cta-ink); }
|
|
2229
|
-
.ss-w-nbaform-opp { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
|
|
2232
|
+
.ss-w-nbaform-opp { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
|
|
2233
|
+
.ss-w-nbaform-rest .ss-w-v8-pic { margin-inline-start: 4px; }
|
|
2230
2234
|
.ss-w-nbaform-day { font-size: 11px; color: var(--ss-w-faint); white-space: nowrap; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
2231
2235
|
.ss-w-nbaform-cover { padding: 2px 7px; border: 1px solid var(--ss-w-line); border-radius: 999px; background: var(--ss-w-bubble); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
|
|
2232
2236
|
.ss-w-nbaform-score { font-size: 12.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; margin-left: auto; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sensiblestats/widget-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.143.0",
|
|
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.
|
|
42
|
+
"@sensiblestats/widget-sdk": "^0.105.0",
|
|
43
43
|
"react-markdown": "^9.0.1",
|
|
44
44
|
"remark-gfm": "^4.0.0"
|
|
45
45
|
},
|