@univerjs/sheets 0.1.7 → 0.1.8

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 (33) hide show
  1. package/lib/cjs/index.js +2 -2
  2. package/lib/es/index.js +3443 -3379
  3. package/lib/types/basics/const/command-listener-const.d.ts +3 -0
  4. package/lib/types/basics/numfmt-kit.d.ts +41 -0
  5. package/lib/types/basics/selection.d.ts +1 -1
  6. package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +1 -1
  7. package/lib/types/commands/commands/insert-row-col.command.d.ts +2 -2
  8. package/lib/types/commands/commands/utils/selection-utils.d.ts +10 -1
  9. package/lib/types/commands/commands/utils/target-util.d.ts +33 -0
  10. package/lib/types/commands/mutations/__tests__/create-command-test-bed.d.ts +1 -1
  11. package/lib/types/commands/mutations/numfmt-mutation.d.ts +0 -3
  12. package/lib/types/controllers/__tests__/util.d.ts +1 -1
  13. package/lib/types/controllers/calculate-result-apply.controller.d.ts +11 -2
  14. package/lib/types/controllers/feature-calculation.controller.d.ts +2 -2
  15. package/lib/types/index.d.ts +5 -2
  16. package/lib/types/locale/zh-CN.d.ts +10 -2
  17. package/lib/types/services/__tests__/util.d.ts +1 -1
  18. package/lib/types/services/numfmt/numfmt.service.d.ts +5 -25
  19. package/lib/types/services/numfmt/type.d.ts +1 -17
  20. package/lib/types/services/permission/sheet-permission.service.d.ts +7 -8
  21. package/lib/types/services/permission/tool.d.ts +1 -2
  22. package/lib/types/services/ref-range/__tests__/__testing__.d.ts +1 -1
  23. package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts +1 -1
  24. package/lib/types/services/sheet-interceptor/interceptor-const.d.ts +3 -3
  25. package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts +3 -3
  26. package/lib/types/services/sheet-interceptor/utils/interceptor.d.ts +7 -0
  27. package/lib/types/sheets-plugin.d.ts +3 -2
  28. package/lib/umd/index.js +2 -2
  29. package/package.json +14 -12
  30. package/lib/types/commands/commands/copy-to-worksheet.command.d.ts +0 -9
  31. package/lib/types/commands/mutations/set-worksheet-config.mutation.d.ts +0 -13
  32. package/lib/types/commands/utils/get-target.d.ts +0 -18
  33. /package/lib/types/{services/__tests__/sheet-permission.spec.d.ts → basics/__tests__/numfmt-kit.spec.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal base-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -50,22 +50,24 @@
50
50
  "npm": ">=8.0.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@wendellhu/redi": "0.13.0",
53
+ "@wendellhu/redi": "^0.13.3",
54
54
  "rxjs": ">=7.0.0",
55
- "@univerjs/core": "0.1.7",
56
- "@univerjs/engine-formula": "0.1.7",
57
- "@univerjs/engine-render": "0.1.7"
55
+ "@univerjs/core": "0.1.8",
56
+ "@univerjs/engine-formula": "0.1.8",
57
+ "@univerjs/engine-numfmt": "0.1.8",
58
+ "@univerjs/engine-render": "0.1.8"
58
59
  },
59
60
  "devDependencies": {
60
- "@wendellhu/redi": "^0.13.0",
61
+ "@wendellhu/redi": "^0.13.3",
61
62
  "rxjs": "^7.8.1",
62
63
  "typescript": "^5.4.5",
63
- "vite": "^5.2.8",
64
- "vitest": "^1.4.0",
65
- "@univerjs/core": "0.1.7",
66
- "@univerjs/engine-render": "0.1.7",
67
- "@univerjs/engine-formula": "0.1.7",
68
- "@univerjs/shared": "0.1.7"
64
+ "vite": "^5.2.10",
65
+ "vitest": "^1.5.0",
66
+ "@univerjs/core": "0.1.8",
67
+ "@univerjs/engine-formula": "0.1.8",
68
+ "@univerjs/engine-numfmt": "0.1.8",
69
+ "@univerjs/engine-render": "0.1.8",
70
+ "@univerjs/shared": "0.1.8"
69
71
  },
70
72
  "scripts": {
71
73
  "test": "vitest run",
@@ -1,9 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
-
3
- export interface ICopySheetToCommandParams {
4
- unitId?: string;
5
- subUnitId?: string;
6
- copyTounitId?: string;
7
- copyToSheetId?: string;
8
- }
9
- export declare const CopySheetToCommand: ICommand;
@@ -1,13 +0,0 @@
1
- import { IAccessor } from '@wendellhu/redi';
2
- import { IMutation, IWorksheetData } from '@univerjs/core';
3
-
4
- /** @deprecated */
5
- export interface ISetWorksheetConfigMutationParams {
6
- unitId: string;
7
- subUnitId: string;
8
- config: IWorksheetData;
9
- }
10
- /** @deprecated */
11
- export declare const SetWorksheetConfigUndoMutationFactory: (accessor: IAccessor, params: ISetWorksheetConfigMutationParams) => ISetWorksheetConfigMutationParams;
12
- /** @deprecated */
13
- export declare const SetWorksheetConfigMutation: IMutation<ISetWorksheetConfigMutationParams>;
@@ -1,18 +0,0 @@
1
- import { IUniverInstanceService, Workbook, Worksheet } from '@univerjs/core';
2
-
3
- /**
4
- * Get target workbook and worksheet.
5
- * @param univerInstanceService
6
- * @param unitId
7
- * @param subUnitId
8
- *
9
- * @internal
10
- *
11
- * @returns
12
- */
13
- export declare function getCommandTarget(univerInstanceService: IUniverInstanceService, unitId?: string, subUnitId?: string): {
14
- workbook: Workbook;
15
- worksheet: Worksheet;
16
- unitId: string;
17
- subUnitId: string;
18
- };