@liveblocks/emails
Advanced tools
Comparing version 2.15.2 to 2.16.0-rc1
@@ -12,5 +12,5 @@ import { CommentBodyText, CommentBodyLink, BaseUserMeta, DU, CommentBodyMention, ResolveUsersArgs, OptionalPromise, DRI, CommentBody } from '@liveblocks/core'; | ||
*/ | ||
declare type CSSProperties = Properties; | ||
type CSSProperties = Properties; | ||
declare type CommentBodyContainerComponentProps = { | ||
type CommentBodyContainerComponentProps = { | ||
/** | ||
@@ -21,3 +21,3 @@ * The blocks of the comment body | ||
}; | ||
declare type CommentBodyParagraphComponentProps = { | ||
type CommentBodyParagraphComponentProps = { | ||
/** | ||
@@ -28,3 +28,3 @@ * The text content of the paragraph. | ||
}; | ||
declare type CommentBodyTextComponentProps = { | ||
type CommentBodyTextComponentProps = { | ||
/** | ||
@@ -35,3 +35,3 @@ * The text element. | ||
}; | ||
declare type CommentBodyLinkComponentProps = { | ||
type CommentBodyLinkComponentProps = { | ||
/** | ||
@@ -46,3 +46,3 @@ * The link element. | ||
}; | ||
declare type CommentBodyMentionComponentProps<U extends BaseUserMeta = DU> = { | ||
type CommentBodyMentionComponentProps<U extends BaseUserMeta = DU> = { | ||
/** | ||
@@ -57,3 +57,3 @@ * The mention element. | ||
}; | ||
declare type ConvertCommentBodyAsReactComponents<U extends BaseUserMeta = DU> = { | ||
type ConvertCommentBodyAsReactComponents<U extends BaseUserMeta = DU> = { | ||
/** | ||
@@ -81,3 +81,3 @@ * | ||
}; | ||
declare type ConvertCommentBodyAsHtmlStyles = { | ||
type ConvertCommentBodyAsHtmlStyles = { | ||
/** | ||
@@ -105,3 +105,3 @@ * The default inline CSS styles used to display paragraphs. | ||
declare type ResolveRoomInfoArgs = { | ||
type ResolveRoomInfoArgs = { | ||
/** | ||
@@ -120,3 +120,3 @@ * The ID of the room to resolve | ||
declare type LiveblocksTextEditorTextFormat = { | ||
type LiveblocksTextEditorTextFormat = { | ||
bold: boolean; | ||
@@ -127,7 +127,7 @@ italic: boolean; | ||
}; | ||
declare type LiveblocksTextEditorTextNode = { | ||
type LiveblocksTextEditorTextNode = { | ||
type: "text"; | ||
text: string; | ||
} & LiveblocksTextEditorTextFormat; | ||
declare type LiveblocksTextEditorMentionNode = { | ||
type LiveblocksTextEditorMentionNode = { | ||
type: "mention"; | ||
@@ -149,4 +149,4 @@ userId: string; | ||
*/ | ||
declare type LiveblocksTextEditorNode = LiveblocksTextEditorTextNode | LiveblocksTextEditorMentionNode; | ||
declare type TextEditorContainerComponentProps = { | ||
type LiveblocksTextEditorNode = LiveblocksTextEditorTextNode | LiveblocksTextEditorMentionNode; | ||
type TextEditorContainerComponentProps = { | ||
/** | ||
@@ -157,3 +157,3 @@ * The nodes of the text editor | ||
}; | ||
declare type TextEditorMentionComponentProps<U extends BaseUserMeta = DU> = { | ||
type TextEditorMentionComponentProps<U extends BaseUserMeta = DU> = { | ||
/** | ||
@@ -168,3 +168,3 @@ * The mention element. | ||
}; | ||
declare type TextEditorTextComponentProps = { | ||
type TextEditorTextComponentProps = { | ||
/** | ||
@@ -175,3 +175,3 @@ * The text element. | ||
}; | ||
declare type ConvertTextEditorNodesAsReactComponents<U extends BaseUserMeta = DU> = { | ||
type ConvertTextEditorNodesAsReactComponents<U extends BaseUserMeta = DU> = { | ||
/** | ||
@@ -191,3 +191,3 @@ * | ||
}; | ||
declare type ConvertTextEditorNodesAsHtmlStyles = { | ||
type ConvertTextEditorNodesAsHtmlStyles = { | ||
/** | ||
@@ -211,3 +211,3 @@ * The default inline CSS styles used to display container element. | ||
declare type MentionEmailBaseData = { | ||
type MentionEmailBaseData = { | ||
id: string; | ||
@@ -219,3 +219,3 @@ roomId: string; | ||
}; | ||
declare type PrepareTextMentionNotificationEmailBaseDataOptions = { | ||
type PrepareTextMentionNotificationEmailBaseDataOptions = { | ||
/** | ||
@@ -226,11 +226,11 @@ * A function that returns room info from room IDs. | ||
}; | ||
declare type MentionEmailAsReactData<U extends BaseUserMeta = DU> = Omit<MentionEmailBaseData, "userId" | "textEditorNodes"> & { | ||
type MentionEmailAsReactData<U extends BaseUserMeta = DU> = Omit<MentionEmailBaseData, "userId" | "textEditorNodes"> & { | ||
author: U; | ||
reactContent: ReactNode; | ||
}; | ||
declare type MentionEmailAsHtmlData<U extends BaseUserMeta = DU> = Omit<MentionEmailBaseData, "userId" | "textEditorNodes"> & { | ||
type MentionEmailAsHtmlData<U extends BaseUserMeta = DU> = Omit<MentionEmailBaseData, "userId" | "textEditorNodes"> & { | ||
author: U; | ||
htmlContent: string; | ||
}; | ||
declare type PrepareTextMentionNotificationEmailAsReactOptions<U extends BaseUserMeta = DU> = PrepareTextMentionNotificationEmailBaseDataOptions & { | ||
type PrepareTextMentionNotificationEmailAsReactOptions<U extends BaseUserMeta = DU> = PrepareTextMentionNotificationEmailBaseDataOptions & { | ||
/** | ||
@@ -246,7 +246,7 @@ * A function that returns info from user IDs. | ||
}; | ||
declare type TextMentionNotificationEmailData<U extends BaseUserMeta, M extends MentionEmailAsReactData<U> | MentionEmailAsHtmlData<U>> = { | ||
type TextMentionNotificationEmailData<U extends BaseUserMeta, M extends MentionEmailAsReactData<U> | MentionEmailAsHtmlData<U>> = { | ||
mention: M; | ||
roomInfo: DRI; | ||
}; | ||
declare type TextMentionNotificationEmailDataAsReact = TextMentionNotificationEmailData<BaseUserMeta, MentionEmailAsReactData>; | ||
type TextMentionNotificationEmailDataAsReact = TextMentionNotificationEmailData<BaseUserMeta, MentionEmailAsReactData>; | ||
/** | ||
@@ -277,3 +277,3 @@ * Prepares data from a `TextMentionNotificationEvent` and convert content as React nodes. | ||
declare function prepareTextMentionNotificationEmailAsReact(client: Liveblocks, event: TextMentionNotificationEvent, options?: PrepareTextMentionNotificationEmailAsReactOptions<BaseUserMeta>): Promise<TextMentionNotificationEmailDataAsReact | null>; | ||
declare type PrepareTextMentionNotificationEmailAsHtmlOptions<U extends BaseUserMeta = DU> = PrepareTextMentionNotificationEmailBaseDataOptions & { | ||
type PrepareTextMentionNotificationEmailAsHtmlOptions<U extends BaseUserMeta = DU> = PrepareTextMentionNotificationEmailBaseDataOptions & { | ||
/** | ||
@@ -289,3 +289,3 @@ * A function that returns info from user IDs. | ||
}; | ||
declare type TextMentionNotificationEmailDataAsHtml = TextMentionNotificationEmailData<BaseUserMeta, MentionEmailAsHtmlData>; | ||
type TextMentionNotificationEmailDataAsHtml = TextMentionNotificationEmailData<BaseUserMeta, MentionEmailAsHtmlData>; | ||
/** | ||
@@ -317,3 +317,3 @@ * Prepares data from a `TextMentionNotificationEvent` and convert content as an html safe string. | ||
declare type CommentEmailBaseData = { | ||
type CommentEmailBaseData = { | ||
id: string; | ||
@@ -327,3 +327,3 @@ threadId: string; | ||
}; | ||
declare type PrepareThreadNotificationEmailBaseDataOptions = { | ||
type PrepareThreadNotificationEmailBaseDataOptions = { | ||
/** | ||
@@ -334,22 +334,22 @@ * A function that returns room info from room IDs. | ||
}; | ||
declare type CommentEmailAsHtmlData<U extends BaseUserMeta = DU> = Omit<CommentEmailBaseData, "userId" | "rawBody"> & { | ||
type CommentEmailAsHtmlData<U extends BaseUserMeta = DU> = Omit<CommentEmailBaseData, "userId" | "rawBody"> & { | ||
author: U; | ||
htmlBody: string; | ||
}; | ||
declare type CommentEmailAsReactData<U extends BaseUserMeta = DU> = Omit<CommentEmailBaseData, "userId" | "rawBody"> & { | ||
type CommentEmailAsReactData<U extends BaseUserMeta = DU> = Omit<CommentEmailBaseData, "userId" | "rawBody"> & { | ||
author: U; | ||
reactBody: ReactNode; | ||
}; | ||
declare type ThreadNotificationEmailUnreadRepliesData<U extends BaseUserMeta, C extends CommentEmailAsHtmlData<U> | CommentEmailAsReactData<U>> = { | ||
type ThreadNotificationEmailUnreadRepliesData<U extends BaseUserMeta, C extends CommentEmailAsHtmlData<U> | CommentEmailAsReactData<U>> = { | ||
type: "unreadReplies"; | ||
comments: C[]; | ||
}; | ||
declare type ThreadNotificationEmailUnreadMentionsData<U extends BaseUserMeta, C extends CommentEmailAsHtmlData<U> | CommentEmailAsReactData<U>> = { | ||
type ThreadNotificationEmailUnreadMentionsData<U extends BaseUserMeta, C extends CommentEmailAsHtmlData<U> | CommentEmailAsReactData<U>> = { | ||
type: "unreadMention"; | ||
comment: C; | ||
}; | ||
declare type ThreadNotificationEmailData<U extends BaseUserMeta, C extends CommentEmailAsHtmlData<U> | CommentEmailAsReactData<U>> = (ThreadNotificationEmailUnreadRepliesData<U, C> | ThreadNotificationEmailUnreadMentionsData<U, C>) & { | ||
type ThreadNotificationEmailData<U extends BaseUserMeta, C extends CommentEmailAsHtmlData<U> | CommentEmailAsReactData<U>> = (ThreadNotificationEmailUnreadRepliesData<U, C> | ThreadNotificationEmailUnreadMentionsData<U, C>) & { | ||
roomInfo: DRI; | ||
}; | ||
declare type PrepareThreadNotificationEmailAsHtmlOptions<U extends BaseUserMeta = DU> = PrepareThreadNotificationEmailBaseDataOptions & { | ||
type PrepareThreadNotificationEmailAsHtmlOptions<U extends BaseUserMeta = DU> = PrepareThreadNotificationEmailBaseDataOptions & { | ||
/** | ||
@@ -365,3 +365,3 @@ * A function that returns info from user IDs. | ||
}; | ||
declare type ThreadNotificationEmailDataAsHtml = ThreadNotificationEmailData<BaseUserMeta, CommentEmailAsHtmlData>; | ||
type ThreadNotificationEmailDataAsHtml = ThreadNotificationEmailData<BaseUserMeta, CommentEmailAsHtmlData>; | ||
/** | ||
@@ -394,3 +394,3 @@ * Prepares data from a `ThreadNotificationEvent` and convert comment bodies as an html safe string. | ||
declare function prepareThreadNotificationEmailAsHtml(client: Liveblocks, event: ThreadNotificationEvent, options?: PrepareThreadNotificationEmailAsHtmlOptions<BaseUserMeta>): Promise<ThreadNotificationEmailDataAsHtml | null>; | ||
declare type PrepareThreadNotificationEmailAsReactOptions<U extends BaseUserMeta = DU> = PrepareThreadNotificationEmailBaseDataOptions & { | ||
type PrepareThreadNotificationEmailAsReactOptions<U extends BaseUserMeta = DU> = PrepareThreadNotificationEmailBaseDataOptions & { | ||
/** | ||
@@ -406,3 +406,3 @@ * A function that returns info from user IDs. | ||
}; | ||
declare type ThreadNotificationEmailDataAsReact = ThreadNotificationEmailData<BaseUserMeta, CommentEmailAsReactData>; | ||
type ThreadNotificationEmailDataAsReact = ThreadNotificationEmailData<BaseUserMeta, CommentEmailAsReactData>; | ||
/** | ||
@@ -409,0 +409,0 @@ * Prepares data from a `ThreadNotificationEvent` and convert comment bodies as React nodes. |
{ | ||
"name": "@liveblocks/emails", | ||
"version": "2.15.2", | ||
"version": "2.16.0-rc1", | ||
"description": "A set of functions and utilities to make sending emails based on Liveblocks notification events easy. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.", | ||
@@ -38,4 +38,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@liveblocks/core": "2.15.2", | ||
"@liveblocks/node": "2.15.2" | ||
"@liveblocks/core": "2.16.0-rc1", | ||
"@liveblocks/node": "2.16.0-rc1" | ||
}, | ||
@@ -49,3 +49,3 @@ "peerDependencies": { | ||
"csstype": "3.0.2", | ||
"msw": "^2.0.2" | ||
"msw": "^2.7.0" | ||
}, | ||
@@ -58,3 +58,3 @@ "sideEffects": false, | ||
"type": "git", | ||
"url": "https://github.com/liveblocks/liveblocks.git", | ||
"url": "git+https://github.com/liveblocks/liveblocks.git", | ||
"directory": "packages/liveblocks-emails" | ||
@@ -61,0 +61,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
17954
1785806
1
+ Added@liveblocks/core@2.16.0-rc1(transitive)
+ Added@liveblocks/node@2.16.0-rc1(transitive)
- Removed@liveblocks/core@2.15.2(transitive)
- Removed@liveblocks/node@2.15.2(transitive)
Updated@liveblocks/core@2.16.0-rc1
Updated@liveblocks/node@2.16.0-rc1