@univerjs/docs-ui 0.21.0 → 0.21.1-insiders.20260429-a0b1161

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -2448,7 +2448,7 @@ _defineProperty(HtmlToUDMService, "_pluginList", []);
2448
2448
 
2449
2449
  //#endregion
2450
2450
  //#region src/services/clipboard/html-to-udm/paste-plugins/plugin-lark.ts
2451
- const wordPastePlugin = {
2451
+ const LarkPastePlugin = {
2452
2452
  name: "univer-doc-paste-plugin-lark",
2453
2453
  checkPasteType(html) {
2454
2454
  return /lark-record-clipboard/i.test(html);
@@ -2509,7 +2509,7 @@ function getParagraphStyle(el) {
2509
2509
 
2510
2510
  //#endregion
2511
2511
  //#region src/services/clipboard/html-to-udm/paste-plugins/plugin-univer.ts
2512
- const univerPastePlugin = {
2512
+ const UniverPastePlugin = {
2513
2513
  name: "univer-doc-paste-plugin-univer",
2514
2514
  checkPasteType(html) {
2515
2515
  return /UniverNormal/i.test(html);
@@ -2533,7 +2533,7 @@ const univerPastePlugin = {
2533
2533
 
2534
2534
  //#endregion
2535
2535
  //#region src/services/clipboard/html-to-udm/paste-plugins/plugin-word.ts
2536
- const wordPastePlugin$1 = {
2536
+ const WordPastePlugin = {
2537
2537
  name: "univer-doc-paste-plugin-word",
2538
2538
  checkPasteType(html) {
2539
2539
  return /word|mso/i.test(html);
@@ -2759,9 +2759,9 @@ var UDMToHtmlService = class {
2759
2759
 
2760
2760
  //#endregion
2761
2761
  //#region src/services/clipboard/clipboard.service.ts
2762
- HtmlToUDMService.use(wordPastePlugin$1);
2763
- HtmlToUDMService.use(wordPastePlugin);
2764
- HtmlToUDMService.use(univerPastePlugin);
2762
+ HtmlToUDMService.use(LarkPastePlugin);
2763
+ HtmlToUDMService.use(UniverPastePlugin);
2764
+ HtmlToUDMService.use(WordPastePlugin);
2765
2765
  function getTableSlice(body, start, end) {
2766
2766
  var _bodySlice$textRuns, _bodySlice$tables, _bodySlice$paragraphs;
2767
2767
  const bodySlice = (0, _univerjs_core.getBodySlice)(body, start, end + 2);
@@ -8702,6 +8702,7 @@ function PageSettings(props) {
8702
8702
  children: localeService.t("page-settings.top")
8703
8703
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
8704
8704
  precision: 2,
8705
+ min: 0,
8705
8706
  max: settings.pageSise.height / 2,
8706
8707
  value: settings.margins.top,
8707
8708
  onChange: (e) => handleMarginChange("top", e)
@@ -8713,6 +8714,7 @@ function PageSettings(props) {
8713
8714
  children: localeService.t("page-settings.bottom")
8714
8715
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
8715
8716
  precision: 2,
8717
+ min: 0,
8716
8718
  max: settings.pageSise.height / 2,
8717
8719
  value: settings.margins.bottom,
8718
8720
  onChange: (e) => handleMarginChange("bottom", e)
@@ -8727,6 +8729,7 @@ function PageSettings(props) {
8727
8729
  children: localeService.t("page-settings.left")
8728
8730
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
8729
8731
  precision: 2,
8732
+ min: 0,
8730
8733
  max: settings.pageSise.width / 2,
8731
8734
  value: settings.margins.left,
8732
8735
  onChange: (e) => handleMarginChange("left", e)
@@ -8738,6 +8741,7 @@ function PageSettings(props) {
8738
8741
  children: localeService.t("page-settings.right")
8739
8742
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
8740
8743
  precision: 2,
8744
+ min: 0,
8741
8745
  max: settings.pageSise.width / 2,
8742
8746
  value: settings.margins.right,
8743
8747
  onChange: (e) => handleMarginChange("right", e)
@@ -11245,7 +11249,7 @@ function ParagraphSetting() {
11245
11249
  title: item.label,
11246
11250
  placement: "bottom",
11247
11251
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11248
- className: (0, _univerjs_design.clsx)("hover:univer-bg-black/60 univer-flex univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-bg-none univer-px-3 univer-py-1", { "univer-bg-blend-color-dodge/90": horizontalAlignValue === item.value }),
11252
+ className: (0, _univerjs_design.clsx)("hover:univer-bg-black/60 univer-flex univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-bg-none univer-px-3 univer-py-1", { "univer-bg-gray-200 dark:!univer-bg-gray-500": horizontalAlignValue === item.value }),
11249
11253
  onClick: () => setHorizontalAlign(item.value),
11250
11254
  children: item.icon
11251
11255
  })
@@ -12665,7 +12669,7 @@ function getPageSizeInModernMode(page) {
12665
12669
  //#endregion
12666
12670
  //#region package.json
12667
12671
  var name = "@univerjs/docs-ui";
12668
- var version = "0.21.0";
12672
+ var version = "0.21.1-insiders.20260429-a0b1161";
12669
12673
 
12670
12674
  //#endregion
12671
12675
  //#region src/controllers/doc-auto-format.controller.ts
@@ -14304,7 +14308,7 @@ let DocsRenderService = class DocsRenderService extends _univerjs_core.RxDisposa
14304
14308
  _init() {
14305
14309
  this._renderManagerService.createRender$.pipe((0, rxjs.takeUntil)(this.dispose$)).subscribe((unitId) => this._createRenderWithId(unitId));
14306
14310
  this._instanceSrv.getAllUnitsForType(_univerjs_core.UniverInstanceType.UNIVER_DOC).forEach((documentModel) => this._createRenderer(documentModel));
14307
- this._instanceSrv.getTypeOfUnitAdded$(_univerjs_core.UniverInstanceType.UNIVER_DOC).pipe((0, rxjs.takeUntil)(this.dispose$)).subscribe((doc) => this._createRenderer(doc));
14311
+ this._instanceSrv.getTypeOfUnitAdded$(_univerjs_core.UniverInstanceType.UNIVER_DOC).pipe((0, rxjs.takeUntil)(this.dispose$)).subscribe((event) => this._createRenderer(event.unit));
14308
14312
  this._instanceSrv.getTypeOfUnitDisposed$(_univerjs_core.UniverInstanceType.UNIVER_DOC).pipe((0, rxjs.takeUntil)(this.dispose$)).subscribe((doc) => this._disposeRenderer(doc));
14309
14313
  }
14310
14314
  _createRenderer(doc) {
@@ -15267,9 +15271,9 @@ exports.NORMAL_TEXT_SELECTION_PLUGIN_NAME = NORMAL_TEXT_SELECTION_PLUGIN_NAME;
15267
15271
  exports.NodePositionConvertToCursor = NodePositionConvertToCursor;
15268
15272
  exports.NodePositionConvertToRectRange = NodePositionConvertToRectRange;
15269
15273
  exports.OrderListCommand = OrderListCommand;
15270
- exports.PastePluginLark = wordPastePlugin;
15271
- exports.PastePluginUniver = univerPastePlugin;
15272
- exports.PastePluginWord = wordPastePlugin$1;
15274
+ exports.PastePluginLark = LarkPastePlugin;
15275
+ exports.PastePluginUniver = UniverPastePlugin;
15276
+ exports.PastePluginWord = WordPastePlugin;
15273
15277
  exports.QuickListCommand = QuickListCommand;
15274
15278
  exports.RectRange = RectRange;
15275
15279
  exports.ReplaceContentCommand = ReplaceContentCommand;
package/lib/es/index.js CHANGED
@@ -2447,7 +2447,7 @@ _defineProperty(HtmlToUDMService, "_pluginList", []);
2447
2447
 
2448
2448
  //#endregion
2449
2449
  //#region src/services/clipboard/html-to-udm/paste-plugins/plugin-lark.ts
2450
- const wordPastePlugin = {
2450
+ const LarkPastePlugin = {
2451
2451
  name: "univer-doc-paste-plugin-lark",
2452
2452
  checkPasteType(html) {
2453
2453
  return /lark-record-clipboard/i.test(html);
@@ -2508,7 +2508,7 @@ function getParagraphStyle(el) {
2508
2508
 
2509
2509
  //#endregion
2510
2510
  //#region src/services/clipboard/html-to-udm/paste-plugins/plugin-univer.ts
2511
- const univerPastePlugin = {
2511
+ const UniverPastePlugin = {
2512
2512
  name: "univer-doc-paste-plugin-univer",
2513
2513
  checkPasteType(html) {
2514
2514
  return /UniverNormal/i.test(html);
@@ -2532,7 +2532,7 @@ const univerPastePlugin = {
2532
2532
 
2533
2533
  //#endregion
2534
2534
  //#region src/services/clipboard/html-to-udm/paste-plugins/plugin-word.ts
2535
- const wordPastePlugin$1 = {
2535
+ const WordPastePlugin = {
2536
2536
  name: "univer-doc-paste-plugin-word",
2537
2537
  checkPasteType(html) {
2538
2538
  return /word|mso/i.test(html);
@@ -2758,9 +2758,9 @@ var UDMToHtmlService = class {
2758
2758
 
2759
2759
  //#endregion
2760
2760
  //#region src/services/clipboard/clipboard.service.ts
2761
- HtmlToUDMService.use(wordPastePlugin$1);
2762
- HtmlToUDMService.use(wordPastePlugin);
2763
- HtmlToUDMService.use(univerPastePlugin);
2761
+ HtmlToUDMService.use(LarkPastePlugin);
2762
+ HtmlToUDMService.use(UniverPastePlugin);
2763
+ HtmlToUDMService.use(WordPastePlugin);
2764
2764
  function getTableSlice(body, start, end) {
2765
2765
  var _bodySlice$textRuns, _bodySlice$tables, _bodySlice$paragraphs;
2766
2766
  const bodySlice = getBodySlice(body, start, end + 2);
@@ -8701,6 +8701,7 @@ function PageSettings(props) {
8701
8701
  children: localeService.t("page-settings.top")
8702
8702
  }), /* @__PURE__ */ jsx(InputNumber, {
8703
8703
  precision: 2,
8704
+ min: 0,
8704
8705
  max: settings.pageSise.height / 2,
8705
8706
  value: settings.margins.top,
8706
8707
  onChange: (e) => handleMarginChange("top", e)
@@ -8712,6 +8713,7 @@ function PageSettings(props) {
8712
8713
  children: localeService.t("page-settings.bottom")
8713
8714
  }), /* @__PURE__ */ jsx(InputNumber, {
8714
8715
  precision: 2,
8716
+ min: 0,
8715
8717
  max: settings.pageSise.height / 2,
8716
8718
  value: settings.margins.bottom,
8717
8719
  onChange: (e) => handleMarginChange("bottom", e)
@@ -8726,6 +8728,7 @@ function PageSettings(props) {
8726
8728
  children: localeService.t("page-settings.left")
8727
8729
  }), /* @__PURE__ */ jsx(InputNumber, {
8728
8730
  precision: 2,
8731
+ min: 0,
8729
8732
  max: settings.pageSise.width / 2,
8730
8733
  value: settings.margins.left,
8731
8734
  onChange: (e) => handleMarginChange("left", e)
@@ -8737,6 +8740,7 @@ function PageSettings(props) {
8737
8740
  children: localeService.t("page-settings.right")
8738
8741
  }), /* @__PURE__ */ jsx(InputNumber, {
8739
8742
  precision: 2,
8743
+ min: 0,
8740
8744
  max: settings.pageSise.width / 2,
8741
8745
  value: settings.margins.right,
8742
8746
  onChange: (e) => handleMarginChange("right", e)
@@ -11244,7 +11248,7 @@ function ParagraphSetting() {
11244
11248
  title: item.label,
11245
11249
  placement: "bottom",
11246
11250
  children: /* @__PURE__ */ jsx("span", {
11247
- className: clsx("hover:univer-bg-black/60 univer-flex univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-bg-none univer-px-3 univer-py-1", { "univer-bg-blend-color-dodge/90": horizontalAlignValue === item.value }),
11251
+ className: clsx("hover:univer-bg-black/60 univer-flex univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-bg-none univer-px-3 univer-py-1", { "univer-bg-gray-200 dark:!univer-bg-gray-500": horizontalAlignValue === item.value }),
11248
11252
  onClick: () => setHorizontalAlign(item.value),
11249
11253
  children: item.icon
11250
11254
  })
@@ -12664,7 +12668,7 @@ function getPageSizeInModernMode(page) {
12664
12668
  //#endregion
12665
12669
  //#region package.json
12666
12670
  var name = "@univerjs/docs-ui";
12667
- var version = "0.21.0";
12671
+ var version = "0.21.1-insiders.20260429-a0b1161";
12668
12672
 
12669
12673
  //#endregion
12670
12674
  //#region src/controllers/doc-auto-format.controller.ts
@@ -14303,7 +14307,7 @@ let DocsRenderService = class DocsRenderService extends RxDisposable {
14303
14307
  _init() {
14304
14308
  this._renderManagerService.createRender$.pipe(takeUntil(this.dispose$)).subscribe((unitId) => this._createRenderWithId(unitId));
14305
14309
  this._instanceSrv.getAllUnitsForType(UniverInstanceType.UNIVER_DOC).forEach((documentModel) => this._createRenderer(documentModel));
14306
- this._instanceSrv.getTypeOfUnitAdded$(UniverInstanceType.UNIVER_DOC).pipe(takeUntil(this.dispose$)).subscribe((doc) => this._createRenderer(doc));
14310
+ this._instanceSrv.getTypeOfUnitAdded$(UniverInstanceType.UNIVER_DOC).pipe(takeUntil(this.dispose$)).subscribe((event) => this._createRenderer(event.unit));
14307
14311
  this._instanceSrv.getTypeOfUnitDisposed$(UniverInstanceType.UNIVER_DOC).pipe(takeUntil(this.dispose$)).subscribe((doc) => this._disposeRenderer(doc));
14308
14312
  }
14309
14313
  _createRenderer(doc) {
@@ -15145,4 +15149,4 @@ const RichTextEditor = (props) => {
15145
15149
  };
15146
15150
 
15147
15151
  //#endregion
15148
- export { AfterSpaceCommand, AlignCenterCommand, AlignJustifyCommand, AlignLeftCommand, AlignOperationCommand, AlignRightCommand, BreakLineCommand, BulletListCommand, ChangeListNestingLevelCommand, ChangeListNestingLevelType, ChangeListTypeCommand, CheckListCommand, CoverContentCommand, CreateDocTableCommand, CutContentCommand, DOCS_COMPONENT_BACKGROUND_LAYER_INDEX, DOCS_COMPONENT_DEFAULT_Z_INDEX, DOCS_COMPONENT_HEADER_LAYER_INDEX, DOCS_COMPONENT_MAIN_LAYER_INDEX, DOCS_VIEW_KEY, DOC_VERTICAL_PADDING, DeleteCommand, DeleteCustomBlockCommand, DeleteLeftCommand, DeleteRightCommand, DocAutoFormatService, DocBackScrollRenderController, DocCanvasPopManagerService, DocCopyCommand, DocCreateTableOperation, DocCutCommand, DocEventManagerService, DocIMEInputManagerService, DocPasteCommand, DocPrintInterceptorService, DocRenderController, DocSelectAllCommand, DocSelectionRenderService, DocStateChangeManagerService, DocTableDeleteColumnsCommand, DocTableDeleteRowsCommand, DocTableDeleteTableCommand, DocTableInsertColumnCommand, DocTableInsertColumnLeftCommand, DocTableInsertColumnRightCommand, DocTableInsertRowAboveCommand, DocTableInsertRowBellowCommand, DocTableInsertRowCommand, DocTableTabCommand, DocUIController, DocsRenderService, menuSchema as DocsUIMenuSchema, Editor, EditorInsertTextCommandId, EditorService, EnterCommand, HorizontalLineCommand, IDocClipboardService, IEditorService, IMEInputCommand, InnerPasteCommand, InsertCommand, InsertCustomRangeCommand, ListOperationCommand, MergeTwoParagraphCommand, MoveCursorOperation, MoveSelectionOperation, NORMAL_TEXT_SELECTION_PLUGIN_NAME, NodePositionConvertToCursor, NodePositionConvertToRectRange, OrderListCommand, wordPastePlugin as PastePluginLark, univerPastePlugin as PastePluginUniver, wordPastePlugin$1 as PastePluginWord, QuickListCommand, RectRange, ReplaceContentCommand, ReplaceSelectionCommand, ReplaceSnapshotCommand, ReplaceTextRunsCommand, ResetInlineFormatTextBackgroundColorCommand, RichTextEditor, SetDocZoomRatioCommand, SetDocZoomRatioOperation, SetInlineFormatBoldCommand, SetInlineFormatCommand, SetInlineFormatFontFamilyCommand, SetInlineFormatFontSizeCommand, SetInlineFormatItalicCommand, SetInlineFormatStrikethroughCommand, SetInlineFormatSubscriptCommand, SetInlineFormatSuperscriptCommand, SetInlineFormatTextBackgroundColorCommand, SetInlineFormatTextColorCommand, SetInlineFormatUnderlineCommand, SetParagraphNamedStyleCommand, SwitchDocModeCommand, TEXT_RANGE_LAYER_INDEX, TabCommand, TextRange, ToggleCheckListCommand, UniverDocsUIPlugin, UpdateCommand, VIEWPORT_KEY, addCustomDecorationBySelectionFactory, addCustomDecorationFactory, calcDocRangePositions, convertBodyToHtml, convertPositionsToRectRanges, deleteCustomDecorationFactory, docDrawingPositionToTransform, genTableSource, generateParagraphs, getAnchorBounding, getCanvasOffsetByEngine, getCommandSkeleton, getCursorWhenDelete, getCustomBlockIdsInSelections, getCutActionsFromDocRanges, getDocObject, getDocObjectById, getEmptyTableCell, getEmptyTableRow, getLineBounding, getOneTextSelectionRange, getRichTextEditPath, getTableColumn, hasParagraphInTable, isInSameTableCell, isValidRectRange, neoGetDocObject, transformToDocDrawingPosition, useEditor, useEditorClickOutside, useIsFocusing, useKeyboardEvent, useLeftAndRightArrow, useOnChange, useResize, whenDocAndEditorFocused };
15152
+ export { AfterSpaceCommand, AlignCenterCommand, AlignJustifyCommand, AlignLeftCommand, AlignOperationCommand, AlignRightCommand, BreakLineCommand, BulletListCommand, ChangeListNestingLevelCommand, ChangeListNestingLevelType, ChangeListTypeCommand, CheckListCommand, CoverContentCommand, CreateDocTableCommand, CutContentCommand, DOCS_COMPONENT_BACKGROUND_LAYER_INDEX, DOCS_COMPONENT_DEFAULT_Z_INDEX, DOCS_COMPONENT_HEADER_LAYER_INDEX, DOCS_COMPONENT_MAIN_LAYER_INDEX, DOCS_VIEW_KEY, DOC_VERTICAL_PADDING, DeleteCommand, DeleteCustomBlockCommand, DeleteLeftCommand, DeleteRightCommand, DocAutoFormatService, DocBackScrollRenderController, DocCanvasPopManagerService, DocCopyCommand, DocCreateTableOperation, DocCutCommand, DocEventManagerService, DocIMEInputManagerService, DocPasteCommand, DocPrintInterceptorService, DocRenderController, DocSelectAllCommand, DocSelectionRenderService, DocStateChangeManagerService, DocTableDeleteColumnsCommand, DocTableDeleteRowsCommand, DocTableDeleteTableCommand, DocTableInsertColumnCommand, DocTableInsertColumnLeftCommand, DocTableInsertColumnRightCommand, DocTableInsertRowAboveCommand, DocTableInsertRowBellowCommand, DocTableInsertRowCommand, DocTableTabCommand, DocUIController, DocsRenderService, menuSchema as DocsUIMenuSchema, Editor, EditorInsertTextCommandId, EditorService, EnterCommand, HorizontalLineCommand, IDocClipboardService, IEditorService, IMEInputCommand, InnerPasteCommand, InsertCommand, InsertCustomRangeCommand, ListOperationCommand, MergeTwoParagraphCommand, MoveCursorOperation, MoveSelectionOperation, NORMAL_TEXT_SELECTION_PLUGIN_NAME, NodePositionConvertToCursor, NodePositionConvertToRectRange, OrderListCommand, LarkPastePlugin as PastePluginLark, UniverPastePlugin as PastePluginUniver, WordPastePlugin as PastePluginWord, QuickListCommand, RectRange, ReplaceContentCommand, ReplaceSelectionCommand, ReplaceSnapshotCommand, ReplaceTextRunsCommand, ResetInlineFormatTextBackgroundColorCommand, RichTextEditor, SetDocZoomRatioCommand, SetDocZoomRatioOperation, SetInlineFormatBoldCommand, SetInlineFormatCommand, SetInlineFormatFontFamilyCommand, SetInlineFormatFontSizeCommand, SetInlineFormatItalicCommand, SetInlineFormatStrikethroughCommand, SetInlineFormatSubscriptCommand, SetInlineFormatSuperscriptCommand, SetInlineFormatTextBackgroundColorCommand, SetInlineFormatTextColorCommand, SetInlineFormatUnderlineCommand, SetParagraphNamedStyleCommand, SwitchDocModeCommand, TEXT_RANGE_LAYER_INDEX, TabCommand, TextRange, ToggleCheckListCommand, UniverDocsUIPlugin, UpdateCommand, VIEWPORT_KEY, addCustomDecorationBySelectionFactory, addCustomDecorationFactory, calcDocRangePositions, convertBodyToHtml, convertPositionsToRectRanges, deleteCustomDecorationFactory, docDrawingPositionToTransform, genTableSource, generateParagraphs, getAnchorBounding, getCanvasOffsetByEngine, getCommandSkeleton, getCursorWhenDelete, getCustomBlockIdsInSelections, getCutActionsFromDocRanges, getDocObject, getDocObjectById, getEmptyTableCell, getEmptyTableRow, getLineBounding, getOneTextSelectionRange, getRichTextEditPath, getTableColumn, hasParagraphInTable, isInSameTableCell, isValidRectRange, neoGetDocObject, transformToDocDrawingPosition, useEditor, useEditorClickOutside, useIsFocusing, useKeyboardEvent, useLeftAndRightArrow, useOnChange, useResize, whenDocAndEditorFocused };
package/lib/index.css CHANGED
@@ -257,6 +257,10 @@
257
257
  border-color: var(--univer-primary-500);
258
258
  }
259
259
 
260
+ .\!univer-bg-gray-500 {
261
+ background-color: var(--univer-gray-500) !important;
262
+ }
263
+
260
264
  .\!univer-bg-gray-700 {
261
265
  background-color: var(--univer-gray-700) !important;
262
266
  }
@@ -269,6 +273,10 @@
269
273
  background-color: var(--univer-gray-100);
270
274
  }
271
275
 
276
+ .univer-bg-gray-200 {
277
+ background-color: var(--univer-gray-200);
278
+ }
279
+
272
280
  .univer-bg-white {
273
281
  background-color: var(--univer-white);
274
282
  }
@@ -449,6 +457,10 @@
449
457
  border-color: var(--univer-gray-700) !important;
450
458
  }
451
459
 
460
+ .dark\:\!univer-bg-gray-500:where(.univer-dark, .univer-dark *) {
461
+ background-color: var(--univer-gray-500) !important;
462
+ }
463
+
452
464
  .dark\:\!univer-bg-gray-600:where(.univer-dark, .univer-dark *) {
453
465
  background-color: var(--univer-gray-600) !important;
454
466
  }
package/lib/index.js CHANGED
@@ -2447,7 +2447,7 @@ _defineProperty(HtmlToUDMService, "_pluginList", []);
2447
2447
 
2448
2448
  //#endregion
2449
2449
  //#region src/services/clipboard/html-to-udm/paste-plugins/plugin-lark.ts
2450
- const wordPastePlugin = {
2450
+ const LarkPastePlugin = {
2451
2451
  name: "univer-doc-paste-plugin-lark",
2452
2452
  checkPasteType(html) {
2453
2453
  return /lark-record-clipboard/i.test(html);
@@ -2508,7 +2508,7 @@ function getParagraphStyle(el) {
2508
2508
 
2509
2509
  //#endregion
2510
2510
  //#region src/services/clipboard/html-to-udm/paste-plugins/plugin-univer.ts
2511
- const univerPastePlugin = {
2511
+ const UniverPastePlugin = {
2512
2512
  name: "univer-doc-paste-plugin-univer",
2513
2513
  checkPasteType(html) {
2514
2514
  return /UniverNormal/i.test(html);
@@ -2532,7 +2532,7 @@ const univerPastePlugin = {
2532
2532
 
2533
2533
  //#endregion
2534
2534
  //#region src/services/clipboard/html-to-udm/paste-plugins/plugin-word.ts
2535
- const wordPastePlugin$1 = {
2535
+ const WordPastePlugin = {
2536
2536
  name: "univer-doc-paste-plugin-word",
2537
2537
  checkPasteType(html) {
2538
2538
  return /word|mso/i.test(html);
@@ -2758,9 +2758,9 @@ var UDMToHtmlService = class {
2758
2758
 
2759
2759
  //#endregion
2760
2760
  //#region src/services/clipboard/clipboard.service.ts
2761
- HtmlToUDMService.use(wordPastePlugin$1);
2762
- HtmlToUDMService.use(wordPastePlugin);
2763
- HtmlToUDMService.use(univerPastePlugin);
2761
+ HtmlToUDMService.use(LarkPastePlugin);
2762
+ HtmlToUDMService.use(UniverPastePlugin);
2763
+ HtmlToUDMService.use(WordPastePlugin);
2764
2764
  function getTableSlice(body, start, end) {
2765
2765
  var _bodySlice$textRuns, _bodySlice$tables, _bodySlice$paragraphs;
2766
2766
  const bodySlice = getBodySlice(body, start, end + 2);
@@ -8701,6 +8701,7 @@ function PageSettings(props) {
8701
8701
  children: localeService.t("page-settings.top")
8702
8702
  }), /* @__PURE__ */ jsx(InputNumber, {
8703
8703
  precision: 2,
8704
+ min: 0,
8704
8705
  max: settings.pageSise.height / 2,
8705
8706
  value: settings.margins.top,
8706
8707
  onChange: (e) => handleMarginChange("top", e)
@@ -8712,6 +8713,7 @@ function PageSettings(props) {
8712
8713
  children: localeService.t("page-settings.bottom")
8713
8714
  }), /* @__PURE__ */ jsx(InputNumber, {
8714
8715
  precision: 2,
8716
+ min: 0,
8715
8717
  max: settings.pageSise.height / 2,
8716
8718
  value: settings.margins.bottom,
8717
8719
  onChange: (e) => handleMarginChange("bottom", e)
@@ -8726,6 +8728,7 @@ function PageSettings(props) {
8726
8728
  children: localeService.t("page-settings.left")
8727
8729
  }), /* @__PURE__ */ jsx(InputNumber, {
8728
8730
  precision: 2,
8731
+ min: 0,
8729
8732
  max: settings.pageSise.width / 2,
8730
8733
  value: settings.margins.left,
8731
8734
  onChange: (e) => handleMarginChange("left", e)
@@ -8737,6 +8740,7 @@ function PageSettings(props) {
8737
8740
  children: localeService.t("page-settings.right")
8738
8741
  }), /* @__PURE__ */ jsx(InputNumber, {
8739
8742
  precision: 2,
8743
+ min: 0,
8740
8744
  max: settings.pageSise.width / 2,
8741
8745
  value: settings.margins.right,
8742
8746
  onChange: (e) => handleMarginChange("right", e)
@@ -11244,7 +11248,7 @@ function ParagraphSetting() {
11244
11248
  title: item.label,
11245
11249
  placement: "bottom",
11246
11250
  children: /* @__PURE__ */ jsx("span", {
11247
- className: clsx("hover:univer-bg-black/60 univer-flex univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-bg-none univer-px-3 univer-py-1", { "univer-bg-blend-color-dodge/90": horizontalAlignValue === item.value }),
11251
+ className: clsx("hover:univer-bg-black/60 univer-flex univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-bg-none univer-px-3 univer-py-1", { "univer-bg-gray-200 dark:!univer-bg-gray-500": horizontalAlignValue === item.value }),
11248
11252
  onClick: () => setHorizontalAlign(item.value),
11249
11253
  children: item.icon
11250
11254
  })
@@ -12664,7 +12668,7 @@ function getPageSizeInModernMode(page) {
12664
12668
  //#endregion
12665
12669
  //#region package.json
12666
12670
  var name = "@univerjs/docs-ui";
12667
- var version = "0.21.0";
12671
+ var version = "0.21.1-insiders.20260429-a0b1161";
12668
12672
 
12669
12673
  //#endregion
12670
12674
  //#region src/controllers/doc-auto-format.controller.ts
@@ -14303,7 +14307,7 @@ let DocsRenderService = class DocsRenderService extends RxDisposable {
14303
14307
  _init() {
14304
14308
  this._renderManagerService.createRender$.pipe(takeUntil(this.dispose$)).subscribe((unitId) => this._createRenderWithId(unitId));
14305
14309
  this._instanceSrv.getAllUnitsForType(UniverInstanceType.UNIVER_DOC).forEach((documentModel) => this._createRenderer(documentModel));
14306
- this._instanceSrv.getTypeOfUnitAdded$(UniverInstanceType.UNIVER_DOC).pipe(takeUntil(this.dispose$)).subscribe((doc) => this._createRenderer(doc));
14310
+ this._instanceSrv.getTypeOfUnitAdded$(UniverInstanceType.UNIVER_DOC).pipe(takeUntil(this.dispose$)).subscribe((event) => this._createRenderer(event.unit));
14307
14311
  this._instanceSrv.getTypeOfUnitDisposed$(UniverInstanceType.UNIVER_DOC).pipe(takeUntil(this.dispose$)).subscribe((doc) => this._disposeRenderer(doc));
14308
14312
  }
14309
14313
  _createRenderer(doc) {
@@ -15145,4 +15149,4 @@ const RichTextEditor = (props) => {
15145
15149
  };
15146
15150
 
15147
15151
  //#endregion
15148
- export { AfterSpaceCommand, AlignCenterCommand, AlignJustifyCommand, AlignLeftCommand, AlignOperationCommand, AlignRightCommand, BreakLineCommand, BulletListCommand, ChangeListNestingLevelCommand, ChangeListNestingLevelType, ChangeListTypeCommand, CheckListCommand, CoverContentCommand, CreateDocTableCommand, CutContentCommand, DOCS_COMPONENT_BACKGROUND_LAYER_INDEX, DOCS_COMPONENT_DEFAULT_Z_INDEX, DOCS_COMPONENT_HEADER_LAYER_INDEX, DOCS_COMPONENT_MAIN_LAYER_INDEX, DOCS_VIEW_KEY, DOC_VERTICAL_PADDING, DeleteCommand, DeleteCustomBlockCommand, DeleteLeftCommand, DeleteRightCommand, DocAutoFormatService, DocBackScrollRenderController, DocCanvasPopManagerService, DocCopyCommand, DocCreateTableOperation, DocCutCommand, DocEventManagerService, DocIMEInputManagerService, DocPasteCommand, DocPrintInterceptorService, DocRenderController, DocSelectAllCommand, DocSelectionRenderService, DocStateChangeManagerService, DocTableDeleteColumnsCommand, DocTableDeleteRowsCommand, DocTableDeleteTableCommand, DocTableInsertColumnCommand, DocTableInsertColumnLeftCommand, DocTableInsertColumnRightCommand, DocTableInsertRowAboveCommand, DocTableInsertRowBellowCommand, DocTableInsertRowCommand, DocTableTabCommand, DocUIController, DocsRenderService, menuSchema as DocsUIMenuSchema, Editor, EditorInsertTextCommandId, EditorService, EnterCommand, HorizontalLineCommand, IDocClipboardService, IEditorService, IMEInputCommand, InnerPasteCommand, InsertCommand, InsertCustomRangeCommand, ListOperationCommand, MergeTwoParagraphCommand, MoveCursorOperation, MoveSelectionOperation, NORMAL_TEXT_SELECTION_PLUGIN_NAME, NodePositionConvertToCursor, NodePositionConvertToRectRange, OrderListCommand, wordPastePlugin as PastePluginLark, univerPastePlugin as PastePluginUniver, wordPastePlugin$1 as PastePluginWord, QuickListCommand, RectRange, ReplaceContentCommand, ReplaceSelectionCommand, ReplaceSnapshotCommand, ReplaceTextRunsCommand, ResetInlineFormatTextBackgroundColorCommand, RichTextEditor, SetDocZoomRatioCommand, SetDocZoomRatioOperation, SetInlineFormatBoldCommand, SetInlineFormatCommand, SetInlineFormatFontFamilyCommand, SetInlineFormatFontSizeCommand, SetInlineFormatItalicCommand, SetInlineFormatStrikethroughCommand, SetInlineFormatSubscriptCommand, SetInlineFormatSuperscriptCommand, SetInlineFormatTextBackgroundColorCommand, SetInlineFormatTextColorCommand, SetInlineFormatUnderlineCommand, SetParagraphNamedStyleCommand, SwitchDocModeCommand, TEXT_RANGE_LAYER_INDEX, TabCommand, TextRange, ToggleCheckListCommand, UniverDocsUIPlugin, UpdateCommand, VIEWPORT_KEY, addCustomDecorationBySelectionFactory, addCustomDecorationFactory, calcDocRangePositions, convertBodyToHtml, convertPositionsToRectRanges, deleteCustomDecorationFactory, docDrawingPositionToTransform, genTableSource, generateParagraphs, getAnchorBounding, getCanvasOffsetByEngine, getCommandSkeleton, getCursorWhenDelete, getCustomBlockIdsInSelections, getCutActionsFromDocRanges, getDocObject, getDocObjectById, getEmptyTableCell, getEmptyTableRow, getLineBounding, getOneTextSelectionRange, getRichTextEditPath, getTableColumn, hasParagraphInTable, isInSameTableCell, isValidRectRange, neoGetDocObject, transformToDocDrawingPosition, useEditor, useEditorClickOutside, useIsFocusing, useKeyboardEvent, useLeftAndRightArrow, useOnChange, useResize, whenDocAndEditorFocused };
15152
+ export { AfterSpaceCommand, AlignCenterCommand, AlignJustifyCommand, AlignLeftCommand, AlignOperationCommand, AlignRightCommand, BreakLineCommand, BulletListCommand, ChangeListNestingLevelCommand, ChangeListNestingLevelType, ChangeListTypeCommand, CheckListCommand, CoverContentCommand, CreateDocTableCommand, CutContentCommand, DOCS_COMPONENT_BACKGROUND_LAYER_INDEX, DOCS_COMPONENT_DEFAULT_Z_INDEX, DOCS_COMPONENT_HEADER_LAYER_INDEX, DOCS_COMPONENT_MAIN_LAYER_INDEX, DOCS_VIEW_KEY, DOC_VERTICAL_PADDING, DeleteCommand, DeleteCustomBlockCommand, DeleteLeftCommand, DeleteRightCommand, DocAutoFormatService, DocBackScrollRenderController, DocCanvasPopManagerService, DocCopyCommand, DocCreateTableOperation, DocCutCommand, DocEventManagerService, DocIMEInputManagerService, DocPasteCommand, DocPrintInterceptorService, DocRenderController, DocSelectAllCommand, DocSelectionRenderService, DocStateChangeManagerService, DocTableDeleteColumnsCommand, DocTableDeleteRowsCommand, DocTableDeleteTableCommand, DocTableInsertColumnCommand, DocTableInsertColumnLeftCommand, DocTableInsertColumnRightCommand, DocTableInsertRowAboveCommand, DocTableInsertRowBellowCommand, DocTableInsertRowCommand, DocTableTabCommand, DocUIController, DocsRenderService, menuSchema as DocsUIMenuSchema, Editor, EditorInsertTextCommandId, EditorService, EnterCommand, HorizontalLineCommand, IDocClipboardService, IEditorService, IMEInputCommand, InnerPasteCommand, InsertCommand, InsertCustomRangeCommand, ListOperationCommand, MergeTwoParagraphCommand, MoveCursorOperation, MoveSelectionOperation, NORMAL_TEXT_SELECTION_PLUGIN_NAME, NodePositionConvertToCursor, NodePositionConvertToRectRange, OrderListCommand, LarkPastePlugin as PastePluginLark, UniverPastePlugin as PastePluginUniver, WordPastePlugin as PastePluginWord, QuickListCommand, RectRange, ReplaceContentCommand, ReplaceSelectionCommand, ReplaceSnapshotCommand, ReplaceTextRunsCommand, ResetInlineFormatTextBackgroundColorCommand, RichTextEditor, SetDocZoomRatioCommand, SetDocZoomRatioOperation, SetInlineFormatBoldCommand, SetInlineFormatCommand, SetInlineFormatFontFamilyCommand, SetInlineFormatFontSizeCommand, SetInlineFormatItalicCommand, SetInlineFormatStrikethroughCommand, SetInlineFormatSubscriptCommand, SetInlineFormatSuperscriptCommand, SetInlineFormatTextBackgroundColorCommand, SetInlineFormatTextColorCommand, SetInlineFormatUnderlineCommand, SetParagraphNamedStyleCommand, SwitchDocModeCommand, TEXT_RANGE_LAYER_INDEX, TabCommand, TextRange, ToggleCheckListCommand, UniverDocsUIPlugin, UpdateCommand, VIEWPORT_KEY, addCustomDecorationBySelectionFactory, addCustomDecorationFactory, calcDocRangePositions, convertBodyToHtml, convertPositionsToRectRanges, deleteCustomDecorationFactory, docDrawingPositionToTransform, genTableSource, generateParagraphs, getAnchorBounding, getCanvasOffsetByEngine, getCommandSkeleton, getCursorWhenDelete, getCustomBlockIdsInSelections, getCutActionsFromDocRanges, getDocObject, getDocObjectById, getEmptyTableCell, getEmptyTableRow, getLineBounding, getOneTextSelectionRange, getRichTextEditPath, getTableColumn, hasParagraphInTable, isInSameTableCell, isValidRectRange, neoGetDocObject, transformToDocDrawingPosition, useEditor, useEditorClickOutside, useIsFocusing, useKeyboardEvent, useLeftAndRightArrow, useOnChange, useResize, whenDocAndEditorFocused };
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import type { IPastePlugin } from './type';
17
- declare const wordPastePlugin: IPastePlugin;
18
- export default wordPastePlugin;
17
+ declare const LarkPastePlugin: IPastePlugin;
18
+ export default LarkPastePlugin;
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import type { IPastePlugin } from './type';
17
- declare const univerPastePlugin: IPastePlugin;
18
- export default univerPastePlugin;
17
+ declare const UniverPastePlugin: IPastePlugin;
18
+ export default UniverPastePlugin;
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import type { IPastePlugin } from './type';
17
- declare const wordPastePlugin: IPastePlugin;
18
- export default wordPastePlugin;
17
+ declare const WordPastePlugin: IPastePlugin;
18
+ export default WordPastePlugin;