@univerjs/ui 0.1.0-beta.2 → 0.1.0-beta.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.
- package/{LICENSE.txt → LICENSE} +0 -2
- package/lib/cjs/index.js +12 -12
- package/lib/es/index.js +3941 -3940
- package/lib/index.css +1 -1
- package/lib/types/components/font-family/FontFamily.d.ts +18 -0
- package/lib/types/components/font-family/FontFamilyItem.d.ts +18 -0
- package/lib/types/components/font-family/index.d.ts +18 -0
- package/lib/types/components/font-family/interface.d.ts +25 -0
- package/lib/types/components/font-size/FontSize.d.ts +18 -0
- package/lib/types/{BaseComponent.d.ts → components/font-size/index.d.ts} +2 -4
- package/lib/types/components/font-size/interface.d.ts +28 -0
- package/lib/types/components/hooks/locale.d.ts +18 -0
- package/lib/types/components/index.d.ts +2 -0
- package/lib/types/index.d.ts +2 -2
- package/lib/types/locale/en-US.d.ts +18 -0
- package/lib/types/locale/zh-CN.d.ts +18 -0
- package/lib/types/services/contextmenu/contextmenu.service.d.ts +6 -0
- package/lib/types/services/focus/focus.service.d.ts +6 -2
- package/lib/types/services/menu/menu.d.ts +1 -1
- package/lib/umd/index.js +12 -12
- package/package.json +41 -39
- package/lib/types/services/shortcut/shortcut-experience.service.d.ts +0 -45
package/package.json
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/ui",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.3",
|
|
4
|
+
"private": false,
|
|
4
5
|
"description": "UniverSheet normal plugin UI manager",
|
|
5
|
-
"keywords": [],
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"access": "public"
|
|
13
|
-
},
|
|
8
|
+
"keywords": [],
|
|
9
|
+
"sideEffects": [
|
|
10
|
+
"**/*.css"
|
|
11
|
+
],
|
|
14
12
|
"exports": {
|
|
15
13
|
".": {
|
|
16
14
|
"import": "./lib/es/index.js",
|
|
@@ -24,58 +22,62 @@
|
|
|
24
22
|
},
|
|
25
23
|
"./lib/*": "./lib/*"
|
|
26
24
|
},
|
|
25
|
+
"main": "./lib/cjs/index.js",
|
|
26
|
+
"module": "./lib/es/index.js",
|
|
27
|
+
"types": "./lib/types/index.d.ts",
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
27
31
|
"directories": {
|
|
28
32
|
"lib": "lib"
|
|
29
33
|
},
|
|
30
34
|
"files": [
|
|
31
35
|
"lib"
|
|
32
36
|
],
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=16.0.0",
|
|
39
|
+
"npm": ">=8.0.0"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@wendellhu/redi": ">=0.12.13",
|
|
43
|
+
"clsx": ">=2.0.0",
|
|
44
|
+
"react": ">=16.9.0",
|
|
45
|
+
"react-dom": ">=16.9.0",
|
|
46
|
+
"rxjs": ">=7.0.0",
|
|
47
|
+
"@univerjs/core": "0.1.0-beta.3",
|
|
48
|
+
"@univerjs/engine-render": "0.1.0-beta.3",
|
|
49
|
+
"@univerjs/design": "0.1.0-beta.3"
|
|
50
|
+
},
|
|
37
51
|
"dependencies": {
|
|
38
|
-
"@univerjs/icons": "^0.1.
|
|
39
|
-
"@wendellhu/redi": "^0.12.13",
|
|
40
|
-
"clsx": "^2.0.0",
|
|
52
|
+
"@univerjs/icons": "^0.1.26",
|
|
41
53
|
"localforage": "^1.10.0",
|
|
42
54
|
"rc-notification": "^5.3.0",
|
|
43
|
-
"rc-util": "^5.38.1"
|
|
44
|
-
"react": "^18.2.0",
|
|
45
|
-
"react-dom": "^18.2.0",
|
|
46
|
-
"rxjs": "^7.8.1",
|
|
47
|
-
"@univerjs/core": "0.1.0-beta.2",
|
|
48
|
-
"@univerjs/design": "0.1.0-beta.2",
|
|
49
|
-
"@univerjs/engine-render": "0.1.0-beta.2"
|
|
55
|
+
"rc-util": "^5.38.1"
|
|
50
56
|
},
|
|
51
57
|
"devDependencies": {
|
|
52
58
|
"@testing-library/react": "^14.1.2",
|
|
53
|
-
"@types/react": "^18.2.
|
|
59
|
+
"@types/react": "^18.2.48",
|
|
54
60
|
"@types/react-dom": "^18.2.18",
|
|
55
61
|
"@types/react-transition-group": "^4.4.10",
|
|
56
|
-
"@
|
|
57
|
-
"
|
|
58
|
-
"happy-dom": "^12.10.3",
|
|
62
|
+
"@wendellhu/redi": "^0.12.13",
|
|
63
|
+
"clsx": "^2.1.0",
|
|
59
64
|
"less": "^4.2.0",
|
|
65
|
+
"react": "^18.2.0",
|
|
66
|
+
"react-dom": "^18.2.0",
|
|
67
|
+
"rxjs": "^7.8.1",
|
|
60
68
|
"typescript": "^5.3.3",
|
|
61
|
-
"vite": "^5.0.
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"@wendellhu/redi": ">=0.12.12",
|
|
68
|
-
"react": ">=16.9.0",
|
|
69
|
-
"react-dom": ">=16.9.0",
|
|
70
|
-
"rxjs": ">=7.0.0",
|
|
71
|
-
"@univerjs/core": "0.1.0-beta.2",
|
|
72
|
-
"@univerjs/design": "0.1.0-beta.2",
|
|
73
|
-
"@univerjs/engine-render": "0.1.0-beta.2"
|
|
69
|
+
"vite": "^5.0.12",
|
|
70
|
+
"vitest": "^1.2.1",
|
|
71
|
+
"@univerjs/core": "0.1.0-beta.3",
|
|
72
|
+
"@univerjs/engine-render": "0.1.0-beta.3",
|
|
73
|
+
"@univerjs/design": "0.1.0-beta.3",
|
|
74
|
+
"@univerjs/shared": "0.1.0-beta.3"
|
|
74
75
|
},
|
|
75
76
|
"scripts": {
|
|
76
77
|
"test": "vitest run",
|
|
77
78
|
"test:watch": "vitest",
|
|
78
79
|
"coverage": "vitest run --coverage",
|
|
80
|
+
"lint:types": "tsc --noEmit",
|
|
79
81
|
"build": "tsc && vite build"
|
|
80
82
|
}
|
|
81
83
|
}
|
|
@@ -1,45 +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
|
-
import type { ISelection, ITextRangeParam, Nullable } from '@univerjs/core';
|
|
17
|
-
import { IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
18
|
-
import type { IDisposable } from '@wendellhu/redi';
|
|
19
|
-
import type { KeyCode } from './keycode';
|
|
20
|
-
export interface IShortcutExperienceSearch {
|
|
21
|
-
unitId: string;
|
|
22
|
-
sheetId: string;
|
|
23
|
-
keycode: KeyCode;
|
|
24
|
-
}
|
|
25
|
-
export interface IShortcutExperienceParam extends IShortcutExperienceSearch {
|
|
26
|
-
selection?: ISelection;
|
|
27
|
-
textSelection?: ITextRangeParam;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* This service is prepared for shortcut experience optimization,
|
|
31
|
-
* including the combined use of enter and tab, the highlighting experience of formulas in the editor, and so on.
|
|
32
|
-
*/
|
|
33
|
-
export declare class ShortcutExperienceService implements IDisposable {
|
|
34
|
-
private readonly _currentUniverService;
|
|
35
|
-
private readonly _localeService;
|
|
36
|
-
private _current;
|
|
37
|
-
private _shortcutParam;
|
|
38
|
-
constructor(_currentUniverService: IUniverInstanceService, _localeService: LocaleService);
|
|
39
|
-
dispose(): void;
|
|
40
|
-
getCurrentBySearch(searchParm: Nullable<IShortcutExperienceSearch>): Nullable<IShortcutExperienceParam>;
|
|
41
|
-
getCurrent(): Nullable<IShortcutExperienceParam>;
|
|
42
|
-
addOrUpdate(insertParam: IShortcutExperienceParam): Nullable<IShortcutExperienceParam>;
|
|
43
|
-
remove(searchParm: Nullable<IShortcutExperienceSearch>): Nullable<IShortcutExperienceParam>;
|
|
44
|
-
private _getCurrentBySearch;
|
|
45
|
-
}
|