@dwelle/excalidraw 0.6.0-rc.1 → 0.6.0-rc.3

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 (233) hide show
  1. package/README.md +3 -4
  2. package/dist/dev/{chunk-EFVS2MI5.js → chunk-FCTATTEX.js} +2 -2
  3. package/dist/dev/{chunk-EFVS2MI5.js.map → chunk-FCTATTEX.js.map} +1 -1
  4. package/dist/dev/chunk-GPAPUEH7.js +25914 -0
  5. package/dist/dev/chunk-GPAPUEH7.js.map +7 -0
  6. package/dist/dev/data/image-KIZE4OBD.js +13 -0
  7. package/dist/dev/index.css.map +1 -1
  8. package/dist/dev/index.js +33243 -37
  9. package/dist/dev/index.js.map +4 -4
  10. package/dist/dev/subset-shared.chunk.js +1 -1
  11. package/dist/dev/subset-worker.chunk.js +1 -1
  12. package/dist/prod/{chunk-P7457GAF.js → chunk-DZ7HA6XS.js} +1 -1
  13. package/dist/prod/chunk-TQDSDB2B.js +46 -0
  14. package/dist/prod/data/image-SCXWNX5A.js +1 -0
  15. package/dist/prod/index.js +108 -1
  16. package/dist/prod/subset-shared.chunk.js +1 -1
  17. package/dist/prod/subset-worker.chunk.js +1 -1
  18. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +3 -3
  19. package/dist/types/excalidraw/actions/actionAlign.d.ts +18 -18
  20. package/dist/types/excalidraw/actions/actionBoundText.d.ts +3 -3
  21. package/dist/types/excalidraw/actions/actionCanvas.d.ts +31 -31
  22. package/dist/types/excalidraw/actions/actionClipboard.d.ts +17 -17
  23. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +3 -3
  24. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +5 -5
  25. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  26. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -3
  27. package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -6
  28. package/dist/types/excalidraw/actions/actionElementLock.d.ts +4 -4
  29. package/dist/types/excalidraw/actions/actionExport.d.ts +30 -30
  30. package/dist/types/excalidraw/actions/actionFinalize.d.ts +3 -3
  31. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  32. package/dist/types/excalidraw/actions/actionFrame.d.ts +9 -9
  33. package/dist/types/excalidraw/actions/actionGroup.d.ts +8 -8
  34. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +2 -2
  35. package/dist/types/excalidraw/actions/actionLink.d.ts +3 -3
  36. package/dist/types/excalidraw/actions/actionMenu.d.ts +6 -6
  37. package/dist/types/excalidraw/actions/actionNavigate.d.ts +3 -3
  38. package/dist/types/excalidraw/actions/actionProperties.d.ts +31 -31
  39. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +2 -2
  40. package/dist/types/excalidraw/actions/actionStyles.d.ts +5 -5
  41. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  42. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +2 -2
  43. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +2 -2
  44. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +3 -3
  45. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +2 -2
  46. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +2 -2
  47. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +2 -2
  48. package/dist/types/excalidraw/actions/actionZindex.d.ts +14 -14
  49. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  50. package/dist/types/excalidraw/actions/types.d.ts +2 -2
  51. package/dist/types/excalidraw/appState.d.ts +9 -9
  52. package/dist/types/excalidraw/clipboard.d.ts +4 -4
  53. package/dist/types/excalidraw/components/Actions.d.ts +6 -7
  54. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -2
  55. package/dist/types/excalidraw/components/App.d.ts +13 -3
  56. package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
  57. package/dist/types/excalidraw/components/BraveMeasureTextError.d.ts +1 -2
  58. package/dist/types/excalidraw/components/Button.d.ts +1 -1
  59. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -1
  60. package/dist/types/excalidraw/components/ButtonIconCycle.d.ts +2 -2
  61. package/dist/types/excalidraw/components/ButtonIconSelect.d.ts +2 -2
  62. package/dist/types/excalidraw/components/ButtonSelect.d.ts +1 -2
  63. package/dist/types/excalidraw/components/ButtonSeparator.d.ts +1 -2
  64. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +1 -2
  65. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -2
  66. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -2
  67. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  68. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +1 -1
  69. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -2
  70. package/dist/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +1 -1
  71. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -2
  72. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -2
  73. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -2
  74. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -2
  75. package/dist/types/excalidraw/components/ContextMenu.d.ts +1 -1
  76. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -2
  77. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
  78. package/dist/types/excalidraw/components/Dialog.d.ts +1 -1
  79. package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  80. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -2
  81. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  82. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  83. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  84. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -2
  85. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -2
  86. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -1
  87. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -2
  88. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  89. package/dist/types/excalidraw/components/HandButton.d.ts +1 -2
  90. package/dist/types/excalidraw/components/HelpButton.d.ts +1 -2
  91. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -2
  92. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -2
  93. package/dist/types/excalidraw/components/IconPicker.d.ts +2 -2
  94. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -3
  95. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  96. package/dist/types/excalidraw/components/InlineIcon.d.ts +1 -2
  97. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
  98. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +1 -2
  99. package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
  100. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  101. package/dist/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +1 -2
  102. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -2
  103. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  104. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -2
  105. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +2 -2
  106. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  107. package/dist/types/excalidraw/components/LockButton.d.ts +1 -2
  108. package/dist/types/excalidraw/components/MagicButton.d.ts +2 -2
  109. package/dist/types/excalidraw/components/MobileMenu.d.ts +2 -1
  110. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +4 -4
  111. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +6 -6
  112. package/dist/types/excalidraw/components/Paragraph.d.ts +1 -2
  113. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  114. package/dist/types/excalidraw/components/PenModeButton.d.ts +1 -2
  115. package/dist/types/excalidraw/components/Popover.d.ts +1 -1
  116. package/dist/types/excalidraw/components/ProjectName.d.ts +1 -2
  117. package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -2
  118. package/dist/types/excalidraw/components/RadioGroup.d.ts +1 -1
  119. package/dist/types/excalidraw/components/Range.d.ts +1 -2
  120. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -2
  121. package/dist/types/excalidraw/components/ScrollableList.d.ts +1 -1
  122. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -2
  123. package/dist/types/excalidraw/components/ShareableLinkDialog.d.ts +1 -2
  124. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +6 -6
  125. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -2
  126. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -1
  127. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -1
  128. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -1
  129. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -1
  130. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -2
  131. package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -0
  132. package/dist/types/excalidraw/components/Spinner.d.ts +1 -2
  133. package/dist/types/excalidraw/components/Stack.d.ts +2 -3
  134. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -2
  135. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  136. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +1 -1
  137. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -2
  138. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  139. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -2
  140. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -2
  141. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -2
  142. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -2
  143. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -2
  144. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -2
  145. package/dist/types/excalidraw/components/Stats/index.d.ts +4 -4
  146. package/dist/types/excalidraw/components/Switch.d.ts +1 -2
  147. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +1 -2
  148. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +1 -1
  149. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +1 -1
  150. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
  151. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +1 -1
  152. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +1 -1
  153. package/dist/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -2
  154. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -1
  155. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -1
  156. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -1
  157. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +1 -1
  158. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +2 -1
  159. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  160. package/dist/types/excalidraw/components/Toast.d.ts +1 -1
  161. package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
  162. package/dist/types/excalidraw/components/UserList.d.ts +1 -1
  163. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -2
  164. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -2
  165. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  166. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +11 -11
  167. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +1 -1
  168. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +1 -1
  169. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +4 -3
  170. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -2
  171. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +1 -1
  172. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +1 -1
  173. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +2 -1
  174. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +1 -2
  175. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  176. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -2
  177. package/dist/types/excalidraw/components/footer/Footer.d.ts +1 -2
  178. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +1 -2
  179. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -2
  180. package/dist/types/excalidraw/components/icons.d.ts +178 -178
  181. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
  182. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +12 -13
  183. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +9 -9
  184. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +10 -10
  185. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +3 -4
  186. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -15
  187. package/dist/types/excalidraw/constants.d.ts +1 -0
  188. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  189. package/dist/types/excalidraw/element/ElementCanvasButtons.d.ts +1 -2
  190. package/dist/types/excalidraw/element/binding.d.ts +1 -2
  191. package/dist/types/excalidraw/element/collision.d.ts +10 -1
  192. package/dist/types/excalidraw/element/distance.d.ts +3 -0
  193. package/dist/types/excalidraw/element/embeddable.d.ts +1 -1
  194. package/dist/types/excalidraw/element/newElement.d.ts +1 -1
  195. package/dist/types/excalidraw/element/transformHandles.d.ts +2 -2
  196. package/dist/types/excalidraw/element/types.d.ts +1 -1
  197. package/dist/types/excalidraw/element/utils.d.ts +21 -0
  198. package/dist/types/excalidraw/fonts/FontMetadata.d.ts +1 -1
  199. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +1 -1
  200. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -1
  201. package/dist/types/excalidraw/index.d.ts +2 -4
  202. package/dist/types/excalidraw/shapes.d.ts +11 -12
  203. package/dist/types/excalidraw/store.d.ts +6 -6
  204. package/dist/types/excalidraw/types.d.ts +3 -2
  205. package/dist/types/excalidraw/utils.d.ts +3 -3
  206. package/dist/types/excalidraw/visualdebug.d.ts +7 -8
  207. package/dist/types/excalidraw/zindex.d.ts +2 -2
  208. package/dist/types/math/curve.d.ts +22 -14
  209. package/dist/types/math/ellipse.d.ts +44 -0
  210. package/dist/types/math/index.d.ts +1 -1
  211. package/dist/types/math/line.d.ts +2 -30
  212. package/dist/types/math/point.d.ts +1 -29
  213. package/dist/types/math/rectangle.d.ts +3 -0
  214. package/dist/types/math/segment.d.ts +8 -1
  215. package/dist/types/math/types.d.ts +15 -6
  216. package/dist/types/math/vector.d.ts +0 -4
  217. package/dist/types/utils/export.d.ts +1 -1
  218. package/package.json +6 -14
  219. package/dist/dev/chunk-637CAVTS.js +0 -57639
  220. package/dist/dev/chunk-637CAVTS.js.map +0 -7
  221. package/dist/dev/data/image-N6Y7BWW6.css +0 -6753
  222. package/dist/dev/data/image-N6Y7BWW6.css.map +0 -7
  223. package/dist/dev/data/image-QMQX6YR5.js +0 -15
  224. package/dist/prod/chunk-PEDHHNBJ.js +0 -153
  225. package/dist/prod/data/image-IP6M4LZC.js +0 -1
  226. package/dist/prod/data/image-KGQIL6Y4.css +0 -1
  227. package/dist/types/math/arc.d.ts +0 -6
  228. package/dist/types/math/ga/ga.d.ts +0 -63
  229. package/dist/types/math/ga/gadirections.d.ts +0 -8
  230. package/dist/types/math/ga/galines.d.ts +0 -22
  231. package/dist/types/math/ga/gapoints.d.ts +0 -7
  232. package/dist/types/math/ga/gatransforms.d.ts +0 -10
  233. /package/dist/dev/data/{image-QMQX6YR5.js.map → image-KIZE4OBD.js.map} +0 -0
@@ -251,7 +251,7 @@ declare class App extends React.Component<AppProps, AppState> {
251
251
  private resetEditingFrame;
252
252
  private renderFrameNames;
253
253
  private toggleOverscrollBehavior;
254
- render(): JSX.Element;
254
+ render(): import("react/jsx-runtime").JSX.Element;
255
255
  focusContainer: AppClassProperties["focusContainer"];
256
256
  getSceneElementsIncludingDeleted: () => readonly import("../element/types").OrderedExcalidrawElement[];
257
257
  getSceneElements: () => readonly Ordered<NonDeletedExcalidrawElement>[];
@@ -371,8 +371,18 @@ declare class App extends React.Component<AppProps, AppState> {
371
371
  elements?: SceneData["elements"];
372
372
  appState?: Pick<AppState, K> | null | undefined;
373
373
  collaborators?: SceneData["collaborators"];
374
- /** @default StoreAction.NONE */
375
- storeAction?: SceneData["storeAction"];
374
+ /**
375
+ * Controls which updates should be captured by the `Store`. Captured updates are emmitted and listened to by other components, such as `History` for undo / redo purposes.
376
+ *
377
+ * - `CaptureUpdateAction.IMMEDIATELY`: Updates are immediately undoable. Use for most local updates.
378
+ * - `CaptureUpdateAction.NEVER`: Updates never make it to undo/redo stack. Use for remote updates or scene initialization.
379
+ * - `CaptureUpdateAction.EVENTUALLY`: Updates will be eventually be captured as part of a future increment.
380
+ *
381
+ * Check [API docs](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/props/excalidraw-api#captureUpdate) for more details.
382
+ *
383
+ * @default CaptureUpdateAction.EVENTUALLY
384
+ */
385
+ captureUpdate?: SceneData["captureUpdate"];
376
386
  }) => void;
377
387
  private triggerRender;
378
388
  /**
@@ -7,5 +7,5 @@ type AvatarProps = {
7
7
  src?: string;
8
8
  className?: string;
9
9
  };
10
- export declare const Avatar: ({ color, onClick, name, src, className, }: AvatarProps) => JSX.Element;
10
+ export declare const Avatar: ({ color, onClick, name, src, className, }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
11
11
  export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare const BraveMeasureTextError: () => JSX.Element;
1
+ declare const BraveMeasureTextError: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default BraveMeasureTextError;
@@ -13,5 +13,5 @@ interface ButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes
13
13
  * Style can be customised using `className` or `style` prop.
14
14
  * Accepts all props that a regular `button` element accepts.
15
15
  */
16
- export declare const Button: ({ type, onSelect, selected, children, className, ...rest }: ButtonProps) => JSX.Element;
16
+ export declare const Button: ({ type, onSelect, selected, children, className, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
17
17
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type { JSX } from "react";
2
2
  import "./ButtonIcon.scss";
3
3
  interface ButtonIconProps {
4
4
  icon: JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type { JSX } from "react";
2
2
  export declare const ButtonIconCycle: <T extends unknown>({ options, value, onChange, group, }: {
3
3
  options: {
4
4
  value: T;
@@ -8,4 +8,4 @@ export declare const ButtonIconCycle: <T extends unknown>({ options, value, onCh
8
8
  value: T | null;
9
9
  onChange: (value: T) => void;
10
10
  group: string;
11
- }) => JSX.Element;
11
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type { JSX } from "react";
2
2
  export declare const ButtonIconSelect: <T extends Object>(props: {
3
3
  options: {
4
4
  value: T;
@@ -17,4 +17,4 @@ export declare const ButtonIconSelect: <T extends Object>(props: {
17
17
  } | {
18
18
  type: "button";
19
19
  onClick: (value: T, event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
20
- })) => JSX.Element;
20
+ })) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const ButtonSelect: <T extends Object>({ options, value, onChange, group, }: {
3
2
  options: {
4
3
  value: T;
@@ -7,4 +6,4 @@ export declare const ButtonSelect: <T extends Object>({ options, value, onChange
7
6
  value: T | null;
8
7
  onChange: (value: T) => void;
9
8
  group: string;
10
- }) => JSX.Element;
9
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare const ButtonSeparator: () => JSX.Element;
1
+ export declare const ButtonSeparator: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ColorPickerType } from "./colorPickerUtils";
3
2
  interface ColorInputProps {
4
3
  color: string;
@@ -6,5 +5,5 @@ interface ColorInputProps {
6
5
  label: string;
7
6
  colorPickerType: ColorPickerType;
8
7
  }
9
- export declare const ColorInput: ({ color, onChange, label, colorPickerType, }: ColorInputProps) => JSX.Element;
8
+ export declare const ColorInput: ({ color, onChange, label, colorPickerType, }: ColorInputProps) => import("react/jsx-runtime").JSX.Element;
10
9
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawElement } from "../../element/types";
3
2
  import type { AppState } from "../../types";
4
3
  import type { ColorPickerType } from "./colorPickerUtils";
@@ -16,5 +15,5 @@ interface ColorPickerProps {
16
15
  topPicks?: ColorTuple;
17
16
  updateData: (formData?: any) => void;
18
17
  }
19
- export declare const ColorPicker: ({ type, color, onChange, label, elements, palette, topPicks, updateData, appState, }: ColorPickerProps) => JSX.Element;
18
+ export declare const ColorPicker: ({ type, color, onChange, label, elements, palette, topPicks, updateData, appState, }: ColorPickerProps) => import("react/jsx-runtime").JSX.Element;
20
19
  export {};
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  interface CustomColorListProps {
3
2
  colors: string[];
4
3
  color: string;
5
4
  onChange: (color: string) => void;
6
5
  label: string;
7
6
  }
8
- export declare const CustomColorList: ({ colors, color, onChange, label, }: CustomColorListProps) => JSX.Element;
7
+ export declare const CustomColorList: ({ colors, color, onChange, label, }: CustomColorListProps) => import("react/jsx-runtime").JSX.Element;
9
8
  export {};
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  interface HotkeyLabelProps {
3
2
  color: string;
4
3
  keyLabel: string | number;
5
4
  isCustomColor?: boolean;
6
5
  isShade?: boolean;
7
6
  }
8
- declare const HotkeyLabel: ({ color, keyLabel, isCustomColor, isShade, }: HotkeyLabelProps) => JSX.Element;
7
+ declare const HotkeyLabel: ({ color, keyLabel, isCustomColor, isShade, }: HotkeyLabelProps) => import("react/jsx-runtime").JSX.Element;
9
8
  export default HotkeyLabel;
@@ -14,5 +14,5 @@ interface PickerProps {
14
14
  onEyeDropperToggle: (force?: boolean) => void;
15
15
  onEscape: (event: React.KeyboardEvent | KeyboardEvent) => void;
16
16
  }
17
- export declare const Picker: ({ color, onChange, label, type, elements, palette, updateData, children, onEyeDropperToggle, onEscape, }: PickerProps) => JSX.Element;
17
+ export declare const Picker: ({ color, onChange, label, type, elements, palette, updateData, children, onEyeDropperToggle, onEscape, }: PickerProps) => import("react/jsx-runtime").JSX.Element;
18
18
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ColorPaletteCustom } from "../../colors";
3
2
  interface PickerColorListProps {
4
3
  palette: ColorPaletteCustom;
@@ -7,5 +6,5 @@ interface PickerColorListProps {
7
6
  label: string;
8
7
  activeShade: number;
9
8
  }
10
- declare const PickerColorList: ({ palette, color, onChange, label, activeShade, }: PickerColorListProps) => JSX.Element;
9
+ declare const PickerColorList: ({ palette, color, onChange, label, activeShade, }: PickerColorListProps) => import("react/jsx-runtime").JSX.Element;
11
10
  export default PickerColorList;
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
2
  declare const PickerHeading: ({ children }: {
3
3
  children: ReactNode;
4
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
5
  export default PickerHeading;
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  import type { ColorPaletteCustom } from "../../colors";
3
2
  interface ShadeListProps {
4
3
  hex: string;
5
4
  onChange: (color: string) => void;
6
5
  palette: ColorPaletteCustom;
7
6
  }
8
- export declare const ShadeList: ({ hex, onChange, palette }: ShadeListProps) => JSX.Element;
7
+ export declare const ShadeList: ({ hex, onChange, palette }: ShadeListProps) => import("react/jsx-runtime").JSX.Element;
9
8
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ColorPickerType } from "./colorPickerUtils";
3
2
  interface TopPicksProps {
4
3
  onChange: (color: string) => void;
@@ -6,5 +5,5 @@ interface TopPicksProps {
6
5
  activeColor: string;
7
6
  topPicks?: readonly string[];
8
7
  }
9
- export declare const TopPicks: ({ onChange, type, activeColor, topPicks, }: TopPicksProps) => JSX.Element | null;
8
+ export declare const TopPicks: ({ onChange, type, activeColor, topPicks, }: TopPicksProps) => import("react/jsx-runtime").JSX.Element | null;
10
9
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { CommandPaletteItem } from "./types";
3
2
  import * as defaultItems from "./defaultCommandPaletteItems";
4
3
  import "./CommandPalette.scss";
@@ -13,7 +12,7 @@ export declare const DEFAULT_CATEGORIES: {
13
12
  type CommandPaletteProps = {
14
13
  customCommandPaletteItems?: CommandPaletteItem[];
15
14
  };
16
- export declare const CommandPalette: ((props: CommandPaletteProps) => JSX.Element | null) & {
15
+ export declare const CommandPalette: ((props: CommandPaletteProps) => import("react/jsx-runtime").JSX.Element | null) & {
17
16
  defaultItems: typeof defaultItems;
18
17
  };
19
18
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { DialogProps } from "./Dialog";
3
2
  import "./ConfirmDialog.scss";
4
3
  interface Props extends Omit<DialogProps, "onCloseRequest"> {
@@ -7,5 +6,5 @@ interface Props extends Omit<DialogProps, "onCloseRequest"> {
7
6
  confirmText?: string;
8
7
  cancelText?: string;
9
8
  }
10
- declare const ConfirmDialog: (props: Props) => JSX.Element;
9
+ declare const ConfirmDialog: (props: Props) => import("react/jsx-runtime").JSX.Element;
11
10
  export default ConfirmDialog;
@@ -12,5 +12,5 @@ type ContextMenuProps = {
12
12
  onClose: (callback?: () => void) => void;
13
13
  };
14
14
  export declare const CONTEXT_MENU_SEPARATOR = "separator";
15
- export declare const ContextMenu: React.MemoExoticComponent<({ actionManager, items, top, left, onClose }: ContextMenuProps) => JSX.Element>;
15
+ export declare const ContextMenu: React.MemoExoticComponent<({ actionManager, items, top, left, onClose }: ContextMenuProps) => import("react/jsx-runtime").JSX.Element>;
16
16
  export {};
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import "./ToolIcon.scss";
3
2
  import type { Theme } from "../element/types";
4
3
  export declare const DarkModeToggle: (props: {
5
4
  value: Theme;
6
5
  onChange: (value: Theme) => void;
7
6
  title?: string | undefined;
8
- }) => JSX.Element;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -25,7 +25,7 @@ export declare const DefaultSidebar: import("react").FC<Omit<MarkOptional<Omit<{
25
25
  TabTriggers: {
26
26
  ({ children }: {
27
27
  children: React.ReactNode;
28
- }): JSX.Element;
28
+ }): import("react/jsx-runtime").JSX.Element;
29
29
  displayName: string;
30
30
  };
31
31
  };
@@ -10,4 +10,4 @@ export interface DialogProps {
10
10
  autofocus?: boolean;
11
11
  closeOnClickOutside?: boolean;
12
12
  }
13
- export declare const Dialog: (props: DialogProps) => JSX.Element;
13
+ export declare const Dialog: (props: DialogProps) => import("react/jsx-runtime").JSX.Element;
@@ -6,5 +6,5 @@ interface DialogActionButtonProps {
6
6
  actionType?: "primary" | "danger";
7
7
  isLoading?: boolean;
8
8
  }
9
- declare const DialogActionButton: ({ label, onClick, className, children, actionType, type, isLoading, ...rest }: DialogActionButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>) => JSX.Element;
9
+ declare const DialogActionButton: ({ label, onClick, className, children, actionType, type, isLoading, ...rest }: DialogActionButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
10
10
  export default DialogActionButton;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { AppProps, UIAppState } from "../types";
3
2
  import type { ElementsMap, ExcalidrawElement } from "../element/types";
4
3
  import "./ElementLinkDialog.scss";
@@ -8,5 +7,5 @@ declare const ElementLinkDialog: ({ sourceElementId, onClose, elementsMap, appSt
8
7
  appState: UIAppState;
9
8
  onClose?: (() => void) | undefined;
10
9
  generateLinkForSelection: AppProps["generateLinkForSelection"];
11
- }) => JSX.Element;
10
+ }) => import("react/jsx-runtime").JSX.Element;
12
11
  export default ElementLinkDialog;
@@ -2,4 +2,4 @@ import React from "react";
2
2
  export declare const ErrorDialog: ({ children, onClose, }: {
3
3
  children?: React.ReactNode;
4
4
  onClose?: (() => void) | undefined;
5
- }) => JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -12,5 +12,5 @@ interface LogoProps {
12
12
  */
13
13
  isNotLink?: boolean;
14
14
  }
15
- export declare const ExcalidrawLogo: ({ style, size, withText, }: LogoProps) => JSX.Element;
15
+ export declare const ExcalidrawLogo: ({ style, size, withText, }: LogoProps) => import("react/jsx-runtime").JSX.Element;
16
16
  export {};
@@ -5,5 +5,5 @@ type FixedSideContainerProps = {
5
5
  side: "top" | "left" | "right";
6
6
  className?: string;
7
7
  };
8
- export declare const FixedSideContainer: ({ children, side, className, }: FixedSideContainerProps) => JSX.Element;
8
+ export declare const FixedSideContainer: ({ children, side, className, }: FixedSideContainerProps) => import("react/jsx-runtime").JSX.Element;
9
9
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { UserToFollow } from "../../types";
3
2
  import "./FollowMode.scss";
4
3
  interface FollowModeProps {
@@ -7,5 +6,5 @@ interface FollowModeProps {
7
6
  userToFollow: UserToFollow;
8
7
  onDisconnect: () => void;
9
8
  }
10
- declare const FollowMode: ({ height, width, userToFollow, onDisconnect, }: FollowModeProps) => JSX.Element;
9
+ declare const FollowMode: ({ height, width, userToFollow, onDisconnect, }: FollowModeProps) => import("react/jsx-runtime").JSX.Element;
11
10
  export default FollowMode;
@@ -3,7 +3,7 @@ import type { FontFamilyValues } from "../../element/types";
3
3
  import "./FontPicker.scss";
4
4
  export declare const DEFAULT_FONTS: {
5
5
  value: number;
6
- icon: JSX.Element;
6
+ icon: import("react/jsx-runtime").JSX.Element;
7
7
  text: string;
8
8
  testId: string;
9
9
  }[];
@@ -17,5 +17,5 @@ interface FontPickerProps {
17
17
  onLeave: () => void;
18
18
  onPopupChange: (open: boolean) => void;
19
19
  }
20
- export declare const FontPicker: React.MemoExoticComponent<({ isOpened, selectedFontFamily, hoveredFontFamily, onSelect, onHover, onLeave, onPopupChange, }: FontPickerProps) => JSX.Element>;
20
+ export declare const FontPicker: React.MemoExoticComponent<({ isOpened, selectedFontFamily, hoveredFontFamily, onSelect, onHover, onLeave, onPopupChange, }: FontPickerProps) => import("react/jsx-runtime").JSX.Element>;
21
21
  export {};
@@ -1,3 +1,4 @@
1
+ import type { JSX } from "react";
1
2
  import React from "react";
2
3
  import { DropDownMenuItemBadgeType } from "../dropdownMenu/DropdownMenuItem";
3
4
  import { type FontFamilyValues } from "../../element/types";
@@ -21,5 +22,5 @@ interface FontPickerListProps {
21
22
  onOpen: () => void;
22
23
  onClose: () => void;
23
24
  }
24
- export declare const FontPickerList: React.MemoExoticComponent<({ selectedFontFamily, hoveredFontFamily, onSelect, onHover, onLeave, onOpen, onClose, }: FontPickerListProps) => JSX.Element>;
25
+ export declare const FontPickerList: React.MemoExoticComponent<({ selectedFontFamily, hoveredFontFamily, onSelect, onHover, onLeave, onOpen, onClose, }: FontPickerListProps) => import("react/jsx-runtime").JSX.Element>;
25
26
  export {};
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import type { FontFamilyValues } from "../../element/types";
3
2
  interface FontPickerTriggerProps {
4
3
  selectedFontFamily: FontFamilyValues | null;
5
4
  }
6
- export declare const FontPickerTrigger: ({ selectedFontFamily, }: FontPickerTriggerProps) => JSX.Element;
5
+ export declare const FontPickerTrigger: ({ selectedFontFamily, }: FontPickerTriggerProps) => import("react/jsx-runtime").JSX.Element;
7
6
  export {};
@@ -3,7 +3,7 @@ import type { Node } from "../../utils";
3
3
  import { type FontDescriptor } from "./FontPickerList";
4
4
  interface FontPickerKeyNavHandlerProps {
5
5
  event: React.KeyboardEvent<HTMLDivElement>;
6
- inputRef: React.RefObject<HTMLInputElement>;
6
+ inputRef: React.RefObject<HTMLInputElement | null>;
7
7
  hoveredFont: Node<FontDescriptor> | undefined;
8
8
  filteredFonts: Node<FontDescriptor>[];
9
9
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./ToolIcon.scss";
3
2
  type LockIconProps = {
4
3
  title?: string;
@@ -7,5 +6,5 @@ type LockIconProps = {
7
6
  onChange?(): void;
8
7
  isMobile?: boolean;
9
8
  };
10
- export declare const HandButton: (props: LockIconProps) => JSX.Element;
9
+ export declare const HandButton: (props: LockIconProps) => import("react/jsx-runtime").JSX.Element;
11
10
  export {};
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  type HelpButtonProps = {
3
2
  name?: string;
4
3
  id?: string;
5
4
  onClick?(): void;
6
5
  };
7
- export declare const HelpButton: (props: HelpButtonProps) => JSX.Element;
6
+ export declare const HelpButton: (props: HelpButtonProps) => import("react/jsx-runtime").JSX.Element;
8
7
  export {};
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  import "./HelpDialog.scss";
3
2
  export declare const HelpDialog: ({ onClose }: {
4
3
  onClose?: (() => void) | undefined;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { AppClassProperties, Device, UIAppState } from "../types";
3
2
  import "./HintViewer.scss";
4
3
  interface HintViewerProps {
@@ -7,5 +6,5 @@ interface HintViewerProps {
7
6
  device: Device;
8
7
  app: AppClassProperties;
9
8
  }
10
- export declare const HintViewer: ({ appState, isMobile, device, app, }: HintViewerProps) => JSX.Element | null;
9
+ export declare const HintViewer: ({ appState, isMobile, device, app, }: HintViewerProps) => import("react/jsx-runtime").JSX.Element | null;
11
10
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type { JSX } from "react";
2
2
  import "./IconPicker.scss";
3
3
  export declare function IconPicker<T>({ value, label, options, onChange, group, numberOfOptionsToAlwaysShow, }: {
4
4
  label: string;
@@ -12,4 +12,4 @@ export declare function IconPicker<T>({ value, label, options, onChange, group,
12
12
  onChange: (value: T) => void;
13
13
  numberOfOptionsToAlwaysShow?: number;
14
14
  group?: string;
15
- }): JSX.Element;
15
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  import type { ActionManager } from "../actions/manager";
3
2
  import type { AppClassProperties, BinaryFiles, UIAppState } from "../types";
4
3
  import type { NonDeletedExcalidrawElement } from "../element/types";
5
4
  import "./ImageExportDialog.scss";
6
- export declare const ErrorCanvasPreview: () => JSX.Element;
5
+ export declare const ErrorCanvasPreview: () => import("react/jsx-runtime").JSX.Element;
7
6
  export declare const ImageExportDialog: ({ elements, appState, files, actionManager, onExportImage, onCloseRequest, name, }: {
8
7
  appState: UIAppState;
9
8
  elements: readonly NonDeletedExcalidrawElement[];
@@ -12,4 +11,4 @@ export declare const ImageExportDialog: ({ elements, appState, files, actionMana
12
11
  onExportImage: AppClassProperties["onExportImage"];
13
12
  onCloseRequest: () => void;
14
13
  name: string;
15
- }) => JSX.Element;
14
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -6,5 +6,5 @@ interface Props {
6
6
  children: React.ReactElement;
7
7
  theme?: Theme;
8
8
  }
9
- export declare const InitializeApp: (props: Props) => JSX.Element;
9
+ export declare const InitializeApp: (props: Props) => import("react/jsx-runtime").JSX.Element;
10
10
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const InlineIcon: ({ icon }: {
3
2
  icon: React.ReactNode;
4
- }) => JSX.Element;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -12,4 +12,4 @@ export declare const JSONExportDialog: ({ elements, appState, files, actionManag
12
12
  exportOpts: ExportOpts;
13
13
  canvas: HTMLCanvasElement;
14
14
  setAppState: React.Component<any, UIAppState>["setState"];
15
- }) => JSX.Element;
15
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./ToolIcon.scss";
3
2
  type LaserPointerIconProps = {
4
3
  title?: string;
@@ -7,5 +6,5 @@ type LaserPointerIconProps = {
7
6
  onChange?(): void;
8
7
  isMobile?: boolean;
9
8
  };
10
- export declare const LaserPointerButton: (props: LaserPointerIconProps) => JSX.Element;
9
+ export declare const LaserPointerButton: (props: LaserPointerIconProps) => import("react/jsx-runtime").JSX.Element;
11
10
  export {};
@@ -29,5 +29,5 @@ interface LayerUIProps {
29
29
  generateLinkForSelection?: AppProps["generateLinkForSelection"];
30
30
  uiDisabled: boolean;
31
31
  }
32
- declare const _default: React.MemoExoticComponent<({ actionManager, appState, files, setAppState, elements, canvas, onLockToggle, onHandToolToggle, onPenModeToggle, showExitZenModeBtn, renderTopRightUI, renderCustomStats, UIOptions, onExportImage, renderWelcomeScreen, onHomeButtonClick, children, app, isCollaborating, generateLinkForSelection, uiDisabled, }: LayerUIProps) => JSX.Element | null>;
32
+ declare const _default: React.MemoExoticComponent<({ actionManager, appState, files, setAppState, elements, canvas, onLockToggle, onHandToolToggle, onPenModeToggle, showExitZenModeBtn, renderTopRightUI, renderCustomStats, UIOptions, onExportImage, renderWelcomeScreen, onHomeButtonClick, children, app, isCollaborating, generateLinkForSelection, uiDisabled, }: LayerUIProps) => import("react/jsx-runtime").JSX.Element | null>;
33
33
  export default _default;
@@ -7,4 +7,4 @@ export declare const isLibraryMenuOpenAtom: import("jotai/vanilla/atom").Primiti
7
7
  * This component is meant to be rendered inside <Sidebar.Tab/> inside our
8
8
  * <DefaultSidebar/> or host apps Sidebar components.
9
9
  */
10
- export declare const LibraryMenu: React.MemoExoticComponent<() => JSX.Element>;
10
+ export declare const LibraryMenu: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawProps, UIAppState } from "../types";
3
2
  declare const LibraryMenuBrowseButton: ({ theme, id, libraryReturnUrl, }: {
4
3
  libraryReturnUrl: ExcalidrawProps["libraryReturnUrl"];
5
4
  theme: UIAppState["theme"];
6
5
  id: string;
7
- }) => JSX.Element;
6
+ }) => import("react/jsx-runtime").JSX.Element;
8
7
  export default LibraryMenuBrowseButton;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawProps, UIAppState } from "../types";
3
2
  export declare const LibraryMenuControlButtons: ({ libraryReturnUrl, theme, id, style, children, className, }: {
4
3
  libraryReturnUrl: ExcalidrawProps["libraryReturnUrl"];
@@ -7,4 +6,4 @@ export declare const LibraryMenuControlButtons: ({ libraryReturnUrl, theme, id,
7
6
  style: React.CSSProperties;
8
7
  children?: React.ReactNode;
9
8
  className?: string | undefined;
10
- }) => JSX.Element;
9
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -15,4 +15,4 @@ export declare const LibraryDropdownMenu: ({ selectedItems, onSelectItems, class
15
15
  selectedItems: LibraryItem["id"][];
16
16
  onSelectItems: (id: LibraryItem["id"][]) => void;
17
17
  className?: string | undefined;
18
- }) => JSX.Element;
18
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawProps, LibraryItem, LibraryItems, UIAppState } from "../types";
3
2
  import "./LibraryMenuItems.scss";
4
3
  export default function LibraryMenuItems({ isLoading, libraryItems, onAddToLibrary, onInsertLibraryItems, pendingElements, theme, id, libraryReturnUrl, onSelectItems, selectedItems, }: {
@@ -12,4 +11,4 @@ export default function LibraryMenuItems({ isLoading, libraryItems, onAddToLibra
12
11
  id: string;
13
12
  selectedItems: LibraryItem["id"][];
14
13
  onSelectItems: (id: LibraryItem["id"][]) => void;
15
- }): JSX.Element;
14
+ }): import("react/jsx-runtime").JSX.Element;
@@ -18,6 +18,6 @@ interface Props {
18
18
  }
19
19
  export declare const LibraryMenuSectionGrid: ({ children, }: {
20
20
  children: ReactNode;
21
- }) => JSX.Element;
22
- export declare const LibraryMenuSection: React.MemoExoticComponent<({ items, onItemSelectToggle, onItemDrag, isItemSelected, onClick, svgCache, itemsRenderedPerBatch, }: Props) => JSX.Element>;
21
+ }) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const LibraryMenuSection: React.MemoExoticComponent<({ items, onItemSelectToggle, onItemDrag, isItemSelected, onClick, svgCache, itemsRenderedPerBatch, }: Props) => import("react/jsx-runtime").JSX.Element>;
23
23
  export {};
@@ -11,5 +11,5 @@ export declare const LibraryUnit: import("react").MemoExoticComponent<({ id, ele
11
11
  onToggle: (id: string, event: React.MouseEvent) => void;
12
12
  onDrag: (id: string, event: React.DragEvent) => void;
13
13
  svgCache: SvgCache;
14
- }) => JSX.Element>;
15
- export declare const EmptyLibraryUnit: () => JSX.Element;
14
+ }) => import("react/jsx-runtime").JSX.Element>;
15
+ export declare const EmptyLibraryUnit: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./ToolIcon.scss";
3
2
  type LockIconProps = {
4
3
  title?: string;
@@ -7,5 +6,5 @@ type LockIconProps = {
7
6
  onChange?(): void;
8
7
  isMobile?: boolean;
9
8
  };
10
- export declare const LockButton: (props: LockIconProps) => JSX.Element;
9
+ export declare const LockButton: (props: LockIconProps) => import("react/jsx-runtime").JSX.Element;
11
10
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type { JSX } from "react";
2
2
  import "./ToolIcon.scss";
3
3
  export declare const ElementCanvasButton: (props: {
4
4
  title?: string;
@@ -7,4 +7,4 @@ export declare const ElementCanvasButton: (props: {
7
7
  checked: boolean;
8
8
  onChange?(): void;
9
9
  isMobile?: boolean;
10
- }) => JSX.Element;
10
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from "react";
1
2
  import React from "react";
2
3
  import type { AppClassProperties, AppProps, AppState, Device, ExcalidrawProps, UIAppState } from "../types";
3
4
  import type { ActionManager } from "../actions/manager";
@@ -21,5 +22,5 @@ type MobileMenuProps = {
21
22
  app: AppClassProperties;
22
23
  onHomeButtonClick: () => void;
23
24
  };
24
- export declare const MobileMenu: ({ appState, elements, actionManager, setAppState, onLockToggle, onHandToolToggle, onPenModeToggle, renderTopRightUI, renderCustomStats, renderSidebars, device, renderWelcomeScreen, UIOptions, app, onHomeButtonClick, }: MobileMenuProps) => JSX.Element;
25
+ export declare const MobileMenu: ({ appState, elements, actionManager, setAppState, onLockToggle, onHandToolToggle, onPenModeToggle, renderTopRightUI, renderCustomStats, renderSidebars, device, renderWelcomeScreen, UIOptions, app, onHomeButtonClick, }: MobileMenuProps) => import("react/jsx-runtime").JSX.Element;
25
26
  export {};