@poolse/react-native 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 +9 -0
- package/dist/index.cjs +14 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -10
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,15 @@ All notable changes to `@poolse/react-native` are documented here.
|
|
|
4
4
|
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/);
|
|
5
5
|
versions follow [semver](https://semver.org).
|
|
6
6
|
|
|
7
|
+
## [3.7.1] - 2026-11-21
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- `list` layout: the time beside later messages of a run no longer wraps
|
|
12
|
+
("2:00P" / "M"). It stays on one line, without the space before AM/PM, and
|
|
13
|
+
shrinks to fit the gutter, so "10:00 PM" and "12:45 AM" fit too.
|
|
14
|
+
- @-mention suggestions show only the person's name, not their id next to it.
|
|
15
|
+
|
|
7
16
|
## [3.7.0] - 2026-11-21
|
|
8
17
|
|
|
9
18
|
- No changes; released with the other `@poolse/*` packages at 3.7.0.
|
package/dist/index.cjs
CHANGED
|
@@ -3285,8 +3285,7 @@ function MentionRow({
|
|
|
3285
3285
|
numberOfLines: 1,
|
|
3286
3286
|
children: name
|
|
3287
3287
|
}
|
|
3288
|
-
)
|
|
3289
|
-
name !== externalId ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.rowId, { color: theme.colors.textSubtle }], numberOfLines: 1, children: externalId }) : null
|
|
3288
|
+
)
|
|
3290
3289
|
]
|
|
3291
3290
|
}
|
|
3292
3291
|
);
|
|
@@ -3307,14 +3306,12 @@ var styles13 = reactNative.StyleSheet.create({
|
|
|
3307
3306
|
paddingVertical: 8,
|
|
3308
3307
|
gap: 10
|
|
3309
3308
|
},
|
|
3309
|
+
// The name alone, with the whole row's width: an id next to it only
|
|
3310
|
+
// pushed the name out.
|
|
3310
3311
|
rowText: {
|
|
3312
|
+
flex: 1,
|
|
3311
3313
|
fontSize: 14,
|
|
3312
|
-
fontWeight: "500"
|
|
3313
|
-
flexShrink: 1
|
|
3314
|
-
},
|
|
3315
|
-
rowId: {
|
|
3316
|
-
fontSize: 12,
|
|
3317
|
-
flexShrink: 1
|
|
3314
|
+
fontWeight: "500"
|
|
3318
3315
|
},
|
|
3319
3316
|
dismiss: {
|
|
3320
3317
|
position: "absolute",
|
|
@@ -4232,6 +4229,9 @@ function formatClock(date, format2) {
|
|
|
4232
4229
|
}
|
|
4233
4230
|
return date.toLocaleTimeString([], { hour: "numeric", minute: "2-digit" });
|
|
4234
4231
|
}
|
|
4232
|
+
function gutterTime(time) {
|
|
4233
|
+
return time.replace(/\s+(?=[AaPp]\.?[Mm]\.?$)/, "").replace(/\u202f/g, "");
|
|
4234
|
+
}
|
|
4235
4235
|
function formatMessageTime(iso, format2) {
|
|
4236
4236
|
if (!iso) return "";
|
|
4237
4237
|
const date = new Date(iso);
|
|
@@ -5337,7 +5337,8 @@ function FlatMessageRow({
|
|
|
5337
5337
|
{ color: theme.colors.textSubtle, fontFamily: theme.fonts.body },
|
|
5338
5338
|
dim ? styles23.timeDim : null
|
|
5339
5339
|
],
|
|
5340
|
-
|
|
5340
|
+
...dim ? { numberOfLines: 1, adjustsFontSizeToFit: true, minimumFontScale: 0.6 } : {},
|
|
5341
|
+
children: dim ? gutterTime(time) : time
|
|
5341
5342
|
}
|
|
5342
5343
|
);
|
|
5343
5344
|
const header = compact ? name : isRunStart ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles23.header, children: [
|
|
@@ -5592,7 +5593,10 @@ var styles23 = reactNative.StyleSheet.create({
|
|
|
5592
5593
|
},
|
|
5593
5594
|
timeDim: {
|
|
5594
5595
|
fontSize: 10,
|
|
5595
|
-
opacity: 0.7
|
|
5596
|
+
opacity: 0.7,
|
|
5597
|
+
// Fill the gutter so shrink-to-fit measures against its width.
|
|
5598
|
+
width: GUTTER,
|
|
5599
|
+
textAlign: "center"
|
|
5596
5600
|
},
|
|
5597
5601
|
attachments: {
|
|
5598
5602
|
marginVertical: 4,
|