@zsviczian/excalidraw 0.15.2-obsidian-4 → 0.15.2-obsidian-6

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 (73) hide show
  1. package/README.md +4 -0
  2. package/dist/excalidraw.development.js +273 -143
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/dist/excalidraw.production.min.js.LICENSE.txt +2 -0
  5. package/package.json +1 -1
  6. package/types/actions/actionAddToLibrary.d.ts +30 -3
  7. package/types/actions/actionAlign.d.ts +12 -6
  8. package/types/actions/actionBoundText.d.ts +21 -3
  9. package/types/actions/actionCanvas.d.ts +397 -17
  10. package/types/actions/actionClipboard.d.ts +47 -5
  11. package/types/actions/actionDeleteSelected.d.ts +27 -3
  12. package/types/actions/actionDistribute.d.ts +2 -2
  13. package/types/actions/actionElementLock.d.ts +21 -2
  14. package/types/actions/actionExport.d.ts +90 -9
  15. package/types/actions/actionFinalize.d.ts +20 -2
  16. package/types/actions/actionFlip.d.ts +2 -2
  17. package/types/actions/actionFrame.d.ts +475 -0
  18. package/types/actions/actionGroup.d.ts +2 -2
  19. package/types/actions/actionLinearEditor.d.ts +10 -1
  20. package/types/actions/actionMenu.d.ts +30 -3
  21. package/types/actions/actionNavigate.d.ts +1 -1
  22. package/types/actions/actionProperties.d.ts +130 -13
  23. package/types/actions/actionStyles.d.ts +10 -1
  24. package/types/actions/actionToggleGridMode.d.ts +10 -1
  25. package/types/actions/actionToggleStats.d.ts +10 -1
  26. package/types/actions/actionToggleViewMode.d.ts +10 -1
  27. package/types/actions/actionToggleZenMode.d.ts +10 -1
  28. package/types/actions/actionZindex.d.ts +4 -4
  29. package/types/actions/types.d.ts +1 -1
  30. package/types/appState.d.ts +1 -1
  31. package/types/clients.d.ts +1 -5
  32. package/types/components/App.d.ts +29 -2
  33. package/types/components/Avatar.d.ts +0 -1
  34. package/types/components/Dialog.d.ts +2 -1
  35. package/types/components/FilledButton.d.ts +2 -1
  36. package/types/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -0
  37. package/types/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -0
  38. package/types/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -0
  39. package/types/components/ToolButton.d.ts +2 -1
  40. package/types/components/dropdownMenu/DropdownMenu.d.ts +3 -2
  41. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +4 -2
  42. package/types/components/icons.d.ts +4 -0
  43. package/types/components/main-menu/MainMenu.d.ts +3 -2
  44. package/types/constants.d.ts +23 -1
  45. package/types/context/tunnels.d.ts +1 -0
  46. package/types/data/url.d.ts +2 -0
  47. package/types/element/Hyperlink.d.ts +20 -7
  48. package/types/element/binding.d.ts +1 -1
  49. package/types/element/bounds.d.ts +31 -6
  50. package/types/element/collision.d.ts +7 -7
  51. package/types/element/dragElements.d.ts +2 -1
  52. package/types/element/iframe.d.ts +167 -0
  53. package/types/element/index.d.ts +3 -2
  54. package/types/element/linearElementEditor.d.ts +11 -2
  55. package/types/element/newElement.d.ts +7 -2
  56. package/types/element/transformHandles.d.ts +8 -1
  57. package/types/element/typeChecks.d.ts +5 -3
  58. package/types/element/types.d.ts +20 -4
  59. package/types/frame.d.ts +40 -0
  60. package/types/groups.d.ts +4 -0
  61. package/types/keys.d.ts +3 -0
  62. package/types/math.d.ts +1 -0
  63. package/types/packages/excalidraw/example/initialData.d.ts +6 -0
  64. package/types/packages/excalidraw/index.d.ts +1 -0
  65. package/types/renderer/renderElement.d.ts +3 -2
  66. package/types/renderer/renderScene.d.ts +12 -3
  67. package/types/renderer/roundRect.d.ts +1 -1
  68. package/types/scene/Scene.d.ts +8 -1
  69. package/types/scene/export.d.ts +1 -0
  70. package/types/scene/selection.d.ts +13 -3
  71. package/types/types.d.ts +38 -3
  72. package/types/utils.d.ts +46 -16
  73. package/types/zindex.d.ts +4 -4
@@ -44,6 +44,10 @@ export declare const actionCut: {
44
44
  showWelcomeScreen: boolean;
45
45
  isLoading: boolean;
46
46
  errorMessage: import("react").ReactNode;
47
+ activeIFrame: {
48
+ element: import("../element/types").NonDeletedExcalidrawElement;
49
+ state: "active" | "hover";
50
+ } | null;
47
51
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
48
52
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
49
53
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -51,12 +55,16 @@ export declare const actionCut: {
51
55
  isBindingEnabled: boolean;
52
56
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
53
57
  suggestedBindings: import("../element/binding").SuggestedBinding[];
58
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
59
+ shouldRenderFrames: boolean;
60
+ editingFrame: string | null;
61
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
54
62
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
55
63
  activeTool: {
56
64
  lastActiveTool: import("../types").LastActiveTool;
57
65
  locked: boolean;
58
66
  } & ({
59
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
67
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "iframe" | "image" | "frame" | "freedraw" | "eraser" | "hand";
60
68
  customType: null;
61
69
  } | {
62
70
  type: "custom";
@@ -107,6 +115,7 @@ export declare const actionCut: {
107
115
  previousSelectedElementIds: {
108
116
  [id: string]: boolean;
109
117
  };
118
+ selectedElementsAreBeingDragged: boolean;
110
119
  shouldCacheIgnoreZoom: boolean;
111
120
  toast: {
112
121
  message: string;
@@ -203,6 +212,10 @@ export declare const actionCut: {
203
212
  showWelcomeScreen: boolean;
204
213
  isLoading: boolean;
205
214
  errorMessage: import("react").ReactNode;
215
+ activeIFrame: {
216
+ element: import("../element/types").NonDeletedExcalidrawElement;
217
+ state: "active" | "hover";
218
+ } | null;
206
219
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
207
220
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
208
221
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -210,12 +223,16 @@ export declare const actionCut: {
210
223
  isBindingEnabled: boolean;
211
224
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
212
225
  suggestedBindings: import("../element/binding").SuggestedBinding[];
226
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
227
+ shouldRenderFrames: boolean;
228
+ editingFrame: string | null;
229
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
213
230
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
214
231
  activeTool: {
215
232
  lastActiveTool: import("../types").LastActiveTool;
216
233
  locked: boolean;
217
234
  } & ({
218
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
235
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "iframe" | "image" | "frame" | "freedraw" | "eraser" | "hand";
219
236
  customType: null;
220
237
  } | {
221
238
  type: "custom";
@@ -266,6 +283,7 @@ export declare const actionCut: {
266
283
  previousSelectedElementIds: {
267
284
  [id: string]: boolean;
268
285
  };
286
+ selectedElementsAreBeingDragged: boolean;
269
287
  shouldCacheIgnoreZoom: boolean;
270
288
  toast: {
271
289
  message: string;
@@ -329,13 +347,14 @@ export declare const actionCut: {
329
347
  lastActiveTool: import("../types").LastActiveTool;
330
348
  locked: boolean;
331
349
  } & ({
332
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
350
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "iframe" | "image" | "frame" | "freedraw" | "eraser" | "hand";
333
351
  customType: null;
334
352
  } | {
335
353
  type: "custom";
336
354
  customType: string;
337
355
  });
338
356
  multiElement: null;
357
+ activeIFrame: null;
339
358
  selectedElementIds: {};
340
359
  contextMenu: {
341
360
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -351,6 +370,10 @@ export declare const actionCut: {
351
370
  isBindingEnabled: boolean;
352
371
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
353
372
  suggestedBindings: import("../element/binding").SuggestedBinding[];
373
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
374
+ shouldRenderFrames: boolean;
375
+ editingFrame: string | null;
376
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
354
377
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
355
378
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
356
379
  penMode: boolean;
@@ -395,6 +418,7 @@ export declare const actionCut: {
395
418
  previousSelectedElementIds: {
396
419
  [id: string]: boolean;
397
420
  };
421
+ selectedElementsAreBeingDragged: boolean;
398
422
  shouldCacheIgnoreZoom: boolean;
399
423
  toast: {
400
424
  message: string;
@@ -476,6 +500,10 @@ export declare const actionCopyAsSvg: {
476
500
  } | null;
477
501
  showWelcomeScreen: boolean;
478
502
  isLoading: boolean;
503
+ activeIFrame: {
504
+ element: import("../element/types").NonDeletedExcalidrawElement;
505
+ state: "active" | "hover";
506
+ } | null;
479
507
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
480
508
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
481
509
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -483,13 +511,17 @@ export declare const actionCopyAsSvg: {
483
511
  isBindingEnabled: boolean;
484
512
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
485
513
  suggestedBindings: import("../element/binding").SuggestedBinding[];
514
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
515
+ shouldRenderFrames: boolean;
516
+ editingFrame: string | null;
517
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
486
518
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
487
519
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
488
520
  activeTool: {
489
521
  lastActiveTool: import("../types").LastActiveTool;
490
522
  locked: boolean;
491
523
  } & ({
492
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
524
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "iframe" | "image" | "frame" | "freedraw" | "eraser" | "hand";
493
525
  customType: null;
494
526
  } | {
495
527
  type: "custom";
@@ -540,6 +572,7 @@ export declare const actionCopyAsSvg: {
540
572
  previousSelectedElementIds: {
541
573
  [id: string]: boolean;
542
574
  };
575
+ selectedElementsAreBeingDragged: boolean;
543
576
  shouldCacheIgnoreZoom: boolean;
544
577
  toast: {
545
578
  message: string;
@@ -620,6 +653,10 @@ export declare const actionCopyAsPng: {
620
653
  } | null;
621
654
  showWelcomeScreen: boolean;
622
655
  isLoading: boolean;
656
+ activeIFrame: {
657
+ element: import("../element/types").NonDeletedExcalidrawElement;
658
+ state: "active" | "hover";
659
+ } | null;
623
660
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
624
661
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
625
662
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -627,13 +664,17 @@ export declare const actionCopyAsPng: {
627
664
  isBindingEnabled: boolean;
628
665
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
629
666
  suggestedBindings: import("../element/binding").SuggestedBinding[];
667
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
668
+ shouldRenderFrames: boolean;
669
+ editingFrame: string | null;
670
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
630
671
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
631
672
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
632
673
  activeTool: {
633
674
  lastActiveTool: import("../types").LastActiveTool;
634
675
  locked: boolean;
635
676
  } & ({
636
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
677
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "iframe" | "image" | "frame" | "freedraw" | "eraser" | "hand";
637
678
  customType: null;
638
679
  } | {
639
680
  type: "custom";
@@ -684,6 +725,7 @@ export declare const actionCopyAsPng: {
684
725
  previousSelectedElementIds: {
685
726
  [id: string]: boolean;
686
727
  };
728
+ selectedElementsAreBeingDragged: boolean;
687
729
  shouldCacheIgnoreZoom: boolean;
688
730
  toast: {
689
731
  message: string;
@@ -20,6 +20,10 @@ export declare const actionDeleteSelected: {
20
20
  showWelcomeScreen: boolean;
21
21
  isLoading: boolean;
22
22
  errorMessage: import("react").ReactNode;
23
+ activeIFrame: {
24
+ element: import("../element/types").NonDeletedExcalidrawElement;
25
+ state: "active" | "hover";
26
+ } | null;
23
27
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
24
28
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
25
29
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -27,12 +31,16 @@ export declare const actionDeleteSelected: {
27
31
  isBindingEnabled: boolean;
28
32
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
29
33
  suggestedBindings: import("../element/binding").SuggestedBinding[];
34
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
35
+ shouldRenderFrames: boolean;
36
+ editingFrame: string | null;
37
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
30
38
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
31
39
  activeTool: {
32
40
  lastActiveTool: import("../types").LastActiveTool;
33
41
  locked: boolean;
34
42
  } & ({
35
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
43
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "iframe" | "image" | "frame" | "freedraw" | "eraser" | "hand";
36
44
  customType: null;
37
45
  } | {
38
46
  type: "custom";
@@ -83,6 +91,7 @@ export declare const actionDeleteSelected: {
83
91
  previousSelectedElementIds: {
84
92
  [id: string]: boolean;
85
93
  };
94
+ selectedElementsAreBeingDragged: boolean;
86
95
  shouldCacheIgnoreZoom: boolean;
87
96
  toast: {
88
97
  message: string;
@@ -179,6 +188,10 @@ export declare const actionDeleteSelected: {
179
188
  showWelcomeScreen: boolean;
180
189
  isLoading: boolean;
181
190
  errorMessage: import("react").ReactNode;
191
+ activeIFrame: {
192
+ element: import("../element/types").NonDeletedExcalidrawElement;
193
+ state: "active" | "hover";
194
+ } | null;
182
195
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
183
196
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
184
197
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -186,12 +199,16 @@ export declare const actionDeleteSelected: {
186
199
  isBindingEnabled: boolean;
187
200
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
188
201
  suggestedBindings: import("../element/binding").SuggestedBinding[];
202
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
203
+ shouldRenderFrames: boolean;
204
+ editingFrame: string | null;
205
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
189
206
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
190
207
  activeTool: {
191
208
  lastActiveTool: import("../types").LastActiveTool;
192
209
  locked: boolean;
193
210
  } & ({
194
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
211
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "iframe" | "image" | "frame" | "freedraw" | "eraser" | "hand";
195
212
  customType: null;
196
213
  } | {
197
214
  type: "custom";
@@ -242,6 +259,7 @@ export declare const actionDeleteSelected: {
242
259
  previousSelectedElementIds: {
243
260
  [id: string]: boolean;
244
261
  };
262
+ selectedElementsAreBeingDragged: boolean;
245
263
  shouldCacheIgnoreZoom: boolean;
246
264
  toast: {
247
265
  message: string;
@@ -305,13 +323,14 @@ export declare const actionDeleteSelected: {
305
323
  lastActiveTool: import("../types").LastActiveTool;
306
324
  locked: boolean;
307
325
  } & ({
308
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
326
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "iframe" | "image" | "frame" | "freedraw" | "eraser" | "hand";
309
327
  customType: null;
310
328
  } | {
311
329
  type: "custom";
312
330
  customType: string;
313
331
  });
314
332
  multiElement: null;
333
+ activeIFrame: null;
315
334
  selectedElementIds: {};
316
335
  contextMenu: {
317
336
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -327,6 +346,10 @@ export declare const actionDeleteSelected: {
327
346
  isBindingEnabled: boolean;
328
347
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
329
348
  suggestedBindings: import("../element/binding").SuggestedBinding[];
349
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
350
+ shouldRenderFrames: boolean;
351
+ editingFrame: string | null;
352
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
330
353
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
331
354
  editingLinearElement: LinearElementEditor | null;
332
355
  penMode: boolean;
@@ -371,6 +394,7 @@ export declare const actionDeleteSelected: {
371
394
  previousSelectedElementIds: {
372
395
  [id: string]: boolean;
373
396
  };
397
+ selectedElementsAreBeingDragged: boolean;
374
398
  shouldCacheIgnoreZoom: boolean;
375
399
  toast: {
376
400
  message: string;
@@ -8,7 +8,7 @@ export declare const distributeHorizontally: {
8
8
  };
9
9
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
10
10
  appState: Readonly<AppState>;
11
- elements: ExcalidrawElement[];
11
+ elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
12
12
  commitToHistory: true;
13
13
  };
14
14
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
@@ -23,7 +23,7 @@ export declare const distributeVertically: {
23
23
  };
24
24
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
25
25
  appState: Readonly<AppState>;
26
- elements: ExcalidrawElement[];
26
+ elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
27
27
  commitToHistory: true;
28
28
  };
29
29
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
@@ -5,6 +5,7 @@ export declare const actionToggleElementLock: {
5
5
  trackEvent: {
6
6
  category: "element";
7
7
  };
8
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
8
9
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
9
10
  elements: ExcalidrawElement[];
10
11
  appState: {
@@ -17,6 +18,10 @@ export declare const actionToggleElementLock: {
17
18
  showWelcomeScreen: boolean;
18
19
  isLoading: boolean;
19
20
  errorMessage: import("react").ReactNode;
21
+ activeIFrame: {
22
+ element: import("../element/types").NonDeletedExcalidrawElement;
23
+ state: "active" | "hover";
24
+ } | null;
20
25
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
21
26
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
22
27
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -24,13 +29,17 @@ export declare const actionToggleElementLock: {
24
29
  isBindingEnabled: boolean;
25
30
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
26
31
  suggestedBindings: import("../element/binding").SuggestedBinding[];
32
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
33
+ shouldRenderFrames: boolean;
34
+ editingFrame: string | null;
35
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
27
36
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
28
37
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
29
38
  activeTool: {
30
39
  lastActiveTool: import("../types").LastActiveTool;
31
40
  locked: boolean;
32
41
  } & ({
33
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
42
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "iframe" | "image" | "frame" | "freedraw" | "eraser" | "hand";
34
43
  customType: null;
35
44
  } | {
36
45
  type: "custom";
@@ -81,6 +90,7 @@ export declare const actionToggleElementLock: {
81
90
  previousSelectedElementIds: {
82
91
  [id: string]: boolean;
83
92
  };
93
+ selectedElementsAreBeingDragged: boolean;
84
94
  shouldCacheIgnoreZoom: boolean;
85
95
  toast: {
86
96
  message: string;
@@ -163,6 +173,10 @@ export declare const actionUnlockAllElements: {
163
173
  showWelcomeScreen: boolean;
164
174
  isLoading: boolean;
165
175
  errorMessage: import("react").ReactNode;
176
+ activeIFrame: {
177
+ element: import("../element/types").NonDeletedExcalidrawElement;
178
+ state: "active" | "hover";
179
+ } | null;
166
180
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
167
181
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
168
182
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -170,13 +184,17 @@ export declare const actionUnlockAllElements: {
170
184
  isBindingEnabled: boolean;
171
185
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
172
186
  suggestedBindings: import("../element/binding").SuggestedBinding[];
187
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
188
+ shouldRenderFrames: boolean;
189
+ editingFrame: string | null;
190
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
173
191
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
174
192
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
175
193
  activeTool: {
176
194
  lastActiveTool: import("../types").LastActiveTool;
177
195
  locked: boolean;
178
196
  } & ({
179
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
197
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "iframe" | "image" | "frame" | "freedraw" | "eraser" | "hand";
180
198
  customType: null;
181
199
  } | {
182
200
  type: "custom";
@@ -224,6 +242,7 @@ export declare const actionUnlockAllElements: {
224
242
  previousSelectedElementIds: {
225
243
  [id: string]: boolean;
226
244
  };
245
+ selectedElementsAreBeingDragged: boolean;
227
246
  shouldCacheIgnoreZoom: boolean;
228
247
  toast: {
229
248
  message: string;