@node-red/editor-client 2.1.5 → 2.1.6
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/package.json +1 -1
- package/public/red/about +13 -0
- package/public/red/red.js +22 -19
- package/public/red/red.min.js +2 -2
- package/public/red/style.min.css +1 -1
- package/public/vendor/vendor.js +2 -2
package/package.json
CHANGED
package/public/red/about
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
#### 2.1.6: Maintenance Release
|
|
2
|
+
|
|
3
|
+
Editor
|
|
4
|
+
|
|
5
|
+
- Revert copy-text change and apply alternative fix (#3363) @knolleary
|
|
6
|
+
- Update marked to latest (#3362) @knolleary
|
|
7
|
+
- fix to make start of property error tooltip messages aligned (#3358) @HiroyasuNishiyama
|
|
8
|
+
|
|
9
|
+
Nodes
|
|
10
|
+
|
|
11
|
+
- Inject: fix JSON propety validation of inject node (#3349) @HiroyasuNishiyama
|
|
12
|
+
- Delay: fix unit value validation of delay node (#3351) @HiroyasuNishiyama
|
|
13
|
+
|
|
1
14
|
#### 2.1.5: Maintenance Release
|
|
2
15
|
|
|
3
16
|
Runtime
|
package/public/red/red.js
CHANGED
|
@@ -7900,7 +7900,7 @@ RED.utils = (function() {
|
|
|
7900
7900
|
window._marked.use({extensions: [descriptionList, description] } );
|
|
7901
7901
|
|
|
7902
7902
|
function renderMarkdown(txt) {
|
|
7903
|
-
var rendered = _marked(txt);
|
|
7903
|
+
var rendered = _marked.parse(txt);
|
|
7904
7904
|
var cleaned = DOMPurify.sanitize(rendered, {SAFE_FOR_JQUERY: true})
|
|
7905
7905
|
return cleaned;
|
|
7906
7906
|
}
|
|
@@ -19413,7 +19413,7 @@ RED.view = (function() {
|
|
|
19413
19413
|
},
|
|
19414
19414
|
tooltip: function(d) {
|
|
19415
19415
|
if (d.validationErrors && d.validationErrors.length > 0) {
|
|
19416
|
-
return RED._("editor.errors.invalidProperties")+"\n - "+d.validationErrors.join("\n
|
|
19416
|
+
return RED._("editor.errors.invalidProperties")+"\n - "+d.validationErrors.join("\n - ")
|
|
19417
19417
|
}
|
|
19418
19418
|
},
|
|
19419
19419
|
show: function(n) { return !n.valid }
|
|
@@ -38547,23 +38547,26 @@ RED.clipboard = (function() {
|
|
|
38547
38547
|
if (truncated) {
|
|
38548
38548
|
msg += "_truncated";
|
|
38549
38549
|
}
|
|
38550
|
-
|
|
38551
|
-
|
|
38552
|
-
|
|
38553
|
-
|
|
38554
|
-
|
|
38555
|
-
|
|
38556
|
-
|
|
38557
|
-
|
|
38558
|
-
|
|
38559
|
-
|
|
38560
|
-
|
|
38561
|
-
popover.
|
|
38562
|
-
}
|
|
38563
|
-
|
|
38564
|
-
|
|
38565
|
-
|
|
38566
|
-
|
|
38550
|
+
var clipboardHidden = $('<textarea type="text" id="red-ui-clipboard-hidden" tabIndex="-1">').appendTo(document.body);
|
|
38551
|
+
clipboardHidden.val(value).focus().select();
|
|
38552
|
+
var result = document.execCommand("copy");
|
|
38553
|
+
if (result && element) {
|
|
38554
|
+
var popover = RED.popover.create({
|
|
38555
|
+
target: element,
|
|
38556
|
+
direction: 'left',
|
|
38557
|
+
size: 'small',
|
|
38558
|
+
content: RED._(msg)
|
|
38559
|
+
});
|
|
38560
|
+
setTimeout(function() {
|
|
38561
|
+
popover.close();
|
|
38562
|
+
},1000);
|
|
38563
|
+
popover.open();
|
|
38564
|
+
}
|
|
38565
|
+
clipboardHidden.remove();
|
|
38566
|
+
if (currentFocus) {
|
|
38567
|
+
$(currentFocus).focus();
|
|
38568
|
+
}
|
|
38569
|
+
return result;
|
|
38567
38570
|
}
|
|
38568
38571
|
|
|
38569
38572
|
function importNodes(nodesStr,addFlow) {
|