@excalidraw/excalidraw 0.15.2-45a57d7 → 0.15.2-6213-0f92339

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 (51) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/excalidraw.development.js +357 -126
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/package.json +1 -1
  5. package/types/actions/actionAddToLibrary.d.ts +15 -6
  6. package/types/actions/actionBoundText.d.ts +10 -4
  7. package/types/actions/actionCanvas.d.ts +50 -20
  8. package/types/actions/actionClipboard.d.ts +25 -10
  9. package/types/actions/actionDeleteSelected.d.ts +15 -6
  10. package/types/actions/actionExport.d.ts +45 -18
  11. package/types/actions/actionFinalize.d.ts +10 -4
  12. package/types/actions/actionLinearEditor.d.ts +5 -2
  13. package/types/actions/actionMenu.d.ts +15 -6
  14. package/types/actions/actionProperties.d.ts +65 -26
  15. package/types/actions/actionStyles.d.ts +5 -2
  16. package/types/actions/actionToggleGridMode.d.ts +5 -2
  17. package/types/actions/actionToggleLock.d.ts +5 -2
  18. package/types/actions/actionToggleStats.d.ts +5 -2
  19. package/types/actions/actionToggleViewMode.d.ts +5 -2
  20. package/types/actions/actionToggleZenMode.d.ts +5 -2
  21. package/types/appState.d.ts +5 -2
  22. package/types/components/App.d.ts +10 -3
  23. package/types/components/Button.d.ts +3 -1
  24. package/types/components/DefaultSidebar.d.ts +30 -0
  25. package/types/components/LayerUI.d.ts +1 -8
  26. package/types/components/LibraryMenu.d.ts +29 -10
  27. package/types/components/LibraryMenuControlButtons.d.ts +9 -0
  28. package/types/components/LibraryMenuHeaderContent.d.ts +7 -26
  29. package/types/components/PasteChartDialog.d.ts +2 -3
  30. package/types/components/Sidebar/Sidebar.d.ts +68 -45
  31. package/types/components/Sidebar/SidebarHeader.d.ts +6 -19
  32. package/types/components/Sidebar/SidebarTab.d.ts +9 -0
  33. package/types/components/Sidebar/SidebarTabTrigger.d.ts +10 -0
  34. package/types/components/Sidebar/SidebarTabTriggers.d.ts +7 -0
  35. package/types/components/Sidebar/SidebarTabs.d.ts +7 -0
  36. package/types/components/Sidebar/SidebarTrigger.d.ts +6 -0
  37. package/types/components/Sidebar/common.d.ts +23 -6
  38. package/types/components/main-menu/MainMenu.d.ts +3 -1
  39. package/types/constants.d.ts +5 -0
  40. package/types/context/tunnels.d.ts +18 -0
  41. package/types/context/ui-appState.d.ts +4 -0
  42. package/types/data/types.d.ts +2 -4
  43. package/types/element/Hyperlink.d.ts +5 -2
  44. package/types/element/linearElementEditor.d.ts +5 -2
  45. package/types/hooks/useOutsideClick.d.ts +1 -1
  46. package/types/packages/excalidraw/index.d.ts +1 -0
  47. package/types/types.d.ts +17 -7
  48. package/types/utils.d.ts +1 -1
  49. package/types/components/LibraryButton.d.ts +0 -8
  50. package/types/components/context/tunnels.d.ts +0 -16
  51. package/types/components/hoc/withUpstreamOverride.d.ts +0 -10
package/CHANGELOG.md CHANGED
@@ -11,6 +11,22 @@ 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
+ - 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)
19
+ - Exposed `DefaultSidebar` component to allow modifying the default sidebar, such as adding custom tabs to it. [#6213](https://github.com/excalidraw/excalidraw/pull/6213)
20
+
21
+ #### BREAKING CHANGES
22
+
23
+ - `props.renderSidebar` is removed in favor of rendering as `children`.
24
+ - `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.
25
+ - Sidebar `props.dockable` is removed. To indicate dockability, supply `props.onDock()` alongside setting `props.docked`.
26
+ - `Sidebar.Header` is no longer rendered by default. You need to render it yourself.
27
+ - `props.onClose` replaced with `props.onStateChange`.
28
+ - `restore()`/`restoreAppState()` now retains `appState.openSidebar` regardless of docked state.
29
+
14
30
  ## 0.15.2 (2023-04-20)
15
31
 
16
32
  ### Docs