@ni/nimble-components 20.16.3 → 20.16.4

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.
@@ -16300,7 +16300,7 @@
16300
16300
 
16301
16301
  /**
16302
16302
  * Do not edit directly
16303
- * Generated on Wed, 13 Dec 2023 13:50:22 GMT
16303
+ * Generated on Fri, 15 Dec 2023 13:52:49 GMT
16304
16304
  */
16305
16305
 
16306
16306
  const Information100DarkUi = "#a46eff";
@@ -42754,7 +42754,7 @@ img.ProseMirror-separator {
42754
42754
  box-sizing: border-box;
42755
42755
  font: ${bodyFont};
42756
42756
  color: ${bodyFontColor};
42757
- white-space: normal;
42757
+ white-space: pre-wrap;
42758
42758
  }
42759
42759
 
42760
42760
  .control {
@@ -60464,6 +60464,15 @@ img.ProseMirror-separator {
60464
60464
  let inSuggestionMode = false;
60465
60465
  return {
60466
60466
  onStart: (props) => {
60467
+ /**
60468
+ * If the cursor position moves to outside of the mention and configuration element changes,
60469
+ * the setMarkdown() will trigger this `onStart` without a decoration node because the cursor
60470
+ * position is temporarily moved out of the suggestion decoration. Ignore `onStart` in that case
60471
+ * and don't show the mention list box since it doesn't have anything to anchor to.
60472
+ */
60473
+ if (props.decorationNode === null) {
60474
+ return;
60475
+ }
60467
60476
  inSuggestionMode = true;
60468
60477
  config.mentionUpdateEmitter(props.query);
60469
60478
  activeMentionCharacterEmitter(props.text.slice(0, 1));