@excalidraw/excalidraw 0.14.2-cef6094 → 0.14.2-e4d8ba2

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 (41) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/excalidraw.development.js +47 -37
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/package.json +2 -2
  5. package/types/actions/actionAddToLibrary.d.ts +2 -1
  6. package/types/actions/actionBoundText.d.ts +114 -10
  7. package/types/actions/actionCanvas.d.ts +115 -9
  8. package/types/actions/actionClipboard.d.ts +3 -3
  9. package/types/actions/actionDeleteSelected.d.ts +3 -3
  10. package/types/actions/actionDuplicateSelection.d.ts +1 -1
  11. package/types/actions/actionExport.d.ts +8 -8
  12. package/types/actions/actionFinalize.d.ts +2 -2
  13. package/types/actions/actionLinearEditor.d.ts +2 -1
  14. package/types/actions/actionMenu.d.ts +3 -3
  15. package/types/actions/actionProperties.d.ts +14 -14
  16. package/types/actions/actionStyles.d.ts +1 -1
  17. package/types/actions/actionToggleGridMode.d.ts +1 -1
  18. package/types/actions/actionToggleLock.d.ts +1 -1
  19. package/types/actions/actionToggleStats.d.ts +1 -1
  20. package/types/actions/actionToggleViewMode.d.ts +1 -1
  21. package/types/actions/actionToggleZenMode.d.ts +1 -1
  22. package/types/actions/shortcuts.d.ts +1 -0
  23. package/types/actions/types.d.ts +1 -0
  24. package/types/components/App.d.ts +12 -1
  25. package/types/components/BraveMeasureTextError.d.ts +2 -0
  26. package/types/components/ButtonIconSelect.d.ts +11 -3
  27. package/types/components/ErrorDialog.d.ts +3 -2
  28. package/types/components/icons.d.ts +1 -0
  29. package/types/constants.d.ts +1 -0
  30. package/types/data/blob.d.ts +1 -0
  31. package/types/element/Hyperlink.d.ts +1 -1
  32. package/types/element/linearElementEditor.d.ts +1 -1
  33. package/types/element/mutateElement.d.ts +1 -0
  34. package/types/element/newElement.d.ts +4 -1
  35. package/types/element/textElement.d.ts +26 -6
  36. package/types/element/typeChecks.d.ts +1 -0
  37. package/types/element/types.d.ts +10 -1
  38. package/types/renderer/renderElement.d.ts +2 -2
  39. package/types/types.d.ts +3 -2
  40. package/types/utility-types.d.ts +22 -0
  41. package/types/utils.d.ts +20 -1
package/CHANGELOG.md CHANGED
@@ -15,6 +15,8 @@ Please add the latest change on the top under the correct section.
15
15
 
16
16
  ### Features
17
17
 
18
+ - [`ExcalidrawAPI.scrolToContent`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/props/ref#scrolltocontent) has new opts object allowing you to fit viewport to content, and animate the scrolling. [#6319](https://github.com/excalidraw/excalidraw/pull/6319)
19
+
18
20
  - Expose `useI18n()` hook return an object containing `t()` i18n helper and current `langCode`. You can use this in components you render as `<Excalidraw>` children to render any of our i18n locale strings. [#6224](https://github.com/excalidraw/excalidraw/pull/6224)
19
21
 
20
22
  - [`restoreElements`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/utils/restore#restoreelements) API now takes an optional parameter `opts` which currently supports the below attributes