Socket
Socket
Sign inDemoInstall

@udecode/slate

Package Overview
Dependencies
Maintainers
2
Versions
19
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 24.3.0 to 24.3.1

9

dist/index.d.ts

@@ -8,3 +8,2 @@ import { UnknownObject, Simplify, UnionToIntersection, Modify } from '@udecode/utils';

import { TextDeleteOptions, TextInsertFragmentOptions, TextInsertTextOptions } from 'slate/dist/interfaces/transforms/text';
import { RenderLeafProps } from 'slate-react';

@@ -1066,8 +1065,2 @@ /**

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;
/**

@@ -1078,2 +1071,2 @@ * Query the node entry.

export { AncestorOf, ChildOf, DescendantOf, EAncestor, EAncestorEntry, EDescendant, EDescendantEntry, EElement, EElementEntry, EElementOrText, EMarks, ENode, ENodeEntry, ENodeMatch, ENodeMatchOptions, EText, ETextEntry, ElementOf, FindNodeOptions, GetAboveNodeOptions, GetLevelsOptions, GetNextNodeOptions, GetNodeEntriesOptions, GetPreviousNodeOptions, InsertNodesOptions, LiftNodesOptions, MarkKeysOf, MarksOf, MergeNodesOptions, MoveNodesOptions, NodeMatchOption, NodeOf, Predicate, PredicateFn, PredicateObj, QueryEditorOptions, QueryNodeOptions, RemoveNodesOptions, RenderLeafFn, SetNodesOptions, SplitNodesOptions, TAncestor, TAncestorEntry, TDescendant, TDescendantEntry, TEditor, TElement, TElementEntry, THistoryEditor, TInsertNodeOperation, TInsertTextOperation, TLocation, TMergeNodeOperation, TMoveNodeOperation, TNode, TNodeChildEntry, TNodeEntry, TNodeMatch, TNodeOperation, TNodeProps, TOperation, TPath, TRange, TRemoveNodeOperation, TRemoveTextOperation, TRenderLeafProps, TSelection, TSelectionOperation, TSetNodeOperation, TSetSelectionOperation, TSpan, TSplitNodeOperation, TText, TTextEntry, TTextOperation, TextOf, UnhangRangeOptions, UnsetNodesOptions, UnwrapNodesOptions, Value, ValueOf, WrapNodesOptions, 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 };
export { AncestorOf, ChildOf, DescendantOf, EAncestor, EAncestorEntry, EDescendant, EDescendantEntry, EElement, EElementEntry, EElementOrText, EMarks, ENode, ENodeEntry, ENodeMatch, ENodeMatchOptions, EText, ETextEntry, ElementOf, FindNodeOptions, GetAboveNodeOptions, GetLevelsOptions, GetNextNodeOptions, GetNodeEntriesOptions, GetPreviousNodeOptions, InsertNodesOptions, LiftNodesOptions, MarkKeysOf, MarksOf, MergeNodesOptions, MoveNodesOptions, NodeMatchOption, NodeOf, Predicate, PredicateFn, PredicateObj, QueryEditorOptions, QueryNodeOptions, RemoveNodesOptions, SetNodesOptions, SplitNodesOptions, TAncestor, TAncestorEntry, TDescendant, TDescendantEntry, TEditor, TElement, TElementEntry, THistoryEditor, TInsertNodeOperation, TInsertTextOperation, TLocation, TMergeNodeOperation, TMoveNodeOperation, TNode, TNodeChildEntry, TNodeEntry, TNodeMatch, TNodeOperation, TNodeProps, TOperation, TPath, TRange, TRemoveNodeOperation, TRemoveTextOperation, TSelection, TSelectionOperation, TSetNodeOperation, TSetSelectionOperation, TSpan, TSplitNodeOperation, TText, TTextEntry, TTextOperation, TextOf, UnhangRangeOptions, UnsetNodesOptions, UnwrapNodesOptions, Value, ValueOf, WrapNodesOptions, 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 };

28

dist/index.js
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;

@@ -9,3 +8,2 @@ var __defProps = Object.defineProperties;

var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;

@@ -50,10 +48,2 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable;

};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

@@ -233,5 +223,2 @@

// src/utils/match.ts
var import_lodash = require("lodash");
// src/interfaces/editor/isBlock.ts

@@ -256,2 +243,5 @@ var import_slate12 = require("slate");

// src/utils/match.ts
function castArray(value) {
return Array.isArray(value) ? value : [value];
}
var match = (obj, path, predicate) => {

@@ -262,3 +252,3 @@ if (!predicate)

return Object.entries(predicate).every(([key, value]) => {
const values = (0, import_lodash.castArray)(value);
const values = castArray(value);
return values.includes(obj[key]);

@@ -993,3 +983,5 @@ });

// src/utils/queryNode.ts
var import_castArray = __toESM(require("lodash/castArray"));
function castArray2(value) {
return Array.isArray(value) ? value : [value];
}
var queryNode = (entry, { filter, allow, exclude, level, maxLevel } = {}) => {

@@ -1000,3 +992,3 @@ if (!entry)

if (level) {
const levels = (0, import_castArray.default)(level);
const levels = castArray2(level);
if (!levels.includes(path.length)) {

@@ -1013,3 +1005,3 @@ return false;

if (allow) {
const allows = (0, import_castArray.default)(allow);
const allows = castArray2(allow);
if (allows.length > 0 && !allows.includes(node.type)) {

@@ -1020,3 +1012,3 @@ return false;

if (exclude) {
const excludes = (0, import_castArray.default)(exclude);
const excludes = castArray2(exclude);
if (excludes.length > 0 && excludes.includes(node.type)) {

@@ -1023,0 +1015,0 @@ return false;

{
"name": "@udecode/slate",
"version": "24.3.0",
"version": "24.3.1",
"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

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