ai-chatbot-widget 0.0.13 → 0.0.15
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/chatbot-widget.es.js +4 -4
- package/dist/chatbot-widget.iife.js +62 -62
- package/dist/index.css +1 -1
- package/package.json +1 -1
|
@@ -12088,7 +12088,7 @@ function yy({ setIsOpen: c, isOpen: u, theme: s }) {
|
|
|
12088
12088
|
className: `chatbot-open-btn
|
|
12089
12089
|
w-14 h-14 ${rt(s, "openButton")}
|
|
12090
12090
|
rounded-full shadow-2xl items-center justify-center text-white
|
|
12091
|
-
transition-all duration-300 transform active:scale-9 cursor-pointer
|
|
12091
|
+
transition-all duration-300 transform active:scale-9 cursor-pointer backdrop-blur-xl
|
|
12092
12092
|
${u ? "rotate-180" : "rotate-0"}
|
|
12093
12093
|
`,
|
|
12094
12094
|
style: {
|
|
@@ -13881,19 +13881,19 @@ function Pb({ theme: c = "boring", notificationBadge: u = !0, greeting: s, pageC
|
|
|
13881
13881
|
}, Ze = async (te) => {
|
|
13882
13882
|
te.key === "Enter" && !te.shiftKey && (te.preventDefault(), await pe());
|
|
13883
13883
|
};
|
|
13884
|
-
return /* @__PURE__ */ J.jsxs("div", { className: "fixed bottom-6 right-6 z-50 ai-chatbot", children: [
|
|
13884
|
+
return /* @__PURE__ */ J.jsxs("div", { className: "fixed bottom-1 right-1 md:bottom-6 md:right-6 z-50 ai-chatbot ", children: [
|
|
13885
13885
|
/* @__PURE__ */ J.jsx(
|
|
13886
13886
|
"div",
|
|
13887
13887
|
{
|
|
13888
13888
|
className: `
|
|
13889
|
-
absolute bottom-16 right-0 w-96 h-[
|
|
13889
|
+
absolute bottom-15 sm:bottom-16 right-0 w-86 sm:w-96 h-[65vh]
|
|
13890
13890
|
transform transition-all duration-300 ease-in-out origin-bottom-right
|
|
13891
13891
|
ai-chatbot-window
|
|
13892
13892
|
${v ? "scale-100 opacity-100" : "scale-0 opacity-0 pointer-events-none"}
|
|
13893
13893
|
`,
|
|
13894
13894
|
children: /* @__PURE__ */ J.jsxs("div", { className: `${rt(c, "mainBackground")} rounded-4xl shadow-2xl backdrop-blur-xl h-full flex flex-col overflow-hidden`, children: [
|
|
13895
13895
|
/* @__PURE__ */ J.jsx(Dg, { setIsOpen: p, theme: c }),
|
|
13896
|
-
/* @__PURE__ */ J.jsxs("div", { className: "flex-1 flex flex-col h-full justify-between overflow-y-auto p-4 space-y-4 scrollbar-thin scrollbar-thumb-purple-500/50 scrollbar-track-transparent", children: [
|
|
13896
|
+
/* @__PURE__ */ J.jsxs("div", { className: "flex-1 flex flex-col h-full justify-between overflow-y-auto p-2 lg:p-4 space-y-2 lg:space-y-4 scrollbar-thin scrollbar-thumb-purple-500/50 scrollbar-track-transparent", children: [
|
|
13897
13897
|
/* @__PURE__ */ J.jsxs("div", { className: "space-y-4 ", children: [
|
|
13898
13898
|
b.map((te, _e) => /* @__PURE__ */ J.jsx(dy, { message: te, index: _e, theme: c }, te.content)),
|
|
13899
13899
|
N && /* @__PURE__ */ J.jsx(py, {}),
|