@terryavg/neptune-ai-chatbot 1.0.3 → 1.0.4
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/{chat-message-HWBFOYOJ.mjs → chat-message-AV5QEX2P.mjs} +3 -3
- package/dist/{chat-message-GUOL4RZU.mjs → chat-message-DEILVMAZ.mjs} +3 -3
- package/dist/{chat-message-EQTB6N5X.mjs → chat-message-RBCHNC5A.mjs} +5 -5
- package/dist/index.css +6 -0
- package/dist/index.js +232 -217
- package/dist/index.mjs +230 -215
- package/dist/styles.css +1 -1
- package/package.json +2 -7
- package/dist/chat-input-2CHIBULE.mjs +0 -510
- package/dist/chat-input-42V4ESQB.mjs +0 -478
- package/dist/chat-input-4T42R7FR.mjs +0 -481
- package/dist/chat-input-BJVIIYOP.mjs +0 -484
- package/dist/chat-input-G2LRENLB.mjs +0 -512
- package/dist/chat-input-HT47ZLQN.mjs +0 -456
- package/dist/chat-input-IIV2HQOZ.mjs +0 -509
- package/dist/chat-input-JFGPZBBQ.mjs +0 -495
- package/dist/chat-input-JQ7PSHNW.mjs +0 -515
- package/dist/chat-input-L5LIF4NP.mjs +0 -452
- package/dist/chat-input-MLF62KV7.mjs +0 -512
- package/dist/chat-input-MOPCNDRR.mjs +0 -517
- package/dist/chat-input-TYNO3J5S.mjs +0 -519
- package/dist/chat-input-USWVSAYY.mjs +0 -461
- package/dist/chat-input-VQZ3WNBT.mjs +0 -509
- package/dist/chat-input-VTCTV5ED.mjs +0 -495
- package/dist/chat-input-WJMGLQJI.mjs +0 -495
- package/dist/chat-message-2VQW74CO.mjs +0 -2230
- package/dist/chat-message-35ZWSSQV.mjs +0 -1926
- package/dist/chat-message-3CUUWTZG.mjs +0 -2429
- package/dist/chat-message-3NHSJNKL.mjs +0 -2241
- package/dist/chat-message-3Z7B2WYC.mjs +0 -2228
- package/dist/chat-message-564AHZHH.mjs +0 -2186
- package/dist/chat-message-5QLTW4K7.mjs +0 -2122
- package/dist/chat-message-7EH2TDZG.mjs +0 -1910
- package/dist/chat-message-7QHJRHQG.mjs +0 -1909
- package/dist/chat-message-AAXNH5TF.mjs +0 -2088
- package/dist/chat-message-D36YF274.mjs +0 -1910
- package/dist/chat-message-DVCXEL4Z.mjs +0 -2111
- package/dist/chat-message-E6KB3AST.mjs +0 -1906
- package/dist/chat-message-FTACCRMO.mjs +0 -1904
- package/dist/chat-message-G2NWPAXK.mjs +0 -1904
- package/dist/chat-message-H62Z3DW5.mjs +0 -2368
- package/dist/chat-message-HIEZ7B5R.mjs +0 -2190
- package/dist/chat-message-I6AKFPK6.mjs +0 -2156
- package/dist/chat-message-IKYSAVAB.mjs +0 -1918
- package/dist/chat-message-IZL6JHV2.mjs +0 -2429
- package/dist/chat-message-J7PVUQO6.mjs +0 -1878
- package/dist/chat-message-K6QILTW5.mjs +0 -1897
- package/dist/chat-message-MDORLI2R.mjs +0 -2228
- package/dist/chat-message-MFUY6KOE.mjs +0 -1910
- package/dist/chat-message-MYKOR5OF.mjs +0 -1890
- package/dist/chat-message-NKMTAMGG.mjs +0 -1906
- package/dist/chat-message-NNGD3FUH.mjs +0 -2168
- package/dist/chat-message-QAPRO542.mjs +0 -1915
- package/dist/chat-message-R4IJ3MXU.mjs +0 -2146
- package/dist/chat-message-U7UCBLHI.mjs +0 -2145
- package/dist/chat-message-UKXGFKUR.mjs +0 -1903
- package/dist/chat-message-UNIBCF3T.mjs +0 -1900
- package/dist/chat-message-UXLPL76T.mjs +0 -1890
- package/dist/chat-message-VB54UOHB.mjs +0 -2306
- package/dist/chat-message-WUNUZLKI.mjs +0 -2228
- package/dist/chat-message-WYN5UZRD.mjs +0 -1927
- package/dist/chat-message-Y5OJSR2O.mjs +0 -2228
- package/dist/chat-message-YPDHL6WW.mjs +0 -2114
- package/dist/chunk-26656QB3.mjs +0 -406
- package/dist/chunk-5VL3YPMQ.mjs +0 -406
- package/dist/chunk-C2VGAYER.mjs +0 -295
- package/dist/chunk-DVWFDUN4.mjs +0 -407
- package/dist/chunk-JLRHY3SB.mjs +0 -405
- package/dist/chunk-XFSEOBLD.mjs +0 -432
- package/dist/chunk-XQVUOR36.mjs +0 -438
- package/dist/chunk-Y7QF5535.mjs +0 -268
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-2RXQ2EZ2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
chatClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VONUV37R.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__objRest,
|
|
10
10
|
__spreadProps,
|
|
@@ -200,7 +200,6 @@ VectorResults.displayName = "VectorResults";
|
|
|
200
200
|
var VectorResultItem = memo(
|
|
201
201
|
({ vector, theme, colors }) => {
|
|
202
202
|
const [isExpanded, setIsExpanded] = useState(false);
|
|
203
|
-
const isDark = theme === "dark";
|
|
204
203
|
const similarityPercentage = (parseFloat(vector.similarity) * 100).toFixed(1);
|
|
205
204
|
return /* @__PURE__ */ jsxs(
|
|
206
205
|
"div",
|
|
@@ -2168,6 +2167,7 @@ function ChatMessage({
|
|
|
2168
2167
|
year: "numeric",
|
|
2169
2168
|
hour: "numeric",
|
|
2170
2169
|
minute: "numeric",
|
|
2170
|
+
second: "numeric",
|
|
2171
2171
|
hour12: false
|
|
2172
2172
|
}).format(new Date(date));
|
|
2173
2173
|
} catch (error) {
|
|
@@ -2183,7 +2183,7 @@ function ChatMessage({
|
|
|
2183
2183
|
children: /* @__PURE__ */ jsxs3(
|
|
2184
2184
|
"div",
|
|
2185
2185
|
{
|
|
2186
|
-
className: `max-w-[100%] sm:max-w-[90%] ${role === "user" ? "" : ""}`,
|
|
2186
|
+
className: `w-full max-w-[100%] sm:max-w-[90%] ${role === "user" ? "" : ""}`,
|
|
2187
2187
|
children: [
|
|
2188
2188
|
/* @__PURE__ */ jsx3(
|
|
2189
2189
|
"div",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-2RXQ2EZ2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
chatClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VONUV37R.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__objRest,
|
|
10
10
|
__spreadProps,
|
|
@@ -200,7 +200,6 @@ VectorResults.displayName = "VectorResults";
|
|
|
200
200
|
var VectorResultItem = memo(
|
|
201
201
|
({ vector, theme, colors }) => {
|
|
202
202
|
const [isExpanded, setIsExpanded] = useState(false);
|
|
203
|
-
const isDark = theme === "dark";
|
|
204
203
|
const similarityPercentage = (parseFloat(vector.similarity) * 100).toFixed(1);
|
|
205
204
|
return /* @__PURE__ */ jsxs(
|
|
206
205
|
"div",
|
|
@@ -2168,6 +2167,7 @@ function ChatMessage({
|
|
|
2168
2167
|
year: "numeric",
|
|
2169
2168
|
hour: "numeric",
|
|
2170
2169
|
minute: "numeric",
|
|
2170
|
+
second: "numeric",
|
|
2171
2171
|
hour12: false
|
|
2172
2172
|
}).format(new Date(date));
|
|
2173
2173
|
} catch (error) {
|
|
@@ -2183,7 +2183,7 @@ function ChatMessage({
|
|
|
2183
2183
|
children: /* @__PURE__ */ jsxs3(
|
|
2184
2184
|
"div",
|
|
2185
2185
|
{
|
|
2186
|
-
className: `max-w-[100%] sm:max-w-[90%] ${role === "user" ? "" : ""}`,
|
|
2186
|
+
className: `max-w-[100%] sm:max-w-[90%] ${role === "user" ? "" : "w-full"}`,
|
|
2187
2187
|
children: [
|
|
2188
2188
|
/* @__PURE__ */ jsx3(
|
|
2189
2189
|
"div",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-2RXQ2EZ2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
chatClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VONUV37R.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__objRest,
|
|
10
10
|
__spreadProps,
|
|
@@ -200,7 +200,6 @@ VectorResults.displayName = "VectorResults";
|
|
|
200
200
|
var VectorResultItem = memo(
|
|
201
201
|
({ vector, theme, colors }) => {
|
|
202
202
|
const [isExpanded, setIsExpanded] = useState(false);
|
|
203
|
-
const isDark = theme === "dark";
|
|
204
203
|
const similarityPercentage = (parseFloat(vector.similarity) * 100).toFixed(1);
|
|
205
204
|
return /* @__PURE__ */ jsxs(
|
|
206
205
|
"div",
|
|
@@ -2034,7 +2033,7 @@ function ChatMessage({
|
|
|
2034
2033
|
toolName: message.executingToolName
|
|
2035
2034
|
}
|
|
2036
2035
|
),
|
|
2037
|
-
/* @__PURE__ */ jsx3("div", { className: "markdown-content", children: /* @__PURE__ */ jsx3(
|
|
2036
|
+
/* @__PURE__ */ jsx3("div", { className: "markdown-content", children: role === "user" ? /* @__PURE__ */ jsx3("div", { className: "whitespace-pre-wrap break-words", children: contentToRender }) : /* @__PURE__ */ jsx3(
|
|
2038
2037
|
StreamingMarkdown,
|
|
2039
2038
|
{
|
|
2040
2039
|
content: contentToRender,
|
|
@@ -2072,7 +2071,7 @@ function ChatMessage({
|
|
|
2072
2071
|
contentToRender.map((part, i) => {
|
|
2073
2072
|
if (part.type === "text") {
|
|
2074
2073
|
const textContent = part.text;
|
|
2075
|
-
return /* @__PURE__ */ jsx3("div", { children: /* @__PURE__ */ jsx3(
|
|
2074
|
+
return /* @__PURE__ */ jsx3("div", { children: role === "user" ? /* @__PURE__ */ jsx3("div", { className: "whitespace-pre-wrap break-words", children: textContent }) : /* @__PURE__ */ jsx3(
|
|
2076
2075
|
StreamingMarkdown,
|
|
2077
2076
|
{
|
|
2078
2077
|
content: textContent,
|
|
@@ -2168,6 +2167,7 @@ function ChatMessage({
|
|
|
2168
2167
|
year: "numeric",
|
|
2169
2168
|
hour: "numeric",
|
|
2170
2169
|
minute: "numeric",
|
|
2170
|
+
second: "numeric",
|
|
2171
2171
|
hour12: false
|
|
2172
2172
|
}).format(new Date(date));
|
|
2173
2173
|
} catch (error) {
|
|
@@ -2183,7 +2183,7 @@ function ChatMessage({
|
|
|
2183
2183
|
children: /* @__PURE__ */ jsxs3(
|
|
2184
2184
|
"div",
|
|
2185
2185
|
{
|
|
2186
|
-
className: `max-w-[100%] sm:max-w-[90%] ${role === "user" ? "" : ""}`,
|
|
2186
|
+
className: `max-w-[100%] sm:max-w-[90%] ${role === "user" ? "" : "w-full"}`,
|
|
2187
2187
|
children: [
|
|
2188
2188
|
/* @__PURE__ */ jsx3(
|
|
2189
2189
|
"div",
|
package/dist/index.css
CHANGED
|
@@ -1369,6 +1369,12 @@ video {
|
|
|
1369
1369
|
.whitespace-nowrap {
|
|
1370
1370
|
white-space: nowrap;
|
|
1371
1371
|
}
|
|
1372
|
+
.whitespace-pre-wrap {
|
|
1373
|
+
white-space: pre-wrap;
|
|
1374
|
+
}
|
|
1375
|
+
.break-words {
|
|
1376
|
+
overflow-wrap: break-word;
|
|
1377
|
+
}
|
|
1372
1378
|
.rounded {
|
|
1373
1379
|
border-radius: .25rem;
|
|
1374
1380
|
}
|