@univerjs/docs-hyper-link-ui 0.16.1 → 0.17.0

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/index.js CHANGED
@@ -1,27 +1,30 @@
1
- var Ue = Object.defineProperty;
2
- var Te = (n, e, t) => e in n ? Ue(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var L = (n, e, t) => Te(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { CommandType as P, ICommandService as x, generateRandomId as He, CustomRangeType as b, IUniverInstanceService as k, UniverInstanceType as I, getBodySlice as Ce, LocaleService as Se, Tools as je, BuildTextUtils as ge, Inject as m, Disposable as D, DOCS_ZEN_EDITOR_UNIT_ID_KEY as Ae, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Ke, DependentOn as Fe, Injector as Be, IConfigService as Ve, Plugin as Ze, merge as Ye } from "@univerjs/core";
5
- import { UniverDocsHyperLinkPlugin as We } from "@univerjs/docs-hyper-link";
6
- import { IRenderManagerService as Ge } from "@univerjs/engine-render";
7
- import { addCustomRangeBySelectionFactory as ze, DocSelectionManagerService as R, replaceSelectionFactory as qe, deleteCustomRangeFactory as Je, SetTextSelectionsOperation as Qe, DocSkeletonManagerService as Xe, DocInterceptorService as en, DOC_INTERCEPTOR_POINT as nn } from "@univerjs/docs";
8
- import { DocCanvasPopManagerService as tn, DocEventManagerService as rn, DocRenderController as on, whenDocAndEditorFocused as sn } from "@univerjs/docs-ui";
9
- import { BehaviorSubject as he, distinctUntilChanged as cn, pairwise as dn, Observable as an, debounceTime as ln } from "rxjs";
1
+ var Te = Object.defineProperty;
2
+ var He = (n, e, t) => e in n ? Te(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var L = (n, e, t) => He(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { CommandType as R, ICommandService as x, generateRandomId as je, CustomRangeType as D, IUniverInstanceService as k, UniverInstanceType as I, getBodySlice as Se, LocaleService as ye, Tools as Ae, BuildTextUtils as he, Inject as m, Disposable as E, DOCS_ZEN_EDITOR_UNIT_ID_KEY as Ke, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Fe, DependentOn as Be, Injector as Ve, IConfigService as Ze, Plugin as Ye, merge as We } from "@univerjs/core";
5
+ import { UniverDocsHyperLinkPlugin as Ge } from "@univerjs/docs-hyper-link";
6
+ import { IRenderManagerService as ze } from "@univerjs/engine-render";
7
+ import { addCustomRangeBySelectionFactory as qe, DocSelectionManagerService as M, replaceSelectionFactory as Je, deleteCustomRangeFactory as Qe, SetTextSelectionsOperation as Xe, DocSkeletonManagerService as en, DocInterceptorService as nn, DOC_INTERCEPTOR_POINT as tn } from "@univerjs/docs";
8
+ import { DocCanvasPopManagerService as rn, DocEventManagerService as on, DocRenderController as sn, whenDocAndEditorFocused as cn } from "@univerjs/docs-ui";
9
+ import { BehaviorSubject as ve, distinctUntilChanged as dn, pairwise as an, Observable as ln, debounceTime as un } from "rxjs";
10
10
  import { jsxs as O, jsx as h } from "react/jsx-runtime";
11
- import { clsx as ye, FormLayout as ve, Input as fe, Button as me, borderClassName as xe, Tooltip as H, MessageType as un } from "@univerjs/design";
12
- import { useDependency as C, useObservable as ke, KeyCode as Q, IMessageService as pn, MetaKeys as gn, getMenuHiddenObservable as hn, MenuItemType as vn, ContextMenuPosition as fn, ContextMenuGroup as mn, RibbonInsertGroup as In, ComponentManager as _n, IMenuManagerService as Cn, IShortcutService as Sn } from "@univerjs/ui";
13
- import { useState as W, useEffect as yn, useRef as xn, createElement as E, forwardRef as Z } from "react";
14
- const kn = "docs-hyper-link-ui.config", Ie = {}, Le = {
15
- type: P.COMMAND,
11
+ import { clsx as xe, FormLayout as fe, Input as me, Button as Ie, borderClassName as ke, Tooltip as j, MessageType as pn } from "@univerjs/design";
12
+ import { useDependency as C, useObservable as Le, KeyCode as X, IMessageService as gn, MetaKeys as hn, getMenuHiddenObservable as vn, MenuItemType as fn, ContextMenuPosition as mn, ContextMenuGroup as In, RibbonInsertGroup as _n, ComponentManager as Cn, IMenuManagerService as Sn, IShortcutService as yn } from "@univerjs/ui";
13
+ import { useState as G, useEffect as xn, useRef as kn, createElement as N, forwardRef as Z } from "react";
14
+ const Ln = "@univerjs/docs-hyper-link-ui", On = "0.17.0", Oe = {
15
+ name: Ln,
16
+ version: On
17
+ }, wn = "docs-hyper-link-ui.config", _e = {}, we = {
18
+ type: R.COMMAND,
16
19
  id: "docs.command.add-hyper-link",
17
20
  async handler(n, e) {
18
21
  if (!e)
19
22
  return !1;
20
- const { payload: t, unitId: i, selections: r } = e, o = n.get(x), s = He(), c = ze(
23
+ const { payload: t, unitId: i, selections: r } = e, o = n.get(x), s = je(), c = qe(
21
24
  n,
22
25
  {
23
26
  rangeId: s,
24
- rangeType: b.HYPERLINK,
27
+ rangeType: D.HYPERLINK,
25
28
  properties: {
26
29
  url: t
27
30
  },
@@ -31,25 +34,25 @@ const kn = "docs-hyper-link-ui.config", Ie = {}, Le = {
31
34
  );
32
35
  return c ? o.syncExecuteCommand(c.id, c.params) : !1;
33
36
  }
34
- }, Oe = {
37
+ }, Pe = {
35
38
  id: "docs.command.update-hyper-link",
36
- type: P.COMMAND,
39
+ type: R.COMMAND,
37
40
  handler(n, e) {
38
41
  var p;
39
42
  if (!e)
40
43
  return !1;
41
- const { unitId: t, payload: i, segmentId: r, linkId: o } = e, s = n.get(x), c = n.get(k), u = n.get(R).getActiveTextRange(), v = c.getUnit(t, I.UNIVER_DOC);
44
+ const { unitId: t, payload: i, segmentId: r, linkId: o } = e, s = n.get(x), c = n.get(k), u = n.get(M).getActiveTextRange(), v = c.getUnit(t, I.UNIVER_DOC);
42
45
  if (!u || !v)
43
46
  return !1;
44
- const g = (p = Ce(v.getSelfOrHeaderFooterModel(r).getBody(), u.startOffset, u.endOffset).textRuns) == null ? void 0 : p[0];
47
+ const g = (p = Se(v.getSelfOrHeaderFooterModel(r).getBody(), u.startOffset, u.endOffset).textRuns) == null ? void 0 : p[0];
45
48
  g && (g.ed = e.label.length + 1);
46
- const d = qe(n, {
49
+ const d = Je(n, {
47
50
  unitId: t,
48
51
  body: {
49
52
  dataStream: `${e.label}`,
50
53
  customRanges: [{
51
54
  rangeId: o,
52
- rangeType: b.HYPERLINK,
55
+ rangeType: D.HYPERLINK,
53
56
  startIndex: 0,
54
57
  endIndex: e.label.length + 1,
55
58
  properties: {
@@ -68,45 +71,45 @@ const kn = "docs-hyper-link-ui.config", Ie = {}, Le = {
68
71
  return d ? s.syncExecuteCommand(d.id, d.params) : !1;
69
72
  }
70
73
  };
71
- function Ln(n) {
74
+ function Pn(n) {
72
75
  return /^[a-zA-Z]+:\/\//.test(n);
73
76
  }
74
- function On(n) {
77
+ function Rn(n) {
75
78
  return /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(n);
76
79
  }
77
- function wn(n) {
78
- return Ln(n) ? n : On(n) ? `mailto://${n}` : `https://${n}`;
80
+ function Mn(n) {
81
+ return Pn(n) ? n : Rn(n) ? `mailto://${n}` : `https://${n}`;
79
82
  }
80
- const A = () => {
81
- const n = C(S), e = C(Se), t = ke(n.editingLink$), i = C(x), r = C(k), o = C(R), [s, c] = W(""), [l, u] = W(""), [v, f] = W(!1), g = je.isLegalUrl(s), d = t ? r.getUnit(t.unitId, I.UNIVER_DOC) : r.getCurrentUnitForType(I.UNIVER_DOC);
82
- yn(() => {
83
- var re, oe, se, ce, de, ae, le, ue, pe;
83
+ const K = () => {
84
+ const n = C(S), e = C(ye), t = Le(n.editingLink$), i = C(x), r = C(k), o = C(M), [s, c] = G(""), [l, u] = G(""), [v, f] = G(!1), g = Ae.isLegalUrl(s), d = t ? r.getUnit(t.unitId, I.UNIVER_DOC) : r.getCurrentUnitForType(I.UNIVER_DOC);
85
+ xn(() => {
86
+ var oe, se, ce, de, ae, le, ue, pe, ge;
84
87
  const a = o.getActiveTextRange();
85
88
  if (!a)
86
89
  return;
87
90
  if (t) {
88
- const U = (re = d == null ? void 0 : d.getSelfOrHeaderFooterModel(t.segmentId)) == null ? void 0 : re.getBody(), T = (oe = U == null ? void 0 : U.customRanges) == null ? void 0 : oe.find((Y) => (t == null ? void 0 : t.linkId) === Y.rangeId && Y.startIndex === t.startIndex && Y.endIndex === t.endIndex);
89
- d && T && (c((ce = (se = T.properties) == null ? void 0 : se.url) != null ? ce : ""), u(ge.transform.getPlainText(Ce(U, T.startIndex, T.endIndex + 1).dataStream)));
91
+ const T = (oe = d == null ? void 0 : d.getSelfOrHeaderFooterModel(t.segmentId)) == null ? void 0 : oe.getBody(), H = (se = T == null ? void 0 : T.customRanges) == null ? void 0 : se.find((W) => (t == null ? void 0 : t.linkId) === W.rangeId && W.startIndex === t.startIndex && W.endIndex === t.endIndex);
92
+ d && H && (c((de = (ce = H.properties) == null ? void 0 : ce.url) != null ? de : ""), u(he.transform.getPlainText(Se(T, H.startIndex, H.endIndex + 1).dataStream)));
90
93
  return;
91
94
  }
92
- const y = (de = d == null ? void 0 : d.getSelfOrHeaderFooterModel(a.segmentId)) == null ? void 0 : de.getBody(), ie = y ? a : null, $ = ie && ((le = ge.customRange.getCustomRangesInterestsWithSelection(ie, (ae = y == null ? void 0 : y.customRanges) != null ? ae : [])) == null ? void 0 : le[0]);
93
- d && $ && c((pe = (ue = $ == null ? void 0 : $.properties) == null ? void 0 : ue.url) != null ? pe : "");
95
+ const y = (ae = d == null ? void 0 : d.getSelfOrHeaderFooterModel(a.segmentId)) == null ? void 0 : ae.getBody(), re = y ? a : null, U = re && ((ue = he.customRange.getCustomRangesInterestsWithSelection(re, (le = y == null ? void 0 : y.customRanges) != null ? le : [])) == null ? void 0 : ue[0]);
96
+ d && U && c((ge = (pe = U == null ? void 0 : U.properties) == null ? void 0 : pe.url) != null ? ge : "");
94
97
  }, [d, t, o, r]);
95
98
  const p = () => {
96
99
  n.hideEditPopup();
97
100
  }, _ = () => {
98
101
  if (f(!0), !g || !d)
99
102
  return;
100
- const a = wn(s);
103
+ const a = Mn(s);
101
104
  if (!t)
102
- i.executeCommand(Le.id, {
105
+ i.executeCommand(we.id, {
103
106
  unitId: d.getUnitId(),
104
107
  payload: a
105
108
  });
106
109
  else {
107
110
  if (!l)
108
111
  return;
109
- i.executeCommand(Oe.id, {
112
+ i.executeCommand(Pe.id, {
110
113
  unitId: d.getUnitId(),
111
114
  payload: a,
112
115
  linkId: t.linkId,
@@ -120,40 +123,40 @@ const A = () => {
120
123
  return /* @__PURE__ */ O(
121
124
  "div",
122
125
  {
123
- className: ye("univer-box-border univer-w-[328px] univer-rounded-xl univer-bg-white univer-px-6 univer-py-5 univer-shadow dark:!univer-bg-gray-900", xe),
126
+ className: xe("univer-box-border univer-w-[328px] univer-rounded-xl univer-bg-white univer-px-6 univer-py-5 univer-shadow dark:!univer-bg-gray-900", ke),
124
127
  children: [
125
128
  /* @__PURE__ */ O("div", { children: [
126
129
  t ? /* @__PURE__ */ h(
127
- ve,
130
+ fe,
128
131
  {
129
132
  label: e.t("docLink.edit.label"),
130
133
  error: v && !l ? e.t("docLink.edit.labelError") : "",
131
134
  children: /* @__PURE__ */ h(
132
- fe,
135
+ me,
133
136
  {
134
137
  value: l,
135
138
  onChange: u,
136
139
  autoFocus: !0,
137
140
  onKeyDown: (a) => {
138
- a.keyCode === Q.ENTER && _();
141
+ a.keyCode === X.ENTER && _();
139
142
  }
140
143
  }
141
144
  )
142
145
  }
143
146
  ) : null,
144
147
  /* @__PURE__ */ h(
145
- ve,
148
+ fe,
146
149
  {
147
150
  label: e.t("docLink.edit.address"),
148
151
  error: v && !g ? e.t("docLink.edit.addressError") : "",
149
152
  children: /* @__PURE__ */ h(
150
- fe,
153
+ me,
151
154
  {
152
155
  value: s,
153
156
  onChange: c,
154
157
  autoFocus: !0,
155
158
  onKeyDown: (a) => {
156
- a.keyCode === Q.ENTER && _();
159
+ a.keyCode === X.ENTER && _();
157
160
  }
158
161
  }
159
162
  )
@@ -161,9 +164,9 @@ const A = () => {
161
164
  )
162
165
  ] }),
163
166
  /* @__PURE__ */ O("div", { className: "univer-flex univer-justify-end univer-gap-3", children: [
164
- /* @__PURE__ */ h(me, { onClick: p, children: e.t("docLink.edit.cancel") }),
167
+ /* @__PURE__ */ h(Ie, { onClick: p, children: e.t("docLink.edit.cancel") }),
165
168
  /* @__PURE__ */ h(
166
- me,
169
+ Ie,
167
170
  {
168
171
  variant: "primary",
169
172
  disabled: !s,
@@ -176,10 +179,10 @@ const A = () => {
176
179
  }
177
180
  );
178
181
  };
179
- A.componentKey = "docs-hyper-link-edit";
180
- function N({ ref: n, ...e }) {
181
- const { icon: t, id: i, className: r, extend: o, ...s } = e, c = `univerjs-icon univerjs-icon-${i} ${r || ""}`.trim(), l = xn(`_${Mn()}`);
182
- return we(t, `${i}`, {
182
+ K.componentKey = "docs-hyper-link-edit";
183
+ function $({ ref: n, ...e }) {
184
+ const { icon: t, id: i, className: r, extend: o, ...s } = e, c = `univerjs-icon univerjs-icon-${i} ${r || ""}`.trim(), l = kn(`_${En()}`);
185
+ return Re(t, `${i}`, {
183
186
  defIds: t.defIds,
184
187
  idSuffix: l.current
185
188
  }, {
@@ -188,14 +191,14 @@ function N({ ref: n, ...e }) {
188
191
  ...s
189
192
  }, o);
190
193
  }
191
- function we(n, e, t, i, r) {
192
- return E(n.tag, {
194
+ function Re(n, e, t, i, r) {
195
+ return N(n.tag, {
193
196
  key: e,
194
- ...Pn(n, t, r),
197
+ ...bn(n, t, r),
195
198
  ...i
196
- }, (Rn(n, t).children || []).map((o, s) => we(o, `${e}-${n.tag}-${s}`, t, void 0, r)));
199
+ }, (Dn(n, t).children || []).map((o, s) => Re(o, `${e}-${n.tag}-${s}`, t, void 0, r)));
197
200
  }
198
- function Pn(n, e, t) {
201
+ function bn(n, e, t) {
199
202
  const i = { ...n.attrs };
200
203
  t != null && t.colorChannel1 && i.fill === "colorChannel1" && (i.fill = t.colorChannel1), n.tag === "mask" && i.id && (i.id = i.id + e.idSuffix), Object.entries(i).forEach(([o, s]) => {
201
204
  o === "mask" && typeof s == "string" && (i[o] = s.replace(/url\(#(.*)\)/, `url(#$1${e.idSuffix})`));
@@ -205,7 +208,7 @@ function Pn(n, e, t) {
205
208
  typeof s == "string" && (i[o] = s.replace(/url\(#(.*)\)/, `url(#$1${e.idSuffix})`));
206
209
  })), i;
207
210
  }
208
- function Rn(n, e) {
211
+ function Dn(n, e) {
209
212
  var i;
210
213
  const { defIds: t } = e;
211
214
  return !t || t.length === 0 ? n : n.tag === "defs" && ((i = n.children) != null && i.length) ? {
@@ -219,11 +222,11 @@ function Rn(n, e) {
219
222
  } : r)
220
223
  } : n;
221
224
  }
222
- function Mn() {
225
+ function En() {
223
226
  return Math.random().toString(36).substring(2, 8);
224
227
  }
225
- N.displayName = "UniverIcon";
226
- const bn = {
228
+ $.displayName = "UniverIcon";
229
+ const Nn = {
227
230
  tag: "svg",
228
231
  attrs: {
229
232
  xmlns: "http://www.w3.org/2000/svg",
@@ -241,15 +244,15 @@ const bn = {
241
244
  clipRule: "evenodd"
242
245
  }
243
246
  }]
244
- }, Pe = Z(function(e, t) {
245
- return E(N, Object.assign({}, e, {
247
+ }, Me = Z(function(e, t) {
248
+ return N($, Object.assign({}, e, {
246
249
  id: "copy-icon",
247
250
  ref: t,
248
- icon: bn
251
+ icon: Nn
249
252
  }));
250
253
  });
251
- Pe.displayName = "CopyIcon";
252
- const Dn = {
254
+ Me.displayName = "CopyIcon";
255
+ const $n = {
253
256
  tag: "svg",
254
257
  attrs: {
255
258
  xmlns: "http://www.w3.org/2000/svg",
@@ -271,15 +274,15 @@ const Dn = {
271
274
  d: "M4.61426 7.2364C4.85248 6.99818 5.23871 6.99818 5.47693 7.2364C5.71515 7.47462 5.71515 7.86085 5.47693 8.09907L2.83183 10.7442C2.19375 11.3823 2.1915 12.4537 2.87547 13.1377C3.55945 13.8217 4.6309 13.8194 5.26899 13.1813L8.31566 10.1347C8.32262 10.1277 8.32971 10.121 8.33691 10.1144C8.34408 10.1064 8.3515 10.0986 8.35916 10.091C8.99721 9.45291 8.99949 8.38145 8.3155 7.69746C8.07728 7.45924 8.07728 7.07301 8.3155 6.83479C8.55372 6.59657 8.93995 6.59657 9.17817 6.83479C10.3166 7.97327 10.358 9.81748 9.22183 10.9536C9.21487 10.9606 9.20779 10.9673 9.20058 10.9739C9.19341 10.9819 9.18599 10.9897 9.17833 10.9973L6.13166 14.044C4.99548 15.1802 3.15127 15.1389 2.01279 14.0004C0.874362 12.8619 0.83297 11.0177 1.96916 9.8815L4.61426 7.2364Z"
272
275
  }
273
276
  }]
274
- }, te = Z(function(e, t) {
275
- return E(N, Object.assign({}, e, {
277
+ }, ie = Z(function(e, t) {
278
+ return N($, Object.assign({}, e, {
276
279
  id: "link-icon",
277
280
  ref: t,
278
- icon: Dn
281
+ icon: $n
279
282
  }));
280
283
  });
281
- te.displayName = "LinkIcon";
282
- const En = {
284
+ ie.displayName = "LinkIcon";
285
+ const Un = {
283
286
  tag: "svg",
284
287
  attrs: {
285
288
  xmlns: "http://www.w3.org/2000/svg",
@@ -311,15 +314,15 @@ const En = {
311
314
  }
312
315
  }
313
316
  ]
314
- }, Re = Z(function(e, t) {
315
- return E(N, Object.assign({}, e, {
317
+ }, be = Z(function(e, t) {
318
+ return N($, Object.assign({}, e, {
316
319
  id: "unlink-icon",
317
320
  ref: t,
318
- icon: En
321
+ icon: Un
319
322
  }));
320
323
  });
321
- Re.displayName = "UnlinkIcon";
322
- const Nn = {
324
+ be.displayName = "UnlinkIcon";
325
+ const Tn = {
323
326
  tag: "svg",
324
327
  attrs: {
325
328
  xmlns: "http://www.w3.org/2000/svg",
@@ -343,70 +346,70 @@ const Nn = {
343
346
  d: "M1.79238 13.2999C1.46101 13.2999 1.19238 13.5685 1.19238 13.8999C1.19238 14.2313 1.46101 14.4999 1.79238 14.4999H14.4924C14.8238 14.4999 15.0924 14.2313 15.0924 13.8999C15.0924 13.5685 14.8238 13.2999 14.4924 13.2999H1.79238Z"
344
347
  }
345
348
  }]
346
- }, Me = Z(function(e, t) {
347
- return E(N, Object.assign({}, e, {
349
+ }, De = Z(function(e, t) {
350
+ return N($, Object.assign({}, e, {
348
351
  id: "write-icon",
349
352
  ref: t,
350
- icon: Nn
353
+ icon: Tn
351
354
  }));
352
355
  });
353
- Me.displayName = "WriteIcon";
354
- const be = {
355
- type: P.COMMAND,
356
+ De.displayName = "WriteIcon";
357
+ const Ee = {
358
+ type: R.COMMAND,
356
359
  id: "docs.command.delete-hyper-link",
357
360
  async handler(n, e) {
358
361
  if (!e)
359
362
  return !1;
360
- const { unitId: t, linkId: i, segmentId: r } = e, o = n.get(x), s = Je(n, { unitId: t, rangeId: i, segmentId: r });
363
+ const { unitId: t, linkId: i, segmentId: r } = e, o = n.get(x), s = Qe(n, { unitId: t, rangeId: i, segmentId: r });
361
364
  return s ? await o.syncExecuteCommand(s.id, s.params) : !1;
362
365
  }
363
- }, De = (n) => {
364
- const e = n.get(R), t = n.get(k), i = e.getTextRanges();
366
+ }, Ne = (n) => {
367
+ const e = n.get(M), t = n.get(k), i = e.getTextRanges();
365
368
  if (!(i != null && i.length))
366
369
  return !0;
367
370
  const r = i[0];
368
371
  return !!(!t.getCurrentUnitForType(I.UNIVER_DOC) || !r || r.collapsed);
369
372
  }, w = {
370
- type: P.OPERATION,
373
+ type: R.OPERATION,
371
374
  id: "doc.operation.show-hyper-link-edit-popup",
372
375
  handler(n, e) {
373
376
  var s;
374
377
  const t = e == null ? void 0 : e.link, i = n.get(k);
375
- if (De(n) && !t)
378
+ if (Ne(n) && !t)
376
379
  return !1;
377
380
  const r = n.get(S), o = (t == null ? void 0 : t.unitId) || ((s = i.getCurrentUnitForType(I.UNIVER_DOC)) == null ? void 0 : s.getUnitId());
378
381
  return o ? (r.showEditPopup(o, t), !0) : !1;
379
382
  }
380
- }, X = {
381
- type: P.OPERATION,
383
+ }, ee = {
384
+ type: R.OPERATION,
382
385
  id: "doc.operation.toggle-hyper-link-info-popup",
383
386
  handler(n, e) {
384
387
  const t = n.get(S);
385
388
  return e ? (t.showInfoPopup(e), !0) : (t.hideInfoPopup(), !0);
386
389
  }
387
- }, Ee = {
388
- type: P.OPERATION,
390
+ }, $e = {
391
+ type: R.OPERATION,
389
392
  id: "doc.operation.click-hyper-link",
390
393
  handler(n, e) {
391
394
  var u, v, f;
392
395
  if (!e)
393
396
  return !1;
394
- const { unitId: t, linkId: i, segmentId: r } = e, s = n.get(k).getUnit(t, I.UNIVER_DOC), c = s == null ? void 0 : s.getSelfOrHeaderFooterModel(r).getBody(), l = (f = (v = (u = c == null ? void 0 : c.customRanges) == null ? void 0 : u.find((g) => g.rangeId === i && g.rangeType === b.HYPERLINK)) == null ? void 0 : v.properties) == null ? void 0 : f.url;
397
+ const { unitId: t, linkId: i, segmentId: r } = e, s = n.get(k).getUnit(t, I.UNIVER_DOC), c = s == null ? void 0 : s.getSelfOrHeaderFooterModel(r).getBody(), l = (f = (v = (u = c == null ? void 0 : c.customRanges) == null ? void 0 : u.find((g) => g.rangeId === i && g.rangeType === D.HYPERLINK)) == null ? void 0 : v.properties) == null ? void 0 : f.url;
395
398
  return l && window.open(l, "_blank", "noopener noreferrer"), !0;
396
399
  }
397
- }, K = () => {
400
+ }, F = () => {
398
401
  var _, a;
399
- const n = C(S), e = C(x), t = C(pn), i = C(Se), r = ke(n.showingLink$), o = C(k);
402
+ const n = C(S), e = C(x), t = C(gn), i = C(ye), r = Le(n.showingLink$), o = C(k);
400
403
  if (!r)
401
404
  return null;
402
- const { unitId: s, linkId: c, segmentId: l, startIndex: u, endIndex: v } = r, f = o.getUnit(s, I.UNIVER_DOC), g = f == null ? void 0 : f.getSelfOrHeaderFooterModel(l).getBody(), d = (_ = g == null ? void 0 : g.customRanges) == null ? void 0 : _.find((y) => y.rangeId === c && y.rangeType === b.HYPERLINK && y.startIndex === u && y.endIndex === v);
405
+ const { unitId: s, linkId: c, segmentId: l, startIndex: u, endIndex: v } = r, f = o.getUnit(s, I.UNIVER_DOC), g = f == null ? void 0 : f.getSelfOrHeaderFooterModel(l).getBody(), d = (_ = g == null ? void 0 : g.customRanges) == null ? void 0 : _.find((y) => y.rangeId === c && y.rangeType === D.HYPERLINK && y.startIndex === u && y.endIndex === v);
403
406
  if (!d)
404
407
  return null;
405
408
  const p = (a = d.properties) == null ? void 0 : a.url;
406
409
  return /* @__PURE__ */ O(
407
410
  "div",
408
411
  {
409
- className: ye("univer-box-border univer-flex univer-max-w-80 univer-items-center univer-justify-between univer-overflow-hidden univer-rounded-lg univer-bg-white univer-p-3 univer-shadow dark:!univer-bg-gray-900", xe),
412
+ className: xe("univer-box-border univer-flex univer-max-w-80 univer-items-center univer-justify-between univer-overflow-hidden univer-rounded-lg univer-bg-white univer-p-3 univer-shadow dark:!univer-bg-gray-900", ke),
410
413
  onClick: () => {
411
414
  n.hideInfoPopup();
412
415
  },
@@ -421,10 +424,10 @@ const be = {
421
424
  "div",
422
425
  {
423
426
  className: "univer-mr-2 univer-flex univer-size-5 univer-flex-[0_0_auto] univer-items-center univer-justify-center univer-text-base univer-text-gray-900 dark:!univer-text-white",
424
- children: /* @__PURE__ */ h(te, {})
427
+ children: /* @__PURE__ */ h(ie, {})
425
428
  }
426
429
  ),
427
- /* @__PURE__ */ h(H, { showIfEllipsis: !0, title: p, children: /* @__PURE__ */ h("span", { className: "univer-flex-1 univer-truncate", children: p }) })
430
+ /* @__PURE__ */ h(j, { showIfEllipsis: !0, title: p, children: /* @__PURE__ */ h("span", { className: "univer-flex-1 univer-truncate", children: p }) })
428
431
  ]
429
432
  }
430
433
  ),
@@ -436,10 +439,10 @@ const be = {
436
439
  onClick: () => {
437
440
  navigator.clipboard.writeText(p), t.show({
438
441
  content: i.t("docLink.info.coped"),
439
- type: un.Info
442
+ type: pn.Info
440
443
  });
441
444
  },
442
- children: /* @__PURE__ */ h(H, { placement: "bottom", title: i.t("docLink.info.copy"), children: /* @__PURE__ */ h(Pe, {}) })
445
+ children: /* @__PURE__ */ h(j, { placement: "bottom", title: i.t("docLink.info.copy"), children: /* @__PURE__ */ h(Me, {}) })
443
446
  }
444
447
  ),
445
448
  /* @__PURE__ */ h(
@@ -451,7 +454,7 @@ const be = {
451
454
  link: r
452
455
  });
453
456
  },
454
- children: /* @__PURE__ */ h(H, { placement: "bottom", title: i.t("docLink.info.edit"), children: /* @__PURE__ */ h(Me, {}) })
457
+ children: /* @__PURE__ */ h(j, { placement: "bottom", title: i.t("docLink.info.edit"), children: /* @__PURE__ */ h(De, {}) })
455
458
  }
456
459
  ),
457
460
  /* @__PURE__ */ h(
@@ -459,13 +462,13 @@ const be = {
459
462
  {
460
463
  className: "univer-ml-2 univer-flex univer-size-6 univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-text-base",
461
464
  onClick: () => {
462
- e.executeCommand(be.id, {
465
+ e.executeCommand(Ee.id, {
463
466
  unitId: s,
464
467
  linkId: d.rangeId,
465
468
  segmentId: l
466
469
  });
467
470
  },
468
- children: /* @__PURE__ */ h(H, { placement: "bottom", title: i.t("docLink.info.cancel"), children: /* @__PURE__ */ h(Re, {}) })
471
+ children: /* @__PURE__ */ h(j, { placement: "bottom", title: i.t("docLink.info.cancel"), children: /* @__PURE__ */ h(be, {}) })
469
472
  }
470
473
  )
471
474
  ] })
@@ -473,17 +476,17 @@ const be = {
473
476
  }
474
477
  );
475
478
  };
476
- K.componentKey = "univer.doc.link-info-popup";
477
- var $n = Object.getOwnPropertyDescriptor, Un = (n, e, t, i) => {
478
- for (var r = i > 1 ? void 0 : i ? $n(e, t) : e, o = n.length - 1, s; o >= 0; o--)
479
+ F.componentKey = "univer.doc.link-info-popup";
480
+ var Hn = Object.getOwnPropertyDescriptor, jn = (n, e, t, i) => {
481
+ for (var r = i > 1 ? void 0 : i ? Hn(e, t) : e, o = n.length - 1, s; o >= 0; o--)
479
482
  (s = n[o]) && (r = s(r) || r);
480
483
  return r;
481
- }, G = (n, e) => (t, i) => e(t, i, n);
482
- let S = class extends D {
484
+ }, z = (n, e) => (t, i) => e(t, i, n);
485
+ let S = class extends E {
483
486
  constructor(e, t, i) {
484
487
  super();
485
- L(this, "_editingLink$", new he(null));
486
- L(this, "_showingLink$", new he(null));
488
+ L(this, "_editingLink$", new ve(null));
489
+ L(this, "_showingLink$", new ve(null));
487
490
  L(this, "editingLink$", this._editingLink$.asObservable());
488
491
  L(this, "showingLink$", this._showingLink$.asObservable());
489
492
  L(this, "_editPopup", null);
@@ -518,7 +521,7 @@ let S = class extends D {
518
521
  return r ? (this._editPopup = this._docCanvasPopupManagerService.attachPopupToRange(
519
522
  r,
520
523
  {
521
- componentKey: A.componentKey,
524
+ componentKey: K.componentKey,
522
525
  direction: "bottom"
523
526
  },
524
527
  e
@@ -541,7 +544,7 @@ let S = class extends D {
541
544
  segmentPage: o
542
545
  },
543
546
  {
544
- componentKey: K.componentKey,
547
+ componentKey: F.componentKey,
545
548
  direction: "top-center",
546
549
  multipleDirection: "top",
547
550
  onClickOutside: () => {
@@ -556,17 +559,17 @@ let S = class extends D {
556
559
  this._showingLink$.next(null), (e = this._infoPopup) == null || e.dispose();
557
560
  }
558
561
  };
559
- S = Un([
560
- G(0, m(tn)),
561
- G(1, m(R)),
562
- G(2, k)
562
+ S = jn([
563
+ z(0, m(rn)),
564
+ z(1, m(M)),
565
+ z(2, k)
563
566
  ], S);
564
- var Tn = Object.getOwnPropertyDescriptor, Hn = (n, e, t, i) => {
565
- for (var r = i > 1 ? void 0 : i ? Tn(e, t) : e, o = n.length - 1, s; o >= 0; o--)
567
+ var An = Object.getOwnPropertyDescriptor, Kn = (n, e, t, i) => {
568
+ for (var r = i > 1 ? void 0 : i ? An(e, t) : e, o = n.length - 1, s; o >= 0; o--)
566
569
  (s = n[o]) && (r = s(r) || r);
567
570
  return r;
568
- }, z = (n, e) => (t, i) => e(t, i, n);
569
- let F = class extends D {
571
+ }, q = (n, e) => (t, i) => e(t, i, n);
572
+ let B = class extends E {
570
573
  constructor(n, e, t) {
571
574
  super(), this._commandService = n, this._univerInstanceService = e, this._docHyperLinkService = t, this._initSelectionChange();
572
575
  }
@@ -574,7 +577,7 @@ let F = class extends D {
574
577
  this.disposeWithMe(
575
578
  this._commandService.onCommandExecuted((n) => {
576
579
  var e, t, i;
577
- if (n.id === Qe.id) {
580
+ if (n.id === Xe.id) {
578
581
  const r = n.params, { unitId: o, ranges: s, segmentId: c } = r, l = this._univerInstanceService.getUnit(o, I.UNIVER_DOC), u = s[0];
579
582
  if (u && l) {
580
583
  const { startOffset: v, endOffset: f, collapsed: g, segmentPage: d } = u, p = (t = (e = l.getSelfOrHeaderFooterModel(c)) == null ? void 0 : e.getBody()) == null ? void 0 : t.customRanges;
@@ -594,39 +597,39 @@ let F = class extends D {
594
597
  );
595
598
  }
596
599
  };
597
- F = Hn([
598
- z(0, x),
599
- z(1, k),
600
- z(2, m(S))
601
- ], F);
602
- var jn = Object.getOwnPropertyDescriptor, An = (n, e, t, i) => {
603
- for (var r = i > 1 ? void 0 : i ? jn(e, t) : e, o = n.length - 1, s; o >= 0; o--)
600
+ B = Kn([
601
+ q(0, x),
602
+ q(1, k),
603
+ q(2, m(S))
604
+ ], B);
605
+ var Fn = Object.getOwnPropertyDescriptor, Bn = (n, e, t, i) => {
606
+ for (var r = i > 1 ? void 0 : i ? Fn(e, t) : e, o = n.length - 1, s; o >= 0; o--)
604
607
  (s = n[o]) && (r = s(r) || r);
605
608
  return r;
606
- }, M = (n, e) => (t, i) => e(t, i, n);
607
- let ee = class extends D {
609
+ }, b = (n, e) => (t, i) => e(t, i, n);
610
+ let ne = class extends E {
608
611
  constructor(n, e, t, i, r, o) {
609
- super(), this._context = n, this._docEventManagerService = e, this._commandService = t, this._hyperLinkPopupService = i, this._docSkeletonManagerService = r, this._docSelectionManagerService = o, !(this._context.unitId === Ae || this._context.unitId === Ke) && (this._initHover(), this._initClick());
612
+ super(), this._context = n, this._docEventManagerService = e, this._commandService = t, this._hyperLinkPopupService = i, this._docSkeletonManagerService = r, this._docSelectionManagerService = o, !(this._context.unitId === Ke || this._context.unitId === Fe) && (this._initHover(), this._initClick());
610
613
  }
611
614
  get _skeleton() {
612
615
  return this._docSkeletonManagerService.getSkeleton();
613
616
  }
614
617
  _hideInfoPopup() {
615
618
  this._hyperLinkPopupService.showing && this._commandService.executeCommand(
616
- X.id
619
+ ee.id
617
620
  );
618
621
  }
619
622
  _initHover() {
620
623
  this.disposeWithMe(
621
624
  this._docEventManagerService.hoverCustomRanges$.subscribe((n) => {
622
625
  var r;
623
- const e = n.find((o) => o.range.rangeType === b.HYPERLINK), t = this._docSelectionManagerService.getTextRanges(), i = t == null ? void 0 : t[0].segmentId;
626
+ const e = n.find((o) => o.range.rangeType === D.HYPERLINK), t = this._docSelectionManagerService.getTextRanges(), i = t == null ? void 0 : t[0].segmentId;
624
627
  if (((r = e == null ? void 0 : e.segmentId) != null ? r : "") !== i) {
625
628
  this._hideInfoPopup();
626
629
  return;
627
630
  }
628
631
  e ? this._commandService.executeCommand(
629
- X.id,
632
+ ee.id,
630
633
  {
631
634
  unitId: this._context.unitId,
632
635
  linkId: e.range.rangeId,
@@ -645,7 +648,7 @@ let ee = class extends D {
645
648
  this._docEventManagerService.clickCustomRanges$.subscribe((n) => {
646
649
  const e = n.range;
647
650
  e && this._commandService.executeCommand(
648
- Ee.id,
651
+ $e.id,
649
652
  {
650
653
  unitId: this._context.unitId,
651
654
  linkId: e.rangeId,
@@ -656,24 +659,24 @@ let ee = class extends D {
656
659
  );
657
660
  }
658
661
  };
659
- ee = An([
660
- M(1, m(rn)),
661
- M(2, x),
662
- M(3, m(S)),
663
- M(4, m(Xe)),
664
- M(5, m(R))
665
- ], ee);
666
- var Kn = Object.getOwnPropertyDescriptor, Fn = (n, e, t, i) => {
667
- for (var r = i > 1 ? void 0 : i ? Kn(e, t) : e, o = n.length - 1, s; o >= 0; o--)
662
+ ne = Bn([
663
+ b(1, m(on)),
664
+ b(2, x),
665
+ b(3, m(S)),
666
+ b(4, m(en)),
667
+ b(5, m(M))
668
+ ], ne);
669
+ var Vn = Object.getOwnPropertyDescriptor, Zn = (n, e, t, i) => {
670
+ for (var r = i > 1 ? void 0 : i ? Vn(e, t) : e, o = n.length - 1, s; o >= 0; o--)
668
671
  (s = n[o]) && (r = s(r) || r);
669
672
  return r;
670
- }, q = (n, e) => (t, i) => e(t, i, n);
671
- let ne = class extends D {
673
+ }, J = (n, e) => (t, i) => e(t, i, n);
674
+ let te = class extends E {
672
675
  constructor(n, e, t, i) {
673
676
  super(), this._context = n, this._docInterceptorService = e, this._hyperLinkService = t, this._docRenderController = i, this._init(), this._initReRender();
674
677
  }
675
678
  _init() {
676
- this._docInterceptorService.intercept(nn.CUSTOM_RANGE, {
679
+ this._docInterceptorService.intercept(tn.CUSTOM_RANGE, {
677
680
  handler: (n, e, t) => {
678
681
  if (!n)
679
682
  return t(n);
@@ -693,30 +696,30 @@ let ne = class extends D {
693
696
  }
694
697
  _initReRender() {
695
698
  this.disposeWithMe(this._hyperLinkService.showingLink$.pipe(
696
- cn((n, e) => (n == null ? void 0 : n.linkId) === (e == null ? void 0 : e.linkId) && (n == null ? void 0 : n.unitId) === (e == null ? void 0 : e.unitId) && (n == null ? void 0 : n.startIndex) === (e == null ? void 0 : e.startIndex)),
697
- dn()
699
+ dn((n, e) => (n == null ? void 0 : n.linkId) === (e == null ? void 0 : e.linkId) && (n == null ? void 0 : n.unitId) === (e == null ? void 0 : e.unitId) && (n == null ? void 0 : n.startIndex) === (e == null ? void 0 : e.startIndex)),
700
+ an()
698
701
  ).subscribe(([n, e]) => {
699
702
  e ? e.unitId === this._context.unitId && this._docRenderController.reRender(e.unitId) : n && n.unitId === this._context.unitId && this._docRenderController.reRender(n.unitId);
700
703
  }));
701
704
  }
702
705
  };
703
- ne = Fn([
704
- q(1, m(en)),
705
- q(2, m(S)),
706
- q(3, m(on))
707
- ], ne);
708
- const Ne = "doc-hyper-link-icon";
709
- function _e(n) {
706
+ te = Zn([
707
+ J(1, m(nn)),
708
+ J(2, m(S)),
709
+ J(3, m(sn))
710
+ ], te);
711
+ const Ue = "doc-hyper-link-icon";
712
+ function Ce(n) {
710
713
  return {
711
714
  id: w.id,
712
- type: vn.BUTTON,
713
- icon: Ne,
715
+ type: fn.BUTTON,
716
+ icon: Ue,
714
717
  title: "docLink.menu.tooltip",
715
718
  tooltip: "docLink.menu.tooltip",
716
- hidden$: hn(n, I.UNIVER_DOC),
717
- disabled$: new an(function(e) {
718
- const i = n.get(R).textSelection$.pipe(ln(16)).subscribe(() => {
719
- e.next(De(n));
719
+ hidden$: vn(n, I.UNIVER_DOC),
720
+ disabled$: new ln(function(e) {
721
+ const i = n.get(M).textSelection$.pipe(un(16)).subscribe(() => {
722
+ e.next(Ne(n));
720
723
  });
721
724
  return () => {
722
725
  i.unsubscribe();
@@ -724,41 +727,41 @@ function _e(n) {
724
727
  })
725
728
  };
726
729
  }
727
- const Bn = {
730
+ const Yn = {
728
731
  id: w.id,
729
- binding: gn.CTRL_COMMAND | Q.K,
732
+ binding: hn.CTRL_COMMAND | X.K,
730
733
  description: "docLink.menu.tooltip",
731
- preconditions: sn
732
- }, Vn = {
733
- [In.MEDIA]: {
734
+ preconditions: cn
735
+ }, Wn = {
736
+ [_n.MEDIA]: {
734
737
  [w.id]: {
735
738
  order: 1,
736
- menuItemFactory: _e
739
+ menuItemFactory: Ce
737
740
  }
738
741
  },
739
- [fn.MAIN_AREA]: {
740
- [mn.DATA]: {
742
+ [mn.MAIN_AREA]: {
743
+ [In.DATA]: {
741
744
  [w.id]: {
742
745
  order: 0,
743
- menuItemFactory: _e
746
+ menuItemFactory: Ce
744
747
  }
745
748
  }
746
749
  }
747
750
  };
748
- var Zn = Object.getOwnPropertyDescriptor, Yn = (n, e, t, i) => {
749
- for (var r = i > 1 ? void 0 : i ? Zn(e, t) : e, o = n.length - 1, s; o >= 0; o--)
751
+ var Gn = Object.getOwnPropertyDescriptor, zn = (n, e, t, i) => {
752
+ for (var r = i > 1 ? void 0 : i ? Gn(e, t) : e, o = n.length - 1, s; o >= 0; o--)
750
753
  (s = n[o]) && (r = s(r) || r);
751
754
  return r;
752
- }, j = (n, e) => (t, i) => e(t, i, n);
753
- let B = class extends D {
755
+ }, A = (n, e) => (t, i) => e(t, i, n);
756
+ let V = class extends E {
754
757
  constructor(n, e, t, i) {
755
758
  super(), this._componentManager = n, this._commandService = e, this._menuManagerService = t, this._shortcutService = i, this._initComponents(), this._initCommands(), this._initMenus(), this._initShortcut();
756
759
  }
757
760
  _initComponents() {
758
761
  [
759
- [A.componentKey, A],
760
762
  [K.componentKey, K],
761
- [Ne, te]
763
+ [F.componentKey, F],
764
+ [Ue, ie]
762
765
  ].forEach(([n, e]) => {
763
766
  this.disposeWithMe(
764
767
  this._componentManager.register(n, e)
@@ -767,79 +770,81 @@ let B = class extends D {
767
770
  }
768
771
  _initCommands() {
769
772
  [
770
- Le,
771
- Oe,
772
- be,
773
+ we,
774
+ Pe,
775
+ Ee,
773
776
  w,
774
- X,
775
- Ee
777
+ ee,
778
+ $e
776
779
  ].forEach((n) => {
777
780
  this._commandService.registerCommand(n);
778
781
  });
779
782
  }
780
783
  _initShortcut() {
781
- [Bn].forEach((n) => {
784
+ [Yn].forEach((n) => {
782
785
  this._shortcutService.registerShortcut(n);
783
786
  });
784
787
  }
785
788
  _initMenus() {
786
- this._menuManagerService.mergeMenu(Vn);
789
+ this._menuManagerService.mergeMenu(Wn);
787
790
  }
788
791
  };
789
- B = Yn([
790
- j(0, m(_n)),
791
- j(1, x),
792
- j(2, Cn),
793
- j(3, Sn)
794
- ], B);
795
- const Wn = "DOC_HYPER_LINK_UI_PLUGIN";
796
- var Gn = Object.defineProperty, zn = Object.getOwnPropertyDescriptor, qn = (n, e, t) => e in n ? Gn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Jn = (n, e, t, i) => {
797
- for (var r = i > 1 ? void 0 : i ? zn(e, t) : e, o = n.length - 1, s; o >= 0; o--)
792
+ V = zn([
793
+ A(0, m(Cn)),
794
+ A(1, x),
795
+ A(2, Sn),
796
+ A(3, yn)
797
+ ], V);
798
+ const qn = "DOC_HYPER_LINK_UI_PLUGIN";
799
+ var Jn = Object.defineProperty, Qn = Object.getOwnPropertyDescriptor, Xn = (n, e, t) => e in n ? Jn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, et = (n, e, t, i) => {
800
+ for (var r = i > 1 ? void 0 : i ? Qn(e, t) : e, o = n.length - 1, s; o >= 0; o--)
798
801
  (s = n[o]) && (r = s(r) || r);
799
802
  return r;
800
- }, J = (n, e) => (t, i) => e(t, i, n), $e = (n, e, t) => qn(n, typeof e != "symbol" ? e + "" : e, t);
801
- let V = class extends Ze {
802
- constructor(n = Ie, e, t, i) {
803
+ }, Q = (n, e) => (t, i) => e(t, i, n), Y = (n, e, t) => Xn(n, typeof e != "symbol" ? e + "" : e, t);
804
+ let P = class extends Ye {
805
+ constructor(n = _e, e, t, i) {
803
806
  super(), this._config = n, this._injector = e, this._renderManagerSrv = t, this._configService = i;
804
- const { menu: r, ...o } = Ye(
807
+ const { menu: r, ...o } = We(
805
808
  {},
806
- Ie,
809
+ _e,
807
810
  this._config
808
811
  );
809
- r && this._configService.setConfig("menu", r, { merge: !0 }), this._configService.setConfig(kn, o);
812
+ r && this._configService.setConfig("menu", r, { merge: !0 }), this._configService.setConfig(wn, o);
810
813
  }
811
814
  onStarting() {
812
815
  [
813
816
  [S],
814
- [B],
815
- [F]
817
+ [V],
818
+ [B]
816
819
  ].forEach((e) => {
817
820
  this._injector.add(e);
818
- }), this._injector.get(B);
821
+ }), this._injector.get(V);
819
822
  }
820
823
  onReady() {
821
- this._injector.get(F);
824
+ this._injector.get(B);
822
825
  }
823
826
  onRendered() {
824
827
  this._initRenderModule();
825
828
  }
826
829
  _initRenderModule() {
827
830
  [
828
- [ne],
829
- [ee]
831
+ [te],
832
+ [ne]
830
833
  ].forEach((n) => {
831
834
  this._renderManagerSrv.registerRenderModule(I.UNIVER_DOC, n);
832
835
  });
833
836
  }
834
837
  };
835
- $e(V, "pluginName", Wn);
836
- $e(V, "type", I.UNIVER_DOC);
837
- V = Jn([
838
- Fe(We),
839
- J(1, m(Be)),
840
- J(2, Ge),
841
- J(3, Ve)
842
- ], V);
838
+ Y(P, "pluginName", qn);
839
+ Y(P, "packageName", Oe.name);
840
+ Y(P, "version", Oe.version);
841
+ Y(P, "type", I.UNIVER_DOC);
842
+ P = et([
843
+ Be(Ge),
844
+ Q(1, m(Ve)),
845
+ Q(2, ze),
846
+ Q(3, Ze)
847
+ ], P);
843
848
  export {
844
- V as UniverDocsHyperLinkUIPlugin
849
+ P as UniverDocsHyperLinkUIPlugin
845
850
  };