fix: resolve TypeScript errors in frontend build

This commit is contained in:
Hiro
2026-03-30 23:16:07 +00:00
parent b733306773
commit 24925e1acb
2941 changed files with 418042 additions and 49 deletions
+47
View File
@@ -0,0 +1,47 @@
import { Extension } from '@tiptap/core'
import { dropCursor } from '@tiptap/pm/dropcursor'
export interface DropcursorOptions {
/**
* The color of the drop cursor. Use `false` to apply no color and rely only on class.
* @default 'currentColor'
* @example 'red'
*/
color?: string | false
/**
* The width of the drop cursor
* @default 1
* @example 2
*/
width: number | undefined
/**
* The class of the drop cursor
* @default undefined
* @example 'drop-cursor'
*/
class: string | undefined
}
/**
* This extension allows you to add a drop cursor to your editor.
* A drop cursor is a line that appears when you drag and drop content
* in-between nodes.
* @see https://tiptap.dev/api/extensions/dropcursor
*/
export const Dropcursor = Extension.create<DropcursorOptions>({
name: 'dropCursor',
addOptions() {
return {
color: 'currentColor',
width: 1,
class: undefined,
}
},
addProseMirrorPlugins() {
return [dropCursor(this.options)]
},
})
+1
View File
@@ -0,0 +1 @@
export * from './drop-cursor.js'