@vervedoc/core 3.3.12 → 3.3.13
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/dist/core.js +7867 -6435
- package/dist/core.js.map +1 -1
- package/dist/core.umd.cjs +58 -41
- package/dist/core.umd.cjs.map +1 -1
- package/dist/docx-editor.d.ts +5 -0
- package/package.json +64 -53
package/dist/docx-editor.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EditorI18n, BuiltinLocale } from '@vervedoc/i18n';
|
|
1
2
|
import { IDocxDocumentMeta, IEditorOption, EditorPlugin } from '@vervedoc/docx-editor-schema';
|
|
2
3
|
import { EventBus, Listener, RangeManager } from '@vervedoc/docx-editor-state';
|
|
3
4
|
import { Draw } from '@vervedoc/docx-editor-view';
|
|
@@ -12,6 +13,7 @@ import { WorkerManager } from './workers/worker-manager';
|
|
|
12
13
|
* 组合 Listener / EventBus / RangeManager / Draw / Command / Comment / Revision / Search 等组件。
|
|
13
14
|
*/
|
|
14
15
|
export declare class DocxEditor {
|
|
16
|
+
private readonly i18n;
|
|
15
17
|
/** 事件监听器(content/range/page/catalog 等命名空间) */
|
|
16
18
|
listener: Listener;
|
|
17
19
|
/** 全局事件总线(hyperlinkMenuClick / chartClick 等右键菜单事件) */
|
|
@@ -76,6 +78,9 @@ export declare class DocxEditor {
|
|
|
76
78
|
* @returns 文档元数据(含 elements/sections/comments 等)
|
|
77
79
|
*/
|
|
78
80
|
getDocument(): IDocxDocumentMeta;
|
|
81
|
+
getLocale(): BuiltinLocale;
|
|
82
|
+
setLocale(locale: BuiltinLocale): void;
|
|
83
|
+
getI18n(): EditorI18n;
|
|
79
84
|
/**
|
|
80
85
|
* 设置文档元数据,重置 zone 到 main 并通知插件同步数据
|
|
81
86
|
* @param doc 文档元数据(必须包含 elements 数组)
|
package/package.json
CHANGED
|
@@ -1,53 +1,64 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vervedoc/core",
|
|
3
|
-
"version": "3.3.
|
|
4
|
-
"description": "VerveDoc Core 核心编辑器库(Canvas 2D 高性能实现)",
|
|
5
|
-
"author": "wanghe",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"main": "./
|
|
9
|
-
"module": "./
|
|
10
|
-
"types": "./
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"types": "./
|
|
14
|
-
"import": "./
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
},
|
|
40
|
-
"
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@vervedoc/core",
|
|
3
|
+
"version": "3.3.13",
|
|
4
|
+
"description": "VerveDoc Core 核心编辑器库(Canvas 2D 高性能实现)",
|
|
5
|
+
"author": "wanghe",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./src/index.ts",
|
|
9
|
+
"module": "./src/index.ts",
|
|
10
|
+
"types": "./src/index.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./src/index.ts",
|
|
14
|
+
"import": "./src/index.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public",
|
|
19
|
+
"main": "./dist/core.umd.cjs",
|
|
20
|
+
"module": "./dist/core.js",
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"import": "./dist/core.js",
|
|
26
|
+
"require": "./dist/core.umd.cjs"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist",
|
|
32
|
+
"README.md",
|
|
33
|
+
"package.json"
|
|
34
|
+
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"clean": "node -e \"const fs = require('fs'); if(fs.existsSync('dist')) fs.rmSync('dist', {recursive: true})\"",
|
|
37
|
+
"build": "pnpm run clean && tsc && vite build",
|
|
38
|
+
"type:check": "tsc --noEmit"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@eslint/js": "catalog:",
|
|
42
|
+
"@types/node": "catalog:",
|
|
43
|
+
"eslint": "catalog:",
|
|
44
|
+
"eslint-plugin-unused-imports": "catalog:",
|
|
45
|
+
"typescript": "catalog:",
|
|
46
|
+
"typescript-eslint": "catalog:",
|
|
47
|
+
"vite": "catalog:",
|
|
48
|
+
"vite-plugin-css-injected-by-js": "^3.0.0",
|
|
49
|
+
"vite-plugin-dts": "catalog:"
|
|
50
|
+
},
|
|
51
|
+
"engines": {
|
|
52
|
+
"node": ">=16.0.0"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@vervedoc/i18n": "workspace:^",
|
|
56
|
+
"@vervedoc/docx-editor-schema": "workspace:^",
|
|
57
|
+
"@vervedoc/docx-editor-state": "workspace:^",
|
|
58
|
+
"@vervedoc/docx-editor-transform": "workspace:^",
|
|
59
|
+
"@vervedoc/docx-editor-view": "workspace:^",
|
|
60
|
+
|
|
61
|
+
"@vervedoc/docx-editor-commands": "workspace:^",
|
|
62
|
+
"@vervedoc/docx-editor-history": "workspace:^"
|
|
63
|
+
}
|
|
64
|
+
}
|