@zsviczian/excalidraw 0.11.0-obsidian-23 → 0.11.0-obsidian-21-namedexport

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-23",
3
+ "version": "0.11.0-obsidian-21-namedexport",
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, appProps }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
11
+ PanelComponent: ({ elements, appState, updateData }: 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, props }: import("../types").AppClassProperties) => {
7
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<AppState>, _: any, { canvas, focusContainer }: 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, appProps }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
8
+ PanelComponent: ({ elements, appState, updateData }: 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, appProps }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
16
+ PanelComponent: ({ elements, appState, updateData }: 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, ExcalidrawProps } from "../types";
4
+ import { AppState } 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, appProps, }: {
6
+ export declare const ColorPicker: ({ type, color, onChange, label, isActive, setActive, colorPalette, elements, appState, }: {
7
7
  type: "canvasBackground" | "elementBackground" | "elementStroke";
8
8
  color: string | null;
9
9
  onChange: (color: string) => void;
@@ -17,5 +17,4 @@ export declare const ColorPicker: ({ type, color, onChange, label, isActive, set
17
17
  };
18
18
  elements: readonly ExcalidrawElement[];
19
19
  appState: AppState;
20
- appProps: ExcalidrawProps;
21
20
  }) => JSX.Element;
@@ -1 +1 @@
1
- export const Excalidraw: {};
1
+ export const ExcalidrawLib: {};
@@ -1,3 +1 @@
1
- export default Excalidraw;
2
1
  export * from "./index";
3
- import Excalidraw from "./index";
@@ -3,8 +3,7 @@ import "../../css/app.scss";
3
3
  import "../../css/styles.scss";
4
4
  import { ExcalidrawAPIRefValue, ExcalidrawProps } from "../../types";
5
5
  declare type PublicExcalidrawProps = Omit<ExcalidrawProps, "forwardedRef">;
6
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<PublicExcalidrawProps & React.RefAttributes<ExcalidrawAPIRefValue>>>;
7
- export default _default;
6
+ export declare const Excalidraw: React.MemoExoticComponent<React.ForwardRefExoticComponent<PublicExcalidrawProps & React.RefAttributes<ExcalidrawAPIRefValue>>>;
8
7
  export { getSceneVersion, isInvisiblySmallElement, getNonDeletedElements, } from "../../element";
9
8
  export { defaultLang, languages } from "../../i18n";
10
9
  export { restore, restoreAppState, restoreElements, restoreLibraryItems, } from "../../data/restore";
package/types/types.d.ts CHANGED
@@ -215,8 +215,6 @@ export interface ExcalidrawProps {
215
215
  }) => void;
216
216
  onPaste?: (data: ClipboardData, event: ClipboardEvent | null) => Promise<boolean> | boolean;
217
217
  onDrop?: (event: React.DragEvent<HTMLDivElement>) => Promise<boolean> | boolean;
218
- ownerDocument: Document;
219
- ownerWindow: Window;
220
218
  renderTopRightUI?: (isMobile: boolean, appState: AppState) => JSX.Element | null;
221
219
  renderFooter?: (isMobile: boolean, appState: AppState) => JSX.Element | null;
222
220
  langCode?: Language["code"];
package/types/utils.d.ts CHANGED
@@ -5,7 +5,6 @@ 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;
9
8
  export declare const isToolIcon: (target: Element | EventTarget | null) => target is HTMLElement;
10
9
  export declare const isInputLike: (target: Element | EventTarget | null) => target is HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | HTMLBRElement | HTMLDivElement;
11
10
  export declare const isWritableElement: (target: Element | EventTarget | null) => target is HTMLInputElement | HTMLTextAreaElement | HTMLBRElement | HTMLDivElement;