@blank-utils/llm 0.4.5 → 0.4.6
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/{chunk-UTUSTRC5.js → chunk-RRDW7WNW.js} +15 -15
- package/dist/index.css +10 -13
- package/dist/index.js +1 -1
- package/dist/react/index.css +10 -13
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
|
@@ -1053,48 +1053,48 @@ ${newText}` : newText);
|
|
|
1053
1053
|
className: "w-full min-h-[24px] max-h-[200px] resize-none border-none outline-none bg-transparent text-current text-[13px] font-light font-mono leading-relaxed p-0 m-0 placeholder:text-current placeholder:opacity-30 placeholder:uppercase placeholder:tracking-[0.2em] scrollbar-none"
|
|
1054
1054
|
}
|
|
1055
1055
|
),
|
|
1056
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex
|
|
1057
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-
|
|
1056
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between mt-6", children: [
|
|
1057
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-3 flex-wrap", children: [
|
|
1058
1058
|
modelSelector && /* @__PURE__ */ jsx2("div", { children: modelSelector }),
|
|
1059
1059
|
/* @__PURE__ */ jsxs2(
|
|
1060
1060
|
"button",
|
|
1061
1061
|
{
|
|
1062
1062
|
type: "button",
|
|
1063
|
-
className: "group flex
|
|
1063
|
+
className: "group flex items-center justify-center gap-2 px-4 py-2 rounded border bg-transparent border-current/20 text-current hover:bg-current/5 transition-all duration-300",
|
|
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-
|
|
1068
|
-
/* @__PURE__ */ jsx2("span", { className: "text-[
|
|
1069
|
-
/* @__PURE__ */ jsx2("span", { className: "text-[
|
|
1067
|
+
/* @__PURE__ */ jsx2(Paperclip, { className: "w-3.5 h-3.5 opacity-70 group-hover:opacity-100 transition-opacity" }),
|
|
1068
|
+
/* @__PURE__ */ jsx2("span", { className: "text-[10px] font-bold tracking-[0.2em] uppercase whitespace-nowrap", children: "[ FILE ]" }),
|
|
1069
|
+
/* @__PURE__ */ jsx2("span", { className: "text-[9px] opacity-40 group-hover:opacity-60 transition-opacity tracking-widest whitespace-nowrap", children: "\u30D5\u30A1\u30A4\u30EB" })
|
|
1070
1070
|
]
|
|
1071
1071
|
}
|
|
1072
1072
|
),
|
|
1073
1073
|
actions
|
|
1074
1074
|
] }),
|
|
1075
|
-
/* @__PURE__ */ jsx2("div", { className: "flex items-center gap-
|
|
1075
|
+
/* @__PURE__ */ jsx2("div", { className: "flex items-center gap-3 flex-wrap", children: isGenerating ? /* @__PURE__ */ jsxs2(
|
|
1076
1076
|
"button",
|
|
1077
1077
|
{
|
|
1078
1078
|
type: "button",
|
|
1079
|
-
className: "group flex
|
|
1079
|
+
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
1080
|
onClick: onStop,
|
|
1081
1081
|
children: [
|
|
1082
|
-
/* @__PURE__ */ jsx2(Square, { className: "w-
|
|
1083
|
-
/* @__PURE__ */ jsx2("span", { className: "text-[
|
|
1084
|
-
/* @__PURE__ */ jsx2("span", { className: "text-[
|
|
1082
|
+
/* @__PURE__ */ jsx2(Square, { className: "w-3.5 h-3.5 opacity-70 group-hover:opacity-100 transition-opacity" }),
|
|
1083
|
+
/* @__PURE__ */ jsx2("span", { className: "text-[10px] font-bold tracking-[0.2em] uppercase whitespace-nowrap", children: "[ STOP ]" }),
|
|
1084
|
+
/* @__PURE__ */ jsx2("span", { className: "text-[9px] opacity-40 group-hover:opacity-60 transition-opacity tracking-widest whitespace-nowrap", children: "\u505C\u6B62" })
|
|
1085
1085
|
]
|
|
1086
1086
|
}
|
|
1087
1087
|
) : /* @__PURE__ */ jsxs2(
|
|
1088
1088
|
"button",
|
|
1089
1089
|
{
|
|
1090
1090
|
type: "button",
|
|
1091
|
-
className: `group flex
|
|
1091
|
+
className: `group flex items-center justify-center gap-2 px-5 py-2 rounded transition-all duration-300 ${canSend ? theme === "dark" ? "bg-[#fafafa] text-black border hover:opacity-80" : "bg-black text-[#fafafa] border hover:opacity-80" : theme === "dark" ? "bg-[#fafafa]/10 text-[#fafafa]/40 cursor-not-allowed border border-transparent" : "bg-black/10 text-black/40 cursor-not-allowed border border-transparent"}`,
|
|
1092
1092
|
onClick: onSend,
|
|
1093
1093
|
disabled: !canSend,
|
|
1094
1094
|
children: [
|
|
1095
|
-
/* @__PURE__ */ jsx2(Send, { className: "w-
|
|
1096
|
-
/* @__PURE__ */ jsx2("span", { className: "text-[
|
|
1097
|
-
/* @__PURE__ */ jsx2("span", { className: "text-[
|
|
1095
|
+
/* @__PURE__ */ jsx2(Send, { className: "w-3.5 h-3.5 opacity-70 group-hover:opacity-100 transition-opacity" }),
|
|
1096
|
+
/* @__PURE__ */ jsx2("span", { className: "text-[10px] font-bold tracking-[0.2em] uppercase whitespace-nowrap", children: "[ SEND ]" }),
|
|
1097
|
+
/* @__PURE__ */ jsx2("span", { className: "text-[9px] opacity-40 group-hover:opacity-60 transition-opacity tracking-widest whitespace-nowrap", children: "\u9001\u4FE1" })
|
|
1098
1098
|
]
|
|
1099
1099
|
}
|
|
1100
1100
|
) })
|
package/dist/index.css
CHANGED
|
@@ -2272,9 +2272,6 @@ video {
|
|
|
2272
2272
|
.mt-6 {
|
|
2273
2273
|
margin-top: 1.5rem;
|
|
2274
2274
|
}
|
|
2275
|
-
.mt-8 {
|
|
2276
|
-
margin-top: 2rem;
|
|
2277
|
-
}
|
|
2278
2275
|
.block {
|
|
2279
2276
|
display: block;
|
|
2280
2277
|
}
|
|
@@ -2313,6 +2310,9 @@ video {
|
|
|
2313
2310
|
.h-24 {
|
|
2314
2311
|
height: 6rem;
|
|
2315
2312
|
}
|
|
2313
|
+
.h-3\.5 {
|
|
2314
|
+
height: 0.875rem;
|
|
2315
|
+
}
|
|
2316
2316
|
.h-4 {
|
|
2317
2317
|
height: 1rem;
|
|
2318
2318
|
}
|
|
@@ -2355,6 +2355,9 @@ video {
|
|
|
2355
2355
|
.w-24 {
|
|
2356
2356
|
width: 6rem;
|
|
2357
2357
|
}
|
|
2358
|
+
.w-3\.5 {
|
|
2359
|
+
width: 0.875rem;
|
|
2360
|
+
}
|
|
2358
2361
|
.w-4 {
|
|
2359
2362
|
width: 1rem;
|
|
2360
2363
|
}
|
|
@@ -2691,14 +2694,14 @@ video {
|
|
|
2691
2694
|
padding-left: 1rem;
|
|
2692
2695
|
padding-right: 1rem;
|
|
2693
2696
|
}
|
|
2697
|
+
.px-5 {
|
|
2698
|
+
padding-left: 1.25rem;
|
|
2699
|
+
padding-right: 1.25rem;
|
|
2700
|
+
}
|
|
2694
2701
|
.px-6 {
|
|
2695
2702
|
padding-left: 1.5rem;
|
|
2696
2703
|
padding-right: 1.5rem;
|
|
2697
2704
|
}
|
|
2698
|
-
.px-8 {
|
|
2699
|
-
padding-left: 2rem;
|
|
2700
|
-
padding-right: 2rem;
|
|
2701
|
-
}
|
|
2702
2705
|
.py-0\.5 {
|
|
2703
2706
|
padding-top: 0.125rem;
|
|
2704
2707
|
padding-bottom: 0.125rem;
|
|
@@ -3173,12 +3176,6 @@ video {
|
|
|
3173
3176
|
margin-left: 2rem;
|
|
3174
3177
|
margin-right: 2rem;
|
|
3175
3178
|
}
|
|
3176
|
-
.md\:w-auto {
|
|
3177
|
-
width: auto;
|
|
3178
|
-
}
|
|
3179
|
-
.md\:flex-none {
|
|
3180
|
-
flex: none;
|
|
3181
|
-
}
|
|
3182
3179
|
.md\:flex-row {
|
|
3183
3180
|
flex-direction: row;
|
|
3184
3181
|
}
|
package/dist/index.js
CHANGED
package/dist/react/index.css
CHANGED
|
@@ -2272,9 +2272,6 @@ video {
|
|
|
2272
2272
|
.mt-6 {
|
|
2273
2273
|
margin-top: 1.5rem;
|
|
2274
2274
|
}
|
|
2275
|
-
.mt-8 {
|
|
2276
|
-
margin-top: 2rem;
|
|
2277
|
-
}
|
|
2278
2275
|
.block {
|
|
2279
2276
|
display: block;
|
|
2280
2277
|
}
|
|
@@ -2313,6 +2310,9 @@ video {
|
|
|
2313
2310
|
.h-24 {
|
|
2314
2311
|
height: 6rem;
|
|
2315
2312
|
}
|
|
2313
|
+
.h-3\.5 {
|
|
2314
|
+
height: 0.875rem;
|
|
2315
|
+
}
|
|
2316
2316
|
.h-4 {
|
|
2317
2317
|
height: 1rem;
|
|
2318
2318
|
}
|
|
@@ -2355,6 +2355,9 @@ video {
|
|
|
2355
2355
|
.w-24 {
|
|
2356
2356
|
width: 6rem;
|
|
2357
2357
|
}
|
|
2358
|
+
.w-3\.5 {
|
|
2359
|
+
width: 0.875rem;
|
|
2360
|
+
}
|
|
2358
2361
|
.w-4 {
|
|
2359
2362
|
width: 1rem;
|
|
2360
2363
|
}
|
|
@@ -2691,14 +2694,14 @@ video {
|
|
|
2691
2694
|
padding-left: 1rem;
|
|
2692
2695
|
padding-right: 1rem;
|
|
2693
2696
|
}
|
|
2697
|
+
.px-5 {
|
|
2698
|
+
padding-left: 1.25rem;
|
|
2699
|
+
padding-right: 1.25rem;
|
|
2700
|
+
}
|
|
2694
2701
|
.px-6 {
|
|
2695
2702
|
padding-left: 1.5rem;
|
|
2696
2703
|
padding-right: 1.5rem;
|
|
2697
2704
|
}
|
|
2698
|
-
.px-8 {
|
|
2699
|
-
padding-left: 2rem;
|
|
2700
|
-
padding-right: 2rem;
|
|
2701
|
-
}
|
|
2702
2705
|
.py-0\.5 {
|
|
2703
2706
|
padding-top: 0.125rem;
|
|
2704
2707
|
padding-bottom: 0.125rem;
|
|
@@ -3173,12 +3176,6 @@ video {
|
|
|
3173
3176
|
margin-left: 2rem;
|
|
3174
3177
|
margin-right: 2rem;
|
|
3175
3178
|
}
|
|
3176
|
-
.md\:w-auto {
|
|
3177
|
-
width: auto;
|
|
3178
|
-
}
|
|
3179
|
-
.md\:flex-none {
|
|
3180
|
-
flex: none;
|
|
3181
|
-
}
|
|
3182
3179
|
.md\:flex-row {
|
|
3183
3180
|
flex-direction: row;
|
|
3184
3181
|
}
|
package/dist/react/index.js
CHANGED
package/package.json
CHANGED