@layers-app/editor 0.6.28 → 0.6.30
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.
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/{layers.DJk7gMS1.js → layers.-Bi59Aa1.js} +24 -24
- package/dist/{layers.CJ6mkeJH.js → layers.0p5uuBPF.js} +4 -4
- package/dist/{layers.Dvc1djNr.js → layers.1qQVBpYW.js} +2 -2
- package/dist/{layers.YYJjU_X8.js → layers.2SLVTQmq.js} +1 -1
- package/dist/{layers.Br5wZWf7.js → layers.4gbCdoJ3.js} +1 -1
- package/dist/{layers.C3mZTXWh.js → layers.5-_S-DtW.js} +1 -1
- package/dist/{layers.CJqGtvuz.js → layers.5vdRt3_4.js} +1 -1
- package/dist/{layers.-jtNedCp.js → layers.7i1byABF.js} +2 -2
- package/dist/{layers.bcMOB069.js → layers.991iLM9I.js} +1 -1
- package/dist/{layers.COEYnSXY.js → layers.9bPL8DU9.js} +3 -3
- package/dist/{layers.DNXuOiTp.js → layers.B-tgtSRx.js} +1 -1
- package/dist/{layers.C92ozPvE.js → layers.B1Aqc3Y_.js} +1 -1
- package/dist/{layers.Dwan5mL9.js → layers.B2WUqBk_.js} +3 -3
- package/dist/{layers.CiqT1QtG.js → layers.B2s6exLq.js} +1 -1
- package/dist/{layers.Do_i3Cn_.js → layers.B5hCT3uh.js} +1 -1
- package/dist/{layers.CEavDQcF.js → layers.B5oLZ3sz.js} +4 -4
- package/dist/{layers.DdO6KyoA.js → layers.B70WahHs.js} +3 -3
- package/dist/{layers.U-vWFcU_.js → layers.BDAzgj4q.js} +1 -1
- package/dist/{layers.zlGORcSL.js → layers.BF2CD9Qy.js} +1 -1
- package/dist/{layers.K9pD6FrY.js → layers.BFpRT8KK.js} +1 -1
- package/dist/{layers.CLjHmCoY.js → layers.BGcq04JM.js} +1 -1
- package/dist/{layers.Oox8h4-o.js → layers.BHCXrTM5.js} +1 -1
- package/dist/{layers.BYyp95b1.js → layers.BHcEhl-s.js} +1 -1
- package/dist/{layers.BQMf7yEz.js → layers.BHm6OAcr.js} +1 -1
- package/dist/{layers.2ey9Sld4.js → layers.BOdQBt0D.js} +8 -8
- package/dist/{layers.CYARtdFn.js → layers.BPQ3Rnsc.js} +1 -1
- package/dist/{layers.CZLQc6Ue.js → layers.BPWztNW3.js} +1 -1
- package/dist/{layers.DlNop6f-.js → layers.BRLE0Ao_.js} +1 -1
- package/dist/{layers.Bb7VR8QI.js → layers.BRnvwRYi.js} +1 -1
- package/dist/{layers.FQERFN1o.js → layers.BRsdmZn1.js} +1 -1
- package/dist/{layers.DJDPQYFf.js → layers.BRzsABdj.js} +1 -1
- package/dist/{layers.0wRnLr7G.js → layers.BSCeO71w.js} +1 -1
- package/dist/{layers.l5_7Ssej.js → layers.BSLKJPVB.js} +1 -1
- package/dist/{layers.l9iXhfqx.js → layers.BTCBpYRd.js} +1 -1
- package/dist/{layers.3gVEAzPz.js → layers.BVGuxfHO.js} +1 -1
- package/dist/{layers.C9cQox_9.js → layers.BWSMplkQ.js} +1 -1
- package/dist/{layers.BStIICEI.js → layers.BXS4GbpH.js} +1 -1
- package/dist/{layers.D7wgrJM9.js → layers.BYkYjYHc.js} +1 -1
- package/dist/{layers.DFKslF8R.js → layers.BYpRyTuL.js} +1 -1
- package/dist/{layers.DI2lYNkl.js → layers.B_iVm-hN.js} +1 -1
- package/dist/{layers.DVMlX0Kt.js → layers.B_k4DU3-.js} +4 -4
- package/dist/{layers.Cxggfdwa.js → layers.Bakw__Tk.js} +1 -1
- package/dist/{layers.Bo3AaX4U.js → layers.BcXhnGN8.js} +1 -1
- package/dist/{layers.XOS9hxOL.js → layers.BdIwG4II.js} +4 -4
- package/dist/{layers.Dc9fFXha.js → layers.BeH6dKYB.js} +1 -1
- package/dist/{layers.Bl9r09nG.js → layers.Bi12kRBG.js} +1 -1
- package/dist/{layers.AwVoPp1W.js → layers.BjRYZheq.js} +1 -1
- package/dist/{layers.Bva0NDK8.js → layers.Bk53WnjY.js} +1 -1
- package/dist/{layers.CMhOEGhi.js → layers.BleIddgC.js} +1 -1
- package/dist/{layers.CugrbPu7.js → layers.Bm8G1SUI.js} +1 -1
- package/dist/{layers.BUFAPe39.js → layers.BmKimLtG.js} +1 -1
- package/dist/{layers.CKl7yAce.js → layers.BnWtFuyf.js} +1 -1
- package/dist/{layers.BmaHTaQf.js → layers.Bnh9TQ_F.js} +1 -1
- package/dist/{layers.DoteBFUP.js → layers.Bp7fl_H6.js} +1 -1
- package/dist/{layers.mBDqU1HS.js → layers.BuELnDr9.js} +1 -1
- package/dist/{layers.B6nu4kjQ.js → layers.Bui5SimU.js} +1 -1
- package/dist/{layers.k2VPLZGy.js → layers.Bv0ZOdlM.js} +1 -1
- package/dist/{layers.a_jSpesH.js → layers.Bv6SoaSO.js} +1 -1
- package/dist/{layers.Xv51bfja.js → layers.Bv8-7-hA.js} +1 -1
- package/dist/{layers.CEOtKhHl.js → layers.Bvm7kPoT.js} +3 -3
- package/dist/{layers.CRjLzyHc.js → layers.BxJjVlHj.js} +1 -1
- package/dist/{layers.lEjuJ9UC.js → layers.BzemjWo_.js} +1 -1
- package/dist/{layers.Bl4jJ5bb.js → layers.BzpJkSCy.js} +1 -1
- package/dist/{layers.CaOfenOi.js → layers.C-eHKLkZ.js} +1 -1
- package/dist/{layers.DDI7y-td.js → layers.C022ohYU.js} +1 -1
- package/dist/{layers.B-IPKb2y.js → layers.C0ippq2C.js} +1 -1
- package/dist/{layers.DxXJ4nom.js → layers.C15qzVb6.js} +1 -1
- package/dist/{layers.DcT3fBJT.js → layers.C18E-mJu.js} +1 -1
- package/dist/{layers.CYqsqn5U.js → layers.C1Np7ODI.js} +2 -2
- package/dist/{layers.Dcr05lJY.js → layers.C5AANKiL.js} +6 -6
- package/dist/{layers.BGfFLGV2.js → layers.C6ZNbQaW.js} +4 -4
- package/dist/{layers.DYX98vKx.js → layers.C8l23ndg.js} +1 -1
- package/dist/{layers.OY6uVn32.js → layers.C91mhcZz.js} +1 -1
- package/dist/{layers.rUWt1E3m.js → layers.CD4NSEkn.js} +1 -1
- package/dist/{layers.C7fTzga4.js → layers.CDvEr4oq.js} +1 -1
- package/dist/{layers.cBv3CIjI.js → layers.CELZvg7d.js} +1 -1
- package/dist/{layers.FlUiUjfq.js → layers.CF-3iPUn.js} +1 -1
- package/dist/{layers.Dya7HJ_E.js → layers.CFEiIu4L.js} +1 -1
- package/dist/{layers.sLNBYzK0.js → layers.CFzy4JVO.js} +1 -1
- package/dist/layers.CHQ0OaXS.js +1 -0
- package/dist/{layers.DvGbIubh.js → layers.CHWY0-gx.js} +1 -1
- package/dist/{layers.dOx9zqeK.js → layers.CHpiL3H1.js} +1 -1
- package/dist/{layers.BSDonpvv.js → layers.CI9lDLfq.js} +1 -1
- package/dist/{layers.k93oXbgw.js → layers.CJiEzqKL.js} +1 -1
- package/dist/{layers.CkV65f6u.js → layers.CSQhxz32.js} +1 -1
- package/dist/layers.CTH3rPUI.js +8 -0
- package/dist/{layers.B352pHVk.js → layers.CTXkF03M.js} +1 -1
- package/dist/{layers.Ciyt__zq.js → layers.CTaih8tZ.js} +1 -1
- package/dist/{layers.BOCR_d16.js → layers.CU9pykrK.js} +1 -1
- package/dist/{layers.o5qZfetY.js → layers.CVZHTPIU.js} +2 -2
- package/dist/{layers.BX3Ee51k.js → layers.CVbv_Frf.js} +1 -1
- package/dist/{layers.Dz9mZw5w.js → layers.CWngSb9z.js} +4 -4
- package/dist/{layers.QkobADez.js → layers.CXUTme83.js} +1 -1
- package/dist/{layers.DViGPQY2.js → layers.CYWSt0lD.js} +1 -1
- package/dist/{layers.BdScQ5bE.js → layers.CYzeUD1I.js} +5 -5
- package/dist/{layers.DeQ3L0UN.js → layers.CZF8XtsO.js} +1 -1
- package/dist/{layers.DdF7iUvv.js → layers.C_ecnxMx.js} +1 -1
- package/dist/layers.CaAhMzwM.js +295 -0
- package/dist/{layers.DUpSbil0.js → layers.CbWAB4h5.js} +1 -1
- package/dist/{layers.BjXzTyqU.js → layers.CczY5GFP.js} +1 -1
- package/dist/{layers.CsgOx9Nr.js → layers.CdVDtTKI.js} +1 -1
- package/dist/{layers.BvtGhzDe.js → layers.CeK4rBrx.js} +1 -1
- package/dist/{layers.BSIUK8Jl.js → layers.CelRMKof.js} +1 -1
- package/dist/{layers.DJgognrv.js → layers.CfjeaqxD.js} +1 -1
- package/dist/{layers.Cook8YnO.js → layers.CggnPivo.js} +1 -1
- package/dist/{layers.CRNUUtBS.js → layers.Ch7K_OSv.js} +1 -1
- package/dist/{layers.UtJanFt5.js → layers.ChBoQvD-.js} +1 -1
- package/dist/{layers.vw9spgeN.js → layers.CiBtPFyP.js} +1 -1
- package/dist/{layers.DrPxMVAc.js → layers.Cj1C_CyF.js} +1 -1
- package/dist/{layers.B-LT3rC7.js → layers.Ckh-roID.js} +1 -1
- package/dist/{layers.BYZV2SWK.js → layers.CkqWFXaC.js} +3 -3
- package/dist/{layers.WGAUn9PE.js → layers.Cl6UvKla.js} +1 -1
- package/dist/{layers.CNMO4RGp.js → layers.ClPVJ2zg.js} +1 -1
- package/dist/{layers.C9Vat7s8.js → layers.CmP59vRA.js} +1 -1
- package/dist/{layers.DkuIN868.js → layers.CnZ1CGqM.js} +3 -3
- package/dist/{layers.tYnReCe2.js → layers.Cp-QrrDN.js} +5 -5
- package/dist/{layers.Comr3rvI.js → layers.Cp6g9fHb.js} +1 -1
- package/dist/{layers.BSWWmDi6.js → layers.CqiY5MRj.js} +1 -1
- package/dist/{layers.Bi8eMB0J.js → layers.CsXTZ2dt.js} +1 -1
- package/dist/{layers.CIjmK0vW.js → layers.CwhvRD6L.js} +1 -1
- package/dist/{layers.CpDLa90K.js → layers.CwyKeHeu.js} +1 -1
- package/dist/{layers.5BFZEWuq.js → layers.CxP2MkE0.js} +1 -1
- package/dist/{layers.ChrbKvos.js → layers.D0Pm_YlG.js} +1 -1
- package/dist/{layers.9ETP0G86.js → layers.D0YVJoQd.js} +1 -1
- package/dist/{layers.DeN1Elvp.js → layers.D3V-AlGE.js} +1 -1
- package/dist/{layers.CmAYwXXi.js → layers.D3xYlMtS.js} +2 -2
- package/dist/{layers.Bmdd0VmM.js → layers.DA7ln5ed.js} +1 -1
- package/dist/{layers.BXNe5blb.js → layers.DAxqqThA.js} +1 -1
- package/dist/{layers.DHlxQcUf.js → layers.DBjJU8a3.js} +1 -1
- package/dist/layers.DByV_tpU.js +1 -0
- package/dist/{layers.CG27tjjX.js → layers.DCrrI7gD.js} +1 -1
- package/dist/{layers.BJ_Dz9mw.js → layers.DMgJ6Kej.js} +1 -1
- package/dist/{layers.BuTBV5wv.js → layers.DNsiU5LJ.js} +1 -1
- package/dist/{layers.DkXdzGO-.js → layers.DOQnNw4P.js} +4 -4
- package/dist/{layers.s57BUIjY.js → layers.DOf_T9kD.js} +1 -1
- package/dist/{layers.DnmP0W4r.js → layers.DQ-Mabxz.js} +1 -1
- package/dist/{layers.Dev52RyA.js → layers.DREHvE7K.js} +1 -1
- package/dist/{layers.D5K6XkWF.js → layers.DSXrBu8P.js} +1 -1
- package/dist/{layers.LY0LWlzF.js → layers.DTmJp6bf.js} +1 -1
- package/dist/{layers.Ck3ifZmG.js → layers.DU_QtJ_L.js} +1 -1
- package/dist/{layers.COgI7Fj_.js → layers.DVTpPgz7.js} +1 -1
- package/dist/{layers.0jZViPBq.js → layers.DYGj_Amk.js} +1 -1
- package/dist/{layers.W6dsxTLP.js → layers.DYMvJUUa.js} +1 -1
- package/dist/{layers.BQq8u0rJ.js → layers.D_UYi9ez.js} +1 -1
- package/dist/{layers.Bs3wEe5c.js → layers.D_kUfJTf.js} +1 -1
- package/dist/{layers.CD2qHUSR.js → layers.DaDJu61v.js} +1 -1
- package/dist/{layers.ChvqKuKE.js → layers.DbzYysAl.js} +1 -1
- package/dist/{layers.rFgkjKts.js → layers.Dcz1ER1a.js} +1 -1
- package/dist/{layers.B15sFk69.js → layers.Dda8gWqG.js} +1 -1
- package/dist/{layers.Bd_358_0.js → layers.Dg46rfpr.js} +3 -3
- package/dist/{layers.CM0XjzQc.js → layers.DhHnJ_rM.js} +1 -1
- package/dist/{layers.C_NSUZQD.js → layers.DhUN01RV.js} +1 -1
- package/dist/{layers.C2K9Bo4p.js → layers.DiSMPqDc.js} +2 -2
- package/dist/{layers.tZc0R8Q3.js → layers.DkpIhHxQ.js} +1 -1
- package/dist/{layers.BvKAA_d2.js → layers.Dkw6sEkm.js} +1 -1
- package/dist/{layers.DJQix55q.js → layers.DlcIy-ga.js} +1 -1
- package/dist/{layers.C3zlguJZ.js → layers.Dm04inGr.js} +4 -4
- package/dist/{layers.C9K_OLqr.js → layers.DnT6uYTX.js} +3 -3
- package/dist/{layers.gvSuQPg9.js → layers.Dns48PUf.js} +3 -3
- package/dist/{layers.DRynSuF_.js → layers.DoRdGx_s.js} +1 -1
- package/dist/{layers.BdHxsF1B.js → layers.Dprt2lNI.js} +10 -10
- package/dist/{layers.CQ4srVtk.js → layers.DrUJld9J.js} +1 -1
- package/dist/{layers.CZ4_qIqj.js → layers.Drap30Xb.js} +1 -1
- package/dist/{layers.BNotkAvU.js → layers.Drv1BrJG.js} +1 -1
- package/dist/{layers.zbVX5Wdc.js → layers.DsTyDwDL.js} +1 -1
- package/dist/{layers.BigsyKyJ.js → layers.DwPDmXY6.js} +7 -7
- package/dist/layers.DyQqkFOF.js +1 -0
- package/dist/{layers.D2ZrJuzf.js → layers.G56uLRIV.js} +1 -1
- package/dist/{layers.CQFc6DGh.js → layers.GrSbxt-3.js} +3 -3
- package/dist/{layers.BgjICAK9.js → layers.H2LedcqZ.js} +1 -1
- package/dist/{layers.DUxVEK2Q.js → layers.HTsBDtUk.js} +1 -1
- package/dist/{layers.CbqcqsTb.js → layers.K2v4EVMl.js} +4 -4
- package/dist/{layers.DlJNauRo.js → layers.LxoiyH_6.js} +2 -2
- package/dist/{layers.DCe-eB31.js → layers.MRYdIw9V.js} +3 -3
- package/dist/{layers.DckNFmvO.js → layers.Mer36_xb.js} +1 -1
- package/dist/{layers.BNAZ9z18.js → layers.RmdxOgZo.js} +4 -4
- package/dist/{layers.CA0_Cnaz.js → layers.Rz8uzJlg.js} +1 -1
- package/dist/{layers.BfBEh3hW.js → layers.S1Z79iET.js} +1 -1
- package/dist/{layers.B2xxQT9s.js → layers.S_Vwc3m-.js} +1 -1
- package/dist/{layers.BsIPylGl.js → layers.SfpG_T-5.js} +1 -1
- package/dist/{layers.B1S8udc-.js → layers.U8nZjVuX.js} +1 -1
- package/dist/{layers.BhEvwzrF.js → layers.UhPxyWIi.js} +1 -1
- package/dist/{layers.VguJq4YY.js → layers.ZTp4foX7.js} +1 -1
- package/dist/{layers.CtcwnxXW.js → layers._foC66m-.js} +1 -1
- package/dist/{layers.pcL0pynl.js → layers._o6tY2St.js} +1 -1
- package/dist/{layers.BG5gVq35.js → layers.aislW0tw.js} +1 -1
- package/dist/{layers.C4Br7s6K.js → layers.ait2lptX.js} +1 -1
- package/dist/{layers.B4C6zm-d.js → layers.dlwYGgzY.js} +1 -1
- package/dist/{layers.AcTzwWn6.js → layers.drbaAKDM.js} +1 -1
- package/dist/{layers.D9CoH02P.js → layers.k0yhhYKm.js} +1 -1
- package/dist/{layers.Tk3BpmQs.js → layers.k8Yoh94p.js} +1 -1
- package/dist/{layers.ErGukUs3.js → layers.mYIBY3j6.js} +1 -1
- package/dist/{layers.CcKlOi7-.js → layers.nMjtkHUB.js} +1 -1
- package/dist/{layers.B1SFJlaf.js → layers.nQNliwHU.js} +1 -1
- package/dist/layers.o8BmU6vA.js +6 -0
- package/dist/{layers.DpNguDmg.js → layers.oOeH9puR.js} +1 -1
- package/dist/{layers.jvnRU5hW.js → layers.pXLK7oDT.js} +1 -1
- package/dist/{layers.CeJVh5Qr.js → layers.qKP0mvqS.js} +1 -1
- package/dist/{layers.Bdm-idtY.js → layers.qx9JWfUE.js} +1 -1
- package/dist/{layers.tRQUZr7y.js → layers.rOhiwm8y.js} +1 -1
- package/dist/{layers.BDPmHWjs.js → layers.reitJiob.js} +1 -1
- package/dist/{layers.DUIwc5gu.js → layers.uet-tlcS.js} +1 -1
- package/dist/{layers.CLinYZOl.js → layers.yfNLEuK_.js} +1 -1
- package/dist/{layers.CMwC7uNq.js → layers.zWCZC9IV.js} +1 -1
- package/package.json +1 -1
- package/dist/layers.1xdLJUOU.js +0 -229
- package/dist/layers.B6qtO9NZ.js +0 -1
- package/dist/layers.DIV5wnV2.js +0 -8
- package/dist/layers.DOYfS5wq.js +0 -6
- package/dist/layers.Dd4FpocY.js +0 -1
- package/dist/layers.Dfy57Sy_.js +0 -1
package/dist/layers.1xdLJUOU.js
DELETED
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as k } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation as M } from "react-i18next";
|
|
3
|
-
import { Modal as K, Text as U, Flex as _, Button as T, useMantineColorScheme as J, Loader as Y } from "@mantine/core";
|
|
4
|
-
import { useRef as I, useState as m, useEffect as p, useCallback as R, Suspense as X, lazy as Z } from "react";
|
|
5
|
-
import { BottomDrawerWithoutHeader as $ } from "@layers-app/shared";
|
|
6
|
-
const se = ({
|
|
7
|
-
isCloseModal: s,
|
|
8
|
-
setCloseModalOpen: t,
|
|
9
|
-
confirmClose: l
|
|
10
|
-
}) => {
|
|
11
|
-
const { t: i } = M();
|
|
12
|
-
return /* @__PURE__ */ a(
|
|
13
|
-
K,
|
|
14
|
-
{
|
|
15
|
-
opened: s,
|
|
16
|
-
onClose: () => {
|
|
17
|
-
t(!1);
|
|
18
|
-
},
|
|
19
|
-
centered: !0,
|
|
20
|
-
title: i("editor.unsavedChanges.title"),
|
|
21
|
-
closeOnClickOutside: !0,
|
|
22
|
-
closeOnEscape: !0,
|
|
23
|
-
size: "500",
|
|
24
|
-
zIndex: 999,
|
|
25
|
-
children: /* @__PURE__ */ k("div", { children: [
|
|
26
|
-
/* @__PURE__ */ a(U, { mb: "md", children: i("editor.unsavedChanges.message") }),
|
|
27
|
-
/* @__PURE__ */ k(_, { justify: "flex-end", gap: "sm", children: [
|
|
28
|
-
/* @__PURE__ */ a(
|
|
29
|
-
T,
|
|
30
|
-
{
|
|
31
|
-
variant: "default",
|
|
32
|
-
onClick: () => {
|
|
33
|
-
t(!1);
|
|
34
|
-
},
|
|
35
|
-
fullWidth: !0,
|
|
36
|
-
children: i("editor.unsavedChanges.cancel")
|
|
37
|
-
}
|
|
38
|
-
),
|
|
39
|
-
/* @__PURE__ */ a(T, { color: "red", onClick: l, fullWidth: !0, children: i("editor.unsavedChanges.closeWithoutSaving") })
|
|
40
|
-
] })
|
|
41
|
-
] })
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
}, E = {
|
|
45
|
-
elements: [],
|
|
46
|
-
files: {},
|
|
47
|
-
appState: {},
|
|
48
|
-
previewSVG: null
|
|
49
|
-
}, le = (s) => {
|
|
50
|
-
try {
|
|
51
|
-
const t = JSON.parse(s);
|
|
52
|
-
if (Array.isArray(t))
|
|
53
|
-
return { ...E, elements: t };
|
|
54
|
-
if (t && typeof t == "object")
|
|
55
|
-
return {
|
|
56
|
-
elements: Array.isArray(t.elements) ? t.elements : [],
|
|
57
|
-
files: t.files && typeof t.files == "object" ? t.files : {},
|
|
58
|
-
appState: t.appState && typeof t.appState == "object" ? t.appState : {},
|
|
59
|
-
previewSVG: typeof t.previewSVG == "string" ? t.previewSVG : typeof t.previewSvg == "string" ? t.previewSvg : null
|
|
60
|
-
};
|
|
61
|
-
} catch {
|
|
62
|
-
}
|
|
63
|
-
return { ...E };
|
|
64
|
-
}, q = {
|
|
65
|
-
en: "en-US",
|
|
66
|
-
ru: "ru-RU",
|
|
67
|
-
fr: "fr-FR",
|
|
68
|
-
de: "de-DE",
|
|
69
|
-
es: "es-ES",
|
|
70
|
-
it: "it-IT",
|
|
71
|
-
pt: "pt-BR",
|
|
72
|
-
zh: "zh-CN",
|
|
73
|
-
ja: "ja-JP",
|
|
74
|
-
ko: "ko-KR",
|
|
75
|
-
ar: "ar-SA",
|
|
76
|
-
hi: "hi-IN",
|
|
77
|
-
nl: "nl-NL",
|
|
78
|
-
tr: "tr-TR",
|
|
79
|
-
pl: "pl-PL",
|
|
80
|
-
sv: "sv-SE",
|
|
81
|
-
cs: "cs-CZ",
|
|
82
|
-
uk: "uk-UA",
|
|
83
|
-
ro: "ro-RO",
|
|
84
|
-
fi: "fi-FI",
|
|
85
|
-
da: "da-DK",
|
|
86
|
-
no: "no-NO",
|
|
87
|
-
el: "el-GR",
|
|
88
|
-
he: "he-IL",
|
|
89
|
-
th: "th-TH",
|
|
90
|
-
id: "id-ID",
|
|
91
|
-
ms: "ms-MY",
|
|
92
|
-
vi: "vi-VN"
|
|
93
|
-
};
|
|
94
|
-
let h = null;
|
|
95
|
-
const Q = /* @__PURE__ */ Z(async () => {
|
|
96
|
-
var t;
|
|
97
|
-
const s = await import("./layers.2ey9Sld4.js").then((l) => l.M);
|
|
98
|
-
return !h && s && (h = s.exportToSvg || ((t = s.default) == null ? void 0 : t.exportToSvg) || s.default), { default: s.Excalidraw };
|
|
99
|
-
}), P = () => {
|
|
100
|
-
const [s, t] = m(
|
|
101
|
-
null
|
|
102
|
-
), l = R(
|
|
103
|
-
(i) => t(i),
|
|
104
|
-
[]
|
|
105
|
-
);
|
|
106
|
-
return [s, l];
|
|
107
|
-
};
|
|
108
|
-
function ie({
|
|
109
|
-
onSave: s,
|
|
110
|
-
initialElements: t,
|
|
111
|
-
initialAppState: l,
|
|
112
|
-
initialFiles: i,
|
|
113
|
-
isShown: c = !1,
|
|
114
|
-
onDelete: L,
|
|
115
|
-
onClose: B,
|
|
116
|
-
isEdited: D
|
|
117
|
-
}) {
|
|
118
|
-
const [o, S] = P(), { i18n: j } = M(), { colorScheme: z } = J(), x = I(!1), [d, A] = m(t), [g, N] = m(i), [V, O] = m(c);
|
|
119
|
-
p(() => {
|
|
120
|
-
c && O(!0);
|
|
121
|
-
}, [c]), p(() => {
|
|
122
|
-
!c || x.current || (x.current = !0, Promise.resolve({ }));
|
|
123
|
-
}, [c]), p(() => {
|
|
124
|
-
c && setTimeout(() => {
|
|
125
|
-
var e;
|
|
126
|
-
(e = o == null ? void 0 : o.refresh) == null || e.call(o);
|
|
127
|
-
}, 500);
|
|
128
|
-
}, [c, o]);
|
|
129
|
-
const G = R(async () => {
|
|
130
|
-
var b, w, C;
|
|
131
|
-
let e = h;
|
|
132
|
-
if (!e || typeof e != "function") {
|
|
133
|
-
const n = await import("./layers.2ey9Sld4.js").then((f) => f.M);
|
|
134
|
-
e = n.exportToSvg || ((b = n.default) == null ? void 0 : b.exportToSvg) || n.default, e && typeof e == "function" && (h = e);
|
|
135
|
-
}
|
|
136
|
-
if (!e || typeof e != "function") {
|
|
137
|
-
const n = await import("./layers.2ey9Sld4.js").then((H) => H.M), f = n ? Object.keys(n) : [];
|
|
138
|
-
throw console.error("Excalidraw module structure:", {
|
|
139
|
-
keys: f,
|
|
140
|
-
hasExportToSvg: n && "exportToSvg" in n,
|
|
141
|
-
hasDefault: n && "default" in n,
|
|
142
|
-
moduleType: typeof n,
|
|
143
|
-
module: n
|
|
144
|
-
}), new Error(
|
|
145
|
-
`exportToSvg is not available from @excalidraw/excalidraw. Module keys: ${f.join(", ")}. Please ensure @excalidraw/excalidraw is properly installed.`
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
const u = ((w = o == null ? void 0 : o.getAppState) == null ? void 0 : w.call(o)) ?? l, r = await e({
|
|
149
|
-
appState: u,
|
|
150
|
-
elements: d,
|
|
151
|
-
files: g
|
|
152
|
-
}), v = (C = r == null ? void 0 : r.firstElementChild) == null ? void 0 : C.firstElementChild, y = r.getAttribute("viewBox");
|
|
153
|
-
if (y != null) {
|
|
154
|
-
const n = y.split(" ");
|
|
155
|
-
r.setAttribute("width", n[2]), r.setAttribute("height", n[3]);
|
|
156
|
-
}
|
|
157
|
-
return v && v.tagName === "style" && v.remove(), r.setAttribute("width", "100%"), r.setAttribute("height", "100%"), r.setAttribute("display", "block"), r.classList.add("excalidraw-svg"), r.outerHTML;
|
|
158
|
-
}, [d, g, o, l]), W = () => {
|
|
159
|
-
if (d && d.filter((e) => !e.isDeleted).length > 0) {
|
|
160
|
-
const e = o == null ? void 0 : o.getAppState(), u = {
|
|
161
|
-
exportBackground: e == null ? void 0 : e.exportBackground,
|
|
162
|
-
exportScale: e == null ? void 0 : e.exportScale,
|
|
163
|
-
exportWithDarkMode: (e == null ? void 0 : e.theme) === "dark",
|
|
164
|
-
isBindingEnabled: e == null ? void 0 : e.isBindingEnabled,
|
|
165
|
-
isLoading: e == null ? void 0 : e.isLoading,
|
|
166
|
-
name: e == null ? void 0 : e.name,
|
|
167
|
-
theme: e == null ? void 0 : e.theme,
|
|
168
|
-
viewBackgroundColor: e == null ? void 0 : e.viewBackgroundColor,
|
|
169
|
-
viewModeEnabled: e == null ? void 0 : e.viewModeEnabled,
|
|
170
|
-
zenModeEnabled: e == null ? void 0 : e.zenModeEnabled,
|
|
171
|
-
zoom: e == null ? void 0 : e.zoom
|
|
172
|
-
};
|
|
173
|
-
(async () => {
|
|
174
|
-
const r = await G();
|
|
175
|
-
s(d, u, g, r);
|
|
176
|
-
})();
|
|
177
|
-
} else
|
|
178
|
-
L();
|
|
179
|
-
}, F = (e, u, r) => {
|
|
180
|
-
(e == null ? void 0 : e.length) !== (t == null ? void 0 : t.length) && (D.current = !0), A(e), N(r);
|
|
181
|
-
};
|
|
182
|
-
return /* @__PURE__ */ a(
|
|
183
|
-
$,
|
|
184
|
-
{
|
|
185
|
-
opened: c,
|
|
186
|
-
onClose: B,
|
|
187
|
-
onSave: W,
|
|
188
|
-
className: "excaildraw-modal",
|
|
189
|
-
closeOnEscape: !1,
|
|
190
|
-
children: V && /* @__PURE__ */ a(
|
|
191
|
-
X,
|
|
192
|
-
{
|
|
193
|
-
fallback: /* @__PURE__ */ a(
|
|
194
|
-
"div",
|
|
195
|
-
{
|
|
196
|
-
style: {
|
|
197
|
-
display: "flex",
|
|
198
|
-
justifyContent: "center",
|
|
199
|
-
alignItems: "center",
|
|
200
|
-
height: "100%",
|
|
201
|
-
minHeight: "400px"
|
|
202
|
-
},
|
|
203
|
-
children: /* @__PURE__ */ a(Y, { size: "sm" })
|
|
204
|
-
}
|
|
205
|
-
),
|
|
206
|
-
children: /* @__PURE__ */ a(
|
|
207
|
-
Q,
|
|
208
|
-
{
|
|
209
|
-
langCode: q[j.language],
|
|
210
|
-
theme: z,
|
|
211
|
-
onChange: F,
|
|
212
|
-
excalidrawAPI: S,
|
|
213
|
-
initialData: {
|
|
214
|
-
appState: { ...l || { isLoading: !1 } },
|
|
215
|
-
elements: t,
|
|
216
|
-
files: i
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
)
|
|
220
|
-
}
|
|
221
|
-
)
|
|
222
|
-
}
|
|
223
|
-
);
|
|
224
|
-
}
|
|
225
|
-
export {
|
|
226
|
-
se as C,
|
|
227
|
-
ie as E,
|
|
228
|
-
le as p
|
|
229
|
-
};
|
package/dist/layers.B6qtO9NZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./layers.BvKAA_d2.js");require("./layers.BigsyKyJ.js");exports.Commands=e.CB;exports.subsetToBase64=e.QB;exports.subsetToBinary=e.NQ;exports.toBase64=e.AI;
|
package/dist/layers.DIV5wnV2.js
DELETED
package/dist/layers.DOYfS5wq.js
DELETED
package/dist/layers.Dd4FpocY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),E=require("react-i18next"),d=require("@mantine/core"),l=require("react"),G=require("@layers-app/shared"),W=({isCloseModal:n,setCloseModalOpen:t,confirmClose:a})=>{const{t:c}=E.useTranslation();return i.jsx(d.Modal,{opened:n,onClose:()=>{t(!1)},centered:!0,title:c("editor.unsavedChanges.title"),closeOnClickOutside:!0,closeOnEscape:!0,size:"500",zIndex:999,children:i.jsxs("div",{children:[i.jsx(d.Text,{mb:"md",children:c("editor.unsavedChanges.message")}),i.jsxs(d.Flex,{justify:"flex-end",gap:"sm",children:[i.jsx(d.Button,{variant:"default",onClick:()=>{t(!1)},fullWidth:!0,children:c("editor.unsavedChanges.cancel")}),i.jsx(d.Button,{color:"red",onClick:a,fullWidth:!0,children:c("editor.unsavedChanges.closeWithoutSaving")})]})]})})},k={elements:[],files:{},appState:{},previewSVG:null},F=n=>{try{const t=JSON.parse(n);if(Array.isArray(t))return{...k,elements:t};if(t&&typeof t=="object")return{elements:Array.isArray(t.elements)?t.elements:[],files:t.files&&typeof t.files=="object"?t.files:{},appState:t.appState&&typeof t.appState=="object"?t.appState:{},previewSVG:typeof t.previewSVG=="string"?t.previewSVG:typeof t.previewSvg=="string"?t.previewSvg:null}}catch{}return{...k}},H={en:"en-US",ru:"ru-RU",fr:"fr-FR",de:"de-DE",es:"es-ES",it:"it-IT",pt:"pt-BR",zh:"zh-CN",ja:"ja-JP",ko:"ko-KR",ar:"ar-SA",hi:"hi-IN",nl:"nl-NL",tr:"tr-TR",pl:"pl-PL",sv:"sv-SE",cs:"cs-CZ",uk:"uk-UA",ro:"ro-RO",fi:"fi-FI",da:"da-DK",no:"no-NO",el:"el-GR",he:"he-IL",th:"th-TH",id:"id-ID",ms:"ms-MY",vi:"vi-VN"};let x=null;const K=l.lazy(async()=>{var t;const n=await Promise.resolve().then(()=>require("./layers.BigsyKyJ.js")).then(a=>a.index);return!x&&n&&(x=n.exportToSvg||((t=n.default)==null?void 0:t.exportToSvg)||n.default),{default:n.Excalidraw}}),U=()=>{const[n,t]=l.useState(null),a=l.useCallback(c=>t(c),[]);return[n,a]};function _({onSave:n,initialElements:t,initialAppState:a,initialFiles:c,isShown:u=!1,onDelete:T,onClose:j,isEdited:M}){const[r,R]=U(),{i18n:S}=E.useTranslation(),{colorScheme:B}=d.useMantineColorScheme(),y=l.useRef(!1),[f,D]=l.useState(t),[v,L]=l.useState(c),[z,A]=l.useState(u);l.useEffect(()=>{u&&A(!0)},[u]),l.useEffect(()=>{!u||y.current||(y.current=!0,Promise.resolve().then(()=>require("./layers.Dyvby5gX.js")))},[u]),l.useEffect(()=>{u&&setTimeout(()=>{var e;(e=r==null?void 0:r.refresh)==null||e.call(r)},500)},[u,r]);const q=l.useCallback(async()=>{var b,w,C;let e=x;if(!e||typeof e!="function"){const s=await Promise.resolve().then(()=>require("./layers.BigsyKyJ.js")).then(g=>g.index);e=s.exportToSvg||((b=s.default)==null?void 0:b.exportToSvg)||s.default,e&&typeof e=="function"&&(x=e)}if(!e||typeof e!="function"){const s=await Promise.resolve().then(()=>require("./layers.BigsyKyJ.js")).then(O=>O.index),g=s?Object.keys(s):[];throw console.error("Excalidraw module structure:",{keys:g,hasExportToSvg:s&&"exportToSvg"in s,hasDefault:s&&"default"in s,moduleType:typeof s,module:s}),new Error(`exportToSvg is not available from @excalidraw/excalidraw. Module keys: ${g.join(", ")}. Please ensure @excalidraw/excalidraw is properly installed.`)}const h=((w=r==null?void 0:r.getAppState)==null?void 0:w.call(r))??a,o=await e({appState:h,elements:f,files:v}),m=(C=o==null?void 0:o.firstElementChild)==null?void 0:C.firstElementChild,p=o.getAttribute("viewBox");if(p!=null){const s=p.split(" ");o.setAttribute("width",s[2]),o.setAttribute("height",s[3])}return m&&m.tagName==="style"&&m.remove(),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("display","block"),o.classList.add("excalidraw-svg"),o.outerHTML},[f,v,r,a]),N=()=>{if(f&&f.filter(e=>!e.isDeleted).length>0){const e=r==null?void 0:r.getAppState(),h={exportBackground:e==null?void 0:e.exportBackground,exportScale:e==null?void 0:e.exportScale,exportWithDarkMode:(e==null?void 0:e.theme)==="dark",isBindingEnabled:e==null?void 0:e.isBindingEnabled,isLoading:e==null?void 0:e.isLoading,name:e==null?void 0:e.name,theme:e==null?void 0:e.theme,viewBackgroundColor:e==null?void 0:e.viewBackgroundColor,viewModeEnabled:e==null?void 0:e.viewModeEnabled,zenModeEnabled:e==null?void 0:e.zenModeEnabled,zoom:e==null?void 0:e.zoom};(async()=>{const o=await q();n(f,h,v,o)})()}else T()},V=(e,h,o)=>{(e==null?void 0:e.length)!==(t==null?void 0:t.length)&&(M.current=!0),D(e),L(o)};return i.jsx(G.BottomDrawerWithoutHeader,{opened:u,onClose:j,onSave:N,className:"excaildraw-modal",closeOnEscape:!1,children:z&&i.jsx(l.Suspense,{fallback:i.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",minHeight:"400px"},children:i.jsx(d.Loader,{size:"sm"})}),children:i.jsx(K,{langCode:H[S.language],theme:B,onChange:V,excalidrawAPI:R,initialData:{appState:{...a||{isLoading:!1}},elements:t,files:c}})})})}exports.ConfirmModal=W;exports.ExcalidrawModal=_;exports.parseExcalidrawData=F;
|
package/dist/layers.Dfy57Sy_.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./layers.COEYnSXY.js"),s=(e,r)=>n.Utils.lang.round(n.Color.parse(e)[r]);exports.channel=s;
|