datocms-react-ui 0.3.4 → 0.3.5
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.
|
@@ -223,7 +223,7 @@ function ContextInspector(_a) {
|
|
|
223
223
|
ctx.notice('Copied to clipboard!');
|
|
224
224
|
};
|
|
225
225
|
var handleRun = function (example) {
|
|
226
|
-
Function("\n \"use strict\";\n return(\n async function(ctx) {\n try {\n " + example + "\n } catch(e) {\n await ctx.alert('Execution failed! See console for errors!');\n
|
|
226
|
+
Function("\n \"use strict\";\n return(\n async function(ctx) {\n try {\n " + example + "\n } catch(e) {\n console.error(e);\n await ctx.alert('Execution failed! See console for errors!');\n }\n }\n )\n ")()(ctx);
|
|
227
227
|
};
|
|
228
228
|
return (react_1.default.createElement("div", { className: styles_module_css_json_1.default.inspector }, groups &&
|
|
229
229
|
groups.map(function (group) {
|
|
@@ -198,7 +198,7 @@ export function ContextInspector(_a) {
|
|
|
198
198
|
ctx.notice('Copied to clipboard!');
|
|
199
199
|
};
|
|
200
200
|
var handleRun = function (example) {
|
|
201
|
-
Function("\n \"use strict\";\n return(\n async function(ctx) {\n try {\n " + example + "\n } catch(e) {\n await ctx.alert('Execution failed! See console for errors!');\n
|
|
201
|
+
Function("\n \"use strict\";\n return(\n async function(ctx) {\n try {\n " + example + "\n } catch(e) {\n console.error(e);\n await ctx.alert('Execution failed! See console for errors!');\n }\n }\n )\n ")()(ctx);
|
|
202
202
|
};
|
|
203
203
|
return (React.createElement("div", { className: s.inspector }, groups &&
|
|
204
204
|
groups.map(function (group) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datocms-react-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "React components to use inside DatoCMS plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"classnames": "^2.3.1",
|
|
42
|
-
"datocms-plugin-sdk": "^0.3.
|
|
42
|
+
"datocms-plugin-sdk": "^0.3.5"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">= 17.0.2"
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"postcss-nested": "^5.0.6",
|
|
56
56
|
"typedoc": "^0.22.8"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "8842270101e46f3aa736f3948306e2c73064e56e"
|
|
59
59
|
}
|