@linker-design-plus/tiny-peony 1.4.6 → 1.4.8
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/index.d.ts +9 -9
- package/dist/index.js +27 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1353 -1310
- package/dist/index.mjs.map +1 -1
- package/dist/intersection/components/editor/editor.d.ts +5 -5
- package/dist/intersection/components/editor/index.d.ts +9 -9
- package/dist/plugins/AnchorTagPlugin/plugin.d.ts +2 -0
- package/dist/plugins/HomophonesTagPlugin/homophoner.vue.d.ts +2 -2
- package/dist/plugins/PronunciationTagPlugin/pronunciationor.vue.d.ts +2 -2
- package/dist/typings/intersection/editor.d.ts +10 -1
- package/package.json +1 -1
|
@@ -20,8 +20,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
20
20
|
default: undefined;
|
|
21
21
|
};
|
|
22
22
|
listenAnchorId: {
|
|
23
|
-
type:
|
|
24
|
-
default:
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
25
|
};
|
|
26
26
|
listenMode: {
|
|
27
27
|
type: PropType<ListenModeEnum>;
|
|
@@ -143,8 +143,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
143
143
|
default: undefined;
|
|
144
144
|
};
|
|
145
145
|
listenAnchorId: {
|
|
146
|
-
type:
|
|
147
|
-
default:
|
|
146
|
+
type: StringConstructor;
|
|
147
|
+
default: string;
|
|
148
148
|
};
|
|
149
149
|
listenMode: {
|
|
150
150
|
type: PropType<ListenModeEnum>;
|
|
@@ -212,7 +212,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
212
212
|
preTime: string;
|
|
213
213
|
realTime: string;
|
|
214
214
|
textCount: number;
|
|
215
|
-
listenAnchorId:
|
|
215
|
+
listenAnchorId: string;
|
|
216
216
|
listenMode: ListenModeEnum;
|
|
217
217
|
contentStyle: CSSProperties;
|
|
218
218
|
refinable: boolean;
|
|
@@ -20,8 +20,8 @@ declare const EditorContainer: {
|
|
|
20
20
|
default: undefined;
|
|
21
21
|
};
|
|
22
22
|
listenAnchorId: {
|
|
23
|
-
type:
|
|
24
|
-
default:
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
25
|
};
|
|
26
26
|
listenMode: {
|
|
27
27
|
type: import("vue").PropType<import("../../..").ListenModeEnum>;
|
|
@@ -136,7 +136,7 @@ declare const EditorContainer: {
|
|
|
136
136
|
preTime: string;
|
|
137
137
|
realTime: string;
|
|
138
138
|
textCount: number;
|
|
139
|
-
listenAnchorId:
|
|
139
|
+
listenAnchorId: string;
|
|
140
140
|
listenMode: import("../../..").ListenModeEnum;
|
|
141
141
|
contentStyle: import("vue").CSSProperties;
|
|
142
142
|
refinable: boolean;
|
|
@@ -166,8 +166,8 @@ declare const EditorContainer: {
|
|
|
166
166
|
default: undefined;
|
|
167
167
|
};
|
|
168
168
|
listenAnchorId: {
|
|
169
|
-
type:
|
|
170
|
-
default:
|
|
169
|
+
type: StringConstructor;
|
|
170
|
+
default: string;
|
|
171
171
|
};
|
|
172
172
|
listenMode: {
|
|
173
173
|
type: import("vue").PropType<import("../../..").ListenModeEnum>;
|
|
@@ -276,7 +276,7 @@ declare const EditorContainer: {
|
|
|
276
276
|
preTime: string;
|
|
277
277
|
realTime: string;
|
|
278
278
|
textCount: number;
|
|
279
|
-
listenAnchorId:
|
|
279
|
+
listenAnchorId: string;
|
|
280
280
|
listenMode: import("../../..").ListenModeEnum;
|
|
281
281
|
contentStyle: import("vue").CSSProperties;
|
|
282
282
|
refinable: boolean;
|
|
@@ -303,8 +303,8 @@ declare const EditorContainer: {
|
|
|
303
303
|
default: undefined;
|
|
304
304
|
};
|
|
305
305
|
listenAnchorId: {
|
|
306
|
-
type:
|
|
307
|
-
default:
|
|
306
|
+
type: StringConstructor;
|
|
307
|
+
default: string;
|
|
308
308
|
};
|
|
309
309
|
listenMode: {
|
|
310
310
|
type: import("vue").PropType<import("../../..").ListenModeEnum>;
|
|
@@ -419,7 +419,7 @@ declare const EditorContainer: {
|
|
|
419
419
|
preTime: string;
|
|
420
420
|
realTime: string;
|
|
421
421
|
textCount: number;
|
|
422
|
-
listenAnchorId:
|
|
422
|
+
listenAnchorId: string;
|
|
423
423
|
listenMode: import("../../..").ListenModeEnum;
|
|
424
424
|
contentStyle: import("vue").CSSProperties;
|
|
425
425
|
refinable: boolean;
|
|
@@ -22,6 +22,8 @@ export declare class AnchorTagPlugin<T extends Record<string, any> = {
|
|
|
22
22
|
private _isIntersectOtherAnchors;
|
|
23
23
|
private _calcTopValue;
|
|
24
24
|
private _fixedAnchorSelection;
|
|
25
|
+
private _fixedAnchorOrder;
|
|
26
|
+
private _fixedAnchorHighlightContent;
|
|
25
27
|
/**
|
|
26
28
|
* MutationObserver 监听编辑器内容变化,当内容变化时重新计算 anchor 的 top 值。
|
|
27
29
|
*
|
|
@@ -4,10 +4,10 @@ type __VLS_Props = {
|
|
|
4
4
|
data: string[];
|
|
5
5
|
};
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
cancel: (e: Event) => any;
|
|
8
7
|
ok: (e: Event, text: string) => any;
|
|
8
|
+
cancel: (e: Event) => any;
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
-
onCancel?: ((e: Event) => any) | undefined;
|
|
11
10
|
onOk?: ((e: Event, text: string) => any) | undefined;
|
|
11
|
+
onCancel?: ((e: Event) => any) | undefined;
|
|
12
12
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLUListElement>;
|
|
13
13
|
export default _default;
|
|
@@ -4,10 +4,10 @@ type __VLS_Props = {
|
|
|
4
4
|
modelValue: string;
|
|
5
5
|
};
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
cancel: (e: Event) => any;
|
|
8
7
|
ok: (e: Event, text: string, oldText: string) => any;
|
|
8
|
+
cancel: (e: Event) => any;
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
-
onCancel?: ((e: Event) => any) | undefined;
|
|
11
10
|
onOk?: ((e: Event, text: string, oldText: string) => any) | undefined;
|
|
11
|
+
onCancel?: ((e: Event) => any) | undefined;
|
|
12
12
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RefineContext } from '../../intersection/components/editor/context';
|
|
1
2
|
import { ListenModeEnum } from '../shared';
|
|
2
3
|
export interface EditorComponentProps {
|
|
3
4
|
/**
|
|
@@ -19,7 +20,7 @@ export interface EditorComponentProps {
|
|
|
19
20
|
/**
|
|
20
21
|
* 试听虚拟主播ID
|
|
21
22
|
*/
|
|
22
|
-
listenAnchorId:
|
|
23
|
+
listenAnchorId: string;
|
|
23
24
|
/**
|
|
24
25
|
* 试听模式:单主播试听 | 整体试听
|
|
25
26
|
*/
|
|
@@ -36,4 +37,12 @@ export interface EditorComponentProps {
|
|
|
36
37
|
* 最大字数
|
|
37
38
|
*/
|
|
38
39
|
maxLength: number;
|
|
40
|
+
/**
|
|
41
|
+
* 是否开启调优
|
|
42
|
+
*/
|
|
43
|
+
refinable: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* 调优上下文
|
|
46
|
+
*/
|
|
47
|
+
refineContext?: RefineContext;
|
|
39
48
|
}
|