@codemirror/view 6.2.0 → 6.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.
package/dist/index.d.ts CHANGED
@@ -736,7 +736,7 @@ declare class EditorView {
736
736
  know you registered a given plugin, it is recommended to check
737
737
  the return value of this method.
738
738
  */
739
- plugin<T>(plugin: ViewPlugin<T>): T | null;
739
+ plugin<T extends PluginValue>(plugin: ViewPlugin<T>): T | null;
740
740
  /**
741
741
  The top position of the document, in screen coordinates. This
742
742
  may be negative when the editor is scrolled down. Points
@@ -1054,6 +1054,11 @@ declare class EditorView {
1054
1054
  functions are called _after_ the new viewport has been computed,
1055
1055
  and thus **must not** introduce block widgets or replacing
1056
1056
  decorations that cover line breaks.
1057
+
1058
+ If you want decorated ranges to behave like atomic units for
1059
+ cursor motion and deletion purposes, also provide the range set
1060
+ containing the decorations to
1061
+ [`EditorView.atomicRanges`](https://codemirror.net/6/docs/ref/#view.EditorView^atomicRanges).
1057
1062
  */
1058
1063
  static decorations: Facet<DecorationSet | ((view: EditorView) => DecorationSet), readonly (DecorationSet | ((view: EditorView) => DecorationSet))[]>;
1059
1064
  /**