@dwelle/excalidraw 0.4.0-e1bdbb6 → 0.4.0-e587816
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 +714 -0
- package/README.md +18 -1422
- package/dist/excalidraw-assets/{vendor-2002fe1b8862917b36c1.js → vendor-d415b28e9024dee4bb1b.js} +2 -2
- package/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.js → vendor-a14cd58fa2db417e42b2.js} +6 -6
- package/dist/excalidraw.development.js +3257 -1444
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +20 -0
- package/main.js +1 -8
- package/package.json +9 -4
- package/types/actions/actionAddToLibrary.d.ts +124 -64
- package/types/actions/actionAlign.d.ts +33 -40
- package/types/actions/actionBoundText.d.ts +182 -25
- package/types/actions/actionCanvas.d.ts +754 -220
- package/types/actions/actionClipboard.d.ts +236 -115
- package/types/actions/actionDeleteSelected.d.ts +133 -72
- package/types/actions/actionDistribute.d.ts +11 -16
- package/types/actions/actionDuplicateSelection.d.ts +4 -7
- package/types/actions/actionElementLock.d.ts +271 -0
- package/types/actions/actionExport.d.ts +440 -277
- package/types/actions/actionFinalize.d.ts +85 -51
- package/types/actions/actionFlip.d.ts +8 -11
- package/types/actions/actionFrame.d.ts +423 -0
- package/types/actions/actionGroup.d.ts +252 -19
- package/types/actions/actionHistory.d.ts +1 -1
- package/types/actions/actionLinearEditor.d.ts +44 -24
- package/types/actions/actionMenu.d.ts +132 -79
- package/types/actions/actionNavigate.d.ts +2 -3
- package/types/actions/actionProperties.d.ts +569 -334
- package/types/actions/actionSelectAll.d.ts +123 -4
- package/types/actions/actionStyles.d.ts +46 -27
- package/types/actions/actionToggleGridMode.d.ts +46 -25
- package/types/actions/{actionToggleLock.d.ts → actionToggleObjectsSnapMode.d.ts} +56 -35
- package/types/actions/actionToggleStats.d.ts +45 -25
- package/types/actions/actionToggleViewMode.d.ts +46 -25
- package/types/actions/actionToggleZenMode.d.ts +46 -25
- package/types/actions/actionZindex.d.ts +16 -24
- package/types/actions/index.d.ts +2 -1
- package/types/actions/manager.d.ts +3 -2
- package/types/actions/shortcuts.d.ts +2 -1
- package/types/actions/types.d.ts +16 -13
- package/types/appState.d.ts +27 -28
- package/types/charts.d.ts +2 -2
- package/types/clients.d.ts +5 -6
- package/types/clipboard.d.ts +9 -3
- package/types/colors.d.ts +60 -5
- package/types/components/Actions.d.ts +7 -12
- package/types/components/ActiveConfirmDialog.d.ts +4 -0
- package/types/components/App.d.ts +102 -86
- package/types/components/Avatar.d.ts +1 -2
- package/types/components/BraveMeasureTextError.d.ts +2 -0
- package/types/components/Button.d.ts +16 -0
- package/types/components/ButtonIconSelect.d.ts +11 -3
- package/types/components/Card.d.ts +6 -0
- package/types/components/ColorPicker/ColorInput.d.ts +9 -0
- package/types/components/ColorPicker/ColorPicker.d.ts +19 -0
- package/types/components/ColorPicker/CustomColorList.d.ts +8 -0
- package/types/components/ColorPicker/HotkeyLabel.d.ts +8 -0
- package/types/components/ColorPicker/Picker.d.ts +18 -0
- package/types/components/ColorPicker/PickerColorList.d.ts +10 -0
- package/types/components/ColorPicker/PickerHeading.d.ts +5 -0
- package/types/components/ColorPicker/ShadeList.d.ts +8 -0
- package/types/components/ColorPicker/TopPicks.d.ts +9 -0
- package/types/components/ColorPicker/colorPickerUtils.d.ts +21 -0
- package/types/components/ColorPicker/keyboardNavHandlers.d.ts +20 -0
- package/types/components/ContextMenu.d.ts +9 -22
- package/types/components/DefaultSidebar.d.ts +29 -0
- package/types/components/Dialog.d.ts +3 -4
- package/types/components/ErrorDialog.d.ts +3 -2
- package/types/components/ExcalidrawLogo.d.ts +15 -0
- package/types/components/EyeDropper.d.ts +28 -0
- package/types/components/FilledButton.d.ts +17 -0
- package/types/components/FixedSideContainer.d.ts +1 -1
- package/types/components/HandButton.d.ts +10 -0
- package/types/components/HelpButton.d.ts +1 -2
- package/types/components/HintViewer.d.ts +4 -5
- package/types/components/HomeButton.d.ts +1 -1
- package/types/components/ImageExportDialog.d.ts +8 -13
- package/types/components/Island.d.ts +1 -1
- package/types/components/JSONExportDialog.d.ts +7 -5
- package/types/components/LaserTool/LaserPathManager.d.ts +28 -0
- package/types/components/LaserTool/LaserPointerButton.d.ts +10 -0
- package/types/components/LaserTool/LaserTool.d.ts +7 -0
- package/types/components/LayerUI.d.ts +11 -19
- package/types/components/LibraryMenu.d.ts +13 -14
- package/types/components/LibraryMenuBrowseButton.d.ts +2 -2
- package/types/components/LibraryMenuControlButtons.d.ts +9 -0
- package/types/components/LibraryMenuHeaderContent.d.ts +10 -5
- package/types/components/LibraryMenuItems.d.ts +6 -7
- package/types/components/LibraryMenuSection.d.ts +22 -0
- package/types/components/LibraryUnit.d.ts +6 -3
- package/types/components/LoadingMessage.d.ts +0 -1
- package/types/components/LockButton.d.ts +1 -2
- package/types/components/MobileMenu.d.ts +9 -15
- package/types/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -0
- package/types/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -0
- package/types/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -0
- package/types/components/PasteChartDialog.d.ts +4 -5
- package/types/components/PenModeButton.d.ts +1 -1
- package/types/components/Popover.d.ts +1 -1
- package/types/components/ProjectName.d.ts +2 -1
- package/types/components/PublishLibrary.d.ts +2 -2
- package/types/components/RadioGroup.d.ts +12 -0
- package/types/components/Section.d.ts +1 -1
- package/types/components/Sidebar/Sidebar.d.ts +66 -63
- package/types/components/Sidebar/SidebarHeader.d.ts +6 -19
- package/types/components/Sidebar/SidebarTab.d.ts +8 -0
- package/types/components/Sidebar/SidebarTabTrigger.d.ts +9 -0
- package/types/components/Sidebar/SidebarTabTriggers.d.ts +6 -0
- package/types/components/Sidebar/SidebarTabs.d.ts +6 -0
- package/types/components/Sidebar/SidebarTrigger.d.ts +6 -0
- package/types/components/Sidebar/common.d.ts +24 -7
- package/types/components/Spinner.d.ts +2 -1
- package/types/components/Stack.d.ts +4 -3
- package/types/components/Stats.d.ts +3 -3
- package/types/components/Switch.d.ts +9 -0
- package/types/components/ToolButton.d.ts +6 -5
- package/types/components/Tooltip.d.ts +1 -1
- package/types/components/Trans.d.ts +9 -0
- package/types/components/UserList.d.ts +0 -2
- package/types/components/canvases/InteractiveCanvas.d.ts +27 -0
- package/types/components/canvases/StaticCanvas.d.ts +18 -0
- package/types/components/canvases/index.d.ts +3 -0
- package/types/components/dropdownMenu/DropdownMenu.d.ts +70 -0
- package/types/components/dropdownMenu/DropdownMenuContent.d.ts +15 -0
- package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -0
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +13 -0
- package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +6 -0
- package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +7 -0
- package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +14 -0
- package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -0
- package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +10 -0
- package/types/components/dropdownMenu/common.d.ts +6 -0
- package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -0
- package/types/components/footer/Footer.d.ts +12 -0
- package/types/components/footer/FooterCenter.d.ts +8 -0
- package/types/components/hoc/withInternalFallback.d.ts +4 -0
- package/types/components/icons.d.ts +17 -2
- package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +9 -0
- package/types/components/main-menu/DefaultItems.d.ts +47 -0
- package/types/components/main-menu/MainMenu.d.ts +64 -0
- package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +57 -0
- package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -0
- package/types/components/welcome-screen/WelcomeScreen.d.ts +84 -0
- package/types/constants.d.ts +105 -18
- package/types/context/tunnels.d.ts +19 -0
- package/types/context/ui-appState.d.ts +4 -0
- package/types/cursor.d.ts +5 -0
- package/types/data/blob.d.ts +5 -3
- package/types/data/encode.d.ts +1 -1
- package/types/data/filesystem.d.ts +2 -1
- package/types/data/index.d.ts +1 -1
- package/types/data/library.d.ts +3 -45
- package/types/data/restore.d.ts +10 -4
- package/types/data/transform.d.ts +73 -0
- package/types/data/types.d.ts +3 -5
- package/types/data/url.d.ts +7 -0
- package/types/element/Hyperlink.d.ts +57 -36
- package/types/element/binding.d.ts +4 -3
- package/types/element/bounds.d.ts +41 -10
- package/types/element/collision.d.ts +7 -7
- package/types/element/dragElements.d.ts +12 -2
- package/types/element/embeddable.d.ts +153 -0
- package/types/element/image.d.ts +11 -1
- package/types/element/index.d.ts +3 -2
- package/types/element/linearElementEditor.d.ts +77 -30
- package/types/element/mutateElement.d.ts +3 -2
- package/types/element/newElement.d.ts +48 -15
- package/types/element/resizeElements.d.ts +3 -3
- package/types/element/resizeTest.d.ts +2 -1
- package/types/element/showSelectedShapeActions.d.ts +2 -2
- package/types/element/sizeHelpers.d.ts +8 -1
- package/types/element/sortElements.d.ts +2 -0
- package/types/element/textElement.d.ts +57 -9
- package/types/element/textWysiwyg.d.ts +7 -2
- package/types/element/transformHandles.d.ts +15 -8
- package/types/element/typeChecks.d.ts +14 -2
- package/types/element/types.d.ts +66 -35
- package/types/emitter.d.ts +1 -2
- package/types/errors.d.ts +1 -1
- package/types/frame.d.ts +46 -0
- package/types/ga.d.ts +5 -5
- package/types/groups.d.ts +15 -11
- package/types/history.d.ts +3 -3
- package/types/hooks/useCreatePortalContainer.d.ts +4 -0
- package/types/hooks/useLibraryItemSvg.d.ts +11 -0
- package/types/hooks/useOutsideClick.d.ts +19 -2
- package/types/hooks/useScrollPosition.d.ts +1 -0
- package/types/hooks/useStable.d.ts +1 -0
- package/types/hooks/useTransition.d.ts +2 -0
- package/types/i18n.d.ts +11 -2
- package/types/jotai.d.ts +20 -108
- package/types/keys.d.ts +7 -4
- package/types/math.d.ts +7 -1
- package/types/packages/bbox.d.ts +11 -0
- package/types/packages/excalidraw/example/App.d.ts +7 -1
- package/types/packages/excalidraw/example/CustomFooter.d.ts +5 -0
- package/types/packages/excalidraw/example/MobileFooter.d.ts +5 -0
- package/types/packages/excalidraw/example/initialData.d.ts +182 -64
- package/types/packages/excalidraw/index.d.ts +22 -4
- package/types/packages/excalidraw/main.d.ts +3 -1
- package/types/packages/excalidraw/webpack.dev.config.d.ts +5 -2
- package/types/packages/excalidraw/webpack.prod.config.d.ts +3 -0
- package/types/packages/utils.d.ts +30 -24
- package/types/packages/withinBounds.d.ts +19 -0
- package/types/renderer/renderElement.d.ts +13 -22
- package/types/renderer/renderScene.d.ts +19 -29
- package/types/renderer/renderSnaps.d.ts +2 -0
- package/types/renderer/roundRect.d.ts +1 -1
- package/types/scene/Fonts.d.ts +21 -0
- package/types/scene/Renderer.d.ts +25 -0
- package/types/scene/Scene.d.ts +42 -5
- package/types/scene/Shape.d.ts +12 -0
- package/types/scene/ShapeCache.d.ts +20 -0
- package/types/scene/comparisons.d.ts +2 -4
- package/types/scene/export.d.ts +183 -10
- package/types/scene/index.d.ts +1 -1
- package/types/scene/scroll.d.ts +1 -1
- package/types/scene/scrollbars.d.ts +2 -6
- package/types/scene/selection.d.ts +27 -6
- package/types/scene/types.d.ts +70 -26
- package/types/snapping.d.ts +108 -0
- package/types/types.d.ts +227 -91
- package/types/utility-types.d.ts +24 -0
- package/types/utils.d.ts +75 -14
- package/types/zindex.d.ts +4 -4
- package/types/components/ActiveFile.d.ts +0 -7
- package/types/components/ClearCanvas.d.ts +0 -4
- package/types/components/CollabButton.d.ts +0 -6
- package/types/components/ColorPicker.d.ts +0 -14
- package/types/components/Footer.d.ts +0 -10
- package/types/components/LibraryButton.d.ts +0 -8
- package/types/components/MenuItem.d.ts +0 -11
- package/types/components/MenuUtils.d.ts +0 -1
- package/types/components/SingleLibraryItem.d.ts +0 -10
- package/types/components/WelcomeScreen.d.ts +0 -10
- package/types/components/WelcomeScreenDecor.d.ts +0 -6
- package/types/components/hoc/withUpstreamOverride.d.ts +0 -10
- /package/dist/excalidraw-assets/{vendor-2002fe1b8862917b36c1.js.LICENSE.txt → vendor-d415b28e9024dee4bb1b.js.LICENSE.txt} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/{vendor-2002fe1b8862917b36c1.d.ts → vendor-d415b28e9024dee4bb1b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.d.ts → vendor-a14cd58fa2db417e42b2.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,720 @@ The change should be grouped under one of the below section and must contain PR
|
|
|
11
11
|
Please add the latest change on the top under the correct section.
|
|
12
12
|
-->
|
|
13
13
|
|
|
14
|
+
## Unreleased
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
- Export `elementsOverlappingBBox`, `isElementInsideBBox`, `elementPartiallyOverlapsWithOrContainsBBox` helpers for filtering/checking if elements within bounds. [#6727](https://github.com/excalidraw/excalidraw/pull/6727)
|
|
19
|
+
- Regenerate ids by default when using transform api and also update bindings by 0.5px to avoid possible overlapping [#7195](https://github.com/excalidraw/excalidraw/pull/7195)
|
|
20
|
+
- Add `selected` prop for `MainMenu.Item` and `MainMenu.ItemCustom` components to indicate active state. [#7078](https://github.com/excalidraw/excalidraw/pull/7078)
|
|
21
|
+
|
|
22
|
+
## 0.16.1 (2023-09-21)
|
|
23
|
+
|
|
24
|
+
## Excalidraw Library
|
|
25
|
+
|
|
26
|
+
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
27
|
+
|
|
28
|
+
### Fixes
|
|
29
|
+
|
|
30
|
+
- More eye-droper fixes [#7019](https://github.com/excalidraw/excalidraw/pull/7019)
|
|
31
|
+
|
|
32
|
+
### Refactor
|
|
33
|
+
|
|
34
|
+
- Move excalidraw-app outside src [#6987](https://github.com/excalidraw/excalidraw/pull/6987)
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 0.16.0 (2023-09-19)
|
|
39
|
+
|
|
40
|
+
- Support creating containers, linear elements, text containers, labelled arrows and arrow bindings programatically [#6546](https://github.com/excalidraw/excalidraw/pull/6546)
|
|
41
|
+
- Introducing Web-Embeds (alias iframe element)[#6691](https://github.com/excalidraw/excalidraw/pull/6691)
|
|
42
|
+
- Added [`props.validateEmbeddable`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/props#validateEmbeddable) to customize embeddable src url validation. [#6691](https://github.com/excalidraw/excalidraw/pull/6691)
|
|
43
|
+
- Add support for `opts.fitToViewport` and `opts.viewportZoomFactor` in the [`ExcalidrawAPI.scrollToContent`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/props/ref#scrolltocontent) API. [#6581](https://github.com/excalidraw/excalidraw/pull/6581).
|
|
44
|
+
- Properly sanitize element `link` urls. [#6728](https://github.com/excalidraw/excalidraw/pull/6728).
|
|
45
|
+
- Sidebar component now supports tabs — for more detailed description of new behavior and breaking changes, see the linked PR. [#6213](https://github.com/excalidraw/excalidraw/pull/6213)
|
|
46
|
+
- Exposed `DefaultSidebar` component to allow modifying the default sidebar, such as adding custom tabs to it. [#6213](https://github.com/excalidraw/excalidraw/pull/6213)
|
|
47
|
+
|
|
48
|
+
#### BREAKING CHANGES
|
|
49
|
+
|
|
50
|
+
- `props.renderSidebar` is removed in favor of rendering as `children`.
|
|
51
|
+
- `appState.isSidebarDocked` replaced with `appState.defaultSidebarDockedPreference` with slightly different semantics, and relating only to the default sidebar. You need to handle `docked` state for your custom sidebars yourself.
|
|
52
|
+
- Sidebar `props.dockable` is removed. To indicate dockability, supply `props.onDock()` alongside setting `props.docked`.
|
|
53
|
+
- `Sidebar.Header` is no longer rendered by default. You need to render it yourself.
|
|
54
|
+
- `props.onClose` replaced with `props.onStateChange`.
|
|
55
|
+
- `restore()`/`restoreAppState()` now retains `appState.openSidebar` regardless of docked state.
|
|
56
|
+
|
|
57
|
+
## Excalidraw Library
|
|
58
|
+
|
|
59
|
+
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
60
|
+
|
|
61
|
+
### Features
|
|
62
|
+
|
|
63
|
+
- allow `avif`, `jfif`, `webp`, `bmp`, `ico` image types [#6500](https://github.com/excalidraw/excalidraw/pull/6500)
|
|
64
|
+
- Zen-mode/go-to-plus button style tweaks [#7006](https://github.com/excalidraw/excalidraw/pull/7006)
|
|
65
|
+
|
|
66
|
+
- Holding down CMD/CTRL will disable snap to grid when grid is active [#6983](https://github.com/excalidraw/excalidraw/pull/6983)
|
|
67
|
+
|
|
68
|
+
- Update logo [#6979](https://github.com/excalidraw/excalidraw/pull/6979)
|
|
69
|
+
|
|
70
|
+
- Export `changeProperty()` and `getFormValue()`. [#6957](https://github.com/excalidraw/excalidraw/pull/6957)
|
|
71
|
+
|
|
72
|
+
- Partition main canvas vertically [#6759](https://github.com/excalidraw/excalidraw/pull/6759)
|
|
73
|
+
|
|
74
|
+
- Support creating containers, linear elements, text containers, labelled arrows and arrow bindings programatically [#6546](https://github.com/excalidraw/excalidraw/pull/6546)
|
|
75
|
+
|
|
76
|
+
- Add support for simplePDF in Web-Embeds [#6810](https://github.com/excalidraw/excalidraw/pull/6810)
|
|
77
|
+
|
|
78
|
+
- Add support for val.town embeds [#6821](https://github.com/excalidraw/excalidraw/pull/6821)
|
|
79
|
+
|
|
80
|
+
- Render bold lines in grid [#6779](https://github.com/excalidraw/excalidraw/pull/6779)
|
|
81
|
+
|
|
82
|
+
- Adds support for stackblitz.com embeds [#6813](https://github.com/excalidraw/excalidraw/pull/6813)
|
|
83
|
+
|
|
84
|
+
- Cache most of element selection [#6747](https://github.com/excalidraw/excalidraw/pull/6747)
|
|
85
|
+
|
|
86
|
+
- Support customizing what parts of frames are rendered [#6752](https://github.com/excalidraw/excalidraw/pull/6752)
|
|
87
|
+
|
|
88
|
+
- Make `appState.selectedElementIds` more stable [#6745](https://github.com/excalidraw/excalidraw/pull/6745)
|
|
89
|
+
|
|
90
|
+
- Overwrite confirmation dialogs [#6658](https://github.com/excalidraw/excalidraw/pull/6658)
|
|
91
|
+
|
|
92
|
+
- Simple analitycs [#6683](https://github.com/excalidraw/excalidraw/pull/6683)
|
|
93
|
+
|
|
94
|
+
- Introduce frames [#6123](https://github.com/excalidraw/excalidraw/pull/6123)
|
|
95
|
+
|
|
96
|
+
- Add canvas-roundrect-polyfill package [#6675](https://github.com/excalidraw/excalidraw/pull/6675)
|
|
97
|
+
|
|
98
|
+
- Polyfill `CanvasRenderingContext2D.roundRect` [#6673](https://github.com/excalidraw/excalidraw/pull/6673)
|
|
99
|
+
|
|
100
|
+
- Disable collab feature when running in iframe [#6646](https://github.com/excalidraw/excalidraw/pull/6646)
|
|
101
|
+
|
|
102
|
+
- Assign random user name when not set [#6663](https://github.com/excalidraw/excalidraw/pull/6663)
|
|
103
|
+
|
|
104
|
+
- Redesigned collab cursors [#6659](https://github.com/excalidraw/excalidraw/pull/6659)
|
|
105
|
+
|
|
106
|
+
- Eye dropper [#6615](https://github.com/excalidraw/excalidraw/pull/6615)
|
|
107
|
+
|
|
108
|
+
- Redesign of Live Collaboration dialog [#6635](https://github.com/excalidraw/excalidraw/pull/6635)
|
|
109
|
+
|
|
110
|
+
- Recover scrolled position after Library re-opening [#6624](https://github.com/excalidraw/excalidraw/pull/6624)
|
|
111
|
+
|
|
112
|
+
- Clearing library cache [#6621](https://github.com/excalidraw/excalidraw/pull/6621)
|
|
113
|
+
|
|
114
|
+
- Update design of ImageExportDialog [#6614](https://github.com/excalidraw/excalidraw/pull/6614)
|
|
115
|
+
|
|
116
|
+
- Add flipping for multiple elements [#5578](https://github.com/excalidraw/excalidraw/pull/5578)
|
|
117
|
+
|
|
118
|
+
- Color picker redesign [#6216](https://github.com/excalidraw/excalidraw/pull/6216)
|
|
119
|
+
|
|
120
|
+
- Add "unlock all elements" to canvas contextMenu [#5894](https://github.com/excalidraw/excalidraw/pull/5894)
|
|
121
|
+
|
|
122
|
+
- Library sidebar design tweaks [#6582](https://github.com/excalidraw/excalidraw/pull/6582)
|
|
123
|
+
|
|
124
|
+
- Add Trans component for interpolating JSX in translations [#6534](https://github.com/excalidraw/excalidraw/pull/6534)
|
|
125
|
+
|
|
126
|
+
- Testing simple analytics and fathom analytics for better privacy of the users [#6529](https://github.com/excalidraw/excalidraw/pull/6529)
|
|
127
|
+
|
|
128
|
+
- Retain `seed` on shift-paste [#6509](https://github.com/excalidraw/excalidraw/pull/6509)
|
|
129
|
+
|
|
130
|
+
- Allow `avif`, `jfif`, `webp`, `bmp`, `ico` image types (#6500
|
|
131
|
+
|
|
132
|
+
### Fixes
|
|
133
|
+
|
|
134
|
+
- Improperly disabling UI pointer-events on canvas interaction [#7005](https://github.com/excalidraw/excalidraw/pull/7005)
|
|
135
|
+
|
|
136
|
+
- Several eyeDropper fixes [#7002](https://github.com/excalidraw/excalidraw/pull/7002)
|
|
137
|
+
|
|
138
|
+
- IsBindableElement to affirm frames [#6900](https://github.com/excalidraw/excalidraw/pull/6900)
|
|
139
|
+
|
|
140
|
+
- Use `device.isMobile` for sidebar trigger label breakpoint [#6994](https://github.com/excalidraw/excalidraw/pull/6994)
|
|
141
|
+
|
|
142
|
+
- Export to plus url [#6980](https://github.com/excalidraw/excalidraw/pull/6980)
|
|
143
|
+
|
|
144
|
+
- Z-index inconsistencies during addition / deletion in frames [#6914](https://github.com/excalidraw/excalidraw/pull/6914)
|
|
145
|
+
|
|
146
|
+
- Update size-limit so react is not installed as dependency [#6964](https://github.com/excalidraw/excalidraw/pull/6964)
|
|
147
|
+
|
|
148
|
+
- Stale labeled arrow bounds cache after editing the label [#6893](https://github.com/excalidraw/excalidraw/pull/6893)
|
|
149
|
+
|
|
150
|
+
- Canvas flickering due to resetting canvas on skipped frames [#6960](https://github.com/excalidraw/excalidraw/pull/6960)
|
|
151
|
+
|
|
152
|
+
- Grid jittery after partition PR [#6935](https://github.com/excalidraw/excalidraw/pull/6935)
|
|
153
|
+
|
|
154
|
+
- Regression in indexing when adding elements to frame [#6904](https://github.com/excalidraw/excalidraw/pull/6904)
|
|
155
|
+
|
|
156
|
+
- Stabilize `selectedElementIds` when box selecting [#6912](https://github.com/excalidraw/excalidraw/pull/6912)
|
|
157
|
+
|
|
158
|
+
- Resetting deleted elements on duplication [#6906](https://github.com/excalidraw/excalidraw/pull/6906)
|
|
159
|
+
|
|
160
|
+
- Make canvas compos memoize appState on props they declare [#6897](https://github.com/excalidraw/excalidraw/pull/6897)
|
|
161
|
+
|
|
162
|
+
- Scope `--color-selection` retrieval to given instance [#6886](https://github.com/excalidraw/excalidraw/pull/6886)
|
|
163
|
+
|
|
164
|
+
- Webpack config exclude statement to system agnostic [#6857](https://github.com/excalidraw/excalidraw/pull/6857)
|
|
165
|
+
|
|
166
|
+
- Remove `embeddable` from generic elements [#6853](https://github.com/excalidraw/excalidraw/pull/6853)
|
|
167
|
+
|
|
168
|
+
- Resizing arrow labels [#6789](https://github.com/excalidraw/excalidraw/pull/6789)
|
|
169
|
+
|
|
170
|
+
- Eye-dropper not working with app offset correctly on non-1 dPR [#6835](https://github.com/excalidraw/excalidraw/pull/6835)
|
|
171
|
+
|
|
172
|
+
- Add self destroying service-worker.js to migrate everyone from CRA to Vite [#6833](https://github.com/excalidraw/excalidraw/pull/6833)
|
|
173
|
+
|
|
174
|
+
- Forgotten REACT_APP env variables [#6834](https://github.com/excalidraw/excalidraw/pull/6834)
|
|
175
|
+
|
|
176
|
+
- Refresh sw when browser refreshed [#6824](https://github.com/excalidraw/excalidraw/pull/6824)
|
|
177
|
+
|
|
178
|
+
- Adding to selection via shift box-select [#6815](https://github.com/excalidraw/excalidraw/pull/6815)
|
|
179
|
+
|
|
180
|
+
- Prevent binding focus NaN value [#6803](https://github.com/excalidraw/excalidraw/pull/6803)
|
|
181
|
+
|
|
182
|
+
- Use pull request in semantic workflow for better security [#6799](https://github.com/excalidraw/excalidraw/pull/6799)
|
|
183
|
+
|
|
184
|
+
- Don't show `canvasBackground` label when `UIOptions.canvasActions.changeViewBackgroundColor` is false [#6781](https://github.com/excalidraw/excalidraw/pull/6781)
|
|
185
|
+
|
|
186
|
+
- Use subdirectory for @excalidraw/excalidraw size limit [#6787](https://github.com/excalidraw/excalidraw/pull/6787)
|
|
187
|
+
|
|
188
|
+
- Use actual dock state to not close docked library on insert [#6766](https://github.com/excalidraw/excalidraw/pull/6766)
|
|
189
|
+
|
|
190
|
+
- UI disappears when pressing the eyedropper shortcut on mobile [#6725](https://github.com/excalidraw/excalidraw/pull/6725)
|
|
191
|
+
|
|
192
|
+
- Elements in non-existing frame getting removed [#6708](https://github.com/excalidraw/excalidraw/pull/6708)
|
|
193
|
+
|
|
194
|
+
- Scrollbars renders but disable [#6706](https://github.com/excalidraw/excalidraw/pull/6706)
|
|
195
|
+
|
|
196
|
+
- Typo in chart.ts [#6696](https://github.com/excalidraw/excalidraw/pull/6696)
|
|
197
|
+
|
|
198
|
+
- Do not bind text to container using text tool when it has text already [#6694](https://github.com/excalidraw/excalidraw/pull/6694)
|
|
199
|
+
|
|
200
|
+
- Don't allow binding text to images [#6693](https://github.com/excalidraw/excalidraw/pull/6693)
|
|
201
|
+
|
|
202
|
+
- Updated link for documentation page under help section [#6654](https://github.com/excalidraw/excalidraw/pull/6654)
|
|
203
|
+
|
|
204
|
+
- Collab username style fixes [#6668](https://github.com/excalidraw/excalidraw/pull/6668)
|
|
205
|
+
|
|
206
|
+
- Bound arrows not updated when rotating multiple elements [#6662](https://github.com/excalidraw/excalidraw/pull/6662)
|
|
207
|
+
|
|
208
|
+
- Delete setCursor when resize [#6660](https://github.com/excalidraw/excalidraw/pull/6660)
|
|
209
|
+
|
|
210
|
+
- Creating text while color picker open [#6651](https://github.com/excalidraw/excalidraw/pull/6651)
|
|
211
|
+
|
|
212
|
+
- Cleanup textWysiwyg and getAdjustedDimensions [#6520](https://github.com/excalidraw/excalidraw/pull/6520)
|
|
213
|
+
|
|
214
|
+
- Eye dropper not accounting for offsets [#6640](https://github.com/excalidraw/excalidraw/pull/6640)
|
|
215
|
+
|
|
216
|
+
- Color picker input closing problem [#6599](https://github.com/excalidraw/excalidraw/pull/6599)
|
|
217
|
+
|
|
218
|
+
- Export dialog shortcut toggles console on firefox [#6620](https://github.com/excalidraw/excalidraw/pull/6620)
|
|
219
|
+
|
|
220
|
+
- Add react v17 `useTransition` polyfill [#6618](https://github.com/excalidraw/excalidraw/pull/6618)
|
|
221
|
+
|
|
222
|
+
- Library dropdown visibility issue for mobile [#6613](https://github.com/excalidraw/excalidraw/pull/6613)
|
|
223
|
+
|
|
224
|
+
- `withInternalFallback` leaking state in multi-instance scenarios [#6602](https://github.com/excalidraw/excalidraw/pull/6602)
|
|
225
|
+
|
|
226
|
+
- Language list containing duplicate `en` lang [#6583](https://github.com/excalidraw/excalidraw/pull/6583)
|
|
227
|
+
|
|
228
|
+
- Garbled text displayed on avatars [#6575](https://github.com/excalidraw/excalidraw/pull/6575)
|
|
229
|
+
|
|
230
|
+
- Assign the original text to text editor only during init [#6580](https://github.com/excalidraw/excalidraw/pull/6580)
|
|
231
|
+
|
|
232
|
+
- I18n: Apply Trans component to publish library dialogue [#6564](https://github.com/excalidraw/excalidraw/pull/6564)
|
|
233
|
+
|
|
234
|
+
- Fix brave error i18n string and remove unused [#6561](https://github.com/excalidraw/excalidraw/pull/6561)
|
|
235
|
+
|
|
236
|
+
- Revert add version tags to Docker build [#6540](https://github.com/excalidraw/excalidraw/pull/6540)
|
|
237
|
+
|
|
238
|
+
- Don't refresh dimensions for text containers on font load [#6523](https://github.com/excalidraw/excalidraw/pull/6523)
|
|
239
|
+
|
|
240
|
+
- Cleanup getMaxContainerHeight and getMaxContainerWidth [#6519](https://github.com/excalidraw/excalidraw/pull/6519)
|
|
241
|
+
|
|
242
|
+
- Cleanup redrawTextBoundingBox [#6518](https://github.com/excalidraw/excalidraw/pull/6518)
|
|
243
|
+
|
|
244
|
+
- Text jumps when editing on Android Chrome [#6503](https://github.com/excalidraw/excalidraw/pull/6503)
|
|
245
|
+
|
|
246
|
+
### Styles
|
|
247
|
+
|
|
248
|
+
- Removes extra spaces [#6558](https://github.com/excalidraw/excalidraw/pull/6558)
|
|
249
|
+
|
|
250
|
+
- Fix font family inconsistencies [#6501](https://github.com/excalidraw/excalidraw/pull/6501)
|
|
251
|
+
|
|
252
|
+
### Refactor
|
|
253
|
+
|
|
254
|
+
- Factor out shape generation from `renderElement.ts` pt 2 [#6878](https://github.com/excalidraw/excalidraw/pull/6878)
|
|
255
|
+
|
|
256
|
+
- Add typeScript support to enforce valid translation keys [#6776](https://github.com/excalidraw/excalidraw/pull/6776)
|
|
257
|
+
|
|
258
|
+
- Simplify `ImageExportDialog` [#6578](https://github.com/excalidraw/excalidraw/pull/6578)
|
|
259
|
+
|
|
260
|
+
### Performance
|
|
261
|
+
|
|
262
|
+
- Limiting the suggested binding to fix performance issue [#6877](https://github.com/excalidraw/excalidraw/pull/6877)
|
|
263
|
+
|
|
264
|
+
- Memoize rendering of library [#6622](https://github.com/excalidraw/excalidraw/pull/6622)
|
|
265
|
+
|
|
266
|
+
- Improve rendering performance for Library [#6587](https://github.com/excalidraw/excalidraw/pull/6587)
|
|
267
|
+
|
|
268
|
+
- Use `UIAppState` where possible to reduce UI rerenders [#6560](https://github.com/excalidraw/excalidraw/pull/6560)
|
|
269
|
+
|
|
270
|
+
### Build
|
|
271
|
+
|
|
272
|
+
- Increase limit for bundle by 1kb [#6880](https://github.com/excalidraw/excalidraw/pull/6880)
|
|
273
|
+
|
|
274
|
+
- Update to node 18 in docker [#6822](https://github.com/excalidraw/excalidraw/pull/6822)
|
|
275
|
+
|
|
276
|
+
- Migrate to Vite 🚀 [#6818](https://github.com/excalidraw/excalidraw/pull/6818)
|
|
277
|
+
|
|
278
|
+
- Migrate to Vite 🚀 [#6713](https://github.com/excalidraw/excalidraw/pull/6713)
|
|
279
|
+
|
|
280
|
+
- Increase limit to 290 kB for prod bundle [#6809](https://github.com/excalidraw/excalidraw/pull/6809)
|
|
281
|
+
|
|
282
|
+
- Add version tags to Docker build [#6508](https://github.com/excalidraw/excalidraw/pull/6508)
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## 0.15.2 (2023-04-20)
|
|
287
|
+
|
|
288
|
+
### Docs
|
|
289
|
+
|
|
290
|
+
- Fix docs link in readme [#6486](https://github.com/excalidraw/excalidraw/pull/6486)
|
|
291
|
+
|
|
292
|
+
## Excalidraw Library
|
|
293
|
+
|
|
294
|
+
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
295
|
+
|
|
296
|
+
### Fixes
|
|
297
|
+
|
|
298
|
+
- Rotate the text element when binding to a rotated container [#6477](https://github.com/excalidraw/excalidraw/pull/6477)
|
|
299
|
+
|
|
300
|
+
- Support breaking words containing hyphen - [#6014](https://github.com/excalidraw/excalidraw/pull/6014)
|
|
301
|
+
|
|
302
|
+
- Incorrect background fill button active state [#6491](https://github.com/excalidraw/excalidraw/pull/6491)
|
|
303
|
+
|
|
304
|
+
---
|
|
305
|
+
|
|
306
|
+
## 0.15.1 (2023-04-18)
|
|
307
|
+
|
|
308
|
+
### Docs
|
|
309
|
+
|
|
310
|
+
- Add the readme back to the package which was mistakenly removed [#6484](https://github.com/excalidraw/excalidraw/pull/6484)
|
|
311
|
+
|
|
312
|
+
## Excalidraw Library
|
|
313
|
+
|
|
314
|
+
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
## 0.15.0 (2023-04-18)
|
|
319
|
+
|
|
320
|
+
### Features
|
|
321
|
+
|
|
322
|
+
- [`ExcalidrawAPI.scrollToContent`](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)
|
|
323
|
+
|
|
324
|
+
- 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)
|
|
325
|
+
|
|
326
|
+
- [`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
|
|
327
|
+
|
|
328
|
+
```js
|
|
329
|
+
{ refreshDimensions?: boolean, repairBindings?: boolean }
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
The same `opts` param has been added to [`restore`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/utils/restore#restore) API as well.
|
|
333
|
+
|
|
334
|
+
For more details refer to the [docs](https://docs.excalidraw.com)
|
|
335
|
+
|
|
336
|
+
#### BREAKING CHANGE
|
|
337
|
+
|
|
338
|
+
- The optional parameter `refreshDimensions` in [`restoreElements`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/utils/restore#restoreelements) has been removed and can be enabled via `opts`
|
|
339
|
+
|
|
340
|
+
### Fixes
|
|
341
|
+
|
|
342
|
+
- Exporting labelled arrows via export utils [#6443](https://github.com/excalidraw/excalidraw/pull/6443)
|
|
343
|
+
|
|
344
|
+
## Excalidraw Library
|
|
345
|
+
|
|
346
|
+
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
347
|
+
|
|
348
|
+
### Features
|
|
349
|
+
|
|
350
|
+
- Constrain export dialog preview size [#6475](https://github.com/excalidraw/excalidraw/pull/6475)
|
|
351
|
+
|
|
352
|
+
- Zigzag fill easter egg [#6439](https://github.com/excalidraw/excalidraw/pull/6439)
|
|
353
|
+
|
|
354
|
+
- Add container to multiple text elements [#6428](https://github.com/excalidraw/excalidraw/pull/6428)
|
|
355
|
+
|
|
356
|
+
- Starting migration from GA to Matomo for better privacy [#6398](https://github.com/excalidraw/excalidraw/pull/6398)
|
|
357
|
+
|
|
358
|
+
- Add line height attribute to text element [#6360](https://github.com/excalidraw/excalidraw/pull/6360)
|
|
359
|
+
|
|
360
|
+
- Add thai lang support [#6314](https://github.com/excalidraw/excalidraw/pull/6314)
|
|
361
|
+
|
|
362
|
+
- Create bound container from text [#6301](https://github.com/excalidraw/excalidraw/pull/6301)
|
|
363
|
+
|
|
364
|
+
- Improve text measurements in bound containers [#6187](https://github.com/excalidraw/excalidraw/pull/6187)
|
|
365
|
+
|
|
366
|
+
- Bind text to container if double clicked on filled shape or stroke [#6250](https://github.com/excalidraw/excalidraw/pull/6250)
|
|
367
|
+
|
|
368
|
+
- Make repair and refreshDimensions configurable in restoreElements [#6238](https://github.com/excalidraw/excalidraw/pull/6238)
|
|
369
|
+
|
|
370
|
+
- Show error message when not connected to internet while collabo… [#6165](https://github.com/excalidraw/excalidraw/pull/6165)
|
|
371
|
+
|
|
372
|
+
- Shortcut for clearCanvas confirmDialog [#6114](https://github.com/excalidraw/excalidraw/pull/6114)
|
|
373
|
+
|
|
374
|
+
- Disable canvas smoothing (antialiasing) for right-angled elements [#6186](https://github.com/excalidraw/excalidraw/pull/6186)Co-authored-by: Ignacio Cuadra <67276174+ignacio-cuadra@users.noreply.github.com>
|
|
375
|
+
|
|
376
|
+
### Fixes
|
|
377
|
+
|
|
378
|
+
- Center align text when wrapped in container via context menu [#6480](https://github.com/excalidraw/excalidraw/pull/6480)
|
|
379
|
+
|
|
380
|
+
- Restore original container height when unbinding text which was binded via context menu [#6444](https://github.com/excalidraw/excalidraw/pull/6444)
|
|
381
|
+
|
|
382
|
+
- Mark more props as optional for element [#6448](https://github.com/excalidraw/excalidraw/pull/6448)
|
|
383
|
+
|
|
384
|
+
- Improperly cache-busting on canvas scale instead of zoom [#6473](https://github.com/excalidraw/excalidraw/pull/6473)
|
|
385
|
+
|
|
386
|
+
- Incorrectly duplicating items on paste/library insert [#6467](https://github.com/excalidraw/excalidraw/pull/6467)
|
|
387
|
+
|
|
388
|
+
- Library ids cross-contamination on multiple insert [#6466](https://github.com/excalidraw/excalidraw/pull/6466)
|
|
389
|
+
|
|
390
|
+
- Color picker keyboard handling not working [#6464](https://github.com/excalidraw/excalidraw/pull/6464)
|
|
391
|
+
|
|
392
|
+
- Abort freedraw line if second touch is detected [#6440](https://github.com/excalidraw/excalidraw/pull/6440)
|
|
393
|
+
|
|
394
|
+
- Utils leaking Scene state [#6461](https://github.com/excalidraw/excalidraw/pull/6461)
|
|
395
|
+
|
|
396
|
+
- Split "Edit selected shape" shortcut [#6457](https://github.com/excalidraw/excalidraw/pull/6457)
|
|
397
|
+
|
|
398
|
+
- Center align text when bind to container via context menu [#6451](https://github.com/excalidraw/excalidraw/pull/6451)
|
|
399
|
+
|
|
400
|
+
- Update coords when text unbinded from its container [#6445](https://github.com/excalidraw/excalidraw/pull/6445)
|
|
401
|
+
|
|
402
|
+
- Autoredirect to plus in prod only [#6446](https://github.com/excalidraw/excalidraw/pull/6446)
|
|
403
|
+
|
|
404
|
+
- Fixing popover overflow on small screen [#6433](https://github.com/excalidraw/excalidraw/pull/6433)
|
|
405
|
+
|
|
406
|
+
- Introduce baseline to fix the layout shift when switching to text editor [#6397](https://github.com/excalidraw/excalidraw/pull/6397)
|
|
407
|
+
|
|
408
|
+
- Don't refresh dimensions for deleted text elements [#6438](https://github.com/excalidraw/excalidraw/pull/6438)
|
|
409
|
+
|
|
410
|
+
- Element vanishes when zoomed in [#6417](https://github.com/excalidraw/excalidraw/pull/6417)
|
|
411
|
+
|
|
412
|
+
- Don't jump text to end when out of viewport in safari [#6416](https://github.com/excalidraw/excalidraw/pull/6416)
|
|
413
|
+
|
|
414
|
+
- GetDefaultLineHeight should return default font family line height for unknown font [#6399](https://github.com/excalidraw/excalidraw/pull/6399)
|
|
415
|
+
|
|
416
|
+
- Revert use `ideographic` textBaseline to improve layout shift when editing text" [#6400](https://github.com/excalidraw/excalidraw/pull/6400)
|
|
417
|
+
|
|
418
|
+
- Call stack size exceeded when paste large text [#6373](https://github.com/excalidraw/excalidraw/pull/6373) (#6396)
|
|
419
|
+
|
|
420
|
+
- Use `ideographic` textBaseline to improve layout shift when editing text [#6384](https://github.com/excalidraw/excalidraw/pull/6384)
|
|
421
|
+
|
|
422
|
+
- Chrome crashing when embedding scene on chrome arm [#6383](https://github.com/excalidraw/excalidraw/pull/6383)
|
|
423
|
+
|
|
424
|
+
- Division by zero in findFocusPointForEllipse leads to infinite loop in wrapText freezing Excalidraw [#6377](https://github.com/excalidraw/excalidraw/pull/6377)
|
|
425
|
+
|
|
426
|
+
- Containerizing text incorrectly updates arrow bindings [#6369](https://github.com/excalidraw/excalidraw/pull/6369)
|
|
427
|
+
|
|
428
|
+
- Ensure export preview is centered [#6337](https://github.com/excalidraw/excalidraw/pull/6337)
|
|
429
|
+
|
|
430
|
+
- Hide text align for labelled arrows [#6339](https://github.com/excalidraw/excalidraw/pull/6339)
|
|
431
|
+
|
|
432
|
+
- Refresh dimensions when elements loaded from shareable link and blob [#6333](https://github.com/excalidraw/excalidraw/pull/6333)
|
|
433
|
+
|
|
434
|
+
- Show error message when measureText API breaks in brave [#6336](https://github.com/excalidraw/excalidraw/pull/6336)
|
|
435
|
+
|
|
436
|
+
- Add an offset of 0.5px for text editor in containers [#6328](https://github.com/excalidraw/excalidraw/pull/6328)
|
|
437
|
+
|
|
438
|
+
- Move utility types out of `.d.ts` file to fix exported declaration files [#6315](https://github.com/excalidraw/excalidraw/pull/6315)
|
|
439
|
+
|
|
440
|
+
- More jotai scopes missing [#6313](https://github.com/excalidraw/excalidraw/pull/6313)
|
|
441
|
+
|
|
442
|
+
- Provide HelpButton title prop [#6209](https://github.com/excalidraw/excalidraw/pull/6209)
|
|
443
|
+
|
|
444
|
+
- Respect text align when wrapping in a container [#6310](https://github.com/excalidraw/excalidraw/pull/6310)
|
|
445
|
+
|
|
446
|
+
- Compute bounding box correctly for text element when multiple element resizing [#6307](https://github.com/excalidraw/excalidraw/pull/6307)
|
|
447
|
+
|
|
448
|
+
- Use jotai scope for editor-specific atoms [#6308](https://github.com/excalidraw/excalidraw/pull/6308)
|
|
449
|
+
|
|
450
|
+
- Consider arrow for bound text element [#6297](https://github.com/excalidraw/excalidraw/pull/6297)
|
|
451
|
+
|
|
452
|
+
- Text never goes beyond max width for unbound text elements [#6288](https://github.com/excalidraw/excalidraw/pull/6288)
|
|
453
|
+
|
|
454
|
+
- Svg text baseline [#6285](https://github.com/excalidraw/excalidraw/pull/6273)
|
|
455
|
+
|
|
456
|
+
- Compute container height from bound text correctly [#6273](https://github.com/excalidraw/excalidraw/pull/6273)
|
|
457
|
+
|
|
458
|
+
- Fit mobile toolbar and make scrollable [#6270](https://github.com/excalidraw/excalidraw/pull/6270)
|
|
459
|
+
|
|
460
|
+
- Indenting via `tab` clashing with IME compositor [#6258](https://github.com/excalidraw/excalidraw/pull/6258)
|
|
461
|
+
|
|
462
|
+
- Improve text wrapping inside rhombus and more fixes [#6265](https://github.com/excalidraw/excalidraw/pull/6265)
|
|
463
|
+
|
|
464
|
+
- Improve text wrapping in ellipse and alignment [#6172](https://github.com/excalidraw/excalidraw/pull/6172)
|
|
465
|
+
|
|
466
|
+
- Don't allow blank space in collab name [#6211](https://github.com/excalidraw/excalidraw/pull/6211)
|
|
467
|
+
|
|
468
|
+
- Docker build architecture:linux/amd64 error occur on linux/arm64 instance [#6197](https://github.com/excalidraw/excalidraw/pull/6197)
|
|
469
|
+
|
|
470
|
+
- Sort bound text elements to fix text duplication z-index error [#5130](https://github.com/excalidraw/excalidraw/pull/5130)
|
|
471
|
+
|
|
472
|
+
- Hide welcome screen on mobile once user interacts [#6185](https://github.com/excalidraw/excalidraw/pull/6185)
|
|
473
|
+
|
|
474
|
+
- Edit link in docs [#6182](https://github.com/excalidraw/excalidraw/pull/6182)
|
|
475
|
+
|
|
476
|
+
### Refactor
|
|
477
|
+
|
|
478
|
+
- Inline `SingleLibraryItem` into `PublishLibrary` [#6462](https://github.com/excalidraw/excalidraw/pull/6462)
|
|
479
|
+
|
|
480
|
+
- Make the example React app reusable without duplication [#6188](https://github.com/excalidraw/excalidraw/pull/6188)
|
|
481
|
+
|
|
482
|
+
### Performance
|
|
483
|
+
|
|
484
|
+
- Break early if the line width <= max width of the container [#6347](https://github.com/excalidraw/excalidraw/pull/6347)
|
|
485
|
+
|
|
486
|
+
### Build
|
|
487
|
+
|
|
488
|
+
- Move TS and types to devDependencies [#6346](https://github.com/excalidraw/excalidraw/pull/6346)
|
|
489
|
+
|
|
490
|
+
---
|
|
491
|
+
|
|
492
|
+
## 0.14.2 (2023-02-01)
|
|
493
|
+
|
|
494
|
+
### Features
|
|
495
|
+
|
|
496
|
+
- Welcome screen no longer renders by default, and you need to render it yourself. `UIOptions.welcomeScreen` option is now deprecated. [#6117](https://github.com/excalidraw/excalidraw/pull/6117)
|
|
497
|
+
- `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)
|
|
498
|
+
|
|
499
|
+
### Fixes
|
|
500
|
+
|
|
501
|
+
- declare css variable for font in excalidraw so its available in host [#6160](https://github.com/excalidraw/excalidraw/pull/6160)
|
|
502
|
+
|
|
503
|
+
## Excalidraw Library
|
|
504
|
+
|
|
505
|
+
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
506
|
+
|
|
507
|
+
### Features
|
|
508
|
+
|
|
509
|
+
- Add hand/panning tool [#6141](https://github.com/excalidraw/excalidraw/pull/6141)
|
|
510
|
+
|
|
511
|
+
- Show copy-as-png export button on firefox and show steps how to enable it [#6125](https://github.com/excalidraw/excalidraw/pull/6125)
|
|
512
|
+
|
|
513
|
+
### Fixes
|
|
514
|
+
|
|
515
|
+
- Horizontal padding when aligning bound text containers [#6180](https://github.com/excalidraw/excalidraw/pull/6180)
|
|
516
|
+
|
|
517
|
+
- Make tunnels work in multi-instance scenarios [#6178](https://github.com/excalidraw/excalidraw/pull/6178)
|
|
518
|
+
|
|
519
|
+
- Add 1px width to the container to calculate more accurately [#6174](https://github.com/excalidraw/excalidraw/pull/6174)
|
|
520
|
+
|
|
521
|
+
- Quick typo fix [#6167](https://github.com/excalidraw/excalidraw/pull/6167)
|
|
522
|
+
|
|
523
|
+
- Set the width correctly using measureText in editor [#6162](https://github.com/excalidraw/excalidraw/pull/6162)
|
|
524
|
+
|
|
525
|
+
- :bug: broken emojis when wrap text [#6153](https://github.com/excalidraw/excalidraw/pull/6153)
|
|
526
|
+
|
|
527
|
+
- Button background and svg sizes [#6155](https://github.com/excalidraw/excalidraw/pull/6155)
|
|
528
|
+
|
|
529
|
+
### Styles
|
|
530
|
+
|
|
531
|
+
- Change in ExportButton style [#6147](https://github.com/excalidraw/excalidraw/pull/6147) (#6148)
|
|
532
|
+
|
|
533
|
+
### Build
|
|
534
|
+
|
|
535
|
+
- Temporarily disable pre-commit [#6132](https://github.com/excalidraw/excalidraw/pull/6132)
|
|
536
|
+
|
|
537
|
+
---
|
|
538
|
+
|
|
539
|
+
## 0.14.1 (2023-01-16)
|
|
540
|
+
|
|
541
|
+
### Fixes
|
|
542
|
+
|
|
543
|
+
- 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.
|
|
544
|
+
|
|
545
|
+
## 0.14.0 (2023-01-13)
|
|
546
|
+
|
|
547
|
+
### Features
|
|
548
|
+
|
|
549
|
+
- 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).
|
|
550
|
+
|
|
551
|
+
- 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)
|
|
552
|
+
|
|
553
|
+
- 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).
|
|
554
|
+
|
|
555
|
+
- [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).
|
|
556
|
+
|
|
557
|
+
- 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).
|
|
558
|
+
|
|
559
|
+
- 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).
|
|
560
|
+
|
|
561
|
+
#### BREAKING CHANGES
|
|
562
|
+
|
|
563
|
+
- `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.
|
|
564
|
+
- The prop `renderFooter` is now removed in favor of rendering as a child component.
|
|
565
|
+
|
|
566
|
+
### Excalidraw schema
|
|
567
|
+
|
|
568
|
+
- 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).
|
|
569
|
+
|
|
570
|
+
## Excalidraw Library
|
|
571
|
+
|
|
572
|
+
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
573
|
+
|
|
574
|
+
### Features
|
|
575
|
+
|
|
576
|
+
- Generic button export [#6092](https://github.com/excalidraw/excalidraw/pull/6092)
|
|
577
|
+
|
|
578
|
+
- Scroll using PageUp and PageDown [#6038](https://github.com/excalidraw/excalidraw/pull/6038)
|
|
579
|
+
|
|
580
|
+
- Support shrinking text containers to original height when text removed [#6025](https://github.com/excalidraw/excalidraw/pull/6025)
|
|
581
|
+
|
|
582
|
+
- Move contextMenu into the component tree and control via appState [#6021](https://github.com/excalidraw/excalidraw/pull/6021)
|
|
583
|
+
|
|
584
|
+
- Allow readonly actions to be used in viewMode [#5982](https://github.com/excalidraw/excalidraw/pull/5982)
|
|
585
|
+
|
|
586
|
+
- Support labels for arrow 🔥 [#5723](https://github.com/excalidraw/excalidraw/pull/5723)
|
|
587
|
+
|
|
588
|
+
- Don't add midpoint until dragged beyond a threshold [#5927](https://github.com/excalidraw/excalidraw/pull/5927)
|
|
589
|
+
|
|
590
|
+
- Changed text copy/paste behaviour [#5786](https://github.com/excalidraw/excalidraw/pull/5786)
|
|
591
|
+
|
|
592
|
+
- Reintroduce `x` shortcut for `freedraw` [#5840](https://github.com/excalidraw/excalidraw/pull/5840)
|
|
593
|
+
|
|
594
|
+
- Tweak toolbar shortcuts & remove library shortcut [#5832](https://github.com/excalidraw/excalidraw/pull/5832)
|
|
595
|
+
|
|
596
|
+
- Clean unused images only after 24hrs (local-only) [#5839](https://github.com/excalidraw/excalidraw/pull/5839)
|
|
597
|
+
|
|
598
|
+
- Refetch errored/pending images on collab room init load [#5833](https://github.com/excalidraw/excalidraw/pull/5833)
|
|
599
|
+
|
|
600
|
+
- Stop deleting whole line when no point select in line editor [#5676](https://github.com/excalidraw/excalidraw/pull/5676)
|
|
601
|
+
|
|
602
|
+
- Editor redesign 🔥 [#5780](https://github.com/excalidraw/excalidraw/pull/5780)
|
|
603
|
+
|
|
604
|
+
### Fixes
|
|
605
|
+
|
|
606
|
+
- Mobile tools positioning [#6107](https://github.com/excalidraw/excalidraw/pull/6107)
|
|
607
|
+
|
|
608
|
+
- Renamed folder MainMenu->main-menu and support rest props [#6103](https://github.com/excalidraw/excalidraw/pull/6103)
|
|
609
|
+
|
|
610
|
+
- Use position absolute for mobile misc tools [#6099](https://github.com/excalidraw/excalidraw/pull/6099)
|
|
611
|
+
|
|
612
|
+
- React.memo resolvers not accounting for all props [#6042](https://github.com/excalidraw/excalidraw/pull/6042)
|
|
613
|
+
|
|
614
|
+
- Image horizontal flip fix + improved tests [#5799](https://github.com/excalidraw/excalidraw/pull/5799)
|
|
615
|
+
|
|
616
|
+
- Png-exporting does not preserve angles correctly for flipped images [#6085](https://github.com/excalidraw/excalidraw/pull/6085)
|
|
617
|
+
|
|
618
|
+
- Stale appState of MainMenu defaultItems rendered from Actions [#6074](https://github.com/excalidraw/excalidraw/pull/6074)
|
|
619
|
+
|
|
620
|
+
- HelpDialog [#6072](https://github.com/excalidraw/excalidraw/pull/6072)
|
|
621
|
+
|
|
622
|
+
- Show error message on collab save failure [#6063](https://github.com/excalidraw/excalidraw/pull/6063)
|
|
623
|
+
|
|
624
|
+
- Remove ga from docker build [#6059](https://github.com/excalidraw/excalidraw/pull/6059)
|
|
625
|
+
|
|
626
|
+
- Use displayName since name gets stripped off when uglifying/minifiyng in production [#6036](https://github.com/excalidraw/excalidraw/pull/6036)
|
|
627
|
+
|
|
628
|
+
- Remove background from wysiwyg when editing arrow label [#6033](https://github.com/excalidraw/excalidraw/pull/6033)
|
|
629
|
+
|
|
630
|
+
- Use canvas measureText to calculate width in measureText [#6030](https://github.com/excalidraw/excalidraw/pull/6030)
|
|
631
|
+
|
|
632
|
+
- Restoring deleted bindings [#6029](https://github.com/excalidraw/excalidraw/pull/6029)
|
|
633
|
+
|
|
634
|
+
- ColorPicker getColor [#5949](https://github.com/excalidraw/excalidraw/pull/5949)
|
|
635
|
+
|
|
636
|
+
- 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)
|
|
637
|
+
|
|
638
|
+
- Showing `grabbing` cursor when holding `spacebar` [#6015](https://github.com/excalidraw/excalidraw/pull/6015)
|
|
639
|
+
|
|
640
|
+
- Resize sometimes throwing on missing null-checks [#6013](https://github.com/excalidraw/excalidraw/pull/6013)
|
|
641
|
+
|
|
642
|
+
- PWA not working after CRA@5 update [#6012](https://github.com/excalidraw/excalidraw/pull/6012)
|
|
643
|
+
|
|
644
|
+
- Not properly restoring element stroke and bg colors [#6002](https://github.com/excalidraw/excalidraw/pull/6002)
|
|
645
|
+
|
|
646
|
+
- Avatar outline on safari & center [#5997](https://github.com/excalidraw/excalidraw/pull/5997)
|
|
647
|
+
|
|
648
|
+
- Chart pasting not working due to removing tab characters [#5987](https://github.com/excalidraw/excalidraw/pull/5987)
|
|
649
|
+
|
|
650
|
+
- Apply the right type of roundness when pasting styles [#5979](https://github.com/excalidraw/excalidraw/pull/5979)
|
|
651
|
+
|
|
652
|
+
- Remove editor onpaste handler [#5971](https://github.com/excalidraw/excalidraw/pull/5971)
|
|
653
|
+
|
|
654
|
+
- Remove blank space [#5950](https://github.com/excalidraw/excalidraw/pull/5950)
|
|
655
|
+
|
|
656
|
+
- Galego and Kurdî missing in languages plus two locale typos [#5954](https://github.com/excalidraw/excalidraw/pull/5954)
|
|
657
|
+
|
|
658
|
+
- `ExcalidrawArrowElement` rather than `ExcalidrawArrowEleement` [#5955](https://github.com/excalidraw/excalidraw/pull/5955)
|
|
659
|
+
|
|
660
|
+
- RenderFooter styling [#5962](https://github.com/excalidraw/excalidraw/pull/5962)
|
|
661
|
+
|
|
662
|
+
- Repair element bindings on restore [#5956](https://github.com/excalidraw/excalidraw/pull/5956)
|
|
663
|
+
|
|
664
|
+
- Don't allow whitespaces for bound text [#5939](https://github.com/excalidraw/excalidraw/pull/5939)
|
|
665
|
+
|
|
666
|
+
- Bindings do not survive history serialization [#5942](https://github.com/excalidraw/excalidraw/pull/5942)
|
|
667
|
+
|
|
668
|
+
- Dedupe boundElement ids when container duplicated with alt+drag [#5938](https://github.com/excalidraw/excalidraw/pull/5938)
|
|
669
|
+
|
|
670
|
+
- Scale font correctly when using shift [#5935](https://github.com/excalidraw/excalidraw/pull/5935)
|
|
671
|
+
|
|
672
|
+
- Always bind to container selected by user [#5880](https://github.com/excalidraw/excalidraw/pull/5880)
|
|
673
|
+
|
|
674
|
+
- Fonts not rendered on init if `loadingdone` not fired [#5923](https://github.com/excalidraw/excalidraw/pull/5923)
|
|
675
|
+
|
|
676
|
+
- Stop replacing `del` word with `Delete` [#5897](https://github.com/excalidraw/excalidraw/pull/5897)
|
|
677
|
+
|
|
678
|
+
- Remove legacy React.render() from the editor [#5893](https://github.com/excalidraw/excalidraw/pull/5893)
|
|
679
|
+
|
|
680
|
+
- Allow adding text via enter only for text containers [#5891](https://github.com/excalidraw/excalidraw/pull/5891)
|
|
681
|
+
|
|
682
|
+
- Stop font `loadingdone` loop when rendering element SVGs [#5883](https://github.com/excalidraw/excalidraw/pull/5883)
|
|
683
|
+
|
|
684
|
+
- Refresh text dimensions only after font load done [#5878](https://github.com/excalidraw/excalidraw/pull/5878)
|
|
685
|
+
|
|
686
|
+
- Correctly paste contents parsed by `JSON.parse()` as text. [#5868](https://github.com/excalidraw/excalidraw/pull/5868)
|
|
687
|
+
|
|
688
|
+
- SVG element attributes in icons.tsx [#5871](https://github.com/excalidraw/excalidraw/pull/5871)
|
|
689
|
+
|
|
690
|
+
- Merge existing text with new when pasted [#5856](https://github.com/excalidraw/excalidraw/pull/5856)
|
|
691
|
+
|
|
692
|
+
- Disable FAST_REFRESH to fix live reload [#5852](https://github.com/excalidraw/excalidraw/pull/5852)
|
|
693
|
+
|
|
694
|
+
- Paste clipboard contents into unbound text elements [#5849](https://github.com/excalidraw/excalidraw/pull/5849)
|
|
695
|
+
|
|
696
|
+
- Compute dimensions of container correctly when text pasted on container [#5845](https://github.com/excalidraw/excalidraw/pull/5845)
|
|
697
|
+
|
|
698
|
+
- Line editor points rendering below elements [#5781](https://github.com/excalidraw/excalidraw/pull/5781)
|
|
699
|
+
|
|
700
|
+
- Syncing 1-point lines to remote clients [#5677](https://github.com/excalidraw/excalidraw/pull/5677)
|
|
701
|
+
|
|
702
|
+
- Incorrectly selecting linear elements on creation while tool-locked [#5785](https://github.com/excalidraw/excalidraw/pull/5785)
|
|
703
|
+
|
|
704
|
+
- Corrected typo in toggle theme shortcut [#5813](https://github.com/excalidraw/excalidraw/pull/5813)
|
|
705
|
+
|
|
706
|
+
- Hide canvas-modifying UI in view mode [#5815](https://github.com/excalidraw/excalidraw/pull/5815)
|
|
707
|
+
|
|
708
|
+
- Fix vertical/horizntal centering icons [#5812](https://github.com/excalidraw/excalidraw/pull/5812)
|
|
709
|
+
|
|
710
|
+
- Consistent use of ZOOM_STEP [#5801](https://github.com/excalidraw/excalidraw/pull/5801)
|
|
711
|
+
|
|
712
|
+
- Multiple elements resizing regressions [#5586](https://github.com/excalidraw/excalidraw/pull/5586)
|
|
713
|
+
|
|
714
|
+
- Changelog typo [#5795](https://github.com/excalidraw/excalidraw/pull/5795)
|
|
715
|
+
|
|
716
|
+
### Refactor
|
|
717
|
+
|
|
718
|
+
- Remove unnecessary code [#5933](https://github.com/excalidraw/excalidraw/pull/5933)
|
|
719
|
+
|
|
720
|
+
### Build
|
|
721
|
+
|
|
722
|
+
- Move release scripts to use release branch [#5958](https://github.com/excalidraw/excalidraw/pull/5958)
|
|
723
|
+
|
|
724
|
+
- Stops ignoring .env files from docker context so env variables get set during react app build. [#5809](https://github.com/excalidraw/excalidraw/pull/5809)
|
|
725
|
+
|
|
726
|
+
---
|
|
727
|
+
|
|
14
728
|
## 0.13.0 (2022-10-27)
|
|
15
729
|
|
|
16
730
|
### Excalidraw API
|