@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 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.jsxs)("div", { className: "relative", children: [
2031
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.SearchIcon, { className: "absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5", style: {
2032
- color: "hsl(var(--chat-text-muted))"
2033
- }, strokeWidth: 2 }),
2034
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2035
- "input",
2036
- {
2037
- type: "text",
2038
- placeholder: "Search",
2039
- value: searchQuery,
2040
- onChange: (e) => setSearchQuery(e.target.value),
2041
- className: "w-full h-7 pl-8 pr-2.5 text-[13px] rounded-lg focus:outline-none transition-all",
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))"