@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.
- package/README.md +4 -5
- package/dist/dev/{chunk-CI27YPGF.js → chunk-3O3BNMYV.js} +71 -8
- package/dist/dev/chunk-3O3BNMYV.js.map +7 -0
- package/dist/dev/data/{image-TC7JM54G.js → image-EN763OZS.js} +2 -2
- package/dist/dev/index.js +9 -7
- package/dist/dev/index.js.map +3 -3
- package/dist/prod/{chunk-FZ2HZXXI.js → chunk-ELWWJGPE.js} +16 -16
- package/dist/prod/data/{image-QTHH6XLL.js → image-XQM6YLGO.js} +1 -1
- package/dist/prod/index.js +9 -9
- package/dist/types/excalidraw/actions/actionAlign.d.ts +12 -12
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +13 -13
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionFrame.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionGroup.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionLink.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionMenu.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionProperties.d.ts +16 -16
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/manager.d.ts +1 -1
- package/dist/types/excalidraw/components/Actions.d.ts +6 -7
- package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -2
- package/dist/types/excalidraw/components/App.d.ts +1 -1
- package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
- package/dist/types/excalidraw/components/BraveMeasureTextError.d.ts +1 -2
- package/dist/types/excalidraw/components/Button.d.ts +1 -1
- package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -1
- package/dist/types/excalidraw/components/ButtonIconCycle.d.ts +2 -2
- package/dist/types/excalidraw/components/ButtonIconSelect.d.ts +2 -2
- package/dist/types/excalidraw/components/ButtonSelect.d.ts +1 -2
- package/dist/types/excalidraw/components/ButtonSeparator.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -2
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -2
- package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -2
- package/dist/types/excalidraw/components/ContextMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -2
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/Dialog.d.ts +1 -1
- package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -2
- package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
- package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -2
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -2
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/HandButton.d.ts +1 -2
- package/dist/types/excalidraw/components/HelpButton.d.ts +1 -2
- package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -2
- package/dist/types/excalidraw/components/HintViewer.d.ts +1 -2
- package/dist/types/excalidraw/components/IconPicker.d.ts +2 -2
- package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -3
- package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
- package/dist/types/excalidraw/components/InlineIcon.d.ts +1 -2
- package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/LaserPointerButton.d.ts +1 -2
- package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +1 -2
- package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -2
- package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -2
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +2 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
- package/dist/types/excalidraw/components/LockButton.d.ts +1 -2
- package/dist/types/excalidraw/components/MagicButton.d.ts +2 -2
- package/dist/types/excalidraw/components/MobileMenu.d.ts +2 -1
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +4 -4
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +6 -6
- package/dist/types/excalidraw/components/Paragraph.d.ts +1 -2
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/PenModeButton.d.ts +1 -2
- package/dist/types/excalidraw/components/Popover.d.ts +1 -1
- package/dist/types/excalidraw/components/ProjectName.d.ts +1 -2
- package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -2
- package/dist/types/excalidraw/components/RadioGroup.d.ts +1 -1
- package/dist/types/excalidraw/components/Range.d.ts +1 -2
- package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -2
- package/dist/types/excalidraw/components/ScrollableList.d.ts +1 -1
- package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -2
- package/dist/types/excalidraw/components/ShareableLinkDialog.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +6 -6
- package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -0
- package/dist/types/excalidraw/components/Spinner.d.ts +1 -2
- package/dist/types/excalidraw/components/Stack.d.ts +2 -3
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -2
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -2
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -2
- package/dist/types/excalidraw/components/Stats/index.d.ts +4 -4
- package/dist/types/excalidraw/components/Switch.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
- package/dist/types/excalidraw/components/Toast.d.ts +1 -1
- package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
- package/dist/types/excalidraw/components/UserList.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 -2
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +11 -11
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +4 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +2 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +1 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -2
- package/dist/types/excalidraw/components/footer/Footer.d.ts +1 -2
- package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +1 -2
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -2
- package/dist/types/excalidraw/components/icons.d.ts +178 -178
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +12 -13
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +9 -9
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +10 -10
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +3 -4
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -15
- package/dist/types/excalidraw/element/ElementCanvasButtons.d.ts +1 -2
- package/dist/types/excalidraw/element/types.d.ts +1 -1
- package/dist/types/excalidraw/fonts/FontMetadata.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +1 -1
- package/dist/types/excalidraw/shapes.d.ts +10 -11
- package/dist/types/excalidraw/types.d.ts +1 -0
- package/package.json +11 -11
- package/dist/dev/chunk-CI27YPGF.js.map +0 -7
- /package/dist/dev/data/{image-TC7JM54G.js.map → image-EN763OZS.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
decodePngMetadata,
|
|
3
3
|
encodePngMetadata,
|
|
4
4
|
getTEXtChunk
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-3O3BNMYV.js";
|
|
6
6
|
import "../chunk-TLD3FD3P.js";
|
|
7
7
|
import "../chunk-XDFCUUT6.js";
|
|
8
8
|
export {
|
|
@@ -10,4 +10,4 @@ export {
|
|
|
10
10
|
encodePngMetadata,
|
|
11
11
|
getTEXtChunk
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=image-
|
|
13
|
+
//# sourceMappingURL=image-EN763OZS.js.map
|
package/dist/dev/index.js
CHANGED
|
@@ -618,7 +618,7 @@ import {
|
|
|
618
618
|
wrapText,
|
|
619
619
|
youtubeIcon,
|
|
620
620
|
zoomAreaIcon
|
|
621
|
-
} from "./chunk-
|
|
621
|
+
} from "./chunk-3O3BNMYV.js";
|
|
622
622
|
import {
|
|
623
623
|
define_import_meta_env_default
|
|
624
624
|
} from "./chunk-TLD3FD3P.js";
|
|
@@ -6480,7 +6480,7 @@ var exportCanvas = async (type, elements, appState, files, {
|
|
|
6480
6480
|
let blob = canvasToBlob(tempCanvas);
|
|
6481
6481
|
if (appState.exportEmbedScene) {
|
|
6482
6482
|
blob = blob.then(
|
|
6483
|
-
(blob2) => import("./data/image-
|
|
6483
|
+
(blob2) => import("./data/image-EN763OZS.js").then(
|
|
6484
6484
|
({ encodePngMetadata }) => encodePngMetadata({
|
|
6485
6485
|
blob: blob2,
|
|
6486
6486
|
metadata: serializeAsJSON(elements, appState, files, "local")
|
|
@@ -15545,12 +15545,14 @@ var MobileMenu = ({
|
|
|
15545
15545
|
return /* @__PURE__ */ jsxs49("div", { className: "App-toolbar-content", children: [
|
|
15546
15546
|
/* @__PURE__ */ jsx90(MainMenuTunnel.Out, {}),
|
|
15547
15547
|
actionManager.renderAction("toggleEditMenu"),
|
|
15548
|
-
actionManager.renderAction("undo"),
|
|
15549
|
-
actionManager.renderAction("redo"),
|
|
15550
15548
|
actionManager.renderAction(
|
|
15551
15549
|
appState.multiElement ? "finalize" : "duplicateSelection"
|
|
15552
15550
|
),
|
|
15553
|
-
actionManager.renderAction("deleteSelectedElements")
|
|
15551
|
+
actionManager.renderAction("deleteSelectedElements"),
|
|
15552
|
+
/* @__PURE__ */ jsxs49("div", { children: [
|
|
15553
|
+
actionManager.renderAction("undo"),
|
|
15554
|
+
actionManager.renderAction("redo")
|
|
15555
|
+
] })
|
|
15554
15556
|
] });
|
|
15555
15557
|
};
|
|
15556
15558
|
return /* @__PURE__ */ jsxs49(Fragment12, { children: [
|
|
@@ -17730,7 +17732,7 @@ import clsx48 from "clsx";
|
|
|
17730
17732
|
|
|
17731
17733
|
// components/SearchMenu.tsx
|
|
17732
17734
|
import { Fragment as Fragment18, memo as memo4, useEffect as useEffect33, useRef as useRef29, useState as useState31 } from "react";
|
|
17733
|
-
import
|
|
17735
|
+
import debounce2 from "lodash.debounce";
|
|
17734
17736
|
import clsx47 from "clsx";
|
|
17735
17737
|
import { Fragment as Fragment19, jsx as jsx111, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
17736
17738
|
var searchQueryAtom = atom("");
|
|
@@ -19042,7 +19044,7 @@ TTD mermaid definition render errror: ${error3.message}`,
|
|
|
19042
19044
|
|
|
19043
19045
|
// components/Stats/index.tsx
|
|
19044
19046
|
import { useEffect as useEffect38, useMemo as useMemo9, useState as useState35, memo as memo5 } from "react";
|
|
19045
|
-
import
|
|
19047
|
+
import throttle2 from "lodash.throttle";
|
|
19046
19048
|
|
|
19047
19049
|
// components/Stats/DragInput.tsx
|
|
19048
19050
|
import { useEffect as useEffect37, useRef as useRef34, useState as useState34 } from "react";
|