@zsviczian/excalidraw 0.18.0-15 → 0.18.0-17

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 (51) hide show
  1. package/dist/excalidraw.development.js +83 -61
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/styles.development.css +48 -20
  4. package/dist/styles.production.css +2 -1
  5. package/package.json +1 -1
  6. package/types/common/src/constants.d.ts +7 -1
  7. package/types/element/src/linearElementEditor.d.ts +8 -16
  8. package/types/element/src/newElement.d.ts +2 -1
  9. package/types/element/src/shapes.d.ts +5 -1
  10. package/types/element/src/typeChecks.d.ts +3 -1
  11. package/types/element/src/types.d.ts +7 -2
  12. package/types/excalidraw/actions/actionAddToLibrary.d.ts +12 -0
  13. package/types/excalidraw/actions/actionBoundText.d.ts +8 -0
  14. package/types/excalidraw/actions/actionCanvas.d.ts +75 -15
  15. package/types/excalidraw/actions/actionClipboard.d.ts +24 -0
  16. package/types/excalidraw/actions/actionCropEditor.d.ts +4 -0
  17. package/types/excalidraw/actions/actionDeleteSelected.d.ts +12 -0
  18. package/types/excalidraw/actions/actionElementLink.d.ts +4 -0
  19. package/types/excalidraw/actions/actionElementLock.d.ts +23 -16
  20. package/types/excalidraw/actions/actionEmbeddable.d.ts +4 -0
  21. package/types/excalidraw/actions/actionExport.d.ts +36 -0
  22. package/types/excalidraw/actions/actionFinalize.d.ts +8 -0
  23. package/types/excalidraw/actions/actionFrame.d.ts +16 -0
  24. package/types/excalidraw/actions/actionGroup.d.ts +8 -0
  25. package/types/excalidraw/actions/actionLinearEditor.d.ts +500 -0
  26. package/types/excalidraw/actions/actionLink.d.ts +4 -0
  27. package/types/excalidraw/actions/actionMenu.d.ts +12 -0
  28. package/types/excalidraw/actions/actionNavigate.d.ts +8 -0
  29. package/types/excalidraw/actions/actionProperties.d.ts +70 -2
  30. package/types/excalidraw/actions/actionSelectAll.d.ts +4 -0
  31. package/types/excalidraw/actions/actionStyles.d.ts +4 -0
  32. package/types/excalidraw/actions/actionToggleGridMode.d.ts +4 -0
  33. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +4 -0
  34. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +4 -0
  35. package/types/excalidraw/actions/actionToggleStats.d.ts +4 -0
  36. package/types/excalidraw/actions/actionToggleViewMode.d.ts +4 -0
  37. package/types/excalidraw/actions/actionToggleZenMode.d.ts +4 -0
  38. package/types/excalidraw/actions/types.d.ts +2 -1
  39. package/types/excalidraw/appState.d.ts +9 -0
  40. package/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  41. package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  42. package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  43. package/types/excalidraw/components/hyperlink/helpers.d.ts +1 -0
  44. package/types/excalidraw/components/icons.d.ts +2 -0
  45. package/types/excalidraw/index.d.ts +1 -1
  46. package/types/excalidraw/lasso/index.d.ts +1 -0
  47. package/types/excalidraw/obsidianUtils.d.ts +9 -1
  48. package/types/excalidraw/renderer/helpers.d.ts +1 -1
  49. package/types/excalidraw/types.d.ts +8 -0
  50. package/types/math/src/point.d.ts +1 -1
  51. package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
@@ -133,7 +133,7 @@ export declare const actionClearCanvas: {
133
133
  name: "help" | "imageExport" | "jsonExport";
134
134
  } | {
135
135
  name: "ttd";
136
- tab: "mermaid" | "text-to-diagram"; /** zoom content to cover X of the viewport, when fitToViewport=true */
136
+ tab: "mermaid" | "text-to-diagram";
137
137
  } | {
138
138
  name: "commandPalette";
139
139
  } | {
@@ -224,6 +224,10 @@ export declare const actionClearCanvas: {
224
224
  focusedId: string | null;
225
225
  matches: readonly import("../types").SearchMatch[];
226
226
  }> | null;
227
+ activeLockedId: string | null;
228
+ lockedMultiSelections: {
229
+ [groupId: string]: true;
230
+ };
227
231
  };
228
232
  captureUpdate: "IMMEDIATELY";
229
233
  };
@@ -318,7 +322,7 @@ export declare const actionZoomIn: {
318
322
  name: "help" | "imageExport" | "jsonExport";
319
323
  } | {
320
324
  name: "ttd";
321
- tab: "mermaid" | "text-to-diagram"; /** zoom content to cover X of the viewport, when fitToViewport=true */
325
+ tab: "mermaid" | "text-to-diagram";
322
326
  } | {
323
327
  name: "commandPalette";
324
328
  } | {
@@ -442,6 +446,10 @@ export declare const actionZoomIn: {
442
446
  focusedId: string | null;
443
447
  matches: readonly import("../types").SearchMatch[];
444
448
  }> | null;
449
+ activeLockedId: string | null;
450
+ lockedMultiSelections: {
451
+ [groupId: string]: true;
452
+ };
445
453
  };
446
454
  captureUpdate: "EVENTUALLY";
447
455
  };
@@ -538,7 +546,7 @@ export declare const actionZoomOut: {
538
546
  name: "help" | "imageExport" | "jsonExport";
539
547
  } | {
540
548
  name: "ttd";
541
- tab: "mermaid" | "text-to-diagram"; /** zoom content to cover X of the viewport, when fitToViewport=true */
549
+ tab: "mermaid" | "text-to-diagram";
542
550
  } | {
543
551
  name: "commandPalette";
544
552
  } | {
@@ -662,6 +670,10 @@ export declare const actionZoomOut: {
662
670
  focusedId: string | null;
663
671
  matches: readonly import("../types").SearchMatch[];
664
672
  }> | null;
673
+ activeLockedId: string | null;
674
+ lockedMultiSelections: {
675
+ [groupId: string]: true;
676
+ };
665
677
  };
666
678
  captureUpdate: "EVENTUALLY";
667
679
  };
@@ -758,7 +770,7 @@ export declare const actionResetZoom: {
758
770
  name: "help" | "imageExport" | "jsonExport";
759
771
  } | {
760
772
  name: "ttd";
761
- tab: "mermaid" | "text-to-diagram"; /** zoom content to cover X of the viewport, when fitToViewport=true */
773
+ tab: "mermaid" | "text-to-diagram";
762
774
  } | {
763
775
  name: "commandPalette";
764
776
  } | {
@@ -882,6 +894,10 @@ export declare const actionResetZoom: {
882
894
  focusedId: string | null;
883
895
  matches: readonly import("../types").SearchMatch[];
884
896
  }> | null;
897
+ activeLockedId: string | null;
898
+ lockedMultiSelections: {
899
+ [groupId: string]: true;
900
+ };
885
901
  };
886
902
  captureUpdate: "EVENTUALLY";
887
903
  };
@@ -984,7 +1000,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
984
1000
  name: "help" | "imageExport" | "jsonExport";
985
1001
  } | {
986
1002
  name: "ttd";
987
- tab: "mermaid" | "text-to-diagram"; /** zoom content to cover X of the viewport, when fitToViewport=true */
1003
+ tab: "mermaid" | "text-to-diagram";
988
1004
  } | {
989
1005
  name: "commandPalette";
990
1006
  } | {
@@ -1109,6 +1125,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
1109
1125
  focusedId: string | null;
1110
1126
  matches: readonly import("../types").SearchMatch[];
1111
1127
  }> | null;
1128
+ activeLockedId: string | null;
1129
+ lockedMultiSelections: {
1130
+ [groupId: string]: true;
1131
+ };
1112
1132
  };
1113
1133
  captureUpdate: "EVENTUALLY";
1114
1134
  };
@@ -1206,7 +1226,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1206
1226
  name: "help" | "imageExport" | "jsonExport";
1207
1227
  } | {
1208
1228
  name: "ttd";
1209
- tab: "mermaid" | "text-to-diagram"; /** zoom content to cover X of the viewport, when fitToViewport=true */
1229
+ tab: "mermaid" | "text-to-diagram";
1210
1230
  } | {
1211
1231
  name: "commandPalette";
1212
1232
  } | {
@@ -1331,6 +1351,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1331
1351
  focusedId: string | null;
1332
1352
  matches: readonly import("../types").SearchMatch[];
1333
1353
  }> | null;
1354
+ activeLockedId: string | null;
1355
+ lockedMultiSelections: {
1356
+ [groupId: string]: true;
1357
+ };
1334
1358
  };
1335
1359
  captureUpdate: "EVENTUALLY";
1336
1360
  };
@@ -1420,7 +1444,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1420
1444
  name: "help" | "imageExport" | "jsonExport";
1421
1445
  } | {
1422
1446
  name: "ttd";
1423
- tab: "mermaid" | "text-to-diagram"; /** zoom content to cover X of the viewport, when fitToViewport=true */
1447
+ tab: "mermaid" | "text-to-diagram";
1424
1448
  } | {
1425
1449
  name: "commandPalette";
1426
1450
  } | {
@@ -1545,6 +1569,10 @@ export declare const actionZoomToFitSelectionInViewport: {
1545
1569
  focusedId: string | null;
1546
1570
  matches: readonly import("../types").SearchMatch[];
1547
1571
  }> | null;
1572
+ activeLockedId: string | null;
1573
+ lockedMultiSelections: {
1574
+ [groupId: string]: true;
1575
+ };
1548
1576
  };
1549
1577
  captureUpdate: "EVENTUALLY";
1550
1578
  };
@@ -1638,7 +1666,7 @@ export declare const actionZoomToFitSelection: {
1638
1666
  name: "help" | "imageExport" | "jsonExport";
1639
1667
  } | {
1640
1668
  name: "ttd";
1641
- tab: "mermaid" | "text-to-diagram"; /** zoom content to cover X of the viewport, when fitToViewport=true */
1669
+ tab: "mermaid" | "text-to-diagram";
1642
1670
  } | {
1643
1671
  name: "commandPalette";
1644
1672
  } | {
@@ -1763,6 +1791,10 @@ export declare const actionZoomToFitSelection: {
1763
1791
  focusedId: string | null;
1764
1792
  matches: readonly import("../types").SearchMatch[];
1765
1793
  }> | null;
1794
+ activeLockedId: string | null;
1795
+ lockedMultiSelections: {
1796
+ [groupId: string]: true;
1797
+ };
1766
1798
  };
1767
1799
  captureUpdate: "EVENTUALLY";
1768
1800
  };
@@ -1857,7 +1889,7 @@ export declare const actionZoomToFit: {
1857
1889
  name: "help" | "imageExport" | "jsonExport";
1858
1890
  } | {
1859
1891
  name: "ttd";
1860
- tab: "mermaid" | "text-to-diagram"; /** zoom content to cover X of the viewport, when fitToViewport=true */
1892
+ tab: "mermaid" | "text-to-diagram";
1861
1893
  } | {
1862
1894
  name: "commandPalette";
1863
1895
  } | {
@@ -1982,6 +2014,10 @@ export declare const actionZoomToFit: {
1982
2014
  focusedId: string | null;
1983
2015
  matches: readonly import("../types").SearchMatch[];
1984
2016
  }> | null;
2017
+ activeLockedId: string | null;
2018
+ lockedMultiSelections: {
2019
+ [groupId: string]: true;
2020
+ };
1985
2021
  };
1986
2022
  captureUpdate: "EVENTUALLY";
1987
2023
  };
@@ -2078,7 +2114,7 @@ export declare const actionToggleTheme: {
2078
2114
  name: "help" | "imageExport" | "jsonExport";
2079
2115
  } | {
2080
2116
  name: "ttd";
2081
- tab: "mermaid" | "text-to-diagram"; /** zoom content to cover X of the viewport, when fitToViewport=true */
2117
+ tab: "mermaid" | "text-to-diagram";
2082
2118
  } | {
2083
2119
  name: "commandPalette";
2084
2120
  } | {
@@ -2202,6 +2238,10 @@ export declare const actionToggleTheme: {
2202
2238
  focusedId: string | null;
2203
2239
  matches: readonly import("../types").SearchMatch[];
2204
2240
  }> | null;
2241
+ activeLockedId: string | null;
2242
+ lockedMultiSelections: {
2243
+ [groupId: string]: true;
2244
+ };
2205
2245
  };
2206
2246
  captureUpdate: "EVENTUALLY";
2207
2247
  };
@@ -2294,7 +2334,7 @@ export declare const actionToggleEraserTool: {
2294
2334
  name: "help" | "imageExport" | "jsonExport";
2295
2335
  } | {
2296
2336
  name: "ttd";
2297
- tab: "mermaid" | "text-to-diagram"; /** zoom content to cover X of the viewport, when fitToViewport=true */
2337
+ tab: "mermaid" | "text-to-diagram";
2298
2338
  } | {
2299
2339
  name: "commandPalette";
2300
2340
  } | {
@@ -2413,6 +2453,10 @@ export declare const actionToggleEraserTool: {
2413
2453
  focusedId: string | null;
2414
2454
  matches: readonly import("../types").SearchMatch[];
2415
2455
  }> | null;
2456
+ activeLockedId: string | null;
2457
+ lockedMultiSelections: {
2458
+ [groupId: string]: true;
2459
+ };
2416
2460
  };
2417
2461
  captureUpdate: "IMMEDIATELY";
2418
2462
  };
@@ -2505,7 +2549,7 @@ export declare const actionToggleLassoTool: {
2505
2549
  name: "help" | "imageExport" | "jsonExport";
2506
2550
  } | {
2507
2551
  name: "ttd";
2508
- tab: "mermaid" | "text-to-diagram"; /** zoom content to cover X of the viewport, when fitToViewport=true */
2552
+ tab: "mermaid" | "text-to-diagram";
2509
2553
  } | {
2510
2554
  name: "commandPalette";
2511
2555
  } | {
@@ -2624,6 +2668,10 @@ export declare const actionToggleLassoTool: {
2624
2668
  focusedId: string | null;
2625
2669
  matches: readonly import("../types").SearchMatch[];
2626
2670
  }> | null;
2671
+ activeLockedId: string | null;
2672
+ lockedMultiSelections: {
2673
+ [groupId: string]: true;
2674
+ };
2627
2675
  };
2628
2676
  captureUpdate: "NEVER";
2629
2677
  };
@@ -2716,7 +2764,7 @@ export declare const actionToggleHandTool: {
2716
2764
  name: "help" | "imageExport" | "jsonExport";
2717
2765
  } | {
2718
2766
  name: "ttd";
2719
- tab: "mermaid" | "text-to-diagram"; /** zoom content to cover X of the viewport, when fitToViewport=true */
2767
+ tab: "mermaid" | "text-to-diagram";
2720
2768
  } | {
2721
2769
  name: "commandPalette";
2722
2770
  } | {
@@ -2835,6 +2883,10 @@ export declare const actionToggleHandTool: {
2835
2883
  focusedId: string | null;
2836
2884
  matches: readonly import("../types").SearchMatch[];
2837
2885
  }> | null;
2886
+ activeLockedId: string | null;
2887
+ lockedMultiSelections: {
2888
+ [groupId: string]: true;
2889
+ };
2838
2890
  };
2839
2891
  captureUpdate: "IMMEDIATELY";
2840
2892
  };
@@ -2926,7 +2978,7 @@ export declare const actionToggleLaserPointer: {
2926
2978
  name: "help" | "imageExport" | "jsonExport";
2927
2979
  } | {
2928
2980
  name: "ttd";
2929
- tab: "mermaid" | "text-to-diagram"; /** zoom content to cover X of the viewport, when fitToViewport=true */
2981
+ tab: "mermaid" | "text-to-diagram";
2930
2982
  } | {
2931
2983
  name: "commandPalette";
2932
2984
  } | {
@@ -3045,6 +3097,10 @@ export declare const actionToggleLaserPointer: {
3045
3097
  focusedId: string | null;
3046
3098
  matches: readonly import("../types").SearchMatch[];
3047
3099
  }> | null;
3100
+ activeLockedId: string | null;
3101
+ lockedMultiSelections: {
3102
+ [groupId: string]: true;
3103
+ };
3048
3104
  };
3049
3105
  captureUpdate: "NEVER";
3050
3106
  };
@@ -3133,7 +3189,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
3133
3189
  name: "help" | "imageExport" | "jsonExport";
3134
3190
  } | {
3135
3191
  name: "ttd";
3136
- tab: "mermaid" | "text-to-diagram"; /** zoom content to cover X of the viewport, when fitToViewport=true */
3192
+ tab: "mermaid" | "text-to-diagram";
3137
3193
  } | {
3138
3194
  name: "commandPalette";
3139
3195
  } | {
@@ -3258,6 +3314,10 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
3258
3314
  focusedId: string | null;
3259
3315
  matches: readonly import("../types").SearchMatch[];
3260
3316
  }> | null;
3317
+ activeLockedId: string | null;
3318
+ lockedMultiSelections: {
3319
+ [groupId: string]: true;
3320
+ };
3261
3321
  };
3262
3322
  commitToHistory: boolean;
3263
3323
  };
@@ -210,6 +210,10 @@ export declare const actionCopy: {
210
210
  focusedId: string | null;
211
211
  matches: readonly import("../types").SearchMatch[];
212
212
  }> | null;
213
+ activeLockedId: string | null;
214
+ lockedMultiSelections: {
215
+ [groupId: string]: true;
216
+ };
213
217
  };
214
218
  } | {
215
219
  captureUpdate: "EVENTUALLY";
@@ -430,6 +434,10 @@ export declare const actionPaste: {
430
434
  focusedId: string | null;
431
435
  matches: readonly import("../types").SearchMatch[];
432
436
  }> | null;
437
+ activeLockedId: string | null;
438
+ lockedMultiSelections: {
439
+ [groupId: string]: true;
440
+ };
433
441
  };
434
442
  } | {
435
443
  captureUpdate: "EVENTUALLY";
@@ -651,6 +659,10 @@ export declare const actionCut: {
651
659
  focusedId: string | null;
652
660
  matches: readonly import("../types").SearchMatch[];
653
661
  }> | null;
662
+ activeLockedId: string | null;
663
+ lockedMultiSelections: {
664
+ [groupId: string]: true;
665
+ };
654
666
  };
655
667
  captureUpdate: "IMMEDIATELY";
656
668
  } | {
@@ -888,6 +900,10 @@ export declare const actionCut: {
888
900
  focusedId: string | null;
889
901
  matches: readonly import("../types").SearchMatch[];
890
902
  }> | null;
903
+ activeLockedId: string | null;
904
+ lockedMultiSelections: {
905
+ [groupId: string]: true;
906
+ };
891
907
  };
892
908
  captureUpdate: "IMMEDIATELY";
893
909
  } | {
@@ -1092,6 +1108,10 @@ export declare const actionCut: {
1092
1108
  focusedId: string | null;
1093
1109
  matches: readonly import("../types").SearchMatch[];
1094
1110
  }> | null;
1111
+ activeLockedId: string | null;
1112
+ lockedMultiSelections: {
1113
+ [groupId: string]: true;
1114
+ };
1095
1115
  };
1096
1116
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
1097
1117
  };
@@ -1343,6 +1363,10 @@ export declare const actionCopyAsPng: {
1343
1363
  focusedId: string | null;
1344
1364
  matches: readonly import("../types").SearchMatch[];
1345
1365
  }> | null;
1366
+ activeLockedId: string | null;
1367
+ lockedMultiSelections: {
1368
+ [groupId: string]: true;
1369
+ };
1346
1370
  };
1347
1371
  captureUpdate: "EVENTUALLY";
1348
1372
  }>;
@@ -211,6 +211,10 @@ export declare const actionToggleCropEditor: {
211
211
  focusedId: string | null;
212
212
  matches: readonly import("../types").SearchMatch[];
213
213
  }> | null;
214
+ activeLockedId: string | null;
215
+ lockedMultiSelections: {
216
+ [groupId: string]: true;
217
+ };
214
218
  };
215
219
  captureUpdate: "IMMEDIATELY";
216
220
  };
@@ -214,6 +214,10 @@ export declare const actionDeleteSelected: {
214
214
  focusedId: string | null;
215
215
  matches: readonly import("../types").SearchMatch[];
216
216
  }> | null;
217
+ activeLockedId: string | null;
218
+ lockedMultiSelections: {
219
+ [groupId: string]: true;
220
+ };
217
221
  };
218
222
  captureUpdate: "IMMEDIATELY";
219
223
  } | {
@@ -451,6 +455,10 @@ export declare const actionDeleteSelected: {
451
455
  focusedId: string | null;
452
456
  matches: readonly import("../types").SearchMatch[];
453
457
  }> | null;
458
+ activeLockedId: string | null;
459
+ lockedMultiSelections: {
460
+ [groupId: string]: true;
461
+ };
454
462
  };
455
463
  captureUpdate: "IMMEDIATELY";
456
464
  } | {
@@ -655,6 +663,10 @@ export declare const actionDeleteSelected: {
655
663
  focusedId: string | null;
656
664
  matches: readonly import("../types").SearchMatch[];
657
665
  }> | null;
666
+ activeLockedId: string | null;
667
+ lockedMultiSelections: {
668
+ [groupId: string]: true;
669
+ };
658
670
  };
659
671
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
660
672
  };
@@ -231,6 +231,10 @@ export declare const actionLinkToElement: {
231
231
  focusedId: string | null;
232
232
  matches: readonly import("../types").SearchMatch[];
233
233
  }> | null;
234
+ activeLockedId: string | null;
235
+ lockedMultiSelections: {
236
+ [groupId: string]: true;
237
+ };
234
238
  };
235
239
  captureUpdate: "IMMEDIATELY";
236
240
  elements?: undefined;
@@ -1,16 +1,27 @@
1
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
2
+ import type { AppState } from "../types";
2
3
  export declare const actionToggleElementLock: {
3
4
  name: "toggleElementLock";
4
- label: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.unlock" | "labels.elementLock.lock" | "labels.elementLock.lockAll" | "labels.elementLock.unlockAll";
5
+ label: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.lock" | "labels.elementLock.unlock";
5
6
  icon: (appState: import("../types").UIAppState, elements: readonly ExcalidrawElement[]) => import("react/jsx-runtime").JSX.Element;
6
7
  trackEvent: {
7
8
  category: "element";
8
9
  };
9
- predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
10
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => false | {
10
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
11
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => false | {
11
12
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
12
13
  appState: {
14
+ selectedElementIds: Readonly<{
15
+ [id: string]: true;
16
+ }>;
17
+ selectedGroupIds: {
18
+ [groupId: string]: boolean;
19
+ };
13
20
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
21
+ lockedMultiSelections: {
22
+ [x: string]: true;
23
+ };
24
+ activeLockedId: string | null;
14
25
  contextMenu: {
15
26
  items: import("../components/ContextMenu").ContextMenuItems;
16
27
  top: number;
@@ -97,9 +108,6 @@ export declare const actionToggleElementLock: {
97
108
  } | null;
98
109
  defaultSidebarDockedPreference: boolean;
99
110
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
100
- selectedElementIds: Readonly<{
101
- [id: string]: true;
102
- }>;
103
111
  hoveredElementIds: Readonly<{
104
112
  [id: string]: true;
105
113
  }>;
@@ -119,9 +127,6 @@ export declare const actionToggleElementLock: {
119
127
  gridStep: number;
120
128
  gridModeEnabled: boolean;
121
129
  viewModeEnabled: boolean;
122
- selectedGroupIds: {
123
- [groupId: string]: boolean;
124
- };
125
130
  editingGroupId: string | null;
126
131
  width: number;
127
132
  height: number;
@@ -215,9 +220,9 @@ export declare const actionToggleElementLock: {
215
220
  };
216
221
  captureUpdate: "IMMEDIATELY";
217
222
  };
218
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
223
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
219
224
  } & {
220
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
225
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
221
226
  };
222
227
  export declare const actionUnlockAllElements: {
223
228
  name: "unlockAllElements";
@@ -226,13 +231,18 @@ export declare const actionUnlockAllElements: {
226
231
  };
227
232
  viewMode: false;
228
233
  icon: import("react/jsx-runtime").JSX.Element;
229
- predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
230
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
234
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
235
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
231
236
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
232
237
  appState: {
233
238
  selectedElementIds: {
234
239
  [k: string]: true;
235
240
  };
241
+ selectedGroupIds: {
242
+ [groupId: string]: boolean;
243
+ };
244
+ lockedMultiSelections: {};
245
+ activeLockedId: null;
236
246
  contextMenu: {
237
247
  items: import("../components/ContextMenu").ContextMenuItems;
238
248
  top: number;
@@ -338,9 +348,6 @@ export declare const actionUnlockAllElements: {
338
348
  gridStep: number;
339
349
  gridModeEnabled: boolean;
340
350
  viewModeEnabled: boolean;
341
- selectedGroupIds: {
342
- [groupId: string]: boolean;
343
- };
344
351
  editingGroupId: string | null;
345
352
  width: number;
346
353
  height: number;
@@ -210,6 +210,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
210
210
  focusedId: string | null;
211
211
  matches: readonly import("../types").SearchMatch[];
212
212
  }> | null;
213
+ activeLockedId: string | null;
214
+ lockedMultiSelections: {
215
+ [groupId: string]: true;
216
+ };
213
217
  };
214
218
  captureUpdate: "EVENTUALLY";
215
219
  };
@@ -208,6 +208,10 @@ export declare const actionChangeProjectName: {
208
208
  focusedId: string | null;
209
209
  matches: readonly import("../types").SearchMatch[];
210
210
  }> | null;
211
+ activeLockedId: string | null;
212
+ lockedMultiSelections: {
213
+ [groupId: string]: true;
214
+ };
211
215
  };
212
216
  captureUpdate: "EVENTUALLY";
213
217
  };
@@ -426,6 +430,10 @@ export declare const actionChangeExportScale: {
426
430
  focusedId: string | null;
427
431
  matches: readonly import("../types").SearchMatch[];
428
432
  }> | null;
433
+ activeLockedId: string | null;
434
+ lockedMultiSelections: {
435
+ [groupId: string]: true;
436
+ };
429
437
  };
430
438
  captureUpdate: "EVENTUALLY";
431
439
  };
@@ -644,6 +652,10 @@ export declare const actionChangeExportBackground: {
644
652
  focusedId: string | null;
645
653
  matches: readonly import("../types").SearchMatch[];
646
654
  }> | null;
655
+ activeLockedId: string | null;
656
+ lockedMultiSelections: {
657
+ [groupId: string]: true;
658
+ };
647
659
  };
648
660
  captureUpdate: "EVENTUALLY";
649
661
  };
@@ -862,6 +874,10 @@ export declare const actionChangeExportEmbedScene: {
862
874
  focusedId: string | null;
863
875
  matches: readonly import("../types").SearchMatch[];
864
876
  }> | null;
877
+ activeLockedId: string | null;
878
+ lockedMultiSelections: {
879
+ [groupId: string]: true;
880
+ };
865
881
  };
866
882
  captureUpdate: "EVENTUALLY";
867
883
  };
@@ -1080,6 +1096,10 @@ export declare const actionSaveToActiveFile: {
1080
1096
  focusedId: string | null;
1081
1097
  matches: readonly import("../types").SearchMatch[];
1082
1098
  }> | null;
1099
+ activeLockedId: string | null;
1100
+ lockedMultiSelections: {
1101
+ [groupId: string]: true;
1102
+ };
1083
1103
  };
1084
1104
  } | {
1085
1105
  captureUpdate: "EVENTUALLY";
@@ -1290,6 +1310,10 @@ export declare const actionSaveFileToDisk: {
1290
1310
  focusedId: string | null;
1291
1311
  matches: readonly import("../types").SearchMatch[];
1292
1312
  }> | null;
1313
+ activeLockedId: string | null;
1314
+ lockedMultiSelections: {
1315
+ [groupId: string]: true;
1316
+ };
1293
1317
  };
1294
1318
  } | {
1295
1319
  captureUpdate: "EVENTUALLY";
@@ -1508,6 +1532,10 @@ export declare const actionLoadScene: {
1508
1532
  focusedId: string | null;
1509
1533
  matches: readonly import("../types").SearchMatch[];
1510
1534
  }> | null;
1535
+ activeLockedId: string | null;
1536
+ lockedMultiSelections: {
1537
+ [groupId: string]: true;
1538
+ };
1511
1539
  };
1512
1540
  files: import("../types").BinaryFiles;
1513
1541
  captureUpdate: "IMMEDIATELY";
@@ -1716,6 +1744,10 @@ export declare const actionLoadScene: {
1716
1744
  focusedId: string | null;
1717
1745
  matches: readonly import("../types").SearchMatch[];
1718
1746
  }> | null;
1747
+ activeLockedId: string | null;
1748
+ lockedMultiSelections: {
1749
+ [groupId: string]: true;
1750
+ };
1719
1751
  };
1720
1752
  files: import("../types").BinaryFiles;
1721
1753
  captureUpdate: "EVENTUALLY";
@@ -1935,6 +1967,10 @@ export declare const actionExportWithDarkMode: {
1935
1967
  focusedId: string | null;
1936
1968
  matches: readonly import("../types").SearchMatch[];
1937
1969
  }> | null;
1970
+ activeLockedId: string | null;
1971
+ lockedMultiSelections: {
1972
+ [groupId: string]: true;
1973
+ };
1938
1974
  };
1939
1975
  captureUpdate: "EVENTUALLY";
1940
1976
  };
@@ -209,6 +209,10 @@ export declare const actionFinalize: {
209
209
  focusedId: string | null;
210
210
  matches: readonly import("../types").SearchMatch[];
211
211
  }> | null;
212
+ activeLockedId: string | null;
213
+ lockedMultiSelections: {
214
+ [groupId: string]: true;
215
+ };
212
216
  };
213
217
  captureUpdate: "IMMEDIATELY";
214
218
  } | {
@@ -413,6 +417,10 @@ export declare const actionFinalize: {
413
417
  focusedId: string | null;
414
418
  matches: readonly import("../types").SearchMatch[];
415
419
  }> | null;
420
+ activeLockedId: string | null;
421
+ lockedMultiSelections: {
422
+ [groupId: string]: true;
423
+ };
416
424
  };
417
425
  captureUpdate: "IMMEDIATELY";
418
426
  };
@@ -209,6 +209,10 @@ export declare const actionSelectAllElementsInFrame: {
209
209
  focusedId: string | null;
210
210
  matches: readonly import("../types").SearchMatch[];
211
211
  }> | null;
212
+ activeLockedId: string | null;
213
+ lockedMultiSelections: {
214
+ [groupId: string]: true;
215
+ };
212
216
  };
213
217
  captureUpdate: "IMMEDIATELY";
214
218
  } | {
@@ -431,6 +435,10 @@ export declare const actionRemoveAllElementsFromFrame: {
431
435
  focusedId: string | null;
432
436
  matches: readonly import("../types").SearchMatch[];
433
437
  }> | null;
438
+ activeLockedId: string | null;
439
+ lockedMultiSelections: {
440
+ [groupId: string]: true;
441
+ };
434
442
  };
435
443
  captureUpdate: "IMMEDIATELY";
436
444
  } | {
@@ -654,6 +662,10 @@ export declare const actionupdateFrameRendering: {
654
662
  focusedId: string | null;
655
663
  matches: readonly import("../types").SearchMatch[];
656
664
  }> | null;
665
+ activeLockedId: string | null;
666
+ lockedMultiSelections: {
667
+ [groupId: string]: true;
668
+ };
657
669
  };
658
670
  captureUpdate: "EVENTUALLY";
659
671
  };
@@ -874,6 +886,10 @@ export declare const actionSetFrameAsActiveTool: {
874
886
  focusedId: string | null;
875
887
  matches: readonly import("../types").SearchMatch[];
876
888
  }> | null;
889
+ activeLockedId: string | null;
890
+ lockedMultiSelections: {
891
+ [groupId: string]: true;
892
+ };
877
893
  };
878
894
  captureUpdate: "EVENTUALLY";
879
895
  };