dmn-js-shared
Advanced tools
Comparing version 9.2.0 to 9.3.0
@@ -592,3 +592,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
(_this$_eventBus4 = this._eventBus).fire.apply(_this$_eventBus4, arguments); | ||
return (_this$_eventBus4 = this._eventBus).fire.apply(_this$_eventBus4, arguments); | ||
} | ||
@@ -595,0 +595,0 @@ }, { |
@@ -192,2 +192,11 @@ import { createVNode } from "inferno"; | ||
}, { | ||
key: "getClassName", | ||
value: function getClassName() { | ||
var _this$props = this.props, | ||
className = _this$props.className, | ||
placeholder = _this$props.placeholder, | ||
value = _this$props.value; | ||
return [className || '', 'content-editable', !value && placeholder ? 'content-editable--with-placeholder' : ''].join(' '); | ||
} | ||
}, { | ||
key: "render", | ||
@@ -198,9 +207,10 @@ value: function render(props) { | ||
var value = props.value, | ||
className = props.className; // QUIRK: must add trailing <br/> for line | ||
placeholder = props.placeholder; // QUIRK: must add trailing <br/> for line | ||
// breaks to properly work | ||
value = escapeHtml(value).replace(/\r?\n/g, '<br/>') + '<br/>'; | ||
return createVNode(1, "div", [className || '', 'content-editable'].join(' '), null, 1, { | ||
return createVNode(1, "div", this.getClassName(), null, 1, { | ||
"contentEditable": "true", | ||
"spellcheck": "false", | ||
"data-placeholder": placeholder || '', | ||
"onInput": this.onInput, | ||
@@ -207,0 +217,0 @@ "onKeypress": this.onKeypress, |
{ | ||
"name": "dmn-js-shared", | ||
"description": "Shared components used by dmn-js", | ||
"version": "9.2.0", | ||
"version": "9.3.0", | ||
"scripts": { | ||
@@ -34,3 +34,3 @@ "test": "karma start", | ||
}, | ||
"gitHead": "6964a0a64a07b0e68d2a8c64cc7336444d74780c" | ||
"gitHead": "ff00308008a18f92a1c21dd47c3ecfdfffa09a3c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
265423
2996