@burdenoff/planmagnet-fe-sdk 2026.706.2 → 2026.706.4
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 +3 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2671,7 +2671,7 @@ function TaskCommentsCore({
|
|
|
2671
2671
|
DELETE_ENTITY_COMMENT
|
|
2672
2672
|
);
|
|
2673
2673
|
const authorName = (id) => id === currentActorId ? L.you : resolveAssignee?.(id)?.name ?? void 0;
|
|
2674
|
-
const post = async ({ text
|
|
2674
|
+
const post = async ({ text }, parentCommentId) => {
|
|
2675
2675
|
setError(null);
|
|
2676
2676
|
try {
|
|
2677
2677
|
await createComment({
|
|
@@ -2681,8 +2681,7 @@ function TaskCommentsCore({
|
|
|
2681
2681
|
entityId,
|
|
2682
2682
|
content: { text },
|
|
2683
2683
|
contentType: "TEXT",
|
|
2684
|
-
...parentCommentId ? { parentCommentId } : {}
|
|
2685
|
-
...mentionUserIds.length ? { mentionUserIds } : {}
|
|
2684
|
+
...parentCommentId ? { parentCommentId } : {}
|
|
2686
2685
|
}
|
|
2687
2686
|
}
|
|
2688
2687
|
});
|
|
@@ -2704,7 +2703,7 @@ function TaskCommentsCore({
|
|
|
2704
2703
|
};
|
|
2705
2704
|
const renderBody = (c) => {
|
|
2706
2705
|
const text = c.content?.text ?? "";
|
|
2707
|
-
const names = (
|
|
2706
|
+
const names = (members ?? []).map((m) => m.name).filter((n) => text.includes(`@${n}`));
|
|
2708
2707
|
if (names.length === 0) return text;
|
|
2709
2708
|
const tokens = new Set(names.map((n) => `@${n}`));
|
|
2710
2709
|
const re = new RegExp(`(@(?:${names.map(escapeRe).join("|")}))`, "g");
|