@excalidraw/excalidraw 0.17.3 → 0.17.5

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 (221) hide show
  1. package/dist/excalidraw-assets-dev/{vendor-1e45dd9aba63a718dcee.js → vendor-7857feed4fca7dd67386.js} +1013 -1013
  2. package/dist/excalidraw-with-preact.development.js +18 -18
  3. package/dist/excalidraw-with-preact.production.min.js +1 -1
  4. package/dist/excalidraw.development.js +18 -18
  5. package/dist/excalidraw.production.min.js +1 -1
  6. package/package.json +1 -1
  7. package/types/data/url.d.ts +1 -0
  8. package/types/element/embeddable.d.ts +3 -0
  9. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ar-SA-json-06d4bd2f3a164162f2b8.d.ts +0 -0
  10. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ar-SA-json-b9c75e6743e089f51f9b.d.ts +0 -0
  11. package/types/packages/excalidraw/dist/excalidraw-assets/locales/az-AZ-json-32268e2c7ad89fce5d2c.d.ts +0 -0
  12. package/types/packages/excalidraw/dist/excalidraw-assets/locales/bg-BG-json-72ac7b7548d7fefdcd2a.d.ts +0 -0
  13. package/types/packages/excalidraw/dist/excalidraw-assets/locales/bg-BG-json-ff5ef83d3c2706367417.d.ts +0 -0
  14. package/types/packages/excalidraw/dist/excalidraw-assets/locales/bn-BD-json-759924ef13bd9e602cb3.d.ts +0 -0
  15. package/types/packages/excalidraw/dist/excalidraw-assets/locales/bn-BD-json-f9b1344b2f5c0ab53ce8.d.ts +0 -0
  16. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ca-ES-json-6108f4ae0be3d1e369a6.d.ts +0 -0
  17. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ca-ES-json-d4a1f01f8c174c315974.d.ts +0 -0
  18. package/types/packages/excalidraw/dist/excalidraw-assets/locales/cs-CZ-json-1ae99f296c9febb99f72.d.ts +0 -0
  19. package/types/packages/excalidraw/dist/excalidraw-assets/locales/cs-CZ-json-ff1b9bbfe92356698245.d.ts +0 -0
  20. package/types/packages/excalidraw/dist/excalidraw-assets/locales/da-DK-json-ac982a0c1e02b45f9500.d.ts +0 -0
  21. package/types/packages/excalidraw/dist/excalidraw-assets/locales/da-DK-json-ed85a6f48e1df51b1b46.d.ts +0 -0
  22. package/types/packages/excalidraw/dist/excalidraw-assets/locales/de-DE-json-a3222d8a9ed4864ccedf.d.ts +0 -0
  23. package/types/packages/excalidraw/dist/excalidraw-assets/locales/de-DE-json-f70dfb7201a16dc3f9fc.d.ts +0 -0
  24. package/types/packages/excalidraw/dist/excalidraw-assets/locales/el-GR-json-79f7d66730b39df84f8e.d.ts +0 -0
  25. package/types/packages/excalidraw/dist/excalidraw-assets/locales/el-GR-json-8cc1609bd088ec4f197a.d.ts +0 -0
  26. package/types/packages/excalidraw/dist/excalidraw-assets/locales/es-ES-json-4f3da97feff33cb00e6d.d.ts +0 -0
  27. package/types/packages/excalidraw/dist/excalidraw-assets/locales/es-ES-json-682b92427b8b27bb0aa8.d.ts +0 -0
  28. package/types/packages/excalidraw/dist/excalidraw-assets/locales/eu-ES-json-1cc77079b354b962615f.d.ts +0 -0
  29. package/types/packages/excalidraw/dist/excalidraw-assets/locales/eu-ES-json-f9efd2bf2555bceb526a.d.ts +0 -0
  30. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fa-IR-json-586a1324f942d89620b6.d.ts +0 -0
  31. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fa-IR-json-abcad5d329ac9558750e.d.ts +0 -0
  32. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fi-FI-json-7250174bb3682c3ee602.d.ts +0 -0
  33. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fi-FI-json-d43636fb51002f55e2a4.d.ts +0 -0
  34. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fr-FR-json-b5ea877625968f748b7f.d.ts +0 -0
  35. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fr-FR-json-f82759a1bc767e0889bd.d.ts +0 -0
  36. package/types/packages/excalidraw/dist/excalidraw-assets/locales/gl-ES-json-2117445509ba7c479ee0.d.ts +0 -0
  37. package/types/packages/excalidraw/dist/excalidraw-assets/locales/gl-ES-json-8408403b5df17158e269.d.ts +0 -0
  38. package/types/packages/excalidraw/dist/excalidraw-assets/locales/he-IL-json-2e5cea590dd00f76b42f.d.ts +0 -0
  39. package/types/packages/excalidraw/dist/excalidraw-assets/locales/he-IL-json-3280be0edae615c7685f.d.ts +0 -0
  40. package/types/packages/excalidraw/dist/excalidraw-assets/locales/hi-IN-json-3898c9c1216b44476529.d.ts +0 -0
  41. package/types/packages/excalidraw/dist/excalidraw-assets/locales/hi-IN-json-dad8ce15f9b7a435a926.d.ts +0 -0
  42. package/types/packages/excalidraw/dist/excalidraw-assets/locales/hu-HU-json-1b5028b3a2676b3e7bde.d.ts +0 -0
  43. package/types/packages/excalidraw/dist/excalidraw-assets/locales/hu-HU-json-6ccf0d8a164ecec52187.d.ts +0 -0
  44. package/types/packages/excalidraw/dist/excalidraw-assets/locales/id-ID-json-0e69caf5d919807ed234.d.ts +0 -0
  45. package/types/packages/excalidraw/dist/excalidraw-assets/locales/id-ID-json-6031eb8be253b20c28e9.d.ts +0 -0
  46. package/types/packages/excalidraw/dist/excalidraw-assets/locales/it-IT-json-446b14f993000d0f572f.d.ts +0 -0
  47. package/types/packages/excalidraw/dist/excalidraw-assets/locales/it-IT-json-a1526e95ebe4c2156ffb.d.ts +0 -0
  48. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ja-JP-json-b7b0079dca8ece2551c7.d.ts +0 -0
  49. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ja-JP-json-ef6ec5abb0c3c53c7a51.d.ts +0 -0
  50. package/types/packages/excalidraw/dist/excalidraw-assets/locales/kaa-json-b2f03ae2f239b9fae304.d.ts +0 -0
  51. package/types/packages/excalidraw/dist/excalidraw-assets/locales/kab-KAB-json-69853849c71eff277ba0.d.ts +0 -0
  52. package/types/packages/excalidraw/dist/excalidraw-assets/locales/kab-KAB-json-e8618205ea49417e5fb4.d.ts +0 -0
  53. package/types/packages/excalidraw/dist/excalidraw-assets/locales/kk-KZ-json-1f9df2b51e34996bad30.d.ts +0 -0
  54. package/types/packages/excalidraw/dist/excalidraw-assets/locales/kk-KZ-json-f648362328b839e9313f.d.ts +0 -0
  55. package/types/packages/excalidraw/dist/excalidraw-assets/locales/km-KH-json-920cbd8cb9ea3c2ce631.d.ts +0 -0
  56. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ko-KR-json-cf33ecf52ab95055544b.d.ts +0 -0
  57. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ko-KR-json-e5f26d9854a5d68ada0a.d.ts +0 -0
  58. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ku-TR-json-374bbbb0b003a490681d.d.ts +0 -0
  59. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ku-TR-json-d10a4bb9ede3c08a08e1.d.ts +0 -0
  60. package/types/packages/excalidraw/dist/excalidraw-assets/locales/lt-LT-json-08c7fc343ef2f533ec5f.d.ts +0 -0
  61. package/types/packages/excalidraw/dist/excalidraw-assets/locales/lt-LT-json-9caac0d3530651221c75.d.ts +0 -0
  62. package/types/packages/excalidraw/dist/excalidraw-assets/locales/lv-LV-json-1e3a5e87e39d2d90274c.d.ts +0 -0
  63. package/types/packages/excalidraw/dist/excalidraw-assets/locales/lv-LV-json-c811870330575e53285c.d.ts +0 -0
  64. package/types/packages/excalidraw/dist/excalidraw-assets/locales/mr-IN-json-05294735c64b63223d8e.d.ts +0 -0
  65. package/types/packages/excalidraw/dist/excalidraw-assets/locales/mr-IN-json-c922a007bb00d3e4f3b1.d.ts +0 -0
  66. package/types/packages/excalidraw/dist/excalidraw-assets/locales/my-MM-json-1a05d5c242c822079dca.d.ts +0 -0
  67. package/types/packages/excalidraw/dist/excalidraw-assets/locales/my-MM-json-c3cff6d30b1e629f546f.d.ts +0 -0
  68. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nb-NO-json-75cfab63ad7c2ff45f19.d.ts +0 -0
  69. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nb-NO-json-7ea7ab2356e76889af8d.d.ts +0 -0
  70. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nl-NL-json-5805f36f33a3f8e53adc.d.ts +0 -0
  71. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nl-NL-json-90ef39ed303967aeb9c2.d.ts +0 -0
  72. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nn-NO-json-1a8db0d8c3717d895cc5.d.ts +0 -0
  73. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nn-NO-json-8209f0f674435b52293d.d.ts +0 -0
  74. package/types/packages/excalidraw/dist/excalidraw-assets/locales/oc-FR-json-925326d13bc187dcd377.d.ts +0 -0
  75. package/types/packages/excalidraw/dist/excalidraw-assets/locales/oc-FR-json-e90ca79174b6e1eccb72.d.ts +0 -0
  76. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pa-IN-json-1854ecccf3c6f8ea9c46.d.ts +0 -0
  77. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pa-IN-json-d9ee09801ed220840b2b.d.ts +0 -0
  78. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pl-PL-json-9a1b0b7262cd86ab734f.d.ts +0 -0
  79. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pl-PL-json-b4be83b26070e4cf70ca.d.ts +0 -0
  80. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pt-BR-json-2e7a1690edc8d46e8842.d.ts +0 -0
  81. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pt-BR-json-62a1095dd13343b61194.d.ts +0 -0
  82. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pt-PT-json-aba1622a80e32e465a3d.d.ts +0 -0
  83. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pt-PT-json-cc517eed349ce432b054.d.ts +0 -0
  84. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ro-RO-json-162b57c475da796d5a5b.d.ts +0 -0
  85. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ro-RO-json-3397acad1a98b5093c8b.d.ts +0 -0
  86. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ru-RU-json-8ab49e8d0473e92a8ab9.d.ts +0 -0
  87. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ru-RU-json-cfc347872e181d1335a7.d.ts +0 -0
  88. package/types/packages/excalidraw/dist/excalidraw-assets/locales/si-LK-json-674ece30d49390e45733.d.ts +0 -0
  89. package/types/packages/excalidraw/dist/excalidraw-assets/locales/si-LK-json-db1222db995d9425e281.d.ts +0 -0
  90. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sk-SK-json-50dcb09552f93c2de3a4.d.ts +0 -0
  91. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sk-SK-json-8edebc008b63305c87e1.d.ts +0 -0
  92. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sl-SI-json-68eba9ac00ae57bae3f4.d.ts +0 -0
  93. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sl-SI-json-826580e1006547dbbd3b.d.ts +0 -0
  94. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sv-SE-json-36b97455521e61312a47.d.ts +0 -0
  95. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sv-SE-json-84a855efd030e37f51ab.d.ts +0 -0
  96. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ta-IN-json-4063d11b19f24794564a.d.ts +0 -0
  97. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ta-IN-json-f59f50c4b8f2b2fee8ca.d.ts +0 -0
  98. package/types/packages/excalidraw/dist/excalidraw-assets/locales/th-TH-json-3a152569bbebfec7c6c0.d.ts +0 -0
  99. package/types/packages/excalidraw/dist/excalidraw-assets/locales/th-TH-json-4cbe42d56e0a6f261769.d.ts +0 -0
  100. package/types/packages/excalidraw/dist/excalidraw-assets/locales/tr-TR-json-9002b1505b0931924d42.d.ts +0 -0
  101. package/types/packages/excalidraw/dist/excalidraw-assets/locales/tr-TR-json-eb07e9699c26fef02345.d.ts +0 -0
  102. package/types/packages/excalidraw/dist/excalidraw-assets/locales/uk-UA-json-4e345c790342b7672248.d.ts +0 -0
  103. package/types/packages/excalidraw/dist/excalidraw-assets/locales/uk-UA-json-a48bb2e866a11d396a35.d.ts +0 -0
  104. package/types/packages/excalidraw/dist/excalidraw-assets/locales/vi-VN-json-2f5b95c0011820e16f4b.d.ts +0 -0
  105. package/types/packages/excalidraw/dist/excalidraw-assets/locales/vi-VN-json-cbbaff972778abc0e34b.d.ts +0 -0
  106. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-CN-json-2cb13b38b6615ada3097.d.ts +0 -0
  107. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-CN-json-62d636303447fe79db54.d.ts +0 -0
  108. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-HK-json-19e6814bddb06e0dd6e3.d.ts +0 -0
  109. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-HK-json-4bcbf71743fda1544a84.d.ts +0 -0
  110. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-TW-json-3fcc3dcef74999ea3757.d.ts +0 -0
  111. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-TW-json-c39caba2da3f001066a8.d.ts +0 -0
  112. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-53d1c69ef585b6dd219b.d.ts +0 -0
  113. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-ef3c5d81a00ef582b871.d.ts +0 -0
  114. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ar-SA-json-8df64942a3f6232064a4.d.ts +2 -0
  115. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ar-SA-json-a69e95810fd104088c5c.d.ts +2 -0
  116. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/az-AZ-json-589b1b62c7020f14c833.d.ts +2 -0
  117. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/bg-BG-json-79742eced03e74339dfa.d.ts +2 -0
  118. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/bg-BG-json-f0939048738ceeacefae.d.ts +2 -0
  119. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/bn-BD-json-4b92eb02a90d83c47173.d.ts +2 -0
  120. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/bn-BD-json-737c1b739f303a032d89.d.ts +2 -0
  121. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ca-ES-json-5f515dea6151baaa2eaa.d.ts +2 -0
  122. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ca-ES-json-e85ce0d6447d42432c66.d.ts +2 -0
  123. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/cs-CZ-json-124bc5ab8060f0c7e965.d.ts +2 -0
  124. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/cs-CZ-json-2a885b79b3be836df283.d.ts +2 -0
  125. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/da-DK-json-d099915b14b07f999456.d.ts +2 -0
  126. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/da-DK-json-dfdaec93be64dc2704d9.d.ts +2 -0
  127. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/de-DE-json-72757b9d842748bf832e.d.ts +2 -0
  128. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/de-DE-json-d8d9ee97794526088903.d.ts +2 -0
  129. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/el-GR-json-8562deea2ef40d73cf8a.d.ts +2 -0
  130. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/el-GR-json-c18382659d1c0307b73b.d.ts +2 -0
  131. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/es-ES-json-aacc6f2fd98f0f967c32.d.ts +2 -0
  132. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/es-ES-json-da3d630806693d7dac08.d.ts +2 -0
  133. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/eu-ES-json-63e15be6c04e80959411.d.ts +2 -0
  134. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/eu-ES-json-ea32646b47bf29438fb9.d.ts +2 -0
  135. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/fa-IR-json-7b9d274d5accc82982e9.d.ts +2 -0
  136. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/fa-IR-json-e8d73ea1c5bdccca7b27.d.ts +2 -0
  137. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/fi-FI-json-1d2a667fad3ea0ced0ef.d.ts +2 -0
  138. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/fi-FI-json-b466031cdd8ef6f8c32b.d.ts +2 -0
  139. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/fr-FR-json-0d4f6fdfa9be76a941d7.d.ts +2 -0
  140. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/fr-FR-json-ef3b02eac347cee42eac.d.ts +2 -0
  141. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/gl-ES-json-3c8bbe9429fc52e410b2.d.ts +2 -0
  142. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/gl-ES-json-46863175bb629a5bb37e.d.ts +2 -0
  143. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/he-IL-json-4a05a09da3b8c37144d5.d.ts +2 -0
  144. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/he-IL-json-e0bd304682986695208c.d.ts +2 -0
  145. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/hi-IN-json-0300ce94e80ea89134af.d.ts +2 -0
  146. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/hi-IN-json-0e1dae2ff14e81ba2dd4.d.ts +2 -0
  147. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/hu-HU-json-230434a2a2eb764d410c.d.ts +2 -0
  148. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/hu-HU-json-331ac1b31c82505ea6cc.d.ts +2 -0
  149. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/id-ID-json-c163c21859b707d96c6d.d.ts +2 -0
  150. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/id-ID-json-f8ba56a28586e4e77070.d.ts +2 -0
  151. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/it-IT-json-0d8f11dec1a87e9359c8.d.ts +2 -0
  152. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/it-IT-json-f3776c336b416375460b.d.ts +2 -0
  153. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ja-JP-json-452835b81621e5ae6cb6.d.ts +2 -0
  154. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ja-JP-json-ceaa3287f265ae241112.d.ts +2 -0
  155. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/kaa-json-4efd2d14964af8a534cb.d.ts +2 -0
  156. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/kab-KAB-json-3e7e196cc06505d82d71.d.ts +2 -0
  157. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/kab-KAB-json-61a7d382c88b96fe1f38.d.ts +2 -0
  158. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/kk-KZ-json-0f99b0b0e9aeb250f10d.d.ts +2 -0
  159. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/kk-KZ-json-96ab3e149666871ce872.d.ts +2 -0
  160. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/km-KH-json-5e3f43be16a6ec0eb24f.d.ts +2 -0
  161. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ko-KR-json-1f078c7aad070d3bd0e9.d.ts +2 -0
  162. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ko-KR-json-3de3dc5cb1dac5b79f94.d.ts +2 -0
  163. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ku-TR-json-22a3fdac3947f747cd75.d.ts +2 -0
  164. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ku-TR-json-fcef5d1f6a04981f2a5e.d.ts +2 -0
  165. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/lt-LT-json-09bf8afbe684fc98c92a.d.ts +2 -0
  166. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/lt-LT-json-535e00475a2d73aa8927.d.ts +2 -0
  167. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/lv-LV-json-6e981883d91c29060dd4.d.ts +2 -0
  168. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/lv-LV-json-95d0faca7a20097e219f.d.ts +2 -0
  169. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/mr-IN-json-3ffe983e37fedc73cd65.d.ts +2 -0
  170. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/mr-IN-json-6ad409707531c84de376.d.ts +2 -0
  171. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/my-MM-json-c88241ade5d8f9bafe5d.d.ts +2 -0
  172. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/my-MM-json-cb25da0149000113fd3f.d.ts +2 -0
  173. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/nb-NO-json-b80dd1befb2641b9364c.d.ts +2 -0
  174. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/nb-NO-json-bd11ba266e4e2c0fa619.d.ts +2 -0
  175. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/nl-NL-json-4f65f25ec5e87503413e.d.ts +2 -0
  176. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/nl-NL-json-8e66a88c43a7eeed44f8.d.ts +2 -0
  177. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/nn-NO-json-2134d8b06b7e30965748.d.ts +2 -0
  178. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/nn-NO-json-608fd6a88621d6d18035.d.ts +2 -0
  179. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/oc-FR-json-3e134022a025ff54b6f2.d.ts +2 -0
  180. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/oc-FR-json-dc16297d69033e71846a.d.ts +2 -0
  181. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/pa-IN-json-03bbe592bfa55fe214a9.d.ts +2 -0
  182. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/pa-IN-json-97ad2e2064b71f244820.d.ts +2 -0
  183. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/pl-PL-json-1ed88814e0018339868e.d.ts +2 -0
  184. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/pl-PL-json-3e483c75de431520dfa3.d.ts +2 -0
  185. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/pt-BR-json-49f03e588be4c6bbe08c.d.ts +2 -0
  186. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/pt-BR-json-a9f4548703a436582ea1.d.ts +2 -0
  187. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/pt-PT-json-2929d15eba5953ef7715.d.ts +2 -0
  188. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/pt-PT-json-722910761860dbd3fb87.d.ts +2 -0
  189. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ro-RO-json-785455320326c2640311.d.ts +2 -0
  190. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ro-RO-json-fe65a70419c866a6ce94.d.ts +2 -0
  191. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ru-RU-json-2c39ffbb623db8024be0.d.ts +2 -0
  192. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ru-RU-json-8836a70e1fe715aa70c7.d.ts +2 -0
  193. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/si-LK-json-244722aa29ba7ca8bd7a.d.ts +2 -0
  194. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/si-LK-json-a867646cf3fa3a22cafb.d.ts +2 -0
  195. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/sk-SK-json-97afb0ec22d1503e2af4.d.ts +2 -0
  196. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/sk-SK-json-bb5ffb40cd779a63565f.d.ts +2 -0
  197. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/sl-SI-json-d1036f8f3d1f6b1a70f4.d.ts +2 -0
  198. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/sl-SI-json-e59c2bd944228503e705.d.ts +2 -0
  199. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/sv-SE-json-53791d0a923a4de6a2e2.d.ts +2 -0
  200. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/sv-SE-json-8ee6702d94e84e48faa8.d.ts +2 -0
  201. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ta-IN-json-30fffc9f1cedf1d559d8.d.ts +2 -0
  202. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/ta-IN-json-3c99dc4ff8af7e2523f3.d.ts +2 -0
  203. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/th-TH-json-523e92f9f3b6924c3f66.d.ts +2 -0
  204. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/th-TH-json-a4b323409d22013c30e2.d.ts +2 -0
  205. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/tr-TR-json-399c6f39c50e30399d18.d.ts +2 -0
  206. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/tr-TR-json-e43e35aa81edeb9058ee.d.ts +2 -0
  207. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/uk-UA-json-2cd06c30d512defd8a0b.d.ts +2 -0
  208. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/uk-UA-json-8657d9ac1c78af847957.d.ts +2 -0
  209. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/vi-VN-json-e81217b667a314e4b841.d.ts +2 -0
  210. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/vi-VN-json-fe2d25d75865c608e798.d.ts +2 -0
  211. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/zh-CN-json-8a2394a4129f40872d71.d.ts +2 -0
  212. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/zh-CN-json-e5e59a1cd383192a1792.d.ts +2 -0
  213. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/zh-HK-json-2e545ed460deb9818584.d.ts +2 -0
  214. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/zh-HK-json-2f278ce98daca1c37501.d.ts +2 -0
  215. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/zh-TW-json-5c0415fa2e3076904544.d.ts +2 -0
  216. package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/zh-TW-json-e4eb1416e4564d3a1fd9.d.ts +2 -0
  217. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-7857feed4fca7dd67386.d.ts +0 -0
  218. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-a14cd58fa2db417e42b2.d.ts +0 -0
  219. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-e6df8519da951026ff69.d.ts +0 -0
  220. package/CHANGELOG.md +0 -1689
  221. /package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-1e45dd9aba63a718dcee.d.ts → vendor-24fff00bcf5a7372c15c.d.ts} +0 -0
package/CHANGELOG.md DELETED
@@ -1,1689 +0,0 @@
1
- # Changelog
2
-
3
- <!--
4
- Guidelines for changelog:
5
- The change should be grouped under one of the below section and must contain PR link.
6
- - Features: For new features.
7
- - Fixes: For bug fixes.
8
- - Chore: Changes for non src files example package.json.
9
- - Refactor: For any refactoring.
10
-
11
- Please add the latest change on the top under the correct section.
12
- -->
13
-
14
- ## Unreleased
15
-
16
- ### Features
17
-
18
- - Add `onPointerUp` prop [#7638](https://github.com/excalidraw/excalidraw/pull/7638).
19
-
20
- - Expose `getVisibleSceneBounds` helper to get scene bounds of visible canvas area. [#7450](https://github.com/excalidraw/excalidraw/pull/7450)
21
-
22
- ### Fixes
23
-
24
- - Keep customData when converting to ExcalidrawElement. [#7656](https://github.com/excalidraw/excalidraw/pull/7656)
25
-
26
- ### Breaking Changes
27
-
28
- - `ExcalidrawEmbeddableElement.validated` was removed and moved to private editor state. This should largely not affect your apps unless you were reading from this attribute. We keep validating embeddable urls internally, and the public [`props.validateEmbeddable`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/props#validateembeddable) still applies. [#7539](https://github.com/excalidraw/excalidraw/pull/7539)
29
-
30
- - Create an `ESM` build for `@excalidraw/excalidraw`. The API is in progress and subject to change before stable release. There are some changes on how the package will be consumed
31
-
32
- #### Bundler
33
-
34
- - CSS needs to be imported so you will need to import the css along with the excalidraw component
35
-
36
- ```js
37
- import { Excalidraw } from "@excalidraw/excalidraw";
38
- import "@excalidraw/excalidraw/index.css";
39
- ```
40
-
41
- - The `types` path is updated
42
-
43
- Instead of importing from `@excalidraw/excalidraw/types/`, you will need to import from `@excalidraw/excalidraw/dist/excalidraw` or `@excalidraw/excalidraw/dist/utils` depending on the types you are using.
44
-
45
- However this we will be fixing before stable release, so in case you want to try it out you will need to update the types for now.
46
-
47
- #### Browser
48
-
49
- - Since its `ESM` so now script type `module` can be used to load it and css needs to be loaded as well.
50
-
51
- ```html
52
- <link
53
- rel="stylesheet"
54
- href="https://unpkg.com/@excalidraw/excalidraw@next/dist/browser/dev/index.css"
55
- />
56
- <script type="module">
57
- import * as ExcalidrawLib from "https://unpkg.com/@excalidraw/excalidraw@next/dist/browser/dev/index.js";
58
- window.ExcalidrawLib = ExcalidrawLib;
59
- </script>
60
- ```
61
-
62
- - `appState.openDialog` type was changed from `null | string` to `null | { name: string }`. [#7336](https://github.com/excalidraw/excalidraw/pull/7336)
63
-
64
- ## 0.17.1 (2023-11-28)
65
-
66
- ### Fixes
67
-
68
- - Umd build for browser since it was breaking in v0.17.0 [#7349](https://github.com/excalidraw/excalidraw/pull/7349). Also make sure that when using `Vite`, the `process.env.IS_PREACT` is set as `"true"` (string) and not a boolean.
69
-
70
- ```
71
- define: {
72
- "process.env.IS_PREACT": JSON.stringify("true"),
73
- }
74
- ```
75
-
76
- ### Breaking Changes
77
-
78
- - `appState.openDialog` type was changed from `null | string` to `null | { name: string }`. [#7336](https://github.com/excalidraw/excalidraw/pull/7336)
79
-
80
- ## 0.17.0 (2023-11-14)
81
-
82
- ### Features
83
-
84
- - Added support for disabling `image` tool (also disabling image insertion in general, though keeps support for importing from `.excalidraw` files) [#6320](https://github.com/excalidraw/excalidraw/pull/6320).
85
-
86
- For disabling `image` you need to set 👇
87
-
88
- ```
89
- UIOptions.tools = {
90
- image: false
91
- }
92
- ```
93
-
94
- - Support `excalidrawAPI` prop for accessing the Excalidraw API [#7251](https://github.com/excalidraw/excalidraw/pull/7251).
95
-
96
- - Export [`getCommonBounds`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/utils#getcommonbounds) helper from the package [#7247](https://github.com/excalidraw/excalidraw/pull/7247).
97
-
98
- - Support frames via programmatic API [#7205](https://github.com/excalidraw/excalidraw/pull/7205).
99
-
100
- - Export `elementsOverlappingBBox`, `isElementInsideBBox`, `elementPartiallyOverlapsWithOrContainsBBox` helpers for filtering/checking if elements within bounds. [#6727](https://github.com/excalidraw/excalidraw/pull/6727)
101
-
102
- - Regenerate ids by default when using transform api and also update bindings by 0.5px to avoid possible overlapping [#7195](https://github.com/excalidraw/excalidraw/pull/7195)
103
-
104
- - Add onChange, onPointerDown, onPointerUp api subscribers [#7154](https://github.com/excalidraw/excalidraw/pull/7154).
105
-
106
- - Support props.locked for setActiveTool [#7153](https://github.com/excalidraw/excalidraw/pull/7153).
107
-
108
- - Add `selected` prop for `MainMenu.Item` and `MainMenu.ItemCustom` components to indicate active state. [#7078](https://github.com/excalidraw/excalidraw/pull/7078)
109
-
110
- ### Fixes
111
-
112
- - Double image dialog on image insertion [#7152](https://github.com/excalidraw/excalidraw/pull/7152).
113
-
114
- ### Breaking Changes
115
-
116
- - The `Ref` support has been removed in v0.17.0 so if you are using refs, please update the integration to use the [`excalidrawAPI`](http://localhost:3003/docs/@excalidraw/excalidraw/api/props/excalidraw-api) [#7251](https://github.com/excalidraw/excalidraw/pull/7251).
117
-
118
- - Additionally `ready` and `readyPromise` from the API have been discontinued. These APIs were found to be superfluous, and as part of the effort to streamline the APIs and maintain simplicity, they were removed in version v0.17.0 [#7251](https://github.com/excalidraw/excalidraw/pull/7251).
119
-
120
- - [`useDevice`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/utils#usedevice) hook's return value was changed to differentiate between `editor` and `viewport` breakpoints. [#7243](https://github.com/excalidraw/excalidraw/pull/7243)
121
-
122
- ### Build
123
-
124
- - Support Preact [#7255](https://github.com/excalidraw/excalidraw/pull/7255). The host needs to set `process.env.IS_PREACT` to `true`
125
-
126
- When using `vite` or any build tools, you will have to make sure the `process` is accessible as we are accessing `process.env.IS_PREACT` to decide whether to use the `preact` build.
127
-
128
- Since `Vite` removes env variables by default, you can update the Vite config to ensure its available :point_down:
129
-
130
- ```
131
- define: {
132
- "process.env.IS_PREACT": process.env.IS_PREACT,
133
- },
134
- ```
135
-
136
- ## Excalidraw Library
137
-
138
- **_This section lists the updates made to the excalidraw library and will not affect the integration._**
139
-
140
- ### Features
141
-
142
- - Allow D&D dice app domain for embeds [#7263](https://github.com/excalidraw/excalidraw/pull/7263)
143
-
144
- - Remove full screen shortcut [#7222](https://github.com/excalidraw/excalidraw/pull/7222)
145
-
146
- - Make adaptive-roughness less aggressive [#7250](https://github.com/excalidraw/excalidraw/pull/7250)
147
-
148
- - Render frames on export [#7210](https://github.com/excalidraw/excalidraw/pull/7210)
149
-
150
- - Support mermaid flowchart and sequence diagrams to excalidraw diagrams 🥳 [#6920](https://github.com/excalidraw/excalidraw/pull/6920)
151
-
152
- - Support frames via programmatic API [#7205](https://github.com/excalidraw/excalidraw/pull/7205)
153
-
154
- - Make clipboard more robust and reintroduce contextmenu actions [#7198](https://github.com/excalidraw/excalidraw/pull/7198)
155
-
156
- - Support giphy.com embed domain [#7192](https://github.com/excalidraw/excalidraw/pull/7192)
157
-
158
- - Renderer tweaks [#6698](https://github.com/excalidraw/excalidraw/pull/6698)
159
-
160
- - Closing of "Save to.." Dialog on Save To Disk [#7168](https://github.com/excalidraw/excalidraw/pull/7168)
161
-
162
- - Added Copy/Paste from Google Docs [#7136](https://github.com/excalidraw/excalidraw/pull/7136)
163
-
164
- - Remove bound-arrows from frames [#7157](https://github.com/excalidraw/excalidraw/pull/7157)
165
-
166
- - New dark mode theme & light theme tweaks [#7104](https://github.com/excalidraw/excalidraw/pull/7104)
167
-
168
- - Better laser cursor for dark mode [#7132](https://github.com/excalidraw/excalidraw/pull/7132)
169
-
170
- - Laser pointer improvements [#7128](https://github.com/excalidraw/excalidraw/pull/7128)
171
-
172
- - Initial Laser Pointer MVP [#6739](https://github.com/excalidraw/excalidraw/pull/6739)
173
-
174
- - Export `iconFillColor()` [#6996](https://github.com/excalidraw/excalidraw/pull/6996)
175
-
176
- - Element alignments - snapping [#6256](https://github.com/excalidraw/excalidraw/pull/6256)
177
-
178
- ### Fixes
179
-
180
- - Image insertion bugs [#7278](https://github.com/excalidraw/excalidraw/pull/7278)
181
-
182
- - ExportToSvg to honor frameRendering also for name not only for frame itself [#7270](https://github.com/excalidraw/excalidraw/pull/7270)
183
-
184
- - Can't toggle penMode off due to missing typecheck in togglePenMode [#7273](https://github.com/excalidraw/excalidraw/pull/7273)
185
-
186
- - Replace hard coded font family with const value in addFrameLabelsAsTextElements [#7269](https://github.com/excalidraw/excalidraw/pull/7269)
187
-
188
- - Perf issue when ungrouping elements within frame [#7265](https://github.com/excalidraw/excalidraw/pull/7265)
189
-
190
- - Fixes the shortcut collision between "toggleHandTool" and "distributeHorizontally" [#7189](https://github.com/excalidraw/excalidraw/pull/7189)
191
-
192
- - Allow pointer events when editing a linear element [#7238](https://github.com/excalidraw/excalidraw/pull/7238)
193
-
194
- - Make modal use viewport breakpoints [#7246](https://github.com/excalidraw/excalidraw/pull/7246)
195
-
196
- - Align input `:hover`/`:focus` with spec [#7225](https://github.com/excalidraw/excalidraw/pull/7225)
197
-
198
- - Dialog remounting on className updates [#7224](https://github.com/excalidraw/excalidraw/pull/7224)
199
-
200
- - Don't update label position when dragging labelled arrows [#6891](https://github.com/excalidraw/excalidraw/pull/6891)
201
-
202
- - Frame add/remove/z-index ordering changes [#7194](https://github.com/excalidraw/excalidraw/pull/7194)
203
-
204
- - Element relative position when dragging multiple elements on grid [#7107](https://github.com/excalidraw/excalidraw/pull/7107)
205
-
206
- - Freedraw non-solid bg hitbox not working [#7193](https://github.com/excalidraw/excalidraw/pull/7193)
207
-
208
- - Actions panel ux improvement [#6850](https://github.com/excalidraw/excalidraw/pull/6850)
209
-
210
- - Better fill rendering with latest RoughJS [#7031](https://github.com/excalidraw/excalidraw/pull/7031)
211
-
212
- - Fix for Strange Symbol Appearing on Canvas after Deleting Grouped Graphics (Issue #7116) [#7170](https://github.com/excalidraw/excalidraw/pull/7170)
213
-
214
- - Attempt to fix flake in wysiwyg tests [#7173](https://github.com/excalidraw/excalidraw/pull/7173)
215
-
216
- - Ensure `ClipboardItem` created in the same tick to fix safari [#7066](https://github.com/excalidraw/excalidraw/pull/7066)
217
-
218
- - Wysiwyg left in undefined state on reload [#7123](https://github.com/excalidraw/excalidraw/pull/7123)
219
-
220
- - Ensure relative z-index of elements added to frame is retained [#7134](https://github.com/excalidraw/excalidraw/pull/7134)
221
-
222
- - Memoize static canvas on `props.renderConfig` [#7131](https://github.com/excalidraw/excalidraw/pull/7131)
223
-
224
- - Regression from #6739 preventing redirect link in view mode [#7120](https://github.com/excalidraw/excalidraw/pull/7120)
225
-
226
- - Update links to excalidraw-app [#7072](https://github.com/excalidraw/excalidraw/pull/7072)
227
-
228
- - Ensure we do not stop laser update prematurely [#7100](https://github.com/excalidraw/excalidraw/pull/7100)
229
-
230
- - Remove invisible elements safely [#7083](https://github.com/excalidraw/excalidraw/pull/7083)
231
-
232
- - Icon size in manifest [#7073](https://github.com/excalidraw/excalidraw/pull/7073)
233
-
234
- - Elements being dropped/duplicated when added to frame [#7057](https://github.com/excalidraw/excalidraw/pull/7057)
235
-
236
- - Frame name not editable on dbl-click [#7037](https://github.com/excalidraw/excalidraw/pull/7037)
237
-
238
- - Polyfill `Element.replaceChildren` [#7034](https://github.com/excalidraw/excalidraw/pull/7034)
239
-
240
- ### Refactor
241
-
242
- - DRY out tool typing [#7086](https://github.com/excalidraw/excalidraw/pull/7086)
243
-
244
- - Refactor event globals to differentiate from `lastPointerUp` [#7084](https://github.com/excalidraw/excalidraw/pull/7084)
245
-
246
- - DRY out and simplify setting active tool from toolbar [#7079](https://github.com/excalidraw/excalidraw/pull/7079)
247
-
248
- ### Performance
249
-
250
- - Improve element in frame check [#7124](https://github.com/excalidraw/excalidraw/pull/7124)
251
-
252
- ---
253
-
254
- ## 0.16.1 (2023-09-21)
255
-
256
- ## Excalidraw Library
257
-
258
- **_This section lists the updates made to the excalidraw library and will not affect the integration._**
259
-
260
- ### Fixes
261
-
262
- - More eye-droper fixes [#7019](https://github.com/excalidraw/excalidraw/pull/7019)
263
-
264
- ### Refactor
265
-
266
- - Move excalidraw-app outside src [#6987](https://github.com/excalidraw/excalidraw/pull/6987)
267
-
268
- ---
269
-
270
- ## 0.16.0 (2023-09-19)
271
-
272
- - Support creating containers, linear elements, text containers, labelled arrows and arrow bindings programatically [#6546](https://github.com/excalidraw/excalidraw/pull/6546)
273
- - Introducing Web-Embeds (alias iframe element)[#6691](https://github.com/excalidraw/excalidraw/pull/6691)
274
- - Added [`props.validateEmbeddable`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/props#validateEmbeddable) to customize embeddable src url validation. [#6691](https://github.com/excalidraw/excalidraw/pull/6691)
275
- - Add support for `opts.fitToViewport` and `opts.viewportZoomFactor` in the [`ExcalidrawAPI.scrollToContent`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/props/excalidraw-api#scrolltocontent) API. [#6581](https://github.com/excalidraw/excalidraw/pull/6581).
276
- - Properly sanitize element `link` urls. [#6728](https://github.com/excalidraw/excalidraw/pull/6728).
277
- - Sidebar component now supports tabs — for more detailed description of new behavior and breaking changes, see the linked PR. [#6213](https://github.com/excalidraw/excalidraw/pull/6213)
278
- - Exposed `DefaultSidebar` component to allow modifying the default sidebar, such as adding custom tabs to it. [#6213](https://github.com/excalidraw/excalidraw/pull/6213)
279
-
280
- #### BREAKING CHANGES
281
-
282
- - `props.renderSidebar` is removed in favor of rendering as `children`.
283
- - `appState.isSidebarDocked` replaced with `appState.defaultSidebarDockedPreference` with slightly different semantics, and relating only to the default sidebar. You need to handle `docked` state for your custom sidebars yourself.
284
- - Sidebar `props.dockable` is removed. To indicate dockability, supply `props.onDock()` alongside setting `props.docked`.
285
- - `Sidebar.Header` is no longer rendered by default. You need to render it yourself.
286
- - `props.onClose` replaced with `props.onStateChange`.
287
- - `restore()`/`restoreAppState()` now retains `appState.openSidebar` regardless of docked state.
288
-
289
- ## Excalidraw Library
290
-
291
- **_This section lists the updates made to the excalidraw library and will not affect the integration._**
292
-
293
- ### Features
294
-
295
- - allow `avif`, `jfif`, `webp`, `bmp`, `ico` image types [#6500](https://github.com/excalidraw/excalidraw/pull/6500)
296
- - Zen-mode/go-to-plus button style tweaks [#7006](https://github.com/excalidraw/excalidraw/pull/7006)
297
-
298
- - Holding down CMD/CTRL will disable snap to grid when grid is active [#6983](https://github.com/excalidraw/excalidraw/pull/6983)
299
-
300
- - Update logo [#6979](https://github.com/excalidraw/excalidraw/pull/6979)
301
-
302
- - Export `changeProperty()` and `getFormValue()`. [#6957](https://github.com/excalidraw/excalidraw/pull/6957)
303
-
304
- - Partition main canvas vertically [#6759](https://github.com/excalidraw/excalidraw/pull/6759)
305
-
306
- - Support creating containers, linear elements, text containers, labelled arrows and arrow bindings programatically [#6546](https://github.com/excalidraw/excalidraw/pull/6546)
307
-
308
- - Add support for simplePDF in Web-Embeds [#6810](https://github.com/excalidraw/excalidraw/pull/6810)
309
-
310
- - Add support for val.town embeds [#6821](https://github.com/excalidraw/excalidraw/pull/6821)
311
-
312
- - Render bold lines in grid [#6779](https://github.com/excalidraw/excalidraw/pull/6779)
313
-
314
- - Adds support for stackblitz.com embeds [#6813](https://github.com/excalidraw/excalidraw/pull/6813)
315
-
316
- - Cache most of element selection [#6747](https://github.com/excalidraw/excalidraw/pull/6747)
317
-
318
- - Support customizing what parts of frames are rendered [#6752](https://github.com/excalidraw/excalidraw/pull/6752)
319
-
320
- - Make `appState.selectedElementIds` more stable [#6745](https://github.com/excalidraw/excalidraw/pull/6745)
321
-
322
- - Overwrite confirmation dialogs [#6658](https://github.com/excalidraw/excalidraw/pull/6658)
323
-
324
- - Simple analitycs [#6683](https://github.com/excalidraw/excalidraw/pull/6683)
325
-
326
- - Introduce frames [#6123](https://github.com/excalidraw/excalidraw/pull/6123)
327
-
328
- - Add canvas-roundrect-polyfill package [#6675](https://github.com/excalidraw/excalidraw/pull/6675)
329
-
330
- - Polyfill `CanvasRenderingContext2D.roundRect` [#6673](https://github.com/excalidraw/excalidraw/pull/6673)
331
-
332
- - Disable collab feature when running in iframe [#6646](https://github.com/excalidraw/excalidraw/pull/6646)
333
-
334
- - Assign random user name when not set [#6663](https://github.com/excalidraw/excalidraw/pull/6663)
335
-
336
- - Redesigned collab cursors [#6659](https://github.com/excalidraw/excalidraw/pull/6659)
337
-
338
- - Eye dropper [#6615](https://github.com/excalidraw/excalidraw/pull/6615)
339
-
340
- - Redesign of Live Collaboration dialog [#6635](https://github.com/excalidraw/excalidraw/pull/6635)
341
-
342
- - Recover scrolled position after Library re-opening [#6624](https://github.com/excalidraw/excalidraw/pull/6624)
343
-
344
- - Clearing library cache [#6621](https://github.com/excalidraw/excalidraw/pull/6621)
345
-
346
- - Update design of ImageExportDialog [#6614](https://github.com/excalidraw/excalidraw/pull/6614)
347
-
348
- - Add flipping for multiple elements [#5578](https://github.com/excalidraw/excalidraw/pull/5578)
349
-
350
- - Color picker redesign [#6216](https://github.com/excalidraw/excalidraw/pull/6216)
351
-
352
- - Add "unlock all elements" to canvas contextMenu [#5894](https://github.com/excalidraw/excalidraw/pull/5894)
353
-
354
- - Library sidebar design tweaks [#6582](https://github.com/excalidraw/excalidraw/pull/6582)
355
-
356
- - Add Trans component for interpolating JSX in translations [#6534](https://github.com/excalidraw/excalidraw/pull/6534)
357
-
358
- - Testing simple analytics and fathom analytics for better privacy of the users [#6529](https://github.com/excalidraw/excalidraw/pull/6529)
359
-
360
- - Retain `seed` on shift-paste [#6509](https://github.com/excalidraw/excalidraw/pull/6509)
361
-
362
- - Allow `avif`, `jfif`, `webp`, `bmp`, `ico` image types (#6500
363
-
364
- ### Fixes
365
-
366
- - Improperly disabling UI pointer-events on canvas interaction [#7005](https://github.com/excalidraw/excalidraw/pull/7005)
367
-
368
- - Several eyeDropper fixes [#7002](https://github.com/excalidraw/excalidraw/pull/7002)
369
-
370
- - IsBindableElement to affirm frames [#6900](https://github.com/excalidraw/excalidraw/pull/6900)
371
-
372
- - Use `device.isMobile` for sidebar trigger label breakpoint [#6994](https://github.com/excalidraw/excalidraw/pull/6994)
373
-
374
- - Export to plus url [#6980](https://github.com/excalidraw/excalidraw/pull/6980)
375
-
376
- - Z-index inconsistencies during addition / deletion in frames [#6914](https://github.com/excalidraw/excalidraw/pull/6914)
377
-
378
- - Update size-limit so react is not installed as dependency [#6964](https://github.com/excalidraw/excalidraw/pull/6964)
379
-
380
- - Stale labeled arrow bounds cache after editing the label [#6893](https://github.com/excalidraw/excalidraw/pull/6893)
381
-
382
- - Canvas flickering due to resetting canvas on skipped frames [#6960](https://github.com/excalidraw/excalidraw/pull/6960)
383
-
384
- - Grid jittery after partition PR [#6935](https://github.com/excalidraw/excalidraw/pull/6935)
385
-
386
- - Regression in indexing when adding elements to frame [#6904](https://github.com/excalidraw/excalidraw/pull/6904)
387
-
388
- - Stabilize `selectedElementIds` when box selecting [#6912](https://github.com/excalidraw/excalidraw/pull/6912)
389
-
390
- - Resetting deleted elements on duplication [#6906](https://github.com/excalidraw/excalidraw/pull/6906)
391
-
392
- - Make canvas compos memoize appState on props they declare [#6897](https://github.com/excalidraw/excalidraw/pull/6897)
393
-
394
- - Scope `--color-selection` retrieval to given instance [#6886](https://github.com/excalidraw/excalidraw/pull/6886)
395
-
396
- - Webpack config exclude statement to system agnostic [#6857](https://github.com/excalidraw/excalidraw/pull/6857)
397
-
398
- - Remove `embeddable` from generic elements [#6853](https://github.com/excalidraw/excalidraw/pull/6853)
399
-
400
- - Resizing arrow labels [#6789](https://github.com/excalidraw/excalidraw/pull/6789)
401
-
402
- - Eye-dropper not working with app offset correctly on non-1 dPR [#6835](https://github.com/excalidraw/excalidraw/pull/6835)
403
-
404
- - Add self destroying service-worker.js to migrate everyone from CRA to Vite [#6833](https://github.com/excalidraw/excalidraw/pull/6833)
405
-
406
- - Forgotten REACT_APP env variables [#6834](https://github.com/excalidraw/excalidraw/pull/6834)
407
-
408
- - Refresh sw when browser refreshed [#6824](https://github.com/excalidraw/excalidraw/pull/6824)
409
-
410
- - Adding to selection via shift box-select [#6815](https://github.com/excalidraw/excalidraw/pull/6815)
411
-
412
- - Prevent binding focus NaN value [#6803](https://github.com/excalidraw/excalidraw/pull/6803)
413
-
414
- - Use pull request in semantic workflow for better security [#6799](https://github.com/excalidraw/excalidraw/pull/6799)
415
-
416
- - Don't show `canvasBackground` label when `UIOptions.canvasActions.changeViewBackgroundColor` is false [#6781](https://github.com/excalidraw/excalidraw/pull/6781)
417
-
418
- - Use subdirectory for @excalidraw/excalidraw size limit [#6787](https://github.com/excalidraw/excalidraw/pull/6787)
419
-
420
- - Use actual dock state to not close docked library on insert [#6766](https://github.com/excalidraw/excalidraw/pull/6766)
421
-
422
- - UI disappears when pressing the eyedropper shortcut on mobile [#6725](https://github.com/excalidraw/excalidraw/pull/6725)
423
-
424
- - Elements in non-existing frame getting removed [#6708](https://github.com/excalidraw/excalidraw/pull/6708)
425
-
426
- - Scrollbars renders but disable [#6706](https://github.com/excalidraw/excalidraw/pull/6706)
427
-
428
- - Typo in chart.ts [#6696](https://github.com/excalidraw/excalidraw/pull/6696)
429
-
430
- - Do not bind text to container using text tool when it has text already [#6694](https://github.com/excalidraw/excalidraw/pull/6694)
431
-
432
- - Don't allow binding text to images [#6693](https://github.com/excalidraw/excalidraw/pull/6693)
433
-
434
- - Updated link for documentation page under help section [#6654](https://github.com/excalidraw/excalidraw/pull/6654)
435
-
436
- - Collab username style fixes [#6668](https://github.com/excalidraw/excalidraw/pull/6668)
437
-
438
- - Bound arrows not updated when rotating multiple elements [#6662](https://github.com/excalidraw/excalidraw/pull/6662)
439
-
440
- - Delete setCursor when resize [#6660](https://github.com/excalidraw/excalidraw/pull/6660)
441
-
442
- - Creating text while color picker open [#6651](https://github.com/excalidraw/excalidraw/pull/6651)
443
-
444
- - Cleanup textWysiwyg and getAdjustedDimensions [#6520](https://github.com/excalidraw/excalidraw/pull/6520)
445
-
446
- - Eye dropper not accounting for offsets [#6640](https://github.com/excalidraw/excalidraw/pull/6640)
447
-
448
- - Color picker input closing problem [#6599](https://github.com/excalidraw/excalidraw/pull/6599)
449
-
450
- - Export dialog shortcut toggles console on firefox [#6620](https://github.com/excalidraw/excalidraw/pull/6620)
451
-
452
- - Add react v17 `useTransition` polyfill [#6618](https://github.com/excalidraw/excalidraw/pull/6618)
453
-
454
- - Library dropdown visibility issue for mobile [#6613](https://github.com/excalidraw/excalidraw/pull/6613)
455
-
456
- - `withInternalFallback` leaking state in multi-instance scenarios [#6602](https://github.com/excalidraw/excalidraw/pull/6602)
457
-
458
- - Language list containing duplicate `en` lang [#6583](https://github.com/excalidraw/excalidraw/pull/6583)
459
-
460
- - Garbled text displayed on avatars [#6575](https://github.com/excalidraw/excalidraw/pull/6575)
461
-
462
- - Assign the original text to text editor only during init [#6580](https://github.com/excalidraw/excalidraw/pull/6580)
463
-
464
- - I18n: Apply Trans component to publish library dialogue [#6564](https://github.com/excalidraw/excalidraw/pull/6564)
465
-
466
- - Fix brave error i18n string and remove unused [#6561](https://github.com/excalidraw/excalidraw/pull/6561)
467
-
468
- - Revert add version tags to Docker build [#6540](https://github.com/excalidraw/excalidraw/pull/6540)
469
-
470
- - Don't refresh dimensions for text containers on font load [#6523](https://github.com/excalidraw/excalidraw/pull/6523)
471
-
472
- - Cleanup getMaxContainerHeight and getMaxContainerWidth [#6519](https://github.com/excalidraw/excalidraw/pull/6519)
473
-
474
- - Cleanup redrawTextBoundingBox [#6518](https://github.com/excalidraw/excalidraw/pull/6518)
475
-
476
- - Text jumps when editing on Android Chrome [#6503](https://github.com/excalidraw/excalidraw/pull/6503)
477
-
478
- ### Styles
479
-
480
- - Removes extra spaces [#6558](https://github.com/excalidraw/excalidraw/pull/6558)
481
-
482
- - Fix font family inconsistencies [#6501](https://github.com/excalidraw/excalidraw/pull/6501)
483
-
484
- ### Refactor
485
-
486
- - Factor out shape generation from `renderElement.ts` pt 2 [#6878](https://github.com/excalidraw/excalidraw/pull/6878)
487
-
488
- - Add typeScript support to enforce valid translation keys [#6776](https://github.com/excalidraw/excalidraw/pull/6776)
489
-
490
- - Simplify `ImageExportDialog` [#6578](https://github.com/excalidraw/excalidraw/pull/6578)
491
-
492
- ### Performance
493
-
494
- - Limiting the suggested binding to fix performance issue [#6877](https://github.com/excalidraw/excalidraw/pull/6877)
495
-
496
- - Memoize rendering of library [#6622](https://github.com/excalidraw/excalidraw/pull/6622)
497
-
498
- - Improve rendering performance for Library [#6587](https://github.com/excalidraw/excalidraw/pull/6587)
499
-
500
- - Use `UIAppState` where possible to reduce UI rerenders [#6560](https://github.com/excalidraw/excalidraw/pull/6560)
501
-
502
- ### Build
503
-
504
- - Increase limit for bundle by 1kb [#6880](https://github.com/excalidraw/excalidraw/pull/6880)
505
-
506
- - Update to node 18 in docker [#6822](https://github.com/excalidraw/excalidraw/pull/6822)
507
-
508
- - Migrate to Vite 🚀 [#6818](https://github.com/excalidraw/excalidraw/pull/6818)
509
-
510
- - Migrate to Vite 🚀 [#6713](https://github.com/excalidraw/excalidraw/pull/6713)
511
-
512
- - Increase limit to 290 kB for prod bundle [#6809](https://github.com/excalidraw/excalidraw/pull/6809)
513
-
514
- - Add version tags to Docker build [#6508](https://github.com/excalidraw/excalidraw/pull/6508)
515
-
516
- ---
517
-
518
- ## 0.15.2 (2023-04-20)
519
-
520
- ### Docs
521
-
522
- - Fix docs link in readme [#6486](https://github.com/excalidraw/excalidraw/pull/6486)
523
-
524
- ## Excalidraw Library
525
-
526
- **_This section lists the updates made to the excalidraw library and will not affect the integration._**
527
-
528
- ### Fixes
529
-
530
- - Rotate the text element when binding to a rotated container [#6477](https://github.com/excalidraw/excalidraw/pull/6477)
531
-
532
- - Support breaking words containing hyphen - [#6014](https://github.com/excalidraw/excalidraw/pull/6014)
533
-
534
- - Incorrect background fill button active state [#6491](https://github.com/excalidraw/excalidraw/pull/6491)
535
-
536
- ---
537
-
538
- ## 0.15.1 (2023-04-18)
539
-
540
- ### Docs
541
-
542
- - Add the readme back to the package which was mistakenly removed [#6484](https://github.com/excalidraw/excalidraw/pull/6484)
543
-
544
- ## Excalidraw Library
545
-
546
- **_This section lists the updates made to the excalidraw library and will not affect the integration._**
547
-
548
- ---
549
-
550
- ## 0.15.0 (2023-04-18)
551
-
552
- ### Features
553
-
554
- - [`ExcalidrawAPI.scrollToContent`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/props/excalidraw-api#scrolltocontent) has new opts object allowing you to fit viewport to content, and animate the scrolling. [#6319](https://github.com/excalidraw/excalidraw/pull/6319)
555
-
556
- - Expose `useI18n()` hook return an object containing `t()` i18n helper and current `langCode`. You can use this in components you render as `<Excalidraw>` children to render any of our i18n locale strings. [#6224](https://github.com/excalidraw/excalidraw/pull/6224)
557
-
558
- - [`restoreElements`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/utils/restore#restoreelements) API now takes an optional parameter `opts` which currently supports the below attributes
559
-
560
- ```js
561
- { refreshDimensions?: boolean, repairBindings?: boolean }
562
- ```
563
-
564
- The same `opts` param has been added to [`restore`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/utils/restore#restore) API as well.
565
-
566
- For more details refer to the [docs](https://docs.excalidraw.com)
567
-
568
- #### BREAKING CHANGE
569
-
570
- - The optional parameter `refreshDimensions` in [`restoreElements`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/utils/restore#restoreelements) has been removed and can be enabled via `opts`
571
-
572
- ### Fixes
573
-
574
- - Exporting labelled arrows via export utils [#6443](https://github.com/excalidraw/excalidraw/pull/6443)
575
-
576
- ## Excalidraw Library
577
-
578
- **_This section lists the updates made to the excalidraw library and will not affect the integration._**
579
-
580
- ### Features
581
-
582
- - Constrain export dialog preview size [#6475](https://github.com/excalidraw/excalidraw/pull/6475)
583
-
584
- - Zigzag fill easter egg [#6439](https://github.com/excalidraw/excalidraw/pull/6439)
585
-
586
- - Add container to multiple text elements [#6428](https://github.com/excalidraw/excalidraw/pull/6428)
587
-
588
- - Starting migration from GA to Matomo for better privacy [#6398](https://github.com/excalidraw/excalidraw/pull/6398)
589
-
590
- - Add line height attribute to text element [#6360](https://github.com/excalidraw/excalidraw/pull/6360)
591
-
592
- - Add thai lang support [#6314](https://github.com/excalidraw/excalidraw/pull/6314)
593
-
594
- - Create bound container from text [#6301](https://github.com/excalidraw/excalidraw/pull/6301)
595
-
596
- - Improve text measurements in bound containers [#6187](https://github.com/excalidraw/excalidraw/pull/6187)
597
-
598
- - Bind text to container if double clicked on filled shape or stroke [#6250](https://github.com/excalidraw/excalidraw/pull/6250)
599
-
600
- - Make repair and refreshDimensions configurable in restoreElements [#6238](https://github.com/excalidraw/excalidraw/pull/6238)
601
-
602
- - Show error message when not connected to internet while collabo… [#6165](https://github.com/excalidraw/excalidraw/pull/6165)
603
-
604
- - Shortcut for clearCanvas confirmDialog [#6114](https://github.com/excalidraw/excalidraw/pull/6114)
605
-
606
- - Disable canvas smoothing (antialiasing) for right-angled elements [#6186](https://github.com/excalidraw/excalidraw/pull/6186)Co-authored-by: Ignacio Cuadra <67276174+ignacio-cuadra@users.noreply.github.com>
607
-
608
- ### Fixes
609
-
610
- - Center align text when wrapped in container via context menu [#6480](https://github.com/excalidraw/excalidraw/pull/6480)
611
-
612
- - Restore original container height when unbinding text which was binded via context menu [#6444](https://github.com/excalidraw/excalidraw/pull/6444)
613
-
614
- - Mark more props as optional for element [#6448](https://github.com/excalidraw/excalidraw/pull/6448)
615
-
616
- - Improperly cache-busting on canvas scale instead of zoom [#6473](https://github.com/excalidraw/excalidraw/pull/6473)
617
-
618
- - Incorrectly duplicating items on paste/library insert [#6467](https://github.com/excalidraw/excalidraw/pull/6467)
619
-
620
- - Library ids cross-contamination on multiple insert [#6466](https://github.com/excalidraw/excalidraw/pull/6466)
621
-
622
- - Color picker keyboard handling not working [#6464](https://github.com/excalidraw/excalidraw/pull/6464)
623
-
624
- - Abort freedraw line if second touch is detected [#6440](https://github.com/excalidraw/excalidraw/pull/6440)
625
-
626
- - Utils leaking Scene state [#6461](https://github.com/excalidraw/excalidraw/pull/6461)
627
-
628
- - Split "Edit selected shape" shortcut [#6457](https://github.com/excalidraw/excalidraw/pull/6457)
629
-
630
- - Center align text when bind to container via context menu [#6451](https://github.com/excalidraw/excalidraw/pull/6451)
631
-
632
- - Update coords when text unbinded from its container [#6445](https://github.com/excalidraw/excalidraw/pull/6445)
633
-
634
- - Autoredirect to plus in prod only [#6446](https://github.com/excalidraw/excalidraw/pull/6446)
635
-
636
- - Fixing popover overflow on small screen [#6433](https://github.com/excalidraw/excalidraw/pull/6433)
637
-
638
- - Introduce baseline to fix the layout shift when switching to text editor [#6397](https://github.com/excalidraw/excalidraw/pull/6397)
639
-
640
- - Don't refresh dimensions for deleted text elements [#6438](https://github.com/excalidraw/excalidraw/pull/6438)
641
-
642
- - Element vanishes when zoomed in [#6417](https://github.com/excalidraw/excalidraw/pull/6417)
643
-
644
- - Don't jump text to end when out of viewport in safari [#6416](https://github.com/excalidraw/excalidraw/pull/6416)
645
-
646
- - GetDefaultLineHeight should return default font family line height for unknown font [#6399](https://github.com/excalidraw/excalidraw/pull/6399)
647
-
648
- - Revert use `ideographic` textBaseline to improve layout shift when editing text" [#6400](https://github.com/excalidraw/excalidraw/pull/6400)
649
-
650
- - Call stack size exceeded when paste large text [#6373](https://github.com/excalidraw/excalidraw/pull/6373) (#6396)
651
-
652
- - Use `ideographic` textBaseline to improve layout shift when editing text [#6384](https://github.com/excalidraw/excalidraw/pull/6384)
653
-
654
- - Chrome crashing when embedding scene on chrome arm [#6383](https://github.com/excalidraw/excalidraw/pull/6383)
655
-
656
- - Division by zero in findFocusPointForEllipse leads to infinite loop in wrapText freezing Excalidraw [#6377](https://github.com/excalidraw/excalidraw/pull/6377)
657
-
658
- - Containerizing text incorrectly updates arrow bindings [#6369](https://github.com/excalidraw/excalidraw/pull/6369)
659
-
660
- - Ensure export preview is centered [#6337](https://github.com/excalidraw/excalidraw/pull/6337)
661
-
662
- - Hide text align for labelled arrows [#6339](https://github.com/excalidraw/excalidraw/pull/6339)
663
-
664
- - Refresh dimensions when elements loaded from shareable link and blob [#6333](https://github.com/excalidraw/excalidraw/pull/6333)
665
-
666
- - Show error message when measureText API breaks in brave [#6336](https://github.com/excalidraw/excalidraw/pull/6336)
667
-
668
- - Add an offset of 0.5px for text editor in containers [#6328](https://github.com/excalidraw/excalidraw/pull/6328)
669
-
670
- - Move utility types out of `.d.ts` file to fix exported declaration files [#6315](https://github.com/excalidraw/excalidraw/pull/6315)
671
-
672
- - More jotai scopes missing [#6313](https://github.com/excalidraw/excalidraw/pull/6313)
673
-
674
- - Provide HelpButton title prop [#6209](https://github.com/excalidraw/excalidraw/pull/6209)
675
-
676
- - Respect text align when wrapping in a container [#6310](https://github.com/excalidraw/excalidraw/pull/6310)
677
-
678
- - Compute bounding box correctly for text element when multiple element resizing [#6307](https://github.com/excalidraw/excalidraw/pull/6307)
679
-
680
- - Use jotai scope for editor-specific atoms [#6308](https://github.com/excalidraw/excalidraw/pull/6308)
681
-
682
- - Consider arrow for bound text element [#6297](https://github.com/excalidraw/excalidraw/pull/6297)
683
-
684
- - Text never goes beyond max width for unbound text elements [#6288](https://github.com/excalidraw/excalidraw/pull/6288)
685
-
686
- - Svg text baseline [#6285](https://github.com/excalidraw/excalidraw/pull/6273)
687
-
688
- - Compute container height from bound text correctly [#6273](https://github.com/excalidraw/excalidraw/pull/6273)
689
-
690
- - Fit mobile toolbar and make scrollable [#6270](https://github.com/excalidraw/excalidraw/pull/6270)
691
-
692
- - Indenting via `tab` clashing with IME compositor [#6258](https://github.com/excalidraw/excalidraw/pull/6258)
693
-
694
- - Improve text wrapping inside rhombus and more fixes [#6265](https://github.com/excalidraw/excalidraw/pull/6265)
695
-
696
- - Improve text wrapping in ellipse and alignment [#6172](https://github.com/excalidraw/excalidraw/pull/6172)
697
-
698
- - Don't allow blank space in collab name [#6211](https://github.com/excalidraw/excalidraw/pull/6211)
699
-
700
- - Docker build architecture:linux/amd64 error occur on linux/arm64 instance [#6197](https://github.com/excalidraw/excalidraw/pull/6197)
701
-
702
- - Sort bound text elements to fix text duplication z-index error [#5130](https://github.com/excalidraw/excalidraw/pull/5130)
703
-
704
- - Hide welcome screen on mobile once user interacts [#6185](https://github.com/excalidraw/excalidraw/pull/6185)
705
-
706
- - Edit link in docs [#6182](https://github.com/excalidraw/excalidraw/pull/6182)
707
-
708
- ### Refactor
709
-
710
- - Inline `SingleLibraryItem` into `PublishLibrary` [#6462](https://github.com/excalidraw/excalidraw/pull/6462)
711
-
712
- - Make the example React app reusable without duplication [#6188](https://github.com/excalidraw/excalidraw/pull/6188)
713
-
714
- ### Performance
715
-
716
- - Break early if the line width <= max width of the container [#6347](https://github.com/excalidraw/excalidraw/pull/6347)
717
-
718
- ### Build
719
-
720
- - Move TS and types to devDependencies [#6346](https://github.com/excalidraw/excalidraw/pull/6346)
721
-
722
- ---
723
-
724
- ## 0.14.2 (2023-02-01)
725
-
726
- ### Features
727
-
728
- - Welcome screen no longer renders by default, and you need to render it yourself. `UIOptions.welcomeScreen` option is now deprecated. [#6117](https://github.com/excalidraw/excalidraw/pull/6117)
729
- - `MainMenu`, `MainMenu.Item`, and `MainMenu.ItemLink` components now all support `onSelect(event: Event): void` callback. If you call `event.preventDefault()`, it will prevent the menu from closing when an item is selected (clicked on). [#6152](https://github.com/excalidraw/excalidraw/pull/6152)
730
-
731
- ### Fixes
732
-
733
- - declare css variable for font in excalidraw so its available in host [#6160](https://github.com/excalidraw/excalidraw/pull/6160)
734
-
735
- ## Excalidraw Library
736
-
737
- **_This section lists the updates made to the excalidraw library and will not affect the integration._**
738
-
739
- ### Features
740
-
741
- - Add hand/panning tool [#6141](https://github.com/excalidraw/excalidraw/pull/6141)
742
-
743
- - Show copy-as-png export button on firefox and show steps how to enable it [#6125](https://github.com/excalidraw/excalidraw/pull/6125)
744
-
745
- ### Fixes
746
-
747
- - Horizontal padding when aligning bound text containers [#6180](https://github.com/excalidraw/excalidraw/pull/6180)
748
-
749
- - Make tunnels work in multi-instance scenarios [#6178](https://github.com/excalidraw/excalidraw/pull/6178)
750
-
751
- - Add 1px width to the container to calculate more accurately [#6174](https://github.com/excalidraw/excalidraw/pull/6174)
752
-
753
- - Quick typo fix [#6167](https://github.com/excalidraw/excalidraw/pull/6167)
754
-
755
- - Set the width correctly using measureText in editor [#6162](https://github.com/excalidraw/excalidraw/pull/6162)
756
-
757
- - :bug: broken emojis when wrap text [#6153](https://github.com/excalidraw/excalidraw/pull/6153)
758
-
759
- - Button background and svg sizes [#6155](https://github.com/excalidraw/excalidraw/pull/6155)
760
-
761
- ### Styles
762
-
763
- - Change in ExportButton style [#6147](https://github.com/excalidraw/excalidraw/pull/6147) (#6148)
764
-
765
- ### Build
766
-
767
- - Temporarily disable pre-commit [#6132](https://github.com/excalidraw/excalidraw/pull/6132)
768
-
769
- ---
770
-
771
- ## 0.14.1 (2023-01-16)
772
-
773
- ### Fixes
774
-
775
- - remove overflow hidden from button [#6110](https://github.com/excalidraw/excalidraw/pull/6110). This fixes the collaborator count css in the [LiveCollaborationTrigger](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#LiveCollaborationTrigger) component.
776
-
777
- ## 0.14.0 (2023-01-13)
778
-
779
- ### Features
780
-
781
- - Support customization for the editor [welcome screen](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#WelcomeScreen) [#6048](https://github.com/excalidraw/excalidraw/pull/6048).
782
-
783
- - Expose component API for the Excalidraw main menu [#6034](https://github.com/excalidraw/excalidraw/pull/6034), You can read more about its usage [here](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#MainMenu)
784
-
785
- - Support customization for the Excalidraw [main menu](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#MainMenu) [#6034](https://github.com/excalidraw/excalidraw/pull/6034).
786
-
787
- - [Footer](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#Footer) is now rendered as child component instead of passed as a render prop [#5970](https://github.com/excalidraw/excalidraw/pull/5970).
788
-
789
- - Any top-level children passed to the `<Excalidraw/>` component that do not belong to one of the officially supported Excalidraw children components are now rendered directly inside the Excalidraw container (previously, they weren't rendered at all) [#6096](https://github.com/excalidraw/excalidraw/pull/6096).
790
-
791
- - Expose [LiveCollaborationTrigger](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#LiveCollaborationTrigger) component. Replaces `props.onCollabButtonClick` [#6104](https://github.com/excalidraw/excalidraw/pull/6104).
792
-
793
- #### BREAKING CHANGES
794
-
795
- - `props.onCollabButtonClick` is now removed. You need to render the main menu item yourself, and optionally also render the `<LiveCollaborationTrigger>` component using [renderTopRightUI](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#renderTopRightUI) prop if you want to retain the canvas button at top-right.
796
- - The prop `renderFooter` is now removed in favor of rendering as a child component.
797
-
798
- ### Excalidraw schema
799
-
800
- - Merged `appState.currentItemStrokeSharpness` and `appState.currentItemLinearStrokeSharpness` into `appState.currentItemRoundness`. Renamed `changeSharpness` action to `changeRoundness`. Excalidraw element's `strokeSharpness` was changed to `roundness`. Check the PR for types and more details [#5553](https://github.com/excalidraw/excalidraw/pull/5553).
801
-
802
- ## Excalidraw Library
803
-
804
- **_This section lists the updates made to the excalidraw library and will not affect the integration._**
805
-
806
- ### Features
807
-
808
- - Generic button export [#6092](https://github.com/excalidraw/excalidraw/pull/6092)
809
-
810
- - Scroll using PageUp and PageDown [#6038](https://github.com/excalidraw/excalidraw/pull/6038)
811
-
812
- - Support shrinking text containers to original height when text removed [#6025](https://github.com/excalidraw/excalidraw/pull/6025)
813
-
814
- - Move contextMenu into the component tree and control via appState [#6021](https://github.com/excalidraw/excalidraw/pull/6021)
815
-
816
- - Allow readonly actions to be used in viewMode [#5982](https://github.com/excalidraw/excalidraw/pull/5982)
817
-
818
- - Support labels for arrow 🔥 [#5723](https://github.com/excalidraw/excalidraw/pull/5723)
819
-
820
- - Don't add midpoint until dragged beyond a threshold [#5927](https://github.com/excalidraw/excalidraw/pull/5927)
821
-
822
- - Changed text copy/paste behaviour [#5786](https://github.com/excalidraw/excalidraw/pull/5786)
823
-
824
- - Reintroduce `x` shortcut for `freedraw` [#5840](https://github.com/excalidraw/excalidraw/pull/5840)
825
-
826
- - Tweak toolbar shortcuts & remove library shortcut [#5832](https://github.com/excalidraw/excalidraw/pull/5832)
827
-
828
- - Clean unused images only after 24hrs (local-only) [#5839](https://github.com/excalidraw/excalidraw/pull/5839)
829
-
830
- - Refetch errored/pending images on collab room init load [#5833](https://github.com/excalidraw/excalidraw/pull/5833)
831
-
832
- - Stop deleting whole line when no point select in line editor [#5676](https://github.com/excalidraw/excalidraw/pull/5676)
833
-
834
- - Editor redesign 🔥 [#5780](https://github.com/excalidraw/excalidraw/pull/5780)
835
-
836
- ### Fixes
837
-
838
- - Mobile tools positioning [#6107](https://github.com/excalidraw/excalidraw/pull/6107)
839
-
840
- - Renamed folder MainMenu->main-menu and support rest props [#6103](https://github.com/excalidraw/excalidraw/pull/6103)
841
-
842
- - Use position absolute for mobile misc tools [#6099](https://github.com/excalidraw/excalidraw/pull/6099)
843
-
844
- - React.memo resolvers not accounting for all props [#6042](https://github.com/excalidraw/excalidraw/pull/6042)
845
-
846
- - Image horizontal flip fix + improved tests [#5799](https://github.com/excalidraw/excalidraw/pull/5799)
847
-
848
- - Png-exporting does not preserve angles correctly for flipped images [#6085](https://github.com/excalidraw/excalidraw/pull/6085)
849
-
850
- - Stale appState of MainMenu defaultItems rendered from Actions [#6074](https://github.com/excalidraw/excalidraw/pull/6074)
851
-
852
- - HelpDialog [#6072](https://github.com/excalidraw/excalidraw/pull/6072)
853
-
854
- - Show error message on collab save failure [#6063](https://github.com/excalidraw/excalidraw/pull/6063)
855
-
856
- - Remove ga from docker build [#6059](https://github.com/excalidraw/excalidraw/pull/6059)
857
-
858
- - Use displayName since name gets stripped off when uglifying/minifiyng in production [#6036](https://github.com/excalidraw/excalidraw/pull/6036)
859
-
860
- - Remove background from wysiwyg when editing arrow label [#6033](https://github.com/excalidraw/excalidraw/pull/6033)
861
-
862
- - Use canvas measureText to calculate width in measureText [#6030](https://github.com/excalidraw/excalidraw/pull/6030)
863
-
864
- - Restoring deleted bindings [#6029](https://github.com/excalidraw/excalidraw/pull/6029)
865
-
866
- - ColorPicker getColor [#5949](https://github.com/excalidraw/excalidraw/pull/5949)
867
-
868
- - Don't push whitespace to next line when exceeding max width during wrapping and make sure to use same width of text editor on DOM when measuring dimensions [#5996](https://github.com/excalidraw/excalidraw/pull/5996)
869
-
870
- - Showing `grabbing` cursor when holding `spacebar` [#6015](https://github.com/excalidraw/excalidraw/pull/6015)
871
-
872
- - Resize sometimes throwing on missing null-checks [#6013](https://github.com/excalidraw/excalidraw/pull/6013)
873
-
874
- - PWA not working after CRA@5 update [#6012](https://github.com/excalidraw/excalidraw/pull/6012)
875
-
876
- - Not properly restoring element stroke and bg colors [#6002](https://github.com/excalidraw/excalidraw/pull/6002)
877
-
878
- - Avatar outline on safari & center [#5997](https://github.com/excalidraw/excalidraw/pull/5997)
879
-
880
- - Chart pasting not working due to removing tab characters [#5987](https://github.com/excalidraw/excalidraw/pull/5987)
881
-
882
- - Apply the right type of roundness when pasting styles [#5979](https://github.com/excalidraw/excalidraw/pull/5979)
883
-
884
- - Remove editor onpaste handler [#5971](https://github.com/excalidraw/excalidraw/pull/5971)
885
-
886
- - Remove blank space [#5950](https://github.com/excalidraw/excalidraw/pull/5950)
887
-
888
- - Galego and Kurdî missing in languages plus two locale typos [#5954](https://github.com/excalidraw/excalidraw/pull/5954)
889
-
890
- - `ExcalidrawArrowElement` rather than `ExcalidrawArrowEleement` [#5955](https://github.com/excalidraw/excalidraw/pull/5955)
891
-
892
- - RenderFooter styling [#5962](https://github.com/excalidraw/excalidraw/pull/5962)
893
-
894
- - Repair element bindings on restore [#5956](https://github.com/excalidraw/excalidraw/pull/5956)
895
-
896
- - Don't allow whitespaces for bound text [#5939](https://github.com/excalidraw/excalidraw/pull/5939)
897
-
898
- - Bindings do not survive history serialization [#5942](https://github.com/excalidraw/excalidraw/pull/5942)
899
-
900
- - Dedupe boundElement ids when container duplicated with alt+drag [#5938](https://github.com/excalidraw/excalidraw/pull/5938)
901
-
902
- - Scale font correctly when using shift [#5935](https://github.com/excalidraw/excalidraw/pull/5935)
903
-
904
- - Always bind to container selected by user [#5880](https://github.com/excalidraw/excalidraw/pull/5880)
905
-
906
- - Fonts not rendered on init if `loadingdone` not fired [#5923](https://github.com/excalidraw/excalidraw/pull/5923)
907
-
908
- - Stop replacing `del` word with `Delete` [#5897](https://github.com/excalidraw/excalidraw/pull/5897)
909
-
910
- - Remove legacy React.render() from the editor [#5893](https://github.com/excalidraw/excalidraw/pull/5893)
911
-
912
- - Allow adding text via enter only for text containers [#5891](https://github.com/excalidraw/excalidraw/pull/5891)
913
-
914
- - Stop font `loadingdone` loop when rendering element SVGs [#5883](https://github.com/excalidraw/excalidraw/pull/5883)
915
-
916
- - Refresh text dimensions only after font load done [#5878](https://github.com/excalidraw/excalidraw/pull/5878)
917
-
918
- - Correctly paste contents parsed by `JSON.parse()` as text. [#5868](https://github.com/excalidraw/excalidraw/pull/5868)
919
-
920
- - SVG element attributes in icons.tsx [#5871](https://github.com/excalidraw/excalidraw/pull/5871)
921
-
922
- - Merge existing text with new when pasted [#5856](https://github.com/excalidraw/excalidraw/pull/5856)
923
-
924
- - Disable FAST_REFRESH to fix live reload [#5852](https://github.com/excalidraw/excalidraw/pull/5852)
925
-
926
- - Paste clipboard contents into unbound text elements [#5849](https://github.com/excalidraw/excalidraw/pull/5849)
927
-
928
- - Compute dimensions of container correctly when text pasted on container [#5845](https://github.com/excalidraw/excalidraw/pull/5845)
929
-
930
- - Line editor points rendering below elements [#5781](https://github.com/excalidraw/excalidraw/pull/5781)
931
-
932
- - Syncing 1-point lines to remote clients [#5677](https://github.com/excalidraw/excalidraw/pull/5677)
933
-
934
- - Incorrectly selecting linear elements on creation while tool-locked [#5785](https://github.com/excalidraw/excalidraw/pull/5785)
935
-
936
- - Corrected typo in toggle theme shortcut [#5813](https://github.com/excalidraw/excalidraw/pull/5813)
937
-
938
- - Hide canvas-modifying UI in view mode [#5815](https://github.com/excalidraw/excalidraw/pull/5815)
939
-
940
- - Fix vertical/horizntal centering icons [#5812](https://github.com/excalidraw/excalidraw/pull/5812)
941
-
942
- - Consistent use of ZOOM_STEP [#5801](https://github.com/excalidraw/excalidraw/pull/5801)
943
-
944
- - Multiple elements resizing regressions [#5586](https://github.com/excalidraw/excalidraw/pull/5586)
945
-
946
- - Changelog typo [#5795](https://github.com/excalidraw/excalidraw/pull/5795)
947
-
948
- ### Refactor
949
-
950
- - Remove unnecessary code [#5933](https://github.com/excalidraw/excalidraw/pull/5933)
951
-
952
- ### Build
953
-
954
- - Move release scripts to use release branch [#5958](https://github.com/excalidraw/excalidraw/pull/5958)
955
-
956
- - Stops ignoring .env files from docker context so env variables get set during react app build. [#5809](https://github.com/excalidraw/excalidraw/pull/5809)
957
-
958
- ---
959
-
960
- ## 0.13.0 (2022-10-27)
961
-
962
- ### Excalidraw API
963
-
964
- #### Features
965
-
966
- - `restoreElements()` now takes an optional parameter to indicate whether we should also recalculate text element dimensions. Defaults to `true`, but since this is a potentially costly operation, you may want to disable it if you restore elements in tight loops, such as during collaboration [#5432](https://github.com/excalidraw/excalidraw/pull/5432).
967
- - Support rendering custom sidebar using [`renderSidebar`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#renderSidebar) prop ([#5663](https://github.com/excalidraw/excalidraw/pull/5663)).
968
- - Add [`toggleMenu`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#toggleMenu) prop to toggle specific menu open/close state ([#5663](https://github.com/excalidraw/excalidraw/pull/5663)).
969
- - Support [theme](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#theme) to be semi-controlled [#5660](https://github.com/excalidraw/excalidraw/pull/5660).
970
- - Added support for storing [`customData`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#storing-custom-data-on-excalidraw-elements) on Excalidraw elements [#5592].
971
- - Added `exportPadding?: number;` to [exportToCanvas](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#exporttocanvas) and [exportToBlob](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#exporttoblob). The default value of the padding is `10`.
972
-
973
- #### Breaking Changes
974
-
975
- - `props.UIOptions.canvasActions.theme` is now renamed to `props.UIOptions.canvasActions.toggleTheme` [#5660](https://github.com/excalidraw/excalidraw/pull/5660).
976
- - `setToastMessage` API is now renamed to `setToast` API and the function signature is also updated [#5427](https://github.com/excalidraw/excalidraw/pull/5427). You can also pass `duration` and `closable` attributes along with `message`.
977
-
978
- ## Excalidraw Library
979
-
980
- **_This section lists the updates made to the excalidraw library and will not affect the integration._**
981
-
982
- ### Features
983
-
984
- - Render library into `Sidebar` on mobile [#5774](https://github.com/excalidraw/excalidraw/pull/5774)
985
-
986
- - Additional drag and drop image format support (webp, bmp, ico) [#5749](https://github.com/excalidraw/excalidraw/pull/5749)
987
-
988
- - Enter and Exit line editor via context menu [#5719](https://github.com/excalidraw/excalidraw/pull/5719)
989
-
990
- - Further reduce darkmode init flash [#5701](https://github.com/excalidraw/excalidraw/pull/5701)
991
-
992
- - Support segment midpoints in line editor [#5641](https://github.com/excalidraw/excalidraw/pull/5641)
993
-
994
- - Added exportPadding to PNG (blob) export in @excalidraw/utils [#5626](https://github.com/excalidraw/excalidraw/pull/5626)
995
-
996
- - Introduce ExcalidrawElements and ExcalidrawAppState provider [#5463](https://github.com/excalidraw/excalidraw/pull/5463)
997
-
998
- - Enable midpoint inside linear element editor [#5564](https://github.com/excalidraw/excalidraw/pull/5564)
999
-
1000
- - Show a mid point for linear elements [#5534](https://github.com/excalidraw/excalidraw/pull/5534)
1001
-
1002
- - Lock angle when editing linear elements with shift pressed [#5527](https://github.com/excalidraw/excalidraw/pull/5527)
1003
-
1004
- - Redesign linear elements 🎉 [#5501](https://github.com/excalidraw/excalidraw/pull/5501)
1005
-
1006
- - Cursor alignment when creating linear elements with shift pressed [#5518](https://github.com/excalidraw/excalidraw/pull/5518)
1007
-
1008
- - Shift-clamp when creating multi-point lines/arrows [#5500](https://github.com/excalidraw/excalidraw/pull/5500)
1009
-
1010
- - Cursor alignment when creating generic elements [#5516](https://github.com/excalidraw/excalidraw/pull/5516)
1011
-
1012
- - Make context menu scrollable [#4030](https://github.com/excalidraw/excalidraw/pull/4030)
1013
-
1014
- ### Fixes
1015
-
1016
- - Ungroup short cut key [#5779](https://github.com/excalidraw/excalidraw/pull/5779)
1017
-
1018
- - Replaced KeyboardEvent.code with KeyboardEvent.key for all letters [#5523](https://github.com/excalidraw/excalidraw/pull/5523)
1019
-
1020
- - Free draw flip not scaling correctly [#5752](https://github.com/excalidraw/excalidraw/pull/5752)
1021
-
1022
- - Wait for window focus until prompting for library install [#5751](https://github.com/excalidraw/excalidraw/pull/5751)
1023
-
1024
- - Update perfect freehand library to fix extra dot [#5727](https://github.com/excalidraw/excalidraw/pull/5727)
1025
-
1026
- - RestoreElementWithProperties drops "parent" property [#5742](https://github.com/excalidraw/excalidraw/pull/5742)
1027
-
1028
- - Horizontal text alignment for bound text when resizing [#5721](https://github.com/excalidraw/excalidraw/pull/5721)
1029
-
1030
- - Set the dimensions of bound text correctly [#5710](https://github.com/excalidraw/excalidraw/pull/5710)
1031
-
1032
- - Image-mirroring in export preview and in exported svg [#5700](https://github.com/excalidraw/excalidraw/pull/5700)
1033
-
1034
- - Double state update incorrectly resetting state [#5704](https://github.com/excalidraw/excalidraw/pull/5704)
1035
-
1036
- - Remove no longer used code related to collab room loading [#5699](https://github.com/excalidraw/excalidraw/pull/5699)
1037
-
1038
- - Revert webpack deduping to fix `@next` runtime [#5695](https://github.com/excalidraw/excalidraw/pull/5695)
1039
-
1040
- - Move to release notes for v0.9.0 and after [#5686](https://github.com/excalidraw/excalidraw/pull/5686)
1041
-
1042
- - Zen-mode exit button not working [#5682](https://github.com/excalidraw/excalidraw/pull/5682)
1043
-
1044
- - Buttons jump around on the mobile menu [#5658](https://github.com/excalidraw/excalidraw/pull/5658)
1045
-
1046
- - #5622 - prevent session theme reset during collaboration [#5640](https://github.com/excalidraw/excalidraw/pull/5640)
1047
-
1048
- - Library actions inside the sidebar [#5638](https://github.com/excalidraw/excalidraw/pull/5638)
1049
-
1050
- - Don't render library menu twice for mobile [#5636](https://github.com/excalidraw/excalidraw/pull/5636)
1051
-
1052
- - Reintroduce help dialog button [#5631](https://github.com/excalidraw/excalidraw/pull/5631)
1053
-
1054
- - Add display name to components so it doesn't show as anonymous [#5616](https://github.com/excalidraw/excalidraw/pull/5616)
1055
-
1056
- - Improve solveQuadratic when a = 0 [#5618](https://github.com/excalidraw/excalidraw/pull/5618)
1057
-
1058
- - Add random tiny offsets to avoid linear elements from being clipped [#5615](https://github.com/excalidraw/excalidraw/pull/5615)
1059
-
1060
- - Crash when adding a new point in the line editor #5602 [#5606](https://github.com/excalidraw/excalidraw/pull/5606)
1061
-
1062
- - Allow box selection of points when inside editor [#5594](https://github.com/excalidraw/excalidraw/pull/5594)
1063
-
1064
- - Remove unnecessary conditions in pointerup for linear elements [#5575](https://github.com/excalidraw/excalidraw/pull/5575)
1065
-
1066
- - Check if hitting link in handleSelectionOnPointerDown [#5589](https://github.com/excalidraw/excalidraw/pull/5589)
1067
-
1068
- - Points not being normalized on single-elem resize [#5581](https://github.com/excalidraw/excalidraw/pull/5581)
1069
-
1070
- - Deselect linear element when clicked inside bounding box outside editor [#5579](https://github.com/excalidraw/excalidraw/pull/5579)
1071
-
1072
- - Resize multiple elements from center [#5560](https://github.com/excalidraw/excalidraw/pull/5560)
1073
-
1074
- - Call static methods via class instead of instance in linearElementEditor [#5561](https://github.com/excalidraw/excalidraw/pull/5561)
1075
-
1076
- - Show bounding box for 3 or more linear point elements [#5554](https://github.com/excalidraw/excalidraw/pull/5554)
1077
-
1078
- - Cleanup the condition for dragging elements [#5555](https://github.com/excalidraw/excalidraw/pull/5555)
1079
-
1080
- - Shareable links being merged with current scene data [#5547](https://github.com/excalidraw/excalidraw/pull/5547)
1081
-
1082
- - Scene lookup failing when looking up by id [#5542](https://github.com/excalidraw/excalidraw/pull/5542)
1083
-
1084
- - Remove rounding to fix jitter when shift-editing [#5543](https://github.com/excalidraw/excalidraw/pull/5543)
1085
-
1086
- - Line deselected when shift-dragging point outside editor [#5540](https://github.com/excalidraw/excalidraw/pull/5540)
1087
-
1088
- - Flip linear elements after redesign [#5538](https://github.com/excalidraw/excalidraw/pull/5538)
1089
-
1090
- - Disable locking aspect ratio for box-selection [#5525](https://github.com/excalidraw/excalidraw/pull/5525)
1091
-
1092
- - Add `title` attribute to the modal close button [#5521](https://github.com/excalidraw/excalidraw/pull/5521)
1093
-
1094
- - Context menu positioning when component has offsets [#5520](https://github.com/excalidraw/excalidraw/pull/5520)
1095
-
1096
- - Resolve paths in prebuild.js script [#5498](https://github.com/excalidraw/excalidraw/pull/5498)
1097
-
1098
- - Use flushSync when moving line editor since we need to read previous value after setting state [#5508](https://github.com/excalidraw/excalidraw/pull/5508)
1099
-
1100
- - UseLayout effect cleanup in dev mode for charts [#5505](https://github.com/excalidraw/excalidraw/pull/5505)
1101
-
1102
- - Revert browser toast for high/low zoom [#5495](https://github.com/excalidraw/excalidraw/pull/5495)
1103
-
1104
- - Fixing push to DockerHub [#5468](https://github.com/excalidraw/excalidraw/pull/5468)
1105
-
1106
- - Incorrectly rendering freedraw elements [#5481](https://github.com/excalidraw/excalidraw/pull/5481)
1107
-
1108
- - Generate types when building example [#5480](https://github.com/excalidraw/excalidraw/pull/5480)
1109
-
1110
- - Use React.FC as react-dom is not able to infer types of Modal [#5479](https://github.com/excalidraw/excalidraw/pull/5479)
1111
-
1112
- - Missing translation for "Scale" to Export Dialog [#5456](https://github.com/excalidraw/excalidraw/pull/5456)
1113
-
1114
- - Add display name for Excalidraw component so it doesn't show as anonymous [#5464](https://github.com/excalidraw/excalidraw/pull/5464)
1115
-
1116
- - Account for safe area for floating buttons on mobile [#5420](https://github.com/excalidraw/excalidraw/pull/5420)
1117
-
1118
- - Attribute warnings in comment svg example [#5465](https://github.com/excalidraw/excalidraw/pull/5465)
1119
-
1120
- - Check for ctrl key when wheel event triggered to only disable zooming [#5459](https://github.com/excalidraw/excalidraw/pull/5459)
1121
-
1122
- - Disable render throttling by default & during resize [#5451](https://github.com/excalidraw/excalidraw/pull/5451)
1123
-
1124
- - Attach wheel event to exscalidraw container only [#5443](https://github.com/excalidraw/excalidraw/pull/5443)
1125
-
1126
- - Show toast when browser zoom is not 100% [#5304](https://github.com/excalidraw/excalidraw/pull/5304)
1127
-
1128
- - Prevent browser zoom inside Excalidraw [#5426](https://github.com/excalidraw/excalidraw/pull/5426)
1129
-
1130
- - Typo in changelog [#5425](https://github.com/excalidraw/excalidraw/pull/5425)
1131
-
1132
- ### Refactor
1133
-
1134
- - Create a util to compute container dimensions for bound text container [#5708](https://github.com/excalidraw/excalidraw/pull/5708)
1135
-
1136
- - Reuse common ui dialogs and message for mobile and LayerUI [#5611](https://github.com/excalidraw/excalidraw/pull/5611)
1137
-
1138
- - Stats component [#5610](https://github.com/excalidraw/excalidraw/pull/5610)
1139
-
1140
- - Move footer to its own component [#5609](https://github.com/excalidraw/excalidraw/pull/5609)
1141
-
1142
- - Remove unused attribute hasHitElementInside from pointerDownState [#5591](https://github.com/excalidraw/excalidraw/pull/5591)
1143
-
1144
- - Cleanup renderScene [#5573](https://github.com/excalidraw/excalidraw/pull/5573)
1145
-
1146
- - Rename docs to dev-docs [#5487](https://github.com/excalidraw/excalidraw/pull/5487)
1147
-
1148
- - Remove unnecessary if condition for linear element onKeyDown [#5486](https://github.com/excalidraw/excalidraw/pull/5486)
1149
-
1150
- - Improve typing & check [#5415](https://github.com/excalidraw/excalidraw/pull/5415)
1151
-
1152
- - Don't pass zenModeEnable, viewModeEnabled and toggleZenMode props to LayerUI [#5444](https://github.com/excalidraw/excalidraw/pull/5444)
1153
-
1154
- ### Build
1155
-
1156
- - Add missing dependencies: pica, lodash [#5656](https://github.com/excalidraw/excalidraw/pull/5656)
1157
-
1158
- - Move dotenv to dev deps [#5472](https://github.com/excalidraw/excalidraw/pull/5472)
1159
-
1160
- ---
1161
-
1162
- ## 0.12.0 (2022-07-07)
1163
-
1164
- Check out the [release notes](https://github.com/excalidraw/excalidraw/releases/tag/v0.12.0) )
1165
-
1166
- **_This section lists the updates made to the excalidraw library and will not affect the integration._**
1167
-
1168
- ## 0.11.0 (2022-02-17)
1169
-
1170
- Check out the [release notes](https://github.com/excalidraw/excalidraw/releases/tag/v0.11.0)
1171
-
1172
- ## 0.10.0 (2021-10-13)
1173
-
1174
- Check out the [release notes](https://github.com/excalidraw/excalidraw/releases/tag/v0.10.0)
1175
-
1176
- ## 0.9.0 (2021-07-10)
1177
-
1178
- Check out the [release notes](https://github.com/excalidraw/excalidraw/releases/tag/v0.9.0)
1179
-
1180
- ## 0.8.0 (2021-05-15)
1181
-
1182
- ## Excalidraw API
1183
-
1184
- **_These section lists the updates which may affect your integration, so it is recommended to go through this when upgrading the version._**
1185
-
1186
- ### Features
1187
-
1188
- - Support updating any `appState` properties in [`updateScene`](https://github.com/excalidraw/excalidraw/blob/master/src/components/App.tsx#L282) API. Earlier only `appState.viewBackgroundColor` was supported, now any attribute can be updated with this API.
1189
- - Expose [`serializeAsJSON`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#serializeAsJSON) helper that we use when saving Excalidraw scene to a file [#3538](https://github.com/excalidraw/excalidraw/pull/3538).
1190
- - Add support to render custom UI in the top right corner via [`renderTopRightUI`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#renderTopRightUI) prop [#3539](https://github.com/excalidraw/excalidraw/pull/3539), [#3572](https://github.com/excalidraw/excalidraw/pull/3572) .
1191
-
1192
- This also removes the GitHub icon, keeping it local to the https://excalidraw.com app.
1193
-
1194
- ### Fixes
1195
-
1196
- - The encryption shield icon is now removed from excalidraw package as it was specific to excalidraw app and is now rendered via [`renderFooter`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#renderFooter) prop. In case you were hiding this icon earlier, you need not do that anymore [#3577](https://github.com/excalidraw/excalidraw/pull/3577).
1197
-
1198
- Now `appState` is also passed to [`renderFooter`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#renderFooter) prop.
1199
-
1200
- ## Excalidraw Library
1201
-
1202
- **_These section lists the updates made to the excalidraw library and will not affect the integration._**
1203
-
1204
- ### Features
1205
-
1206
- - Shortcut key for nerd stats [#3552](https://github.com/excalidraw/excalidraw/pull/3552).
1207
- - Better rendering of curved rectangles [#3562](https://github.com/excalidraw/excalidraw/pull/3562).
1208
- - Improved freedraw [#3512](https://github.com/excalidraw/excalidraw/pull/3512).
1209
- - Add shortcut for dark mode [#3543](https://github.com/excalidraw/excalidraw/pull/3543).
1210
- - Adds rounded icons, joins and caps.[#3521](https://github.com/excalidraw/excalidraw/pull/3521).
1211
-
1212
- ### Fixes
1213
-
1214
- - Exporting freedraw with color to svg [#3565](https://github.com/excalidraw/excalidraw/pull/3565).
1215
- - Handle render errors [#3557](https://github.com/excalidraw/excalidraw/pull/3557).
1216
- - Restore on paste or lib import [#3558](https://github.com/excalidraw/excalidraw/pull/3558).
1217
- - Improve mobile user experience [#3508](https://github.com/excalidraw/excalidraw/pull/3508).
1218
- - Prevent selecting `.visually-hidden` elements [#3501](https://github.com/excalidraw/excalidraw/pull/3501).
1219
-
1220
- ### Perf
1221
-
1222
- - Reduce SVG export size by more than half by reducing precision to 2 decimal places [#3567](https://github.com/excalidraw/excalidraw/pull/3567).
1223
- - Remove `backdrop-filter` to improve perf [#3506](https://github.com/excalidraw/excalidraw/pull/3506)
1224
-
1225
- ---
1226
-
1227
- ## 0.7.0 (2021-04-26)
1228
-
1229
- ## Excalidraw API
1230
-
1231
- ### Features
1232
-
1233
- - [`scrollToContent`](https://github.com/excalidraw/excalidraw/blob/master/src/components/App.tsx#L265) API now supports passing just a single Excalidraw element, or none at all (which will default to current elements on the scene) [#3482](https://github.com/excalidraw/excalidraw/pull/3482).
1234
-
1235
- #### BREAKING CHANGE
1236
-
1237
- - Renamed `setScrollToContent` to [`scrollToContent`](https://github.com/excalidraw/excalidraw/blob/master/src/components/App.tsx#L265).
1238
-
1239
- - Make library local to given excalidraw instance (previously, all instances on the same page shared one global library) [#3451](https://github.com/excalidraw/excalidraw/pull/3451).
1240
-
1241
- - Added prop [onLibraryChange](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#onLibraryChange) which if supplied will be called when library is updated.
1242
-
1243
- - Added attribute `libraryItems` to prop [initialData](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#initialdata) which can be used to load excalidraw with existing library items.
1244
-
1245
- - Assign a [unique id](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#Id) to the excalidraw component. The id can be accessed via [`ref`](https://github.com/excalidraw/excalidraw/blob/master/src/components/App.tsx#L298).
1246
-
1247
- #### BREAKING CHANGE
1248
-
1249
- - From now on the host application is responsible for [persisting the library](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#onLibraryChange) to LocalStorage (or elsewhere), and [importing it on mount](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#initialdata).
1250
-
1251
- - Bind the keyboard events to component and added a prop [`handleKeyboardGlobally`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#handleKeyboardGlobally) which if set to true will bind the keyboard events to document [#3430](https://github.com/excalidraw/excalidraw/pull/3430).
1252
-
1253
- #### BREAKING CHANGE
1254
-
1255
- - Earlier keyboard events were bind to document but now its bind to Excalidraw component by default. So you will need to set [`handleKeyboardGlobally`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#handleKeyboardGlobally) to true if you want the previous behaviour (bind the keyboard events to document).
1256
-
1257
- - Recompute offsets on `scroll` of the nearest scrollable container [#3408](https://github.com/excalidraw/excalidraw/pull/3408). This can be disabled by setting [`detectScroll`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#detectScroll) to `false`.
1258
-
1259
- - Add `onPaste` prop to handle custom clipboard behaviours [#3420](https://github.com/excalidraw/excalidraw/pull/3420).
1260
-
1261
- ### Fixes
1262
-
1263
- - Changing z-index of elements (sorting them below/above other elements) now updates their `version` and `versionNonce` (only applies to the selected elements). This fix will allow you account for z-index changes if you're syncing just the elements that changed (and not the whole scene) [#3483](https://github.com/excalidraw/excalidraw/pull/3483).
1264
- - Only handle cut/paste events inside excalidraw [#3484](https://github.com/excalidraw/excalidraw/pull/3484).
1265
-
1266
- - Make history local to a given Excalidraw instance. This fixes a case where history was getting shared when you have multiple Excalidraw components on the same page [#3481](https://github.com/excalidraw/excalidraw/pull/3481).
1267
- - Use active Excalidraw component when editing text. This fixes a case where text editing was not working when you have multiple Excalidraw components on the same page [#3478](https://github.com/excalidraw/excalidraw/pull/3478).
1268
-
1269
- - Fix library being pasted off-center [#3462](https://github.com/excalidraw/excalidraw/pull/3462).
1270
-
1271
- - When switching theme, apply it only to the active Excalidraw component. This fixes a case where the theme was getting applied to the first Excalidraw component if you had multiple Excalidraw components on the same page [#3446](https://github.com/excalidraw/excalidraw/pull/3446).
1272
-
1273
- ### Refactor
1274
-
1275
- - #### BREAKING CHANGE
1276
-
1277
- - Removed exposing `getSyncableElements` helper which was specific to excalidraw app collab implementation [#3471](https://github.com/excalidraw/excalidraw/pull/3471). If you happened to use it, you can easily reimplement it yourself using the newly exposed [isInvisiblySmallElement](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#isInvisiblySmallElement) helper:
1278
-
1279
- ```ts
1280
- const getSyncableElements = (elements: readonly ExcalidrawElement[]) =>
1281
- elements.filter((el) => el.isDeleted || !isInvisiblySmallElement(el));
1282
- ```
1283
-
1284
- ### Build
1285
-
1286
- - Add vendor prefixes to css rules [#3476](https://github.com/excalidraw/excalidraw/pull/3476).
1287
-
1288
- ## Types
1289
-
1290
- - Renamed the following types in case you depend on them (via [#3427](https://github.com/excalidraw/excalidraw/pull/3427)):
1291
- - `DataState` → `ExportedDataState`
1292
- - `LibraryData` → `ExportedLibraryData`
1293
-
1294
- ## Excalidraw Library
1295
-
1296
- ### Features
1297
-
1298
- - Support tab-to-indent when editing text [#3411](https://github.com/excalidraw/excalidraw/pull/3411).
1299
-
1300
- - App now breaks into mobile view using the component dimensions, not viewport dimensions. This fixes a case where the app would break sooner than necessary when the component's size is smaller than viewport [#3414](https://github.com/excalidraw/excalidraw/pull/3414).
1301
-
1302
- - Add screenshots to manifest.json [#3369](https://github.com/excalidraw/excalidraw/pull/3369).
1303
-
1304
- - Enable drop event on the whole component [#3406](https://github.com/excalidraw/excalidraw/pull/3406).
1305
-
1306
- ### Fixes
1307
-
1308
- - Focus on last active element when dialog closes [#3447](https://github.com/excalidraw/excalidraw/pull/3447).
1309
-
1310
- - Fix incorrectly caching png file handle [#3407](https://github.com/excalidraw/excalidraw/pull/3407).
1311
-
1312
- - Fix popover position incorrect on Safari for non-zero offsets/scroll [#3399](https://github.com/excalidraw/excalidraw/pull/3399).
1313
-
1314
- ---
1315
-
1316
- ## 0.6.0 (2021-04-04)
1317
-
1318
- ## Excalidraw API
1319
-
1320
- ### Features
1321
-
1322
- - Add `UIOptions` prop to customise `canvas actions` which includes customising `background color picker`, `clear canvas`, `export`, `load`, `save`, `save as` & `theme toggle` [#3364](https://github.com/excalidraw/excalidraw/pull/3364). Check the [readme](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#uioptions) for more details.
1323
- - Calculate `width/height` of canvas based on excalidraw component (".excalidraw" selector) & also resize and update offsets whenever the dimensions of excalidraw component gets updated [#3379](https://github.com/excalidraw/excalidraw/pull/3379). You also don't need to add a resize handler anymore for excalidraw as its handled now in excalidraw itself.
1324
- #### BREAKING CHANGE
1325
- - `width/height` props have been removed. Instead now it takes `100%` of `width` and `height` of the container so you need to make sure the container in which you are rendering Excalidraw has non zero dimensions (It should have non zero width and height so Excalidraw can match the dimensions of containing block)
1326
- - Calculate offsets when excalidraw container resizes using resize observer api [#3374](https://github.com/excalidraw/excalidraw/pull/3374).
1327
- - Export types for the package so now it can be used with typescript [#3337](https://github.com/excalidraw/excalidraw/pull/3337). The types are available at `@excalidraw/excalidraw/types`.
1328
- - Add `renderCustomStats` prop to render extra stats on host, and expose `setToastMessage` API via refs which can be used to show toast with custom message [#3360](https://github.com/excalidraw/excalidraw/pull/3360).
1329
- - Support passing a CSRF token when importing libraries to prevent prompting before installation. The token is passed from [https://libraries.excalidraw.com](https://libraries.excalidraw.com/) using the `token` URL key [#3329](https://github.com/excalidraw/excalidraw/pull/3329).
1330
- - #### BREAKING CHANGE
1331
- Use `location.hash` when importing libraries to fix installation issues. This will require host apps to add a `hashchange` listener and call the newly exposed `excalidrawAPI.importLibrary(url)` API when applicable [#3320](https://github.com/excalidraw/excalidraw/pull/3320). Check the [readme](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#importlibrary) for more details.
1332
- - Append `location.pathname` to `libraryReturnUrl` default url [#3325](https://github.com/excalidraw/excalidraw/pull/3325).
1333
- - Support image elements [#3424](https://github.com/excalidraw/excalidraw/pull/3424).
1334
-
1335
- ### Build
1336
-
1337
- - Expose separate builds for dev and prod and support source maps in dev build [#3330](https://github.com/excalidraw/excalidraw/pull/3330). Check the [readme](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#installation) for more details.
1338
- #### BREAKING CHANGE
1339
- - If you are using script tag to embed excalidraw then the name of the file will have to be updated to `excalidraw.production.min.js` instead of `excalidraw.min.js`. If you want to use dev build you can use `excalidraw.development.js`
1340
-
1341
- ### Refactor
1342
-
1343
- #### BREAKING CHANGE
1344
-
1345
- - Rename the API `setCanvasOffsets` exposed via [`ref`](https://github.com/excalidraw/excalidraw/blob/master/src/components/App.tsx#L265) to `refresh` [#3398](https://github.com/excalidraw/excalidraw/pull/3398).
1346
-
1347
- ## Excalidraw Library
1348
-
1349
- ### Features
1350
-
1351
- - Reopen library menu on import from file [#3383](https://github.com/excalidraw/excalidraw/pull/3383).
1352
- - Don't unnecessarily prompt when installing libraries [#3329](https://github.com/excalidraw/excalidraw/pull/3329).
1353
- - Add option to flip single element on the context menu [#2520](https://github.com/excalidraw/excalidraw/pull/2520).
1354
- - Replace fontSize and fontFamily text with icons [#2857](https://github.com/excalidraw/excalidraw/pull/2857).
1355
-
1356
- ### Fixes
1357
-
1358
- - Export dialog canvas positioning [#3397](https://github.com/excalidraw/excalidraw/pull/3397).
1359
- - Don't share collab types with core [#3353](https://github.com/excalidraw/excalidraw/pull/3353).
1360
- - Support d&d of files without extension [#3168](https://github.com/excalidraw/excalidraw/pull/3168).
1361
- - Positions stats for linear elements [#3331](https://github.com/excalidraw/excalidraw/pull/3331).
1362
- - Debounce.flush invokes func even if never queued before [#3326](https://github.com/excalidraw/excalidraw/pull/3326).
1363
- - State selection state on opening contextMenu [#3333](https://github.com/excalidraw/excalidraw/pull/3333).
1364
- - Add unique key for library header to resolve dev warnings [#3316](https://github.com/excalidraw/excalidraw/pull/3316).
1365
- - disallow create text in viewMode on mobile [#3219](https://github.com/excalidraw/excalidraw/pull/3219).
1366
- - Make help toggle tabbable [#3310](https://github.com/excalidraw/excalidraw/pull/3310)
1367
- - Show Windows share icon for Windows users [#3306](https://github.com/excalidraw/excalidraw/pull/3306).
1368
- - Don't scroll to content on INIT websocket message [#3291](https://github.com/excalidraw/excalidraw/pull/3291).
1369
-
1370
- ### Refactor
1371
-
1372
- - Use arrow function where possible [#3315](https://github.com/excalidraw/excalidraw/pull/3315).
1373
-
1374
- ---
1375
-
1376
- ## 0.5.0 (2021-03-21)
1377
-
1378
- ## Excalidraw API
1379
-
1380
- ### Features
1381
-
1382
- - Set the target to `window.name` if present during excalidraw libraries installation so it opens in same tab for the host. If `window.name` is not set it will open in a new tab [#3299](https://github.com/excalidraw/excalidraw/pull/3299).
1383
- - Add `name` prop to indicate the name of the drawing which will be used when exporting the drawing. When supplied, the value takes precedence over `intialData.appState.name`, the `name` will be fully controlled by host app and the users won't be able to edit from within Excalidraw [#3273](https://github.com/excalidraw/excalidraw/pull/3273).
1384
- - Export API `setCanvasOffsets` via `ref` to set the offsets for Excalidraw[#3265](https://github.com/excalidraw/excalidraw/pull/3265).
1385
- #### BREAKING CHANGE
1386
- - `offsetLeft` and `offsetTop` props have been removed now so you have to use the `setCanvasOffsets` via `ref` to achieve the same.
1387
- - Export API to export the drawing to canvas, svg and blob [#3258](https://github.com/excalidraw/excalidraw/pull/3258). For more info you can check the [readme](https://github.com/excalidraw/excalidraw/tree/master/src/packages/excalidraw/README.md#user-content-export-utils)
1388
- - Add a `theme` prop to indicate Excalidraw's theme. [#3228](https://github.com/excalidraw/excalidraw/pull/3228). When this prop is passed, the theme is fully controlled by host app.
1389
- - Support `libraryReturnUrl` prop to indicate what URL to install libraries to [#3227](https://github.com/excalidraw/excalidraw/pull/3227).
1390
-
1391
- ### Refactor
1392
-
1393
- - #### BREAKING CHANGE
1394
- - Rename prop `initialData.scrollToCenter` and `setScrollToCenter` API exposed via ref to `initialData.scrollToContent` and `setScrollToContent` respectively[#3261](https://github.com/excalidraw/excalidraw/pull/3261).
1395
- - Rename appearance to theme [#3237](https://github.com/excalidraw/excalidraw/pull/3237).
1396
- #### BREAKING CHANGE
1397
- - Since `appState.appearance` is renamed to `appState.theme` so wherever `appState.appearance` including `initialData.appState.appearance` should be renamed to `appState.theme` and `initialData.appState.theme` respectively. If the `appearance` was persisted earlier, now it needs to passed as `theme`.
1398
- - The class `Appearance_dark` is renamed to `theme--dark`.
1399
- - The class `Appearance_dark-background-none` is renamed to `theme--dark-background-none`.
1400
-
1401
- ## Excalidraw Library
1402
-
1403
- ### Features
1404
-
1405
- - Support pasting file contents & always prefer system clip [#3257](https://github.com/excalidraw/excalidraw/pull/3257)
1406
- - Add label for name field and use input when editable in export dialog [#3286](https://github.com/excalidraw/excalidraw/pull/3286)
1407
- - Implement the Web Share Target API [#3230](https://github.com/excalidraw/excalidraw/pull/3230).
1408
-
1409
- ### Fixes
1410
-
1411
- - Don't show export and delete when library is empty [#3288](https://github.com/excalidraw/excalidraw/pull/3288)
1412
- - Overflow in textinput in export dialog [#3284](https://github.com/excalidraw/excalidraw/pull/3284).
1413
- - Bail on noop updates for newElementWith [#3279](https://github.com/excalidraw/excalidraw/pull/3279).
1414
- - Prevent State continuously updated when holding ctrl/cmd #3283
1415
- - Debounce flush not invoked if lastArgs not defined [#3281](https://github.com/excalidraw/excalidraw/pull/3281).
1416
- - Stop preventing canvas pointerdown/tapend events [#3207](https://github.com/excalidraw/excalidraw/pull/3207).
1417
- - Double scrollbar on modals [#3226](https://github.com/excalidraw/excalidraw/pull/3226).
1418
-
1419
- ---
1420
-
1421
- ## 0.4.3 (2021-03-12)
1422
-
1423
- ## Excalidraw API
1424
-
1425
- ### Fixes
1426
-
1427
- - Allow copy of excalidraw elements only when inside excalidraw [#3206](https://github.com/excalidraw/excalidraw/pull/3206).
1428
- - Position text editor absolute and fix the offsets so it doesn't remain fixed when the container is scrolled [#3200](https://github.com/excalidraw/excalidraw/pull/3200).
1429
- - Scope CSS variables so that host CSS vars don't clash with excalidraw [#3199](https://github.com/excalidraw/excalidraw/pull/3199).
1430
-
1431
- ## Excalidraw Library
1432
-
1433
- - Apply correct translation when text editor overflows when zoom not 100% [#3225](https://github.com/excalidraw/excalidraw/pull/3225)
1434
- - Don't overflow text beyond width of Excalidraw [#3215](https://github.com/excalidraw/excalidraw/pull/3215).
1435
-
1436
- ---
1437
-
1438
- ## 0.4.2
1439
-
1440
- ## Excalidraw API
1441
-
1442
- ### Fixes
1443
-
1444
- - Wrap excalidraw in position relative so host need not do it anymore & hide scrollbars in zen mode [#3174](https://github.com/excalidraw/excalidraw/pull/3174).
1445
- - Reduce the scroll debounce timeout to `100ms` so `offsets` gets updated faster if changed when container scrolled [#3182](https://github.com/excalidraw/excalidraw/pull/3182).
1446
- - Rerender UI on `renderFooter` prop change [#3183](https://github.com/excalidraw/excalidraw/pull/3183)
1447
-
1448
- ## Excalidraw Library
1449
-
1450
- ### Fixes
1451
-
1452
- - Temporarily downgrade browser-fs-access to fix legacy FS API [#3172](https://github.com/excalidraw/excalidraw/pull/3172)
1453
-
1454
- ---
1455
-
1456
- ## 0.4.1
1457
-
1458
- ## Excalidraw API
1459
-
1460
- ### Fixes
1461
-
1462
- - Use `Array.from` when spreading over set so that typescript transpiles correctly in the umd build[#3165](https://github.com/excalidraw/excalidraw/pull/3165).
1463
-
1464
- ## Excalidraw Library
1465
-
1466
- ### Features
1467
-
1468
- - Add export info on copy PNG to clipboard toast message [#3159](https://github.com/excalidraw/excalidraw/pull/3159).
1469
- - Use the latest version of Virgil [#3124](https://github.com/excalidraw/excalidraw/pull/3124).
1470
- - Support exporting with dark mode [#3046](https://github.com/excalidraw/excalidraw/pull/3046).
1471
-
1472
- ### Fixes
1473
-
1474
- - Cursor being leaked outside of canvas [#3161](https://github.com/excalidraw/excalidraw/pull/3161).
1475
- - Hide scrollbars in zenMode [#3144](https://github.com/excalidraw/excalidraw/pull/3144).
1476
-
1477
- ## 0.4.0
1478
-
1479
- ## Excalidraw API
1480
-
1481
- ### Features
1482
-
1483
- - Expose `window.EXCALIDRAW_ASSET_PATH` which host can use to load assets from a different URL. By default it will be loaded from `https://unpkg.com/@excalidraw/excalidraw{currentVersion}/dist/`[#3068](https://github.com/excalidraw/excalidraw/pull/3068).
1484
-
1485
- Also now the assets will have a hash in filename so cache bursting can easily happen with version bump.
1486
-
1487
- - Add support for `scrollToCenter` in [initialData](https://github.com/excalidraw/excalidraw/blob/master/src/element/types.ts#L18) so host can control whether to scroll to center on mount [#3070](https://github.com/excalidraw/excalidraw/pull/3070).
1488
-
1489
- - Export [`restore`](https://github.com/excalidraw/excalidraw/blob/master/src/data/restore.ts#L182), [`restoreAppState`](https://github.com/excalidraw/excalidraw/blob/master/src/data/restore.ts#L144) and [`restoreElements`](https://github.com/excalidraw/excalidraw/blob/master/src/data/restore.ts#L128) to host [#3049](https://github.com/excalidraw/excalidraw/pull/3049)
1490
-
1491
- ### Fixes
1492
-
1493
- - Show user state only when [userState](https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L35) is passed on remote pointers during collaboration [#3050](https://github.com/excalidraw/excalidraw/pull/3050)
1494
-
1495
- ## Excalidraw Library
1496
-
1497
- ### Features
1498
-
1499
- - Adjust line-confirm-threshold based on zoom [#2884](https://github.com/excalidraw/excalidraw/pull/2884)
1500
-
1501
- ### Fixes
1502
-
1503
- - Hide scrollbars on mobile [#3044](https://github.com/excalidraw/excalidraw/pull/3044)
1504
-
1505
- ## 0.3.1
1506
-
1507
- ## Excalidraw API
1508
-
1509
- ### Fixes
1510
-
1511
- - Support Excalidraw inside scrollable container [#3018](https://github.com/excalidraw/excalidraw/pull/3018)
1512
-
1513
- ## Excalidraw Library
1514
-
1515
- ### Fixes
1516
-
1517
- - Allow to toggle between modes when view only mode to make UI consistent [#3009](https://github.com/excalidraw/excalidraw/pull/3009)
1518
-
1519
- ## 0.3.0
1520
-
1521
- ## Excalidraw API
1522
-
1523
- ### Features
1524
-
1525
- - Allow host to pass [color](https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L36) for [collaborator](https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L27) [#2943](https://github.com/excalidraw/excalidraw/pull/2943). The unused prop `user` is now removed.
1526
- - Add `zenModeEnabled` and `gridModeEnabled` prop which enables zen mode and grid mode respectively [#2901](https://github.com/excalidraw/excalidraw/pull/2901). When this prop is used, the zen mode / grid mode will be fully controlled by the host app.
1527
- - Allow host to pass [userState](https://github.com/excalidraw/excalidraw/blob/6967d8c9851c65bb8873e2f97387749976bbe326/src/types.ts#L35) for [collaborator](https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L27) to show the current user state [#2877](https://github.com/excalidraw/excalidraw/pull/2877).
1528
- - Add `viewModeEnabled` prop which enabled the view mode [#2840](https://github.com/excalidraw/excalidraw/pull/2840). When this prop is used, the view mode will not show up in context menu is so it is fully controlled by host.
1529
- - Expose `getAppState` on `excalidrawRef` [#2834](https://github.com/excalidraw/excalidraw/pull/2834).
1530
-
1531
- ### Build
1532
-
1533
- - Remove publicPath so host can use `__webpack_public_path__` to host the assets[#2835](https://github.com/excalidraw/excalidraw/pull/2835)
1534
-
1535
- ## Excalidraw Library
1536
-
1537
- ### Features
1538
-
1539
- - Add the ability to clear library [#2997](https://github.com/excalidraw/excalidraw/pull/2997)
1540
- - Updates to Collaboration and RTL UX [#2994](https://github.com/excalidraw/excalidraw/pull/2994)
1541
- - Show toast when saving to existing file [#2988](https://github.com/excalidraw/excalidraw/pull/2988)
1542
- - Support supplying custom scale when exporting canvas [#2904](https://github.com/excalidraw/excalidraw/pull/2904)
1543
- - Show version in the stats dialog [#2908](https://github.com/excalidraw/excalidraw/pull/2908)
1544
- - Add idle detection to collaboration feature [#2877](https://github.com/excalidraw/excalidraw/pull/2877)
1545
- - Add view mode in Excalidraw [#2840](https://github.com/excalidraw/excalidraw/pull/2840)
1546
- - Increase max zoom [#2881](https://github.com/excalidraw/excalidraw/pull/2881)
1547
- - Remove copy & paste from context menu on desktop [#2872](https://github.com/excalidraw/excalidraw/pull/2872)
1548
- - Add separators on context menu [#2659](https://github.com/excalidraw/excalidraw/pull/2659)
1549
- - Add ctrl-y to redo [#2831](https://github.com/excalidraw/excalidraw/pull/2831)
1550
- - Add view mode [#2840](https://github.com/excalidraw/excalidraw/pull/2840).
1551
- - Remove `copy`, `cut`, and `paste` actions from contextmenu [#2872](https://github.com/excalidraw/excalidraw/pull/2872)
1552
- - Support `Ctrl-Y` shortcut to redo on Windows [#2831](https://github.com/excalidraw/excalidraw/pull/2831).
1553
-
1554
- ### Fixes
1555
-
1556
- - Refresh wysiwyg position on canvas resize [#3008](https://github.com/excalidraw/excalidraw/pull/3008)
1557
- - Update the `lang` attribute with the current lang. [#2995](https://github.com/excalidraw/excalidraw/pull/2995)
1558
- - Rename 'Grid mode' to 'Show grid' [#2944](https://github.com/excalidraw/excalidraw/pull/2944)
1559
- - Deal with users on systems that don't handle emoji [#2941](https://github.com/excalidraw/excalidraw/pull/2941)
1560
- - Mobile toolbar tooltip regression [#2939](https://github.com/excalidraw/excalidraw/pull/2939)
1561
- - Hide collaborator list on mobile if empty [#2938](https://github.com/excalidraw/excalidraw/pull/2938)
1562
- - Toolbar unnecessarily eats too much width [#2924](https://github.com/excalidraw/excalidraw/pull/2924)
1563
- - Mistakenly hardcoding scale [#2925](https://github.com/excalidraw/excalidraw/pull/2925)
1564
- - Text editor not visible in dark mode [#2920](https://github.com/excalidraw/excalidraw/pull/2920)
1565
- - Incorrect z-index of text editor [#2914](https://github.com/excalidraw/excalidraw/pull/2914)
1566
- - Make scrollbars draggable when offsets are set [#2916](https://github.com/excalidraw/excalidraw/pull/2916)
1567
- - Pointer-events being disabled on free-draw [#2912](https://github.com/excalidraw/excalidraw/pull/2912)
1568
- - Track zenmode and grid mode usage [#2900](https://github.com/excalidraw/excalidraw/pull/2900)
1569
- - Disable UI pointer-events on canvas drag [#2856](https://github.com/excalidraw/excalidraw/pull/2856)
1570
- - Stop flooring scroll positions [#2883](https://github.com/excalidraw/excalidraw/pull/2883)
1571
- - Apply initialData appState for zenmode and grid stats and refactor check param for actions [#2871](https://github.com/excalidraw/excalidraw/pull/2871)
1572
- - Show correct state of Nerd stats in context menu when nerd stats dialog closed [#2874](https://github.com/excalidraw/excalidraw/pull/2874)
1573
- - Remote pointers not accounting for offset [#2855](https://github.com/excalidraw/excalidraw/pull/2855)
1574
- - Toggle help dialog when "shift+?" is pressed [#2828](https://github.com/excalidraw/excalidraw/pull/2828)
1575
- - Add safe check for process so Excalidraw can be loaded via script [#2824](https://github.com/excalidraw/excalidraw/pull/2824)
1576
- - Fix UI pointer-events not disabled when dragging on canvas [#2856](https://github.com/excalidraw/excalidraw/pull/2856).
1577
- - Fix remote pointers not accounting for offset [#2855](https://github.com/excalidraw/excalidraw/pull/2855).
1578
-
1579
- ### Refactor
1580
-
1581
- - Remove duplicate key handling [#2878](https://github.com/excalidraw/excalidraw/pull/2878)
1582
- - Reuse scss variables in js for SSOT [#2867](https://github.com/excalidraw/excalidraw/pull/2867)
1583
- - Rename browser-nativefs to browser-fs-access [#2862](https://github.com/excalidraw/excalidraw/pull/2862)
1584
- - Rewrite collabWrapper to remove TDZs and simplify [#2834](https://github.com/excalidraw/excalidraw/pull/2834)
1585
-
1586
- ### Chore
1587
-
1588
- - Use `Sentence case` for `Live collaboration`
1589
-
1590
- ## 0.2.1
1591
-
1592
- ## Excalidraw API
1593
-
1594
- ### Build
1595
-
1596
- - Bundle css files with js [#2819](https://github.com/excalidraw/excalidraw/pull/2819). The host would not need to import css files separately.
1597
-
1598
- ## 0.2.0
1599
-
1600
- ## Excalidraw API
1601
-
1602
- ### Features
1603
-
1604
- - Exported few [Extra API's](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#extra-apis) which can be used by the host to communicate with Excalidraw.
1605
-
1606
- - Remove language picker, and add `langCode`, `renderFooter` [#2644](https://github.com/excalidraw/excalidraw/pull/2644):
1607
- - BREAKING: removed the language picker from UI. It is now the host app's responsibility to implement a language picker if desirable, using the newly added [`renderFooter`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#renderFooter) prop. The reasoning is that the i18n should be controlled by the app itself, not by the nested Excalidraw component.
1608
- - Added [`langCode`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#langCode) prop to control the UI language.
1609
- - Add support for `exportToBackend` prop to allow host apps to implement shareable links [#2612](https://github.com/excalidraw/excalidraw/pull/2612/files)
1610
-
1611
- ### Fixes
1612
-
1613
- - Hide collaboration button when the prop `onCollabButtonClick` is not provided [#2598](https://github.com/excalidraw/excalidraw/pull/2598)
1614
-
1615
- ## Excalidraw Library
1616
-
1617
- ### Features
1618
-
1619
- - Add toast [#2772](https://github.com/excalidraw/excalidraw/pull/2772)
1620
- - Add `cmd+o` shortcut to load scene [#2732](https://github.com/excalidraw/excalidraw/pull/2732)
1621
- - Require use of a preset dialog size; adjust dialog sizing [#2684](https://github.com/excalidraw/excalidraw/pull/2684)
1622
- - Add line chart and paste dialog selection [#2670](https://github.com/excalidraw/excalidraw/pull/2670)
1623
- - Tweak editing behavior [#2668](https://github.com/excalidraw/excalidraw/pull/2668)
1624
- - Change title to Excalidraw after a timeout
1625
- - Checkmark to toggle context-menu-items [#2645](https://github.com/excalidraw/excalidraw/pull/2645)
1626
- - Add zoom to selection [#2522](https://github.com/excalidraw/excalidraw/pull/2522)
1627
- - Insert Library items in the middle of the screen [#2527](https://github.com/excalidraw/excalidraw/pull/2527)
1628
- - Show shortcut context menu [#2501](https://github.com/excalidraw/excalidraw/pull/2501)
1629
- - Aligns arrowhead schemas [#2517](https://github.com/excalidraw/excalidraw/pull/2517)
1630
- - Add Cut to menus [#2511](https://github.com/excalidraw/excalidraw/pull/2511)
1631
- - More Arrowheads: dot, bar [#2486](https://github.com/excalidraw/excalidraw/pull/2486)
1632
- - Support CSV graphs and improve the look and feel [#2495](https://github.com/excalidraw/excalidraw/pull/2495)
1633
-
1634
- ### Fixes
1635
-
1636
- - Fix compile error [#2685](https://github.com/excalidraw/excalidraw/pull/2685)
1637
- - Center zoom on iPhone and iPad [#2642](https://github.com/excalidraw/excalidraw/pull/2642)
1638
- - Allow text-selecting in dialogs & reset cursor [#2783](https://github.com/excalidraw/excalidraw/pull/2783)
1639
- - Don't render due to zoom after unmount [#2779](https://github.com/excalidraw/excalidraw/pull/2779)
1640
- - Track the chart type correctly [#2773](https://github.com/excalidraw/excalidraw/pull/2773)
1641
- - Fix late-render due to debounced zoom [#2779](https://github.com/excalidraw/excalidraw/pull/2779)
1642
- - Fix initialization when browser tab not focused [#2677](https://github.com/excalidraw/excalidraw/pull/2677)
1643
- - Consistent case for export locale strings [#2622](https://github.com/excalidraw/excalidraw/pull/2622)
1644
- - Remove unnecessary console.error as it was polluting Sentry [#2637](https://github.com/excalidraw/excalidraw/pull/2637)
1645
- - Fix scroll-to-center on init for non-zero canvas offsets [#2445](https://github.com/excalidraw/excalidraw/pull/2445)
1646
- - Fix resizing the pasted charts [#2586](https://github.com/excalidraw/excalidraw/pull/2586)
1647
- - Fix element visibility and zoom on cursor when canvas offset isn't 0. [#2534](https://github.com/excalidraw/excalidraw/pull/2534)
1648
- - Fix Library Menu Layout [#2502](https://github.com/excalidraw/excalidraw/pull/2502)
1649
- - Support number with commas in charts [#2636](https://github.com/excalidraw/excalidraw/pull/2636)
1650
- - Don't break zoom when zooming in on UI [#2638](https://github.com/excalidraw/excalidraw/pull/2638)
1651
-
1652
- ### Improvements
1653
-
1654
- - Added Zen Mode to the context menu [#2734](https://github.com/excalidraw/excalidraw/pull/2734)
1655
- - Do not reset to selection for draw tool [#2721]((https://github.com/excalidraw/excalidraw/pull/2721)
1656
- - Make dialogs look more like dialogs [#2686](https://github.com/excalidraw/excalidraw/pull/2686)
1657
- - Browse libraries styles fixed [#2694](https://github.com/excalidraw/excalidraw/pull/2694)
1658
- - Change hint for 2-point lines on resize [#2655](https://github.com/excalidraw/excalidraw/pull/2655)
1659
- - Align items in context menu [#2640](https://github.com/excalidraw/excalidraw/pull/2640)
1660
- - Do not reset to selection when using the draw tool [#2721](https://github.com/excalidraw/excalidraw/pull/2721)
1661
- - Display proper tooltip for 2-point lines during resize, and normalize modifier key labels in hints [#2655](https://github.com/excalidraw/excalidraw/pull/2655)
1662
- - Improve error message around importing images [#2619](https://github.com/excalidraw/excalidraw/pull/2619)
1663
- - Add tooltip with icon for embedding scenes [#2532](https://github.com/excalidraw/excalidraw/pull/2532)
1664
- - RTL support for the stats dialog [#2530](https://github.com/excalidraw/excalidraw/pull/2530)
1665
- - Expand canvas padding based on zoom. [#2515](https://github.com/excalidraw/excalidraw/pull/2515)
1666
- - Hide shortcuts on pickers for mobile [#2508](https://github.com/excalidraw/excalidraw/pull/2508)
1667
- - Hide stats and scrollToContent-button when mobile menus open [#2509](https://github.com/excalidraw/excalidraw/pull/2509)
1668
-
1669
- ### Refactor
1670
-
1671
- - refactor: Converting span to kbd tag [#2774](https://github.com/excalidraw/excalidraw/pull/2774)
1672
- - Media queries [#2680](https://github.com/excalidraw/excalidraw/pull/2680)
1673
- - Remove duplicate entry from en.json[#2654](https://github.com/excalidraw/excalidraw/pull/2654)
1674
- - Remove the word toggle from labels [#2648](https://github.com/excalidraw/excalidraw/pull/2648)
1675
- -
1676
-
1677
- ### Docs
1678
-
1679
- - Document some of the more exotic element props [#2673](https://github.com/excalidraw/excalidraw/pull/2673)
1680
-
1681
- ## 0.1.1
1682
-
1683
- #### Fix
1684
-
1685
- - Update the homepage URL so it redirects to correct readme [#2498](https://github.com/excalidraw/excalidraw/pull/2498)
1686
-
1687
- ## 0.1.0
1688
-
1689
- First release of `@excalidraw/excalidraw`