@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
@@ -4,7 +4,7 @@ import type { Device, InteractiveCanvasAppState } from "../../types";
4
4
  import type { RenderableElementsMap, RenderInteractiveSceneCallback } from "../../scene/types";
5
5
  import type { NonDeletedExcalidrawElement, NonDeletedSceneElementsMap } from "../../element/types";
6
6
  type InteractiveCanvasProps = {
7
- containerRef: React.RefObject<HTMLDivElement>;
7
+ containerRef: React.RefObject<HTMLDivElement | null>;
8
8
  canvas: HTMLCanvasElement | null;
9
9
  elementsMap: RenderableElementsMap;
10
10
  visibleElements: readonly NonDeletedExcalidrawElement[];
@@ -25,5 +25,5 @@ type InteractiveCanvasProps = {
25
25
  onPointerDown: Exclude<DOMAttributes<HTMLCanvasElement>["onPointerDown"], undefined>;
26
26
  onDoubleClick: Exclude<DOMAttributes<HTMLCanvasElement>["onDoubleClick"], undefined>;
27
27
  };
28
- declare const _default: React.MemoExoticComponent<(props: InteractiveCanvasProps) => JSX.Element>;
28
+ declare const _default: React.MemoExoticComponent<(props: InteractiveCanvasProps) => import("react/jsx-runtime").JSX.Element>;
29
29
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { NonDeletedSceneElementsMap } from "../../element/types";
3
2
  import type { AppState } from "../../types";
4
3
  import type { RenderableElementsMap, StaticCanvasRenderConfig } from "../../scene/types";
@@ -11,5 +10,5 @@ interface NewElementCanvasProps {
11
10
  rc: RoughCanvas;
12
11
  renderConfig: StaticCanvasRenderConfig;
13
12
  }
14
- declare const NewElementCanvas: (props: NewElementCanvasProps) => JSX.Element;
13
+ declare const NewElementCanvas: (props: NewElementCanvasProps) => import("react/jsx-runtime").JSX.Element;
15
14
  export default NewElementCanvas;
@@ -15,5 +15,5 @@ type StaticCanvasProps = {
15
15
  appState: StaticCanvasAppState;
16
16
  renderConfig: StaticCanvasRenderConfig;
17
17
  };
18
- declare const _default: React.MemoExoticComponent<(props: StaticCanvasProps) => JSX.Element>;
18
+ declare const _default: React.MemoExoticComponent<(props: StaticCanvasProps) => import("react/jsx-runtime").JSX.Element>;
19
19
  export default _default;
@@ -4,14 +4,14 @@ declare const DropdownMenu: {
4
4
  ({ children, open, }: {
5
5
  children?: React.ReactNode;
6
6
  open: boolean;
7
- }): JSX.Element;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
8
  Trigger: {
9
9
  ({ className, children, onToggle, title, ...rest }: {
10
10
  className?: string | undefined;
11
11
  children: React.ReactNode;
12
12
  onToggle: () => void;
13
13
  title?: string | undefined;
14
- } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): JSX.Element;
14
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
15
15
  displayName: string;
16
16
  };
17
17
  Content: {
@@ -21,12 +21,12 @@ declare const DropdownMenu: {
21
21
  className?: string | undefined;
22
22
  onSelect?: ((event: Event) => void) | undefined;
23
23
  style?: React.CSSProperties | undefined;
24
- }): JSX.Element;
24
+ }): import("react/jsx-runtime").JSX.Element;
25
25
  displayName: string;
26
26
  };
27
27
  Item: {
28
28
  ({ icon, value, order, children, shortcut, className, hovered, selected, textStyle, onSelect, onClick, ...rest }: {
29
- icon?: JSX.Element | undefined;
29
+ icon?: React.JSX.Element | undefined;
30
30
  value?: string | number | undefined;
31
31
  order?: number | undefined;
32
32
  onSelect?: ((event: Event) => void) | undefined;
@@ -36,7 +36,7 @@ declare const DropdownMenu: {
36
36
  selected?: boolean | undefined;
37
37
  textStyle?: React.CSSProperties | undefined;
38
38
  className?: string | undefined;
39
- } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): JSX.Element;
39
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
40
40
  displayName: string;
41
41
  Badge: {
42
42
  ({ type, children, }: {
@@ -46,39 +46,39 @@ declare const DropdownMenu: {
46
46
  readonly BLUE: "blue";
47
47
  }> | undefined;
48
48
  children: React.ReactNode;
49
- }): JSX.Element;
49
+ }): import("react/jsx-runtime").JSX.Element;
50
50
  displayName: string;
51
51
  };
52
52
  };
53
53
  ItemLink: {
54
54
  ({ icon, shortcut, href, children, onSelect, className, selected, rel, ...rest }: {
55
55
  href: string;
56
- icon?: JSX.Element | undefined;
56
+ icon?: React.JSX.Element | undefined;
57
57
  children: React.ReactNode;
58
58
  shortcut?: string | undefined;
59
59
  className?: string | undefined;
60
60
  selected?: boolean | undefined;
61
61
  onSelect?: ((event: Event) => void) | undefined;
62
62
  rel?: string | undefined;
63
- } & React.AnchorHTMLAttributes<HTMLAnchorElement>): JSX.Element;
63
+ } & React.AnchorHTMLAttributes<HTMLAnchorElement>): import("react/jsx-runtime").JSX.Element;
64
64
  displayName: string;
65
65
  };
66
66
  ItemCustom: ({ children, className, selected, ...rest }: {
67
67
  children: React.ReactNode;
68
68
  className?: string | undefined;
69
69
  selected?: boolean | undefined;
70
- } & React.HTMLAttributes<HTMLDivElement>) => JSX.Element;
70
+ } & React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
71
71
  Group: {
72
72
  ({ children, className, style, title, }: {
73
73
  children: React.ReactNode;
74
74
  className?: string | undefined;
75
75
  style?: React.CSSProperties | undefined;
76
76
  title?: string | undefined;
77
- }): JSX.Element;
77
+ }): import("react/jsx-runtime").JSX.Element;
78
78
  displayName: string;
79
79
  };
80
80
  Separator: {
81
- (): JSX.Element;
81
+ (): import("react/jsx-runtime").JSX.Element;
82
82
  displayName: string;
83
83
  };
84
84
  displayName: string;
@@ -9,7 +9,7 @@ declare const MenuContent: {
9
9
  */
10
10
  onSelect?: ((event: Event) => void) | undefined;
11
11
  style?: React.CSSProperties | undefined;
12
- }): JSX.Element;
12
+ }): import("react/jsx-runtime").JSX.Element;
13
13
  displayName: string;
14
14
  };
15
15
  export default MenuContent;
@@ -5,7 +5,7 @@ declare const MenuGroup: {
5
5
  className?: string | undefined;
6
6
  style?: React.CSSProperties | undefined;
7
7
  title?: string | undefined;
8
- }): JSX.Element;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
9
  displayName: string;
10
10
  };
11
11
  export default MenuGroup;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from "react";
1
2
  import React from "react";
2
3
  import type { ValueOf } from "../../utility-types";
3
4
  declare const DropdownMenuItem: {
@@ -12,7 +13,7 @@ declare const DropdownMenuItem: {
12
13
  selected?: boolean | undefined;
13
14
  textStyle?: React.CSSProperties | undefined;
14
15
  className?: string | undefined;
15
- } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): JSX.Element;
16
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
16
17
  displayName: string;
17
18
  Badge: {
18
19
  ({ type, children, }: {
@@ -22,7 +23,7 @@ declare const DropdownMenuItem: {
22
23
  readonly BLUE: "blue";
23
24
  }> | undefined;
24
25
  children: React.ReactNode;
25
- }): JSX.Element;
26
+ }): import("react/jsx-runtime").JSX.Element;
26
27
  displayName: string;
27
28
  };
28
29
  };
@@ -39,7 +40,7 @@ export declare const DropDownMenuItemBadge: {
39
40
  readonly BLUE: "blue";
40
41
  }> | undefined;
41
42
  children: React.ReactNode;
42
- }): JSX.Element;
43
+ }): import("react/jsx-runtime").JSX.Element;
43
44
  displayName: string;
44
45
  };
45
46
  export default DropdownMenuItem;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import type { JSX } from "react";
2
2
  declare const MenuItemContent: ({ textStyle, icon, shortcut, children, }: {
3
3
  icon?: JSX.Element | undefined;
4
4
  shortcut?: string | undefined;
5
5
  textStyle?: import("react").CSSProperties | undefined;
6
6
  children: React.ReactNode;
7
- }) => JSX.Element;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
8
  export default MenuItemContent;
@@ -12,7 +12,7 @@ type Props<T> = {
12
12
  name: string;
13
13
  };
14
14
  declare const DropdownMenuItemContentRadio: {
15
- <T>({ value, shortcut, onChange, choices, children, name, }: Props<T>): JSX.Element;
15
+ <T>({ value, shortcut, onChange, choices, children, name, }: Props<T>): import("react/jsx-runtime").JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  export default DropdownMenuItemContentRadio;
@@ -3,5 +3,5 @@ declare const DropdownMenuItemCustom: ({ children, className, selected, ...rest
3
3
  children: React.ReactNode;
4
4
  className?: string | undefined;
5
5
  selected?: boolean | undefined;
6
- } & React.HTMLAttributes<HTMLDivElement>) => JSX.Element;
6
+ } & React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
7
7
  export default DropdownMenuItemCustom;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from "react";
1
2
  import React from "react";
2
3
  declare const DropdownMenuItemLink: {
3
4
  ({ icon, shortcut, href, children, onSelect, className, selected, rel, ...rest }: {
@@ -9,7 +10,7 @@ declare const DropdownMenuItemLink: {
9
10
  selected?: boolean | undefined;
10
11
  onSelect?: ((event: Event) => void) | undefined;
11
12
  rel?: string | undefined;
12
- } & React.AnchorHTMLAttributes<HTMLAnchorElement>): JSX.Element;
13
+ } & React.AnchorHTMLAttributes<HTMLAnchorElement>): import("react/jsx-runtime").JSX.Element;
13
14
  displayName: string;
14
15
  };
15
16
  export default DropdownMenuItemLink;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  declare const MenuSeparator: {
3
- (): JSX.Element;
2
+ (): import("react/jsx-runtime").JSX.Element;
4
3
  displayName: string;
5
4
  };
6
5
  export default MenuSeparator;
@@ -5,7 +5,7 @@ declare const MenuTrigger: {
5
5
  children: React.ReactNode;
6
6
  onToggle: () => void;
7
7
  title?: string | undefined;
8
- } & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): JSX.Element;
8
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
9
9
  displayName: string;
10
10
  };
11
11
  export default MenuTrigger;
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
- export declare const getMenuTriggerComponent: (children: React.ReactNode) => string | number | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | null;
3
- export declare const getMenuContentComponent: (children: React.ReactNode) => string | number | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | null;
2
+ export declare const getMenuTriggerComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
3
+ export declare const getMenuContentComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ActionManager } from "../../actions/manager";
3
2
  import type { UIAppState } from "../../types";
4
3
  declare const Footer: {
@@ -7,7 +6,7 @@ declare const Footer: {
7
6
  actionManager: ActionManager;
8
7
  showExitZenModeBtn: boolean;
9
8
  renderWelcomeScreen: boolean;
10
- }): JSX.Element;
9
+ }): import("react/jsx-runtime").JSX.Element;
11
10
  displayName: string;
12
11
  };
13
12
  export default Footer;
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  import "./FooterCenter.scss";
3
2
  declare const FooterCenter: {
4
3
  ({ children }: {
5
4
  children?: React.ReactNode;
6
- }): JSX.Element;
5
+ }): import("react/jsx-runtime").JSX.Element;
7
6
  displayName: string;
8
7
  };
9
8
  export default FooterCenter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { AppState, ExcalidrawProps, UIAppState } from "../../types";
3
2
  import type { ElementsMap, ExcalidrawEmbeddableElement, NonDeletedExcalidrawElement } from "../../element/types";
4
3
  import "./Hyperlink.scss";
@@ -13,7 +12,7 @@ export declare const Hyperlink: ({ element, elementsMap, setAppState, onLinkOpen
13
12
  duration?: number;
14
13
  } | null) => void;
15
14
  updateEmbedValidationStatus: (element: ExcalidrawEmbeddableElement, status: boolean) => void;
16
- }) => JSX.Element | null;
15
+ }) => import("react/jsx-runtime").JSX.Element | null;
17
16
  export declare const getContextMenuLabel: (elements: readonly NonDeletedExcalidrawElement[], appState: UIAppState) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
18
17
  export declare const showHyperlinkTooltip: (element: NonDeletedExcalidrawElement, appState: AppState, elementsMap: ElementsMap) => void;
19
18
  export declare const hideHyperlinkToolip: () => void;