@excalidraw/common 0.18.0-d9e8a33 → 0.18.0-dabd83c

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 (253) hide show
  1. package/dist/dev/index.js +237 -104
  2. package/dist/dev/index.js.map +3 -3
  3. package/dist/prod/index.js +3 -3
  4. package/dist/types/common/src/colors.d.ts +23 -1
  5. package/dist/types/common/src/constants.d.ts +68 -7
  6. package/dist/types/common/src/keys.d.ts +6 -0
  7. package/dist/types/common/src/points.d.ts +1 -1
  8. package/dist/types/common/src/random.d.ts +7 -0
  9. package/dist/types/common/src/utils.d.ts +13 -44
  10. package/dist/types/element/src/Scene.d.ts +7 -5
  11. package/dist/types/element/src/align.d.ts +5 -2
  12. package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
  13. package/dist/types/element/src/arrows/focus.d.ts +5 -2
  14. package/dist/types/element/src/binding.d.ts +90 -13
  15. package/dist/types/element/src/bounds.d.ts +28 -7
  16. package/dist/types/element/src/bucketFill.d.ts +110 -0
  17. package/dist/types/element/src/collision.d.ts +21 -5
  18. package/dist/types/element/src/comparisons.d.ts +8 -5
  19. package/dist/types/element/src/convertToShape.d.ts +23 -0
  20. package/dist/types/element/src/cropElement.d.ts +36 -4
  21. package/dist/types/element/src/delta.d.ts +30 -2
  22. package/dist/types/element/src/distribute.d.ts +5 -2
  23. package/dist/types/element/src/dragElements.d.ts +34 -2
  24. package/dist/types/element/src/duplicate.d.ts +64 -3
  25. package/dist/types/element/src/elbowArrow.d.ts +5 -0
  26. package/dist/types/element/src/embeddable.d.ts +3 -2
  27. package/dist/types/element/src/flowchart.d.ts +9 -11
  28. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  29. package/dist/types/element/src/frame.d.ts +30 -11
  30. package/dist/types/element/src/groups.d.ts +10 -15
  31. package/dist/types/element/src/image.d.ts +5 -2
  32. package/dist/types/element/src/index.d.ts +7 -1
  33. package/dist/types/element/src/linearElementEditor.d.ts +31 -11
  34. package/dist/types/element/src/listMarker.d.ts +39 -0
  35. package/dist/types/element/src/mutateElement.d.ts +1 -1
  36. package/dist/types/element/src/newElement.d.ts +55 -3
  37. package/dist/types/element/src/renderElement.d.ts +31 -7
  38. package/dist/types/element/src/renderEnvironment.d.ts +66 -0
  39. package/dist/types/element/src/resizeElements.d.ts +14 -4
  40. package/dist/types/element/src/selection.d.ts +7 -13
  41. package/dist/types/element/src/shape.d.ts +29 -1
  42. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  43. package/dist/types/element/src/sortElements.d.ts +10 -0
  44. package/dist/types/element/src/stickyNote.d.ts +191 -0
  45. package/dist/types/element/src/textElement.d.ts +22 -10
  46. package/dist/types/element/src/textMeasurements.d.ts +15 -11
  47. package/dist/types/element/src/textWrapping.d.ts +3 -2
  48. package/dist/types/element/src/transform.d.ts +31 -8
  49. package/dist/types/element/src/typeChecks.d.ts +29 -27
  50. package/dist/types/element/src/types.d.ts +43 -7
  51. package/dist/types/element/src/utils.d.ts +15 -4
  52. package/dist/types/element/src/zindex.d.ts +2 -2
  53. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +98 -18
  54. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  55. package/dist/types/excalidraw/actions/actionBoundText.d.ts +79 -204
  56. package/dist/types/excalidraw/actions/actionCanvas.d.ts +306 -951
  57. package/dist/types/excalidraw/actions/actionClipboard.d.ts +68 -12
  58. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +34 -6
  59. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -521
  60. package/dist/types/excalidraw/actions/actionDeselect.d.ts +35 -7
  61. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  62. package/dist/types/excalidraw/actions/actionElementLink.d.ts +34 -6
  63. package/dist/types/excalidraw/actions/actionElementLock.d.ts +69 -13
  64. package/dist/types/excalidraw/actions/actionExport.d.ts +76 -20
  65. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +132 -652
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +83 -27
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +89 -9
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +35 -7
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +34 -6
  71. package/dist/types/excalidraw/actions/actionProperties.d.ts +106 -34
  72. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +39 -11
  73. package/dist/types/excalidraw/actions/actionStyles.d.ts +31 -7
  74. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
  75. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +35 -7
  76. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +38 -11
  77. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +35 -7
  78. package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +206 -0
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +35 -7
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +38 -11
  81. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  82. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleShowHints.d.ts} +50 -19
  83. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +35 -7
  84. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +36 -8
  85. package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
  86. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +35 -7
  87. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  88. package/dist/types/excalidraw/actions/index.d.ts +4 -2
  89. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  90. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  91. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  92. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  93. package/dist/types/excalidraw/appState.d.ts +37 -12
  94. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -1
  95. package/dist/types/excalidraw/charts/charts.helpers.d.ts +6 -5
  96. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -1
  97. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -1
  98. package/dist/types/excalidraw/charts/index.d.ts +2 -1
  99. package/dist/types/excalidraw/components/Actions.d.ts +26 -13
  100. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  101. package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
  102. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  103. package/dist/types/excalidraw/components/App.clipboard.d.ts +59 -0
  104. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  105. package/dist/types/excalidraw/components/App.d.ts +335 -111
  106. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  107. package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
  108. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  109. package/dist/types/excalidraw/components/App.host.d.ts +102 -0
  110. package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
  111. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  112. package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
  113. package/dist/types/excalidraw/components/App.selectionTool.d.ts +94 -0
  114. package/dist/types/excalidraw/components/App.text.d.ts +194 -0
  115. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  116. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  117. package/dist/types/excalidraw/components/App.viewport.d.ts +133 -0
  118. package/dist/types/excalidraw/components/App.wheel.d.ts +30 -0
  119. package/dist/types/excalidraw/components/App.wrap.d.ts +39 -0
  120. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  121. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  122. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
  123. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  124. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  125. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  126. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  127. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  128. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  129. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  130. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -3
  131. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  132. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  133. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  134. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  135. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  136. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  137. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  138. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  139. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  140. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  141. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  142. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  143. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  144. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  145. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  146. package/dist/types/excalidraw/components/Minimap/Minimap.d.ts +15 -0
  147. package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
  148. package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
  149. package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
  150. package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
  151. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  152. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  153. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  154. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  155. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  156. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  157. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  158. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  159. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  160. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  161. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  162. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  163. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  164. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  165. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  166. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  167. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
  168. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
  169. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  170. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  171. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
  172. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
  173. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
  174. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
  175. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
  176. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  177. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +16 -0
  178. package/dist/types/excalidraw/components/Toast.d.ts +12 -1
  179. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  180. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  181. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  182. package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
  183. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  184. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  185. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  186. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  187. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  188. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
  189. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
  190. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  191. package/dist/types/excalidraw/components/footer/Footer.d.ts +5 -1
  192. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  193. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +15 -4
  194. package/dist/types/excalidraw/components/icons.d.ts +8 -1
  195. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +10 -4
  196. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  197. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  198. package/dist/types/excalidraw/data/blob.d.ts +84 -28
  199. package/dist/types/excalidraw/data/index.d.ts +7 -7
  200. package/dist/types/excalidraw/data/json.d.ts +48 -20
  201. package/dist/types/excalidraw/data/library.d.ts +1 -1
  202. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  203. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  204. package/dist/types/excalidraw/fonts/Fonts.d.ts +12 -8
  205. package/dist/types/excalidraw/history.d.ts +10 -4
  206. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  207. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  208. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  209. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  210. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  211. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  212. package/dist/types/excalidraw/mermaid.d.ts +7 -0
  213. package/dist/types/excalidraw/reactUtils.d.ts +1 -1
  214. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  215. package/dist/types/excalidraw/renderer/animation.d.ts +15 -4
  216. package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
  217. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
  218. package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
  219. package/dist/types/excalidraw/scene/Renderer.d.ts +490 -21
  220. package/dist/types/excalidraw/scene/export.d.ts +344 -21
  221. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  222. package/dist/types/excalidraw/scene/types.d.ts +30 -5
  223. package/dist/types/excalidraw/snapping.d.ts +7 -7
  224. package/dist/types/excalidraw/types.d.ts +617 -29
  225. package/dist/types/excalidraw/viewport.d.ts +308 -0
  226. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +13 -3
  227. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  228. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  229. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  230. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  231. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  232. package/dist/types/math/src/constants.d.ts +0 -1
  233. package/dist/types/math/src/curve.d.ts +19 -12
  234. package/dist/types/math/src/index.d.ts +1 -0
  235. package/dist/types/math/src/pca.d.ts +79 -0
  236. package/dist/types/math/src/point.d.ts +1 -0
  237. package/dist/types/math/src/polygon.d.ts +25 -1
  238. package/dist/types/math/src/segment.d.ts +6 -0
  239. package/dist/types/utils/src/index.d.ts +4 -3
  240. package/dist/types/utils/src/shape.d.ts +2 -2
  241. package/package.json +1 -1
  242. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  243. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  244. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  245. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  246. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  247. package/dist/types/excalidraw/components/shapes.d.ts +0 -263
  248. package/dist/types/excalidraw/cursor.d.ts +0 -5
  249. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  250. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  251. package/dist/types/utils/src/bbox.d.ts +0 -9
  252. package/dist/types/utils/src/export.d.ts +0 -35
  253. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,4 +1,3 @@
1
- import type { AppState } from "../types";
2
1
  export declare const actionToggleGridMode: {
3
2
  name: "gridMode";
4
3
  icon: import("react/jsx-runtime").JSX.Element;
@@ -7,9 +6,9 @@ export declare const actionToggleGridMode: {
7
6
  viewMode: true;
8
7
  trackEvent: {
9
8
  category: "canvas";
10
- predicate: (appState: Readonly<AppState>) => boolean;
9
+ predicate: (appState: Readonly<import("../types").AppState>) => boolean;
11
10
  };
12
- perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>): {
11
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
13
12
  appState: {
14
13
  gridModeEnabled: boolean;
15
14
  objectsSnapModeEnabled: false;
@@ -33,11 +32,24 @@ export declare const actionToggleGridMode: {
33
32
  boxSelectionMode: import("../types").BoxSelectionMode;
34
33
  bindingPreference: "enabled" | "disabled";
35
34
  isMidpointSnappingEnabled: boolean;
36
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
35
+ showHints: boolean;
36
+ splitOnPaste: boolean;
37
+ inputDevice: import("../types").InputDevice;
37
38
  suggestedBinding: {
38
39
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
39
40
  midPoint?: import("@excalidraw/math").GlobalPoint;
40
41
  } | null;
42
+ textToolHover: {
43
+ type: "text";
44
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
45
+ } | {
46
+ type: "container";
47
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
48
+ } | {
49
+ type: "arrow";
50
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
51
+ anchor: "start" | "end" | "label";
52
+ } | null;
41
53
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
42
54
  frameRendering: {
43
55
  enabled: boolean;
@@ -45,8 +57,8 @@ export declare const actionToggleGridMode: {
45
57
  outline: boolean;
46
58
  clip: boolean;
47
59
  };
48
- editingFrame: string | null;
49
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
60
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
61
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
50
62
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
51
63
  activeTool: {
52
64
  lastActiveTool: import("../types").ActiveTool | null;
@@ -64,11 +76,14 @@ export declare const actionToggleGridMode: {
64
76
  exportWithDarkMode: boolean;
65
77
  exportScale: number;
66
78
  currentItemStrokeColor: string;
79
+ currentItemStickynoteStrokeColor: string;
80
+ currentItemStickynoteBackgroundColor: string;
67
81
  currentItemBackgroundColor: string;
68
82
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
69
- currentItemStrokeWidth: number;
83
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
70
84
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
71
85
  currentItemRoughness: number;
86
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
72
87
  currentItemOpacity: number;
73
88
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
74
89
  currentItemFontSize: number;
@@ -81,6 +96,7 @@ export declare const actionToggleGridMode: {
81
96
  viewBackgroundColor: string;
82
97
  scrollX: number;
83
98
  scrollY: number;
99
+ scrollConstraints: import("../types").ScrollConstraints | null;
84
100
  cursorButton: "up" | "down";
85
101
  scrolledOutside: boolean;
86
102
  name: string | null;
@@ -127,8 +143,13 @@ export declare const actionToggleGridMode: {
127
143
  message: React.ReactNode;
128
144
  closable?: boolean;
129
145
  duration?: number;
146
+ action?: {
147
+ label: string;
148
+ onClick: () => void;
149
+ };
130
150
  } | null;
131
151
  zenModeEnabled: boolean;
152
+ minimapEnabled: boolean;
132
153
  theme: import("@excalidraw/element/types").Theme;
133
154
  gridSize: number;
134
155
  gridStep: number;
@@ -154,8 +175,6 @@ export declare const actionToggleGridMode: {
154
175
  x: number;
155
176
  y: number;
156
177
  } | null;
157
- userToFollow: import("../types").UserToFollow | null;
158
- followedBy: Set<import("../types").SocketId>;
159
178
  isCropping: boolean;
160
179
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
161
180
  searchMatches: Readonly<{
@@ -167,11 +186,19 @@ export declare const actionToggleGridMode: {
167
186
  [groupId: string]: true;
168
187
  };
169
188
  bindMode: import("@excalidraw/element/types").BindMode;
189
+ colorTopPicks: {
190
+ elementStroke: readonly string[] | null;
191
+ elementBackground: readonly string[] | null;
192
+ bucketFill: readonly string[] | null;
193
+ stickyNoteStroke: readonly string[] | null;
194
+ stickyNoteBackground: readonly string[] | null;
195
+ };
196
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
170
197
  };
171
198
  captureUpdate: "EVENTUALLY";
172
199
  };
173
- checked: (appState: AppState) => boolean;
174
- predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
200
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
201
+ predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps) => boolean;
175
202
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
176
203
  } & {
177
204
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -28,11 +28,24 @@ export declare const actionToggleMidpointSnapping: {
28
28
  isBindingEnabled: boolean;
29
29
  boxSelectionMode: import("../types").BoxSelectionMode;
30
30
  bindingPreference: "enabled" | "disabled";
31
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
+ showHints: boolean;
32
+ splitOnPaste: boolean;
33
+ inputDevice: import("../types").InputDevice;
32
34
  suggestedBinding: {
33
35
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
34
36
  midPoint?: import("@excalidraw/math").GlobalPoint;
35
37
  } | null;
38
+ textToolHover: {
39
+ type: "text";
40
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
41
+ } | {
42
+ type: "container";
43
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
44
+ } | {
45
+ type: "arrow";
46
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
47
+ anchor: "start" | "end" | "label";
48
+ } | null;
36
49
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
37
50
  frameRendering: {
38
51
  enabled: boolean;
@@ -40,8 +53,8 @@ export declare const actionToggleMidpointSnapping: {
40
53
  outline: boolean;
41
54
  clip: boolean;
42
55
  };
43
- editingFrame: string | null;
44
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
56
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
57
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
45
58
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
46
59
  activeTool: {
47
60
  lastActiveTool: import("../types").ActiveTool | null;
@@ -59,11 +72,14 @@ export declare const actionToggleMidpointSnapping: {
59
72
  exportWithDarkMode: boolean;
60
73
  exportScale: number;
61
74
  currentItemStrokeColor: string;
75
+ currentItemStickynoteStrokeColor: string;
76
+ currentItemStickynoteBackgroundColor: string;
62
77
  currentItemBackgroundColor: string;
63
78
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
64
- currentItemStrokeWidth: number;
79
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
65
80
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
66
81
  currentItemRoughness: number;
82
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
67
83
  currentItemOpacity: number;
68
84
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
69
85
  currentItemFontSize: number;
@@ -76,6 +92,7 @@ export declare const actionToggleMidpointSnapping: {
76
92
  viewBackgroundColor: string;
77
93
  scrollX: number;
78
94
  scrollY: number;
95
+ scrollConstraints: import("../types").ScrollConstraints | null;
79
96
  cursorButton: "up" | "down";
80
97
  scrolledOutside: boolean;
81
98
  name: string | null;
@@ -122,8 +139,13 @@ export declare const actionToggleMidpointSnapping: {
122
139
  message: React.ReactNode;
123
140
  closable?: boolean;
124
141
  duration?: number;
142
+ action?: {
143
+ label: string;
144
+ onClick: () => void;
145
+ };
125
146
  } | null;
126
147
  zenModeEnabled: boolean;
148
+ minimapEnabled: boolean;
127
149
  theme: import("@excalidraw/element/types").Theme;
128
150
  gridSize: number;
129
151
  gridStep: number;
@@ -151,8 +173,6 @@ export declare const actionToggleMidpointSnapping: {
151
173
  y: number;
152
174
  } | null;
153
175
  objectsSnapModeEnabled: boolean;
154
- userToFollow: import("../types").UserToFollow | null;
155
- followedBy: Set<import("../types").SocketId>;
156
176
  isCropping: boolean;
157
177
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
158
178
  searchMatches: Readonly<{
@@ -164,10 +184,18 @@ export declare const actionToggleMidpointSnapping: {
164
184
  [groupId: string]: true;
165
185
  };
166
186
  bindMode: import("@excalidraw/element/types").BindMode;
187
+ colorTopPicks: {
188
+ elementStroke: readonly string[] | null;
189
+ elementBackground: readonly string[] | null;
190
+ bucketFill: readonly string[] | null;
191
+ stickyNoteStroke: readonly string[] | null;
192
+ stickyNoteBackground: readonly string[] | null;
193
+ };
194
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
167
195
  };
168
196
  captureUpdate: "NEVER";
169
197
  };
170
- checked: (appState: Readonly<import("../types").AppState>) => boolean;
198
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
171
199
  } & {
172
200
  keyTest?: undefined;
173
201
  };
@@ -0,0 +1,206 @@
1
+ export declare const actionToggleMinimap: {
2
+ name: "minimap";
3
+ label: string;
4
+ icon: import("react/jsx-runtime").JSX.Element;
5
+ keywords: string[];
6
+ viewMode: true;
7
+ navigation: true;
8
+ trackEvent: {
9
+ category: "canvas";
10
+ predicate: (appState: Readonly<import("../types").AppState>) => boolean;
11
+ };
12
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
13
+ appState: {
14
+ minimapEnabled: boolean;
15
+ contextMenu: {
16
+ items: import("../components/ContextMenu").ContextMenuItems;
17
+ top: number;
18
+ left: number;
19
+ } | null;
20
+ showWelcomeScreen: boolean;
21
+ isLoading: boolean;
22
+ errorMessage: React.ReactNode;
23
+ activeEmbeddable: {
24
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
25
+ state: "hover" | "active";
26
+ } | null;
27
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
28
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
30
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
+ isBindingEnabled: boolean;
32
+ boxSelectionMode: import("../types").BoxSelectionMode;
33
+ bindingPreference: "enabled" | "disabled";
34
+ isMidpointSnappingEnabled: boolean;
35
+ showHints: boolean;
36
+ splitOnPaste: boolean;
37
+ inputDevice: import("../types").InputDevice;
38
+ suggestedBinding: {
39
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
40
+ midPoint?: import("@excalidraw/math").GlobalPoint;
41
+ } | null;
42
+ textToolHover: {
43
+ type: "text";
44
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
45
+ } | {
46
+ type: "container";
47
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
48
+ } | {
49
+ type: "arrow";
50
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
51
+ anchor: "start" | "end" | "label";
52
+ } | null;
53
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
54
+ frameRendering: {
55
+ enabled: boolean;
56
+ name: boolean;
57
+ outline: boolean;
58
+ clip: boolean;
59
+ };
60
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
61
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
62
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
63
+ activeTool: {
64
+ lastActiveTool: import("../types").ActiveTool | null;
65
+ locked: boolean;
66
+ fromSelection: boolean;
67
+ } & import("../types").ActiveTool;
68
+ preferredSelectionTool: {
69
+ type: "selection" | "lasso";
70
+ initialized: boolean;
71
+ };
72
+ penMode: boolean;
73
+ penDetected: boolean;
74
+ exportBackground: boolean;
75
+ exportEmbedScene: boolean;
76
+ exportWithDarkMode: boolean;
77
+ exportScale: number;
78
+ currentItemStrokeColor: string;
79
+ currentItemStickynoteStrokeColor: string;
80
+ currentItemStickynoteBackgroundColor: string;
81
+ currentItemBackgroundColor: string;
82
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
83
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
84
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
85
+ currentItemRoughness: number;
86
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
87
+ currentItemOpacity: number;
88
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
89
+ currentItemFontSize: number;
90
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
91
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
92
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
93
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
94
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
95
+ currentItemArrowType: "sharp" | "round" | "elbow";
96
+ viewBackgroundColor: string;
97
+ scrollX: number;
98
+ scrollY: number;
99
+ scrollConstraints: import("../types").ScrollConstraints | null;
100
+ cursorButton: "up" | "down";
101
+ scrolledOutside: boolean;
102
+ name: string | null;
103
+ isResizing: boolean;
104
+ isRotating: boolean;
105
+ zoom: import("../types").Zoom;
106
+ openMenu: "canvas" | null;
107
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
108
+ openSidebar: {
109
+ name: import("../types").SidebarName;
110
+ tab?: import("../types").SidebarTabName;
111
+ } | null;
112
+ openDialog: null | {
113
+ name: "imageExport" | "help" | "jsonExport";
114
+ } | {
115
+ name: "ttd";
116
+ tab: "text-to-diagram" | "mermaid";
117
+ } | {
118
+ name: "commandPalette";
119
+ } | {
120
+ name: "settings";
121
+ } | {
122
+ name: "elementLinkSelector";
123
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
124
+ } | {
125
+ name: "charts";
126
+ data: import("../charts").Spreadsheet;
127
+ rawText: string;
128
+ };
129
+ defaultSidebarDockedPreference: boolean;
130
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
131
+ selectedElementIds: Readonly<{
132
+ [id: string]: true;
133
+ }>;
134
+ hoveredElementIds: Readonly<{
135
+ [id: string]: true;
136
+ }>;
137
+ previousSelectedElementIds: {
138
+ [id: string]: true;
139
+ };
140
+ selectedElementsAreBeingDragged: boolean;
141
+ shouldCacheIgnoreZoom: boolean;
142
+ toast: {
143
+ message: React.ReactNode;
144
+ closable?: boolean;
145
+ duration?: number;
146
+ action?: {
147
+ label: string;
148
+ onClick: () => void;
149
+ };
150
+ } | null;
151
+ zenModeEnabled: boolean;
152
+ theme: import("@excalidraw/element/types").Theme;
153
+ gridSize: number;
154
+ gridStep: number;
155
+ gridModeEnabled: boolean;
156
+ viewModeEnabled: boolean;
157
+ selectedGroupIds: {
158
+ [groupId: string]: boolean;
159
+ };
160
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
161
+ width: number;
162
+ height: number;
163
+ offsetTop: number;
164
+ offsetLeft: number;
165
+ fileHandle: FileSystemFileHandle | null;
166
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
167
+ stats: {
168
+ open: boolean;
169
+ panels: number;
170
+ };
171
+ showHyperlinkPopup: false | "info" | "editor";
172
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
173
+ snapLines: readonly import("../snapping").SnapLine[];
174
+ originSnapOffset: {
175
+ x: number;
176
+ y: number;
177
+ } | null;
178
+ objectsSnapModeEnabled: boolean;
179
+ isCropping: boolean;
180
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
181
+ searchMatches: Readonly<{
182
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
183
+ matches: readonly import("../types").SearchMatch[];
184
+ }> | null;
185
+ activeLockedId: string | null;
186
+ lockedMultiSelections: {
187
+ [groupId: string]: true;
188
+ };
189
+ bindMode: import("@excalidraw/element/types").BindMode;
190
+ colorTopPicks: {
191
+ elementStroke: readonly string[] | null;
192
+ elementBackground: readonly string[] | null;
193
+ bucketFill: readonly string[] | null;
194
+ stickyNoteStroke: readonly string[] | null;
195
+ stickyNoteBackground: readonly string[] | null;
196
+ };
197
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
198
+ };
199
+ captureUpdate: "EVENTUALLY";
200
+ };
201
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
202
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
203
+ PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
204
+ } & {
205
+ keyTest?: undefined;
206
+ };
@@ -31,11 +31,24 @@ export declare const actionToggleObjectsSnapMode: {
31
31
  boxSelectionMode: import("../types").BoxSelectionMode;
32
32
  bindingPreference: "enabled" | "disabled";
33
33
  isMidpointSnappingEnabled: boolean;
34
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
+ showHints: boolean;
35
+ splitOnPaste: boolean;
36
+ inputDevice: import("../types").InputDevice;
35
37
  suggestedBinding: {
36
38
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
37
39
  midPoint?: import("@excalidraw/math").GlobalPoint;
38
40
  } | null;
41
+ textToolHover: {
42
+ type: "text";
43
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
44
+ } | {
45
+ type: "container";
46
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
47
+ } | {
48
+ type: "arrow";
49
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
50
+ anchor: "start" | "end" | "label";
51
+ } | null;
39
52
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
40
53
  frameRendering: {
41
54
  enabled: boolean;
@@ -43,8 +56,8 @@ export declare const actionToggleObjectsSnapMode: {
43
56
  outline: boolean;
44
57
  clip: boolean;
45
58
  };
46
- editingFrame: string | null;
47
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
59
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
60
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
48
61
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
49
62
  activeTool: {
50
63
  lastActiveTool: import("../types").ActiveTool | null;
@@ -62,11 +75,14 @@ export declare const actionToggleObjectsSnapMode: {
62
75
  exportWithDarkMode: boolean;
63
76
  exportScale: number;
64
77
  currentItemStrokeColor: string;
78
+ currentItemStickynoteStrokeColor: string;
79
+ currentItemStickynoteBackgroundColor: string;
65
80
  currentItemBackgroundColor: string;
66
81
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
67
- currentItemStrokeWidth: number;
82
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
68
83
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
69
84
  currentItemRoughness: number;
85
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
70
86
  currentItemOpacity: number;
71
87
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
72
88
  currentItemFontSize: number;
@@ -79,6 +95,7 @@ export declare const actionToggleObjectsSnapMode: {
79
95
  viewBackgroundColor: string;
80
96
  scrollX: number;
81
97
  scrollY: number;
98
+ scrollConstraints: import("../types").ScrollConstraints | null;
82
99
  cursorButton: "up" | "down";
83
100
  scrolledOutside: boolean;
84
101
  name: string | null;
@@ -125,8 +142,13 @@ export declare const actionToggleObjectsSnapMode: {
125
142
  message: React.ReactNode;
126
143
  closable?: boolean;
127
144
  duration?: number;
145
+ action?: {
146
+ label: string;
147
+ onClick: () => void;
148
+ };
128
149
  } | null;
129
150
  zenModeEnabled: boolean;
151
+ minimapEnabled: boolean;
130
152
  theme: import("@excalidraw/element/types").Theme;
131
153
  gridSize: number;
132
154
  gridStep: number;
@@ -152,8 +174,6 @@ export declare const actionToggleObjectsSnapMode: {
152
174
  x: number;
153
175
  y: number;
154
176
  } | null;
155
- userToFollow: import("../types").UserToFollow | null;
156
- followedBy: Set<import("../types").SocketId>;
157
177
  isCropping: boolean;
158
178
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
159
179
  searchMatches: Readonly<{
@@ -165,10 +185,18 @@ export declare const actionToggleObjectsSnapMode: {
165
185
  [groupId: string]: true;
166
186
  };
167
187
  bindMode: import("@excalidraw/element/types").BindMode;
188
+ colorTopPicks: {
189
+ elementStroke: readonly string[] | null;
190
+ elementBackground: readonly string[] | null;
191
+ bucketFill: readonly string[] | null;
192
+ stickyNoteStroke: readonly string[] | null;
193
+ stickyNoteBackground: readonly string[] | null;
194
+ };
195
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
168
196
  };
169
197
  captureUpdate: "EVENTUALLY";
170
198
  };
171
- checked: (appState: Readonly<import("../types").AppState>) => boolean;
199
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
172
200
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
173
201
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
174
202
  } & {
@@ -1,4 +1,3 @@
1
- import type { AppState } from "../types";
2
1
  export declare const actionToggleSearchMenu: {
3
2
  name: "searchMenu";
4
3
  icon: import("react/jsx-runtime").JSX.Element;
@@ -8,9 +7,9 @@ export declare const actionToggleSearchMenu: {
8
7
  trackEvent: {
9
8
  category: "search_menu";
10
9
  action: string;
11
- predicate: (appState: Readonly<AppState>) => boolean;
10
+ predicate: (appState: Readonly<import("../types").AppState>) => boolean;
12
11
  };
13
- perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
12
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
14
13
  appState: {
15
14
  openSidebar: {
16
15
  name: "default";
@@ -37,11 +36,24 @@ export declare const actionToggleSearchMenu: {
37
36
  boxSelectionMode: import("../types").BoxSelectionMode;
38
37
  bindingPreference: "enabled" | "disabled";
39
38
  isMidpointSnappingEnabled: boolean;
40
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
39
+ showHints: boolean;
40
+ splitOnPaste: boolean;
41
+ inputDevice: import("../types").InputDevice;
41
42
  suggestedBinding: {
42
43
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
43
44
  midPoint?: import("@excalidraw/math").GlobalPoint;
44
45
  } | null;
46
+ textToolHover: {
47
+ type: "text";
48
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
49
+ } | {
50
+ type: "container";
51
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
52
+ } | {
53
+ type: "arrow";
54
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
55
+ anchor: "start" | "end" | "label";
56
+ } | null;
45
57
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
46
58
  frameRendering: {
47
59
  enabled: boolean;
@@ -49,8 +61,8 @@ export declare const actionToggleSearchMenu: {
49
61
  outline: boolean;
50
62
  clip: boolean;
51
63
  };
52
- editingFrame: string | null;
53
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
64
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
65
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
54
66
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
55
67
  activeTool: {
56
68
  lastActiveTool: import("../types").ActiveTool | null;
@@ -68,11 +80,14 @@ export declare const actionToggleSearchMenu: {
68
80
  exportWithDarkMode: boolean;
69
81
  exportScale: number;
70
82
  currentItemStrokeColor: string;
83
+ currentItemStickynoteStrokeColor: string;
84
+ currentItemStickynoteBackgroundColor: string;
71
85
  currentItemBackgroundColor: string;
72
86
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
73
- currentItemStrokeWidth: number;
87
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
74
88
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
75
89
  currentItemRoughness: number;
90
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
76
91
  currentItemOpacity: number;
77
92
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
78
93
  currentItemFontSize: number;
@@ -85,6 +100,7 @@ export declare const actionToggleSearchMenu: {
85
100
  viewBackgroundColor: string;
86
101
  scrollX: number;
87
102
  scrollY: number;
103
+ scrollConstraints: import("../types").ScrollConstraints | null;
88
104
  cursorButton: "up" | "down";
89
105
  scrolledOutside: boolean;
90
106
  name: string | null;
@@ -110,8 +126,13 @@ export declare const actionToggleSearchMenu: {
110
126
  message: React.ReactNode;
111
127
  closable?: boolean;
112
128
  duration?: number;
129
+ action?: {
130
+ label: string;
131
+ onClick: () => void;
132
+ };
113
133
  } | null;
114
134
  zenModeEnabled: boolean;
135
+ minimapEnabled: boolean;
115
136
  theme: import("@excalidraw/element/types").Theme;
116
137
  gridSize: number;
117
138
  gridStep: number;
@@ -139,8 +160,6 @@ export declare const actionToggleSearchMenu: {
139
160
  y: number;
140
161
  } | null;
141
162
  objectsSnapModeEnabled: boolean;
142
- userToFollow: import("../types").UserToFollow | null;
143
- followedBy: Set<import("../types").SocketId>;
144
163
  isCropping: boolean;
145
164
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
146
165
  searchMatches: Readonly<{
@@ -152,11 +171,19 @@ export declare const actionToggleSearchMenu: {
152
171
  [groupId: string]: true;
153
172
  };
154
173
  bindMode: import("@excalidraw/element/types").BindMode;
174
+ colorTopPicks: {
175
+ elementStroke: readonly string[] | null;
176
+ elementBackground: readonly string[] | null;
177
+ bucketFill: readonly string[] | null;
178
+ stickyNoteStroke: readonly string[] | null;
179
+ stickyNoteBackground: readonly string[] | null;
180
+ };
181
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
155
182
  };
156
183
  captureUpdate: "EVENTUALLY";
157
184
  };
158
- checked: (appState: AppState) => boolean;
159
- predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
185
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
186
+ predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps) => boolean;
160
187
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
161
188
  } & {
162
189
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;