@sensiblestats/widget-react 0.106.0 → 0.107.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 +1768 -1342
- 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 +1666 -1240
- package/dist/index.js.map +1 -1
- package/dist/styles.css +56 -0
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -1652,6 +1652,62 @@
|
|
|
1652
1652
|
.ss-w-props-ref { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--ss-w-ink); }
|
|
1653
1653
|
.ss-w-props-ref-lab { position: absolute; right: 0; top: -7px; width: 28px; text-align: right; line-height: 13px; border-radius: 3px; background: var(--ss-w-bubble); font-size: 9.5px; font-weight: 600; color: var(--ss-w-faint); font-variant-numeric: tabular-nums; }
|
|
1654
1654
|
.ss-w-props-opps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding-right: 32px; text-align: center; font-size: 10px; color: var(--ss-w-faint); }
|
|
1655
|
+
/* NFL props (u605): three tabs, ten-game bars coloured by the line, and the fact and scorer grids. */
|
|
1656
|
+
.ss-w-props-trends { margin-bottom: 8px; }
|
|
1657
|
+
.ss-w-props-seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
1658
|
+
.ss-w-props-seg--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
1659
|
+
.ss-w-props-seg--3 .ss-w-props-side { min-height: 36px; padding: 6px 4px; font-size: 11.5px; font-weight: 700; }
|
|
1660
|
+
.ss-w-props-ou, .ss-w-props-ladder { position: relative; }
|
|
1661
|
+
.ss-w-props-cell { display: block; min-width: 0; }
|
|
1662
|
+
/* A toast inside a hits cell cannot take a grid row: the cell wraps it, so it would be squeezed to the cell width.
|
|
1663
|
+
It overlays instead, spanning the positioned grid and sitting just under the tapped price. */
|
|
1664
|
+
.ss-w-props-cell .ss-w-toast { position: absolute; top: auto; left: 0; right: 0; grid-column: auto; }
|
|
1665
|
+
.ss-w-props-ou--nfl .ss-w-props-price, .ss-w-props-ou--nfl .ss-w-slip-btn.ss-w-slip-btn--price { min-height: 44px; align-items: center; }
|
|
1666
|
+
.ss-w-props-rung-hits { display: block; margin-top: 3px; font-size: 10px; color: var(--ss-w-faint); font-variant-numeric: tabular-nums; text-align: center; }
|
|
1667
|
+
.ss-w-props-ou .ss-w-props-rung-hits { font-size: 10.5px; text-align: left; padding-left: 2px; }
|
|
1668
|
+
.ss-w-props-bars--wide { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; padding-right: 30px; }
|
|
1669
|
+
.ss-w-props-opps--wide { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; padding-right: 30px; font-size: 8px; white-space: nowrap; }
|
|
1670
|
+
.ss-w-props-at { font-style: normal; }
|
|
1671
|
+
.ss-w-props-opps--wide .ss-w-props-at { font-size: 6px; }
|
|
1672
|
+
.ss-w-props-bars--wide .ss-w-props-bar { background: var(--ss-w-accent); }
|
|
1673
|
+
.ss-w-props-bars--wide .ss-w-props-bar--under { background: color-mix(in srgb, var(--ss-w-faint) 40%, var(--ss-w-track)); }
|
|
1674
|
+
.ss-w-props-bars--wide .ss-w-props-val { font-size: 9.5px; padding: 0; }
|
|
1675
|
+
.ss-w-props-fact { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 8px 0; }
|
|
1676
|
+
.ss-w-props-fact + .ss-w-props-fact { border-top: 1px solid var(--ss-w-line); }
|
|
1677
|
+
.ss-w-props-fact-bet { font-size: 12px; color: var(--ss-w-ink); }
|
|
1678
|
+
.ss-w-props-fact-line { font-size: 11px; color: var(--ss-w-faint); }
|
|
1679
|
+
.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; }
|
|
1680
|
+
/* NFL Last 5 (u605): result rows, a spread chip where the game had an opening line, and the head-to-head list. */
|
|
1681
|
+
.ss-w-nflform-row { display: grid; grid-template-columns: 20px 52px minmax(0, 1fr) 44px; gap: 8px; align-items: center; min-height: 36px; border-top: 1px solid var(--ss-w-line); }
|
|
1682
|
+
.ss-w-nflform-badge { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; }
|
|
1683
|
+
.ss-w-nflform-badge--win { background: var(--ss-w-pos); color: var(--ss-w-cta-ink); }
|
|
1684
|
+
.ss-w-nflform-badge--loss { background: var(--ss-w-cta); color: var(--ss-w-cta-ink); }
|
|
1685
|
+
.ss-w-nflform-badge--tie { background: var(--ss-w-track); color: var(--ss-w-ink); }
|
|
1686
|
+
.ss-w-nflform-opp { font-size: 12.5px; font-weight: 600; }
|
|
1687
|
+
.ss-w-nflform-chipcell { justify-self: end; }
|
|
1688
|
+
.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; }
|
|
1689
|
+
.ss-w-nflform-score { font-size: 12.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
|
|
1690
|
+
.ss-w-nflform-note { margin: 0; font-size: 10.5px; color: var(--ss-w-faint); }
|
|
1691
|
+
.ss-w-nflform-h2h-sum { font-size: 12.5px; font-weight: 700; }
|
|
1692
|
+
.ss-w-nflform-h2h-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 36px; border-top: 1px solid var(--ss-w-line); }
|
|
1693
|
+
.ss-w-nflform-h2h-row .ss-w-nflform-score { text-align: left; font-weight: 600; }
|
|
1694
|
+
.ss-w-nflform-year { font-size: 11px; color: var(--ss-w-faint); font-variant-numeric: tabular-nums; }
|
|
1695
|
+
.ss-w-nflform-wbadge { display: grid; place-items: center; height: 22px; border-radius: 6px; font-size: 10.5px; font-weight: 800; color: #fff; }
|
|
1696
|
+
.ss-w-nflform-wbadge--home { background: var(--ss-w-home); }
|
|
1697
|
+
.ss-w-nflform-wbadge--away { background: var(--ss-w-away); }
|
|
1698
|
+
.ss-w-nflform-wbadge--tie { background: var(--ss-w-track); color: var(--ss-w-ink); }
|
|
1699
|
+
.ss-w-props-more { width: 100%; min-height: 44px; border: 0; border-top: 1px solid var(--ss-w-line); background: none; font: inherit; font-size: 12px; font-weight: 700; color: var(--ss-w-accent); cursor: pointer; }
|
|
1700
|
+
.ss-w-props-more:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: -2px; }
|
|
1701
|
+
.ss-w-props-scorers { display: flex; flex-direction: column; min-width: 0; }
|
|
1702
|
+
.ss-w-props-scorer { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 52px); grid-auto-flow: row dense; gap: 4px; align-items: center; padding: 5px 0; border-top: 1px solid var(--ss-w-line); }
|
|
1703
|
+
.ss-w-props-scorer-head { padding: 0 0 4px; border-top: 0; font-size: 10px; font-weight: 700; color: var(--ss-w-faint); text-align: center; }
|
|
1704
|
+
.ss-w-props-scorer-head span:first-child { text-align: left; }
|
|
1705
|
+
.ss-w-props-scorer-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1706
|
+
.ss-w-props-scorer-meta { font-size: 11px; color: var(--ss-w-faint); }
|
|
1707
|
+
.ss-w-props-scorer-none { text-align: center; color: var(--ss-w-faint); }
|
|
1708
|
+
.ss-w-props-scorer .ss-w-props-price, .ss-w-props-scorer .ss-w-slip-btn.ss-w-slip-btn--price { min-width: 0; min-height: 44px; padding: 0; justify-content: center; align-items: center; font-size: 12px; }
|
|
1709
|
+
.ss-w-props-fact .ss-w-slip, .ss-w-props-scorer .ss-w-slip { display: contents; }
|
|
1710
|
+
.ss-w-props-fact .ss-w-toast, .ss-w-props-scorer .ss-w-toast { position: static; grid-column: 1 / -1; width: auto; max-width: none; box-shadow: none; }
|
|
1655
1711
|
|
|
1656
1712
|
/* ---- Today tab (u355) ---- */
|
|
1657
1713
|
.ss-w-sec-head { display: flex; align-items: center; gap: 7px; padding: 2px 2px 0; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ss-w-faint); }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sensiblestats/widget-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.107.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.
|
|
41
|
+
"@sensiblestats/widget-sdk": "^0.74.0",
|
|
42
42
|
"react-markdown": "^9.0.1",
|
|
43
43
|
"remark-gfm": "^4.0.0"
|
|
44
44
|
},
|