@linker-design-plus/tiny-peony 1.4.1 → 1.4.3
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 +6 -6
- package/dist/index.js +23 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1263 -1263
- package/dist/index.mjs.map +1 -1
- package/dist/intersection/components/editor/context.d.ts +1 -1
- package/dist/intersection/components/editor/editor.d.ts +2 -2
- package/dist/intersection/components/editor/index.d.ts +6 -6
- package/dist/intersection/hooks/use-editor.d.ts +1 -1
- package/dist/typings/actions/i-anchor.d.ts +1 -0
- package/dist/utils/dom.d.ts +7 -1
- package/package.json +1 -1
|
@@ -34,7 +34,7 @@ export interface EditorContext {
|
|
|
34
34
|
isCaret: () => boolean;
|
|
35
35
|
isRange: () => boolean;
|
|
36
36
|
isSelectionContainsTag: (type: PluginFlag) => boolean;
|
|
37
|
-
getAnchorTtsMark: (
|
|
37
|
+
getAnchorTtsMark: (anchor: IAnchor, startFromCursor?: boolean) => string;
|
|
38
38
|
getAnchorTtsEmotionAndRole: (anchor: IAnchor) => [string, string | undefined];
|
|
39
39
|
isAllMarkedByAnchor: () => boolean;
|
|
40
40
|
addExtraAnchors: (data: IAnchor[]) => void;
|
|
@@ -86,7 +86,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
86
86
|
innerIsRange: () => boolean;
|
|
87
87
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
88
88
|
innerIsSelectionContainsTag: (type: PluginFlag) => boolean;
|
|
89
|
-
innerGetAnchorTtsMark: (
|
|
89
|
+
innerGetAnchorTtsMark: (anchor: IAnchor, startFromCursor?: boolean) => string;
|
|
90
90
|
innerGetAnchorTtsEmotionAndRole: (anchor: IAnchor) => [string, string | undefined];
|
|
91
91
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
92
92
|
innerAddExtraAnchors: (data: IAnchor[]) => void;
|
|
@@ -109,7 +109,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
109
109
|
isRange(): boolean;
|
|
110
110
|
isSelectionInDifferentParas(): boolean;
|
|
111
111
|
isSelectionContainsTag(type: PluginFlag): boolean;
|
|
112
|
-
getAnchorTtsMark(
|
|
112
|
+
getAnchorTtsMark(anchor: IAnchor, startFromCursor?: boolean): string;
|
|
113
113
|
getAnchorTtsEmotionAndRole(anchor: IAnchor): [string, string | undefined];
|
|
114
114
|
isAllMarkedByAnchor(): boolean;
|
|
115
115
|
addExtraAnchors(data: IAnchor[]): void;
|
|
@@ -86,7 +86,7 @@ declare const EditorContainer: {
|
|
|
86
86
|
innerIsRange: () => boolean;
|
|
87
87
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
88
88
|
innerIsSelectionContainsTag: (type: import("../../..").PluginFlag) => boolean;
|
|
89
|
-
innerGetAnchorTtsMark: (
|
|
89
|
+
innerGetAnchorTtsMark: (anchor: import("../../..").IAnchor, startFromCursor?: boolean) => string;
|
|
90
90
|
innerGetAnchorTtsEmotionAndRole: (anchor: import("../../..").IAnchor) => [string, string | undefined];
|
|
91
91
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
92
92
|
innerAddExtraAnchors: (data: import("../../..").IAnchor[]) => void;
|
|
@@ -109,7 +109,7 @@ declare const EditorContainer: {
|
|
|
109
109
|
isRange(): boolean;
|
|
110
110
|
isSelectionInDifferentParas(): boolean;
|
|
111
111
|
isSelectionContainsTag(type: import("../../..").PluginFlag): boolean;
|
|
112
|
-
getAnchorTtsMark(
|
|
112
|
+
getAnchorTtsMark(anchor: import("../../..").IAnchor, startFromCursor?: boolean): string;
|
|
113
113
|
getAnchorTtsEmotionAndRole(anchor: import("../../..").IAnchor): [string, string | undefined];
|
|
114
114
|
isAllMarkedByAnchor(): boolean;
|
|
115
115
|
addExtraAnchors(data: import("../../..").IAnchor[]): void;
|
|
@@ -232,7 +232,7 @@ declare const EditorContainer: {
|
|
|
232
232
|
innerIsRange: () => boolean;
|
|
233
233
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
234
234
|
innerIsSelectionContainsTag: (type: import("../../..").PluginFlag) => boolean;
|
|
235
|
-
innerGetAnchorTtsMark: (
|
|
235
|
+
innerGetAnchorTtsMark: (anchor: import("../../..").IAnchor, startFromCursor?: boolean) => string;
|
|
236
236
|
innerGetAnchorTtsEmotionAndRole: (anchor: import("../../..").IAnchor) => [string, string | undefined];
|
|
237
237
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
238
238
|
innerAddExtraAnchors: (data: import("../../..").IAnchor[]) => void;
|
|
@@ -255,7 +255,7 @@ declare const EditorContainer: {
|
|
|
255
255
|
isRange(): boolean;
|
|
256
256
|
isSelectionInDifferentParas(): boolean;
|
|
257
257
|
isSelectionContainsTag(type: import("../../..").PluginFlag): boolean;
|
|
258
|
-
getAnchorTtsMark(
|
|
258
|
+
getAnchorTtsMark(anchor: import("../../..").IAnchor, startFromCursor?: boolean): string;
|
|
259
259
|
getAnchorTtsEmotionAndRole(anchor: import("../../..").IAnchor): [string, string | undefined];
|
|
260
260
|
isAllMarkedByAnchor(): boolean;
|
|
261
261
|
addExtraAnchors(data: import("../../..").IAnchor[]): void;
|
|
@@ -369,7 +369,7 @@ declare const EditorContainer: {
|
|
|
369
369
|
innerIsRange: () => boolean;
|
|
370
370
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
371
371
|
innerIsSelectionContainsTag: (type: import("../../..").PluginFlag) => boolean;
|
|
372
|
-
innerGetAnchorTtsMark: (
|
|
372
|
+
innerGetAnchorTtsMark: (anchor: import("../../..").IAnchor, startFromCursor?: boolean) => string;
|
|
373
373
|
innerGetAnchorTtsEmotionAndRole: (anchor: import("../../..").IAnchor) => [string, string | undefined];
|
|
374
374
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
375
375
|
innerAddExtraAnchors: (data: import("../../..").IAnchor[]) => void;
|
|
@@ -392,7 +392,7 @@ declare const EditorContainer: {
|
|
|
392
392
|
isRange(): boolean;
|
|
393
393
|
isSelectionInDifferentParas(): boolean;
|
|
394
394
|
isSelectionContainsTag(type: import("../../..").PluginFlag): boolean;
|
|
395
|
-
getAnchorTtsMark(
|
|
395
|
+
getAnchorTtsMark(anchor: import("../../..").IAnchor, startFromCursor?: boolean): string;
|
|
396
396
|
getAnchorTtsEmotionAndRole(anchor: import("../../..").IAnchor): [string, string | undefined];
|
|
397
397
|
isAllMarkedByAnchor(): boolean;
|
|
398
398
|
addExtraAnchors(data: import("../../..").IAnchor[]): void;
|
|
@@ -44,7 +44,7 @@ export declare const useEditor: (editor: Ref<HTMLDivElement | undefined>, props:
|
|
|
44
44
|
isRange: () => boolean;
|
|
45
45
|
isSelectionInDifferentParas: () => boolean;
|
|
46
46
|
isSelectionContainsTag: (type: PluginFlag) => boolean;
|
|
47
|
-
getAnchorTtsMark: (
|
|
47
|
+
getAnchorTtsMark: (anchor: IAnchor, startFromCursor?: boolean) => string;
|
|
48
48
|
getAnchorTtsEmotionAndRole: (anchor: IAnchor) => [string, string | undefined];
|
|
49
49
|
isAllMarkedByAnchor: () => boolean;
|
|
50
50
|
addExtraAnchors: (data: IAnchor[]) => void;
|
package/dist/utils/dom.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PluginFlag } from '../typings';
|
|
1
|
+
import { IAnchor, PluginFlag } from '../typings';
|
|
2
2
|
export declare const setAttributesAndData: (element: HTMLElement, attributes: Record<string, string | number | boolean>, dataAttributes: Record<string, string | number>, child?: string | Node) => void;
|
|
3
3
|
export declare const findParent: (element: HTMLElement, _conditions: ((element: HTMLElement) => boolean) | Array<(element: HTMLElement) => boolean>) => (HTMLElement | null)[];
|
|
4
4
|
export declare const findClosestPara: (startElm: HTMLElement) => HTMLElement | null;
|
|
@@ -47,3 +47,9 @@ export declare const positionPopupUnderSpan: (parentDomRect?: DOMRect, spanDomRe
|
|
|
47
47
|
width: number;
|
|
48
48
|
height: number;
|
|
49
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* 获取指定ID的锚点标签
|
|
52
|
+
* @param {IAnchor} anchor - 锚点信息
|
|
53
|
+
* @return {HTMLElement[]} - 锚点标签数组
|
|
54
|
+
*/
|
|
55
|
+
export declare const getAnchorTagsByUidAndId: (anchor: IAnchor) => HTMLElement[];
|