@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.mjs
CHANGED
|
@@ -2007,26 +2007,21 @@ function ChatInterface({ id, initialMessages, config, onClose } = {}) {
|
|
|
2007
2007
|
/* @__PURE__ */ jsx20("div", { className: "p-2.5 border-b", style: {
|
|
2008
2008
|
borderColor: "var(--chat-border-soft)",
|
|
2009
2009
|
backgroundColor: "var(--chat-overlay)"
|
|
2010
|
-
}, children: /* @__PURE__ */
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
style: {
|
|
2023
|
-
backgroundColor: "hsl(var(--chat-surface-deep))",
|
|
2024
|
-
border: `1px solid ${"var(--chat-border-medium)"}`,
|
|
2025
|
-
color: "hsl(var(--chat-text))"
|
|
2026
|
-
}
|
|
2010
|
+
}, children: /* @__PURE__ */ jsx20("div", { className: "relative", children: /* @__PURE__ */ jsx20(
|
|
2011
|
+
"input",
|
|
2012
|
+
{
|
|
2013
|
+
type: "text",
|
|
2014
|
+
placeholder: "Search",
|
|
2015
|
+
value: searchQuery,
|
|
2016
|
+
onChange: (e) => setSearchQuery(e.target.value),
|
|
2017
|
+
className: "w-full h-7 px-2.5 text-[13px] rounded-lg focus:outline-none transition-all",
|
|
2018
|
+
style: {
|
|
2019
|
+
backgroundColor: "hsl(var(--chat-surface-deep))",
|
|
2020
|
+
border: `1px solid ${"var(--chat-border-medium)"}`,
|
|
2021
|
+
color: "hsl(var(--chat-text))"
|
|
2027
2022
|
}
|
|
2028
|
-
|
|
2029
|
-
|
|
2023
|
+
}
|
|
2024
|
+
) }) }),
|
|
2030
2025
|
/* @__PURE__ */ jsx20("div", { className: "max-h-[300px] overflow-y-auto ai-assistant-scrollbar", children: loadingHistory ? /* @__PURE__ */ jsx20("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ jsx20("div", { className: "text-[13px]", style: { color: "hsl(var(--chat-text-muted))" }, children: "Loading..." }) }) : conversations.length === 0 ? /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center", children: [
|
|
2031
2026
|
/* @__PURE__ */ jsx20("div", { className: "w-12 h-12 rounded-full flex items-center justify-center mb-3", style: {
|
|
2032
2027
|
backgroundColor: "hsl(var(--chat-surface))"
|