@excalidraw/excalidraw 0.15.2-3ddcc48 → 0.15.2-5302490

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 (117) 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 +2237 -2116
  10. package/dist/excalidraw.production.min.js +1 -1
  11. package/package.json +7 -2
  12. package/types/actions/actionAddToLibrary.d.ts +51 -25
  13. package/types/actions/actionAlign.d.ts +19 -20
  14. package/types/actions/actionBoundText.d.ts +38 -20
  15. package/types/actions/actionCanvas.d.ts +182 -90
  16. package/types/actions/actionClipboard.d.ts +81 -40
  17. package/types/actions/actionDeleteSelected.d.ts +45 -22
  18. package/types/actions/actionDistribute.d.ts +5 -6
  19. package/types/actions/actionDuplicateSelection.d.ts +0 -1
  20. package/types/actions/actionElementLock.d.ts +36 -19
  21. package/types/actions/actionExport.d.ts +161 -80
  22. package/types/actions/actionFinalize.d.ts +32 -18
  23. package/types/actions/actionFlip.d.ts +2 -3
  24. package/types/actions/actionFrame.d.ts +56 -30
  25. package/types/actions/actionGroup.d.ts +246 -9
  26. package/types/actions/actionLinearEditor.d.ts +19 -11
  27. package/types/actions/actionMenu.d.ts +51 -25
  28. package/types/actions/actionProperties.d.ts +223 -105
  29. package/types/actions/actionSelectAll.d.ts +121 -2
  30. package/types/actions/actionStyles.d.ts +17 -9
  31. package/types/actions/actionToggleGridMode.d.ts +17 -9
  32. package/types/actions/actionToggleStats.d.ts +17 -9
  33. package/types/actions/actionToggleViewMode.d.ts +17 -9
  34. package/types/actions/actionToggleZenMode.d.ts +17 -9
  35. package/types/actions/types.d.ts +4 -3
  36. package/types/appState.d.ts +7 -7
  37. package/types/clipboard.d.ts +1 -0
  38. package/types/colors.d.ts +9 -9
  39. package/types/components/Actions.d.ts +2 -2
  40. package/types/components/App.d.ts +24 -7
  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/ExcalidrawLogo.d.ts +15 -0
  46. package/types/components/EyeDropper.d.ts +0 -1
  47. package/types/components/HintViewer.d.ts +3 -4
  48. package/types/components/JSONExportDialog.d.ts +1 -1
  49. package/types/components/LayerUI.d.ts +4 -2
  50. package/types/components/LibraryMenuHeaderContent.d.ts +0 -1
  51. package/types/components/LibraryUnit.d.ts +0 -1
  52. package/types/components/LoadingMessage.d.ts +0 -1
  53. package/types/components/MobileMenu.d.ts +4 -3
  54. package/types/components/Section.d.ts +1 -1
  55. package/types/components/Sidebar/SidebarTab.d.ts +0 -1
  56. package/types/components/Sidebar/SidebarTabTrigger.d.ts +0 -1
  57. package/types/components/Sidebar/SidebarTabTriggers.d.ts +0 -1
  58. package/types/components/Sidebar/SidebarTabs.d.ts +0 -1
  59. package/types/components/Stack.d.ts +2 -2
  60. package/types/components/Trans.d.ts +2 -1
  61. package/types/components/canvases/InteractiveCanvas.d.ts +27 -0
  62. package/types/components/canvases/StaticCanvas.d.ts +18 -0
  63. package/types/components/canvases/index.d.ts +3 -0
  64. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +0 -1
  65. package/types/components/icons.d.ts +1 -0
  66. package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -1
  67. package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -1
  68. package/types/components/welcome-screen/WelcomeScreen.d.ts +0 -1
  69. package/types/constants.d.ts +17 -3
  70. package/types/data/transform.d.ts +71 -0
  71. package/types/data/url.d.ts +5 -0
  72. package/types/element/Hyperlink.d.ts +27 -13
  73. package/types/element/binding.d.ts +1 -0
  74. package/types/element/collision.d.ts +2 -2
  75. package/types/element/embeddable.d.ts +153 -0
  76. package/types/element/linearElementEditor.d.ts +20 -12
  77. package/types/element/newElement.d.ts +14 -7
  78. package/types/element/sizeHelpers.d.ts +8 -1
  79. package/types/element/textElement.d.ts +5 -7
  80. package/types/element/textWysiwyg.d.ts +1 -1
  81. package/types/element/transformHandles.d.ts +3 -3
  82. package/types/element/typeChecks.d.ts +2 -1
  83. package/types/element/types.d.ts +13 -2
  84. package/types/frame.d.ts +5 -5
  85. package/types/groups.d.ts +12 -12
  86. package/types/history.d.ts +3 -3
  87. package/types/hooks/useOutsideClick.d.ts +0 -1
  88. package/types/hooks/useScrollPosition.d.ts +0 -1
  89. package/types/i18n.d.ts +5 -2
  90. package/types/keys.d.ts +1 -0
  91. package/types/packages/excalidraw/example/initialData.d.ts +182 -70
  92. package/types/packages/excalidraw/index.d.ts +1 -0
  93. package/types/packages/excalidraw/webpack.dev.config.d.ts +5 -2
  94. package/types/packages/excalidraw/webpack.prod.config.d.ts +3 -0
  95. package/types/packages/utils.d.ts +2 -1
  96. package/types/renderer/renderElement.d.ts +10 -22
  97. package/types/renderer/renderScene.d.ts +18 -37
  98. package/types/scene/Renderer.d.ts +25 -0
  99. package/types/scene/Scene.d.ts +15 -0
  100. package/types/scene/Shape.d.ts +12 -0
  101. package/types/scene/ShapeCache.d.ts +20 -0
  102. package/types/scene/export.d.ts +1 -0
  103. package/types/scene/scroll.d.ts +1 -1
  104. package/types/scene/scrollbars.d.ts +2 -6
  105. package/types/scene/selection.d.ts +13 -3
  106. package/types/scene/types.d.ts +57 -24
  107. package/types/types.d.ts +63 -12
  108. package/types/utility-types.d.ts +3 -1
  109. package/types/utils.d.ts +13 -5
  110. /package/dist/excalidraw-assets/{vendor-53d1c69ef585b6dd219b.js.LICENSE.txt → vendor-ef3c5d81a00ef582b871.js.LICENSE.txt} +0 -0
  111. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{es-ES-json-f2467c6a875a9e288756.d.ts → es-ES-json-4f3da97feff33cb00e6d.d.ts} +0 -0
  112. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{hi-IN-json-e22f4ad73126c2971850.d.ts → hi-IN-json-3898c9c1216b44476529.d.ts} +0 -0
  113. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{id-ID-json-0e69caf5d919807ed234.d.ts → id-ID-json-43d505d7071a0e359681.d.ts} +0 -0
  114. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{kk-KZ-json-106d2a41c68f69765668.d.ts → kk-KZ-json-f648362328b839e9313f.d.ts} +0 -0
  115. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pa-IN-json-0fd029451b07248c5194.d.ts → pa-IN-json-d9ee09801ed220840b2b.d.ts} +0 -0
  116. /package/types/packages/excalidraw/dist/excalidraw-assets/{vendor-53d1c69ef585b6dd219b.d.ts → vendor-ef3c5d81a00ef582b871.d.ts} +0 -0
  117. /package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.d.ts → vendor-a14cd58fa2db417e42b2.d.ts} +0 -0
@@ -1,6 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { AppState } from "../../src/types";
3
2
  import { Arrowhead, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
3
+ export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
4
+ export declare const getFormValue: <T>(elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, defaultValue: T) => T;
4
5
  export declare const actionChangeStrokeColor: {
5
6
  name: "changeStrokeColor";
6
7
  trackEvent: false;
@@ -32,6 +33,10 @@ export declare const actionChangeFillStyle: {
32
33
  showWelcomeScreen: boolean;
33
34
  isLoading: boolean;
34
35
  errorMessage: import("react").ReactNode;
36
+ activeEmbeddable: {
37
+ element: import("../element/types").NonDeletedExcalidrawElement;
38
+ state: "active" | "hover";
39
+ } | null;
35
40
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
36
41
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
37
42
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -40,7 +45,12 @@ export declare const actionChangeFillStyle: {
40
45
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
41
46
  suggestedBindings: import("../element/binding").SuggestedBinding[];
42
47
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
43
- shouldRenderFrames: boolean;
48
+ frameRendering: {
49
+ enabled: boolean;
50
+ name: boolean;
51
+ outline: boolean;
52
+ clip: boolean;
53
+ };
44
54
  editingFrame: string | null;
45
55
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
46
56
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -49,7 +59,7 @@ export declare const actionChangeFillStyle: {
49
59
  lastActiveTool: import("../../src/types").LastActiveTool;
50
60
  locked: boolean;
51
61
  } & ({
52
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
62
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
53
63
  customType: null;
54
64
  } | {
55
65
  type: "custom";
@@ -93,11 +103,11 @@ export declare const actionChangeFillStyle: {
93
103
  openDialog: "imageExport" | "help" | "jsonExport" | null;
94
104
  defaultSidebarDockedPreference: boolean;
95
105
  lastPointerDownWith: import("../element/types").PointerType;
96
- selectedElementIds: {
97
- [id: string]: boolean;
98
- };
106
+ selectedElementIds: Readonly<{
107
+ [id: string]: true;
108
+ }>;
99
109
  previousSelectedElementIds: {
100
- [id: string]: boolean;
110
+ [id: string]: true;
101
111
  };
102
112
  selectedElementsAreBeingDragged: boolean;
103
113
  shouldCacheIgnoreZoom: boolean;
@@ -107,7 +117,7 @@ export declare const actionChangeFillStyle: {
107
117
  duration?: number | undefined;
108
118
  } | null;
109
119
  zenModeEnabled: boolean;
110
- theme: string;
120
+ theme: import("../element/types").Theme;
111
121
  gridSize: number | null;
112
122
  viewModeEnabled: boolean;
113
123
  selectedGroupIds: {
@@ -130,7 +140,7 @@ export declare const actionChangeFillStyle: {
130
140
  data: import("../charts").Spreadsheet;
131
141
  };
132
142
  pendingImageElementId: string | null;
133
- showHyperlinkPopup: false | "info" | "editor";
143
+ showHyperlinkPopup: false | "editor" | "info";
134
144
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
135
145
  };
136
146
  commitToHistory: true;
@@ -154,6 +164,10 @@ export declare const actionChangeStrokeWidth: {
154
164
  showWelcomeScreen: boolean;
155
165
  isLoading: boolean;
156
166
  errorMessage: import("react").ReactNode;
167
+ activeEmbeddable: {
168
+ element: import("../element/types").NonDeletedExcalidrawElement;
169
+ state: "active" | "hover";
170
+ } | null;
157
171
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
158
172
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
159
173
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -162,7 +176,12 @@ export declare const actionChangeStrokeWidth: {
162
176
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
163
177
  suggestedBindings: import("../element/binding").SuggestedBinding[];
164
178
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
165
- shouldRenderFrames: boolean;
179
+ frameRendering: {
180
+ enabled: boolean;
181
+ name: boolean;
182
+ outline: boolean;
183
+ clip: boolean;
184
+ };
166
185
  editingFrame: string | null;
167
186
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
168
187
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -171,7 +190,7 @@ export declare const actionChangeStrokeWidth: {
171
190
  lastActiveTool: import("../../src/types").LastActiveTool;
172
191
  locked: boolean;
173
192
  } & ({
174
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
193
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
175
194
  customType: null;
176
195
  } | {
177
196
  type: "custom";
@@ -215,11 +234,11 @@ export declare const actionChangeStrokeWidth: {
215
234
  openDialog: "imageExport" | "help" | "jsonExport" | null;
216
235
  defaultSidebarDockedPreference: boolean;
217
236
  lastPointerDownWith: import("../element/types").PointerType;
218
- selectedElementIds: {
219
- [id: string]: boolean;
220
- };
237
+ selectedElementIds: Readonly<{
238
+ [id: string]: true;
239
+ }>;
221
240
  previousSelectedElementIds: {
222
- [id: string]: boolean;
241
+ [id: string]: true;
223
242
  };
224
243
  selectedElementsAreBeingDragged: boolean;
225
244
  shouldCacheIgnoreZoom: boolean;
@@ -229,7 +248,7 @@ export declare const actionChangeStrokeWidth: {
229
248
  duration?: number | undefined;
230
249
  } | null;
231
250
  zenModeEnabled: boolean;
232
- theme: string;
251
+ theme: import("../element/types").Theme;
233
252
  gridSize: number | null;
234
253
  viewModeEnabled: boolean;
235
254
  selectedGroupIds: {
@@ -252,7 +271,7 @@ export declare const actionChangeStrokeWidth: {
252
271
  data: import("../charts").Spreadsheet;
253
272
  };
254
273
  pendingImageElementId: string | null;
255
- showHyperlinkPopup: false | "info" | "editor";
274
+ showHyperlinkPopup: false | "editor" | "info";
256
275
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
257
276
  };
258
277
  commitToHistory: true;
@@ -276,6 +295,10 @@ export declare const actionChangeSloppiness: {
276
295
  showWelcomeScreen: boolean;
277
296
  isLoading: boolean;
278
297
  errorMessage: import("react").ReactNode;
298
+ activeEmbeddable: {
299
+ element: import("../element/types").NonDeletedExcalidrawElement;
300
+ state: "active" | "hover";
301
+ } | null;
279
302
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
280
303
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
281
304
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -284,7 +307,12 @@ export declare const actionChangeSloppiness: {
284
307
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
285
308
  suggestedBindings: import("../element/binding").SuggestedBinding[];
286
309
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
287
- shouldRenderFrames: boolean;
310
+ frameRendering: {
311
+ enabled: boolean;
312
+ name: boolean;
313
+ outline: boolean;
314
+ clip: boolean;
315
+ };
288
316
  editingFrame: string | null;
289
317
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
290
318
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -293,7 +321,7 @@ export declare const actionChangeSloppiness: {
293
321
  lastActiveTool: import("../../src/types").LastActiveTool;
294
322
  locked: boolean;
295
323
  } & ({
296
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
324
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
297
325
  customType: null;
298
326
  } | {
299
327
  type: "custom";
@@ -337,11 +365,11 @@ export declare const actionChangeSloppiness: {
337
365
  openDialog: "imageExport" | "help" | "jsonExport" | null;
338
366
  defaultSidebarDockedPreference: boolean;
339
367
  lastPointerDownWith: import("../element/types").PointerType;
340
- selectedElementIds: {
341
- [id: string]: boolean;
342
- };
368
+ selectedElementIds: Readonly<{
369
+ [id: string]: true;
370
+ }>;
343
371
  previousSelectedElementIds: {
344
- [id: string]: boolean;
372
+ [id: string]: true;
345
373
  };
346
374
  selectedElementsAreBeingDragged: boolean;
347
375
  shouldCacheIgnoreZoom: boolean;
@@ -351,7 +379,7 @@ export declare const actionChangeSloppiness: {
351
379
  duration?: number | undefined;
352
380
  } | null;
353
381
  zenModeEnabled: boolean;
354
- theme: string;
382
+ theme: import("../element/types").Theme;
355
383
  gridSize: number | null;
356
384
  viewModeEnabled: boolean;
357
385
  selectedGroupIds: {
@@ -374,7 +402,7 @@ export declare const actionChangeSloppiness: {
374
402
  data: import("../charts").Spreadsheet;
375
403
  };
376
404
  pendingImageElementId: string | null;
377
- showHyperlinkPopup: false | "info" | "editor";
405
+ showHyperlinkPopup: false | "editor" | "info";
378
406
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
379
407
  };
380
408
  commitToHistory: true;
@@ -398,6 +426,10 @@ export declare const actionChangeStrokeStyle: {
398
426
  showWelcomeScreen: boolean;
399
427
  isLoading: boolean;
400
428
  errorMessage: import("react").ReactNode;
429
+ activeEmbeddable: {
430
+ element: import("../element/types").NonDeletedExcalidrawElement;
431
+ state: "active" | "hover";
432
+ } | null;
401
433
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
402
434
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
403
435
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -406,7 +438,12 @@ export declare const actionChangeStrokeStyle: {
406
438
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
407
439
  suggestedBindings: import("../element/binding").SuggestedBinding[];
408
440
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
409
- shouldRenderFrames: boolean;
441
+ frameRendering: {
442
+ enabled: boolean;
443
+ name: boolean;
444
+ outline: boolean;
445
+ clip: boolean;
446
+ };
410
447
  editingFrame: string | null;
411
448
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
412
449
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -415,7 +452,7 @@ export declare const actionChangeStrokeStyle: {
415
452
  lastActiveTool: import("../../src/types").LastActiveTool;
416
453
  locked: boolean;
417
454
  } & ({
418
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
455
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
419
456
  customType: null;
420
457
  } | {
421
458
  type: "custom";
@@ -459,11 +496,11 @@ export declare const actionChangeStrokeStyle: {
459
496
  openDialog: "imageExport" | "help" | "jsonExport" | null;
460
497
  defaultSidebarDockedPreference: boolean;
461
498
  lastPointerDownWith: import("../element/types").PointerType;
462
- selectedElementIds: {
463
- [id: string]: boolean;
464
- };
499
+ selectedElementIds: Readonly<{
500
+ [id: string]: true;
501
+ }>;
465
502
  previousSelectedElementIds: {
466
- [id: string]: boolean;
503
+ [id: string]: true;
467
504
  };
468
505
  selectedElementsAreBeingDragged: boolean;
469
506
  shouldCacheIgnoreZoom: boolean;
@@ -473,7 +510,7 @@ export declare const actionChangeStrokeStyle: {
473
510
  duration?: number | undefined;
474
511
  } | null;
475
512
  zenModeEnabled: boolean;
476
- theme: string;
513
+ theme: import("../element/types").Theme;
477
514
  gridSize: number | null;
478
515
  viewModeEnabled: boolean;
479
516
  selectedGroupIds: {
@@ -496,7 +533,7 @@ export declare const actionChangeStrokeStyle: {
496
533
  data: import("../charts").Spreadsheet;
497
534
  };
498
535
  pendingImageElementId: string | null;
499
- showHyperlinkPopup: false | "info" | "editor";
536
+ showHyperlinkPopup: false | "editor" | "info";
500
537
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
501
538
  };
502
539
  commitToHistory: true;
@@ -520,6 +557,10 @@ export declare const actionChangeOpacity: {
520
557
  showWelcomeScreen: boolean;
521
558
  isLoading: boolean;
522
559
  errorMessage: import("react").ReactNode;
560
+ activeEmbeddable: {
561
+ element: import("../element/types").NonDeletedExcalidrawElement;
562
+ state: "active" | "hover";
563
+ } | null;
523
564
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
524
565
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
525
566
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -528,7 +569,12 @@ export declare const actionChangeOpacity: {
528
569
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
529
570
  suggestedBindings: import("../element/binding").SuggestedBinding[];
530
571
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
531
- shouldRenderFrames: boolean;
572
+ frameRendering: {
573
+ enabled: boolean;
574
+ name: boolean;
575
+ outline: boolean;
576
+ clip: boolean;
577
+ };
532
578
  editingFrame: string | null;
533
579
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
534
580
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -537,7 +583,7 @@ export declare const actionChangeOpacity: {
537
583
  lastActiveTool: import("../../src/types").LastActiveTool;
538
584
  locked: boolean;
539
585
  } & ({
540
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
586
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
541
587
  customType: null;
542
588
  } | {
543
589
  type: "custom";
@@ -581,11 +627,11 @@ export declare const actionChangeOpacity: {
581
627
  openDialog: "imageExport" | "help" | "jsonExport" | null;
582
628
  defaultSidebarDockedPreference: boolean;
583
629
  lastPointerDownWith: import("../element/types").PointerType;
584
- selectedElementIds: {
585
- [id: string]: boolean;
586
- };
630
+ selectedElementIds: Readonly<{
631
+ [id: string]: true;
632
+ }>;
587
633
  previousSelectedElementIds: {
588
- [id: string]: boolean;
634
+ [id: string]: true;
589
635
  };
590
636
  selectedElementsAreBeingDragged: boolean;
591
637
  shouldCacheIgnoreZoom: boolean;
@@ -595,7 +641,7 @@ export declare const actionChangeOpacity: {
595
641
  duration?: number | undefined;
596
642
  } | null;
597
643
  zenModeEnabled: boolean;
598
- theme: string;
644
+ theme: import("../element/types").Theme;
599
645
  gridSize: number | null;
600
646
  viewModeEnabled: boolean;
601
647
  selectedGroupIds: {
@@ -618,7 +664,7 @@ export declare const actionChangeOpacity: {
618
664
  data: import("../charts").Spreadsheet;
619
665
  };
620
666
  pendingImageElementId: string | null;
621
- showHyperlinkPopup: false | "info" | "editor";
667
+ showHyperlinkPopup: false | "editor" | "info";
622
668
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
623
669
  };
624
670
  commitToHistory: true;
@@ -642,6 +688,10 @@ export declare const actionChangeFontSize: {
642
688
  showWelcomeScreen: boolean;
643
689
  isLoading: boolean;
644
690
  errorMessage: import("react").ReactNode;
691
+ activeEmbeddable: {
692
+ element: import("../element/types").NonDeletedExcalidrawElement;
693
+ state: "active" | "hover";
694
+ } | null;
645
695
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
646
696
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
647
697
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -650,7 +700,12 @@ export declare const actionChangeFontSize: {
650
700
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
651
701
  suggestedBindings: import("../element/binding").SuggestedBinding[];
652
702
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
653
- shouldRenderFrames: boolean;
703
+ frameRendering: {
704
+ enabled: boolean;
705
+ name: boolean;
706
+ outline: boolean;
707
+ clip: boolean;
708
+ };
654
709
  editingFrame: string | null;
655
710
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
656
711
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -659,7 +714,7 @@ export declare const actionChangeFontSize: {
659
714
  lastActiveTool: import("../../src/types").LastActiveTool;
660
715
  locked: boolean;
661
716
  } & ({
662
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
717
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
663
718
  customType: null;
664
719
  } | {
665
720
  type: "custom";
@@ -703,11 +758,11 @@ export declare const actionChangeFontSize: {
703
758
  openDialog: "imageExport" | "help" | "jsonExport" | null;
704
759
  defaultSidebarDockedPreference: boolean;
705
760
  lastPointerDownWith: import("../element/types").PointerType;
706
- selectedElementIds: {
707
- [id: string]: boolean;
708
- };
761
+ selectedElementIds: Readonly<{
762
+ [id: string]: true;
763
+ }>;
709
764
  previousSelectedElementIds: {
710
- [id: string]: boolean;
765
+ [id: string]: true;
711
766
  };
712
767
  selectedElementsAreBeingDragged: boolean;
713
768
  shouldCacheIgnoreZoom: boolean;
@@ -717,7 +772,7 @@ export declare const actionChangeFontSize: {
717
772
  duration?: number | undefined;
718
773
  } | null;
719
774
  zenModeEnabled: boolean;
720
- theme: string;
775
+ theme: import("../element/types").Theme;
721
776
  gridSize: number | null;
722
777
  viewModeEnabled: boolean;
723
778
  selectedGroupIds: {
@@ -740,7 +795,7 @@ export declare const actionChangeFontSize: {
740
795
  data: import("../charts").Spreadsheet;
741
796
  };
742
797
  pendingImageElementId: string | null;
743
- showHyperlinkPopup: false | "info" | "editor";
798
+ showHyperlinkPopup: false | "editor" | "info";
744
799
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
745
800
  };
746
801
  commitToHistory: boolean;
@@ -764,6 +819,10 @@ export declare const actionDecreaseFontSize: {
764
819
  showWelcomeScreen: boolean;
765
820
  isLoading: boolean;
766
821
  errorMessage: import("react").ReactNode;
822
+ activeEmbeddable: {
823
+ element: import("../element/types").NonDeletedExcalidrawElement;
824
+ state: "active" | "hover";
825
+ } | null;
767
826
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
768
827
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
769
828
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -772,7 +831,12 @@ export declare const actionDecreaseFontSize: {
772
831
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
773
832
  suggestedBindings: import("../element/binding").SuggestedBinding[];
774
833
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
775
- shouldRenderFrames: boolean;
834
+ frameRendering: {
835
+ enabled: boolean;
836
+ name: boolean;
837
+ outline: boolean;
838
+ clip: boolean;
839
+ };
776
840
  editingFrame: string | null;
777
841
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
778
842
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -781,7 +845,7 @@ export declare const actionDecreaseFontSize: {
781
845
  lastActiveTool: import("../../src/types").LastActiveTool;
782
846
  locked: boolean;
783
847
  } & ({
784
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
848
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
785
849
  customType: null;
786
850
  } | {
787
851
  type: "custom";
@@ -825,11 +889,11 @@ export declare const actionDecreaseFontSize: {
825
889
  openDialog: "imageExport" | "help" | "jsonExport" | null;
826
890
  defaultSidebarDockedPreference: boolean;
827
891
  lastPointerDownWith: import("../element/types").PointerType;
828
- selectedElementIds: {
829
- [id: string]: boolean;
830
- };
892
+ selectedElementIds: Readonly<{
893
+ [id: string]: true;
894
+ }>;
831
895
  previousSelectedElementIds: {
832
- [id: string]: boolean;
896
+ [id: string]: true;
833
897
  };
834
898
  selectedElementsAreBeingDragged: boolean;
835
899
  shouldCacheIgnoreZoom: boolean;
@@ -839,7 +903,7 @@ export declare const actionDecreaseFontSize: {
839
903
  duration?: number | undefined;
840
904
  } | null;
841
905
  zenModeEnabled: boolean;
842
- theme: string;
906
+ theme: import("../element/types").Theme;
843
907
  gridSize: number | null;
844
908
  viewModeEnabled: boolean;
845
909
  selectedGroupIds: {
@@ -862,7 +926,7 @@ export declare const actionDecreaseFontSize: {
862
926
  data: import("../charts").Spreadsheet;
863
927
  };
864
928
  pendingImageElementId: string | null;
865
- showHyperlinkPopup: false | "info" | "editor";
929
+ showHyperlinkPopup: false | "editor" | "info";
866
930
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
867
931
  };
868
932
  commitToHistory: boolean;
@@ -886,6 +950,10 @@ export declare const actionIncreaseFontSize: {
886
950
  showWelcomeScreen: boolean;
887
951
  isLoading: boolean;
888
952
  errorMessage: import("react").ReactNode;
953
+ activeEmbeddable: {
954
+ element: import("../element/types").NonDeletedExcalidrawElement;
955
+ state: "active" | "hover";
956
+ } | null;
889
957
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
890
958
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
891
959
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -894,7 +962,12 @@ export declare const actionIncreaseFontSize: {
894
962
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
895
963
  suggestedBindings: import("../element/binding").SuggestedBinding[];
896
964
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
897
- shouldRenderFrames: boolean;
965
+ frameRendering: {
966
+ enabled: boolean;
967
+ name: boolean;
968
+ outline: boolean;
969
+ clip: boolean;
970
+ };
898
971
  editingFrame: string | null;
899
972
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
900
973
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -903,7 +976,7 @@ export declare const actionIncreaseFontSize: {
903
976
  lastActiveTool: import("../../src/types").LastActiveTool;
904
977
  locked: boolean;
905
978
  } & ({
906
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
979
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
907
980
  customType: null;
908
981
  } | {
909
982
  type: "custom";
@@ -947,11 +1020,11 @@ export declare const actionIncreaseFontSize: {
947
1020
  openDialog: "imageExport" | "help" | "jsonExport" | null;
948
1021
  defaultSidebarDockedPreference: boolean;
949
1022
  lastPointerDownWith: import("../element/types").PointerType;
950
- selectedElementIds: {
951
- [id: string]: boolean;
952
- };
1023
+ selectedElementIds: Readonly<{
1024
+ [id: string]: true;
1025
+ }>;
953
1026
  previousSelectedElementIds: {
954
- [id: string]: boolean;
1027
+ [id: string]: true;
955
1028
  };
956
1029
  selectedElementsAreBeingDragged: boolean;
957
1030
  shouldCacheIgnoreZoom: boolean;
@@ -961,7 +1034,7 @@ export declare const actionIncreaseFontSize: {
961
1034
  duration?: number | undefined;
962
1035
  } | null;
963
1036
  zenModeEnabled: boolean;
964
- theme: string;
1037
+ theme: import("../element/types").Theme;
965
1038
  gridSize: number | null;
966
1039
  viewModeEnabled: boolean;
967
1040
  selectedGroupIds: {
@@ -984,7 +1057,7 @@ export declare const actionIncreaseFontSize: {
984
1057
  data: import("../charts").Spreadsheet;
985
1058
  };
986
1059
  pendingImageElementId: string | null;
987
- showHyperlinkPopup: false | "info" | "editor";
1060
+ showHyperlinkPopup: false | "editor" | "info";
988
1061
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
989
1062
  };
990
1063
  commitToHistory: boolean;
@@ -1008,6 +1081,10 @@ export declare const actionChangeFontFamily: {
1008
1081
  showWelcomeScreen: boolean;
1009
1082
  isLoading: boolean;
1010
1083
  errorMessage: import("react").ReactNode;
1084
+ activeEmbeddable: {
1085
+ element: import("../element/types").NonDeletedExcalidrawElement;
1086
+ state: "active" | "hover";
1087
+ } | null;
1011
1088
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1012
1089
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1013
1090
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -1016,7 +1093,12 @@ export declare const actionChangeFontFamily: {
1016
1093
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1017
1094
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1018
1095
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1019
- shouldRenderFrames: boolean;
1096
+ frameRendering: {
1097
+ enabled: boolean;
1098
+ name: boolean;
1099
+ outline: boolean;
1100
+ clip: boolean;
1101
+ };
1020
1102
  editingFrame: string | null;
1021
1103
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1022
1104
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1025,7 +1107,7 @@ export declare const actionChangeFontFamily: {
1025
1107
  lastActiveTool: import("../../src/types").LastActiveTool;
1026
1108
  locked: boolean;
1027
1109
  } & ({
1028
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1110
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1029
1111
  customType: null;
1030
1112
  } | {
1031
1113
  type: "custom";
@@ -1069,11 +1151,11 @@ export declare const actionChangeFontFamily: {
1069
1151
  openDialog: "imageExport" | "help" | "jsonExport" | null;
1070
1152
  defaultSidebarDockedPreference: boolean;
1071
1153
  lastPointerDownWith: import("../element/types").PointerType;
1072
- selectedElementIds: {
1073
- [id: string]: boolean;
1074
- };
1154
+ selectedElementIds: Readonly<{
1155
+ [id: string]: true;
1156
+ }>;
1075
1157
  previousSelectedElementIds: {
1076
- [id: string]: boolean;
1158
+ [id: string]: true;
1077
1159
  };
1078
1160
  selectedElementsAreBeingDragged: boolean;
1079
1161
  shouldCacheIgnoreZoom: boolean;
@@ -1083,7 +1165,7 @@ export declare const actionChangeFontFamily: {
1083
1165
  duration?: number | undefined;
1084
1166
  } | null;
1085
1167
  zenModeEnabled: boolean;
1086
- theme: string;
1168
+ theme: import("../element/types").Theme;
1087
1169
  gridSize: number | null;
1088
1170
  viewModeEnabled: boolean;
1089
1171
  selectedGroupIds: {
@@ -1106,7 +1188,7 @@ export declare const actionChangeFontFamily: {
1106
1188
  data: import("../charts").Spreadsheet;
1107
1189
  };
1108
1190
  pendingImageElementId: string | null;
1109
- showHyperlinkPopup: false | "info" | "editor";
1191
+ showHyperlinkPopup: false | "editor" | "info";
1110
1192
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1111
1193
  };
1112
1194
  commitToHistory: true;
@@ -1130,6 +1212,10 @@ export declare const actionChangeTextAlign: {
1130
1212
  showWelcomeScreen: boolean;
1131
1213
  isLoading: boolean;
1132
1214
  errorMessage: import("react").ReactNode;
1215
+ activeEmbeddable: {
1216
+ element: import("../element/types").NonDeletedExcalidrawElement;
1217
+ state: "active" | "hover";
1218
+ } | null;
1133
1219
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1134
1220
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1135
1221
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -1138,7 +1224,12 @@ export declare const actionChangeTextAlign: {
1138
1224
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1139
1225
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1140
1226
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1141
- shouldRenderFrames: boolean;
1227
+ frameRendering: {
1228
+ enabled: boolean;
1229
+ name: boolean;
1230
+ outline: boolean;
1231
+ clip: boolean;
1232
+ };
1142
1233
  editingFrame: string | null;
1143
1234
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1144
1235
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1147,7 +1238,7 @@ export declare const actionChangeTextAlign: {
1147
1238
  lastActiveTool: import("../../src/types").LastActiveTool;
1148
1239
  locked: boolean;
1149
1240
  } & ({
1150
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1241
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1151
1242
  customType: null;
1152
1243
  } | {
1153
1244
  type: "custom";
@@ -1191,11 +1282,11 @@ export declare const actionChangeTextAlign: {
1191
1282
  openDialog: "imageExport" | "help" | "jsonExport" | null;
1192
1283
  defaultSidebarDockedPreference: boolean;
1193
1284
  lastPointerDownWith: import("../element/types").PointerType;
1194
- selectedElementIds: {
1195
- [id: string]: boolean;
1196
- };
1285
+ selectedElementIds: Readonly<{
1286
+ [id: string]: true;
1287
+ }>;
1197
1288
  previousSelectedElementIds: {
1198
- [id: string]: boolean;
1289
+ [id: string]: true;
1199
1290
  };
1200
1291
  selectedElementsAreBeingDragged: boolean;
1201
1292
  shouldCacheIgnoreZoom: boolean;
@@ -1205,7 +1296,7 @@ export declare const actionChangeTextAlign: {
1205
1296
  duration?: number | undefined;
1206
1297
  } | null;
1207
1298
  zenModeEnabled: boolean;
1208
- theme: string;
1299
+ theme: import("../element/types").Theme;
1209
1300
  gridSize: number | null;
1210
1301
  viewModeEnabled: boolean;
1211
1302
  selectedGroupIds: {
@@ -1228,7 +1319,7 @@ export declare const actionChangeTextAlign: {
1228
1319
  data: import("../charts").Spreadsheet;
1229
1320
  };
1230
1321
  pendingImageElementId: string | null;
1231
- showHyperlinkPopup: false | "info" | "editor";
1322
+ showHyperlinkPopup: false | "editor" | "info";
1232
1323
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1233
1324
  };
1234
1325
  commitToHistory: true;
@@ -1253,6 +1344,10 @@ export declare const actionChangeVerticalAlign: {
1253
1344
  showWelcomeScreen: boolean;
1254
1345
  isLoading: boolean;
1255
1346
  errorMessage: import("react").ReactNode;
1347
+ activeEmbeddable: {
1348
+ element: import("../element/types").NonDeletedExcalidrawElement;
1349
+ state: "active" | "hover";
1350
+ } | null;
1256
1351
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1257
1352
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1258
1353
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -1261,7 +1356,12 @@ export declare const actionChangeVerticalAlign: {
1261
1356
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1262
1357
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1263
1358
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1264
- shouldRenderFrames: boolean;
1359
+ frameRendering: {
1360
+ enabled: boolean;
1361
+ name: boolean;
1362
+ outline: boolean;
1363
+ clip: boolean;
1364
+ };
1265
1365
  editingFrame: string | null;
1266
1366
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1267
1367
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1270,7 +1370,7 @@ export declare const actionChangeVerticalAlign: {
1270
1370
  lastActiveTool: import("../../src/types").LastActiveTool;
1271
1371
  locked: boolean;
1272
1372
  } & ({
1273
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1373
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1274
1374
  customType: null;
1275
1375
  } | {
1276
1376
  type: "custom";
@@ -1315,11 +1415,11 @@ export declare const actionChangeVerticalAlign: {
1315
1415
  openDialog: "imageExport" | "help" | "jsonExport" | null;
1316
1416
  defaultSidebarDockedPreference: boolean;
1317
1417
  lastPointerDownWith: import("../element/types").PointerType;
1318
- selectedElementIds: {
1319
- [id: string]: boolean;
1320
- };
1418
+ selectedElementIds: Readonly<{
1419
+ [id: string]: true;
1420
+ }>;
1321
1421
  previousSelectedElementIds: {
1322
- [id: string]: boolean;
1422
+ [id: string]: true;
1323
1423
  };
1324
1424
  selectedElementsAreBeingDragged: boolean;
1325
1425
  shouldCacheIgnoreZoom: boolean;
@@ -1329,7 +1429,7 @@ export declare const actionChangeVerticalAlign: {
1329
1429
  duration?: number | undefined;
1330
1430
  } | null;
1331
1431
  zenModeEnabled: boolean;
1332
- theme: string;
1432
+ theme: import("../element/types").Theme;
1333
1433
  gridSize: number | null;
1334
1434
  viewModeEnabled: boolean;
1335
1435
  selectedGroupIds: {
@@ -1352,7 +1452,7 @@ export declare const actionChangeVerticalAlign: {
1352
1452
  data: import("../charts").Spreadsheet;
1353
1453
  };
1354
1454
  pendingImageElementId: string | null;
1355
- showHyperlinkPopup: false | "info" | "editor";
1455
+ showHyperlinkPopup: false | "editor" | "info";
1356
1456
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1357
1457
  };
1358
1458
  commitToHistory: true;
@@ -1376,6 +1476,10 @@ export declare const actionChangeRoundness: {
1376
1476
  showWelcomeScreen: boolean;
1377
1477
  isLoading: boolean;
1378
1478
  errorMessage: import("react").ReactNode;
1479
+ activeEmbeddable: {
1480
+ element: import("../element/types").NonDeletedExcalidrawElement;
1481
+ state: "active" | "hover";
1482
+ } | null;
1379
1483
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1380
1484
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1381
1485
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -1384,7 +1488,12 @@ export declare const actionChangeRoundness: {
1384
1488
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1385
1489
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1386
1490
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1387
- shouldRenderFrames: boolean;
1491
+ frameRendering: {
1492
+ enabled: boolean;
1493
+ name: boolean;
1494
+ outline: boolean;
1495
+ clip: boolean;
1496
+ };
1388
1497
  editingFrame: string | null;
1389
1498
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1390
1499
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1393,7 +1502,7 @@ export declare const actionChangeRoundness: {
1393
1502
  lastActiveTool: import("../../src/types").LastActiveTool;
1394
1503
  locked: boolean;
1395
1504
  } & ({
1396
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1505
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1397
1506
  customType: null;
1398
1507
  } | {
1399
1508
  type: "custom";
@@ -1437,11 +1546,11 @@ export declare const actionChangeRoundness: {
1437
1546
  openDialog: "imageExport" | "help" | "jsonExport" | null;
1438
1547
  defaultSidebarDockedPreference: boolean;
1439
1548
  lastPointerDownWith: import("../element/types").PointerType;
1440
- selectedElementIds: {
1441
- [id: string]: boolean;
1442
- };
1549
+ selectedElementIds: Readonly<{
1550
+ [id: string]: true;
1551
+ }>;
1443
1552
  previousSelectedElementIds: {
1444
- [id: string]: boolean;
1553
+ [id: string]: true;
1445
1554
  };
1446
1555
  selectedElementsAreBeingDragged: boolean;
1447
1556
  shouldCacheIgnoreZoom: boolean;
@@ -1451,7 +1560,7 @@ export declare const actionChangeRoundness: {
1451
1560
  duration?: number | undefined;
1452
1561
  } | null;
1453
1562
  zenModeEnabled: boolean;
1454
- theme: string;
1563
+ theme: import("../element/types").Theme;
1455
1564
  gridSize: number | null;
1456
1565
  viewModeEnabled: boolean;
1457
1566
  selectedGroupIds: {
@@ -1474,7 +1583,7 @@ export declare const actionChangeRoundness: {
1474
1583
  data: import("../charts").Spreadsheet;
1475
1584
  };
1476
1585
  pendingImageElementId: string | null;
1477
- showHyperlinkPopup: false | "info" | "editor";
1586
+ showHyperlinkPopup: false | "editor" | "info";
1478
1587
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1479
1588
  };
1480
1589
  commitToHistory: true;
@@ -1500,6 +1609,10 @@ export declare const actionChangeArrowhead: {
1500
1609
  showWelcomeScreen: boolean;
1501
1610
  isLoading: boolean;
1502
1611
  errorMessage: import("react").ReactNode;
1612
+ activeEmbeddable: {
1613
+ element: import("../element/types").NonDeletedExcalidrawElement;
1614
+ state: "active" | "hover";
1615
+ } | null;
1503
1616
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1504
1617
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1505
1618
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -1508,7 +1621,12 @@ export declare const actionChangeArrowhead: {
1508
1621
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1509
1622
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1510
1623
  frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1511
- shouldRenderFrames: boolean;
1624
+ frameRendering: {
1625
+ enabled: boolean;
1626
+ name: boolean;
1627
+ outline: boolean;
1628
+ clip: boolean;
1629
+ };
1512
1630
  editingFrame: string | null;
1513
1631
  elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1514
1632
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1517,7 +1635,7 @@ export declare const actionChangeArrowhead: {
1517
1635
  lastActiveTool: import("../../src/types").LastActiveTool;
1518
1636
  locked: boolean;
1519
1637
  } & ({
1520
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1638
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
1521
1639
  customType: null;
1522
1640
  } | {
1523
1641
  type: "custom";
@@ -1562,11 +1680,11 @@ export declare const actionChangeArrowhead: {
1562
1680
  openDialog: "imageExport" | "help" | "jsonExport" | null;
1563
1681
  defaultSidebarDockedPreference: boolean;
1564
1682
  lastPointerDownWith: import("../element/types").PointerType;
1565
- selectedElementIds: {
1566
- [id: string]: boolean;
1567
- };
1683
+ selectedElementIds: Readonly<{
1684
+ [id: string]: true;
1685
+ }>;
1568
1686
  previousSelectedElementIds: {
1569
- [id: string]: boolean;
1687
+ [id: string]: true;
1570
1688
  };
1571
1689
  selectedElementsAreBeingDragged: boolean;
1572
1690
  shouldCacheIgnoreZoom: boolean;
@@ -1576,7 +1694,7 @@ export declare const actionChangeArrowhead: {
1576
1694
  duration?: number | undefined;
1577
1695
  } | null;
1578
1696
  zenModeEnabled: boolean;
1579
- theme: string;
1697
+ theme: import("../element/types").Theme;
1580
1698
  gridSize: number | null;
1581
1699
  viewModeEnabled: boolean;
1582
1700
  selectedGroupIds: {
@@ -1599,7 +1717,7 @@ export declare const actionChangeArrowhead: {
1599
1717
  data: import("../charts").Spreadsheet;
1600
1718
  };
1601
1719
  pendingImageElementId: string | null;
1602
- showHyperlinkPopup: false | "info" | "editor";
1720
+ showHyperlinkPopup: false | "editor" | "info";
1603
1721
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1604
1722
  };
1605
1723
  commitToHistory: true;