Add support for submodules and update heartwood

This commit is contained in:
Sebastian Martinez
2024-03-11 19:13:22 +01:00
committed by Rūdolfs Ošiņš
parent 953643c09c
commit 5b30269c7c
26 changed files with 183 additions and 86 deletions
+4 -1
View File
@@ -34,7 +34,10 @@
| ((body: string, embeds: Embed[]) => Promise<void>)
| undefined = undefined;
export let reactOnComment:
| ((nids: string[], reaction: string) => Promise<void>)
| ((
authors: Comment["reactions"][0]["authors"],
reaction: string,
) => Promise<void>)
| undefined = undefined;
</script>
+1 -1
View File
@@ -12,7 +12,7 @@
export let reactions: Comment["reactions"] | undefined = undefined;
const dispatch = createEventDispatcher<{
select: { emoji: string; authors: string[] };
select: Comment["reactions"][0];
}>();
</script>
+4 -1
View File
@@ -5,7 +5,10 @@
export let reactions: Comment["reactions"];
export let handleReaction:
| ((authors: string[], reaction: string) => Promise<void>)
| ((
authors: Comment["reactions"][0]["authors"],
reaction: string,
) => Promise<void>)
| undefined;
</script>
+5 -1
View File
@@ -25,7 +25,11 @@
| ((commentId: string, comment: string, embeds: Embed[]) => Promise<void>)
| undefined;
export let reactOnComment:
| ((commentId: string, nids: string[], reaction: string) => Promise<void>)
| ((
commentId: string,
authors: Comment["reactions"][0]["authors"],
reaction: string,
) => Promise<void>)
| undefined;
async function toggleReply() {