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

@udecode/slate

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@udecode/slate - npm Package Compare versions

Comparing version 22.0.2 to 23.7.4

dist/interfaces/editor/isMarkableVoid.d.ts

10

dist/index.es.js

@@ -203,2 +203,3 @@ import { createEditor, Editor, Element, Range, Text, Transforms, Path, Point, Node } from 'slate';

}
return range;
};

@@ -815,2 +816,9 @@

/**
* Check if a value is a markable void `Element` object.
*/
const isMarkableVoid = (editor, value) => {
return isElement(value) && editor.markableVoid(value);
};
/**
* Normalize any dirty objects in the editor.

@@ -1313,3 +1321,3 @@ */

export { addMark, addRangeMarks, collapseSelection, createPathRef, createPointRef, createRangeRef, createTEditor, deleteBackward, deleteForward, deleteFragment, deleteMerge, deleteText, deselect, elementMatches, findNode, getAboveNode, getCommonNode, getEdgePoints, getEditorString, getEndPoint, getFirstNode, getFragment, getLastNode, getLeafNode, getLevels, getMarks, getNextNode, getNode, getNodeAncestor, getNodeAncestors, getNodeChild, getNodeChildren, getNodeDescendant, getNodeDescendants, getNodeElements, getNodeEntries, getNodeEntry, getNodeFirstNode, getNodeFragment, getNodeLastNode, getNodeLeaf, getNodeLevels, getNodeParent, getNodeProps, getNodeString, getNodeTexts, getNodes, getParentNode, getPath, getPathRefs, getPoint, getPointAfter, getPointBefore, getPointRefs, getPositions, getPreviousNode, getQueryOptions, getRange, getRangeRefs, getStartPoint, getTEditor, getVoidNode, hasBlocks, hasInlines, hasNode, hasSingleChild, hasTexts, insertBreak, insertFragment, insertNode, insertNodes, insertText, isAncestor, isBlock, isCollapsed, isDescendant, isEdgePoint, isEditor, isEditorNormalizing, isElement, isElementEmpty, isElementList, isEndPoint, isExpanded, isHistoryEditor, isHistoryMerging, isHistorySaving, isInline, isNode, isNodeList, isStartPoint, isText, isTextList, isVoid, liftNodes, match, mergeNodes, moveNodes, moveSelection, nodeMatches, normalizeEditor, queryNode, removeEditorMark, removeNodes, select, setElements, setNodes, setPoint, setSelection, someNode, splitNodes, textEquals, textMatches, unhangCharacterRange, unhangRange, unsetNodes, unwrapNodes, withoutMergingHistory, withoutNormalizing, withoutSavingHistory, wrapNodes };
export { addMark, addRangeMarks, collapseSelection, createPathRef, createPointRef, createRangeRef, createTEditor, deleteBackward, deleteForward, deleteFragment, deleteMerge, deleteText, deselect, elementMatches, findNode, getAboveNode, getCommonNode, getEdgePoints, getEditorString, getEndPoint, getFirstNode, getFragment, getLastNode, getLeafNode, getLevels, getMarks, getNextNode, getNode, getNodeAncestor, getNodeAncestors, getNodeChild, getNodeChildren, getNodeDescendant, getNodeDescendants, getNodeElements, getNodeEntries, getNodeEntry, getNodeFirstNode, getNodeFragment, getNodeLastNode, getNodeLeaf, getNodeLevels, getNodeParent, getNodeProps, getNodeString, getNodeTexts, getNodes, getParentNode, getPath, getPathRefs, getPoint, getPointAfter, getPointBefore, getPointRefs, getPositions, getPreviousNode, getQueryOptions, getRange, getRangeRefs, getStartPoint, getTEditor, getVoidNode, hasBlocks, hasInlines, hasNode, hasSingleChild, hasTexts, insertBreak, insertFragment, insertNode, insertNodes, insertText, isAncestor, isBlock, isCollapsed, isDescendant, isEdgePoint, isEditor, isEditorNormalizing, isElement, isElementEmpty, isElementList, isEndPoint, isExpanded, isHistoryEditor, isHistoryMerging, isHistorySaving, isInline, isMarkableVoid, isNode, isNodeList, isStartPoint, isText, isTextList, isVoid, liftNodes, match, mergeNodes, moveNodes, moveSelection, nodeMatches, normalizeEditor, queryNode, removeEditorMark, removeNodes, select, setElements, setNodes, setPoint, setSelection, someNode, splitNodes, textEquals, textMatches, unhangCharacterRange, unhangRange, unsetNodes, unwrapNodes, withoutMergingHistory, withoutNormalizing, withoutSavingHistory, wrapNodes };
//# sourceMappingURL=index.es.js.map

@@ -205,2 +205,3 @@ 'use strict';

}
return range;
};

@@ -817,2 +818,9 @@

/**
* Check if a value is a markable void `Element` object.
*/
const isMarkableVoid = (editor, value) => {
return isElement(value) && editor.markableVoid(value);
};
/**
* Normalize any dirty objects in the editor.

@@ -1403,2 +1411,3 @@ */

exports.isInline = isInline;
exports.isMarkableVoid = isMarkableVoid;
exports.isNode = isNode;

@@ -1405,0 +1414,0 @@ exports.isNodeList = isNodeList;

@@ -53,2 +53,3 @@ /**

export * from './isVoid';
export * from './isMarkableVoid';
export * from './normalizeEditor';

@@ -55,0 +56,0 @@ export * from './removeEditorMark';

4

dist/interfaces/editor/unhangRange.d.ts

@@ -1,2 +0,2 @@

import { EditorUnhangRangeOptions, Path, Point, Range, Span } from 'slate';
import { EditorUnhangRangeOptions, Path, Span } from 'slate';
import { TEditor, Value } from './TEditor';

@@ -11,3 +11,3 @@ export type UnhangRangeOptions = EditorUnhangRangeOptions & {

*/
export declare const unhangRange: <V extends Value>(editor: TEditor<V>, range?: Range | Path | Point | Span | null, options?: UnhangRangeOptions) => import("slate").BaseRange | undefined;
export declare const unhangRange: <V extends Value, R extends Path | import("slate").BasePoint | import("slate").BaseRange | Span | null | undefined>(editor: TEditor<V>, range: R, options?: UnhangRangeOptions) => R;
//# sourceMappingURL=unhangRange.d.ts.map
import { TEditor, Value } from '../editor/TEditor';
import { ElementOf, TElement } from '../element/TElement';
import { TText, TextOf } from '../text/TText';
import { TextOf, TText } from '../text/TText';
import { TNode } from './TNode';

@@ -5,0 +5,0 @@ /**

import { Path } from 'slate';
import { TEditor, Value } from '../editor/TEditor';
import { ElementOf, TElement } from '../element/TElement';
import { TText, TextOf } from '../text/TText';
import { TextOf, TText } from '../text/TText';
export type TNode = TEditor | TElement | TText;

@@ -6,0 +6,0 @@ /**

{
"name": "@udecode/slate",
"version": "22.0.2",
"version": "23.7.4",
"description": "Slate extension",

@@ -5,0 +5,0 @@ "license": "MIT",

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

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

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

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