@zsviczian/excalidraw 0.10.0-obsidian-8 → 0.10.0-obsidian-12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/be42d56e500bdd14ae50.woff2 +1 -0
- package/dist/edf7912ad1921efb0e5c.woff2 +1 -0
- package/dist/excalidraw-assets-dev/i18n-ar-SA-json-f9621160946455b76462.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-bg-BG-json-b32c761b9a362431e50e.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-bn-BD-json-2a24f83ef592e6073764.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-ca-ES-json-725c81388f2ea66dc8e1.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-cs-CZ-json-b71ad330d7cab164891f.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-da-DK-json-a4983751740d8265c9b3.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-de-DE-json-4b87b0c49ae73d94c893.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-el-GR-json-f4051582ee89b7b94567.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-es-ES-json-5df26820f7b483a03085.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-fa-IR-json-059e1c6403267405a2af.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-fi-FI-json-dd991aae96ac520884d9.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-fr-FR-json-c5c06a48e8e1a46bfc75.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-he-IL-json-58b5a13fbbe5ef7130c8.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-hi-IN-json-00db8d7945755fc1a042.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-hu-HU-json-4b843703a66a790ccd51.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-id-ID-json-593f4a01d1677bdd9914.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-it-IT-json-bb2589d5093a440acc27.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-ja-JP-json-0ca368b7a58f8cc96f77.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-kab-KAB-json-b3364d3ab875a197b9fc.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-kk-KZ-json-92fc286889aafeb15028.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-ko-KR-json-58d8a78f6e0558f31e9d.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-lv-LV-json-d8c07b87bdf17faeffb1.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-my-MM-json-ffceb515ddc074c7d428.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-nb-NO-json-cd2bc4e323e1737e1675.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-nl-NL-json-abecfc48f3cc72659e7c.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-nn-NO-json-69e9b034d6b20edb7022.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-oc-FR-json-b99d37b7bfc69d6e7bfc.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-pa-IN-json-4d08642ff4fd8368690b.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-pl-PL-json-7569e10b0c7a31d97b5b.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-pt-BR-json-575146bbd712bac2d9c0.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-pt-PT-json-e300e374e83ba1221bca.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-ro-RO-json-150126009c54589c7066.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-ru-RU-json-67b2f448a092cb83be9a.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-si-LK-json-51bf4181409d07f46335.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-sk-SK-json-869b94d41c4b845f30aa.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-sv-SE-json-65efb104752478d24a35.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-ta-IN-json-cbb8fa76d764d56c278d.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-tr-TR-json-7938ac27407bec8f0309.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-uk-UA-json-63042833340affcdc97c.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-zh-CN-json-d0ac48294062972815bd.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-zh-HK-json-20c86a43a3497131abc2.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-zh-TW-json-11e2cb1fa396ab4d1b06.js +22 -0
- package/dist/excalidraw-assets-dev/image-821afe7d20de2d2ca898.js +42 -0
- package/dist/excalidraw-assets-dev/{vendor-77fb22e33fe469eed254.js → vendor-a449655791956f151f51.js} +3 -3
- package/dist/excalidraw.development.js +376 -180
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +9 -0
- package/package.json +13 -13
- package/types/actions/manager.d.ts +1 -0
- package/types/actions/types.d.ts +1 -0
- package/types/appState.d.ts +1 -1
- package/types/clipboard.d.ts +2 -0
- package/types/components/Actions.d.ts +1 -0
- package/types/components/App.d.ts +1 -0
- package/types/components/Avatar.d.ts +1 -0
- package/types/components/ButtonIconSelect.d.ts +1 -0
- package/types/components/CheckboxItem.d.ts +1 -0
- package/types/components/ClearCanvas.d.ts +0 -1
- package/types/components/ConfirmDialog.d.ts +11 -0
- package/types/components/ContextMenu.d.ts +2 -0
- package/types/components/Dialog.d.ts +4 -2
- package/types/components/Island.d.ts +1 -0
- package/types/components/JSONExportDialog.d.ts +1 -0
- package/types/components/LayerUI.d.ts +1 -0
- package/types/components/LibraryMenu.d.ts +18 -0
- package/types/components/LibraryMenuItems.d.ts +22 -0
- package/types/components/LibraryUnit.d.ts +6 -4
- package/types/components/MobileMenu.d.ts +1 -0
- package/types/components/Modal.d.ts +1 -0
- package/types/components/PasteChartDialog.d.ts +1 -1
- package/types/components/Popover.d.ts +1 -0
- package/types/components/PublishLibrary.d.ts +17 -0
- package/types/components/Section.d.ts +1 -0
- package/types/components/SingleLibraryItem.d.ts +11 -0
- package/types/components/ToolButton.d.ts +5 -0
- package/types/components/icons.d.ts +2 -0
- package/types/constants.d.ts +1 -0
- package/types/data/blob.d.ts +2 -0
- package/types/data/encryption.d.ts +4 -3
- package/types/data/filesystem.d.ts +3 -2
- package/types/data/json.d.ts +2 -2
- package/types/data/library.d.ts +1 -1
- package/types/data/restore.d.ts +2 -1
- package/types/data/types.d.ts +6 -4
- package/types/element/binding.d.ts +2 -0
- package/types/element/bounds.d.ts +8 -1
- package/types/element/image.d.ts +2 -0
- package/types/element/linearElementEditor.d.ts +1 -0
- package/types/element/textWysiwyg.d.ts +2 -0
- package/types/errors.d.ts +1 -0
- package/types/i18n.d.ts +1 -1
- package/types/keys.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-ar-SA-json-f9621160946455b76462.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-bg-BG-json-b32c761b9a362431e50e.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-bn-BD-json-2a24f83ef592e6073764.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-ca-ES-json-725c81388f2ea66dc8e1.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-cs-CZ-json-b71ad330d7cab164891f.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-da-DK-json-a4983751740d8265c9b3.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-de-DE-json-4b87b0c49ae73d94c893.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-el-GR-json-f4051582ee89b7b94567.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-es-ES-json-5df26820f7b483a03085.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-fa-IR-json-059e1c6403267405a2af.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-fi-FI-json-dd991aae96ac520884d9.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-fr-FR-json-c5c06a48e8e1a46bfc75.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-he-IL-json-58b5a13fbbe5ef7130c8.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-hi-IN-json-00db8d7945755fc1a042.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-hu-HU-json-4b843703a66a790ccd51.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-id-ID-json-593f4a01d1677bdd9914.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-it-IT-json-bb2589d5093a440acc27.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-ja-JP-json-0ca368b7a58f8cc96f77.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-kab-KAB-json-b3364d3ab875a197b9fc.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-kk-KZ-json-92fc286889aafeb15028.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-ko-KR-json-58d8a78f6e0558f31e9d.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-lv-LV-json-d8c07b87bdf17faeffb1.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-my-MM-json-ffceb515ddc074c7d428.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-nb-NO-json-cd2bc4e323e1737e1675.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-nl-NL-json-abecfc48f3cc72659e7c.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-nn-NO-json-69e9b034d6b20edb7022.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-oc-FR-json-b99d37b7bfc69d6e7bfc.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-pa-IN-json-4d08642ff4fd8368690b.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-pl-PL-json-7569e10b0c7a31d97b5b.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-pt-BR-json-575146bbd712bac2d9c0.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-pt-PT-json-e300e374e83ba1221bca.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-ro-RO-json-150126009c54589c7066.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-ru-RU-json-67b2f448a092cb83be9a.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-si-LK-json-51bf4181409d07f46335.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-sk-SK-json-869b94d41c4b845f30aa.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-sv-SE-json-65efb104752478d24a35.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-ta-IN-json-cbb8fa76d764d56c278d.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-tr-TR-json-7938ac27407bec8f0309.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-uk-UA-json-63042833340affcdc97c.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-zh-CN-json-d0ac48294062972815bd.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-zh-HK-json-20c86a43a3497131abc2.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-zh-TW-json-11e2cb1fa396ab4d1b06.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-555eea7174da4b7a8397.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/vendor-7fcb99cece261da4983f.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-baec8918d5115a3055d3.d.ts +0 -0
- package/types/packages/utils.d.ts +4 -2
- package/types/renderer/renderElement.d.ts +3 -1
- package/types/renderer/renderScene.d.ts +4 -1
- package/types/renderer/roundRect.d.ts +1 -0
- package/types/scene/export.d.ts +2 -0
- package/types/scene/scroll.d.ts +2 -0
- package/types/scene/zoom.d.ts +1 -0
- package/types/types.d.ts +16 -1
- package/types/utils.d.ts +4 -0
- package/CHANGELOG.md +0 -769
- package/dist/excalidraw-assets-dev/i18n-ar-SA-json-8a769802ff20ac02ac34.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-bg-BG-json-938f803265b39b6089c6.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-bn-BD-json-7495372d14c854de77e1.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-ca-ES-json-7b84f8e45ce8aebef5ff.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-cs-CZ-json-4299d1be084b3d972377.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-da-DK-json-1c0ef357bf0902a4413a.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-de-DE-json-1d5093a439f5a0528313.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-el-GR-json-3c2a6185c97a013f6855.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-es-ES-json-e23380f642e2298755c4.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-fa-IR-json-0908b9af416943d816fd.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-fi-FI-json-bc7ec68e7c9fcfe90885.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-fr-FR-json-4719cd0d6209bbdded74.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-he-IL-json-d91f3ccc3deb217f83ba.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-hi-IN-json-249fa2a05d7c0009fdcd.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-hu-HU-json-ed76c15c3ea70a527bc0.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-id-ID-json-c50ad2f873784009983b.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-it-IT-json-9809c5e4c8678465e06f.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-ja-JP-json-72b15eb4957f3d7a0e55.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-kab-KAB-json-bcd51a97f3c342acfeb9.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-kk-KZ-json-9d5c427ff01cc573b3f3.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-ko-KR-json-49c992ddd32a8cdae35d.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-lv-LV-json-105e747498b33089e967.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-my-MM-json-42a1ca3883fa8f461d44.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-nb-NO-json-9618bc0cdab1a44fe05d.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-nl-NL-json-54fbad4a33704ebe8f26.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-nn-NO-json-e892a4416948497edbcf.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-oc-FR-json-3cde2a88725b65d9acd3.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-pa-IN-json-f31dd2ce682b0a08fd95.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-pl-PL-json-559f47b3e925566719fc.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-pt-BR-json-cbdb8b0f82e0c9cd50b2.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-pt-PT-json-74b40211c3c9d6bb53eb.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-ro-RO-json-5263a322360d0b9fdacb.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-ru-RU-json-7edf72c86b3606353720.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-si-LK-json-7c25b66be37bfb264c4b.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-sk-SK-json-e42000d15133173f3ef6.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-sv-SE-json-b38f7576e161d9af8d3d.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-ta-IN-json-5c18cdc70168f7c80731.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-tr-TR-json-9e7cfa6c85af6d8059ce.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-uk-UA-json-13ec263757fe0d5fa396.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-zh-CN-json-e775939d6e49eca5451a.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-zh-HK-json-d450e3311eb9a2945bb0.js +0 -22
- package/dist/excalidraw-assets-dev/i18n-zh-TW-json-648f871118caa12e2cf8.js +0 -22
- package/dist/excalidraw-assets-dev/image-9f771c114a0a3ad7b334.js +0 -42
|
@@ -11,6 +11,15 @@ https://github.com/nodeca/pica
|
|
|
11
11
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @license
|
|
16
|
+
* Lodash <https://lodash.com/>
|
|
17
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
18
|
+
* Released under MIT license <https://lodash.com/license>
|
|
19
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
20
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
21
|
+
*/
|
|
22
|
+
|
|
14
23
|
/** @license React v17.0.2
|
|
15
24
|
* react-jsx-runtime.production.min.js
|
|
16
25
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zsviczian/excalidraw",
|
|
3
|
-
"version": "0.10.0-obsidian-
|
|
3
|
+
"version": "0.10.0-obsidian-12",
|
|
4
4
|
"main": "main.js",
|
|
5
5
|
"types": "types/packages/excalidraw/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"react-dom": "^17.0.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@babel/core": "7.
|
|
48
|
-
"@babel/plugin-transform-arrow-functions": "7.
|
|
49
|
-
"@babel/plugin-transform-async-to-generator": "7.
|
|
50
|
-
"@babel/plugin-transform-runtime": "7.
|
|
51
|
-
"@babel/plugin-transform-typescript": "7.
|
|
47
|
+
"@babel/core": "7.16.0",
|
|
48
|
+
"@babel/plugin-transform-arrow-functions": "7.16.0",
|
|
49
|
+
"@babel/plugin-transform-async-to-generator": "7.16.0",
|
|
50
|
+
"@babel/plugin-transform-runtime": "7.16.0",
|
|
51
|
+
"@babel/plugin-transform-typescript": "7.16.1",
|
|
52
52
|
"@babel/preset-env": "7.16.0",
|
|
53
53
|
"@babel/preset-react": "7.16.0",
|
|
54
54
|
"@babel/preset-typescript": "7.16.0",
|
|
@@ -56,17 +56,17 @@
|
|
|
56
56
|
"babel-loader": "8.2.3",
|
|
57
57
|
"babel-plugin-transform-class-properties": "6.24.1",
|
|
58
58
|
"cross-env": "7.0.3",
|
|
59
|
-
"css-loader": "5.
|
|
59
|
+
"css-loader": "6.5.1",
|
|
60
60
|
"file-loader": "6.2.0",
|
|
61
|
-
"mini-css-extract-plugin": "
|
|
62
|
-
"postcss-loader": "6.
|
|
61
|
+
"mini-css-extract-plugin": "2.4.4",
|
|
62
|
+
"postcss-loader": "6.2.0",
|
|
63
63
|
"sass-loader": "12.3.0",
|
|
64
|
-
"terser-webpack-plugin": "5.2.
|
|
64
|
+
"terser-webpack-plugin": "5.2.5",
|
|
65
65
|
"ts-loader": "9.2.6",
|
|
66
|
-
"typescript": "4.
|
|
67
|
-
"webpack": "5.
|
|
66
|
+
"typescript": "4.4.4",
|
|
67
|
+
"webpack": "5.64.0",
|
|
68
68
|
"webpack-bundle-analyzer": "4.5.0",
|
|
69
|
-
"webpack-cli": "4.
|
|
69
|
+
"webpack-cli": "4.9.1"
|
|
70
70
|
},
|
|
71
71
|
"bugs": "https://github.com/excalidraw/excalidraw/issues",
|
|
72
72
|
"homepage": "https://github.com/excalidraw/excalidraw/tree/master/src/packages/excalidraw",
|
package/types/actions/types.d.ts
CHANGED
package/types/appState.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
11
11
|
}> | undefined;
|
|
12
12
|
scrollX?: number | undefined;
|
|
13
13
|
scrollY?: number | undefined;
|
|
14
|
+
name?: string | undefined;
|
|
14
15
|
elementType?: "line" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "text" | "arrow" | "freedraw" | undefined;
|
|
15
16
|
elementLocked?: boolean | undefined;
|
|
16
17
|
exportBackground?: boolean | undefined;
|
|
@@ -34,7 +35,6 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
34
35
|
viewBackgroundColor?: string | undefined;
|
|
35
36
|
cursorButton?: "up" | "down" | undefined;
|
|
36
37
|
scrolledOutside?: boolean | undefined;
|
|
37
|
-
name?: string | undefined;
|
|
38
38
|
openMenu?: "canvas" | "shape" | null | undefined;
|
|
39
39
|
lastPointerDownWith?: import("./element/types").PointerType | undefined;
|
|
40
40
|
selectedElementIds?: {
|
package/types/clipboard.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DialogProps } from "./Dialog";
|
|
3
|
+
import "./ConfirmDialog.scss";
|
|
4
|
+
interface Props extends Omit<DialogProps, "onCloseRequest"> {
|
|
5
|
+
onConfirm: () => void;
|
|
6
|
+
onCancel: () => void;
|
|
7
|
+
confirmText?: string;
|
|
8
|
+
cancelText?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const ConfirmDialog: (props: Props) => JSX.Element;
|
|
11
|
+
export default ConfirmDialog;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./Dialog.scss";
|
|
3
3
|
import { AppState } from "../types";
|
|
4
|
-
export
|
|
4
|
+
export interface DialogProps {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
className?: string;
|
|
7
7
|
small?: boolean;
|
|
@@ -9,4 +9,6 @@ export declare const Dialog: (props: {
|
|
|
9
9
|
title: React.ReactNode;
|
|
10
10
|
autofocus?: boolean;
|
|
11
11
|
theme?: AppState["theme"];
|
|
12
|
-
|
|
12
|
+
closeOnClickOutside?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Dialog: (props: DialogProps) => JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import Library from "../data/library";
|
|
3
|
+
import { LibraryItem, AppState, BinaryFiles, ExcalidrawProps } from "../types";
|
|
4
|
+
import "./LibraryMenu.scss";
|
|
5
|
+
export declare const LibraryMenu: ({ onClose, onInsertShape, pendingElements, onAddToLibrary, theme, setAppState, files, libraryReturnUrl, focusContainer, library, id, appState, }: {
|
|
6
|
+
pendingElements: LibraryItem["elements"];
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onInsertShape: (elements: LibraryItem["elements"]) => void;
|
|
9
|
+
onAddToLibrary: () => void;
|
|
10
|
+
theme: AppState["theme"];
|
|
11
|
+
files: BinaryFiles;
|
|
12
|
+
setAppState: React.Component<any, AppState>["setState"];
|
|
13
|
+
libraryReturnUrl: ExcalidrawProps["libraryReturnUrl"];
|
|
14
|
+
focusContainer: () => void;
|
|
15
|
+
library: Library;
|
|
16
|
+
id: string;
|
|
17
|
+
appState: AppState;
|
|
18
|
+
}) => JSX.Element | null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import Library from "../data/library";
|
|
3
|
+
import { AppState, BinaryFiles, ExcalidrawProps, LibraryItem, LibraryItems } from "../types";
|
|
4
|
+
import "./LibraryMenuItems.scss";
|
|
5
|
+
declare const LibraryMenuItems: ({ libraryItems, onRemoveFromLibrary, onAddToLibrary, onInsertShape, pendingElements, theme, setAppState, libraryReturnUrl, library, files, id, selectedItems, onToggle, onPublish, resetLibrary, }: {
|
|
6
|
+
libraryItems: LibraryItems;
|
|
7
|
+
pendingElements: LibraryItem["elements"];
|
|
8
|
+
onRemoveFromLibrary: () => void;
|
|
9
|
+
onInsertShape: (elements: LibraryItem["elements"]) => void;
|
|
10
|
+
onAddToLibrary: (elements: LibraryItem["elements"]) => void;
|
|
11
|
+
theme: AppState["theme"];
|
|
12
|
+
files: BinaryFiles;
|
|
13
|
+
setAppState: React.Component<any, AppState>["setState"];
|
|
14
|
+
libraryReturnUrl: ExcalidrawProps["libraryReturnUrl"];
|
|
15
|
+
library: Library;
|
|
16
|
+
id: string;
|
|
17
|
+
selectedItems: LibraryItem["id"][];
|
|
18
|
+
onToggle: (id: LibraryItem["id"]) => void;
|
|
19
|
+
onPublish: () => void;
|
|
20
|
+
resetLibrary: () => void;
|
|
21
|
+
}) => JSX.Element;
|
|
22
|
+
export default LibraryMenuItems;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BinaryFiles, LibraryItem } from "../types";
|
|
3
3
|
import "./LibraryUnit.scss";
|
|
4
|
-
export declare const LibraryUnit: ({ elements, files,
|
|
5
|
-
|
|
4
|
+
export declare const LibraryUnit: ({ id, elements, files, isPending, onClick, selected, onToggle, }: {
|
|
5
|
+
id: LibraryItem["id"] | /** for pending item */ null;
|
|
6
|
+
elements?: readonly import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | undefined;
|
|
6
7
|
files: BinaryFiles;
|
|
7
|
-
|
|
8
|
-
onRemoveFromLibrary: () => void;
|
|
8
|
+
isPending?: boolean | undefined;
|
|
9
9
|
onClick: () => void;
|
|
10
|
+
selected: boolean;
|
|
11
|
+
onToggle: (id: string) => void;
|
|
10
12
|
}) => JSX.Element;
|
|
@@ -5,5 +5,5 @@ export declare const PasteChartDialog: ({ setAppState, appState, onClose, onInse
|
|
|
5
5
|
appState: AppState;
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
setAppState: React.Component<any, AppState>["setState"];
|
|
8
|
-
onInsertChart: (elements: LibraryItem) => void;
|
|
8
|
+
onInsertChart: (elements: LibraryItem["elements"]) => void;
|
|
9
9
|
}) => JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AppState, LibraryItems } from "../types";
|
|
3
|
+
import "./PublishLibrary.scss";
|
|
4
|
+
declare const PublishLibrary: ({ onClose, libraryItems, appState, onSuccess, onError, updateItemsInStorage, onRemove, }: {
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
libraryItems: LibraryItems;
|
|
7
|
+
appState: AppState;
|
|
8
|
+
onSuccess: (data: {
|
|
9
|
+
url: string;
|
|
10
|
+
authorName: string;
|
|
11
|
+
items: LibraryItems;
|
|
12
|
+
}) => void;
|
|
13
|
+
onError: (error: Error) => void;
|
|
14
|
+
updateItemsInStorage: (items: LibraryItems) => void;
|
|
15
|
+
onRemove: (id: string) => void;
|
|
16
|
+
}) => JSX.Element;
|
|
17
|
+
export default PublishLibrary;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AppState, LibraryItem } from "../types";
|
|
3
|
+
import "./SingleLibraryItem.scss";
|
|
4
|
+
declare const SingleLibraryItem: ({ libItem, appState, index, onChange, onRemove, }: {
|
|
5
|
+
libItem: LibraryItem;
|
|
6
|
+
appState: AppState;
|
|
7
|
+
index: number;
|
|
8
|
+
onChange: (val: string, index: number) => void;
|
|
9
|
+
onRemove: (id: string) => void;
|
|
10
|
+
}) => JSX.Element;
|
|
11
|
+
export default SingleLibraryItem;
|
|
@@ -18,11 +18,16 @@ declare type ToolButtonBaseProps = {
|
|
|
18
18
|
visible?: boolean;
|
|
19
19
|
selected?: boolean;
|
|
20
20
|
className?: string;
|
|
21
|
+
isLoading?: boolean;
|
|
21
22
|
};
|
|
22
23
|
declare type ToolButtonProps = (ToolButtonBaseProps & {
|
|
23
24
|
type: "button";
|
|
24
25
|
children?: React.ReactNode;
|
|
25
26
|
onClick?(event: React.MouseEvent): void;
|
|
27
|
+
}) | (ToolButtonBaseProps & {
|
|
28
|
+
type: "submit";
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
onClick?(event: React.MouseEvent): void;
|
|
26
31
|
}) | (ToolButtonBaseProps & {
|
|
27
32
|
type: "icon";
|
|
28
33
|
children?: React.ReactNode;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="web" />
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { Theme } from "../element/types";
|
|
3
4
|
declare type Opts = {
|
|
@@ -164,4 +165,5 @@ export declare const TextAlignCenterIcon: React.MemoExoticComponent<({ theme }:
|
|
|
164
165
|
export declare const TextAlignRightIcon: React.MemoExoticComponent<({ theme }: {
|
|
165
166
|
theme: Theme;
|
|
166
167
|
}) => JSX.Element>;
|
|
168
|
+
export declare const publishIcon: JSX.Element;
|
|
167
169
|
export {};
|
package/types/constants.d.ts
CHANGED
|
@@ -125,3 +125,4 @@ export declare const DEFAULT_MAX_IMAGE_WIDTH_OR_HEIGHT = 1440;
|
|
|
125
125
|
export declare const ALLOWED_IMAGE_MIME_TYPES: readonly ["image/png", "image/jpeg", "image/svg+xml", "image/gif"];
|
|
126
126
|
export declare const MAX_ALLOWED_FILE_BYTES: number;
|
|
127
127
|
export declare const SVG_NS = "http://www.w3.org/2000/svg";
|
|
128
|
+
export declare const ENCRYPTION_KEY_BITS = 128;
|
package/types/data/blob.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="web" />
|
|
1
2
|
export declare const IV_LENGTH_BYTES = 12;
|
|
2
3
|
export declare const createIV: () => Uint8Array;
|
|
3
|
-
export declare const generateEncryptionKey: () => Promise<
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const encryptData: (key: string, data: Uint8Array | ArrayBuffer | Blob | File | string) => Promise<{
|
|
4
|
+
export declare const generateEncryptionKey: <T extends "string" | "cryptoKey" = "string">(returnAs?: T | undefined) => Promise<T extends "cryptoKey" ? CryptoKey : string>;
|
|
5
|
+
export declare const getCryptoKey: (key: string, usage: KeyUsage) => Promise<CryptoKey>;
|
|
6
|
+
export declare const encryptData: (key: string | CryptoKey, data: Uint8Array | ArrayBuffer | Blob | File | string) => Promise<{
|
|
6
7
|
encryptedBuffer: ArrayBuffer;
|
|
7
8
|
iv: Uint8Array;
|
|
8
9
|
}>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="web" />
|
|
1
2
|
import { FileWithHandle, FileSystemHandle, supported as nativeFileSystemSupported } from "browser-fs-access";
|
|
2
3
|
declare type FILE_EXTENSION = "gif" | "jpg" | "png" | "svg" | "json" | "excalidraw" | "excalidrawlib";
|
|
3
4
|
export declare const fileOpen: <M extends boolean | undefined = false>(opts: {
|
|
4
5
|
extensions?: FILE_EXTENSION[] | undefined;
|
|
5
|
-
description
|
|
6
|
+
description: string;
|
|
6
7
|
multiple?: M | undefined;
|
|
7
8
|
}) => Promise<M extends false | undefined ? FileWithHandle : FileWithHandle[]>;
|
|
8
9
|
export declare const fileSave: (blob: Blob, opts: {
|
|
@@ -10,7 +11,7 @@ export declare const fileSave: (blob: Blob, opts: {
|
|
|
10
11
|
name: string;
|
|
11
12
|
/** file extension */
|
|
12
13
|
extension: FILE_EXTENSION;
|
|
13
|
-
description
|
|
14
|
+
description: string;
|
|
14
15
|
/** existing FileSystemHandle */
|
|
15
16
|
fileHandle?: FileSystemHandle | null;
|
|
16
17
|
}) => Promise<FileSystemHandle | null>;
|
package/types/data/json.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExcalidrawElement } from "../element/types";
|
|
2
|
-
import { AppState, BinaryFiles } from "../types";
|
|
2
|
+
import { AppState, BinaryFiles, LibraryItems } from "../types";
|
|
3
3
|
import { ImportedDataState } from "./types";
|
|
4
4
|
import Library from "./library";
|
|
5
5
|
export declare const serializeAsJSON: (elements: readonly ExcalidrawElement[], appState: Partial<AppState>, files: BinaryFiles, type: "local" | "database") => string;
|
|
@@ -13,5 +13,5 @@ export declare const isValidExcalidrawData: (data?: {
|
|
|
13
13
|
appState?: any;
|
|
14
14
|
} | undefined) => data is ImportedDataState;
|
|
15
15
|
export declare const isValidLibrary: (json: any) => any;
|
|
16
|
-
export declare const saveLibraryAsJSON: (
|
|
16
|
+
export declare const saveLibraryAsJSON: (libraryItems: LibraryItems) => Promise<void>;
|
|
17
17
|
export declare const importLibraryFromJSON: (library: Library) => Promise<void>;
|
package/types/data/library.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ declare class Library {
|
|
|
7
7
|
resetLibrary: () => Promise<void>;
|
|
8
8
|
restoreLibraryItem: (libraryItem: LibraryItem) => LibraryItem | null;
|
|
9
9
|
/** imports library (currently merges, removing duplicates) */
|
|
10
|
-
importLibrary(blob: Blob): Promise<void>;
|
|
10
|
+
importLibrary(blob: Blob, defaultStatus?: string): Promise<void>;
|
|
11
11
|
loadLibrary: () => Promise<LibraryItems>;
|
|
12
12
|
saveLibrary: (items: LibraryItems) => Promise<void>;
|
|
13
13
|
}
|
package/types/data/restore.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExcalidrawElement } from "../element/types";
|
|
2
|
-
import { AppState, BinaryFiles } from "../types";
|
|
2
|
+
import { AppState, BinaryFiles, LibraryItem } from "../types";
|
|
3
3
|
import { ImportedDataState } from "./types";
|
|
4
4
|
declare type RestoredAppState = Omit<AppState, "offsetTop" | "offsetLeft" | "width" | "height">;
|
|
5
5
|
export declare const AllowedExcalidrawElementTypes: Record<ExcalidrawElement["type"], true>;
|
|
@@ -11,4 +11,5 @@ export declare type RestoredDataState = {
|
|
|
11
11
|
export declare const restoreElements: (elements: ImportedDataState["elements"], localElements: readonly ExcalidrawElement[] | null | undefined) => ExcalidrawElement[];
|
|
12
12
|
export declare const restoreAppState: (appState: ImportedDataState["appState"], localAppState: Partial<AppState> | null | undefined) => RestoredAppState;
|
|
13
13
|
export declare const restore: (data: ImportedDataState | null, localAppState: Partial<AppState> | null | undefined, localElements: readonly ExcalidrawElement[] | null | undefined) => RestoredDataState;
|
|
14
|
+
export declare const restoreLibraryItems: (libraryItems: NonOptional<ImportedDataState["libraryItems"]>, defaultStatus: LibraryItem["status"]) => LibraryItem[];
|
|
14
15
|
export {};
|
package/types/data/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExcalidrawElement } from "../element/types";
|
|
2
|
-
import { AppState, BinaryFiles, LibraryItems } from "../types";
|
|
2
|
+
import { AppState, BinaryFiles, LibraryItems, LibraryItems_v1 } from "../types";
|
|
3
3
|
import type { cleanAppStateForExport } from "../appState";
|
|
4
4
|
export interface ExportedDataState {
|
|
5
5
|
type: string;
|
|
@@ -16,14 +16,16 @@ export interface ImportedDataState {
|
|
|
16
16
|
elements?: readonly ExcalidrawElement[] | null;
|
|
17
17
|
appState?: Readonly<Partial<AppState>> | null;
|
|
18
18
|
scrollToContent?: boolean;
|
|
19
|
-
libraryItems?: LibraryItems;
|
|
19
|
+
libraryItems?: LibraryItems | LibraryItems_v1;
|
|
20
20
|
files?: BinaryFiles;
|
|
21
21
|
}
|
|
22
22
|
export interface ExportedLibraryData {
|
|
23
23
|
type: string;
|
|
24
|
-
version:
|
|
24
|
+
version: 2;
|
|
25
25
|
source: string;
|
|
26
|
-
|
|
26
|
+
libraryItems: LibraryItems;
|
|
27
27
|
}
|
|
28
28
|
export interface ImportedLibraryData extends Partial<ExportedLibraryData> {
|
|
29
|
+
/** @deprecated v1 */
|
|
30
|
+
library?: LibraryItems;
|
|
29
31
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="web" />
|
|
1
3
|
import { ExcalidrawLinearElement, ExcalidrawBindableElement, NonDeleted, NonDeletedExcalidrawElement, ExcalidrawElement } from "./types";
|
|
2
4
|
import { AppState } from "../types";
|
|
3
5
|
import Scene from "../scene/Scene";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExcalidrawElement, ExcalidrawLinearElement, Arrowhead } from "./types";
|
|
1
|
+
import { ExcalidrawElement, ExcalidrawLinearElement, Arrowhead, NonDeleted } from "./types";
|
|
2
2
|
import { Drawable, Op } from "roughjs/bin/core";
|
|
3
3
|
export declare type Bounds = readonly [number, number, number, number];
|
|
4
4
|
export declare const getElementAbsoluteCoords: (element: ExcalidrawElement) => Bounds;
|
|
@@ -14,3 +14,10 @@ export declare const getClosestElementBounds: (elements: readonly ExcalidrawElem
|
|
|
14
14
|
x: number;
|
|
15
15
|
y: number;
|
|
16
16
|
}) => [number, number, number, number];
|
|
17
|
+
export interface Box {
|
|
18
|
+
minX: number;
|
|
19
|
+
minY: number;
|
|
20
|
+
maxX: number;
|
|
21
|
+
maxY: number;
|
|
22
|
+
}
|
|
23
|
+
export declare const getCommonBoundingBox: (elements: ExcalidrawElement[] | readonly NonDeleted<ExcalidrawElement>[]) => Box;
|
package/types/element/image.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="web" />
|
|
1
3
|
import { AppClassProperties, DataURL, BinaryFiles } from "../types";
|
|
2
4
|
import { ExcalidrawElement, FileId, InitializedExcalidrawImageElement } from "./types";
|
|
3
5
|
export declare const loadHTMLImageElement: (dataURL: DataURL) => Promise<HTMLImageElement>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="web" />
|
|
1
3
|
import { ExcalidrawElement } from "./types";
|
|
2
4
|
import { AppState } from "../types";
|
|
3
5
|
export declare const textWysiwyg: ({ id, appState, onChange, onSubmit, getViewportCoords, element, canvas, excalidrawContainer, }: {
|
package/types/errors.d.ts
CHANGED
package/types/i18n.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ export declare const languages: Language[];
|
|
|
11
11
|
export declare const setLanguage: (lang: Language) => Promise<void>;
|
|
12
12
|
export declare const getLanguage: () => Language;
|
|
13
13
|
export declare const t: (path: string, replacement?: {
|
|
14
|
-
[key: string]: string;
|
|
14
|
+
[key: string]: string | number;
|
|
15
15
|
} | undefined) => string;
|
package/types/keys.d.ts
CHANGED