@burdenoff/planmagnet-fe-sdk 2026.706.3 → 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 +16 -27
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2671,37 +2671,26 @@ 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
|
-
const base = {
|
|
2677
|
-
entityType,
|
|
2678
|
-
entityId,
|
|
2679
|
-
content: { text },
|
|
2680
|
-
contentType: "TEXT",
|
|
2681
|
-
...parentCommentId ? { parentCommentId } : {}
|
|
2682
|
-
};
|
|
2683
|
-
const create = (withMentions) => createComment({
|
|
2684
|
-
variables: {
|
|
2685
|
-
input: withMentions && mentionUserIds.length ? { ...base, mentionUserIds } : base
|
|
2686
|
-
}
|
|
2687
|
-
});
|
|
2688
2676
|
try {
|
|
2689
|
-
await
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2677
|
+
await createComment({
|
|
2678
|
+
variables: {
|
|
2679
|
+
input: {
|
|
2680
|
+
entityType,
|
|
2681
|
+
entityId,
|
|
2682
|
+
content: { text },
|
|
2683
|
+
contentType: "TEXT",
|
|
2684
|
+
...parentCommentId ? { parentCommentId } : {}
|
|
2685
|
+
}
|
|
2697
2686
|
}
|
|
2698
|
-
}
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2687
|
+
});
|
|
2688
|
+
await refetch();
|
|
2689
|
+
setReplyingTo(null);
|
|
2690
|
+
} catch (err) {
|
|
2691
|
+
setError(L.failedToComment);
|
|
2692
|
+
throw err;
|
|
2702
2693
|
}
|
|
2703
|
-
await refetch();
|
|
2704
|
-
setReplyingTo(null);
|
|
2705
2694
|
};
|
|
2706
2695
|
const handleDelete = async (id) => {
|
|
2707
2696
|
setError(null);
|