@disputas/diagram
Advanced tools
Comparing version 1.0.28 to 1.0.29
@@ -178,10 +178,15 @@ 'use strict'; | ||
return (React__default["default"].createElement(ContextMenu, { positions: position, hideContext: hideContext }, | ||
categories.map(function (category) { return (React__default["default"].createElement("button", { key: category.id, onClick: function () { | ||
events.dispatchEvent(events.SetCategory(propositionId, category.shadowName || category.name)); | ||
hideContext(); | ||
} }, | ||
React__default["default"].createElement("div", { style: { | ||
backgroundColor: category.color, | ||
} }), | ||
React__default["default"].createElement("h4", null, category.name))); }), | ||
categories.reduce(function (previousCategories, currentCategory) { | ||
var RELEVANCE_ID = "175c33e4-5261-44cc-b246-b27689150013"; | ||
if (currentCategory.id !== RELEVANCE_ID) | ||
previousCategories.push(React__default["default"].createElement("button", { key: currentCategory.id, onClick: function () { | ||
events.dispatchEvent(events.SetCategory(propositionId, currentCategory.shadowName || currentCategory.name)); | ||
hideContext(); | ||
} }, | ||
React__default["default"].createElement("div", { style: { | ||
backgroundColor: currentCategory.color, | ||
} }), | ||
React__default["default"].createElement("h4", null, currentCategory.name))); | ||
return previousCategories; | ||
}, []), | ||
React__default["default"].createElement("button", { onClick: function () { return events.dispatchEvent(events.DeleteNode(propositionId)); } }, | ||
@@ -188,0 +193,0 @@ React__default["default"].createElement("div", { style: { |
{ | ||
"name": "@disputas/diagram", | ||
"version": "1.0.28", | ||
"version": "1.0.29", | ||
"description": "D3 and Dagre based diagram", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80151
1562