@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 } from "../types";
4
3
  import { LinearElementEditor } from "../element/linearElementEditor";
@@ -20,6 +19,10 @@ export declare const actionDeleteSelected: {
20
19
  showWelcomeScreen: boolean;
21
20
  isLoading: boolean;
22
21
  errorMessage: import("react").ReactNode;
22
+ activeEmbeddable: {
23
+ element: import("../element/types").NonDeletedExcalidrawElement;
24
+ state: "active" | "hover";
25
+ } | null;
23
26
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
24
27
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
25
28
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -41,7 +44,7 @@ export declare const actionDeleteSelected: {
41
44
  lastActiveTool: import("../types").LastActiveTool;
42
45
  locked: boolean;
43
46
  } & ({
44
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
47
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
45
48
  customType: null;
46
49
  } | {
47
50
  type: "custom";
@@ -100,7 +103,7 @@ export declare const actionDeleteSelected: {
100
103
  duration?: number | undefined;
101
104
  } | null;
102
105
  zenModeEnabled: boolean;
103
- theme: string;
106
+ theme: import("../element/types").Theme;
104
107
  gridSize: number | null;
105
108
  viewModeEnabled: boolean;
106
109
  selectedGroupIds: {
@@ -123,7 +126,7 @@ export declare const actionDeleteSelected: {
123
126
  data: import("../charts").Spreadsheet;
124
127
  };
125
128
  pendingImageElementId: string | null;
126
- showHyperlinkPopup: false | "info" | "editor";
129
+ showHyperlinkPopup: false | "editor" | "info";
127
130
  selectedLinearElement: LinearElementEditor | null;
128
131
  };
129
132
  commitToHistory: false;
@@ -167,6 +170,10 @@ export declare const actionDeleteSelected: {
167
170
  showWelcomeScreen: boolean;
168
171
  isLoading: boolean;
169
172
  errorMessage: import("react").ReactNode;
173
+ activeEmbeddable: {
174
+ element: import("../element/types").NonDeletedExcalidrawElement;
175
+ state: "active" | "hover";
176
+ } | null;
170
177
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
171
178
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
172
179
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -188,7 +195,7 @@ export declare const actionDeleteSelected: {
188
195
  lastActiveTool: import("../types").LastActiveTool;
189
196
  locked: boolean;
190
197
  } & ({
191
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
198
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
192
199
  customType: null;
193
200
  } | {
194
201
  type: "custom";
@@ -247,7 +254,7 @@ export declare const actionDeleteSelected: {
247
254
  duration?: number | undefined;
248
255
  } | null;
249
256
  zenModeEnabled: boolean;
250
- theme: string;
257
+ theme: import("../element/types").Theme;
251
258
  gridSize: number | null;
252
259
  viewModeEnabled: boolean;
253
260
  selectedGroupIds: {
@@ -270,7 +277,7 @@ export declare const actionDeleteSelected: {
270
277
  data: import("../charts").Spreadsheet;
271
278
  };
272
279
  pendingImageElementId: string | null;
273
- showHyperlinkPopup: false | "info" | "editor";
280
+ showHyperlinkPopup: false | "editor" | "info";
274
281
  selectedLinearElement: LinearElementEditor | null;
275
282
  };
276
283
  commitToHistory: true;
@@ -281,13 +288,14 @@ export declare const actionDeleteSelected: {
281
288
  lastActiveTool: import("../types").LastActiveTool;
282
289
  locked: boolean;
283
290
  } & ({
284
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
291
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
285
292
  customType: null;
286
293
  } | {
287
294
  type: "custom";
288
295
  customType: string;
289
296
  });
290
297
  multiElement: null;
298
+ activeEmbeddable: null;
291
299
  selectedElementIds: {};
292
300
  contextMenu: {
293
301
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -364,7 +372,7 @@ export declare const actionDeleteSelected: {
364
372
  duration?: number | undefined;
365
373
  } | null;
366
374
  zenModeEnabled: boolean;
367
- theme: string;
375
+ theme: import("../element/types").Theme;
368
376
  gridSize: number | null;
369
377
  viewModeEnabled: boolean;
370
378
  selectedGroupIds: {
@@ -387,7 +395,7 @@ export declare const actionDeleteSelected: {
387
395
  data: import("../charts").Spreadsheet;
388
396
  };
389
397
  pendingImageElementId: string | null;
390
- showHyperlinkPopup: false | "info" | "editor";
398
+ showHyperlinkPopup: false | "editor" | "info";
391
399
  selectedLinearElement: LinearElementEditor | null;
392
400
  };
393
401
  commitToHistory: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExcalidrawElement } from "../element/types";
3
2
  import { AppClassProperties, AppState } from "../types";
4
3
  export declare const distributeHorizontally: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExcalidrawElement } from "../element/types";
3
2
  import { AppState } from "../types";
4
3
  export declare const actionDuplicateSelection: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExcalidrawElement } from "../element/types";
3
2
  export declare const actionToggleElementLock: {
4
3
  name: "toggleElementLock";
@@ -18,6 +17,10 @@ export declare const actionToggleElementLock: {
18
17
  showWelcomeScreen: boolean;
19
18
  isLoading: boolean;
20
19
  errorMessage: import("react").ReactNode;
20
+ activeEmbeddable: {
21
+ element: import("../element/types").NonDeletedExcalidrawElement;
22
+ state: "active" | "hover";
23
+ } | null;
21
24
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
22
25
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
23
26
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -40,7 +43,7 @@ export declare const actionToggleElementLock: {
40
43
  lastActiveTool: import("../types").LastActiveTool;
41
44
  locked: boolean;
42
45
  } & ({
43
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
46
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
44
47
  customType: null;
45
48
  } | {
46
49
  type: "custom";
@@ -99,7 +102,7 @@ export declare const actionToggleElementLock: {
99
102
  duration?: number | undefined;
100
103
  } | null;
101
104
  zenModeEnabled: boolean;
102
- theme: string;
105
+ theme: import("../element/types").Theme;
103
106
  gridSize: number | null;
104
107
  viewModeEnabled: boolean;
105
108
  selectedGroupIds: {
@@ -122,7 +125,7 @@ export declare const actionToggleElementLock: {
122
125
  data: import("../charts").Spreadsheet;
123
126
  };
124
127
  pendingImageElementId: string | null;
125
- showHyperlinkPopup: false | "info" | "editor";
128
+ showHyperlinkPopup: false | "editor" | "info";
126
129
  };
127
130
  commitToHistory: true;
128
131
  };
@@ -152,6 +155,10 @@ export declare const actionUnlockAllElements: {
152
155
  showWelcomeScreen: boolean;
153
156
  isLoading: boolean;
154
157
  errorMessage: import("react").ReactNode;
158
+ activeEmbeddable: {
159
+ element: import("../element/types").NonDeletedExcalidrawElement;
160
+ state: "active" | "hover";
161
+ } | null;
155
162
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
156
163
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
157
164
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -174,7 +181,7 @@ export declare const actionUnlockAllElements: {
174
181
  lastActiveTool: import("../types").LastActiveTool;
175
182
  locked: boolean;
176
183
  } & ({
177
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
184
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
178
185
  customType: null;
179
186
  } | {
180
187
  type: "custom";
@@ -230,7 +237,7 @@ export declare const actionUnlockAllElements: {
230
237
  duration?: number | undefined;
231
238
  } | null;
232
239
  zenModeEnabled: boolean;
233
- theme: string;
240
+ theme: import("../element/types").Theme;
234
241
  gridSize: number | null;
235
242
  viewModeEnabled: boolean;
236
243
  selectedGroupIds: {
@@ -253,7 +260,7 @@ export declare const actionUnlockAllElements: {
253
260
  data: import("../charts").Spreadsheet;
254
261
  };
255
262
  pendingImageElementId: string | null;
256
- showHyperlinkPopup: false | "info" | "editor";
263
+ showHyperlinkPopup: false | "editor" | "info";
257
264
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
258
265
  };
259
266
  commitToHistory: true;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { Theme } from "../element/types";
2
2
  import "../components/ToolIcon.scss";
3
3
  export declare const actionChangeProjectName: {
4
4
  name: "changeProjectName";
@@ -14,6 +14,10 @@ export declare const actionChangeProjectName: {
14
14
  showWelcomeScreen: boolean;
15
15
  isLoading: boolean;
16
16
  errorMessage: import("react").ReactNode;
17
+ activeEmbeddable: {
18
+ element: import("../element/types").NonDeletedExcalidrawElement;
19
+ state: "active" | "hover";
20
+ } | null;
17
21
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
18
22
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
19
23
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -36,7 +40,7 @@ export declare const actionChangeProjectName: {
36
40
  lastActiveTool: import("../types").LastActiveTool;
37
41
  locked: boolean;
38
42
  } & ({
39
- 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";
40
44
  customType: null;
41
45
  } | {
42
46
  type: "custom";
@@ -94,7 +98,7 @@ export declare const actionChangeProjectName: {
94
98
  duration?: number | undefined;
95
99
  } | null;
96
100
  zenModeEnabled: boolean;
97
- theme: string;
101
+ theme: Theme;
98
102
  gridSize: number | null;
99
103
  viewModeEnabled: boolean;
100
104
  selectedGroupIds: {
@@ -117,7 +121,7 @@ export declare const actionChangeProjectName: {
117
121
  data: import("../charts").Spreadsheet;
118
122
  };
119
123
  pendingImageElementId: string | null;
120
- showHyperlinkPopup: false | "info" | "editor";
124
+ showHyperlinkPopup: false | "editor" | "info";
121
125
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
122
126
  };
123
127
  commitToHistory: false;
@@ -143,6 +147,10 @@ export declare const actionChangeExportScale: {
143
147
  showWelcomeScreen: boolean;
144
148
  isLoading: boolean;
145
149
  errorMessage: import("react").ReactNode;
150
+ activeEmbeddable: {
151
+ element: import("../element/types").NonDeletedExcalidrawElement;
152
+ state: "active" | "hover";
153
+ } | null;
146
154
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
147
155
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
148
156
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -165,7 +173,7 @@ export declare const actionChangeExportScale: {
165
173
  lastActiveTool: import("../types").LastActiveTool;
166
174
  locked: boolean;
167
175
  } & ({
168
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
176
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
169
177
  customType: null;
170
178
  } | {
171
179
  type: "custom";
@@ -223,7 +231,7 @@ export declare const actionChangeExportScale: {
223
231
  duration?: number | undefined;
224
232
  } | null;
225
233
  zenModeEnabled: boolean;
226
- theme: string;
234
+ theme: Theme;
227
235
  gridSize: number | null;
228
236
  viewModeEnabled: boolean;
229
237
  selectedGroupIds: {
@@ -246,7 +254,7 @@ export declare const actionChangeExportScale: {
246
254
  data: import("../charts").Spreadsheet;
247
255
  };
248
256
  pendingImageElementId: string | null;
249
- showHyperlinkPopup: false | "info" | "editor";
257
+ showHyperlinkPopup: false | "editor" | "info";
250
258
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
251
259
  };
252
260
  commitToHistory: false;
@@ -272,6 +280,10 @@ export declare const actionChangeExportBackground: {
272
280
  showWelcomeScreen: boolean;
273
281
  isLoading: boolean;
274
282
  errorMessage: import("react").ReactNode;
283
+ activeEmbeddable: {
284
+ element: import("../element/types").NonDeletedExcalidrawElement;
285
+ state: "active" | "hover";
286
+ } | null;
275
287
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
276
288
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
277
289
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -294,7 +306,7 @@ export declare const actionChangeExportBackground: {
294
306
  lastActiveTool: import("../types").LastActiveTool;
295
307
  locked: boolean;
296
308
  } & ({
297
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
309
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
298
310
  customType: null;
299
311
  } | {
300
312
  type: "custom";
@@ -352,7 +364,7 @@ export declare const actionChangeExportBackground: {
352
364
  duration?: number | undefined;
353
365
  } | null;
354
366
  zenModeEnabled: boolean;
355
- theme: string;
367
+ theme: Theme;
356
368
  gridSize: number | null;
357
369
  viewModeEnabled: boolean;
358
370
  selectedGroupIds: {
@@ -375,7 +387,7 @@ export declare const actionChangeExportBackground: {
375
387
  data: import("../charts").Spreadsheet;
376
388
  };
377
389
  pendingImageElementId: string | null;
378
- showHyperlinkPopup: false | "info" | "editor";
390
+ showHyperlinkPopup: false | "editor" | "info";
379
391
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
380
392
  };
381
393
  commitToHistory: false;
@@ -401,6 +413,10 @@ export declare const actionChangeExportEmbedScene: {
401
413
  showWelcomeScreen: boolean;
402
414
  isLoading: boolean;
403
415
  errorMessage: import("react").ReactNode;
416
+ activeEmbeddable: {
417
+ element: import("../element/types").NonDeletedExcalidrawElement;
418
+ state: "active" | "hover";
419
+ } | null;
404
420
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
405
421
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
406
422
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -423,7 +439,7 @@ export declare const actionChangeExportEmbedScene: {
423
439
  lastActiveTool: import("../types").LastActiveTool;
424
440
  locked: boolean;
425
441
  } & ({
426
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
442
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
427
443
  customType: null;
428
444
  } | {
429
445
  type: "custom";
@@ -481,7 +497,7 @@ export declare const actionChangeExportEmbedScene: {
481
497
  duration?: number | undefined;
482
498
  } | null;
483
499
  zenModeEnabled: boolean;
484
- theme: string;
500
+ theme: Theme;
485
501
  gridSize: number | null;
486
502
  viewModeEnabled: boolean;
487
503
  selectedGroupIds: {
@@ -504,7 +520,7 @@ export declare const actionChangeExportEmbedScene: {
504
520
  data: import("../charts").Spreadsheet;
505
521
  };
506
522
  pendingImageElementId: string | null;
507
- showHyperlinkPopup: false | "info" | "editor";
523
+ showHyperlinkPopup: false | "editor" | "info";
508
524
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
509
525
  };
510
526
  commitToHistory: false;
@@ -534,6 +550,10 @@ export declare const actionSaveToActiveFile: {
534
550
  showWelcomeScreen: boolean;
535
551
  isLoading: boolean;
536
552
  errorMessage: import("react").ReactNode;
553
+ activeEmbeddable: {
554
+ element: import("../element/types").NonDeletedExcalidrawElement;
555
+ state: "active" | "hover";
556
+ } | null;
537
557
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
538
558
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
539
559
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -556,7 +576,7 @@ export declare const actionSaveToActiveFile: {
556
576
  lastActiveTool: import("../types").LastActiveTool;
557
577
  locked: boolean;
558
578
  } & ({
559
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
579
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
560
580
  customType: null;
561
581
  } | {
562
582
  type: "custom";
@@ -610,7 +630,7 @@ export declare const actionSaveToActiveFile: {
610
630
  selectedElementsAreBeingDragged: boolean;
611
631
  shouldCacheIgnoreZoom: boolean;
612
632
  zenModeEnabled: boolean;
613
- theme: string;
633
+ theme: Theme;
614
634
  gridSize: number | null;
615
635
  viewModeEnabled: boolean;
616
636
  selectedGroupIds: {
@@ -632,7 +652,7 @@ export declare const actionSaveToActiveFile: {
632
652
  data: import("../charts").Spreadsheet;
633
653
  };
634
654
  pendingImageElementId: string | null;
635
- showHyperlinkPopup: false | "info" | "editor";
655
+ showHyperlinkPopup: false | "editor" | "info";
636
656
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
637
657
  };
638
658
  } | {
@@ -661,6 +681,10 @@ export declare const actionSaveFileToDisk: {
661
681
  showWelcomeScreen: boolean;
662
682
  isLoading: boolean;
663
683
  errorMessage: import("react").ReactNode;
684
+ activeEmbeddable: {
685
+ element: import("../element/types").NonDeletedExcalidrawElement;
686
+ state: "active" | "hover";
687
+ } | null;
664
688
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
665
689
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
666
690
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -683,7 +707,7 @@ export declare const actionSaveFileToDisk: {
683
707
  lastActiveTool: import("../types").LastActiveTool;
684
708
  locked: boolean;
685
709
  } & ({
686
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
710
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
687
711
  customType: null;
688
712
  } | {
689
713
  type: "custom";
@@ -742,7 +766,7 @@ export declare const actionSaveFileToDisk: {
742
766
  duration?: number | undefined;
743
767
  } | null;
744
768
  zenModeEnabled: boolean;
745
- theme: string;
769
+ theme: Theme;
746
770
  gridSize: number | null;
747
771
  viewModeEnabled: boolean;
748
772
  selectedGroupIds: {
@@ -764,7 +788,7 @@ export declare const actionSaveFileToDisk: {
764
788
  data: import("../charts").Spreadsheet;
765
789
  };
766
790
  pendingImageElementId: string | null;
767
- showHyperlinkPopup: false | "info" | "editor";
791
+ showHyperlinkPopup: false | "editor" | "info";
768
792
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
769
793
  };
770
794
  } | {
@@ -785,18 +809,25 @@ export declare const actionLoadScene: {
785
809
  perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
786
810
  elements: import("../element/types").ExcalidrawElement[];
787
811
  appState: {
788
- theme: string;
812
+ theme: Theme;
789
813
  name: string;
790
814
  activeTool: {
791
815
  lastActiveTool: import("../types").LastActiveTool;
792
816
  locked: boolean;
793
817
  } & ({
794
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
818
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
795
819
  customType: null;
796
820
  } | {
797
821
  type: "custom";
798
822
  customType: string;
799
823
  });
824
+ toast: {
825
+ message: string;
826
+ closable?: boolean | undefined;
827
+ duration?: number | undefined;
828
+ } | null;
829
+ collaborators: Map<string, import("../types").Collaborator>;
830
+ penMode: boolean;
800
831
  contextMenu: {
801
832
  items: import("../components/ContextMenu").ContextMenuItems;
802
833
  top: number;
@@ -805,6 +836,10 @@ export declare const actionLoadScene: {
805
836
  showWelcomeScreen: boolean;
806
837
  isLoading: boolean;
807
838
  errorMessage: import("react").ReactNode;
839
+ activeEmbeddable: {
840
+ element: import("../element/types").NonDeletedExcalidrawElement;
841
+ state: "active" | "hover";
842
+ } | null;
808
843
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
809
844
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
810
845
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -823,7 +858,6 @@ export declare const actionLoadScene: {
823
858
  elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
824
859
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
825
860
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
826
- penMode: boolean;
827
861
  penDetected: boolean;
828
862
  exportBackground: boolean;
829
863
  exportEmbedScene: boolean;
@@ -869,11 +903,6 @@ export declare const actionLoadScene: {
869
903
  };
870
904
  selectedElementsAreBeingDragged: boolean;
871
905
  shouldCacheIgnoreZoom: boolean;
872
- toast: {
873
- message: string;
874
- closable?: boolean | undefined;
875
- duration?: number | undefined;
876
- } | null;
877
906
  zenModeEnabled: boolean;
878
907
  gridSize: number | null;
879
908
  viewModeEnabled: boolean;
@@ -882,7 +911,6 @@ export declare const actionLoadScene: {
882
911
  };
883
912
  editingGroupId: string | null;
884
913
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
885
- collaborators: Map<string, import("../types").Collaborator>;
886
914
  showStats: boolean;
887
915
  currentChartType: import("../element/types").ChartType;
888
916
  pasteDialog: {
@@ -893,7 +921,7 @@ export declare const actionLoadScene: {
893
921
  data: import("../charts").Spreadsheet;
894
922
  };
895
923
  pendingImageElementId: string | null;
896
- showHyperlinkPopup: false | "info" | "editor";
924
+ showHyperlinkPopup: false | "editor" | "info";
897
925
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
898
926
  };
899
927
  files: import("../types").BinaryFiles;
@@ -909,6 +937,10 @@ export declare const actionLoadScene: {
909
937
  } | null;
910
938
  showWelcomeScreen: boolean;
911
939
  isLoading: boolean;
940
+ activeEmbeddable: {
941
+ element: import("../element/types").NonDeletedExcalidrawElement;
942
+ state: "active" | "hover";
943
+ } | null;
912
944
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
913
945
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
914
946
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -931,7 +963,7 @@ export declare const actionLoadScene: {
931
963
  lastActiveTool: import("../types").LastActiveTool;
932
964
  locked: boolean;
933
965
  } & ({
934
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
966
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
935
967
  customType: null;
936
968
  } | {
937
969
  type: "custom";
@@ -990,7 +1022,7 @@ export declare const actionLoadScene: {
990
1022
  duration?: number | undefined;
991
1023
  } | null;
992
1024
  zenModeEnabled: boolean;
993
- theme: string;
1025
+ theme: Theme;
994
1026
  gridSize: number | null;
995
1027
  viewModeEnabled: boolean;
996
1028
  selectedGroupIds: {
@@ -1013,7 +1045,7 @@ export declare const actionLoadScene: {
1013
1045
  data: import("../charts").Spreadsheet;
1014
1046
  };
1015
1047
  pendingImageElementId: string | null;
1016
- showHyperlinkPopup: false | "info" | "editor";
1048
+ showHyperlinkPopup: false | "editor" | "info";
1017
1049
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1018
1050
  };
1019
1051
  files: import("../types").BinaryFiles;
@@ -1040,6 +1072,10 @@ export declare const actionExportWithDarkMode: {
1040
1072
  showWelcomeScreen: boolean;
1041
1073
  isLoading: boolean;
1042
1074
  errorMessage: import("react").ReactNode;
1075
+ activeEmbeddable: {
1076
+ element: import("../element/types").NonDeletedExcalidrawElement;
1077
+ state: "active" | "hover";
1078
+ } | null;
1043
1079
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1044
1080
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1045
1081
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -1062,7 +1098,7 @@ export declare const actionExportWithDarkMode: {
1062
1098
  lastActiveTool: import("../types").LastActiveTool;
1063
1099
  locked: boolean;
1064
1100
  } & ({
1065
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1101
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1066
1102
  customType: null;
1067
1103
  } | {
1068
1104
  type: "custom";
@@ -1120,7 +1156,7 @@ export declare const actionExportWithDarkMode: {
1120
1156
  duration?: number | undefined;
1121
1157
  } | null;
1122
1158
  zenModeEnabled: boolean;
1123
- theme: string;
1159
+ theme: Theme;
1124
1160
  gridSize: number | null;
1125
1161
  viewModeEnabled: boolean;
1126
1162
  selectedGroupIds: {
@@ -1143,7 +1179,7 @@ export declare const actionExportWithDarkMode: {
1143
1179
  data: import("../charts").Spreadsheet;
1144
1180
  };
1145
1181
  pendingImageElementId: string | null;
1146
- showHyperlinkPopup: false | "info" | "editor";
1182
+ showHyperlinkPopup: false | "editor" | "info";
1147
1183
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1148
1184
  };
1149
1185
  commitToHistory: false;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LinearElementEditor } from "../element/linearElementEditor";
3
2
  import { AppState } from "../types";
4
3
  export declare const actionFinalize: {
@@ -17,6 +16,10 @@ export declare const actionFinalize: {
17
16
  showWelcomeScreen: boolean;
18
17
  isLoading: boolean;
19
18
  errorMessage: import("react").ReactNode;
19
+ activeEmbeddable: {
20
+ element: import("../element/types").NonDeletedExcalidrawElement;
21
+ state: "active" | "hover";
22
+ } | null;
20
23
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
21
24
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
22
25
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -38,7 +41,7 @@ export declare const actionFinalize: {
38
41
  lastActiveTool: import("../types").LastActiveTool;
39
42
  locked: boolean;
40
43
  } & ({
41
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
44
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
42
45
  customType: null;
43
46
  } | {
44
47
  type: "custom";
@@ -96,7 +99,7 @@ export declare const actionFinalize: {
96
99
  duration?: number | undefined;
97
100
  } | null;
98
101
  zenModeEnabled: boolean;
99
- theme: string;
102
+ theme: import("../element/types").Theme;
100
103
  gridSize: number | null;
101
104
  viewModeEnabled: boolean;
102
105
  selectedGroupIds: {
@@ -119,7 +122,7 @@ export declare const actionFinalize: {
119
122
  data: import("../charts").Spreadsheet;
120
123
  };
121
124
  pendingImageElementId: string | null;
122
- showHyperlinkPopup: false | "info" | "editor";
125
+ showHyperlinkPopup: false | "editor" | "info";
123
126
  selectedLinearElement: LinearElementEditor | null;
124
127
  };
125
128
  commitToHistory: true;
@@ -131,12 +134,13 @@ export declare const actionFinalize: {
131
134
  lastActiveTool: import("../types").LastActiveTool;
132
135
  locked: boolean;
133
136
  } & ({
134
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
137
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
135
138
  customType: null;
136
139
  } | {
137
140
  type: "custom";
138
141
  customType: string;
139
142
  });
143
+ activeEmbeddable: null;
140
144
  draggingElement: null;
141
145
  multiElement: null;
142
146
  editingElement: null;
@@ -217,7 +221,7 @@ export declare const actionFinalize: {
217
221
  duration?: number | undefined;
218
222
  } | null;
219
223
  zenModeEnabled: boolean;
220
- theme: string;
224
+ theme: import("../element/types").Theme;
221
225
  gridSize: number | null;
222
226
  viewModeEnabled: boolean;
223
227
  selectedGroupIds: {
@@ -239,7 +243,7 @@ export declare const actionFinalize: {
239
243
  shown: true;
240
244
  data: import("../charts").Spreadsheet;
241
245
  };
242
- showHyperlinkPopup: false | "info" | "editor";
246
+ showHyperlinkPopup: false | "editor" | "info";
243
247
  };
244
248
  commitToHistory: boolean;
245
249
  };