agentic-ui-kit 0.2.0 → 0.2.1
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 +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -982,7 +982,10 @@ function useSmoothText(text, streaming) {
|
|
|
982
982
|
s,
|
|
983
983
|
prefersReducedMotion
|
|
984
984
|
]);
|
|
985
|
-
useEffect(() => () =>
|
|
985
|
+
useEffect(() => () => {
|
|
986
|
+
cancelAnimationFrame(s.frame);
|
|
987
|
+
s.frame = 0;
|
|
988
|
+
}, [s]);
|
|
986
989
|
return shown;
|
|
987
990
|
}
|
|
988
991
|
/** Moves `index` forward to the end of the word it falls in, so words are never cut in half. */
|
package/package.json
CHANGED