@nanoforge-dev/editor 0.0.2-beta.0ea19be → 0.0.2-beta.3d4991c
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.yoWygKZi.css +1 -0
- package/dist/client/_app/immutable/assets/0.yoWygKZi.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.yoWygKZi.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/{xhfENL-e.js → C048Bjn7.js} +7 -7
- package/dist/client/_app/immutable/chunks/C048Bjn7.js.br +0 -0
- package/dist/client/_app/immutable/chunks/C048Bjn7.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BpGMGp28.js → CJx6yPZh.js} +1 -1
- package/dist/client/_app/immutable/chunks/CJx6yPZh.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CJx6yPZh.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/{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/{BG-gp5_B.js → Dy4Pjuql.js} +1 -1
- package/dist/client/_app/immutable/chunks/Dy4Pjuql.js.br +1 -0
- package/dist/client/_app/immutable/chunks/Dy4Pjuql.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/{CCCR_2rp.js → NokGgZou.js} +1 -1
- package/dist/client/_app/immutable/chunks/NokGgZou.js.br +0 -0
- package/dist/client/_app/immutable/chunks/NokGgZou.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/hoH54hVB.js +6 -0
- package/dist/client/_app/immutable/chunks/hoH54hVB.js.br +0 -0
- package/dist/client/_app/immutable/chunks/hoH54hVB.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/xmyAstTO.js +1 -0
- package/dist/client/_app/immutable/chunks/xmyAstTO.js.br +0 -0
- package/dist/client/_app/immutable/chunks/xmyAstTO.js.gz +0 -0
- package/dist/client/_app/immutable/entry/{app.CyMVjflN.js → app.BrYxTqmC.js} +2 -2
- package/dist/client/_app/immutable/entry/app.BrYxTqmC.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.BrYxTqmC.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.BLJU4g6R.js +1 -0
- package/dist/client/_app/immutable/entry/start.BLJU4g6R.js.br +1 -0
- package/dist/client/_app/immutable/entry/start.BLJU4g6R.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{0.DvEZu2JO.js → 0.CsYGMzJU.js} +1 -1
- package/dist/client/_app/immutable/nodes/0.CsYGMzJU.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.CsYGMzJU.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{1.BoI80J69.js → 1.CfDpZeft.js} +1 -1
- package/dist/client/_app/immutable/nodes/1.CfDpZeft.js.br +2 -0
- package/dist/client/_app/immutable/nodes/1.CfDpZeft.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{10.BvZJgse0.js → 11.L_9ZmasQ.js} +1 -1
- package/dist/client/_app/immutable/nodes/11.L_9ZmasQ.js.br +0 -0
- package/dist/client/_app/immutable/nodes/11.L_9ZmasQ.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.CGT67RwO.js +1 -0
- package/dist/client/_app/immutable/nodes/2.CGT67RwO.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.CGT67RwO.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/3.Cfkl9yLY.js +6 -0
- package/dist/client/_app/immutable/nodes/3.Cfkl9yLY.js.br +0 -0
- package/dist/client/_app/immutable/nodes/3.Cfkl9yLY.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-B3EMf1vM.js → 0-Bcww7pkn.js} +6 -6
- package/dist/server/chunks/{0-B3EMf1vM.js.map → 0-Bcww7pkn.js.map} +1 -1
- package/dist/server/chunks/{1-CTv0GZBK.js → 1-BIiCLN21.js} +6 -6
- package/dist/server/chunks/{1-CTv0GZBK.js.map → 1-BIiCLN21.js.map} +1 -1
- package/dist/server/chunks/{9-DPn3d8kr.js → 10-_cwipoJm.js} +5 -5
- package/dist/server/chunks/10-_cwipoJm.js.map +1 -0
- package/dist/server/chunks/11-C0olQKl9.js +22 -0
- package/dist/server/chunks/11-C0olQKl9.js.map +1 -0
- package/dist/server/chunks/{2-Dvto9WRP.js → 2-BvUnZSQz.js} +10 -10
- package/dist/server/chunks/{2-Dvto9WRP.js.map → 2-BvUnZSQz.js.map} +1 -1
- package/dist/server/chunks/{3-CGg-W5r9.js → 3-DdpBg6Re.js} +10 -10
- package/dist/server/chunks/{3-CGg-W5r9.js.map → 3-DdpBg6Re.js.map} +1 -1
- package/dist/server/chunks/{4-BYQgShv3.js → 4-B2tSZCU9.js} +3 -3
- package/dist/server/chunks/{4-BYQgShv3.js.map → 4-B2tSZCU9.js.map} +1 -1
- package/dist/server/chunks/{5-B4IXyXqv.js → 5-D3-J9iUP.js} +3 -3
- package/dist/server/chunks/{5-B4IXyXqv.js.map → 5-D3-J9iUP.js.map} +1 -1
- package/dist/server/chunks/{6-DH_IMDRv.js → 6-DDoqG8iB.js} +3 -3
- package/dist/server/chunks/{6-DH_IMDRv.js.map → 6-DDoqG8iB.js.map} +1 -1
- package/dist/server/chunks/7-CjZUt-gt.js +18 -0
- package/dist/server/chunks/7-CjZUt-gt.js.map +1 -0
- package/dist/server/chunks/8-ZgtdnItY.js +91 -0
- package/dist/server/chunks/8-ZgtdnItY.js.map +1 -0
- package/dist/server/chunks/{8-CRTa48Fz.js → 9-6rlPfdHX.js} +5 -5
- package/dist/server/chunks/{8-CRTa48Fz.js.map → 9-6rlPfdHX.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-DDyc2obG.js → _page.svelte-B7V_s1iG.js} +7 -7
- package/dist/server/chunks/{_page.svelte-DDyc2obG.js.map → _page.svelte-B7V_s1iG.js.map} +1 -1
- package/dist/server/chunks/{_page.svelte-BP2tLMJU.js → _page.svelte-BHLa7YUI.js} +6 -6
- package/dist/server/chunks/_page.svelte-BHLa7YUI.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-CJwOZYBT.js → _page.svelte-Chqj_iRU.js} +269 -105
- package/dist/server/chunks/_page.svelte-Chqj_iRU.js.map +1 -0
- package/dist/server/chunks/{_server.ts-a-I4s4R9.js → _server.ts-BwyH-SDr.js} +2 -2
- package/dist/server/chunks/{_server.ts-a-I4s4R9.js.map → _server.ts-BwyH-SDr.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-DlC2sxcm.js → _server.ts-DJwl8--i.js} +15 -3
- package/dist/server/chunks/_server.ts-DJwl8--i.js.map +1 -0
- package/dist/server/chunks/_server.ts-kFT5a-9I.js +13 -0
- package/dist/server/chunks/_server.ts-kFT5a-9I.js.map +1 -0
- package/dist/server/chunks/app-DUeJj5RD.js.map +1 -1
- package/dist/server/chunks/{client-BuQN5Wt-.js → client-Dse9iwN0.js} +4 -4
- package/dist/server/chunks/client-Dse9iwN0.js.map +1 -0
- package/dist/server/chunks/{error-D6RCgJwO.js → error-DXhNNMk1.js} +271 -152
- package/dist/server/chunks/error-DXhNNMk1.js.map +1 -0
- package/dist/server/chunks/{error.svelte-BOeVE8bj.js → error.svelte-DIiTgKhP.js} +3 -3
- package/dist/server/chunks/error.svelte-DIiTgKhP.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-D89vZOIS.js → hooks.server-Bksu95DH.js} +6 -6
- package/dist/server/chunks/hooks.server-Bksu95DH.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-BEwefI5h.js → internal2-yWeEySiO.js} +22 -15
- package/dist/server/chunks/internal2-yWeEySiO.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-BKCw1zwb.js → logo-C6QUIUff.js} +4 -4
- package/dist/server/chunks/logo-C6QUIUff.js.map +1 -0
- package/dist/server/chunks/{project-loader-XjKlOuo0.js → project-loader-C-zkX4VK.js} +4 -4
- package/dist/server/chunks/project-loader-C-zkX4VK.js.map +1 -0
- package/dist/server/chunks/{request-handler-guINVc1G.js → request-handler-DTxrh7_f.js} +184 -115
- package/dist/server/chunks/request-handler-DTxrh7_f.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-gfyGqv7Z.js → schemas-D4Qq7Kpe.js} +348 -303
- package/dist/server/chunks/schemas-D4Qq7Kpe.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-BNiB0oph.js → state-dxymBwXR.js} +3 -3
- package/dist/server/chunks/state-dxymBwXR.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.Jb4fu3YW.css +0 -1
- package/dist/client/_app/immutable/assets/0.Jb4fu3YW.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.Jb4fu3YW.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/BG-gp5_B.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BG-gp5_B.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/BpGMGp28.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BpGMGp28.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/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/CCCR_2rp.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CCCR_2rp.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/CnhOha0Z2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CnhOha0Z2.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/DN_0fFRn.js +0 -6
- package/dist/client/_app/immutable/chunks/DN_0fFRn.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DN_0fFRn.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/L3zfqVc3.js +0 -1
- package/dist/client/_app/immutable/chunks/L3zfqVc3.js.br +0 -0
- package/dist/client/_app/immutable/chunks/L3zfqVc3.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/xhfENL-e.js.br +0 -0
- package/dist/client/_app/immutable/chunks/xhfENL-e.js.gz +0 -0
- package/dist/client/_app/immutable/entry/app.CyMVjflN.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.CyMVjflN.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.styUYAaP.js +0 -1
- package/dist/client/_app/immutable/entry/start.styUYAaP.js.br +0 -0
- package/dist/client/_app/immutable/entry/start.styUYAaP.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/0.DvEZu2JO.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.DvEZu2JO.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/1.BoI80J69.js.br +0 -4
- package/dist/client/_app/immutable/nodes/1.BoI80J69.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/10.BvZJgse0.js.br +0 -0
- package/dist/client/_app/immutable/nodes/10.BvZJgse0.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.ChCDCV0k.js +0 -1
- package/dist/client/_app/immutable/nodes/2.ChCDCV0k.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.ChCDCV0k.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/3.BhOG1SDn.js +0 -6
- package/dist/client/_app/immutable/nodes/3.BhOG1SDn.js.br +0 -0
- package/dist/client/_app/immutable/nodes/3.BhOG1SDn.js.gz +0 -0
- package/dist/server/chunks/10-B_z_-eOa.js +0 -22
- package/dist/server/chunks/10-B_z_-eOa.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-BP2tLMJU.js.map +0 -1
- package/dist/server/chunks/_page.svelte-CJwOZYBT.js.map +0 -1
- package/dist/server/chunks/_server.ts-DlC2sxcm.js.map +0 -1
- package/dist/server/chunks/client-BuQN5Wt-.js.map +0 -1
- package/dist/server/chunks/error-D6RCgJwO.js.map +0 -1
- package/dist/server/chunks/error.svelte-BOeVE8bj.js.map +0 -1
- package/dist/server/chunks/events-Bhh2w-5S.js.map +0 -1
- package/dist/server/chunks/hooks.server-D89vZOIS.js.map +0 -1
- package/dist/server/chunks/internal2-BEwefI5h.js.map +0 -1
- package/dist/server/chunks/loader-circle-CFNm9vip.js.map +0 -1
- package/dist/server/chunks/logo-BKCw1zwb.js.map +0 -1
- package/dist/server/chunks/project-loader-XjKlOuo0.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-gfyGqv7Z.js.map +0 -1
- package/dist/server/chunks/state-BNiB0oph.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-yWeEySiO.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-Dse9iwN0.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) {
|
|
@@ -4657,6 +4659,7 @@ var ProjectSaveRepository = class extends BaseRepository {
|
|
|
4657
4659
|
var getActionClient = (projectId) => {
|
|
4658
4660
|
const client = new HttpClient("", projectId ? { headers: { [SESSION_PROJECT_HEADER]: projectId } } : {});
|
|
4659
4661
|
return {
|
|
4662
|
+
archive: new ProjectArchiveRepository(client),
|
|
4660
4663
|
fs: new ProjectFsRepository(client),
|
|
4661
4664
|
loader: new ProjectLoaderRepository(client),
|
|
4662
4665
|
package: new ProjectPackageRepository(client),
|
|
@@ -4678,6 +4681,11 @@ var systemTransformer = (system) => ({
|
|
|
4678
4681
|
path: system.save.path
|
|
4679
4682
|
});
|
|
4680
4683
|
var systemsTransformer = (systems) => systems.map(systemTransformer);
|
|
4684
|
+
var assetTransformer = (asset) => ({
|
|
4685
|
+
id: asset.path,
|
|
4686
|
+
path: asset.path
|
|
4687
|
+
});
|
|
4688
|
+
var assetsTransformer = (assets) => assets.map(assetTransformer);
|
|
4681
4689
|
var libraryTransformer = (lib) => ({
|
|
4682
4690
|
id: lib.path,
|
|
4683
4691
|
name: lib.name
|
|
@@ -4707,7 +4715,7 @@ var randomString = (nb, { numbers = true, lowers = true, uppers = false, special
|
|
|
4707
4715
|
return [...Array(nb)].map(() => chars[Math.floor(Math.random() * chars.length)]).join("");
|
|
4708
4716
|
};
|
|
4709
4717
|
var resetSubscriptions = (store) => {
|
|
4710
|
-
const subscriptions = get$
|
|
4718
|
+
const subscriptions = get$2(store);
|
|
4711
4719
|
Object.values(subscriptions).forEach((sub) => {
|
|
4712
4720
|
try {
|
|
4713
4721
|
sub?.();
|
|
@@ -4716,7 +4724,7 @@ var resetSubscriptions = (store) => {
|
|
|
4716
4724
|
store.set({});
|
|
4717
4725
|
};
|
|
4718
4726
|
var resetListeners = (store) => {
|
|
4719
|
-
get$
|
|
4727
|
+
get$2(store)?.forEach((sub) => {
|
|
4720
4728
|
try {
|
|
4721
4729
|
sub();
|
|
4722
4730
|
} catch {}
|
|
@@ -4724,7 +4732,7 @@ var resetListeners = (store) => {
|
|
|
4724
4732
|
store.set(null);
|
|
4725
4733
|
};
|
|
4726
4734
|
var resolveStore = (storage, resolvable, defaultValue) => {
|
|
4727
|
-
const content = get$
|
|
4735
|
+
const content = get$2(storage);
|
|
4728
4736
|
if (resolvable in content) return content[resolvable];
|
|
4729
4737
|
content[resolvable] = writable(defaultValue);
|
|
4730
4738
|
storage.set(content);
|
|
@@ -4736,6 +4744,114 @@ var getId = (data, name) => {
|
|
|
4736
4744
|
while (data.find((d) => d.id === id)) id = `${baseId}_${randomString(5)}`;
|
|
4737
4745
|
return id;
|
|
4738
4746
|
};
|
|
4747
|
+
var _storage$15 = writable({});
|
|
4748
|
+
var AssetHandle = class {
|
|
4749
|
+
_manager;
|
|
4750
|
+
_store;
|
|
4751
|
+
id;
|
|
4752
|
+
static reset() {
|
|
4753
|
+
_storage$15.set({});
|
|
4754
|
+
}
|
|
4755
|
+
constructor(manager, asset) {
|
|
4756
|
+
this._manager = manager;
|
|
4757
|
+
this.id = asset.id;
|
|
4758
|
+
this._store = resolveStore(_storage$15, this.id, asset);
|
|
4759
|
+
}
|
|
4760
|
+
get store() {
|
|
4761
|
+
return this._store;
|
|
4762
|
+
}
|
|
4763
|
+
get data() {
|
|
4764
|
+
return get$2(this._store);
|
|
4765
|
+
}
|
|
4766
|
+
update(asset) {
|
|
4767
|
+
this._store.set({
|
|
4768
|
+
...get$2(this._store),
|
|
4769
|
+
...asset
|
|
4770
|
+
});
|
|
4771
|
+
}
|
|
4772
|
+
delete() {
|
|
4773
|
+
return this._manager.delete(this.id);
|
|
4774
|
+
}
|
|
4775
|
+
};
|
|
4776
|
+
var _storage$14 = writable([]);
|
|
4777
|
+
var _subscriptions$7 = writable({});
|
|
4778
|
+
var AssetManager = class {
|
|
4779
|
+
static reset() {
|
|
4780
|
+
_storage$14.set([]);
|
|
4781
|
+
resetSubscriptions(_subscriptions$7);
|
|
4782
|
+
}
|
|
4783
|
+
constructor(assets) {
|
|
4784
|
+
_storage$14.set(assets);
|
|
4785
|
+
}
|
|
4786
|
+
get store() {
|
|
4787
|
+
return _storage$14;
|
|
4788
|
+
}
|
|
4789
|
+
get data() {
|
|
4790
|
+
return get$2(_storage$14);
|
|
4791
|
+
}
|
|
4792
|
+
async createMany(files) {
|
|
4793
|
+
const { fs } = useProject();
|
|
4794
|
+
await Promise.all(files.map(this.create.bind(this)));
|
|
4795
|
+
await this.sync();
|
|
4796
|
+
await (await fs.getDirectory()).readdir(true);
|
|
4797
|
+
}
|
|
4798
|
+
async create(file) {
|
|
4799
|
+
const { fs } = useProject();
|
|
4800
|
+
const assetFile = await (await fs.getDirectory("assets")).getFile(file.name);
|
|
4801
|
+
const stream = await assetFile.createWritable();
|
|
4802
|
+
await file.stream().pipeTo(stream);
|
|
4803
|
+
await assetFile.sync();
|
|
4804
|
+
}
|
|
4805
|
+
add(asset) {
|
|
4806
|
+
this._add(assetTransformer(asset));
|
|
4807
|
+
}
|
|
4808
|
+
async sync() {
|
|
4809
|
+
const { actions } = useProject();
|
|
4810
|
+
const assets = await actions.package.getAssets();
|
|
4811
|
+
_storage$14.set(assetsTransformer(assets));
|
|
4812
|
+
}
|
|
4813
|
+
get(id) {
|
|
4814
|
+
const asset = get$2(_storage$14).find((asset) => asset.id === id);
|
|
4815
|
+
if (!asset) throw new Error(`Asset with id ${id} not found`);
|
|
4816
|
+
const handle = new AssetHandle(this, asset);
|
|
4817
|
+
this._subscribe(id, handle);
|
|
4818
|
+
return handle;
|
|
4819
|
+
}
|
|
4820
|
+
async delete(id) {
|
|
4821
|
+
const assets = get$2(_storage$14);
|
|
4822
|
+
const asset = assets.find((c) => c.id === id);
|
|
4823
|
+
if (!asset) throw new Error(`System not found: ${id}`);
|
|
4824
|
+
_storage$14.set(assets.filter((c) => c.id !== id));
|
|
4825
|
+
const { fs } = useProject();
|
|
4826
|
+
await (await fs.getFile(asset.path)).delete();
|
|
4827
|
+
const subscriptions = get$2(_subscriptions$7);
|
|
4828
|
+
if (subscriptions[id]) {
|
|
4829
|
+
subscriptions[id]();
|
|
4830
|
+
subscriptions[id] = null;
|
|
4831
|
+
_subscriptions$7.set(subscriptions);
|
|
4832
|
+
}
|
|
4833
|
+
}
|
|
4834
|
+
_add(asset) {
|
|
4835
|
+
const assets = get$2(_storage$14);
|
|
4836
|
+
assets.push(asset);
|
|
4837
|
+
_storage$14.set(assets);
|
|
4838
|
+
}
|
|
4839
|
+
_subscribe(id, handle) {
|
|
4840
|
+
setTimeout(() => {
|
|
4841
|
+
const subscriptions = get$2(_subscriptions$7);
|
|
4842
|
+
if (subscriptions[id]) return;
|
|
4843
|
+
subscriptions[id] = handle.store.subscribe((asset) => this._update(id, asset));
|
|
4844
|
+
_subscriptions$7.set(subscriptions);
|
|
4845
|
+
}, 0);
|
|
4846
|
+
}
|
|
4847
|
+
_update(id, asset) {
|
|
4848
|
+
const assets = get$2(_storage$14);
|
|
4849
|
+
const index = assets.findIndex((s) => s.id === id);
|
|
4850
|
+
if (index === -1) return;
|
|
4851
|
+
assets[index] = asset;
|
|
4852
|
+
_storage$14.set(assets);
|
|
4853
|
+
}
|
|
4854
|
+
};
|
|
4739
4855
|
var _storage$13 = writable({});
|
|
4740
4856
|
var ComponentHandle = class {
|
|
4741
4857
|
_manager;
|
|
@@ -4753,16 +4869,16 @@ var ComponentHandle = class {
|
|
|
4753
4869
|
return this._store;
|
|
4754
4870
|
}
|
|
4755
4871
|
get data() {
|
|
4756
|
-
return get$
|
|
4872
|
+
return get$2(this._store);
|
|
4757
4873
|
}
|
|
4758
4874
|
update(component) {
|
|
4759
4875
|
this._store.set({
|
|
4760
|
-
...get$
|
|
4876
|
+
...get$2(this._store),
|
|
4761
4877
|
...component
|
|
4762
4878
|
});
|
|
4763
4879
|
}
|
|
4764
4880
|
delete() {
|
|
4765
|
-
this._manager.delete(this.id);
|
|
4881
|
+
return this._manager.delete(this.id);
|
|
4766
4882
|
}
|
|
4767
4883
|
};
|
|
4768
4884
|
var _storage$12 = writable([]);
|
|
@@ -4779,7 +4895,7 @@ var ComponentManager = class {
|
|
|
4779
4895
|
return _storage$12;
|
|
4780
4896
|
}
|
|
4781
4897
|
get data() {
|
|
4782
|
-
return get$
|
|
4898
|
+
return get$2(_storage$12);
|
|
4783
4899
|
}
|
|
4784
4900
|
async create(name) {
|
|
4785
4901
|
const { actions, fs } = useProject();
|
|
@@ -4787,12 +4903,8 @@ var ComponentManager = class {
|
|
|
4787
4903
|
this._add(componentTransformer(component));
|
|
4788
4904
|
await (await fs.getDirectory()).readdir(true);
|
|
4789
4905
|
}
|
|
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);
|
|
4906
|
+
add(component) {
|
|
4907
|
+
this._add(componentTransformer(component));
|
|
4796
4908
|
}
|
|
4797
4909
|
async sync() {
|
|
4798
4910
|
const { actions } = useProject();
|
|
@@ -4800,16 +4912,20 @@ var ComponentManager = class {
|
|
|
4800
4912
|
_storage$12.set(componentsTransformer(components));
|
|
4801
4913
|
}
|
|
4802
4914
|
get(id) {
|
|
4803
|
-
const component = get$
|
|
4915
|
+
const component = get$2(_storage$12).find((component) => component.id === id);
|
|
4804
4916
|
if (!component) throw new Error(`Component with id ${id} not found`);
|
|
4805
4917
|
const handle = new ComponentHandle(this, component);
|
|
4806
4918
|
this._subscribe(id, handle);
|
|
4807
4919
|
return handle;
|
|
4808
4920
|
}
|
|
4809
|
-
delete(id) {
|
|
4810
|
-
const components = get$
|
|
4811
|
-
|
|
4812
|
-
|
|
4921
|
+
async delete(id) {
|
|
4922
|
+
const components = get$2(_storage$12);
|
|
4923
|
+
const component = components.find((c) => c.id === id);
|
|
4924
|
+
if (!component) throw new Error(`System not found: ${id}`);
|
|
4925
|
+
_storage$12.set(components.filter((c) => c.id !== id));
|
|
4926
|
+
const { fs } = useProject();
|
|
4927
|
+
await (await fs.getFile(component.path)).delete();
|
|
4928
|
+
const subscriptions = get$2(_subscriptions$6);
|
|
4813
4929
|
if (subscriptions[id]) {
|
|
4814
4930
|
subscriptions[id]();
|
|
4815
4931
|
subscriptions[id] = null;
|
|
@@ -4817,20 +4933,20 @@ var ComponentManager = class {
|
|
|
4817
4933
|
}
|
|
4818
4934
|
}
|
|
4819
4935
|
_add(component) {
|
|
4820
|
-
const components = get$
|
|
4936
|
+
const components = get$2(_storage$12);
|
|
4821
4937
|
components.push(component);
|
|
4822
4938
|
_storage$12.set(components);
|
|
4823
4939
|
}
|
|
4824
4940
|
_subscribe(id, handle) {
|
|
4825
4941
|
setTimeout(() => {
|
|
4826
|
-
const subscriptions = get$
|
|
4942
|
+
const subscriptions = get$2(_subscriptions$6);
|
|
4827
4943
|
if (subscriptions[id]) return;
|
|
4828
4944
|
subscriptions[id] = handle.store.subscribe((component) => this._update(id, component));
|
|
4829
4945
|
_subscriptions$6.set(subscriptions);
|
|
4830
4946
|
}, 0);
|
|
4831
4947
|
}
|
|
4832
4948
|
_update(id, component) {
|
|
4833
|
-
const components = get$
|
|
4949
|
+
const components = get$2(_storage$12);
|
|
4834
4950
|
const index = components.findIndex((s) => s.id === id);
|
|
4835
4951
|
if (index === -1) return;
|
|
4836
4952
|
components[index] = component;
|
|
@@ -4854,11 +4970,11 @@ var LibraryHandle = class {
|
|
|
4854
4970
|
return this._store;
|
|
4855
4971
|
}
|
|
4856
4972
|
get data() {
|
|
4857
|
-
return get$
|
|
4973
|
+
return get$2(this._store);
|
|
4858
4974
|
}
|
|
4859
4975
|
update(library) {
|
|
4860
4976
|
this._store.set({
|
|
4861
|
-
...get$
|
|
4977
|
+
...get$2(this._store),
|
|
4862
4978
|
...library
|
|
4863
4979
|
});
|
|
4864
4980
|
}
|
|
@@ -4880,10 +4996,10 @@ var LibraryManager = class {
|
|
|
4880
4996
|
return _storage$10;
|
|
4881
4997
|
}
|
|
4882
4998
|
get data() {
|
|
4883
|
-
return get$
|
|
4999
|
+
return get$2(_storage$10);
|
|
4884
5000
|
}
|
|
4885
5001
|
add(library) {
|
|
4886
|
-
const libraries = get$
|
|
5002
|
+
const libraries = get$2(_storage$10);
|
|
4887
5003
|
libraries.push({
|
|
4888
5004
|
...library,
|
|
4889
5005
|
id: library.name
|
|
@@ -4892,16 +5008,16 @@ var LibraryManager = class {
|
|
|
4892
5008
|
return library.name;
|
|
4893
5009
|
}
|
|
4894
5010
|
get(id) {
|
|
4895
|
-
const library = get$
|
|
5011
|
+
const library = get$2(_storage$10).find((library) => library.id === id);
|
|
4896
5012
|
if (!library) throw new Error(`Library with id ${id} not found`);
|
|
4897
5013
|
const handle = new LibraryHandle(this, library);
|
|
4898
5014
|
this._subscribe(id, handle);
|
|
4899
5015
|
return handle;
|
|
4900
5016
|
}
|
|
4901
5017
|
delete(id) {
|
|
4902
|
-
const libraries = get$
|
|
5018
|
+
const libraries = get$2(_storage$10);
|
|
4903
5019
|
_storage$10.set(libraries.filter((library) => library.id !== id));
|
|
4904
|
-
const subscriptions = get$
|
|
5020
|
+
const subscriptions = get$2(_subscriptions$5);
|
|
4905
5021
|
if (subscriptions[id]) {
|
|
4906
5022
|
subscriptions[id]();
|
|
4907
5023
|
subscriptions[id] = null;
|
|
@@ -4910,14 +5026,14 @@ var LibraryManager = class {
|
|
|
4910
5026
|
}
|
|
4911
5027
|
_subscribe(id, handle) {
|
|
4912
5028
|
setTimeout(() => {
|
|
4913
|
-
const subscriptions = get$
|
|
5029
|
+
const subscriptions = get$2(_subscriptions$5);
|
|
4914
5030
|
if (subscriptions[id]) return;
|
|
4915
5031
|
subscriptions[id] = handle.store.subscribe((library) => this._update(id, library));
|
|
4916
5032
|
_subscriptions$5.set(subscriptions);
|
|
4917
5033
|
}, 0);
|
|
4918
5034
|
}
|
|
4919
5035
|
_update(id, library) {
|
|
4920
|
-
const libraries = get$
|
|
5036
|
+
const libraries = get$2(_storage$10);
|
|
4921
5037
|
const index = libraries.findIndex((s) => s.id === id);
|
|
4922
5038
|
if (index === -1) return;
|
|
4923
5039
|
libraries[index] = library;
|
|
@@ -4955,7 +5071,7 @@ var ComponentParamHandle = class {
|
|
|
4955
5071
|
this.manager.delete(this.id);
|
|
4956
5072
|
}
|
|
4957
5073
|
_listen() {
|
|
4958
|
-
if (get$
|
|
5074
|
+
if (get$2(_listener$5)) return;
|
|
4959
5075
|
const unsub = this.manager.component.store.subscribe((component) => {
|
|
4960
5076
|
const newParam = component.params.find((param) => param.name === this.id);
|
|
4961
5077
|
if (!newParam) return;
|
|
@@ -4982,7 +5098,7 @@ var ComponentParamManager = class {
|
|
|
4982
5098
|
constructor(component, params) {
|
|
4983
5099
|
this.component = component;
|
|
4984
5100
|
this._storageResolvable = `${this.component.manager.entity.manager.scene.id}/${this.component.manager.entity.id}/${this.component.id}`;
|
|
4985
|
-
this._store = resolveStore(_storage$8, this._storageResolvable, get$
|
|
5101
|
+
this._store = resolveStore(_storage$8, this._storageResolvable, get$2(component.store).params);
|
|
4986
5102
|
this._valuesStore = resolveStore(_valueStorage, this._storageResolvable, params);
|
|
4987
5103
|
this._listen();
|
|
4988
5104
|
}
|
|
@@ -4993,21 +5109,21 @@ var ComponentParamManager = class {
|
|
|
4993
5109
|
return this._valuesStore;
|
|
4994
5110
|
}
|
|
4995
5111
|
get(id) {
|
|
4996
|
-
const param = get$
|
|
5112
|
+
const param = get$2(this._store).find((param) => param.name === id);
|
|
4997
5113
|
if (!param) throw new Error(`Param with id ${id} not found`);
|
|
4998
|
-
const value = get$
|
|
5114
|
+
const value = get$2(this._valuesStore)[id];
|
|
4999
5115
|
const handle = new ComponentParamHandle(this, param, value);
|
|
5000
5116
|
this._subscribe(id, handle);
|
|
5001
5117
|
return handle;
|
|
5002
5118
|
}
|
|
5003
5119
|
delete(id) {
|
|
5004
|
-
const params = get$
|
|
5120
|
+
const params = get$2(this._store);
|
|
5005
5121
|
this._store.set(params.map((param) => param.name === id ? {
|
|
5006
5122
|
...param,
|
|
5007
5123
|
value: void 0
|
|
5008
5124
|
} : param));
|
|
5009
5125
|
const fullId = `${this._storageResolvable}/${id}`;
|
|
5010
|
-
const subscriptions = get$
|
|
5126
|
+
const subscriptions = get$2(_subscriptions$4);
|
|
5011
5127
|
if (subscriptions[fullId]) {
|
|
5012
5128
|
subscriptions[fullId]();
|
|
5013
5129
|
subscriptions[fullId] = null;
|
|
@@ -5015,7 +5131,7 @@ var ComponentParamManager = class {
|
|
|
5015
5131
|
}
|
|
5016
5132
|
}
|
|
5017
5133
|
_listen() {
|
|
5018
|
-
if (get$
|
|
5134
|
+
if (get$2(_listener$4)) return;
|
|
5019
5135
|
const unsub = this.component.store.subscribe((component) => {
|
|
5020
5136
|
this._store.set(component.params);
|
|
5021
5137
|
});
|
|
@@ -5024,14 +5140,14 @@ var ComponentParamManager = class {
|
|
|
5024
5140
|
_subscribe(id, handle) {
|
|
5025
5141
|
setTimeout(() => {
|
|
5026
5142
|
const fullId = `${this._storageResolvable}/${id}`;
|
|
5027
|
-
const subscriptions = get$
|
|
5143
|
+
const subscriptions = get$2(_subscriptions$4);
|
|
5028
5144
|
if (subscriptions[fullId]) return;
|
|
5029
5145
|
subscriptions[fullId] = handle.value.subscribe((param) => this._update(id, param));
|
|
5030
5146
|
_subscriptions$4.set(subscriptions);
|
|
5031
5147
|
}, 0);
|
|
5032
5148
|
}
|
|
5033
5149
|
_update(id, value) {
|
|
5034
|
-
const params = get$
|
|
5150
|
+
const params = get$2(this._valuesStore);
|
|
5035
5151
|
params[id] = value;
|
|
5036
5152
|
this._valuesStore.set(params);
|
|
5037
5153
|
}
|
|
@@ -5051,7 +5167,7 @@ var EntityComponentHandle = class {
|
|
|
5051
5167
|
return this._store;
|
|
5052
5168
|
}
|
|
5053
5169
|
get data() {
|
|
5054
|
-
return get$
|
|
5170
|
+
return get$2(this._store);
|
|
5055
5171
|
}
|
|
5056
5172
|
get params() {
|
|
5057
5173
|
return this._params;
|
|
@@ -5082,30 +5198,30 @@ var EntityComponentManager = class {
|
|
|
5082
5198
|
return this._store;
|
|
5083
5199
|
}
|
|
5084
5200
|
get data() {
|
|
5085
|
-
return get$
|
|
5201
|
+
return get$2(this._store);
|
|
5086
5202
|
}
|
|
5087
5203
|
add(component) {
|
|
5088
|
-
const components = get$
|
|
5204
|
+
const components = get$2(this._store);
|
|
5089
5205
|
const manifest = this.entity.manager.scene.manager.ecs.components.get(component).data;
|
|
5090
5206
|
components[component] = { ...Object.fromEntries(manifest.params.filter((param) => param.default).map((param) => [param.name, param.default])) };
|
|
5091
5207
|
this._store.set(components);
|
|
5092
5208
|
}
|
|
5093
5209
|
get(id) {
|
|
5094
|
-
const params = get$
|
|
5210
|
+
const params = get$2(this._store)[id];
|
|
5095
5211
|
if (!params) throw new Error(`Component with id ${id} not found`);
|
|
5096
5212
|
const handle = new EntityComponentHandle(this, id, params);
|
|
5097
5213
|
this._subscribe(id, handle);
|
|
5098
5214
|
return handle;
|
|
5099
5215
|
}
|
|
5100
5216
|
delete(id) {
|
|
5101
|
-
const components = get$
|
|
5217
|
+
const components = get$2(this._store);
|
|
5102
5218
|
const newComponents = {};
|
|
5103
5219
|
Object.entries(components).forEach(([key, params]) => {
|
|
5104
5220
|
if (key !== id) newComponents[key] = params;
|
|
5105
5221
|
});
|
|
5106
5222
|
this._store.set(newComponents);
|
|
5107
5223
|
const fullId = `${this._storageResolvable}/${id}`;
|
|
5108
|
-
const subscriptions = get$
|
|
5224
|
+
const subscriptions = get$2(_subscriptions$3);
|
|
5109
5225
|
if (subscriptions[fullId]) {
|
|
5110
5226
|
subscriptions[fullId]();
|
|
5111
5227
|
subscriptions[fullId] = null;
|
|
@@ -5113,9 +5229,9 @@ var EntityComponentManager = class {
|
|
|
5113
5229
|
}
|
|
5114
5230
|
}
|
|
5115
5231
|
_listen() {
|
|
5116
|
-
if (get$
|
|
5232
|
+
if (get$2(_listener$3)) return;
|
|
5117
5233
|
const unsub = this.entity.manager.scene.manager.ecs.components.store.subscribe((components) => {
|
|
5118
|
-
const entityComponents = get$
|
|
5234
|
+
const entityComponents = get$2(this._store);
|
|
5119
5235
|
const newComponents = {};
|
|
5120
5236
|
Object.entries(entityComponents).forEach(([key, params]) => {
|
|
5121
5237
|
if (components.find((s) => s.id === key)) newComponents[key] = params;
|
|
@@ -5127,14 +5243,14 @@ var EntityComponentManager = class {
|
|
|
5127
5243
|
_subscribe(id, handle) {
|
|
5128
5244
|
setTimeout(() => {
|
|
5129
5245
|
const fullId = `${this._storageResolvable}/${id}`;
|
|
5130
|
-
const subscriptions = get$
|
|
5246
|
+
const subscriptions = get$2(_subscriptions$3);
|
|
5131
5247
|
if (subscriptions[fullId]) return;
|
|
5132
5248
|
subscriptions[fullId] = handle.params.values.subscribe((params) => this._update(id, params));
|
|
5133
5249
|
_subscriptions$3.set(subscriptions);
|
|
5134
5250
|
}, 0);
|
|
5135
5251
|
}
|
|
5136
5252
|
_update(id, params) {
|
|
5137
|
-
const component = get$
|
|
5253
|
+
const component = get$2(this._store);
|
|
5138
5254
|
component[id] = params;
|
|
5139
5255
|
this._store.set(component);
|
|
5140
5256
|
}
|
|
@@ -5161,14 +5277,14 @@ var SceneEntityHandle = class {
|
|
|
5161
5277
|
return this._store;
|
|
5162
5278
|
}
|
|
5163
5279
|
get data() {
|
|
5164
|
-
return get$
|
|
5280
|
+
return get$2(this._store);
|
|
5165
5281
|
}
|
|
5166
5282
|
get components() {
|
|
5167
5283
|
return this._components;
|
|
5168
5284
|
}
|
|
5169
5285
|
update(entity) {
|
|
5170
5286
|
this._store.set({
|
|
5171
|
-
...get$
|
|
5287
|
+
...get$2(this._store),
|
|
5172
5288
|
...entity
|
|
5173
5289
|
});
|
|
5174
5290
|
}
|
|
@@ -5179,9 +5295,9 @@ var SceneEntityHandle = class {
|
|
|
5179
5295
|
this.manager.selected = this;
|
|
5180
5296
|
}
|
|
5181
5297
|
_listen() {
|
|
5182
|
-
if (get$
|
|
5298
|
+
if (get$2(_listener$2)) return;
|
|
5183
5299
|
const unsub = this._components.store.subscribe((components) => {
|
|
5184
|
-
const entity = get$
|
|
5300
|
+
const entity = get$2(this._store);
|
|
5185
5301
|
entity.components = components;
|
|
5186
5302
|
this._store.set(entity);
|
|
5187
5303
|
});
|
|
@@ -5206,10 +5322,10 @@ var SceneEntityManager = class {
|
|
|
5206
5322
|
return this._store;
|
|
5207
5323
|
}
|
|
5208
5324
|
get data() {
|
|
5209
|
-
return get$
|
|
5325
|
+
return get$2(this._store);
|
|
5210
5326
|
}
|
|
5211
5327
|
get selectedData() {
|
|
5212
|
-
return get$
|
|
5328
|
+
return get$2(selectedEntity);
|
|
5213
5329
|
}
|
|
5214
5330
|
get selected() {
|
|
5215
5331
|
return selectedEntity;
|
|
@@ -5218,7 +5334,7 @@ var SceneEntityManager = class {
|
|
|
5218
5334
|
selectedEntity.set(entity);
|
|
5219
5335
|
}
|
|
5220
5336
|
add(entity) {
|
|
5221
|
-
const entities = get$
|
|
5337
|
+
const entities = get$2(this._store);
|
|
5222
5338
|
const id = getId(this.data, entity.name);
|
|
5223
5339
|
entities.push({
|
|
5224
5340
|
...entity,
|
|
@@ -5228,17 +5344,17 @@ var SceneEntityManager = class {
|
|
|
5228
5344
|
return id;
|
|
5229
5345
|
}
|
|
5230
5346
|
get(id) {
|
|
5231
|
-
const entity = get$
|
|
5347
|
+
const entity = get$2(this._store).find((entity) => entity.id === id);
|
|
5232
5348
|
if (!entity) throw new Error(`Entity with id ${id} not found`);
|
|
5233
5349
|
const handle = new SceneEntityHandle(this, entity);
|
|
5234
5350
|
this._subscribe(id, handle);
|
|
5235
5351
|
return handle;
|
|
5236
5352
|
}
|
|
5237
5353
|
delete(id) {
|
|
5238
|
-
const entities = get$
|
|
5354
|
+
const entities = get$2(this._store);
|
|
5239
5355
|
this._store.set(entities.filter((entity) => entity.id !== id));
|
|
5240
5356
|
const fullId = `${this.scene.id}/${id}`;
|
|
5241
|
-
const subscriptions = get$
|
|
5357
|
+
const subscriptions = get$2(_subscriptions$2);
|
|
5242
5358
|
if (subscriptions[fullId]) {
|
|
5243
5359
|
subscriptions[fullId]();
|
|
5244
5360
|
subscriptions[fullId] = null;
|
|
@@ -5249,14 +5365,14 @@ var SceneEntityManager = class {
|
|
|
5249
5365
|
_subscribe(id, handle) {
|
|
5250
5366
|
setTimeout(() => {
|
|
5251
5367
|
const fullId = `${this.scene.id}/${id}`;
|
|
5252
|
-
const subscriptions = get$
|
|
5368
|
+
const subscriptions = get$2(_subscriptions$2);
|
|
5253
5369
|
if (subscriptions[fullId]) return;
|
|
5254
5370
|
subscriptions[fullId] = handle.store.subscribe((entity) => this._update(id, entity));
|
|
5255
5371
|
_subscriptions$2.set(subscriptions);
|
|
5256
5372
|
}, 0);
|
|
5257
5373
|
}
|
|
5258
5374
|
_update(id, entity) {
|
|
5259
|
-
const entities = get$
|
|
5375
|
+
const entities = get$2(this._store);
|
|
5260
5376
|
const index = entities.findIndex((s) => s.id === id);
|
|
5261
5377
|
if (index === -1) return;
|
|
5262
5378
|
entities[index] = entity;
|
|
@@ -5276,7 +5392,7 @@ var SceneSystemHandle = class {
|
|
|
5276
5392
|
return this._store;
|
|
5277
5393
|
}
|
|
5278
5394
|
get data() {
|
|
5279
|
-
return get$
|
|
5395
|
+
return get$2(this._store);
|
|
5280
5396
|
}
|
|
5281
5397
|
delete() {
|
|
5282
5398
|
this.manager.delete(this.id);
|
|
@@ -5300,26 +5416,26 @@ var SceneSystemManager = class {
|
|
|
5300
5416
|
return this._store;
|
|
5301
5417
|
}
|
|
5302
5418
|
get data() {
|
|
5303
|
-
return get$
|
|
5419
|
+
return get$2(this._store);
|
|
5304
5420
|
}
|
|
5305
5421
|
add(system) {
|
|
5306
|
-
const systems = get$
|
|
5422
|
+
const systems = get$2(this._store);
|
|
5307
5423
|
systems.push(system);
|
|
5308
5424
|
this._store.set(systems);
|
|
5309
5425
|
}
|
|
5310
5426
|
get(id) {
|
|
5311
|
-
const system = get$
|
|
5427
|
+
const system = get$2(this._store).find((system) => system === id);
|
|
5312
5428
|
if (!system) throw new Error(`System with id ${id} not found`);
|
|
5313
5429
|
return new SceneSystemHandle(this, system);
|
|
5314
5430
|
}
|
|
5315
5431
|
delete(id) {
|
|
5316
|
-
const systems = get$
|
|
5432
|
+
const systems = get$2(this._store);
|
|
5317
5433
|
this._store.set(systems.filter((system) => system !== id));
|
|
5318
5434
|
}
|
|
5319
5435
|
_listen() {
|
|
5320
|
-
if (get$
|
|
5436
|
+
if (get$2(_listener$1)) return;
|
|
5321
5437
|
const unsub = this.scene.manager.ecs.systems.store.subscribe((systems) => {
|
|
5322
|
-
const sceneSystems = get$
|
|
5438
|
+
const sceneSystems = get$2(this._store);
|
|
5323
5439
|
sceneSystems.filter((system) => systems.find((s) => s.id === system));
|
|
5324
5440
|
this._store.set(sceneSystems);
|
|
5325
5441
|
});
|
|
@@ -5350,7 +5466,7 @@ var SceneHandle = class {
|
|
|
5350
5466
|
return this._store;
|
|
5351
5467
|
}
|
|
5352
5468
|
get data() {
|
|
5353
|
-
return get$
|
|
5469
|
+
return get$2(this._store);
|
|
5354
5470
|
}
|
|
5355
5471
|
get entities() {
|
|
5356
5472
|
return this._entities;
|
|
@@ -5360,7 +5476,7 @@ var SceneHandle = class {
|
|
|
5360
5476
|
}
|
|
5361
5477
|
update(scene) {
|
|
5362
5478
|
this._store.set({
|
|
5363
|
-
...get$
|
|
5479
|
+
...get$2(this._store),
|
|
5364
5480
|
...scene
|
|
5365
5481
|
});
|
|
5366
5482
|
}
|
|
@@ -5374,13 +5490,13 @@ var SceneHandle = class {
|
|
|
5374
5490
|
this.manager.default = this.id;
|
|
5375
5491
|
}
|
|
5376
5492
|
_listen() {
|
|
5377
|
-
if (get$
|
|
5493
|
+
if (get$2(_listener)) return;
|
|
5378
5494
|
const unsub = [this._entities.store.subscribe((entities) => {
|
|
5379
|
-
const scene = get$
|
|
5495
|
+
const scene = get$2(this._store);
|
|
5380
5496
|
scene.entities = entities;
|
|
5381
5497
|
this._store.set(scene);
|
|
5382
5498
|
}), this._systems.store.subscribe((systems) => {
|
|
5383
|
-
const scene = get$
|
|
5499
|
+
const scene = get$2(this._store);
|
|
5384
5500
|
scene.systems = systems;
|
|
5385
5501
|
this._store.set(scene);
|
|
5386
5502
|
})];
|
|
@@ -5414,10 +5530,10 @@ var SceneManager = class {
|
|
|
5414
5530
|
return _storage$2;
|
|
5415
5531
|
}
|
|
5416
5532
|
get data() {
|
|
5417
|
-
return get$
|
|
5533
|
+
return get$2(_storage$2);
|
|
5418
5534
|
}
|
|
5419
5535
|
get activeData() {
|
|
5420
|
-
return get$
|
|
5536
|
+
return get$2(_activeSceneStorage);
|
|
5421
5537
|
}
|
|
5422
5538
|
get active() {
|
|
5423
5539
|
return _activeSceneStorage;
|
|
@@ -5426,7 +5542,7 @@ var SceneManager = class {
|
|
|
5426
5542
|
_activeSceneStorage.set(handle);
|
|
5427
5543
|
}
|
|
5428
5544
|
get defaultData() {
|
|
5429
|
-
return get$
|
|
5545
|
+
return get$2(_defaultSceneStorage);
|
|
5430
5546
|
}
|
|
5431
5547
|
get default() {
|
|
5432
5548
|
return _defaultSceneStorage;
|
|
@@ -5435,7 +5551,7 @@ var SceneManager = class {
|
|
|
5435
5551
|
_defaultSceneStorage.set(handle);
|
|
5436
5552
|
}
|
|
5437
5553
|
get rootScenes() {
|
|
5438
|
-
return get$
|
|
5554
|
+
return get$2(_rootScenesStorage);
|
|
5439
5555
|
}
|
|
5440
5556
|
get rootScenesStore() {
|
|
5441
5557
|
return _rootScenesStorage;
|
|
@@ -5444,7 +5560,7 @@ var SceneManager = class {
|
|
|
5444
5560
|
_rootScenesStorage.set(Array.from(new Set(scenes)));
|
|
5445
5561
|
}
|
|
5446
5562
|
add(scene) {
|
|
5447
|
-
const scenes = get$
|
|
5563
|
+
const scenes = get$2(_storage$2);
|
|
5448
5564
|
const id = getId(this.data, scene.name);
|
|
5449
5565
|
scenes.push({
|
|
5450
5566
|
...scene,
|
|
@@ -5454,16 +5570,16 @@ var SceneManager = class {
|
|
|
5454
5570
|
return id;
|
|
5455
5571
|
}
|
|
5456
5572
|
get(id) {
|
|
5457
|
-
const scene = get$
|
|
5573
|
+
const scene = get$2(_storage$2).find((scene) => scene.id === id);
|
|
5458
5574
|
if (!scene) throw new Error(`Scene with id ${id} not found`);
|
|
5459
5575
|
const handle = new SceneHandle(this, scene);
|
|
5460
5576
|
this._subscribe(id, handle);
|
|
5461
5577
|
return handle;
|
|
5462
5578
|
}
|
|
5463
5579
|
delete(id) {
|
|
5464
|
-
const scenes = get$
|
|
5580
|
+
const scenes = get$2(_storage$2);
|
|
5465
5581
|
_storage$2.set(scenes.filter((scene) => scene.id !== id));
|
|
5466
|
-
const subscriptions = get$
|
|
5582
|
+
const subscriptions = get$2(_subscriptions$1);
|
|
5467
5583
|
if (subscriptions[id]) {
|
|
5468
5584
|
subscriptions[id]();
|
|
5469
5585
|
subscriptions[id] = null;
|
|
@@ -5475,14 +5591,14 @@ var SceneManager = class {
|
|
|
5475
5591
|
}
|
|
5476
5592
|
_subscribe(id, handle) {
|
|
5477
5593
|
setTimeout(() => {
|
|
5478
|
-
const subscriptions = get$
|
|
5594
|
+
const subscriptions = get$2(_subscriptions$1);
|
|
5479
5595
|
if (subscriptions[id]) return;
|
|
5480
5596
|
subscriptions[id] = handle.store.subscribe((scene) => this._update(id, scene));
|
|
5481
5597
|
_subscriptions$1.set(subscriptions);
|
|
5482
5598
|
}, 0);
|
|
5483
5599
|
}
|
|
5484
5600
|
_update(id, scene) {
|
|
5485
|
-
const scenes = get$
|
|
5601
|
+
const scenes = get$2(_storage$2);
|
|
5486
5602
|
const index = scenes.findIndex((s) => s.id === id);
|
|
5487
5603
|
if (index === -1) return;
|
|
5488
5604
|
scenes[index] = scene;
|
|
@@ -5506,16 +5622,16 @@ var SystemHandle = class {
|
|
|
5506
5622
|
return this._store;
|
|
5507
5623
|
}
|
|
5508
5624
|
get data() {
|
|
5509
|
-
return get$
|
|
5625
|
+
return get$2(this._store);
|
|
5510
5626
|
}
|
|
5511
5627
|
update(system) {
|
|
5512
5628
|
this._store.set({
|
|
5513
|
-
...get$
|
|
5629
|
+
...get$2(this._store),
|
|
5514
5630
|
...system
|
|
5515
5631
|
});
|
|
5516
5632
|
}
|
|
5517
5633
|
delete() {
|
|
5518
|
-
this._manager.delete(this.id);
|
|
5634
|
+
return this._manager.delete(this.id);
|
|
5519
5635
|
}
|
|
5520
5636
|
};
|
|
5521
5637
|
var _storage = writable([]);
|
|
@@ -5532,7 +5648,7 @@ var SystemManager = class {
|
|
|
5532
5648
|
return _storage;
|
|
5533
5649
|
}
|
|
5534
5650
|
get data() {
|
|
5535
|
-
return get$
|
|
5651
|
+
return get$2(_storage);
|
|
5536
5652
|
}
|
|
5537
5653
|
async create(name) {
|
|
5538
5654
|
const { actions, fs } = useProject();
|
|
@@ -5540,12 +5656,8 @@ var SystemManager = class {
|
|
|
5540
5656
|
this._add(systemTransformer(system));
|
|
5541
5657
|
await (await fs.getDirectory()).readdir(true);
|
|
5542
5658
|
}
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
await actions.package.addSystems({ systemNames: names });
|
|
5546
|
-
await this.sync();
|
|
5547
|
-
await ecs.components.sync();
|
|
5548
|
-
await (await fs.getDirectory()).readdir(true);
|
|
5659
|
+
add(system) {
|
|
5660
|
+
this._add(systemTransformer(system));
|
|
5549
5661
|
}
|
|
5550
5662
|
async sync() {
|
|
5551
5663
|
const { actions } = useProject();
|
|
@@ -5553,16 +5665,20 @@ var SystemManager = class {
|
|
|
5553
5665
|
_storage.set(systemsTransformer(systems));
|
|
5554
5666
|
}
|
|
5555
5667
|
get(id) {
|
|
5556
|
-
const system = get$
|
|
5668
|
+
const system = get$2(_storage).find((system) => system.id === id);
|
|
5557
5669
|
if (!system) throw new Error(`System with id ${id} not found`);
|
|
5558
5670
|
const handle = new SystemHandle(this, system);
|
|
5559
5671
|
this._subscribe(id, handle);
|
|
5560
5672
|
return handle;
|
|
5561
5673
|
}
|
|
5562
|
-
delete(id) {
|
|
5563
|
-
const systems = get$
|
|
5564
|
-
|
|
5565
|
-
|
|
5674
|
+
async delete(id) {
|
|
5675
|
+
const systems = get$2(_storage);
|
|
5676
|
+
const system = systems.find((s) => s.id === id);
|
|
5677
|
+
if (!system) throw new Error(`System not found: ${id}`);
|
|
5678
|
+
_storage.set(systems.filter((s) => s.id !== id));
|
|
5679
|
+
const { fs } = useProject();
|
|
5680
|
+
await (await fs.getFile(system.path)).delete();
|
|
5681
|
+
const subscriptions = get$2(_subscriptions);
|
|
5566
5682
|
if (subscriptions[id]) {
|
|
5567
5683
|
subscriptions[id]();
|
|
5568
5684
|
subscriptions[id] = null;
|
|
@@ -5570,20 +5686,20 @@ var SystemManager = class {
|
|
|
5570
5686
|
}
|
|
5571
5687
|
}
|
|
5572
5688
|
_add(system) {
|
|
5573
|
-
const systems = get$
|
|
5689
|
+
const systems = get$2(_storage);
|
|
5574
5690
|
systems.push(system);
|
|
5575
5691
|
_storage.set(systems);
|
|
5576
5692
|
}
|
|
5577
5693
|
_subscribe(id, handle) {
|
|
5578
5694
|
setTimeout(() => {
|
|
5579
|
-
const subscriptions = get$
|
|
5695
|
+
const subscriptions = get$2(_subscriptions);
|
|
5580
5696
|
if (subscriptions[id]) return;
|
|
5581
5697
|
subscriptions[id] = handle.store.subscribe((system) => this._update(id, system));
|
|
5582
5698
|
_subscriptions.set(subscriptions);
|
|
5583
5699
|
}, 0);
|
|
5584
5700
|
}
|
|
5585
5701
|
_update(id, system) {
|
|
5586
|
-
const systems = get$
|
|
5702
|
+
const systems = get$2(_storage);
|
|
5587
5703
|
const index = systems.findIndex((s) => s.id === id);
|
|
5588
5704
|
if (index === -1) return;
|
|
5589
5705
|
systems[index] = system;
|
|
@@ -5593,10 +5709,13 @@ var SystemManager = class {
|
|
|
5593
5709
|
var ECSHandler = class {
|
|
5594
5710
|
_project;
|
|
5595
5711
|
_sceneManager;
|
|
5712
|
+
_assetManager;
|
|
5596
5713
|
_componentManager;
|
|
5597
5714
|
_systemManager;
|
|
5598
5715
|
_libraryManager;
|
|
5599
5716
|
static reset() {
|
|
5717
|
+
AssetHandle.reset();
|
|
5718
|
+
AssetManager.reset();
|
|
5600
5719
|
ComponentHandle.reset();
|
|
5601
5720
|
ComponentManager.reset();
|
|
5602
5721
|
SystemManager.reset();
|
|
@@ -5621,9 +5740,11 @@ var ECSHandler = class {
|
|
|
5621
5740
|
* This init is only made for the current version of the editor
|
|
5622
5741
|
* When scenes will be implemented, this init must be changed accordingly
|
|
5623
5742
|
*/
|
|
5743
|
+
const assets = await this._project.actions.package.getAssets();
|
|
5624
5744
|
const components = await this._project.actions.package.getComponents();
|
|
5625
5745
|
const systems = await this._project.actions.package.getSystems();
|
|
5626
5746
|
const save = await this._project.actions.save.get();
|
|
5747
|
+
this._assetManager = new AssetManager(assetsTransformer(assets));
|
|
5627
5748
|
this._componentManager = new ComponentManager(componentsTransformer(components));
|
|
5628
5749
|
this._systemManager = new SystemManager(systemsTransformer(systems));
|
|
5629
5750
|
this._libraryManager = new LibraryManager(librariesTransformer(save));
|
|
@@ -5633,6 +5754,10 @@ var ECSHandler = class {
|
|
|
5633
5754
|
if (!this._sceneManager) throw new Error("ECS handler not initialized");
|
|
5634
5755
|
return this._sceneManager;
|
|
5635
5756
|
}
|
|
5757
|
+
get assets() {
|
|
5758
|
+
if (!this._assetManager) throw new Error("ECS handler not initialized");
|
|
5759
|
+
return this._assetManager;
|
|
5760
|
+
}
|
|
5636
5761
|
get components() {
|
|
5637
5762
|
if (!this._componentManager) throw new Error("ECS handler not initialized");
|
|
5638
5763
|
return this._componentManager;
|
|
@@ -5713,12 +5838,12 @@ var InfoHandler = class {
|
|
|
5713
5838
|
this.core = core;
|
|
5714
5839
|
}
|
|
5715
5840
|
get(cacheOnly) {
|
|
5716
|
-
if (cacheOnly) return get$
|
|
5841
|
+
if (cacheOnly) return get$2(infoStore);
|
|
5717
5842
|
return this.fetch();
|
|
5718
5843
|
}
|
|
5719
5844
|
async fetch(noCache = false) {
|
|
5720
5845
|
if (!noCache) {
|
|
5721
|
-
const cache = get$
|
|
5846
|
+
const cache = get$2(infoStore);
|
|
5722
5847
|
if (cache) return cache;
|
|
5723
5848
|
}
|
|
5724
5849
|
const res = await this.core.actions.project.getInfo();
|
|
@@ -5852,6 +5977,9 @@ var FileSystemFile = class {
|
|
|
5852
5977
|
const raw = JSON.stringify(content);
|
|
5853
5978
|
return this.write(raw);
|
|
5854
5979
|
}
|
|
5980
|
+
async createWritable() {
|
|
5981
|
+
return this.handle.createWritable();
|
|
5982
|
+
}
|
|
5855
5983
|
async getUrl() {
|
|
5856
5984
|
if (URL_CACHE.has(this.handle.name)) URL.revokeObjectURL(URL_CACHE.get(this.handle.name));
|
|
5857
5985
|
const file = await this.handle.getFile();
|
|
@@ -6037,6 +6165,10 @@ var SfsFile = class {
|
|
|
6037
6165
|
await this._cache.writeJson(content);
|
|
6038
6166
|
await this.sync();
|
|
6039
6167
|
}
|
|
6168
|
+
async createWritable() {
|
|
6169
|
+
await this._preWrite();
|
|
6170
|
+
return await this._cache.createWritable();
|
|
6171
|
+
}
|
|
6040
6172
|
async sync() {
|
|
6041
6173
|
if (!this._cache) return;
|
|
6042
6174
|
const file = await this._cache.getFile();
|
|
@@ -6050,6 +6182,13 @@ var SfsFile = class {
|
|
|
6050
6182
|
});
|
|
6051
6183
|
if (!res.ok) throw new Error(`Failed to sync file: ${await res.text()}`);
|
|
6052
6184
|
}
|
|
6185
|
+
async delete() {
|
|
6186
|
+
const res = await fetch(this._route, {
|
|
6187
|
+
method: "DELETE",
|
|
6188
|
+
headers: { [SESSION_PROJECT_HEADER]: this._handler.project.id }
|
|
6189
|
+
});
|
|
6190
|
+
if (!res.ok) throw new Error(`Failed to delete file: ${await res.text()}`);
|
|
6191
|
+
}
|
|
6053
6192
|
async getFile() {
|
|
6054
6193
|
await this._preRead();
|
|
6055
6194
|
return this._cache;
|
|
@@ -6314,33 +6453,14 @@ var Loader = class {
|
|
|
6314
6453
|
};
|
|
6315
6454
|
var PackageHandler = class {
|
|
6316
6455
|
_project;
|
|
6317
|
-
_componentsManifests = /* @__PURE__ */ new Map();
|
|
6318
|
-
_systemsManifests = /* @__PURE__ */ new Map();
|
|
6319
6456
|
constructor(project) {
|
|
6320
6457
|
this._project = project;
|
|
6321
6458
|
}
|
|
6322
|
-
async
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
return this._systemsManifests.get(systemName);
|
|
6328
|
-
}
|
|
6329
|
-
async installComponent(name) {
|
|
6330
|
-
const newComponent = (await this._project.actions.package.addComponents({ componentNames: [name] }))[0];
|
|
6331
|
-
this._project.save.save.components.push(newComponent.save);
|
|
6332
|
-
this._componentsManifests.set(newComponent.save.name, newComponent.manifest);
|
|
6333
|
-
}
|
|
6334
|
-
async installSystem(name) {
|
|
6335
|
-
const newSystem = (await this._project.actions.package.addSystems({ systemNames: [name] }))[0];
|
|
6336
|
-
this._project.save.save.systems.push(newSystem.save);
|
|
6337
|
-
this._systemsManifests.set(newSystem.save.name, newSystem.manifest);
|
|
6338
|
-
}
|
|
6339
|
-
addComponentManifest(componentName, component) {
|
|
6340
|
-
this._componentsManifests.set(componentName, component);
|
|
6341
|
-
}
|
|
6342
|
-
addSystemManifest(systemName, system) {
|
|
6343
|
-
this._systemsManifests.set(systemName, system);
|
|
6459
|
+
async installPackages(names) {
|
|
6460
|
+
await this._project.actions.package.installPackages({ names });
|
|
6461
|
+
await this._project.ecs.components.sync();
|
|
6462
|
+
await this._project.ecs.systems.sync();
|
|
6463
|
+
await (await this._project.fs.getDirectory()).readdir(true);
|
|
6344
6464
|
}
|
|
6345
6465
|
};
|
|
6346
6466
|
var SaveHandler = class {
|
|
@@ -6370,10 +6490,10 @@ var SaveHandler = class {
|
|
|
6370
6490
|
async syncToServer() {
|
|
6371
6491
|
if (this._readyToSync) {
|
|
6372
6492
|
this._readyToSync = false;
|
|
6373
|
-
await this._project.actions.save.set({ save: get$
|
|
6493
|
+
await this._project.actions.save.set({ save: get$2(this._save) });
|
|
6374
6494
|
this._syncTimer = setTimeout(() => {
|
|
6375
6495
|
this._readyToSync = true;
|
|
6376
|
-
if (get$
|
|
6496
|
+
if (get$2(this._needSync)) {
|
|
6377
6497
|
this.syncToServer();
|
|
6378
6498
|
this._needSync.set(false);
|
|
6379
6499
|
}
|
|
@@ -6387,7 +6507,7 @@ var SaveHandler = class {
|
|
|
6387
6507
|
await this.syncToServer();
|
|
6388
6508
|
}
|
|
6389
6509
|
get save() {
|
|
6390
|
-
return get$
|
|
6510
|
+
return get$2(this._save);
|
|
6391
6511
|
}
|
|
6392
6512
|
_listeners() {
|
|
6393
6513
|
this._project.ecs.components.store.subscribe((components) => {
|
|
@@ -6450,7 +6570,6 @@ var Project = class {
|
|
|
6450
6570
|
await this.fs.init();
|
|
6451
6571
|
await this.ecs.init();
|
|
6452
6572
|
await this.save.init();
|
|
6453
|
-
await this.packages.init();
|
|
6454
6573
|
this._inited = true;
|
|
6455
6574
|
return this;
|
|
6456
6575
|
}
|
|
@@ -6682,7 +6801,7 @@ var ProjectLoader = class ProjectLoader {
|
|
|
6682
6801
|
}
|
|
6683
6802
|
};
|
|
6684
6803
|
var useProject = () => {
|
|
6685
|
-
const project = get$
|
|
6804
|
+
const project = get$2(projectStore);
|
|
6686
6805
|
if (!project) {
|
|
6687
6806
|
const error = new PLException(PLErrors.No_Project);
|
|
6688
6807
|
error.fb();
|
|
@@ -14990,4 +15109,4 @@ var runSafe = async (context, cb, fallback) => {
|
|
|
14990
15109
|
//#endregion
|
|
14991
15110
|
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 };
|
|
14992
15111
|
|
|
14993
|
-
//# sourceMappingURL=error-
|
|
15112
|
+
//# sourceMappingURL=error-DXhNNMk1.js.map
|