@univerjs/docs-ui 0.16.0 → 0.16.1-insiders.20260311-074e8ca
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 +15 -15
- package/lib/es/facade.js +7 -7
- package/lib/es/index.js +1812 -1807
- package/lib/facade.js +7 -7
- package/lib/index.js +1812 -1807
- package/lib/types/commands/util.d.ts +1 -1
- package/lib/types/controllers/doc-container-ui-controller.d.ts +1 -1
- package/lib/types/controllers/render-controllers/doc-contextmenu.render-controller.d.ts +2 -2
- package/lib/types/index.d.ts +3 -3
- package/lib/types/plugin.d.ts +3 -1
- package/lib/types/views/doc-container/DocContainer.d.ts +1 -1
- package/lib/umd/index.js +15 -15
- package/package.json +10 -10
- package/LICENSE +0 -176
- /package/lib/types/{controllers/config.schema.d.ts → config/config.d.ts} +0 -0
- /package/lib/types/{controllers/menu → menu}/context-menu.d.ts +0 -0
- /package/lib/types/{controllers/menu → menu}/menu.d.ts +0 -0
- /package/lib/types/{controllers/menu → menu}/paragraph-menu.d.ts +0 -0
- /package/lib/types/{controllers/menu.schema.d.ts → menu/schema.d.ts} +0 -0
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 m = (n, e, t) => v(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { Inject as _, Injector as g,
|
|
4
|
+
import { Inject as _, Injector as g, UniverInstanceType as a, UndoCommand as I, RedoCommand as p, DOC_RANGE_TYPE as S, IUniverInstanceService as l, ICommandService as D, IResourceManagerService as U } from "@univerjs/core";
|
|
5
5
|
import { FUniver as u } from "@univerjs/core/facade";
|
|
6
6
|
import { InsertCommand as f, DocSelectionRenderService as C } from "@univerjs/docs-ui";
|
|
7
7
|
import { IRenderManagerService as y } from "@univerjs/engine-render";
|
|
@@ -26,10 +26,10 @@ let o = class {
|
|
|
26
26
|
return e.resources = n, e;
|
|
27
27
|
}
|
|
28
28
|
undo() {
|
|
29
|
-
return this._univerInstanceService.focusUnit(this.id), this._commandService.executeCommand(
|
|
29
|
+
return this._univerInstanceService.focusUnit(this.id), this._commandService.executeCommand(I.id);
|
|
30
30
|
}
|
|
31
31
|
redo() {
|
|
32
|
-
return this._univerInstanceService.focusUnit(this.id), this._commandService.executeCommand(
|
|
32
|
+
return this._univerInstanceService.focusUnit(this.id), this._commandService.executeCommand(p.id);
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Adds the specified text to the end of this text region.
|
|
@@ -71,7 +71,7 @@ let o = class {
|
|
|
71
71
|
{
|
|
72
72
|
startOffset: n,
|
|
73
73
|
endOffset: e,
|
|
74
|
-
rangeType:
|
|
74
|
+
rangeType: S.TEXT
|
|
75
75
|
}
|
|
76
76
|
],
|
|
77
77
|
!0
|
|
@@ -80,9 +80,9 @@ let o = class {
|
|
|
80
80
|
};
|
|
81
81
|
o = R([
|
|
82
82
|
c(1, _(g)),
|
|
83
|
-
c(2,
|
|
84
|
-
c(3,
|
|
85
|
-
c(4,
|
|
83
|
+
c(2, l),
|
|
84
|
+
c(3, D),
|
|
85
|
+
c(4, U),
|
|
86
86
|
c(5, y)
|
|
87
87
|
], o);
|
|
88
88
|
class O extends u {
|