@nanoforge-dev/editor 0.0.2-beta.f0560db → 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/{DXCLqAaQ.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/{IxQBh0uF.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/{CVHDnHfN.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/{BGzu53pG.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.BDH5Gw2t.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.YMw6-DDI.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.nyMXETd-.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/{10.D5dyxEoB.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-DZ9xD1ZS.js → 0-D8EFaSd9.js} +6 -6
- package/dist/server/chunks/{0-DZ9xD1ZS.js.map → 0-D8EFaSd9.js.map} +1 -1
- package/dist/server/chunks/{1-BmDOEhD1.js → 1-CtEQBFI1.js} +6 -6
- package/dist/server/chunks/{1-BmDOEhD1.js.map → 1-CtEQBFI1.js.map} +1 -1
- package/dist/server/chunks/{9-DPn3d8kr.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-CTnsJAeO.js → 2-BwBHdvIf.js} +10 -10
- package/dist/server/chunks/{2-CTnsJAeO.js.map → 2-BwBHdvIf.js.map} +1 -1
- package/dist/server/chunks/{3-sY71Rvnf.js → 3-BJRO5seJ.js} +10 -10
- package/dist/server/chunks/{3-sY71Rvnf.js.map → 3-BJRO5seJ.js.map} +1 -1
- package/dist/server/chunks/{4-BYQgShv3.js → 4-C6nynU2n.js} +3 -3
- package/dist/server/chunks/{4-BYQgShv3.js.map → 4-C6nynU2n.js.map} +1 -1
- package/dist/server/chunks/{5-B4IXyXqv.js → 5-GGXm17tz.js} +3 -3
- package/dist/server/chunks/{5-B4IXyXqv.js.map → 5-GGXm17tz.js.map} +1 -1
- package/dist/server/chunks/{6-DH_IMDRv.js → 6-CecbZbuB.js} +3 -3
- package/dist/server/chunks/{6-DH_IMDRv.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/{7-CPMeoSUO.js → 8-DxuDvwam.js} +49 -36
- package/dist/server/chunks/8-DxuDvwam.js.map +1 -0
- package/dist/server/chunks/{8-CRTa48Fz.js → 9-C-7eeTkI.js} +5 -5
- package/dist/server/chunks/{8-CRTa48Fz.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-C9Sfe7iL.js → _page.svelte-BdTp6gki.js} +7 -7
- package/dist/server/chunks/{_page.svelte-C9Sfe7iL.js.map → _page.svelte-BdTp6gki.js.map} +1 -1
- package/dist/server/chunks/{_page.svelte-DrUJljJj.js → _page.svelte-CSTVKT86.js} +6 -6
- package/dist/server/chunks/_page.svelte-CSTVKT86.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-CKCWxyuV.js → _page.svelte-Dyt-dT8R.js} +38 -63
- 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-y6LeO9-5.js → _server.ts-Zy4HMSqW.js} +2 -2
- package/dist/server/chunks/{_server.ts-y6LeO9-5.js.map → _server.ts-Zy4HMSqW.js.map} +1 -1
- package/dist/server/chunks/app-DUeJj5RD.js.map +1 -1
- package/dist/server/chunks/{client-wcMzlYMJ.js → client-Crw1nXFW.js} +4 -4
- package/dist/server/chunks/client-Crw1nXFW.js.map +1 -0
- package/dist/server/chunks/{error-yRLerN6-.js → error-Bqe4QUEz.js} +118 -140
- package/dist/server/chunks/error-Bqe4QUEz.js.map +1 -0
- package/dist/server/chunks/{error.svelte-CSc64jDg.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-DZzWiuvp.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-CymmS2kD.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-DQvU3yHs.js → logo-CZA0eXUA.js} +4 -4
- package/dist/server/chunks/logo-CZA0eXUA.js.map +1 -0
- package/dist/server/chunks/{project-loader-WpOsdMow.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-C35GnK5_.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-t8aj5-Cf.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 +48 -24
- package/dist/server/manifest.js.map +1 -1
- package/package.json +18 -16
- package/dist/client/_app/immutable/assets/0.DM_luNRS.css +0 -1
- package/dist/client/_app/immutable/assets/0.DM_luNRS.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.DM_luNRS.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/BGzu53pG.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BGzu53pG.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/BnWY0TZI.js +0 -1
- package/dist/client/_app/immutable/chunks/BnWY0TZI.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BnWY0TZI.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/CVHDnHfN.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CVHDnHfN.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/DXCLqAaQ.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DXCLqAaQ.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DoLBDi-M.js +0 -6
- package/dist/client/_app/immutable/chunks/DoLBDi-M.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DoLBDi-M.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/IxQBh0uF.js.br +0 -0
- package/dist/client/_app/immutable/chunks/IxQBh0uF.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.BDH5Gw2t.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.BDH5Gw2t.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.D1GEGS4G.js +0 -1
- package/dist/client/_app/immutable/entry/start.D1GEGS4G.js.br +0 -0
- package/dist/client/_app/immutable/entry/start.D1GEGS4G.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/0.YMw6-DDI.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.YMw6-DDI.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/1.nyMXETd-.js.br +0 -1
- package/dist/client/_app/immutable/nodes/1.nyMXETd-.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/10.D5dyxEoB.js.br +0 -0
- package/dist/client/_app/immutable/nodes/10.D5dyxEoB.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.LU26GJum.js +0 -1
- package/dist/client/_app/immutable/nodes/2.LU26GJum.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.LU26GJum.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/3.DekRDPns.js +0 -6
- package/dist/client/_app/immutable/nodes/3.DekRDPns.js.br +0 -0
- package/dist/client/_app/immutable/nodes/3.DekRDPns.js.gz +0 -0
- package/dist/server/chunks/10-fxkdMQYG.js +0 -22
- package/dist/server/chunks/10-fxkdMQYG.js.map +0 -1
- package/dist/server/chunks/7-CPMeoSUO.js.map +0 -1
- package/dist/server/chunks/9-DPn3d8kr.js.map +0 -1
- package/dist/server/chunks/_layout.svelte-uX7XiB9K.js.map +0 -1
- package/dist/server/chunks/_page.svelte-CKCWxyuV.js.map +0 -1
- package/dist/server/chunks/_page.svelte-DrUJljJj.js.map +0 -1
- package/dist/server/chunks/client-wcMzlYMJ.js.map +0 -1
- package/dist/server/chunks/error-yRLerN6-.js.map +0 -1
- package/dist/server/chunks/error.svelte-CSc64jDg.js.map +0 -1
- package/dist/server/chunks/events-Bhh2w-5S.js.map +0 -1
- package/dist/server/chunks/hooks.server-DZzWiuvp.js.map +0 -1
- package/dist/server/chunks/internal2-CymmS2kD.js.map +0 -1
- package/dist/server/chunks/loader-circle-CFNm9vip.js.map +0 -1
- package/dist/server/chunks/logo-DQvU3yHs.js.map +0 -1
- package/dist/server/chunks/project-loader-WpOsdMow.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-C35GnK5_.js.map +0 -1
- package/dist/server/chunks/state-t8aj5-Cf.js.map +0 -1
- /package/dist/client/_app/immutable/chunks/{CVaqCwHa.js → CVaqCwHa2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CVaqCwHa.js.br → CVaqCwHa2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CVaqCwHa.js.gz → CVaqCwHa2.js.gz} +0 -0
- /package/dist/client/_app/immutable/chunks/{De2hgUGE.js → De2hgUGE2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{De2hgUGE.js.br → De2hgUGE2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{De2hgUGE.js.gz → De2hgUGE2.js.gz} +0 -0
- /package/dist/server/chunks/{chunk-D7D4PA-g.js → rolldown-runtime-D7D4PA-g.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { G as noop$1, J as parse } from "./internal2-
|
|
1
|
+
import { B as mount, C as escape_html, D as getAllContexts, K as props_id, M as hasContext, O as getContext, Q as run, S as ensure_array_like, T as get$2, U as on, ct as unmount, d as bind_props, dt as clsx, et as setContext, m as clsx$1, ot as tick, rt as spread_props, t as ATTACHMENT_KEY, u as attributes, ut as writable, y as derived } from "./index-server-BthNUqCR.js";
|
|
2
|
+
import { G as noop$1, J as parse } from "./internal2-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,11 +4759,11 @@ 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
|
}
|
|
@@ -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,20 +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
4811
|
async delete(id) {
|
|
4810
|
-
const components = get$
|
|
4812
|
+
const components = get$2(_storage$12);
|
|
4811
4813
|
const component = components.find((c) => c.id === id);
|
|
4812
4814
|
if (!component) throw new Error(`System not found: ${id}`);
|
|
4813
4815
|
_storage$12.set(components.filter((c) => c.id !== id));
|
|
4814
4816
|
const { fs } = useProject();
|
|
4815
4817
|
await (await fs.getFile(component.path)).delete();
|
|
4816
|
-
const subscriptions = get$
|
|
4818
|
+
const subscriptions = get$2(_subscriptions$6);
|
|
4817
4819
|
if (subscriptions[id]) {
|
|
4818
4820
|
subscriptions[id]();
|
|
4819
4821
|
subscriptions[id] = null;
|
|
@@ -4821,20 +4823,20 @@ var ComponentManager = class {
|
|
|
4821
4823
|
}
|
|
4822
4824
|
}
|
|
4823
4825
|
_add(component) {
|
|
4824
|
-
const components = get$
|
|
4826
|
+
const components = get$2(_storage$12);
|
|
4825
4827
|
components.push(component);
|
|
4826
4828
|
_storage$12.set(components);
|
|
4827
4829
|
}
|
|
4828
4830
|
_subscribe(id, handle) {
|
|
4829
4831
|
setTimeout(() => {
|
|
4830
|
-
const subscriptions = get$
|
|
4832
|
+
const subscriptions = get$2(_subscriptions$6);
|
|
4831
4833
|
if (subscriptions[id]) return;
|
|
4832
4834
|
subscriptions[id] = handle.store.subscribe((component) => this._update(id, component));
|
|
4833
4835
|
_subscriptions$6.set(subscriptions);
|
|
4834
4836
|
}, 0);
|
|
4835
4837
|
}
|
|
4836
4838
|
_update(id, component) {
|
|
4837
|
-
const components = get$
|
|
4839
|
+
const components = get$2(_storage$12);
|
|
4838
4840
|
const index = components.findIndex((s) => s.id === id);
|
|
4839
4841
|
if (index === -1) return;
|
|
4840
4842
|
components[index] = component;
|
|
@@ -4858,11 +4860,11 @@ var LibraryHandle = class {
|
|
|
4858
4860
|
return this._store;
|
|
4859
4861
|
}
|
|
4860
4862
|
get data() {
|
|
4861
|
-
return get$
|
|
4863
|
+
return get$2(this._store);
|
|
4862
4864
|
}
|
|
4863
4865
|
update(library) {
|
|
4864
4866
|
this._store.set({
|
|
4865
|
-
...get$
|
|
4867
|
+
...get$2(this._store),
|
|
4866
4868
|
...library
|
|
4867
4869
|
});
|
|
4868
4870
|
}
|
|
@@ -4884,10 +4886,10 @@ var LibraryManager = class {
|
|
|
4884
4886
|
return _storage$10;
|
|
4885
4887
|
}
|
|
4886
4888
|
get data() {
|
|
4887
|
-
return get$
|
|
4889
|
+
return get$2(_storage$10);
|
|
4888
4890
|
}
|
|
4889
4891
|
add(library) {
|
|
4890
|
-
const libraries = get$
|
|
4892
|
+
const libraries = get$2(_storage$10);
|
|
4891
4893
|
libraries.push({
|
|
4892
4894
|
...library,
|
|
4893
4895
|
id: library.name
|
|
@@ -4896,16 +4898,16 @@ var LibraryManager = class {
|
|
|
4896
4898
|
return library.name;
|
|
4897
4899
|
}
|
|
4898
4900
|
get(id) {
|
|
4899
|
-
const library = get$
|
|
4901
|
+
const library = get$2(_storage$10).find((library) => library.id === id);
|
|
4900
4902
|
if (!library) throw new Error(`Library with id ${id} not found`);
|
|
4901
4903
|
const handle = new LibraryHandle(this, library);
|
|
4902
4904
|
this._subscribe(id, handle);
|
|
4903
4905
|
return handle;
|
|
4904
4906
|
}
|
|
4905
4907
|
delete(id) {
|
|
4906
|
-
const libraries = get$
|
|
4908
|
+
const libraries = get$2(_storage$10);
|
|
4907
4909
|
_storage$10.set(libraries.filter((library) => library.id !== id));
|
|
4908
|
-
const subscriptions = get$
|
|
4910
|
+
const subscriptions = get$2(_subscriptions$5);
|
|
4909
4911
|
if (subscriptions[id]) {
|
|
4910
4912
|
subscriptions[id]();
|
|
4911
4913
|
subscriptions[id] = null;
|
|
@@ -4914,14 +4916,14 @@ var LibraryManager = class {
|
|
|
4914
4916
|
}
|
|
4915
4917
|
_subscribe(id, handle) {
|
|
4916
4918
|
setTimeout(() => {
|
|
4917
|
-
const subscriptions = get$
|
|
4919
|
+
const subscriptions = get$2(_subscriptions$5);
|
|
4918
4920
|
if (subscriptions[id]) return;
|
|
4919
4921
|
subscriptions[id] = handle.store.subscribe((library) => this._update(id, library));
|
|
4920
4922
|
_subscriptions$5.set(subscriptions);
|
|
4921
4923
|
}, 0);
|
|
4922
4924
|
}
|
|
4923
4925
|
_update(id, library) {
|
|
4924
|
-
const libraries = get$
|
|
4926
|
+
const libraries = get$2(_storage$10);
|
|
4925
4927
|
const index = libraries.findIndex((s) => s.id === id);
|
|
4926
4928
|
if (index === -1) return;
|
|
4927
4929
|
libraries[index] = library;
|
|
@@ -4959,7 +4961,7 @@ var ComponentParamHandle = class {
|
|
|
4959
4961
|
this.manager.delete(this.id);
|
|
4960
4962
|
}
|
|
4961
4963
|
_listen() {
|
|
4962
|
-
if (get$
|
|
4964
|
+
if (get$2(_listener$5)) return;
|
|
4963
4965
|
const unsub = this.manager.component.store.subscribe((component) => {
|
|
4964
4966
|
const newParam = component.params.find((param) => param.name === this.id);
|
|
4965
4967
|
if (!newParam) return;
|
|
@@ -4986,7 +4988,7 @@ var ComponentParamManager = class {
|
|
|
4986
4988
|
constructor(component, params) {
|
|
4987
4989
|
this.component = component;
|
|
4988
4990
|
this._storageResolvable = `${this.component.manager.entity.manager.scene.id}/${this.component.manager.entity.id}/${this.component.id}`;
|
|
4989
|
-
this._store = resolveStore(_storage$8, this._storageResolvable, get$
|
|
4991
|
+
this._store = resolveStore(_storage$8, this._storageResolvable, get$2(component.store).params);
|
|
4990
4992
|
this._valuesStore = resolveStore(_valueStorage, this._storageResolvable, params);
|
|
4991
4993
|
this._listen();
|
|
4992
4994
|
}
|
|
@@ -4997,21 +4999,21 @@ var ComponentParamManager = class {
|
|
|
4997
4999
|
return this._valuesStore;
|
|
4998
5000
|
}
|
|
4999
5001
|
get(id) {
|
|
5000
|
-
const param = get$
|
|
5002
|
+
const param = get$2(this._store).find((param) => param.name === id);
|
|
5001
5003
|
if (!param) throw new Error(`Param with id ${id} not found`);
|
|
5002
|
-
const value = get$
|
|
5004
|
+
const value = get$2(this._valuesStore)[id];
|
|
5003
5005
|
const handle = new ComponentParamHandle(this, param, value);
|
|
5004
5006
|
this._subscribe(id, handle);
|
|
5005
5007
|
return handle;
|
|
5006
5008
|
}
|
|
5007
5009
|
delete(id) {
|
|
5008
|
-
const params = get$
|
|
5010
|
+
const params = get$2(this._store);
|
|
5009
5011
|
this._store.set(params.map((param) => param.name === id ? {
|
|
5010
5012
|
...param,
|
|
5011
5013
|
value: void 0
|
|
5012
5014
|
} : param));
|
|
5013
5015
|
const fullId = `${this._storageResolvable}/${id}`;
|
|
5014
|
-
const subscriptions = get$
|
|
5016
|
+
const subscriptions = get$2(_subscriptions$4);
|
|
5015
5017
|
if (subscriptions[fullId]) {
|
|
5016
5018
|
subscriptions[fullId]();
|
|
5017
5019
|
subscriptions[fullId] = null;
|
|
@@ -5019,7 +5021,7 @@ var ComponentParamManager = class {
|
|
|
5019
5021
|
}
|
|
5020
5022
|
}
|
|
5021
5023
|
_listen() {
|
|
5022
|
-
if (get$
|
|
5024
|
+
if (get$2(_listener$4)) return;
|
|
5023
5025
|
const unsub = this.component.store.subscribe((component) => {
|
|
5024
5026
|
this._store.set(component.params);
|
|
5025
5027
|
});
|
|
@@ -5028,14 +5030,14 @@ var ComponentParamManager = class {
|
|
|
5028
5030
|
_subscribe(id, handle) {
|
|
5029
5031
|
setTimeout(() => {
|
|
5030
5032
|
const fullId = `${this._storageResolvable}/${id}`;
|
|
5031
|
-
const subscriptions = get$
|
|
5033
|
+
const subscriptions = get$2(_subscriptions$4);
|
|
5032
5034
|
if (subscriptions[fullId]) return;
|
|
5033
5035
|
subscriptions[fullId] = handle.value.subscribe((param) => this._update(id, param));
|
|
5034
5036
|
_subscriptions$4.set(subscriptions);
|
|
5035
5037
|
}, 0);
|
|
5036
5038
|
}
|
|
5037
5039
|
_update(id, value) {
|
|
5038
|
-
const params = get$
|
|
5040
|
+
const params = get$2(this._valuesStore);
|
|
5039
5041
|
params[id] = value;
|
|
5040
5042
|
this._valuesStore.set(params);
|
|
5041
5043
|
}
|
|
@@ -5055,7 +5057,7 @@ var EntityComponentHandle = class {
|
|
|
5055
5057
|
return this._store;
|
|
5056
5058
|
}
|
|
5057
5059
|
get data() {
|
|
5058
|
-
return get$
|
|
5060
|
+
return get$2(this._store);
|
|
5059
5061
|
}
|
|
5060
5062
|
get params() {
|
|
5061
5063
|
return this._params;
|
|
@@ -5086,30 +5088,30 @@ var EntityComponentManager = class {
|
|
|
5086
5088
|
return this._store;
|
|
5087
5089
|
}
|
|
5088
5090
|
get data() {
|
|
5089
|
-
return get$
|
|
5091
|
+
return get$2(this._store);
|
|
5090
5092
|
}
|
|
5091
5093
|
add(component) {
|
|
5092
|
-
const components = get$
|
|
5094
|
+
const components = get$2(this._store);
|
|
5093
5095
|
const manifest = this.entity.manager.scene.manager.ecs.components.get(component).data;
|
|
5094
5096
|
components[component] = { ...Object.fromEntries(manifest.params.filter((param) => param.default).map((param) => [param.name, param.default])) };
|
|
5095
5097
|
this._store.set(components);
|
|
5096
5098
|
}
|
|
5097
5099
|
get(id) {
|
|
5098
|
-
const params = get$
|
|
5100
|
+
const params = get$2(this._store)[id];
|
|
5099
5101
|
if (!params) throw new Error(`Component with id ${id} not found`);
|
|
5100
5102
|
const handle = new EntityComponentHandle(this, id, params);
|
|
5101
5103
|
this._subscribe(id, handle);
|
|
5102
5104
|
return handle;
|
|
5103
5105
|
}
|
|
5104
5106
|
delete(id) {
|
|
5105
|
-
const components = get$
|
|
5107
|
+
const components = get$2(this._store);
|
|
5106
5108
|
const newComponents = {};
|
|
5107
5109
|
Object.entries(components).forEach(([key, params]) => {
|
|
5108
5110
|
if (key !== id) newComponents[key] = params;
|
|
5109
5111
|
});
|
|
5110
5112
|
this._store.set(newComponents);
|
|
5111
5113
|
const fullId = `${this._storageResolvable}/${id}`;
|
|
5112
|
-
const subscriptions = get$
|
|
5114
|
+
const subscriptions = get$2(_subscriptions$3);
|
|
5113
5115
|
if (subscriptions[fullId]) {
|
|
5114
5116
|
subscriptions[fullId]();
|
|
5115
5117
|
subscriptions[fullId] = null;
|
|
@@ -5117,9 +5119,9 @@ var EntityComponentManager = class {
|
|
|
5117
5119
|
}
|
|
5118
5120
|
}
|
|
5119
5121
|
_listen() {
|
|
5120
|
-
if (get$
|
|
5122
|
+
if (get$2(_listener$3)) return;
|
|
5121
5123
|
const unsub = this.entity.manager.scene.manager.ecs.components.store.subscribe((components) => {
|
|
5122
|
-
const entityComponents = get$
|
|
5124
|
+
const entityComponents = get$2(this._store);
|
|
5123
5125
|
const newComponents = {};
|
|
5124
5126
|
Object.entries(entityComponents).forEach(([key, params]) => {
|
|
5125
5127
|
if (components.find((s) => s.id === key)) newComponents[key] = params;
|
|
@@ -5131,14 +5133,14 @@ var EntityComponentManager = class {
|
|
|
5131
5133
|
_subscribe(id, handle) {
|
|
5132
5134
|
setTimeout(() => {
|
|
5133
5135
|
const fullId = `${this._storageResolvable}/${id}`;
|
|
5134
|
-
const subscriptions = get$
|
|
5136
|
+
const subscriptions = get$2(_subscriptions$3);
|
|
5135
5137
|
if (subscriptions[fullId]) return;
|
|
5136
5138
|
subscriptions[fullId] = handle.params.values.subscribe((params) => this._update(id, params));
|
|
5137
5139
|
_subscriptions$3.set(subscriptions);
|
|
5138
5140
|
}, 0);
|
|
5139
5141
|
}
|
|
5140
5142
|
_update(id, params) {
|
|
5141
|
-
const component = get$
|
|
5143
|
+
const component = get$2(this._store);
|
|
5142
5144
|
component[id] = params;
|
|
5143
5145
|
this._store.set(component);
|
|
5144
5146
|
}
|
|
@@ -5165,14 +5167,14 @@ var SceneEntityHandle = class {
|
|
|
5165
5167
|
return this._store;
|
|
5166
5168
|
}
|
|
5167
5169
|
get data() {
|
|
5168
|
-
return get$
|
|
5170
|
+
return get$2(this._store);
|
|
5169
5171
|
}
|
|
5170
5172
|
get components() {
|
|
5171
5173
|
return this._components;
|
|
5172
5174
|
}
|
|
5173
5175
|
update(entity) {
|
|
5174
5176
|
this._store.set({
|
|
5175
|
-
...get$
|
|
5177
|
+
...get$2(this._store),
|
|
5176
5178
|
...entity
|
|
5177
5179
|
});
|
|
5178
5180
|
}
|
|
@@ -5183,9 +5185,9 @@ var SceneEntityHandle = class {
|
|
|
5183
5185
|
this.manager.selected = this;
|
|
5184
5186
|
}
|
|
5185
5187
|
_listen() {
|
|
5186
|
-
if (get$
|
|
5188
|
+
if (get$2(_listener$2)) return;
|
|
5187
5189
|
const unsub = this._components.store.subscribe((components) => {
|
|
5188
|
-
const entity = get$
|
|
5190
|
+
const entity = get$2(this._store);
|
|
5189
5191
|
entity.components = components;
|
|
5190
5192
|
this._store.set(entity);
|
|
5191
5193
|
});
|
|
@@ -5210,10 +5212,10 @@ var SceneEntityManager = class {
|
|
|
5210
5212
|
return this._store;
|
|
5211
5213
|
}
|
|
5212
5214
|
get data() {
|
|
5213
|
-
return get$
|
|
5215
|
+
return get$2(this._store);
|
|
5214
5216
|
}
|
|
5215
5217
|
get selectedData() {
|
|
5216
|
-
return get$
|
|
5218
|
+
return get$2(selectedEntity);
|
|
5217
5219
|
}
|
|
5218
5220
|
get selected() {
|
|
5219
5221
|
return selectedEntity;
|
|
@@ -5222,7 +5224,7 @@ var SceneEntityManager = class {
|
|
|
5222
5224
|
selectedEntity.set(entity);
|
|
5223
5225
|
}
|
|
5224
5226
|
add(entity) {
|
|
5225
|
-
const entities = get$
|
|
5227
|
+
const entities = get$2(this._store);
|
|
5226
5228
|
const id = getId(this.data, entity.name);
|
|
5227
5229
|
entities.push({
|
|
5228
5230
|
...entity,
|
|
@@ -5232,17 +5234,17 @@ var SceneEntityManager = class {
|
|
|
5232
5234
|
return id;
|
|
5233
5235
|
}
|
|
5234
5236
|
get(id) {
|
|
5235
|
-
const entity = get$
|
|
5237
|
+
const entity = get$2(this._store).find((entity) => entity.id === id);
|
|
5236
5238
|
if (!entity) throw new Error(`Entity with id ${id} not found`);
|
|
5237
5239
|
const handle = new SceneEntityHandle(this, entity);
|
|
5238
5240
|
this._subscribe(id, handle);
|
|
5239
5241
|
return handle;
|
|
5240
5242
|
}
|
|
5241
5243
|
delete(id) {
|
|
5242
|
-
const entities = get$
|
|
5244
|
+
const entities = get$2(this._store);
|
|
5243
5245
|
this._store.set(entities.filter((entity) => entity.id !== id));
|
|
5244
5246
|
const fullId = `${this.scene.id}/${id}`;
|
|
5245
|
-
const subscriptions = get$
|
|
5247
|
+
const subscriptions = get$2(_subscriptions$2);
|
|
5246
5248
|
if (subscriptions[fullId]) {
|
|
5247
5249
|
subscriptions[fullId]();
|
|
5248
5250
|
subscriptions[fullId] = null;
|
|
@@ -5253,14 +5255,14 @@ var SceneEntityManager = class {
|
|
|
5253
5255
|
_subscribe(id, handle) {
|
|
5254
5256
|
setTimeout(() => {
|
|
5255
5257
|
const fullId = `${this.scene.id}/${id}`;
|
|
5256
|
-
const subscriptions = get$
|
|
5258
|
+
const subscriptions = get$2(_subscriptions$2);
|
|
5257
5259
|
if (subscriptions[fullId]) return;
|
|
5258
5260
|
subscriptions[fullId] = handle.store.subscribe((entity) => this._update(id, entity));
|
|
5259
5261
|
_subscriptions$2.set(subscriptions);
|
|
5260
5262
|
}, 0);
|
|
5261
5263
|
}
|
|
5262
5264
|
_update(id, entity) {
|
|
5263
|
-
const entities = get$
|
|
5265
|
+
const entities = get$2(this._store);
|
|
5264
5266
|
const index = entities.findIndex((s) => s.id === id);
|
|
5265
5267
|
if (index === -1) return;
|
|
5266
5268
|
entities[index] = entity;
|
|
@@ -5280,7 +5282,7 @@ var SceneSystemHandle = class {
|
|
|
5280
5282
|
return this._store;
|
|
5281
5283
|
}
|
|
5282
5284
|
get data() {
|
|
5283
|
-
return get$
|
|
5285
|
+
return get$2(this._store);
|
|
5284
5286
|
}
|
|
5285
5287
|
delete() {
|
|
5286
5288
|
this.manager.delete(this.id);
|
|
@@ -5304,26 +5306,26 @@ var SceneSystemManager = class {
|
|
|
5304
5306
|
return this._store;
|
|
5305
5307
|
}
|
|
5306
5308
|
get data() {
|
|
5307
|
-
return get$
|
|
5309
|
+
return get$2(this._store);
|
|
5308
5310
|
}
|
|
5309
5311
|
add(system) {
|
|
5310
|
-
const systems = get$
|
|
5312
|
+
const systems = get$2(this._store);
|
|
5311
5313
|
systems.push(system);
|
|
5312
5314
|
this._store.set(systems);
|
|
5313
5315
|
}
|
|
5314
5316
|
get(id) {
|
|
5315
|
-
const system = get$
|
|
5317
|
+
const system = get$2(this._store).find((system) => system === id);
|
|
5316
5318
|
if (!system) throw new Error(`System with id ${id} not found`);
|
|
5317
5319
|
return new SceneSystemHandle(this, system);
|
|
5318
5320
|
}
|
|
5319
5321
|
delete(id) {
|
|
5320
|
-
const systems = get$
|
|
5322
|
+
const systems = get$2(this._store);
|
|
5321
5323
|
this._store.set(systems.filter((system) => system !== id));
|
|
5322
5324
|
}
|
|
5323
5325
|
_listen() {
|
|
5324
|
-
if (get$
|
|
5326
|
+
if (get$2(_listener$1)) return;
|
|
5325
5327
|
const unsub = this.scene.manager.ecs.systems.store.subscribe((systems) => {
|
|
5326
|
-
const sceneSystems = get$
|
|
5328
|
+
const sceneSystems = get$2(this._store);
|
|
5327
5329
|
sceneSystems.filter((system) => systems.find((s) => s.id === system));
|
|
5328
5330
|
this._store.set(sceneSystems);
|
|
5329
5331
|
});
|
|
@@ -5354,7 +5356,7 @@ var SceneHandle = class {
|
|
|
5354
5356
|
return this._store;
|
|
5355
5357
|
}
|
|
5356
5358
|
get data() {
|
|
5357
|
-
return get$
|
|
5359
|
+
return get$2(this._store);
|
|
5358
5360
|
}
|
|
5359
5361
|
get entities() {
|
|
5360
5362
|
return this._entities;
|
|
@@ -5364,7 +5366,7 @@ var SceneHandle = class {
|
|
|
5364
5366
|
}
|
|
5365
5367
|
update(scene) {
|
|
5366
5368
|
this._store.set({
|
|
5367
|
-
...get$
|
|
5369
|
+
...get$2(this._store),
|
|
5368
5370
|
...scene
|
|
5369
5371
|
});
|
|
5370
5372
|
}
|
|
@@ -5378,13 +5380,13 @@ var SceneHandle = class {
|
|
|
5378
5380
|
this.manager.default = this.id;
|
|
5379
5381
|
}
|
|
5380
5382
|
_listen() {
|
|
5381
|
-
if (get$
|
|
5383
|
+
if (get$2(_listener)) return;
|
|
5382
5384
|
const unsub = [this._entities.store.subscribe((entities) => {
|
|
5383
|
-
const scene = get$
|
|
5385
|
+
const scene = get$2(this._store);
|
|
5384
5386
|
scene.entities = entities;
|
|
5385
5387
|
this._store.set(scene);
|
|
5386
5388
|
}), this._systems.store.subscribe((systems) => {
|
|
5387
|
-
const scene = get$
|
|
5389
|
+
const scene = get$2(this._store);
|
|
5388
5390
|
scene.systems = systems;
|
|
5389
5391
|
this._store.set(scene);
|
|
5390
5392
|
})];
|
|
@@ -5418,10 +5420,10 @@ var SceneManager = class {
|
|
|
5418
5420
|
return _storage$2;
|
|
5419
5421
|
}
|
|
5420
5422
|
get data() {
|
|
5421
|
-
return get$
|
|
5423
|
+
return get$2(_storage$2);
|
|
5422
5424
|
}
|
|
5423
5425
|
get activeData() {
|
|
5424
|
-
return get$
|
|
5426
|
+
return get$2(_activeSceneStorage);
|
|
5425
5427
|
}
|
|
5426
5428
|
get active() {
|
|
5427
5429
|
return _activeSceneStorage;
|
|
@@ -5430,7 +5432,7 @@ var SceneManager = class {
|
|
|
5430
5432
|
_activeSceneStorage.set(handle);
|
|
5431
5433
|
}
|
|
5432
5434
|
get defaultData() {
|
|
5433
|
-
return get$
|
|
5435
|
+
return get$2(_defaultSceneStorage);
|
|
5434
5436
|
}
|
|
5435
5437
|
get default() {
|
|
5436
5438
|
return _defaultSceneStorage;
|
|
@@ -5439,7 +5441,7 @@ var SceneManager = class {
|
|
|
5439
5441
|
_defaultSceneStorage.set(handle);
|
|
5440
5442
|
}
|
|
5441
5443
|
get rootScenes() {
|
|
5442
|
-
return get$
|
|
5444
|
+
return get$2(_rootScenesStorage);
|
|
5443
5445
|
}
|
|
5444
5446
|
get rootScenesStore() {
|
|
5445
5447
|
return _rootScenesStorage;
|
|
@@ -5448,7 +5450,7 @@ var SceneManager = class {
|
|
|
5448
5450
|
_rootScenesStorage.set(Array.from(new Set(scenes)));
|
|
5449
5451
|
}
|
|
5450
5452
|
add(scene) {
|
|
5451
|
-
const scenes = get$
|
|
5453
|
+
const scenes = get$2(_storage$2);
|
|
5452
5454
|
const id = getId(this.data, scene.name);
|
|
5453
5455
|
scenes.push({
|
|
5454
5456
|
...scene,
|
|
@@ -5458,16 +5460,16 @@ var SceneManager = class {
|
|
|
5458
5460
|
return id;
|
|
5459
5461
|
}
|
|
5460
5462
|
get(id) {
|
|
5461
|
-
const scene = get$
|
|
5463
|
+
const scene = get$2(_storage$2).find((scene) => scene.id === id);
|
|
5462
5464
|
if (!scene) throw new Error(`Scene with id ${id} not found`);
|
|
5463
5465
|
const handle = new SceneHandle(this, scene);
|
|
5464
5466
|
this._subscribe(id, handle);
|
|
5465
5467
|
return handle;
|
|
5466
5468
|
}
|
|
5467
5469
|
delete(id) {
|
|
5468
|
-
const scenes = get$
|
|
5470
|
+
const scenes = get$2(_storage$2);
|
|
5469
5471
|
_storage$2.set(scenes.filter((scene) => scene.id !== id));
|
|
5470
|
-
const subscriptions = get$
|
|
5472
|
+
const subscriptions = get$2(_subscriptions$1);
|
|
5471
5473
|
if (subscriptions[id]) {
|
|
5472
5474
|
subscriptions[id]();
|
|
5473
5475
|
subscriptions[id] = null;
|
|
@@ -5479,14 +5481,14 @@ var SceneManager = class {
|
|
|
5479
5481
|
}
|
|
5480
5482
|
_subscribe(id, handle) {
|
|
5481
5483
|
setTimeout(() => {
|
|
5482
|
-
const subscriptions = get$
|
|
5484
|
+
const subscriptions = get$2(_subscriptions$1);
|
|
5483
5485
|
if (subscriptions[id]) return;
|
|
5484
5486
|
subscriptions[id] = handle.store.subscribe((scene) => this._update(id, scene));
|
|
5485
5487
|
_subscriptions$1.set(subscriptions);
|
|
5486
5488
|
}, 0);
|
|
5487
5489
|
}
|
|
5488
5490
|
_update(id, scene) {
|
|
5489
|
-
const scenes = get$
|
|
5491
|
+
const scenes = get$2(_storage$2);
|
|
5490
5492
|
const index = scenes.findIndex((s) => s.id === id);
|
|
5491
5493
|
if (index === -1) return;
|
|
5492
5494
|
scenes[index] = scene;
|
|
@@ -5510,11 +5512,11 @@ var SystemHandle = class {
|
|
|
5510
5512
|
return this._store;
|
|
5511
5513
|
}
|
|
5512
5514
|
get data() {
|
|
5513
|
-
return get$
|
|
5515
|
+
return get$2(this._store);
|
|
5514
5516
|
}
|
|
5515
5517
|
update(system) {
|
|
5516
5518
|
this._store.set({
|
|
5517
|
-
...get$
|
|
5519
|
+
...get$2(this._store),
|
|
5518
5520
|
...system
|
|
5519
5521
|
});
|
|
5520
5522
|
}
|
|
@@ -5536,7 +5538,7 @@ var SystemManager = class {
|
|
|
5536
5538
|
return _storage;
|
|
5537
5539
|
}
|
|
5538
5540
|
get data() {
|
|
5539
|
-
return get$
|
|
5541
|
+
return get$2(_storage);
|
|
5540
5542
|
}
|
|
5541
5543
|
async create(name) {
|
|
5542
5544
|
const { actions, fs } = useProject();
|
|
@@ -5544,12 +5546,8 @@ var SystemManager = class {
|
|
|
5544
5546
|
this._add(systemTransformer(system));
|
|
5545
5547
|
await (await fs.getDirectory()).readdir(true);
|
|
5546
5548
|
}
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
await actions.package.addSystems({ systemNames: names });
|
|
5550
|
-
await this.sync();
|
|
5551
|
-
await ecs.components.sync();
|
|
5552
|
-
await (await fs.getDirectory()).readdir(true);
|
|
5549
|
+
add(system) {
|
|
5550
|
+
this._add(systemTransformer(system));
|
|
5553
5551
|
}
|
|
5554
5552
|
async sync() {
|
|
5555
5553
|
const { actions } = useProject();
|
|
@@ -5557,20 +5555,20 @@ var SystemManager = class {
|
|
|
5557
5555
|
_storage.set(systemsTransformer(systems));
|
|
5558
5556
|
}
|
|
5559
5557
|
get(id) {
|
|
5560
|
-
const system = get$
|
|
5558
|
+
const system = get$2(_storage).find((system) => system.id === id);
|
|
5561
5559
|
if (!system) throw new Error(`System with id ${id} not found`);
|
|
5562
5560
|
const handle = new SystemHandle(this, system);
|
|
5563
5561
|
this._subscribe(id, handle);
|
|
5564
5562
|
return handle;
|
|
5565
5563
|
}
|
|
5566
5564
|
async delete(id) {
|
|
5567
|
-
const systems = get$
|
|
5565
|
+
const systems = get$2(_storage);
|
|
5568
5566
|
const system = systems.find((s) => s.id === id);
|
|
5569
5567
|
if (!system) throw new Error(`System not found: ${id}`);
|
|
5570
5568
|
_storage.set(systems.filter((s) => s.id !== id));
|
|
5571
5569
|
const { fs } = useProject();
|
|
5572
5570
|
await (await fs.getFile(system.path)).delete();
|
|
5573
|
-
const subscriptions = get$
|
|
5571
|
+
const subscriptions = get$2(_subscriptions);
|
|
5574
5572
|
if (subscriptions[id]) {
|
|
5575
5573
|
subscriptions[id]();
|
|
5576
5574
|
subscriptions[id] = null;
|
|
@@ -5578,20 +5576,20 @@ var SystemManager = class {
|
|
|
5578
5576
|
}
|
|
5579
5577
|
}
|
|
5580
5578
|
_add(system) {
|
|
5581
|
-
const systems = get$
|
|
5579
|
+
const systems = get$2(_storage);
|
|
5582
5580
|
systems.push(system);
|
|
5583
5581
|
_storage.set(systems);
|
|
5584
5582
|
}
|
|
5585
5583
|
_subscribe(id, handle) {
|
|
5586
5584
|
setTimeout(() => {
|
|
5587
|
-
const subscriptions = get$
|
|
5585
|
+
const subscriptions = get$2(_subscriptions);
|
|
5588
5586
|
if (subscriptions[id]) return;
|
|
5589
5587
|
subscriptions[id] = handle.store.subscribe((system) => this._update(id, system));
|
|
5590
5588
|
_subscriptions.set(subscriptions);
|
|
5591
5589
|
}, 0);
|
|
5592
5590
|
}
|
|
5593
5591
|
_update(id, system) {
|
|
5594
|
-
const systems = get$
|
|
5592
|
+
const systems = get$2(_storage);
|
|
5595
5593
|
const index = systems.findIndex((s) => s.id === id);
|
|
5596
5594
|
if (index === -1) return;
|
|
5597
5595
|
systems[index] = system;
|
|
@@ -5721,12 +5719,12 @@ var InfoHandler = class {
|
|
|
5721
5719
|
this.core = core;
|
|
5722
5720
|
}
|
|
5723
5721
|
get(cacheOnly) {
|
|
5724
|
-
if (cacheOnly) return get$
|
|
5722
|
+
if (cacheOnly) return get$2(infoStore);
|
|
5725
5723
|
return this.fetch();
|
|
5726
5724
|
}
|
|
5727
5725
|
async fetch(noCache = false) {
|
|
5728
5726
|
if (!noCache) {
|
|
5729
|
-
const cache = get$
|
|
5727
|
+
const cache = get$2(infoStore);
|
|
5730
5728
|
if (cache) return cache;
|
|
5731
5729
|
}
|
|
5732
5730
|
const res = await this.core.actions.project.getInfo();
|
|
@@ -6329,33 +6327,14 @@ var Loader = class {
|
|
|
6329
6327
|
};
|
|
6330
6328
|
var PackageHandler = class {
|
|
6331
6329
|
_project;
|
|
6332
|
-
_componentsManifests = /* @__PURE__ */ new Map();
|
|
6333
|
-
_systemsManifests = /* @__PURE__ */ new Map();
|
|
6334
6330
|
constructor(project) {
|
|
6335
6331
|
this._project = project;
|
|
6336
6332
|
}
|
|
6337
|
-
async
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
return this._systemsManifests.get(systemName);
|
|
6343
|
-
}
|
|
6344
|
-
async installComponent(name) {
|
|
6345
|
-
const newComponent = (await this._project.actions.package.addComponents({ componentNames: [name] }))[0];
|
|
6346
|
-
this._project.save.save.components.push(newComponent.save);
|
|
6347
|
-
this._componentsManifests.set(newComponent.save.name, newComponent.manifest);
|
|
6348
|
-
}
|
|
6349
|
-
async installSystem(name) {
|
|
6350
|
-
const newSystem = (await this._project.actions.package.addSystems({ systemNames: [name] }))[0];
|
|
6351
|
-
this._project.save.save.systems.push(newSystem.save);
|
|
6352
|
-
this._systemsManifests.set(newSystem.save.name, newSystem.manifest);
|
|
6353
|
-
}
|
|
6354
|
-
addComponentManifest(componentName, component) {
|
|
6355
|
-
this._componentsManifests.set(componentName, component);
|
|
6356
|
-
}
|
|
6357
|
-
addSystemManifest(systemName, system) {
|
|
6358
|
-
this._systemsManifests.set(systemName, system);
|
|
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);
|
|
6359
6338
|
}
|
|
6360
6339
|
};
|
|
6361
6340
|
var SaveHandler = class {
|
|
@@ -6385,10 +6364,10 @@ var SaveHandler = class {
|
|
|
6385
6364
|
async syncToServer() {
|
|
6386
6365
|
if (this._readyToSync) {
|
|
6387
6366
|
this._readyToSync = false;
|
|
6388
|
-
await this._project.actions.save.set({ save: get$
|
|
6367
|
+
await this._project.actions.save.set({ save: get$2(this._save) });
|
|
6389
6368
|
this._syncTimer = setTimeout(() => {
|
|
6390
6369
|
this._readyToSync = true;
|
|
6391
|
-
if (get$
|
|
6370
|
+
if (get$2(this._needSync)) {
|
|
6392
6371
|
this.syncToServer();
|
|
6393
6372
|
this._needSync.set(false);
|
|
6394
6373
|
}
|
|
@@ -6402,7 +6381,7 @@ var SaveHandler = class {
|
|
|
6402
6381
|
await this.syncToServer();
|
|
6403
6382
|
}
|
|
6404
6383
|
get save() {
|
|
6405
|
-
return get$
|
|
6384
|
+
return get$2(this._save);
|
|
6406
6385
|
}
|
|
6407
6386
|
_listeners() {
|
|
6408
6387
|
this._project.ecs.components.store.subscribe((components) => {
|
|
@@ -6465,7 +6444,6 @@ var Project = class {
|
|
|
6465
6444
|
await this.fs.init();
|
|
6466
6445
|
await this.ecs.init();
|
|
6467
6446
|
await this.save.init();
|
|
6468
|
-
await this.packages.init();
|
|
6469
6447
|
this._inited = true;
|
|
6470
6448
|
return this;
|
|
6471
6449
|
}
|
|
@@ -6697,7 +6675,7 @@ var ProjectLoader = class ProjectLoader {
|
|
|
6697
6675
|
}
|
|
6698
6676
|
};
|
|
6699
6677
|
var useProject = () => {
|
|
6700
|
-
const project = get$
|
|
6678
|
+
const project = get$2(projectStore);
|
|
6701
6679
|
if (!project) {
|
|
6702
6680
|
const error = new PLException(PLErrors.No_Project);
|
|
6703
6681
|
error.fb();
|
|
@@ -15005,4 +14983,4 @@ var runSafe = async (context, cb, fallback) => {
|
|
|
15005
14983
|
//#endregion
|
|
15006
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 };
|
|
15007
14985
|
|
|
15008
|
-
//# sourceMappingURL=error-
|
|
14986
|
+
//# sourceMappingURL=error-Bqe4QUEz.js.map
|