@nanoforge-dev/editor 0.0.2-beta.394e65b → 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/{DfAL3LhV.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/{Coa6r0tY.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/{Ctc_6ReW.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/{CmuvbAn5.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.BzOeKbPs.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.CPqemWaq.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.OaHPDibP.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/{9.Hjdmo-wG.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-CM-Y6ut6.js → 0-Bcww7pkn.js} +6 -6
- package/dist/server/chunks/{0-CM-Y6ut6.js.map → 0-Bcww7pkn.js.map} +1 -1
- package/dist/server/chunks/{1-C2ffLW3O.js → 1-BIiCLN21.js} +6 -6
- package/dist/server/chunks/{1-C2ffLW3O.js.map → 1-BIiCLN21.js.map} +1 -1
- package/dist/server/chunks/{5-610NKQc3.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-BAs82M_7.js → 2-BvUnZSQz.js} +10 -10
- package/dist/server/chunks/{2-BAs82M_7.js.map → 2-BvUnZSQz.js.map} +1 -1
- package/dist/server/chunks/3-DdpBg6Re.js +22 -0
- package/dist/server/chunks/3-DdpBg6Re.js.map +1 -0
- package/dist/server/chunks/{3-CtfjP4uZ.js → 4-B2tSZCU9.js} +5 -5
- package/dist/server/chunks/{3-CtfjP4uZ.js.map → 4-B2tSZCU9.js.map} +1 -1
- package/dist/server/chunks/{8-s07Rj2Zo.js → 5-D3-J9iUP.js} +5 -5
- package/dist/server/chunks/{8-s07Rj2Zo.js.map → 5-D3-J9iUP.js.map} +1 -1
- package/dist/server/chunks/{4-DP-_gDay.js → 6-DDoqG8iB.js} +5 -5
- package/dist/server/chunks/{4-DP-_gDay.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/{7-BUEKgK7m.js → 9-6rlPfdHX.js} +5 -5
- package/dist/server/chunks/{7-BUEKgK7m.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-DR4jsdM6.js → _page.svelte-B7V_s1iG.js} +7 -7
- package/dist/server/chunks/{_page.svelte-DR4jsdM6.js.map → _page.svelte-B7V_s1iG.js.map} +1 -1
- package/dist/server/chunks/{_page.svelte-Bn7BSazx.js → _page.svelte-BHLa7YUI.js} +6 -6
- package/dist/server/chunks/_page.svelte-BHLa7YUI.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-vOyGpofm.js → _page.svelte-Chqj_iRU.js} +396 -114
- 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-bZcBshMs.js → client-Dse9iwN0.js} +4 -4
- package/dist/server/chunks/client-Dse9iwN0.js.map +1 -0
- package/dist/server/chunks/{error-DYeUQ7mQ.js → error-DXhNNMk1.js} +299 -172
- package/dist/server/chunks/error-DXhNNMk1.js.map +1 -0
- package/dist/server/chunks/{error.svelte-DDsdZM_m.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-BGpE7svk.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-DBpj29pr.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-DQI0khKS.js → logo-C6QUIUff.js} +4 -4
- package/dist/server/chunks/logo-C6QUIUff.js.map +1 -0
- package/dist/server/chunks/{project-loader-DaQVgPID.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-BDVbWglI.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-DwdUA00F.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 +55 -31
- package/dist/server/manifest.js.map +1 -1
- package/package.json +18 -16
- package/dist/client/_app/immutable/assets/0.DOl0zkp7.css +0 -1
- package/dist/client/_app/immutable/assets/0.DOl0zkp7.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.DOl0zkp7.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/BApLQfqY.js +0 -6
- package/dist/client/_app/immutable/chunks/BApLQfqY.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BApLQfqY.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BDBSsbMb.js +0 -1
- package/dist/client/_app/immutable/chunks/BDBSsbMb.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BDBSsbMb.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/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/CKei9xPI2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CKei9xPI2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CmuvbAn5.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CmuvbAn5.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/Coa6r0tY.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Coa6r0tY.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Ctc_6ReW.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Ctc_6ReW.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/DfAL3LhV.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DfAL3LhV.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/entry/app.BzOeKbPs.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.BzOeKbPs.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.CNF2MUuM.js +0 -1
- package/dist/client/_app/immutable/entry/start.CNF2MUuM.js.br +0 -0
- package/dist/client/_app/immutable/entry/start.CNF2MUuM.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/0.CPqemWaq.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.CPqemWaq.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/1.OaHPDibP.js.br +0 -2
- package/dist/client/_app/immutable/nodes/1.OaHPDibP.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/10.BRGL1_0_.js +0 -6
- package/dist/client/_app/immutable/nodes/10.BRGL1_0_.js.br +0 -0
- package/dist/client/_app/immutable/nodes/10.BRGL1_0_.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.BK6m2FYa.js +0 -1
- package/dist/client/_app/immutable/nodes/2.BK6m2FYa.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.BK6m2FYa.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/9.Hjdmo-wG.js.br +0 -0
- package/dist/client/_app/immutable/nodes/9.Hjdmo-wG.js.gz +0 -0
- package/dist/server/chunks/10-DhkWDAeT.js +0 -22
- package/dist/server/chunks/10-DhkWDAeT.js.map +0 -1
- package/dist/server/chunks/5-610NKQc3.js.map +0 -1
- package/dist/server/chunks/6-Dl_h_OyU.js +0 -98
- package/dist/server/chunks/6-Dl_h_OyU.js.map +0 -1
- package/dist/server/chunks/9-CDMb5iwc.js +0 -22
- package/dist/server/chunks/9-CDMb5iwc.js.map +0 -1
- package/dist/server/chunks/_layout.svelte-uX7XiB9K.js.map +0 -1
- package/dist/server/chunks/_page.svelte-Bn7BSazx.js.map +0 -1
- package/dist/server/chunks/_page.svelte-vOyGpofm.js.map +0 -1
- package/dist/server/chunks/_server.ts-DlC2sxcm.js.map +0 -1
- package/dist/server/chunks/client-bZcBshMs.js.map +0 -1
- package/dist/server/chunks/error-DYeUQ7mQ.js.map +0 -1
- package/dist/server/chunks/error.svelte-DDsdZM_m.js.map +0 -1
- package/dist/server/chunks/events-Bhh2w-5S.js.map +0 -1
- package/dist/server/chunks/hooks.server-BGpE7svk.js.map +0 -1
- package/dist/server/chunks/internal2-DBpj29pr.js.map +0 -1
- package/dist/server/chunks/loader-circle-CFNm9vip.js.map +0 -1
- package/dist/server/chunks/logo-DQI0khKS.js.map +0 -1
- package/dist/server/chunks/project-loader-DaQVgPID.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-BDVbWglI.js.map +0 -1
- package/dist/server/chunks/state-DwdUA00F.js.map +0 -1
- /package/dist/client/_app/immutable/assets/{10.BP_hUVIU.css → 3.BP_hUVIU.css} +0 -0
- /package/dist/client/_app/immutable/assets/{10.BP_hUVIU.css.br → 3.BP_hUVIU.css.br} +0 -0
- /package/dist/client/_app/immutable/assets/{10.BP_hUVIU.css.gz → 3.BP_hUVIU.css.gz} +0 -0
- /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;
|
|
@@ -4972,6 +5088,7 @@ var ComponentParamManager = class {
|
|
|
4972
5088
|
component;
|
|
4973
5089
|
_store;
|
|
4974
5090
|
_valuesStore;
|
|
5091
|
+
_storageResolvable;
|
|
4975
5092
|
static reset() {
|
|
4976
5093
|
_storage$8.set({});
|
|
4977
5094
|
_valueStorage.set({});
|
|
@@ -4980,9 +5097,9 @@ var ComponentParamManager = class {
|
|
|
4980
5097
|
}
|
|
4981
5098
|
constructor(component, params) {
|
|
4982
5099
|
this.component = component;
|
|
4983
|
-
|
|
4984
|
-
this._store = resolveStore(_storage$8,
|
|
4985
|
-
this._valuesStore = resolveStore(_valueStorage,
|
|
5100
|
+
this._storageResolvable = `${this.component.manager.entity.manager.scene.id}/${this.component.manager.entity.id}/${this.component.id}`;
|
|
5101
|
+
this._store = resolveStore(_storage$8, this._storageResolvable, get$2(component.store).params);
|
|
5102
|
+
this._valuesStore = resolveStore(_valueStorage, this._storageResolvable, params);
|
|
4986
5103
|
this._listen();
|
|
4987
5104
|
}
|
|
4988
5105
|
get store() {
|
|
@@ -4992,28 +5109,29 @@ var ComponentParamManager = class {
|
|
|
4992
5109
|
return this._valuesStore;
|
|
4993
5110
|
}
|
|
4994
5111
|
get(id) {
|
|
4995
|
-
const param = get$
|
|
5112
|
+
const param = get$2(this._store).find((param) => param.name === id);
|
|
4996
5113
|
if (!param) throw new Error(`Param with id ${id} not found`);
|
|
4997
|
-
const value = get$
|
|
5114
|
+
const value = get$2(this._valuesStore)[id];
|
|
4998
5115
|
const handle = new ComponentParamHandle(this, param, value);
|
|
4999
5116
|
this._subscribe(id, handle);
|
|
5000
5117
|
return handle;
|
|
5001
5118
|
}
|
|
5002
5119
|
delete(id) {
|
|
5003
|
-
const params = get$
|
|
5120
|
+
const params = get$2(this._store);
|
|
5004
5121
|
this._store.set(params.map((param) => param.name === id ? {
|
|
5005
5122
|
...param,
|
|
5006
5123
|
value: void 0
|
|
5007
5124
|
} : param));
|
|
5008
|
-
const
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
subscriptions[
|
|
5125
|
+
const fullId = `${this._storageResolvable}/${id}`;
|
|
5126
|
+
const subscriptions = get$2(_subscriptions$4);
|
|
5127
|
+
if (subscriptions[fullId]) {
|
|
5128
|
+
subscriptions[fullId]();
|
|
5129
|
+
subscriptions[fullId] = null;
|
|
5012
5130
|
_subscriptions$4.set(subscriptions);
|
|
5013
5131
|
}
|
|
5014
5132
|
}
|
|
5015
5133
|
_listen() {
|
|
5016
|
-
if (get$
|
|
5134
|
+
if (get$2(_listener$4)) return;
|
|
5017
5135
|
const unsub = this.component.store.subscribe((component) => {
|
|
5018
5136
|
this._store.set(component.params);
|
|
5019
5137
|
});
|
|
@@ -5021,14 +5139,15 @@ var ComponentParamManager = class {
|
|
|
5021
5139
|
}
|
|
5022
5140
|
_subscribe(id, handle) {
|
|
5023
5141
|
setTimeout(() => {
|
|
5024
|
-
const
|
|
5025
|
-
|
|
5026
|
-
subscriptions[
|
|
5142
|
+
const fullId = `${this._storageResolvable}/${id}`;
|
|
5143
|
+
const subscriptions = get$2(_subscriptions$4);
|
|
5144
|
+
if (subscriptions[fullId]) return;
|
|
5145
|
+
subscriptions[fullId] = handle.value.subscribe((param) => this._update(id, param));
|
|
5027
5146
|
_subscriptions$4.set(subscriptions);
|
|
5028
5147
|
}, 0);
|
|
5029
5148
|
}
|
|
5030
5149
|
_update(id, value) {
|
|
5031
|
-
const params = get$
|
|
5150
|
+
const params = get$2(this._valuesStore);
|
|
5032
5151
|
params[id] = value;
|
|
5033
5152
|
this._valuesStore.set(params);
|
|
5034
5153
|
}
|
|
@@ -5048,7 +5167,7 @@ var EntityComponentHandle = class {
|
|
|
5048
5167
|
return this._store;
|
|
5049
5168
|
}
|
|
5050
5169
|
get data() {
|
|
5051
|
-
return get$
|
|
5170
|
+
return get$2(this._store);
|
|
5052
5171
|
}
|
|
5053
5172
|
get params() {
|
|
5054
5173
|
return this._params;
|
|
@@ -5063,6 +5182,7 @@ var _listener$3 = writable();
|
|
|
5063
5182
|
var EntityComponentManager = class {
|
|
5064
5183
|
entity;
|
|
5065
5184
|
_store;
|
|
5185
|
+
_storageResolvable;
|
|
5066
5186
|
static reset() {
|
|
5067
5187
|
_storage$7.set({});
|
|
5068
5188
|
resetSubscriptions(_subscriptions$3);
|
|
@@ -5070,47 +5190,48 @@ var EntityComponentManager = class {
|
|
|
5070
5190
|
}
|
|
5071
5191
|
constructor(entity, components) {
|
|
5072
5192
|
this.entity = entity;
|
|
5073
|
-
|
|
5074
|
-
this._store = resolveStore(_storage$7,
|
|
5193
|
+
this._storageResolvable = `${this.entity.manager.scene.id}/${this.entity.id}`;
|
|
5194
|
+
this._store = resolveStore(_storage$7, this._storageResolvable, components);
|
|
5075
5195
|
this._listen();
|
|
5076
5196
|
}
|
|
5077
5197
|
get store() {
|
|
5078
5198
|
return this._store;
|
|
5079
5199
|
}
|
|
5080
5200
|
get data() {
|
|
5081
|
-
return get$
|
|
5201
|
+
return get$2(this._store);
|
|
5082
5202
|
}
|
|
5083
5203
|
add(component) {
|
|
5084
|
-
const components = get$
|
|
5204
|
+
const components = get$2(this._store);
|
|
5085
5205
|
const manifest = this.entity.manager.scene.manager.ecs.components.get(component).data;
|
|
5086
5206
|
components[component] = { ...Object.fromEntries(manifest.params.filter((param) => param.default).map((param) => [param.name, param.default])) };
|
|
5087
5207
|
this._store.set(components);
|
|
5088
5208
|
}
|
|
5089
5209
|
get(id) {
|
|
5090
|
-
const params = get$
|
|
5210
|
+
const params = get$2(this._store)[id];
|
|
5091
5211
|
if (!params) throw new Error(`Component with id ${id} not found`);
|
|
5092
5212
|
const handle = new EntityComponentHandle(this, id, params);
|
|
5093
5213
|
this._subscribe(id, handle);
|
|
5094
5214
|
return handle;
|
|
5095
5215
|
}
|
|
5096
5216
|
delete(id) {
|
|
5097
|
-
const components = get$
|
|
5217
|
+
const components = get$2(this._store);
|
|
5098
5218
|
const newComponents = {};
|
|
5099
5219
|
Object.entries(components).forEach(([key, params]) => {
|
|
5100
5220
|
if (key !== id) newComponents[key] = params;
|
|
5101
5221
|
});
|
|
5102
5222
|
this._store.set(newComponents);
|
|
5103
|
-
const
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
subscriptions[
|
|
5223
|
+
const fullId = `${this._storageResolvable}/${id}`;
|
|
5224
|
+
const subscriptions = get$2(_subscriptions$3);
|
|
5225
|
+
if (subscriptions[fullId]) {
|
|
5226
|
+
subscriptions[fullId]();
|
|
5227
|
+
subscriptions[fullId] = null;
|
|
5107
5228
|
_subscriptions$3.set(subscriptions);
|
|
5108
5229
|
}
|
|
5109
5230
|
}
|
|
5110
5231
|
_listen() {
|
|
5111
|
-
if (get$
|
|
5232
|
+
if (get$2(_listener$3)) return;
|
|
5112
5233
|
const unsub = this.entity.manager.scene.manager.ecs.components.store.subscribe((components) => {
|
|
5113
|
-
const entityComponents = get$
|
|
5234
|
+
const entityComponents = get$2(this._store);
|
|
5114
5235
|
const newComponents = {};
|
|
5115
5236
|
Object.entries(entityComponents).forEach(([key, params]) => {
|
|
5116
5237
|
if (components.find((s) => s.id === key)) newComponents[key] = params;
|
|
@@ -5121,14 +5242,15 @@ var EntityComponentManager = class {
|
|
|
5121
5242
|
}
|
|
5122
5243
|
_subscribe(id, handle) {
|
|
5123
5244
|
setTimeout(() => {
|
|
5124
|
-
const
|
|
5125
|
-
|
|
5126
|
-
subscriptions[
|
|
5245
|
+
const fullId = `${this._storageResolvable}/${id}`;
|
|
5246
|
+
const subscriptions = get$2(_subscriptions$3);
|
|
5247
|
+
if (subscriptions[fullId]) return;
|
|
5248
|
+
subscriptions[fullId] = handle.params.values.subscribe((params) => this._update(id, params));
|
|
5127
5249
|
_subscriptions$3.set(subscriptions);
|
|
5128
5250
|
}, 0);
|
|
5129
5251
|
}
|
|
5130
5252
|
_update(id, params) {
|
|
5131
|
-
const component = get$
|
|
5253
|
+
const component = get$2(this._store);
|
|
5132
5254
|
component[id] = params;
|
|
5133
5255
|
this._store.set(component);
|
|
5134
5256
|
}
|
|
@@ -5155,14 +5277,14 @@ var SceneEntityHandle = class {
|
|
|
5155
5277
|
return this._store;
|
|
5156
5278
|
}
|
|
5157
5279
|
get data() {
|
|
5158
|
-
return get$
|
|
5280
|
+
return get$2(this._store);
|
|
5159
5281
|
}
|
|
5160
5282
|
get components() {
|
|
5161
5283
|
return this._components;
|
|
5162
5284
|
}
|
|
5163
5285
|
update(entity) {
|
|
5164
5286
|
this._store.set({
|
|
5165
|
-
...get$
|
|
5287
|
+
...get$2(this._store),
|
|
5166
5288
|
...entity
|
|
5167
5289
|
});
|
|
5168
5290
|
}
|
|
@@ -5173,9 +5295,9 @@ var SceneEntityHandle = class {
|
|
|
5173
5295
|
this.manager.selected = this;
|
|
5174
5296
|
}
|
|
5175
5297
|
_listen() {
|
|
5176
|
-
if (get$
|
|
5298
|
+
if (get$2(_listener$2)) return;
|
|
5177
5299
|
const unsub = this._components.store.subscribe((components) => {
|
|
5178
|
-
const entity = get$
|
|
5300
|
+
const entity = get$2(this._store);
|
|
5179
5301
|
entity.components = components;
|
|
5180
5302
|
this._store.set(entity);
|
|
5181
5303
|
});
|
|
@@ -5200,10 +5322,10 @@ var SceneEntityManager = class {
|
|
|
5200
5322
|
return this._store;
|
|
5201
5323
|
}
|
|
5202
5324
|
get data() {
|
|
5203
|
-
return get$
|
|
5325
|
+
return get$2(this._store);
|
|
5204
5326
|
}
|
|
5205
5327
|
get selectedData() {
|
|
5206
|
-
return get$
|
|
5328
|
+
return get$2(selectedEntity);
|
|
5207
5329
|
}
|
|
5208
5330
|
get selected() {
|
|
5209
5331
|
return selectedEntity;
|
|
@@ -5212,7 +5334,7 @@ var SceneEntityManager = class {
|
|
|
5212
5334
|
selectedEntity.set(entity);
|
|
5213
5335
|
}
|
|
5214
5336
|
add(entity) {
|
|
5215
|
-
const entities = get$
|
|
5337
|
+
const entities = get$2(this._store);
|
|
5216
5338
|
const id = getId(this.data, entity.name);
|
|
5217
5339
|
entities.push({
|
|
5218
5340
|
...entity,
|
|
@@ -5222,33 +5344,35 @@ var SceneEntityManager = class {
|
|
|
5222
5344
|
return id;
|
|
5223
5345
|
}
|
|
5224
5346
|
get(id) {
|
|
5225
|
-
const entity = get$
|
|
5347
|
+
const entity = get$2(this._store).find((entity) => entity.id === id);
|
|
5226
5348
|
if (!entity) throw new Error(`Entity with id ${id} not found`);
|
|
5227
5349
|
const handle = new SceneEntityHandle(this, entity);
|
|
5228
5350
|
this._subscribe(id, handle);
|
|
5229
5351
|
return handle;
|
|
5230
5352
|
}
|
|
5231
5353
|
delete(id) {
|
|
5232
|
-
const entities = get$
|
|
5354
|
+
const entities = get$2(this._store);
|
|
5233
5355
|
this._store.set(entities.filter((entity) => entity.id !== id));
|
|
5234
|
-
const
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
subscriptions[
|
|
5356
|
+
const fullId = `${this.scene.id}/${id}`;
|
|
5357
|
+
const subscriptions = get$2(_subscriptions$2);
|
|
5358
|
+
if (subscriptions[fullId]) {
|
|
5359
|
+
subscriptions[fullId]();
|
|
5360
|
+
subscriptions[fullId] = null;
|
|
5238
5361
|
_subscriptions$2.set(subscriptions);
|
|
5239
5362
|
}
|
|
5240
5363
|
if (this.selectedData?.id === id) this.selected = void 0;
|
|
5241
5364
|
}
|
|
5242
5365
|
_subscribe(id, handle) {
|
|
5243
5366
|
setTimeout(() => {
|
|
5244
|
-
const
|
|
5245
|
-
|
|
5246
|
-
subscriptions[
|
|
5367
|
+
const fullId = `${this.scene.id}/${id}`;
|
|
5368
|
+
const subscriptions = get$2(_subscriptions$2);
|
|
5369
|
+
if (subscriptions[fullId]) return;
|
|
5370
|
+
subscriptions[fullId] = handle.store.subscribe((entity) => this._update(id, entity));
|
|
5247
5371
|
_subscriptions$2.set(subscriptions);
|
|
5248
5372
|
}, 0);
|
|
5249
5373
|
}
|
|
5250
5374
|
_update(id, entity) {
|
|
5251
|
-
const entities = get$
|
|
5375
|
+
const entities = get$2(this._store);
|
|
5252
5376
|
const index = entities.findIndex((s) => s.id === id);
|
|
5253
5377
|
if (index === -1) return;
|
|
5254
5378
|
entities[index] = entity;
|
|
@@ -5268,7 +5392,7 @@ var SceneSystemHandle = class {
|
|
|
5268
5392
|
return this._store;
|
|
5269
5393
|
}
|
|
5270
5394
|
get data() {
|
|
5271
|
-
return get$
|
|
5395
|
+
return get$2(this._store);
|
|
5272
5396
|
}
|
|
5273
5397
|
delete() {
|
|
5274
5398
|
this.manager.delete(this.id);
|
|
@@ -5292,26 +5416,26 @@ var SceneSystemManager = class {
|
|
|
5292
5416
|
return this._store;
|
|
5293
5417
|
}
|
|
5294
5418
|
get data() {
|
|
5295
|
-
return get$
|
|
5419
|
+
return get$2(this._store);
|
|
5296
5420
|
}
|
|
5297
5421
|
add(system) {
|
|
5298
|
-
const systems = get$
|
|
5422
|
+
const systems = get$2(this._store);
|
|
5299
5423
|
systems.push(system);
|
|
5300
5424
|
this._store.set(systems);
|
|
5301
5425
|
}
|
|
5302
5426
|
get(id) {
|
|
5303
|
-
const system = get$
|
|
5427
|
+
const system = get$2(this._store).find((system) => system === id);
|
|
5304
5428
|
if (!system) throw new Error(`System with id ${id} not found`);
|
|
5305
5429
|
return new SceneSystemHandle(this, system);
|
|
5306
5430
|
}
|
|
5307
5431
|
delete(id) {
|
|
5308
|
-
const systems = get$
|
|
5432
|
+
const systems = get$2(this._store);
|
|
5309
5433
|
this._store.set(systems.filter((system) => system !== id));
|
|
5310
5434
|
}
|
|
5311
5435
|
_listen() {
|
|
5312
|
-
if (get$
|
|
5436
|
+
if (get$2(_listener$1)) return;
|
|
5313
5437
|
const unsub = this.scene.manager.ecs.systems.store.subscribe((systems) => {
|
|
5314
|
-
const sceneSystems = get$
|
|
5438
|
+
const sceneSystems = get$2(this._store);
|
|
5315
5439
|
sceneSystems.filter((system) => systems.find((s) => s.id === system));
|
|
5316
5440
|
this._store.set(sceneSystems);
|
|
5317
5441
|
});
|
|
@@ -5342,7 +5466,7 @@ var SceneHandle = class {
|
|
|
5342
5466
|
return this._store;
|
|
5343
5467
|
}
|
|
5344
5468
|
get data() {
|
|
5345
|
-
return get$
|
|
5469
|
+
return get$2(this._store);
|
|
5346
5470
|
}
|
|
5347
5471
|
get entities() {
|
|
5348
5472
|
return this._entities;
|
|
@@ -5352,7 +5476,7 @@ var SceneHandle = class {
|
|
|
5352
5476
|
}
|
|
5353
5477
|
update(scene) {
|
|
5354
5478
|
this._store.set({
|
|
5355
|
-
...get$
|
|
5479
|
+
...get$2(this._store),
|
|
5356
5480
|
...scene
|
|
5357
5481
|
});
|
|
5358
5482
|
}
|
|
@@ -5366,13 +5490,13 @@ var SceneHandle = class {
|
|
|
5366
5490
|
this.manager.default = this.id;
|
|
5367
5491
|
}
|
|
5368
5492
|
_listen() {
|
|
5369
|
-
if (get$
|
|
5493
|
+
if (get$2(_listener)) return;
|
|
5370
5494
|
const unsub = [this._entities.store.subscribe((entities) => {
|
|
5371
|
-
const scene = get$
|
|
5495
|
+
const scene = get$2(this._store);
|
|
5372
5496
|
scene.entities = entities;
|
|
5373
5497
|
this._store.set(scene);
|
|
5374
5498
|
}), this._systems.store.subscribe((systems) => {
|
|
5375
|
-
const scene = get$
|
|
5499
|
+
const scene = get$2(this._store);
|
|
5376
5500
|
scene.systems = systems;
|
|
5377
5501
|
this._store.set(scene);
|
|
5378
5502
|
})];
|
|
@@ -5406,10 +5530,10 @@ var SceneManager = class {
|
|
|
5406
5530
|
return _storage$2;
|
|
5407
5531
|
}
|
|
5408
5532
|
get data() {
|
|
5409
|
-
return get$
|
|
5533
|
+
return get$2(_storage$2);
|
|
5410
5534
|
}
|
|
5411
5535
|
get activeData() {
|
|
5412
|
-
return get$
|
|
5536
|
+
return get$2(_activeSceneStorage);
|
|
5413
5537
|
}
|
|
5414
5538
|
get active() {
|
|
5415
5539
|
return _activeSceneStorage;
|
|
@@ -5418,7 +5542,7 @@ var SceneManager = class {
|
|
|
5418
5542
|
_activeSceneStorage.set(handle);
|
|
5419
5543
|
}
|
|
5420
5544
|
get defaultData() {
|
|
5421
|
-
return get$
|
|
5545
|
+
return get$2(_defaultSceneStorage);
|
|
5422
5546
|
}
|
|
5423
5547
|
get default() {
|
|
5424
5548
|
return _defaultSceneStorage;
|
|
@@ -5427,7 +5551,7 @@ var SceneManager = class {
|
|
|
5427
5551
|
_defaultSceneStorage.set(handle);
|
|
5428
5552
|
}
|
|
5429
5553
|
get rootScenes() {
|
|
5430
|
-
return get$
|
|
5554
|
+
return get$2(_rootScenesStorage);
|
|
5431
5555
|
}
|
|
5432
5556
|
get rootScenesStore() {
|
|
5433
5557
|
return _rootScenesStorage;
|
|
@@ -5436,7 +5560,7 @@ var SceneManager = class {
|
|
|
5436
5560
|
_rootScenesStorage.set(Array.from(new Set(scenes)));
|
|
5437
5561
|
}
|
|
5438
5562
|
add(scene) {
|
|
5439
|
-
const scenes = get$
|
|
5563
|
+
const scenes = get$2(_storage$2);
|
|
5440
5564
|
const id = getId(this.data, scene.name);
|
|
5441
5565
|
scenes.push({
|
|
5442
5566
|
...scene,
|
|
@@ -5446,16 +5570,16 @@ var SceneManager = class {
|
|
|
5446
5570
|
return id;
|
|
5447
5571
|
}
|
|
5448
5572
|
get(id) {
|
|
5449
|
-
const scene = get$
|
|
5573
|
+
const scene = get$2(_storage$2).find((scene) => scene.id === id);
|
|
5450
5574
|
if (!scene) throw new Error(`Scene with id ${id} not found`);
|
|
5451
5575
|
const handle = new SceneHandle(this, scene);
|
|
5452
5576
|
this._subscribe(id, handle);
|
|
5453
5577
|
return handle;
|
|
5454
5578
|
}
|
|
5455
5579
|
delete(id) {
|
|
5456
|
-
const scenes = get$
|
|
5580
|
+
const scenes = get$2(_storage$2);
|
|
5457
5581
|
_storage$2.set(scenes.filter((scene) => scene.id !== id));
|
|
5458
|
-
const subscriptions = get$
|
|
5582
|
+
const subscriptions = get$2(_subscriptions$1);
|
|
5459
5583
|
if (subscriptions[id]) {
|
|
5460
5584
|
subscriptions[id]();
|
|
5461
5585
|
subscriptions[id] = null;
|
|
@@ -5467,14 +5591,14 @@ var SceneManager = class {
|
|
|
5467
5591
|
}
|
|
5468
5592
|
_subscribe(id, handle) {
|
|
5469
5593
|
setTimeout(() => {
|
|
5470
|
-
const subscriptions = get$
|
|
5594
|
+
const subscriptions = get$2(_subscriptions$1);
|
|
5471
5595
|
if (subscriptions[id]) return;
|
|
5472
5596
|
subscriptions[id] = handle.store.subscribe((scene) => this._update(id, scene));
|
|
5473
5597
|
_subscriptions$1.set(subscriptions);
|
|
5474
5598
|
}, 0);
|
|
5475
5599
|
}
|
|
5476
5600
|
_update(id, scene) {
|
|
5477
|
-
const scenes = get$
|
|
5601
|
+
const scenes = get$2(_storage$2);
|
|
5478
5602
|
const index = scenes.findIndex((s) => s.id === id);
|
|
5479
5603
|
if (index === -1) return;
|
|
5480
5604
|
scenes[index] = scene;
|
|
@@ -5498,16 +5622,16 @@ var SystemHandle = class {
|
|
|
5498
5622
|
return this._store;
|
|
5499
5623
|
}
|
|
5500
5624
|
get data() {
|
|
5501
|
-
return get$
|
|
5625
|
+
return get$2(this._store);
|
|
5502
5626
|
}
|
|
5503
5627
|
update(system) {
|
|
5504
5628
|
this._store.set({
|
|
5505
|
-
...get$
|
|
5629
|
+
...get$2(this._store),
|
|
5506
5630
|
...system
|
|
5507
5631
|
});
|
|
5508
5632
|
}
|
|
5509
5633
|
delete() {
|
|
5510
|
-
this._manager.delete(this.id);
|
|
5634
|
+
return this._manager.delete(this.id);
|
|
5511
5635
|
}
|
|
5512
5636
|
};
|
|
5513
5637
|
var _storage = writable([]);
|
|
@@ -5524,7 +5648,7 @@ var SystemManager = class {
|
|
|
5524
5648
|
return _storage;
|
|
5525
5649
|
}
|
|
5526
5650
|
get data() {
|
|
5527
|
-
return get$
|
|
5651
|
+
return get$2(_storage);
|
|
5528
5652
|
}
|
|
5529
5653
|
async create(name) {
|
|
5530
5654
|
const { actions, fs } = useProject();
|
|
@@ -5532,12 +5656,8 @@ var SystemManager = class {
|
|
|
5532
5656
|
this._add(systemTransformer(system));
|
|
5533
5657
|
await (await fs.getDirectory()).readdir(true);
|
|
5534
5658
|
}
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
await actions.package.addSystems({ systemNames: names });
|
|
5538
|
-
await this.sync();
|
|
5539
|
-
await ecs.components.sync();
|
|
5540
|
-
await (await fs.getDirectory()).readdir(true);
|
|
5659
|
+
add(system) {
|
|
5660
|
+
this._add(systemTransformer(system));
|
|
5541
5661
|
}
|
|
5542
5662
|
async sync() {
|
|
5543
5663
|
const { actions } = useProject();
|
|
@@ -5545,16 +5665,20 @@ var SystemManager = class {
|
|
|
5545
5665
|
_storage.set(systemsTransformer(systems));
|
|
5546
5666
|
}
|
|
5547
5667
|
get(id) {
|
|
5548
|
-
const system = get$
|
|
5668
|
+
const system = get$2(_storage).find((system) => system.id === id);
|
|
5549
5669
|
if (!system) throw new Error(`System with id ${id} not found`);
|
|
5550
5670
|
const handle = new SystemHandle(this, system);
|
|
5551
5671
|
this._subscribe(id, handle);
|
|
5552
5672
|
return handle;
|
|
5553
5673
|
}
|
|
5554
|
-
delete(id) {
|
|
5555
|
-
const systems = get$
|
|
5556
|
-
|
|
5557
|
-
|
|
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);
|
|
5558
5682
|
if (subscriptions[id]) {
|
|
5559
5683
|
subscriptions[id]();
|
|
5560
5684
|
subscriptions[id] = null;
|
|
@@ -5562,20 +5686,20 @@ var SystemManager = class {
|
|
|
5562
5686
|
}
|
|
5563
5687
|
}
|
|
5564
5688
|
_add(system) {
|
|
5565
|
-
const systems = get$
|
|
5689
|
+
const systems = get$2(_storage);
|
|
5566
5690
|
systems.push(system);
|
|
5567
5691
|
_storage.set(systems);
|
|
5568
5692
|
}
|
|
5569
5693
|
_subscribe(id, handle) {
|
|
5570
5694
|
setTimeout(() => {
|
|
5571
|
-
const subscriptions = get$
|
|
5695
|
+
const subscriptions = get$2(_subscriptions);
|
|
5572
5696
|
if (subscriptions[id]) return;
|
|
5573
5697
|
subscriptions[id] = handle.store.subscribe((system) => this._update(id, system));
|
|
5574
5698
|
_subscriptions.set(subscriptions);
|
|
5575
5699
|
}, 0);
|
|
5576
5700
|
}
|
|
5577
5701
|
_update(id, system) {
|
|
5578
|
-
const systems = get$
|
|
5702
|
+
const systems = get$2(_storage);
|
|
5579
5703
|
const index = systems.findIndex((s) => s.id === id);
|
|
5580
5704
|
if (index === -1) return;
|
|
5581
5705
|
systems[index] = system;
|
|
@@ -5585,10 +5709,13 @@ var SystemManager = class {
|
|
|
5585
5709
|
var ECSHandler = class {
|
|
5586
5710
|
_project;
|
|
5587
5711
|
_sceneManager;
|
|
5712
|
+
_assetManager;
|
|
5588
5713
|
_componentManager;
|
|
5589
5714
|
_systemManager;
|
|
5590
5715
|
_libraryManager;
|
|
5591
5716
|
static reset() {
|
|
5717
|
+
AssetHandle.reset();
|
|
5718
|
+
AssetManager.reset();
|
|
5592
5719
|
ComponentHandle.reset();
|
|
5593
5720
|
ComponentManager.reset();
|
|
5594
5721
|
SystemManager.reset();
|
|
@@ -5613,9 +5740,11 @@ var ECSHandler = class {
|
|
|
5613
5740
|
* This init is only made for the current version of the editor
|
|
5614
5741
|
* When scenes will be implemented, this init must be changed accordingly
|
|
5615
5742
|
*/
|
|
5743
|
+
const assets = await this._project.actions.package.getAssets();
|
|
5616
5744
|
const components = await this._project.actions.package.getComponents();
|
|
5617
5745
|
const systems = await this._project.actions.package.getSystems();
|
|
5618
5746
|
const save = await this._project.actions.save.get();
|
|
5747
|
+
this._assetManager = new AssetManager(assetsTransformer(assets));
|
|
5619
5748
|
this._componentManager = new ComponentManager(componentsTransformer(components));
|
|
5620
5749
|
this._systemManager = new SystemManager(systemsTransformer(systems));
|
|
5621
5750
|
this._libraryManager = new LibraryManager(librariesTransformer(save));
|
|
@@ -5625,6 +5754,10 @@ var ECSHandler = class {
|
|
|
5625
5754
|
if (!this._sceneManager) throw new Error("ECS handler not initialized");
|
|
5626
5755
|
return this._sceneManager;
|
|
5627
5756
|
}
|
|
5757
|
+
get assets() {
|
|
5758
|
+
if (!this._assetManager) throw new Error("ECS handler not initialized");
|
|
5759
|
+
return this._assetManager;
|
|
5760
|
+
}
|
|
5628
5761
|
get components() {
|
|
5629
5762
|
if (!this._componentManager) throw new Error("ECS handler not initialized");
|
|
5630
5763
|
return this._componentManager;
|
|
@@ -5705,12 +5838,12 @@ var InfoHandler = class {
|
|
|
5705
5838
|
this.core = core;
|
|
5706
5839
|
}
|
|
5707
5840
|
get(cacheOnly) {
|
|
5708
|
-
if (cacheOnly) return get$
|
|
5841
|
+
if (cacheOnly) return get$2(infoStore);
|
|
5709
5842
|
return this.fetch();
|
|
5710
5843
|
}
|
|
5711
5844
|
async fetch(noCache = false) {
|
|
5712
5845
|
if (!noCache) {
|
|
5713
|
-
const cache = get$
|
|
5846
|
+
const cache = get$2(infoStore);
|
|
5714
5847
|
if (cache) return cache;
|
|
5715
5848
|
}
|
|
5716
5849
|
const res = await this.core.actions.project.getInfo();
|
|
@@ -5844,6 +5977,9 @@ var FileSystemFile = class {
|
|
|
5844
5977
|
const raw = JSON.stringify(content);
|
|
5845
5978
|
return this.write(raw);
|
|
5846
5979
|
}
|
|
5980
|
+
async createWritable() {
|
|
5981
|
+
return this.handle.createWritable();
|
|
5982
|
+
}
|
|
5847
5983
|
async getUrl() {
|
|
5848
5984
|
if (URL_CACHE.has(this.handle.name)) URL.revokeObjectURL(URL_CACHE.get(this.handle.name));
|
|
5849
5985
|
const file = await this.handle.getFile();
|
|
@@ -6029,6 +6165,10 @@ var SfsFile = class {
|
|
|
6029
6165
|
await this._cache.writeJson(content);
|
|
6030
6166
|
await this.sync();
|
|
6031
6167
|
}
|
|
6168
|
+
async createWritable() {
|
|
6169
|
+
await this._preWrite();
|
|
6170
|
+
return await this._cache.createWritable();
|
|
6171
|
+
}
|
|
6032
6172
|
async sync() {
|
|
6033
6173
|
if (!this._cache) return;
|
|
6034
6174
|
const file = await this._cache.getFile();
|
|
@@ -6042,6 +6182,13 @@ var SfsFile = class {
|
|
|
6042
6182
|
});
|
|
6043
6183
|
if (!res.ok) throw new Error(`Failed to sync file: ${await res.text()}`);
|
|
6044
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
|
+
}
|
|
6045
6192
|
async getFile() {
|
|
6046
6193
|
await this._preRead();
|
|
6047
6194
|
return this._cache;
|
|
@@ -6306,33 +6453,14 @@ var Loader = class {
|
|
|
6306
6453
|
};
|
|
6307
6454
|
var PackageHandler = class {
|
|
6308
6455
|
_project;
|
|
6309
|
-
_componentsManifests = /* @__PURE__ */ new Map();
|
|
6310
|
-
_systemsManifests = /* @__PURE__ */ new Map();
|
|
6311
6456
|
constructor(project) {
|
|
6312
6457
|
this._project = project;
|
|
6313
6458
|
}
|
|
6314
|
-
async
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
return this._systemsManifests.get(systemName);
|
|
6320
|
-
}
|
|
6321
|
-
async installComponent(name) {
|
|
6322
|
-
const newComponent = (await this._project.actions.package.addComponents({ componentNames: [name] }))[0];
|
|
6323
|
-
this._project.save.save.components.push(newComponent.save);
|
|
6324
|
-
this._componentsManifests.set(newComponent.save.name, newComponent.manifest);
|
|
6325
|
-
}
|
|
6326
|
-
async installSystem(name) {
|
|
6327
|
-
const newSystem = (await this._project.actions.package.addSystems({ systemNames: [name] }))[0];
|
|
6328
|
-
this._project.save.save.systems.push(newSystem.save);
|
|
6329
|
-
this._systemsManifests.set(newSystem.save.name, newSystem.manifest);
|
|
6330
|
-
}
|
|
6331
|
-
addComponentManifest(componentName, component) {
|
|
6332
|
-
this._componentsManifests.set(componentName, component);
|
|
6333
|
-
}
|
|
6334
|
-
addSystemManifest(systemName, system) {
|
|
6335
|
-
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);
|
|
6336
6464
|
}
|
|
6337
6465
|
};
|
|
6338
6466
|
var SaveHandler = class {
|
|
@@ -6362,10 +6490,10 @@ var SaveHandler = class {
|
|
|
6362
6490
|
async syncToServer() {
|
|
6363
6491
|
if (this._readyToSync) {
|
|
6364
6492
|
this._readyToSync = false;
|
|
6365
|
-
await this._project.actions.save.set({ save: get$
|
|
6493
|
+
await this._project.actions.save.set({ save: get$2(this._save) });
|
|
6366
6494
|
this._syncTimer = setTimeout(() => {
|
|
6367
6495
|
this._readyToSync = true;
|
|
6368
|
-
if (get$
|
|
6496
|
+
if (get$2(this._needSync)) {
|
|
6369
6497
|
this.syncToServer();
|
|
6370
6498
|
this._needSync.set(false);
|
|
6371
6499
|
}
|
|
@@ -6379,7 +6507,7 @@ var SaveHandler = class {
|
|
|
6379
6507
|
await this.syncToServer();
|
|
6380
6508
|
}
|
|
6381
6509
|
get save() {
|
|
6382
|
-
return get$
|
|
6510
|
+
return get$2(this._save);
|
|
6383
6511
|
}
|
|
6384
6512
|
_listeners() {
|
|
6385
6513
|
this._project.ecs.components.store.subscribe((components) => {
|
|
@@ -6442,7 +6570,6 @@ var Project = class {
|
|
|
6442
6570
|
await this.fs.init();
|
|
6443
6571
|
await this.ecs.init();
|
|
6444
6572
|
await this.save.init();
|
|
6445
|
-
await this.packages.init();
|
|
6446
6573
|
this._inited = true;
|
|
6447
6574
|
return this;
|
|
6448
6575
|
}
|
|
@@ -6674,7 +6801,7 @@ var ProjectLoader = class ProjectLoader {
|
|
|
6674
6801
|
}
|
|
6675
6802
|
};
|
|
6676
6803
|
var useProject = () => {
|
|
6677
|
-
const project = get$
|
|
6804
|
+
const project = get$2(projectStore);
|
|
6678
6805
|
if (!project) {
|
|
6679
6806
|
const error = new PLException(PLErrors.No_Project);
|
|
6680
6807
|
error.fb();
|
|
@@ -14739,7 +14866,7 @@ function Select_content($$renderer, $$props) {
|
|
|
14739
14866
|
if (Select_viewport) {
|
|
14740
14867
|
$$renderer.push("<!--[-->");
|
|
14741
14868
|
Select_viewport($$renderer, {
|
|
14742
|
-
class: cn("h
|
|
14869
|
+
class: cn("h-auto max-h-80 w-full min-w---bits-select-anchor-width"),
|
|
14743
14870
|
children: ($$renderer) => {
|
|
14744
14871
|
children?.($$renderer);
|
|
14745
14872
|
$$renderer.push(`<!---->`);
|
|
@@ -14982,4 +15109,4 @@ var runSafe = async (context, cb, fallback) => {
|
|
|
14982
15109
|
//#endregion
|
|
14983
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 };
|
|
14984
15111
|
|
|
14985
|
-
//# sourceMappingURL=error-
|
|
15112
|
+
//# sourceMappingURL=error-DXhNNMk1.js.map
|