refactoring

This commit is contained in:
Philipp Kühn 2020-11-10 21:18:22 +01:00
parent 54c2dcb8e6
commit cb5ca0c084
36 changed files with 41 additions and 36 deletions

View File

@ -63,7 +63,7 @@ export const Commands = createExtension({
},
})
declare module '../Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Commands: typeof Commands,
}

View File

@ -15,7 +15,7 @@ export const Editable = createExtension({
})
// TODO: Editable circularly references itself!?
// declare module '../Editor' {
// declare module '@tiptap/core' {
// interface AllExtensions {
// Editable: typeof Editable,
// }

View File

@ -36,7 +36,7 @@ export const FocusEvents = createExtension({
},
})
declare module '../Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
FocusEvents: typeof FocusEvents,
}

View File

@ -45,7 +45,7 @@ export const Keymap = createExtension({
},
})
declare module '../Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Keymap: typeof Keymap,
}

View File

@ -1,4 +1,9 @@
export { Editor, Command, CommandsSpec } from './Editor'
export {
Editor,
Command,
CommandsSpec,
AllExtensions,
} from './Editor'
export * from './Extension'
export * from './NodeExtension'

View File

@ -45,7 +45,7 @@ const Blockquote = createNode({
export default Blockquote
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Blockquote: typeof Blockquote,
}

View File

@ -64,7 +64,7 @@ const Bold = createMark({
export default Bold
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Bold: typeof Bold,
}

View File

@ -43,7 +43,7 @@ const BulletList = createNode({
export default BulletList
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
BulletList: typeof BulletList,
}

View File

@ -92,7 +92,7 @@ const CodeBlock = createNode({
export default CodeBlock
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
CodeBlock: typeof CodeBlock,
}

View File

@ -49,7 +49,7 @@ const Code = createMark({
export default Code
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Code: typeof Code,
}

View File

@ -61,7 +61,7 @@ const CollaborationCursor = createExtension({
export default CollaborationCursor
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
CollaborationCursor: typeof CollaborationCursor,
}

View File

@ -32,7 +32,7 @@ const Collaboration = createExtension({
export default Collaboration
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Collaboration: typeof Collaboration,
}

View File

@ -8,7 +8,7 @@ const Document = createNode({
export default Document
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Document: typeof Document,
}

View File

@ -11,7 +11,7 @@ const Dropcursor = createExtension({
export default Dropcursor
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Dropcursor: typeof Dropcursor,
}

View File

@ -50,7 +50,7 @@ const FocusClasses = createExtension({
export default FocusClasses
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
FocusClasses: typeof FocusClasses,
}

View File

@ -49,7 +49,7 @@ const FontFamily = createExtension({
export default FontFamily
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
FontFamily: typeof FontFamily,
}

View File

@ -11,7 +11,7 @@ const Gapcursor = createExtension({
export default Gapcursor
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Gapcursor: typeof Gapcursor,
}

View File

@ -47,7 +47,7 @@ const HardBreak = createNode({
export default HardBreak
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
HardBreak: typeof HardBreak,
}

View File

@ -70,7 +70,7 @@ const Heading = createNode({
export default Heading
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Heading: typeof Heading,
}

View File

@ -75,7 +75,7 @@ const Highlight = createMark({
export default Highlight
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Highlight: typeof Highlight,
}

View File

@ -40,7 +40,7 @@ const History = createExtension({
export default History
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
History: typeof History,
}

View File

@ -34,7 +34,7 @@ const HorizontalRule = createNode({
export default HorizontalRule
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
HorizontalRule: typeof HorizontalRule,
}

View File

@ -75,7 +75,7 @@ const Image = createNode({
export default Image
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Image: typeof Image,
}

View File

@ -60,7 +60,7 @@ const Italic = createMark({
export default Italic
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Italic: typeof Italic,
}

View File

@ -89,7 +89,7 @@ const Link = createMark({
export default Link
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Link: typeof Link,
}

View File

@ -30,7 +30,7 @@ const ListItem = createNode({
export default ListItem
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
ListItem: typeof ListItem,
}

View File

@ -67,7 +67,7 @@ const OrderedList = createNode({
export default OrderedList
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
OrderedList: typeof OrderedList,
}

View File

@ -35,7 +35,7 @@ const Paragraph = createNode({
export default Paragraph
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Paragraph: typeof Paragraph,
}

View File

@ -58,7 +58,7 @@ const Strike = createMark({
export default Strike
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Strike: typeof Strike,
}

View File

@ -121,7 +121,7 @@ const TaskItem = createNode({
export default TaskItem
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
TaskItem: typeof TaskItem,
}

View File

@ -31,7 +31,7 @@ const TaskList = createNode({
export default TaskList
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
TaskList: typeof TaskList,
}

View File

@ -62,7 +62,7 @@ const TextAlign = createExtension({
export default TextAlign
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
TextAlign: typeof TextAlign,
}

View File

@ -43,7 +43,7 @@ const TextStyle = createMark({
export default TextStyle
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
TextStyle: typeof TextStyle,
}

View File

@ -7,7 +7,7 @@ const Text = createNode({
export default Text
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Text: typeof Text,
}

View File

@ -45,7 +45,7 @@ const Typography = createExtension({
export default Typography
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Typography: typeof Typography,
}

View File

@ -35,7 +35,7 @@ const Underline = createMark({
export default Underline
declare module '@tiptap/core/src/Editor' {
declare module '@tiptap/core' {
interface AllExtensions {
Underline: typeof Underline,
}