use-prosemirror
Advanced tools
Comparing version 1.1.4 to 1.1.5
import React, { CSSProperties } from 'react'; | ||
import { EditorView, DirectEditorProps } from 'prosemirror-view'; | ||
import { EditorView, EditorProps } from 'prosemirror-view'; | ||
import { EditorState } from 'prosemirror-state'; | ||
@@ -8,3 +8,3 @@ import { Schema } from 'prosemirror-model'; | ||
} | ||
interface Props<S extends Schema = any> extends Partial<DirectEditorProps<S>> { | ||
interface Props<S extends Schema = any> extends EditorProps<S> { | ||
state: EditorState<S>; | ||
@@ -11,0 +11,0 @@ onChange: (state: EditorState) => void; |
@@ -35,11 +35,5 @@ "use strict"; | ||
const prosemirror_view_1 = require("prosemirror-view"); | ||
exports.default = react_1.forwardRef(function ProseMirror( | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
_a, ref) { | ||
exports.default = react_1.forwardRef(function ProseMirror(_a, ref) { | ||
var _b; | ||
var | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
{ dispatchTransaction, onChange, style, className } = _a, props = __rest(_a, | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
["dispatchTransaction", "onChange", "style", "className"]); | ||
var { onChange, style, className } = _a, props = __rest(_a, ["onChange", "style", "className"]); | ||
const root = react_1.useRef(null); | ||
@@ -46,0 +40,0 @@ const initialProps = react_1.useRef(props); |
{ | ||
"name": "use-prosemirror", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "ProseMirror for React", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
11183
109