@samhammer/tiptob 2.2.0

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.
@@ -0,0 +1 @@
1
+ export declare const ExtendedHighlight: import("@tiptap/core").Mark<import("@tiptap/extension-highlight").HighlightOptions, any>;
@@ -0,0 +1,2 @@
1
+ import type { Node } from "@tiptap/core";
2
+ export default function getImageExtension(imageUpload: (file: File) => Promise<string>): Node;
@@ -0,0 +1,25 @@
1
+ import { Mark } from "@tiptap/core";
2
+ declare module '@tiptap/core' {
3
+ interface Commands<ReturnType> {
4
+ knowledgeMark: {
5
+ /**
6
+ * Set a knowledge mark
7
+ * @param attributes The highlight attributes
8
+ * @example editor.commands.setHighlight({ color: 'red' })
9
+ */
10
+ setKnowledgeMark: () => ReturnType;
11
+ /**
12
+ * Toggle a knowledge mark
13
+ * @param attributes The highlight attributes
14
+ * @example editor.commands.toggleHighlight({ color: 'red' })
15
+ */
16
+ toggleKnowledgeMark: () => ReturnType;
17
+ /**
18
+ * Unset a knowledge mark
19
+ * @example editor.commands.unsetHighlight()
20
+ */
21
+ unsetKnowledgeMark: () => ReturnType;
22
+ };
23
+ }
24
+ }
25
+ export default function getKnowledgeMarkExtension(): Mark;
@@ -0,0 +1,2 @@
1
+ import { Extension } from '@tiptap/core';
2
+ export declare const SelectionDecoration: Extension<any, any>;
@@ -0,0 +1,2 @@
1
+ import { Editor, Extension } from "@tiptap/core";
2
+ export declare function getBubbleMenuExtension(getEditor: () => Editor): Extension;
@@ -0,0 +1,4 @@
1
+ import type { ActionReturn } from "svelte/action";
2
+ export declare function clickOutside(node: HTMLDivElement): ActionReturn<HTMLElement, {
3
+ 'onoutclick': (e: CustomEvent) => void;
4
+ }>;