@univerjs/docs-ui 0.4.2 → 0.5.0-beta.0
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/facade.js +1 -0
- package/lib/cjs/index.js +14 -14
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/facade.js +106 -0
- package/lib/es/index.js +7454 -7611
- package/lib/es/locale/en-US.js +85 -0
- package/lib/es/locale/fa-IR.js +85 -0
- package/lib/es/locale/ru-RU.js +85 -0
- package/lib/es/locale/vi-VN.js +85 -0
- package/lib/es/locale/zh-CN.js +85 -0
- package/lib/es/locale/zh-TW.js +85 -0
- package/lib/types/basics/paragraph.d.ts +4 -85
- package/lib/types/basics/selection.d.ts +2 -0
- package/lib/types/commands/commands/core-editing.command.d.ts +0 -1
- package/lib/types/commands/commands/doc-select-all.command.d.ts +5 -0
- package/lib/types/commands/commands/inline-format.command.d.ts +3 -1
- package/lib/types/controllers/doc-header-footer.controller.d.ts +0 -1
- package/lib/types/facade/f-document.d.ts +34 -0
- package/lib/types/facade/f-univer.d.ts +34 -0
- package/lib/types/facade/index.d.ts +17 -0
- package/lib/types/index.d.ts +2 -4
- package/lib/types/services/doc-menu-style.service.d.ts +6 -2
- package/lib/types/services/doc-popup-manager.service.d.ts +3 -3
- package/lib/types/services/editor/editor-manager.service.d.ts +63 -0
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +14 -14
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +38 -21
- package/lib/locale/en-US.json +0 -82
- package/lib/locale/fa-IR.json +0 -82
- package/lib/locale/ru-RU.json +0 -82
- package/lib/locale/vi-VN.json +0 -82
- package/lib/locale/zh-CN.json +0 -82
- package/lib/locale/zh-TW.json +0 -82
- package/lib/types/basics/custom-range-factory.d.ts +0 -25
- package/lib/types/basics/replace.d.ts +0 -20
- package/lib/types/commands/operations/select-all.operation.d.ts +0 -5
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { CustomRangeType, IAccessor, IAddCustomRangeTextXParam, IDocumentBody, IMutationInfo, ITextRangeParam, Nullable, TextX } from '@univerjs/core';
|
|
2
|
-
import { IRichTextEditingMutationParams } from '@univerjs/docs';
|
|
3
|
-
interface IAddCustomRangeParam extends IAddCustomRangeTextXParam {
|
|
4
|
-
unitId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function addCustomRangeFactory(accessor: IAccessor, param: IAddCustomRangeParam, body: IDocumentBody): false | IMutationInfo<IRichTextEditingMutationParams>;
|
|
7
|
-
interface IAddCustomRangeFactoryParam {
|
|
8
|
-
rangeId: string;
|
|
9
|
-
rangeType: CustomRangeType;
|
|
10
|
-
wholeEntity?: boolean;
|
|
11
|
-
properties?: Record<string, any>;
|
|
12
|
-
unitId: string;
|
|
13
|
-
selection?: ITextRangeParam;
|
|
14
|
-
}
|
|
15
|
-
export declare function addCustomRangeBySelectionFactory(accessor: IAccessor, param: IAddCustomRangeFactoryParam): false | (IMutationInfo<IRichTextEditingMutationParams> & {
|
|
16
|
-
textX: TextX;
|
|
17
|
-
});
|
|
18
|
-
export interface IDeleteCustomRangeFactoryParams {
|
|
19
|
-
rangeId: string;
|
|
20
|
-
segmentId?: string;
|
|
21
|
-
unitId: string;
|
|
22
|
-
insert?: Nullable<IDocumentBody>;
|
|
23
|
-
}
|
|
24
|
-
export declare function deleteCustomRangeFactory(accessor: IAccessor, params: IDeleteCustomRangeFactoryParams): false | IMutationInfo<IRichTextEditingMutationParams>;
|
|
25
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DocumentDataModel, IAccessor, IDocumentBody, IMutationInfo, ITextRangeParam, TextX } from '@univerjs/core';
|
|
2
|
-
import { IRichTextEditingMutationParams } from '@univerjs/docs';
|
|
3
|
-
import { ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
4
|
-
export interface IReplaceSelectionFactoryParams {
|
|
5
|
-
unitId: string;
|
|
6
|
-
/**
|
|
7
|
-
* slelection to be replaced, if not provided, use the current selection.
|
|
8
|
-
*/
|
|
9
|
-
selection?: ITextRangeParam;
|
|
10
|
-
/** Body to be inserted at the given position. */
|
|
11
|
-
body: IDocumentBody;
|
|
12
|
-
/**
|
|
13
|
-
* Text ranges to be replaced.
|
|
14
|
-
*/
|
|
15
|
-
textRanges?: ITextRangeWithStyle[];
|
|
16
|
-
doc?: DocumentDataModel;
|
|
17
|
-
}
|
|
18
|
-
export declare function replaceSelectionFactory(accessor: IAccessor, params: IReplaceSelectionFactoryParams): false | (IMutationInfo<IRichTextEditingMutationParams> & {
|
|
19
|
-
textX: TextX;
|
|
20
|
-
});
|