@docen/extensions 0.0.8 → 0.0.10

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.
@@ -2025,6 +2025,16 @@ declare class Transform {
2025
2025
  */
2026
2026
  get docChanged(): boolean;
2027
2027
  /**
2028
+ Return a single range, in post-transform document positions,
2029
+ that covers all content changed by this transform. Returns null
2030
+ if no replacements are made. Note that this will ignore changes
2031
+ that add/remove marks without replacing the underlying content.
2032
+ */
2033
+ changedRange(): {
2034
+ from: number;
2035
+ to: number;
2036
+ } | null;
2037
+ /**
2028
2038
  Replace the part of the document between `from` and `to` with the
2029
2039
  given `slice`.
2030
2040
  */
@@ -6592,5 +6602,5 @@ interface Commands<ReturnType = any> {
6592
6602
  interface Storage {
6593
6603
  }
6594
6604
 
6595
- export { Mark as M, Node as N, Node$1 as a, EditorView as b, PluginKey as d, Editor as e, EditorState as g, ResolvedPos as h, Extension as i };
6596
- export type { AnyExtension as A, DOMOutputSpec as D, Extensions as E, JSONContent as J, ParentConfig as P, ResizableNodeViewDirection as R, NodeView as c, Range as f };
6605
+ export { EditorView as E, Mark as M, Node as N, Transaction as T, Node$1 as a, PluginKey as c, Editor as d, EditorState as f, ResolvedPos as g, Extension as h };
6606
+ export type { AnyExtension as A, DOMOutputSpec as D, JSONContent as J, ParentConfig as P, ResizableNodeViewDirection as R, NodeView as b, Range as e };
@@ -2025,6 +2025,16 @@ declare class Transform {
2025
2025
  */
2026
2026
  get docChanged(): boolean;
2027
2027
  /**
2028
+ Return a single range, in post-transform document positions,
2029
+ that covers all content changed by this transform. Returns null
2030
+ if no replacements are made. Note that this will ignore changes
2031
+ that add/remove marks without replacing the underlying content.
2032
+ */
2033
+ changedRange(): {
2034
+ from: number;
2035
+ to: number;
2036
+ } | null;
2037
+ /**
2028
2038
  Replace the part of the document between `from` and `to` with the
2029
2039
  given `slice`.
2030
2040
  */
@@ -6592,5 +6602,5 @@ interface Commands<ReturnType = any> {
6592
6602
  interface Storage {
6593
6603
  }
6594
6604
 
6595
- export { Mark as M, Node as N, Node$1 as a, EditorView as b, PluginKey as d, Editor as e, EditorState as g, ResolvedPos as h, Extension as i };
6596
- export type { AnyExtension as A, DOMOutputSpec as D, Extensions as E, JSONContent as J, ParentConfig as P, ResizableNodeViewDirection as R, NodeView as c, Range as f };
6605
+ export { EditorView as E, Mark as M, Node as N, Transaction as T, Node$1 as a, PluginKey as c, Editor as d, EditorState as f, ResolvedPos as g, Extension as h };
6606
+ export type { AnyExtension as A, DOMOutputSpec as D, JSONContent as J, ParentConfig as P, ResizableNodeViewDirection as R, NodeView as b, Range as e };
@@ -2025,6 +2025,16 @@ declare class Transform {
2025
2025
  */
2026
2026
  get docChanged(): boolean;
2027
2027
  /**
2028
+ Return a single range, in post-transform document positions,
2029
+ that covers all content changed by this transform. Returns null
2030
+ if no replacements are made. Note that this will ignore changes
2031
+ that add/remove marks without replacing the underlying content.
2032
+ */
2033
+ changedRange(): {
2034
+ from: number;
2035
+ to: number;
2036
+ } | null;
2037
+ /**
2028
2038
  Replace the part of the document between `from` and `to` with the
2029
2039
  given `slice`.
2030
2040
  */
@@ -6592,5 +6602,5 @@ interface Commands<ReturnType = any> {
6592
6602
  interface Storage {
6593
6603
  }
6594
6604
 
6595
- export { Mark as M, Node as N, Node$1 as a, EditorView as b, PluginKey as d, Editor as e, EditorState as g, ResolvedPos as h, Extension as i };
6596
- export type { AnyExtension as A, DOMOutputSpec as D, Extensions as E, JSONContent as J, ParentConfig as P, ResizableNodeViewDirection as R, NodeView as c, Range as f };
6605
+ export { EditorView as E, Mark as M, Node as N, Transaction as T, Node$1 as a, PluginKey as c, Editor as d, EditorState as f, ResolvedPos as g, Extension as h };
6606
+ export type { AnyExtension as A, DOMOutputSpec as D, JSONContent as J, ParentConfig as P, ResizableNodeViewDirection as R, NodeView as b, Range as e };