@nanoforge-dev/editor 0.0.2-beta.580354c → 0.0.2-beta.82a2d26
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/client/_app/immutable/assets/0.B5z3JAkE.css +1 -0
- package/dist/client/_app/immutable/assets/0.B5z3JAkE.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.B5z3JAkE.css.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BS47D1Yd2.js → BFWbalF82.js} +1 -1
- package/dist/client/_app/immutable/chunks/BFWbalF82.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BFWbalF82.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DT8Ddh1L2.js → BLf9jss52.js} +1 -1
- package/dist/client/_app/immutable/chunks/BLf9jss52.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BLf9jss52.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{CKei9xPI2.js → BSNB_Uck2.js} +2 -2
- package/dist/client/_app/immutable/chunks/BSNB_Uck2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BSNB_Uck2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{Fu4roQAh.js → BWNegMLP.js} +1 -1
- package/dist/client/_app/immutable/chunks/BWNegMLP.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BWNegMLP.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{orCHVlgT.js → BesjqVrk.js} +1 -1
- package/dist/client/_app/immutable/chunks/BesjqVrk.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BesjqVrk.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BWDRzheF2.js → Bhafduqk2.js} +1 -1
- package/dist/client/_app/immutable/chunks/Bhafduqk2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Bhafduqk2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{CObqXk_q.js → Bp3dOgoC.js} +1 -1
- package/dist/client/_app/immutable/chunks/Bp3dOgoC.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Bp3dOgoC.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BpNXszev.js +6 -0
- package/dist/client/_app/immutable/chunks/BpNXszev.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BpNXszev.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{v6YHThuS.js → CBb7lP5l.js} +1 -1
- package/dist/client/_app/immutable/chunks/CBb7lP5l.js.br +2 -0
- package/dist/client/_app/immutable/chunks/CBb7lP5l.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{CZo4a556.js → CByF3Zfc.js} +1 -1
- package/dist/client/_app/immutable/chunks/CByF3Zfc.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CByF3Zfc.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{uo5fvlDn2.js → CJxKUjL-2.js} +1 -1
- package/dist/client/_app/immutable/chunks/CJxKUjL-2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CJxKUjL-2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DH-ThjiG2.js → CVQMNY_q2.js} +2 -2
- package/dist/client/_app/immutable/chunks/CVQMNY_q2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CVQMNY_q2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{Bk9DeFcz2.js → CbW3yNTi.js} +1 -1
- package/dist/client/_app/immutable/chunks/CbW3yNTi.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CbW3yNTi.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CvkNa2t_.js +3 -0
- package/dist/client/_app/immutable/chunks/CvkNa2t_.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CvkNa2t_.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{CnhOha0Z2.js → D2PipAw82.js} +1 -1
- package/dist/client/_app/immutable/chunks/D2PipAw82.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D2PipAw82.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BzGBrbo22.js → D6-zOYYZ2.js} +1 -1
- package/dist/client/_app/immutable/chunks/D6-zOYYZ2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D6-zOYYZ2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{B4w9-fYM2.js → DGDm8Q4w2.js} +1 -1
- package/dist/client/_app/immutable/chunks/DGDm8Q4w2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DGDm8Q4w2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DFXoGGM32.js → DRQF0pcw2.js} +1 -1
- package/dist/client/_app/immutable/chunks/DRQF0pcw2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DRQF0pcw2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DV4appXC.js +1 -0
- package/dist/client/_app/immutable/chunks/DV4appXC.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DV4appXC.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{C83DJP9w2.js → DYPPS7OK2.js} +1 -1
- package/dist/client/_app/immutable/chunks/DYPPS7OK2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DYPPS7OK2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BZqFHUa32.js → DaisyxdZ2.js} +1 -1
- package/dist/client/_app/immutable/chunks/DaisyxdZ2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DaisyxdZ2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BlGyHMDZ.js → DtcTX-YU.js} +1 -1
- package/dist/client/_app/immutable/chunks/DtcTX-YU.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DtcTX-YU.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DHQLzCjY2.js → M5EMNuDS2.js} +1 -1
- package/dist/client/_app/immutable/chunks/M5EMNuDS2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/M5EMNuDS2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DuDzfUqN2.js → SmrQhi1p2.js} +1 -1
- package/dist/client/_app/immutable/chunks/SmrQhi1p2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/SmrQhi1p2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{C7bUlFLk2.js → TFu7Wn2c2.js} +1 -1
- package/dist/client/_app/immutable/chunks/TFu7Wn2c2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/TFu7Wn2c2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BwWAgYKi2.js → mESnenQM2.js} +1 -1
- package/dist/client/_app/immutable/chunks/mESnenQM2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/mESnenQM2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/nE3VUeYj.js +0 -0
- package/dist/client/_app/immutable/chunks/nE3VUeYj.js.br +1 -0
- package/dist/client/_app/immutable/chunks/nE3VUeYj.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{mRVEsFly2.js → uIj7mV9x2.js} +1 -1
- package/dist/client/_app/immutable/chunks/uIj7mV9x2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/uIj7mV9x2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{D1JHNh7-.js → z7c9RqCD.js} +10 -10
- package/dist/client/_app/immutable/chunks/z7c9RqCD.js.br +0 -0
- package/dist/client/_app/immutable/chunks/z7c9RqCD.js.gz +0 -0
- package/dist/client/_app/immutable/entry/{app.B8CjVJ8m.js → app.6QEfz-iq.js} +2 -2
- package/dist/client/_app/immutable/entry/app.6QEfz-iq.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.6QEfz-iq.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.DgVllUEP.js +1 -0
- package/dist/client/_app/immutable/entry/start.DgVllUEP.js.br +0 -0
- package/dist/client/_app/immutable/entry/start.DgVllUEP.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{0.Cc3CiDns.js → 0.DHdCqwIJ.js} +1 -1
- package/dist/client/_app/immutable/nodes/0.DHdCqwIJ.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.DHdCqwIJ.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{1.aoxJA8Qo.js → 1.loL9C4pA.js} +1 -1
- package/dist/client/_app/immutable/nodes/1.loL9C4pA.js.br +3 -0
- package/dist/client/_app/immutable/nodes/1.loL9C4pA.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{10.DTh0Qakp.js → 11.BJRhAisP.js} +1 -1
- package/dist/client/_app/immutable/nodes/11.BJRhAisP.js.br +0 -0
- package/dist/client/_app/immutable/nodes/11.BJRhAisP.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.5Lbr-iiR.js +1 -0
- package/dist/client/_app/immutable/nodes/2.5Lbr-iiR.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.5Lbr-iiR.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/3.5BHWCtcR.js +6 -0
- package/dist/client/_app/immutable/nodes/3.5BHWCtcR.js.br +0 -0
- package/dist/client/_app/immutable/nodes/3.5BHWCtcR.js.gz +0 -0
- package/dist/client/_app/version.json +1 -1
- package/dist/client/_app/version.json.br +0 -0
- package/dist/client/_app/version.json.gz +0 -0
- package/dist/server/chunks/{0-BAWoYonx.js → 0-DK13KdVt.js} +6 -6
- package/dist/server/chunks/{0-BAWoYonx.js.map → 0-DK13KdVt.js.map} +1 -1
- package/dist/server/chunks/{1-l2q82N-q.js → 1-DytmaR_G.js} +6 -6
- package/dist/server/chunks/{1-l2q82N-q.js.map → 1-DytmaR_G.js.map} +1 -1
- package/dist/server/chunks/{9-DPn3d8kr.js → 10-zM8H1H7h.js} +5 -5
- package/dist/server/chunks/10-zM8H1H7h.js.map +1 -0
- package/dist/server/chunks/11-DAhp5wFR.js +22 -0
- package/dist/server/chunks/11-DAhp5wFR.js.map +1 -0
- package/dist/server/chunks/{2-BTcCBWEw.js → 2-BdHpeJzA.js} +10 -10
- package/dist/server/chunks/{2-BTcCBWEw.js.map → 2-BdHpeJzA.js.map} +1 -1
- package/dist/server/chunks/{3-B9-EfDcH.js → 3-CFpQUapX.js} +10 -10
- package/dist/server/chunks/{3-B9-EfDcH.js.map → 3-CFpQUapX.js.map} +1 -1
- package/dist/server/chunks/{4-BYQgShv3.js → 4-8BW6Sdb0.js} +23 -9
- package/dist/server/chunks/4-8BW6Sdb0.js.map +1 -0
- package/dist/server/chunks/{5-B4IXyXqv.js → 5-1NMUY_LH.js} +3 -3
- package/dist/server/chunks/{5-B4IXyXqv.js.map → 5-1NMUY_LH.js.map} +1 -1
- package/dist/server/chunks/{6-DH_IMDRv.js → 6-DE-wH6HQ.js} +3 -3
- package/dist/server/chunks/{6-DH_IMDRv.js.map → 6-DE-wH6HQ.js.map} +1 -1
- package/dist/server/chunks/7-B1Qi_1kM.js +18 -0
- package/dist/server/chunks/7-B1Qi_1kM.js.map +1 -0
- package/dist/server/chunks/8-sn6bIqkc.js +91 -0
- package/dist/server/chunks/8-sn6bIqkc.js.map +1 -0
- package/dist/server/chunks/{8-CRTa48Fz.js → 9-UjOK68In.js} +5 -5
- package/dist/server/chunks/{8-CRTa48Fz.js.map → 9-UjOK68In.js.map} +1 -1
- package/dist/server/chunks/{_layout.svelte-uX7XiB9K.js → _layout.svelte-By6MJeec.js} +5 -5
- package/dist/server/chunks/_layout.svelte-By6MJeec.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-B-TY3dq2.js → _page.svelte-B3dvQwz5.js} +7 -7
- package/dist/server/chunks/{_page.svelte-B-TY3dq2.js.map → _page.svelte-B3dvQwz5.js.map} +1 -1
- package/dist/server/chunks/{_page.svelte-1s5jXYk_.js → _page.svelte-DRyjxD6O.js} +243 -97
- package/dist/server/chunks/_page.svelte-DRyjxD6O.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-BHks8xKU.js → _page.svelte-DYpkpTnJ.js} +6 -6
- package/dist/server/chunks/_page.svelte-DYpkpTnJ.js.map +1 -0
- package/dist/server/chunks/_server.ts-C1vgzIkJ.js +13 -0
- package/dist/server/chunks/_server.ts-C1vgzIkJ.js.map +1 -0
- package/dist/server/chunks/{_server.ts-y6LeO9-5.js → _server.ts-Dy1xpkL2.js} +2 -2
- package/dist/server/chunks/{_server.ts-y6LeO9-5.js.map → _server.ts-Dy1xpkL2.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-a-I4s4R9.js → _server.ts-Hci5qTfA.js} +2 -2
- package/dist/server/chunks/{_server.ts-a-I4s4R9.js.map → _server.ts-Hci5qTfA.js.map} +1 -1
- package/dist/server/chunks/app-DUeJj5RD.js.map +1 -1
- package/dist/server/chunks/{client-DWDrOrQL.js → client-DBcQyXdV.js} +4 -4
- package/dist/server/chunks/client-DBcQyXdV.js.map +1 -0
- package/dist/server/chunks/{error-cCQrHDre.js → error-dHCCrW4T.js} +301 -147
- package/dist/server/chunks/error-dHCCrW4T.js.map +1 -0
- package/dist/server/chunks/{error.svelte-nsiVeFAJ.js → error.svelte-CAHakCnN.js} +3 -3
- package/dist/server/chunks/error.svelte-CAHakCnN.js.map +1 -0
- package/dist/server/chunks/{exports-CWOtdr_a.js → exports-D0uQzbjy.js} +4 -4
- package/dist/server/chunks/{exports-CWOtdr_a.js.map → exports-D0uQzbjy.js.map} +1 -1
- package/dist/server/chunks/{hooks.server-Cdesln7C.js → hooks.server-BR9nwSH9.js} +6 -6
- package/dist/server/chunks/hooks.server-BR9nwSH9.js.map +1 -0
- package/dist/server/chunks/{hooks.universal-DhGFdBkK.js → hooks.universal-bt2XJEN9.js} +2 -2
- package/dist/server/chunks/{hooks.universal-DhGFdBkK.js.map → hooks.universal-bt2XJEN9.js.map} +1 -1
- package/dist/server/chunks/{events-Bhh2w-5S.js → index-server-BthNUqCR.js} +1006 -1005
- package/dist/server/chunks/index-server-BthNUqCR.js.map +1 -0
- package/dist/server/chunks/{internal-DsA4iYdx.js → internal-vr3mPczx.js} +2 -2
- package/dist/server/chunks/{internal-DsA4iYdx.js.map → internal-vr3mPczx.js.map} +1 -1
- package/dist/server/chunks/{internal2-DF9-voLX.js → internal2-DhEJvRRa.js} +22 -15
- package/dist/server/chunks/internal2-DhEJvRRa.js.map +1 -0
- package/dist/server/chunks/{loader-circle-CFNm9vip.js → loader-circle-C4T0os4K.js} +5 -5
- package/dist/server/chunks/loader-circle-C4T0os4K.js.map +1 -0
- package/dist/server/chunks/{logo-CgSTOPfJ.js → logo-V5iuJCmy.js} +4 -4
- package/dist/server/chunks/logo-V5iuJCmy.js.map +1 -0
- package/dist/server/chunks/{project-loader-DPwVwx5v.js → project-loader-CkPdftFo.js} +4 -4
- package/dist/server/chunks/project-loader-CkPdftFo.js.map +1 -0
- package/dist/server/chunks/{request-handler-guINVc1G.js → request-handler-BVHWtbqx.js} +206 -140
- package/dist/server/chunks/request-handler-BVHWtbqx.js.map +1 -0
- package/dist/server/chunks/{runtime-CDHWD9vo.js → runtime-26c7QsEi.js} +9 -9
- package/dist/server/chunks/runtime-26c7QsEi.js.map +1 -0
- package/dist/server/chunks/{schemas-nSPQog67.js → schemas-l8C4cVM-.js} +348 -303
- package/dist/server/chunks/schemas-l8C4cVM-.js.map +1 -0
- package/dist/server/chunks/{session-DLCjVGKo.js → session-By0bbFhg.js} +2 -2
- package/dist/server/chunks/{session-DLCjVGKo.js.map → session-By0bbFhg.js.map} +1 -1
- package/dist/server/chunks/shared-server-Cha0Qlv9.js.map +1 -1
- package/dist/server/chunks/{state-CuPzwLiF.js → state-D4QqZ0FB.js} +3 -3
- package/dist/server/chunks/state-D4QqZ0FB.js.map +1 -0
- package/dist/server/index.js +368 -353
- package/dist/server/index.js.map +1 -1
- package/dist/server/manifest.js +48 -24
- package/dist/server/manifest.js.map +1 -1
- package/package.json +18 -16
- package/dist/client/_app/immutable/assets/0.BRAq3OL4.css +0 -1
- package/dist/client/_app/immutable/assets/0.BRAq3OL4.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.BRAq3OL4.css.gz +0 -0
- package/dist/client/_app/immutable/chunks/B4w9-fYM2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/B4w9-fYM2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BS47D1Yd2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BS47D1Yd2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BWDRzheF2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BWDRzheF2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BZqFHUa32.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BZqFHUa32.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Bk9DeFcz2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Bk9DeFcz2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BlGyHMDZ.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BlGyHMDZ.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Brp9NRGe.js +0 -6
- package/dist/client/_app/immutable/chunks/Brp9NRGe.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Brp9NRGe.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BwWAgYKi2.js.br +0 -3
- package/dist/client/_app/immutable/chunks/BwWAgYKi2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BwpZ7W8G.js +0 -1
- package/dist/client/_app/immutable/chunks/BwpZ7W8G.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BwpZ7W8G.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BzGBrbo22.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BzGBrbo22.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C7bUlFLk2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/C7bUlFLk2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C83DJP9w2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/C83DJP9w2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CKei9xPI2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CKei9xPI2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CObqXk_q.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CObqXk_q.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CZo4a556.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CZo4a556.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CnhOha0Z2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CnhOha0Z2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/D1JHNh7-.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D1JHNh7-.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DFXoGGM32.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DFXoGGM32.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DH-ThjiG2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DH-ThjiG2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DHQLzCjY2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DHQLzCjY2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DT8Ddh1L2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DT8Ddh1L2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DuDzfUqN2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DuDzfUqN2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Fu4roQAh.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Fu4roQAh.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/ZLGReh43.js +0 -3
- package/dist/client/_app/immutable/chunks/ZLGReh43.js.br +0 -0
- package/dist/client/_app/immutable/chunks/ZLGReh43.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/mRVEsFly2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/mRVEsFly2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/orCHVlgT.js.br +0 -0
- package/dist/client/_app/immutable/chunks/orCHVlgT.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/uo5fvlDn2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/uo5fvlDn2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/v6YHThuS.js.br +0 -0
- package/dist/client/_app/immutable/chunks/v6YHThuS.js.gz +0 -0
- package/dist/client/_app/immutable/entry/app.B8CjVJ8m.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.B8CjVJ8m.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.xcie2Yx0.js +0 -1
- package/dist/client/_app/immutable/entry/start.xcie2Yx0.js.br +0 -0
- package/dist/client/_app/immutable/entry/start.xcie2Yx0.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/0.Cc3CiDns.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.Cc3CiDns.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/1.aoxJA8Qo.js.br +0 -3
- package/dist/client/_app/immutable/nodes/1.aoxJA8Qo.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/10.DTh0Qakp.js.br +0 -0
- package/dist/client/_app/immutable/nodes/10.DTh0Qakp.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.DggbBWOd.js +0 -1
- package/dist/client/_app/immutable/nodes/2.DggbBWOd.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.DggbBWOd.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/3.CldxEoeJ.js +0 -6
- package/dist/client/_app/immutable/nodes/3.CldxEoeJ.js.br +0 -0
- package/dist/client/_app/immutable/nodes/3.CldxEoeJ.js.gz +0 -0
- package/dist/server/chunks/10-DliMkA_F.js +0 -22
- package/dist/server/chunks/10-DliMkA_F.js.map +0 -1
- package/dist/server/chunks/4-BYQgShv3.js.map +0 -1
- package/dist/server/chunks/7-CPMeoSUO.js +0 -98
- package/dist/server/chunks/7-CPMeoSUO.js.map +0 -1
- package/dist/server/chunks/9-DPn3d8kr.js.map +0 -1
- package/dist/server/chunks/_layout.svelte-uX7XiB9K.js.map +0 -1
- package/dist/server/chunks/_page.svelte-1s5jXYk_.js.map +0 -1
- package/dist/server/chunks/_page.svelte-BHks8xKU.js.map +0 -1
- package/dist/server/chunks/client-DWDrOrQL.js.map +0 -1
- package/dist/server/chunks/error-cCQrHDre.js.map +0 -1
- package/dist/server/chunks/error.svelte-nsiVeFAJ.js.map +0 -1
- package/dist/server/chunks/events-Bhh2w-5S.js.map +0 -1
- package/dist/server/chunks/hooks.server-Cdesln7C.js.map +0 -1
- package/dist/server/chunks/internal2-DF9-voLX.js.map +0 -1
- package/dist/server/chunks/loader-circle-CFNm9vip.js.map +0 -1
- package/dist/server/chunks/logo-CgSTOPfJ.js.map +0 -1
- package/dist/server/chunks/project-loader-DPwVwx5v.js.map +0 -1
- package/dist/server/chunks/request-handler-guINVc1G.js.map +0 -1
- package/dist/server/chunks/runtime-CDHWD9vo.js.map +0 -1
- package/dist/server/chunks/schemas-nSPQog67.js.map +0 -1
- package/dist/server/chunks/state-CuPzwLiF.js.map +0 -1
- /package/dist/client/_app/immutable/chunks/{CVaqCwHa.js → CVaqCwHa2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CVaqCwHa.js.br → CVaqCwHa2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CVaqCwHa.js.gz → CVaqCwHa2.js.gz} +0 -0
- /package/dist/client/_app/immutable/chunks/{De2hgUGE.js → De2hgUGE2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{De2hgUGE.js.br → De2hgUGE2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{De2hgUGE.js.gz → De2hgUGE2.js.gz} +0 -0
- /package/dist/server/chunks/{chunk-D7D4PA-g.js → rolldown-runtime-D7D4PA-g.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { G as noop$1, J as parse } from "./internal2-
|
|
1
|
+
import { B as mount, C as escape_html, D as getAllContexts, K as props_id, M as hasContext, O as getContext, Q as run, S as ensure_array_like, T as get$2, U as on, ct as unmount, d as bind_props, dt as clsx, et as setContext, m as clsx$1, ot as tick, rt as spread_props, t as ATTACHMENT_KEY, u as attributes, ut as writable, y as derived } from "./index-server-BthNUqCR.js";
|
|
2
|
+
import { G as noop$1, J as parse } from "./internal2-DhEJvRRa.js";
|
|
3
3
|
import { t as app } from "./app-DUeJj5RD.js";
|
|
4
4
|
import { n as SESSION_PROJECT_HEADER, t as Exception } from "./const-Dy5RfQqP.js";
|
|
5
5
|
import { r as formatFrom, t as HttpClient } from "./format-DGOlJxF5.js";
|
|
6
|
-
import { a as resolve, i as invalidateAll, n as applyAction, r as goto } from "./client-
|
|
7
|
-
import { A as resolveQueryBoolean, I as timeUntilStale, L as timeoutManager, N as shallowEqualObjects, O as pendingThenable, R as toast, T as notifyManager, _ as getIsRestoringContext, c as SvelteMap, f as createSubscriber, h as focusManager, j as resolveStaleTime, k as replaceData, l as SvelteSet, m as fetchState, n as Loader_circle, p as environmentManager, s as Subscribable, t as Icon, v as getQueryClientContext, w as noop$2, x as isValidTimeout } from "./loader-circle-
|
|
6
|
+
import { a as resolve, i as invalidateAll, n as applyAction, r as goto } from "./client-DBcQyXdV.js";
|
|
7
|
+
import { A as resolveQueryBoolean, I as timeUntilStale, L as timeoutManager, N as shallowEqualObjects, O as pendingThenable, R as toast, T as notifyManager, _ as getIsRestoringContext, c as SvelteMap, f as createSubscriber, h as focusManager, j as resolveStaleTime, k as replaceData, l as SvelteSet, m as fetchState, n as Loader_circle, p as environmentManager, s as Subscribable, t as Icon, v as getQueryClientContext, w as noop$2, x as isValidTimeout } from "./loader-circle-C4T0os4K.js";
|
|
8
8
|
//#region node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
9
9
|
/**
|
|
10
10
|
* Concatenates two arrays faster than the array spread operator.
|
|
@@ -3420,7 +3420,7 @@ const mergeArrayProperties = (baseObject, mergeObject, key) => {
|
|
|
3420
3420
|
const extendTailwindMerge = (configExtension, ...createConfig) => typeof configExtension === "function" ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
|
|
3421
3421
|
const twMerge = /*#__PURE__*/ createTailwindMerge(getDefaultConfig);
|
|
3422
3422
|
//#endregion
|
|
3423
|
-
//#region node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.6.0_tailwindcss@4.3.
|
|
3423
|
+
//#region node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.6.0_tailwindcss@4.3.1/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js
|
|
3424
3424
|
var SPACE_REGEX = /\s+/g;
|
|
3425
3425
|
var removeExtraSpaces = (str) => {
|
|
3426
3426
|
if (typeof str !== "string" || !str) return str;
|
|
@@ -3508,7 +3508,7 @@ var mergeObjects = (obj1, obj2) => {
|
|
|
3508
3508
|
return result;
|
|
3509
3509
|
};
|
|
3510
3510
|
//#endregion
|
|
3511
|
-
//#region node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.6.0_tailwindcss@4.3.
|
|
3511
|
+
//#region node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.6.0_tailwindcss@4.3.1/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js
|
|
3512
3512
|
var defaultConfig = {
|
|
3513
3513
|
twMerge: true,
|
|
3514
3514
|
twMergeConfig: {}
|
|
@@ -3721,7 +3721,7 @@ var getTailwindVariants = (cn) => {
|
|
|
3721
3721
|
};
|
|
3722
3722
|
};
|
|
3723
3723
|
//#endregion
|
|
3724
|
-
//#region node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.6.0_tailwindcss@4.3.
|
|
3724
|
+
//#region node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.6.0_tailwindcss@4.3.1/node_modules/tailwind-variants/dist/index.js
|
|
3725
3725
|
var createTwMerge = (cachedTwMergeConfig) => {
|
|
3726
3726
|
return isEmptyObject(cachedTwMergeConfig) ? twMerge : extendTailwindMerge({
|
|
3727
3727
|
...cachedTwMergeConfig,
|
|
@@ -4584,6 +4584,11 @@ var BaseRepository = class {
|
|
|
4584
4584
|
return formData;
|
|
4585
4585
|
}
|
|
4586
4586
|
};
|
|
4587
|
+
var ProjectArchiveRepository = class extends BaseRepository {
|
|
4588
|
+
create() {
|
|
4589
|
+
return this.run(`/actions/project/archive?/create`);
|
|
4590
|
+
}
|
|
4591
|
+
};
|
|
4587
4592
|
var ProjectFsRepository = class extends BaseRepository {
|
|
4588
4593
|
readdir(input) {
|
|
4589
4594
|
return this.run(`/actions/project/fs?/readdir`, input);
|
|
@@ -4601,30 +4606,27 @@ var ProjectLoaderRepository = class extends BaseRepository {
|
|
|
4601
4606
|
}
|
|
4602
4607
|
};
|
|
4603
4608
|
var ProjectPackageRepository = class extends BaseRepository {
|
|
4604
|
-
addComponents(input) {
|
|
4605
|
-
return this.run(`/actions/project/package?/add-components`, input);
|
|
4606
|
-
}
|
|
4607
|
-
addSystems(input) {
|
|
4608
|
-
return this.run(`/actions/project/package?/add-systems`, input);
|
|
4609
|
-
}
|
|
4610
4609
|
createComponent(input) {
|
|
4611
4610
|
return this.run(`/actions/project/package?/create-component`, input);
|
|
4612
4611
|
}
|
|
4613
4612
|
createSystem(input) {
|
|
4614
4613
|
return this.run(`/actions/project/package?/create-system`, input);
|
|
4615
4614
|
}
|
|
4616
|
-
getComponentsManifests(input) {
|
|
4617
|
-
return this.run(`/actions/project/package?/get-components-manifests`, input);
|
|
4618
|
-
}
|
|
4619
|
-
getSystemsManifests(input) {
|
|
4620
|
-
return this.run(`/actions/project/package?/get-systems-manifests`, input);
|
|
4621
|
-
}
|
|
4622
4615
|
getComponents() {
|
|
4623
4616
|
return this.run(`/actions/project/package?/get-components`);
|
|
4624
4617
|
}
|
|
4625
4618
|
getSystems() {
|
|
4626
4619
|
return this.run(`/actions/project/package?/get-systems`);
|
|
4627
4620
|
}
|
|
4621
|
+
getAssets() {
|
|
4622
|
+
return this.run(`/actions/project/package?/get-assets`);
|
|
4623
|
+
}
|
|
4624
|
+
installPackages(input) {
|
|
4625
|
+
return this.run(`/actions/project/package?/install-packages`, input);
|
|
4626
|
+
}
|
|
4627
|
+
searchPackages(input) {
|
|
4628
|
+
return this.run(`/actions/project/package?/search-packages`, input);
|
|
4629
|
+
}
|
|
4628
4630
|
};
|
|
4629
4631
|
var ProjectRepository = class extends BaseRepository {
|
|
4630
4632
|
load(input) {
|
|
@@ -4645,6 +4647,9 @@ var ProjectRepository = class extends BaseRepository {
|
|
|
4645
4647
|
getGatewayProjects() {
|
|
4646
4648
|
return this.run(`/actions/project?/get-gateway-projects`);
|
|
4647
4649
|
}
|
|
4650
|
+
syncGatewayProject() {
|
|
4651
|
+
return this.run(`/actions/project?/sync-gateway-project`);
|
|
4652
|
+
}
|
|
4648
4653
|
};
|
|
4649
4654
|
var ProjectSaveRepository = class extends BaseRepository {
|
|
4650
4655
|
get() {
|
|
@@ -4657,6 +4662,7 @@ var ProjectSaveRepository = class extends BaseRepository {
|
|
|
4657
4662
|
var getActionClient = (projectId) => {
|
|
4658
4663
|
const client = new HttpClient("", projectId ? { headers: { [SESSION_PROJECT_HEADER]: projectId } } : {});
|
|
4659
4664
|
return {
|
|
4665
|
+
archive: new ProjectArchiveRepository(client),
|
|
4660
4666
|
fs: new ProjectFsRepository(client),
|
|
4661
4667
|
loader: new ProjectLoaderRepository(client),
|
|
4662
4668
|
package: new ProjectPackageRepository(client),
|
|
@@ -4678,6 +4684,11 @@ var systemTransformer = (system) => ({
|
|
|
4678
4684
|
path: system.save.path
|
|
4679
4685
|
});
|
|
4680
4686
|
var systemsTransformer = (systems) => systems.map(systemTransformer);
|
|
4687
|
+
var assetTransformer = (asset) => ({
|
|
4688
|
+
id: asset.path,
|
|
4689
|
+
path: asset.path
|
|
4690
|
+
});
|
|
4691
|
+
var assetsTransformer = (assets) => assets.map(assetTransformer);
|
|
4681
4692
|
var libraryTransformer = (lib) => ({
|
|
4682
4693
|
id: lib.path,
|
|
4683
4694
|
name: lib.name
|
|
@@ -4707,7 +4718,7 @@ var randomString = (nb, { numbers = true, lowers = true, uppers = false, special
|
|
|
4707
4718
|
return [...Array(nb)].map(() => chars[Math.floor(Math.random() * chars.length)]).join("");
|
|
4708
4719
|
};
|
|
4709
4720
|
var resetSubscriptions = (store) => {
|
|
4710
|
-
const subscriptions = get$
|
|
4721
|
+
const subscriptions = get$2(store);
|
|
4711
4722
|
Object.values(subscriptions).forEach((sub) => {
|
|
4712
4723
|
try {
|
|
4713
4724
|
sub?.();
|
|
@@ -4716,7 +4727,7 @@ var resetSubscriptions = (store) => {
|
|
|
4716
4727
|
store.set({});
|
|
4717
4728
|
};
|
|
4718
4729
|
var resetListeners = (store) => {
|
|
4719
|
-
get$
|
|
4730
|
+
get$2(store)?.forEach((sub) => {
|
|
4720
4731
|
try {
|
|
4721
4732
|
sub();
|
|
4722
4733
|
} catch {}
|
|
@@ -4724,7 +4735,7 @@ var resetListeners = (store) => {
|
|
|
4724
4735
|
store.set(null);
|
|
4725
4736
|
};
|
|
4726
4737
|
var resolveStore = (storage, resolvable, defaultValue) => {
|
|
4727
|
-
const content = get$
|
|
4738
|
+
const content = get$2(storage);
|
|
4728
4739
|
if (resolvable in content) return content[resolvable];
|
|
4729
4740
|
content[resolvable] = writable(defaultValue);
|
|
4730
4741
|
storage.set(content);
|
|
@@ -4736,6 +4747,114 @@ var getId = (data, name) => {
|
|
|
4736
4747
|
while (data.find((d) => d.id === id)) id = `${baseId}_${randomString(5)}`;
|
|
4737
4748
|
return id;
|
|
4738
4749
|
};
|
|
4750
|
+
var _storage$15 = writable({});
|
|
4751
|
+
var AssetHandle = class {
|
|
4752
|
+
_manager;
|
|
4753
|
+
_store;
|
|
4754
|
+
id;
|
|
4755
|
+
static reset() {
|
|
4756
|
+
_storage$15.set({});
|
|
4757
|
+
}
|
|
4758
|
+
constructor(manager, asset) {
|
|
4759
|
+
this._manager = manager;
|
|
4760
|
+
this.id = asset.id;
|
|
4761
|
+
this._store = resolveStore(_storage$15, this.id, asset);
|
|
4762
|
+
}
|
|
4763
|
+
get store() {
|
|
4764
|
+
return this._store;
|
|
4765
|
+
}
|
|
4766
|
+
get data() {
|
|
4767
|
+
return get$2(this._store);
|
|
4768
|
+
}
|
|
4769
|
+
update(asset) {
|
|
4770
|
+
this._store.set({
|
|
4771
|
+
...get$2(this._store),
|
|
4772
|
+
...asset
|
|
4773
|
+
});
|
|
4774
|
+
}
|
|
4775
|
+
delete() {
|
|
4776
|
+
return this._manager.delete(this.id);
|
|
4777
|
+
}
|
|
4778
|
+
};
|
|
4779
|
+
var _storage$14 = writable([]);
|
|
4780
|
+
var _subscriptions$7 = writable({});
|
|
4781
|
+
var AssetManager = class {
|
|
4782
|
+
static reset() {
|
|
4783
|
+
_storage$14.set([]);
|
|
4784
|
+
resetSubscriptions(_subscriptions$7);
|
|
4785
|
+
}
|
|
4786
|
+
constructor(assets) {
|
|
4787
|
+
_storage$14.set(assets);
|
|
4788
|
+
}
|
|
4789
|
+
get store() {
|
|
4790
|
+
return _storage$14;
|
|
4791
|
+
}
|
|
4792
|
+
get data() {
|
|
4793
|
+
return get$2(_storage$14);
|
|
4794
|
+
}
|
|
4795
|
+
async createMany(files) {
|
|
4796
|
+
const { fs } = useProject();
|
|
4797
|
+
await Promise.all(files.map(this.create.bind(this)));
|
|
4798
|
+
await this.sync();
|
|
4799
|
+
await (await fs.getDirectory()).readdir(true);
|
|
4800
|
+
}
|
|
4801
|
+
async create(file) {
|
|
4802
|
+
const { fs } = useProject();
|
|
4803
|
+
const assetFile = await (await fs.getDirectory("assets")).getFile(file.name);
|
|
4804
|
+
const stream = await assetFile.createWritable();
|
|
4805
|
+
await file.stream().pipeTo(stream);
|
|
4806
|
+
await assetFile.sync();
|
|
4807
|
+
}
|
|
4808
|
+
add(asset) {
|
|
4809
|
+
this._add(assetTransformer(asset));
|
|
4810
|
+
}
|
|
4811
|
+
async sync() {
|
|
4812
|
+
const { actions } = useProject();
|
|
4813
|
+
const assets = await actions.package.getAssets();
|
|
4814
|
+
_storage$14.set(assetsTransformer(assets));
|
|
4815
|
+
}
|
|
4816
|
+
get(id) {
|
|
4817
|
+
const asset = get$2(_storage$14).find((asset) => asset.id === id);
|
|
4818
|
+
if (!asset) throw new Error(`Asset with id ${id} not found`);
|
|
4819
|
+
const handle = new AssetHandle(this, asset);
|
|
4820
|
+
this._subscribe(id, handle);
|
|
4821
|
+
return handle;
|
|
4822
|
+
}
|
|
4823
|
+
async delete(id) {
|
|
4824
|
+
const assets = get$2(_storage$14);
|
|
4825
|
+
const asset = assets.find((c) => c.id === id);
|
|
4826
|
+
if (!asset) throw new Error(`System not found: ${id}`);
|
|
4827
|
+
_storage$14.set(assets.filter((c) => c.id !== id));
|
|
4828
|
+
const { fs } = useProject();
|
|
4829
|
+
await (await fs.getFile(asset.path)).delete();
|
|
4830
|
+
const subscriptions = get$2(_subscriptions$7);
|
|
4831
|
+
if (subscriptions[id]) {
|
|
4832
|
+
subscriptions[id]();
|
|
4833
|
+
subscriptions[id] = null;
|
|
4834
|
+
_subscriptions$7.set(subscriptions);
|
|
4835
|
+
}
|
|
4836
|
+
}
|
|
4837
|
+
_add(asset) {
|
|
4838
|
+
const assets = get$2(_storage$14);
|
|
4839
|
+
assets.push(asset);
|
|
4840
|
+
_storage$14.set(assets);
|
|
4841
|
+
}
|
|
4842
|
+
_subscribe(id, handle) {
|
|
4843
|
+
setTimeout(() => {
|
|
4844
|
+
const subscriptions = get$2(_subscriptions$7);
|
|
4845
|
+
if (subscriptions[id]) return;
|
|
4846
|
+
subscriptions[id] = handle.store.subscribe((asset) => this._update(id, asset));
|
|
4847
|
+
_subscriptions$7.set(subscriptions);
|
|
4848
|
+
}, 0);
|
|
4849
|
+
}
|
|
4850
|
+
_update(id, asset) {
|
|
4851
|
+
const assets = get$2(_storage$14);
|
|
4852
|
+
const index = assets.findIndex((s) => s.id === id);
|
|
4853
|
+
if (index === -1) return;
|
|
4854
|
+
assets[index] = asset;
|
|
4855
|
+
_storage$14.set(assets);
|
|
4856
|
+
}
|
|
4857
|
+
};
|
|
4739
4858
|
var _storage$13 = writable({});
|
|
4740
4859
|
var ComponentHandle = class {
|
|
4741
4860
|
_manager;
|
|
@@ -4753,11 +4872,11 @@ var ComponentHandle = class {
|
|
|
4753
4872
|
return this._store;
|
|
4754
4873
|
}
|
|
4755
4874
|
get data() {
|
|
4756
|
-
return get$
|
|
4875
|
+
return get$2(this._store);
|
|
4757
4876
|
}
|
|
4758
4877
|
update(component) {
|
|
4759
4878
|
this._store.set({
|
|
4760
|
-
...get$
|
|
4879
|
+
...get$2(this._store),
|
|
4761
4880
|
...component
|
|
4762
4881
|
});
|
|
4763
4882
|
}
|
|
@@ -4779,7 +4898,7 @@ var ComponentManager = class {
|
|
|
4779
4898
|
return _storage$12;
|
|
4780
4899
|
}
|
|
4781
4900
|
get data() {
|
|
4782
|
-
return get$
|
|
4901
|
+
return get$2(_storage$12);
|
|
4783
4902
|
}
|
|
4784
4903
|
async create(name) {
|
|
4785
4904
|
const { actions, fs } = useProject();
|
|
@@ -4787,12 +4906,8 @@ var ComponentManager = class {
|
|
|
4787
4906
|
this._add(componentTransformer(component));
|
|
4788
4907
|
await (await fs.getDirectory()).readdir(true);
|
|
4789
4908
|
}
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
await actions.package.addComponents({ componentNames: names });
|
|
4793
|
-
await this.sync();
|
|
4794
|
-
await ecs.components.sync();
|
|
4795
|
-
await (await fs.getDirectory()).readdir(true);
|
|
4909
|
+
add(component) {
|
|
4910
|
+
this._add(componentTransformer(component));
|
|
4796
4911
|
}
|
|
4797
4912
|
async sync() {
|
|
4798
4913
|
const { actions } = useProject();
|
|
@@ -4800,20 +4915,20 @@ var ComponentManager = class {
|
|
|
4800
4915
|
_storage$12.set(componentsTransformer(components));
|
|
4801
4916
|
}
|
|
4802
4917
|
get(id) {
|
|
4803
|
-
const component = get$
|
|
4918
|
+
const component = get$2(_storage$12).find((component) => component.id === id);
|
|
4804
4919
|
if (!component) throw new Error(`Component with id ${id} not found`);
|
|
4805
4920
|
const handle = new ComponentHandle(this, component);
|
|
4806
4921
|
this._subscribe(id, handle);
|
|
4807
4922
|
return handle;
|
|
4808
4923
|
}
|
|
4809
4924
|
async delete(id) {
|
|
4810
|
-
const components = get$
|
|
4925
|
+
const components = get$2(_storage$12);
|
|
4811
4926
|
const component = components.find((c) => c.id === id);
|
|
4812
4927
|
if (!component) throw new Error(`System not found: ${id}`);
|
|
4813
4928
|
_storage$12.set(components.filter((c) => c.id !== id));
|
|
4814
4929
|
const { fs } = useProject();
|
|
4815
4930
|
await (await fs.getFile(component.path)).delete();
|
|
4816
|
-
const subscriptions = get$
|
|
4931
|
+
const subscriptions = get$2(_subscriptions$6);
|
|
4817
4932
|
if (subscriptions[id]) {
|
|
4818
4933
|
subscriptions[id]();
|
|
4819
4934
|
subscriptions[id] = null;
|
|
@@ -4821,20 +4936,20 @@ var ComponentManager = class {
|
|
|
4821
4936
|
}
|
|
4822
4937
|
}
|
|
4823
4938
|
_add(component) {
|
|
4824
|
-
const components = get$
|
|
4939
|
+
const components = get$2(_storage$12);
|
|
4825
4940
|
components.push(component);
|
|
4826
4941
|
_storage$12.set(components);
|
|
4827
4942
|
}
|
|
4828
4943
|
_subscribe(id, handle) {
|
|
4829
4944
|
setTimeout(() => {
|
|
4830
|
-
const subscriptions = get$
|
|
4945
|
+
const subscriptions = get$2(_subscriptions$6);
|
|
4831
4946
|
if (subscriptions[id]) return;
|
|
4832
4947
|
subscriptions[id] = handle.store.subscribe((component) => this._update(id, component));
|
|
4833
4948
|
_subscriptions$6.set(subscriptions);
|
|
4834
4949
|
}, 0);
|
|
4835
4950
|
}
|
|
4836
4951
|
_update(id, component) {
|
|
4837
|
-
const components = get$
|
|
4952
|
+
const components = get$2(_storage$12);
|
|
4838
4953
|
const index = components.findIndex((s) => s.id === id);
|
|
4839
4954
|
if (index === -1) return;
|
|
4840
4955
|
components[index] = component;
|
|
@@ -4858,11 +4973,11 @@ var LibraryHandle = class {
|
|
|
4858
4973
|
return this._store;
|
|
4859
4974
|
}
|
|
4860
4975
|
get data() {
|
|
4861
|
-
return get$
|
|
4976
|
+
return get$2(this._store);
|
|
4862
4977
|
}
|
|
4863
4978
|
update(library) {
|
|
4864
4979
|
this._store.set({
|
|
4865
|
-
...get$
|
|
4980
|
+
...get$2(this._store),
|
|
4866
4981
|
...library
|
|
4867
4982
|
});
|
|
4868
4983
|
}
|
|
@@ -4884,10 +4999,10 @@ var LibraryManager = class {
|
|
|
4884
4999
|
return _storage$10;
|
|
4885
5000
|
}
|
|
4886
5001
|
get data() {
|
|
4887
|
-
return get$
|
|
5002
|
+
return get$2(_storage$10);
|
|
4888
5003
|
}
|
|
4889
5004
|
add(library) {
|
|
4890
|
-
const libraries = get$
|
|
5005
|
+
const libraries = get$2(_storage$10);
|
|
4891
5006
|
libraries.push({
|
|
4892
5007
|
...library,
|
|
4893
5008
|
id: library.name
|
|
@@ -4896,16 +5011,16 @@ var LibraryManager = class {
|
|
|
4896
5011
|
return library.name;
|
|
4897
5012
|
}
|
|
4898
5013
|
get(id) {
|
|
4899
|
-
const library = get$
|
|
5014
|
+
const library = get$2(_storage$10).find((library) => library.id === id);
|
|
4900
5015
|
if (!library) throw new Error(`Library with id ${id} not found`);
|
|
4901
5016
|
const handle = new LibraryHandle(this, library);
|
|
4902
5017
|
this._subscribe(id, handle);
|
|
4903
5018
|
return handle;
|
|
4904
5019
|
}
|
|
4905
5020
|
delete(id) {
|
|
4906
|
-
const libraries = get$
|
|
5021
|
+
const libraries = get$2(_storage$10);
|
|
4907
5022
|
_storage$10.set(libraries.filter((library) => library.id !== id));
|
|
4908
|
-
const subscriptions = get$
|
|
5023
|
+
const subscriptions = get$2(_subscriptions$5);
|
|
4909
5024
|
if (subscriptions[id]) {
|
|
4910
5025
|
subscriptions[id]();
|
|
4911
5026
|
subscriptions[id] = null;
|
|
@@ -4914,14 +5029,14 @@ var LibraryManager = class {
|
|
|
4914
5029
|
}
|
|
4915
5030
|
_subscribe(id, handle) {
|
|
4916
5031
|
setTimeout(() => {
|
|
4917
|
-
const subscriptions = get$
|
|
5032
|
+
const subscriptions = get$2(_subscriptions$5);
|
|
4918
5033
|
if (subscriptions[id]) return;
|
|
4919
5034
|
subscriptions[id] = handle.store.subscribe((library) => this._update(id, library));
|
|
4920
5035
|
_subscriptions$5.set(subscriptions);
|
|
4921
5036
|
}, 0);
|
|
4922
5037
|
}
|
|
4923
5038
|
_update(id, library) {
|
|
4924
|
-
const libraries = get$
|
|
5039
|
+
const libraries = get$2(_storage$10);
|
|
4925
5040
|
const index = libraries.findIndex((s) => s.id === id);
|
|
4926
5041
|
if (index === -1) return;
|
|
4927
5042
|
libraries[index] = library;
|
|
@@ -4959,7 +5074,7 @@ var ComponentParamHandle = class {
|
|
|
4959
5074
|
this.manager.delete(this.id);
|
|
4960
5075
|
}
|
|
4961
5076
|
_listen() {
|
|
4962
|
-
if (get$
|
|
5077
|
+
if (get$2(_listener$5)) return;
|
|
4963
5078
|
const unsub = this.manager.component.store.subscribe((component) => {
|
|
4964
5079
|
const newParam = component.params.find((param) => param.name === this.id);
|
|
4965
5080
|
if (!newParam) return;
|
|
@@ -4986,7 +5101,7 @@ var ComponentParamManager = class {
|
|
|
4986
5101
|
constructor(component, params) {
|
|
4987
5102
|
this.component = component;
|
|
4988
5103
|
this._storageResolvable = `${this.component.manager.entity.manager.scene.id}/${this.component.manager.entity.id}/${this.component.id}`;
|
|
4989
|
-
this._store = resolveStore(_storage$8, this._storageResolvable, get$
|
|
5104
|
+
this._store = resolveStore(_storage$8, this._storageResolvable, get$2(component.store).params);
|
|
4990
5105
|
this._valuesStore = resolveStore(_valueStorage, this._storageResolvable, params);
|
|
4991
5106
|
this._listen();
|
|
4992
5107
|
}
|
|
@@ -4997,21 +5112,21 @@ var ComponentParamManager = class {
|
|
|
4997
5112
|
return this._valuesStore;
|
|
4998
5113
|
}
|
|
4999
5114
|
get(id) {
|
|
5000
|
-
const param = get$
|
|
5115
|
+
const param = get$2(this._store).find((param) => param.name === id);
|
|
5001
5116
|
if (!param) throw new Error(`Param with id ${id} not found`);
|
|
5002
|
-
const value = get$
|
|
5117
|
+
const value = get$2(this._valuesStore)[id];
|
|
5003
5118
|
const handle = new ComponentParamHandle(this, param, value);
|
|
5004
5119
|
this._subscribe(id, handle);
|
|
5005
5120
|
return handle;
|
|
5006
5121
|
}
|
|
5007
5122
|
delete(id) {
|
|
5008
|
-
const params = get$
|
|
5123
|
+
const params = get$2(this._store);
|
|
5009
5124
|
this._store.set(params.map((param) => param.name === id ? {
|
|
5010
5125
|
...param,
|
|
5011
5126
|
value: void 0
|
|
5012
5127
|
} : param));
|
|
5013
5128
|
const fullId = `${this._storageResolvable}/${id}`;
|
|
5014
|
-
const subscriptions = get$
|
|
5129
|
+
const subscriptions = get$2(_subscriptions$4);
|
|
5015
5130
|
if (subscriptions[fullId]) {
|
|
5016
5131
|
subscriptions[fullId]();
|
|
5017
5132
|
subscriptions[fullId] = null;
|
|
@@ -5019,7 +5134,7 @@ var ComponentParamManager = class {
|
|
|
5019
5134
|
}
|
|
5020
5135
|
}
|
|
5021
5136
|
_listen() {
|
|
5022
|
-
if (get$
|
|
5137
|
+
if (get$2(_listener$4)) return;
|
|
5023
5138
|
const unsub = this.component.store.subscribe((component) => {
|
|
5024
5139
|
this._store.set(component.params);
|
|
5025
5140
|
});
|
|
@@ -5028,14 +5143,14 @@ var ComponentParamManager = class {
|
|
|
5028
5143
|
_subscribe(id, handle) {
|
|
5029
5144
|
setTimeout(() => {
|
|
5030
5145
|
const fullId = `${this._storageResolvable}/${id}`;
|
|
5031
|
-
const subscriptions = get$
|
|
5146
|
+
const subscriptions = get$2(_subscriptions$4);
|
|
5032
5147
|
if (subscriptions[fullId]) return;
|
|
5033
5148
|
subscriptions[fullId] = handle.value.subscribe((param) => this._update(id, param));
|
|
5034
5149
|
_subscriptions$4.set(subscriptions);
|
|
5035
5150
|
}, 0);
|
|
5036
5151
|
}
|
|
5037
5152
|
_update(id, value) {
|
|
5038
|
-
const params = get$
|
|
5153
|
+
const params = get$2(this._valuesStore);
|
|
5039
5154
|
params[id] = value;
|
|
5040
5155
|
this._valuesStore.set(params);
|
|
5041
5156
|
}
|
|
@@ -5055,7 +5170,7 @@ var EntityComponentHandle = class {
|
|
|
5055
5170
|
return this._store;
|
|
5056
5171
|
}
|
|
5057
5172
|
get data() {
|
|
5058
|
-
return get$
|
|
5173
|
+
return get$2(this._store);
|
|
5059
5174
|
}
|
|
5060
5175
|
get params() {
|
|
5061
5176
|
return this._params;
|
|
@@ -5086,30 +5201,30 @@ var EntityComponentManager = class {
|
|
|
5086
5201
|
return this._store;
|
|
5087
5202
|
}
|
|
5088
5203
|
get data() {
|
|
5089
|
-
return get$
|
|
5204
|
+
return get$2(this._store);
|
|
5090
5205
|
}
|
|
5091
5206
|
add(component) {
|
|
5092
|
-
const components = get$
|
|
5207
|
+
const components = get$2(this._store);
|
|
5093
5208
|
const manifest = this.entity.manager.scene.manager.ecs.components.get(component).data;
|
|
5094
5209
|
components[component] = { ...Object.fromEntries(manifest.params.filter((param) => param.default).map((param) => [param.name, param.default])) };
|
|
5095
5210
|
this._store.set(components);
|
|
5096
5211
|
}
|
|
5097
5212
|
get(id) {
|
|
5098
|
-
const params = get$
|
|
5213
|
+
const params = get$2(this._store)[id];
|
|
5099
5214
|
if (!params) throw new Error(`Component with id ${id} not found`);
|
|
5100
5215
|
const handle = new EntityComponentHandle(this, id, params);
|
|
5101
5216
|
this._subscribe(id, handle);
|
|
5102
5217
|
return handle;
|
|
5103
5218
|
}
|
|
5104
5219
|
delete(id) {
|
|
5105
|
-
const components = get$
|
|
5220
|
+
const components = get$2(this._store);
|
|
5106
5221
|
const newComponents = {};
|
|
5107
5222
|
Object.entries(components).forEach(([key, params]) => {
|
|
5108
5223
|
if (key !== id) newComponents[key] = params;
|
|
5109
5224
|
});
|
|
5110
5225
|
this._store.set(newComponents);
|
|
5111
5226
|
const fullId = `${this._storageResolvable}/${id}`;
|
|
5112
|
-
const subscriptions = get$
|
|
5227
|
+
const subscriptions = get$2(_subscriptions$3);
|
|
5113
5228
|
if (subscriptions[fullId]) {
|
|
5114
5229
|
subscriptions[fullId]();
|
|
5115
5230
|
subscriptions[fullId] = null;
|
|
@@ -5117,9 +5232,9 @@ var EntityComponentManager = class {
|
|
|
5117
5232
|
}
|
|
5118
5233
|
}
|
|
5119
5234
|
_listen() {
|
|
5120
|
-
if (get$
|
|
5235
|
+
if (get$2(_listener$3)) return;
|
|
5121
5236
|
const unsub = this.entity.manager.scene.manager.ecs.components.store.subscribe((components) => {
|
|
5122
|
-
const entityComponents = get$
|
|
5237
|
+
const entityComponents = get$2(this._store);
|
|
5123
5238
|
const newComponents = {};
|
|
5124
5239
|
Object.entries(entityComponents).forEach(([key, params]) => {
|
|
5125
5240
|
if (components.find((s) => s.id === key)) newComponents[key] = params;
|
|
@@ -5131,14 +5246,14 @@ var EntityComponentManager = class {
|
|
|
5131
5246
|
_subscribe(id, handle) {
|
|
5132
5247
|
setTimeout(() => {
|
|
5133
5248
|
const fullId = `${this._storageResolvable}/${id}`;
|
|
5134
|
-
const subscriptions = get$
|
|
5249
|
+
const subscriptions = get$2(_subscriptions$3);
|
|
5135
5250
|
if (subscriptions[fullId]) return;
|
|
5136
5251
|
subscriptions[fullId] = handle.params.values.subscribe((params) => this._update(id, params));
|
|
5137
5252
|
_subscriptions$3.set(subscriptions);
|
|
5138
5253
|
}, 0);
|
|
5139
5254
|
}
|
|
5140
5255
|
_update(id, params) {
|
|
5141
|
-
const component = get$
|
|
5256
|
+
const component = get$2(this._store);
|
|
5142
5257
|
component[id] = params;
|
|
5143
5258
|
this._store.set(component);
|
|
5144
5259
|
}
|
|
@@ -5165,14 +5280,14 @@ var SceneEntityHandle = class {
|
|
|
5165
5280
|
return this._store;
|
|
5166
5281
|
}
|
|
5167
5282
|
get data() {
|
|
5168
|
-
return get$
|
|
5283
|
+
return get$2(this._store);
|
|
5169
5284
|
}
|
|
5170
5285
|
get components() {
|
|
5171
5286
|
return this._components;
|
|
5172
5287
|
}
|
|
5173
5288
|
update(entity) {
|
|
5174
5289
|
this._store.set({
|
|
5175
|
-
...get$
|
|
5290
|
+
...get$2(this._store),
|
|
5176
5291
|
...entity
|
|
5177
5292
|
});
|
|
5178
5293
|
}
|
|
@@ -5183,9 +5298,9 @@ var SceneEntityHandle = class {
|
|
|
5183
5298
|
this.manager.selected = this;
|
|
5184
5299
|
}
|
|
5185
5300
|
_listen() {
|
|
5186
|
-
if (get$
|
|
5301
|
+
if (get$2(_listener$2)) return;
|
|
5187
5302
|
const unsub = this._components.store.subscribe((components) => {
|
|
5188
|
-
const entity = get$
|
|
5303
|
+
const entity = get$2(this._store);
|
|
5189
5304
|
entity.components = components;
|
|
5190
5305
|
this._store.set(entity);
|
|
5191
5306
|
});
|
|
@@ -5210,10 +5325,10 @@ var SceneEntityManager = class {
|
|
|
5210
5325
|
return this._store;
|
|
5211
5326
|
}
|
|
5212
5327
|
get data() {
|
|
5213
|
-
return get$
|
|
5328
|
+
return get$2(this._store);
|
|
5214
5329
|
}
|
|
5215
5330
|
get selectedData() {
|
|
5216
|
-
return get$
|
|
5331
|
+
return get$2(selectedEntity);
|
|
5217
5332
|
}
|
|
5218
5333
|
get selected() {
|
|
5219
5334
|
return selectedEntity;
|
|
@@ -5222,7 +5337,7 @@ var SceneEntityManager = class {
|
|
|
5222
5337
|
selectedEntity.set(entity);
|
|
5223
5338
|
}
|
|
5224
5339
|
add(entity) {
|
|
5225
|
-
const entities = get$
|
|
5340
|
+
const entities = get$2(this._store);
|
|
5226
5341
|
const id = getId(this.data, entity.name);
|
|
5227
5342
|
entities.push({
|
|
5228
5343
|
...entity,
|
|
@@ -5232,17 +5347,17 @@ var SceneEntityManager = class {
|
|
|
5232
5347
|
return id;
|
|
5233
5348
|
}
|
|
5234
5349
|
get(id) {
|
|
5235
|
-
const entity = get$
|
|
5350
|
+
const entity = get$2(this._store).find((entity) => entity.id === id);
|
|
5236
5351
|
if (!entity) throw new Error(`Entity with id ${id} not found`);
|
|
5237
5352
|
const handle = new SceneEntityHandle(this, entity);
|
|
5238
5353
|
this._subscribe(id, handle);
|
|
5239
5354
|
return handle;
|
|
5240
5355
|
}
|
|
5241
5356
|
delete(id) {
|
|
5242
|
-
const entities = get$
|
|
5357
|
+
const entities = get$2(this._store);
|
|
5243
5358
|
this._store.set(entities.filter((entity) => entity.id !== id));
|
|
5244
5359
|
const fullId = `${this.scene.id}/${id}`;
|
|
5245
|
-
const subscriptions = get$
|
|
5360
|
+
const subscriptions = get$2(_subscriptions$2);
|
|
5246
5361
|
if (subscriptions[fullId]) {
|
|
5247
5362
|
subscriptions[fullId]();
|
|
5248
5363
|
subscriptions[fullId] = null;
|
|
@@ -5253,14 +5368,14 @@ var SceneEntityManager = class {
|
|
|
5253
5368
|
_subscribe(id, handle) {
|
|
5254
5369
|
setTimeout(() => {
|
|
5255
5370
|
const fullId = `${this.scene.id}/${id}`;
|
|
5256
|
-
const subscriptions = get$
|
|
5371
|
+
const subscriptions = get$2(_subscriptions$2);
|
|
5257
5372
|
if (subscriptions[fullId]) return;
|
|
5258
5373
|
subscriptions[fullId] = handle.store.subscribe((entity) => this._update(id, entity));
|
|
5259
5374
|
_subscriptions$2.set(subscriptions);
|
|
5260
5375
|
}, 0);
|
|
5261
5376
|
}
|
|
5262
5377
|
_update(id, entity) {
|
|
5263
|
-
const entities = get$
|
|
5378
|
+
const entities = get$2(this._store);
|
|
5264
5379
|
const index = entities.findIndex((s) => s.id === id);
|
|
5265
5380
|
if (index === -1) return;
|
|
5266
5381
|
entities[index] = entity;
|
|
@@ -5280,7 +5395,7 @@ var SceneSystemHandle = class {
|
|
|
5280
5395
|
return this._store;
|
|
5281
5396
|
}
|
|
5282
5397
|
get data() {
|
|
5283
|
-
return get$
|
|
5398
|
+
return get$2(this._store);
|
|
5284
5399
|
}
|
|
5285
5400
|
delete() {
|
|
5286
5401
|
this.manager.delete(this.id);
|
|
@@ -5304,26 +5419,26 @@ var SceneSystemManager = class {
|
|
|
5304
5419
|
return this._store;
|
|
5305
5420
|
}
|
|
5306
5421
|
get data() {
|
|
5307
|
-
return get$
|
|
5422
|
+
return get$2(this._store);
|
|
5308
5423
|
}
|
|
5309
5424
|
add(system) {
|
|
5310
|
-
const systems = get$
|
|
5425
|
+
const systems = get$2(this._store);
|
|
5311
5426
|
systems.push(system);
|
|
5312
5427
|
this._store.set(systems);
|
|
5313
5428
|
}
|
|
5314
5429
|
get(id) {
|
|
5315
|
-
const system = get$
|
|
5430
|
+
const system = get$2(this._store).find((system) => system === id);
|
|
5316
5431
|
if (!system) throw new Error(`System with id ${id} not found`);
|
|
5317
5432
|
return new SceneSystemHandle(this, system);
|
|
5318
5433
|
}
|
|
5319
5434
|
delete(id) {
|
|
5320
|
-
const systems = get$
|
|
5435
|
+
const systems = get$2(this._store);
|
|
5321
5436
|
this._store.set(systems.filter((system) => system !== id));
|
|
5322
5437
|
}
|
|
5323
5438
|
_listen() {
|
|
5324
|
-
if (get$
|
|
5439
|
+
if (get$2(_listener$1)) return;
|
|
5325
5440
|
const unsub = this.scene.manager.ecs.systems.store.subscribe((systems) => {
|
|
5326
|
-
const sceneSystems = get$
|
|
5441
|
+
const sceneSystems = get$2(this._store);
|
|
5327
5442
|
sceneSystems.filter((system) => systems.find((s) => s.id === system));
|
|
5328
5443
|
this._store.set(sceneSystems);
|
|
5329
5444
|
});
|
|
@@ -5354,7 +5469,7 @@ var SceneHandle = class {
|
|
|
5354
5469
|
return this._store;
|
|
5355
5470
|
}
|
|
5356
5471
|
get data() {
|
|
5357
|
-
return get$
|
|
5472
|
+
return get$2(this._store);
|
|
5358
5473
|
}
|
|
5359
5474
|
get entities() {
|
|
5360
5475
|
return this._entities;
|
|
@@ -5364,7 +5479,7 @@ var SceneHandle = class {
|
|
|
5364
5479
|
}
|
|
5365
5480
|
update(scene) {
|
|
5366
5481
|
this._store.set({
|
|
5367
|
-
...get$
|
|
5482
|
+
...get$2(this._store),
|
|
5368
5483
|
...scene
|
|
5369
5484
|
});
|
|
5370
5485
|
}
|
|
@@ -5378,13 +5493,13 @@ var SceneHandle = class {
|
|
|
5378
5493
|
this.manager.default = this.id;
|
|
5379
5494
|
}
|
|
5380
5495
|
_listen() {
|
|
5381
|
-
if (get$
|
|
5496
|
+
if (get$2(_listener)) return;
|
|
5382
5497
|
const unsub = [this._entities.store.subscribe((entities) => {
|
|
5383
|
-
const scene = get$
|
|
5498
|
+
const scene = get$2(this._store);
|
|
5384
5499
|
scene.entities = entities;
|
|
5385
5500
|
this._store.set(scene);
|
|
5386
5501
|
}), this._systems.store.subscribe((systems) => {
|
|
5387
|
-
const scene = get$
|
|
5502
|
+
const scene = get$2(this._store);
|
|
5388
5503
|
scene.systems = systems;
|
|
5389
5504
|
this._store.set(scene);
|
|
5390
5505
|
})];
|
|
@@ -5418,10 +5533,10 @@ var SceneManager = class {
|
|
|
5418
5533
|
return _storage$2;
|
|
5419
5534
|
}
|
|
5420
5535
|
get data() {
|
|
5421
|
-
return get$
|
|
5536
|
+
return get$2(_storage$2);
|
|
5422
5537
|
}
|
|
5423
5538
|
get activeData() {
|
|
5424
|
-
return get$
|
|
5539
|
+
return get$2(_activeSceneStorage);
|
|
5425
5540
|
}
|
|
5426
5541
|
get active() {
|
|
5427
5542
|
return _activeSceneStorage;
|
|
@@ -5430,7 +5545,7 @@ var SceneManager = class {
|
|
|
5430
5545
|
_activeSceneStorage.set(handle);
|
|
5431
5546
|
}
|
|
5432
5547
|
get defaultData() {
|
|
5433
|
-
return get$
|
|
5548
|
+
return get$2(_defaultSceneStorage);
|
|
5434
5549
|
}
|
|
5435
5550
|
get default() {
|
|
5436
5551
|
return _defaultSceneStorage;
|
|
@@ -5439,7 +5554,7 @@ var SceneManager = class {
|
|
|
5439
5554
|
_defaultSceneStorage.set(handle);
|
|
5440
5555
|
}
|
|
5441
5556
|
get rootScenes() {
|
|
5442
|
-
return get$
|
|
5557
|
+
return get$2(_rootScenesStorage);
|
|
5443
5558
|
}
|
|
5444
5559
|
get rootScenesStore() {
|
|
5445
5560
|
return _rootScenesStorage;
|
|
@@ -5448,7 +5563,7 @@ var SceneManager = class {
|
|
|
5448
5563
|
_rootScenesStorage.set(Array.from(new Set(scenes)));
|
|
5449
5564
|
}
|
|
5450
5565
|
add(scene) {
|
|
5451
|
-
const scenes = get$
|
|
5566
|
+
const scenes = get$2(_storage$2);
|
|
5452
5567
|
const id = getId(this.data, scene.name);
|
|
5453
5568
|
scenes.push({
|
|
5454
5569
|
...scene,
|
|
@@ -5458,16 +5573,16 @@ var SceneManager = class {
|
|
|
5458
5573
|
return id;
|
|
5459
5574
|
}
|
|
5460
5575
|
get(id) {
|
|
5461
|
-
const scene = get$
|
|
5576
|
+
const scene = get$2(_storage$2).find((scene) => scene.id === id);
|
|
5462
5577
|
if (!scene) throw new Error(`Scene with id ${id} not found`);
|
|
5463
5578
|
const handle = new SceneHandle(this, scene);
|
|
5464
5579
|
this._subscribe(id, handle);
|
|
5465
5580
|
return handle;
|
|
5466
5581
|
}
|
|
5467
5582
|
delete(id) {
|
|
5468
|
-
const scenes = get$
|
|
5583
|
+
const scenes = get$2(_storage$2);
|
|
5469
5584
|
_storage$2.set(scenes.filter((scene) => scene.id !== id));
|
|
5470
|
-
const subscriptions = get$
|
|
5585
|
+
const subscriptions = get$2(_subscriptions$1);
|
|
5471
5586
|
if (subscriptions[id]) {
|
|
5472
5587
|
subscriptions[id]();
|
|
5473
5588
|
subscriptions[id] = null;
|
|
@@ -5479,14 +5594,14 @@ var SceneManager = class {
|
|
|
5479
5594
|
}
|
|
5480
5595
|
_subscribe(id, handle) {
|
|
5481
5596
|
setTimeout(() => {
|
|
5482
|
-
const subscriptions = get$
|
|
5597
|
+
const subscriptions = get$2(_subscriptions$1);
|
|
5483
5598
|
if (subscriptions[id]) return;
|
|
5484
5599
|
subscriptions[id] = handle.store.subscribe((scene) => this._update(id, scene));
|
|
5485
5600
|
_subscriptions$1.set(subscriptions);
|
|
5486
5601
|
}, 0);
|
|
5487
5602
|
}
|
|
5488
5603
|
_update(id, scene) {
|
|
5489
|
-
const scenes = get$
|
|
5604
|
+
const scenes = get$2(_storage$2);
|
|
5490
5605
|
const index = scenes.findIndex((s) => s.id === id);
|
|
5491
5606
|
if (index === -1) return;
|
|
5492
5607
|
scenes[index] = scene;
|
|
@@ -5510,11 +5625,11 @@ var SystemHandle = class {
|
|
|
5510
5625
|
return this._store;
|
|
5511
5626
|
}
|
|
5512
5627
|
get data() {
|
|
5513
|
-
return get$
|
|
5628
|
+
return get$2(this._store);
|
|
5514
5629
|
}
|
|
5515
5630
|
update(system) {
|
|
5516
5631
|
this._store.set({
|
|
5517
|
-
...get$
|
|
5632
|
+
...get$2(this._store),
|
|
5518
5633
|
...system
|
|
5519
5634
|
});
|
|
5520
5635
|
}
|
|
@@ -5536,7 +5651,7 @@ var SystemManager = class {
|
|
|
5536
5651
|
return _storage;
|
|
5537
5652
|
}
|
|
5538
5653
|
get data() {
|
|
5539
|
-
return get$
|
|
5654
|
+
return get$2(_storage);
|
|
5540
5655
|
}
|
|
5541
5656
|
async create(name) {
|
|
5542
5657
|
const { actions, fs } = useProject();
|
|
@@ -5544,12 +5659,8 @@ var SystemManager = class {
|
|
|
5544
5659
|
this._add(systemTransformer(system));
|
|
5545
5660
|
await (await fs.getDirectory()).readdir(true);
|
|
5546
5661
|
}
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
await actions.package.addSystems({ systemNames: names });
|
|
5550
|
-
await this.sync();
|
|
5551
|
-
await ecs.components.sync();
|
|
5552
|
-
await (await fs.getDirectory()).readdir(true);
|
|
5662
|
+
add(system) {
|
|
5663
|
+
this._add(systemTransformer(system));
|
|
5553
5664
|
}
|
|
5554
5665
|
async sync() {
|
|
5555
5666
|
const { actions } = useProject();
|
|
@@ -5557,20 +5668,20 @@ var SystemManager = class {
|
|
|
5557
5668
|
_storage.set(systemsTransformer(systems));
|
|
5558
5669
|
}
|
|
5559
5670
|
get(id) {
|
|
5560
|
-
const system = get$
|
|
5671
|
+
const system = get$2(_storage).find((system) => system.id === id);
|
|
5561
5672
|
if (!system) throw new Error(`System with id ${id} not found`);
|
|
5562
5673
|
const handle = new SystemHandle(this, system);
|
|
5563
5674
|
this._subscribe(id, handle);
|
|
5564
5675
|
return handle;
|
|
5565
5676
|
}
|
|
5566
5677
|
async delete(id) {
|
|
5567
|
-
const systems = get$
|
|
5678
|
+
const systems = get$2(_storage);
|
|
5568
5679
|
const system = systems.find((s) => s.id === id);
|
|
5569
5680
|
if (!system) throw new Error(`System not found: ${id}`);
|
|
5570
5681
|
_storage.set(systems.filter((s) => s.id !== id));
|
|
5571
5682
|
const { fs } = useProject();
|
|
5572
5683
|
await (await fs.getFile(system.path)).delete();
|
|
5573
|
-
const subscriptions = get$
|
|
5684
|
+
const subscriptions = get$2(_subscriptions);
|
|
5574
5685
|
if (subscriptions[id]) {
|
|
5575
5686
|
subscriptions[id]();
|
|
5576
5687
|
subscriptions[id] = null;
|
|
@@ -5578,20 +5689,20 @@ var SystemManager = class {
|
|
|
5578
5689
|
}
|
|
5579
5690
|
}
|
|
5580
5691
|
_add(system) {
|
|
5581
|
-
const systems = get$
|
|
5692
|
+
const systems = get$2(_storage);
|
|
5582
5693
|
systems.push(system);
|
|
5583
5694
|
_storage.set(systems);
|
|
5584
5695
|
}
|
|
5585
5696
|
_subscribe(id, handle) {
|
|
5586
5697
|
setTimeout(() => {
|
|
5587
|
-
const subscriptions = get$
|
|
5698
|
+
const subscriptions = get$2(_subscriptions);
|
|
5588
5699
|
if (subscriptions[id]) return;
|
|
5589
5700
|
subscriptions[id] = handle.store.subscribe((system) => this._update(id, system));
|
|
5590
5701
|
_subscriptions.set(subscriptions);
|
|
5591
5702
|
}, 0);
|
|
5592
5703
|
}
|
|
5593
5704
|
_update(id, system) {
|
|
5594
|
-
const systems = get$
|
|
5705
|
+
const systems = get$2(_storage);
|
|
5595
5706
|
const index = systems.findIndex((s) => s.id === id);
|
|
5596
5707
|
if (index === -1) return;
|
|
5597
5708
|
systems[index] = system;
|
|
@@ -5601,10 +5712,13 @@ var SystemManager = class {
|
|
|
5601
5712
|
var ECSHandler = class {
|
|
5602
5713
|
_project;
|
|
5603
5714
|
_sceneManager;
|
|
5715
|
+
_assetManager;
|
|
5604
5716
|
_componentManager;
|
|
5605
5717
|
_systemManager;
|
|
5606
5718
|
_libraryManager;
|
|
5607
5719
|
static reset() {
|
|
5720
|
+
AssetHandle.reset();
|
|
5721
|
+
AssetManager.reset();
|
|
5608
5722
|
ComponentHandle.reset();
|
|
5609
5723
|
ComponentManager.reset();
|
|
5610
5724
|
SystemManager.reset();
|
|
@@ -5629,9 +5743,11 @@ var ECSHandler = class {
|
|
|
5629
5743
|
* This init is only made for the current version of the editor
|
|
5630
5744
|
* When scenes will be implemented, this init must be changed accordingly
|
|
5631
5745
|
*/
|
|
5746
|
+
const assets = await this._project.actions.package.getAssets();
|
|
5632
5747
|
const components = await this._project.actions.package.getComponents();
|
|
5633
5748
|
const systems = await this._project.actions.package.getSystems();
|
|
5634
5749
|
const save = await this._project.actions.save.get();
|
|
5750
|
+
this._assetManager = new AssetManager(assetsTransformer(assets));
|
|
5635
5751
|
this._componentManager = new ComponentManager(componentsTransformer(components));
|
|
5636
5752
|
this._systemManager = new SystemManager(systemsTransformer(systems));
|
|
5637
5753
|
this._libraryManager = new LibraryManager(librariesTransformer(save));
|
|
@@ -5641,6 +5757,10 @@ var ECSHandler = class {
|
|
|
5641
5757
|
if (!this._sceneManager) throw new Error("ECS handler not initialized");
|
|
5642
5758
|
return this._sceneManager;
|
|
5643
5759
|
}
|
|
5760
|
+
get assets() {
|
|
5761
|
+
if (!this._assetManager) throw new Error("ECS handler not initialized");
|
|
5762
|
+
return this._assetManager;
|
|
5763
|
+
}
|
|
5644
5764
|
get components() {
|
|
5645
5765
|
if (!this._componentManager) throw new Error("ECS handler not initialized");
|
|
5646
5766
|
return this._componentManager;
|
|
@@ -5654,9 +5774,22 @@ var ECSHandler = class {
|
|
|
5654
5774
|
return this._libraryManager;
|
|
5655
5775
|
}
|
|
5656
5776
|
};
|
|
5777
|
+
var moveComponentListener = (handler) => {
|
|
5778
|
+
handler.on(EditorEvents.MOVE_COMPONENT, (entityId, _componentId, { x, y }) => {
|
|
5779
|
+
const { ecs } = useProject();
|
|
5780
|
+
const component = ecs.scenes.activeData.entities.get(entityId).components.get("Position2D");
|
|
5781
|
+
component.params.get("x").value.set(x);
|
|
5782
|
+
component.params.get("y").value.set(y);
|
|
5783
|
+
});
|
|
5784
|
+
return () => {};
|
|
5785
|
+
};
|
|
5657
5786
|
var EventEmitter = class {
|
|
5658
5787
|
listeners = {};
|
|
5659
5788
|
eventQueue = [];
|
|
5789
|
+
_dequeueOnEmit;
|
|
5790
|
+
constructor(dequeueOnEmit = false) {
|
|
5791
|
+
this._dequeueOnEmit = dequeueOnEmit;
|
|
5792
|
+
}
|
|
5660
5793
|
runEvents() {
|
|
5661
5794
|
this.eventQueue.forEach((e) => {
|
|
5662
5795
|
this._executeEvent(e);
|
|
@@ -5668,6 +5801,7 @@ var EventEmitter = class {
|
|
|
5668
5801
|
event,
|
|
5669
5802
|
args
|
|
5670
5803
|
});
|
|
5804
|
+
if (this._dequeueOnEmit) this.runEvents();
|
|
5671
5805
|
}
|
|
5672
5806
|
addListener(event, listener) {
|
|
5673
5807
|
if (!this.listeners[event]) this.listeners[event] = [];
|
|
@@ -5701,9 +5835,17 @@ var EventEmitter = class {
|
|
|
5701
5835
|
});
|
|
5702
5836
|
}
|
|
5703
5837
|
};
|
|
5838
|
+
var listeners = writable([]);
|
|
5704
5839
|
var EventHandler = class {
|
|
5705
5840
|
_coreEvents = new EventEmitter();
|
|
5706
|
-
_editorEvents = new EventEmitter();
|
|
5841
|
+
_editorEvents = new EventEmitter(true);
|
|
5842
|
+
static reset() {
|
|
5843
|
+
get$2(listeners).forEach((unsub) => unsub());
|
|
5844
|
+
listeners.set([]);
|
|
5845
|
+
}
|
|
5846
|
+
async init() {
|
|
5847
|
+
listeners.set([moveComponentListener(this)]);
|
|
5848
|
+
}
|
|
5707
5849
|
emit(event, ...args) {
|
|
5708
5850
|
this._coreEvents.emitEvent(event, ...args);
|
|
5709
5851
|
}
|
|
@@ -5711,6 +5853,18 @@ var EventHandler = class {
|
|
|
5711
5853
|
this._editorEvents.on(event, callback);
|
|
5712
5854
|
}
|
|
5713
5855
|
};
|
|
5856
|
+
var CoreEvents = /* @__PURE__ */ function(CoreEvents) {
|
|
5857
|
+
CoreEvents["HOT_RELOAD"] = "hot-reload";
|
|
5858
|
+
CoreEvents["HARD_RELOAD"] = "hard-reload";
|
|
5859
|
+
CoreEvents["PAUSE_GAME"] = "pause-game";
|
|
5860
|
+
CoreEvents["STOP_GAME"] = "stop-game";
|
|
5861
|
+
CoreEvents["UNPAUSE_GAME"] = "unpause-game";
|
|
5862
|
+
return CoreEvents;
|
|
5863
|
+
}({});
|
|
5864
|
+
var EditorEvents = /* @__PURE__ */ function(EditorEvents) {
|
|
5865
|
+
EditorEvents["MOVE_COMPONENT"] = "move-component";
|
|
5866
|
+
return EditorEvents;
|
|
5867
|
+
}({});
|
|
5714
5868
|
var infoStore = writable();
|
|
5715
5869
|
var InfoHandler = class {
|
|
5716
5870
|
core;
|
|
@@ -5721,12 +5875,12 @@ var InfoHandler = class {
|
|
|
5721
5875
|
this.core = core;
|
|
5722
5876
|
}
|
|
5723
5877
|
get(cacheOnly) {
|
|
5724
|
-
if (cacheOnly) return get$
|
|
5878
|
+
if (cacheOnly) return get$2(infoStore);
|
|
5725
5879
|
return this.fetch();
|
|
5726
5880
|
}
|
|
5727
5881
|
async fetch(noCache = false) {
|
|
5728
5882
|
if (!noCache) {
|
|
5729
|
-
const cache = get$
|
|
5883
|
+
const cache = get$2(infoStore);
|
|
5730
5884
|
if (cache) return cache;
|
|
5731
5885
|
}
|
|
5732
5886
|
const res = await this.core.actions.project.getInfo();
|
|
@@ -5860,6 +6014,9 @@ var FileSystemFile = class {
|
|
|
5860
6014
|
const raw = JSON.stringify(content);
|
|
5861
6015
|
return this.write(raw);
|
|
5862
6016
|
}
|
|
6017
|
+
async createWritable() {
|
|
6018
|
+
return this.handle.createWritable();
|
|
6019
|
+
}
|
|
5863
6020
|
async getUrl() {
|
|
5864
6021
|
if (URL_CACHE.has(this.handle.name)) URL.revokeObjectURL(URL_CACHE.get(this.handle.name));
|
|
5865
6022
|
const file = await this.handle.getFile();
|
|
@@ -6045,6 +6202,10 @@ var SfsFile = class {
|
|
|
6045
6202
|
await this._cache.writeJson(content);
|
|
6046
6203
|
await this.sync();
|
|
6047
6204
|
}
|
|
6205
|
+
async createWritable() {
|
|
6206
|
+
await this._preWrite();
|
|
6207
|
+
return await this._cache.createWritable();
|
|
6208
|
+
}
|
|
6048
6209
|
async sync() {
|
|
6049
6210
|
if (!this._cache) return;
|
|
6050
6211
|
const file = await this._cache.getFile();
|
|
@@ -6329,33 +6490,14 @@ var Loader = class {
|
|
|
6329
6490
|
};
|
|
6330
6491
|
var PackageHandler = class {
|
|
6331
6492
|
_project;
|
|
6332
|
-
_componentsManifests = /* @__PURE__ */ new Map();
|
|
6333
|
-
_systemsManifests = /* @__PURE__ */ new Map();
|
|
6334
6493
|
constructor(project) {
|
|
6335
6494
|
this._project = project;
|
|
6336
6495
|
}
|
|
6337
|
-
async
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
return this._systemsManifests.get(systemName);
|
|
6343
|
-
}
|
|
6344
|
-
async installComponent(name) {
|
|
6345
|
-
const newComponent = (await this._project.actions.package.addComponents({ componentNames: [name] }))[0];
|
|
6346
|
-
this._project.save.save.components.push(newComponent.save);
|
|
6347
|
-
this._componentsManifests.set(newComponent.save.name, newComponent.manifest);
|
|
6348
|
-
}
|
|
6349
|
-
async installSystem(name) {
|
|
6350
|
-
const newSystem = (await this._project.actions.package.addSystems({ systemNames: [name] }))[0];
|
|
6351
|
-
this._project.save.save.systems.push(newSystem.save);
|
|
6352
|
-
this._systemsManifests.set(newSystem.save.name, newSystem.manifest);
|
|
6353
|
-
}
|
|
6354
|
-
addComponentManifest(componentName, component) {
|
|
6355
|
-
this._componentsManifests.set(componentName, component);
|
|
6356
|
-
}
|
|
6357
|
-
addSystemManifest(systemName, system) {
|
|
6358
|
-
this._systemsManifests.set(systemName, system);
|
|
6496
|
+
async installPackages(names) {
|
|
6497
|
+
await this._project.actions.package.installPackages({ names });
|
|
6498
|
+
await this._project.ecs.components.sync();
|
|
6499
|
+
await this._project.ecs.systems.sync();
|
|
6500
|
+
await (await this._project.fs.getDirectory()).readdir(true);
|
|
6359
6501
|
}
|
|
6360
6502
|
};
|
|
6361
6503
|
var SaveHandler = class {
|
|
@@ -6369,6 +6511,7 @@ var SaveHandler = class {
|
|
|
6369
6511
|
_readyToSync = true;
|
|
6370
6512
|
_syncTimer;
|
|
6371
6513
|
_needSync = writable(false);
|
|
6514
|
+
_syncGatewayEnable = true;
|
|
6372
6515
|
constructor(project) {
|
|
6373
6516
|
this._project = project;
|
|
6374
6517
|
}
|
|
@@ -6377,7 +6520,9 @@ var SaveHandler = class {
|
|
|
6377
6520
|
this._listeners();
|
|
6378
6521
|
this._save.subscribe(() => {
|
|
6379
6522
|
this.syncToServer();
|
|
6523
|
+
this._project.event.emit(CoreEvents.HOT_RELOAD, this.save);
|
|
6380
6524
|
});
|
|
6525
|
+
if (getConfig().mode === "online") this.initSyncGateway();
|
|
6381
6526
|
}
|
|
6382
6527
|
async fetchFromServer() {
|
|
6383
6528
|
this._save.set(await this._project.actions.save.get());
|
|
@@ -6385,10 +6530,10 @@ var SaveHandler = class {
|
|
|
6385
6530
|
async syncToServer() {
|
|
6386
6531
|
if (this._readyToSync) {
|
|
6387
6532
|
this._readyToSync = false;
|
|
6388
|
-
await this._project.actions.save.set({ save: get$
|
|
6533
|
+
await this._project.actions.save.set({ save: get$2(this._save) });
|
|
6389
6534
|
this._syncTimer = setTimeout(() => {
|
|
6390
6535
|
this._readyToSync = true;
|
|
6391
|
-
if (get$
|
|
6536
|
+
if (get$2(this._needSync)) {
|
|
6392
6537
|
this.syncToServer();
|
|
6393
6538
|
this._needSync.set(false);
|
|
6394
6539
|
}
|
|
@@ -6402,7 +6547,7 @@ var SaveHandler = class {
|
|
|
6402
6547
|
await this.syncToServer();
|
|
6403
6548
|
}
|
|
6404
6549
|
get save() {
|
|
6405
|
-
return get$
|
|
6550
|
+
return get$2(this._save);
|
|
6406
6551
|
}
|
|
6407
6552
|
_listeners() {
|
|
6408
6553
|
this._project.ecs.components.store.subscribe((components) => {
|
|
@@ -6441,6 +6586,14 @@ var SaveHandler = class {
|
|
|
6441
6586
|
this.syncToServer();
|
|
6442
6587
|
});
|
|
6443
6588
|
}
|
|
6589
|
+
initSyncGateway() {
|
|
6590
|
+
setInterval(async () => {
|
|
6591
|
+
if (this._syncGatewayEnable) await this._project.actions.project.syncGatewayProject();
|
|
6592
|
+
}, 1e3 * 60 * 5);
|
|
6593
|
+
window.addEventListener("beforeunload", (e) => {
|
|
6594
|
+
if (!this._project.actions.project.syncGatewayProject()) e.preventDefault();
|
|
6595
|
+
});
|
|
6596
|
+
}
|
|
6444
6597
|
};
|
|
6445
6598
|
var Project = class {
|
|
6446
6599
|
id;
|
|
@@ -6455,6 +6608,7 @@ var Project = class {
|
|
|
6455
6608
|
_inited = false;
|
|
6456
6609
|
static reset() {
|
|
6457
6610
|
InfoHandler.reset();
|
|
6611
|
+
EventHandler.reset();
|
|
6458
6612
|
}
|
|
6459
6613
|
constructor(id) {
|
|
6460
6614
|
this.id = id;
|
|
@@ -6465,7 +6619,7 @@ var Project = class {
|
|
|
6465
6619
|
await this.fs.init();
|
|
6466
6620
|
await this.ecs.init();
|
|
6467
6621
|
await this.save.init();
|
|
6468
|
-
await this.
|
|
6622
|
+
await this.event.init();
|
|
6469
6623
|
this._inited = true;
|
|
6470
6624
|
return this;
|
|
6471
6625
|
}
|
|
@@ -6697,7 +6851,7 @@ var ProjectLoader = class ProjectLoader {
|
|
|
6697
6851
|
}
|
|
6698
6852
|
};
|
|
6699
6853
|
var useProject = () => {
|
|
6700
|
-
const project = get$
|
|
6854
|
+
const project = get$2(projectStore);
|
|
6701
6855
|
if (!project) {
|
|
6702
6856
|
const error = new PLException(PLErrors.No_Project);
|
|
6703
6857
|
error.fb();
|
|
@@ -15005,4 +15159,4 @@ var runSafe = async (context, cb, fallback) => {
|
|
|
15005
15159
|
//#endregion
|
|
15006
15160
|
export { createBitsAttrs as $, Portal as A, Separator as B, MenuMenuState as C, PLException as D, PLErrors as E, Scroll_lock as F, Text_selection_layer as G, StyleToObject as H, Select as I, boolToStr as J, attachRef as K, Select_content as L, ProjectCache as M, ProjectLoader as N, Popper_layer as O, RovingFocusGroup as P, cn as Q, Select_item as R, MenuItemState as S, MenuSeparatorState as T, Switch as U, Spinner as V, Switch_thumb as W, boxWith as X, boolToTrueOrUndef as Y, capitalize as Z, Floating_layer_anchor as _, useId as _t, Card_content as a, getDataOpenClosed as at, Loading_button as b, tv as bt, Card_title as c, getFloatingContentCSSVars as ct, DOMContext as d, mergeProps as dt, createId as et, Dismissible_layer as f, noop as ft, Floating_layer as g, useDebounce as gt, FloatingArrowState as h, toastError as ht, Card as i, getConfig as it, PresenceManager as j, Popper_layer_force_mount as k, Context as l, isElement$1 as lt, Escape_layer as m, simpleBox as mt, Button as n, deserialize as nt, Card_description as o, getDataTransitionAttrs as ot, DropdownMenuTriggerState as p, runSafe as pt, boolToEmptyStrOrUndef as q, CONTEXT_MENU_TRIGGER_ATTR as r, enhance as rt, Card_header as s, getDocument as st, AnimationsComplete as t, createQuery as tt, ContextMenuTriggerState as u, isFocusVisible as ut, Focus_scope as v, useProject as vt, MenuRootState as w, MenuContentState as x, IsMounted as y, watch as yt, Select_trigger as z };
|
|
15007
15161
|
|
|
15008
|
-
//# sourceMappingURL=error-
|
|
15162
|
+
//# sourceMappingURL=error-dHCCrW4T.js.map
|