@livechat/design-system-react-components 2.5.4 → 2.5.5

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/index.js CHANGED
@@ -542,9 +542,14 @@ const os = (e) => e === "dark" ? Dt.Dark : Dt.Light, M_ = uo(void 0), ns = () =>
542
542
  const [r, _] = g.useState(e), [o, n] = g.useState(e), [i, c] = g.useState(e), s = () => _(!1);
543
543
  return g.useEffect(() => {
544
544
  const l = a.current;
545
- if (!i && l && (l.addEventListener("transitionend", s, {
546
- once: !0
547
- }), n(!1)), i) {
545
+ if (!i && l)
546
+ return l.addEventListener("transitionend", s), n(!1), () => {
547
+ l.removeEventListener(
548
+ "transitionend",
549
+ s
550
+ );
551
+ };
552
+ if (i) {
548
553
  _(!0), requestAnimationFrame(() => n(!0));
549
554
  return;
550
555
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/design-system-react-components",
3
- "version": "2.5.4",
3
+ "version": "2.5.5",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -86,5 +86,5 @@
86
86
  "react-transition-group": "^4.4.2",
87
87
  "react-virtuoso": "^4.7.11"
88
88
  },
89
- "gitHead": "9af77aafe3c7d5d16b74b341138b130012cb06ad"
89
+ "gitHead": "82f40359e5aac80547c96f657471496fc2acaba9"
90
90
  }