@udecode/slate-react
Advanced tools
Comparing version 25.0.0 to 29.0.0
@@ -1,2 +0,1 @@ | ||
import React$1, { useLayoutEffect } from 'react'; | ||
import { Value, TEditor, TNode, TDescendant, TText, EText } from '@udecode/slate'; | ||
@@ -10,10 +9,5 @@ import { ReactEditor, RenderLeafProps } from 'slate-react'; | ||
import { Value as Value$1 } from '@udecode/slate/dist'; | ||
import React$1 from 'react'; | ||
import { UnknownObject, Modify } from '@udecode/utils'; | ||
declare const CAN_USE_DOM: boolean; | ||
/** | ||
* Prevent warning on SSR by falling back to useEffect when DOM isn't available | ||
*/ | ||
declare const useIsomorphicLayoutEffect: typeof useLayoutEffect; | ||
type TReactEditor<V extends Value = Value> = TEditor<V> & Pick<ReactEditor, 'insertData' | 'insertFragmentData' | 'insertTextData' | 'setFragmentData' | 'hasRange' | 'hasTarget' | 'hasEditableTarget' | 'hasSelectableTarget' | 'isTargetInsideNonReadonlyVoid'>; | ||
@@ -166,2 +160,2 @@ | ||
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 }; | ||
export { 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 }; |
@@ -23,3 +23,2 @@ "use strict"; | ||
__export(src_exports, { | ||
CAN_USE_DOM: () => CAN_USE_DOM, | ||
blurEditor: () => blurEditor, | ||
@@ -49,12 +48,6 @@ deselectEditor: () => deselectEditor, | ||
toSlatePoint: () => toSlatePoint, | ||
toSlateRange: () => toSlateRange, | ||
useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect | ||
toSlateRange: () => toSlateRange | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
// src/hooks/useIsomorphicLayoutEffect.ts | ||
var import_react = require("react"); | ||
var CAN_USE_DOM = typeof window !== "undefined" && window.document !== void 0 && window.document.createElement !== void 0; | ||
var useIsomorphicLayoutEffect = CAN_USE_DOM ? import_react.useLayoutEffect : import_react.useEffect; | ||
// src/react-editor/blurEditor.ts | ||
@@ -260,3 +253,2 @@ var import_slate_react = require("slate-react"); | ||
0 && (module.exports = { | ||
CAN_USE_DOM, | ||
blurEditor, | ||
@@ -286,5 +278,4 @@ deselectEditor, | ||
toSlatePoint, | ||
toSlateRange, | ||
useIsomorphicLayoutEffect | ||
toSlateRange | ||
}); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@udecode/slate-react", | ||
"version": "25.0.0", | ||
"version": "29.0.0", | ||
"description": "Slate extension", | ||
@@ -42,2 +42,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@udecode/react-utils": "29.0.0", | ||
"@udecode/slate": "25.0.0", | ||
@@ -44,0 +45,0 @@ "@udecode/utils": "24.3.0" |
@@ -5,3 +5,3 @@ # Slate React | ||
[Slate](https://platejs.org/docs/api/slate) | ||
Visit https://platejs.org/docs/api/slate-react to view the documentation. | ||
@@ -8,0 +8,0 @@ ## License |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
60876
8
582
+ Added@udecode/react-utils@29.0.0
+ Added@radix-ui/react-compose-refs@1.1.0(transitive)
+ Added@radix-ui/react-slot@1.1.0(transitive)
+ Added@udecode/react-utils@29.0.0(transitive)
+ Addedclsx@1.2.1(transitive)