@sensiblestats/widget-react 0.64.0 → 0.66.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 +1778 -1641
- 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 +1658 -1521
- package/dist/index.js.map +1 -1
- package/dist/styles.css +41 -17
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
.ss-w-bi-book { font-size: 9.5px; color: var(--ss-w-faint); }
|
|
353
353
|
.ss-w-bi-pick-row .ss-w-slip { flex: none; }
|
|
354
354
|
|
|
355
|
-
/* row 3: bar-chart glyph + reasoning prose
|
|
355
|
+
/* row 3: bar-chart glyph + reasoning prose, in a subtle strip */
|
|
356
356
|
.ss-w-bi-reason { display: flex; align-items: flex-start; gap: 8px; background: var(--ss-w-bubble); border-radius: 10px; padding: 8px 10px; }
|
|
357
357
|
.ss-w-bi-chart { flex: none; width: 13px; height: 12px; margin-top: 2px; opacity: .55;
|
|
358
358
|
background:
|
|
@@ -361,23 +361,8 @@
|
|
|
361
361
|
linear-gradient(var(--ss-w-accent), var(--ss-w-accent)) right / 3px 75% no-repeat;
|
|
362
362
|
background-position: left bottom, center bottom, right bottom;
|
|
363
363
|
}
|
|
364
|
-
.ss-w-bi-
|
|
365
|
-
.ss-w-bi-text { font-size: 12px; line-height: 1.45; color: var(--ss-w-ink); }
|
|
366
|
-
.ss-w-bi-text-clamp { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
367
|
-
.ss-w-bi-expand { flex: none; align-self: center; display: grid; place-items: center; width: 22px; height: 22px; margin: -2px -4px -2px 0; background: none; border: none; color: var(--ss-w-faint); cursor: pointer; }
|
|
368
|
-
.ss-w-bi-expand:hover { color: var(--ss-w-ink); }
|
|
369
|
-
.ss-w-bi-arrow { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
|
|
370
|
-
.ss-w-bi-arrow-open { transform: rotate(135deg); }
|
|
371
|
-
.ss-w-bi-rows { display: flex; flex-direction: column; }
|
|
372
|
-
.ss-w-bi-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--ss-w-line); }
|
|
373
|
-
.ss-w-bi-row:first-child { border-top: none; }
|
|
374
|
-
.ss-w-bi-row-lbl { font-size: 11.5px; color: var(--ss-w-faint); min-width: 0; }
|
|
375
|
-
.ss-w-bi-row-num { font-family: ui-monospace, monospace; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; flex: none; color: var(--ss-w-ink); }
|
|
364
|
+
.ss-w-bi-text { flex: 1; min-width: 0; font-size: 12px; line-height: 1.45; color: var(--ss-w-ink); }
|
|
376
365
|
.ss-w-bi-disc { font-size: 10px; font-style: italic; color: var(--ss-w-faint); }
|
|
377
|
-
.ss-w-bi-scoped { display: flex; flex-direction: column; gap: 8px; }
|
|
378
|
-
.ss-w-bi-scopes { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; align-self: flex-start; background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); border-radius: 9px; padding: 2px; }
|
|
379
|
-
.ss-w-bi-chip { font-size: 11px; font-weight: 600; border: none; border-radius: 7px; padding: 4px 10px; color: var(--ss-w-faint); background: none; cursor: pointer; }
|
|
380
|
-
.ss-w-bi-chip[aria-pressed="true"] { color: var(--ss-w-ink); background: var(--ss-w-panel); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
|
|
381
366
|
|
|
382
367
|
/* market odds card */
|
|
383
368
|
.ss-w-mocards { display: flex; flex-direction: column; gap: 7px; }
|
|
@@ -394,6 +379,8 @@
|
|
|
394
379
|
.ss-w-mo-more-chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
|
|
395
380
|
.ss-w-mo-more-chev-up { transform: translateY(1px) rotate(-135deg); }
|
|
396
381
|
.ss-w-mo-rows { display: flex; flex-direction: column; gap: 4px; }
|
|
382
|
+
/* The card's stat, in the Live tab accordion's insight style. No row below it is marked (R17). */
|
|
383
|
+
.ss-w-mo-stat { font-size: 12px; color: var(--ss-w-ink); background: color-mix(in srgb, var(--ss-w-accent) 9%, var(--ss-w-panel)); border-radius: 8px; padding: 7px 9px; }
|
|
397
384
|
.ss-w-mo-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--ss-w-line); }
|
|
398
385
|
.ss-w-mo-row:last-child { border-bottom: none; }
|
|
399
386
|
.ss-w-mo-sel { font-size: 12.5px; font-weight: 600; color: var(--ss-w-ink); flex: 1; min-width: 0; }
|
|
@@ -410,6 +397,40 @@
|
|
|
410
397
|
.ss-w-mo-row .ss-w-slip { margin: 0; flex: none; }
|
|
411
398
|
.ss-w-mo-foot { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ss-w-faint); }
|
|
412
399
|
|
|
400
|
+
/* Compact price list (D16): three or more cards of one turn, one row per fixture. Team names wrap
|
|
401
|
+
to a second line and are never cut; the time sits above the match pin, with no column of its own. */
|
|
402
|
+
.ss-w-mol { background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; border-left: 3px solid var(--ss-w-accent); padding: 9px 11px; display: flex; flex-direction: column; gap: 6px; }
|
|
403
|
+
.ss-w-mol-head, .ss-w-mol-row { display: grid; grid-template-columns: minmax(0, 1fr) 126px 30px; align-items: center; gap: 4px; }
|
|
404
|
+
.ss-w-mol-market { font-size: 11.5px; font-weight: 600; color: var(--ss-w-faint); min-width: 0; overflow-wrap: anywhere; }
|
|
405
|
+
.ss-w-mol-cols, .ss-w-mol-cells { display: grid; gap: 4px; }
|
|
406
|
+
.ss-w-mol-col { font-size: 10px; font-weight: 700; color: var(--ss-w-faint); text-align: center; overflow-wrap: break-word; min-width: 0; }
|
|
407
|
+
.ss-w-mol-comp { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ss-w-faint); padding-top: 4px; }
|
|
408
|
+
.ss-w-mol-row { padding: 6px 0; border-bottom: 1px dashed var(--ss-w-line); min-height: 48px; box-sizing: border-box; }
|
|
409
|
+
.ss-w-mol-group .ss-w-mol-row:last-child { border-bottom: none; }
|
|
410
|
+
.ss-w-mol-fx { display: flex; flex-direction: column; gap: 3px; min-width: 0; background: none; border: none; padding: 0; text-align: left; font: inherit; color: inherit; }
|
|
411
|
+
.ss-w-mol-team { display: flex; align-items: center; gap: 5px; min-width: 0; }
|
|
412
|
+
.ss-w-mol-team > * { flex: none; }
|
|
413
|
+
.ss-w-mol-team > .ss-w-mol-nm { flex: 1 1 auto; }
|
|
414
|
+
.ss-w-mol-nm { font-size: 12.5px; font-weight: 600; color: var(--ss-w-ink); overflow-wrap: break-word; hyphens: manual; line-height: 1.2; min-width: 0; }
|
|
415
|
+
.ss-w-mol-mkt { font-size: 10.5px; font-weight: 600; color: var(--ss-w-faint); overflow-wrap: anywhere; }
|
|
416
|
+
.ss-w-mol-cells { align-items: start; }
|
|
417
|
+
.ss-w-mol-cell { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; }
|
|
418
|
+
.ss-w-mol-cell > .ss-w-mol-price { flex: none; }
|
|
419
|
+
.ss-w-mol-cell .ss-w-move { justify-content: center; gap: 2px; }
|
|
420
|
+
.ss-w-mol-cell .ss-w-move-prev { font-family: inherit; font-variant-numeric: tabular-nums; font-size: 10px; }
|
|
421
|
+
/* A 39 px cell fits four characters at 13 px: five step down to 11.5 px and six to 10.5 px. */
|
|
422
|
+
.ss-w-mol-cell--wide .ss-w-mol-price, .ss-w-mol-cell--wide .ss-w-slip-btn.ss-w-slip-btn--price { font-size: 11.5px; }
|
|
423
|
+
.ss-w-mol-cell--wider .ss-w-mol-price, .ss-w-mol-cell--wider .ss-w-slip-btn.ss-w-slip-btn--price { font-size: 10.5px; }
|
|
424
|
+
.ss-w-mol-cell .ss-w-slip { margin: 0; flex: none; min-width: 0; }
|
|
425
|
+
.ss-w-mol-price, .ss-w-slip-btn--price { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 5px 0; border-radius: 8px; border: 1px solid var(--ss-w-line); background: var(--ss-w-panel); font-family: inherit; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; color: var(--ss-w-accent); }
|
|
426
|
+
.ss-w-slip-btn.ss-w-slip-btn--price { width: 100%; cursor: pointer; background: var(--ss-w-panel); color: var(--ss-w-accent); border: 1px solid var(--ss-w-line); border-radius: 8px; padding: 5px 0; font-size: 13px; font-weight: 700; box-shadow: none; }
|
|
427
|
+
.ss-w-slip-btn--price:hover:not(:disabled) { border-color: var(--ss-w-accent); }
|
|
428
|
+
.ss-w-slip-btn--price[data-settled] { color: var(--ss-w-faint); }
|
|
429
|
+
.ss-w-mol-lab { font-family: inherit; font-size: 9.5px; font-weight: 600; color: var(--ss-w-faint); line-height: 1.1; text-align: center; overflow-wrap: anywhere; }
|
|
430
|
+
.ss-w-mol-side { display: flex; flex-direction: column; align-items: center; gap: 4px; }
|
|
431
|
+
.ss-w-mol-when { font-size: 9.5px; font-weight: 700; color: var(--ss-w-faint); font-variant-numeric: tabular-nums; text-align: center; line-height: 1.15; }
|
|
432
|
+
.ss-w-mol-side--live .ss-w-mol-when { color: var(--ss-w-neg); }
|
|
433
|
+
|
|
413
434
|
/* odds movement card */
|
|
414
435
|
.ss-w-omcards { display: flex; flex-direction: column; gap: 7px; }
|
|
415
436
|
.ss-w-omcard { background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; border-left: 3px solid var(--ss-w-accent); padding: 9px 11px; display: flex; flex-direction: column; gap: 6px; }
|
|
@@ -477,6 +498,9 @@
|
|
|
477
498
|
.ss-w-pin:hover { color: var(--ss-w-ink); border-color: var(--ss-w-faint); }
|
|
478
499
|
.ss-w-pin[data-on] { background: var(--ss-w-accent); border-color: var(--ss-w-accent); color: #fff; }
|
|
479
500
|
.ss-w-pin[data-on]:hover { background: var(--ss-w-accent); color: #fff; }
|
|
501
|
+
.ss-w-hist { flex: none; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%; background: none; border: 1px solid var(--ss-w-line); color: var(--ss-w-faint); cursor: pointer; }
|
|
502
|
+
.ss-w-hist svg { width: 12px; height: 12px; }
|
|
503
|
+
.ss-w-hist:hover { color: var(--ss-w-accent); border-color: var(--ss-w-accent); }
|
|
480
504
|
|
|
481
505
|
@media (prefers-reduced-motion: reduce) {
|
|
482
506
|
.ss-w-abtn-shimmer { animation: none; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sensiblestats/widget-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.66.0",
|
|
4
4
|
"description": "Embeddable SensibleStats chat widget for React.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"prepublishOnly": "yarn build"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@sensiblestats/widget-sdk": "^0.
|
|
40
|
+
"@sensiblestats/widget-sdk": "^0.41.0",
|
|
41
41
|
"react-markdown": "^9.0.1",
|
|
42
42
|
"remark-gfm": "^4.0.0"
|
|
43
43
|
},
|