@dwelle/excalidraw 0.4.0-d68dd48 → 0.4.0-e03b600

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 (163) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +4 -0
  3. package/dist/excalidraw.development.js +1314 -248
  4. package/dist/excalidraw.production.min.js +1 -1
  5. package/package.json +2 -2
  6. package/types/actions/actionAddToLibrary.d.ts +36 -12
  7. package/types/actions/actionAlign.d.ts +6 -0
  8. package/types/actions/actionBoundText.d.ts +24 -8
  9. package/types/actions/actionCanvas.d.ts +235 -41
  10. package/types/actions/actionClipboard.d.ts +60 -20
  11. package/types/actions/actionDeleteSelected.d.ts +36 -12
  12. package/types/actions/actionElementLock.d.ts +254 -0
  13. package/types/actions/actionExport.d.ts +109 -37
  14. package/types/actions/actionFinalize.d.ts +24 -8
  15. package/types/actions/actionFlip.d.ts +2 -4
  16. package/types/actions/actionFrame.d.ts +397 -0
  17. package/types/actions/actionGroup.d.ts +2 -2
  18. package/types/actions/actionHistory.d.ts +1 -1
  19. package/types/actions/actionLinearEditor.d.ts +12 -4
  20. package/types/actions/actionMenu.d.ts +37 -14
  21. package/types/actions/actionNavigate.d.ts +1 -1
  22. package/types/actions/actionProperties.d.ts +158 -54
  23. package/types/actions/actionStyles.d.ts +12 -4
  24. package/types/actions/actionToggleGridMode.d.ts +12 -4
  25. package/types/actions/actionToggleStats.d.ts +12 -4
  26. package/types/actions/actionToggleViewMode.d.ts +12 -4
  27. package/types/actions/actionToggleZenMode.d.ts +12 -4
  28. package/types/actions/actionZindex.d.ts +4 -4
  29. package/types/actions/index.d.ts +1 -1
  30. package/types/actions/manager.d.ts +1 -1
  31. package/types/actions/shortcuts.d.ts +1 -1
  32. package/types/actions/types.d.ts +7 -7
  33. package/types/appState.d.ts +6 -3
  34. package/types/charts.d.ts +2 -2
  35. package/types/clients.d.ts +5 -6
  36. package/types/clipboard.d.ts +2 -2
  37. package/types/colors.d.ts +60 -5
  38. package/types/components/Actions.d.ts +5 -5
  39. package/types/components/ActiveConfirmDialog.d.ts +1 -21
  40. package/types/components/App.d.ts +32 -9
  41. package/types/components/Avatar.d.ts +1 -2
  42. package/types/components/Button.d.ts +3 -1
  43. package/types/components/ColorPicker/ColorInput.d.ts +7 -0
  44. package/types/components/ColorPicker/ColorPicker.d.ts +19 -0
  45. package/types/components/ColorPicker/CustomColorList.d.ts +8 -0
  46. package/types/components/ColorPicker/HotkeyLabel.d.ts +8 -0
  47. package/types/components/ColorPicker/Picker.d.ts +18 -0
  48. package/types/components/ColorPicker/PickerColorList.d.ts +10 -0
  49. package/types/components/ColorPicker/PickerHeading.d.ts +5 -0
  50. package/types/components/ColorPicker/ShadeList.d.ts +8 -0
  51. package/types/components/ColorPicker/TopPicks.d.ts +9 -0
  52. package/types/components/ColorPicker/colorPickerUtils.d.ts +21 -0
  53. package/types/components/ColorPicker/keyboardNavHandlers.d.ts +21 -0
  54. package/types/components/ContextMenu.d.ts +3 -3
  55. package/types/components/DefaultSidebar.d.ts +30 -0
  56. package/types/components/Dialog.d.ts +3 -4
  57. package/types/components/EyeDropper.d.ts +18 -0
  58. package/types/components/FilledButton.d.ts +17 -0
  59. package/types/components/FixedSideContainer.d.ts +1 -1
  60. package/types/components/HandButton.d.ts +1 -1
  61. package/types/components/HelpButton.d.ts +1 -1
  62. package/types/components/HintViewer.d.ts +2 -2
  63. package/types/components/HomeButton.d.ts +1 -1
  64. package/types/components/ImageExportDialog.d.ts +8 -13
  65. package/types/components/Island.d.ts +1 -1
  66. package/types/components/JSONExportDialog.d.ts +4 -4
  67. package/types/components/LayerUI.d.ts +4 -10
  68. package/types/components/LibraryMenu.d.ts +13 -14
  69. package/types/components/LibraryMenuBrowseButton.d.ts +2 -2
  70. package/types/components/LibraryMenuControlButtons.d.ts +9 -0
  71. package/types/components/LibraryMenuHeaderContent.d.ts +11 -28
  72. package/types/components/LibraryMenuItems.d.ts +6 -7
  73. package/types/components/LibraryMenuSection.d.ts +22 -0
  74. package/types/components/LibraryUnit.d.ts +7 -3
  75. package/types/components/LockButton.d.ts +1 -1
  76. package/types/components/MobileMenu.d.ts +4 -4
  77. package/types/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -0
  78. package/types/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -0
  79. package/types/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -0
  80. package/types/components/PasteChartDialog.d.ts +4 -5
  81. package/types/components/PenModeButton.d.ts +1 -1
  82. package/types/components/Popover.d.ts +1 -1
  83. package/types/components/ProjectName.d.ts +2 -1
  84. package/types/components/PublishLibrary.d.ts +2 -2
  85. package/types/components/RadioGroup.d.ts +12 -0
  86. package/types/components/Sidebar/Sidebar.d.ts +66 -63
  87. package/types/components/Sidebar/SidebarHeader.d.ts +6 -19
  88. package/types/components/Sidebar/SidebarTab.d.ts +9 -0
  89. package/types/components/Sidebar/SidebarTabTrigger.d.ts +10 -0
  90. package/types/components/Sidebar/SidebarTabTriggers.d.ts +7 -0
  91. package/types/components/Sidebar/SidebarTabs.d.ts +7 -0
  92. package/types/components/Sidebar/SidebarTrigger.d.ts +6 -0
  93. package/types/components/Sidebar/common.d.ts +24 -7
  94. package/types/components/Spinner.d.ts +2 -1
  95. package/types/components/Stack.d.ts +4 -3
  96. package/types/components/Stats.d.ts +3 -3
  97. package/types/components/Switch.d.ts +9 -0
  98. package/types/components/ToolButton.d.ts +5 -4
  99. package/types/components/Tooltip.d.ts +1 -1
  100. package/types/components/Trans.d.ts +8 -0
  101. package/types/components/dropdownMenu/DropdownMenu.d.ts +3 -2
  102. package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +4 -2
  103. package/types/components/footer/Footer.d.ts +2 -2
  104. package/types/components/icons.d.ts +11 -1
  105. package/types/components/main-menu/MainMenu.d.ts +3 -2
  106. package/types/constants.d.ts +42 -6
  107. package/types/context/tunnels.d.ts +19 -0
  108. package/types/context/ui-appState.d.ts +4 -0
  109. package/types/data/blob.d.ts +2 -2
  110. package/types/data/encode.d.ts +1 -1
  111. package/types/data/filesystem.d.ts +2 -1
  112. package/types/data/library.d.ts +3 -45
  113. package/types/data/restore.d.ts +2 -2
  114. package/types/data/types.d.ts +3 -5
  115. package/types/element/Hyperlink.d.ts +14 -6
  116. package/types/element/binding.d.ts +3 -3
  117. package/types/element/bounds.d.ts +31 -6
  118. package/types/element/collision.d.ts +7 -7
  119. package/types/element/dragElements.d.ts +2 -1
  120. package/types/element/image.d.ts +11 -1
  121. package/types/element/index.d.ts +3 -2
  122. package/types/element/linearElementEditor.d.ts +13 -5
  123. package/types/element/mutateElement.d.ts +1 -1
  124. package/types/element/newElement.d.ts +10 -3
  125. package/types/element/resizeElements.d.ts +1 -0
  126. package/types/element/showSelectedShapeActions.d.ts +2 -2
  127. package/types/element/textElement.d.ts +3 -2
  128. package/types/element/transformHandles.d.ts +12 -5
  129. package/types/element/typeChecks.d.ts +2 -1
  130. package/types/element/types.d.ts +40 -35
  131. package/types/emitter.d.ts +1 -1
  132. package/types/errors.d.ts +1 -1
  133. package/types/frame.d.ts +40 -0
  134. package/types/ga.d.ts +5 -5
  135. package/types/groups.d.ts +4 -0
  136. package/types/hooks/useCreatePortalContainer.d.ts +4 -0
  137. package/types/hooks/useLibraryItemSvg.d.ts +11 -0
  138. package/types/hooks/useOutsideClick.d.ts +19 -1
  139. package/types/hooks/useScrollPosition.d.ts +2 -0
  140. package/types/hooks/useTransition.d.ts +2 -0
  141. package/types/i18n.d.ts +2 -2
  142. package/types/jotai.d.ts +16 -104
  143. package/types/keys.d.ts +2 -1
  144. package/types/math.d.ts +1 -0
  145. package/types/packages/excalidraw/example/initialData.d.ts +6 -0
  146. package/types/packages/excalidraw/index.d.ts +2 -1
  147. package/types/packages/utils.d.ts +2 -2
  148. package/types/renderer/renderElement.d.ts +4 -3
  149. package/types/renderer/renderScene.d.ts +12 -3
  150. package/types/renderer/roundRect.d.ts +1 -1
  151. package/types/scene/Scene.d.ts +12 -5
  152. package/types/scene/export.d.ts +3 -2
  153. package/types/scene/selection.d.ts +15 -5
  154. package/types/scene/types.d.ts +4 -4
  155. package/types/types.d.ts +91 -52
  156. package/types/utility-types.d.ts +13 -13
  157. package/types/utils.d.ts +20 -25
  158. package/types/zindex.d.ts +4 -4
  159. package/types/actions/actionToggleLock.d.ts +0 -119
  160. package/types/components/ColorPicker.d.ts +0 -14
  161. package/types/components/LibraryButton.d.ts +0 -8
  162. package/types/components/context/tunnels.d.ts +0 -16
  163. package/types/components/hoc/withUpstreamOverride.d.ts +0 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dwelle/excalidraw",
3
- "version": "0.4.0-d68dd48",
3
+ "version": "0.4.0-e03b600",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -56,7 +56,7 @@
56
56
  "sass-loader": "13.0.2",
57
57
  "terser-webpack-plugin": "5.3.3",
58
58
  "ts-loader": "9.3.1",
59
- "typescript": "4.7.4",
59
+ "typescript": "4.9.4",
60
60
  "webpack": "5.76.0",
61
61
  "webpack-bundle-analyzer": "4.5.0",
62
62
  "webpack-cli": "4.10.0",
@@ -25,13 +25,17 @@ export declare const actionAddToLibrary: {
25
25
  isBindingEnabled: boolean;
26
26
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
27
27
  suggestedBindings: import("../element/binding").SuggestedBinding[];
28
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
29
+ shouldRenderFrames: boolean;
30
+ editingFrame: string | null;
31
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
28
32
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
29
33
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
30
34
  activeTool: {
31
35
  lastActiveTool: import("../types").LastActiveTool;
32
36
  locked: boolean;
33
37
  } & ({
34
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
38
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
35
39
  customType: null;
36
40
  } | {
37
41
  type: "custom";
@@ -68,10 +72,13 @@ export declare const actionAddToLibrary: {
68
72
  value: import("../types").NormalizedZoomValue;
69
73
  }>;
70
74
  openMenu: "canvas" | "shape" | null;
71
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
72
- openSidebar: "library" | "customSidebar" | null;
75
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
76
+ openSidebar: {
77
+ name: string;
78
+ tab?: string | undefined;
79
+ } | null;
73
80
  openDialog: "imageExport" | "help" | "jsonExport" | null;
74
- isSidebarDocked: boolean;
81
+ defaultSidebarDockedPreference: boolean;
75
82
  lastPointerDownWith: import("../element/types").PointerType;
76
83
  selectedElementIds: {
77
84
  [id: string]: boolean;
@@ -79,6 +86,7 @@ export declare const actionAddToLibrary: {
79
86
  previousSelectedElementIds: {
80
87
  [id: string]: boolean;
81
88
  };
89
+ selectedElementsAreBeingDragged: boolean;
82
90
  shouldCacheIgnoreZoom: boolean;
83
91
  zenModeEnabled: boolean;
84
92
  theme: string;
@@ -125,13 +133,17 @@ export declare const actionAddToLibrary: {
125
133
  isBindingEnabled: boolean;
126
134
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
127
135
  suggestedBindings: import("../element/binding").SuggestedBinding[];
136
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
137
+ shouldRenderFrames: boolean;
138
+ editingFrame: string | null;
139
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
128
140
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
129
141
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
130
142
  activeTool: {
131
143
  lastActiveTool: import("../types").LastActiveTool;
132
144
  locked: boolean;
133
145
  } & ({
134
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
146
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
135
147
  customType: null;
136
148
  } | {
137
149
  type: "custom";
@@ -168,10 +180,13 @@ export declare const actionAddToLibrary: {
168
180
  value: import("../types").NormalizedZoomValue;
169
181
  }>;
170
182
  openMenu: "canvas" | "shape" | null;
171
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
172
- openSidebar: "library" | "customSidebar" | null;
183
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
184
+ openSidebar: {
185
+ name: string;
186
+ tab?: string | undefined;
187
+ } | null;
173
188
  openDialog: "imageExport" | "help" | "jsonExport" | null;
174
- isSidebarDocked: boolean;
189
+ defaultSidebarDockedPreference: boolean;
175
190
  lastPointerDownWith: import("../element/types").PointerType;
176
191
  selectedElementIds: {
177
192
  [id: string]: boolean;
@@ -179,6 +194,7 @@ export declare const actionAddToLibrary: {
179
194
  previousSelectedElementIds: {
180
195
  [id: string]: boolean;
181
196
  };
197
+ selectedElementsAreBeingDragged: boolean;
182
198
  shouldCacheIgnoreZoom: boolean;
183
199
  toast: {
184
200
  message: string;
@@ -230,13 +246,17 @@ export declare const actionAddToLibrary: {
230
246
  isBindingEnabled: boolean;
231
247
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
232
248
  suggestedBindings: import("../element/binding").SuggestedBinding[];
249
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
250
+ shouldRenderFrames: boolean;
251
+ editingFrame: string | null;
252
+ elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
233
253
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
234
254
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
235
255
  activeTool: {
236
256
  lastActiveTool: import("../types").LastActiveTool;
237
257
  locked: boolean;
238
258
  } & ({
239
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
259
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
240
260
  customType: null;
241
261
  } | {
242
262
  type: "custom";
@@ -273,10 +293,13 @@ export declare const actionAddToLibrary: {
273
293
  value: import("../types").NormalizedZoomValue;
274
294
  }>;
275
295
  openMenu: "canvas" | "shape" | null;
276
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
277
- openSidebar: "library" | "customSidebar" | null;
296
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
297
+ openSidebar: {
298
+ name: string;
299
+ tab?: string | undefined;
300
+ } | null;
278
301
  openDialog: "imageExport" | "help" | "jsonExport" | null;
279
- isSidebarDocked: boolean;
302
+ defaultSidebarDockedPreference: boolean;
280
303
  lastPointerDownWith: import("../element/types").PointerType;
281
304
  selectedElementIds: {
282
305
  [id: string]: boolean;
@@ -284,6 +307,7 @@ export declare const actionAddToLibrary: {
284
307
  previousSelectedElementIds: {
285
308
  [id: string]: boolean;
286
309
  };
310
+ selectedElementsAreBeingDragged: boolean;
287
311
  shouldCacheIgnoreZoom: boolean;
288
312
  toast: {
289
313
  message: string;
@@ -6,6 +6,7 @@ export declare const actionAlignTop: {
6
6
  trackEvent: {
7
7
  category: "element";
8
8
  };
9
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
9
10
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
10
11
  appState: Readonly<AppState>;
11
12
  elements: ExcalidrawElement[];
@@ -21,6 +22,7 @@ export declare const actionAlignBottom: {
21
22
  trackEvent: {
22
23
  category: "element";
23
24
  };
25
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
24
26
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
25
27
  appState: Readonly<AppState>;
26
28
  elements: ExcalidrawElement[];
@@ -36,6 +38,7 @@ export declare const actionAlignLeft: {
36
38
  trackEvent: {
37
39
  category: "element";
38
40
  };
41
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
39
42
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
40
43
  appState: Readonly<AppState>;
41
44
  elements: ExcalidrawElement[];
@@ -51,6 +54,7 @@ export declare const actionAlignRight: {
51
54
  trackEvent: {
52
55
  category: "element";
53
56
  };
57
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
54
58
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
55
59
  appState: Readonly<AppState>;
56
60
  elements: ExcalidrawElement[];
@@ -66,6 +70,7 @@ export declare const actionAlignVerticallyCentered: {
66
70
  trackEvent: {
67
71
  category: "element";
68
72
  };
73
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
69
74
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
70
75
  appState: Readonly<AppState>;
71
76
  elements: ExcalidrawElement[];
@@ -80,6 +85,7 @@ export declare const actionAlignHorizontallyCentered: {
80
85
  trackEvent: {
81
86
  category: "element";
82
87
  };
88
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
83
89
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
84
90
  appState: Readonly<AppState>;
85
91
  elements: ExcalidrawElement[];
@@ -44,13 +44,17 @@ export declare const actionBindText: {
44
44
  isBindingEnabled: boolean;
45
45
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
46
46
  suggestedBindings: import("../element/binding").SuggestedBinding[];
47
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
48
+ shouldRenderFrames: boolean;
49
+ editingFrame: string | null;
50
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
47
51
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
48
52
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
49
53
  activeTool: {
50
54
  lastActiveTool: import("../types").LastActiveTool;
51
55
  locked: boolean;
52
56
  } & ({
53
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
57
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
54
58
  customType: null;
55
59
  } | {
56
60
  type: "custom";
@@ -87,14 +91,18 @@ export declare const actionBindText: {
87
91
  value: import("../types").NormalizedZoomValue;
88
92
  }>;
89
93
  openMenu: "canvas" | "shape" | null;
90
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
91
- openSidebar: "library" | "customSidebar" | null;
94
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
95
+ openSidebar: {
96
+ name: string;
97
+ tab?: string | undefined;
98
+ } | null;
92
99
  openDialog: "imageExport" | "help" | "jsonExport" | null;
93
- isSidebarDocked: boolean;
100
+ defaultSidebarDockedPreference: boolean;
94
101
  lastPointerDownWith: import("../element/types").PointerType;
95
102
  previousSelectedElementIds: {
96
103
  [id: string]: boolean;
97
104
  };
105
+ selectedElementsAreBeingDragged: boolean;
98
106
  shouldCacheIgnoreZoom: boolean;
99
107
  toast: {
100
108
  message: string;
@@ -161,13 +169,17 @@ export declare const actionWrapTextInContainer: {
161
169
  isBindingEnabled: boolean;
162
170
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
163
171
  suggestedBindings: import("../element/binding").SuggestedBinding[];
172
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
173
+ shouldRenderFrames: boolean;
174
+ editingFrame: string | null;
175
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
164
176
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
165
177
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
166
178
  activeTool: {
167
179
  lastActiveTool: import("../types").LastActiveTool;
168
180
  locked: boolean;
169
181
  } & ({
170
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
182
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
171
183
  customType: null;
172
184
  } | {
173
185
  type: "custom";
@@ -204,14 +216,18 @@ export declare const actionWrapTextInContainer: {
204
216
  value: import("../types").NormalizedZoomValue;
205
217
  }>;
206
218
  openMenu: "canvas" | "shape" | null;
207
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
208
- openSidebar: "library" | "customSidebar" | null;
219
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
220
+ openSidebar: {
221
+ name: string;
222
+ tab?: string | undefined;
223
+ } | null;
209
224
  openDialog: "imageExport" | "help" | "jsonExport" | null;
210
- isSidebarDocked: boolean;
225
+ defaultSidebarDockedPreference: boolean;
211
226
  lastPointerDownWith: import("../element/types").PointerType;
212
227
  previousSelectedElementIds: {
213
228
  [id: string]: boolean;
214
229
  };
230
+ selectedElementsAreBeingDragged: boolean;
215
231
  shouldCacheIgnoreZoom: boolean;
216
232
  toast: {
217
233
  message: string;