@univerjs/docs-thread-comment-ui 0.5.5 → 0.6.0-experimental.20250125-1d060b9
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 +2 -10
- package/lib/es/index.js +247 -275
- package/lib/types/views/doc-thread-comment-panel/index.d.ts +16 -2
- package/lib/umd/index.js +2 -10
- package/package.json +12 -12
- package/LICENSE +0 -176
package/lib/es/index.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { Inject as v, Disposable as
|
|
5
|
-
import { IRenderManagerService as
|
|
6
|
-
import { ThreadCommentPanelService as
|
|
7
|
-
import { DocSelectionManagerService as H, DocSkeletonManagerService as
|
|
8
|
-
import { addCustomDecorationBySelectionFactory as
|
|
9
|
-
import { IThreadCommentDataSourceService as
|
|
10
|
-
import { ISidebarService as
|
|
11
|
-
import { BehaviorSubject as
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
var Me = Object.defineProperty;
|
|
2
|
+
var be = (e, t, r) => t in e ? Me(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var G = (e, t, r) => be(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import { Inject as v, Disposable as j, CommandType as E, ICommandService as M, CustomDecorationType as Y, sequenceExecute as ne, UniverInstanceType as S, SHEET_EDITOR_UNITS as De, useDependency as P, IUniverInstanceService as B, Injector as re, isInternalEditorID as ie, useObservable as Z, UserManagerService as Te, BuildTextUtils as xe, DependentOn as ye, Plugin as Ue, merge as Re, IConfigService as Pe } from "@univerjs/core";
|
|
5
|
+
import { IRenderManagerService as F, DocumentEditArea as k } from "@univerjs/engine-render";
|
|
6
|
+
import { ThreadCommentPanelService as U, SetActiveCommentOperation as oe, ThreadCommentPanel as Ee, UniverThreadCommentUIPlugin as Ae } from "@univerjs/thread-comment-ui";
|
|
7
|
+
import { DocSelectionManagerService as H, DocSkeletonManagerService as we, RichTextEditingMutation as se, SetTextSelectionsOperation as Ne, DocInterceptorService as Ve, DOC_INTERCEPTOR_POINT as $e } from "@univerjs/docs";
|
|
8
|
+
import { addCustomDecorationBySelectionFactory as je, deleteCustomDecorationFactory as Be, DocSelectionRenderService as Fe, DocBackScrollRenderController as He, DocRenderController as Le } from "@univerjs/docs-ui";
|
|
9
|
+
import { IThreadCommentDataSourceService as We, AddCommentMutation as Ke, getDT as Ge, ThreadCommentModel as de } from "@univerjs/thread-comment";
|
|
10
|
+
import { ISidebarService as L, MenuItemType as ce, getMenuHiddenObservable as ae, RibbonStartGroup as Ze, ContextMenuPosition as ze, ContextMenuGroup as Je, ComponentManager as qe, IMenuManagerService as Ye } from "@univerjs/ui";
|
|
11
|
+
import { BehaviorSubject as Qe, Observable as me, debounceTime as le, filter as Xe } from "rxjs";
|
|
12
|
+
import { jsx as ke } from "react/jsx-runtime";
|
|
13
|
+
import { useMemo as z, useState as et, useEffect as tt, forwardRef as ue, useRef as nt, createElement as fe } from "react";
|
|
14
|
+
const rt = "DOC_THREAD_COMMENT_UI_PLUGIN", I = "default_doc", it = "docs-thread-comment-ui.config", ee = {};
|
|
15
|
+
var ot = Object.defineProperty, st = Object.getOwnPropertyDescriptor, dt = (e, t, r, n) => {
|
|
16
|
+
for (var i = n > 1 ? void 0 : n ? st(t, r) : t, o = e.length - 1, s; o >= 0; o--)
|
|
16
17
|
(s = e[o]) && (i = (n ? s(t, r, i) : s(i)) || i);
|
|
17
|
-
return n && i &&
|
|
18
|
-
},
|
|
19
|
-
let
|
|
18
|
+
return n && i && ot(t, r, i), i;
|
|
19
|
+
}, te = (e, t) => (r, n) => t(r, n, e);
|
|
20
|
+
let x = class extends j {
|
|
20
21
|
constructor(t, r) {
|
|
21
22
|
super();
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
G(this, "_addingComment$", new Qe(void 0));
|
|
24
|
+
G(this, "addingComment$", this._addingComment$.asObservable());
|
|
24
25
|
this._sidebarService = t, this._threadCommentPanelService = r, this.disposeWithMe(() => {
|
|
25
26
|
this._addingComment$.complete();
|
|
26
27
|
});
|
|
@@ -35,103 +36,74 @@ let R = class extends B {
|
|
|
35
36
|
this._addingComment$.next(void 0);
|
|
36
37
|
}
|
|
37
38
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
],
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @license React
|
|
45
|
-
* react-jsx-runtime.production.min.js
|
|
46
|
-
*
|
|
47
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
48
|
-
*
|
|
49
|
-
* This source code is licensed under the MIT license found in the
|
|
50
|
-
* LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/
|
|
52
|
-
var ie;
|
|
53
|
-
function ut() {
|
|
54
|
-
if (ie) return E;
|
|
55
|
-
ie = 1;
|
|
56
|
-
var e = rt, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
57
|
-
function s(d, a, u) {
|
|
58
|
-
var c, f = {}, C = null, _ = null;
|
|
59
|
-
u !== void 0 && (C = "" + u), a.key !== void 0 && (C = "" + a.key), a.ref !== void 0 && (_ = a.ref);
|
|
60
|
-
for (c in a) n.call(a, c) && !o.hasOwnProperty(c) && (f[c] = a[c]);
|
|
61
|
-
if (d && d.defaultProps) for (c in a = d.defaultProps, a) f[c] === void 0 && (f[c] = a[c]);
|
|
62
|
-
return { $$typeof: t, type: d, key: C, ref: _, props: f, _owner: i.current };
|
|
63
|
-
}
|
|
64
|
-
return E.Fragment = r, E.jsx = s, E.jsxs = s, E;
|
|
65
|
-
}
|
|
66
|
-
var oe;
|
|
67
|
-
function ft() {
|
|
68
|
-
return oe || (oe = 1, z.exports = ut()), z.exports;
|
|
69
|
-
}
|
|
70
|
-
var ht = ft();
|
|
71
|
-
const ve = {
|
|
39
|
+
x = dt([
|
|
40
|
+
te(0, L),
|
|
41
|
+
te(1, v(U))
|
|
42
|
+
], x);
|
|
43
|
+
const he = {
|
|
72
44
|
id: "docs.command.add-comment",
|
|
73
|
-
type:
|
|
45
|
+
type: E.COMMAND,
|
|
74
46
|
async handler(e, t) {
|
|
75
47
|
if (!t)
|
|
76
48
|
return !1;
|
|
77
|
-
const { comment: r, unitId: n } = t, o = await e.get(
|
|
49
|
+
const { comment: r, unitId: n } = t, o = await e.get(We).addComment(r), s = e.get(M), d = je(
|
|
78
50
|
e,
|
|
79
51
|
{
|
|
80
52
|
id: o.threadId,
|
|
81
|
-
type:
|
|
53
|
+
type: Y.COMMENT,
|
|
82
54
|
unitId: n
|
|
83
55
|
}
|
|
84
56
|
);
|
|
85
57
|
if (d) {
|
|
86
|
-
const
|
|
87
|
-
id:
|
|
58
|
+
const l = {
|
|
59
|
+
id: Ke.id,
|
|
88
60
|
params: {
|
|
89
61
|
unitId: n,
|
|
90
62
|
subUnitId: I,
|
|
91
63
|
comment: o
|
|
92
64
|
}
|
|
93
|
-
},
|
|
94
|
-
id:
|
|
65
|
+
}, f = {
|
|
66
|
+
id: oe.id,
|
|
95
67
|
params: {
|
|
96
68
|
unitId: n,
|
|
97
69
|
subUnitId: I,
|
|
98
70
|
commentId: o.id
|
|
99
71
|
}
|
|
100
72
|
};
|
|
101
|
-
return (await
|
|
73
|
+
return (await ne([l, d, f], s)).result;
|
|
102
74
|
}
|
|
103
75
|
return !1;
|
|
104
76
|
}
|
|
105
|
-
},
|
|
77
|
+
}, Ce = {
|
|
106
78
|
id: "docs.command.delete-comment",
|
|
107
|
-
type:
|
|
79
|
+
type: E.COMMAND,
|
|
108
80
|
async handler(e, t) {
|
|
109
81
|
if (!t)
|
|
110
82
|
return !1;
|
|
111
|
-
const { commentId: r, unitId: n } = t, i = e.get(M), o =
|
|
83
|
+
const { commentId: r, unitId: n } = t, i = e.get(M), o = Be(e, {
|
|
112
84
|
id: r,
|
|
113
85
|
unitId: n
|
|
114
86
|
});
|
|
115
|
-
return o ? (await
|
|
87
|
+
return o ? (await ne([o], i)).result : !1;
|
|
116
88
|
}
|
|
117
|
-
},
|
|
118
|
-
const t = e.get(
|
|
119
|
-
if (o ===
|
|
89
|
+
}, _e = (e) => {
|
|
90
|
+
const t = e.get(F), r = e.get(H), n = t.getCurrent(), i = n == null ? void 0 : n.with(we).getSkeleton(), o = i == null ? void 0 : i.getViewModel().getEditArea();
|
|
91
|
+
if (o === k.FOOTER || o === k.HEADER)
|
|
120
92
|
return !0;
|
|
121
93
|
const s = r.getActiveTextRange();
|
|
122
94
|
return !!(s == null || s.collapsed);
|
|
123
95
|
};
|
|
124
|
-
function
|
|
96
|
+
function ct(e) {
|
|
125
97
|
return {
|
|
126
|
-
id:
|
|
127
|
-
type:
|
|
98
|
+
id: W.id,
|
|
99
|
+
type: ce.BUTTON,
|
|
128
100
|
icon: "CommentSingle",
|
|
129
101
|
title: "threadCommentUI.panel.addComment",
|
|
130
102
|
tooltip: "threadCommentUI.panel.addComment",
|
|
131
|
-
hidden$:
|
|
132
|
-
disabled$: new
|
|
133
|
-
const n = e.get(H).textSelection$.pipe(
|
|
134
|
-
t.next(
|
|
103
|
+
hidden$: ae(e, S.UNIVER_DOC, void 0, De),
|
|
104
|
+
disabled$: new me(function(t) {
|
|
105
|
+
const n = e.get(H).textSelection$.pipe(le(16)).subscribe(() => {
|
|
106
|
+
t.next(_e(e));
|
|
135
107
|
});
|
|
136
108
|
return () => {
|
|
137
109
|
n.unsubscribe();
|
|
@@ -139,90 +111,90 @@ function Ct(e) {
|
|
|
139
111
|
})
|
|
140
112
|
};
|
|
141
113
|
}
|
|
142
|
-
function
|
|
114
|
+
function at(e) {
|
|
143
115
|
return {
|
|
144
|
-
id:
|
|
145
|
-
type:
|
|
116
|
+
id: X.id,
|
|
117
|
+
type: ce.BUTTON,
|
|
146
118
|
icon: "CommentSingle",
|
|
147
119
|
title: "threadCommentUI.panel.addComment",
|
|
148
120
|
tooltip: "threadCommentUI.panel.addComment",
|
|
149
|
-
hidden$:
|
|
121
|
+
hidden$: ae(e, S.UNIVER_DOC)
|
|
150
122
|
};
|
|
151
123
|
}
|
|
152
124
|
const y = () => {
|
|
153
|
-
const e = P(
|
|
154
|
-
() => o.textSelection$.pipe(
|
|
125
|
+
const e = P(B), t = P(re), r = z(() => e.getCurrentTypeOfUnit$(S.UNIVER_DOC).pipe(Xe((c) => !!c && !ie(c.getUnitId()))), [e]), n = Z(r), i = z(() => new me((c) => c.next(I)), []), o = P(H), s = z(
|
|
126
|
+
() => o.textSelection$.pipe(le(16)),
|
|
155
127
|
[o.textSelection$]
|
|
156
128
|
);
|
|
157
|
-
|
|
158
|
-
const d = P(M),
|
|
159
|
-
if (
|
|
129
|
+
Z(s);
|
|
130
|
+
const d = P(M), l = P(x), f = Z(l.addingComment$), [a, h] = et([]);
|
|
131
|
+
if (tt(() => {
|
|
160
132
|
var b;
|
|
161
|
-
const
|
|
162
|
-
|
|
163
|
-
const O =
|
|
164
|
-
return
|
|
133
|
+
const c = /* @__PURE__ */ new Set(), m = n == null ? void 0 : n.getCustomDecorations();
|
|
134
|
+
h((b = m == null ? void 0 : m.map((u) => u.id).filter((u) => {
|
|
135
|
+
const O = c.has(u);
|
|
136
|
+
return c.add(u), !O;
|
|
165
137
|
})) != null ? b : []);
|
|
166
|
-
const
|
|
138
|
+
const p = d.onCommandExecuted((u) => {
|
|
167
139
|
var O;
|
|
168
|
-
if (
|
|
169
|
-
const
|
|
170
|
-
|
|
171
|
-
const
|
|
172
|
-
return
|
|
140
|
+
if (u.id === se.id) {
|
|
141
|
+
const R = /* @__PURE__ */ new Set(), K = n == null ? void 0 : n.getCustomDecorations();
|
|
142
|
+
h((O = K == null ? void 0 : K.map((A) => A.id).filter((A) => {
|
|
143
|
+
const Oe = R.has(A);
|
|
144
|
+
return R.add(A), !Oe;
|
|
173
145
|
})) != null ? O : []);
|
|
174
146
|
}
|
|
175
147
|
});
|
|
176
148
|
return () => {
|
|
177
|
-
|
|
149
|
+
p.dispose();
|
|
178
150
|
};
|
|
179
151
|
}, [d, n]), !n)
|
|
180
152
|
return null;
|
|
181
|
-
const
|
|
182
|
-
return /* @__PURE__ */
|
|
183
|
-
|
|
153
|
+
const _ = _e(t), C = n.getUnitId();
|
|
154
|
+
return /* @__PURE__ */ ke(
|
|
155
|
+
Ee,
|
|
184
156
|
{
|
|
185
|
-
unitId:
|
|
157
|
+
unitId: C,
|
|
186
158
|
subUnitId$: i,
|
|
187
159
|
type: S.UNIVER_DOC,
|
|
188
160
|
onAdd: () => {
|
|
189
|
-
d.executeCommand(
|
|
161
|
+
d.executeCommand(W.id);
|
|
190
162
|
},
|
|
191
163
|
getSubUnitName: () => "",
|
|
192
|
-
disableAdd:
|
|
193
|
-
tempComment:
|
|
194
|
-
onAddComment: (
|
|
195
|
-
if (!
|
|
196
|
-
const
|
|
197
|
-
unitId:
|
|
198
|
-
range:
|
|
199
|
-
comment:
|
|
164
|
+
disableAdd: _,
|
|
165
|
+
tempComment: f,
|
|
166
|
+
onAddComment: (c) => {
|
|
167
|
+
if (!c.parentId) {
|
|
168
|
+
const m = {
|
|
169
|
+
unitId: C,
|
|
170
|
+
range: f,
|
|
171
|
+
comment: c
|
|
200
172
|
};
|
|
201
|
-
return d.executeCommand(
|
|
173
|
+
return d.executeCommand(he.id, m), l.endAdd(), !1;
|
|
202
174
|
}
|
|
203
175
|
return !0;
|
|
204
176
|
},
|
|
205
|
-
onDeleteComment: (
|
|
206
|
-
if (!
|
|
207
|
-
const
|
|
208
|
-
unitId:
|
|
209
|
-
commentId:
|
|
177
|
+
onDeleteComment: (c) => {
|
|
178
|
+
if (!c.parentId) {
|
|
179
|
+
const m = {
|
|
180
|
+
unitId: C,
|
|
181
|
+
commentId: c.id
|
|
210
182
|
};
|
|
211
|
-
return d.executeCommand(
|
|
183
|
+
return d.executeCommand(Ce.id, m), !1;
|
|
212
184
|
}
|
|
213
185
|
return !0;
|
|
214
186
|
},
|
|
215
|
-
showComments:
|
|
187
|
+
showComments: a
|
|
216
188
|
}
|
|
217
189
|
);
|
|
218
190
|
};
|
|
219
191
|
y.componentKey = "univer.doc.thread-comment-panel";
|
|
220
|
-
const
|
|
192
|
+
const w = {
|
|
221
193
|
id: "docs.operation.show-comment-panel",
|
|
222
|
-
type:
|
|
194
|
+
type: E.OPERATION,
|
|
223
195
|
handler(e, t) {
|
|
224
196
|
var i;
|
|
225
|
-
const r = e.get(
|
|
197
|
+
const r = e.get(U), n = e.get(L);
|
|
226
198
|
return (!r.panelVisible || ((i = n.options.children) == null ? void 0 : i.label) !== y.componentKey) && (n.open({
|
|
227
199
|
header: { title: "threadCommentUI.panel.title" },
|
|
228
200
|
children: { label: y.componentKey },
|
|
@@ -230,12 +202,12 @@ const A = {
|
|
|
230
202
|
onClose: () => r.setPanelVisible(!1)
|
|
231
203
|
}), r.setPanelVisible(!0)), t && r.setActiveComment(t == null ? void 0 : t.activeComment), !0;
|
|
232
204
|
}
|
|
233
|
-
},
|
|
205
|
+
}, X = {
|
|
234
206
|
id: "docs.operation.toggle-comment-panel",
|
|
235
|
-
type:
|
|
207
|
+
type: E.OPERATION,
|
|
236
208
|
handler(e) {
|
|
237
209
|
var n;
|
|
238
|
-
const t = e.get(
|
|
210
|
+
const t = e.get(U), r = e.get(L);
|
|
239
211
|
return !t.panelVisible || ((n = r.options.children) == null ? void 0 : n.label) !== y.componentKey ? (r.open({
|
|
240
212
|
header: { title: "threadCommentUI.panel.title" },
|
|
241
213
|
children: { label: y.componentKey },
|
|
@@ -243,47 +215,47 @@ const A = {
|
|
|
243
215
|
onClose: () => t.setPanelVisible(!1)
|
|
244
216
|
}), t.setPanelVisible(!0)) : (r.close(), t.setPanelVisible(!1), t.setActiveComment(null)), !0;
|
|
245
217
|
}
|
|
246
|
-
},
|
|
218
|
+
}, W = {
|
|
247
219
|
id: "docs.operation.start-add-comment",
|
|
248
|
-
type:
|
|
220
|
+
type: E.OPERATION,
|
|
249
221
|
handler(e) {
|
|
250
|
-
var
|
|
251
|
-
const t = e.get(
|
|
252
|
-
if (!n || !
|
|
222
|
+
var u, O, R;
|
|
223
|
+
const t = e.get(U), n = e.get(B).getCurrentUnitForType(S.UNIVER_DOC), i = e.get(H), o = e.get(F), s = e.get(Te), d = e.get(x), l = e.get(M), f = e.get(L), a = i.getActiveTextRange();
|
|
224
|
+
if (!n || !a)
|
|
253
225
|
return !1;
|
|
254
|
-
const
|
|
255
|
-
if (
|
|
256
|
-
return t.panelVisible ? (t.setPanelVisible(!1),
|
|
257
|
-
|
|
258
|
-
const
|
|
259
|
-
unitId:
|
|
260
|
-
subUnitId:
|
|
261
|
-
id:
|
|
262
|
-
ref:
|
|
263
|
-
dT:
|
|
226
|
+
const h = (u = o.getRenderById(n.getUnitId())) == null ? void 0 : u.with(Fe);
|
|
227
|
+
if (h == null || h.setReserveRangesStatus(!0), a.collapsed)
|
|
228
|
+
return t.panelVisible ? (t.setPanelVisible(!1), f.close()) : l.executeCommand(w.id), !0;
|
|
229
|
+
l.executeCommand(w.id);
|
|
230
|
+
const _ = n.getUnitId(), C = ((R = (O = n.getBody()) == null ? void 0 : O.dataStream) != null ? R : "").slice(a.startOffset, a.endOffset), c = xe.transform.getPlainText(C), m = I, p = "", b = {
|
|
231
|
+
unitId: _,
|
|
232
|
+
subUnitId: m,
|
|
233
|
+
id: p,
|
|
234
|
+
ref: c,
|
|
235
|
+
dT: Ge(),
|
|
264
236
|
personId: s.getCurrentUser().userID,
|
|
265
237
|
text: {
|
|
266
238
|
dataStream: `\r
|
|
267
239
|
`
|
|
268
240
|
},
|
|
269
|
-
startOffset:
|
|
270
|
-
endOffset:
|
|
241
|
+
startOffset: a.startOffset,
|
|
242
|
+
endOffset: a.endOffset,
|
|
271
243
|
collapsed: !0,
|
|
272
|
-
threadId:
|
|
244
|
+
threadId: p
|
|
273
245
|
};
|
|
274
|
-
return
|
|
275
|
-
unitId:
|
|
276
|
-
subUnitId:
|
|
277
|
-
commentId:
|
|
246
|
+
return h == null || h.blur(), d.startAdd(b), t.setActiveComment({
|
|
247
|
+
unitId: _,
|
|
248
|
+
subUnitId: m,
|
|
249
|
+
commentId: p
|
|
278
250
|
}), !0;
|
|
279
251
|
}
|
|
280
252
|
};
|
|
281
|
-
var
|
|
282
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
253
|
+
var mt = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, ut = (e, t, r, n) => {
|
|
254
|
+
for (var i = n > 1 ? void 0 : n ? lt(t, r) : t, o = e.length - 1, s; o >= 0; o--)
|
|
283
255
|
(s = e[o]) && (i = (n ? s(t, r, i) : s(i)) || i);
|
|
284
|
-
return n && i &&
|
|
285
|
-
},
|
|
286
|
-
let
|
|
256
|
+
return n && i && mt(t, r, i), i;
|
|
257
|
+
}, D = (e, t) => (r, n) => t(r, n, e);
|
|
258
|
+
let N = class extends j {
|
|
287
259
|
constructor(e, t, r, n, i, o) {
|
|
288
260
|
super(), this._threadCommentPanelService = e, this._univerInstanceService = t, this._commandService = r, this._docThreadCommentService = n, this._renderManagerService = i, this._threadCommentModel = o, this._initSelectionChange(), this._initActiveCommandChange();
|
|
289
261
|
}
|
|
@@ -292,22 +264,22 @@ let $ = class extends B {
|
|
|
292
264
|
this.disposeWithMe(
|
|
293
265
|
this._commandService.onCommandExecuted((t) => {
|
|
294
266
|
var r, n, i, o;
|
|
295
|
-
if (t.id ===
|
|
296
|
-
const s = t.params, { unitId: d, ranges:
|
|
297
|
-
if (
|
|
298
|
-
const
|
|
299
|
-
if ((e == null ? void 0 : e.startOffset) === (
|
|
267
|
+
if (t.id === Ne.id) {
|
|
268
|
+
const s = t.params, { unitId: d, ranges: l } = s;
|
|
269
|
+
if (ie(d)) return;
|
|
270
|
+
const f = this._univerInstanceService.getUnit(d, S.UNIVER_DOC), a = l[0];
|
|
271
|
+
if ((e == null ? void 0 : e.startOffset) === (a == null ? void 0 : a.startOffset) && (e == null ? void 0 : e.endOffset) === (a == null ? void 0 : a.endOffset))
|
|
300
272
|
return;
|
|
301
|
-
if (e =
|
|
302
|
-
const { startOffset:
|
|
303
|
-
let
|
|
304
|
-
if (
|
|
305
|
-
const
|
|
306
|
-
|
|
273
|
+
if (e = a, a && f) {
|
|
274
|
+
const { startOffset: h, endOffset: _, collapsed: C } = a;
|
|
275
|
+
let c;
|
|
276
|
+
if (C ? c = (n = (r = f.getBody()) == null ? void 0 : r.customDecorations) == null ? void 0 : n.find((m) => m.startIndex <= h && m.endIndex >= _ - 1) : c = (o = (i = f.getBody()) == null ? void 0 : i.customDecorations) == null ? void 0 : o.find((m) => m.startIndex <= h && m.endIndex >= _ - 1), c) {
|
|
277
|
+
const m = this._threadCommentModel.getComment(d, I, c.id);
|
|
278
|
+
m && !m.resolved && this._commandService.executeCommand(w.id, {
|
|
307
279
|
activeComment: {
|
|
308
280
|
unitId: d,
|
|
309
281
|
subUnitId: I,
|
|
310
|
-
commentId:
|
|
282
|
+
commentId: c.id
|
|
311
283
|
}
|
|
312
284
|
});
|
|
313
285
|
return;
|
|
@@ -315,7 +287,7 @@ let $ = class extends B {
|
|
|
315
287
|
}
|
|
316
288
|
if (!this._threadCommentPanelService.activeCommentId)
|
|
317
289
|
return;
|
|
318
|
-
this._commandService.executeCommand(
|
|
290
|
+
this._commandService.executeCommand(oe.id);
|
|
319
291
|
}
|
|
320
292
|
})
|
|
321
293
|
);
|
|
@@ -326,7 +298,7 @@ let $ = class extends B {
|
|
|
326
298
|
if (e) {
|
|
327
299
|
const o = this._univerInstanceService.getUnit(e.unitId);
|
|
328
300
|
if (o) {
|
|
329
|
-
const s = (t = this._renderManagerService.getRenderById(e.unitId)) == null ? void 0 : t.with(
|
|
301
|
+
const s = (t = this._renderManagerService.getRenderById(e.unitId)) == null ? void 0 : t.with(He), d = (n = (r = o.getBody()) == null ? void 0 : r.customDecorations) == null ? void 0 : n.find((l) => l.id === e.commentId);
|
|
330
302
|
d && s && s.scrollToRange({
|
|
331
303
|
startOffset: d.startIndex,
|
|
332
304
|
endOffset: d.endIndex,
|
|
@@ -338,40 +310,40 @@ let $ = class extends B {
|
|
|
338
310
|
}));
|
|
339
311
|
}
|
|
340
312
|
};
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
],
|
|
349
|
-
var
|
|
350
|
-
return
|
|
313
|
+
N = ut([
|
|
314
|
+
D(0, v(U)),
|
|
315
|
+
D(1, B),
|
|
316
|
+
D(2, M),
|
|
317
|
+
D(3, v(x)),
|
|
318
|
+
D(4, F),
|
|
319
|
+
D(5, v(de))
|
|
320
|
+
], N);
|
|
321
|
+
var g = function() {
|
|
322
|
+
return g = Object.assign || function(e) {
|
|
351
323
|
for (var t, r = 1, n = arguments.length; r < n; r++) {
|
|
352
324
|
t = arguments[r];
|
|
353
325
|
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
354
326
|
}
|
|
355
327
|
return e;
|
|
356
|
-
},
|
|
357
|
-
},
|
|
328
|
+
}, g.apply(this, arguments);
|
|
329
|
+
}, ft = function(e, t) {
|
|
358
330
|
var r = {};
|
|
359
331
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
360
332
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
361
333
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
362
334
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
363
335
|
return r;
|
|
364
|
-
},
|
|
365
|
-
var r = e.icon, n = e.id, i = e.className, o = e.extend, s =
|
|
366
|
-
return
|
|
336
|
+
}, ge = ue(function(e, t) {
|
|
337
|
+
var r = e.icon, n = e.id, i = e.className, o = e.extend, s = ft(e, ["icon", "id", "className", "extend"]), d = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), l = nt("_".concat(_t()));
|
|
338
|
+
return ve(r, "".concat(n), { defIds: r.defIds, idSuffix: l.current }, g({ ref: t, className: d }, s), o);
|
|
367
339
|
});
|
|
368
|
-
function
|
|
369
|
-
return
|
|
370
|
-
return
|
|
340
|
+
function ve(e, t, r, n, i) {
|
|
341
|
+
return fe(e.tag, g(g({ key: t }, ht(e, r, i)), n), (Ct(e, r).children || []).map(function(o, s) {
|
|
342
|
+
return ve(o, "".concat(t, "-").concat(e.tag, "-").concat(s), r, void 0, i);
|
|
371
343
|
}));
|
|
372
344
|
}
|
|
373
|
-
function
|
|
374
|
-
var n =
|
|
345
|
+
function ht(e, t, r) {
|
|
346
|
+
var n = g({}, e.attrs);
|
|
375
347
|
r != null && r.colorChannel1 && n.fill === "colorChannel1" && (n.fill = r.colorChannel1);
|
|
376
348
|
var i = t.defIds;
|
|
377
349
|
return !i || i.length === 0 || (e.tag === "use" && n["xlink:href"] && (n["xlink:href"] = n["xlink:href"] + t.idSuffix), Object.entries(n).forEach(function(o) {
|
|
@@ -379,80 +351,80 @@ function St(e, t, r) {
|
|
|
379
351
|
typeof d == "string" && (n[s] = d.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
|
|
380
352
|
})), n;
|
|
381
353
|
}
|
|
382
|
-
function
|
|
354
|
+
function Ct(e, t) {
|
|
383
355
|
var r, n = t.defIds;
|
|
384
|
-
return !n || n.length === 0 ? e : e.tag === "defs" && (!((r = e.children) === null || r === void 0) && r.length) ?
|
|
385
|
-
return typeof i.attrs.id == "string" && n && n.indexOf(i.attrs.id) > -1 ?
|
|
356
|
+
return !n || n.length === 0 ? e : e.tag === "defs" && (!((r = e.children) === null || r === void 0) && r.length) ? g(g({}, e), { children: e.children.map(function(i) {
|
|
357
|
+
return typeof i.attrs.id == "string" && n && n.indexOf(i.attrs.id) > -1 ? g(g({}, i), { attrs: g(g({}, i.attrs), { id: i.attrs.id + t.idSuffix }) }) : i;
|
|
386
358
|
}) }) : e;
|
|
387
359
|
}
|
|
388
|
-
function
|
|
360
|
+
function _t() {
|
|
389
361
|
return Math.random().toString(36).substring(2, 8);
|
|
390
362
|
}
|
|
391
|
-
|
|
392
|
-
var
|
|
393
|
-
return
|
|
363
|
+
ge.displayName = "UniverIcon";
|
|
364
|
+
var gt = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 17", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.83725 6.78345C6.22188 6.78345 6.53368 7.10742 6.53368 7.50706V8.41159C6.53368 8.81123 6.22188 9.13521 5.83725 9.13521C5.45263 9.13521 5.14082 8.81123 5.14082 8.41159V7.50706C5.14082 7.10742 5.45263 6.78345 5.83725 6.78345ZM8.73904 6.78345C9.12366 6.78345 9.43546 7.10742 9.43546 7.50706V8.41159C9.43546 8.81123 9.12366 9.13521 8.73904 9.13521C8.35441 9.13521 8.04261 8.81123 8.04261 8.41159V7.50706C8.04261 7.10742 8.35441 6.78345 8.73904 6.78345ZM11.6408 6.78345C12.0254 6.78345 12.3372 7.10742 12.3372 7.50706V8.41159C12.3372 8.81123 12.0254 9.13521 11.6408 9.13521C11.2562 9.13521 10.9444 8.81123 10.9444 8.41159V7.50706C10.9444 7.10742 11.2562 6.78345 11.6408 6.78345Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.83725 6.78345C6.22188 6.78345 6.53368 7.10742 6.53368 7.50706V8.41159C6.53368 8.81123 6.22188 9.13521 5.83725 9.13521 5.45263 9.13521 5.14082 8.81123 5.14082 8.41159V7.50706C5.14082 7.10742 5.45263 6.78345 5.83725 6.78345zM8.73904 6.78345C9.12366 6.78345 9.43546 7.10742 9.43546 7.50706V8.41159C9.43546 8.81123 9.12366 9.13521 8.73904 9.13521 8.35441 9.13521 8.04261 8.81123 8.04261 8.41159V7.50706C8.04261 7.10742 8.35441 6.78345 8.73904 6.78345zM11.6408 6.78345C12.0254 6.78345 12.3372 7.10742 12.3372 7.50706V8.41159C12.3372 8.81123 12.0254 9.13521 11.6408 9.13521 11.2562 9.13521 10.9444 8.81123 10.9444 8.41159V7.50706C10.9444 7.10742 11.2562 6.78345 11.6408 6.78345z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.84351 3.41861C1.84351 3.01861 2.15531 2.69434 2.53993 2.69434H14.9381C15.3228 2.69434 15.6346 3.01861 15.6346 3.41861V12.4611C15.6346 12.8612 15.3228 13.1854 14.9381 13.1854H8.82117L6.06643 14.6179C5.85054 14.7301 5.59416 14.7181 5.38884 14.5862C5.18352 14.4542 5.05855 14.2211 5.05855 13.9701V13.1854H2.53993C2.15531 13.1854 1.84351 12.8612 1.84351 12.4611L1.84351 3.41861ZM6.45141 12.7982L8.34531 12.0135C8.44201 11.9632 8.54864 11.9371 8.65676 11.9371H14.2417C14.3522 11.9371 14.4417 11.8475 14.4417 11.7371V4.14271C14.4417 4.03225 14.3522 3.94271 14.2417 3.94271H3.23636C3.12591 3.94271 3.03636 4.03225 3.03636 4.14271L3.03636 11.7371C3.03636 11.8475 3.12591 11.9371 3.23636 11.9371L5.75498 11.9371C6.1396 11.9371 6.45141 12.0611 6.45141 12.4611V12.7982Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, pe = ue(function(e, t) {
|
|
365
|
+
return fe(ge, Object.assign({}, e, {
|
|
394
366
|
id: "comment-single",
|
|
395
367
|
ref: t,
|
|
396
|
-
icon:
|
|
368
|
+
icon: gt
|
|
397
369
|
}));
|
|
398
370
|
});
|
|
399
|
-
|
|
400
|
-
const
|
|
401
|
-
[
|
|
402
|
-
[
|
|
371
|
+
pe.displayName = "CommentSingle";
|
|
372
|
+
const vt = {
|
|
373
|
+
[Ze.OTHERS]: {
|
|
374
|
+
[X.id]: {
|
|
403
375
|
order: 1,
|
|
404
|
-
menuItemFactory:
|
|
376
|
+
menuItemFactory: at
|
|
405
377
|
}
|
|
406
378
|
},
|
|
407
|
-
[
|
|
408
|
-
[
|
|
409
|
-
[
|
|
379
|
+
[ze.MAIN_AREA]: {
|
|
380
|
+
[Je.DATA]: {
|
|
381
|
+
[W.id]: {
|
|
410
382
|
order: 1,
|
|
411
|
-
menuItemFactory:
|
|
383
|
+
menuItemFactory: ct
|
|
412
384
|
}
|
|
413
385
|
}
|
|
414
386
|
}
|
|
415
387
|
};
|
|
416
|
-
var
|
|
417
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
388
|
+
var pt = Object.defineProperty, It = Object.getOwnPropertyDescriptor, St = (e, t, r, n) => {
|
|
389
|
+
for (var i = n > 1 ? void 0 : n ? It(t, r) : t, o = e.length - 1, s; o >= 0; o--)
|
|
418
390
|
(s = e[o]) && (i = (n ? s(t, r, i) : s(i)) || i);
|
|
419
|
-
return n && i &&
|
|
420
|
-
},
|
|
421
|
-
let V = class extends
|
|
391
|
+
return n && i && pt(t, r, i), i;
|
|
392
|
+
}, J = (e, t) => (r, n) => t(r, n, e);
|
|
393
|
+
let V = class extends j {
|
|
422
394
|
constructor(e, t, r) {
|
|
423
395
|
super(), this._commandService = e, this._menuManagerService = t, this._componentManager = r, this._initCommands(), this._initMenus(), this._initComponents();
|
|
424
396
|
}
|
|
425
397
|
_initCommands() {
|
|
426
398
|
[
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
399
|
+
he,
|
|
400
|
+
Ce,
|
|
401
|
+
w,
|
|
402
|
+
W,
|
|
403
|
+
X
|
|
432
404
|
].forEach((e) => {
|
|
433
405
|
this.disposeWithMe(this._commandService.registerCommand(e));
|
|
434
406
|
});
|
|
435
407
|
}
|
|
436
408
|
_initMenus() {
|
|
437
|
-
this._menuManagerService.mergeMenu(
|
|
409
|
+
this._menuManagerService.mergeMenu(vt);
|
|
438
410
|
}
|
|
439
411
|
_initComponents() {
|
|
440
412
|
[y].forEach((e) => {
|
|
441
413
|
this.disposeWithMe(this._componentManager.register(e.componentKey, e));
|
|
442
|
-
}), this.disposeWithMe(this._componentManager.register("CommentSingle",
|
|
414
|
+
}), this.disposeWithMe(this._componentManager.register("CommentSingle", pe));
|
|
443
415
|
}
|
|
444
416
|
};
|
|
445
|
-
V =
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
417
|
+
V = St([
|
|
418
|
+
J(0, M),
|
|
419
|
+
J(1, Ye),
|
|
420
|
+
J(2, v(qe))
|
|
449
421
|
], V);
|
|
450
|
-
var
|
|
451
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
422
|
+
var Ot = Object.defineProperty, Mt = Object.getOwnPropertyDescriptor, bt = (e, t, r, n) => {
|
|
423
|
+
for (var i = n > 1 ? void 0 : n ? Mt(t, r) : t, o = e.length - 1, s; o >= 0; o--)
|
|
452
424
|
(s = e[o]) && (i = (n ? s(t, r, i) : s(i)) || i);
|
|
453
|
-
return n && i &&
|
|
454
|
-
},
|
|
455
|
-
let
|
|
425
|
+
return n && i && Ot(t, r, i), i;
|
|
426
|
+
}, T = (e, t) => (r, n) => t(r, n, e);
|
|
427
|
+
let Q = class extends j {
|
|
456
428
|
constructor(e, t, r, n, i, o, s) {
|
|
457
429
|
super(), this._context = e, this._docInterceptorService = t, this._threadCommentPanelService = r, this._docRenderController = n, this._univerInstanceService = i, this._threadCommentModel = o, this._commandService = s, this._interceptorViewModel(), this._initReRender(), this._initSyncComments();
|
|
458
430
|
}
|
|
@@ -470,105 +442,105 @@ let k = class extends B {
|
|
|
470
442
|
}));
|
|
471
443
|
}
|
|
472
444
|
_interceptorViewModel() {
|
|
473
|
-
this._docInterceptorService.intercept(
|
|
445
|
+
this._docInterceptorService.intercept($e.CUSTOM_DECORATION, {
|
|
474
446
|
handler: (e, t, r) => {
|
|
475
447
|
if (!e)
|
|
476
448
|
return r(e);
|
|
477
|
-
const { unitId: n, index: i, customDecorations: o } = t, s = this._threadCommentPanelService.activeCommentId, { commentId: d, unitId:
|
|
478
|
-
if (!
|
|
449
|
+
const { unitId: n, index: i, customDecorations: o } = t, s = this._threadCommentPanelService.activeCommentId, { commentId: d, unitId: l } = s || {}, f = o.find((C) => C.id === d), a = this._threadCommentModel.getComment(n, I, e.id);
|
|
450
|
+
if (!a)
|
|
479
451
|
return r({
|
|
480
452
|
...e,
|
|
481
453
|
show: !1
|
|
482
454
|
});
|
|
483
|
-
const
|
|
455
|
+
const h = f && i >= f.startIndex && i <= f.endIndex, _ = l === n && e.id === d;
|
|
484
456
|
return r({
|
|
485
457
|
...e,
|
|
486
|
-
active:
|
|
487
|
-
show: !
|
|
458
|
+
active: _ || h,
|
|
459
|
+
show: !a.resolved
|
|
488
460
|
});
|
|
489
461
|
}
|
|
490
462
|
});
|
|
491
463
|
}
|
|
492
464
|
_initSyncComments() {
|
|
493
465
|
var i, o, s;
|
|
494
|
-
const e = this._context.unit.getUnitId(), t = I, r = (s = (o = (i = this._context.unit.getBody()) == null ? void 0 : i.customDecorations) == null ? void 0 : o.filter((d) => d.type ===
|
|
466
|
+
const e = this._context.unit.getUnitId(), t = I, r = (s = (o = (i = this._context.unit.getBody()) == null ? void 0 : i.customDecorations) == null ? void 0 : o.filter((d) => d.type === Y.COMMENT).map((d) => d.id)) != null ? s : [];
|
|
495
467
|
r.forEach((d) => {
|
|
496
468
|
this._threadCommentModel.getComment(e, t, d) || this._threadCommentModel.addComment(e, t, { id: d, threadId: d, ref: "", dT: "", personId: "", text: { dataStream: "" }, unitId: e, subUnitId: t });
|
|
497
469
|
}), r.length && this._threadCommentModel.syncThreadComments(this._context.unit.getUnitId(), I, r);
|
|
498
470
|
let n = r.sort();
|
|
499
471
|
this.disposeWithMe(this._commandService.onCommandExecuted((d) => {
|
|
500
|
-
var
|
|
501
|
-
if (d.id ===
|
|
472
|
+
var l, f, a;
|
|
473
|
+
if (d.id === se.id) {
|
|
502
474
|
if (d.params.unitId !== this._context.unit.getUnitId())
|
|
503
475
|
return;
|
|
504
|
-
const
|
|
505
|
-
if (JSON.stringify(n) !== JSON.stringify(
|
|
506
|
-
const
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
}), n.forEach((
|
|
510
|
-
|
|
511
|
-
}), n =
|
|
512
|
-
this._threadCommentModel.getComment(e, t,
|
|
513
|
-
}), this._threadCommentModel.syncThreadComments(e, t, [...
|
|
476
|
+
const _ = (a = (f = (l = this._context.unit.getBody()) == null ? void 0 : l.customDecorations) == null ? void 0 : f.filter((c) => c.type === Y.COMMENT).map((c) => c.id)) != null ? a : [], C = _.sort();
|
|
477
|
+
if (JSON.stringify(n) !== JSON.stringify(C)) {
|
|
478
|
+
const c = new Set(n), m = new Set(C), p = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Set();
|
|
479
|
+
_.forEach((u) => {
|
|
480
|
+
c.has(u) || p.add(u);
|
|
481
|
+
}), n.forEach((u) => {
|
|
482
|
+
m.has(u) || b.add(u);
|
|
483
|
+
}), n = C, p.forEach((u) => {
|
|
484
|
+
this._threadCommentModel.getComment(e, t, u) || this._threadCommentModel.addComment(e, t, { id: u, threadId: u, ref: "", dT: "", personId: "", text: { dataStream: "" }, unitId: e, subUnitId: t });
|
|
485
|
+
}), this._threadCommentModel.syncThreadComments(e, t, [...p]);
|
|
514
486
|
}
|
|
515
487
|
}
|
|
516
488
|
}));
|
|
517
489
|
}
|
|
518
490
|
};
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
],
|
|
527
|
-
var
|
|
528
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
491
|
+
Q = bt([
|
|
492
|
+
T(1, v(Ve)),
|
|
493
|
+
T(2, v(U)),
|
|
494
|
+
T(3, v(Le)),
|
|
495
|
+
T(4, B),
|
|
496
|
+
T(5, v(de)),
|
|
497
|
+
T(6, M)
|
|
498
|
+
], Q);
|
|
499
|
+
var Ie = Object.defineProperty, Dt = Object.getOwnPropertyDescriptor, Tt = (e, t, r) => t in e ? Ie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xt = (e, t, r, n) => {
|
|
500
|
+
for (var i = n > 1 ? void 0 : n ? Dt(t, r) : t, o = e.length - 1, s; o >= 0; o--)
|
|
529
501
|
(s = e[o]) && (i = (n ? s(t, r, i) : s(i)) || i);
|
|
530
|
-
return n && i &&
|
|
531
|
-
},
|
|
532
|
-
let
|
|
533
|
-
constructor(e =
|
|
502
|
+
return n && i && Ie(t, r, i), i;
|
|
503
|
+
}, q = (e, t) => (r, n) => t(r, n, e), Se = (e, t, r) => Tt(e, typeof t != "symbol" ? t + "" : t, r);
|
|
504
|
+
let $ = class extends Ue {
|
|
505
|
+
constructor(e = ee, t, r, n) {
|
|
534
506
|
super(), this._config = e, this._injector = t, this._renderManagerSrv = r, this._configService = n;
|
|
535
|
-
const { menu: i, ...o } =
|
|
507
|
+
const { menu: i, ...o } = Re(
|
|
536
508
|
{},
|
|
537
|
-
|
|
509
|
+
ee,
|
|
538
510
|
this._config
|
|
539
511
|
);
|
|
540
|
-
i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(
|
|
512
|
+
i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(it, o);
|
|
541
513
|
}
|
|
542
514
|
onStarting() {
|
|
543
515
|
[
|
|
544
516
|
[V],
|
|
545
|
-
[
|
|
546
|
-
[
|
|
517
|
+
[N],
|
|
518
|
+
[x]
|
|
547
519
|
].forEach((e) => {
|
|
548
520
|
this._injector.add(e);
|
|
549
521
|
});
|
|
550
522
|
}
|
|
551
523
|
onRendered() {
|
|
552
|
-
this._initRenderModule(), this._injector.get(
|
|
524
|
+
this._initRenderModule(), this._injector.get(N), this._injector.get(V);
|
|
553
525
|
}
|
|
554
526
|
_initRenderModule() {
|
|
555
|
-
[
|
|
527
|
+
[Q].forEach((e) => {
|
|
556
528
|
this._renderManagerSrv.registerRenderModule(S.UNIVER_DOC, e);
|
|
557
529
|
});
|
|
558
530
|
}
|
|
559
531
|
};
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
],
|
|
532
|
+
Se($, "pluginName", rt);
|
|
533
|
+
Se($, "type", S.UNIVER_DOC);
|
|
534
|
+
$ = xt([
|
|
535
|
+
ye(Ae),
|
|
536
|
+
q(1, v(re)),
|
|
537
|
+
q(2, F),
|
|
538
|
+
q(3, Pe)
|
|
539
|
+
], $);
|
|
568
540
|
export {
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
541
|
+
he as AddDocCommentComment,
|
|
542
|
+
Ce as DeleteDocCommentComment,
|
|
543
|
+
w as ShowCommentPanelOperation,
|
|
544
|
+
W as StartAddCommentOperation,
|
|
545
|
+
$ as UniverDocsThreadCommentUIPlugin
|
|
574
546
|
};
|