react-pro-messenger 1.0.30 → 1.0.32

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.es.js CHANGED
@@ -5807,7 +5807,7 @@ const Sd = ({ src: e, className: t }) => {
5807
5807
  handleContextMenu: n,
5808
5808
  media: r
5809
5809
  }) => {
5810
- var i, s, o, l, a;
5810
+ var i, s, o, l, a, u, c, f, h, m;
5811
5811
  return /* @__PURE__ */ p.exports.jsxs(p.exports.Fragment, { children: [
5812
5812
  t ? /* @__PURE__ */ p.exports.jsx(
5813
5813
  "img",
@@ -5823,13 +5823,23 @@ const Sd = ({ src: e, className: t }) => {
5823
5823
  animate: { opacity: 1, y: 0 },
5824
5824
  exit: { opacity: 0, y: 50 },
5825
5825
  transition: { duration: 0.3 },
5826
- onContextMenu: (u) => n(u, e),
5827
- className: `relative ${r ? "w-3/4" : "w-fit max-w-3/4"}flex flex-col gap-1 md:max-w-[400px] p-2 pt-5 rounded-lg bg-green-200`,
5826
+ onContextMenu: (v) => n(v, e),
5827
+ className: `relative ${r ? "w-3/4" : "w-fit max-w-3/4"} flex flex-col gap-1 md:max-w-[400px] p-2 pt-5 rounded-lg bg-green-200`,
5828
5828
  children: [
5829
- /* @__PURE__ */ p.exports.jsx("span", { className: "absolute top-1 text-xs text-orange-700", children: (i = e.user) != null && i.fullName && ((o = (s = e.user) == null ? void 0 : s.fullName) == null ? void 0 : o.length) > 16 ? (l = e.user) == null ? void 0 : l.firstName : (a = e.user) == null ? void 0 : a.fullName }),
5829
+ /* @__PURE__ */ p.exports.jsx(
5830
+ "span",
5831
+ {
5832
+ title: (i = e.user) != null && i.fullName && ((o = (s = e.user) == null ? void 0 : s.fullName) == null ? void 0 : o.length) > 16 ? (l = e.user) == null ? void 0 : l.firstName : (a = e.user) == null ? void 0 : a.fullName,
5833
+ className: "relative -top-3 h-4 -mb-3 overflow-y-visible text-xs text-orange-700 whitespace-nowrap truncate max-w-[100px] overflow-visible",
5834
+ children: (u = e.user) != null && u.fullName && ((f = (c = e.user) == null ? void 0 : c.fullName) == null ? void 0 : f.length) > 16 ? (h = e.user) == null ? void 0 : h.firstName : (m = e.user) == null ? void 0 : m.fullName
5835
+ }
5836
+ ),
5830
5837
  r || null,
5831
5838
  /* @__PURE__ */ p.exports.jsx("span", { children: e.text }),
5832
- /* @__PURE__ */ p.exports.jsx("div", { className: "w-full flex gap- items-center justify-end", children: /* @__PURE__ */ p.exports.jsx("span", { className: "text-[10px]", children: new Date(e.createdDate).toLocaleTimeString().split(":")[0] + ":" + new Date(e.createdDate).toLocaleTimeString().split(":")[1] }) }),
5839
+ /* @__PURE__ */ p.exports.jsxs("div", { className: "w-full flex gap-1 items-center justify-end", children: [
5840
+ /* @__PURE__ */ p.exports.jsx("span", { className: "text-[10px]", children: new Date(e.createdDate).toLocaleTimeString().split(":")[0] + ":" + new Date(e.createdDate).toLocaleTimeString().split(":")[1] }),
5841
+ e.isEdited ? /* @__PURE__ */ p.exports.jsx("span", { className: "text-xs text-gray-600 italic", children: "edited" }) : ""
5842
+ ] }),
5833
5843
  /* @__PURE__ */ p.exports.jsx(en, { className: "fill-blue-200 -rotate-180 scale-x-[-1] transition-discrete absolute -left-2 bottom-0 [&>g>path]:fill-green-200" })
5834
5844
  ]
5835
5845
  }