@udecode/slate-react
Advanced tools
Comparing version 41.0.0 to 41.0.5
@@ -5,7 +5,6 @@ import { TEditor, TNode, Value, TSelection, TElement, TText, TNodeEntry, NodeOf, TNodeProps, SetNodesOptions } from '@udecode/slate'; | ||
import * as slate_dom from 'slate-dom'; | ||
import { DOMNode, DOMPoint } from 'slate-dom'; | ||
import { DOMNode, DOMPoint, DOMRange } from 'slate-dom'; | ||
import { ReactEditor } from 'slate-react'; | ||
import React$1 from 'react'; | ||
import { UnknownObject } from '@udecode/utils'; | ||
import { EditableProps } from 'slate-react/dist/components/editable'; | ||
@@ -126,6 +125,24 @@ /** Blur the editor. */ | ||
type TEditableProps = { | ||
renderPlaceholder?: (props: { | ||
attributes: { | ||
contentEditable: boolean; | ||
'data-slate-placeholder': boolean; | ||
ref: React.RefCallback<any>; | ||
style: React.CSSProperties; | ||
dir?: 'rtl'; | ||
}; | ||
children: any; | ||
}) => JSX.Element; | ||
as?: React.ElementType; | ||
decorate?: (entry: TNodeEntry) => Range[]; | ||
disableDefaultStyles?: boolean; | ||
placeholder?: string; | ||
readOnly?: boolean; | ||
renderElement?: RenderElementFn; | ||
renderLeaf?: RenderLeafFn; | ||
} & Omit<EditableProps, 'decorate' | 'renderElement' | 'renderLeaf'>; | ||
role?: string; | ||
scrollSelectionIntoView?: (editor: TEditor, domRange: DOMRange) => void; | ||
style?: React.CSSProperties; | ||
onDOMBeforeInput?: (event: InputEvent) => void; | ||
} & React.TextareaHTMLAttributes<HTMLDivElement>; | ||
@@ -132,0 +149,0 @@ /** Focus an editor edge. */ |
{ | ||
"name": "@udecode/slate-react", | ||
"version": "41.0.0", | ||
"version": "41.0.5", | ||
"description": "Slate extension", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60989
631