@vonaffenfels/slate-editor 1.0.74 → 1.0.75
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/componentLoader.js +6 -1
- package/dist/BlockEditor.js +1 -1
- package/dist/Renderer.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/Nodes/StorybookDisplay.js +2 -2
package/componentLoader.js
CHANGED
|
@@ -74,11 +74,16 @@ module.exports = async function componentLoader() {
|
|
|
74
74
|
return MissingComponent;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
if(typeof COMPONENT_REGISTRY[localBlock] === "function") {
|
|
78
|
+
console.warn(\`Broken Component found for \${block}\`);
|
|
79
|
+
return MissingComponent;
|
|
80
|
+
}
|
|
81
|
+
|
|
77
82
|
return COMPONENT_REGISTRY[localBlock];
|
|
78
83
|
}
|
|
79
84
|
`;
|
|
80
85
|
|
|
81
|
-
//writeFileSync("./componentLoader.static.DEBUG.js", fileContent);
|
|
86
|
+
// writeFileSync("./componentLoader.static.DEBUG.js", fileContent);
|
|
82
87
|
|
|
83
88
|
return fileContent;
|
|
84
89
|
};
|