@univerjs/core 0.1.10 → 0.1.11

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 (65) hide show
  1. package/lib/cjs/index.js +9 -9
  2. package/lib/es/index.js +570 -567
  3. package/lib/types/common/unit.d.ts +1 -1
  4. package/lib/types/docs/data-model/action-types.d.ts +1 -1
  5. package/lib/types/docs/data-model/apply-utils/update-apply.d.ts +1 -1
  6. package/lib/types/docs/data-model/document-data-model.d.ts +4 -5
  7. package/lib/types/docs/data-model/empty-snapshot.d.ts +1 -1
  8. package/lib/types/docs/data-model/text-x/text-x.d.ts +2 -2
  9. package/lib/types/docs/data-model/text-x/utils.d.ts +2 -2
  10. package/lib/types/observer/observable-hooks.d.ts +1 -1
  11. package/lib/types/services/command/command.service.d.ts +2 -2
  12. package/lib/types/services/context/context.service.d.ts +1 -1
  13. package/lib/types/services/floating-object/floating-object-manager.service.d.ts +3 -3
  14. package/lib/types/services/instance/instance.service.d.ts +7 -7
  15. package/lib/types/services/lifecycle/lifecycle.service.d.ts +4 -4
  16. package/lib/types/services/locale/locale.service.d.ts +3 -3
  17. package/lib/types/services/permission/permission.service.d.ts +4 -4
  18. package/lib/types/services/permission/univer.permission.service.d.ts +2 -2
  19. package/lib/types/services/plugin/plugin-holder.d.ts +5 -5
  20. package/lib/types/services/plugin/plugin.d.ts +3 -3
  21. package/lib/types/services/plugin/plugin.service.d.ts +3 -3
  22. package/lib/types/services/resource-loader/resource-loader.service.d.ts +5 -5
  23. package/lib/types/services/resource-loader/type.d.ts +1 -1
  24. package/lib/types/services/resource-manager/resource-manager.service.d.ts +2 -2
  25. package/lib/types/services/resource-manager/type.d.ts +3 -3
  26. package/lib/types/services/snapshot/__tests__/snapshot-mock.d.ts +3 -3
  27. package/lib/types/services/snapshot/snapshot-server.service.d.ts +1 -1
  28. package/lib/types/services/snapshot/snapshot-transform.d.ts +4 -4
  29. package/lib/types/services/snapshot/snapshot-utils.d.ts +5 -5
  30. package/lib/types/services/theme/theme.service.d.ts +1 -1
  31. package/lib/types/services/undoredo/undoredo.service.d.ts +6 -6
  32. package/lib/types/shared/color/color.d.ts +1 -1
  33. package/lib/types/shared/common.d.ts +5 -5
  34. package/lib/types/shared/lifecycle.d.ts +3 -3
  35. package/lib/types/shared/object-matrix-query.d.ts +1 -1
  36. package/lib/types/shared/object-matrix.d.ts +1 -1
  37. package/lib/types/shared/rectangle.d.ts +1 -1
  38. package/lib/types/shared/rxjs.d.ts +1 -1
  39. package/lib/types/sheets/__tests__/create-core-test-bed.d.ts +1 -1
  40. package/lib/types/sheets/column-manager.d.ts +2 -2
  41. package/lib/types/sheets/empty-snapshot.d.ts +1 -1
  42. package/lib/types/sheets/range.d.ts +4 -4
  43. package/lib/types/sheets/row-manager.d.ts +3 -3
  44. package/lib/types/sheets/styles.d.ts +1 -1
  45. package/lib/types/sheets/view-model.d.ts +3 -3
  46. package/lib/types/sheets/workbook.d.ts +6 -6
  47. package/lib/types/sheets/worksheet.d.ts +7 -7
  48. package/lib/types/slides/slide-model.d.ts +1 -2
  49. package/lib/types/types/enum/locale-type.d.ts +2 -1
  50. package/lib/types/types/interfaces/i-cell-custom-render.d.ts +3 -3
  51. package/lib/types/types/interfaces/i-cell-data.d.ts +5 -5
  52. package/lib/types/types/interfaces/i-cell-validation-data.d.ts +1 -1
  53. package/lib/types/types/interfaces/i-data-validation.d.ts +5 -5
  54. package/lib/types/types/interfaces/i-document-data.d.ts +8 -3
  55. package/lib/types/types/interfaces/i-extra-model-data.d.ts +0 -6
  56. package/lib/types/types/interfaces/i-selection-data.d.ts +1 -1
  57. package/lib/types/types/interfaces/i-shape-properties.d.ts +1 -1
  58. package/lib/types/types/interfaces/i-slide-data.d.ts +10 -10
  59. package/lib/types/types/interfaces/i-style-data.d.ts +3 -3
  60. package/lib/types/types/interfaces/i-univer-data.d.ts +4 -4
  61. package/lib/types/types/interfaces/i-workbook-data.d.ts +4 -4
  62. package/lib/types/types/interfaces/i-worksheet-data.d.ts +6 -6
  63. package/lib/types/univer.d.ts +7 -7
  64. package/lib/umd/index.js +8 -8
  65. package/package.json +8 -8
@@ -1,9 +1,9 @@
1
- import { IRange } from './i-range';
2
- import { DataValidationRenderMode } from '../enum/data-validation-render-mode';
3
- import { DataValidationErrorStyle } from '../enum/data-validation-error-style';
4
- import { DataValidationImeMode } from '../enum/data-validation-ime-mode';
5
- import { DataValidationType } from '../enum/data-validation-type';
6
1
  import { DataValidationOperator } from '../enum/data-validation-operator';
2
+ import { DataValidationType } from '../enum/data-validation-type';
3
+ import { DataValidationImeMode } from '../enum/data-validation-ime-mode';
4
+ import { DataValidationErrorStyle } from '../enum/data-validation-error-style';
5
+ import { DataValidationRenderMode } from '../enum/data-validation-render-mode';
6
+ import { IRange } from './i-range';
7
7
 
8
8
  export interface IDataValidationRuleBase {
9
9
  type: DataValidationType;
@@ -1,7 +1,7 @@
1
- import { IColorStyle, IStyleBase } from './i-style-data';
2
- import { IExtraModelData } from './i-extra-model-data';
3
- import { BooleanNumber, CellValueType, HorizontalAlign, LocaleType, TextDirection, VerticalAlign, WrapStrategy } from '../enum';
4
1
  import { ISize } from '../../services/floating-object/floating-object-interfaces';
2
+ import { BooleanNumber, CellValueType, HorizontalAlign, LocaleType, TextDirection, VerticalAlign, WrapStrategy } from '../enum';
3
+ import { IExtraModelData } from './i-extra-model-data';
4
+ import { IColorStyle, IStyleBase } from './i-style-data';
5
5
 
6
6
  /**
7
7
  * Properties of document
@@ -252,6 +252,10 @@ export interface IDocumentLayout {
252
252
  characterSpacingControl?: characterSpacingControlType;
253
253
  paragraphLineGapDefault?: number;
254
254
  spaceWidthEastAsian?: BooleanNumber;
255
+ autoHyphenation?: BooleanNumber;
256
+ consecutiveHyphenLimit?: number;
257
+ doNotHyphenateCaps?: BooleanNumber;
258
+ hyphenationZone?: number;
255
259
  }
256
260
  export declare enum GridType {
257
261
  DEFAULT = 0,
@@ -456,6 +460,7 @@ export interface IParagraphStyle extends IIndentStart {
456
460
  wordWrap?: BooleanNumber;
457
461
  widowControl?: BooleanNumber;
458
462
  shading?: IShading;
463
+ suppressHyphenation?: BooleanNumber;
459
464
  }
460
465
  /**
461
466
  * Types of name style
@@ -24,10 +24,4 @@ export interface IExtraModelData {
24
24
  * default is null
25
25
  */
26
26
  container?: string;
27
- /**
28
- * Specify the unitID of the parent render. In this case, the scene will enter
29
- * the sceneViewer and become a child application of the parent scene.
30
- * default is null
31
- */
32
- parentRenderUnitId?: string;
33
27
  }
@@ -1,5 +1,5 @@
1
- import { IRange } from './i-range';
2
1
  import { Nullable } from '../../shared/types';
2
+ import { IRange } from './i-range';
3
3
 
4
4
  /**
5
5
  * Properties of selection data
@@ -1,5 +1,5 @@
1
- import { IColorStyle } from './i-style-data';
2
1
  import { BorderStyleTypes } from '../enum/border-style-types';
2
+ import { IColorStyle } from './i-style-data';
3
3
 
4
4
  /**
5
5
  * ShapeProperties
@@ -1,14 +1,14 @@
1
- import { IWorksheetData } from './i-worksheet-data';
2
- import { IColorStyle, IStyleBase, IStyleData } from './i-style-data';
3
- import { IShapeProperties } from './i-shape-properties';
4
- import { IPlaceholder } from './i-placeholder';
5
- import { IImageProperties } from './i-image-properties';
6
- import { IExtraModelData } from './i-extra-model-data';
7
- import { ICustomBlock, IDocumentData, ILists } from './i-document-data';
8
- import { ShapeType } from '../enum/shape-type';
9
- import { LocaleType, ThemeColorType } from '../enum';
10
- import { IKeyType, Nullable } from '../../shared/types';
11
1
  import { ISize, ITransformState } from '../../services/floating-object/floating-object-interfaces';
2
+ import { IKeyType, Nullable } from '../../shared/types';
3
+ import { LocaleType, ThemeColorType } from '../enum';
4
+ import { ShapeType } from '../enum/shape-type';
5
+ import { ICustomBlock, IDocumentData, ILists } from './i-document-data';
6
+ import { IExtraModelData } from './i-extra-model-data';
7
+ import { IImageProperties } from './i-image-properties';
8
+ import { IPlaceholder } from './i-placeholder';
9
+ import { IShapeProperties } from './i-shape-properties';
10
+ import { IColorStyle, IStyleBase, IStyleData } from './i-style-data';
11
+ import { IWorksheetData } from './i-worksheet-data';
12
12
 
13
13
  export interface ISlideData extends IReferenceSource, IExtraModelData {
14
14
  id: string;
@@ -1,7 +1,7 @@
1
- import { ThemeColorType } from '../enum/theme-color-type';
2
- import { BaselineOffset, BooleanNumber, HorizontalAlign, TextDecoration, TextDirection, VerticalAlign, WrapStrategy } from '../enum/text-style';
3
- import { BorderStyleTypes } from '../enum/border-style-types';
4
1
  import { Nullable } from '../../shared/types';
2
+ import { BorderStyleTypes } from '../enum/border-style-types';
3
+ import { BaselineOffset, BooleanNumber, HorizontalAlign, TextDecoration, TextDirection, VerticalAlign, WrapStrategy } from '../enum/text-style';
4
+ import { ThemeColorType } from '../enum/theme-color-type';
5
5
 
6
6
  /**
7
7
  * Properties of text decoration
@@ -1,8 +1,8 @@
1
- import { LocaleType } from '../enum';
2
- import { ILocales } from '../../shared/locale';
3
- import { IStyleSheet } from '../../services/theme/theme.service';
4
- import { DependencyOverride } from '../../services/plugin/plugin-override';
5
1
  import { LogLevel } from '../../services/log/log.service';
2
+ import { DependencyOverride } from '../../services/plugin/plugin-override';
3
+ import { IStyleSheet } from '../../services/theme/theme.service';
4
+ import { ILocales } from '../../shared/locale';
5
+ import { LocaleType } from '../enum';
6
6
 
7
7
  export interface IUniverData {
8
8
  theme: IStyleSheet;
@@ -1,8 +1,8 @@
1
- import { IWorksheetData } from './i-worksheet-data';
2
- import { IStyleData } from './i-style-data';
3
- import { IExtraModelData } from './i-extra-model-data';
4
- import { LocaleType } from '../enum';
5
1
  import { IKeyType, Nullable } from '../../shared/types';
2
+ import { LocaleType } from '../enum';
3
+ import { IExtraModelData } from './i-extra-model-data';
4
+ import { IStyleData } from './i-style-data';
5
+ import { IWorksheetData } from './i-worksheet-data';
6
6
 
7
7
  /**
8
8
  * Properties of a workbook's configuration
@@ -1,10 +1,10 @@
1
- import { IRowData } from './i-row-data';
2
- import { IRange, IRangeType } from './i-range';
3
- import { IFreeze } from './i-freeze';
4
- import { IColumnData } from './i-column-data';
5
- import { ICellData } from './i-cell-data';
6
- import { BooleanNumber } from '../enum';
7
1
  import { IObjectArrayPrimitiveType, IObjectMatrixPrimitiveType } from '../../shared/object-matrix';
2
+ import { BooleanNumber } from '../enum';
3
+ import { ICellData } from './i-cell-data';
4
+ import { IColumnData } from './i-column-data';
5
+ import { IFreeze } from './i-freeze';
6
+ import { IRange, IRangeType } from './i-range';
7
+ import { IRowData } from './i-row-data';
8
8
 
9
9
  /**
10
10
  * Snapshot of a worksheet.
@@ -1,11 +1,11 @@
1
- import { Plugin, PluginCtor } from './services/plugin/plugin';
2
- import { UnitModel, UnitType } from './common/unit';
3
- import { IDocumentData, ISlideData, IUniverData, IWorkbookData } from './types/interfaces';
4
- import { LocaleType } from './types/enum/locale-type';
5
- import { SlideDataModel } from './slides/slide-model';
6
- import { Workbook } from './sheets/workbook';
7
- import { DocumentDataModel } from './docs/data-model/document-data-model';
8
1
  import { Injector } from '@wendellhu/redi';
2
+ import { DocumentDataModel } from './docs/data-model/document-data-model';
3
+ import { Workbook } from './sheets/workbook';
4
+ import { SlideDataModel } from './slides/slide-model';
5
+ import { LocaleType } from './types/enum/locale-type';
6
+ import { IDocumentData, ISlideData, IUniverData, IWorkbookData } from './types/interfaces';
7
+ import { UnitModel, UnitType } from './common/unit';
8
+ import { Plugin, PluginCtor } from './services/plugin/plugin';
9
9
 
10
10
  export declare class Univer {
11
11
  private _startedTypes;