@univerjs/docs-ui 0.5.3 → 0.5.4
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/lib/cjs/index.js +13 -13
- package/lib/es/facade.js +4 -6
- package/lib/es/index.js +408 -408
- package/lib/types/facade/f-document.d.ts +1 -3
- package/lib/umd/index.js +14 -14
- package/package.json +13 -12
package/lib/es/facade.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var h = Object.defineProperty;
|
|
2
2
|
var v = (n, e, t) => e in n ? h(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var u = (n, e, t) => v(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { Inject as _, Injector as I, UniverInstanceType as d, UndoCommand as g, RedoCommand as p, DOC_RANGE_TYPE as S, IUniverInstanceService as l, ICommandService as
|
|
4
|
+
import { Inject as _, Injector as I, UniverInstanceType as d, UndoCommand as g, RedoCommand as p, DOC_RANGE_TYPE as S, IUniverInstanceService as l, ICommandService as f, IResourceManagerService as D, FUniver as m } from "@univerjs/core";
|
|
5
5
|
import { InsertCommand as U, DocSelectionRenderService as C } from "@univerjs/docs-ui";
|
|
6
6
|
import { IRenderManagerService as M } from "@univerjs/engine-render";
|
|
7
7
|
var y = Object.defineProperty, O = Object.getOwnPropertyDescriptor, R = (n, e, t, r) => {
|
|
@@ -32,7 +32,7 @@ let o = class {
|
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Adds the specified text to the end of this text region.
|
|
35
|
-
* @param text
|
|
35
|
+
* @param text - The text to be added to the end of this text region.
|
|
36
36
|
*/
|
|
37
37
|
appendText(n) {
|
|
38
38
|
const e = this.id, { body: t } = this.getSnapshot();
|
|
@@ -55,10 +55,8 @@ let o = class {
|
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* Sets the selection to a specified text range in the document.
|
|
58
|
-
*
|
|
59
58
|
* @param startOffset - The starting offset of the selection in the document.
|
|
60
59
|
* @param endOffset - The ending offset of the selection in the document.
|
|
61
|
-
*
|
|
62
60
|
* @example
|
|
63
61
|
* ```typescript
|
|
64
62
|
* document.setSelection(10, 20);
|
|
@@ -82,8 +80,8 @@ let o = class {
|
|
|
82
80
|
o = R([
|
|
83
81
|
c(1, _(I)),
|
|
84
82
|
c(2, l),
|
|
85
|
-
c(3,
|
|
86
|
-
c(4,
|
|
83
|
+
c(3, f),
|
|
84
|
+
c(4, D),
|
|
87
85
|
c(5, M)
|
|
88
86
|
], o);
|
|
89
87
|
class T extends m {
|