rename all extensions (drop suffix)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Extension } from 'tiptap'
|
||||
import { history, undo, redo } from 'prosemirror-history'
|
||||
|
||||
export default class HistoryExtension extends Extension {
|
||||
export default class History extends Extension {
|
||||
|
||||
get name() {
|
||||
return 'history'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Extension, Plugin } from 'tiptap'
|
||||
import { Decoration, DecorationSet } from 'prosemirror-view'
|
||||
|
||||
export default class PlaceholderExtension extends Extension {
|
||||
export default class Placeholder extends Extension {
|
||||
|
||||
get name() {
|
||||
return 'placeholder'
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
export { default as BlockquoteNode } from './nodes/Blockquote'
|
||||
export { default as BulletListNode } from './nodes/BulletList'
|
||||
export { default as CodeBlockNode } from './nodes/CodeBlock'
|
||||
export { default as CodeBlockHighlightNode } from './nodes/CodeBlockHighlight'
|
||||
export { default as HardBreakNode } from './nodes/HardBreak'
|
||||
export { default as HeadingNode } from './nodes/Heading'
|
||||
export { default as ImageNode } from './nodes/Image'
|
||||
export { default as ListItemNode } from './nodes/ListItem'
|
||||
export { default as MentionNode } from './nodes/Mention'
|
||||
export { default as OrderedListNode } from './nodes/OrderedList'
|
||||
export { default as TodoItemNode } from './nodes/TodoItem'
|
||||
export { default as TodoListNode } from './nodes/TodoList'
|
||||
export { default as Blockquote } from './nodes/Blockquote'
|
||||
export { default as BulletList } from './nodes/BulletList'
|
||||
export { default as CodeBlock } from './nodes/CodeBlock'
|
||||
export { default as CodeBlockHighlight } from './nodes/CodeBlockHighlight'
|
||||
export { default as HardBreak } from './nodes/HardBreak'
|
||||
export { default as Heading } from './nodes/Heading'
|
||||
export { default as Image } from './nodes/Image'
|
||||
export { default as ListItem } from './nodes/ListItem'
|
||||
export { default as Mention } from './nodes/Mention'
|
||||
export { default as OrderedList } from './nodes/OrderedList'
|
||||
export { default as TodoItem } from './nodes/TodoItem'
|
||||
export { default as TodoList } from './nodes/TodoList'
|
||||
|
||||
export { default as BoldMark } from './marks/Bold'
|
||||
export { default as CodeMark } from './marks/Code'
|
||||
export { default as ItalicMark } from './marks/Italic'
|
||||
export { default as LinkMark } from './marks/Link'
|
||||
export { default as StrikeMark } from './marks/Strike'
|
||||
export { default as UnderlineMark } from './marks/Underline'
|
||||
export { default as Bold } from './marks/Bold'
|
||||
export { default as Code } from './marks/Code'
|
||||
export { default as Italic } from './marks/Italic'
|
||||
export { default as Link } from './marks/Link'
|
||||
export { default as Strike } from './marks/Strike'
|
||||
export { default as Underline } from './marks/Underline'
|
||||
|
||||
export { default as HistoryExtension } from './extensions/History'
|
||||
export { default as PlaceholderExtension } from './extensions/Placeholder'
|
||||
export { default as History } from './extensions/History'
|
||||
export { default as Placeholder } from './extensions/Placeholder'
|
||||
|
||||
export { default as SuggestionsPlugin } from './plugins/Suggestions'
|
||||
export { default as Suggestions } from './plugins/Suggestions'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Mark } from 'tiptap'
|
||||
import { toggleMark, markInputRule } from 'tiptap-commands'
|
||||
|
||||
export default class BoldMark extends Mark {
|
||||
export default class Bold extends Mark {
|
||||
|
||||
get name() {
|
||||
return 'bold'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Mark } from 'tiptap'
|
||||
import { toggleMark, markInputRule } from 'tiptap-commands'
|
||||
|
||||
export default class CodeMark extends Mark {
|
||||
export default class Code extends Mark {
|
||||
|
||||
get name() {
|
||||
return 'code'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Mark } from 'tiptap'
|
||||
import { toggleMark, markInputRule } from 'tiptap-commands'
|
||||
|
||||
export default class ItalicMark extends Mark {
|
||||
export default class Italic extends Mark {
|
||||
|
||||
get name() {
|
||||
return 'italic'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Mark } from 'tiptap'
|
||||
import { updateMark, removeMark } from 'tiptap-commands'
|
||||
|
||||
export default class LinkMark extends Mark {
|
||||
export default class Link extends Mark {
|
||||
|
||||
get name() {
|
||||
return 'link'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Mark } from 'tiptap'
|
||||
import { toggleMark, markInputRule } from 'tiptap-commands'
|
||||
|
||||
export default class StrikeMark extends Mark {
|
||||
export default class Strike extends Mark {
|
||||
|
||||
get name() {
|
||||
return 'strike'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Mark } from 'tiptap'
|
||||
import { toggleMark } from 'tiptap-commands'
|
||||
|
||||
export default class UnderlineMark extends Mark {
|
||||
export default class Underline extends Mark {
|
||||
|
||||
get name() {
|
||||
return 'underline'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Node } from 'tiptap'
|
||||
import { wrappingInputRule, toggleWrap } from 'tiptap-commands'
|
||||
|
||||
export default class BlockquoteNode extends Node {
|
||||
export default class Blockquote extends Node {
|
||||
|
||||
get name() {
|
||||
return 'blockquote'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Node } from 'tiptap'
|
||||
import { wrappingInputRule, toggleList } from 'tiptap-commands'
|
||||
|
||||
export default class BulletNode extends Node {
|
||||
export default class Bullet extends Node {
|
||||
|
||||
get name() {
|
||||
return 'bullet_list'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Node } from 'tiptap'
|
||||
import { toggleBlockType, setBlockType, textblockTypeInputRule } from 'tiptap-commands'
|
||||
|
||||
export default class CodeBlockNode extends Node {
|
||||
export default class CodeBlock extends Node {
|
||||
|
||||
get name() {
|
||||
return 'code_block'
|
||||
|
||||
@@ -61,7 +61,7 @@ function getDecorations(doc) {
|
||||
return DecorationSet.create(doc, decorations)
|
||||
}
|
||||
|
||||
export default class CodeBlockHighlightNode extends Node {
|
||||
export default class CodeBlockHighlight extends Node {
|
||||
|
||||
constructor(options = {}) {
|
||||
super(options)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Node } from 'tiptap'
|
||||
import { chainCommands, exitCode } from 'tiptap-commands'
|
||||
|
||||
export default class HardBreakNode extends Node {
|
||||
export default class HardBreak extends Node {
|
||||
|
||||
get name() {
|
||||
return 'hard_break'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Node } from 'tiptap'
|
||||
import { setBlockType, textblockTypeInputRule, toggleBlockType } from 'tiptap-commands'
|
||||
|
||||
export default class HeadingNode extends Node {
|
||||
export default class Heading extends Node {
|
||||
|
||||
get name() {
|
||||
return 'heading'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Node, Plugin } from 'tiptap'
|
||||
|
||||
export default class ImageNode extends Node {
|
||||
export default class Image extends Node {
|
||||
|
||||
get name() {
|
||||
return 'image'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Node } from 'tiptap'
|
||||
import { splitListItem, liftListItem, sinkListItem } from 'tiptap-commands'
|
||||
|
||||
export default class ListItemNode extends Node {
|
||||
export default class ListItem extends Node {
|
||||
|
||||
get name() {
|
||||
return 'list_item'
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Node } from 'tiptap'
|
||||
import { replaceText } from 'tiptap-commands'
|
||||
import SuggestionsPlugin from '../plugins/Suggestions'
|
||||
|
||||
export default class MentionNode extends Node {
|
||||
export default class Mention extends Node {
|
||||
|
||||
get name() {
|
||||
return 'mention'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Node } from 'tiptap'
|
||||
import { wrappingInputRule, toggleList } from 'tiptap-commands'
|
||||
|
||||
export default class OrderedListNode extends Node {
|
||||
export default class OrderedList extends Node {
|
||||
|
||||
get name() {
|
||||
return 'ordered_list'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Node } from 'tiptap'
|
||||
import { splitToDefaultListItem, liftListItem } from 'tiptap-commands'
|
||||
|
||||
export default class TodoItemNode extends Node {
|
||||
export default class TodoItem extends Node {
|
||||
|
||||
get name() {
|
||||
return 'todo_item'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Node } from 'tiptap'
|
||||
import { wrapInList, wrappingInputRule } from 'tiptap-commands'
|
||||
|
||||
export default class TodoListNode extends Node {
|
||||
export default class TodoList extends Node {
|
||||
|
||||
get name() {
|
||||
return 'todo_list'
|
||||
|
||||
Reference in New Issue
Block a user