@sobree/core 0.1.30 → 0.1.32
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/doc/api.d.ts +14 -0
- package/dist/editor/internal/positionMap.d.ts +34 -14
- package/dist/index.js +1871 -1848
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/util/selection.d.ts +0 -13
package/package.json
CHANGED
package/dist/util/selection.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Save and restore the current document selection as a pair of (node, offset)
|
|
3
|
-
* pairs. Works across block re-parenting because text nodes are referenced
|
|
4
|
-
* directly — only breaks when the saved node is actually removed from the DOM.
|
|
5
|
-
*/
|
|
6
|
-
export interface SavedSelection {
|
|
7
|
-
startContainer: Node;
|
|
8
|
-
startOffset: number;
|
|
9
|
-
endContainer: Node;
|
|
10
|
-
endOffset: number;
|
|
11
|
-
}
|
|
12
|
-
export declare function saveSelection(): SavedSelection | null;
|
|
13
|
-
export declare function restoreSelection(saved: SavedSelection | null): void;
|