@univerjs/slides-ui 0.6.10-nightly.202504161609 → 0.6.10

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/es/index.js CHANGED
@@ -7,8 +7,8 @@ import { ObjectProvider as Mn, SLIDE_KEY as oe } from "@univerjs/slides";
7
7
  import { useDependency as x, ISidebarService as Mt, ICanvasPopupService as wn, ILayoutService as Nn, KeyCode as M, ILocalFileService as Dn, useObservable as Un, DISABLE_AUTO_FOCUS_KEY as at, getMenuHiddenObservable as fe, MenuItemType as _e, RibbonStartGroup as Vn, MetaKeys as Bn, IMenuManagerService as jn, ComponentManager as Ln, IUIPartsService as An, IShortcutService as $n, BuiltInUIPart as ct, connectInjector as lt } from "@univerjs/ui";
8
8
  import { jsxs as R, jsx as u } from "react/jsx-runtime";
9
9
  import { clsx as y, Button as be, Dropdown as wt, ColorPicker as Hn, InputNumber as de, Scrollbar as Fn } from "@univerjs/design";
10
- import Nt, { forwardRef as $, useRef as Dt, createElement as H, useState as G, useEffect as me, useMemo as zn, useCallback as dt } from "react";
11
- import { BehaviorSubject as Q, Subject as Ut, filter as Wn, takeUntil as ut } from "rxjs";
10
+ import Nt, { forwardRef as $, useRef as Dt, createElement as H, useState as G, useEffect as me, useMemo as Wn, useCallback as dt } from "react";
11
+ import { BehaviorSubject as Q, Subject as Ut, filter as zn, takeUntil as ut } from "rxjs";
12
12
  import { DocSelectionManagerService as kn, DocSkeletonManagerService as gt, RichTextEditingMutation as Kn } from "@univerjs/docs";
13
13
  import { IEditorService as Ye, DocSelectionRenderService as ht, VIEWPORT_KEY as mt, DOCS_COMPONENT_MAIN_LAYER_INDEX as Gn, MoveSelectionOperation as Xn, MoveCursorOperation as Yn, DOCS_VIEW_KEY as Zn, DeleteLeftCommand as qn } from "@univerjs/docs-ui";
14
14
  import { DRAWING_IMAGE_ALLOW_IMAGE_LIST as Jn, IImageIoService as Qn, getImageSize as ei } from "@univerjs/drawing";
@@ -407,22 +407,22 @@ var Ci = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
407
407
  }));
408
408
  });
409
409
  Ft.displayName = "MoveUpSingle";
410
- var fi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, zt = $(function(i, e) {
410
+ var fi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, Wt = $(function(i, e) {
411
411
  return H(F, Object.assign({}, i, {
412
412
  id: "paint-bucket",
413
413
  ref: e,
414
414
  icon: fi
415
415
  }));
416
416
  });
417
- zt.displayName = "PaintBucket";
418
- var _i = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.66695 1.33496C2.29968 1.33496 2.00195 1.63269 2.00195 1.99996V3.64439C2.00195 4.01166 2.29968 4.30939 2.66695 4.30939C3.03422 4.30939 3.33195 4.01166 3.33195 3.64439V2.66496H7.33521V13.335H5.3337C4.96643 13.335 4.6687 13.6327 4.6687 14C4.6687 14.3672 4.96643 14.665 5.3337 14.665H10.667C11.0343 14.665 11.332 14.3672 11.332 14C11.332 13.6327 11.0343 13.335 10.667 13.335H8.66521V2.66496H12.6686V3.64439C12.6686 4.01166 12.9664 4.30939 13.3336 4.30939C13.7009 4.30939 13.9986 4.01166 13.9986 3.64439V1.99996C13.9986 1.63269 13.7009 1.33496 13.3336 1.33496H2.66695Z" } }] }, Wt = $(function(i, e) {
417
+ Wt.displayName = "PaintBucket";
418
+ var _i = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.66695 1.33496C2.29968 1.33496 2.00195 1.63269 2.00195 1.99996V3.64439C2.00195 4.01166 2.29968 4.30939 2.66695 4.30939C3.03422 4.30939 3.33195 4.01166 3.33195 3.64439V2.66496H7.33521V13.335H5.3337C4.96643 13.335 4.6687 13.6327 4.6687 14C4.6687 14.3672 4.96643 14.665 5.3337 14.665H10.667C11.0343 14.665 11.332 14.3672 11.332 14C11.332 13.6327 11.0343 13.335 10.667 13.335H8.66521V2.66496H12.6686V3.64439C12.6686 4.01166 12.9664 4.30939 13.3336 4.30939C13.7009 4.30939 13.9986 4.01166 13.9986 3.64439V1.99996C13.9986 1.63269 13.7009 1.33496 13.3336 1.33496H2.66695Z" } }] }, zt = $(function(i, e) {
419
419
  return H(F, Object.assign({}, i, {
420
420
  id: "text-single",
421
421
  ref: e,
422
422
  icon: _i
423
423
  }));
424
424
  });
425
- Wt.displayName = "TextSingle";
425
+ zt.displayName = "TextSingle";
426
426
  var Si = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.82994 1.40913C7.88746 1.35161 7.95376 1.30821 8.02453 1.27893C8.09527 1.24959 8.17285 1.2334 8.2542 1.2334C8.33555 1.2334 8.41313 1.24959 8.48387 1.27893C8.55464 1.30821 8.62094 1.35161 8.67846 1.40913L10.6785 3.40913C10.9128 3.64345 10.9128 4.02335 10.6785 4.25766C10.4441 4.49198 10.0642 4.49198 9.82994 4.25766L8.8542 3.28193V5.8334C8.8542 6.16477 8.58557 6.4334 8.2542 6.4334C7.92283 6.4334 7.6542 6.16477 7.6542 5.8334V3.28193L6.67846 4.25766C6.44415 4.49198 6.06425 4.49198 5.82994 4.25766C5.59562 4.02335 5.59562 3.64345 5.82994 3.40913L7.82994 1.40913Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.50439 9C1.50439 8.11634 2.22074 7.4 3.10439 7.4H13.4044C14.288 7.4 15.0044 8.11634 15.0044 9 15.0044 9.88366 14.2881 10.6 13.4044 10.6H3.1044C2.22074 10.6 1.50439 9.88366 1.50439 9zM3.10439 8.6C2.88348 8.6 2.70439 8.77909 2.70439 9 2.70439 9.22091 2.88348 9.4 3.1044 9.4H13.4044C13.6253 9.4 13.8044 9.22091 13.8044 9 13.8044 8.77909 13.6253 8.6 13.4044 8.6H3.10439zM1.6543 13.1665C1.6543 12.2828 2.37064 11.5665 3.2543 11.5665H13.5543C14.438 11.5665 15.1543 12.2828 15.1543 13.1665 15.1543 14.0502 14.438 14.7665 13.5543 14.7665H3.2543C2.37064 14.7665 1.6543 14.0502 1.6543 13.1665zM3.2543 12.7665C3.03338 12.7665 2.8543 12.9456 2.8543 13.1665 2.8543 13.3874 3.03338 13.5665 3.2543 13.5665H13.5543C13.7752 13.5665 13.9543 13.3874 13.9543 13.1665 13.9543 12.9456 13.7752 12.7665 13.5543 12.7665H3.2543z", fillRule: "evenodd", clipRule: "evenodd" } }] }, kt = $(function(i, e) {
427
427
  return H(F, Object.assign({}, i, {
428
428
  id: "topmost-single",
@@ -477,7 +477,7 @@ function Mi(i) {
477
477
  return /* @__PURE__ */ R("div", { className: g.imageCommonPanelGrid, children: [
478
478
  /* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelTitle), children: /* @__PURE__ */ u("div", { children: n.t("image-panel.arrange.title") }) }) }),
479
479
  /* @__PURE__ */ R("div", { className: g.imageCommonPanelRow, children: [
480
- /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { size: "small", onClick: () => {
480
+ /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { onClick: () => {
481
481
  d(
482
482
  0
483
483
  /* forward */
@@ -486,7 +486,7 @@ function Mi(i) {
486
486
  /* @__PURE__ */ u(Ft, {}),
487
487
  n.t("image-panel.arrange.forward")
488
488
  ] }) }) }),
489
- /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { size: "small", onClick: () => {
489
+ /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { onClick: () => {
490
490
  d(
491
491
  1
492
492
  /* backward */
@@ -497,7 +497,7 @@ function Mi(i) {
497
497
  ] }) }) })
498
498
  ] }),
499
499
  /* @__PURE__ */ R("div", { className: g.imageCommonPanelRow, children: [
500
- /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { size: "small", onClick: () => {
500
+ /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { onClick: () => {
501
501
  d(
502
502
  2
503
503
  /* front */
@@ -506,7 +506,7 @@ function Mi(i) {
506
506
  /* @__PURE__ */ u(kt, {}),
507
507
  n.t("image-panel.arrange.front")
508
508
  ] }) }) }),
509
- /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { size: "small", onClick: () => {
509
+ /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { onClick: () => {
510
510
  d(
511
511
  3
512
512
  /* back */
@@ -561,7 +561,7 @@ function wi(i) {
561
561
  }
562
562
  ) }),
563
563
  children: /* @__PURE__ */ R("a", { className: g.uiPluginSheetsBorderPanelButton, children: [
564
- /* @__PURE__ */ u(zt, { extend: { colorChannel1: d != null ? d : "rgb(var(--primary-color))" } }),
564
+ /* @__PURE__ */ u(Wt, { extend: { colorChannel1: d != null ? d : "rgb(var(--primary-color))" } }),
565
565
  /* @__PURE__ */ u("span", { className: g.uiPluginSheetsBorderPanelMoreIcon, children: /* @__PURE__ */ u(Ze, {}) })
566
566
  ] })
567
567
  }
@@ -583,7 +583,7 @@ function Ni(i) {
583
583
  left: f = 0,
584
584
  top: C = 0,
585
585
  angle: p = 0
586
- } = l, [m, _] = G(d), [b, P] = G(v), [w, D] = G(f), [j, O] = G(C), [K, ae] = G(p), z = (S) => {
586
+ } = l, [m, _] = G(d), [b, P] = G(v), [w, D] = G(f), [j, O] = G(C), [K, ae] = G(p), W = (S) => {
587
587
  const { objects: ce } = S, le = ce.values().next().value, {
588
588
  width: sn = 0,
589
589
  height: on = 0,
@@ -595,15 +595,15 @@ function Ni(i) {
595
595
  };
596
596
  me(() => {
597
597
  const S = c.changeStart$.subscribe((le) => {
598
- z(le);
598
+ W(le);
599
599
  }), ce = c.changing$.subscribe((le) => {
600
- z(le);
600
+ W(le);
601
601
  });
602
602
  return () => {
603
603
  ce.unsubscribe(), S.unsubscribe();
604
604
  };
605
605
  }, []);
606
- function W(S) {
606
+ function z(S) {
607
607
  !S || !l || (s.executeCommand(k.id, {
608
608
  pageId: e,
609
609
  oKey: l.oKey,
@@ -666,7 +666,7 @@ function Ni(i) {
666
666
  min: 1,
667
667
  value: m,
668
668
  onChange: (S) => {
669
- W(S);
669
+ z(S);
670
670
  }
671
671
  }
672
672
  ) }) })
@@ -839,8 +839,8 @@ let Te = class extends Ve {
839
839
  }
840
840
  _createObjectPositionObserver(i, e) {
841
841
  const n = (() => {
842
- var z, W, te, ne;
843
- const { scene: o, engine: a } = e, { left: c, top: h, width: l, height: d } = i, v = (o.width - ((W = (z = e.mainComponent) == null ? void 0 : z.width) != null ? W : 0)) / 2, f = (o.height - ((ne = (te = e.mainComponent) == null ? void 0 : te.height) != null ? ne : 0)) / 2, C = {
842
+ var W, z, te, ne;
843
+ const { scene: o, engine: a } = e, { left: c, top: h, width: l, height: d } = i, v = (o.width - ((z = (W = e.mainComponent) == null ? void 0 : W.width) != null ? z : 0)) / 2, f = (o.height - ((ne = (te = e.mainComponent) == null ? void 0 : te.height) != null ? ne : 0)) / 2, C = {
844
844
  left: c,
845
845
  right: c + l,
846
846
  top: h,
@@ -1154,7 +1154,7 @@ Fe = Fi([
1154
1154
  je(1, Ce),
1155
1155
  je(2, Y)
1156
1156
  ], Fe);
1157
- class zi {
1157
+ class Wi {
1158
1158
  constructor() {
1159
1159
  I(this, "_state", null);
1160
1160
  I(this, "_rect", null);
@@ -1191,13 +1191,13 @@ class zi {
1191
1191
  const Qe = Pt(
1192
1192
  "univer.slide-editor-manager.service"
1193
1193
  );
1194
- var Z = /* @__PURE__ */ ((i) => (i[i.InitialState = 0] = "InitialState", i[i.StartEditor = 1] = "StartEditor", i[i.CursorChange = 2] = "CursorChange", i))(Z || {}), Wi = Object.getOwnPropertyDescriptor, ki = (i, e, t, n) => {
1195
- for (var r = n > 1 ? void 0 : n ? Wi(e, t) : e, s = i.length - 1, o; s >= 0; s--)
1194
+ var Z = /* @__PURE__ */ ((i) => (i[i.InitialState = 0] = "InitialState", i[i.StartEditor = 1] = "StartEditor", i[i.CursorChange = 2] = "CursorChange", i))(Z || {}), zi = Object.getOwnPropertyDescriptor, ki = (i, e, t, n) => {
1195
+ for (var r = n > 1 ? void 0 : n ? zi(e, t) : e, s = i.length - 1, o; s >= 0; s--)
1196
1196
  (o = i[s]) && (r = o(r) || r);
1197
1197
  return r;
1198
1198
  }, A = (i, e) => (t, n) => e(t, n, i);
1199
1199
  const Ct = -1e3, ft = 5, Ki = 2;
1200
- let ze = class extends Ve {
1200
+ let We = class extends Ve {
1201
1201
  constructor(e, t, n, r, s, o, a, c, h, l, d, v) {
1202
1202
  super();
1203
1203
  /**
@@ -1248,7 +1248,7 @@ let ze = class extends Ve {
1248
1248
  return (t = this._renderManagerService.getRenderById(e)) == null ? void 0 : t.with(gt).getViewModel();
1249
1249
  }
1250
1250
  _initialCursorSync(e) {
1251
- e.add(this._cellEditorManagerService.focus$.pipe(Wn((t) => !!t)).subscribe(() => {
1251
+ e.add(this._cellEditorManagerService.focus$.pipe(zn((t) => !!t)).subscribe(() => {
1252
1252
  var t;
1253
1253
  (t = $e(E.UNIVER_DOC, this._instanceSrv, this._renderManagerService)) == null || t.with(ht).sync();
1254
1254
  }));
@@ -1346,8 +1346,8 @@ let ze = class extends Ve {
1346
1346
  let { startX: b, startY: P } = n;
1347
1347
  b += r.left, P += r.top;
1348
1348
  const { document: w, scene: D, engine: j } = c, O = D.getViewport(mt.VIEW_MAIN), K = document.body.clientHeight - P - r.top - Ki * 2, ae = document.body.clientWidth - b - r.left;
1349
- let z = t, W = O == null ? void 0 : O.getScrollBar();
1350
- z > K ? (z = K, W == null ? O && new yt(O, { enableHorizontal: !1, barSize: 8 }) : O == null || O.resetCanvasSizeAndUpdateScroll()) : (W = null, (S = O == null ? void 0 : O.getScrollBar()) == null || S.dispose()), e += (W == null ? void 0 : W.barSize) || 0, e = Math.min(e, ae), b -= se, P -= se, this._addBackground(D, e / o, t / a, s);
1349
+ let W = t, z = O == null ? void 0 : O.getScrollBar();
1350
+ W > K ? (W = K, z == null ? O && new yt(O, { enableHorizontal: !1, barSize: 8 }) : O == null || O.resetCanvasSizeAndUpdateScroll()) : (z = null, (S = O == null ? void 0 : O.getScrollBar()) == null || S.dispose()), e += (z == null ? void 0 : z.barSize) || 0, e = Math.min(e, ae), b -= se, P -= se, this._addBackground(D, e / o, t / a, s);
1351
1351
  const { scaleX: te, scaleY: ne } = D.getPrecisionScale();
1352
1352
  D.transformByState({
1353
1353
  width: e * _ / o,
@@ -1357,7 +1357,7 @@ let ze = class extends Ve {
1357
1357
  }), w.resize(e / o, t / a), setTimeout(() => {
1358
1358
  j.resizeBySize(
1359
1359
  ot(e, te),
1360
- ot(z, ne)
1360
+ ot(W, ne)
1361
1361
  );
1362
1362
  }, 0);
1363
1363
  const Se = this._layoutService.getContentElement().getBoundingClientRect(), Ie = d.getBoundingClientRect();
@@ -1365,7 +1365,7 @@ let ze = class extends Ve {
1365
1365
  startX: b,
1366
1366
  startY: P,
1367
1367
  endX: e * _ + b,
1368
- endY: z * _ + P,
1368
+ endY: W * _ + P,
1369
1369
  show: !0
1370
1370
  });
1371
1371
  }
@@ -1533,7 +1533,7 @@ let ze = class extends Ve {
1533
1533
  });
1534
1534
  }
1535
1535
  };
1536
- ze = ki([
1536
+ We = ki([
1537
1537
  A(1, Nn),
1538
1538
  A(2, _n),
1539
1539
  A(3, Ce),
@@ -1545,7 +1545,7 @@ ze = ki([
1545
1545
  A(9, B),
1546
1546
  A(10, X(ee)),
1547
1547
  A(11, Ye)
1548
- ], ze);
1548
+ ], We);
1549
1549
  function Gi(i, e) {
1550
1550
  if (i == null)
1551
1551
  return;
@@ -1565,7 +1565,7 @@ var Xi = Object.getOwnPropertyDescriptor, Yi = (i, e, t, n) => {
1565
1565
  (o = i[s]) && (r = o(r) || r);
1566
1566
  return r;
1567
1567
  }, Le = (i, e) => (t, n) => e(t, n, i);
1568
- let We = class extends pe {
1568
+ let ze = class extends pe {
1569
1569
  constructor(e, t, n, r) {
1570
1570
  super();
1571
1571
  /**
@@ -1673,11 +1673,11 @@ let We = class extends pe {
1673
1673
  this._editorBridgeService.changeVisible({ visible: e, eventType: J.PointerDown, unitId: t });
1674
1674
  }
1675
1675
  };
1676
- We = Yi([
1676
+ ze = Yi([
1677
1677
  Le(1, T),
1678
1678
  Le(2, B),
1679
1679
  Le(3, Je)
1680
- ], We);
1680
+ ], ze);
1681
1681
  const Xt = {
1682
1682
  id: "slide.operation.activate-slide",
1683
1683
  type: V.OPERATION,
@@ -1863,7 +1863,7 @@ function cr() {
1863
1863
  const i = x(T), e = x(B), t = x(Y), n = x(ee), r = Dt(null), s = i.getCurrentUnitForType(E.UNIVER_SLIDE), o = s == null ? void 0 : s.getPages(), a = s == null ? void 0 : s.getPageOrder();
1864
1864
  if (!o || !a)
1865
1865
  return null;
1866
- const c = a.map((m) => o[m]), [h, l] = G((p = (C = s == null ? void 0 : s.getActivePage()) == null ? void 0 : C.id) != null ? p : null), d = zn(() => c.map(() => Nt.createRef()), [c]);
1866
+ const c = a.map((m) => o[m]), [h, l] = G((p = (C = s == null ? void 0 : s.getActivePage()) == null ? void 0 : C.id) != null ? p : null), d = Wn(() => c.map(() => Nt.createRef()), [c]);
1867
1867
  me(() => {
1868
1868
  const m = s == null ? void 0 : s.activePage$.subscribe((_) => {
1869
1869
  var P;
@@ -2093,7 +2093,7 @@ let De = class extends Ve {
2093
2093
  }
2094
2094
  _initCustomComponents() {
2095
2095
  const i = this._componentManager;
2096
- this.disposeWithMe(i.register(Jt, jt)), this.disposeWithMe(i.register(nn, Wt)), this.disposeWithMe(i.register(en, $t)), this.disposeWithMe(i.register(Gt, tr)), this.disposeWithMe(i.register(Oe, Vi));
2096
+ this.disposeWithMe(i.register(Jt, jt)), this.disposeWithMe(i.register(nn, zt)), this.disposeWithMe(i.register(en, $t)), this.disposeWithMe(i.register(Gt, tr)), this.disposeWithMe(i.register(Oe, Vi));
2097
2097
  }
2098
2098
  _initCommands() {
2099
2099
  [
@@ -2193,7 +2193,7 @@ let St = (Re = class extends En {
2193
2193
  [Ue],
2194
2194
  [Je, { useClass: Fe }],
2195
2195
  // used by SlideUIController --> EditorContainer
2196
- [Qe, { useClass: zi }],
2196
+ [Qe, { useClass: Wi }],
2197
2197
  [Te]
2198
2198
  ], this._config.override).forEach((i) => this._injector.add(i));
2199
2199
  }
@@ -2223,8 +2223,8 @@ let St = (Re = class extends En {
2223
2223
  [
2224
2224
  // need slideEditorBridgeService
2225
2225
  // need TextSelectionRenderService which init by EditorContainer
2226
- [We],
2227
- [ze]
2226
+ [ze],
2227
+ [We]
2228
2228
  ].forEach((i) => {
2229
2229
  this.disposeWithMe(this._renderManagerService.registerRenderModule(E.UNIVER_SLIDE, i));
2230
2230
  }), this._markSlideAsFocused(), this._injector.get(De);
package/lib/index.js CHANGED
@@ -7,8 +7,8 @@ import { ObjectProvider as Mn, SLIDE_KEY as oe } from "@univerjs/slides";
7
7
  import { useDependency as x, ISidebarService as Mt, ICanvasPopupService as wn, ILayoutService as Nn, KeyCode as M, ILocalFileService as Dn, useObservable as Un, DISABLE_AUTO_FOCUS_KEY as at, getMenuHiddenObservable as fe, MenuItemType as _e, RibbonStartGroup as Vn, MetaKeys as Bn, IMenuManagerService as jn, ComponentManager as Ln, IUIPartsService as An, IShortcutService as $n, BuiltInUIPart as ct, connectInjector as lt } from "@univerjs/ui";
8
8
  import { jsxs as R, jsx as u } from "react/jsx-runtime";
9
9
  import { clsx as y, Button as be, Dropdown as wt, ColorPicker as Hn, InputNumber as de, Scrollbar as Fn } from "@univerjs/design";
10
- import Nt, { forwardRef as $, useRef as Dt, createElement as H, useState as G, useEffect as me, useMemo as zn, useCallback as dt } from "react";
11
- import { BehaviorSubject as Q, Subject as Ut, filter as Wn, takeUntil as ut } from "rxjs";
10
+ import Nt, { forwardRef as $, useRef as Dt, createElement as H, useState as G, useEffect as me, useMemo as Wn, useCallback as dt } from "react";
11
+ import { BehaviorSubject as Q, Subject as Ut, filter as zn, takeUntil as ut } from "rxjs";
12
12
  import { DocSelectionManagerService as kn, DocSkeletonManagerService as gt, RichTextEditingMutation as Kn } from "@univerjs/docs";
13
13
  import { IEditorService as Ye, DocSelectionRenderService as ht, VIEWPORT_KEY as mt, DOCS_COMPONENT_MAIN_LAYER_INDEX as Gn, MoveSelectionOperation as Xn, MoveCursorOperation as Yn, DOCS_VIEW_KEY as Zn, DeleteLeftCommand as qn } from "@univerjs/docs-ui";
14
14
  import { DRAWING_IMAGE_ALLOW_IMAGE_LIST as Jn, IImageIoService as Qn, getImageSize as ei } from "@univerjs/drawing";
@@ -407,22 +407,22 @@ var Ci = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
407
407
  }));
408
408
  });
409
409
  Ft.displayName = "MoveUpSingle";
410
- var fi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, zt = $(function(i, e) {
410
+ var fi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, Wt = $(function(i, e) {
411
411
  return H(F, Object.assign({}, i, {
412
412
  id: "paint-bucket",
413
413
  ref: e,
414
414
  icon: fi
415
415
  }));
416
416
  });
417
- zt.displayName = "PaintBucket";
418
- var _i = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.66695 1.33496C2.29968 1.33496 2.00195 1.63269 2.00195 1.99996V3.64439C2.00195 4.01166 2.29968 4.30939 2.66695 4.30939C3.03422 4.30939 3.33195 4.01166 3.33195 3.64439V2.66496H7.33521V13.335H5.3337C4.96643 13.335 4.6687 13.6327 4.6687 14C4.6687 14.3672 4.96643 14.665 5.3337 14.665H10.667C11.0343 14.665 11.332 14.3672 11.332 14C11.332 13.6327 11.0343 13.335 10.667 13.335H8.66521V2.66496H12.6686V3.64439C12.6686 4.01166 12.9664 4.30939 13.3336 4.30939C13.7009 4.30939 13.9986 4.01166 13.9986 3.64439V1.99996C13.9986 1.63269 13.7009 1.33496 13.3336 1.33496H2.66695Z" } }] }, Wt = $(function(i, e) {
417
+ Wt.displayName = "PaintBucket";
418
+ var _i = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.66695 1.33496C2.29968 1.33496 2.00195 1.63269 2.00195 1.99996V3.64439C2.00195 4.01166 2.29968 4.30939 2.66695 4.30939C3.03422 4.30939 3.33195 4.01166 3.33195 3.64439V2.66496H7.33521V13.335H5.3337C4.96643 13.335 4.6687 13.6327 4.6687 14C4.6687 14.3672 4.96643 14.665 5.3337 14.665H10.667C11.0343 14.665 11.332 14.3672 11.332 14C11.332 13.6327 11.0343 13.335 10.667 13.335H8.66521V2.66496H12.6686V3.64439C12.6686 4.01166 12.9664 4.30939 13.3336 4.30939C13.7009 4.30939 13.9986 4.01166 13.9986 3.64439V1.99996C13.9986 1.63269 13.7009 1.33496 13.3336 1.33496H2.66695Z" } }] }, zt = $(function(i, e) {
419
419
  return H(F, Object.assign({}, i, {
420
420
  id: "text-single",
421
421
  ref: e,
422
422
  icon: _i
423
423
  }));
424
424
  });
425
- Wt.displayName = "TextSingle";
425
+ zt.displayName = "TextSingle";
426
426
  var Si = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.82994 1.40913C7.88746 1.35161 7.95376 1.30821 8.02453 1.27893C8.09527 1.24959 8.17285 1.2334 8.2542 1.2334C8.33555 1.2334 8.41313 1.24959 8.48387 1.27893C8.55464 1.30821 8.62094 1.35161 8.67846 1.40913L10.6785 3.40913C10.9128 3.64345 10.9128 4.02335 10.6785 4.25766C10.4441 4.49198 10.0642 4.49198 9.82994 4.25766L8.8542 3.28193V5.8334C8.8542 6.16477 8.58557 6.4334 8.2542 6.4334C7.92283 6.4334 7.6542 6.16477 7.6542 5.8334V3.28193L6.67846 4.25766C6.44415 4.49198 6.06425 4.49198 5.82994 4.25766C5.59562 4.02335 5.59562 3.64345 5.82994 3.40913L7.82994 1.40913Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.50439 9C1.50439 8.11634 2.22074 7.4 3.10439 7.4H13.4044C14.288 7.4 15.0044 8.11634 15.0044 9 15.0044 9.88366 14.2881 10.6 13.4044 10.6H3.1044C2.22074 10.6 1.50439 9.88366 1.50439 9zM3.10439 8.6C2.88348 8.6 2.70439 8.77909 2.70439 9 2.70439 9.22091 2.88348 9.4 3.1044 9.4H13.4044C13.6253 9.4 13.8044 9.22091 13.8044 9 13.8044 8.77909 13.6253 8.6 13.4044 8.6H3.10439zM1.6543 13.1665C1.6543 12.2828 2.37064 11.5665 3.2543 11.5665H13.5543C14.438 11.5665 15.1543 12.2828 15.1543 13.1665 15.1543 14.0502 14.438 14.7665 13.5543 14.7665H3.2543C2.37064 14.7665 1.6543 14.0502 1.6543 13.1665zM3.2543 12.7665C3.03338 12.7665 2.8543 12.9456 2.8543 13.1665 2.8543 13.3874 3.03338 13.5665 3.2543 13.5665H13.5543C13.7752 13.5665 13.9543 13.3874 13.9543 13.1665 13.9543 12.9456 13.7752 12.7665 13.5543 12.7665H3.2543z", fillRule: "evenodd", clipRule: "evenodd" } }] }, kt = $(function(i, e) {
427
427
  return H(F, Object.assign({}, i, {
428
428
  id: "topmost-single",
@@ -477,7 +477,7 @@ function Mi(i) {
477
477
  return /* @__PURE__ */ R("div", { className: g.imageCommonPanelGrid, children: [
478
478
  /* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelTitle), children: /* @__PURE__ */ u("div", { children: n.t("image-panel.arrange.title") }) }) }),
479
479
  /* @__PURE__ */ R("div", { className: g.imageCommonPanelRow, children: [
480
- /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { size: "small", onClick: () => {
480
+ /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { onClick: () => {
481
481
  d(
482
482
  0
483
483
  /* forward */
@@ -486,7 +486,7 @@ function Mi(i) {
486
486
  /* @__PURE__ */ u(Ft, {}),
487
487
  n.t("image-panel.arrange.forward")
488
488
  ] }) }) }),
489
- /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { size: "small", onClick: () => {
489
+ /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { onClick: () => {
490
490
  d(
491
491
  1
492
492
  /* backward */
@@ -497,7 +497,7 @@ function Mi(i) {
497
497
  ] }) }) })
498
498
  ] }),
499
499
  /* @__PURE__ */ R("div", { className: g.imageCommonPanelRow, children: [
500
- /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { size: "small", onClick: () => {
500
+ /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { onClick: () => {
501
501
  d(
502
502
  2
503
503
  /* front */
@@ -506,7 +506,7 @@ function Mi(i) {
506
506
  /* @__PURE__ */ u(kt, {}),
507
507
  n.t("image-panel.arrange.front")
508
508
  ] }) }) }),
509
- /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { size: "small", onClick: () => {
509
+ /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { onClick: () => {
510
510
  d(
511
511
  3
512
512
  /* back */
@@ -561,7 +561,7 @@ function wi(i) {
561
561
  }
562
562
  ) }),
563
563
  children: /* @__PURE__ */ R("a", { className: g.uiPluginSheetsBorderPanelButton, children: [
564
- /* @__PURE__ */ u(zt, { extend: { colorChannel1: d != null ? d : "rgb(var(--primary-color))" } }),
564
+ /* @__PURE__ */ u(Wt, { extend: { colorChannel1: d != null ? d : "rgb(var(--primary-color))" } }),
565
565
  /* @__PURE__ */ u("span", { className: g.uiPluginSheetsBorderPanelMoreIcon, children: /* @__PURE__ */ u(Ze, {}) })
566
566
  ] })
567
567
  }
@@ -583,7 +583,7 @@ function Ni(i) {
583
583
  left: f = 0,
584
584
  top: C = 0,
585
585
  angle: p = 0
586
- } = l, [m, _] = G(d), [b, P] = G(v), [w, D] = G(f), [j, O] = G(C), [K, ae] = G(p), z = (S) => {
586
+ } = l, [m, _] = G(d), [b, P] = G(v), [w, D] = G(f), [j, O] = G(C), [K, ae] = G(p), W = (S) => {
587
587
  const { objects: ce } = S, le = ce.values().next().value, {
588
588
  width: sn = 0,
589
589
  height: on = 0,
@@ -595,15 +595,15 @@ function Ni(i) {
595
595
  };
596
596
  me(() => {
597
597
  const S = c.changeStart$.subscribe((le) => {
598
- z(le);
598
+ W(le);
599
599
  }), ce = c.changing$.subscribe((le) => {
600
- z(le);
600
+ W(le);
601
601
  });
602
602
  return () => {
603
603
  ce.unsubscribe(), S.unsubscribe();
604
604
  };
605
605
  }, []);
606
- function W(S) {
606
+ function z(S) {
607
607
  !S || !l || (s.executeCommand(k.id, {
608
608
  pageId: e,
609
609
  oKey: l.oKey,
@@ -666,7 +666,7 @@ function Ni(i) {
666
666
  min: 1,
667
667
  value: m,
668
668
  onChange: (S) => {
669
- W(S);
669
+ z(S);
670
670
  }
671
671
  }
672
672
  ) }) })
@@ -839,8 +839,8 @@ let Te = class extends Ve {
839
839
  }
840
840
  _createObjectPositionObserver(i, e) {
841
841
  const n = (() => {
842
- var z, W, te, ne;
843
- const { scene: o, engine: a } = e, { left: c, top: h, width: l, height: d } = i, v = (o.width - ((W = (z = e.mainComponent) == null ? void 0 : z.width) != null ? W : 0)) / 2, f = (o.height - ((ne = (te = e.mainComponent) == null ? void 0 : te.height) != null ? ne : 0)) / 2, C = {
842
+ var W, z, te, ne;
843
+ const { scene: o, engine: a } = e, { left: c, top: h, width: l, height: d } = i, v = (o.width - ((z = (W = e.mainComponent) == null ? void 0 : W.width) != null ? z : 0)) / 2, f = (o.height - ((ne = (te = e.mainComponent) == null ? void 0 : te.height) != null ? ne : 0)) / 2, C = {
844
844
  left: c,
845
845
  right: c + l,
846
846
  top: h,
@@ -1154,7 +1154,7 @@ Fe = Fi([
1154
1154
  je(1, Ce),
1155
1155
  je(2, Y)
1156
1156
  ], Fe);
1157
- class zi {
1157
+ class Wi {
1158
1158
  constructor() {
1159
1159
  I(this, "_state", null);
1160
1160
  I(this, "_rect", null);
@@ -1191,13 +1191,13 @@ class zi {
1191
1191
  const Qe = Pt(
1192
1192
  "univer.slide-editor-manager.service"
1193
1193
  );
1194
- var Z = /* @__PURE__ */ ((i) => (i[i.InitialState = 0] = "InitialState", i[i.StartEditor = 1] = "StartEditor", i[i.CursorChange = 2] = "CursorChange", i))(Z || {}), Wi = Object.getOwnPropertyDescriptor, ki = (i, e, t, n) => {
1195
- for (var r = n > 1 ? void 0 : n ? Wi(e, t) : e, s = i.length - 1, o; s >= 0; s--)
1194
+ var Z = /* @__PURE__ */ ((i) => (i[i.InitialState = 0] = "InitialState", i[i.StartEditor = 1] = "StartEditor", i[i.CursorChange = 2] = "CursorChange", i))(Z || {}), zi = Object.getOwnPropertyDescriptor, ki = (i, e, t, n) => {
1195
+ for (var r = n > 1 ? void 0 : n ? zi(e, t) : e, s = i.length - 1, o; s >= 0; s--)
1196
1196
  (o = i[s]) && (r = o(r) || r);
1197
1197
  return r;
1198
1198
  }, A = (i, e) => (t, n) => e(t, n, i);
1199
1199
  const Ct = -1e3, ft = 5, Ki = 2;
1200
- let ze = class extends Ve {
1200
+ let We = class extends Ve {
1201
1201
  constructor(e, t, n, r, s, o, a, c, h, l, d, v) {
1202
1202
  super();
1203
1203
  /**
@@ -1248,7 +1248,7 @@ let ze = class extends Ve {
1248
1248
  return (t = this._renderManagerService.getRenderById(e)) == null ? void 0 : t.with(gt).getViewModel();
1249
1249
  }
1250
1250
  _initialCursorSync(e) {
1251
- e.add(this._cellEditorManagerService.focus$.pipe(Wn((t) => !!t)).subscribe(() => {
1251
+ e.add(this._cellEditorManagerService.focus$.pipe(zn((t) => !!t)).subscribe(() => {
1252
1252
  var t;
1253
1253
  (t = $e(E.UNIVER_DOC, this._instanceSrv, this._renderManagerService)) == null || t.with(ht).sync();
1254
1254
  }));
@@ -1346,8 +1346,8 @@ let ze = class extends Ve {
1346
1346
  let { startX: b, startY: P } = n;
1347
1347
  b += r.left, P += r.top;
1348
1348
  const { document: w, scene: D, engine: j } = c, O = D.getViewport(mt.VIEW_MAIN), K = document.body.clientHeight - P - r.top - Ki * 2, ae = document.body.clientWidth - b - r.left;
1349
- let z = t, W = O == null ? void 0 : O.getScrollBar();
1350
- z > K ? (z = K, W == null ? O && new yt(O, { enableHorizontal: !1, barSize: 8 }) : O == null || O.resetCanvasSizeAndUpdateScroll()) : (W = null, (S = O == null ? void 0 : O.getScrollBar()) == null || S.dispose()), e += (W == null ? void 0 : W.barSize) || 0, e = Math.min(e, ae), b -= se, P -= se, this._addBackground(D, e / o, t / a, s);
1349
+ let W = t, z = O == null ? void 0 : O.getScrollBar();
1350
+ W > K ? (W = K, z == null ? O && new yt(O, { enableHorizontal: !1, barSize: 8 }) : O == null || O.resetCanvasSizeAndUpdateScroll()) : (z = null, (S = O == null ? void 0 : O.getScrollBar()) == null || S.dispose()), e += (z == null ? void 0 : z.barSize) || 0, e = Math.min(e, ae), b -= se, P -= se, this._addBackground(D, e / o, t / a, s);
1351
1351
  const { scaleX: te, scaleY: ne } = D.getPrecisionScale();
1352
1352
  D.transformByState({
1353
1353
  width: e * _ / o,
@@ -1357,7 +1357,7 @@ let ze = class extends Ve {
1357
1357
  }), w.resize(e / o, t / a), setTimeout(() => {
1358
1358
  j.resizeBySize(
1359
1359
  ot(e, te),
1360
- ot(z, ne)
1360
+ ot(W, ne)
1361
1361
  );
1362
1362
  }, 0);
1363
1363
  const Se = this._layoutService.getContentElement().getBoundingClientRect(), Ie = d.getBoundingClientRect();
@@ -1365,7 +1365,7 @@ let ze = class extends Ve {
1365
1365
  startX: b,
1366
1366
  startY: P,
1367
1367
  endX: e * _ + b,
1368
- endY: z * _ + P,
1368
+ endY: W * _ + P,
1369
1369
  show: !0
1370
1370
  });
1371
1371
  }
@@ -1533,7 +1533,7 @@ let ze = class extends Ve {
1533
1533
  });
1534
1534
  }
1535
1535
  };
1536
- ze = ki([
1536
+ We = ki([
1537
1537
  A(1, Nn),
1538
1538
  A(2, _n),
1539
1539
  A(3, Ce),
@@ -1545,7 +1545,7 @@ ze = ki([
1545
1545
  A(9, B),
1546
1546
  A(10, X(ee)),
1547
1547
  A(11, Ye)
1548
- ], ze);
1548
+ ], We);
1549
1549
  function Gi(i, e) {
1550
1550
  if (i == null)
1551
1551
  return;
@@ -1565,7 +1565,7 @@ var Xi = Object.getOwnPropertyDescriptor, Yi = (i, e, t, n) => {
1565
1565
  (o = i[s]) && (r = o(r) || r);
1566
1566
  return r;
1567
1567
  }, Le = (i, e) => (t, n) => e(t, n, i);
1568
- let We = class extends pe {
1568
+ let ze = class extends pe {
1569
1569
  constructor(e, t, n, r) {
1570
1570
  super();
1571
1571
  /**
@@ -1673,11 +1673,11 @@ let We = class extends pe {
1673
1673
  this._editorBridgeService.changeVisible({ visible: e, eventType: J.PointerDown, unitId: t });
1674
1674
  }
1675
1675
  };
1676
- We = Yi([
1676
+ ze = Yi([
1677
1677
  Le(1, T),
1678
1678
  Le(2, B),
1679
1679
  Le(3, Je)
1680
- ], We);
1680
+ ], ze);
1681
1681
  const Xt = {
1682
1682
  id: "slide.operation.activate-slide",
1683
1683
  type: V.OPERATION,
@@ -1863,7 +1863,7 @@ function cr() {
1863
1863
  const i = x(T), e = x(B), t = x(Y), n = x(ee), r = Dt(null), s = i.getCurrentUnitForType(E.UNIVER_SLIDE), o = s == null ? void 0 : s.getPages(), a = s == null ? void 0 : s.getPageOrder();
1864
1864
  if (!o || !a)
1865
1865
  return null;
1866
- const c = a.map((m) => o[m]), [h, l] = G((p = (C = s == null ? void 0 : s.getActivePage()) == null ? void 0 : C.id) != null ? p : null), d = zn(() => c.map(() => Nt.createRef()), [c]);
1866
+ const c = a.map((m) => o[m]), [h, l] = G((p = (C = s == null ? void 0 : s.getActivePage()) == null ? void 0 : C.id) != null ? p : null), d = Wn(() => c.map(() => Nt.createRef()), [c]);
1867
1867
  me(() => {
1868
1868
  const m = s == null ? void 0 : s.activePage$.subscribe((_) => {
1869
1869
  var P;
@@ -2093,7 +2093,7 @@ let De = class extends Ve {
2093
2093
  }
2094
2094
  _initCustomComponents() {
2095
2095
  const i = this._componentManager;
2096
- this.disposeWithMe(i.register(Jt, jt)), this.disposeWithMe(i.register(nn, Wt)), this.disposeWithMe(i.register(en, $t)), this.disposeWithMe(i.register(Gt, tr)), this.disposeWithMe(i.register(Oe, Vi));
2096
+ this.disposeWithMe(i.register(Jt, jt)), this.disposeWithMe(i.register(nn, zt)), this.disposeWithMe(i.register(en, $t)), this.disposeWithMe(i.register(Gt, tr)), this.disposeWithMe(i.register(Oe, Vi));
2097
2097
  }
2098
2098
  _initCommands() {
2099
2099
  [
@@ -2193,7 +2193,7 @@ let St = (Re = class extends En {
2193
2193
  [Ue],
2194
2194
  [Je, { useClass: Fe }],
2195
2195
  // used by SlideUIController --> EditorContainer
2196
- [Qe, { useClass: zi }],
2196
+ [Qe, { useClass: Wi }],
2197
2197
  [Te]
2198
2198
  ], this._config.override).forEach((i) => this._injector.add(i));
2199
2199
  }
@@ -2223,8 +2223,8 @@ let St = (Re = class extends En {
2223
2223
  [
2224
2224
  // need slideEditorBridgeService
2225
2225
  // need TextSelectionRenderService which init by EditorContainer
2226
- [We],
2227
- [ze]
2226
+ [ze],
2227
+ [We]
2228
2228
  ].forEach((i) => {
2229
2229
  this.disposeWithMe(this._renderManagerService.registerRenderModule(E.UNIVER_SLIDE, i));
2230
2230
  }), this._markSlideAsFocused(), this._injector.get(De);