@myoc/excalidraw 0.19.510 → 0.19.512

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 (372) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/dist/dev/{chunk-EFGBMKJZ.js → chunk-OBLRXIUK.js} +88 -132
  3. package/dist/dev/chunk-OBLRXIUK.js.map +7 -0
  4. package/dist/dev/{chunk-ETVKWGYA.js → chunk-QHLG4OQL.js} +2 -2
  5. package/dist/dev/{chunk-XO7KL57K.js → chunk-ZGRXNVW4.js} +1 -98
  6. package/dist/dev/chunk-ZGRXNVW4.js.map +7 -0
  7. package/dist/dev/data/{image-24SF3JAY.js → image-R7FQP7SA.js} +3 -3
  8. package/dist/dev/index.css +986 -1669
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +10107 -13532
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{ar-SA-U3PIVEZH.js → ar-SA-NFU76NHO.js} +1 -98
  13. package/dist/dev/locales/ar-SA-NFU76NHO.js.map +7 -0
  14. package/dist/dev/locales/{az-AZ-COAM4HVM.js → az-AZ-F7U432OF.js} +1 -98
  15. package/dist/dev/locales/az-AZ-F7U432OF.js.map +7 -0
  16. package/dist/dev/locales/{bg-BG-D6B2W7JL.js → bg-BG-VMJGHZ3R.js} +1 -98
  17. package/dist/dev/locales/bg-BG-VMJGHZ3R.js.map +7 -0
  18. package/dist/dev/locales/{bn-BD-BU7GZAZW.js → bn-BD-ABWH5RGF.js} +1 -98
  19. package/dist/dev/locales/bn-BD-ABWH5RGF.js.map +7 -0
  20. package/dist/dev/locales/{bn-IN-MYKDEVNA.js → bn-IN-6FBCHDUY.js} +1 -98
  21. package/dist/dev/locales/bn-IN-6FBCHDUY.js.map +7 -0
  22. package/dist/dev/locales/{ca-ES-GEEW5L7T.js → ca-ES-UX7K2ENH.js} +1 -98
  23. package/dist/dev/locales/ca-ES-UX7K2ENH.js.map +7 -0
  24. package/dist/dev/locales/{cs-CZ-LNVE3QM5.js → cs-CZ-TBYIRH36.js} +1 -98
  25. package/dist/dev/locales/cs-CZ-TBYIRH36.js.map +7 -0
  26. package/dist/dev/locales/{da-DK-CAYJG7FJ.js → da-DK-KW4TGU6O.js} +1 -98
  27. package/dist/dev/locales/da-DK-KW4TGU6O.js.map +7 -0
  28. package/dist/dev/locales/{de-CH-GCXOD4LK.js → de-CH-QSJHIHEN.js} +1 -98
  29. package/dist/dev/locales/de-CH-QSJHIHEN.js.map +7 -0
  30. package/dist/dev/locales/{de-DE-CGDBECYD.js → de-DE-2WQ5IRPT.js} +1 -98
  31. package/dist/dev/locales/de-DE-2WQ5IRPT.js.map +7 -0
  32. package/dist/dev/locales/{el-GR-G5QZC24A.js → el-GR-N7JWYMV5.js} +1 -98
  33. package/dist/dev/locales/el-GR-N7JWYMV5.js.map +7 -0
  34. package/dist/dev/locales/{en-YKPA7MQG.js → en-RQFAMS2U.js} +2 -12
  35. package/dist/dev/locales/{es-ES-UMEOH76W.js → es-ES-37LJTLHM.js} +1 -98
  36. package/dist/dev/locales/es-ES-37LJTLHM.js.map +7 -0
  37. package/dist/dev/locales/{eu-ES-IWRZXJC5.js → eu-ES-2IFCUP7K.js} +1 -98
  38. package/dist/dev/locales/eu-ES-2IFCUP7K.js.map +7 -0
  39. package/dist/dev/locales/{fa-IR-QOYVIIJA.js → fa-IR-VDT7BNM4.js} +1 -98
  40. package/dist/dev/locales/fa-IR-VDT7BNM4.js.map +7 -0
  41. package/dist/dev/locales/{fi-FI-BXRW65OA.js → fi-FI-HLYF5ISJ.js} +1 -98
  42. package/dist/dev/locales/fi-FI-HLYF5ISJ.js.map +7 -0
  43. package/dist/dev/locales/{fr-FR-R2QH5VCW.js → fr-FR-5YNPDFPF.js} +1 -98
  44. package/dist/dev/locales/fr-FR-5YNPDFPF.js.map +7 -0
  45. package/dist/dev/locales/{gl-ES-4ES3ZADP.js → gl-ES-S56CRRSA.js} +1 -98
  46. package/dist/dev/locales/gl-ES-S56CRRSA.js.map +7 -0
  47. package/dist/dev/locales/{he-IL-TRQRRYPH.js → he-IL-7GR3BHPZ.js} +1 -98
  48. package/dist/dev/locales/he-IL-7GR3BHPZ.js.map +7 -0
  49. package/dist/dev/locales/{hi-IN-U46BOJEC.js → hi-IN-AQ7X42V5.js} +1 -98
  50. package/dist/dev/locales/hi-IN-AQ7X42V5.js.map +7 -0
  51. package/dist/dev/locales/{hu-HU-JDULJ6XL.js → hu-HU-4HM3N3P3.js} +1 -98
  52. package/dist/dev/locales/hu-HU-4HM3N3P3.js.map +7 -0
  53. package/dist/dev/locales/{id-ID-BLIXNCUT.js → id-ID-P7V2I35Q.js} +1 -98
  54. package/dist/dev/locales/id-ID-P7V2I35Q.js.map +7 -0
  55. package/dist/dev/locales/{it-IT-6TBW7RUK.js → it-IT-HUGIPGTB.js} +1 -98
  56. package/dist/dev/locales/it-IT-HUGIPGTB.js.map +7 -0
  57. package/dist/dev/locales/{ja-JP-6HYAQFYX.js → ja-JP-XFX5V5ZL.js} +1 -98
  58. package/dist/dev/locales/ja-JP-XFX5V5ZL.js.map +7 -0
  59. package/dist/dev/locales/{kaa-Z5UP62XJ.js → kaa-X53Z7Q4I.js} +1 -98
  60. package/dist/dev/locales/kaa-X53Z7Q4I.js.map +7 -0
  61. package/dist/dev/locales/{kab-KAB-Z7STWQKS.js → kab-KAB-GGKAECT5.js} +1 -98
  62. package/dist/dev/locales/kab-KAB-GGKAECT5.js.map +7 -0
  63. package/dist/dev/locales/{kk-KZ-BWHY45DX.js → kk-KZ-Z6R3NY65.js} +1 -98
  64. package/dist/dev/locales/kk-KZ-Z6R3NY65.js.map +7 -0
  65. package/dist/dev/locales/{km-KH-HGLNWNRU.js → km-KH-DGK3UTBI.js} +1 -98
  66. package/dist/dev/locales/km-KH-DGK3UTBI.js.map +7 -0
  67. package/dist/dev/locales/{ko-KR-CO36WKPC.js → ko-KR-W7QZK3EC.js} +1 -98
  68. package/dist/dev/locales/ko-KR-W7QZK3EC.js.map +7 -0
  69. package/dist/dev/locales/{ku-TR-AACVIARC.js → ku-TR-3UJE7FNE.js} +1 -98
  70. package/dist/dev/locales/ku-TR-3UJE7FNE.js.map +7 -0
  71. package/dist/dev/locales/{lt-LT-CFYYFLDV.js → lt-LT-OTNQMXF6.js} +1 -98
  72. package/dist/dev/locales/lt-LT-OTNQMXF6.js.map +7 -0
  73. package/dist/dev/locales/{lv-LV-QCBBOFFU.js → lv-LV-Y44YX4AK.js} +1 -98
  74. package/dist/dev/locales/lv-LV-Y44YX4AK.js.map +7 -0
  75. package/dist/dev/locales/{mr-IN-B2CM5GK5.js → mr-IN-MT2HYNUI.js} +1 -98
  76. package/dist/dev/locales/mr-IN-MT2HYNUI.js.map +7 -0
  77. package/dist/dev/locales/{my-MM-756BNN36.js → my-MM-ZBRKQSW3.js} +1 -98
  78. package/dist/dev/locales/my-MM-ZBRKQSW3.js.map +7 -0
  79. package/dist/dev/locales/{nb-NO-5BLHQI4J.js → nb-NO-ZY7DB7O2.js} +1 -98
  80. package/dist/dev/locales/nb-NO-ZY7DB7O2.js.map +7 -0
  81. package/dist/dev/locales/{nl-NL-225BLGAH.js → nl-NL-YLVMYG2H.js} +1 -98
  82. package/dist/dev/locales/nl-NL-YLVMYG2H.js.map +7 -0
  83. package/dist/dev/locales/{nn-NO-4J7MR6GH.js → nn-NO-4SXLBTTQ.js} +1 -98
  84. package/dist/dev/locales/nn-NO-4SXLBTTQ.js.map +7 -0
  85. package/dist/dev/locales/{oc-FR-XCETH7KF.js → oc-FR-NMOJCLB4.js} +1 -98
  86. package/dist/dev/locales/oc-FR-NMOJCLB4.js.map +7 -0
  87. package/dist/dev/locales/{pa-IN-32NBAN5L.js → pa-IN-G5T3AUSW.js} +1 -98
  88. package/dist/dev/locales/pa-IN-G5T3AUSW.js.map +7 -0
  89. package/dist/dev/locales/{pl-PL-R6OJ54BT.js → pl-PL-TXUESISZ.js} +1 -98
  90. package/dist/dev/locales/pl-PL-TXUESISZ.js.map +7 -0
  91. package/dist/dev/locales/{pt-BR-7AFGAKGR.js → pt-BR-KEMR6KPT.js} +1 -98
  92. package/dist/dev/locales/pt-BR-KEMR6KPT.js.map +7 -0
  93. package/dist/dev/locales/{pt-PT-S6BMW6MY.js → pt-PT-ZCG2G3PR.js} +1 -98
  94. package/dist/dev/locales/pt-PT-ZCG2G3PR.js.map +7 -0
  95. package/dist/dev/locales/{ro-RO-4JVGQHS2.js → ro-RO-MDAUF4EM.js} +1 -98
  96. package/dist/dev/locales/ro-RO-MDAUF4EM.js.map +7 -0
  97. package/dist/dev/locales/{ru-RU-IESI752T.js → ru-RU-ZIRVCAVQ.js} +1 -98
  98. package/dist/dev/locales/ru-RU-ZIRVCAVQ.js.map +7 -0
  99. package/dist/dev/locales/{si-LK-H75E7PKD.js → si-LK-FPEI3WT5.js} +1 -98
  100. package/dist/dev/locales/si-LK-FPEI3WT5.js.map +7 -0
  101. package/dist/dev/locales/{sk-SK-EUK2NR2F.js → sk-SK-TZJ3W5LE.js} +1 -98
  102. package/dist/dev/locales/sk-SK-TZJ3W5LE.js.map +7 -0
  103. package/dist/dev/locales/{sl-SI-AKW7R5PW.js → sl-SI-KIJ3UR57.js} +1 -98
  104. package/dist/dev/locales/sl-SI-KIJ3UR57.js.map +7 -0
  105. package/dist/dev/locales/{sv-SE-QIBOOXLJ.js → sv-SE-WX2A2Y2N.js} +1 -98
  106. package/dist/dev/locales/sv-SE-WX2A2Y2N.js.map +7 -0
  107. package/dist/dev/locales/{ta-IN-LBK2NQ5K.js → ta-IN-ECFHL2WQ.js} +1 -98
  108. package/dist/dev/locales/ta-IN-ECFHL2WQ.js.map +7 -0
  109. package/dist/dev/locales/{th-TH-YJ2E6GVT.js → th-TH-XIGNEM6A.js} +1 -98
  110. package/dist/dev/locales/th-TH-XIGNEM6A.js.map +7 -0
  111. package/dist/dev/locales/{tr-TR-Y5GO2XJW.js → tr-TR-RCLDMBSM.js} +1 -98
  112. package/dist/dev/locales/tr-TR-RCLDMBSM.js.map +7 -0
  113. package/dist/dev/locales/{uk-UA-XYAFHHJW.js → uk-UA-2ADII6GR.js} +1 -98
  114. package/dist/dev/locales/uk-UA-2ADII6GR.js.map +7 -0
  115. package/dist/dev/locales/{uz-UZ-LF3CBRYE.js → uz-UZ-COGLAKY3.js} +1 -98
  116. package/dist/dev/locales/uz-UZ-COGLAKY3.js.map +7 -0
  117. package/dist/dev/locales/{vi-VN-WDPZEUOJ.js → vi-VN-QBW5T274.js} +1 -98
  118. package/dist/dev/locales/vi-VN-QBW5T274.js.map +7 -0
  119. package/dist/dev/locales/{zh-CN-SZ37453H.js → zh-CN-WONZCIPT.js} +1 -98
  120. package/dist/dev/locales/zh-CN-WONZCIPT.js.map +7 -0
  121. package/dist/dev/locales/{zh-HK-QDQ5QNBC.js → zh-HK-AJ2UN7VN.js} +1 -98
  122. package/dist/dev/locales/zh-HK-AJ2UN7VN.js.map +7 -0
  123. package/dist/dev/locales/{zh-TW-CYU6GFBV.js → zh-TW-O73UCU5T.js} +1 -98
  124. package/dist/dev/locales/zh-TW-O73UCU5T.js.map +7 -0
  125. package/dist/dev/subset-shared.chunk.js +1 -1
  126. package/dist/dev/subset-worker.chunk.js +1 -1
  127. package/dist/prod/chunk-5JM5RIGS.js +4 -0
  128. package/dist/prod/{chunk-YUBA7MSK.js → chunk-KVNPEVSY.js} +1 -1
  129. package/dist/prod/chunk-VHQT4IVX.js +12 -0
  130. package/dist/prod/data/image-HP6HSTQ2.js +1 -0
  131. package/dist/prod/index.css +1 -1
  132. package/dist/prod/index.js +24 -24
  133. package/dist/prod/locales/ar-SA-3G7FTBZJ.js +8 -0
  134. package/dist/prod/locales/az-AZ-HMFZUPFL.js +1 -0
  135. package/dist/prod/locales/bg-BG-Y7OZ2DXF.js +5 -0
  136. package/dist/prod/locales/bn-BD-36TGMEAF.js +3 -0
  137. package/dist/prod/locales/bn-IN-FALW4RB5.js +3 -0
  138. package/dist/prod/locales/ca-ES-MJRJ6GTN.js +8 -0
  139. package/dist/prod/locales/cs-CZ-52YM52ZO.js +7 -0
  140. package/dist/prod/locales/da-DK-QEP42HP6.js +2 -0
  141. package/dist/prod/locales/de-CH-LGHSGO4X.js +7 -0
  142. package/dist/prod/locales/de-DE-GHNPPGTN.js +7 -0
  143. package/dist/prod/locales/el-GR-2UZLGABX.js +7 -0
  144. package/dist/prod/locales/en-6UCVDQQ7.js +1 -0
  145. package/dist/prod/locales/es-ES-2NUH2FTW.js +7 -0
  146. package/dist/prod/locales/eu-ES-LW4CGHUU.js +7 -0
  147. package/dist/prod/locales/fa-IR-U32PFECK.js +9 -0
  148. package/dist/prod/locales/fi-FI-G7756HAK.js +6 -0
  149. package/dist/prod/locales/fr-FR-VIEH4DTC.js +12 -0
  150. package/dist/prod/locales/gl-ES-JWQDRMPC.js +6 -0
  151. package/dist/prod/locales/he-IL-YYBNMYP4.js +8 -0
  152. package/dist/prod/locales/hi-IN-4J4RW5AN.js +3 -0
  153. package/dist/prod/locales/hu-HU-MBXXMHSF.js +3 -0
  154. package/dist/prod/locales/id-ID-5U764SVL.js +8 -0
  155. package/dist/prod/locales/it-IT-7BNDK63V.js +12 -0
  156. package/dist/prod/locales/ja-JP-4SLEHWLA.js +7 -0
  157. package/dist/prod/locales/kaa-YHCGFUY5.js +1 -0
  158. package/dist/prod/locales/kab-KAB-LSGAIMUB.js +4 -0
  159. package/dist/prod/locales/kk-KZ-3YNSB7GZ.js +1 -0
  160. package/dist/prod/locales/km-KH-7GXC5R4I.js +7 -0
  161. package/dist/prod/locales/ko-KR-B6Q6YTFE.js +5 -0
  162. package/dist/prod/locales/ku-TR-FBC7A657.js +6 -0
  163. package/dist/prod/locales/lt-LT-NTZ3RRBU.js +3 -0
  164. package/dist/prod/locales/lv-LV-G24LH3KG.js +4 -0
  165. package/dist/prod/locales/mr-IN-FMZEIYNW.js +9 -0
  166. package/dist/prod/locales/my-MM-B6EJQIQF.js +1 -0
  167. package/dist/prod/locales/nb-NO-GEP6ZOEM.js +8 -0
  168. package/dist/prod/locales/nl-NL-4QUIWSVP.js +13 -0
  169. package/dist/prod/locales/nn-NO-P32L2VHA.js +4 -0
  170. package/dist/prod/locales/oc-FR-QRACY6JR.js +4 -0
  171. package/dist/prod/locales/pa-IN-GBDTCDVG.js +4 -0
  172. package/dist/prod/locales/pl-PL-2Y6CXCHK.js +12 -0
  173. package/dist/prod/locales/pt-BR-FKWT7UFL.js +6 -0
  174. package/dist/prod/locales/pt-PT-6EMD7SCZ.js +8 -0
  175. package/dist/prod/locales/ro-RO-XERO3Y25.js +12 -0
  176. package/dist/prod/locales/ru-RU-XKTTT4QL.js +10 -0
  177. package/dist/prod/locales/si-LK-MGLC5APF.js +1 -0
  178. package/dist/prod/locales/sk-SK-BMCDJLZC.js +7 -0
  179. package/dist/prod/locales/sl-SI-LAWKY4LU.js +6 -0
  180. package/dist/prod/locales/sv-SE-X2ORO3SG.js +8 -0
  181. package/dist/prod/locales/ta-IN-RZDP4ZDC.js +6 -0
  182. package/dist/prod/locales/th-TH-GY4Y5ENV.js +1 -0
  183. package/dist/prod/locales/tr-TR-CT4QTEX3.js +4 -0
  184. package/dist/prod/locales/uk-UA-XEPSQF3S.js +6 -0
  185. package/dist/prod/locales/uz-UZ-WM3HHDOU.js +1 -0
  186. package/dist/prod/locales/vi-VN-RFG3SAMP.js +7 -0
  187. package/dist/prod/locales/zh-CN-2WGTQQH5.js +11 -0
  188. package/dist/prod/locales/zh-HK-J64WV2A2.js +1 -0
  189. package/dist/prod/locales/zh-TW-4JITCNYX.js +9 -0
  190. package/dist/prod/subset-shared.chunk.js +1 -1
  191. package/dist/prod/subset-worker.chunk.js +1 -1
  192. package/dist/types/common/src/constants.d.ts +2 -16
  193. package/dist/types/excalidraw/actions/actionBoundText.d.ts +0 -4
  194. package/dist/types/excalidraw/actions/actionCanvas.d.ts +0 -22
  195. package/dist/types/excalidraw/actions/actionClipboard.d.ts +0 -4
  196. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +0 -2
  197. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +0 -6
  198. package/dist/types/excalidraw/actions/actionDeselect.d.ts +0 -2
  199. package/dist/types/excalidraw/actions/actionElementLock.d.ts +0 -4
  200. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -2
  201. package/dist/types/excalidraw/actions/actionExport.d.ts +0 -4
  202. package/dist/types/excalidraw/actions/actionFrame.d.ts +0 -8
  203. package/dist/types/excalidraw/actions/actionGroup.d.ts +0 -4
  204. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +0 -4
  205. package/dist/types/excalidraw/actions/actionLink.d.ts +0 -2
  206. package/dist/types/excalidraw/actions/actionProperties.d.ts +0 -4
  207. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +0 -2
  208. package/dist/types/excalidraw/actions/actionStyles.d.ts +0 -2
  209. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +0 -2
  210. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +0 -2
  211. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +0 -2
  212. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +0 -2
  213. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +0 -2
  214. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +0 -2
  215. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +0 -2
  216. package/dist/types/excalidraw/actions/index.d.ts +0 -1
  217. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  218. package/dist/types/excalidraw/actions/types.d.ts +2 -2
  219. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  220. package/dist/types/excalidraw/components/App.d.ts +3 -7
  221. package/dist/types/excalidraw/components/MobileToolBar.d.ts +3 -1
  222. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  223. package/dist/types/excalidraw/components/icons.d.ts +0 -1
  224. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +0 -6
  225. package/dist/types/excalidraw/data/blob.d.ts +3 -184
  226. package/dist/types/excalidraw/data/json.d.ts +2 -7
  227. package/dist/types/excalidraw/data/restore.d.ts +1 -2
  228. package/dist/types/excalidraw/data/types.d.ts +1 -16
  229. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  230. package/dist/types/excalidraw/index.d.ts +3 -6
  231. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  232. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  233. package/dist/types/excalidraw/renderer/animation.d.ts +4 -1
  234. package/dist/types/excalidraw/types.d.ts +12 -30
  235. package/dist/types/math/src/point.d.ts +1 -0
  236. package/package.json +4 -5
  237. package/dist/dev/chunk-EFGBMKJZ.js.map +0 -7
  238. package/dist/dev/chunk-XO7KL57K.js.map +0 -7
  239. package/dist/dev/locales/ar-SA-U3PIVEZH.js.map +0 -7
  240. package/dist/dev/locales/az-AZ-COAM4HVM.js.map +0 -7
  241. package/dist/dev/locales/bg-BG-D6B2W7JL.js.map +0 -7
  242. package/dist/dev/locales/bn-BD-BU7GZAZW.js.map +0 -7
  243. package/dist/dev/locales/bn-IN-MYKDEVNA.js.map +0 -7
  244. package/dist/dev/locales/ca-ES-GEEW5L7T.js.map +0 -7
  245. package/dist/dev/locales/cs-CZ-LNVE3QM5.js.map +0 -7
  246. package/dist/dev/locales/da-DK-CAYJG7FJ.js.map +0 -7
  247. package/dist/dev/locales/de-CH-GCXOD4LK.js.map +0 -7
  248. package/dist/dev/locales/de-DE-CGDBECYD.js.map +0 -7
  249. package/dist/dev/locales/el-GR-G5QZC24A.js.map +0 -7
  250. package/dist/dev/locales/es-ES-UMEOH76W.js.map +0 -7
  251. package/dist/dev/locales/eu-ES-IWRZXJC5.js.map +0 -7
  252. package/dist/dev/locales/fa-IR-QOYVIIJA.js.map +0 -7
  253. package/dist/dev/locales/fi-FI-BXRW65OA.js.map +0 -7
  254. package/dist/dev/locales/fr-FR-R2QH5VCW.js.map +0 -7
  255. package/dist/dev/locales/gl-ES-4ES3ZADP.js.map +0 -7
  256. package/dist/dev/locales/he-IL-TRQRRYPH.js.map +0 -7
  257. package/dist/dev/locales/hi-IN-U46BOJEC.js.map +0 -7
  258. package/dist/dev/locales/hu-HU-JDULJ6XL.js.map +0 -7
  259. package/dist/dev/locales/id-ID-BLIXNCUT.js.map +0 -7
  260. package/dist/dev/locales/it-IT-6TBW7RUK.js.map +0 -7
  261. package/dist/dev/locales/ja-JP-6HYAQFYX.js.map +0 -7
  262. package/dist/dev/locales/kaa-Z5UP62XJ.js.map +0 -7
  263. package/dist/dev/locales/kab-KAB-Z7STWQKS.js.map +0 -7
  264. package/dist/dev/locales/kk-KZ-BWHY45DX.js.map +0 -7
  265. package/dist/dev/locales/km-KH-HGLNWNRU.js.map +0 -7
  266. package/dist/dev/locales/ko-KR-CO36WKPC.js.map +0 -7
  267. package/dist/dev/locales/ku-TR-AACVIARC.js.map +0 -7
  268. package/dist/dev/locales/lt-LT-CFYYFLDV.js.map +0 -7
  269. package/dist/dev/locales/lv-LV-QCBBOFFU.js.map +0 -7
  270. package/dist/dev/locales/mr-IN-B2CM5GK5.js.map +0 -7
  271. package/dist/dev/locales/my-MM-756BNN36.js.map +0 -7
  272. package/dist/dev/locales/nb-NO-5BLHQI4J.js.map +0 -7
  273. package/dist/dev/locales/nl-NL-225BLGAH.js.map +0 -7
  274. package/dist/dev/locales/nn-NO-4J7MR6GH.js.map +0 -7
  275. package/dist/dev/locales/oc-FR-XCETH7KF.js.map +0 -7
  276. package/dist/dev/locales/pa-IN-32NBAN5L.js.map +0 -7
  277. package/dist/dev/locales/pl-PL-R6OJ54BT.js.map +0 -7
  278. package/dist/dev/locales/pt-BR-7AFGAKGR.js.map +0 -7
  279. package/dist/dev/locales/pt-PT-S6BMW6MY.js.map +0 -7
  280. package/dist/dev/locales/ro-RO-4JVGQHS2.js.map +0 -7
  281. package/dist/dev/locales/ru-RU-IESI752T.js.map +0 -7
  282. package/dist/dev/locales/si-LK-H75E7PKD.js.map +0 -7
  283. package/dist/dev/locales/sk-SK-EUK2NR2F.js.map +0 -7
  284. package/dist/dev/locales/sl-SI-AKW7R5PW.js.map +0 -7
  285. package/dist/dev/locales/sv-SE-QIBOOXLJ.js.map +0 -7
  286. package/dist/dev/locales/ta-IN-LBK2NQ5K.js.map +0 -7
  287. package/dist/dev/locales/th-TH-YJ2E6GVT.js.map +0 -7
  288. package/dist/dev/locales/tr-TR-Y5GO2XJW.js.map +0 -7
  289. package/dist/dev/locales/uk-UA-XYAFHHJW.js.map +0 -7
  290. package/dist/dev/locales/uz-UZ-LF3CBRYE.js.map +0 -7
  291. package/dist/dev/locales/vi-VN-WDPZEUOJ.js.map +0 -7
  292. package/dist/dev/locales/zh-CN-SZ37453H.js.map +0 -7
  293. package/dist/dev/locales/zh-HK-QDQ5QNBC.js.map +0 -7
  294. package/dist/dev/locales/zh-TW-CYU6GFBV.js.map +0 -7
  295. package/dist/prod/chunk-SC7IWESZ.js +0 -12
  296. package/dist/prod/chunk-SGSDFYY3.js +0 -4
  297. package/dist/prod/data/image-N3RCNYSN.js +0 -1
  298. package/dist/prod/locales/ar-SA-TS6M4GHP.js +0 -8
  299. package/dist/prod/locales/az-AZ-HJWG4CPD.js +0 -1
  300. package/dist/prod/locales/bg-BG-K42QREUV.js +0 -5
  301. package/dist/prod/locales/bn-BD-IFEECH4W.js +0 -3
  302. package/dist/prod/locales/bn-IN-OE7SKNFR.js +0 -3
  303. package/dist/prod/locales/ca-ES-MKBCGNOG.js +0 -8
  304. package/dist/prod/locales/cs-CZ-V77HGUP7.js +0 -7
  305. package/dist/prod/locales/da-DK-I5RFNTM4.js +0 -2
  306. package/dist/prod/locales/de-CH-WLRDEVBV.js +0 -7
  307. package/dist/prod/locales/de-DE-DTI4WUSC.js +0 -7
  308. package/dist/prod/locales/el-GR-ZXDJ2OS4.js +0 -7
  309. package/dist/prod/locales/en-NJXWY54O.js +0 -1
  310. package/dist/prod/locales/es-ES-DYQHAD43.js +0 -7
  311. package/dist/prod/locales/eu-ES-QDSYU5Y3.js +0 -7
  312. package/dist/prod/locales/fa-IR-26LZG4PM.js +0 -9
  313. package/dist/prod/locales/fi-FI-6YS4KDE4.js +0 -6
  314. package/dist/prod/locales/fr-FR-BRLLPTZC.js +0 -12
  315. package/dist/prod/locales/gl-ES-OKUZTLYG.js +0 -6
  316. package/dist/prod/locales/he-IL-26MGYIU7.js +0 -8
  317. package/dist/prod/locales/hi-IN-Q4ZOGTP2.js +0 -3
  318. package/dist/prod/locales/hu-HU-P2OXPSN5.js +0 -3
  319. package/dist/prod/locales/id-ID-2EIKXYN6.js +0 -8
  320. package/dist/prod/locales/it-IT-4CFKVXI2.js +0 -12
  321. package/dist/prod/locales/ja-JP-MAND2Z4V.js +0 -7
  322. package/dist/prod/locales/kaa-HQRTCXTJ.js +0 -1
  323. package/dist/prod/locales/kab-KAB-JKIKKTGH.js +0 -4
  324. package/dist/prod/locales/kk-KZ-HXQ63ZFC.js +0 -1
  325. package/dist/prod/locales/km-KH-PKL3LSGX.js +0 -7
  326. package/dist/prod/locales/ko-KR-KXLREZX3.js +0 -5
  327. package/dist/prod/locales/ku-TR-MJ4IER3X.js +0 -6
  328. package/dist/prod/locales/lt-LT-H6WFQ6FJ.js +0 -3
  329. package/dist/prod/locales/lv-LV-GOCK6SJW.js +0 -4
  330. package/dist/prod/locales/mr-IN-IXVLDMEQ.js +0 -9
  331. package/dist/prod/locales/my-MM-YG6MYTTD.js +0 -1
  332. package/dist/prod/locales/nb-NO-XGWJISD2.js +0 -8
  333. package/dist/prod/locales/nl-NL-XVDVCPNC.js +0 -13
  334. package/dist/prod/locales/nn-NO-EMX5MJX5.js +0 -4
  335. package/dist/prod/locales/oc-FR-ROEINTVO.js +0 -4
  336. package/dist/prod/locales/pa-IN-ZYN6SUDY.js +0 -4
  337. package/dist/prod/locales/pl-PL-6VTG7PHC.js +0 -12
  338. package/dist/prod/locales/pt-BR-5YFKRR5G.js +0 -6
  339. package/dist/prod/locales/pt-PT-GEIXXZ67.js +0 -8
  340. package/dist/prod/locales/ro-RO-E2P6TFZI.js +0 -12
  341. package/dist/prod/locales/ru-RU-YBIIY43T.js +0 -10
  342. package/dist/prod/locales/si-LK-673C2CI2.js +0 -1
  343. package/dist/prod/locales/sk-SK-CKZHQ4AP.js +0 -7
  344. package/dist/prod/locales/sl-SI-557H2GWM.js +0 -6
  345. package/dist/prod/locales/sv-SE-XOPKKDWS.js +0 -8
  346. package/dist/prod/locales/ta-IN-XBH7DQI3.js +0 -6
  347. package/dist/prod/locales/th-TH-TOCWH3R4.js +0 -1
  348. package/dist/prod/locales/tr-TR-GXW6CYY5.js +0 -4
  349. package/dist/prod/locales/uk-UA-IJKTNUDG.js +0 -6
  350. package/dist/prod/locales/uz-UZ-TBZZEA4V.js +0 -1
  351. package/dist/prod/locales/vi-VN-MULSGNVB.js +0 -7
  352. package/dist/prod/locales/zh-CN-MVX3E32U.js +0 -11
  353. package/dist/prod/locales/zh-HK-JNU5RLIE.js +0 -1
  354. package/dist/prod/locales/zh-TW-LENVCA6T.js +0 -9
  355. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +0 -512
  356. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  357. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +0 -19
  358. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +0 -2
  359. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +0 -24
  360. package/dist/types/excalidraw/components/LibraryMenu.d.ts +0 -10
  361. package/dist/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +0 -7
  362. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +0 -9
  363. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +0 -17
  364. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +0 -14
  365. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +0 -23
  366. package/dist/types/excalidraw/components/LibraryUnit.d.ts +0 -14
  367. package/dist/types/excalidraw/components/PublishLibrary.d.ts +0 -17
  368. package/dist/types/excalidraw/data/library.d.ts +0 -127
  369. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +0 -11
  370. /package/dist/dev/{chunk-ETVKWGYA.js.map → chunk-QHLG4OQL.js.map} +0 -0
  371. /package/dist/dev/data/{image-24SF3JAY.js.map → image-R7FQP7SA.js.map} +0 -0
  372. /package/dist/dev/locales/{en-YKPA7MQG.js.map → en-RQFAMS2U.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -4336,4 +4336,110 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
4336
4336
  - Incorrect import for color (was moved to common)
4337
4337
 
4338
4338
  ---
4339
+ ## Excalidraw Library
4340
+
4341
+ **_This section lists the updates made to the excalidraw library and will not affect the integration._**
4342
+
4343
+ ### Features
4344
+
4345
+ - Add ability to turn off compression for files that are smaller than a given size
4346
+
4347
+ - Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
4348
+
4349
+ - Add view mode button
4350
+
4351
+ - Add multiple image copy paste or drag and drop
4352
+
4353
+ - Multiple image additions from clipboard
4354
+
4355
+ - Add arrange elements action
4356
+
4357
+ - Add top picks to appProps for both stoke color and background color
4358
+
4359
+ ### Fixes
4360
+
4361
+ - Issues
4362
+
4363
+ - Make mobile mode more myoc looking
4364
+
4365
+ - Add normalise functionality
4366
+
4367
+ - Update with excalidraw
4368
+
4369
+ - Fix imports
4370
+
4371
+ - Fix mutateGroup to use scene.mutateGroup
4372
+
4373
+ - Imports
4374
+
4375
+ - Ensure that fileId is different for compressed vs uncompressed file
4376
+
4377
+ - Remove not working prop for dontResizeLimitMBs
4378
+
4379
+ - Add smartview for mobile
4380
+
4381
+ - Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
4382
+
4383
+ - Use css vars already provided instead of hard coding directly from oc-gray
4384
+
4385
+ - Remove unused variables
4386
+
4387
+ - Pass the new top pick color props properly
4388
+
4389
+ - Incorrect import for color (was moved to common)
4390
+
4391
+ ---
4392
+ ## Excalidraw Library
4393
+
4394
+ **_This section lists the updates made to the excalidraw library and will not affect the integration._**
4395
+
4396
+ ### Features
4397
+
4398
+ - Add ability to turn off compression for files that are smaller than a given size
4399
+
4400
+ - Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
4401
+
4402
+ - Add view mode button
4403
+
4404
+ - Add multiple image copy paste or drag and drop
4405
+
4406
+ - Multiple image additions from clipboard
4407
+
4408
+ - Add arrange elements action
4409
+
4410
+ - Add top picks to appProps for both stoke color and background color
4411
+
4412
+ ### Fixes
4413
+
4414
+ - Issues
4415
+
4416
+ - Make mobile mode more myoc looking
4417
+
4418
+ - Add normalise functionality
4419
+
4420
+ - Update with excalidraw
4421
+
4422
+ - Fix imports
4423
+
4424
+ - Fix mutateGroup to use scene.mutateGroup
4425
+
4426
+ - Imports
4427
+
4428
+ - Ensure that fileId is different for compressed vs uncompressed file
4429
+
4430
+ - Remove not working prop for dontResizeLimitMBs
4431
+
4432
+ - Add smartview for mobile
4433
+
4434
+ - Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
4435
+
4436
+ - Use css vars already provided instead of hard coding directly from oc-gray
4437
+
4438
+ - Remove unused variables
4439
+
4440
+ - Pass the new top pick color props properly
4441
+
4442
+ - Incorrect import for color (was moved to common)
4443
+
4444
+ ---
4339
4445
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  define_import_meta_env_default
3
- } from "./chunk-ETVKWGYA.js";
3
+ } from "./chunk-QHLG4OQL.js";
4
4
  import {
5
5
  __publicField
6
6
  } from "./chunk-XDFCUUT6.js";
@@ -640,31 +640,6 @@ var loadFromJSON = async (localAppState, localElements) => {
640
640
  var isValidExcalidrawData = (data) => {
641
641
  return data?.type === EXPORT_DATA_TYPES.excalidraw && (!data.elements || Array.isArray(data.elements) && (!data.appState || typeof data.appState === "object"));
642
642
  };
643
- var isValidLibrary = (json) => {
644
- return typeof json === "object" && json && json.type === EXPORT_DATA_TYPES.excalidrawLibrary && (json.version === 1 || json.version === 2);
645
- };
646
- var serializeLibraryAsJSON = (libraryItems) => {
647
- const data = {
648
- type: EXPORT_DATA_TYPES.excalidrawLibrary,
649
- version: VERSIONS.excalidrawLibrary,
650
- source: getExportSource(),
651
- libraryItems
652
- };
653
- return JSON.stringify(data, null, 2);
654
- };
655
- var saveLibraryAsJSON = async (libraryItems) => {
656
- const serialized = serializeLibraryAsJSON(libraryItems);
657
- await fileSave(
658
- new Blob([serialized], {
659
- type: MIME_TYPES2.excalidrawlib
660
- }),
661
- {
662
- name: "library",
663
- extension: "excalidrawlib",
664
- description: "Excalidraw library file"
665
- }
666
- );
667
- };
668
643
 
669
644
  // fonts/Fonts.ts
670
645
  import {
@@ -4462,7 +4437,7 @@ var getExportSize = (elements, exportPadding, scale) => {
4462
4437
  };
4463
4438
 
4464
4439
  // data/restore.ts
4465
- import { isFiniteNumber, pointFrom as pointFrom2 } from "@excalidraw/math";
4440
+ import { isFiniteNumber, isValidPoint, pointFrom as pointFrom2 } from "@excalidraw/math";
4466
4441
  import {
4467
4442
  DEFAULT_FONT_FAMILY as DEFAULT_FONT_FAMILY2,
4468
4443
  DEFAULT_TEXT_ALIGN as DEFAULT_TEXT_ALIGN2,
@@ -4483,7 +4458,6 @@ import {
4483
4458
  } from "@excalidraw/common";
4484
4459
  import {
4485
4460
  calculateFixedPointForNonElbowArrowBinding,
4486
- getNonDeletedElements,
4487
4461
  normalizeArrowhead,
4488
4462
  isPointInElement,
4489
4463
  isValidPolygon,
@@ -4512,6 +4486,45 @@ import { refreshTextDimensions } from "@excalidraw/element";
4512
4486
  import { getNormalizedDimensions } from "@excalidraw/element";
4513
4487
  import { isInvisiblySmallElement } from "@excalidraw/element";
4514
4488
  var MAX_ARROW_PX = 75e3;
4489
+ var restoreLinearElementPoints = (points, width, height) => {
4490
+ const restoredPoints = Array.isArray(points) ? points.reduce((acc, point) => {
4491
+ if (isValidPoint(point)) {
4492
+ acc.push(pointFrom2(point[0], point[1]));
4493
+ }
4494
+ return acc;
4495
+ }, []) : [];
4496
+ return restoredPoints.length < 2 ? [
4497
+ pointFrom2(0, 0),
4498
+ pointFrom2(
4499
+ isFiniteNumber(width) ? width : 0,
4500
+ isFiniteNumber(height) ? height : 0
4501
+ )
4502
+ ] : restoredPoints;
4503
+ };
4504
+ var restoreFreedrawPoints = (points, pressures) => {
4505
+ if (!Array.isArray(points)) {
4506
+ return {
4507
+ points: [],
4508
+ pressures: []
4509
+ };
4510
+ }
4511
+ const pressureValues = Array.isArray(pressures) ? pressures : [];
4512
+ const restoredPoints = [];
4513
+ const restoredPressures = [];
4514
+ points.forEach((point, index) => {
4515
+ if (isValidPoint(point)) {
4516
+ restoredPoints.push(pointFrom2(point[0], point[1]));
4517
+ if (index in pressureValues) {
4518
+ const pressure = pressureValues[index];
4519
+ restoredPressures.push(isFiniteNumber(pressure) ? pressure : 0.5);
4520
+ }
4521
+ }
4522
+ });
4523
+ return {
4524
+ points: restoredPoints,
4525
+ pressures: restoredPressures
4526
+ };
4527
+ };
4515
4528
  var AllowedExcalidrawActiveTools = {
4516
4529
  selection: true,
4517
4530
  lasso: true,
@@ -4701,10 +4714,14 @@ var restoreElement = (element, targetElementsMap, existingElementsMap, opts) =>
4701
4714
  }
4702
4715
  return element;
4703
4716
  case "freedraw": {
4717
+ const { points: points2, pressures } = restoreFreedrawPoints(
4718
+ element.points,
4719
+ element.pressures
4720
+ );
4704
4721
  return restoreElementWithProperties(element, {
4705
- points: element.points,
4722
+ points: points2,
4706
4723
  simulatePressure: element.simulatePressure,
4707
- pressures: element.pressures
4724
+ pressures
4708
4725
  });
4709
4726
  }
4710
4727
  case "image":
@@ -4720,12 +4737,18 @@ var restoreElement = (element, targetElementsMap, existingElementsMap, opts) =>
4720
4737
  const endArrowhead = normalizeArrowhead(element.endArrowhead);
4721
4738
  let x = element.x;
4722
4739
  let y = element.y;
4723
- let points = (
4724
- // migrate old arrow model to new one
4725
- !Array.isArray(element.points) || element.points.length < 2 ? [pointFrom2(0, 0), pointFrom2(element.width, element.height)] : element.points
4740
+ let points = restoreLinearElementPoints(
4741
+ element.points,
4742
+ element.width,
4743
+ element.height
4726
4744
  );
4727
4745
  if (points[0][0] !== 0 || points[0][1] !== 0) {
4728
- ({ points, x, y } = LinearElementEditor2.getNormalizeElementPointsAndCoords(element));
4746
+ ({ points, x, y } = LinearElementEditor2.getNormalizeElementPointsAndCoords({
4747
+ ...element,
4748
+ points,
4749
+ x: x ?? 0,
4750
+ y: y ?? 0
4751
+ }));
4729
4752
  }
4730
4753
  return restoreElementWithProperties(element, {
4731
4754
  type: "line",
@@ -4737,7 +4760,7 @@ var restoreElement = (element, targetElementsMap, existingElementsMap, opts) =>
4737
4760
  x,
4738
4761
  y,
4739
4762
  ...isLineElement(element) ? {
4740
- polygon: isValidPolygon(element.points) ? element.polygon ?? false : false
4763
+ polygon: isValidPolygon(points) ? element.polygon ?? false : false
4741
4764
  } : {},
4742
4765
  ...getSizeFromPoints(points)
4743
4766
  });
@@ -4746,21 +4769,28 @@ var restoreElement = (element, targetElementsMap, existingElementsMap, opts) =>
4746
4769
  const endArrowhead2 = element.endArrowhead === void 0 ? "arrow" : normalizeArrowhead(element.endArrowhead);
4747
4770
  const x2 = element.x;
4748
4771
  const y2 = element.y;
4749
- const points2 = (
4750
- // migrate old arrow model to new one
4751
- !Array.isArray(element.points) || element.points.length < 2 ? [pointFrom2(0, 0), pointFrom2(element.width, element.height)] : element.points
4772
+ const points2 = restoreLinearElementPoints(
4773
+ element.points,
4774
+ element.width,
4775
+ element.height
4752
4776
  );
4777
+ const elementWithRestoredPoints = {
4778
+ ...element,
4779
+ points: points2,
4780
+ x: x2 ?? 0,
4781
+ y: y2 ?? 0
4782
+ };
4753
4783
  const base = {
4754
4784
  type: element.type,
4755
4785
  startBinding: repairBinding(
4756
- element,
4786
+ elementWithRestoredPoints,
4757
4787
  element.startBinding,
4758
4788
  targetElementsMap,
4759
4789
  existingElementsMap,
4760
4790
  "start"
4761
4791
  ),
4762
4792
  endBinding: repairBinding(
4763
- element,
4793
+ elementWithRestoredPoints,
4764
4794
  element.endBinding,
4765
4795
  targetElementsMap,
4766
4796
  existingElementsMap,
@@ -5065,48 +5095,13 @@ var restoreAppState = (appState, localAppState) => {
5065
5095
  editingFrame: null
5066
5096
  };
5067
5097
  };
5068
- var restoreLibraryItem = (libraryItem) => {
5069
- const elements = restoreElements(
5070
- getNonDeletedElements(libraryItem.elements),
5071
- null
5072
- );
5073
- return elements.length ? { ...libraryItem, elements } : null;
5074
- };
5075
- var restoreLibraryItems = (libraryItems = [], defaultStatus) => {
5076
- const restoredItems = [];
5077
- for (const item of libraryItems) {
5078
- if (Array.isArray(item)) {
5079
- const restoredItem = restoreLibraryItem({
5080
- status: defaultStatus,
5081
- elements: item,
5082
- id: randomId(),
5083
- created: Date.now()
5084
- });
5085
- if (restoredItem) {
5086
- restoredItems.push(restoredItem);
5087
- }
5088
- } else {
5089
- const _item = item;
5090
- const restoredItem = restoreLibraryItem({
5091
- ..._item,
5092
- id: _item.id || randomId(),
5093
- status: _item.status || defaultStatus,
5094
- created: _item.created || Date.now()
5095
- });
5096
- if (restoredItem) {
5097
- restoredItems.push(restoredItem);
5098
- }
5099
- }
5100
- }
5101
- return restoredItems;
5102
- };
5103
5098
 
5104
5099
  // data/blob.ts
5105
5100
  var parseFileContents = async (blob) => {
5106
5101
  let contents;
5107
5102
  if (blob.type === MIME_TYPES6.png) {
5108
5103
  try {
5109
- return await (await import("./data/image-24SF3JAY.js")).decodePngMetadata(blob);
5104
+ return await (await import("./data/image-R7FQP7SA.js")).decodePngMetadata(blob);
5110
5105
  } catch (error) {
5111
5106
  if (error.message === "INVALID") {
5112
5107
  throw new ImageSceneDataError(
@@ -5170,7 +5165,7 @@ var isSupportedImageFile = (blob) => {
5170
5165
  const { type } = blob || {};
5171
5166
  return isSupportedImageFileType(type);
5172
5167
  };
5173
- var loadSceneOrLibraryFromBlob = async (blob, localAppState, localElements, fileHandle) => {
5168
+ var loadFromBlob = async (blob, localAppState, localElements, fileHandle) => {
5174
5169
  const contents = await parseFileContents(blob);
5175
5170
  let data;
5176
5171
  try {
@@ -5187,28 +5182,20 @@ var loadSceneOrLibraryFromBlob = async (blob, localAppState, localElements, file
5187
5182
  }
5188
5183
  if (isValidExcalidrawData(data)) {
5189
5184
  return {
5190
- type: MIME_TYPES6.excalidraw,
5191
- data: {
5192
- elements: restoreElements(data.elements, localElements, {
5193
- repairBindings: true,
5194
- deleteInvisibleElements: true
5195
- }),
5196
- appState: restoreAppState(
5197
- {
5198
- theme: localAppState?.theme,
5199
- fileHandle: fileHandle || blob.handle || null,
5200
- ...cleanAppStateForExport(data.appState || {}),
5201
- ...localAppState ? calculateScrollCenter(data.elements || [], localAppState) : {}
5202
- },
5203
- localAppState
5204
- ),
5205
- files: data.files || {}
5206
- }
5207
- };
5208
- } else if (isValidLibrary(data)) {
5209
- return {
5210
- type: MIME_TYPES6.excalidrawlib,
5211
- data
5185
+ elements: restoreElements(data.elements, localElements, {
5186
+ repairBindings: true,
5187
+ deleteInvisibleElements: true
5188
+ }),
5189
+ appState: restoreAppState(
5190
+ {
5191
+ theme: localAppState?.theme,
5192
+ fileHandle: fileHandle || blob.handle || null,
5193
+ ...cleanAppStateForExport(data.appState || {}),
5194
+ ...localAppState ? calculateScrollCenter(data.elements || [], localAppState) : {}
5195
+ },
5196
+ localAppState
5197
+ ),
5198
+ files: data.files || {}
5212
5199
  };
5213
5200
  }
5214
5201
  throw new Error("Error: invalid file");
@@ -5219,29 +5206,6 @@ var loadSceneOrLibraryFromBlob = async (blob, localAppState, localElements, file
5219
5206
  throw new Error("Error: invalid file");
5220
5207
  }
5221
5208
  };
5222
- var loadFromBlob = async (blob, localAppState, localElements, fileHandle) => {
5223
- const ret = await loadSceneOrLibraryFromBlob(
5224
- blob,
5225
- localAppState,
5226
- localElements,
5227
- fileHandle
5228
- );
5229
- if (ret.type !== MIME_TYPES6.excalidraw) {
5230
- throw new Error("Error: invalid file");
5231
- }
5232
- return ret.data;
5233
- };
5234
- var parseLibraryJSON = (json, defaultStatus = "unpublished") => {
5235
- const data = JSON.parse(json);
5236
- if (!isValidLibrary(data)) {
5237
- throw new Error("Invalid library");
5238
- }
5239
- const libraryItems = data.libraryItems || data.library;
5240
- return restoreLibraryItems(libraryItems, defaultStatus);
5241
- };
5242
- var loadLibraryFromBlob = async (blob, defaultStatus = "unpublished") => {
5243
- return parseLibraryJSON(await parseFileContents(blob), defaultStatus);
5244
- };
5245
5209
  var canvasToBlob = async (canvas) => {
5246
5210
  return new Promise(async (resolve, reject) => {
5247
5211
  try {
@@ -5363,9 +5327,7 @@ var normalizeFile = async (file) => {
5363
5327
  if (file[normalizedFileSymbol]) {
5364
5328
  return file;
5365
5329
  }
5366
- if (file?.name?.endsWith(".excalidrawlib")) {
5367
- file = createFile(file, MIME_TYPES6.excalidrawlib, file.name);
5368
- } else if (file?.name?.endsWith(".excalidraw")) {
5330
+ if (file?.name?.endsWith(".excalidraw")) {
5369
5331
  file = createFile(file, MIME_TYPES6.excalidraw, file.name);
5370
5332
  } else if (!file.type || file.type?.startsWith("image/")) {
5371
5333
  const mimeType = await getActualMimeTypeFromImage(file);
@@ -5465,8 +5427,6 @@ export {
5465
5427
  serializeAsJSON,
5466
5428
  saveAsJSON,
5467
5429
  loadFromJSON,
5468
- serializeLibraryAsJSON,
5469
- saveLibraryAsJSON,
5470
5430
  getLinkHandleFromCoords,
5471
5431
  isPointHittingLink,
5472
5432
  fillCircle,
@@ -5482,7 +5442,6 @@ export {
5482
5442
  restoreElement,
5483
5443
  restoreElements,
5484
5444
  restoreAppState,
5485
- restoreLibraryItems,
5486
5445
  getTEXtChunk,
5487
5446
  encodePngMetadata,
5488
5447
  decodePngMetadata,
@@ -5491,10 +5450,7 @@ export {
5491
5450
  isImageFileHandle,
5492
5451
  isSupportedImageFileType,
5493
5452
  isSupportedImageFile,
5494
- loadSceneOrLibraryFromBlob,
5495
5453
  loadFromBlob,
5496
- parseLibraryJSON,
5497
- loadLibraryFromBlob,
5498
5454
  canvasToBlob,
5499
5455
  generateIdFromFile,
5500
5456
  getDataURL,
@@ -5506,4 +5462,4 @@ export {
5506
5462
  createFile,
5507
5463
  normalizeFile
5508
5464
  };
5509
- //# sourceMappingURL=chunk-EFGBMKJZ.js.map
5465
+ //# sourceMappingURL=chunk-OBLRXIUK.js.map