@mordn/chat-widget 0.2.0 → 0.2.1
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/index.js +14 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -19
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2027,26 +2027,21 @@ function ChatInterface({ id, initialMessages, config, onClose } = {}) {
|
|
|
2027
2027
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "p-2.5 border-b", style: {
|
|
2028
2028
|
borderColor: "var(--chat-border-soft)",
|
|
2029
2029
|
backgroundColor: "var(--chat-overlay)"
|
|
2030
|
-
}, children: /* @__PURE__ */ (0, import_jsx_runtime20.
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
style: {
|
|
2043
|
-
backgroundColor: "hsl(var(--chat-surface-deep))",
|
|
2044
|
-
border: `1px solid ${"var(--chat-border-medium)"}`,
|
|
2045
|
-
color: "hsl(var(--chat-text))"
|
|
2046
|
-
}
|
|
2030
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2031
|
+
"input",
|
|
2032
|
+
{
|
|
2033
|
+
type: "text",
|
|
2034
|
+
placeholder: "Search",
|
|
2035
|
+
value: searchQuery,
|
|
2036
|
+
onChange: (e) => setSearchQuery(e.target.value),
|
|
2037
|
+
className: "w-full h-7 px-2.5 text-[13px] rounded-lg focus:outline-none transition-all",
|
|
2038
|
+
style: {
|
|
2039
|
+
backgroundColor: "hsl(var(--chat-surface-deep))",
|
|
2040
|
+
border: `1px solid ${"var(--chat-border-medium)"}`,
|
|
2041
|
+
color: "hsl(var(--chat-text))"
|
|
2047
2042
|
}
|
|
2048
|
-
|
|
2049
|
-
|
|
2043
|
+
}
|
|
2044
|
+
) }) }),
|
|
2050
2045
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "max-h-[300px] overflow-y-auto ai-assistant-scrollbar", children: loadingHistory ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "text-[13px]", style: { color: "hsl(var(--chat-text-muted))" }, children: "Loading..." }) }) : conversations.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center", children: [
|
|
2051
2046
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "w-12 h-12 rounded-full flex items-center justify-center mb-3", style: {
|
|
2052
2047
|
backgroundColor: "hsl(var(--chat-surface))"
|