@dwelle/excalidraw 0.4.0-7125553 → 0.4.0-787bf63

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 (136) hide show
  1. package/CHANGELOG.md +386 -2
  2. package/README.md +485 -31
  3. package/dist/excalidraw-assets/Assistant-Bold.woff2 +0 -0
  4. package/dist/excalidraw-assets/Assistant-Medium.woff2 +0 -0
  5. package/dist/excalidraw-assets/Assistant-Regular.woff2 +0 -0
  6. package/dist/excalidraw-assets/Assistant-SemiBold.woff2 +0 -0
  7. package/dist/excalidraw-assets/{vendor-cb04f63875674d708080.js → vendor-2002fe1b8862917b36c1.js} +2 -2
  8. package/dist/excalidraw-assets/{vendor-cb04f63875674d708080.js.LICENSE.txt → vendor-2002fe1b8862917b36c1.js.LICENSE.txt} +0 -0
  9. package/dist/excalidraw-assets-dev/Assistant-Bold.woff2 +0 -0
  10. package/dist/excalidraw-assets-dev/Assistant-Medium.woff2 +0 -0
  11. package/dist/excalidraw-assets-dev/Assistant-Regular.woff2 +0 -0
  12. package/dist/excalidraw-assets-dev/Assistant-SemiBold.woff2 +0 -0
  13. package/dist/excalidraw.development.js +901 -311
  14. package/dist/excalidraw.production.min.js +1 -1
  15. package/dist/excalidraw.production.min.js.LICENSE.txt +2 -0
  16. package/package.json +1 -1
  17. package/types/actions/actionAddToLibrary.d.ts +45 -33
  18. package/types/actions/actionBoundText.d.ts +17 -13
  19. package/types/actions/actionCanvas.d.ts +248 -100
  20. package/types/actions/actionClipboard.d.ts +103 -56
  21. package/types/actions/actionDeleteSelected.d.ts +54 -33
  22. package/types/actions/actionExport.d.ts +147 -110
  23. package/types/actions/actionFinalize.d.ts +30 -22
  24. package/types/actions/actionFlip.d.ts +2 -2
  25. package/types/actions/actionGroup.d.ts +2 -2
  26. package/types/actions/actionLinearEditor.d.ts +118 -0
  27. package/types/actions/actionMenu.d.ts +47 -34
  28. package/types/actions/actionNavigate.d.ts +1 -0
  29. package/types/actions/actionProperties.d.ts +197 -145
  30. package/types/actions/actionStyles.d.ts +15 -11
  31. package/types/actions/actionToggleGridMode.d.ts +17 -11
  32. package/types/actions/actionToggleLock.d.ts +15 -11
  33. package/types/actions/actionToggleStats.d.ts +16 -11
  34. package/types/actions/actionToggleViewMode.d.ts +17 -11
  35. package/types/actions/actionToggleZenMode.d.ts +17 -11
  36. package/types/actions/index.d.ts +1 -0
  37. package/types/actions/manager.d.ts +1 -0
  38. package/types/actions/shortcuts.d.ts +1 -1
  39. package/types/actions/types.d.ts +5 -2
  40. package/types/appState.d.ts +23 -21
  41. package/types/clients.d.ts +1 -1
  42. package/types/clipboard.d.ts +6 -1
  43. package/types/components/Actions.d.ts +1 -0
  44. package/types/components/ActiveConfirmDialog.d.ts +24 -0
  45. package/types/components/App.d.ts +24 -16
  46. package/types/components/Avatar.d.ts +1 -1
  47. package/types/components/Button.d.ts +15 -0
  48. package/types/components/ContextMenu.d.ts +8 -21
  49. package/types/components/DialogActionButton.d.ts +10 -0
  50. package/types/components/HandButton.d.ts +10 -0
  51. package/types/components/HelpButton.d.ts +8 -0
  52. package/types/components/HintViewer.d.ts +3 -2
  53. package/types/components/HomeButton.d.ts +5 -0
  54. package/types/components/ImageExportDialog.d.ts +3 -1
  55. package/types/components/InitializeApp.d.ts +2 -0
  56. package/types/components/JSONExportDialog.d.ts +5 -3
  57. package/types/components/LayerUI.d.ts +6 -5
  58. package/types/components/LibraryButton.d.ts +1 -0
  59. package/types/components/LibraryMenu.d.ts +14 -5
  60. package/types/components/LibraryMenuBrowseButton.d.ts +7 -0
  61. package/types/components/LibraryMenuHeaderContent.d.ts +35 -0
  62. package/types/components/LibraryMenuItems.d.ts +5 -14
  63. package/types/components/LibraryUnit.d.ts +2 -3
  64. package/types/components/LoadingMessage.d.ts +2 -0
  65. package/types/components/LockButton.d.ts +0 -1
  66. package/types/components/MobileMenu.d.ts +9 -10
  67. package/types/components/Sidebar/Sidebar.d.ts +73 -0
  68. package/types/components/Sidebar/SidebarHeader.d.ts +20 -0
  69. package/types/components/Sidebar/common.d.ts +16 -0
  70. package/types/components/ToolButton.d.ts +1 -1
  71. package/types/components/UserList.d.ts +0 -3
  72. package/types/components/dropdownMenu/DropdownMenu.d.ts +66 -0
  73. package/types/components/dropdownMenu/DropdownMenuContent.d.ts +15 -0
  74. package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -0
  75. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -0
  76. package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +6 -0
  77. package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +6 -0
  78. package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +13 -0
  79. package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -0
  80. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +9 -0
  81. package/types/components/dropdownMenu/common.d.ts +6 -0
  82. package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -0
  83. package/types/components/footer/Footer.d.ts +13 -0
  84. package/types/components/footer/FooterCenter.d.ts +8 -0
  85. package/types/components/hoc/withUpstreamOverride.d.ts +10 -0
  86. package/types/components/icons.d.ts +82 -122
  87. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +10 -0
  88. package/types/components/main-menu/DefaultItems.d.ts +47 -0
  89. package/types/components/main-menu/MainMenu.d.ts +60 -0
  90. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +58 -0
  91. package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -0
  92. package/types/components/welcome-screen/WelcomeScreen.d.ts +85 -0
  93. package/types/constants.d.ts +31 -15
  94. package/types/data/index.d.ts +1 -1
  95. package/types/data/restore.d.ts +1 -1
  96. package/types/data/types.d.ts +16 -1
  97. package/types/element/Hyperlink.d.ts +16 -12
  98. package/types/element/bounds.d.ts +3 -2
  99. package/types/element/image.d.ts +1 -1
  100. package/types/element/index.d.ts +1 -1
  101. package/types/element/linearElementEditor.d.ts +47 -15
  102. package/types/element/newElement.d.ts +16 -3
  103. package/types/element/resizeElements.d.ts +0 -1
  104. package/types/element/textElement.d.ts +30 -4
  105. package/types/element/textWysiwyg.d.ts +6 -1
  106. package/types/element/transformHandles.d.ts +3 -4
  107. package/types/element/typeChecks.d.ts +10 -1
  108. package/types/element/types.d.ts +12 -5
  109. package/types/hooks/useOutsideClick.d.ts +2 -0
  110. package/types/keys.d.ts +15 -6
  111. package/types/math.d.ts +2 -1
  112. package/types/packages/excalidraw/dist/excalidraw-assets/{vendor-cb04f63875674d708080.d.ts → vendor-2002fe1b8862917b36c1.d.ts} +0 -0
  113. package/types/packages/excalidraw/example/App.d.ts +2 -1
  114. package/types/packages/excalidraw/example/CustomFooter.d.ts +5 -0
  115. package/types/packages/excalidraw/example/MobileFooter.d.ts +5 -0
  116. package/types/packages/excalidraw/example/sidebar/{Sidebar.d.ts → ExampleSidebar.d.ts} +1 -1
  117. package/types/packages/excalidraw/index.d.ts +15 -1
  118. package/types/packages/utils.d.ts +22 -25
  119. package/types/renderer/renderElement.d.ts +4 -3
  120. package/types/renderer/renderScene.d.ts +2 -4
  121. package/types/scene/Fonts.d.ts +21 -0
  122. package/types/scene/Scene.d.ts +15 -0
  123. package/types/scene/comparisons.d.ts +2 -3
  124. package/types/scene/export.d.ts +143 -9
  125. package/types/scene/index.d.ts +1 -1
  126. package/types/scene/types.d.ts +10 -1
  127. package/types/shapes.d.ts +27 -3
  128. package/types/types.d.ts +79 -38
  129. package/types/utils.d.ts +23 -3
  130. package/types/components/ActiveFile.d.ts +0 -7
  131. package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +0 -9
  132. package/types/components/ClearCanvas.d.ts +0 -4
  133. package/types/components/CollabButton.d.ts +0 -7
  134. package/types/components/Footer.d.ts +0 -9
  135. package/types/components/HelpIcon.d.ts +0 -8
  136. package/types/components/SidebarLockButton.d.ts +0 -8
package/CHANGELOG.md CHANGED
@@ -13,17 +13,401 @@ Please add the latest change on the top under the correct section.
13
13
 
14
14
  ## Unreleased
15
15
 
16
+ ### Features
17
+
18
+ - `MainMenu`, `MainMenu.Item`, and `MainMenu.ItemLink` components now all support `onSelect(event: Event): void` callback. If you call `event.preventDefault()`, it will prevent the menu from closing when an item is selected (clicked on). [#6152](https://github.com/excalidraw/excalidraw/pull/6152)
19
+
20
+ ## 0.14.1 (2023-01-16)
21
+
22
+ ### Fixes
23
+
24
+ - remove overflow hidden from button [#6110](https://github.com/excalidraw/excalidraw/pull/6110). This fixes the collaborator count css in the [LiveCollaborationTrigger](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#LiveCollaborationTrigger) component.
25
+
26
+ ## 0.14.0 (2023-01-13)
27
+
28
+ ### Features
29
+
30
+ - Support customization for the editor [welcome screen](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#WelcomeScreen) [#6048](https://github.com/excalidraw/excalidraw/pull/6048).
31
+
32
+ - Expose component API for the Excalidraw main menu [#6034](https://github.com/excalidraw/excalidraw/pull/6034), You can read more about its usage [here](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#MainMenu)
33
+
34
+ - Support customization for the Excalidraw [main menu](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#MainMenu) [#6034](https://github.com/excalidraw/excalidraw/pull/6034).
35
+
36
+ - [Footer](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#Footer) is now rendered as child component instead of passed as a render prop [#5970](https://github.com/excalidraw/excalidraw/pull/5970).
37
+
38
+ - Any top-level children passed to the `<Excalidraw/>` component that do not belong to one of the officially supported Excalidraw children components are now rendered directly inside the Excalidraw container (previously, they weren't rendered at all) [#6096](https://github.com/excalidraw/excalidraw/pull/6096).
39
+
40
+ - Expose [LiveCollaborationTrigger](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#LiveCollaborationTrigger) component. Replaces `props.onCollabButtonClick` [#6104](https://github.com/excalidraw/excalidraw/pull/6104).
41
+
42
+ #### BREAKING CHANGES
43
+
44
+ - `props.onCollabButtonClick` is now removed. You need to render the main menu item yourself, and optionally also render the `<LiveCollaborationTrigger>` component using [renderTopRightUI](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#renderTopRightUI) prop if you want to retain the canvas button at top-right.
45
+ - The prop `renderFooter` is now removed in favor of rendering as a child component.
46
+
47
+ ### Excalidraw schema
48
+
49
+ - Merged `appState.currentItemStrokeSharpness` and `appState.currentItemLinearStrokeSharpness` into `appState.currentItemRoundness`. Renamed `changeSharpness` action to `changeRoundness`. Excalidraw element's `strokeSharpness` was changed to `roundness`. Check the PR for types and more details [#5553](https://github.com/excalidraw/excalidraw/pull/5553).
50
+
51
+ ## Excalidraw Library
52
+
53
+ **_This section lists the updates made to the excalidraw library and will not affect the integration._**
54
+
55
+ ### Features
56
+
57
+ - Generic button export [#6092](https://github.com/excalidraw/excalidraw/pull/6092)
58
+
59
+ - Scroll using PageUp and PageDown [#6038](https://github.com/excalidraw/excalidraw/pull/6038)
60
+
61
+ - Support shrinking text containers to original height when text removed [#6025](https://github.com/excalidraw/excalidraw/pull/6025)
62
+
63
+ - Move contextMenu into the component tree and control via appState [#6021](https://github.com/excalidraw/excalidraw/pull/6021)
64
+
65
+ - Allow readonly actions to be used in viewMode [#5982](https://github.com/excalidraw/excalidraw/pull/5982)
66
+
67
+ - Support labels for arrow 🔥 [#5723](https://github.com/excalidraw/excalidraw/pull/5723)
68
+
69
+ - Don't add midpoint until dragged beyond a threshold [#5927](https://github.com/excalidraw/excalidraw/pull/5927)
70
+
71
+ - Changed text copy/paste behaviour [#5786](https://github.com/excalidraw/excalidraw/pull/5786)
72
+
73
+ - Reintroduce `x` shortcut for `freedraw` [#5840](https://github.com/excalidraw/excalidraw/pull/5840)
74
+
75
+ - Tweak toolbar shortcuts & remove library shortcut [#5832](https://github.com/excalidraw/excalidraw/pull/5832)
76
+
77
+ - Clean unused images only after 24hrs (local-only) [#5839](https://github.com/excalidraw/excalidraw/pull/5839)
78
+
79
+ - Refetch errored/pending images on collab room init load [#5833](https://github.com/excalidraw/excalidraw/pull/5833)
80
+
81
+ - Stop deleting whole line when no point select in line editor [#5676](https://github.com/excalidraw/excalidraw/pull/5676)
82
+
83
+ - Editor redesign 🔥 [#5780](https://github.com/excalidraw/excalidraw/pull/5780)
84
+
85
+ ### Fixes
86
+
87
+ - Mobile tools positioning [#6107](https://github.com/excalidraw/excalidraw/pull/6107)
88
+
89
+ - Renamed folder MainMenu->main-menu and support rest props [#6103](https://github.com/excalidraw/excalidraw/pull/6103)
90
+
91
+ - Use position absolute for mobile misc tools [#6099](https://github.com/excalidraw/excalidraw/pull/6099)
92
+
93
+ - React.memo resolvers not accounting for all props [#6042](https://github.com/excalidraw/excalidraw/pull/6042)
94
+
95
+ - Image horizontal flip fix + improved tests [#5799](https://github.com/excalidraw/excalidraw/pull/5799)
96
+
97
+ - Png-exporting does not preserve angles correctly for flipped images [#6085](https://github.com/excalidraw/excalidraw/pull/6085)
98
+
99
+ - Stale appState of MainMenu defaultItems rendered from Actions [#6074](https://github.com/excalidraw/excalidraw/pull/6074)
100
+
101
+ - HelpDialog [#6072](https://github.com/excalidraw/excalidraw/pull/6072)
102
+
103
+ - Show error message on collab save failure [#6063](https://github.com/excalidraw/excalidraw/pull/6063)
104
+
105
+ - Remove ga from docker build [#6059](https://github.com/excalidraw/excalidraw/pull/6059)
106
+
107
+ - Use displayName since name gets stripped off when uglifying/minifiyng in production [#6036](https://github.com/excalidraw/excalidraw/pull/6036)
108
+
109
+ - Remove background from wysiwyg when editing arrow label [#6033](https://github.com/excalidraw/excalidraw/pull/6033)
110
+
111
+ - Use canvas measureText to calculate width in measureText [#6030](https://github.com/excalidraw/excalidraw/pull/6030)
112
+
113
+ - Restoring deleted bindings [#6029](https://github.com/excalidraw/excalidraw/pull/6029)
114
+
115
+ - ColorPicker getColor [#5949](https://github.com/excalidraw/excalidraw/pull/5949)
116
+
117
+ - Don't push whitespace to next line when exceeding max width during wrapping and make sure to use same width of text editor on DOM when measuring dimensions [#5996](https://github.com/excalidraw/excalidraw/pull/5996)
118
+
119
+ - Showing `grabbing` cursor when holding `spacebar` [#6015](https://github.com/excalidraw/excalidraw/pull/6015)
120
+
121
+ - Resize sometimes throwing on missing null-checks [#6013](https://github.com/excalidraw/excalidraw/pull/6013)
122
+
123
+ - PWA not working after CRA@5 update [#6012](https://github.com/excalidraw/excalidraw/pull/6012)
124
+
125
+ - Not properly restoring element stroke and bg colors [#6002](https://github.com/excalidraw/excalidraw/pull/6002)
126
+
127
+ - Avatar outline on safari & center [#5997](https://github.com/excalidraw/excalidraw/pull/5997)
128
+
129
+ - Chart pasting not working due to removing tab characters [#5987](https://github.com/excalidraw/excalidraw/pull/5987)
130
+
131
+ - Apply the right type of roundness when pasting styles [#5979](https://github.com/excalidraw/excalidraw/pull/5979)
132
+
133
+ - Remove editor onpaste handler [#5971](https://github.com/excalidraw/excalidraw/pull/5971)
134
+
135
+ - Remove blank space [#5950](https://github.com/excalidraw/excalidraw/pull/5950)
136
+
137
+ - Galego and Kurdî missing in languages plus two locale typos [#5954](https://github.com/excalidraw/excalidraw/pull/5954)
138
+
139
+ - `ExcalidrawArrowElement` rather than `ExcalidrawArrowEleement` [#5955](https://github.com/excalidraw/excalidraw/pull/5955)
140
+
141
+ - RenderFooter styling [#5962](https://github.com/excalidraw/excalidraw/pull/5962)
142
+
143
+ - Repair element bindings on restore [#5956](https://github.com/excalidraw/excalidraw/pull/5956)
144
+
145
+ - Don't allow whitespaces for bound text [#5939](https://github.com/excalidraw/excalidraw/pull/5939)
146
+
147
+ - Bindings do not survive history serialization [#5942](https://github.com/excalidraw/excalidraw/pull/5942)
148
+
149
+ - Dedupe boundElement ids when container duplicated with alt+drag [#5938](https://github.com/excalidraw/excalidraw/pull/5938)
150
+
151
+ - Scale font correctly when using shift [#5935](https://github.com/excalidraw/excalidraw/pull/5935)
152
+
153
+ - Always bind to container selected by user [#5880](https://github.com/excalidraw/excalidraw/pull/5880)
154
+
155
+ - Fonts not rendered on init if `loadingdone` not fired [#5923](https://github.com/excalidraw/excalidraw/pull/5923)
156
+
157
+ - Stop replacing `del` word with `Delete` [#5897](https://github.com/excalidraw/excalidraw/pull/5897)
158
+
159
+ - Remove legacy React.render() from the editor [#5893](https://github.com/excalidraw/excalidraw/pull/5893)
160
+
161
+ - Allow adding text via enter only for text containers [#5891](https://github.com/excalidraw/excalidraw/pull/5891)
162
+
163
+ - Stop font `loadingdone` loop when rendering element SVGs [#5883](https://github.com/excalidraw/excalidraw/pull/5883)
164
+
165
+ - Refresh text dimensions only after font load done [#5878](https://github.com/excalidraw/excalidraw/pull/5878)
166
+
167
+ - Correctly paste contents parsed by `JSON.parse()` as text. [#5868](https://github.com/excalidraw/excalidraw/pull/5868)
168
+
169
+ - SVG element attributes in icons.tsx [#5871](https://github.com/excalidraw/excalidraw/pull/5871)
170
+
171
+ - Merge existing text with new when pasted [#5856](https://github.com/excalidraw/excalidraw/pull/5856)
172
+
173
+ - Disable FAST_REFRESH to fix live reload [#5852](https://github.com/excalidraw/excalidraw/pull/5852)
174
+
175
+ - Paste clipboard contents into unbound text elements [#5849](https://github.com/excalidraw/excalidraw/pull/5849)
176
+
177
+ - Compute dimensions of container correctly when text pasted on container [#5845](https://github.com/excalidraw/excalidraw/pull/5845)
178
+
179
+ - Line editor points rendering below elements [#5781](https://github.com/excalidraw/excalidraw/pull/5781)
180
+
181
+ - Syncing 1-point lines to remote clients [#5677](https://github.com/excalidraw/excalidraw/pull/5677)
182
+
183
+ - Incorrectly selecting linear elements on creation while tool-locked [#5785](https://github.com/excalidraw/excalidraw/pull/5785)
184
+
185
+ - Corrected typo in toggle theme shortcut [#5813](https://github.com/excalidraw/excalidraw/pull/5813)
186
+
187
+ - Hide canvas-modifying UI in view mode [#5815](https://github.com/excalidraw/excalidraw/pull/5815)
188
+
189
+ - Fix vertical/horizntal centering icons [#5812](https://github.com/excalidraw/excalidraw/pull/5812)
190
+
191
+ - Consistent use of ZOOM_STEP [#5801](https://github.com/excalidraw/excalidraw/pull/5801)
192
+
193
+ - Multiple elements resizing regressions [#5586](https://github.com/excalidraw/excalidraw/pull/5586)
194
+
195
+ - Changelog typo [#5795](https://github.com/excalidraw/excalidraw/pull/5795)
196
+
197
+ ### Refactor
198
+
199
+ - Remove unnecessary code [#5933](https://github.com/excalidraw/excalidraw/pull/5933)
200
+
201
+ ### Build
202
+
203
+ - Move release scripts to use release branch [#5958](https://github.com/excalidraw/excalidraw/pull/5958)
204
+
205
+ - Stops ignoring .env files from docker context so env variables get set during react app build. [#5809](https://github.com/excalidraw/excalidraw/pull/5809)
206
+
207
+ ---
208
+
209
+ ## 0.13.0 (2022-10-27)
210
+
16
211
  ### Excalidraw API
17
212
 
18
213
  #### Features
19
214
 
20
- - Added support for storing [`customData`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#storing-custom-data-to-excalidraw-elements) on Excalidraw elements [#5592].
21
- - Added `exportPadding?: number;` to [exportToCanvas](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#exporttocanvas) and [exportToBlob](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#exporttoblob). The default value of the padding is 10.
215
+ - `restoreElements()` now takes an optional parameter to indicate whether we should also recalculate text element dimensions. Defaults to `true`, but since this is a potentially costly operation, you may want to disable it if you restore elements in tight loops, such as during collaboration [#5432](https://github.com/excalidraw/excalidraw/pull/5432).
216
+ - Support rendering custom sidebar using [`renderSidebar`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#renderSidebar) prop ([#5663](https://github.com/excalidraw/excalidraw/pull/5663)).
217
+ - Add [`toggleMenu`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#toggleMenu) prop to toggle specific menu open/close state ([#5663](https://github.com/excalidraw/excalidraw/pull/5663)).
218
+ - Support [theme](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#theme) to be semi-controlled [#5660](https://github.com/excalidraw/excalidraw/pull/5660).
219
+ - Added support for storing [`customData`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#storing-custom-data-on-excalidraw-elements) on Excalidraw elements [#5592].
220
+ - Added `exportPadding?: number;` to [exportToCanvas](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#exporttocanvas) and [exportToBlob](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#exporttoblob). The default value of the padding is `10`.
22
221
 
23
222
  #### Breaking Changes
24
223
 
224
+ - `props.UIOptions.canvasActions.theme` is now renamed to `props.UIOptions.canvasActions.toggleTheme` [#5660](https://github.com/excalidraw/excalidraw/pull/5660).
25
225
  - `setToastMessage` API is now renamed to `setToast` API and the function signature is also updated [#5427](https://github.com/excalidraw/excalidraw/pull/5427). You can also pass `duration` and `closable` attributes along with `message`.
26
226
 
227
+ ## Excalidraw Library
228
+
229
+ **_This section lists the updates made to the excalidraw library and will not affect the integration._**
230
+
231
+ ### Features
232
+
233
+ - Render library into `Sidebar` on mobile [#5774](https://github.com/excalidraw/excalidraw/pull/5774)
234
+
235
+ - Additional drag and drop image format support (webp, bmp, ico) [#5749](https://github.com/excalidraw/excalidraw/pull/5749)
236
+
237
+ - Enter and Exit line editor via context menu [#5719](https://github.com/excalidraw/excalidraw/pull/5719)
238
+
239
+ - Further reduce darkmode init flash [#5701](https://github.com/excalidraw/excalidraw/pull/5701)
240
+
241
+ - Support segment midpoints in line editor [#5641](https://github.com/excalidraw/excalidraw/pull/5641)
242
+
243
+ - Added exportPadding to PNG (blob) export in @excalidraw/utils [#5626](https://github.com/excalidraw/excalidraw/pull/5626)
244
+
245
+ - Introduce ExcalidrawElements and ExcalidrawAppState provider [#5463](https://github.com/excalidraw/excalidraw/pull/5463)
246
+
247
+ - Enable midpoint inside linear element editor [#5564](https://github.com/excalidraw/excalidraw/pull/5564)
248
+
249
+ - Show a mid point for linear elements [#5534](https://github.com/excalidraw/excalidraw/pull/5534)
250
+
251
+ - Lock angle when editing linear elements with shift pressed [#5527](https://github.com/excalidraw/excalidraw/pull/5527)
252
+
253
+ - Redesign linear elements 🎉 [#5501](https://github.com/excalidraw/excalidraw/pull/5501)
254
+
255
+ - Cursor alignment when creating linear elements with shift pressed [#5518](https://github.com/excalidraw/excalidraw/pull/5518)
256
+
257
+ - Shift-clamp when creating multi-point lines/arrows [#5500](https://github.com/excalidraw/excalidraw/pull/5500)
258
+
259
+ - Cursor alignment when creating generic elements [#5516](https://github.com/excalidraw/excalidraw/pull/5516)
260
+
261
+ - Make context menu scrollable [#4030](https://github.com/excalidraw/excalidraw/pull/4030)
262
+
263
+ ### Fixes
264
+
265
+ - Ungroup short cut key [#5779](https://github.com/excalidraw/excalidraw/pull/5779)
266
+
267
+ - Replaced KeyboardEvent.code with KeyboardEvent.key for all letters [#5523](https://github.com/excalidraw/excalidraw/pull/5523)
268
+
269
+ - Free draw flip not scaling correctly [#5752](https://github.com/excalidraw/excalidraw/pull/5752)
270
+
271
+ - Wait for window focus until prompting for library install [#5751](https://github.com/excalidraw/excalidraw/pull/5751)
272
+
273
+ - Update perfect freehand library to fix extra dot [#5727](https://github.com/excalidraw/excalidraw/pull/5727)
274
+
275
+ - RestoreElementWithProperties drops "parent" property [#5742](https://github.com/excalidraw/excalidraw/pull/5742)
276
+
277
+ - Horizontal text alignment for bound text when resizing [#5721](https://github.com/excalidraw/excalidraw/pull/5721)
278
+
279
+ - Set the dimensions of bound text correctly [#5710](https://github.com/excalidraw/excalidraw/pull/5710)
280
+
281
+ - Image-mirroring in export preview and in exported svg [#5700](https://github.com/excalidraw/excalidraw/pull/5700)
282
+
283
+ - Double state update incorrectly resetting state [#5704](https://github.com/excalidraw/excalidraw/pull/5704)
284
+
285
+ - Remove no longer used code related to collab room loading [#5699](https://github.com/excalidraw/excalidraw/pull/5699)
286
+
287
+ - Revert webpack deduping to fix `@next` runtime [#5695](https://github.com/excalidraw/excalidraw/pull/5695)
288
+
289
+ - Move to release notes for v0.9.0 and after [#5686](https://github.com/excalidraw/excalidraw/pull/5686)
290
+
291
+ - Zen-mode exit button not working [#5682](https://github.com/excalidraw/excalidraw/pull/5682)
292
+
293
+ - Buttons jump around on the mobile menu [#5658](https://github.com/excalidraw/excalidraw/pull/5658)
294
+
295
+ - #5622 - prevent session theme reset during collaboration [#5640](https://github.com/excalidraw/excalidraw/pull/5640)
296
+
297
+ - Library actions inside the sidebar [#5638](https://github.com/excalidraw/excalidraw/pull/5638)
298
+
299
+ - Don't render library menu twice for mobile [#5636](https://github.com/excalidraw/excalidraw/pull/5636)
300
+
301
+ - Reintroduce help dialog button [#5631](https://github.com/excalidraw/excalidraw/pull/5631)
302
+
303
+ - Add display name to components so it doesn't show as anonymous [#5616](https://github.com/excalidraw/excalidraw/pull/5616)
304
+
305
+ - Improve solveQuadratic when a = 0 [#5618](https://github.com/excalidraw/excalidraw/pull/5618)
306
+
307
+ - Add random tiny offsets to avoid linear elements from being clipped [#5615](https://github.com/excalidraw/excalidraw/pull/5615)
308
+
309
+ - Crash when adding a new point in the line editor #5602 [#5606](https://github.com/excalidraw/excalidraw/pull/5606)
310
+
311
+ - Allow box selection of points when inside editor [#5594](https://github.com/excalidraw/excalidraw/pull/5594)
312
+
313
+ - Remove unnecessary conditions in pointerup for linear elements [#5575](https://github.com/excalidraw/excalidraw/pull/5575)
314
+
315
+ - Check if hitting link in handleSelectionOnPointerDown [#5589](https://github.com/excalidraw/excalidraw/pull/5589)
316
+
317
+ - Points not being normalized on single-elem resize [#5581](https://github.com/excalidraw/excalidraw/pull/5581)
318
+
319
+ - Deselect linear element when clicked inside bounding box outside editor [#5579](https://github.com/excalidraw/excalidraw/pull/5579)
320
+
321
+ - Resize multiple elements from center [#5560](https://github.com/excalidraw/excalidraw/pull/5560)
322
+
323
+ - Call static methods via class instead of instance in linearElementEditor [#5561](https://github.com/excalidraw/excalidraw/pull/5561)
324
+
325
+ - Show bounding box for 3 or more linear point elements [#5554](https://github.com/excalidraw/excalidraw/pull/5554)
326
+
327
+ - Cleanup the condition for dragging elements [#5555](https://github.com/excalidraw/excalidraw/pull/5555)
328
+
329
+ - Shareable links being merged with current scene data [#5547](https://github.com/excalidraw/excalidraw/pull/5547)
330
+
331
+ - Scene lookup failing when looking up by id [#5542](https://github.com/excalidraw/excalidraw/pull/5542)
332
+
333
+ - Remove rounding to fix jitter when shift-editing [#5543](https://github.com/excalidraw/excalidraw/pull/5543)
334
+
335
+ - Line deselected when shift-dragging point outside editor [#5540](https://github.com/excalidraw/excalidraw/pull/5540)
336
+
337
+ - Flip linear elements after redesign [#5538](https://github.com/excalidraw/excalidraw/pull/5538)
338
+
339
+ - Disable locking aspect ratio for box-selection [#5525](https://github.com/excalidraw/excalidraw/pull/5525)
340
+
341
+ - Add `title` attribute to the modal close button [#5521](https://github.com/excalidraw/excalidraw/pull/5521)
342
+
343
+ - Context menu positioning when component has offsets [#5520](https://github.com/excalidraw/excalidraw/pull/5520)
344
+
345
+ - Resolve paths in prebuild.js script [#5498](https://github.com/excalidraw/excalidraw/pull/5498)
346
+
347
+ - Use flushSync when moving line editor since we need to read previous value after setting state [#5508](https://github.com/excalidraw/excalidraw/pull/5508)
348
+
349
+ - UseLayout effect cleanup in dev mode for charts [#5505](https://github.com/excalidraw/excalidraw/pull/5505)
350
+
351
+ - Revert browser toast for high/low zoom [#5495](https://github.com/excalidraw/excalidraw/pull/5495)
352
+
353
+ - Fixing push to DockerHub [#5468](https://github.com/excalidraw/excalidraw/pull/5468)
354
+
355
+ - Incorrectly rendering freedraw elements [#5481](https://github.com/excalidraw/excalidraw/pull/5481)
356
+
357
+ - Generate types when building example [#5480](https://github.com/excalidraw/excalidraw/pull/5480)
358
+
359
+ - Use React.FC as react-dom is not able to infer types of Modal [#5479](https://github.com/excalidraw/excalidraw/pull/5479)
360
+
361
+ - Missing translation for "Scale" to Export Dialog [#5456](https://github.com/excalidraw/excalidraw/pull/5456)
362
+
363
+ - Add display name for Excalidraw component so it doesn't show as anonymous [#5464](https://github.com/excalidraw/excalidraw/pull/5464)
364
+
365
+ - Account for safe area for floating buttons on mobile [#5420](https://github.com/excalidraw/excalidraw/pull/5420)
366
+
367
+ - Attribute warnings in comment svg example [#5465](https://github.com/excalidraw/excalidraw/pull/5465)
368
+
369
+ - Check for ctrl key when wheel event triggered to only disable zooming [#5459](https://github.com/excalidraw/excalidraw/pull/5459)
370
+
371
+ - Disable render throttling by default & during resize [#5451](https://github.com/excalidraw/excalidraw/pull/5451)
372
+
373
+ - Attach wheel event to exscalidraw container only [#5443](https://github.com/excalidraw/excalidraw/pull/5443)
374
+
375
+ - Show toast when browser zoom is not 100% [#5304](https://github.com/excalidraw/excalidraw/pull/5304)
376
+
377
+ - Prevent browser zoom inside Excalidraw [#5426](https://github.com/excalidraw/excalidraw/pull/5426)
378
+
379
+ - Typo in changelog [#5425](https://github.com/excalidraw/excalidraw/pull/5425)
380
+
381
+ ### Refactor
382
+
383
+ - Create a util to compute container dimensions for bound text container [#5708](https://github.com/excalidraw/excalidraw/pull/5708)
384
+
385
+ - Reuse common ui dialogs and message for mobile and LayerUI [#5611](https://github.com/excalidraw/excalidraw/pull/5611)
386
+
387
+ - Stats component [#5610](https://github.com/excalidraw/excalidraw/pull/5610)
388
+
389
+ - Move footer to its own component [#5609](https://github.com/excalidraw/excalidraw/pull/5609)
390
+
391
+ - Remove unused attribute hasHitElementInside from pointerDownState [#5591](https://github.com/excalidraw/excalidraw/pull/5591)
392
+
393
+ - Cleanup renderScene [#5573](https://github.com/excalidraw/excalidraw/pull/5573)
394
+
395
+ - Rename docs to dev-docs [#5487](https://github.com/excalidraw/excalidraw/pull/5487)
396
+
397
+ - Remove unnecessary if condition for linear element onKeyDown [#5486](https://github.com/excalidraw/excalidraw/pull/5486)
398
+
399
+ - Improve typing & check [#5415](https://github.com/excalidraw/excalidraw/pull/5415)
400
+
401
+ - Don't pass zenModeEnable, viewModeEnabled and toggleZenMode props to LayerUI [#5444](https://github.com/excalidraw/excalidraw/pull/5444)
402
+
403
+ ### Build
404
+
405
+ - Add missing dependencies: pica, lodash [#5656](https://github.com/excalidraw/excalidraw/pull/5656)
406
+
407
+ - Move dotenv to dev deps [#5472](https://github.com/excalidraw/excalidraw/pull/5472)
408
+
409
+ ---
410
+
27
411
  ## 0.12.0 (2022-07-07)
28
412
 
29
413
  Check out the [release notes](https://github.com/excalidraw/excalidraw/releases/tag/v0.12.0) )