@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-red/editor-client",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
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
- navigator.clipboard.writeText(value).then(function () {
38551
- if (element) {
38552
- var popover = RED.popover.create({
38553
- target: element,
38554
- direction: 'left',
38555
- size: 'small',
38556
- content: RED._(msg)
38557
- });
38558
- setTimeout(function() {
38559
- popover.close();
38560
- },1000);
38561
- popover.open();
38562
- }
38563
- if (currentFocus) {
38564
- $(currentFocus).focus();
38565
- }
38566
- }).catch(err => { console.error("Failed to copy:",err) });
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) {