@nanoforge-dev/editor 0.0.2-beta.ddbefdc → 0.0.2-beta.fb82bf8
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.C6GhYMOV.css +1 -0
- package/dist/client/_app/immutable/assets/0.C6GhYMOV.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.C6GhYMOV.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/{y9jahtbD.js → BL60uqTv.js} +1 -1
- package/dist/client/_app/immutable/chunks/BL60uqTv.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BL60uqTv.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/BMtaFOTk.js +1 -0
- package/dist/client/_app/immutable/chunks/BMtaFOTk.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BMtaFOTk.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/BZQwXXQ9.js +6 -0
- package/dist/client/_app/immutable/chunks/BZQwXXQ9.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BZQwXXQ9.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/{xJ1-16vC.js → Bvw-zKPF.js} +1 -1
- package/dist/client/_app/immutable/chunks/Bvw-zKPF.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Bvw-zKPF.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{C1k-YaT9.js → Byy0Trua.js} +7 -7
- package/dist/client/_app/immutable/chunks/Byy0Trua.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Byy0Trua.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/{C8VsmuzL.js → IoPfG6j0.js} +1 -1
- package/dist/client/_app/immutable/chunks/IoPfG6j0.js.br +0 -0
- package/dist/client/_app/immutable/chunks/IoPfG6j0.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DHQLzCjY2.js → M5EMNuDS2.js} +1 -1
- package/dist/client/_app/immutable/chunks/M5EMNuDS2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/M5EMNuDS2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DuDzfUqN2.js → SmrQhi1p2.js} +1 -1
- package/dist/client/_app/immutable/chunks/SmrQhi1p2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/SmrQhi1p2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{C7bUlFLk2.js → TFu7Wn2c2.js} +1 -1
- package/dist/client/_app/immutable/chunks/TFu7Wn2c2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/TFu7Wn2c2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BwWAgYKi2.js → mESnenQM2.js} +1 -1
- package/dist/client/_app/immutable/chunks/mESnenQM2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/mESnenQM2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/nE3VUeYj.js +0 -0
- package/dist/client/_app/immutable/chunks/nE3VUeYj.js.br +1 -0
- package/dist/client/_app/immutable/chunks/nE3VUeYj.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{mRVEsFly2.js → uIj7mV9x2.js} +1 -1
- package/dist/client/_app/immutable/chunks/uIj7mV9x2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/uIj7mV9x2.js.gz +0 -0
- package/dist/client/_app/immutable/entry/{app.qM3aoeOi.js → app.Da-YtiND.js} +2 -2
- package/dist/client/_app/immutable/entry/app.Da-YtiND.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.Da-YtiND.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.cIweTlO3.js +1 -0
- package/dist/client/_app/immutable/entry/start.cIweTlO3.js.br +0 -0
- package/dist/client/_app/immutable/entry/start.cIweTlO3.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{0.Dd5fG40d.js → 0.BzdTAZXJ.js} +1 -1
- package/dist/client/_app/immutable/nodes/0.BzdTAZXJ.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.BzdTAZXJ.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{1.D-XWgJOb.js → 1.HoGuDJlv.js} +1 -1
- package/dist/client/_app/immutable/nodes/1.HoGuDJlv.js.br +0 -0
- package/dist/client/_app/immutable/nodes/1.HoGuDJlv.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{9.BrWnGfyr.js → 11.DYAlovlI.js} +1 -1
- package/dist/client/_app/immutable/nodes/11.DYAlovlI.js.br +0 -0
- package/dist/client/_app/immutable/nodes/11.DYAlovlI.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.BbpmoZI0.js +1 -0
- package/dist/client/_app/immutable/nodes/2.BbpmoZI0.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.BbpmoZI0.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/3.CKQTqfUC.js +6 -0
- package/dist/client/_app/immutable/nodes/3.CKQTqfUC.js.br +0 -0
- package/dist/client/_app/immutable/nodes/3.CKQTqfUC.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-CaJWcpu3.js → 0-D8EFaSd9.js} +6 -6
- package/dist/server/chunks/{0-CaJWcpu3.js.map → 0-D8EFaSd9.js.map} +1 -1
- package/dist/server/chunks/{1-na9Uh1hG.js → 1-CtEQBFI1.js} +6 -6
- package/dist/server/chunks/{1-na9Uh1hG.js.map → 1-CtEQBFI1.js.map} +1 -1
- package/dist/server/chunks/{5-610NKQc3.js → 10-DuA1c-Jp.js} +5 -5
- package/dist/server/chunks/10-DuA1c-Jp.js.map +1 -0
- package/dist/server/chunks/11-CENxk_H3.js +22 -0
- package/dist/server/chunks/11-CENxk_H3.js.map +1 -0
- package/dist/server/chunks/{2-BM68e_rU.js → 2-BwBHdvIf.js} +10 -10
- package/dist/server/chunks/{2-BM68e_rU.js.map → 2-BwBHdvIf.js.map} +1 -1
- package/dist/server/chunks/3-BJRO5seJ.js +22 -0
- package/dist/server/chunks/3-BJRO5seJ.js.map +1 -0
- package/dist/server/chunks/{3-CtfjP4uZ.js → 4-C6nynU2n.js} +5 -5
- package/dist/server/chunks/{3-CtfjP4uZ.js.map → 4-C6nynU2n.js.map} +1 -1
- package/dist/server/chunks/{8-s07Rj2Zo.js → 5-GGXm17tz.js} +5 -5
- package/dist/server/chunks/{8-s07Rj2Zo.js.map → 5-GGXm17tz.js.map} +1 -1
- package/dist/server/chunks/{4-DP-_gDay.js → 6-CecbZbuB.js} +5 -5
- package/dist/server/chunks/{4-DP-_gDay.js.map → 6-CecbZbuB.js.map} +1 -1
- package/dist/server/chunks/7-TEJHHPfc.js +18 -0
- package/dist/server/chunks/7-TEJHHPfc.js.map +1 -0
- package/dist/server/chunks/{6-Dl_h_OyU.js → 8-DxuDvwam.js} +49 -36
- package/dist/server/chunks/8-DxuDvwam.js.map +1 -0
- package/dist/server/chunks/{7-BUEKgK7m.js → 9-C-7eeTkI.js} +5 -5
- package/dist/server/chunks/{7-BUEKgK7m.js.map → 9-C-7eeTkI.js.map} +1 -1
- package/dist/server/chunks/{_layout.svelte-uX7XiB9K.js → _layout.svelte-By6MJeec.js} +5 -5
- package/dist/server/chunks/_layout.svelte-By6MJeec.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-B_0YFORc.js → _page.svelte-BdTp6gki.js} +7 -7
- package/dist/server/chunks/{_page.svelte-B_0YFORc.js.map → _page.svelte-BdTp6gki.js.map} +1 -1
- package/dist/server/chunks/{_page.svelte-1bR7bJ2y.js → _page.svelte-CSTVKT86.js} +6 -6
- package/dist/server/chunks/_page.svelte-CSTVKT86.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-BmrR5-n-.js → _page.svelte-Dyt-dT8R.js} +153 -80
- package/dist/server/chunks/_page.svelte-Dyt-dT8R.js.map +1 -0
- package/dist/server/chunks/_server.ts--OTq6N7o.js +13 -0
- package/dist/server/chunks/_server.ts--OTq6N7o.js.map +1 -0
- package/dist/server/chunks/{_server.ts-a-I4s4R9.js → _server.ts-BFl7cSax.js} +2 -2
- package/dist/server/chunks/{_server.ts-a-I4s4R9.js.map → _server.ts-BFl7cSax.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-DlC2sxcm.js → _server.ts-Zy4HMSqW.js} +15 -3
- package/dist/server/chunks/_server.ts-Zy4HMSqW.js.map +1 -0
- package/dist/server/chunks/app-DUeJj5RD.js.map +1 -1
- package/dist/server/chunks/{client-BkmWBFaS.js → client-Crw1nXFW.js} +4 -4
- package/dist/server/chunks/client-Crw1nXFW.js.map +1 -0
- package/dist/server/chunks/{error-BGQyviUk.js → error-Bqe4QUEz.js} +140 -147
- package/dist/server/chunks/error-Bqe4QUEz.js.map +1 -0
- package/dist/server/chunks/{error.svelte-T6M8Vz4W.js → error.svelte-DG-7dfPY.js} +3 -3
- package/dist/server/chunks/error.svelte-DG-7dfPY.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-Bb56FM49.js → hooks.server-BqetKf4g.js} +6 -6
- package/dist/server/chunks/hooks.server-BqetKf4g.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-CeV_cIh4.js → internal2-BzKdwDhb.js} +22 -15
- package/dist/server/chunks/internal2-BzKdwDhb.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-Cit4wZkS.js → logo-CZA0eXUA.js} +4 -4
- package/dist/server/chunks/logo-CZA0eXUA.js.map +1 -0
- package/dist/server/chunks/{project-loader-BSqYC-7k.js → project-loader-BDWXp4na.js} +4 -4
- package/dist/server/chunks/project-loader-BDWXp4na.js.map +1 -0
- package/dist/server/chunks/{request-handler-guINVc1G.js → request-handler-BKXKqx13.js} +97 -18
- package/dist/server/chunks/request-handler-BKXKqx13.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-DbJHhqwa.js → schemas-CeNiyNB9.js} +348 -303
- package/dist/server/chunks/schemas-CeNiyNB9.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-DpIO_6NS.js → state-Ds3woX9L.js} +3 -3
- package/dist/server/chunks/state-Ds3woX9L.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.PlL6w-dg.css +0 -1
- package/dist/client/_app/immutable/assets/0.PlL6w-dg.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.PlL6w-dg.css.gz +0 -0
- package/dist/client/_app/immutable/chunks/B4w9-fYM2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/B4w9-fYM2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BS47D1Yd2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BS47D1Yd2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BW1UW6Hp.js +0 -1
- package/dist/client/_app/immutable/chunks/BW1UW6Hp.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BW1UW6Hp.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/C1k-YaT9.js.br +0 -0
- package/dist/client/_app/immutable/chunks/C1k-YaT9.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/C8VsmuzL.js.br +0 -0
- package/dist/client/_app/immutable/chunks/C8VsmuzL.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/CUEbnJ91.js +0 -6
- package/dist/client/_app/immutable/chunks/CUEbnJ91.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CUEbnJ91.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/DT8Ddh1L2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DT8Ddh1L2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DuDzfUqN2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DuDzfUqN2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Fu4roQAh.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Fu4roQAh.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/ZLGReh43.js +0 -3
- package/dist/client/_app/immutable/chunks/ZLGReh43.js.br +0 -0
- package/dist/client/_app/immutable/chunks/ZLGReh43.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/mRVEsFly2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/mRVEsFly2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/orCHVlgT.js.br +0 -0
- package/dist/client/_app/immutable/chunks/orCHVlgT.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/uo5fvlDn2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/uo5fvlDn2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/xJ1-16vC.js.br +0 -0
- package/dist/client/_app/immutable/chunks/xJ1-16vC.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/y9jahtbD.js.br +0 -0
- package/dist/client/_app/immutable/chunks/y9jahtbD.js.gz +0 -0
- package/dist/client/_app/immutable/entry/app.qM3aoeOi.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.qM3aoeOi.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.CDMZxkmh.js +0 -1
- package/dist/client/_app/immutable/entry/start.CDMZxkmh.js.br +0 -0
- package/dist/client/_app/immutable/entry/start.CDMZxkmh.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/0.Dd5fG40d.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.Dd5fG40d.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/1.D-XWgJOb.js.br +0 -2
- package/dist/client/_app/immutable/nodes/1.D-XWgJOb.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/10.DkYlNzbR.js +0 -6
- package/dist/client/_app/immutable/nodes/10.DkYlNzbR.js.br +0 -0
- package/dist/client/_app/immutable/nodes/10.DkYlNzbR.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.D2mbM0C2.js +0 -1
- package/dist/client/_app/immutable/nodes/2.D2mbM0C2.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.D2mbM0C2.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/9.BrWnGfyr.js.br +0 -0
- package/dist/client/_app/immutable/nodes/9.BrWnGfyr.js.gz +0 -0
- package/dist/server/chunks/10-Dh1abrew.js +0 -22
- package/dist/server/chunks/10-Dh1abrew.js.map +0 -1
- package/dist/server/chunks/5-610NKQc3.js.map +0 -1
- package/dist/server/chunks/6-Dl_h_OyU.js.map +0 -1
- package/dist/server/chunks/9-DkqE8li9.js +0 -22
- package/dist/server/chunks/9-DkqE8li9.js.map +0 -1
- package/dist/server/chunks/_layout.svelte-uX7XiB9K.js.map +0 -1
- package/dist/server/chunks/_page.svelte-1bR7bJ2y.js.map +0 -1
- package/dist/server/chunks/_page.svelte-BmrR5-n-.js.map +0 -1
- package/dist/server/chunks/_server.ts-DlC2sxcm.js.map +0 -1
- package/dist/server/chunks/client-BkmWBFaS.js.map +0 -1
- package/dist/server/chunks/error-BGQyviUk.js.map +0 -1
- package/dist/server/chunks/error.svelte-T6M8Vz4W.js.map +0 -1
- package/dist/server/chunks/events-Bhh2w-5S.js.map +0 -1
- package/dist/server/chunks/hooks.server-Bb56FM49.js.map +0 -1
- package/dist/server/chunks/internal2-CeV_cIh4.js.map +0 -1
- package/dist/server/chunks/loader-circle-CFNm9vip.js.map +0 -1
- package/dist/server/chunks/logo-Cit4wZkS.js.map +0 -1
- package/dist/server/chunks/project-loader-BSqYC-7k.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-DbJHhqwa.js.map +0 -1
- package/dist/server/chunks/state-DpIO_6NS.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-BzKdwDhb.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-Crw1nXFW.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,12 +4606,6 @@ 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
|
}
|
|
@@ -4625,6 +4624,12 @@ var ProjectPackageRepository = class extends BaseRepository {
|
|
|
4625
4624
|
getSystems() {
|
|
4626
4625
|
return this.run(`/actions/project/package?/get-systems`);
|
|
4627
4626
|
}
|
|
4627
|
+
installPackages(input) {
|
|
4628
|
+
return this.run(`/actions/project/package?/install-packages`, input);
|
|
4629
|
+
}
|
|
4630
|
+
searchPackages(input) {
|
|
4631
|
+
return this.run(`/actions/project/package?/search-packages`, input);
|
|
4632
|
+
}
|
|
4628
4633
|
};
|
|
4629
4634
|
var ProjectRepository = class extends BaseRepository {
|
|
4630
4635
|
load(input) {
|
|
@@ -4657,6 +4662,7 @@ var ProjectSaveRepository = class extends BaseRepository {
|
|
|
4657
4662
|
var getActionClient = (projectId) => {
|
|
4658
4663
|
const client = new HttpClient("", projectId ? { headers: { [SESSION_PROJECT_HEADER]: projectId } } : {});
|
|
4659
4664
|
return {
|
|
4665
|
+
archive: new ProjectArchiveRepository(client),
|
|
4660
4666
|
fs: new ProjectFsRepository(client),
|
|
4661
4667
|
loader: new ProjectLoaderRepository(client),
|
|
4662
4668
|
package: new ProjectPackageRepository(client),
|
|
@@ -4707,7 +4713,7 @@ var randomString = (nb, { numbers = true, lowers = true, uppers = false, special
|
|
|
4707
4713
|
return [...Array(nb)].map(() => chars[Math.floor(Math.random() * chars.length)]).join("");
|
|
4708
4714
|
};
|
|
4709
4715
|
var resetSubscriptions = (store) => {
|
|
4710
|
-
const subscriptions = get$
|
|
4716
|
+
const subscriptions = get$2(store);
|
|
4711
4717
|
Object.values(subscriptions).forEach((sub) => {
|
|
4712
4718
|
try {
|
|
4713
4719
|
sub?.();
|
|
@@ -4716,7 +4722,7 @@ var resetSubscriptions = (store) => {
|
|
|
4716
4722
|
store.set({});
|
|
4717
4723
|
};
|
|
4718
4724
|
var resetListeners = (store) => {
|
|
4719
|
-
get$
|
|
4725
|
+
get$2(store)?.forEach((sub) => {
|
|
4720
4726
|
try {
|
|
4721
4727
|
sub();
|
|
4722
4728
|
} catch {}
|
|
@@ -4724,7 +4730,7 @@ var resetListeners = (store) => {
|
|
|
4724
4730
|
store.set(null);
|
|
4725
4731
|
};
|
|
4726
4732
|
var resolveStore = (storage, resolvable, defaultValue) => {
|
|
4727
|
-
const content = get$
|
|
4733
|
+
const content = get$2(storage);
|
|
4728
4734
|
if (resolvable in content) return content[resolvable];
|
|
4729
4735
|
content[resolvable] = writable(defaultValue);
|
|
4730
4736
|
storage.set(content);
|
|
@@ -4753,16 +4759,16 @@ var ComponentHandle = class {
|
|
|
4753
4759
|
return this._store;
|
|
4754
4760
|
}
|
|
4755
4761
|
get data() {
|
|
4756
|
-
return get$
|
|
4762
|
+
return get$2(this._store);
|
|
4757
4763
|
}
|
|
4758
4764
|
update(component) {
|
|
4759
4765
|
this._store.set({
|
|
4760
|
-
...get$
|
|
4766
|
+
...get$2(this._store),
|
|
4761
4767
|
...component
|
|
4762
4768
|
});
|
|
4763
4769
|
}
|
|
4764
4770
|
delete() {
|
|
4765
|
-
this._manager.delete(this.id);
|
|
4771
|
+
return this._manager.delete(this.id);
|
|
4766
4772
|
}
|
|
4767
4773
|
};
|
|
4768
4774
|
var _storage$12 = writable([]);
|
|
@@ -4779,7 +4785,7 @@ var ComponentManager = class {
|
|
|
4779
4785
|
return _storage$12;
|
|
4780
4786
|
}
|
|
4781
4787
|
get data() {
|
|
4782
|
-
return get$
|
|
4788
|
+
return get$2(_storage$12);
|
|
4783
4789
|
}
|
|
4784
4790
|
async create(name) {
|
|
4785
4791
|
const { actions, fs } = useProject();
|
|
@@ -4787,12 +4793,8 @@ var ComponentManager = class {
|
|
|
4787
4793
|
this._add(componentTransformer(component));
|
|
4788
4794
|
await (await fs.getDirectory()).readdir(true);
|
|
4789
4795
|
}
|
|
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);
|
|
4796
|
+
add(component) {
|
|
4797
|
+
this._add(componentTransformer(component));
|
|
4796
4798
|
}
|
|
4797
4799
|
async sync() {
|
|
4798
4800
|
const { actions } = useProject();
|
|
@@ -4800,16 +4802,20 @@ var ComponentManager = class {
|
|
|
4800
4802
|
_storage$12.set(componentsTransformer(components));
|
|
4801
4803
|
}
|
|
4802
4804
|
get(id) {
|
|
4803
|
-
const component = get$
|
|
4805
|
+
const component = get$2(_storage$12).find((component) => component.id === id);
|
|
4804
4806
|
if (!component) throw new Error(`Component with id ${id} not found`);
|
|
4805
4807
|
const handle = new ComponentHandle(this, component);
|
|
4806
4808
|
this._subscribe(id, handle);
|
|
4807
4809
|
return handle;
|
|
4808
4810
|
}
|
|
4809
|
-
delete(id) {
|
|
4810
|
-
const components = get$
|
|
4811
|
-
|
|
4812
|
-
|
|
4811
|
+
async delete(id) {
|
|
4812
|
+
const components = get$2(_storage$12);
|
|
4813
|
+
const component = components.find((c) => c.id === id);
|
|
4814
|
+
if (!component) throw new Error(`System not found: ${id}`);
|
|
4815
|
+
_storage$12.set(components.filter((c) => c.id !== id));
|
|
4816
|
+
const { fs } = useProject();
|
|
4817
|
+
await (await fs.getFile(component.path)).delete();
|
|
4818
|
+
const subscriptions = get$2(_subscriptions$6);
|
|
4813
4819
|
if (subscriptions[id]) {
|
|
4814
4820
|
subscriptions[id]();
|
|
4815
4821
|
subscriptions[id] = null;
|
|
@@ -4817,20 +4823,20 @@ var ComponentManager = class {
|
|
|
4817
4823
|
}
|
|
4818
4824
|
}
|
|
4819
4825
|
_add(component) {
|
|
4820
|
-
const components = get$
|
|
4826
|
+
const components = get$2(_storage$12);
|
|
4821
4827
|
components.push(component);
|
|
4822
4828
|
_storage$12.set(components);
|
|
4823
4829
|
}
|
|
4824
4830
|
_subscribe(id, handle) {
|
|
4825
4831
|
setTimeout(() => {
|
|
4826
|
-
const subscriptions = get$
|
|
4832
|
+
const subscriptions = get$2(_subscriptions$6);
|
|
4827
4833
|
if (subscriptions[id]) return;
|
|
4828
4834
|
subscriptions[id] = handle.store.subscribe((component) => this._update(id, component));
|
|
4829
4835
|
_subscriptions$6.set(subscriptions);
|
|
4830
4836
|
}, 0);
|
|
4831
4837
|
}
|
|
4832
4838
|
_update(id, component) {
|
|
4833
|
-
const components = get$
|
|
4839
|
+
const components = get$2(_storage$12);
|
|
4834
4840
|
const index = components.findIndex((s) => s.id === id);
|
|
4835
4841
|
if (index === -1) return;
|
|
4836
4842
|
components[index] = component;
|
|
@@ -4854,11 +4860,11 @@ var LibraryHandle = class {
|
|
|
4854
4860
|
return this._store;
|
|
4855
4861
|
}
|
|
4856
4862
|
get data() {
|
|
4857
|
-
return get$
|
|
4863
|
+
return get$2(this._store);
|
|
4858
4864
|
}
|
|
4859
4865
|
update(library) {
|
|
4860
4866
|
this._store.set({
|
|
4861
|
-
...get$
|
|
4867
|
+
...get$2(this._store),
|
|
4862
4868
|
...library
|
|
4863
4869
|
});
|
|
4864
4870
|
}
|
|
@@ -4880,10 +4886,10 @@ var LibraryManager = class {
|
|
|
4880
4886
|
return _storage$10;
|
|
4881
4887
|
}
|
|
4882
4888
|
get data() {
|
|
4883
|
-
return get$
|
|
4889
|
+
return get$2(_storage$10);
|
|
4884
4890
|
}
|
|
4885
4891
|
add(library) {
|
|
4886
|
-
const libraries = get$
|
|
4892
|
+
const libraries = get$2(_storage$10);
|
|
4887
4893
|
libraries.push({
|
|
4888
4894
|
...library,
|
|
4889
4895
|
id: library.name
|
|
@@ -4892,16 +4898,16 @@ var LibraryManager = class {
|
|
|
4892
4898
|
return library.name;
|
|
4893
4899
|
}
|
|
4894
4900
|
get(id) {
|
|
4895
|
-
const library = get$
|
|
4901
|
+
const library = get$2(_storage$10).find((library) => library.id === id);
|
|
4896
4902
|
if (!library) throw new Error(`Library with id ${id} not found`);
|
|
4897
4903
|
const handle = new LibraryHandle(this, library);
|
|
4898
4904
|
this._subscribe(id, handle);
|
|
4899
4905
|
return handle;
|
|
4900
4906
|
}
|
|
4901
4907
|
delete(id) {
|
|
4902
|
-
const libraries = get$
|
|
4908
|
+
const libraries = get$2(_storage$10);
|
|
4903
4909
|
_storage$10.set(libraries.filter((library) => library.id !== id));
|
|
4904
|
-
const subscriptions = get$
|
|
4910
|
+
const subscriptions = get$2(_subscriptions$5);
|
|
4905
4911
|
if (subscriptions[id]) {
|
|
4906
4912
|
subscriptions[id]();
|
|
4907
4913
|
subscriptions[id] = null;
|
|
@@ -4910,14 +4916,14 @@ var LibraryManager = class {
|
|
|
4910
4916
|
}
|
|
4911
4917
|
_subscribe(id, handle) {
|
|
4912
4918
|
setTimeout(() => {
|
|
4913
|
-
const subscriptions = get$
|
|
4919
|
+
const subscriptions = get$2(_subscriptions$5);
|
|
4914
4920
|
if (subscriptions[id]) return;
|
|
4915
4921
|
subscriptions[id] = handle.store.subscribe((library) => this._update(id, library));
|
|
4916
4922
|
_subscriptions$5.set(subscriptions);
|
|
4917
4923
|
}, 0);
|
|
4918
4924
|
}
|
|
4919
4925
|
_update(id, library) {
|
|
4920
|
-
const libraries = get$
|
|
4926
|
+
const libraries = get$2(_storage$10);
|
|
4921
4927
|
const index = libraries.findIndex((s) => s.id === id);
|
|
4922
4928
|
if (index === -1) return;
|
|
4923
4929
|
libraries[index] = library;
|
|
@@ -4955,7 +4961,7 @@ var ComponentParamHandle = class {
|
|
|
4955
4961
|
this.manager.delete(this.id);
|
|
4956
4962
|
}
|
|
4957
4963
|
_listen() {
|
|
4958
|
-
if (get$
|
|
4964
|
+
if (get$2(_listener$5)) return;
|
|
4959
4965
|
const unsub = this.manager.component.store.subscribe((component) => {
|
|
4960
4966
|
const newParam = component.params.find((param) => param.name === this.id);
|
|
4961
4967
|
if (!newParam) return;
|
|
@@ -4982,7 +4988,7 @@ var ComponentParamManager = class {
|
|
|
4982
4988
|
constructor(component, params) {
|
|
4983
4989
|
this.component = component;
|
|
4984
4990
|
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$
|
|
4991
|
+
this._store = resolveStore(_storage$8, this._storageResolvable, get$2(component.store).params);
|
|
4986
4992
|
this._valuesStore = resolveStore(_valueStorage, this._storageResolvable, params);
|
|
4987
4993
|
this._listen();
|
|
4988
4994
|
}
|
|
@@ -4993,21 +4999,21 @@ var ComponentParamManager = class {
|
|
|
4993
4999
|
return this._valuesStore;
|
|
4994
5000
|
}
|
|
4995
5001
|
get(id) {
|
|
4996
|
-
const param = get$
|
|
5002
|
+
const param = get$2(this._store).find((param) => param.name === id);
|
|
4997
5003
|
if (!param) throw new Error(`Param with id ${id} not found`);
|
|
4998
|
-
const value = get$
|
|
5004
|
+
const value = get$2(this._valuesStore)[id];
|
|
4999
5005
|
const handle = new ComponentParamHandle(this, param, value);
|
|
5000
5006
|
this._subscribe(id, handle);
|
|
5001
5007
|
return handle;
|
|
5002
5008
|
}
|
|
5003
5009
|
delete(id) {
|
|
5004
|
-
const params = get$
|
|
5010
|
+
const params = get$2(this._store);
|
|
5005
5011
|
this._store.set(params.map((param) => param.name === id ? {
|
|
5006
5012
|
...param,
|
|
5007
5013
|
value: void 0
|
|
5008
5014
|
} : param));
|
|
5009
5015
|
const fullId = `${this._storageResolvable}/${id}`;
|
|
5010
|
-
const subscriptions = get$
|
|
5016
|
+
const subscriptions = get$2(_subscriptions$4);
|
|
5011
5017
|
if (subscriptions[fullId]) {
|
|
5012
5018
|
subscriptions[fullId]();
|
|
5013
5019
|
subscriptions[fullId] = null;
|
|
@@ -5015,7 +5021,7 @@ var ComponentParamManager = class {
|
|
|
5015
5021
|
}
|
|
5016
5022
|
}
|
|
5017
5023
|
_listen() {
|
|
5018
|
-
if (get$
|
|
5024
|
+
if (get$2(_listener$4)) return;
|
|
5019
5025
|
const unsub = this.component.store.subscribe((component) => {
|
|
5020
5026
|
this._store.set(component.params);
|
|
5021
5027
|
});
|
|
@@ -5024,14 +5030,14 @@ var ComponentParamManager = class {
|
|
|
5024
5030
|
_subscribe(id, handle) {
|
|
5025
5031
|
setTimeout(() => {
|
|
5026
5032
|
const fullId = `${this._storageResolvable}/${id}`;
|
|
5027
|
-
const subscriptions = get$
|
|
5033
|
+
const subscriptions = get$2(_subscriptions$4);
|
|
5028
5034
|
if (subscriptions[fullId]) return;
|
|
5029
5035
|
subscriptions[fullId] = handle.value.subscribe((param) => this._update(id, param));
|
|
5030
5036
|
_subscriptions$4.set(subscriptions);
|
|
5031
5037
|
}, 0);
|
|
5032
5038
|
}
|
|
5033
5039
|
_update(id, value) {
|
|
5034
|
-
const params = get$
|
|
5040
|
+
const params = get$2(this._valuesStore);
|
|
5035
5041
|
params[id] = value;
|
|
5036
5042
|
this._valuesStore.set(params);
|
|
5037
5043
|
}
|
|
@@ -5051,7 +5057,7 @@ var EntityComponentHandle = class {
|
|
|
5051
5057
|
return this._store;
|
|
5052
5058
|
}
|
|
5053
5059
|
get data() {
|
|
5054
|
-
return get$
|
|
5060
|
+
return get$2(this._store);
|
|
5055
5061
|
}
|
|
5056
5062
|
get params() {
|
|
5057
5063
|
return this._params;
|
|
@@ -5082,30 +5088,30 @@ var EntityComponentManager = class {
|
|
|
5082
5088
|
return this._store;
|
|
5083
5089
|
}
|
|
5084
5090
|
get data() {
|
|
5085
|
-
return get$
|
|
5091
|
+
return get$2(this._store);
|
|
5086
5092
|
}
|
|
5087
5093
|
add(component) {
|
|
5088
|
-
const components = get$
|
|
5094
|
+
const components = get$2(this._store);
|
|
5089
5095
|
const manifest = this.entity.manager.scene.manager.ecs.components.get(component).data;
|
|
5090
5096
|
components[component] = { ...Object.fromEntries(manifest.params.filter((param) => param.default).map((param) => [param.name, param.default])) };
|
|
5091
5097
|
this._store.set(components);
|
|
5092
5098
|
}
|
|
5093
5099
|
get(id) {
|
|
5094
|
-
const params = get$
|
|
5100
|
+
const params = get$2(this._store)[id];
|
|
5095
5101
|
if (!params) throw new Error(`Component with id ${id} not found`);
|
|
5096
5102
|
const handle = new EntityComponentHandle(this, id, params);
|
|
5097
5103
|
this._subscribe(id, handle);
|
|
5098
5104
|
return handle;
|
|
5099
5105
|
}
|
|
5100
5106
|
delete(id) {
|
|
5101
|
-
const components = get$
|
|
5107
|
+
const components = get$2(this._store);
|
|
5102
5108
|
const newComponents = {};
|
|
5103
5109
|
Object.entries(components).forEach(([key, params]) => {
|
|
5104
5110
|
if (key !== id) newComponents[key] = params;
|
|
5105
5111
|
});
|
|
5106
5112
|
this._store.set(newComponents);
|
|
5107
5113
|
const fullId = `${this._storageResolvable}/${id}`;
|
|
5108
|
-
const subscriptions = get$
|
|
5114
|
+
const subscriptions = get$2(_subscriptions$3);
|
|
5109
5115
|
if (subscriptions[fullId]) {
|
|
5110
5116
|
subscriptions[fullId]();
|
|
5111
5117
|
subscriptions[fullId] = null;
|
|
@@ -5113,9 +5119,9 @@ var EntityComponentManager = class {
|
|
|
5113
5119
|
}
|
|
5114
5120
|
}
|
|
5115
5121
|
_listen() {
|
|
5116
|
-
if (get$
|
|
5122
|
+
if (get$2(_listener$3)) return;
|
|
5117
5123
|
const unsub = this.entity.manager.scene.manager.ecs.components.store.subscribe((components) => {
|
|
5118
|
-
const entityComponents = get$
|
|
5124
|
+
const entityComponents = get$2(this._store);
|
|
5119
5125
|
const newComponents = {};
|
|
5120
5126
|
Object.entries(entityComponents).forEach(([key, params]) => {
|
|
5121
5127
|
if (components.find((s) => s.id === key)) newComponents[key] = params;
|
|
@@ -5127,14 +5133,14 @@ var EntityComponentManager = class {
|
|
|
5127
5133
|
_subscribe(id, handle) {
|
|
5128
5134
|
setTimeout(() => {
|
|
5129
5135
|
const fullId = `${this._storageResolvable}/${id}`;
|
|
5130
|
-
const subscriptions = get$
|
|
5136
|
+
const subscriptions = get$2(_subscriptions$3);
|
|
5131
5137
|
if (subscriptions[fullId]) return;
|
|
5132
5138
|
subscriptions[fullId] = handle.params.values.subscribe((params) => this._update(id, params));
|
|
5133
5139
|
_subscriptions$3.set(subscriptions);
|
|
5134
5140
|
}, 0);
|
|
5135
5141
|
}
|
|
5136
5142
|
_update(id, params) {
|
|
5137
|
-
const component = get$
|
|
5143
|
+
const component = get$2(this._store);
|
|
5138
5144
|
component[id] = params;
|
|
5139
5145
|
this._store.set(component);
|
|
5140
5146
|
}
|
|
@@ -5161,14 +5167,14 @@ var SceneEntityHandle = class {
|
|
|
5161
5167
|
return this._store;
|
|
5162
5168
|
}
|
|
5163
5169
|
get data() {
|
|
5164
|
-
return get$
|
|
5170
|
+
return get$2(this._store);
|
|
5165
5171
|
}
|
|
5166
5172
|
get components() {
|
|
5167
5173
|
return this._components;
|
|
5168
5174
|
}
|
|
5169
5175
|
update(entity) {
|
|
5170
5176
|
this._store.set({
|
|
5171
|
-
...get$
|
|
5177
|
+
...get$2(this._store),
|
|
5172
5178
|
...entity
|
|
5173
5179
|
});
|
|
5174
5180
|
}
|
|
@@ -5179,9 +5185,9 @@ var SceneEntityHandle = class {
|
|
|
5179
5185
|
this.manager.selected = this;
|
|
5180
5186
|
}
|
|
5181
5187
|
_listen() {
|
|
5182
|
-
if (get$
|
|
5188
|
+
if (get$2(_listener$2)) return;
|
|
5183
5189
|
const unsub = this._components.store.subscribe((components) => {
|
|
5184
|
-
const entity = get$
|
|
5190
|
+
const entity = get$2(this._store);
|
|
5185
5191
|
entity.components = components;
|
|
5186
5192
|
this._store.set(entity);
|
|
5187
5193
|
});
|
|
@@ -5206,10 +5212,10 @@ var SceneEntityManager = class {
|
|
|
5206
5212
|
return this._store;
|
|
5207
5213
|
}
|
|
5208
5214
|
get data() {
|
|
5209
|
-
return get$
|
|
5215
|
+
return get$2(this._store);
|
|
5210
5216
|
}
|
|
5211
5217
|
get selectedData() {
|
|
5212
|
-
return get$
|
|
5218
|
+
return get$2(selectedEntity);
|
|
5213
5219
|
}
|
|
5214
5220
|
get selected() {
|
|
5215
5221
|
return selectedEntity;
|
|
@@ -5218,7 +5224,7 @@ var SceneEntityManager = class {
|
|
|
5218
5224
|
selectedEntity.set(entity);
|
|
5219
5225
|
}
|
|
5220
5226
|
add(entity) {
|
|
5221
|
-
const entities = get$
|
|
5227
|
+
const entities = get$2(this._store);
|
|
5222
5228
|
const id = getId(this.data, entity.name);
|
|
5223
5229
|
entities.push({
|
|
5224
5230
|
...entity,
|
|
@@ -5228,17 +5234,17 @@ var SceneEntityManager = class {
|
|
|
5228
5234
|
return id;
|
|
5229
5235
|
}
|
|
5230
5236
|
get(id) {
|
|
5231
|
-
const entity = get$
|
|
5237
|
+
const entity = get$2(this._store).find((entity) => entity.id === id);
|
|
5232
5238
|
if (!entity) throw new Error(`Entity with id ${id} not found`);
|
|
5233
5239
|
const handle = new SceneEntityHandle(this, entity);
|
|
5234
5240
|
this._subscribe(id, handle);
|
|
5235
5241
|
return handle;
|
|
5236
5242
|
}
|
|
5237
5243
|
delete(id) {
|
|
5238
|
-
const entities = get$
|
|
5244
|
+
const entities = get$2(this._store);
|
|
5239
5245
|
this._store.set(entities.filter((entity) => entity.id !== id));
|
|
5240
5246
|
const fullId = `${this.scene.id}/${id}`;
|
|
5241
|
-
const subscriptions = get$
|
|
5247
|
+
const subscriptions = get$2(_subscriptions$2);
|
|
5242
5248
|
if (subscriptions[fullId]) {
|
|
5243
5249
|
subscriptions[fullId]();
|
|
5244
5250
|
subscriptions[fullId] = null;
|
|
@@ -5249,14 +5255,14 @@ var SceneEntityManager = class {
|
|
|
5249
5255
|
_subscribe(id, handle) {
|
|
5250
5256
|
setTimeout(() => {
|
|
5251
5257
|
const fullId = `${this.scene.id}/${id}`;
|
|
5252
|
-
const subscriptions = get$
|
|
5258
|
+
const subscriptions = get$2(_subscriptions$2);
|
|
5253
5259
|
if (subscriptions[fullId]) return;
|
|
5254
5260
|
subscriptions[fullId] = handle.store.subscribe((entity) => this._update(id, entity));
|
|
5255
5261
|
_subscriptions$2.set(subscriptions);
|
|
5256
5262
|
}, 0);
|
|
5257
5263
|
}
|
|
5258
5264
|
_update(id, entity) {
|
|
5259
|
-
const entities = get$
|
|
5265
|
+
const entities = get$2(this._store);
|
|
5260
5266
|
const index = entities.findIndex((s) => s.id === id);
|
|
5261
5267
|
if (index === -1) return;
|
|
5262
5268
|
entities[index] = entity;
|
|
@@ -5276,7 +5282,7 @@ var SceneSystemHandle = class {
|
|
|
5276
5282
|
return this._store;
|
|
5277
5283
|
}
|
|
5278
5284
|
get data() {
|
|
5279
|
-
return get$
|
|
5285
|
+
return get$2(this._store);
|
|
5280
5286
|
}
|
|
5281
5287
|
delete() {
|
|
5282
5288
|
this.manager.delete(this.id);
|
|
@@ -5300,26 +5306,26 @@ var SceneSystemManager = class {
|
|
|
5300
5306
|
return this._store;
|
|
5301
5307
|
}
|
|
5302
5308
|
get data() {
|
|
5303
|
-
return get$
|
|
5309
|
+
return get$2(this._store);
|
|
5304
5310
|
}
|
|
5305
5311
|
add(system) {
|
|
5306
|
-
const systems = get$
|
|
5312
|
+
const systems = get$2(this._store);
|
|
5307
5313
|
systems.push(system);
|
|
5308
5314
|
this._store.set(systems);
|
|
5309
5315
|
}
|
|
5310
5316
|
get(id) {
|
|
5311
|
-
const system = get$
|
|
5317
|
+
const system = get$2(this._store).find((system) => system === id);
|
|
5312
5318
|
if (!system) throw new Error(`System with id ${id} not found`);
|
|
5313
5319
|
return new SceneSystemHandle(this, system);
|
|
5314
5320
|
}
|
|
5315
5321
|
delete(id) {
|
|
5316
|
-
const systems = get$
|
|
5322
|
+
const systems = get$2(this._store);
|
|
5317
5323
|
this._store.set(systems.filter((system) => system !== id));
|
|
5318
5324
|
}
|
|
5319
5325
|
_listen() {
|
|
5320
|
-
if (get$
|
|
5326
|
+
if (get$2(_listener$1)) return;
|
|
5321
5327
|
const unsub = this.scene.manager.ecs.systems.store.subscribe((systems) => {
|
|
5322
|
-
const sceneSystems = get$
|
|
5328
|
+
const sceneSystems = get$2(this._store);
|
|
5323
5329
|
sceneSystems.filter((system) => systems.find((s) => s.id === system));
|
|
5324
5330
|
this._store.set(sceneSystems);
|
|
5325
5331
|
});
|
|
@@ -5350,7 +5356,7 @@ var SceneHandle = class {
|
|
|
5350
5356
|
return this._store;
|
|
5351
5357
|
}
|
|
5352
5358
|
get data() {
|
|
5353
|
-
return get$
|
|
5359
|
+
return get$2(this._store);
|
|
5354
5360
|
}
|
|
5355
5361
|
get entities() {
|
|
5356
5362
|
return this._entities;
|
|
@@ -5360,7 +5366,7 @@ var SceneHandle = class {
|
|
|
5360
5366
|
}
|
|
5361
5367
|
update(scene) {
|
|
5362
5368
|
this._store.set({
|
|
5363
|
-
...get$
|
|
5369
|
+
...get$2(this._store),
|
|
5364
5370
|
...scene
|
|
5365
5371
|
});
|
|
5366
5372
|
}
|
|
@@ -5374,13 +5380,13 @@ var SceneHandle = class {
|
|
|
5374
5380
|
this.manager.default = this.id;
|
|
5375
5381
|
}
|
|
5376
5382
|
_listen() {
|
|
5377
|
-
if (get$
|
|
5383
|
+
if (get$2(_listener)) return;
|
|
5378
5384
|
const unsub = [this._entities.store.subscribe((entities) => {
|
|
5379
|
-
const scene = get$
|
|
5385
|
+
const scene = get$2(this._store);
|
|
5380
5386
|
scene.entities = entities;
|
|
5381
5387
|
this._store.set(scene);
|
|
5382
5388
|
}), this._systems.store.subscribe((systems) => {
|
|
5383
|
-
const scene = get$
|
|
5389
|
+
const scene = get$2(this._store);
|
|
5384
5390
|
scene.systems = systems;
|
|
5385
5391
|
this._store.set(scene);
|
|
5386
5392
|
})];
|
|
@@ -5414,10 +5420,10 @@ var SceneManager = class {
|
|
|
5414
5420
|
return _storage$2;
|
|
5415
5421
|
}
|
|
5416
5422
|
get data() {
|
|
5417
|
-
return get$
|
|
5423
|
+
return get$2(_storage$2);
|
|
5418
5424
|
}
|
|
5419
5425
|
get activeData() {
|
|
5420
|
-
return get$
|
|
5426
|
+
return get$2(_activeSceneStorage);
|
|
5421
5427
|
}
|
|
5422
5428
|
get active() {
|
|
5423
5429
|
return _activeSceneStorage;
|
|
@@ -5426,7 +5432,7 @@ var SceneManager = class {
|
|
|
5426
5432
|
_activeSceneStorage.set(handle);
|
|
5427
5433
|
}
|
|
5428
5434
|
get defaultData() {
|
|
5429
|
-
return get$
|
|
5435
|
+
return get$2(_defaultSceneStorage);
|
|
5430
5436
|
}
|
|
5431
5437
|
get default() {
|
|
5432
5438
|
return _defaultSceneStorage;
|
|
@@ -5435,7 +5441,7 @@ var SceneManager = class {
|
|
|
5435
5441
|
_defaultSceneStorage.set(handle);
|
|
5436
5442
|
}
|
|
5437
5443
|
get rootScenes() {
|
|
5438
|
-
return get$
|
|
5444
|
+
return get$2(_rootScenesStorage);
|
|
5439
5445
|
}
|
|
5440
5446
|
get rootScenesStore() {
|
|
5441
5447
|
return _rootScenesStorage;
|
|
@@ -5444,7 +5450,7 @@ var SceneManager = class {
|
|
|
5444
5450
|
_rootScenesStorage.set(Array.from(new Set(scenes)));
|
|
5445
5451
|
}
|
|
5446
5452
|
add(scene) {
|
|
5447
|
-
const scenes = get$
|
|
5453
|
+
const scenes = get$2(_storage$2);
|
|
5448
5454
|
const id = getId(this.data, scene.name);
|
|
5449
5455
|
scenes.push({
|
|
5450
5456
|
...scene,
|
|
@@ -5454,16 +5460,16 @@ var SceneManager = class {
|
|
|
5454
5460
|
return id;
|
|
5455
5461
|
}
|
|
5456
5462
|
get(id) {
|
|
5457
|
-
const scene = get$
|
|
5463
|
+
const scene = get$2(_storage$2).find((scene) => scene.id === id);
|
|
5458
5464
|
if (!scene) throw new Error(`Scene with id ${id} not found`);
|
|
5459
5465
|
const handle = new SceneHandle(this, scene);
|
|
5460
5466
|
this._subscribe(id, handle);
|
|
5461
5467
|
return handle;
|
|
5462
5468
|
}
|
|
5463
5469
|
delete(id) {
|
|
5464
|
-
const scenes = get$
|
|
5470
|
+
const scenes = get$2(_storage$2);
|
|
5465
5471
|
_storage$2.set(scenes.filter((scene) => scene.id !== id));
|
|
5466
|
-
const subscriptions = get$
|
|
5472
|
+
const subscriptions = get$2(_subscriptions$1);
|
|
5467
5473
|
if (subscriptions[id]) {
|
|
5468
5474
|
subscriptions[id]();
|
|
5469
5475
|
subscriptions[id] = null;
|
|
@@ -5475,14 +5481,14 @@ var SceneManager = class {
|
|
|
5475
5481
|
}
|
|
5476
5482
|
_subscribe(id, handle) {
|
|
5477
5483
|
setTimeout(() => {
|
|
5478
|
-
const subscriptions = get$
|
|
5484
|
+
const subscriptions = get$2(_subscriptions$1);
|
|
5479
5485
|
if (subscriptions[id]) return;
|
|
5480
5486
|
subscriptions[id] = handle.store.subscribe((scene) => this._update(id, scene));
|
|
5481
5487
|
_subscriptions$1.set(subscriptions);
|
|
5482
5488
|
}, 0);
|
|
5483
5489
|
}
|
|
5484
5490
|
_update(id, scene) {
|
|
5485
|
-
const scenes = get$
|
|
5491
|
+
const scenes = get$2(_storage$2);
|
|
5486
5492
|
const index = scenes.findIndex((s) => s.id === id);
|
|
5487
5493
|
if (index === -1) return;
|
|
5488
5494
|
scenes[index] = scene;
|
|
@@ -5506,16 +5512,16 @@ var SystemHandle = class {
|
|
|
5506
5512
|
return this._store;
|
|
5507
5513
|
}
|
|
5508
5514
|
get data() {
|
|
5509
|
-
return get$
|
|
5515
|
+
return get$2(this._store);
|
|
5510
5516
|
}
|
|
5511
5517
|
update(system) {
|
|
5512
5518
|
this._store.set({
|
|
5513
|
-
...get$
|
|
5519
|
+
...get$2(this._store),
|
|
5514
5520
|
...system
|
|
5515
5521
|
});
|
|
5516
5522
|
}
|
|
5517
5523
|
delete() {
|
|
5518
|
-
this._manager.delete(this.id);
|
|
5524
|
+
return this._manager.delete(this.id);
|
|
5519
5525
|
}
|
|
5520
5526
|
};
|
|
5521
5527
|
var _storage = writable([]);
|
|
@@ -5532,7 +5538,7 @@ var SystemManager = class {
|
|
|
5532
5538
|
return _storage;
|
|
5533
5539
|
}
|
|
5534
5540
|
get data() {
|
|
5535
|
-
return get$
|
|
5541
|
+
return get$2(_storage);
|
|
5536
5542
|
}
|
|
5537
5543
|
async create(name) {
|
|
5538
5544
|
const { actions, fs } = useProject();
|
|
@@ -5540,12 +5546,8 @@ var SystemManager = class {
|
|
|
5540
5546
|
this._add(systemTransformer(system));
|
|
5541
5547
|
await (await fs.getDirectory()).readdir(true);
|
|
5542
5548
|
}
|
|
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);
|
|
5549
|
+
add(system) {
|
|
5550
|
+
this._add(systemTransformer(system));
|
|
5549
5551
|
}
|
|
5550
5552
|
async sync() {
|
|
5551
5553
|
const { actions } = useProject();
|
|
@@ -5553,16 +5555,20 @@ var SystemManager = class {
|
|
|
5553
5555
|
_storage.set(systemsTransformer(systems));
|
|
5554
5556
|
}
|
|
5555
5557
|
get(id) {
|
|
5556
|
-
const system = get$
|
|
5558
|
+
const system = get$2(_storage).find((system) => system.id === id);
|
|
5557
5559
|
if (!system) throw new Error(`System with id ${id} not found`);
|
|
5558
5560
|
const handle = new SystemHandle(this, system);
|
|
5559
5561
|
this._subscribe(id, handle);
|
|
5560
5562
|
return handle;
|
|
5561
5563
|
}
|
|
5562
|
-
delete(id) {
|
|
5563
|
-
const systems = get$
|
|
5564
|
-
|
|
5565
|
-
|
|
5564
|
+
async delete(id) {
|
|
5565
|
+
const systems = get$2(_storage);
|
|
5566
|
+
const system = systems.find((s) => s.id === id);
|
|
5567
|
+
if (!system) throw new Error(`System not found: ${id}`);
|
|
5568
|
+
_storage.set(systems.filter((s) => s.id !== id));
|
|
5569
|
+
const { fs } = useProject();
|
|
5570
|
+
await (await fs.getFile(system.path)).delete();
|
|
5571
|
+
const subscriptions = get$2(_subscriptions);
|
|
5566
5572
|
if (subscriptions[id]) {
|
|
5567
5573
|
subscriptions[id]();
|
|
5568
5574
|
subscriptions[id] = null;
|
|
@@ -5570,20 +5576,20 @@ var SystemManager = class {
|
|
|
5570
5576
|
}
|
|
5571
5577
|
}
|
|
5572
5578
|
_add(system) {
|
|
5573
|
-
const systems = get$
|
|
5579
|
+
const systems = get$2(_storage);
|
|
5574
5580
|
systems.push(system);
|
|
5575
5581
|
_storage.set(systems);
|
|
5576
5582
|
}
|
|
5577
5583
|
_subscribe(id, handle) {
|
|
5578
5584
|
setTimeout(() => {
|
|
5579
|
-
const subscriptions = get$
|
|
5585
|
+
const subscriptions = get$2(_subscriptions);
|
|
5580
5586
|
if (subscriptions[id]) return;
|
|
5581
5587
|
subscriptions[id] = handle.store.subscribe((system) => this._update(id, system));
|
|
5582
5588
|
_subscriptions.set(subscriptions);
|
|
5583
5589
|
}, 0);
|
|
5584
5590
|
}
|
|
5585
5591
|
_update(id, system) {
|
|
5586
|
-
const systems = get$
|
|
5592
|
+
const systems = get$2(_storage);
|
|
5587
5593
|
const index = systems.findIndex((s) => s.id === id);
|
|
5588
5594
|
if (index === -1) return;
|
|
5589
5595
|
systems[index] = system;
|
|
@@ -5713,12 +5719,12 @@ var InfoHandler = class {
|
|
|
5713
5719
|
this.core = core;
|
|
5714
5720
|
}
|
|
5715
5721
|
get(cacheOnly) {
|
|
5716
|
-
if (cacheOnly) return get$
|
|
5722
|
+
if (cacheOnly) return get$2(infoStore);
|
|
5717
5723
|
return this.fetch();
|
|
5718
5724
|
}
|
|
5719
5725
|
async fetch(noCache = false) {
|
|
5720
5726
|
if (!noCache) {
|
|
5721
|
-
const cache = get$
|
|
5727
|
+
const cache = get$2(infoStore);
|
|
5722
5728
|
if (cache) return cache;
|
|
5723
5729
|
}
|
|
5724
5730
|
const res = await this.core.actions.project.getInfo();
|
|
@@ -6050,6 +6056,13 @@ var SfsFile = class {
|
|
|
6050
6056
|
});
|
|
6051
6057
|
if (!res.ok) throw new Error(`Failed to sync file: ${await res.text()}`);
|
|
6052
6058
|
}
|
|
6059
|
+
async delete() {
|
|
6060
|
+
const res = await fetch(this._route, {
|
|
6061
|
+
method: "DELETE",
|
|
6062
|
+
headers: { [SESSION_PROJECT_HEADER]: this._handler.project.id }
|
|
6063
|
+
});
|
|
6064
|
+
if (!res.ok) throw new Error(`Failed to delete file: ${await res.text()}`);
|
|
6065
|
+
}
|
|
6053
6066
|
async getFile() {
|
|
6054
6067
|
await this._preRead();
|
|
6055
6068
|
return this._cache;
|
|
@@ -6314,33 +6327,14 @@ var Loader = class {
|
|
|
6314
6327
|
};
|
|
6315
6328
|
var PackageHandler = class {
|
|
6316
6329
|
_project;
|
|
6317
|
-
_componentsManifests = /* @__PURE__ */ new Map();
|
|
6318
|
-
_systemsManifests = /* @__PURE__ */ new Map();
|
|
6319
6330
|
constructor(project) {
|
|
6320
6331
|
this._project = project;
|
|
6321
6332
|
}
|
|
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);
|
|
6333
|
+
async installPackages(names) {
|
|
6334
|
+
await this._project.actions.package.installPackages({ names });
|
|
6335
|
+
await this._project.ecs.components.sync();
|
|
6336
|
+
await this._project.ecs.systems.sync();
|
|
6337
|
+
await (await this._project.fs.getDirectory()).readdir(true);
|
|
6344
6338
|
}
|
|
6345
6339
|
};
|
|
6346
6340
|
var SaveHandler = class {
|
|
@@ -6370,10 +6364,10 @@ var SaveHandler = class {
|
|
|
6370
6364
|
async syncToServer() {
|
|
6371
6365
|
if (this._readyToSync) {
|
|
6372
6366
|
this._readyToSync = false;
|
|
6373
|
-
await this._project.actions.save.set({ save: get$
|
|
6367
|
+
await this._project.actions.save.set({ save: get$2(this._save) });
|
|
6374
6368
|
this._syncTimer = setTimeout(() => {
|
|
6375
6369
|
this._readyToSync = true;
|
|
6376
|
-
if (get$
|
|
6370
|
+
if (get$2(this._needSync)) {
|
|
6377
6371
|
this.syncToServer();
|
|
6378
6372
|
this._needSync.set(false);
|
|
6379
6373
|
}
|
|
@@ -6387,7 +6381,7 @@ var SaveHandler = class {
|
|
|
6387
6381
|
await this.syncToServer();
|
|
6388
6382
|
}
|
|
6389
6383
|
get save() {
|
|
6390
|
-
return get$
|
|
6384
|
+
return get$2(this._save);
|
|
6391
6385
|
}
|
|
6392
6386
|
_listeners() {
|
|
6393
6387
|
this._project.ecs.components.store.subscribe((components) => {
|
|
@@ -6450,7 +6444,6 @@ var Project = class {
|
|
|
6450
6444
|
await this.fs.init();
|
|
6451
6445
|
await this.ecs.init();
|
|
6452
6446
|
await this.save.init();
|
|
6453
|
-
await this.packages.init();
|
|
6454
6447
|
this._inited = true;
|
|
6455
6448
|
return this;
|
|
6456
6449
|
}
|
|
@@ -6682,7 +6675,7 @@ var ProjectLoader = class ProjectLoader {
|
|
|
6682
6675
|
}
|
|
6683
6676
|
};
|
|
6684
6677
|
var useProject = () => {
|
|
6685
|
-
const project = get$
|
|
6678
|
+
const project = get$2(projectStore);
|
|
6686
6679
|
if (!project) {
|
|
6687
6680
|
const error = new PLException(PLErrors.No_Project);
|
|
6688
6681
|
error.fb();
|
|
@@ -14747,7 +14740,7 @@ function Select_content($$renderer, $$props) {
|
|
|
14747
14740
|
if (Select_viewport) {
|
|
14748
14741
|
$$renderer.push("<!--[-->");
|
|
14749
14742
|
Select_viewport($$renderer, {
|
|
14750
|
-
class: cn("h
|
|
14743
|
+
class: cn("h-auto max-h-80 w-full min-w---bits-select-anchor-width"),
|
|
14751
14744
|
children: ($$renderer) => {
|
|
14752
14745
|
children?.($$renderer);
|
|
14753
14746
|
$$renderer.push(`<!---->`);
|
|
@@ -14990,4 +14983,4 @@ var runSafe = async (context, cb, fallback) => {
|
|
|
14990
14983
|
//#endregion
|
|
14991
14984
|
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
14985
|
|
|
14993
|
-
//# sourceMappingURL=error-
|
|
14986
|
+
//# sourceMappingURL=error-Bqe4QUEz.js.map
|