@sensiblestats/widget-react 0.146.0 → 0.147.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 +4093 -3699
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3956 -3562
- package/dist/index.js.map +1 -1
- package/dist/styles.css +38 -2
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -163,6 +163,8 @@
|
|
|
163
163
|
.ss-w-greeting-top { display: flex; align-items: flex-start; }
|
|
164
164
|
.ss-w-greeting-asks { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 10px; }
|
|
165
165
|
.ss-w-greeting-ask { min-height: 44px; width: 100%; text-align: left; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 8%, var(--ss-w-panel)); border: 1px solid color-mix(in srgb, var(--ss-w-accent) 35%, var(--ss-w-line)); border-radius: 10px; padding: 6px 10px; cursor: pointer; white-space: normal; overflow-wrap: anywhere; }
|
|
166
|
+
.ss-w-greeting-cta { min-height: 44px; width: 100%; text-align: center; font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--ss-g-on-accent, #fff); background: var(--ss-w-accent); border: 0; border-radius: 10px; padding: 6px 10px; cursor: pointer; white-space: normal; overflow-wrap: anywhere; }
|
|
167
|
+
.ss-w-greeting-cta:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
|
|
166
168
|
.ss-w-greeting-ask:hover { border-color: var(--ss-w-accent); }
|
|
167
169
|
.ss-w-greeting-ask:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
|
|
168
170
|
/* Typing indicator: overlays the text area so bubble height stays put; hidden at
|
|
@@ -340,7 +342,7 @@
|
|
|
340
342
|
.ss-w-cmp-note { display: block; margin-top: 2px; font-size: 9.5px; color: var(--ss-w-faint); font-style: italic; }
|
|
341
343
|
.ss-w-cmp-missing .ss-w-cmp-val { color: var(--ss-w-faint); font-weight: 560; }
|
|
342
344
|
.ss-w-cmp-lead { background: color-mix(in srgb, var(--ss-w-pos) 12%, var(--ss-w-panel)); }
|
|
343
|
-
.ss-w-cmp-lead .ss-w-cmp-val { color: var(--ss-w-pos); }
|
|
345
|
+
.ss-w-cmp-lead .ss-w-cmp-val { color: color-mix(in srgb, var(--ss-w-pos) 65%, var(--ss-w-ink)); }
|
|
344
346
|
|
|
345
347
|
/* betting insights */
|
|
346
348
|
.ss-w-binsights { display: flex; flex-direction: column; gap: 7px; }
|
|
@@ -1644,6 +1646,40 @@
|
|
|
1644
1646
|
.ss-w-v8-since-title { font-size: 11.5px; font-weight: 600; color: var(--ss-w-faint); }
|
|
1645
1647
|
.ss-w-v8-since-line { margin: 0; font-size: 13px; line-height: 1.35; color: var(--ss-w-ink); overflow-wrap: anywhere; }
|
|
1646
1648
|
.ss-w-v8-since-line::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--ss-w-accent); vertical-align: 2px; }
|
|
1649
|
+
.ss-w-v2 { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
|
|
1650
|
+
.ss-w-v2-featured { border-color: color-mix(in srgb, var(--ss-w-accent) 40%, var(--ss-w-line)); }
|
|
1651
|
+
.ss-w-v2-featured[data-highlight="true"] { box-shadow: 0 0 0 2px var(--ss-w-accent); animation: ss-w-v2-pulse 1s ease-in-out 2; }
|
|
1652
|
+
@keyframes ss-w-v2-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ss-w-accent) 35%, transparent); } }
|
|
1653
|
+
.ss-w-v2-teams { display: flex; flex-direction: column; gap: 2px; }
|
|
1654
|
+
.ss-w-v2-team { display: flex; align-items: center; gap: 4px; min-width: 0; }
|
|
1655
|
+
.ss-w-v2-star { flex: none; min-width: 32px; min-height: 32px; padding: 0; border: 0; background: transparent; font: inherit; font-size: 16px; line-height: 1; color: var(--ss-w-accent); cursor: pointer; }
|
|
1656
|
+
.ss-w-v2-star:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; border-radius: 8px; }
|
|
1657
|
+
.ss-w-v2-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; min-width: 0; }
|
|
1658
|
+
.ss-w-v2-market { min-width: 0; font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--ss-w-faint); overflow-wrap: anywhere; }
|
|
1659
|
+
.ss-w-v2-tag { flex: 0 1 auto; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--ss-w-accent) 14%, var(--ss-w-panel)); color: var(--ss-w-ink); font-size: 11px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
|
|
1660
|
+
.ss-w-v2-prices { display: flex; gap: 6px; min-width: 0; }
|
|
1661
|
+
.ss-w-v2-prices .ss-w-slip-btn.ss-w-slip-btn--price { flex: 1 1 0; width: auto; min-width: 0; min-height: 40px; padding: 5px 8px; white-space: normal; }
|
|
1662
|
+
.ss-w-v2-prices .ss-w-slip-btn--price .ss-w-mol-lab { text-wrap: balance; }
|
|
1663
|
+
.ss-w-v2-stat { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--ss-w-ink); overflow-wrap: anywhere; }
|
|
1664
|
+
.ss-w-v2 .ss-w-toast { position: static; width: auto; max-width: none; box-shadow: none; }
|
|
1665
|
+
.ss-w-v2-gone { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--ss-w-ink); overflow-wrap: anywhere; }
|
|
1666
|
+
.ss-w-v2-prices .ss-w-slip-btn--price:disabled { opacity: 0.6; cursor: default; }
|
|
1667
|
+
.ss-w-v2-strip, .ss-w-v2-alts { gap: 6px; }
|
|
1668
|
+
.ss-w-v2-strip-row, .ss-w-v2-alt-row { gap: 6px; padding: 8px 12px; }
|
|
1669
|
+
.ss-w-v2-chips .ss-w-v8-chip { font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
|
|
1670
|
+
.ss-w-v2-chips .ss-w-v8-chip:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
|
|
1671
|
+
.ss-w-v2-chooser { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ss-w-ink); overflow-wrap: anywhere; }
|
|
1672
|
+
.ss-w-v2-picker { gap: 6px; }
|
|
1673
|
+
.ss-w-v2-picker-title { margin: 0; font-size: 11.5px; font-weight: 600; color: var(--ss-w-faint); }
|
|
1674
|
+
.ss-w-v2-picker-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
|
|
1675
|
+
.ss-w-v2-picker-row { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ss-w-line); border-radius: 12px; background: var(--ss-w-panel); font: inherit; text-align: start; color: var(--ss-w-ink); cursor: pointer; }
|
|
1676
|
+
.ss-w-v2-picker-row[aria-current="true"] { border-color: var(--ss-w-accent); }
|
|
1677
|
+
.ss-w-v2-picker-row:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
|
|
1678
|
+
.ss-w-v2-picker-prices { display: flex; flex-wrap: wrap; gap: 4px 12px; min-width: 0; font-size: 12.5px; }
|
|
1679
|
+
.ss-w-v2-picker-price { display: inline-flex; gap: 6px; min-width: 0; }
|
|
1680
|
+
.ss-w-v2-picker-price .ss-w-mol-lab, .ss-w-v2-picker-price .ss-w-mol-tick { font-size: 12.5px; }
|
|
1681
|
+
.ss-w-v2-picker-price .ss-w-mol-lab { color: var(--ss-w-ink); }
|
|
1682
|
+
@media (prefers-reduced-motion: no-preference) { .ss-w-v2-picker-row { transition: border-color 120ms ease; } }
|
|
1647
1683
|
|
|
1648
1684
|
/* guess */
|
|
1649
1685
|
.ss-w-v8-guess { gap: 9px; padding: 11px 12px; border: 1.5px solid var(--ss-w-accent); border-radius: 14px; background: var(--ss-w-panel); }
|
|
@@ -1776,7 +1812,7 @@
|
|
|
1776
1812
|
}
|
|
1777
1813
|
|
|
1778
1814
|
@media (prefers-reduced-motion: reduce) {
|
|
1779
|
-
.ss-w-root [class*="ss-w-v8-"], .ss-w-root [class*="ss-w-fav-"] { transition: none !important; animation: none !important; }
|
|
1815
|
+
.ss-w-root [class*="ss-w-v8-"], .ss-w-root [class*="ss-w-fav-"], .ss-w-root [class*="ss-w-v2-"] { transition: none !important; animation: none !important; }
|
|
1780
1816
|
}
|
|
1781
1817
|
|
|
1782
1818
|
/* Matches tab match card (MonitorMatchCard): pill row, crest/score main row, per-stat split
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sensiblestats/widget-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.147.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.108.0",
|
|
43
43
|
"react-markdown": "^9.0.1",
|
|
44
44
|
"remark-gfm": "^4.0.0"
|
|
45
45
|
},
|