@dwelle/excalidraw 0.3.68 → 0.3.69
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 +2 -0
- package/README_NEXT.md +7 -1
- package/dist/excalidraw.development.js +92 -60
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +6 -3
- package/types/actions/actionBoundText.d.ts +2 -1
- package/types/actions/actionCanvas.d.ts +16 -8
- package/types/actions/actionClipboard.d.ts +10 -5
- package/types/actions/actionDeleteSelected.d.ts +6 -3
- package/types/actions/actionExport.d.ts +18 -9
- package/types/actions/actionFinalize.d.ts +5 -3
- package/types/actions/actionMenu.d.ts +6 -3
- package/types/actions/actionProperties.d.ts +26 -13
- package/types/actions/actionStyles.d.ts +2 -1
- package/types/actions/actionToggleGridMode.d.ts +2 -1
- package/types/actions/actionToggleStats.d.ts +2 -1
- package/types/actions/actionToggleViewMode.d.ts +2 -1
- package/types/actions/actionToggleZenMode.d.ts +2 -1
- package/types/appState.d.ts +2 -0
- package/types/components/App.d.ts +11 -5
- package/types/components/LayerUI.d.ts +4 -3
- package/types/components/LibraryMenuItems.d.ts +2 -1
- package/types/components/MobileMenu.d.ts +2 -1
- package/types/components/SidebarLockButton.d.ts +9 -0
- package/types/components/Stack.d.ts +1 -1
- package/types/constants.d.ts +3 -0
- package/types/element/Hyperlink.d.ts +2 -1
- package/types/element/linearElementEditor.d.ts +2 -1
- package/types/types.d.ts +13 -5
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,8 @@ Please add the latest change on the top under the correct section.
|
|
|
17
17
|
|
|
18
18
|
#### Features
|
|
19
19
|
|
|
20
|
+
- Add `[UIOptions.dockedSidebarBreakpoint]`(https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#dockedSidebarBreakpoint) to customize at which point to break from the docked sidebar [#5274](https://github.com/excalidraw/excalidraw/pull/5274).
|
|
21
|
+
|
|
20
22
|
- Added support for supplying user `id` in the Collaborator object (see `collaborators` in [`updateScene()`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#updateScene)), which will be used to deduplicate users when rendering collaborator avatar list. Cursors will still be rendered for every user. [#5309](https://github.com/excalidraw/excalidraw/pull/5309)
|
|
21
23
|
|
|
22
24
|
- Export API to [set](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#setCursor) and [reset](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#resetCursor) mouse cursor on the canvas [#5215](https://github.com/excalidraw/excalidraw/pull/5215).
|
package/README_NEXT.md
CHANGED
|
@@ -639,7 +639,7 @@ This prop sets the name of the drawing which will be used when exporting the dra
|
|
|
639
639
|
|
|
640
640
|
#### `UIOptions`
|
|
641
641
|
|
|
642
|
-
This prop can be used to customise UI of Excalidraw. Currently we support customising
|
|
642
|
+
This prop can be used to customise UI of Excalidraw. Currently we support customising [`canvasActions`](#canvasActions) and [`dockedSidebarBreakpoint`](dockedSidebarBreakpoint). It accepts the below parameters
|
|
643
643
|
|
|
644
644
|
<pre>
|
|
645
645
|
{ canvasActions: <a href="https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L208"> CanvasActions<a/> }
|
|
@@ -657,6 +657,12 @@ This prop can be used to customise UI of Excalidraw. Currently we support custom
|
|
|
657
657
|
| `theme` | boolean | true | Implies whether to show `Theme toggle` |
|
|
658
658
|
| `saveAsImage` | boolean | true | Implies whether to show `Save as image button` |
|
|
659
659
|
|
|
660
|
+
##### `dockedSidebarBreakpoint`
|
|
661
|
+
|
|
662
|
+
This prop indicates at what point should we break to a docked, permanent sidebar. If not passed it defaults to [`MQ_RIGHT_SIDEBAR_MAX_WIDTH_PORTRAIT`](https://github.com/excalidraw/excalidraw/blob/master/src/constants.ts#L167). If the `width` of the `excalidraw` container exceeds `dockedSidebarBreakpoint`, the sidebar will be dockable. If user choses to dock the sidebar, it will push the right part of the UI towards the left, making space for the sidebar as shown below.
|
|
663
|
+
|
|
664
|
+

|
|
665
|
+
|
|
660
666
|
#### `exportOpts`
|
|
661
667
|
|
|
662
668
|
The below attributes can be set in `UIOptions.canvasActions.export` to customize the export dialog. If `UIOptions.canvasActions.export` is `false` the export button will not be rendered.
|