@linker-design-plus/tiny-peony 1.4.16 → 1.4.18
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/foundation/contentManager/contentManager.d.ts +5 -0
- package/dist/index.d.ts +77 -21
- package/dist/index.js +42 -34
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +4577 -3063
- package/dist/index.mjs.map +1 -0
- package/dist/intersection/components/editor/context.d.ts +128 -2
- package/dist/intersection/components/editor/editor.d.ts +52 -10
- package/dist/intersection/components/editor/index.d.ts +77 -21
- package/dist/intersection/components/modals/Refine/RefineContent.d.ts +20 -0
- package/dist/intersection/components/modals/Refine/RefineGenerator.d.ts +19 -0
- package/dist/intersection/components/modals/Refine/RefineInput.d.ts +18 -0
- package/dist/intersection/components/modals/Refine/RefineShortcut.d.ts +2 -0
- package/dist/intersection/components/modals/Refine/RefineToolbar.d.ts +2 -0
- package/dist/intersection/components/modals/Refine/context.d.ts +128 -0
- package/dist/intersection/components/modals/Refine/icons/abort.vue.d.ts +2 -0
- package/dist/intersection/components/modals/Refine/icons/copy.vue.d.ts +2 -0
- package/dist/intersection/components/modals/Refine/icons/delete.vue.d.ts +2 -0
- package/dist/intersection/components/modals/Refine/icons/expand.vue.d.ts +2 -0
- package/dist/intersection/components/modals/Refine/icons/inexpand.vue.d.ts +2 -0
- package/dist/intersection/components/modals/Refine/icons/insert.vue.d.ts +2 -0
- package/dist/intersection/components/modals/Refine/icons/moreShortcut.vue.d.ts +2 -0
- package/dist/intersection/components/modals/Refine/icons/optimism.vue.d.ts +2 -0
- package/dist/intersection/components/modals/Refine/icons/prefix.vue.d.ts +2 -0
- package/dist/intersection/components/modals/Refine/icons/refresh.vue.d.ts +2 -0
- package/dist/intersection/components/modals/Refine/icons/replace.vue.d.ts +2 -0
- package/dist/intersection/components/modals/Refine/icons/send.vue.d.ts +2 -0
- package/dist/intersection/components/modals/Refine/index.d.ts +3 -0
- package/dist/intersection/components/modals/Refine/use-modal-pos.d.ts +10 -0
- package/dist/intersection/components/modals/Refine/use-range-highlight.d.ts +6 -0
- package/dist/intersection/hooks/use-copy.d.ts +4 -0
- package/dist/intersection/hooks/use-editor.d.ts +4 -3
- package/dist/intersection/hooks/use-state.d.ts +4 -0
- package/dist/plugins/AnchorTagPlugin/plugin.d.ts +4 -0
- package/dist/plugins/HomophonesTagPlugin/homophoner.vue.d.ts +2 -2
- package/dist/plugins/PronunciationTagPlugin/pronunciationor.vue.d.ts +2 -2
- package/dist/tiny-peony.css +1 -1
- package/dist/typings/actions/i-anchor.d.ts +8 -0
- package/dist/typings/intersection/editor.d.ts +10 -1
- package/dist/utils/dom.d.ts +19 -1
- package/dist/utils/shared.d.ts +11 -0
- 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: (
|
|
34
|
-
getAnchorTtsEmotionAndRole: (
|
|
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:
|
|
20
|
-
default:
|
|
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: (
|
|
73
|
-
innerGetAnchorTtsEmotionAndRole: (
|
|
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(
|
|
94
|
-
getAnchorTtsEmotionAndRole(
|
|
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;
|
|
@@ -104,6 +125,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
104
125
|
anchorListen: (value: IAnchor, text: string) => true;
|
|
105
126
|
anchorListenStop: (value: IAnchor) => true;
|
|
106
127
|
anchorRemove: (value: IAnchor) => true;
|
|
128
|
+
clear: () => true;
|
|
107
129
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
108
130
|
preTime: {
|
|
109
131
|
type: StringConstructor;
|
|
@@ -118,8 +140,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
118
140
|
default: undefined;
|
|
119
141
|
};
|
|
120
142
|
listenAnchorId: {
|
|
121
|
-
type:
|
|
122
|
-
default:
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
default: string;
|
|
123
145
|
};
|
|
124
146
|
listenMode: {
|
|
125
147
|
type: PropType<ListenModeEnum>;
|
|
@@ -153,12 +175,30 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
153
175
|
type: PropType<CSSProperties>;
|
|
154
176
|
default: () => {};
|
|
155
177
|
};
|
|
178
|
+
/**
|
|
179
|
+
* 是否开启文本调优
|
|
180
|
+
*/
|
|
181
|
+
refinable: {
|
|
182
|
+
type: BooleanConstructor;
|
|
183
|
+
default: boolean;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* 文本调优上下文
|
|
187
|
+
*/
|
|
188
|
+
refineContext: {
|
|
189
|
+
type: PropType<RefineContext>;
|
|
190
|
+
};
|
|
191
|
+
editorHeight: {
|
|
192
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
193
|
+
default: string;
|
|
194
|
+
};
|
|
156
195
|
showPreTime: {
|
|
157
196
|
type: BooleanConstructor;
|
|
158
197
|
default: boolean;
|
|
159
198
|
};
|
|
160
199
|
}>> & Readonly<{
|
|
161
200
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
201
|
+
onClear?: (() => any) | undefined;
|
|
162
202
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
163
203
|
onAnchorListen?: ((value: IAnchor, text: string) => any) | undefined;
|
|
164
204
|
onAnchorRemove?: ((value: IAnchor) => any) | undefined;
|
|
@@ -173,9 +213,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
173
213
|
simple: boolean;
|
|
174
214
|
preTime: string;
|
|
175
215
|
textCount: number;
|
|
176
|
-
listenAnchorId:
|
|
216
|
+
listenAnchorId: string;
|
|
177
217
|
listenMode: ListenModeEnum;
|
|
178
218
|
contentStyle: CSSProperties;
|
|
219
|
+
refinable: boolean;
|
|
220
|
+
editorHeight: string | number;
|
|
179
221
|
showPreTime: boolean;
|
|
180
222
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
181
223
|
export default _default;
|
|
@@ -16,8 +16,8 @@ declare const EditorContainer: {
|
|
|
16
16
|
default: undefined;
|
|
17
17
|
};
|
|
18
18
|
listenAnchorId: {
|
|
19
|
-
type:
|
|
20
|
-
default:
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
21
|
};
|
|
22
22
|
listenMode: {
|
|
23
23
|
type: import("vue").PropType<import("../../..").ListenModeEnum>;
|
|
@@ -51,12 +51,24 @@ 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;
|
|
57
68
|
};
|
|
58
69
|
}>> & Readonly<{
|
|
59
70
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
71
|
+
onClear?: (() => any) | undefined;
|
|
60
72
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
61
73
|
onAnchorListen?: ((value: import("../../..").IAnchor, text: string) => any) | undefined;
|
|
62
74
|
onAnchorRemove?: ((value: import("../../..").IAnchor) => any) | undefined;
|
|
@@ -75,11 +87,13 @@ declare const EditorContainer: {
|
|
|
75
87
|
innerIsRange: () => boolean;
|
|
76
88
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
77
89
|
innerIsSelectionContainsTag: (type: import("../../..").PluginFlag) => boolean;
|
|
78
|
-
innerGetAnchorTtsMark: (
|
|
79
|
-
innerGetAnchorTtsEmotionAndRole: (
|
|
90
|
+
innerGetAnchorTtsMark: (anchor: import("../../..").IAnchor, startFromCursor?: boolean) => string;
|
|
91
|
+
innerGetAnchorTtsEmotionAndRole: (anchor: import("../../..").IAnchor) => [string, string | undefined];
|
|
80
92
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
81
93
|
innerAddExtraAnchors: (data: import("../../..").IAnchor[]) => void;
|
|
94
|
+
innerUpdateAnchor: (newAnchor: import("../../..").IAnchor) => void;
|
|
82
95
|
innerClearContent: () => void;
|
|
96
|
+
innerInsertContentAtCursor: (_content: string | string[]) => void;
|
|
83
97
|
innerRenderHightlight: (matchingContent: string) => void;
|
|
84
98
|
innerUnrenderHightlight: () => void;
|
|
85
99
|
}, {}, {}, {
|
|
@@ -96,11 +110,13 @@ declare const EditorContainer: {
|
|
|
96
110
|
isRange(): boolean;
|
|
97
111
|
isSelectionInDifferentParas(): boolean;
|
|
98
112
|
isSelectionContainsTag(type: import("../../..").PluginFlag): boolean;
|
|
99
|
-
getAnchorTtsMark(
|
|
100
|
-
getAnchorTtsEmotionAndRole(
|
|
113
|
+
getAnchorTtsMark(anchor: import("../../..").IAnchor, startFromCursor?: boolean): string;
|
|
114
|
+
getAnchorTtsEmotionAndRole(anchor: import("../../..").IAnchor): [string, string | undefined];
|
|
101
115
|
isAllMarkedByAnchor(): boolean;
|
|
102
116
|
addExtraAnchors(data: import("../../..").IAnchor[]): void;
|
|
117
|
+
updateAnchor(anchor: import("../../..").IAnchor): void;
|
|
103
118
|
clearContent(): void;
|
|
119
|
+
insertContentAtCursor(_content: string | string[]): void;
|
|
104
120
|
clear(): Promise<void>;
|
|
105
121
|
renderHighlight(matchingContent: string): void;
|
|
106
122
|
unrenderHighlight(): void;
|
|
@@ -110,6 +126,7 @@ declare const EditorContainer: {
|
|
|
110
126
|
anchorListen: (value: import("../../..").IAnchor, text: string) => true;
|
|
111
127
|
anchorListenStop: (value: import("../../..").IAnchor) => true;
|
|
112
128
|
anchorRemove: (value: import("../../..").IAnchor) => true;
|
|
129
|
+
clear: () => true;
|
|
113
130
|
}, import("vue").PublicProps, {
|
|
114
131
|
highlight: boolean;
|
|
115
132
|
class: string | unknown[];
|
|
@@ -120,9 +137,11 @@ declare const EditorContainer: {
|
|
|
120
137
|
simple: boolean;
|
|
121
138
|
preTime: string;
|
|
122
139
|
textCount: number;
|
|
123
|
-
listenAnchorId:
|
|
140
|
+
listenAnchorId: string;
|
|
124
141
|
listenMode: import("../../..").ListenModeEnum;
|
|
125
142
|
contentStyle: import("vue").CSSProperties;
|
|
143
|
+
refinable: boolean;
|
|
144
|
+
editorHeight: string | number;
|
|
126
145
|
showPreTime: boolean;
|
|
127
146
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
128
147
|
P: {};
|
|
@@ -145,8 +164,8 @@ declare const EditorContainer: {
|
|
|
145
164
|
default: undefined;
|
|
146
165
|
};
|
|
147
166
|
listenAnchorId: {
|
|
148
|
-
type:
|
|
149
|
-
default:
|
|
167
|
+
type: StringConstructor;
|
|
168
|
+
default: string;
|
|
150
169
|
};
|
|
151
170
|
listenMode: {
|
|
152
171
|
type: import("vue").PropType<import("../../..").ListenModeEnum>;
|
|
@@ -180,12 +199,24 @@ declare const EditorContainer: {
|
|
|
180
199
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
181
200
|
default: () => {};
|
|
182
201
|
};
|
|
202
|
+
refinable: {
|
|
203
|
+
type: BooleanConstructor;
|
|
204
|
+
default: boolean;
|
|
205
|
+
};
|
|
206
|
+
refineContext: {
|
|
207
|
+
type: import("vue").PropType<import("./context").RefineContext>;
|
|
208
|
+
};
|
|
209
|
+
editorHeight: {
|
|
210
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
211
|
+
default: string;
|
|
212
|
+
};
|
|
183
213
|
showPreTime: {
|
|
184
214
|
type: BooleanConstructor;
|
|
185
215
|
default: boolean;
|
|
186
216
|
};
|
|
187
217
|
}>> & Readonly<{
|
|
188
218
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
219
|
+
onClear?: (() => any) | undefined;
|
|
189
220
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
190
221
|
onAnchorListen?: ((value: import("../../..").IAnchor, text: string) => any) | undefined;
|
|
191
222
|
onAnchorRemove?: ((value: import("../../..").IAnchor) => any) | undefined;
|
|
@@ -204,11 +235,13 @@ declare const EditorContainer: {
|
|
|
204
235
|
innerIsRange: () => boolean;
|
|
205
236
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
206
237
|
innerIsSelectionContainsTag: (type: import("../../..").PluginFlag) => boolean;
|
|
207
|
-
innerGetAnchorTtsMark: (
|
|
208
|
-
innerGetAnchorTtsEmotionAndRole: (
|
|
238
|
+
innerGetAnchorTtsMark: (anchor: import("../../..").IAnchor, startFromCursor?: boolean) => string;
|
|
239
|
+
innerGetAnchorTtsEmotionAndRole: (anchor: import("../../..").IAnchor) => [string, string | undefined];
|
|
209
240
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
210
241
|
innerAddExtraAnchors: (data: import("../../..").IAnchor[]) => void;
|
|
242
|
+
innerUpdateAnchor: (newAnchor: import("../../..").IAnchor) => void;
|
|
211
243
|
innerClearContent: () => void;
|
|
244
|
+
innerInsertContentAtCursor: (_content: string | string[]) => void;
|
|
212
245
|
innerRenderHightlight: (matchingContent: string) => void;
|
|
213
246
|
innerUnrenderHightlight: () => void;
|
|
214
247
|
}, {}, {}, {
|
|
@@ -225,11 +258,13 @@ declare const EditorContainer: {
|
|
|
225
258
|
isRange(): boolean;
|
|
226
259
|
isSelectionInDifferentParas(): boolean;
|
|
227
260
|
isSelectionContainsTag(type: import("../../..").PluginFlag): boolean;
|
|
228
|
-
getAnchorTtsMark(
|
|
229
|
-
getAnchorTtsEmotionAndRole(
|
|
261
|
+
getAnchorTtsMark(anchor: import("../../..").IAnchor, startFromCursor?: boolean): string;
|
|
262
|
+
getAnchorTtsEmotionAndRole(anchor: import("../../..").IAnchor): [string, string | undefined];
|
|
230
263
|
isAllMarkedByAnchor(): boolean;
|
|
231
264
|
addExtraAnchors(data: import("../../..").IAnchor[]): void;
|
|
265
|
+
updateAnchor(anchor: import("../../..").IAnchor): void;
|
|
232
266
|
clearContent(): void;
|
|
267
|
+
insertContentAtCursor(_content: string | string[]): void;
|
|
233
268
|
clear(): Promise<void>;
|
|
234
269
|
renderHighlight(matchingContent: string): void;
|
|
235
270
|
unrenderHighlight(): void;
|
|
@@ -243,9 +278,11 @@ declare const EditorContainer: {
|
|
|
243
278
|
simple: boolean;
|
|
244
279
|
preTime: string;
|
|
245
280
|
textCount: number;
|
|
246
|
-
listenAnchorId:
|
|
281
|
+
listenAnchorId: string;
|
|
247
282
|
listenMode: import("../../..").ListenModeEnum;
|
|
248
283
|
contentStyle: import("vue").CSSProperties;
|
|
284
|
+
refinable: boolean;
|
|
285
|
+
editorHeight: string | number;
|
|
249
286
|
showPreTime: boolean;
|
|
250
287
|
}>;
|
|
251
288
|
__isFragment?: never;
|
|
@@ -265,8 +302,8 @@ declare const EditorContainer: {
|
|
|
265
302
|
default: undefined;
|
|
266
303
|
};
|
|
267
304
|
listenAnchorId: {
|
|
268
|
-
type:
|
|
269
|
-
default:
|
|
305
|
+
type: StringConstructor;
|
|
306
|
+
default: string;
|
|
270
307
|
};
|
|
271
308
|
listenMode: {
|
|
272
309
|
type: import("vue").PropType<import("../../..").ListenModeEnum>;
|
|
@@ -300,12 +337,24 @@ declare const EditorContainer: {
|
|
|
300
337
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
301
338
|
default: () => {};
|
|
302
339
|
};
|
|
340
|
+
refinable: {
|
|
341
|
+
type: BooleanConstructor;
|
|
342
|
+
default: boolean;
|
|
343
|
+
};
|
|
344
|
+
refineContext: {
|
|
345
|
+
type: import("vue").PropType<import("./context").RefineContext>;
|
|
346
|
+
};
|
|
347
|
+
editorHeight: {
|
|
348
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
349
|
+
default: string;
|
|
350
|
+
};
|
|
303
351
|
showPreTime: {
|
|
304
352
|
type: BooleanConstructor;
|
|
305
353
|
default: boolean;
|
|
306
354
|
};
|
|
307
355
|
}>> & Readonly<{
|
|
308
356
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
357
|
+
onClear?: (() => any) | undefined;
|
|
309
358
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
310
359
|
onAnchorListen?: ((value: import("../../..").IAnchor, text: string) => any) | undefined;
|
|
311
360
|
onAnchorRemove?: ((value: import("../../..").IAnchor) => any) | undefined;
|
|
@@ -324,11 +373,13 @@ declare const EditorContainer: {
|
|
|
324
373
|
innerIsRange: () => boolean;
|
|
325
374
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
326
375
|
innerIsSelectionContainsTag: (type: import("../../..").PluginFlag) => boolean;
|
|
327
|
-
innerGetAnchorTtsMark: (
|
|
328
|
-
innerGetAnchorTtsEmotionAndRole: (
|
|
376
|
+
innerGetAnchorTtsMark: (anchor: import("../../..").IAnchor, startFromCursor?: boolean) => string;
|
|
377
|
+
innerGetAnchorTtsEmotionAndRole: (anchor: import("../../..").IAnchor) => [string, string | undefined];
|
|
329
378
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
330
379
|
innerAddExtraAnchors: (data: import("../../..").IAnchor[]) => void;
|
|
380
|
+
innerUpdateAnchor: (newAnchor: import("../../..").IAnchor) => void;
|
|
331
381
|
innerClearContent: () => void;
|
|
382
|
+
innerInsertContentAtCursor: (_content: string | string[]) => void;
|
|
332
383
|
innerRenderHightlight: (matchingContent: string) => void;
|
|
333
384
|
innerUnrenderHightlight: () => void;
|
|
334
385
|
}, {}, {}, {
|
|
@@ -345,11 +396,13 @@ declare const EditorContainer: {
|
|
|
345
396
|
isRange(): boolean;
|
|
346
397
|
isSelectionInDifferentParas(): boolean;
|
|
347
398
|
isSelectionContainsTag(type: import("../../..").PluginFlag): boolean;
|
|
348
|
-
getAnchorTtsMark(
|
|
349
|
-
getAnchorTtsEmotionAndRole(
|
|
399
|
+
getAnchorTtsMark(anchor: import("../../..").IAnchor, startFromCursor?: boolean): string;
|
|
400
|
+
getAnchorTtsEmotionAndRole(anchor: import("../../..").IAnchor): [string, string | undefined];
|
|
350
401
|
isAllMarkedByAnchor(): boolean;
|
|
351
402
|
addExtraAnchors(data: import("../../..").IAnchor[]): void;
|
|
403
|
+
updateAnchor(anchor: import("../../..").IAnchor): void;
|
|
352
404
|
clearContent(): void;
|
|
405
|
+
insertContentAtCursor(_content: string | string[]): void;
|
|
353
406
|
clear(): Promise<void>;
|
|
354
407
|
renderHighlight(matchingContent: string): void;
|
|
355
408
|
unrenderHighlight(): void;
|
|
@@ -359,6 +412,7 @@ declare const EditorContainer: {
|
|
|
359
412
|
anchorListen: (value: import("../../..").IAnchor, text: string) => true;
|
|
360
413
|
anchorListenStop: (value: import("../../..").IAnchor) => true;
|
|
361
414
|
anchorRemove: (value: import("../../..").IAnchor) => true;
|
|
415
|
+
clear: () => true;
|
|
362
416
|
}, string, {
|
|
363
417
|
highlight: boolean;
|
|
364
418
|
class: string | unknown[];
|
|
@@ -369,9 +423,11 @@ declare const EditorContainer: {
|
|
|
369
423
|
simple: boolean;
|
|
370
424
|
preTime: string;
|
|
371
425
|
textCount: number;
|
|
372
|
-
listenAnchorId:
|
|
426
|
+
listenAnchorId: string;
|
|
373
427
|
listenMode: import("../../..").ListenModeEnum;
|
|
374
428
|
contentStyle: import("vue").CSSProperties;
|
|
429
|
+
refinable: boolean;
|
|
430
|
+
editorHeight: string | number;
|
|
375
431
|
showPreTime: boolean;
|
|
376
432
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
377
433
|
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;
|