@univerjs/docs-ui 0.2.10 → 0.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.css CHANGED
@@ -1 +1 @@
1
- .univer-panel{padding-top:20px;font-size:var(--font-size-sm)}.univer-options-section{margin-top:10px;padding-bottom:10px}.univer-options-form-item{display:block;margin-bottom:5px}.univer-options-input{width:80%;margin-top:5px}.univer-options-margin-setting{display:flex}.univer-doc-count-bar{display:flex;flex:0 0 260px;justify-content:flex-end}.univer-doc-footer-container{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 var(--padding-xl)}.univer-doc-list-type-picker{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;padding:var(--padding-sm);width:240px;margin-bottom:-var(--margin-xs)}.univer-doc-list-type-picker-item{width:72px;height:81px;border-radius:4px;border:1px solid rgb(var(--border-color));margin-bottom:var(--margin-xs)}.univer-doc-list-type-picker-item:hover,.univer-doc-list-type-picker-item-active{border:1px solid rgb(var(--blue-400))}.univer-paragraph-setting-icon-list{display:flex;width:100%;padding:4px;align-items:center;gap:4px;justify-content:space-between;border:1px solid var(---Grey-200, #e5e5e5);border-radius:var(--radius-m, 6px)}.univer-paragraph-setting-icon-list-item{padding:4px 14px;border-radius:4px;background:none;display:flex;justify-content:center;align-items:center;cursor:pointer}.univer-paragraph-setting-icon-list-item:hover{background:var(--black-6, rgba(30, 34, 43, .06))}.univer-paragraph-setting-icon-list-item.univer-paragraph-setting-icon-list-active{background:var(--black-9, rgba(30, 34, 43, .09))}.univer-paragraph-setting-title{margin-top:var(--margin-base);font-size:13px;color:#1e222b;font-weight:500}.univer-paragraph-setting-label{font-size:12px;margin-top:var(--margin-sm);color:#1e222b;font-weight:400}.univer-paragraph-setting-mt-base{margin-top:var(--margin-base)}.univer-paragraph-setting-flex-col{display:flex;justify-content:space-between;align-items:center}.univer-create{padding:20px auto;display:flex;align-content:center;justify-content:space-between}.univer-create-item{display:flex;align-items:center}.univer-create-label{margin-right:5px}.univer-create-input{width:110px}
1
+ .univer-panel{padding-top:20px;font-size:var(--font-size-sm)}.univer-options-section{margin-top:10px;padding-bottom:10px}.univer-options-form-item{display:block;margin-bottom:5px}.univer-options-input{width:80%;margin-top:5px}.univer-options-margin-setting{display:flex}.univer-doc-count-bar{display:flex;flex:0 0 260px;justify-content:flex-end}.univer-doc-footer-container{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 var(--padding-xl)}.univer-doc-list-type-picker{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;padding:var(--padding-sm);width:240px;margin-bottom:-var(--margin-xs)}.univer-doc-list-type-picker-item{width:72px;height:81px;border-radius:4px;border:1px solid rgb(var(--border-color));margin-bottom:var(--margin-xs)}.univer-doc-list-type-picker-item:hover,.univer-doc-list-type-picker-item-active{border:1px solid rgb(var(--blue-400))}.univer-paragraph-setting-icon-list{display:flex;width:100%;padding:4px;align-items:center;gap:4px;justify-content:space-between;border:1px solid var(---Grey-200, #e5e5e5);border-radius:var(--radius-m, 6px)}.univer-paragraph-setting-icon-list-item{padding:4px 14px;border-radius:4px;background:none;display:flex;justify-content:center;align-items:center;cursor:pointer}.univer-paragraph-setting-icon-list-item:hover{background:var(--black-6, rgba(30, 34, 43, .06))}.univer-paragraph-setting-icon-list-item.univer-paragraph-setting-icon-list-active{background:var(--black-9, rgba(30, 34, 43, .09))}.univer-paragraph-setting-title{margin-top:var(--margin-base);font-size:13px;color:#1e222b;font-weight:500}.univer-paragraph-setting-label{font-size:12px;margin-top:var(--margin-sm);color:#1e222b;font-weight:400}.univer-paragraph-setting-mt-base{margin-top:var(--margin-base)}.univer-paragraph-setting-flex-col{display:flex;justify-content:space-between;align-items:center}.univer-paragraph-setting-space-line{display:flex;flex-direction:column;gap:6px}.univer-create{padding:20px auto;display:flex;align-content:center;justify-content:space-between}.univer-create-item{display:flex;align-items:center}.univer-create-label{margin-right:5px}.univer-create-input{width:110px}
@@ -73,7 +73,9 @@
73
73
  "spacing": "Spacing",
74
74
  "before": "Before",
75
75
  "after": "After",
76
- "lineSpace": "Line Space"
76
+ "lineSpace": "Line Space",
77
+ "multiSpace": "Multi Space",
78
+ "fixedValue": "Fixed Value(px)"
77
79
  }
78
80
  }
79
81
  }
@@ -73,7 +73,9 @@
73
73
  "spacing": "Spacing",
74
74
  "before": "Before",
75
75
  "after": "After",
76
- "lineSpace": "Line Space"
76
+ "lineSpace": "Line Space",
77
+ "multiSpace": "Multi Space",
78
+ "fixedValue": "Fixed Value(px)"
77
79
  }
78
80
  }
79
81
  }
@@ -73,7 +73,9 @@
73
73
  "spacing": "Spacing",
74
74
  "before": "Before",
75
75
  "after": "After",
76
- "lineSpace": "Line Space"
76
+ "lineSpace": "Line Space",
77
+ "multiSpace": "Multi Space",
78
+ "fixedValue": "Fixed Value(px)"
77
79
  }
78
80
  }
79
81
  }
@@ -73,7 +73,9 @@
73
73
  "spacing": "间距",
74
74
  "before": "段落前",
75
75
  "after": "段落后",
76
- "lineSpace": "行距"
76
+ "lineSpace": "行距",
77
+ "multiSpace": "多倍行距",
78
+ "fixedValue": "固定值(px)"
77
79
  }
78
80
  }
79
81
  }
@@ -73,7 +73,9 @@
73
73
  "spacing": "Spacing",
74
74
  "before": "Before",
75
75
  "after": "After",
76
- "lineSpace": "Line Space"
76
+ "lineSpace": "Line Space",
77
+ "multiSpace": "Multi Space",
78
+ "fixedValue": "Fixed Value(px)"
77
79
  }
78
80
  }
79
81
  }
@@ -43,37 +43,3 @@ export declare const DefaultDocContainerConfig: {
43
43
  infoBar: boolean;
44
44
  toolbar: boolean;
45
45
  };
46
- export declare const DefaultDocUiConfig: {
47
- layout: {
48
- docContainerConfig: {
49
- outerLeft: boolean;
50
- outerRight: boolean;
51
- header: boolean;
52
- footer: boolean;
53
- innerLeft: boolean;
54
- innerRight: boolean;
55
- frozenHeaderLT: boolean;
56
- frozenHeaderRT: boolean;
57
- frozenHeaderLM: boolean;
58
- frozenContent: boolean;
59
- infoBar: boolean;
60
- toolbar: boolean;
61
- };
62
- toolbarConfig: {
63
- undo: boolean;
64
- redo: boolean;
65
- font: boolean;
66
- fontSize: boolean;
67
- bold: boolean;
68
- italic: boolean;
69
- strikethrough: boolean;
70
- underline: boolean;
71
- textColor: boolean;
72
- fillColor: boolean;
73
- horizontalAlignMode: boolean;
74
- verticalAlignMode: boolean;
75
- textWrapMode: boolean;
76
- textRotateMode: boolean;
77
- };
78
- };
79
- };
@@ -1,15 +1,22 @@
1
- import { DependencyOverride } from '@univerjs/core';
2
- import { MenuConfig } from '@univerjs/ui';
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
+ */
3
16
  export interface ILayout {
4
17
  docContainerConfig?: DocContainerConfig;
5
18
  toolbarConfig?: DocToolbarConfig;
6
19
  }
7
- export interface IUniverDocsUIConfig {
8
- menu?: MenuConfig;
9
- container?: HTMLElement | string;
10
- layout?: ILayout;
11
- override?: DependencyOverride;
12
- }
13
20
  export interface DocContainerConfig {
14
21
  outerLeft?: boolean;
15
22
  outerRight?: boolean;
@@ -1,3 +1,6 @@
1
1
  import { ICommand, IParagraphStyle } from '@univerjs/core';
2
- export type IDocParagraphSettingCommandParams = Partial<Pick<IParagraphStyle, 'hanging' | 'horizontalAlign' | 'spaceBelow' | 'spaceAbove' | 'indentEnd' | 'indentStart' | 'lineSpacing' | 'indentFirstLine'>>;
2
+ export interface IDocParagraphSettingCommandParams {
3
+ paragraph: Partial<Pick<IParagraphStyle, 'hanging' | 'horizontalAlign' | 'spaceBelow' | 'spaceAbove' | 'indentEnd' | 'indentStart' | 'lineSpacing' | 'indentFirstLine' | 'snapToGrid' | 'spacingRule'>>;
4
+ sections?: Record<string, any>;
5
+ }
3
6
  export declare const DocParagraphSettingCommand: ICommand<IDocParagraphSettingCommandParams>;
@@ -1,23 +1,11 @@
1
- import { Injector, LocaleService, RxDisposable } from '@univerjs/core';
1
+ import { Injector, RxDisposable } from '@univerjs/core';
2
2
  import { ILayoutService } from '@univerjs/ui';
3
3
  import { ITextSelectionRenderManager } from '@univerjs/engine-render';
4
- import { IUniverDocsUIConfig } from '../basics';
5
- import { DocContainerUIController } from './doc-container-ui-controller';
6
4
  export declare class AppUIController extends RxDisposable {
7
- private readonly _localeService;
8
5
  private readonly _injector;
9
6
  private readonly _textSelectionRenderManager;
10
7
  private readonly _layoutService?;
11
8
  private _docContainerController;
12
- constructor(_config: IUniverDocsUIConfig, _localeService: LocaleService, _injector: Injector, _textSelectionRenderManager: ITextSelectionRenderManager, _layoutService?: ILayoutService | undefined);
9
+ constructor(_injector: Injector, _textSelectionRenderManager: ITextSelectionRenderManager, _layoutService?: ILayoutService | undefined);
13
10
  private _registerContainer;
14
- /**
15
- * Change language
16
- * @param {string} locale new language
17
- *
18
- * e: {target: HTMLSelectElement } reference from https://stackoverflow.com/a/48443771
19
- *
20
- */
21
- changeLocale: (locale: string) => void;
22
- getDocContainerController(): DocContainerUIController;
23
11
  }
@@ -0,0 +1,12 @@
1
+ import { MenuConfig } from '@univerjs/ui';
2
+ import { DependencyOverride } from '@univerjs/core';
3
+ import { ILayout } from '../basics';
4
+ export declare const PLUGIN_CONFIG_KEY = "docs-ui.config";
5
+ export declare const configSymbol: unique symbol;
6
+ export interface IUniverDocsUIConfig {
7
+ menu?: MenuConfig;
8
+ container?: HTMLElement | string;
9
+ layout?: ILayout;
10
+ override?: DependencyOverride;
11
+ }
12
+ export declare const defaultPluginConfig: IUniverDocsUIConfig;
@@ -1,15 +1,15 @@
1
- import { Injector, LocaleService } from '@univerjs/core';
2
- import { IUniverDocsUIConfig } from '../basics';
1
+ import { IConfigService, Injector, LocaleService } from '@univerjs/core';
3
2
  import { DocContainer } from '../views/doc-container/DocContainer';
3
+ import { IUniverDocsUIConfig } from './config.schema';
4
4
  export declare class DocContainerUIController {
5
- private readonly _config;
6
5
  private readonly _localeService;
7
6
  private readonly _injector;
7
+ private readonly _configService;
8
8
  private _docContainer?;
9
- constructor(_config: IUniverDocsUIConfig, _localeService: LocaleService, _injector: Injector);
9
+ constructor(_localeService: LocaleService, _injector: Injector, _configService: IConfigService);
10
10
  getUIConfig(): {
11
11
  injector: Injector;
12
- config: IUniverDocsUIConfig;
12
+ config: import('@univerjs/core').Nullable<IUniverDocsUIConfig>;
13
13
  changeLocale: (locale: string) => void;
14
14
  getComponent: (ref: DocContainer) => void;
15
15
  };
@@ -4,7 +4,9 @@ export declare class DocParagraphSettingController extends Disposable {
4
4
  private readonly _commandService;
5
5
  private readonly _componentManager;
6
6
  private _sidebarService;
7
+ private _id;
7
8
  constructor(_commandService: ICommandService, _componentManager: ComponentManager, _sidebarService: ISidebarService);
8
9
  private _init;
9
10
  openPanel(): void;
11
+ closePanel(): void;
10
12
  }
@@ -1,17 +1,16 @@
1
- import { Disposable, ICommandService, Injector, IUniverInstanceService } from '@univerjs/core';
2
- import { ComponentManager, ILayoutService, IMenuService, IShortcutService, IUIPartsService } from '@univerjs/ui';
3
- import { IUniverDocsUIConfig } from '../basics';
1
+ import { Disposable, ICommandService, IConfigService, Injector, IUniverInstanceService } from '@univerjs/core';
2
+ import { ComponentManager, ILayoutService, IMenuManagerService, IShortcutService, IUIPartsService } from '@univerjs/ui';
4
3
  export declare class DocUIController extends Disposable {
5
- protected readonly _config: Partial<IUniverDocsUIConfig>;
6
4
  protected readonly _injector: Injector;
7
5
  protected readonly _componentManager: ComponentManager;
8
6
  protected readonly _commandService: ICommandService;
9
7
  protected readonly _layoutService: ILayoutService;
10
- protected readonly _menuService: IMenuService;
8
+ protected readonly _menuManagerService: IMenuManagerService;
11
9
  protected readonly _uiPartsService: IUIPartsService;
12
10
  protected readonly _univerInstanceService: IUniverInstanceService;
13
11
  protected readonly _shortcutService: IShortcutService;
14
- constructor(_config: Partial<IUniverDocsUIConfig>, _injector: Injector, _componentManager: ComponentManager, _commandService: ICommandService, _layoutService: ILayoutService, _menuService: IMenuService, _uiPartsService: IUIPartsService, _univerInstanceService: IUniverInstanceService, _shortcutService: IShortcutService);
12
+ protected readonly _configService: IConfigService;
13
+ constructor(_injector: Injector, _componentManager: ComponentManager, _commandService: ICommandService, _layoutService: ILayoutService, _menuManagerService: IMenuManagerService, _uiPartsService: IUIPartsService, _univerInstanceService: IUniverInstanceService, _shortcutService: IShortcutService, _configService: IConfigService);
15
14
  private _initCustomComponents;
16
15
  private _initUiParts;
17
16
  private _initMenus;
@@ -5,11 +5,13 @@ export declare const ParagraphSettingMenuFactory: (accessor: IAccessor) => IMenu
5
5
  export declare const CutMenuFactory: (accessor: IAccessor) => IMenuButtonItem;
6
6
  export declare const PasteMenuFactory: (accessor: IAccessor) => IMenuButtonItem;
7
7
  export declare const DeleteMenuFactory: (accessor: IAccessor) => IMenuButtonItem;
8
+ export declare const TABLE_INSERT_MENU_ID = "doc.menu.table-insert";
8
9
  export declare function TableInsertMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<string>;
9
10
  export declare function InsertRowBeforeMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
10
11
  export declare function InsertRowAfterMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
11
12
  export declare function InsertColumnLeftMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
12
13
  export declare function InsertColumnRightMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
14
+ export declare const TABLE_DELETE_MENU_ID = "doc.menu.table-delete";
13
15
  export declare function TableDeleteMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<string>;
14
16
  export declare function DeleteRowsMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
15
17
  export declare function DeleteColumnsMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
@@ -0,0 +1,2 @@
1
+ import { MenuSchemaType } from '@univerjs/ui';
2
+ export declare const menuSchema: MenuSchemaType;
@@ -1,15 +1,16 @@
1
- import { ICommandService, ILogService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
1
+ import { ICommandService, IConfigService, ILogService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
2
  import { IRenderManagerService } from '@univerjs/engine-render';
3
- import { IUniverDocsUIConfig } from './basics';
3
+ import { IUniverDocsUIConfig } from './controllers/config.schema';
4
4
  export declare class UniverDocsUIPlugin extends Plugin {
5
5
  private readonly _config;
6
6
  _injector: Injector;
7
7
  private readonly _renderManagerSrv;
8
8
  private _commandService;
9
9
  private _logService;
10
+ private readonly _configService;
10
11
  static pluginName: string;
11
12
  static type: UniverInstanceType;
12
- constructor(_config: IUniverDocsUIConfig, _injector: Injector, _renderManagerSrv: IRenderManagerService, _commandService: ICommandService, _logService: ILogService);
13
+ constructor(_config: Partial<IUniverDocsUIConfig>, _injector: Injector, _renderManagerSrv: IRenderManagerService, _commandService: ICommandService, _logService: ILogService, _configService: IConfigService);
13
14
  onReady(): void;
14
15
  onRendered(): void;
15
16
  private _initCommand;
@@ -25,5 +25,6 @@ export { DocCanvasPopManagerService } from './services/doc-popup-manager.service
25
25
  export { docDrawingPositionToTransform, transformToDocDrawingPosition } from './basics/transform-position';
26
26
  export { DocEventManagerService } from './services/doc-event-manager.service';
27
27
  export { DocUIController } from './controllers/doc-ui.controller';
28
+ export { menuSchema } from './controllers/menu.schema';
28
29
  export { DocCopyCommand, DocCutCommand, DocPasteCommand } from './commands/commands/clipboard.command';
29
30
  export { DocCreateTableOperation } from './commands/operations/doc-create-table.operation';
@@ -89,6 +89,8 @@ declare const locale: {
89
89
  before: string;
90
90
  after: string;
91
91
  lineSpace: string;
92
+ multiSpace: string;
93
+ fixedValue: string;
92
94
  };
93
95
  };
94
96
  };
@@ -1,6 +1,6 @@
1
1
  import { IDisposable, IDocumentBody, Disposable, ICommandService, ILogService, IUniverInstanceService, SliceBodyType } from '@univerjs/core';
2
2
  import { IClipboardInterfaceService } from '@univerjs/ui';
3
- import { DocCustomRangeService, TextSelectionManagerService } from '@univerjs/docs';
3
+ import { TextSelectionManagerService } from '@univerjs/docs';
4
4
  export interface IClipboardPropertyItem {
5
5
  }
6
6
  export interface IDocClipboardHook {
@@ -22,11 +22,10 @@ export declare class DocClipboardService extends Disposable implements IDocClipb
22
22
  private readonly _commandService;
23
23
  private readonly _clipboardInterfaceService;
24
24
  private readonly _textSelectionManagerService;
25
- private readonly _docCustomRangeService;
26
25
  private _clipboardHooks;
27
26
  private _htmlToUDM;
28
27
  private _umdToHtml;
29
- constructor(_univerInstanceService: IUniverInstanceService, _logService: ILogService, _commandService: ICommandService, _clipboardInterfaceService: IClipboardInterfaceService, _textSelectionManagerService: TextSelectionManagerService, _docCustomRangeService: DocCustomRangeService);
28
+ constructor(_univerInstanceService: IUniverInstanceService, _logService: ILogService, _commandService: ICommandService, _clipboardInterfaceService: IClipboardInterfaceService, _textSelectionManagerService: TextSelectionManagerService);
30
29
  copy(sliceType?: SliceBodyType): Promise<boolean>;
31
30
  cut(): Promise<boolean>;
32
31
  paste(items: ClipboardItem[]): Promise<boolean>;
@@ -15,4 +15,6 @@ export declare class HtmlToUDMService {
15
15
  private _process;
16
16
  private _processBeforeTable;
17
17
  private _processAfterTable;
18
+ private _processBeforeLink;
19
+ private _processAfterLink;
18
20
  }
@@ -13,6 +13,7 @@ export declare function transformOffset2Bound(offsetX: number, offsetY: number,
13
13
  export interface IDocCanvasPopup extends Pick<IPopup, 'direction' | 'excludeOutside' | 'closeOnSelfTarget' | 'componentKey' | 'offset' | 'onClickOutside' | 'hideOnInvisible'> {
14
14
  mask?: boolean;
15
15
  extraProps?: Record<string, any>;
16
+ multipleDirection?: IPopup['direction'];
16
17
  }
17
18
  export declare const calcDocRangePositions: (range: ITextRangeParam, currentRender: IRender) => IBoundRectNoAngle[] | undefined;
18
19
  export declare class DocCanvasPopManagerService extends Disposable {
@@ -29,6 +30,13 @@ export declare class DocCanvasPopManagerService extends Disposable {
29
30
  * @param popup popup item
30
31
  * @returns disposable
31
32
  */
32
- attachPopupToObject(targetObject: BaseObject, popup: IDocCanvasPopup): IDisposable;
33
- attachPopupToRange(range: ITextRangeParam, popup: IDocCanvasPopup): IDisposable;
33
+ attachPopupToObject(targetObject: BaseObject, popup: IDocCanvasPopup, unitId: string): IDisposable;
34
+ /**
35
+ * attach a popup to doc range
36
+ * @param range doc range
37
+ * @param popup popup item
38
+ * @param unitId unit id
39
+ * @returns disposable
40
+ */
41
+ attachPopupToRange(range: ITextRangeParam, popup: IDocCanvasPopup, unitId: string): IDisposable;
34
42
  }
@@ -1,5 +1,5 @@
1
1
  import { default as React, Component } from 'react';
2
- import { IUniverDocsUIConfig } from '../../basics';
2
+ import { IUniverDocsUIConfig } from '../../controllers/config.schema';
3
3
  interface IBaseDocContainerProps {
4
4
  config: IUniverDocsUIConfig;
5
5
  changeLocale: (locale: string) => void;
@@ -1,5 +1,6 @@
1
- import { IParagraph } from '@univerjs/core';
1
+ import { IParagraph, ISectionBreak, SpacingRule } from '@univerjs/core';
2
2
  export declare const useCurrentParagraph: () => IParagraph[];
3
+ export declare const useCurrentSections: (currentParagraphs: IParagraph[]) => ISectionBreak[];
3
4
  export declare const useFirstParagraphHorizontalAlign: (paragraph: IParagraph[], defaultValue: string) => readonly [string, (v: string) => Promise<boolean>];
4
5
  export declare const useFirstParagraphIndentStart: (paragraph: IParagraph[]) => readonly [number, (v: number) => Promise<boolean>];
5
6
  export declare const useFirstParagraphIndentEnd: (paragraph: IParagraph[]) => readonly [number, (v: number) => Promise<boolean>];
@@ -7,4 +8,7 @@ export declare const useFirstParagraphIndentFirstLine: (paragraph: IParagraph[])
7
8
  export declare const useFirstParagraphIndentHanging: (paragraph: IParagraph[]) => readonly [number, (v: number) => Promise<boolean>];
8
9
  export declare const useFirstParagraphIndentSpaceAbove: (paragraph: IParagraph[]) => readonly [number, (v: number) => Promise<boolean>];
9
10
  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>];
11
+ export declare const useFirstParagraphLineSpacing: (paragraph: IParagraph[]) => {
12
+ lineSpacing: readonly [number, (v: number) => Promise<void>];
13
+ spacingRule: readonly [SpacingRule, (v: SpacingRule) => Promise<void>];
14
+ };