@agilehub/agile-editor 1.5.0 → 1.7.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.
Files changed (33) hide show
  1. package/README.md +142 -0
  2. package/dist/agile-editor.css +1 -1
  3. package/dist/agile-editor.js +7300 -5262
  4. package/dist/types/components/editor/index.vue.d.ts +2 -2
  5. package/dist/types/components/index.d.ts +4 -2
  6. package/dist/types/components/index.vue.d.ts +151 -5
  7. package/dist/types/components/menus/toolbar/insert/bookmark.vue.d.ts +24 -0
  8. package/dist/types/components/preview-toolbar/annotation-shape.vue.d.ts +58 -0
  9. package/dist/types/components/preview-toolbar/drawing-layer.vue.d.ts +91 -0
  10. package/dist/types/components/preview-toolbar/geometry.d.ts +56 -0
  11. package/dist/types/components/preview-toolbar/index.vue.d.ts +200 -0
  12. package/dist/types/components/preview-toolbar/types.d.ts +48 -0
  13. package/dist/types/components/statusbar/countdown.vue.d.ts +19 -7
  14. package/dist/types/components/toolbar/classic.vue.d.ts +16 -8
  15. package/dist/types/components/toolbar/ribbon.vue.d.ts +16 -8
  16. package/dist/types/composables/i18n.d.ts +144 -3
  17. package/dist/types/extensions/bookmark.d.ts +8 -5
  18. package/dist/types/extensions/bubble-note.d.ts +2 -0
  19. package/dist/types/extensions/element-style.d.ts +0 -1
  20. package/dist/types/i18n.d.ts +144 -3
  21. package/dist/types/options/config/index.d.ts +2 -0
  22. package/dist/types/utils/html-element-id.d.ts +9 -0
  23. package/dist/types/utils/html-id.d.ts +1 -0
  24. package/dist/types/utils/iframe.d.ts +5 -0
  25. package/dist/types/utils/style-target.d.ts +49 -0
  26. package/docs/SECONDARY_DEVELOPMENT.md +1 -1
  27. package/docs/api.md +43 -0
  28. package/docs/configuration.md +57 -0
  29. package/docs/custom-components.md +150 -0
  30. package/docs/development.md +6 -2
  31. package/docs/menu-extension.md +26 -1
  32. package/package.json +25 -15
  33. package/dist/types/components/menus/toolbar/view/preview.vue.d.ts +0 -3
@@ -0,0 +1,200 @@
1
+ import type { PropType } from 'vue';
2
+ import type { PreviewAnnotation, PreviewAnnotationSnapshot, PreviewAnnotationsSaveHandler, PreviewDrawTool, PreviewPageSettings, PreviewStrokeStyle } from './types';
3
+ type PreviewToolbarAttach = string | ((triggerNode?: HTMLElement) => HTMLElement | Element | Document);
4
+ type PreviewDrawingTarget = string | HTMLElement;
5
+ declare const __VLS_export: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
6
+ layout: {
7
+ type: PropType<"page" | "web">;
8
+ default: string;
9
+ };
10
+ zoomLevel: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ minZoom: {
15
+ type: NumberConstructor;
16
+ default: number;
17
+ };
18
+ maxZoom: {
19
+ type: NumberConstructor;
20
+ default: number;
21
+ };
22
+ autoWidth: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ laserPointer: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ floating: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ visible: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ attach: {
39
+ type: PropType<PreviewToolbarAttach>;
40
+ default: any;
41
+ };
42
+ drawingTarget: {
43
+ type: PropType<PreviewDrawingTarget>;
44
+ default: any;
45
+ };
46
+ drawingColor: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ drawingWidth: {
51
+ type: NumberConstructor;
52
+ default: number;
53
+ };
54
+ pageSettings: {
55
+ type: PropType<PreviewPageSettings>;
56
+ default: any;
57
+ };
58
+ onAnnotationsSave: {
59
+ type: PropType<PreviewAnnotationsSaveHandler>;
60
+ default: any;
61
+ };
62
+ }>, {
63
+ getAnnotations: () => {
64
+ points: {
65
+ x: number;
66
+ y: number;
67
+ }[];
68
+ id: string;
69
+ tool: import("./types").PreviewAnnotationTool;
70
+ closed: boolean;
71
+ strokeStyle: PreviewStrokeStyle;
72
+ color: string;
73
+ strokeWidth: number;
74
+ }[];
75
+ serializeAnnotations: () => string;
76
+ setAnnotations: (items: PreviewAnnotation[]) => void;
77
+ restoreAnnotations: (value: PreviewAnnotationSnapshot | string) => boolean;
78
+ clearAnnotations: () => boolean;
79
+ saveAnnotations: () => Promise<boolean>;
80
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
81
+ hide: () => any;
82
+ "selection-change": (annotationId: string) => any;
83
+ "countdown-change": (value: string) => any;
84
+ "annotation-add": (annotation: PreviewAnnotation) => any;
85
+ "annotation-delete": (annotationId: string) => any;
86
+ "annotations-clear": () => any;
87
+ "annotations-change": (annotations: PreviewAnnotation[]) => any;
88
+ "zoom-in": () => any;
89
+ "zoom-out": () => any;
90
+ "auto-width": () => any;
91
+ "update:laserPointer": (value: boolean) => any;
92
+ "laser-pointer-change": (value: boolean) => any;
93
+ "countdown-exit": () => any;
94
+ "draw-tool-change": (tool: PreviewDrawTool) => any;
95
+ "stroke-style-change": (style: PreviewStrokeStyle) => any;
96
+ "drawing-color-change": (color: string) => any;
97
+ "drawing-width-change": (width: number) => any;
98
+ "annotations-undo": () => any;
99
+ "save-annotations": (snapshot: PreviewAnnotationSnapshot) => any;
100
+ "restore-annotation-page": (settings: PreviewPageSettings) => any;
101
+ "drawing-ready": () => any;
102
+ "annotations-visibility-change": (visible: boolean) => any;
103
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
104
+ layout: {
105
+ type: PropType<"page" | "web">;
106
+ default: string;
107
+ };
108
+ zoomLevel: {
109
+ type: NumberConstructor;
110
+ default: number;
111
+ };
112
+ minZoom: {
113
+ type: NumberConstructor;
114
+ default: number;
115
+ };
116
+ maxZoom: {
117
+ type: NumberConstructor;
118
+ default: number;
119
+ };
120
+ autoWidth: {
121
+ type: BooleanConstructor;
122
+ default: boolean;
123
+ };
124
+ laserPointer: {
125
+ type: BooleanConstructor;
126
+ default: boolean;
127
+ };
128
+ floating: {
129
+ type: BooleanConstructor;
130
+ default: boolean;
131
+ };
132
+ visible: {
133
+ type: BooleanConstructor;
134
+ default: boolean;
135
+ };
136
+ attach: {
137
+ type: PropType<PreviewToolbarAttach>;
138
+ default: any;
139
+ };
140
+ drawingTarget: {
141
+ type: PropType<PreviewDrawingTarget>;
142
+ default: any;
143
+ };
144
+ drawingColor: {
145
+ type: StringConstructor;
146
+ default: string;
147
+ };
148
+ drawingWidth: {
149
+ type: NumberConstructor;
150
+ default: number;
151
+ };
152
+ pageSettings: {
153
+ type: PropType<PreviewPageSettings>;
154
+ default: any;
155
+ };
156
+ onAnnotationsSave: {
157
+ type: PropType<PreviewAnnotationsSaveHandler>;
158
+ default: any;
159
+ };
160
+ }>> & Readonly<{
161
+ onHide?: () => any;
162
+ "onSelection-change"?: (annotationId: string) => any;
163
+ "onCountdown-change"?: (value: string) => any;
164
+ "onAnnotation-add"?: (annotation: PreviewAnnotation) => any;
165
+ "onAnnotation-delete"?: (annotationId: string) => any;
166
+ "onAnnotations-clear"?: () => any;
167
+ "onAnnotations-change"?: (annotations: PreviewAnnotation[]) => any;
168
+ "onZoom-in"?: () => any;
169
+ "onZoom-out"?: () => any;
170
+ "onAuto-width"?: () => any;
171
+ "onUpdate:laserPointer"?: (value: boolean) => any;
172
+ "onLaser-pointer-change"?: (value: boolean) => any;
173
+ "onCountdown-exit"?: () => any;
174
+ "onDraw-tool-change"?: (tool: PreviewDrawTool) => any;
175
+ "onStroke-style-change"?: (style: PreviewStrokeStyle) => any;
176
+ "onDrawing-color-change"?: (color: string) => any;
177
+ "onDrawing-width-change"?: (width: number) => any;
178
+ "onAnnotations-undo"?: () => any;
179
+ "onSave-annotations"?: (snapshot: PreviewAnnotationSnapshot) => any;
180
+ "onRestore-annotation-page"?: (settings: PreviewPageSettings) => any;
181
+ "onDrawing-ready"?: () => any;
182
+ "onAnnotations-visibility-change"?: (visible: boolean) => any;
183
+ }>, {
184
+ layout: "page" | "web";
185
+ autoWidth: boolean;
186
+ laserPointer: boolean;
187
+ floating: boolean;
188
+ visible: boolean;
189
+ zoomLevel: number;
190
+ attach: PreviewToolbarAttach;
191
+ minZoom: number;
192
+ maxZoom: number;
193
+ drawingTarget: PreviewDrawingTarget;
194
+ drawingColor: string;
195
+ drawingWidth: number;
196
+ pageSettings: PreviewPageSettings;
197
+ onAnnotationsSave: PreviewAnnotationsSaveHandler;
198
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
199
+ declare const _default: typeof __VLS_export;
200
+ export default _default;
@@ -0,0 +1,48 @@
1
+ /** 预览工具栏当前交互工具。select 只用于选择已有标注。 */
2
+ export type PreviewDrawTool = 'select' | 'rectangle' | 'line' | 'path';
3
+ /** 会实际生成标注图形的工具。 */
4
+ export type PreviewAnnotationTool = Exclude<PreviewDrawTool, 'select'>;
5
+ /** 矩形和直线支持的 SVG 描边样式。 */
6
+ export type PreviewStrokeStyle = 'solid' | 'dashed' | 'wavy';
7
+ /** 相对文档页面左上角的归一化坐标,取值范围为 0–1。 */
8
+ export interface PreviewPoint {
9
+ x: number;
10
+ y: number;
11
+ }
12
+ /** 保存标注时的页面宽度和四边边距,单位均为 px。 */
13
+ export interface PreviewPageSettings {
14
+ width: number;
15
+ margin: {
16
+ left: number;
17
+ right: number;
18
+ top: number;
19
+ bottom: number;
20
+ };
21
+ }
22
+ /**
23
+ * 单条标注的持久化结构。
24
+ * 该对象只依赖归一化坐标,不保存屏幕位置,因此可跨滚动、缩放和窗口尺寸恢复。
25
+ */
26
+ export interface PreviewAnnotation {
27
+ id: string;
28
+ tool: PreviewAnnotationTool;
29
+ points: PreviewPoint[];
30
+ closed: boolean;
31
+ strokeStyle: PreviewStrokeStyle;
32
+ color: string;
33
+ strokeWidth: number;
34
+ }
35
+ /** 绘制层向工具栏回传的运行时状态。 */
36
+ export interface PreviewDrawingState {
37
+ annotations: PreviewAnnotation[];
38
+ canUndo: boolean;
39
+ selectedId: string | null;
40
+ }
41
+ /** 保存到业务系统的版本化快照,后续结构升级可通过 version 做迁移。 */
42
+ export interface PreviewAnnotationSnapshot {
43
+ version: 1;
44
+ page?: PreviewPageSettings;
45
+ annotations: PreviewAnnotation[];
46
+ }
47
+ /** 保存按钮和业务回调共用的快照处理器。 */
48
+ export type PreviewAnnotationsSaveHandler = (snapshot: PreviewAnnotationSnapshot) => void | Promise<void>;
@@ -1,27 +1,39 @@
1
- declare var __VLS_7: {};
1
+ import type { PropType } from "vue";
2
+ type CountdownAttach = string | ((triggerNode?: HTMLElement) => HTMLElement | Element | Document);
3
+ declare var __VLS_9: {};
2
4
  type __VLS_Slots = {} & {
3
- default?: (props: typeof __VLS_7) => any;
5
+ default?: (props: typeof __VLS_9) => any;
4
6
  };
5
7
  declare const __VLS_base: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
6
8
  visible: {
7
9
  type: BooleanConstructor;
8
- require: boolean;
10
+ required: true;
11
+ };
12
+ attach: {
13
+ type: PropType<CountdownAttach>;
14
+ default: any;
9
15
  };
10
16
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
17
  close: (...args: any[]) => void;
12
18
  "countdown-change": (...args: any[]) => void;
13
- "exit-preivew": (...args: any[]) => void;
19
+ "exit-preview": (...args: any[]) => void;
20
+ "visible-change": (...args: any[]) => void;
14
21
  }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
15
22
  visible: {
16
23
  type: BooleanConstructor;
17
- require: boolean;
24
+ required: true;
25
+ };
26
+ attach: {
27
+ type: PropType<CountdownAttach>;
28
+ default: any;
18
29
  };
19
30
  }>> & Readonly<{
20
31
  onClose?: (...args: any[]) => any;
21
32
  "onCountdown-change"?: (...args: any[]) => any;
22
- "onExit-preivew"?: (...args: any[]) => any;
33
+ "onExit-preview"?: (...args: any[]) => any;
34
+ "onVisible-change"?: (...args: any[]) => any;
23
35
  }>, {
24
- visible: boolean;
36
+ attach: CountdownAttach;
25
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
26
38
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
39
  declare const _default: typeof __VLS_export;
@@ -1,29 +1,37 @@
1
- import type { PropType } from "vue";
1
+ import type { PropType } from 'vue';
2
2
  declare var __VLS_172: {
3
3
  toolbarMode: string;
4
- }, __VLS_274: {
4
+ }, __VLS_279: {
5
5
  toolbarMode: string;
6
- }, __VLS_386: {
6
+ }, __VLS_391: {
7
7
  toolbarMode: string;
8
- }, __VLS_443: {
8
+ }, __VLS_448: {
9
9
  toolbarMode: string;
10
10
  }, __VLS_490: {
11
11
  toolbarMode: string;
12
12
  }, __VLS_492: {
13
13
  toolbarMode: string;
14
+ }, __VLS_494: {
15
+ toolbarMode: string;
16
+ }, __VLS_496: {
17
+ toolbarMode: string;
14
18
  };
15
19
  type __VLS_Slots = {} & {
16
20
  toolbar_base?: (props: typeof __VLS_172) => any;
17
21
  } & {
18
- toolbar_insert?: (props: typeof __VLS_274) => any;
22
+ toolbar_insert?: (props: typeof __VLS_279) => any;
19
23
  } & {
20
- toolbar_table?: (props: typeof __VLS_386) => any;
24
+ toolbar_table?: (props: typeof __VLS_391) => any;
21
25
  } & {
22
- toolbar_tools?: (props: typeof __VLS_443) => any;
26
+ toolbar_tools?: (props: typeof __VLS_448) => any;
23
27
  } & {
24
28
  toolbar_view?: (props: typeof __VLS_490) => any;
25
29
  } & {
26
- toolbar_copyediting?: (props: typeof __VLS_492) => any;
30
+ toolbar_review?: (props: typeof __VLS_492) => any;
31
+ } & {
32
+ toolbar_extension?: (props: typeof __VLS_494) => any;
33
+ } & {
34
+ toolbar_enhancement?: (props: typeof __VLS_496) => any;
27
35
  };
28
36
  declare const __VLS_base: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
29
37
  menus: {
@@ -1,29 +1,37 @@
1
- import type { PropType } from "vue";
1
+ import type { PropType } from 'vue';
2
2
  declare var __VLS_173: {
3
3
  toolbarMode: string;
4
- }, __VLS_275: {
4
+ }, __VLS_280: {
5
5
  toolbarMode: string;
6
- }, __VLS_387: {
6
+ }, __VLS_392: {
7
7
  toolbarMode: string;
8
- }, __VLS_444: {
8
+ }, __VLS_449: {
9
9
  toolbarMode: string;
10
10
  }, __VLS_491: {
11
11
  toolbarMode: string;
12
12
  }, __VLS_493: {
13
13
  toolbarMode: string;
14
+ }, __VLS_495: {
15
+ toolbarMode: string;
16
+ }, __VLS_497: {
17
+ toolbarMode: string;
14
18
  };
15
19
  type __VLS_Slots = {} & {
16
20
  toolbar_base?: (props: typeof __VLS_173) => any;
17
21
  } & {
18
- toolbar_insert?: (props: typeof __VLS_275) => any;
22
+ toolbar_insert?: (props: typeof __VLS_280) => any;
19
23
  } & {
20
- toolbar_table?: (props: typeof __VLS_387) => any;
24
+ toolbar_table?: (props: typeof __VLS_392) => any;
21
25
  } & {
22
- toolbar_tools?: (props: typeof __VLS_444) => any;
26
+ toolbar_tools?: (props: typeof __VLS_449) => any;
23
27
  } & {
24
28
  toolbar_view?: (props: typeof __VLS_491) => any;
25
29
  } & {
26
- toolbar_copyediting?: (props: typeof __VLS_493) => any;
30
+ toolbar_review?: (props: typeof __VLS_493) => any;
31
+ } & {
32
+ toolbar_extension?: (props: typeof __VLS_495) => any;
33
+ } & {
34
+ toolbar_enhancement?: (props: typeof __VLS_497) => any;
27
35
  };
28
36
  declare const __VLS_base: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
29
37
  menus: {
@@ -105,7 +105,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
105
105
  page: string;
106
106
  view: string;
107
107
  export: string;
108
- copyediting: string;
108
+ extension: string;
109
+ enhancement: string;
109
110
  };
110
111
  base: {
111
112
  align: {
@@ -368,12 +369,18 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
368
369
  mention: string;
369
370
  bookmark: {
370
371
  text: string;
372
+ title: string;
373
+ "edit-title": string;
374
+ note: string;
371
375
  set: string;
372
376
  ok: string;
377
+ confirm: string;
378
+ cancel: string;
373
379
  textName: string;
374
380
  placeholder: string;
375
381
  show: string;
376
382
  actions: string;
383
+ edit: string;
377
384
  delete: string;
378
385
  emptyError: string;
379
386
  };
@@ -1107,6 +1114,45 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
1107
1114
  preview: {
1108
1115
  title: string;
1109
1116
  disable: string;
1117
+ drawing: {
1118
+ title: string;
1119
+ hiddenTitle: string;
1120
+ tools: {
1121
+ title: string;
1122
+ rectangle: string;
1123
+ line: string;
1124
+ path: string;
1125
+ };
1126
+ color: {
1127
+ title: string;
1128
+ custom: string;
1129
+ };
1130
+ width: {
1131
+ title: string;
1132
+ thin: string;
1133
+ default: string;
1134
+ thick: string;
1135
+ extraThick: string;
1136
+ };
1137
+ strokeStyles: {
1138
+ title: string;
1139
+ solid: string;
1140
+ dashed: string;
1141
+ wavy: string;
1142
+ };
1143
+ select: string;
1144
+ deleteSelected: string;
1145
+ undo: string;
1146
+ save: string;
1147
+ saving: string;
1148
+ saved: string;
1149
+ hideAnnotations: string;
1150
+ showAnnotations: string;
1151
+ restorePage: string;
1152
+ clearAll: string;
1153
+ confirmClear: string;
1154
+ count: string;
1155
+ };
1110
1156
  countdown: {
1111
1157
  title: string;
1112
1158
  select: string;
@@ -1131,6 +1177,7 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
1131
1177
  remaining: string;
1132
1178
  };
1133
1179
  laserPointer: string;
1180
+ hideToolbar: string;
1134
1181
  };
1135
1182
  fullscreen: {
1136
1183
  title: string;
@@ -1325,7 +1372,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
1325
1372
  page: string;
1326
1373
  view: string;
1327
1374
  export: string;
1328
- copyediting: string;
1375
+ extension: string;
1376
+ enhancement: string;
1329
1377
  };
1330
1378
  base: {
1331
1379
  align: {
@@ -1588,12 +1636,18 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
1588
1636
  mention: string;
1589
1637
  bookmark: {
1590
1638
  text: string;
1639
+ title: string;
1640
+ "edit-title": string;
1641
+ note: string;
1591
1642
  set: string;
1592
1643
  ok: string;
1644
+ confirm: string;
1645
+ cancel: string;
1593
1646
  textName: string;
1594
1647
  placeholder: string;
1595
1648
  show: string;
1596
1649
  actions: string;
1650
+ edit: string;
1597
1651
  delete: string;
1598
1652
  emptyError: string;
1599
1653
  };
@@ -2332,6 +2386,45 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
2332
2386
  preview: {
2333
2387
  title: string;
2334
2388
  disable: string;
2389
+ drawing: {
2390
+ title: string;
2391
+ hiddenTitle: string;
2392
+ tools: {
2393
+ title: string;
2394
+ rectangle: string;
2395
+ line: string;
2396
+ path: string;
2397
+ };
2398
+ color: {
2399
+ title: string;
2400
+ custom: string;
2401
+ };
2402
+ width: {
2403
+ title: string;
2404
+ thin: string;
2405
+ default: string;
2406
+ thick: string;
2407
+ extraThick: string;
2408
+ };
2409
+ strokeStyles: {
2410
+ title: string;
2411
+ solid: string;
2412
+ dashed: string;
2413
+ wavy: string;
2414
+ };
2415
+ select: string;
2416
+ deleteSelected: string;
2417
+ undo: string;
2418
+ save: string;
2419
+ saving: string;
2420
+ saved: string;
2421
+ hideAnnotations: string;
2422
+ showAnnotations: string;
2423
+ restorePage: string;
2424
+ clearAll: string;
2425
+ confirmClear: string;
2426
+ count: string;
2427
+ };
2335
2428
  countdown: {
2336
2429
  title: string;
2337
2430
  select: string;
@@ -2356,6 +2449,7 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
2356
2449
  remaining: string;
2357
2450
  };
2358
2451
  laserPointer: string;
2452
+ hideToolbar: string;
2359
2453
  };
2360
2454
  fullscreen: {
2361
2455
  title: string;
@@ -2537,7 +2631,8 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
2537
2631
  page: string;
2538
2632
  view: string;
2539
2633
  export: string;
2540
- copyediting: string;
2634
+ extension: string;
2635
+ enhancement: string;
2541
2636
  };
2542
2637
  base: {
2543
2638
  align: {
@@ -2800,12 +2895,18 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
2800
2895
  mention: string;
2801
2896
  bookmark: {
2802
2897
  text: string;
2898
+ title: string;
2899
+ "edit-title": string;
2900
+ note: string;
2803
2901
  set: string;
2804
2902
  ok: string;
2903
+ confirm: string;
2904
+ cancel: string;
2805
2905
  textName: string;
2806
2906
  placeholder: string;
2807
2907
  show: string;
2808
2908
  actions: string;
2909
+ edit: string;
2809
2910
  delete: string;
2810
2911
  emptyError: string;
2811
2912
  };
@@ -3544,6 +3645,45 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
3544
3645
  preview: {
3545
3646
  title: string;
3546
3647
  disable: string;
3648
+ drawing: {
3649
+ title: string;
3650
+ hiddenTitle: string;
3651
+ tools: {
3652
+ title: string;
3653
+ rectangle: string;
3654
+ line: string;
3655
+ path: string;
3656
+ };
3657
+ color: {
3658
+ title: string;
3659
+ custom: string;
3660
+ };
3661
+ width: {
3662
+ title: string;
3663
+ thin: string;
3664
+ default: string;
3665
+ thick: string;
3666
+ extraThick: string;
3667
+ };
3668
+ strokeStyles: {
3669
+ title: string;
3670
+ solid: string;
3671
+ dashed: string;
3672
+ wavy: string;
3673
+ };
3674
+ select: string;
3675
+ deleteSelected: string;
3676
+ undo: string;
3677
+ save: string;
3678
+ saving: string;
3679
+ saved: string;
3680
+ hideAnnotations: string;
3681
+ showAnnotations: string;
3682
+ restorePage: string;
3683
+ clearAll: string;
3684
+ confirmClear: string;
3685
+ count: string;
3686
+ };
3547
3687
  countdown: {
3548
3688
  title: string;
3549
3689
  select: string;
@@ -3568,6 +3708,7 @@ export declare const useI18n: () => import("vue-i18n").Composer<{
3568
3708
  remaining: string;
3569
3709
  };
3570
3710
  laserPointer: string;
3711
+ hideToolbar: string;
3571
3712
  };
3572
3713
  fullscreen: {
3573
3714
  title: string;
@@ -1,9 +1,12 @@
1
- /**
2
- * 插件作用:提供书签标记,记录文档中的定位点。
3
- * 使用方法:注册扩展后通过书签相关命令添加或移除。
4
- * 注意事项:书签标识应保持唯一,避免定位到错误位置。
5
- */
6
1
  import { Mark } from '@tiptap/core';
2
+ /** 同时匹配编辑器书签标签和 DOCX 导入的无链接锚点书签。 */
3
+ export declare const queryBookmarkElements: (root: ParentNode) => Element[];
4
+ /** 读取书签名称,兼容 HTML 属性大小写和 DOCX 导入的 id 字段。 */
5
+ export declare const getBookmarkName: (element: Element) => string;
6
+ /** 在指定 DOM 根节点中按名称查找书签,返回首个匹配项。 */
7
+ export declare const findBookmarkElement: (root: ParentNode, bookmarkName: string) => Element;
8
+ /** 读取书签备注;导入锚点未设置备注时回退到正文文字。 */
9
+ export declare const getBookmarkNote: (element: Element) => string;
7
10
  declare const _default: Mark<{
8
11
  bookmarkName: string;
9
12
  class: string;
@@ -1,4 +1,6 @@
1
1
  import { Mark } from '@tiptap/core';
2
+ export declare const normalizeBubbleNoteLineType: (value: any) => any;
3
+ export declare const normalizeBubbleNoteLineColor: (value: any) => string;
2
4
  export declare const normalizeBubbleNoteReferenceUrl: (value: any) => string;
3
5
  declare const _default: Mark<any, any>;
4
6
  export default _default;
@@ -1,4 +1,3 @@
1
1
  import { Extension } from '@tiptap/core';
2
- export declare const styleableNodeTypes: string[];
3
2
  declare const _default: Extension<any, any>;
4
3
  export default _default;