@prismicio/editor-fields 0.4.31 → 0.4.32

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.
@@ -2,8 +2,8 @@
2
2
  import type { Editor } from "@tiptap/core";
3
3
  interface SetWebLinkModalProps {
4
4
  open: boolean;
5
- setOpen: (open: boolean) => void;
6
5
  editor: Editor;
6
+ setOpen: (open: boolean) => void;
7
7
  }
8
8
  export declare function SetWebLinkModal(props: SetWebLinkModalProps): JSX.Element;
9
9
  export {};
@@ -1,3 +1,4 @@
1
+ import type { Attrs } from "prosemirror-model";
1
2
  import type { MediaAssetOrExternalImage } from "../../../../core/MediaLibrary/hooks/mediaLibraryData";
2
3
  import { type FileLinkData, type ImageLinkData, type LinkElementData, LinkExtension } from "./LinkModel";
3
4
  export interface LinkProtocolOptions {
@@ -30,6 +31,12 @@ declare module "@tiptap/core" {
30
31
  };
31
32
  }
32
33
  }
34
+ export interface LinkMarkAttributes extends Attrs {
35
+ href: string;
36
+ id: string;
37
+ target: string;
38
+ media?: string;
39
+ }
33
40
  export declare const Link: LinkExtension;
34
41
  export declare function stringifyMediaLinkData(media: ImageLinkData | FileLinkData): string;
35
42
  export declare function parseMediaLinkData(media: string): LinkElementData;