@misenkashari/excalidraw-common 1.0.3 → 1.0.6
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/dev/index.js +5 -5
- package/dist/dev/index.js.map +1 -1
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/constants.d.ts +1 -1
- package/dist/types/common/src/font-metadata.d.ts +1 -1
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/utils.d.ts +1 -1
- package/dist/types/common/src/visualdebug.d.ts +3 -3
- package/dist/types/element/src/Scene.d.ts +4 -4
- package/dist/types/element/src/binding.d.ts +3 -3
- package/dist/types/element/src/bounds.d.ts +2 -2
- package/dist/types/element/src/collision.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +2 -2
- package/dist/types/element/src/distance.d.ts +1 -1
- package/dist/types/element/src/dragElements.d.ts +1 -1
- package/dist/types/element/src/duplicate.d.ts +1 -1
- package/dist/types/element/src/elbowArrow.d.ts +1 -1
- package/dist/types/element/src/embeddable.d.ts +1 -1
- package/dist/types/element/src/frame.d.ts +1 -1
- package/dist/types/element/src/groups.d.ts +1 -1
- package/dist/types/element/src/heading.d.ts +2 -2
- package/dist/types/element/src/image.d.ts +1 -1
- package/dist/types/element/src/linearElementEditor.d.ts +3 -3
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +1 -1
- package/dist/types/element/src/renderElement.d.ts +2 -2
- package/dist/types/element/src/resizeElements.d.ts +1 -1
- package/dist/types/element/src/resizeTest.d.ts +3 -3
- package/dist/types/element/src/shape.d.ts +3 -3
- package/dist/types/element/src/store.d.ts +2 -2
- package/dist/types/element/src/textElement.d.ts +2 -2
- package/dist/types/element/src/transform.d.ts +1 -1
- package/dist/types/element/src/transformHandles.d.ts +3 -3
- package/dist/types/element/src/typeChecks.d.ts +1 -1
- package/dist/types/element/src/types.d.ts +3 -3
- package/dist/types/element/src/utils.d.ts +2 -2
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +82 -82
- package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +50 -50
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +275 -275
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +63 -63
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +28 -28
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +69 -69
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +32 -32
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +49 -49
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +29 -29
- package/dist/types/excalidraw/actions/actionExport.d.ts +116 -116
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +242 -242
- package/dist/types/excalidraw/actions/actionGroup.d.ts +43 -43
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +181 -181
- package/dist/types/excalidraw/actions/actionLink.d.ts +31 -31
- package/dist/types/excalidraw/actions/actionMenu.d.ts +27 -27
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionProperties.d.ts +39 -39
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +23 -23
- package/dist/types/excalidraw/actions/actionStyles.d.ts +31 -31
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +29 -29
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +29 -29
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +28 -28
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +28 -28
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +29 -29
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +29 -29
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/manager.d.ts +1 -1
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +2 -2
- package/dist/types/excalidraw/appState.d.ts +10 -10
- package/dist/types/excalidraw/charts.d.ts +1 -1
- package/dist/types/excalidraw/clipboard.d.ts +4 -4
- package/dist/types/excalidraw/components/Actions.d.ts +1 -1
- package/dist/types/excalidraw/components/App.d.ts +9 -9
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/ElementCanvasButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +2 -2
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -2
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
- package/dist/types/excalidraw/components/ImageExportDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
- package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/index.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/utils.d.ts +2 -2
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
- package/dist/types/excalidraw/components/ToolButton.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -2
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
- package/dist/types/excalidraw/components/icons.d.ts +1 -1
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +2 -4
- package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
- package/dist/types/excalidraw/data/blob.d.ts +49 -49
- package/dist/types/excalidraw/data/filesystem.d.ts +1 -1
- package/dist/types/excalidraw/data/index.d.ts +1 -1
- package/dist/types/excalidraw/data/json.d.ts +24 -24
- package/dist/types/excalidraw/data/library.d.ts +2 -2
- package/dist/types/excalidraw/data/reconcile.d.ts +2 -2
- package/dist/types/excalidraw/data/resave.d.ts +1 -1
- package/dist/types/excalidraw/data/restore.d.ts +2 -2
- package/dist/types/excalidraw/data/types.d.ts +2 -2
- package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -3
- package/dist/types/excalidraw/history.d.ts +4 -4
- package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/dist/types/excalidraw/i18n.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +12 -12
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -2
- package/dist/types/excalidraw/renderer/staticScene.d.ts +1 -1
- package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +1 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +2 -2
- package/dist/types/excalidraw/scene/export.d.ts +1 -1
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +3 -3
- package/dist/types/excalidraw/snapping.d.ts +5 -5
- package/dist/types/excalidraw/types.d.ts +6 -6
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +1 -1
- package/dist/types/utils/src/bbox.d.ts +2 -2
- package/dist/types/utils/src/export.d.ts +2 -2
- package/dist/types/utils/src/index.d.ts +1 -1
- package/dist/types/utils/src/shape.d.ts +4 -4
- package/dist/types/utils/src/withinBounds.d.ts +2 -2
- package/package.json +1 -1
|
@@ -6,8 +6,8 @@ export declare const actionSendBackward: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("@excalidraw
|
|
10
|
-
elements: readonly import("@excalidraw
|
|
9
|
+
perform: (elements: readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: unknown, app: import("../types").AppClassProperties) => {
|
|
10
|
+
elements: readonly import("@misenkashari/excalidraw-element/types").ExcalidrawElement[];
|
|
11
11
|
appState: Readonly<import("../types").AppState>;
|
|
12
12
|
captureUpdate: "IMMEDIATELY";
|
|
13
13
|
};
|
|
@@ -25,8 +25,8 @@ export declare const actionBringForward: {
|
|
|
25
25
|
trackEvent: {
|
|
26
26
|
category: "element";
|
|
27
27
|
};
|
|
28
|
-
perform: (elements: readonly import("@excalidraw
|
|
29
|
-
elements: readonly import("@excalidraw
|
|
28
|
+
perform: (elements: readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: unknown, app: import("../types").AppClassProperties) => {
|
|
29
|
+
elements: readonly import("@misenkashari/excalidraw-element/types").ExcalidrawElement[];
|
|
30
30
|
appState: Readonly<import("../types").AppState>;
|
|
31
31
|
captureUpdate: "IMMEDIATELY";
|
|
32
32
|
};
|
|
@@ -44,8 +44,8 @@ export declare const actionSendToBack: {
|
|
|
44
44
|
trackEvent: {
|
|
45
45
|
category: "element";
|
|
46
46
|
};
|
|
47
|
-
perform: (elements: readonly import("@excalidraw
|
|
48
|
-
elements: readonly import("@excalidraw
|
|
47
|
+
perform: (elements: readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
48
|
+
elements: readonly import("@misenkashari/excalidraw-element/types").ExcalidrawElement[] | import("@misenkashari/excalidraw-element/types").ExcalidrawElement[];
|
|
49
49
|
appState: Readonly<import("../types").AppState>;
|
|
50
50
|
captureUpdate: "IMMEDIATELY";
|
|
51
51
|
};
|
|
@@ -62,8 +62,8 @@ export declare const actionBringToFront: {
|
|
|
62
62
|
trackEvent: {
|
|
63
63
|
category: "element";
|
|
64
64
|
};
|
|
65
|
-
perform: (elements: readonly import("@excalidraw
|
|
66
|
-
elements: readonly import("@excalidraw
|
|
65
|
+
perform: (elements: readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
66
|
+
elements: readonly import("@misenkashari/excalidraw-element/types").ExcalidrawElement[] | import("@misenkashari/excalidraw-element/types").ExcalidrawElement[];
|
|
67
67
|
appState: Readonly<import("../types").AppState>;
|
|
68
68
|
captureUpdate: "IMMEDIATELY";
|
|
69
69
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { OrderedExcalidrawElement } from "@excalidraw
|
|
2
|
+
import type { OrderedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
3
3
|
import type { AppClassProperties, AppState } from "../types";
|
|
4
4
|
import type { Action, UpdaterFn, ActionName, ActionResult, PanelComponentProps, ActionSource } from "./types";
|
|
5
5
|
export declare class ActionManager {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SubtypeOf } from "@excalidraw
|
|
1
|
+
import type { SubtypeOf } from "@misenkashari/excalidraw-common/utility-types";
|
|
2
2
|
import type { ActionName } from "./types";
|
|
3
3
|
export type ShortcutName = SubtypeOf<ActionName, "toggleTheme" | "loadScene" | "clearCanvas" | "cut" | "copy" | "paste" | "copyStyles" | "pasteStyles" | "selectAll" | "deleteSelectedElements" | "duplicateSelection" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyAsPng" | "group" | "ungroup" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "addToLibrary" | "viewMode" | "flipHorizontal" | "flipVertical" | "hyperlink" | "toggleElementLock" | "resetZoom" | "zoomOut" | "zoomIn" | "zoomToFit" | "zoomToFitSelectionInViewport" | "zoomToFitSelection" | "toggleEraserTool" | "toggleHandTool" | "setFrameAsActiveTool" | "saveFileToDisk" | "saveToActiveFile" | "toggleShortcuts" | "wrapSelectionInFrame"> | "saveScene" | "imageExport" | "commandPalette" | "searchMenu";
|
|
4
4
|
export declare const getShortcutFromShortcutName: (name: ShortcutName, idx?: number) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExcalidrawElement, OrderedExcalidrawElement } from "@excalidraw
|
|
2
|
-
import type { CaptureUpdateActionType } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement, OrderedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { CaptureUpdateActionType } from "@misenkashari/excalidraw-element";
|
|
3
3
|
import type { AppClassProperties, AppState, ExcalidrawProps, BinaryFiles, UIAppState } from "../types";
|
|
4
4
|
import type React from "react";
|
|
5
5
|
export type ActionSource = "ui" | "keyboard" | "contextMenu" | "api" | "commandPalette";
|
|
@@ -2,7 +2,7 @@ import type { AppState, NormalizedZoomValue } from "./types";
|
|
|
2
2
|
export declare const getDefaultAppState: () => Omit<AppState, "offsetTop" | "offsetLeft" | "width" | "height">;
|
|
3
3
|
export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>) => {
|
|
4
4
|
viewBackgroundColor?: string | undefined;
|
|
5
|
-
theme?: import("@excalidraw
|
|
5
|
+
theme?: import("@misenkashari/excalidraw-element/types").Theme | undefined;
|
|
6
6
|
name?: string | null | undefined;
|
|
7
7
|
zoom?: Readonly<{
|
|
8
8
|
value: NormalizedZoomValue;
|
|
@@ -16,11 +16,11 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
16
16
|
selectedGroupIds?: {
|
|
17
17
|
[groupId: string]: boolean;
|
|
18
18
|
} | undefined;
|
|
19
|
-
selectedLinearElement?: import("@excalidraw
|
|
19
|
+
selectedLinearElement?: import("@misenkashari/excalidraw-element").LinearElementEditor | null | undefined;
|
|
20
20
|
zenModeEnabled?: boolean | undefined;
|
|
21
21
|
shouldCacheIgnoreZoom?: boolean | undefined;
|
|
22
22
|
exportScale?: number | undefined;
|
|
23
|
-
bindMode?: import("@excalidraw
|
|
23
|
+
bindMode?: import("@misenkashari/excalidraw-element/types").BindMode | undefined;
|
|
24
24
|
gridSize?: number | undefined;
|
|
25
25
|
showWelcomeScreen?: boolean | undefined;
|
|
26
26
|
activeTool?: ({
|
|
@@ -39,17 +39,17 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
39
39
|
exportWithDarkMode?: boolean | undefined;
|
|
40
40
|
currentItemStrokeColor?: string | undefined;
|
|
41
41
|
currentItemBackgroundColor?: string | undefined;
|
|
42
|
-
currentItemFillStyle?: import("@excalidraw
|
|
42
|
+
currentItemFillStyle?: import("@misenkashari/excalidraw-element/types").FillStyle | undefined;
|
|
43
43
|
currentItemStrokeWidth?: number | undefined;
|
|
44
|
-
currentItemStrokeStyle?: import("@excalidraw
|
|
44
|
+
currentItemStrokeStyle?: import("@misenkashari/excalidraw-element/types").StrokeStyle | undefined;
|
|
45
45
|
currentItemRoughness?: number | undefined;
|
|
46
46
|
currentItemOpacity?: number | undefined;
|
|
47
47
|
currentItemFontFamily?: number | undefined;
|
|
48
48
|
currentItemFontSize?: number | undefined;
|
|
49
49
|
currentItemTextAlign?: string | undefined;
|
|
50
|
-
currentItemStartArrowhead?: import("@excalidraw
|
|
51
|
-
currentItemEndArrowhead?: import("@excalidraw
|
|
52
|
-
currentItemRoundness?: import("@excalidraw
|
|
50
|
+
currentItemStartArrowhead?: import("@misenkashari/excalidraw-element/types").Arrowhead | null | undefined;
|
|
51
|
+
currentItemEndArrowhead?: import("@misenkashari/excalidraw-element/types").Arrowhead | null | undefined;
|
|
52
|
+
currentItemRoundness?: import("@misenkashari/excalidraw-element/types").StrokeRoundness | undefined;
|
|
53
53
|
currentItemArrowType?: "round" | "sharp" | "elbow" | undefined;
|
|
54
54
|
cursorButton?: "up" | "down" | undefined;
|
|
55
55
|
scrolledOutside?: boolean | undefined;
|
|
@@ -59,7 +59,7 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
59
59
|
tab?: import("./types").SidebarTabName;
|
|
60
60
|
} | null | undefined;
|
|
61
61
|
defaultSidebarDockedPreference?: boolean | undefined;
|
|
62
|
-
lastPointerDownWith?: import("@excalidraw
|
|
62
|
+
lastPointerDownWith?: import("@misenkashari/excalidraw-element/types").PointerType | undefined;
|
|
63
63
|
previousSelectedElementIds?: {
|
|
64
64
|
[id: string]: true;
|
|
65
65
|
} | undefined;
|
|
@@ -69,7 +69,7 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
69
69
|
open: boolean;
|
|
70
70
|
panels: number;
|
|
71
71
|
} | undefined;
|
|
72
|
-
currentChartType?: import("@excalidraw
|
|
72
|
+
currentChartType?: import("@misenkashari/excalidraw-element/types").ChartType | undefined;
|
|
73
73
|
objectsSnapModeEnabled?: boolean | undefined;
|
|
74
74
|
lockedMultiSelections?: {
|
|
75
75
|
[groupId: string]: true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NonDeletedExcalidrawElement } from "@excalidraw
|
|
1
|
+
import type { NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
2
|
export type ChartElements = readonly NonDeletedExcalidrawElement[];
|
|
3
3
|
export interface Spreadsheet {
|
|
4
4
|
title: string | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ALLOWED_PASTE_MIME_TYPES } from "@excalidraw
|
|
2
|
-
import type { ValueOf } from "@excalidraw
|
|
3
|
-
import type { IMAGE_MIME_TYPES, STRING_MIME_TYPES } from "@excalidraw
|
|
4
|
-
import type { ExcalidrawElement, NonDeletedExcalidrawElement } from "@excalidraw
|
|
1
|
+
import { ALLOWED_PASTE_MIME_TYPES } from "@misenkashari/excalidraw-common";
|
|
2
|
+
import type { ValueOf } from "@misenkashari/excalidraw-common/utility-types";
|
|
3
|
+
import type { IMAGE_MIME_TYPES, STRING_MIME_TYPES } from "@misenkashari/excalidraw-common";
|
|
4
|
+
import type { ExcalidrawElement, NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
5
5
|
import type { FileSystemHandle } from "./data/filesystem";
|
|
6
6
|
import type { Spreadsheet } from "./charts";
|
|
7
7
|
import type { BinaryFiles } from "./types";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawElement, NonDeletedElementsMap, NonDeletedSceneElementsMap } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement, NonDeletedElementsMap, NonDeletedSceneElementsMap } from "@misenkashari/excalidraw-element/types";
|
|
2
2
|
import "./Actions.scss";
|
|
3
3
|
import type { AppClassProperties, AppProps, UIAppState, Zoom, AppState } from "../types";
|
|
4
4
|
import type { ActionManager } from "../actions/manager";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { type EXPORT_IMAGE_TYPES, Emitter, type EditorInterface, type StylesPanelMode } from "@excalidraw
|
|
3
|
-
import { LinearElementEditor, FlowChartCreator, Scene, Store, type ElementUpdate, StoreDelta, type ApplyToOptions } from "@excalidraw
|
|
4
|
-
import type { ExcalidrawElement, NonDeleted, NonDeletedExcalidrawElement, ExcalidrawFrameLikeElement, ExcalidrawIframeElement, ExcalidrawEmbeddableElement, Ordered, SceneElementsMap } from "@excalidraw
|
|
5
|
-
import type { Mutable } from "@excalidraw
|
|
2
|
+
import { type EXPORT_IMAGE_TYPES, Emitter, type EditorInterface, type StylesPanelMode } from "@misenkashari/excalidraw-common";
|
|
3
|
+
import { LinearElementEditor, FlowChartCreator, Scene, Store, type ElementUpdate, StoreDelta, type ApplyToOptions } from "@misenkashari/excalidraw-element";
|
|
4
|
+
import type { ExcalidrawElement, NonDeleted, NonDeletedExcalidrawElement, ExcalidrawFrameLikeElement, ExcalidrawIframeElement, ExcalidrawEmbeddableElement, Ordered, SceneElementsMap } from "@misenkashari/excalidraw-element/types";
|
|
5
|
+
import type { Mutable } from "@misenkashari/excalidraw-common/utility-types";
|
|
6
6
|
import { ActionManager } from "../actions/manager";
|
|
7
7
|
import { AnimationFrameHandler } from "../animation-frame-handler";
|
|
8
8
|
import { History } from "../history";
|
|
@@ -122,7 +122,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
122
122
|
};
|
|
123
123
|
originalElements: Map<string, NonDeleted<ExcalidrawElement>>;
|
|
124
124
|
resize: {
|
|
125
|
-
handleType: import("@excalidraw
|
|
125
|
+
handleType: import("@misenkashari/excalidraw-element").MaybeTransformHandleType;
|
|
126
126
|
isResizing: boolean;
|
|
127
127
|
offset: {
|
|
128
128
|
x: number;
|
|
@@ -155,7 +155,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
155
155
|
blockDragging: boolean;
|
|
156
156
|
};
|
|
157
157
|
eventListeners: {
|
|
158
|
-
onMove: null | ReturnType<typeof import("@excalidraw
|
|
158
|
+
onMove: null | ReturnType<typeof import("@misenkashari/excalidraw-common").throttleRAF>;
|
|
159
159
|
onUp: null | ((event: PointerEvent) => void);
|
|
160
160
|
onKeyDown: null | ((event: KeyboardEvent) => void);
|
|
161
161
|
onKeyUp: null | ((event: KeyboardEvent) => void);
|
|
@@ -184,7 +184,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
184
184
|
};
|
|
185
185
|
originalElements: Map<string, NonDeleted<ExcalidrawElement>>;
|
|
186
186
|
resize: {
|
|
187
|
-
handleType: import("@excalidraw
|
|
187
|
+
handleType: import("@misenkashari/excalidraw-element").MaybeTransformHandleType;
|
|
188
188
|
isResizing: boolean;
|
|
189
189
|
offset: {
|
|
190
190
|
x: number;
|
|
@@ -217,7 +217,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
217
217
|
blockDragging: boolean;
|
|
218
218
|
};
|
|
219
219
|
eventListeners: {
|
|
220
|
-
onMove: null | ReturnType<typeof import("@excalidraw
|
|
220
|
+
onMove: null | ReturnType<typeof import("@misenkashari/excalidraw-common").throttleRAF>;
|
|
221
221
|
onUp: null | ((event: PointerEvent) => void);
|
|
222
222
|
onKeyDown: null | ((event: KeyboardEvent) => void);
|
|
223
223
|
onKeyUp: null | ((event: KeyboardEvent) => void);
|
|
@@ -258,7 +258,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
258
258
|
private toggleOverscrollBehavior;
|
|
259
259
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
260
260
|
focusContainer: AppClassProperties["focusContainer"];
|
|
261
|
-
getSceneElementsIncludingDeleted: () => readonly import("@excalidraw
|
|
261
|
+
getSceneElementsIncludingDeleted: () => readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[];
|
|
262
262
|
getSceneElementsMapIncludingDeleted: () => SceneElementsMap;
|
|
263
263
|
getSceneElements: () => readonly Ordered<NonDeletedExcalidrawElement>[];
|
|
264
264
|
onInsertElements: (elements: readonly ExcalidrawElement[]) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ColorTuple, ColorPaletteCustom } from "@excalidraw
|
|
2
|
-
import type { ExcalidrawElement } from "@excalidraw
|
|
1
|
+
import type { ColorTuple, ColorPaletteCustom } from "@misenkashari/excalidraw-common";
|
|
2
|
+
import type { ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
3
3
|
import "./ColorPicker.scss";
|
|
4
4
|
import type { ColorPickerType } from "./colorPickerUtils";
|
|
5
5
|
import type { AppState } from "../../types";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { ExcalidrawElement } from "@excalidraw
|
|
3
|
-
import type { ColorPaletteCustom } from "@excalidraw
|
|
2
|
+
import type { ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
3
|
+
import type { ColorPaletteCustom } from "@misenkashari/excalidraw-common";
|
|
4
4
|
import type { ColorPickerType } from "./colorPickerUtils";
|
|
5
5
|
interface PickerProps {
|
|
6
6
|
color: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "@excalidraw
|
|
2
|
-
import type { ColorPickerColor, ColorPaletteCustom } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { ColorPickerColor, ColorPaletteCustom } from "@misenkashari/excalidraw-common";
|
|
3
3
|
export declare const getColorNameAndShadeFromColor: ({ palette, color, }: {
|
|
4
4
|
palette: ColorPaletteCustom;
|
|
5
5
|
color: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ColorPaletteCustom } from "@excalidraw
|
|
1
|
+
import type { ColorPaletteCustom } from "@misenkashari/excalidraw-common";
|
|
2
2
|
import type { ActiveColorPickerSectionAtomType } from "./colorPickerUtils";
|
|
3
3
|
interface ColorPickerKeyNavHandlerProps {
|
|
4
4
|
event: React.KeyboardEvent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConvertibleTypes, ExcalidrawElement, ExcalidrawTextContainer, ExcalidrawTextElementWithContainer } from "@excalidraw
|
|
2
|
-
import type { Scene } from "@excalidraw
|
|
1
|
+
import type { ConvertibleTypes, ExcalidrawElement, ExcalidrawTextContainer, ExcalidrawTextElementWithContainer } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { Scene } from "@misenkashari/excalidraw-element";
|
|
3
3
|
import "./ConvertElementTypePopup.scss";
|
|
4
4
|
import type App from "./App";
|
|
5
5
|
export declare const convertElementTypePopupAtom: import("jotai/vanilla/atom").PrimitiveAtom<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MarkOptional } from "@excalidraw
|
|
1
|
+
import type { MarkOptional } from "@misenkashari/excalidraw-common/utility-types";
|
|
2
2
|
import "../components/dropdownMenu/DropdownMenu.scss";
|
|
3
3
|
import type { SidebarProps, SidebarTriggerProps } from "./Sidebar/common";
|
|
4
4
|
export declare const DefaultSidebar: import("react").FC<Omit<MarkOptional<Omit<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ElementsMap, NonDeletedExcalidrawElement } from "@excalidraw
|
|
1
|
+
import type { ElementsMap, NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
2
|
import "./ElementCanvasButtons.scss";
|
|
3
3
|
export declare const ElementCanvasButtons: ({ children, element, elementsMap, }: {
|
|
4
4
|
children: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "@excalidraw
|
|
2
|
-
import type { Scene } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { Scene } from "@misenkashari/excalidraw-element";
|
|
3
3
|
import "./ElementLinkDialog.scss";
|
|
4
4
|
import type { AppProps, UIAppState } from "../types";
|
|
5
5
|
declare const ElementLinkDialog: ({ sourceElementId, onClose, appState, scene, generateLinkForSelection, }: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
2
|
import "./EyeDropper.scss";
|
|
3
3
|
import type { ColorPickerType } from "./ColorPicker/colorPickerUtils";
|
|
4
4
|
export type EyeDropperProperties = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { type FontFamilyValues } from "@excalidraw
|
|
3
|
-
import type { ValueOf } from "@excalidraw
|
|
2
|
+
import { type FontFamilyValues } from "@misenkashari/excalidraw-element/types";
|
|
3
|
+
import type { ValueOf } from "@misenkashari/excalidraw-common/utility-types";
|
|
4
4
|
import { DropDownMenuItemBadgeType } from "../dropdownMenu/DropdownMenuItem";
|
|
5
5
|
import type { JSX } from "react";
|
|
6
6
|
export interface FontDescriptor {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NonDeletedExcalidrawElement } from "@excalidraw
|
|
1
|
+
import type { NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
2
|
import "./ImageExportDialog.scss";
|
|
3
3
|
import type { ActionManager } from "../actions/manager";
|
|
4
4
|
import type { AppClassProperties, BinaryFiles, UIAppState } from "../types";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { NonDeletedExcalidrawElement } from "@excalidraw
|
|
2
|
+
import type { NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
3
3
|
import "./ExportDialog.scss";
|
|
4
4
|
import type { ActionManager } from "../actions/manager";
|
|
5
5
|
import type { ExportOpts, BinaryFiles, UIAppState } from "../types";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { NonDeletedExcalidrawElement } from "@excalidraw
|
|
2
|
+
import type { NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
3
3
|
import "./LayerUI.scss";
|
|
4
4
|
import "./Toolbar.scss";
|
|
5
5
|
import type { ActionManager } from "../actions/manager";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { ExcalidrawElement, NonDeleted } from "@excalidraw
|
|
2
|
+
import type { ExcalidrawElement, NonDeleted } from "@misenkashari/excalidraw-element/types";
|
|
3
3
|
import type { SvgCache } from "../hooks/useLibraryItemSvg";
|
|
4
4
|
import type { LibraryItem } from "../types";
|
|
5
5
|
import type { ReactNode } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { NonDeletedExcalidrawElement } from "@excalidraw
|
|
2
|
+
import type { NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
3
3
|
import type { ActionManager } from "../actions/manager";
|
|
4
4
|
import type { AppClassProperties, AppProps, AppState, UIAppState } from "../types";
|
|
5
5
|
import type { JSX } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "@excalidraw
|
|
2
|
-
import type { Scene } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { Scene } from "@misenkashari/excalidraw-element";
|
|
3
3
|
import type { AppState } from "../../types";
|
|
4
4
|
interface AngleProps {
|
|
5
5
|
element: ExcalidrawElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "@excalidraw
|
|
2
|
-
import type { Scene } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { Scene } from "@misenkashari/excalidraw-element";
|
|
3
3
|
import type { AppState } from "../../types";
|
|
4
4
|
interface DimensionDragInputProps {
|
|
5
5
|
property: "width" | "height";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ElementsMap, ExcalidrawElement } from "@excalidraw
|
|
2
|
-
import type { Scene } from "@excalidraw
|
|
1
|
+
import type { ElementsMap, ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { Scene } from "@misenkashari/excalidraw-element";
|
|
3
3
|
import { useApp, useExcalidrawSetAppState } from "../App";
|
|
4
4
|
import "./DragInput.scss";
|
|
5
5
|
import type { StatsInputProperty } from "./utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "@excalidraw
|
|
2
|
-
import type { Scene } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { Scene } from "@misenkashari/excalidraw-element";
|
|
3
3
|
import type { AppState } from "../../types";
|
|
4
4
|
interface FontSizeProps {
|
|
5
5
|
element: ExcalidrawElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "@excalidraw
|
|
2
|
-
import type { Scene } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { Scene } from "@misenkashari/excalidraw-element";
|
|
3
3
|
import type { AppState } from "../../types";
|
|
4
4
|
interface MultiAngleProps {
|
|
5
5
|
elements: readonly ExcalidrawElement[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExcalidrawElement, NonDeletedSceneElementsMap } from "@excalidraw
|
|
2
|
-
import type { Scene } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement, NonDeletedSceneElementsMap } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { Scene } from "@misenkashari/excalidraw-element";
|
|
3
3
|
import type { AtomicUnit } from "./utils";
|
|
4
4
|
import type { AppState } from "../../types";
|
|
5
5
|
interface MultiDimensionProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExcalidrawElement, NonDeletedSceneElementsMap } from "@excalidraw
|
|
2
|
-
import type { Scene } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement, NonDeletedSceneElementsMap } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { Scene } from "@misenkashari/excalidraw-element";
|
|
3
3
|
import type { AppState } from "../../types";
|
|
4
4
|
interface MultiFontSizeProps {
|
|
5
5
|
elements: readonly ExcalidrawElement[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ElementsMap, ExcalidrawElement } from "@excalidraw
|
|
2
|
-
import type { Scene } from "@excalidraw
|
|
1
|
+
import type { ElementsMap, ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { Scene } from "@misenkashari/excalidraw-element";
|
|
3
3
|
import type { AtomicUnit } from "./utils";
|
|
4
4
|
import type { AppState } from "../../types";
|
|
5
5
|
interface MultiPositionProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ElementsMap, ExcalidrawElement } from "@excalidraw
|
|
2
|
-
import type { Scene } from "@excalidraw
|
|
1
|
+
import type { ElementsMap, ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { Scene } from "@misenkashari/excalidraw-element";
|
|
3
3
|
import type { AppState } from "../../types";
|
|
4
4
|
interface PositionProps {
|
|
5
5
|
property: "x" | "y";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NonDeletedExcalidrawElement } from "@excalidraw
|
|
1
|
+
import type { NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
2
|
import "./Stats.scss";
|
|
3
3
|
import type { AppClassProperties, AppState, ExcalidrawProps } from "../../types";
|
|
4
4
|
interface StatsProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ElementsMap, ExcalidrawElement, NonDeletedExcalidrawElement } from "@excalidraw
|
|
2
|
-
import type { Scene } from "@excalidraw
|
|
1
|
+
import type { ElementsMap, ExcalidrawElement, NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { Scene } from "@misenkashari/excalidraw-element";
|
|
3
3
|
import type { AppState } from "../../types";
|
|
4
4
|
export type StatsInputProperty = "x" | "y" | "width" | "height" | "angle" | "fontSize" | "gridStep";
|
|
5
5
|
export declare const SMALLEST_DELTA = 0.01;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MermaidConfig } from "@excalidraw/mermaid-to-excalidraw";
|
|
2
2
|
import type { MermaidToExcalidrawResult } from "@excalidraw/mermaid-to-excalidraw/dist/interfaces";
|
|
3
|
-
import type { NonDeletedExcalidrawElement } from "@excalidraw
|
|
3
|
+
import type { NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
4
4
|
import type { AppClassProperties, BinaryFiles } from "../../types";
|
|
5
5
|
export interface MermaidToExcalidrawLibProps {
|
|
6
6
|
loaded: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { PointerType } from "@excalidraw
|
|
2
|
+
import type { PointerType } from "@misenkashari/excalidraw-element/types";
|
|
3
3
|
import "./ToolIcon.scss";
|
|
4
4
|
import type { CSSProperties } from "react";
|
|
5
5
|
export type ToolButtonSize = "small" | "medium";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { type EditorInterface } from "@excalidraw
|
|
2
|
+
import { type EditorInterface } from "@misenkashari/excalidraw-common";
|
|
3
3
|
import type { RenderableElementsMap, RenderInteractiveSceneCallback } from "@excalidraw/excalidraw/scene/types";
|
|
4
|
-
import type { NonDeletedExcalidrawElement, NonDeletedSceneElementsMap } from "@excalidraw
|
|
4
|
+
import type { NonDeletedExcalidrawElement, NonDeletedSceneElementsMap } from "@misenkashari/excalidraw-element/types";
|
|
5
5
|
import type { AppClassProperties, InteractiveCanvasAppState } from "../../types";
|
|
6
6
|
import type { DOMAttributes } from "react";
|
|
7
7
|
type InteractiveCanvasProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NonDeletedSceneElementsMap } from "@excalidraw
|
|
1
|
+
import type { NonDeletedSceneElementsMap } from "@misenkashari/excalidraw-element/types";
|
|
2
2
|
import type { RenderableElementsMap, StaticCanvasRenderConfig } from "../../scene/types";
|
|
3
3
|
import type { AppState } from "../../types";
|
|
4
4
|
import type { RoughCanvas } from "roughjs/bin/canvas";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { NonDeletedExcalidrawElement, NonDeletedSceneElementsMap } from "@excalidraw
|
|
2
|
+
import type { NonDeletedExcalidrawElement, NonDeletedSceneElementsMap } from "@misenkashari/excalidraw-element/types";
|
|
3
3
|
import type { RenderableElementsMap, StaticCanvasRenderConfig } from "../../scene/types";
|
|
4
4
|
import type { StaticCanvasAppState } from "../../types";
|
|
5
5
|
import type { RoughCanvas } from "roughjs/bin/canvas";
|
|
@@ -42,7 +42,7 @@ declare const DropdownMenu: {
|
|
|
42
42
|
displayName: string;
|
|
43
43
|
Badge: {
|
|
44
44
|
({ type, children, }: {
|
|
45
|
-
type?: import("@excalidraw
|
|
45
|
+
type?: import("@misenkashari/excalidraw-common/utility-types").ValueOf<typeof import("./DropdownMenuItem").DropDownMenuItemBadgeType>;
|
|
46
46
|
children: React.ReactNode;
|
|
47
47
|
}): import("react/jsx-runtime").JSX.Element;
|
|
48
48
|
displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { ValueOf } from "@excalidraw
|
|
2
|
+
import type { ValueOf } from "@misenkashari/excalidraw-common/utility-types";
|
|
3
3
|
import type { JSX } from "react";
|
|
4
4
|
declare const DropdownMenuItem: {
|
|
5
5
|
({ icon, value, order, children, shortcut, className, hovered, selected, textStyle, onSelect, onClick, ...rest }: {
|