@dwelle/excalidraw 0.3.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/CHANGELOG.md +680 -0
- package/README.md +927 -0
- package/dist/excalidraw-assets/Cascadia.woff2 +0 -0
- package/dist/excalidraw-assets/Virgil.woff2 +0 -0
- package/dist/excalidraw-assets/image-02a1f3ecd6baf42daaa6.js +1 -0
- package/dist/excalidraw-assets/image-eafab0c39ce13f7fea67.js +1 -0
- package/dist/excalidraw-assets/vendor-448ccb79e58765b61834.js +2 -0
- package/dist/excalidraw-assets/vendor-448ccb79e58765b61834.js.LICENSE.txt +1 -0
- package/dist/excalidraw-assets/vendor-cb708a4580b007d81177.js +2 -0
- package/dist/excalidraw-assets/vendor-cb708a4580b007d81177.js.LICENSE.txt +1 -0
- package/dist/excalidraw-assets-dev/Cascadia.woff2 +0 -0
- package/dist/excalidraw-assets-dev/Virgil.woff2 +0 -0
- package/dist/excalidraw-assets-dev/image-cacb3d0c02eb2e346ecc.js +33 -0
- package/dist/excalidraw-assets-dev/vendor-0454f90696ac835aeb45.js +356 -0
- package/dist/excalidraw-assets-dev/vendor-7664c12c379862ed98a5.js +356 -0
- package/dist/excalidraw.development.js +2924 -0
- package/dist/excalidraw.production.min.js +2 -0
- package/dist/excalidraw.production.min.js.LICENSE.txt +1 -0
- package/main.js +8 -0
- package/package.json +72 -0
- package/types/actions/actionAddToLibrary.d.ts +1 -0
- package/types/actions/actionAlign.d.ts +6 -0
- package/types/actions/actionCanvas.d.ts +8 -0
- package/types/actions/actionClipboard.d.ts +4 -0
- package/types/actions/actionDeleteSelected.d.ts +1 -0
- package/types/actions/actionDistribute.d.ts +2 -0
- package/types/actions/actionDuplicateSelection.d.ts +1 -0
- package/types/actions/actionExport.d.ts +9 -0
- package/types/actions/actionFinalize.d.ts +1 -0
- package/types/actions/actionFlip.d.ts +2 -0
- package/types/actions/actionGroup.d.ts +2 -0
- package/types/actions/actionHistory.d.ts +6 -0
- package/types/actions/actionMenu.d.ts +4 -0
- package/types/actions/actionNavigate.d.ts +1 -0
- package/types/actions/actionProperties.d.ts +12 -0
- package/types/actions/actionSelectAll.d.ts +1 -0
- package/types/actions/actionStyles.d.ts +3 -0
- package/types/actions/actionToggleGridMode.d.ts +1 -0
- package/types/actions/actionToggleStats.d.ts +1 -0
- package/types/actions/actionToggleViewMode.d.ts +1 -0
- package/types/actions/actionToggleZenMode.d.ts +1 -0
- package/types/actions/actionZindex.d.ts +4 -0
- package/types/actions/index.d.ts +20 -0
- package/types/actions/manager.d.ts +28 -0
- package/types/actions/register.d.ts +3 -0
- package/types/actions/shortcuts.d.ts +2 -0
- package/types/actions/types.d.ts +49 -0
- package/types/align.d.ts +7 -0
- package/types/analytics.d.ts +1 -0
- package/types/appState.d.ts +59 -0
- package/types/charts.d.ts +19 -0
- package/types/clients.d.ts +6 -0
- package/types/clipboard.d.ts +19 -0
- package/types/colors.d.ts +6 -0
- package/types/components/Actions.d.ts +19 -0
- package/types/components/ActiveFile.d.ts +8 -0
- package/types/components/App.d.ts +154 -0
- package/types/components/Avatar.d.ts +10 -0
- package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +9 -0
- package/types/components/ButtonIconSelect.d.ts +11 -0
- package/types/components/Card.d.ts +6 -0
- package/types/components/CheckboxItem.d.ts +6 -0
- package/types/components/CollabButton.d.ts +8 -0
- package/types/components/ColorPicker.d.ts +10 -0
- package/types/components/ContextMenu.d.ts +25 -0
- package/types/components/DarkModeToggle.d.ts +8 -0
- package/types/components/Dialog.d.ts +12 -0
- package/types/components/ErrorDialog.d.ts +5 -0
- package/types/components/FixedSideContainer.d.ts +9 -0
- package/types/components/HelpDialog.d.ts +5 -0
- package/types/components/HelpIcon.d.ts +9 -0
- package/types/components/HintViewer.d.ts +10 -0
- package/types/components/IconPicker.d.ts +14 -0
- package/types/components/ImageExportDialog.d.ts +16 -0
- package/types/components/InitializeApp.d.ts +16 -0
- package/types/components/Island.d.ts +10 -0
- package/types/components/JSONExportDialog.d.ts +13 -0
- package/types/components/LayerUI.d.ts +34 -0
- package/types/components/LibraryButton.d.ts +6 -0
- package/types/components/LibraryUnit.d.ts +9 -0
- package/types/components/LoadingMessage.d.ts +2 -0
- package/types/components/LockButton.d.ts +11 -0
- package/types/components/MobileMenu.d.ts +24 -0
- package/types/components/Modal.d.ts +11 -0
- package/types/components/PasteChartDialog.d.ts +9 -0
- package/types/components/Popover.d.ts +11 -0
- package/types/components/ProjectName.d.ts +11 -0
- package/types/components/Section.d.ts +7 -0
- package/types/components/Stack.d.ts +15 -0
- package/types/components/Stats.d.ts +11 -0
- package/types/components/Toast.d.ts +6 -0
- package/types/components/ToolButton.d.ts +35 -0
- package/types/components/Tooltip.d.ts +9 -0
- package/types/components/UserList.d.ts +13 -0
- package/types/components/icons.d.ts +163 -0
- package/types/constants.d.ts +115 -0
- package/types/data/blob.d.ts +11 -0
- package/types/data/encode.d.ts +25 -0
- package/types/data/image.d.ts +15 -0
- package/types/data/index.d.ts +13 -0
- package/types/data/json.d.ts +17 -0
- package/types/data/library.d.ts +14 -0
- package/types/data/resave.d.ts +5 -0
- package/types/data/restore.d.ts +13 -0
- package/types/data/types.d.ts +27 -0
- package/types/disitrubte.d.ts +7 -0
- package/types/element/binding.d.ts +33 -0
- package/types/element/bounds.d.ts +16 -0
- package/types/element/collision.d.ts +19 -0
- package/types/element/dragElements.d.ts +7 -0
- package/types/element/index.d.ts +22 -0
- package/types/element/linearElementEditor.d.ts +62 -0
- package/types/element/mutateElement.d.ts +11 -0
- package/types/element/newElement.d.ts +45 -0
- package/types/element/resizeElements.d.ts +9 -0
- package/types/element/resizeTest.d.ts +13 -0
- package/types/element/showSelectedShapeActions.d.ts +3 -0
- package/types/element/sizeHelpers.d.ts +16 -0
- package/types/element/textElement.d.ts +2 -0
- package/types/element/textWysiwyg.d.ts +15 -0
- package/types/element/transformHandles.d.ts +28 -0
- package/types/element/typeChecks.d.ts +11 -0
- package/types/element/types.d.ts +106 -0
- package/types/errors.d.ts +5 -0
- package/types/ga.d.ts +63 -0
- package/types/gadirections.d.ts +8 -0
- package/types/galines.d.ts +22 -0
- package/types/gapoints.d.ts +7 -0
- package/types/gatransforms.d.ts +10 -0
- package/types/gesture.d.ts +6 -0
- package/types/groups.d.ts +26 -0
- package/types/history.d.ts +52 -0
- package/types/hooks/useCallbackRefState.d.ts +1 -0
- package/types/i18n.d.ts +15 -0
- package/types/keys.d.ts +61 -0
- package/types/math.d.ts +20 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ar-SA-json-9a3fdf94110439c2826a.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ar-SA-json-efd63375f9605b72c4af.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-bg-BG-json-047db6df7a74c0298938.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-bg-BG-json-35c0e8b92b0dba8a4e6d.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ca-ES-json-6acefe26cfe1d2f12349.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ca-ES-json-9924fbd53652d5f15134.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-cs-CZ-json-85a469d813bb069829e7.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-de-DE-json-a52c17c4bd1b1db22464.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-de-DE-json-f85a8a52534c04c3f3b8.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-el-GR-json-060595a09e0004e33936.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-el-GR-json-3b209ec86ca2ce69bdfa.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-es-ES-json-32dc3bf0f789ef18e65d.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-es-ES-json-af5c541f9ac1526a9eb7.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fa-IR-json-7ee232d4ef08da0903f6.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fa-IR-json-c732ff7772327332c259.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fi-FI-json-46abeda8d809d4091924.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fi-FI-json-c1d5c5510660a11a428e.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fr-FR-json-6a418571305eecefe9bc.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-fr-FR-json-79fa555bfea0a356f393.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-he-IL-json-157ae036fcf470528687.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-he-IL-json-d006423b531ab062bb85.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-hi-IN-json-3035c3b3ab3ce981dbc7.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-hi-IN-json-d959b869453c591a8861.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-hu-HU-json-50a13e322a60bb701615.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-hu-HU-json-a366989217753fe3d02b.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-id-ID-json-87212daac6113b5bf808.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-id-ID-json-8d13d29ee41be15a1f99.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-it-IT-json-59f2e9d3dac07f3264cb.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-it-IT-json-90283cd2809f4165506b.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ja-JP-json-9e0a78ddb43d5709fb29.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ja-JP-json-ccb5ffd0f8a0980c2ec0.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-kab-KAB-json-d9acc7b8ee952e356d06.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-kab-KAB-json-dac787e0446cdb747fe1.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ko-KR-json-d61af373bea59d1ff4c6.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ko-KR-json-e42ededaa35032a201b9.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-lv-LV-json-07f6bffcb44fdd9aad4f.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-lv-LV-json-7eea5c4054f8418fdd10.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-my-MM-json-26d1e27bab3b8ac4a3e6.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-my-MM-json-a8f9bb37a7b947e9dfba.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nb-NO-json-8ce0749d46f0b4a8defb.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nb-NO-json-c01fab8602e1b658d5d1.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nl-NL-json-23fdfd9f11bc8efbaf56.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nl-NL-json-cf922daa828029c1aff5.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nn-NO-json-b5931de6e1ed336bf087.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-nn-NO-json-d363be6b3dcdbf3a868a.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-oc-FR-json-29d6193adb907d4f5890.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-oc-FR-json-c6414107ad634b113aba.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pa-IN-json-27063e4865142ac11b1a.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pa-IN-json-f0c779291da384fb5173.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pl-PL-json-16af1b83ac16af57ad07.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pl-PL-json-a4a5c6e0a9877c43476a.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pt-BR-json-03a046855063512eb9ff.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pt-BR-json-db86828d6e3ced9f9854.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pt-PT-json-7ed352e9de6dc74ef503.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-pt-PT-json-bc0cd589bd87a3079407.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ro-RO-json-75692b7a0166d6ad27a4.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ro-RO-json-f13a2e7b7a63fbfb6ae7.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ru-RU-json-69b1a919b7f42adfd6ec.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-ru-RU-json-7c2a2061d0ca99cf7007.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-sk-SK-json-0ef09f90308059d22ae8.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-sk-SK-json-4757551ceb15fa0a29a9.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-sv-SE-json-dc7718d79b9bf93a4ba4.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-sv-SE-json-fa5bd09f128972b13ac2.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-tr-TR-json-b574833ee1c2f58fd24e.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-tr-TR-json-cba7e62d9610795a5ac3.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-uk-UA-json-a9a8ea7adb95c0a03680.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-uk-UA-json-f0cab296bdc4089ffa77.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-zh-CN-json-45da9983459601b845e8.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-zh-CN-json-94f562845a945a45e385.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-zh-TW-json-0e77c896018bcd221bf6.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/i18n-zh-TW-json-7dd3d9ba72493687c286.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-02a1f3ecd6baf42daaa6.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-eafab0c39ce13f7fea67.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/vendor-448ccb79e58765b61834.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/vendor-cb708a4580b007d81177.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-cacb3d0c02eb2e346ecc.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-0454f90696ac835aeb45.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-7664c12c379862ed98a5.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw.development.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw.production.min.d.ts +3 -0
- package/types/packages/excalidraw/entry.d.ts +3 -0
- package/types/packages/excalidraw/index.d.ts +16 -0
- package/types/packages/excalidraw/main.d.ts +2 -0
- package/types/packages/excalidraw/publicPath.d.ts +1 -0
- package/types/packages/excalidraw/webpack.dev.config.d.ts +81 -0
- package/types/packages/excalidraw/webpack.prod.config.d.ts +91 -0
- package/types/packages/utils.d.ts +26 -0
- package/types/points.d.ts +6 -0
- package/types/random.d.ts +3 -0
- package/types/renderer/index.d.ts +1 -0
- package/types/renderer/renderElement.d.ts +23 -0
- package/types/renderer/renderScene.d.ts +21 -0
- package/types/renderer/roundRect.d.ts +11 -0
- package/types/scene/Scene.d.ts +26 -0
- package/types/scene/comparisons.d.ts +10 -0
- package/types/scene/export.d.ts +20 -0
- package/types/scene/index.d.ts +5 -0
- package/types/scene/scroll.d.ts +17 -0
- package/types/scene/scrollbars.d.ts +16 -0
- package/types/scene/selection.d.ts +11 -0
- package/types/scene/types.d.ts +50 -0
- package/types/scene/zoom.d.ts +6 -0
- package/types/shapes.d.ts +35 -0
- package/types/types.d.ts +287 -0
- package/types/utils.d.ts +94 -0
- package/types/zindex.d.ts +6 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./Avatar.scss";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare type AvatarProps = {
|
|
4
|
+
children: JSX.Element | string;
|
|
5
|
+
onClick: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
6
|
+
color: string;
|
|
7
|
+
border: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const Avatar: ({ children, color, border, onClick }: AvatarProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ActionManager } from "../actions/manager";
|
|
3
|
+
import { AppState } from "../types";
|
|
4
|
+
export declare const BackgroundPickerAndDarkModeToggle: ({ appState, setAppState, actionManager, showThemeBtn, }: {
|
|
5
|
+
actionManager: ActionManager;
|
|
6
|
+
appState: AppState;
|
|
7
|
+
setAppState: React.Component<any, AppState>["setState"];
|
|
8
|
+
showThemeBtn: boolean;
|
|
9
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ButtonIconSelect: <T extends Object>({ options, value, onChange, group, }: {
|
|
3
|
+
options: {
|
|
4
|
+
value: T;
|
|
5
|
+
text: string;
|
|
6
|
+
icon: JSX.Element;
|
|
7
|
+
}[];
|
|
8
|
+
value: T | null;
|
|
9
|
+
onChange: (value: T) => void;
|
|
10
|
+
group: string;
|
|
11
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./CollabButton.scss";
|
|
3
|
+
declare const CollabButton: ({ isCollaborating, collaboratorCount, onClick, }: {
|
|
4
|
+
isCollaborating: boolean;
|
|
5
|
+
collaboratorCount: number;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
}) => JSX.Element;
|
|
8
|
+
export default CollabButton;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./ColorPicker.scss";
|
|
3
|
+
export declare const ColorPicker: ({ type, color, onChange, label, isActive, setActive, }: {
|
|
4
|
+
type: "canvasBackground" | "elementBackground" | "elementStroke";
|
|
5
|
+
color: string | null;
|
|
6
|
+
onChange: (color: string) => void;
|
|
7
|
+
label: string;
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
setActive: (active: boolean) => void;
|
|
10
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "./ContextMenu.scss";
|
|
2
|
+
import { Action } from "../actions/types";
|
|
3
|
+
import { ActionManager } from "../actions/manager";
|
|
4
|
+
import { AppState } from "../types";
|
|
5
|
+
export declare type ContextMenuOption = "separator" | Action;
|
|
6
|
+
declare type ContextMenuProps = {
|
|
7
|
+
options: ContextMenuOption[];
|
|
8
|
+
onCloseRequest?(): void;
|
|
9
|
+
top: number;
|
|
10
|
+
left: number;
|
|
11
|
+
actionManager: ActionManager;
|
|
12
|
+
appState: Readonly<AppState>;
|
|
13
|
+
};
|
|
14
|
+
declare type ContextMenuParams = {
|
|
15
|
+
options: (ContextMenuOption | false | null | undefined)[];
|
|
16
|
+
top: ContextMenuProps["top"];
|
|
17
|
+
left: ContextMenuProps["left"];
|
|
18
|
+
actionManager: ContextMenuProps["actionManager"];
|
|
19
|
+
appState: Readonly<AppState>;
|
|
20
|
+
container: HTMLElement;
|
|
21
|
+
};
|
|
22
|
+
declare const _default: {
|
|
23
|
+
push(params: ContextMenuParams): void;
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./ToolIcon.scss";
|
|
3
|
+
export declare type Appearence = "light" | "dark";
|
|
4
|
+
export declare const DarkModeToggle: (props: {
|
|
5
|
+
value: Appearence;
|
|
6
|
+
onChange: (value: Appearence) => void;
|
|
7
|
+
title?: string | undefined;
|
|
8
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Dialog.scss";
|
|
3
|
+
import { AppState } from "../types";
|
|
4
|
+
export declare const Dialog: (props: {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
small?: boolean;
|
|
8
|
+
onCloseRequest(): void;
|
|
9
|
+
title: React.ReactNode;
|
|
10
|
+
autofocus?: boolean;
|
|
11
|
+
theme?: AppState["theme"];
|
|
12
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./FixedSideContainer.scss";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare type FixedSideContainerProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
side: "top" | "left" | "right";
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const FixedSideContainer: ({ children, side, className, }: FixedSideContainerProps) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
3
|
+
import "./HintViewer.scss";
|
|
4
|
+
import { AppState } from "../types";
|
|
5
|
+
interface Hint {
|
|
6
|
+
appState: AppState;
|
|
7
|
+
elements: readonly NonDeletedExcalidrawElement[];
|
|
8
|
+
}
|
|
9
|
+
export declare const HintViewer: ({ appState, elements }: Hint) => JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./IconPicker.scss";
|
|
3
|
+
export declare function IconPicker<T>({ value, label, options, onChange, group, }: {
|
|
4
|
+
label: string;
|
|
5
|
+
value: T;
|
|
6
|
+
options: {
|
|
7
|
+
value: T;
|
|
8
|
+
text: string;
|
|
9
|
+
icon: JSX.Element;
|
|
10
|
+
keyBinding: string;
|
|
11
|
+
}[];
|
|
12
|
+
onChange: (value: T) => void;
|
|
13
|
+
group?: string;
|
|
14
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ActionsManagerInterface } from "../actions/types";
|
|
3
|
+
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
4
|
+
import { AppState } from "../types";
|
|
5
|
+
import "./ExportDialog.scss";
|
|
6
|
+
export declare const ErrorCanvasPreview: () => JSX.Element;
|
|
7
|
+
export declare type ExportCB = (elements: readonly NonDeletedExcalidrawElement[], scale?: number) => void;
|
|
8
|
+
export declare const ImageExportDialog: ({ elements, appState, exportPadding, actionManager, onExportToPng, onExportToSvg, onExportToClipboard, }: {
|
|
9
|
+
appState: AppState;
|
|
10
|
+
elements: readonly NonDeletedExcalidrawElement[];
|
|
11
|
+
exportPadding?: number | undefined;
|
|
12
|
+
actionManager: ActionsManagerInterface;
|
|
13
|
+
onExportToPng: ExportCB;
|
|
14
|
+
onExportToSvg: ExportCB;
|
|
15
|
+
onExportToClipboard: ExportCB;
|
|
16
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Language } from "../i18n";
|
|
3
|
+
interface Props {
|
|
4
|
+
langCode: Language["code"];
|
|
5
|
+
}
|
|
6
|
+
interface State {
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare class InitializeApp extends React.Component<Props, State> {
|
|
10
|
+
state: {
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
};
|
|
13
|
+
componentDidMount(): Promise<void>;
|
|
14
|
+
render(): React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./Island.scss";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare type IslandProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
padding?: number;
|
|
6
|
+
className?: string | boolean;
|
|
7
|
+
style?: object;
|
|
8
|
+
};
|
|
9
|
+
export declare const Island: React.ForwardRefExoticComponent<IslandProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ActionsManagerInterface } from "../actions/types";
|
|
3
|
+
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
4
|
+
import { AppState, CanvasActions } from "../types";
|
|
5
|
+
import "./ExportDialog.scss";
|
|
6
|
+
export declare type ExportCB = (elements: readonly NonDeletedExcalidrawElement[], scale?: number) => void;
|
|
7
|
+
export declare const JSONExportDialog: ({ elements, appState, actionManager, exportOpts, canvas, }: {
|
|
8
|
+
appState: AppState;
|
|
9
|
+
elements: readonly NonDeletedExcalidrawElement[];
|
|
10
|
+
actionManager: ActionsManagerInterface;
|
|
11
|
+
exportOpts: CanvasActions["export"];
|
|
12
|
+
canvas: HTMLCanvasElement | null;
|
|
13
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ActionManager } from "../actions/manager";
|
|
3
|
+
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
4
|
+
import { Language } from "../i18n";
|
|
5
|
+
import { AppProps, AppState, ExcalidrawProps } from "../types";
|
|
6
|
+
import "./LayerUI.scss";
|
|
7
|
+
import Library from "../data/library";
|
|
8
|
+
interface LayerUIProps {
|
|
9
|
+
onHomeButtonClick?: () => void;
|
|
10
|
+
actionManager: ActionManager;
|
|
11
|
+
appState: AppState;
|
|
12
|
+
canvas: HTMLCanvasElement | null;
|
|
13
|
+
setAppState: React.Component<any, AppState>["setState"];
|
|
14
|
+
elements: readonly NonDeletedExcalidrawElement[];
|
|
15
|
+
onCollabButtonClick?: () => void;
|
|
16
|
+
onLockToggle: () => void;
|
|
17
|
+
onInsertElements: (elements: readonly NonDeletedExcalidrawElement[]) => void;
|
|
18
|
+
zenModeEnabled: boolean;
|
|
19
|
+
showExitZenModeBtn: boolean;
|
|
20
|
+
showThemeBtn: boolean;
|
|
21
|
+
toggleZenMode: () => void;
|
|
22
|
+
langCode: Language["code"];
|
|
23
|
+
isCollaborating: boolean;
|
|
24
|
+
renderTopRightUI?: (isMobile: boolean, appState: AppState) => JSX.Element;
|
|
25
|
+
renderCustomFooter?: (isMobile: boolean, appState: AppState) => JSX.Element;
|
|
26
|
+
viewModeEnabled: boolean;
|
|
27
|
+
libraryReturnUrl: ExcalidrawProps["libraryReturnUrl"];
|
|
28
|
+
UIOptions: AppProps["UIOptions"];
|
|
29
|
+
focusContainer: () => void;
|
|
30
|
+
library: Library;
|
|
31
|
+
id: string;
|
|
32
|
+
}
|
|
33
|
+
declare const _default: React.MemoExoticComponent<({ onHomeButtonClick, actionManager, appState, setAppState, canvas, elements, onCollabButtonClick, onLockToggle, onInsertElements, zenModeEnabled, showExitZenModeBtn, showThemeBtn, toggleZenMode, isCollaborating, renderTopRightUI, renderCustomFooter, viewModeEnabled, libraryReturnUrl, UIOptions, focusContainer, library, id, }: LayerUIProps) => JSX.Element>;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LibraryItem } from "../types";
|
|
3
|
+
import "./LibraryUnit.scss";
|
|
4
|
+
export declare const LibraryUnit: ({ elements, pendingElements, onRemoveFromLibrary, onClick, }: {
|
|
5
|
+
elements?: LibraryItem | undefined;
|
|
6
|
+
pendingElements?: LibraryItem | undefined;
|
|
7
|
+
onRemoveFromLibrary: () => void;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./ToolIcon.scss";
|
|
3
|
+
declare type LockIconProps = {
|
|
4
|
+
title?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
checked: boolean;
|
|
7
|
+
onChange?(): void;
|
|
8
|
+
zenModeEnabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const LockButton: (props: LockIconProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AppProps, AppState } from "../types";
|
|
3
|
+
import { ActionManager } from "../actions/manager";
|
|
4
|
+
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
5
|
+
declare type MobileMenuProps = {
|
|
6
|
+
onHomeButtonClick?: () => void;
|
|
7
|
+
appState: AppState;
|
|
8
|
+
actionManager: ActionManager;
|
|
9
|
+
renderJSONExportDialog: () => React.ReactNode;
|
|
10
|
+
renderImageExportDialog: () => React.ReactNode;
|
|
11
|
+
setAppState: React.Component<any, AppState>["setState"];
|
|
12
|
+
elements: readonly NonDeletedExcalidrawElement[];
|
|
13
|
+
libraryMenu: JSX.Element | null;
|
|
14
|
+
onCollabButtonClick?: () => void;
|
|
15
|
+
onLockToggle: () => void;
|
|
16
|
+
canvas: HTMLCanvasElement | null;
|
|
17
|
+
isCollaborating: boolean;
|
|
18
|
+
renderCustomFooter?: (isMobile: boolean, appState: AppState) => JSX.Element;
|
|
19
|
+
viewModeEnabled: boolean;
|
|
20
|
+
showThemeBtn: boolean;
|
|
21
|
+
UIOptions: AppProps["UIOptions"];
|
|
22
|
+
};
|
|
23
|
+
export declare const MobileMenu: ({ onHomeButtonClick, appState, elements, libraryMenu, actionManager, renderJSONExportDialog, renderImageExportDialog, setAppState, onCollabButtonClick, onLockToggle, canvas, isCollaborating, renderCustomFooter, viewModeEnabled, showThemeBtn, UIOptions, }: MobileMenuProps) => JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./Modal.scss";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AppState } from "../types";
|
|
4
|
+
export declare const Modal: (props: {
|
|
5
|
+
className?: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
maxWidth?: number;
|
|
8
|
+
onCloseRequest(): void;
|
|
9
|
+
labelledBy: string;
|
|
10
|
+
theme?: AppState["theme"];
|
|
11
|
+
}) => React.ReactPortal | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AppState, LibraryItem } from "../types";
|
|
3
|
+
import "./PasteChartDialog.scss";
|
|
4
|
+
export declare const PasteChartDialog: ({ setAppState, appState, onClose, onInsertChart, }: {
|
|
5
|
+
appState: AppState;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
setAppState: React.Component<any, AppState>["setState"];
|
|
8
|
+
onInsertChart: (elements: LibraryItem) => void;
|
|
9
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Popover.scss";
|
|
3
|
+
declare type Props = {
|
|
4
|
+
top?: number;
|
|
5
|
+
left?: number;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
onCloseRequest?(event: PointerEvent): void;
|
|
8
|
+
fitInViewport?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const Popover: ({ children, left, top, onCloseRequest, fitInViewport, }: Props) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./TextInput.scss";
|
|
3
|
+
import "./ProjectName.scss";
|
|
4
|
+
declare type Props = {
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
label: string;
|
|
8
|
+
isNameEditable: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const ProjectName: (props: Props) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface SectionProps extends React.HTMLProps<HTMLElement> {
|
|
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 {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "./Stack.scss";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare type StackProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
gap?: number;
|
|
6
|
+
align?: "start" | "center" | "end" | "baseline";
|
|
7
|
+
justifyContent?: "center" | "space-around" | "space-between";
|
|
8
|
+
className?: string | boolean;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: {
|
|
12
|
+
Row: ({ children, gap, align, justifyContent, className, style, }: StackProps) => JSX.Element;
|
|
13
|
+
Col: ({ children, gap, align, justifyContent, className, }: StackProps) => JSX.Element;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
3
|
+
import { AppState, ExcalidrawProps } from "../types";
|
|
4
|
+
import "./Stats.scss";
|
|
5
|
+
export declare const Stats: (props: {
|
|
6
|
+
appState: AppState;
|
|
7
|
+
setAppState: React.Component<any, AppState>["setState"];
|
|
8
|
+
elements: readonly NonDeletedExcalidrawElement[];
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
renderCustomStats: ExcalidrawProps["renderCustomStats"];
|
|
11
|
+
}) => JSX.Element | null;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import "./ToolIcon.scss";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare type ToolButtonSize = "small" | "medium";
|
|
4
|
+
declare type ToolButtonBaseProps = {
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
"aria-label": string;
|
|
7
|
+
"aria-keyshortcuts"?: string;
|
|
8
|
+
"data-testid"?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
size?: ToolButtonSize;
|
|
14
|
+
keyBindingLabel?: string;
|
|
15
|
+
showAriaLabel?: boolean;
|
|
16
|
+
hidden?: boolean;
|
|
17
|
+
visible?: boolean;
|
|
18
|
+
selected?: boolean;
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
declare type ToolButtonProps = (ToolButtonBaseProps & {
|
|
22
|
+
type: "button";
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
onClick?(): void;
|
|
25
|
+
}) | (ToolButtonBaseProps & {
|
|
26
|
+
type: "icon";
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
onClick?(): void;
|
|
29
|
+
}) | (ToolButtonBaseProps & {
|
|
30
|
+
type: "radio";
|
|
31
|
+
checked: boolean;
|
|
32
|
+
onChange?(): void;
|
|
33
|
+
});
|
|
34
|
+
export declare const ToolButton: React.ForwardRefExoticComponent<ToolButtonProps & React.RefAttributes<unknown>>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./UserList.scss";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AppState } from "../types";
|
|
4
|
+
import { ActionManager } from "../actions/manager";
|
|
5
|
+
declare type UserListProps = {
|
|
6
|
+
className?: string;
|
|
7
|
+
mobile?: boolean;
|
|
8
|
+
collaborators: AppState["collaborators"];
|
|
9
|
+
layout: "vertical" | "horizontal";
|
|
10
|
+
actionManager: ActionManager;
|
|
11
|
+
};
|
|
12
|
+
export declare const UserList: React.MemoExoticComponent<({ className, mobile, collaborators, layout, actionManager, }: UserListProps) => JSX.Element>;
|
|
13
|
+
export {};
|