@powerduck/md-editor 0.9.0 → 0.9.2

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.
@@ -74,6 +74,8 @@ export declare class DocLinkController {
74
74
  private items;
75
75
  private selectedIndex;
76
76
  private trigger;
77
+ /** Snapshot of cursor position when dropdown was last shown. */
78
+ private activeHead;
77
79
  private searchAbort;
78
80
  private destroyed;
79
81
  constructor(view: EditorView, options?: DocLinkOptions);
@@ -85,6 +87,8 @@ export declare class DocLinkController {
85
87
  private runSearch;
86
88
  private show;
87
89
  private renderDropdown;
90
+ /** Update the active-item CSS class without rebuilding the DOM. */
91
+ private updateActiveClass;
88
92
  private positionDropdown;
89
93
  private selectItem;
90
94
  /**
@@ -45,6 +45,10 @@ export declare class MentionController {
45
45
  private items;
46
46
  private selectedIndex;
47
47
  private trigger;
48
+ /** Snapshot of cursor position when dropdown was last shown — used by
49
+ * selectItem so that focus loss or selection changes cannot break the
50
+ * replacement range. */
51
+ private activeHead;
48
52
  private searchAbort;
49
53
  private destroyed;
50
54
  constructor(view: EditorView, options?: MentionOptions);
@@ -62,6 +66,8 @@ export declare class MentionController {
62
66
  private runSearch;
63
67
  private show;
64
68
  private renderDropdown;
69
+ /** Update the active-item CSS class without rebuilding the DOM. */
70
+ private updateActiveClass;
65
71
  private positionDropdown;
66
72
  private selectItem;
67
73
  hide(): void;