@ni/ok-components 0.2.8 → 0.2.9

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