@zsviczian/excalidraw 0.10.0-obsidian-41 → 0.10.0-obsidian-42

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.10.0-obsidian-41",
3
+ "version": "0.10.0-obsidian-42",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -13,11 +13,12 @@ export declare const newTextElement: (opts: {
13
13
  verticalAlign: VerticalAlign;
14
14
  containerId?: ExcalidrawRectangleElement["id"];
15
15
  } & ElementConstructorOpts) => NonDeleted<ExcalidrawTextElement>;
16
- export declare const updateTextElement: (element: ExcalidrawTextElement, { text, isDeleted, originalText, rawText, }: {
16
+ export declare const updateTextElement: (element: ExcalidrawTextElement, { text, isDeleted, originalText, rawText, link, }: {
17
17
  text: string;
18
18
  isDeleted?: boolean | undefined;
19
19
  originalText: string;
20
20
  rawText?: string | undefined;
21
+ link?: string | undefined;
21
22
  }) => ExcalidrawTextElement;
22
23
  export declare const newFreeDrawElement: (opts: {
23
24
  type: "freedraw";
package/types/types.d.ts CHANGED
@@ -201,7 +201,7 @@ export interface ExcalidrawProps {
201
201
  onLibraryChange?: (libraryItems: LibraryItems) => void | Promise<any>;
202
202
  autoFocus?: boolean;
203
203
  onBeforeTextEdit?: (textElement: ExcalidrawTextElement) => string;
204
- onBeforeTextSubmit?: (textElement: ExcalidrawTextElement, textToSubmit: string, originalText: string, isDeleted: boolean) => [string, string];
204
+ onBeforeTextSubmit?: (textElement: ExcalidrawTextElement, textToSubmit: string, originalText: string, isDeleted: boolean) => [string, string, string];
205
205
  generateIdForFile?: (file: File) => string | Promise<string>;
206
206
  onThemeChange?: (newTheme: string) => void;
207
207
  onLinkOpen?: (link: string, event: MouseEvent) => void;