@univerjs/core 0.1.13 → 0.1.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/core",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "private": false,
5
5
  "description": "Core library for Univer.",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -45,16 +45,12 @@
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
49
  "@wendellhu/redi": "0.15.2",
54
50
  "rxjs": ">=7.0.0"
55
51
  },
56
52
  "dependencies": {
57
- "@univerjs/protocol": "^0.1.34",
53
+ "@univerjs/protocol": "^0.1.36",
58
54
  "nanoid": "5.0.7",
59
55
  "numeral": "^2.0.6",
60
56
  "ot-json1": "^1.0.2"
@@ -66,7 +62,20 @@
66
62
  "typescript": "^5.4.5",
67
63
  "vite": "^5.2.12",
68
64
  "vitest": "^1.6.0",
69
- "@univerjs/shared": "0.1.13"
65
+ "@univerjs/shared": "0.1.14"
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",
@@ -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
- }