@zsviczian/excalidraw 0.11.0-obsidian-22 → 0.11.0-obsidian-23

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.11.0-obsidian-22",
3
+ "version": "0.11.0-obsidian-23",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -8,7 +8,7 @@ export declare const actionChangeViewBackgroundColor: {
8
8
  appState: any;
9
9
  commitToHistory: boolean;
10
10
  };
11
- PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
11
+ PanelComponent: ({ elements, appState, updateData, appProps }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
12
12
  } & {
13
13
  keyTest?: undefined;
14
14
  };
@@ -4,7 +4,7 @@ import { AppState } from "../types";
4
4
  export declare const actionFinalize: {
5
5
  name: "finalize";
6
6
  trackEvent: false;
7
- perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<AppState>, _: any, { canvas, focusContainer }: import("../types").AppClassProperties) => {
7
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<AppState>, _: any, { canvas, focusContainer, props }: import("../types").AppClassProperties) => {
8
8
  elements: import("../element/types").ExcalidrawElement[] | undefined;
9
9
  appState: {
10
10
  cursorButton: "up";
@@ -5,7 +5,7 @@ export declare const actionChangeStrokeColor: {
5
5
  name: "changeStrokeColor";
6
6
  trackEvent: false;
7
7
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
8
- PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
8
+ PanelComponent: ({ elements, appState, updateData, appProps }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
9
9
  } & {
10
10
  keyTest?: undefined;
11
11
  };
@@ -13,7 +13,7 @@ export declare const actionChangeBackgroundColor: {
13
13
  name: "changeBackgroundColor";
14
14
  trackEvent: false;
15
15
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
16
- PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
16
+ PanelComponent: ({ elements, appState, updateData, appProps }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
17
17
  } & {
18
18
  keyTest?: undefined;
19
19
  };
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import "./ColorPicker.scss";
3
3
  import { ExcalidrawElement } from "../element/types";
4
- import { AppState } from "../types";
4
+ import { AppState, ExcalidrawProps } from "../types";
5
5
  export declare const getCustomColors: (elements: readonly ExcalidrawElement[], type: "elementBackground" | "elementStroke", colors: string[]) => string[];
6
- export declare const ColorPicker: ({ type, color, onChange, label, isActive, setActive, colorPalette, elements, appState, }: {
6
+ export declare const ColorPicker: ({ type, color, onChange, label, isActive, setActive, colorPalette, elements, appState, appProps, }: {
7
7
  type: "canvasBackground" | "elementBackground" | "elementStroke";
8
8
  color: string | null;
9
9
  onChange: (color: string) => void;
@@ -17,4 +17,5 @@ export declare const ColorPicker: ({ type, color, onChange, label, isActive, set
17
17
  };
18
18
  elements: readonly ExcalidrawElement[];
19
19
  appState: AppState;
20
+ appProps: ExcalidrawProps;
20
21
  }) => JSX.Element;
package/types/utils.d.ts CHANGED
@@ -5,6 +5,7 @@ import { SHAPES } from "./shapes";
5
5
  export declare const setDateTimeForTests: (dateTime: string) => void;
6
6
  export declare const getDateTime: () => string;
7
7
  export declare const capitalizeString: (str: string) => string;
8
+ export declare const cloneHTMLElementToDocument: (el: Element | EventTarget | null | undefined) => any;
8
9
  export declare const isToolIcon: (target: Element | EventTarget | null) => target is HTMLElement;
9
10
  export declare const isInputLike: (target: Element | EventTarget | null) => target is HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | HTMLBRElement | HTMLDivElement;
10
11
  export declare const isWritableElement: (target: Element | EventTarget | null) => target is HTMLInputElement | HTMLTextAreaElement | HTMLBRElement | HTMLDivElement;