@udecode/slate-react
Advanced tools
Comparing version 24.3.0 to 24.3.1
@@ -1,4 +0,4 @@ | ||
import React, { useLayoutEffect } from 'react'; | ||
import { Value, TEditor, TNode, TDescendant } from '@udecode/slate'; | ||
import { ReactEditor } from 'slate-react'; | ||
import React$1, { useLayoutEffect } from 'react'; | ||
import { Value, TEditor, TNode, TDescendant, TText, EText } from '@udecode/slate'; | ||
import { ReactEditor, RenderLeafProps } from 'slate-react'; | ||
import * as slate from 'slate'; | ||
@@ -10,3 +10,3 @@ import { Path, Location, Point, Range } from 'slate'; | ||
import { Value as Value$1 } from '@udecode/slate/dist'; | ||
import { UnknownObject } from '@udecode/utils'; | ||
import { UnknownObject, Modify } from '@udecode/utils'; | ||
@@ -149,6 +149,12 @@ declare const CAN_USE_DOM: boolean; | ||
value: TDescendant[]; | ||
children: React.ReactNode; | ||
children: React$1.ReactNode; | ||
onChange: (value: SlateProps['value']) => void; | ||
} | ||
type TRenderLeafProps<V extends Value = Value, N extends TText = EText<V>> = Modify<RenderLeafProps, { | ||
leaf: N; | ||
text: N; | ||
}>; | ||
type RenderLeafFn<V extends Value = Value> = (props: TRenderLeafProps<V>) => React.ReactElement; | ||
/** | ||
@@ -161,2 +167,2 @@ * Focus an editor edge. | ||
export { CAN_USE_DOM, SlateProps, TReactEditor, blurEditor, deselectEditor, findEditorDocumentOrShadowRoot, findEventRange, findNodeKey, findNodePath, focusEditor, focusEditorEdge, getEditorWindow, hasEditorDOMNode, hasEditorEditableTarget, hasEditorSelectableTarget, hasEditorTarget, insertData, isComposing, isEditorFocused, isEditorReadOnly, isTargetInsideNonReadonlyVoid, setFragmentData, toDOMNode, toDOMPoint, toDOMRange, toSlateNode, toSlatePoint, toSlateRange, useIsomorphicLayoutEffect }; | ||
export { CAN_USE_DOM, RenderLeafFn, SlateProps, TReactEditor, TRenderLeafProps, blurEditor, deselectEditor, findEditorDocumentOrShadowRoot, findEventRange, findNodeKey, findNodePath, focusEditor, focusEditorEdge, getEditorWindow, hasEditorDOMNode, hasEditorEditableTarget, hasEditorSelectableTarget, hasEditorTarget, insertData, isComposing, isEditorFocused, isEditorReadOnly, isTargetInsideNonReadonlyVoid, setFragmentData, toDOMNode, toDOMPoint, toDOMRange, toSlateNode, toSlatePoint, toSlateRange, useIsomorphicLayoutEffect }; |
{ | ||
"name": "@udecode/slate-react", | ||
"version": "24.3.0", | ||
"version": "24.3.1", | ||
"description": "Slate extension", | ||
@@ -42,3 +42,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@udecode/slate": "24.3.0", | ||
"@udecode/slate": "24.3.1", | ||
"@udecode/utils": "24.3.0" | ||
@@ -45,0 +45,0 @@ }, |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
62961
601
0
+ Added@udecode/slate@24.3.1(transitive)
- Removed@udecode/slate@24.3.0(transitive)
Updated@udecode/slate@24.3.1