@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.
Files changed (47) hide show
  1. package/lib/cjs/facade.js +1 -0
  2. package/lib/cjs/index.js +14 -14
  3. package/lib/cjs/locale/en-US.js +1 -0
  4. package/lib/cjs/locale/fa-IR.js +1 -0
  5. package/lib/cjs/locale/ru-RU.js +1 -0
  6. package/lib/cjs/locale/vi-VN.js +1 -0
  7. package/lib/cjs/locale/zh-CN.js +1 -0
  8. package/lib/cjs/locale/zh-TW.js +1 -0
  9. package/lib/es/facade.js +106 -0
  10. package/lib/es/index.js +7454 -7611
  11. package/lib/es/locale/en-US.js +85 -0
  12. package/lib/es/locale/fa-IR.js +85 -0
  13. package/lib/es/locale/ru-RU.js +85 -0
  14. package/lib/es/locale/vi-VN.js +85 -0
  15. package/lib/es/locale/zh-CN.js +85 -0
  16. package/lib/es/locale/zh-TW.js +85 -0
  17. package/lib/types/basics/paragraph.d.ts +4 -85
  18. package/lib/types/basics/selection.d.ts +2 -0
  19. package/lib/types/commands/commands/core-editing.command.d.ts +0 -1
  20. package/lib/types/commands/commands/doc-select-all.command.d.ts +5 -0
  21. package/lib/types/commands/commands/inline-format.command.d.ts +3 -1
  22. package/lib/types/controllers/doc-header-footer.controller.d.ts +0 -1
  23. package/lib/types/facade/f-document.d.ts +34 -0
  24. package/lib/types/facade/f-univer.d.ts +34 -0
  25. package/lib/types/facade/index.d.ts +17 -0
  26. package/lib/types/index.d.ts +2 -4
  27. package/lib/types/services/doc-menu-style.service.d.ts +6 -2
  28. package/lib/types/services/doc-popup-manager.service.d.ts +3 -3
  29. package/lib/types/services/editor/editor-manager.service.d.ts +63 -0
  30. package/lib/umd/facade.js +1 -0
  31. package/lib/umd/index.js +14 -14
  32. package/lib/umd/locale/en-US.js +1 -0
  33. package/lib/umd/locale/fa-IR.js +1 -0
  34. package/lib/umd/locale/ru-RU.js +1 -0
  35. package/lib/umd/locale/vi-VN.js +1 -0
  36. package/lib/umd/locale/zh-CN.js +1 -0
  37. package/lib/umd/locale/zh-TW.js +1 -0
  38. package/package.json +38 -21
  39. package/lib/locale/en-US.json +0 -82
  40. package/lib/locale/fa-IR.json +0 -82
  41. package/lib/locale/ru-RU.json +0 -82
  42. package/lib/locale/vi-VN.json +0 -82
  43. package/lib/locale/zh-CN.json +0 -82
  44. package/lib/locale/zh-TW.json +0 -82
  45. package/lib/types/basics/custom-range-factory.d.ts +0 -25
  46. package/lib/types/basics/replace.d.ts +0 -20
  47. 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
- });
@@ -1,5 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- interface ISelectAllOperationParams {
3
- }
4
- export declare const SelectAllOperation: ICommand<ISelectAllOperationParams>;
5
- export {};