@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.
Files changed (589) hide show
  1. package/CHANGELOG.md +81 -0
  2. package/README.md +111 -14
  3. package/dist/dev/{chunk-QF5FRM6O.js → chunk-4JOINNOK.js} +132 -30
  4. package/dist/dev/chunk-4JOINNOK.js.map +7 -0
  5. package/dist/dev/{chunk-FB2NA5UG.js → chunk-6JJSWC4C.js} +1 -1
  6. package/dist/dev/{chunk-FB2NA5UG.js.map → chunk-6JJSWC4C.js.map} +2 -2
  7. package/dist/dev/{chunk-LJB4UXX2.js → chunk-FZXBOFJP.js} +357 -505
  8. package/dist/dev/chunk-FZXBOFJP.js.map +7 -0
  9. package/dist/dev/chunk-URPEKBQ3.js +69 -0
  10. package/dist/dev/chunk-URPEKBQ3.js.map +7 -0
  11. package/dist/dev/{chunk-CP5DND7P.js → chunk-Y3BTNZQY.js} +2 -2
  12. package/dist/dev/components/TTDDialog/CodeMirrorEditor-XRUBL3LG.js +259 -0
  13. package/dist/dev/components/TTDDialog/CodeMirrorEditor-XRUBL3LG.js.map +7 -0
  14. package/dist/dev/data/{image-OLV524AK.js → image-E6NJP7SZ.js} +3 -3
  15. package/dist/dev/index.css +1804 -604
  16. package/dist/dev/index.css.map +3 -3
  17. package/dist/dev/index.js +16521 -9936
  18. package/dist/dev/index.js.map +4 -4
  19. package/dist/dev/locales/{ar-SA-XORAP2EK.js → ar-SA-AGVJN2FU.js} +354 -142
  20. package/dist/dev/locales/ar-SA-AGVJN2FU.js.map +7 -0
  21. package/dist/dev/locales/{az-AZ-NAUU3Z4Y.js → az-AZ-62IXPX5D.js} +296 -84
  22. package/dist/dev/locales/az-AZ-62IXPX5D.js.map +7 -0
  23. package/dist/dev/locales/{bg-BG-AAABLFCY.js → bg-BG-UBDZF4KA.js} +284 -72
  24. package/dist/dev/locales/bg-BG-UBDZF4KA.js.map +7 -0
  25. package/dist/dev/locales/{bn-BD-PM4AC5WG.js → bn-BD-4TAUVZOD.js} +264 -52
  26. package/dist/dev/locales/bn-BD-4TAUVZOD.js.map +7 -0
  27. package/dist/dev/locales/bn-IN-PUGL2LDE.js +798 -0
  28. package/dist/dev/locales/bn-IN-PUGL2LDE.js.map +7 -0
  29. package/dist/dev/locales/{ca-ES-YNNMFRQX.js → ca-ES-GEEW5L7T.js} +331 -119
  30. package/dist/dev/locales/ca-ES-GEEW5L7T.js.map +7 -0
  31. package/dist/dev/locales/{cs-CZ-DGZA5IKG.js → cs-CZ-LNVE3QM5.js} +284 -72
  32. package/dist/dev/locales/cs-CZ-LNVE3QM5.js.map +7 -0
  33. package/dist/dev/locales/{da-DK-N76F4QAJ.js → da-DK-CAYJG7FJ.js} +353 -141
  34. package/dist/dev/locales/da-DK-CAYJG7FJ.js.map +7 -0
  35. package/dist/dev/locales/de-CH-GCXOD4LK.js +798 -0
  36. package/dist/dev/locales/de-CH-GCXOD4LK.js.map +7 -0
  37. package/dist/dev/locales/{de-DE-DMRXZ2SZ.js → de-DE-CGDBECYD.js} +255 -43
  38. package/dist/dev/locales/de-DE-CGDBECYD.js.map +7 -0
  39. package/dist/dev/locales/{el-GR-HIKPLEXI.js → el-GR-G5QZC24A.js} +329 -117
  40. package/dist/dev/locales/el-GR-G5QZC24A.js.map +7 -0
  41. package/dist/dev/locales/{en-SMAPCEOQ.js → en-WD25OMHJ.js} +10 -2
  42. package/dist/dev/locales/{es-ES-AQYVXC32.js → es-ES-UMEOH76W.js} +268 -56
  43. package/dist/dev/locales/es-ES-UMEOH76W.js.map +7 -0
  44. package/dist/dev/locales/{eu-ES-3TOEU5DE.js → eu-ES-IWRZXJC5.js} +266 -54
  45. package/dist/dev/locales/eu-ES-IWRZXJC5.js.map +7 -0
  46. package/dist/dev/locales/{fa-IR-527GAKUP.js → fa-IR-QOYVIIJA.js} +341 -129
  47. package/dist/dev/locales/fa-IR-QOYVIIJA.js.map +7 -0
  48. package/dist/dev/locales/{fi-FI-M3WLVDFP.js → fi-FI-BXRW65OA.js} +295 -83
  49. package/dist/dev/locales/fi-FI-BXRW65OA.js.map +7 -0
  50. package/dist/dev/locales/{fr-FR-YE4VDJFI.js → fr-FR-R2QH5VCW.js} +259 -47
  51. package/dist/dev/locales/fr-FR-R2QH5VCW.js.map +7 -0
  52. package/dist/dev/locales/{gl-ES-KMXUYGUN.js → gl-ES-4ES3ZADP.js} +267 -55
  53. package/dist/dev/locales/gl-ES-4ES3ZADP.js.map +7 -0
  54. package/dist/dev/locales/he-IL-TRQRRYPH.js +798 -0
  55. package/dist/dev/locales/he-IL-TRQRRYPH.js.map +7 -0
  56. package/dist/dev/locales/hi-IN-U46BOJEC.js +798 -0
  57. package/dist/dev/locales/hi-IN-U46BOJEC.js.map +7 -0
  58. package/dist/dev/locales/{hu-HU-VIYZI3X4.js → hu-HU-JDULJ6XL.js} +291 -79
  59. package/dist/dev/locales/hu-HU-JDULJ6XL.js.map +7 -0
  60. package/dist/dev/locales/{id-ID-22TWZNLA.js → id-ID-BLIXNCUT.js} +300 -88
  61. package/dist/dev/locales/id-ID-BLIXNCUT.js.map +7 -0
  62. package/dist/dev/locales/{it-IT-MDEQ2SG3.js → it-IT-6TBW7RUK.js} +258 -46
  63. package/dist/dev/locales/it-IT-6TBW7RUK.js.map +7 -0
  64. package/dist/dev/locales/{ja-JP-K2DI4W6B.js → ja-JP-6HYAQFYX.js} +302 -90
  65. package/dist/dev/locales/ja-JP-6HYAQFYX.js.map +7 -0
  66. package/dist/dev/locales/{kaa-6BPSNM3R.js → kaa-Z5UP62XJ.js} +257 -45
  67. package/dist/dev/locales/kaa-Z5UP62XJ.js.map +7 -0
  68. package/dist/dev/locales/{kab-KAB-2S7ZURK7.js → kab-KAB-Z7STWQKS.js} +266 -54
  69. package/dist/dev/locales/kab-KAB-Z7STWQKS.js.map +7 -0
  70. package/dist/dev/locales/{kk-KZ-UJPYGRQQ.js → kk-KZ-BWHY45DX.js} +230 -18
  71. package/dist/dev/locales/kk-KZ-BWHY45DX.js.map +7 -0
  72. package/dist/dev/locales/{km-KH-M5T5JKUE.js → km-KH-HGLNWNRU.js} +254 -42
  73. package/dist/dev/locales/km-KH-HGLNWNRU.js.map +7 -0
  74. package/dist/dev/locales/{ko-KR-RQX37SNF.js → ko-KR-CO36WKPC.js} +273 -61
  75. package/dist/dev/locales/ko-KR-CO36WKPC.js.map +7 -0
  76. package/dist/dev/locales/{ku-TR-5XJDIERL.js → ku-TR-AACVIARC.js} +254 -42
  77. package/dist/dev/locales/ku-TR-AACVIARC.js.map +7 -0
  78. package/dist/dev/locales/{lt-LT-MGUBX6CA.js → lt-LT-CFYYFLDV.js} +234 -22
  79. package/dist/dev/locales/lt-LT-CFYYFLDV.js.map +7 -0
  80. package/dist/dev/locales/{lv-LV-MD7N5VHD.js → lv-LV-QCBBOFFU.js} +252 -40
  81. package/dist/dev/locales/lv-LV-QCBBOFFU.js.map +7 -0
  82. package/dist/dev/locales/{mr-IN-4XWMNGQC.js → mr-IN-B2CM5GK5.js} +260 -48
  83. package/dist/dev/locales/mr-IN-B2CM5GK5.js.map +7 -0
  84. package/dist/dev/locales/{my-MM-O4Z74GN5.js → my-MM-756BNN36.js} +236 -24
  85. package/dist/dev/locales/my-MM-756BNN36.js.map +7 -0
  86. package/dist/dev/locales/{nb-NO-BMB73KRH.js → nb-NO-5BLHQI4J.js} +275 -63
  87. package/dist/dev/locales/nb-NO-5BLHQI4J.js.map +7 -0
  88. package/dist/dev/locales/nl-NL-225BLGAH.js +798 -0
  89. package/dist/dev/locales/nl-NL-225BLGAH.js.map +7 -0
  90. package/dist/dev/locales/{nn-NO-NCORG7TS.js → nn-NO-4J7MR6GH.js} +256 -44
  91. package/dist/dev/locales/nn-NO-4J7MR6GH.js.map +7 -0
  92. package/dist/dev/locales/{oc-FR-ATFBDMF6.js → oc-FR-XCETH7KF.js} +276 -64
  93. package/dist/dev/locales/oc-FR-XCETH7KF.js.map +7 -0
  94. package/dist/dev/locales/{pa-IN-D2I375G4.js → pa-IN-32NBAN5L.js} +246 -34
  95. package/dist/dev/locales/pa-IN-32NBAN5L.js.map +7 -0
  96. package/dist/dev/locales/{percentages-YKFLWNK2.js → percentages-ZRLRVMSI.js} +2 -2
  97. package/dist/dev/locales/{pl-PL-YJHOWAAW.js → pl-PL-R6OJ54BT.js} +270 -58
  98. package/dist/dev/locales/pl-PL-R6OJ54BT.js.map +7 -0
  99. package/dist/dev/locales/{pt-BR-APOPYZJ7.js → pt-BR-7AFGAKGR.js} +292 -80
  100. package/dist/dev/locales/pt-BR-7AFGAKGR.js.map +7 -0
  101. package/dist/dev/locales/pt-PT-S6BMW6MY.js +798 -0
  102. package/dist/dev/locales/pt-PT-S6BMW6MY.js.map +7 -0
  103. package/dist/dev/locales/{ro-RO-L575VRQA.js → ro-RO-4JVGQHS2.js} +259 -47
  104. package/dist/dev/locales/ro-RO-4JVGQHS2.js.map +7 -0
  105. package/dist/dev/locales/{ru-RU-BLG6HZG5.js → ru-RU-IESI752T.js} +310 -98
  106. package/dist/dev/locales/ru-RU-IESI752T.js.map +7 -0
  107. package/dist/dev/locales/si-LK-H75E7PKD.js +798 -0
  108. package/dist/dev/locales/si-LK-H75E7PKD.js.map +7 -0
  109. package/dist/dev/locales/{sk-SK-DY6IPO5U.js → sk-SK-EUK2NR2F.js} +256 -44
  110. package/dist/dev/locales/sk-SK-EUK2NR2F.js.map +7 -0
  111. package/dist/dev/locales/{sl-SI-5DZSRA47.js → sl-SI-AKW7R5PW.js} +253 -41
  112. package/dist/dev/locales/sl-SI-AKW7R5PW.js.map +7 -0
  113. package/dist/dev/locales/{sv-SE-V32YHALQ.js → sv-SE-QIBOOXLJ.js} +258 -46
  114. package/dist/dev/locales/sv-SE-QIBOOXLJ.js.map +7 -0
  115. package/dist/dev/locales/{ta-IN-5JRAGQAO.js → ta-IN-LBK2NQ5K.js} +311 -99
  116. package/dist/dev/locales/ta-IN-LBK2NQ5K.js.map +7 -0
  117. package/dist/dev/locales/{th-TH-55ACRHDJ.js → th-TH-YJ2E6GVT.js} +343 -131
  118. package/dist/dev/locales/th-TH-YJ2E6GVT.js.map +7 -0
  119. package/dist/dev/locales/{tr-TR-7QYBXDBO.js → tr-TR-Y5GO2XJW.js} +310 -98
  120. package/dist/dev/locales/tr-TR-Y5GO2XJW.js.map +7 -0
  121. package/dist/dev/locales/{uk-UA-TJS2TMRH.js → uk-UA-XYAFHHJW.js} +284 -72
  122. package/dist/dev/locales/uk-UA-XYAFHHJW.js.map +7 -0
  123. package/dist/dev/locales/{si-LK-KT7GGO6D.js → uz-UZ-LF3CBRYE.js} +267 -55
  124. package/dist/dev/locales/uz-UZ-LF3CBRYE.js.map +7 -0
  125. package/dist/dev/locales/vi-VN-WDPZEUOJ.js +798 -0
  126. package/dist/dev/locales/vi-VN-WDPZEUOJ.js.map +7 -0
  127. package/dist/dev/locales/{zh-CN-4MXUOFTH.js → zh-CN-SZ37453H.js} +255 -43
  128. package/dist/dev/locales/zh-CN-SZ37453H.js.map +7 -0
  129. package/dist/dev/locales/{zh-HK-RBTGIU3U.js → zh-HK-QDQ5QNBC.js} +230 -18
  130. package/dist/dev/locales/zh-HK-QDQ5QNBC.js.map +7 -0
  131. package/dist/dev/locales/{zh-TW-U5VF4CCU.js → zh-TW-CYU6GFBV.js} +260 -48
  132. package/dist/dev/locales/zh-TW-CYU6GFBV.js.map +7 -0
  133. package/dist/dev/subset-shared.chunk.js +2 -2
  134. package/dist/dev/subset-worker.chunk.js +2 -2
  135. package/dist/prod/chunk-3PELD44J.js +1 -0
  136. package/dist/prod/chunk-LOOWOR4L.js +12 -0
  137. package/dist/prod/chunk-YKPWT25G.js +4 -0
  138. package/dist/prod/{chunk-LS7FJGPW.js → chunk-Z5NKEFVG.js} +8 -8
  139. package/dist/prod/components/TTDDialog/CodeMirrorEditor-UCMRAMCV.js +1 -0
  140. package/dist/prod/data/{image-IFOCRD4I.js → image-J2CAS7OM.js} +1 -1
  141. package/dist/prod/index.css +1 -1
  142. package/dist/prod/index.js +43 -26
  143. package/dist/prod/locales/ar-SA-NXDWD63E.js +8 -0
  144. package/dist/prod/locales/az-AZ-MXSORGZV.js +1 -0
  145. package/dist/prod/locales/bg-BG-O6MV2KSF.js +5 -0
  146. package/dist/prod/locales/bn-BD-T2VJNT7N.js +3 -0
  147. package/dist/prod/locales/bn-IN-MMW2ORAC.js +3 -0
  148. package/dist/prod/locales/ca-ES-MKBCGNOG.js +8 -0
  149. package/dist/prod/locales/cs-CZ-V77HGUP7.js +7 -0
  150. package/dist/prod/locales/da-DK-I5RFNTM4.js +2 -0
  151. package/dist/prod/locales/de-CH-WLRDEVBV.js +7 -0
  152. package/dist/prod/locales/de-DE-DTI4WUSC.js +7 -0
  153. package/dist/prod/locales/el-GR-ZXDJ2OS4.js +7 -0
  154. package/dist/prod/locales/en-CMP6EMR6.js +1 -0
  155. package/dist/prod/locales/es-ES-DYQHAD43.js +7 -0
  156. package/dist/prod/locales/eu-ES-QDSYU5Y3.js +7 -0
  157. package/dist/prod/locales/fa-IR-26LZG4PM.js +9 -0
  158. package/dist/prod/locales/fi-FI-6YS4KDE4.js +6 -0
  159. package/dist/prod/locales/fr-FR-BRLLPTZC.js +12 -0
  160. package/dist/prod/locales/gl-ES-OKUZTLYG.js +6 -0
  161. package/dist/prod/locales/he-IL-26MGYIU7.js +8 -0
  162. package/dist/prod/locales/hi-IN-Q4ZOGTP2.js +3 -0
  163. package/dist/prod/locales/hu-HU-P2OXPSN5.js +3 -0
  164. package/dist/prod/locales/id-ID-2EIKXYN6.js +8 -0
  165. package/dist/prod/locales/it-IT-4CFKVXI2.js +12 -0
  166. package/dist/prod/locales/ja-JP-MAND2Z4V.js +7 -0
  167. package/dist/prod/locales/kaa-HQRTCXTJ.js +1 -0
  168. package/dist/prod/locales/kab-KAB-JKIKKTGH.js +4 -0
  169. package/dist/prod/locales/kk-KZ-HXQ63ZFC.js +1 -0
  170. package/dist/prod/locales/km-KH-PKL3LSGX.js +7 -0
  171. package/dist/prod/locales/ko-KR-KXLREZX3.js +5 -0
  172. package/dist/prod/locales/ku-TR-MJ4IER3X.js +6 -0
  173. package/dist/prod/locales/lt-LT-H6WFQ6FJ.js +3 -0
  174. package/dist/prod/locales/lv-LV-GOCK6SJW.js +4 -0
  175. package/dist/prod/locales/mr-IN-IXVLDMEQ.js +9 -0
  176. package/dist/prod/locales/my-MM-YG6MYTTD.js +1 -0
  177. package/dist/prod/locales/nb-NO-XGWJISD2.js +8 -0
  178. package/dist/prod/locales/nl-NL-XVDVCPNC.js +13 -0
  179. package/dist/prod/locales/nn-NO-EMX5MJX5.js +4 -0
  180. package/dist/prod/locales/oc-FR-ROEINTVO.js +4 -0
  181. package/dist/prod/locales/pa-IN-ZYN6SUDY.js +4 -0
  182. package/dist/prod/locales/percentages-5DKR754L.js +1 -0
  183. package/dist/prod/locales/pl-PL-6VTG7PHC.js +12 -0
  184. package/dist/prod/locales/pt-BR-5YFKRR5G.js +6 -0
  185. package/dist/prod/locales/pt-PT-GEIXXZ67.js +8 -0
  186. package/dist/prod/locales/ro-RO-E2P6TFZI.js +12 -0
  187. package/dist/prod/locales/ru-RU-YBIIY43T.js +10 -0
  188. package/dist/prod/locales/si-LK-673C2CI2.js +1 -0
  189. package/dist/prod/locales/sk-SK-CKZHQ4AP.js +7 -0
  190. package/dist/prod/locales/sl-SI-557H2GWM.js +6 -0
  191. package/dist/prod/locales/sv-SE-XOPKKDWS.js +8 -0
  192. package/dist/prod/locales/ta-IN-XBH7DQI3.js +6 -0
  193. package/dist/prod/locales/th-TH-TOCWH3R4.js +1 -0
  194. package/dist/prod/locales/tr-TR-GXW6CYY5.js +4 -0
  195. package/dist/prod/locales/uk-UA-IJKTNUDG.js +6 -0
  196. package/dist/prod/locales/uz-UZ-TBZZEA4V.js +1 -0
  197. package/dist/prod/locales/vi-VN-MULSGNVB.js +7 -0
  198. package/dist/prod/locales/zh-CN-MVX3E32U.js +11 -0
  199. package/dist/prod/locales/zh-HK-JNU5RLIE.js +1 -0
  200. package/dist/prod/locales/zh-TW-LENVCA6T.js +9 -0
  201. package/dist/prod/subset-shared.chunk.js +1 -1
  202. package/dist/prod/subset-worker.chunk.js +1 -1
  203. package/dist/types/common/debug.d.ts +21 -0
  204. package/dist/types/common/src/appEventBus.d.ts +27 -0
  205. package/dist/types/common/src/bounds.d.ts +10 -0
  206. package/dist/types/common/src/colors.d.ts +59 -39
  207. package/dist/types/common/src/constants.d.ts +25 -27
  208. package/dist/types/common/src/editorInterface.d.ts +34 -0
  209. package/dist/types/common/src/font-metadata.d.ts +1 -3
  210. package/dist/types/common/src/index.d.ts +5 -0
  211. package/dist/types/common/src/keys.d.ts +1 -1
  212. package/dist/types/common/src/utility-types.d.ts +0 -1
  213. package/dist/types/common/src/utils.d.ts +53 -42
  214. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  215. package/dist/types/element/src/Scene.d.ts +5 -3
  216. package/dist/types/element/src/arrowheads.d.ts +3 -0
  217. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  218. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  219. package/dist/types/element/src/binding.d.ts +67 -48
  220. package/dist/types/element/src/bounds.d.ts +7 -13
  221. package/dist/types/element/src/collision.d.ts +7 -2
  222. package/dist/types/element/src/comparisons.d.ts +7 -7
  223. package/dist/types/element/src/distribute.d.ts +2 -1
  224. package/dist/types/element/src/dragElements.d.ts +3 -3
  225. package/dist/types/element/src/duplicate.d.ts +3 -3
  226. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  227. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  228. package/dist/types/element/src/frame.d.ts +6 -2
  229. package/dist/types/element/src/heading.d.ts +2 -1
  230. package/dist/types/element/src/image.d.ts +1 -11
  231. package/dist/types/element/src/index.d.ts +4 -3
  232. package/dist/types/element/src/linearElementEditor.d.ts +23 -22
  233. package/dist/types/element/src/mutateElement.d.ts +5 -1
  234. package/dist/types/element/src/newElement.d.ts +6 -6
  235. package/dist/types/element/src/renderElement.d.ts +1 -7
  236. package/dist/types/element/src/resizeElements.d.ts +10 -10
  237. package/dist/types/element/src/resizeTest.d.ts +6 -5
  238. package/dist/types/element/src/selection.d.ts +10 -10
  239. package/dist/types/element/src/shape.d.ts +9 -8
  240. package/dist/types/element/src/textElement.d.ts +1 -1
  241. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  242. package/dist/types/element/src/textWrapping.d.ts +26 -0
  243. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  244. package/dist/types/element/src/transformHandles.d.ts +8 -27
  245. package/dist/types/element/src/typeChecks.d.ts +4 -7
  246. package/dist/types/element/src/types.d.ts +12 -13
  247. package/dist/types/element/src/utils.d.ts +9 -4
  248. package/dist/types/element/src/zindex.d.ts +7 -1
  249. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +131 -171
  250. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  251. package/dist/types/excalidraw/actions/actionBoundText.d.ts +94 -121
  252. package/dist/types/excalidraw/actions/actionCanvas.d.ts +556 -902
  253. package/dist/types/excalidraw/actions/actionClipboard.d.ts +112 -884
  254. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +45 -59
  255. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +148 -192
  256. package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -0
  257. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  258. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  259. package/dist/types/excalidraw/actions/actionElementLink.d.ts +37 -57
  260. package/dist/types/excalidraw/actions/actionElementLock.d.ts +92 -119
  261. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +46 -60
  262. package/dist/types/excalidraw/actions/actionExport.d.ts +173 -1412
  263. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -396
  264. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  265. package/dist/types/excalidraw/actions/actionFrame.d.ts +265 -356
  266. package/dist/types/excalidraw/actions/actionGroup.d.ts +97 -132
  267. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +137 -189
  268. package/dist/types/excalidraw/actions/actionLink.d.ts +43 -57
  269. package/dist/types/excalidraw/actions/actionMenu.d.ts +36 -424
  270. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
  271. package/dist/types/excalidraw/actions/actionProperties.d.ts +154 -2533
  272. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +48 -66
  273. package/dist/types/excalidraw/actions/actionStyles.d.ts +45 -58
  274. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  275. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +173 -0
  276. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +45 -59
  277. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
  278. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +45 -59
  279. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +34 -54
  280. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  281. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +45 -59
  282. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +45 -59
  283. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +46 -60
  284. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
  285. package/dist/types/excalidraw/actions/index.d.ts +4 -1
  286. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  287. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  288. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  289. package/dist/types/excalidraw/appState.d.ts +22 -15
  290. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  291. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  292. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  293. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  294. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  295. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  296. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  297. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  298. package/dist/types/excalidraw/clipboard.d.ts +13 -36
  299. package/dist/types/excalidraw/components/Actions.d.ts +14 -4
  300. package/dist/types/excalidraw/components/App.d.ts +109 -70
  301. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  302. package/dist/types/excalidraw/components/ButtonIconCycle.d.ts +1 -1
  303. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  304. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  305. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -3
  306. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  307. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  308. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  309. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  310. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  311. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  312. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  313. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  314. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  315. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  316. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  317. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  318. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  319. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -2
  320. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  321. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  322. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
  323. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  324. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  325. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  326. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  327. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  328. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  329. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  330. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  331. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  332. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  333. package/dist/types/excalidraw/components/LinkButton.d.ts +4 -0
  334. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  335. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  336. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  337. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  338. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  339. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  340. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  341. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  342. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  343. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  344. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  345. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  346. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  347. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  348. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  349. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  350. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  351. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  352. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  353. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  354. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  355. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  356. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  357. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  358. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  359. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  360. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  361. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  362. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  363. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  364. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  365. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  366. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  367. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  368. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  369. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  370. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  371. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  372. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  373. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  374. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +2 -3
  375. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  376. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  377. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  378. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  379. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  380. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  381. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  382. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  383. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  384. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  385. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
  386. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  387. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  388. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  389. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  390. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  391. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  392. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  393. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  394. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +7 -3
  395. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  396. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  397. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  398. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  399. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  400. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  401. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  402. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  403. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  404. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  405. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  406. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  407. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  408. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  409. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  410. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  411. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  412. package/dist/types/excalidraw/components/icons.d.ts +44 -22
  413. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
  414. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +20 -2
  415. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  416. package/dist/types/excalidraw/components/shapes.d.ts +74 -1
  417. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
  418. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
  419. package/dist/types/excalidraw/data/blob.d.ts +329 -8
  420. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  421. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  422. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  423. package/dist/types/excalidraw/data/index.d.ts +4 -5
  424. package/dist/types/excalidraw/data/json.d.ts +171 -4
  425. package/dist/types/excalidraw/data/library.d.ts +24 -9
  426. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  427. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  428. package/dist/types/excalidraw/data/types.d.ts +4 -1
  429. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  430. package/dist/types/excalidraw/errors.d.ts +14 -0
  431. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  432. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  433. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  434. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  435. package/dist/types/excalidraw/i18n.d.ts +2 -2
  436. package/dist/types/excalidraw/index.d.ts +29 -8
  437. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  438. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  439. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  440. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  441. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  442. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  443. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  444. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  445. package/dist/types/excalidraw/snapping.d.ts +5 -5
  446. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  447. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  448. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  449. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  450. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  451. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  452. package/dist/types/excalidraw/types.d.ts +123 -36
  453. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +7 -3
  454. package/dist/types/math/src/curve.d.ts +4 -1
  455. package/dist/types/math/src/point.d.ts +7 -2
  456. package/dist/types/math/src/polygon.d.ts +2 -2
  457. package/dist/types/math/src/range.d.ts +1 -3
  458. package/dist/types/math/src/segment.d.ts +3 -3
  459. package/dist/types/math/src/types.d.ts +25 -1
  460. package/dist/types/utils/src/bbox.d.ts +1 -1
  461. package/dist/types/utils/src/export.d.ts +5 -5
  462. package/dist/types/utils/src/shape.d.ts +6 -6
  463. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  464. package/package.json +14 -11
  465. package/dist/dev/chunk-LJB4UXX2.js.map +0 -7
  466. package/dist/dev/chunk-MFAYKRVR.js +0 -66
  467. package/dist/dev/chunk-MFAYKRVR.js.map +0 -7
  468. package/dist/dev/chunk-QF5FRM6O.js.map +0 -7
  469. package/dist/dev/locales/ar-SA-XORAP2EK.js.map +0 -7
  470. package/dist/dev/locales/az-AZ-NAUU3Z4Y.js.map +0 -7
  471. package/dist/dev/locales/bg-BG-AAABLFCY.js.map +0 -7
  472. package/dist/dev/locales/bn-BD-PM4AC5WG.js.map +0 -7
  473. package/dist/dev/locales/ca-ES-YNNMFRQX.js.map +0 -7
  474. package/dist/dev/locales/cs-CZ-DGZA5IKG.js.map +0 -7
  475. package/dist/dev/locales/da-DK-N76F4QAJ.js.map +0 -7
  476. package/dist/dev/locales/de-DE-DMRXZ2SZ.js.map +0 -7
  477. package/dist/dev/locales/el-GR-HIKPLEXI.js.map +0 -7
  478. package/dist/dev/locales/es-ES-AQYVXC32.js.map +0 -7
  479. package/dist/dev/locales/eu-ES-3TOEU5DE.js.map +0 -7
  480. package/dist/dev/locales/fa-IR-527GAKUP.js.map +0 -7
  481. package/dist/dev/locales/fi-FI-M3WLVDFP.js.map +0 -7
  482. package/dist/dev/locales/fr-FR-YE4VDJFI.js.map +0 -7
  483. package/dist/dev/locales/gl-ES-KMXUYGUN.js.map +0 -7
  484. package/dist/dev/locales/he-IL-4MU5N22B.js +0 -586
  485. package/dist/dev/locales/he-IL-4MU5N22B.js.map +0 -7
  486. package/dist/dev/locales/hi-IN-ZHZNZWFC.js +0 -586
  487. package/dist/dev/locales/hi-IN-ZHZNZWFC.js.map +0 -7
  488. package/dist/dev/locales/hu-HU-VIYZI3X4.js.map +0 -7
  489. package/dist/dev/locales/id-ID-22TWZNLA.js.map +0 -7
  490. package/dist/dev/locales/it-IT-MDEQ2SG3.js.map +0 -7
  491. package/dist/dev/locales/ja-JP-K2DI4W6B.js.map +0 -7
  492. package/dist/dev/locales/kaa-6BPSNM3R.js.map +0 -7
  493. package/dist/dev/locales/kab-KAB-2S7ZURK7.js.map +0 -7
  494. package/dist/dev/locales/kk-KZ-UJPYGRQQ.js.map +0 -7
  495. package/dist/dev/locales/km-KH-M5T5JKUE.js.map +0 -7
  496. package/dist/dev/locales/ko-KR-RQX37SNF.js.map +0 -7
  497. package/dist/dev/locales/ku-TR-5XJDIERL.js.map +0 -7
  498. package/dist/dev/locales/lt-LT-MGUBX6CA.js.map +0 -7
  499. package/dist/dev/locales/lv-LV-MD7N5VHD.js.map +0 -7
  500. package/dist/dev/locales/mr-IN-4XWMNGQC.js.map +0 -7
  501. package/dist/dev/locales/my-MM-O4Z74GN5.js.map +0 -7
  502. package/dist/dev/locales/nb-NO-BMB73KRH.js.map +0 -7
  503. package/dist/dev/locales/nl-NL-F2257BLQ.js +0 -586
  504. package/dist/dev/locales/nl-NL-F2257BLQ.js.map +0 -7
  505. package/dist/dev/locales/nn-NO-NCORG7TS.js.map +0 -7
  506. package/dist/dev/locales/oc-FR-ATFBDMF6.js.map +0 -7
  507. package/dist/dev/locales/pa-IN-D2I375G4.js.map +0 -7
  508. package/dist/dev/locales/pl-PL-YJHOWAAW.js.map +0 -7
  509. package/dist/dev/locales/pt-BR-APOPYZJ7.js.map +0 -7
  510. package/dist/dev/locales/pt-PT-W56WCN7P.js +0 -586
  511. package/dist/dev/locales/pt-PT-W56WCN7P.js.map +0 -7
  512. package/dist/dev/locales/ro-RO-L575VRQA.js.map +0 -7
  513. package/dist/dev/locales/ru-RU-BLG6HZG5.js.map +0 -7
  514. package/dist/dev/locales/si-LK-KT7GGO6D.js.map +0 -7
  515. package/dist/dev/locales/sk-SK-DY6IPO5U.js.map +0 -7
  516. package/dist/dev/locales/sl-SI-5DZSRA47.js.map +0 -7
  517. package/dist/dev/locales/sv-SE-V32YHALQ.js.map +0 -7
  518. package/dist/dev/locales/ta-IN-5JRAGQAO.js.map +0 -7
  519. package/dist/dev/locales/th-TH-55ACRHDJ.js.map +0 -7
  520. package/dist/dev/locales/tr-TR-7QYBXDBO.js.map +0 -7
  521. package/dist/dev/locales/uk-UA-TJS2TMRH.js.map +0 -7
  522. package/dist/dev/locales/vi-VN-Y5CQ2EKQ.js +0 -586
  523. package/dist/dev/locales/vi-VN-Y5CQ2EKQ.js.map +0 -7
  524. package/dist/dev/locales/zh-CN-4MXUOFTH.js.map +0 -7
  525. package/dist/dev/locales/zh-HK-RBTGIU3U.js.map +0 -7
  526. package/dist/dev/locales/zh-TW-U5VF4CCU.js.map +0 -7
  527. package/dist/prod/chunk-I4UNSFV6.js +0 -12
  528. package/dist/prod/chunk-PYEQN4AH.js +0 -4
  529. package/dist/prod/chunk-Z3N5DIM6.js +0 -1
  530. package/dist/prod/locales/ar-SA-G6X2FPQ2.js +0 -10
  531. package/dist/prod/locales/az-AZ-76LH7QW2.js +0 -1
  532. package/dist/prod/locales/bg-BG-XCXSNQG7.js +0 -5
  533. package/dist/prod/locales/bn-BD-2XOGV67Q.js +0 -5
  534. package/dist/prod/locales/ca-ES-6MX7JW3Y.js +0 -8
  535. package/dist/prod/locales/cs-CZ-2BRQDIVT.js +0 -11
  536. package/dist/prod/locales/da-DK-5WZEPLOC.js +0 -5
  537. package/dist/prod/locales/de-DE-XR44H4JA.js +0 -8
  538. package/dist/prod/locales/el-GR-BZB4AONW.js +0 -10
  539. package/dist/prod/locales/en-TYY6KWIJ.js +0 -1
  540. package/dist/prod/locales/es-ES-U4NZUMDT.js +0 -9
  541. package/dist/prod/locales/eu-ES-A7QVB2H4.js +0 -11
  542. package/dist/prod/locales/fa-IR-HGAKTJCU.js +0 -8
  543. package/dist/prod/locales/fi-FI-Z5N7JZ37.js +0 -6
  544. package/dist/prod/locales/fr-FR-RHASNOE6.js +0 -9
  545. package/dist/prod/locales/gl-ES-HMX3MZ6V.js +0 -10
  546. package/dist/prod/locales/he-IL-6SHJWFNN.js +0 -10
  547. package/dist/prod/locales/hi-IN-IWLTKZ5I.js +0 -4
  548. package/dist/prod/locales/hu-HU-A5ZG7DT2.js +0 -7
  549. package/dist/prod/locales/id-ID-SAP4L64H.js +0 -10
  550. package/dist/prod/locales/it-IT-JPQ66NNP.js +0 -11
  551. package/dist/prod/locales/ja-JP-DBVTYXUO.js +0 -8
  552. package/dist/prod/locales/kaa-6HZHGXH3.js +0 -1
  553. package/dist/prod/locales/kab-KAB-ZGHBKWFO.js +0 -8
  554. package/dist/prod/locales/kk-KZ-P5N5QNE5.js +0 -1
  555. package/dist/prod/locales/km-KH-HSX4SM5Z.js +0 -11
  556. package/dist/prod/locales/ko-KR-MTYHY66A.js +0 -9
  557. package/dist/prod/locales/ku-TR-6OUDTVRD.js +0 -9
  558. package/dist/prod/locales/lt-LT-XHIRWOB4.js +0 -3
  559. package/dist/prod/locales/lv-LV-5QDEKY6T.js +0 -7
  560. package/dist/prod/locales/mr-IN-CRQNXWMA.js +0 -13
  561. package/dist/prod/locales/my-MM-5M5IBNSE.js +0 -1
  562. package/dist/prod/locales/nb-NO-T6EIAALU.js +0 -10
  563. package/dist/prod/locales/nl-NL-IS3SIHDZ.js +0 -8
  564. package/dist/prod/locales/nn-NO-6E72VCQL.js +0 -8
  565. package/dist/prod/locales/oc-FR-POXYY2M6.js +0 -8
  566. package/dist/prod/locales/pa-IN-N4M65BXN.js +0 -4
  567. package/dist/prod/locales/percentages-BXMCSKIN.js +0 -1
  568. package/dist/prod/locales/pl-PL-T2D74RX3.js +0 -9
  569. package/dist/prod/locales/pt-BR-5N22H2LF.js +0 -9
  570. package/dist/prod/locales/pt-PT-UZXXM6DQ.js +0 -9
  571. package/dist/prod/locales/ro-RO-JPDTUUEW.js +0 -11
  572. package/dist/prod/locales/ru-RU-B4JR7IUQ.js +0 -9
  573. package/dist/prod/locales/si-LK-N5RQ5JYF.js +0 -1
  574. package/dist/prod/locales/sk-SK-C5VTKIMK.js +0 -6
  575. package/dist/prod/locales/sl-SI-NN7IZMDC.js +0 -6
  576. package/dist/prod/locales/sv-SE-XGPEYMSR.js +0 -10
  577. package/dist/prod/locales/ta-IN-2NMHFXQM.js +0 -9
  578. package/dist/prod/locales/th-TH-HPSO5L25.js +0 -2
  579. package/dist/prod/locales/tr-TR-DEFEU3FU.js +0 -7
  580. package/dist/prod/locales/uk-UA-QMV73CPH.js +0 -6
  581. package/dist/prod/locales/vi-VN-M7AON7JQ.js +0 -5
  582. package/dist/prod/locales/zh-CN-LNUGB5OW.js +0 -10
  583. package/dist/prod/locales/zh-HK-E62DVLB3.js +0 -1
  584. package/dist/prod/locales/zh-TW-RAJ6MFWO.js +0 -9
  585. package/dist/types/excalidraw/charts.d.ts +0 -27
  586. /package/dist/dev/{chunk-CP5DND7P.js.map → chunk-Y3BTNZQY.js.map} +0 -0
  587. /package/dist/dev/data/{image-OLV524AK.js.map → image-E6NJP7SZ.js.map} +0 -0
  588. /package/dist/dev/locales/{en-SMAPCEOQ.js.map → en-WD25OMHJ.js.map} +0 -0
  589. /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 to be directly embedded in your project.
3
+ **Excalidraw** is exported as a React component that you can embed directly in your app.
4
4
 
5
5
  ## Installation
6
6
 
7
- Use `npm` or `yarn` to install the package.
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 don't want to wait for the next stable release and try out the unreleased changes, use `@excalidraw/excalidraw@next`.
15
+ > **Note**: If you want to try unreleased changes, use `@excalidraw/excalidraw@next`.
16
16
 
17
- #### Self-hosting fonts
17
+ ## Quick start
18
18
 
19
- By default, Excalidraw will try to download all the used fonts from the [CDN](https://esm.run/@excalidraw/excalidraw/dist/prod).
19
+ The minimum working setup has two easy-to-miss requirements:
20
20
 
21
- For self-hosting purposes, you'll have to copy the content of the folder `node_modules/@excalidraw/excalidraw/dist/prod/fonts` to the path where your assets should be served from (i.e. `public/` directory in your project). In that case, you should also set `window.EXCALIDRAW_ASSET_PATH` to the very same path, i.e. `/` in case it's in the root:
21
+ 1. Import the package CSS:
22
22
 
23
- ```js
24
- <script>window.EXCALIDRAW_ASSET_PATH = "/";</script>
23
+ ```ts
24
+ import "@excalidraw/excalidraw/index.css";
25
25
  ```
26
26
 
27
- ### Dimensions of Excalidraw
27
+ 2. Render Excalidraw inside a container with a non-zero height.
28
28
 
29
- Excalidraw takes _100%_ of `width` and `height` of the containing block so make sure the container in which you render Excalidraw has non zero dimensions.
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
- Go to [CodeSandbox](https://codesandbox.io/p/sandbox/github/excalidraw/excalidraw/tree/master/examples/with-script-in-browser) example.
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
- Head over to the [docs](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/integration).
134
+ Read the [integration docs](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/integration).
38
135
 
39
136
  ## API
40
137
 
41
- Head over to the [docs](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api).
138
+ Read the [API docs](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api).
42
139
 
43
140
  ## Contributing
44
141
 
45
- Head over to the [docs](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/contributing).
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: "Publish",
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: "Escape to dismiss search",
333
- canvasPanning: "To move canvas, hold mouse wheel or spacebar while dragging, or use the hand tool",
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 {{arrowShortcut}} again to change arrow type.",
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 ENTER to edit text",
340
- text_editing: "Press Escape or CtrlOrCmd+ENTER to finish editing",
341
- linearElementMulti: "Click on last point or press Escape or Enter to finish",
342
- lockAngle: "You can constrain angle by holding SHIFT",
343
- resize: "You can constrain proportions by holding SHIFT while resizing,\nhold ALT to resize from the center",
344
- resizeImage: "You can resize freely by holding SHIFT,\nhold ALT to resize from the center",
345
- rotate: "You can constrain angles by holding SHIFT while rotating",
346
- lineEditor_info: "Hold CtrlOrCmd and Double-click or press CtrlOrCmd + Enter to edit points",
347
- lineEditor_line_info: "Double-click or press Enter to edit points",
348
- lineEditor_pointSelected: "Press Delete to remove point(s),\nCtrlOrCmd+D to duplicate, or drag to move",
349
- lineEditor_nothingSelected: "Select a point to edit (hold SHIFT to select multiple),\nor hold Alt and click to add new points",
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: "Press enter to add text",
352
- createFlowchart: "Hold CtrlOrCmd and Arrow key to create a flowchart",
353
- deepBoxSelect: "Hold CtrlOrCmd to deep select, and to prevent dragging",
354
- eraserRevert: "Hold Alt to revert the elements marked for deletion",
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 CtrlOrCmd to disable snapping",
357
- enterCropEditor: "Double click the image or press ENTER to crop the image",
358
- leaveCropEditor: "Click outside the image or press ENTER or ESCAPE to finish cropping"
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: "All your data is saved locally in your browser.",
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>,<sequenceLink> Sequence, </sequenceLink> and <classLink>Class </classLink>Diagrams are supported. The other types will be rendered as image in Excalidraw.",
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-QF5FRM6O.js.map
822
+ //# sourceMappingURL=chunk-4JOINNOK.js.map