slate-react 0.80.0-202242523622 → 0.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/slate.d.ts.map +1 -1
- package/dist/index.es.js +6 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/plugin/react-editor.d.ts +1 -1
- package/dist/plugin/react-editor.d.ts.map +1 -1
- package/dist/slate-react.js +5 -5
- package/dist/slate-react.min.js +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2828,7 +2828,7 @@ var ReactEditor = {
|
|
|
2828
2828
|
child = parent;
|
|
2829
2829
|
}
|
|
2830
2830
|
|
|
2831
|
-
throw new Error("Unable to find the path for Slate node: ".concat(
|
|
2831
|
+
throw new Error("Unable to find the path for Slate node: ".concat(slate.Scrubber.stringify(node)));
|
|
2832
2832
|
},
|
|
2833
2833
|
|
|
2834
2834
|
/**
|
|
@@ -2971,7 +2971,7 @@ var ReactEditor = {
|
|
|
2971
2971
|
var domNode = slate.Editor.isEditor(node) ? EDITOR_TO_ELEMENT.get(editor) : KEY_TO_ELEMENT === null || KEY_TO_ELEMENT === void 0 ? void 0 : KEY_TO_ELEMENT.get(ReactEditor.findKey(editor, node));
|
|
2972
2972
|
|
|
2973
2973
|
if (!domNode) {
|
|
2974
|
-
throw new Error("Cannot resolve a DOM node from Slate node: ".concat(
|
|
2974
|
+
throw new Error("Cannot resolve a DOM node from Slate node: ".concat(slate.Scrubber.stringify(node)));
|
|
2975
2975
|
}
|
|
2976
2976
|
|
|
2977
2977
|
return domNode;
|
|
@@ -3028,7 +3028,7 @@ var ReactEditor = {
|
|
|
3028
3028
|
}
|
|
3029
3029
|
|
|
3030
3030
|
if (!domPoint) {
|
|
3031
|
-
throw new Error("Cannot resolve a DOM point from Slate point: ".concat(
|
|
3031
|
+
throw new Error("Cannot resolve a DOM point from Slate point: ".concat(slate.Scrubber.stringify(point)));
|
|
3032
3032
|
}
|
|
3033
3033
|
|
|
3034
3034
|
return domPoint;
|
|
@@ -4399,11 +4399,11 @@ var Slate = function Slate(props) {
|
|
|
4399
4399
|
|
|
4400
4400
|
var _React$useState = React__default['default'].useState(function () {
|
|
4401
4401
|
if (!slate.Node.isNodeList(value)) {
|
|
4402
|
-
throw new Error("[Slate] value is invalid! Expected a list of elements" + "but got: ".concat(
|
|
4402
|
+
throw new Error("[Slate] value is invalid! Expected a list of elements" + "but got: ".concat(slate.Scrubber.stringify(value)));
|
|
4403
4403
|
}
|
|
4404
4404
|
|
|
4405
4405
|
if (!slate.Editor.isEditor(editor)) {
|
|
4406
|
-
throw new Error("[Slate] editor is invalid! you passed:" + "".concat(
|
|
4406
|
+
throw new Error("[Slate] editor is invalid! you passed:" + "".concat(slate.Scrubber.stringify(editor)));
|
|
4407
4407
|
}
|
|
4408
4408
|
|
|
4409
4409
|
editor.children = value;
|