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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. 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(() => () => cancelAnimationFrame(s.frame), [s]);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-ui-kit",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "React UI kit for LLM chat and agentic apps: streaming messages, tool calls, approvals, themable with CSS variables.",
5
5
  "license": "MIT",
6
6
  "type": "module",