@sawport/react-sdk 1.2.3-alpha.1 → 1.2.3-alpha.2
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 +2 -2
- package/dist/index.umd.js +1 -1
- package/dist/react-sdk.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -125874,9 +125874,9 @@ const OtherUserMessage = ({
|
|
|
125874
125874
|
var _a, _b, _c, _d;
|
|
125875
125875
|
const fileType = (file == null ? void 0 : file.ext) ? isFileType(file.ext) : null;
|
|
125876
125876
|
return /* @__PURE__ */ jsxs("div", { className: "chat-receive-container mb-2 flex items-center", children: [
|
|
125877
|
-
/* @__PURE__ */ jsxs("div", { className: "pt-3 mr-1 max-w-
|
|
125877
|
+
/* @__PURE__ */ jsxs("div", { className: "pt-3 mr-1 max-w-14", children: [
|
|
125878
125878
|
/* @__PURE__ */ jsx(Avatar, { size: 30, className: "m-0 mr-2", src: (_b = (_a = msg == null ? void 0 : msg.user) == null ? void 0 : _a.agent) == null ? void 0 : _b.profile_picture }),
|
|
125879
|
-
/* @__PURE__ */ jsx("div", { style: { color: "black" }, className: "m-0 px-1 pt-
|
|
125879
|
+
/* @__PURE__ */ jsx("div", { style: { color: "black" }, className: "m-0 px-1 pt-2 text-sm absolute", children: (_d = (_c = msg == null ? void 0 : msg.user) == null ? void 0 : _c.agent) == null ? void 0 : _d.first_name })
|
|
125880
125880
|
] }),
|
|
125881
125881
|
attachment ? /* @__PURE__ */ jsxs("div", { className: "my-2", children: [
|
|
125882
125882
|
fileType === "image" ? /* @__PURE__ */ jsx("p", { className: `widget-chat-file mb-0`, children: /* @__PURE__ */ jsx("a", { target: "_blank", rel: "noreferrer", href: attachment, download: file == null ? void 0 : file.name, children: /* @__PURE__ */ jsx("img", { src: attachment, height: 60, alt: "" }) }) }) : fileType === "document" ? /* @__PURE__ */ jsxs("div", { className: "widget-chat-file px-2 py-2", children: [
|