@myoc/excalidraw 0.19.503 → 0.19.504
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 +70 -13
- package/dist/dev/{chunk-YVUPBWS6.js → chunk-Z5DMFRJ5.js} +4 -4
- package/dist/dev/{chunk-YVUPBWS6.js.map → chunk-Z5DMFRJ5.js.map} +1 -1
- package/dist/dev/data/{image-I24D3FB6.js → image-ZR5DXOGS.js} +2 -2
- package/dist/dev/index.css.map +2 -2
- package/dist/dev/index.js +334 -372
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/{chunk-2VV6LBBJ.js → chunk-44LLHLSZ.js} +2 -2
- package/dist/prod/data/{image-IFJHSHJP.js → image-XPYUWCHN.js} +1 -1
- package/dist/prod/index.js +19 -19
- package/dist/types/element/src/arrange-algorithms/maxRects.d.ts +16 -0
- package/dist/types/element/src/linearElementEditor.d.ts +1 -1
- package/dist/types/element/src/types.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +16 -16
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +12 -12
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionGroup.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionLink.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionMenu.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionProperties.d.ts +5 -5
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/appState.d.ts +7 -7
- package/dist/types/excalidraw/components/App.d.ts +2 -1
- package/dist/types/excalidraw/components/shapes.d.ts +263 -0
- package/dist/types/excalidraw/data/blob.d.ts +12 -12
- package/dist/types/excalidraw/data/json.d.ts +6 -6
- package/dist/types/excalidraw/editorPreferences.d.ts +11 -0
- package/dist/types/excalidraw/index.d.ts +1 -0
- package/dist/types/excalidraw/types.d.ts +21 -0
- package/package.json +4 -4
- /package/dist/dev/data/{image-I24D3FB6.js.map → image-ZR5DXOGS.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,59 @@ 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
|
+
## Excalidraw Library
|
|
15
|
+
|
|
16
|
+
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
- Add ability to turn off compression for files that are smaller than a given size
|
|
21
|
+
|
|
22
|
+
- Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
|
|
23
|
+
|
|
24
|
+
- Add view mode button
|
|
25
|
+
|
|
26
|
+
- Add multiple image copy paste or drag and drop
|
|
27
|
+
|
|
28
|
+
- Multiple image additions from clipboard
|
|
29
|
+
|
|
30
|
+
- Add arrange elements action
|
|
31
|
+
|
|
32
|
+
- Add top picks to appProps for both stoke color and background color
|
|
33
|
+
|
|
34
|
+
### Fixes
|
|
35
|
+
|
|
36
|
+
- Issues
|
|
37
|
+
|
|
38
|
+
- Make mobile mode more myoc looking
|
|
39
|
+
|
|
40
|
+
- Add normalise functionality
|
|
41
|
+
|
|
42
|
+
- Update with excalidraw
|
|
43
|
+
|
|
44
|
+
- Fix imports
|
|
45
|
+
|
|
46
|
+
- Fix mutateGroup to use scene.mutateGroup
|
|
47
|
+
|
|
48
|
+
- Imports
|
|
49
|
+
|
|
50
|
+
- Ensure that fileId is different for compressed vs uncompressed file
|
|
51
|
+
|
|
52
|
+
- Remove not working prop for dontResizeLimitMBs
|
|
53
|
+
|
|
54
|
+
- Add smartview for mobile
|
|
55
|
+
|
|
56
|
+
- Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
|
|
57
|
+
|
|
58
|
+
- Use css vars already provided instead of hard coding directly from oc-gray
|
|
59
|
+
|
|
60
|
+
- Remove unused variables
|
|
61
|
+
|
|
62
|
+
- Pass the new top pick color props properly
|
|
63
|
+
|
|
64
|
+
- Incorrect import for color (was moved to common)
|
|
65
|
+
|
|
66
|
+
---
|
|
14
67
|
## 0.19.503 (2026-03-22)
|
|
15
68
|
|
|
16
69
|
## Excalidraw API
|
|
@@ -2468,11 +2521,13 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
2468
2521
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
2469
2522
|
|
|
2470
2523
|
---
|
|
2524
|
+
|
|
2471
2525
|
## Excalidraw Library
|
|
2472
2526
|
|
|
2473
2527
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
2474
2528
|
|
|
2475
2529
|
---
|
|
2530
|
+
|
|
2476
2531
|
## Excalidraw Library
|
|
2477
2532
|
|
|
2478
2533
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
@@ -2605,7 +2660,7 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
2605
2660
|
|
|
2606
2661
|
- Update eraser cursor [#4922](https://github.com/excalidraw/excalidraw/pull/4922)
|
|
2607
2662
|
|
|
2608
|
-
- Add Eraser 🎉
|
|
2663
|
+
- Add Eraser 🎉 [#4887](https://github.com/excalidraw/excalidraw/pull/4887)
|
|
2609
2664
|
|
|
2610
2665
|
- Added optional REACT_APP_WS_SERVER_URL for forks usecases [#4889](https://github.com/excalidraw/excalidraw/pull/4889)
|
|
2611
2666
|
|
|
@@ -2633,7 +2688,7 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
2633
2688
|
|
|
2634
2689
|
- Throttle `pointermove` events per framerate [#4727](https://github.com/excalidraw/excalidraw/pull/4727)
|
|
2635
2690
|
|
|
2636
|
-
- Support hyperlinks 🔥
|
|
2691
|
+
- Support hyperlinks 🔥 [#4620](https://github.com/excalidraw/excalidraw/pull/4620)
|
|
2637
2692
|
|
|
2638
2693
|
- Added penMode for palm rejection [#4657](https://github.com/excalidraw/excalidraw/pull/4657)
|
|
2639
2694
|
|
|
@@ -2655,7 +2710,7 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
2655
2710
|
|
|
2656
2711
|
- Support updating text properties by clicking on container [#4499](https://github.com/excalidraw/excalidraw/pull/4499)
|
|
2657
2712
|
|
|
2658
|
-
- Bind text to shapes when pressing enter and support sticky notes 🎉
|
|
2713
|
+
- Bind text to shapes when pressing enter and support sticky notes 🎉 [#4343](https://github.com/excalidraw/excalidraw/pull/4343)
|
|
2659
2714
|
|
|
2660
2715
|
- Redesign toolbar & tweaks [#4387](https://github.com/excalidraw/excalidraw/pull/4387)
|
|
2661
2716
|
|
|
@@ -2719,7 +2774,7 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
2719
2774
|
|
|
2720
2775
|
- Support renderTopRightUI in mobile [#4065](https://github.com/excalidraw/excalidraw/pull/4065)
|
|
2721
2776
|
|
|
2722
|
-
- Export THEME from the package
|
|
2777
|
+
- Export THEME from the package [#4055](https://github.com/excalidraw/excalidraw/pull/4055)
|
|
2723
2778
|
|
|
2724
2779
|
- Improve freedraw shape [#3984](https://github.com/excalidraw/excalidraw/pull/3984)
|
|
2725
2780
|
|
|
@@ -2941,7 +2996,7 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
2941
2996
|
|
|
2942
2997
|
- Hide sidebar when `custom` tool active [#5179](https://github.com/excalidraw/excalidraw/pull/5179)
|
|
2943
2998
|
|
|
2944
|
-
- Rename
|
|
2999
|
+
- Rename src to avatarUrl in collaborator [#5177](https://github.com/excalidraw/excalidraw/pull/5177)
|
|
2945
3000
|
|
|
2946
3001
|
- Don't save deleted ExcalidrawElements to Firebase [#5108](https://github.com/excalidraw/excalidraw/pull/5108)
|
|
2947
3002
|
|
|
@@ -3251,7 +3306,7 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
3251
3306
|
|
|
3252
3307
|
- Allow pointer events for disable zen mode button [#3743](https://github.com/excalidraw/excalidraw/pull/3743)
|
|
3253
3308
|
|
|
3254
|
-
- Use excal id so every element has unique id
|
|
3309
|
+
- Use excal id so every element has unique id [#3696](https://github.com/excalidraw/excalidraw/pull/3696)
|
|
3255
3310
|
|
|
3256
3311
|
- Use rgba instead of shorthand alpha [#3688](https://github.com/excalidraw/excalidraw/pull/3688)
|
|
3257
3312
|
|
|
@@ -3317,7 +3372,7 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
3317
3372
|
|
|
3318
3373
|
- Media query for hiding shortcuts for mobile view [#2667](https://github.com/excalidraw/excalidraw/pull/2667)
|
|
3319
3374
|
|
|
3320
|
-
###
|
|
3375
|
+
### Refactor
|
|
3321
3376
|
|
|
3322
3377
|
- Auto ordered imports [#9163](https://github.com/excalidraw/excalidraw/pull/9163)
|
|
3323
3378
|
|
|
@@ -3410,6 +3465,7 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
3410
3465
|
- Switch to Yarn [#3057](https://github.com/excalidraw/excalidraw/pull/3057)
|
|
3411
3466
|
|
|
3412
3467
|
---
|
|
3468
|
+
|
|
3413
3469
|
## Excalidraw Library
|
|
3414
3470
|
|
|
3415
3471
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
@@ -3434,11 +3490,12 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
3434
3490
|
|
|
3435
3491
|
- No migrating `draw` lines correctly
|
|
3436
3492
|
|
|
3437
|
-
###
|
|
3493
|
+
### Refactor
|
|
3438
3494
|
|
|
3439
3495
|
- Inline `SingleLibraryItem` into `PublishLibrary` (#6462
|
|
3440
3496
|
|
|
3441
3497
|
---
|
|
3498
|
+
|
|
3442
3499
|
## Excalidraw Library
|
|
3443
3500
|
|
|
3444
3501
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
@@ -3463,11 +3520,12 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
3463
3520
|
|
|
3464
3521
|
- No migrating `draw` lines correctly
|
|
3465
3522
|
|
|
3466
|
-
###
|
|
3523
|
+
### Refactor
|
|
3467
3524
|
|
|
3468
3525
|
- Inline `SingleLibraryItem` into `PublishLibrary` (#6462
|
|
3469
3526
|
|
|
3470
3527
|
---
|
|
3528
|
+
|
|
3471
3529
|
## Excalidraw Library
|
|
3472
3530
|
|
|
3473
3531
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
@@ -3586,7 +3644,7 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
3586
3644
|
|
|
3587
3645
|
- Allow to disable preventUnload in dev [#9319](https://github.com/excalidraw/excalidraw/pull/9319)
|
|
3588
3646
|
|
|
3589
|
-
- Add keyboard shortcut to save file in text
|
|
3647
|
+
- Add keyboard shortcut to save file in text [#9295](https://github.com/excalidraw/excalidraw/pull/9295)
|
|
3590
3648
|
|
|
3591
3649
|
### Fixes
|
|
3592
3650
|
|
|
@@ -3608,7 +3666,7 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
3608
3666
|
|
|
3609
3667
|
- Keep input focus during generation [#10679](https://github.com/excalidraw/excalidraw/pull/10679)
|
|
3610
3668
|
|
|
3611
|
-
- Arrow drag start in bindable area
|
|
3669
|
+
- Arrow drag start in bindable area jumps across bindable [#10676](https://github.com/excalidraw/excalidraw/pull/10676)
|
|
3612
3670
|
|
|
3613
3671
|
- Fail gracefully during restore [#10673](https://github.com/excalidraw/excalidraw/pull/10673)
|
|
3614
3672
|
|
|
@@ -3874,7 +3932,7 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
3874
3932
|
|
|
3875
3933
|
- Remove blue lines [#10425](https://github.com/excalidraw/excalidraw/pull/10425)
|
|
3876
3934
|
|
|
3877
|
-
###
|
|
3935
|
+
### Refactor
|
|
3878
3936
|
|
|
3879
3937
|
- Change TTD persistence to iDB [#10662](https://github.com/excalidraw/excalidraw/pull/10662)
|
|
3880
3938
|
|
|
@@ -3907,4 +3965,3 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
3907
3965
|
- Docker compose version removed [#10074](https://github.com/excalidraw/excalidraw/pull/10074)
|
|
3908
3966
|
|
|
3909
3967
|
---
|
|
3910
|
-
|
|
@@ -3548,7 +3548,7 @@ import {
|
|
|
3548
3548
|
createPlaceholderEmbeddableLabel as createPlaceholderEmbeddableLabel2,
|
|
3549
3549
|
getEmbedLink
|
|
3550
3550
|
} from "@excalidraw/element";
|
|
3551
|
-
import { LinearElementEditor } from "@excalidraw/element";
|
|
3551
|
+
import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
|
|
3552
3552
|
import { getBoundTextElement as getBoundTextElement2, getContainerElement as getContainerElement2 } from "@excalidraw/element";
|
|
3553
3553
|
import { getLineHeightInPx } from "@excalidraw/element";
|
|
3554
3554
|
import {
|
|
@@ -4489,7 +4489,7 @@ import {
|
|
|
4489
4489
|
updateElbowArrowPoints,
|
|
4490
4490
|
validateElbowPoints
|
|
4491
4491
|
} from "@excalidraw/element";
|
|
4492
|
-
import { LinearElementEditor as LinearElementEditor2 } from "@excalidraw/element";
|
|
4492
|
+
import { LinearElementEditor as LinearElementEditor2 } from "@excalidraw/element/linearElementEditor";
|
|
4493
4493
|
import { bumpVersion } from "@excalidraw/element";
|
|
4494
4494
|
import { getContainerElement as getContainerElement3 } from "@excalidraw/element";
|
|
4495
4495
|
import { detectLineHeight } from "@excalidraw/element";
|
|
@@ -5078,7 +5078,7 @@ var parseFileContents = async (blob) => {
|
|
|
5078
5078
|
let contents;
|
|
5079
5079
|
if (blob.type === MIME_TYPES6.png) {
|
|
5080
5080
|
try {
|
|
5081
|
-
return await (await import("./data/image-
|
|
5081
|
+
return await (await import("./data/image-ZR5DXOGS.js")).decodePngMetadata(blob);
|
|
5082
5082
|
} catch (error) {
|
|
5083
5083
|
if (error.message === "INVALID") {
|
|
5084
5084
|
throw new ImageSceneDataError(
|
|
@@ -5511,4 +5511,4 @@ export {
|
|
|
5511
5511
|
createFile,
|
|
5512
5512
|
normalizeFile
|
|
5513
5513
|
};
|
|
5514
|
-
//# sourceMappingURL=chunk-
|
|
5514
|
+
//# sourceMappingURL=chunk-Z5DMFRJ5.js.map
|