@walkspan/chatbot 0.2.8 → 0.2.10

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
@@ -116,7 +116,7 @@ var FloatingChatbot = ({
116
116
  "div",
117
117
  {
118
118
  key: m.id,
119
- className: `max-w-[80%] py-2 px-5 rounded-3xl text-sm break-all ${m.type === "user" ? "ml-auto bg-[#edf0f6] text-black" : "bg-[#f1592a] text-white"}`
119
+ className: `max-w-[80%] py-2 px-5 rounded-3xl text-sm break-words ${m.type === "user" ? "ml-auto bg-[#edf0f6] text-black" : "bg-[#f1592a] text-white"}`
120
120
  },
121
121
  m == null ? void 0 : m.message,
122
122
  m.type !== "user" && m.link && /* @__PURE__ */ import_react.default.createElement(
@@ -125,7 +125,7 @@ var FloatingChatbot = ({
125
125
  href: m.link,
126
126
  target: "_blank",
127
127
  rel: "noopener noreferrer",
128
- className: "block mt-2 underline text-white"
128
+ className: "block mt-2 underline text-white break-words"
129
129
  },
130
130
  m.link
131
131
  )
package/dist/index.mjs CHANGED
@@ -80,7 +80,7 @@ var FloatingChatbot = ({
80
80
  "div",
81
81
  {
82
82
  key: m.id,
83
- className: `max-w-[80%] py-2 px-5 rounded-3xl text-sm break-all ${m.type === "user" ? "ml-auto bg-[#edf0f6] text-black" : "bg-[#f1592a] text-white"}`
83
+ className: `max-w-[80%] py-2 px-5 rounded-3xl text-sm break-words ${m.type === "user" ? "ml-auto bg-[#edf0f6] text-black" : "bg-[#f1592a] text-white"}`
84
84
  },
85
85
  m == null ? void 0 : m.message,
86
86
  m.type !== "user" && m.link && /* @__PURE__ */ React.createElement(
@@ -89,7 +89,7 @@ var FloatingChatbot = ({
89
89
  href: m.link,
90
90
  target: "_blank",
91
91
  rel: "noopener noreferrer",
92
- className: "block mt-2 underline text-white"
92
+ className: "block mt-2 underline text-white break-words"
93
93
  },
94
94
  m.link
95
95
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@walkspan/chatbot",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "files": [