@univerjs/slides-ui 0.5.5-nightly.202501211606 → 0.5.5-nightly.202501220324

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
@@ -6,8 +6,9 @@ import { Inject, Injector, RxDisposable, UniverInstanceType, debounce, getColorS
6
6
  import { Viewport, ScrollBar, Slide, Rect, Scene, IRenderManagerService, ObjectType, pxToNum, DeviceInputEventType, convertTextRotation, FIX_ONE_PIXEL_BLUR_OFFSET, fixLineWidthByScale } from "@univerjs/engine-render";
7
7
  import { ObjectProvider, SLIDE_KEY } from "@univerjs/slides";
8
8
  import { ISidebarService, ICanvasPopupService, KeyCode, ILayoutService, ILocalFileService, useObservable, DISABLE_AUTO_FOCUS_KEY, MenuItemType, getMenuHiddenObservable, RibbonStartGroup, MetaKeys, ComponentManager, BuiltInUIPart, IMenuManagerService, IUIPartsService, IShortcutService } from "@univerjs/ui";
9
- import React, { forwardRef, useRef, createElement, useState, useEffect, useCallback } from "react";
9
+ import { jsxs, jsx } from "react/jsx-runtime";
10
10
  import { Button, InputNumber, DropdownLegacy, ColorPicker, Scrollbar } from "@univerjs/design";
11
+ import React, { forwardRef, useRef, createElement, useState, useEffect, useMemo, useCallback } from "react";
11
12
  import { BehaviorSubject, Subject, filter, takeUntil } from "rxjs";
12
13
  import { DocSelectionManagerService, DocSkeletonManagerService, RichTextEditingMutation } from "@univerjs/docs";
13
14
  import { IEditorService, DocSelectionRenderService, VIEWPORT_KEY, DOCS_COMPONENT_MAIN_LAYER_INDEX, MoveSelectionOperation, MoveCursorOperation, DOCS_VIEW_KEY, DeleteLeftCommand } from "@univerjs/docs-ui";
@@ -305,37 +306,6 @@ const SLIDES_UI_PLUGIN_CONFIG_KEY = "slides-ui.config", defaultPluginConfig = {}
305
306
  return delete activePage.pageElements[params.id], slideData.updatePage(activePage.id, activePage), accessor.get(CanvasView).removeObjectById(params.id, activePage.id, unitId), !0;
306
307
  }, "handler")
307
308
  };
308
- var jsxRuntime = { exports: {} }, reactJsxRuntime_production_min = {};
309
- /**
310
- * @license React
311
- * react-jsx-runtime.production.min.js
312
- *
313
- * Copyright (c) Facebook, Inc. and its affiliates.
314
- *
315
- * This source code is licensed under the MIT license found in the
316
- * LICENSE file in the root directory of this source tree.
317
- */
318
- var hasRequiredReactJsxRuntime_production_min;
319
- function requireReactJsxRuntime_production_min() {
320
- if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
321
- hasRequiredReactJsxRuntime_production_min = 1;
322
- var f = React, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
323
- function q(c, a, g) {
324
- var b, d = {}, e = null, h = null;
325
- g !== void 0 && (e = "" + g), a.key !== void 0 && (e = "" + a.key), a.ref !== void 0 && (h = a.ref);
326
- for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
327
- if (c && c.defaultProps) for (b in a = c.defaultProps, a) d[b] === void 0 && (d[b] = a[b]);
328
- return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
329
- }
330
- return __name(q, "q"), reactJsxRuntime_production_min.Fragment = l, reactJsxRuntime_production_min.jsx = q, reactJsxRuntime_production_min.jsxs = q, reactJsxRuntime_production_min;
331
- }
332
- __name(requireReactJsxRuntime_production_min, "requireReactJsxRuntime_production_min");
333
- var hasRequiredJsxRuntime;
334
- function requireJsxRuntime() {
335
- return hasRequiredJsxRuntime || (hasRequiredJsxRuntime = 1, jsxRuntime.exports = requireReactJsxRuntime_production_min()), jsxRuntime.exports;
336
- }
337
- __name(requireJsxRuntime, "requireJsxRuntime");
338
- var jsxRuntimeExports = requireJsxRuntime();
339
309
  function r(e) {
340
310
  var t, f, n = "";
341
311
  if (typeof e == "string" || typeof e == "number") n += e;
@@ -526,45 +496,45 @@ function ArrangePanel$1(props) {
526
496
  }
527
497
  });
528
498
  }, "onArrangeBtnClick");
529
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$4.imageCommonPanelGrid, children: [
530
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelTitle), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: localeService.t("image-panel.arrange.title") }) }) }),
531
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$4.imageCommonPanelRow, children: [
532
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan2), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", onClick: /* @__PURE__ */ __name(() => {
499
+ return /* @__PURE__ */ jsxs("div", { className: styles$4.imageCommonPanelGrid, children: [
500
+ /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelTitle), children: /* @__PURE__ */ jsx("div", { children: localeService.t("image-panel.arrange.title") }) }) }),
501
+ /* @__PURE__ */ jsxs("div", { className: styles$4.imageCommonPanelRow, children: [
502
+ /* @__PURE__ */ jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan2), children: /* @__PURE__ */ jsx(Button, { size: "small", onClick: /* @__PURE__ */ __name(() => {
533
503
  onArrangeBtnClick(
534
504
  0
535
505
  /* forward */
536
506
  );
537
- }, "onClick"), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$4.imageCommonPanelInline, children: [
538
- /* @__PURE__ */ jsxRuntimeExports.jsx(MoveUpSingle, {}),
507
+ }, "onClick"), children: /* @__PURE__ */ jsxs("span", { className: styles$4.imageCommonPanelInline, children: [
508
+ /* @__PURE__ */ jsx(MoveUpSingle, {}),
539
509
  localeService.t("image-panel.arrange.forward")
540
510
  ] }) }) }),
541
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan2), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", onClick: /* @__PURE__ */ __name(() => {
511
+ /* @__PURE__ */ jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan2), children: /* @__PURE__ */ jsx(Button, { size: "small", onClick: /* @__PURE__ */ __name(() => {
542
512
  onArrangeBtnClick(
543
513
  1
544
514
  /* backward */
545
515
  );
546
- }, "onClick"), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$4.imageCommonPanelInline, children: [
547
- /* @__PURE__ */ jsxRuntimeExports.jsx(MoveDownSingle, {}),
516
+ }, "onClick"), children: /* @__PURE__ */ jsxs("span", { className: styles$4.imageCommonPanelInline, children: [
517
+ /* @__PURE__ */ jsx(MoveDownSingle, {}),
548
518
  localeService.t("image-panel.arrange.backward")
549
519
  ] }) }) })
550
520
  ] }),
551
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$4.imageCommonPanelRow, children: [
552
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan2), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", onClick: /* @__PURE__ */ __name(() => {
521
+ /* @__PURE__ */ jsxs("div", { className: styles$4.imageCommonPanelRow, children: [
522
+ /* @__PURE__ */ jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan2), children: /* @__PURE__ */ jsx(Button, { size: "small", onClick: /* @__PURE__ */ __name(() => {
553
523
  onArrangeBtnClick(
554
524
  2
555
525
  /* front */
556
526
  );
557
- }, "onClick"), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$4.imageCommonPanelInline, children: [
558
- /* @__PURE__ */ jsxRuntimeExports.jsx(TopmostSingle, {}),
527
+ }, "onClick"), children: /* @__PURE__ */ jsxs("span", { className: styles$4.imageCommonPanelInline, children: [
528
+ /* @__PURE__ */ jsx(TopmostSingle, {}),
559
529
  localeService.t("image-panel.arrange.front")
560
530
  ] }) }) }),
561
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan2), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", onClick: /* @__PURE__ */ __name(() => {
531
+ /* @__PURE__ */ jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan2), children: /* @__PURE__ */ jsx(Button, { size: "small", onClick: /* @__PURE__ */ __name(() => {
562
532
  onArrangeBtnClick(
563
533
  3
564
534
  /* back */
565
535
  );
566
- }, "onClick"), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$4.imageCommonPanelInline, children: [
567
- /* @__PURE__ */ jsxRuntimeExports.jsx(BottomSingle, {}),
536
+ }, "onClick"), children: /* @__PURE__ */ jsxs("span", { className: styles$4.imageCommonPanelInline, children: [
537
+ /* @__PURE__ */ jsx(BottomSingle, {}),
568
538
  localeService.t("image-panel.arrange.back")
569
539
  ] }) }) })
570
540
  ] })
@@ -655,16 +625,16 @@ function TransformPanel(props) {
655
625
  angle: val
656
626
  }), setRotation(val), transformer == null || transformer.refreshControls());
657
627
  }
658
- return __name(handleChangeRotation, "handleChangeRotation"), /* @__PURE__ */ jsxRuntimeExports.jsxs(
628
+ return __name(handleChangeRotation, "handleChangeRotation"), /* @__PURE__ */ jsxs(
659
629
  "div",
660
630
  {
661
631
  className: clsx(styles$4.imageCommonPanelGrid, styles$4.imageCommonPanelBorder),
662
632
  children: [
663
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelTitle), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: localeService.t("image-panel.transform.title") }) }) }),
664
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$4.imageCommonPanelRow, children: [
665
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan3), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { children: [
666
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelColumn, children: localeService.t("image-panel.transform.width") }) }),
667
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelColumn, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
633
+ /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelTitle), children: /* @__PURE__ */ jsx("div", { children: localeService.t("image-panel.transform.title") }) }) }),
634
+ /* @__PURE__ */ jsxs("div", { className: styles$4.imageCommonPanelRow, children: [
635
+ /* @__PURE__ */ jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan3), children: /* @__PURE__ */ jsxs("label", { children: [
636
+ /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelColumn, children: localeService.t("image-panel.transform.width") }) }),
637
+ /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelColumn, children: /* @__PURE__ */ jsx(
668
638
  InputNumber,
669
639
  {
670
640
  className: styles$4.imageCommonPanelInput,
@@ -676,9 +646,9 @@ function TransformPanel(props) {
676
646
  }
677
647
  ) }) })
678
648
  ] }) }),
679
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan3), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { children: [
680
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelColumn, children: localeService.t("image-panel.transform.height") }) }),
681
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelColumn, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
649
+ /* @__PURE__ */ jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan3), children: /* @__PURE__ */ jsxs("label", { children: [
650
+ /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelColumn, children: localeService.t("image-panel.transform.height") }) }),
651
+ /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelColumn, children: /* @__PURE__ */ jsx(
682
652
  InputNumber,
683
653
  {
684
654
  className: styles$4.imageCommonPanelInput,
@@ -691,10 +661,10 @@ function TransformPanel(props) {
691
661
  ) }) })
692
662
  ] }) })
693
663
  ] }),
694
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$4.imageCommonPanelRow, children: [
695
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan3), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { children: [
696
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelColumn, children: localeService.t("image-panel.transform.x") }) }),
697
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelColumn, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
664
+ /* @__PURE__ */ jsxs("div", { className: styles$4.imageCommonPanelRow, children: [
665
+ /* @__PURE__ */ jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan3), children: /* @__PURE__ */ jsxs("label", { children: [
666
+ /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelColumn, children: localeService.t("image-panel.transform.x") }) }),
667
+ /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelColumn, children: /* @__PURE__ */ jsx(
698
668
  InputNumber,
699
669
  {
700
670
  className: styles$4.imageCommonPanelInput,
@@ -707,9 +677,9 @@ function TransformPanel(props) {
707
677
  }
708
678
  ) }) })
709
679
  ] }) }),
710
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan3), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { children: [
711
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelColumn, children: localeService.t("image-panel.transform.y") }) }),
712
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelColumn, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
680
+ /* @__PURE__ */ jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan3), children: /* @__PURE__ */ jsxs("label", { children: [
681
+ /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelColumn, children: localeService.t("image-panel.transform.y") }) }),
682
+ /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelColumn, children: /* @__PURE__ */ jsx(
713
683
  InputNumber,
714
684
  {
715
685
  className: styles$4.imageCommonPanelInput,
@@ -722,9 +692,9 @@ function TransformPanel(props) {
722
692
  }
723
693
  ) }) })
724
694
  ] }) }),
725
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan3), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { children: [
726
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelColumn, children: localeService.t("image-panel.transform.rotate") }) }),
727
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelColumn, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
695
+ /* @__PURE__ */ jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan3), children: /* @__PURE__ */ jsxs("label", { children: [
696
+ /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelColumn, children: localeService.t("image-panel.transform.rotate") }) }),
697
+ /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelColumn, children: /* @__PURE__ */ jsx(
728
698
  InputNumber,
729
699
  {
730
700
  className: styles$4.imageCommonPanelInput,
@@ -766,28 +736,28 @@ function ArrangePanel(props) {
766
736
  }
767
737
  }), setColor(color2);
768
738
  }
769
- return __name(handleChangeColor, "handleChangeColor"), /* @__PURE__ */ jsxRuntimeExports.jsx(
739
+ return __name(handleChangeColor, "handleChangeColor"), /* @__PURE__ */ jsx(
770
740
  "div",
771
741
  {
772
742
  className: clsx(styles$4.imageCommonPanelGrid, styles$4.imageCommonPanelBorder),
773
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$4.imageCommonPanelGrid, children: [
774
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelTitle), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: localeService.t("slide.panel.fill.title") }) }) }),
775
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan2), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
743
+ children: /* @__PURE__ */ jsxs("div", { className: styles$4.imageCommonPanelGrid, children: [
744
+ /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelTitle), children: /* @__PURE__ */ jsx("div", { children: localeService.t("slide.panel.fill.title") }) }) }),
745
+ /* @__PURE__ */ jsx("div", { className: styles$4.imageCommonPanelRow, children: /* @__PURE__ */ jsx("div", { className: clsx(styles$4.imageCommonPanelColumn, styles$4.imageCommonPanelSpan2), children: /* @__PURE__ */ jsx(
776
746
  DropdownLegacy,
777
747
  {
778
748
  align: {
779
749
  offset: [0, 18]
780
750
  },
781
- overlay: /* @__PURE__ */ jsxRuntimeExports.jsx("section", { className: styles$4.slidePanelColorPicker, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
751
+ overlay: /* @__PURE__ */ jsx("section", { className: styles$4.slidePanelColorPicker, children: /* @__PURE__ */ jsx(
782
752
  ColorPicker,
783
753
  {
784
754
  value: "#fff",
785
755
  onChange: handleChangeColor
786
756
  }
787
757
  ) }),
788
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("a", { className: styles$4.uiPluginSheetsBorderPanelButton, children: [
789
- /* @__PURE__ */ jsxRuntimeExports.jsx(PaintBucket, { extend: { colorChannel1: color != null ? color : "rgb(var(--primary-color))" } }),
790
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$4.uiPluginSheetsBorderPanelMoreIcon, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MoreDownSingle, {}) })
758
+ children: /* @__PURE__ */ jsxs("a", { className: styles$4.uiPluginSheetsBorderPanelButton, children: [
759
+ /* @__PURE__ */ jsx(PaintBucket, { extend: { colorChannel1: color != null ? color : "rgb(var(--primary-color))" } }),
760
+ /* @__PURE__ */ jsx("span", { className: styles$4.uiPluginSheetsBorderPanelMoreIcon, children: /* @__PURE__ */ jsx(MoreDownSingle, {}) })
791
761
  ] })
792
762
  }
793
763
  ) }) })
@@ -821,10 +791,10 @@ function RectSidebar() {
821
791
  if (!object)
822
792
  return null;
823
793
  const unitId = ((_c = univerInstanceService.getFocusedUnit()) == null ? void 0 : _c.getUnitId()) || "";
824
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { className: styles$3.imageCommonPanel, children: [
825
- /* @__PURE__ */ jsxRuntimeExports.jsx(ArrangePanel$1, { pageId, unitId }),
826
- /* @__PURE__ */ jsxRuntimeExports.jsx(TransformPanel, { pageId, unitId }),
827
- object.objectType === ObjectType.RECT && /* @__PURE__ */ jsxRuntimeExports.jsx(ArrangePanel, { pageId, unitId })
794
+ return /* @__PURE__ */ jsxs("section", { className: styles$3.imageCommonPanel, children: [
795
+ /* @__PURE__ */ jsx(ArrangePanel$1, { pageId, unitId }),
796
+ /* @__PURE__ */ jsx(TransformPanel, { pageId, unitId }),
797
+ object.objectType === ObjectType.RECT && /* @__PURE__ */ jsx(ArrangePanel, { pageId, unitId })
828
798
  ] });
829
799
  }
830
800
  __name(RectSidebar, "RectSidebar");
@@ -1887,42 +1857,42 @@ const ActivateSlidePageOperation = {
1887
1857
  }, "onVisibleChange"), handleClick = /* @__PURE__ */ __name((item) => {
1888
1858
  commandService.executeCommand(item.commandId, item.commandParams), setVisible(!1);
1889
1859
  }, "handleClick"), showMore = visible || isHovered, availableMenu = menuItems.filter((item) => !item.disable);
1890
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
1860
+ return /* @__PURE__ */ jsx(
1891
1861
  "div",
1892
1862
  {
1893
1863
  onMouseEnter: handleMouseEnter,
1894
1864
  onMouseLeave: handleMouseLeave,
1895
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1865
+ children: /* @__PURE__ */ jsx(
1896
1866
  DropdownLegacy,
1897
1867
  {
1898
1868
  placement: "bottomLeft",
1899
1869
  trigger: ["click"],
1900
- overlay: /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: styles$2.imagePopupMenu, children: availableMenu.map((item) => /* @__PURE__ */ jsxRuntimeExports.jsx(
1870
+ overlay: /* @__PURE__ */ jsx("ul", { className: styles$2.imagePopupMenu, children: availableMenu.map((item) => /* @__PURE__ */ jsx(
1901
1871
  "li",
1902
1872
  {
1903
1873
  onClick: /* @__PURE__ */ __name(() => handleClick(item), "onClick"),
1904
1874
  className: styles$2.imagePopupMenuItem,
1905
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$2.imagePopupMenuItemTitle, children: localeService.t(item.label) })
1875
+ children: /* @__PURE__ */ jsx("span", { className: styles$2.imagePopupMenuItemTitle, children: localeService.t(item.label) })
1906
1876
  },
1907
1877
  item.index
1908
1878
  )) }),
1909
1879
  visible,
1910
1880
  onVisibleChange,
1911
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
1881
+ children: /* @__PURE__ */ jsxs(
1912
1882
  "div",
1913
1883
  {
1914
1884
  className: clsx(styles$2.btnContainer, {
1915
1885
  [styles$2.btnContainerExpand]: visible
1916
1886
  }),
1917
1887
  children: [
1918
- /* @__PURE__ */ jsxRuntimeExports.jsx(
1888
+ /* @__PURE__ */ jsx(
1919
1889
  Autofill,
1920
1890
  {
1921
1891
  style: { color: "#35322B" },
1922
1892
  extend: { colorChannel1: "rgb(var(--green-700, #409f11))" }
1923
1893
  }
1924
1894
  ),
1925
- showMore && /* @__PURE__ */ jsxRuntimeExports.jsx(MoreDownSingle, { style: { color: "#CCCCCC", fontSize: "8px", marginLeft: "8px" } })
1895
+ showMore && /* @__PURE__ */ jsx(MoreDownSingle, { style: { color: "#CCCCCC", fontSize: "8px", marginLeft: "8px" } })
1926
1896
  ]
1927
1897
  }
1928
1898
  )
@@ -1944,10 +1914,8 @@ function SlideSideBar() {
1944
1914
  const univerInstanceService = useDependency(IUniverInstanceService), commandService = useDependency(ICommandService), renderManagerService = useDependency(IRenderManagerService), localeService = useDependency(LocaleService), slideBarRef = useRef(null), currentSlide = univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SLIDE), pages = currentSlide == null ? void 0 : currentSlide.getPages(), pageOrder = currentSlide == null ? void 0 : currentSlide.getPageOrder();
1945
1915
  if (!pages || !pageOrder)
1946
1916
  return null;
1947
- const slideList = pageOrder.map((id) => pages[id]), [divRefs, setDivRefs] = useState([]), [activatePageId, setActivatePageId] = useState((_b = (_a11 = currentSlide == null ? void 0 : currentSlide.getActivePage()) == null ? void 0 : _a11.id) != null ? _b : null);
1917
+ const slideList = pageOrder.map((id) => pages[id]), [activatePageId, setActivatePageId] = useState((_b = (_a11 = currentSlide == null ? void 0 : currentSlide.getActivePage()) == null ? void 0 : _a11.id) != null ? _b : null), divRefs = useMemo(() => slideList.map(() => React.createRef()), [slideList]);
1948
1918
  useEffect(() => {
1949
- setDivRefs(slideList.map((_) => React.createRef()));
1950
- }, [slideList.length]), useEffect(() => {
1951
1919
  const subscriber = currentSlide == null ? void 0 : currentSlide.activePage$.subscribe((page) => {
1952
1920
  var _a12;
1953
1921
  const id = (_a12 = page == null ? void 0 : page.id) != null ? _a12 : null;
@@ -1970,9 +1938,9 @@ function SlideSideBar() {
1970
1938
  }, [commandService, currentSlide]), handleAppendSlide = useCallback(() => {
1971
1939
  commandService.syncExecuteCommand(AppendSlideOperation.id, { unitId: currentSlide == null ? void 0 : currentSlide.getUnitId() });
1972
1940
  }, [commandService, currentSlide]);
1973
- return /* @__PURE__ */ jsxRuntimeExports.jsx("aside", { className: styles$1.slideBar, ref: slideBarRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Scrollbar, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$1.slideBarContent, children: [
1974
- /* @__PURE__ */ jsxRuntimeExports.jsx("header", { className: styles$1.slideBarContentHeader, children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { onClick: handleAppendSlide, children: localeService.t("slide.append") }) }),
1975
- slideList.map((item, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
1941
+ return /* @__PURE__ */ jsx("aside", { className: styles$1.slideBar, ref: slideBarRef, children: /* @__PURE__ */ jsx(Scrollbar, { children: /* @__PURE__ */ jsxs("div", { className: styles$1.slideBarContent, children: [
1942
+ /* @__PURE__ */ jsx("header", { className: styles$1.slideBarContentHeader, children: /* @__PURE__ */ jsx("a", { onClick: handleAppendSlide, children: localeService.t("slide.append") }) }),
1943
+ slideList.map((item, index) => /* @__PURE__ */ jsxs(
1976
1944
  "div",
1977
1945
  {
1978
1946
  className: clsx(styles$1.slideBarItem, {
@@ -1980,8 +1948,8 @@ function SlideSideBar() {
1980
1948
  }),
1981
1949
  onClick: /* @__PURE__ */ __name(() => activatePage(item.id), "onClick"),
1982
1950
  children: [
1983
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: index + 1 }),
1984
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: divRefs[index], className: styles$1.slideBarBox })
1951
+ /* @__PURE__ */ jsx("span", { children: index + 1 }),
1952
+ /* @__PURE__ */ jsx("div", { ref: divRefs[index], className: styles$1.slideBarBox })
1985
1953
  ]
1986
1954
  },
1987
1955
  item.id
@@ -2037,7 +2005,7 @@ const slideEditorContainer = "univer-slide-editor-container", editorInput = "uni
2037
2005
  });
2038
2006
  }, []), useEffect(() => {
2039
2007
  disableAutoFocus || slideEditorManagerService.setFocus(!0);
2040
- }, [disableAutoFocus, state]), /* @__PURE__ */ jsxRuntimeExports.jsx(
2008
+ }, [disableAutoFocus, state]), /* @__PURE__ */ jsx(
2041
2009
  "div",
2042
2010
  {
2043
2011
  className: styles.slideEditorContainer,
@@ -1,7 +1,21 @@
1
- import { default as React } from 'react';
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
2
16
  interface IProps {
3
17
  pageId: string;
4
18
  unitId: string;
5
19
  }
6
- export default function ArrangePanel(props: IProps): React.JSX.Element | null;
20
+ export default function ArrangePanel(props: IProps): import("react/jsx-runtime").JSX.Element | null;
7
21
  export {};
@@ -1,4 +1,18 @@
1
- import { default as React } from 'react';
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
2
16
  interface IProps {
3
17
  pageId: string;
4
18
  unitId: string;
@@ -7,5 +21,5 @@ interface IProps {
7
21
  *
8
22
  * @param props
9
23
  */
10
- export default function ArrangePanel(props: IProps): React.JSX.Element | null;
24
+ export default function ArrangePanel(props: IProps): import("react/jsx-runtime").JSX.Element | null;
11
25
  export {};
@@ -1,7 +1,21 @@
1
- import { default as React } from 'react';
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
2
16
  interface IProps {
3
17
  pageId: string;
4
18
  unitId: string;
5
19
  }
6
- export default function TransformPanel(props: IProps): React.JSX.Element | null;
20
+ export default function TransformPanel(props: IProps): import("react/jsx-runtime").JSX.Element | null;
7
21
  export {};
@@ -1,3 +1,17 @@
1
- import { default as React } from 'react';
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
2
16
  export declare const COMPONENT_SLIDE_SIDEBAR = "COMPONENT_SLIDE_SIDEBAR";
3
- export default function RectSidebar(): React.JSX.Element | null;
17
+ export default function RectSidebar(): import("react/jsx-runtime").JSX.Element | null;
@@ -1,5 +1,19 @@
1
- import { default as React } from 'react';
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
2
16
  /**
3
17
  * This components works as the root component of the left Sidebar of Slide.
4
18
  */
5
- export declare function SlideSideBar(): React.JSX.Element | null;
19
+ export declare function SlideSideBar(): import("react/jsx-runtime").JSX.Element | null;