@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.
Files changed (71) hide show
  1. package/dist/{chat-message-HWBFOYOJ.mjs → chat-message-AV5QEX2P.mjs} +3 -3
  2. package/dist/{chat-message-GUOL4RZU.mjs → chat-message-DEILVMAZ.mjs} +3 -3
  3. package/dist/{chat-message-EQTB6N5X.mjs → chat-message-RBCHNC5A.mjs} +5 -5
  4. package/dist/index.css +6 -0
  5. package/dist/index.js +232 -217
  6. package/dist/index.mjs +230 -215
  7. package/dist/styles.css +1 -1
  8. package/package.json +2 -7
  9. package/dist/chat-input-2CHIBULE.mjs +0 -510
  10. package/dist/chat-input-42V4ESQB.mjs +0 -478
  11. package/dist/chat-input-4T42R7FR.mjs +0 -481
  12. package/dist/chat-input-BJVIIYOP.mjs +0 -484
  13. package/dist/chat-input-G2LRENLB.mjs +0 -512
  14. package/dist/chat-input-HT47ZLQN.mjs +0 -456
  15. package/dist/chat-input-IIV2HQOZ.mjs +0 -509
  16. package/dist/chat-input-JFGPZBBQ.mjs +0 -495
  17. package/dist/chat-input-JQ7PSHNW.mjs +0 -515
  18. package/dist/chat-input-L5LIF4NP.mjs +0 -452
  19. package/dist/chat-input-MLF62KV7.mjs +0 -512
  20. package/dist/chat-input-MOPCNDRR.mjs +0 -517
  21. package/dist/chat-input-TYNO3J5S.mjs +0 -519
  22. package/dist/chat-input-USWVSAYY.mjs +0 -461
  23. package/dist/chat-input-VQZ3WNBT.mjs +0 -509
  24. package/dist/chat-input-VTCTV5ED.mjs +0 -495
  25. package/dist/chat-input-WJMGLQJI.mjs +0 -495
  26. package/dist/chat-message-2VQW74CO.mjs +0 -2230
  27. package/dist/chat-message-35ZWSSQV.mjs +0 -1926
  28. package/dist/chat-message-3CUUWTZG.mjs +0 -2429
  29. package/dist/chat-message-3NHSJNKL.mjs +0 -2241
  30. package/dist/chat-message-3Z7B2WYC.mjs +0 -2228
  31. package/dist/chat-message-564AHZHH.mjs +0 -2186
  32. package/dist/chat-message-5QLTW4K7.mjs +0 -2122
  33. package/dist/chat-message-7EH2TDZG.mjs +0 -1910
  34. package/dist/chat-message-7QHJRHQG.mjs +0 -1909
  35. package/dist/chat-message-AAXNH5TF.mjs +0 -2088
  36. package/dist/chat-message-D36YF274.mjs +0 -1910
  37. package/dist/chat-message-DVCXEL4Z.mjs +0 -2111
  38. package/dist/chat-message-E6KB3AST.mjs +0 -1906
  39. package/dist/chat-message-FTACCRMO.mjs +0 -1904
  40. package/dist/chat-message-G2NWPAXK.mjs +0 -1904
  41. package/dist/chat-message-H62Z3DW5.mjs +0 -2368
  42. package/dist/chat-message-HIEZ7B5R.mjs +0 -2190
  43. package/dist/chat-message-I6AKFPK6.mjs +0 -2156
  44. package/dist/chat-message-IKYSAVAB.mjs +0 -1918
  45. package/dist/chat-message-IZL6JHV2.mjs +0 -2429
  46. package/dist/chat-message-J7PVUQO6.mjs +0 -1878
  47. package/dist/chat-message-K6QILTW5.mjs +0 -1897
  48. package/dist/chat-message-MDORLI2R.mjs +0 -2228
  49. package/dist/chat-message-MFUY6KOE.mjs +0 -1910
  50. package/dist/chat-message-MYKOR5OF.mjs +0 -1890
  51. package/dist/chat-message-NKMTAMGG.mjs +0 -1906
  52. package/dist/chat-message-NNGD3FUH.mjs +0 -2168
  53. package/dist/chat-message-QAPRO542.mjs +0 -1915
  54. package/dist/chat-message-R4IJ3MXU.mjs +0 -2146
  55. package/dist/chat-message-U7UCBLHI.mjs +0 -2145
  56. package/dist/chat-message-UKXGFKUR.mjs +0 -1903
  57. package/dist/chat-message-UNIBCF3T.mjs +0 -1900
  58. package/dist/chat-message-UXLPL76T.mjs +0 -1890
  59. package/dist/chat-message-VB54UOHB.mjs +0 -2306
  60. package/dist/chat-message-WUNUZLKI.mjs +0 -2228
  61. package/dist/chat-message-WYN5UZRD.mjs +0 -1927
  62. package/dist/chat-message-Y5OJSR2O.mjs +0 -2228
  63. package/dist/chat-message-YPDHL6WW.mjs +0 -2114
  64. package/dist/chunk-26656QB3.mjs +0 -406
  65. package/dist/chunk-5VL3YPMQ.mjs +0 -406
  66. package/dist/chunk-C2VGAYER.mjs +0 -295
  67. package/dist/chunk-DVWFDUN4.mjs +0 -407
  68. package/dist/chunk-JLRHY3SB.mjs +0 -405
  69. package/dist/chunk-XFSEOBLD.mjs +0 -432
  70. package/dist/chunk-XQVUOR36.mjs +0 -438
  71. 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-XQVUOR36.mjs";
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-Y7QF5535.mjs";
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-XFSEOBLD.mjs";
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
  }