@dwelle/excalidraw 0.4.0-b1fe165 → 0.4.0-b9dc358
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 +20 -0
- package/dist/excalidraw.development.js +41 -41
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionBoundText.d.ts +23 -7
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +2 -2
- package/types/components/HelpButton.d.ts +0 -1
- package/types/components/MobileMenu.d.ts +2 -2
- package/types/constants.d.ts +3 -5
- package/types/data/index.d.ts +1 -1
- package/types/data/restore.d.ts +8 -2
- package/types/element/newElement.d.ts +0 -3
- package/types/element/textElement.d.ts +11 -8
- package/types/element/typeChecks.d.ts +1 -1
- package/types/element/types.d.ts +0 -1
- package/types/i18n.d.ts +6 -0
- package/types/jotai.d.ts +5 -5
- package/types/packages/excalidraw/example/App.d.ts +7 -1
- package/types/packages/excalidraw/index.d.ts +1 -2
- package/types/packages/utils.d.ts +25 -22
- package/types/renderer/renderScene.d.ts +3 -1
- package/types/scene/export.d.ts +9 -143
- package/types/scene/types.d.ts +1 -9
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,26 @@ 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
|
+
- 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)
|
|
19
|
+
|
|
20
|
+
- [`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
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
{ refreshDimensions?: boolean, repairBindings?: boolean }
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
The same `opts` param has been added to [`restore`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/utils/restore#restore) API as well.
|
|
27
|
+
|
|
28
|
+
For more details refer to the [docs](https://docs.excalidraw.com)
|
|
29
|
+
|
|
30
|
+
#### BREAKING CHANGE
|
|
31
|
+
|
|
32
|
+
- 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`
|
|
33
|
+
|
|
14
34
|
## 0.14.2 (2023-02-01)
|
|
15
35
|
|
|
16
36
|
### Features
|