Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@udecode/slate-react

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@udecode/slate-react - npm Package Compare versions

Comparing version 25.0.0 to 29.0.0

10

dist/index.d.ts

@@ -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 };

13

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc