* feat: mention user * fix: trigger api call on every letter typed * fix: this allows command menu to re-render upon props change, shouldComponentUpdate prevented re-rendering when necessary * fix: add node * fix: mention node styling * fix: Caret not visible after inserting mention * fix: apply mentionRule * fix: label is to be obtained from content, not attrs * feat: add mentions table and model * fix: typo * fix: make all mention nodes visible in shared doc * feat: parse mention ids from doc text * feat: MentionsProcessor * feat: documents.publish tests * feat: tests for MentionsProcessor * feat: schedule notifs for mentions * fix: get rid of Mention model * fix: put actor id and mention id in raw md * Revert "fix: put actor id and mention id in raw md" This reverts commit 3bb8a22e3c560971dccad6d2f82266256bcb2d96. * Revert "Revert "fix: put actor id and mention id in raw md"" This reverts commit 3c5b36c40cebf147663908cf27d0dce6488adfad. * fix: review * fix: no need of set * fix: show avatar * fix: get rid of eventName * fix: font-weight * fix: prioritize mention notifs * fix: store id in md * fix: no need of prepending m * fix: fetchPage * fix: Avatars incorrect color * fix: remove scanRE * fix: test * fix: include alphabet other than latin * lockfile * fix: regex should test for letters, marks and digits --------- Co-authored-by: Tom Moor <tom.moor@gmail.com>
51 lines
1.3 KiB
TypeScript
51 lines
1.3 KiB
TypeScript
import Extension from "../lib/Extension";
|
|
import Bold from "../marks/Bold";
|
|
import Code from "../marks/Code";
|
|
import Italic from "../marks/Italic";
|
|
import Link from "../marks/Link";
|
|
import Mark from "../marks/Mark";
|
|
import Strikethrough from "../marks/Strikethrough";
|
|
import Underline from "../marks/Underline";
|
|
import Doc from "../nodes/Doc";
|
|
import Emoji from "../nodes/Emoji";
|
|
import Image from "../nodes/Image";
|
|
import Mention from "../nodes/Mention";
|
|
import Node from "../nodes/Node";
|
|
import Paragraph from "../nodes/Paragraph";
|
|
import Text from "../nodes/Text";
|
|
import ClipboardTextSerializer from "../plugins/ClipboardTextSerializer";
|
|
import DateTime from "../plugins/DateTime";
|
|
import History from "../plugins/History";
|
|
import Keys from "../plugins/Keys";
|
|
import MaxLength from "../plugins/MaxLength";
|
|
import PasteHandler from "../plugins/PasteHandler";
|
|
import Placeholder from "../plugins/Placeholder";
|
|
import SmartText from "../plugins/SmartText";
|
|
import TrailingNode from "../plugins/TrailingNode";
|
|
|
|
const basicPackage: (typeof Node | typeof Mark | typeof Extension)[] = [
|
|
Doc,
|
|
Paragraph,
|
|
Emoji,
|
|
Text,
|
|
Image,
|
|
Bold,
|
|
Code,
|
|
Italic,
|
|
Underline,
|
|
Link,
|
|
Strikethrough,
|
|
History,
|
|
SmartText,
|
|
TrailingNode,
|
|
PasteHandler,
|
|
Placeholder,
|
|
MaxLength,
|
|
DateTime,
|
|
Keys,
|
|
ClipboardTextSerializer,
|
|
Mention,
|
|
];
|
|
|
|
export default basicPackage;
|