@excalidraw/element 0.18.0-c141960 → 0.18.0-c158187

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 (173) hide show
  1. package/dist/dev/index.js +1061 -171
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +17 -17
  4. package/dist/types/common/src/bounds.d.ts +10 -0
  5. package/dist/types/common/src/colors.d.ts +5 -2
  6. package/dist/types/common/src/constants.d.ts +13 -11
  7. package/dist/types/common/src/font-metadata.d.ts +1 -3
  8. package/dist/types/common/src/index.d.ts +1 -0
  9. package/dist/types/common/src/keys.d.ts +1 -1
  10. package/dist/types/common/src/utility-types.d.ts +0 -1
  11. package/dist/types/common/src/utils.d.ts +43 -33
  12. package/dist/types/common/src/visualdebug.d.ts +1 -1
  13. package/dist/types/element/src/Scene.d.ts +3 -3
  14. package/dist/types/element/src/binding.d.ts +6 -4
  15. package/dist/types/element/src/bounds.d.ts +2 -10
  16. package/dist/types/element/src/collision.d.ts +2 -2
  17. package/dist/types/element/src/comparisons.d.ts +7 -7
  18. package/dist/types/element/src/dragElements.d.ts +3 -3
  19. package/dist/types/element/src/duplicate.d.ts +3 -3
  20. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  21. package/dist/types/element/src/frame.d.ts +5 -1
  22. package/dist/types/element/src/heading.d.ts +2 -1
  23. package/dist/types/element/src/image.d.ts +1 -11
  24. package/dist/types/element/src/index.d.ts +1 -0
  25. package/dist/types/element/src/linearElementEditor.d.ts +1 -2
  26. package/dist/types/element/src/mutateElement.d.ts +3 -1
  27. package/dist/types/element/src/newElement.d.ts +6 -6
  28. package/dist/types/element/src/renderElement.d.ts +0 -6
  29. package/dist/types/element/src/resizeElements.d.ts +10 -10
  30. package/dist/types/element/src/resizeTest.d.ts +1 -1
  31. package/dist/types/element/src/selection.d.ts +3 -7
  32. package/dist/types/element/src/shape.d.ts +8 -7
  33. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  34. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  35. package/dist/types/element/src/transformHandles.d.ts +3 -23
  36. package/dist/types/element/src/typeChecks.d.ts +2 -4
  37. package/dist/types/element/src/utils.d.ts +3 -1
  38. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +62 -126
  39. package/dist/types/excalidraw/actions/actionAlign.d.ts +0 -1
  40. package/dist/types/excalidraw/actions/actionBoundText.d.ts +44 -87
  41. package/dist/types/excalidraw/actions/actionCanvas.d.ts +263 -510
  42. package/dist/types/excalidraw/actions/actionClipboard.d.ts +44 -87
  43. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +21 -43
  44. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +74 -142
  45. package/dist/types/excalidraw/actions/actionDistribute.d.ts +0 -1
  46. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +0 -1
  47. package/dist/types/excalidraw/actions/actionElementLink.d.ts +18 -40
  48. package/dist/types/excalidraw/actions/actionElementLock.d.ts +45 -88
  49. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +22 -44
  50. package/dist/types/excalidraw/actions/actionExport.d.ts +85 -170
  51. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -2
  52. package/dist/types/excalidraw/actions/actionFlip.d.ts +0 -1
  53. package/dist/types/excalidraw/actions/actionFrame.d.ts +181 -302
  54. package/dist/types/excalidraw/actions/actionGroup.d.ts +48 -99
  55. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +122 -180
  56. package/dist/types/excalidraw/actions/actionLink.d.ts +22 -44
  57. package/dist/types/excalidraw/actions/actionMenu.d.ts +17 -39
  58. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -17
  59. package/dist/types/excalidraw/actions/actionProperties.d.ts +59 -102
  60. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +24 -50
  61. package/dist/types/excalidraw/actions/actionStyles.d.ts +20 -42
  62. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +22 -44
  63. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +22 -44
  64. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -38
  65. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +22 -44
  66. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +22 -44
  67. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +22 -44
  68. package/dist/types/excalidraw/actions/actionZindex.d.ts +0 -1
  69. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  70. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  71. package/dist/types/excalidraw/appState.d.ts +3 -3
  72. package/dist/types/excalidraw/clipboard.d.ts +7 -31
  73. package/dist/types/excalidraw/components/Actions.d.ts +1 -1
  74. package/dist/types/excalidraw/components/App.d.ts +33 -41
  75. package/dist/types/excalidraw/components/Card.d.ts +0 -1
  76. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +7 -4
  77. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  78. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  79. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +0 -1
  80. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  81. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  82. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  83. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  84. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  85. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  86. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -1
  87. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  88. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  89. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  90. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  91. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  92. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  93. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  94. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  95. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
  96. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  97. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  98. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  99. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  100. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  101. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  102. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  103. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  104. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  105. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  106. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  107. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  108. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  109. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  110. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  111. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  112. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +1 -2
  113. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +0 -1
  114. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  115. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  116. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  117. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  118. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +2 -3
  119. package/dist/types/excalidraw/components/Toast.d.ts +3 -3
  120. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  121. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +28 -32
  122. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +5 -5
  123. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  124. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +10 -18
  125. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +3 -3
  126. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  127. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  128. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  129. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  130. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  131. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  132. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  133. package/dist/types/excalidraw/components/icons.d.ts +11 -11
  134. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +2 -13
  135. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -2
  136. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +26 -28
  137. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
  138. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
  139. package/dist/types/excalidraw/data/blob.d.ts +321 -3
  140. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  141. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  142. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  143. package/dist/types/excalidraw/data/index.d.ts +3 -3
  144. package/dist/types/excalidraw/data/json.d.ts +159 -2
  145. package/dist/types/excalidraw/data/library.d.ts +24 -9
  146. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  147. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  148. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +1 -2
  149. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  150. package/dist/types/excalidraw/i18n.d.ts +2 -2
  151. package/dist/types/excalidraw/index.d.ts +2 -4
  152. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -4
  153. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -6
  154. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  155. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  156. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  157. package/dist/types/excalidraw/scene/types.d.ts +7 -2
  158. package/dist/types/excalidraw/snapping.d.ts +5 -5
  159. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  160. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  161. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  162. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  163. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  164. package/dist/types/excalidraw/types.d.ts +1 -1
  165. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  166. package/dist/types/math/src/polygon.d.ts +2 -2
  167. package/dist/types/math/src/range.d.ts +1 -3
  168. package/dist/types/math/src/segment.d.ts +3 -3
  169. package/dist/types/utils/src/bbox.d.ts +1 -1
  170. package/dist/types/utils/src/export.d.ts +5 -5
  171. package/dist/types/utils/src/shape.d.ts +6 -6
  172. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  173. package/package.json +3 -3
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
3
2
  import type { Mutable } from "@excalidraw/common/utility-types";
4
3
  import type { AppState } from "../types";
@@ -37,10 +36,10 @@ export declare const actionBindText: {
37
36
  } | null;
38
37
  showWelcomeScreen: boolean;
39
38
  isLoading: boolean;
40
- errorMessage: import("react").ReactNode;
39
+ errorMessage: React.ReactNode;
41
40
  activeEmbeddable: {
42
41
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
43
- state: "active" | "hover";
42
+ state: "hover" | "active";
44
43
  } | null;
45
44
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
46
45
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -76,19 +75,19 @@ export declare const actionBindText: {
76
75
  exportScale: number;
77
76
  currentItemStrokeColor: string;
78
77
  currentItemBackgroundColor: string;
79
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
78
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
80
79
  currentItemStrokeWidth: number;
81
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
80
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
82
81
  currentItemRoughness: number;
83
82
  currentItemOpacity: number;
84
- currentItemFontFamily: number;
83
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
85
84
  currentItemFontSize: number;
86
- currentItemTextAlign: string;
85
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
87
86
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
88
87
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
89
- currentHoveredFontFamily: number | null;
88
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
90
89
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
91
- currentItemArrowType: "round" | "sharp" | "elbow";
90
+ currentItemArrowType: "sharp" | "round" | "elbow";
92
91
  viewBackgroundColor: string;
93
92
  scrollX: number;
94
93
  scrollY: number;
@@ -97,28 +96,26 @@ export declare const actionBindText: {
97
96
  name: string | null;
98
97
  isResizing: boolean;
99
98
  isRotating: boolean;
100
- zoom: Readonly<{
101
- value: import("../types").NormalizedZoomValue;
102
- }>;
99
+ zoom: import("../types").Zoom;
103
100
  openMenu: "canvas" | null;
104
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
101
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
105
102
  openSidebar: {
106
- name: string;
107
- tab?: string | undefined;
103
+ name: import("../types").SidebarName;
104
+ tab?: import("../types").SidebarTabName;
108
105
  } | null;
109
- openDialog: {
106
+ openDialog: null | {
110
107
  name: "imageExport" | "help" | "jsonExport";
111
108
  } | {
112
109
  name: "ttd";
113
- tab: "mermaid" | "text-to-diagram";
110
+ tab: "text-to-diagram" | "mermaid";
114
111
  } | {
115
112
  name: "commandPalette";
116
113
  } | {
117
114
  name: "settings";
118
115
  } | {
119
116
  name: "elementLinkSelector";
120
- sourceElementId: string;
121
- } | null;
117
+ sourceElementId: ExcalidrawElement["id"];
118
+ };
122
119
  defaultSidebarDockedPreference: boolean;
123
120
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
124
121
  hoveredElementIds: Readonly<{
@@ -131,8 +128,8 @@ export declare const actionBindText: {
131
128
  shouldCacheIgnoreZoom: boolean;
132
129
  toast: {
133
130
  message: string;
134
- closable?: boolean | undefined;
135
- duration?: number | undefined;
131
+ closable?: boolean;
132
+ duration?: number;
136
133
  } | null;
137
134
  zenModeEnabled: boolean;
138
135
  theme: import("@excalidraw/element/types").Theme;
@@ -143,32 +140,13 @@ export declare const actionBindText: {
143
140
  selectedGroupIds: {
144
141
  [groupId: string]: boolean;
145
142
  };
146
- editingGroupId: string | null;
143
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
147
144
  width: number;
148
145
  height: number;
149
146
  offsetTop: number;
150
147
  offsetLeft: number;
151
148
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
152
- collaborators: Map<import("../types").SocketId, Readonly<{
153
- pointer?: import("../types").CollaboratorPointer | undefined;
154
- button?: "up" | "down" | undefined;
155
- selectedElementIds?: Readonly<{
156
- [id: string]: true;
157
- }> | undefined;
158
- username?: string | null | undefined;
159
- userState?: import("@excalidraw/common").UserIdleState | undefined;
160
- color?: {
161
- background: string;
162
- stroke: string;
163
- } | undefined;
164
- avatarUrl?: string | undefined;
165
- id?: string | undefined;
166
- socketId?: import("../types").SocketId | undefined;
167
- isCurrentUser?: boolean | undefined;
168
- isInCall?: boolean | undefined;
169
- isSpeaking?: boolean | undefined;
170
- isMuted?: boolean | undefined;
171
- }>>;
149
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
172
150
  stats: {
173
151
  open: boolean;
174
152
  panels: number;
@@ -192,9 +170,9 @@ export declare const actionBindText: {
192
170
  userToFollow: import("../types").UserToFollow | null;
193
171
  followedBy: Set<import("../types").SocketId>;
194
172
  isCropping: boolean;
195
- croppingElementId: string | null;
173
+ croppingElementId: ExcalidrawElement["id"] | null;
196
174
  searchMatches: Readonly<{
197
- focusedId: string | null;
175
+ focusedId: ExcalidrawElement["id"] | null;
198
176
  matches: readonly import("../types").SearchMatch[];
199
177
  }> | null;
200
178
  activeLockedId: string | null;
@@ -228,10 +206,10 @@ export declare const actionWrapTextInContainer: {
228
206
  } | null;
229
207
  showWelcomeScreen: boolean;
230
208
  isLoading: boolean;
231
- errorMessage: import("react").ReactNode;
209
+ errorMessage: React.ReactNode;
232
210
  activeEmbeddable: {
233
211
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
234
- state: "active" | "hover";
212
+ state: "hover" | "active";
235
213
  } | null;
236
214
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
237
215
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -267,19 +245,19 @@ export declare const actionWrapTextInContainer: {
267
245
  exportScale: number;
268
246
  currentItemStrokeColor: string;
269
247
  currentItemBackgroundColor: string;
270
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
248
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
271
249
  currentItemStrokeWidth: number;
272
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
250
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
273
251
  currentItemRoughness: number;
274
252
  currentItemOpacity: number;
275
- currentItemFontFamily: number;
253
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
276
254
  currentItemFontSize: number;
277
- currentItemTextAlign: string;
255
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
278
256
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
279
257
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
280
- currentHoveredFontFamily: number | null;
258
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
281
259
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
282
- currentItemArrowType: "round" | "sharp" | "elbow";
260
+ currentItemArrowType: "sharp" | "round" | "elbow";
283
261
  viewBackgroundColor: string;
284
262
  scrollX: number;
285
263
  scrollY: number;
@@ -288,28 +266,26 @@ export declare const actionWrapTextInContainer: {
288
266
  name: string | null;
289
267
  isResizing: boolean;
290
268
  isRotating: boolean;
291
- zoom: Readonly<{
292
- value: import("../types").NormalizedZoomValue;
293
- }>;
269
+ zoom: import("../types").Zoom;
294
270
  openMenu: "canvas" | null;
295
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
271
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
296
272
  openSidebar: {
297
- name: string;
298
- tab?: string | undefined;
273
+ name: import("../types").SidebarName;
274
+ tab?: import("../types").SidebarTabName;
299
275
  } | null;
300
- openDialog: {
276
+ openDialog: null | {
301
277
  name: "imageExport" | "help" | "jsonExport";
302
278
  } | {
303
279
  name: "ttd";
304
- tab: "mermaid" | "text-to-diagram";
280
+ tab: "text-to-diagram" | "mermaid";
305
281
  } | {
306
282
  name: "commandPalette";
307
283
  } | {
308
284
  name: "settings";
309
285
  } | {
310
286
  name: "elementLinkSelector";
311
- sourceElementId: string;
312
- } | null;
287
+ sourceElementId: ExcalidrawElement["id"];
288
+ };
313
289
  defaultSidebarDockedPreference: boolean;
314
290
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
315
291
  hoveredElementIds: Readonly<{
@@ -322,8 +298,8 @@ export declare const actionWrapTextInContainer: {
322
298
  shouldCacheIgnoreZoom: boolean;
323
299
  toast: {
324
300
  message: string;
325
- closable?: boolean | undefined;
326
- duration?: number | undefined;
301
+ closable?: boolean;
302
+ duration?: number;
327
303
  } | null;
328
304
  zenModeEnabled: boolean;
329
305
  theme: import("@excalidraw/element/types").Theme;
@@ -334,32 +310,13 @@ export declare const actionWrapTextInContainer: {
334
310
  selectedGroupIds: {
335
311
  [groupId: string]: boolean;
336
312
  };
337
- editingGroupId: string | null;
313
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
338
314
  width: number;
339
315
  height: number;
340
316
  offsetTop: number;
341
317
  offsetLeft: number;
342
318
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
343
- collaborators: Map<import("../types").SocketId, Readonly<{
344
- pointer?: import("../types").CollaboratorPointer | undefined;
345
- button?: "up" | "down" | undefined;
346
- selectedElementIds?: Readonly<{
347
- [id: string]: true;
348
- }> | undefined;
349
- username?: string | null | undefined;
350
- userState?: import("@excalidraw/common").UserIdleState | undefined;
351
- color?: {
352
- background: string;
353
- stroke: string;
354
- } | undefined;
355
- avatarUrl?: string | undefined;
356
- id?: string | undefined;
357
- socketId?: import("../types").SocketId | undefined;
358
- isCurrentUser?: boolean | undefined;
359
- isInCall?: boolean | undefined;
360
- isSpeaking?: boolean | undefined;
361
- isMuted?: boolean | undefined;
362
- }>>;
319
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
363
320
  stats: {
364
321
  open: boolean;
365
322
  panels: number;
@@ -383,9 +340,9 @@ export declare const actionWrapTextInContainer: {
383
340
  userToFollow: import("../types").UserToFollow | null;
384
341
  followedBy: Set<import("../types").SocketId>;
385
342
  isCropping: boolean;
386
- croppingElementId: string | null;
343
+ croppingElementId: ExcalidrawElement["id"] | null;
387
344
  searchMatches: Readonly<{
388
- focusedId: string | null;
345
+ focusedId: ExcalidrawElement["id"] | null;
389
346
  matches: readonly import("../types").SearchMatch[];
390
347
  }> | null;
391
348
  activeLockedId: string | null;