@dwelle/excalidraw 0.3.78 → 0.4.0-08c4fac
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 +102 -754
- package/README.md +94 -26
- package/dist/excalidraw-assets/Assistant-Bold.woff2 +0 -0
- package/dist/excalidraw-assets/Assistant-Medium.woff2 +0 -0
- package/dist/excalidraw-assets/Assistant-Regular.woff2 +0 -0
- package/dist/excalidraw-assets/Assistant-SemiBold.woff2 +0 -0
- package/dist/excalidraw-assets/vendor-2002fe1b8862917b36c1.js +2 -0
- package/dist/excalidraw-assets/vendor-2002fe1b8862917b36c1.js.LICENSE.txt +12 -0
- package/dist/excalidraw-assets-dev/Assistant-Bold.woff2 +0 -0
- package/dist/excalidraw-assets-dev/Assistant-Medium.woff2 +0 -0
- package/dist/excalidraw-assets-dev/Assistant-Regular.woff2 +0 -0
- package/dist/excalidraw-assets-dev/Assistant-SemiBold.woff2 +0 -0
- package/dist/excalidraw-assets-dev/vendor-e6df8519da951026ff69.js +98 -0
- package/dist/excalidraw.development.js +1323 -1074
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +2 -0
- package/package.json +2 -2
- package/types/actions/actionAddToLibrary.d.ts +314 -311
- package/types/actions/actionAlign.d.ts +103 -91
- package/types/actions/actionBoundText.d.ts +129 -128
- package/types/actions/actionCanvas.d.ts +923 -901
- package/types/actions/actionClipboard.d.ts +595 -589
- package/types/actions/actionDeleteSelected.d.ts +345 -339
- package/types/actions/actionDistribute.d.ts +37 -33
- package/types/actions/actionDuplicateSelection.d.ts +24 -22
- package/types/actions/actionExport.d.ts +1025 -1000
- package/types/actions/actionFinalize.d.ts +220 -216
- package/types/actions/actionFlip.d.ts +35 -35
- package/types/actions/actionGroup.d.ts +49 -45
- package/types/actions/actionHistory.d.ts +6 -6
- package/types/actions/actionLinearEditor.d.ts +115 -0
- package/types/actions/actionMenu.d.ts +358 -349
- package/types/actions/actionNavigate.d.ts +15 -13
- package/types/actions/actionProperties.d.ts +1493 -1454
- package/types/actions/actionSelectAll.d.ts +16 -16
- package/types/actions/actionStyles.d.ts +130 -129
- package/types/actions/actionToggleGridMode.d.ts +117 -116
- package/types/actions/actionToggleLock.d.ts +116 -115
- package/types/actions/actionToggleStats.d.ts +115 -114
- package/types/actions/actionToggleViewMode.d.ts +116 -115
- package/types/actions/actionToggleZenMode.d.ts +116 -115
- package/types/actions/actionZindex.d.ts +75 -67
- package/types/actions/index.d.ts +24 -23
- package/types/actions/manager.d.ts +20 -20
- package/types/actions/register.d.ts +5 -5
- package/types/actions/shortcuts.d.ts +3 -3
- package/types/actions/types.d.ts +42 -40
- package/types/align.d.ts +6 -6
- package/types/analytics.d.ts +1 -1
- package/types/appState.d.ts +77 -76
- package/types/charts.d.ts +27 -27
- package/types/clients.d.ts +6 -6
- package/types/clipboard.d.ts +20 -20
- package/types/colors.d.ts +6 -6
- package/types/components/Actions.d.ts +35 -23
- package/types/components/ActiveFile.d.ts +7 -7
- package/types/components/App.d.ts +420 -368
- package/types/components/Avatar.d.ts +11 -11
- package/types/components/ButtonIconSelect.d.ts +11 -11
- package/types/components/CheckboxItem.d.ts +8 -8
- package/types/components/ClearCanvas.d.ts +4 -4
- package/types/components/CollabButton.d.ts +6 -7
- package/types/components/ColorPicker.d.ts +14 -14
- package/types/components/ConfirmDialog.d.ts +10 -10
- package/types/components/ContextMenu.d.ts +28 -28
- package/types/components/DarkModeToggle.d.ts +7 -7
- package/types/components/Dialog.d.ts +14 -14
- package/types/components/DialogActionButton.d.ts +10 -0
- package/types/components/ErrorDialog.d.ts +4 -4
- package/types/components/FixedSideContainer.d.ts +9 -9
- package/types/components/Footer.d.ts +10 -0
- package/types/components/HelpButton.d.ts +8 -0
- package/types/components/HelpDialog.d.ts +4 -4
- package/types/components/HintViewer.d.ts +11 -10
- package/types/components/HomeButton.d.ts +5 -0
- package/types/components/IconPicker.d.ts +13 -13
- package/types/components/ImageExportDialog.d.ts +18 -16
- package/types/components/InitializeApp.d.ts +10 -8
- package/types/components/Island.d.ts +10 -10
- package/types/components/JSONExportDialog.d.ts +13 -13
- package/types/components/LayerUI.d.ts +40 -38
- package/types/components/LibraryButton.d.ts +8 -7
- package/types/components/LibraryMenu.d.ts +25 -17
- package/types/components/LibraryMenuBrowseButton.d.ts +7 -0
- package/types/components/LibraryMenuHeaderContent.d.ts +12 -0
- package/types/components/LibraryMenuItems.d.ts +15 -24
- package/types/components/LibraryUnit.d.ts +11 -12
- package/types/components/LoadingMessage.d.ts +6 -4
- package/types/components/LockButton.d.ts +11 -11
- package/types/components/MenuItem.d.ts +11 -0
- package/types/components/MenuUtils.d.ts +1 -0
- package/types/components/MobileMenu.d.ts +30 -29
- package/types/components/Modal.d.ts +12 -12
- package/types/components/PasteChartDialog.d.ts +9 -9
- package/types/components/PenModeButton.d.ts +12 -12
- package/types/components/Popover.d.ts +15 -15
- package/types/components/ProjectName.d.ts +10 -10
- package/types/components/PublishLibrary.d.ts +16 -16
- package/types/components/Section.d.ts +6 -6
- package/types/components/Sidebar/Sidebar.d.ts +73 -0
- package/types/components/Sidebar/SidebarHeader.d.ts +20 -0
- package/types/components/Sidebar/common.d.ts +16 -0
- package/types/components/SingleLibraryItem.d.ts +10 -10
- package/types/components/Spinner.d.ts +6 -6
- package/types/components/Stack.d.ts +15 -15
- package/types/components/Stats.d.ts +11 -11
- package/types/components/Toast.d.ts +7 -7
- package/types/components/ToolButton.d.ts +46 -46
- package/types/components/Tooltip.d.ts +17 -17
- package/types/components/UserList.d.ts +10 -11
- package/types/components/WelcomeScreen.d.ts +8 -0
- package/types/components/WelcomeScreenDecor.d.ts +6 -0
- package/types/components/hoc/withUpstreamOverride.d.ts +10 -0
- package/types/components/icons.d.ts +139 -180
- package/types/constants.d.ts +157 -149
- package/types/data/blob.d.ts +47 -47
- package/types/data/encode.d.ts +53 -53
- package/types/data/encryption.d.ts +9 -9
- package/types/data/filesystem.d.ts +18 -18
- package/types/data/image.d.ts +15 -15
- package/types/data/index.d.ts +13 -13
- package/types/data/json.d.ts +16 -16
- package/types/data/library.d.ts +96 -96
- package/types/data/resave.d.ts +5 -5
- package/types/data/restore.d.ts +15 -15
- package/types/data/types.d.ts +47 -32
- package/types/distribute.d.ts +6 -6
- package/types/element/Hyperlink.d.ts +138 -136
- package/types/element/binding.d.ts +33 -33
- package/types/element/bounds.d.ts +27 -27
- package/types/element/collision.d.ts +21 -21
- package/types/element/dragElements.d.ts +5 -5
- package/types/element/image.d.ts +22 -22
- package/types/element/index.d.ts +20 -20
- package/types/element/linearElementEditor.d.ts +223 -203
- package/types/element/mutateElement.d.ts +11 -11
- package/types/element/newElement.d.ts +63 -50
- package/types/element/resizeElements.d.ts +9 -9
- package/types/element/resizeTest.d.ts +13 -13
- package/types/element/showSelectedShapeActions.d.ts +3 -3
- package/types/element/sizeHelpers.d.ts +21 -21
- package/types/element/textElement.d.ts +30 -26
- package/types/element/textWysiwyg.d.ts +16 -16
- package/types/element/transformHandles.d.ts +29 -28
- package/types/element/typeChecks.d.ts +17 -17
- package/types/element/types.d.ts +134 -133
- package/types/emitter.d.ts +21 -21
- package/types/errors.d.ts +8 -8
- package/types/ga.d.ts +63 -63
- package/types/gadirections.d.ts +8 -8
- package/types/galines.d.ts +22 -22
- package/types/gapoints.d.ts +7 -7
- package/types/gatransforms.d.ts +10 -10
- package/types/gesture.d.ts +6 -6
- package/types/groups.d.ts +27 -27
- package/types/history.d.ts +52 -52
- package/types/hooks/useCallbackRefState.d.ts +1 -1
- package/types/hooks/useOutsideClick.d.ts +2 -0
- package/types/i18n.d.ts +15 -15
- package/types/jotai.d.ts +122 -122
- package/types/keys.d.ts +68 -68
- package/types/math.d.ts +27 -20
- package/types/packages/excalidraw/dist/{excalidraw-assets-dev/image-469d5bd946743969995a.d.ts → excalidraw-assets/vendor-2002fe1b8862917b36c1.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/{image-028ba554a42cc8a4995a.d.ts → vendor-e6df8519da951026ff69.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw.development.d.ts +2 -2
- package/types/packages/excalidraw/dist/excalidraw.production.min.d.ts +1 -5
- package/types/packages/excalidraw/entry.d.ts +1 -1
- package/types/packages/excalidraw/env.d.ts +1 -1
- package/types/packages/excalidraw/example/App.d.ts +8 -7
- package/types/packages/excalidraw/example/index.d.ts +1 -1
- package/types/packages/excalidraw/example/initialData.d.ts +172 -172
- package/types/packages/excalidraw/example/sidebar/{Sidebar.d.ts → ExampleSidebar.d.ts} +5 -5
- package/types/packages/excalidraw/index.d.ts +19 -18
- package/types/packages/excalidraw/main.d.ts +2 -2
- package/types/packages/excalidraw/publicPath.d.ts +1 -1
- package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -19
- package/types/packages/excalidraw/webpack.dev.config.d.ts +79 -79
- package/types/packages/excalidraw/webpack.prod.config.d.ts +92 -92
- package/types/packages/utils.d.ts +35 -32
- package/types/points.d.ts +7 -6
- package/types/polyfill.d.ts +2 -0
- package/types/random.d.ts +3 -3
- package/types/renderer/renderElement.d.ts +35 -35
- package/types/renderer/renderScene.d.ts +41 -25
- package/types/renderer/roundRect.d.ts +11 -11
- package/types/scene/Scene.d.ts +25 -25
- package/types/scene/comparisons.d.ts +11 -11
- package/types/scene/export.d.ts +20 -20
- package/types/scene/index.d.ts +5 -5
- package/types/scene/scroll.d.ts +17 -17
- package/types/scene/scrollbars.d.ts +16 -16
- package/types/scene/selection.d.ts +11 -11
- package/types/scene/types.d.ts +59 -58
- package/types/scene/zoom.d.ts +13 -13
- package/types/shapes.d.ts +52 -38
- package/types/types.d.ts +399 -393
- package/types/utils.d.ts +136 -136
- package/types/zindex.d.ts +6 -6
- package/dist/excalidraw-assets/vendor-b9b3a25c026c138e55b2.js +0 -2
- package/dist/excalidraw-assets/vendor-b9b3a25c026c138e55b2.js.LICENSE.txt +0 -6
- package/dist/excalidraw-assets-dev/vendor-33bd21df77fc9cda16d2.js +0 -98
- package/types/actions/actionUnbindText.d.ts +0 -11
- package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +0 -9
- package/types/components/Card.d.ts +0 -7
- package/types/components/HelpIcon.d.ts +0 -8
- package/types/components/SidebarLockButton.d.ts +0 -8
- package/types/disitrubte.d.ts +0 -6
- 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-0db17e06143a31f9772b.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-2be1c869cd5bacebdc3c.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-46f5e8e621bfedbf6d91.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-6f8d3b9873832b5f7a67.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-8e0c265e832504f62477.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-9592159c56d563857679.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-98a7b39bd21998c69c4b.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-a26261fb8a718f15853e.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-a97adda58b4c4d8d0107.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-af02967a8a4c328f2713.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-bd5991c772b4867c8d27.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-c198828284ec0dba28dc.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-eac20119cbc2ceb81523.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-0e2ecbd1f46fc190ec01.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/vendor-1018b0a7e7e60d808384.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/vendor-405364e1fdefedf5d3d7.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-585a4c89d479fd91edeb.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/vendor-64ea3ed78bc76a895e61.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/vendor-6644c8f79d52085cf653.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/vendor-807e23d7531555236936.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/vendor-8698157b56eb5e0ee549.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/vendor-aed19b6e017f9f736254.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/vendor-b088910ac1ba8853a571.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/vendor-b9b3a25c026c138e55b2.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/vendor-cb708a4580b007d81177.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/vendor-ce466849186c701b6c48.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/vendor-e5c6cd57013e8e575a61.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-664005f0b02c93342b89.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-73be8b3c1837ea26950c.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-821afe7d20de2d2ca898.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-8825d180ee32659f8996.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-89cddf27ef982ca154dc.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-9f771c114a0a3ad7b334.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-a98d24ea9aa42940a0df.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-b2befe1e2a0424a41fb3.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/image-d7e941a51c2e0a7b3c23.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-e50a452aa26d28419e39.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-eddc6ed66acd3a3f3d46.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-f696fa36e3535df5e97a.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-1bc8ceaafd8623c96dd4.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-26ccabf52930f0ce0ffd.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-33bd21df77fc9cda16d2.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-4534d6e506404cef7a9e.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-5d1c4700bd0fa2109ab5.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-7664c12c379862ed98a5.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-7fcb99cece261da4983f.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-86b56a69e7dddcf8f70d.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-a449655791956f151f51.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-bb07a412033591d5470d.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-ec7db14ff9ba640888c4.d.ts +0 -0
- package/types/renderer/index.d.ts +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./Avatar.scss";
|
|
2
|
-
import React from "react";
|
|
3
|
-
declare type AvatarProps = {
|
|
4
|
-
onClick: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
5
|
-
color: string;
|
|
6
|
-
border: string;
|
|
7
|
-
name: string;
|
|
8
|
-
src?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const Avatar: ({ color,
|
|
11
|
-
export {};
|
|
1
|
+
import "./Avatar.scss";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare type AvatarProps = {
|
|
4
|
+
onClick: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
5
|
+
color: string;
|
|
6
|
+
border: string;
|
|
7
|
+
name: string;
|
|
8
|
+
src?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const Avatar: ({ color, onClick, name, src }: AvatarProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare const ButtonIconSelect: <T extends Object>({ options, value, onChange, group, }: {
|
|
2
|
-
options: {
|
|
3
|
-
value: T;
|
|
4
|
-
text: string;
|
|
5
|
-
icon: JSX.Element;
|
|
6
|
-
testId?: string | undefined;
|
|
7
|
-
}[];
|
|
8
|
-
value: T | null;
|
|
9
|
-
onChange: (value: T) => void;
|
|
10
|
-
group: string;
|
|
11
|
-
}) => JSX.Element;
|
|
1
|
+
export declare const ButtonIconSelect: <T extends Object>({ options, value, onChange, group, }: {
|
|
2
|
+
options: {
|
|
3
|
+
value: T;
|
|
4
|
+
text: string;
|
|
5
|
+
icon: JSX.Element;
|
|
6
|
+
testId?: string | undefined;
|
|
7
|
+
}[];
|
|
8
|
+
value: T | null;
|
|
9
|
+
onChange: (value: T) => void;
|
|
10
|
+
group: string;
|
|
11
|
+
}) => JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./CheckboxItem.scss";
|
|
3
|
-
export declare const CheckboxItem: React.FC<{
|
|
4
|
-
checked: boolean;
|
|
5
|
-
onChange: (checked: boolean, event: React.MouseEvent) => void;
|
|
6
|
-
className?: string;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
}>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./CheckboxItem.scss";
|
|
3
|
+
export declare const CheckboxItem: React.FC<{
|
|
4
|
+
checked: boolean;
|
|
5
|
+
onChange: (checked: boolean, event: React.MouseEvent) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const ClearCanvas: ({ onConfirm }: {
|
|
2
|
-
onConfirm: () => void;
|
|
3
|
-
}) => JSX.Element;
|
|
4
|
-
export default ClearCanvas;
|
|
1
|
+
declare const ClearCanvas: ({ onConfirm }: {
|
|
2
|
+
onConfirm: () => void;
|
|
3
|
+
}) => JSX.Element;
|
|
4
|
+
export default ClearCanvas;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "./CollabButton.scss";
|
|
2
|
-
declare const CollabButton: ({
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export default CollabButton;
|
|
1
|
+
import "./CollabButton.scss";
|
|
2
|
+
declare const CollabButton: ({ onClick, isInHamburgerMenu, }: {
|
|
3
|
+
onClick: () => void;
|
|
4
|
+
isInHamburgerMenu?: boolean | undefined;
|
|
5
|
+
}) => JSX.Element;
|
|
6
|
+
export default CollabButton;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./ColorPicker.scss";
|
|
2
|
-
import { ExcalidrawElement } from "../element/types";
|
|
3
|
-
import { AppState } from "../types";
|
|
4
|
-
export declare const getCustomColors: (elements: readonly ExcalidrawElement[], type: "elementBackground" | "elementStroke") => string[];
|
|
5
|
-
export declare const ColorPicker: ({ type, color, onChange, label, isActive, setActive, elements, appState, }: {
|
|
6
|
-
type: "canvasBackground" | "elementBackground" | "elementStroke";
|
|
7
|
-
color: string | null;
|
|
8
|
-
onChange: (color: string) => void;
|
|
9
|
-
label: string;
|
|
10
|
-
isActive: boolean;
|
|
11
|
-
setActive: (active: boolean) => void;
|
|
12
|
-
elements: readonly ExcalidrawElement[];
|
|
13
|
-
appState: AppState;
|
|
14
|
-
}) => JSX.Element;
|
|
1
|
+
import "./ColorPicker.scss";
|
|
2
|
+
import { ExcalidrawElement } from "../element/types";
|
|
3
|
+
import { AppState } from "../types";
|
|
4
|
+
export declare const getCustomColors: (elements: readonly ExcalidrawElement[], type: "elementBackground" | "elementStroke") => string[];
|
|
5
|
+
export declare const ColorPicker: ({ type, color, onChange, label, isActive, setActive, elements, appState, }: {
|
|
6
|
+
type: "canvasBackground" | "elementBackground" | "elementStroke";
|
|
7
|
+
color: string | null;
|
|
8
|
+
onChange: (color: string) => void;
|
|
9
|
+
label: string;
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
setActive: (active: boolean) => void;
|
|
12
|
+
elements: readonly ExcalidrawElement[];
|
|
13
|
+
appState: AppState;
|
|
14
|
+
}) => JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DialogProps } from "./Dialog";
|
|
2
|
-
import "./ConfirmDialog.scss";
|
|
3
|
-
interface Props extends Omit<DialogProps, "onCloseRequest"> {
|
|
4
|
-
onConfirm: () => void;
|
|
5
|
-
onCancel: () => void;
|
|
6
|
-
confirmText?: string;
|
|
7
|
-
cancelText?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const ConfirmDialog: (props: Props) => JSX.Element;
|
|
10
|
-
export default ConfirmDialog;
|
|
1
|
+
import { DialogProps } from "./Dialog";
|
|
2
|
+
import "./ConfirmDialog.scss";
|
|
3
|
+
interface Props extends Omit<DialogProps, "onCloseRequest"> {
|
|
4
|
+
onConfirm: () => void;
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
confirmText?: string;
|
|
7
|
+
cancelText?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ConfirmDialog: (props: Props) => JSX.Element;
|
|
10
|
+
export default ConfirmDialog;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import "./ContextMenu.scss";
|
|
2
|
-
import { Action } from "../actions/types";
|
|
3
|
-
import { ActionManager } from "../actions/manager";
|
|
4
|
-
import { AppState } from "../types";
|
|
5
|
-
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
6
|
-
export declare type ContextMenuOption = "separator" | Action;
|
|
7
|
-
declare type ContextMenuProps = {
|
|
8
|
-
options: ContextMenuOption[];
|
|
9
|
-
onCloseRequest?(): void;
|
|
10
|
-
top: number;
|
|
11
|
-
left: number;
|
|
12
|
-
actionManager: ActionManager;
|
|
13
|
-
appState: Readonly<AppState>;
|
|
14
|
-
elements: readonly NonDeletedExcalidrawElement[];
|
|
15
|
-
};
|
|
16
|
-
declare type ContextMenuParams = {
|
|
17
|
-
options: (ContextMenuOption | false | null | undefined)[];
|
|
18
|
-
top: ContextMenuProps["top"];
|
|
19
|
-
left: ContextMenuProps["left"];
|
|
20
|
-
actionManager: ContextMenuProps["actionManager"];
|
|
21
|
-
appState: Readonly<AppState>;
|
|
22
|
-
container: HTMLElement;
|
|
23
|
-
elements: readonly NonDeletedExcalidrawElement[];
|
|
24
|
-
};
|
|
25
|
-
declare const _default: {
|
|
26
|
-
push(params: ContextMenuParams): void;
|
|
27
|
-
};
|
|
28
|
-
export default _default;
|
|
1
|
+
import "./ContextMenu.scss";
|
|
2
|
+
import { Action } from "../actions/types";
|
|
3
|
+
import { ActionManager } from "../actions/manager";
|
|
4
|
+
import { AppState } from "../types";
|
|
5
|
+
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
6
|
+
export declare type ContextMenuOption = "separator" | Action;
|
|
7
|
+
declare type ContextMenuProps = {
|
|
8
|
+
options: ContextMenuOption[];
|
|
9
|
+
onCloseRequest?(): void;
|
|
10
|
+
top: number;
|
|
11
|
+
left: number;
|
|
12
|
+
actionManager: ActionManager;
|
|
13
|
+
appState: Readonly<AppState>;
|
|
14
|
+
elements: readonly NonDeletedExcalidrawElement[];
|
|
15
|
+
};
|
|
16
|
+
declare type ContextMenuParams = {
|
|
17
|
+
options: (ContextMenuOption | false | null | undefined)[];
|
|
18
|
+
top: ContextMenuProps["top"];
|
|
19
|
+
left: ContextMenuProps["left"];
|
|
20
|
+
actionManager: ContextMenuProps["actionManager"];
|
|
21
|
+
appState: Readonly<AppState>;
|
|
22
|
+
container: HTMLElement;
|
|
23
|
+
elements: readonly NonDeletedExcalidrawElement[];
|
|
24
|
+
};
|
|
25
|
+
declare const _default: {
|
|
26
|
+
push(params: ContextMenuParams): void;
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./ToolIcon.scss";
|
|
2
|
-
import { Theme } from "../element/types";
|
|
3
|
-
export declare const DarkModeToggle: (props: {
|
|
4
|
-
value: Theme;
|
|
5
|
-
onChange: (value: Theme) => void;
|
|
6
|
-
title?: string | undefined;
|
|
7
|
-
}) => JSX.Element;
|
|
1
|
+
import "./ToolIcon.scss";
|
|
2
|
+
import { Theme } from "../element/types";
|
|
3
|
+
export declare const DarkModeToggle: (props: {
|
|
4
|
+
value: Theme;
|
|
5
|
+
onChange: (value: Theme) => void;
|
|
6
|
+
title?: string | undefined;
|
|
7
|
+
}) => JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./Dialog.scss";
|
|
3
|
-
import { AppState } from "../types";
|
|
4
|
-
export interface DialogProps {
|
|
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
|
-
closeOnClickOutside?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const Dialog: (props: DialogProps) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Dialog.scss";
|
|
3
|
+
import { AppState } from "../types";
|
|
4
|
+
export interface DialogProps {
|
|
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
|
+
closeOnClickOutside?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Dialog: (props: DialogProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import "./DialogActionButton.scss";
|
|
3
|
+
interface DialogActionButtonProps {
|
|
4
|
+
label: string;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
actionType?: "primary" | "danger";
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const DialogActionButton: ({ label, onClick, className, children, actionType, type, isLoading, ...rest }: DialogActionButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>) => JSX.Element;
|
|
10
|
+
export default DialogActionButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ErrorDialog: ({ message, onClose, }: {
|
|
2
|
-
message: string;
|
|
3
|
-
onClose?: (() => void) | undefined;
|
|
4
|
-
}) => JSX.Element;
|
|
1
|
+
export declare const ErrorDialog: ({ message, onClose, }: {
|
|
2
|
+
message: string;
|
|
3
|
+
onClose?: (() => void) | undefined;
|
|
4
|
+
}) => JSX.Element;
|
|
@@ -1,9 +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 {};
|
|
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
|
+
import { ActionManager } from "../actions/manager";
|
|
2
|
+
import { AppState, ExcalidrawProps } from "../types";
|
|
3
|
+
declare const Footer: ({ appState, actionManager, renderCustomFooter, showExitZenModeBtn, renderWelcomeScreen, }: {
|
|
4
|
+
appState: AppState;
|
|
5
|
+
actionManager: ActionManager;
|
|
6
|
+
renderCustomFooter?: ExcalidrawProps["renderFooter"];
|
|
7
|
+
showExitZenModeBtn: boolean;
|
|
8
|
+
renderWelcomeScreen: boolean;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export default Footer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./HelpDialog.scss";
|
|
2
|
-
export declare const HelpDialog: ({ onClose }: {
|
|
3
|
-
onClose?: (() => void) | undefined;
|
|
4
|
-
}) => JSX.Element;
|
|
1
|
+
import "./HelpDialog.scss";
|
|
2
|
+
export declare const HelpDialog: ({ onClose }: {
|
|
3
|
+
onClose?: (() => void) | undefined;
|
|
4
|
+
}) => JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
2
|
-
import "./HintViewer.scss";
|
|
3
|
-
import { AppState } from "../types";
|
|
4
|
-
interface HintViewerProps {
|
|
5
|
-
appState: AppState;
|
|
6
|
-
elements: readonly NonDeletedExcalidrawElement[];
|
|
7
|
-
isMobile: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export {};
|
|
1
|
+
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
2
|
+
import "./HintViewer.scss";
|
|
3
|
+
import { AppState, Device } from "../types";
|
|
4
|
+
interface HintViewerProps {
|
|
5
|
+
appState: AppState;
|
|
6
|
+
elements: readonly NonDeletedExcalidrawElement[];
|
|
7
|
+
isMobile: boolean;
|
|
8
|
+
device: Device;
|
|
9
|
+
}
|
|
10
|
+
export declare const HintViewer: ({ appState, elements, isMobile, device, }: HintViewerProps) => JSX.Element | null;
|
|
11
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./IconPicker.scss";
|
|
2
|
-
export declare function IconPicker<T>({ value, label, options, onChange, group, }: {
|
|
3
|
-
label: string;
|
|
4
|
-
value: T;
|
|
5
|
-
options: {
|
|
6
|
-
value: T;
|
|
7
|
-
text: string;
|
|
8
|
-
icon: JSX.Element;
|
|
9
|
-
keyBinding: string;
|
|
10
|
-
}[];
|
|
11
|
-
onChange: (value: T) => void;
|
|
12
|
-
group?: string;
|
|
13
|
-
}): JSX.Element;
|
|
1
|
+
import "./IconPicker.scss";
|
|
2
|
+
export declare function IconPicker<T>({ value, label, options, onChange, group, }: {
|
|
3
|
+
label: string;
|
|
4
|
+
value: T;
|
|
5
|
+
options: {
|
|
6
|
+
value: T;
|
|
7
|
+
text: string;
|
|
8
|
+
icon: JSX.Element;
|
|
9
|
+
keyBinding: string;
|
|
10
|
+
}[];
|
|
11
|
+
onChange: (value: T) => void;
|
|
12
|
+
group?: string;
|
|
13
|
+
}): JSX.Element;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
export declare
|
|
7
|
-
export declare
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
3
|
+
import { AppState, BinaryFiles } from "../types";
|
|
4
|
+
import "./ExportDialog.scss";
|
|
5
|
+
import { ActionManager } from "../actions/manager";
|
|
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, setAppState, files, exportPadding, actionManager, onExportToPng, onExportToSvg, onExportToClipboard, }: {
|
|
9
|
+
appState: AppState;
|
|
10
|
+
setAppState: React.Component<any, AppState>["setState"];
|
|
11
|
+
elements: readonly NonDeletedExcalidrawElement[];
|
|
12
|
+
files: BinaryFiles;
|
|
13
|
+
exportPadding?: number | undefined;
|
|
14
|
+
actionManager: ActionManager;
|
|
15
|
+
onExportToPng: ExportCB;
|
|
16
|
+
onExportToSvg: ExportCB;
|
|
17
|
+
onExportToClipboard: ExportCB;
|
|
18
|
+
}) => JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Language } from "../i18n";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Language } from "../i18n";
|
|
3
|
+
import { Theme } from "../element/types";
|
|
4
|
+
interface Props {
|
|
5
|
+
langCode: Language["code"];
|
|
6
|
+
children: React.ReactElement;
|
|
7
|
+
theme?: Theme;
|
|
8
|
+
}
|
|
9
|
+
export declare const InitializeApp: (props: Props) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,10 +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 {};
|
|
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 {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
2
|
-
import { AppState,
|
|
3
|
-
import "./ExportDialog.scss";
|
|
4
|
-
import { ActionManager } from "../actions/manager";
|
|
5
|
-
export declare type ExportCB = (elements: readonly NonDeletedExcalidrawElement[], scale?: number) => void;
|
|
6
|
-
export declare const JSONExportDialog: ({ elements, appState, files, actionManager, exportOpts, canvas, }: {
|
|
7
|
-
elements: readonly NonDeletedExcalidrawElement[];
|
|
8
|
-
appState: AppState;
|
|
9
|
-
files: BinaryFiles;
|
|
10
|
-
actionManager: ActionManager;
|
|
11
|
-
exportOpts:
|
|
12
|
-
canvas: HTMLCanvasElement | null;
|
|
13
|
-
}) => JSX.Element;
|
|
1
|
+
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
2
|
+
import { AppState, ExportOpts, BinaryFiles } from "../types";
|
|
3
|
+
import "./ExportDialog.scss";
|
|
4
|
+
import { ActionManager } from "../actions/manager";
|
|
5
|
+
export declare type ExportCB = (elements: readonly NonDeletedExcalidrawElement[], scale?: number) => void;
|
|
6
|
+
export declare const JSONExportDialog: ({ elements, appState, files, actionManager, exportOpts, canvas, }: {
|
|
7
|
+
elements: readonly NonDeletedExcalidrawElement[];
|
|
8
|
+
appState: AppState;
|
|
9
|
+
files: BinaryFiles;
|
|
10
|
+
actionManager: ActionManager;
|
|
11
|
+
exportOpts: ExportOpts;
|
|
12
|
+
canvas: HTMLCanvasElement | null;
|
|
13
|
+
}) => JSX.Element;
|
|
@@ -1,38 +1,40 @@
|
|
|
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, BinaryFiles } from "../types";
|
|
6
|
-
import Library from "../data/library";
|
|
7
|
-
import "./LayerUI.scss";
|
|
8
|
-
import "./Toolbar.scss";
|
|
9
|
-
interface LayerUIProps {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ActionManager } from "../actions/manager";
|
|
3
|
+
import { NonDeletedExcalidrawElement, Theme } from "../element/types";
|
|
4
|
+
import { Language } from "../i18n";
|
|
5
|
+
import { AppProps, AppState, ExcalidrawProps, BinaryFiles } from "../types";
|
|
6
|
+
import Library from "../data/library";
|
|
7
|
+
import "./LayerUI.scss";
|
|
8
|
+
import "./Toolbar.scss";
|
|
9
|
+
interface LayerUIProps {
|
|
10
|
+
actionManager: ActionManager;
|
|
11
|
+
appState: AppState;
|
|
12
|
+
files: BinaryFiles;
|
|
13
|
+
canvas: HTMLCanvasElement | null;
|
|
14
|
+
setAppState: React.Component<any, AppState>["setState"];
|
|
15
|
+
elements: readonly NonDeletedExcalidrawElement[];
|
|
16
|
+
onCollabButtonClick?: () => void;
|
|
17
|
+
onLockToggle: () => void;
|
|
18
|
+
onPenModeToggle: () => void;
|
|
19
|
+
onInsertElements: (elements: readonly NonDeletedExcalidrawElement[]) => void;
|
|
20
|
+
showExitZenModeBtn: boolean;
|
|
21
|
+
langCode: Language["code"];
|
|
22
|
+
isCollaborating: boolean;
|
|
23
|
+
renderTopRightUI?: ExcalidrawProps["renderTopRightUI"];
|
|
24
|
+
renderCustomFooter?: ExcalidrawProps["renderFooter"];
|
|
25
|
+
renderCustomStats?: ExcalidrawProps["renderCustomStats"];
|
|
26
|
+
renderCustomSidebar?: ExcalidrawProps["renderSidebar"];
|
|
27
|
+
libraryReturnUrl: ExcalidrawProps["libraryReturnUrl"];
|
|
28
|
+
UIOptions: AppProps["UIOptions"];
|
|
29
|
+
focusContainer: () => void;
|
|
30
|
+
library: Library;
|
|
31
|
+
id: string;
|
|
32
|
+
onImageAction: (data: {
|
|
33
|
+
insertOnCanvasDirectly: boolean;
|
|
34
|
+
}) => void;
|
|
35
|
+
renderWelcomeScreen: boolean;
|
|
36
|
+
onHomeButtonClick: () => void;
|
|
37
|
+
onThemeToggle: (theme: Theme) => void;
|
|
38
|
+
}
|
|
39
|
+
declare const _default: React.MemoExoticComponent<({ actionManager, appState, files, setAppState, elements, canvas, onCollabButtonClick, onLockToggle, onPenModeToggle, onInsertElements, showExitZenModeBtn, isCollaborating, renderTopRightUI, renderCustomFooter, renderCustomStats, renderCustomSidebar, libraryReturnUrl, UIOptions, focusContainer, library, id, onImageAction, renderWelcomeScreen, onHomeButtonClick, onThemeToggle, }: LayerUIProps) => JSX.Element>;
|
|
40
|
+
export default _default;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AppState } from "../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AppState } from "../types";
|
|
3
|
+
import "./LibraryButton.scss";
|
|
4
|
+
export declare const LibraryButton: React.FC<{
|
|
5
|
+
appState: AppState;
|
|
6
|
+
setAppState: React.Component<any, AppState>["setState"];
|
|
7
|
+
isMobile?: boolean;
|
|
8
|
+
}>;
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}) => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import Library from "../data/library";
|
|
3
|
+
import { LibraryItems, LibraryItem, AppState, ExcalidrawProps } from "../types";
|
|
4
|
+
import "./LibraryMenu.scss";
|
|
5
|
+
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
6
|
+
export declare const LibraryMenuContent: ({ onInsertLibraryItems, pendingElements, onAddToLibrary, setAppState, libraryReturnUrl, library, id, appState, selectedItems, onSelectItems, }: {
|
|
7
|
+
pendingElements: LibraryItem["elements"];
|
|
8
|
+
onInsertLibraryItems: (libraryItems: LibraryItems) => void;
|
|
9
|
+
onAddToLibrary: () => void;
|
|
10
|
+
setAppState: React.Component<any, AppState>["setState"];
|
|
11
|
+
libraryReturnUrl: ExcalidrawProps["libraryReturnUrl"];
|
|
12
|
+
library: Library;
|
|
13
|
+
id: string;
|
|
14
|
+
appState: AppState;
|
|
15
|
+
selectedItems: LibraryItem["id"][];
|
|
16
|
+
onSelectItems: (id: LibraryItem["id"][]) => void;
|
|
17
|
+
}) => JSX.Element;
|
|
18
|
+
export declare const LibraryMenu: React.FC<{
|
|
19
|
+
appState: AppState;
|
|
20
|
+
onInsertElements: (elements: readonly NonDeletedExcalidrawElement[]) => void;
|
|
21
|
+
libraryReturnUrl: ExcalidrawProps["libraryReturnUrl"];
|
|
22
|
+
focusContainer: () => void;
|
|
23
|
+
library: Library;
|
|
24
|
+
id: string;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AppState, ExcalidrawProps } from "../types";
|
|
2
|
+
declare const LibraryMenuBrowseButton: ({ theme, id, libraryReturnUrl, }: {
|
|
3
|
+
libraryReturnUrl: ExcalidrawProps["libraryReturnUrl"];
|
|
4
|
+
theme: AppState["theme"];
|
|
5
|
+
id: string;
|
|
6
|
+
}) => JSX.Element;
|
|
7
|
+
export default LibraryMenuBrowseButton;
|