@udecode/plate-node-id
Advanced tools
Comparing version 38.0.0 to 38.0.1
@@ -1,2 +0,2 @@ | ||
import * as _udecode_plate_common from '@udecode/plate-common'; | ||
import * as _udecode_plate_core from '@udecode/plate-core'; | ||
import { PluginConfig, QueryNodeOptions, ExtendEditor } from '@udecode/plate-common'; | ||
@@ -22,3 +22,3 @@ | ||
*/ | ||
idCreator?: Function; | ||
idCreator?: () => any; | ||
/** | ||
@@ -39,3 +39,3 @@ * Node key to store the id. | ||
/** @see {@link withNodeId} */ | ||
declare const NodeIdPlugin: _udecode_plate_common.SlatePlugin<NodeIdConfig>; | ||
declare const NodeIdPlugin: _udecode_plate_core.SlatePlugin<NodeIdConfig>; | ||
@@ -42,0 +42,0 @@ /** Enables support for inserting nodes with an id key. */ |
@@ -96,4 +96,3 @@ "use strict"; | ||
const nodes = (0, import_castArray.default)(_nodes).filter((node) => !!node); | ||
if (nodes.length === 0) | ||
return; | ||
if (nodes.length === 0) return; | ||
const { disableInsertOverrides, idKey = "" } = getOptions(); | ||
@@ -184,4 +183,4 @@ insertNodes( | ||
var NodeIdPlugin = (0, import_plate_common2.createTSlatePlugin)({ | ||
key: "nodeId", | ||
extendEditor: withNodeId, | ||
key: "nodeId", | ||
options: { | ||
@@ -188,0 +187,0 @@ filter: () => true, |
{ | ||
"name": "@udecode/plate-node-id", | ||
"version": "38.0.0", | ||
"version": "38.0.1", | ||
"description": "Node ID plugin for Plate", | ||
@@ -53,3 +53,3 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@udecode/plate-common": ">=38.0.0", | ||
"@udecode/plate-common": ">=38.0.1", | ||
"react": ">=16.8.0", | ||
@@ -56,0 +56,0 @@ "react-dom": ">=16.8.0", |
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
32682
396