@dwelle/excalidraw 0.3.47 → 0.3.50
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 +5 -5
- package/README.md +2 -2
- package/README_NEXT.md +2 -2
- package/dist/excalidraw-assets-dev/{image-89cddf27ef982ca154dc.js → image-73be8b3c1837ea26950c.js} +0 -0
- package/dist/excalidraw.development.js +46 -46
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +3 -3
- package/types/actions/actionCanvas.d.ts +97 -8
- package/types/actions/actionClipboard.d.ts +4 -4
- package/types/actions/actionDeleteSelected.d.ts +2 -2
- package/types/actions/actionExport.d.ts +9 -9
- package/types/actions/actionFinalize.d.ts +2 -2
- package/types/actions/actionMenu.d.ts +3 -3
- package/types/actions/actionProperties.d.ts +106 -12
- package/types/actions/actionStyles.d.ts +1 -1
- package/types/actions/actionToggleGridMode.d.ts +1 -1
- package/types/actions/actionToggleStats.d.ts +1 -1
- package/types/actions/actionToggleViewMode.d.ts +1 -1
- package/types/actions/actionToggleZenMode.d.ts +1 -1
- package/types/actions/index.d.ts +1 -1
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +4 -1
- package/types/clipboard.d.ts +1 -1
- package/types/components/Actions.d.ts +2 -2
- package/types/components/App.d.ts +6 -0
- package/types/components/ColorPicker.d.ts +6 -1
- package/types/components/icons.d.ts +10 -0
- package/types/constants.d.ts +5 -0
- package/types/data/restore.d.ts +1 -1
- package/types/element/Hyperlink.d.ts +1 -1
- package/types/element/dragElements.d.ts +1 -2
- package/types/element/linearElementEditor.d.ts +1 -1
- package/types/element/resizeElements.d.ts +1 -1
- package/types/element/textElement.d.ts +1 -1
- package/types/element/typeChecks.d.ts +5 -4
- package/types/element/types.d.ts +5 -3
- package/types/galines.d.ts +1 -1
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-73be8b3c1837ea26950c.d.ts +0 -0
- package/types/scene/comparisons.d.ts +2 -2
- package/types/scene/index.d.ts +1 -1
- package/types/types.d.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -20,7 +20,7 @@ Please add the latest change on the top under the correct section.
|
|
|
20
20
|
- Add `onLinkOpen` prop which will be triggered when clicked on element hyperlink if present [#4694](https://github.com/excalidraw/excalidraw/pull/4694).
|
|
21
21
|
- Support updating library using [`updateScene`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#updateScene) API [#4546](https://github.com/excalidraw/excalidraw/pull/4546).
|
|
22
22
|
|
|
23
|
-
- Introduced primary colors to the app. The colors can be
|
|
23
|
+
- Introduced primary colors to the app. The colors can be overridden. Check [readme](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#customizing-styles) on how to do so [#4387](https://github.com/excalidraw/excalidraw/pull/4387).
|
|
24
24
|
|
|
25
25
|
- [`exportToBlob`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#exportToBlob) now automatically sets `appState.exportBackground` to `true` if exporting to `image/jpeg` MIME type (to ensure that alpha channel is not compressed to black color) [#4342](https://github.com/excalidraw/excalidraw/pull/4342).
|
|
26
26
|
|
|
@@ -115,7 +115,7 @@ Please add the latest change on the top under the correct section.
|
|
|
115
115
|
|
|
116
116
|
- Sync local storage state across tabs when out of sync [#4545](https://github.com/excalidraw/excalidraw/pull/4545)
|
|
117
117
|
|
|
118
|
-
- Support contextMenuLabel to be of function type to support
|
|
118
|
+
- Support contextMenuLabel to be of function type to support dynamic labels [#4654](https://github.com/excalidraw/excalidraw/pull/4654)
|
|
119
119
|
|
|
120
120
|
- Support decreasing/increasing `fontSize` via keyboard [#4553](https://github.com/excalidraw/excalidraw/pull/4553)
|
|
121
121
|
|
|
@@ -438,10 +438,10 @@ Please add the latest change on the top under the correct section.
|
|
|
438
438
|
|
|
439
439
|
- Added prop [`autoFocus`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#autoFocus) to focus the excalidraw component on page load when enabled, defaults to false [#3691](https://github.com/excalidraw/excalidraw/pull/3691).
|
|
440
440
|
|
|
441
|
-
Note: Earlier Excalidraw component was
|
|
441
|
+
Note: Earlier Excalidraw component was focused by default on page load, you need to enable `autoFocus` prop to retain the same behaviour.
|
|
442
442
|
|
|
443
443
|
- Added prop `UIOptions.canvasActions.export.renderCustomUI` to support Custom UI rendering inside export dialog [#3666](https://github.com/excalidraw/excalidraw/pull/3666).
|
|
444
|
-
- Added prop `UIOptions.canvasActions.saveAsImage` to show/hide the **Save as image** button in the canvas actions.
|
|
444
|
+
- Added prop `UIOptions.canvasActions.saveAsImage` to show/hide the **Save as image** button in the canvas actions. Defaults to `true` hence the **Save as Image** button is rendered [#3662](https://github.com/excalidraw/excalidraw/pull/3662).
|
|
445
445
|
|
|
446
446
|
- Export dialog can be customised with [`UiOptions.canvasActions.export`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#exportOpts) [#3658](https://github.com/excalidraw/excalidraw/pull/3658).
|
|
447
447
|
|
|
@@ -489,7 +489,7 @@ Please add the latest change on the top under the correct section.
|
|
|
489
489
|
|
|
490
490
|
- Exporting redesign [#3613](https://github.com/excalidraw/excalidraw/pull/3613)
|
|
491
491
|
|
|
492
|
-
- Auto-position tooltip and
|
|
492
|
+
- Auto-position tooltip and support overflowing container [#3631](https://github.com/excalidraw/excalidraw/pull/3631)
|
|
493
493
|
|
|
494
494
|
- Auto release @excalidraw/excalidraw-next on every change [#3614](https://github.com/excalidraw/excalidraw/pull/3614)
|
|
495
495
|
|
package/README.md
CHANGED
|
@@ -425,7 +425,7 @@ Here you can try saving the data to your backend or local storage for example.
|
|
|
425
425
|
|
|
426
426
|
This helps to load Excalidraw with `initialData`. It must be an object or a [promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/Promise) which resolves to an object containing the below optional fields.
|
|
427
427
|
|
|
428
|
-
| Name | Type |
|
|
428
|
+
| Name | Type | Description |
|
|
429
429
|
| --- | --- | --- |
|
|
430
430
|
| `elements` | [ExcalidrawElement[]](https://github.com/excalidraw/excalidraw/blob/master/src/element/types.ts#L78) | The elements with which Excalidraw should be mounted. |
|
|
431
431
|
| `appState` | [AppState](https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L42) | The App state with which Excalidraw should be mounted. |
|
|
@@ -679,7 +679,7 @@ Enable this if you want Excalidraw to handle keyboard even if the component isn'
|
|
|
679
679
|
|
|
680
680
|
#### `onLibraryChange`
|
|
681
681
|
|
|
682
|
-
|
|
682
|
+
This callback if supplied will get triggered when the library is updated and has the below signature.
|
|
683
683
|
|
|
684
684
|
<pre>
|
|
685
685
|
(items: <a href="https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L200">LibraryItems</a>) => void | Promise<any>
|
package/README_NEXT.md
CHANGED
|
@@ -431,7 +431,7 @@ Here you can try saving the data to your backend or local storage for example.
|
|
|
431
431
|
|
|
432
432
|
This helps to load Excalidraw with `initialData`. It must be an object or a [promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/Promise) which resolves to an object containing the below optional fields.
|
|
433
433
|
|
|
434
|
-
| Name | Type |
|
|
434
|
+
| Name | Type | Description |
|
|
435
435
|
| --- | --- | --- |
|
|
436
436
|
| `elements` | [ExcalidrawElement[]](https://github.com/excalidraw/excalidraw/blob/master/src/element/types.ts#L78) | The elements with which Excalidraw should be mounted. |
|
|
437
437
|
| `appState` | [AppState](https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L42) | The App state with which Excalidraw should be mounted. |
|
|
@@ -685,7 +685,7 @@ Enable this if you want Excalidraw to handle keyboard even if the component isn'
|
|
|
685
685
|
|
|
686
686
|
#### `onLibraryChange`
|
|
687
687
|
|
|
688
|
-
|
|
688
|
+
This callback if supplied will get triggered when the library is updated and has the below signature.
|
|
689
689
|
|
|
690
690
|
<pre>
|
|
691
691
|
(items: <a href="https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L200">LibraryItems</a>) => void | Promise<any>
|
package/dist/excalidraw-assets-dev/{image-89cddf27ef982ca154dc.js → image-73be8b3c1837ea26950c.js}
RENAMED
|
File without changes
|