@excalidraw/excalidraw 0.12.0-958ebea → 0.12.0-966ca2f

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 (47) hide show
  1. package/dist/excalidraw.development.js +15 -26
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +2 -7
  4. package/package.json +4 -4
  5. package/types/actions/actionAlign.d.ts +6 -6
  6. package/types/actions/actionCanvas.d.ts +7 -7
  7. package/types/actions/actionDeleteSelected.d.ts +1 -1
  8. package/types/actions/actionDistribute.d.ts +2 -2
  9. package/types/actions/actionDuplicateSelection.d.ts +1 -1
  10. package/types/actions/actionExport.d.ts +8 -8
  11. package/types/actions/actionFinalize.d.ts +1 -1
  12. package/types/actions/actionGroup.d.ts +2 -2
  13. package/types/actions/actionMenu.d.ts +3 -3
  14. package/types/actions/actionNavigate.d.ts +1 -2
  15. package/types/actions/actionProperties.d.ts +13 -13
  16. package/types/actions/actionZindex.d.ts +4 -4
  17. package/types/components/ActiveFile.d.ts +0 -1
  18. package/types/components/ButtonIconSelect.d.ts +0 -1
  19. package/types/components/Card.d.ts +1 -0
  20. package/types/components/CheckboxItem.d.ts +1 -0
  21. package/types/components/ClearCanvas.d.ts +0 -1
  22. package/types/components/CollabButton.d.ts +0 -1
  23. package/types/components/ColorPicker.d.ts +0 -1
  24. package/types/components/ConfirmDialog.d.ts +0 -1
  25. package/types/components/DarkModeToggle.d.ts +0 -1
  26. package/types/components/ErrorDialog.d.ts +0 -1
  27. package/types/components/HelpDialog.d.ts +0 -1
  28. package/types/components/HelpIcon.d.ts +0 -1
  29. package/types/components/HintViewer.d.ts +0 -1
  30. package/types/components/IconPicker.d.ts +0 -1
  31. package/types/components/ImageExportDialog.d.ts +0 -1
  32. package/types/components/JSONExportDialog.d.ts +0 -1
  33. package/types/components/LibraryMenu.d.ts +0 -1
  34. package/types/components/LibraryUnit.d.ts +0 -1
  35. package/types/components/LockButton.d.ts +0 -1
  36. package/types/components/Modal.d.ts +2 -2
  37. package/types/components/PenModeButton.d.ts +0 -1
  38. package/types/components/ProjectName.d.ts +0 -1
  39. package/types/components/PublishLibrary.d.ts +0 -1
  40. package/types/components/Section.d.ts +4 -5
  41. package/types/components/SidebarLockButton.d.ts +0 -1
  42. package/types/components/SingleLibraryItem.d.ts +0 -1
  43. package/types/components/Spinner.d.ts +0 -1
  44. package/types/components/Toast.d.ts +0 -1
  45. package/types/element/Hyperlink.d.ts +1 -1
  46. package/types/packages/excalidraw/example/App.d.ts +0 -1
  47. package/types/shapes.d.ts +0 -1
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./TextInput.scss";
3
2
  import "./ProjectName.scss";
4
3
  declare type Props = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AppState, LibraryItems } from "../types";
3
2
  import "./PublishLibrary.scss";
4
3
  declare const PublishLibrary: ({ onClose, libraryItems, appState, onSuccess, onError, updateItemsInStorage, onRemove, }: {
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
- interface SectionProps extends React.HTMLProps<HTMLElement> {
2
+ export declare const Section: React.FC<{
3
3
  heading: string;
4
- children: React.ReactNode | ((header: React.ReactNode) => React.ReactNode);
5
- }
6
- export declare const Section: ({ heading, children, ...props }: SectionProps) => JSX.Element;
7
- export {};
4
+ children?: React.ReactNode | ((heading: React.ReactNode) => React.ReactNode);
5
+ className?: string;
6
+ }>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./ToolIcon.scss";
3
2
  import "./SidebarLockButton.scss";
4
3
  declare type SidebarLockIconProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AppState, LibraryItem } from "../types";
3
2
  import "./SingleLibraryItem.scss";
4
3
  declare const SingleLibraryItem: ({ libItem, appState, index, onChange, onRemove, }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./Spinner.scss";
3
2
  declare const Spinner: ({ size, circleWidth, }: {
4
3
  size?: string | number | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./Toast.scss";
3
2
  export declare const Toast: ({ message, onClose, closable, duration, }: {
4
3
  message: string;
@@ -123,7 +123,7 @@ export declare const actionLink: {
123
123
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
124
124
  contextItemLabel: (elements: readonly import("./types").ExcalidrawElement[], appState: Readonly<AppState>) => "labels.link.edit" | "labels.link.create";
125
125
  contextItemPredicate: (elements: readonly import("./types").ExcalidrawElement[], appState: AppState) => boolean;
126
- PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("../actions/types").PanelComponentProps>) => JSX.Element;
126
+ PanelComponent: ({ elements, appState, updateData }: import("../actions/types").PanelComponentProps) => JSX.Element;
127
127
  } & {
128
128
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
129
129
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./App.scss";
3
2
  declare global {
4
3
  interface Window {
package/types/shapes.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const SHAPES: readonly [{
3
2
  readonly icon: JSX.Element;
4
3
  readonly value: "selection";