@nanoforge-dev/editor 0.0.2-beta.8c768e4 → 0.0.2-beta.d1c5eea
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.Chsihp2s.css +1 -0
- package/dist/client/_app/immutable/assets/0.Chsihp2s.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.Chsihp2s.css.gz +0 -0
- package/dist/client/_app/immutable/chunks/BAmaB5-w.js +6 -0
- package/dist/client/_app/immutable/chunks/BAmaB5-w.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BAmaB5-w.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BpsTeBMk2.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/BJ5-01Xz.js +1 -0
- package/dist/client/_app/immutable/chunks/BJ5-01Xz.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BJ5-01Xz.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{D8HnIxQ42.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/{BNmi28p2.js → BQ4F9eo1.js} +1 -1
- package/dist/client/_app/immutable/chunks/BQ4F9eo1.js.br +2 -0
- package/dist/client/_app/immutable/chunks/BQ4F9eo1.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BQs6hrRa.js +293 -0
- package/dist/client/_app/immutable/chunks/BQs6hrRa.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BQs6hrRa.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{Wjj5hwVF2.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/{56adh18U.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/{DJq0R92X.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/{NRUHq-_72.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/{Drjp27p72.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/{VTYQK3v_2.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/{CwcsJxhS2.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/D2HMiRG4.js +1 -0
- package/dist/client/_app/immutable/chunks/D2HMiRG4.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D2HMiRG4.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{CuyfOZTk2.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/{CHHvlOt72.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/{B5BlQANa2.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/{Bfd-bGrZ2.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/{B41NCdmk2.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/{YpKUr6uE2.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/{D8Kk1mwW.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/{DbZ0P7x6.js → DuZNgOMp.js} +1 -1
- package/dist/client/_app/immutable/chunks/DuZNgOMp.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DuZNgOMp.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{CNh34b3X2.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/{Cx3ix-dL2.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/{D5kSEVHd2.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/{DRG11iPc2.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/{CN98h0cI2.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.CiLM39cw.js → app.CmKp5Z74.js} +2 -2
- package/dist/client/_app/immutable/entry/app.CmKp5Z74.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.CmKp5Z74.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.D78MUtxi.js +1 -0
- package/dist/client/_app/immutable/entry/start.D78MUtxi.js.br +0 -0
- package/dist/client/_app/immutable/entry/start.D78MUtxi.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{0.CEpgzEwS.js → 0.DG-EQJuO.js} +1 -1
- package/dist/client/_app/immutable/nodes/0.DG-EQJuO.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.DG-EQJuO.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{1.Sm4J_hJ5.js → 1.3zpJchco.js} +1 -1
- package/dist/client/_app/immutable/nodes/1.3zpJchco.js.br +0 -0
- package/dist/client/_app/immutable/nodes/1.3zpJchco.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{9.C7P5VSNI.js → 11.B2wyJh5I.js} +1 -1
- package/dist/client/_app/immutable/nodes/11.B2wyJh5I.js.br +0 -0
- package/dist/client/_app/immutable/nodes/11.B2wyJh5I.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.CW0zjRC8.js +1 -0
- package/dist/client/_app/immutable/nodes/2.CW0zjRC8.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.CW0zjRC8.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/3.gzy1bOy3.js +6 -0
- package/dist/client/_app/immutable/nodes/3.gzy1bOy3.js.br +0 -0
- package/dist/client/_app/immutable/nodes/3.gzy1bOy3.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-BgMtbrE9.js → 0-CdkGZW74.js} +6 -6
- package/dist/server/chunks/{0-BgMtbrE9.js.map → 0-CdkGZW74.js.map} +1 -1
- package/dist/server/chunks/{1-JuWV7qB2.js → 1-Bu7UAZ5T.js} +6 -6
- package/dist/server/chunks/{1-JuWV7qB2.js.map → 1-Bu7UAZ5T.js.map} +1 -1
- package/dist/server/chunks/{5-DVrv6Zto.js → 10-_cwipoJm.js} +13 -5
- package/dist/server/chunks/10-_cwipoJm.js.map +1 -0
- package/dist/server/chunks/11-Dx5w0MJO.js +22 -0
- package/dist/server/chunks/11-Dx5w0MJO.js.map +1 -0
- package/dist/server/chunks/{2-Dkn4MH5F.js → 2-5F9qcDLt.js} +10 -10
- package/dist/server/chunks/{2-Dkn4MH5F.js.map → 2-5F9qcDLt.js.map} +1 -1
- package/dist/server/chunks/3-Cql-Dmp2.js +22 -0
- package/dist/server/chunks/3-Cql-Dmp2.js.map +1 -0
- package/dist/server/chunks/{3-CcIZ_M60.js → 4-B2tSZCU9.js} +117 -6
- package/dist/server/chunks/4-B2tSZCU9.js.map +1 -0
- package/dist/server/chunks/{8-CRPOubhA.js → 5-D3-J9iUP.js} +13 -5
- package/dist/server/chunks/5-D3-J9iUP.js.map +1 -0
- package/dist/server/chunks/{4-DyArZX6h.js → 6-DDoqG8iB.js} +13 -5
- package/dist/server/chunks/6-DDoqG8iB.js.map +1 -0
- package/dist/server/chunks/7-CjZUt-gt.js +18 -0
- package/dist/server/chunks/7-CjZUt-gt.js.map +1 -0
- package/dist/server/chunks/8-ZgtdnItY.js +91 -0
- package/dist/server/chunks/8-ZgtdnItY.js.map +1 -0
- package/dist/server/chunks/{7-CuJ7XfzT.js → 9-6rlPfdHX.js} +5 -5
- package/dist/server/chunks/{7-CuJ7XfzT.js.map → 9-6rlPfdHX.js.map} +1 -1
- package/dist/server/chunks/{_layout.svelte-CP4jFwsK.js → _layout.svelte-By6MJeec.js} +6 -6
- package/dist/server/chunks/_layout.svelte-By6MJeec.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-7KJNFri5.js → _page.svelte-COg8WlkX.js} +6 -6
- package/dist/server/chunks/_page.svelte-COg8WlkX.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-B3Zfq6_t.js → _page.svelte-Dne41AAE.js} +433 -126
- package/dist/server/chunks/_page.svelte-Dne41AAE.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-BQLzgYrr.js → _page.svelte-E1XZx_gJ.js} +7 -7
- package/dist/server/chunks/_page.svelte-E1XZx_gJ.js.map +1 -0
- package/dist/server/chunks/{_server.ts-BYvWhjnh.js → _server.ts-BwyH-SDr.js} +2 -2
- package/dist/server/chunks/{_server.ts-BYvWhjnh.js.map → _server.ts-BwyH-SDr.js.map} +1 -1
- package/dist/server/chunks/_server.ts-DJwl8--i.js +47 -0
- package/dist/server/chunks/_server.ts-DJwl8--i.js.map +1 -0
- package/dist/server/chunks/_server.ts-kFT5a-9I.js +13 -0
- package/dist/server/chunks/_server.ts-kFT5a-9I.js.map +1 -0
- package/dist/server/chunks/app-DUeJj5RD.js.map +1 -1
- package/dist/server/chunks/chunk-ByNZkrT6.js.map +1 -1
- package/dist/server/chunks/{client-BvtIF74Y.js → client-jrv3ueos.js} +4 -4
- package/dist/server/chunks/client-jrv3ueos.js.map +1 -0
- package/dist/server/chunks/decorate-CQ_JIwqD.js +11 -0
- package/dist/server/chunks/decorate-CQ_JIwqD.js.map +1 -0
- package/dist/server/chunks/{error-D23CGeyL.js → error-Cu-XIb00.js} +406 -191
- package/dist/server/chunks/error-Cu-XIb00.js.map +1 -0
- package/dist/server/chunks/{error.svelte-DZuW0iDP.js → error.svelte-BB7sWwXo.js} +3 -3
- package/dist/server/chunks/error.svelte-BB7sWwXo.js.map +1 -0
- package/dist/server/chunks/{exports-8wSs4fiF.js → exports-D0uQzbjy.js} +4 -4
- package/dist/server/chunks/{exports-8wSs4fiF.js.map → exports-D0uQzbjy.js.map} +1 -1
- package/dist/server/chunks/format-DGOlJxF5.js.map +1 -1
- package/dist/server/chunks/{hooks.server-Dox7llar.js → hooks.server-BTZM3Han.js} +6 -6
- package/dist/server/chunks/hooks.server-BTZM3Han.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-DeYJGjCt.js → index-server-BthNUqCR.js} +2640 -2635
- package/dist/server/chunks/index-server-BthNUqCR.js.map +1 -0
- package/dist/server/chunks/{internal-eM0YTBgj.js → internal-vr3mPczx.js} +2 -2
- package/dist/server/chunks/{internal-eM0YTBgj.js.map → internal-vr3mPczx.js.map} +1 -1
- package/dist/server/chunks/{internal-B77zebhK.js → internal2-BiukHRFA.js} +24 -17
- package/dist/server/chunks/internal2-BiukHRFA.js.map +1 -0
- package/dist/server/chunks/{loader-circle-zqx69BdD.js → loader-circle-C4T0os4K.js} +5 -5
- package/dist/server/chunks/loader-circle-C4T0os4K.js.map +1 -0
- package/dist/server/chunks/{logo-BfI7zmyL.js → logo-dxZl1N-5.js} +4 -4
- package/dist/server/chunks/logo-dxZl1N-5.js.map +1 -0
- package/dist/server/chunks/{project-loader-BkV0zjlj.js → project-loader-D46R4y2F.js} +4 -4
- package/dist/server/chunks/project-loader-D46R4y2F.js.map +1 -0
- package/dist/server/chunks/{request-handler-D-qbwxhh.js → request-handler-DTxrh7_f.js} +191 -117
- package/dist/server/chunks/request-handler-DTxrh7_f.js.map +1 -0
- package/dist/server/chunks/{runtime-CDHWD9vo.js → runtime-26c7QsEi.js} +9 -9
- package/dist/server/chunks/runtime-26c7QsEi.js.map +1 -0
- package/dist/server/chunks/{schemas-ENQuLVBq.js → schemas-nwfCECau.js} +490 -405
- package/dist/server/chunks/schemas-nwfCECau.js.map +1 -0
- package/dist/server/chunks/{session-CmQRz9-0.js → session-By0bbFhg.js} +2 -2
- package/dist/server/chunks/{session-CmQRz9-0.js.map → session-By0bbFhg.js.map} +1 -1
- package/dist/server/chunks/shared-server-Cha0Qlv9.js.map +1 -1
- package/dist/server/chunks/{state-q9lwVQK2.js → state-CviNrLh6.js} +3 -3
- package/dist/server/chunks/state-CviNrLh6.js.map +1 -0
- package/dist/server/index.js +374 -357
- 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 +22 -18
- package/dist/client/_app/immutable/assets/0.CI0wrjoW.css +0 -1
- package/dist/client/_app/immutable/assets/0.CI0wrjoW.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.CI0wrjoW.css.gz +0 -0
- package/dist/client/_app/immutable/chunks/56adh18U.js.br +0 -0
- package/dist/client/_app/immutable/chunks/56adh18U.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/9tBtThMc.js +0 -1
- package/dist/client/_app/immutable/chunks/9tBtThMc.js.br +0 -0
- package/dist/client/_app/immutable/chunks/9tBtThMc.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B41NCdmk2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/B41NCdmk2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B5BlQANa2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/B5BlQANa2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BNmi28p2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BNmi28p2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Bfd-bGrZ2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Bfd-bGrZ2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BpsTeBMk2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BpsTeBMk2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CHHvlOt72.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CHHvlOt72.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CN98h0cI2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CN98h0cI2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CNh34b3X2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CNh34b3X2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CsVJKLJK.js +0 -1
- package/dist/client/_app/immutable/chunks/CsVJKLJK.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CsVJKLJK.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CuyfOZTk2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CuyfOZTk2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CwcsJxhS2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CwcsJxhS2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Cx3ix-dL2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Cx3ix-dL2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/D5kSEVHd2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D5kSEVHd2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/D8HnIxQ42.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D8HnIxQ42.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/D8Kk1mwW.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D8Kk1mwW.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DJq0R92X.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DJq0R92X.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DRG11iPc2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DRG11iPc2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DbZ0P7x6.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DbZ0P7x6.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Drjp27p72.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Drjp27p72.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DuEGqPrO.js +0 -6
- package/dist/client/_app/immutable/chunks/DuEGqPrO.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DuEGqPrO.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/H2okCofJ.js +0 -3
- package/dist/client/_app/immutable/chunks/H2okCofJ.js.br +0 -0
- package/dist/client/_app/immutable/chunks/H2okCofJ.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/NRUHq-_72.js.br +0 -0
- package/dist/client/_app/immutable/chunks/NRUHq-_72.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/UeNcXxK4.js +0 -293
- package/dist/client/_app/immutable/chunks/UeNcXxK4.js.br +0 -0
- package/dist/client/_app/immutable/chunks/UeNcXxK4.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/VTYQK3v_2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/VTYQK3v_2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Wjj5hwVF2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Wjj5hwVF2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/YpKUr6uE2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/YpKUr6uE2.js.gz +0 -0
- package/dist/client/_app/immutable/entry/app.CiLM39cw.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.CiLM39cw.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.CIrA5P2h.js +0 -1
- package/dist/client/_app/immutable/entry/start.CIrA5P2h.js.br +0 -0
- package/dist/client/_app/immutable/entry/start.CIrA5P2h.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/0.CEpgzEwS.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.CEpgzEwS.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/1.Sm4J_hJ5.js.br +0 -0
- package/dist/client/_app/immutable/nodes/1.Sm4J_hJ5.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/10.BcE-uamz.js +0 -6
- package/dist/client/_app/immutable/nodes/10.BcE-uamz.js.br +0 -0
- package/dist/client/_app/immutable/nodes/10.BcE-uamz.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.BGBkNPlf.js +0 -1
- package/dist/client/_app/immutable/nodes/2.BGBkNPlf.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.BGBkNPlf.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/9.C7P5VSNI.js.br +0 -0
- package/dist/client/_app/immutable/nodes/9.C7P5VSNI.js.gz +0 -0
- package/dist/server/chunks/10-x0FGzJF7.js +0 -22
- package/dist/server/chunks/10-x0FGzJF7.js.map +0 -1
- package/dist/server/chunks/3-CcIZ_M60.js.map +0 -1
- package/dist/server/chunks/4-DyArZX6h.js.map +0 -1
- package/dist/server/chunks/5-DVrv6Zto.js.map +0 -1
- package/dist/server/chunks/6-AD0Ee23-.js +0 -65
- package/dist/server/chunks/6-AD0Ee23-.js.map +0 -1
- package/dist/server/chunks/8-CRPOubhA.js.map +0 -1
- package/dist/server/chunks/9-BhWG76gi.js +0 -22
- package/dist/server/chunks/9-BhWG76gi.js.map +0 -1
- package/dist/server/chunks/_layout.svelte-CP4jFwsK.js.map +0 -1
- package/dist/server/chunks/_page.svelte-7KJNFri5.js.map +0 -1
- package/dist/server/chunks/_page.svelte-B3Zfq6_t.js.map +0 -1
- package/dist/server/chunks/_page.svelte-BQLzgYrr.js.map +0 -1
- package/dist/server/chunks/_server.ts-B1t_0LJV.js +0 -19
- package/dist/server/chunks/_server.ts-B1t_0LJV.js.map +0 -1
- package/dist/server/chunks/client-BvtIF74Y.js.map +0 -1
- package/dist/server/chunks/error-D23CGeyL.js.map +0 -1
- package/dist/server/chunks/error.svelte-DZuW0iDP.js.map +0 -1
- package/dist/server/chunks/events-DeYJGjCt.js.map +0 -1
- package/dist/server/chunks/hooks.server-Dox7llar.js.map +0 -1
- package/dist/server/chunks/internal-B77zebhK.js.map +0 -1
- package/dist/server/chunks/loader-circle-zqx69BdD.js.map +0 -1
- package/dist/server/chunks/logo-BfI7zmyL.js.map +0 -1
- package/dist/server/chunks/project-loader-BkV0zjlj.js.map +0 -1
- package/dist/server/chunks/request-handler-D-qbwxhh.js.map +0 -1
- package/dist/server/chunks/runtime-CDHWD9vo.js.map +0 -1
- package/dist/server/chunks/schemas-ENQuLVBq.js.map +0 -1
- package/dist/server/chunks/state-q9lwVQK2.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 "./
|
|
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-BiukHRFA.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-jrv3ueos.js";
|
|
7
|
+
import { A as resolveQueryBoolean, I as timeUntilStale, L as timeoutManager, N as shallowEqualObjects, O as pendingThenable, R as toast, T as notifyManager, _ as getIsRestoringContext, c as SvelteMap, f as createSubscriber, h as focusManager, j as resolveStaleTime, k as replaceData, l as SvelteSet, m as fetchState, n as Loader_circle, p as environmentManager, s as Subscribable, t as Icon, v as getQueryClientContext, w as noop$2, x as isValidTimeout } from "./loader-circle-C4T0os4K.js";
|
|
8
8
|
//#region node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
9
9
|
/**
|
|
10
10
|
* Concatenates two arrays faster than the array spread operator.
|
|
@@ -3420,7 +3420,7 @@ const mergeArrayProperties = (baseObject, mergeObject, key) => {
|
|
|
3420
3420
|
const extendTailwindMerge = (configExtension, ...createConfig) => typeof configExtension === "function" ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
|
|
3421
3421
|
const twMerge = /*#__PURE__*/ createTailwindMerge(getDefaultConfig);
|
|
3422
3422
|
//#endregion
|
|
3423
|
-
//#region node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.6.0_tailwindcss@4.3.
|
|
3423
|
+
//#region node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.6.0_tailwindcss@4.3.1/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js
|
|
3424
3424
|
var SPACE_REGEX = /\s+/g;
|
|
3425
3425
|
var removeExtraSpaces = (str) => {
|
|
3426
3426
|
if (typeof str !== "string" || !str) return str;
|
|
@@ -3508,7 +3508,7 @@ var mergeObjects = (obj1, obj2) => {
|
|
|
3508
3508
|
return result;
|
|
3509
3509
|
};
|
|
3510
3510
|
//#endregion
|
|
3511
|
-
//#region node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.6.0_tailwindcss@4.3.
|
|
3511
|
+
//#region node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.6.0_tailwindcss@4.3.1/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js
|
|
3512
3512
|
var defaultConfig = {
|
|
3513
3513
|
twMerge: true,
|
|
3514
3514
|
twMergeConfig: {}
|
|
@@ -3721,7 +3721,7 @@ var getTailwindVariants = (cn) => {
|
|
|
3721
3721
|
};
|
|
3722
3722
|
};
|
|
3723
3723
|
//#endregion
|
|
3724
|
-
//#region node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.6.0_tailwindcss@4.3.
|
|
3724
|
+
//#region node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.6.0_tailwindcss@4.3.1/node_modules/tailwind-variants/dist/index.js
|
|
3725
3725
|
var createTwMerge = (cachedTwMergeConfig) => {
|
|
3726
3726
|
return isEmptyObject(cachedTwMergeConfig) ? twMerge : extendTailwindMerge({
|
|
3727
3727
|
...cachedTwMergeConfig,
|
|
@@ -4584,6 +4584,11 @@ var BaseRepository = class {
|
|
|
4584
4584
|
return formData;
|
|
4585
4585
|
}
|
|
4586
4586
|
};
|
|
4587
|
+
var ProjectArchiveRepository = class extends BaseRepository {
|
|
4588
|
+
create() {
|
|
4589
|
+
return this.run(`/actions/project/archive?/create`);
|
|
4590
|
+
}
|
|
4591
|
+
};
|
|
4587
4592
|
var ProjectFsRepository = class extends BaseRepository {
|
|
4588
4593
|
readdir(input) {
|
|
4589
4594
|
return this.run(`/actions/project/fs?/readdir`, input);
|
|
@@ -4601,30 +4606,27 @@ var ProjectLoaderRepository = class extends BaseRepository {
|
|
|
4601
4606
|
}
|
|
4602
4607
|
};
|
|
4603
4608
|
var ProjectPackageRepository = class extends BaseRepository {
|
|
4604
|
-
addComponents(input) {
|
|
4605
|
-
return this.run(`/actions/project/package?/add-components`, input);
|
|
4606
|
-
}
|
|
4607
|
-
addSystems(input) {
|
|
4608
|
-
return this.run(`/actions/project/package?/add-systems`, input);
|
|
4609
|
-
}
|
|
4610
4609
|
createComponent(input) {
|
|
4611
4610
|
return this.run(`/actions/project/package?/create-component`, input);
|
|
4612
4611
|
}
|
|
4613
4612
|
createSystem(input) {
|
|
4614
4613
|
return this.run(`/actions/project/package?/create-system`, input);
|
|
4615
4614
|
}
|
|
4616
|
-
getComponentsManifests(input) {
|
|
4617
|
-
return this.run(`/actions/project/package?/get-components-manifests`, input);
|
|
4618
|
-
}
|
|
4619
|
-
getSystemsManifests(input) {
|
|
4620
|
-
return this.run(`/actions/project/package?/get-systems-manifests`, input);
|
|
4621
|
-
}
|
|
4622
4615
|
getComponents() {
|
|
4623
4616
|
return this.run(`/actions/project/package?/get-components`);
|
|
4624
4617
|
}
|
|
4625
4618
|
getSystems() {
|
|
4626
4619
|
return this.run(`/actions/project/package?/get-systems`);
|
|
4627
4620
|
}
|
|
4621
|
+
getAssets() {
|
|
4622
|
+
return this.run(`/actions/project/package?/get-assets`);
|
|
4623
|
+
}
|
|
4624
|
+
installPackages(input) {
|
|
4625
|
+
return this.run(`/actions/project/package?/install-packages`, input);
|
|
4626
|
+
}
|
|
4627
|
+
searchPackages(input) {
|
|
4628
|
+
return this.run(`/actions/project/package?/search-packages`, input);
|
|
4629
|
+
}
|
|
4628
4630
|
};
|
|
4629
4631
|
var ProjectRepository = class extends BaseRepository {
|
|
4630
4632
|
load(input) {
|
|
@@ -4657,6 +4659,7 @@ var ProjectSaveRepository = class extends BaseRepository {
|
|
|
4657
4659
|
var getActionClient = (projectId) => {
|
|
4658
4660
|
const client = new HttpClient("", projectId ? { headers: { [SESSION_PROJECT_HEADER]: projectId } } : {});
|
|
4659
4661
|
return {
|
|
4662
|
+
archive: new ProjectArchiveRepository(client),
|
|
4660
4663
|
fs: new ProjectFsRepository(client),
|
|
4661
4664
|
loader: new ProjectLoaderRepository(client),
|
|
4662
4665
|
package: new ProjectPackageRepository(client),
|
|
@@ -4665,21 +4668,29 @@ var getActionClient = (projectId) => {
|
|
|
4665
4668
|
};
|
|
4666
4669
|
};
|
|
4667
4670
|
var noProjectActions = getActionClient();
|
|
4668
|
-
var
|
|
4671
|
+
var componentTransformer = (component) => ({
|
|
4669
4672
|
id: component.manifest.id,
|
|
4670
4673
|
name: component.manifest.name,
|
|
4671
4674
|
path: component.save.path,
|
|
4672
4675
|
params: component.manifest.params
|
|
4673
|
-
})
|
|
4674
|
-
var
|
|
4676
|
+
});
|
|
4677
|
+
var componentsTransformer = (components) => components.map(componentTransformer);
|
|
4678
|
+
var systemTransformer = (system) => ({
|
|
4675
4679
|
id: system.manifest.id,
|
|
4676
4680
|
name: system.manifest.name,
|
|
4677
4681
|
path: system.save.path
|
|
4678
|
-
})
|
|
4679
|
-
var
|
|
4682
|
+
});
|
|
4683
|
+
var systemsTransformer = (systems) => systems.map(systemTransformer);
|
|
4684
|
+
var assetTransformer = (asset) => ({
|
|
4685
|
+
id: asset.path,
|
|
4686
|
+
path: asset.path
|
|
4687
|
+
});
|
|
4688
|
+
var assetsTransformer = (assets) => assets.map(assetTransformer);
|
|
4689
|
+
var libraryTransformer = (lib) => ({
|
|
4680
4690
|
id: lib.path,
|
|
4681
4691
|
name: lib.name
|
|
4682
|
-
})
|
|
4692
|
+
});
|
|
4693
|
+
var librariesTransformer = (save) => save.libraries.map(libraryTransformer);
|
|
4683
4694
|
var scenesTransformer = (save) => [{
|
|
4684
4695
|
id: "default",
|
|
4685
4696
|
name: "Default Scene",
|
|
@@ -4704,7 +4715,7 @@ var randomString = (nb, { numbers = true, lowers = true, uppers = false, special
|
|
|
4704
4715
|
return [...Array(nb)].map(() => chars[Math.floor(Math.random() * chars.length)]).join("");
|
|
4705
4716
|
};
|
|
4706
4717
|
var resetSubscriptions = (store) => {
|
|
4707
|
-
const subscriptions = get$
|
|
4718
|
+
const subscriptions = get$2(store);
|
|
4708
4719
|
Object.values(subscriptions).forEach((sub) => {
|
|
4709
4720
|
try {
|
|
4710
4721
|
sub?.();
|
|
@@ -4713,7 +4724,7 @@ var resetSubscriptions = (store) => {
|
|
|
4713
4724
|
store.set({});
|
|
4714
4725
|
};
|
|
4715
4726
|
var resetListeners = (store) => {
|
|
4716
|
-
get$
|
|
4727
|
+
get$2(store)?.forEach((sub) => {
|
|
4717
4728
|
try {
|
|
4718
4729
|
sub();
|
|
4719
4730
|
} catch {}
|
|
@@ -4721,7 +4732,7 @@ var resetListeners = (store) => {
|
|
|
4721
4732
|
store.set(null);
|
|
4722
4733
|
};
|
|
4723
4734
|
var resolveStore = (storage, resolvable, defaultValue) => {
|
|
4724
|
-
const content = get$
|
|
4735
|
+
const content = get$2(storage);
|
|
4725
4736
|
if (resolvable in content) return content[resolvable];
|
|
4726
4737
|
content[resolvable] = writable(defaultValue);
|
|
4727
4738
|
storage.set(content);
|
|
@@ -4733,6 +4744,114 @@ var getId = (data, name) => {
|
|
|
4733
4744
|
while (data.find((d) => d.id === id)) id = `${baseId}_${randomString(5)}`;
|
|
4734
4745
|
return id;
|
|
4735
4746
|
};
|
|
4747
|
+
var _storage$15 = writable({});
|
|
4748
|
+
var AssetHandle = class {
|
|
4749
|
+
_manager;
|
|
4750
|
+
_store;
|
|
4751
|
+
id;
|
|
4752
|
+
static reset() {
|
|
4753
|
+
_storage$15.set({});
|
|
4754
|
+
}
|
|
4755
|
+
constructor(manager, asset) {
|
|
4756
|
+
this._manager = manager;
|
|
4757
|
+
this.id = asset.id;
|
|
4758
|
+
this._store = resolveStore(_storage$15, this.id, asset);
|
|
4759
|
+
}
|
|
4760
|
+
get store() {
|
|
4761
|
+
return this._store;
|
|
4762
|
+
}
|
|
4763
|
+
get data() {
|
|
4764
|
+
return get$2(this._store);
|
|
4765
|
+
}
|
|
4766
|
+
update(asset) {
|
|
4767
|
+
this._store.set({
|
|
4768
|
+
...get$2(this._store),
|
|
4769
|
+
...asset
|
|
4770
|
+
});
|
|
4771
|
+
}
|
|
4772
|
+
delete() {
|
|
4773
|
+
return this._manager.delete(this.id);
|
|
4774
|
+
}
|
|
4775
|
+
};
|
|
4776
|
+
var _storage$14 = writable([]);
|
|
4777
|
+
var _subscriptions$7 = writable({});
|
|
4778
|
+
var AssetManager = class {
|
|
4779
|
+
static reset() {
|
|
4780
|
+
_storage$14.set([]);
|
|
4781
|
+
resetSubscriptions(_subscriptions$7);
|
|
4782
|
+
}
|
|
4783
|
+
constructor(assets) {
|
|
4784
|
+
_storage$14.set(assets);
|
|
4785
|
+
}
|
|
4786
|
+
get store() {
|
|
4787
|
+
return _storage$14;
|
|
4788
|
+
}
|
|
4789
|
+
get data() {
|
|
4790
|
+
return get$2(_storage$14);
|
|
4791
|
+
}
|
|
4792
|
+
async createMany(files) {
|
|
4793
|
+
const { fs } = useProject();
|
|
4794
|
+
await Promise.all(files.map(this.create.bind(this)));
|
|
4795
|
+
await this.sync();
|
|
4796
|
+
await (await fs.getDirectory()).readdir(true);
|
|
4797
|
+
}
|
|
4798
|
+
async create(file) {
|
|
4799
|
+
const { fs } = useProject();
|
|
4800
|
+
const assetFile = await (await fs.getDirectory("assets")).getFile(file.name);
|
|
4801
|
+
const stream = await assetFile.createWritable();
|
|
4802
|
+
await file.stream().pipeTo(stream);
|
|
4803
|
+
await assetFile.sync();
|
|
4804
|
+
}
|
|
4805
|
+
add(asset) {
|
|
4806
|
+
this._add(assetTransformer(asset));
|
|
4807
|
+
}
|
|
4808
|
+
async sync() {
|
|
4809
|
+
const { actions } = useProject();
|
|
4810
|
+
const assets = await actions.package.getAssets();
|
|
4811
|
+
_storage$14.set(assetsTransformer(assets));
|
|
4812
|
+
}
|
|
4813
|
+
get(id) {
|
|
4814
|
+
const asset = get$2(_storage$14).find((asset) => asset.id === id);
|
|
4815
|
+
if (!asset) throw new Error(`Asset with id ${id} not found`);
|
|
4816
|
+
const handle = new AssetHandle(this, asset);
|
|
4817
|
+
this._subscribe(id, handle);
|
|
4818
|
+
return handle;
|
|
4819
|
+
}
|
|
4820
|
+
async delete(id) {
|
|
4821
|
+
const assets = get$2(_storage$14);
|
|
4822
|
+
const asset = assets.find((c) => c.id === id);
|
|
4823
|
+
if (!asset) throw new Error(`System not found: ${id}`);
|
|
4824
|
+
_storage$14.set(assets.filter((c) => c.id !== id));
|
|
4825
|
+
const { fs } = useProject();
|
|
4826
|
+
await (await fs.getFile(asset.path)).delete();
|
|
4827
|
+
const subscriptions = get$2(_subscriptions$7);
|
|
4828
|
+
if (subscriptions[id]) {
|
|
4829
|
+
subscriptions[id]();
|
|
4830
|
+
subscriptions[id] = null;
|
|
4831
|
+
_subscriptions$7.set(subscriptions);
|
|
4832
|
+
}
|
|
4833
|
+
}
|
|
4834
|
+
_add(asset) {
|
|
4835
|
+
const assets = get$2(_storage$14);
|
|
4836
|
+
assets.push(asset);
|
|
4837
|
+
_storage$14.set(assets);
|
|
4838
|
+
}
|
|
4839
|
+
_subscribe(id, handle) {
|
|
4840
|
+
setTimeout(() => {
|
|
4841
|
+
const subscriptions = get$2(_subscriptions$7);
|
|
4842
|
+
if (subscriptions[id]) return;
|
|
4843
|
+
subscriptions[id] = handle.store.subscribe((asset) => this._update(id, asset));
|
|
4844
|
+
_subscriptions$7.set(subscriptions);
|
|
4845
|
+
}, 0);
|
|
4846
|
+
}
|
|
4847
|
+
_update(id, asset) {
|
|
4848
|
+
const assets = get$2(_storage$14);
|
|
4849
|
+
const index = assets.findIndex((s) => s.id === id);
|
|
4850
|
+
if (index === -1) return;
|
|
4851
|
+
assets[index] = asset;
|
|
4852
|
+
_storage$14.set(assets);
|
|
4853
|
+
}
|
|
4854
|
+
};
|
|
4736
4855
|
var _storage$13 = writable({});
|
|
4737
4856
|
var ComponentHandle = class {
|
|
4738
4857
|
_manager;
|
|
@@ -4750,16 +4869,16 @@ var ComponentHandle = class {
|
|
|
4750
4869
|
return this._store;
|
|
4751
4870
|
}
|
|
4752
4871
|
get data() {
|
|
4753
|
-
return get$
|
|
4872
|
+
return get$2(this._store);
|
|
4754
4873
|
}
|
|
4755
4874
|
update(component) {
|
|
4756
4875
|
this._store.set({
|
|
4757
|
-
...get$
|
|
4876
|
+
...get$2(this._store),
|
|
4758
4877
|
...component
|
|
4759
4878
|
});
|
|
4760
4879
|
}
|
|
4761
4880
|
delete() {
|
|
4762
|
-
this._manager.delete(this.id);
|
|
4881
|
+
return this._manager.delete(this.id);
|
|
4763
4882
|
}
|
|
4764
4883
|
};
|
|
4765
4884
|
var _storage$12 = writable([]);
|
|
@@ -4776,46 +4895,58 @@ var ComponentManager = class {
|
|
|
4776
4895
|
return _storage$12;
|
|
4777
4896
|
}
|
|
4778
4897
|
get data() {
|
|
4779
|
-
return get$
|
|
4898
|
+
return get$2(_storage$12);
|
|
4899
|
+
}
|
|
4900
|
+
async create(name) {
|
|
4901
|
+
const { actions, fs } = useProject();
|
|
4902
|
+
const component = await actions.package.createComponent({ componentName: name });
|
|
4903
|
+
this._add(componentTransformer(component));
|
|
4904
|
+
await (await fs.getDirectory()).readdir(true);
|
|
4780
4905
|
}
|
|
4781
4906
|
add(component) {
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
});
|
|
4789
|
-
_storage$12.set(components);
|
|
4790
|
-
return id;
|
|
4907
|
+
this._add(componentTransformer(component));
|
|
4908
|
+
}
|
|
4909
|
+
async sync() {
|
|
4910
|
+
const { actions } = useProject();
|
|
4911
|
+
const components = await actions.package.getComponents();
|
|
4912
|
+
_storage$12.set(componentsTransformer(components));
|
|
4791
4913
|
}
|
|
4792
4914
|
get(id) {
|
|
4793
|
-
const component = get$
|
|
4915
|
+
const component = get$2(_storage$12).find((component) => component.id === id);
|
|
4794
4916
|
if (!component) throw new Error(`Component with id ${id} not found`);
|
|
4795
4917
|
const handle = new ComponentHandle(this, component);
|
|
4796
4918
|
this._subscribe(id, handle);
|
|
4797
4919
|
return handle;
|
|
4798
4920
|
}
|
|
4799
|
-
delete(id) {
|
|
4800
|
-
const components = get$
|
|
4801
|
-
|
|
4802
|
-
|
|
4921
|
+
async delete(id) {
|
|
4922
|
+
const components = get$2(_storage$12);
|
|
4923
|
+
const component = components.find((c) => c.id === id);
|
|
4924
|
+
if (!component) throw new Error(`System not found: ${id}`);
|
|
4925
|
+
_storage$12.set(components.filter((c) => c.id !== id));
|
|
4926
|
+
const { fs } = useProject();
|
|
4927
|
+
await (await fs.getFile(component.path)).delete();
|
|
4928
|
+
const subscriptions = get$2(_subscriptions$6);
|
|
4803
4929
|
if (subscriptions[id]) {
|
|
4804
4930
|
subscriptions[id]();
|
|
4805
4931
|
subscriptions[id] = null;
|
|
4806
4932
|
_subscriptions$6.set(subscriptions);
|
|
4807
4933
|
}
|
|
4808
4934
|
}
|
|
4935
|
+
_add(component) {
|
|
4936
|
+
const components = get$2(_storage$12);
|
|
4937
|
+
components.push(component);
|
|
4938
|
+
_storage$12.set(components);
|
|
4939
|
+
}
|
|
4809
4940
|
_subscribe(id, handle) {
|
|
4810
4941
|
setTimeout(() => {
|
|
4811
|
-
const subscriptions = get$
|
|
4942
|
+
const subscriptions = get$2(_subscriptions$6);
|
|
4812
4943
|
if (subscriptions[id]) return;
|
|
4813
4944
|
subscriptions[id] = handle.store.subscribe((component) => this._update(id, component));
|
|
4814
4945
|
_subscriptions$6.set(subscriptions);
|
|
4815
4946
|
}, 0);
|
|
4816
4947
|
}
|
|
4817
4948
|
_update(id, component) {
|
|
4818
|
-
const components = get$
|
|
4949
|
+
const components = get$2(_storage$12);
|
|
4819
4950
|
const index = components.findIndex((s) => s.id === id);
|
|
4820
4951
|
if (index === -1) return;
|
|
4821
4952
|
components[index] = component;
|
|
@@ -4839,11 +4970,11 @@ var LibraryHandle = class {
|
|
|
4839
4970
|
return this._store;
|
|
4840
4971
|
}
|
|
4841
4972
|
get data() {
|
|
4842
|
-
return get$
|
|
4973
|
+
return get$2(this._store);
|
|
4843
4974
|
}
|
|
4844
4975
|
update(library) {
|
|
4845
4976
|
this._store.set({
|
|
4846
|
-
...get$
|
|
4977
|
+
...get$2(this._store),
|
|
4847
4978
|
...library
|
|
4848
4979
|
});
|
|
4849
4980
|
}
|
|
@@ -4865,10 +4996,10 @@ var LibraryManager = class {
|
|
|
4865
4996
|
return _storage$10;
|
|
4866
4997
|
}
|
|
4867
4998
|
get data() {
|
|
4868
|
-
return get$
|
|
4999
|
+
return get$2(_storage$10);
|
|
4869
5000
|
}
|
|
4870
5001
|
add(library) {
|
|
4871
|
-
const libraries = get$
|
|
5002
|
+
const libraries = get$2(_storage$10);
|
|
4872
5003
|
libraries.push({
|
|
4873
5004
|
...library,
|
|
4874
5005
|
id: library.name
|
|
@@ -4877,16 +5008,16 @@ var LibraryManager = class {
|
|
|
4877
5008
|
return library.name;
|
|
4878
5009
|
}
|
|
4879
5010
|
get(id) {
|
|
4880
|
-
const library = get$
|
|
5011
|
+
const library = get$2(_storage$10).find((library) => library.id === id);
|
|
4881
5012
|
if (!library) throw new Error(`Library with id ${id} not found`);
|
|
4882
5013
|
const handle = new LibraryHandle(this, library);
|
|
4883
5014
|
this._subscribe(id, handle);
|
|
4884
5015
|
return handle;
|
|
4885
5016
|
}
|
|
4886
5017
|
delete(id) {
|
|
4887
|
-
const libraries = get$
|
|
5018
|
+
const libraries = get$2(_storage$10);
|
|
4888
5019
|
_storage$10.set(libraries.filter((library) => library.id !== id));
|
|
4889
|
-
const subscriptions = get$
|
|
5020
|
+
const subscriptions = get$2(_subscriptions$5);
|
|
4890
5021
|
if (subscriptions[id]) {
|
|
4891
5022
|
subscriptions[id]();
|
|
4892
5023
|
subscriptions[id] = null;
|
|
@@ -4895,14 +5026,14 @@ var LibraryManager = class {
|
|
|
4895
5026
|
}
|
|
4896
5027
|
_subscribe(id, handle) {
|
|
4897
5028
|
setTimeout(() => {
|
|
4898
|
-
const subscriptions = get$
|
|
5029
|
+
const subscriptions = get$2(_subscriptions$5);
|
|
4899
5030
|
if (subscriptions[id]) return;
|
|
4900
5031
|
subscriptions[id] = handle.store.subscribe((library) => this._update(id, library));
|
|
4901
5032
|
_subscriptions$5.set(subscriptions);
|
|
4902
5033
|
}, 0);
|
|
4903
5034
|
}
|
|
4904
5035
|
_update(id, library) {
|
|
4905
|
-
const libraries = get$
|
|
5036
|
+
const libraries = get$2(_storage$10);
|
|
4906
5037
|
const index = libraries.findIndex((s) => s.id === id);
|
|
4907
5038
|
if (index === -1) return;
|
|
4908
5039
|
libraries[index] = library;
|
|
@@ -4940,7 +5071,7 @@ var ComponentParamHandle = class {
|
|
|
4940
5071
|
this.manager.delete(this.id);
|
|
4941
5072
|
}
|
|
4942
5073
|
_listen() {
|
|
4943
|
-
if (get$
|
|
5074
|
+
if (get$2(_listener$5)) return;
|
|
4944
5075
|
const unsub = this.manager.component.store.subscribe((component) => {
|
|
4945
5076
|
const newParam = component.params.find((param) => param.name === this.id);
|
|
4946
5077
|
if (!newParam) return;
|
|
@@ -4957,6 +5088,7 @@ var ComponentParamManager = class {
|
|
|
4957
5088
|
component;
|
|
4958
5089
|
_store;
|
|
4959
5090
|
_valuesStore;
|
|
5091
|
+
_storageResolvable;
|
|
4960
5092
|
static reset() {
|
|
4961
5093
|
_storage$8.set({});
|
|
4962
5094
|
_valueStorage.set({});
|
|
@@ -4965,9 +5097,9 @@ var ComponentParamManager = class {
|
|
|
4965
5097
|
}
|
|
4966
5098
|
constructor(component, params) {
|
|
4967
5099
|
this.component = component;
|
|
4968
|
-
|
|
4969
|
-
this._store = resolveStore(_storage$8,
|
|
4970
|
-
this._valuesStore = resolveStore(_valueStorage,
|
|
5100
|
+
this._storageResolvable = `${this.component.manager.entity.manager.scene.id}/${this.component.manager.entity.id}/${this.component.id}`;
|
|
5101
|
+
this._store = resolveStore(_storage$8, this._storageResolvable, get$2(component.store).params);
|
|
5102
|
+
this._valuesStore = resolveStore(_valueStorage, this._storageResolvable, params);
|
|
4971
5103
|
this._listen();
|
|
4972
5104
|
}
|
|
4973
5105
|
get store() {
|
|
@@ -4977,28 +5109,29 @@ var ComponentParamManager = class {
|
|
|
4977
5109
|
return this._valuesStore;
|
|
4978
5110
|
}
|
|
4979
5111
|
get(id) {
|
|
4980
|
-
const param = get$
|
|
5112
|
+
const param = get$2(this._store).find((param) => param.name === id);
|
|
4981
5113
|
if (!param) throw new Error(`Param with id ${id} not found`);
|
|
4982
|
-
const value = get$
|
|
5114
|
+
const value = get$2(this._valuesStore)[id];
|
|
4983
5115
|
const handle = new ComponentParamHandle(this, param, value);
|
|
4984
5116
|
this._subscribe(id, handle);
|
|
4985
5117
|
return handle;
|
|
4986
5118
|
}
|
|
4987
5119
|
delete(id) {
|
|
4988
|
-
const params = get$
|
|
5120
|
+
const params = get$2(this._store);
|
|
4989
5121
|
this._store.set(params.map((param) => param.name === id ? {
|
|
4990
5122
|
...param,
|
|
4991
5123
|
value: void 0
|
|
4992
5124
|
} : param));
|
|
4993
|
-
const
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
subscriptions[
|
|
5125
|
+
const fullId = `${this._storageResolvable}/${id}`;
|
|
5126
|
+
const subscriptions = get$2(_subscriptions$4);
|
|
5127
|
+
if (subscriptions[fullId]) {
|
|
5128
|
+
subscriptions[fullId]();
|
|
5129
|
+
subscriptions[fullId] = null;
|
|
4997
5130
|
_subscriptions$4.set(subscriptions);
|
|
4998
5131
|
}
|
|
4999
5132
|
}
|
|
5000
5133
|
_listen() {
|
|
5001
|
-
if (get$
|
|
5134
|
+
if (get$2(_listener$4)) return;
|
|
5002
5135
|
const unsub = this.component.store.subscribe((component) => {
|
|
5003
5136
|
this._store.set(component.params);
|
|
5004
5137
|
});
|
|
@@ -5006,14 +5139,15 @@ var ComponentParamManager = class {
|
|
|
5006
5139
|
}
|
|
5007
5140
|
_subscribe(id, handle) {
|
|
5008
5141
|
setTimeout(() => {
|
|
5009
|
-
const
|
|
5010
|
-
|
|
5011
|
-
subscriptions[
|
|
5142
|
+
const fullId = `${this._storageResolvable}/${id}`;
|
|
5143
|
+
const subscriptions = get$2(_subscriptions$4);
|
|
5144
|
+
if (subscriptions[fullId]) return;
|
|
5145
|
+
subscriptions[fullId] = handle.value.subscribe((param) => this._update(id, param));
|
|
5012
5146
|
_subscriptions$4.set(subscriptions);
|
|
5013
5147
|
}, 0);
|
|
5014
5148
|
}
|
|
5015
5149
|
_update(id, value) {
|
|
5016
|
-
const params = get$
|
|
5150
|
+
const params = get$2(this._valuesStore);
|
|
5017
5151
|
params[id] = value;
|
|
5018
5152
|
this._valuesStore.set(params);
|
|
5019
5153
|
}
|
|
@@ -5033,7 +5167,7 @@ var EntityComponentHandle = class {
|
|
|
5033
5167
|
return this._store;
|
|
5034
5168
|
}
|
|
5035
5169
|
get data() {
|
|
5036
|
-
return get$
|
|
5170
|
+
return get$2(this._store);
|
|
5037
5171
|
}
|
|
5038
5172
|
get params() {
|
|
5039
5173
|
return this._params;
|
|
@@ -5048,6 +5182,7 @@ var _listener$3 = writable();
|
|
|
5048
5182
|
var EntityComponentManager = class {
|
|
5049
5183
|
entity;
|
|
5050
5184
|
_store;
|
|
5185
|
+
_storageResolvable;
|
|
5051
5186
|
static reset() {
|
|
5052
5187
|
_storage$7.set({});
|
|
5053
5188
|
resetSubscriptions(_subscriptions$3);
|
|
@@ -5055,47 +5190,48 @@ var EntityComponentManager = class {
|
|
|
5055
5190
|
}
|
|
5056
5191
|
constructor(entity, components) {
|
|
5057
5192
|
this.entity = entity;
|
|
5058
|
-
|
|
5059
|
-
this._store = resolveStore(_storage$7,
|
|
5193
|
+
this._storageResolvable = `${this.entity.manager.scene.id}/${this.entity.id}`;
|
|
5194
|
+
this._store = resolveStore(_storage$7, this._storageResolvable, components);
|
|
5060
5195
|
this._listen();
|
|
5061
5196
|
}
|
|
5062
5197
|
get store() {
|
|
5063
5198
|
return this._store;
|
|
5064
5199
|
}
|
|
5065
5200
|
get data() {
|
|
5066
|
-
return get$
|
|
5201
|
+
return get$2(this._store);
|
|
5067
5202
|
}
|
|
5068
5203
|
add(component) {
|
|
5069
|
-
const components = get$
|
|
5204
|
+
const components = get$2(this._store);
|
|
5070
5205
|
const manifest = this.entity.manager.scene.manager.ecs.components.get(component).data;
|
|
5071
5206
|
components[component] = { ...Object.fromEntries(manifest.params.filter((param) => param.default).map((param) => [param.name, param.default])) };
|
|
5072
5207
|
this._store.set(components);
|
|
5073
5208
|
}
|
|
5074
5209
|
get(id) {
|
|
5075
|
-
const params = get$
|
|
5210
|
+
const params = get$2(this._store)[id];
|
|
5076
5211
|
if (!params) throw new Error(`Component with id ${id} not found`);
|
|
5077
5212
|
const handle = new EntityComponentHandle(this, id, params);
|
|
5078
5213
|
this._subscribe(id, handle);
|
|
5079
5214
|
return handle;
|
|
5080
5215
|
}
|
|
5081
5216
|
delete(id) {
|
|
5082
|
-
const components = get$
|
|
5217
|
+
const components = get$2(this._store);
|
|
5083
5218
|
const newComponents = {};
|
|
5084
5219
|
Object.entries(components).forEach(([key, params]) => {
|
|
5085
5220
|
if (key !== id) newComponents[key] = params;
|
|
5086
5221
|
});
|
|
5087
5222
|
this._store.set(newComponents);
|
|
5088
|
-
const
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
subscriptions[
|
|
5223
|
+
const fullId = `${this._storageResolvable}/${id}`;
|
|
5224
|
+
const subscriptions = get$2(_subscriptions$3);
|
|
5225
|
+
if (subscriptions[fullId]) {
|
|
5226
|
+
subscriptions[fullId]();
|
|
5227
|
+
subscriptions[fullId] = null;
|
|
5092
5228
|
_subscriptions$3.set(subscriptions);
|
|
5093
5229
|
}
|
|
5094
5230
|
}
|
|
5095
5231
|
_listen() {
|
|
5096
|
-
if (get$
|
|
5232
|
+
if (get$2(_listener$3)) return;
|
|
5097
5233
|
const unsub = this.entity.manager.scene.manager.ecs.components.store.subscribe((components) => {
|
|
5098
|
-
const entityComponents = get$
|
|
5234
|
+
const entityComponents = get$2(this._store);
|
|
5099
5235
|
const newComponents = {};
|
|
5100
5236
|
Object.entries(entityComponents).forEach(([key, params]) => {
|
|
5101
5237
|
if (components.find((s) => s.id === key)) newComponents[key] = params;
|
|
@@ -5106,14 +5242,15 @@ var EntityComponentManager = class {
|
|
|
5106
5242
|
}
|
|
5107
5243
|
_subscribe(id, handle) {
|
|
5108
5244
|
setTimeout(() => {
|
|
5109
|
-
const
|
|
5110
|
-
|
|
5111
|
-
subscriptions[
|
|
5245
|
+
const fullId = `${this._storageResolvable}/${id}`;
|
|
5246
|
+
const subscriptions = get$2(_subscriptions$3);
|
|
5247
|
+
if (subscriptions[fullId]) return;
|
|
5248
|
+
subscriptions[fullId] = handle.params.values.subscribe((params) => this._update(id, params));
|
|
5112
5249
|
_subscriptions$3.set(subscriptions);
|
|
5113
5250
|
}, 0);
|
|
5114
5251
|
}
|
|
5115
5252
|
_update(id, params) {
|
|
5116
|
-
const component = get$
|
|
5253
|
+
const component = get$2(this._store);
|
|
5117
5254
|
component[id] = params;
|
|
5118
5255
|
this._store.set(component);
|
|
5119
5256
|
}
|
|
@@ -5140,14 +5277,14 @@ var SceneEntityHandle = class {
|
|
|
5140
5277
|
return this._store;
|
|
5141
5278
|
}
|
|
5142
5279
|
get data() {
|
|
5143
|
-
return get$
|
|
5280
|
+
return get$2(this._store);
|
|
5144
5281
|
}
|
|
5145
5282
|
get components() {
|
|
5146
5283
|
return this._components;
|
|
5147
5284
|
}
|
|
5148
5285
|
update(entity) {
|
|
5149
5286
|
this._store.set({
|
|
5150
|
-
...get$
|
|
5287
|
+
...get$2(this._store),
|
|
5151
5288
|
...entity
|
|
5152
5289
|
});
|
|
5153
5290
|
}
|
|
@@ -5158,9 +5295,9 @@ var SceneEntityHandle = class {
|
|
|
5158
5295
|
this.manager.selected = this;
|
|
5159
5296
|
}
|
|
5160
5297
|
_listen() {
|
|
5161
|
-
if (get$
|
|
5298
|
+
if (get$2(_listener$2)) return;
|
|
5162
5299
|
const unsub = this._components.store.subscribe((components) => {
|
|
5163
|
-
const entity = get$
|
|
5300
|
+
const entity = get$2(this._store);
|
|
5164
5301
|
entity.components = components;
|
|
5165
5302
|
this._store.set(entity);
|
|
5166
5303
|
});
|
|
@@ -5185,10 +5322,10 @@ var SceneEntityManager = class {
|
|
|
5185
5322
|
return this._store;
|
|
5186
5323
|
}
|
|
5187
5324
|
get data() {
|
|
5188
|
-
return get$
|
|
5325
|
+
return get$2(this._store);
|
|
5189
5326
|
}
|
|
5190
5327
|
get selectedData() {
|
|
5191
|
-
return get$
|
|
5328
|
+
return get$2(selectedEntity);
|
|
5192
5329
|
}
|
|
5193
5330
|
get selected() {
|
|
5194
5331
|
return selectedEntity;
|
|
@@ -5197,7 +5334,7 @@ var SceneEntityManager = class {
|
|
|
5197
5334
|
selectedEntity.set(entity);
|
|
5198
5335
|
}
|
|
5199
5336
|
add(entity) {
|
|
5200
|
-
const entities = get$
|
|
5337
|
+
const entities = get$2(this._store);
|
|
5201
5338
|
const id = getId(this.data, entity.name);
|
|
5202
5339
|
entities.push({
|
|
5203
5340
|
...entity,
|
|
@@ -5207,33 +5344,35 @@ var SceneEntityManager = class {
|
|
|
5207
5344
|
return id;
|
|
5208
5345
|
}
|
|
5209
5346
|
get(id) {
|
|
5210
|
-
const entity = get$
|
|
5347
|
+
const entity = get$2(this._store).find((entity) => entity.id === id);
|
|
5211
5348
|
if (!entity) throw new Error(`Entity with id ${id} not found`);
|
|
5212
5349
|
const handle = new SceneEntityHandle(this, entity);
|
|
5213
5350
|
this._subscribe(id, handle);
|
|
5214
5351
|
return handle;
|
|
5215
5352
|
}
|
|
5216
5353
|
delete(id) {
|
|
5217
|
-
const entities = get$
|
|
5354
|
+
const entities = get$2(this._store);
|
|
5218
5355
|
this._store.set(entities.filter((entity) => entity.id !== id));
|
|
5219
|
-
const
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
subscriptions[
|
|
5356
|
+
const fullId = `${this.scene.id}/${id}`;
|
|
5357
|
+
const subscriptions = get$2(_subscriptions$2);
|
|
5358
|
+
if (subscriptions[fullId]) {
|
|
5359
|
+
subscriptions[fullId]();
|
|
5360
|
+
subscriptions[fullId] = null;
|
|
5223
5361
|
_subscriptions$2.set(subscriptions);
|
|
5224
5362
|
}
|
|
5225
5363
|
if (this.selectedData?.id === id) this.selected = void 0;
|
|
5226
5364
|
}
|
|
5227
5365
|
_subscribe(id, handle) {
|
|
5228
5366
|
setTimeout(() => {
|
|
5229
|
-
const
|
|
5230
|
-
|
|
5231
|
-
subscriptions[
|
|
5367
|
+
const fullId = `${this.scene.id}/${id}`;
|
|
5368
|
+
const subscriptions = get$2(_subscriptions$2);
|
|
5369
|
+
if (subscriptions[fullId]) return;
|
|
5370
|
+
subscriptions[fullId] = handle.store.subscribe((entity) => this._update(id, entity));
|
|
5232
5371
|
_subscriptions$2.set(subscriptions);
|
|
5233
5372
|
}, 0);
|
|
5234
5373
|
}
|
|
5235
5374
|
_update(id, entity) {
|
|
5236
|
-
const entities = get$
|
|
5375
|
+
const entities = get$2(this._store);
|
|
5237
5376
|
const index = entities.findIndex((s) => s.id === id);
|
|
5238
5377
|
if (index === -1) return;
|
|
5239
5378
|
entities[index] = entity;
|
|
@@ -5253,7 +5392,7 @@ var SceneSystemHandle = class {
|
|
|
5253
5392
|
return this._store;
|
|
5254
5393
|
}
|
|
5255
5394
|
get data() {
|
|
5256
|
-
return get$
|
|
5395
|
+
return get$2(this._store);
|
|
5257
5396
|
}
|
|
5258
5397
|
delete() {
|
|
5259
5398
|
this.manager.delete(this.id);
|
|
@@ -5277,26 +5416,26 @@ var SceneSystemManager = class {
|
|
|
5277
5416
|
return this._store;
|
|
5278
5417
|
}
|
|
5279
5418
|
get data() {
|
|
5280
|
-
return get$
|
|
5419
|
+
return get$2(this._store);
|
|
5281
5420
|
}
|
|
5282
5421
|
add(system) {
|
|
5283
|
-
const systems = get$
|
|
5422
|
+
const systems = get$2(this._store);
|
|
5284
5423
|
systems.push(system);
|
|
5285
5424
|
this._store.set(systems);
|
|
5286
5425
|
}
|
|
5287
5426
|
get(id) {
|
|
5288
|
-
const system = get$
|
|
5427
|
+
const system = get$2(this._store).find((system) => system === id);
|
|
5289
5428
|
if (!system) throw new Error(`System with id ${id} not found`);
|
|
5290
5429
|
return new SceneSystemHandle(this, system);
|
|
5291
5430
|
}
|
|
5292
5431
|
delete(id) {
|
|
5293
|
-
const systems = get$
|
|
5432
|
+
const systems = get$2(this._store);
|
|
5294
5433
|
this._store.set(systems.filter((system) => system !== id));
|
|
5295
5434
|
}
|
|
5296
5435
|
_listen() {
|
|
5297
|
-
if (get$
|
|
5436
|
+
if (get$2(_listener$1)) return;
|
|
5298
5437
|
const unsub = this.scene.manager.ecs.systems.store.subscribe((systems) => {
|
|
5299
|
-
const sceneSystems = get$
|
|
5438
|
+
const sceneSystems = get$2(this._store);
|
|
5300
5439
|
sceneSystems.filter((system) => systems.find((s) => s.id === system));
|
|
5301
5440
|
this._store.set(sceneSystems);
|
|
5302
5441
|
});
|
|
@@ -5327,7 +5466,7 @@ var SceneHandle = class {
|
|
|
5327
5466
|
return this._store;
|
|
5328
5467
|
}
|
|
5329
5468
|
get data() {
|
|
5330
|
-
return get$
|
|
5469
|
+
return get$2(this._store);
|
|
5331
5470
|
}
|
|
5332
5471
|
get entities() {
|
|
5333
5472
|
return this._entities;
|
|
@@ -5337,7 +5476,7 @@ var SceneHandle = class {
|
|
|
5337
5476
|
}
|
|
5338
5477
|
update(scene) {
|
|
5339
5478
|
this._store.set({
|
|
5340
|
-
...get$
|
|
5479
|
+
...get$2(this._store),
|
|
5341
5480
|
...scene
|
|
5342
5481
|
});
|
|
5343
5482
|
}
|
|
@@ -5351,13 +5490,13 @@ var SceneHandle = class {
|
|
|
5351
5490
|
this.manager.default = this.id;
|
|
5352
5491
|
}
|
|
5353
5492
|
_listen() {
|
|
5354
|
-
if (get$
|
|
5493
|
+
if (get$2(_listener)) return;
|
|
5355
5494
|
const unsub = [this._entities.store.subscribe((entities) => {
|
|
5356
|
-
const scene = get$
|
|
5495
|
+
const scene = get$2(this._store);
|
|
5357
5496
|
scene.entities = entities;
|
|
5358
5497
|
this._store.set(scene);
|
|
5359
5498
|
}), this._systems.store.subscribe((systems) => {
|
|
5360
|
-
const scene = get$
|
|
5499
|
+
const scene = get$2(this._store);
|
|
5361
5500
|
scene.systems = systems;
|
|
5362
5501
|
this._store.set(scene);
|
|
5363
5502
|
})];
|
|
@@ -5391,10 +5530,10 @@ var SceneManager = class {
|
|
|
5391
5530
|
return _storage$2;
|
|
5392
5531
|
}
|
|
5393
5532
|
get data() {
|
|
5394
|
-
return get$
|
|
5533
|
+
return get$2(_storage$2);
|
|
5395
5534
|
}
|
|
5396
5535
|
get activeData() {
|
|
5397
|
-
return get$
|
|
5536
|
+
return get$2(_activeSceneStorage);
|
|
5398
5537
|
}
|
|
5399
5538
|
get active() {
|
|
5400
5539
|
return _activeSceneStorage;
|
|
@@ -5403,7 +5542,7 @@ var SceneManager = class {
|
|
|
5403
5542
|
_activeSceneStorage.set(handle);
|
|
5404
5543
|
}
|
|
5405
5544
|
get defaultData() {
|
|
5406
|
-
return get$
|
|
5545
|
+
return get$2(_defaultSceneStorage);
|
|
5407
5546
|
}
|
|
5408
5547
|
get default() {
|
|
5409
5548
|
return _defaultSceneStorage;
|
|
@@ -5412,7 +5551,7 @@ var SceneManager = class {
|
|
|
5412
5551
|
_defaultSceneStorage.set(handle);
|
|
5413
5552
|
}
|
|
5414
5553
|
get rootScenes() {
|
|
5415
|
-
return get$
|
|
5554
|
+
return get$2(_rootScenesStorage);
|
|
5416
5555
|
}
|
|
5417
5556
|
get rootScenesStore() {
|
|
5418
5557
|
return _rootScenesStorage;
|
|
@@ -5421,7 +5560,7 @@ var SceneManager = class {
|
|
|
5421
5560
|
_rootScenesStorage.set(Array.from(new Set(scenes)));
|
|
5422
5561
|
}
|
|
5423
5562
|
add(scene) {
|
|
5424
|
-
const scenes = get$
|
|
5563
|
+
const scenes = get$2(_storage$2);
|
|
5425
5564
|
const id = getId(this.data, scene.name);
|
|
5426
5565
|
scenes.push({
|
|
5427
5566
|
...scene,
|
|
@@ -5431,16 +5570,16 @@ var SceneManager = class {
|
|
|
5431
5570
|
return id;
|
|
5432
5571
|
}
|
|
5433
5572
|
get(id) {
|
|
5434
|
-
const scene = get$
|
|
5573
|
+
const scene = get$2(_storage$2).find((scene) => scene.id === id);
|
|
5435
5574
|
if (!scene) throw new Error(`Scene with id ${id} not found`);
|
|
5436
5575
|
const handle = new SceneHandle(this, scene);
|
|
5437
5576
|
this._subscribe(id, handle);
|
|
5438
5577
|
return handle;
|
|
5439
5578
|
}
|
|
5440
5579
|
delete(id) {
|
|
5441
|
-
const scenes = get$
|
|
5580
|
+
const scenes = get$2(_storage$2);
|
|
5442
5581
|
_storage$2.set(scenes.filter((scene) => scene.id !== id));
|
|
5443
|
-
const subscriptions = get$
|
|
5582
|
+
const subscriptions = get$2(_subscriptions$1);
|
|
5444
5583
|
if (subscriptions[id]) {
|
|
5445
5584
|
subscriptions[id]();
|
|
5446
5585
|
subscriptions[id] = null;
|
|
@@ -5452,14 +5591,14 @@ var SceneManager = class {
|
|
|
5452
5591
|
}
|
|
5453
5592
|
_subscribe(id, handle) {
|
|
5454
5593
|
setTimeout(() => {
|
|
5455
|
-
const subscriptions = get$
|
|
5594
|
+
const subscriptions = get$2(_subscriptions$1);
|
|
5456
5595
|
if (subscriptions[id]) return;
|
|
5457
5596
|
subscriptions[id] = handle.store.subscribe((scene) => this._update(id, scene));
|
|
5458
5597
|
_subscriptions$1.set(subscriptions);
|
|
5459
5598
|
}, 0);
|
|
5460
5599
|
}
|
|
5461
5600
|
_update(id, scene) {
|
|
5462
|
-
const scenes = get$
|
|
5601
|
+
const scenes = get$2(_storage$2);
|
|
5463
5602
|
const index = scenes.findIndex((s) => s.id === id);
|
|
5464
5603
|
if (index === -1) return;
|
|
5465
5604
|
scenes[index] = scene;
|
|
@@ -5483,16 +5622,16 @@ var SystemHandle = class {
|
|
|
5483
5622
|
return this._store;
|
|
5484
5623
|
}
|
|
5485
5624
|
get data() {
|
|
5486
|
-
return get$
|
|
5625
|
+
return get$2(this._store);
|
|
5487
5626
|
}
|
|
5488
5627
|
update(system) {
|
|
5489
5628
|
this._store.set({
|
|
5490
|
-
...get$
|
|
5629
|
+
...get$2(this._store),
|
|
5491
5630
|
...system
|
|
5492
5631
|
});
|
|
5493
5632
|
}
|
|
5494
5633
|
delete() {
|
|
5495
|
-
this._manager.delete(this.id);
|
|
5634
|
+
return this._manager.delete(this.id);
|
|
5496
5635
|
}
|
|
5497
5636
|
};
|
|
5498
5637
|
var _storage = writable([]);
|
|
@@ -5509,46 +5648,58 @@ var SystemManager = class {
|
|
|
5509
5648
|
return _storage;
|
|
5510
5649
|
}
|
|
5511
5650
|
get data() {
|
|
5512
|
-
return get$
|
|
5651
|
+
return get$2(_storage);
|
|
5652
|
+
}
|
|
5653
|
+
async create(name) {
|
|
5654
|
+
const { actions, fs } = useProject();
|
|
5655
|
+
const system = await actions.package.createSystem({ systemName: name });
|
|
5656
|
+
this._add(systemTransformer(system));
|
|
5657
|
+
await (await fs.getDirectory()).readdir(true);
|
|
5513
5658
|
}
|
|
5514
5659
|
add(system) {
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
});
|
|
5522
|
-
_storage.set(systems);
|
|
5523
|
-
return id;
|
|
5660
|
+
this._add(systemTransformer(system));
|
|
5661
|
+
}
|
|
5662
|
+
async sync() {
|
|
5663
|
+
const { actions } = useProject();
|
|
5664
|
+
const systems = await actions.package.getSystems();
|
|
5665
|
+
_storage.set(systemsTransformer(systems));
|
|
5524
5666
|
}
|
|
5525
5667
|
get(id) {
|
|
5526
|
-
const system = get$
|
|
5668
|
+
const system = get$2(_storage).find((system) => system.id === id);
|
|
5527
5669
|
if (!system) throw new Error(`System with id ${id} not found`);
|
|
5528
5670
|
const handle = new SystemHandle(this, system);
|
|
5529
5671
|
this._subscribe(id, handle);
|
|
5530
5672
|
return handle;
|
|
5531
5673
|
}
|
|
5532
|
-
delete(id) {
|
|
5533
|
-
const systems = get$
|
|
5534
|
-
|
|
5535
|
-
|
|
5674
|
+
async delete(id) {
|
|
5675
|
+
const systems = get$2(_storage);
|
|
5676
|
+
const system = systems.find((s) => s.id === id);
|
|
5677
|
+
if (!system) throw new Error(`System not found: ${id}`);
|
|
5678
|
+
_storage.set(systems.filter((s) => s.id !== id));
|
|
5679
|
+
const { fs } = useProject();
|
|
5680
|
+
await (await fs.getFile(system.path)).delete();
|
|
5681
|
+
const subscriptions = get$2(_subscriptions);
|
|
5536
5682
|
if (subscriptions[id]) {
|
|
5537
5683
|
subscriptions[id]();
|
|
5538
5684
|
subscriptions[id] = null;
|
|
5539
5685
|
_subscriptions.set(subscriptions);
|
|
5540
5686
|
}
|
|
5541
5687
|
}
|
|
5688
|
+
_add(system) {
|
|
5689
|
+
const systems = get$2(_storage);
|
|
5690
|
+
systems.push(system);
|
|
5691
|
+
_storage.set(systems);
|
|
5692
|
+
}
|
|
5542
5693
|
_subscribe(id, handle) {
|
|
5543
5694
|
setTimeout(() => {
|
|
5544
|
-
const subscriptions = get$
|
|
5695
|
+
const subscriptions = get$2(_subscriptions);
|
|
5545
5696
|
if (subscriptions[id]) return;
|
|
5546
5697
|
subscriptions[id] = handle.store.subscribe((system) => this._update(id, system));
|
|
5547
5698
|
_subscriptions.set(subscriptions);
|
|
5548
5699
|
}, 0);
|
|
5549
5700
|
}
|
|
5550
5701
|
_update(id, system) {
|
|
5551
|
-
const systems = get$
|
|
5702
|
+
const systems = get$2(_storage);
|
|
5552
5703
|
const index = systems.findIndex((s) => s.id === id);
|
|
5553
5704
|
if (index === -1) return;
|
|
5554
5705
|
systems[index] = system;
|
|
@@ -5558,10 +5709,13 @@ var SystemManager = class {
|
|
|
5558
5709
|
var ECSHandler = class {
|
|
5559
5710
|
_project;
|
|
5560
5711
|
_sceneManager;
|
|
5712
|
+
_assetManager;
|
|
5561
5713
|
_componentManager;
|
|
5562
5714
|
_systemManager;
|
|
5563
5715
|
_libraryManager;
|
|
5564
5716
|
static reset() {
|
|
5717
|
+
AssetHandle.reset();
|
|
5718
|
+
AssetManager.reset();
|
|
5565
5719
|
ComponentHandle.reset();
|
|
5566
5720
|
ComponentManager.reset();
|
|
5567
5721
|
SystemManager.reset();
|
|
@@ -5586,9 +5740,11 @@ var ECSHandler = class {
|
|
|
5586
5740
|
* This init is only made for the current version of the editor
|
|
5587
5741
|
* When scenes will be implemented, this init must be changed accordingly
|
|
5588
5742
|
*/
|
|
5743
|
+
const assets = await this._project.actions.package.getAssets();
|
|
5589
5744
|
const components = await this._project.actions.package.getComponents();
|
|
5590
5745
|
const systems = await this._project.actions.package.getSystems();
|
|
5591
5746
|
const save = await this._project.actions.save.get();
|
|
5747
|
+
this._assetManager = new AssetManager(assetsTransformer(assets));
|
|
5592
5748
|
this._componentManager = new ComponentManager(componentsTransformer(components));
|
|
5593
5749
|
this._systemManager = new SystemManager(systemsTransformer(systems));
|
|
5594
5750
|
this._libraryManager = new LibraryManager(librariesTransformer(save));
|
|
@@ -5598,6 +5754,10 @@ var ECSHandler = class {
|
|
|
5598
5754
|
if (!this._sceneManager) throw new Error("ECS handler not initialized");
|
|
5599
5755
|
return this._sceneManager;
|
|
5600
5756
|
}
|
|
5757
|
+
get assets() {
|
|
5758
|
+
if (!this._assetManager) throw new Error("ECS handler not initialized");
|
|
5759
|
+
return this._assetManager;
|
|
5760
|
+
}
|
|
5601
5761
|
get components() {
|
|
5602
5762
|
if (!this._componentManager) throw new Error("ECS handler not initialized");
|
|
5603
5763
|
return this._componentManager;
|
|
@@ -5611,9 +5771,22 @@ var ECSHandler = class {
|
|
|
5611
5771
|
return this._libraryManager;
|
|
5612
5772
|
}
|
|
5613
5773
|
};
|
|
5774
|
+
var moveComponentListener = (handler) => {
|
|
5775
|
+
handler.on(EditorEvents.MOVE_COMPONENT, (entityId, _componentId, { x, y }) => {
|
|
5776
|
+
const { ecs } = useProject();
|
|
5777
|
+
const component = ecs.scenes.activeData.entities.get(entityId).components.get("Position2D");
|
|
5778
|
+
component.params.get("x").value.set(x);
|
|
5779
|
+
component.params.get("y").value.set(y);
|
|
5780
|
+
});
|
|
5781
|
+
return () => {};
|
|
5782
|
+
};
|
|
5614
5783
|
var EventEmitter = class {
|
|
5615
5784
|
listeners = {};
|
|
5616
5785
|
eventQueue = [];
|
|
5786
|
+
_dequeueOnEmit;
|
|
5787
|
+
constructor(dequeueOnEmit = false) {
|
|
5788
|
+
this._dequeueOnEmit = dequeueOnEmit;
|
|
5789
|
+
}
|
|
5617
5790
|
runEvents() {
|
|
5618
5791
|
this.eventQueue.forEach((e) => {
|
|
5619
5792
|
this._executeEvent(e);
|
|
@@ -5625,6 +5798,7 @@ var EventEmitter = class {
|
|
|
5625
5798
|
event,
|
|
5626
5799
|
args
|
|
5627
5800
|
});
|
|
5801
|
+
if (this._dequeueOnEmit) this.runEvents();
|
|
5628
5802
|
}
|
|
5629
5803
|
addListener(event, listener) {
|
|
5630
5804
|
if (!this.listeners[event]) this.listeners[event] = [];
|
|
@@ -5658,9 +5832,17 @@ var EventEmitter = class {
|
|
|
5658
5832
|
});
|
|
5659
5833
|
}
|
|
5660
5834
|
};
|
|
5835
|
+
var listeners = writable([]);
|
|
5661
5836
|
var EventHandler = class {
|
|
5662
5837
|
_coreEvents = new EventEmitter();
|
|
5663
|
-
_editorEvents = new EventEmitter();
|
|
5838
|
+
_editorEvents = new EventEmitter(true);
|
|
5839
|
+
static reset() {
|
|
5840
|
+
get$2(listeners).forEach((unsub) => unsub());
|
|
5841
|
+
listeners.set([]);
|
|
5842
|
+
}
|
|
5843
|
+
async init() {
|
|
5844
|
+
listeners.set([moveComponentListener(this)]);
|
|
5845
|
+
}
|
|
5664
5846
|
emit(event, ...args) {
|
|
5665
5847
|
this._coreEvents.emitEvent(event, ...args);
|
|
5666
5848
|
}
|
|
@@ -5668,6 +5850,18 @@ var EventHandler = class {
|
|
|
5668
5850
|
this._editorEvents.on(event, callback);
|
|
5669
5851
|
}
|
|
5670
5852
|
};
|
|
5853
|
+
var CoreEvents = /* @__PURE__ */ function(CoreEvents) {
|
|
5854
|
+
CoreEvents["HOT_RELOAD"] = "hot-reload";
|
|
5855
|
+
CoreEvents["HARD_RELOAD"] = "hard-reload";
|
|
5856
|
+
CoreEvents["PAUSE_GAME"] = "pause-game";
|
|
5857
|
+
CoreEvents["STOP_GAME"] = "stop-game";
|
|
5858
|
+
CoreEvents["UNPAUSE_GAME"] = "unpause-game";
|
|
5859
|
+
return CoreEvents;
|
|
5860
|
+
}({});
|
|
5861
|
+
var EditorEvents = /* @__PURE__ */ function(EditorEvents) {
|
|
5862
|
+
EditorEvents["MOVE_COMPONENT"] = "move-component";
|
|
5863
|
+
return EditorEvents;
|
|
5864
|
+
}({});
|
|
5671
5865
|
var infoStore = writable();
|
|
5672
5866
|
var InfoHandler = class {
|
|
5673
5867
|
core;
|
|
@@ -5678,12 +5872,12 @@ var InfoHandler = class {
|
|
|
5678
5872
|
this.core = core;
|
|
5679
5873
|
}
|
|
5680
5874
|
get(cacheOnly) {
|
|
5681
|
-
if (cacheOnly) return get$
|
|
5875
|
+
if (cacheOnly) return get$2(infoStore);
|
|
5682
5876
|
return this.fetch();
|
|
5683
5877
|
}
|
|
5684
5878
|
async fetch(noCache = false) {
|
|
5685
5879
|
if (!noCache) {
|
|
5686
|
-
const cache = get$
|
|
5880
|
+
const cache = get$2(infoStore);
|
|
5687
5881
|
if (cache) return cache;
|
|
5688
5882
|
}
|
|
5689
5883
|
const res = await this.core.actions.project.getInfo();
|
|
@@ -5817,6 +6011,9 @@ var FileSystemFile = class {
|
|
|
5817
6011
|
const raw = JSON.stringify(content);
|
|
5818
6012
|
return this.write(raw);
|
|
5819
6013
|
}
|
|
6014
|
+
async createWritable() {
|
|
6015
|
+
return this.handle.createWritable();
|
|
6016
|
+
}
|
|
5820
6017
|
async getUrl() {
|
|
5821
6018
|
if (URL_CACHE.has(this.handle.name)) URL.revokeObjectURL(URL_CACHE.get(this.handle.name));
|
|
5822
6019
|
const file = await this.handle.getFile();
|
|
@@ -6002,14 +6199,29 @@ var SfsFile = class {
|
|
|
6002
6199
|
await this._cache.writeJson(content);
|
|
6003
6200
|
await this.sync();
|
|
6004
6201
|
}
|
|
6202
|
+
async createWritable() {
|
|
6203
|
+
await this._preWrite();
|
|
6204
|
+
return await this._cache.createWritable();
|
|
6205
|
+
}
|
|
6005
6206
|
async sync() {
|
|
6006
6207
|
if (!this._cache) return;
|
|
6007
6208
|
const file = await this._cache.getFile();
|
|
6008
|
-
|
|
6009
|
-
body: file
|
|
6209
|
+
const res = await fetch(this._route, {
|
|
6210
|
+
body: file,
|
|
6010
6211
|
method: "POST",
|
|
6011
|
-
headers: {
|
|
6012
|
-
|
|
6212
|
+
headers: {
|
|
6213
|
+
[SESSION_PROJECT_HEADER]: this._handler.project.id,
|
|
6214
|
+
"Content-Type": "application/octet-stream"
|
|
6215
|
+
}
|
|
6216
|
+
});
|
|
6217
|
+
if (!res.ok) throw new Error(`Failed to sync file: ${await res.text()}`);
|
|
6218
|
+
}
|
|
6219
|
+
async delete() {
|
|
6220
|
+
const res = await fetch(this._route, {
|
|
6221
|
+
method: "DELETE",
|
|
6222
|
+
headers: { [SESSION_PROJECT_HEADER]: this._handler.project.id }
|
|
6223
|
+
});
|
|
6224
|
+
if (!res.ok) throw new Error(`Failed to delete file: ${await res.text()}`);
|
|
6013
6225
|
}
|
|
6014
6226
|
async getFile() {
|
|
6015
6227
|
await this._preRead();
|
|
@@ -6196,6 +6408,7 @@ var SyncFileSystem = class {
|
|
|
6196
6408
|
}
|
|
6197
6409
|
async init() {
|
|
6198
6410
|
await this.treeCache?.init();
|
|
6411
|
+
await (await this.getDirectory()).readdir(true);
|
|
6199
6412
|
}
|
|
6200
6413
|
async getFile(path) {
|
|
6201
6414
|
return new SfsFile(this, await this.cache.fileExist(path) ? await this.cache.getFile(path, false) : null, path);
|
|
@@ -6274,33 +6487,14 @@ var Loader = class {
|
|
|
6274
6487
|
};
|
|
6275
6488
|
var PackageHandler = class {
|
|
6276
6489
|
_project;
|
|
6277
|
-
_componentsManifests = /* @__PURE__ */ new Map();
|
|
6278
|
-
_systemsManifests = /* @__PURE__ */ new Map();
|
|
6279
6490
|
constructor(project) {
|
|
6280
6491
|
this._project = project;
|
|
6281
6492
|
}
|
|
6282
|
-
async
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
return this._systemsManifests.get(systemName);
|
|
6288
|
-
}
|
|
6289
|
-
async installComponent(name) {
|
|
6290
|
-
const newComponent = (await this._project.actions.package.addComponents({ componentNames: [name] }))[0];
|
|
6291
|
-
this._project.save.save.components.push(newComponent.save);
|
|
6292
|
-
this._componentsManifests.set(newComponent.save.name, newComponent.manifest);
|
|
6293
|
-
}
|
|
6294
|
-
async installSystem(name) {
|
|
6295
|
-
const newSystem = (await this._project.actions.package.addSystems({ systemNames: [name] }))[0];
|
|
6296
|
-
this._project.save.save.systems.push(newSystem.save);
|
|
6297
|
-
this._systemsManifests.set(newSystem.save.name, newSystem.manifest);
|
|
6298
|
-
}
|
|
6299
|
-
addComponentManifest(componentName, component) {
|
|
6300
|
-
this._componentsManifests.set(componentName, component);
|
|
6301
|
-
}
|
|
6302
|
-
addSystemManifest(systemName, system) {
|
|
6303
|
-
this._systemsManifests.set(systemName, system);
|
|
6493
|
+
async installPackages(names) {
|
|
6494
|
+
await this._project.actions.package.installPackages({ names });
|
|
6495
|
+
await this._project.ecs.components.sync();
|
|
6496
|
+
await this._project.ecs.systems.sync();
|
|
6497
|
+
await (await this._project.fs.getDirectory()).readdir(true);
|
|
6304
6498
|
}
|
|
6305
6499
|
};
|
|
6306
6500
|
var SaveHandler = class {
|
|
@@ -6322,6 +6516,7 @@ var SaveHandler = class {
|
|
|
6322
6516
|
this._listeners();
|
|
6323
6517
|
this._save.subscribe(() => {
|
|
6324
6518
|
this.syncToServer();
|
|
6519
|
+
this._project.event.emit(CoreEvents.HOT_RELOAD, this.save);
|
|
6325
6520
|
});
|
|
6326
6521
|
}
|
|
6327
6522
|
async fetchFromServer() {
|
|
@@ -6330,10 +6525,10 @@ var SaveHandler = class {
|
|
|
6330
6525
|
async syncToServer() {
|
|
6331
6526
|
if (this._readyToSync) {
|
|
6332
6527
|
this._readyToSync = false;
|
|
6333
|
-
await this._project.actions.save.set({ save: get$
|
|
6528
|
+
await this._project.actions.save.set({ save: get$2(this._save) });
|
|
6334
6529
|
this._syncTimer = setTimeout(() => {
|
|
6335
6530
|
this._readyToSync = true;
|
|
6336
|
-
if (get$
|
|
6531
|
+
if (get$2(this._needSync)) {
|
|
6337
6532
|
this.syncToServer();
|
|
6338
6533
|
this._needSync.set(false);
|
|
6339
6534
|
}
|
|
@@ -6347,7 +6542,7 @@ var SaveHandler = class {
|
|
|
6347
6542
|
await this.syncToServer();
|
|
6348
6543
|
}
|
|
6349
6544
|
get save() {
|
|
6350
|
-
return get$
|
|
6545
|
+
return get$2(this._save);
|
|
6351
6546
|
}
|
|
6352
6547
|
_listeners() {
|
|
6353
6548
|
this._project.ecs.components.store.subscribe((components) => {
|
|
@@ -6400,6 +6595,7 @@ var Project = class {
|
|
|
6400
6595
|
_inited = false;
|
|
6401
6596
|
static reset() {
|
|
6402
6597
|
InfoHandler.reset();
|
|
6598
|
+
EventHandler.reset();
|
|
6403
6599
|
}
|
|
6404
6600
|
constructor(id) {
|
|
6405
6601
|
this.id = id;
|
|
@@ -6410,7 +6606,7 @@ var Project = class {
|
|
|
6410
6606
|
await this.fs.init();
|
|
6411
6607
|
await this.ecs.init();
|
|
6412
6608
|
await this.save.init();
|
|
6413
|
-
await this.
|
|
6609
|
+
await this.event.init();
|
|
6414
6610
|
this._inited = true;
|
|
6415
6611
|
return this;
|
|
6416
6612
|
}
|
|
@@ -6642,7 +6838,7 @@ var ProjectLoader = class ProjectLoader {
|
|
|
6642
6838
|
}
|
|
6643
6839
|
};
|
|
6644
6840
|
var useProject = () => {
|
|
6645
|
-
const project = get$
|
|
6841
|
+
const project = get$2(projectStore);
|
|
6646
6842
|
if (!project) {
|
|
6647
6843
|
const error = new PLException(PLErrors.No_Project);
|
|
6648
6844
|
error.fb();
|
|
@@ -12739,7 +12935,7 @@ var SelectBaseRootState = class {
|
|
|
12739
12935
|
}
|
|
12740
12936
|
setHighlightedNode(node, initial = false) {
|
|
12741
12937
|
this.highlightedNode = node;
|
|
12742
|
-
if (node && this.isUsingKeyboard || initial) this.scrollHighlightedNodeIntoView(node);
|
|
12938
|
+
if (node && (this.isUsingKeyboard || initial)) this.scrollHighlightedNodeIntoView(node);
|
|
12743
12939
|
}
|
|
12744
12940
|
scrollHighlightedNodeIntoView(node) {
|
|
12745
12941
|
if (!this.viewportNode || !this.contentIsPositioned) return;
|
|
@@ -13020,7 +13216,7 @@ var SelectTriggerState = class SelectTriggerState {
|
|
|
13020
13216
|
this.root.handleClose();
|
|
13021
13217
|
return;
|
|
13022
13218
|
}
|
|
13023
|
-
if (e.key === "Enter" || e.key === " " && this.#domTypeahead.search === "" && !e.isComposing) {
|
|
13219
|
+
if ((e.key === "Enter" || e.key === " " && this.#domTypeahead.search === "") && !e.isComposing) {
|
|
13024
13220
|
e.preventDefault();
|
|
13025
13221
|
if (this.#handleKeyboardSelection()) return;
|
|
13026
13222
|
}
|
|
@@ -13047,7 +13243,7 @@ var SelectTriggerState = class SelectTriggerState {
|
|
|
13047
13243
|
const isSpaceKey = e.key === " ";
|
|
13048
13244
|
const candidateNodes = this.root.getCandidateNodes();
|
|
13049
13245
|
if (e.key === "Tab") return;
|
|
13050
|
-
if (!isModifierKey && isCharacterKey || isSpaceKey) {
|
|
13246
|
+
if (!isModifierKey && (isCharacterKey || isSpaceKey)) {
|
|
13051
13247
|
if (!this.#domTypeahead.handleTypeaheadSearch(e.key, candidateNodes) && isSpaceKey) {
|
|
13052
13248
|
e.preventDefault();
|
|
13053
13249
|
this.#handleKeyboardSelection();
|
|
@@ -14707,7 +14903,7 @@ function Select_content($$renderer, $$props) {
|
|
|
14707
14903
|
if (Select_viewport) {
|
|
14708
14904
|
$$renderer.push("<!--[-->");
|
|
14709
14905
|
Select_viewport($$renderer, {
|
|
14710
|
-
class: cn("h
|
|
14906
|
+
class: cn("h-auto max-h-80 w-full min-w---bits-select-anchor-width"),
|
|
14711
14907
|
children: ($$renderer) => {
|
|
14712
14908
|
children?.($$renderer);
|
|
14713
14909
|
$$renderer.push(`<!---->`);
|
|
@@ -14905,6 +15101,25 @@ function Select($$renderer, $$props) {
|
|
|
14905
15101
|
});
|
|
14906
15102
|
});
|
|
14907
15103
|
}
|
|
15104
|
+
function Loading_button($$renderer, $$props) {
|
|
15105
|
+
let { loading = false, disabled, children, $$slots, $$events, ...restProps } = $$props;
|
|
15106
|
+
Button($$renderer, spread_props([
|
|
15107
|
+
{ disabled: disabled || loading },
|
|
15108
|
+
restProps,
|
|
15109
|
+
{
|
|
15110
|
+
children: ($$renderer) => {
|
|
15111
|
+
if (loading) {
|
|
15112
|
+
$$renderer.push("<!--[0-->");
|
|
15113
|
+
Spinner($$renderer, {});
|
|
15114
|
+
} else $$renderer.push("<!--[-1-->");
|
|
15115
|
+
$$renderer.push(`<!--]--> `);
|
|
15116
|
+
children?.($$renderer);
|
|
15117
|
+
$$renderer.push(`<!---->`);
|
|
15118
|
+
},
|
|
15119
|
+
$$slots: { default: true }
|
|
15120
|
+
}
|
|
15121
|
+
]));
|
|
15122
|
+
}
|
|
14908
15123
|
var handleError = (error, context) => {
|
|
14909
15124
|
const message = `Failed to ${context ?? "execute"}`;
|
|
14910
15125
|
if (error instanceof Exception) {
|
|
@@ -14929,6 +15144,6 @@ var runSafe = async (context, cb, fallback) => {
|
|
|
14929
15144
|
return null;
|
|
14930
15145
|
};
|
|
14931
15146
|
//#endregion
|
|
14932
|
-
export {
|
|
15147
|
+
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 };
|
|
14933
15148
|
|
|
14934
|
-
//# sourceMappingURL=error-
|
|
15149
|
+
//# sourceMappingURL=error-Cu-XIb00.js.map
|