@dwelle/excalidraw 0.3.35 → 0.3.36

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README_NEXT.md +1 -0
  3. package/dist/excalidraw-assets-dev/{image-f696fa36e3535df5e97a.js → image-8825d180ee32659f8996.js} +0 -0
  4. package/dist/excalidraw.development.js +25 -25
  5. package/dist/excalidraw.production.min.js +1 -1
  6. package/package.json +7 -7
  7. package/types/actions/actionAddToLibrary.d.ts +268 -1
  8. package/types/actions/actionAlign.d.ts +73 -6
  9. package/types/actions/actionCanvas.d.ts +673 -8
  10. package/types/actions/actionClipboard.d.ts +493 -4
  11. package/types/actions/actionDeleteSelected.d.ts +292 -1
  12. package/types/actions/actionDistribute.d.ts +27 -2
  13. package/types/actions/actionDuplicateSelection.d.ts +19 -1
  14. package/types/actions/actionExport.d.ts +849 -8
  15. package/types/actions/actionFinalize.d.ts +186 -1
  16. package/types/actions/actionFlip.d.ts +29 -2
  17. package/types/actions/actionGroup.d.ts +39 -2
  18. package/types/actions/actionMenu.d.ts +293 -4
  19. package/types/actions/actionNavigate.d.ts +11 -1
  20. package/types/actions/actionProperties.d.ts +1160 -12
  21. package/types/actions/actionSelectAll.d.ts +12 -1
  22. package/types/actions/actionStyles.d.ts +110 -2
  23. package/types/actions/actionToggleGridMode.d.ts +98 -1
  24. package/types/actions/actionToggleStats.d.ts +97 -1
  25. package/types/actions/actionToggleViewMode.d.ts +97 -1
  26. package/types/actions/actionToggleZenMode.d.ts +97 -1
  27. package/types/actions/actionZindex.d.ts +55 -4
  28. package/types/actions/register.d.ts +3 -1
  29. package/types/actions/types.d.ts +1 -1
  30. package/types/components/App.d.ts +1 -0
  31. package/types/components/Popover.d.ts +5 -1
  32. package/types/constants.d.ts +0 -3
  33. package/types/element/newElement.d.ts +1 -1
  34. package/types/element/textElement.d.ts +3 -0
  35. package/types/element/textWysiwyg.d.ts +5 -3
  36. package/types/keys.d.ts +4 -0
  37. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-8825d180ee32659f8996.d.ts +0 -0
  38. package/types/shapes.d.ts +1 -1
  39. package/types/types.d.ts +2 -0
package/CHANGELOG.md CHANGED
@@ -19,6 +19,8 @@ Please add the latest change on the top under the correct section.
19
19
 
20
20
  ### Features
21
21
 
22
+ - Support updating library using [`updateScene`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#updateScene) API [#4546](https://github.com/excalidraw/excalidraw/pull/4546).
23
+
22
24
  - Introduced primary colors to the app. The colors can be overriden. Check [readme](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#customizing-styles) on how to do so.
23
25
 
24
26
  - #### BREAKING CHANGE
package/README_NEXT.md CHANGED
@@ -509,6 +509,7 @@ You can use this function to update the scene with the sceneData. It accepts the
509
509
  | `appState` | [`ImportedDataState["appState"]`](https://github.com/excalidraw/excalidraw/blob/master/src/data/types.ts#L18) | The `appState` to be updated in the scene. |
510
510
  | `collaborators` | <pre>Map<string, <a href="https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L29">Collaborator></a></pre> | The list of collaborators to be updated in the scene. |
511
511
  | `commitToHistory` | `boolean` | Implies if the `history (undo/redo)` should be recorded. Defaults to `false`. |
512
+ | `libraryItems` | [LibraryItems](https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L258) | The `libraryItems` to be update in the scene. |
512
513
 
513
514
  ### `addFiles`
514
515