@examplary/ui 1.77.0 → 1.77.1
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,2 +1,2 @@
|
|
|
1
1
|
export declare const defaultRichTextExtensions: (import("@tiptap/core").Mark<any, any> | import("@tiptap/core").Node<any, any> | import("@tiptap/core").Mark<import("@tiptap/extension-bold").BoldOptions, any> | import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-link").LinkOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-typography").TypographyOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-highlight").HighlightOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-table").TableKitOptions, any>)[];
|
|
2
|
-
export declare const htmlRenderingRichTextExtensions: (import("@tiptap/core").Mark<any, any> | import("@tiptap/core").Node<any, any> | import("@tiptap/core").
|
|
2
|
+
export declare const htmlRenderingRichTextExtensions: (import("@tiptap/core").Mark<any, any> | import("@tiptap/core").Node<any, any> | import("@tiptap/core").Node<import("./image.js").ImageOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-bold").BoldOptions, any> | import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-link").LinkOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-typography").TypographyOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-highlight").HighlightOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-table").TableKitOptions, any> | import("@tiptap/core").Extension<import("tiptap-inline-comments").CommentOptions, any>)[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import Bold from "@tiptap/extension-bold";
|
|
2
2
|
import Document from "@tiptap/extension-document";
|
|
3
3
|
import Highlight from "@tiptap/extension-highlight";
|
|
4
|
-
import Image from "@tiptap/extension-image";
|
|
5
4
|
import Italic from "@tiptap/extension-italic";
|
|
6
5
|
import Link from "@tiptap/extension-link";
|
|
7
6
|
import { TableKit } from "@tiptap/extension-table";
|
|
@@ -10,6 +9,7 @@ import StarterKit from "@tiptap/starter-kit";
|
|
|
10
9
|
import { InlineComments } from "tiptap-inline-comments";
|
|
11
10
|
import ContentReference from "./content-reference.js";
|
|
12
11
|
import FileAttachment from "./file-attachment.js";
|
|
12
|
+
import Image from "./image.js";
|
|
13
13
|
import { Mathematics } from "./mathematics.js";
|
|
14
14
|
import PageClipping from "./page-clipping.js";
|
|
15
15
|
// Disable the markdown shortcuts (**bold**, __bold__, *italic*, _italic_):
|
|
@@ -20,6 +20,20 @@ export interface ImageOptions {
|
|
|
20
20
|
*/
|
|
21
21
|
HTMLAttributes: Record<string, any>;
|
|
22
22
|
}
|
|
23
|
+
declare module "@tiptap/core" {
|
|
24
|
+
interface Commands<ReturnType> {
|
|
25
|
+
image: {
|
|
26
|
+
setImage: (options: {
|
|
27
|
+
src: string;
|
|
28
|
+
alt?: string;
|
|
29
|
+
title?: string;
|
|
30
|
+
width?: number;
|
|
31
|
+
height?: number;
|
|
32
|
+
"data-graph"?: string;
|
|
33
|
+
}) => ReturnType;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
23
37
|
/**
|
|
24
38
|
* Matches an image to a  on input.
|
|
25
39
|
*/
|