@excalidraw/excalidraw 0.18.0-298812e → 0.18.0-3085f4a

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 (129) hide show
  1. package/dist/dev/chunk-5EDE7GFX.js +5677 -0
  2. package/dist/dev/chunk-5EDE7GFX.js.map +7 -0
  3. package/dist/dev/chunk-CP5DND7P.js +7 -0
  4. package/dist/dev/chunk-CP5DND7P.js.map +7 -0
  5. package/dist/dev/{chunk-JCUIYZXF.js → chunk-QF5FRM6O.js} +6 -2
  6. package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
  7. package/dist/dev/data/{image-CB4ZYE3A.js → image-7AP4KED2.js} +3 -3
  8. package/dist/dev/index.css +51 -20
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +7101 -4376
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-ZDTPSZNL.js → en-SMAPCEOQ.js} +2 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/chunk-A66AFZZU.js +7 -0
  16. package/dist/prod/{chunk-GCFVWREF.js → chunk-I4UNSFV6.js} +4 -4
  17. package/dist/prod/chunk-YHEOD47Q.js +4 -0
  18. package/dist/prod/data/image-G3CCQ4CB.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +25 -18
  21. package/dist/prod/locales/{en-MHZ26NAR.js → en-TYY6KWIJ.js} +1 -1
  22. package/dist/prod/subset-shared.chunk.js +1 -1
  23. package/dist/prod/subset-worker.chunk.js +1 -1
  24. package/dist/types/common/src/constants.d.ts +21 -3
  25. package/dist/types/common/src/utils.d.ts +3 -5
  26. package/dist/types/element/src/Scene.d.ts +7 -3
  27. package/dist/types/element/src/align.d.ts +2 -1
  28. package/dist/types/element/src/binding.d.ts +10 -7
  29. package/dist/types/element/src/bounds.d.ts +11 -3
  30. package/dist/types/element/src/collision.d.ts +18 -12
  31. package/dist/types/element/src/cropElement.d.ts +1 -1
  32. package/dist/types/element/src/delta.d.ts +41 -9
  33. package/dist/types/element/src/distance.d.ts +2 -2
  34. package/dist/types/element/src/distribute.d.ts +2 -1
  35. package/dist/types/element/src/fractionalIndex.d.ts +8 -2
  36. package/dist/types/element/src/frame.d.ts +2 -2
  37. package/dist/types/element/src/groups.d.ts +1 -0
  38. package/dist/types/element/src/index.d.ts +1 -3
  39. package/dist/types/element/src/linearElementEditor.d.ts +14 -23
  40. package/dist/types/element/src/mutateElement.d.ts +1 -1
  41. package/dist/types/element/src/newElement.d.ts +2 -1
  42. package/dist/types/element/src/resizeElements.d.ts +1 -0
  43. package/dist/types/element/src/selection.d.ts +1 -1
  44. package/dist/types/element/src/shape.d.ts +42 -0
  45. package/dist/types/element/src/sizeHelpers.d.ts +2 -1
  46. package/dist/types/element/src/store.d.ts +19 -9
  47. package/dist/types/element/src/transformHandles.d.ts +4 -4
  48. package/dist/types/element/src/typeChecks.d.ts +15 -1
  49. package/dist/types/element/src/types.d.ts +8 -3
  50. package/dist/types/element/src/utils.d.ts +16 -6
  51. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +21 -15
  52. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  53. package/dist/types/excalidraw/actions/actionBoundText.d.ts +14 -10
  54. package/dist/types/excalidraw/actions/actionCanvas.d.ts +195 -155
  55. package/dist/types/excalidraw/actions/actionClipboard.d.ts +50 -36
  56. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -5
  57. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +27 -20
  58. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  59. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  60. package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -4
  61. package/dist/types/excalidraw/actions/actionElementLock.d.ts +29 -26
  62. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -5
  63. package/dist/types/excalidraw/actions/actionExport.d.ts +147 -129
  64. package/dist/types/excalidraw/actions/actionFinalize.d.ts +65 -20
  65. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +78 -70
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +20 -16
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +533 -7
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +8 -6
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +22 -16
  71. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -10
  72. package/dist/types/excalidraw/actions/actionProperties.d.ts +119 -81
  73. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -8
  74. package/dist/types/excalidraw/actions/actionStyles.d.ts +11 -9
  75. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +9 -7
  76. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +9 -7
  77. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +8 -6
  78. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +9 -7
  79. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +9 -7
  80. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +9 -7
  81. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  82. package/dist/types/excalidraw/actions/types.d.ts +2 -1
  83. package/dist/types/excalidraw/appState.d.ts +29 -20
  84. package/dist/types/excalidraw/components/Actions.d.ts +0 -4
  85. package/dist/types/excalidraw/components/App.d.ts +19 -16
  86. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  87. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  88. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  89. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
  90. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  91. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -0
  92. package/dist/types/excalidraw/components/icons.d.ts +2 -0
  93. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  94. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  95. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  96. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  97. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  98. package/dist/types/excalidraw/history.d.ts +21 -5
  99. package/dist/types/excalidraw/index.d.ts +2 -1
  100. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  101. package/dist/types/excalidraw/renderer/helpers.d.ts +4 -4
  102. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  103. package/dist/types/excalidraw/scene/Renderer.d.ts +0 -1
  104. package/dist/types/excalidraw/types.d.ts +17 -8
  105. package/dist/types/math/src/angle.d.ts +2 -0
  106. package/dist/types/math/src/constants.d.ts +3 -0
  107. package/dist/types/math/src/curve.d.ts +32 -0
  108. package/dist/types/math/src/index.d.ts +1 -0
  109. package/dist/types/math/src/point.d.ts +1 -1
  110. package/dist/types/math/src/rectangle.d.ts +2 -0
  111. package/dist/types/math/src/vector.d.ts +4 -2
  112. package/history.ts +107 -44
  113. package/package.json +13 -10
  114. package/dist/dev/chunk-JCUIYZXF.js.map +0 -7
  115. package/dist/dev/chunk-RQWTCZLD.js +0 -7
  116. package/dist/dev/chunk-RQWTCZLD.js.map +0 -7
  117. package/dist/dev/chunk-ZPGIVNNG.js +0 -23482
  118. package/dist/dev/chunk-ZPGIVNNG.js.map +0 -7
  119. package/dist/prod/chunk-7TMLMBQX.js +0 -7
  120. package/dist/prod/chunk-WFJFO6F4.js +0 -33
  121. package/dist/prod/data/image-XJI4SWH2.js +0 -1
  122. package/dist/types/element/src/Shape.d.ts +0 -17
  123. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  124. package/dist/types/element/src/shapes.d.ts +0 -23
  125. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  126. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  127. package/dist/types/utils/src/collision.d.ts +0 -8
  128. /package/dist/dev/data/{image-CB4ZYE3A.js.map → image-7AP4KED2.js.map} +0 -0
  129. /package/dist/dev/locales/{en-ZDTPSZNL.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -18,7 +18,7 @@ export declare const actionChangeProjectName: {
18
18
  errorMessage: import("react").ReactNode;
19
19
  activeEmbeddable: {
20
20
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
- state: "hover" | "active";
21
+ state: "active" | "hover";
22
22
  } | null;
23
23
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
24
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -37,7 +37,6 @@ export declare const actionChangeProjectName: {
37
37
  editingFrame: string | null;
38
38
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
39
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
41
40
  activeTool: {
42
41
  lastActiveTool: import("../types").ActiveTool | null;
43
42
  locked: boolean;
@@ -84,7 +83,7 @@ export declare const actionChangeProjectName: {
84
83
  name: "imageExport" | "help" | "jsonExport";
85
84
  } | {
86
85
  name: "ttd";
87
- tab: "text-to-diagram" | "mermaid";
86
+ tab: "mermaid" | "text-to-diagram";
88
87
  } | {
89
88
  name: "commandPalette";
90
89
  } | {
@@ -156,8 +155,7 @@ export declare const actionChangeProjectName: {
156
155
  shown: true;
157
156
  data: import("../charts").Spreadsheet;
158
157
  };
159
- pendingImageElementId: string | null;
160
- showHyperlinkPopup: false | "info" | "editor";
158
+ showHyperlinkPopup: false | "editor" | "info";
161
159
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
160
  snapLines: readonly import("../snapping").SnapLine[];
163
161
  originSnapOffset: {
@@ -173,6 +171,10 @@ export declare const actionChangeProjectName: {
173
171
  focusedId: string | null;
174
172
  matches: readonly import("../types").SearchMatch[];
175
173
  }> | null;
174
+ activeLockedId: string | null;
175
+ lockedMultiSelections: {
176
+ [groupId: string]: true;
177
+ };
176
178
  };
177
179
  captureUpdate: "EVENTUALLY";
178
180
  };
@@ -200,7 +202,7 @@ export declare const actionChangeExportScale: {
200
202
  errorMessage: import("react").ReactNode;
201
203
  activeEmbeddable: {
202
204
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
203
- state: "hover" | "active";
205
+ state: "active" | "hover";
204
206
  } | null;
205
207
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
206
208
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -219,7 +221,6 @@ export declare const actionChangeExportScale: {
219
221
  editingFrame: string | null;
220
222
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
221
223
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
222
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
223
224
  activeTool: {
224
225
  lastActiveTool: import("../types").ActiveTool | null;
225
226
  locked: boolean;
@@ -266,7 +267,7 @@ export declare const actionChangeExportScale: {
266
267
  name: "imageExport" | "help" | "jsonExport";
267
268
  } | {
268
269
  name: "ttd";
269
- tab: "text-to-diagram" | "mermaid";
270
+ tab: "mermaid" | "text-to-diagram";
270
271
  } | {
271
272
  name: "commandPalette";
272
273
  } | {
@@ -338,8 +339,7 @@ export declare const actionChangeExportScale: {
338
339
  shown: true;
339
340
  data: import("../charts").Spreadsheet;
340
341
  };
341
- pendingImageElementId: string | null;
342
- showHyperlinkPopup: false | "info" | "editor";
342
+ showHyperlinkPopup: false | "editor" | "info";
343
343
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
344
344
  snapLines: readonly import("../snapping").SnapLine[];
345
345
  originSnapOffset: {
@@ -355,6 +355,10 @@ export declare const actionChangeExportScale: {
355
355
  focusedId: string | null;
356
356
  matches: readonly import("../types").SearchMatch[];
357
357
  }> | null;
358
+ activeLockedId: string | null;
359
+ lockedMultiSelections: {
360
+ [groupId: string]: true;
361
+ };
358
362
  };
359
363
  captureUpdate: "EVENTUALLY";
360
364
  };
@@ -382,7 +386,7 @@ export declare const actionChangeExportBackground: {
382
386
  errorMessage: import("react").ReactNode;
383
387
  activeEmbeddable: {
384
388
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
385
- state: "hover" | "active";
389
+ state: "active" | "hover";
386
390
  } | null;
387
391
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
388
392
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -401,7 +405,6 @@ export declare const actionChangeExportBackground: {
401
405
  editingFrame: string | null;
402
406
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
403
407
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
404
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
405
408
  activeTool: {
406
409
  lastActiveTool: import("../types").ActiveTool | null;
407
410
  locked: boolean;
@@ -448,7 +451,7 @@ export declare const actionChangeExportBackground: {
448
451
  name: "imageExport" | "help" | "jsonExport";
449
452
  } | {
450
453
  name: "ttd";
451
- tab: "text-to-diagram" | "mermaid";
454
+ tab: "mermaid" | "text-to-diagram";
452
455
  } | {
453
456
  name: "commandPalette";
454
457
  } | {
@@ -520,8 +523,7 @@ export declare const actionChangeExportBackground: {
520
523
  shown: true;
521
524
  data: import("../charts").Spreadsheet;
522
525
  };
523
- pendingImageElementId: string | null;
524
- showHyperlinkPopup: false | "info" | "editor";
526
+ showHyperlinkPopup: false | "editor" | "info";
525
527
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
526
528
  snapLines: readonly import("../snapping").SnapLine[];
527
529
  originSnapOffset: {
@@ -537,6 +539,10 @@ export declare const actionChangeExportBackground: {
537
539
  focusedId: string | null;
538
540
  matches: readonly import("../types").SearchMatch[];
539
541
  }> | null;
542
+ activeLockedId: string | null;
543
+ lockedMultiSelections: {
544
+ [groupId: string]: true;
545
+ };
540
546
  };
541
547
  captureUpdate: "EVENTUALLY";
542
548
  };
@@ -564,7 +570,7 @@ export declare const actionChangeExportEmbedScene: {
564
570
  errorMessage: import("react").ReactNode;
565
571
  activeEmbeddable: {
566
572
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
567
- state: "hover" | "active";
573
+ state: "active" | "hover";
568
574
  } | null;
569
575
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
570
576
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -583,7 +589,6 @@ export declare const actionChangeExportEmbedScene: {
583
589
  editingFrame: string | null;
584
590
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
585
591
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
586
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
587
592
  activeTool: {
588
593
  lastActiveTool: import("../types").ActiveTool | null;
589
594
  locked: boolean;
@@ -630,7 +635,7 @@ export declare const actionChangeExportEmbedScene: {
630
635
  name: "imageExport" | "help" | "jsonExport";
631
636
  } | {
632
637
  name: "ttd";
633
- tab: "text-to-diagram" | "mermaid";
638
+ tab: "mermaid" | "text-to-diagram";
634
639
  } | {
635
640
  name: "commandPalette";
636
641
  } | {
@@ -702,8 +707,7 @@ export declare const actionChangeExportEmbedScene: {
702
707
  shown: true;
703
708
  data: import("../charts").Spreadsheet;
704
709
  };
705
- pendingImageElementId: string | null;
706
- showHyperlinkPopup: false | "info" | "editor";
710
+ showHyperlinkPopup: false | "editor" | "info";
707
711
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
708
712
  snapLines: readonly import("../snapping").SnapLine[];
709
713
  originSnapOffset: {
@@ -719,6 +723,10 @@ export declare const actionChangeExportEmbedScene: {
719
723
  focusedId: string | null;
720
724
  matches: readonly import("../types").SearchMatch[];
721
725
  }> | null;
726
+ activeLockedId: string | null;
727
+ lockedMultiSelections: {
728
+ [groupId: string]: true;
729
+ };
722
730
  };
723
731
  captureUpdate: "EVENTUALLY";
724
732
  };
@@ -751,7 +759,7 @@ export declare const actionSaveToActiveFile: {
751
759
  errorMessage: import("react").ReactNode;
752
760
  activeEmbeddable: {
753
761
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
754
- state: "hover" | "active";
762
+ state: "active" | "hover";
755
763
  } | null;
756
764
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
757
765
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -770,7 +778,6 @@ export declare const actionSaveToActiveFile: {
770
778
  editingFrame: string | null;
771
779
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
772
780
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
773
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
774
781
  activeTool: {
775
782
  lastActiveTool: import("../types").ActiveTool | null;
776
783
  locked: boolean;
@@ -818,7 +825,7 @@ export declare const actionSaveToActiveFile: {
818
825
  name: "imageExport" | "help" | "jsonExport";
819
826
  } | {
820
827
  name: "ttd";
821
- tab: "text-to-diagram" | "mermaid";
828
+ tab: "mermaid" | "text-to-diagram";
822
829
  } | {
823
830
  name: "commandPalette";
824
831
  } | {
@@ -884,8 +891,7 @@ export declare const actionSaveToActiveFile: {
884
891
  shown: true;
885
892
  data: import("../charts").Spreadsheet;
886
893
  };
887
- pendingImageElementId: string | null;
888
- showHyperlinkPopup: false | "info" | "editor";
894
+ showHyperlinkPopup: false | "editor" | "info";
889
895
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
890
896
  snapLines: readonly import("../snapping").SnapLine[];
891
897
  originSnapOffset: {
@@ -901,14 +907,18 @@ export declare const actionSaveToActiveFile: {
901
907
  focusedId: string | null;
902
908
  matches: readonly import("../types").SearchMatch[];
903
909
  }> | null;
910
+ activeLockedId: string | null;
911
+ lockedMultiSelections: {
912
+ [groupId: string]: true;
913
+ };
904
914
  };
905
915
  } | {
906
916
  captureUpdate: "EVENTUALLY";
907
917
  appState?: undefined;
908
918
  }>;
909
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
919
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
910
920
  } & {
911
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
921
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
912
922
  };
913
923
  export declare const actionSaveFileToDisk: {
914
924
  name: "saveFileToDisk";
@@ -936,7 +946,7 @@ export declare const actionSaveFileToDisk: {
936
946
  errorMessage: import("react").ReactNode;
937
947
  activeEmbeddable: {
938
948
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
939
- state: "hover" | "active";
949
+ state: "active" | "hover";
940
950
  } | null;
941
951
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
942
952
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -955,7 +965,6 @@ export declare const actionSaveFileToDisk: {
955
965
  editingFrame: string | null;
956
966
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
957
967
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
958
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
959
968
  activeTool: {
960
969
  lastActiveTool: import("../types").ActiveTool | null;
961
970
  locked: boolean;
@@ -1058,8 +1067,7 @@ export declare const actionSaveFileToDisk: {
1058
1067
  shown: true;
1059
1068
  data: import("../charts").Spreadsheet;
1060
1069
  };
1061
- pendingImageElementId: string | null;
1062
- showHyperlinkPopup: false | "info" | "editor";
1070
+ showHyperlinkPopup: false | "editor" | "info";
1063
1071
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1064
1072
  snapLines: readonly import("../snapping").SnapLine[];
1065
1073
  originSnapOffset: {
@@ -1075,15 +1083,19 @@ export declare const actionSaveFileToDisk: {
1075
1083
  focusedId: string | null;
1076
1084
  matches: readonly import("../types").SearchMatch[];
1077
1085
  }> | null;
1086
+ activeLockedId: string | null;
1087
+ lockedMultiSelections: {
1088
+ [groupId: string]: true;
1089
+ };
1078
1090
  };
1079
1091
  } | {
1080
1092
  captureUpdate: "EVENTUALLY";
1081
1093
  appState?: undefined;
1082
1094
  }>;
1083
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1095
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1084
1096
  PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1085
1097
  } & {
1086
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1098
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1087
1099
  };
1088
1100
  export declare const actionLoadScene: {
1089
1101
  name: "loadScene";
@@ -1095,44 +1107,93 @@ export declare const actionLoadScene: {
1095
1107
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
1096
1108
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
1097
1109
  appState: {
1110
+ viewBackgroundColor: string;
1111
+ frameRendering: {
1112
+ enabled: boolean;
1113
+ name: boolean;
1114
+ outline: boolean;
1115
+ clip: boolean;
1116
+ };
1117
+ name: string | null;
1118
+ zoom: Readonly<{
1119
+ value: import("../types").NormalizedZoomValue;
1120
+ }>;
1121
+ scrollX: number;
1122
+ scrollY: number;
1123
+ viewModeEnabled: boolean;
1124
+ openDialog: {
1125
+ name: "imageExport" | "help" | "jsonExport";
1126
+ } | {
1127
+ name: "ttd";
1128
+ tab: "mermaid" | "text-to-diagram";
1129
+ } | {
1130
+ name: "commandPalette";
1131
+ } | {
1132
+ name: "elementLinkSelector";
1133
+ sourceElementId: string;
1134
+ } | null;
1135
+ editingGroupId: string | null;
1136
+ selectedElementIds: Readonly<{
1137
+ [id: string]: true;
1138
+ }>;
1139
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1140
+ theme: Theme;
1141
+ activeEmbeddable: {
1142
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1143
+ state: "active" | "hover";
1144
+ } | null;
1145
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1146
+ selectedGroupIds: {
1147
+ [groupId: string]: boolean;
1148
+ };
1149
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1150
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1151
+ isBindingEnabled: boolean;
1152
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1153
+ isRotating: boolean;
1154
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1155
+ collaborators: Map<import("../types").SocketId, Readonly<{
1156
+ pointer?: import("../types").CollaboratorPointer | undefined;
1157
+ button?: "up" | "down" | undefined;
1158
+ selectedElementIds?: Readonly<{
1159
+ [id: string]: true;
1160
+ }> | undefined;
1161
+ username?: string | null | undefined;
1162
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1163
+ color?: {
1164
+ background: string;
1165
+ stroke: string;
1166
+ } | undefined;
1167
+ avatarUrl?: string | undefined;
1168
+ id?: string | undefined;
1169
+ socketId?: import("../types").SocketId | undefined;
1170
+ isCurrentUser?: boolean | undefined;
1171
+ isInCall?: boolean | undefined;
1172
+ isSpeaking?: boolean | undefined;
1173
+ isMuted?: boolean | undefined;
1174
+ }>>;
1175
+ snapLines: readonly import("../snapping").SnapLine[];
1176
+ zenModeEnabled: boolean;
1177
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1178
+ isCropping: boolean;
1179
+ croppingElementId: string | null;
1180
+ searchMatches: Readonly<{
1181
+ focusedId: string | null;
1182
+ matches: readonly import("../types").SearchMatch[];
1183
+ }> | null;
1184
+ activeLockedId: string | null;
1098
1185
  contextMenu: {
1099
1186
  items: import("../components/ContextMenu").ContextMenuItems;
1100
1187
  top: number;
1101
1188
  left: number;
1102
1189
  } | null;
1103
- stats: {
1104
- open: boolean;
1105
- panels: number;
1106
- };
1107
- exportWithDarkMode: boolean;
1108
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1109
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1110
- cursorButton: "up" | "down";
1111
- scrollX: number;
1112
- scrollY: number;
1113
1190
  showWelcomeScreen: boolean;
1114
1191
  isLoading: boolean;
1115
1192
  errorMessage: import("react").ReactNode;
1116
- activeEmbeddable: {
1117
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1118
- state: "hover" | "active";
1119
- } | null;
1120
1193
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1121
1194
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1122
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1123
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1124
- isBindingEnabled: boolean;
1125
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1126
- frameRendering: {
1127
- enabled: boolean;
1128
- name: boolean;
1129
- outline: boolean;
1130
- clip: boolean;
1131
- };
1195
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1132
1196
  editingFrame: string | null;
1133
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1134
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1135
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1136
1197
  activeTool: {
1137
1198
  lastActiveTool: import("../types").ActiveTool | null;
1138
1199
  locked: boolean;
@@ -1142,6 +1203,7 @@ export declare const actionLoadScene: {
1142
1203
  penDetected: boolean;
1143
1204
  exportBackground: boolean;
1144
1205
  exportEmbedScene: boolean;
1206
+ exportWithDarkMode: boolean;
1145
1207
  exportScale: number;
1146
1208
  currentItemStrokeColor: string;
1147
1209
  currentItemBackgroundColor: string;
@@ -1158,36 +1220,17 @@ export declare const actionLoadScene: {
1158
1220
  currentHoveredFontFamily: number | null;
1159
1221
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1160
1222
  currentItemArrowType: "round" | "sharp" | "elbow";
1161
- viewBackgroundColor: string;
1223
+ cursorButton: "up" | "down";
1162
1224
  scrolledOutside: boolean;
1163
- name: string | null;
1164
1225
  isResizing: boolean;
1165
- isRotating: boolean;
1166
- zoom: Readonly<{
1167
- value: import("../types").NormalizedZoomValue;
1168
- }>;
1169
1226
  openMenu: "canvas" | "shape" | null;
1170
1227
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1171
1228
  openSidebar: {
1172
1229
  name: string;
1173
1230
  tab?: string | undefined;
1174
1231
  } | null;
1175
- openDialog: {
1176
- name: "imageExport" | "help" | "jsonExport";
1177
- } | {
1178
- name: "ttd";
1179
- tab: "text-to-diagram" | "mermaid";
1180
- } | {
1181
- name: "commandPalette";
1182
- } | {
1183
- name: "elementLinkSelector";
1184
- sourceElementId: string;
1185
- } | null;
1186
1232
  defaultSidebarDockedPreference: boolean;
1187
1233
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1188
- selectedElementIds: Readonly<{
1189
- [id: string]: true;
1190
- }>;
1191
1234
  hoveredElementIds: Readonly<{
1192
1235
  [id: string]: true;
1193
1236
  }>;
@@ -1201,37 +1244,14 @@ export declare const actionLoadScene: {
1201
1244
  closable?: boolean | undefined;
1202
1245
  duration?: number | undefined;
1203
1246
  } | null;
1204
- zenModeEnabled: boolean;
1205
- theme: Theme;
1206
1247
  gridSize: number;
1207
1248
  gridStep: number;
1208
1249
  gridModeEnabled: boolean;
1209
- viewModeEnabled: boolean;
1210
- selectedGroupIds: {
1211
- [groupId: string]: boolean;
1212
- };
1213
- editingGroupId: string | null;
1214
1250
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1215
- collaborators: Map<import("../types").SocketId, Readonly<{
1216
- pointer?: import("../types").CollaboratorPointer | undefined;
1217
- button?: "up" | "down" | undefined;
1218
- selectedElementIds?: Readonly<{
1219
- [id: string]: true;
1220
- }> | undefined;
1221
- username?: string | null | undefined;
1222
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1223
- color?: {
1224
- background: string;
1225
- stroke: string;
1226
- } | undefined;
1227
- avatarUrl?: string | undefined;
1228
- id?: string | undefined;
1229
- socketId?: import("../types").SocketId | undefined;
1230
- isCurrentUser?: boolean | undefined;
1231
- isInCall?: boolean | undefined;
1232
- isSpeaking?: boolean | undefined;
1233
- isMuted?: boolean | undefined;
1234
- }>>;
1251
+ stats: {
1252
+ open: boolean;
1253
+ panels: number;
1254
+ };
1235
1255
  currentChartType: import("@excalidraw/element/types").ChartType;
1236
1256
  pasteDialog: {
1237
1257
  shown: false;
@@ -1240,10 +1260,7 @@ export declare const actionLoadScene: {
1240
1260
  shown: true;
1241
1261
  data: import("../charts").Spreadsheet;
1242
1262
  };
1243
- pendingImageElementId: string | null;
1244
- showHyperlinkPopup: false | "info" | "editor";
1245
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1246
- snapLines: readonly import("../snapping").SnapLine[];
1263
+ showHyperlinkPopup: false | "editor" | "info";
1247
1264
  originSnapOffset: {
1248
1265
  x: number;
1249
1266
  y: number;
@@ -1251,12 +1268,9 @@ export declare const actionLoadScene: {
1251
1268
  objectsSnapModeEnabled: boolean;
1252
1269
  userToFollow: import("../types").UserToFollow | null;
1253
1270
  followedBy: Set<import("../types").SocketId>;
1254
- isCropping: boolean;
1255
- croppingElementId: string | null;
1256
- searchMatches: Readonly<{
1257
- focusedId: string | null;
1258
- matches: readonly import("../types").SearchMatch[];
1259
- }> | null;
1271
+ lockedMultiSelections: {
1272
+ [groupId: string]: true;
1273
+ };
1260
1274
  };
1261
1275
  files: import("../types").BinaryFiles;
1262
1276
  captureUpdate: "IMMEDIATELY";
@@ -1273,7 +1287,7 @@ export declare const actionLoadScene: {
1273
1287
  isLoading: boolean;
1274
1288
  activeEmbeddable: {
1275
1289
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1276
- state: "hover" | "active";
1290
+ state: "active" | "hover";
1277
1291
  } | null;
1278
1292
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1279
1293
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1292,7 +1306,6 @@ export declare const actionLoadScene: {
1292
1306
  editingFrame: string | null;
1293
1307
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1294
1308
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1295
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1296
1309
  activeTool: {
1297
1310
  lastActiveTool: import("../types").ActiveTool | null;
1298
1311
  locked: boolean;
@@ -1340,7 +1353,7 @@ export declare const actionLoadScene: {
1340
1353
  name: "imageExport" | "help" | "jsonExport";
1341
1354
  } | {
1342
1355
  name: "ttd";
1343
- tab: "text-to-diagram" | "mermaid";
1356
+ tab: "mermaid" | "text-to-diagram";
1344
1357
  } | {
1345
1358
  name: "commandPalette";
1346
1359
  } | {
@@ -1412,8 +1425,7 @@ export declare const actionLoadScene: {
1412
1425
  shown: true;
1413
1426
  data: import("../charts").Spreadsheet;
1414
1427
  };
1415
- pendingImageElementId: string | null;
1416
- showHyperlinkPopup: false | "info" | "editor";
1428
+ showHyperlinkPopup: false | "editor" | "info";
1417
1429
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1418
1430
  snapLines: readonly import("../snapping").SnapLine[];
1419
1431
  originSnapOffset: {
@@ -1429,13 +1441,17 @@ export declare const actionLoadScene: {
1429
1441
  focusedId: string | null;
1430
1442
  matches: readonly import("../types").SearchMatch[];
1431
1443
  }> | null;
1444
+ activeLockedId: string | null;
1445
+ lockedMultiSelections: {
1446
+ [groupId: string]: true;
1447
+ };
1432
1448
  };
1433
1449
  files: import("../types").BinaryFiles;
1434
1450
  captureUpdate: "EVENTUALLY";
1435
1451
  }>;
1436
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1452
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1437
1453
  } & {
1438
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1454
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1439
1455
  };
1440
1456
  export declare const actionExportWithDarkMode: {
1441
1457
  name: "exportWithDarkMode";
@@ -1457,7 +1473,7 @@ export declare const actionExportWithDarkMode: {
1457
1473
  errorMessage: import("react").ReactNode;
1458
1474
  activeEmbeddable: {
1459
1475
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1460
- state: "hover" | "active";
1476
+ state: "active" | "hover";
1461
1477
  } | null;
1462
1478
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1463
1479
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1476,7 +1492,6 @@ export declare const actionExportWithDarkMode: {
1476
1492
  editingFrame: string | null;
1477
1493
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1478
1494
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1479
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1480
1495
  activeTool: {
1481
1496
  lastActiveTool: import("../types").ActiveTool | null;
1482
1497
  locked: boolean;
@@ -1523,7 +1538,7 @@ export declare const actionExportWithDarkMode: {
1523
1538
  name: "imageExport" | "help" | "jsonExport";
1524
1539
  } | {
1525
1540
  name: "ttd";
1526
- tab: "text-to-diagram" | "mermaid";
1541
+ tab: "mermaid" | "text-to-diagram";
1527
1542
  } | {
1528
1543
  name: "commandPalette";
1529
1544
  } | {
@@ -1595,8 +1610,7 @@ export declare const actionExportWithDarkMode: {
1595
1610
  shown: true;
1596
1611
  data: import("../charts").Spreadsheet;
1597
1612
  };
1598
- pendingImageElementId: string | null;
1599
- showHyperlinkPopup: false | "info" | "editor";
1613
+ showHyperlinkPopup: false | "editor" | "info";
1600
1614
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1601
1615
  snapLines: readonly import("../snapping").SnapLine[];
1602
1616
  originSnapOffset: {
@@ -1612,6 +1626,10 @@ export declare const actionExportWithDarkMode: {
1612
1626
  focusedId: string | null;
1613
1627
  matches: readonly import("../types").SearchMatch[];
1614
1628
  }> | null;
1629
+ activeLockedId: string | null;
1630
+ lockedMultiSelections: {
1631
+ [groupId: string]: true;
1632
+ };
1615
1633
  };
1616
1634
  captureUpdate: "EVENTUALLY";
1617
1635
  };