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

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 (227) hide show
  1. package/README.md +3 -2
  2. package/dist/dev/{chunk-EFVS2MI5.js → chunk-LCPOPWNR.js} +2 -2
  3. package/dist/dev/{chunk-EFVS2MI5.js.map → chunk-LCPOPWNR.js.map} +1 -1
  4. package/dist/dev/chunk-NGUTX5QY.js +25914 -0
  5. package/dist/dev/chunk-NGUTX5QY.js.map +7 -0
  6. package/dist/dev/data/image-2IPPJHZ4.js +13 -0
  7. package/dist/dev/index.css.map +1 -1
  8. package/dist/dev/index.js +33216 -35
  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-BE2LY6VO.js} +1 -1
  13. package/dist/prod/chunk-R7OERAXD.js +46 -0
  14. package/dist/prod/data/image-DXJVNPGL.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/actionAlign.d.ts +12 -12
  19. package/dist/types/excalidraw/actions/actionCanvas.d.ts +18 -18
  20. package/dist/types/excalidraw/actions/actionClipboard.d.ts +4 -4
  21. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +2 -2
  22. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +2 -2
  23. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  24. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  25. package/dist/types/excalidraw/actions/actionElementLink.d.ts +2 -2
  26. package/dist/types/excalidraw/actions/actionElementLock.d.ts +2 -2
  27. package/dist/types/excalidraw/actions/actionExport.d.ts +19 -19
  28. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -1
  29. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -2
  30. package/dist/types/excalidraw/actions/actionFrame.d.ts +2 -2
  31. package/dist/types/excalidraw/actions/actionGroup.d.ts +4 -4
  32. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +1 -1
  33. package/dist/types/excalidraw/actions/actionLink.d.ts +2 -2
  34. package/dist/types/excalidraw/actions/actionMenu.d.ts +3 -3
  35. package/dist/types/excalidraw/actions/actionNavigate.d.ts +1 -1
  36. package/dist/types/excalidraw/actions/actionProperties.d.ts +16 -16
  37. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +1 -1
  38. package/dist/types/excalidraw/actions/actionStyles.d.ts +2 -2
  39. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +1 -1
  40. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +1 -1
  41. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +1 -1
  42. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +1 -1
  43. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +1 -1
  44. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +1 -1
  45. package/dist/types/excalidraw/actions/actionZindex.d.ts +10 -10
  46. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  47. package/dist/types/excalidraw/appState.d.ts +9 -9
  48. package/dist/types/excalidraw/clipboard.d.ts +4 -4
  49. package/dist/types/excalidraw/components/Actions.d.ts +6 -7
  50. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -2
  51. package/dist/types/excalidraw/components/App.d.ts +1 -1
  52. package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
  53. package/dist/types/excalidraw/components/BraveMeasureTextError.d.ts +1 -2
  54. package/dist/types/excalidraw/components/Button.d.ts +1 -1
  55. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -1
  56. package/dist/types/excalidraw/components/ButtonIconCycle.d.ts +2 -2
  57. package/dist/types/excalidraw/components/ButtonIconSelect.d.ts +2 -2
  58. package/dist/types/excalidraw/components/ButtonSelect.d.ts +1 -2
  59. package/dist/types/excalidraw/components/ButtonSeparator.d.ts +1 -2
  60. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +1 -2
  61. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -2
  62. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -2
  63. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  64. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +1 -1
  65. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -2
  66. package/dist/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +1 -1
  67. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -2
  68. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -2
  69. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -2
  70. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -2
  71. package/dist/types/excalidraw/components/ContextMenu.d.ts +1 -1
  72. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -2
  73. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
  74. package/dist/types/excalidraw/components/Dialog.d.ts +1 -1
  75. package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  76. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -2
  77. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  78. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  79. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  80. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -2
  81. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -2
  82. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -1
  83. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -2
  84. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  85. package/dist/types/excalidraw/components/HandButton.d.ts +1 -2
  86. package/dist/types/excalidraw/components/HelpButton.d.ts +1 -2
  87. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -2
  88. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -2
  89. package/dist/types/excalidraw/components/IconPicker.d.ts +2 -2
  90. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -3
  91. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  92. package/dist/types/excalidraw/components/InlineIcon.d.ts +1 -2
  93. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
  94. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +1 -2
  95. package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
  96. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  97. package/dist/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +1 -2
  98. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -2
  99. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  100. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -2
  101. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +2 -2
  102. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  103. package/dist/types/excalidraw/components/LockButton.d.ts +1 -2
  104. package/dist/types/excalidraw/components/MagicButton.d.ts +2 -2
  105. package/dist/types/excalidraw/components/MobileMenu.d.ts +2 -1
  106. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +4 -4
  107. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +6 -6
  108. package/dist/types/excalidraw/components/Paragraph.d.ts +1 -2
  109. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  110. package/dist/types/excalidraw/components/PenModeButton.d.ts +1 -2
  111. package/dist/types/excalidraw/components/Popover.d.ts +1 -1
  112. package/dist/types/excalidraw/components/ProjectName.d.ts +1 -2
  113. package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -2
  114. package/dist/types/excalidraw/components/RadioGroup.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Range.d.ts +1 -2
  116. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -2
  117. package/dist/types/excalidraw/components/ScrollableList.d.ts +1 -1
  118. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -2
  119. package/dist/types/excalidraw/components/ShareableLinkDialog.d.ts +1 -2
  120. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +6 -6
  121. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -2
  122. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -1
  123. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -1
  124. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -1
  125. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -1
  126. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -2
  127. package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -0
  128. package/dist/types/excalidraw/components/Spinner.d.ts +1 -2
  129. package/dist/types/excalidraw/components/Stack.d.ts +2 -3
  130. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -2
  131. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  132. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +1 -1
  133. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -2
  134. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  135. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -2
  136. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -2
  137. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -2
  138. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -2
  139. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -2
  140. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -2
  141. package/dist/types/excalidraw/components/Stats/index.d.ts +4 -4
  142. package/dist/types/excalidraw/components/Switch.d.ts +1 -2
  143. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +1 -2
  144. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +1 -1
  145. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +1 -1
  146. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
  147. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +1 -1
  148. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +1 -1
  149. package/dist/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -2
  150. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -1
  151. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -1
  152. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -1
  153. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +1 -1
  154. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +2 -1
  155. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  156. package/dist/types/excalidraw/components/Toast.d.ts +1 -1
  157. package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
  158. package/dist/types/excalidraw/components/UserList.d.ts +1 -1
  159. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -2
  160. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -2
  161. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  162. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +11 -11
  163. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +1 -1
  164. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +1 -1
  165. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +4 -3
  166. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -2
  167. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +1 -1
  168. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +1 -1
  169. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +2 -1
  170. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +1 -2
  171. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  172. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -2
  173. package/dist/types/excalidraw/components/footer/Footer.d.ts +1 -2
  174. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +1 -2
  175. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -2
  176. package/dist/types/excalidraw/components/icons.d.ts +178 -178
  177. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
  178. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +12 -13
  179. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +9 -9
  180. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +10 -10
  181. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +3 -4
  182. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -15
  183. package/dist/types/excalidraw/constants.d.ts +1 -0
  184. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  185. package/dist/types/excalidraw/element/ElementCanvasButtons.d.ts +1 -2
  186. package/dist/types/excalidraw/element/binding.d.ts +1 -2
  187. package/dist/types/excalidraw/element/collision.d.ts +10 -1
  188. package/dist/types/excalidraw/element/distance.d.ts +3 -0
  189. package/dist/types/excalidraw/element/newElement.d.ts +1 -1
  190. package/dist/types/excalidraw/element/transformHandles.d.ts +2 -2
  191. package/dist/types/excalidraw/element/types.d.ts +1 -1
  192. package/dist/types/excalidraw/element/utils.d.ts +21 -0
  193. package/dist/types/excalidraw/fonts/FontMetadata.d.ts +1 -1
  194. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +1 -1
  195. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -1
  196. package/dist/types/excalidraw/index.d.ts +1 -3
  197. package/dist/types/excalidraw/shapes.d.ts +11 -12
  198. package/dist/types/excalidraw/types.d.ts +1 -0
  199. package/dist/types/excalidraw/utils.d.ts +3 -3
  200. package/dist/types/excalidraw/visualdebug.d.ts +7 -8
  201. package/dist/types/excalidraw/zindex.d.ts +2 -2
  202. package/dist/types/math/curve.d.ts +22 -14
  203. package/dist/types/math/ellipse.d.ts +44 -0
  204. package/dist/types/math/index.d.ts +1 -1
  205. package/dist/types/math/line.d.ts +2 -30
  206. package/dist/types/math/point.d.ts +1 -29
  207. package/dist/types/math/rectangle.d.ts +3 -0
  208. package/dist/types/math/segment.d.ts +8 -1
  209. package/dist/types/math/types.d.ts +15 -6
  210. package/dist/types/math/vector.d.ts +0 -4
  211. package/dist/types/utils/export.d.ts +1 -1
  212. package/package.json +5 -5
  213. package/dist/dev/chunk-637CAVTS.js +0 -57639
  214. package/dist/dev/chunk-637CAVTS.js.map +0 -7
  215. package/dist/dev/data/image-N6Y7BWW6.css +0 -6753
  216. package/dist/dev/data/image-N6Y7BWW6.css.map +0 -7
  217. package/dist/dev/data/image-QMQX6YR5.js +0 -15
  218. package/dist/prod/chunk-PEDHHNBJ.js +0 -153
  219. package/dist/prod/data/image-IP6M4LZC.js +0 -1
  220. package/dist/prod/data/image-KGQIL6Y4.css +0 -1
  221. package/dist/types/math/arc.d.ts +0 -6
  222. package/dist/types/math/ga/ga.d.ts +0 -63
  223. package/dist/types/math/ga/gadirections.d.ts +0 -8
  224. package/dist/types/math/ga/galines.d.ts +0 -22
  225. package/dist/types/math/ga/gapoints.d.ts +0 -7
  226. package/dist/types/math/ga/gatransforms.d.ts +0 -10
  227. /package/dist/dev/data/{image-QMQX6YR5.js.map → image-2IPPJHZ4.js.map} +0 -0
@@ -2,7 +2,7 @@
2
2
  export declare const actionLink: {
3
3
  name: "hyperlink";
4
4
  label: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
5
- icon: JSX.Element;
5
+ icon: import("react/jsx-runtime").JSX.Element;
6
6
  perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
7
7
  elements: readonly import("../element/types").OrderedExcalidrawElement[];
8
8
  appState: {
@@ -186,7 +186,7 @@ export declare const actionLink: {
186
186
  };
187
187
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
188
188
  predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
189
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
189
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
190
190
  } & {
191
191
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
192
192
  };
@@ -181,7 +181,7 @@ export declare const actionToggleCanvasMenu: {
181
181
  };
182
182
  storeAction: "none";
183
183
  };
184
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
184
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
185
185
  } & {
186
186
  keyTest?: undefined;
187
187
  };
@@ -367,14 +367,14 @@ export declare const actionToggleEditMenu: {
367
367
  };
368
368
  storeAction: "none";
369
369
  };
370
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
370
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
371
371
  } & {
372
372
  keyTest?: undefined;
373
373
  };
374
374
  export declare const actionShortcuts: {
375
375
  name: "toggleShortcuts";
376
376
  label: string;
377
- icon: JSX.Element;
377
+ icon: import("react/jsx-runtime").JSX.Element;
378
378
  viewMode: true;
379
379
  trackEvent: {
380
380
  category: "menu";
@@ -361,7 +361,7 @@ export declare const actionGoToCollaborator: {
361
361
  };
362
362
  storeAction: "none";
363
363
  };
364
- PanelComponent: ({ updateData, data, appState }: import("./types").PanelComponentProps) => JSX.Element;
364
+ PanelComponent: ({ updateData, data, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
365
365
  } & {
366
366
  keyTest?: undefined;
367
367
  };
@@ -9,7 +9,7 @@ export declare const actionChangeStrokeColor: {
9
9
  label: string;
10
10
  trackEvent: false;
11
11
  perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
12
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
12
+ PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
13
13
  } & {
14
14
  keyTest?: undefined;
15
15
  };
@@ -18,7 +18,7 @@ export declare const actionChangeBackgroundColor: {
18
18
  label: string;
19
19
  trackEvent: false;
20
20
  perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
21
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
21
+ PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
22
22
  } & {
23
23
  keyTest?: undefined;
24
24
  };
@@ -203,7 +203,7 @@ export declare const actionChangeFillStyle: {
203
203
  };
204
204
  storeAction: "capture";
205
205
  };
206
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
206
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
207
207
  } & {
208
208
  keyTest?: undefined;
209
209
  };
@@ -388,7 +388,7 @@ export declare const actionChangeStrokeWidth: {
388
388
  };
389
389
  storeAction: "capture";
390
390
  };
391
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
391
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
392
392
  } & {
393
393
  keyTest?: undefined;
394
394
  };
@@ -573,7 +573,7 @@ export declare const actionChangeSloppiness: {
573
573
  };
574
574
  storeAction: "capture";
575
575
  };
576
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
576
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
577
577
  } & {
578
578
  keyTest?: undefined;
579
579
  };
@@ -758,7 +758,7 @@ export declare const actionChangeStrokeStyle: {
758
758
  };
759
759
  storeAction: "capture";
760
760
  };
761
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
761
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
762
762
  } & {
763
763
  keyTest?: undefined;
764
764
  };
@@ -943,7 +943,7 @@ export declare const actionChangeOpacity: {
943
943
  };
944
944
  storeAction: "capture";
945
945
  };
946
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
946
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
947
947
  } & {
948
948
  keyTest?: undefined;
949
949
  };
@@ -1128,14 +1128,14 @@ export declare const actionChangeFontSize: {
1128
1128
  };
1129
1129
  storeAction: "capture";
1130
1130
  };
1131
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
1131
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1132
1132
  } & {
1133
1133
  keyTest?: undefined;
1134
1134
  };
1135
1135
  export declare const actionDecreaseFontSize: {
1136
1136
  name: "decreaseFontSize";
1137
1137
  label: string;
1138
- icon: JSX.Element;
1138
+ icon: import("react/jsx-runtime").JSX.Element;
1139
1139
  trackEvent: false;
1140
1140
  perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1141
1141
  elements: ExcalidrawElement[];
@@ -1321,7 +1321,7 @@ export declare const actionDecreaseFontSize: {
1321
1321
  export declare const actionIncreaseFontSize: {
1322
1322
  name: "increaseFontSize";
1323
1323
  label: string;
1324
- icon: JSX.Element;
1324
+ icon: import("react/jsx-runtime").JSX.Element;
1325
1325
  trackEvent: false;
1326
1326
  perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1327
1327
  elements: ExcalidrawElement[];
@@ -1860,7 +1860,7 @@ export declare const actionChangeFontFamily: {
1860
1860
  };
1861
1861
  storeAction: "update";
1862
1862
  };
1863
- PanelComponent: ({ elements, appState, app, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1863
+ PanelComponent: ({ elements, appState, app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1864
1864
  } & {
1865
1865
  keyTest?: undefined;
1866
1866
  };
@@ -2045,7 +2045,7 @@ export declare const actionChangeTextAlign: {
2045
2045
  };
2046
2046
  storeAction: "capture";
2047
2047
  };
2048
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
2048
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2049
2049
  } & {
2050
2050
  keyTest?: undefined;
2051
2051
  };
@@ -2232,7 +2232,7 @@ export declare const actionChangeVerticalAlign: {
2232
2232
  };
2233
2233
  storeAction: "capture";
2234
2234
  };
2235
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
2235
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2236
2236
  } & {
2237
2237
  keyTest?: undefined;
2238
2238
  };
@@ -2417,7 +2417,7 @@ export declare const actionChangeRoundness: {
2417
2417
  };
2418
2418
  storeAction: "capture";
2419
2419
  };
2420
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
2420
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2421
2421
  } & {
2422
2422
  keyTest?: undefined;
2423
2423
  };
@@ -2605,7 +2605,7 @@ export declare const actionChangeArrowhead: {
2605
2605
  };
2606
2606
  storeAction: "capture";
2607
2607
  };
2608
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
2608
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2609
2609
  } & {
2610
2610
  keyTest?: undefined;
2611
2611
  };
@@ -2790,7 +2790,7 @@ export declare const actionChangeArrowType: {
2790
2790
  };
2791
2791
  storeAction: "capture";
2792
2792
  };
2793
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
2793
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2794
2794
  } & {
2795
2795
  keyTest?: undefined;
2796
2796
  };
@@ -4,7 +4,7 @@ import { LinearElementEditor } from "../element/linearElementEditor";
4
4
  export declare const actionSelectAll: {
5
5
  name: "selectAll";
6
6
  label: string;
7
- icon: JSX.Element;
7
+ icon: import("react/jsx-runtime").JSX.Element;
8
8
  trackEvent: {
9
9
  category: "canvas";
10
10
  };
@@ -3,7 +3,7 @@ export declare let copiedStyles: string;
3
3
  export declare const actionCopyStyles: {
4
4
  name: "copyStyles";
5
5
  label: string;
6
- icon: JSX.Element;
6
+ icon: import("react/jsx-runtime").JSX.Element;
7
7
  trackEvent: {
8
8
  category: "element";
9
9
  };
@@ -188,7 +188,7 @@ export declare const actionCopyStyles: {
188
188
  export declare const actionPasteStyles: {
189
189
  name: "pasteStyles";
190
190
  label: string;
191
- icon: JSX.Element;
191
+ icon: import("react/jsx-runtime").JSX.Element;
192
192
  trackEvent: {
193
193
  category: "element";
194
194
  };
@@ -2,7 +2,7 @@
2
2
  import type { AppState } from "../types";
3
3
  export declare const actionToggleGridMode: {
4
4
  name: "gridMode";
5
- icon: JSX.Element;
5
+ icon: import("react/jsx-runtime").JSX.Element;
6
6
  keywords: string[];
7
7
  label: string;
8
8
  viewMode: true;
@@ -2,7 +2,7 @@
2
2
  export declare const actionToggleObjectsSnapMode: {
3
3
  name: "objectsSnapMode";
4
4
  label: string;
5
- icon: JSX.Element;
5
+ icon: import("react/jsx-runtime").JSX.Element;
6
6
  viewMode: false;
7
7
  trackEvent: {
8
8
  category: "canvas";
@@ -2,7 +2,7 @@
2
2
  import type { AppState } from "../types";
3
3
  export declare const actionToggleSearchMenu: {
4
4
  name: "searchMenu";
5
- icon: JSX.Element;
5
+ icon: import("react/jsx-runtime").JSX.Element;
6
6
  keywords: string[];
7
7
  label: string;
8
8
  viewMode: true;
@@ -2,7 +2,7 @@
2
2
  export declare const actionToggleStats: {
3
3
  name: "stats";
4
4
  label: string;
5
- icon: JSX.Element;
5
+ icon: import("react/jsx-runtime").JSX.Element;
6
6
  paletteName: string;
7
7
  viewMode: true;
8
8
  trackEvent: {
@@ -3,7 +3,7 @@ export declare const actionToggleViewMode: {
3
3
  name: "viewMode";
4
4
  label: string;
5
5
  paletteName: string;
6
- icon: JSX.Element;
6
+ icon: import("react/jsx-runtime").JSX.Element;
7
7
  viewMode: true;
8
8
  trackEvent: {
9
9
  category: "canvas";
@@ -2,7 +2,7 @@
2
2
  export declare const actionToggleZenMode: {
3
3
  name: "zenMode";
4
4
  label: string;
5
- icon: JSX.Element;
5
+ icon: import("react/jsx-runtime").JSX.Element;
6
6
  paletteName: string;
7
7
  viewMode: true;
8
8
  trackEvent: {
@@ -3,7 +3,7 @@ export declare const actionSendBackward: {
3
3
  name: "sendBackward";
4
4
  label: string;
5
5
  keywords: string[];
6
- icon: JSX.Element;
6
+ icon: import("react/jsx-runtime").JSX.Element;
7
7
  trackEvent: {
8
8
  category: "element";
9
9
  };
@@ -14,7 +14,7 @@ export declare const actionSendBackward: {
14
14
  };
15
15
  keyPriority: number;
16
16
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
17
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
17
+ PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
18
18
  } & {
19
19
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
20
20
  };
@@ -22,7 +22,7 @@ export declare const actionBringForward: {
22
22
  name: "bringForward";
23
23
  label: string;
24
24
  keywords: string[];
25
- icon: JSX.Element;
25
+ icon: import("react/jsx-runtime").JSX.Element;
26
26
  trackEvent: {
27
27
  category: "element";
28
28
  };
@@ -33,7 +33,7 @@ export declare const actionBringForward: {
33
33
  };
34
34
  keyPriority: number;
35
35
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
36
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
36
+ PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
37
37
  } & {
38
38
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
39
39
  };
@@ -41,17 +41,17 @@ export declare const actionSendToBack: {
41
41
  name: "sendToBack";
42
42
  label: string;
43
43
  keywords: string[];
44
- icon: JSX.Element;
44
+ icon: import("react/jsx-runtime").JSX.Element;
45
45
  trackEvent: {
46
46
  category: "element";
47
47
  };
48
48
  perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
49
- elements: import("../element/types").ExcalidrawElement[] | readonly import("../element/types").ExcalidrawElement[];
49
+ elements: readonly import("../element/types").ExcalidrawElement[] | import("../element/types").ExcalidrawElement[];
50
50
  appState: Readonly<import("../types").AppState>;
51
51
  storeAction: "capture";
52
52
  };
53
53
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
54
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
54
+ PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
55
55
  } & {
56
56
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
57
57
  };
@@ -59,17 +59,17 @@ export declare const actionBringToFront: {
59
59
  name: "bringToFront";
60
60
  label: string;
61
61
  keywords: string[];
62
- icon: JSX.Element;
62
+ icon: import("react/jsx-runtime").JSX.Element;
63
63
  trackEvent: {
64
64
  category: "element";
65
65
  };
66
66
  perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
67
- elements: import("../element/types").ExcalidrawElement[] | readonly import("../element/types").ExcalidrawElement[];
67
+ elements: readonly import("../element/types").ExcalidrawElement[] | import("../element/types").ExcalidrawElement[];
68
68
  appState: Readonly<import("../types").AppState>;
69
69
  storeAction: "capture";
70
70
  };
71
71
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
72
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
72
+ PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
73
73
  } & {
74
74
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
75
75
  };
@@ -16,6 +16,6 @@ export declare class ActionManager {
16
16
  /**
17
17
  * @param data additional data sent to the PanelComponent
18
18
  */
19
- renderAction: (name: ActionName, data?: PanelComponentProps["data"]) => JSX.Element | null;
19
+ renderAction: (name: ActionName, data?: PanelComponentProps["data"]) => import("react/jsx-runtime").JSX.Element | null;
20
20
  isActionEnabled: (action: Action) => boolean;
21
21
  }
@@ -1,11 +1,17 @@
1
1
  import type { AppState } from "./types";
2
2
  export declare const getDefaultAppState: () => Omit<AppState, "offsetTop" | "offsetLeft" | "width" | "height">;
3
3
  export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>) => {
4
- showWelcomeScreen?: boolean | undefined;
4
+ zenModeEnabled?: boolean | undefined;
5
+ gridModeEnabled?: boolean | undefined;
6
+ objectsSnapModeEnabled?: boolean | undefined;
7
+ theme?: import("./element/types").Theme | undefined;
8
+ name?: string | null | undefined;
5
9
  activeTool?: ({
6
10
  lastActiveTool: import("./types").ActiveTool | null;
7
11
  locked: boolean;
8
12
  } & import("./types").ActiveTool) | undefined;
13
+ currentItemArrowType?: "round" | "sharp" | "elbow" | undefined;
14
+ showWelcomeScreen?: boolean | undefined;
9
15
  penMode?: boolean | undefined;
10
16
  penDetected?: boolean | undefined;
11
17
  exportBackground?: boolean | undefined;
@@ -25,13 +31,11 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
25
31
  currentItemStartArrowhead?: import("./element/types").Arrowhead | null | undefined;
26
32
  currentItemEndArrowhead?: import("./element/types").Arrowhead | null | undefined;
27
33
  currentItemRoundness?: import("./element/types").StrokeRoundness | undefined;
28
- currentItemArrowType?: "round" | "sharp" | "elbow" | undefined;
29
34
  viewBackgroundColor?: string | undefined;
30
35
  scrollX?: number | undefined;
31
36
  scrollY?: number | undefined;
32
37
  cursorButton?: "up" | "down" | undefined;
33
38
  scrolledOutside?: boolean | undefined;
34
- name?: string | null | undefined;
35
39
  zoom?: Readonly<{
36
40
  value: import("./types").NormalizedZoomValue;
37
41
  }> | undefined;
@@ -49,11 +53,8 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
49
53
  [id: string]: true;
50
54
  } | undefined;
51
55
  shouldCacheIgnoreZoom?: boolean | undefined;
52
- zenModeEnabled?: boolean | undefined;
53
- theme?: import("./element/types").Theme | undefined;
54
56
  gridSize?: number | undefined;
55
57
  gridStep?: number | undefined;
56
- gridModeEnabled?: boolean | undefined;
57
58
  selectedGroupIds?: {
58
59
  [groupId: string]: boolean;
59
60
  } | undefined;
@@ -64,19 +65,18 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
64
65
  } | undefined;
65
66
  currentChartType?: import("./element/types").ChartType | undefined;
66
67
  selectedLinearElement?: import("./element/linearElementEditor").LinearElementEditor | null | undefined;
67
- objectsSnapModeEnabled?: boolean | undefined;
68
68
  };
69
69
  export declare const cleanAppStateForExport: (appState: Partial<AppState>) => {
70
+ gridModeEnabled?: boolean | undefined;
70
71
  viewBackgroundColor?: string | undefined;
71
72
  gridSize?: number | undefined;
72
73
  gridStep?: number | undefined;
73
- gridModeEnabled?: boolean | undefined;
74
74
  };
75
75
  export declare const clearAppStateForDatabase: (appState: Partial<AppState>) => {
76
+ gridModeEnabled?: boolean | undefined;
76
77
  viewBackgroundColor?: string | undefined;
77
78
  gridSize?: number | undefined;
78
79
  gridStep?: number | undefined;
79
- gridModeEnabled?: boolean | undefined;
80
80
  };
81
81
  export declare const isEraserActive: ({ activeTool, }: {
82
82
  activeTool: AppState["activeTool"];
@@ -21,8 +21,6 @@ export declare const probablySupportsClipboardWriteText: boolean;
21
21
  export declare const probablySupportsClipboardBlob: boolean;
22
22
  export declare const createPasteEvent: ({ types, files, }: {
23
23
  types?: {
24
- "text/plain"?: string | File | undefined;
25
- "text/html"?: string | File | undefined;
26
24
  "image/svg+xml"?: string | File | undefined;
27
25
  "image/png"?: string | File | undefined;
28
26
  "image/jpeg"?: string | File | undefined;
@@ -32,6 +30,8 @@ export declare const createPasteEvent: ({ types, files, }: {
32
30
  "image/x-icon"?: string | File | undefined;
33
31
  "image/avif"?: string | File | undefined;
34
32
  "image/jfif"?: string | File | undefined;
33
+ "text/plain"?: string | File | undefined;
34
+ "text/html"?: string | File | undefined;
35
35
  } | undefined;
36
36
  files?: File[] | undefined;
37
37
  }) => ClipboardEvent;
@@ -45,8 +45,6 @@ export declare const copyToClipboard: (elements: readonly NonDeletedExcalidrawEl
45
45
  * Will prompt user for permission if not granted.
46
46
  */
47
47
  export declare const readSystemClipboard: () => Promise<{
48
- "text/plain"?: string | File | undefined;
49
- "text/html"?: string | File | undefined;
50
48
  "image/svg+xml"?: string | File | undefined;
51
49
  "image/png"?: string | File | undefined;
52
50
  "image/jpeg"?: string | File | undefined;
@@ -56,6 +54,8 @@ export declare const readSystemClipboard: () => Promise<{
56
54
  "image/x-icon"?: string | File | undefined;
57
55
  "image/avif"?: string | File | undefined;
58
56
  "image/jfif"?: string | File | undefined;
57
+ "text/plain"?: string | File | undefined;
58
+ "text/html"?: string | File | undefined;
59
59
  }>;
60
60
  /**
61
61
  * Attempts to parse clipboard event.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ActionManager } from "../actions/manager";
3
2
  import type { ExcalidrawElement, NonDeletedElementsMap, NonDeletedSceneElementsMap } from "../element/types";
4
3
  import type { AppClassProperties, AppProps, UIAppState, Zoom } from "../types";
@@ -10,26 +9,26 @@ export declare const SelectedShapeActions: ({ appState, elementsMap, renderActio
10
9
  elementsMap: NonDeletedElementsMap | NonDeletedSceneElementsMap;
11
10
  renderAction: ActionManager["renderAction"];
12
11
  app: AppClassProperties;
13
- }) => JSX.Element;
12
+ }) => import("react/jsx-runtime").JSX.Element;
14
13
  export declare const ShapesSwitcher: ({ activeTool, appState, app, UIOptions, }: {
15
14
  activeTool: UIAppState["activeTool"];
16
15
  appState: UIAppState;
17
16
  app: AppClassProperties;
18
17
  UIOptions: AppProps["UIOptions"];
19
- }) => JSX.Element;
18
+ }) => import("react/jsx-runtime").JSX.Element;
20
19
  export declare const ZoomActions: ({ renderAction, zoom, }: {
21
20
  renderAction: ActionManager["renderAction"];
22
21
  zoom: Zoom;
23
- }) => JSX.Element;
22
+ }) => import("react/jsx-runtime").JSX.Element;
24
23
  export declare const UndoRedoActions: ({ renderAction, className, }: {
25
24
  renderAction: ActionManager["renderAction"];
26
25
  className?: string | undefined;
27
- }) => JSX.Element;
26
+ }) => import("react/jsx-runtime").JSX.Element;
28
27
  export declare const ExitZenModeAction: ({ actionManager, showExitZenModeBtn, }: {
29
28
  actionManager: ActionManager;
30
29
  showExitZenModeBtn: boolean;
31
- }) => JSX.Element;
30
+ }) => import("react/jsx-runtime").JSX.Element;
32
31
  export declare const FinalizeAction: ({ renderAction, className, }: {
33
32
  renderAction: ActionManager["renderAction"];
34
33
  className?: string | undefined;
35
- }) => JSX.Element;
34
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  export declare const activeConfirmDialogAtom: import("jotai/vanilla/atom").PrimitiveAtom<"clearCanvas" | null> & {
3
2
  init: "clearCanvas" | null;
4
3
  };
5
- export declare const ActiveConfirmDialog: () => JSX.Element | null;
4
+ export declare const ActiveConfirmDialog: () => import("react/jsx-runtime").JSX.Element | null;
@@ -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>[];
@@ -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 {};