@sawport/react-sdk 1.2.3-alpha.1 → 1.2.3-alpha.3

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
@@ -124860,7 +124860,6 @@ const Offline = memo(
124860
124860
  errors: errors2
124861
124861
  }
124862
124862
  ),
124863
- /* @__PURE__ */ jsx("div", { style: { textAlign: "left", marginBottom: 8 }, children: /* @__PURE__ */ jsx(Button, { type: "link", style: { padding: 0 }, onClick: () => setInviteModalOpen(true), children: "Click to add third-party" }) }),
124864
124863
  !!invitees.length && /* @__PURE__ */ jsx(
124865
124864
  "div",
124866
124865
  {
@@ -125874,9 +125873,9 @@ const OtherUserMessage = ({
125874
125873
  var _a, _b, _c, _d;
125875
125874
  const fileType = (file == null ? void 0 : file.ext) ? isFileType(file.ext) : null;
125876
125875
  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-12", children: [
125876
+ /* @__PURE__ */ jsxs("div", { className: "pt-3 mr-1 max-w-14", children: [
125878
125877
  /* @__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-1 text-sm", children: (_d = (_c = msg == null ? void 0 : msg.user) == null ? void 0 : _c.agent) == null ? void 0 : _d.first_name })
125878
+ /* @__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
125879
  ] }),
125881
125880
  attachment ? /* @__PURE__ */ jsxs("div", { className: "my-2", children: [
125882
125881
  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: [