refactoring
This commit is contained in:
@@ -63,7 +63,7 @@ export const Commands = createExtension({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
declare module '../Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Commands: typeof Commands,
|
Commands: typeof Commands,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export const Editable = createExtension({
|
|||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Editable circularly references itself!?
|
// TODO: Editable circularly references itself!?
|
||||||
// declare module '../Editor' {
|
// declare module '@tiptap/core' {
|
||||||
// interface AllExtensions {
|
// interface AllExtensions {
|
||||||
// Editable: typeof Editable,
|
// Editable: typeof Editable,
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export const FocusEvents = createExtension({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
declare module '../Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
FocusEvents: typeof FocusEvents,
|
FocusEvents: typeof FocusEvents,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export const Keymap = createExtension({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
declare module '../Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Keymap: typeof Keymap,
|
Keymap: typeof Keymap,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
export { Editor, Command, CommandsSpec } from './Editor'
|
export {
|
||||||
|
Editor,
|
||||||
|
Command,
|
||||||
|
CommandsSpec,
|
||||||
|
AllExtensions,
|
||||||
|
} from './Editor'
|
||||||
|
|
||||||
export * from './Extension'
|
export * from './Extension'
|
||||||
export * from './NodeExtension'
|
export * from './NodeExtension'
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ const Blockquote = createNode({
|
|||||||
|
|
||||||
export default Blockquote
|
export default Blockquote
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Blockquote: typeof Blockquote,
|
Blockquote: typeof Blockquote,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ const Bold = createMark({
|
|||||||
|
|
||||||
export default Bold
|
export default Bold
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Bold: typeof Bold,
|
Bold: typeof Bold,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ const BulletList = createNode({
|
|||||||
|
|
||||||
export default BulletList
|
export default BulletList
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
BulletList: typeof BulletList,
|
BulletList: typeof BulletList,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ const CodeBlock = createNode({
|
|||||||
|
|
||||||
export default CodeBlock
|
export default CodeBlock
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
CodeBlock: typeof CodeBlock,
|
CodeBlock: typeof CodeBlock,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ const Code = createMark({
|
|||||||
|
|
||||||
export default Code
|
export default Code
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Code: typeof Code,
|
Code: typeof Code,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ const CollaborationCursor = createExtension({
|
|||||||
|
|
||||||
export default CollaborationCursor
|
export default CollaborationCursor
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
CollaborationCursor: typeof CollaborationCursor,
|
CollaborationCursor: typeof CollaborationCursor,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const Collaboration = createExtension({
|
|||||||
|
|
||||||
export default Collaboration
|
export default Collaboration
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Collaboration: typeof Collaboration,
|
Collaboration: typeof Collaboration,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ const Document = createNode({
|
|||||||
|
|
||||||
export default Document
|
export default Document
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Document: typeof Document,
|
Document: typeof Document,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ const Dropcursor = createExtension({
|
|||||||
|
|
||||||
export default Dropcursor
|
export default Dropcursor
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Dropcursor: typeof Dropcursor,
|
Dropcursor: typeof Dropcursor,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ const FocusClasses = createExtension({
|
|||||||
|
|
||||||
export default FocusClasses
|
export default FocusClasses
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
FocusClasses: typeof FocusClasses,
|
FocusClasses: typeof FocusClasses,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ const FontFamily = createExtension({
|
|||||||
|
|
||||||
export default FontFamily
|
export default FontFamily
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
FontFamily: typeof FontFamily,
|
FontFamily: typeof FontFamily,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ const Gapcursor = createExtension({
|
|||||||
|
|
||||||
export default Gapcursor
|
export default Gapcursor
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Gapcursor: typeof Gapcursor,
|
Gapcursor: typeof Gapcursor,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ const HardBreak = createNode({
|
|||||||
|
|
||||||
export default HardBreak
|
export default HardBreak
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
HardBreak: typeof HardBreak,
|
HardBreak: typeof HardBreak,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ const Heading = createNode({
|
|||||||
|
|
||||||
export default Heading
|
export default Heading
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Heading: typeof Heading,
|
Heading: typeof Heading,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ const Highlight = createMark({
|
|||||||
|
|
||||||
export default Highlight
|
export default Highlight
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Highlight: typeof Highlight,
|
Highlight: typeof Highlight,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ const History = createExtension({
|
|||||||
|
|
||||||
export default History
|
export default History
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
History: typeof History,
|
History: typeof History,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ const HorizontalRule = createNode({
|
|||||||
|
|
||||||
export default HorizontalRule
|
export default HorizontalRule
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
HorizontalRule: typeof HorizontalRule,
|
HorizontalRule: typeof HorizontalRule,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ const Image = createNode({
|
|||||||
|
|
||||||
export default Image
|
export default Image
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Image: typeof Image,
|
Image: typeof Image,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ const Italic = createMark({
|
|||||||
|
|
||||||
export default Italic
|
export default Italic
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Italic: typeof Italic,
|
Italic: typeof Italic,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ const Link = createMark({
|
|||||||
|
|
||||||
export default Link
|
export default Link
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Link: typeof Link,
|
Link: typeof Link,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ const ListItem = createNode({
|
|||||||
|
|
||||||
export default ListItem
|
export default ListItem
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
ListItem: typeof ListItem,
|
ListItem: typeof ListItem,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ const OrderedList = createNode({
|
|||||||
|
|
||||||
export default OrderedList
|
export default OrderedList
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
OrderedList: typeof OrderedList,
|
OrderedList: typeof OrderedList,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ const Paragraph = createNode({
|
|||||||
|
|
||||||
export default Paragraph
|
export default Paragraph
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Paragraph: typeof Paragraph,
|
Paragraph: typeof Paragraph,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ const Strike = createMark({
|
|||||||
|
|
||||||
export default Strike
|
export default Strike
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Strike: typeof Strike,
|
Strike: typeof Strike,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ const TaskItem = createNode({
|
|||||||
|
|
||||||
export default TaskItem
|
export default TaskItem
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
TaskItem: typeof TaskItem,
|
TaskItem: typeof TaskItem,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const TaskList = createNode({
|
|||||||
|
|
||||||
export default TaskList
|
export default TaskList
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
TaskList: typeof TaskList,
|
TaskList: typeof TaskList,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ const TextAlign = createExtension({
|
|||||||
|
|
||||||
export default TextAlign
|
export default TextAlign
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
TextAlign: typeof TextAlign,
|
TextAlign: typeof TextAlign,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ const TextStyle = createMark({
|
|||||||
|
|
||||||
export default TextStyle
|
export default TextStyle
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
TextStyle: typeof TextStyle,
|
TextStyle: typeof TextStyle,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ const Text = createNode({
|
|||||||
|
|
||||||
export default Text
|
export default Text
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Text: typeof Text,
|
Text: typeof Text,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ const Typography = createExtension({
|
|||||||
|
|
||||||
export default Typography
|
export default Typography
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Typography: typeof Typography,
|
Typography: typeof Typography,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ const Underline = createMark({
|
|||||||
|
|
||||||
export default Underline
|
export default Underline
|
||||||
|
|
||||||
declare module '@tiptap/core/src/Editor' {
|
declare module '@tiptap/core' {
|
||||||
interface AllExtensions {
|
interface AllExtensions {
|
||||||
Underline: typeof Underline,
|
Underline: typeof Underline,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user