@excalidraw/excalidraw 0.18.0-ac0d305 → 0.18.0-b1c6bfc
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 +81 -0
- package/README.md +111 -14
- package/dist/dev/{chunk-QF5FRM6O.js → chunk-4JOINNOK.js} +132 -30
- package/dist/dev/chunk-4JOINNOK.js.map +7 -0
- package/dist/dev/{chunk-FB2NA5UG.js → chunk-6JJSWC4C.js} +1 -1
- package/dist/dev/{chunk-FB2NA5UG.js.map → chunk-6JJSWC4C.js.map} +2 -2
- package/dist/dev/{chunk-LJB4UXX2.js → chunk-FZXBOFJP.js} +357 -505
- package/dist/dev/chunk-FZXBOFJP.js.map +7 -0
- package/dist/dev/chunk-URPEKBQ3.js +69 -0
- package/dist/dev/chunk-URPEKBQ3.js.map +7 -0
- package/dist/dev/{chunk-CP5DND7P.js → chunk-Y3BTNZQY.js} +2 -2
- package/dist/dev/components/TTDDialog/CodeMirrorEditor-XRUBL3LG.js +259 -0
- package/dist/dev/components/TTDDialog/CodeMirrorEditor-XRUBL3LG.js.map +7 -0
- package/dist/dev/data/{image-OLV524AK.js → image-E6NJP7SZ.js} +3 -3
- package/dist/dev/index.css +1804 -604
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +16521 -9936
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{ar-SA-XORAP2EK.js → ar-SA-AGVJN2FU.js} +354 -142
- package/dist/dev/locales/ar-SA-AGVJN2FU.js.map +7 -0
- package/dist/dev/locales/{az-AZ-NAUU3Z4Y.js → az-AZ-62IXPX5D.js} +296 -84
- package/dist/dev/locales/az-AZ-62IXPX5D.js.map +7 -0
- package/dist/dev/locales/{bg-BG-AAABLFCY.js → bg-BG-UBDZF4KA.js} +284 -72
- package/dist/dev/locales/bg-BG-UBDZF4KA.js.map +7 -0
- package/dist/dev/locales/{bn-BD-PM4AC5WG.js → bn-BD-4TAUVZOD.js} +264 -52
- package/dist/dev/locales/bn-BD-4TAUVZOD.js.map +7 -0
- package/dist/dev/locales/bn-IN-PUGL2LDE.js +798 -0
- package/dist/dev/locales/bn-IN-PUGL2LDE.js.map +7 -0
- package/dist/dev/locales/{ca-ES-YNNMFRQX.js → ca-ES-GEEW5L7T.js} +331 -119
- package/dist/dev/locales/ca-ES-GEEW5L7T.js.map +7 -0
- package/dist/dev/locales/{cs-CZ-DGZA5IKG.js → cs-CZ-LNVE3QM5.js} +284 -72
- package/dist/dev/locales/cs-CZ-LNVE3QM5.js.map +7 -0
- package/dist/dev/locales/{da-DK-N76F4QAJ.js → da-DK-CAYJG7FJ.js} +353 -141
- package/dist/dev/locales/da-DK-CAYJG7FJ.js.map +7 -0
- package/dist/dev/locales/de-CH-GCXOD4LK.js +798 -0
- package/dist/dev/locales/de-CH-GCXOD4LK.js.map +7 -0
- package/dist/dev/locales/{de-DE-DMRXZ2SZ.js → de-DE-CGDBECYD.js} +255 -43
- package/dist/dev/locales/de-DE-CGDBECYD.js.map +7 -0
- package/dist/dev/locales/{el-GR-HIKPLEXI.js → el-GR-G5QZC24A.js} +329 -117
- package/dist/dev/locales/el-GR-G5QZC24A.js.map +7 -0
- package/dist/dev/locales/{en-SMAPCEOQ.js → en-WD25OMHJ.js} +10 -2
- package/dist/dev/locales/{es-ES-AQYVXC32.js → es-ES-UMEOH76W.js} +268 -56
- package/dist/dev/locales/es-ES-UMEOH76W.js.map +7 -0
- package/dist/dev/locales/{eu-ES-3TOEU5DE.js → eu-ES-IWRZXJC5.js} +266 -54
- package/dist/dev/locales/eu-ES-IWRZXJC5.js.map +7 -0
- package/dist/dev/locales/{fa-IR-527GAKUP.js → fa-IR-QOYVIIJA.js} +341 -129
- package/dist/dev/locales/fa-IR-QOYVIIJA.js.map +7 -0
- package/dist/dev/locales/{fi-FI-M3WLVDFP.js → fi-FI-BXRW65OA.js} +295 -83
- package/dist/dev/locales/fi-FI-BXRW65OA.js.map +7 -0
- package/dist/dev/locales/{fr-FR-YE4VDJFI.js → fr-FR-R2QH5VCW.js} +259 -47
- package/dist/dev/locales/fr-FR-R2QH5VCW.js.map +7 -0
- package/dist/dev/locales/{gl-ES-KMXUYGUN.js → gl-ES-4ES3ZADP.js} +267 -55
- package/dist/dev/locales/gl-ES-4ES3ZADP.js.map +7 -0
- package/dist/dev/locales/he-IL-TRQRRYPH.js +798 -0
- package/dist/dev/locales/he-IL-TRQRRYPH.js.map +7 -0
- package/dist/dev/locales/hi-IN-U46BOJEC.js +798 -0
- package/dist/dev/locales/hi-IN-U46BOJEC.js.map +7 -0
- package/dist/dev/locales/{hu-HU-VIYZI3X4.js → hu-HU-JDULJ6XL.js} +291 -79
- package/dist/dev/locales/hu-HU-JDULJ6XL.js.map +7 -0
- package/dist/dev/locales/{id-ID-22TWZNLA.js → id-ID-BLIXNCUT.js} +300 -88
- package/dist/dev/locales/id-ID-BLIXNCUT.js.map +7 -0
- package/dist/dev/locales/{it-IT-MDEQ2SG3.js → it-IT-6TBW7RUK.js} +258 -46
- package/dist/dev/locales/it-IT-6TBW7RUK.js.map +7 -0
- package/dist/dev/locales/{ja-JP-K2DI4W6B.js → ja-JP-6HYAQFYX.js} +302 -90
- package/dist/dev/locales/ja-JP-6HYAQFYX.js.map +7 -0
- package/dist/dev/locales/{kaa-6BPSNM3R.js → kaa-Z5UP62XJ.js} +257 -45
- package/dist/dev/locales/kaa-Z5UP62XJ.js.map +7 -0
- package/dist/dev/locales/{kab-KAB-2S7ZURK7.js → kab-KAB-Z7STWQKS.js} +266 -54
- package/dist/dev/locales/kab-KAB-Z7STWQKS.js.map +7 -0
- package/dist/dev/locales/{kk-KZ-UJPYGRQQ.js → kk-KZ-BWHY45DX.js} +230 -18
- package/dist/dev/locales/kk-KZ-BWHY45DX.js.map +7 -0
- package/dist/dev/locales/{km-KH-M5T5JKUE.js → km-KH-HGLNWNRU.js} +254 -42
- package/dist/dev/locales/km-KH-HGLNWNRU.js.map +7 -0
- package/dist/dev/locales/{ko-KR-RQX37SNF.js → ko-KR-CO36WKPC.js} +273 -61
- package/dist/dev/locales/ko-KR-CO36WKPC.js.map +7 -0
- package/dist/dev/locales/{ku-TR-5XJDIERL.js → ku-TR-AACVIARC.js} +254 -42
- package/dist/dev/locales/ku-TR-AACVIARC.js.map +7 -0
- package/dist/dev/locales/{lt-LT-MGUBX6CA.js → lt-LT-CFYYFLDV.js} +234 -22
- package/dist/dev/locales/lt-LT-CFYYFLDV.js.map +7 -0
- package/dist/dev/locales/{lv-LV-MD7N5VHD.js → lv-LV-QCBBOFFU.js} +252 -40
- package/dist/dev/locales/lv-LV-QCBBOFFU.js.map +7 -0
- package/dist/dev/locales/{mr-IN-4XWMNGQC.js → mr-IN-B2CM5GK5.js} +260 -48
- package/dist/dev/locales/mr-IN-B2CM5GK5.js.map +7 -0
- package/dist/dev/locales/{my-MM-O4Z74GN5.js → my-MM-756BNN36.js} +236 -24
- package/dist/dev/locales/my-MM-756BNN36.js.map +7 -0
- package/dist/dev/locales/{nb-NO-BMB73KRH.js → nb-NO-5BLHQI4J.js} +275 -63
- package/dist/dev/locales/nb-NO-5BLHQI4J.js.map +7 -0
- package/dist/dev/locales/nl-NL-225BLGAH.js +798 -0
- package/dist/dev/locales/nl-NL-225BLGAH.js.map +7 -0
- package/dist/dev/locales/{nn-NO-NCORG7TS.js → nn-NO-4J7MR6GH.js} +256 -44
- package/dist/dev/locales/nn-NO-4J7MR6GH.js.map +7 -0
- package/dist/dev/locales/{oc-FR-ATFBDMF6.js → oc-FR-XCETH7KF.js} +276 -64
- package/dist/dev/locales/oc-FR-XCETH7KF.js.map +7 -0
- package/dist/dev/locales/{pa-IN-D2I375G4.js → pa-IN-32NBAN5L.js} +246 -34
- package/dist/dev/locales/pa-IN-32NBAN5L.js.map +7 -0
- package/dist/dev/locales/{percentages-YKFLWNK2.js → percentages-ZRLRVMSI.js} +2 -2
- package/dist/dev/locales/{pl-PL-YJHOWAAW.js → pl-PL-R6OJ54BT.js} +270 -58
- package/dist/dev/locales/pl-PL-R6OJ54BT.js.map +7 -0
- package/dist/dev/locales/{pt-BR-APOPYZJ7.js → pt-BR-7AFGAKGR.js} +292 -80
- package/dist/dev/locales/pt-BR-7AFGAKGR.js.map +7 -0
- package/dist/dev/locales/pt-PT-S6BMW6MY.js +798 -0
- package/dist/dev/locales/pt-PT-S6BMW6MY.js.map +7 -0
- package/dist/dev/locales/{ro-RO-L575VRQA.js → ro-RO-4JVGQHS2.js} +259 -47
- package/dist/dev/locales/ro-RO-4JVGQHS2.js.map +7 -0
- package/dist/dev/locales/{ru-RU-BLG6HZG5.js → ru-RU-IESI752T.js} +310 -98
- package/dist/dev/locales/ru-RU-IESI752T.js.map +7 -0
- package/dist/dev/locales/si-LK-H75E7PKD.js +798 -0
- package/dist/dev/locales/si-LK-H75E7PKD.js.map +7 -0
- package/dist/dev/locales/{sk-SK-DY6IPO5U.js → sk-SK-EUK2NR2F.js} +256 -44
- package/dist/dev/locales/sk-SK-EUK2NR2F.js.map +7 -0
- package/dist/dev/locales/{sl-SI-5DZSRA47.js → sl-SI-AKW7R5PW.js} +253 -41
- package/dist/dev/locales/sl-SI-AKW7R5PW.js.map +7 -0
- package/dist/dev/locales/{sv-SE-V32YHALQ.js → sv-SE-QIBOOXLJ.js} +258 -46
- package/dist/dev/locales/sv-SE-QIBOOXLJ.js.map +7 -0
- package/dist/dev/locales/{ta-IN-5JRAGQAO.js → ta-IN-LBK2NQ5K.js} +311 -99
- package/dist/dev/locales/ta-IN-LBK2NQ5K.js.map +7 -0
- package/dist/dev/locales/{th-TH-55ACRHDJ.js → th-TH-YJ2E6GVT.js} +343 -131
- package/dist/dev/locales/th-TH-YJ2E6GVT.js.map +7 -0
- package/dist/dev/locales/{tr-TR-7QYBXDBO.js → tr-TR-Y5GO2XJW.js} +310 -98
- package/dist/dev/locales/tr-TR-Y5GO2XJW.js.map +7 -0
- package/dist/dev/locales/{uk-UA-TJS2TMRH.js → uk-UA-XYAFHHJW.js} +284 -72
- package/dist/dev/locales/uk-UA-XYAFHHJW.js.map +7 -0
- package/dist/dev/locales/{si-LK-KT7GGO6D.js → uz-UZ-LF3CBRYE.js} +267 -55
- package/dist/dev/locales/uz-UZ-LF3CBRYE.js.map +7 -0
- package/dist/dev/locales/vi-VN-WDPZEUOJ.js +798 -0
- package/dist/dev/locales/vi-VN-WDPZEUOJ.js.map +7 -0
- package/dist/dev/locales/{zh-CN-4MXUOFTH.js → zh-CN-SZ37453H.js} +255 -43
- package/dist/dev/locales/zh-CN-SZ37453H.js.map +7 -0
- package/dist/dev/locales/{zh-HK-RBTGIU3U.js → zh-HK-QDQ5QNBC.js} +230 -18
- package/dist/dev/locales/zh-HK-QDQ5QNBC.js.map +7 -0
- package/dist/dev/locales/{zh-TW-U5VF4CCU.js → zh-TW-CYU6GFBV.js} +260 -48
- package/dist/dev/locales/zh-TW-CYU6GFBV.js.map +7 -0
- package/dist/dev/subset-shared.chunk.js +2 -2
- package/dist/dev/subset-worker.chunk.js +2 -2
- package/dist/prod/chunk-3PELD44J.js +1 -0
- package/dist/prod/chunk-LOOWOR4L.js +12 -0
- package/dist/prod/chunk-YKPWT25G.js +4 -0
- package/dist/prod/{chunk-LS7FJGPW.js → chunk-Z5NKEFVG.js} +8 -8
- package/dist/prod/components/TTDDialog/CodeMirrorEditor-UCMRAMCV.js +1 -0
- package/dist/prod/data/{image-IFOCRD4I.js → image-J2CAS7OM.js} +1 -1
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +43 -26
- package/dist/prod/locales/ar-SA-NXDWD63E.js +8 -0
- package/dist/prod/locales/az-AZ-MXSORGZV.js +1 -0
- package/dist/prod/locales/bg-BG-O6MV2KSF.js +5 -0
- package/dist/prod/locales/bn-BD-T2VJNT7N.js +3 -0
- package/dist/prod/locales/bn-IN-MMW2ORAC.js +3 -0
- package/dist/prod/locales/ca-ES-MKBCGNOG.js +8 -0
- package/dist/prod/locales/cs-CZ-V77HGUP7.js +7 -0
- package/dist/prod/locales/da-DK-I5RFNTM4.js +2 -0
- package/dist/prod/locales/de-CH-WLRDEVBV.js +7 -0
- package/dist/prod/locales/de-DE-DTI4WUSC.js +7 -0
- package/dist/prod/locales/el-GR-ZXDJ2OS4.js +7 -0
- package/dist/prod/locales/en-CMP6EMR6.js +1 -0
- package/dist/prod/locales/es-ES-DYQHAD43.js +7 -0
- package/dist/prod/locales/eu-ES-QDSYU5Y3.js +7 -0
- package/dist/prod/locales/fa-IR-26LZG4PM.js +9 -0
- package/dist/prod/locales/fi-FI-6YS4KDE4.js +6 -0
- package/dist/prod/locales/fr-FR-BRLLPTZC.js +12 -0
- package/dist/prod/locales/gl-ES-OKUZTLYG.js +6 -0
- package/dist/prod/locales/he-IL-26MGYIU7.js +8 -0
- package/dist/prod/locales/hi-IN-Q4ZOGTP2.js +3 -0
- package/dist/prod/locales/hu-HU-P2OXPSN5.js +3 -0
- package/dist/prod/locales/id-ID-2EIKXYN6.js +8 -0
- package/dist/prod/locales/it-IT-4CFKVXI2.js +12 -0
- package/dist/prod/locales/ja-JP-MAND2Z4V.js +7 -0
- package/dist/prod/locales/kaa-HQRTCXTJ.js +1 -0
- package/dist/prod/locales/kab-KAB-JKIKKTGH.js +4 -0
- package/dist/prod/locales/kk-KZ-HXQ63ZFC.js +1 -0
- package/dist/prod/locales/km-KH-PKL3LSGX.js +7 -0
- package/dist/prod/locales/ko-KR-KXLREZX3.js +5 -0
- package/dist/prod/locales/ku-TR-MJ4IER3X.js +6 -0
- package/dist/prod/locales/lt-LT-H6WFQ6FJ.js +3 -0
- package/dist/prod/locales/lv-LV-GOCK6SJW.js +4 -0
- package/dist/prod/locales/mr-IN-IXVLDMEQ.js +9 -0
- package/dist/prod/locales/my-MM-YG6MYTTD.js +1 -0
- package/dist/prod/locales/nb-NO-XGWJISD2.js +8 -0
- package/dist/prod/locales/nl-NL-XVDVCPNC.js +13 -0
- package/dist/prod/locales/nn-NO-EMX5MJX5.js +4 -0
- package/dist/prod/locales/oc-FR-ROEINTVO.js +4 -0
- package/dist/prod/locales/pa-IN-ZYN6SUDY.js +4 -0
- package/dist/prod/locales/percentages-5DKR754L.js +1 -0
- package/dist/prod/locales/pl-PL-6VTG7PHC.js +12 -0
- package/dist/prod/locales/pt-BR-5YFKRR5G.js +6 -0
- package/dist/prod/locales/pt-PT-GEIXXZ67.js +8 -0
- package/dist/prod/locales/ro-RO-E2P6TFZI.js +12 -0
- package/dist/prod/locales/ru-RU-YBIIY43T.js +10 -0
- package/dist/prod/locales/si-LK-673C2CI2.js +1 -0
- package/dist/prod/locales/sk-SK-CKZHQ4AP.js +7 -0
- package/dist/prod/locales/sl-SI-557H2GWM.js +6 -0
- package/dist/prod/locales/sv-SE-XOPKKDWS.js +8 -0
- package/dist/prod/locales/ta-IN-XBH7DQI3.js +6 -0
- package/dist/prod/locales/th-TH-TOCWH3R4.js +1 -0
- package/dist/prod/locales/tr-TR-GXW6CYY5.js +4 -0
- package/dist/prod/locales/uk-UA-IJKTNUDG.js +6 -0
- package/dist/prod/locales/uz-UZ-TBZZEA4V.js +1 -0
- package/dist/prod/locales/vi-VN-MULSGNVB.js +7 -0
- package/dist/prod/locales/zh-CN-MVX3E32U.js +11 -0
- package/dist/prod/locales/zh-HK-JNU5RLIE.js +1 -0
- package/dist/prod/locales/zh-TW-LENVCA6T.js +9 -0
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/debug.d.ts +21 -0
- package/dist/types/common/src/appEventBus.d.ts +27 -0
- package/dist/types/common/src/bounds.d.ts +10 -0
- package/dist/types/common/src/colors.d.ts +59 -39
- package/dist/types/common/src/constants.d.ts +25 -27
- package/dist/types/common/src/editorInterface.d.ts +34 -0
- package/dist/types/common/src/font-metadata.d.ts +1 -3
- package/dist/types/common/src/index.d.ts +5 -0
- package/dist/types/common/src/keys.d.ts +1 -1
- package/dist/types/common/src/utility-types.d.ts +0 -1
- package/dist/types/common/src/utils.d.ts +53 -42
- package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
- package/dist/types/element/src/Scene.d.ts +5 -3
- package/dist/types/element/src/arrowheads.d.ts +3 -0
- package/dist/types/element/src/arrows/focus.d.ts +27 -0
- package/dist/types/element/src/arrows/helpers.d.ts +5 -0
- package/dist/types/element/src/binding.d.ts +67 -48
- package/dist/types/element/src/bounds.d.ts +7 -13
- package/dist/types/element/src/collision.d.ts +7 -2
- package/dist/types/element/src/comparisons.d.ts +7 -7
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/dragElements.d.ts +3 -3
- package/dist/types/element/src/duplicate.d.ts +3 -3
- package/dist/types/element/src/elbowArrow.d.ts +2 -0
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +6 -2
- package/dist/types/element/src/heading.d.ts +2 -1
- package/dist/types/element/src/image.d.ts +1 -11
- package/dist/types/element/src/index.d.ts +4 -3
- package/dist/types/element/src/linearElementEditor.d.ts +23 -22
- package/dist/types/element/src/mutateElement.d.ts +5 -1
- package/dist/types/element/src/newElement.d.ts +6 -6
- package/dist/types/element/src/renderElement.d.ts +1 -7
- package/dist/types/element/src/resizeElements.d.ts +10 -10
- package/dist/types/element/src/resizeTest.d.ts +6 -5
- package/dist/types/element/src/selection.d.ts +10 -10
- package/dist/types/element/src/shape.d.ts +9 -8
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/textMeasurements.d.ts +1 -3
- package/dist/types/element/src/textWrapping.d.ts +26 -0
- package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
- package/dist/types/element/src/transformHandles.d.ts +8 -27
- package/dist/types/element/src/typeChecks.d.ts +4 -7
- package/dist/types/element/src/types.d.ts +12 -13
- package/dist/types/element/src/utils.d.ts +9 -4
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +131 -171
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +94 -121
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +556 -902
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +112 -884
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +45 -59
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +148 -192
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -0
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +37 -57
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +92 -119
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +46 -60
- package/dist/types/excalidraw/actions/actionExport.d.ts +173 -1412
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -396
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +265 -356
- package/dist/types/excalidraw/actions/actionGroup.d.ts +97 -132
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +137 -189
- package/dist/types/excalidraw/actions/actionLink.d.ts +43 -57
- package/dist/types/excalidraw/actions/actionMenu.d.ts +36 -424
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
- package/dist/types/excalidraw/actions/actionProperties.d.ts +154 -2533
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +48 -66
- package/dist/types/excalidraw/actions/actionStyles.d.ts +45 -58
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +173 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +45 -59
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +45 -59
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +34 -54
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +45 -59
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +45 -59
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +46 -60
- package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
- package/dist/types/excalidraw/actions/index.d.ts +4 -1
- package/dist/types/excalidraw/actions/register.d.ts +2 -2
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +4 -4
- package/dist/types/excalidraw/appState.d.ts +22 -15
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +7 -0
- package/dist/types/excalidraw/clipboard.d.ts +13 -36
- package/dist/types/excalidraw/components/Actions.d.ts +14 -4
- package/dist/types/excalidraw/components/App.d.ts +109 -70
- package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
- package/dist/types/excalidraw/components/ButtonIconCycle.d.ts +1 -1
- package/dist/types/excalidraw/components/Card.d.ts +1 -3
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -3
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
- package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -2
- package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
- package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
- package/dist/types/excalidraw/components/LinkButton.d.ts +4 -0
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
- package/dist/types/excalidraw/components/Modal.d.ts +0 -1
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
- package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
- package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
- package/dist/types/excalidraw/components/Range.d.ts +10 -4
- package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
- package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
- package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
- package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +2 -3
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
- package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
- package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
- package/dist/types/excalidraw/components/TextField.d.ts +1 -0
- package/dist/types/excalidraw/components/Toast.d.ts +11 -7
- package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/dist/types/excalidraw/components/Trans.d.ts +2 -2
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +7 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
- package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
- package/dist/types/excalidraw/components/icons.d.ts +44 -22
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +20 -2
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
- package/dist/types/excalidraw/components/shapes.d.ts +74 -1
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
- package/dist/types/excalidraw/data/blob.d.ts +329 -8
- package/dist/types/excalidraw/data/encode.d.ts +4 -4
- package/dist/types/excalidraw/data/encryption.d.ts +5 -5
- package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
- package/dist/types/excalidraw/data/index.d.ts +4 -5
- package/dist/types/excalidraw/data/json.d.ts +171 -4
- package/dist/types/excalidraw/data/library.d.ts +24 -9
- package/dist/types/excalidraw/data/resave.d.ts +7 -2
- package/dist/types/excalidraw/data/restore.d.ts +25 -10
- package/dist/types/excalidraw/data/types.d.ts +4 -1
- package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
- package/dist/types/excalidraw/errors.d.ts +14 -0
- package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
- package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
- package/dist/types/excalidraw/i18n.d.ts +2 -2
- package/dist/types/excalidraw/index.d.ts +29 -8
- package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
- package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
- package/dist/types/excalidraw/scene/export.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
- package/dist/types/excalidraw/scene/types.d.ts +22 -5
- package/dist/types/excalidraw/shortcut.d.ts +1 -0
- package/dist/types/excalidraw/snapping.d.ts +5 -5
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
- package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
- package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +123 -36
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +7 -3
- package/dist/types/math/src/curve.d.ts +4 -1
- package/dist/types/math/src/point.d.ts +7 -2
- package/dist/types/math/src/polygon.d.ts +2 -2
- package/dist/types/math/src/range.d.ts +1 -3
- package/dist/types/math/src/segment.d.ts +3 -3
- package/dist/types/math/src/types.d.ts +25 -1
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/export.d.ts +5 -5
- package/dist/types/utils/src/shape.d.ts +6 -6
- package/dist/types/utils/src/withinBounds.d.ts +2 -2
- package/package.json +14 -11
- package/dist/dev/chunk-LJB4UXX2.js.map +0 -7
- package/dist/dev/chunk-MFAYKRVR.js +0 -66
- package/dist/dev/chunk-MFAYKRVR.js.map +0 -7
- package/dist/dev/chunk-QF5FRM6O.js.map +0 -7
- package/dist/dev/locales/ar-SA-XORAP2EK.js.map +0 -7
- package/dist/dev/locales/az-AZ-NAUU3Z4Y.js.map +0 -7
- package/dist/dev/locales/bg-BG-AAABLFCY.js.map +0 -7
- package/dist/dev/locales/bn-BD-PM4AC5WG.js.map +0 -7
- package/dist/dev/locales/ca-ES-YNNMFRQX.js.map +0 -7
- package/dist/dev/locales/cs-CZ-DGZA5IKG.js.map +0 -7
- package/dist/dev/locales/da-DK-N76F4QAJ.js.map +0 -7
- package/dist/dev/locales/de-DE-DMRXZ2SZ.js.map +0 -7
- package/dist/dev/locales/el-GR-HIKPLEXI.js.map +0 -7
- package/dist/dev/locales/es-ES-AQYVXC32.js.map +0 -7
- package/dist/dev/locales/eu-ES-3TOEU5DE.js.map +0 -7
- package/dist/dev/locales/fa-IR-527GAKUP.js.map +0 -7
- package/dist/dev/locales/fi-FI-M3WLVDFP.js.map +0 -7
- package/dist/dev/locales/fr-FR-YE4VDJFI.js.map +0 -7
- package/dist/dev/locales/gl-ES-KMXUYGUN.js.map +0 -7
- package/dist/dev/locales/he-IL-4MU5N22B.js +0 -586
- package/dist/dev/locales/he-IL-4MU5N22B.js.map +0 -7
- package/dist/dev/locales/hi-IN-ZHZNZWFC.js +0 -586
- package/dist/dev/locales/hi-IN-ZHZNZWFC.js.map +0 -7
- package/dist/dev/locales/hu-HU-VIYZI3X4.js.map +0 -7
- package/dist/dev/locales/id-ID-22TWZNLA.js.map +0 -7
- package/dist/dev/locales/it-IT-MDEQ2SG3.js.map +0 -7
- package/dist/dev/locales/ja-JP-K2DI4W6B.js.map +0 -7
- package/dist/dev/locales/kaa-6BPSNM3R.js.map +0 -7
- package/dist/dev/locales/kab-KAB-2S7ZURK7.js.map +0 -7
- package/dist/dev/locales/kk-KZ-UJPYGRQQ.js.map +0 -7
- package/dist/dev/locales/km-KH-M5T5JKUE.js.map +0 -7
- package/dist/dev/locales/ko-KR-RQX37SNF.js.map +0 -7
- package/dist/dev/locales/ku-TR-5XJDIERL.js.map +0 -7
- package/dist/dev/locales/lt-LT-MGUBX6CA.js.map +0 -7
- package/dist/dev/locales/lv-LV-MD7N5VHD.js.map +0 -7
- package/dist/dev/locales/mr-IN-4XWMNGQC.js.map +0 -7
- package/dist/dev/locales/my-MM-O4Z74GN5.js.map +0 -7
- package/dist/dev/locales/nb-NO-BMB73KRH.js.map +0 -7
- package/dist/dev/locales/nl-NL-F2257BLQ.js +0 -586
- package/dist/dev/locales/nl-NL-F2257BLQ.js.map +0 -7
- package/dist/dev/locales/nn-NO-NCORG7TS.js.map +0 -7
- package/dist/dev/locales/oc-FR-ATFBDMF6.js.map +0 -7
- package/dist/dev/locales/pa-IN-D2I375G4.js.map +0 -7
- package/dist/dev/locales/pl-PL-YJHOWAAW.js.map +0 -7
- package/dist/dev/locales/pt-BR-APOPYZJ7.js.map +0 -7
- package/dist/dev/locales/pt-PT-W56WCN7P.js +0 -586
- package/dist/dev/locales/pt-PT-W56WCN7P.js.map +0 -7
- package/dist/dev/locales/ro-RO-L575VRQA.js.map +0 -7
- package/dist/dev/locales/ru-RU-BLG6HZG5.js.map +0 -7
- package/dist/dev/locales/si-LK-KT7GGO6D.js.map +0 -7
- package/dist/dev/locales/sk-SK-DY6IPO5U.js.map +0 -7
- package/dist/dev/locales/sl-SI-5DZSRA47.js.map +0 -7
- package/dist/dev/locales/sv-SE-V32YHALQ.js.map +0 -7
- package/dist/dev/locales/ta-IN-5JRAGQAO.js.map +0 -7
- package/dist/dev/locales/th-TH-55ACRHDJ.js.map +0 -7
- package/dist/dev/locales/tr-TR-7QYBXDBO.js.map +0 -7
- package/dist/dev/locales/uk-UA-TJS2TMRH.js.map +0 -7
- package/dist/dev/locales/vi-VN-Y5CQ2EKQ.js +0 -586
- package/dist/dev/locales/vi-VN-Y5CQ2EKQ.js.map +0 -7
- package/dist/dev/locales/zh-CN-4MXUOFTH.js.map +0 -7
- package/dist/dev/locales/zh-HK-RBTGIU3U.js.map +0 -7
- package/dist/dev/locales/zh-TW-U5VF4CCU.js.map +0 -7
- package/dist/prod/chunk-I4UNSFV6.js +0 -12
- package/dist/prod/chunk-PYEQN4AH.js +0 -4
- package/dist/prod/chunk-Z3N5DIM6.js +0 -1
- package/dist/prod/locales/ar-SA-G6X2FPQ2.js +0 -10
- package/dist/prod/locales/az-AZ-76LH7QW2.js +0 -1
- package/dist/prod/locales/bg-BG-XCXSNQG7.js +0 -5
- package/dist/prod/locales/bn-BD-2XOGV67Q.js +0 -5
- package/dist/prod/locales/ca-ES-6MX7JW3Y.js +0 -8
- package/dist/prod/locales/cs-CZ-2BRQDIVT.js +0 -11
- package/dist/prod/locales/da-DK-5WZEPLOC.js +0 -5
- package/dist/prod/locales/de-DE-XR44H4JA.js +0 -8
- package/dist/prod/locales/el-GR-BZB4AONW.js +0 -10
- package/dist/prod/locales/en-TYY6KWIJ.js +0 -1
- package/dist/prod/locales/es-ES-U4NZUMDT.js +0 -9
- package/dist/prod/locales/eu-ES-A7QVB2H4.js +0 -11
- package/dist/prod/locales/fa-IR-HGAKTJCU.js +0 -8
- package/dist/prod/locales/fi-FI-Z5N7JZ37.js +0 -6
- package/dist/prod/locales/fr-FR-RHASNOE6.js +0 -9
- package/dist/prod/locales/gl-ES-HMX3MZ6V.js +0 -10
- package/dist/prod/locales/he-IL-6SHJWFNN.js +0 -10
- package/dist/prod/locales/hi-IN-IWLTKZ5I.js +0 -4
- package/dist/prod/locales/hu-HU-A5ZG7DT2.js +0 -7
- package/dist/prod/locales/id-ID-SAP4L64H.js +0 -10
- package/dist/prod/locales/it-IT-JPQ66NNP.js +0 -11
- package/dist/prod/locales/ja-JP-DBVTYXUO.js +0 -8
- package/dist/prod/locales/kaa-6HZHGXH3.js +0 -1
- package/dist/prod/locales/kab-KAB-ZGHBKWFO.js +0 -8
- package/dist/prod/locales/kk-KZ-P5N5QNE5.js +0 -1
- package/dist/prod/locales/km-KH-HSX4SM5Z.js +0 -11
- package/dist/prod/locales/ko-KR-MTYHY66A.js +0 -9
- package/dist/prod/locales/ku-TR-6OUDTVRD.js +0 -9
- package/dist/prod/locales/lt-LT-XHIRWOB4.js +0 -3
- package/dist/prod/locales/lv-LV-5QDEKY6T.js +0 -7
- package/dist/prod/locales/mr-IN-CRQNXWMA.js +0 -13
- package/dist/prod/locales/my-MM-5M5IBNSE.js +0 -1
- package/dist/prod/locales/nb-NO-T6EIAALU.js +0 -10
- package/dist/prod/locales/nl-NL-IS3SIHDZ.js +0 -8
- package/dist/prod/locales/nn-NO-6E72VCQL.js +0 -8
- package/dist/prod/locales/oc-FR-POXYY2M6.js +0 -8
- package/dist/prod/locales/pa-IN-N4M65BXN.js +0 -4
- package/dist/prod/locales/percentages-BXMCSKIN.js +0 -1
- package/dist/prod/locales/pl-PL-T2D74RX3.js +0 -9
- package/dist/prod/locales/pt-BR-5N22H2LF.js +0 -9
- package/dist/prod/locales/pt-PT-UZXXM6DQ.js +0 -9
- package/dist/prod/locales/ro-RO-JPDTUUEW.js +0 -11
- package/dist/prod/locales/ru-RU-B4JR7IUQ.js +0 -9
- package/dist/prod/locales/si-LK-N5RQ5JYF.js +0 -1
- package/dist/prod/locales/sk-SK-C5VTKIMK.js +0 -6
- package/dist/prod/locales/sl-SI-NN7IZMDC.js +0 -6
- package/dist/prod/locales/sv-SE-XGPEYMSR.js +0 -10
- package/dist/prod/locales/ta-IN-2NMHFXQM.js +0 -9
- package/dist/prod/locales/th-TH-HPSO5L25.js +0 -2
- package/dist/prod/locales/tr-TR-DEFEU3FU.js +0 -7
- package/dist/prod/locales/uk-UA-QMV73CPH.js +0 -6
- package/dist/prod/locales/vi-VN-M7AON7JQ.js +0 -5
- package/dist/prod/locales/zh-CN-LNUGB5OW.js +0 -10
- package/dist/prod/locales/zh-HK-E62DVLB3.js +0 -1
- package/dist/prod/locales/zh-TW-RAJ6MFWO.js +0 -9
- package/dist/types/excalidraw/charts.d.ts +0 -27
- /package/dist/dev/{chunk-CP5DND7P.js.map → chunk-Y3BTNZQY.js.map} +0 -0
- /package/dist/dev/data/{image-OLV524AK.js.map → image-E6NJP7SZ.js.map} +0 -0
- /package/dist/dev/locales/{en-SMAPCEOQ.js.map → en-WD25OMHJ.js.map} +0 -0
- /package/dist/dev/locales/{percentages-YKFLWNK2.js.map → percentages-ZRLRVMSI.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,87 @@ The change should be grouped under one of the below section and must contain PR
|
|
|
11
11
|
Please add the latest change on the top under the correct section.
|
|
12
12
|
-->
|
|
13
13
|
|
|
14
|
+
## Unreleased
|
|
15
|
+
|
|
16
|
+
## Excalidraw API
|
|
17
|
+
|
|
18
|
+
### Breaking changes
|
|
19
|
+
|
|
20
|
+
- Renamed the `excalidrawAPI` prop to `onExcalidrawAPI`.
|
|
21
|
+
- `onExcalidrawAPI` is now called on mount (instead of during constructor), and later on unmount (with `null` value). The API may be removed altogether in the future (you can use `onMount` & `onUmount` to manage the `ExcalidrawAPI` object (e.g. to cache it to a global state), already).
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
- Added `ExcalidrawAPI.isDestroyed` flag. Set to `true` once the editor unmounts. Calling any `get*` method, `onStateChange`, or `onEvent` on a destroyed API instance will throw in development and `console.error` in production. The `ExcalidrawAPI` will be reset to `null` on umount, but to be extra safe, you should check `ExcalidrawAPI.isDestroyed` before calling these methods to guard against subtle race conditions in your code.
|
|
26
|
+
|
|
27
|
+
- Added `onMount`, `onInitialize`, and `onUnmount` props. `onMount` receives `{ excalidrawAPI, container }` once the editor root is mounted. `onInitialize` fires once the initial scene has loaded. `onUnmount` fires just before unmounting.
|
|
28
|
+
|
|
29
|
+
- Same events are also accessible imperatively through `api.onEvent(...)`.
|
|
30
|
+
|
|
31
|
+
```tsx
|
|
32
|
+
<Excalidraw
|
|
33
|
+
onExcalidrawAPI={(api) => {
|
|
34
|
+
api.onEvent("editor:mount", ({ excalidrawAPI, container }) => {
|
|
35
|
+
console.log(container);
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
api.onEvent("editor:initialize").then((readyApi) => {
|
|
39
|
+
readyApi.scrollToContent();
|
|
40
|
+
});
|
|
41
|
+
}}
|
|
42
|
+
/>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Note that in future releases, most, if not all, `excalidrawAPI.on*` subscriptions will be removed in favor of `excalidrawAPI.onEvent(name)`.
|
|
46
|
+
|
|
47
|
+
- Also added `"editor:unmount"` lifecycle event, only accessible via `api.onEvent("editor:unmount")`.
|
|
48
|
+
|
|
49
|
+
- Exported `<ExcalidrawAPIProvider/>`, `useExcalidrawAPI()`, `useAppStateValue(prop | props | selectorFunction)`, and `useOnExcalidrawStateChange(prop | props | selectorFunction, callback)` from the package. The imperative API also now exposes `onStateChange(prop | props | selectorFunction, callback?)`, and `onEvent(name, callback)`.
|
|
50
|
+
|
|
51
|
+
```tsx
|
|
52
|
+
<ExcalidrawAPIProvider>
|
|
53
|
+
<Excalidraw />
|
|
54
|
+
<Logger />
|
|
55
|
+
</ExcalidrawAPIProvider>;
|
|
56
|
+
|
|
57
|
+
function Logger() {
|
|
58
|
+
// initially null before the ExcalidrawAPIProvider initializes ater
|
|
59
|
+
// <Excalidraw/> renders
|
|
60
|
+
// When <Excalidraw/> unmounts, is reset back to null
|
|
61
|
+
const api = useExcalidrawAPI();
|
|
62
|
+
|
|
63
|
+
useAppStateValue("viewModeEnabled", (viewModeEnabled) => {
|
|
64
|
+
console.log("view mode changed:", viewModeEnabled);
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
React.useEffect(() => {
|
|
68
|
+
if (api) {
|
|
69
|
+
console.log("editor instance id:", api.id);
|
|
70
|
+
}
|
|
71
|
+
}, [api]);
|
|
72
|
+
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
- Added `onExport` so host apps can delay JSON export until async work completes. The handler receives the export data plus an `AbortSignal`, and may return a `Promise` or an async generator that yields progress updates for the built-in toast UI.
|
|
78
|
+
|
|
79
|
+
```tsx
|
|
80
|
+
<Excalidraw
|
|
81
|
+
onExport={async function* (_type, { files }, { signal }) {
|
|
82
|
+
yield { type: "progress", message: "Waiting for images..." };
|
|
83
|
+
|
|
84
|
+
await waitForImagesToLoad(files, signal);
|
|
85
|
+
|
|
86
|
+
if (signal.aborted) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
yield { type: "progress", message: "Export ready", progress: 1 };
|
|
91
|
+
}}
|
|
92
|
+
/>
|
|
93
|
+
```
|
|
94
|
+
|
|
14
95
|
## Excalidraw Library
|
|
15
96
|
|
|
16
97
|
## 0.18.0 (2025-03-11)
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Excalidraw
|
|
2
2
|
|
|
3
|
-
**Excalidraw** is exported as a component
|
|
3
|
+
**Excalidraw** is exported as a React component that you can embed directly in your app.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Install the package together with its React peer dependencies.
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
npm install react react-dom @excalidraw/excalidraw
|
|
@@ -12,34 +12,131 @@ npm install react react-dom @excalidraw/excalidraw
|
|
|
12
12
|
yarn add react react-dom @excalidraw/excalidraw
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
> **Note**: If you
|
|
15
|
+
> **Note**: If you want to try unreleased changes, use `@excalidraw/excalidraw@next`.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
## Quick start
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
The minimum working setup has two easy-to-miss requirements:
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
1. Import the package CSS:
|
|
22
22
|
|
|
23
|
-
```
|
|
24
|
-
|
|
23
|
+
```ts
|
|
24
|
+
import "@excalidraw/excalidraw/index.css";
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
2. Render Excalidraw inside a container with a non-zero height.
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
```tsx
|
|
30
|
+
import { Excalidraw } from "@excalidraw/excalidraw";
|
|
31
|
+
import "@excalidraw/excalidraw/index.css";
|
|
32
|
+
|
|
33
|
+
export default function App() {
|
|
34
|
+
return (
|
|
35
|
+
<div style={{ height: "100vh" }}>
|
|
36
|
+
<Excalidraw />
|
|
37
|
+
</div>
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Excalidraw fills `100%` of the width and height of its parent. If the parent has no height, the canvas will not be visible.
|
|
43
|
+
|
|
44
|
+
## Next.js / SSR frameworks
|
|
45
|
+
|
|
46
|
+
Excalidraw should be rendered on the client. In SSR frameworks such as Next.js, use a client component and load it dynamically with SSR disabled.
|
|
47
|
+
|
|
48
|
+
```tsx
|
|
49
|
+
// app/components/ExcalidrawClient.tsx
|
|
50
|
+
"use client";
|
|
51
|
+
|
|
52
|
+
import { Excalidraw } from "@excalidraw/excalidraw";
|
|
53
|
+
import "@excalidraw/excalidraw/index.css";
|
|
54
|
+
|
|
55
|
+
export default function ExcalidrawClient() {
|
|
56
|
+
return (
|
|
57
|
+
<div style={{ height: "100vh" }}>
|
|
58
|
+
<Excalidraw />
|
|
59
|
+
</div>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
```tsx
|
|
65
|
+
// app/page.tsx
|
|
66
|
+
import dynamic from "next/dynamic";
|
|
67
|
+
|
|
68
|
+
const ExcalidrawClient = dynamic(
|
|
69
|
+
() => import("./components/ExcalidrawClient"),
|
|
70
|
+
{ ssr: false },
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
export default function Page() {
|
|
74
|
+
return <ExcalidrawClient />;
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
See the local examples for complete setups:
|
|
79
|
+
|
|
80
|
+
- [examples/with-nextjs](https://github.com/excalidraw/excalidraw/tree/master/examples/with-nextjs)
|
|
81
|
+
- [examples/with-script-in-browser](https://github.com/excalidraw/excalidraw/tree/master/examples/with-script-in-browser)
|
|
82
|
+
|
|
83
|
+
## LLM / agent tips
|
|
84
|
+
|
|
85
|
+
If an LLM or coding agent is setting up Excalidraw, these shortcuts usually save more time than re-prompting:
|
|
86
|
+
|
|
87
|
+
- Start with a plain `<Excalidraw />` in a `100vh` container. Add refs, `initialData`, persistence, or custom UI only after the base embed works.
|
|
88
|
+
- If the canvas is blank, check the CSS import and parent height first. Those are the two most common integration failures.
|
|
89
|
+
- In Next.js or other SSR frameworks, assume client-only rendering first. Use `"use client"` and `dynamic(..., { ssr: false })` before debugging hydration or `window is not defined` errors.
|
|
90
|
+
- If imports or entrypoints are unclear, inspect `node_modules/@excalidraw/excalidraw/package.json`. The installed package exports are the source of truth.
|
|
91
|
+
- Do not set `window.EXCALIDRAW_ASSET_PATH` unless you are intentionally self-hosting fonts/assets.
|
|
92
|
+
- When docs and generated code drift, copy the nearest working example from this repo, especially `examples/with-nextjs` or `examples/with-script-in-browser`.
|
|
93
|
+
|
|
94
|
+
## Migrating to `@excalidraw/excalidraw@0.18.x`
|
|
95
|
+
|
|
96
|
+
Version `0.18.x` removes the old `types/`-prefixed deep import paths. If you were importing types from `@excalidraw/excalidraw/types/...`, switch to the new type-only subpaths below.
|
|
97
|
+
|
|
98
|
+
| Old path | New path |
|
|
99
|
+
| --- | --- |
|
|
100
|
+
| `@excalidraw/excalidraw/types/data/transform.js` | `@excalidraw/excalidraw/element/transform` |
|
|
101
|
+
| `@excalidraw/excalidraw/types/data/types.js` | `@excalidraw/excalidraw/data/types` |
|
|
102
|
+
| `@excalidraw/excalidraw/types/element/types.js` | `@excalidraw/excalidraw/element/types` |
|
|
103
|
+
| `@excalidraw/excalidraw/types/utility-types.js` | `@excalidraw/excalidraw/common/utility-types` |
|
|
104
|
+
| `@excalidraw/excalidraw/types/types.js` | `@excalidraw/excalidraw/types` |
|
|
105
|
+
|
|
106
|
+
Drop the `.js` extension. The new package `exports` map resolves these paths without it.
|
|
107
|
+
|
|
108
|
+
These deep subpaths are for `import type` only. Runtime imports should come from the package root, plus `@excalidraw/excalidraw/index.css` for styles.
|
|
109
|
+
|
|
110
|
+
For example:
|
|
111
|
+
|
|
112
|
+
```ts
|
|
113
|
+
import { exportToSvg } from "@excalidraw/excalidraw";
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Self-hosting fonts
|
|
117
|
+
|
|
118
|
+
By default, Excalidraw downloads the fonts it needs from the [CDN](https://esm.run/@excalidraw/excalidraw/dist/prod).
|
|
119
|
+
|
|
120
|
+
For self-hosting, copy the contents of `node_modules/@excalidraw/excalidraw/dist/prod/fonts` into the path where your app serves static assets, for example `public/`. Then set `window.EXCALIDRAW_ASSET_PATH` to that same path:
|
|
121
|
+
|
|
122
|
+
```html
|
|
123
|
+
<script>
|
|
124
|
+
window.EXCALIDRAW_ASSET_PATH = "/";
|
|
125
|
+
</script>
|
|
126
|
+
```
|
|
30
127
|
|
|
31
128
|
## Demo
|
|
32
129
|
|
|
33
|
-
|
|
130
|
+
Try the [CodeSandbox example](https://codesandbox.io/p/sandbox/github/excalidraw/excalidraw/tree/master/examples/with-script-in-browser).
|
|
34
131
|
|
|
35
132
|
## Integration
|
|
36
133
|
|
|
37
|
-
|
|
134
|
+
Read the [integration docs](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/integration).
|
|
38
135
|
|
|
39
136
|
## API
|
|
40
137
|
|
|
41
|
-
|
|
138
|
+
Read the [API docs](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api).
|
|
42
139
|
|
|
43
140
|
## Contributing
|
|
44
141
|
|
|
45
|
-
|
|
142
|
+
Read the [contributing docs](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/contributing).
|
|
@@ -3,6 +3,10 @@ var labels = {
|
|
|
3
3
|
paste: "Paste",
|
|
4
4
|
pasteAsPlaintext: "Paste as plaintext",
|
|
5
5
|
pasteCharts: "Paste charts",
|
|
6
|
+
chartType_bar: "Bar chart",
|
|
7
|
+
chartType_line: "Line chart",
|
|
8
|
+
chartType_radar: "Radar chart",
|
|
9
|
+
chartType_plaintext: "Plain text",
|
|
6
10
|
selectAll: "Select all",
|
|
7
11
|
multiSelect: "Add element to selection",
|
|
8
12
|
moveCanvas: "Move canvas",
|
|
@@ -49,7 +53,14 @@ var labels = {
|
|
|
49
53
|
arrowhead_crowfoot_many: "Crow's foot (many)",
|
|
50
54
|
arrowhead_crowfoot_one: "Crow's foot (one)",
|
|
51
55
|
arrowhead_crowfoot_one_or_many: "Crow's foot (one or many)",
|
|
56
|
+
arrowhead_cardinality_one: "Cardinality (one)",
|
|
57
|
+
arrowhead_cardinality_many: "Cardinality (many)",
|
|
58
|
+
arrowhead_cardinality_one_or_many: "Cardinality (one or many)",
|
|
59
|
+
arrowhead_cardinality_exactly_one: "Cardinality (exactly one)",
|
|
60
|
+
arrowhead_cardinality_zero_or_one: "Cardinality (zero or one)",
|
|
61
|
+
arrowhead_cardinality_zero_or_many: "Cardinality (zero or many)",
|
|
52
62
|
more_options: "More options",
|
|
63
|
+
cardinality: "Cardinality",
|
|
53
64
|
arrowtypes: "Arrow type",
|
|
54
65
|
arrowtype_sharp: "Sharp arrow",
|
|
55
66
|
arrowtype_round: "Curved arrow",
|
|
@@ -171,7 +182,14 @@ var labels = {
|
|
|
171
182
|
linkToElement: "Link to object",
|
|
172
183
|
wrapSelectionInFrame: "Wrap selection in frame",
|
|
173
184
|
tab: "Tab",
|
|
174
|
-
shapeSwitch: "Switch shape"
|
|
185
|
+
shapeSwitch: "Switch shape",
|
|
186
|
+
preferences: "Preferences",
|
|
187
|
+
preferences_toolLock: "Tool lock",
|
|
188
|
+
boxSelectionMode: "Select on",
|
|
189
|
+
boxSelectionContain: "Wrap",
|
|
190
|
+
boxSelectionOverlap: "Overlap",
|
|
191
|
+
arrowBinding: "Arrow binding",
|
|
192
|
+
midpointSnapping: "Snap to midpoints"
|
|
175
193
|
};
|
|
176
194
|
var elementLink = {
|
|
177
195
|
title: "Link to object",
|
|
@@ -181,7 +199,13 @@ var elementLink = {
|
|
|
181
199
|
var library = {
|
|
182
200
|
noItems: "No items added yet...",
|
|
183
201
|
hint_emptyLibrary: "Select an item on canvas to add it here, or install a library from the public repository, below.",
|
|
184
|
-
hint_emptyPrivateLibrary: "Select an item on canvas to add it here."
|
|
202
|
+
hint_emptyPrivateLibrary: "Select an item on canvas to add it here.",
|
|
203
|
+
search: {
|
|
204
|
+
inputPlaceholder: "Search library",
|
|
205
|
+
heading: "Library matches",
|
|
206
|
+
noResults: "No matching items found...",
|
|
207
|
+
clearSearch: "Clear search"
|
|
208
|
+
}
|
|
185
209
|
};
|
|
186
210
|
var search = {
|
|
187
211
|
title: "Find on canvas",
|
|
@@ -224,10 +248,11 @@ var buttons = {
|
|
|
224
248
|
objectsSnapMode: "Snap to objects",
|
|
225
249
|
exitZenMode: "Exit zen mode",
|
|
226
250
|
cancel: "Cancel",
|
|
251
|
+
saveLibNames: "Save name(s) and exit",
|
|
227
252
|
clear: "Clear",
|
|
228
253
|
remove: "Remove",
|
|
229
254
|
embed: "Toggle embedding",
|
|
230
|
-
publishLibrary: "
|
|
255
|
+
publishLibrary: "Rename or publish",
|
|
231
256
|
submit: "Submit",
|
|
232
257
|
confirm: "Confirm",
|
|
233
258
|
embeddableInteractionButton: "Click to interact"
|
|
@@ -253,7 +278,8 @@ var alerts = {
|
|
|
253
278
|
resetLibrary: "This will clear your library. Are you sure?",
|
|
254
279
|
removeItemsFromsLibrary: "Delete {{count}} item(s) from library?",
|
|
255
280
|
invalidEncryptionKey: "Encryption key must be of 22 characters. Live collaboration is disabled.",
|
|
256
|
-
collabOfflineWarning: "No internet connection available.\nYour changes will not be saved!"
|
|
281
|
+
collabOfflineWarning: "No internet connection available.\nYour changes will not be saved!",
|
|
282
|
+
localStorageQuotaExceeded: "Browser storage quota exceeded. Changes will not be saved."
|
|
257
283
|
};
|
|
258
284
|
var errors = {
|
|
259
285
|
unsupportedFileType: "Unsupported file type.",
|
|
@@ -329,33 +355,34 @@ var headings = {
|
|
|
329
355
|
shapes: "Shapes"
|
|
330
356
|
};
|
|
331
357
|
var hints = {
|
|
332
|
-
dismissSearch: "
|
|
333
|
-
canvasPanning: "To move canvas, hold
|
|
358
|
+
dismissSearch: "{{shortcut}} to dismiss search",
|
|
359
|
+
canvasPanning: "To move canvas, hold {{shortcut_1}} or {{shortcut_2}} while dragging, or use the hand tool",
|
|
334
360
|
linearElement: "Click to start multiple points, drag for single line",
|
|
335
|
-
arrowTool: "Click to start multiple points, drag for single line. Press {{
|
|
361
|
+
arrowTool: "Click to start multiple points, drag for single line. Press {{shortcut}} again to change arrow type.",
|
|
362
|
+
arrowBindModifiers: "Hold {{shortcut_1}} to disable binding, or {{shortcut_2}} to bind at a fixed point",
|
|
336
363
|
freeDraw: "Click and drag, release when you're finished",
|
|
337
364
|
text: "Tip: you can also add text by double-clicking anywhere with the selection tool",
|
|
338
365
|
embeddable: "Click-drag to create a website embed",
|
|
339
|
-
text_selected: "Double-click or press
|
|
340
|
-
text_editing: "Press
|
|
341
|
-
linearElementMulti: "Click on last point or press
|
|
342
|
-
lockAngle: "You can constrain angle by holding
|
|
343
|
-
resize: "You can constrain proportions by holding
|
|
344
|
-
resizeImage: "You can resize freely by holding
|
|
345
|
-
rotate: "You can constrain angles by holding
|
|
346
|
-
lineEditor_info: "Hold
|
|
347
|
-
lineEditor_line_info: "Double-click or press
|
|
348
|
-
lineEditor_pointSelected: "Press
|
|
349
|
-
lineEditor_nothingSelected: "Select a point to edit (hold
|
|
366
|
+
text_selected: "Double-click or press {{shortcut}} to edit text",
|
|
367
|
+
text_editing: "Press {{shortcut_1}} or {{shortcut_2}} to finish editing",
|
|
368
|
+
linearElementMulti: "Click on last point or press {{shortcut_1}} or {{shortcut_2}} to finish",
|
|
369
|
+
lockAngle: "You can constrain angle by holding {{shortcut}}",
|
|
370
|
+
resize: "You can constrain proportions by holding {{shortcut_1}} while resizing,\nhold {{shortcut_2}} to resize from the center",
|
|
371
|
+
resizeImage: "You can resize freely by holding {{shortcut_1}},\nhold {{shortcut_2}} to resize from the center",
|
|
372
|
+
rotate: "You can constrain angles by holding {{shortcut}} while rotating",
|
|
373
|
+
lineEditor_info: "Hold {{shortcut_1}} and Double-click or press {{shortcut_2}} to edit points",
|
|
374
|
+
lineEditor_line_info: "Double-click or press {{shortcut}} to edit points",
|
|
375
|
+
lineEditor_pointSelected: "Press {{shortcut_1}} to remove point(s),\n{{shortcut_2}} to duplicate, or drag to move",
|
|
376
|
+
lineEditor_nothingSelected: "Select a point to edit (hold {{shortcut_1}} to select multiple),\nor hold {{shortcut_2}} and click to add new points",
|
|
350
377
|
publishLibrary: "Publish your own library",
|
|
351
|
-
bindTextToElement: "
|
|
352
|
-
createFlowchart: "
|
|
353
|
-
deepBoxSelect: "Hold
|
|
354
|
-
eraserRevert: "Hold
|
|
378
|
+
bindTextToElement: "{{shortcut}} to add text",
|
|
379
|
+
createFlowchart: "{{shortcut}} to create a flowchart",
|
|
380
|
+
deepBoxSelect: "Hold {{shortcut}} to deep select, and to prevent dragging",
|
|
381
|
+
eraserRevert: "Hold {{shortcut}} to revert the elements marked for deletion",
|
|
355
382
|
firefox_clipboard_write: 'This feature can likely be enabled by setting the "dom.events.asyncClipboard.clipboardItem" flag to "true". To change the browser flags in Firefox, visit the "about:config" page.',
|
|
356
|
-
disableSnapping: "Hold
|
|
357
|
-
enterCropEditor: "Double click the image or press
|
|
358
|
-
leaveCropEditor: "Click outside the image or press
|
|
383
|
+
disableSnapping: "Hold {{shortcut}} to disable snapping",
|
|
384
|
+
enterCropEditor: "Double click the image or press {{shortcut}} to crop the image",
|
|
385
|
+
leaveCropEditor: "Click outside the image or press {{shortcut_1}} or {{shortcut_2}} to finish cropping"
|
|
359
386
|
};
|
|
360
387
|
var canvasError = {
|
|
361
388
|
cannotShowPreview: "Cannot show preview",
|
|
@@ -386,6 +413,10 @@ var roomDialog = {
|
|
|
386
413
|
var errorDialog = {
|
|
387
414
|
title: "Error"
|
|
388
415
|
};
|
|
416
|
+
var progressDialog = {
|
|
417
|
+
title: "Saving",
|
|
418
|
+
defaultMessage: "Preparing to save..."
|
|
419
|
+
};
|
|
389
420
|
var exportDialog = {
|
|
390
421
|
disk_title: "Save to disk",
|
|
391
422
|
disk_details: "Export the scene data to a file from which you can import later.",
|
|
@@ -548,7 +579,9 @@ var colors = {
|
|
|
548
579
|
};
|
|
549
580
|
var welcomeScreen = {
|
|
550
581
|
app: {
|
|
551
|
-
center_heading: "
|
|
582
|
+
center_heading: "Your drawings are saved in your browser's storage.",
|
|
583
|
+
center_heading_line2: "Browser storage can be cleared unexpectedly.",
|
|
584
|
+
center_heading_line3: "Save your work to a file regularly to avoid losing it.",
|
|
552
585
|
center_heading_plus: "Did you want to go to the Excalidraw+ instead?",
|
|
553
586
|
menuHint: "Export, preferences, languages, ..."
|
|
554
587
|
},
|
|
@@ -601,9 +634,58 @@ var overwriteConfirm = {
|
|
|
601
634
|
var mermaid = {
|
|
602
635
|
title: "Mermaid to Excalidraw",
|
|
603
636
|
button: "Insert",
|
|
604
|
-
description: "Currently only <flowchartLink>Flowchart</flowchartLink
|
|
637
|
+
description: "Currently only <flowchartLink>Flowchart</flowchartLink>, <sequenceLink>Sequence</sequenceLink>, <classLink>Class</classLink>, and <erdLink>Entity Relationship</erdLink> Diagrams are supported. The other types will be rendered as image in Excalidraw.",
|
|
605
638
|
syntax: "Mermaid Syntax",
|
|
606
|
-
preview: "Preview"
|
|
639
|
+
preview: "Preview",
|
|
640
|
+
label: "Mermaid",
|
|
641
|
+
inputPlaceholder: "Write Mermaid diagram defintion here...",
|
|
642
|
+
autoFixAvailable: "Auto-fix is available"
|
|
643
|
+
};
|
|
644
|
+
var ttd = {
|
|
645
|
+
error: "Error!"
|
|
646
|
+
};
|
|
647
|
+
var chat = {
|
|
648
|
+
inputPlaceholder: "Start typing your diagram idea here... ({{shortcut}} for new line)",
|
|
649
|
+
inputPlaceholderWithMessages: "Continue refining your diagram...",
|
|
650
|
+
generating: "Generating...",
|
|
651
|
+
rateLimitRemaining: "{{count}} requests left today",
|
|
652
|
+
role: {
|
|
653
|
+
user: "You",
|
|
654
|
+
assistant: "AI Assistant",
|
|
655
|
+
system: "System"
|
|
656
|
+
},
|
|
657
|
+
aiBeta: "AI Beta",
|
|
658
|
+
label: "Chat",
|
|
659
|
+
menu: "Menu",
|
|
660
|
+
newChat: "New Chat",
|
|
661
|
+
deleteChat: "Delete chat",
|
|
662
|
+
deleteMessage: "Delete message",
|
|
663
|
+
viewAsMermaid: "View as Mermaid",
|
|
664
|
+
placeholder: {
|
|
665
|
+
title: "Let's design your diagram",
|
|
666
|
+
description: "Describe the diagram you want to create, and we'll generate it for you.",
|
|
667
|
+
hint: "At the moment we know Flowchart, Sequence, Class, State, and Entity Relationship diagrams."
|
|
668
|
+
},
|
|
669
|
+
preview: "Preview",
|
|
670
|
+
insert: "Insert",
|
|
671
|
+
retry: "Retry",
|
|
672
|
+
errors: {
|
|
673
|
+
promptTooShort: "Prompt is too short (min {{min}} characters)",
|
|
674
|
+
promptTooLong: "Prompt is too long (max {{max}} characters)",
|
|
675
|
+
generationFailed: "Generation failed",
|
|
676
|
+
invalidDiagram: "Generated an invalid diagram :(. You may edit manually, retry with auto-fix, or try a different prompt.",
|
|
677
|
+
fixInMermaid: "Edit Mermaid manually \u2192",
|
|
678
|
+
aiRepair: "Regenerate (auto-fix) \u2192",
|
|
679
|
+
requestAborted: "Request aborted",
|
|
680
|
+
requestFailed: "Request failed",
|
|
681
|
+
mermaidParseError: "Mermaid syntax error"
|
|
682
|
+
},
|
|
683
|
+
rateLimit: {
|
|
684
|
+
messageLimit: "You've hit your AI limit on the free plan. Try out Excalidraw+ for more or come back tomorrow.",
|
|
685
|
+
generalRateLimit: "Hold your horses, you're too fast for us! Please wait a moment before trying again.",
|
|
686
|
+
messageLimitInputPlaceholder: "You've reached your message limit"
|
|
687
|
+
},
|
|
688
|
+
upsellBtnLabel: "Upgrade to Plus"
|
|
607
689
|
};
|
|
608
690
|
var quickSearch = {
|
|
609
691
|
placeholder: "Quick search"
|
|
@@ -641,6 +723,18 @@ var commandPalette = {
|
|
|
641
723
|
itemNotAvailable: "Command is not available...",
|
|
642
724
|
shortcutHint: "For Command palette, use {{shortcut}}"
|
|
643
725
|
};
|
|
726
|
+
var keys = {
|
|
727
|
+
ctrl: "Ctrl",
|
|
728
|
+
option: "Option",
|
|
729
|
+
cmd: "Cmd",
|
|
730
|
+
alt: "Alt",
|
|
731
|
+
escape: "Esc",
|
|
732
|
+
enter: "Enter",
|
|
733
|
+
shift: "Shift",
|
|
734
|
+
spacebar: "Space",
|
|
735
|
+
delete: "Delete",
|
|
736
|
+
mmb: "Scroll wheel"
|
|
737
|
+
};
|
|
644
738
|
var en_default = {
|
|
645
739
|
labels,
|
|
646
740
|
elementLink,
|
|
@@ -658,6 +752,7 @@ var en_default = {
|
|
|
658
752
|
shareDialog,
|
|
659
753
|
roomDialog,
|
|
660
754
|
errorDialog,
|
|
755
|
+
progressDialog,
|
|
661
756
|
exportDialog,
|
|
662
757
|
helpDialog,
|
|
663
758
|
clearCanvasDialog,
|
|
@@ -673,10 +768,13 @@ var en_default = {
|
|
|
673
768
|
colorPicker,
|
|
674
769
|
overwriteConfirm,
|
|
675
770
|
mermaid,
|
|
771
|
+
ttd,
|
|
772
|
+
chat,
|
|
676
773
|
quickSearch,
|
|
677
774
|
fontList,
|
|
678
775
|
userList,
|
|
679
|
-
commandPalette
|
|
776
|
+
commandPalette,
|
|
777
|
+
keys
|
|
680
778
|
};
|
|
681
779
|
|
|
682
780
|
export {
|
|
@@ -696,6 +794,7 @@ export {
|
|
|
696
794
|
shareDialog,
|
|
697
795
|
roomDialog,
|
|
698
796
|
errorDialog,
|
|
797
|
+
progressDialog,
|
|
699
798
|
exportDialog,
|
|
700
799
|
helpDialog,
|
|
701
800
|
clearCanvasDialog,
|
|
@@ -711,10 +810,13 @@ export {
|
|
|
711
810
|
colorPicker,
|
|
712
811
|
overwriteConfirm,
|
|
713
812
|
mermaid,
|
|
813
|
+
ttd,
|
|
814
|
+
chat,
|
|
714
815
|
quickSearch,
|
|
715
816
|
fontList,
|
|
716
817
|
userList,
|
|
717
818
|
commandPalette,
|
|
819
|
+
keys,
|
|
718
820
|
en_default
|
|
719
821
|
};
|
|
720
|
-
//# sourceMappingURL=chunk-
|
|
822
|
+
//# sourceMappingURL=chunk-4JOINNOK.js.map
|