@layers-app/editor 0.7.65 → 0.7.66-test

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 (224) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.d.ts +0 -9
  3. package/dist/index.js +4 -4
  4. package/dist/{layers.rPk2h-z7.js → layers.0GCKeIUb.js} +1 -1
  5. package/dist/{layers.BDvXHQ8J.js → layers.0LrV59I9.js} +3 -3
  6. package/dist/{layers.ieGhX84c.js → layers.26u4tmUF.js} +1 -1
  7. package/dist/{layers.Dhnu7hc0.js → layers.3w2czhfV.js} +1 -1
  8. package/dist/{layers.DJ0Wt_yu.js → layers.4DQU_wrk.js} +4 -4
  9. package/dist/{layers.BO6qsinL.js → layers.4QLurlmc.js} +1 -1
  10. package/dist/{layers.BpfywZry.js → layers.4cpHECsS.js} +1 -1
  11. package/dist/{layers.BDJPHJFD.js → layers.7OYutxVO.js} +1 -1
  12. package/dist/{layers.BZFCh8XT.js → layers.7T-KDPDG.js} +1 -1
  13. package/dist/{layers.DAP7KkqI.js → layers.7c_2gCbe.js} +1 -1
  14. package/dist/{layers.CdtHI9me.js → layers.85ih_GPs.js} +1 -1
  15. package/dist/{layers.BgXhskt1.js → layers.8sB0ynE1.js} +1 -1
  16. package/dist/{layers.C9bfFS-m.js → layers.9k1MWJXm.js} +1 -1
  17. package/dist/{layers.BN1XFcxU.js → layers.A6s4MC5v.js} +1 -1
  18. package/dist/{layers.CR3lwFpT.js → layers.ARhqKaaf.js} +1 -1
  19. package/dist/{layers.CRtDdBVn.js → layers.ASiq4tRV.js} +1 -1
  20. package/dist/{layers.BCjvXR-y.js → layers.B--A3JsB.js} +1 -1
  21. package/dist/{layers.Bi0Y8wqJ.js → layers.B0HHwn_u.js} +1 -1
  22. package/dist/{layers.M-XOP0a5.js → layers.B2fV11EH.js} +1 -1
  23. package/dist/{layers.Y-SSO8sM.js → layers.B3_jbNmA.js} +1 -1
  24. package/dist/{layers.BM4acNbd.js → layers.B4O35Co2.js} +1 -1
  25. package/dist/{layers.CcXmrDE1.js → layers.B5E5Xmxp.js} +1 -1
  26. package/dist/{layers.O1cmXr_W.js → layers.B5cPSq7K.js} +1 -1
  27. package/dist/{layers.CJGtUfLy.js → layers.B6mz4Ybb.js} +3 -3
  28. package/dist/{layers.DXZgdRaQ.js → layers.B8dynxug.js} +1 -1
  29. package/dist/layers.BBxFEBuU.js +1 -0
  30. package/dist/{layers.DeM2Gci8.js → layers.BELxNUgZ.js} +1 -1
  31. package/dist/layers.BGu6GwA-.js +1 -0
  32. package/dist/{layers.DXkz47LQ.js → layers.BH7FEwhV.js} +3 -3
  33. package/dist/{layers.B9j_N16l.js → layers.BHMfcFcD.js} +4 -4
  34. package/dist/{layers.LMBD5WP6.js → layers.BIFezoHC.js} +1 -1
  35. package/dist/{layers.Dbwb0-D6.js → layers.BMgHOaaR.js} +1 -1
  36. package/dist/{layers.Bep_3_5p.js → layers.BNnuSuMQ.js} +1 -1
  37. package/dist/{layers.C7lOrmvp.js → layers.BO99k9xJ.js} +1 -1
  38. package/dist/{layers.Ce-0cdvb.js → layers.BOwqxEFx.js} +1 -1
  39. package/dist/{layers.B4aO-g4C.js → layers.BP6saKyB.js} +1 -1
  40. package/dist/{layers.A7Bs5T4F.js → layers.BPYpTZ_p.js} +4 -4
  41. package/dist/{layers.BuglBX77.js → layers.BQ9gTosP.js} +1 -1
  42. package/dist/{layers.DylhMZsh.js → layers.BSXDWDVr.js} +4 -4
  43. package/dist/layers.BTJ8vdpQ.js +1 -0
  44. package/dist/layers.BWFHfGXy.js +6 -0
  45. package/dist/{layers.ClY16p5b.js → layers.BX7fz6mJ.js} +1 -1
  46. package/dist/{layers.By0alzDr.js → layers.BXwkf-qH.js} +1 -1
  47. package/dist/{layers.B67b-gaQ.js → layers.BaMEgT4H.js} +4 -4
  48. package/dist/{layers.B4d8F6-j.js → layers.BbYB-KJO.js} +1 -1
  49. package/dist/layers.BdS6R58Q.js +76 -0
  50. package/dist/{layers.YtIPDc_z.js → layers.BdvBaeEe.js} +1 -1
  51. package/dist/{layers.Dy6q9eRK.js → layers.BgbLuGBt.js} +1 -1
  52. package/dist/{layers.Clo6iX6B.js → layers.BgyhwwNa.js} +17680 -20444
  53. package/dist/{layers.BovSaTul.js → layers.BkuKQg7x.js} +1 -1
  54. package/dist/{layers.D66C6bLX.js → layers.BlSLfp0e.js} +1 -1
  55. package/dist/layers.BrBUbmx8.js +296 -0
  56. package/dist/{layers.CGDUhM_c.js → layers.BsIrP_QF.js} +1 -1
  57. package/dist/{layers.DHsqnWUs.js → layers.Bv9PlBHK.js} +1 -1
  58. package/dist/{layers.0CM_qJjC.js → layers.BwMapmuQ.js} +7 -7
  59. package/dist/{layers.C2XY7ddn.js → layers.ByRojsYU.js} +2 -2
  60. package/dist/{layers.CwTNKqe6.js → layers.BySQjWyZ.js} +1 -1
  61. package/dist/{layers.DiBi3-Wq.js → layers.BydxzJQb.js} +1 -1
  62. package/dist/{layers.Bnbf9zn-.js → layers.ByiaE8Zr.js} +1 -1
  63. package/dist/layers.BzGwk-Wv.js +8 -0
  64. package/dist/{layers.D_Ylh1Aw.js → layers.C-gZl7lg.js} +1 -1
  65. package/dist/{layers.Cw_ZI-Hq.js → layers.C38D9r7r.js} +1 -1
  66. package/dist/{layers.DgGfSvTo.js → layers.C3_nGf_M.js} +1 -1
  67. package/dist/{layers.DfByh4md.js → layers.C4OYrc7Z.js} +1 -1
  68. package/dist/{layers.B3U2x_im.js → layers.C4gOysqV.js} +1 -1
  69. package/dist/{layers.BZd8VMlu.js → layers.C5SsKTKR.js} +1 -1
  70. package/dist/layers.C5g_bP3c.js +213 -0
  71. package/dist/{layers.vxeiC96N.js → layers.C6ITbXju.js} +1 -1
  72. package/dist/{layers.fb6SRbvV.js → layers.C6pHRbQs.js} +1 -1
  73. package/dist/{layers.DYWAXnla.js → layers.C8EUG7Sr.js} +1 -1
  74. package/dist/{layers.BjdyHDbt.js → layers.CAbw1NKW.js} +1 -1
  75. package/dist/{layers.DRkExZyY.js → layers.CAgEWhwJ.js} +1 -1
  76. package/dist/{layers.IQ7hEiwp.js → layers.CB7YGERU.js} +1 -1
  77. package/dist/{layers.DcqLYT3y.js → layers.CCGQVLU2.js} +1 -1
  78. package/dist/{layers.9-KEaHkX.js → layers.CCKMuCAA.js} +1 -1
  79. package/dist/{layers.md58J52I.js → layers.CDKiQuDh.js} +1 -1
  80. package/dist/{layers.B_MPT8Un.js → layers.CEI3tnB_.js} +1 -1
  81. package/dist/{layers.C3nJL_mk.js → layers.CHKdq6A6.js} +1 -1
  82. package/dist/{layers.CaHY4GRf.js → layers.CHuSxfH3.js} +1 -1
  83. package/dist/{layers.CvDmCLh7.js → layers.CI3MFWgN.js} +3 -3
  84. package/dist/{layers.mRLmPtDn.js → layers.CJJre_1G.js} +1 -1
  85. package/dist/{layers.CDbrKIso.js → layers.CJNFL35-.js} +1 -1
  86. package/dist/{layers.C0waNfPB.js → layers.CKM-lMmO.js} +1 -1
  87. package/dist/{layers.7lP4HfoY.js → layers.CL6aVzN1.js} +1 -1
  88. package/dist/{layers.DqswN752.js → layers.CNsUNPbI.js} +1 -1
  89. package/dist/layers.CO7GMj_K.js +1 -0
  90. package/dist/{layers.CVjkDD55.js → layers.CO8puFw_.js} +1 -1
  91. package/dist/{layers.16EOCl2I.js → layers.CQcaD-84.js} +1 -1
  92. package/dist/{layers.D0RlfUJk.js → layers.CSz5Cnyo.js} +1 -1
  93. package/dist/layers.CTryJm6B.js +7 -0
  94. package/dist/{layers.u1CXiRKf.js → layers.CUY4cr2Z.js} +1 -1
  95. package/dist/{layers.BbQV7ppZ.js → layers.CVS7GcgJ.js} +3 -3
  96. package/dist/{layers.D29U8vj5.js → layers.CW9BwSyD.js} +1 -1
  97. package/dist/layers.CYLOn2kf.js +1 -0
  98. package/dist/{layers.BY9IHzZX.js → layers.CYnI6mY9.js} +3 -3
  99. package/dist/{layers.4-6uPiZq.js → layers.CZD6co71.js} +1 -1
  100. package/dist/{layers.DnilL9o_.js → layers.CZtn2RJd.js} +1 -1
  101. package/dist/{layers.CcIfmKuH.js → layers.C_MWARL-.js} +1 -1
  102. package/dist/{layers.Du__0TwC.js → layers.CbAZKXYc.js} +1 -1
  103. package/dist/{layers.DJp9mbDw.js → layers.CcRvev11.js} +1 -1
  104. package/dist/{layers.D3rCkuw-.js → layers.Ccz0REhJ.js} +1 -1
  105. package/dist/{layers.BdWVgWiZ.js → layers.CdKbmc_a.js} +1 -1
  106. package/dist/{layers.Xr01ChcN.js → layers.CfnfCDQR.js} +1 -1
  107. package/dist/{layers.DDwq9y5k.js → layers.Cfw8r0_W.js} +1 -1
  108. package/dist/{layers.D-XTNlrE.js → layers.ChLHLCj9.js} +1 -1
  109. package/dist/{layers.2w6v7FYB.js → layers.ChXr1z8V.js} +1 -1
  110. package/dist/{layers.CsQInoZf.js → layers.ChltX04i.js} +1 -1
  111. package/dist/{layers.B0o1mJp3.js → layers.CiI_9ueR.js} +1 -1
  112. package/dist/{layers.B98Li_m6.js → layers.CiUw7hOA.js} +1 -1
  113. package/dist/{layers.pKZp612W.js → layers.CjRqsR1t.js} +1 -1
  114. package/dist/{layers.CVA7frBw.js → layers.CjjVdFBE.js} +1 -1
  115. package/dist/{layers.BkRg-ZTB.js → layers.Cjt-X4rR.js} +1 -1
  116. package/dist/{layers.B23b_kWf.js → layers.CkiSuwZK.js} +5 -5
  117. package/dist/layers.ClhOoODD.js +295 -0
  118. package/dist/{layers.DwAVuknl.js → layers.Co3hWHhW.js} +1 -1
  119. package/dist/{layers.CwVen601.js → layers.ConiX3te.js} +6 -6
  120. package/dist/{layers.DrVubpIj.js → layers.CrHnyiqD.js} +1 -1
  121. package/dist/{layers.CMudsIHl.js → layers.CsJOjptv.js} +1 -1
  122. package/dist/{layers.CRn9cN6j.js → layers.Ctm7px8v.js} +1 -1
  123. package/dist/{layers.BdLga8Nv.js → layers.Cw8X-f0L.js} +1 -1
  124. package/dist/{layers.CUYP2m2D.js → layers.CyVSavAM.js} +1 -1
  125. package/dist/{layers.36zLwGBX.js → layers.Cz8onbYr.js} +1 -1
  126. package/dist/{layers.DiKILn3E.js → layers.CzaDc6te.js} +1 -1
  127. package/dist/{layers.DPieZXnh.js → layers.D-fSbJdj.js} +1 -1
  128. package/dist/{layers.BSrBUqjU.js → layers.D0j6GePj.js} +1 -1
  129. package/dist/{layers.D_k3uig8.js → layers.D1dOI02C.js} +4 -4
  130. package/dist/{layers.CKclLE5M.js → layers.D1zVJjYR.js} +3 -3
  131. package/dist/{layers.BT0tF7XN.js → layers.D2OZd9oB.js} +1 -1
  132. package/dist/{layers.Cj71cT8B.js → layers.DARebeP0.js} +1 -1
  133. package/dist/{layers.BBM4-YpW.js → layers.DGL0BAKX.js} +1 -1
  134. package/dist/{layers.BoMp3OS4.js → layers.DGPYaLRn.js} +1 -1
  135. package/dist/{layers.D4zv_sXo.js → layers.DHww19So.js} +1 -1
  136. package/dist/{layers.3B0DBr4y.js → layers.DICwPaRx.js} +1 -1
  137. package/dist/{layers.DtkfGQHD.js → layers.DKxaWwHw.js} +1 -1
  138. package/dist/{layers.C3Ebak9C.js → layers.DRPOhGiy.js} +1 -1
  139. package/dist/{layers.BwADj-O6.js → layers.DSjq0zgc.js} +1 -1
  140. package/dist/{layers.DMgX-UEL.js → layers.DUZtyd6G.js} +1 -1
  141. package/dist/{layers.lmdY5L0V.js → layers.DY7QuMNr.js} +1 -1
  142. package/dist/{layers.B2317_ZM.js → layers.DZL5Djx5.js} +1 -1
  143. package/dist/{layers.D4wOu0Zw.js → layers.DaC1-NhV.js} +1 -1
  144. package/dist/{layers.C4buKlCY.js → layers.DanozR7k.js} +4 -4
  145. package/dist/{layers.5rKT6j8r.js → layers.Danuu7wl.js} +1 -1
  146. package/dist/{layers.BrrJNgYQ.js → layers.DbJnQauM.js} +8 -8
  147. package/dist/{layers.zRX_KzR5.js → layers.DcMXjJ6k.js} +1 -1
  148. package/dist/{layers.BUyK6U6W.js → layers.DcanoFE2.js} +1 -1
  149. package/dist/{layers.ty3px4y6.js → layers.DfgBfWjn.js} +1 -1
  150. package/dist/{layers.CnCus7Rr.js → layers.DhZUPDll.js} +3 -3
  151. package/dist/{layers.Bzz2rASW.js → layers.Dhds3F0q.js} +3 -3
  152. package/dist/{layers.DVkmtTGY.js → layers.DiHURFLY.js} +1 -1
  153. package/dist/{layers.Do8i3xUE.js → layers.DjHs_Jer.js} +1 -1
  154. package/dist/{layers.nAFrm5dJ.js → layers.DjkOHhxT.js} +5 -5
  155. package/dist/{layers.5V_J5q1f.js → layers.Djt-fH4s.js} +1 -1
  156. package/dist/{layers.De1CxG12.js → layers.Dl5cTVHL.js} +1 -1
  157. package/dist/{layers.ibzB_7uL.js → layers.DnSg6K9D.js} +1 -1
  158. package/dist/{layers.CMF0baBb.js → layers.DqAwIoJi.js} +2 -2
  159. package/dist/{layers.B1F3xcln.js → layers.Dr0TSgRj.js} +1 -1
  160. package/dist/{layers.Dl4T5_W-.js → layers.Dw0sw5Ol.js} +1 -1
  161. package/dist/{layers.DAf1DFSL.js → layers.Dw2i_WNR.js} +24 -24
  162. package/dist/{layers.BTTkcUie.js → layers.DwezxZN9.js} +1 -1
  163. package/dist/{layers.CigjfBfH.js → layers.DwtW2T-M.js} +1 -1
  164. package/dist/{layers.eGNOo-ny.js → layers.DxIkpbJK.js} +1 -1
  165. package/dist/{layers.Bowdlm-5.js → layers.EJqv4anY.js} +1 -1
  166. package/dist/{layers.DBrAWZUm.js → layers.Foh2GH4Q.js} +1 -1
  167. package/dist/{layers.DTrT0gZ7.js → layers.H0w8vpcp.js} +1 -1
  168. package/dist/{layers.CoL12aBR.js → layers.HgIMXtc1.js} +3 -3
  169. package/dist/layers.M5oGO5Y-.js +1 -0
  170. package/dist/{layers.X81Myf6N.js → layers.M7lrlUhH.js} +1 -1
  171. package/dist/{layers.CLWAiws9.js → layers.NfhwtKv3.js} +1 -1
  172. package/dist/{layers.DeLlmvdb.js → layers.Ntxi1sKB.js} +1 -1
  173. package/dist/{layers.CzFutfh-.js → layers.O27eOcxp.js} +1 -1
  174. package/dist/{layers.BzR706O8.js → layers.Out8Y8k2.js} +2 -2
  175. package/dist/{layers.O01HEoW5.js → layers.Q3k1bUef.js} +1 -1
  176. package/dist/layers.RUhgY8im.js +271 -0
  177. package/dist/{layers.De7rbtGA.js → layers.R_Lhjc6h.js} +3 -3
  178. package/dist/{layers.Dt67PG6_.js → layers.SHJMy0eV.js} +1 -1
  179. package/dist/{layers.C6RU-G6e.js → layers.SmLk3twn.js} +1 -1
  180. package/dist/{layers.zw6to3dF.js → layers.Sw5tKWm7.js} +1 -1
  181. package/dist/{layers.zXAhyYfC.js → layers.UVKjpPqX.js} +2 -2
  182. package/dist/{layers.BuA9cC-B.js → layers.VFApC2ZD.js} +1 -1
  183. package/dist/{layers.Cjy_Kuuf.js → layers.WQCqh-Mm.js} +1 -1
  184. package/dist/{layers.D9WX0rBf.js → layers.WxBz6t_P.js} +1 -1
  185. package/dist/{layers.D6VP7MGr.js → layers.XXqp6AdA.js} +1 -1
  186. package/dist/{layers.BvVxoAL-.js → layers._ZwatdsG.js} +1 -1
  187. package/dist/{layers.BSQyuUJG.js → layers._hwd_nwz.js} +1 -1
  188. package/dist/{layers.1EJbIfPW.js → layers._k46T1Vj.js} +1 -1
  189. package/dist/{layers.DVgebCja.js → layers.b0uktDDo.js} +1 -1
  190. package/dist/layers.bjndMs3a.js +1 -0
  191. package/dist/{layers.Cb2zfOK5.js → layers.eVf6rgQZ.js} +1 -1
  192. package/dist/layers.fmLnFlJk.js +129 -0
  193. package/dist/{layers.BG5AmoNd.js → layers.fyyAH4hs.js} +4 -4
  194. package/dist/{layers.BpGsmjO0.js → layers.lHJMZuZJ.js} +1 -1
  195. package/dist/{layers.BJHBikgX.js → layers.mCPkXZo2.js} +1 -1
  196. package/dist/{layers.gyGGlR3I.js → layers.moupwU-0.js} +1 -1
  197. package/dist/{layers.BYyKqky6.js → layers.mydgTgsS.js} +1 -1
  198. package/dist/{layers.CAzsMIrH.js → layers.ozjPlgZy.js} +4 -4
  199. package/dist/{layers.CpRTXkZx.js → layers.p8cKdIhF.js} +1 -1
  200. package/dist/{layers.C5bmbQjc.js → layers.qpGDwpuo.js} +1 -1
  201. package/dist/{layers.6ktpMh5U.js → layers.uLIv2C_L.js} +1 -1
  202. package/dist/{layers.BI1gUI-r.js → layers.v8GQQva2.js} +1 -1
  203. package/dist/{layers.D9h-IxjW.js → layers.vmjG3JgS.js} +2 -2
  204. package/dist/{layers.eN_P1yYw.js → layers.wYxNQr_j.js} +1 -1
  205. package/dist/{layers.BUoM2Djz.js → layers.x7INL1C9.js} +1 -1
  206. package/dist/{layers.Dim2CqHl.js → layers.xAqFbF9f.js} +1 -1
  207. package/dist/{layers.moYyxH_O.js → layers.xzLBKe9-.js} +1 -1
  208. package/dist/{layers.BSurQ0go.js → layers.zQSmdv9b.js} +1 -1
  209. package/dist/{layers.CpFIW0sT.js → layers.zUvSzc9J.js} +4 -4
  210. package/package.json +21 -46
  211. package/dist/layers.B4loBz9c.js +0 -1
  212. package/dist/layers.BAXEf8k3.js +0 -296
  213. package/dist/layers.BI9tBjOV.js +0 -1
  214. package/dist/layers.BrnLqwEP.js +0 -8
  215. package/dist/layers.BshYKlFH.js +0 -7
  216. package/dist/layers.BzFHkdth.js +0 -1
  217. package/dist/layers.C3xcgWg4.js +0 -471
  218. package/dist/layers.CmmYt3Ou.js +0 -1
  219. package/dist/layers.DAe5qYOU.js +0 -1
  220. package/dist/layers.DilA0qnM.js +0 -54
  221. package/dist/layers.DjZneq0V.js +0 -1
  222. package/dist/layers.Ds0KxrEv.js +0 -17
  223. package/dist/layers.TOlqWs5X.js +0 -129
  224. package/dist/layers.z69yXrSR.js +0 -6
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@layers-app/editor",
3
3
  "private": false,
4
- "version": "0.7.65",
4
+ "version": "0.7.66-test",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "start": "cross-env VITE_LAYERS=true vite --mode full ",
@@ -20,21 +20,7 @@
20
20
  "test:e2e:ui": "playwright test --ui",
21
21
  "test:e2e:debug": "playwright test --debug",
22
22
  "test:e2e:headed": "playwright test --headed",
23
- "start-test-server": "VITE_LAYERS=true vite --mode full --port 3000 --strictPort --host localhost",
24
- "type-check": "tsc --noEmit --project tsconfig.check.json",
25
- "changeset": "changeset",
26
- "version": "changeset version",
27
- "release": "npm run build && changeset publish",
28
- "prepare": "husky"
29
- },
30
- "lint-staged": {
31
- "*.{ts,tsx}": [
32
- "eslint --fix",
33
- "prettier --write"
34
- ],
35
- "*.{scss,css,json,md}": [
36
- "prettier --write"
37
- ]
23
+ "start-test-server": "VITE_LAYERS=true vite --mode full --port 3000 --strictPort --host localhost"
38
24
  },
39
25
  "publishConfig": {
40
26
  "access": "public"
@@ -59,21 +45,16 @@
59
45
  "yjs": "^13.6.20"
60
46
  },
61
47
  "devDependencies": {
62
- "@changesets/cli": "^2.30.0",
63
- "@commitlint/cli": "^20.5.0",
64
- "@commitlint/config-conventional": "^20.5.0",
65
48
  "@eslint/js": "^9.9.0",
66
- "@hugeicons/core-free-icons": "^4.0.0",
49
+ "@hugeicons/core-free-icons": "^2.0.0",
67
50
  "@hugeicons/react": "^1.1.1",
68
- "@layers-app/shared": "0.2.8-test",
69
- "@mantine/carousel": "8.3.5",
51
+ "@layers-app/shared": "^0.2.5",
70
52
  "@mantine/core": "8.3.5",
71
53
  "@mantine/dropzone": "8.3.5",
72
54
  "@mantine/form": "8.3.5",
73
55
  "@mantine/hooks": "8.3.5",
74
56
  "@mantine/modals": "8.3.5",
75
57
  "@mantine/notifications": "8.3.5",
76
- "@mantine/tiptap": "8.3.5",
77
58
  "@playwright/test": "^1.40.0",
78
59
  "@rollup/plugin-typescript": "^11.1.6",
79
60
  "@tabler/icons-react": "^3.7.0",
@@ -96,26 +77,20 @@
96
77
  "eslint-config-prettier": "^10.1.1",
97
78
  "eslint-plugin-prettier": "^5.2.3",
98
79
  "eslint-plugin-react": "^7.37.4",
99
- "eslint-plugin-react-hooks": "^7.0.1",
100
80
  "eslint-plugin-react-refresh": "^0.4.19",
101
81
  "eslint-plugin-unused-imports": "^4.1.4",
102
82
  "glob": "^10.3.10",
103
- "husky": "^9.1.7",
104
83
  "i18next": "^25.5.2",
105
- "lint-staged": "^16.4.0",
106
84
  "lodash-es": "^4.17.21",
107
85
  "postcss-import": "^16.1.0",
108
86
  "postcss-preset-mantine": "^1.17.0",
109
87
  "prettier": "^3.4.2",
110
88
  "prettier-plugin-organize-attributes": "^1.0.0",
111
89
  "proper-lockfile": "^4.1.2",
112
- "react": "^18.3.1",
113
- "react-dom": "^18.3.1",
114
90
  "react-i18next": "^15.7.3",
115
91
  "rollup-plugin-typescript-paths": "^1.5.0",
116
92
  "rollup-plugin-visualizer": "^5.12.0",
117
93
  "sass": "^1.71.1",
118
- "swagger-ui-react": "^5.32.0",
119
94
  "terser": "^5.39.0",
120
95
  "typescript": "^5.5.4",
121
96
  "typescript-eslint": "^8.2.0",
@@ -132,6 +107,12 @@
132
107
  "dompurify": "^3.2.4",
133
108
  "mermaid": "^10.9.4",
134
109
  "i18next": "^25.5.2",
110
+ "@mantine/core": "8.3.5",
111
+ "@mantine/hooks": "8.3.5",
112
+ "@mantine/form": "8.3.5",
113
+ "@mantine/dropzone": "8.3.5",
114
+ "@mantine/modals": "8.3.5",
115
+ "@mantine/notifications": "8.3.5",
135
116
  "@excalidraw/mermaid-to-excalidraw": {
136
117
  "nanoid": "^5.0.9"
137
118
  },
@@ -142,36 +123,30 @@
142
123
  "nanoid": "^5.0.9"
143
124
  },
144
125
  "ajv": "^8.18.0",
145
- "eslint": {
146
- "ajv": "6.14.0"
147
- },
148
- "@eslint/eslintrc": {
149
- "ajv": "6.14.0"
150
- },
151
126
  "minimatch": "^10.2.1"
152
127
  },
153
128
  "peerDependencies": {
154
129
  "@dnd-kit/modifiers": ">=6",
155
130
  "@emotion/react": ">=11",
156
131
  "@emotion/styled": ">=11",
157
- "@hugeicons/core-free-icons": "^4.0.0",
132
+ "@hugeicons/core-free-icons": ">=1",
158
133
  "@hugeicons/react": ">=1",
134
+ "@mantine/carousel": ">=8.0.0",
135
+ "@mantine/colors-generator": ">=8.0.0",
136
+ "@mantine/core": ">=8.0.0",
137
+ "@mantine/dropzone": ">=8.0.0",
138
+ "@mantine/form": ">=8.0.0",
139
+ "@mantine/hooks": ">=8.0.0",
140
+ "@mantine/modals": ">=8.0.0",
141
+ "@mantine/notifications": ">=8.0.0",
142
+ "@mantine/tiptap": ">=8.0.0",
159
143
  "@tabler/icons-react": ">=3.7.0",
160
- "@mantine/carousel": "8.3.5",
161
- "@mantine/colors-generator": "8.3.5",
162
- "@mantine/core": "8.3.5",
163
- "@mantine/dropzone": "8.3.5",
164
- "@mantine/form": "8.3.5",
165
- "@mantine/hooks": "8.3.5",
166
- "@mantine/modals": "8.3.5",
167
- "@mantine/notifications": "8.3.5",
168
- "@mantine/tiptap": "8.3.5",
169
144
  "@tanstack/react-query": "^5.52.2",
170
145
  "@tanstack/react-virtual": ">=3",
171
146
  "date-fns-tz": ">=3",
172
147
  "i18next": "^25.5.2",
173
148
  "js-confetti": ">=0.12",
174
- "lodash-es": "^4.17.21",
149
+ "lodash-es": ">=4.17.21",
175
150
  "react": "^18.3.1",
176
151
  "react-dom": "^18.3.1",
177
152
  "react-i18next": "^15.7.3",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),a=require("react"),G=require("react-i18next"),Y=require("@lexical/react/LexicalComposerContext"),O=require("@mantine/core"),I=require("lexical"),J=require("@layers-app/shared"),i=require("./layers.TOlqWs5X.js"),A=t=>{const{width:g,height:s,isLoading:c,isError:C,src:h,id:f,altText:m,imageRef:p,maxWidth:N}=t;return u.jsxs("div",{className:"media-wrapper",style:{width:g,height:s,display:"inline-flex",position:"relative"},children:[u.jsx(O.LoadingOverlay,{visible:c,zIndex:1e3,overlayProps:{backgroundOpacity:.5},loaderProps:{size:24,color:"black"}}),u.jsx(Q,{className:null,src:h,altText:m,imageRef:p,width:"inherit",height:"inherit",maxWidth:N||"auto",id:f})]})};function Q({altText:t,className:g,imageRef:s,src:c,width:C,height:h,maxWidth:f,id:m}){const[p,N]=a.useState(!1);return u.jsx("img",{className:`${g||void 0} ${p?"":"loading"}`,src:c,alt:t,ref:s,style:{height:h,maxWidth:f,width:C},onLoad:()=>{c.includes("splash")?setTimeout(()=>{N(!0)},100):N(!0)},draggable:"false","data-id":m})}function X(t){const{disable:g}=a.useContext(i.Context);return g&&i.ImageNode.isPlaceholderSrc(t.src)?null:u.jsx(Z,{...t})}function Z({src:t,altText:g,nodeKey:s,width:c,height:C,maxWidth:h,showCaption:f,caption:m,id:p,create:N,alignment:U,imagePickerTab:B}){var k,q;const T=a.useRef(null),[W,w]=a.useState(!0),[n]=Y.useLexicalComposerContext(),[x,E]=a.useState(!0),[d,j]=a.useState({width:0,height:0}),{start:$}=i.useCancelUpload(),[K,y]=a.useState(0),{fetchUploadMedia:b,fetchDeleteMedia:P,maxFileSize:ee}=a.useContext(i.Context),S=i.mediaMap.has(t)&&(((k=i.mediaMap.get(t))==null?void 0:k.mediaNodeKeys.length)===0||((q=i.mediaMap.get(t))==null?void 0:q.mediaNodeKeys.length)===void 0||t.trim()===""),{t:v}=G.useTranslation(),[te,D]=a.useState(0);a.useEffect(()=>n.registerDecoratorListener(()=>{D(e=>e+1)}),[S]),a.useEffect(()=>{if(!t||t.startsWith("data:image/")||!t.trim()){w(!1);return}const e=new Image;e.src=t,e.onload=()=>w(!1),e.onerror=()=>{w(!1)}},[t,S]);const H=(e,r)=>{n.update(()=>{I.$setSelection(null);const o=I.$getNodeByKey(s);i.$isImageNode(o)&&o.setWidthAndHeight(e,r)})},{historyState:R}=i.useSharedHistoryContext(),{settings:{showNestedEditorTreeView:z}}=i.useSettings();function _(e){return e.endsWith(".svg")||e.includes("image/svg+xml")}function F(e){return new Promise((r,o)=>{if(_(e)){r(0);return}const l=new Image;l.src=e,l.onload=()=>{r(l.width)},l.onerror=()=>{o(new Error("Failed to load image"))}})}a.useEffect(()=>{let e=c,r=C,o=100;(t.includes("unsplash")?t.trim():!S&&t.trim()||t.includes("upload-src-editor"))&&t!=="upload"&&F(t).then(l=>{typeof e=="number"&&e<o&&l<o?(E(!0),j({width:e,height:r})):l<o?(E(!0),j({width:"auto",height:"auto"})):(j({width:l,height:l}),E(!1))}).catch(l=>{console.warn("Ошибка при загрузке изображения:",l.message)})},[t,S]),a.useEffect(()=>{d.width&&d.height&&x&&n.update(()=>{const e=I.$getNodeByKey(s);i.$isImageNode(e)&&e.setWidthAndHeight(d.width,d.height)})},[d.width,d.height,x]);const V=a.useCallback(e=>i.$writeImagePickerTabToNode(n,s,e),[n,s]),L=a.useCallback((e,r)=>{w(!1),n.update(()=>{const o=I.$getNodeByKey(s);i.$isImageNode(o)&&(o.setSrc(e),o.setId(r))})},[n,s]),M=a.useCallback(e=>{w(!0);const r=$();b&&b(e[0],(o,l)=>{L(o,l),y(0)},o=>{o&&J.showErrorNotification({message:v("editor.gallery.errorFile")}),y(0),L("","")},r,o=>{y(o)})},[b,$,v,L]);return a.useEffect(()=>n.registerCommand(i.UPLOAD_IMAGE_COMMAND,e=>t!=="upload"||e.targetNodeKey!==s?!1:(M(e.files),!0),I.COMMAND_PRIORITY_LOW),[n,M,s,t]),!t||t==="upload"?u.jsx(O.Box,{"data-editor-image-picker-drop-root":!0,w:"100%",children:u.jsx(i.ImagePicker,{inline:!0,nodeKey:s,defaultTabValue:B,onWriteTabToNode:V,uploading:!1,onUpload:e=>{!b||!e.length||M(e)},popoverProps:{opened:!0,position:"bottom"},onChange:e=>{n.update(()=>{const r=I.$getNodeByKey(s);i.$isImageNode(r)&&r.setSrc(e)})}})}):x?u.jsx(A,{width:d.width,height:d.height,isLoading:W,isError:!1,isIcon:x,src:t,id:p,editor:n,nodeKey:s,fetchDeleteMedia:P,altText:g,imageRef:T,maxWidth:h,showCaption:f,caption:m,isCollabActive:!1,historyState:R,showNestedEditorTreeView:z,t:v}):u.jsx(i.ResizableContainer,{editor:n,isIcon:x,width:i.parseContainerSize(c),height:i.parseContainerSize(C),initialWidth:d.width||"",initialHeight:d.height||"",onResizeEnd:H,alignment:U,children:u.jsx(A,{width:"inherit",height:"inherit",isLoading:W,isError:!1,isIcon:x,src:t,id:p,editor:n,nodeKey:s,fetchDeleteMedia:P,altText:g,imageRef:T,maxWidth:h,showCaption:f,caption:m,isCollabActive:!1,historyState:R,showNestedEditorTreeView:z,t:v})})}exports.default=X;
@@ -1,296 +0,0 @@
1
- import { jsx as l, jsxs as Z } from "react/jsx-runtime";
2
- import { useContext as j, useRef as K, useState as p, useEffect as C, useCallback as R } from "react";
3
- import { useTranslation as ee } from "react-i18next";
4
- import { useLexicalComposerContext as te } from "@lexical/react/LexicalComposerContext";
5
- import { Box as ie, LoadingOverlay as oe } from "@mantine/core";
6
- import { $getNodeByKey as S, COMMAND_PRIORITY_LOW as ae, $setSelection as re } from "lexical";
7
- import { showErrorNotification as ne } from "@layers-app/shared";
8
- import { C as B, I as se, u as le, m as z, a as de, b as he, $ as W, c as ue, U as ge, d as me, R as fe, p as y } from "./layers.Clo6iX6B.js";
9
- const F = (t) => {
10
- const {
11
- width: d,
12
- height: o,
13
- isLoading: h,
14
- isError: I,
15
- src: u,
16
- id: g,
17
- altText: m,
18
- imageRef: f,
19
- maxWidth: w
20
- } = t;
21
- return /* @__PURE__ */ Z(
22
- "div",
23
- {
24
- className: "media-wrapper",
25
- style: {
26
- width: d,
27
- height: o,
28
- display: "inline-flex",
29
- position: "relative"
30
- },
31
- children: [
32
- /* @__PURE__ */ l(
33
- oe,
34
- {
35
- visible: h,
36
- zIndex: 1e3,
37
- overlayProps: { backgroundOpacity: 0.5 },
38
- loaderProps: { size: 24, color: "black" }
39
- }
40
- ),
41
- /* @__PURE__ */ l(
42
- ce,
43
- {
44
- className: null,
45
- src: u,
46
- altText: m,
47
- imageRef: f,
48
- width: "inherit",
49
- height: "inherit",
50
- maxWidth: w || "auto",
51
- id: g
52
- }
53
- )
54
- ]
55
- }
56
- );
57
- };
58
- function ce({
59
- altText: t,
60
- className: d,
61
- imageRef: o,
62
- src: h,
63
- width: I,
64
- height: u,
65
- maxWidth: g,
66
- id: m
67
- }) {
68
- const [f, w] = p(!1);
69
- return /* @__PURE__ */ l(
70
- "img",
71
- {
72
- className: `${d || void 0} ${f ? "" : "loading"}`,
73
- src: h,
74
- alt: t,
75
- ref: o,
76
- style: {
77
- height: u,
78
- maxWidth: g,
79
- width: I
80
- },
81
- onLoad: () => {
82
- h.includes("splash") ? setTimeout(() => {
83
- w(!0);
84
- }, 100) : w(!0);
85
- },
86
- draggable: "false",
87
- "data-id": m
88
- }
89
- );
90
- }
91
- function Pe(t) {
92
- const { disable: d } = j(B);
93
- return d && se.isPlaceholderSrc(t.src) ? null : /* @__PURE__ */ l(pe, { ...t });
94
- }
95
- function pe({
96
- src: t,
97
- altText: d,
98
- nodeKey: o,
99
- width: h,
100
- height: I,
101
- maxWidth: u,
102
- showCaption: g,
103
- caption: m,
104
- id: f,
105
- create: w,
106
- alignment: V,
107
- imagePickerTab: G
108
- }) {
109
- var H, _;
110
- const A = K(null), [O, b] = p(!0), [a] = te(), [c, L] = p(!0), [s, T] = p({
111
- width: 0,
112
- height: 0
113
- }), { start: U } = le(), [Ie, P] = p(0), { fetchUploadMedia: N, fetchDeleteMedia: $, maxFileSize: we } = j(B), x = z.has(t) && (((H = z.get(t)) == null ? void 0 : H.mediaNodeKeys.length) === 0 || ((_ = z.get(t)) == null ? void 0 : _.mediaNodeKeys.length) === void 0 || t.trim() === ""), { t: v } = ee(), [be, Y] = p(0);
114
- C(() => a.registerDecoratorListener(() => {
115
- Y((e) => e + 1);
116
- }), [x]), C(() => {
117
- if (!t || t.startsWith("data:image/") || !t.trim()) {
118
- b(!1);
119
- return;
120
- }
121
- const e = new Image();
122
- e.src = t, e.onload = () => b(!1), e.onerror = () => {
123
- b(!1);
124
- };
125
- }, [t, x]);
126
- const q = (e, r) => {
127
- a.update(() => {
128
- re(null);
129
- const i = S(o);
130
- W(i) && i.setWidthAndHeight(e, r);
131
- });
132
- }, { historyState: k } = de(), {
133
- settings: { showNestedEditorTreeView: D }
134
- } = he();
135
- function J(e) {
136
- return e.endsWith(".svg") || e.includes("image/svg+xml");
137
- }
138
- function Q(e) {
139
- return new Promise((r, i) => {
140
- if (J(e)) {
141
- r(0);
142
- return;
143
- }
144
- const n = new Image();
145
- n.src = e, n.onload = () => {
146
- r(n.width);
147
- }, n.onerror = () => {
148
- i(new Error("Failed to load image"));
149
- };
150
- });
151
- }
152
- C(() => {
153
- let e = h, r = I, i = 100;
154
- (t.includes("unsplash") ? t.trim() : !x && t.trim() || t.includes("upload-src-editor")) && t !== "upload" && Q(t).then((n) => {
155
- typeof e == "number" && e < i && n < i ? (L(!0), T({
156
- width: e,
157
- height: r
158
- })) : n < i ? (L(!0), T({
159
- width: "auto",
160
- height: "auto"
161
- })) : (T({
162
- width: n,
163
- height: n
164
- }), L(!1));
165
- }).catch((n) => {
166
- console.warn("Ошибка при загрузке изображения:", n.message);
167
- });
168
- }, [t, x]), C(() => {
169
- s.width && s.height && c && a.update(() => {
170
- const e = S(o);
171
- W(e) && e.setWidthAndHeight(s.width, s.height);
172
- });
173
- }, [s.width, s.height, c]);
174
- const X = R(
175
- (e) => ue(a, o, e),
176
- [a, o]
177
- ), E = R(
178
- (e, r) => {
179
- b(!1), a.update(() => {
180
- const i = S(o);
181
- W(i) && (i.setSrc(e), i.setId(r));
182
- });
183
- },
184
- [a, o]
185
- ), M = R(
186
- (e) => {
187
- b(!0);
188
- const r = U();
189
- N && N(
190
- e[0],
191
- (i, n) => {
192
- E(i, n), P(0);
193
- },
194
- (i) => {
195
- i && ne({
196
- message: v("editor.gallery.errorFile")
197
- }), P(0), E("", "");
198
- },
199
- r,
200
- (i) => {
201
- P(i);
202
- }
203
- );
204
- },
205
- [N, U, v, E]
206
- );
207
- return C(() => a.registerCommand(
208
- ge,
209
- (e) => t !== "upload" || e.targetNodeKey !== o ? !1 : (M(e.files), !0),
210
- ae
211
- ), [a, M, o, t]), !t || t === "upload" ? /* @__PURE__ */ l(ie, { "data-editor-image-picker-drop-root": !0, w: "100%", children: /* @__PURE__ */ l(
212
- me,
213
- {
214
- inline: !0,
215
- nodeKey: o,
216
- defaultTabValue: G,
217
- onWriteTabToNode: X,
218
- uploading: !1,
219
- onUpload: (e) => {
220
- !N || !e.length || M(e);
221
- },
222
- popoverProps: {
223
- opened: !0,
224
- position: "bottom"
225
- },
226
- onChange: (e) => {
227
- a.update(() => {
228
- const r = S(o);
229
- W(r) && r.setSrc(e);
230
- });
231
- }
232
- }
233
- ) }) : c ? /* @__PURE__ */ l(
234
- F,
235
- {
236
- width: s.width,
237
- height: s.height,
238
- isLoading: O,
239
- isError: !1,
240
- isIcon: c,
241
- src: t,
242
- id: f,
243
- editor: a,
244
- nodeKey: o,
245
- fetchDeleteMedia: $,
246
- altText: d,
247
- imageRef: A,
248
- maxWidth: u,
249
- showCaption: g,
250
- caption: m,
251
- isCollabActive: !1,
252
- historyState: k,
253
- showNestedEditorTreeView: D,
254
- t: v
255
- }
256
- ) : /* @__PURE__ */ l(
257
- fe,
258
- {
259
- editor: a,
260
- isIcon: c,
261
- width: y(h),
262
- height: y(I),
263
- initialWidth: s.width || "",
264
- initialHeight: s.height || "",
265
- onResizeEnd: q,
266
- alignment: V,
267
- children: /* @__PURE__ */ l(
268
- F,
269
- {
270
- width: "inherit",
271
- height: "inherit",
272
- isLoading: O,
273
- isError: !1,
274
- isIcon: c,
275
- src: t,
276
- id: f,
277
- editor: a,
278
- nodeKey: o,
279
- fetchDeleteMedia: $,
280
- altText: d,
281
- imageRef: A,
282
- maxWidth: u,
283
- showCaption: g,
284
- caption: m,
285
- isCollabActive: !1,
286
- historyState: k,
287
- showNestedEditorTreeView: D,
288
- t: v
289
- }
290
- )
291
- }
292
- );
293
- }
294
- export {
295
- Pe as default
296
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./layers.CaHY4GRf.js");require("./layers.0CM_qJjC.js");exports.Commands=e.CB;exports.subsetToBase64=e.QB;exports.subsetToBinary=e.NQ;exports.toBase64=e.AI;
@@ -1,8 +0,0 @@
1
- import { C as e, Q as t, N as m, A as r } from "./layers.DRkExZyY.js";
2
- import "./layers.BrrJNgYQ.js";
3
- export {
4
- e as Commands,
5
- t as subsetToBase64,
6
- m as subsetToBinary,
7
- r as toBase64
8
- };
@@ -1,7 +0,0 @@
1
- import { q as e, G as t } from "./layers.BrrJNgYQ.js";
2
- import { X as r } from "./layers.BrrJNgYQ.js";
3
- export {
4
- e as decodePngMetadata,
5
- t as encodePngMetadata,
6
- r as getTEXtChunk
7
- };
@@ -1 +0,0 @@
1
- "use strict";const n=require("./layers.BDvXHQ8J.js"),s=(e,r)=>n.Utils.lang.round(n.Color.parse(e)[r]);exports.channel=s;