@blank-utils/llm 0.3.4 → 0.3.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.
@@ -1712,12 +1712,29 @@ function injectChatStyles(theme) {
1712
1712
  background: ${d ? "rgba(255,50,50,0.08)" : "rgba(200,0,0,0.04)"};
1713
1713
  }
1714
1714
 
1715
- /* Input Area */
1716
1715
  .llm-chat-input-area {
1717
1716
  padding: 12px 16px 16px;
1718
1717
  border-top: 1px solid ${borderSubtle};
1719
1718
  }
1720
1719
 
1720
+ /* Streamdown Animation CSS */
1721
+ @keyframes sd-fadeIn {
1722
+ from { opacity: 0; }
1723
+ to { opacity: 1; }
1724
+ }
1725
+ @keyframes sd-blurIn {
1726
+ from { opacity: 0; filter: blur(4px); }
1727
+ to { opacity: 1; filter: blur(0); }
1728
+ }
1729
+ @keyframes sd-slideUp {
1730
+ from { opacity: 0; transform: translateY(4px); }
1731
+ to { opacity: 1; transform: translateY(0); }
1732
+ }
1733
+ [data-sd-animate] {
1734
+ animation: var(--sd-animation, sd-fadeIn) var(--sd-duration, 150ms)
1735
+ var(--sd-easing, ease) both;
1736
+ }
1737
+
1721
1738
  @keyframes llm-pulse {
1722
1739
  0%, 100% { opacity: 1; }
1723
1740
  50% { opacity: 0.2; }
@@ -1997,6 +2014,8 @@ function Chat({
1997
2014
  Streamdown,
1998
2015
  {
1999
2016
  plugins: { code, mermaid },
2017
+ animated: true,
2018
+ isAnimating: false,
2000
2019
  children: msg.content
2001
2020
  }
2002
2021
  ) }) }, i)),
@@ -2004,6 +2023,8 @@ function Chat({
2004
2023
  Streamdown,
2005
2024
  {
2006
2025
  plugins: { code, mermaid },
2026
+ animated: true,
2027
+ isAnimating: isGenerating,
2007
2028
  children: streamingText
2008
2029
  }
2009
2030
  ) }) }),
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  useCompletion,
27
27
  useLLM,
28
28
  useStream
29
- } from "./chunk-365XIJLC.js";
29
+ } from "./chunk-PA7F4CD6.js";
30
30
  export {
31
31
  Chat,
32
32
  ChatInput,
@@ -9,7 +9,7 @@ import {
9
9
  useCompletion,
10
10
  useLLM,
11
11
  useStream
12
- } from "../chunk-365XIJLC.js";
12
+ } from "../chunk-PA7F4CD6.js";
13
13
  export {
14
14
  Chat,
15
15
  ChatApp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blank-utils/llm",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Run LLMs directly in your browser with WebGPU acceleration. Supports React hooks and eager background loading.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",