@excalidraw/excalidraw 0.18.0-rc.2 → 0.18.0-rc.4

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 (183) hide show
  1. package/README.md +4 -5
  2. package/dist/dev/{chunk-CI27YPGF.js → chunk-3O3BNMYV.js} +71 -8
  3. package/dist/dev/chunk-3O3BNMYV.js.map +7 -0
  4. package/dist/dev/data/{image-TC7JM54G.js → image-EN763OZS.js} +2 -2
  5. package/dist/dev/index.js +9 -7
  6. package/dist/dev/index.js.map +3 -3
  7. package/dist/prod/{chunk-FZ2HZXXI.js → chunk-ELWWJGPE.js} +16 -16
  8. package/dist/prod/data/{image-QTHH6XLL.js → image-XQM6YLGO.js} +1 -1
  9. package/dist/prod/index.js +9 -9
  10. package/dist/types/excalidraw/actions/actionAlign.d.ts +12 -12
  11. package/dist/types/excalidraw/actions/actionCanvas.d.ts +13 -13
  12. package/dist/types/excalidraw/actions/actionClipboard.d.ts +4 -4
  13. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +2 -2
  14. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +2 -2
  15. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  16. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  17. package/dist/types/excalidraw/actions/actionElementLink.d.ts +2 -2
  18. package/dist/types/excalidraw/actions/actionElementLock.d.ts +2 -2
  19. package/dist/types/excalidraw/actions/actionExport.d.ts +8 -8
  20. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -1
  21. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -2
  22. package/dist/types/excalidraw/actions/actionFrame.d.ts +1 -1
  23. package/dist/types/excalidraw/actions/actionGroup.d.ts +4 -4
  24. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +1 -1
  25. package/dist/types/excalidraw/actions/actionLink.d.ts +2 -2
  26. package/dist/types/excalidraw/actions/actionMenu.d.ts +3 -3
  27. package/dist/types/excalidraw/actions/actionNavigate.d.ts +1 -1
  28. package/dist/types/excalidraw/actions/actionProperties.d.ts +16 -16
  29. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +1 -1
  30. package/dist/types/excalidraw/actions/actionStyles.d.ts +2 -2
  31. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +1 -1
  32. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +1 -1
  33. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +1 -1
  34. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +1 -1
  35. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +1 -1
  36. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +1 -1
  37. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  38. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  39. package/dist/types/excalidraw/components/Actions.d.ts +6 -7
  40. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -2
  41. package/dist/types/excalidraw/components/App.d.ts +1 -1
  42. package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
  43. package/dist/types/excalidraw/components/BraveMeasureTextError.d.ts +1 -2
  44. package/dist/types/excalidraw/components/Button.d.ts +1 -1
  45. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -1
  46. package/dist/types/excalidraw/components/ButtonIconCycle.d.ts +2 -2
  47. package/dist/types/excalidraw/components/ButtonIconSelect.d.ts +2 -2
  48. package/dist/types/excalidraw/components/ButtonSelect.d.ts +1 -2
  49. package/dist/types/excalidraw/components/ButtonSeparator.d.ts +1 -2
  50. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +1 -2
  51. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -2
  52. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -2
  53. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  54. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +1 -1
  55. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -2
  56. package/dist/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +1 -1
  57. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -2
  58. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -2
  59. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -2
  60. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -2
  61. package/dist/types/excalidraw/components/ContextMenu.d.ts +1 -1
  62. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -2
  63. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
  64. package/dist/types/excalidraw/components/Dialog.d.ts +1 -1
  65. package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
  66. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -2
  67. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  68. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  69. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
  70. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -2
  71. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -2
  72. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -1
  73. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -2
  74. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  75. package/dist/types/excalidraw/components/HandButton.d.ts +1 -2
  76. package/dist/types/excalidraw/components/HelpButton.d.ts +1 -2
  77. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -2
  78. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -2
  79. package/dist/types/excalidraw/components/IconPicker.d.ts +2 -2
  80. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -3
  81. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  82. package/dist/types/excalidraw/components/InlineIcon.d.ts +1 -2
  83. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
  84. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +1 -2
  85. package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
  86. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  87. package/dist/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +1 -2
  88. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -2
  89. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
  90. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -2
  91. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +2 -2
  92. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
  93. package/dist/types/excalidraw/components/LockButton.d.ts +1 -2
  94. package/dist/types/excalidraw/components/MagicButton.d.ts +2 -2
  95. package/dist/types/excalidraw/components/MobileMenu.d.ts +2 -1
  96. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +4 -4
  97. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +6 -6
  98. package/dist/types/excalidraw/components/Paragraph.d.ts +1 -2
  99. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
  100. package/dist/types/excalidraw/components/PenModeButton.d.ts +1 -2
  101. package/dist/types/excalidraw/components/Popover.d.ts +1 -1
  102. package/dist/types/excalidraw/components/ProjectName.d.ts +1 -2
  103. package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -2
  104. package/dist/types/excalidraw/components/RadioGroup.d.ts +1 -1
  105. package/dist/types/excalidraw/components/Range.d.ts +1 -2
  106. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -2
  107. package/dist/types/excalidraw/components/ScrollableList.d.ts +1 -1
  108. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -2
  109. package/dist/types/excalidraw/components/ShareableLinkDialog.d.ts +1 -2
  110. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +6 -6
  111. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -2
  112. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -1
  116. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -2
  117. package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -0
  118. package/dist/types/excalidraw/components/Spinner.d.ts +1 -2
  119. package/dist/types/excalidraw/components/Stack.d.ts +2 -3
  120. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -2
  121. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  122. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +1 -1
  123. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -2
  124. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  125. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -2
  126. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -2
  127. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -2
  128. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -2
  129. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -2
  130. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -2
  131. package/dist/types/excalidraw/components/Stats/index.d.ts +4 -4
  132. package/dist/types/excalidraw/components/Switch.d.ts +1 -2
  133. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +1 -2
  134. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +1 -1
  135. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +1 -1
  136. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
  137. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +1 -1
  138. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +1 -1
  139. package/dist/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -2
  140. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -1
  141. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -1
  142. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -1
  143. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +1 -1
  144. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +2 -1
  145. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  146. package/dist/types/excalidraw/components/Toast.d.ts +1 -1
  147. package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
  148. package/dist/types/excalidraw/components/UserList.d.ts +1 -1
  149. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -2
  150. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -2
  151. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  152. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +11 -11
  153. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +1 -1
  154. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +1 -1
  155. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +4 -3
  156. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -2
  157. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +1 -1
  158. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +1 -1
  159. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +2 -1
  160. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +1 -2
  161. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  162. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -2
  163. package/dist/types/excalidraw/components/footer/Footer.d.ts +1 -2
  164. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +1 -2
  165. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -2
  166. package/dist/types/excalidraw/components/icons.d.ts +178 -178
  167. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
  168. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +12 -13
  169. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +9 -9
  170. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +10 -10
  171. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +3 -4
  172. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -15
  173. package/dist/types/excalidraw/element/ElementCanvasButtons.d.ts +1 -2
  174. package/dist/types/excalidraw/element/types.d.ts +1 -1
  175. package/dist/types/excalidraw/fonts/FontMetadata.d.ts +1 -1
  176. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +1 -1
  177. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -1
  178. package/dist/types/excalidraw/index.d.ts +1 -1
  179. package/dist/types/excalidraw/shapes.d.ts +10 -11
  180. package/dist/types/excalidraw/types.d.ts +1 -0
  181. package/package.json +11 -11
  182. package/dist/dev/chunk-CI27YPGF.js.map +0 -7
  183. /package/dist/dev/data/{image-TC7JM54G.js.map → image-EN763OZS.js.map} +0 -0
@@ -3,61 +3,61 @@ import "./WelcomeScreen.scss";
3
3
  declare const WelcomeScreen: {
4
4
  (props: {
5
5
  children?: React.ReactNode;
6
- }): JSX.Element;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
7
  displayName: string;
8
8
  Center: {
9
9
  ({ children }: {
10
10
  children?: import("react").ReactNode;
11
- }): JSX.Element;
11
+ }): import("react/jsx-runtime").JSX.Element;
12
12
  displayName: string;
13
13
  Logo: {
14
14
  ({ children }: {
15
15
  children?: import("react").ReactNode;
16
- }): JSX.Element;
16
+ }): import("react/jsx-runtime").JSX.Element;
17
17
  displayName: string;
18
18
  };
19
19
  Heading: {
20
20
  ({ children }: {
21
21
  children: import("react").ReactNode;
22
- }): JSX.Element;
22
+ }): import("react/jsx-runtime").JSX.Element;
23
23
  displayName: string;
24
24
  };
25
25
  Menu: {
26
26
  ({ children }: {
27
27
  children?: import("react").ReactNode;
28
- }): JSX.Element;
28
+ }): import("react/jsx-runtime").JSX.Element;
29
29
  displayName: string;
30
30
  };
31
31
  MenuItem: {
32
32
  ({ onSelect, children, icon, shortcut, className, ...props }: {
33
33
  onSelect: () => void;
34
34
  children: import("react").ReactNode;
35
- icon?: JSX.Element | undefined;
35
+ icon?: import("react").JSX.Element | undefined;
36
36
  shortcut?: string | null | undefined;
37
- } & import("react").ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
37
+ } & import("react").ButtonHTMLAttributes<HTMLButtonElement>): import("react/jsx-runtime").JSX.Element;
38
38
  displayName: string;
39
39
  };
40
40
  MenuItemLink: {
41
41
  ({ children, href, icon, shortcut, className, ...props }: {
42
42
  children: import("react").ReactNode;
43
43
  href: string;
44
- icon?: JSX.Element | undefined;
44
+ icon?: import("react").JSX.Element | undefined;
45
45
  shortcut?: string | null | undefined;
46
- } & import("react").AnchorHTMLAttributes<HTMLAnchorElement>): JSX.Element;
46
+ } & import("react").AnchorHTMLAttributes<HTMLAnchorElement>): import("react/jsx-runtime").JSX.Element;
47
47
  displayName: string;
48
48
  };
49
49
  MenuItemHelp: {
50
- (): JSX.Element;
50
+ (): import("react/jsx-runtime").JSX.Element;
51
51
  displayName: string;
52
52
  };
53
53
  MenuItemLoadScene: {
54
- (): JSX.Element | null;
54
+ (): import("react/jsx-runtime").JSX.Element | null;
55
55
  displayName: string;
56
56
  };
57
57
  MenuItemLiveCollaborationTrigger: {
58
58
  ({ onSelect, }: {
59
59
  onSelect: () => any;
60
- }): JSX.Element;
60
+ }): import("react/jsx-runtime").JSX.Element;
61
61
  displayName: string;
62
62
  };
63
63
  };
@@ -65,19 +65,19 @@ declare const WelcomeScreen: {
65
65
  MenuHint: {
66
66
  ({ children }: {
67
67
  children?: import("react").ReactNode;
68
- }): JSX.Element;
68
+ }): import("react/jsx-runtime").JSX.Element;
69
69
  displayName: string;
70
70
  };
71
71
  ToolbarHint: {
72
72
  ({ children }: {
73
73
  children?: import("react").ReactNode;
74
- }): JSX.Element;
74
+ }): import("react/jsx-runtime").JSX.Element;
75
75
  displayName: string;
76
76
  };
77
77
  HelpHint: {
78
78
  ({ children }: {
79
79
  children?: import("react").ReactNode;
80
- }): JSX.Element;
80
+ }): import("react/jsx-runtime").JSX.Element;
81
81
  displayName: string;
82
82
  };
83
83
  };
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import type { ElementsMap, NonDeletedExcalidrawElement } from "./types";
3
2
  import "./ElementCanvasButtons.scss";
4
3
  export declare const ElementCanvasButtons: ({ children, element, elementsMap, }: {
5
4
  children: React.ReactNode;
6
5
  element: NonDeletedExcalidrawElement;
7
6
  elementsMap: ElementsMap;
8
- }) => JSX.Element | null;
7
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -228,7 +228,7 @@ export type ExcalidrawElbowArrowElement = Merge<ExcalidrawArrowElement, {
228
228
  elbowed: true;
229
229
  startBinding: FixedPointBinding | null;
230
230
  endBinding: FixedPointBinding | null;
231
- fixedSegments: FixedSegment[] | null;
231
+ fixedSegments: readonly FixedSegment[] | null;
232
232
  /**
233
233
  * Marks that the 3rd point should be used as the 2nd point of the arrow in
234
234
  * order to temporarily hide the first segment of the arrow without losing
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type { JSX } from "react";
2
2
  /**
3
3
  * Encapsulates font metrics with additional font metadata.
4
4
  * */
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare function useOutsideClick<T extends HTMLElement>(ref: React.RefObject<T>,
2
+ export declare function useOutsideClick<T extends HTMLElement>(ref: React.RefObject<T | null>,
3
3
  /** if performance is of concern, memoize the callback */
4
4
  callback: (event: Event) => void,
5
5
  /**
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const useScrollPosition: <T extends HTMLElement>(elementRef: import("react").RefObject<T>) => number;
2
+ export declare const useScrollPosition: <T extends HTMLElement>(elementRef: import("react").RefObject<T | null>) => number;
@@ -7,7 +7,7 @@ import Footer from "./components/footer/FooterCenter";
7
7
  import MainMenu from "./components/main-menu/MainMenu";
8
8
  import WelcomeScreen from "./components/welcome-screen/WelcomeScreen";
9
9
  import LiveCollaborationTrigger from "./components/live-collaboration/LiveCollaborationTrigger";
10
- export declare const Excalidraw: React.MemoExoticComponent<(props: ExcalidrawProps) => JSX.Element>;
10
+ export declare const Excalidraw: React.MemoExoticComponent<(props: ExcalidrawProps) => import("react/jsx-runtime").JSX.Element>;
11
11
  export { getSceneVersion, hashElementsVersion, hashString, isInvisiblySmallElement, getNonDeletedElements, getTextFromElements, } from "./element";
12
12
  export { defaultLang, useI18n, languages } from "./i18n";
13
13
  export { restore, restoreAppState, restoreElements, restoreLibraryItems, } from "./data/restore";
@@ -1,65 +1,64 @@
1
- /// <reference types="react" />
2
1
  import { type GlobalPoint, type LocalPoint } from "@excalidraw/math";
3
2
  import { type GeometricShape } from "@excalidraw/utils/geometry/shape";
4
3
  import type { Bounds } from "./element/bounds";
5
4
  import type { ElementsMap, ExcalidrawElement, ExcalidrawLinearElement, NonDeleted } from "./element/types";
6
5
  import type { Zoom } from "./types";
7
6
  export declare const SHAPES: readonly [{
8
- readonly icon: JSX.Element;
7
+ readonly icon: import("react/jsx-runtime").JSX.Element;
9
8
  readonly value: "selection";
10
9
  readonly key: "v";
11
10
  readonly numericKey: "1";
12
11
  readonly fillable: true;
13
12
  }, {
14
- readonly icon: JSX.Element;
13
+ readonly icon: import("react/jsx-runtime").JSX.Element;
15
14
  readonly value: "rectangle";
16
15
  readonly key: "r";
17
16
  readonly numericKey: "2";
18
17
  readonly fillable: true;
19
18
  }, {
20
- readonly icon: JSX.Element;
19
+ readonly icon: import("react/jsx-runtime").JSX.Element;
21
20
  readonly value: "diamond";
22
21
  readonly key: "d";
23
22
  readonly numericKey: "3";
24
23
  readonly fillable: true;
25
24
  }, {
26
- readonly icon: JSX.Element;
25
+ readonly icon: import("react/jsx-runtime").JSX.Element;
27
26
  readonly value: "ellipse";
28
27
  readonly key: "o";
29
28
  readonly numericKey: "4";
30
29
  readonly fillable: true;
31
30
  }, {
32
- readonly icon: JSX.Element;
31
+ readonly icon: import("react/jsx-runtime").JSX.Element;
33
32
  readonly value: "arrow";
34
33
  readonly key: "a";
35
34
  readonly numericKey: "5";
36
35
  readonly fillable: true;
37
36
  }, {
38
- readonly icon: JSX.Element;
37
+ readonly icon: import("react/jsx-runtime").JSX.Element;
39
38
  readonly value: "line";
40
39
  readonly key: "l";
41
40
  readonly numericKey: "6";
42
41
  readonly fillable: true;
43
42
  }, {
44
- readonly icon: JSX.Element;
43
+ readonly icon: import("react/jsx-runtime").JSX.Element;
45
44
  readonly value: "freedraw";
46
45
  readonly key: readonly ["p", "x"];
47
46
  readonly numericKey: "7";
48
47
  readonly fillable: false;
49
48
  }, {
50
- readonly icon: JSX.Element;
49
+ readonly icon: import("react/jsx-runtime").JSX.Element;
51
50
  readonly value: "text";
52
51
  readonly key: "t";
53
52
  readonly numericKey: "8";
54
53
  readonly fillable: false;
55
54
  }, {
56
- readonly icon: JSX.Element;
55
+ readonly icon: import("react/jsx-runtime").JSX.Element;
57
56
  readonly value: "image";
58
57
  readonly key: null;
59
58
  readonly numericKey: "9";
60
59
  readonly fillable: false;
61
60
  }, {
62
- readonly icon: JSX.Element;
61
+ readonly icon: import("react/jsx-runtime").JSX.Element;
63
62
  readonly value: "eraser";
64
63
  readonly key: "e";
65
64
  readonly numericKey: "0";
@@ -1,3 +1,4 @@
1
+ import type { JSX } from "react";
1
2
  import type React from "react";
2
3
  import type { PointerType, ExcalidrawLinearElement, NonDeletedExcalidrawElement, NonDeleted, TextAlign, ExcalidrawElement, GroupId, ExcalidrawBindableElement, Arrowhead, ChartType, FontFamilyValues, FileId, ExcalidrawImageElement, Theme, StrokeRoundness, ExcalidrawEmbeddableElement, ExcalidrawMagicFrameElement, ExcalidrawFrameLikeElement, ExcalidrawElementType, ExcalidrawIframeLikeElement, OrderedExcalidrawElement, ExcalidrawNonSelectionElement } from "./element/types";
3
4
  import type { Action } from "./actions/types";
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "@excalidraw/excalidraw",
3
- "version": "0.18.0-rc.2",
3
+ "version": "0.18.0-rc.4",
4
4
  "type": "module",
5
5
  "types": "./dist/types/excalidraw/index.d.ts",
6
6
  "main": "./dist/prod/index.js",
7
7
  "module": "./dist/prod/index.js",
8
8
  "exports": {
9
+ "./*": {
10
+ "types": "./dist/types/excalidraw/*.d.ts"
11
+ },
9
12
  "./index.css": {
10
13
  "development": "./dist/dev/index.css",
11
14
  "production": "./dist/prod/index.css"
@@ -14,9 +17,6 @@
14
17
  "types": "./dist/types/excalidraw/index.d.ts",
15
18
  "development": "./dist/dev/index.js",
16
19
  "production": "./dist/prod/index.js"
17
- },
18
- "./*": {
19
- "types": "./../excalidraw/dist/types/excalidraw/*"
20
20
  }
21
21
  },
22
22
  "files": [
@@ -54,8 +54,8 @@
54
54
  ]
55
55
  },
56
56
  "peerDependencies": {
57
- "react": "^17.0.2 || ^18.2.0",
58
- "react-dom": "^17.0.2 || ^18.2.0"
57
+ "react": "^17.0.2 || ^18.2.0 || ^19.0.0",
58
+ "react-dom": "^17.0.2 || ^18.2.0 || ^19.0.0"
59
59
  },
60
60
  "dependencies": {
61
61
  "@braintree/sanitize-url": "6.0.2",
@@ -75,6 +75,7 @@
75
75
  "jotai": "2.11.0",
76
76
  "jotai-scope": "0.7.2",
77
77
  "lodash.throttle": "4.1.1",
78
+ "lodash.debounce": "4.0.8",
78
79
  "nanoid": "3.3.3",
79
80
  "open-color": "1.9.1",
80
81
  "pako": "2.0.3",
@@ -100,8 +101,9 @@
100
101
  "@babel/preset-typescript": "7.24.1",
101
102
  "@size-limit/preset-big-lib": "9.0.0",
102
103
  "@testing-library/dom": "10.4.0",
103
- "@testing-library/jest-dom": "5.16.2",
104
- "@testing-library/react": "16.0.0",
104
+ "@testing-library/jest-dom": "6.6.3",
105
+ "@testing-library/react": "16.2.0",
106
+ "@types/lodash.debounce": "4.0.8",
105
107
  "@types/pako": "2.0.3",
106
108
  "@types/pica": "5.1.3",
107
109
  "@types/resize-observer-browser": "0.1.7",
@@ -124,8 +126,6 @@
124
126
  "homepage": "https://github.com/excalidraw/excalidraw/tree/master/packages/excalidraw",
125
127
  "scripts": {
126
128
  "gen:types": "rm -rf types && tsc",
127
- "build:esm": "rm -rf dist && node ../../scripts/buildPackage.js && yarn gen:types",
128
- "start": "node ../../scripts/buildExample.mjs && vite",
129
- "build:example": "node ../../scripts/buildExample.mjs"
129
+ "build:esm": "rm -rf dist && node ../../scripts/buildPackage.js && yarn gen:types"
130
130
  }
131
131
  }