@univerjs/docs-ui 0.5.5 → 0.6.0-alpha.0

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/docs-ui",
3
- "version": "0.5.5",
3
+ "version": "0.6.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "Univer normal ui-plugin-docs",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -55,18 +55,18 @@
55
55
  "lib"
56
56
  ],
57
57
  "peerDependencies": {
58
- "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
58
+ "react": ">=16.9.0 || >=17 || >=18 || >=19",
59
59
  "rxjs": ">=7.0.0"
60
60
  },
61
61
  "dependencies": {
62
- "@univerjs/icons": "^0.2.12",
62
+ "@univerjs/icons": "^0.2.14",
63
63
  "clsx": "^2.1.1",
64
- "@univerjs/core": "0.5.5",
65
- "@univerjs/design": "0.5.5",
66
- "@univerjs/docs": "0.5.5",
67
- "@univerjs/engine-render": "0.5.5",
68
- "@univerjs/ui": "0.5.5",
69
- "@univerjs/drawing": "0.5.5"
64
+ "@univerjs/core": "0.6.0-alpha.0",
65
+ "@univerjs/design": "0.6.0-alpha.0",
66
+ "@univerjs/docs": "0.6.0-alpha.0",
67
+ "@univerjs/drawing": "0.6.0-alpha.0",
68
+ "@univerjs/engine-render": "0.6.0-alpha.0",
69
+ "@univerjs/ui": "0.6.0-alpha.0"
70
70
  },
71
71
  "devDependencies": {
72
72
  "less": "^4.2.1",
@@ -74,11 +74,11 @@
74
74
  "react": "18.3.1",
75
75
  "rxjs": "^7.8.1",
76
76
  "tailwindcss": "^3.4.17",
77
- "typescript": "^5.7.2",
77
+ "typescript": "^5.7.3",
78
78
  "vite": "^6.0.7",
79
79
  "vitest": "^2.1.8",
80
- "@univerjs-infra/shared": "0.5.5",
81
- "@univerjs/docs-drawing": "0.5.5"
80
+ "@univerjs-infra/shared": "0.6.0-alpha.0",
81
+ "@univerjs/docs-drawing": "0.6.0-alpha.0"
82
82
  },
83
83
  "scripts": {
84
84
  "test": "vitest run",
@@ -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 {};
@@ -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 {};
@@ -1,34 +0,0 @@
1
- import { Dependency, DependencyIdentifier, DocumentDataModel, IDocumentData, Nullable, Injector, IUniverInstanceService, RxDisposable, Univer } from '@univerjs/core';
2
- import { DocumentSkeleton, IRender, IRenderContext, IRenderModule, DocumentViewModel, IRenderManagerService } from '@univerjs/engine-render';
3
- export declare function createCommandTestBed(docData?: IDocumentData, dependencies?: Dependency[]): {
4
- univer: Univer;
5
- get: {
6
- <T>(id: DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp): T;
7
- <T>(id: DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp): T[];
8
- <T>(id: DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp): T | null;
9
- <T>(id: DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp): T;
10
- <T>(id: DependencyIdentifier<T>, quantity?: import('@wendellhu/redi').Quantity, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
11
- <T>(id: DependencyIdentifier<T>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
12
- };
13
- doc: DocumentDataModel;
14
- };
15
- export declare class MockRenderManagerService implements Pick<IRenderManagerService, 'getRenderById'> {
16
- private readonly _injector;
17
- constructor(_injector: Injector);
18
- getRenderById(_unitId: string): Nullable<IRender>;
19
- }
20
- export declare class MockDocSkeletonManagerService extends RxDisposable implements IRenderModule {
21
- private readonly _context;
22
- private readonly _univerInstanceService;
23
- private _docViewModel;
24
- private readonly _currentSkeleton$;
25
- readonly currentSkeleton$: import('rxjs').Observable<Nullable<DocumentSkeleton>>;
26
- private readonly _currentSkeletonBefore$;
27
- readonly currentSkeletonBefore$: import('rxjs').Observable<Nullable<DocumentSkeleton>>;
28
- constructor(_context: IRenderContext<DocumentDataModel>, _univerInstanceService: IUniverInstanceService);
29
- dispose(): void;
30
- private _update;
31
- getSkeleton(): DocumentSkeleton;
32
- getViewModel(): DocumentViewModel;
33
- private _buildDocViewModel;
34
- }
@@ -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 {};
@@ -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 {};