@codemirror/view 0.19.25 → 0.19.29

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/dist/index.d.ts CHANGED
@@ -171,6 +171,11 @@ declare abstract class WidgetType {
171
171
  events.
172
172
  */
173
173
  ignoreEvent(_event: Event): boolean;
174
+ /**
175
+ This is called when the an instance of the widget is removed
176
+ from the editor view.
177
+ */
178
+ destroy(_dom: HTMLElement): void;
174
179
  }
175
180
  /**
176
181
  A decoration set represents a collection of decorated ranges,
@@ -914,6 +919,11 @@ declare class EditorView {
914
919
  Find the DOM parent node and offset (child offset if `node` is
915
920
  an element, character offset when it is a text node) at the
916
921
  given document position.
922
+
923
+ Note that for positions that aren't currently in
924
+ `visibleRanges`, the resulting DOM position isn't necessarily
925
+ meaningful (it may just point before or after a placeholder
926
+ element).
917
927
  */
918
928
  domAtPos(pos: number): {
919
929
  node: Node;