@zsviczian/excalidraw 0.15.3-obsidian-1 → 0.16.1-obsidian-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.
- package/dist/excalidraw.development.js +329 -87
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +0 -9
- package/package.json +3 -3
- package/types/actions/actionAddToLibrary.d.ts +21 -3
- package/types/actions/actionAlign.d.ts +6 -6
- package/types/actions/actionBoundText.d.ts +14 -2
- package/types/actions/actionCanvas.d.ts +88 -16
- package/types/actions/actionClipboard.d.ts +35 -5
- package/types/actions/actionDeleteSelected.d.ts +22 -4
- package/types/actions/actionDistribute.d.ts +2 -2
- package/types/actions/actionDuplicateSelection.d.ts +1 -1
- package/types/actions/actionElementLock.d.ts +14 -2
- package/types/actions/actionExport.d.ts +69 -15
- package/types/actions/actionFinalize.d.ts +15 -3
- package/types/actions/actionFrame.d.ts +21 -3
- package/types/actions/actionGroup.d.ts +16 -4
- package/types/actions/actionLinearEditor.d.ts +7 -1
- package/types/actions/actionMenu.d.ts +23 -5
- package/types/actions/actionNavigate.d.ts +1 -1
- package/types/actions/actionProperties.d.ts +106 -26
- package/types/actions/actionSelectAll.d.ts +7 -1
- package/types/actions/actionStyles.d.ts +7 -1
- package/types/actions/actionToggleGridMode.d.ts +7 -1
- package/types/actions/actionToggleObjectsSnapMode.d.ts +169 -0
- package/types/actions/actionToggleStats.d.ts +7 -1
- package/types/actions/actionToggleViewMode.d.ts +7 -1
- package/types/actions/actionToggleZenMode.d.ts +7 -1
- package/types/actions/actionZindex.d.ts +4 -4
- package/types/actions/index.d.ts +1 -0
- package/types/actions/manager.d.ts +1 -1
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +2 -1
- package/types/components/Actions.d.ts +6 -6
- package/types/components/ActiveConfirmDialog.d.ts +1 -1
- package/types/components/App.d.ts +22 -4
- package/types/components/Avatar.d.ts +1 -1
- package/types/components/BraveMeasureTextError.d.ts +1 -1
- package/types/components/Button.d.ts +1 -1
- package/types/components/ButtonIconSelect.d.ts +1 -1
- package/types/components/ColorPicker/ColorInput.d.ts +3 -1
- package/types/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/types/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/types/components/ColorPicker/HotkeyLabel.d.ts +1 -1
- package/types/components/ColorPicker/Picker.d.ts +1 -1
- package/types/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/types/components/ColorPicker/PickerHeading.d.ts +1 -1
- package/types/components/ColorPicker/ShadeList.d.ts +1 -1
- package/types/components/ColorPicker/TopPicks.d.ts +1 -1
- package/types/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/types/components/ConfirmDialog.d.ts +1 -1
- package/types/components/ContextMenu.d.ts +1 -1
- package/types/components/DarkModeToggle.d.ts +1 -1
- package/types/components/DefaultSidebar.d.ts +1 -1
- package/types/components/Dialog.d.ts +1 -1
- package/types/components/DialogActionButton.d.ts +1 -1
- package/types/components/ErrorDialog.d.ts +1 -1
- package/types/components/ExcalidrawLogo.d.ts +15 -0
- package/types/components/EyeDropper.d.ts +18 -7
- package/types/components/FixedSideContainer.d.ts +1 -1
- package/types/components/HandButton.d.ts +1 -1
- package/types/components/HelpButton.d.ts +1 -1
- package/types/components/HelpDialog.d.ts +1 -1
- package/types/components/HintViewer.d.ts +1 -1
- package/types/components/IconPicker.d.ts +1 -1
- package/types/components/ImageExportDialog.d.ts +2 -2
- package/types/components/InitializeApp.d.ts +1 -1
- package/types/components/JSONExportDialog.d.ts +1 -1
- package/types/components/LayerUI.d.ts +1 -1
- package/types/components/LibraryMenu.d.ts +2 -2
- package/types/components/LibraryMenuBrowseButton.d.ts +1 -1
- package/types/components/LibraryMenuControlButtons.d.ts +1 -1
- package/types/components/LibraryMenuHeaderContent.d.ts +1 -1
- package/types/components/LibraryMenuItems.d.ts +1 -1
- package/types/components/LibraryMenuSection.d.ts +2 -2
- package/types/components/LibraryUnit.d.ts +2 -2
- package/types/components/LockButton.d.ts +1 -1
- package/types/components/MermaidToExcalidraw.d.ts +12 -0
- package/types/components/MobileMenu.d.ts +1 -1
- package/types/components/OverwriteConfirm/OverwriteConfirm.d.ts +4 -4
- package/types/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +6 -6
- package/types/components/PasteChartDialog.d.ts +1 -1
- package/types/components/PenModeButton.d.ts +1 -1
- package/types/components/Popover.d.ts +1 -1
- package/types/components/ProjectName.d.ts +1 -1
- package/types/components/PublishLibrary.d.ts +1 -1
- package/types/components/RadioGroup.d.ts +1 -1
- package/types/components/Sidebar/Sidebar.d.ts +8 -8
- package/types/components/Sidebar/SidebarHeader.d.ts +1 -1
- package/types/components/Sidebar/SidebarTab.d.ts +1 -1
- package/types/components/Sidebar/SidebarTabTrigger.d.ts +1 -1
- package/types/components/Sidebar/SidebarTabTriggers.d.ts +1 -1
- package/types/components/Sidebar/SidebarTabs.d.ts +1 -1
- package/types/components/Sidebar/SidebarTrigger.d.ts +1 -1
- package/types/components/Spinner.d.ts +1 -1
- package/types/components/Stack.d.ts +2 -2
- package/types/components/Stats.d.ts +1 -1
- package/types/components/Switch.d.ts +1 -1
- package/types/components/Toast.d.ts +1 -1
- package/types/components/Tooltip.d.ts +1 -1
- package/types/components/canvases/InteractiveCanvas.d.ts +1 -1
- package/types/components/canvases/StaticCanvas.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenu.d.ts +8 -8
- package/types/components/dropdownMenu/DropdownMenuContent.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +1 -1
- package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -2
- package/types/components/footer/Footer.d.ts +1 -1
- package/types/components/footer/FooterCenter.d.ts +1 -1
- package/types/components/icons.d.ts +128 -126
- package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
- package/types/components/main-menu/DefaultItems.d.ts +10 -10
- package/types/components/main-menu/MainMenu.d.ts +6 -6
- package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +9 -9
- package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +3 -3
- package/types/components/welcome-screen/WelcomeScreen.d.ts +13 -13
- package/types/constants.d.ts +5 -0
- package/types/data/transform.d.ts +3 -1
- package/types/element/Hyperlink.d.ts +9 -3
- package/types/element/bounds.d.ts +4 -5
- package/types/element/dragElements.d.ts +11 -2
- package/types/element/embeddable.d.ts +7 -1
- package/types/element/linearElementEditor.d.ts +8 -2
- package/types/element/resizeElements.d.ts +2 -2
- package/types/frame.d.ts +1 -1
- package/types/hooks/useStable.d.ts +1 -0
- package/types/keys.d.ts +1 -0
- package/types/math.d.ts +2 -0
- package/types/packages/excalidraw/example/App.d.ts +1 -1
- package/types/packages/excalidraw/example/CustomFooter.d.ts +1 -1
- package/types/packages/excalidraw/example/MobileFooter.d.ts +1 -1
- package/types/packages/excalidraw/example/sidebar/ExampleSidebar.d.ts +1 -1
- package/types/packages/excalidraw/index.d.ts +1 -1
- package/types/packages/excalidraw/webpack.dev.config.d.ts +11 -0
- package/types/packages/excalidraw/webpack.prod.config.d.ts +11 -0
- package/types/packages/utils.d.ts +1 -0
- package/types/renderer/renderSnaps.d.ts +2 -0
- package/types/scene/selection.d.ts +1 -0
- package/types/shapes.d.ts +10 -10
- package/types/snapping.d.ts +108 -0
- package/types/types.d.ts +26 -3
- package/types/utils.d.ts +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "./ExcalidrawLogo.scss";
|
|
2
|
+
type LogoSize = "xs" | "small" | "normal" | "large" | "custom";
|
|
3
|
+
interface LogoProps {
|
|
4
|
+
size?: LogoSize;
|
|
5
|
+
withText?: boolean;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
/**
|
|
8
|
+
* If true, the logo will not be wrapped in a Link component.
|
|
9
|
+
* The link prop will be ignored as well.
|
|
10
|
+
* It will merely be a plain div.
|
|
11
|
+
*/
|
|
12
|
+
isNotLink?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const ExcalidrawLogo: ({ style, size, withText, }: LogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,17 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import "./EyeDropper.scss";
|
|
2
|
-
|
|
3
|
+
import { ColorPickerType } from "./ColorPicker/colorPickerUtils";
|
|
4
|
+
import { ExcalidrawElement } from "../element/types";
|
|
5
|
+
export type EyeDropperProperties = {
|
|
3
6
|
keepOpenOnAlt: boolean;
|
|
4
7
|
swapPreviewOnAlt?: boolean;
|
|
5
|
-
|
|
6
|
-
|
|
8
|
+
/** called when user picks color (on pointerup) */
|
|
9
|
+
onSelect: (color: string, event: PointerEvent) => void;
|
|
10
|
+
/**
|
|
11
|
+
* property of selected elements to update live when alt-dragging.
|
|
12
|
+
* Supply `null` if not applicable (e.g. updating the canvas bg instead of
|
|
13
|
+
* elements)
|
|
14
|
+
**/
|
|
15
|
+
colorPickerType: ColorPickerType;
|
|
7
16
|
};
|
|
8
17
|
export declare const activeEyeDropperAtom: import("jotai").PrimitiveAtom<EyeDropperProperties | null> & {
|
|
9
18
|
init: EyeDropperProperties | null;
|
|
10
19
|
};
|
|
11
20
|
export declare const EyeDropper: React.FC<{
|
|
12
21
|
onCancel: () => void;
|
|
13
|
-
onSelect:
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
onSelect: EyeDropperProperties["onSelect"];
|
|
23
|
+
/** called when color changes, on pointerdown for preview */
|
|
24
|
+
onChange: (type: ColorPickerType, color: string, selectedElements: ExcalidrawElement[], event: {
|
|
25
|
+
altKey: boolean;
|
|
26
|
+
}) => void;
|
|
27
|
+
colorPickerType: EyeDropperProperties["colorPickerType"];
|
|
16
28
|
}>;
|
|
17
|
-
export {};
|
|
@@ -5,5 +5,5 @@ type FixedSideContainerProps = {
|
|
|
5
5
|
side: "top" | "left" | "right";
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const FixedSideContainer: ({ children, side, className, }: FixedSideContainerProps) => JSX.Element;
|
|
8
|
+
export declare const FixedSideContainer: ({ children, side, className, }: FixedSideContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -6,5 +6,5 @@ interface HintViewerProps {
|
|
|
6
6
|
device: Device;
|
|
7
7
|
app: AppClassProperties;
|
|
8
8
|
}
|
|
9
|
-
export declare const HintViewer: ({ appState, isMobile, device, app, }: HintViewerProps) => JSX.Element | null;
|
|
9
|
+
export declare const HintViewer: ({ appState, isMobile, device, app, }: HintViewerProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
10
|
export {};
|
|
@@ -2,7 +2,7 @@ import type { ActionManager } from "../actions/manager";
|
|
|
2
2
|
import type { AppClassProperties, BinaryFiles, UIAppState } from "../types";
|
|
3
3
|
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
4
4
|
import "./ImageExportDialog.scss";
|
|
5
|
-
export declare const ErrorCanvasPreview: () => JSX.Element;
|
|
5
|
+
export declare const ErrorCanvasPreview: () => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const ImageExportDialog: ({ elements, appState, files, actionManager, onExportImage, onCloseRequest, }: {
|
|
7
7
|
appState: UIAppState;
|
|
8
8
|
elements: readonly NonDeletedExcalidrawElement[];
|
|
@@ -10,4 +10,4 @@ export declare const ImageExportDialog: ({ elements, appState, files, actionMana
|
|
|
10
10
|
actionManager: ActionManager;
|
|
11
11
|
onExportImage: AppClassProperties["onExportImage"];
|
|
12
12
|
onCloseRequest: () => void;
|
|
13
|
-
}) => JSX.Element | null;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -12,4 +12,4 @@ export declare const JSONExportDialog: ({ elements, appState, files, actionManag
|
|
|
12
12
|
exportOpts: ExportOpts;
|
|
13
13
|
canvas: HTMLCanvasElement;
|
|
14
14
|
setAppState: React.Component<any, UIAppState>["setState"];
|
|
15
|
-
}) => JSX.Element;
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -29,5 +29,5 @@ interface LayerUIProps {
|
|
|
29
29
|
children?: React.ReactNode;
|
|
30
30
|
app: AppClassProperties;
|
|
31
31
|
}
|
|
32
|
-
declare const _default: React.MemoExoticComponent<({ actionManager, appState, files, setAppState, elements, canvas, interactiveCanvas, onLockToggle, onHandToolToggle, onPenModeToggle, showExitZenModeBtn, renderTopRightUI, renderCustomStats, UIOptions, onImageAction, onExportImage, renderWelcomeScreen, children, app, }: LayerUIProps) => JSX.Element>;
|
|
32
|
+
declare const _default: React.MemoExoticComponent<({ actionManager, appState, files, setAppState, elements, canvas, interactiveCanvas, onLockToggle, onHandToolToggle, onPenModeToggle, showExitZenModeBtn, renderTopRightUI, renderCustomStats, UIOptions, onImageAction, onExportImage, renderWelcomeScreen, children, app, }: LayerUIProps) => import("react/jsx-runtime").JSX.Element>;
|
|
33
33
|
export default _default;
|
|
@@ -16,9 +16,9 @@ export declare const LibraryMenuContent: ({ onInsertLibraryItems, pendingElement
|
|
|
16
16
|
theme: UIAppState["theme"];
|
|
17
17
|
selectedItems: LibraryItem["id"][];
|
|
18
18
|
onSelectItems: (id: LibraryItem["id"][]) => void;
|
|
19
|
-
}) => JSX.Element;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
/**
|
|
21
21
|
* This component is meant to be rendered inside <Sidebar.Tab/> inside our
|
|
22
22
|
* <DefaultSidebar/> or host apps Sidebar components.
|
|
23
23
|
*/
|
|
24
|
-
export declare const LibraryMenu: () => JSX.Element;
|
|
24
|
+
export declare const LibraryMenu: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,5 +3,5 @@ declare const LibraryMenuBrowseButton: ({ theme, id, libraryReturnUrl, }: {
|
|
|
3
3
|
libraryReturnUrl: ExcalidrawProps["libraryReturnUrl"];
|
|
4
4
|
theme: UIAppState["theme"];
|
|
5
5
|
id: string;
|
|
6
|
-
}) => JSX.Element;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default LibraryMenuBrowseButton;
|
|
@@ -14,4 +14,4 @@ export declare const LibraryDropdownMenu: ({ selectedItems, onSelectItems, class
|
|
|
14
14
|
selectedItems: LibraryItem["id"][];
|
|
15
15
|
onSelectItems: (id: LibraryItem["id"][]) => void;
|
|
16
16
|
className?: string | undefined;
|
|
17
|
-
}) => JSX.Element;
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,6 +17,6 @@ interface Props {
|
|
|
17
17
|
}
|
|
18
18
|
export declare const LibraryMenuSectionGrid: ({ children, }: {
|
|
19
19
|
children: ReactNode;
|
|
20
|
-
}) => JSX.Element;
|
|
21
|
-
export declare const LibraryMenuSection: React.MemoExoticComponent<({ items, onItemSelectToggle, onItemDrag, isItemSelected, onClick, svgCache, itemsRenderedPerBatch, }: Props) => JSX.Element>;
|
|
20
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const LibraryMenuSection: React.MemoExoticComponent<({ items, onItemSelectToggle, onItemDrag, isItemSelected, onClick, svgCache, itemsRenderedPerBatch, }: Props) => import("react/jsx-runtime").JSX.Element>;
|
|
22
22
|
export {};
|
|
@@ -10,5 +10,5 @@ export declare const LibraryUnit: import("react").MemoExoticComponent<({ id, ele
|
|
|
10
10
|
onToggle: (id: string, event: React.MouseEvent) => void;
|
|
11
11
|
onDrag: (id: string, event: React.DragEvent) => void;
|
|
12
12
|
svgCache: SvgCache;
|
|
13
|
-
}) => JSX.Element>;
|
|
14
|
-
export declare const EmptyLibraryUnit: () => JSX.Element;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
14
|
+
export declare const EmptyLibraryUnit: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ExcalidrawElement, //zsviczian
|
|
2
|
+
NonDeletedExcalidrawElement } from "../element/types";
|
|
3
|
+
import "./MermaidToExcalidraw.scss";
|
|
4
|
+
import type { MermaidOptions } from "@zsviczian/mermaid-to-excalidraw";
|
|
5
|
+
declare const MermaidToExcalidraw: ({ selectedElements, }: {
|
|
6
|
+
selectedElements: readonly NonDeletedExcalidrawElement[];
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default MermaidToExcalidraw;
|
|
9
|
+
export declare const mermaidToExcalidraw: (mermaidDefinition: string, opts?: MermaidOptions) => Promise<{
|
|
10
|
+
elements: ExcalidrawElement[];
|
|
11
|
+
files: any;
|
|
12
|
+
} | undefined>;
|
|
@@ -23,5 +23,5 @@ type MobileMenuProps = {
|
|
|
23
23
|
renderWelcomeScreen: boolean;
|
|
24
24
|
app: AppClassProperties;
|
|
25
25
|
};
|
|
26
|
-
export declare const MobileMenu: ({ appState, elements, actionManager, setAppState, onLockToggle, onHandToolToggle, onPenModeToggle, interactiveCanvas, onImageAction, renderTopRightUI, renderCustomStats, renderSidebars, device, renderWelcomeScreen, app, }: MobileMenuProps) => JSX.Element;
|
|
26
|
+
export declare const MobileMenu: ({ appState, elements, actionManager, setAppState, onLockToggle, onHandToolToggle, onPenModeToggle, interactiveCanvas, onImageAction, renderTopRightUI, renderCustomStats, renderSidebars, device, renderWelcomeScreen, app, }: MobileMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
export {};
|
|
@@ -8,10 +8,10 @@ declare const OverwriteConfirmDialog: React.FC<OverwriteConfirmDialogProps & {
|
|
|
8
8
|
}> & {
|
|
9
9
|
Actions: (({ children }: {
|
|
10
10
|
children: React.ReactNode;
|
|
11
|
-
}) => JSX.Element) & {
|
|
12
|
-
ExportToImage: () => JSX.Element;
|
|
13
|
-
SaveToDisk: () => JSX.Element;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
|
12
|
+
ExportToImage: () => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
SaveToDisk: () => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
};
|
|
15
|
-
Action: ({ title, children, actionLabel, onClick, }: import("./OverwriteConfirmActions").ActionProps) => JSX.Element;
|
|
15
|
+
Action: ({ title, children, actionLabel, onClick, }: import("./OverwriteConfirmActions").ActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
};
|
|
17
17
|
export { OverwriteConfirmDialog };
|
|
@@ -5,13 +5,13 @@ export type ActionProps = {
|
|
|
5
5
|
actionLabel: string;
|
|
6
6
|
onClick: () => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const Action: ({ title, children, actionLabel, onClick, }: ActionProps) => JSX.Element;
|
|
9
|
-
export declare const ExportToImage: () => JSX.Element;
|
|
10
|
-
export declare const SaveToDisk: () => JSX.Element;
|
|
8
|
+
export declare const Action: ({ title, children, actionLabel, onClick, }: ActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const ExportToImage: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const SaveToDisk: () => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
declare const Actions: (({ children }: {
|
|
12
12
|
children: React.ReactNode;
|
|
13
|
-
}) => JSX.Element) & {
|
|
14
|
-
ExportToImage: () => JSX.Element;
|
|
15
|
-
SaveToDisk: () => JSX.Element;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
|
14
|
+
ExportToImage: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
SaveToDisk: () => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
};
|
|
17
17
|
export { Actions };
|
|
@@ -8,5 +8,5 @@ type PenModeIconProps = {
|
|
|
8
8
|
isMobile?: boolean;
|
|
9
9
|
penDetected: boolean;
|
|
10
10
|
};
|
|
11
|
-
export declare const PenModeButton: (props: PenModeIconProps) => JSX.Element | null;
|
|
11
|
+
export declare const PenModeButton: (props: PenModeIconProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
12
|
export {};
|
|
@@ -11,5 +11,5 @@ type Props = {
|
|
|
11
11
|
viewportWidth?: number;
|
|
12
12
|
viewportHeight?: number;
|
|
13
13
|
};
|
|
14
|
-
export declare const Popover: ({ children, left, top, onCloseRequest, fitInViewport, offsetLeft, offsetTop, viewportWidth, viewportHeight, }: Props) => JSX.Element;
|
|
14
|
+
export declare const Popover: ({ children, left, top, onCloseRequest, fitInViewport, offsetLeft, offsetTop, viewportWidth, viewportHeight, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -12,5 +12,5 @@ declare const PublishLibrary: ({ onClose, libraryItems, appState, onSuccess, onE
|
|
|
12
12
|
onError: (error: Error) => void;
|
|
13
13
|
updateItemsInStorage: (items: LibraryItems) => void;
|
|
14
14
|
onRemove: (id: string) => void;
|
|
15
|
-
}) => JSX.Element;
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export default PublishLibrary;
|
|
@@ -9,4 +9,4 @@ export type RadioGroupProps<T> = {
|
|
|
9
9
|
onChange: (value: T) => void;
|
|
10
10
|
name: string;
|
|
11
11
|
};
|
|
12
|
-
export declare const RadioGroup: <T>({ onChange, value, choices, name, }: RadioGroupProps<T>) => JSX.Element;
|
|
12
|
+
export declare const RadioGroup: <T>({ onChange, value, choices, name, }: RadioGroupProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,7 +11,7 @@ import "./Sidebar.scss";
|
|
|
11
11
|
export declare const isSidebarDockedAtom: import("jotai").PrimitiveAtom<boolean> & {
|
|
12
12
|
init: boolean;
|
|
13
13
|
};
|
|
14
|
-
export declare const SidebarInner: React.ForwardRefExoticComponent<
|
|
14
|
+
export declare const SidebarInner: React.ForwardRefExoticComponent<Omit<{
|
|
15
15
|
name: string;
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
onStateChange?: ((state: {
|
|
@@ -22,7 +22,7 @@ export declare const SidebarInner: React.ForwardRefExoticComponent<Pick<{
|
|
|
22
22
|
docked?: boolean | undefined;
|
|
23
23
|
className?: string | undefined;
|
|
24
24
|
__fallback?: boolean | undefined;
|
|
25
|
-
} & Omit<React.RefAttributes<HTMLDivElement>, "onSelect">, "
|
|
25
|
+
} & Omit<React.RefAttributes<HTMLDivElement>, "onSelect">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
26
26
|
export declare const Sidebar: React.ForwardRefExoticComponent<{
|
|
27
27
|
name: string;
|
|
28
28
|
children: React.ReactNode;
|
|
@@ -39,13 +39,13 @@ export declare const Sidebar: React.ForwardRefExoticComponent<{
|
|
|
39
39
|
({ children, className, }: {
|
|
40
40
|
children?: React.ReactNode;
|
|
41
41
|
className?: string | undefined;
|
|
42
|
-
}): JSX.Element;
|
|
42
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
43
43
|
displayName: string;
|
|
44
44
|
};
|
|
45
45
|
TabTriggers: {
|
|
46
46
|
({ children, ...rest }: {
|
|
47
47
|
children: React.ReactNode;
|
|
48
|
-
} & Omit<React.RefAttributes<HTMLDivElement>, "onSelect">): JSX.Element;
|
|
48
|
+
} & Omit<React.RefAttributes<HTMLDivElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
|
|
49
49
|
displayName: string;
|
|
50
50
|
};
|
|
51
51
|
TabTrigger: {
|
|
@@ -53,24 +53,24 @@ export declare const Sidebar: React.ForwardRefExoticComponent<{
|
|
|
53
53
|
children: React.ReactNode;
|
|
54
54
|
tab: string;
|
|
55
55
|
onSelect?: React.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
56
|
-
} & Omit<React.HTMLAttributes<HTMLButtonElement>, "onSelect">): JSX.Element;
|
|
56
|
+
} & Omit<React.HTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
|
|
57
57
|
displayName: string;
|
|
58
58
|
};
|
|
59
59
|
Tabs: {
|
|
60
60
|
({ children, ...rest }: {
|
|
61
61
|
children: React.ReactNode;
|
|
62
|
-
} & Omit<React.RefAttributes<HTMLDivElement>, "onSelect">): JSX.Element | null;
|
|
62
|
+
} & Omit<React.RefAttributes<HTMLDivElement>, "onSelect">): import("react/jsx-runtime").JSX.Element | null;
|
|
63
63
|
displayName: string;
|
|
64
64
|
};
|
|
65
65
|
Tab: {
|
|
66
66
|
({ tab, children, ...rest }: {
|
|
67
67
|
tab: string;
|
|
68
68
|
children: React.ReactNode;
|
|
69
|
-
} & React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
69
|
+
} & React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
70
70
|
displayName: string;
|
|
71
71
|
};
|
|
72
72
|
Trigger: {
|
|
73
|
-
({ name, tab, icon, title, children, onToggle, className, style, }: import("./common").SidebarTriggerProps): JSX.Element;
|
|
73
|
+
({ name, tab, icon, title, children, onToggle, className, style, }: import("./common").SidebarTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
74
74
|
displayName: string;
|
|
75
75
|
};
|
|
76
76
|
};
|
|
@@ -3,6 +3,6 @@ export declare const SidebarTab: {
|
|
|
3
3
|
({ tab, children, ...rest }: {
|
|
4
4
|
tab: SidebarTabName;
|
|
5
5
|
children: React.ReactNode;
|
|
6
|
-
} & import("react").HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
6
|
+
} & import("react").HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
@@ -4,6 +4,6 @@ export declare const SidebarTabTrigger: {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
tab: SidebarTabName;
|
|
6
6
|
onSelect?: React.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
7
|
-
} & Omit<import("react").HTMLAttributes<HTMLButtonElement>, "onSelect">): JSX.Element;
|
|
7
|
+
} & Omit<import("react").HTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
displayName: string;
|
|
9
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const SidebarTabTriggers: {
|
|
2
2
|
({ children, ...rest }: {
|
|
3
3
|
children: React.ReactNode;
|
|
4
|
-
} & Omit<import("react").RefAttributes<HTMLDivElement>, "onSelect">): JSX.Element;
|
|
4
|
+
} & Omit<import("react").RefAttributes<HTMLDivElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const SidebarTabs: {
|
|
2
2
|
({ children, ...rest }: {
|
|
3
3
|
children: React.ReactNode;
|
|
4
|
-
} & Omit<import("react").RefAttributes<HTMLDivElement>, "onSelect">): JSX.Element | null;
|
|
4
|
+
} & Omit<import("react").RefAttributes<HTMLDivElement>, "onSelect">): import("react/jsx-runtime").JSX.Element | null;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SidebarTriggerProps } from "./common";
|
|
2
2
|
import "./SidebarTrigger.scss";
|
|
3
3
|
export declare const SidebarTrigger: {
|
|
4
|
-
({ name, tab, icon, title, children, onToggle, className, style, }: SidebarTriggerProps): JSX.Element;
|
|
4
|
+
({ name, tab, icon, title, children, onToggle, className, style, }: SidebarTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
@@ -10,7 +10,7 @@ type StackProps = {
|
|
|
10
10
|
ref: React.RefObject<HTMLDivElement>;
|
|
11
11
|
};
|
|
12
12
|
declare const _default: {
|
|
13
|
-
Row: React.ForwardRefExoticComponent<
|
|
14
|
-
Col: React.ForwardRefExoticComponent<
|
|
13
|
+
Row: React.ForwardRefExoticComponent<Omit<StackProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Col: React.ForwardRefExoticComponent<Omit<StackProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
};
|
|
16
16
|
export default _default;
|
|
@@ -6,4 +6,4 @@ export type SwitchProps = {
|
|
|
6
6
|
onChange: (value: boolean) => void;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export declare const Switch: ({ title, name, checked, onChange, disabled, }: SwitchProps) => JSX.Element;
|
|
9
|
+
export declare const Switch: ({ title, name, checked, onChange, disabled, }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,5 +13,5 @@ type TooltipProps = {
|
|
|
13
13
|
long?: boolean;
|
|
14
14
|
style?: React.CSSProperties;
|
|
15
15
|
};
|
|
16
|
-
export declare const Tooltip: ({ children, label, long, style, }: TooltipProps) => JSX.Element;
|
|
16
|
+
export declare const Tooltip: ({ children, label, long, style, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -23,5 +23,5 @@ type InteractiveCanvasProps = {
|
|
|
23
23
|
onPointerDown: Exclude<DOMAttributes<HTMLCanvasElement>["onPointerDown"], undefined>;
|
|
24
24
|
onDoubleClick: Exclude<DOMAttributes<HTMLCanvasElement>["onDoubleClick"], undefined>;
|
|
25
25
|
};
|
|
26
|
-
declare const _default: React.MemoExoticComponent<(props: InteractiveCanvasProps) => JSX.Element>;
|
|
26
|
+
declare const _default: React.MemoExoticComponent<(props: InteractiveCanvasProps) => import("react/jsx-runtime").JSX.Element>;
|
|
27
27
|
export default _default;
|
|
@@ -14,5 +14,5 @@ type StaticCanvasProps = {
|
|
|
14
14
|
appState: StaticCanvasAppState;
|
|
15
15
|
renderConfig: StaticCanvasRenderConfig;
|
|
16
16
|
};
|
|
17
|
-
declare const _default: React.MemoExoticComponent<(props: StaticCanvasProps) => JSX.Element>;
|
|
17
|
+
declare const _default: React.MemoExoticComponent<(props: StaticCanvasProps) => import("react/jsx-runtime").JSX.Element>;
|
|
18
18
|
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,7 +21,7 @@ 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: {
|
|
@@ -31,7 +31,7 @@ declare const DropdownMenu: {
|
|
|
31
31
|
children: React.ReactNode;
|
|
32
32
|
shortcut?: string | undefined;
|
|
33
33
|
className?: string | undefined;
|
|
34
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): JSX.Element;
|
|
34
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
|
|
35
35
|
displayName: string;
|
|
36
36
|
};
|
|
37
37
|
ItemLink: {
|
|
@@ -42,24 +42,24 @@ declare const DropdownMenu: {
|
|
|
42
42
|
shortcut?: string | undefined;
|
|
43
43
|
className?: string | undefined;
|
|
44
44
|
onSelect?: ((event: Event) => void) | undefined;
|
|
45
|
-
} & React.AnchorHTMLAttributes<HTMLAnchorElement>): JSX.Element;
|
|
45
|
+
} & React.AnchorHTMLAttributes<HTMLAnchorElement>): import("react/jsx-runtime").JSX.Element;
|
|
46
46
|
displayName: string;
|
|
47
47
|
};
|
|
48
48
|
ItemCustom: ({ children, className, ...rest }: {
|
|
49
49
|
children: React.ReactNode;
|
|
50
50
|
className?: string | undefined;
|
|
51
|
-
} & React.HTMLAttributes<HTMLDivElement>) => JSX.Element;
|
|
51
|
+
} & React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
52
52
|
Group: {
|
|
53
53
|
({ children, className, style, title, }: {
|
|
54
54
|
children: React.ReactNode;
|
|
55
55
|
className?: string | undefined;
|
|
56
56
|
style?: React.CSSProperties | undefined;
|
|
57
57
|
title?: string | undefined;
|
|
58
|
-
}): JSX.Element;
|
|
58
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
59
59
|
displayName: string;
|
|
60
60
|
};
|
|
61
61
|
Separator: {
|
|
62
|
-
(): JSX.Element;
|
|
62
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
63
63
|
displayName: string;
|
|
64
64
|
};
|
|
65
65
|
displayName: string;
|
|
@@ -6,7 +6,7 @@ declare const DropdownMenuItem: {
|
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
shortcut?: string | undefined;
|
|
8
8
|
className?: string | undefined;
|
|
9
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): JSX.Element;
|
|
9
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
export default DropdownMenuItem;
|
|
@@ -2,5 +2,5 @@ import React from "react";
|
|
|
2
2
|
declare const DropdownMenuItemCustom: ({ children, className, ...rest }: {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
className?: string | undefined;
|
|
5
|
-
} & React.HTMLAttributes<HTMLDivElement>) => JSX.Element;
|
|
5
|
+
} & React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default DropdownMenuItemCustom;
|