@excalidraw/excalidraw 0.15.2-6546-eae7ba2 → 0.15.2-6546-3398d86

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 (94) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/excalidraw-assets/locales/{es-ES-json-f2467c6a875a9e288756.js → es-ES-json-4f3da97feff33cb00e6d.js} +1 -1
  3. package/dist/excalidraw-assets/locales/{hi-IN-json-e22f4ad73126c2971850.js → hi-IN-json-3898c9c1216b44476529.js} +1 -1
  4. package/dist/excalidraw-assets/locales/{id-ID-json-0e69caf5d919807ed234.js → id-ID-json-43d505d7071a0e359681.js} +1 -1
  5. package/dist/excalidraw-assets/locales/{kk-KZ-json-106d2a41c68f69765668.js → kk-KZ-json-f648362328b839e9313f.js} +1 -1
  6. package/dist/excalidraw-assets/locales/{pa-IN-json-0fd029451b07248c5194.js → pa-IN-json-d9ee09801ed220840b2b.js} +1 -1
  7. package/dist/excalidraw-assets/{vendor-53d1c69ef585b6dd219b.js → vendor-ef3c5d81a00ef582b871.js} +2 -2
  8. package/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.js → vendor-a14cd58fa2db417e42b2.js} +6 -6
  9. package/dist/excalidraw.development.js +2163 -2119
  10. package/dist/excalidraw.production.min.js +1 -1
  11. package/dist/excalidraw.production.min.js.LICENSE.txt +15 -0
  12. package/package.json +7 -2
  13. package/types/actions/actionAddToLibrary.d.ts +21 -10
  14. package/types/actions/actionAlign.d.ts +0 -1
  15. package/types/actions/actionBoundText.d.ts +14 -7
  16. package/types/actions/actionCanvas.d.ts +76 -39
  17. package/types/actions/actionClipboard.d.ts +32 -16
  18. package/types/actions/actionDeleteSelected.d.ts +18 -10
  19. package/types/actions/actionDistribute.d.ts +0 -1
  20. package/types/actions/actionDuplicateSelection.d.ts +0 -1
  21. package/types/actions/actionElementLock.d.ts +14 -7
  22. package/types/actions/actionExport.d.ts +71 -35
  23. package/types/actions/actionFinalize.d.ts +11 -7
  24. package/types/actions/actionFlip.d.ts +0 -1
  25. package/types/actions/actionFrame.d.ts +21 -10
  26. package/types/actions/actionGroup.d.ts +0 -1
  27. package/types/actions/actionLinearEditor.d.ts +7 -4
  28. package/types/actions/actionMenu.d.ts +21 -10
  29. package/types/actions/actionProperties.d.ts +91 -40
  30. package/types/actions/actionSelectAll.d.ts +0 -1
  31. package/types/actions/actionStyles.d.ts +7 -4
  32. package/types/actions/actionToggleGridMode.d.ts +7 -4
  33. package/types/actions/actionToggleStats.d.ts +7 -4
  34. package/types/actions/actionToggleViewMode.d.ts +7 -4
  35. package/types/actions/actionToggleZenMode.d.ts +7 -4
  36. package/types/actions/types.d.ts +1 -1
  37. package/types/appState.d.ts +3 -3
  38. package/types/clipboard.d.ts +1 -2
  39. package/types/colors.d.ts +9 -9
  40. package/types/components/App.d.ts +10 -0
  41. package/types/components/Button.d.ts +0 -1
  42. package/types/components/Card.d.ts +0 -1
  43. package/types/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  44. package/types/components/DefaultSidebar.d.ts +0 -1
  45. package/types/components/EyeDropper.d.ts +0 -1
  46. package/types/components/LibraryMenuHeaderContent.d.ts +0 -1
  47. package/types/components/LibraryUnit.d.ts +0 -1
  48. package/types/components/LoadingMessage.d.ts +0 -1
  49. package/types/components/Section.d.ts +1 -1
  50. package/types/components/Sidebar/SidebarTab.d.ts +0 -1
  51. package/types/components/Sidebar/SidebarTabTrigger.d.ts +0 -1
  52. package/types/components/Sidebar/SidebarTabTriggers.d.ts +0 -1
  53. package/types/components/Sidebar/SidebarTabs.d.ts +0 -1
  54. package/types/components/Stack.d.ts +2 -2
  55. package/types/components/Trans.d.ts +2 -1
  56. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +0 -1
  57. package/types/components/icons.d.ts +1 -0
  58. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -1
  59. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -1
  60. package/types/components/welcome-screen/WelcomeScreen.d.ts +0 -1
  61. package/types/constants.d.ts +16 -3
  62. package/types/data/transform.d.ts +7 -11
  63. package/types/data/url.d.ts +5 -0
  64. package/types/element/Hyperlink.d.ts +16 -7
  65. package/types/element/collision.d.ts +2 -2
  66. package/types/element/embeddable.d.ts +153 -0
  67. package/types/element/linearElementEditor.d.ts +8 -5
  68. package/types/element/newElement.d.ts +5 -2
  69. package/types/element/textElement.d.ts +4 -7
  70. package/types/element/transformHandles.d.ts +1 -1
  71. package/types/element/typeChecks.d.ts +2 -1
  72. package/types/element/types.d.ts +13 -2
  73. package/types/hooks/useOutsideClick.d.ts +0 -1
  74. package/types/hooks/useScrollPosition.d.ts +0 -1
  75. package/types/i18n.d.ts +5 -2
  76. package/types/keys.d.ts +1 -0
  77. package/types/packages/excalidraw/example/initialData.d.ts +2 -1
  78. package/types/packages/excalidraw/webpack.dev.config.d.ts +5 -2
  79. package/types/packages/excalidraw/webpack.prod.config.d.ts +3 -0
  80. package/types/packages/utils.d.ts +2 -1
  81. package/types/renderer/renderElement.d.ts +1 -1
  82. package/types/renderer/renderScene.d.ts +2 -1
  83. package/types/scene/export.d.ts +1 -0
  84. package/types/types.d.ts +9 -3
  85. package/types/utility-types.d.ts +1 -1
  86. package/types/utils.d.ts +2 -1
  87. /package/dist/excalidraw-assets/{vendor-53d1c69ef585b6dd219b.js.LICENSE.txt → vendor-ef3c5d81a00ef582b871.js.LICENSE.txt} +0 -0
  88. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{es-ES-json-f2467c6a875a9e288756.d.ts → es-ES-json-4f3da97feff33cb00e6d.d.ts} +0 -0
  89. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{hi-IN-json-e22f4ad73126c2971850.d.ts → hi-IN-json-3898c9c1216b44476529.d.ts} +0 -0
  90. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{id-ID-json-0e69caf5d919807ed234.d.ts → id-ID-json-43d505d7071a0e359681.d.ts} +0 -0
  91. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{kk-KZ-json-106d2a41c68f69765668.d.ts → kk-KZ-json-f648362328b839e9313f.d.ts} +0 -0
  92. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pa-IN-json-0fd029451b07248c5194.d.ts → pa-IN-json-d9ee09801ed220840b2b.d.ts} +0 -0
  93. /package/types/packages/excalidraw/dist/excalidraw-assets/{vendor-53d1c69ef585b6dd219b.d.ts → vendor-ef3c5d81a00ef582b871.d.ts} +0 -0
  94. /package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.d.ts → vendor-a14cd58fa2db417e42b2.d.ts} +0 -0
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExcalidrawElement } from "../element/types";
3
2
  import { AppState, NormalizedZoomValue } from "../types";
4
3
  export declare const actionChangeViewBackgroundColor: {
@@ -23,7 +22,7 @@ export declare const actionClearCanvas: {
23
22
  elements: ExcalidrawElement[];
24
23
  appState: {
25
24
  files: {};
26
- theme: string;
25
+ theme: import("../element/types").Theme;
27
26
  penMode: boolean;
28
27
  penDetected: boolean;
29
28
  exportBackground: boolean;
@@ -41,13 +40,19 @@ export declare const actionClearCanvas: {
41
40
  lastActiveTool: import("../types").LastActiveTool;
42
41
  locked: boolean;
43
42
  } & ({
44
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
43
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
45
44
  customType: null;
46
45
  } | {
47
46
  type: "custom";
48
47
  customType: string;
49
48
  });
50
49
  name: string;
50
+ toast: {
51
+ message: string;
52
+ closable?: boolean | undefined;
53
+ duration?: number | undefined;
54
+ } | null;
55
+ collaborators: Map<string, import("../types").Collaborator>;
51
56
  contextMenu: {
52
57
  items: import("../components/ContextMenu").ContextMenuItems;
53
58
  top: number;
@@ -56,6 +61,10 @@ export declare const actionClearCanvas: {
56
61
  showWelcomeScreen: boolean;
57
62
  isLoading: boolean;
58
63
  errorMessage: import("react").ReactNode;
64
+ activeEmbeddable: {
65
+ element: import("../element/types").NonDeletedExcalidrawElement;
66
+ state: "active" | "hover";
67
+ } | null;
59
68
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
60
69
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
61
70
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -116,11 +125,6 @@ export declare const actionClearCanvas: {
116
125
  };
117
126
  selectedElementsAreBeingDragged: boolean;
118
127
  shouldCacheIgnoreZoom: boolean;
119
- toast: {
120
- message: string;
121
- closable?: boolean | undefined;
122
- duration?: number | undefined;
123
- } | null;
124
128
  zenModeEnabled: boolean;
125
129
  viewModeEnabled: boolean;
126
130
  selectedGroupIds: {
@@ -128,10 +132,9 @@ export declare const actionClearCanvas: {
128
132
  };
129
133
  editingGroupId: string | null;
130
134
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
131
- collaborators: Map<string, import("../types").Collaborator>;
132
135
  currentChartType: import("../element/types").ChartType;
133
136
  pendingImageElementId: string | null;
134
- showHyperlinkPopup: false | "info" | "editor";
137
+ showHyperlinkPopup: false | "editor" | "info";
135
138
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
136
139
  };
137
140
  commitToHistory: true;
@@ -160,6 +163,10 @@ export declare const actionZoomIn: {
160
163
  showWelcomeScreen: boolean;
161
164
  isLoading: boolean;
162
165
  errorMessage: import("react").ReactNode;
166
+ activeEmbeddable: {
167
+ element: import("../element/types").NonDeletedExcalidrawElement;
168
+ state: "active" | "hover";
169
+ } | null;
163
170
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
164
171
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
165
172
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -182,7 +189,7 @@ export declare const actionZoomIn: {
182
189
  lastActiveTool: import("../types").LastActiveTool;
183
190
  locked: boolean;
184
191
  } & ({
185
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
192
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
186
193
  customType: null;
187
194
  } | {
188
195
  type: "custom";
@@ -236,7 +243,7 @@ export declare const actionZoomIn: {
236
243
  duration?: number | undefined;
237
244
  } | null;
238
245
  zenModeEnabled: boolean;
239
- theme: string;
246
+ theme: import("../element/types").Theme;
240
247
  gridSize: number | null;
241
248
  viewModeEnabled: boolean;
242
249
  selectedGroupIds: {
@@ -259,7 +266,7 @@ export declare const actionZoomIn: {
259
266
  data: import("../charts").Spreadsheet;
260
267
  };
261
268
  pendingImageElementId: string | null;
262
- showHyperlinkPopup: false | "info" | "editor";
269
+ showHyperlinkPopup: false | "editor" | "info";
263
270
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
264
271
  };
265
272
  commitToHistory: false;
@@ -290,6 +297,10 @@ export declare const actionZoomOut: {
290
297
  showWelcomeScreen: boolean;
291
298
  isLoading: boolean;
292
299
  errorMessage: import("react").ReactNode;
300
+ activeEmbeddable: {
301
+ element: import("../element/types").NonDeletedExcalidrawElement;
302
+ state: "active" | "hover";
303
+ } | null;
293
304
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
294
305
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
295
306
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -312,7 +323,7 @@ export declare const actionZoomOut: {
312
323
  lastActiveTool: import("../types").LastActiveTool;
313
324
  locked: boolean;
314
325
  } & ({
315
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
326
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
316
327
  customType: null;
317
328
  } | {
318
329
  type: "custom";
@@ -366,7 +377,7 @@ export declare const actionZoomOut: {
366
377
  duration?: number | undefined;
367
378
  } | null;
368
379
  zenModeEnabled: boolean;
369
- theme: string;
380
+ theme: import("../element/types").Theme;
370
381
  gridSize: number | null;
371
382
  viewModeEnabled: boolean;
372
383
  selectedGroupIds: {
@@ -389,7 +400,7 @@ export declare const actionZoomOut: {
389
400
  data: import("../charts").Spreadsheet;
390
401
  };
391
402
  pendingImageElementId: string | null;
392
- showHyperlinkPopup: false | "info" | "editor";
403
+ showHyperlinkPopup: false | "editor" | "info";
393
404
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
394
405
  };
395
406
  commitToHistory: false;
@@ -420,6 +431,10 @@ export declare const actionResetZoom: {
420
431
  showWelcomeScreen: boolean;
421
432
  isLoading: boolean;
422
433
  errorMessage: import("react").ReactNode;
434
+ activeEmbeddable: {
435
+ element: import("../element/types").NonDeletedExcalidrawElement;
436
+ state: "active" | "hover";
437
+ } | null;
423
438
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
424
439
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
425
440
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -442,7 +457,7 @@ export declare const actionResetZoom: {
442
457
  lastActiveTool: import("../types").LastActiveTool;
443
458
  locked: boolean;
444
459
  } & ({
445
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
460
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
446
461
  customType: null;
447
462
  } | {
448
463
  type: "custom";
@@ -496,7 +511,7 @@ export declare const actionResetZoom: {
496
511
  duration?: number | undefined;
497
512
  } | null;
498
513
  zenModeEnabled: boolean;
499
- theme: string;
514
+ theme: import("../element/types").Theme;
500
515
  gridSize: number | null;
501
516
  viewModeEnabled: boolean;
502
517
  selectedGroupIds: {
@@ -519,7 +534,7 @@ export declare const actionResetZoom: {
519
534
  data: import("../charts").Spreadsheet;
520
535
  };
521
536
  pendingImageElementId: string | null;
522
- showHyperlinkPopup: false | "info" | "editor";
537
+ showHyperlinkPopup: false | "editor" | "info";
523
538
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
524
539
  };
525
540
  commitToHistory: false;
@@ -551,6 +566,10 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
551
566
  showWelcomeScreen: boolean;
552
567
  isLoading: boolean;
553
568
  errorMessage: import("react").ReactNode;
569
+ activeEmbeddable: {
570
+ element: import("../element/types").NonDeletedExcalidrawElement;
571
+ state: "active" | "hover";
572
+ } | null;
554
573
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
555
574
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
556
575
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -573,7 +592,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
573
592
  lastActiveTool: import("../types").LastActiveTool;
574
593
  locked: boolean;
575
594
  } & ({
576
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
595
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
577
596
  customType: null;
578
597
  } | {
579
598
  type: "custom";
@@ -627,7 +646,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
627
646
  duration?: number | undefined;
628
647
  } | null;
629
648
  zenModeEnabled: boolean;
630
- theme: string;
649
+ theme: import("../element/types").Theme;
631
650
  gridSize: number | null;
632
651
  viewModeEnabled: boolean;
633
652
  selectedGroupIds: {
@@ -650,7 +669,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
650
669
  data: import("../charts").Spreadsheet;
651
670
  };
652
671
  pendingImageElementId: string | null;
653
- showHyperlinkPopup: false | "info" | "editor";
672
+ showHyperlinkPopup: false | "editor" | "info";
654
673
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
655
674
  };
656
675
  commitToHistory: boolean;
@@ -675,6 +694,10 @@ export declare const actionZoomToFitSelectionInViewport: {
675
694
  showWelcomeScreen: boolean;
676
695
  isLoading: boolean;
677
696
  errorMessage: import("react").ReactNode;
697
+ activeEmbeddable: {
698
+ element: import("../element/types").NonDeletedExcalidrawElement;
699
+ state: "active" | "hover";
700
+ } | null;
678
701
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
679
702
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
680
703
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -697,7 +720,7 @@ export declare const actionZoomToFitSelectionInViewport: {
697
720
  lastActiveTool: import("../types").LastActiveTool;
698
721
  locked: boolean;
699
722
  } & ({
700
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
723
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
701
724
  customType: null;
702
725
  } | {
703
726
  type: "custom";
@@ -751,7 +774,7 @@ export declare const actionZoomToFitSelectionInViewport: {
751
774
  duration?: number | undefined;
752
775
  } | null;
753
776
  zenModeEnabled: boolean;
754
- theme: string;
777
+ theme: import("../element/types").Theme;
755
778
  gridSize: number | null;
756
779
  viewModeEnabled: boolean;
757
780
  selectedGroupIds: {
@@ -774,7 +797,7 @@ export declare const actionZoomToFitSelectionInViewport: {
774
797
  data: import("../charts").Spreadsheet;
775
798
  };
776
799
  pendingImageElementId: string | null;
777
- showHyperlinkPopup: false | "info" | "editor";
800
+ showHyperlinkPopup: false | "editor" | "info";
778
801
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
779
802
  };
780
803
  commitToHistory: boolean;
@@ -803,6 +826,10 @@ export declare const actionZoomToFitSelection: {
803
826
  showWelcomeScreen: boolean;
804
827
  isLoading: boolean;
805
828
  errorMessage: import("react").ReactNode;
829
+ activeEmbeddable: {
830
+ element: import("../element/types").NonDeletedExcalidrawElement;
831
+ state: "active" | "hover";
832
+ } | null;
806
833
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
807
834
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
808
835
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -825,7 +852,7 @@ export declare const actionZoomToFitSelection: {
825
852
  lastActiveTool: import("../types").LastActiveTool;
826
853
  locked: boolean;
827
854
  } & ({
828
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
855
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
829
856
  customType: null;
830
857
  } | {
831
858
  type: "custom";
@@ -879,7 +906,7 @@ export declare const actionZoomToFitSelection: {
879
906
  duration?: number | undefined;
880
907
  } | null;
881
908
  zenModeEnabled: boolean;
882
- theme: string;
909
+ theme: import("../element/types").Theme;
883
910
  gridSize: number | null;
884
911
  viewModeEnabled: boolean;
885
912
  selectedGroupIds: {
@@ -902,7 +929,7 @@ export declare const actionZoomToFitSelection: {
902
929
  data: import("../charts").Spreadsheet;
903
930
  };
904
931
  pendingImageElementId: string | null;
905
- showHyperlinkPopup: false | "info" | "editor";
932
+ showHyperlinkPopup: false | "editor" | "info";
906
933
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
907
934
  };
908
935
  commitToHistory: boolean;
@@ -932,6 +959,10 @@ export declare const actionZoomToFit: {
932
959
  showWelcomeScreen: boolean;
933
960
  isLoading: boolean;
934
961
  errorMessage: import("react").ReactNode;
962
+ activeEmbeddable: {
963
+ element: import("../element/types").NonDeletedExcalidrawElement;
964
+ state: "active" | "hover";
965
+ } | null;
935
966
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
936
967
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
937
968
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -954,7 +985,7 @@ export declare const actionZoomToFit: {
954
985
  lastActiveTool: import("../types").LastActiveTool;
955
986
  locked: boolean;
956
987
  } & ({
957
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
988
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
958
989
  customType: null;
959
990
  } | {
960
991
  type: "custom";
@@ -1008,7 +1039,7 @@ export declare const actionZoomToFit: {
1008
1039
  duration?: number | undefined;
1009
1040
  } | null;
1010
1041
  zenModeEnabled: boolean;
1011
- theme: string;
1042
+ theme: import("../element/types").Theme;
1012
1043
  gridSize: number | null;
1013
1044
  viewModeEnabled: boolean;
1014
1045
  selectedGroupIds: {
@@ -1031,7 +1062,7 @@ export declare const actionZoomToFit: {
1031
1062
  data: import("../charts").Spreadsheet;
1032
1063
  };
1033
1064
  pendingImageElementId: string | null;
1034
- showHyperlinkPopup: false | "info" | "editor";
1065
+ showHyperlinkPopup: false | "editor" | "info";
1035
1066
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1036
1067
  };
1037
1068
  commitToHistory: boolean;
@@ -1057,6 +1088,10 @@ export declare const actionToggleTheme: {
1057
1088
  showWelcomeScreen: boolean;
1058
1089
  isLoading: boolean;
1059
1090
  errorMessage: import("react").ReactNode;
1091
+ activeEmbeddable: {
1092
+ element: import("../element/types").NonDeletedExcalidrawElement;
1093
+ state: "active" | "hover";
1094
+ } | null;
1060
1095
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1061
1096
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1062
1097
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -1079,7 +1114,7 @@ export declare const actionToggleTheme: {
1079
1114
  lastActiveTool: import("../types").LastActiveTool;
1080
1115
  locked: boolean;
1081
1116
  } & ({
1082
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1117
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1083
1118
  customType: null;
1084
1119
  } | {
1085
1120
  type: "custom";
@@ -1160,7 +1195,7 @@ export declare const actionToggleTheme: {
1160
1195
  data: import("../charts").Spreadsheet;
1161
1196
  };
1162
1197
  pendingImageElementId: string | null;
1163
- showHyperlinkPopup: false | "info" | "editor";
1198
+ showHyperlinkPopup: false | "editor" | "info";
1164
1199
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1165
1200
  };
1166
1201
  commitToHistory: false;
@@ -1179,11 +1214,12 @@ export declare const actionToggleEraserTool: {
1179
1214
  appState: {
1180
1215
  selectedElementIds: {};
1181
1216
  selectedGroupIds: {};
1217
+ activeEmbeddable: null;
1182
1218
  activeTool: {
1183
1219
  lastActiveTool: import("../types").LastActiveTool;
1184
1220
  locked: boolean;
1185
1221
  } & ({
1186
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1222
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1187
1223
  customType: null;
1188
1224
  } | {
1189
1225
  type: "custom";
@@ -1265,7 +1301,7 @@ export declare const actionToggleEraserTool: {
1265
1301
  duration?: number | undefined;
1266
1302
  } | null;
1267
1303
  zenModeEnabled: boolean;
1268
- theme: string;
1304
+ theme: import("../element/types").Theme;
1269
1305
  gridSize: number | null;
1270
1306
  viewModeEnabled: boolean;
1271
1307
  editingGroupId: string | null;
@@ -1285,7 +1321,7 @@ export declare const actionToggleEraserTool: {
1285
1321
  data: import("../charts").Spreadsheet;
1286
1322
  };
1287
1323
  pendingImageElementId: string | null;
1288
- showHyperlinkPopup: false | "info" | "editor";
1324
+ showHyperlinkPopup: false | "editor" | "info";
1289
1325
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1290
1326
  };
1291
1327
  commitToHistory: true;
@@ -1303,11 +1339,12 @@ export declare const actionToggleHandTool: {
1303
1339
  appState: {
1304
1340
  selectedElementIds: {};
1305
1341
  selectedGroupIds: {};
1342
+ activeEmbeddable: null;
1306
1343
  activeTool: {
1307
1344
  lastActiveTool: import("../types").LastActiveTool;
1308
1345
  locked: boolean;
1309
1346
  } & ({
1310
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1347
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1311
1348
  customType: null;
1312
1349
  } | {
1313
1350
  type: "custom";
@@ -1389,7 +1426,7 @@ export declare const actionToggleHandTool: {
1389
1426
  duration?: number | undefined;
1390
1427
  } | null;
1391
1428
  zenModeEnabled: boolean;
1392
- theme: string;
1429
+ theme: import("../element/types").Theme;
1393
1430
  gridSize: number | null;
1394
1431
  viewModeEnabled: boolean;
1395
1432
  editingGroupId: string | null;
@@ -1409,7 +1446,7 @@ export declare const actionToggleHandTool: {
1409
1446
  data: import("../charts").Spreadsheet;
1410
1447
  };
1411
1448
  pendingImageElementId: string | null;
1412
- showHyperlinkPopup: false | "info" | "editor";
1449
+ showHyperlinkPopup: false | "editor" | "info";
1413
1450
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1414
1451
  };
1415
1452
  commitToHistory: true;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const actionCopy: {
3
2
  name: "copy";
4
3
  trackEvent: {
@@ -44,6 +43,10 @@ export declare const actionCut: {
44
43
  showWelcomeScreen: boolean;
45
44
  isLoading: boolean;
46
45
  errorMessage: import("react").ReactNode;
46
+ activeEmbeddable: {
47
+ element: import("../element/types").NonDeletedExcalidrawElement;
48
+ state: "active" | "hover";
49
+ } | null;
47
50
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
48
51
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
49
52
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -65,7 +68,7 @@ export declare const actionCut: {
65
68
  lastActiveTool: import("../types").LastActiveTool;
66
69
  locked: boolean;
67
70
  } & ({
68
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
71
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
69
72
  customType: null;
70
73
  } | {
71
74
  type: "custom";
@@ -124,7 +127,7 @@ export declare const actionCut: {
124
127
  duration?: number | undefined;
125
128
  } | null;
126
129
  zenModeEnabled: boolean;
127
- theme: string;
130
+ theme: import("../element/types").Theme;
128
131
  gridSize: number | null;
129
132
  viewModeEnabled: boolean;
130
133
  selectedGroupIds: {
@@ -147,7 +150,7 @@ export declare const actionCut: {
147
150
  data: import("../charts").Spreadsheet;
148
151
  };
149
152
  pendingImageElementId: string | null;
150
- showHyperlinkPopup: false | "info" | "editor";
153
+ showHyperlinkPopup: false | "editor" | "info";
151
154
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
152
155
  };
153
156
  commitToHistory: false;
@@ -191,6 +194,10 @@ export declare const actionCut: {
191
194
  showWelcomeScreen: boolean;
192
195
  isLoading: boolean;
193
196
  errorMessage: import("react").ReactNode;
197
+ activeEmbeddable: {
198
+ element: import("../element/types").NonDeletedExcalidrawElement;
199
+ state: "active" | "hover";
200
+ } | null;
194
201
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
195
202
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
196
203
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -212,7 +219,7 @@ export declare const actionCut: {
212
219
  lastActiveTool: import("../types").LastActiveTool;
213
220
  locked: boolean;
214
221
  } & ({
215
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
222
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
216
223
  customType: null;
217
224
  } | {
218
225
  type: "custom";
@@ -271,7 +278,7 @@ export declare const actionCut: {
271
278
  duration?: number | undefined;
272
279
  } | null;
273
280
  zenModeEnabled: boolean;
274
- theme: string;
281
+ theme: import("../element/types").Theme;
275
282
  gridSize: number | null;
276
283
  viewModeEnabled: boolean;
277
284
  selectedGroupIds: {
@@ -294,7 +301,7 @@ export declare const actionCut: {
294
301
  data: import("../charts").Spreadsheet;
295
302
  };
296
303
  pendingImageElementId: string | null;
297
- showHyperlinkPopup: false | "info" | "editor";
304
+ showHyperlinkPopup: false | "editor" | "info";
298
305
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
299
306
  };
300
307
  commitToHistory: true;
@@ -305,13 +312,14 @@ export declare const actionCut: {
305
312
  lastActiveTool: import("../types").LastActiveTool;
306
313
  locked: boolean;
307
314
  } & ({
308
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
315
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
309
316
  customType: null;
310
317
  } | {
311
318
  type: "custom";
312
319
  customType: string;
313
320
  });
314
321
  multiElement: null;
322
+ activeEmbeddable: null;
315
323
  selectedElementIds: {};
316
324
  contextMenu: {
317
325
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -388,7 +396,7 @@ export declare const actionCut: {
388
396
  duration?: number | undefined;
389
397
  } | null;
390
398
  zenModeEnabled: boolean;
391
- theme: string;
399
+ theme: import("../element/types").Theme;
392
400
  gridSize: number | null;
393
401
  viewModeEnabled: boolean;
394
402
  selectedGroupIds: {
@@ -411,7 +419,7 @@ export declare const actionCut: {
411
419
  data: import("../charts").Spreadsheet;
412
420
  };
413
421
  pendingImageElementId: string | null;
414
- showHyperlinkPopup: false | "info" | "editor";
422
+ showHyperlinkPopup: false | "editor" | "info";
415
423
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
416
424
  };
417
425
  commitToHistory: boolean;
@@ -440,6 +448,10 @@ export declare const actionCopyAsSvg: {
440
448
  } | null;
441
449
  showWelcomeScreen: boolean;
442
450
  isLoading: boolean;
451
+ activeEmbeddable: {
452
+ element: import("../element/types").NonDeletedExcalidrawElement;
453
+ state: "active" | "hover";
454
+ } | null;
443
455
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
444
456
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
445
457
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -462,7 +474,7 @@ export declare const actionCopyAsSvg: {
462
474
  lastActiveTool: import("../types").LastActiveTool;
463
475
  locked: boolean;
464
476
  } & ({
465
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
477
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
466
478
  customType: null;
467
479
  } | {
468
480
  type: "custom";
@@ -521,7 +533,7 @@ export declare const actionCopyAsSvg: {
521
533
  duration?: number | undefined;
522
534
  } | null;
523
535
  zenModeEnabled: boolean;
524
- theme: string;
536
+ theme: import("../element/types").Theme;
525
537
  gridSize: number | null;
526
538
  viewModeEnabled: boolean;
527
539
  selectedGroupIds: {
@@ -544,7 +556,7 @@ export declare const actionCopyAsSvg: {
544
556
  data: import("../charts").Spreadsheet;
545
557
  };
546
558
  pendingImageElementId: string | null;
547
- showHyperlinkPopup: false | "info" | "editor";
559
+ showHyperlinkPopup: false | "editor" | "info";
548
560
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
549
561
  };
550
562
  commitToHistory: false;
@@ -572,6 +584,10 @@ export declare const actionCopyAsPng: {
572
584
  } | null;
573
585
  showWelcomeScreen: boolean;
574
586
  isLoading: boolean;
587
+ activeEmbeddable: {
588
+ element: import("../element/types").NonDeletedExcalidrawElement;
589
+ state: "active" | "hover";
590
+ } | null;
575
591
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
576
592
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
577
593
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -594,7 +610,7 @@ export declare const actionCopyAsPng: {
594
610
  lastActiveTool: import("../types").LastActiveTool;
595
611
  locked: boolean;
596
612
  } & ({
597
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
613
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
598
614
  customType: null;
599
615
  } | {
600
616
  type: "custom";
@@ -653,7 +669,7 @@ export declare const actionCopyAsPng: {
653
669
  duration?: number | undefined;
654
670
  } | null;
655
671
  zenModeEnabled: boolean;
656
- theme: string;
672
+ theme: import("../element/types").Theme;
657
673
  gridSize: number | null;
658
674
  viewModeEnabled: boolean;
659
675
  selectedGroupIds: {
@@ -676,7 +692,7 @@ export declare const actionCopyAsPng: {
676
692
  data: import("../charts").Spreadsheet;
677
693
  };
678
694
  pendingImageElementId: string | null;
679
- showHyperlinkPopup: false | "info" | "editor";
695
+ showHyperlinkPopup: false | "editor" | "info";
680
696
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
681
697
  };
682
698
  commitToHistory: false;