@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
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Library from "../data/library";
|
|
3
|
+
import { AppState, LibraryItem } from "../types";
|
|
4
|
+
export declare const LibraryMenuHeader: React.FC<{
|
|
5
|
+
setAppState: React.Component<any, AppState>["setState"];
|
|
6
|
+
selectedItems: LibraryItem["id"][];
|
|
7
|
+
library: Library;
|
|
8
|
+
onRemoveFromLibrary: () => void;
|
|
9
|
+
resetLibrary: () => void;
|
|
10
|
+
onSelectItems: (items: LibraryItem["id"][]) => void;
|
|
11
|
+
appState: AppState;
|
|
12
|
+
}>;
|
|
@@ -1,24 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
libraryItems: LibraryItems;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
theme: AppState["theme"];
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
libraryReturnUrl: ExcalidrawProps["libraryReturnUrl"];
|
|
17
|
-
library: Library;
|
|
18
|
-
id: string;
|
|
19
|
-
selectedItems: LibraryItem["id"][];
|
|
20
|
-
onSelectItems: (id: LibraryItem["id"][]) => void;
|
|
21
|
-
onPublish: () => void;
|
|
22
|
-
resetLibrary: () => void;
|
|
23
|
-
}) => JSX.Element;
|
|
24
|
-
export default LibraryMenuItems;
|
|
1
|
+
import { AppState, ExcalidrawProps, LibraryItem, LibraryItems } from "../types";
|
|
2
|
+
import "./LibraryMenuItems.scss";
|
|
3
|
+
declare const LibraryMenuItems: ({ isLoading, libraryItems, onAddToLibrary, onInsertLibraryItems, pendingElements, selectedItems, onSelectItems, theme, id, libraryReturnUrl, }: {
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
libraryItems: LibraryItems;
|
|
6
|
+
pendingElements: LibraryItem["elements"];
|
|
7
|
+
onInsertLibraryItems: (libraryItems: LibraryItems) => void;
|
|
8
|
+
onAddToLibrary: (elements: LibraryItem["elements"]) => void;
|
|
9
|
+
selectedItems: LibraryItem["id"][];
|
|
10
|
+
onSelectItems: (id: LibraryItem["id"][]) => void;
|
|
11
|
+
libraryReturnUrl: ExcalidrawProps["libraryReturnUrl"];
|
|
12
|
+
theme: AppState["theme"];
|
|
13
|
+
id: string;
|
|
14
|
+
}) => JSX.Element;
|
|
15
|
+
export default LibraryMenuItems;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./LibraryUnit.scss";
|
|
3
|
-
export declare const LibraryUnit: ({ id, elements,
|
|
4
|
-
id: LibraryItem["id"] | /** for pending item */ null;
|
|
5
|
-
elements?: readonly import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | undefined;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}) => JSX.Element;
|
|
1
|
+
import { LibraryItem } from "../types";
|
|
2
|
+
import "./LibraryUnit.scss";
|
|
3
|
+
export declare const LibraryUnit: ({ id, elements, isPending, onClick, selected, onToggle, onDrag, }: {
|
|
4
|
+
id: LibraryItem["id"] | /** for pending item */ null;
|
|
5
|
+
elements?: readonly import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | undefined;
|
|
6
|
+
isPending?: boolean | undefined;
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
selected: boolean;
|
|
9
|
+
onToggle: (id: string, event: React.MouseEvent) => void;
|
|
10
|
+
onDrag: (id: string, event: React.DragEvent) => void;
|
|
11
|
+
}) => JSX.Element;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Theme } from "../element/types";
|
|
3
|
+
export declare const LoadingMessage: React.FC<{
|
|
4
|
+
delay?: number;
|
|
5
|
+
theme?: Theme;
|
|
6
|
+
}>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./ToolIcon.scss";
|
|
2
|
-
declare type LockIconProps = {
|
|
3
|
-
title?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
checked: boolean;
|
|
6
|
-
onChange?(): void;
|
|
7
|
-
zenModeEnabled?: boolean;
|
|
8
|
-
isMobile?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare const LockButton: (props: LockIconProps) => JSX.Element;
|
|
11
|
-
export {};
|
|
1
|
+
import "./ToolIcon.scss";
|
|
2
|
+
declare type LockIconProps = {
|
|
3
|
+
title?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
onChange?(): void;
|
|
7
|
+
zenModeEnabled?: boolean;
|
|
8
|
+
isMobile?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const LockButton: (props: LockIconProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./Menu.scss";
|
|
2
|
+
interface MenuProps {
|
|
3
|
+
icon: JSX.Element;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
label: string;
|
|
6
|
+
dataTestId: string;
|
|
7
|
+
shortcut?: string;
|
|
8
|
+
isCollaborating?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const MenuItem: ({ icon, onClick, label, dataTestId, shortcut, isCollaborating, }: MenuProps) => JSX.Element;
|
|
11
|
+
export default MenuItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Separator: () => JSX.Element;
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { ActionManager } from "../actions/manager";
|
|
4
|
-
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
5
|
-
declare type MobileMenuProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AppState, Device, ExcalidrawProps } from "../types";
|
|
3
|
+
import { ActionManager } from "../actions/manager";
|
|
4
|
+
import { NonDeletedExcalidrawElement, Theme } from "../element/types";
|
|
5
|
+
declare type MobileMenuProps = {
|
|
6
|
+
appState: AppState;
|
|
7
|
+
actionManager: ActionManager;
|
|
8
|
+
renderJSONExportDialog: () => React.ReactNode;
|
|
9
|
+
renderImageExportDialog: () => React.ReactNode;
|
|
10
|
+
setAppState: React.Component<any, AppState>["setState"];
|
|
11
|
+
elements: readonly NonDeletedExcalidrawElement[];
|
|
12
|
+
onCollabButtonClick?: () => void;
|
|
13
|
+
onLockToggle: () => void;
|
|
14
|
+
onPenModeToggle: () => void;
|
|
15
|
+
canvas: HTMLCanvasElement | null;
|
|
16
|
+
isCollaborating: boolean;
|
|
17
|
+
renderCustomFooter?: (isMobile: boolean, appState: AppState) => JSX.Element | null;
|
|
18
|
+
onImageAction: (data: {
|
|
19
|
+
insertOnCanvasDirectly: boolean;
|
|
20
|
+
}) => void;
|
|
21
|
+
renderTopRightUI?: (isMobile: boolean, appState: AppState) => JSX.Element | null;
|
|
22
|
+
renderCustomStats?: ExcalidrawProps["renderCustomStats"];
|
|
23
|
+
renderSidebars: () => JSX.Element | null;
|
|
24
|
+
device: Device;
|
|
25
|
+
renderWelcomeScreen?: boolean;
|
|
26
|
+
onHomeButtonClick: () => void;
|
|
27
|
+
onThemeToggle: (theme: Theme) => void;
|
|
28
|
+
};
|
|
29
|
+
export declare const MobileMenu: ({ appState, elements, actionManager, renderJSONExportDialog, renderImageExportDialog, setAppState, onCollabButtonClick, onLockToggle, onPenModeToggle, canvas, isCollaborating, renderCustomFooter, onImageAction, renderTopRightUI, renderCustomStats, renderSidebars, device, renderWelcomeScreen, onHomeButtonClick, onThemeToggle, }: MobileMenuProps) => JSX.Element;
|
|
30
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./Modal.scss";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { AppState } from "../types";
|
|
4
|
-
export declare const Modal: React.FC<{
|
|
5
|
-
className?: string;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
maxWidth?: number;
|
|
8
|
-
onCloseRequest(): void;
|
|
9
|
-
labelledBy: string;
|
|
10
|
-
theme?: AppState["theme"];
|
|
11
|
-
closeOnClickOutside?: boolean;
|
|
12
|
-
}>;
|
|
1
|
+
import "./Modal.scss";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AppState } from "../types";
|
|
4
|
+
export declare const Modal: React.FC<{
|
|
5
|
+
className?: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
maxWidth?: number;
|
|
8
|
+
onCloseRequest(): void;
|
|
9
|
+
labelledBy: string;
|
|
10
|
+
theme?: AppState["theme"];
|
|
11
|
+
closeOnClickOutside?: boolean;
|
|
12
|
+
}>;
|
|
@@ -1,9 +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["elements"]) => void;
|
|
9
|
-
}) => JSX.Element;
|
|
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["elements"]) => void;
|
|
9
|
+
}) => JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./ToolIcon.scss";
|
|
2
|
-
declare type PenModeIconProps = {
|
|
3
|
-
title?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
checked: boolean;
|
|
6
|
-
onChange?(): void;
|
|
7
|
-
zenModeEnabled?: boolean;
|
|
8
|
-
isMobile?: boolean;
|
|
9
|
-
penDetected: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare const PenModeButton: (props: PenModeIconProps) => JSX.Element | null;
|
|
12
|
-
export {};
|
|
1
|
+
import "./ToolIcon.scss";
|
|
2
|
+
declare type PenModeIconProps = {
|
|
3
|
+
title?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
onChange?(): void;
|
|
7
|
+
zenModeEnabled?: boolean;
|
|
8
|
+
isMobile?: boolean;
|
|
9
|
+
penDetected: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const PenModeButton: (props: PenModeIconProps) => JSX.Element | null;
|
|
12
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
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
|
-
offsetLeft?: number;
|
|
10
|
-
offsetTop?: number;
|
|
11
|
-
viewportWidth?: number;
|
|
12
|
-
viewportHeight?: number;
|
|
13
|
-
};
|
|
14
|
-
export declare const Popover: ({ children, left, top, onCloseRequest, fitInViewport, offsetLeft, offsetTop, viewportWidth, viewportHeight, }: Props) => JSX.Element;
|
|
15
|
-
export {};
|
|
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
|
+
offsetLeft?: number;
|
|
10
|
+
offsetTop?: number;
|
|
11
|
+
viewportWidth?: number;
|
|
12
|
+
viewportHeight?: number;
|
|
13
|
+
};
|
|
14
|
+
export declare const Popover: ({ children, left, top, onCloseRequest, fitInViewport, offsetLeft, offsetTop, viewportWidth, viewportHeight, }: Props) => JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./TextInput.scss";
|
|
2
|
-
import "./ProjectName.scss";
|
|
3
|
-
declare type Props = {
|
|
4
|
-
value: string;
|
|
5
|
-
onChange: (value: string) => void;
|
|
6
|
-
label: string;
|
|
7
|
-
isNameEditable: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const ProjectName: (props: Props) => JSX.Element;
|
|
10
|
-
export {};
|
|
1
|
+
import "./TextInput.scss";
|
|
2
|
+
import "./ProjectName.scss";
|
|
3
|
+
declare type Props = {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
label: string;
|
|
7
|
+
isNameEditable: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const ProjectName: (props: Props) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { AppState, LibraryItems } from "../types";
|
|
2
|
-
import "./PublishLibrary.scss";
|
|
3
|
-
declare const PublishLibrary: ({ onClose, libraryItems, appState, onSuccess, onError, updateItemsInStorage, onRemove, }: {
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
libraryItems: LibraryItems;
|
|
6
|
-
appState: AppState;
|
|
7
|
-
onSuccess: (data: {
|
|
8
|
-
url: string;
|
|
9
|
-
authorName: string;
|
|
10
|
-
items: LibraryItems;
|
|
11
|
-
}) => void;
|
|
12
|
-
onError: (error: Error) => void;
|
|
13
|
-
updateItemsInStorage: (items: LibraryItems) => void;
|
|
14
|
-
onRemove: (id: string) => void;
|
|
15
|
-
}) => JSX.Element;
|
|
16
|
-
export default PublishLibrary;
|
|
1
|
+
import { AppState, LibraryItems } from "../types";
|
|
2
|
+
import "./PublishLibrary.scss";
|
|
3
|
+
declare const PublishLibrary: ({ onClose, libraryItems, appState, onSuccess, onError, updateItemsInStorage, onRemove, }: {
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
libraryItems: LibraryItems;
|
|
6
|
+
appState: AppState;
|
|
7
|
+
onSuccess: (data: {
|
|
8
|
+
url: string;
|
|
9
|
+
authorName: string;
|
|
10
|
+
items: LibraryItems;
|
|
11
|
+
}) => void;
|
|
12
|
+
onError: (error: Error) => void;
|
|
13
|
+
updateItemsInStorage: (items: LibraryItems) => void;
|
|
14
|
+
onRemove: (id: string) => void;
|
|
15
|
+
}) => JSX.Element;
|
|
16
|
+
export default PublishLibrary;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare const Section: React.FC<{
|
|
3
|
-
heading: string;
|
|
4
|
-
children?: React.ReactNode | ((heading: React.ReactNode) => React.ReactNode);
|
|
5
|
-
className?: string;
|
|
6
|
-
}>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const Section: React.FC<{
|
|
3
|
+
heading: string;
|
|
4
|
+
children?: React.ReactNode | ((heading: React.ReactNode) => React.ReactNode);
|
|
5
|
+
className?: string;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./Sidebar.scss";
|
|
3
|
+
/** using a counter instead of boolean to handle race conditions where
|
|
4
|
+
* the host app may render (mount/unmount) multiple different sidebar */
|
|
5
|
+
export declare const hostSidebarCountersAtom: import("jotai").Atom<{
|
|
6
|
+
rendered: number;
|
|
7
|
+
docked: number;
|
|
8
|
+
}> & {
|
|
9
|
+
write: (get: {
|
|
10
|
+
<Value>(atom: import("jotai").Atom<Value | Promise<Value>>): Value;
|
|
11
|
+
<Value_1>(atom: import("jotai").Atom<Promise<Value_1>>): Value_1;
|
|
12
|
+
<Value_2>(atom: import("jotai").Atom<Value_2>): Value_2 extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2;
|
|
13
|
+
} & {
|
|
14
|
+
<Value_3>(atom: import("jotai").Atom<Value_3 | Promise<Value_3>>, options: {
|
|
15
|
+
unstable_promise: true;
|
|
16
|
+
}): Value_3 | Promise<Value_3>;
|
|
17
|
+
<Value_4>(atom: import("jotai").Atom<Promise<Value_4>>, options: {
|
|
18
|
+
unstable_promise: true;
|
|
19
|
+
}): Value_4 | Promise<Value_4>;
|
|
20
|
+
<Value_5>(atom: import("jotai").Atom<Value_5>, options: {
|
|
21
|
+
unstable_promise: true;
|
|
22
|
+
}): (Value_5 extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? any : V : V : V : V : V : V : V : V : V : V : Value_5) | Promise<Value_5 extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? any : V : V : V : V : V : V : V : V : V : V : Value_5>;
|
|
23
|
+
}, set: {
|
|
24
|
+
<Value_6, Result extends void | Promise<void>>(atom: import("jotai").WritableAtom<Value_6, undefined, Result>): Result;
|
|
25
|
+
<Value_7, Update, Result_1 extends void | Promise<void>>(atom: import("jotai").WritableAtom<Value_7, Update, Result_1>, update: Update): Result_1;
|
|
26
|
+
}, update: {
|
|
27
|
+
rendered: number;
|
|
28
|
+
docked: number;
|
|
29
|
+
} | ((prev: {
|
|
30
|
+
rendered: number;
|
|
31
|
+
docked: number;
|
|
32
|
+
}) => {
|
|
33
|
+
rendered: number;
|
|
34
|
+
docked: number;
|
|
35
|
+
})) => void;
|
|
36
|
+
onMount?: (<S extends (update: {
|
|
37
|
+
rendered: number;
|
|
38
|
+
docked: number;
|
|
39
|
+
} | ((prev: {
|
|
40
|
+
rendered: number;
|
|
41
|
+
docked: number;
|
|
42
|
+
}) => {
|
|
43
|
+
rendered: number;
|
|
44
|
+
docked: number;
|
|
45
|
+
})) => void>(setAtom: S) => void | (() => void)) | undefined;
|
|
46
|
+
} & {
|
|
47
|
+
init: {
|
|
48
|
+
rendered: number;
|
|
49
|
+
docked: number;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare const Sidebar: import("react").ForwardRefExoticComponent<{
|
|
53
|
+
children: import("react").ReactNode;
|
|
54
|
+
onClose?: (() => boolean | void) | undefined;
|
|
55
|
+
onDock?: ((docked: boolean) => void) | undefined;
|
|
56
|
+
docked?: boolean | undefined;
|
|
57
|
+
initialDockedState?: boolean | undefined;
|
|
58
|
+
dockable?: boolean | undefined;
|
|
59
|
+
className?: string | undefined;
|
|
60
|
+
} & {
|
|
61
|
+
/** @private internal */
|
|
62
|
+
__isInternal?: boolean | undefined;
|
|
63
|
+
} & import("react").RefAttributes<HTMLDivElement>> & {
|
|
64
|
+
Header: {
|
|
65
|
+
(props: {
|
|
66
|
+
children?: import("react").ReactNode;
|
|
67
|
+
className?: string | undefined;
|
|
68
|
+
} & {
|
|
69
|
+
__isFallback?: boolean | undefined;
|
|
70
|
+
}): JSX.Element | null;
|
|
71
|
+
displayName: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SidebarDockButton: (props: {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
onChange?(): void;
|
|
5
|
+
}) => JSX.Element;
|
|
6
|
+
/** @private */
|
|
7
|
+
export declare const SidebarHeaderComponents: {
|
|
8
|
+
Context: import("react").FC<{
|
|
9
|
+
children: import("react").ReactNode;
|
|
10
|
+
}>;
|
|
11
|
+
Component: {
|
|
12
|
+
(props: {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
className?: string | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
__isFallback?: boolean | undefined;
|
|
17
|
+
}): JSX.Element | null;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare type SidebarProps<P = {}> = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* Called on sidebar close (either by user action or by the editor).
|
|
6
|
+
*/
|
|
7
|
+
onClose?: () => void | boolean;
|
|
8
|
+
/** if not supplied, sidebar won't be dockable */
|
|
9
|
+
onDock?: (docked: boolean) => void;
|
|
10
|
+
docked?: boolean;
|
|
11
|
+
initialDockedState?: boolean;
|
|
12
|
+
dockable?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
} & P;
|
|
15
|
+
export declare type SidebarPropsContextValue = Pick<SidebarProps, "onClose" | "onDock" | "docked" | "dockable">;
|
|
16
|
+
export declare const SidebarPropsContext: React.Context<SidebarPropsContextValue>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AppState, LibraryItem } from "../types";
|
|
2
|
-
import "./SingleLibraryItem.scss";
|
|
3
|
-
declare const SingleLibraryItem: ({ libItem, appState, index, onChange, onRemove, }: {
|
|
4
|
-
libItem: LibraryItem;
|
|
5
|
-
appState: AppState;
|
|
6
|
-
index: number;
|
|
7
|
-
onChange: (val: string, index: number) => void;
|
|
8
|
-
onRemove: (id: string) => void;
|
|
9
|
-
}) => JSX.Element;
|
|
10
|
-
export default SingleLibraryItem;
|
|
1
|
+
import { AppState, LibraryItem } from "../types";
|
|
2
|
+
import "./SingleLibraryItem.scss";
|
|
3
|
+
declare const SingleLibraryItem: ({ libItem, appState, index, onChange, onRemove, }: {
|
|
4
|
+
libItem: LibraryItem;
|
|
5
|
+
appState: AppState;
|
|
6
|
+
index: number;
|
|
7
|
+
onChange: (val: string, index: number) => void;
|
|
8
|
+
onRemove: (id: string) => void;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export default SingleLibraryItem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./Spinner.scss";
|
|
2
|
-
declare const Spinner: ({ size, circleWidth, }: {
|
|
3
|
-
size?: string | number | undefined;
|
|
4
|
-
circleWidth?: number | undefined;
|
|
5
|
-
}) => JSX.Element;
|
|
6
|
-
export default Spinner;
|
|
1
|
+
import "./Spinner.scss";
|
|
2
|
+
declare const Spinner: ({ size, circleWidth, }: {
|
|
3
|
+
size?: string | number | undefined;
|
|
4
|
+
circleWidth?: number | undefined;
|
|
5
|
+
}) => JSX.Element;
|
|
6
|
+
export default Spinner;
|
|
@@ -1,15 +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, style, }: StackProps) => JSX.Element;
|
|
14
|
-
};
|
|
15
|
-
export default _default;
|
|
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, style, }: StackProps) => JSX.Element;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -1,11 +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
|
|
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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./Toast.scss";
|
|
2
|
-
export declare const Toast: ({ message, onClose, closable, duration, }: {
|
|
3
|
-
message: string;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
closable?: boolean | undefined;
|
|
6
|
-
duration?: number | undefined;
|
|
7
|
-
}) => JSX.Element;
|
|
1
|
+
import "./Toast.scss";
|
|
2
|
+
export declare const Toast: ({ message, onClose, closable, duration, }: {
|
|
3
|
+
message: string;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
closable?: boolean | undefined;
|
|
6
|
+
duration?: number | undefined;
|
|
7
|
+
}) => JSX.Element;
|