@walkspan/chatbot 0.2.14 → 0.2.16

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%] min-w-0 py-2 px-5 rounded-3xl text-sm overflow-hidden break-all ${m.type === "user" ? "ml-auto bg-[#edf0f6] text-black" : "bg-[#f1592a] text-white"}`
119
+ className: `max-w-[80%] min-w-0 py-2 px-5 rounded-3xl text-sm break-words whitespace-pre-wrap ${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,8 @@ var FloatingChatbot = ({
125
125
  href: m.link,
126
126
  target: "_blank",
127
127
  rel: "noopener noreferrer",
128
- className: "block mt-2 underline text-white break-all"
128
+ className: "block mt-2 underline text-white",
129
+ style: { wordBreak: "break-all", overflowWrap: "break-word" }
129
130
  },
130
131
  m.link
131
132
  )
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%] min-w-0 py-2 px-5 rounded-3xl text-sm overflow-hidden break-all ${m.type === "user" ? "ml-auto bg-[#edf0f6] text-black" : "bg-[#f1592a] text-white"}`
83
+ className: `max-w-[80%] min-w-0 py-2 px-5 rounded-3xl text-sm break-words whitespace-pre-wrap ${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,8 @@ var FloatingChatbot = ({
89
89
  href: m.link,
90
90
  target: "_blank",
91
91
  rel: "noopener noreferrer",
92
- className: "block mt-2 underline text-white break-all"
92
+ className: "block mt-2 underline text-white",
93
+ style: { wordBreak: "break-all", overflowWrap: "break-word" }
93
94
  },
94
95
  m.link
95
96
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@walkspan/chatbot",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "files": [