@zsviczian/excalidraw 0.10.0-obsidian-40 → 0.10.0-obsidian-41
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/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AppState } from "../types";
|
|
2
|
+
import { AppState, ExcalidrawProps } from "../types";
|
|
3
3
|
import { NonDeletedExcalidrawElement } from "./types";
|
|
4
4
|
import { Bounds } from "./bounds";
|
|
5
5
|
import "./Hyperlink.scss";
|
|
6
6
|
export declare const EXTERNAL_LINK_IMG: HTMLImageElement;
|
|
7
|
-
export declare const Hyperlink: ({ element, appState, setAppState, }: {
|
|
7
|
+
export declare const Hyperlink: ({ element, appState, setAppState, onLinkOpen, }: {
|
|
8
8
|
element: NonDeletedExcalidrawElement;
|
|
9
9
|
appState: AppState;
|
|
10
10
|
setAppState: React.Component<any, AppState>["setState"];
|
|
11
|
+
onLinkOpen: ExcalidrawProps["onLinkOpen"];
|
|
11
12
|
}) => JSX.Element | null;
|
|
12
13
|
export declare const normalizeLink: (link: string) => string;
|
|
13
14
|
export declare const isLocalLink: (link: string | null) => boolean;
|
package/types/types.d.ts
CHANGED
|
@@ -204,7 +204,7 @@ export interface ExcalidrawProps {
|
|
|
204
204
|
onBeforeTextSubmit?: (textElement: ExcalidrawTextElement, textToSubmit: string, originalText: string, isDeleted: boolean) => [string, string];
|
|
205
205
|
generateIdForFile?: (file: File) => string | Promise<string>;
|
|
206
206
|
onThemeChange?: (newTheme: string) => void;
|
|
207
|
-
|
|
207
|
+
onLinkOpen?: (link: string, event: MouseEvent) => void;
|
|
208
208
|
}
|
|
209
209
|
export declare type SceneData = {
|
|
210
210
|
elements?: ImportedDataState["elements"];
|