@udecode/plate-utils
Advanced tools
Comparing version 24.3.5 to 24.3.6
@@ -206,3 +206,4 @@ "use strict"; | ||
// src/utils/createNodesHOC.tsx | ||
var import_lodash_es = require("lodash-es"); | ||
var import_castArray = __toESM(require("lodash/castArray.js")); | ||
var import_merge = __toESM(require("lodash/merge.js")); | ||
var createHOC = (withHOC) => { | ||
@@ -212,3 +213,3 @@ return (components, options) => { | ||
const optionsByKey = {}; | ||
const optionsList = (0, import_lodash_es.castArray)(options); | ||
const optionsList = (0, import_castArray.default)(options); | ||
optionsList.forEach((_a) => { | ||
@@ -218,3 +219,3 @@ var _b = _a, { key, keys } = _b, opt = __objRest(_b, ["key", "keys"]); | ||
_keys.forEach((_key) => { | ||
optionsByKey[_key] = (0, import_lodash_es.merge)(optionsByKey[_key], opt); | ||
optionsByKey[_key] = (0, import_merge.default)(optionsByKey[_key], opt); | ||
}); | ||
@@ -495,5 +496,5 @@ }); | ||
var import_plate_core4 = require("@udecode/plate-core"); | ||
var import_lodash_es2 = require("lodash-es"); | ||
var import_defaults = __toESM(require("lodash/defaults.js")); | ||
var defaultsDeepToNodes = (options) => { | ||
(0, import_plate_core4.applyDeepToNodes)(__spreadProps(__spreadValues({}, options), { apply: import_lodash_es2.defaults })); | ||
(0, import_plate_core4.applyDeepToNodes)(__spreadProps(__spreadValues({}, options), { apply: import_defaults.default })); | ||
}; | ||
@@ -548,3 +549,3 @@ | ||
var import_plate_core5 = require("@udecode/plate-core"); | ||
var import_lodash_es3 = require("lodash-es"); | ||
var import_castArray2 = __toESM(require("lodash/castArray.js")); | ||
var onKeyDownToggleElement = (editor, { type, options: { hotkey } }) => (e) => { | ||
@@ -556,3 +557,3 @@ if (e.defaultPrevented) | ||
return; | ||
const hotkeys = (0, import_lodash_es3.castArray)(hotkey); | ||
const hotkeys = (0, import_castArray2.default)(hotkey); | ||
for (const _hotkey of hotkeys) { | ||
@@ -589,5 +590,5 @@ if ((0, import_plate_core5.isHotkey)(_hotkey, e)) { | ||
var import_plate_core7 = require("@udecode/plate-core"); | ||
var import_lodash_es4 = require("lodash-es"); | ||
var import_castArray3 = __toESM(require("lodash/castArray.js")); | ||
var isType = (editor, node, key) => { | ||
const keys = (0, import_lodash_es4.castArray)(key); | ||
const keys = (0, import_castArray3.default)(key); | ||
const types = []; | ||
@@ -594,0 +595,0 @@ keys.forEach((_key) => types.push((0, import_plate_core7.getPluginType)(editor, _key))); |
{ | ||
"name": "@udecode/plate-utils", | ||
"version": "24.3.5", | ||
"version": "24.3.6", | ||
"description": "Plate utils", | ||
@@ -43,9 +43,9 @@ "license": "MIT", | ||
"@radix-ui/react-slot": "^1.0.2", | ||
"@udecode/plate-core": "24.3.5", | ||
"@udecode/slate": "24.3.5", | ||
"@udecode/slate-react": "24.3.5", | ||
"@udecode/slate-utils": "24.3.5", | ||
"@udecode/plate-core": "24.3.6", | ||
"@udecode/slate": "24.3.6", | ||
"@udecode/slate-react": "24.3.6", | ||
"@udecode/slate-utils": "24.3.6", | ||
"@udecode/utils": "24.3.0", | ||
"clsx": "^1.2.1", | ||
"lodash-es": "^4.17.21" | ||
"lodash": "^4.17.21" | ||
}, | ||
@@ -52,0 +52,0 @@ "peerDependencies": { |
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
138120
1436
17
+ Addedlodash@^4.17.21
+ Added@udecode/plate-core@24.3.6(transitive)
+ Added@udecode/slate@24.3.6(transitive)
+ Added@udecode/slate-react@24.3.6(transitive)
+ Added@udecode/slate-utils@24.3.6(transitive)
- Removedlodash-es@^4.17.21
- Removed@udecode/plate-core@24.3.5(transitive)
- Removed@udecode/slate@24.3.5(transitive)
- Removed@udecode/slate-react@24.3.5(transitive)
- Removed@udecode/slate-utils@24.3.5(transitive)
- Removedlodash-es@4.17.21(transitive)
Updated@udecode/plate-core@24.3.6
Updated@udecode/slate@24.3.6
Updated@udecode/slate-react@24.3.6
Updated@udecode/slate-utils@24.3.6