@univerjs/preset-docs-drawing 0.25.0 → 1.0.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/README.md +3 -3
- package/lib/cjs/index.js +46 -1
- package/lib/cjs/locales/ar-SA.js +11 -1
- package/lib/cjs/locales/ca-ES.js +11 -1
- package/lib/cjs/locales/de-DE.js +11 -1
- package/lib/cjs/locales/en-US.js +11 -1
- package/lib/cjs/locales/es-ES.js +11 -1
- package/lib/cjs/locales/fa-IR.js +11 -1
- package/lib/cjs/locales/fr-FR.js +11 -1
- package/lib/cjs/locales/id-ID.js +11 -1
- package/lib/cjs/locales/it-IT.js +11 -1
- package/lib/cjs/locales/ja-JP.js +11 -1
- package/lib/cjs/locales/ko-KR.js +11 -1
- package/lib/cjs/locales/pl-PL.js +11 -1
- package/lib/cjs/locales/pt-BR.js +11 -1
- package/lib/cjs/locales/ru-RU.js +11 -1
- package/lib/cjs/locales/sk-SK.js +11 -1
- package/lib/cjs/locales/vi-VN.js +11 -1
- package/lib/cjs/locales/zh-CN.js +11 -1
- package/lib/cjs/locales/zh-HK.js +11 -1
- package/lib/cjs/locales/zh-TW.js +11 -1
- package/lib/cjs/rolldown-runtime-C_NdSu1c.js +34 -0
- package/lib/es/index.js +25 -22
- package/lib/es/locales/ar-SA.js +8 -10
- package/lib/es/locales/ca-ES.js +8 -10
- package/lib/es/locales/de-DE.js +8 -10
- package/lib/es/locales/en-US.js +8 -10
- package/lib/es/locales/es-ES.js +8 -10
- package/lib/es/locales/fa-IR.js +8 -10
- package/lib/es/locales/fr-FR.js +8 -10
- package/lib/es/locales/id-ID.js +8 -10
- package/lib/es/locales/it-IT.js +8 -10
- package/lib/es/locales/ja-JP.js +8 -10
- package/lib/es/locales/ko-KR.js +8 -10
- package/lib/es/locales/pl-PL.js +8 -10
- package/lib/es/locales/pt-BR.js +8 -10
- package/lib/es/locales/ru-RU.js +8 -10
- package/lib/es/locales/sk-SK.js +8 -10
- package/lib/es/locales/vi-VN.js +8 -10
- package/lib/es/locales/zh-CN.js +8 -10
- package/lib/es/locales/zh-HK.js +8 -10
- package/lib/es/locales/zh-TW.js +8 -10
- package/lib/index.css +356 -1
- package/lib/index.js +25 -22
- package/lib/locales/ar-SA.js +8 -10
- package/lib/locales/ca-ES.js +8 -10
- package/lib/locales/de-DE.js +8 -10
- package/lib/locales/en-US.js +8 -10
- package/lib/locales/es-ES.js +8 -10
- package/lib/locales/fa-IR.js +8 -10
- package/lib/locales/fr-FR.js +8 -10
- package/lib/locales/id-ID.js +8 -10
- package/lib/locales/it-IT.js +8 -10
- package/lib/locales/ja-JP.js +8 -10
- package/lib/locales/ko-KR.js +8 -10
- package/lib/locales/pl-PL.js +8 -10
- package/lib/locales/pt-BR.js +8 -10
- package/lib/locales/ru-RU.js +8 -10
- package/lib/locales/sk-SK.js +8 -10
- package/lib/locales/vi-VN.js +8 -10
- package/lib/locales/zh-CN.js +8 -10
- package/lib/locales/zh-HK.js +8 -10
- package/lib/locales/zh-TW.js +8 -10
- package/lib/types/index.d.ts +16 -1
- package/lib/types/locales/ar-SA.d.ts +144 -1
- package/lib/types/locales/ca-ES.d.ts +144 -1
- package/lib/types/locales/de-DE.d.ts +144 -1
- package/lib/types/locales/en-US.d.ts +144 -1
- package/lib/types/locales/es-ES.d.ts +144 -1
- package/lib/types/locales/fa-IR.d.ts +144 -1
- package/lib/types/locales/fr-FR.d.ts +144 -1
- package/lib/types/locales/id-ID.d.ts +144 -1
- package/lib/types/locales/it-IT.d.ts +144 -1
- package/lib/types/locales/ja-JP.d.ts +144 -1
- package/lib/types/locales/ko-KR.d.ts +144 -1
- package/lib/types/locales/pl-PL.d.ts +144 -1
- package/lib/types/locales/pt-BR.d.ts +144 -1
- package/lib/types/locales/ru-RU.d.ts +144 -1
- package/lib/types/locales/sk-SK.d.ts +144 -1
- package/lib/types/locales/vi-VN.d.ts +144 -1
- package/lib/types/locales/zh-CN.d.ts +144 -1
- package/lib/types/locales/zh-HK.d.ts +144 -1
- package/lib/types/locales/zh-TW.d.ts +144 -1
- package/lib/types/preset.d.ts +20 -0
- package/package.json +15 -17
- package/lib/types/types.d.ts +0 -11
- package/lib/types/umd.d.ts +0 -7
- package/lib/umd/index.js +0 -14
- package/lib/umd/locales/ar-SA.js +0 -8
- package/lib/umd/locales/ca-ES.js +0 -8
- package/lib/umd/locales/de-DE.js +0 -8
- package/lib/umd/locales/en-US.js +0 -8
- package/lib/umd/locales/es-ES.js +0 -8
- package/lib/umd/locales/fa-IR.js +0 -8
- package/lib/umd/locales/fr-FR.js +0 -8
- package/lib/umd/locales/id-ID.js +0 -8
- package/lib/umd/locales/it-IT.js +0 -8
- package/lib/umd/locales/ja-JP.js +0 -8
- package/lib/umd/locales/ko-KR.js +0 -8
- package/lib/umd/locales/pl-PL.js +0 -8
- package/lib/umd/locales/pt-BR.js +0 -8
- package/lib/umd/locales/ru-RU.js +0 -8
- package/lib/umd/locales/sk-SK.js +0 -8
- package/lib/umd/locales/vi-VN.js +0 -8
- package/lib/umd/locales/zh-CN.js +0 -8
- package/lib/umd/locales/zh-HK.js +0 -8
- package/lib/umd/locales/zh-TW.js +0 -8
|
@@ -1,4 +1,147 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
2
|
+
'docs-drawing-ui': {
|
|
3
|
+
title: string;
|
|
4
|
+
upload: {
|
|
5
|
+
float: string;
|
|
6
|
+
};
|
|
7
|
+
shape: {
|
|
8
|
+
insert: {
|
|
9
|
+
title: string;
|
|
10
|
+
rectangle: string;
|
|
11
|
+
ellipse: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
panel: {
|
|
15
|
+
title: string;
|
|
16
|
+
};
|
|
17
|
+
'image-popup': {
|
|
18
|
+
replace: string;
|
|
19
|
+
delete: string;
|
|
20
|
+
edit: string;
|
|
21
|
+
crop: string;
|
|
22
|
+
reset: string;
|
|
23
|
+
};
|
|
24
|
+
'image-text-wrap': {
|
|
25
|
+
title: string;
|
|
26
|
+
wrappingStyle: string;
|
|
27
|
+
square: string;
|
|
28
|
+
topAndBottom: string;
|
|
29
|
+
inline: string;
|
|
30
|
+
behindText: string;
|
|
31
|
+
inFrontText: string;
|
|
32
|
+
wrapText: string;
|
|
33
|
+
bothSide: string;
|
|
34
|
+
leftOnly: string;
|
|
35
|
+
rightOnly: string;
|
|
36
|
+
distanceFromText: string;
|
|
37
|
+
top: string;
|
|
38
|
+
left: string;
|
|
39
|
+
bottom: string;
|
|
40
|
+
right: string;
|
|
41
|
+
};
|
|
42
|
+
'image-position': {
|
|
43
|
+
title: string;
|
|
44
|
+
horizontal: string;
|
|
45
|
+
vertical: string;
|
|
46
|
+
absolutePosition: string;
|
|
47
|
+
relativePosition: string;
|
|
48
|
+
toTheRightOf: string;
|
|
49
|
+
relativeTo: string;
|
|
50
|
+
bellow: string;
|
|
51
|
+
options: string;
|
|
52
|
+
moveObjectWithText: string;
|
|
53
|
+
column: string;
|
|
54
|
+
margin: string;
|
|
55
|
+
page: string;
|
|
56
|
+
line: string;
|
|
57
|
+
paragraph: string;
|
|
58
|
+
};
|
|
59
|
+
'update-status': {
|
|
60
|
+
exceedMaxSize: string;
|
|
61
|
+
invalidImageType: string;
|
|
62
|
+
exceedMaxCount: string;
|
|
63
|
+
invalidImage: string;
|
|
64
|
+
};
|
|
65
|
+
shortcut: {
|
|
66
|
+
'drawing-view': string;
|
|
67
|
+
'drawing-move-down': string;
|
|
68
|
+
'drawing-move-up': string;
|
|
69
|
+
'drawing-move-left': string;
|
|
70
|
+
'drawing-move-right': string;
|
|
71
|
+
'drawing-delete': string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
} & {
|
|
75
|
+
'drawing-ui': {
|
|
76
|
+
'image-cropper': {
|
|
77
|
+
error: string;
|
|
78
|
+
};
|
|
79
|
+
'image-panel': {
|
|
80
|
+
arrange: {
|
|
81
|
+
title: string;
|
|
82
|
+
forward: string;
|
|
83
|
+
backward: string;
|
|
84
|
+
front: string;
|
|
85
|
+
back: string;
|
|
86
|
+
};
|
|
87
|
+
transform: {
|
|
88
|
+
title: string;
|
|
89
|
+
rotate: string;
|
|
90
|
+
x: string;
|
|
91
|
+
y: string;
|
|
92
|
+
width: string;
|
|
93
|
+
height: string;
|
|
94
|
+
lock: string;
|
|
95
|
+
};
|
|
96
|
+
crop: {
|
|
97
|
+
title: string;
|
|
98
|
+
start: string;
|
|
99
|
+
mode: string;
|
|
100
|
+
};
|
|
101
|
+
group: {
|
|
102
|
+
title: string;
|
|
103
|
+
group: string;
|
|
104
|
+
unGroup: string;
|
|
105
|
+
};
|
|
106
|
+
align: {
|
|
107
|
+
title: string;
|
|
108
|
+
default: string;
|
|
109
|
+
left: string;
|
|
110
|
+
center: string;
|
|
111
|
+
right: string;
|
|
112
|
+
top: string;
|
|
113
|
+
middle: string;
|
|
114
|
+
bottom: string;
|
|
115
|
+
horizon: string;
|
|
116
|
+
vertical: string;
|
|
117
|
+
};
|
|
118
|
+
null: string;
|
|
119
|
+
};
|
|
120
|
+
'image-popup': {
|
|
121
|
+
replace: string;
|
|
122
|
+
delete: string;
|
|
123
|
+
edit: string;
|
|
124
|
+
crop: string;
|
|
125
|
+
reset: string;
|
|
126
|
+
};
|
|
127
|
+
'image-text-wrap': {
|
|
128
|
+
title: string;
|
|
129
|
+
wrappingStyle: string;
|
|
130
|
+
square: string;
|
|
131
|
+
topAndBottom: string;
|
|
132
|
+
inline: string;
|
|
133
|
+
behindText: string;
|
|
134
|
+
inFrontText: string;
|
|
135
|
+
wrapText: string;
|
|
136
|
+
bothSide: string;
|
|
137
|
+
leftOnly: string;
|
|
138
|
+
rightOnly: string;
|
|
139
|
+
distanceFromText: string;
|
|
140
|
+
top: string;
|
|
141
|
+
left: string;
|
|
142
|
+
bottom: string;
|
|
143
|
+
right: string;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
3
146
|
};
|
|
4
147
|
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { IPreset } from '@univerjs/presets';
|
|
17
|
+
export interface IUniverDocsDrawingPresetConfig {
|
|
18
|
+
collaboration?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare function UniverDocsDrawingPreset(config?: Partial<IUniverDocsDrawingPresetConfig>): IPreset;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/preset-docs-drawing",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-alpha.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Preset for drawing capabilities in Univer Docs.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"homepage": "https://univer.ai",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
|
-
"url": "https://github.com/dream-num/univer
|
|
15
|
+
"url": "https://github.com/dream-num/univer"
|
|
16
16
|
},
|
|
17
17
|
"bugs": {
|
|
18
|
-
"url": "https://github.com/dream-num/univer
|
|
18
|
+
"url": "https://github.com/dream-num/univer/issues"
|
|
19
19
|
},
|
|
20
20
|
"keywords": [
|
|
21
21
|
"univer",
|
|
@@ -32,11 +32,6 @@
|
|
|
32
32
|
"require": "./lib/cjs/index.js",
|
|
33
33
|
"types": "./lib/types/index.d.ts"
|
|
34
34
|
},
|
|
35
|
-
"./*": {
|
|
36
|
-
"import": "./lib/es/*",
|
|
37
|
-
"require": "./lib/cjs/*",
|
|
38
|
-
"types": "./lib/types/index.d.ts"
|
|
39
|
-
},
|
|
40
35
|
"./locales/*": {
|
|
41
36
|
"import": "./lib/es/locales/*.js",
|
|
42
37
|
"require": "./lib/cjs/locales/*.js",
|
|
@@ -51,6 +46,7 @@
|
|
|
51
46
|
"directories": {
|
|
52
47
|
"lib": "lib"
|
|
53
48
|
},
|
|
49
|
+
"types": "./lib/types/index.d.ts",
|
|
54
50
|
"files": [
|
|
55
51
|
"lib"
|
|
56
52
|
],
|
|
@@ -60,22 +56,24 @@
|
|
|
60
56
|
"rxjs": ">=7.0.0"
|
|
61
57
|
},
|
|
62
58
|
"dependencies": {
|
|
63
|
-
"@univerjs/docs-drawing": "0.
|
|
64
|
-
"@univerjs/docs-drawing
|
|
65
|
-
"@univerjs/drawing": "0.
|
|
66
|
-
"@univerjs/drawing-ui": "0.
|
|
59
|
+
"@univerjs/docs-drawing-ui": "1.0.0-alpha.0",
|
|
60
|
+
"@univerjs/docs-drawing": "1.0.0-alpha.0",
|
|
61
|
+
"@univerjs/drawing": "1.0.0-alpha.0",
|
|
62
|
+
"@univerjs/drawing-ui": "1.0.0-alpha.0"
|
|
67
63
|
},
|
|
68
64
|
"devDependencies": {
|
|
69
|
-
"@univerjs/core": "0.25.0",
|
|
70
65
|
"react": "18.3.1",
|
|
71
66
|
"react-dom": "18.3.1",
|
|
72
|
-
"rxjs": "7.8.2",
|
|
67
|
+
"rxjs": "^7.8.2",
|
|
73
68
|
"typescript": "^6.0.3",
|
|
74
|
-
"@univerjs-infra/shared": "0.
|
|
69
|
+
"@univerjs-infra/shared": "1.0.0-alpha.0",
|
|
70
|
+
"@univerjs/core": "1.0.0-alpha.0",
|
|
71
|
+
"@univerjs/presets": "1.0.0-alpha.0"
|
|
75
72
|
},
|
|
76
73
|
"scripts": {
|
|
77
|
-
"
|
|
78
|
-
"build:
|
|
74
|
+
"build:bundle": "univer-cli preset build --cleanup",
|
|
75
|
+
"build:types": "tsc -p tsconfig.node.json",
|
|
76
|
+
"build": "pnpm run build:bundle && pnpm run build:types",
|
|
79
77
|
"typecheck": "tsc --noEmit"
|
|
80
78
|
},
|
|
81
79
|
"module": "./lib/es/index.js"
|
package/lib/types/types.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IUniverConfig, Plugin, PluginCtor } from '@univerjs/core';
|
|
2
|
-
/**
|
|
3
|
-
* A collection of plugins and their default configs.
|
|
4
|
-
*/
|
|
5
|
-
export interface IPreset {
|
|
6
|
-
plugins: Array<PluginCtor<Plugin> | [PluginCtor<Plugin>, ConstructorParameters<PluginCtor<Plugin>>[0]]>;
|
|
7
|
-
locales?: IUniverConfig['locales'];
|
|
8
|
-
}
|
|
9
|
-
export interface IPresetOptions {
|
|
10
|
-
lazy?: boolean;
|
|
11
|
-
}
|
package/lib/types/umd.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IPreset } from './types';
|
|
2
|
-
import '@univerjs/drawing-ui/lib/index.css';
|
|
3
|
-
import '@univerjs/docs-drawing-ui/lib/index.css';
|
|
4
|
-
export interface IUniverDocsDrawingPresetConfig {
|
|
5
|
-
collaboration?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function UniverDocsDrawingPreset(config?: Partial<IUniverDocsDrawingPresetConfig>): IPreset;
|