@sensiblestats/widget-react 0.125.0 → 0.127.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 +22 -0
- package/dist/index.cjs +1819 -1413
- 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 +1769 -1363
- package/dist/index.js.map +1 -1
- package/dist/styles.css +82 -4
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -467,6 +467,11 @@
|
|
|
467
467
|
.ss-w-nba-mu-pos { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ss-w-ink); }
|
|
468
468
|
.ss-w-nba-small { display: inline-block; font-size: 10px; font-weight: 600; line-height: 1.3; color: var(--ss-w-warn); border: 1px solid var(--ss-w-warn); border-radius: 999px; padding: 0 6px; white-space: nowrap; }
|
|
469
469
|
.ss-w-nba-mu-pos .ss-w-nba-small { margin-left: 6px; }
|
|
470
|
+
.ss-w-nba-vs, .ss-w-nba-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
|
|
471
|
+
.ss-w-nba-vs > *, .ss-w-nba-mu-price > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
472
|
+
.ss-w-nba-vs .ss-w-nba-figl { white-space: normal; overflow-wrap: anywhere; }
|
|
473
|
+
.ss-w-nba-pair .ss-w-nba-pcell { justify-content: flex-start; }
|
|
474
|
+
.ss-w-nba-mu-price { display: grid; gap: 4px; margin-top: 6px; }
|
|
470
475
|
.ss-w-nba-sr-player { display: flex; flex-direction: column; gap: 6px; }
|
|
471
476
|
.ss-w-nba-sr{grid-template-columns:minmax(0,1fr) 44px 44px 54px;align-items:center}
|
|
472
477
|
.ss-w-nba-sr-line { display: contents; }
|
|
@@ -609,10 +614,10 @@
|
|
|
609
614
|
.ss-w-combo-leg { display: flex; flex-direction: column; gap: 5px; padding: 8px 0; border-bottom: 1px dashed var(--ss-w-line); }
|
|
610
615
|
.ss-w-combo-leg:last-child { border-bottom: none; padding-bottom: 2px; }
|
|
611
616
|
.ss-w-combo-leg-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
|
|
612
|
-
.ss-w-combo-leg-pick { display: flex; align-items: center; gap: 9px; min-width: 0; }
|
|
613
|
-
.ss-w-combo-leg-what { flex: 1; min-width:
|
|
614
|
-
.ss-w-combo-leg-market { font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--ss-w-faint); overflow-wrap:
|
|
615
|
-
.ss-w-combo-leg-sel { font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ss-w-ink); overflow-wrap:
|
|
617
|
+
.ss-w-combo-leg-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; min-width: 0; }
|
|
618
|
+
.ss-w-combo-leg-what { flex: 1 1 7rem; min-width: min(100%, 7rem); display: flex; flex-direction: column; gap: 1px; }
|
|
619
|
+
.ss-w-combo-leg-market { font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--ss-w-faint); overflow-wrap: break-word; }
|
|
620
|
+
.ss-w-combo-leg-sel { font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ss-w-ink); overflow-wrap: break-word; }
|
|
616
621
|
.ss-w-combo-leg-price { flex: none; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 800; line-height: 1.05; color: var(--ss-w-accent); }
|
|
617
622
|
.ss-w-combo-leg-pick .ss-w-slip { flex: none; }
|
|
618
623
|
.ss-w-combo-leg-stat { font-size: 12px; line-height: 1.45; color: var(--ss-w-ink); background: var(--ss-w-bubble); border-radius: 8px; padding: 6px 9px; }
|
|
@@ -766,6 +771,7 @@
|
|
|
766
771
|
.ss-w-limit:focus { outline: none; }
|
|
767
772
|
.ss-w-limit:not(:empty) + .ss-w-input { border-top: none; }
|
|
768
773
|
.ss-w-textarea { flex: 1; resize: none; border: 1px solid var(--ss-w-line); border-radius: 12px; padding: 8px 10px; font: inherit; color: inherit; background: var(--ss-w-panel); max-height: 96px; }
|
|
774
|
+
.ss-w-textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
769
775
|
.ss-w-textarea:disabled { opacity: .55; cursor: not-allowed; }
|
|
770
776
|
/* iOS Safari zooms the page when a focused field's font-size is < 16px. Bump it
|
|
771
777
|
on touch devices only, so the desktop 13px design is unchanged. */
|
|
@@ -1374,6 +1380,7 @@
|
|
|
1374
1380
|
.ss-w-trow-when { min-width: 0; font-size: 11px; font-weight: 700; color: var(--ss-w-faint); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|
|
1375
1381
|
.ss-w-trow-when--tba { font-size: 10px; font-weight: 600; line-height: 1.15; }
|
|
1376
1382
|
.ss-w-trow-live { color: var(--ss-w-neg); }
|
|
1383
|
+
.ss-w-trow-when--end { font-size: 9.5px; font-weight: 700; line-height: 1.15; overflow-wrap: normal; margin-right: -4px; }
|
|
1377
1384
|
.ss-w-trow--live { background: color-mix(in srgb, var(--ss-w-neg) 5%, transparent); border-radius: 8px; padding: 7px 6px; margin: 0 -6px; border-bottom: none; }
|
|
1378
1385
|
.ss-w-trow-players { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
|
|
1379
1386
|
.ss-w-trow-pl { display: flex; align-items: center; gap: 5px; min-width: 0; }
|
|
@@ -1433,6 +1440,77 @@
|
|
|
1433
1440
|
.ss-w-tn-ask { align-self: stretch; min-height: 40px; border: 1px solid var(--ss-w-line); border-radius: 20px; background: var(--ss-w-bubble); font: inherit; font-size: 13px; font-weight: 650; color: var(--ss-w-ink); cursor: pointer; padding: 8px 14px; }
|
|
1434
1441
|
.ss-w-tn-ask:hover { border-color: var(--ss-w-accent); }
|
|
1435
1442
|
.ss-w-tn-ask:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
|
|
1443
|
+
|
|
1444
|
+
/* tennis live: Live tab row */
|
|
1445
|
+
.ss-w-trow-set { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; letter-spacing: 0; color: var(--ss-w-faint); overflow-wrap: anywhere; }
|
|
1446
|
+
.ss-w-trow-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
|
|
1447
|
+
.ss-w-trow-line .ss-w-trow-pl { flex: 1 1 auto; min-width: 0; }
|
|
1448
|
+
.ss-w-trow-games { display: inline-flex; flex: none; gap: 7px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ss-w-faint); }
|
|
1449
|
+
.ss-w-trow-g { min-width: 10px; text-align: center; }
|
|
1450
|
+
.ss-w-trow-g--now { color: var(--ss-w-ink); font-weight: 800; }
|
|
1451
|
+
.ss-w-trow-tb { font-size: 8px; font-weight: 700; margin-left: 1px; }
|
|
1452
|
+
.ss-w-trow-srv { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ss-w-pos); }
|
|
1453
|
+
.ss-w-trow-game { font-weight: 700; color: var(--ss-w-ink); font-variant-numeric: tabular-nums; }
|
|
1454
|
+
.ss-w-lp-foot { padding: 8px 2px 2px; font-size: 11px; font-weight: 600; line-height: 1.35; color: var(--ss-w-faint); overflow-wrap: anywhere; }
|
|
1455
|
+
|
|
1456
|
+
/* tennis live: pinned card */
|
|
1457
|
+
.ss-w-tn-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; font-size: 12px; font-weight: 700; color: var(--ss-w-ink); }
|
|
1458
|
+
.ss-w-tn-status > span { min-width: 0; overflow-wrap: anywhere; }
|
|
1459
|
+
.ss-w-tn-elapsed { color: var(--ss-w-faint); font-variant-numeric: tabular-nums; }
|
|
1460
|
+
.ss-w-tn-endscore { font-variant-numeric: tabular-nums; }
|
|
1461
|
+
.ss-w-tn-end { color: var(--ss-w-faint); }
|
|
1462
|
+
.ss-w-tn-live { width: 100%; table-layout: fixed; border-collapse: collapse; font-variant-numeric: tabular-nums; }
|
|
1463
|
+
.ss-w-tn-live th, .ss-w-tn-live td { padding: 6px 2px; border-bottom: 1px solid var(--ss-w-line); font-size: 14px; font-weight: 700; color: var(--ss-w-ink); text-align: center; }
|
|
1464
|
+
.ss-w-tn-live tr:last-child th, .ss-w-tn-live tr:last-child td { border-bottom: none; }
|
|
1465
|
+
.ss-w-tn-live thead th { padding: 0 2px 4px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ss-w-faint); }
|
|
1466
|
+
.ss-w-tn-live thead th:first-child, .ss-w-tn-live tbody th { width: auto; text-align: left; }
|
|
1467
|
+
.ss-w-tn-live tbody th { display: table-cell; font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
|
|
1468
|
+
.ss-w-tn-live th.ss-w-tn-sc, .ss-w-tn-live td.ss-w-tn-sc { width: 30px; }
|
|
1469
|
+
.ss-w-tn-live th.ss-w-tn-gc, .ss-w-tn-live td.ss-w-tn-gc { width: 40px; }
|
|
1470
|
+
.ss-w-tn-live td.ss-w-tn-game { font-weight: 800; background: color-mix(in srgb, var(--ss-w-accent) 10%, transparent); border-radius: 6px; }
|
|
1471
|
+
.ss-w-tn-live td.ss-w-tn-now { font-weight: 800; }
|
|
1472
|
+
.ss-w-tn-live td.ss-w-tn-done { color: var(--ss-w-faint); }
|
|
1473
|
+
.ss-w-tn-live td.ss-w-tn-won { color: var(--ss-w-ink); font-weight: 800; }
|
|
1474
|
+
.ss-w-tn-tb { font-size: 8px; font-weight: 700; vertical-align: super; }
|
|
1475
|
+
.ss-w-tn-cc { display: inline-block; margin-right: 5px; padding: 1px 3px; font-size: 8px; font-weight: 800; line-height: 14px; color: var(--ss-w-faint); background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); border-radius: 4px; vertical-align: middle; }
|
|
1476
|
+
.ss-w-tn-srv { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--ss-w-pos); vertical-align: middle; }
|
|
1477
|
+
.ss-w-tn-serving { margin: 0; font-size: 10.5px; font-weight: 600; line-height: 1.35; color: var(--ss-w-faint); overflow-wrap: anywhere; }
|
|
1478
|
+
.ss-w-tn-paused .ss-w-trow-price, .ss-w-tn-paused .ss-w-tn-pv { opacity: .45; }
|
|
1479
|
+
.ss-w-tn-paused-label { margin: 0; font-size: 12px; font-weight: 750; color: var(--ss-w-warn); overflow-wrap: anywhere; }
|
|
1480
|
+
.ss-w-tn-setline { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--ss-w-ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
|
|
1481
|
+
|
|
1482
|
+
/* tennis live: serve and return tables */
|
|
1483
|
+
.ss-w-ts { container-type: inline-size; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
|
|
1484
|
+
.ss-w-ts-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
1485
|
+
.ss-w-ts-tab { min-height: 28px; padding: 3px 12px; font: inherit; font-size: 12px; font-weight: 700; color: var(--ss-w-ink); background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 999px; cursor: pointer; }
|
|
1486
|
+
.ss-w-ts-tab[aria-selected="true"] { color: #fff; background: var(--ss-w-accent); border-color: var(--ss-w-accent); }
|
|
1487
|
+
.ss-w-ts-tab:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
|
|
1488
|
+
.ss-w-ts-block { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
|
1489
|
+
.ss-w-ts-cap { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ss-w-faint); }
|
|
1490
|
+
.ss-w-ts-cap > span { min-width: 0; overflow-wrap: anywhere; }
|
|
1491
|
+
.ss-w-ts-row { display: grid; grid-template-columns: 44px minmax(0,1fr) minmax(0,1fr) 44px; align-items: center; gap: 2px 6px; min-width: 0; }
|
|
1492
|
+
.ss-w-ts-l { grid-column: 1 / -1; min-width: 0; text-align: center; font-size: 11px; font-weight: 600; line-height: 1.25; color: var(--ss-w-faint); }
|
|
1493
|
+
.ss-w-ts-l-short { display: none; }
|
|
1494
|
+
.ss-w-ts-v { font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
|
|
1495
|
+
.ss-w-ts-v--a { text-align: left; }
|
|
1496
|
+
.ss-w-ts-v--b { text-align: right; }
|
|
1497
|
+
.ss-w-ts-bar { height: 6px; border-radius: 3px; background: var(--ss-w-line); overflow: hidden; display: flex; }
|
|
1498
|
+
.ss-w-ts-bar--a { justify-content: flex-end; }
|
|
1499
|
+
.ss-w-ts-fill { display: block; height: 100%; border-radius: 3px; background: var(--ss-w-accent); }
|
|
1500
|
+
.ss-w-ts-bar--b .ss-w-ts-fill { background: var(--ss-w-faint); }
|
|
1501
|
+
.ss-w-ts-note { margin: 0; font-size: 10.5px; font-weight: 600; line-height: 1.35; color: var(--ss-w-faint); overflow-wrap: anywhere; }
|
|
1502
|
+
.ss-w-ts-today { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,auto) minmax(0,1fr); gap: 0 8px; align-items: baseline; }
|
|
1503
|
+
.ss-w-ts-today-v { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
|
|
1504
|
+
.ss-w-ts-today-h { font-size: 10px; font-weight: 600; letter-spacing: .02em; color: var(--ss-w-faint); }
|
|
1505
|
+
.ss-w-ts-today-h--a { grid-column: 1; text-align: left; }
|
|
1506
|
+
.ss-w-ts-today-h--b { grid-column: 3; text-align: right; }
|
|
1507
|
+
.ss-w-ts-today-v--a { text-align: left; }
|
|
1508
|
+
.ss-w-ts-today-v--b { grid-column: 3; text-align: right; }
|
|
1509
|
+
@container (max-width: 340px) {
|
|
1510
|
+
.ss-w-ts-l-full { display: none; }
|
|
1511
|
+
.ss-w-ts-l-short { display: inline; }
|
|
1512
|
+
.ss-w-ts-row { grid-template-columns: 38px minmax(0,1fr) minmax(0,1fr) 38px; }
|
|
1513
|
+
}
|
|
1436
1514
|
.ss-w-lg-showall { align-self: flex-start; min-height: 28px; background: none; border: none; font: inherit; font-size: 11px; font-weight: 700; color: var(--ss-w-faint); cursor: pointer; padding: 4px 2px 0; }
|
|
1437
1515
|
.ss-w-lg-showall:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: -2px; }
|
|
1438
1516
|
.ss-w-fav { gap: 14px; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sensiblestats/widget-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.127.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.91.0",
|
|
43
43
|
"react-markdown": "^9.0.1",
|
|
44
44
|
"remark-gfm": "^4.0.0"
|
|
45
45
|
},
|