@zsviczian/excalidraw 0.18.0-5 → 0.18.0-51

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 (191) hide show
  1. package/dist/excalidraw.development.js +746 -504
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +0 -2
  4. package/dist/styles.development.css +1080 -437
  5. package/dist/styles.production.css +26 -22
  6. package/package.json +14 -3
  7. package/types/common/src/commonObsidianUtils.d.ts +13 -0
  8. package/types/common/src/constants.d.ts +42 -18
  9. package/types/common/src/editorInterface.d.ts +35 -0
  10. package/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  11. package/types/common/src/font-metadata.d.ts +4 -2
  12. package/types/common/src/index.d.ts +2 -0
  13. package/types/common/src/utility-types.d.ts +5 -0
  14. package/types/common/src/utils.d.ts +20 -5
  15. package/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
  16. package/types/element/src/align.d.ts +4 -3
  17. package/types/element/src/binding.d.ts +27 -17
  18. package/types/element/src/bounds.d.ts +14 -6
  19. package/types/element/src/collision.d.ts +18 -12
  20. package/types/element/src/cropElement.d.ts +1 -1
  21. package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
  22. package/types/element/src/distance.d.ts +2 -2
  23. package/types/element/src/distribute.d.ts +2 -1
  24. package/types/element/src/dragElements.d.ts +3 -2
  25. package/types/element/src/duplicate.d.ts +10 -13
  26. package/types/element/src/elbowArrow.d.ts +1 -1
  27. package/types/element/src/flowchart.d.ts +3 -2
  28. package/types/element/src/fractionalIndex.d.ts +9 -3
  29. package/types/element/src/frame.d.ts +5 -4
  30. package/types/element/src/groups.d.ts +1 -0
  31. package/types/element/src/index.d.ts +44 -2
  32. package/types/element/src/linearElementEditor.d.ts +23 -36
  33. package/types/element/src/mutateElement.d.ts +11 -3
  34. package/types/element/src/newElement.d.ts +6 -4
  35. package/types/element/src/positionElementsOnGrid.d.ts +2 -0
  36. package/types/element/src/renderElement.d.ts +4 -1
  37. package/types/element/src/resizeElements.d.ts +6 -5
  38. package/types/element/src/resizeTest.d.ts +5 -4
  39. package/types/element/src/selection.d.ts +11 -5
  40. package/types/element/src/shape.d.ts +42 -0
  41. package/types/element/src/sizeHelpers.d.ts +2 -2
  42. package/types/element/src/store.d.ts +237 -0
  43. package/types/element/src/textElement.d.ts +5 -3
  44. package/types/element/src/transformHandles.d.ts +5 -4
  45. package/types/element/src/typeChecks.d.ts +19 -1
  46. package/types/element/src/types.d.ts +25 -2
  47. package/types/element/src/utils.d.ts +16 -6
  48. package/types/element/src/zindex.d.ts +1 -1
  49. package/types/excalidraw/actions/actionAddToLibrary.d.ts +75 -54
  50. package/types/excalidraw/actions/actionBoundText.d.ts +50 -36
  51. package/types/excalidraw/actions/actionCanvas.d.ts +388 -282
  52. package/types/excalidraw/actions/actionClipboard.d.ts +151 -107
  53. package/types/excalidraw/actions/actionCropEditor.d.ts +25 -18
  54. package/types/excalidraw/actions/actionDeleteSelected.d.ts +77 -55
  55. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
  56. package/types/excalidraw/actions/actionElementLink.d.ts +25 -18
  57. package/types/excalidraw/actions/actionElementLock.d.ts +65 -52
  58. package/types/excalidraw/actions/actionEmbeddable.d.ts +25 -18
  59. package/types/excalidraw/actions/actionExport.d.ts +237 -174
  60. package/types/excalidraw/actions/actionFinalize.d.ts +307 -43
  61. package/types/excalidraw/actions/actionFrame.d.ts +157 -120
  62. package/types/excalidraw/actions/actionGroup.d.ts +50 -36
  63. package/types/excalidraw/actions/actionHistory.d.ts +1 -2
  64. package/types/excalidraw/actions/actionLinearEditor.d.ts +563 -20
  65. package/types/excalidraw/actions/actionLink.d.ts +23 -16
  66. package/types/excalidraw/actions/actionMenu.d.ts +25 -456
  67. package/types/excalidraw/actions/actionNavigate.d.ts +49 -35
  68. package/types/excalidraw/actions/actionProperties.d.ts +629 -273
  69. package/types/excalidraw/actions/actionSelectAll.d.ts +25 -18
  70. package/types/excalidraw/actions/actionStyles.d.ts +25 -18
  71. package/types/excalidraw/actions/actionToggleGridMode.d.ts +25 -18
  72. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +25 -18
  73. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +25 -223
  74. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  75. package/types/excalidraw/actions/actionToggleStats.d.ts +25 -18
  76. package/types/excalidraw/actions/actionToggleViewMode.d.ts +25 -18
  77. package/types/excalidraw/actions/actionToggleZenMode.d.ts +26 -19
  78. package/types/excalidraw/actions/actionTrayMenu.d.ts +226 -0
  79. package/types/excalidraw/actions/index.d.ts +4 -2
  80. package/types/excalidraw/actions/types.d.ts +4 -3
  81. package/types/excalidraw/appState.d.ts +24 -10
  82. package/types/excalidraw/clipboard.d.ts +68 -5
  83. package/types/excalidraw/components/Actions.d.ts +20 -7
  84. package/types/excalidraw/components/App.d.ts +63 -38
  85. package/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  86. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  87. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  88. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  89. package/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -3
  90. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -3
  91. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -2
  92. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  93. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  94. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  95. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  96. package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  97. package/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  98. package/types/excalidraw/components/Ellipsify.d.ts +3 -0
  99. package/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  100. package/types/excalidraw/components/FilledButton.d.ts +1 -1
  101. package/types/excalidraw/components/FixedSideContainer.d.ts +2 -1
  102. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  103. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  104. package/types/excalidraw/components/HintViewer.d.ts +4 -3
  105. package/types/excalidraw/components/InlineIcon.d.ts +3 -1
  106. package/types/excalidraw/components/LayerUI.d.ts +2 -1
  107. package/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  108. package/types/excalidraw/components/LinkButton.d.ts +4 -0
  109. package/types/excalidraw/components/MobileMenu.d.ts +4 -5
  110. package/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  111. package/types/excalidraw/components/Popover.d.ts +2 -1
  112. package/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  113. package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  114. package/types/excalidraw/components/Range.d.ts +3 -3
  115. package/types/excalidraw/components/Section.d.ts +1 -0
  116. package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  117. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  118. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
  119. package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  120. package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  121. package/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  122. package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  123. package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  124. package/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  125. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  126. package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  127. package/types/excalidraw/components/Stats/Position.d.ts +1 -1
  128. package/types/excalidraw/components/Stats/utils.d.ts +4 -11
  129. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  130. package/types/excalidraw/components/TextField.d.ts +1 -0
  131. package/types/excalidraw/components/ToolPopover.d.ts +25 -0
  132. package/types/excalidraw/components/TrayMenu.d.ts +26 -0
  133. package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  134. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -2
  135. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  136. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  137. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  138. package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  139. package/types/excalidraw/components/icons.d.ts +17 -0
  140. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +14 -1
  141. package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
  142. package/types/excalidraw/components/shapes.d.ts +115 -5
  143. package/types/excalidraw/data/blob.d.ts +3 -7
  144. package/types/excalidraw/data/reconcile.d.ts +1 -0
  145. package/types/excalidraw/data/restore.d.ts +6 -1
  146. package/types/excalidraw/data/transform.d.ts +1 -1
  147. package/types/excalidraw/data/types.d.ts +4 -1
  148. package/types/excalidraw/editor-jotai.d.ts +6 -6
  149. package/types/excalidraw/eraser/index.d.ts +12 -0
  150. package/types/excalidraw/fonts/Fonts.d.ts +1 -1
  151. package/types/excalidraw/history.d.ts +30 -22
  152. package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  153. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  154. package/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
  155. package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  156. package/types/excalidraw/index.d.ts +15 -14
  157. package/types/excalidraw/lasso/index.d.ts +1 -0
  158. package/types/excalidraw/lasso/utils.d.ts +3 -3
  159. package/types/excalidraw/obsidianUtils.d.ts +22 -4
  160. package/types/excalidraw/renderer/helpers.d.ts +7 -2
  161. package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
  162. package/types/excalidraw/renderer/staticScene.d.ts +4 -1
  163. package/types/excalidraw/scene/Renderer.d.ts +1 -2
  164. package/types/excalidraw/scene/index.d.ts +2 -2
  165. package/types/excalidraw/scene/scrollbars.d.ts +2 -3
  166. package/types/excalidraw/scene/types.d.ts +5 -3
  167. package/types/excalidraw/shortcut.d.ts +1 -0
  168. package/types/excalidraw/snapping.d.ts +2 -2
  169. package/types/excalidraw/types.d.ts +68 -30
  170. package/types/excalidraw/webpack.dev.config.d.ts +2 -0
  171. package/types/excalidraw/webpack.prod.config.d.ts +2 -0
  172. package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  173. package/types/math/src/angle.d.ts +2 -0
  174. package/types/math/src/constants.d.ts +3 -0
  175. package/types/math/src/curve.d.ts +34 -0
  176. package/types/math/src/index.d.ts +1 -0
  177. package/types/math/src/point.d.ts +1 -1
  178. package/types/math/src/rectangle.d.ts +2 -0
  179. package/types/math/src/segment.d.ts +1 -0
  180. package/types/math/src/types.d.ts +1 -0
  181. package/types/math/src/vector.d.ts +8 -2
  182. package/types/utils/src/bbox.d.ts +1 -1
  183. package/types/utils/src/index.d.ts +1 -1
  184. package/types/utils/src/withinBounds.d.ts +1 -1
  185. package/types/element/src/Shape.d.ts +0 -17
  186. package/types/element/src/ShapeCache.d.ts +0 -25
  187. package/types/element/src/shapes.d.ts +0 -23
  188. package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  189. package/types/excalidraw/store.d.ts +0 -129
  190. package/types/excalidraw/visualdebug.d.ts +0 -41
  191. package/types/utils/src/collision.d.ts +0 -8
@@ -1,20 +1,19 @@
1
1
  import React from "react";
2
- import { type EXPORT_IMAGE_TYPES } from "@excalidraw/common";
3
- import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
4
- import { FlowChartCreator } from "@excalidraw/element/flowchart";
5
- import type { ExcalidrawElement, ExcalidrawLinearElement, NonDeleted, InitializedExcalidrawImageElement, ExcalidrawImageElement, NonDeletedExcalidrawElement, ExcalidrawFrameLikeElement, ExcalidrawIframeElement, ExcalidrawEmbeddableElement, Ordered } from "@excalidraw/element/types";
2
+ import { type EXPORT_IMAGE_TYPES, Emitter, type EditorInterface, type StylesPanelMode } from "@excalidraw/common";
3
+ import { LinearElementEditor, FlowChartCreator, Scene, type ElementUpdate, StoreDelta, type ApplyToOptions } from "@excalidraw/element";
4
+ import type { ExcalidrawElement, ExcalidrawLinearElement, NonDeleted, NonDeletedExcalidrawElement, ExcalidrawFrameLikeElement, ExcalidrawIframeElement, ExcalidrawEmbeddableElement, Ordered, SceneElementsMap } from "@excalidraw/element/types";
5
+ import type { Mutable } from "@excalidraw/common/utility-types";
6
6
  import { ActionManager } from "../actions/manager";
7
7
  import { AnimationFrameHandler } from "../animation-frame-handler";
8
- import Scene from "../scene/Scene";
9
8
  import { Fonts } from "../fonts";
9
+ import { type WritableAtom } from "../editor-jotai";
10
10
  import { Renderer } from "../scene/Renderer";
11
- import { Emitter } from "../emitter";
12
- import { AnimatedTrail } from "../animated-trail";
13
11
  import { LaserTrails } from "../laser-trails";
14
12
  import { LassoTrail } from "../lasso";
13
+ import { EraserTrail } from "../eraser";
15
14
  import type { ExportedElements } from "../data";
16
15
  import type { FileSystemHandle } from "../data/filesystem";
17
- import type { AppClassProperties, AppProps, AppState, ExcalidrawImperativeAPI, BinaryFiles, LibraryItems, SceneData, Device, FrameNameBoundsCache, SidebarName, SidebarTabName, ToolType, OnUserFollowedPayload, GenerateDiagramToCode, NullableGridSize, Offsets } from "../types";
16
+ import type { AppClassProperties, AppProps, AppState, ExcalidrawImperativeAPI, BinaryFiles, LibraryItems, SceneData, FrameNameBoundsCache, SidebarName, SidebarTabName, ToolType, OnUserFollowedPayload, GenerateDiagramToCode, NullableGridSize, Offsets } from "../types";
18
17
  import type { RoughCanvas } from "roughjs/bin/canvas";
19
18
  import type { ActionResult } from "../actions/types";
20
19
  export declare const ExcalidrawContainerContext: React.Context<{
@@ -23,17 +22,19 @@ export declare const ExcalidrawContainerContext: React.Context<{
23
22
  }>;
24
23
  export declare const useApp: () => AppClassProperties;
25
24
  export declare const useAppProps: () => AppProps;
26
- export declare const useDevice: () => Readonly<{
27
- viewport: {
28
- isMobile: boolean;
29
- isLandscape: boolean;
30
- };
31
- editor: {
32
- isMobile: boolean;
33
- canFitSidebar: boolean;
34
- };
25
+ export declare const useEditorInterface: () => Readonly<{
26
+ formFactor: "phone" | "tablet" | "desktop";
27
+ desktopUIMode: "compact" | "full" | "tray";
28
+ userAgent: Readonly<{
29
+ isMobileDevice: boolean;
30
+ platform: "other" | "unknown" | "ios" | "android";
31
+ }>;
35
32
  isTouchScreen: boolean;
33
+ canFitSidebar: boolean;
34
+ isLandscape: boolean;
35
+ preferTrayMode: boolean;
36
36
  }>;
37
+ export declare const useStylesPanelMode: () => StylesPanelMode;
37
38
  export declare const useExcalidrawContainer: () => {
38
39
  container: HTMLDivElement | null;
39
40
  id: string | null;
@@ -48,7 +49,8 @@ declare class App extends React.Component<AppProps, AppState> {
48
49
  rc: RoughCanvas;
49
50
  unmounted: boolean;
50
51
  actionManager: ActionManager;
51
- device: Device;
52
+ editorInterface: EditorInterface;
53
+ private stylesPanelMode;
52
54
  private excalidrawContainerRef;
53
55
  scene: Scene;
54
56
  fonts: Fonts;
@@ -61,6 +63,7 @@ declare class App extends React.Component<AppProps, AppState> {
61
63
  id: string;
62
64
  private store;
63
65
  private history;
66
+ private shouldRenderAllEmbeddables;
64
67
  excalidrawContainerValue: {
65
68
  container: HTMLDivElement | null;
66
69
  id: string;
@@ -78,6 +81,7 @@ declare class App extends React.Component<AppProps, AppState> {
78
81
  /** embeds that have been inserted to DOM (as a perf optim, we don't want to
79
82
  * insert to DOM before user initially scrolls to them) */
80
83
  private initializedEmbeds;
84
+ private handleToastClose;
81
85
  private elementsPendingErasure;
82
86
  flowChartCreator: FlowChartCreator;
83
87
  private flowChartNavigator;
@@ -96,7 +100,7 @@ declare class App extends React.Component<AppProps, AppState> {
96
100
  allowMobileMode: boolean;
97
101
  animationFrameHandler: AnimationFrameHandler;
98
102
  laserTrails: LaserTrails;
99
- eraserTrail: AnimatedTrail;
103
+ eraserTrail: EraserTrail;
100
104
  lassoTrail: LassoTrail;
101
105
  onChangeEmitter: Emitter<[elements: readonly ExcalidrawElement[], appState: AppState, files: BinaryFiles]>;
102
106
  onPointerDownEmitter: Emitter<[activeTool: {
@@ -123,7 +127,7 @@ declare class App extends React.Component<AppProps, AppState> {
123
127
  };
124
128
  originalElements: Map<string, NonDeleted<ExcalidrawElement>>;
125
129
  resize: {
126
- handleType: import("@excalidraw/element/transformHandles").MaybeTransformHandleType;
130
+ handleType: import("@excalidraw/element").MaybeTransformHandleType;
127
131
  isResizing: boolean;
128
132
  offset: {
129
133
  x: number;
@@ -149,6 +153,11 @@ declare class App extends React.Component<AppProps, AppState> {
149
153
  x: number;
150
154
  y: number;
151
155
  } | null;
156
+ origin: {
157
+ x: number;
158
+ y: number;
159
+ };
160
+ blockDragging: boolean;
152
161
  };
153
162
  eventListeners: {
154
163
  onMove: {
@@ -188,7 +197,7 @@ declare class App extends React.Component<AppProps, AppState> {
188
197
  };
189
198
  originalElements: Map<string, NonDeleted<ExcalidrawElement>>;
190
199
  resize: {
191
- handleType: import("@excalidraw/element/transformHandles").MaybeTransformHandleType;
200
+ handleType: import("@excalidraw/element").MaybeTransformHandleType;
192
201
  isResizing: boolean;
193
202
  offset: {
194
203
  x: number;
@@ -214,6 +223,11 @@ declare class App extends React.Component<AppProps, AppState> {
214
223
  x: number;
215
224
  y: number;
216
225
  } | null;
226
+ origin: {
227
+ x: number;
228
+ y: number;
229
+ };
230
+ blockDragging: boolean;
217
231
  };
218
232
  eventListeners: {
219
233
  onMove: {
@@ -236,6 +250,7 @@ declare class App extends React.Component<AppProps, AppState> {
236
250
  missingPointerEventCleanupEmitter: Emitter<[event: PointerEvent | null]>;
237
251
  onRemoveEventListenersEmitter: Emitter<[]>;
238
252
  constructor(props: AppProps);
253
+ updateEditorAtom: <Value, Args extends unknown[], Result>(atom: WritableAtom<Value, Args, Result>, ...args: Args) => Result;
239
254
  private onWindowMessage;
240
255
  private cacheEmbeddableRef;
241
256
  /**
@@ -257,6 +272,7 @@ declare class App extends React.Component<AppProps, AppState> {
257
272
  render(): import("react/jsx-runtime").JSX.Element;
258
273
  focusContainer: AppClassProperties["focusContainer"];
259
274
  getSceneElementsIncludingDeleted: () => readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
275
+ getSceneElementsMapIncludingDeleted: () => Map<string, Ordered<ExcalidrawElement>> & import("@excalidraw/common/utility-types").MakeBrand<"SceneElementsMap">;
260
276
  getSceneElements: () => readonly Ordered<NonDeletedExcalidrawElement>[];
261
277
  onInsertElements: (elements: readonly ExcalidrawElement[]) => void;
262
278
  onExportImage: (type: keyof typeof EXPORT_IMAGE_TYPES, elements: ExportedElements, opts: {
@@ -287,9 +303,14 @@ declare class App extends React.Component<AppProps, AppState> {
287
303
  */
288
304
  private resetScene;
289
305
  private initializeScene;
290
- private isMobileBreakpoint;
291
- private refreshViewportBreakpoints;
292
- private refreshEditorBreakpoints;
306
+ private getFormFactor;
307
+ refreshEditorInterface: (preferTrayMode?: boolean) => void;
308
+ private reconcileStylesPanelMode;
309
+ /** TO BE USED LATER */
310
+ private setDesktopUIMode;
311
+ private isTouchScreen;
312
+ private setTrayModeEnabled;
313
+ isTrayModeEnabled: () => boolean;
293
314
  private clearImageShapeCache;
294
315
  componentDidMount(): Promise<void>;
295
316
  componentWillUnmount(): void;
@@ -306,6 +327,7 @@ declare class App extends React.Component<AppProps, AppState> {
306
327
  private static resetTapTwice;
307
328
  private onTouchStart;
308
329
  private onTouchEnd;
330
+ private insertClipboardContent;
309
331
  pasteFromClipboard: (event: ClipboardEvent) => Promise<void>;
310
332
  addElementsFromPasteOrLibrary: (opts: {
311
333
  elements: readonly ExcalidrawElement[];
@@ -327,6 +349,8 @@ declare class App extends React.Component<AppProps, AppState> {
327
349
  name: boolean;
328
350
  outline: boolean;
329
351
  clip: boolean;
352
+ markerName: boolean;
353
+ markerEnabled: boolean;
330
354
  }> | ((prevState: AppState["frameRendering"]) => Partial<AppState["frameRendering"]>)) => void;
331
355
  togglePenMode: (force: boolean | null) => void;
332
356
  onHandToolToggle: () => void;
@@ -358,6 +382,7 @@ declare class App extends React.Component<AppProps, AppState> {
358
382
  private maybeUnfollowRemoteUser;
359
383
  /** use when changing scrollX/scrollY/zoom based on user interaction */
360
384
  private translateCanvas;
385
+ setForceRenderAllEmbeddables: (force: boolean) => void;
361
386
  zoomToFit: (target?: readonly ExcalidrawElement[], maxZoom?: number, margin?: number) => void;
362
387
  getColorAtScenePoint: ({ sceneX, sceneY, }: {
363
388
  sceneX: number;
@@ -376,7 +401,6 @@ declare class App extends React.Component<AppProps, AppState> {
376
401
  * NOTE if file already exists in editor state, the file data is not updated
377
402
  * */
378
403
  addFiles: ExcalidrawImperativeAPI["addFiles"];
379
- setMobileModeAllowed: ExcalidrawImperativeAPI["setMobileModeAllowed"];
380
404
  private debounceClearHighlightSearchResults;
381
405
  selectElements: ExcalidrawImperativeAPI["selectElements"];
382
406
  bringToFront: ExcalidrawImperativeAPI["bringToFront"];
@@ -402,6 +426,8 @@ declare class App extends React.Component<AppProps, AppState> {
402
426
  captureUpdate?: SceneData["captureUpdate"];
403
427
  forceFlushSync?: boolean | undefined;
404
428
  }) => void;
429
+ applyDeltas: (deltas: StoreDelta[], options?: ApplyToOptions) => [SceneElementsMap, AppState, boolean];
430
+ mutateElement: <TElement extends Mutable<ExcalidrawElement>>(element: TElement, updates: ElementUpdate<TElement>, informMutation?: boolean) => TElement;
405
431
  private triggerRender;
406
432
  /**
407
433
  * @returns whether the menu was toggled on or off
@@ -416,12 +442,9 @@ declare class App extends React.Component<AppProps, AppState> {
416
442
  private onKeyDown;
417
443
  private onKeyUp;
418
444
  private isToolSupported;
419
- setActiveTool: (tool: (({
420
- type: Exclude<ToolType, "image">;
445
+ setActiveTool: (tool: ({
446
+ type: ToolType;
421
447
  } | {
422
- type: Extract<ToolType, "image">;
423
- insertOnCanvasDirectly?: boolean;
424
- }) | {
425
448
  type: "custom";
426
449
  customType: string;
427
450
  }) & {
@@ -447,7 +470,7 @@ declare class App extends React.Component<AppProps, AppState> {
447
470
  private getTextElementAtPosition;
448
471
  private getElementAtPosition;
449
472
  private getElementsAtPosition;
450
- private getElementHitThreshold;
473
+ getElementHitThreshold(element: ExcalidrawElement): number;
451
474
  private hitElement;
452
475
  private getTextBindableContainerAtPosition;
453
476
  private startTextEditing;
@@ -473,6 +496,7 @@ declare class App extends React.Component<AppProps, AppState> {
473
496
  */
474
497
  private maybeCleanupAfterMissingPointerUp;
475
498
  handleCanvasPanUsingWheelOrSpaceDrag: (event: React.PointerEvent<HTMLElement> | MouseEvent) => boolean;
499
+ private startRightClickPanning;
476
500
  private updateGestureOnPointerDown;
477
501
  private initialPointerDownState;
478
502
  private handleDraggingScrollBar;
@@ -496,7 +520,7 @@ declare class App extends React.Component<AppProps, AppState> {
496
520
  sceneY: number;
497
521
  link: string;
498
522
  }) => NonDeleted<ExcalidrawEmbeddableElement> | undefined;
499
- private createImageElement;
523
+ private newImagePlaceholder;
500
524
  private handleLinearElementOnPointerDown;
501
525
  private getCurrentItemRoundness;
502
526
  private createGenericElementOnPointerDown;
@@ -512,12 +536,13 @@ declare class App extends React.Component<AppProps, AppState> {
512
536
  private eraseElements;
513
537
  private initializeImage;
514
538
  /**
515
- * inserts image into elements array and rerenders
539
+ * use during async image initialization,
540
+ * when the placeholder image could have been modified in the meantime,
541
+ * and when you don't want to loose those modifications
516
542
  */
517
- insertImageElement: (imageElement: ExcalidrawImageElement, imageFile: File, showCursorImagePreview?: boolean) => Promise<NonDeleted<InitializedExcalidrawImageElement> | null | undefined>;
518
- private setImagePreviewCursor;
519
- private onImageAction;
520
- initializeImageDimensions: (imageElement: ExcalidrawImageElement, forceNaturalSize?: boolean) => void;
543
+ private getLatestInitializedImageElement;
544
+ private onImageToolbarButtonClick;
545
+ private getImageNaturalDimensions;
521
546
  /** updates image cache, refreshing updated elements and/or setting status
522
547
  to error for images that fail during <img> element creation */
523
548
  private updateImageCache;
@@ -528,10 +553,10 @@ declare class App extends React.Component<AppProps, AppState> {
528
553
  private scheduleImageRefresh;
529
554
  private updateBindingEnabledOnPointerMove;
530
555
  private maybeSuggestBindingAtCursor;
531
- private maybeSuggestBindingsForLinearElementAtCoords;
532
556
  setSelection(elements: readonly NonDeletedExcalidrawElement[]): void;
533
557
  private clearSelection;
534
558
  private handleInteractiveCanvasRef;
559
+ private insertImages;
535
560
  private handleAppOnDrop;
536
561
  loadFileToCanvas: (file: File, fileHandle: FileSystemHandle | null) => Promise<void>;
537
562
  private handleCanvasContextMenu;
@@ -10,6 +10,7 @@ interface ButtonIconProps {
10
10
  /** include standalone style (could interfere with parent styles) */
11
11
  standalone?: boolean;
12
12
  onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
13
+ style?: React.CSSProperties;
13
14
  }
14
15
  export declare const ButtonIcon: import("react").ForwardRefExoticComponent<ButtonIconProps & import("react").RefAttributes<HTMLButtonElement>>;
15
16
  export {};
@@ -4,6 +4,7 @@ interface ColorInputProps {
4
4
  onChange: (color: string) => void;
5
5
  label: string;
6
6
  colorPickerType: ColorPickerType;
7
+ placeholder?: string;
7
8
  }
8
- export declare const ColorInput: ({ color, onChange, label, colorPickerType, }: ColorInputProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const ColorInput: ({ color, onChange, label, colorPickerType, placeholder, }: ColorInputProps) => import("react/jsx-runtime").JSX.Element;
9
10
  export {};
@@ -6,7 +6,11 @@ import type { AppState } from "../../types";
6
6
  export declare const getColor: (color: string) => string | null;
7
7
  interface ColorPickerProps {
8
8
  type: ColorPickerType;
9
- color: string;
9
+ /**
10
+ * null indicates no color should be displayed as active
11
+ * (e.g. when multiple shapes selected with different colors)
12
+ */
13
+ color: string | null;
10
14
  onChange: (color: string) => void;
11
15
  label: string;
12
16
  elements: readonly ExcalidrawElement[];
@@ -1,6 +1,6 @@
1
1
  interface CustomColorListProps {
2
2
  colors: string[];
3
- color: string;
3
+ color: string | null;
4
4
  onChange: (color: string) => void;
5
5
  label: string;
6
6
  }
@@ -3,16 +3,17 @@ import type { ExcalidrawElement } from "@excalidraw/element/types";
3
3
  import type { ColorPaletteCustom } from "@excalidraw/common";
4
4
  import type { ColorPickerType } from "./colorPickerUtils";
5
5
  interface PickerProps {
6
- color: string;
6
+ color: string | null;
7
7
  onChange: (color: string) => void;
8
- label: string;
9
8
  type: ColorPickerType;
10
9
  elements: readonly ExcalidrawElement[];
11
10
  palette: ColorPaletteCustom;
12
11
  updateData: (formData?: any) => void;
13
12
  children?: React.ReactNode;
13
+ showTitle?: boolean;
14
14
  onEyeDropperToggle: (force?: boolean) => void;
15
15
  onEscape: (event: React.KeyboardEvent | KeyboardEvent) => void;
16
+ showHotKey?: boolean;
16
17
  }
17
- export declare const Picker: ({ color, onChange, label, type, elements, palette, updateData, children, onEyeDropperToggle, onEscape, }: PickerProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const Picker: React.ForwardRefExoticComponent<PickerProps & React.RefAttributes<unknown>>;
18
19
  export {};
@@ -1,10 +1,10 @@
1
1
  import type { ColorPaletteCustom } from "@excalidraw/common";
2
2
  interface PickerColorListProps {
3
3
  palette: ColorPaletteCustom;
4
- color: string;
4
+ color: string | null;
5
5
  onChange: (color: string) => void;
6
- label: string;
7
6
  activeShade: number;
7
+ showHotKey?: boolean;
8
8
  }
9
- declare const PickerColorList: ({ palette, color, onChange, label, activeShade, }: PickerColorListProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const PickerColorList: ({ palette, color, onChange, activeShade, showHotKey, }: PickerColorListProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default PickerColorList;
@@ -1,8 +1,9 @@
1
1
  import type { ColorPaletteCustom } from "@excalidraw/common";
2
2
  interface ShadeListProps {
3
- hex: string;
3
+ color: string | null;
4
4
  onChange: (color: string) => void;
5
5
  palette: ColorPaletteCustom;
6
+ showHotKey?: boolean;
6
7
  }
7
- export declare const ShadeList: ({ hex, onChange, palette }: ShadeListProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const ShadeList: ({ color, onChange, palette, showHotKey, }: ShadeListProps) => import("react/jsx-runtime").JSX.Element;
8
9
  export {};
@@ -2,7 +2,7 @@ import type { ColorPickerType } from "./colorPickerUtils";
2
2
  interface TopPicksProps {
3
3
  onChange: (color: string) => void;
4
4
  type: ColorPickerType;
5
- activeColor: string;
5
+ activeColor: string | null;
6
6
  topPicks?: readonly string[];
7
7
  }
8
8
  export declare const TopPicks: ({ onChange, type, activeColor, topPicks, }: TopPicksProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -2,7 +2,7 @@ import type { ExcalidrawElement } from "@excalidraw/element/types";
2
2
  import type { ColorPickerColor, ColorPaletteCustom } from "@excalidraw/common";
3
3
  export declare const getColorNameAndShadeFromColor: ({ palette, color, }: {
4
4
  palette: ColorPaletteCustom;
5
- color: string;
5
+ color: string | null;
6
6
  }) => {
7
7
  colorName: ColorPickerColor;
8
8
  shade: number | null;
@@ -4,7 +4,7 @@ interface ColorPickerKeyNavHandlerProps {
4
4
  event: React.KeyboardEvent;
5
5
  activeColorPickerSection: ActiveColorPickerSectionAtomType;
6
6
  palette: ColorPaletteCustom;
7
- color: string;
7
+ color: string | null;
8
8
  onChange: (color: string) => void;
9
9
  customColors: string[];
10
10
  setActiveColorPickerSection: (update: React.SetStateAction<ActiveColorPickerSectionAtomType>) => void;
@@ -8,6 +8,7 @@ export declare const DEFAULT_CATEGORIES: {
8
8
  editor: string;
9
9
  elements: string;
10
10
  links: string;
11
+ library: string;
11
12
  };
12
13
  type CommandPaletteProps = {
13
14
  customCommandPaletteItems?: CommandPaletteItem[];
@@ -0,0 +1,23 @@
1
+ import type { ConvertibleTypes, ExcalidrawElement, ExcalidrawTextContainer, ExcalidrawTextElementWithContainer } from "@excalidraw/element/types";
2
+ import type { Scene } from "@excalidraw/element";
3
+ import "./ConvertElementTypePopup.scss";
4
+ import type App from "./App";
5
+ export declare const convertElementTypePopupAtom: import("jotai/vanilla/atom").PrimitiveAtom<{
6
+ type: "panel";
7
+ } | null> & {
8
+ init: {
9
+ type: "panel";
10
+ } | null;
11
+ };
12
+ declare const ConvertElementTypePopup: ({ app }: {
13
+ app: App;
14
+ }) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const adjustBoundTextSize: (container: ExcalidrawTextContainer, boundText: ExcalidrawTextElementWithContainer, scene: Scene) => void;
16
+ type ConversionType = "generic" | "linear" | null;
17
+ export declare const convertElementTypes: (app: App, { conversionType, nextType, direction, }: {
18
+ conversionType: ConversionType;
19
+ nextType?: ConvertibleTypes | undefined;
20
+ direction?: "left" | "right" | undefined;
21
+ }) => boolean;
22
+ export declare const getConversionTypeFromElements: (elements: ExcalidrawElement[]) => ConversionType;
23
+ export default ConvertElementTypePopup;
@@ -1,10 +1,11 @@
1
- import type { ElementsMap, ExcalidrawElement } from "@excalidraw/element/types";
1
+ import type { ExcalidrawElement } from "@excalidraw/element/types";
2
+ import type { Scene } from "@excalidraw/element";
2
3
  import "./ElementLinkDialog.scss";
3
4
  import type { AppProps, UIAppState } from "../types";
4
- declare const ElementLinkDialog: ({ sourceElementId, onClose, elementsMap, appState, generateLinkForSelection, }: {
5
+ declare const ElementLinkDialog: ({ sourceElementId, onClose, appState, scene, generateLinkForSelection, }: {
5
6
  sourceElementId: ExcalidrawElement["id"];
6
- elementsMap: ElementsMap;
7
7
  appState: UIAppState;
8
+ scene: Scene;
8
9
  onClose?: (() => void) | undefined;
9
10
  generateLinkForSelection: AppProps["generateLinkForSelection"];
10
11
  }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const Ellipsify: ({ children, ...rest }: {
2
+ children: React.ReactNode;
3
+ } & import("react").HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import "./ExcalidrawLogo.scss";
2
- type LogoSize = "xs" | "small" | "normal" | "large" | "custom";
2
+ type LogoSize = "xs" | "small" | "normal" | "large" | "custom" | "mobile";
3
3
  interface LogoProps {
4
4
  size?: LogoSize;
5
5
  withText?: boolean;
@@ -4,7 +4,7 @@ export type ButtonVariant = "filled" | "outlined" | "icon";
4
4
  export type ButtonColor = "primary" | "danger" | "warning" | "muted" | "success";
5
5
  export type ButtonSize = "medium" | "large";
6
6
  export type FilledButtonProps = {
7
- label: string;
7
+ label?: string;
8
8
  children?: React.ReactNode;
9
9
  onClick?: (event: React.MouseEvent) => void;
10
10
  status?: null | "loading" | "success";
@@ -4,6 +4,7 @@ type FixedSideContainerProps = {
4
4
  children: React.ReactNode;
5
5
  side: "top" | "left" | "right";
6
6
  className?: string;
7
+ sidepanelOpen?: boolean;
7
8
  };
8
- export declare const FixedSideContainer: ({ children, side, className, }: FixedSideContainerProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const FixedSideContainer: ({ children, side, className, sidepanelOpen, }: FixedSideContainerProps) => import("react/jsx-runtime").JSX.Element;
9
10
  export {};
@@ -16,6 +16,7 @@ interface FontPickerProps {
16
16
  onHover: (fontFamily: FontFamilyValues) => void;
17
17
  onLeave: () => void;
18
18
  onPopupChange: (open: boolean) => void;
19
+ compactMode?: boolean;
19
20
  }
20
- export declare const FontPicker: React.MemoExoticComponent<({ isOpened, selectedFontFamily, hoveredFontFamily, onSelect, onHover, onLeave, onPopupChange, }: FontPickerProps) => import("react/jsx-runtime").JSX.Element>;
21
+ export declare const FontPicker: React.MemoExoticComponent<({ isOpened, selectedFontFamily, hoveredFontFamily, onSelect, onHover, onLeave, onPopupChange, compactMode, }: FontPickerProps) => import("react/jsx-runtime").JSX.Element>;
21
22
  export {};
@@ -1,6 +1,8 @@
1
1
  import type { FontFamilyValues } from "@excalidraw/element/types";
2
2
  interface FontPickerTriggerProps {
3
3
  selectedFontFamily: FontFamilyValues | null;
4
+ isOpened?: boolean;
5
+ compactMode?: boolean;
4
6
  }
5
- export declare const FontPickerTrigger: ({ selectedFontFamily, }: FontPickerTriggerProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const FontPickerTrigger: ({ selectedFontFamily, isOpened, compactMode, }: FontPickerTriggerProps) => import("react/jsx-runtime").JSX.Element;
6
8
  export {};
@@ -1,10 +1,11 @@
1
+ import type { EditorInterface } from "@excalidraw/common";
1
2
  import "./HintViewer.scss";
2
- import type { AppClassProperties, Device, UIAppState } from "../types";
3
+ import type { AppClassProperties, UIAppState } from "../types";
3
4
  interface HintViewerProps {
4
5
  appState: UIAppState;
5
6
  isMobile: boolean;
6
- device: Device;
7
+ editorInterface: EditorInterface;
7
8
  app: AppClassProperties;
8
9
  }
9
- export declare const HintViewer: ({ appState, isMobile, device, app, }: HintViewerProps) => import("react/jsx-runtime").JSX.Element | null;
10
+ export declare const HintViewer: ({ appState, isMobile, editorInterface, app, }: HintViewerProps) => import("react/jsx-runtime").JSX.Element | null;
10
11
  export {};
@@ -1,3 +1,5 @@
1
- export declare const InlineIcon: ({ icon }: {
1
+ export declare const InlineIcon: ({ className, icon, size, }: {
2
+ className?: string | undefined;
2
3
  icon: React.ReactNode;
4
+ size?: string | undefined;
3
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -17,6 +17,7 @@ interface LayerUIProps {
17
17
  onPenModeToggle: AppClassProperties["togglePenMode"];
18
18
  showExitZenModeBtn: boolean;
19
19
  langCode: Language["code"];
20
+ renderTopLeftUI?: ExcalidrawProps["renderTopLeftUI"];
20
21
  renderTopRightUI?: ExcalidrawProps["renderTopRightUI"];
21
22
  renderCustomStats?: ExcalidrawProps["renderCustomStats"];
22
23
  UIOptions: AppProps["UIOptions"];
@@ -27,5 +28,5 @@ interface LayerUIProps {
27
28
  isCollaborating: boolean;
28
29
  generateLinkForSelection?: AppProps["generateLinkForSelection"];
29
30
  }
30
- declare const _default: React.MemoExoticComponent<({ actionManager, appState, files, setAppState, elements, canvas, onLockToggle, onHandToolToggle, onPenModeToggle, showExitZenModeBtn, renderTopRightUI, renderCustomStats, UIOptions, onExportImage, renderWelcomeScreen, children, app, isCollaborating, generateLinkForSelection, }: LayerUIProps) => import("react/jsx-runtime").JSX.Element>;
31
+ declare const _default: React.MemoExoticComponent<({ actionManager, appState, files, setAppState, elements, canvas, onLockToggle, onHandToolToggle, onPenModeToggle, showExitZenModeBtn, renderTopLeftUI, renderTopRightUI, renderCustomStats, UIOptions, onExportImage, renderWelcomeScreen, children, app, isCollaborating, generateLinkForSelection, }: LayerUIProps) => import("react/jsx-runtime").JSX.Element>;
31
32
  export default _default;
@@ -3,7 +3,7 @@ import type { ExcalidrawElement, NonDeleted } from "@excalidraw/element/types";
3
3
  import type { SvgCache } from "../hooks/useLibraryItemSvg";
4
4
  import type { LibraryItem } from "../types";
5
5
  import type { ReactNode } from "react";
6
- type LibraryOrPendingItem = (LibraryItem | /* pending library item */ {
6
+ type LibraryOrPendingItem = readonly (LibraryItem | /* pending library item */ {
7
7
  id: null;
8
8
  elements: readonly NonDeleted<ExcalidrawElement>[];
9
9
  })[];
@@ -0,0 +1,4 @@
1
+ export declare const LinkButton: ({ children, href, }: {
2
+ href: string;
3
+ children: React.ReactNode;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import type { NonDeletedExcalidrawElement } from "@excalidraw/element/types";
3
3
  import type { ActionManager } from "../actions/manager";
4
- import type { AppClassProperties, AppProps, AppState, Device, ExcalidrawProps, UIAppState } from "../types";
4
+ import type { AppClassProperties, AppProps, AppState, ExcalidrawProps, UIAppState } from "../types";
5
5
  import type { JSX } from "react";
6
6
  type MobileMenuProps = {
7
7
  appState: UIAppState;
@@ -10,16 +10,15 @@ type MobileMenuProps = {
10
10
  renderImageExportDialog: () => React.ReactNode;
11
11
  setAppState: React.Component<any, AppState>["setState"];
12
12
  elements: readonly NonDeletedExcalidrawElement[];
13
- onLockToggle: () => void;
14
13
  onHandToolToggle: () => void;
15
14
  onPenModeToggle: AppClassProperties["togglePenMode"];
16
15
  renderTopRightUI?: (isMobile: boolean, appState: UIAppState) => JSX.Element | null;
17
- renderCustomStats?: ExcalidrawProps["renderCustomStats"];
16
+ renderTopLeftUI?: (isMobile: boolean, appState: UIAppState) => JSX.Element | null;
18
17
  renderSidebars: () => JSX.Element | null;
19
- device: Device;
20
18
  renderWelcomeScreen: boolean;
21
19
  UIOptions: AppProps["UIOptions"];
22
20
  app: AppClassProperties;
21
+ renderCustomStats?: ExcalidrawProps["renderCustomStats"];
23
22
  };
24
- export declare const MobileMenu: ({ appState, elements, actionManager, setAppState, onLockToggle, onHandToolToggle, onPenModeToggle, renderTopRightUI, renderCustomStats, renderSidebars, device, renderWelcomeScreen, UIOptions, app, }: MobileMenuProps) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const MobileMenu: ({ appState, elements, actionManager, setAppState, onHandToolToggle, renderTopLeftUI, renderTopRightUI, renderSidebars, renderWelcomeScreen, UIOptions, app, renderCustomStats, onPenModeToggle, }: MobileMenuProps) => import("react/jsx-runtime").JSX.Element;
25
24
  export {};
@@ -0,0 +1,10 @@
1
+ import "./ToolIcon.scss";
2
+ import "./MobileToolBar.scss";
3
+ import type { AppClassProperties, UIAppState } from "../types";
4
+ type MobileToolBarProps = {
5
+ app: AppClassProperties;
6
+ onHandToolToggle: () => void;
7
+ setAppState: React.Component<any, UIAppState>["setState"];
8
+ };
9
+ export declare const MobileToolBar: ({ app, onHandToolToggle, setAppState, }: MobileToolBarProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -10,6 +10,7 @@ type Props = {
10
10
  offsetTop?: number;
11
11
  viewportWidth?: number;
12
12
  viewportHeight?: number;
13
+ className?: string;
13
14
  };
14
- export declare const Popover: ({ children, left, top, onCloseRequest, fitInViewport, offsetLeft, offsetTop, viewportWidth, viewportHeight, }: Props) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const Popover: ({ children, left, top, onCloseRequest, fitInViewport, offsetLeft, offsetTop, viewportWidth, viewportHeight, className, }: Props) => import("react/jsx-runtime").JSX.Element;
15
16
  export {};
@@ -10,6 +10,7 @@ interface PropertiesPopoverProps {
10
10
  onPointerLeave?: React.PointerEventHandler<HTMLDivElement>;
11
11
  onFocusOutside?: Popover.PopoverContentProps["onFocusOutside"];
12
12
  onPointerDownOutside?: Popover.PopoverContentProps["onPointerDownOutside"];
13
+ preventAutoFocusOnTouch?: boolean;
13
14
  }
14
15
  export declare const PropertiesPopover: React.ForwardRefExoticComponent<PropertiesPopoverProps & React.RefAttributes<HTMLDivElement>>;
15
16
  export {};
@@ -1,5 +1,5 @@
1
1
  import type { JSX } from "react";
2
- export declare const ButtonIconSelect: <T extends Object>(props: {
2
+ export declare const RadioSelection: <T extends Object>(props: {
3
3
  options: {
4
4
  value: T;
5
5
  text: string;