@linker-design-plus/tiny-peony 1.4.16 → 1.4.17

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 (42) hide show
  1. package/dist/foundation/contentManager/contentManager.d.ts +5 -0
  2. package/dist/index.d.ts +72 -21
  3. package/dist/index.js +42 -34
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.mjs +4576 -3063
  6. package/dist/index.mjs.map +1 -0
  7. package/dist/intersection/components/editor/context.d.ts +128 -2
  8. package/dist/intersection/components/editor/editor.d.ts +50 -10
  9. package/dist/intersection/components/editor/index.d.ts +72 -21
  10. package/dist/intersection/components/modals/Refine/RefineContent.d.ts +20 -0
  11. package/dist/intersection/components/modals/Refine/RefineGenerator.d.ts +19 -0
  12. package/dist/intersection/components/modals/Refine/RefineInput.d.ts +18 -0
  13. package/dist/intersection/components/modals/Refine/RefineShortcut.d.ts +2 -0
  14. package/dist/intersection/components/modals/Refine/RefineToolbar.d.ts +2 -0
  15. package/dist/intersection/components/modals/Refine/context.d.ts +128 -0
  16. package/dist/intersection/components/modals/Refine/icons/abort.vue.d.ts +2 -0
  17. package/dist/intersection/components/modals/Refine/icons/copy.vue.d.ts +2 -0
  18. package/dist/intersection/components/modals/Refine/icons/delete.vue.d.ts +2 -0
  19. package/dist/intersection/components/modals/Refine/icons/expand.vue.d.ts +2 -0
  20. package/dist/intersection/components/modals/Refine/icons/inexpand.vue.d.ts +2 -0
  21. package/dist/intersection/components/modals/Refine/icons/insert.vue.d.ts +2 -0
  22. package/dist/intersection/components/modals/Refine/icons/moreShortcut.vue.d.ts +2 -0
  23. package/dist/intersection/components/modals/Refine/icons/optimism.vue.d.ts +2 -0
  24. package/dist/intersection/components/modals/Refine/icons/prefix.vue.d.ts +2 -0
  25. package/dist/intersection/components/modals/Refine/icons/refresh.vue.d.ts +2 -0
  26. package/dist/intersection/components/modals/Refine/icons/replace.vue.d.ts +2 -0
  27. package/dist/intersection/components/modals/Refine/icons/send.vue.d.ts +2 -0
  28. package/dist/intersection/components/modals/Refine/index.d.ts +3 -0
  29. package/dist/intersection/components/modals/Refine/use-modal-pos.d.ts +10 -0
  30. package/dist/intersection/components/modals/Refine/use-range-highlight.d.ts +6 -0
  31. package/dist/intersection/hooks/use-copy.d.ts +4 -0
  32. package/dist/intersection/hooks/use-editor.d.ts +3 -2
  33. package/dist/intersection/hooks/use-state.d.ts +4 -0
  34. package/dist/plugins/AnchorTagPlugin/plugin.d.ts +4 -0
  35. package/dist/plugins/HomophonesTagPlugin/homophoner.vue.d.ts +2 -2
  36. package/dist/plugins/PronunciationTagPlugin/pronunciationor.vue.d.ts +2 -2
  37. package/dist/tiny-peony.css +1 -1
  38. package/dist/typings/actions/i-anchor.d.ts +8 -0
  39. package/dist/typings/intersection/editor.d.ts +10 -1
  40. package/dist/utils/dom.d.ts +19 -1
  41. package/dist/utils/shared.d.ts +11 -0
  42. package/package.json +1 -1
@@ -14,6 +14,10 @@ export interface ContentOptions {
14
14
  * * 是否返回带有文本审核高亮样式标记
15
15
  */
16
16
  withAuditHighlight?: boolean;
17
+ /**
18
+ * 是否返回带有调优高亮样式标记
19
+ */
20
+ withRefineHighlight?: boolean;
17
21
  }
18
22
  export declare const defaultContentOptions: ContentOptions;
19
23
  export interface EditorContext {
@@ -30,16 +34,138 @@ export interface EditorContext {
30
34
  isCaret: () => boolean;
31
35
  isRange: () => boolean;
32
36
  isSelectionContainsTag: (type: PluginFlag) => boolean;
33
- getAnchorTtsMark: (id: number, startFromCursor?: boolean) => string;
34
- getAnchorTtsEmotionAndRole: (id: number) => [string, string | undefined];
37
+ getAnchorTtsMark: (anchor: IAnchor, startFromCursor?: boolean) => string;
38
+ getAnchorTtsEmotionAndRole: (anchor: IAnchor) => [string, string | undefined];
35
39
  isAllMarkedByAnchor: () => boolean;
36
40
  addExtraAnchors: (data: IAnchor[]) => void;
37
41
  clearContent: () => void;
38
42
  renderHighlight: (matchingContent: string) => void;
39
43
  unrenderHighlight: () => void;
44
+ refineContext?: RefineContext;
40
45
  }
41
46
  export declare const EditorInjectionKey: InjectionKey<EditorContext>;
42
47
  declare const HIGHLIGHT_CLS = "highlight";
43
48
  declare const auditHighlightBem: import("@linker-design/utils").Bem;
44
49
  declare const AUDIT_HIGHLIGHT_CLS: string;
45
50
  export { HIGHLIGHT_CLS, auditHighlightBem, AUDIT_HIGHLIGHT_CLS };
51
+ export interface RefineContext {
52
+ agentId: string;
53
+ createSession: (data: {
54
+ agentId: string;
55
+ sessionId: string;
56
+ }) => Promise<{
57
+ data: ChatInfoResp;
58
+ [key: string]: any;
59
+ }>;
60
+ sendSessionMessage: {
61
+ (data: ChatMessageReq, options: Recordable): Promise<void>;
62
+ abort: () => void | undefined;
63
+ };
64
+ abortSession: (data: {
65
+ conversationId?: string;
66
+ sessionId?: string;
67
+ }) => Promise<any>;
68
+ }
69
+ /**
70
+ * ChatMessageReq
71
+ */
72
+ export interface ChatMessageReq {
73
+ /**
74
+ * 是否深度思考,0否 1是
75
+ */
76
+ deepseek?: number;
77
+ /**
78
+ * 引用的网页,多个以逗号分隔
79
+ */
80
+ htmlUrls?: string;
81
+ messageRequest?: MessageRequest;
82
+ /**
83
+ * 模型名称,Deepseek-R1、Gemini-2.5-flash、Claude-opus-4.1
84
+ */
85
+ modelName?: string;
86
+ /**
87
+ * 参考文件信息json,前端展示回显用
88
+ */
89
+ refFiles?: string;
90
+ /**
91
+ * 引用文档,多个以逗号分隔
92
+ */
93
+ refUrls?: string;
94
+ /**
95
+ * 是否搜索,0否 1是
96
+ */
97
+ search?: number;
98
+ /**
99
+ * 待优化的源内容
100
+ */
101
+ sourceContent?: string;
102
+ /**
103
+ * 待优化的内容源链接地址
104
+ */
105
+ sourceUrls?: string[];
106
+ /**
107
+ * 模板id
108
+ */
109
+ templateId?: number;
110
+ tenantId?: string;
111
+ /**
112
+ * 会话类型,0写稿 1每日要闻
113
+ */
114
+ type?: number;
115
+ userCode?: string;
116
+ [property: string]: any;
117
+ }
118
+ /**
119
+ * MessageRequest
120
+ */
121
+ export interface MessageRequest {
122
+ agent_id?: string;
123
+ extra_params?: {
124
+ [key: string]: {
125
+ [key: string]: any;
126
+ };
127
+ };
128
+ message?: Message;
129
+ meta_data?: MetaData;
130
+ [property: string]: any;
131
+ }
132
+ /**
133
+ * Message
134
+ */
135
+ export interface Message {
136
+ content?: string;
137
+ conversation_id?: string;
138
+ data?: {
139
+ [key: string]: any;
140
+ }[];
141
+ history?: {
142
+ [key: string]: any;
143
+ }[];
144
+ [property: string]: any;
145
+ }
146
+ /**
147
+ * MetaData
148
+ */
149
+ export interface MetaData {
150
+ ai_rewrite?: string;
151
+ data?: {
152
+ [key: string]: any;
153
+ }[];
154
+ is_search?: string;
155
+ model_name?: string;
156
+ rewrite_content?: string;
157
+ sessionId?: string;
158
+ url?: string[];
159
+ word_number?: string;
160
+ [property: string]: any;
161
+ }
162
+ export interface ChatInfoResp {
163
+ agentId?: string;
164
+ chatContext?: string;
165
+ content?: string;
166
+ conversionId?: string;
167
+ id?: number;
168
+ sessionId?: string;
169
+ welcome?: string;
170
+ [property: string]: any;
171
+ }
@@ -1,6 +1,6 @@
1
1
  import { CSSProperties, PropType } from 'vue';
2
2
  import { JSX } from 'vue/jsx-runtime';
3
- import { ContentOptions } from './context';
3
+ import { ContentOptions, RefineContext } from './context';
4
4
  import { IAnchor, ListenModeEnum, PluginFlag } from '../../../typings';
5
5
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
6
  preTime: {
@@ -16,8 +16,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
16
16
  default: undefined;
17
17
  };
18
18
  listenAnchorId: {
19
- type: NumberConstructor;
20
- default: number;
19
+ type: StringConstructor;
20
+ default: string;
21
21
  };
22
22
  listenMode: {
23
23
  type: PropType<ListenModeEnum>;
@@ -51,6 +51,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
51
51
  type: PropType<CSSProperties>;
52
52
  default: () => {};
53
53
  };
54
+ /**
55
+ * 是否开启文本调优
56
+ */
57
+ refinable: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ /**
62
+ * 文本调优上下文
63
+ */
64
+ refineContext: {
65
+ type: PropType<RefineContext>;
66
+ };
67
+ editorHeight: {
68
+ type: (StringConstructor | NumberConstructor)[];
69
+ default: string;
70
+ };
54
71
  showPreTime: {
55
72
  type: BooleanConstructor;
56
73
  default: boolean;
@@ -69,11 +86,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
69
86
  innerIsRange: () => boolean;
70
87
  innerIsSelectionInDifferentParas: () => boolean;
71
88
  innerIsSelectionContainsTag: (type: PluginFlag) => boolean;
72
- innerGetAnchorTtsMark: (id: number, startFromCursor?: boolean) => string;
73
- innerGetAnchorTtsEmotionAndRole: (id: number) => [string, string | undefined];
89
+ innerGetAnchorTtsMark: (anchor: IAnchor, startFromCursor?: boolean) => string;
90
+ innerGetAnchorTtsEmotionAndRole: (anchor: IAnchor) => [string, string | undefined];
74
91
  innerIsAllMarkedByAnchor: () => boolean;
75
92
  innerAddExtraAnchors: (data: IAnchor[]) => void;
93
+ innerUpdateAnchor: (newAnchor: IAnchor) => void;
76
94
  innerClearContent: () => void;
95
+ innerInsertContentAtCursor: (_content: string | string[]) => void;
77
96
  innerRenderHightlight: (matchingContent: string) => void;
78
97
  innerUnrenderHightlight: () => void;
79
98
  }, {}, {}, {
@@ -90,11 +109,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
90
109
  isRange(): boolean;
91
110
  isSelectionInDifferentParas(): boolean;
92
111
  isSelectionContainsTag(type: PluginFlag): boolean;
93
- getAnchorTtsMark(id: number, startFromCursor?: boolean): string;
94
- getAnchorTtsEmotionAndRole(id: number): [string, string | undefined];
112
+ getAnchorTtsMark(anchor: IAnchor, startFromCursor?: boolean): string;
113
+ getAnchorTtsEmotionAndRole(anchor: IAnchor): [string, string | undefined];
95
114
  isAllMarkedByAnchor(): boolean;
96
115
  addExtraAnchors(data: IAnchor[]): void;
116
+ updateAnchor(anchor: IAnchor): void;
97
117
  clearContent(): void;
118
+ insertContentAtCursor(_content: string | string[]): void;
98
119
  clear(): Promise<void>;
99
120
  renderHighlight(matchingContent: string): void;
100
121
  unrenderHighlight(): void;
@@ -118,8 +139,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
118
139
  default: undefined;
119
140
  };
120
141
  listenAnchorId: {
121
- type: NumberConstructor;
122
- default: number;
142
+ type: StringConstructor;
143
+ default: string;
123
144
  };
124
145
  listenMode: {
125
146
  type: PropType<ListenModeEnum>;
@@ -153,6 +174,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
153
174
  type: PropType<CSSProperties>;
154
175
  default: () => {};
155
176
  };
177
+ /**
178
+ * 是否开启文本调优
179
+ */
180
+ refinable: {
181
+ type: BooleanConstructor;
182
+ default: boolean;
183
+ };
184
+ /**
185
+ * 文本调优上下文
186
+ */
187
+ refineContext: {
188
+ type: PropType<RefineContext>;
189
+ };
190
+ editorHeight: {
191
+ type: (StringConstructor | NumberConstructor)[];
192
+ default: string;
193
+ };
156
194
  showPreTime: {
157
195
  type: BooleanConstructor;
158
196
  default: boolean;
@@ -173,9 +211,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
173
211
  simple: boolean;
174
212
  preTime: string;
175
213
  textCount: number;
176
- listenAnchorId: number;
214
+ listenAnchorId: string;
177
215
  listenMode: ListenModeEnum;
178
216
  contentStyle: CSSProperties;
217
+ refinable: boolean;
218
+ editorHeight: string | number;
179
219
  showPreTime: boolean;
180
220
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
181
221
  export default _default;
@@ -16,8 +16,8 @@ declare const EditorContainer: {
16
16
  default: undefined;
17
17
  };
18
18
  listenAnchorId: {
19
- type: NumberConstructor;
20
- default: number;
19
+ type: StringConstructor;
20
+ default: string;
21
21
  };
22
22
  listenMode: {
23
23
  type: import("vue").PropType<import("../../..").ListenModeEnum>;
@@ -51,6 +51,17 @@ declare const EditorContainer: {
51
51
  type: import("vue").PropType<import("vue").CSSProperties>;
52
52
  default: () => {};
53
53
  };
54
+ refinable: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ refineContext: {
59
+ type: import("vue").PropType<import("./context").RefineContext>;
60
+ };
61
+ editorHeight: {
62
+ type: (StringConstructor | NumberConstructor)[];
63
+ default: string;
64
+ };
54
65
  showPreTime: {
55
66
  type: BooleanConstructor;
56
67
  default: boolean;
@@ -75,11 +86,13 @@ declare const EditorContainer: {
75
86
  innerIsRange: () => boolean;
76
87
  innerIsSelectionInDifferentParas: () => boolean;
77
88
  innerIsSelectionContainsTag: (type: import("../../..").PluginFlag) => boolean;
78
- innerGetAnchorTtsMark: (id: number, startFromCursor?: boolean) => string;
79
- innerGetAnchorTtsEmotionAndRole: (id: number) => [string, string | undefined];
89
+ innerGetAnchorTtsMark: (anchor: import("../../..").IAnchor, startFromCursor?: boolean) => string;
90
+ innerGetAnchorTtsEmotionAndRole: (anchor: import("../../..").IAnchor) => [string, string | undefined];
80
91
  innerIsAllMarkedByAnchor: () => boolean;
81
92
  innerAddExtraAnchors: (data: import("../../..").IAnchor[]) => void;
93
+ innerUpdateAnchor: (newAnchor: import("../../..").IAnchor) => void;
82
94
  innerClearContent: () => void;
95
+ innerInsertContentAtCursor: (_content: string | string[]) => void;
83
96
  innerRenderHightlight: (matchingContent: string) => void;
84
97
  innerUnrenderHightlight: () => void;
85
98
  }, {}, {}, {
@@ -96,11 +109,13 @@ declare const EditorContainer: {
96
109
  isRange(): boolean;
97
110
  isSelectionInDifferentParas(): boolean;
98
111
  isSelectionContainsTag(type: import("../../..").PluginFlag): boolean;
99
- getAnchorTtsMark(id: number, startFromCursor?: boolean): string;
100
- getAnchorTtsEmotionAndRole(id: number): [string, string | undefined];
112
+ getAnchorTtsMark(anchor: import("../../..").IAnchor, startFromCursor?: boolean): string;
113
+ getAnchorTtsEmotionAndRole(anchor: import("../../..").IAnchor): [string, string | undefined];
101
114
  isAllMarkedByAnchor(): boolean;
102
115
  addExtraAnchors(data: import("../../..").IAnchor[]): void;
116
+ updateAnchor(anchor: import("../../..").IAnchor): void;
103
117
  clearContent(): void;
118
+ insertContentAtCursor(_content: string | string[]): void;
104
119
  clear(): Promise<void>;
105
120
  renderHighlight(matchingContent: string): void;
106
121
  unrenderHighlight(): void;
@@ -120,9 +135,11 @@ declare const EditorContainer: {
120
135
  simple: boolean;
121
136
  preTime: string;
122
137
  textCount: number;
123
- listenAnchorId: number;
138
+ listenAnchorId: string;
124
139
  listenMode: import("../../..").ListenModeEnum;
125
140
  contentStyle: import("vue").CSSProperties;
141
+ refinable: boolean;
142
+ editorHeight: string | number;
126
143
  showPreTime: boolean;
127
144
  }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
128
145
  P: {};
@@ -145,8 +162,8 @@ declare const EditorContainer: {
145
162
  default: undefined;
146
163
  };
147
164
  listenAnchorId: {
148
- type: NumberConstructor;
149
- default: number;
165
+ type: StringConstructor;
166
+ default: string;
150
167
  };
151
168
  listenMode: {
152
169
  type: import("vue").PropType<import("../../..").ListenModeEnum>;
@@ -180,6 +197,17 @@ declare const EditorContainer: {
180
197
  type: import("vue").PropType<import("vue").CSSProperties>;
181
198
  default: () => {};
182
199
  };
200
+ refinable: {
201
+ type: BooleanConstructor;
202
+ default: boolean;
203
+ };
204
+ refineContext: {
205
+ type: import("vue").PropType<import("./context").RefineContext>;
206
+ };
207
+ editorHeight: {
208
+ type: (StringConstructor | NumberConstructor)[];
209
+ default: string;
210
+ };
183
211
  showPreTime: {
184
212
  type: BooleanConstructor;
185
213
  default: boolean;
@@ -204,11 +232,13 @@ declare const EditorContainer: {
204
232
  innerIsRange: () => boolean;
205
233
  innerIsSelectionInDifferentParas: () => boolean;
206
234
  innerIsSelectionContainsTag: (type: import("../../..").PluginFlag) => boolean;
207
- innerGetAnchorTtsMark: (id: number, startFromCursor?: boolean) => string;
208
- innerGetAnchorTtsEmotionAndRole: (id: number) => [string, string | undefined];
235
+ innerGetAnchorTtsMark: (anchor: import("../../..").IAnchor, startFromCursor?: boolean) => string;
236
+ innerGetAnchorTtsEmotionAndRole: (anchor: import("../../..").IAnchor) => [string, string | undefined];
209
237
  innerIsAllMarkedByAnchor: () => boolean;
210
238
  innerAddExtraAnchors: (data: import("../../..").IAnchor[]) => void;
239
+ innerUpdateAnchor: (newAnchor: import("../../..").IAnchor) => void;
211
240
  innerClearContent: () => void;
241
+ innerInsertContentAtCursor: (_content: string | string[]) => void;
212
242
  innerRenderHightlight: (matchingContent: string) => void;
213
243
  innerUnrenderHightlight: () => void;
214
244
  }, {}, {}, {
@@ -225,11 +255,13 @@ declare const EditorContainer: {
225
255
  isRange(): boolean;
226
256
  isSelectionInDifferentParas(): boolean;
227
257
  isSelectionContainsTag(type: import("../../..").PluginFlag): boolean;
228
- getAnchorTtsMark(id: number, startFromCursor?: boolean): string;
229
- getAnchorTtsEmotionAndRole(id: number): [string, string | undefined];
258
+ getAnchorTtsMark(anchor: import("../../..").IAnchor, startFromCursor?: boolean): string;
259
+ getAnchorTtsEmotionAndRole(anchor: import("../../..").IAnchor): [string, string | undefined];
230
260
  isAllMarkedByAnchor(): boolean;
231
261
  addExtraAnchors(data: import("../../..").IAnchor[]): void;
262
+ updateAnchor(anchor: import("../../..").IAnchor): void;
232
263
  clearContent(): void;
264
+ insertContentAtCursor(_content: string | string[]): void;
233
265
  clear(): Promise<void>;
234
266
  renderHighlight(matchingContent: string): void;
235
267
  unrenderHighlight(): void;
@@ -243,9 +275,11 @@ declare const EditorContainer: {
243
275
  simple: boolean;
244
276
  preTime: string;
245
277
  textCount: number;
246
- listenAnchorId: number;
278
+ listenAnchorId: string;
247
279
  listenMode: import("../../..").ListenModeEnum;
248
280
  contentStyle: import("vue").CSSProperties;
281
+ refinable: boolean;
282
+ editorHeight: string | number;
249
283
  showPreTime: boolean;
250
284
  }>;
251
285
  __isFragment?: never;
@@ -265,8 +299,8 @@ declare const EditorContainer: {
265
299
  default: undefined;
266
300
  };
267
301
  listenAnchorId: {
268
- type: NumberConstructor;
269
- default: number;
302
+ type: StringConstructor;
303
+ default: string;
270
304
  };
271
305
  listenMode: {
272
306
  type: import("vue").PropType<import("../../..").ListenModeEnum>;
@@ -300,6 +334,17 @@ declare const EditorContainer: {
300
334
  type: import("vue").PropType<import("vue").CSSProperties>;
301
335
  default: () => {};
302
336
  };
337
+ refinable: {
338
+ type: BooleanConstructor;
339
+ default: boolean;
340
+ };
341
+ refineContext: {
342
+ type: import("vue").PropType<import("./context").RefineContext>;
343
+ };
344
+ editorHeight: {
345
+ type: (StringConstructor | NumberConstructor)[];
346
+ default: string;
347
+ };
303
348
  showPreTime: {
304
349
  type: BooleanConstructor;
305
350
  default: boolean;
@@ -324,11 +369,13 @@ declare const EditorContainer: {
324
369
  innerIsRange: () => boolean;
325
370
  innerIsSelectionInDifferentParas: () => boolean;
326
371
  innerIsSelectionContainsTag: (type: import("../../..").PluginFlag) => boolean;
327
- innerGetAnchorTtsMark: (id: number, startFromCursor?: boolean) => string;
328
- innerGetAnchorTtsEmotionAndRole: (id: number) => [string, string | undefined];
372
+ innerGetAnchorTtsMark: (anchor: import("../../..").IAnchor, startFromCursor?: boolean) => string;
373
+ innerGetAnchorTtsEmotionAndRole: (anchor: import("../../..").IAnchor) => [string, string | undefined];
329
374
  innerIsAllMarkedByAnchor: () => boolean;
330
375
  innerAddExtraAnchors: (data: import("../../..").IAnchor[]) => void;
376
+ innerUpdateAnchor: (newAnchor: import("../../..").IAnchor) => void;
331
377
  innerClearContent: () => void;
378
+ innerInsertContentAtCursor: (_content: string | string[]) => void;
332
379
  innerRenderHightlight: (matchingContent: string) => void;
333
380
  innerUnrenderHightlight: () => void;
334
381
  }, {}, {}, {
@@ -345,11 +392,13 @@ declare const EditorContainer: {
345
392
  isRange(): boolean;
346
393
  isSelectionInDifferentParas(): boolean;
347
394
  isSelectionContainsTag(type: import("../../..").PluginFlag): boolean;
348
- getAnchorTtsMark(id: number, startFromCursor?: boolean): string;
349
- getAnchorTtsEmotionAndRole(id: number): [string, string | undefined];
395
+ getAnchorTtsMark(anchor: import("../../..").IAnchor, startFromCursor?: boolean): string;
396
+ getAnchorTtsEmotionAndRole(anchor: import("../../..").IAnchor): [string, string | undefined];
350
397
  isAllMarkedByAnchor(): boolean;
351
398
  addExtraAnchors(data: import("../../..").IAnchor[]): void;
399
+ updateAnchor(anchor: import("../../..").IAnchor): void;
352
400
  clearContent(): void;
401
+ insertContentAtCursor(_content: string | string[]): void;
353
402
  clear(): Promise<void>;
354
403
  renderHighlight(matchingContent: string): void;
355
404
  unrenderHighlight(): void;
@@ -369,9 +418,11 @@ declare const EditorContainer: {
369
418
  simple: boolean;
370
419
  preTime: string;
371
420
  textCount: number;
372
- listenAnchorId: number;
421
+ listenAnchorId: string;
373
422
  listenMode: import("../../..").ListenModeEnum;
374
423
  contentStyle: import("vue").CSSProperties;
424
+ refinable: boolean;
425
+ editorHeight: string | number;
375
426
  showPreTime: boolean;
376
427
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
377
428
  install: (app: App, options?: Record<string, any>) => void;
@@ -0,0 +1,20 @@
1
+ import type { PropType } from 'vue';
2
+ import { type RefineSingleContentContext } from './context';
3
+ declare const RefineContent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ modelValue: {
5
+ type: PropType<RefineSingleContentContext[]>;
6
+ default: () => never[];
7
+ };
8
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ 'update:modelValue': (val: string) => true;
10
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ modelValue: {
12
+ type: PropType<RefineSingleContentContext[]>;
13
+ default: () => never[];
14
+ };
15
+ }>> & Readonly<{
16
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
17
+ }>, {
18
+ modelValue: RefineSingleContentContext[];
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
20
+ export default RefineContent;
@@ -0,0 +1,19 @@
1
+ declare const RefineGenerator: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ width: {
3
+ type: (StringConstructor | NumberConstructor)[];
4
+ default: string;
5
+ };
6
+ }>, {
7
+ innerRender: () => import("vue/jsx-runtime").JSX.Element;
8
+ innerSetVisible: import("../../../hooks/use-state").SetStateAction<boolean>;
9
+ }, {}, {}, {
10
+ setVisible(visible: boolean): void;
11
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
+ width: {
13
+ type: (StringConstructor | NumberConstructor)[];
14
+ default: string;
15
+ };
16
+ }>> & Readonly<{}>, {
17
+ width: string | number;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
19
+ export default RefineGenerator;
@@ -0,0 +1,18 @@
1
+ declare const RefineInput: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ modelValue: {
3
+ type: StringConstructor;
4
+ default: undefined;
5
+ };
6
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ 'update:modelValue': (val: string | undefined) => true;
8
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
+ modelValue: {
10
+ type: StringConstructor;
11
+ default: undefined;
12
+ };
13
+ }>> & Readonly<{
14
+ "onUpdate:modelValue"?: ((val: string | undefined) => any) | undefined;
15
+ }>, {
16
+ modelValue: string;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
18
+ export default RefineInput;
@@ -0,0 +1,2 @@
1
+ declare const RefineShortcut: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default RefineShortcut;
@@ -0,0 +1,2 @@
1
+ declare const RefineToolbar: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default RefineToolbar;