@univerjs/docs-ui 0.2.6 → 0.2.8

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.
Files changed (78) hide show
  1. package/lib/cjs/index.js +7 -4
  2. package/lib/es/index.js +1913 -647
  3. package/lib/index.css +1 -1
  4. package/lib/locale/en-US.json +38 -0
  5. package/lib/locale/ru-RU.json +39 -1
  6. package/lib/locale/vi-VN.json +39 -1
  7. package/lib/locale/zh-CN.json +40 -2
  8. package/lib/locale/zh-TW.json +39 -1
  9. package/lib/types/basics/interfaces/component-config/i-doc-ui-plugin-config.d.ts +2 -1
  10. package/lib/types/basics/transform-position.d.ts +0 -1
  11. package/lib/types/commands/commands/clipboard.command.d.ts +0 -1
  12. package/lib/types/commands/commands/doc-header-footer.command.d.ts +0 -1
  13. package/lib/types/commands/commands/doc-paragraph-setting.command.d.ts +3 -0
  14. package/lib/types/commands/commands/doc-tab.command.d.ts +7 -0
  15. package/lib/types/commands/operations/doc-create-table.operation.d.ts +2 -0
  16. package/lib/types/commands/operations/doc-header-footer-panel.operation.d.ts +0 -1
  17. package/lib/types/commands/operations/doc-paragraph-setting-panel.operation.d.ts +2 -0
  18. package/lib/types/components/list-type-picker/index.d.ts +18 -0
  19. package/lib/types/components/list-type-picker/picker.d.ts +16 -0
  20. package/lib/types/controllers/app-ui-controller.d.ts +0 -1
  21. package/lib/types/controllers/clipboard.controller.d.ts +0 -1
  22. package/lib/types/controllers/doc-auto-format.controller.d.ts +10 -0
  23. package/lib/types/controllers/doc-container-ui-controller.d.ts +0 -1
  24. package/lib/types/controllers/doc-editor-bridge.controller.d.ts +0 -1
  25. package/lib/types/controllers/doc-header-footer.controller.d.ts +0 -2
  26. package/lib/types/controllers/doc-paragraph-setting.controller.d.ts +10 -0
  27. package/lib/types/controllers/doc-table.controller.d.ts +11 -0
  28. package/lib/types/controllers/doc-ui.controller.d.ts +12 -11
  29. package/lib/types/controllers/menu/context-menu.d.ts +11 -2
  30. package/lib/types/controllers/menu/menu.d.ts +9 -5
  31. package/lib/types/controllers/render-controllers/back-scroll.render-controller.d.ts +0 -1
  32. package/lib/types/controllers/render-controllers/contextmenu.render-controller.d.ts +0 -1
  33. package/lib/types/controllers/render-controllers/doc-checklist.render-controller.d.ts +14 -0
  34. package/lib/types/controllers/render-controllers/doc-hover.render-controller.d.ts +0 -1
  35. package/lib/types/controllers/render-controllers/doc-resize.render-controller.d.ts +0 -1
  36. package/lib/types/controllers/render-controllers/doc.render-controller.d.ts +3 -3
  37. package/lib/types/controllers/render-controllers/text-selection.render-controller.d.ts +0 -1
  38. package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +3 -4
  39. package/lib/types/docs-ui-plugin.d.ts +6 -4
  40. package/lib/types/index.d.ts +2 -0
  41. package/lib/types/locale/en-US.d.ts +0 -1
  42. package/lib/types/locale/ru-RU.d.ts +0 -1
  43. package/lib/types/locale/vi-VN.d.ts +0 -1
  44. package/lib/types/locale/zh-CN.d.ts +38 -0
  45. package/lib/types/locale/zh-TW.d.ts +0 -1
  46. package/lib/types/services/clipboard/clipboard.service.d.ts +2 -3
  47. package/lib/types/services/clipboard/copy-content-cache.d.ts +3 -4
  48. package/lib/types/services/clipboard/html-to-udm/converter.d.ts +5 -3
  49. package/lib/types/services/clipboard/html-to-udm/parse-node-style.d.ts +0 -1
  50. package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-lark.d.ts +0 -1
  51. package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-univer.d.ts +0 -1
  52. package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-word.d.ts +0 -1
  53. package/lib/types/services/clipboard/html-to-udm/paste-plugins/type.d.ts +2 -3
  54. package/lib/types/services/clipboard/html-to-udm/utils.d.ts +0 -1
  55. package/lib/types/services/clipboard/udm-to-html/convertor.d.ts +1 -2
  56. package/lib/types/services/doc-hover-manager.service.d.ts +3 -2
  57. package/lib/types/services/doc-page-layout.service.d.ts +0 -1
  58. package/lib/types/services/doc-popup-manager.service.d.ts +1 -2
  59. package/lib/types/services/docs-render.service.d.ts +0 -1
  60. package/lib/types/shortcuts/core-editing.shortcut.d.ts +0 -1
  61. package/lib/types/shortcuts/cursor.shortcut.d.ts +0 -1
  62. package/lib/types/shortcuts/format.shortcut.d.ts +3 -0
  63. package/lib/types/{controllers/shortcut → shortcuts}/toolbar.shortcut.d.ts +0 -1
  64. package/lib/types/shortcuts/utils.d.ts +0 -1
  65. package/lib/types/views/count-bar/CountBar.d.ts +0 -1
  66. package/lib/types/views/count-bar/ZoomSlider.d.ts +0 -1
  67. package/lib/types/views/doc-container/DocContainer.d.ts +0 -1
  68. package/lib/types/views/doc-footer/DocFooter.d.ts +0 -1
  69. package/lib/types/views/header-footer/panel/DocHeaderFooterOptions.d.ts +0 -1
  70. package/lib/types/views/header-footer/panel/DocHeaderFooterPanel.d.ts +0 -1
  71. package/lib/types/views/header-footer/text-bubble.d.ts +0 -1
  72. package/lib/types/views/paragraph-setting/Setting.d.ts +17 -0
  73. package/lib/types/views/paragraph-setting/hook/utils.d.ts +10 -0
  74. package/lib/types/views/paragraph-setting/index.d.ts +2 -0
  75. package/lib/types/views/table/create/TableCreate.d.ts +10 -0
  76. package/lib/types/views/table/create/component-name.d.ts +16 -0
  77. package/lib/umd/index.js +7 -4
  78. package/package.json +17 -14
@@ -2,7 +2,6 @@ import { Disposable } from '@univerjs/core';
2
2
  import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
3
  import { TextSelectionManagerService } from '@univerjs/docs';
4
4
  import { DocPageLayoutService } from '../../services/doc-page-layout.service';
5
-
6
5
  export declare class DocResizeRenderController extends Disposable implements IRenderModule {
7
6
  private _context;
8
7
  private readonly _docPageLayoutService;
@@ -1,16 +1,16 @@
1
- import { DocumentDataModel, ICommandService, IConfigService, RxDisposable } from '@univerjs/core';
1
+ import { DocumentDataModel, ICommandService, IConfigService, IContextService, RxDisposable } from '@univerjs/core';
2
2
  import { DocSkeletonManagerService } from '@univerjs/docs';
3
3
  import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
4
4
  import { IEditorService } from '@univerjs/ui';
5
-
6
5
  export declare class DocRenderController extends RxDisposable implements IRenderModule {
7
6
  private readonly _context;
7
+ private readonly _contextService;
8
8
  private readonly _commandService;
9
9
  private readonly _docSkeletonManagerService;
10
10
  private readonly _configService;
11
11
  private readonly _editorService;
12
12
  private readonly _renderManagerService;
13
- constructor(_context: IRenderContext<DocumentDataModel>, _commandService: ICommandService, _docSkeletonManagerService: DocSkeletonManagerService, _configService: IConfigService, _editorService: IEditorService, _renderManagerService: IRenderManagerService);
13
+ constructor(_context: IRenderContext<DocumentDataModel>, _contextService: IContextService, _commandService: ICommandService, _docSkeletonManagerService: DocSkeletonManagerService, _configService: IConfigService, _editorService: IEditorService, _renderManagerService: IRenderManagerService);
14
14
  reRender(unitId: string): void;
15
15
  private _addNewRender;
16
16
  private _addComponent;
@@ -2,7 +2,6 @@ import { DocumentDataModel, Disposable, ICommandService, IUniverInstanceService
2
2
  import { IRenderContext, IRenderModule, ITextSelectionRenderManager } from '@univerjs/engine-render';
3
3
  import { IEditorService } from '@univerjs/ui';
4
4
  import { DocSkeletonManagerService, TextSelectionManagerService } from '@univerjs/docs';
5
-
6
5
  export declare class DocTextSelectionRenderController extends Disposable implements IRenderModule {
7
6
  private readonly _context;
8
7
  private readonly _commandService;
@@ -1,19 +1,18 @@
1
- import { DocumentDataModel, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
1
+ import { DocumentDataModel, Disposable, ICommandService, IContextService, IUniverInstanceService } from '@univerjs/core';
2
2
  import { DocSkeletonManagerService, TextSelectionManagerService } from '@univerjs/docs';
3
3
  import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
4
4
  import { IEditorService } from '@univerjs/ui';
5
5
  import { DocPageLayoutService } from '../../services/doc-page-layout.service';
6
-
7
6
  export declare class DocZoomRenderController extends Disposable implements IRenderModule {
8
7
  private readonly _context;
8
+ private readonly _contextService;
9
9
  private readonly _docSkeletonManagerService;
10
10
  private readonly _univerInstanceService;
11
11
  private readonly _commandService;
12
12
  private readonly _textSelectionManagerService;
13
13
  private readonly _editorService;
14
14
  private readonly _docPageLayoutService;
15
- constructor(_context: IRenderContext<DocumentDataModel>, _docSkeletonManagerService: DocSkeletonManagerService, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _textSelectionManagerService: TextSelectionManagerService, _editorService: IEditorService, _docPageLayoutService: DocPageLayoutService);
16
- private _init;
15
+ constructor(_context: IRenderContext<DocumentDataModel>, _contextService: IContextService, _docSkeletonManagerService: DocSkeletonManagerService, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _textSelectionManagerService: TextSelectionManagerService, _editorService: IEditorService, _docPageLayoutService: DocPageLayoutService);
17
16
  private _initRenderRefresher;
18
17
  private _initSkeletonListener;
19
18
  private _initCommandExecutedListener;
@@ -1,18 +1,20 @@
1
- import { ILogService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
1
+ import { ICommandService, ILogService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
2
  import { IRenderManagerService } from '@univerjs/engine-render';
3
3
  import { IUniverDocsUIConfig } from './basics';
4
-
5
4
  export declare class UniverDocsUIPlugin extends Plugin {
6
5
  private readonly _config;
7
6
  _injector: Injector;
8
7
  private readonly _renderManagerSrv;
8
+ private _commandService;
9
9
  private _logService;
10
10
  static pluginName: string;
11
11
  static type: UniverInstanceType;
12
- constructor(_config: IUniverDocsUIConfig, _injector: Injector, _renderManagerSrv: IRenderManagerService, _logService: ILogService);
12
+ constructor(_config: IUniverDocsUIConfig, _injector: Injector, _renderManagerSrv: IRenderManagerService, _commandService: ICommandService, _logService: ILogService);
13
13
  onReady(): void;
14
14
  onRendered(): void;
15
- private _initializeCommands;
15
+ private _initCommand;
16
+ private _initializeShortcut;
17
+ private _registerCommands;
16
18
  private _initDependencies;
17
19
  private _markDocAsFocused;
18
20
  private _initUI;
@@ -24,4 +24,6 @@ export { DocsRenderService } from './services/docs-render.service';
24
24
  export { DocCanvasPopManagerService } from './services/doc-popup-manager.service';
25
25
  export { docDrawingPositionToTransform, transformToDocDrawingPosition } from './basics/transform-position';
26
26
  export { DocHoverManagerService } from './services/doc-hover-manager.service';
27
+ export { DocUIController } from './controllers/doc-ui.controller';
27
28
  export { DocCopyCommand, DocCutCommand, DocPasteCommand } from './commands/commands/clipboard.command';
29
+ export { DocCreateTableOperation } from './commands/operations/doc-create-table.operation';
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const locale: typeof zhCN;
4
3
  export default locale;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const locale: typeof zhCN;
4
3
  export default locale;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const locale: typeof zhCN;
4
3
  export default locale;
@@ -33,15 +33,33 @@ declare const locale: {
33
33
  main: string;
34
34
  right: string;
35
35
  };
36
+ table: {
37
+ main: string;
38
+ insert: string;
39
+ colCount: string;
40
+ rowCount: string;
41
+ };
36
42
  resetColor: string;
37
43
  order: string;
38
44
  unorder: string;
45
+ checklist: string;
39
46
  alignLeft: string;
40
47
  alignCenter: string;
41
48
  alignRight: string;
42
49
  alignJustify: string;
43
50
  headerFooter: string;
44
51
  };
52
+ table: {
53
+ insert: string;
54
+ insertRowAbove: string;
55
+ insertRowBelow: string;
56
+ insertColumnLeft: string;
57
+ insertColumnRight: string;
58
+ delete: string;
59
+ deleteRows: string;
60
+ deleteColumns: string;
61
+ deleteTable: string;
62
+ };
45
63
  headerFooter: {
46
64
  header: string;
47
65
  footer: string;
@@ -53,5 +71,25 @@ declare const locale: {
53
71
  closeHeaderFooter: string;
54
72
  disableText: string;
55
73
  };
74
+ doc: {
75
+ menu: {
76
+ paragraphSetting: string;
77
+ };
78
+ slider: {
79
+ paragraphSetting: string;
80
+ };
81
+ paragraphSetting: {
82
+ alignment: string;
83
+ indentation: string;
84
+ left: string;
85
+ right: string;
86
+ firstLine: string;
87
+ hanging: string;
88
+ spacing: string;
89
+ before: string;
90
+ after: string;
91
+ lineSpace: string;
92
+ };
93
+ };
56
94
  };
57
95
  export default locale;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const locale: typeof zhCN;
4
3
  export default locale;
@@ -1,7 +1,6 @@
1
1
  import { IDisposable, IDocumentBody, Disposable, ICommandService, ILogService, IUniverInstanceService, SliceBodyType } from '@univerjs/core';
2
2
  import { IClipboardInterfaceService } from '@univerjs/ui';
3
3
  import { DocCustomRangeService, TextSelectionManagerService } from '@univerjs/docs';
4
-
5
4
  export interface IClipboardPropertyItem {
6
5
  }
7
6
  export interface IDocClipboardHook {
@@ -37,7 +36,7 @@ export declare class DocClipboardService extends Disposable implements IDocClipb
37
36
  private _setClipboardData;
38
37
  addClipboardHook(hook: IDocClipboardHook): IDisposable;
39
38
  private _getDocumentBodyInRanges;
40
- private _generateBodyFromClipboardItems;
39
+ private _genDocDataFromClipboardItems;
41
40
  private _generateBody;
42
- private _generateBodyFromHtmlAndText;
41
+ private _genDocDataFromHtmlAndText;
43
42
  }
@@ -1,11 +1,10 @@
1
- import { IDocumentBody } from '@univerjs/core';
2
-
1
+ import { IDocumentData } from '@univerjs/core';
3
2
  export declare function genId(): string;
4
3
  export declare function extractId(html: string): string | null;
5
4
  export declare class CopyContentCache {
6
5
  private _cache;
7
- set(id: string, clipboardData: IDocumentBody): void;
8
- get(id: string): IDocumentBody | undefined;
6
+ set(id: string, clipboardData: Partial<IDocumentData>): void;
7
+ get(id: string): Partial<IDocumentData> | undefined;
9
8
  clear(): void;
10
9
  }
11
10
  export declare const copyContentCache: CopyContentCache;
@@ -1,6 +1,5 @@
1
- import { IDocumentBody } from '@univerjs/core';
1
+ import { IDocumentData } from '@univerjs/core';
2
2
  import { IPastePlugin } from './paste-plugins/type';
3
-
4
3
  /**
5
4
  * Convert html strings into data structures in univer, IDocumentBody.
6
5
  * Support plug-in, add custom rules,
@@ -8,9 +7,12 @@ import { IPastePlugin } from './paste-plugins/type';
8
7
  export declare class HtmlToUDMService {
9
8
  private static _pluginList;
10
9
  static use(plugin: IPastePlugin): void;
10
+ private _tableCache;
11
11
  private _styleCache;
12
12
  private _styleRules;
13
13
  private _afterProcessRules;
14
- convert(html: string): IDocumentBody;
14
+ convert(html: string): Partial<IDocumentData>;
15
15
  private _process;
16
+ private _processBeforeTable;
17
+ private _processAfterTable;
16
18
  }
@@ -1,3 +1,2 @@
1
1
  import { ITextStyle } from '@univerjs/core';
2
-
3
2
  export declare function extractNodeStyle(node: HTMLElement): ITextStyle;
@@ -1,4 +1,3 @@
1
1
  import { IPastePlugin } from './type';
2
-
3
2
  declare const wordPastePlugin: IPastePlugin;
4
3
  export default wordPastePlugin;
@@ -1,4 +1,3 @@
1
1
  import { IPastePlugin } from './type';
2
-
3
2
  declare const univerPastePlugin: IPastePlugin;
4
3
  export default univerPastePlugin;
@@ -1,4 +1,3 @@
1
1
  import { IPastePlugin } from './type';
2
-
3
2
  declare const wordPastePlugin: IPastePlugin;
4
3
  export default wordPastePlugin;
@@ -1,12 +1,11 @@
1
- import { IDocumentBody, ITextStyle } from '@univerjs/core';
2
-
1
+ import { IDocumentData, ITextStyle } from '@univerjs/core';
3
2
  export interface IStyleRule {
4
3
  filter: string | string[] | ((node: HTMLElement) => boolean);
5
4
  getStyle(node: HTMLElement): ITextStyle;
6
5
  }
7
6
  export interface IAfterProcessRule {
8
7
  filter: string | string[] | ((node: HTMLElement) => boolean);
9
- handler(doc: IDocumentBody, node: HTMLElement): void;
8
+ handler(doc: Partial<IDocumentData>, node: HTMLElement): void;
10
9
  }
11
10
  export interface IPastePlugin {
12
11
  name: string;
@@ -1,3 +1,2 @@
1
1
  import { IParagraphStyle, Nullable } from '@univerjs/core';
2
-
3
2
  export declare function getParagraphStyle(el: HTMLElement): Nullable<IParagraphStyle>;
@@ -1,8 +1,7 @@
1
1
  import { IDocumentBody, ITextRun } from '@univerjs/core';
2
-
3
2
  export declare function covertTextRunToHtml(dataStream: string, textRun: ITextRun): string;
4
3
  export declare function getBodySliceHtml(body: IDocumentBody, startIndex: number, endIndex: number): string;
5
- export declare function convertBodyToHtml(body: IDocumentBody, withParagraphInfo?: boolean): string;
4
+ export declare function convertBodyToHtml(body: IDocumentBody): string;
6
5
  export declare class UDMToHtmlService {
7
6
  convert(bodyList: IDocumentBody[]): string;
8
7
  }
@@ -1,6 +1,5 @@
1
- import { ICustomRange, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
1
+ import { ICustomRange, IParagraph, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
2
2
  import { IMouseEvent, IPointerEvent, IRenderManagerService } from '@univerjs/engine-render';
3
-
4
3
  export declare class DocHoverManagerService extends Disposable {
5
4
  private readonly _univerInstanceService;
6
5
  private readonly _renderManagerService;
@@ -8,6 +7,8 @@ export declare class DocHoverManagerService extends Disposable {
8
7
  readonly activeCustomRanges$: import('rxjs').Observable<ICustomRange[]>;
9
8
  private readonly _activeIndex$;
10
9
  readonly activeIndex$: import('rxjs').Observable<Nullable<number>>;
10
+ private readonly _bullet$;
11
+ readonly bullet$: import('rxjs').Observable<Nullable<IParagraph>>;
11
12
  private _scrolling;
12
13
  constructor(_univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService);
13
14
  private _getTransformCoordForDocumentOffset;
@@ -1,6 +1,5 @@
1
1
  import { DocumentDataModel, Disposable } from '@univerjs/core';
2
2
  import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
-
4
3
  export declare class DocPageLayoutService extends Disposable implements IRenderModule {
5
4
  private _context;
6
5
  constructor(_context: IRenderContext<DocumentDataModel>);
@@ -1,13 +1,12 @@
1
1
  import { IDisposable, ITextRange, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
2
2
  import { IRenderManagerService, BaseObject, IBoundRectNoAngle, Scene } from '@univerjs/engine-render';
3
3
  import { IPopup, ICanvasPopupService } from '@univerjs/ui';
4
-
5
4
  export declare function transformBound2OffsetBound(originBound: IBoundRectNoAngle, scene: Scene): IBoundRectNoAngle;
6
5
  export declare function transformPosition2Offset(x: number, y: number, scene: Scene): {
7
6
  x: number;
8
7
  y: number;
9
8
  };
10
- export interface IDocCanvasPopup extends Pick<IPopup, 'direction' | 'excludeOutside' | 'closeOnSelfTarget' | 'componentKey' | 'offset' | 'onClickOutside'> {
9
+ export interface IDocCanvasPopup extends Pick<IPopup, 'direction' | 'excludeOutside' | 'closeOnSelfTarget' | 'componentKey' | 'offset' | 'onClickOutside' | 'hideOnInvisible'> {
11
10
  mask?: boolean;
12
11
  extraProps?: Record<string, any>;
13
12
  }
@@ -1,6 +1,5 @@
1
1
  import { IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
2
  import { IRenderManagerService } from '@univerjs/engine-render';
3
-
4
3
  export declare class DocsRenderService extends RxDisposable {
5
4
  private readonly _instanceSrv;
6
5
  private readonly _renderManagerService;
@@ -1,5 +1,4 @@
1
1
  import { IShortcutItem } from '@univerjs/ui';
2
-
3
2
  export declare const BreakLineShortcut: IShortcutItem;
4
3
  export declare const DeleteLeftShortcut: IShortcutItem;
5
4
  export declare const DeleteRightShortcut: IShortcutItem;
@@ -1,5 +1,4 @@
1
1
  import { IShortcutItem } from '@univerjs/ui';
2
-
3
2
  export declare const MoveCursorUpShortcut: IShortcutItem;
4
3
  export declare const MoveCursorDownShortcut: IShortcutItem;
5
4
  export declare const MoveCursorLeftShortcut: IShortcutItem;
@@ -0,0 +1,3 @@
1
+ import { IShortcutItem } from '@univerjs/ui';
2
+ export declare const TabShortCut: IShortcutItem;
3
+ export declare const ShiftTabShortCut: IShortcutItem;
@@ -1,5 +1,4 @@
1
1
  import { IShortcutItem } from '@univerjs/ui';
2
-
3
2
  export declare const BoldShortCut: IShortcutItem;
4
3
  export declare const ItalicShortCut: IShortcutItem;
5
4
  export declare const UnderlineShortCut: IShortcutItem;
@@ -1,4 +1,3 @@
1
1
  import { IContextService } from '@univerjs/core';
2
-
3
2
  export declare function whenDocAndEditorFocused(contextService: IContextService): boolean;
4
3
  export declare function whenDocAndEditorFocusedWithBreakLine(contextService: IContextService): boolean;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  interface ICountBarProps {
4
3
  changeRatio?: (ratio: string) => void;
5
4
  onChange?: (value: string) => void;
@@ -1,3 +1,2 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare function ZoomSlider(): React.JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { default as React, Component } from 'react';
2
2
  import { IUniverDocsUIConfig } from '../../basics';
3
-
4
3
  interface IBaseDocContainerProps {
5
4
  config: IUniverDocsUIConfig;
6
5
  changeLocale: (locale: string) => void;
@@ -1,3 +1,2 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare const DocFooter: () => React.JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface IDocHeaderFooterOptionsProps {
4
3
  unitId: string;
5
4
  }
@@ -1,3 +1,2 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare const DocHeaderFooterPanel: () => React.JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { IShapeProps, UniverRenderingContext, Shape } from '@univerjs/engine-render';
2
-
3
2
  export declare const COLLAB_CURSOR_LABEL_HEIGHT = 18;
4
3
  export declare const COLLAB_CURSOR_LABEL_MAX_WIDTH = 200;
5
4
  export declare const COLLAB_CURSOR_LABEL_TEXT_PADDING_LR = 6;
@@ -0,0 +1,17 @@
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
+ */
16
+ import * as React from 'react';
17
+ export declare function ParagraphSetting(): React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { IParagraph } from '@univerjs/core';
2
+ export declare const useCurrentParagraph: () => IParagraph[];
3
+ export declare const useFirstParagraphHorizontalAlign: (paragraph: IParagraph[], defaultValue: string) => readonly [string, (v: string) => Promise<boolean>];
4
+ export declare const useFirstParagraphIndentStart: (paragraph: IParagraph[]) => readonly [number, (v: number) => Promise<boolean>];
5
+ export declare const useFirstParagraphIndentEnd: (paragraph: IParagraph[]) => readonly [number, (v: number) => Promise<boolean>];
6
+ export declare const useFirstParagraphIndentFirstLine: (paragraph: IParagraph[]) => readonly [number, (v: number) => Promise<boolean>];
7
+ export declare const useFirstParagraphIndentHanging: (paragraph: IParagraph[]) => readonly [number, (v: number) => Promise<boolean>];
8
+ export declare const useFirstParagraphIndentSpaceAbove: (paragraph: IParagraph[]) => readonly [number, (v: number) => Promise<boolean>];
9
+ export declare const useFirstParagraphSpaceBelow: (paragraph: IParagraph[]) => readonly [number, (v: number) => Promise<boolean>];
10
+ export declare const useFirstParagraphLineSpacing: (paragraph: IParagraph[]) => readonly [number, (v: number) => Promise<boolean>];
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare function ParagraphSettingIndex(): React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ interface IDocCreateTableConfirmProps {
3
+ handleRowColChange: (rowCount: number, colCount: number) => void;
4
+ tableCreateParams: {
5
+ rowCount: number;
6
+ colCount: number;
7
+ };
8
+ }
9
+ export declare const DocCreateTableConfirm: ({ handleRowColChange, tableCreateParams, }: IDocCreateTableConfirmProps) => React.JSX.Element;
10
+ export {};
@@ -0,0 +1,16 @@
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
+ */
16
+ export declare const COMPONENT_DOC_CREATE_TABLE_CONFIRM = "COMPONENT_DOC_CREATE_TABLE_CONFIRM";