@reinosoft-ui/core 0.1.76 → 0.1.78

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.
@@ -1,6 +1,6 @@
1
- declare var __VLS_1: {};
1
+ declare var __VLS_7: {};
2
2
  type __VLS_Slots = {} & {
3
- default?: (props: typeof __VLS_1) => any;
3
+ default?: (props: typeof __VLS_7) => any;
4
4
  };
5
5
  declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
6
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -47,6 +47,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
47
47
  appendImage: (url: string) => void;
48
48
  insertImage: (url: string) => void;
49
49
  appendVideo: (url: string) => void;
50
+ applyLink: (url: string) => void;
51
+ removeLink: () => void;
50
52
  } | null, EditorApi | {
51
53
  toggleInline: (tag: import("./useEditor").Tags) => void;
52
54
  toggleBlock: (tag: string) => void;
@@ -76,6 +78,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
76
78
  appendImage: (url: string) => void;
77
79
  insertImage: (url: string) => void;
78
80
  appendVideo: (url: string) => void;
81
+ applyLink: (url: string) => void;
82
+ removeLink: () => void;
79
83
  } | null>;
80
84
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
81
85
  "update:modelValue": (value: string) => any;
@@ -5,7 +5,9 @@ export declare const unwrapInline: (el: HTMLElement) => void;
5
5
  export declare const createBlock: (tag?: "p" | "h1" | "blockquote") => HTMLQuoteElement | HTMLHeadingElement | HTMLParagraphElement;
6
6
  export declare const placeCursorAtStart: (el: HTMLElement) => void;
7
7
  export declare const handleEnter: (e: KeyboardEvent, editor: EditorApi | null) => void;
8
+ export declare const getClosestTag: (node: Node | null, tag: string) => HTMLElement | null;
8
9
  export declare const splitBlock: (e: KeyboardEvent, editor: EditorApi | null) => void;
9
10
  export declare const insertLineBreak: () => void;
10
11
  export declare const handleBackspace: (e: KeyboardEvent) => void;
11
12
  export declare const placeCursorAtEnd: (el: HTMLElement) => void;
13
+ export declare const extractLinesFromSelection: (range: Range) => string[];
@@ -34,5 +34,7 @@ export type EditorApi = {
34
34
  appendImage: (url: string) => void;
35
35
  insertImage: (url: string) => void;
36
36
  appendVideo: (url: string) => void;
37
+ applyLink: (url: string) => void;
38
+ removeLink: () => void;
37
39
  };
38
40
  export declare const useEditor: (rootElement: HTMLElement, options?: EditorOptions) => EditorApi;