sykpcomposer 1.19.44 → 1.19.46
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/{ImageComponent-98fccc46.js → ImageComponent-d38e95d2.js} +3 -3
- package/dist/{ImageComponent-98fccc46.js.map → ImageComponent-d38e95d2.js.map} +1 -1
- package/dist/{InlineImageComponent-4465f1c7.js → InlineImageComponent-64150e77.js} +3 -3
- package/dist/{InlineImageComponent-4465f1c7.js.map → InlineImageComponent-64150e77.js.map} +1 -1
- package/dist/{LexicalNestedComposer.prod-163bb3ee.js → LexicalNestedComposer.prod-295f51a6.js} +2 -2
- package/dist/{LexicalNestedComposer.prod-163bb3ee.js.map → LexicalNestedComposer.prod-295f51a6.js.map} +1 -1
- package/dist/{PollComponent-42bc9bc5.js → PollComponent-4ab513f0.js} +2 -2
- package/dist/{PollComponent-42bc9bc5.js.map → PollComponent-4ab513f0.js.map} +1 -1
- package/dist/{index-32a869f4.js → index-0b0e5020.js} +8375 -8322
- package/dist/index-0b0e5020.js.map +1 -0
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +98 -98
- package/dist/index.umd.js.map +1 -1
- package/dist/src/lexical/commenting/index.d.ts +2 -1
- package/dist/src/lexical/plugins/CommentPlugin/index.d.ts +4 -1
- package/dist/src/lexical/plugins/MentionsPlugin/index.d.ts +6 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index-32a869f4.js.map +0 -1
|
@@ -10,6 +10,7 @@ export type Comment = {
|
|
|
10
10
|
type: "comment";
|
|
11
11
|
quote?: string;
|
|
12
12
|
userEmail?: string;
|
|
13
|
+
mentionedEmails?: string[];
|
|
13
14
|
};
|
|
14
15
|
export type CommentBoxProps = {
|
|
15
16
|
name: string;
|
|
@@ -34,7 +35,7 @@ export type Thread = {
|
|
|
34
35
|
resolved: boolean;
|
|
35
36
|
};
|
|
36
37
|
export type Comments = Array<Thread | Comment>;
|
|
37
|
-
export declare function createComment(content: string, author: string, userEmail?: string, id?: string, timeStamp?: number, deleted?: boolean): Comment;
|
|
38
|
+
export declare function createComment(content: string, author: string, userEmail?: string, mentionedEmails?: string[], id?: string, timeStamp?: number, deleted?: boolean): Comment;
|
|
38
39
|
export declare function createThread(quote: string, comments: Array<Comment>, id?: string): Thread;
|
|
39
40
|
export declare class CommentStore {
|
|
40
41
|
_editor: LexicalEditor;
|
|
@@ -11,11 +11,14 @@ import type { LexicalCommand } from 'lexical';
|
|
|
11
11
|
import type { Doc } from 'yjs';
|
|
12
12
|
import { Comments } from '../../commenting';
|
|
13
13
|
export declare const INSERT_INLINE_COMMAND: LexicalCommand<void>;
|
|
14
|
-
export default function CommentPlugin({ providerFactory, handleSaveComments, showComments, setShowComments, userName, userEmail, }: {
|
|
14
|
+
export default function CommentPlugin({ providerFactory, handleSaveComments, showComments, setShowComments, userName, userEmail, mentionItems, mentionedEmails, setmentionedEmails }: {
|
|
15
15
|
providerFactory?: (id: string, yjsDocMap: Map<string, Doc>) => Provider;
|
|
16
16
|
handleSaveComments: (comments: Comments) => void;
|
|
17
17
|
setShowComments: any;
|
|
18
18
|
showComments: boolean;
|
|
19
19
|
userName: string;
|
|
20
20
|
userEmail: string;
|
|
21
|
+
mentionItems: any;
|
|
22
|
+
mentionedEmails: any;
|
|
23
|
+
setmentionedEmails: any;
|
|
21
24
|
}): JSX.Element;
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
/// <reference types="react" />
|
|
9
|
-
export default function NewMentionsPlugin({ mentionItems, }: {
|
|
10
|
-
mentionItems:
|
|
9
|
+
export default function NewMentionsPlugin({ mentionItems, setmentionedEmails }: {
|
|
10
|
+
mentionItems: Array<{
|
|
11
|
+
name: string;
|
|
12
|
+
email: string;
|
|
13
|
+
}>;
|
|
14
|
+
setmentionedEmails: any;
|
|
11
15
|
}): JSX.Element | null;
|