@excalidraw/element 0.18.0-51ad895 → 0.18.0-51ca8ab

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