@sensiblestats/widget-react 0.97.0 → 0.98.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/dist/styles.css CHANGED
@@ -1199,6 +1199,18 @@
1199
1199
  .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; }
1200
1200
  .ss-w-mon-min { flex: none; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
1201
1201
  .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; }
1202
+ /* Placeholder shapes for a pin with no data yet. Sizes match the real card's rows (24px crest,
1203
+ 26px score line, the 22px pin that sets the top row) so the card does not jump when data lands. */
1204
+ .ss-w-mon-skel { cursor: progress; }
1205
+ .ss-w-skel { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--ss-w-bubble), var(--ss-w-line), var(--ss-w-bubble)); background-size: 200% 100%; animation: ss-w-shimmer 1.2s infinite; }
1206
+ .ss-w-skel-pill { width: 64px; height: 18px; margin-right: auto; }
1207
+ .ss-w-skel-crest { flex: none; width: 24px; height: 24px; border-radius: 50%; }
1208
+ .ss-w-skel-name { flex: 1; height: 13px; }
1209
+ .ss-w-skel-score { width: 44px; height: 26px; }
1210
+ .ss-w-acc-load { height: 100px; border-radius: 8px; }
1211
+ @media (prefers-reduced-motion: reduce) {
1212
+ .ss-w-skel { animation: none; background: var(--ss-w-line); }
1213
+ }
1202
1214
  .ss-w-mon-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
1203
1215
  .ss-w-mon-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
1204
1216
  .ss-w-mon-side--away { flex-direction: row-reverse; text-align: right; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-react",
3
- "version": "0.97.0",
3
+ "version": "0.98.0",
4
4
  "description": "Embeddable SensibleStats chat widget for React.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",