@vonaffenfels/slate-editor 1.0.10 → 1.0.12
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 +0 -2
- package/package.json +2 -2
package/componentLoader.js
CHANGED
|
@@ -32,7 +32,6 @@ module.exports = async function componentLoader() {
|
|
|
32
32
|
|
|
33
33
|
const componentImports = components.map(component => {
|
|
34
34
|
return `const ${component.name} = dynamic(() => import("${component.file}").then(v => {
|
|
35
|
-
//console.log("Component found for ${component.name} with export ${component.exportName}", v);
|
|
36
35
|
return v?.["${component.exportName}"] || v?.["${component.name}"] || v.default;
|
|
37
36
|
}));`;
|
|
38
37
|
});
|
|
@@ -49,7 +48,6 @@ module.exports = async function componentLoader() {
|
|
|
49
48
|
${components.map(component => {
|
|
50
49
|
return `
|
|
51
50
|
case "${component.namePath.toLowerCase()}":
|
|
52
|
-
console.warn(\`Component found for \${block}\`, ${component.name});
|
|
53
51
|
return ${component.name};`;
|
|
54
52
|
}).join("\n")}
|
|
55
53
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonaffenfels/slate-editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"cssnano": "^5.0.1",
|
|
72
72
|
"escape-html": "^1.0.3"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "19e0f8e8f553733b6b461f9c4b9d771c67bf0611",
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
}
|