@univerjs/ui 1.0.0-alpha.7 → 1.0.0-beta.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/lib/cjs/facade.js +9 -41
- package/lib/cjs/index.js +744 -525
- package/lib/es/facade.js +11 -43
- package/lib/es/index.js +747 -531
- package/lib/facade.js +11 -43
- package/lib/index.css +49 -8
- package/lib/index.js +747 -531
- package/lib/types/facade/f-univer.d.ts +0 -8
- package/lib/types/facade/index.d.ts +0 -2
- package/lib/types/index.d.ts +3 -2
- package/lib/types/services/dom/canvas-dom-layer.service.d.ts +3 -0
- package/lib/types/services/parts/parts.service.d.ts +3 -0
- package/lib/types/services/shortcut/shortcut.service.d.ts +17 -0
- package/lib/types/services/workbench/workbench.service.d.ts +30 -0
- package/lib/types/views/components/context-menu/ContextMenuPanel.d.ts +2 -1
- package/lib/types/views/components/workbench-skeleton/WorkbenchSkeleton.d.ts +22 -0
- package/lib/types/views/emoji-picker/emoji-picker-utils.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +17 -14
- package/package.json +8 -8
- package/lib/types/facade/f-hooks.d.ts +0 -63
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/ui",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared application UI framework, workbench services, menus, dialogs, and Facade UI APIs for Univer.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"rxjs": ">=7.0.0"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@univerjs/icons": "1.
|
|
72
|
+
"@univerjs/icons": "1.35.0",
|
|
73
73
|
"@wendellhu/redi": "1.1.2",
|
|
74
|
-
"@univerjs/
|
|
75
|
-
"@univerjs/
|
|
76
|
-
"@univerjs/design": "1.0.0-
|
|
74
|
+
"@univerjs/engine-render": "1.0.0-beta.0",
|
|
75
|
+
"@univerjs/core": "1.0.0-beta.0",
|
|
76
|
+
"@univerjs/design": "1.0.0-beta.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@testing-library/react": "^16.3.2",
|
|
80
|
-
"postcss": "^8.5.
|
|
80
|
+
"postcss": "^8.5.25",
|
|
81
81
|
"react": "18.3.1",
|
|
82
82
|
"react-dom": "18.3.1",
|
|
83
83
|
"rxjs": "^7.8.2",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"tailwindcss-animate": "^1.0.7",
|
|
86
86
|
"typescript": "^6.0.3",
|
|
87
87
|
"vitest": "^4.1.10",
|
|
88
|
-
"@univerjs-infra/shared": "1.0.0-
|
|
89
|
-
"@univerjs/themes": "1.0.0-
|
|
88
|
+
"@univerjs-infra/shared": "1.0.0-beta.0",
|
|
89
|
+
"@univerjs/themes": "1.0.0-beta.0"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
92
|
"test": "vitest run",
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
-
import type { IDisposable } from '@univerjs/core';
|
|
17
|
-
import { FHooks } from '@univerjs/core/facade';
|
|
18
|
-
/**
|
|
19
|
-
* @ignore
|
|
20
|
-
*/
|
|
21
|
-
export interface IFHooksSheetsUIMixin {
|
|
22
|
-
/**
|
|
23
|
-
* The onBeforeCopy event is fired before a copy operation is performed.
|
|
24
|
-
* @deprecated use `univerAPI.addEvent(univerAPI.Event.BeforeClipboardChange, (params) => {})` instead
|
|
25
|
-
* @param callback Callback function that will be called when the event is fired
|
|
26
|
-
* @returns A disposable object that can be used to unsubscribe from the event
|
|
27
|
-
*/
|
|
28
|
-
onBeforeCopy(callback: () => void): IDisposable;
|
|
29
|
-
/**
|
|
30
|
-
* The onCopy event is fired after a copy operation is performed.
|
|
31
|
-
* @deprecated use `univerAPI.addEvent(univerAPI.Event.ClipboardChanged, (params) => {})` instead
|
|
32
|
-
* @param callback Callback function that will be called when the event is fired
|
|
33
|
-
* @returns A disposable object that can be used to unsubscribe from the event
|
|
34
|
-
*/
|
|
35
|
-
onCopy(callback: () => void): IDisposable;
|
|
36
|
-
/**
|
|
37
|
-
* The onBeforePaste event is fired before a paste operation is performed.
|
|
38
|
-
* @deprecated use `univerAPI.addEvent(univerAPI.Event.BeforeClipboardPaste, (params) => {})` instead
|
|
39
|
-
* @param callback Callback function that will be called when the event is fired
|
|
40
|
-
* @returns A disposable object that can be used to unsubscribe from the event
|
|
41
|
-
*/
|
|
42
|
-
onBeforePaste(callback: () => void): IDisposable;
|
|
43
|
-
/**
|
|
44
|
-
* The onPaste event is fired after a paste operation is performed.
|
|
45
|
-
* @deprecated use `univerAPI.addEvent(univerAPI.Event.ClipboardPasted, (params) => {})` instead
|
|
46
|
-
* @param callback Callback function that will be called when the event is fired
|
|
47
|
-
* @returns A disposable object that can be used to unsubscribe from the event
|
|
48
|
-
*/
|
|
49
|
-
onPaste(callback: () => void): IDisposable;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @ignore
|
|
53
|
-
*/
|
|
54
|
-
export declare class FHooksSheetsMixin extends FHooks implements IFHooksSheetsUIMixin {
|
|
55
|
-
onBeforeCopy(callback: () => void): IDisposable;
|
|
56
|
-
onCopy(callback: () => void): IDisposable;
|
|
57
|
-
onBeforePaste(callback: () => void): IDisposable;
|
|
58
|
-
onPaste(callback: () => void): IDisposable;
|
|
59
|
-
}
|
|
60
|
-
declare module '@univerjs/core/facade' {
|
|
61
|
-
interface FHooks extends IFHooksSheetsUIMixin {
|
|
62
|
-
}
|
|
63
|
-
}
|