@univerjs/docs-ui 0.6.0-alpha.0 → 0.6.0-experimental.20250212-dbe9830
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 +16 -16
- package/lib/es/index.js +694 -690
- package/lib/types/basics/const/default-univer-doc-config.d.ts +1 -1
- package/lib/types/basics/const/index.d.ts +1 -1
- package/lib/types/basics/const/plugin-name.d.ts +1 -1
- package/lib/types/basics/docs-view-key.d.ts +1 -1
- package/lib/types/basics/editor.d.ts +1 -1
- package/lib/types/basics/index.d.ts +1 -1
- package/lib/types/basics/interfaces/component-config/i-doc-ui-plugin-config.d.ts +1 -1
- package/lib/types/basics/interfaces/component-config/index.d.ts +1 -1
- package/lib/types/basics/interfaces/index.d.ts +1 -1
- package/lib/types/basics/paragraph.d.ts +2 -2
- package/lib/types/components/color-picker/index.d.ts +1 -1
- package/lib/types/components/color-picker/interface.d.ts +1 -1
- package/lib/types/components/const.d.ts +1 -1
- package/lib/types/components/font-family/index.d.ts +1 -1
- package/lib/types/components/font-family/interface.d.ts +1 -1
- package/lib/types/components/font-size/index.d.ts +1 -1
- package/lib/types/components/font-size/interface.d.ts +1 -1
- package/lib/types/components/list-type-picker/index.d.ts +1 -1
- package/lib/types/controllers/index.d.ts +1 -1
- package/lib/types/facade/index.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/locale/zh-CN.d.ts +1 -1
- package/lib/types/services/clipboard/__test__/html-and-udm-convert.spec.d.ts +1 -1
- package/lib/types/services/clipboard/html-to-udm/parse-to-dom.d.ts +1 -1
- package/lib/types/services/clipboard/udm-to-html/__test__/convertor.spec.d.ts +1 -1
- package/lib/types/services/index.d.ts +1 -1
- package/lib/types/types/const/padding.d.ts +1 -1
- package/lib/types/types/delete-direction.d.ts +1 -1
- package/lib/types/views/count-bar/CountBar.d.ts +1 -1
- package/lib/types/views/count-bar/ZoomSlider.d.ts +1 -1
- package/lib/types/views/count-bar/index.d.ts +1 -1
- package/lib/types/views/doc-container/index.d.ts +1 -1
- package/lib/types/views/doc-footer/DocFooter.d.ts +1 -1
- package/lib/types/views/doc-footer/index.d.ts +1 -1
- package/lib/types/views/header-footer/panel/DocHeaderFooterOptions.d.ts +1 -1
- package/lib/types/views/header-footer/panel/DocHeaderFooterPanel.d.ts +1 -1
- package/lib/types/views/header-footer/panel/component-name.d.ts +1 -1
- package/lib/types/views/paragraph-setting/Setting.d.ts +1 -1
- package/lib/types/views/paragraph-setting/hook/utils.d.ts +1 -1
- package/lib/types/views/paragraph-setting/index.d.ts +1 -1
- package/lib/types/views/rich-text-editor/hooks/index.d.ts +3 -3
- package/lib/types/views/rich-text-editor/index.d.ts +1 -1
- package/lib/types/views/table/create/TableCreate.d.ts +1 -1
- package/lib/types/views/table/create/component-name.d.ts +1 -1
- package/lib/umd/index.js +17 -17
- package/package.json +12 -12
- package/LICENSE +0 -176
- /package/lib/types/views/rich-text-editor/hooks/{useEditor.d.ts → use-editor.d.ts} +0 -0
- /package/lib/types/views/rich-text-editor/hooks/{useKeyboardEvent.d.ts → use-keyboard-event.d.ts} +0 -0
- /package/lib/types/views/rich-text-editor/hooks/{useLeftAndRightArrow.d.ts → use-left-and-right-arrow.d.ts} +0 -0
- /package/lib/types/views/rich-text-editor/hooks/{useOnChange.d.ts → use-on-change.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ICustomDecoration, ICustomRange, ICustomTable, IParagraph, ITextRun, ITextStyle, Nullable } from '@univerjs/core';
|
|
1
|
+
import { ICustomDecoration, ICustomRange, ICustomTable, IDocumentBody, IParagraph, ITextRun, ITextStyle, Nullable } from '@univerjs/core';
|
|
2
2
|
export declare function hasParagraphInTable(paragraph: IParagraph, tables: ICustomTable[]): boolean;
|
|
3
|
-
export declare function getTextRunAtPosition(
|
|
3
|
+
export declare function getTextRunAtPosition(body: IDocumentBody, position: number, defaultStyle: ITextStyle, cacheStyle: Nullable<ITextStyle>, isCellEditor?: boolean): ITextRun;
|
|
4
4
|
export declare function getCustomRangeAtPosition(customRanges: ICustomRange[], position: number, extendRange?: boolean): ICustomRange<Record<string, any>> | null | undefined;
|
|
5
5
|
export declare function getCustomDecorationAtPosition(customDecorations: ICustomDecoration[], position: number): ICustomDecoration[];
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IParagraph, ISectionBreak, SpacingRule } from '@univerjs/core';
|
|
2
2
|
export declare const useCurrentParagraph: () => IParagraph[];
|
|
3
3
|
export declare const useCurrentSections: (currentParagraphs: IParagraph[]) => ISectionBreak[];
|
|
4
4
|
export declare const useFirstParagraphHorizontalAlign: (paragraph: IParagraph[], defaultValue: string) => readonly [string, (v: string) => Promise<boolean>];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2023-present DreamNum
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export { type IKeyboardEventConfig, useKeyboardEvent } from './
|
|
17
|
-
export { useResize } from './
|
|
16
|
+
export { type IKeyboardEventConfig, useKeyboardEvent } from './use-keyboard-event';
|
|
17
|
+
export { useResize } from './use-resize';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { IDocumentData } from '@univerjs/core';
|
|
1
2
|
import { Editor } from '../../services/editor/editor';
|
|
2
3
|
import { IKeyboardEventConfig } from './hooks';
|
|
3
|
-
import { IDocumentData } from '@univerjs/core';
|
|
4
4
|
import { default as React } from 'react';
|
|
5
5
|
export interface IRichTextEditorProps {
|
|
6
6
|
className?: string;
|