@udecode/slate-utils
Advanced tools
Comparing version 24.3.1 to 24.3.2
@@ -480,5 +480,5 @@ "use strict"; | ||
var import_slate18 = require("@udecode/slate"); | ||
var import_lodash = require("lodash"); | ||
var import_last = __toESM(require("lodash/last")); | ||
var getPreviousSiblingNode = (editor, path) => { | ||
const index = (0, import_lodash.last)(path); | ||
const index = (0, import_last.default)(path); | ||
if (index > 0) { | ||
@@ -751,3 +751,3 @@ const previousSiblingIndex = index - 1; | ||
var import_slate40 = require("@udecode/slate"); | ||
var import_lodash2 = require("lodash"); | ||
var import_castArray3 = __toESM(require("lodash/castArray")); | ||
var import_slate41 = require("slate"); | ||
@@ -758,3 +758,3 @@ var removeMark = (editor, _a) => { | ||
const selection = at != null ? at : editor.selection; | ||
key = (0, import_lodash2.castArray)(key); | ||
key = (0, import_castArray3.default)(key); | ||
if (selection) { | ||
@@ -835,3 +835,3 @@ if (import_slate41.Range.isRange(selection) && import_slate41.Range.isExpanded(selection)) { | ||
var import_slate47 = require("@udecode/slate"); | ||
var import_castArray3 = __toESM(require("lodash/castArray")); | ||
var import_castArray4 = __toESM(require("lodash/castArray")); | ||
var setMarks = (editor, marks, clear = []) => { | ||
@@ -841,3 +841,3 @@ if (!editor.selection) | ||
(0, import_slate47.withoutNormalizing)(editor, () => { | ||
const clears = (0, import_castArray3.default)(clear); | ||
const clears = (0, import_castArray4.default)(clear); | ||
removeMark(editor, { key: clears }); | ||
@@ -853,3 +853,3 @@ removeMark(editor, { key: Object.keys(marks) }); | ||
var import_slate48 = require("@udecode/slate"); | ||
var import_castArray4 = __toESM(require("lodash/castArray")); | ||
var import_castArray5 = __toESM(require("lodash/castArray")); | ||
var toggleMark = (editor, { key, clear }) => { | ||
@@ -865,3 +865,3 @@ if (!editor.selection) | ||
if (clear) { | ||
const clears = (0, import_castArray4.default)(clear); | ||
const clears = (0, import_castArray5.default)(clear); | ||
removeMark(editor, { key: clears }); | ||
@@ -868,0 +868,0 @@ } |
{ | ||
"name": "@udecode/slate-utils", | ||
"version": "24.3.1", | ||
"version": "24.3.2", | ||
"description": "Slate utils", | ||
@@ -42,3 +42,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@udecode/slate": "24.3.1", | ||
"@udecode/slate": "24.3.2", | ||
"@udecode/utils": "24.3.0", | ||
@@ -45,0 +45,0 @@ "lodash": "^4.17.21" |
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
205752
+ Added@udecode/slate@24.3.2(transitive)
- Removed@udecode/slate@24.3.1(transitive)
Updated@udecode/slate@24.3.2