@ni/nimble-components 35.2.2 → 35.2.3

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.
@@ -39923,7 +39923,17 @@ so this becomes the fallback color for the slot */ ''}
39923
39923
  }
39924
39924
  }
39925
39925
  }
39926
- if (gecko && added.length) {
39926
+ if (added.some(n => n.nodeName == "BR") && (view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
39927
+ // Browsers sometimes insert a bogus break node if you
39928
+ // backspace out the last bit of text before an inline-flex node (#1552)
39929
+ for (let node of added)
39930
+ if (node.nodeName == "BR" && node.parentNode) {
39931
+ let after = node.nextSibling;
39932
+ if (after && after.nodeType == 1 && after.contentEditable == "false")
39933
+ node.parentNode.removeChild(node);
39934
+ }
39935
+ }
39936
+ else if (gecko && added.length) {
39927
39937
  let brs = added.filter(n => n.nodeName == "BR");
39928
39938
  if (brs.length == 2) {
39929
39939
  let [a, b] = brs;
@@ -39941,17 +39951,6 @@ so this becomes the fallback color for the slot */ ''}
39941
39951
  }
39942
39952
  }
39943
39953
  }
39944
- else if ((chrome || safari) && added.some(n => n.nodeName == "BR") &&
39945
- (view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
39946
- // Chrome/Safari sometimes insert a bogus break node if you
39947
- // backspace out the last bit of text before an inline-flex node (#1552)
39948
- for (let node of added)
39949
- if (node.nodeName == "BR" && node.parentNode) {
39950
- let after = node.nextSibling;
39951
- if (after && after.nodeType == 1 && after.contentEditable == "false")
39952
- node.parentNode.removeChild(node);
39953
- }
39954
- }
39955
39954
  let readSel = null;
39956
39955
  // If it looks like the browser has reset the selection to the
39957
39956
  // start of the document after focus, restore the selection from
@@ -56745,7 +56744,7 @@ ${renderedContent}
56745
56744
  */
56746
56745
  isMarkAhead(parent, index, mark) {
56747
56746
  for (;; index++) {
56748
- if (index == parent.childCount)
56747
+ if (index >= parent.childCount)
56749
56748
  return false;
56750
56749
  let next = parent.child(index);
56751
56750
  if (next.type.name != this.options.hardBreakNodeName)
@@ -59607,6 +59606,9 @@ ${renderedContent}
59607
59606
  },
59608
59607
  class: {
59609
59608
  default: this.options.HTMLAttributes.class
59609
+ },
59610
+ title: {
59611
+ default: null
59610
59612
  }
59611
59613
  };
59612
59614
  },
@@ -59646,10 +59648,11 @@ ${renderedContent}
59646
59648
  });
59647
59649
  },
59648
59650
  renderMarkdown: (node, h) => {
59649
- var _a;
59650
- const href = ((_a = node.attrs) == null ? void 0 : _a.href) || "";
59651
+ var _a, _b, _c, _d;
59652
+ const href = (_b = (_a = node.attrs) == null ? void 0 : _a.href) != null ? _b : "";
59653
+ const title = (_d = (_c = node.attrs) == null ? void 0 : _c.title) != null ? _d : "";
59651
59654
  const text = h.renderChildren(node);
59652
- return `[${text}](${href})`;
59655
+ return title ? `[${text}](${href} "${title}")` : `[${text}](${href})`;
59653
59656
  },
59654
59657
  addCommands() {
59655
59658
  return {