@dwelle/excalidraw 0.3.57 → 0.3.59

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/CHANGELOG.md CHANGED
@@ -18,6 +18,7 @@ Please add the latest change on the top under the correct section.
18
18
  #### Refactor
19
19
 
20
20
  - Rename `appState.elementLocked` to `appState.activeTool.locked` [#4983](https://github.com/excalidraw/excalidraw/pull/4983).
21
+ - Expose [`serializeLibraryAsJSON`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#serializeLibraryAsJSON) helper that we use when saving Excalidraw Library to a file.
21
22
 
22
23
  ##### BREAKING CHANGE
23
24
 
package/README_NEXT.md CHANGED
@@ -906,6 +906,17 @@ serializeAsJSON({
906
906
 
907
907
  Takes the scene elements and state and returns a JSON string. Deleted `elements`as well as most properties from `AppState` are removed from the resulting JSON. (see [`serializeAsJSON()`](https://github.com/excalidraw/excalidraw/blob/master/src/data/json.ts#L16) source for details).
908
908
 
909
+ #### `serializeLibraryAsJSON`
910
+
911
+ **_Signature_**
912
+
913
+ <pre>
914
+ serializeLibraryAsJSON({
915
+ libraryItems: <a href="https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L191">LibraryItems[]</a>,
916
+ </pre>
917
+
918
+ Takes the library items and returns a JSON string.
919
+
909
920
  #### `getSceneVersion`
910
921
 
911
922
  **How to use**