@helpway/react 0.17.2 → 0.17.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helpway/react",
3
- "version": "0.17.2",
3
+ "version": "0.17.3",
4
4
  "description": "Official React SDK for Helpway — drop-in AI chat support widget with headless hooks for custom UIs.",
5
5
  "keywords": [
6
6
  "helpway",
@@ -1628,19 +1628,36 @@
1628
1628
 
1629
1629
  /* ── Streaming cursor ────────────────────── */
1630
1630
 
1631
- .hw-streaming-cursor {
1631
+ /* Drawn at the end of the last line of the answer: after the last paragraph's
1632
+ text, or the last item of a list that ends it. A code block that ends an
1633
+ answer gets none.
1634
+
1635
+ It fades, it does not switch. The old cursor went from 0.6 to 0 in one step
1636
+ every 0.8s, a hard flash at the end of text that is itself moving. */
1637
+ .hw-msg-bubble--live > span > :last-child:not(ol, ul, pre)::after,
1638
+ .hw-msg-bubble--live > span > :is(ol, ul):last-child > li:last-child::after {
1639
+ content: "";
1632
1640
  display: inline-block;
1633
1641
  width: 2px;
1634
1642
  height: 1em;
1643
+ border-radius: 1px;
1635
1644
  background: currentColor;
1636
- opacity: 0.6;
1637
- margin-left: 1px;
1645
+ opacity: 0.5;
1646
+ margin-left: 2px;
1638
1647
  vertical-align: text-bottom;
1639
- animation: hw-cursor-blink 0.8s step-end infinite;
1648
+ animation: hw-cursor-breathe 1.1s ease-in-out infinite;
1649
+ }
1650
+
1651
+ @keyframes hw-cursor-breathe {
1652
+ 0%, 100% { opacity: 0.5; }
1653
+ 50% { opacity: 0.12; }
1640
1654
  }
1641
1655
 
1642
- @keyframes hw-cursor-blink {
1643
- 50% { opacity: 0; }
1656
+ @media (prefers-reduced-motion: reduce) {
1657
+ .hw-msg-bubble--live > span > :last-child:not(ol, ul, pre)::after,
1658
+ .hw-msg-bubble--live > span > :is(ol, ul):last-child > li:last-child::after {
1659
+ animation: none;
1660
+ }
1644
1661
  }
1645
1662
 
1646
1663
  /* ── Link preview card ───────────────────── */