@blank-utils/llm 0.4.6 → 0.4.8

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.
@@ -894,7 +894,7 @@ import { useRef as useRef3, useEffect as useEffect3, useState as useState3, useM
894
894
  // src/react/chat-input.tsx
895
895
  import "react";
896
896
  import { useRef as useRef2, useEffect as useEffect2, useCallback as useCallback2, useState as useState2 } from "react";
897
- import { Send, Square, Paperclip } from "lucide-react";
897
+ import "lucide-react";
898
898
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
899
899
  function ChatInput({
900
900
  value,
@@ -1064,7 +1064,6 @@ ${newText}` : newText);
1064
1064
  onClick: () => fileInputRef.current?.click(),
1065
1065
  title: "Attach image or PDF (Ctrl+V to paste)",
1066
1066
  children: [
1067
- /* @__PURE__ */ jsx2(Paperclip, { className: "w-3.5 h-3.5 opacity-70 group-hover:opacity-100 transition-opacity" }),
1068
1067
  /* @__PURE__ */ jsx2("span", { className: "text-[10px] font-bold tracking-[0.2em] uppercase whitespace-nowrap", children: "[ FILE ]" }),
1069
1068
  /* @__PURE__ */ jsx2("span", { className: "text-[9px] opacity-40 group-hover:opacity-60 transition-opacity tracking-widest whitespace-nowrap", children: "\u30D5\u30A1\u30A4\u30EB" })
1070
1069
  ]
@@ -1079,7 +1078,6 @@ ${newText}` : newText);
1079
1078
  className: "group flex items-center justify-center gap-2 px-4 py-2 rounded border bg-red-500/10 border-red-500/30 text-red-500 hover:bg-red-500/20 transition-all duration-300",
1080
1079
  onClick: onStop,
1081
1080
  children: [
1082
- /* @__PURE__ */ jsx2(Square, { className: "w-3.5 h-3.5 opacity-70 group-hover:opacity-100 transition-opacity" }),
1083
1081
  /* @__PURE__ */ jsx2("span", { className: "text-[10px] font-bold tracking-[0.2em] uppercase whitespace-nowrap", children: "[ STOP ]" }),
1084
1082
  /* @__PURE__ */ jsx2("span", { className: "text-[9px] opacity-40 group-hover:opacity-60 transition-opacity tracking-widest whitespace-nowrap", children: "\u505C\u6B62" })
1085
1083
  ]
@@ -1092,7 +1090,6 @@ ${newText}` : newText);
1092
1090
  onClick: onSend,
1093
1091
  disabled: !canSend,
1094
1092
  children: [
1095
- /* @__PURE__ */ jsx2(Send, { className: "w-3.5 h-3.5 opacity-70 group-hover:opacity-100 transition-opacity" }),
1096
1093
  /* @__PURE__ */ jsx2("span", { className: "text-[10px] font-bold tracking-[0.2em] uppercase whitespace-nowrap", children: "[ SEND ]" }),
1097
1094
  /* @__PURE__ */ jsx2("span", { className: "text-[9px] opacity-40 group-hover:opacity-60 transition-opacity tracking-widest whitespace-nowrap", children: "\u9001\u4FE1" })
1098
1095
  ]
@@ -1105,7 +1102,7 @@ ${newText}` : newText);
1105
1102
  }
1106
1103
 
1107
1104
  // src/react/components.tsx
1108
- import { RotateCcw, AlertCircle } from "lucide-react";
1105
+ import { AlertCircle } from "lucide-react";
1109
1106
  import { clsx } from "clsx";
1110
1107
  import { twMerge } from "tailwind-merge";
1111
1108
  import { Streamdown, parseMarkdownIntoBlocks } from "streamdown";
@@ -1471,7 +1468,6 @@ ${systemPrompt}` : systemPrompt;
1471
1468
  onClick: reload,
1472
1469
  className: "group flex items-center justify-center min-w-max gap-3 px-6 py-3 rounded-md border border-red-500/30 bg-red-500/10 text-red-500 hover:bg-red-500/20 transition-all duration-300",
1473
1470
  children: [
1474
- /* @__PURE__ */ jsx3(RotateCcw, { className: "w-4 h-4 opacity-70 group-hover:opacity-100 transition-opacity" }),
1475
1471
  /* @__PURE__ */ jsx3("span", { className: "text-[11px] font-bold tracking-[0.2em] uppercase", children: "[ REBOOT ]" }),
1476
1472
  /* @__PURE__ */ jsx3("span", { className: "text-[10px] opacity-40 group-hover:opacity-60 transition-opacity tracking-widest", children: "\u518D\u8D77\u52D5" })
1477
1473
  ]
package/dist/index.css CHANGED
@@ -2310,9 +2310,6 @@ video {
2310
2310
  .h-24 {
2311
2311
  height: 6rem;
2312
2312
  }
2313
- .h-3\.5 {
2314
- height: 0.875rem;
2315
- }
2316
2313
  .h-4 {
2317
2314
  height: 1rem;
2318
2315
  }
@@ -2355,9 +2352,6 @@ video {
2355
2352
  .w-24 {
2356
2353
  width: 6rem;
2357
2354
  }
2358
- .w-3\.5 {
2359
- width: 0.875rem;
2360
- }
2361
2355
  .w-4 {
2362
2356
  width: 1rem;
2363
2357
  }
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  useCompletion,
27
27
  useLLM,
28
28
  useStream
29
- } from "./chunk-RRDW7WNW.js";
29
+ } from "./chunk-S747S23T.js";
30
30
  export {
31
31
  Chat,
32
32
  ChatInput,
@@ -2310,9 +2310,6 @@ video {
2310
2310
  .h-24 {
2311
2311
  height: 6rem;
2312
2312
  }
2313
- .h-3\.5 {
2314
- height: 0.875rem;
2315
- }
2316
2313
  .h-4 {
2317
2314
  height: 1rem;
2318
2315
  }
@@ -2355,9 +2352,6 @@ video {
2355
2352
  .w-24 {
2356
2353
  width: 6rem;
2357
2354
  }
2358
- .w-3\.5 {
2359
- width: 0.875rem;
2360
- }
2361
2355
  .w-4 {
2362
2356
  width: 1rem;
2363
2357
  }
@@ -9,7 +9,7 @@ import {
9
9
  useCompletion,
10
10
  useLLM,
11
11
  useStream
12
- } from "../chunk-RRDW7WNW.js";
12
+ } from "../chunk-S747S23T.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.4.6",
3
+ "version": "0.4.8",
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",