@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/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@ All notable changes to `@poolse/react-ui` are documented here. Format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow
|
|
5
5
|
[semver](https://semver.org).
|
|
6
6
|
|
|
7
|
+
## [3.7.1] - 2026-11-21
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- `list` layout: the hover time in the gutter fits in 40px ("10:00PM"),
|
|
12
|
+
instead of running into the message.
|
|
13
|
+
- @-mention suggestions show only the person's name, not their id next to it.
|
|
14
|
+
|
|
7
15
|
## [3.7.0] - 2026-11-21
|
|
8
16
|
|
|
9
17
|
- No changes; released with the other `@poolse/*` packages at 3.7.0.
|
package/dist/index.cjs
CHANGED
|
@@ -1703,6 +1703,9 @@ function parse(raw) {
|
|
|
1703
1703
|
}
|
|
1704
1704
|
|
|
1705
1705
|
// src/layout.ts
|
|
1706
|
+
function gutterTime(time) {
|
|
1707
|
+
return time.replace(/\s+(?=[AaPp]\.?[Mm]\.?$)/, "").replace(/\u202f/g, "");
|
|
1708
|
+
}
|
|
1706
1709
|
function formatMessageTime(iso, format) {
|
|
1707
1710
|
if (!iso) return "";
|
|
1708
1711
|
const date = new Date(iso);
|
|
@@ -2661,8 +2664,7 @@ function MentionOption({ member, name }) {
|
|
|
2661
2664
|
const { profile } = react$1.useUser(member.external_id);
|
|
2662
2665
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2663
2666
|
/* @__PURE__ */ jsxRuntime.jsx(Avatar, { src: profile?.avatarUrl ?? null, name, size: "xs" }),
|
|
2664
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "poolse-mention-menu__name", children: name })
|
|
2665
|
-
name !== member.external_id ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "poolse-mention-menu__handle", children: member.external_id }) : null
|
|
2667
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "poolse-mention-menu__name", children: name })
|
|
2666
2668
|
] });
|
|
2667
2669
|
}
|
|
2668
2670
|
function rankMembers(members, query, label) {
|
|
@@ -4103,7 +4105,7 @@ function FlatMessageRow({
|
|
|
4103
4105
|
const replyCount = msg.reply_count ?? 0;
|
|
4104
4106
|
const showThreadLink = threads && !msg.thread_root_id && replyCount > 0;
|
|
4105
4107
|
const showActions = actions && !deleted && !editing;
|
|
4106
|
-
const timeEl = (className) => /* @__PURE__ */ jsxRuntime.jsx("time", { className, dateTime: msg.inserted_at, children: time });
|
|
4108
|
+
const timeEl = (className) => /* @__PURE__ */ jsxRuntime.jsx("time", { className, dateTime: msg.inserted_at, children: className === "poolse-row__gutter-time" ? gutterTime(time) : time });
|
|
4107
4109
|
const avatarSize = compact ? "sm" : "md";
|
|
4108
4110
|
const avatarEl = /* @__PURE__ */ jsxRuntime.jsx(
|
|
4109
4111
|
Avatar,
|