@zsviczian/excalidraw 0.11.0-obsidian-9 → 0.11.0-obsidian-10

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-9",
3
+ "version": "0.11.0-obsidian-10",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -5,9 +5,8 @@ declare class Library {
5
5
  private app;
6
6
  constructor(app: App);
7
7
  resetLibrary: () => Promise<void>;
8
- restoreLibraryItem: (libraryItem: LibraryItem) => LibraryItem | null;
9
8
  /** imports library (currently merges, removing duplicates) */
10
- importLibrary(blob: Blob, defaultStatus?: string): Promise<void>;
9
+ importLibrary(blob: Blob, defaultStatus?: LibraryItem["status"]): Promise<void>;
11
10
  loadLibrary: () => Promise<LibraryItems>;
12
11
  saveLibrary: (items: LibraryItems) => Promise<void>;
13
12
  }
@@ -1,3 +1,3 @@
1
1
  declare const _exports: any;
2
2
  export = _exports;
3
- export var Excalidraw: any;
3
+ export var ExcalidrawLib: any;
@@ -1,3 +1,3 @@
1
- export default Excalidraw;
1
+ export { Excalidraw };
2
2
  export * from "./index";
3
3
  import Excalidraw from "./index";
@@ -8,7 +8,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
8
8
  export default _default;
9
9
  export { getSceneVersion, isInvisiblySmallElement, getNonDeletedElements, } from "../../element";
10
10
  export { defaultLang, languages } from "../../i18n";
11
- export { restore, restoreAppState, restoreElements } from "../../data/restore";
11
+ export { restore, restoreAppState, restoreElements, restoreLibraryItems, } from "../../data/restore";
12
12
  export { exportToCanvas, exportToBlob, exportToSvg, serializeAsJSON, serializeLibraryAsJSON, loadLibraryFromBlob, loadFromBlob, getFreeDrawSvgPath, getCommonBoundingBox, //zsviczian
13
13
  getMaximumGroups, //zsviczian
14
14
  intersectElementWithLine, //zsviczian