@univerjs/core 0.1.13 → 0.1.15
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.
- package/lib/cjs/index.js +8 -8
- package/lib/es/index.js +1741 -1607
- package/lib/types/index.d.ts +4 -4
- package/lib/types/services/permission/type.d.ts +3 -4
- package/lib/types/services/plugin/plugin.d.ts +4 -2
- package/lib/types/services/plugin/plugin.service.d.ts +45 -5
- package/lib/types/services/user-manager/const.d.ts +1 -1
- package/lib/types/services/user-manager/user-manager.service.d.ts +24 -6
- package/lib/types/shared/debounce.d.ts +10 -1
- package/lib/types/shared/tools.d.ts +8 -0
- package/lib/types/sheets/range.d.ts +1 -0
- package/lib/types/sheets/worksheet.d.ts +4 -0
- package/lib/types/types/interfaces/i-cell-custom-render.d.ts +4 -0
- package/lib/types/types/interfaces/i-document-data.d.ts +1 -0
- package/lib/types/types/interfaces/i-row-data.d.ts +4 -0
- package/lib/types/types/interfaces/i-selection-data.d.ts +4 -0
- package/lib/umd/index.js +8 -8
- package/package.json +21 -11
- package/lib/types/services/plugin/plugin-holder.d.ts +0 -25
- package/lib/types/services/user-manager/index.d.ts +0 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Core library for Univer.",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,34 +45,44 @@
|
|
|
45
45
|
"files": [
|
|
46
46
|
"lib"
|
|
47
47
|
],
|
|
48
|
-
"engines": {
|
|
49
|
-
"node": ">=16.0.0",
|
|
50
|
-
"npm": ">=8.0.0"
|
|
51
|
-
},
|
|
52
48
|
"peerDependencies": {
|
|
53
|
-
"@wendellhu/redi": "0.15.
|
|
49
|
+
"@wendellhu/redi": "0.15.4",
|
|
54
50
|
"rxjs": ">=7.0.0"
|
|
55
51
|
},
|
|
56
52
|
"dependencies": {
|
|
57
|
-
"@univerjs/protocol": "
|
|
53
|
+
"@univerjs/protocol": "0.1.38-alpha.3",
|
|
58
54
|
"nanoid": "5.0.7",
|
|
59
55
|
"numeral": "^2.0.6",
|
|
60
56
|
"ot-json1": "^1.0.2"
|
|
61
57
|
},
|
|
62
58
|
"devDependencies": {
|
|
63
59
|
"@types/numeral": "^2.0.5",
|
|
64
|
-
"@wendellhu/redi": "0.15.
|
|
60
|
+
"@wendellhu/redi": "0.15.4",
|
|
65
61
|
"rxjs": "^7.8.1",
|
|
66
62
|
"typescript": "^5.4.5",
|
|
67
|
-
"vite": "^5.2.
|
|
63
|
+
"vite": "^5.2.13",
|
|
68
64
|
"vitest": "^1.6.0",
|
|
69
|
-
"@univerjs/shared": "0.1.
|
|
65
|
+
"@univerjs/shared": "0.1.15"
|
|
66
|
+
},
|
|
67
|
+
"univerSpace": {
|
|
68
|
+
".": {
|
|
69
|
+
"import": "./lib/es/index.js",
|
|
70
|
+
"require": "./lib/cjs/index.js",
|
|
71
|
+
"types": "./lib/types/index.d.ts"
|
|
72
|
+
},
|
|
73
|
+
"./*": {
|
|
74
|
+
"import": "./lib/es/*",
|
|
75
|
+
"require": "./lib/cjs/*",
|
|
76
|
+
"types": "./lib/types/index.d.ts"
|
|
77
|
+
},
|
|
78
|
+
"./lib/*": "./lib/*"
|
|
70
79
|
},
|
|
71
80
|
"scripts": {
|
|
72
81
|
"test": "vitest run",
|
|
73
82
|
"test:watch": "vitest",
|
|
74
83
|
"coverage": "vitest run --coverage",
|
|
75
84
|
"lint:types": "tsc --noEmit",
|
|
76
|
-
"build": "tsc && vite build"
|
|
85
|
+
"build": "tsc && vite build",
|
|
86
|
+
"sync:cnpm": "cnpm sync"
|
|
77
87
|
}
|
|
78
88
|
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Injector } from '@wendellhu/redi';
|
|
2
|
-
import { LifecycleStages } from '../lifecycle/lifecycle';
|
|
3
|
-
import { LifecycleInitializerService, LifecycleService } from '../lifecycle/lifecycle.service';
|
|
4
|
-
import { Disposable } from '../../shared/lifecycle';
|
|
5
|
-
import { ILogService } from '../log/log.service';
|
|
6
|
-
import { Plugin, PluginCtor, PluginRegistry, PluginStore } from './plugin';
|
|
7
|
-
|
|
8
|
-
export declare class PluginHolder extends Disposable {
|
|
9
|
-
protected readonly _logService: ILogService;
|
|
10
|
-
protected readonly _injector: Injector;
|
|
11
|
-
protected readonly _lifecycleService: LifecycleService;
|
|
12
|
-
protected readonly _lifecycleInitializerService: LifecycleInitializerService;
|
|
13
|
-
protected _started: boolean;
|
|
14
|
-
get started(): boolean;
|
|
15
|
-
protected readonly _pluginRegistered: Set<string>;
|
|
16
|
-
protected readonly _pluginStore: PluginStore;
|
|
17
|
-
protected readonly _pluginRegistry: PluginRegistry;
|
|
18
|
-
constructor(_logService: ILogService, _injector: Injector, _lifecycleService: LifecycleService, _lifecycleInitializerService: LifecycleInitializerService);
|
|
19
|
-
dispose(): void;
|
|
20
|
-
registerPlugin<T extends PluginCtor<Plugin>>(pluginCtor: T, config?: ConstructorParameters<T>[0]): void;
|
|
21
|
-
start(): void;
|
|
22
|
-
flush(): void;
|
|
23
|
-
protected _pluginsRunLifecycle(plugins: Plugin[], lifecycle: LifecycleStages): void;
|
|
24
|
-
protected _initPlugin<T extends Plugin>(plugin: PluginCtor<T>, options: any): Plugin;
|
|
25
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export { createDefaultUser } from './const';
|