@myoc/excalidraw 0.19.503 → 0.19.505

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 (57) hide show
  1. package/CHANGELOG.md +175 -12
  2. package/dist/dev/{chunk-YVUPBWS6.js → chunk-D5OSJVKD.js} +5 -5
  3. package/dist/dev/{chunk-YVUPBWS6.js.map → chunk-D5OSJVKD.js.map} +1 -1
  4. package/dist/dev/{chunk-OF725VHI.js → chunk-KCN2IL3S.js} +2 -2
  5. package/dist/dev/data/{image-I24D3FB6.js → image-KFKBCMAI.js} +3 -3
  6. package/dist/dev/index.css.map +2 -2
  7. package/dist/dev/index.js +404 -416
  8. package/dist/dev/index.js.map +4 -4
  9. package/dist/dev/subset-shared.chunk.js +1 -1
  10. package/dist/dev/subset-worker.chunk.js +1 -1
  11. package/dist/prod/{chunk-KG57QRSG.js → chunk-74H5OWWZ.js} +1 -1
  12. package/dist/prod/{chunk-2VV6LBBJ.js → chunk-USXDRZTP.js} +2 -2
  13. package/dist/prod/data/image-ZMS3YSG4.js +1 -0
  14. package/dist/prod/index.js +19 -19
  15. package/dist/prod/subset-shared.chunk.js +1 -1
  16. package/dist/prod/subset-worker.chunk.js +1 -1
  17. package/dist/types/element/src/arrange-algorithms/maxRects.d.ts +16 -0
  18. package/dist/types/element/src/linearElementEditor.d.ts +1 -1
  19. package/dist/types/element/src/types.d.ts +1 -1
  20. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  21. package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
  22. package/dist/types/excalidraw/actions/actionCanvas.d.ts +16 -16
  23. package/dist/types/excalidraw/actions/actionClipboard.d.ts +2 -2
  24. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +2 -2
  25. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  26. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  27. package/dist/types/excalidraw/actions/actionElementLock.d.ts +2 -2
  28. package/dist/types/excalidraw/actions/actionExport.d.ts +12 -12
  29. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  30. package/dist/types/excalidraw/actions/actionFrame.d.ts +2 -2
  31. package/dist/types/excalidraw/actions/actionGroup.d.ts +4 -4
  32. package/dist/types/excalidraw/actions/actionLink.d.ts +2 -2
  33. package/dist/types/excalidraw/actions/actionMenu.d.ts +2 -2
  34. package/dist/types/excalidraw/actions/actionProperties.d.ts +5 -5
  35. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +3 -3
  36. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
  37. package/dist/types/excalidraw/actions/actionStyles.d.ts +4 -4
  38. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +1 -1
  39. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +2 -2
  40. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +2 -2
  41. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +2 -2
  42. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +2 -2
  43. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +2 -2
  44. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +2 -2
  45. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  46. package/dist/types/excalidraw/appState.d.ts +7 -7
  47. package/dist/types/excalidraw/components/App.d.ts +10 -1
  48. package/dist/types/excalidraw/components/shapes.d.ts +263 -0
  49. package/dist/types/excalidraw/data/blob.d.ts +12 -12
  50. package/dist/types/excalidraw/data/json.d.ts +6 -6
  51. package/dist/types/excalidraw/editorPreferences.d.ts +11 -0
  52. package/dist/types/excalidraw/index.d.ts +1 -0
  53. package/dist/types/excalidraw/types.d.ts +23 -0
  54. package/package.json +4 -4
  55. package/dist/prod/data/image-IFJHSHJP.js +0 -1
  56. /package/dist/dev/{chunk-OF725VHI.js.map → chunk-KCN2IL3S.js.map} +0 -0
  57. /package/dist/dev/data/{image-I24D3FB6.js.map → image-KFKBCMAI.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 🎉 [#4887](https://github.com/excalidraw/excalidraw/pull/4887)
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 🔥 [#4620](https://github.com/excalidraw/excalidraw/pull/4620)
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 🎉 [#4343](https://github.com/excalidraw/excalidraw/pull/4343)
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 [#4055](https://github.com/excalidraw/excalidraw/pull/4055)
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 src to avatarUrl in collaborator [#5177](https://github.com/excalidraw/excalidraw/pull/5177)
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 [#3696](https://github.com/excalidraw/excalidraw/pull/3696)
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
- ### Refactor
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
- ### Refactor
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
- ### Refactor
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 [#9295](https://github.com/excalidraw/excalidraw/pull/9295)
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 jumps across bindable [#10676](https://github.com/excalidraw/excalidraw/pull/10676)
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
- ### Refactor
3935
+ ### Refactor
3878
3936
 
3879
3937
  - Change TTD persistence to iDB [#10662](https://github.com/excalidraw/excalidraw/pull/10662)
3880
3938
 
@@ -3906,5 +3964,110 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
3906
3964
 
3907
3965
  - Docker compose version removed [#10074](https://github.com/excalidraw/excalidraw/pull/10074)
3908
3966
 
3967
+ ---## Excalidraw Library
3968
+
3969
+ **_This section lists the updates made to the excalidraw library and will not affect the integration._**
3970
+
3971
+ ### Features
3972
+
3973
+ - Add ability to turn off compression for files that are smaller than a given size
3974
+
3975
+ - Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
3976
+
3977
+ - Add view mode button
3978
+
3979
+ - Add multiple image copy paste or drag and drop
3980
+
3981
+ - Multiple image additions from clipboard
3982
+
3983
+ - Add arrange elements action
3984
+
3985
+ - Add top picks to appProps for both stoke color and background color
3986
+
3987
+ ### Fixes
3988
+
3989
+ - Issues
3990
+
3991
+ - Make mobile mode more myoc looking
3992
+
3993
+ - Add normalise functionality
3994
+
3995
+ - Update with excalidraw
3996
+
3997
+ - Fix imports
3998
+
3999
+ - Fix mutateGroup to use scene.mutateGroup
4000
+
4001
+ - Imports
4002
+
4003
+ - Ensure that fileId is different for compressed vs uncompressed file
4004
+
4005
+ - Remove not working prop for dontResizeLimitMBs
4006
+
4007
+ - Add smartview for mobile
4008
+
4009
+ - Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
4010
+
4011
+ - Use css vars already provided instead of hard coding directly from oc-gray
4012
+
4013
+ - Remove unused variables
4014
+
4015
+ - Pass the new top pick color props properly
4016
+
4017
+ - Incorrect import for color (was moved to common)
4018
+
4019
+ ---
4020
+ ## Excalidraw Library
4021
+
4022
+ **_This section lists the updates made to the excalidraw library and will not affect the integration._**
4023
+
4024
+ ### Features
4025
+
4026
+ - Add ability to turn off compression for files that are smaller than a given size
4027
+
4028
+ - Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
4029
+
4030
+ - Add view mode button
4031
+
4032
+ - Add multiple image copy paste or drag and drop
4033
+
4034
+ - Multiple image additions from clipboard
4035
+
4036
+ - Add arrange elements action
4037
+
4038
+ - Add top picks to appProps for both stoke color and background color
4039
+
4040
+ ### Fixes
4041
+
4042
+ - Issues
4043
+
4044
+ - Make mobile mode more myoc looking
4045
+
4046
+ - Add normalise functionality
4047
+
4048
+ - Update with excalidraw
4049
+
4050
+ - Fix imports
4051
+
4052
+ - Fix mutateGroup to use scene.mutateGroup
4053
+
4054
+ - Imports
4055
+
4056
+ - Ensure that fileId is different for compressed vs uncompressed file
4057
+
4058
+ - Remove not working prop for dontResizeLimitMBs
4059
+
4060
+ - Add smartview for mobile
4061
+
4062
+ - Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
4063
+
4064
+ - Use css vars already provided instead of hard coding directly from oc-gray
4065
+
4066
+ - Remove unused variables
4067
+
4068
+ - Pass the new top pick color props properly
4069
+
4070
+ - Incorrect import for color (was moved to common)
4071
+
3909
4072
  ---
3910
4073
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  define_import_meta_env_default
3
- } from "./chunk-OF725VHI.js";
3
+ } from "./chunk-KCN2IL3S.js";
4
4
  import {
5
5
  __publicField
6
6
  } from "./chunk-XDFCUUT6.js";
@@ -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-I24D3FB6.js")).decodePngMetadata(blob);
5081
+ return await (await import("./data/image-KFKBCMAI.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-YVUPBWS6.js.map
5514
+ //# sourceMappingURL=chunk-D5OSJVKD.js.map