@poolse/react-ui 3.7.0 → 3.7.1
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/CHANGELOG.md +8 -0
- package/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/styles.css +5 -9
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -827,6 +827,9 @@ function parse(raw) {
|
|
|
827
827
|
}
|
|
828
828
|
|
|
829
829
|
// src/layout.ts
|
|
830
|
+
function gutterTime(time) {
|
|
831
|
+
return time.replace(/\s+(?=[AaPp]\.?[Mm]\.?$)/, "").replace(/\u202f/g, "");
|
|
832
|
+
}
|
|
830
833
|
function formatMessageTime(iso, format) {
|
|
831
834
|
if (!iso) return "";
|
|
832
835
|
const date = new Date(iso);
|
|
@@ -1785,8 +1788,7 @@ function MentionOption({ member, name }) {
|
|
|
1785
1788
|
const { profile } = useUser(member.external_id);
|
|
1786
1789
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1787
1790
|
/* @__PURE__ */ jsx(Avatar, { src: profile?.avatarUrl ?? null, name, size: "xs" }),
|
|
1788
|
-
/* @__PURE__ */ jsx("span", { className: "poolse-mention-menu__name", children: name })
|
|
1789
|
-
name !== member.external_id ? /* @__PURE__ */ jsx("span", { className: "poolse-mention-menu__handle", children: member.external_id }) : null
|
|
1791
|
+
/* @__PURE__ */ jsx("span", { className: "poolse-mention-menu__name", children: name })
|
|
1790
1792
|
] });
|
|
1791
1793
|
}
|
|
1792
1794
|
function rankMembers(members, query, label) {
|
|
@@ -3227,7 +3229,7 @@ function FlatMessageRow({
|
|
|
3227
3229
|
const replyCount = msg.reply_count ?? 0;
|
|
3228
3230
|
const showThreadLink = threads && !msg.thread_root_id && replyCount > 0;
|
|
3229
3231
|
const showActions = actions && !deleted && !editing;
|
|
3230
|
-
const timeEl = (className) => /* @__PURE__ */ jsx("time", { className, dateTime: msg.inserted_at, children: time });
|
|
3232
|
+
const timeEl = (className) => /* @__PURE__ */ jsx("time", { className, dateTime: msg.inserted_at, children: className === "poolse-row__gutter-time" ? gutterTime(time) : time });
|
|
3231
3233
|
const avatarSize = compact ? "sm" : "md";
|
|
3232
3234
|
const avatarEl = /* @__PURE__ */ jsx(
|
|
3233
3235
|
Avatar,
|