@excalidraw/element 0.18.0-a8acc82 → 0.18.0-a9ca16e

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 (266) hide show
  1. package/dist/dev/index.js +4893 -2405
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +19 -18
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/bounds.d.ts +10 -0
  7. package/dist/types/common/src/colors.d.ts +59 -39
  8. package/dist/types/common/src/constants.d.ts +23 -27
  9. package/dist/types/common/src/editorInterface.d.ts +34 -0
  10. package/dist/types/common/src/font-metadata.d.ts +1 -3
  11. package/dist/types/common/src/index.d.ts +5 -0
  12. package/dist/types/common/src/keys.d.ts +1 -1
  13. package/dist/types/common/src/utility-types.d.ts +0 -1
  14. package/dist/types/common/src/utils.d.ts +53 -42
  15. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  16. package/dist/types/element/src/Scene.d.ts +5 -3
  17. package/dist/types/element/src/arrowheads.d.ts +3 -0
  18. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  19. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  20. package/dist/types/element/src/binding.d.ts +67 -48
  21. package/dist/types/element/src/bounds.d.ts +3 -11
  22. package/dist/types/element/src/collision.d.ts +7 -2
  23. package/dist/types/element/src/comparisons.d.ts +7 -7
  24. package/dist/types/element/src/distribute.d.ts +2 -1
  25. package/dist/types/element/src/dragElements.d.ts +3 -3
  26. package/dist/types/element/src/duplicate.d.ts +3 -3
  27. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  28. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  29. package/dist/types/element/src/frame.d.ts +5 -1
  30. package/dist/types/element/src/heading.d.ts +2 -1
  31. package/dist/types/element/src/image.d.ts +1 -11
  32. package/dist/types/element/src/index.d.ts +4 -3
  33. package/dist/types/element/src/linearElementEditor.d.ts +21 -20
  34. package/dist/types/element/src/mutateElement.d.ts +5 -1
  35. package/dist/types/element/src/newElement.d.ts +6 -6
  36. package/dist/types/element/src/renderElement.d.ts +1 -7
  37. package/dist/types/element/src/resizeElements.d.ts +10 -10
  38. package/dist/types/element/src/resizeTest.d.ts +6 -5
  39. package/dist/types/element/src/selection.d.ts +8 -8
  40. package/dist/types/element/src/shape.d.ts +8 -7
  41. package/dist/types/element/src/textElement.d.ts +1 -1
  42. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  43. package/dist/types/element/src/textWrapping.d.ts +26 -0
  44. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  45. package/dist/types/element/src/transformHandles.d.ts +8 -27
  46. package/dist/types/element/src/typeChecks.d.ts +4 -7
  47. package/dist/types/element/src/types.d.ts +12 -13
  48. package/dist/types/element/src/utils.d.ts +8 -3
  49. package/dist/types/element/src/visualdebug.d.ts +59 -0
  50. package/dist/types/element/src/zindex.d.ts +7 -1
  51. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +128 -171
  52. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  53. package/dist/types/excalidraw/actions/actionBoundText.d.ts +92 -121
  54. package/dist/types/excalidraw/actions/actionCanvas.d.ts +544 -902
  55. package/dist/types/excalidraw/actions/actionClipboard.d.ts +110 -884
  56. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +44 -59
  57. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +148 -195
  58. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  59. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  60. package/dist/types/excalidraw/actions/actionElementLink.d.ts +36 -57
  61. package/dist/types/excalidraw/actions/actionElementLock.d.ts +90 -119
  62. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +45 -60
  63. package/dist/types/excalidraw/actions/actionExport.d.ts +171 -1412
  64. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -396
  65. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +275 -370
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +95 -132
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +153 -206
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +42 -57
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +35 -424
  71. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
  72. package/dist/types/excalidraw/actions/actionProperties.d.ts +152 -2533
  73. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +47 -66
  74. package/dist/types/excalidraw/actions/actionStyles.d.ts +44 -58
  75. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  76. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
  77. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +44 -59
  78. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +44 -59
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +33 -54
  81. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  82. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +44 -59
  83. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +44 -59
  84. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +45 -60
  85. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
  86. package/dist/types/excalidraw/actions/index.d.ts +3 -1
  87. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  88. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  89. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  90. package/dist/types/excalidraw/appState.d.ts +21 -15
  91. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  92. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  93. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  94. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  95. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  96. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  97. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  98. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  99. package/dist/types/excalidraw/clipboard.d.ts +13 -38
  100. package/dist/types/excalidraw/components/Actions.d.ts +14 -4
  101. package/dist/types/excalidraw/components/App.d.ts +109 -70
  102. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  103. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  104. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  105. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -3
  106. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  107. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  108. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  109. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  110. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  111. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  112. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  113. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  114. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  115. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  116. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  117. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  118. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  119. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  120. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  121. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
  122. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  123. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  124. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  125. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  126. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  127. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  128. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  129. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  130. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  131. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  132. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  133. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  134. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  135. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  136. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  137. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  138. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  139. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  140. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  141. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  142. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  143. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  144. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  145. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  146. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  147. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  148. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  149. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  150. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  151. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  152. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  153. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  154. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  155. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  156. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  157. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  158. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  159. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  160. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  161. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  162. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  163. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  164. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  165. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  166. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  167. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  168. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  169. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  170. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  171. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  172. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  173. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  174. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  175. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  176. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  177. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  178. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  179. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  180. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  181. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  182. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  183. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  184. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  185. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  186. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  187. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  188. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  189. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  190. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +7 -3
  191. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  192. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  193. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  194. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  195. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  196. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  197. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  198. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  200. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  201. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  202. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  203. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  204. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  205. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  206. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  207. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  208. package/dist/types/excalidraw/components/icons.d.ts +44 -22
  209. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +19 -2
  210. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  211. package/dist/types/excalidraw/components/shapes.d.ts +74 -1
  212. package/dist/types/excalidraw/data/blob.d.ts +326 -7
  213. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  214. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  215. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  216. package/dist/types/excalidraw/data/index.d.ts +4 -5
  217. package/dist/types/excalidraw/data/json.d.ts +170 -4
  218. package/dist/types/excalidraw/data/library.d.ts +24 -9
  219. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  220. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  221. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  222. package/dist/types/excalidraw/errors.d.ts +14 -0
  223. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  224. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  225. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  226. package/dist/types/excalidraw/i18n.d.ts +2 -2
  227. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  228. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  229. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  230. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  231. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  232. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  233. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  234. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  235. package/dist/types/excalidraw/snapping.d.ts +5 -5
  236. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  237. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  238. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  239. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  240. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  241. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  242. package/dist/types/excalidraw/types.d.ts +120 -36
  243. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +7 -3
  244. package/dist/types/math/src/point.d.ts +7 -2
  245. package/dist/types/math/src/polygon.d.ts +2 -2
  246. package/dist/types/math/src/range.d.ts +1 -3
  247. package/dist/types/math/src/segment.d.ts +3 -3
  248. package/dist/types/math/src/types.d.ts +25 -1
  249. package/dist/types/utils/src/bbox.d.ts +1 -1
  250. package/dist/types/utils/src/export.d.ts +5 -5
  251. package/dist/types/utils/src/shape.d.ts +6 -6
  252. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  253. package/package.json +9 -3
  254. package/dist/types/excalidraw/charts.d.ts +0 -27
  255. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  256. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  257. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  258. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -9
  259. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  260. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -10
  261. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  262. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  263. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  264. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  265. package/dist/types/excalidraw/index.d.ts +0 -47
  266. package/dist/types/excalidraw/polyfill.d.ts +0 -2
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  export declare const actionAddToLibrary: {
3
2
  name: "addToLibrary";
4
3
  trackEvent: {
5
4
  category: "element";
6
5
  };
7
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
6
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
8
7
  captureUpdate: "EVENTUALLY";
9
8
  appState: {
10
9
  toast: {
@@ -17,18 +16,23 @@ export declare const actionAddToLibrary: {
17
16
  } | null;
18
17
  showWelcomeScreen: boolean;
19
18
  isLoading: boolean;
20
- errorMessage: import("react").ReactNode;
19
+ errorMessage: React.ReactNode;
21
20
  activeEmbeddable: {
22
21
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
- state: "active" | "hover";
22
+ state: "hover" | "active";
24
23
  } | null;
25
24
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
26
25
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
26
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
28
27
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
28
  isBindingEnabled: boolean;
29
+ bindingPreference: "enabled" | "disabled";
30
+ isMidpointSnappingEnabled: boolean;
30
31
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
32
+ suggestedBinding: {
33
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
34
+ midPoint?: import("@excalidraw/math").GlobalPoint;
35
+ } | null;
32
36
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
37
  frameRendering: {
34
38
  enabled: boolean;
@@ -38,12 +42,16 @@ export declare const actionAddToLibrary: {
38
42
  };
39
43
  editingFrame: string | null;
40
44
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
41
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
45
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
42
46
  activeTool: {
43
47
  lastActiveTool: import("../types").ActiveTool | null;
44
48
  locked: boolean;
45
49
  fromSelection: boolean;
46
50
  } & import("../types").ActiveTool;
51
+ preferredSelectionTool: {
52
+ type: "selection" | "lasso";
53
+ initialized: boolean;
54
+ };
47
55
  penMode: boolean;
48
56
  penDetected: boolean;
49
57
  exportBackground: boolean;
@@ -52,19 +60,19 @@ export declare const actionAddToLibrary: {
52
60
  exportScale: number;
53
61
  currentItemStrokeColor: string;
54
62
  currentItemBackgroundColor: string;
55
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
63
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
56
64
  currentItemStrokeWidth: number;
57
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
65
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
58
66
  currentItemRoughness: number;
59
67
  currentItemOpacity: number;
60
- currentItemFontFamily: number;
68
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
61
69
  currentItemFontSize: number;
62
- currentItemTextAlign: string;
70
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
63
71
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
72
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
65
- currentHoveredFontFamily: number | null;
73
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
66
74
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
67
- currentItemArrowType: "round" | "sharp" | "elbow";
75
+ currentItemArrowType: "sharp" | "round" | "elbow";
68
76
  viewBackgroundColor: string;
69
77
  scrollX: number;
70
78
  scrollY: number;
@@ -73,26 +81,30 @@ export declare const actionAddToLibrary: {
73
81
  name: string | null;
74
82
  isResizing: boolean;
75
83
  isRotating: boolean;
76
- zoom: Readonly<{
77
- value: import("../types").NormalizedZoomValue;
78
- }>;
79
- openMenu: "canvas" | "shape" | null;
80
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
84
+ zoom: import("../types").Zoom;
85
+ openMenu: "canvas" | null;
86
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
81
87
  openSidebar: {
82
- name: string;
83
- tab?: string | undefined;
88
+ name: import("../types").SidebarName;
89
+ tab?: import("../types").SidebarTabName;
84
90
  } | null;
85
- openDialog: {
91
+ openDialog: null | {
86
92
  name: "imageExport" | "help" | "jsonExport";
87
93
  } | {
88
94
  name: "ttd";
89
- tab: "mermaid" | "text-to-diagram";
95
+ tab: "text-to-diagram" | "mermaid";
90
96
  } | {
91
97
  name: "commandPalette";
98
+ } | {
99
+ name: "settings";
92
100
  } | {
93
101
  name: "elementLinkSelector";
94
- sourceElementId: string;
95
- } | null;
102
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
103
+ } | {
104
+ name: "charts";
105
+ data: import("../charts").Spreadsheet;
106
+ rawText: string;
107
+ };
96
108
  defaultSidebarDockedPreference: boolean;
97
109
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
98
110
  selectedElementIds: Readonly<{
@@ -115,45 +127,18 @@ export declare const actionAddToLibrary: {
115
127
  selectedGroupIds: {
116
128
  [groupId: string]: boolean;
117
129
  };
118
- editingGroupId: string | null;
130
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
119
131
  width: number;
120
132
  height: number;
121
133
  offsetTop: number;
122
134
  offsetLeft: number;
123
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
124
- collaborators: Map<import("../types").SocketId, Readonly<{
125
- pointer?: import("../types").CollaboratorPointer | undefined;
126
- button?: "up" | "down" | undefined;
127
- selectedElementIds?: Readonly<{
128
- [id: string]: true;
129
- }> | undefined;
130
- username?: string | null | undefined;
131
- userState?: import("@excalidraw/common").UserIdleState | undefined;
132
- color?: {
133
- background: string;
134
- stroke: string;
135
- } | undefined;
136
- avatarUrl?: string | undefined;
137
- id?: string | undefined;
138
- socketId?: import("../types").SocketId | undefined;
139
- isCurrentUser?: boolean | undefined;
140
- isInCall?: boolean | undefined;
141
- isSpeaking?: boolean | undefined;
142
- isMuted?: boolean | undefined;
143
- }>>;
135
+ fileHandle: FileSystemFileHandle | null;
136
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
144
137
  stats: {
145
138
  open: boolean;
146
139
  panels: number;
147
140
  };
148
- currentChartType: import("@excalidraw/element/types").ChartType;
149
- pasteDialog: {
150
- shown: false;
151
- data: null;
152
- } | {
153
- shown: true;
154
- data: import("../charts").Spreadsheet;
155
- };
156
- showHyperlinkPopup: false | "editor" | "info";
141
+ showHyperlinkPopup: false | "info" | "editor";
157
142
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
158
143
  snapLines: readonly import("../snapping").SnapLine[];
159
144
  originSnapOffset: {
@@ -164,16 +149,16 @@ export declare const actionAddToLibrary: {
164
149
  userToFollow: import("../types").UserToFollow | null;
165
150
  followedBy: Set<import("../types").SocketId>;
166
151
  isCropping: boolean;
167
- croppingElementId: string | null;
152
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
168
153
  searchMatches: Readonly<{
169
- focusedId: string | null;
154
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
170
155
  matches: readonly import("../types").SearchMatch[];
171
156
  }> | null;
172
157
  activeLockedId: string | null;
173
158
  lockedMultiSelections: {
174
159
  [groupId: string]: true;
175
160
  };
176
- stylesPanelMode: "compact" | "full";
161
+ bindMode: import("@excalidraw/element/types").BindMode;
177
162
  };
178
163
  } | {
179
164
  captureUpdate: "EVENTUALLY";
@@ -188,15 +173,20 @@ export declare const actionAddToLibrary: {
188
173
  isLoading: boolean;
189
174
  activeEmbeddable: {
190
175
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
191
- state: "active" | "hover";
176
+ state: "hover" | "active";
192
177
  } | null;
193
178
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
194
179
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
195
180
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
196
181
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
197
182
  isBindingEnabled: boolean;
183
+ bindingPreference: "enabled" | "disabled";
184
+ isMidpointSnappingEnabled: boolean;
198
185
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
199
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
186
+ suggestedBinding: {
187
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
188
+ midPoint?: import("@excalidraw/math").GlobalPoint;
189
+ } | null;
200
190
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
201
191
  frameRendering: {
202
192
  enabled: boolean;
@@ -206,12 +196,16 @@ export declare const actionAddToLibrary: {
206
196
  };
207
197
  editingFrame: string | null;
208
198
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
209
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
199
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
210
200
  activeTool: {
211
201
  lastActiveTool: import("../types").ActiveTool | null;
212
202
  locked: boolean;
213
203
  fromSelection: boolean;
214
204
  } & import("../types").ActiveTool;
205
+ preferredSelectionTool: {
206
+ type: "selection" | "lasso";
207
+ initialized: boolean;
208
+ };
215
209
  penMode: boolean;
216
210
  penDetected: boolean;
217
211
  exportBackground: boolean;
@@ -220,19 +214,19 @@ export declare const actionAddToLibrary: {
220
214
  exportScale: number;
221
215
  currentItemStrokeColor: string;
222
216
  currentItemBackgroundColor: string;
223
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
217
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
224
218
  currentItemStrokeWidth: number;
225
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
219
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
226
220
  currentItemRoughness: number;
227
221
  currentItemOpacity: number;
228
- currentItemFontFamily: number;
222
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
229
223
  currentItemFontSize: number;
230
- currentItemTextAlign: string;
224
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
231
225
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
232
226
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
233
- currentHoveredFontFamily: number | null;
227
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
234
228
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
235
- currentItemArrowType: "round" | "sharp" | "elbow";
229
+ currentItemArrowType: "sharp" | "round" | "elbow";
236
230
  viewBackgroundColor: string;
237
231
  scrollX: number;
238
232
  scrollY: number;
@@ -241,26 +235,30 @@ export declare const actionAddToLibrary: {
241
235
  name: string | null;
242
236
  isResizing: boolean;
243
237
  isRotating: boolean;
244
- zoom: Readonly<{
245
- value: import("../types").NormalizedZoomValue;
246
- }>;
247
- openMenu: "canvas" | "shape" | null;
248
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
238
+ zoom: import("../types").Zoom;
239
+ openMenu: "canvas" | null;
240
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
249
241
  openSidebar: {
250
- name: string;
251
- tab?: string | undefined;
242
+ name: import("../types").SidebarName;
243
+ tab?: import("../types").SidebarTabName;
252
244
  } | null;
253
- openDialog: {
245
+ openDialog: null | {
254
246
  name: "imageExport" | "help" | "jsonExport";
255
247
  } | {
256
248
  name: "ttd";
257
- tab: "mermaid" | "text-to-diagram";
249
+ tab: "text-to-diagram" | "mermaid";
258
250
  } | {
259
251
  name: "commandPalette";
252
+ } | {
253
+ name: "settings";
260
254
  } | {
261
255
  name: "elementLinkSelector";
262
- sourceElementId: string;
263
- } | null;
256
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
257
+ } | {
258
+ name: "charts";
259
+ data: import("../charts").Spreadsheet;
260
+ rawText: string;
261
+ };
264
262
  defaultSidebarDockedPreference: boolean;
265
263
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
266
264
  selectedElementIds: Readonly<{
@@ -275,9 +273,9 @@ export declare const actionAddToLibrary: {
275
273
  selectedElementsAreBeingDragged: boolean;
276
274
  shouldCacheIgnoreZoom: boolean;
277
275
  toast: {
278
- message: string;
279
- closable?: boolean | undefined;
280
- duration?: number | undefined;
276
+ message: React.ReactNode;
277
+ closable?: boolean;
278
+ duration?: number;
281
279
  } | null;
282
280
  zenModeEnabled: boolean;
283
281
  theme: import("@excalidraw/element/types").Theme;
@@ -288,45 +286,18 @@ export declare const actionAddToLibrary: {
288
286
  selectedGroupIds: {
289
287
  [groupId: string]: boolean;
290
288
  };
291
- editingGroupId: string | null;
289
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
292
290
  width: number;
293
291
  height: number;
294
292
  offsetTop: number;
295
293
  offsetLeft: number;
296
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
297
- collaborators: Map<import("../types").SocketId, Readonly<{
298
- pointer?: import("../types").CollaboratorPointer | undefined;
299
- button?: "up" | "down" | undefined;
300
- selectedElementIds?: Readonly<{
301
- [id: string]: true;
302
- }> | undefined;
303
- username?: string | null | undefined;
304
- userState?: import("@excalidraw/common").UserIdleState | undefined;
305
- color?: {
306
- background: string;
307
- stroke: string;
308
- } | undefined;
309
- avatarUrl?: string | undefined;
310
- id?: string | undefined;
311
- socketId?: import("../types").SocketId | undefined;
312
- isCurrentUser?: boolean | undefined;
313
- isInCall?: boolean | undefined;
314
- isSpeaking?: boolean | undefined;
315
- isMuted?: boolean | undefined;
316
- }>>;
294
+ fileHandle: FileSystemFileHandle | null;
295
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
317
296
  stats: {
318
297
  open: boolean;
319
298
  panels: number;
320
299
  };
321
- currentChartType: import("@excalidraw/element/types").ChartType;
322
- pasteDialog: {
323
- shown: false;
324
- data: null;
325
- } | {
326
- shown: true;
327
- data: import("../charts").Spreadsheet;
328
- };
329
- showHyperlinkPopup: false | "editor" | "info";
300
+ showHyperlinkPopup: false | "info" | "editor";
330
301
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
331
302
  snapLines: readonly import("../snapping").SnapLine[];
332
303
  originSnapOffset: {
@@ -337,16 +308,16 @@ export declare const actionAddToLibrary: {
337
308
  userToFollow: import("../types").UserToFollow | null;
338
309
  followedBy: Set<import("../types").SocketId>;
339
310
  isCropping: boolean;
340
- croppingElementId: string | null;
311
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
341
312
  searchMatches: Readonly<{
342
- focusedId: string | null;
313
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
343
314
  matches: readonly import("../types").SearchMatch[];
344
315
  }> | null;
345
316
  activeLockedId: string | null;
346
317
  lockedMultiSelections: {
347
318
  [groupId: string]: true;
348
319
  };
349
- stylesPanelMode: "compact" | "full";
320
+ bindMode: import("@excalidraw/element/types").BindMode;
350
321
  };
351
322
  }> | {
352
323
  captureUpdate: "EVENTUALLY";
@@ -361,15 +332,20 @@ export declare const actionAddToLibrary: {
361
332
  isLoading: boolean;
362
333
  activeEmbeddable: {
363
334
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
364
- state: "active" | "hover";
335
+ state: "hover" | "active";
365
336
  } | null;
366
337
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
367
338
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
368
339
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
369
340
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
370
341
  isBindingEnabled: boolean;
342
+ bindingPreference: "enabled" | "disabled";
343
+ isMidpointSnappingEnabled: boolean;
371
344
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
372
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
345
+ suggestedBinding: {
346
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
347
+ midPoint?: import("@excalidraw/math").GlobalPoint;
348
+ } | null;
373
349
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
374
350
  frameRendering: {
375
351
  enabled: boolean;
@@ -379,12 +355,16 @@ export declare const actionAddToLibrary: {
379
355
  };
380
356
  editingFrame: string | null;
381
357
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
382
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
358
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
383
359
  activeTool: {
384
360
  lastActiveTool: import("../types").ActiveTool | null;
385
361
  locked: boolean;
386
362
  fromSelection: boolean;
387
363
  } & import("../types").ActiveTool;
364
+ preferredSelectionTool: {
365
+ type: "selection" | "lasso";
366
+ initialized: boolean;
367
+ };
388
368
  penMode: boolean;
389
369
  penDetected: boolean;
390
370
  exportBackground: boolean;
@@ -393,19 +373,19 @@ export declare const actionAddToLibrary: {
393
373
  exportScale: number;
394
374
  currentItemStrokeColor: string;
395
375
  currentItemBackgroundColor: string;
396
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
376
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
397
377
  currentItemStrokeWidth: number;
398
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
378
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
399
379
  currentItemRoughness: number;
400
380
  currentItemOpacity: number;
401
- currentItemFontFamily: number;
381
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
402
382
  currentItemFontSize: number;
403
- currentItemTextAlign: string;
383
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
404
384
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
405
385
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
406
- currentHoveredFontFamily: number | null;
386
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
407
387
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
408
- currentItemArrowType: "round" | "sharp" | "elbow";
388
+ currentItemArrowType: "sharp" | "round" | "elbow";
409
389
  viewBackgroundColor: string;
410
390
  scrollX: number;
411
391
  scrollY: number;
@@ -414,26 +394,30 @@ export declare const actionAddToLibrary: {
414
394
  name: string | null;
415
395
  isResizing: boolean;
416
396
  isRotating: boolean;
417
- zoom: Readonly<{
418
- value: import("../types").NormalizedZoomValue;
419
- }>;
420
- openMenu: "canvas" | "shape" | null;
421
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
397
+ zoom: import("../types").Zoom;
398
+ openMenu: "canvas" | null;
399
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
422
400
  openSidebar: {
423
- name: string;
424
- tab?: string | undefined;
401
+ name: import("../types").SidebarName;
402
+ tab?: import("../types").SidebarTabName;
425
403
  } | null;
426
- openDialog: {
404
+ openDialog: null | {
427
405
  name: "imageExport" | "help" | "jsonExport";
428
406
  } | {
429
407
  name: "ttd";
430
- tab: "mermaid" | "text-to-diagram";
408
+ tab: "text-to-diagram" | "mermaid";
431
409
  } | {
432
410
  name: "commandPalette";
411
+ } | {
412
+ name: "settings";
433
413
  } | {
434
414
  name: "elementLinkSelector";
435
- sourceElementId: string;
436
- } | null;
415
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
416
+ } | {
417
+ name: "charts";
418
+ data: import("../charts").Spreadsheet;
419
+ rawText: string;
420
+ };
437
421
  defaultSidebarDockedPreference: boolean;
438
422
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
439
423
  selectedElementIds: Readonly<{
@@ -448,9 +432,9 @@ export declare const actionAddToLibrary: {
448
432
  selectedElementsAreBeingDragged: boolean;
449
433
  shouldCacheIgnoreZoom: boolean;
450
434
  toast: {
451
- message: string;
452
- closable?: boolean | undefined;
453
- duration?: number | undefined;
435
+ message: React.ReactNode;
436
+ closable?: boolean;
437
+ duration?: number;
454
438
  } | null;
455
439
  zenModeEnabled: boolean;
456
440
  theme: import("@excalidraw/element/types").Theme;
@@ -461,45 +445,18 @@ export declare const actionAddToLibrary: {
461
445
  selectedGroupIds: {
462
446
  [groupId: string]: boolean;
463
447
  };
464
- editingGroupId: string | null;
448
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
465
449
  width: number;
466
450
  height: number;
467
451
  offsetTop: number;
468
452
  offsetLeft: number;
469
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
470
- collaborators: Map<import("../types").SocketId, Readonly<{
471
- pointer?: import("../types").CollaboratorPointer | undefined;
472
- button?: "up" | "down" | undefined;
473
- selectedElementIds?: Readonly<{
474
- [id: string]: true;
475
- }> | undefined;
476
- username?: string | null | undefined;
477
- userState?: import("@excalidraw/common").UserIdleState | undefined;
478
- color?: {
479
- background: string;
480
- stroke: string;
481
- } | undefined;
482
- avatarUrl?: string | undefined;
483
- id?: string | undefined;
484
- socketId?: import("../types").SocketId | undefined;
485
- isCurrentUser?: boolean | undefined;
486
- isInCall?: boolean | undefined;
487
- isSpeaking?: boolean | undefined;
488
- isMuted?: boolean | undefined;
489
- }>>;
453
+ fileHandle: FileSystemFileHandle | null;
454
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
490
455
  stats: {
491
456
  open: boolean;
492
457
  panels: number;
493
458
  };
494
- currentChartType: import("@excalidraw/element/types").ChartType;
495
- pasteDialog: {
496
- shown: false;
497
- data: null;
498
- } | {
499
- shown: true;
500
- data: import("../charts").Spreadsheet;
501
- };
502
- showHyperlinkPopup: false | "editor" | "info";
459
+ showHyperlinkPopup: false | "info" | "editor";
503
460
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
504
461
  snapLines: readonly import("../snapping").SnapLine[];
505
462
  originSnapOffset: {
@@ -510,16 +467,16 @@ export declare const actionAddToLibrary: {
510
467
  userToFollow: import("../types").UserToFollow | null;
511
468
  followedBy: Set<import("../types").SocketId>;
512
469
  isCropping: boolean;
513
- croppingElementId: string | null;
470
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
514
471
  searchMatches: Readonly<{
515
- focusedId: string | null;
472
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
516
473
  matches: readonly import("../types").SearchMatch[];
517
474
  }> | null;
518
475
  activeLockedId: string | null;
519
476
  lockedMultiSelections: {
520
477
  [groupId: string]: true;
521
478
  };
522
- stylesPanelMode: "compact" | "full";
479
+ bindMode: import("@excalidraw/element/types").BindMode;
523
480
  };
524
481
  };
525
482
  label: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
2
  import type { AppClassProperties, AppState, UIAppState } from "../types";
4
3
  export declare const alignActionsPredicate: (appState: UIAppState, app: AppClassProperties) => boolean;
@@ -10,7 +9,7 @@ export declare const actionAlignTop: {
10
9
  category: "element";
11
10
  };
12
11
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
13
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
12
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
14
13
  appState: Readonly<AppState>;
15
14
  elements: ExcalidrawElement[];
16
15
  captureUpdate: "IMMEDIATELY";
@@ -28,7 +27,7 @@ export declare const actionAlignBottom: {
28
27
  category: "element";
29
28
  };
30
29
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
31
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
30
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
32
31
  appState: Readonly<AppState>;
33
32
  elements: ExcalidrawElement[];
34
33
  captureUpdate: "IMMEDIATELY";
@@ -46,7 +45,7 @@ export declare const actionAlignLeft: {
46
45
  category: "element";
47
46
  };
48
47
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
49
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
48
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
50
49
  appState: Readonly<AppState>;
51
50
  elements: ExcalidrawElement[];
52
51
  captureUpdate: "IMMEDIATELY";
@@ -64,7 +63,7 @@ export declare const actionAlignRight: {
64
63
  category: "element";
65
64
  };
66
65
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
67
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
66
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
68
67
  appState: Readonly<AppState>;
69
68
  elements: ExcalidrawElement[];
70
69
  captureUpdate: "IMMEDIATELY";
@@ -82,7 +81,7 @@ export declare const actionAlignVerticallyCentered: {
82
81
  category: "element";
83
82
  };
84
83
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
85
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
84
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
86
85
  appState: Readonly<AppState>;
87
86
  elements: ExcalidrawElement[];
88
87
  captureUpdate: "IMMEDIATELY";
@@ -99,7 +98,7 @@ export declare const actionAlignHorizontallyCentered: {
99
98
  category: "element";
100
99
  };
101
100
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
102
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
101
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
103
102
  appState: Readonly<AppState>;
104
103
  elements: ExcalidrawElement[];
105
104
  captureUpdate: "IMMEDIATELY";