@univerjs/engine-formula 0.2.2 → 0.2.3

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 (32) hide show
  1. package/README.md +11 -2
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/es/index.js +4222 -4078
  4. package/lib/types/engine/value-object/array-value-object.d.ts +2 -0
  5. package/lib/types/engine/value-object/base-value-object.d.ts +1 -0
  6. package/lib/types/engine/value-object/primitive-object.d.ts +3 -0
  7. package/lib/types/functions/custom-function.d.ts +5 -0
  8. package/lib/types/functions/math/acoth/__tests__/index.spec.d.ts +16 -0
  9. package/lib/types/functions/math/acoth/index.d.ts +8 -0
  10. package/lib/types/functions/math/base/__tests__/index.spec.d.ts +16 -0
  11. package/lib/types/functions/math/base/index.d.ts +9 -0
  12. package/lib/types/functions/math/cosh/__tests__/index.spec.d.ts +16 -0
  13. package/lib/types/functions/math/cosh/index.d.ts +8 -0
  14. package/lib/types/functions/math/cot/__tests__/index.spec.d.ts +16 -0
  15. package/lib/types/functions/math/cot/index.d.ts +8 -0
  16. package/lib/types/functions/math/coth/__tests__/index.spec.d.ts +16 -0
  17. package/lib/types/functions/math/coth/index.d.ts +8 -0
  18. package/lib/types/functions/math/csc/__tests__/index.spec.d.ts +16 -0
  19. package/lib/types/functions/math/csc/index.d.ts +8 -0
  20. package/lib/types/functions/math/csch/__tests__/index.spec.d.ts +16 -0
  21. package/lib/types/functions/math/csch/index.d.ts +8 -0
  22. package/lib/types/functions/math/function-map.d.ts +2 -1
  23. package/lib/types/functions/math/sin/__tests__/index.spec.d.ts +16 -0
  24. package/lib/types/functions/math/sin/index.d.ts +8 -0
  25. package/lib/types/functions/math/sinh/__tests__/index.spec.d.ts +16 -0
  26. package/lib/types/functions/math/sinh/index.d.ts +8 -0
  27. package/lib/types/index.d.ts +1 -1
  28. package/lib/types/services/dependency-manager.service.d.ts +6 -0
  29. package/lib/umd/index.js +1 -1
  30. package/package.json +6 -6
  31. package/lib/types/commands/mutations/unregister-function.mutation.d.ts +0 -16
  32. package/lib/types/controller/register-function.controller.d.ts +0 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/engine-formula",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal base-formula-engine",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -48,8 +48,8 @@
48
48
  "peerDependencies": {
49
49
  "@wendellhu/redi": "0.15.5",
50
50
  "rxjs": ">=7.0.0",
51
- "@univerjs/core": "0.2.2",
52
- "@univerjs/rpc": "0.2.2"
51
+ "@univerjs/core": "0.2.3",
52
+ "@univerjs/rpc": "0.2.3"
53
53
  },
54
54
  "dependencies": {
55
55
  "big.js": "^6.2.1",
@@ -62,9 +62,9 @@
62
62
  "typescript": "^5.5.3",
63
63
  "vite": "^5.3.3",
64
64
  "vitest": "^1.6.0",
65
- "@univerjs/core": "0.2.2",
66
- "@univerjs/shared": "0.2.2",
67
- "@univerjs/rpc": "0.2.2"
65
+ "@univerjs/core": "0.2.3",
66
+ "@univerjs/rpc": "0.2.3",
67
+ "@univerjs/shared": "0.2.3"
68
68
  },
69
69
  "univerSpace": {
70
70
  ".": {
@@ -1,16 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
-
3
- /**
4
- *
5
- * Register function in main thread, then send function to worker thread.
6
- *
7
- * In the formula engine, the mutation is solely responsible for communication between the worker and the main thread.
8
- * It requires setting local to true during execution.
9
- */
10
- export interface IUnregisterFunctionMutationParam {
11
- /**
12
- * Function string
13
- */
14
- functions: string[];
15
- }
16
- export declare const UnregisterFunctionMutation: IMutation<IUnregisterFunctionMutationParam>;
@@ -1,12 +0,0 @@
1
- import { Disposable, ICommandService } from '@univerjs/core';
2
- import { FormulaDataModel } from '../models/formula-data.model';
3
- import { IFunctionService } from '../services/function.service';
4
-
5
- export declare class RegisterFunctionController extends Disposable {
6
- private readonly _commandService;
7
- private readonly _formulaDataModel;
8
- private readonly _functionService;
9
- constructor(_commandService: ICommandService, _formulaDataModel: FormulaDataModel, _functionService: IFunctionService);
10
- private _initialize;
11
- private _commandExecutedListener;
12
- }