@layers-app/editor 0.7.65 → 0.7.66

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.CcXmrDE1.js → layers.3QTo5o15.js} +1 -1
  5. package/dist/{layers.Do8i3xUE.js → layers.3YEE22Mk.js} +1 -1
  6. package/dist/{layers.Bzz2rASW.js → layers.4GNijh6t.js} +3 -3
  7. package/dist/{layers.Xr01ChcN.js → layers.7GRw0JV8.js} +1 -1
  8. package/dist/{layers.CAzsMIrH.js → layers.8eglOpZg.js} +4 -4
  9. package/dist/{layers.BwADj-O6.js → layers.9YrcXLCx.js} +1 -1
  10. package/dist/{layers.B2317_ZM.js → layers.B-gj-Dc8.js} +1 -1
  11. package/dist/{layers.D_k3uig8.js → layers.B0mQfM_7.js} +4 -4
  12. package/dist/{layers.BjdyHDbt.js → layers.B0uGvpXI.js} +1 -1
  13. package/dist/{layers.D4wOu0Zw.js → layers.B2QpNG6M.js} +1 -1
  14. package/dist/{layers.BSQyuUJG.js → layers.B4unb-lk.js} +1 -1
  15. package/dist/{layers.BSrBUqjU.js → layers.B5fYtTZT.js} +1 -1
  16. package/dist/{layers.CigjfBfH.js → layers.B7xQ9Bfy.js} +1 -1
  17. package/dist/{layers.DrVubpIj.js → layers.BA-11n7e.js} +1 -1
  18. package/dist/layers.BBF8yJ7K.js +1 -0
  19. package/dist/{layers.Bowdlm-5.js → layers.BE2v4SI1.js} +1 -1
  20. package/dist/{layers.CJGtUfLy.js → layers.BEtni9Q9.js} +3 -3
  21. package/dist/{layers.Cjy_Kuuf.js → layers.BFE-alwC.js} +1 -1
  22. package/dist/{layers.C5bmbQjc.js → layers.BFpmz0jf.js} +1 -1
  23. package/dist/{layers.Bep_3_5p.js → layers.BGWnNvfv.js} +1 -1
  24. package/dist/{layers.D9h-IxjW.js → layers.BGqpw-G8.js} +2 -2
  25. package/dist/{layers.6ktpMh5U.js → layers.BH_ae3SK.js} +1 -1
  26. package/dist/{layers.BG5AmoNd.js → layers.BJZMWw1r.js} +4 -4
  27. package/dist/{layers.B_MPT8Un.js → layers.BKLGHV1G.js} +1 -1
  28. package/dist/{layers.BT0tF7XN.js → layers.BP0Yk3nT.js} +1 -1
  29. package/dist/{layers.D9WX0rBf.js → layers.BQ2GdNHj.js} +1 -1
  30. package/dist/{layers.Bnbf9zn-.js → layers.BS5c-XRP.js} +1 -1
  31. package/dist/{layers.DJp9mbDw.js → layers.BUBqrcAN.js} +1 -1
  32. package/dist/{layers.C2XY7ddn.js → layers.BWl36pbb.js} +2 -2
  33. package/dist/{layers.BSurQ0go.js → layers.BXlVYam7.js} +1 -1
  34. package/dist/{layers.ty3px4y6.js → layers.BXtEOnC6.js} +1 -1
  35. package/dist/{layers.BuglBX77.js → layers.BYH3Kroe.js} +1 -1
  36. package/dist/{layers.C9bfFS-m.js → layers.BZ7MbQ5s.js} +1 -1
  37. package/dist/{layers.CMF0baBb.js → layers.BZrat4JT.js} +2 -2
  38. package/dist/{layers.CGDUhM_c.js → layers.B_4A9kFO.js} +1 -1
  39. package/dist/{layers.C7lOrmvp.js → layers.B_VfNyr8.js} +1 -1
  40. package/dist/{layers.BN1XFcxU.js → layers.B_rGlD5Q.js} +1 -1
  41. package/dist/{layers.CsQInoZf.js → layers.BaldGe_p.js} +1 -1
  42. package/dist/{layers.BgXhskt1.js → layers.BbMQXyBa.js} +1 -1
  43. package/dist/{layers.5V_J5q1f.js → layers.BcDhm33-.js} +1 -1
  44. package/dist/{layers.C6RU-G6e.js → layers.BcqOvuux.js} +1 -1
  45. package/dist/{layers.CVjkDD55.js → layers.BemQxE4r.js} +1 -1
  46. package/dist/layers.BexCcE7c.js +213 -0
  47. package/dist/{layers.BdWVgWiZ.js → layers.Bg4fDHxu.js} +1 -1
  48. package/dist/layers.BhbuA69c.js +1 -0
  49. package/dist/{layers.CwVen601.js → layers.BieQPNJX.js} +6 -6
  50. package/dist/{layers.B9j_N16l.js → layers.Bj3iwHlt.js} +4 -4
  51. package/dist/{layers.DylhMZsh.js → layers.BjdpFdaF.js} +4 -4
  52. package/dist/{layers.lmdY5L0V.js → layers.BlUlBkhp.js} +1 -1
  53. package/dist/{layers.BI1gUI-r.js → layers.BmLJ78sm.js} +1 -1
  54. package/dist/{layers.fb6SRbvV.js → layers.BnkHC_Oc.js} +1 -1
  55. package/dist/{layers.5rKT6j8r.js → layers.BqE1cEL_.js} +1 -1
  56. package/dist/{layers.DwAVuknl.js → layers.Bvz5P3lQ.js} +1 -1
  57. package/dist/{layers.B4aO-g4C.js → layers.Bwsv13Sa.js} +1 -1
  58. package/dist/{layers.Dim2CqHl.js → layers.BxX8NFri.js} +1 -1
  59. package/dist/{layers.DBrAWZUm.js → layers.By1AAp3-.js} +1 -1
  60. package/dist/{layers.0CM_qJjC.js → layers.ByAfdCHR.js} +7 -7
  61. package/dist/{layers.CdtHI9me.js → layers.ByWtFcWr.js} +1 -1
  62. package/dist/{layers.BBM4-YpW.js → layers.Bz7NH3Ja.js} +1 -1
  63. package/dist/{layers.DMgX-UEL.js → layers.BzXmprv5.js} +1 -1
  64. package/dist/{layers.BZFCh8XT.js → layers.C0ZmXPkk.js} +1 -1
  65. package/dist/{layers.De1CxG12.js → layers.C1ETK2KG.js} +1 -1
  66. package/dist/{layers.O01HEoW5.js → layers.C1PDlE34.js} +1 -1
  67. package/dist/{layers.CMudsIHl.js → layers.C2GnCJcv.js} +1 -1
  68. package/dist/{layers.CR3lwFpT.js → layers.C33jsIpE.js} +1 -1
  69. package/dist/{layers.eN_P1yYw.js → layers.C3903-fE.js} +1 -1
  70. package/dist/{layers.DeM2Gci8.js → layers.C42FV38m.js} +1 -1
  71. package/dist/{layers.CvDmCLh7.js → layers.C61WP72S.js} +3 -3
  72. package/dist/{layers.DDwq9y5k.js → layers.C6Tz5MCO.js} +1 -1
  73. package/dist/{layers.B67b-gaQ.js → layers.C7E8L6Xs.js} +4 -4
  74. package/dist/{layers.moYyxH_O.js → layers.C7WBszjx.js} +1 -1
  75. package/dist/{layers.A7Bs5T4F.js → layers.CBLL2LbE.js} +4 -4
  76. package/dist/{layers.CwTNKqe6.js → layers.CBMAZyP_.js} +1 -1
  77. package/dist/{layers.DHsqnWUs.js → layers.CCXdskK_.js} +1 -1
  78. package/dist/{layers.DcqLYT3y.js → layers.CDQemUkt.js} +1 -1
  79. package/dist/{layers.1EJbIfPW.js → layers.CGKEyQWx.js} +1 -1
  80. package/dist/{layers.DiKILn3E.js → layers.CGX9i522.js} +1 -1
  81. package/dist/{layers.CRn9cN6j.js → layers.CGkRi77t.js} +1 -1
  82. package/dist/{layers.DeLlmvdb.js → layers.CHD1zSYI.js} +1 -1
  83. package/dist/layers.CImef2Q4.js +1 -0
  84. package/dist/{layers.DYWAXnla.js → layers.CJO6gwir.js} +1 -1
  85. package/dist/{layers.DnilL9o_.js → layers.CKcjoLju.js} +1 -1
  86. package/dist/{layers.CVA7frBw.js → layers.CKgU8T7B.js} +1 -1
  87. package/dist/{layers.X81Myf6N.js → layers.CKmdrueW.js} +1 -1
  88. package/dist/{layers.YtIPDc_z.js → layers.CKy8MSLQ.js} +1 -1
  89. package/dist/{layers.BzR706O8.js → layers.CLU_XAad.js} +2 -2
  90. package/dist/{layers.4-6uPiZq.js → layers.CLiiWpJP.js} +1 -1
  91. package/dist/{layers.D3rCkuw-.js → layers.CLk3-xN-.js} +1 -1
  92. package/dist/{layers.Bi0Y8wqJ.js → layers.COBbOMbH.js} +1 -1
  93. package/dist/{layers.CDbrKIso.js → layers.COujLsln.js} +1 -1
  94. package/dist/{layers.BJHBikgX.js → layers.CPFZSGGh.js} +1 -1
  95. package/dist/{layers.CpFIW0sT.js → layers.CPrw4tSM.js} +4 -4
  96. package/dist/{layers.BY9IHzZX.js → layers.CSIz9FYs.js} +3 -3
  97. package/dist/{layers.zRX_KzR5.js → layers.CTmULLmg.js} +1 -1
  98. package/dist/{layers.zXAhyYfC.js → layers.CWVhbDR5.js} +2 -2
  99. package/dist/{layers.D29U8vj5.js → layers.Ca8Ub3pv.js} +1 -1
  100. package/dist/{layers.vxeiC96N.js → layers.CaCwyFce.js} +1 -1
  101. package/dist/{layers.ClY16p5b.js → layers.Cb18TKKb.js} +1 -1
  102. package/dist/layers.Cb7NfWSf.js +1 -0
  103. package/dist/{layers.D-XTNlrE.js → layers.Cbg5CZgX.js} +1 -1
  104. package/dist/{layers.md58J52I.js → layers.Cc7OCiEY.js} +1 -1
  105. package/dist/{layers.CpRTXkZx.js → layers.CcDpPRa3.js} +1 -1
  106. package/dist/{layers.CzFutfh-.js → layers.CcElfU4_.js} +1 -1
  107. package/dist/{layers.BTTkcUie.js → layers.ChbuRCNy.js} +1 -1
  108. package/dist/{layers.D4zv_sXo.js → layers.Ckv7p0Cl.js} +1 -1
  109. package/dist/{layers.CLWAiws9.js → layers.Cl_YVr0L.js} +1 -1
  110. package/dist/{layers.BbQV7ppZ.js → layers.CmoYcxXL.js} +3 -3
  111. package/dist/{layers.CoL12aBR.js → layers.CoGKSwpz.js} +3 -3
  112. package/dist/{layers.C3Ebak9C.js → layers.CrQV5evf.js} +1 -1
  113. package/dist/{layers.rPk2h-z7.js → layers.Cs-Qm16B.js} +1 -1
  114. package/dist/{layers.2w6v7FYB.js → layers.CutJsscp.js} +1 -1
  115. package/dist/layers.CvcZAwPC.js +1 -0
  116. package/dist/{layers.gyGGlR3I.js → layers.CxndOEZr.js} +1 -1
  117. package/dist/{layers.DVkmtTGY.js → layers.CzvGodqc.js} +1 -1
  118. package/dist/{layers.B0o1mJp3.js → layers.D-7CRcBZ.js} +1 -1
  119. package/dist/{layers.BuA9cC-B.js → layers.D05CXxB9.js} +1 -1
  120. package/dist/{layers.CUYP2m2D.js → layers.D0Cjrep0.js} +1 -1
  121. package/dist/{layers.B23b_kWf.js → layers.D0G30ty5.js} +5 -5
  122. package/dist/{layers.DRkExZyY.js → layers.D5P0WNvc.js} +1 -1
  123. package/dist/{layers.DqswN752.js → layers.D6TmtPfA.js} +1 -1
  124. package/dist/{layers.ibzB_7uL.js → layers.D73NqqYr.js} +1 -1
  125. package/dist/layers.D8f0gMfA.js +1 -0
  126. package/dist/{layers.BDJPHJFD.js → layers.DB-bRmCR.js} +1 -1
  127. package/dist/{layers.LMBD5WP6.js → layers.DCkAMq7J.js} +1 -1
  128. package/dist/{layers.B1F3xcln.js → layers.DCtyhmyY.js} +1 -1
  129. package/dist/{layers.BpGsmjO0.js → layers.DDO74hkK.js} +1 -1
  130. package/dist/layers.DDTcQc3-.js +8 -0
  131. package/dist/{layers.C3nJL_mk.js → layers.DEqYQU2G.js} +1 -1
  132. package/dist/{layers.DTrT0gZ7.js → layers.DFWMI5T9.js} +1 -1
  133. package/dist/{layers.DPieZXnh.js → layers.DFoutOw5.js} +1 -1
  134. package/dist/{layers.DAP7KkqI.js → layers.DGhyc9fD.js} +1 -1
  135. package/dist/{layers.IQ7hEiwp.js → layers.DGkNq70x.js} +1 -1
  136. package/dist/{layers.Cb2zfOK5.js → layers.DIBD80Su.js} +1 -1
  137. package/dist/{layers.3B0DBr4y.js → layers.DJCArebj.js} +1 -1
  138. package/dist/{layers.DtkfGQHD.js → layers.DJzRyUL9.js} +1 -1
  139. package/dist/{layers.BUyK6U6W.js → layers.DLU6YNaQ.js} +1 -1
  140. package/dist/{layers.Dy6q9eRK.js → layers.DNmH6yCl.js} +1 -1
  141. package/dist/{layers.DXkz47LQ.js → layers.DPRegaV-.js} +3 -3
  142. package/dist/{layers.Y-SSO8sM.js → layers.DPSZnsnE.js} +1 -1
  143. package/dist/{layers.DAf1DFSL.js → layers.DSAU81oH.js} +24 -24
  144. package/dist/{layers.DfByh4md.js → layers.DT1iTzdJ.js} +1 -1
  145. package/dist/{layers.DVgebCja.js → layers.DTlOqZvL.js} +1 -1
  146. package/dist/{layers.BrrJNgYQ.js → layers.DUDJ9Y4L.js} +8 -8
  147. package/dist/layers.DUIEminS.js +6 -0
  148. package/dist/{layers.CaHY4GRf.js → layers.DUxRk8L1.js} +1 -1
  149. package/dist/{layers.CcIfmKuH.js → layers.DVcwS5K-.js} +1 -1
  150. package/dist/{layers.Dbwb0-D6.js → layers.DVekwusD.js} +1 -1
  151. package/dist/layers.DWhv7F59.js +271 -0
  152. package/dist/{layers.Dhnu7hc0.js → layers.DYXwUH9e.js} +1 -1
  153. package/dist/{layers.Du__0TwC.js → layers.DYZDcvsd.js} +1 -1
  154. package/dist/{layers.ieGhX84c.js → layers.DYtT_2W_.js} +1 -1
  155. package/dist/{layers.eGNOo-ny.js → layers.DaekqInu.js} +1 -1
  156. package/dist/{layers.O1cmXr_W.js → layers.DayLOzeL.js} +1 -1
  157. package/dist/{layers.CnCus7Rr.js → layers.DdDhojq5.js} +3 -3
  158. package/dist/{layers.D_Ylh1Aw.js → layers.DdfcOJU0.js} +1 -1
  159. package/dist/{layers.Cw_ZI-Hq.js → layers.DdmoW3mc.js} +1 -1
  160. package/dist/layers.Dh_PSzU8.js +295 -0
  161. package/dist/layers.DituWlSm.js +1 -0
  162. package/dist/{layers.D66C6bLX.js → layers.Dkw-9t5C.js} +1 -1
  163. package/dist/{layers.9-KEaHkX.js → layers.Dl0FDpvW.js} +1 -1
  164. package/dist/layers.Dn1BTkKc.js +296 -0
  165. package/dist/{layers.D0RlfUJk.js → layers.DnQ9UMTA.js} +1 -1
  166. package/dist/{layers.7lP4HfoY.js → layers.Do3m_wfd.js} +1 -1
  167. package/dist/{layers.M-XOP0a5.js → layers.DpTbRUsM.js} +1 -1
  168. package/dist/layers.DrT4hDgx.js +129 -0
  169. package/dist/{layers.B3U2x_im.js → layers.DvilG5XZ.js} +1 -1
  170. package/dist/{layers.By0alzDr.js → layers.Dvt10_k0.js} +1 -1
  171. package/dist/layers.Dwr0t7IY.js +76 -0
  172. package/dist/{layers.Dt67PG6_.js → layers.DwrvpNkZ.js} +1 -1
  173. package/dist/{layers.u1CXiRKf.js → layers.DxLW-X_k.js} +1 -1
  174. package/dist/{layers.BCjvXR-y.js → layers.Dz4Dlb5F.js} +1 -1
  175. package/dist/{layers.BdLga8Nv.js → layers.G20tZlua.js} +1 -1
  176. package/dist/{layers.D6VP7MGr.js → layers.GQitM6w0.js} +1 -1
  177. package/dist/{layers.nAFrm5dJ.js → layers.GSikSHLI.js} +5 -5
  178. package/dist/{layers.Cj71cT8B.js → layers.LUsmvTUU.js} +1 -1
  179. package/dist/{layers.36zLwGBX.js → layers.NZbUzxh7.js} +1 -1
  180. package/dist/{layers.DJ0Wt_yu.js → layers.NZomDfcb.js} +4 -4
  181. package/dist/{layers.DXZgdRaQ.js → layers.O5z0GxDA.js} +1 -1
  182. package/dist/{layers.DiBi3-Wq.js → layers.PPRoUsAA.js} +1 -1
  183. package/dist/{layers.BUoM2Djz.js → layers.SLhPj_vV.js} +1 -1
  184. package/dist/{layers.BovSaTul.js → layers.ULeHg9zF.js} +1 -1
  185. package/dist/{layers.BM4acNbd.js → layers.Uo41Zp6F.js} +1 -1
  186. package/dist/{layers.zw6to3dF.js → layers.VO-7tMgV.js} +1 -1
  187. package/dist/{layers.C0waNfPB.js → layers.XL1rVltq.js} +1 -1
  188. package/dist/{layers.BvVxoAL-.js → layers.ZG9uhmWq.js} +1 -1
  189. package/dist/{layers.BDvXHQ8J.js → layers._o7boybA.js} +3 -3
  190. package/dist/{layers.BpfywZry.js → layers.bGVTEvFL.js} +1 -1
  191. package/dist/{layers.C4buKlCY.js → layers.bULRDowV.js} +4 -4
  192. package/dist/{layers.B4d8F6-j.js → layers.cHJyX5TP.js} +1 -1
  193. package/dist/{layers.BZd8VMlu.js → layers.cRpc9s53.js} +1 -1
  194. package/dist/{layers.BoMp3OS4.js → layers.eCTjZNfq.js} +1 -1
  195. package/dist/{layers.Ce-0cdvb.js → layers.eic5RVID.js} +1 -1
  196. package/dist/{layers.CKclLE5M.js → layers.fjqhJnO5.js} +3 -3
  197. package/dist/{layers.16EOCl2I.js → layers.hL7X5WQk.js} +1 -1
  198. package/dist/{layers.Clo6iX6B.js → layers.jTxzmm6D.js} +17675 -20445
  199. package/dist/{layers.BO6qsinL.js → layers.lkZWWku3.js} +1 -1
  200. package/dist/{layers.B98Li_m6.js → layers.ocXfhHqM.js} +1 -1
  201. package/dist/{layers.pKZp612W.js → layers.ri6EcUvz.js} +1 -1
  202. package/dist/{layers.DgGfSvTo.js → layers.rpjmq36c.js} +1 -1
  203. package/dist/{layers.mRLmPtDn.js → layers.svV_8pUP.js} +1 -1
  204. package/dist/{layers.De7rbtGA.js → layers.tMU6Ekb2.js} +3 -3
  205. package/dist/{layers.BYyKqky6.js → layers.vGcIPp04.js} +1 -1
  206. package/dist/{layers.Dl4T5_W-.js → layers.vJ-PLTQm.js} +1 -1
  207. package/dist/{layers.BkRg-ZTB.js → layers.x6Y0uO3K.js} +1 -1
  208. package/dist/{layers.CRtDdBVn.js → layers.ySNGTcm_.js} +1 -1
  209. package/dist/layers.yfFwHxeD.js +7 -0
  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",
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;