@univerjs/core 0.2.11 → 0.2.13

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 (40) hide show
  1. package/lib/cjs/index.js +5 -5
  2. package/lib/es/index.js +458 -30
  3. package/lib/types/common/interceptor.d.ts +1 -0
  4. package/lib/types/docs/data-model/document-data-model.d.ts +4 -4
  5. package/lib/types/docs/data-model/index.d.ts +1 -0
  6. package/lib/types/docs/data-model/text-x/apply-utils/common.d.ts +1 -1
  7. package/lib/types/docs/data-model/text-x/build-utils/__test__/custom-range.spec.d.ts +16 -0
  8. package/lib/types/docs/data-model/text-x/build-utils/custom-range.d.ts +14 -0
  9. package/lib/types/docs/data-model/text-x/build-utils/index.d.ts +28 -0
  10. package/lib/types/docs/data-model/text-x/build-utils/selection.d.ts +29 -0
  11. package/lib/types/docs/data-model/text-x/build-utils/text-x-utils.d.ts +38 -0
  12. package/lib/types/docs/data-model/text-x/utils.d.ts +2 -1
  13. package/lib/types/services/__tests__/index.d.ts +6 -6
  14. package/lib/types/services/authz-io/type.d.ts +1 -1
  15. package/lib/types/services/command/command.service.d.ts +3 -3
  16. package/lib/types/services/config/config.service.d.ts +20 -7
  17. package/lib/types/services/context/context.service.d.ts +1 -1
  18. package/lib/types/services/instance/instance.service.d.ts +1 -1
  19. package/lib/types/services/local-storage/local-storage.service.d.ts +1 -1
  20. package/lib/types/services/log/log.service.d.ts +1 -1
  21. package/lib/types/services/permission/type.d.ts +1 -1
  22. package/lib/types/services/resource-loader/type.d.ts +1 -1
  23. package/lib/types/services/resource-manager/type.d.ts +1 -1
  24. package/lib/types/services/undoredo/undoredo.service.d.ts +1 -1
  25. package/lib/types/shared/common.d.ts +3 -2
  26. package/lib/types/shared/tools.d.ts +1 -2
  27. package/lib/types/sheets/row-manager.d.ts +2 -2
  28. package/lib/types/sheets/typedef.d.ts +25 -5
  29. package/lib/types/sheets/view-model.d.ts +1 -1
  30. package/lib/types/sheets/worksheet.d.ts +13 -7
  31. package/lib/types/slides/slide-model.d.ts +3 -3
  32. package/lib/types/types/const/const.d.ts +0 -4
  33. package/lib/types/types/enum/delete-direction.d.ts +19 -0
  34. package/lib/types/types/enum/index.d.ts +1 -0
  35. package/lib/types/types/interfaces/i-data-validation.d.ts +17 -2
  36. package/lib/types/types/interfaces/i-document-data.d.ts +24 -7
  37. package/lib/types/types/interfaces/i-need-check-disposable.d.ts +4 -0
  38. package/lib/types/types/interfaces/index.d.ts +1 -0
  39. package/lib/umd/index.js +5 -5
  40. package/package.json +5 -5
@@ -264,19 +264,27 @@ export interface ITextRun {
264
264
  sId?: string;
265
265
  ts?: ITextStyle;
266
266
  }
267
- export interface ICustomRange {
267
+ /**
268
+ * Block element, link like, disabled to self nested
269
+ */
270
+ export interface ICustomRange<T extends Record<string, any> = Record<string, any>> {
268
271
  startIndex: number;
269
272
  endIndex: number;
270
273
  rangeId: string;
271
- rangeType: CustomRangeType;
274
+ rangeType: CustomRangeType | number;
272
275
  /**
273
276
  * display as a whole-entity
274
277
  */
275
278
  wholeEntity?: boolean;
279
+ /**
280
+ * properties of custom range,
281
+ * for example, hyperlink: `{ url: string }`
282
+ */
283
+ properties?: T;
276
284
  }
277
- /**
278
- * @deprecated
279
- */
285
+ export type IHyperLinkCustomRange = ICustomRange<{
286
+ url: string;
287
+ }>;
280
288
  export declare enum CustomRangeType {
281
289
  HYPERLINK = 0,
282
290
  FIELD = 1,// 17.16 Fields and Hyperlinks
@@ -575,8 +583,17 @@ export declare enum NamedStyleType {
575
583
  HEADING_6 = 9
576
584
  }
577
585
  export declare enum SpacingRule {
578
- AUTO = 0,// Specifies that the line spacing of the parent object shall be automatically determined by the size of its contents, with no predetermined minimum or maximum size.
579
- AT_LEAST = 1,// Specifies that the height of the line shall be at least the value specified, but might be expanded to fit its content as needed.
586
+ /**
587
+ * Specifies that the line spacing of the parent object shall be automatically determined by the size of its contents, with no predetermined minimum or maximum size.
588
+ */
589
+ AUTO = 0,
590
+ /**
591
+ * Specifies that the height of the line shall be at least the value specified, but might be expanded to fit its content as needed.
592
+ */
593
+ AT_LEAST = 1,
594
+ /**
595
+ * Specifies that the height of the line shall be exactly the value specified, regardless of the size of the contents of the contents.
596
+ */
580
597
  EXACT = 2
581
598
  }
582
599
  /**
@@ -0,0 +1,4 @@
1
+ import { IDisposable } from '@wendellhu/redi';
2
+ export interface INeedCheckDisposable extends IDisposable {
3
+ canDispose: () => boolean;
4
+ }
@@ -20,3 +20,4 @@ export * from './i-placeholder';
20
20
  export * from './i-shape-properties';
21
21
  export * from './i-slide-data';
22
22
  export * from './i-style-data';
23
+ export * from './i-need-check-disposable';