@sensiblestats/widget-react 0.142.0 → 0.144.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 +17 -0
- package/dist/index.cjs +1914 -1878
- 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 +1324 -1288
- package/dist/index.js.map +1 -1
- package/dist/styles.css +10 -5
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -288,8 +288,9 @@
|
|
|
288
288
|
.ss-w-ecard-meta .ss-w-ecard-season { margin: 0; }
|
|
289
289
|
|
|
290
290
|
/* scope tabs: reuse the underline pattern, relocated above the strip */
|
|
291
|
-
.ss-w-ecard-scopes { display: flex; align-items: stretch; gap: 2px; padding: 0 11px; border-top: 1px solid var(--ss-w-line); flex-wrap:
|
|
292
|
-
.ss-w-ecard-scope { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 620; color: var(--ss-w-faint); background: none; border: none; cursor: pointer; padding: 7px 8px;
|
|
291
|
+
.ss-w-ecard-scopes { display: flex; align-items: stretch; gap: 2px; padding: 0 11px; border-top: 1px solid var(--ss-w-line); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
|
|
292
|
+
.ss-w-ecard-scope { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 620; color: var(--ss-w-faint); background: none; border: none; cursor: pointer; padding: 7px 8px; border-bottom: 2px solid transparent; }
|
|
293
|
+
.ss-w-ecard-scopes::-webkit-scrollbar { display: none; }
|
|
293
294
|
.ss-w-ecard-scope[aria-selected="true"] { color: var(--ss-w-ink); border-bottom-color: var(--ss-w-accent); }
|
|
294
295
|
.ss-w-ecard-scope .ss-w-ecard-crest { width: 14px; height: 14px; }
|
|
295
296
|
.ss-w-ecard-scopes + .ss-w-ecard-strip { border-top: none; }
|
|
@@ -345,6 +346,7 @@
|
|
|
345
346
|
/* crests -- CSS background-image on a span, never <img> (matches .ss-w-ecard-crest precedent) */
|
|
346
347
|
.ss-w-bi-comp-logo { width: 16px; height: 16px; flex: none; display: block; border-radius: 50%; object-fit: contain; }
|
|
347
348
|
.ss-w-bi-crest { width: 24px; height: 24px; flex: none; display: block; border-radius: 50%; object-fit: contain; }
|
|
349
|
+
.ss-w-bi-crest--player { object-fit: cover; }
|
|
348
350
|
.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
351
|
.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
352
|
|
|
@@ -1755,6 +1757,7 @@
|
|
|
1755
1757
|
.ss-w-mon-top { display: flex; align-items: center; gap: 8px; }
|
|
1756
1758
|
.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
1759
|
.ss-w-mon-min { flex: none; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
|
|
1760
|
+
.ss-w-mon-comp-logo { display: inline-block; width: 14px; height: 14px; margin-inline-end: 4px; vertical-align: -3px; object-fit: contain; }
|
|
1758
1761
|
.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
1762
|
/* Placeholder shapes for a pin with no data yet. Sizes match the real card's rows (24px crest,
|
|
1760
1763
|
26px score line, the 22px pin that sets the top row) so the card does not jump when data lands. */
|
|
@@ -2185,12 +2188,13 @@
|
|
|
2185
2188
|
.ss-w-props-fact-line { font-size: 11px; color: var(--ss-w-faint); }
|
|
2186
2189
|
.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
2190
|
/* 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
|
|
2191
|
+
.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
2192
|
.ss-w-nflform-badge { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; }
|
|
2190
2193
|
.ss-w-nflform-badge--win { background: var(--ss-w-pos); color: var(--ss-w-cta-ink); }
|
|
2191
2194
|
.ss-w-nflform-badge--loss { background: var(--ss-w-cta); color: var(--ss-w-cta-ink); }
|
|
2192
2195
|
.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; }
|
|
2196
|
+
.ss-w-nflform-opp { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
|
|
2197
|
+
.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
2198
|
.ss-w-nflform-chipcell { justify-self: end; }
|
|
2195
2199
|
.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
2200
|
.ss-w-nflform-score { font-size: 12.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
|
|
@@ -2226,7 +2230,8 @@
|
|
|
2226
2230
|
.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
2231
|
.ss-w-nbaform-badge--w { background: var(--ss-w-pos); }
|
|
2228
2232
|
.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; }
|
|
2233
|
+
.ss-w-nbaform-opp { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
|
|
2234
|
+
.ss-w-nbaform-rest .ss-w-v8-pic { margin-inline-start: 4px; }
|
|
2230
2235
|
.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
2236
|
.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
2237
|
.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.144.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
|
},
|