@walkspan/chatbot 0.2.7 → 0.2.8

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
@@ -112,7 +112,7 @@ var FloatingChatbot = ({
112
112
  className: `fixed z-50 ${positionClasses[position]} w-96 max-w-[90vw] h-[500px] bg-white rounded-xl shadow-xl flex flex-col`
113
113
  },
114
114
  /* @__PURE__ */ import_react.default.createElement("div", { className: "flex items-center justify-between p-4 border-b bg-[#f1592a] text-white rounded-t-xl" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "font-medium" }, title), /* @__PURE__ */ import_react.default.createElement("button", { onClick: () => setOpen(false) }, /* @__PURE__ */ import_react.default.createElement(import_fa.FaTimes, null))),
115
- /* @__PURE__ */ import_react.default.createElement("div", { className: "flex-1 p-4 overflow-y-auto space-y-2" }, messages.map((m) => /* @__PURE__ */ import_react.default.createElement(
115
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "flex-1 p-4 overflow-y-auto space-y-2" }, messages.length === 0 && !isLoading && /* @__PURE__ */ import_react.default.createElement("div", { className: "flex flex-col items-center justify-center h-full text-center px-4" }, /* @__PURE__ */ import_react.default.createElement("h2", { className: "text-xl font-medium text-black mb-2" }, "Welcome to ", /* @__PURE__ */ import_react.default.createElement("span", { className: "text-[#f1592a]" }, "Walkspan"), " AI"), /* @__PURE__ */ import_react.default.createElement("p", { className: "text-sm text-[#71717a] leading-relaxed" }, "I'm your neighborhood intelligence assistant. I help you compare neighborhoods and find the right place for your lifestyle. How can I help?")), messages.map((m) => /* @__PURE__ */ import_react.default.createElement(
116
116
  "div",
117
117
  {
118
118
  key: m.id,
package/dist/index.mjs CHANGED
@@ -76,7 +76,7 @@ var FloatingChatbot = ({
76
76
  className: `fixed z-50 ${positionClasses[position]} w-96 max-w-[90vw] h-[500px] bg-white rounded-xl shadow-xl flex flex-col`
77
77
  },
78
78
  /* @__PURE__ */ React.createElement("div", { className: "flex items-center justify-between p-4 border-b bg-[#f1592a] text-white rounded-t-xl" }, /* @__PURE__ */ React.createElement("div", { className: "font-medium" }, title), /* @__PURE__ */ React.createElement("button", { onClick: () => setOpen(false) }, /* @__PURE__ */ React.createElement(FaTimes, null))),
79
- /* @__PURE__ */ React.createElement("div", { className: "flex-1 p-4 overflow-y-auto space-y-2" }, messages.map((m) => /* @__PURE__ */ React.createElement(
79
+ /* @__PURE__ */ React.createElement("div", { className: "flex-1 p-4 overflow-y-auto space-y-2" }, messages.length === 0 && !isLoading && /* @__PURE__ */ React.createElement("div", { className: "flex flex-col items-center justify-center h-full text-center px-4" }, /* @__PURE__ */ React.createElement("h2", { className: "text-xl font-medium text-black mb-2" }, "Welcome to ", /* @__PURE__ */ React.createElement("span", { className: "text-[#f1592a]" }, "Walkspan"), " AI"), /* @__PURE__ */ React.createElement("p", { className: "text-sm text-[#71717a] leading-relaxed" }, "I'm your neighborhood intelligence assistant. I help you compare neighborhoods and find the right place for your lifestyle. How can I help?")), messages.map((m) => /* @__PURE__ */ React.createElement(
80
80
  "div",
81
81
  {
82
82
  key: m.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@walkspan/chatbot",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "files": [