@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-835eb8d

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 (302) hide show
  1. package/CHANGELOG.md +11 -11
  2. package/dist/dev/chunk-CP5DND7P.js +7 -0
  3. package/dist/dev/chunk-CP5DND7P.js.map +7 -0
  4. package/dist/dev/chunk-FB2NA5UG.js +4132 -0
  5. package/dist/dev/chunk-FB2NA5UG.js.map +7 -0
  6. package/dist/dev/chunk-N4PQJPAH.js +5666 -0
  7. package/dist/dev/chunk-N4PQJPAH.js.map +7 -0
  8. package/dist/dev/{chunk-LMHBUWQS.js → chunk-PWQMCSHA.js} +27 -8
  9. package/dist/dev/chunk-PWQMCSHA.js.map +7 -0
  10. package/dist/dev/data/{image-V26YBSDB.js → image-RT6RLBUE.js} +3 -3
  11. package/dist/dev/index.css +3573 -3309
  12. package/dist/dev/index.css.map +3 -3
  13. package/dist/dev/index.js +31657 -23863
  14. package/dist/dev/index.js.map +4 -4
  15. package/dist/dev/locales/{en-OZCJJ2HN.js → en-V3NQTBPG.js} +2 -2
  16. package/dist/dev/subset-shared.chunk.js +2 -2
  17. package/dist/dev/subset-worker.chunk.js +2 -2
  18. package/dist/prod/chunk-A66AFZZU.js +7 -0
  19. package/dist/prod/chunk-GF46JCB3.js +12 -0
  20. package/dist/prod/chunk-LS7FJGPW.js +86 -0
  21. package/dist/prod/chunk-SVEJI6WL.js +4 -0
  22. package/dist/prod/data/image-HPGPBQV2.js +1 -0
  23. package/dist/prod/index.css +1 -1
  24. package/dist/prod/index.js +27 -16
  25. package/dist/prod/locales/{en-B4ZKOASM.js → en-LQE6K457.js} +1 -1
  26. package/dist/prod/subset-shared.chunk.js +1 -1
  27. package/dist/prod/subset-worker.chunk.js +1 -1
  28. package/dist/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
  29. package/dist/types/{excalidraw → common/src}/colors.d.ts +1 -0
  30. package/dist/types/{excalidraw → common/src}/constants.d.ts +49 -12
  31. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  32. package/dist/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +15 -5
  33. package/dist/types/common/src/index.d.ts +12 -0
  34. package/dist/types/{excalidraw → common/src}/points.d.ts +2 -0
  35. package/dist/types/common/src/promise-pool.d.ts +6 -0
  36. package/dist/types/{excalidraw → common/src}/utility-types.d.ts +5 -0
  37. package/dist/types/{excalidraw → common/src}/utils.d.ts +25 -11
  38. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +19 -18
  39. package/dist/types/element/src/align.d.ts +8 -0
  40. package/dist/types/{excalidraw/element → element/src}/binding.d.ts +30 -19
  41. package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +20 -7
  42. package/dist/types/element/src/collision.d.ts +32 -0
  43. package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
  44. package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +1 -1
  45. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +78 -41
  46. package/dist/types/element/src/distance.d.ts +3 -0
  47. package/dist/types/{excalidraw → element/src}/distribute.d.ts +3 -2
  48. package/dist/types/{excalidraw/element → element/src}/dragElements.d.ts +5 -4
  49. package/dist/types/element/src/duplicate.d.ts +63 -0
  50. package/dist/types/{excalidraw/element → element/src}/elbowArrow.d.ts +1 -1
  51. package/dist/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
  52. package/dist/types/element/src/embeddable.d.ts +10 -0
  53. package/dist/types/{excalidraw/element → element/src}/flowchart.d.ts +4 -3
  54. package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +12 -3
  55. package/dist/types/{excalidraw → element/src}/frame.d.ts +8 -7
  56. package/dist/types/{excalidraw → element/src}/groups.d.ts +6 -5
  57. package/dist/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
  58. package/dist/types/{excalidraw/element → element/src}/image.d.ts +2 -2
  59. package/dist/types/element/src/index.d.ts +58 -0
  60. package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +24 -37
  61. package/dist/types/element/src/mutateElement.d.ts +21 -0
  62. package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +4 -43
  63. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  64. package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +6 -3
  65. package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +7 -6
  66. package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
  67. package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +13 -7
  68. package/dist/types/element/src/shape.d.ts +42 -0
  69. package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
  70. package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +3 -3
  71. package/dist/types/element/src/store.d.ts +237 -0
  72. package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +8 -7
  73. package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +7 -7
  74. package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +21 -3
  75. package/dist/types/{excalidraw/element → element/src}/types.d.ts +17 -4
  76. package/dist/types/element/src/utils.d.ts +31 -0
  77. package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
  78. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +103 -109
  79. package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
  80. package/dist/types/excalidraw/actions/actionBoundText.d.ts +74 -78
  81. package/dist/types/excalidraw/actions/actionCanvas.d.ts +653 -502
  82. package/dist/types/excalidraw/actions/actionClipboard.d.ts +218 -228
  83. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +36 -38
  84. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +108 -113
  85. package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
  86. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
  87. package/dist/types/excalidraw/actions/actionElementLink.d.ts +39 -41
  88. package/dist/types/excalidraw/actions/actionElementLock.d.ts +86 -92
  89. package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +36 -48
  90. package/dist/types/excalidraw/actions/actionExport.d.ts +369 -387
  91. package/dist/types/excalidraw/actions/actionFinalize.d.ts +104 -67
  92. package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
  93. package/dist/types/excalidraw/actions/actionFrame.d.ts +260 -268
  94. package/dist/types/excalidraw/actions/actionGroup.d.ts +71 -75
  95. package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
  96. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +564 -42
  97. package/dist/types/excalidraw/actions/actionLink.d.ts +37 -39
  98. package/dist/types/excalidraw/actions/actionMenu.d.ts +104 -110
  99. package/dist/types/excalidraw/actions/actionNavigate.d.ts +69 -73
  100. package/dist/types/excalidraw/actions/actionProperties.d.ts +512 -525
  101. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +37 -39
  102. package/dist/types/excalidraw/actions/actionStyles.d.ts +38 -40
  103. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  104. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +36 -38
  105. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +36 -38
  106. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +35 -209
  107. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  108. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +35 -38
  109. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +36 -39
  110. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +36 -39
  111. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  112. package/dist/types/excalidraw/actions/index.d.ts +2 -1
  113. package/dist/types/excalidraw/actions/manager.d.ts +2 -2
  114. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  115. package/dist/types/excalidraw/actions/types.d.ts +6 -5
  116. package/dist/types/excalidraw/animated-trail.d.ts +7 -1
  117. package/dist/types/excalidraw/appState.d.ts +39 -28
  118. package/dist/types/excalidraw/charts.d.ts +1 -1
  119. package/dist/types/excalidraw/clipboard.d.ts +71 -8
  120. package/dist/types/excalidraw/components/Actions.d.ts +10 -7
  121. package/dist/types/excalidraw/components/App.d.ts +51 -32
  122. package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
  123. package/dist/types/excalidraw/components/ButtonIcon.d.ts +2 -1
  124. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  125. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +11 -6
  126. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  127. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  128. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -5
  129. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -4
  130. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -3
  131. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  132. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +4 -4
  133. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
  134. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +2 -1
  135. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
  136. package/dist/types/excalidraw/components/ContextMenu.d.ts +2 -2
  137. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  138. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  139. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
  140. package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  141. package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
  142. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +5 -4
  143. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  144. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  145. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  146. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
  147. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +3 -2
  148. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
  149. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -2
  150. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  151. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  152. package/dist/types/excalidraw/components/IconPicker.d.ts +1 -1
  153. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
  154. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  155. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  156. package/dist/types/excalidraw/components/Island.d.ts +1 -1
  157. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
  158. package/dist/types/excalidraw/components/LayerUI.d.ts +3 -3
  159. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  160. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
  161. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +4 -4
  162. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  163. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  164. package/dist/types/excalidraw/components/MagicButton.d.ts +1 -1
  165. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -3
  166. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  167. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  168. package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -1
  169. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  170. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  171. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  172. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
  173. package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -1
  174. package/dist/types/excalidraw/components/Stack.d.ts +1 -1
  175. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  176. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  177. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  178. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  179. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +14 -4
  180. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
  181. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  182. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +3 -3
  183. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
  184. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  185. package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
  186. package/dist/types/excalidraw/components/Stats/index.d.ts +2 -2
  187. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  188. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  189. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  190. package/dist/types/excalidraw/components/TextField.d.ts +2 -1
  191. package/dist/types/excalidraw/components/Toast.d.ts +1 -1
  192. package/dist/types/excalidraw/components/ToolButton.d.ts +2 -2
  193. package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
  194. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  195. package/dist/types/excalidraw/components/UserList.d.ts +1 -1
  196. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
  197. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
  198. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  200. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
  201. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
  202. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +5 -4
  203. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -2
  204. package/dist/types/excalidraw/components/icons.d.ts +11 -1
  205. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  206. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
  207. package/dist/types/excalidraw/components/shapes.d.ts +190 -0
  208. package/dist/types/excalidraw/context/tunnels.d.ts +1 -1
  209. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  210. package/dist/types/excalidraw/data/blob.d.ts +7 -11
  211. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  212. package/dist/types/excalidraw/data/index.d.ts +2 -2
  213. package/dist/types/excalidraw/data/json.d.ts +1 -1
  214. package/dist/types/excalidraw/data/library.d.ts +3 -3
  215. package/dist/types/excalidraw/data/reconcile.d.ts +3 -2
  216. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  217. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  218. package/dist/types/excalidraw/data/transform.d.ts +4 -4
  219. package/dist/types/excalidraw/data/types.d.ts +6 -3
  220. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  221. package/dist/types/excalidraw/eraser/index.d.ts +12 -0
  222. package/dist/types/excalidraw/errors.d.ts +0 -3
  223. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -13
  224. package/dist/types/excalidraw/history.d.ts +31 -23
  225. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  226. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  227. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  228. package/dist/types/excalidraw/i18n.d.ts +1 -1
  229. package/dist/types/excalidraw/index.d.ts +18 -16
  230. package/dist/types/excalidraw/laser-trails.d.ts +1 -1
  231. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  232. package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
  233. package/dist/types/excalidraw/renderer/helpers.d.ts +8 -3
  234. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  235. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
  236. package/dist/types/excalidraw/scene/Renderer.d.ts +3 -4
  237. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  238. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  239. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  240. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  241. package/dist/types/excalidraw/scene/types.d.ts +6 -4
  242. package/dist/types/excalidraw/snapping.d.ts +5 -6
  243. package/dist/types/excalidraw/types.d.ts +50 -26
  244. package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +4 -2
  245. package/dist/types/math/{angle.d.ts → src/angle.d.ts} +2 -0
  246. package/dist/types/math/src/constants.d.ts +3 -0
  247. package/dist/types/math/src/curve.d.ts +74 -0
  248. package/dist/types/math/{index.d.ts → src/index.d.ts} +1 -0
  249. package/dist/types/math/{point.d.ts → src/point.d.ts} +3 -3
  250. package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
  251. package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +2 -0
  252. package/dist/types/math/{segment.d.ts → src/segment.d.ts} +2 -1
  253. package/dist/types/math/{types.d.ts → src/types.d.ts} +1 -0
  254. package/dist/types/math/{vector.d.ts → src/vector.d.ts} +8 -2
  255. package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
  256. package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
  257. package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
  258. package/dist/types/utils/{geometry → src}/shape.d.ts +2 -15
  259. package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
  260. package/history.ts +148 -109
  261. package/package.json +26 -11
  262. package/dist/dev/chunk-3SN6HYVK.js +0 -25695
  263. package/dist/dev/chunk-3SN6HYVK.js.map +0 -7
  264. package/dist/dev/chunk-53KHN5WM.js +0 -7
  265. package/dist/dev/chunk-53KHN5WM.js.map +0 -7
  266. package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
  267. package/dist/dev/chunk-OKSO7T74.js +0 -4132
  268. package/dist/dev/chunk-OKSO7T74.js.map +0 -7
  269. package/dist/prod/chunk-36CXSE6H.js +0 -34
  270. package/dist/prod/chunk-6U3AYISY.js +0 -12
  271. package/dist/prod/chunk-EIO257PC.js +0 -86
  272. package/dist/prod/chunk-G5N3DNGT.js +0 -7
  273. package/dist/prod/data/image-N4WCURRR.js +0 -1
  274. package/dist/types/excalidraw/align.d.ts +0 -7
  275. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  276. package/dist/types/excalidraw/element/collision.d.ts +0 -26
  277. package/dist/types/excalidraw/element/distance.d.ts +0 -3
  278. package/dist/types/excalidraw/element/index.d.ts +0 -26
  279. package/dist/types/excalidraw/element/mutateElement.d.ts +0 -13
  280. package/dist/types/excalidraw/element/utils.d.ts +0 -21
  281. package/dist/types/excalidraw/scene/Shape.d.ts +0 -17
  282. package/dist/types/excalidraw/scene/ShapeCache.d.ts +0 -25
  283. package/dist/types/excalidraw/shapes.d.ts +0 -85
  284. package/dist/types/excalidraw/store.d.ts +0 -129
  285. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  286. package/dist/types/math/curve.d.ts +0 -40
  287. package/dist/types/utils/collision.d.ts +0 -9
  288. /package/dist/dev/data/{image-V26YBSDB.js.map → image-RT6RLBUE.js.map} +0 -0
  289. /package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-V3NQTBPG.js.map} +0 -0
  290. /package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
  291. /package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
  292. /package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
  293. /package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
  294. /package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
  295. /package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
  296. /package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
  297. /package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
  298. /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
  299. /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
  300. /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
  301. /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
  302. /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
@@ -1,15 +1,15 @@
1
1
  /// <reference types="react" />
2
+ import { LinearElementEditor } from "@excalidraw/element";
3
+ import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
2
4
  import type { AppClassProperties, AppState, Primitive } from "../types";
3
- import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
4
- import { LinearElementEditor } from "../element/linearElementEditor";
5
5
  export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
6
- export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
6
+ export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
7
7
  export declare const actionChangeStrokeColor: {
8
8
  name: "changeStrokeColor";
9
9
  label: string;
10
10
  trackEvent: false;
11
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
12
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
11
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
12
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
13
13
  } & {
14
14
  keyTest?: undefined;
15
15
  };
@@ -17,8 +17,16 @@ export declare const actionChangeBackgroundColor: {
17
17
  name: "changeBackgroundColor";
18
18
  label: string;
19
19
  trackEvent: false;
20
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
21
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
20
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
21
+ appState: any;
22
+ captureUpdate: "EVENTUALLY";
23
+ elements?: undefined;
24
+ } | {
25
+ elements: ExcalidrawElement[];
26
+ appState: any;
27
+ captureUpdate: "IMMEDIATELY";
28
+ };
29
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
22
30
  } & {
23
31
  keyTest?: undefined;
24
32
  };
@@ -26,7 +34,7 @@ export declare const actionChangeFillStyle: {
26
34
  name: "changeFillStyle";
27
35
  label: string;
28
36
  trackEvent: false;
29
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
37
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
30
38
  elements: ExcalidrawElement[];
31
39
  appState: {
32
40
  currentItemFillStyle: any;
@@ -39,17 +47,17 @@ export declare const actionChangeFillStyle: {
39
47
  isLoading: boolean;
40
48
  errorMessage: import("react").ReactNode;
41
49
  activeEmbeddable: {
42
- element: import("../element/types").NonDeletedExcalidrawElement;
43
- state: "hover" | "active";
50
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
51
+ state: "active" | "hover";
44
52
  } | null;
45
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
46
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
47
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
48
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
53
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
54
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
55
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
56
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
49
57
  isBindingEnabled: boolean;
50
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
51
- suggestedBindings: import("../element/binding").SuggestedBinding[];
52
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
58
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
59
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
60
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
53
61
  frameRendering: {
54
62
  enabled: boolean;
55
63
  name: boolean;
@@ -57,12 +65,12 @@ export declare const actionChangeFillStyle: {
57
65
  clip: boolean;
58
66
  };
59
67
  editingFrame: string | null;
60
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
61
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
62
- editingLinearElement: LinearElementEditor | null;
68
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
69
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
63
70
  activeTool: {
64
71
  lastActiveTool: import("../types").ActiveTool | null;
65
72
  locked: boolean;
73
+ fromSelection: boolean;
66
74
  } & import("../types").ActiveTool;
67
75
  penMode: boolean;
68
76
  penDetected: boolean;
@@ -73,7 +81,7 @@ export declare const actionChangeFillStyle: {
73
81
  currentItemStrokeColor: string;
74
82
  currentItemBackgroundColor: string;
75
83
  currentItemStrokeWidth: number;
76
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
84
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
77
85
  currentItemRoughness: number;
78
86
  currentItemOpacity: number;
79
87
  currentItemFontFamily: number;
@@ -82,7 +90,7 @@ export declare const actionChangeFillStyle: {
82
90
  currentItemStartArrowhead: Arrowhead | null;
83
91
  currentItemEndArrowhead: Arrowhead | null;
84
92
  currentHoveredFontFamily: number | null;
85
- currentItemRoundness: import("../element/types").StrokeRoundness;
93
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
86
94
  currentItemArrowType: "round" | "sharp" | "elbow";
87
95
  viewBackgroundColor: string;
88
96
  scrollX: number;
@@ -96,7 +104,7 @@ export declare const actionChangeFillStyle: {
96
104
  value: import("../types").NormalizedZoomValue;
97
105
  }>;
98
106
  openMenu: "canvas" | "shape" | null;
99
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
107
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
100
108
  openSidebar: {
101
109
  name: string;
102
110
  tab?: string | undefined;
@@ -105,7 +113,7 @@ export declare const actionChangeFillStyle: {
105
113
  name: "imageExport" | "help" | "jsonExport";
106
114
  } | {
107
115
  name: "ttd";
108
- tab: "text-to-diagram" | "mermaid";
116
+ tab: "mermaid" | "text-to-diagram";
109
117
  } | {
110
118
  name: "commandPalette";
111
119
  } | {
@@ -113,7 +121,7 @@ export declare const actionChangeFillStyle: {
113
121
  sourceElementId: string;
114
122
  } | null;
115
123
  defaultSidebarDockedPreference: boolean;
116
- lastPointerDownWith: import("../element/types").PointerType;
124
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
117
125
  selectedElementIds: Readonly<{
118
126
  [id: string]: true;
119
127
  }>;
@@ -131,7 +139,7 @@ export declare const actionChangeFillStyle: {
131
139
  duration?: number | undefined;
132
140
  } | null;
133
141
  zenModeEnabled: boolean;
134
- theme: import("../element/types").Theme;
142
+ theme: import("@excalidraw/element/types").Theme;
135
143
  gridSize: number;
136
144
  gridStep: number;
137
145
  gridModeEnabled: boolean;
@@ -152,7 +160,7 @@ export declare const actionChangeFillStyle: {
152
160
  [id: string]: true;
153
161
  }> | undefined;
154
162
  username?: string | null | undefined;
155
- userState?: import("../constants").UserIdleState | undefined;
163
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
156
164
  color?: {
157
165
  background: string;
158
166
  stroke: string;
@@ -169,7 +177,7 @@ export declare const actionChangeFillStyle: {
169
177
  open: boolean;
170
178
  panels: number;
171
179
  };
172
- currentChartType: import("../element/types").ChartType;
180
+ currentChartType: import("@excalidraw/element/types").ChartType;
173
181
  pasteDialog: {
174
182
  shown: false;
175
183
  data: null;
@@ -177,8 +185,7 @@ export declare const actionChangeFillStyle: {
177
185
  shown: true;
178
186
  data: import("../charts").Spreadsheet;
179
187
  };
180
- pendingImageElementId: string | null;
181
- showHyperlinkPopup: false | "info" | "editor";
188
+ showHyperlinkPopup: false | "editor" | "info";
182
189
  selectedLinearElement: LinearElementEditor | null;
183
190
  snapLines: readonly import("../snapping").SnapLine[];
184
191
  originSnapOffset: {
@@ -190,20 +197,19 @@ export declare const actionChangeFillStyle: {
190
197
  followedBy: Set<import("../types").SocketId>;
191
198
  isCropping: boolean;
192
199
  croppingElementId: string | null;
193
- searchMatches: readonly {
194
- id: string;
195
- focus: boolean;
196
- matchedLines: {
197
- offsetX: number;
198
- offsetY: number;
199
- width: number;
200
- height: number;
201
- }[];
202
- }[];
200
+ searchMatches: Readonly<{
201
+ focusedId: string | null;
202
+ matches: readonly import("../types").SearchMatch[];
203
+ }> | null;
204
+ activeLockedId: string | null;
205
+ lockedMultiSelections: {
206
+ [groupId: string]: true;
207
+ };
208
+ stylesPanelMode: "compact" | "full";
203
209
  };
204
210
  captureUpdate: "IMMEDIATELY";
205
211
  };
206
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
212
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
207
213
  } & {
208
214
  keyTest?: undefined;
209
215
  };
@@ -211,7 +217,7 @@ export declare const actionChangeStrokeWidth: {
211
217
  name: "changeStrokeWidth";
212
218
  label: string;
213
219
  trackEvent: false;
214
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
220
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
215
221
  elements: ExcalidrawElement[];
216
222
  appState: {
217
223
  currentItemStrokeWidth: any;
@@ -224,17 +230,17 @@ export declare const actionChangeStrokeWidth: {
224
230
  isLoading: boolean;
225
231
  errorMessage: import("react").ReactNode;
226
232
  activeEmbeddable: {
227
- element: import("../element/types").NonDeletedExcalidrawElement;
228
- state: "hover" | "active";
233
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
234
+ state: "active" | "hover";
229
235
  } | null;
230
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
231
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
232
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
233
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
236
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
237
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
238
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
239
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
234
240
  isBindingEnabled: boolean;
235
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
236
- suggestedBindings: import("../element/binding").SuggestedBinding[];
237
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
241
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
242
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
243
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
238
244
  frameRendering: {
239
245
  enabled: boolean;
240
246
  name: boolean;
@@ -242,12 +248,12 @@ export declare const actionChangeStrokeWidth: {
242
248
  clip: boolean;
243
249
  };
244
250
  editingFrame: string | null;
245
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
246
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
247
- editingLinearElement: LinearElementEditor | null;
251
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
252
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
248
253
  activeTool: {
249
254
  lastActiveTool: import("../types").ActiveTool | null;
250
255
  locked: boolean;
256
+ fromSelection: boolean;
251
257
  } & import("../types").ActiveTool;
252
258
  penMode: boolean;
253
259
  penDetected: boolean;
@@ -257,8 +263,8 @@ export declare const actionChangeStrokeWidth: {
257
263
  exportScale: number;
258
264
  currentItemStrokeColor: string;
259
265
  currentItemBackgroundColor: string;
260
- currentItemFillStyle: import("../element/types").FillStyle;
261
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
266
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
267
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
262
268
  currentItemRoughness: number;
263
269
  currentItemOpacity: number;
264
270
  currentItemFontFamily: number;
@@ -267,7 +273,7 @@ export declare const actionChangeStrokeWidth: {
267
273
  currentItemStartArrowhead: Arrowhead | null;
268
274
  currentItemEndArrowhead: Arrowhead | null;
269
275
  currentHoveredFontFamily: number | null;
270
- currentItemRoundness: import("../element/types").StrokeRoundness;
276
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
271
277
  currentItemArrowType: "round" | "sharp" | "elbow";
272
278
  viewBackgroundColor: string;
273
279
  scrollX: number;
@@ -281,7 +287,7 @@ export declare const actionChangeStrokeWidth: {
281
287
  value: import("../types").NormalizedZoomValue;
282
288
  }>;
283
289
  openMenu: "canvas" | "shape" | null;
284
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
290
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
285
291
  openSidebar: {
286
292
  name: string;
287
293
  tab?: string | undefined;
@@ -290,7 +296,7 @@ export declare const actionChangeStrokeWidth: {
290
296
  name: "imageExport" | "help" | "jsonExport";
291
297
  } | {
292
298
  name: "ttd";
293
- tab: "text-to-diagram" | "mermaid";
299
+ tab: "mermaid" | "text-to-diagram";
294
300
  } | {
295
301
  name: "commandPalette";
296
302
  } | {
@@ -298,7 +304,7 @@ export declare const actionChangeStrokeWidth: {
298
304
  sourceElementId: string;
299
305
  } | null;
300
306
  defaultSidebarDockedPreference: boolean;
301
- lastPointerDownWith: import("../element/types").PointerType;
307
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
302
308
  selectedElementIds: Readonly<{
303
309
  [id: string]: true;
304
310
  }>;
@@ -316,7 +322,7 @@ export declare const actionChangeStrokeWidth: {
316
322
  duration?: number | undefined;
317
323
  } | null;
318
324
  zenModeEnabled: boolean;
319
- theme: import("../element/types").Theme;
325
+ theme: import("@excalidraw/element/types").Theme;
320
326
  gridSize: number;
321
327
  gridStep: number;
322
328
  gridModeEnabled: boolean;
@@ -337,7 +343,7 @@ export declare const actionChangeStrokeWidth: {
337
343
  [id: string]: true;
338
344
  }> | undefined;
339
345
  username?: string | null | undefined;
340
- userState?: import("../constants").UserIdleState | undefined;
346
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
341
347
  color?: {
342
348
  background: string;
343
349
  stroke: string;
@@ -354,7 +360,7 @@ export declare const actionChangeStrokeWidth: {
354
360
  open: boolean;
355
361
  panels: number;
356
362
  };
357
- currentChartType: import("../element/types").ChartType;
363
+ currentChartType: import("@excalidraw/element/types").ChartType;
358
364
  pasteDialog: {
359
365
  shown: false;
360
366
  data: null;
@@ -362,8 +368,7 @@ export declare const actionChangeStrokeWidth: {
362
368
  shown: true;
363
369
  data: import("../charts").Spreadsheet;
364
370
  };
365
- pendingImageElementId: string | null;
366
- showHyperlinkPopup: false | "info" | "editor";
371
+ showHyperlinkPopup: false | "editor" | "info";
367
372
  selectedLinearElement: LinearElementEditor | null;
368
373
  snapLines: readonly import("../snapping").SnapLine[];
369
374
  originSnapOffset: {
@@ -375,20 +380,19 @@ export declare const actionChangeStrokeWidth: {
375
380
  followedBy: Set<import("../types").SocketId>;
376
381
  isCropping: boolean;
377
382
  croppingElementId: string | null;
378
- searchMatches: readonly {
379
- id: string;
380
- focus: boolean;
381
- matchedLines: {
382
- offsetX: number;
383
- offsetY: number;
384
- width: number;
385
- height: number;
386
- }[];
387
- }[];
383
+ searchMatches: Readonly<{
384
+ focusedId: string | null;
385
+ matches: readonly import("../types").SearchMatch[];
386
+ }> | null;
387
+ activeLockedId: string | null;
388
+ lockedMultiSelections: {
389
+ [groupId: string]: true;
390
+ };
391
+ stylesPanelMode: "compact" | "full";
388
392
  };
389
393
  captureUpdate: "IMMEDIATELY";
390
394
  };
391
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
395
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
392
396
  } & {
393
397
  keyTest?: undefined;
394
398
  };
@@ -396,7 +400,7 @@ export declare const actionChangeSloppiness: {
396
400
  name: "changeSloppiness";
397
401
  label: string;
398
402
  trackEvent: false;
399
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
403
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
400
404
  elements: ExcalidrawElement[];
401
405
  appState: {
402
406
  currentItemRoughness: any;
@@ -409,17 +413,17 @@ export declare const actionChangeSloppiness: {
409
413
  isLoading: boolean;
410
414
  errorMessage: import("react").ReactNode;
411
415
  activeEmbeddable: {
412
- element: import("../element/types").NonDeletedExcalidrawElement;
413
- state: "hover" | "active";
416
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
417
+ state: "active" | "hover";
414
418
  } | null;
415
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
416
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
417
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
418
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
419
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
420
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
421
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
422
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
419
423
  isBindingEnabled: boolean;
420
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
421
- suggestedBindings: import("../element/binding").SuggestedBinding[];
422
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
424
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
425
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
426
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
423
427
  frameRendering: {
424
428
  enabled: boolean;
425
429
  name: boolean;
@@ -427,12 +431,12 @@ export declare const actionChangeSloppiness: {
427
431
  clip: boolean;
428
432
  };
429
433
  editingFrame: string | null;
430
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
431
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
432
- editingLinearElement: LinearElementEditor | null;
434
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
435
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
433
436
  activeTool: {
434
437
  lastActiveTool: import("../types").ActiveTool | null;
435
438
  locked: boolean;
439
+ fromSelection: boolean;
436
440
  } & import("../types").ActiveTool;
437
441
  penMode: boolean;
438
442
  penDetected: boolean;
@@ -442,9 +446,9 @@ export declare const actionChangeSloppiness: {
442
446
  exportScale: number;
443
447
  currentItemStrokeColor: string;
444
448
  currentItemBackgroundColor: string;
445
- currentItemFillStyle: import("../element/types").FillStyle;
449
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
446
450
  currentItemStrokeWidth: number;
447
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
451
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
448
452
  currentItemOpacity: number;
449
453
  currentItemFontFamily: number;
450
454
  currentItemFontSize: number;
@@ -452,7 +456,7 @@ export declare const actionChangeSloppiness: {
452
456
  currentItemStartArrowhead: Arrowhead | null;
453
457
  currentItemEndArrowhead: Arrowhead | null;
454
458
  currentHoveredFontFamily: number | null;
455
- currentItemRoundness: import("../element/types").StrokeRoundness;
459
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
456
460
  currentItemArrowType: "round" | "sharp" | "elbow";
457
461
  viewBackgroundColor: string;
458
462
  scrollX: number;
@@ -466,7 +470,7 @@ export declare const actionChangeSloppiness: {
466
470
  value: import("../types").NormalizedZoomValue;
467
471
  }>;
468
472
  openMenu: "canvas" | "shape" | null;
469
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
473
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
470
474
  openSidebar: {
471
475
  name: string;
472
476
  tab?: string | undefined;
@@ -475,7 +479,7 @@ export declare const actionChangeSloppiness: {
475
479
  name: "imageExport" | "help" | "jsonExport";
476
480
  } | {
477
481
  name: "ttd";
478
- tab: "text-to-diagram" | "mermaid";
482
+ tab: "mermaid" | "text-to-diagram";
479
483
  } | {
480
484
  name: "commandPalette";
481
485
  } | {
@@ -483,7 +487,7 @@ export declare const actionChangeSloppiness: {
483
487
  sourceElementId: string;
484
488
  } | null;
485
489
  defaultSidebarDockedPreference: boolean;
486
- lastPointerDownWith: import("../element/types").PointerType;
490
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
487
491
  selectedElementIds: Readonly<{
488
492
  [id: string]: true;
489
493
  }>;
@@ -501,7 +505,7 @@ export declare const actionChangeSloppiness: {
501
505
  duration?: number | undefined;
502
506
  } | null;
503
507
  zenModeEnabled: boolean;
504
- theme: import("../element/types").Theme;
508
+ theme: import("@excalidraw/element/types").Theme;
505
509
  gridSize: number;
506
510
  gridStep: number;
507
511
  gridModeEnabled: boolean;
@@ -522,7 +526,7 @@ export declare const actionChangeSloppiness: {
522
526
  [id: string]: true;
523
527
  }> | undefined;
524
528
  username?: string | null | undefined;
525
- userState?: import("../constants").UserIdleState | undefined;
529
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
526
530
  color?: {
527
531
  background: string;
528
532
  stroke: string;
@@ -539,7 +543,7 @@ export declare const actionChangeSloppiness: {
539
543
  open: boolean;
540
544
  panels: number;
541
545
  };
542
- currentChartType: import("../element/types").ChartType;
546
+ currentChartType: import("@excalidraw/element/types").ChartType;
543
547
  pasteDialog: {
544
548
  shown: false;
545
549
  data: null;
@@ -547,8 +551,7 @@ export declare const actionChangeSloppiness: {
547
551
  shown: true;
548
552
  data: import("../charts").Spreadsheet;
549
553
  };
550
- pendingImageElementId: string | null;
551
- showHyperlinkPopup: false | "info" | "editor";
554
+ showHyperlinkPopup: false | "editor" | "info";
552
555
  selectedLinearElement: LinearElementEditor | null;
553
556
  snapLines: readonly import("../snapping").SnapLine[];
554
557
  originSnapOffset: {
@@ -560,20 +563,19 @@ export declare const actionChangeSloppiness: {
560
563
  followedBy: Set<import("../types").SocketId>;
561
564
  isCropping: boolean;
562
565
  croppingElementId: string | null;
563
- searchMatches: readonly {
564
- id: string;
565
- focus: boolean;
566
- matchedLines: {
567
- offsetX: number;
568
- offsetY: number;
569
- width: number;
570
- height: number;
571
- }[];
572
- }[];
566
+ searchMatches: Readonly<{
567
+ focusedId: string | null;
568
+ matches: readonly import("../types").SearchMatch[];
569
+ }> | null;
570
+ activeLockedId: string | null;
571
+ lockedMultiSelections: {
572
+ [groupId: string]: true;
573
+ };
574
+ stylesPanelMode: "compact" | "full";
573
575
  };
574
576
  captureUpdate: "IMMEDIATELY";
575
577
  };
576
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
578
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
577
579
  } & {
578
580
  keyTest?: undefined;
579
581
  };
@@ -581,7 +583,7 @@ export declare const actionChangeStrokeStyle: {
581
583
  name: "changeStrokeStyle";
582
584
  label: string;
583
585
  trackEvent: false;
584
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
586
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
585
587
  elements: ExcalidrawElement[];
586
588
  appState: {
587
589
  currentItemStrokeStyle: any;
@@ -594,17 +596,17 @@ export declare const actionChangeStrokeStyle: {
594
596
  isLoading: boolean;
595
597
  errorMessage: import("react").ReactNode;
596
598
  activeEmbeddable: {
597
- element: import("../element/types").NonDeletedExcalidrawElement;
598
- state: "hover" | "active";
599
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
600
+ state: "active" | "hover";
599
601
  } | null;
600
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
601
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
602
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
603
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
602
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
603
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
604
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
605
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
604
606
  isBindingEnabled: boolean;
605
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
606
- suggestedBindings: import("../element/binding").SuggestedBinding[];
607
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
607
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
608
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
609
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
608
610
  frameRendering: {
609
611
  enabled: boolean;
610
612
  name: boolean;
@@ -612,12 +614,12 @@ export declare const actionChangeStrokeStyle: {
612
614
  clip: boolean;
613
615
  };
614
616
  editingFrame: string | null;
615
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
616
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
617
- editingLinearElement: LinearElementEditor | null;
617
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
618
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
618
619
  activeTool: {
619
620
  lastActiveTool: import("../types").ActiveTool | null;
620
621
  locked: boolean;
622
+ fromSelection: boolean;
621
623
  } & import("../types").ActiveTool;
622
624
  penMode: boolean;
623
625
  penDetected: boolean;
@@ -627,7 +629,7 @@ export declare const actionChangeStrokeStyle: {
627
629
  exportScale: number;
628
630
  currentItemStrokeColor: string;
629
631
  currentItemBackgroundColor: string;
630
- currentItemFillStyle: import("../element/types").FillStyle;
632
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
631
633
  currentItemStrokeWidth: number;
632
634
  currentItemRoughness: number;
633
635
  currentItemOpacity: number;
@@ -637,7 +639,7 @@ export declare const actionChangeStrokeStyle: {
637
639
  currentItemStartArrowhead: Arrowhead | null;
638
640
  currentItemEndArrowhead: Arrowhead | null;
639
641
  currentHoveredFontFamily: number | null;
640
- currentItemRoundness: import("../element/types").StrokeRoundness;
642
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
641
643
  currentItemArrowType: "round" | "sharp" | "elbow";
642
644
  viewBackgroundColor: string;
643
645
  scrollX: number;
@@ -651,7 +653,7 @@ export declare const actionChangeStrokeStyle: {
651
653
  value: import("../types").NormalizedZoomValue;
652
654
  }>;
653
655
  openMenu: "canvas" | "shape" | null;
654
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
656
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
655
657
  openSidebar: {
656
658
  name: string;
657
659
  tab?: string | undefined;
@@ -660,7 +662,7 @@ export declare const actionChangeStrokeStyle: {
660
662
  name: "imageExport" | "help" | "jsonExport";
661
663
  } | {
662
664
  name: "ttd";
663
- tab: "text-to-diagram" | "mermaid";
665
+ tab: "mermaid" | "text-to-diagram";
664
666
  } | {
665
667
  name: "commandPalette";
666
668
  } | {
@@ -668,7 +670,7 @@ export declare const actionChangeStrokeStyle: {
668
670
  sourceElementId: string;
669
671
  } | null;
670
672
  defaultSidebarDockedPreference: boolean;
671
- lastPointerDownWith: import("../element/types").PointerType;
673
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
672
674
  selectedElementIds: Readonly<{
673
675
  [id: string]: true;
674
676
  }>;
@@ -686,7 +688,7 @@ export declare const actionChangeStrokeStyle: {
686
688
  duration?: number | undefined;
687
689
  } | null;
688
690
  zenModeEnabled: boolean;
689
- theme: import("../element/types").Theme;
691
+ theme: import("@excalidraw/element/types").Theme;
690
692
  gridSize: number;
691
693
  gridStep: number;
692
694
  gridModeEnabled: boolean;
@@ -707,7 +709,7 @@ export declare const actionChangeStrokeStyle: {
707
709
  [id: string]: true;
708
710
  }> | undefined;
709
711
  username?: string | null | undefined;
710
- userState?: import("../constants").UserIdleState | undefined;
712
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
711
713
  color?: {
712
714
  background: string;
713
715
  stroke: string;
@@ -724,7 +726,7 @@ export declare const actionChangeStrokeStyle: {
724
726
  open: boolean;
725
727
  panels: number;
726
728
  };
727
- currentChartType: import("../element/types").ChartType;
729
+ currentChartType: import("@excalidraw/element/types").ChartType;
728
730
  pasteDialog: {
729
731
  shown: false;
730
732
  data: null;
@@ -732,8 +734,7 @@ export declare const actionChangeStrokeStyle: {
732
734
  shown: true;
733
735
  data: import("../charts").Spreadsheet;
734
736
  };
735
- pendingImageElementId: string | null;
736
- showHyperlinkPopup: false | "info" | "editor";
737
+ showHyperlinkPopup: false | "editor" | "info";
737
738
  selectedLinearElement: LinearElementEditor | null;
738
739
  snapLines: readonly import("../snapping").SnapLine[];
739
740
  originSnapOffset: {
@@ -745,20 +746,19 @@ export declare const actionChangeStrokeStyle: {
745
746
  followedBy: Set<import("../types").SocketId>;
746
747
  isCropping: boolean;
747
748
  croppingElementId: string | null;
748
- searchMatches: readonly {
749
- id: string;
750
- focus: boolean;
751
- matchedLines: {
752
- offsetX: number;
753
- offsetY: number;
754
- width: number;
755
- height: number;
756
- }[];
757
- }[];
749
+ searchMatches: Readonly<{
750
+ focusedId: string | null;
751
+ matches: readonly import("../types").SearchMatch[];
752
+ }> | null;
753
+ activeLockedId: string | null;
754
+ lockedMultiSelections: {
755
+ [groupId: string]: true;
756
+ };
757
+ stylesPanelMode: "compact" | "full";
758
758
  };
759
759
  captureUpdate: "IMMEDIATELY";
760
760
  };
761
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
761
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
762
762
  } & {
763
763
  keyTest?: undefined;
764
764
  };
@@ -766,7 +766,7 @@ export declare const actionChangeOpacity: {
766
766
  name: "changeOpacity";
767
767
  label: string;
768
768
  trackEvent: false;
769
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
769
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
770
770
  elements: ExcalidrawElement[];
771
771
  appState: {
772
772
  currentItemOpacity: any;
@@ -779,17 +779,17 @@ export declare const actionChangeOpacity: {
779
779
  isLoading: boolean;
780
780
  errorMessage: import("react").ReactNode;
781
781
  activeEmbeddable: {
782
- element: import("../element/types").NonDeletedExcalidrawElement;
783
- state: "hover" | "active";
782
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
783
+ state: "active" | "hover";
784
784
  } | null;
785
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
786
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
787
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
788
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
785
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
786
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
787
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
788
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
789
789
  isBindingEnabled: boolean;
790
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
791
- suggestedBindings: import("../element/binding").SuggestedBinding[];
792
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
790
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
791
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
792
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
793
793
  frameRendering: {
794
794
  enabled: boolean;
795
795
  name: boolean;
@@ -797,12 +797,12 @@ export declare const actionChangeOpacity: {
797
797
  clip: boolean;
798
798
  };
799
799
  editingFrame: string | null;
800
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
801
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
802
- editingLinearElement: LinearElementEditor | null;
800
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
801
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
803
802
  activeTool: {
804
803
  lastActiveTool: import("../types").ActiveTool | null;
805
804
  locked: boolean;
805
+ fromSelection: boolean;
806
806
  } & import("../types").ActiveTool;
807
807
  penMode: boolean;
808
808
  penDetected: boolean;
@@ -812,9 +812,9 @@ export declare const actionChangeOpacity: {
812
812
  exportScale: number;
813
813
  currentItemStrokeColor: string;
814
814
  currentItemBackgroundColor: string;
815
- currentItemFillStyle: import("../element/types").FillStyle;
815
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
816
816
  currentItemStrokeWidth: number;
817
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
817
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
818
818
  currentItemRoughness: number;
819
819
  currentItemFontFamily: number;
820
820
  currentItemFontSize: number;
@@ -822,7 +822,7 @@ export declare const actionChangeOpacity: {
822
822
  currentItemStartArrowhead: Arrowhead | null;
823
823
  currentItemEndArrowhead: Arrowhead | null;
824
824
  currentHoveredFontFamily: number | null;
825
- currentItemRoundness: import("../element/types").StrokeRoundness;
825
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
826
826
  currentItemArrowType: "round" | "sharp" | "elbow";
827
827
  viewBackgroundColor: string;
828
828
  scrollX: number;
@@ -836,7 +836,7 @@ export declare const actionChangeOpacity: {
836
836
  value: import("../types").NormalizedZoomValue;
837
837
  }>;
838
838
  openMenu: "canvas" | "shape" | null;
839
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
839
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
840
840
  openSidebar: {
841
841
  name: string;
842
842
  tab?: string | undefined;
@@ -845,7 +845,7 @@ export declare const actionChangeOpacity: {
845
845
  name: "imageExport" | "help" | "jsonExport";
846
846
  } | {
847
847
  name: "ttd";
848
- tab: "text-to-diagram" | "mermaid";
848
+ tab: "mermaid" | "text-to-diagram";
849
849
  } | {
850
850
  name: "commandPalette";
851
851
  } | {
@@ -853,7 +853,7 @@ export declare const actionChangeOpacity: {
853
853
  sourceElementId: string;
854
854
  } | null;
855
855
  defaultSidebarDockedPreference: boolean;
856
- lastPointerDownWith: import("../element/types").PointerType;
856
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
857
857
  selectedElementIds: Readonly<{
858
858
  [id: string]: true;
859
859
  }>;
@@ -871,7 +871,7 @@ export declare const actionChangeOpacity: {
871
871
  duration?: number | undefined;
872
872
  } | null;
873
873
  zenModeEnabled: boolean;
874
- theme: import("../element/types").Theme;
874
+ theme: import("@excalidraw/element/types").Theme;
875
875
  gridSize: number;
876
876
  gridStep: number;
877
877
  gridModeEnabled: boolean;
@@ -892,7 +892,7 @@ export declare const actionChangeOpacity: {
892
892
  [id: string]: true;
893
893
  }> | undefined;
894
894
  username?: string | null | undefined;
895
- userState?: import("../constants").UserIdleState | undefined;
895
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
896
896
  color?: {
897
897
  background: string;
898
898
  stroke: string;
@@ -909,7 +909,7 @@ export declare const actionChangeOpacity: {
909
909
  open: boolean;
910
910
  panels: number;
911
911
  };
912
- currentChartType: import("../element/types").ChartType;
912
+ currentChartType: import("@excalidraw/element/types").ChartType;
913
913
  pasteDialog: {
914
914
  shown: false;
915
915
  data: null;
@@ -917,8 +917,7 @@ export declare const actionChangeOpacity: {
917
917
  shown: true;
918
918
  data: import("../charts").Spreadsheet;
919
919
  };
920
- pendingImageElementId: string | null;
921
- showHyperlinkPopup: false | "info" | "editor";
920
+ showHyperlinkPopup: false | "editor" | "info";
922
921
  selectedLinearElement: LinearElementEditor | null;
923
922
  snapLines: readonly import("../snapping").SnapLine[];
924
923
  originSnapOffset: {
@@ -930,20 +929,19 @@ export declare const actionChangeOpacity: {
930
929
  followedBy: Set<import("../types").SocketId>;
931
930
  isCropping: boolean;
932
931
  croppingElementId: string | null;
933
- searchMatches: readonly {
934
- id: string;
935
- focus: boolean;
936
- matchedLines: {
937
- offsetX: number;
938
- offsetY: number;
939
- width: number;
940
- height: number;
941
- }[];
942
- }[];
932
+ searchMatches: Readonly<{
933
+ focusedId: string | null;
934
+ matches: readonly import("../types").SearchMatch[];
935
+ }> | null;
936
+ activeLockedId: string | null;
937
+ lockedMultiSelections: {
938
+ [groupId: string]: true;
939
+ };
940
+ stylesPanelMode: "compact" | "full";
943
941
  };
944
942
  captureUpdate: "IMMEDIATELY";
945
943
  };
946
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
944
+ PanelComponent: ({ app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
947
945
  } & {
948
946
  keyTest?: undefined;
949
947
  };
@@ -951,7 +949,7 @@ export declare const actionChangeFontSize: {
951
949
  name: "changeFontSize";
952
950
  label: string;
953
951
  trackEvent: false;
954
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
952
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
955
953
  elements: ExcalidrawElement[];
956
954
  appState: {
957
955
  currentItemFontSize: number;
@@ -964,17 +962,17 @@ export declare const actionChangeFontSize: {
964
962
  isLoading: boolean;
965
963
  errorMessage: import("react").ReactNode;
966
964
  activeEmbeddable: {
967
- element: import("../element/types").NonDeletedExcalidrawElement;
968
- state: "hover" | "active";
965
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
966
+ state: "active" | "hover";
969
967
  } | null;
970
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
971
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
972
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
973
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
968
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
969
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
970
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
971
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
974
972
  isBindingEnabled: boolean;
975
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
976
- suggestedBindings: import("../element/binding").SuggestedBinding[];
977
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
973
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
974
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
975
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
978
976
  frameRendering: {
979
977
  enabled: boolean;
980
978
  name: boolean;
@@ -982,12 +980,12 @@ export declare const actionChangeFontSize: {
982
980
  clip: boolean;
983
981
  };
984
982
  editingFrame: string | null;
985
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
986
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
987
- editingLinearElement: LinearElementEditor | null;
983
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
984
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
988
985
  activeTool: {
989
986
  lastActiveTool: import("../types").ActiveTool | null;
990
987
  locked: boolean;
988
+ fromSelection: boolean;
991
989
  } & import("../types").ActiveTool;
992
990
  penMode: boolean;
993
991
  penDetected: boolean;
@@ -997,9 +995,9 @@ export declare const actionChangeFontSize: {
997
995
  exportScale: number;
998
996
  currentItemStrokeColor: string;
999
997
  currentItemBackgroundColor: string;
1000
- currentItemFillStyle: import("../element/types").FillStyle;
998
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1001
999
  currentItemStrokeWidth: number;
1002
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1000
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1003
1001
  currentItemRoughness: number;
1004
1002
  currentItemOpacity: number;
1005
1003
  currentItemFontFamily: number;
@@ -1007,7 +1005,7 @@ export declare const actionChangeFontSize: {
1007
1005
  currentItemStartArrowhead: Arrowhead | null;
1008
1006
  currentItemEndArrowhead: Arrowhead | null;
1009
1007
  currentHoveredFontFamily: number | null;
1010
- currentItemRoundness: import("../element/types").StrokeRoundness;
1008
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1011
1009
  currentItemArrowType: "round" | "sharp" | "elbow";
1012
1010
  viewBackgroundColor: string;
1013
1011
  scrollX: number;
@@ -1021,7 +1019,7 @@ export declare const actionChangeFontSize: {
1021
1019
  value: import("../types").NormalizedZoomValue;
1022
1020
  }>;
1023
1021
  openMenu: "canvas" | "shape" | null;
1024
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1022
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1025
1023
  openSidebar: {
1026
1024
  name: string;
1027
1025
  tab?: string | undefined;
@@ -1030,7 +1028,7 @@ export declare const actionChangeFontSize: {
1030
1028
  name: "imageExport" | "help" | "jsonExport";
1031
1029
  } | {
1032
1030
  name: "ttd";
1033
- tab: "text-to-diagram" | "mermaid";
1031
+ tab: "mermaid" | "text-to-diagram";
1034
1032
  } | {
1035
1033
  name: "commandPalette";
1036
1034
  } | {
@@ -1038,7 +1036,7 @@ export declare const actionChangeFontSize: {
1038
1036
  sourceElementId: string;
1039
1037
  } | null;
1040
1038
  defaultSidebarDockedPreference: boolean;
1041
- lastPointerDownWith: import("../element/types").PointerType;
1039
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1042
1040
  selectedElementIds: Readonly<{
1043
1041
  [id: string]: true;
1044
1042
  }>;
@@ -1056,7 +1054,7 @@ export declare const actionChangeFontSize: {
1056
1054
  duration?: number | undefined;
1057
1055
  } | null;
1058
1056
  zenModeEnabled: boolean;
1059
- theme: import("../element/types").Theme;
1057
+ theme: import("@excalidraw/element/types").Theme;
1060
1058
  gridSize: number;
1061
1059
  gridStep: number;
1062
1060
  gridModeEnabled: boolean;
@@ -1077,7 +1075,7 @@ export declare const actionChangeFontSize: {
1077
1075
  [id: string]: true;
1078
1076
  }> | undefined;
1079
1077
  username?: string | null | undefined;
1080
- userState?: import("../constants").UserIdleState | undefined;
1078
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1081
1079
  color?: {
1082
1080
  background: string;
1083
1081
  stroke: string;
@@ -1094,7 +1092,7 @@ export declare const actionChangeFontSize: {
1094
1092
  open: boolean;
1095
1093
  panels: number;
1096
1094
  };
1097
- currentChartType: import("../element/types").ChartType;
1095
+ currentChartType: import("@excalidraw/element/types").ChartType;
1098
1096
  pasteDialog: {
1099
1097
  shown: false;
1100
1098
  data: null;
@@ -1102,8 +1100,7 @@ export declare const actionChangeFontSize: {
1102
1100
  shown: true;
1103
1101
  data: import("../charts").Spreadsheet;
1104
1102
  };
1105
- pendingImageElementId: string | null;
1106
- showHyperlinkPopup: false | "info" | "editor";
1103
+ showHyperlinkPopup: false | "editor" | "info";
1107
1104
  selectedLinearElement: LinearElementEditor | null;
1108
1105
  snapLines: readonly import("../snapping").SnapLine[];
1109
1106
  originSnapOffset: {
@@ -1115,20 +1112,19 @@ export declare const actionChangeFontSize: {
1115
1112
  followedBy: Set<import("../types").SocketId>;
1116
1113
  isCropping: boolean;
1117
1114
  croppingElementId: string | null;
1118
- searchMatches: readonly {
1119
- id: string;
1120
- focus: boolean;
1121
- matchedLines: {
1122
- offsetX: number;
1123
- offsetY: number;
1124
- width: number;
1125
- height: number;
1126
- }[];
1127
- }[];
1115
+ searchMatches: Readonly<{
1116
+ focusedId: string | null;
1117
+ matches: readonly import("../types").SearchMatch[];
1118
+ }> | null;
1119
+ activeLockedId: string | null;
1120
+ lockedMultiSelections: {
1121
+ [groupId: string]: true;
1122
+ };
1123
+ stylesPanelMode: "compact" | "full";
1128
1124
  };
1129
1125
  captureUpdate: "IMMEDIATELY";
1130
1126
  };
1131
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1127
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1132
1128
  } & {
1133
1129
  keyTest?: undefined;
1134
1130
  };
@@ -1137,7 +1133,7 @@ export declare const actionDecreaseFontSize: {
1137
1133
  label: string;
1138
1134
  icon: import("react/jsx-runtime").JSX.Element;
1139
1135
  trackEvent: false;
1140
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1136
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1141
1137
  elements: ExcalidrawElement[];
1142
1138
  appState: {
1143
1139
  currentItemFontSize: number;
@@ -1150,17 +1146,17 @@ export declare const actionDecreaseFontSize: {
1150
1146
  isLoading: boolean;
1151
1147
  errorMessage: import("react").ReactNode;
1152
1148
  activeEmbeddable: {
1153
- element: import("../element/types").NonDeletedExcalidrawElement;
1154
- state: "hover" | "active";
1149
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1150
+ state: "active" | "hover";
1155
1151
  } | null;
1156
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1157
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1158
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1159
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1152
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1153
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1154
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1155
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1160
1156
  isBindingEnabled: boolean;
1161
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1162
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1163
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1157
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1158
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1159
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1164
1160
  frameRendering: {
1165
1161
  enabled: boolean;
1166
1162
  name: boolean;
@@ -1168,12 +1164,12 @@ export declare const actionDecreaseFontSize: {
1168
1164
  clip: boolean;
1169
1165
  };
1170
1166
  editingFrame: string | null;
1171
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1172
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1173
- editingLinearElement: LinearElementEditor | null;
1167
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1168
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1174
1169
  activeTool: {
1175
1170
  lastActiveTool: import("../types").ActiveTool | null;
1176
1171
  locked: boolean;
1172
+ fromSelection: boolean;
1177
1173
  } & import("../types").ActiveTool;
1178
1174
  penMode: boolean;
1179
1175
  penDetected: boolean;
@@ -1183,9 +1179,9 @@ export declare const actionDecreaseFontSize: {
1183
1179
  exportScale: number;
1184
1180
  currentItemStrokeColor: string;
1185
1181
  currentItemBackgroundColor: string;
1186
- currentItemFillStyle: import("../element/types").FillStyle;
1182
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1187
1183
  currentItemStrokeWidth: number;
1188
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1184
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1189
1185
  currentItemRoughness: number;
1190
1186
  currentItemOpacity: number;
1191
1187
  currentItemFontFamily: number;
@@ -1193,7 +1189,7 @@ export declare const actionDecreaseFontSize: {
1193
1189
  currentItemStartArrowhead: Arrowhead | null;
1194
1190
  currentItemEndArrowhead: Arrowhead | null;
1195
1191
  currentHoveredFontFamily: number | null;
1196
- currentItemRoundness: import("../element/types").StrokeRoundness;
1192
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1197
1193
  currentItemArrowType: "round" | "sharp" | "elbow";
1198
1194
  viewBackgroundColor: string;
1199
1195
  scrollX: number;
@@ -1207,7 +1203,7 @@ export declare const actionDecreaseFontSize: {
1207
1203
  value: import("../types").NormalizedZoomValue;
1208
1204
  }>;
1209
1205
  openMenu: "canvas" | "shape" | null;
1210
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1206
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1211
1207
  openSidebar: {
1212
1208
  name: string;
1213
1209
  tab?: string | undefined;
@@ -1216,7 +1212,7 @@ export declare const actionDecreaseFontSize: {
1216
1212
  name: "imageExport" | "help" | "jsonExport";
1217
1213
  } | {
1218
1214
  name: "ttd";
1219
- tab: "text-to-diagram" | "mermaid";
1215
+ tab: "mermaid" | "text-to-diagram";
1220
1216
  } | {
1221
1217
  name: "commandPalette";
1222
1218
  } | {
@@ -1224,7 +1220,7 @@ export declare const actionDecreaseFontSize: {
1224
1220
  sourceElementId: string;
1225
1221
  } | null;
1226
1222
  defaultSidebarDockedPreference: boolean;
1227
- lastPointerDownWith: import("../element/types").PointerType;
1223
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1228
1224
  selectedElementIds: Readonly<{
1229
1225
  [id: string]: true;
1230
1226
  }>;
@@ -1242,7 +1238,7 @@ export declare const actionDecreaseFontSize: {
1242
1238
  duration?: number | undefined;
1243
1239
  } | null;
1244
1240
  zenModeEnabled: boolean;
1245
- theme: import("../element/types").Theme;
1241
+ theme: import("@excalidraw/element/types").Theme;
1246
1242
  gridSize: number;
1247
1243
  gridStep: number;
1248
1244
  gridModeEnabled: boolean;
@@ -1263,7 +1259,7 @@ export declare const actionDecreaseFontSize: {
1263
1259
  [id: string]: true;
1264
1260
  }> | undefined;
1265
1261
  username?: string | null | undefined;
1266
- userState?: import("../constants").UserIdleState | undefined;
1262
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1267
1263
  color?: {
1268
1264
  background: string;
1269
1265
  stroke: string;
@@ -1280,7 +1276,7 @@ export declare const actionDecreaseFontSize: {
1280
1276
  open: boolean;
1281
1277
  panels: number;
1282
1278
  };
1283
- currentChartType: import("../element/types").ChartType;
1279
+ currentChartType: import("@excalidraw/element/types").ChartType;
1284
1280
  pasteDialog: {
1285
1281
  shown: false;
1286
1282
  data: null;
@@ -1288,8 +1284,7 @@ export declare const actionDecreaseFontSize: {
1288
1284
  shown: true;
1289
1285
  data: import("../charts").Spreadsheet;
1290
1286
  };
1291
- pendingImageElementId: string | null;
1292
- showHyperlinkPopup: false | "info" | "editor";
1287
+ showHyperlinkPopup: false | "editor" | "info";
1293
1288
  selectedLinearElement: LinearElementEditor | null;
1294
1289
  snapLines: readonly import("../snapping").SnapLine[];
1295
1290
  originSnapOffset: {
@@ -1301,16 +1296,15 @@ export declare const actionDecreaseFontSize: {
1301
1296
  followedBy: Set<import("../types").SocketId>;
1302
1297
  isCropping: boolean;
1303
1298
  croppingElementId: string | null;
1304
- searchMatches: readonly {
1305
- id: string;
1306
- focus: boolean;
1307
- matchedLines: {
1308
- offsetX: number;
1309
- offsetY: number;
1310
- width: number;
1311
- height: number;
1312
- }[];
1313
- }[];
1299
+ searchMatches: Readonly<{
1300
+ focusedId: string | null;
1301
+ matches: readonly import("../types").SearchMatch[];
1302
+ }> | null;
1303
+ activeLockedId: string | null;
1304
+ lockedMultiSelections: {
1305
+ [groupId: string]: true;
1306
+ };
1307
+ stylesPanelMode: "compact" | "full";
1314
1308
  };
1315
1309
  captureUpdate: "IMMEDIATELY";
1316
1310
  };
@@ -1323,7 +1317,7 @@ export declare const actionIncreaseFontSize: {
1323
1317
  label: string;
1324
1318
  icon: import("react/jsx-runtime").JSX.Element;
1325
1319
  trackEvent: false;
1326
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1320
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1327
1321
  elements: ExcalidrawElement[];
1328
1322
  appState: {
1329
1323
  currentItemFontSize: number;
@@ -1336,17 +1330,17 @@ export declare const actionIncreaseFontSize: {
1336
1330
  isLoading: boolean;
1337
1331
  errorMessage: import("react").ReactNode;
1338
1332
  activeEmbeddable: {
1339
- element: import("../element/types").NonDeletedExcalidrawElement;
1340
- state: "hover" | "active";
1333
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1334
+ state: "active" | "hover";
1341
1335
  } | null;
1342
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1343
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1344
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1345
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1336
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1337
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1338
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1339
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1346
1340
  isBindingEnabled: boolean;
1347
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1348
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1349
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1341
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1342
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1343
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1350
1344
  frameRendering: {
1351
1345
  enabled: boolean;
1352
1346
  name: boolean;
@@ -1354,12 +1348,12 @@ export declare const actionIncreaseFontSize: {
1354
1348
  clip: boolean;
1355
1349
  };
1356
1350
  editingFrame: string | null;
1357
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1358
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1359
- editingLinearElement: LinearElementEditor | null;
1351
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1352
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1360
1353
  activeTool: {
1361
1354
  lastActiveTool: import("../types").ActiveTool | null;
1362
1355
  locked: boolean;
1356
+ fromSelection: boolean;
1363
1357
  } & import("../types").ActiveTool;
1364
1358
  penMode: boolean;
1365
1359
  penDetected: boolean;
@@ -1369,9 +1363,9 @@ export declare const actionIncreaseFontSize: {
1369
1363
  exportScale: number;
1370
1364
  currentItemStrokeColor: string;
1371
1365
  currentItemBackgroundColor: string;
1372
- currentItemFillStyle: import("../element/types").FillStyle;
1366
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1373
1367
  currentItemStrokeWidth: number;
1374
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1368
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1375
1369
  currentItemRoughness: number;
1376
1370
  currentItemOpacity: number;
1377
1371
  currentItemFontFamily: number;
@@ -1379,7 +1373,7 @@ export declare const actionIncreaseFontSize: {
1379
1373
  currentItemStartArrowhead: Arrowhead | null;
1380
1374
  currentItemEndArrowhead: Arrowhead | null;
1381
1375
  currentHoveredFontFamily: number | null;
1382
- currentItemRoundness: import("../element/types").StrokeRoundness;
1376
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1383
1377
  currentItemArrowType: "round" | "sharp" | "elbow";
1384
1378
  viewBackgroundColor: string;
1385
1379
  scrollX: number;
@@ -1393,7 +1387,7 @@ export declare const actionIncreaseFontSize: {
1393
1387
  value: import("../types").NormalizedZoomValue;
1394
1388
  }>;
1395
1389
  openMenu: "canvas" | "shape" | null;
1396
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1390
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1397
1391
  openSidebar: {
1398
1392
  name: string;
1399
1393
  tab?: string | undefined;
@@ -1402,7 +1396,7 @@ export declare const actionIncreaseFontSize: {
1402
1396
  name: "imageExport" | "help" | "jsonExport";
1403
1397
  } | {
1404
1398
  name: "ttd";
1405
- tab: "text-to-diagram" | "mermaid";
1399
+ tab: "mermaid" | "text-to-diagram";
1406
1400
  } | {
1407
1401
  name: "commandPalette";
1408
1402
  } | {
@@ -1410,7 +1404,7 @@ export declare const actionIncreaseFontSize: {
1410
1404
  sourceElementId: string;
1411
1405
  } | null;
1412
1406
  defaultSidebarDockedPreference: boolean;
1413
- lastPointerDownWith: import("../element/types").PointerType;
1407
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1414
1408
  selectedElementIds: Readonly<{
1415
1409
  [id: string]: true;
1416
1410
  }>;
@@ -1428,7 +1422,7 @@ export declare const actionIncreaseFontSize: {
1428
1422
  duration?: number | undefined;
1429
1423
  } | null;
1430
1424
  zenModeEnabled: boolean;
1431
- theme: import("../element/types").Theme;
1425
+ theme: import("@excalidraw/element/types").Theme;
1432
1426
  gridSize: number;
1433
1427
  gridStep: number;
1434
1428
  gridModeEnabled: boolean;
@@ -1449,7 +1443,7 @@ export declare const actionIncreaseFontSize: {
1449
1443
  [id: string]: true;
1450
1444
  }> | undefined;
1451
1445
  username?: string | null | undefined;
1452
- userState?: import("../constants").UserIdleState | undefined;
1446
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1453
1447
  color?: {
1454
1448
  background: string;
1455
1449
  stroke: string;
@@ -1466,7 +1460,7 @@ export declare const actionIncreaseFontSize: {
1466
1460
  open: boolean;
1467
1461
  panels: number;
1468
1462
  };
1469
- currentChartType: import("../element/types").ChartType;
1463
+ currentChartType: import("@excalidraw/element/types").ChartType;
1470
1464
  pasteDialog: {
1471
1465
  shown: false;
1472
1466
  data: null;
@@ -1474,8 +1468,7 @@ export declare const actionIncreaseFontSize: {
1474
1468
  shown: true;
1475
1469
  data: import("../charts").Spreadsheet;
1476
1470
  };
1477
- pendingImageElementId: string | null;
1478
- showHyperlinkPopup: false | "info" | "editor";
1471
+ showHyperlinkPopup: false | "editor" | "info";
1479
1472
  selectedLinearElement: LinearElementEditor | null;
1480
1473
  snapLines: readonly import("../snapping").SnapLine[];
1481
1474
  originSnapOffset: {
@@ -1487,16 +1480,15 @@ export declare const actionIncreaseFontSize: {
1487
1480
  followedBy: Set<import("../types").SocketId>;
1488
1481
  isCropping: boolean;
1489
1482
  croppingElementId: string | null;
1490
- searchMatches: readonly {
1491
- id: string;
1492
- focus: boolean;
1493
- matchedLines: {
1494
- offsetX: number;
1495
- offsetY: number;
1496
- width: number;
1497
- height: number;
1498
- }[];
1499
- }[];
1483
+ searchMatches: Readonly<{
1484
+ focusedId: string | null;
1485
+ matches: readonly import("../types").SearchMatch[];
1486
+ }> | null;
1487
+ activeLockedId: string | null;
1488
+ lockedMultiSelections: {
1489
+ [groupId: string]: true;
1490
+ };
1491
+ stylesPanelMode: "compact" | "full";
1500
1492
  };
1501
1493
  captureUpdate: "IMMEDIATELY";
1502
1494
  };
@@ -1508,11 +1500,11 @@ export declare const actionChangeFontFamily: {
1508
1500
  name: "changeFontFamily";
1509
1501
  label: string;
1510
1502
  trackEvent: false;
1511
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1503
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1512
1504
  appState: {
1513
1505
  currentItemFontFamily: number;
1514
1506
  currentHoveredFontFamily: number | null;
1515
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1507
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1516
1508
  contextMenu: {
1517
1509
  items: import("../components/ContextMenu").ContextMenuItems;
1518
1510
  top: number;
@@ -1522,17 +1514,17 @@ export declare const actionChangeFontFamily: {
1522
1514
  isLoading: boolean;
1523
1515
  errorMessage: import("react").ReactNode;
1524
1516
  activeEmbeddable: {
1525
- element: import("../element/types").NonDeletedExcalidrawElement;
1526
- state: "hover" | "active";
1517
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1518
+ state: "active" | "hover";
1527
1519
  } | null;
1528
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1529
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1530
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1531
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1520
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1521
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1522
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1523
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1532
1524
  isBindingEnabled: boolean;
1533
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1534
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1535
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1525
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1526
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1527
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1536
1528
  frameRendering: {
1537
1529
  enabled: boolean;
1538
1530
  name: boolean;
@@ -1540,12 +1532,12 @@ export declare const actionChangeFontFamily: {
1540
1532
  clip: boolean;
1541
1533
  };
1542
1534
  editingFrame: string | null;
1543
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1544
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1545
- editingLinearElement: LinearElementEditor | null;
1535
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1536
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1546
1537
  activeTool: {
1547
1538
  lastActiveTool: import("../types").ActiveTool | null;
1548
1539
  locked: boolean;
1540
+ fromSelection: boolean;
1549
1541
  } & import("../types").ActiveTool;
1550
1542
  penMode: boolean;
1551
1543
  penDetected: boolean;
@@ -1555,16 +1547,16 @@ export declare const actionChangeFontFamily: {
1555
1547
  exportScale: number;
1556
1548
  currentItemStrokeColor: string;
1557
1549
  currentItemBackgroundColor: string;
1558
- currentItemFillStyle: import("../element/types").FillStyle;
1550
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1559
1551
  currentItemStrokeWidth: number;
1560
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1552
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1561
1553
  currentItemRoughness: number;
1562
1554
  currentItemOpacity: number;
1563
1555
  currentItemFontSize: number;
1564
1556
  currentItemTextAlign: string;
1565
1557
  currentItemStartArrowhead: Arrowhead | null;
1566
1558
  currentItemEndArrowhead: Arrowhead | null;
1567
- currentItemRoundness: import("../element/types").StrokeRoundness;
1559
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1568
1560
  currentItemArrowType: "round" | "sharp" | "elbow";
1569
1561
  viewBackgroundColor: string;
1570
1562
  scrollX: number;
@@ -1586,7 +1578,7 @@ export declare const actionChangeFontFamily: {
1586
1578
  name: "imageExport" | "help" | "jsonExport";
1587
1579
  } | {
1588
1580
  name: "ttd";
1589
- tab: "text-to-diagram" | "mermaid";
1581
+ tab: "mermaid" | "text-to-diagram";
1590
1582
  } | {
1591
1583
  name: "commandPalette";
1592
1584
  } | {
@@ -1594,7 +1586,7 @@ export declare const actionChangeFontFamily: {
1594
1586
  sourceElementId: string;
1595
1587
  } | null;
1596
1588
  defaultSidebarDockedPreference: boolean;
1597
- lastPointerDownWith: import("../element/types").PointerType;
1589
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1598
1590
  selectedElementIds: Readonly<{
1599
1591
  [id: string]: true;
1600
1592
  }>;
@@ -1612,7 +1604,7 @@ export declare const actionChangeFontFamily: {
1612
1604
  duration?: number | undefined;
1613
1605
  } | null;
1614
1606
  zenModeEnabled: boolean;
1615
- theme: import("../element/types").Theme;
1607
+ theme: import("@excalidraw/element/types").Theme;
1616
1608
  gridSize: number;
1617
1609
  gridStep: number;
1618
1610
  gridModeEnabled: boolean;
@@ -1633,7 +1625,7 @@ export declare const actionChangeFontFamily: {
1633
1625
  [id: string]: true;
1634
1626
  }> | undefined;
1635
1627
  username?: string | null | undefined;
1636
- userState?: import("../constants").UserIdleState | undefined;
1628
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1637
1629
  color?: {
1638
1630
  background: string;
1639
1631
  stroke: string;
@@ -1650,7 +1642,7 @@ export declare const actionChangeFontFamily: {
1650
1642
  open: boolean;
1651
1643
  panels: number;
1652
1644
  };
1653
- currentChartType: import("../element/types").ChartType;
1645
+ currentChartType: import("@excalidraw/element/types").ChartType;
1654
1646
  pasteDialog: {
1655
1647
  shown: false;
1656
1648
  data: null;
@@ -1658,8 +1650,7 @@ export declare const actionChangeFontFamily: {
1658
1650
  shown: true;
1659
1651
  data: import("../charts").Spreadsheet;
1660
1652
  };
1661
- pendingImageElementId: string | null;
1662
- showHyperlinkPopup: false | "info" | "editor";
1653
+ showHyperlinkPopup: false | "editor" | "info";
1663
1654
  selectedLinearElement: LinearElementEditor | null;
1664
1655
  snapLines: readonly import("../snapping").SnapLine[];
1665
1656
  originSnapOffset: {
@@ -1671,16 +1662,15 @@ export declare const actionChangeFontFamily: {
1671
1662
  followedBy: Set<import("../types").SocketId>;
1672
1663
  isCropping: boolean;
1673
1664
  croppingElementId: string | null;
1674
- searchMatches: readonly {
1675
- id: string;
1676
- focus: boolean;
1677
- matchedLines: {
1678
- offsetX: number;
1679
- offsetY: number;
1680
- width: number;
1681
- height: number;
1682
- }[];
1683
- }[];
1665
+ searchMatches: Readonly<{
1666
+ focusedId: string | null;
1667
+ matches: readonly import("../types").SearchMatch[];
1668
+ }> | null;
1669
+ activeLockedId: string | null;
1670
+ lockedMultiSelections: {
1671
+ [groupId: string]: true;
1672
+ };
1673
+ stylesPanelMode: "compact" | "full";
1684
1674
  };
1685
1675
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
1686
1676
  } | {
@@ -1688,7 +1678,7 @@ export declare const actionChangeFontFamily: {
1688
1678
  appState: {
1689
1679
  currentItemFontFamily: number;
1690
1680
  currentHoveredFontFamily: number | null;
1691
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1681
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1692
1682
  contextMenu: {
1693
1683
  items: import("../components/ContextMenu").ContextMenuItems;
1694
1684
  top: number;
@@ -1698,17 +1688,17 @@ export declare const actionChangeFontFamily: {
1698
1688
  isLoading: boolean;
1699
1689
  errorMessage: import("react").ReactNode;
1700
1690
  activeEmbeddable: {
1701
- element: import("../element/types").NonDeletedExcalidrawElement;
1702
- state: "hover" | "active";
1691
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1692
+ state: "active" | "hover";
1703
1693
  } | null;
1704
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1705
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1706
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1707
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1694
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1695
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1696
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1697
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1708
1698
  isBindingEnabled: boolean;
1709
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1710
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1711
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1699
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1700
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1701
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1712
1702
  frameRendering: {
1713
1703
  enabled: boolean;
1714
1704
  name: boolean;
@@ -1716,12 +1706,12 @@ export declare const actionChangeFontFamily: {
1716
1706
  clip: boolean;
1717
1707
  };
1718
1708
  editingFrame: string | null;
1719
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1720
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1721
- editingLinearElement: LinearElementEditor | null;
1709
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1710
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1722
1711
  activeTool: {
1723
1712
  lastActiveTool: import("../types").ActiveTool | null;
1724
1713
  locked: boolean;
1714
+ fromSelection: boolean;
1725
1715
  } & import("../types").ActiveTool;
1726
1716
  penMode: boolean;
1727
1717
  penDetected: boolean;
@@ -1731,16 +1721,16 @@ export declare const actionChangeFontFamily: {
1731
1721
  exportScale: number;
1732
1722
  currentItemStrokeColor: string;
1733
1723
  currentItemBackgroundColor: string;
1734
- currentItemFillStyle: import("../element/types").FillStyle;
1724
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1735
1725
  currentItemStrokeWidth: number;
1736
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1726
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1737
1727
  currentItemRoughness: number;
1738
1728
  currentItemOpacity: number;
1739
1729
  currentItemFontSize: number;
1740
1730
  currentItemTextAlign: string;
1741
1731
  currentItemStartArrowhead: Arrowhead | null;
1742
1732
  currentItemEndArrowhead: Arrowhead | null;
1743
- currentItemRoundness: import("../element/types").StrokeRoundness;
1733
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1744
1734
  currentItemArrowType: "round" | "sharp" | "elbow";
1745
1735
  viewBackgroundColor: string;
1746
1736
  scrollX: number;
@@ -1762,7 +1752,7 @@ export declare const actionChangeFontFamily: {
1762
1752
  name: "imageExport" | "help" | "jsonExport";
1763
1753
  } | {
1764
1754
  name: "ttd";
1765
- tab: "text-to-diagram" | "mermaid";
1755
+ tab: "mermaid" | "text-to-diagram";
1766
1756
  } | {
1767
1757
  name: "commandPalette";
1768
1758
  } | {
@@ -1770,7 +1760,7 @@ export declare const actionChangeFontFamily: {
1770
1760
  sourceElementId: string;
1771
1761
  } | null;
1772
1762
  defaultSidebarDockedPreference: boolean;
1773
- lastPointerDownWith: import("../element/types").PointerType;
1763
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1774
1764
  selectedElementIds: Readonly<{
1775
1765
  [id: string]: true;
1776
1766
  }>;
@@ -1788,7 +1778,7 @@ export declare const actionChangeFontFamily: {
1788
1778
  duration?: number | undefined;
1789
1779
  } | null;
1790
1780
  zenModeEnabled: boolean;
1791
- theme: import("../element/types").Theme;
1781
+ theme: import("@excalidraw/element/types").Theme;
1792
1782
  gridSize: number;
1793
1783
  gridStep: number;
1794
1784
  gridModeEnabled: boolean;
@@ -1809,7 +1799,7 @@ export declare const actionChangeFontFamily: {
1809
1799
  [id: string]: true;
1810
1800
  }> | undefined;
1811
1801
  username?: string | null | undefined;
1812
- userState?: import("../constants").UserIdleState | undefined;
1802
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1813
1803
  color?: {
1814
1804
  background: string;
1815
1805
  stroke: string;
@@ -1826,7 +1816,7 @@ export declare const actionChangeFontFamily: {
1826
1816
  open: boolean;
1827
1817
  panels: number;
1828
1818
  };
1829
- currentChartType: import("../element/types").ChartType;
1819
+ currentChartType: import("@excalidraw/element/types").ChartType;
1830
1820
  pasteDialog: {
1831
1821
  shown: false;
1832
1822
  data: null;
@@ -1834,8 +1824,7 @@ export declare const actionChangeFontFamily: {
1834
1824
  shown: true;
1835
1825
  data: import("../charts").Spreadsheet;
1836
1826
  };
1837
- pendingImageElementId: string | null;
1838
- showHyperlinkPopup: false | "info" | "editor";
1827
+ showHyperlinkPopup: false | "editor" | "info";
1839
1828
  selectedLinearElement: LinearElementEditor | null;
1840
1829
  snapLines: readonly import("../snapping").SnapLine[];
1841
1830
  originSnapOffset: {
@@ -1847,20 +1836,19 @@ export declare const actionChangeFontFamily: {
1847
1836
  followedBy: Set<import("../types").SocketId>;
1848
1837
  isCropping: boolean;
1849
1838
  croppingElementId: string | null;
1850
- searchMatches: readonly {
1851
- id: string;
1852
- focus: boolean;
1853
- matchedLines: {
1854
- offsetX: number;
1855
- offsetY: number;
1856
- width: number;
1857
- height: number;
1858
- }[];
1859
- }[];
1839
+ searchMatches: Readonly<{
1840
+ focusedId: string | null;
1841
+ matches: readonly import("../types").SearchMatch[];
1842
+ }> | null;
1843
+ activeLockedId: string | null;
1844
+ lockedMultiSelections: {
1845
+ [groupId: string]: true;
1846
+ };
1847
+ stylesPanelMode: "compact" | "full";
1860
1848
  };
1861
1849
  captureUpdate: "NEVER";
1862
1850
  };
1863
- PanelComponent: ({ elements, appState, app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1851
+ PanelComponent: ({ elements, appState, app, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1864
1852
  } & {
1865
1853
  keyTest?: undefined;
1866
1854
  };
@@ -1868,7 +1856,7 @@ export declare const actionChangeTextAlign: {
1868
1856
  name: "changeTextAlign";
1869
1857
  label: string;
1870
1858
  trackEvent: false;
1871
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1859
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1872
1860
  elements: ExcalidrawElement[];
1873
1861
  appState: {
1874
1862
  currentItemTextAlign: any;
@@ -1881,17 +1869,17 @@ export declare const actionChangeTextAlign: {
1881
1869
  isLoading: boolean;
1882
1870
  errorMessage: import("react").ReactNode;
1883
1871
  activeEmbeddable: {
1884
- element: import("../element/types").NonDeletedExcalidrawElement;
1885
- state: "hover" | "active";
1872
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1873
+ state: "active" | "hover";
1886
1874
  } | null;
1887
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1888
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1889
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1890
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1875
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1876
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1877
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1878
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1891
1879
  isBindingEnabled: boolean;
1892
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1893
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1894
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1880
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1881
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1882
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1895
1883
  frameRendering: {
1896
1884
  enabled: boolean;
1897
1885
  name: boolean;
@@ -1899,12 +1887,12 @@ export declare const actionChangeTextAlign: {
1899
1887
  clip: boolean;
1900
1888
  };
1901
1889
  editingFrame: string | null;
1902
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1903
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1904
- editingLinearElement: LinearElementEditor | null;
1890
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1891
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1905
1892
  activeTool: {
1906
1893
  lastActiveTool: import("../types").ActiveTool | null;
1907
1894
  locked: boolean;
1895
+ fromSelection: boolean;
1908
1896
  } & import("../types").ActiveTool;
1909
1897
  penMode: boolean;
1910
1898
  penDetected: boolean;
@@ -1914,9 +1902,9 @@ export declare const actionChangeTextAlign: {
1914
1902
  exportScale: number;
1915
1903
  currentItemStrokeColor: string;
1916
1904
  currentItemBackgroundColor: string;
1917
- currentItemFillStyle: import("../element/types").FillStyle;
1905
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1918
1906
  currentItemStrokeWidth: number;
1919
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1907
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1920
1908
  currentItemRoughness: number;
1921
1909
  currentItemOpacity: number;
1922
1910
  currentItemFontFamily: number;
@@ -1924,7 +1912,7 @@ export declare const actionChangeTextAlign: {
1924
1912
  currentItemStartArrowhead: Arrowhead | null;
1925
1913
  currentItemEndArrowhead: Arrowhead | null;
1926
1914
  currentHoveredFontFamily: number | null;
1927
- currentItemRoundness: import("../element/types").StrokeRoundness;
1915
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1928
1916
  currentItemArrowType: "round" | "sharp" | "elbow";
1929
1917
  viewBackgroundColor: string;
1930
1918
  scrollX: number;
@@ -1938,7 +1926,7 @@ export declare const actionChangeTextAlign: {
1938
1926
  value: import("../types").NormalizedZoomValue;
1939
1927
  }>;
1940
1928
  openMenu: "canvas" | "shape" | null;
1941
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1929
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1942
1930
  openSidebar: {
1943
1931
  name: string;
1944
1932
  tab?: string | undefined;
@@ -1947,7 +1935,7 @@ export declare const actionChangeTextAlign: {
1947
1935
  name: "imageExport" | "help" | "jsonExport";
1948
1936
  } | {
1949
1937
  name: "ttd";
1950
- tab: "text-to-diagram" | "mermaid";
1938
+ tab: "mermaid" | "text-to-diagram";
1951
1939
  } | {
1952
1940
  name: "commandPalette";
1953
1941
  } | {
@@ -1955,7 +1943,7 @@ export declare const actionChangeTextAlign: {
1955
1943
  sourceElementId: string;
1956
1944
  } | null;
1957
1945
  defaultSidebarDockedPreference: boolean;
1958
- lastPointerDownWith: import("../element/types").PointerType;
1946
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1959
1947
  selectedElementIds: Readonly<{
1960
1948
  [id: string]: true;
1961
1949
  }>;
@@ -1973,7 +1961,7 @@ export declare const actionChangeTextAlign: {
1973
1961
  duration?: number | undefined;
1974
1962
  } | null;
1975
1963
  zenModeEnabled: boolean;
1976
- theme: import("../element/types").Theme;
1964
+ theme: import("@excalidraw/element/types").Theme;
1977
1965
  gridSize: number;
1978
1966
  gridStep: number;
1979
1967
  gridModeEnabled: boolean;
@@ -1994,7 +1982,7 @@ export declare const actionChangeTextAlign: {
1994
1982
  [id: string]: true;
1995
1983
  }> | undefined;
1996
1984
  username?: string | null | undefined;
1997
- userState?: import("../constants").UserIdleState | undefined;
1985
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1998
1986
  color?: {
1999
1987
  background: string;
2000
1988
  stroke: string;
@@ -2011,7 +1999,7 @@ export declare const actionChangeTextAlign: {
2011
1999
  open: boolean;
2012
2000
  panels: number;
2013
2001
  };
2014
- currentChartType: import("../element/types").ChartType;
2002
+ currentChartType: import("@excalidraw/element/types").ChartType;
2015
2003
  pasteDialog: {
2016
2004
  shown: false;
2017
2005
  data: null;
@@ -2019,8 +2007,7 @@ export declare const actionChangeTextAlign: {
2019
2007
  shown: true;
2020
2008
  data: import("../charts").Spreadsheet;
2021
2009
  };
2022
- pendingImageElementId: string | null;
2023
- showHyperlinkPopup: false | "info" | "editor";
2010
+ showHyperlinkPopup: false | "editor" | "info";
2024
2011
  selectedLinearElement: LinearElementEditor | null;
2025
2012
  snapLines: readonly import("../snapping").SnapLine[];
2026
2013
  originSnapOffset: {
@@ -2032,20 +2019,19 @@ export declare const actionChangeTextAlign: {
2032
2019
  followedBy: Set<import("../types").SocketId>;
2033
2020
  isCropping: boolean;
2034
2021
  croppingElementId: string | null;
2035
- searchMatches: readonly {
2036
- id: string;
2037
- focus: boolean;
2038
- matchedLines: {
2039
- offsetX: number;
2040
- offsetY: number;
2041
- width: number;
2042
- height: number;
2043
- }[];
2044
- }[];
2022
+ searchMatches: Readonly<{
2023
+ focusedId: string | null;
2024
+ matches: readonly import("../types").SearchMatch[];
2025
+ }> | null;
2026
+ activeLockedId: string | null;
2027
+ lockedMultiSelections: {
2028
+ [groupId: string]: true;
2029
+ };
2030
+ stylesPanelMode: "compact" | "full";
2045
2031
  };
2046
2032
  captureUpdate: "IMMEDIATELY";
2047
2033
  };
2048
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2034
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2049
2035
  } & {
2050
2036
  keyTest?: undefined;
2051
2037
  };
@@ -2055,7 +2041,7 @@ export declare const actionChangeVerticalAlign: {
2055
2041
  trackEvent: {
2056
2042
  category: "element";
2057
2043
  };
2058
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2044
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2059
2045
  elements: ExcalidrawElement[];
2060
2046
  appState: {
2061
2047
  contextMenu: {
@@ -2067,17 +2053,17 @@ export declare const actionChangeVerticalAlign: {
2067
2053
  isLoading: boolean;
2068
2054
  errorMessage: import("react").ReactNode;
2069
2055
  activeEmbeddable: {
2070
- element: import("../element/types").NonDeletedExcalidrawElement;
2071
- state: "hover" | "active";
2056
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2057
+ state: "active" | "hover";
2072
2058
  } | null;
2073
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2074
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2075
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2076
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2059
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2060
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2061
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2062
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2077
2063
  isBindingEnabled: boolean;
2078
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2079
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2080
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2064
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2065
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2066
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2081
2067
  frameRendering: {
2082
2068
  enabled: boolean;
2083
2069
  name: boolean;
@@ -2085,12 +2071,12 @@ export declare const actionChangeVerticalAlign: {
2085
2071
  clip: boolean;
2086
2072
  };
2087
2073
  editingFrame: string | null;
2088
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2089
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2090
- editingLinearElement: LinearElementEditor | null;
2074
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2075
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2091
2076
  activeTool: {
2092
2077
  lastActiveTool: import("../types").ActiveTool | null;
2093
2078
  locked: boolean;
2079
+ fromSelection: boolean;
2094
2080
  } & import("../types").ActiveTool;
2095
2081
  penMode: boolean;
2096
2082
  penDetected: boolean;
@@ -2100,9 +2086,9 @@ export declare const actionChangeVerticalAlign: {
2100
2086
  exportScale: number;
2101
2087
  currentItemStrokeColor: string;
2102
2088
  currentItemBackgroundColor: string;
2103
- currentItemFillStyle: import("../element/types").FillStyle;
2089
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2104
2090
  currentItemStrokeWidth: number;
2105
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2091
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2106
2092
  currentItemRoughness: number;
2107
2093
  currentItemOpacity: number;
2108
2094
  currentItemFontFamily: number;
@@ -2111,7 +2097,7 @@ export declare const actionChangeVerticalAlign: {
2111
2097
  currentItemStartArrowhead: Arrowhead | null;
2112
2098
  currentItemEndArrowhead: Arrowhead | null;
2113
2099
  currentHoveredFontFamily: number | null;
2114
- currentItemRoundness: import("../element/types").StrokeRoundness;
2100
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2115
2101
  currentItemArrowType: "round" | "sharp" | "elbow";
2116
2102
  viewBackgroundColor: string;
2117
2103
  scrollX: number;
@@ -2125,7 +2111,7 @@ export declare const actionChangeVerticalAlign: {
2125
2111
  value: import("../types").NormalizedZoomValue;
2126
2112
  }>;
2127
2113
  openMenu: "canvas" | "shape" | null;
2128
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2114
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2129
2115
  openSidebar: {
2130
2116
  name: string;
2131
2117
  tab?: string | undefined;
@@ -2134,7 +2120,7 @@ export declare const actionChangeVerticalAlign: {
2134
2120
  name: "imageExport" | "help" | "jsonExport";
2135
2121
  } | {
2136
2122
  name: "ttd";
2137
- tab: "text-to-diagram" | "mermaid";
2123
+ tab: "mermaid" | "text-to-diagram";
2138
2124
  } | {
2139
2125
  name: "commandPalette";
2140
2126
  } | {
@@ -2142,7 +2128,7 @@ export declare const actionChangeVerticalAlign: {
2142
2128
  sourceElementId: string;
2143
2129
  } | null;
2144
2130
  defaultSidebarDockedPreference: boolean;
2145
- lastPointerDownWith: import("../element/types").PointerType;
2131
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2146
2132
  selectedElementIds: Readonly<{
2147
2133
  [id: string]: true;
2148
2134
  }>;
@@ -2160,7 +2146,7 @@ export declare const actionChangeVerticalAlign: {
2160
2146
  duration?: number | undefined;
2161
2147
  } | null;
2162
2148
  zenModeEnabled: boolean;
2163
- theme: import("../element/types").Theme;
2149
+ theme: import("@excalidraw/element/types").Theme;
2164
2150
  gridSize: number;
2165
2151
  gridStep: number;
2166
2152
  gridModeEnabled: boolean;
@@ -2181,7 +2167,7 @@ export declare const actionChangeVerticalAlign: {
2181
2167
  [id: string]: true;
2182
2168
  }> | undefined;
2183
2169
  username?: string | null | undefined;
2184
- userState?: import("../constants").UserIdleState | undefined;
2170
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2185
2171
  color?: {
2186
2172
  background: string;
2187
2173
  stroke: string;
@@ -2198,7 +2184,7 @@ export declare const actionChangeVerticalAlign: {
2198
2184
  open: boolean;
2199
2185
  panels: number;
2200
2186
  };
2201
- currentChartType: import("../element/types").ChartType;
2187
+ currentChartType: import("@excalidraw/element/types").ChartType;
2202
2188
  pasteDialog: {
2203
2189
  shown: false;
2204
2190
  data: null;
@@ -2206,8 +2192,7 @@ export declare const actionChangeVerticalAlign: {
2206
2192
  shown: true;
2207
2193
  data: import("../charts").Spreadsheet;
2208
2194
  };
2209
- pendingImageElementId: string | null;
2210
- showHyperlinkPopup: false | "info" | "editor";
2195
+ showHyperlinkPopup: false | "editor" | "info";
2211
2196
  selectedLinearElement: LinearElementEditor | null;
2212
2197
  snapLines: readonly import("../snapping").SnapLine[];
2213
2198
  originSnapOffset: {
@@ -2219,20 +2204,19 @@ export declare const actionChangeVerticalAlign: {
2219
2204
  followedBy: Set<import("../types").SocketId>;
2220
2205
  isCropping: boolean;
2221
2206
  croppingElementId: string | null;
2222
- searchMatches: readonly {
2223
- id: string;
2224
- focus: boolean;
2225
- matchedLines: {
2226
- offsetX: number;
2227
- offsetY: number;
2228
- width: number;
2229
- height: number;
2230
- }[];
2231
- }[];
2207
+ searchMatches: Readonly<{
2208
+ focusedId: string | null;
2209
+ matches: readonly import("../types").SearchMatch[];
2210
+ }> | null;
2211
+ activeLockedId: string | null;
2212
+ lockedMultiSelections: {
2213
+ [groupId: string]: true;
2214
+ };
2215
+ stylesPanelMode: "compact" | "full";
2232
2216
  };
2233
2217
  captureUpdate: "IMMEDIATELY";
2234
2218
  };
2235
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2219
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2236
2220
  } & {
2237
2221
  keyTest?: undefined;
2238
2222
  };
@@ -2240,7 +2224,7 @@ export declare const actionChangeRoundness: {
2240
2224
  name: "changeRoundness";
2241
2225
  label: string;
2242
2226
  trackEvent: false;
2243
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
2227
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
2244
2228
  elements: ExcalidrawElement[];
2245
2229
  appState: {
2246
2230
  currentItemRoundness: any;
@@ -2253,17 +2237,17 @@ export declare const actionChangeRoundness: {
2253
2237
  isLoading: boolean;
2254
2238
  errorMessage: import("react").ReactNode;
2255
2239
  activeEmbeddable: {
2256
- element: import("../element/types").NonDeletedExcalidrawElement;
2257
- state: "hover" | "active";
2240
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2241
+ state: "active" | "hover";
2258
2242
  } | null;
2259
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2260
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2261
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2262
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2243
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2244
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2245
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2246
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2263
2247
  isBindingEnabled: boolean;
2264
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2265
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2266
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2248
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2249
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2250
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2267
2251
  frameRendering: {
2268
2252
  enabled: boolean;
2269
2253
  name: boolean;
@@ -2271,12 +2255,12 @@ export declare const actionChangeRoundness: {
2271
2255
  clip: boolean;
2272
2256
  };
2273
2257
  editingFrame: string | null;
2274
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2275
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2276
- editingLinearElement: LinearElementEditor | null;
2258
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2259
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2277
2260
  activeTool: {
2278
2261
  lastActiveTool: import("../types").ActiveTool | null;
2279
2262
  locked: boolean;
2263
+ fromSelection: boolean;
2280
2264
  } & import("../types").ActiveTool;
2281
2265
  penMode: boolean;
2282
2266
  penDetected: boolean;
@@ -2286,9 +2270,9 @@ export declare const actionChangeRoundness: {
2286
2270
  exportScale: number;
2287
2271
  currentItemStrokeColor: string;
2288
2272
  currentItemBackgroundColor: string;
2289
- currentItemFillStyle: import("../element/types").FillStyle;
2273
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2290
2274
  currentItemStrokeWidth: number;
2291
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2275
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2292
2276
  currentItemRoughness: number;
2293
2277
  currentItemOpacity: number;
2294
2278
  currentItemFontFamily: number;
@@ -2310,7 +2294,7 @@ export declare const actionChangeRoundness: {
2310
2294
  value: import("../types").NormalizedZoomValue;
2311
2295
  }>;
2312
2296
  openMenu: "canvas" | "shape" | null;
2313
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2297
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2314
2298
  openSidebar: {
2315
2299
  name: string;
2316
2300
  tab?: string | undefined;
@@ -2319,7 +2303,7 @@ export declare const actionChangeRoundness: {
2319
2303
  name: "imageExport" | "help" | "jsonExport";
2320
2304
  } | {
2321
2305
  name: "ttd";
2322
- tab: "text-to-diagram" | "mermaid";
2306
+ tab: "mermaid" | "text-to-diagram";
2323
2307
  } | {
2324
2308
  name: "commandPalette";
2325
2309
  } | {
@@ -2327,7 +2311,7 @@ export declare const actionChangeRoundness: {
2327
2311
  sourceElementId: string;
2328
2312
  } | null;
2329
2313
  defaultSidebarDockedPreference: boolean;
2330
- lastPointerDownWith: import("../element/types").PointerType;
2314
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2331
2315
  selectedElementIds: Readonly<{
2332
2316
  [id: string]: true;
2333
2317
  }>;
@@ -2345,7 +2329,7 @@ export declare const actionChangeRoundness: {
2345
2329
  duration?: number | undefined;
2346
2330
  } | null;
2347
2331
  zenModeEnabled: boolean;
2348
- theme: import("../element/types").Theme;
2332
+ theme: import("@excalidraw/element/types").Theme;
2349
2333
  gridSize: number;
2350
2334
  gridStep: number;
2351
2335
  gridModeEnabled: boolean;
@@ -2366,7 +2350,7 @@ export declare const actionChangeRoundness: {
2366
2350
  [id: string]: true;
2367
2351
  }> | undefined;
2368
2352
  username?: string | null | undefined;
2369
- userState?: import("../constants").UserIdleState | undefined;
2353
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2370
2354
  color?: {
2371
2355
  background: string;
2372
2356
  stroke: string;
@@ -2383,7 +2367,7 @@ export declare const actionChangeRoundness: {
2383
2367
  open: boolean;
2384
2368
  panels: number;
2385
2369
  };
2386
- currentChartType: import("../element/types").ChartType;
2370
+ currentChartType: import("@excalidraw/element/types").ChartType;
2387
2371
  pasteDialog: {
2388
2372
  shown: false;
2389
2373
  data: null;
@@ -2391,8 +2375,7 @@ export declare const actionChangeRoundness: {
2391
2375
  shown: true;
2392
2376
  data: import("../charts").Spreadsheet;
2393
2377
  };
2394
- pendingImageElementId: string | null;
2395
- showHyperlinkPopup: false | "info" | "editor";
2378
+ showHyperlinkPopup: false | "editor" | "info";
2396
2379
  selectedLinearElement: LinearElementEditor | null;
2397
2380
  snapLines: readonly import("../snapping").SnapLine[];
2398
2381
  originSnapOffset: {
@@ -2404,20 +2387,19 @@ export declare const actionChangeRoundness: {
2404
2387
  followedBy: Set<import("../types").SocketId>;
2405
2388
  isCropping: boolean;
2406
2389
  croppingElementId: string | null;
2407
- searchMatches: readonly {
2408
- id: string;
2409
- focus: boolean;
2410
- matchedLines: {
2411
- offsetX: number;
2412
- offsetY: number;
2413
- width: number;
2414
- height: number;
2415
- }[];
2416
- }[];
2390
+ searchMatches: Readonly<{
2391
+ focusedId: string | null;
2392
+ matches: readonly import("../types").SearchMatch[];
2393
+ }> | null;
2394
+ activeLockedId: string | null;
2395
+ lockedMultiSelections: {
2396
+ [groupId: string]: true;
2397
+ };
2398
+ stylesPanelMode: "compact" | "full";
2417
2399
  };
2418
2400
  captureUpdate: "IMMEDIATELY";
2419
2401
  };
2420
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2402
+ PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2421
2403
  } & {
2422
2404
  keyTest?: undefined;
2423
2405
  };
@@ -2425,7 +2407,7 @@ export declare const actionChangeArrowhead: {
2425
2407
  name: "changeArrowhead";
2426
2408
  label: string;
2427
2409
  trackEvent: false;
2428
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
2410
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
2429
2411
  position: "start" | "end";
2430
2412
  type: Arrowhead;
2431
2413
  }) => {
@@ -2440,17 +2422,17 @@ export declare const actionChangeArrowhead: {
2440
2422
  isLoading: boolean;
2441
2423
  errorMessage: import("react").ReactNode;
2442
2424
  activeEmbeddable: {
2443
- element: import("../element/types").NonDeletedExcalidrawElement;
2444
- state: "hover" | "active";
2425
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2426
+ state: "active" | "hover";
2445
2427
  } | null;
2446
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2447
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2448
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2449
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2428
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2429
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2430
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2431
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2450
2432
  isBindingEnabled: boolean;
2451
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2452
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2453
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2433
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2434
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2435
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2454
2436
  frameRendering: {
2455
2437
  enabled: boolean;
2456
2438
  name: boolean;
@@ -2458,12 +2440,12 @@ export declare const actionChangeArrowhead: {
2458
2440
  clip: boolean;
2459
2441
  };
2460
2442
  editingFrame: string | null;
2461
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2462
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2463
- editingLinearElement: LinearElementEditor | null;
2443
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2444
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2464
2445
  activeTool: {
2465
2446
  lastActiveTool: import("../types").ActiveTool | null;
2466
2447
  locked: boolean;
2448
+ fromSelection: boolean;
2467
2449
  } & import("../types").ActiveTool;
2468
2450
  penMode: boolean;
2469
2451
  penDetected: boolean;
@@ -2473,9 +2455,9 @@ export declare const actionChangeArrowhead: {
2473
2455
  exportScale: number;
2474
2456
  currentItemStrokeColor: string;
2475
2457
  currentItemBackgroundColor: string;
2476
- currentItemFillStyle: import("../element/types").FillStyle;
2458
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2477
2459
  currentItemStrokeWidth: number;
2478
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2460
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2479
2461
  currentItemRoughness: number;
2480
2462
  currentItemOpacity: number;
2481
2463
  currentItemFontFamily: number;
@@ -2484,7 +2466,7 @@ export declare const actionChangeArrowhead: {
2484
2466
  currentItemStartArrowhead: Arrowhead | null;
2485
2467
  currentItemEndArrowhead: Arrowhead | null;
2486
2468
  currentHoveredFontFamily: number | null;
2487
- currentItemRoundness: import("../element/types").StrokeRoundness;
2469
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2488
2470
  currentItemArrowType: "round" | "sharp" | "elbow";
2489
2471
  viewBackgroundColor: string;
2490
2472
  scrollX: number;
@@ -2498,7 +2480,7 @@ export declare const actionChangeArrowhead: {
2498
2480
  value: import("../types").NormalizedZoomValue;
2499
2481
  }>;
2500
2482
  openMenu: "canvas" | "shape" | null;
2501
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2483
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2502
2484
  openSidebar: {
2503
2485
  name: string;
2504
2486
  tab?: string | undefined;
@@ -2507,7 +2489,7 @@ export declare const actionChangeArrowhead: {
2507
2489
  name: "imageExport" | "help" | "jsonExport";
2508
2490
  } | {
2509
2491
  name: "ttd";
2510
- tab: "text-to-diagram" | "mermaid";
2492
+ tab: "mermaid" | "text-to-diagram";
2511
2493
  } | {
2512
2494
  name: "commandPalette";
2513
2495
  } | {
@@ -2515,7 +2497,7 @@ export declare const actionChangeArrowhead: {
2515
2497
  sourceElementId: string;
2516
2498
  } | null;
2517
2499
  defaultSidebarDockedPreference: boolean;
2518
- lastPointerDownWith: import("../element/types").PointerType;
2500
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2519
2501
  selectedElementIds: Readonly<{
2520
2502
  [id: string]: true;
2521
2503
  }>;
@@ -2533,7 +2515,7 @@ export declare const actionChangeArrowhead: {
2533
2515
  duration?: number | undefined;
2534
2516
  } | null;
2535
2517
  zenModeEnabled: boolean;
2536
- theme: import("../element/types").Theme;
2518
+ theme: import("@excalidraw/element/types").Theme;
2537
2519
  gridSize: number;
2538
2520
  gridStep: number;
2539
2521
  gridModeEnabled: boolean;
@@ -2554,7 +2536,7 @@ export declare const actionChangeArrowhead: {
2554
2536
  [id: string]: true;
2555
2537
  }> | undefined;
2556
2538
  username?: string | null | undefined;
2557
- userState?: import("../constants").UserIdleState | undefined;
2539
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2558
2540
  color?: {
2559
2541
  background: string;
2560
2542
  stroke: string;
@@ -2571,7 +2553,7 @@ export declare const actionChangeArrowhead: {
2571
2553
  open: boolean;
2572
2554
  panels: number;
2573
2555
  };
2574
- currentChartType: import("../element/types").ChartType;
2556
+ currentChartType: import("@excalidraw/element/types").ChartType;
2575
2557
  pasteDialog: {
2576
2558
  shown: false;
2577
2559
  data: null;
@@ -2579,8 +2561,7 @@ export declare const actionChangeArrowhead: {
2579
2561
  shown: true;
2580
2562
  data: import("../charts").Spreadsheet;
2581
2563
  };
2582
- pendingImageElementId: string | null;
2583
- showHyperlinkPopup: false | "info" | "editor";
2564
+ showHyperlinkPopup: false | "editor" | "info";
2584
2565
  selectedLinearElement: LinearElementEditor | null;
2585
2566
  snapLines: readonly import("../snapping").SnapLine[];
2586
2567
  originSnapOffset: {
@@ -2592,20 +2573,28 @@ export declare const actionChangeArrowhead: {
2592
2573
  followedBy: Set<import("../types").SocketId>;
2593
2574
  isCropping: boolean;
2594
2575
  croppingElementId: string | null;
2595
- searchMatches: readonly {
2596
- id: string;
2597
- focus: boolean;
2598
- matchedLines: {
2599
- offsetX: number;
2600
- offsetY: number;
2601
- width: number;
2602
- height: number;
2603
- }[];
2604
- }[];
2576
+ searchMatches: Readonly<{
2577
+ focusedId: string | null;
2578
+ matches: readonly import("../types").SearchMatch[];
2579
+ }> | null;
2580
+ activeLockedId: string | null;
2581
+ lockedMultiSelections: {
2582
+ [groupId: string]: true;
2583
+ };
2584
+ stylesPanelMode: "compact" | "full";
2605
2585
  };
2606
2586
  captureUpdate: "IMMEDIATELY";
2607
2587
  };
2608
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2588
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2589
+ } & {
2590
+ keyTest?: undefined;
2591
+ };
2592
+ export declare const actionChangeArrowProperties: {
2593
+ name: "changeArrowProperties";
2594
+ label: string;
2595
+ trackEvent: false;
2596
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => false;
2597
+ PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2609
2598
  } & {
2610
2599
  keyTest?: undefined;
2611
2600
  };
@@ -2613,7 +2602,7 @@ export declare const actionChangeArrowType: {
2613
2602
  name: "changeArrowType";
2614
2603
  label: string;
2615
2604
  trackEvent: false;
2616
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2605
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2617
2606
  elements: ExcalidrawElement[];
2618
2607
  appState: {
2619
2608
  currentItemArrowType: any;
@@ -2626,17 +2615,17 @@ export declare const actionChangeArrowType: {
2626
2615
  isLoading: boolean;
2627
2616
  errorMessage: import("react").ReactNode;
2628
2617
  activeEmbeddable: {
2629
- element: import("../element/types").NonDeletedExcalidrawElement;
2630
- state: "hover" | "active";
2618
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2619
+ state: "active" | "hover";
2631
2620
  } | null;
2632
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2633
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2634
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2635
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2621
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2622
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2623
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2624
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2636
2625
  isBindingEnabled: boolean;
2637
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2638
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2639
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2626
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2627
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2628
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2640
2629
  frameRendering: {
2641
2630
  enabled: boolean;
2642
2631
  name: boolean;
@@ -2644,12 +2633,12 @@ export declare const actionChangeArrowType: {
2644
2633
  clip: boolean;
2645
2634
  };
2646
2635
  editingFrame: string | null;
2647
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2648
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2649
- editingLinearElement: LinearElementEditor | null;
2636
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2637
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2650
2638
  activeTool: {
2651
2639
  lastActiveTool: import("../types").ActiveTool | null;
2652
2640
  locked: boolean;
2641
+ fromSelection: boolean;
2653
2642
  } & import("../types").ActiveTool;
2654
2643
  penMode: boolean;
2655
2644
  penDetected: boolean;
@@ -2659,9 +2648,9 @@ export declare const actionChangeArrowType: {
2659
2648
  exportScale: number;
2660
2649
  currentItemStrokeColor: string;
2661
2650
  currentItemBackgroundColor: string;
2662
- currentItemFillStyle: import("../element/types").FillStyle;
2651
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2663
2652
  currentItemStrokeWidth: number;
2664
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2653
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2665
2654
  currentItemRoughness: number;
2666
2655
  currentItemOpacity: number;
2667
2656
  currentItemFontFamily: number;
@@ -2670,7 +2659,7 @@ export declare const actionChangeArrowType: {
2670
2659
  currentItemStartArrowhead: Arrowhead | null;
2671
2660
  currentItemEndArrowhead: Arrowhead | null;
2672
2661
  currentHoveredFontFamily: number | null;
2673
- currentItemRoundness: import("../element/types").StrokeRoundness;
2662
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2674
2663
  viewBackgroundColor: string;
2675
2664
  scrollX: number;
2676
2665
  scrollY: number;
@@ -2683,7 +2672,7 @@ export declare const actionChangeArrowType: {
2683
2672
  value: import("../types").NormalizedZoomValue;
2684
2673
  }>;
2685
2674
  openMenu: "canvas" | "shape" | null;
2686
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2675
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2687
2676
  openSidebar: {
2688
2677
  name: string;
2689
2678
  tab?: string | undefined;
@@ -2692,7 +2681,7 @@ export declare const actionChangeArrowType: {
2692
2681
  name: "imageExport" | "help" | "jsonExport";
2693
2682
  } | {
2694
2683
  name: "ttd";
2695
- tab: "text-to-diagram" | "mermaid";
2684
+ tab: "mermaid" | "text-to-diagram";
2696
2685
  } | {
2697
2686
  name: "commandPalette";
2698
2687
  } | {
@@ -2700,7 +2689,7 @@ export declare const actionChangeArrowType: {
2700
2689
  sourceElementId: string;
2701
2690
  } | null;
2702
2691
  defaultSidebarDockedPreference: boolean;
2703
- lastPointerDownWith: import("../element/types").PointerType;
2692
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2704
2693
  selectedElementIds: Readonly<{
2705
2694
  [id: string]: true;
2706
2695
  }>;
@@ -2718,7 +2707,7 @@ export declare const actionChangeArrowType: {
2718
2707
  duration?: number | undefined;
2719
2708
  } | null;
2720
2709
  zenModeEnabled: boolean;
2721
- theme: import("../element/types").Theme;
2710
+ theme: import("@excalidraw/element/types").Theme;
2722
2711
  gridSize: number;
2723
2712
  gridStep: number;
2724
2713
  gridModeEnabled: boolean;
@@ -2739,7 +2728,7 @@ export declare const actionChangeArrowType: {
2739
2728
  [id: string]: true;
2740
2729
  }> | undefined;
2741
2730
  username?: string | null | undefined;
2742
- userState?: import("../constants").UserIdleState | undefined;
2731
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
2743
2732
  color?: {
2744
2733
  background: string;
2745
2734
  stroke: string;
@@ -2756,7 +2745,7 @@ export declare const actionChangeArrowType: {
2756
2745
  open: boolean;
2757
2746
  panels: number;
2758
2747
  };
2759
- currentChartType: import("../element/types").ChartType;
2748
+ currentChartType: import("@excalidraw/element/types").ChartType;
2760
2749
  pasteDialog: {
2761
2750
  shown: false;
2762
2751
  data: null;
@@ -2764,8 +2753,7 @@ export declare const actionChangeArrowType: {
2764
2753
  shown: true;
2765
2754
  data: import("../charts").Spreadsheet;
2766
2755
  };
2767
- pendingImageElementId: string | null;
2768
- showHyperlinkPopup: false | "info" | "editor";
2756
+ showHyperlinkPopup: false | "editor" | "info";
2769
2757
  selectedLinearElement: LinearElementEditor | null;
2770
2758
  snapLines: readonly import("../snapping").SnapLine[];
2771
2759
  originSnapOffset: {
@@ -2777,20 +2765,19 @@ export declare const actionChangeArrowType: {
2777
2765
  followedBy: Set<import("../types").SocketId>;
2778
2766
  isCropping: boolean;
2779
2767
  croppingElementId: string | null;
2780
- searchMatches: readonly {
2781
- id: string;
2782
- focus: boolean;
2783
- matchedLines: {
2784
- offsetX: number;
2785
- offsetY: number;
2786
- width: number;
2787
- height: number;
2788
- }[];
2789
- }[];
2768
+ searchMatches: Readonly<{
2769
+ focusedId: string | null;
2770
+ matches: readonly import("../types").SearchMatch[];
2771
+ }> | null;
2772
+ activeLockedId: string | null;
2773
+ lockedMultiSelections: {
2774
+ [groupId: string]: true;
2775
+ };
2776
+ stylesPanelMode: "compact" | "full";
2790
2777
  };
2791
2778
  captureUpdate: "IMMEDIATELY";
2792
2779
  };
2793
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2780
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2794
2781
  } & {
2795
2782
  keyTest?: undefined;
2796
2783
  };