@univerjs/docs-quick-insert-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,25 +1,25 @@
1
- var Le = Object.defineProperty;
2
- var Ae = (t, e, n) => e in t ? Le(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
1
+ var je = Object.defineProperty;
2
+ var Ae = (t, e, n) => e in t ? je(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var C = (t, e, n) => Ae(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { CommandType as k, ICommandService as Q, RANGE_DIRECTION as je, LocaleService as ue, generateRandomId as Be, DisposableCollection as We, toDisposable as qe, Direction as B, Inject as f, IUniverInstanceService as pe, Disposable as Y, UniverInstanceType as H, DeleteDirection as Ze, DependentOn as Ve, Injector as Fe, IConfigService as Ge, Plugin as ze, merge as Ye } from "@univerjs/core";
5
- import { DocSelectionManagerService as le, DocSkeletonManagerService as Je, RichTextEditingMutation as Xe } from "@univerjs/docs";
6
- import { CutContentCommand as et, DocCanvasPopManagerService as Se, DocEventManagerService as Pe, OrderListCommand as tt, BulletListCommand as nt, HorizontalLineCommand as it, DocCreateTableOperation as rt, InsertCommand as st, IMEInputCommand as ot, DeleteCommand as ct, MoveCursorOperation as at, DeleteLeftCommand as dt } from "@univerjs/docs-ui";
7
- import { useDependency as _, KeyCode as O, ComponentManager as ye, IShortcutService as xe, useObservable as T, ILayoutService as ut, useEvent as pt, UniverUIPlugin as lt } from "@univerjs/ui";
8
- import { IRenderManagerService as he } from "@univerjs/engine-render";
9
- import { map as Me, distinctUntilChanged as ht, tap as K, combineLatest as fe, BehaviorSubject as A, of as ft } from "rxjs";
10
- import { jsx as h, jsxs as ve } from "react/jsx-runtime";
11
- import { Menu as gt, clsx as re, scrollbarClassName as mt, MenuItemGroup as vt, MenuItem as Ct, Tooltip as _t, borderClassName as It } from "@univerjs/design";
12
- import { useMemo as se, useState as Ce, useRef as j, useEffect as L, createElement as J, forwardRef as ge } from "react";
13
- import { InsertDocImageCommand as St, UniverDocsDrawingUIPlugin as Pt } from "@univerjs/docs-drawing-ui";
14
- import { UniverDocsDrawingPlugin as yt } from "@univerjs/docs-drawing";
15
- import { UniverDrawingPlugin as xt } from "@univerjs/drawing";
16
- import { UniverDrawingUIPlugin as Mt } from "@univerjs/drawing-ui";
17
- const Oe = {
4
+ import { CommandType as R, ICommandService as H, RANGE_DIRECTION as Be, LocaleService as pe, generateRandomId as We, DisposableCollection as qe, toDisposable as Ze, Direction as W, Inject as f, IUniverInstanceService as le, Disposable as Y, UniverInstanceType as K, DeleteDirection as Ve, DependentOn as Fe, Injector as Ge, IConfigService as ze, Plugin as Ye, merge as Je } from "@univerjs/core";
5
+ import { DocSelectionManagerService as he, DocSkeletonManagerService as Xe, RichTextEditingMutation as et } from "@univerjs/docs";
6
+ import { CutContentCommand as tt, DocCanvasPopManagerService as Pe, DocEventManagerService as ye, OrderListCommand as nt, BulletListCommand as it, HorizontalLineCommand as rt, DocCreateTableOperation as st, InsertCommand as ot, IMEInputCommand as ct, DeleteCommand as at, MoveCursorOperation as dt, DeleteLeftCommand as ut } from "@univerjs/docs-ui";
7
+ import { useDependency as _, KeyCode as O, ComponentManager as xe, IShortcutService as Me, useObservable as U, ILayoutService as pt, useEvent as lt, UniverUIPlugin as ht } from "@univerjs/ui";
8
+ import { IRenderManagerService as fe } from "@univerjs/engine-render";
9
+ import { map as Oe, distinctUntilChanged as ft, tap as L, combineLatest as ge, BehaviorSubject as A, of as gt } from "rxjs";
10
+ import { jsx as h, jsxs as Ce } from "react/jsx-runtime";
11
+ import { Menu as mt, clsx as se, scrollbarClassName as vt, MenuItemGroup as Ct, MenuItem as _t, Tooltip as It, borderClassName as St } from "@univerjs/design";
12
+ import { useMemo as oe, useState as _e, useRef as B, useEffect as j, createElement as J, forwardRef as me } from "react";
13
+ import { InsertDocImageCommand as Pt, UniverDocsDrawingUIPlugin as yt } from "@univerjs/docs-drawing-ui";
14
+ import { UniverDocsDrawingPlugin as xt } from "@univerjs/docs-drawing";
15
+ import { UniverDrawingPlugin as Mt } from "@univerjs/drawing";
16
+ import { UniverDrawingUIPlugin as Ot } from "@univerjs/drawing-ui";
17
+ const be = {
18
18
  id: "doc.command.delete-search-key",
19
- type: k.COMMAND,
19
+ type: R.COMMAND,
20
20
  handler: (t, e) => {
21
- const n = t.get(Q), { start: i, end: r } = e;
22
- return n.syncExecuteCommand(et.id, {
21
+ const n = t.get(H), { start: i, end: r } = e;
22
+ return n.syncExecuteCommand(tt.id, {
23
23
  segmentId: "",
24
24
  textRanges: [{
25
25
  startOffset: i,
@@ -30,17 +30,17 @@ const Oe = {
30
30
  startOffset: i,
31
31
  endOffset: r,
32
32
  collapsed: !1,
33
- direction: je.FORWARD
33
+ direction: Be.FORWARD
34
34
  }]
35
35
  });
36
36
  }
37
- }, Ot = "docs.quick.insert.keyword-input-placeholder", W = () => {
38
- const t = _(ue);
37
+ }, bt = "docs.quick.insert.keyword-input-placeholder", q = () => {
38
+ const t = _(pe);
39
39
  return /* @__PURE__ */ h("div", { className: "univer-translate-y-1.5 univer-text-sm univer-text-gray-500", children: t.t("docQuickInsert.keywordInputPlaceholder") });
40
40
  };
41
- W.componentKey = Ot;
42
- const bt = "docs.quick.insert.placeholder", q = () => {
43
- const t = _(ue);
41
+ q.componentKey = bt;
42
+ const wt = "docs.quick.insert.placeholder", Z = () => {
43
+ const t = _(pe);
44
44
  return /* @__PURE__ */ h(
45
45
  "div",
46
46
  {
@@ -49,63 +49,63 @@ const bt = "docs.quick.insert.placeholder", q = () => {
49
49
  }
50
50
  );
51
51
  };
52
- q.componentKey = bt;
53
- function oe(t, e) {
52
+ Z.componentKey = wt;
53
+ function ce(t, e) {
54
54
  return t.map((n) => ({ ...n })).filter((n) => {
55
55
  if ("children" in n)
56
- return n.children = oe(n.children, e), n.children.length > 0;
56
+ return n.children = ce(n.children, e), n.children.length > 0;
57
57
  const i = n.keywords;
58
58
  return i ? i.some((r) => r.includes(e)) : n.title.toLowerCase().includes(e);
59
59
  });
60
60
  }
61
- function be(t, e) {
61
+ function we(t, e) {
62
62
  return t.map((n) => {
63
63
  const i = { ...n };
64
- return "children" in i && (i.children = be(i.children, e)), i.title = e.t(i.title), "keywords" in i && (i.keywords = i.keywords.concat(i.title).map((r) => r.toLowerCase())), i;
64
+ return "children" in i && (i.children = we(i.children, e)), i.title = e.t(i.title), "keywords" in i && (i.keywords = i.keywords.concat(i.title).map((r) => r.toLowerCase())), i;
65
65
  });
66
66
  }
67
- const wt = [O.ARROW_UP, O.ARROW_DOWN, O.ENTER], Z = () => {
68
- const t = _(ue), e = _(I), n = _(ye), i = _(xe), r = _(Q), s = se(() => Be(), []), [c, l] = Ce(0), o = j(null), a = j(0);
67
+ const kt = [O.ARROW_UP, O.ARROW_DOWN, O.ENTER], V = () => {
68
+ const t = _(pe), e = _(I), n = _(xe), i = _(Me), r = _(H), s = oe(() => We(), []), [c, l] = _e(0), o = B(null), a = B(0);
69
69
  a.current = 0;
70
- const d = T(e.filterKeyword$, ""), u = T(e.editPopup$), g = T(u == null ? void 0 : u.popup.menus$, []), S = se(() => be(g, t), [g]), [b, P] = Ce(() => oe(S, d.toLowerCase()));
71
- L(() => {
70
+ const d = U(e.filterKeyword$, ""), u = U(e.editPopup$), g = U(u == null ? void 0 : u.popup.menus$, []), S = oe(() => we(g, t), [g]), [b, P] = _e(() => ce(S, d.toLowerCase()));
71
+ j(() => {
72
72
  const m = requestIdleCallback(() => {
73
- P(oe(S, d.toLowerCase()));
73
+ P(ce(S, d.toLowerCase()));
74
74
  });
75
75
  return () => {
76
76
  cancelIdleCallback(m);
77
77
  };
78
78
  }, [S, d]);
79
79
  const y = (m) => {
80
- e.emitMenuSelected(m), r.executeCommand(U.id);
80
+ e.emitMenuSelected(m), r.executeCommand(Q.id);
81
81
  };
82
- L(() => {
83
- const m = new We();
84
- i.getAllShortcuts().filter((p) => p.binding && wt.includes(p.binding)).forEach((p) => {
82
+ j(() => {
83
+ const m = new qe();
84
+ i.getAllShortcuts().filter((p) => p.binding && kt.includes(p.binding)).forEach((p) => {
85
85
  const M = p.preconditions;
86
- p.preconditions = () => !1, m.add(qe(() => {
86
+ p.preconditions = () => !1, m.add(Ze(() => {
87
87
  p.preconditions = M;
88
88
  }));
89
89
  });
90
90
  const x = {
91
91
  id: `quick.insert.popup.enter.${s}`,
92
- type: k.OPERATION,
92
+ type: R.OPERATION,
93
93
  handler: () => {
94
94
  const p = o.current;
95
95
  p && y(p);
96
96
  }
97
- }, D = {
97
+ }, N = {
98
98
  id: `quick.insert.popup.move.cursor.up.${s}`,
99
- type: k.OPERATION,
99
+ type: R.OPERATION,
100
100
  handler: () => {
101
101
  l((p) => {
102
102
  const M = p - 1;
103
103
  return M >= 0 ? M : a.current - 1;
104
104
  });
105
105
  }
106
- }, R = {
106
+ }, k = {
107
107
  id: `quick.insert.popup.move.cursor.down.${s}`,
108
- type: k.OPERATION,
108
+ type: R.OPERATION,
109
109
  handler: () => {
110
110
  l((p) => {
111
111
  const M = p + 1;
@@ -113,21 +113,21 @@ const wt = [O.ARROW_UP, O.ARROW_DOWN, O.ENTER], Z = () => {
113
113
  });
114
114
  }
115
115
  };
116
- return m.add(r.registerCommand(D)), m.add(r.registerCommand(R)), m.add(r.registerCommand(x)), m.add(i.registerShortcut({
116
+ return m.add(r.registerCommand(N)), m.add(r.registerCommand(k)), m.add(r.registerCommand(x)), m.add(i.registerShortcut({
117
117
  priority: 1e3,
118
- id: D.id,
118
+ id: N.id,
119
119
  binding: O.ARROW_UP,
120
120
  preconditions: () => !0,
121
121
  staticParameters: {
122
- direction: B.UP
122
+ direction: W.UP
123
123
  }
124
124
  })), m.add(i.registerShortcut({
125
125
  priority: 1e3,
126
- id: R.id,
126
+ id: k.id,
127
127
  binding: O.ARROW_DOWN,
128
128
  preconditions: () => !0,
129
129
  staticParameters: {
130
- direction: B.DOWN
130
+ direction: W.DOWN
131
131
  }
132
132
  })), m.add(i.registerShortcut({
133
133
  priority: 1e3,
@@ -137,21 +137,21 @@ const wt = [O.ARROW_UP, O.ARROW_DOWN, O.ENTER], Z = () => {
137
137
  })), () => {
138
138
  m.dispose();
139
139
  };
140
- }, []), L(() => {
140
+ }, []), j(() => {
141
141
  l(0);
142
142
  }, [b]);
143
- const w = j(/* @__PURE__ */ new Map());
144
- L(() => () => {
143
+ const w = B(/* @__PURE__ */ new Map());
144
+ j(() => () => {
145
145
  w.current.clear();
146
146
  }, []);
147
- function $(m) {
147
+ function D(m) {
148
148
  return m.map((v) => {
149
- const ee = v.icon, x = ee ? n.get(ee) : null;
149
+ const te = v.icon, x = te ? n.get(te) : null;
150
150
  if ("children" in v)
151
151
  return /* @__PURE__ */ h(
152
- vt,
152
+ Ct,
153
153
  {
154
- title: /* @__PURE__ */ ve(
154
+ title: /* @__PURE__ */ Ce(
155
155
  "div",
156
156
  {
157
157
  className: "univer-mb-2 univer-flex univer-items-center univer-text-xs univer-text-gray-400",
@@ -161,12 +161,12 @@ const wt = [O.ARROW_UP, O.ARROW_DOWN, O.ENTER], Z = () => {
161
161
  ]
162
162
  }
163
163
  ),
164
- children: $(v.children)
164
+ children: D(v.children)
165
165
  },
166
166
  v.id
167
167
  );
168
- const D = a.current, R = c === D;
169
- if (R) {
168
+ const N = a.current, k = c === N;
169
+ if (k) {
170
170
  o.current = v;
171
171
  const p = w.current.get(v.id);
172
172
  p == null || p.scrollIntoView({
@@ -174,27 +174,27 @@ const wt = [O.ARROW_UP, O.ARROW_DOWN, O.ENTER], Z = () => {
174
174
  });
175
175
  }
176
176
  return a.current++, /* @__PURE__ */ h(
177
- Ct,
177
+ _t,
178
178
  {
179
179
  ref: (p) => {
180
180
  p && w.current.set(v.id, p);
181
181
  },
182
- onMouseEnter: () => l(D),
182
+ onMouseEnter: () => l(N),
183
183
  onMouseLeave: () => l(Number.NaN),
184
- className: re("univer-w-[calc(220px-var(--padding-base)*2)] univer-text-sm", {
185
- "hover:univer-bg-transparent": !R,
186
- "univer-bg-gray-100 dark:!univer-bg-gray-500": R
184
+ className: se("univer-w-[calc(220px-var(--padding-base)*2)] univer-text-sm", {
185
+ "hover:univer-bg-transparent": !k,
186
+ "univer-bg-gray-100 dark:!univer-bg-gray-500": k
187
187
  }),
188
188
  onClick: () => {
189
189
  y(v);
190
190
  },
191
- children: /* @__PURE__ */ ve(
191
+ children: /* @__PURE__ */ Ce(
192
192
  "div",
193
193
  {
194
194
  className: "univer-flex univer-w-full univer-items-center univer-px-1",
195
195
  children: [
196
196
  x && /* @__PURE__ */ h("span", { className: "univer-mr-2 univer-inline-flex univer-text-base", children: /* @__PURE__ */ h(x, {}) }),
197
- /* @__PURE__ */ h(_t, { showIfEllipsis: !0, title: v.title, placement: "right", children: /* @__PURE__ */ h("span", { className: "univer-truncate", children: v.title }) })
197
+ /* @__PURE__ */ h(It, { showIfEllipsis: !0, title: v.title, placement: "right", children: /* @__PURE__ */ h("span", { className: "univer-truncate", children: v.title }) })
198
198
  ]
199
199
  }
200
200
  )
@@ -203,22 +203,22 @@ const wt = [O.ARROW_UP, O.ARROW_DOWN, O.ENTER], Z = () => {
203
203
  );
204
204
  });
205
205
  }
206
- const Ke = b.length > 0, me = (u == null ? void 0 : u.popup.Placeholder) || n.get(q.componentKey);
207
- return /* @__PURE__ */ h("div", { className: "univer-mt-2", children: Ke ? /* @__PURE__ */ h(
208
- gt,
206
+ const Le = b.length > 0, ve = (u == null ? void 0 : u.popup.Placeholder) || n.get(Z.componentKey);
207
+ return /* @__PURE__ */ h("div", { className: "univer-mt-2", children: Le ? /* @__PURE__ */ h(
208
+ mt,
209
209
  {
210
- wrapperClass: re("univer-max-h-[360px] univer-w-[220px] univer-overflow-y-auto univer-overflow-x-hidden", mt),
211
- children: $(b)
210
+ wrapperClass: se("univer-max-h-[360px] univer-w-[220px] univer-overflow-y-auto univer-overflow-x-hidden", vt),
211
+ children: D(b)
212
212
  }
213
- ) : me && /* @__PURE__ */ h(me, {}) });
213
+ ) : ve && /* @__PURE__ */ h(ve, {}) });
214
214
  };
215
- Z.componentKey = "docs.quick.insert.popup";
216
- var Rt = Object.getOwnPropertyDescriptor, kt = (t, e, n, i) => {
215
+ V.componentKey = "docs.quick.insert.popup";
216
+ var Rt = Object.getOwnPropertyDescriptor, $t = (t, e, n, i) => {
217
217
  for (var r = i > 1 ? void 0 : i ? Rt(e, n) : e, s = t.length - 1, c; s >= 0; s--)
218
218
  (c = t[s]) && (r = c(r) || r);
219
219
  return r;
220
- }, N = (t, e) => (n, i) => e(n, i, t);
221
- const _e = {
220
+ }, E = (t, e) => (n, i) => e(n, i, t);
221
+ const Ie = {
222
222
  dispose: () => {
223
223
  }
224
224
  };
@@ -238,29 +238,29 @@ let I = class extends Y {
238
238
  this._docCanvasPopupManagerService = e, this._univerInstanceService = n, this._commandService = i, this._renderManagerService = r, this._docSelectionManagerService = s, this.disposeWithMe(this._editPopup$);
239
239
  const c = (o, a) => {
240
240
  var d, u;
241
- return (u = (d = this._univerInstanceService.getCurrentUnitOfType(H.UNIVER_DOC)) == null ? void 0 : d.getBody()) == null ? void 0 : u.dataStream.slice(o, a);
241
+ return (u = (d = this._univerInstanceService.getCurrentUnitOfType(K.UNIVER_DOC)) == null ? void 0 : d.getBody()) == null ? void 0 : u.dataStream.slice(o, a);
242
242
  };
243
243
  let l = "";
244
244
  this.filterKeyword$ = this._inputOffset$.pipe(
245
- Me((o) => {
245
+ Oe((o) => {
246
246
  var d;
247
247
  const a = c(o.start, o.end);
248
248
  return (d = a == null ? void 0 : a.slice(1)) != null ? d : "";
249
249
  }),
250
- ht(),
251
- K((o) => {
250
+ ft(),
251
+ L((o) => {
252
252
  l = o;
253
253
  })
254
- ), this.disposeWithMe(fe([
255
- this.filterKeyword$.pipe(K((o) => {
254
+ ), this.disposeWithMe(ge([
255
+ this.filterKeyword$.pipe(L((o) => {
256
256
  var a, d, u;
257
257
  o.length > 0 ? (d = (a = this._inputPlaceholderRenderRoot) == null ? void 0 : a.unmount) == null || d.dispose() : (u = this._inputPlaceholderRenderRoot) == null || u.mount();
258
258
  })),
259
- this.isComposing$.pipe(K((o) => {
259
+ this.isComposing$.pipe(L((o) => {
260
260
  var a, d, u;
261
261
  o ? (d = (a = this._inputPlaceholderRenderRoot) == null ? void 0 : a.unmount) == null || d.dispose() : l.length <= 0 && ((u = this._inputPlaceholderRenderRoot) == null || u.mount());
262
262
  })),
263
- this.editPopup$.pipe(K((o) => {
263
+ this.editPopup$.pipe(L((o) => {
264
264
  var a, d;
265
265
  o || ((d = (a = this._inputPlaceholderRenderRoot) == null ? void 0 : a.unmount) == null || d.dispose(), this._inputPlaceholderRenderRoot = null);
266
266
  }))
@@ -286,7 +286,7 @@ let I = class extends Y {
286
286
  }
287
287
  getDocEventManagerService(e) {
288
288
  var n;
289
- return (n = this._renderManagerService.getRenderById(e)) == null ? void 0 : n.with(Pe);
289
+ return (n = this._renderManagerService.getRenderById(e)) == null ? void 0 : n.with(ye);
290
290
  }
291
291
  resolvePopup(e) {
292
292
  return Array.from(this._popups).find((n) => n.keyword === e);
@@ -323,17 +323,17 @@ let I = class extends Y {
323
323
  if (!o)
324
324
  return;
325
325
  this._inputPlaceholderRenderRoot = this._createInputPlaceholderRenderRoot(() => {
326
- var $;
327
- const g = ($ = this._renderManagerService.getRenderById(r)) == null ? void 0 : $.with(Je), S = this._docSelectionManagerService.getActiveTextRange();
326
+ var D;
327
+ const g = (D = this._renderManagerService.getRenderById(r)) == null ? void 0 : D.with(Xe), S = this._docSelectionManagerService.getActiveTextRange();
328
328
  if (!g || !S)
329
- return _e;
329
+ return Ie;
330
330
  const P = g.getSkeleton().findNodeByCharIndex(S.startOffset, S.segmentId, S.segmentPage);
331
331
  if (!((P == null ? void 0 : P.content) === "\r"))
332
- return _e;
332
+ return Ie;
333
333
  const w = this._docCanvasPopupManagerService.attachPopupToRange(
334
334
  { startOffset: i + 1, endOffset: i + 1, collapsed: !1 },
335
335
  {
336
- componentKey: W.componentKey,
336
+ componentKey: q.componentKey,
337
337
  onClickOutside: () => {
338
338
  w.dispose();
339
339
  },
@@ -346,7 +346,7 @@ let I = class extends Y {
346
346
  const a = this._docCanvasPopupManagerService.attachPopupToRect(
347
347
  o.firstLine,
348
348
  {
349
- componentKey: Z.componentKey,
349
+ componentKey: V.componentKey,
350
350
  onClickOutside: () => {
351
351
  this.closePopup();
352
352
  },
@@ -366,7 +366,7 @@ let I = class extends Y {
366
366
  }
367
367
  emitMenuSelected(e) {
368
368
  const { start: n, end: i } = this.inputOffset;
369
- this._commandService.syncExecuteCommand(Oe.id, {
369
+ this._commandService.syncExecuteCommand(be.id, {
370
370
  start: n,
371
371
  end: i
372
372
  }), setTimeout(() => {
@@ -374,22 +374,22 @@ let I = class extends Y {
374
374
  }, 0);
375
375
  }
376
376
  };
377
- I = kt([
378
- N(0, f(Se)),
379
- N(1, f(pe)),
380
- N(2, f(Q)),
381
- N(3, f(he)),
382
- N(4, f(le))
377
+ I = $t([
378
+ E(0, f(Pe)),
379
+ E(1, f(le)),
380
+ E(2, f(H)),
381
+ E(3, f(fe)),
382
+ E(4, f(he))
383
383
  ], I);
384
- const we = {
385
- type: k.OPERATION,
384
+ const ke = {
385
+ type: R.OPERATION,
386
386
  id: "doc.operation.show-quick-insert-popup",
387
387
  handler(t, e) {
388
388
  const n = t.get(I);
389
389
  return e ? (n.showPopup(e), !0) : !1;
390
390
  }
391
- }, U = {
392
- type: k.OPERATION,
391
+ }, Q = {
392
+ type: R.OPERATION,
393
393
  id: "doc.operation.close-quick-insert-popup",
394
394
  handler(t) {
395
395
  return t.get(I).closePopup(), !0;
@@ -399,60 +399,60 @@ const we = {
399
399
  title: "docQuickInsert.menu.text",
400
400
  icon: "TextIcon",
401
401
  keywords: ["text"]
402
- }, ke = {
403
- id: tt.id,
402
+ }, $e = {
403
+ id: nt.id,
404
404
  title: "docQuickInsert.menu.numberedList",
405
405
  icon: "OrderIcon",
406
406
  keywords: ["numbered", "list", "ordered"]
407
- }, $e = {
408
- id: nt.id,
407
+ }, De = {
408
+ id: it.id,
409
409
  title: "docQuickInsert.menu.bulletedList",
410
410
  icon: "UnorderIcon",
411
411
  keywords: ["bulleted", "list", "unordered"]
412
- }, De = {
413
- id: it.id,
412
+ }, Ne = {
413
+ id: rt.id,
414
414
  title: "docQuickInsert.menu.divider",
415
415
  icon: "DividerIcon",
416
416
  keywords: ["divider", "line", "separate"]
417
- }, Ne = {
418
- id: rt.id,
417
+ }, Ee = {
418
+ id: st.id,
419
419
  title: "docQuickInsert.menu.table",
420
420
  icon: "GridIcon",
421
421
  keywords: ["table", "grid", "spreadsheet"]
422
- }, Ee = {
423
- id: St.id,
422
+ }, Te = {
423
+ id: Pt.id,
424
424
  title: "docQuickInsert.menu.image",
425
425
  icon: "AdditionAndSubtractionIcon",
426
426
  keywords: ["image", "picture", "photo"]
427
- }, $t = [
427
+ }, Dt = [
428
428
  {
429
429
  title: "docQuickInsert.group.basics",
430
430
  id: "quick.insert.group.basic",
431
431
  children: [
432
432
  Re,
433
- ke,
434
433
  $e,
435
434
  De,
436
435
  Ne,
437
- Ee
436
+ Ee,
437
+ Te
438
438
  ]
439
439
  }
440
- ], Dt = /* @__PURE__ */ new Set([
441
- ke.id,
440
+ ], Nt = /* @__PURE__ */ new Set([
442
441
  $e.id,
443
442
  De.id,
444
443
  Ne.id,
445
- Ee.id
444
+ Ee.id,
445
+ Te.id
446
446
  ]);
447
- var Nt = Object.getOwnPropertyDescriptor, Et = (t, e, n, i) => {
448
- for (var r = i > 1 ? void 0 : i ? Nt(e, n) : e, s = t.length - 1, c; s >= 0; s--)
447
+ var Et = Object.getOwnPropertyDescriptor, Tt = (t, e, n, i) => {
448
+ for (var r = i > 1 ? void 0 : i ? Et(e, n) : e, s = t.length - 1, c; s >= 0; s--)
449
449
  (c = t[s]) && (r = c(r) || r);
450
450
  return r;
451
- }, E = (t, e) => (n, i) => e(n, i, t);
452
- let V = class extends Y {
451
+ }, T = (t, e) => (n, i) => e(n, i, t);
452
+ let F = class extends Y {
453
453
  constructor(t, e, n, i, r) {
454
454
  super(), this._commandService = t, this._textSelectionManagerService = e, this._docQuickInsertPopupService = n, this._shortcutService = i, this._univerInstanceService = r, this.disposeWithMe(this._shortcutService.registerShortcut({
455
- id: U.id,
455
+ id: Q.id,
456
456
  binding: O.ESC,
457
457
  preconditions: () => !!this._docQuickInsertPopupService.editPopup,
458
458
  priority: 1e3
@@ -464,9 +464,9 @@ let V = class extends Y {
464
464
  // eslint-disable-next-line complexity, max-lines-per-function
465
465
  this._commandService.onCommandExecuted((t) => {
466
466
  var s, c, l;
467
- const { _docQuickInsertPopupService: e, _textSelectionManagerService: n, _commandService: i } = this, r = this._univerInstanceService.getCurrentUnitOfType(H.UNIVER_DOC);
467
+ const { _docQuickInsertPopupService: e, _textSelectionManagerService: n, _commandService: i } = this, r = this._univerInstanceService.getCurrentUnitOfType(K.UNIVER_DOC);
468
468
  if (!(r != null && r.getDisabled())) {
469
- if (t.id === st.id) {
469
+ if (t.id === ot.id) {
470
470
  const o = t.params;
471
471
  if (e.editPopup) {
472
472
  e.setInputOffset({
@@ -482,40 +482,40 @@ let V = class extends Y {
482
482
  if (!d || !(d.preconditions ? d.preconditions(o) : !0))
483
483
  return;
484
484
  e.setInputOffset({ start: a.startOffset - 1, end: a.startOffset }), setTimeout(() => {
485
- i.executeCommand(we.id, {
485
+ i.executeCommand(ke.id, {
486
486
  index: a.startOffset - 1,
487
487
  unitId: o.unitId,
488
488
  popup: d
489
489
  });
490
490
  }, 100);
491
491
  }
492
- if (t.id === ot.id) {
492
+ if (t.id === ct.id) {
493
493
  const o = t.params;
494
494
  !e.isComposing && o.isCompositionStart && e.setIsComposing(!0), e.isComposing && o.isCompositionEnd && e.setIsComposing(!1);
495
495
  }
496
- if (t.id === Xe.id) {
496
+ if (t.id === et.id) {
497
497
  const o = t.params;
498
498
  if (o.isCompositionEnd) {
499
499
  const a = (c = (s = o.textRanges) == null ? void 0 : s[0]) == null ? void 0 : c.endOffset;
500
500
  a && e.setInputOffset({ start: e.inputOffset.start, end: a });
501
501
  }
502
502
  }
503
- if (t.id === ct.id) {
503
+ if (t.id === at.id) {
504
504
  const o = t.params;
505
- if (e.editPopup && o.direction === Ze.LEFT) {
505
+ if (e.editPopup && o.direction === Ve.LEFT) {
506
506
  const a = (l = o.len) != null ? l : 0;
507
507
  e.setInputOffset({ start: e.inputOffset.start, end: o.range.endOffset - a });
508
508
  }
509
509
  }
510
- if (t.id === at.id) {
510
+ if (t.id === dt.id) {
511
511
  const o = t.params;
512
- (o.direction === B.LEFT || o.direction === B.RIGHT) && e.editPopup && i.executeCommand(U.id);
512
+ (o.direction === W.LEFT || o.direction === W.RIGHT) && e.editPopup && i.executeCommand(Q.id);
513
513
  }
514
- if (t.id === dt.id) {
514
+ if (t.id === ut.id) {
515
515
  const o = n.getActiveTextRange();
516
516
  if (!e.editPopup || !o)
517
517
  return;
518
- o.endOffset <= e.editPopup.anchor && i.executeCommand(U.id);
518
+ o.endOffset <= e.editPopup.anchor && i.executeCommand(Q.id);
519
519
  }
520
520
  }
521
521
  })
@@ -523,20 +523,20 @@ let V = class extends Y {
523
523
  }
524
524
  _initMenuHandler() {
525
525
  this.disposeWithMe(this._docQuickInsertPopupService.onMenuSelected((t) => {
526
- t.id !== Re.id && Dt.has(t.id) && this._commandService.executeCommand(t.id);
526
+ t.id !== Re.id && Nt.has(t.id) && this._commandService.executeCommand(t.id);
527
527
  }));
528
528
  }
529
529
  };
530
- V = Et([
531
- E(0, Q),
532
- E(1, f(le)),
533
- E(2, f(I)),
534
- E(3, f(xe)),
535
- E(4, f(pe))
536
- ], V);
530
+ F = Tt([
531
+ T(0, H),
532
+ T(1, f(he)),
533
+ T(2, f(I)),
534
+ T(3, f(Me)),
535
+ T(4, f(le))
536
+ ], F);
537
537
  function X({ ref: t, ...e }) {
538
- const { icon: n, id: i, className: r, extend: s, ...c } = e, l = `univerjs-icon univerjs-icon-${i} ${r || ""}`.trim(), o = j(`_${Qt()}`);
539
- return Te(n, `${i}`, {
538
+ const { icon: n, id: i, className: r, extend: s, ...c } = e, l = `univerjs-icon univerjs-icon-${i} ${r || ""}`.trim(), o = B(`_${Ht()}`);
539
+ return Ue(n, `${i}`, {
540
540
  defIds: n.defIds,
541
541
  idSuffix: o.current
542
542
  }, {
@@ -545,14 +545,14 @@ function X({ ref: t, ...e }) {
545
545
  ...c
546
546
  }, s);
547
547
  }
548
- function Te(t, e, n, i, r) {
548
+ function Ue(t, e, n, i, r) {
549
549
  return J(t.tag, {
550
550
  key: e,
551
- ...Tt(t, n, r),
551
+ ...Ut(t, n, r),
552
552
  ...i
553
- }, (Ut(t, n).children || []).map((s, c) => Te(s, `${e}-${t.tag}-${c}`, n, void 0, r)));
553
+ }, (Qt(t, n).children || []).map((s, c) => Ue(s, `${e}-${t.tag}-${c}`, n, void 0, r)));
554
554
  }
555
- function Tt(t, e, n) {
555
+ function Ut(t, e, n) {
556
556
  const i = { ...t.attrs };
557
557
  n != null && n.colorChannel1 && i.fill === "colorChannel1" && (i.fill = n.colorChannel1), t.tag === "mask" && i.id && (i.id = i.id + e.idSuffix), Object.entries(i).forEach(([s, c]) => {
558
558
  s === "mask" && typeof c == "string" && (i[s] = c.replace(/url\(#(.*)\)/, `url(#$1${e.idSuffix})`));
@@ -562,7 +562,7 @@ function Tt(t, e, n) {
562
562
  typeof c == "string" && (i[s] = c.replace(/url\(#(.*)\)/, `url(#$1${e.idSuffix})`));
563
563
  })), i;
564
564
  }
565
- function Ut(t, e) {
565
+ function Qt(t, e) {
566
566
  var i;
567
567
  const { defIds: n } = e;
568
568
  return !n || n.length === 0 ? t : t.tag === "defs" && ((i = t.children) != null && i.length) ? {
@@ -576,11 +576,11 @@ function Ut(t, e) {
576
576
  } : r)
577
577
  } : t;
578
578
  }
579
- function Qt() {
579
+ function Ht() {
580
580
  return Math.random().toString(36).substring(2, 8);
581
581
  }
582
582
  X.displayName = "UniverIcon";
583
- const Ht = {
583
+ const Kt = {
584
584
  tag: "svg",
585
585
  attrs: {
586
586
  xmlns: "http://www.w3.org/2000/svg",
@@ -654,15 +654,15 @@ const Ht = {
654
654
  }
655
655
  }
656
656
  ]
657
- }, ce = ge(function(e, n) {
657
+ }, ae = me(function(e, n) {
658
658
  return J(X, Object.assign({}, e, {
659
659
  id: "divider-icon",
660
660
  ref: n,
661
- icon: Ht
661
+ icon: Kt
662
662
  }));
663
663
  });
664
- ce.displayName = "DividerIcon";
665
- const Kt = {
664
+ ae.displayName = "DividerIcon";
665
+ const Lt = {
666
666
  tag: "svg",
667
667
  attrs: {
668
668
  xmlns: "http://www.w3.org/2000/svg",
@@ -678,15 +678,15 @@ const Kt = {
678
678
  d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z"
679
679
  }
680
680
  }]
681
- }, Ue = ge(function(e, n) {
681
+ }, Qe = me(function(e, n) {
682
682
  return J(X, Object.assign({}, e, {
683
683
  id: "increase-icon",
684
684
  ref: n,
685
- icon: Kt
685
+ icon: Lt
686
686
  }));
687
687
  });
688
- Ue.displayName = "IncreaseIcon";
689
- const Lt = {
688
+ Qe.displayName = "IncreaseIcon";
689
+ const jt = {
690
690
  tag: "svg",
691
691
  attrs: {
692
692
  xmlns: "http://www.w3.org/2000/svg",
@@ -725,21 +725,21 @@ const Lt = {
725
725
  }]
726
726
  }],
727
727
  defIds: ["text-icon_clip0_1293_26"]
728
- }, ae = ge(function(e, n) {
728
+ }, de = me(function(e, n) {
729
729
  return J(X, Object.assign({}, e, {
730
730
  id: "text-icon",
731
731
  ref: n,
732
- icon: Lt
732
+ icon: jt
733
733
  }));
734
734
  });
735
- ae.displayName = "TextIcon";
736
- const Qe = "doc.quick-insert.button";
737
- var At = Object.getOwnPropertyDescriptor, jt = (t, e, n, i) => {
735
+ de.displayName = "TextIcon";
736
+ const He = "doc.quick-insert.button";
737
+ var At = Object.getOwnPropertyDescriptor, Bt = (t, e, n, i) => {
738
738
  for (var r = i > 1 ? void 0 : i ? At(e, n) : e, s = t.length - 1, c; s >= 0; s--)
739
739
  (c = t[s]) && (r = c(r) || r);
740
740
  return r;
741
- }, te = (t, e) => (n, i) => e(n, i, t);
742
- let F = class extends Y {
741
+ }, ne = (t, e) => (n, i) => e(n, i, t);
742
+ let G = class extends Y {
743
743
  constructor(e, n, i, r) {
744
744
  super();
745
745
  C(this, "_popup$", new A(null));
@@ -750,7 +750,7 @@ let F = class extends Y {
750
750
  return this._popup$.value;
751
751
  }
752
752
  _init() {
753
- this.disposeWithMe(fe([this._docEventManagerService.hoverParagraphLeftRealTime$, this._docEventManagerService.hoverParagraphRealTime$]).subscribe(([e, n]) => {
753
+ this.disposeWithMe(ge([this._docEventManagerService.hoverParagraphLeftRealTime$, this._docEventManagerService.hoverParagraphRealTime$]).subscribe(([e, n]) => {
754
754
  var s;
755
755
  const i = e != null ? e : n, r = this._context.unit.getDisabled();
756
756
  if (!i || r) {
@@ -761,7 +761,7 @@ let F = class extends Y {
761
761
  if (this._docQuickInsertPopupService.editPopup || i.startIndex === ((s = this.popup) == null ? void 0 : s.startIndex)) return;
762
762
  this._hideMenu(!0);
763
763
  const c = this._docCanvasPopManagerService.attachPopupToRect(i.firstLine, {
764
- componentKey: Qe,
764
+ componentKey: He,
765
765
  direction: "left-center"
766
766
  }, this._context.unit.getUnitId());
767
767
  this._popup$.next({
@@ -776,21 +776,21 @@ let F = class extends Y {
776
776
  this._docQuickInsertPopupService.editPopup || this.popup && (e || this.popup.disposable.canDispose()) && (this.popup.disposable.dispose(), this._popup$.next(null));
777
777
  }
778
778
  };
779
- F = jt([
780
- te(1, f(Pe)),
781
- te(2, f(I)),
782
- te(3, f(Se))
783
- ], F);
784
- const de = ({ className: t = "" }) => {
785
- const e = _(I), n = _(pe), i = _(he), r = T(se(() => n.getCurrentTypeOfUnit$(H.UNIVER_DOC), [n])), s = r && i.getRenderById(r.getUnitId()), c = s == null ? void 0 : s.with(F), l = _(ut), o = _(le), a = T(e.editPopup$), d = pt((u) => {
779
+ G = Bt([
780
+ ne(1, f(ye)),
781
+ ne(2, f(I)),
782
+ ne(3, f(Pe))
783
+ ], G);
784
+ const ue = ({ className: t = "" }) => {
785
+ const e = _(I), n = _(le), i = _(fe), r = U(oe(() => n.getCurrentTypeOfUnit$(K.UNIVER_DOC), [n])), s = r && i.getRenderById(r.getUnitId()), c = s == null ? void 0 : s.with(G), l = _(pt), o = _(he), a = U(e.editPopup$), d = lt((u) => {
786
786
  var P;
787
787
  const g = c == null ? void 0 : c.popup;
788
788
  if (!g)
789
789
  return;
790
790
  const S = e.popups, b = {
791
791
  keyword: "",
792
- menus$: fe(S.map((y) => y.menus$)).pipe(
793
- Me((y) => y.flat())
792
+ menus$: ge(S.map((y) => y.menus$)).pipe(
793
+ Oe((y) => y.flat())
794
794
  )
795
795
  };
796
796
  o.replaceDocRanges([{
@@ -807,7 +807,7 @@ const de = ({ className: t = "" }) => {
807
807
  return /* @__PURE__ */ h(
808
808
  "div",
809
809
  {
810
- className: re("univer-mr-1 univer-flex univer-cursor-pointer univer-items-center univer-gap-2.5 univer-rounded-full univer-p-1.5 univer-shadow-sm hover:univer-bg-gray-100 dark:!univer-text-gray-200 dark:hover:!univer-bg-gray-700", It, {
810
+ className: se("univer-mr-1 univer-flex univer-cursor-pointer univer-items-center univer-gap-2.5 univer-rounded-full univer-p-1.5 univer-shadow-sm hover:univer-bg-gray-100 dark:!univer-text-gray-200 dark:hover:!univer-bg-gray-700", St, {
811
811
  "univer-bg-gray-100 dark:!univer-bg-gray-700": a,
812
812
  "univer-bg-white dark:!univer-bg-gray-900": !a
813
813
  }, t),
@@ -815,7 +815,7 @@ const de = ({ className: t = "" }) => {
815
815
  tabIndex: 0,
816
816
  onClick: d,
817
817
  children: /* @__PURE__ */ h(
818
- Ue,
818
+ Qe,
819
819
  {
820
820
  className: "univer-text-gray-800 dark:!univer-text-gray-200"
821
821
  }
@@ -823,39 +823,39 @@ const de = ({ className: t = "" }) => {
823
823
  }
824
824
  );
825
825
  };
826
- de.componentKey = Qe;
827
- var Bt = Object.getOwnPropertyDescriptor, Wt = (t, e, n, i) => {
828
- for (var r = i > 1 ? void 0 : i ? Bt(e, n) : e, s = t.length - 1, c; s >= 0; s--)
826
+ ue.componentKey = He;
827
+ var Wt = Object.getOwnPropertyDescriptor, qt = (t, e, n, i) => {
828
+ for (var r = i > 1 ? void 0 : i ? Wt(e, n) : e, s = t.length - 1, c; s >= 0; s--)
829
829
  (c = t[s]) && (r = c(r) || r);
830
830
  return r;
831
- }, ne = (t, e) => (n, i) => e(n, i, t);
832
- let G = class extends Y {
831
+ }, ie = (t, e) => (n, i) => e(n, i, t);
832
+ let z = class extends Y {
833
833
  constructor(t, e, n) {
834
834
  super(), this._commandService = t, this._docQuickInsertPopupService = e, this._componentManager = n, this._initCommands(), this._initComponents(), this._initMenus();
835
835
  }
836
836
  _initCommands() {
837
837
  [
838
- Oe,
839
- we,
840
- U
838
+ be,
839
+ ke,
840
+ Q
841
841
  ].forEach((t) => {
842
842
  this.disposeWithMe(this._commandService.registerCommand(t));
843
843
  });
844
844
  }
845
845
  _initComponents() {
846
846
  [
847
- [Z.componentKey, Z],
848
- [W.componentKey, W],
847
+ [V.componentKey, V],
849
848
  [q.componentKey, q],
850
- [ce.displayName, ce],
849
+ [Z.componentKey, Z],
851
850
  [ae.displayName, ae],
852
- [de.componentKey, de]
851
+ [de.displayName, de],
852
+ [ue.componentKey, ue]
853
853
  ].forEach(([e, n]) => {
854
854
  e && this.disposeWithMe(this._componentManager.register(e, n));
855
855
  }), [
856
856
  {
857
857
  keyword: "/",
858
- menus$: ft($t),
858
+ menus$: gt(Dt),
859
859
  // only show when the cursor is at the beginning of a line
860
860
  preconditions: (e) => {
861
861
  var n;
@@ -869,56 +869,60 @@ let G = class extends Y {
869
869
  _initMenus() {
870
870
  }
871
871
  };
872
- G = Wt([
873
- ne(0, Q),
874
- ne(1, f(I)),
875
- ne(2, f(ye))
876
- ], G);
877
- const qt = "docs-quick-insert-ui.config", Ie = {};
878
- var Zt = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, Ft = (t, e, n) => e in t ? Zt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Gt = (t, e, n, i) => {
879
- for (var r = i > 1 ? void 0 : i ? Vt(e, n) : e, s = t.length - 1, c; s >= 0; s--)
872
+ z = qt([
873
+ ie(0, H),
874
+ ie(1, f(I)),
875
+ ie(2, f(xe))
876
+ ], z);
877
+ const Zt = "@univerjs/docs-quick-insert-ui", Vt = "0.17.0", Ke = {
878
+ name: Zt,
879
+ version: Vt
880
+ }, Ft = "docs-quick-insert-ui.config", Se = {};
881
+ var Gt = Object.defineProperty, zt = Object.getOwnPropertyDescriptor, Yt = (t, e, n) => e in t ? Gt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Jt = (t, e, n, i) => {
882
+ for (var r = i > 1 ? void 0 : i ? zt(e, n) : e, s = t.length - 1, c; s >= 0; s--)
880
883
  (c = t[s]) && (r = c(r) || r);
881
884
  return r;
882
- }, ie = (t, e) => (n, i) => e(n, i, t), He = (t, e, n) => Ft(t, typeof e != "symbol" ? e + "" : e, n);
883
- const zt = "DOC_QUICK_INSERT_UI_PLUGIN";
884
- let z = class extends ze {
885
- constructor(t = Ie, e, n, i) {
885
+ }, re = (t, e) => (n, i) => e(n, i, t), ee = (t, e, n) => Yt(t, typeof e != "symbol" ? e + "" : e, n);
886
+ let $ = class extends Ye {
887
+ constructor(t = Se, e, n, i) {
886
888
  super(), this._config = t, this._injector = e, this._renderManagerSrv = n, this._configService = i;
887
- const { menu: r, ...s } = Ye(
889
+ const { menu: r, ...s } = Je(
888
890
  {},
889
- Ie,
891
+ Se,
890
892
  this._config
891
893
  );
892
- r && this._configService.setConfig("menu", r, { merge: !0 }), this._configService.setConfig(qt, s);
894
+ r && this._configService.setConfig("menu", r, { merge: !0 }), this._configService.setConfig(Ft, s);
893
895
  }
894
896
  onStarting() {
895
897
  [
896
- [G],
897
- [V],
898
+ [z],
899
+ [F],
898
900
  [I]
899
- ].forEach((e) => this._injector.add(e)), this._injector.get(G);
901
+ ].forEach((e) => this._injector.add(e)), this._injector.get(z);
900
902
  }
901
903
  onRendered() {
902
- this._injector.get(V), this._injector.get(I), [
903
- [F]
904
+ this._injector.get(F), this._injector.get(I), [
905
+ [G]
904
906
  ].forEach((t) => {
905
- this._renderManagerSrv.registerRenderModule(H.UNIVER_DOC, t);
907
+ this._renderManagerSrv.registerRenderModule(K.UNIVER_DOC, t);
906
908
  });
907
909
  }
908
910
  };
909
- He(z, "type", H.UNIVER_DOC);
910
- He(z, "pluginName", zt);
911
- z = Gt([
912
- Ve(Mt, xt, Pt, yt, lt),
913
- ie(1, f(Fe)),
914
- ie(2, f(he)),
915
- ie(3, Ge)
916
- ], z);
911
+ ee($, "type", K.UNIVER_DOC);
912
+ ee($, "pluginName", "DOC_QUICK_INSERT_UI_PLUGIN");
913
+ ee($, "packageName", Ke.name);
914
+ ee($, "version", Ke.version);
915
+ $ = Jt([
916
+ Fe(Ot, Mt, yt, xt, ht),
917
+ re(1, f(Ge)),
918
+ re(2, f(fe)),
919
+ re(3, ze)
920
+ ], $);
917
921
  export {
918
922
  I as DocQuickInsertPopupService,
919
- V as DocQuickInsertTriggerController,
920
- G as DocQuickInsertUIController,
921
- Ot as KeywordInputPlaceholderComponentKey,
922
- bt as QuickInsertPlaceholderComponentKey,
923
- z as UniverDocsQuickInsertUIPlugin
923
+ F as DocQuickInsertTriggerController,
924
+ z as DocQuickInsertUIController,
925
+ bt as KeywordInputPlaceholderComponentKey,
926
+ wt as QuickInsertPlaceholderComponentKey,
927
+ $ as UniverDocsQuickInsertUIPlugin
924
928
  };